/* Operations Desk
   Tokens first; every colour below comes from them. Light theme only. */
:root {
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --bg: #f3f4f2;
  --surface: #ffffff;
  --surface-2: #f8f9f7;
  --sunken: #eceeeb;
  --ink: #12232a;
  --ink-2: #3c4e56;
  --muted: #627279;
  --faint: #8a979c;
  --line: #e1e5e1;
  --line-2: #cfd6d2;

  --accent: #13706c;
  --accent-hover: #0d5a57;
  --accent-soft: #e0efeb;
  --accent-ink: #0b4f4c;
  --on-accent: #ffffff;
  --focus: #3aa39c;

  --danger: #b2382c;
  --danger-soft: #fbe7e3;
  --warn: #8a5d0a;
  --warn-soft: #faefd6;
  --info: #2a5a85;
  --info-soft: #e4ecf6;
  --ok: #1f6b4b;
  --ok-soft: #dff0e6;

  --side: #10262e;
  --side-2: #193640;
  --side-3: #22424c;
  --side-ink: #eaf3f1;
  --side-muted: #95adb3;
  --side-line: rgb(255 255 255 / .08);


  --av-kylene-bg: #d6ece6;
  --av-kylene-ink: #1d5a55;
  --av-rami-bg: #dfe4f3;
  --av-rami-ink: #2f4677;
  --av-other-bg: #ebe7df;
  --av-other-ink: #5d5444;

  --shadow-1: 0 1px 2px rgb(16 38 46 / .05);
  --shadow-pop: 0 18px 48px rgb(12 30 36 / .18), 0 2px 8px rgb(12 30 36 / .06);
  --scrim: rgb(10 26 32 / .38);

  --r-xs: 5px;
  --r-sm: 7px;
  --r: 10px;
  --r-lg: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 14px/1.5 var(--font); font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.locked { overflow: hidden; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent); text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent-soft); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--surface); color: var(--ink); padding: 8px 12px; border-radius: var(--r-sm); box-shadow: var(--shadow-pop); }
.skip:focus { top: 12px; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
kbd { font: 500 11px/1 var(--mono); color: var(--muted); background: var(--surface); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 3px 5px; min-width: 20px; text-align: center; display: inline-block; }
.muted { color: var(--muted); }
.grow { flex: 1; }
span.grow { flex: 1; }
.t-danger { color: var(--danger); }
.noscript { padding: 40px; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 36px; padding: 0 14px; border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-2); border: 1px solid var(--line-2);
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--faint); color: var(--ink); }
.btn:active { background: var(--sunken); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--sunken); color: var(--ink); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { background: var(--danger-soft); color: var(--danger); }
.btn.sm { height: 32px; padding: 0 11px; font-size: 13px; }
.btn.xs { height: 28px; padding: 0 9px; font-size: 12.5px; gap: 5px; }
.btn.xs .ico { width: 14px; height: 14px; }
.btn.icon { width: 36px; padding: 0; }
.spin { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Segmented controls & tabs ---------- */
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--sunken); border-radius: 9px; border: 1px solid var(--line); }
.seg button {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px;
  border: 0; border-radius: 6px; background: transparent; color: var(--muted); font-size: 13px; font-weight: 500;
  transition: background-color .15s ease, color .15s ease;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1), 0 0 0 1px var(--line); }
