@charset "UTF-8";

:root {
  color-scheme: light;
  --bg: #f9fafc;
  --surface: #fff;
  --surface-secondary: #f3f5f8;
  --sidebar: rgba(239,242,248,.82);
  --text: #172e4d;
  --body-text: #293950;
  --secondary: #768296;
  --line: #e9edf3;
  --line-strong: #dce2eb;
  --blue: #2456d8;
  --blue-hover: #1945bb;
  --blue-soft: #eaf0fe;
  --coral: #f06447;
  --green: #388568;
  --green-soft: #e9f5ee;
  --glass: rgba(255,255,255,.85);
  --shadow: 0 4px 28px rgba(23,46,77,.035);
  --radius: 22px;
  font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  font-weight: 400;
  background: var(--bg);
  color: var(--text);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10151f; --surface: #19212e; --surface-secondary: #202a39; --sidebar: rgba(20,28,40,.86); --text: #edf2fc; --body-text: #d3dceb; --secondary: #9ba8bb; --line: #293344; --line-strong: #3c485a; --blue: #759bff; --blue-hover: #94b2ff; --blue-soft: #24365c; --green: #8ac8a5; --green-soft: #203b32; --glass: rgba(25,33,46,.87); --shadow: 0 4px 28px rgba(0,0,0,.08);
}
@media (prefers-color-scheme:dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) { color-scheme: dark; --bg:#10151f; --surface:#19212e; --surface-secondary:#202a39; --sidebar:rgba(20,28,40,.86); --text:#edf2fc; --body-text:#d3dceb; --secondary:#9ba8bb; --line:#293344; --line-strong:#3c485a; --blue:#759bff; --blue-hover:#94b2ff; --blue-soft:#24365c; --green:#8ac8a5; --green-soft:#203b32; --glass:rgba(25,33,46,.87); --shadow:0 4px 28px rgba(0,0,0,.08); }
}
* { box-sizing: border-box; }
body { margin: 0; min-width: min(320px, 100%); }
button,input,select,textarea { font: inherit; }
button,a,input,select,textarea { -webkit-tap-highlight-color: transparent; }
button,a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button { border: 0; background: none; }
a { color: var(--blue); text-decoration: none; }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline: 3px solid color-mix(in srgb,var(--blue) 55%,transparent); outline-offset: 3px; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { font-weight: 650; letter-spacing: -.035em; }
img { display: block; max-width: 100%; }
input,textarea,select { width: 100%; min-width: 0; color: var(--text); border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
input,select { height: 48px; padding: 0 14px; }
textarea { padding: 13px 14px; resize: vertical; line-height: 1.55; min-height: 110px; }
input::placeholder,textarea::placeholder { color: var(--secondary); opacity: .85; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }
select { padding-right: 32px; text-overflow: ellipsis; }
[hidden] { display: none !important; }
.icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip-link { position:fixed; left:12px; top:-80px; z-index:100; padding:14px; border-radius:10px; background:var(--surface); box-shadow:var(--shadow); }
.skip-link:focus { top:10px; }
.button { min-height:46px; padding:12px 20px; border-radius:13px; display:inline-flex; align-items:center; justify-content:center; gap:9px; font-size:14px; line-height:1.25; font-weight:600; white-space:nowrap; transition:background .15s,transform .15s; }
.button.primary { color:#fff; background:#2456d8; box-shadow:0 3px 6px rgba(36,86,216,.12); }
.button.primary:hover { background:#1c49c1; }
.button.secondary { background:var(--surface-secondary); color:var(--blue); }
.button.secondary:hover { background:var(--blue-soft); }
.button:active:not(:disabled) { transform:scale(.98); }
.button.compact { margin-top:20px; }
.button .icon { width:20px; height:20px; }
.full-width { width:100%; }
.icon-button,.close-button,.avatar-button,.password-eye { min-width:44px; min-height:44px; display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; }
.icon-button { color:var(--secondary); border-radius:12px; }
.icon-button:hover { background:var(--surface-secondary); }
.text-button { color:var(--blue); min-height:44px; font-size:13px; font-weight:550; display:inline-flex; align-items:center; gap:3px; padding:0 0 0 10px; white-space:nowrap; }
.text-button .icon { width:15px; }
.inline-button { color:var(--blue); padding:0; font-weight:550; min-height:32px; }
.app-shell { min-height:100dvh; display:flex; }
.sidebar { width:242px; position:fixed; top:0; bottom:0; left:0; border-right:1px solid var(--line); background:var(--sidebar); backdrop-filter:blur(28px); padding:39px 20px 18px; display:flex; flex-direction:column; z-index:10; }
.brand { display:block; width:167px; min-height:48px; margin:0 10px 46px; }
.brand-logo { width:100%; height:auto; object-fit:contain; }
:root[data-theme="dark"] .brand-logo { filter:brightness(0) invert(.95); }
@media (prefers-color-scheme:dark) { :root[data-theme="system"] .brand-logo { filter:brightness(0) invert(.95); } }
.workspace-label { font-size:9px; letter-spacing:.11em; font-weight:650; color:var(--secondary); margin:0 14px 14px; }
.desktop-nav { display:flex; flex-direction:column; gap:5px; }
.nav-item { min-height:48px; display:flex; align-items:center; padding:11px 14px; gap:12px; width:100%; color:var(--secondary); font-weight:550; font-size:14px; border-radius:12px; text-align:left; }
.nav-item.active { background:var(--blue-soft); color:var(--blue); }
.nav-item:hover:not(.active) { background:var(--surface-secondary); color:var(--text); }
.nav-item .icon { width:21px; height:21px; }
.nav-count { min-width:22px; height:22px; padding:2px 6px; background:var(--surface); border-radius:7px; margin-left:auto; display:inline-flex; align-items:center; justify-content:center; font-size:11px; }
.sidebar-foot { margin-top:auto; }
.small-note { color:var(--secondary); font-size:12px; line-height:1.65; margin:20px 14px 28px; }
.account-button { border-top:1px solid var(--line-strong); width:100%; display:flex; align-items:center; gap:10px; padding:20px 5px 0; text-align:left; }
.account-button > span:nth-child(2) { flex:1; min-width:0; }
.account-button strong { font-size:13px; display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.account-button small { color:var(--secondary); font-size:11px; display:block; margin-top:4px; }
.account-button > .icon { width:14px; color:var(--secondary); }
.avatar { width:37px; height:37px; border-radius:50%; background:var(--blue-soft); color:var(--blue); display:inline-flex; align-items:center; justify-content:center; font-weight:650; font-size:13px; flex-shrink:0; position:relative;overflow:hidden; }
.avatar > img { position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit; }
.workspace { width:calc(100% - 242px); margin-left:242px; min-width:0; }
.main { max-width:1400px; margin:0 auto; padding:48px 48px 40px; outline:none; }
.mobile-header,.bottom-nav { display:none; }
.page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:32px; }
.eyebrow { font-size:12px; color:var(--secondary); font-weight:500; margin-bottom:10px; }
.page-heading h1 { font-size:32px; line-height:1.15; }
.page-heading p { color:var(--secondary); font-size:14px; margin-top:10px; line-height:1.5; }
.page-heading .create-button { margin-top:21px; }
.panel { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.metrics { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-bottom:32px; }
.metric { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:24px 25px 23px; position:relative; text-align:left; min-height:182px; box-shadow:var(--shadow); }
.metric-primary { border-color:transparent; background:#2456d8; color:#fff; }
.metric-label { display:flex; align-items:center; gap:8px; color:var(--secondary); font-size:13px; font-weight:550; }
.metric-label .icon { width:18px; height:18px; }
.metric-primary .metric-label { color:#d7e3ff; }
.metric > strong { display:block; font-size:45px; line-height:1.2; font-weight:600; letter-spacing:-.05em; margin:14px 0 8px; }
.metric-description { font-size:12px; color:var(--secondary); }
.metric-primary .metric-description { color:#d7e3ff; }
.metric-arrow { width:27px; height:27px; position:absolute; right:20px; bottom:20px; border-radius:50%; background:var(--surface-secondary); display:flex; justify-content:center; align-items:center; color:var(--secondary); }
.metric-arrow .icon { width:14px; height:14px; }
.metric-primary .metric-arrow { background:rgba(255,255,255,.15); color:#fff; }
.overview-grid { display:grid; grid-template-columns:minmax(0,1.7fr) minmax(265px,1fr); gap:24px; align-items:start; }
.section-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; padding:25px 24px 22px; }
.section-heading h2 { font-size:18px; letter-spacing:-.025em; }
.section-heading p { font-size:12px; color:var(--secondary); line-height:1.45; margin-top:5px; }
.task-row { display:flex; align-items:center; gap:10px; padding:18px 24px; border-top:1px solid var(--line); min-width:0; position:relative; }
.task-status { width:44px; min-width:44px; height:44px; padding:10px; display:flex; align-items:center; justify-content:center; border-radius:50%; margin-left:-10px; align-self:flex-start; }
.task-status > span { width:22px; height:22px; border:1.6px solid var(--line-strong); border-radius:50%; display:block; }
.task-status:hover > span { border-color:var(--blue); background:var(--blue-soft); }
.task-status.checked { color:var(--green); }
.task-status.checked .icon { width:23px; height:23px; background:var(--green-soft); border-radius:50%; padding:4px; stroke-width:2.4; }
.task-body { flex:1; min-width:0; text-align:left; padding:9px 0 4px; align-self:stretch; }
.task-body > strong { font-size:14px; font-weight:600; line-height:1.45; display:block; overflow-wrap:anywhere; }
.task-body:hover > strong { color:var(--blue); }
.task-excerpt { font-size:12px; color:var(--secondary); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; margin-top:5px; line-height:1.5; }
.task-meta { display:flex; flex-wrap:wrap; align-items:center; gap:7px; font-size:11px; color:var(--secondary); margin-top:9px; line-height:1.5; }
.assignee-label { color:var(--body-text); max-width:140px; text-overflow:ellipsis; white-space:nowrap; overflow:hidden; }
.meta-dot { opacity:.6; }
.photo-count { display:inline-flex; align-items:center; gap:4px; margin-left:2px; }
.photo-count .icon { width:13px; height:13px; }
.task-thumb { width:54px; height:54px; border-radius:10px; padding:0; overflow:hidden; flex-shrink:0; margin-left:5px; }
.task-thumb img { width:100%; height:100%; object-fit:cover; }
.row-chevron { width:44px; min-height:44px; padding:0; color:var(--secondary); flex-shrink:0; margin-right:-10px; }
.row-chevron .icon { width:14px; }
.task-done .task-body > strong { color:var(--secondary); }
.employee-row { display:flex; align-items:center; gap:11px; min-height:84px; width:100%; padding:18px 24px; text-align:left; border-top:1px solid var(--line); }
.employee-row:hover { background:var(--surface-secondary); }
.employee-info { flex:1; min-width:0; }
.employee-info strong { display:block; font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.employee-info small { color:var(--secondary); display:block; margin-top:6px; font-size:11px; line-height:1.3; }
.employee-row > .icon { width:13px; height:17px; color:var(--secondary); }
.employee-avatar { background:var(--surface-secondary); color:var(--body-text); width:36px; height:36px; }
.completion-note { display:flex; align-items:center; gap:12px; background:var(--surface-secondary); padding:19px 22px; margin:8px 16px 16px; border-radius:14px; }
.completion-ring { --progress:0%; background:conic-gradient(var(--blue) var(--progress),var(--line-strong) 0); border-radius:50%; width:43px; height:43px; padding:4px; flex-shrink:0; }
.completion-ring > span { width:35px; height:35px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:var(--surface-secondary); font-size:10px; font-weight:650; }
.completion-note strong { display:block; font-size:12px; font-weight:550; }
.completion-note small { display:block; color:var(--secondary); font-size:11px; margin-top:5px; }
.quiet-note { color:var(--secondary); display:flex; align-items:center; gap:7px; margin:23px 2px 0; font-size:11px; line-height:1.6; }
.quiet-note .icon { width:14px; height:14px; }
.empty-state { padding:54px 22px; display:flex; align-items:center; flex-direction:column; text-align:center; }
.empty-icon { width:57px; height:57px; display:flex; align-items:center; justify-content:center; color:var(--blue); background:var(--blue-soft); border-radius:17px; margin-bottom:20px; }
.empty-icon .icon { width:27px; height:27px; }
.empty-state h2 { font-size:18px; line-height:1.4; }
.empty-state p { color:var(--secondary); font-size:13px; line-height:1.7; max-width:330px; margin-top:8px; }
.empty-state > .button { margin-top:20px; }
.team-panel .empty-state { padding:30px 20px; }
.task-toolbar { margin-bottom:22px; display:flex; align-items:center; justify-content:space-between; gap:16px; }
.segmented { background:var(--surface-secondary); padding:4px; border-radius:12px; display:flex; gap:3px; border:1px solid var(--line); }
.segmented button { min-height:36px; padding:8px 15px; border-radius:9px; display:flex; align-items:center; justify-content:center; gap:7px; font-size:12px; font-weight:550; color:var(--secondary); white-space:nowrap; }
.segmented button.selected { background:var(--surface); color:var(--text); box-shadow:0 2px 5px rgba(23,46,77,.07),0 0 0 1px rgba(23,46,77,.025); }
.segmented button span { font-size:10px; border-radius:5px; background:var(--line); color:var(--secondary); min-width:18px; padding:2px 4px; }
.segmented button.selected span { color:var(--blue); background:var(--blue-soft); }
.task-filters { display:flex; align-items:center; gap:10px; flex:1; justify-content:flex-end; min-width:0; }
.search-field { position:relative; display:flex; align-items:center; max-width:235px; width:100%; }
.search-field > .icon { position:absolute; left:12px; width:17px; height:17px; color:var(--secondary); pointer-events:none; }
.search-field input { padding-left:37px; height:44px; font-size:12px; border-color:var(--line); background:var(--surface); border-radius:12px; }
.assignee-filter { width:160px; flex-shrink:0; }
.assignee-filter select { height:44px; font-size:12px; border-color:var(--line); }
.list-caption { padding:19px 24px; display:flex; align-items:center; gap:8px; font-size:11px; font-weight:550; color:var(--secondary); }
.list-caption > span { color:var(--secondary); padding:2px 6px; background:var(--surface-secondary); border-radius:5px; font-size:10px; }
.task-results .task-row { padding-top:20px; padding-bottom:20px; }
.back-button { display:inline-flex; align-items:center; gap:7px; font-size:12px; color:var(--blue); min-height:44px; margin-top:-17px; margin-bottom:10px; padding:0; }
.back-button .icon { width:17px; }
.team-explainer { background:var(--blue-soft); border-radius:17px; padding:22px; display:flex; align-items:flex-start; gap:13px; margin-bottom:25px; }
.team-explainer > .icon { color:var(--blue); margin-top:1px; }
.team-explainer strong { font-size:14px; font-weight:550; }
.team-explainer p { font-size:12px; line-height:1.7; color:var(--secondary); margin-top:5px; }
.team-member { display:flex; align-items:center; border-top:1px solid var(--line); }
.team-member .employee-row { border-top:0; min-width:0; flex:1; }
.member-role { display:flex; align-items:center; gap:22px; padding-right:24px; }
.username { font-size:12px; color:var(--secondary); max-width:150px; overflow:hidden; text-overflow:ellipsis; }
.role-button { display:flex; align-items:center; gap:7px; border:1px solid var(--line); background:var(--surface-secondary); font-size:11px; border-radius:9px; padding:8px 11px; min-height:44px; }
.role-button .icon { width:13px; height:13px; }
.workload { text-align:center; margin:0 16px; }
.workload strong { display:block; font-size:19px; font-weight:600; }
.workload small { display:block; font-size:10px; color:var(--secondary); margin-top:4px; white-space:nowrap; }
.settings-grid { display:grid; grid-template-columns:1.2fr 1fr; gap:30px; align-items:start; }
.group-label { margin:23px 7px 12px; font-size:11px; letter-spacing:.04em; text-transform:uppercase; color:var(--secondary); font-weight:550; }
.settings-grid > section > .group-label:first-child { margin-top:0; }
.profile-card { display:flex; align-items:center; padding:26px; gap:17px; }
.profile-card h2 { font-size:20px; overflow-wrap:anywhere; }
.profile-card p { color:var(--secondary); font-size:12px; margin:5px 0 10px; overflow-wrap:anywhere; }
.profile-avatar { width:62px; height:62px; font-size:20px; }
.role-badge { font-size:10px; background:var(--blue-soft); color:var(--blue); padding:4px 8px; border-radius:6px; display:inline-flex; align-items:center; gap:4px; }
.role-badge .icon { width:12px; height:12px; }
.theme-panel { padding:18px 14px; }
.theme-options { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; }
.theme-option { display:flex; flex-direction:column; align-items:center; min-width:0; padding:10px 5px 11px; border-radius:12px; position:relative; border:1px solid transparent; gap:7px; font-size:10px; color:var(--secondary); }
.theme-option.selected { border-color:var(--blue); background:var(--blue-soft); color:var(--blue); }
.theme-option > .icon { width:16px; height:16px; margin-top:4px; }
.theme-option b { position:absolute; width:16px; height:16px; background:var(--blue); color:var(--surface); border-radius:50%; top:5px; right:5px; display:flex; align-items:center; justify-content:center; }
.theme-option b .icon { width:11px; height:11px; stroke-width:2.3; }
.theme-preview { width:69px; height:49px; border-radius:6px; padding:9px 8px 5px 18px; display:flex; flex-direction:column; gap:5px; position:relative; border:1px solid rgba(120,135,156,.2); background:#f8fafc; overflow:hidden; }
.theme-preview::before { content:''; position:absolute; top:0; bottom:0; left:0; width:12px; background:#e8edf5; }
.theme-preview i { background:#e7edf7; display:block; height:5px; border-radius:2px; }
.theme-preview i:first-child { width:70%; background:#789be9; }
.theme-dark { background:#17202f; }
.theme-dark::before { background:#0b121e; }
.theme-dark i { background:#3a475b; }
.theme-system { background:linear-gradient(90deg,#f8fafc 50%,#17202f 50%); }
.theme-system i { background:linear-gradient(90deg,#e7edf7 50%,#3a475b 50%); }
.settings-export { display:flex; align-items:flex-start; gap:13px; padding:22px; flex-wrap:wrap; }
.settings-icon { color:var(--blue); margin-top:1px; }
.settings-export > div { flex:1; min-width:150px; }
.settings-export strong { font-size:13px; font-weight:550; }
.settings-export p { font-size:11px; line-height:1.7; color:var(--secondary); margin-top:7px; }
.settings-export .button { margin-left:35px; min-height:40px; font-size:12px; padding:10px 15px; }
.logout-button { color:var(--coral); margin-top:23px; background:var(--surface); border:1px solid var(--line); width:100%; justify-content:flex-start; padding-left:23px; min-height:52px; font-size:13px; }
.password-form { padding:24px; }
.form-intro { font-size:13px; line-height:1.65; color:var(--secondary); margin-bottom:23px; }
.field { font-size:12px; font-weight:550; display:flex; flex-direction:column; gap:9px; margin-bottom:21px; }
.field input,.field select,.field textarea { font-size:14px; font-weight:400; }
.optional { color:var(--secondary); font-size:11px; font-weight:400; margin-left:4px; }
.field-help { color:var(--secondary); font-weight:400; font-size:10px; line-height:1.5; }
.password-wrap { position:relative; }
.password-wrap input { padding-right:47px; }
.password-eye { position:absolute; right:3px; top:2px; color:var(--secondary); padding:9px; }
.password-eye .icon { width:18px; height:18px; }
.password-form .button { width:100%; }
.settings-about { text-align:center; padding-top:40px; display:flex; flex-direction:column; align-items:center; }
.settings-about img { border-radius:12px; margin-bottom:13px; }
.settings-about strong { font-size:12px; font-weight:600; }
.settings-about p { font-size:11px; color:var(--secondary); margin-top:6px; }
.form-error { background:color-mix(in srgb,var(--coral) 10%,var(--surface)); border:1px solid color-mix(in srgb,var(--coral) 24%,transparent); color:var(--coral); padding:12px 14px; font-size:12px; line-height:1.55; border-radius:10px; margin:0 0 18px; }
.auth-page { min-height:100dvh; display:flex; flex-direction:column; align-items:center; padding:46px 24px 20px; background:radial-gradient(ellipse at 50% 6%,var(--blue-soft),transparent 55%); }
.auth-brand { width:174px; margin:8px 0 42px; }
.auth-card { width:100%; max-width:410px; background:var(--surface); border:1px solid var(--line); border-radius:28px; padding:32px 34px 26px; box-shadow:0 14px 70px rgba(23,46,77,.055); }
.auth-mark { display:flex; align-items:center; justify-content:center; width:45px; height:45px; background:var(--blue-soft); color:var(--blue); border-radius:13px; margin-bottom:22px; }
.auth-mark .icon { width:23px; height:23px; }
.auth-card h1 { font-size:26px; line-height:1.22; max-width:270px; }
.auth-subtitle { font-size:12px; line-height:1.7; margin-top:11px; color:var(--secondary); }
.auth-segment { margin:25px 0 25px; }
.auth-segment button { flex:1; }
.auth-submit { width:100%; justify-content:space-between; padding-left:17px; margin-top:2px; }
.auth-submit .icon { width:17px; }
.auth-footnote { font-size:11px; line-height:1.7; text-align:center; color:var(--secondary); margin-top:18px; }
.auth-bottom { margin-top:auto; padding-top:28px; width:100%; max-width:410px; display:flex; align-items:center; justify-content:space-between; font-size:10px; color:var(--secondary); }
.initial-loader { min-height:100dvh; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:24px; }
.initial-loader img { border-radius:20px; }
.spinner { width:21px; height:21px; border:2px solid var(--line); border-top-color:var(--blue); border-radius:50%; animation:spin .8s linear infinite; }
.skeleton-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.skeleton { border-radius:20px; background:var(--surface-secondary); animation:pulse 1.7s ease-in-out infinite; }
.skeleton-card { height:180px; }
.skeleton-row { height:100px; grid-column:1 / -1; }
.startup-error { min-height:100dvh; display:flex; align-items:center; justify-content:center; }
.toasts { position:fixed; z-index:200; bottom:28px; left:calc(50% + 121px); transform:translateX(-50%); width:max-content; max-width:calc(100% - 32px); pointer-events:none; }
.toast { color:var(--text); background:var(--glass); backdrop-filter:blur(20px); box-shadow:0 7px 35px rgba(0,0,0,.13); border:1px solid var(--line-strong); border-radius:14px; padding:14px 19px; display:flex; align-items:center; gap:10px; font-size:13px; max-width:450px; line-height:1.5; animation:toast-in .2s ease-out; }
.toast .icon { width:18px; height:18px; color:var(--green); }
.toast-error .icon { color:var(--coral); }
dialog.sheet { padding:0; margin:auto; border:1px solid var(--line); border-radius:25px; width:calc(100% - 40px); max-width:520px; max-height:calc(100dvh - 60px); background:var(--surface); color:var(--text); box-shadow:0 30px 120px rgba(0,0,0,.23); overscroll-behavior:contain; }
dialog::backdrop { background:rgba(15,25,42,.36); backdrop-filter:blur(6px); }
.sheet-header { padding:22px 25px 12px; display:flex; align-items:center; justify-content:space-between; gap:15px; position:sticky; top:0; background:var(--glass); backdrop-filter:blur(20px); z-index:2; }
.sheet-header h2 { font-size:20px; }
.close-button { background:var(--surface-secondary); border-radius:50%; color:var(--secondary); min-height:44px; min-width:44px; width:44px; height:44px; padding:12px; }
.close-button .icon { width:16px; height:16px; stroke-width:2; }
.sheet-content { padding:17px 25px 7px; }
.sheet-footer { padding:19px 25px 23px; border-top:1px solid var(--line); background:var(--glass); backdrop-filter:blur(24px); position:sticky; bottom:0; z-index:2; }
.status-pill { font-size:11px; display:inline-flex; align-items:center; gap:6px; padding:7px 10px; border-radius:7px; background:var(--blue-soft); color:var(--blue); }
.status-pill .icon { width:13px; height:13px; }
.status-pill.done { background:var(--green-soft); color:var(--green); }
.task-detail h2 { font-size:25px; line-height:1.35; overflow-wrap:anywhere; }
.detail-assignee { display:flex; align-items:center; gap:11px; margin:23px 0; }
.detail-assignee > div > span { color:var(--secondary); display:block; font-size:10px; margin-bottom:5px; }
.detail-assignee strong { font-size:12px; font-weight:550; overflow-wrap:anywhere; }
.task-description { font-size:14px; color:var(--body-text); line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; margin:0 0 25px; }
.detail-photos { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin:25px 0; }
.detail-photos button { padding:0; border-radius:12px; overflow:hidden; aspect-ratio:1; }
.detail-photos img { width:100%; height:100%; object-fit:cover; }
.detail-dates { border-top:1px solid var(--line); padding-top:20px; margin-top:21px; }
.detail-dates > div { display:flex; align-items:flex-start; gap:12px; padding:7px 0 15px; }
.detail-dates .icon { width:17px; height:17px; color:var(--secondary); margin-top:1px; }
.detail-dates span { font-size:11px; color:var(--secondary); }
.detail-dates strong { display:block; color:var(--body-text); font-size:12px; font-weight:500; margin-top:6px; line-height:1.5; }
.created-by,.retention-note { font-size:10px; line-height:1.7; color:var(--secondary); margin-bottom:20px; }
.retention-note { background:var(--surface-secondary); border-radius:10px; padding:10px 12px; }
.upload-button { border:1px dashed var(--line-strong); min-height:64px; border-radius:12px; display:flex; align-items:center; justify-content:center; gap:7px; cursor:pointer; color:var(--blue); position:relative; overflow:hidden; font-size:12px; background:var(--surface-secondary); }
.upload-button .icon { width:18px; height:18px; }
.upload-button input { position:absolute; inset:0; opacity:0; height:100%; cursor:pointer; }
.upload-previews { display:flex; gap:8px; flex-wrap:wrap; }
.upload-previews:empty { display:none; }
.upload-preview { width:calc((100% - 32px)/5); aspect-ratio:1; position:relative; margin-bottom:3px; }
.upload-preview img { width:100%; height:100%; object-fit:cover; border-radius:10px; }
.remove-photo { width:44px; height:44px; border-radius:50%; background:transparent; color:#fff; padding:15px; position:absolute; top:-14px; right:-12px; }
.remove-photo::before { content:''; position:absolute; inset:9px; background:#172e4d; border-radius:50%; box-shadow:0 0 0 2px var(--surface); z-index:0; }
.remove-photo .icon { position:relative; z-index:1; }
.remove-photo .icon { width:14px; height:14px; }
.role-person { display:flex; align-items:center; gap:16px; margin-bottom:26px; }
.role-person strong { font-size:18px; overflow-wrap:anywhere; }
.role-person p { font-size:12px; color:var(--secondary); margin-top:6px; overflow-wrap:anywhere; }
.role-explanation { background:var(--surface-secondary); border-radius:14px; padding:18px; margin-bottom:20px; }
.role-explanation h3 { font-size:14px; }
.role-explanation p { color:var(--secondary); font-size:12px; line-height:1.7; margin-top:7px; }
.inline-info { font-size:12px; line-height:1.7; color:var(--secondary); display:flex; align-items:flex-start; gap:10px; padding-bottom:20px; }
.inline-info .icon { width:18px; height:18px; color:var(--blue); margin-top:2px; }
.photo-viewer { border:0; background:#080c12; color:#fff; position:fixed; inset:0; margin:0; width:100vw; max-width:none; height:100dvh; max-height:none; padding:0; }
.photo-viewer[open] { display:flex; flex-direction:column; align-items:center; }
.photo-viewer::backdrop { background:#080c12; }
.photo-viewer-top { align-self:stretch; min-height:70px; padding:calc(15px + env(safe-area-inset-top)) 24px 15px; display:flex; align-items:center; justify-content:space-between; font-size:13px; color:#c2cbda; }
.photo-viewer-top .close-button { background:#29313f; color:#fff; width:44px; height:44px; }
.photo-viewer > img { flex:1; min-height:0; max-height:calc(100dvh - 180px); width:100%; object-fit:contain; }
.photo-viewer-nav { padding:18px 15px calc(18px + env(safe-area-inset-bottom)); display:flex; justify-content:center; gap:9px; }
.photo-viewer-nav button { width:50px; height:50px; padding:2px; border:2px solid transparent; border-radius:9px; }
.photo-viewer-nav button.selected { border-color:#8facff; }
.photo-viewer-nav img { width:100%; height:100%; border-radius:5px; object-fit:cover; }
.confirmation-label { display:flex;align-items:center;gap:5px;color:var(--secondary);font-size:10px;line-height:1.5;margin-top:8px;overflow-wrap:anywhere; }
.confirmation-label .icon { width:13px;height:13px; }
.confirmation-label.is-confirmed { color:var(--green); }
.sheet-footer .button + .button { margin-top:10px; }
.role-label { font-size:11px;color:var(--secondary);line-height:1.5; }
.analytics-period { display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-bottom:24px; }
.date-range { display:flex;align-items:flex-end;gap:10px; }
.date-range label { display:flex;flex-direction:column;gap:6px;color:var(--secondary);font-size:10px;min-width:0; }
.date-range input { width:145px;height:42px;font-size:12px; }
.date-range .button { min-height:42px;padding:10px 14px;font-size:12px; }
.analytics-metrics { grid-template-columns:repeat(4,minmax(0,1fr));gap:15px; }
.analytics-metrics .metric { min-height:162px;padding:22px 20px; }
.analytics-metrics .metric-label { font-size:12px; }
.analytics-metrics .metric-label .icon { width:16px;height:16px; }
.analytics-table-wrap { overflow-x:auto;overscroll-behavior-x:contain; }
.analytics-table { width:100%;border-collapse:collapse;min-width:660px;text-align:left; }
.analytics-table th { font-size:10px;font-weight:550;color:var(--secondary);padding:15px 20px;background:var(--surface-secondary);white-space:nowrap; }
.analytics-table th:first-child { padding-left:24px;width:36%; }
.analytics-table td { border-top:1px solid var(--line);padding:17px 20px;font-size:14px; }
.analytics-table td:first-child { padding-left:24px; }
.analytics-table td button { text-align:left;min-height:44px;padding:0; }
.analytics-table td strong { display:block;font-size:13px;font-weight:550;overflow-wrap:anywhere; }
.analytics-table td small { display:block;font-size:10px;color:var(--secondary);margin-top:5px; }
.confirmed-number { color:var(--green);font-weight:600; }
.notification-panel { margin-bottom:22px; }
.notification-panel .section-heading { padding:18px 22px; }
.notification-panel h2 { font-size:14px; }
.notification-panel h2 .icon { width:17px;height:17px;color:var(--blue); }
.notification-item { display:grid;grid-template-columns:minmax(0,1fr) 18px;gap:5px 10px;text-align:left;padding:16px 22px;width:100%;border-top:1px solid var(--line);font-size:12px;line-height:1.6; }
.notification-item.unread { background:var(--blue-soft); }
.notification-item > span { grid-column:1; }
.notification-item small { grid-column:1;color:var(--secondary);font-size:10px; }
.notification-item > .icon { grid-column:2;grid-row:1 / 3;align-self:center;width:15px;color:var(--secondary); }
.analytics-create { min-height:40px;padding:10px 14px;font-size:12px;align-self:center; }
.period-summary { margin-bottom:20px; }
.period-series-head,.period-series-row { display:grid;grid-template-columns:minmax(130px,1.4fr) repeat(3,minmax(0,1fr));align-items:center;gap:10px;padding:15px 24px; }
.period-series-head { background:var(--surface-secondary);font-size:10px;color:var(--secondary); }
.period-series-head > span:not(:first-child),.period-series-row > span { text-align:center; }
.period-series-row { border-top:1px solid var(--line);font-size:14px;min-height:55px; }
.period-series-row > strong { font-size:12px;font-weight:500;line-height:1.6; }
.disclosure-button { min-height:78px;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 24px;width:100%;text-align:left; }
.disclosure-button strong { display:block;font-size:14px;font-weight:550; }
.disclosure-button small { display:block;font-size:11px;color:var(--secondary);line-height:1.6;margin-top:5px; }
.disclosure-button > .icon { width:17px;color:var(--secondary);transition:transform .15s; }
.disclosure-button[aria-expanded="true"] > .icon { transform:rotate(90deg); }
.notifications-quiet .section-heading { padding-top:9px;padding-bottom:9px; }
.notifications-quiet h2 { font-size:12px;color:var(--secondary);font-weight:500; }
.member-role-badge { display:inline-flex;font-size:9px;line-height:1.5;color:var(--blue);background:var(--blue-soft);border-radius:5px;padding:3px 6px;margin-top:7px;max-width:100%; }
.detail-assignee .member-role-badge { display:inline-flex;font-size:9px;margin-top:7px;margin-bottom:0; }
.employee-info .member-role-badge { font-size:8px; }
.button.danger { background:var(--coral);color:white; }
.danger-text,.delete-user-button { color:var(--coral); }
.delete-user-button .icon { width:17px;height:17px; }
.profile-editor .profile-card { border:0;box-shadow:none;border-radius:0; }
.profile-name-form,.avatar-form { padding:0 24px 24px; }
.profile-name-form .field { margin-bottom:12px; }
.profile-name-form .button { min-height:42px;font-size:12px; }
.avatar-form { padding-top:20px;border-top:1px solid var(--line); }
.avatar-actions { display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px; }
.avatar-picker { position:relative;overflow:hidden;cursor:pointer;font-size:12px; }
.avatar-picker input { position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer; }
.avatar-form .field-help { display:block; }
.avatar-form .form-error { margin-top:13px; }
.avatar-form > .button { margin-top:14px; }
.avatar-draft { display:flex;align-items:center;gap:12px;margin:16px 0; }
.avatar-draft > img { width:54px;height:54px;border-radius:50%;object-fit:cover;flex-shrink:0; }
.avatar-draft > span { flex:1;font-size:11px;color:var(--secondary);overflow-wrap:anywhere;min-width:0; }
.assignment-history { border-top:1px solid var(--line);padding-top:17px;margin:3px 0 22px; }
.assignment-history h3 { font-size:12px;margin-bottom:12px; }
.assignment-history > div { border-left:2px solid var(--line-strong);padding:0 0 0 12px;margin:13px 0; }
.assignment-history strong { display:block;font-size:11px;font-weight:550;line-height:1.6;overflow-wrap:anywhere; }
.assignment-history small { display:block;font-size:10px;color:var(--secondary);line-height:1.7;margin-top:4px; }
.assignment-history > p { font-size:10px;color:var(--secondary);line-height:1.7; }
.transfer-task-title { font-size:16px;font-weight:600;line-height:1.5;margin-bottom:13px;overflow-wrap:anywhere; }
.former-employee { display:block;min-height:44px;padding:6px 0; }
.weekday-badge { display:inline-flex;padding:3px 7px;border-radius:6px;background:var(--blue-soft);color:var(--blue);font-size:10px;line-height:1.4;font-weight:500; }
.weekday-unspecified { color:var(--secondary);background:var(--surface-secondary); }
.weekday-filter { display:flex;align-items:center;gap:5px;overflow-x:auto;max-width:100%;margin:0 0 17px;padding:3px 0 7px;scrollbar-width:thin;overscroll-behavior-x:contain; }
.weekday-filter button { min-height:44px;min-width:44px;flex-shrink:0;white-space:nowrap;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:10px 13px;font-size:12px;color:var(--secondary); }
.weekday-filter button.selected { border-color:var(--blue);color:var(--blue);background:var(--blue-soft); }
.task-detail-badges { display:flex;align-items:center;flex-wrap:wrap;gap:7px; }
.task-detail-badges .weekday-badge { padding:7px 9px;font-size:11px; }
.repeat-tour-button { margin-top:24px;width:100%;justify-content:flex-start;font-size:12px; }
@keyframes spin { to { transform:rotate(360deg); } }
@keyframes pulse { 50% { opacity:.5; } }
@keyframes toast-in { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@media (min-width:1600px) { .main { padding-top:58px; } .metrics { gap:24px; } .overview-grid { gap:28px; } }
@media (max-width:1190px) {
  .sidebar { width:218px; padding-left:15px; padding-right:15px; }
  .workspace { width:calc(100% - 218px); margin-left:218px; }
  .main { padding:36px 30px; }
  .overview-grid { grid-template-columns:minmax(0,1fr); }
  .team-panel { display:none; }
  .metric { padding:22px 20px; }
  .metric-description { font-size:11px; }
  .metric-arrow { right:14px; bottom:18px; }
  .task-toolbar { align-items:flex-start; flex-wrap:wrap; }
  .task-filters { flex-basis:100%; justify-content:flex-start; }
  .search-field { max-width:none; }
  .settings-grid { gap:20px; }
  .theme-panel { padding:12px 8px; }
  .theme-preview { width:58px; }
  .toasts { left:calc(50% + 109px); }
  .username { display:none; }
  .analytics-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:760px) {
  :root { font-size:16px; }
  .sidebar { display:none; }
  .workspace { width:100%; margin-left:0; }
  .mobile-header { height:calc(73px + env(safe-area-inset-top)); padding:calc(11px + env(safe-area-inset-top)) 23px 9px; display:flex; align-items:center; justify-content:space-between; }
  .mobile-header > a { display:flex; align-items:center; width:107px; min-height:44px; }
  .mobile-header > a { gap:7px; }
  .mobile-header .brand-logo { width:30px; height:30px; flex:none; }
  .mobile-brand-name { color:var(--text);font-size:12px;font-weight:750;letter-spacing:-.01em;line-height:1;white-space:nowrap; }
  .mobile-header .avatar { width:34px; height:34px; font-size:12px; }
  .avatar-button { padding:0; border-radius:50%; }
  .main { padding:17px 22px calc(112px + env(safe-area-inset-bottom)); }
  .page-heading { margin-bottom:25px; gap:12px; align-items:flex-start; flex-wrap:wrap; }
  .page-heading > div { min-width:0; }
  .eyebrow { font-size:11px; margin-bottom:8px; }
  .page-heading h1 { font-size:29px; line-height:1.2; }
  .page-heading p { font-size:12px; margin-top:9px; line-height:1.6; }
  .page-heading .create-button { margin-top:7px; width:100%; min-height:47px; font-size:13px; border-radius:13px; }
  .bottom-nav { position:fixed; display:flex; align-items:center; justify-content:space-evenly; gap:4px; left:14px; right:14px; bottom:calc(12px + env(safe-area-inset-bottom)); padding:7px 6px; border:1px solid color-mix(in srgb,var(--line-strong) 70%,transparent); border-radius:24px; background:var(--glass); backdrop-filter:blur(25px) saturate(1.4); -webkit-backdrop-filter:blur(25px) saturate(1.4); z-index:15; box-shadow:0 5px 30px rgba(23,46,77,.10); }
  .bottom-nav .nav-item { min-height:51px; min-width:0; padding:6px 4px 5px; flex-direction:column; gap:5px; border-radius:17px; font-size:9px; position:relative; flex:1; font-weight:550; text-align:center; }
  .bottom-nav .nav-item .icon { width:21px; height:21px; }
  .bottom-nav .nav-count { display:none; }
  .bottom-nav .nav-item.active { background:var(--blue-soft); }
  .metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:11px; margin-bottom:25px; }
  .metric { min-height:151px; padding:19px 18px 18px; border-radius:19px; }
  .metric > strong { font-size:37px; margin:12px 0 6px; }
  .metric-label { font-size:12px; gap:6px; }
  .metric-label .icon { width:16px; height:16px; }
  .metric-description { font-size:10px; max-width:110px; line-height:1.5; display:block; }
  .metric-arrow { right:12px; bottom:14px; width:22px; height:22px; }
  .metric:nth-child(3) { grid-column:1 / -1; min-height:74px; padding:18px; display:flex; align-items:center; gap:16px; }
  .metric:nth-child(3) .metric-label { order:2; flex:1; display:block; font-size:12px; }
  .metric:nth-child(3) .metric-label .icon { display:none; }
  .metric:nth-child(3) > strong { margin:0; font-size:30px; }
  .metric:nth-child(3) .metric-description { order:3; max-width:none; margin-right:27px; font-size:10px; }
  .metric:nth-child(3) .metric-arrow { top:26px; bottom:auto; }
  .panel { border-radius:19px; }
  .section-heading { padding:20px 19px 17px; }
  .section-heading h2 { font-size:17px; }
  .section-heading p { font-size:10px; margin-top:6px; }
  .text-button { font-size:11px; }
  .task-row,.task-results .task-row { padding:15px 18px; gap:7px; }
  .task-body { padding-top:9px; }
  .task-body > strong { font-size:13px; line-height:1.5; }
  .task-excerpt { font-size:11px; margin-top:4px; }
  .task-meta { gap:5px; font-size:10px; margin-top:8px; }
  .task-status { margin-left:-9px; width:44px; min-width:44px; padding:10px; }
  .task-status > span { width:21px; height:21px; }
  .task-thumb { width:44px; height:48px; margin-left:2px; border-radius:8px; }
  .assignee-label { max-width:99px; }
  .quiet-note { font-size:10px; align-items:flex-start; margin-top:19px; gap:7px; }
  .quiet-note .icon { margin-top:1px; }
  .task-toolbar { display:block; margin-bottom:17px; }
  .segmented { border-radius:11px; }
  .task-toolbar > .segmented { width:100%; }
  .segmented button { min-height:37px; flex:1; padding-left:9px; padding-right:9px; font-size:12px; }
  .task-filters { margin-top:14px; gap:8px; }
  .search-field { flex:1; }
  .assignee-filter { width:136px; }
  .search-field input,.assignee-filter select { height:44px; font-size:11px; border-radius:11px; }
  .assignee-filter select { padding-left:10px; }
  .list-caption { padding:17px 18px; font-size:10px; }
  .list-caption > span { font-size:9px; }
  .task-results .empty-state { padding:45px 20px; }
  .empty-state { padding:39px 20px; }
  .empty-state h2 { font-size:17px; }
  .empty-state p { font-size:12px; max-width:250px; }
  .empty-icon { width:51px; height:51px; border-radius:15px; margin-bottom:17px; }
  .empty-icon .icon { width:24px; height:24px; }
  .team-panel { display:block; }
  .overview-grid { gap:20px; }
  .employee-row { padding:16px 18px; min-height:77px; }
  .employee-info strong { font-size:12px; }
  .employee-info small { font-size:10px; }
  .completion-note { padding:16px; margin:8px 14px 14px; }
  .completion-note strong { font-size:11px; }
  .completion-note small { font-size:10px; }
  .export-button { margin-top:6px; min-height:42px; font-size:12px; padding:10px 14px; }
  .team-explainer { padding:18px; gap:11px; margin-bottom:20px; }
  .team-explainer strong { font-size:12px; }
  .team-explainer p { font-size:11px; }
  .team-explainer > .icon { width:20px; height:20px; }
  .team-member { display:block; }
  .team-member .employee-row { padding-bottom:7px; }
  .member-role { padding:0 18px 15px 65px; display:flex; gap:10px; justify-content:space-between; }
  .member-role .username { display:block; font-size:10px; max-width:120px; }
  .role-button { padding:6px 9px; font-size:9px; min-height:44px; }
  .workload { margin:0 12px; }
  .workload strong { font-size:17px; }
  .workload small { font-size:9px; }
  .settings-grid { grid-template-columns:minmax(0,1fr); gap:26px; }
  .profile-card { padding:23px; }
  .profile-card h2 { font-size:21px; }
  .group-label { margin-top:24px; font-size:10px; }
  .theme-preview { width:65px; }
  .theme-panel { padding:14px 12px; }
  .theme-option { font-size:10px; }
  .settings-export { padding:20px; }
  .password-form { padding:22px; }
  .settings-about { padding-top:30px; padding-bottom:10px; }
  .toasts { left:50%; bottom:calc(100px + env(safe-area-inset-bottom)); max-width:calc(100% - 32px); }
  .toast { padding:13px 16px; border-radius:14px; font-size:12px; }
  .back-button { margin-top:-10px; }
  .auth-page { padding:28px 22px 15px; }
  .auth-brand { width:153px; margin:16px 0 32px; }
  .auth-card { padding:28px 25px 25px; border-radius:25px; max-width:390px; }
  .auth-card h1 { font-size:26px; }
  .auth-subtitle { font-size:12px; }
  .auth-bottom { font-size:10px; max-width:390px; }
  .field input,.field textarea,.field select { font-size:16px; }
  .field { font-size:12px; }
  .auth-submit { min-height:48px; }
  dialog.sheet { position:fixed; top:auto; bottom:0; width:100%; max-width:600px; margin:0 auto; border-radius:24px 24px 0 0; max-height:calc(100dvh - 25px); border-bottom:0; }
  .sheet-header { padding:20px 22px 12px; }
  .sheet-header h2 { font-size:20px; }
  .sheet-content { padding:17px 22px 6px; }
  .sheet-footer { padding:17px 22px calc(20px + env(safe-area-inset-bottom)); }
  .task-detail h2 { font-size:24px; }
  .task-description { font-size:14px; }
  .detail-assignee { margin:22px 0; }
  .detail-dates strong { font-size:12px; }
  .close-button { min-width:44px; min-height:44px; }
  .analytics-period { gap:16px; }
  .analytics-period > .segmented { width:100%; }
  .date-range { display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);width:100%;gap:10px; }
  .date-range input { width:100%;height:44px;font-size:16px;padding:0 9px; }
  .date-range .button { grid-column:1 / -1; }
  .analytics-metrics { gap:11px; }
  .analytics-metrics .metric { min-height:139px;padding:18px 16px; }
  .analytics-metrics .metric:nth-child(3) { grid-column:auto;display:block; }
  .analytics-metrics .metric:nth-child(3) .metric-label { display:flex; }
  .analytics-metrics .metric:nth-child(3) .metric-label .icon { display:block; }
  .analytics-metrics .metric:nth-child(3) > strong { font-size:37px;margin:12px 0 6px; }
  .analytics-metrics .metric-description,.analytics-metrics .metric:nth-child(3) .metric-description { margin-right:0;font-size:9px; }
  .analytics-table { min-width:615px; }
  .analytics-table th,.analytics-table td { padding-left:14px;padding-right:14px; }
  .analytics-table th:first-child,.analytics-table td:first-child { padding-left:19px; }
  .analytics-table td:first-child { position:sticky;left:0;background:var(--surface);box-shadow:5px 0 10px -8px rgba(0,0,0,.15);min-width:150px;max-width:180px; }
  .analytics-table td strong { font-size:12px; }
  .analytics-table td small { font-size:9px; }
  .status-tabs button { font-size:11px;gap:5px;padding-left:7px;padding-right:7px; }
  .status-tabs button span { min-width:16px;font-size:9px; }
  .role-label { font-size:10px; }
  .notification-panel .section-heading { padding:17px 18px; }
  .notification-panel h2 { font-size:13px; }
  .notification-item { padding:15px 18px;font-size:11px; }
  .page-heading .analytics-create { width:auto;min-height:40px;padding:10px 13px;font-size:11px;margin-top:4px; }
  .period-series-head,.period-series-row { grid-template-columns:minmax(83px,1.25fr) repeat(3,minmax(0,1fr));gap:5px;padding:13px 17px; }
  .period-series-head { font-size:8px;line-height:1.6; }
  .period-series-row { min-height:51px;font-size:13px; }
  .period-series-row > strong { font-size:10px; }
  .disclosure-button { padding:18px 19px;min-height:75px; }
  .disclosure-button strong { font-size:13px; }
  .disclosure-button small { font-size:10px; }
  .notifications-quiet .section-heading { padding-top:7px;padding-bottom:7px; }
  .notifications-quiet h2 { font-size:11px; }
  .profile-name-form,.avatar-form { padding-left:23px;padding-right:23px; }
  .employee-info .member-role-badge { font-size:8px;padding:2px 5px; }
  .member-role { gap:7px; }
  .weekday-filter { margin-bottom:13px;gap:5px; }
  .weekday-filter button { min-width:44px;padding-left:11px;padding-right:11px;font-size:11px; }
  .weekday-badge { font-size:9px; }
}
@media (max-width:365px) {
  .main { padding-left:16px; padding-right:16px; }
  .mobile-header { padding-left:17px; padding-right:17px; }
  .page-heading h1 { font-size:26px; }
  .metric { padding:17px 14px; }
  .metric-label { font-size:11px; }
  .metric-description { font-size:9px; max-width:96px; }
  .metric:nth-child(3) .metric-description { font-size:9px; }
  .task-row,.task-results .task-row { padding-left:14px; padding-right:14px; gap:3px; }
  .task-thumb { width:44px; height:44px; }
  .assignee-filter { width:118px; }
  .search-field input { padding-left:32px; }
  .search-field > .icon { left:10px; width:15px; }
  .auth-card { padding:26px 21px; }
  .auth-page { padding-left:16px; padding-right:16px; }
  .auth-card h1 { font-size:25px; }
  .theme-preview { width:58px; }
  .status-tabs button { font-size:10px; }
  .status-tabs button span { display:none; }
  .analytics-metrics .metric-label { font-size:10px;gap:5px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition:none !important; scroll-behavior:auto !important; }
}
/* Photo reports and review outcomes */
.status-tabs { flex-wrap:wrap;gap:3px; }
.status-tabs > button { min-height:40px;white-space:nowrap; }
.result-badge { display:inline-flex;align-items:center;gap:5px;margin-top:8px;padding:5px 8px;border-radius:7px;font-size:10px;line-height:1.4;font-weight:600;max-width:100%;color:var(--body-text);background:var(--surface-secondary); }
.result-badge .icon { width:13px;height:13px;flex:none; }
.result-refused { background:color-mix(in srgb,var(--coral) 15%,var(--surface));border:1px solid color-mix(in srgb,var(--coral) 45%,transparent); }
.result-refused .icon { color:var(--coral); }
.result-overdue { background:color-mix(in srgb,var(--coral) 15%,var(--surface));color:var(--coral);border:1px solid color-mix(in srgb,var(--coral) 45%,transparent); }
.result-postponed { background:var(--blue-soft);color:var(--blue);border:1px solid color-mix(in srgb,var(--blue) 25%,transparent); }
.result-completed { color:var(--green);background:var(--green-soft); }
.task-needs-review { border-left:3px solid var(--blue); }
.task-needs-review.task-refused { border-left-color:var(--coral); }
.workflow-summary { display:block;font-size:11px;line-height:1.5;color:var(--body-text);margin-top:7px;overflow-wrap:anywhere; }
.task-detail-badges { display:flex;flex-wrap:wrap;gap:7px;align-items:center;min-width:0; }
.task-detail-badges .result-badge { margin:0; }
.workflow-callout { padding:15px 16px;margin:0 0 22px;border-radius:13px;line-height:1.6;overflow-wrap:anywhere;background:var(--blue-soft);border:1px solid color-mix(in srgb,var(--blue) 25%,transparent); }
.workflow-callout strong { display:block;font-size:13px;color:var(--text); }
.workflow-callout p { font-size:12px;color:var(--body-text);margin:6px 0 0;white-space:pre-wrap; }
.refusal-callout { background:color-mix(in srgb,var(--coral) 10%,var(--surface));border-color:color-mix(in srgb,var(--coral) 35%,transparent); }
.photo-section { margin:23px 0; }
.photo-section h3,.workflow-history h3 { font-size:13px;font-weight:600;line-height:1.5;margin-bottom:12px; }
.photo-section h3 span { font-weight:400;color:var(--secondary); }
.photo-section .detail-photos { margin:12px 0; }
.workflow-history { margin:25px 0;border-top:1px solid var(--line);padding-top:20px; }
.workflow-event { padding:0 0 16px 13px;border-left:2px solid var(--line);overflow-wrap:anywhere; }
.workflow-event strong { font-size:12px;font-weight:550; }
.workflow-event small { display:block;margin-top:5px;font-size:10px;line-height:1.6;color:var(--secondary); }
.workflow-event p { font-size:12px;line-height:1.6;white-space:pre-wrap;margin-top:6px; }
.past-attempt { border:1px solid var(--line);border-radius:12px;margin:12px 0;padding:12px;font-size:12px; }
.past-attempt summary { cursor:pointer;line-height:1.6;font-weight:550; }
.past-attempt > p { margin-top:12px;font-size:11px;line-height:1.6;color:var(--secondary); }
.sheet-footer.workflow-actions { position:static;display:flex;flex-direction:column;gap:10px; }
.sheet-footer.workflow-actions .button + .button { margin-top:0; }
.outcome-actions { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
.outcome-actions .button { font-size:12px;padding-left:10px;padding-right:10px;min-width:0; }
.delete-task-action { min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;font-size:12px;margin-top:6px; }
.delete-task-action .icon { width:16px;height:16px; }
.no-photo-warning { border:1px solid color-mix(in srgb,var(--coral) 45%,transparent);background:color-mix(in srgb,var(--coral) 9%,var(--surface));border-radius:12px;padding:15px;margin-bottom:22px; }
.no-photo-warning strong { display:block;font-size:13px;line-height:1.6; }
.acknowledgement { display:flex;align-items:center;gap:10px;margin-top:10px;font-size:13px;line-height:1.5;min-height:44px;cursor:pointer; }
.acknowledgement input { width:21px;height:21px;flex:none;accent-color:var(--blue); }
.evidence-counter { font-size:12px;color:var(--secondary);font-weight:400;margin-top:10px; }
#completion-form .upload-preview { width:calc((100% - 16px)/3); }
@media (max-width:700px) {
  .status-tabs { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%; }
  .status-tabs > button { font-size:10px;padding:8px 4px;justify-content:center;gap:3px; }
  .task-detail-badges .result-badge { font-size:10px; }
  .outcome-actions .button { font-size:11px; }
  .workflow-callout { padding:13px 14px; }
  .workflow-summary { font-size:10px; }
  .analytics-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

/* Team structure, clear task days and regional remarks */
.task-periods { margin:0 0 18px;display:flex;gap:10px;align-items:center;flex-wrap:wrap; }
.task-periods .segmented { max-width:100%; }
.task-periods .segmented button { min-height:44px;white-space:nowrap; }
.overdue-entry { display:flex;align-items:center;gap:7px;color:var(--coral);background:transparent;border:0;padding:8px 0;min-height:44px;font-size:12px;text-align:left; }
.overdue-entry .icon { width:16px;height:16px; }
.overdue-entry.selected { font-weight:650; }
.task-toolbar > .search-field { width:100%;max-width:none; }
.compact-task-filters { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;width:100%; }
.compact-filter { min-width:0;display:block; }
.compact-filter > span { display:block;font-size:11px;color:var(--secondary);margin-bottom:6px; }
.compact-filter select { min-width:0;max-width:100%;width:100%;min-height:44px;background:var(--surface);color:var(--text);border:1px solid var(--line);border-radius:10px;padding:8px 28px 8px 11px;font:inherit;font-size:12px; }
.more-task-filters { width:100%; }
.more-task-filters > summary { font-size:12px;color:var(--secondary);cursor:pointer;padding:8px 0;min-height:36px; }
.more-task-filters[open] > summary { margin-bottom:8px; }
.category-badge { display:inline-block;font-size:10px;line-height:1.4;padding:4px 7px;border:1px solid var(--line);border-radius:6px;color:var(--secondary);max-width:100%; }
.task-meta { flex-wrap:wrap; }
.task-meta .category-badge { color:var(--blue);border-color:color-mix(in srgb,var(--blue) 18%,var(--line)); }
.regional-unread { display:flex;align-items:center;gap:6px;color:var(--blue);font-size:11px;font-weight:650;margin-top:9px;line-height:1.5; }
.regional-unread .icon { width:15px;height:15px;flex:none; }
.regional-comments { margin:18px 0 24px;padding:13px;border:2px solid color-mix(in srgb,var(--blue) 65%,var(--line));background:var(--blue-soft);border-radius:14px; }
.regional-comment + .regional-comment { border-top:1px solid color-mix(in srgb,var(--blue) 20%,var(--line));padding-top:14px;margin-top:14px; }
.regional-comment-heading { display:flex;align-items:flex-start;gap:7px;flex-wrap:wrap;color:var(--blue); }
.regional-comment-heading strong { font-size:10px;line-height:1.65;flex:1;min-width:120px;letter-spacing:.02em; }
.regional-comment-heading .icon { width:16px;height:16px;flex:none;margin-top:2px; }
.regional-comment p { white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.6;margin:9px 0 6px;color:var(--text); }
.regional-comment small { color:var(--secondary);font-size:10px; }
.new-comment-tag { padding:3px 6px;border-radius:5px;color:var(--surface);background:var(--blue);font-size:9px;font-weight:650; }
.regional-comments > .button { margin-top:14px; }
.regional-comment-editor { margin:20px 0;padding-top:22px;border-top:1px solid var(--line); }
.regional-comment-editor .field { margin-bottom:9px; }
.regional-comment-editor .button { margin-top:13px; }
.team-tree { overflow:hidden; }
.team-branch { border-top:1px solid var(--line); }
.team-branch:first-child { border-top:0; }
.team-branch > summary,.delegation-branch > summary,.delegation-region > summary { display:flex;align-items:center;gap:12px;list-style:none;cursor:pointer;min-height:74px;padding:17px 22px; }
.team-branch > summary::-webkit-details-marker,.delegation-branch > summary::-webkit-details-marker,.delegation-region > summary::-webkit-details-marker { display:none; }
.team-branch > summary > span:not(.avatar),.delegation-branch > summary > span,.delegation-region > summary > span { flex:1;min-width:0; }
.team-branch summary strong,.delegation-branch summary strong,.delegation-region summary strong { font-size:14px;line-height:1.5;overflow-wrap:anywhere; }
.team-branch summary small,.delegation-branch summary small,.delegation-region summary small { display:block;font-size:10px;line-height:1.6;color:var(--secondary);margin-top:4px; }
.team-branch summary > .icon,.delegation-branch summary > .icon,.delegation-region summary > .icon { width:16px;height:16px;flex:none; }
.team-branch[open] > summary > .icon,.delegation-branch[open] > summary > .icon,.delegation-region[open] > summary > .icon { transform:rotate(90deg); }
.team-branch-body { margin-left:20px;border-left:2px solid var(--line); }
.team-branch .team-member { padding-left:0; }
.member-role { flex-wrap:wrap; }
.manager-button { border:0;background:var(--blue-soft);color:var(--blue);border-radius:8px;font-size:11px;min-height:36px;padding:8px 10px;cursor:pointer; }
.unassigned-panel { margin-bottom:20px;border:1px solid color-mix(in srgb,var(--coral) 30%,var(--line)); }
.unassigned-panel .section-heading { background:color-mix(in srgb,var(--coral) 5%,var(--surface)); }
.delegation-report { margin:0 0 25px;overflow:hidden; }
.delegation-numbers { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;padding:4px 24px 18px; }
.delegation-numbers > span { min-width:0; }
.delegation-numbers small { display:block;color:var(--secondary);font-size:10px;line-height:1.5; }
.delegation-numbers strong { display:block;font-size:23px;font-weight:600;line-height:1.5;color:var(--text); }
.report-explanation { color:var(--secondary);font-size:11px;line-height:1.6;padding:0 24px 18px; }
.delegation-branch,.delegation-region { border-top:1px solid var(--line); }
.delegation-branch > summary > b,.delegation-region > summary > b { font-size:18px;color:var(--blue);font-weight:600; }
.delegation-region .delegation-branch { margin-left:16px;border-left:2px solid var(--line); }
.report-task-link { min-height:44px;display:flex;gap:5px;align-items:center;margin:0 24px 8px;font-size:12px; }
.report-task-link .icon { width:14px;height:14px; }
.delegation-reps { margin:0 22px 15px;padding:0 0 0 12px;border-left:2px solid var(--line); }
.delegation-rep { display:flex;width:100%;align-items:center;gap:9px;text-align:left;border:0;border-top:1px solid var(--line);background:transparent;color:var(--text);padding:13px 0;min-height:60px;cursor:pointer; }
.delegation-rep:first-child { border-top:0; }
.delegation-rep > span { flex:1;min-width:0; }
.delegation-rep strong { display:block;font-size:12px;overflow-wrap:anywhere; }
.delegation-rep small { display:block;font-size:10px;line-height:1.7;color:var(--secondary);margin-top:4px; }
.delegation-rep .icon { flex:none;width:15px;height:15px; }
.event-analytics > summary { color:var(--secondary);font-size:12px;line-height:1.6;cursor:pointer;min-height:44px;padding:10px 0;margin-bottom:12px; }
@media(max-width:700px) {
 .task-toolbar { display:flex;flex-direction:column;align-items:stretch;gap:13px; }
 .task-periods { gap:4px;margin-bottom:15px; }
 .task-periods .segmented { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%; }
 .task-periods .segmented button { padding:8px 3px;font-size:11px;justify-content:center; }
 .compact-filter select { font-size:11px; }
 .compact-task-filters { gap:9px; }
 .category-badge { font-size:9px; }
 .regional-unread { font-size:10px; }
 .regional-comment p { font-size:13px; }
 .team-branch-body { margin-left:10px; }
 .team-branch > summary,.delegation-branch > summary,.delegation-region > summary { padding:15px;gap:9px; }
 .team-branch summary strong,.delegation-branch summary strong,.delegation-region summary strong { font-size:13px; }
 .team-branch .employee-row { padding-left:14px;padding-right:14px; }
 .team-branch .member-role { padding-left:14px;padding-right:14px; }
 .delegation-numbers { grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 9px;padding:0 17px 17px; }
 .delegation-numbers strong { font-size:22px; }
 .delegation-numbers small { font-size:9px; }
 .report-explanation { padding:0 17px 15px;font-size:10px; }
 .report-task-link { margin-left:17px; }
 .delegation-reps { margin-left:16px;margin-right:16px; }
 .delegation-region .delegation-branch { margin-left:8px; }
 .unassigned-panel { margin-bottom:15px; }
}


/* Primary team controls stay visible above advanced account management. */
.team-page-actions { display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end; }
.named-team-list { display:grid;gap:20px; }
.named-team-heading { display:flex;align-items:center;gap:12px;padding:24px 24px 14px; }
.named-team-heading > div { min-width:0;flex:1; }
.named-team-heading h2 { font-size:19px;line-height:1.3;overflow-wrap:anywhere; }
.named-team-heading p { color:var(--secondary);font-size:12px;line-height:1.6;margin-top:6px;overflow-wrap:anywhere; }
.named-team-heading .avatar { flex:none; }
.team-member-kind { display:inline-block;margin-top:8px;padding:4px 9px;border-radius:8px;background:var(--blue-soft);color:var(--blue);font-size:11px;line-height:1.4; }
.team-automatic-note { color:var(--secondary);font-size:12px;line-height:1.6; }
.team-size { color:var(--secondary);font-size:12px;white-space:nowrap; }
.named-team-tools { display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:0 24px 18px; }
.named-team-tools:empty { display:none; }
.team-pool-note { font-size:12px;line-height:1.5;color:var(--secondary); }
.named-team-member { display:flex;align-items:center;border-top:1px solid var(--line); }
.named-team-member .employee-row { border-top:0;min-width:0;flex:1; }
.named-team-member .team-remove-button { padding:8px 18px 8px 0;font-size:12px;white-space:normal;text-align:left;flex:none; }
.team-empty { padding:0 24px 24px;color:var(--secondary);font-size:13px;line-height:1.6; }
.team-empty span { display:block;font-size:12px;margin-top:5px; }
.team-accounts { margin-top:28px; }
.team-accounts > summary { cursor:pointer;min-height:44px;padding:12px 0;color:var(--secondary);font-size:14px;font-weight:600; }
.team-accounts > .quiet-note { margin-bottom:15px; }

/* Representatives work from a day and one clear task action. */
.rep-workspace { max-width:920px; }
.rep-week-tabs { display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin:0 0 20px; }
.rep-filter-row { display:flex;align-items:center;gap:12px;margin:0 0 20px; }
.rep-filter-row .rep-week-tabs { flex:1;min-width:0;margin:0; }
.rep-attention-toggle { min-height:44px;display:inline-flex;align-items:center;gap:10px;padding:7px 11px;border:1px solid var(--line-strong);border-radius:13px;background:var(--surface);color:var(--secondary);font-size:14px;font-weight:550;white-space:nowrap; }
.rep-attention-toggle .rep-attention-state { min-width:32px;font-size:12px;text-align:right; }
.toggle-track { width:44px;height:26px;padding:3px;border-radius:15px;background:var(--line-strong);transition:background .18s ease; }
.toggle-track > span { display:block;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(18,31,50,.24);transition:transform .18s ease; }
.rep-attention-toggle.is-on { color:var(--blue);border-color:var(--blue);background:var(--blue-soft); }
.rep-attention-toggle.is-on .toggle-track { background:var(--blue); }
.rep-attention-toggle.is-on .toggle-track > span { transform:translateX(18px); }
.rep-week-tabs button { min-width:44px;min-height:44px;padding:10px 14px;border-radius:11px;background:var(--surface);border:1px solid var(--line-strong);font-size:16px;line-height:1.35;font-weight:550; }
.rep-week-tabs button.selected { background:var(--blue);border-color:var(--blue);color:var(--surface); }
.rep-week-tabs button:hover:not(.selected) { background:var(--blue-soft); }
.rep-search { max-width:none;width:100%;margin-bottom:20px; }
.rep-search input { font-size:16px; }
.rep-results .list-caption { font-size:16px;padding:18px 22px; }
.rep-task-row { align-items:center;gap:14px;min-height:104px; }
.rep-task-heading { display:flex;align-items:flex-start;justify-content:space-between;gap:10px; }
.rep-task-heading > strong { min-width:0;flex:1; }
.rep-category-tags { display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px;max-width:55%; }
.rep-category-tags > span { display:inline-flex;align-items:center;min-height:25px;padding:3px 8px;border:1px solid var(--line);border-radius:999px;background:var(--surface-secondary);color:var(--secondary);font-size:11px;line-height:1.35;font-weight:550; }
.rep-attention-mark { flex:none;width:25px;height:25px;display:flex;align-items:center;justify-content:center;border-radius:50%;background:var(--coral);color:#fff;font-size:16px;font-weight:700; }
.category-icon { width:32px;height:32px;object-fit:contain;flex:none; }
.rep-task-row .task-body { padding:4px 0;min-height:64px; }
.rep-task-row .task-body strong { font-size:17px;line-height:1.45;letter-spacing:0; }
.rep-task-row .task-excerpt { font-size:15px;line-height:1.5;margin-top:5px; }
.rep-task-meta { display:flex;align-items:center;gap:8px 14px;flex-wrap:wrap;margin-top:10px;color:var(--secondary);font-size:15px;line-height:1.45; }
.rep-status { display:inline-flex;align-items:center;min-height:28px;font-size:14px;line-height:1.4;font-weight:550;color:var(--secondary); }
.rep-status.is-new { color:var(--blue); }
.rep-status.is-confirmed { color:var(--green); }
.rep-status.is-refused { color:var(--coral); }
.rep-status.is-submitted { color:var(--blue); }
.rep-status.is-overdue { color:var(--coral); }
.rep-task-row .row-chevron { min-height:44px;min-width:44px;width:44px; }
.rep-task-row .regional-unread { font-size:14px;line-height:1.5;margin-top:8px; }
.rep-task-notice:empty { display:none; }
.rep-task-notice { max-width:1032px;padding:24px 40px 0;margin:0 auto; }
.rep-assignment-banner { display:flex;align-items:center;gap:14px;border:1px solid var(--blue);border-radius:16px;background:var(--blue-soft);padding:18px 20px; }
.rep-notice-icon { width:40px;height:40px;display:flex;align-items:center;justify-content:center;color:var(--blue);flex:none; }
.rep-assignment-banner > div { min-width:0;flex:1; }
.rep-assignment-banner strong { display:block;font-size:17px;line-height:1.4; }
.rep-assignment-banner p { margin-top:4px;font-size:16px;line-height:1.45;overflow-wrap:anywhere; }
.rep-assignment-banner span:not(.rep-notice-icon) { display:inline-block;margin-top:5px;font-size:14px;line-height:1.4;color:var(--secondary); }
.rep-assignment-banner .button { min-height:48px;font-size:16px;flex:none; }
.rep-sheet .sheet-header { align-items:flex-start; }
.rep-sheet .task-detail-badges { gap:8px 14px;align-items:center; }
.rep-day-label { color:var(--secondary);font-size:15px;line-height:1.5; }
.rep-task-detail h2 { font-size:28px;line-height:1.25;letter-spacing:-.025em; }
.rep-primary-actions { display:grid;gap:12px;margin:24px 0; }
.rep-primary-actions:empty { margin:0; }
.rep-primary-actions .button { min-height:52px;font-size:16px;line-height:1.4;white-space:normal; }
.rep-primary-actions .outcome-actions { display:grid;grid-template-columns:1fr 1fr;gap:12px; }
.rep-task-detail .task-description { font-size:17px;line-height:1.6; }
.rep-task-detail .photo-section h3 { font-size:17px;line-height:1.5;letter-spacing:0; }
.rep-task-detail .regional-comment p { font-size:16px;line-height:1.6; }
.rep-task-detail .regional-comment-heading strong { font-size:13px;line-height:1.6;letter-spacing:.02em; }
.rep-task-detail .retention-note,.rep-task-detail .created-by { font-size:14px;line-height:1.6; }
.rep-confirmed-note { display:flex;align-items:center;gap:8px;font-size:16px;line-height:1.5;color:var(--green);margin-top:18px; }
.rep-past-reports { margin-top:24px; }
.rep-past-reports > summary { min-height:44px;padding:10px 0;cursor:pointer;font-size:16px;line-height:1.5;color:var(--blue); }
.subtask-group { margin:19px 0 22px; }
.subtask-group h3,.pending-reports > h3 { display:flex;align-items:center;gap:9px;margin-bottom:9px;font-size:16px;line-height:1.45;letter-spacing:-.01em; }
.subtask-group h3 > span { min-width:24px;height:24px;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;padding:0 7px;background:var(--surface-secondary);color:var(--secondary);font-size:12px; }
.subtask-item,.pending-report-item { display:flex;align-items:flex-start;gap:12px;padding:13px 0;border-top:1px solid var(--line); }
.subtask-icon { width:34px;height:34px;flex:none;display:flex;align-items:center;justify-content:center;border-radius:10px;background:var(--surface-secondary); }
.subtask-icon .category-icon { width:26px;height:26px; }
.subtask-item > div,.pending-report-item > div { min-width:0;flex:1; }
.subtask-item strong,.pending-report-item strong { display:block;font-size:15px;line-height:1.45; }
.subtask-item p,.pending-report-item p { margin-top:3px;color:var(--body-text);font-size:15px;line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere; }
.subtask-item small { display:block;margin-top:5px;color:var(--secondary);font-size:12px;line-height:1.45; }
.subtask-history { margin:17px 0;border-top:1px solid var(--line); }
.subtask-history > summary { min-height:48px;display:flex;align-items:center;cursor:pointer;color:var(--blue);font-size:15px;font-weight:550; }
.subtask-history .subtask-group { margin-top:0; }
.pending-reports { margin:20px 0;padding:17px 16px;border:1px solid var(--blue);border-radius:15px;background:var(--blue-soft); }
.pending-report { padding:15px 0 2px;border-top:1px solid var(--line); }
.pending-report-heading { display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:8px; }
.pending-report-heading strong { font-size:15px; }
.pending-report-heading span { color:var(--secondary);font-size:12px; }
.pending-report-actions { display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:14px 0 8px; }
.pending-report-actions .button { min-height:46px;padding:10px 12px;white-space:normal; }
.completion-subtasks { min-width:0;border:0;padding:0;margin:13px 0 22px; }
.completion-subtasks legend { margin-bottom:9px;font-size:15px;font-weight:600; }
.completion-subtask { min-height:66px;display:flex;align-items:center;gap:12px;padding:11px 12px;border:1px solid var(--line);border-radius:13px;margin-top:8px;cursor:pointer;transition:border-color .16s ease,background .16s ease,transform .16s ease; }
.completion-subtask:has(input:checked) { border-color:var(--blue);background:var(--blue-soft);transform:translateY(-1px); }
.completion-subtask input { accent-color:var(--blue);width:20px;height:20px;flex:none; }
.completion-subtask > span:last-child { min-width:0; }
.completion-subtask strong { display:block;font-size:15px;line-height:1.4; }
.completion-subtask small { display:block;margin-top:3px;color:var(--secondary);font-size:14px;line-height:1.45;overflow-wrap:anywhere; }
.wizard-progress { display:block;margin-top:4px;color:var(--secondary);font-size:13px;font-weight:500; }
.wizard-content { min-height:235px; }
.wizard-step.is-active { animation:wizard-enter .18s ease-out both; }
.wizard-step > h3 { margin:3px 0 19px;font-size:20px;line-height:1.35;letter-spacing:-.02em; }
.wizard-hint { color:var(--secondary);font-size:14px;line-height:1.5;margin:-10px 0 17px; }
.wizard-category-title { display:flex;align-items:center;gap:9px;margin-bottom:7px; }
.wizard-category-title .category-icon { width:27px;height:27px; }
.category-choice-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px; }
.category-choice { position:relative;min-height:94px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:12px 7px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--body-text);font-size:13px;line-height:1.35;text-align:center;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease; }
.category-choice:has(input:checked) { border-color:var(--blue);background:var(--blue-soft);color:var(--blue);transform:translateY(-1px); }
.category-choice input { accent-color:var(--blue);width:20px;height:20px;margin:0; }
.category-choice-icon { display:flex;align-items:center;justify-content:center;height:31px; }
.category-choice-icon .category-icon { width:30px;height:30px; }
.wizard-instruction { margin:0 0 15px; }
.wizard-instruction textarea { min-height:86px; }
.wizard-footer { display:flex;align-items:center;gap:10px; }
.wizard-footer .button { flex:1;min-width:0;margin:0!important;white-space:normal; }
.wizard-footer .button[hidden] { display:none!important; }
@keyframes wizard-enter { from { opacity:.35;transform:translateY(5px); } to { opacity:1;transform:translateY(0); } }
[data-role="sales_rep"] .field,[data-role="sales_rep"] .form-intro { font-size:16px;line-height:1.55; }
[data-role="sales_rep"] input,[data-role="sales_rep"] select,[data-role="sales_rep"] textarea { font-size:16px; }
[data-role="sales_rep"] .notification-item { font-size:16px;line-height:1.5;min-height:60px; }
[data-role="sales_rep"] .button { min-height:44px; }
@media(max-width:700px) {
 .rep-workspace .page-heading { margin-bottom:22px; }
 .rep-workspace .page-heading p { font-size:16px;line-height:1.55; }
 .rep-filter-row { align-items:stretch;flex-direction:column;gap:10px;margin-bottom:17px; }
 .rep-week-tabs { display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:0; }
 .rep-week-tabs button { padding:10px 6px;font-size:16px; }
 .rep-week-tabs button[data-rep-day="all"] { grid-column:1 / 3; }
 .rep-week-tabs button[data-rep-day="overdue"] { grid-column:3 / 6; }
 .rep-attention-toggle { align-self:flex-start;min-height:44px; }
 .rep-task-row { padding:16px;gap:8px; }
 .rep-task-heading { align-items:flex-start;flex-direction:column;gap:5px; }
 .rep-category-tags { justify-content:flex-start;max-width:100%; }
 .rep-category-tags > span { min-height:23px;font-size:11px; }
 .rep-task-row .row-chevron { display:none; }
 .rep-task-row .task-body { min-height:72px; }
 .rep-task-row .task-body strong { font-size:17px; }
 .rep-task-row .task-excerpt { display:-webkit-box;font-size:15px;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden; }
 .rep-task-meta { gap:5px 12px;font-size:14px; }
 .rep-task-notice { padding:16px max(16px,env(safe-area-inset-left)) 0; }
 .rep-assignment-banner { padding:16px;gap:10px;flex-wrap:wrap; }
 .rep-assignment-banner .button { width:100%;margin-top:4px; }
 .rep-assignment-banner strong { font-size:16px; }
 .rep-notice-icon { width:32px; }
 .rep-sheet .sheet-content { padding-bottom:max(28px,env(safe-area-inset-bottom)); }
 .rep-task-detail h2 { font-size:26px; }
 .rep-task-detail .regional-comment-heading { align-items:flex-start; }
 .category-choice { min-height:85px; }
 .pending-report-actions { grid-template-columns:1fr; }
 .wizard-footer { padding-left:16px;padding-right:16px; }
}
@media(prefers-reduced-motion:reduce) {
 .rep-week-tabs button,.rep-primary-actions .button,.rep-assignment-banner .button,.completion-subtask,.category-choice,.toggle-track,.toggle-track > span { transition:none;transform:none; }
 .wizard-step.is-active { animation:none; }
}
.push-content { padding:18px 20px;background:var(--surface);border:1px solid var(--line-strong);border-radius:14px;margin-bottom:20px; }
.push-title { display:block;font-size:16px;line-height:1.5; }
.push-copy { margin-top:6px;color:var(--secondary);font-size:16px;line-height:1.5; }
.push-actions { display:flex;gap:10px;flex-wrap:wrap;margin-top:14px; }
.push-actions .button { font-size:16px;min-height:44px;white-space:normal; }
.push-actions .quiet { color:var(--secondary); }
.push-status { padding:14px 0;font-size:15px;line-height:1.5;color:var(--secondary); }
@media(max-width:700px) {
 .rep-results .rep-task-row { padding:16px;gap:12px; }
 .push-content { padding:16px; }
 .push-actions { display:grid;grid-template-columns:1fr; }
}
@media(max-width:700px) {
 .team-page-actions { width:100%;justify-content:flex-start; }
 .team-page-actions .button { padding:12px 14px;font-size:12px; }
 .named-team-list { gap:16px; }
 .named-team-heading { padding:18px 16px 13px;gap:10px;flex-wrap:wrap; }
 .named-team-heading h2 { font-size:17px; }
 .named-team-heading p { font-size:11px; }
 .team-size { width:100%;padding-left:48px;font-size:11px; }
 .named-team-tools { padding:0 16px 16px;gap:8px; }
 .named-team-tools .button { width:100%; }
 .named-team-member { flex-wrap:wrap; }
 .named-team-member .employee-row { flex-basis:100%;padding:16px;min-height:76px; }
 .named-team-member .team-remove-button { margin:0 16px 10px 64px;padding:5px 0;min-height:44px;font-size:12px; }
 .team-empty { padding:0 16px 18px;font-size:12px; }
}

/* Team work: reports first, people second, one clear action at a time. */
.sup-workspace { max-width:1040px; }
.sup-section { margin-bottom:24px; }
.sup-section-heading { padding:22px 20px 18px; }
.sup-section-heading h2 { font-size:20px;line-height:1.3; }
.sup-section-heading p { font-size:14px;line-height:1.5; }
.sup-review-task { padding:20px;border-top:1px solid var(--line); }
.sup-review-heading { display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap; }
.sup-review-heading > strong { width:100%;font-size:18px;line-height:1.4;overflow-wrap:anywhere; }
.sup-review-heading > span:not(.status-pill) { font-size:14px;color:var(--secondary);line-height:1.5; }
.sup-review-task .pending-reports { margin:16px 0 5px;border-color:var(--line-strong);background:var(--surface-secondary); }
.sup-review-task .pending-reports > h3 { color:var(--blue); }
.sup-review-task .text-button { padding-left:0;font-size:15px; }
.sup-review-task .detail-photos { margin:15px 0; }
.sup-review-task .workflow-callout { margin:16px 0 5px; }
.sup-review-task .photo-section h3 { font-size:15px; }
.sup-member-row { display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding:19px 20px;border-top:1px solid var(--line); }
.sup-member-main { display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 180px; }
.sup-member-main > div { min-width:0; }
.sup-member-main > div > strong { display:block;font-size:16px;line-height:1.4;font-weight:600;overflow-wrap:anywhere; }
.sup-member-main small { display:block;margin-top:5px;font-size:14px;line-height:1.5;color:var(--body-text); }
.sup-member-main .avatar { width:42px;height:42px; }
.sup-member-row > .button.compact { margin:0;min-height:44px;font-size:14px; }
.sup-member-stats { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;width:100%;padding-top:4px; }
.sup-stat { display:block;min-width:0;font-variant-numeric:tabular-nums; }
.sup-stat strong { display:block;font-size:23px;line-height:1.15;letter-spacing:-.035em;font-weight:650; }
.sup-stat small { display:block;font-size:12px;line-height:1.4;color:var(--body-text);margin-top:6px;overflow-wrap:anywhere; }
.sup-analytics-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:20px 0 24px; }
.sup-analytics-grid > .sup-stat { background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:20px; }
.sup-analytics-grid .sup-stat strong { font-size:34px; }
.sup-analytics-grid .sup-stat small { font-size:14px; }
.sup-analytics-grid > .sup-stat:nth-child(2) strong { color:var(--green); }
.sup-analytics-grid > .sup-stat:nth-child(3) strong { color:var(--blue); }
.sup-analytics-grid > .sup-stat:nth-child(4) strong { color:var(--coral); }
.sup-workspace > .quiet-note { margin-top:5px;font-size:14px;line-height:1.55; }
.sup-analytics-members .section-heading { padding:22px 20px 18px; }
.sup-roster-controls { margin-top:28px; }
.sup-roster-controls > summary { color:var(--blue);min-height:48px;padding:12px 2px;font-size:15px;font-weight:550;cursor:pointer; }
.sup-roster-controls[open] > summary { margin-bottom:10px; }
.sup-task-actions { display:flex;flex-wrap:wrap;gap:8px; }
.sup-task-actions .button.compact { margin:0;font-size:14px;padding:11px 15px;min-height:44px; }
.rep-task-row:has(.sup-task-actions) { flex-wrap:wrap; }
.rep-task-row:has(.sup-task-actions) > .task-body { flex-basis:calc(100% - 40px); }
.rep-task-row .sup-task-actions { width:100%; }
.rep-task-row .sup-task-actions .button { flex:1; }
.task-editor .editor-section { padding-bottom:22px;margin-bottom:22px;border-bottom:1px solid var(--line); }
.task-editor .editor-section:last-of-type { border-bottom:0;margin-bottom:0; }
.editor-section > h3 { font-size:18px;line-height:1.4;letter-spacing:-.02em;margin-bottom:18px; }
.editor-section > .field-help { font-size:14px;line-height:1.55;margin:-8px 0 16px; }
.editor-section .field { font-size:15px; }
.editor-section .field:last-child { margin-bottom:0; }
.editor-section .category-choice-grid { margin-bottom:22px; }
.editor-section .field-help:last-child { margin:14px 0 0; }
.editor-section .text-button { font-size:15px;white-space:normal;padding:8px 0;gap:8px;text-align:left; }
.editor-section .upload-button { font-size:15px;min-height:64px; }
.editor-photo-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:15px 0; }
.editor-photo-grid:empty { display:none; }
.editor-photo-grid .upload-preview { width:100%;height:auto;aspect-ratio:1; }
.editor-photo-grid .remove-photo { min-width:44px;min-height:44px; }
.task-editor .sheet-footer { padding-top:15px; }
.task-editor-sheet { scroll-padding-top:85px;scroll-padding-bottom:100px; }
.task-editor-sheet input,.task-editor-sheet select,.task-editor-sheet textarea { scroll-margin-top:100px; }
.task-editor .form-error { margin-bottom:18px;font-size:15px;line-height:1.5; }
.subtask-icon { background:none;width:36px;height:36px; }
.subtask-icon .category-icon { width:36px;height:36px; }
.category-choice-icon { height:36px; }
.category-choice-icon .category-icon { width:36px;height:36px; }
.wizard-category-title .category-icon { width:30px;height:30px; }
[data-role="supervisor"] input,[data-role="supervisor"] select,[data-role="supervisor"] textarea { font-size:16px; }
[data-role="supervisor"] .field,[data-role="supervisor"] .form-intro { font-size:15px;line-height:1.5; }
[data-role="supervisor"] .button { min-height:44px; }

/* Motion follows navigation and sheets, while controls respond to a light press. */
:is([data-role="sales_rep"],[data-role="supervisor"]) { --motion-ease:cubic-bezier(.2,.75,.25,1); }
:is([data-role="sales_rep"],[data-role="supervisor"]) .main > :is(.rep-workspace,.sup-workspace) { animation:workspace-enter .2s var(--motion-ease) both; }
:is([data-role="sales_rep"],[data-role="supervisor"]) dialog.sheet[open] { animation:sheet-enter .24s var(--motion-ease) both; }
:is([data-role="sales_rep"],[data-role="supervisor"]) dialog.sheet[open]::backdrop { animation:backdrop-enter .2s ease-out both; }
:is([data-role="sales_rep"],[data-role="supervisor"]) :is(.nav-item,.rep-week-tabs button,.rep-attention-toggle,.category-choice,.task-body,.sup-roster-controls > summary) { transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s var(--motion-ease); }
:is([data-role="sales_rep"],[data-role="supervisor"]) :is(.rep-week-tabs button,.rep-attention-toggle,.category-choice):active { transform:scale(.97); }
@keyframes workspace-enter { from { opacity:.65;transform:translateY(5px); } to { opacity:1;transform:translateY(0); } }
@keyframes sheet-enter { from { opacity:.4;transform:translateY(18px) scale(.99); } to { opacity:1;transform:translateY(0) scale(1); } }
@keyframes backdrop-enter { from { opacity:0; } to { opacity:1; } }
@media(min-width:701px) {
 .sup-member-stats { width:auto;min-width:375px;flex:1;max-width:470px;padding:0; }
 .sup-analytics-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:16px; }
 .sup-analytics-grid > .sup-stat { padding:23px; }
 .sup-section-heading,.sup-analytics-members .section-heading { padding:24px; }
 .sup-review-task,.sup-member-row { padding:22px 24px; }
 .sup-review-heading > strong { width:auto;flex:1;min-width:160px; }
 .sup-task-actions { width:auto!important; }
 .rep-task-row:has(.sup-task-actions) > .task-body { flex-basis:0; }
 .rep-task-row .sup-task-actions .button { flex:none; }
 .task-editor-sheet { max-width:600px!important; }
}
@media(max-width:700px) {
 .sup-workspace .page-heading { margin-bottom:22px; }
 .sup-workspace .page-heading p { font-size:16px;line-height:1.55; }
 .sup-workspace .page-heading .create-button { font-size:16px;min-height:48px; }
 .sup-workspace .rep-week-tabs button[data-sup-analytics-day="month"] { grid-column:1 / -1; }
 .sup-section { margin-bottom:18px; }
 .sup-member-row { padding:18px 16px; }
 .sup-member-row > .button.compact { flex:1 1 100%;margin-left:54px; }
 .sup-review-task { padding:18px 16px; }
 .sup-review-task .pending-reports { padding:15px 12px; }
 .sup-review-task .pending-report-heading { align-items:flex-start;flex-wrap:wrap; }
 .sup-review-task .pending-report-actions .button { font-size:15px; }
 .sup-member-stats .sup-stat small { font-size:12px; }
 .task-editor .sheet-content { padding-left:18px;padding-right:18px; }
 .task-editor .sheet-header { padding-left:18px;padding-right:18px; }
 .task-editor .sheet-footer { padding-left:18px;padding-right:18px;padding-bottom:max(18px,env(safe-area-inset-bottom)); }
 .task-editor .sheet-footer .button { min-height:50px;font-size:16px; }
 .task-editor .category-choice { font-size:14px; }
 .task-editor-sheet { max-height:calc(100dvh - max(12px,env(safe-area-inset-top)))!important; }
}
@media(prefers-reduced-transparency:reduce) {
 :is([data-role="sales_rep"],[data-role="supervisor"]) :is(.sheet-header,.sheet-footer) { background:var(--surface);backdrop-filter:none; }
 :is([data-role="sales_rep"],[data-role="supervisor"]) dialog::backdrop { backdrop-filter:none; }
}
@media(prefers-reduced-motion:reduce) {
 :is([data-role="sales_rep"],[data-role="supervisor"]) :is(.main > .rep-workspace,.main > .sup-workspace,dialog.sheet[open],dialog.sheet[open]::backdrop,.wizard-step.is-active) { animation:none; }
 :is([data-role="sales_rep"],[data-role="supervisor"]) :is(.button,.nav-item,.rep-week-tabs button,.rep-attention-toggle,.category-choice,.task-body,.sup-roster-controls > summary,.completion-subtask,.toggle-track,.toggle-track > span) { transition:none; }
 :is([data-role="sales_rep"],[data-role="supervisor"]) :is(.button,.rep-week-tabs button,.rep-attention-toggle,.category-choice):active { transform:none; }
}
/* Category briefs keep each instruction and its photos together. */
.category-brief { padding:22px 0;border-bottom:1px solid var(--line); }
.category-brief:first-child { padding-top:4px; }
.category-brief:last-child { border-bottom:0;padding-bottom:4px; }
.category-brief h3,.task-review-category h3 { display:flex;align-items:center;gap:10px;font-size:17px;line-height:1.4;margin:0 0 12px; }
.category-brief h3 .category-icon,.task-review-category h3 .category-icon { width:32px;height:32px; }
.category-brief .field { margin:0 0 12px; }
.category-brief textarea { min-height:96px;resize:vertical;font-size:16px; }
.category-photo-previews { display:flex;flex-wrap:wrap;gap:10px;margin:10px 0; }
.category-photo-previews:empty { display:none; }
.category-photo-previews .upload-preview,.category-photo-previews > img { width:82px;height:82px;border-radius:12px;object-fit:cover; }
.category-photo-previews .remove-photo { min-width:44px;min-height:44px; }
.category-add-photo { display:inline-flex;position:relative;align-items:center;gap:8px;min-height:44px;padding:10px 14px;border-radius:12px;background:var(--blue-soft);color:var(--blue);font-size:15px;font-weight:550;cursor:pointer; }
.category-add-photo input { position:absolute;width:1px;height:1px;opacity:0; }
.category-add-photo:focus-within { outline:2px solid var(--blue);outline-offset:3px; }
.category-add-photo.is-disabled { opacity:.45;cursor:default; }
.task-review-facts { margin:0 0 18px; }
.task-review-facts > div { padding:12px 0;border-bottom:1px solid var(--line); }
.task-review-facts dt { color:var(--body-text);font-size:13px;margin-bottom:5px; }
.task-review-facts dd { margin:0;font-size:17px;font-weight:550;overflow-wrap:anywhere; }
.task-review-category { padding:18px 0;border-bottom:1px solid var(--line); }
.task-review-category p { white-space:pre-wrap;font-size:16px;line-height:1.6;overflow-wrap:anywhere; }
.subtask-item .photo-section { margin-top:14px; }
.subtask-item .detail-photos { margin:10px 0; }
.sup-analytics-grid > .sup-stat:last-child { color:inherit; }
.sup-analytics-grid > .sup-stat:nth-child(1) strong { color:var(--text); }
.sup-analytics-grid > .sup-stat:nth-child(2) strong { color:var(--blue); }
.sup-analytics-grid > .sup-stat:nth-child(3) strong { color:var(--coral); }
@media(max-width:700px) {
 .sup-analytics-grid { grid-template-columns:repeat(3,minmax(0,1fr));gap:8px; }
 .sup-analytics-grid > .sup-stat { padding:16px 10px;border-radius:15px; }
 .sup-analytics-grid .sup-stat strong { font-size:29px; }
 .sup-analytics-grid .sup-stat small { font-size:12px; }
 .category-brief { padding:20px 0; }
 .create-sheet .wizard-step h3 { line-height:1.4; }
}


/* Regional managers: one branch at a time, all supervisors visible in weekly dynamics. */
.regional-workspace { max-width:1040px;animation:workspace-enter .2s var(--motion-ease) both; }
.regional-team-segment { display:grid;grid-template-columns:1fr 1fr;max-width:420px;margin-bottom:24px; }
.regional-team-segment button { min-height:44px;font-size:15px; }
.regional-team-management,.regional-metric-help { margin-top:24px; }
.regional-team-management > summary,.regional-metric-help > summary { min-height:48px;padding:12px 0;font-size:15px;font-weight:550;color:var(--blue);cursor:pointer; }
.regional-management-content { display:grid;gap:20px;padding-top:12px; }
.regional-management-content > .button { justify-self:start; }
.regional-management-content .named-team-list { margin:0; }
.regional-management-content .team-tree > .section-heading { padding:20px; }
.regional-report-loading > h2 { font-size:20px;margin:26px 0 8px; }
.regional-report-loading > p { font-size:15px;color:var(--body-text);margin-bottom:20px; }
.regional-analytics-tabs { display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:4px;max-width:520px;margin-bottom:20px; }
.regional-analytics-tabs button { min-width:0;min-height:44px;padding:0; }
.regional-member-stats { grid-template-columns:repeat(4,minmax(0,1fr)); }
.regional-member-stats .sup-stat:last-child strong { color:var(--secondary); }
.regional-week-explanation { display:flex;align-items:center;gap:8px;margin:-8px 0 22px;color:var(--body-text);font-size:14px; }
.current-week-dot { width:7px;height:7px;border-radius:50%;background:var(--blue);flex-shrink:0; }
.regional-dynamics-list { display:grid;gap:20px; }
.regional-dynamics-card { padding:22px;min-width:0; }
.regional-dynamics-heading { display:flex;align-items:center;gap:12px;margin-bottom:20px; }
.regional-dynamics-heading .avatar { width:42px;height:42px;flex-shrink:0; }
.regional-dynamics-heading h2 { font-size:19px;line-height:1.35;font-weight:600;overflow-wrap:anywhere; }
.regional-current-counts { display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:0 0 24px; }
.regional-current-counts > span { padding-left:14px;border-left:2px solid var(--line-strong); }
.regional-current-counts strong { display:block;font-size:29px;line-height:1.2;font-weight:650;letter-spacing:-.03em;font-variant-numeric:tabular-nums; }
.regional-current-counts small { display:block;font-size:13px;line-height:1.4;margin-top:5px;color:var(--body-text); }
.regional-current-counts > span:last-child strong { color:var(--coral); }
.regional-week-table { width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0;font-variant-numeric:tabular-nums; }
.regional-week-table th,.regional-week-table td { text-align:center;padding:12px 4px;vertical-align:top; }
.regional-week-table thead th { font-size:13px;font-weight:550;color:var(--body-text);border-bottom:1px solid var(--line); }
.regional-week-table th:first-child { width:75px;text-align:left;padding-left:0; }
.regional-week-table thead small { display:block;min-height:32px;font-size:11px;font-weight:400;color:var(--secondary);line-height:1.4;margin-top:6px; }
.regional-week-table tbody th { font-size:13px;font-weight:550;vertical-align:middle;color:var(--body-text); }
.regional-week-table td { font-size:22px;line-height:1.3;font-weight:600; }
.regional-week-table .current-week { background:var(--blue-soft);color:var(--blue); }
.regional-week-table thead .current-week { border-radius:10px 10px 0 0;border-bottom-color:var(--blue); }
.regional-week-table tbody tr:last-child .current-week { border-radius:0 0 10px 10px; }
.current-week-tag { display:block;font-size:10px;line-height:1.25;font-weight:600;color:var(--blue);margin-top:5px; }
.regional-metric-help p { color:var(--body-text);font-size:14px;line-height:1.6;margin:10px 0;max-width:720px; }
:is(.subtask-item,.pending-report-item) .subtask-category { display:block;color:var(--secondary);font-size:14px;font-weight:450;line-height:1.45; }
:is(.subtask-item,.pending-report-item) .subtask-instruction { margin-top:5px;color:var(--text);font-size:16px;line-height:1.5;font-weight:600;white-space:pre-wrap;overflow-wrap:anywhere; }
@media(min-width:900px) {
 .regional-analytics-member .sup-member-stats { min-width:460px;max-width:560px; }
 .regional-dynamics-list { grid-template-columns:repeat(2,minmax(0,1fr)); }
 .regional-week-table th:first-child { width:62px; }
 .regional-week-table thead th { font-size:12px; }
 .regional-week-table td { font-size:20px; }
}
@media(max-width:700px) {
 .regional-workspace .page-heading { margin-bottom:24px; }
 .regional-workspace .page-heading p { font-size:15px;line-height:1.5; }
 .regional-member-stats { gap:12px 6px;min-width:0;max-width:none;width:100%; }
 .regional-member-stats .sup-stat strong { font-size:24px; }
 .regional-member-stats .sup-stat small { font-size:11px;overflow-wrap:normal; }
 .regional-analytics-member { gap:18px; }
 .regional-team-management > summary,.regional-metric-help > summary { font-size:14px; }
 .regional-management-content > .button { width:100%; }
 .regional-dynamics-card { padding:20px 14px; }
 .regional-dynamics-heading h2 { font-size:18px; }
 .regional-current-counts { margin-bottom:18px;gap:10px; }
 .regional-current-counts strong { font-size:28px; }
 .regional-current-counts small { font-size:12px; }
 .regional-week-table th:first-child { width:59px; }
 .regional-week-table th,.regional-week-table td { padding:11px 2px; }
 .regional-week-table thead th { font-size:11px; }
 .regional-week-table thead small { font-size:10px;min-height:30px; }
 .regional-week-table tbody th { font-size:12px; }
 .regional-week-table td { font-size:20px; }
 .current-week-tag { font-size:9px; }
}
@media(max-width:360px) {
 .regional-analytics-tabs { grid-template-columns:repeat(3,minmax(0,1fr)); }
 .regional-workspace .sup-analytics-grid > .sup-stat { padding:16px 6px; }
 .regional-workspace .sup-analytics-grid > .sup-stat small { font-size:11px;white-space:nowrap; }
 .regional-dynamics-card { padding:18px 10px; }
 .regional-week-table th:first-child { width:53px; }
 .regional-week-table thead th { font-size:10px; }
 .regional-week-table thead small { font-size:9px; }
 .regional-week-table td { font-size:18px; }
 .regional-week-table tbody th { font-size:11px; }
 .regional-member-stats .sup-stat small { font-size:10px; }
}
@media(prefers-reduced-motion:reduce) {
 .regional-workspace { animation:none; }
}

/* Photo acquisition and prepared SRT work share the task's existing hierarchy. */
.photo-acquisition { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px; }
.photo-acquisition > label { display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;min-width:0;margin:0;padding:12px 8px;font-size:14px;line-height:1.35;text-align:center;white-space:normal; }
.photo-acquisition .icon { width:20px;height:20px;flex-shrink:0; }
.photo-acquisition input { position:absolute;width:1px;height:1px;opacity:0; }
.photo-acquisition > label:focus-within { outline:2px solid var(--blue);outline-offset:3px; }
.srt-work-badge { display:inline-flex;align-items:center;align-self:flex-start;gap:6px;border-radius:7px;padding:5px 8px;background:var(--blue-soft);color:var(--blue);font-size:12px;line-height:1.3;font-weight:600; }
.task-body > .srt-work-badge { margin-top:9px; }
.srt-work-section { display:grid;gap:12px;margin:20px 0; }
.srt-work-card { min-width:0;padding:18px;border:1px solid var(--line-strong);border-left:3px solid var(--blue);border-radius:14px;background:var(--surface-secondary); }
.srt-work-heading { display:flex;align-items:center;flex-wrap:wrap;gap:10px; }
.srt-work-heading strong { font-size:15px;overflow-wrap:anywhere; }
.srt-work-card > p,.srt-forward-summary > p { white-space:pre-wrap;overflow-wrap:anywhere;font-size:16px;line-height:1.55;margin:12px 0 8px; }
.srt-work-card > small { display:block;color:var(--secondary);font-size:12px;line-height:1.5; }
.srt-work-card .photo-section { margin:16px 0; }
.srt-forward-summary { padding:16px;background:var(--blue-soft);border-radius:12px;margin:14px 0; }
.srt-attribution { margin:12px 0;padding:12px;border-left:3px solid var(--blue);background:var(--blue-soft);border-radius:8px; }
.srt-attribution p { white-space:pre-wrap;overflow-wrap:anywhere;margin-top:6px;font-size:15px;line-height:1.5; }
@media(max-width:360px) {
 .photo-acquisition { grid-template-columns:1fr;gap:8px; }
 .srt-work-card { padding:15px; }
}
