/* MAMG Activity Tracker v2 — design system.
   Tokens follow the validated dataviz reference palette (light + dark).
   Layout: bottom tab bar under 880px, left sidebar at 880px+. */

/* ---------- tokens ---------- */
:root {
  color-scheme: light;
  --page: #f9f9f7;
  --surface: #fcfcfb;
  --surface-2: #f0efec;
  --ink: #0b0b0b;
  --ink-2: #52514e;
  --muted: #898781;
  --grid: #e1e0d9;
  --baseline: #c3c2b7;
  --border: rgba(11, 11, 11, 0.10);
  --accent: #2a78d6;          /* series-1 blue */
  --accent-ink: #ffffff;
  --accent-soft: #cde2fb;     /* seq-100 */
  --series-1: #2a78d6;
  --series-2: #eb6834;
  --series-3: #1baf7a;
  --good: #0ca30c;
  --good-text: #006300;
  --warning: #fab219;
  --serious: #ec835a;
  --critical: #d03b3b;
  --star: #eda100;
  --shadow: 0 1px 2px rgba(11,11,11,.05), 0 4px 16px rgba(11,11,11,.06);
  --nav-h: 60px;
  --radius: 14px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0d0d0d;
  --surface: #1a1a19;
  --surface-2: #262624;
  --ink: #ffffff;
  --ink-2: #c3c2b7;
  --muted: #898781;
  --grid: #2c2c2a;
  --baseline: #383835;
  --border: rgba(255, 255, 255, 0.10);
  --accent: #3987e5;
  --accent-ink: #ffffff;
  --accent-soft: #10304f;
  --series-1: #3987e5;
  --series-2: #d95926;
  --series-3: #199e70;
  --good-text: #0ca30c;
  --shadow: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0d0d0d;
    --surface: #1a1a19;
    --surface-2: #262624;
    --ink: #ffffff;
    --ink-2: #c3c2b7;
    --muted: #898781;
    --grid: #2c2c2a;
    --baseline: #383835;
    --border: rgba(255, 255, 255, 0.10);
    --accent: #3987e5;
    --accent-ink: #ffffff;
    --accent-soft: #10304f;
    --series-1: #3987e5;
    --series-2: #d95926;
    --series-3: #199e70;
    --good-text: #0ca30c;
    --shadow: none;
  }
}

/* ---------- base ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--page);
  color: var(--ink);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
a { color: var(--accent); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 22px; font-weight: 700; }
h2 { font-size: 16px; font-weight: 650; }
h3 { font-size: 14px; font-weight: 600; }
button { font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: var(--ink); }
::placeholder { color: var(--muted); }
[hidden] { display: none !important; }
svg text { font-family: system-ui, -apple-system, "Segoe UI", sans-serif; }

/* ---------- app frame ---------- */
#app { min-height: 100dvh; }
.frame { display: flex; min-height: 100dvh; }
.main {
  flex: 1;
  min-width: 0;
  padding: 16px 16px calc(var(--nav-h) + 24px + env(safe-area-inset-bottom));
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}
.topbar {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 0 14px;
}
.topbar .title { flex: 1; min-width: 0; }
.topbar .title .kicker { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.iconbtn {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--surface); cursor: pointer; font-size: 17px;
}
.iconbtn:active { transform: scale(.96); }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; cursor: pointer; border: none; flex: 0 0 auto;
}

/* bottom tab bar (phone) */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
  display: flex;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--muted); font-size: 10.5px; font-weight: 600;
}
.tabbar a .ico { font-size: 21px; line-height: 1; }
.tabbar a.active { color: var(--accent); }
.tabbar a.log-tab .ico {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-top: -14px;
  box-shadow: var(--shadow);
}

