/* Company Analysis, the SI workspace (ruling 168). One sheet for the shell and the shared atoms.
   A view's own layout lives in its own sheet under views/, linked by the page that draws it.
   Colours are roles; never write a hex in a view. Price colours (--up, --down) mark price moves only:
   a filed figure is never coloured by its direction. */
:root {
  --bg: #0B0E14; --panel: #131722; --panel-2: #0F131C; --well: rgba(11, 14, 20, 0.62);
  --line: #1E222D; --line-2: #2A3140; --line-3: #1A1F2B; --line-hover: #475569;
  --tx: #F8FAFC; --tx-2: #E2E8F0; --tx-3: #CBD5E1; --mut: #94A3B8; --dim: #64748B;
  --si: #3B82F6; --si-tx: #BFDBFE; --si-tx-2: #93C5FD; --si-bd: rgba(59, 130, 246, 0.42); --si-bg: rgba(59, 130, 246, 0.08);
  --rec: #14B8A6; --rec-tx: #99F6E4; --rec-bd: rgba(45, 212, 191, 0.45); --rec-bg: rgba(45, 212, 191, 0.08);
  --up: #2DD4BF; --down: #F87171; --amber: #FBBF24; --violet: #A78BFA; --slate-bar: #334155;
  --sans: Inter, 'Segoe UI', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --dock-w: 220px; --top-h: 48px; --status-h: 26px;
  color-scheme: dark;
}
html[data-dock="min"] { --dock-w: 56px; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--tx); font-family: var(--sans); font-size: 13px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--si); outline-offset: 2px; border-radius: 6px; }
a.src { border-bottom: 1px dotted var(--mut); }
a.src:hover { border-bottom-color: var(--tx); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ the frame: top bar, dock, work area, status */
.si-app { height: 100vh; height: 100dvh; display: grid; grid-template-columns: var(--dock-w) minmax(0, 1fr); grid-template-rows: var(--top-h) minmax(0, 1fr) var(--status-h); background: var(--bg); overflow: hidden; }
.si-top { grid-column: 1 / -1; position: relative; z-index: 30; display: flex; align-items: center; gap: 16px; padding: 0 12px 0 16px; border-bottom: 1px solid var(--line); background: var(--bg); min-width: 0; }
.si-brand { width: 192px; flex: none; display: flex; align-items: center; gap: 8px; }
.si-brand b { font-size: 14px; font-weight: 600; letter-spacing: -0.01em; }
.si-brand b i { font-style: normal; color: var(--si-tx-2); }
.si-logo { flex: none; display: block; width: 24px; height: 24px; }
.si-menu { display: none; width: 32px; height: 32px; flex: none; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--panel); }
.si-find { flex: 1; min-width: 0; display: flex; justify-content: center; }
.si-find-bar { width: 100%; max-width: 560px; height: 32px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); color: var(--mut); cursor: text; }
.si-find-bar:focus-within { border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16); }
.si-find-bar input { flex: 1; min-width: 0; height: 28px; border: 0; outline: 0; background: transparent; color: var(--tx); font-size: 13px; }
.si-find-bar input::placeholder { color: var(--mut); }
.si-find-bar svg { flex: none; }
.si-find-tk { flex: none; font-family: var(--mono); font-size: 11.5px; font-weight: 600; padding: 1px 6px; border-radius: 5px; background: var(--line); color: var(--tx); }
.kbd { flex: none; font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; border-radius: 5px; border: 1px solid var(--line-2); background: var(--bg); color: var(--mut); }
.si-top-right { width: 192px; flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.si-acct { height: 30px; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.si-acct:hover { border-color: var(--line-hover); }
.seg { display: flex; gap: 2px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.seg button { height: 24px; min-width: 28px; padding: 0 6px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 6px; background: transparent; color: var(--mut); font-size: 11px; font-weight: 600; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--line-2); color: var(--tx); }

.si-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(5, 7, 11, 0.45); }
.si-results { position: absolute; z-index: 41; top: 44px; left: 50%; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); max-height: min(70vh, 620px); overflow: auto; border-radius: 12px; border: 1px solid var(--line-2); background: var(--panel); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6); }
.si-results .hd { display: flex; align-items: center; justify-content: space-between; height: 28px; padding: 0 14px; border-top: 1px solid var(--line); }
.si-results .hd:first-child { border-top: 0; }
.si-results .hd span + span { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.si-res { display: flex; align-items: center; gap: 12px; min-height: 40px; padding: 0 14px; border-top: 1px solid var(--line-3); color: var(--tx); }
.si-res[aria-selected="true"], .si-res:hover { background: rgba(148, 163, 184, 0.08); }
.si-res .l { flex: 1.25; min-width: 0; font-size: 13px; }
.si-res .v { flex: 1.35; min-width: 0; text-align: right; font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.si-res .tk { flex: none; width: 58px; font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.si-res .to { flex: none; width: 84px; text-align: right; font-size: 11.5px; color: var(--mut); white-space: nowrap; }
.si-res .sub { flex: none; font-size: 11.5px; color: var(--mut); white-space: nowrap; }
.si-res-ask { min-height: 46px; border-top: 1px solid rgba(59, 130, 246, 0.3); background: rgba(59, 130, 246, 0.07); }
.si-results .ft { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 30px; padding: 0 14px; border-top: 1px solid var(--line); background: var(--panel-2); font-size: 11px; color: var(--mut); white-space: nowrap; }
.cut { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.si-dock { grid-row: 2; min-height: 0; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; border-right: 1px solid var(--line); background: var(--bg); overflow: hidden auto; scrollbar-width: none; }
.si-dock::-webkit-scrollbar { display: none; }
.si-dock .grp { padding: 16px 10px 6px; white-space: nowrap; }
.si-dock .grp:first-child { padding-top: 10px; }
.si-dock .rule { display: none; flex: none; height: 1px; margin: 7px 8px; background: var(--line); }
.si-tool { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; height: 36px; padding: 0 10px; border-radius: 8px; border: 1px solid transparent; background: transparent; color: var(--tx-3); font-size: 13px; white-space: nowrap; }
.si-tool[hidden] { display: none; }
.si-tool svg { flex: none; stroke: var(--mut); }
.si-tool:hover { color: var(--tx); }
.si-tool[aria-current="page"] { border-color: var(--line-2); background: var(--panel); color: var(--tx); }
.si-tool[aria-current="page"] svg { stroke: var(--tx); }
.si-tool.is-si { border-color: var(--si-bd); color: var(--tx); font-weight: 500; }
.si-tool.is-si[aria-current="page"] { background: rgba(59, 130, 246, 0.18); }
.si-mark { flex: none; width: 16px; height: 16px; display: flex; align-items: center; justify-content: center; border-radius: 4px; background: rgba(59, 130, 246, 0.22); font-family: var(--mono); font-size: 8.5px; font-weight: 600; color: var(--si-tx); }
.si-mark.lg { width: 18px; height: 18px; border-radius: 5px; }
.si-mark.xl { width: 20px; height: 20px; border-radius: 5px; font-size: 9px; }
.si-dock .grow { flex: 1; min-height: 6px; }
.si-dock-toggle { flex: none; display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--mut); font-size: 12.5px; }
.si-dock-toggle:hover { color: var(--tx); }
html[data-dock="min"] .si-dock { padding-left: 9px; padding-right: 9px; }
html[data-dock="min"] .si-dock .grp, html[data-dock="min"] .si-tool span.w, html[data-dock="min"] .si-dock-toggle span.w { display: none; }
html[data-dock="min"] .si-dock .rule { display: block; }
html[data-dock="min"] .si-tool, html[data-dock="min"] .si-dock-toggle { justify-content: center; padding: 0; }
html[data-dock="min"] .si-dock-toggle svg { transform: rotate(180deg); }

.si-main { grid-row: 2; min-width: 0; min-height: 0; display: flex; overflow: hidden; }
.si-work { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.si-scroll { flex: 1; min-height: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.si-page { max-width: 1440px; margin: 0 auto; padding: 16px 20px 28px; }
.si-status { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 12px 0 16px; border-top: 1px solid var(--line); background: var(--bg); font-size: 11px; color: var(--mut); white-space: nowrap; overflow: hidden; }
.si-status a:hover { color: var(--tx); }
.si-status span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ------------------------------------------------------------------ the SI assistant: a bar at the bottom or a drawer at the right */
.si-assist-bottom { flex: none; display: flex; justify-content: center; padding: 8px 20px 12px; border-top: 1px solid var(--line); background: var(--bg); }
.si-assist-bottom > div { width: min(760px, 100%); }
.si-bar { padding: 6px 8px 8px; border-radius: 14px; border: 1px solid rgba(59, 130, 246, 0.3); background: rgba(19, 23, 34, 0.72); backdrop-filter: blur(24px); box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07); }
.si-bar-hd { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 2px; }
.si-bar-hd b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.si-bar-hd .ctx { min-width: 0; font-size: 11.5px; color: var(--mut); }
.si-bar-hd .seg { border-radius: 7px; border-color: var(--line-2); background: rgba(11, 14, 20, 0.6); }
.si-bar-hd .seg button { height: 20px; padding: 0 8px; border-radius: 5px; }
.icon-btn { flex: none; width: 26px; height: 24px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 6px; background: transparent; color: var(--tx-3); }
.icon-btn:hover { border-color: var(--line-hover); }
.si-ask { display: flex; align-items: center; gap: 8px; height: 38px; margin-top: 4px; padding: 0 5px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--well); }
.si-ask input { flex: 1; min-width: 0; height: 34px; border: 0; outline: 0; background: transparent; color: var(--tx); font-size: 13.5px; }
.si-send { flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: var(--tx); color: var(--bg); }
.si-min-bottom { flex: none; display: none; justify-content: center; padding: 6px 20px 0; border-top: 1px solid var(--line); background: var(--bg); }
.si-min-bottom button { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid rgba(59, 130, 246, 0.35); border-bottom: 0; border-radius: 10px 10px 0 0; background: var(--panel); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.si-min-bottom button i { font-style: normal; font-weight: 400; color: var(--mut); }
.si-drawer { flex: none; width: 340px; display: none; flex-direction: column; border-left: 1px solid var(--line); background: var(--panel-2); }
.si-drawer-hd { flex: none; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 14px; border-bottom: 1px solid var(--line); }
.si-drawer-hd b { font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.si-drawer-hd .seg { border-radius: 7px; border-color: var(--line-2); background: var(--bg); }
.si-drawer-hd .seg button { height: 20px; padding: 0 7px; border-radius: 5px; }
.si-thread { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 12px; padding: 14px; overflow: auto; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.si-q { align-self: flex-end; max-width: 88%; padding: 7px 11px; border-radius: 12px 12px 3px 12px; background: var(--line); font-size: 13px; }
.si-a { display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.55; color: var(--tx-2); }
.si-a a.cite, .cite { display: inline-block; margin-left: 2px; padding: 0 6px; border-radius: 5px; border: 1px solid rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.1); color: var(--si-tx); font-family: var(--mono); font-size: 10.5px; line-height: 17px; white-space: nowrap; }
.si-drawer-ft { flex: none; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.si-drawer-ft .si-ask { height: 40px; margin: 0; padding-right: 6px; border-color: rgba(59, 130, 246, 0.3); background: var(--panel); }
.si-rail { flex: none; width: 44px; display: none; flex-direction: column; align-items: center; padding-top: 10px; border-left: 1px solid var(--line); background: var(--panel-2); }
.si-rail button { width: 32px; height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid rgba(59, 130, 246, 0.4); border-radius: 8px; background: var(--si-bg); color: var(--si-tx); font-family: var(--mono); font-size: 10px; font-weight: 600; }
html[data-si="right"] .si-assist-bottom { display: none; }
html[data-si="right"] .si-drawer { display: flex; }
html[data-si="bottom"][data-si-min="1"] .si-assist-bottom { display: none; }
html[data-si="bottom"][data-si-min="1"] .si-min-bottom { display: flex; }
html[data-si="right"][data-si-min="1"] .si-drawer { display: none; }
html[data-si="right"][data-si-min="1"] .si-rail { display: flex; }
html[data-si="off"] .si-assist-bottom, html[data-si="off"] .si-top-right .seg { display: none; }

/* ------------------------------------------------------------------ atoms */
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.mut { color: var(--mut); }
.lab { font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mut); }
.up { color: var(--up); }
.down { color: var(--down); }
.h-sec { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.h-sec b, .h-sec h2 { font-size: 14px; font-weight: 600; }
.h-sec span, .h-sec a { font-size: 11.5px; color: var(--mut); white-space: nowrap; }
.h-sec a:hover { color: var(--tx); }
.panel { border-radius: 12px; border: 1px solid var(--line); background: var(--panel); }
.panel.pad { padding: 12px 14px; }
.note { font-size: 11.5px; line-height: 1.5; color: var(--mut); }
.btn { height: 32px; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--tx); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--line-hover); }
.btn.pri { border: 0; background: var(--tx); color: var(--bg); font-weight: 600; }
.btn.sm { height: 26px; padding: 0 9px; border-radius: 7px; font-size: 12px; }
.btn[aria-pressed="true"] { border-color: var(--rec-bd); background: var(--rec-bg); color: var(--rec-tx); }
.chip { display: inline-block; padding: 0 6px; border-radius: 5px; border: 1px solid var(--line-2); font-family: var(--mono); font-size: 10.5px; line-height: 17px; color: var(--mut); white-space: nowrap; }
.pill { display: inline-block; padding: 0 8px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 11px; line-height: 20px; color: var(--mut); white-space: nowrap; }
.pill.on { border-color: var(--rec-bd); background: var(--rec-bg); color: var(--rec-tx); }
.pill.warn { border-color: rgba(251, 191, 36, 0.45); background: rgba(251, 191, 36, 0.07); color: #FDE68A; }
.pill.si { border-color: var(--si-bd); background: var(--si-bg); color: var(--si-tx); }
.tabs { display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line-2); white-space: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 38px; display: inline-flex; align-items: center; gap: 6px; padding: 0 13px; border: 0; border-bottom: 2px solid transparent; border-radius: 7px 7px 0 0; background: transparent; color: var(--mut); font-size: 13.5px; font-weight: 500; }
.tab:hover { color: var(--tx); }
.tab[aria-selected="true"] { border-bottom-color: var(--tx); background: var(--panel); color: var(--tx); }
.subtabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); }
.subtabs button { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: transparent; color: var(--mut); font-size: 12px; font-weight: 600; white-space: nowrap; }
.subtabs button[aria-pressed="true"], .subtabs button[aria-selected="true"] { background: var(--line-2); color: var(--tx); }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; min-height: 32px; padding: 6px 0; border-top: 1px solid var(--line-3); font-size: 12.5px; }
.kv:first-child { border-top: 0; }
.kv > span:first-child { color: var(--tx-3); min-width: 0; }
.kv > b { flex: none; font-family: var(--mono); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.tile { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.tile .t { font-size: 12px; color: var(--mut); }
.tile .v { margin-top: 4px; font-size: 22px; line-height: 1.15; font-weight: 700; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.tile .s { margin-top: 4px; font-size: 11.5px; line-height: 1.45; color: var(--mut); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th { height: 32px; padding: 0 10px; text-align: right; font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mut); white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.tbl td { height: 34px; padding: 0 10px; text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; border-top: 1px solid var(--line-3); }
.tbl th:first-child, .tbl td:first-child { text-align: left; font-family: var(--sans); color: var(--tx-3); }
.tbl tr:hover td { background: rgba(148, 163, 184, 0.04); }
.tbl-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.break { height: 26px; padding: 0 11px; border-radius: 999px; border: 1px solid rgba(59, 130, 246, 0.45); background: rgba(59, 130, 246, 0.1); color: var(--si-tx); font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.break:hover { background: rgba(59, 130, 246, 0.18); }
.empty { padding: 18px 14px; font-size: 12.5px; color: var(--mut); }
.row-link:hover { background: rgba(148, 163, 184, 0.05); }
.est { display: inline-block; padding: 0 5px; margin-left: 6px; border-radius: 4px; border: 1px solid var(--si-bd); background: var(--si-bg); color: var(--si-tx); font-family: var(--mono); font-size: 9.5px; line-height: 15px; font-weight: 600; letter-spacing: 0.04em; vertical-align: 1px; white-space: nowrap; }
.cols { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: flex-start; }
.cols > .main { flex: 2.1 1 560px; min-width: 0; }
.cols > .side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.stack { display: flex; flex-direction: column; gap: 14px; }

/* ------------------------------------------------------------------ the company selector of a tool (lib/picker.mjs) */
.pk { max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.pk-h1 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.pk-find { position: relative; padding: 18px 18px 16px; }
.pk-find h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; }
.pk-find .note { margin-top: 4px; max-width: 70ch; }
.pk-bar { display: flex; align-items: center; gap: 10px; height: 44px; margin-top: 14px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); cursor: text; }
.pk-bar:focus-within { border-color: rgba(59, 130, 246, 0.6); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16); }
.pk-bar input { flex: 1; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; color: var(--tx); font-size: 15px; }
.pk-bar input::placeholder { color: var(--mut); }
.pk-bar.sm { height: 28px; margin: 0; padding: 0 9px; gap: 7px; border-radius: 7px; border-color: var(--line); background: var(--panel); }
.pk-bar.sm input { height: 24px; font-size: 12.5px; }
.pk-hits { margin-top: 8px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; }
.pk-hits.pop { position: absolute; z-index: 20; top: 32px; left: 0; width: min(420px, 86vw); margin: 0; box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55); }
.pk-switch { position: relative; flex: 0 1 220px; min-width: 140px; }
.pk-row { display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 14px; border-top: 1px solid var(--line-3); }
.pk-row:first-child { border-top: 0; }
.pk-row:hover, .pk-row[aria-selected="true"] { background: rgba(148, 163, 184, 0.08); }
.pk-row b { flex: none; width: 58px; font-size: 12.5px; font-weight: 600; }
.pk-row .n { flex: 1; min-width: 0; font-size: 13px; }
.pk-row .sub { flex: 0 1 40%; min-width: 0; text-align: right; font-size: 11.5px; color: var(--mut); }
.pk-row .to { flex: none; font-size: 11.5px; color: var(--mut); white-space: nowrap; }
.pk-block .lab { margin-bottom: 8px; }
.pk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pk-chip { display: inline-flex; align-items: center; gap: 8px; max-width: 260px; height: 30px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 12.5px; }
.pk-chip:hover { border-color: var(--line-hover); }
.pk-chip b { font-size: 12px; font-weight: 600; }
.pk-chip span { min-width: 0; color: var(--tx-3); }
.pk-rows { margin-top: 8px; overflow: hidden; }
@media (max-width: 900px) { .pk-row .sub { display: none; } .pk-switch { flex: 1 1 100%; order: 5; } .pk-hits.pop { width: 100%; } }

/* ------------------------------------------------------------------ small screens: the dock slides over the page */
@media (max-width: 900px) {
  .si-app { grid-template-columns: minmax(0, 1fr); }
  .si-dock { position: fixed; z-index: 35; top: var(--top-h); bottom: 0; left: 0; width: 248px; transform: translateX(-102%); transition: transform 0.18s ease; box-shadow: 18px 0 50px rgba(0, 0, 0, 0.5); }
  html[data-menu="1"] .si-dock { transform: none; }
  html[data-dock="min"] .si-dock .grp, html[data-dock="min"] .si-tool span.w { display: block; }
  html[data-dock="min"] .si-tool { justify-content: flex-start; padding: 0 10px; }
  html[data-dock="min"] .si-dock .rule { display: none; }
  .si-dock-toggle { display: none; }
  .si-main { grid-column: 1; }
  .si-menu { display: flex; }
  .si-brand { width: auto; }
  .si-brand b { display: none; }
  .si-top { gap: 10px; padding: 0 10px; }
  .si-top-right { width: auto; }
  .si-top-right .seg { display: none; }
  .si-acct span { display: none; }
  .si-acct { padding: 0 8px; }
  .kbd { display: none; }
  .si-page { padding: 12px 14px 22px; }
  .si-drawer { position: fixed; z-index: 34; top: var(--top-h); right: 0; bottom: 0; width: min(360px, 100%); box-shadow: -18px 0 50px rgba(0, 0, 0, 0.5); }
  .si-rail { display: none !important; }
  .si-assist-bottom { padding: 6px 10px 8px; }
  .si-bar-hd .seg, .si-bar-hd .ctx { display: none; }
  .si-status > span:first-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
