@font-face {
  font-family: "Work Sans";
  src: url("/assets/work-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

@font-face {
  font-family: "Outfit";
  src: url("/assets/outfit-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #fafaf7;
  --surface: #ffffff;
  --surface-subtle: #f5f3ee;
  --surface-hover: #f0eee8;
  --ink: #1a1816;
  --text-muted: #64605b;
  --text-faint: #8d877e;
  --line: #e6e1d8;
  --line-strong: #cfc8bd;
  --teal: #2b7a78;
  --teal-hover: #205f5d;
  --teal-strong: #194f4d;
  --teal-soft: #e8f1ef;
  --success: #2f7155;
  --success-soft: #eaf4ee;
  --warning: #8a5b18;
  --warning-soft: #fbf0d8;
  --danger: #a8453c;
  --danger-soft: #fbeded;
  --info: #456980;
  --info-soft: #eaf0f3;
  --agent-franklin: #2b7a78;
  --agent-cora: #8a5a72;
  --agent-emery: #a36b2c;
  --agent-coo: #5d6678;
  --radius-compact: 6px;
  --radius-control: 8px;
  --radius-panel: 10px;
  --shadow-sm: 0 1px 2px rgba(26, 24, 22, .05);
  --shadow-pop: 0 10px 30px rgba(26, 24, 22, .10);
  --ease-product: cubic-bezier(.2, .8, .2, 1);
  --duration-fast: 120ms;
  --duration-standard: 180ms;
  --duration-panel: 220ms;

  /* Compatibility aliases used by server-rendered fragments. */
  --bg: var(--canvas);
  --card: var(--surface);
  --side: var(--surface-subtle);
  --text: var(--ink);
  --muted: var(--text-muted);
  --faint: var(--text-faint);
  --line2: var(--line-strong);
  --bord: var(--line-strong);
  --accent: var(--teal);
  --accent2: var(--teal-hover);
  --accent-t: var(--teal-soft);
  --accent-c: #fff;
  --green: var(--success);
  --green-t: var(--success-soft);
  --red: var(--danger);
  --red-t: var(--danger-soft);
  --amber: var(--warning);
  --amber-t: var(--warning-soft);
  --gray: var(--text-muted);
  --gray-t: var(--surface-subtle);
  --blue-t: var(--info-soft);
  --sh1: var(--shadow-sm);
  --sh2: var(--shadow-pop);
  --sh3: var(--shadow-pop);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--canvas); -webkit-text-size-adjust: 100%; }
body {
  min-height: 100vh;
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--canvas);
  color: var(--ink);
  font: 400 14px/1.5 "Work Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -.003em;
}
button, input, textarea, select { font: inherit; }
a { color: var(--teal-strong); text-underline-offset: 3px; }
h1, h2, .empty strong { font-family: "Outfit", "Work Sans", system-ui, sans-serif; color: var(--ink); }
h1 { margin: 0; font-size: 28px; font-weight: 600; line-height: 1.16; letter-spacing: -.02em; }
h2 { margin: 0 0 12px; font-size: 20px; font-weight: 600; line-height: 1.25; letter-spacing: -.015em; }
h3 { margin: 22px 0 8px; font-size: 15px; font-weight: 600; }
p:first-child { margin-top: 0; }
::selection { color: var(--ink); background: var(--teal-soft); }
:focus-visible { outline: 3px solid rgba(43, 122, 120, .34); outline-offset: 2px; }
.deskonly { display: none; }
.sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  border-radius: var(--radius-control);
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

/* Application shell */
.shell { min-height: 100vh; }
.wrap { position: relative; max-width: 760px; margin: 0 auto; padding: 0 16px calc(86px + env(safe-area-inset-bottom)); }
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  margin: 0 -16px 18px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 250, 247, .96);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  backdrop-filter: saturate(150%) blur(14px);
  box-shadow: 0 1px 0 rgba(26, 24, 22, .025);
}
.mobilemark, .topavatar, .useravatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 600;
}
.mobilemark { border: 1px solid var(--line-strong); color: var(--teal-strong); background: var(--surface); }
.topcopy { display: flex; min-width: 0; flex: 1; flex-direction: column; margin-left: 10px; }
.topcopy > span { color: var(--text-muted); font-size: 10px; font-weight: 600; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
.topcopy h1 { margin-top: 1px; overflow: hidden; font: 600 17px/1.25 "Outfit", sans-serif; text-overflow: ellipsis; white-space: nowrap; }
.topavatar { border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.pagefoot { margin: 28px 0 8px; color: var(--text-muted); font-size: 12px; text-align: center; }

.sidebar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  display: flex;
  min-height: calc(58px + env(safe-area-inset-bottom));
  padding: 4px 6px env(safe-area-inset-bottom);
  border-top: 1px solid var(--line);
  background: rgba(250, 250, 247, .98);
}
.logo, .sidecaption, .sidebarfoot, .sidebarrequest { display: none; }
.navitems { display: grid; width: 100%; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.navgroup { display: contents; }
.navitem {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 2px;
  padding: 5px 2px;
  border-radius: var(--radius-control);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: color var(--duration-fast), background var(--duration-fast), transform var(--duration-fast);
}
.navitem:active { transform: scale(.98); }
.navitem.active { color: var(--teal-strong); background: var(--teal-soft); }
.navic { display: flex; }
.navic svg { width: 18px; height: 18px; stroke-width: 1.75; }
.navcount {
  position: absolute;
  top: 3px;
  left: calc(50% + 7px);
  display: none;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid var(--canvas);
  border-radius: 10px;
  background: var(--teal);
  color: #fff;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  line-height: 13px;
  text-align: center;
}
.navcount.has { display: block; }

/* Review list */
.qsplit { display: block; }
.listpane { display: block; min-width: 0; }
.detailpane { display: none; min-width: 0; }
.shell.card-open .listpane { display: none; }
.shell.card-open .detailpane { display: block; animation: pane-in var(--duration-panel) var(--ease-product) both; }
.shell.card-open .sidebar { display: none; }
.panehead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 2px 0 18px; }
.panehead .eyebrow { margin: 0 0 2px; }
.panehead h1 { font-size: 28px; }
.panehead p:last-child { margin: 5px 0 0; color: var(--text-muted); font-size: 13px; }
.eyebrow { color: var(--teal); font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.searchbar {
  display: flex;
  min-height: 40px;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
}
.searchbar:focus-within { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 122, 120, .12); }
.searchbar svg { width: 16px; height: 16px; flex: none; color: var(--text-faint); stroke-width: 1.75; }
.searchbar input { width: 100%; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; color: var(--ink); font-size: 13px; }
.pillrow { display: flex; gap: 4px; margin: 0 0 12px; overflow-x: auto; scrollbar-width: none; }
.pillrow::-webkit-scrollbar { display: none; }
.pill {
  min-height: 32px;
  padding: 6px 10px;
  flex: none;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  color: var(--text-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}
.pill:hover { background: var(--surface-hover); color: var(--ink); }
.pill.active { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.listbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.listbar .toolbtn {
  min-height: 32px;
  padding: 5px 4px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 500;
  cursor: pointer;
}
.listbar .toolbtn:hover { color: var(--ink); }
.sectionlabel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 18px 2px 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}
.sectionlabel span:last-child { font-variant-numeric: tabular-nums; color: var(--text-faint); }
.rowgroup {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.card { margin-bottom: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); box-shadow: none; }
.rowgroup .rowcard { margin: 0; padding: 0; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
.rowgroup .rowcard:last-child { border-bottom: 0; }
a.row {
  position: relative;
  display: flex;
  min-height: 76px;
  align-items: center;
  gap: 11px;
  margin: 0;
  padding: 12px 13px;
  color: inherit;
  text-decoration: none;
  transition: background var(--duration-fast);
}
a.row:hover { background: var(--surface-hover); }
.row.selected, .row.kbdsel { background: var(--teal-soft); box-shadow: inset 3px 0 0 var(--teal); }
.agentavatar, .ic {
  display: grid;
  width: 30px;
  height: 30px;
  flex: none;
  place-items: center;
  border: 1px solid rgba(26, 24, 22, .08);
  border-radius: 50%;
  background: var(--surface-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}
.agentavatar.avatar-franklin { color: #fff; background: var(--agent-franklin); }
.agentavatar.avatar-cora { color: #fff; background: var(--agent-cora); }
.agentavatar.avatar-emery { color: #fff; background: var(--agent-emery); }
.agentavatar.avatar-coo { color: #fff; background: var(--agent-coo); }
.ic svg { width: 15px; height: 15px; stroke-width: 1.75; }
.row .mid { min-width: 0; flex: 1; }
.row .t { display: block; overflow: hidden; font-size: 14.5px; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; text-overflow: ellipsis; white-space: nowrap; }
.row .s { display: block !important; margin-top: 2px; color: var(--text-muted); font-size: 11.5px; line-height: 1.4; }
.row .prev { display: block; margin-top: 4px; overflow: hidden; color: var(--text-muted); font-size: 12.5px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.row .chip { margin-top: 5px; }
.chev { display: flex; flex: none; color: var(--text-faint); opacity: .55; }
.chev svg { width: 16px; height: 16px; }
.listfoot { display: flex; margin-top: 12px; padding: 10px 2px 2px; flex-direction: column; gap: 6px; color: var(--text-muted); font-size: 11.5px; }
.kbdhint { display: none; }
.kbdhint kbd { padding: 1px 4px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); font: inherit; }
.askbox { margin: 16px 0 4px; border-top: 1px solid var(--line); }
.askbox > summary { display: flex; min-height: 44px; align-items: center; justify-content: space-between; color: var(--teal-strong); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.askbox > summary::-webkit-details-marker { display: none; }
.askbox > summary::after { content: "+"; color: var(--teal); font-size: 19px; font-weight: 400; }
.askbox[open] > summary::after { content: "−"; }
.askbox .card { padding: 14px 0 4px; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.askbox textarea { min-height: 100px; }

/* Review detail */
.detailpane { padding-bottom: 30px; }
.detailpane[aria-busy="true"] { cursor: progress; }
.detailpane[aria-busy="true"]::before {
  content: "";
  position: sticky;
  top: 0;
  z-index: 30;
  display: block;
  width: 34%;
  height: 2px;
  margin-bottom: -2px;
  border-radius: 2px;
  background: var(--teal);
  animation: pane-progress 1s var(--ease-product) infinite alternate;
}
.flow-error { border-color: rgba(168, 69, 60, .28); background: var(--danger-soft); }
.flow-error .bad { margin-bottom: 8px; }
.detailback { display: inline-flex; align-items: center; min-height: 34px; margin: 22px 0 8px; color: var(--text-muted); font-size: 12.5px; font-weight: 600; text-decoration: none; }
.detailback:hover { color: var(--teal-strong); }
.detailhead { margin: 0 0 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.detailhead .detailintent { margin: 0 0 7px; color: var(--teal-strong); font-size: 13px; font-weight: 600; }
.detailhead h1 { max-width: 680px; font-size: 24px; line-height: 1.2; }
.detailhead .meta { margin: 8px 0 0; }
.detailpane > .card:first-of-type { border-color: var(--line-strong); }
.detailpane > .card { padding: 20px; }
.detailpane > .card + .card { margin-top: -2px; }
.why-now { border-left: 4px solid var(--teal); background: var(--surface-subtle); }
.why-now h2 { margin: 3px 0 8px; font-size: 17px; }
.why-now p { margin: 0 0 7px; }
.emptyDetail { display: flex; min-height: 62vh; align-items: center; justify-content: center; flex-direction: column; color: var(--text-muted); text-align: center; }
.emptyDetail .linemark { display: grid; width: 42px; height: 42px; margin-bottom: 10px; place-items: center; border: 1px solid var(--line); border-radius: 50%; color: var(--teal); background: var(--surface); }
.emptyDetail .linemark svg { width: 19px; height: 19px; }
.emptyDetail p { margin: 0 0 2px; font-weight: 600; color: var(--ink); }
.emptyDetail span:last-child { max-width: 270px; }
.consequence {
  display: grid;
  gap: 2px;
  margin-top: 16px;
  padding: 11px 12px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 12.5px;
}
.consequence strong { color: var(--ink); font-size: 12px; font-weight: 600; }
.actionbar {
  position: sticky;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px -20px -20px;
  padding: 12px 20px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 -8px 18px rgba(26, 24, 22, .035);
}
.actionbar .btn { width: auto; margin: 0; }
.actionbar .btn.primary { min-width: 190px; flex: 1; }
.review-drawer { background: var(--surface-subtle); }
.review-drawer label { margin-top: 0; color: var(--ink); }
.review-drawer .fine { margin-bottom: 0; }
.ctxbox {
  margin: 0 0 14px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--teal);
  border-radius: var(--radius-control);
  background: var(--teal-soft);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.msg { padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-subtle); font-size: 13.5px; line-height: 1.55; white-space: pre-wrap; }

/* Controls and states */
.btn {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 11px;
  padding: 10px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: color var(--duration-fast), background var(--duration-fast), border-color var(--duration-fast), transform var(--duration-fast);
}
.btn:hover { border-color: #aaa399; background: var(--surface-hover); }
.btn:active { transform: scale(.98); }
.btn.primary { border-color: var(--teal); background: var(--teal); color: #fff; }
.btn.primary:hover { border-color: var(--teal-hover); background: var(--teal-hover); }
.btn.danger { border-color: rgba(168, 69, 60, .35); background: var(--danger-soft); color: var(--danger); }
.btn.quiet { width: auto; min-height: 38px; margin: 0; padding: 8px 9px; border-color: transparent; background: transparent; color: var(--text-muted); }
.btn.quiet:hover { background: var(--surface-hover); color: var(--ink); }
.btn:disabled { opacity: .48; cursor: default; transform: none; }
.btn.busy::before { content: ""; width: 13px; height: 13px; flex: none; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn svg { width: 17px; height: 17px; }
label { display: block; margin: 16px 0 6px; color: var(--ink); font-size: 12.5px; font-weight: 600; }
textarea, input[type=email], input[type=text], select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-control);
  outline: 0;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 1px 1px rgba(26, 24, 22, .025);
  font-size: 16px;
  transition: border-color var(--duration-standard), box-shadow var(--duration-standard);
}
textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
textarea:focus, input:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(43, 122, 120, .12); }
input::placeholder, textarea::placeholder { color: var(--text-faint); }
.fine, .meta { color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.meta { font-variant-numeric: tabular-nums; }
.meta a { color: var(--teal-strong); }
.ok { color: var(--success); font-weight: 600; }
.bad { color: var(--danger); }
.warn { color: var(--warning); font-weight: 600; }
.muted { color: var(--text-muted); }
details { margin-top: 12px; }
summary { min-height: 34px; color: var(--text-muted); font-size: 12.5px; font-weight: 500; cursor: pointer; }
.chip { display: inline-flex; min-height: 20px; align-items: center; gap: 5px; padding: 1px 6px; border-radius: 4px; font-size: 10.5px; font-variant-numeric: tabular-nums; font-weight: 600; line-height: 1.7; vertical-align: 1px; white-space: nowrap; }
.chip .dot { width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.chip-needs { color: var(--teal-strong); background: var(--teal-soft); }
.chip-sent { color: var(--success); background: var(--success-soft); }
.chip-bad { color: var(--danger); background: var(--danger-soft); }
.chip-amber { color: var(--warning); background: var(--warning-soft); }
.chip-muted { color: var(--text-muted); background: var(--surface-subtle); }
.chip-sending { color: var(--teal-strong); border: 1px solid rgba(43, 122, 120, .35); background: transparent; }
.chip-unknown { color: var(--text-muted); border: 1px dashed var(--line-strong); background: transparent; }
.adot { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: var(--text-faint); vertical-align: 1px; }
.adot-franklin { background: var(--agent-franklin); }
.adot-cora { background: var(--agent-cora); }
.adot-emery { background: var(--agent-emery); }
.adot-coo { background: var(--agent-coo); }
.age { font-variant-numeric: tabular-nums; }
.age-warn { color: var(--warning); }
.age-bad { color: var(--danger); }
.empty { padding: 36px 12px; color: var(--text-muted); text-align: center; }
.empty p { margin: 0 0 6px; }
.empty strong { display: inline-block; margin-bottom: 3px; font-size: 18px; font-weight: 600; }
.empty a { font-size: 12.5px; font-weight: 600; text-decoration: none; }
.emptymark { display: grid; width: 42px; height: 42px; margin: 0 auto 12px; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--teal-soft); color: var(--teal); }
.emptymark svg { width: 20px; height: 20px; }
.done { padding: 8px 0; text-align: center; }
.done .badge { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; margin-bottom: 8px; border-radius: 50%; background: var(--success-soft); color: var(--success); animation: check-in var(--duration-panel) var(--ease-product); }
.done .badge svg { width: 22px; height: 22px; }

/* Secondary views */
.timeline { position: relative; overflow: hidden; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-panel); background: var(--surface); }
.timeline::before { display: none; }
.timeline .card { margin: 0; padding: 15px 16px 15px 36px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; }
.timeline .card:last-child { border-bottom: 0; }
.tl-item { position: relative; }
.tl-item::before { content: ""; position: absolute; top: 21px; left: 16px; width: 7px; height: 7px; border-radius: 50%; background: var(--text-faint); }
.tl-sent::before { background: var(--success); }
.tl-bad::before { background: var(--danger); }
.tl-amber::before { background: var(--warning); }
.tl-needs::before, .tl-sending::before { background: var(--teal); }
.prospecthead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 2px; }
.prospecthead h1 { font-size: 24px; }
.prospectgrid { display: grid; margin-top: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.metric { padding: 11px; border: 1px solid var(--line); border-radius: var(--radius-control); background: var(--surface-subtle); }
.metric .k { color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.metric .v { margin-top: 3px; font-size: 14px; font-weight: 600; }
.finding { padding: 12px 0; border-top: 1px solid var(--line); }
.finding:first-of-type { padding-top: 2px; border-top: 0; }
.healthlist { display: grid; gap: 6px; }
.healthitem, .approvalrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.healthitem:last-child, .approvalrow:last-child { border-bottom: 0; }
.timelinecompact { display: grid; min-width: 0; max-width: 100%; gap: 8px; }
.timelinecompact .event { min-width: 0; max-width: 100%; overflow: hidden; padding: 10px; border-left: 2px solid var(--teal); border-radius: 0 var(--radius-control) var(--radius-control) 0; background: var(--surface-subtle); }
.timelinecompact .event > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.timelinecompact .event .meta { margin-bottom: 2px; }
.dutybar { height: 6px; margin: 11px 0 7px; overflow: hidden; border-radius: 4px; background: var(--line); }
.dutybar i { display: block; height: 100%; border-radius: inherit; background: var(--warning); }
.dutybar.full i { background: var(--success); }
.dutybar.low i { background: var(--danger); }
.gaprow { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }

/* Login */
.auth-shell { position: relative; min-height: 100vh; min-height: 100dvh; background: var(--canvas); }
.authbrandbar { position: absolute; top: 28px; left: 30px; display: flex; align-items: center; gap: 13px; }
.brandwordmark { display: block; width: 178px; height: auto; }
.authbrandbar .producttag, .producttag { padding-left: 12px; border-left: 1px solid var(--line-strong); color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
.wrap.auth { display: flex; min-height: 100vh; min-height: 100dvh; max-width: none; align-items: center; justify-content: center; padding: 92px 20px 44px; }
.authbox { width: 100%; max-width: 416px; }
.authproduct { margin: 0 0 9px; color: var(--teal); font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.authbox h1 { font-size: 31px; }
.authsub { margin: 7px 0 24px; color: var(--text-muted); font-size: 14px; }
.authbox .card { padding: 22px; border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.authbox .card label { margin-top: 0; }
.authbox .btn.primary { min-height: 46px; }
.authtrust { display: flex; align-items: center; gap: 7px; margin: 14px 2px 0; color: var(--text-faint); font-size: 11.5px; }
.authtrust::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--success); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pane-in { from { opacity: 0; transform: translateX(6px); } to { opacity: 1; transform: none; } }
@keyframes check-in { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
@keyframes pane-progress { from { transform: translateX(0); } to { transform: translateX(195%); } }

@media (min-width: 700px) {
  .shell { display: grid; grid-template-columns: 72px minmax(0, 1fr); }
  .sidebar { position: sticky; top: 0; right: auto; bottom: auto; left: auto; width: 72px; height: 100vh; height: 100dvh; padding: 16px 8px; flex-direction: column; border-top: 0; border-right: 1px solid var(--line); background: var(--surface-subtle); }
  .logo { display: flex; align-items: center; justify-content: center; margin: 2px 0 24px; }
  .logo .brandwordmark, .logo-copy { display: none; }
  .logomark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--teal-strong); background: var(--surface); font-size: 10px; font-weight: 600; }
  .navitems { display: flex; flex: 1; flex-direction: column; gap: 4px; }
  .navgroup { display: contents; }
  .navitem { min-height: 44px; padding: 7px; border-radius: var(--radius-control); }
  .navlabel { display: none; }
  .navcount { border-color: var(--surface-subtle); }
  .sidebarfoot { display: flex; justify-content: center; padding-top: 12px; border-top: 1px solid var(--line); }
  .usercopy { display: none; }
  .useravatar { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
  .wrap { max-width: none; margin: 0; padding: 0; }
  .pagefoot { display: none; }
  .shell:not(.has-split) .wrap { padding: 0 24px 56px; }
  .shell:not(.has-split) .top { max-width: 760px; margin: 0 auto 24px; padding: 18px 16px 14px; background: rgba(250, 250, 247, .94); }
  .shell:not(.has-split) .mobilemark { display: none; }
  .shell:not(.has-split) .wrap > :not(.top) { width: min(720px, 100%); margin-inline: auto; }
  .has-split .top { display: none; }
  .qsplit { max-width: 780px; margin: 0 auto; padding: 26px 24px 50px; }
  .detailpane { padding-bottom: 50px; }
  .shell.card-open .sidebar { display: flex; }
  .deskonly { display: initial; }
  .mobonly { display: none; }
  textarea, input[type=email], input[type=text], select { font-size: 14px; }
  .kbdhint { display: block; }
}

@media (min-width: 900px) {
  .has-split .wrap { height: 100vh; height: 100dvh; overflow: hidden; }
  .qsplit { display: grid; height: 100vh; height: 100dvh; max-width: none; margin: 0; padding: 0; grid-template-columns: 350px minmax(0, 1fr); }
  .listpane { display: block !important; overflow-x: hidden; overflow-y: auto; padding: 25px 18px 34px; border-right: 1px solid var(--line); background: var(--surface); }
  .detailpane { display: block !important; overflow-x: hidden; overflow-y: auto; max-width: none; padding: 32px clamp(26px, 4vw, 64px) 72px; background: var(--canvas); }
  .detailpane > * { max-width: 720px; margin-inline: auto; }
  .shell.card-open .listpane { display: block !important; }
  .emptyDetail { min-height: calc(100vh - 70px); }
  .actionbar { margin-right: -20px; margin-left: -20px; }
}

@media (min-width: 1180px) {
  .shell { grid-template-columns: 232px minmax(0, 1fr); }
  .sidebar { width: 232px; padding: 24px 16px 18px; }
  .logo { align-items: flex-start; justify-content: flex-start; flex-direction: column; margin: 0 8px 30px; }
  .logo .brandwordmark { display: block; width: 166px; }
  .logomark { display: none; }
  .logo-copy { display: flex; margin-top: 9px; flex-direction: column; }
  .logo-kicker { display: none; }
  .logo-text { color: var(--text-muted); font-size: 10px; font-weight: 600; letter-spacing: .13em; text-transform: uppercase; }
  .navitems { gap: 3px; }
  .navgroup { display: flex; flex-direction: column; gap: 3px; }
  .navgroup + .navgroup { margin-top: 22px; }
  .navgroup .sidecaption { display: block; margin: 0 10px 6px; color: var(--text-faint); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
  .navitem { min-height: 40px; align-items: center; justify-content: flex-start; flex-direction: row; gap: 10px; padding: 9px 10px; font-size: 13px; }
  .navlabel { display: block; }
  .navcount { position: static; display: block; min-width: 20px; height: 19px; margin-left: auto; border: 0; background: var(--surface-hover); color: var(--text-muted); line-height: 19px; }
  .navcount.has { background: var(--teal); color: #fff; }
  .sidebarrequest { display: flex; min-height: 38px; align-items: center; justify-content: center; margin: 18px 0 4px; border: 1px solid var(--line-strong); border-radius: var(--radius-control); background: var(--surface); color: var(--ink); font-size: 12.5px; font-weight: 600; text-decoration: none; }
  .sidebarrequest:hover { border-color: var(--teal); color: var(--teal-strong); }
  .sidebarfoot { justify-content: flex-start; gap: 9px; margin-top: 10px; padding: 14px 4px 0; }
  .usercopy { display: flex; min-width: 0; flex-direction: column; }
  .usercopy strong { max-width: 132px; overflow: hidden; font-size: 12px; font-weight: 600; text-overflow: ellipsis; }
  .usercopy a { color: var(--text-muted); font-size: 11px; text-decoration: none; }
  .qsplit { grid-template-columns: 400px minmax(0, 1fr); }
  .listpane { padding: 26px 20px 36px; }
  .detailpane { padding-right: clamp(38px, 5vw, 80px); padding-left: clamp(38px, 5vw, 80px); }
}

@media (max-width: 699px) {
  .sidebar { height: calc(60px + env(safe-area-inset-bottom)); min-height: 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; }
  .sidebar::-webkit-scrollbar { display: none; }
  .navitems { display: flex; width: max-content; min-width: 100%; }
  .navitem { flex: 1 0 74px; }
  .authbrandbar { top: 22px; left: 20px; }
  .brandwordmark { width: 150px; }
  .authbrandbar .producttag { display: none; }
  .wrap.auth { padding: 82px 18px 32px; }
  .authbox .card { padding: 18px; }
  .prospectgrid { grid-template-columns: 1fr; }
  .actionbar { flex-wrap: wrap; }
  .actionbar .btn.primary { min-width: 0; flex: 1 0 100%; }
  .actionbar .btn.quiet { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