/* sidebar (desktop) */
.sidebar { display: none; }
@media (min-width: 880px) {
  .tabbar { display: none; }
  .main { padding: 24px 32px 48px; }
  .sidebar {
    display: flex; flex-direction: column;
    width: 224px; flex: 0 0 224px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 18px 12px calc(12px + env(safe-area-inset-bottom));
    position: sticky; top: 0; height: 100dvh;
  }
  .sidebar .brand {
    display: flex; align-items: center; gap: 10px;
    font-weight: 700; font-size: 15px; padding: 4px 10px 16px;
  }
  .sidebar .brand .logo {
    width: 30px; height: 30px; border-radius: 9px;
    background: var(--accent); color: var(--accent-ink);
    display: flex; align-items: center; justify-content: center; font-size: 15px;
  }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; }
  .sidebar nav .sec { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 14px 10px 4px; }
  .sidebar nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 8px 10px; border-radius: 10px;
    color: var(--ink-2); font-weight: 550; font-size: 14px;
  }
  .sidebar nav a .ico { width: 20px; text-align: center; font-size: 16px; }
  .sidebar nav a:hover { background: var(--surface-2); }
  .sidebar nav a.active { background: var(--accent-soft); color: var(--accent); }
  .sidebar .foot { border-top: 1px solid var(--border); padding-top: 10px; margin-top: 10px; }
  .sidebar .foot .who {
    display: flex; align-items: center; gap: 10px; padding: 6px 10px;
    border-radius: 10px; cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  }
  .sidebar .foot .who:hover { background: var(--surface-2); }
  .sidebar .foot .who .avatar { width: 30px; height: 30px; font-size: 13px; }
  .sidebar .foot .who .nm { font-weight: 600; font-size: 13.5px; }
  .sidebar .foot .who .rl { font-size: 11.5px; color: var(--muted); }
}

