:root {
  --blue:#1d59c7;
  --blue-hover:#1849a5;
  --active-ink:#1747a0;
  --active-fill:#e9f0ff;
  --danger:#ad343b;
  --green:#18734b;
  --amber:#8a5000;
  --ink:#1c2a3d;
  --muted:#526177;
  --line:#d8e1ec;
  --divider:#e5ebf2;
  --canvas:#f2f5f9;
  --surface:#fff;
  --nav-surface:#edf2f8;
  --subtle:#f8fafd;
  --radius:14px;
  --button-radius:9px;
  --sidebar:216px;
  --bottom-nav:64px;
  color:var(--ink);
  background:var(--canvas);
  font-size:100%;
}
body { font-size:.9375rem; line-height:1.6; }
::selection { background:#dbe7ff; color:#202939; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; border:0; }
.app-header { min-height:60px; padding:8px 28px; align-items:center; background:var(--surface); border-bottom:1px solid var(--line); }
.signed-in .app-header { margin-inline-start:var(--sidebar); }
.header-location,.header-actions { display:flex; align-items:center; gap:12px; }
.header-location { color:var(--ink); font-size:.875rem; font-weight:600; }
.mobile-brand,.mobile-due-label { display:none; }
.header-actions span { font-weight:400; font-size:.8125rem; color:var(--muted); }
.header-actions .avatar { color:#37577e; }
#logout { min-height:36px; font-size:.8125rem; padding:4px 12px; }
.avatar { display:inline-flex; align-items:center; justify-content:center; flex-shrink:0; width:32px; height:32px; border-radius:50%; background:#eaf0f8; color:#37577e; font-size:.75rem; font-weight:600; }
main { max-width:none; padding:28px clamp(20px,3vw,48px) 56px; }
.signed-in main { margin-inline-start:var(--sidebar); }
#authenticated > section,#notice { max-width:1400px; margin-inline:auto; }
#authenticated > #tasks-view { max-width:150rem; }
@media(min-width:75rem) {
  .signed-in main { padding-inline:clamp(1.5rem,1.67vw,3rem); }
}
.work-nav { position:fixed; inset:0 auto 0 0; width:var(--sidebar); padding:16px 12px; background:var(--nav-surface); border-inline-end:1px solid var(--line); display:flex; flex-direction:column; gap:6px; z-index:5; }
.brand-link { display:flex; align-items:center; gap:12px; min-height:47px; padding:4px 10px; margin-bottom:16px; text-decoration:none; color:var(--ink); font-size:1.0625rem; font-weight:700; }
.brand-mark { display:grid; place-items:center; flex:none; background:var(--blue); color:#fff; width:34px; height:34px; border-radius:10px; font-size:1.0625rem; }
.work-nav > button { position:relative; justify-content:flex-start; gap:10px; text-align:start; min-height:46px; padding:8px 12px; color:var(--muted); background:transparent; border-color:transparent; font-weight:550; }
.work-nav [aria-current=page] { background:var(--active-fill); color:var(--active-ink); font-weight:650; box-shadow:inset 0 0 0 1px #c6d7f6; }
.work-nav [aria-current=page]::before { content:""; position:absolute; inset-block-start:calc(50% - 10px); inset-inline-start:0; width:2px; height:20px; border-radius:2px; background:currentColor; }
.work-nav > button svg { width:19px; height:19px; flex-shrink:0; }
.work-nav > button:hover { background:var(--active-fill); border-color:transparent; }
.nav-bottom { margin-top:auto; padding:10px 12px 0; border-top:1px solid var(--line); font-size:.8125rem; }
.nav-bottom a { display:flex; align-items:center; min-height:44px; color:var(--muted); text-decoration:none; }
.nav-bottom span { display:none; }
h1 { font-size:clamp(1.375rem, 1.05rem + 1.5vw, 2rem); font-weight:720; letter-spacing:-.027em; line-height:1.25; margin-bottom:5px; }
h2 { font-size:1.125rem; font-weight:680; }
h3 { font-size:.9375rem; }
.page-head { align-items:center; gap:14px; margin-bottom:20px; }
.page-head p { font-size:.875rem; }
.workspace-heading { flex-wrap:wrap; }
.workspace-heading h1:only-child { margin-bottom:0; }
button,.button { border-color:#c4cfdf; border-radius:var(--button-radius); font-weight:550; min-height:42px; padding:8px 14px; font-size:.875rem; transition:background-color 150ms,border-color 150ms; }
.primary { background:var(--blue); border-color:var(--blue); color:#fff; }
button:hover,.button:hover { background:#f0f4fc; border-color:#97add0; }
.primary:hover { background:var(--blue-hover); border-color:var(--blue-hover); color:#fff; }
button:disabled { opacity:.45; }
:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.toolbar,.pagination,.form-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.task-more { position:relative; border:0; }
.task-more summary { display:flex; gap:6px; min-height:44px; list-style:none; }
.task-more summary::-webkit-details-marker { display:none; }
.task-more summary svg { flex:none; }
.task-more[open] summary { color:var(--active-ink); background:var(--active-fill); }
.task-more-panel { position:absolute; z-index:4; inset-block-start:calc(100% + 6px); inset-inline-end:0; display:grid; min-width:9rem; gap:3px; padding:5px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:0 8px 20px #1c2a3d19; }
.task-more:not([open]) .task-more-panel { display:none; }
.task-more-panel :is(button,a) { justify-content:start; border-color:transparent; white-space:nowrap; }
#create { min-height:44px; white-space:nowrap; gap:6px; }
#create svg { width:16px; height:16px; }
.task-overview { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); margin-bottom:16px; }
.task-overview:empty { display:none; }
.task-overview button { display:flex; flex-direction:column-reverse; justify-content:center; align-items:start; gap:0; min-width:0; min-height:79px; background:transparent; border:0; border-inline-end:1px solid var(--divider); padding:8px 18px; border-radius:0; text-align:start; }
.task-overview button:first-child { border-radius:var(--radius) 0 0 var(--radius); }
.task-overview button:last-child { border-radius:0 var(--radius) var(--radius) 0; }
.task-overview button:last-child { border:0; }
.task-overview span { color:var(--muted); font-size:.8125rem; }
.task-overview strong { color:var(--ink); font-weight:700; font-size:1.5rem; line-height:1.2; font-variant-numeric:tabular-nums; }
.task-overview [data-tone=active] strong,.task-overview [data-tone=todo] strong { color:var(--active-ink); }
.task-overview [data-tone=overdue] strong { color:var(--danger); }
.task-overview [data-tone=completed] strong { color:var(--green); }
.task-overview button:hover,.task-overview [aria-pressed=true] { background:var(--active-fill); }
.task-overview [aria-pressed=true] { box-shadow:inset 0 -2px var(--blue); }
.task-surface { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.task-list-surface { container:tasks / inline-size; }
.list-tools { padding:12px 18px; border-bottom:1px solid var(--divider); }
.scope-nav,.settings-nav { display:flex; flex-wrap:wrap; gap:6px; }
.scope-nav button,.settings-nav button { background:transparent; border:0; color:var(--muted); padding:6px 12px; min-height:44px; }
.scope-nav [aria-pressed=true],.settings-nav [aria-pressed=true] { color:var(--active-ink); background:var(--active-fill); font-weight:680; }
.scope-nav [aria-pressed=true] { box-shadow:inset 0 -2px var(--blue); }
.filters { display:grid; grid-template-columns:minmax(0,22rem) minmax(6rem,9rem) auto; align-items:center; justify-content:start; gap:8px; padding-top:10px; }
.filters label { margin:0; min-width:0; }
.filters :is(input,select) { background:var(--subtle); }
.task-search { position:relative; }
.task-search svg { position:absolute; inset-inline-start:10px; inset-block-start:50%; transform:translateY(-50%); color:var(--muted); pointer-events:none; }
.task-search input { padding-inline-start:34px; }
label { display:grid; gap:8px; margin-bottom:20px; font-size:.875rem; font-weight:500; min-width:0; }
input,select,textarea { font:inherit; font-size:1rem; min-width:0; width:100%; border:1px solid #7d8b9e; border-radius:7px; background:#fff; color:var(--ink); padding:9px 12px; min-height:42px; caret-color:var(--blue); }
input::placeholder,textarea::placeholder { color:#657187; }
textarea { resize:vertical; }
input[type=checkbox],input[type=radio] { width:18px; min-height:18px; height:18px; margin:0; accent-color:var(--blue); flex-shrink:0; }
.choice { display:flex; align-items:center; gap:10px; min-height:44px; margin:0; font-weight:400; cursor:pointer; }
:is(input,select,textarea):user-invalid,[aria-invalid=true] { border-color:var(--danger); background:#fff8f8; }
.field-error,.error-text { color:var(--danger); font-size:.8125rem; }
#notice:not(:empty) { border:1px solid #ceddff; background:#edf3ff; padding:12px 16px; border-radius:8px; margin-bottom:20px; }
#notice.error { color:#a52c2c; background:#fff0f0; border-color:#f2c6c6; }
#notice:empty,.error-text:empty { display:none; }
.task-columns { display:none; }
.task-row { position:relative; display:grid; grid-template-columns:minmax(0,1fr) auto; gap:7px 12px; align-items:center; padding:12px 16px; border-bottom:1px solid var(--divider); min-height:80px; }
.task-row:hover { background:#fbfcff; }
.task-row:last-child { border-bottom:0; }
.task-name { grid-area:1 / 1; min-width:0; }
.task-name button { padding:0; min-height:28px; border:0; color:var(--ink); background:none; text-align:start; justify-content:flex-start; font-size:.9375rem; font-weight:680; overflow-wrap:anywhere; }
.task-name button::after { content:""; position:absolute; inset:0; cursor:pointer; }
.task-name button:hover { color:var(--blue); }
.task-row:focus-within { background:#f4f8ff; }
.task-row-meta { display:flex; flex-wrap:wrap; gap:3px 10px; margin:2px 0 0; font-size:.75rem; color:var(--muted); }
.task-updated { display:none; }
.task-assignees { grid-area:2 / 1; display:flex; align-items:center; gap:6px; font-size:.8125rem; overflow-wrap:anywhere; }
.task-assignees .avatar { width:23px; height:23px; font-size:.625rem; }
.task-status { grid-area:1 / 2; align-self:start; justify-self:end; display:grid; justify-items:end; gap:4px; }
.task-progress { display:flex; align-items:center; gap:7px; }
.task-status progress { width:clamp(32px,8vw,84px); height:5px; border:0; border-radius:3px; appearance:none; accent-color:var(--blue); }
progress::-webkit-progress-bar { background:#edf0f6; border-radius:3px; }
progress::-webkit-progress-value { background:#6e91d5; border-radius:3px; }
progress::-moz-progress-bar { background:#6e91d5; border-radius:3px; }
.task-status small { color:var(--muted); font-size:.6875rem; }
.task-due { grid-area:2 / 2; display:grid; justify-items:end; gap:2px; font-size:.75rem; color:var(--muted); font-variant-numeric:tabular-nums; }
.task-due time { text-align:end; overflow-wrap:anywhere; }
.mobile-due-label { display:inline; }
.badge { display:inline-flex; align-items:center; gap:6px; width:fit-content; font-size:.75rem; border-radius:999px; padding:3px 8px; background:#eef2f7; color:#526177; white-space:nowrap; }
.badge::before { content:''; width:5px; height:5px; border-radius:50%; background:currentColor; }
.badge[data-state=active],.badge[data-state=working] { color:#275bb3; background:#edf3ff; }
.badge[data-state=completed] { color:var(--green); background:#eaf5ef; }
.badge[data-state=pending_approval],.badge[data-state=submitted],.badge[data-state=waiting] { color:var(--amber); background:#fff5e5; }
.overdue { color:var(--danger); font-size:.75rem; }
.pagination { justify-content:space-between; padding:9px 16px; margin:0; border-top:1px solid var(--divider); font-size:.8125rem; color:var(--muted); }
#pager-buttons { display:flex; gap:8px; }
#notification-note { font-size:.75rem; margin:10px 0 0; }
@container tasks (min-width:32rem) {
  .list-tools { display:grid; grid-template-columns:minmax(0,1fr) minmax(14rem,min(50%,24rem)); align-items:center; gap:6px 10px; }
  .scope-nav { display:grid; grid-template-columns:repeat(3,minmax(0,1.2fr)) minmax(0,.95fr) minmax(0,.65fr); gap:2px; }
  .scope-nav button { padding-inline:1px; font-size:.75rem; }
  .filters { grid-template-columns:minmax(0,1fr) minmax(5.5rem,32%) auto; padding-top:0; }
  .task-date-range { grid-column:1/-1; }
}
@container tasks (min-width:42rem) {
  .scope-nav { display:flex; gap:4px; }
  .scope-nav button { padding-inline:8px; font-size:.875rem; }
  .task-columns,.task-row { display:grid; grid-template-columns:minmax(0,2fr) minmax(6rem,1fr) minmax(7.3rem,1fr) minmax(8.3rem,1fr); gap:14px; align-items:center; padding-inline:18px; }
  .task-columns { padding-block:10px; color:var(--muted); background:var(--subtle); font-size:.75rem; font-weight:600; border-bottom:1px solid var(--divider); }
  .task-row { min-height:72px; }
  .task-row :is(.task-name,.task-assignees,.task-status,.task-due) { grid-area:auto; }
  .task-name button::after { content:none; }
  .task-status,.task-due { justify-self:start; justify-items:start; align-self:center; }
  .task-due { font-size:.8125rem; }
  .task-assignees .avatar { width:30px; height:30px; font-size:.6875rem; }
  .task-updated { display:inline; }
  .mobile-due-label { display:none; }
}
.empty { padding:56px 28px; text-align:center; }
.empty h2 { margin-bottom:8px; }
.empty p { margin:0 auto; max-width:65ch; color:var(--muted); }
#authenticated>#editor-view { max-width:880px; }
#editor-view>p { color:var(--muted); font-size:.875rem; }
.template-picker { padding:12px 16px; margin-top:16px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); }
.template-choice { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; }
.template-choice label { margin:0; }
.template-choice button,.template-choice select,.template-settings :is(input:not([type=checkbox]),select,button) { min-height:48px; }
.template-picker p:not(:empty) { margin-top:8px; overflow-wrap:anywhere; }
.template-picker>button { margin-top:8px; }
.template-settings { max-width:690px; }
.template-settings .form-actions { margin-bottom:0; }
.back-button { margin-bottom:16px; background:transparent; border-color:transparent; padding-inline:0; color:var(--active-ink); }
fieldset { min-width:0; padding:28px; border:1px solid var(--line); border-radius:var(--radius); margin:24px 0; background:#fff; }
legend { font-size:1rem; font-weight:650; padding:0 8px; }
.mode-options,.people-options { margin:0 0 24px; padding:0; border:0; border-radius:0; }
.mode-options legend,.people-options legend { font-size:.875rem; padding:0; margin-bottom:8px; }
.people-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px 16px; max-height:320px; overflow:auto; }
.advanced { background:white; padding:8px 24px 16px; border:1px solid var(--line); border-radius:var(--radius); margin-bottom:24px; }
.advanced p { max-width:65ch; font-size:.875rem; }
.form-actions { margin:20px 0; }
.task-approval label { margin-bottom:6px; }
.form-hint { font-size:.875rem; margin:0; }
.task-submit-actions { justify-content:flex-end; }
.task-submit-actions button { min-height:48px; }
.detail-head { display:flex; justify-content:space-between; align-items:start; gap:10px 20px; margin:0 0 16px; flex-wrap:wrap; }
.detail-head h1 { overflow-wrap:anywhere; margin:0; }
.detail-title-group { min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:6px 12px; }
.detail-deadline { color:var(--muted); align-self:center; font-size:.8125rem; font-variant-numeric:tabular-nums; }
.detail-deadline.overdue { color:var(--danger); }
#detail-view { container:detail / inline-size; }
.detail-grid { display:grid; grid-template-columns:minmax(0,1fr); }
@container detail (min-width:44rem) {
  .detail-grid { grid-template-columns:minmax(0,1.65fr) minmax(16rem,1fr); gap:18px; }
}
.detail-section { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); padding:20px 22px; margin-bottom:16px; min-width:0; }
.detail-section h2 { margin-bottom:12px; }
.detail-section h3 { margin-top:20px; }
.detail-section>p { font-size:.875rem; }
.detail-section>p:last-child,.detail-section>.form-actions:last-child { margin-bottom:0; }
.task-work { background:#f8fbff; border-color:#d3e0f3; }
.task-work .form-actions { margin-block:8px 0; }
.task-work .action-form .form-actions { margin-block:18px; }
.prose { white-space:pre-wrap; overflow-wrap:anywhere; max-width:75ch; }
.metadata { margin:0; font-size:.8125rem; }
.metadata div { display:grid; grid-template-columns:5.5rem minmax(0,1fr); gap:12px; margin-bottom:16px; }
.metadata dd { margin:0; }
.execution { padding:20px 0; border-top:1px solid var(--line); }
.execution:first-of-type { padding-top:0; border:0; }
.execution .line { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; }
.execution p { margin:12px 0 0; }
.timeline { list-style:none; padding:0; margin:0; }
.timeline>li { position:relative; padding:4px 0 24px 22px; margin:0; border-inline-start:1px solid var(--line); font-size:.875rem; }
.timeline>li::before { content:''; position:absolute; left:-4px; top:12px; width:7px; height:7px; background:#a0aec4; border-radius:50%; }
.timeline>li:last-child { padding-bottom:0; border:0; }
.timeline p { margin:8px 0 0; }
.timeline small { color:var(--muted); font-size:.75rem; }
.action-form { margin-top:24px; border-top:1px solid var(--line); padding-top:4px; max-width:760px; }
.action-form .evidence-picker { padding:12px 16px; margin:18px 0; }
.evidence-picker legend { font-size:.875rem; }
.evidence-picker .form-hint { margin-block:0 10px; }
.evidence-picker .form-hint:empty,.evidence-picker .error-text:empty { margin:0; }
.attachments:empty { display:none; }
.evidence-picker .evidence-choose { position:relative; display:inline-flex; align-items:center; min-height:48px; margin:0; cursor:pointer; }
.evidence-choose:focus-within { outline:2px solid var(--blue); outline-offset:3px; }
.evidence-choose.file-invalid { color:var(--danger); border-color:var(--danger); }
.evidence-input { position:absolute; inline-size:1px; block-size:1px; margin:-1px; padding:0; border:0; clip-path:inset(50%); overflow:hidden; }
.attachments { display:grid; gap:6px; list-style:none; padding:0; margin-block:10px 0; }
.attachment-row { display:flex; align-items:center; flex-wrap:wrap; gap:4px 10px; padding:4px 10px; border:1px solid var(--line); border-radius:var(--button-radius,8px); }
.attachment-name { flex:1 1 8rem; min-width:0; overflow-wrap:anywhere; font-size:.875rem; }
a.attachment-name { display:flex; align-items:center; min-height:44px; color:var(--active-ink); }
.attachment-size { flex:none; color:var(--muted); font-size:.75rem; font-variant-numeric:tabular-nums; }
.attachment-row button { flex:none; min-height:44px; padding-inline:9px; }
.settings-layout { display:grid; align-items:start; gap:14px; }
.settings-nav { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); padding:5px; }
.settings-nav button { min-width:0; padding:6px 4px; line-height:1.35; }
.settings-nav [aria-pressed=true] { box-shadow:inset 0 -2px var(--blue); }
#settings-content { min-width:0; }
#settings-content>.detail-section { margin-bottom:0; }
@media(min-width:64rem) {
  .settings-layout { grid-template-columns:minmax(9.5rem,11rem) minmax(0,1fr); gap:18px; }
  .settings-nav { grid-template-columns:minmax(0,1fr); padding:8px; }
  .settings-nav button { justify-content:start; padding-inline:12px; }
  .settings-nav [aria-pressed=true] { box-shadow:inset 1px 0 var(--blue); }
}
#setting-roles form,#setting-rules form { max-width:760px; margin-top:20px; }
#setting-members>p { max-width:70ch; }
.member-tools { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); }
.member-tools label { flex:1; max-width:360px; font-size:.8125rem; margin:0 0 12px; }
.member-empty { padding:32px 0 12px; color:var(--muted); font-size:.875rem; }
.danger-action { color:var(--danger); }
.member-tools p { font-size:.8125rem; margin:0; }
.role-row { display:grid; grid-template-columns:minmax(0,1fr) minmax(9rem,13rem) auto; align-items:end; gap:16px; padding:12px 0; border-bottom:1px solid var(--divider); }
.role-row:last-child { border-bottom:0; }
.role-row label { margin:0; font-size:.75rem; }
.role-row>div { position:relative; align-self:center; padding-inline-start:44px; min-height:38px; font-size:.875rem; }
.role-row .avatar { position:absolute; inset-inline-start:0; top:3px; width:34px; height:34px; }
.role-row small { color:var(--muted); font-size:.75rem; }
.role-row p { margin:0; font-size:.75rem; }
.permissions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.notification-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 28px; margin-top:28px; max-width:850px; }
.notice-group { max-width:58rem; padding:14px 18px 4px; margin:14px 0; }
.notice-group .notification-fields { margin-top:8px; }
.notice-group legend { color:var(--ink); }
.notice-group>p { margin:2px 0 8px; font-size:.8125rem; }
.supervision-steps { display:flex; flex-wrap:wrap; gap:5px 16px; padding:0; margin:0 0 10px; list-style:none; color:var(--muted); font-size:.875rem; }
.supervision-steps li { margin:0; }
.notification-days { display:flex; flex-wrap:wrap; gap:8px 24px; }
.service-note { color:var(--muted); font-size:.8125rem; max-width:75ch; }
#gate { max-width:560px; margin:10dvh auto; }
#gate .button { margin:6px 6px 0 0; }
@media (min-width:48.01rem) and (max-width:67.5rem), (min-width:36.01rem) and (max-width:48rem) and (max-height:31rem) {
  :root { --sidebar:calc(76px + env(safe-area-inset-left,0px)); }
  .work-nav { padding:10px 6px 8px calc(6px + env(safe-area-inset-left,0px)); overflow-y:auto; }
  .brand-link { min-height:44px; padding:0; justify-content:center; margin-bottom:5px; }
  .brand-link #brand { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
  .work-nav>button { flex-direction:column; justify-content:center; align-items:center; gap:3px; padding:5px 1px; text-align:center; font-size:.6875rem; line-height:1.2; min-height:49px; }
  .nav-bottom { padding:4px 1px 0; font-size:.6875rem; text-align:center; }
  .nav-bottom a { justify-content:center; white-space:normal; }
  .signed-in main { padding:18px max(18px,env(safe-area-inset-right,0px)) 44px 18px; }
  .app-header { min-height:50px; padding:4px max(18px,env(safe-area-inset-right,0px)) 4px 18px; }
  #identity-role { display:none; }
}
@media (max-width:48rem) and (min-height:31.01rem), (max-width:36rem) {
  :root { scroll-padding-block-end:calc(var(--bottom-nav) + env(safe-area-inset-bottom, 0px) + 1rem); }
  .signed-in .app-header,.signed-in main { margin-inline-start:0; }
  .app-header {
    min-height:54px;
    padding:calc(4px + env(safe-area-inset-top,0px)) max(14px,env(safe-area-inset-right,0px)) 4px max(14px,env(safe-area-inset-left,0px));
    flex-wrap:nowrap;
    gap:8px;
  }
  .header-location { display:none; }
  .mobile-brand {
    min-width:0;
    display:flex;
    align-items:center;
    gap:8px;
    min-height:44px;
    color:var(--ink);
    text-decoration:none;
    font-size:.9375rem;
    font-weight:650;
  }
  .mobile-brand .brand-mark { width:29px; height:29px; border-radius:8px; flex-shrink:0; font-size:.875rem; }
  #mobile-brand-name { white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  .header-actions { min-width:0; gap:8px; }
  .header-actions .avatar,#identity-role { display:none; }
  #identity { min-width:0; max-width:10rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
  #logout { min-height:44px; flex-shrink:0; padding:4px 8px; background:transparent; border-color:transparent; }
  main,.signed-in main { padding:20px 20px 36px; }
  .signed-in main {
    padding-bottom:calc(var(--bottom-nav) + env(safe-area-inset-bottom, 0px) + 1.5rem);
  }
  .work-nav {
    position:fixed;
    inset:auto 0 0;
    width:auto;
    min-height:var(--bottom-nav);
    padding:4px max(10px,env(safe-area-inset-right,0px)) calc(4px + env(safe-area-inset-bottom, 0px)) max(10px,env(safe-area-inset-left,0px));
    border:0;
    border-block-start:1px solid var(--line);
    background:var(--surface);
    flex-direction:row;
    gap:4px;
  }
  .work-nav :is(.brand-link,.nav-bottom) { display:none; }
  .work-nav>button {
    position:relative;
    flex:1;
    min-width:0;
    min-height:54px;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:3px;
    padding:5px 3px 3px;
    text-align:center;
    font-size:.75rem;
    line-height:1.35;
  }
  .work-nav>button svg { width:20px; height:20px; display:block; }
  .work-nav [aria-current=page]::before {
    inset-block-start:0;
    inset-inline-start:calc(50% - 10px);
    width:20px;
    height:2px;
  }
  .people-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px), (max-width:56rem) and (max-height:31rem) {
  h1 { font-size:1.3125rem; font-weight:680; line-height:1.3; }
  h2 { font-size:1.0625rem; }
}
@media(max-width:600px) {
  main,.signed-in main {
    padding-inline:max(14px,env(safe-area-inset-left,0px)) max(14px,env(safe-area-inset-right,0px));
    padding-top:14px;
  }
  .header-actions { gap:4px; }
  #identity { max-width:5.75rem; }
  button,.button,input,select { min-height:44px; }
  .page-head { flex-direction:row; align-items:center; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
  .page-head p { font-size:.8125rem; }
  .toolbar { gap:6px; }
  #create { padding-inline:9px; }
  .task-more summary { width:44px; padding:0; }
  .task-more summary span { display:none; }
  .task-overview { margin-bottom:12px; }
  .task-overview button { min-height:61px; padding:7px 2px; align-items:center; text-align:center; }
  .task-overview span { font-size:.75rem; }
  .task-overview strong { font-size:1.125rem; }
  .scope-nav { display:flex; gap:3px; }
  .scope-nav button { flex:1 1 auto; }
  .scope-nav button,.settings-nav button { font-size:.75rem; padding-inline:3px; }
  .list-tools { padding:8px 10px 10px; }
  .filters { grid-template-columns:minmax(0,1fr) minmax(5.4rem,7rem) auto; justify-content:stretch; gap:6px; padding-top:8px; }
  .filters select { padding-inline:7px; }
  .filters button { padding-inline:9px; }
  .task-search input { padding-inline-start:29px; padding-inline-end:5px; }
  .task-search svg { inset-inline-start:8px; width:15px; }
  .task-row { padding-inline:12px; }
  .pagination { padding:8px 12px; font-size:.75rem; }
  .pagination button { padding-inline:8px; }
  fieldset,.advanced,.detail-section { padding:18px 14px; }
  .mode-options,.people-options { padding:0; }
  .people-grid,.permissions,.notification-fields { grid-template-columns:1fr; }
  .notification-days { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 16px; }
  .role-row { grid-template-columns:minmax(0,1fr) auto; gap:6px 10px; }
  .role-row>div { grid-column:1/-1; }
  .member-tools { align-items:start; flex-direction:column; gap:0; }
  .member-tools label { width:100%; max-width:none; }
  .member-tools p { margin:6px 0 0; }
  .detail-head { gap:6px 10px; }
  .detail-title-group { flex-basis:100%; }
  .form-actions>* { flex:1; }
  .choice { min-height:48px; }
}
@media(min-width:36.01rem) and (max-height:31rem) {
  .page-head { margin-bottom:8px; }
  .task-overview { margin-bottom:10px; }
  .task-overview button { flex-direction:row; align-items:center; justify-content:space-between; min-height:51px; padding-inline:9px; }
  .task-overview strong { font-size:1.1875rem; }
  .list-tools { padding-block:5px; }
  .task-row { padding-block:10px; }
  .task-columns { padding-block:7px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { transition:none !important; scroll-behavior:auto !important; } }
@media(forced-colors:active) { .work-nav [aria-current],.settings-nav [aria-pressed=true],.scope-nav [aria-pressed=true],.task-overview [aria-pressed=true] { outline:2px solid Highlight; outline-offset:-2px; } }

.task-date-range {
  display:flex; align-items:center; flex-wrap:wrap; gap:.5rem .75rem;
  margin-top:.75rem; font-size:.8125rem; color:var(--muted);
}
.task-date-range button { min-height:44px; padding-block:.25rem; }
#authenticated > #report-view { max-width:1100px; }
.report-form { display:flex; align-items:end; flex-wrap:wrap; gap:1rem 1.5rem; padding:1rem 1.25rem; margin-bottom:1rem; }
.report-custom { border-top:0; }
.report-custom[open] { flex-basis:100%; }
.report-custom summary { min-height:44px; padding:.625rem .25rem; font-size:.875rem; }
.report-custom[open] summary { margin-bottom:.25rem; }
.report-presets,.report-dates { display:flex; align-items:end; flex-wrap:wrap; gap:.5rem; }
.report-presets button[aria-pressed=true] { background:#eaf0fe; color:#204fae; border-color:#8ba8e0; font-weight:650; }
.report-dates label { margin:0; font-size:.8125rem; }
.report-dates input { width:10rem; }
.report-form :is(button,input) { min-height:44px; }
.report-title { padding:1rem 1.25rem .875rem; }
.report-title p { margin:.375rem 0 0; font-size:.8125rem; color:var(--muted); overflow-wrap:anywhere; }
.report-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:.875rem; }
.report-table :is(th,td) { text-align:start; padding:.75rem 1.25rem; border-top:1px solid var(--line); }
.report-table thead { background:#f4f6fa; color:var(--muted); }
.report-table th:first-child { width:8.625rem; }
.report-table thead th:nth-child(2) { width:6.875rem; }
.report-table :is(.report-quantity,.report-share) { font-variant-numeric:tabular-nums; }
.report-table .report-quantity>span { display:inline-flex; min-height:44px; align-items:center; padding-inline:.75rem; }
.report-share meter { display:block; width:min(100%,24rem); height:.5rem; margin-top:.3rem; accent-color:var(--blue); }
.report-share meter::-webkit-meter-bar { border-radius:4px; border:0; background:#edf1f7; }
.report-share meter::-webkit-meter-optimum-value { background:#6588ce; }
.report-share meter::-moz-meter-bar { background:#6588ce; }
.report-quantity button { min-height:44px; min-width:44px; color:#204fae; font-weight:650; padding:.25rem .625rem; }
.report-overdue { border-top:1px solid var(--line); padding:.875rem 1.25rem 1rem; display:flex; align-items:center; justify-content:space-between; gap:1rem; }
.report-overdue h3 { margin:0 0 .25rem; }
.report-overdue p { color:var(--muted); font-size:.8125rem; margin:0; }
.report-overdue button { min-height:44px; flex-shrink:0; font-variant-numeric:tabular-nums; }
.report-overdue button:enabled { color:var(--danger); }
@media(max-width:600px) {
  .report-form,.report-title,.report-overdue { padding-inline:.75rem; }
  .report-form { gap:.5rem 1rem; }
  .report-custom { width:100%; }
  .report-dates { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; }
  .report-dates input { width:100%; min-width:0; }
  .report-dates button { grid-column:1/-1; }
  .report-table :is(th,td) { padding:.625rem .75rem; }
  .report-table th:first-child { width:5.5rem; }
  .report-table thead th:nth-child(2) { width:4.625rem; }
  .report-table td button { padding-inline:.5rem; }
}