.seg-dark { background: var(--side-2); border-color: var(--side-line); width: 100%; }
.seg-dark button { flex: 1; justify-content: center; color: var(--side-muted); }
.seg-dark button:hover { color: var(--side-ink); }
.seg-dark button[aria-checked="true"] { background: var(--side-3); color: var(--side-ink); box-shadow: none; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px 11px; margin-bottom: -1px;
  background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap;
  transition: color .15s ease, border-color .15s ease;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button span { font: 500 11.5px/1 var(--mono); color: var(--faint); background: var(--sunken); border-radius: 4px; padding: 3px 5px; }
.tabs button[aria-selected="true"] span { color: var(--accent-ink); background: var(--accent-soft); }

/* ---------- App shell ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100dvh; background: linear-gradient(to right, var(--side) 252px, transparent 252px); }
.side {
  position: sticky; top: 0; height: 100dvh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 26px; padding: 20px 14px 16px;
  background: var(--side); color: var(--side-ink); border-right: 1px solid var(--side-line);
}
.brand { display: flex; align-items: center; gap: 11px; padding: 4px 8px; color: var(--side-ink); }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #1c4650; color: #bfe6df; flex: none; }
.brand-mark .ico { width: 20px; height: 20px; stroke-width: 2.4; }
.brand-text b { display: block; font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.brand-text small { display: block; font-size: 12px; color: var(--side-muted); }
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px; height: 38px; padding: 0 10px; border-radius: 8px;
  color: var(--side-muted); font-size: 14px; font-weight: 500; transition: background-color .15s ease, color .15s ease;
}
.side-nav a:hover { background: var(--side-2); color: var(--side-ink); }
.side-nav a[aria-current="page"] { background: var(--side-3); color: var(--side-ink); }
.side-nav a[aria-current="page"] .ico { color: #8fd6c8; }
.side-nav .ico { width: 18px; height: 18px; }
.nav-count { margin-left: auto; font: 500 11.5px/1 var(--mono); padding: 4px 6px; border-radius: 5px; background: rgb(143 214 200 / .14); color: #a9e3d8; }
.side-label { font-size: 11.5px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--side-muted); padding: 0 10px 8px; }
.side-biz a {
  display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 7px;
  color: var(--side-muted); font-size: 13.5px; transition: background-color .15s ease, color .15s ease;
}
.side-biz a:hover { background: var(--side-2); color: var(--side-ink); }
.side-biz i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.side-biz span:not(.late-dot) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-biz em { font: 400 12px/1 var(--mono); font-style: normal; color: var(--side-muted); opacity: .8; }
.late-dot { width: 6px; height: 6px; border-radius: 50%; background: #f0897c; flex: none; }
.side-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--side-line); display: grid; gap: 14px; }
.side-foot .side-label { padding-bottom: 0; }
.me { display: flex; align-items: center; gap: 10px; padding: 0 4px; }
.me b { display: block; font-size: 13.5px; font-weight: 600; }
.me > div { min-width: 0; }
.me small { display: block; font-size: 12px; color: var(--side-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 32px; background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top-brand { display: none; }
.search-trigger {
  display: flex; align-items: center; gap: 9px; height: 36px; width: min(420px, 100%); padding: 0 8px 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--faint); font-size: 13.5px;
  transition: border-color .15s ease, color .15s ease;
}
.search-trigger:hover { border-color: var(--faint); color: var(--muted); }
.search-trigger span { flex: 1; text-align: left; }
.top-actions { margin-left: auto; display: flex; gap: 8px; }
.view { width: 100%; max-width: 1320px; margin: 0 auto; padding: 30px 32px 40px; outline: none; }
.foot { max-width: 1320px; width: 100%; margin: 0 auto; padding: 0 32px 28px; font-size: 12.5px; color: var(--faint); }
.tabbar { display: none; }

/* ---------- Page heading ---------- */
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 30px; line-height: 1.15; font-weight: 600; letter-spacing: -.025em; }
.eyebrow { font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 8px; }
.lede { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Panels ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); min-width: 0; }
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px 14px; }
.panel-head h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 8px; }
.panel-head p { margin-top: 3px; font-size: 13px; color: var(--muted); }
.count { font: 500 12px/1 var(--mono); color: var(--muted); background: var(--sunken); padding: 4px 6px; border-radius: 5px; }
.notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 20px 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--warn-soft); color: var(--warn); font-size: 13px; }
.notice .ico { flex: none; }
.empty { padding: 26px 20px 30px; text-align: center; color: var(--muted); font-size: 13.5px; }
.empty b { display: block; color: var(--ink-2); font-weight: 500; font-size: 14px; }
.empty p { margin-top: 4px; }
.fine { font-size: 12.5px; color: var(--muted); }

.today-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; margin-bottom: 20px; }
.today-grid.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.stack { display: grid; gap: 20px; min-width: 0; }