/* ---------- generic components ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 12px;
}
.card > h2 { margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.card > h2 .spacer, .row .spacer { flex: 1; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 880px) { .grid-tiles { grid-template-columns: repeat(4, 1fr); } }

.tile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px 14px; cursor: pointer;
}
.tile .v { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.tile .l { font-size: 12px; color: var(--ink-2); font-weight: 550; margin-top: 1px; }
.tile .s { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.tile.alert .v { color: var(--critical); }
.tile.good .v { color: var(--good-text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); color: var(--ink);
  padding: 9px 14px; font-weight: 600; font-size: 14px; cursor: pointer;
  white-space: nowrap;
}
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--critical); border-color: var(--critical); background: none; }
.btn.small { padding: 5px 10px; font-size: 12.5px; border-radius: 9px; }
.btn.block { width: 100%; }
.btn.ghost { border-color: transparent; background: none; color: var(--accent); }
.btn:disabled { opacity: .45; cursor: default; }

.chip {
  display: inline-flex; align-items: center; gap: 5px;
  border: 1px solid var(--border); border-radius: 999px;
  background: var(--surface); color: var(--ink-2);
  padding: 5px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.chip.active { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chiprow { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 8px; scrollbar-width: none; }
.chiprow::-webkit-scrollbar { display: none; }

.badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 7px; padding: 2px 7px;
  font-size: 11px; font-weight: 700; letter-spacing: .01em;
  background: var(--surface-2); color: var(--ink-2);
}
.badge.critical { background: color-mix(in srgb, var(--critical) 14%, transparent); color: var(--critical); }
.badge.serious { background: color-mix(in srgb, var(--serious) 16%, transparent); color: color-mix(in srgb, var(--serious) 78%, var(--ink)); }
.badge.warning { background: color-mix(in srgb, var(--warning) 18%, transparent); color: color-mix(in srgb, var(--warning) 55%, var(--ink)); }
.badge.good { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-text); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }

.stars { color: var(--star); font-size: 12px; letter-spacing: 1px; }
.stars .off { color: var(--baseline); }

/* list rows */
.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--grid);
  cursor: pointer; min-width: 0;
}
.list-item:last-child { border-bottom: none; }
.list-item .mid { flex: 1; min-width: 0; }
.list-item .t { font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .d { font-size: 12.5px; color: var(--muted); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .end { text-align: right; flex: 0 0 auto; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }

/* health meter */
.meter { height: 4px; border-radius: 2px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.meter > i { display: block; height: 100%; border-radius: 2px; }

/* forms */
.field { margin-bottom: 13px; }
.field > label { display: block; font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 5px; }
.input, select.input, textarea.input {
  width: 100%; border: 1px solid var(--border); border-radius: 11px;
  background: var(--surface); padding: 10px 12px; font-size: 15px;
}
/* Phone: 16px stops iOS auto-zoom, and every control gets a thumb-sized
   target. Logging happens standing in a bank branch, one-handed. */
@media (max-width: 879px) {
  .input, select.input, textarea.input { font-size: 16px; }
  .input, select.input { min-height: 50px; padding: 12px 14px; }
  select.input { background-position: right 12px center; }
  textarea.input { min-height: 92px; }
  .btn { min-height: 48px; padding: 12px 16px; font-size: 15px; }
  .btn.small { min-height: 36px; padding: 7px 12px; font-size: 13px; }
  .seg button { min-height: 46px; font-size: 14.5px; }
  .chip { min-height: 40px; padding: 9px 15px; font-size: 13.5px; }
  .toggle { width: 54px; height: 32px; }
  .toggle::after { width: 26px; height: 26px; }
  .toggle.on::after { left: 25px; }
  .field > label { font-size: 13.5px; margin-bottom: 7px; }
  .list-item { padding: 14px 2px; }
  .overlay .panel { max-height: 90dvh; }
}

/* ---------- team notes ---------- */
.noterow {
  border-left: 3px solid var(--baseline);
  background: var(--surface-2);
  border-radius: 4px 11px 11px 4px;
  padding: 10px 12px; margin-bottom: 8px;
}
.noterow:last-child { margin-bottom: 0; }
.noterow.watch {
  border-left-color: var(--serious);
  background: color-mix(in srgb, var(--serious) 10%, var(--surface));
}
.noterow.good {
  border-left-color: var(--good);
  background: color-mix(in srgb, var(--good) 9%, var(--surface));
}

/* tone picker — three thumb-sized tiles rather than small inline chips */
.tonegrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tonebtn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  padding: 12px 6px; min-height: 76px;
  border: 1.5px solid var(--border); border-radius: 13px;
  background: var(--surface); cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--ink-2); text-align: center; line-height: 1.2;
}
.tonebtn .t-ico { font-size: 21px; line-height: 1; }
.tonebtn.on { border-color: var(--accent); border-width: 2px; color: var(--ink); }
.tonebtn.on.good { border-color: var(--good); background: color-mix(in srgb, var(--good) 12%, var(--surface)); }
.tonebtn.on.watch { border-color: var(--serious); background: color-mix(in srgb, var(--serious) 14%, var(--surface)); }
.tonebtn.on.info { background: var(--accent-soft); }
@media (max-width: 879px) { .tonebtn { min-height: 88px; font-size: 13px; } .tonebtn .t-ico { font-size: 25px; } }

/* ---------- period scope band (Insights) ---------- */
.scopebar {
  position: sticky; top: 0; z-index: 6;
  background: var(--page); padding: 10px 0 12px; margin-bottom: 4px;
  border-bottom: 1px solid var(--border);
}
.scopebar .sb-head {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px;
}
.scopebar .sb-label { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.scopebar .sb-value { font-size: 15px; font-weight: 700; color: var(--ink); }
.scopebar .sb-hint { font-size: 12px; color: var(--muted); }
.scoped-note {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 600; color: var(--accent);
  background: var(--accent-soft); border-radius: 6px; padding: 2px 7px;
}
.section-head {
  display: flex; align-items: center; gap: 9px; margin: 22px 0 10px;
}
.section-head .sh-title { font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.section-head .sh-rule { flex: 1; height: 1px; background: var(--grid); }

/* ---------- big selectable rows (attendees, option pickers) ---------- */
.pickrow {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 11px 12px; margin-bottom: 8px;
  border: 1px solid var(--border); border-radius: 13px;
  background: var(--surface); cursor: pointer; text-align: left;
}
.pickrow:last-child { margin-bottom: 0; }
.pickrow.on { border-color: var(--accent); background: var(--accent-soft); }
.pickrow.add { border-style: dashed; color: var(--accent); justify-content: center; font-weight: 600; }
.pickbox {
  width: 26px; height: 26px; flex: 0 0 auto;
  border: 2px solid var(--baseline); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: transparent;
}
.pickrow.on .pickbox { background: var(--accent); border-color: var(--accent); color: #fff; }
.pickmain { flex: 1; min-width: 0; }
.pickname { display: block; font-weight: 600; font-size: 15px; }
.picksub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 1px; }
@media (max-width: 879px) { .pickrow { min-height: 58px; } }

/* the big "what did you visit" selector at the top of the log form */
.bigpick {
  width: 100%; display: flex; align-items: center; gap: 12px;
  padding: 14px; border: 1px solid var(--border); border-radius: 14px;
  background: var(--surface); cursor: pointer; text-align: left;
}
.bigpick.filled { border-color: var(--accent); }
.bigpick .bp-ico {
  width: 40px; height: 40px; flex: 0 0 auto; border-radius: 12px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}
.bigpick.filled .bp-ico { background: var(--accent); color: var(--accent-ink); }
.bigpick .bp-main { flex: 1; min-width: 0; }
.bigpick .bp-title { display: block; font-weight: 650; font-size: 16px; }
.bigpick .bp-sub { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.bigpick .bp-chev { color: var(--muted); font-size: 20px; }

/* sticky save bar — never hunt for the button mid-form */
.formbar {
  position: sticky; z-index: 5;
  bottom: calc(var(--nav-h) + env(safe-area-inset-bottom));
  display: flex; gap: 10px;
  background: var(--page); padding: 10px 0 12px; margin-top: 4px;
}
.formbar::before {
  content: ""; position: absolute; left: -16px; right: -16px; top: 0; bottom: 0;
  background: var(--page); border-top: 1px solid var(--border); z-index: -1;
}
@media (min-width: 880px) {
  .formbar { position: static; padding-bottom: 0; }
  .formbar::before { display: none; }
}
textarea.input { resize: vertical; min-height: 72px; }
.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.seg {
  display: flex; background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 3px;
}
.seg button {
  flex: 1; border: none; background: none; border-radius: 9px;
  padding: 8px 10px; font-weight: 600; font-size: 13.5px; color: var(--ink-2); cursor: pointer;
}
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.switchrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 0; border-bottom: 1px solid var(--grid); gap: 10px;
}
.switchrow:last-child { border-bottom: none; }
.switchrow .lab { font-weight: 600; font-size: 14px; }
.switchrow .sub { font-size: 12px; color: var(--muted); }
.toggle {
  position: relative; width: 46px; height: 28px; border-radius: 999px;
  background: var(--baseline); border: none; cursor: pointer; flex: 0 0 auto; transition: background .15s;
}
.toggle::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px;
  border-radius: 50%; background: #fff; transition: left .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.25);
}
.toggle.on { background: var(--accent); }
.toggle.on::after { left: 21px; }

/* modal + sheet */
.overlay {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(0,0,0,.42);
  display: flex; align-items: flex-end; justify-content: center;
}
.overlay .panel {
  background: var(--surface); width: 100%; max-height: 88dvh; overflow-y: auto;
  border-radius: 18px 18px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
}
@media (min-width: 880px) {
  .overlay { align-items: center; }
  .overlay .panel { max-width: 460px; border-radius: 18px; }
}
.panel .grab { width: 36px; height: 4px; border-radius: 2px; background: var(--baseline); margin: 0 auto 12px; }
@media (min-width: 880px) { .panel .grab { display: none; } }

/* toast */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--nav-h) + 18px + env(safe-area-inset-bottom));
  background: var(--ink); color: var(--page);
  border-radius: 12px; padding: 10px 18px; font-weight: 600; font-size: 14px;
  z-index: 80; box-shadow: var(--shadow); max-width: 90vw; text-align: center;
}
@media (min-width: 880px) { .toast { bottom: 28px; } }

