/* ==========================================================================
   Portfolio HQ — Hightower Asset Management
   Design system v2: Linear-density shell, Mercury-style hero + quick actions,
   hairline cards, restrained type. Light by default, selected dark theme.
   ========================================================================== */

@font-face {
  font-family: "Mona Sans";
  src: url("/assets/fonts/mona-sans.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}

:root {
  color-scheme: light;
  --font: "Mona Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Brand */
  --evergreen: #14352b;
  --evergreen-deep: #0e271f;
  --sage: #a9c7b8;
  --brass: #e38a4c;

  /* Surfaces & ink */
  --bg: #f6f7f6;
  --surface: #ffffff;
  --surface-2: #f8f9f8;
  --surface-3: #eff2f0;
  --sidebar: #fbfbfa;
  --border: rgba(16, 24, 20, 0.08);
  --border-strong: rgba(16, 24, 20, 0.14);
  --ink: #111816;
  --ink-2: #4b5651;
  --ink-3: #727e78;
  --ink-4: #a0aaa5;
  --accent: #14352b;
  --accent-ink: #ffffff;
  --accent-soft: #e8efeb;
  --accent-soft-ink: #14352b;
  --focus: #2a78d6;

  /* Status (reserved) */
  --good: #0ca30c; --good-text: #0a6b0a; --good-soft: #e6f5e6;
  --warn: #fab219; --warn-text: #7a4d00; --warn-soft: #fff3d9;
  --serious: #ec835a; --serious-text: #8a3a14; --serious-soft: #fde9e0;
  --critical: #d03b3b; --critical-text: #8a1f1f; --critical-soft: #fbe4e4;

  /* Data series — validated categorical palette */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948;
  --seq-250: #86b6ef; --seq-350: #5598e7; --seq-450: #2a78d6; --seq-550: #1c5cab; --seq-650: #104281;
  --grid: #e6e8e7;
  --axis: #cfd3d1;
  --muted: #8a9490;

  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(17, 24, 22, 0.04);
  --shadow-pop: 0 12px 40px rgba(17, 24, 22, 0.16), 0 1px 3px rgba(17, 24, 22, 0.08);
  --sidebar-w: 232px;
  --topbar-h: 52px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1312;
  --surface: #161b19;
  --surface-2: #1b211f;
  --surface-3: #222927;
  --sidebar: #121716;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --ink: #edf1ef;
  --ink-2: #b4bdb9;
  --ink-3: #87918c;
  --ink-4: #5b6561;
  --accent: #a9c7b8;
  --accent-ink: #0e271f;
  --accent-soft: #1d2b26;
  --accent-soft-ink: #cfe3d8;
  --good-text: #4fcf4f; --good-soft: #14301a;
  --warn-text: #ffcf66; --warn-soft: #382b0e;
  --serious-text: #ffa784; --serious-soft: #3a2218;
  --critical-text: #ff8a8a; --critical-soft: #3a1a1a;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #0ca30c; --s7: #9085e9; --s8: #e66767;
  --seq-250: #184f95; --seq-350: #1c5cab; --seq-450: #256abf; --seq-550: #3987e5; --seq-650: #6da7ec;
  --grid: #232a28;
  --axis: #323b38;
  --muted: #87918c;
  --shadow: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-pop: 0 16px 48px rgba(0,0,0,0.55), 0 1px 3px rgba(0,0,0,0.4);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { height: 100%; }
body { margin: 0; padding: 0; min-height: 100%; overflow-x: clip; }
body.no-scroll { overflow: hidden; }
button, a, input, select, textarea, label, .btn, .qa, .tabs button, .list-row { touch-action: manipulation; }
body {
  font-family: var(--font);
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
}
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.012em; }
h1 { font-size: 20px; }
h2 { font-size: 16px; }
h3 { font-size: 13.5px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
table { border-collapse: collapse; }
::selection { background: var(--sage); color: var(--evergreen-deep); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.num, .tabular { font-variant-numeric: tabular-nums; }

/* ---------- Boot ---------- */
.boot { height: 100vh; height: 100dvh; display: grid; place-content: center; gap: 14px; justify-items: center; color: var(--ink-3); }
.boot-text { font-size: 13px; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; height: 100dvh; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  background: var(--sidebar); color: var(--ink);
  display: flex; flex-direction: column; padding: 10px 10px 12px;
  border-right: 1px solid var(--border);
}
.workspace {
  display: flex; align-items: center; gap: 10px; padding: 8px 8px; border-radius: 8px; cursor: default;
  margin-bottom: 8px;
  /* the lockup stays put when the sidebar itself has to scroll on short screens */
  position: sticky; top: 0; z-index: 2; background: var(--sidebar);
}
.workspace:hover { background: var(--surface-3); }
.brand-mark { width: 28px; height: 28px; border-radius: 7px; background: var(--evergreen); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 28px; height: 28px; }
.brand-logo, .brand-mono { display: block; width: auto; }
.brand-logo-wrap { display: inline-flex; align-items: center; min-width: 0; }
.brand-logo-wrap .dark { display: none; }
:root[data-theme="dark"] .brand-logo-wrap .light { display: none; }
:root[data-theme="dark"] .brand-logo-wrap .dark { display: block; }
.ws-logo { min-width: 0; display: flex; flex-direction: column; gap: 9px; padding: 2px 0; }
.ws-logo .brand-logo { max-width: 100%; }
/* "Portfolio HQ" is set like the third line of the lockup: Montserrat Medium, caps, wide tracking */
.product-mark { font-family: "Montserrat", var(--font); font-weight: 500; font-size: 9.5px; line-height: 1; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-3); padding-left: 1px; white-space: nowrap; }
.ws-logo .sub { font-size: 9.5px; }
.workspace .name { font-weight: 600; font-size: 13px; line-height: 1.15; }
.workspace .sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.workspace .chev { margin-left: auto; color: var(--ink-4); }
.nav-group { margin-top: 12px; }
.nav-label { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; padding: 0 10px 5px; }
.nav a, .nav button {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  padding: 0 10px; height: 30px; border-radius: 7px; color: var(--ink-2); border: 0; background: transparent;
  cursor: pointer; font-size: 13px; font-weight: 500; transition: background .1s, color .1s;
}
.nav a:hover { background: var(--surface-3); color: var(--ink); }
.nav a.active { background: var(--accent-soft); color: var(--accent-soft-ink); }
.nav a .ico { width: 16px; height: 16px; flex: none; opacity: .85; }
.nav a.active .ico { opacity: 1; }
.nav .pill { margin-left: auto; font-size: 10.5px; min-width: 18px; text-align: center; background: var(--critical-soft); color: var(--critical-text); padding: 1px 6px; border-radius: 99px; font-weight: 700; }
.sidebar-foot { margin-top: auto; padding: 10px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.sidebar-foot .user { display: flex; align-items: center; gap: 9px; padding: 6px 6px; border-radius: 8px; }
.sidebar-foot .user:hover { background: var(--surface-3); }
.sidebar-foot .u-name { font-weight: 600; font-size: 12.5px; line-height: 1.15; }
.sidebar-foot .u-role { font-size: 11px; color: var(--ink-3); }
.sidebar-foot .sync { font-size: 11px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; padding: 0 6px; }
.sidebar-foot .sync i { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; }
.avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--evergreen); color: #fff; font-weight: 600; font-size: 11px; display: grid; place-items: center; flex: none; letter-spacing: .02em; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; height: var(--topbar-h);
  display: flex; align-items: center; gap: 10px; padding: 0 22px;
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar .crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); min-width: 0; }
.topbar .crumbs b { color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumbs .sep { color: var(--ink-4); }
.topbar .spacer { flex: 1; }
.cmd-trigger {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); color: var(--ink-3); cursor: pointer; font-size: 12.5px; width: 240px;
}
.cmd-trigger:hover { border-color: var(--border-strong); color: var(--ink-2); }
.cmd-trigger .kbd { margin-left: auto; }
.content { padding: 20px 22px 60px; display: flex; flex-direction: column; gap: 16px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; letter-spacing: -0.02em; }
.page-head .sub { color: var(--ink-3); margin-top: 3px; font-size: 13px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* Quick actions (Mercury-style) */
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.qa {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 99px;
  border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; font-weight: 500; cursor: pointer; color: var(--ink);
}
.qa:hover { border-color: var(--border-strong); background: var(--surface-2); }
.qa.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.qa .ico { width: 15px; height: 15px; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; } .col-7 { grid-column: span 7; }
.col-8 { grid-column: span 8; } .col-9 { grid-column: span 9; } .col-12 { grid-column: span 12; }
.grid > * { min-width: 0; }
.kpi-row { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }  /* two tiles across on a phone */
.kpi-row.kpi-4 { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 10px; }
@media (max-width: 1300px) and (min-width: 1101px) { .kpi-row.kpi-4 { grid-template-columns: repeat(2, 1fr); } }  /* two cards across but each too narrow for four tiles: go 2x2 */
.kpi-row.kpi-4 .stat.card { padding: 10px 12px; box-shadow: none; }
.kpi-row.kpi-4 .stat .value { font-size: 19px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); min-width: 0; display: flex; flex-direction: column;
}
.card-head { display: flex; align-items: center; gap: 10px; padding: 13px 16px 0; }
.card-head h3 { font-size: 13.5px; font-weight: 600; }
.card-head .sub { color: var(--ink-3); font-size: 12px; margin-top: 1px; }
.card-head .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.card-body { padding: 12px 16px 16px; flex: 1; min-width: 0; }
.card-body.flush { padding: 0; }
.card-head + .card-body.flush { padding-top: 10px; }
.card-foot { padding: 10px 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }

/* Hero (overview) */
.hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 14px; }
.hero-main { padding: 18px 20px 14px; }
.hero-main .label { font-size: 12.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.hero-main .value { font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; margin-top: 6px; }
.hero-main .meta { display: flex; gap: 14px; align-items: center; margin-top: 8px; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.hero-side .list-row { padding: 9px 0; }
.hero-side .list-row .t { font-size: 13px; color: var(--ink-2); }
.hero-side .list-row .r { font-weight: 600; }

/* ---------- Stat tiles ---------- */
.stat { padding: 13px 15px; gap: 0; }
.stat .label { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.stat .value { font-size: 23px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; line-height: 1.1; }
.stat .value.hero { font-size: 38px; }
.stat .delta { font-size: 12px; margin-top: 7px; display: flex; align-items: center; gap: 6px; color: var(--ink-3); flex-wrap: wrap; }
.stat .delta b { font-weight: 600; display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px; border-radius: 99px; background: var(--surface-3); color: var(--ink-2); }
.stat .delta.up b { background: var(--good-soft); color: var(--good-text); }
.stat .delta.down b { background: var(--critical-soft); color: var(--critical-text); }
.stat .delta .vs { color: var(--ink-4); font-weight: 400; }
.stat .trend { margin-top: 8px; }
.stat.has-status { border-left: 3px solid transparent; }
.stat.status-good { border-left-color: var(--good); }
.stat.status-warn { border-left-color: var(--warn); }
.stat.status-serious { border-left-color: var(--serious); }
.stat.status-critical { border-left-color: var(--critical); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 500; font-size: 13px;
  line-height: 1; transition: background .1s, border-color .1s, box-shadow .1s; white-space: nowrap; box-shadow: var(--shadow);
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { border-color: transparent; background: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { height: 28px; padding: 0 9px; font-size: 12px; }
.btn.danger { color: var(--critical-text); }
.btn .ico { width: 15px; height: 15px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.icon-btn { width: 30px; height: 30px; border-radius: 7px; border: 1px solid transparent; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--ink-3); }
.icon-btn:hover { background: var(--surface-3); color: var(--ink); }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- Form controls ---------- */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; color: var(--ink-2); font-weight: 500; }
.input, select.input, textarea.input {
  height: 32px; padding: 0 10px; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface);
  font-size: 13px; min-width: 0; width: 100%; box-shadow: var(--shadow);
}
textarea.input { height: auto; padding: 8px 10px; resize: vertical; min-height: 70px; }
.input:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.input.sm { height: 28px; padding: 0 8px; font-size: 12.5px; }
.select-wrap { position: relative; display: inline-flex; }
.select-wrap select { appearance: none; padding-right: 28px; }
.select-wrap::after { content: ""; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--ink-3); border-bottom: 1.5px solid var(--ink-3); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.toggle { position: relative; width: 34px; height: 20px; border-radius: 99px; background: var(--ink-4); border: 0; cursor: pointer; transition: background .15s; flex: none; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.toggle.on { background: var(--good); }
.toggle.on::after { transform: translateX(14px); }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; }
.check input { width: 15px; height: 15px; accent-color: var(--evergreen); margin: 0; }
.search { position: relative; }
.search .input { padding-left: 30px; }
.search svg { position: absolute; left: 9px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ink-3); }

/* ---------- Segmented / tabs ---------- */
.seg { display: inline-flex; background: var(--surface-3); border-radius: 8px; padding: 2px; gap: 2px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { white-space: nowrap; flex: none; }
.seg button { border: 0; background: transparent; height: 26px; padding: 0 10px; border-radius: 6px; cursor: pointer; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,0.08); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: transparent; padding: 9px 12px; cursor: pointer; font-size: 13px; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; flex: none; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--accent); }
.tabs button:hover { color: var(--ink); }

/* ---------- Badges / chips ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: 99px; font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.badge.good { background: var(--good-soft); color: var(--good-text); }
.badge.warn { background: var(--warn-soft); color: var(--warn-text); }
.badge.serious { background: var(--serious-soft); color: var(--serious-text); }
.badge.critical { background: var(--critical-soft); color: var(--critical-text); }
.badge.neutral { background: var(--surface-3); color: var(--ink-2); }
.badge.accent { background: var(--accent-soft); color: var(--accent-soft-ink); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; border: 1px solid var(--border-strong); font-size: 12.5px; background: var(--surface); cursor: pointer; }
.chip.active { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.table { width: 100%; font-size: 13px; }
.table th { text-align: left; font-size: 11px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding: 9px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface); position: sticky; top: 0; z-index: 1; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--ink); }
.table th .arrow { font-size: 9px; margin-left: 4px; opacity: 0.7; }
.table td { padding: 9px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--surface-2); }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table th.num { text-align: right; }
.table .name { font-weight: 600; white-space: nowrap; }
.table td .muted, .table td .small { white-space: nowrap; }
.table .muted { color: var(--ink-3); font-size: 12px; }
.table.compact td, .table.compact th { padding: 7px 10px; }
.table tfoot td { font-weight: 600; background: var(--surface-2); border-top: 1px solid var(--border-strong); }
.table input.cell { width: 100%; border: 1px solid transparent; background: transparent; padding: 4px 6px; border-radius: 6px; text-align: right; font-variant-numeric: tabular-nums; height: auto; box-shadow: none; }
.table input.cell:hover { border-color: var(--border-strong); }
.table input.cell:focus { background: var(--surface); border-color: var(--focus); outline: 0; }
.table input.cell.text { text-align: left; }
.table .select-wrap select.input { height: 28px; font-size: 12.5px; }
.meter { height: 6px; border-radius: 99px; background: var(--seq-250); overflow: hidden; min-width: 56px; }
.meter > i { display: block; height: 100%; background: var(--seq-550); border-radius: 99px; }
.meter.good > i { background: var(--good); } .meter.warn > i { background: var(--warn); } .meter.critical > i { background: var(--critical); } .meter.serious > i { background: var(--serious); }
.meter.good { background: var(--good-soft); } .meter.warn { background: var(--warn-soft); } .meter.critical { background: var(--critical-soft); } .meter.serious { background: var(--serious-soft); }
.cell-meter { display: flex; align-items: center; gap: 8px; }
.cell-meter span { min-width: 44px; text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Lists ---------- */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.list-row .t { font-weight: 500; }
.list-row .s { color: var(--ink-3); font-size: 12px; }
.list-row .r { margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; }
.rank { width: 20px; color: var(--ink-4); font-size: 12px; font-variant-numeric: tabular-nums; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: 12px; padding: 11px 13px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); align-items: flex-start; }
.alert:hover { border-color: var(--border-strong); }
.alert .sev { width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; flex: none; }
.alert.critical .sev { background: var(--critical); } .alert.serious .sev { background: var(--serious); }
.alert.warn .sev { background: var(--warn); } .alert.good .sev { background: var(--good); } .alert.info .sev { background: var(--s1); }
.alert .t { font-weight: 600; font-size: 13px; }
.alert .d { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }
.alert .meta { color: var(--ink-4); font-size: 11.5px; margin-top: 4px; }
.alert .act { margin-left: auto; flex: none; }

