@font-face {
  font-family: Manrope;
  src: url("/assets/manrope.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --surface: #fff;
  --paper: #f7f8fa;
  --hover: #f2f3f6;
  --selected: #e8e9ef;
  --ink: #202127;
  --text: #454852;
  --muted: #656975;
  --line: #e2e3e8;
  --control: #cdced6;
  --blue: #5756bf;
  --blue-hover: #4847ac;
  --blue-dark: #4f4cad;
  --blue-wash: #efeffb;
  --focus: #6563d3;
  --red: #a13744;
  --red-mark: #c95362;
  --red-wash: #fbeef0;
  --amber: #835514;
  --amber-wash: #fbf3e5;
  --green: #2f7156;
  --green-wash: #e9f4ed;
  --lilac: #72568c;
  --lilac-wash: #f4eff9;
  --sky-field: #ddecff;
  --sky-ink: #315e8b;
  --peach-field: #ffd5ae;
  --peach-ink: #884213;
  --green-field: #d2efdd;
  --amber-field: #ffe4b2;
  --coral-field: #facfd3;
  --violet-field: #e7dbf7;
  --grey-field: #e4e6eb;
  --overlay: #1b1b2c52;
  --shadow: 0 8px 26px #23242f16, 0 2px 6px #23242f0e;
  --modal-shadow: 0 24px 80px #12132533;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23656975' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 6.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.6 8.2 2.8 2.8 6-6'/%3E%3C/svg%3E");
  --sidebar-width: 224px;
  --space: 28px;
  font: 475 15px/1.5 Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--surface);
  accent-color: var(--blue);
  caret-color: var(--blue-dark);
  font-synthesis: none;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --surface: #18191c;
  --paper: #1e1f23;
  --hover: #27282e;
  --selected: #34353d;
  --ink: #eeeef2;
  --text: #c8c9d1;
  --muted: #a5a7b3;
  --line: #32343b;
  --control: #4b4d57;
  --blue: #6460d1;
  --blue-hover: #6a67d6;
  --blue-dark: #b6b1ff;
  --blue-wash: #302e49;
  --focus: #aba7ff;
  --red: #f4a1ad;
  --red-mark: #e78392;
  --red-wash: #3a282e;
  --amber: #e7be79;
  --amber-wash: #352f24;
  --green: #93cbb1;
  --green-wash: #23332c;
  --lilac: #c7a6df;
  --lilac-wash: #342d3b;
  --sky-field: #233951;
  --sky-ink: #a7cfff;
  --peach-field: #503623;
  --peach-ink: #ffc693;
  --green-field: #203f31;
  --amber-field: #49371e;
  --coral-field: #502d36;
  --violet-field: #3e304e;
  --grey-field: #2b2e35;
  --overlay: #07070d94;
  --shadow: 0 8px 28px #08080d55, 0 2px 6px #08080d45;
  --modal-shadow: 0 24px 80px #05050a77;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23a5a7b3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4.5 6.5 3.5 3.5 3.5-3.5'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button { padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .56; }
:where(button, a, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--focus); outline-offset: 2px;
}
a { color: var(--blue-dark); text-underline-offset: .2em; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
details > summary { display: flex; align-items: center; gap: 7px; list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after {
  content: ""; flex: 0 0 14px; height: 14px; margin-inline-start: auto; color: var(--muted);
  background: currentColor; mask: var(--chevron) center / contain no-repeat;
}
details[open] > summary::after { transform: rotate(180deg); }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { font-weight: 695; line-height: 1.3; }
h2 { font-size: 1.12rem; letter-spacing: -.025em; }
h3 { font-size: .99rem; letter-spacing: -.015em; }
p { line-height: 1.55; }
small, .muted { color: var(--muted); }
strong { font-weight: 685; }
::selection { background: var(--selected); color: var(--ink); }

.app-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100dvh; }
.sidebar {
  position: sticky; top: 0; display: flex; flex-direction: column; align-self: start;
  height: 100dvh; min-width: 0; padding: 0 12px 10px;
  background: var(--paper); border-inline-end: 1px solid var(--line); color: var(--text);
  overscroll-behavior: contain;
}
.sidebar nav { min-height: 0; flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--control) transparent; }
.brand-mark { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 7px; }
.nav-label, .sidebar details > summary {
  display: flex; align-items: center; width: 100%; min-height: 27px; padding: 2px 9px;
  color: var(--muted); font-size: .73rem; font-weight: 665; line-height: 1.3; letter-spacing: .005em; text-decoration: none;
}
.sidebar details > summary { border-radius: 5px; }
.sidebar details > summary::after { width: 12px; height: 12px; margin-inline-start: 0; }
.sidebar details:not([open]) > summary::after { transform: rotate(-90deg); }
.sidebar details[open] > summary::after { transform: none; }
.sidebar details > summary:hover, .nav-button:hover { background: var(--hover); color: var(--ink); }
.nav-label:not(summary) { margin-top: 15px; }
.sidebar .nav-group > summary { min-height: 32px; padding: 5px 10px; gap: 10px; color: var(--text); font-size: .84rem; font-weight: 560; }
.sidebar .nav-group > summary svg { width: 15px; height: 15px; color: var(--muted); }
.sidebar .nav-group .nav-button { padding-inline-start: 27px; }
.sidebar nav > :first-child { margin-top: 0; }
.nav-button {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px;
  padding: 5px 10px; border-radius: 6px; text-align: left; color: var(--text);
  font-size: .84rem; font-weight: 560; line-height: 1.45; overflow-wrap: anywhere;
}
.nav-button svg { width: 15px; height: 15px; color: var(--muted); }
.nav-button.active { color: var(--ink); background: var(--selected); font-weight: 700; }
.nav-button.active svg { color: var(--blue-dark); }
.sidebar-footer { flex: none; margin-top: 12px; padding: 10px 6px 1px; border-top: 1px solid var(--line); }
.team-nav .nav-button { min-width: 0; gap: 8px; }
.team-nav .nav-button span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-mark { display: inline-grid; place-items: center; flex: 0 0 22px; height: 20px;
  border: 1px solid var(--line); border-radius: 5px; background: var(--surface);
  color: var(--muted); font-size: 10px; font-weight: 720; letter-spacing: .02em; }
.team-nav [aria-current="page"] .team-mark { color: var(--blue-dark); border-color: var(--focus); }
.team-nav [data-action="create-work-team"] { color: var(--muted); font-weight: 500; }
.team-dashboard-tools { display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 4px 10px; padding: 3px var(--space); border-bottom: 1px solid var(--line); }
.team-tabs { display: inline-flex; gap: 3px; align-items: center; min-width: 0; }
.team-tabs button { padding: 5px 9px; border-radius: 5px; min-height: 34px;
  color: var(--muted); font-weight: 600; font-size: .86rem; }
.team-tabs button:hover { color: var(--ink); background: var(--hover); }
.team-tabs :is([aria-current="page"],[aria-pressed="true"],.active) { background: var(--selected); color: var(--ink); }
.team-dashboard-actions { display: flex; align-items: center; gap: 7px; }
.team-dashboard-actions .muted-link { min-height: 32px; color: var(--text); font-weight: 545; white-space: nowrap; }
.team-dashboard-actions .icon-button { width: 30px; height: 30px; }
.team-dashboard-actions .icon-button svg { width: 15px; }
.team-resource-picker { min-width: 0; border: 1px solid var(--line); border-radius: 7px; }
.team-resource-picker > summary { cursor: pointer; min-height: 40px; padding: 8px 12px; font-weight: 650; }
.team-resource-picker[open] { padding-bottom: 8px; }
.team-resource-picker > :not(summary) { margin-inline: 12px; }
.team-resource-picker .search { display: flex; gap: 7px; align-items: center; margin-block: 4px; }
.team-resource-picker .search svg { width: 15px; }
.team-resource-picker input[type="search"] { min-width: 0; width: 100%; }
.team-resource-options { display: grid; max-height: 15rem; overflow: auto; overscroll-behavior: contain; }
.team-resource-option { display: flex; align-items: center; gap: 9px; min-height: 36px;
  padding: 5px 7px; border-radius: 4px; overflow-wrap: anywhere; cursor: pointer; }
.team-resource-option:hover { background: var(--hover); }
.team-resource-option input { flex: 0 0 auto; }
#work-team-form .modal-footer { flex-wrap: wrap; }
.team-dashboard-tools .button, .team-tabs button { white-space: nowrap; }
.team-inbox-count { margin-inline-start: auto; min-width: 20px; padding: 1px 5px;
  border-radius: 6px; background: var(--peach-field); color: var(--peach-ink);
  font-variant-numeric: tabular-nums; font-size: .73rem; font-weight: 720; text-align: center; }
.team-inbox-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding-bottom: 12px; }
.team-inbox-tabs button { min-height: 34px; padding: 6px 12px; color: var(--muted);
  border-radius: 5px; font-size: .86rem; font-weight: 600; }
.team-inbox-tabs button:hover { color: var(--ink); background: var(--hover); }
.team-inbox-tabs :is([aria-pressed="true"],[aria-current="page"],.active) { background: var(--selected); color: var(--ink); }
.team-inbox-row { display: grid; align-items: center; grid-template-columns: minmax(0,1fr) auto;
  gap: 7px 18px; padding: 10px 4px; border-bottom: 1px solid var(--line); background: var(--surface); }