/* Meta row + tags */
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.meta > span { display: inline-flex; align-items: center; gap: 5px; }
.meta .ico { width: 14px; height: 14px; }
.biz { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.biz i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex: none; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--sunken); color: var(--ink-2); }
.pill .ico { width: 13px; height: 13px; }
.st-to-do { background: var(--sunken); color: var(--ink-2); }
.st-in-progress { background: var(--accent-soft); color: var(--accent-ink); }
.st-waiting { background: var(--warn-soft); color: var(--warn); }
.st-done, .st-approved { background: var(--ok-soft); color: var(--ok); }
.st-pending { background: var(--info-soft); color: var(--info); }
.st-changes-requested { background: var(--warn-soft); color: var(--warn); }
.when { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.when.t-danger { color: var(--danger); font-weight: 500; }
.when.t-warn { color: var(--warn); font-weight: 500; }
.when.t-plain { color: var(--ink-2); }
.reason { font-size: 12px; font-weight: 600; padding: 2px 7px; border-radius: 5px; white-space: nowrap; }
.reason.t-danger { background: var(--danger-soft); color: var(--danger); }
.reason.t-warn { background: var(--warn-soft); color: var(--warn); }
.reason.t-info { background: var(--info-soft); color: var(--info); }
.prio { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 500; color: var(--muted); }
.prio .ico { width: 13px; height: 13px; }
.prio-urgent { color: var(--danger); }
.prio-high { color: var(--warn); }
.src { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--faint); white-space: nowrap; }
.src .ico { width: 13px; height: 13px; }
.who { display: inline-flex; align-items: center; gap: 6px; }
.blocker { display: inline-flex; align-items: flex-start; gap: 6px; color: var(--danger); }
.blocker .ico { width: 14px; height: 14px; margin-top: 2px; }
.evidence { color: var(--ok); }

.av {
  display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  font: 600 10px/1 var(--font); letter-spacing: .02em; background: var(--av-other-bg); color: var(--av-other-ink);
}
.av-kylene { background: var(--av-kylene-bg); color: var(--av-kylene-ink); }
.av-rami { background: var(--av-rami-bg); color: var(--av-rami-ink); }
.av-lg { width: 34px; height: 34px; font-size: 12px; }

.title-btn {
  display: block; padding: 0; border: 0; background: none; text-align: left;
  font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--ink); transition: color .15s ease;
}
.title-btn:hover { color: var(--accent); }
.linked {
  display: inline-flex; align-items: center; gap: 7px; max-width: 100%; padding: 3px 8px 3px 4px;
  border: 1px solid var(--line); border-radius: 7px; background: var(--surface-2); color: var(--ink-2); font-size: 12.5px;
  transition: border-color .15s ease, color .15s ease;
}
.linked span:not(.pill) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.linked:hover { border-color: var(--line-2); color: var(--ink); }
.linked .ico { width: 14px; height: 14px; margin-left: 4px; color: var(--muted); }
.linked.block { display: flex; width: 100%; padding: 9px 10px; margin-top: 14px; }
.linked.block span:not(.pill) { flex: 1; text-align: left; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }

