/* Tropiq Lift prototype · shared styles
   Layout: dark navy sidebar + light work surface, cards on a cool grey ground (Tropiq FMS family, cobalt accent). */
:root {
  --bg: #f6f7fb; --card: #ffffff; --line: #e3e6ee; --line-strong: #d6dae6; --hover: #fafbfe; --input: #f6f7fb;
  --fg: #0f172a; --fg-2: #475569; --fg-3: #5b6677;
  --accent: #3b5bdb; --accent-hover: #2f49b3; --accent-soft: #e9edff; --accent-fg: #2a3ba8; --btn-primary: #3b5bdb; --btn-primary-hover: #2f49b3;
  --side: #0e1530; --side-fg: #a3adc8; --side-fg-2: #8d99bd; --side-line: rgba(255,255,255,.08); --side-hover: rgba(255,255,255,.06); --side-bar: #8da2ff;
  --amber-bg: #fff4dc; --amber-fg: #8a4b00; --amber-line: #f1d9a8;
  --sky-bg: #e3f1ff; --sky-fg: #0b4d7a; --sky-line: #b9d8f5;
  --green-bg: #e2f6ea; --green-fg: #0b5a3a; --green-line: #b7e3c6;
  --slate-bg: #eceff5; --slate-fg: #475569;
  --rose-bg: #fde8ec; --rose-fg: #9b1c3a; --rose-line: #f3b7c3;
  --purple-bg: #f3eefc; --purple-fg: #4c2d8f; --purple-line: #d9c9f3;
  --ok: #16a34a; --warn: #d97706; --bad: #dc2626; --na: #94a3b8;
  --tint-amber: #fffaf0; --tint-rose: #fff5f6; --tint-blue: #f5f7ff; --tint-green: #f2fbf5;
  --shadow: 0 8px 24px rgba(15,23,42,.10);
  --font: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1322; --card: #161b2e; --line: #262d45; --line-strong: #334064; --hover: #1a2036; --input: #111628;
    --fg: #e8ebf4; --fg-2: #b4bccf; --fg-3: #98a2b8;
    --accent: #8ea3ff; --accent-hover: #a8b8ff; --accent-soft: #232c52; --accent-fg: #c3cdff; --btn-primary: #4f6ae6; --btn-primary-hover: #6279ec;
    --side: #0a0f20; --side-fg: #a3adc8; --side-fg-2: #8d99bd; --side-line: rgba(255,255,255,.08); --side-hover: rgba(255,255,255,.06); --side-bar: #8da2ff;
    --amber-bg: #3a2a0c; --amber-fg: #ffd48a; --amber-line: #5a4215;
    --sky-bg: #0f2a40; --sky-fg: #9fd3ff; --sky-line: #1d4a6e;
    --green-bg: #0f2f1f; --green-fg: #8fe0b0; --green-line: #1c5236;
    --slate-bg: #232a3d; --slate-fg: #c2cadb;
    --rose-bg: #3b1420; --rose-fg: #ffb3c2; --rose-line: #5e2232;
    --purple-bg: #2a1f45; --purple-fg: #d3c1ff; --purple-line: #433468;
    --ok: #34c268; --warn: #f0a429; --bad: #f05a5a; --na: #6b7590;
    --tint-amber: #1d1a14; --tint-rose: #1f1418; --tint-blue: #151a30; --tint-green: #13201a;
    --shadow: 0 8px 24px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1322; --card: #161b2e; --line: #262d45; --line-strong: #334064; --hover: #1a2036; --input: #111628;
  --fg: #e8ebf4; --fg-2: #b4bccf; --fg-3: #98a2b8;
  --accent: #8ea3ff; --accent-hover: #a8b8ff; --accent-soft: #232c52; --accent-fg: #c3cdff; --btn-primary: #4f6ae6; --btn-primary-hover: #6279ec;
  --side: #0a0f20; --side-fg: #a3adc8; --side-fg-2: #8d99bd; --side-line: rgba(255,255,255,.08); --side-hover: rgba(255,255,255,.06); --side-bar: #8da2ff;
  --amber-bg: #3a2a0c; --amber-fg: #ffd48a; --amber-line: #5a4215;
  --sky-bg: #0f2a40; --sky-fg: #9fd3ff; --sky-line: #1d4a6e;
  --green-bg: #0f2f1f; --green-fg: #8fe0b0; --green-line: #1c5236;
  --slate-bg: #232a3d; --slate-fg: #c2cadb;
  --rose-bg: #3b1420; --rose-fg: #ffb3c2; --rose-line: #5e2232;
  --purple-bg: #2a1f45; --purple-fg: #d3c1ff; --purple-line: #433468;
  --ok: #34c268; --warn: #f0a429; --bad: #f05a5a; --na: #6b7590;
  --tint-amber: #1d1a14; --tint-rose: #1f1418; --tint-blue: #151a30; --tint-green: #13201a;
  --shadow: 0 8px 24px rgba(0,0,0,.4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); font-size: 14px; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; letter-spacing: -0.011em; line-height: 1.45; }
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.h2 { font-size: 14px; font-weight: 600; }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--fg-3); font-size: 12px; }
.nw { white-space: nowrap; }