.team-inbox-row [data-open-task] { color: var(--ink); font-weight: 670; text-align: start; overflow-wrap: anywhere; }
.team-inbox-row [data-open-task]:hover { color: var(--blue-dark); text-decoration: underline; }
button.task-status-control {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 28px;
  padding: 3px 7px; border: 1px solid transparent;
  border-radius: 5px; cursor: pointer; line-height: 1.15;
}
button.task-status-control:hover { border-color: currentColor; }
.task-status-control:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.task-status-control > span[aria-hidden=true]:last-child {
  width: 6px; height: 6px; margin: -2px 1px 0; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(45deg); font-size: 0;
}
[data-layout="list"] .task-row-status-label { display: none; }
button.task-row-status { min-width: 37px; padding-inline: 5px; gap: 4px; }
.task-row-status::before { display: none; }
.hall-child-title { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
#task-text-form .notice { overflow-wrap: anywhere; }
.task-row-status-static { display: inline-grid; justify-items: center; align-items: center; width: 37px; }
.task-group-hall-row, .task-sibling-row { display: flex; align-items: center; gap: 7px; min-width: 0; }
.task-group-hall-row > .task-group-hall, .task-sibling-row > .sibling { min-width: 0; flex: 1; }
.task-group-hall-row > .task-status-control, .task-sibling-row > .task-status-control { flex-shrink: 0; }
.siblings:has(.task-sibling-row) { display: grid; }
#task-text-form :is(textarea, small) { overflow-wrap: anywhere; }
.inbox-team-links { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; font-size: .8rem; color: var(--muted); }
.inbox-task-meta, .inbox-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 5px 8px; }
.inbox-actions:has([data-action="skip-inbox-task"]) [data-action="take-inbox-task"] { background: var(--green-wash); color: var(--green); border-color: transparent; }
.inbox-actions [data-action="take-inbox-task"]:hover:enabled { border-color: currentColor; }
.task-detail-teams { color: var(--ink); font-size: .9rem; }
.task-detail-teams > span { margin-right: 4px; color: var(--muted); }
.inbox-task-title { margin-bottom: 5px; }
.inbox-task-title small { font-variant-numeric: tabular-nums; font-weight: 500; }
.task-intake-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); font-size: .83rem; }
.task-intake-summary .workflow-progress { flex-basis: 100%; }
.intake-accepted { color: var(--green); } .intake-rejected { color: var(--red); }
.intake-pending, .inbox-review-result { color: var(--muted); }
.team-destinations legend { margin-bottom: 6px; color: var(--ink); font-size: .86rem; font-weight: 620; }
.team-destinations { min-width: 0; margin: 0; padding: 0; border: 0; }
.team-destination-options { display: flex; flex-wrap: wrap; gap: 5px; max-height: 12rem; overflow: auto; }
.team-destination-options label { display: inline-flex; align-items: center; gap: 5px;
  max-width: 100%; padding: 5px 8px; border: 1px solid var(--line); border-radius: 5px;
  overflow-wrap: anywhere; cursor: pointer; font-size: .82rem; }
.team-destination-options label:has(input:checked) { color: var(--blue-dark); border-color: var(--focus); background: var(--blue-wash); }
#team-pickup-form .team-destination-options { margin-block: 4px; }
@media (max-width: 800px) {
  .team-dashboard-tools { padding: 8px 12px; }
  .team-tabs button, .team-dashboard-tools .button, .team-inbox-tabs button { min-height: 40px; }
  .team-inbox-row { grid-template-columns: minmax(0,1fr); gap: 6px; }
  .team-destination-options label { min-height: 36px; }
}
.workspace-appearance { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); align-items: center; gap: 7px; min-width: 0; color: var(--muted); font-size: .8rem; }
.appearance-settings > summary svg { width: 15px; height: 15px; }
.sidebar .appearance-settings > summary { min-height: 34px; font-size: .82rem; font-weight: 570; }
.appearance-settings[open] > summary { margin-bottom: 6px; }
.workspace-appearance + .workspace-appearance { margin-top: 5px; }
.workspace-appearance select { width: 100%; min-width: 0; min-height: 30px; padding-block: 4px; background-color: var(--paper); font-size: .79rem; }
.connection, .sync-label { display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; color: var(--muted); }
.connection::before, .sync-label::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--green); }
.connection.offline::before, .sync-label.offline::before { background: var(--amber); }