/* ---------- Needs attention ---------- */
.attn-list { border-top: 1px solid var(--line); }
.attn {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 4px 12px; align-items: start;
  padding: 15px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .15s ease;
}
.attn:last-child { border-bottom: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.attn:hover { background: var(--surface-2); }
.attn-ico { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; }
.attn-ico .ico { width: 17px; height: 17px; }
.attn-ico.t-danger { background: var(--danger-soft); color: var(--danger); }
.attn-ico.t-warn { background: var(--warn-soft); color: var(--warn); }
.attn-ico.t-info { background: var(--info-soft); color: var(--info); }
.attn-body { min-width: 0; }
.attn-sub { margin: 3px 0 8px; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.attn-actions { display: flex; gap: 6px; align-self: center; }

/* ---------- Outcomes ---------- */
.progress-wrap { display: flex; align-items: center; gap: 12px; padding: 0 20px 12px; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.progress { flex: 1; height: 6px; border-radius: 3px; background: var(--sunken); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transition: width .4s var(--ease); }
.outcomes { border-top: 1px solid var(--line); }
.outcome { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--line); }
.outcome:last-child { border-bottom: 0; }
.outcome-title { font-size: 14px; font-weight: 500; line-height: 1.4; margin-bottom: 7px; }
.outcome-n { font: 500 12px/1 var(--mono); color: var(--faint); margin-right: 8px; }
.outcome.is-done .outcome-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.check {
  display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; padding: 0;
  border: 1.5px solid var(--line-2); border-radius: 6px; background: var(--surface); color: transparent;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.check .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.check:hover { border-color: var(--accent); color: var(--accent); }
.check.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.check:disabled { cursor: default; }
.check:disabled:not(.on) { opacity: .45; }

/* ---------- Mini lists ---------- */
.mini-list { border-top: 1px solid var(--line); }
.mini-list li { padding: 13px 20px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .15s ease; }
.mini-list li:last-child { border-bottom: 0; }
.mini-list li:hover { background: var(--surface-2); }
.mini-list .title-btn { font-size: 14px; margin-bottom: 6px; }
.mini-list.flush { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.mini-list.flush li { padding: 11px 14px; }

/* ---------- Waiting on others ---------- */
.wait-list { border-top: 1px solid var(--line); }
.wait-person { padding: 14px 20px 6px; border-bottom: 1px solid var(--line); }
.wait-person:last-child { border-bottom: 0; }
.wait-who { display: flex; align-items: center; gap: 9px; font-size: 13.5px; margin-bottom: 4px; }
.wait-who b { font-weight: 600; }
.wait-who .muted { font-size: 12.5px; }
.wait-item { padding: 9px 0 10px 31px; cursor: pointer; border-radius: var(--r-sm); }
.wait-item + .wait-item { border-top: 1px dashed var(--line); }
.wait-item .title-btn { font-size: 14px; }
.wait-item p { font-size: 13px; color: var(--ink-2); margin: 2px 0 7px; }

/* ---------- Business rows ---------- */
.biz-rows { border-top: 1px solid var(--line); }
.biz-rows li + li { border-top: 1px solid var(--line); }
.biz-row { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; padding: 12px 20px; color: var(--ink); transition: background-color .15s ease; }
.biz-rows li:last-child .biz-row { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.biz-row:hover { background: var(--surface-2); }
.swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.swatch.lg { width: 14px; height: 14px; border-radius: 4px; margin-top: 4px; }
.biz-name { min-width: 0; }
.biz-name b { display: block; font-size: 14px; font-weight: 500; }
.biz-name small { display: block; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.biz-open { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.biz-row .chev { color: var(--faint); }

.completed summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; font-size: 14px; }
.completed summary::-webkit-details-marker { display: none; }
.sum-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; }
.completed summary .muted { margin-left: auto; font-size: 13px; }
.completed summary .chev { color: var(--faint); transition: transform .2s var(--ease); }
.completed[open] summary .chev { transform: rotate(90deg); }
.completed[open] summary .muted { visibility: hidden; }

/* ---------- Tasks ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.search { position: relative; display: flex; align-items: center; flex: 1 1 280px; min-width: 0; }
.search > .ico { position: absolute; left: 11px; color: var(--faint); pointer-events: none; }
.search kbd { position: absolute; right: 8px; }
.search input { padding-left: 34px; padding-right: 36px; }
input, select, textarea {
  width: 100%; min-width: 0; height: 38px; padding: 0 11px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font-size: 14px; transition: border-color .15s ease, box-shadow .15s ease;
}
textarea { height: auto; min-height: 38px; padding: 8px 11px; line-height: 1.5; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--faint); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input:disabled, select:disabled, textarea:disabled { background: var(--surface-2); color: var(--ink-2); cursor: default; }
input::placeholder, textarea::placeholder { color: var(--faint); }
select { appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a979c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 8px center; background-size: 16px; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
.toolbar select { width: auto; flex: 0 1 190px; }
.filters-on { display: flex; align-items: center; gap: 6px; margin: -4px 0 14px; font-size: 13px; color: var(--muted); }

.tgroup { margin-bottom: 18px; }
.tgroup-h { display: flex; align-items: center; gap: 8px; margin: 0 0 8px 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.tgroup-h span { font: 500 12px/1 var(--mono); color: var(--faint); }
.tgroup.is-late .tgroup-h { color: var(--danger); }
.tlist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
.trow {
  display: grid; grid-template-columns: 22px minmax(0, 1fr) 190px 150px 128px 118px; gap: 14px; align-items: center;
  padding: 12px 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background-color .15s ease;
}
.trow:last-child { border-bottom: 0; }
.trow:hover { background: var(--surface-2); }
.trow-main { min-width: 0; }
.trow-main .title-btn { font-size: 14px; }
.trow-main p { margin-top: 2px; font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow-main p .blocker { display: inline; }
.trow-main p .blocker .ico { vertical-align: -2px; margin-right: 4px; }
.trow-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
.trow-owner { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.trow-owner span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trow-due { text-align: right; }
.trow.is-done .title-btn { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-2); }
.status-select { height: 28px; width: auto; max-width: 100%; border-radius: 6px; padding: 0 26px 0 9px; font-size: 12.5px; font-weight: 500; border-color: transparent; background-position: right 5px center; background-size: 14px; }
.status-select:hover { border-color: var(--line-2); }
.status-select.st-to-do { background-color: var(--sunken); }
.status-select.st-in-progress { background-color: var(--accent-soft); color: var(--accent-ink); }
.status-select.st-waiting { background-color: var(--warn-soft); color: var(--warn); }
.status-select.st-done { background-color: var(--ok-soft); color: var(--ok); }

/* Board */
.board { display: grid; grid-template-columns: repeat(4, minmax(250px, 1fr)); gap: 14px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.col { background: var(--sunken); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; min-height: 160px; transition: background-color .15s ease, border-color .15s ease; }
.col.over { background: var(--accent-soft); border-color: var(--accent); }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 10px; }
.col-head > span:last-child { font: 500 12px/1 var(--mono); color: var(--faint); }
.col-body { display: grid; gap: 8px; }
.col-empty { padding: 18px 8px; text-align: center; font-size: 12.5px; color: var(--faint); border: 1px dashed var(--line-2); border-radius: var(--r); }
.kcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px; box-shadow: var(--shadow-1); cursor: grab; transition: border-color .15s ease; }
.kcard:hover { border-color: var(--line-2); }
.kcard.dragging { opacity: .5; }
.kcard .title-btn { font-size: 14px; margin-bottom: 8px; }
.kcard .blocker { font-size: 12.5px; margin: -2px 0 8px; }
.kcard .meta { gap: 6px 10px; }

/* ---------- Businesses ---------- */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px; }
.bcard { display: flex; flex-direction: column; }
.bcard-head { display: flex; gap: 12px; padding: 18px 20px 6px; }
.bcard-head h2 { font-size: 16px; font-weight: 600; }
.bcard-head p { font-size: 13px; color: var(--muted); }
.bcard-sum { padding: 6px 20px 14px 46px; font-size: 13px; color: var(--ink-2); }
.bcard .mini-list { flex: 1; }
.bcard-foot { padding: 12px 20px; border-top: 1px solid var(--line); }
.bcard-foot a { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; transition: color .15s ease; }
.bcard-foot a:hover { color: var(--accent-hover); }

/* ---------- Decisions ---------- */
.dlist { display: grid; gap: 14px; }
.dcard { padding: 18px 20px; cursor: pointer; transition: border-color .15s ease; }
.dcard:hover { border-color: var(--line-2); }
.dcard-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.dcard h2 .title-btn { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.rec { margin-top: 12px; padding: 11px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); }
.rec p { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.rec.lg { margin-top: 16px; }
.rec-label { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .01em; }
.answer { margin-top: 10px; padding: 11px 14px; border-radius: var(--r); border-left: 3px solid var(--line-2); background: var(--surface-2); }
.answer p { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.answer.ans-approved { border-left-color: var(--ok); }
.answer.ans-approved .rec-label { color: var(--ok); }
.answer.ans-changes-requested { border-left-color: var(--warn); }
.answer.ans-changes-requested .rec-label { color: var(--warn); }
.dcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.dcard-foot .meta { min-width: 0; flex: 1; }

/* ---------- Settings ---------- */
.settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.set { padding-bottom: 18px; }
.set > .seg, .set > .row, .set > .fine, .set > .keys, .set > .kv, .set > .set-sub { margin-left: 20px; margin-right: 20px; }
.set > .fine { margin-top: 12px; }
.set-sub { font-size: 13.5px; font-weight: 600; margin-top: 20px; margin-bottom: 8px; }
.people li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.people li:last-child { border-bottom: 1px solid var(--line); }
.people div { flex: 1; }
.people b { display: block; font-weight: 600; }
.people small { display: block; font-size: 12.5px; color: var(--muted); }
.kv { display: grid; gap: 10px; margin-bottom: 16px; }
.kv div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink-2); }
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; }
.keys div { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.keys dt { min-width: 62px; display: flex; gap: 3px; align-items: center; color: var(--faint); }
.keys dd { margin: 0; color: var(--ink-2); }

/* ---------- Drawer ---------- */
.overlay, .pal-wrap { position: fixed; inset: 0; z-index: 30; }
.scrim { position: absolute; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .2s ease; }
.drawer {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(600px, 100%);
  display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--shadow-pop);
  transform: translateX(24px); opacity: 0; transition: transform .26s var(--ease), opacity .2s ease;
}
.overlay.open .scrim { opacity: 1; }
.overlay.open .drawer { transform: none; opacity: 1; }
.overlay.closing .drawer { transform: translateX(16px); opacity: 0; transition-duration: .18s; }
.dr-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; padding: 0 14px 0 24px; border-bottom: 1px solid var(--line); flex: none; }
.dr-eyebrow { font-size: 13.5px; font-weight: 500; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.dr-eyebrow .biz { font-size: 13.5px; }
.dr-body { flex: 1; overflow-y: auto; padding: 20px 24px 28px; overscroll-behavior: contain; }
.dr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 24px; border-top: 1px solid var(--line); flex: none; min-height: 56px; }
.title-input {
  border: 0; padding: 4px 6px; margin: 0 -6px 14px; width: calc(100% + 12px); resize: none; overflow: hidden;
  font-size: 22px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; background: transparent; border-radius: var(--r-sm);
}
.title-input:hover:not(:disabled) { background: var(--surface-2); }
.title-input:focus { box-shadow: 0 0 0 2px var(--accent-soft); background: var(--surface); }
.title-input:disabled { background: transparent; color: var(--ink); }
.dr-title-static { font-size: 21px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; margin-bottom: 10px; }
.status-seg { display: flex; width: 100%; margin-bottom: 18px; }
.status-seg button { flex: 1; justify-content: center; }
.status-seg button.st-in-progress[aria-checked="true"] { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }
.status-seg button.st-waiting[aria-checked="true"] { background: var(--warn-soft); color: var(--warn); box-shadow: none; }
.status-seg button.st-done[aria-checked="true"] { background: var(--ok-soft); color: var(--ok); box-shadow: none; }
.status-seg button:disabled { cursor: default; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 14px; margin-bottom: 14px; }
.field { display: grid; gap: 5px; margin-bottom: 14px; }
.fields .field { margin-bottom: 0; }
.field > span { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.field.hl > span { color: var(--warn); }
.field.hl input { border-color: color-mix(in srgb, var(--warn) 45%, var(--line-2)); }
.dr-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.dr-body > .fine { margin: 4px 0 6px; }
.dr-body > .notice { margin: 0 0 16px; }
.dr-body > .meta { margin-bottom: 4px; }
.dr-body > .row { margin-top: 16px; }
.dr-section { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.dr-section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.dr-section-head h3 { font-size: 14px; font-weight: 600; }
.respond { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.respond .seg { display: flex; margin-bottom: 14px; background: var(--surface); }
.respond .seg button { flex: 1; justify-content: center; }
.respond .seg button[aria-checked="true"] { background: var(--sunken); }
.respond .field { margin-bottom: 0; }
.respond .dr-actions { margin-top: 12px; }
.prow { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px 14px; margin: 0 0 12px; }
.prow legend { font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 0 6px; margin-left: -6px; }
.prow input { margin-bottom: 10px; }
.prow .fields { margin-bottom: 0; }

/* Timeline */
.timeline { position: relative; display: grid; gap: 12px; margin-bottom: 14px; }
.timeline li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; }
.tl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); margin: 6px 0 0 7px; }
.tl-response .tl-dot { width: 10px; height: 10px; margin: 5px 0 0 6px; background: var(--muted); }
.tl-response.ans-approved .tl-dot { background: var(--ok); }
.tl-response.ans-changes-requested .tl-dot { background: var(--warn); }
.tl-meta { font-size: 12.5px; color: var(--muted); }
.tl-meta b { color: var(--ink); font-weight: 600; }
.tl-meta time { color: var(--faint); }
.tl-text { font-size: 14px; color: var(--ink-2); margin-top: 2px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-comment .tl-text { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px var(--r) var(--r) var(--r); padding: 8px 11px; margin-top: 4px; }
.composer { display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; max-height: 200px; }
.composer .btn { height: 38px; }

/* ---------- Command palette ---------- */
.pal-wrap .scrim { transition-duration: .12s; }
.pal-wrap.open .scrim { opacity: 1; }
.palette {
  position: relative; margin: min(14vh, 120px) auto 0; width: min(620px, calc(100% - 32px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); overflow: hidden;
  transform: scale(.98); opacity: 0; transition: transform .16s var(--ease), opacity .12s ease;
}
.pal-wrap.open .palette { transform: none; opacity: 1; }
.pal-input { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--faint); }
.pal-input input { border: 0; height: 52px; padding: 0; font-size: 16px; background: transparent; box-shadow: none; }
.pal-input input:focus { box-shadow: none; }
.pal-list { max-height: min(56vh, 440px); overflow-y: auto; padding: 6px; }
.pal-group { font-size: 12px; font-weight: 600; color: var(--faint); padding: 10px 10px 4px; }
.pal-list button {
  display: flex; align-items: center; gap: 11px; width: 100%; min-height: 40px; padding: 7px 10px; border: 0; border-radius: var(--r-sm);
  background: transparent; text-align: left; color: var(--ink); font-size: 14px;
}
.pal-list button .ico { color: var(--muted); }
.pal-list button[aria-selected="true"] { background: var(--accent-soft); }
.pal-list button[aria-selected="true"] .ico { color: var(--accent-ink); }
.pal-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pal-label small { margin-left: 8px; font-size: 12.5px; color: var(--muted); }
.pal-empty { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.pal-foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--surface-2); font-size: 12px; color: var(--muted); }
.pal-foot span { display: inline-flex; align-items: center; gap: 4px; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 40; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; width: max-content; max-width: calc(100% - 32px); pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 16px; min-height: 44px; border-radius: var(--r);
  background: #13272f; color: #eef5f3; font-size: 14px; box-shadow: var(--shadow-pop); pointer-events: auto;
  transform: translateY(8px); opacity: 0; transition: transform .22s var(--ease), opacity .18s ease;
}
.toast.show { transform: none; opacity: 1; }
.toast-btn { border: 0; background: rgb(255 255 255 / .1); color: #a9e8dd; font-weight: 600; font-size: 13.5px; height: 30px; padding: 0 11px; border-radius: 6px; transition: background-color .15s ease; }
.toast-btn:hover { background: rgb(255 255 255 / .18); }

/* ---------- Manage businesses ---------- */
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.side-label-row { display: flex; align-items: center; justify-content: space-between; padding-right: 4px; }
.side-label-row .side-label { padding-bottom: 8px; }
.side-add { display: grid; place-items: center; width: 26px; height: 26px; margin-top: -8px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--side-muted); transition: background-color .15s ease, color .15s ease; }
.side-add:hover { background: var(--side-2); color: var(--side-ink); }
.side-add .ico { width: 15px; height: 15px; }
.bcard-head > div { flex: 1; min-width: 0; }
.bcard-edit { margin: -6px -8px 0 0; color: var(--faint); }
.bcard-edit:hover { color: var(--ink); }
.bcard .empty .btn { margin-top: 10px; }
.swatch-field { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
.swatch-field legend { font-size: 12.5px; font-weight: 500; color: var(--muted); padding: 0; margin-bottom: 8px; }
.swatch-row { display: flex; flex-wrap: wrap; gap: 8px; }
.sw { position: relative; width: 32px; height: 32px; border-radius: 9px; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .08); transition: box-shadow .15s ease; }
.sw input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sw:has(input:checked) { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--c); }
.sw:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 4px; }
.sw:has(input:checked)::after { content: ''; position: absolute; left: 11px; top: 8px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); pointer-events: none; }
.archived-biz { margin-top: 26px; }
.arow { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.arow:last-child { border-bottom: 0; }
.arow-main { flex: 1; min-width: 0; }
.arow-main b { display: block; font-weight: 500; color: var(--ink-2); }
.arow-main small { display: block; font-size: 12.5px; color: var(--muted); }

/* ---------- Sign in ---------- */
.auth-wrap { min-height: 100dvh; background: var(--bg); }
.auth { min-height: 100dvh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 40px 16px; }
.auth-card { width: min(420px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); padding: 28px 28px 24px; }
.auth-brand { display: flex; align-items: center; gap: 11px; margin-bottom: 26px; }
.auth-brand .brand-mark { background: var(--side); }
.auth-brand b { display: block; font-size: 14.5px; font-weight: 600; }
.auth-brand small { display: block; font-size: 12.5px; color: var(--muted); }
.auth h1 { font-size: 24px; font-weight: 600; letter-spacing: -.02em; }
.auth-lede { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.auth-seg { display: flex; margin: 20px 0 4px; }
.auth-seg button { flex: 1; justify-content: center; }
.auth-form { margin-top: 18px; }
.auth-form .field small { margin-top: 2px; }
.btn.lg { width: 100%; height: 44px; font-size: 14.5px; margin-top: 4px; }
.auth-msg:empty { display: none; }
.auth-msg p { margin-top: 16px; padding: 10px 12px; border-radius: var(--r-sm); font-size: 13.5px; }
.auth-error { background: var(--danger-soft); color: var(--danger); }
.auth-ok { background: var(--ok-soft); color: var(--ok); }
.auth-splash { padding: 10px 0 6px; color: var(--muted); }
.link-btn { display: block; margin: 14px auto 0; padding: 4px 6px; border: 0; background: none; color: var(--accent); font-size: 13.5px; font-weight: 500; border-radius: 4px; transition: color .15s ease; }
.link-btn:hover { color: var(--accent-hover); }
.auth-note { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; }
.auth-foot { font-size: 12.5px; color: var(--faint); }
.me .side-out { margin-left: auto; color: var(--side-muted); }
.me .side-out:hover { background: var(--side-2); color: var(--side-ink); }
.set > .set-gap { margin-top: 16px; margin-bottom: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
  .trow { grid-template-columns: 22px minmax(0, 1fr) 160px 34px 124px 110px; }
  .trow-owner span:last-child { display: none; }
}
@media (max-width: 1100px) {
  .today-grid, .today-grid.even { grid-template-columns: minmax(0, 1fr); }
  .settings { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); background: none; }
  .side { display: none; }
  .top { padding: 0 16px; gap: 10px; }
  .top-brand { display: block; }
  .top-brand .brand-mark { width: 32px; height: 32px; background: var(--side); }
  .search-trigger { flex: 1; width: auto; }
  .view { padding: 22px 16px 32px; }
  .foot { padding: 0 16px calc(84px + env(safe-area-inset-bottom)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; z-index: 20; left: 0; right: 0; bottom: 0;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: var(--side); border-top: 1px solid var(--side-line);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 2px; border-radius: 8px; color: var(--side-muted); font-size: 11.5px; font-weight: 500; }
  .tabbar a[aria-current="page"] { color: var(--side-ink); background: var(--side-2); }
  .tabbar a[aria-current="page"] .ico { color: #8fd6c8; }
  .tabbar .ico { width: 20px; height: 20px; }
  .tabbar .nav-count { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; padding: 2px 4px; font-size: 10px; background: #2b6f69; color: #e9faf6; }
  .trow { grid-template-columns: 22px minmax(0, 1fr) auto; grid-template-areas: "check main main" "check tags tags" "check status due"; gap: 6px 12px; align-items: start; }
  .trow .check { grid-area: check; }
  .trow-main { grid-area: main; }
  .trow-main p { white-space: normal; }
  .trow-tags { grid-area: tags; }
  .trow-owner { display: none; }
  .trow-status { grid-area: status; justify-self: start; }
  .trow-status .status-select { width: auto; }
  .trow-due { grid-area: due; align-self: center; }
  .board { grid-template-columns: repeat(4, minmax(260px, 82vw)); scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; }
  .col { scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .page-head h1 { font-size: 26px; }
  .lede { font-size: 15px; }
  .search-trigger kbd, .search kbd { display: none; }
  .panel-head { padding: 16px 16px 12px; }
  .attn { grid-template-columns: 32px minmax(0, 1fr); padding: 14px 16px; }
  .attn-actions { grid-column: 2; align-self: start; margin-top: 4px; flex-wrap: wrap; }
  .outcome, .mini-list li, .biz-row { padding-left: 16px; padding-right: 16px; }
  .progress-wrap { padding: 0 16px 12px; }
  .wait-person { padding: 14px 16px 6px; }
  .wait-item { padding-left: 0; }
  .notice { margin: 0 16px 14px; }
  .toolbar select { flex: 1 1 140px; }
  .bgrid { grid-template-columns: minmax(0, 1fr); }
  .bcard-sum { padding-left: 20px; }
  .dcard { padding: 16px; }
  .dcard-foot .row { width: 100%; }
  .dcard-foot .row .btn { flex: 1; }
  .fields { grid-template-columns: minmax(0, 1fr); }
  .dr-head { padding-left: 16px; }
  .dr-body { padding: 16px 16px 24px; }
  .dr-foot { padding-left: 16px; }
  .drawer { width: 100%; }
  .keys { grid-template-columns: minmax(0, 1fr); }
  .kv div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .status-seg button { padding: 0 6px; font-size: 12.5px; }
  .toasts { bottom: calc(80px + env(safe-area-inset-bottom)); }
}
@media (max-width: 420px) {
  .hide-xs { display: none; }
  .top-actions .btn.primary { width: 36px; padding: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
@media (hover: none) {
  .attn:hover, .trow:hover, .mini-list li:hover, .biz-row:hover { background: transparent; }
}