/* ---------- Charts ---------- */
.chart { width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.donut-wrap svg, .scatter svg { touch-action: pan-y; }
.chart text { font-family: var(--font); fill: var(--muted); font-size: 11px; }
.chart .grid-line { stroke: var(--grid); stroke-width: 1; }
.chart .axis-line { stroke: var(--axis); stroke-width: 1; }
.chart .label { fill: var(--ink-2); font-size: 11px; }
.chart .label.strong { fill: var(--ink); font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.legend i.line { height: 3px; width: 14px; border-radius: 2px; }
.tooltip { position: fixed; z-index: 100; pointer-events: none; background: var(--ink); color: var(--bg); padding: 8px 10px; border-radius: 8px; font-size: 12px; box-shadow: var(--shadow-pop); max-width: 260px; }
:root[data-theme="dark"] .tooltip { background: #e9efec; color: #0d1412; }
.tooltip .tt-title { font-weight: 600; margin-bottom: 4px; }
.tooltip .tt-row { display: flex; gap: 10px; justify-content: space-between; }
.tooltip .tt-row i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; margin-right: 6px; }
.donut-wrap { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.donut-wrap .legend { flex-direction: column; gap: 6px; margin: 0; }
.hbar-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) minmax(40px, 140px) minmax(48px, auto); gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.hbar-row .bar { height: 9px; border-radius: 0 4px 4px 0; background: var(--s1); }
.hbar-row .bar-track { height: 9px; background: transparent; }
.hbar-row .v { text-align: right; font-variant-numeric: tabular-nums; }
.hbar-row .n { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-row.clickable { cursor: pointer; border-radius: 6px; }
.hbar-row.clickable:hover { background: var(--surface-2); }

/* ---------- Modal / command palette ---------- */
.overlay { position: fixed; inset: 0; background: rgba(8, 16, 13, 0.4); z-index: 50; display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); overscroll-behavior: contain; }
.modal { background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-pop); width: min(620px, 100%); max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column; border: 1px solid var(--border); animation: pop .14s ease-out; }
.modal.wide { width: min(980px, 100%); }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 15px; }
.modal-body { padding: 16px 18px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; }
.cmdk-overlay { align-items: start; padding-top: 12vh; }
.cmdk { width: min(600px, 100%); max-height: 70vh; }
.cmdk .cmdk-input { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.cmdk .cmdk-input input { flex: 1; border: 0; background: transparent; font-size: 15px; outline: 0; }
.cmdk .cmdk-input svg { color: var(--ink-3); }
.cmdk-close { display: none; }
.cmdk-list { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 6px; }
.cmdk-group { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-4); font-weight: 600; padding: 10px 10px 4px; }
.cmdk-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.cmdk-item .s { color: var(--ink-3); font-size: 12px; margin-left: 4px; }
.cmdk-item .ico { color: var(--ink-3); width: 16px; height: 16px; flex: none; }
.cmdk-item.active, .cmdk-item:hover { background: var(--accent-soft); color: var(--accent-soft-ink); }
.cmdk-item.active .ico, .cmdk-item.active .s { color: inherit; }
.cmdk-item .go { margin-left: auto; font-size: 11px; color: var(--ink-4); }
.cmdk-foot { display: flex; gap: 14px; padding: 8px 14px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--ink-4); }