.main { min-width: 0; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 52px; padding: 6px var(--space); background: var(--surface); border-bottom: 1px solid var(--line);
}
.board-title { flex: 1; min-width: 0; font-size: 1.25rem; letter-spacing: -.035em; overflow-wrap: anywhere; }
.board-title:focus, .page-heading h1:focus { outline: 0; }
.top-right, .profile { display: flex; align-items: center; gap: 8px; min-width: 0; }
.profile { min-height: 34px; padding: 3px; border-radius: 6px; text-align: left; }
.profile:hover { background: var(--hover); }
.profile-name, .profile-role { display: block; max-width: min(185px, 24vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-name { font-size: .79rem; font-weight: 650; }
.profile-role { color: var(--muted); font-size: .7rem; }
.avatar {
  display: inline-grid; place-items: center; flex: none; border-radius: 50%; height: 29px; min-width: 29px;
  padding-inline: 3px; background: var(--blue-wash); color: var(--blue-dark); font-size: .69rem; font-weight: 720; line-height: 1;
}
.icon-button { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 6px; color: var(--muted); }
.icon-button:hover { background: var(--hover); color: var(--ink); }
.mobile-menu, .drawer-close, .menu-scrim, .board-create-mobile, .sidebar-account { display: none; }

.page { padding: 16px var(--space) 42px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-heading h1 { font-size: 1.65rem; letter-spacing: -.035em; overflow-wrap: anywhere; }
.page-heading p { color: var(--muted); margin-top: 5px; max-width: 68ch; font-size: .88rem; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 34px; padding: 6px 11px; border: 1px solid transparent; border-radius: 6px;
  color: var(--text); font-size: .84rem; font-weight: 635; line-height: 1.35; text-align: center; text-decoration: none;
}
.button svg { width: 15px; height: 15px; }
.button.primary { background: var(--blue); color: #fff; }
.button.primary:hover:enabled { background: var(--blue-hover); }
.button.secondary { border-color: var(--line); background: var(--surface); color: var(--text); }
.button.secondary:hover:enabled, .button.ghost:hover:enabled { background: var(--hover); color: var(--ink); }
.button.danger { background: var(--red-wash); color: var(--red); }
.button.danger:hover:enabled { border-color: var(--red); }
.button.ghost { color: var(--muted); }
.button.small { min-height: 29px; padding: 4px 8px; font-size: .78rem; }
.muted-link { color: var(--blue-dark); font-size: .82rem; font-weight: 610; text-underline-offset: .22em; }
.muted-link:hover { text-decoration: underline; }

.notice, .inline-error { padding: 10px 13px; border-radius: 7px; color: var(--blue-dark); background: var(--blue-wash); margin-bottom: 14px; font-size: .85rem; }
.notice.warning { color: var(--amber); background: var(--amber-wash); }
.notice.danger, .inline-error { color: var(--red); background: var(--red-wash); }
.panel { min-width: 0; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 15px; border-bottom: 1px solid var(--line); }
.search { position: relative; display: flex; align-items: center; flex: 1 1 180px; min-width: 0; }
.search svg { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--muted); pointer-events: none; }
input:not([type=checkbox],[type=radio]), textarea, select {
  min-height: 35px; min-width: 0; max-width: 100%; padding: 6px 10px;
  border: 1px solid var(--control); border-radius: 6px; color: var(--ink); background: var(--surface); font-weight: 490;
}
select { appearance: none; padding-inline-end: 29px; background: var(--surface) var(--chevron) right 8px center / 14px no-repeat; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
input[type=checkbox], input[type=radio] { width: 15px; height: 15px; margin: 0; flex: none; }
.search input:not([type=checkbox]) { padding-inline-start: 32px; }
.search input, .field input:not([type=checkbox]), .field select, .field textarea, .reply-form textarea { width: 100%; }
textarea { min-height: 85px; resize: vertical; }
.filters select, .search input { font-size: .84rem; }
.filter-advanced { display: flex; flex-wrap: wrap; gap: 4px 11px; }
.check-line, .toggle-filter, .check-pill { display: inline-flex; gap: 7px; align-items: center; font-size: .83rem; }
.toggle-filter { min-height: 32px; }

.avatar-stack { display: flex; padding-left: 4px; }
.avatar-stack .avatar { margin-left: -4px; border: 2px solid var(--surface); }
.tag-list, .status-stack, .check-grid, .discussion-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.status-stack { flex-direction: column; align-items: flex-start; }

.tag, .status {
  display: inline-flex; align-items: center; gap: 5px; width: fit-content; max-width: 100%;
  padding: 2px 6px; border-radius: 4px; background: var(--hover); color: var(--text);
  font-size: .73rem; font-weight: 580; line-height: 1.45; overflow-wrap: anywhere;
}
.tag.hall { background: var(--blue-wash); color: var(--blue-dark); }
.tag.tag-colored::before { content: ""; width: 7px; height: 7px; flex: none; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: 50%; background: var(--tag-color); }
.tag.task-priority[data-priority="high"], .status.in_progress, .status.waiting, .status.answered { background: var(--amber-wash); color: var(--amber); }
.tag.strong-volunteers { background: var(--lilac-wash); color: var(--lilac); }
.field input[type="color"] { width: 68px; padding: 4px; cursor: pointer; }
.status::before { content: ""; width: 6px; height: 6px; flex: none; background: currentColor; border-radius: 50%; }
.status.open { background: var(--blue-wash); color: var(--blue-dark); }
.status.queued { background: var(--sky-field); color: var(--sky-ink); }
.status.done, .status.closed { background: var(--green-wash); color: var(--green); }
.status.blocked { background: var(--red-wash); color: var(--red); }
.empty, .loading-line, .initial-loading { text-align: center; padding: 34px 16px; }
.empty-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 9px; background: var(--paper); color: var(--muted); margin: 0 auto 10px; }
.empty p { margin: 6px auto 14px; color: var(--muted); max-width: 46ch; }
.loading-line, .initial-loading { color: var(--muted); }
.initial-loading { padding-top: 20vh; }

.modal { padding: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); width: min(710px, calc(100vw - 30px)); max-height: calc(100dvh - 30px); box-shadow: var(--modal-shadow); }
.modal[data-kind="commands"] { margin: min(14dvh, 105px) auto auto; width: min(540px, calc(100vw - 20px)); }
.command-trigger kbd { margin-inline-start: auto; font: inherit; font-size: .71rem; color: var(--muted); }
.command-palette { display: flex; flex-direction: column; max-height: min(560px, 72dvh); }
.command-field { display: flex; align-items: center; gap: 9px; padding: 6px 8px 6px 14px; border-bottom: 1px solid var(--line); }
.command-field > svg { width: 18px; height: 18px; color: var(--muted); }
.command-field input:not([type=checkbox]) { min-width: 0; flex: 1; border: 0; box-shadow: none; background: transparent; padding: 7px 0; font-size: .96rem; }
.command-field input:focus-visible { outline: none; }
.command-palette [role=listbox] { overflow-y: auto; overscroll-behavior: contain; padding: 3px 6px 6px; }
.command-group { padding: 8px 6px 3px; color: var(--muted); font-size: .71rem; font-weight: 650; }
.command-option { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 5px; font-size: .84rem; cursor: pointer; }
.command-option > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.command-option > svg { flex: none; width: 15px; height: 15px; color: var(--muted); }
.command-option small { margin-inline-start: auto; white-space: nowrap; font-size: .72rem; color: var(--muted); }
.command-option[aria-selected="true"] { background: var(--selected); }
.command-option:hover { background: var(--hover); }
.command-message { color: var(--muted); font-size: .8rem; margin: 0; padding: 6px 14px 12px; }
@media (pointer:coarse) { .command-option { min-height: 44px; } }
.modal::backdrop { background: var(--overlay); }
@media (min-width: 960px) {
  .modal:is([data-kind="task"], [data-kind="task-group"]) {
    inset: 0 0 0 auto; margin: 0; width: clamp(470px, 42vw, 710px); height: 100dvh;
    max-height: 100dvh; border-width: 0 0 0 1px; border-radius: 0;
  }
  .modal:is([data-kind="task"], [data-kind="task-group"])::backdrop {
    background: color-mix(in srgb, var(--overlay) 40%, transparent);
  }
}
.modal-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: start; justify-content: space-between; gap: 12px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 14px 20px; align-items: center; }
.modal-head h2 { overflow-wrap: anywhere; }
.modal-head small { display: block; margin-top: 4px; }
.modal-body { padding: 20px; }
.form-stack, .field { display: flex; flex-direction: column; min-width: 0; }
.form-stack { gap: 15px; }
.field { gap: 6px; font-size: .85rem; font-weight: 635; }
.field small, .field-hint { font-size: .78rem; font-weight: 550; color: var(--muted); }
.form-row, .detail-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.check-grid { gap: 7px; }
.check-pill { border: 1px solid var(--line); border-radius: 5px; padding: 5px 8px; min-height: 37px; }
.check-pill:has(input:checked) { border-color: var(--blue); color: var(--blue-dark); background: var(--blue-wash); }
.field-group, .detail-meta { border-radius: 7px; background: var(--paper); border: 1px solid var(--line); padding: 12px; }
.field-group > .field:first-child { margin-bottom: 9px; }
.modal-footer, .actions, .reply-buttons, .siblings { display: flex; gap: 8px; flex-wrap: wrap; }
.modal-footer { justify-content: end; }
.actions { margin-block: 16px; }
.detail-description { margin-block: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.detail-meta { font-size: .85rem; margin-block: 14px; overflow-wrap: anywhere; }
.detail-meta small { display: block; margin-bottom: 3px; }
.section-label { margin: 19px 0 8px; color: var(--muted); font-size: .82rem; font-weight: 665; }
.sibling { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 8px; border: 1px solid var(--line); font-size: .81rem; }
.sibling.current { border-color: var(--blue); background: var(--blue-wash); }
.read-only { display: flex; align-items: center; gap: 8px; color: var(--amber); }
.read-only svg { width: 15px; height: 15px; }
.history { padding-left: 20px; }
.history li { padding: 4px 0; font-size: .86rem; }
.history small { display: block; }
.question-form, .reply-form { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }

.questions-list { display: grid; gap: 12px; }
.discussion { border-radius: 7px; overflow: clip; background: var(--surface); border: 1px solid var(--line); margin-block: 9px; min-width: 0; overflow-wrap: anywhere; }
.questions-list > .discussion { margin: 0; }
.discussion-head, .message-meta { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.discussion-head, .discussion-expectation { padding: 10px 13px; background: var(--paper); }
.discussion-head { align-items: flex-start; border-bottom: 1px solid var(--line); }
.questions-list .discussion > [data-action="reopen-question"] { margin: 0 12px 8px; border-color: transparent; color: var(--muted); }
.discussion-head h3 { margin-bottom: 4px; }
.discussion-expectation { font-size: .83rem; color: var(--muted); }
.discussion-body, .discussion > .reply-form { padding: 12px 13px; }
.thread-message { border-inline-start: 1px solid var(--control); padding: 2px 0 4px 11px; margin-bottom: 9px; }
.message-meta { color: var(--muted); font-size: .78rem; margin-bottom: 4px; }
.message-body { white-space: pre-wrap; line-height: 1.6; }
.reply-form textarea { display: block; }
.reply-buttons { margin-top: 7px; }

.volunteer-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.volunteer-card, .select-person { border-radius: 8px; background: var(--surface); border: 1px solid var(--line); padding: 13px; overflow-wrap: anywhere; }
.volunteer-heading, .admin-user, .delivery { display: flex; align-items: start; gap: 9px; }
.volunteer-heading { margin-bottom: 12px; align-items: center; }
.availability { color: var(--green); font-size: .8rem; }
.availability.unavailable, .select-person .warning { color: var(--amber); }
.volunteer-tasks { display: grid; gap: 6px; min-width: 0; font-size: .83rem; }
.pool-task { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-width: 0; }
.pool-task + .pool-task { padding-top: 6px; border-top: 1px solid color-mix(in srgb, var(--state-ink, var(--muted)) 24%, transparent); }
.pool-task button[data-open-task] { flex: 1 1 145px; min-width: 0; color: var(--blue-dark); font-weight: 640; text-align: start; overflow-wrap: anywhere; }
.pool-task button[data-open-task]:hover { text-decoration: underline; }
.volunteer-actions { max-width: 100%; }
.volunteer-actions summary { width: fit-content; min-height: 30px; color: var(--text); font-size: .78rem; }
.volunteer-actions summary:hover { color: var(--ink); text-decoration: underline; }
.volunteer-actions[open] > div { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; }
.volunteer-actions > div > .muted { display: inline-flex; gap: 5px; align-items: center; font-size: .78rem; }
.volunteer-actions > div > .muted svg { width: 13px; height: 13px; }
.select-person { display: flex; align-items: start; gap: 9px; margin-bottom: 6px; }
.select-person:has(input:checked) { background: var(--blue-wash); border-color: var(--blue); }
.person-info { min-width: 0; }
.person-info p { font-size: .81rem; color: var(--muted); }
.preview-summary { display: flex; justify-content: space-between; gap: 9px; padding: 10px; margin-block: 7px; background: var(--blue-wash); }
.admin-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.admin-panel, .account-panel { padding: 16px; }
.account-panel { max-width: 610px; }
.admin-user, .delivery { border-bottom: 1px solid var(--line); padding-block: 10px; align-items: center; }
.admin-user-info, .delivery-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.admin-user-info small { display: block; }
.admin-block { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); }
.delivery { padding-inline: 14px; }
.delivery:last-child { border-bottom: 0; }
.delivery-text p { font-size: .82rem; color: var(--muted); }
.link-result { background: var(--blue-wash); padding: 12px; overflow-wrap: anywhere; }
.link-result a { display: block; margin-block: 5px; }
.section-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.admin-roster-toolbar, .admin-roster-actions { flex-wrap: wrap; }
.admin-roster-actions { display: flex; gap: 7px; }
.neerc-rows { max-height: 32vh; overflow: auto; border: 1px solid var(--line); }
.neerc-rows table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .85rem; text-align: left; }
.neerc-rows th, .neerc-rows td { padding: 7px 10px; overflow-wrap: anywhere; vertical-align: top; }
.neerc-rows th { position: sticky; top: 0; background: var(--paper); }
.neerc-rows tr + tr td { border-top: 1px solid var(--line); }
.neerc-rows small { display: block; color: var(--muted); }
.hall-check-help { margin-bottom: 18px; max-width: 70ch; }
.hall-check-help summary { width: fit-content; color: var(--blue-dark); cursor: pointer; }
.hall-check-help p { margin-top: 8px; }
.hall-check-help code { overflow-wrap: anywhere; }
.hall-check-filter { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.hall-check-filter select { width: auto; }
.hall-check { margin-bottom: 12px; }
.hall-check > summary { cursor: pointer; padding: 14px 18px; color: var(--ink); text-decoration: none; }
.hall-check > summary:hover strong { text-decoration: underline; }
.hall-check-heading { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.hall-check-heading strong { font-size: 1.08rem; }
.hall-check-summary { color: var(--muted); font-variant-numeric: tabular-nums; }
.hall-check ul { margin: 0; padding: 0; list-style: none; }
.hall-check-row, .hall-check-empty { border-top: 1px solid var(--line); padding: 10px 18px; }
.hall-check-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(11rem, .45fr) 12rem; align-items: center; gap: 8px 12px; }
.hall-check-row .status { justify-self: start; }
.hall-check-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.hall-check-row > div { min-width: 0; overflow-wrap: anywhere; }
.hall-check-row p { white-space: pre-wrap; }
@media (max-width: 900px) {
  .hall-check-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hall-check-actions { grid-column: 1 / -1; }
  .hall-check-actions button { min-height: 40px; }
}
.notification-list { margin: 0; padding: 0; list-style: none; }
.notification-list .notice-unread p { font-weight: 650; }
[data-nav="notifications"][data-unread]::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent, #5358ca); }
.notification-list li { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 99; color: var(--surface); background: var(--ink); border-radius: 7px; box-shadow: var(--shadow); padding: 10px 14px; max-width: calc(100vw - 22px); overflow-wrap: anywhere; }
.toast.error { background: var(--red); }



/* The task workspace keeps a shared column rhythm across every status. */
.page:has(#tasks-results) { padding: 0 0 42px; }
.board-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 8px var(--space); border-bottom: 1px solid var(--line); }
.board-tools .filters { flex: 1 1 295px; gap: 7px; padding: 0; border: 0; }
.board-tools .search { flex: 0 1 246px; }
.board-tools .search input { height: 33px; min-height: 33px; }
.board-tools > .button { margin-inline-start: 4px; }
.board-filter-panel, .task-display { position: relative; }
.board-filter-panel > summary, .task-display > summary, .assignment-filter > summary {
  display: flex; align-items: center; gap: 7px; min-height: 33px; padding: 6px 9px;
  border: 1px solid var(--control); border-radius: 6px; background: var(--surface); color: var(--text);
  font-size: .81rem; font-weight: 605; text-decoration: none;
}
.board-filter-panel > summary, .task-display > summary { border-color: transparent; background: transparent; color: var(--muted); }
.board-filter-panel > summary svg, .task-display > summary svg { width: 15px; height: 15px; }
.board-filter-panel > summary::after, .task-display > summary::after { display: none; }
.board-filter-panel > summary:hover, .task-display > summary:hover, .assignment-filter > summary:hover { background: var(--hover); }
.board-filter-panel[open] > summary, .task-display[open] > summary { background: var(--selected); color: var(--ink); }
#board-filter-count { min-width: 17px; padding: 0 3px; border-radius: 4px; text-align: center; background: var(--blue-wash); color: var(--blue-dark); }
.board-filter-content, .task-display-panel, .assignment-filter-options {
  position: absolute; z-index: 5; top: calc(100% + 6px); display: grid; gap: 10px;
  padding: 13px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); box-shadow: var(--shadow);
}
.board-filter-content { inset-inline-start: 0; width: min(390px, calc(100vw - 32px)); }
.task-display-panel { inset-inline-end: 0; width: min(226px, calc(100vw - 30px)); }
.task-display-panel fieldset { display: grid; margin: 0; padding: 5px 0 0; border: 0; }
.task-display-panel legend { padding: 0; color: var(--muted); font-size: .79rem; }
.task-display-panel label:has(input) { display: flex; align-items: center; gap: 8px; min-height: 31px; font-size: .84rem; cursor: pointer; }
.task-display-panel > label:last-child { padding-top: 6px; border-top: 1px solid var(--line); }
.task-layout-switch [data-task-layout] { min-width: 32px; }
.board-tag-sets { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 9px; }
.board-tag-sets [aria-pressed="true"], .board-status-bar [aria-pressed="true"] { background: var(--blue-wash); color: var(--blue-dark); border-color: var(--focus); }
.board-status-filter { min-width: 0; margin: 0; padding: 0; border: 0; }
.board-status-filter legend { margin-bottom: 4px; padding: 0; color: var(--text); font-size: .8rem; font-weight: 635; }
.board-tag-filter { min-width: 0; margin: 0; padding: 8px; border: 1px solid var(--line); border-radius: 7px; }
.board-tag-filter legend { padding: 0 4px; color: var(--text); font-size: .8rem; font-weight: 630; }
.board-tag-filter .check-grid { max-height: 155px; overflow: auto; }
.board-status-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.board-status-bar button { min-height: 29px; padding: 4px 7px; border: 1px solid var(--control); border-radius: 5px; font-size: .76rem; }
.board-status-bar button:hover { border-color: var(--muted); }

.assignment-filter { position: relative; min-width: 0; }
.assignment-filter > summary { min-height: 35px; justify-content: space-between; }
.assignment-filter-options { z-index: 6; inset-inline: 0; gap: 2px; padding: 4px; }
.assignment-filter-options label, #assignment-filter-value { display: flex; align-items: center; gap: 6px; }
.assignment-filter-options label { min-height: 33px; padding: 5px 6px; border-radius: 4px; font-size: .8rem; cursor: pointer; }
.assignment-filter-options label:hover { background: var(--hover); }
.assignment-filter-options label:has(input:checked) { background: var(--blue-wash); }
[data-assignment-state="free"] { --assignment-bg: var(--hover); --assignment-ink: var(--muted); }
[data-assignment-state="assigned"] { --assignment-bg: var(--green-wash); --assignment-ink: var(--green); }
[data-assignment-state="waiting"] { --assignment-bg: var(--amber-wash); --assignment-ink: var(--amber); }
.tag.assignment-badge { background: var(--assignment-bg); color: var(--assignment-ink); }

:is(.task-layout-switch, :where(.pool-layout-tools) .layout-switch) { display: inline-flex; gap: 1px; align-items: stretch; padding: 2px; border-radius: 7px; border: 1px solid transparent; background: var(--paper); }
:is(.task-layout-switch, :where(.pool-layout-tools) .layout-switch) button { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 4px 8px; border-radius: 4px; color: var(--muted); font-size: .79rem; font-weight: 585; line-height: 1.5; }
:is(.task-layout-switch, :where(.pool-layout-tools) .layout-switch) svg { width: 14px; height: 14px; }
:is(.task-layout-switch, :where(.pool-layout-tools) .layout-switch) [aria-pressed="true"] { color: var(--ink); background: var(--surface); box-shadow: 0 1px 3px #00000020; }
:is(.task-layout-switch, :where(.pool-layout-tools) .layout-switch) button:hover { color: var(--ink); }
.board-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 11px; min-height: 41px; padding: 4px var(--space); color: var(--muted); font-size: .78rem; }
.task-period-tabs { display: inline-flex; align-items: stretch; gap: 2px; min-width: 0; }
.task-period-tabs button { padding: 4px 7px; min-height: 30px; border-bottom: 2px solid transparent; color: var(--muted); white-space: nowrap; font-size: .8rem; }
.task-period-tabs button:hover { color: var(--ink); background: var(--hover); }
.task-period-tabs button[aria-pressed="true"] { border-color: var(--blue); color: var(--ink); font-weight: 665; }
.board-summary #task-count { font-weight: 660; color: var(--text); }
.attention-filter {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 3px 8px;
  border: 1px solid color-mix(in srgb, var(--red-mark) 55%, var(--surface)); border-radius: 6px;
  background: var(--red-wash); color: var(--red); font-size: .79rem; font-weight: 675;
}
.attention-filter svg { width: 14px; height: 14px; }
.attention-filter:hover { border-color: var(--red); }
.attention-filter[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: var(--surface); }
.board-summary .sync-label { margin-inline-start: auto; }
.board-summary #telegram-status { font-size: .75rem; }
.board-tools + .notice { margin: 10px var(--space) 0; }
#tasks-results { container-type: inline-size; }
.task-board {
  --hall-width: minmax(90px, .26fr); --priority-width: minmax(84px, .19fr);
  --columns: 9ch minmax(140px, 1fr) var(--hall-column, var(--hall-width)) var(--priority-column, var(--priority-width)) minmax(140px, .33fr);
  --cell-gap: 13px;
}
.task-board[data-show-hall="false"] { --hall-column: ; }
.task-board[data-show-priority="false"] { --priority-column: ; }
.task-board[data-show-hall="false"] :is(.task-row-location, .hall-heading),
.task-board[data-show-priority="false"] :is(.task-row-priority, .priority-heading) { display: none; }
.board-column { min-width: 0; }
.board-column-header { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px var(--space); background: var(--paper); border-top: 1px solid var(--line); }
.board-column-header h2 { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: .88rem; font-weight: 700; letter-spacing: -.012em; }
.board-count { font-size: .74rem; font-weight: 580; font-variant-numeric: tabular-nums; color: var(--muted); }
.board-column-header .board-count { display: inline-grid; place-items: center; min-width: 12px; height: 18px; }
.board-cards { list-style: none; margin: 0; padding: 0; }
.board-column[data-status="queued"], .hall-check-row:is([data-status="noticed"], [data-status="comment"]) { --state-fill: var(--sky-field); --state-ink: var(--sky-ink); }
.board-column[data-status="in_progress"], [data-capacity="busy"], [data-capacity-group="busy"], .hall-check-row[data-status="wait"] { --state-fill: var(--amber-field); --state-ink: var(--amber); }
.board-column[data-status="done"], [data-capacity="free"], [data-capacity-group="free"], .hall-check-row[data-status="ready"] { --state-fill: var(--green-field); --state-ink: var(--green); }
.board-column[data-status="cancelled"] { --state-fill: var(--grey-field); --state-ink: var(--text); }
[data-capacity="unavailable"], [data-capacity-group="unavailable"] { --state-fill: var(--violet-field); --state-ink: var(--lilac); }
.task-row:is([data-staffing="unassigned"], [data-staffing="mixed"]) { --state-fill: var(--peach-field); --state-ink: var(--peach-ink); }
.task-board .task-row:has(.task-row-blocked), .hall-check-row[data-status="fail"] { --state-fill: var(--coral-field); --state-ink: var(--red); }
.task-staffing-label {
  display: inline-flex; flex: none; align-items: center; gap: 4px; width: fit-content; max-width: 100%; padding: 1px 5px;
  border-radius: 4px; color: var(--peach-ink); background: color-mix(in srgb, var(--peach-field) 64%, var(--surface));
  font-size: .7rem; font-weight: 665; line-height: 1.5;
}
.task-staffing-label::before { content: ""; flex: none; width: 9px; height: 9px; border: 1.5px dashed currentColor; border-radius: 50%; }
.task-staffing-label[data-staffing="assigned"] { color: var(--sky-ink); background: color-mix(in srgb, var(--sky-field) 70%, var(--surface)); }
.task-staffing-label[data-staffing="assigned"]::before { width: 11px; height: 11px; border: 0; background: currentColor; mask: var(--check) center / contain no-repeat; }
.task-staffing-label[data-staffing="mixed"]::before { border-style: solid; background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
.task-row { --row-fill: color-mix(in srgb, var(--state-fill, var(--paper)) 60%, var(--surface)); min-width: 0; background: var(--row-fill); }
.board-column:is([data-status="done"], [data-status="cancelled"]) .task-row { --row-fill: color-mix(in srgb, var(--state-fill) 33%, var(--surface)); }
.task-board .task-row:has(.task-row-blocked) { --row-fill: var(--state-fill); }
[data-layout="list"] .task-row {
  display: grid; align-items: center; grid-template-columns: 37px var(--columns); column-gap: var(--cell-gap); padding-inline: var(--space);
}
.task-row:is(:hover, :focus-within) { background: color-mix(in srgb, var(--state-ink, var(--muted)) 7%, var(--row-fill)); }
[data-layout="list"] .board-card { grid-column: 2 / -1; grid-row: 1; grid-template-columns: subgrid; padding-inline: 0; }
[data-layout="list"] .task-row:has(.task-row-assign) > .board-card { grid-column-end: -2; }
[data-layout="list"] :is(.task-row-status, .task-row-status-static) { grid-row: 1; grid-column: 1; justify-self: center; }
.task-board[data-layout="list"] .task-row:not(:last-child) { border-bottom: 1px solid var(--line); }
[data-layout="list"] button.task-row-status:not(:hover):not(:focus-visible) { background: transparent; color: var(--state-ink); }
.task-board[data-layout="list"] .board-column:last-child { border-bottom: 1px solid var(--line); }
.task-list-head, .board-card { display: grid; align-items: center; grid-template-columns: var(--columns); gap: var(--cell-gap); padding-inline: var(--space); }
.task-list-head::before { content: ""; }
.task-list-head { grid-template-columns: 37px var(--columns); min-height: 30px; color: var(--muted); font-size: .73rem; font-weight: 555; }
.board-card { width: 100%; min-height: 40px; padding-block: 5px; text-align: start; color: var(--ink); }
.board-card:focus-visible { outline-offset: -2px; }
.task-code { min-width: 0; overflow-wrap: anywhere; font-size: .76rem; font-weight: 555; font-variant-numeric: tabular-nums; color: var(--muted); }
.board-card-heading, .task-row-location, .task-row-owner, .task-row-priority, .task-row-flags { display: flex; align-items: center; gap: 6px; min-width: 0; }
.board-card-heading { gap: 8px; }
.board-card-description { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .88rem; font-weight: 660; letter-spacing: -.012em; }
.task-row-flags { flex: none; gap: 4px; }
.task-row-flags > span { display: inline-flex; align-items: center; gap: 3px; padding: 1px 4px; border-radius: 4px; font-size: .7rem; font-weight: 640; }
.task-row-flags svg, .board-card-questions svg, .task-row-priority svg, .task-row-owner svg, .task-row-location svg { width: 13px; height: 13px; }
.task-row-blocked { background: var(--red-wash); color: var(--red); }
/* A blocker or failed delivery should stand out even when the status column is offscreen. */
.task-row:has(.task-row-blocked), .hall-check-row[data-status="fail"],
.discussion[data-attention="blocking"], .delivery[data-status="failed"] { position: relative; }
.task-row:has(.task-row-blocked)::before, .hall-check-row[data-status="fail"]::before,
.discussion[data-attention="blocking"]::before, .delivery[data-status="failed"]::before {
  content: ""; position: absolute; z-index: 1; pointer-events: none; inset: 5px auto 5px 0;
  width: 3px; border-radius: 0 2px 2px 0; background: var(--red-mark);
}
.task-row:has(.task-row-blocked) .task-state-icon { color: var(--red); }
.task-row-blocked { background: color-mix(in srgb, var(--red-mark) 17%, var(--surface)); }
.hall-check-row[data-status] { background: var(--state-fill, var(--paper)); }
.discussion[data-attention="blocking"] .discussion-head,
.delivery[data-status="failed"] { background: var(--coral-field); }
.discussion[data-attention="urgent"] .discussion-head,
.task-thread:has(.discussion[data-attention="urgent"]) > summary { background: var(--amber-field); }
.discussion[data-attention="urgent"] .discussion-tags .status.waiting,
.task-thread:has(.discussion[data-attention="urgent"]) .task-thread-summary .status.waiting { background: var(--amber); color: var(--surface); }
.delivery[data-status="failed"] .delivery-text p { color: var(--red); }
.board-card-questions { background: var(--amber-wash); color: var(--amber); }
.task-row-location, .task-row-priority, .task-row-owner { font-size: .77rem; line-height: 1.4; font-weight: 500; color: var(--muted); overflow-wrap: anywhere; }
.task-row :is(.task-code, .task-row-location, .task-row-owner, .task-row-priority:not([data-priority="high"]), .task-completion) { color: color-mix(in srgb, var(--text) 80%, var(--state-ink)); }
.task-row-owner { flex-wrap: wrap; gap: 2px 6px; }
.task-owner-avatar {
  display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%;
  color: var(--blue-dark); background: var(--blue-wash); font-size: .6rem; font-weight: 725; line-height: 1;
}
.task-owner-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.task-owner-waiting { flex-basis: 100%; padding-inline-start: 28px; color: var(--amber); font-size: .69rem; }
.task-priority-meter { display: inline-flex; align-items: end; gap: 2px; width: 13px; height: 12px; flex: none; }
.task-priority-meter i { width: 3px; height: 4px; border-radius: 1px; background: var(--control); }
.task-priority-meter i:nth-child(2) { height: 7px; }
.task-priority-meter i:nth-child(3) { height: 10px; }
.task-priority-meter i:first-child, [data-priority="normal"] .task-priority-meter i:nth-child(2),
[data-priority="high"] .task-priority-meter i { background: currentColor; }
.task-row-priority[data-priority="high"] { width: fit-content; padding: 2px 5px; border-radius: 4px; background: var(--amber-wash); color: var(--amber); font-weight: 635; }
.task-row-assign {
  grid-column: -2 / -1; grid-row: 1; justify-self: start;
  display: inline-flex; align-items: center; gap: 5px; min-height: 28px; padding: 3px 8px;
  border: 1px solid var(--control); border-radius: 5px; color: var(--text); background: var(--surface); font-size: .76rem; font-weight: 590;
}
.task-row-assign svg { width: 13px; height: 13px; }
.task-row-assign:hover { background: var(--blue-wash); color: var(--blue-dark); border-color: var(--focus); }
.board-column-header h2::before, .task-state-icon {
  content: ""; flex: none; display: inline-block; width: 14px; height: 14px; border: 1.7px solid currentColor; border-radius: 50%; color: var(--muted);
}
[data-status="queued"] .board-column-header h2::before, [data-status="queued"] .task-state-icon { border-style: dashed; color: var(--sky-ink); }
[data-status="in_progress"] .board-column-header h2::before, [data-status="in_progress"] .task-state-icon { color: var(--amber); background: linear-gradient(90deg, currentColor 50%, transparent 50%); }
[data-status="done"] .board-column-header h2::before, [data-status="done"] .task-state-icon { color: var(--green); }
[data-status="cancelled"] .board-column-header h2::before, [data-status="cancelled"] .task-state-icon { background: linear-gradient(-48deg, transparent 41%, currentColor 44%, currentColor 55%, transparent 58%) center / 72% 72% no-repeat; }
[data-status="done"] .board-column-header h2, [data-status="done"] .task-state-icon { position: relative; }
[data-status="done"] .board-column-header h2::after, [data-status="done"] .task-state-icon::after {
  content: ""; position: absolute; top: 50%; left: 2px; width: 10px; height: 10px; transform: translateY(-50%);
  background: var(--green); mask: var(--check) center / contain no-repeat;
}
[data-status="done"] .task-state-icon::after { width: 9px; height: 9px; left: 1px; }
.board-empty { padding: 16px var(--space); color: var(--muted); font-size: .85rem; }
.task-list-empty { text-align: center; padding-block: 50px; border-top: 1px solid var(--line); }

.task-board[data-layout="board"] { display: grid; grid-template-columns: repeat(var(--column-count, 4), minmax(0, 1fr)); align-items: start; gap: 13px; padding: 0 var(--space); }
.task-board[data-layout="board"]:has(> :only-child) { grid-template-columns: minmax(0, 360px); }
[data-layout="board"] .board-column { padding: 0 6px 7px; border-radius: 8px; background: var(--paper); }
[data-layout="board"] .board-column-header { min-height: 40px; padding: 8px 4px; border: none; background: transparent; }
[data-layout="board"] .board-cards { display: grid; gap: 6px; }
[data-layout="board"] .task-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-content: start; gap: 0 6px; border: 1px solid color-mix(in srgb, var(--state-ink) 20%, var(--surface)); border-radius: 7px; }
[data-layout="board"] .task-row:hover { border-color: var(--control); }
[data-layout="board"] .board-card { grid-row: 1; grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-content: start; align-items: center; gap: 5px 8px; min-height: 0; padding: 9px; border-radius: inherit; }
[data-layout="board"] .board-card-heading { order: -1; width: 100%; flex-wrap: wrap; gap: 4px 6px; }
[data-layout="board"] .board-card-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow-wrap: anywhere; white-space: normal; }
[data-layout="board"] :is(.task-row-status, .task-row-status-static) {
  grid-column: 1; grid-row: 2; justify-self: start; align-self: center; margin: 0 0 8px 10px;
}
[data-layout="board"] .task-row:has(.task-row-status-static) .board-card { grid-column: 1; }
[data-layout="board"] .task-row-status-static { grid-column: 2; grid-row: 1; align-self: start; width: auto; margin: 11px 8px 0 0; }
[data-layout="board"] .task-row-owner { flex-basis: 100%; }
[data-layout="board"] .task-row-assign { grid-column: 2; grid-row: 2; align-self: center; margin: 0 10px 8px 0; }
[data-layout="board"] .board-empty { padding: 8px 5px 14px; font-size: .78rem; }