/* tables */
.tablewrap { overflow-x: auto; margin: 0 -14px; padding: 0 14px; }
table.data { border-collapse: collapse; width: 100%; font-size: 13.5px; }
table.data th {
  text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-weight: 700; padding: 7px 10px; border-bottom: 1px solid var(--baseline);
  white-space: nowrap;
}
table.data td { padding: 8px 10px; border-bottom: 1px solid var(--grid); white-space: nowrap; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tr:last-child td { border-bottom: none; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: var(--surface-2); }

/* charts */
.viz { width: 100%; }
.viz svg { display: block; width: 100%; height: auto; }
.viz-tooltip {
  position: fixed; z-index: 90; pointer-events: none;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 7px 10px; font-size: 12.5px; box-shadow: var(--shadow);
  max-width: 240px;
}
.viz-tooltip .tt-t { font-weight: 700; margin-bottom: 2px; }
.viz-tooltip .tt-r { display: flex; align-items: center; gap: 6px; color: var(--ink-2); }
.viz-tooltip .tt-r .sw { width: 8px; height: 8px; border-radius: 2px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--ink-2); margin: 2px 0 8px; }
.legend .li { display: inline-flex; align-items: center; gap: 6px; font-weight: 550; }
.legend .sw { width: 9px; height: 9px; border-radius: 2.5px; }

