:root {
  --accent: #7A2E3B; --accent-ink: #5A1F2A; --accent-soft: #F3EEEF;
  --bg: #F7F7F5; --panel: #FFFFFF; --panel-2: #FAFAF8; --ink: #18181B; --ink-2: #3F3F46; --muted: #6B6B70; --faint: #8A8A90;
  --line: #E7E5E1; --line-2: #F1EFEB; --field: #DEDBD5; --btn: #18181B; --btn-ink: #FFFFFF;
  --good-bg: #EEF5F0; --good: #2F6B4F; --warn-bg: #FBF1E6; --warn: #8A4B12; --bad-bg: #FBECEC; --bad: #9B2C2C; --info-bg: #EEF2F7; --info: #244A73; --gray-bg: #F3F2EF;
  --row: 10px; --font: Geist, system-ui, -apple-system, sans-serif; --mono: 'Geist Mono', ui-monospace, monospace;
  color-scheme: light;
}
:root[data-mode="dark"] {
  --accent-soft: #3A2328; --bg: #121214; --panel: #1A1A1D; --panel-2: #202024; --ink: #F4F4F5; --ink-2: #D4D4D8; --muted: #A1A1AA; --faint: #8B8B93;
  --line: #2C2C31; --line-2: #26262A; --field: #3A3A40; --btn: #F4F4F5; --btn-ink: #18181B;
  --good-bg: #17291F; --good: #7CC79E; --warn-bg: #2E2215; --warn: #E3A462; --bad-bg: #321A1A; --bad: #F08A8A; --info-bg: #17222F; --info: #8DB4E2; --gray-bg: #26262A;
  color-scheme: dark;
}
:root[data-mode="dark"] .logo img { filter: invert(1) hue-rotate(180deg) brightness(1.2); }
:root[data-density="compact"] { --row: 6px; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; } a:hover { color: var(--accent-ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.muted { color: var(--muted); } .faint { color: var(--faint); }
.right { text-align: right; }
.sr { position: absolute; left: -9999px; }

.shell { min-height: 100vh; display: flex; }
.nav { flex: 0 0 236px; 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 { padding: 4px 8px 16px; display: block; }
.logo img { width: 150px; display: block; }
.nav a.item { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
.nav a.item:hover { background: var(--gray-bg); color: var(--ink); }
.nav a.item.on { background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; }
:root[data-mode="dark"] .nav a.item.on { color: #F2C9D0; }
.nav a.item .count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.nav a.item.on .count { color: inherit; }
.nav .sep { height: 1px; background: var(--line-2); margin: 7px 10px; }
.nav .sources { margin-top: auto; padding: 12px 6px 2px; 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: 12px; color: var(--ink-2); padding: 2px 8px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); white-space: nowrap; }
.dot { width: 6px; height: 6px; border-radius: 999px; background: #2F8A5A; flex: none; }
.dot.warn { background: #C27A2C; }
.topbar { display: none; }
.main { flex: 1; min-width: 0; display: flex; }
.page { flex: 1; min-width: 0; padding: 20px 28px 40px; display: flex; flex-direction: column; gap: 14px; }

h1 { margin: 0; font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
h1 .n { font-family: var(--mono); font-size: 15px; color: var(--faint); font-weight: 400; margin-left: 4px; }
h2 { margin: 0; font-size: 15px; font-weight: 600; }
h3 { margin: 0; font-size: 13px; font-weight: 600; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.head > div:first-child { flex: 1 1 380px; min-width: 0; }
.head .sub { color: var(--muted); font-size: 13px; margin-top: 3px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn { height: 34px; padding: 0 13px; border-radius: 8px; border: 1px solid var(--field); background: var(--panel); font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--ink); }
.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; border-radius: 7px; }
.btn.ghost { border-color: transparent; background: transparent; color: var(--accent); padding: 0 6px; }
.btn[disabled] { opacity: .5; cursor: default; }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search { height: 34px; flex: 1 1 260px; max-width: 400px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--field); background: var(--panel); font-size: 13px; }
select.filter { height: 34px; padding: 0 28px 0 10px; border-radius: 8px; border: 1px solid var(--field); background: var(--panel); font-size: 13px; max-width: 220px; }
select.filter.set { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }
:root[data-mode="dark"] select.filter.set { color: #F2C9D0; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.card.pad { padding: 14px 16px; }
.tablewrap { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 500; background: var(--panel-2); padding: 9px 12px; white-space: nowrap; position: sticky; top: 0; }
th button { all: unset; cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
th button:hover { color: var(--ink); }
th.sorted { color: var(--ink); }
td { padding: var(--row) 12px; border-top: 1px solid var(--line-2); vertical-align: middle; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--panel-2); }
tr.hl td { background: #FFF7D6 !important; }
:root[data-mode="dark"] tr.hl td { background: #3A3216 !important; }
td .two { display: flex; flex-direction: column; } td .two span:last-child { font-size: 12px; color: var(--faint); }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.pill.good::before { background: var(--good); } .pill.warn::before { background: #C8862A; } .pill.bad::before { background: var(--bad); } .pill.info::before { background: var(--info); }
.pill.brand { color: var(--ink-2); } .pill.brand::before { display: none; }
.chips .pill:not(:last-child)::after { content: ','; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.loading { padding: 40px; text-align: center; color: var(--faint); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; align-items: start; }
.grid-even { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; align-items: start; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 6px 10px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { all: unset; cursor: pointer; padding: 9px 12px; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--accent); font-weight: 600; }
.note { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.list-plain > div { padding: 9px 0; border-bottom: 1px solid var(--line-2); }

/* Home */
.home { flex: 1; min-width: 0; display: flex; }
.home-center { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 40px 28px; }
.home-inner { width: 100%; max-width: 760px; display: flex; flex-direction: column; gap: 22px; }
.home h1 { font-size: 34px; text-align: center; letter-spacing: -0.02em; }
.askbox { background: var(--panel); border: 1px solid var(--field); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(24,24,27,.04), 0 8px 24px rgba(24,24,27,.05); }
.askbox textarea { border: none; outline: none; resize: none; font-size: 16px; background: transparent; min-height: 66px; }
.askbox .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tag { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--gray-bg); color: var(--ink-2); }
.prompts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.prompt { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.prompt:hover { border-color: var(--faint); color: var(--ink); }
.aside { flex: 0 0 320px; border-left: 1px solid var(--line); background: var(--panel); padding: 20px; display: flex; flex-direction: column; gap: 22px; min-height: 100vh; }
.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 .t { font-size: 13px; font-weight: 500; line-height: 1.4; }
.todo.done .t { text-decoration: line-through; color: var(--faint); }
.todo a { font-size: 12px; font-weight: 600; }
.arrival { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; padding: 7px 0; border-bottom: 1px solid var(--line-2); }
.arrival .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Agent thread */
.thread { width: 100%; max-width: 860px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; padding: 24px 0 8px; }
.bubble { align-self: flex-end; max-width: 560px; background: var(--btn); color: var(--btn-ink); border-radius: 14px 14px 4px 14px; padding: 11px 15px; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.steps { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 13px 16px; display: flex; flex-direction: column; gap: 8px; }
.steps .top { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.steps .top b { color: var(--ink); }
.step { display: grid; grid-template-columns: 18px 128px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; }
.step .src { font-family: var(--mono); font-size: 12px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.step .meta { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.step.wait { opacity: .45; }
.spin { width: 14px; height: 14px; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.answer { font-size: 15px; line-height: 1.6; color: var(--ink); }
.answer p { margin: 0 0 10px; } .answer ul, .answer ol { margin: 0 0 10px; padding-left: 22px; } .answer table { margin: 6px 0 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; }
.answer code { font-family: var(--mono); font-size: 12px; background: var(--gray-bg); padding: 1px 5px; border-radius: 4px; }
.answer h3, .answer h4 { margin: 12px 0 6px; font-size: 14px; }
.draft { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.draft .body { font-size: 14px; line-height: 1.6; white-space: pre-wrap; }
.draft textarea { width: 100%; min-height: 140px; border: 1px solid var(--field); border-radius: 8px; padding: 10px; background: var(--panel); font-size: 14px; line-height: 1.5; }
.applied { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.follow { background: var(--panel); border: 1px solid var(--field); border-radius: 14px; padding: 10px 12px; display: flex; gap: 10px; align-items: center; }
.follow input { flex: 1; border: none; outline: none; font-size: 14px; background: transparent; min-width: 0; }
.chatpage { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 0 28px 20px; }
.chatpage .composer { width: 100%; max-width: 860px; margin: 0 auto; position: sticky; bottom: 16px; }

/* Drawer + dialogs */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--bg); border-left: 1px solid var(--line); box-shadow: -12px 0 32px rgba(0,0,0,.08); z-index: 30; display: flex; flex-direction: column; }
.drawer .dh { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.drawer .db { flex: 1; overflow-y: auto; padding: 0 18px; }
.drawer .thread { padding-top: 16px; }
.drawer .df { padding: 12px 18px 16px; }
.scrim { position: fixed; inset: 0; background: rgba(15,15,18,.35); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.dialog { background: var(--panel); border-radius: 14px; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.dialog label { display: flex; flex-direction: column; gap: 5px; font-size: 13px; color: var(--ink-2); }
.dialog select, .dialog input[type=text], .dialog input[type=number], .dialog textarea { height: 36px; border: 1px solid var(--field); border-radius: 8px; padding: 0 10px; background: var(--panel); }
.dialog textarea { height: 90px; padding: 8px 10px; }
.check { flex-direction: row !important; align-items: flex-start; gap: 8px !important; }
.check input { margin-top: 2px; accent-color: var(--accent); }
.err { color: var(--bad); font-size: 13px; }
.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: 60; box-shadow: 0 8px 24px rgba(0,0,0,.2); max-width: calc(100vw - 32px); }
.askmini { display: flex; gap: 8px; align-items: center; background: var(--panel); border: 1px solid var(--field); border-radius: 10px; padding: 3px 4px 3px 12px; flex: 0 1 380px; min-width: 220px; }
.askmini input { border: none; outline: none; background: transparent; flex: 1; min-width: 0; height: 28px; font-size: 13px; }

/* Vault flow */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 10px; align-items: stretch; }
.flow .box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: var(--panel-2); font-size: 12px; line-height: 1.5; color: var(--ink-2); }
.flow .box b { display: block; font-size: 13px; color: var(--ink); margin-bottom: 4px; }
.flow .box.vault { border-color: var(--accent); background: var(--accent-soft); }
.flow .arrow { align-self: center; color: var(--faint); font-size: 18px; }
.match { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.match > div { padding: 2px 0; }
.diff { background: var(--warn-bg); color: var(--warn); border-radius: 4px; padding: 0 3px; }
.bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; min-width: 60px; }
.bar > i { display: block; height: 100%; background: var(--accent); }
svg text { fill: var(--muted); font-family: var(--font); }

@media (max-width: 1180px) { .aside { display: none; } .grid2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .nav { position: fixed; z-index: 50; left: 0; top: 0; bottom: 0; width: 260px; transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; height: auto; }
  .nav.open { transform: none; visibility: visible; box-shadow: 12px 0 32px rgba(0,0,0,.15); }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
  .topbar img { height: 24px; }
  .page { padding: 16px 16px 32px; }
  .home-center { padding: 28px 16px; align-items: flex-start; }
  .home h1 { font-size: 26px; }
  .chatpage { padding: 0 16px 16px; }
  .flow { grid-template-columns: 1fr; } .flow .arrow { transform: rotate(90deg); justify-self: center; }
  .step { grid-template-columns: 18px minmax(0, 1fr) auto; } .step .src { display: none; }
  .askmini { flex-basis: 100%; }
  .match { grid-template-columns: 1fr; }
}
@media (min-width: 1181px) { .main:has(.drawer) > .page { margin-right: min(520px, 40vw); } }

/* detail view: Linear-style. Content and activity on the left, properties on the right. */
.panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(1000px, 66vw); background: var(--panel); border-left: 1px solid var(--line); box-shadow: -8px 0 24px rgba(15,15,18,.08); z-index: 35; overflow-y: auto; }
.panel .loading { padding: 40px; color: var(--muted); }
.ph { position: sticky; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; height: 44px; padding: 0 12px 0 24px; background: var(--panel); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); min-width: 0; overflow: hidden; white-space: nowrap; }
.crumbs .here { color: var(--ink); overflow: hidden; text-overflow: ellipsis; }
.icons { display: flex; gap: 2px; flex: none; }
.ibtn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; background: none; border-radius: 6px; color: var(--muted); cursor: pointer; }
.ibtn:hover { background: var(--panel-2); color: var(--ink); }
.dv { display: grid; grid-template-columns: minmax(0, 1fr) 272px; min-height: calc(100% - 44px); }
.dv-main { padding: 24px 28px 48px; min-width: 0; }
.dv-side { border-left: 1px solid var(--line); padding: 20px; font-size: 13px; }
.dv-title h2, .dv-title h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 0 0 4px; outline: none; }
.dv-title .sub { font-size: 13px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lead { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin: 10px 0 0; }
.stats { display: flex; gap: 40px; flex-wrap: wrap; margin: 22px 0 4px; }
.stats > div { display: flex; flex-direction: column; gap: 2px; }
.stats span { font-size: 12px; color: var(--muted); }
.stats b { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stats small { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dsec { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.dsec h3 { font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.none { font-size: 13px; color: var(--faint); margin: 0; }
.tablewrap.flat { border: 0; border-radius: 0; background: none; }
.tablewrap.flat th { background: none; border-bottom: 1px solid var(--line); padding: 6px 10px 6px 0; }
.tablewrap.flat td { padding: 7px 10px 7px 0; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; }
.tablewrap.flat + .tablewrap.flat { margin-top: 14px; }
.tablewrap.flat tr.total td { font-weight: 600; border-bottom: 0; }
.props { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 10px 10px; margin: 0; }
.props dt { color: var(--muted); padding-top: 1px; } .props dd { margin: 0; min-width: 0; overflow-wrap: anywhere; color: var(--ink); }
select.inline, input.inline { font: inherit; font-size: 13px; color: var(--ink); background: none; border: 1px solid transparent; border-radius: 6px; padding: 2px 4px; margin: -3px 0 0 -5px; }
select.inline:hover, input.inline:hover, select.inline:focus, input.inline:focus { border-color: var(--field); }
.rchip { display: inline-block; font-size: 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; margin: 0 4px 4px 0; }
.rchip:hover { border-color: var(--faint); color: var(--ink); }
.suggestion { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); display: grid; gap: 4px; line-height: 1.45; }
.suggestion .btn { justify-self: start; margin-top: 8px; }
.chart { position: relative; padding: 18px 0 0; }
.chart .max { position: absolute; top: 0; left: 0; font-size: 11px; color: var(--muted); }
.chart .cols { display: flex; align-items: flex-end; gap: 4px; height: 96px; border-bottom: 1px solid var(--line); }
.chart .col { flex: 1 1 0; max-width: 40px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; min-width: 0; position: relative; }
.chart .col i { display: block; width: 100%; border-radius: 2px 2px 0 0; }
.chart .col span { position: absolute; top: 100%; margin-top: 4px; font-size: 10px; color: var(--muted); white-space: nowrap; }
.chart { margin-bottom: 26px; }
.activity { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--ink-2); }
.activity li { position: relative; display: flex; flex-wrap: wrap; gap: 4px; align-items: baseline; padding: 0 0 12px 18px; }
.activity li::before { content: ''; position: absolute; left: 3px; top: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--field); }
.activity li:not(:last-child)::after { content: ''; position: absolute; left: 5.5px; top: 14px; bottom: 0; width: 1px; background: var(--line-2); }
.activity .who { color: var(--ink); font-weight: 500; }
.activity .when { color: var(--faint); margin-left: 4px; font-size: 12px; }
.activity .when::before { content: '· '; }
.activity li.planned { color: var(--faint); } .activity li.planned .who { color: var(--muted); }
.activity li.comment .comment { flex-basis: 100%; order: 3; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); }
.commentbox { display: flex; gap: 8px; margin-top: 6px; }
.commentbox input { flex: 1; height: 32px; border: 1px solid var(--field); border-radius: 8px; padding: 0 10px; font: inherit; font-size: 13px; background: var(--panel); color: var(--ink); }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.checks li { display: flex; gap: 8px; align-items: center; } .checks li.todo-line { color: var(--muted); padding-left: 24px; }
.email { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; max-width: 600px; }
.email-h { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 13px; display: grid; gap: 2px; }
.email .hero { display: block; width: 100%; height: 200px; object-fit: cover; }
.email-b { padding: 18px 28px 22px; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.6; color: #2b2522; background: #FFFDF9; }
.email-b h4 { font-size: 24px; margin: 14px 0 8px; font-weight: 600; color: #2b2522; }
.email-b .cta { display: inline-block; background: #7A2E3B; color: #fff; padding: 10px 22px; border-radius: 4px; font-family: var(--font); font-size: 14px; font-weight: 600; }
.phonemock { max-width: 320px; border: 1px solid var(--line); border-radius: 20px; padding: 20px 16px; }
.sms { background: var(--panel-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 10px 12px; font-size: 14px; line-height: 1.45; }
.chat { display: flex; flex-direction: column; gap: 8px; }
.chat .msg { max-width: 75%; background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px 12px 12px 4px; padding: 8px 12px; font-size: 13px; display: grid; gap: 2px; }
.chat .msg.out { align-self: flex-end; border-radius: 12px 12px 4px 12px; }
.chat .msg .mono { font-size: 10px; }
tr.sel td { background: var(--panel-2) !important; box-shadow: inset 2px 0 0 var(--accent); }
.fullview { max-width: 1200px; }
.fullview .ph { position: static; background: none; padding: 0; }
.fullview .dv { border-top: 1px solid var(--line); min-height: 0; }
.fullview .dv-main { padding-left: 0; }
@media (max-width: 860px) {
  .panel { width: 100vw; }
  .ph { padding: 0 6px 0 16px; }
  .dv { grid-template-columns: minmax(0, 1fr); }
  .dv-main { padding: 18px 16px 40px; }
  .dv-side { border-left: 0; border-top: 1px solid var(--line); padding: 16px; order: 2; }
  .stats { gap: 24px; }
  .email-b { padding: 14px 16px; }
}
.hint { font-size: 12px; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); } .legend > span { display: inline-flex; align-items: center; gap: 6px; }
.prompt svg { color: var(--muted); }