@container (max-width: 970px) {
  .task-board {
    --hall-width: minmax(68px, .26fr); --priority-width: minmax(66px, .23fr);
    --columns: 8ch minmax(124px, 1fr) var(--hall-column, var(--hall-width)) var(--priority-column, var(--priority-width)) minmax(104px, .31fr);
    --cell-gap: 8px;
  }
  [data-layout="list"] .board-card-heading { flex-wrap: wrap; row-gap: 3px; }
  [data-layout="list"] .board-card-description { flex: 1; }
  [data-layout="list"] .board-card-heading:has(.task-staffing-label) .board-card-description { flex-basis: 100%; }
  [data-layout="list"] .task-row-flags { flex-basis: 100%; }
  [data-layout="list"] .task-staffing-label + .task-row-flags { flex-basis: auto; margin: 0; }
  .task-board[data-layout="board"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container (max-width: 690px) {
  .task-list-head { display: none; }
  .task-board[data-layout="list"] .task-row {
    grid-template-columns: minmax(0, 1fr) auto; align-content: center; gap: 3px 8px; padding-block: 4px;
  }
  [data-layout="list"] :is(.task-row-status, .task-row-status-static) { grid-column: 2; grid-row: 1; justify-self: end; }
  [data-layout="list"] .task-row:not(:has(.task-row-assign)) > :is(.task-row-status, .task-row-status-static) { grid-row: 1 / span 2; }
  [data-layout="list"] .task-row-status-static { width: 25px; }
  [data-layout="list"] .board-card { grid-column: 1; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; gap: 5px 9px; align-items: center; min-height: 62px; padding-block: 9px; }
  [data-layout="list"] .board-card-heading { order: -1; flex-basis: 100%; }
  [data-layout="list"] .board-card-description { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; overflow-wrap: anywhere; line-height: 1.35; }
  [data-layout="list"] .task-state-icon { width: 12px; height: 12px; }
  [data-layout="list"] .task-row-flags { flex-basis: auto; margin: 0; }
  [data-layout="list"] .task-code { font-size: .72rem; }
  [data-layout="list"] .task-row-assign { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; min-height: 44px; }
  [data-layout="list"] .task-row-owner { font-size: .72rem; }
  [data-layout="list"] .task-owner-avatar { height: 18px; width: 18px; font-size: .52rem; }
  [data-layout="list"] .task-owner-waiting { padding-inline-start: 0; flex-basis: auto; }
  [data-layout="list"] .task-row-priority:not([data-priority="high"]) .task-priority-label {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
  }
}
@container (max-width: 510px) {
  .task-board[data-layout="board"] { grid-template-columns: minmax(0, 1fr); gap: 13px; }
}

.create-task-destination { border: 1px solid var(--line); border-radius: 6px; padding: 0 10px; }
.create-task-destination > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 40px;
  color: var(--ink);
  font-weight: 630;
  text-decoration: none;
  list-style: none;
}
.create-task-destination > summary span { margin-inline-start: auto; color: var(--muted); font-weight: 600; }
.create-task-destination > summary::after { margin-inline-start: 0; }
.create-task-destination .check-grid { padding-block: 4px 8px; }

.volunteer-target svg { width: 13px; height: 13px; }
.task-detail { display: grid; gap: 10px; }
.task-detail .detail-description { margin: 0; line-height: 1.45; }
.task-detail-section { display: grid; gap: 5px; min-width: 0; }
.task-detail-section h3, .task-metadata { font-size: .83rem; }
.task-group-halls { display: grid; gap: 5px; }
.task-group-hall {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  width: 100%; min-height: 44px; padding: 6px 9px;
  border: 1px solid var(--line); border-radius: 6px; text-align: start;
}
.task-group-hall:hover { border-color: var(--blue); background: var(--blue-wash); }
#task-detail[data-staffing] > .tag-list:has(.status.queued), .task-group-hall-row:has(.status.queued) .task-group-hall[data-staffing] {
  background: var(--sky-field);
}
#task-detail:is([data-staffing="unassigned"], [data-staffing="mixed"]) > .tag-list:has(.status.queued),
.task-group-hall-row:has(.status.queued) .task-group-hall:is([data-staffing="unassigned"], [data-staffing="mixed"]) { background: var(--peach-field); }
#task-detail[data-staffing] > .tag-list:has(.status.queued) { padding: 6px 8px; border-radius: 6px; }
#task-detail[data-staffing]:has(.task-blocker-banner) > .tag-list:has(.status.queued),
.task-group-hall-row:has(.status.blocked) .task-group-hall[data-staffing] { background: var(--coral-field); }
.task-group-hall > svg, .task-group-back svg, [data-open-task-group] .board-card-meta > svg { width: 15px; height: 15px; color: var(--blue-dark); }
.task-group-hall strong, [data-open-task-group] .board-card-meta > .tag-list { flex: 1 1 auto; }
.task-group-back { display: inline-flex; align-items: center; gap: 5px; justify-self: start; }
.task-detail-section h3 { display: flex; align-items: center; gap: 8px; }
.task-blocker-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  padding: 9px 11px; border-radius: 6px; background: var(--red-wash); color: var(--red);
}
.task-blocker-banner .muted-link { margin-inline-start: auto; color: inherit; }
.task-blocker-banner svg { width: 16px; height: 16px; }
.task-fold { min-width: 0; border-top: 1px solid var(--line); background: var(--surface); }
.task-fold > summary {
  min-height: 36px; display: flex; align-items: center; gap: 7px; padding: 6px 2px;
  color: var(--ink); font-weight: 645; text-decoration: none; list-style: none;
}
.task-fold > :not(summary) { margin: 0 2px 8px; }
.task-thread-summary { display: flex; align-items: center; gap: 7px; min-width: 0; flex: 1; }
.task-thread-summary strong { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-thread-summary .status { flex: none; }
.task-thread--blocking > summary { background: var(--red-wash); }
.task-add-question { border-color: transparent; }
.task-add-question > summary { color: var(--blue-dark); }
.task-thread > summary, #task-questions-title { scroll-margin-top: 70px; }
.discussion--compact { border: 0; background: transparent; }
.discussion--compact .discussion-body { padding: 2px 0; }
.discussion--compact .thread-message { padding-block: 1px; padding-inline-start: 7px; margin-bottom: 5px; }
.discussion--compact .message-meta { display: inline-flex; font-size: .72rem; }
.discussion--compact .message-body { line-height: 1.4; }
.discussion--compact .reply-form { margin-top: 2px; padding: 4px 0 0; }
.discussion--compact .reply-buttons { gap: 4px; margin-top: 4px; }
.discussion--compact textarea { min-height: 40px; max-height: 126px; field-sizing: content; }
#new-question-form textarea { min-height: 62px; }
.task-thread-controller { display: block; margin-block: 4px; }
.question-thread-options .check-grid { margin-block: 5px; }
.question-thread-options .field { margin-top: 5px; }
.task-person { display: flex; align-items: center; gap: 7px; }
.task-person small { margin-inline-start: auto; }
.task-modal-footer {
  position: sticky; bottom: 0; z-index: 1; align-items: center; gap: 7px; margin-top: 2px;
  padding-block: 7px; background: var(--surface); border-top: 1px solid var(--line);
}
#assignment-progress { flex: 1 1 135px; font-weight: 645; font-size: .83rem; }
#assignment-progress.assignment-count-mismatch { color: var(--amber); }
.assignment-person { align-items: center; min-height: 44px; margin-bottom: 4px; padding: 5px 8px; }
.assignment-person .person-info { min-width: 0; display: grid; }
.assignment-person-tags { margin-inline-start: auto; max-width: 42%; text-align: end; }
.task-create-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; padding-block: 5px; }
.task-create-options .check-line { grid-column: 1/-1; min-height: 27px; }