/* login */
.login {
  min-height: 100dvh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 24px;
}
.login .logo-big {
  width: 64px; height: 64px; border-radius: 18px; background: var(--accent);
  color: var(--accent-ink); display: flex; align-items: center; justify-content: center;
  font-size: 30px; font-weight: 700; margin-bottom: 14px;
}
.login .pic-grid {
  display: grid; grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 10px; margin-top: 22px; width: 100%; max-width: 420px;
}
.login .pic-card {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 12px; cursor: pointer; font-weight: 600; font-size: 14px; text-align: left;
}
.login .pic-card:hover { border-color: var(--accent); }
.login .pic-card .avatar { pointer-events: none; }

/* misc */
.empty { text-align: center; color: var(--muted); padding: 26px 10px; font-size: 14px; }
.empty .big { font-size: 30px; margin-bottom: 6px; }
.section-note { font-size: 12.5px; color: var(--muted); margin: 4px 0 10px; }
.searchbar { position: relative; margin-bottom: 10px; }
.searchbar .input { padding-left: 36px; }
.searchbar .ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.divider { height: 1px; background: var(--grid); margin: 10px 0; }
.mono { font-variant-numeric: tabular-nums; }
.hint { font-size: 12px; color: var(--muted); }
.danger-text { color: var(--critical); }
/* account sheet */
.panel.account { padding-top: 12px; }
.account-head {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 2px 16px; margin-bottom: 4px;
  border-bottom: 1px solid var(--grid);
}
.account-name { font-weight: 700; font-size: 17px; line-height: 1.2; }
.account-role { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.menu-section {
  font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--muted); padding: 16px 2px 7px;
}
.menu-group { display: flex; flex-direction: column; gap: 2px; padding-top: 6px; }
.menu-item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  border: none; background: none; text-align: left;
  padding: 11px 10px; border-radius: 11px; cursor: pointer;
}
.menu-item:hover, .menu-item:active { background: var(--surface-2); }
.menu-ico {
  width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px;
  background: var(--surface-2); display: flex; align-items: center; justify-content: center;
  font-size: 15px;
}
.menu-item:hover .menu-ico { background: var(--surface); }
.menu-text { flex: 1; min-width: 0; display: block; }
.menu-label { display: block; font-weight: 600; font-size: 14.5px; }
.menu-sub { display: block; font-size: 12px; color: var(--muted); margin-top: 1px; }
.menu-chev { color: var(--baseline); font-size: 18px; }