/* ---------- Misc ---------- */
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.muted { color: var(--ink-3); }
.small { font-size: 12px; }
.tiny { font-size: 11px; }
.mono { font-family: var(--mono); font-size: 12px; }
.hr { height: 1px; background: var(--border); margin: 4px 0; }
.empty { padding: 30px; text-align: center; color: var(--ink-3); font-size: 13px; }
.note { font-size: 12.5px; color: var(--ink-2); background: var(--accent-soft); border-radius: 8px; padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.note.warn { background: var(--warn-soft); color: var(--warn-text); }
.kbd { font-family: var(--font); font-size: 11px; border: 1px solid var(--border-strong); border-radius: 5px; padding: 0 5px; color: var(--ink-3); line-height: 18px; background: var(--surface-2); }
.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-pop); animation: rise .2s ease-out; display: flex; align-items: center; gap: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.prop-link { font-weight: 600; cursor: pointer; }
.prop-link:hover { text-decoration: underline; }
.score { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.score.a { background: var(--good-soft); color: var(--good-text); }
.score.b { background: var(--accent-soft); color: var(--accent-soft-ink); }
.score.c { background: var(--warn-soft); color: var(--warn-text); }
.score.d { background: var(--serious-soft); color: var(--serious-text); }
.score.f { background: var(--critical-soft); color: var(--critical-text); }
.health-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.health-cell { padding: 10px; border-radius: 8px; font-size: 12px; cursor: pointer; border: 1px solid var(--border); background: var(--surface-2); min-width: 0; }
.health-cell:hover { border-color: var(--border-strong); }
.health-cell .n { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.health-cell .v { font-size: 15px; margin-top: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.health-cell.good { background: var(--good-soft); } .health-cell.warn { background: var(--warn-soft); }
.health-cell.serious { background: var(--serious-soft); } .health-cell.critical { background: var(--critical-soft); }
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-step { display: grid; grid-template-columns: minmax(84px, 130px) minmax(0, 1fr) minmax(60px, 90px); align-items: center; gap: 12px; font-size: 13px; }
.funnel-step .bar { height: 22px; border-radius: 0 4px 4px 0; background: var(--seq-450); display: flex; align-items: center; padding-left: 8px; color: #fff; font-size: 11.5px; font-weight: 600; min-width: 2px; }
.funnel-step .conv { color: var(--ink-3); font-size: 12px; text-align: right; }

/* ---------- Property cards (mobile list) ---------- */
.prop-cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.prop-card { padding: 12px 14px; cursor: pointer; }
.prop-card:hover { border-color: var(--border-strong); }
.prop-card .top { display: flex; align-items: center; gap: 10px; }
.prop-card .nm { font-weight: 600; }
.prop-card .ad { font-size: 12px; color: var(--ink-3); }
.prop-card .kv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.prop-card .kv div { font-size: 11px; color: var(--ink-3); }
.prop-card .kv b { display: block; font-size: 14px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- Dashboard builder ---------- */
.widget-grid { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: minmax(90px, auto); }
.widget-grid > * { min-width: 0; }
.widget { position: relative; }
.widget .wtools { position: absolute; top: 8px; right: 8px; display: none; gap: 2px; z-index: 2; background: var(--surface); border-radius: 8px; box-shadow: var(--shadow-pop); padding: 2px; border: 1px solid var(--border); }
@media (hover: hover) { .widget:hover .wtools { display: flex; } }
.widget.editing .wtools { display: flex; }
.widget.editing { outline: 1px dashed var(--border-strong); outline-offset: 2px; border-radius: var(--radius); }
.widget-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.widget-option { border: 1px solid var(--border); border-radius: 10px; padding: 12px; cursor: pointer; background: var(--surface-2); }
.widget-option:hover { border-color: var(--accent); background: var(--surface); }
.widget-option .t { font-weight: 600; font-size: 13px; }
.widget-option .d { font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.widget-option .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-4); margin-bottom: 6px; }

/* ---------- Report / owner view ---------- */
.report-page { max-width: 980px; margin: 0 auto; width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow); padding: 36px 40px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.report-page > * { min-width: 0; }
.report-brand { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 2px solid var(--evergreen); }
:root[data-theme="dark"] .report-brand { border-bottom-color: var(--sage); }
.report-brand .l { display: flex; align-items: center; gap: 12px; min-width: 0; }
.report-brand .report-logo .brand-logo { max-width: min(260px, 60vw); height: auto !important; width: 100%; }
.report-brand .name { font-weight: 700; letter-spacing: 0.08em; font-size: 15px; }
.report-brand .sub { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3); }
.report-brand .r { text-align: right; font-size: 12.5px; color: var(--ink-3); }
.report-title h1 { font-size: 26px; letter-spacing: -0.02em; }
.report-title .meta { color: var(--ink-3); margin-top: 4px; }
.report-section h2 { font-size: 15px; padding-bottom: 8px; margin-bottom: 10px; border-bottom: 1px solid var(--border); }
.report-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.report-kpi { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.report-kpi .l { font-size: 11.5px; color: var(--ink-3); }
.report-kpi .v { font-size: 22px; font-weight: 600; margin-top: 4px; letter-spacing: -0.01em; }
.report-kpi .d { font-size: 11.5px; margin-top: 2px; color: var(--ink-3); }
.report-kpi .d.up { color: var(--good-text); } .report-kpi .d.down { color: var(--critical-text); }
.report-note { background: var(--accent-soft); color: var(--accent-soft-ink); padding: 12px 14px; border-radius: 10px; font-size: 13px; white-space: pre-wrap; }
.report-foot { padding-top: 16px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--ink-4); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.share-bar { position: sticky; top: 0; z-index: 10; background: var(--evergreen); color: #fff; padding: 10px 20px; display: flex; align-items: center; gap: 12px; font-size: 13px; flex-wrap: wrap; }
.share-bar .spacer { flex: 1; }
.share-bar .btn { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.2); box-shadow: none; }
.share-shell { min-height: 100vh; min-height: 100dvh; background: var(--bg); }
.share-shell .content { max-width: 1060px; margin: 0 auto; width: 100%; }

/* ---------- Tracker ---------- */
.tracker-grid th:first-child, .tracker-grid td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 2; }
.tracker-grid th:first-child { z-index: 3; }
.tracker-grid td.tracker-section { background: var(--surface-2); padding: 5px 10px; position: static; }
.tracker-grid td.tracker-section span { position: sticky; left: 10px; display: inline-block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.todo { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.todo:last-child { border-bottom: 0; }
.todo input[type=checkbox] { margin-top: 3px; accent-color: var(--evergreen); }
.todo .t { flex: 1; }
.todo.done .t { text-decoration: line-through; color: var(--ink-4); }
.todo .due { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
.todo .due.overdue { color: var(--critical-text); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 1100px) {
  /* iPad landscape and small laptops: with the sidebar open there is room for one card across, not two */
  .col-3, .col-4, .col-5 { grid-column: span 6; }
  .col-6, .col-7, .col-8, .col-9 { grid-column: span 12; }
  .card-head { flex-wrap: wrap; }
  .card-head .right { margin-left: auto; }
}
@media (max-width: 700px) {
  .kpi-row.kpi-4 { grid-template-columns: repeat(2, 1fr); }
  input.input, input.input.sm, select.input, select.input.sm, textarea.input, input.cell, .cmdk .cmdk-input input, .modal input, .modal select, .modal textarea { font-size: 16px; }
  .share-bar .share-date { display: none; }
  input.cell { height: 32px; }
  .icon-btn { width: 36px; height: 36px; }
  .btn.sm { height: 32px; }
  .seg button { height: 34px; padding: 0 12px; }
  .tabs button { padding: 12px 12px; }
  .toggle { width: 40px; height: 24px; }
  .toggle::after { width: 20px; height: 20px; }
  .toggle.on::after { transform: translateX(16px); }
  .list-row { min-height: 44px; }
  .check { min-height: 32px; }
  .overlay { padding: 0; place-items: end center; }
  .modal { width: 100%; max-width: none; border-radius: 16px 16px 0 0; max-height: 92dvh; }
  .cmdk-overlay { place-items: start; padding-top: 0; }
  .modal.cmdk { border-radius: 0; max-height: 100dvh; height: 100dvh; }
  .cmdk-close { display: grid; }
  .cmdk-esc, .cmdk-foot { display: none; }
  .toast-wrap { left: 16px; right: 16px; transform: none; width: auto; bottom: 16px; }
  .toast { width: 100%; }
  .tooltip { max-width: calc(100vw - 32px); }
  .table select.input, .table .select-wrap select { min-height: 36px; }
  .widget.editing .wtools { position: static; justify-content: flex-end; margin: 0 0 6px; box-shadow: none; border: 0; background: transparent; padding: 0; }
  .card-head { flex-wrap: wrap; }
  .card-head .right { max-width: 100%; min-width: 0; }
  .row.between { flex-wrap: wrap; gap: 8px; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 264px; transform: translateX(-100%); transition: transform .2s; z-index: 70; box-shadow: var(--shadow-pop); }
  .sidebar.open { transform: none; }
  .menu-btn { display: grid !important; }
  .content { padding: 16px 16px 60px; }
  .topbar { padding: 0 12px; }
  .topbar .crumbs .parent { display: none; }
  .cmd-trigger { width: auto; }
  .cmd-trigger .label, .cmd-trigger .kbd { display: none; }
  .grid > * { grid-column: span 12 !important; }
  .widget-grid > * { grid-column: span 12 !important; }
  .report-page { padding: 22px 18px; }
  .hbar-row { grid-template-columns: 20px minmax(0,1fr) minmax(40px, 80px) minmax(44px, auto); }
  .main { overflow-x: clip; }
  .page-head h1 { font-size: 20px; }
  .hero-main .value { font-size: 32px; }
}
.menu-btn { display: none; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 65; touch-action: none; }

/* ---------- Print ---------- */
@media print {
  @page { margin: 14mm; }
  html, body { height: auto; min-height: 0; overflow: visible; background: #fff; color: #000; font-size: 12px; }
  .sidebar, .topbar, .share-bar, .no-print, .toast-wrap, .wtools, .overlay { display: none !important; }
  .shell { display: block; min-height: 0; }
  /* printing from dark mode: force the light tokens so paper gets dark ink on white */
  :root[data-theme="dark"] { color-scheme: light; --font: "Mona Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, monospace; --evergreen: #14352b; --evergreen-deep: #0e271f; --sage: #a9c7b8; --brass: #e38a4c; --bg: #f6f7f6; --surface: #ffffff; --surface-2: #f8f9f8; --surface-3: #eff2f0; --sidebar: #fbfbfa; --border: rgba(16, 24, 20, 0.08); --border-strong: rgba(16, 24, 20, 0.14); --ink: #111816; --ink-2: #4b5651; --ink-3: #727e78; --ink-4: #a0aaa5; --accent: #14352b; --accent-ink: #ffffff; --accent-soft: #e8efeb; --accent-soft-ink: #14352b; --focus: #2a78d6; --good: #0ca30c; --good-text: #0a6b0a; --good-soft: #e6f5e6; --warn: #fab219; --warn-text: #7a4d00; --warn-soft: #fff3d9; --serious: #ec835a; --serious-text: #8a3a14; --serious-soft: #fde9e0; --critical: #d03b3b; --critical-text: #8a1f1f; --critical-soft: #fbe4e4; --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100; --s5: #e87ba4; --s6: #008300; --s7: #6250d6; --s8: #e34948; --seq-250: #86b6ef; --seq-350: #5598e7; --seq-450: #2a78d6; --seq-550: #1c5cab; --seq-650: #104281; --grid: #e6e8e7; --axis: #cfd3d1; --muted: #8a9490; --radius: 10px; --radius-sm: 7px; --radius-lg: 14px; --shadow: 0 1px 2px rgba(17, 24, 22, 0.04); --shadow-pop: 0 12px 40px rgba(17, 24, 22, 0.16), 0 1px 3px rgba(17, 24, 22, 0.08); --sidebar-w: 232px; --topbar-h: 52px; }
  .brand-logo-wrap .light { display: block !important; } .brand-logo-wrap .dark { display: none !important; }
  .main { display: block; overflow: visible; }
  .content { display: block; }
  .content { padding: 0; }
  .report-page, .card { box-shadow: none; border-color: #ddd; break-inside: avoid; }
  .report-page { padding: 0; border: 0; max-width: none; }
  .report-section { break-inside: avoid; }
  a { color: inherit; }
}

/* ---------- Auth ---------- */
.auth-shell { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px; background: var(--bg); }
.auth-brand { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 22px; text-align: center; }
.auth-brand .brand-logo { max-width: min(320px, 86vw); height: auto !important; width: 100%; }
.auth-brand .name { font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.auth-brand .sub { font-size: 11px; color: var(--ink-3); margin-top: 4px; }
.auth-card { width: 100%; max-width: 420px; display: flex; justify-content: center; }
.auth-card .cl-rootBox { width: 100%; }
.auth-card .cl-card, .auth-card .cl-cardBox { width: 100%; max-width: 420px; }
.auth-msg { max-width: 460px; padding: 22px 24px; }
.clerk-mount { padding: 4px 8px 8px; }
.clerk-mount .cl-rootBox, .clerk-mount .cl-cardBox { width: 100%; max-width: none; box-shadow: none !important; }
.user-menu-wrap { position: relative; }
.user-menu-wrap .user { width: 100%; border: 0; background: transparent; text-align: left; cursor: pointer; font: inherit; }
.user-menu-wrap .u-role { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.user-menu { position: absolute; left: 6px; right: 6px; bottom: calc(100% + 6px); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.14)); padding: 6px; z-index: 30; display: flex; flex-direction: column; gap: 2px; }
.user-menu > * { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 7px; border: 0; background: transparent; font: inherit; color: var(--ink); cursor: pointer; text-align: left; }
.user-menu > *:hover { background: var(--surface-2); }
.user-menu svg { width: 14px; height: 14px; color: var(--ink-3); }
img.avatar { object-fit: cover; }

/* ---------- Owner groups ---------- */
.section-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.section-head h2 { font-size: 15px; }
.pick-list { max-height: 240px; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: 8px; margin-top: 6px; background: var(--surface); }
.pick { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; min-height: 36px; }
.pick:last-child { border-bottom: 0; }
.pick:hover { background: var(--surface-2); }
.pick input { width: 15px; height: 15px; accent-color: var(--evergreen); margin: 0; flex: none; }
.pick .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pick .c { color: var(--ink-3); font-size: 12px; white-space: nowrap; }
.suggest { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip { border: 1px solid var(--border); background: var(--surface-2); color: var(--ink); border-radius: 99px; padding: 5px 11px; font-size: 12px; cursor: pointer; font: inherit; }
.chip:hover { border-color: var(--border-strong); background: var(--surface-3); }
.empty.small { padding: 14px; font-size: 12.5px; }