.workspace-brand { display: flex; align-items: center; flex: none; gap: 9px; min-height: 56px; padding: 6px 7px; }
.brand-mark { background: #5552ad; color: white; }
.signal-mark { display: inline-flex; gap: 2px; align-items: center; }
.signal-mark i { width: 3px; height: 13px; transform: skewX(-15deg); background: currentColor; }
.signal-mark i:nth-child(2) { opacity: .8; }
.signal-mark i:nth-child(3) { opacity: .6; }
.workspace-title { display: block; color: var(--ink); font-size: .91rem; font-weight: 720; letter-spacing: -.025em; line-height: 1.3; }
.workspace-title small { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .045em; margin-top: 2px; }
.workspace-heading { min-width: 0; flex: 1; }
.workspace-heading { font-size: 1.23rem; font-weight: 715; line-height: 1.2; letter-spacing: -.035em; }
.workspace-heading:focus { outline: 0; }
.sidebar-footer .connection { margin-block: 7px 0; }
.search kbd { position: absolute; right: 7px; padding: 0 4px; border-radius: 3px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font: 530 .69rem/1.6 Manrope, sans-serif; pointer-events: none; }
.search:has(kbd) input:not([type=checkbox]) { padding-inline-end: 45px; }
.question-box-tabs { display: flex; overflow: auto; gap: 16px; margin-bottom: 15px; border-bottom: 1px solid var(--line); }
.question-box-tabs button { flex: none; padding: 7px 3px; min-height: 37px; border-bottom: 2px solid transparent; font-size: .84rem; color: var(--muted); }
.question-box-tabs button:is(.active, [aria-current="page"], [aria-pressed="true"], [aria-selected="true"]) { color: var(--ink); border-bottom-color: var(--blue); }
.assignment-person { display: flex; gap: 8px; border: 1px solid var(--line); border-radius: 6px; }
.assignment-person:has(input:checked) { outline: 2px solid var(--focus); outline-offset: -2px; }
/* The same native progress value is drawn as a horizontal track or a ring. */
.workflow-progress { --ring-size: 24px; display: grid; align-content: start; gap: 5px; min-width: 0; color: var(--text); font-size: .81rem; }
.workflow-progress label, .progress-caption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 8px; }
.progress-indicator { display: block; min-width: 0; }
.workflow-progress progress, progress.progress-track {
  display: block; appearance: none; width: 100%; height: 6px; border: 0; border-radius: 6px;
  overflow: hidden; color: var(--blue-dark); background: var(--selected); accent-color: var(--blue-dark);
}
.workflow-progress progress[value]::-webkit-progress-bar, progress.progress-track[value]::-webkit-progress-bar { background-color: var(--selected); border-radius: inherit; }
.workflow-progress progress[value]::-webkit-progress-value, progress.progress-track[value]::-webkit-progress-value { background: var(--blue-dark); border-radius: inherit; }
.workflow-progress progress[value]::-moz-progress-bar, progress.progress-track[value]::-moz-progress-bar { background: var(--blue-dark); border-radius: inherit; }
.workflow-progress progress:indeterminate { appearance: auto; }
.task-completion { --ring-size: 18px; width: 100%; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.task-completion progress { max-width: 132px; height: 4px; }
.progress-cancelled { font-size: .72rem; color: var(--muted); }
#visible-task-progress { min-width: 0; }
#visible-task-progress .task-completion { --ring-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
#visible-task-progress .progress-indicator { width: clamp(120px, 12vw, 156px); max-width: 100%; }
#visible-task-progress .progress-track { max-width: none; height: 6px; }
.task-workflow-progress { width: 100%; max-width: 450px; padding-block: 4px; }
.task-workflow-progress progress + label { margin-top: 5px; }
#deliveries-results > .workflow-progress { padding: 12px 14px 16px; border-bottom: 1px solid var(--line); }
#deliveries-results > .workflow-progress > *, .questions-list > .workflow-progress { width: min(100%, 420px); }
.pool-overview { grid-column: 1 / -1; grid-template-columns: minmax(0, 320px) auto; gap: 4px 20px; padding-block: 2px 9px; border-bottom: 1px solid var(--line); }
.pool-overview .progress-indicator { grid-column: 1; grid-row: 2; }
.pool-overview .pool-stats { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--muted); font-size: .79rem; }