/* shell */
.shell { display: flex; min-height: 100vh; }
.side { width: 232px; flex: 0 0 232px; background: var(--side); color: var(--side-fg); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; border-bottom: 1px solid var(--side-line); }
.brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--btn-primary); display: flex; align-items: center; justify-content: center; color: #fff; }
.brand b { display: block; color: #fff; font-weight: 600; font-size: 14px; }
.brand small { font-size: 11px; color: var(--side-fg-2); }
.brand .logo { width: 30px; height: 30px; flex: 0 0 30px; color: #00bfa5; }
.brand b.wm { font-size: 16px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.brand .wm .i { position: relative; display: inline-block; }
.brand .wm .i svg { position: absolute; left: 50%; bottom: .60em; width: .34em; height: .30em; transform: translateX(-50%); color: #00bfa5; }
.brand .org { display: inline-flex; align-items: center; gap: 3px; margin-top: 2px; padding: 0; border: 0; background: none; font-size: 11.5px; font-weight: 500; color: var(--side-fg-2); cursor: pointer; }
.brand .org:hover { color: #fff; }
.grp { border-top: 1px solid var(--line); }
.grp summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 18px 4px; font-size: 12px; color: var(--fg-3); }
.grp summary::-webkit-details-marker { display: none; }
.grp summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--fg-3); border-bottom: 1.5px solid var(--fg-3); transform: rotate(-45deg); transition: transform .15s; margin-right: 2px; }
.grp[open] summary::before { transform: rotate(45deg); }
.grp summary strong { color: var(--fg); }
.grp summary .n { margin-left: auto; font-family: var(--mono); }
.nav { display: flex; flex-direction: column; padding: 10px 0; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 20px; font-size: 13px; font-weight: 500; color: var(--side-fg); text-decoration: none; position: relative; }
.nav a:hover { color: #fff; background: var(--side-hover); }
.nav a.active { color: #fff; background: rgba(255,255,255,.08); }
.nav a.active::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--side-bar); }
.nav .badge { margin-left: auto; background: #f59e0b; color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; min-width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.who { margin-top: auto; padding: 14px 20px; border-top: 1px solid var(--side-line); display: flex; align-items: center; gap: 10px; }
.who .av { width: 30px; height: 30px; border-radius: 50%; background: #2a3ba8; color: #fff; font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.who b { display: block; color: #fff; font-size: 13px; font-weight: 500; }
.who small { font-size: 11px; color: var(--side-fg-2); }
.content { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.topbar { min-height: 56px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); background: var(--card); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
@media (min-width: 861px) { .topbar { padding-left: 28px; padding-right: 28px; } }
.search { flex: 1 1 240px; max-width: 520px; position: relative; }
.search svg { position: absolute; left: 12px; top: 12px; color: var(--fg-3); }
.search input { width: 100%; height: 38px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 12px 0 36px; background: var(--input); }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.crumbs a { text-decoration: none; color: var(--fg-3); }
.crumbs span.sep { color: var(--na); }
main { padding-block: 26px 48px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 861px) { main { padding-left: 28px; padding-right: 28px; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.page-head p { color: var(--fg-2); max-width: 70ch; }
.eyebrow { color: var(--fg-3); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-3 > .span2 { grid-column: span 2; }
.col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
@media (max-width: 1100px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } .grid-3 > .span2 { grid-column: auto; } }
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .side { position: static; width: 100%; flex-basis: auto; height: auto; }
  .nav { flex-direction: row; overflow-x: auto; padding: 6px 8px; gap: 2px; }
  .nav a { padding: 8px 12px; white-space: nowrap; }
  .nav a.active::before { display: none; }
  .who { display: none; }
}

/* components */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px 12px; flex-wrap: wrap; }
.row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.row > .grow { flex: 1 1 320px; min-width: 0; }
.col:not(.span2) .row > .grow { flex-basis: 160px; }
.row.tint-amber { background: var(--tint-amber); } .row.tint-rose { background: var(--tint-rose); } .row.tint-blue { background: var(--tint-blue); }
.row.fade { opacity: 0; transition: opacity .35s; }
.when { width: 86px; flex: 0 0 86px; }
.when .t { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.line a.name { font-weight: 600; text-decoration: none; color: var(--fg); }
.pills { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; line-height: 16px; white-space: nowrap; }
.p-amber { background: var(--amber-bg); color: var(--amber-fg); } .p-sky { background: var(--sky-bg); color: var(--sky-fg); } .p-green { background: var(--green-bg); color: var(--green-fg); }
.p-slate { background: var(--slate-bg); color: var(--slate-fg); } .p-rose { background: var(--rose-bg); color: var(--rose-fg); } .p-indigo { background: var(--accent-soft); color: var(--accent-fg); } .p-purple { background: var(--purple-bg); color: var(--purple-fg); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 12px; min-height: 40px; border-radius: 8px; font-size: 13px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--card); color: var(--fg); cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--hover); color: var(--fg); }
.btn-sm { min-height: 32px; padding: 0 10px; font-size: 12px; }
.btn-primary { background: var(--btn-primary); border-color: var(--btn-primary); color: #fff; }
.btn-primary:hover { background: var(--btn-primary-hover); border-color: var(--btn-primary-hover); color: #fff; }
.btn-danger { color: var(--rose-fg); border-color: var(--rose-line); }
.btn.is-done { background: var(--green-bg); border-color: var(--green-line); color: var(--green-fg); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn-ghost { border-color: transparent; background: transparent; }
.icon-btn { width: 40px; padding: 0; position: relative; }
.icon-btn .n { position: absolute; top: -5px; right: -5px; background: #e11d48; color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; min-width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; }
.risk { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: 0 0 8px; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.bad { background: var(--bad); } .dot.na { background: var(--na); }
.up { color: var(--green-fg); } .down { color: var(--rose-fg); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); text-decoration: none; color: var(--fg); min-width: 150px; flex: 1 1 150px; }
.chip:hover { border-color: var(--accent); color: var(--fg); }
.chip .n { font-family: var(--mono); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chip b { font-size: 12px; font-weight: 600; }
.tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tab { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; min-height: 36px; border-radius: 8px; font-size: 13px; font-weight: 500; color: var(--fg-2); text-decoration: none; border: 1px solid transparent; white-space: nowrap; background: transparent; cursor: pointer; }
.tab:hover { background: var(--slate-bg); color: var(--fg); }
.tab.active { background: var(--card); border-color: var(--line-strong); color: var(--fg); font-weight: 600; }
.tab .n { font-family: var(--mono); font-size: 11px; background: var(--slate-bg); border-radius: 999px; padding: 1px 7px; color: var(--slate-fg); }
.utabs { display: flex; border-bottom: 1px solid var(--line); gap: 18px; overflow-x: auto; }
.utab { display: inline-flex; align-items: center; gap: 6px; padding: 0 4px; min-height: 40px; font-size: 13px; font-weight: 500; color: var(--fg-2); text-decoration: none; border: 0; border-bottom: 2px solid transparent; background: transparent; cursor: pointer; white-space: nowrap; }
.utab:hover { color: var(--fg); }
.utab.active { color: var(--fg); font-weight: 600; border-bottom-color: var(--accent); }
select.sel, input.inp, textarea.inp { height: 36px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 0 10px; background: var(--card); }
textarea.inp { height: auto; padding: 8px 10px; width: 100%; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 10px; font-size: 13px; margin: 0; }
.kv dt { color: var(--fg-3); } .kv dd { margin: 0; }
.steps { display: flex; align-items: flex-start; margin-top: 8px; }
.step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1 1 0; position: relative; font-size: 11px; color: var(--fg-3); text-align: center; }
.step::before { content: ""; position: absolute; top: 7px; left: -50%; width: 100%; height: 2px; background: var(--line); }
.step:first-child::before { display: none; }
.step .k { width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 2px solid var(--line-strong); position: relative; z-index: 1; }
.step.done .k { background: var(--ok); border-color: var(--ok); }
.step.done::before { background: var(--ok); }
.step.now .k { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.step.done { color: var(--green-fg); } .step.now { color: var(--accent-fg); font-weight: 600; }
.tag { display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 6px; font-size: 11px; font-weight: 600; border: 1px solid var(--line-strong); background: var(--card); color: var(--fg-2); white-space: nowrap; }
.tag.w { background: var(--amber-bg); border-color: var(--amber-line); color: var(--amber-fg); } .tag.h { background: var(--rose-bg); border-color: var(--rose-line); color: var(--rose-fg); } .tag.g { background: var(--green-bg); border-color: var(--green-line); color: var(--green-fg); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 11px; font-weight: 600; color: var(--fg-3); text-transform: uppercase; letter-spacing: .04em; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: top; }
tr:hover td { background: var(--hover); }
tr.tint-amber td { background: var(--tint-amber); } tr.tint-rose td { background: var(--tint-rose); } tr.tint-blue td { background: var(--tint-blue); }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 13px; border-top: 1px solid var(--line); }
.ck { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 18px; margin-top: 1px; }
.ck.ok { background: var(--ok); color: #fff; } .ck.no { background: var(--card); border: 2px solid var(--warn); }
.ev { display: flex; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12px; }
.ev .t { width: 92px; flex: 0 0 92px; color: var(--fg-3); }
.note { padding: 10px 12px; border-radius: 8px; background: var(--card); border: 1px solid var(--amber-line); font-size: 12px; color: var(--amber-fg); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toasts { position: fixed; right: max(16px, env(safe-area-inset-right, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { background: var(--fg); color: var(--bg); padding: 10px 14px; border-radius: 10px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow); opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; max-width: min(360px, 90vw); }
.toast.show { opacity: 1; transform: none; }
.legend { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; gap: 12px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .toast, .row.fade { transition: none; } }

/* Tooltips: every pill, tag, leg chip, score and icon explains itself on hover or focus (app.js) */
.tipbox { position: fixed; z-index: 1000; max-width: 300px; padding: 7px 10px; border-radius: 8px; background: var(--side); color: #fff; font-size: 12px; line-height: 1.45; font-weight: 400; letter-spacing: 0; box-shadow: 0 6px 20px rgba(0,0,0,.25); pointer-events: none; opacity: 0; transition: opacity .12s; }
.tipbox.show { opacity: 1; }
.tipbox b { color: #fff; }
[data-tip] { cursor: default; }
a[data-tip], button[data-tip] { cursor: pointer; }

/* ---- Coordinator-wide: sheet, call, words, search, nav fold ---- */
.sheet-back { position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 60; }
.sheet { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: var(--card); border-left: 1px solid var(--line); box-shadow: var(--shadow); z-index: 61; overflow-y: auto; padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); display: flex; flex-direction: column; gap: 14px; }
.sh-head { display: flex; align-items: center; gap: 10px; }
.sh-head b { font-size: 15px; }
.sh-head .sh-x { margin-left: auto; }
.sh-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex: 0 0 10px; display: inline-block; }
.sh-head.ring .sh-dot, .oncall .sh-dot { background: var(--ok); animation: ring 1.1s ease-in-out infinite; }
.sh-head.live .sh-dot { background: var(--bad); }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 rgba(22,163,74,.45); } 50% { box-shadow: 0 0 0 7px rgba(22,163,74,0); } }
@media (prefers-reduced-motion: reduce) { .sh-head.ring .sh-dot, .oncall .sh-dot { animation: none; } }
.oncall { border: 0; cursor: pointer; font: inherit; font-size: 11px; font-weight: 600; gap: 6px; }
.oncall .sh-dot { width: 8px; height: 8px; flex-basis: 8px; }
.sh-caller { display: flex; align-items: center; gap: 12px; }
.sh-caller .av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-fg); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; }
.sh-trip a { color: var(--fg); text-decoration: none; }
.sh-trip a:hover { color: var(--accent-fg); }
.say { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--fg); font-size: 13.5px; }
.say .k { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-fg); white-space: nowrap; }
.say a { color: var(--fg-3); }
.sh-items { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.sh-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 10px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg); text-decoration: none; }
.sh-item:first-child { border-top: 0; }
.sh-item:hover { background: var(--hover); color: var(--accent-fg); }
.sh-item .mono { font-size: 12px; color: var(--fg-3); }
.sh-sec { display: flex; flex-direction: column; gap: 6px; }
.sh-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sh-chips .tab { min-height: 32px; white-space: normal; text-align: left; }
.sh-acts { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.sheet textarea.inp { width: 100%; font: inherit; font-size: 13px; line-height: 1.5; }
.gh { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); }
.srch { position: absolute; left: 0; right: 0; top: 42px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: var(--shadow); z-index: 40; overflow: hidden; }
.srch-it { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-top: 1px solid var(--line); text-decoration: none; color: var(--fg); font-size: 13px; }
.srch-it:first-child { border-top: 0; }
.srch-it.sel, .srch-it:hover { background: var(--accent-soft); color: var(--fg); }
.nav details { border-top: 1px solid var(--side-line); margin-top: 6px; padding-top: 6px; }
.nav summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; padding: 9px 20px; font-size: 12px; font-weight: 600; color: var(--side-fg-2); text-transform: uppercase; letter-spacing: .05em; }
.nav summary::-webkit-details-marker { display: none; }
.nav summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); margin-left: auto; transition: transform .15s; }
.nav details[open] summary::after { transform: rotate(45deg); }
.nav details a { font-size: 12.5px; }
@media (max-width: 860px) { .nav details { border-top: 0; margin: 0; padding: 0; display: contents; } .nav summary { display: none; } }
.calm { display: none; padding: 18px; font-size: 14px; color: var(--fg-2); }
.quiet .q .row, .quiet .diff, .quiet .q .card-head .line, .quiet #h-diff + .muted { display: none; }
.quiet .calm { display: block; }
