:root {
  --bg: #F8F6F3; --panel: #FFFFFF; --line: #E8E4DE; --line-2: #F2EFEA; --ink: #1B1A19; --ink-2: #3D3A37; --muted: #6E6862; --faint: #9A948D;
  --accent: #D62F2A; --accent-ink: #A8201C; --accent-soft: #FBEBE9; --btn: #1B1A19; --btn-ink: #FFFFFF;
  --ok-bg: #E5F2EA; --ok: #1D6B43; --warn-bg: #FCF1DD; --warn: #8A5A0B; --bad-bg: #FBE6E4; --bad: #A3241D; --info-bg: #E8EFF8; --info: #24508A; --gray-bg: #F1EFEC; --gray: #4D4945;
  --fs: 1; --row: 34px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; color: var(--ink); color-scheme: light;
}
:root[data-density="compact"] { --row: 28px; }
:root[data-mode="dark"] {
  --bg: #141312; --panel: #1D1C1A; --line: #33302C; --line-2: #2A2825; --ink: #F3F0EC; --ink-2: #D6D1CB; --muted: #A39D96; --faint: #7D7770;
  --accent-soft: #3A1F1D; --btn: #F3F0EC; --btn-ink: #141312;
  --ok-bg: #173325; --ok: #7FD1A3; --warn-bg: #3A2C12; --warn: #F0C26A; --bad-bg: #3D1C1A; --bad: #F2948D; --info-bg: #1A2A40; --info: #93B9EC; --gray-bg: #2A2825; --gray: #C9C3BC; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body { font-size: calc(14px * var(--fs)); line-height: 1.45; }
a { color: var(--accent-ink); text-decoration: none; }
:root[data-mode="dark"] a { color: #F08A84; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; font-variant-numeric: tabular-nums; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.muted { color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--panel); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; gap: 1px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: block; padding: 2px 8px 14px; }
.logo img { width: 112px; height: auto; display: block; }
:root[data-mode="dark"] .logo img { background: #fff; border-radius: 6px; padding: 4px; }
.side a.nav { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.side a.nav:hover { background: var(--line-2); }
.side a.nav[aria-current="page"] { background: var(--line-2); color: var(--ink); font-weight: 600; }

.side a.nav .count { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side h3 { margin: 12px 10px 4px; font-size: 11px; font-weight: 600; color: var(--faint); letter-spacing: 0.02em; }
.side .recent a { display: block; padding: 5px 10px; font-size: 12.5px; color: var(--muted); border-radius: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sources { margin-top: auto; padding: 12px 6px 0; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); white-space: nowrap; }
.chip .dot { width: 6px; height: 6px; border-radius: 999px; background: #2F8A5A; }
.topbar { display: none; }

main { min-width: 0; }
.page { padding: 22px 28px 40px; max-width: 1480px; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.head h1 { margin: 0; font-size: calc(22px * var(--fs)); font-weight: 650; letter-spacing: -0.015em; }
.head p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.head .src { display: flex; gap: 6px; flex-wrap: wrap; }

.btn { height: 34px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--faint); }
.btn.primary { background: var(--btn); color: var(--btn-ink); border-color: var(--btn); font-weight: 600; }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 600; }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12px; }
.btn[disabled] { opacity: 0.5; cursor: default; }

.askbar { display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 6px 6px 6px 12px; margin-bottom: 14px; }
.askbar svg { flex: none; color: var(--faint); }
.askbar input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; font-size: 14px; padding: 6px 0; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 14px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 12px; overflow-x: auto; }
.tabs button { border: none; background: none; padding: 8px 12px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }

.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.toolbar input[type="search"] { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 10px; min-width: 200px; flex: 0 1 280px; background: var(--bg); }
.toolbar .spacer { flex: 1; }
.toolbar .total { font-size: 12px; color: var(--muted); }
.quick { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.quick button { height: 28px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: 12px; color: var(--ink-2); }
.quick button[aria-pressed="true"] { background: var(--ink); color: var(--panel); border-color: var(--ink); }
.fchip { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 4px 0 10px; border-radius: 6px; border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; }
.fchip button { border: none; background: none; color: inherit; width: 20px; height: 20px; border-radius: 999px; }

.tablewrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: calc(13px * var(--fs)); }
table.data th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; background: var(--bg); padding: 0; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; }
table.data th button { width: 100%; text-align: inherit; border: none; background: none; padding: 8px 12px; color: inherit; font-weight: 500; }
table.data th.num button { text-align: right; }
table.data td { padding: 0 12px; height: var(--row); border-bottom: 1px solid var(--line-2); white-space: nowrap; max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
table.data td.wrap { white-space: normal; min-width: 240px; max-width: 420px; padding-top: 6px; padding-bottom: 6px; }
table.data tbody tr:hover td { background: var(--line-2); }
table.data tr.hl td { background: #FFF8E1; box-shadow: inset 2px 0 0 #D08A16; }
:root[data-mode="dark"] table.data tr.hl td { background: #3A3214; }
table.data td .rowlink { border: none; background: none; padding: 0; color: var(--ink); font-weight: 550; text-align: left; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
table.data td .rowlink:hover { color: var(--accent-ink); text-decoration: underline; }
.more { padding: 10px 12px; font-size: 12px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
/* status: a small dot and a word, no pills */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--faint); flex: none; }
.b-ok::before { background: #2F8A5A; } .b-warn::before { background: #D08A16; } .b-bad::before { background: var(--accent); } .b-info::before { background: #3A6FB5; }
.up { color: var(--ok); } .down { color: var(--bad); }
.spark { display: inline-flex; align-items: flex-end; gap: 1px; height: 18px; vertical-align: middle; }
.spark i { width: 4px; background: var(--faint); border-radius: 1px; min-height: 1px; }
.spark i:last-child { background: var(--accent); }
select.inline { height: 26px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); font-size: 12px; padding: 0 4px; }

/* home */
.home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; min-height: 100vh; }
.home .center { display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.home .inner { width: 100%; max-width: 740px; display: flex; flex-direction: column; gap: 20px; }
.home h1 { margin: 0; font-size: calc(32px * var(--fs)); font-weight: 650; letter-spacing: -0.02em; text-align: center; }
.composer { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.composer textarea { border: none; outline: none; resize: none; background: transparent; font-size: 16px; min-height: 66px; }
.composer .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.composer .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.composer .tags span { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.pills button { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); }
.pills button:hover { border-color: var(--faint); }
.rail { background: var(--panel); border-left: 1px solid var(--line); padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.rail h2 { margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.todo { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.todo input { width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--accent); }
.todo span { font-size: 13px; font-weight: 500; line-height: 1.4; }
.todo.done span { color: var(--faint); text-decoration: line-through; }
.todo a { font-size: 12px; font-weight: 600; }
.vanrow { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.vanrow span:nth-child(2) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* agent */
.thread { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding: 24px 28px 40px; }
.bubble { align-self: flex-end; max-width: 620px; background: var(--btn); color: var(--btn-ink); border-radius: 14px 14px 4px 14px; padding: 11px 15px; font-size: 14px; white-space: pre-wrap; }
.steps { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 7px; }
.steps .top { font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.step { display: grid; grid-template-columns: 18px 128px minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13px; }
.step .src { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:root[data-mode="dark"] .step .src { color: #F08A84; }
.step .txt { color: var(--ink-2); }
.spin { width: 13px; height: 13px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 999px; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.answer { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); overflow-wrap: anywhere; }
.answer h1, .answer h2, .answer h3 { font-size: 15px; margin: 14px 0 6px; color: var(--ink); }
.answer p { margin: 0 0 10px; }
.answer ul, .answer ol { margin: 0 0 10px; padding-left: 22px; }
.answer table { border-collapse: collapse; font-size: 13px; margin: 6px 0 12px; display: block; overflow-x: auto; }
.answer th, .answer td { border: 1px solid var(--line); padding: 5px 10px; text-align: left; }
.answer th { background: var(--bg); font-weight: 500; }
.answer code { background: var(--line-2); padding: 1px 5px; border-radius: 4px; font-size: 0.9em; }
.draft { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.draft .k { font-size: 11px; color: var(--muted); font-weight: 600; }
.draft h3 { margin: 0; font-size: 14px; }
.draft .body { font-size: 13.5px; color: var(--ink-2); white-space: pre-wrap; line-height: 1.55; }
.draft textarea { width: 100%; min-height: 160px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: var(--bg); }
.draft .acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.applied { font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.follow { display: flex; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; }
.follow input { flex: 1; min-width: 0; border: none; outline: none; background: transparent; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--bg); border-left: 1px solid var(--line); z-index: 20; display: flex; flex-direction: column; }
.drawer .dh { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.drawer .dh h2 { margin: 0; font-size: 14px; }
.drawer .thread { padding: 16px; gap: 12px; overflow-y: auto; flex: 1; max-width: none; margin: 0; }

dialog { border: 1px solid var(--line); border-radius: 14px; padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100vh - 40px); background: var(--panel); color: var(--ink); box-shadow: 0 12px 32px rgba(0,0,0,.10); }
dialog::backdrop { background: rgba(20, 18, 16, 0.35); }
dialog .dhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 16px 18px 10px; border-bottom: 1px solid var(--line-2); position: sticky; top: 0; background: var(--panel); }
dialog h2 { margin: 0; font-size: 18px; }
dialog .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
dialog .dbody { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 16px; }
.kv div { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.kv dt { font-size: 11.5px; color: var(--muted); }
.kv dd { margin: 0; font-size: 13.5px; font-weight: 500; overflow-wrap: anywhere; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 110px; padding-top: 8px; }
.bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; height: 100%; justify-content: flex-end; }
.bars i { width: 100%; background: var(--faint); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars div.ly i { background: var(--line); }
.bars div.cur i { background: var(--accent); }
.bars span { font-size: 10px; color: var(--muted); }
.notes textarea { width: 100%; min-height: 60px; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; background: var(--bg); resize: vertical; }
.note { font-size: 13px; padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.note .muted { font-size: 11.5px; }
.toast { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 50; max-width: calc(100vw - 32px); }
.form { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-end; padding: 12px; }
.form label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); }
.form input, .form select { height: 32px; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; background: var(--bg); min-width: 0; }
.chart { display: flex; align-items: flex-end; gap: 6px; height: 120px; padding: 12px; }
.chart div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 4px; height: 100%; min-width: 0; }
.chart i { width: 100%; max-width: 28px; background: var(--accent); opacity: .8; border-radius: 3px 3px 0 0; }
.chart span { font-size: 10px; color: var(--muted); white-space: nowrap; }
.sec-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 12px 0; flex-wrap: wrap; }
.sec-h h2 { margin: 0; font-size: 14px; }
.summary { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 12px; font-size: 13px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.summary b { color: var(--ink); }
.trendcards { display: flex; flex-direction: column; }
.trendcards .card { border: none; border-radius: 0; border-bottom: 1px solid var(--line-2); }
.trendcards .card:last-child { border-bottom: none; }
.trend { padding: 14px 4px; display: flex; flex-direction: column; gap: 6px; }
.trend p { max-width: 90ch; }
.trend .t { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.trend h3 { margin: 0; font-size: 14px; line-height: 1.35; }
.trend p { margin: 0; font-size: 13px; color: var(--ink-2); }
.trend .meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 12px; color: var(--muted); }
.trend .acts { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .home { grid-template-columns: minmax(0, 1fr); }
  .rail { border-left: none; border-top: 1px solid var(--line); }
}
@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .topbar { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
  .topbar img { width: 84px; display: block; }
  .side { display: none; position: fixed; inset: 53px 0 0 0; height: auto; z-index: 15; border-right: none; }
  .side.open { display: flex; }
  .side .logo { display: none; }
  .page { padding: 16px 16px 32px; }
  .thread { padding: 16px; }
  .home .center { padding: 28px 16px; }
  .home h1 { font-size: 26px; }
  .step { grid-template-columns: 18px minmax(0, 1fr); }
  .step .src { display: none; }
  .toolbar input[type="search"] { min-width: 0; flex: 1 1 100%; }
  table.data .minor { display: none; }
  .grid2 { grid-template-columns: minmax(0, 1fr); }
  .trendcards { grid-template-columns: minmax(0, 1fr); }
}

/* record panel: Linear-style. Content and activity left, properties right, hairlines, no boxes. */
dialog.panel { margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(960px, 100vw); max-width: 100vw; border-radius: 0; border: none; border-left: 1px solid var(--line); padding: 0; box-shadow: none; background: var(--panel); display: flex; flex-direction: column; }
dialog.panel.full { width: 100vw; }
dialog.panel::backdrop { background: rgba(20, 18, 16, 0.12); }
.phead { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 48px; padding: 0 12px 0 20px; border-bottom: 1px solid var(--line); flex: none; }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.crumbs span:last-child { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { color: var(--faint); }
.phead .acts { display: flex; gap: 2px; flex: none; }
.ibtn { width: 30px; height: 30px; display: inline-grid; place-items: center; border: none; border-radius: 6px; background: none; color: var(--muted); font-size: 15px; }
.ibtn:hover { background: var(--line-2); color: var(--ink); }
.ibtn[aria-pressed="true"] { color: var(--ink); }
.pbody { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) 272px; align-items: start; align-content: start; }
.ptitle { grid-column: 1 / -1; padding: 24px 28px 4px; display: flex; flex-direction: column; gap: 4px; }
dialog.panel.full .ptitle { padding: 32px max(28px, calc((100vw - 272px - 900px) / 2)) 4px; }
.pmain { padding: 16px 28px 48px; display: flex; flex-direction: column; gap: 22px; min-width: 0; }
dialog.panel.full .pmain { padding: 16px max(28px, calc((100vw - 272px - 900px) / 2)) 56px; }
.ptitle h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.25; outline: none; }
.psub { font-size: 13px; color: var(--muted); }
.pside { position: sticky; top: 0; border-left: 1px solid var(--line); padding: 16px 18px 32px; display: flex; flex-direction: column; gap: 20px; min-height: 100%; }
.props { margin: 0; display: flex; flex-direction: column; }
.props div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding: 6px 0; font-size: 13px; align-items: baseline; }
.props dt { color: var(--muted); }
.props dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.lchip { border: 1px solid var(--line); background: var(--panel); border-radius: 5px; padding: 1px 7px; font-size: 12.5px; color: var(--ink); text-align: left; }
.lchip:hover { border-color: var(--faint); }
.suggest { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.suggest .lbl { font-size: 12px; color: var(--muted); }
.suggest p { margin: 0; color: var(--ink); font-weight: 500; line-height: 1.4; }
.suggest p.why { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.suggest .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.suggest details summary { font-size: 12.5px; color: var(--muted); cursor: pointer; }
.suggest pre { white-space: pre-wrap; font: 12px/1.5 inherit; font-family: inherit; color: var(--ink-2); margin: 8px 0 0; padding: 8px 0; border-top: 1px solid var(--line-2); }
.suggest .ok { color: var(--ok); font-size: 12.5px; }
.metrics { display: flex; flex-wrap: wrap; gap: 8px 36px; }
.metrics div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.metrics > div > span { font-size: 12px; color: var(--muted); }
.metrics b { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.metrics small { font-size: 12px; color: var(--muted); }
.psec { display: flex; flex-direction: column; gap: 8px; }
.psec > h3 { margin: 0; font-size: 13px; font-weight: 600; color: var(--ink); padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.desc { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-2); max-width: 68ch; }
.cap { margin: 0; font-size: 12px; color: var(--muted); }
.empty { margin: 0; font-size: 13px; color: var(--muted); }
.mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.mini th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 4px 8px 6px 0; white-space: nowrap; }
.mini td { padding: 6px 8px 6px 0; border-top: 1px solid var(--line-2); vertical-align: middle; font-variant-numeric: tabular-nums; }
.mini th.num, .mini td.num { text-align: right; padding-right: 0; padding-left: 8px; }
.mini tbody tr:hover td { background: var(--bg); }
.mini .rowlink { border: none; background: none; padding: 0; color: var(--ink); font-weight: 500; text-align: left; }
.mini .rowlink:hover { text-decoration: underline; }
.mini img.li { width: 28px; height: 28px; object-fit: cover; border-radius: 4px; vertical-align: middle; margin-right: 8px; }
.vbars { display: flex; align-items: flex-end; gap: 6px; height: 118px; }
.vbars div { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; height: 100%; min-width: 0; }
.vbars i { width: 100%; max-width: 36px; background: var(--line); border-radius: 2px 2px 0 0; min-height: 2px; }
.vbars div.on i { background: var(--ink-2); }
.vbars b { font-size: 10.5px; font-weight: 500; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.vbars span { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.prod { display: flex; gap: 12px; align-items: center; font-size: 13px; }
.prod img { width: 56px; height: 56px; object-fit: cover; border-radius: 6px; background: var(--line-2); flex: none; }
.prod b { display: block; font-weight: 500; }
.prod span { color: var(--muted); }
.artifact { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--bg); }
.email { max-width: 600px; margin: 0 auto; background: #fff; color: #1b1a19; font-size: 14px; line-height: 1.55; }
.email .ehead { padding: 10px 16px; border-bottom: 1px solid #eee; font-size: 12.5px; color: #3d3a37; display: flex; flex-direction: column; gap: 2px; }
.email .ehead span { display: inline-block; width: 64px; color: #8a847d; }
.email .brand { text-align: center; padding: 16px 0 8px; }
.email .brand img { width: 92px; }
.email .hero { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; display: block; background: #f3efe9; }
.email .ebody { padding: 16px 24px 20px; }
.email .ebody h2 { margin: 0 0 8px; font-size: 20px; letter-spacing: 0; }
.email .ebody p { margin: 0 0 10px; }
.email .cta { display: inline-block; background: #D62F2A; color: #fff !important; padding: 9px 16px; border-radius: 4px; font-weight: 600; text-decoration: none; }
.email .foot { padding: 12px 24px; font-size: 11px; color: #9a948d; border-top: 1px solid #eee; text-align: center; }
.igpost { max-width: 360px; margin: 0 auto; background: #fff; color: #1b1a19; font-size: 13px; }
.igpost .top { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 600; }
.igpost .top img { width: 26px; height: 26px; border-radius: 999px; object-fit: contain; border: 1px solid #eee; background: #fff; }
.igpost .pic { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: #f3efe9; }
.igpost .cap { padding: 10px 12px 14px; line-height: 1.45; display: flex; flex-direction: column; gap: 4px; }
.igpost .comments { display: flex; flex-direction: column; gap: 2px; color: #3d3a37; }
.quote { margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.stars { color: #B7791F; letter-spacing: 1px; font-size: 13px; margin-bottom: 4px; }
.stars span { color: var(--line); }
.routeline { display: flex; align-items: flex-start; overflow-x: auto; padding: 4px 0; }
.routeline .stop { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 84px; font-size: 12.5px; text-align: center; color: var(--ink-2); }
.routeline .stop small { color: var(--muted); font-size: 11.5px; }
.routeline .dot { width: 9px; height: 9px; border-radius: 999px; background: var(--ink-2); margin: 3px 0 4px; }
.routeline .dot.base { background: var(--panel); border: 2px solid var(--ink-2); }
.routeline .seg { flex: 1; min-width: 20px; height: 1px; background: var(--line); margin-top: 7px; }
.activity ol { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.activity li { position: relative; font-size: 13px; color: var(--ink-2); }
.activity li::before { content: ""; position: absolute; left: -18px; top: 6px; width: 7px; height: 7px; border-radius: 999px; background: var(--panel); border: 1px solid var(--faint); }
.activity .who { color: var(--ink); font-weight: 500; }
.activity .t { color: var(--faint); }
.activity .cbody { margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); white-space: pre-wrap; }
.comment { display: flex; gap: 8px; align-items: flex-end; }
.comment textarea { flex: 1; min-height: 36px; border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; font-size: 13px; background: var(--panel); resize: vertical; }
.card .rowlink { border: none; background: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.card .rowlink:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .pbody { display: flex; flex-direction: column; } .pbody > * { flex: none; }
  .ptitle { padding: 18px 16px 4px; }
  .pside { position: static; border-left: none; border-bottom: 1px solid var(--line); padding: 10px 16px 14px; gap: 14px; min-height: 0; order: 1; }
  .pmain { order: 2; }
  .pmain { padding: 16px 16px 40px; }
  .phead { padding: 0 6px 0 16px; }
  dialog.panel [data-expand] { display: none; }
}
.mini th.num:not(:last-child), .mini td.num:not(:last-child) { padding-right: 20px; }
.phone-only { display: none; } @media (max-width: 820px) { .phone-only { display: block; font-size: 12px; font-weight: 400; line-height: 1.2; } }