[data-progress-style="ring"] .workflow-progress:has(> .progress-indicator:not([data-pending])) {
  grid-template-columns: var(--ring-size) minmax(0, 1fr); align-items: center; gap: 2px 8px;
}
[data-progress-style="ring"] .progress-caption { justify-content: flex-start; }
[data-progress-style="ring"] .workflow-progress:has(> .progress-indicator:not([data-pending])) > .progress-caption { grid-column: 2; grid-row: 1; }
[data-progress-style="ring"] .workflow-progress > :is(.progress-cancelled, .pool-stats) { grid-column: 2; grid-row: 2; }
[data-progress-style="ring"] .hall-check-heading { --ring-size: 25px; grid-template-columns: var(--ring-size) minmax(0, 1fr); align-items: center; gap: 4px 8px; }
[data-progress-style="ring"] .hall-check-heading > :is(small, strong) { grid-column: 1 / -1; }
[data-progress-style="ring"] .hall-check-summary { grid-column: 2; grid-row: 3; }
[data-progress-style="ring"] .progress-indicator:not([data-pending]),
[data-progress-style="ring"] #visible-task-progress .progress-indicator,
[data-progress-style="ring"] #deliveries-results .progress-indicator {
  position: relative; order: -1; grid-column: 1; grid-row: 1; width: var(--ring-size, 30px);
  height: var(--ring-size, 30px); flex: none;
}
[data-progress-style="ring"] .hall-check-heading .progress-indicator { grid-row: 3; }
[data-progress-style="ring"] .progress-indicator:not([data-pending])::before {
  --ring-empty: color-mix(in srgb, var(--muted) 42%, var(--surface));
  content: ""; display: block; width: 100%; height: 100%; border-radius: 50%;
  background: conic-gradient(var(--blue-dark) calc(var(--progress-ratio) * 1turn), var(--ring-empty) 0);
  mask: radial-gradient(closest-side, transparent 70%, #000 74%);
}
[data-progress-style="ring"] .progress-indicator:not([data-pending]) > .progress-track {
  position: absolute; inset: 0; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden;
}
@media (forced-colors: active) {
  [data-progress-style="ring"] .progress-indicator:not([data-pending])::before {
    forced-color-adjust: none; --blue-dark: Highlight; --ring-empty: GrayText;
  }
}
.volunteer-card { display: flex; flex-direction: column; }
.volunteer-card[data-capacity], .assignment-person[data-capacity], .capacity-key[data-capacity] {
  background: color-mix(in srgb, var(--state-fill, var(--paper)) 64%, var(--surface));
  border-color: color-mix(in srgb, var(--state-ink, var(--muted)) 35%, var(--state-fill, var(--paper)));
}
.volunteer-card[data-capacity] .avatar { color: var(--surface); background: var(--state-ink, var(--muted)); }
.capacity-key { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; border: 1px solid; border-radius: 5px; font-size: .77rem; color: var(--text); }
.capacity-key b { color: var(--state-ink, var(--ink)); font-variant-numeric: tabular-nums; }
.pool-layout-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 18px; }
.pool-switch-field { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px 7px; color: var(--muted); font-size: .77rem; }
.pool-groups, .pool-team-members { display: grid; min-width: 0; }
.pool-groups { align-items: start; gap: 14px; }
.pool-team { min-width: 0; }
.pool-team-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-height: 34px; padding: 3px 2px 6px; }
.pool-team-heading h2 { min-width: 0; font-size: .94rem; overflow-wrap: anywhere; }
.pool-team[data-capacity-group] h2 { display: inline-flex; align-items: center; gap: 7px; }
.pool-team[data-capacity-group] h2::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 3px; background: var(--state-ink, var(--muted)); }
.pool-team-heading h2 button { text-align: start; color: var(--blue-dark); }
.pool-team-heading h2 button:hover { text-decoration: underline; }
.pool-team-heading .muted { font-size: .76rem; }
.pool-team-members .volunteer-card { min-width: 0; padding: 8px 10px; gap: 6px; }
.pool-team-members .volunteer-heading, .pool-team-members .tag-list { min-width: 0; margin: 0; }
.pool-team-members .volunteer-heading h3 { font-size: .9rem; }
.crew-transfer { align-self: flex-start; }
.pool-task-status.workflow-progress { --ring-size: 19px; width: fit-content; max-width: 100%; gap: 3px 5px; align-self: center; }
.pool-task-status .progress-caption { justify-content: flex-start; align-items: center; gap: 3px 5px; }
.pool-task-status small { font-size: .72rem; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--text); }
.pool-task-status .status.waiting { background: var(--sky-field); color: var(--sky-ink); }
.pool-task-status .progress-track { height: 4px; }
[data-pool-layout="list"] .pool-groups { container: pool-list / inline-size; }
[data-pool-layout="list"] .pool-team-members { overflow: clip; border: 1px solid var(--control); border-radius: 6px; }
[data-pool-layout="list"] .volunteer-card {
  display: grid; grid-template-columns: minmax(150px, .7fr) minmax(230px, 1.6fr) minmax(76px, auto);
  align-items: center; gap: 4px 12px; min-height: 52px; border: 0; border-radius: 0;
}
[data-pool-layout="list"] .volunteer-card + .volunteer-card { border-top: 1px solid color-mix(in srgb, var(--state-ink, var(--muted)) 27%, var(--state-fill, var(--paper))); }
[data-pool-layout="list"] .volunteer-heading { grid-column: 1; grid-row: 1; }
[data-pool-layout="list"] .volunteer-card:not(:has(.volunteer-tasks)) .volunteer-heading { grid-column: 1 / 3; }
[data-pool-layout="list"] .volunteer-card > .tag-list { grid-column: 1; grid-row: 2; }
[data-pool-layout="list"] .volunteer-tasks { grid-column: 2; grid-row: 1 / span 2; }
[data-pool-layout="list"] .volunteer-card > :is(.volunteer-actions, .crew-transfer) { grid-column: 3; grid-row: 1 / span 2; justify-self: end; align-self: center; margin: 0; }
[data-pool-layout="list"] .volunteer-actions[open] { max-width: 200px; }
[data-pool-layout="board"] .pool-groups {
  grid-auto-flow: column; grid-auto-columns: clamp(min(85%, 248px), calc((100% - 24px) / 3), 365px); gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; padding-bottom: 8px;
  scrollbar-color: var(--control) var(--paper);
}
[data-pool-layout="board"] .pool-groups:focus-visible { outline-offset: -2px; }
[data-pool-layout="board"] .pool-team { min-height: 88px; padding: 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--paper); scroll-snap-align: start; }
[data-pool-layout="board"] .pool-team-heading { padding-inline: 3px; }
[data-pool-layout="board"] .pool-team-members { gap: 6px; }
[data-pool-layout="board"] .volunteer-card > .volunteer-tasks { margin-block: 2px; }
@container pool-list (min-width: 900px) {
  .volunteer-tasks { grid-template-columns: minmax(0, 1fr) max-content auto; }
  .pool-task { display: grid; grid-template-columns: subgrid; grid-column: 1 / -1; }
  .pool-task .crew-transfer { justify-self: start; }
}
@container pool-list (max-width: 760px) {
  [data-pool-layout="list"] .volunteer-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
  [data-pool-layout="list"] .volunteer-card > :is(.volunteer-actions, .crew-transfer) { grid-column: 1 / -1; grid-row: auto; justify-self: start; }
  [data-pool-layout="list"] .volunteer-actions[open] { max-width: 100%; }
}
@container pool-list (max-width: 480px) {
  [data-pool-layout="list"] .volunteer-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  [data-pool-layout="list"] .volunteer-card > :is(.volunteer-tasks, .volunteer-actions) { align-self: stretch; }
  [data-pool-layout="list"] .volunteer-card > .crew-transfer { align-self: start; }
}
.volunteer-card > .tag-list { margin-bottom: 7px; }
.volunteer-actions { margin-top: auto; }
.pool-stats, .assignment-person-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.availability[data-state], .assignment-person-state span { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: .75rem; font-weight: 570; }
:is(.availability[data-state], .assignment-person-state) svg { width: 13px; height: 13px; }
.availability[data-state="available"], .availability[data-state="free"],
.assignment-person-state :is([data-availability="available"], [data-workload="free"]) { color: var(--green); }
.availability[data-state="unavailable"], .assignment-person-state [data-availability="unavailable"] { color: var(--lilac); }
.availability[data-state="busy"], .assignment-person-state [data-workload="busy"] { color: var(--amber); }
[data-capacity="unavailable"] .assignment-person-state [data-workload="busy"] { padding: 1px 5px; border-radius: 4px; background: var(--amber-field); }
.assignment-choice { flex: 1; display: flex; align-items: center; gap: 8px; min-width: 0; }
.assignment-direct { flex: none; }
.create-task-more { border-block: 1px solid var(--line); padding-block: 3px; }
.create-task-more > summary { padding-block: 6px; font-size: .84rem; font-weight: 650; color: var(--text); }
.create-task-more[open] > summary { margin-bottom: 6px; }
.create-task-more .create-task-destination { margin: 8px 0 0; min-width: 0; }
.create-task-destination legend { color: var(--text); font-size: .83rem; font-weight: 635; }
.hall-signal::before { display: none; }
.hall-signal svg { width: 13px; height: 13px; }
@media (max-width: 1100px) {
  :root { --sidebar-width: 210px; --space: 21px; }
  .board-filter-content { inset-inline: auto 0; }
}
@media (max-width: 800px) {
  :root { --space: 15px; }
  .app-shell { display: block; }
  .sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: min(290px, 88vw); transform: translateX(-100%); transition: transform .18s ease-out; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-account { display: grid; flex: none; margin-block-start: 7px; border-top: 1px solid var(--line); }
  .sidebar .nav-button, .sidebar .nav-group > summary { min-height: 44px; }
  .sidebar-footer { margin-top: 5px; }
  .drawer-close { display: inline-grid; position: absolute; right: 5px; top: 10px; }
  .mobile-menu { display: inline-grid; }
  .menu-scrim:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 9; background: var(--overlay); }
  .topbar { justify-content: start; min-height: 52px; gap: 6px; padding: 3px var(--space) 3px 6px; }
  .workspace-heading, .board-title { font-size: 1.11rem; }
  .topbar .top-right, .board-tools .board-create-desktop { display: none; }
  .topbar--board .board-create-mobile { display: inline-grid; background: var(--blue); color: white; }
  .icon-button, .button, .button.small, .assignment-direct, .attention-filter { min-height: 44px; }
  .icon-button { min-width: 44px; }
  .page { padding-top: 17px; }
  .page:has(#tasks-results) { padding-top: 0; }
  .board-tools { gap: 7px; padding-block: 8px; }
  .board-tools .filters { flex: 1 1 165px; position: relative; }
  .board-tools .search { flex: 1; }
  .board-tools .search input, .board-filter-panel > summary, .task-display > summary, .task-display-panel label:has(input), .assignment-filter > summary, .assignment-filter-options label, .board-status-bar button, .workspace-appearance select { min-height: 44px; }
  :is(.task-layout-switch, :where(.pool-layout-tools) .layout-switch) button { min-height: 40px; }
  .board-filter-panel { position: static; }
  .board-filter-content { inset-inline: 0 auto; width: min(390px, calc(100vw - 30px)); max-height: 65dvh; overflow-y: auto; }
  .board-summary { min-height: 38px; gap: 2px 9px; padding-block: 3px; }
  .team-dashboard-actions { gap: 4px; }
  .team-dashboard-actions .muted-link, .task-period-tabs button, .volunteer-actions summary,
  .sidebar .appearance-settings > summary { min-height: 44px; }
  .board-summary #telegram-status { flex: 1 1 200px; }
  .board-summary .sync-label { font-size: .73rem; }
  .board-summary #telegram-status:not([hidden]) { order: 2; flex-basis: 100%; }
  .board-tools .search kbd { display: none; }
  .board-tools .search input:not([type=checkbox]) { padding-inline-end: 7px; }
  input:not([type=checkbox],[type=radio]), select, textarea, .filters select, .search input { font-size: 16px; }
  .form-row, .admin-layout { grid-template-columns: 1fr; }
  .task-fold > summary { min-height: 44px; }
  .modal { width: min(560px, calc(100vw - 12px)); max-height: calc(100dvh - 12px); }
  .modal-head { padding: 5px 10px 5px 14px; }
  .modal-body { padding: 14px; }
  .modal-footer { align-items: center; }
  .task-detail { gap: 10px; }
  .task-primary-actions { gap: 6px; }
  #create-task-form { gap: 10px; }
  #create-task-form textarea { min-height: 65px; }
  #create-task-form summary { min-height: 44px; }
  #create-task-form .check-grid { max-height: min(27dvh, 140px); overflow: auto; }
  #assignment-form { gap: 8px; }
}
@media (max-width: 540px) {
  button.task-status-control, button[data-action="reopen-question"] { min-height: 44px; }
  button.task-row-status { min-width: 44px; }
  .board-tools { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; column-gap: 4px; }
  .board-tools .filters { flex-wrap: nowrap; }
  .task-layout-switch { align-self: center; }
  .task-layout-switch [data-task-layout] { min-height: 44px; min-width: 44px; padding: 4px; }
  .task-display > summary { min-width: 44px; justify-content: center; padding-inline: 5px; }
  .task-display > summary svg { display: none; }
  .board-summary { min-height: 32px; }
  .board-summary #visible-task-progress { order: 1; }
  .task-period-tabs { flex-basis: 100%; }
  .task-period-tabs button { padding-inline: 5px; }
  .team-tabs button { padding-inline: 5px; }
  .team-dashboard-tools { padding-inline: 9px; gap: 2px 3px; }
  .team-dashboard-actions .icon-button { min-width: 40px; }
  .volunteer-actions summary { padding-inline: 2px; }
  .board-summary #clear-task-filters { order: 2; }
  .board-summary #telegram-status:not([hidden]) { order: 3; }
  .pool-overview { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .pool-overview .pool-stats { grid-column: 1; grid-row: 3; }
  .task-list-empty { text-align: start; }
  .form-row, .hall-check-row { grid-template-columns: minmax(0, 1fr); }
  .section-toolbar { flex-wrap: wrap; }
  .status-stack { align-items: flex-start; }
  .question-box-tabs button { min-height: 44px; }
}
@media (max-width: 365px) {
  .board-filter-panel > summary { min-width: 44px; justify-content: center; }
  .board-filter-panel > summary > span:not(#board-filter-count) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .task-thread-summary:has(.status + .status) { flex-wrap: wrap; gap: 3px 5px; }
  .task-thread-summary:has(.status + .status) strong { flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
  .workflow-progress progress:indeterminate {
    appearance: none; background: repeating-linear-gradient(110deg, var(--selected) 0 6px, var(--control) 6px 12px);
  }
}

html:has(.login-screen), body:has(.login-screen) { overflow: hidden; }

.login-screen {
  position: relative; isolation: isolate; display: flex; flex-direction: column; height: 100dvh;
  overflow: auto; padding: 18px; color: var(--ink); background: var(--paper);
}
.login-backdrop {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; stroke: none;
  opacity: .18; mask-image: radial-gradient(ellipse 280px 260px at center, transparent 10%, #0005 65%, #000);
}
html[data-theme="dark"] .login-backdrop { opacity: .24; }
.sign-in-form { width: min(100%, 340px); margin: auto; gap: clamp(8px, 1.6dvh, 15px); }
.login-emblem { display: block; align-self: center; width: 96px; height: auto; }
.sign-in-form h1 { margin-bottom: 5px; text-align: center; font-size: 2rem; letter-spacing: -.035em; }
.sign-in-form input, .sign-in-form .button { min-height: 44px; }
.sign-in-form .button { justify-content: space-between; }
.sign-in-form :is(p, .inline-error) { margin: 0; font-size: .82rem; line-height: 1.45; }
.sign-in-form p { color: var(--muted); text-align: center; }

@media (max-height: 500px) {
  .sign-in-form { gap: 6px; }
  .login-emblem { width: 56px; }
  .sign-in-form h1 { font-size: 1.5rem; }
}
