/* Argus app — white/paper intelligence reader. Lustria headings, Inter Tight UI, one saturated blue. */
:root {
  --paper: #FBFAF7;
  --paper-2: #F5F4EF;
  --surface: #FFFFFF;
  --ink: #0E0F11;
  --ink-2: #3C3F45;
  --muted: #6E7178;
  --faint: #9A9DA3;
  --line: #E8E6E1;
  --line-2: #F1EFEB;
  --blue: #2189F5;
  --blue-d: #1576DE;
  --blue-ink: #0B6BD3;
  --blue-wash: #EAF3FE;
  --pos: #15803D;
  --pos-wash: #E9F6EE;
  --neg: #DC2626;
  --neg-wash: #FDEDED;
  --amber: #B45309;
  --amber-wash: #FDF3E4;
  --sans: 'Inter Tight', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Lustria', Georgia, 'Times New Roman', serif;
  --pop: 0 14px 36px rgba(14, 15, 17, .12), 0 2px 6px rgba(14, 15, 17, .06), 0 0 0 1px rgba(14, 15, 17, .07);
  --side-w: 232px;
  --top-h: 56px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 14px/1.45 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
svg { flex: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
::selection { background: #CFE4FD; }
.serif { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd, .kbd { display: inline-flex; align-items: center; justify-content: center; min-width: 19px; height: 19px; padding: 0 5px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 3px; background: var(--surface); font: 500 11px/1 var(--sans); color: var(--muted); }

/* ---------- shell ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); height: 100vh; height: 100dvh; }
.side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--paper-2); }
.side-top { display: flex; align-items: center; gap: 6px; padding: 12px 12px 8px; }
.ws { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 6px 8px 6px 6px; border-radius: 4px; text-align: left; }
.ws:hover, .ws[aria-expanded="true"] { background: rgba(14, 15, 17, .045); }
.ws .mk { width: 32px; height: 32px; border-radius: 3px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.ws .mk svg { width: 20px; height: 20px; }
.ws .wn { min-width: 0; flex: 1; }
.ws .wn b { display: block; font-weight: 600; font-size: 14px; letter-spacing: -.01em; }
.ws .wn span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws .chev { color: var(--faint); }
.ibtn.side-close { display: none; }
.nav { flex: 1; overflow-y: auto; padding: 6px 10px 12px; scrollbar-width: thin; }
.nav .grp { margin: 14px 8px 6px; font-size: 12px; color: var(--faint); font-weight: 500; }
.nav .grp:first-child { margin-top: 4px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 8px; border-radius: 3px; color: var(--ink-2); font-weight: 500; }
.nav a svg { width: 17px; height: 17px; color: var(--muted); }
.nav a:hover { background: rgba(14, 15, 17, .045); color: var(--ink); }
.nav a.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.nav a.on svg { color: var(--blue); }
.nav a .ct { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.nav a .ct.hot { min-width: 20px; height: 18px; padding: 0 6px; border-radius: 3px; background: var(--blue); color: #fff; font-weight: 600; display: inline-grid; place-items: center; }
.side-foot { padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.watch { display: flex; align-items: center; gap: 8px; padding: 4px 8px 10px; font-size: 12px; color: var(--muted); }
.watch i { width: 7px; height: 7px; border-radius: 50%; background: #22A35A; box-shadow: 0 0 0 3px rgba(34, 163, 90, .16); flex: none; }
.me { width: 100%; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 4px; text-align: left; }
.me:hover, .me[aria-expanded="true"] { background: rgba(14, 15, 17, .045); }
.me .who { min-width: 0; flex: 1; }
.me .who b { display: block; font-weight: 600; font-size: 13.5px; }
.me .who span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ariadne { position: fixed; left: 14px; bottom: 14px; z-index: 50; font: 500 12.5px/1 var(--sans); padding: 7px 11px; border-radius: 999px; background: rgba(20, 22, 26, .88); color: #fff; letter-spacing: .01em; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14); opacity: .92; }
.ariadne b { font-weight: 600; color: #ff8a3d; }
.ariadne.in-side { position: static; display: table; margin: 10px auto 0; }
.ariadne.in-menu { position: static; display: table; margin: 8px auto 4px; }

.av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line-2); display: inline-grid; place-items: center; font-size: 11.5px; font-weight: 600; color: var(--ink-2); overflow: hidden; }
.av.s { width: 22px; height: 22px; font-size: 9.5px; }
.av.l { width: 40px; height: 40px; font-size: 14px; }
.av-stack { display: inline-flex; }
.av-stack .av { box-shadow: 0 0 0 2px var(--surface); }
.av-stack .av + .av { margin-left: -7px; }

.main { min-width: 0; min-height: 0; display: flex; flex-direction: column; }
.top { height: var(--top-h); flex: none; display: flex; align-items: center; gap: 12px; padding: 0 20px 0 24px; border-bottom: 1px solid var(--line); background: var(--paper); }
.ibtn.menu-btn { display: none; }
.crumbs { min-width: 0; flex: 1; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.crumbs a:hover { color: var(--ink); }
.crumbs .sep { color: var(--faint); }
.crumbs .cur { color: var(--ink); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
.top-r { display: flex; align-items: center; gap: 6px; }
.search { display: flex; align-items: center; gap: 8px; width: 300px; height: 34px; padding: 0 6px 0 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--faint); font-size: 13.5px; text-align: left; }
.search:hover { border-color: #D6D3CC; }
.search span { flex: 1; }
.ibtn.search-ic { display: none; }
.me-top { display: none; }
.ibtn { position: relative; width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 3px; color: var(--ink-2); }
.ibtn:hover, .ibtn[aria-expanded="true"] { background: rgba(14, 15, 17, .05); color: var(--ink); }
.ibtn svg { width: 18px; height: 18px; }
.bell .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--paper); }
[data-tip] { position: relative; }
[data-tip]:hover::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; white-space: pre; padding: 5px 8px; border-radius: 3px; background: var(--ink); color: #fff; font: 500 12px/1.2 var(--sans); pointer-events: none; }

.view { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-gutter: stable; }
.view:focus { outline: none; }
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(14, 15, 17, .32); }

/* ---------- page scaffolding ---------- */
.page { max-width: 1360px; margin: 0 auto; padding: 28px 32px 64px; }
.ph { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.ph .tt { min-width: 0; flex: 1; }
.ph h1 { margin: 0; font: 400 32px/1.08 var(--serif); letter-spacing: -.03em; }
.ph p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.ph .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.back:hover { color: var(--ink); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--ink); font-weight: 500; font-size: 13.5px; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { border-color: #D3D0C9; background: #FDFDFC; }
.btn svg { width: 16px; height: 16px; color: var(--muted); }
.btn.pri { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.pri svg { color: #fff; }
.btn.pri:hover { background: var(--blue-d); border-color: var(--blue-d); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: rgba(14, 15, 17, .05); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn.danger { color: var(--neg); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.on svg { color: #fff; }
.link { color: var(--blue-ink); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 2px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; min-width: 0; }
.card-h { display: flex; align-items: center; gap: 10px; padding: 16px 18px 0; }
.card-h h2, .card-h h3 { margin: 0; font: 400 19px/1.2 var(--serif); letter-spacing: -.02em; flex: 1; min-width: 0; }
.card-h .sub { font-size: 12.5px; color: var(--muted); }
.card-b { padding: 14px 18px 18px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.g2e { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt { margin-top: 16px; }
.mt2 { margin-top: 24px; }

/* stat strip: equal cells divided by hairlines (the reference's logo strip) */
.strip { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.strip > div { padding: 16px 20px 18px; border-left: 1px solid var(--line); min-width: 0; }
.strip > div:first-child { border-left: 0; }
.strip .k { font-size: 13px; color: var(--muted); }
.strip .v { margin-top: 6px; font: 400 32px/1 var(--serif); letter-spacing: -.03em; white-space: nowrap; }
.strip .v small { font: 500 13px var(--sans); letter-spacing: 0; color: var(--muted); margin-left: 4px; }
.strip .d { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.strip .d b { font-weight: 600; }

/* tabs + segmented */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button, .tabs a { position: relative; flex: none; height: 38px; padding: 0 12px; color: var(--muted); font-weight: 500; font-size: 13.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.tabs button:hover, .tabs a:hover { color: var(--ink); }
.tabs .on { color: var(--ink); }
.tabs .on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--blue); }
.tabs .ct { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.seg { font: 500 12.5px var(--sans); letter-spacing: 0; display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 3px; background: var(--paper); }
.seg button { height: 26px; padding: 0 10px; border-radius: 2px; font-size: 12.5px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.chip:hover { border-color: #D3D0C9; }
.chip.on { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-ink); }
.chip .tb { width: 14px; height: 14px; border-radius: 2px; }
.chip .tb svg { width: 9px; height: 9px; }

/* type badge: solid colour square + white icon */
.tb { width: 24px; height: 24px; border-radius: 3px; display: inline-grid; place-items: center; color: #fff; flex: none; }
.tb svg { width: 14px; height: 14px; }
.tb.s { width: 18px; height: 18px; }
.tb.s svg { width: 11px; height: 11px; }
.tb.l { width: 30px; height: 30px; }
.tb.l svg { width: 17px; height: 17px; }

.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 2px; font-size: 12px; font-weight: 500; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.pill.blue { background: var(--blue-wash); color: var(--blue-ink); }
.pill.pos { background: var(--pos-wash); color: var(--pos); }
.pill.neg { background: var(--neg-wash); color: var(--neg); }
.pill.amb { background: var(--amber-wash); color: var(--amber); }
.pill.line { background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* forms */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .lbl { font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.field small { color: var(--muted); font-size: 12px; }
.inp, .sel, textarea.inp { width: 100%; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); font-size: 14px; }
textarea.inp { height: auto; min-height: 84px; padding: 9px 10px; resize: vertical; line-height: 1.45; }
.inp:focus, .sel:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(33, 137, 245, .15); }
.sel { appearance: none; padding-right: 30px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E7178' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; }
.sel.sm { height: 30px; font-size: 13px; }
.sw { position: relative; width: 34px; height: 20px; border-radius: 10px; background: #D9D7D1; flex: none; transition: background .18s; }
.sw::after { content: ''; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .18s var(--ease); }
.sw[aria-checked="true"] { background: var(--blue); }
.sw[aria-checked="true"]::after { transform: translateX(14px); }
.check { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13.5px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--blue); margin: 0; }
.row-set { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.row-set:first-child { border-top: 0; }
.row-set b { display: block; font-weight: 500; }
.row-set span { display: block; font-size: 12.5px; color: var(--muted); }

/* tables */
.tw { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.t th { text-align: left; font-weight: 500; font-size: 12.5px; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; z-index: 1; }
.t th.sort { cursor: pointer; user-select: none; }
.t th.sort:hover { color: var(--ink); }
.t th .ar { display: inline-block; margin-left: 4px; color: var(--blue); }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover td { background: #FCFCFA; }
.t .r { text-align: right; }
.t td.wrap { white-space: normal; min-width: 220px; }
.t .main-c b { display: block; font-weight: 500; }
.t .main-c span { display: block; font-size: 12px; color: var(--muted); max-width: 320px; overflow: hidden; text-overflow: ellipsis; }
.t tr.you td { background: var(--blue-wash); }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.toolbar .grow { flex: 1; }
.sbox { position: relative; display: flex; align-items: center; }
.sbox svg { position: absolute; left: 9px; width: 15px; height: 15px; color: var(--faint); }
.sbox .inp { height: 30px; padding-left: 30px; width: 220px; font-size: 13px; }
.more-row { display: flex; justify-content: center; padding: 12px; border-top: 1px solid var(--line-2); }

/* ---------- feed (3 pane) ---------- */
.feed { display: grid; grid-template-columns: 392px minmax(0, 1fr); height: 100%; min-height: 0; }
.view.v-feed { overflow: hidden; scrollbar-gutter: auto; }
.fl { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--paper); }
.fl-h { padding: 18px 18px 0; }
.fl-h .t1 { display: flex; align-items: baseline; gap: 10px; }
.fl-h h1 { margin: 0; font: 400 28px/1 var(--serif); letter-spacing: -.03em; }
.fl-h .t1 span { font-size: 12.5px; color: var(--muted); }
.fl-h .tabs { margin: 12px -18px 0; padding: 0 8px; }
.fl-tools { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.fl-tools .grow { flex: 1; }
.dd { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); font-size: 12.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.dd:hover { border-color: #D3D0C9; }
.dd svg { width: 13px; height: 13px; color: var(--faint); }
.dd.on { border-color: var(--blue); color: var(--blue-ink); background: var(--blue-wash); }
.fl-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; }
.fl-day { position: sticky; top: 0; z-index: 2; padding: 10px 18px 6px; font-size: 12px; font-weight: 600; color: var(--muted); background: var(--paper); }
.fi { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; width: 100%; padding: 13px 16px 13px 18px; border-top: 1px solid var(--line-2); text-align: left; }
.fl-day + .fi { border-top: 0; }
.fi:hover { background: rgba(14, 15, 17, .025); }
.fi.on { background: var(--surface); box-shadow: inset 2px 0 0 var(--blue), 0 0 0 1px var(--line); z-index: 1; }
.fi .meta { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.fi .meta .wm { color: var(--ink-2); }
.fi .ti { margin-top: 4px; font-weight: 500; line-height: 1.32; color: var(--ink-2); }
.fi.unread .ti { color: var(--ink); font-weight: 600; }
.fi .su { margin-top: 3px; font-size: 12.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.fi .rt { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.fi .ud { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.fi .st svg { width: 14px; height: 14px; color: #D99A06; }
.fi .imp { color: var(--blue-ink); font-weight: 600; }
.fl-empty { padding: 40px 24px; text-align: center; color: var(--muted); }

.fd { min-width: 0; min-height: 0; overflow-y: auto; background: var(--surface); scrollbar-gutter: stable; }
.fd-in { max-width: 860px; margin: 0 auto; padding: 26px 40px 72px; }
.fd-back { display: none; }
.fd-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.fd-meta .dotsep { color: var(--faint); }
.fd-meta a.src:hover { color: var(--blue-ink); }
.fd h2.big { margin: 14px 0 10px; font: 400 36px/1.1 var(--serif); letter-spacing: -.032em; text-wrap: balance; }
.fd .lede { margin: 0; font-size: 16px; line-height: 1.55; color: var(--ink-2); max-width: 66ch; }
.fd-acts { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 26px; }
.sect { margin-top: 28px; }
.sect > h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font: 400 20px/1.2 var(--serif); letter-spacing: -.02em; }
.sect > h3 .grow { flex: 1; }
.impact { border: 1px solid var(--line); border-radius: 4px; }
.impact .tabs { padding: 0 8px; }
.impact .ib { padding: 16px 18px 18px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.impact .ib .who { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }

.diff { border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.diff-h { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); background: var(--paper); font-size: 12.5px; color: var(--muted); }
.diff-h div { padding: 9px 14px; display: flex; align-items: center; gap: 8px; }
.diff-h div + div { border-left: 1px solid var(--line); }
.diff-h b { color: var(--ink); font-weight: 600; }
.diff-b { display: grid; grid-template-columns: 1fr 1fr; }
.diff-b .col + .col { border-left: 1px solid var(--line); }
.dl { display: grid; grid-template-columns: 32px 1fr; font-size: 13.5px; line-height: 1.5; }
.dl .n { padding: 5px 8px 5px 0; text-align: right; color: var(--faint); font-size: 11.5px; font-variant-numeric: tabular-nums; user-select: none; border-right: 1px solid var(--line-2); }
.dl .x { padding: 5px 14px; white-space: pre-wrap; word-break: break-word; color: var(--ink-2); }
.dl.rm .x { background: #FEF4F4; }
.dl.ad .x { background: #F1FAF4; }
.dl.rm .n, .dl.ad .n { font-weight: 600; }
.dl.rm .n { color: var(--neg); }
.dl.ad .n { color: var(--pos); }
del.d { background: #FBD9D9; color: #8E1B1B; text-decoration: line-through; text-decoration-color: rgba(142, 27, 27, .5); border-radius: 2px; padding: 0 2px; }
ins.d { background: #CFEFDA; color: #11592C; text-decoration: none; border-radius: 2px; padding: 0 2px; }
.diff.uni .diff-b { grid-template-columns: 1fr; }
.diff.uni .diff-h { grid-template-columns: 1fr; }
.diff-foot { display: flex; align-items: center; gap: 12px; padding: 9px 14px; border-top: 1px solid var(--line); background: var(--paper); font-size: 12px; color: var(--muted); }
.diff-foot .grow { flex: 1; }

.act-log { list-style: none; margin: 0; padding: 0; }
.act-log li { position: relative; display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 8px 0; font-size: 13.5px; color: var(--ink-2); }
.act-log li::before { content: ''; position: absolute; left: 10.5px; top: 30px; bottom: -8px; width: 1px; background: var(--line); }
.act-log li:last-child::before { display: none; }
.act-log .ic { width: 22px; height: 22px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; color: var(--muted); }
.act-log .ic svg { width: 12px; height: 12px; }
.act-log time { font-size: 12px; color: var(--faint); white-space: nowrap; }
.rel { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 4px; }
.rel a { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.rel a:first-child { border-top: 0; }
.rel a:hover { background: var(--paper); }
.rel time { font-size: 12px; color: var(--faint); }

/* ---------- competitors ---------- */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cc { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; transition: border-color .15s; }
.cc:hover { border-color: #CFCCC4; }
.cc-h { display: flex; align-items: center; gap: 10px; padding: 18px 18px 0; color: var(--ink); }
.cc-h .grow { flex: 1; }
.cc .dom { padding: 6px 18px 0; font-size: 12.5px; color: var(--muted); }
.cc blockquote { margin: 14px 18px 0; font: 400 17px/1.32 var(--serif); letter-spacing: -.015em; color: var(--ink); min-height: 45px; }
.cc .stats { display: grid; grid-template-columns: repeat(3, 1fr); margin: 16px 0 0; border-top: 1px solid var(--line-2); }
.cc .stats div { padding: 11px 18px 12px; border-left: 1px solid var(--line-2); }
.cc .stats div:first-child { border-left: 0; }
.cc .stats span { display: block; font-size: 11.5px; color: var(--muted); }
.cc .stats b { display: block; margin-top: 3px; font: 400 20px/1 var(--serif); letter-spacing: -.02em; }
.cc .last { display: flex; align-items: center; gap: 9px; padding: 11px 18px 13px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--ink-2); margin-top: auto; }
.cc .last > span:not(.tb) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cc .last time { color: var(--faint); }
.cc.setup blockquote { color: var(--muted); }
.prog { height: 3px; background: var(--line-2); border-radius: 2px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--blue); }

.ch { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.ch .wmbig { color: var(--ink); }
.ch .info { flex: 1; min-width: 260px; }
.ch .info .l2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.ch .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 74px 24px 1fr; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line-2); align-items: start; }
.tl li:first-child { border-top: 0; }
.tl time { font-size: 12.5px; color: var(--muted); padding-top: 3px; font-variant-numeric: tabular-nums; }
.tl a b { display: block; font-weight: 500; line-height: 1.35; }
.tl a span { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.tl a:hover b { color: var(--blue-ink); }
.pos-card .now { font: 400 22px/1.25 var(--serif); letter-spacing: -.02em; }
.pos-card .was { margin-top: 10px; font-size: 13.5px; color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(110, 113, 120, .5); }
.pos-card .since { margin-top: 8px; font-size: 12.5px; color: var(--muted); }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { position: relative; padding: 6px 0 6px 16px; font-size: 13.5px; color: var(--ink-2); }
ul.plain li::before { content: ''; position: absolute; left: 2px; top: 13px; width: 6px; height: 6px; border-radius: 1px; background: var(--c, var(--line)); }
.mini-h { margin: 16px 0 4px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.mini-h:first-child { margin-top: 0; }

/* charts */
.chart { position: relative; width: 100%; }
.chart svg { display: block; overflow: visible; }
.chart text { font: 500 11px var(--sans); fill: var(--faint); }
.chart .gl { stroke: var(--line-2); stroke-width: 1; }
.chart .ax { stroke: var(--line); }
.chart .lbl-end { font: 600 11.5px var(--sans); }
.chart .tip { position: absolute; z-index: 5; pointer-events: none; padding: 7px 9px; border-radius: 3px; background: var(--ink); color: #fff; font-size: 12px; line-height: 1.35; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity .12s; }
.chart .tip.on { opacity: 1; }
.chart .tip b { font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); }
.legend button { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 3px; border-radius: 2px; background: var(--c); }
.legend button.off { opacity: .4; }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.grow-x { transform-origin: left center; animation: growx .8s var(--ease) both; }
.grow-y { transform-box: fill-box; transform-origin: bottom; animation: growy .8s var(--ease) both; }
@keyframes growx { from { transform: scaleX(0); } }
@keyframes growy { from { transform: scaleY(0); } }
.fade-in { animation: fin .5s var(--ease) both; }
@keyframes fin { from { opacity: 0; } }

.hbar { display: grid; grid-template-columns: 120px 1fr 92px; gap: 12px; align-items: center; padding: 8px 0; font-size: 13.5px; }
.hbar .tr { height: 10px; background: var(--line-2); border-radius: 2px; overflow: hidden; position: relative; }
.hbar .tr i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--blue); border-radius: 2px; }
.hbar .tr .q2 { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); opacity: .5; }
.hbar .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.hbar .v small { color: var(--faint); }

/* ---------- battlecards ---------- */
.bc { display: grid; grid-template-columns: 290px minmax(0, 1fr); height: 100%; min-height: 0; }
.view.v-bc { overflow: hidden; scrollbar-gutter: auto; }
.bc-l { border-right: 1px solid var(--line); overflow-y: auto; background: var(--paper); }
.bc-l .hd { padding: 18px 18px 12px; display: flex; align-items: center; gap: 10px; }
.bc-l h1 { margin: 0; flex: 1; font: 400 28px/1 var(--serif); letter-spacing: -.03em; }
.bci { display: block; width: 100%; text-align: left; padding: 14px 18px; border-top: 1px solid var(--line-2); }
.bci:hover { background: rgba(14, 15, 17, .025); }
.bci.on { background: var(--surface); box-shadow: inset 2px 0 0 var(--blue), 0 0 0 1px var(--line); position: relative; }
.bci .r1 { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.bci .r1 .grow { flex: 1; }
.bci .r2 { margin-top: 8px; display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.bci .sg { color: var(--blue-ink); font-weight: 600; }
.bc-new { padding: 14px 18px 22px; border-top: 1px solid var(--line-2); }
.bc-new p { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.bc-r { overflow-y: auto; background: var(--surface); scrollbar-gutter: stable; }
.bc-in { max-width: 900px; margin: 0 auto; padding: 26px 40px 80px; }
.bc-top { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.bc-top .tt { flex: 1; min-width: 240px; }
.bc-top h2 { margin: 12px 0 0; font: 400 34px/1.08 var(--serif); letter-spacing: -.03em; }
.bc-top .m { margin-top: 8px; font-size: 13px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.saved { font-size: 12px; color: var(--pos); opacity: 0; transition: opacity .2s; }
.saved.on { opacity: 1; }
.sugg { margin-top: 22px; border: 1px solid #CFE2FB; background: var(--blue-wash); border-radius: 4px; }
.sugg-h { display: flex; align-items: center; gap: 10px; padding: 12px 16px; font-weight: 600; font-size: 13.5px; color: var(--blue-ink); }
.sugg-h svg { width: 17px; height: 17px; }
.sg-it { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 12px 16px; border-top: 1px solid #D8E8FC; font-size: 14px; color: var(--ink); }
.sg-it .from { display: block; margin-top: 4px; font-size: 12px; color: var(--blue-ink); }
.sg-it .bt { display: flex; gap: 6px; }
.bsec { margin-top: 26px; }
.bsec h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 400 19px/1.2 var(--serif); letter-spacing: -.02em; }
.bsec h3 .grow { flex: 1; }
.bsec h3 .hint { font: 400 12px var(--sans); color: var(--faint); letter-spacing: 0; }
.ed { padding: 8px 10px; margin: 0 -10px; border-radius: 3px; font-size: 15px; line-height: 1.55; color: var(--ink); transition: background .15s, box-shadow .15s; }
.ed:hover { background: var(--paper); }
.ed:focus { outline: none; background: var(--surface); box-shadow: 0 0 0 1px var(--blue), 0 0 0 4px rgba(33, 137, 245, .12); }
.ed.one { font: 400 21px/1.35 var(--serif); letter-spacing: -.015em; }
.blist { list-style: none; margin: 0; padding: 0; }
.blist li { position: relative; display: grid; grid-template-columns: 18px 1fr 26px; align-items: start; gap: 4px; }
.blist li .bul { margin-top: 15px; width: 6px; height: 6px; border-radius: 1px; background: var(--c, var(--blue)); }
.blist li .ed { margin: 0; }
.blist li .rm { opacity: 0; margin-top: 6px; width: 26px; height: 26px; border-radius: 3px; display: grid; place-items: center; color: var(--faint); }
.blist li:hover .rm, .blist li:focus-within .rm { opacity: 1; }
.blist li .rm:hover { background: var(--line-2); color: var(--neg); }
.blist li.new-it .ed { background: #F1FAF4; }
.addit { margin-top: 4px; font-size: 13px; color: var(--blue-ink); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.qa { border: 1px solid var(--line); border-radius: 4px; }
.qa > div { padding: 12px 14px; border-top: 1px solid var(--line-2); }
.qa > div:first-child { border-top: 0; }
.qa .q { font-weight: 600; font-size: 14px; }
.qa .q.ed, .qa .a.ed { margin: 0 -6px; padding: 4px 6px; }
.qa .a { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.recent { border: 1px solid var(--line); border-radius: 4px; }

/* ---------- alerts ---------- */
.rules { display: grid; gap: 0; }
.rule { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line-2); }
.rule:first-child { border-top: 0; }
.rule .nm { font-weight: 600; font-size: 14.5px; }
.rule .ds { margin-top: 4px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.rule .ds b { font-weight: 500; color: var(--ink-2); }
.rule .tys { display: flex; gap: 4px; margin-top: 8px; }
.rule .fr { text-align: right; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.rule .fr b { display: block; font: 400 20px/1 var(--serif); color: var(--ink); }
.rule.off .nm, .rule.off .ds { opacity: .55; }
.deliv { list-style: none; margin: 0; padding: 0; }
.deliv li a { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--line-2); }
.deliv li:first-child a { border-top: 0; }
.deliv li a:hover { background: var(--paper); }
.deliv b { display: block; font-weight: 500; font-size: 13.5px; }
.deliv div span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.slackp { border: 1px solid var(--line); border-radius: 4px; padding: 14px; background: var(--surface); }
.slackp .hd { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.slackp .bot { display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.slackp .bot .mk { width: 34px; height: 34px; border-radius: 4px; background: var(--blue); color: #fff; display: grid; place-items: center; }
.slackp .bot .mk svg { width: 20px; height: 20px; }
.slackp .nm { font-weight: 700; font-size: 13.5px; }
.slackp .nm span { font-weight: 400; color: var(--faint); font-size: 12px; margin-left: 6px; }
.slackp .msg { margin-top: 3px; font-size: 13.5px; line-height: 1.5; }
.slackp .att { margin-top: 8px; padding: 2px 0 2px 12px; border-left: 3px solid var(--c, var(--blue)); font-size: 13px; color: var(--ink-2); }
.slackp .att b { display: block; color: var(--blue-ink); font-weight: 600; }
.slackp .match { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 12px; color: var(--muted); }

/* ---------- digest ---------- */
.dg { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 20px; align-items: start; }
.mail { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.mail-h { padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; display: grid; gap: 4px; }
.mail-h div { display: grid; grid-template-columns: 64px 1fr; gap: 8px; color: var(--ink-2); }
.mail-h div span:first-child { color: var(--faint); }
.mail-h .subj { font-weight: 600; color: var(--ink); }
.mail-body { background: var(--paper-2); padding: 28px 20px 40px; }
.em { max-width: 620px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); }
.em-img { aspect-ratio: 16 / 7; width: 100%; height: auto; object-fit: cover; background: #9CC7EE; }
.em-in { padding: 26px 30px 30px; }
.em-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.em-brand svg { width: 18px; height: 18px; }
.em h2 { margin: 18px 0 6px; font: 400 30px/1.1 var(--serif); letter-spacing: -.03em; }
.em .sub { font-size: 13.5px; color: var(--muted); }
.em-nums { display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px 0 6px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.em-nums div { padding: 12px 14px; border-left: 1px solid var(--line); }
.em-nums div:first-child { border-left: 0; padding-left: 0; }
.em-nums b { display: block; font: 400 26px/1 var(--serif); letter-spacing: -.02em; }
.em-nums span { font-size: 12px; color: var(--muted); }
.em h4 { margin: 24px 0 4px; font: 400 18px/1.2 var(--serif); letter-spacing: -.015em; }
.em-it { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); }
.em-it:first-of-type { border-top: 0; }
.em-it .wmr { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.em-it b { display: block; margin-top: 3px; font-weight: 600; font-size: 14.5px; }
.em-it p { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
.em-it .for { margin-top: 6px; font-size: 13px; color: var(--ink); background: var(--paper); padding: 8px 10px; border-left: 2px solid var(--blue); }
.em-bc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.em-bc div { padding: 10px 12px; border-left: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.em-bc div:nth-child(4n+1) { border-left: 0; }
.em-bc div:nth-child(n+5) { border-top: 1px solid var(--line); }
.em-bc b { display: block; margin-top: 4px; font: 400 20px/1 var(--serif); color: var(--ink); }
.em-cta { display: inline-flex; margin-top: 22px; height: 40px; padding: 0 18px; align-items: center; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; }
.em-foot { padding: 16px 30px 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.past li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-2); font-size: 13.5px; }
.past li:first-child { border-top: 0; }
.past li span { flex: 1; }
.past li em { font-style: normal; color: var(--muted); font-size: 12.5px; }

/* ---------- settings ---------- */
.set { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; }
.set-nav { display: grid; gap: 2px; position: sticky; top: 0; }
.set-nav button { text-align: left; height: 34px; padding: 0 10px; border-radius: 3px; font-weight: 500; color: var(--ink-2); }
.set-nav button:hover { background: rgba(14, 15, 17, .045); }
.set-nav button.on { background: var(--surface); box-shadow: 0 0 0 1px var(--line); color: var(--ink); }
.integ { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ig { display: grid; grid-template-columns: 38px 1fr; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.ig .gl { width: 38px; height: 38px; border-radius: 4px; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); font: 700 15px var(--sans); }
.ig b { display: block; font-weight: 600; }
.ig p { margin: 3px 0 10px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.ig .ft { display: flex; align-items: center; gap: 8px; }
.meter { height: 6px; background: var(--line-2); border-radius: 3px; overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--blue); border-radius: 3px; }

/* ---------- overlays ---------- */
.ov { position: fixed; inset: 0; z-index: 80; }
.ov-bg { position: absolute; inset: 0; background: rgba(14, 15, 17, .28); animation: fin .18s ease both; }
.modal { position: absolute; left: 50%; top: 11vh; width: min(520px, calc(100vw - 24px)); max-height: 80vh; display: flex; flex-direction: column; transform: translateX(-50%); background: var(--surface); border-radius: 4px; box-shadow: var(--pop); animation: mod .22s var(--ease) both; }
.modal.w { width: min(640px, calc(100vw - 24px)); }
@keyframes mod { from { opacity: 0; transform: translate(-50%, 8px); } }
.modal-h { display: flex; align-items: center; gap: 10px; padding: 18px 20px 4px; }
.modal-h h2 { flex: 1; margin: 0; font: 400 22px/1.15 var(--serif); letter-spacing: -.025em; }
.modal-b { padding: 12px 20px 8px; overflow-y: auto; }
.modal-b > p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--line-2); margin-top: 8px; }
.modal-f .grow { flex: 1; }
.sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--pop); animation: sh .26s var(--ease) both; }
.sheet.w { width: min(600px, 100vw); }
@keyframes sh { from { transform: translateX(24px); opacity: 0; } }
.sheet-h { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sheet-h h2 { flex: 1; margin: 0; font: 400 22px/1.15 var(--serif); letter-spacing: -.025em; min-width: 0; }
.sheet-b { flex: 1; overflow-y: auto; padding: 18px 20px 28px; }
.sheet-f { display: flex; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.sheet-f .grow { flex: 1; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 9px 14px; font-size: 13.5px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; color: var(--ink); }
.sheet .blk { margin-top: 22px; }
.sheet .blk h4 { margin: 0 0 8px; font: 400 17px/1.2 var(--serif); letter-spacing: -.015em; }

.pal { position: absolute; left: 50%; top: 12vh; width: min(620px, calc(100vw - 24px)); transform: translateX(-50%); background: var(--surface); border-radius: 4px; box-shadow: var(--pop); overflow: hidden; animation: mod .2s var(--ease) both; }
.pal-i { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.pal-i svg { width: 18px; height: 18px; color: var(--faint); }
.pal-i input { flex: 1; height: 52px; border: 0; outline: none; font-size: 16px; background: transparent; }
.pal-l { max-height: min(420px, 60vh); overflow-y: auto; padding: 6px; }
.pal-g { padding: 10px 10px 4px; font-size: 12px; font-weight: 500; color: var(--faint); }
.pal-it { display: flex; align-items: center; gap: 10px; width: 100%; height: 38px; padding: 0 10px; border-radius: 3px; text-align: left; font-size: 14px; color: var(--ink-2); }
.pal-it svg { width: 16px; height: 16px; color: var(--muted); }
.pal-it .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-it .hint { font-size: 12px; color: var(--faint); display: flex; gap: 3px; }
.pal-it.on { background: var(--blue-wash); color: var(--ink); }
.pal-it.on svg { color: var(--blue); }
.pal-f { display: flex; gap: 14px; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.pal-f span { display: inline-flex; gap: 5px; align-items: center; }
.pal-empty { padding: 26px; text-align: center; color: var(--muted); }

.pop { position: fixed; z-index: 90; min-width: 220px; background: var(--surface); border-radius: 4px; box-shadow: var(--pop); padding: 6px; animation: pop .16s var(--ease) both; }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.pop .mi { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 34px; padding: 0 10px; border-radius: 3px; font-size: 13.5px; text-align: left; color: var(--ink-2); }
.pop .mi:hover, .pop .mi.on { background: var(--paper-2); color: var(--ink); }
.pop .mi svg { width: 16px; height: 16px; color: var(--muted); }
.pop .mi .grow { flex: 1; }
.pop .mi .ck { color: var(--blue); }
.pop .mi kbd { margin-left: auto; }
.pop .mi.danger { color: var(--neg); }
.pop .sep { height: 1px; background: var(--line-2); margin: 6px 4px; }
.pop .ph2 { padding: 8px 10px 6px; font-size: 12px; color: var(--faint); font-weight: 500; }
.pop.notif { width: min(380px, calc(100vw - 16px)); padding: 0; }
.notif-h { display: flex; align-items: center; gap: 10px; padding: 14px 16px 10px; }
.notif-h b { flex: 1; font: 400 19px var(--serif); letter-spacing: -.02em; }
.ntf { display: grid; grid-template-columns: 24px 1fr; gap: 10px; padding: 11px 16px; border-top: 1px solid var(--line-2); text-align: left; width: 100%; }
.ntf:hover { background: var(--paper); }
.ntf b { display: block; font-weight: 500; font-size: 13.5px; }
.ntf.new b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 7px; border-radius: 50%; background: var(--blue); vertical-align: 1px; }
.ntf div span { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.notif-f { display: block; padding: 11px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--blue-ink); font-weight: 500; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 8px 10px 10px; }
.me-card b { display: block; font-weight: 600; }
.me-card span { display: block; font-size: 12px; color: var(--muted); }

.sc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 28px; }
.sc-list div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line-2); font-size: 13.5px; }
.sc-list span.k { display: flex; gap: 3px; }

.toasts { position: fixed; left: 50%; bottom: 20px; z-index: 100; display: grid; gap: 8px; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 24px); }
.toast { display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 14px; border-radius: 4px; background: var(--ink); color: #fff; font-size: 13.5px; box-shadow: 0 10px 28px rgba(14, 15, 17, .22); animation: tin .24s var(--ease) both; }
.toast.out { animation: tout .2s ease both; }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }
@keyframes tout { to { opacity: 0; transform: translateY(6px); } }
.toast svg { width: 16px; height: 16px; color: #7DC3FF; flex: none; }
.toast button, .toast a { height: 28px; padding: 0 10px; border-radius: 2px; color: #9CCFFF; font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; }
.toast button:hover, .toast a:hover { background: rgba(255, 255, 255, .1); }

.empty { display: grid; justify-items: center; text-align: center; padding: 40px 24px 48px; }
.empty .sky { width: 220px; height: 120px; object-fit: cover; object-position: 20% 40%; border-radius: 3px; background: #A9CDEF; }
.empty h3 { margin: 18px 0 6px; font: 400 22px/1.2 var(--serif); letter-spacing: -.02em; }
.empty p { margin: 0 0 16px; color: var(--muted); max-width: 40ch; }

/* ---------- responsive ---------- */
@media (max-width: 1279px) {
  :root { --side-w: 64px; }
  .side-top { padding: 12px 10px 8px; justify-content: center; }
  .ws { flex: none; padding: 4px; }
  .ws .wn, .ws .chev { display: none; }
  .nav { padding: 6px 10px; }
  .nav .grp { height: 1px; margin: 10px 6px; background: var(--line); font-size: 0; }
  .nav a { justify-content: center; padding: 0; height: 40px; }
  .nav a .lb { display: none; }
  .nav a .ct { position: absolute; top: 3px; right: 3px; margin: 0; }
  .nav a .ct:not(.hot) { display: none; }
  .nav a .ct.hot { min-width: 16px; height: 15px; padding: 0 4px; font-size: 10px; }
  .nav a[data-tip]:hover::after { top: 50%; left: calc(100% + 8px); right: auto; transform: translateY(-50%); }
  .side-foot { padding: 10px 8px; }
  .watch { display: none; }
  .me { justify-content: center; padding: 4px; }
  .me .who { display: none; }
  .ariadne.in-side { display: none; }
  .feed { grid-template-columns: 340px minmax(0, 1fr); }
  .fd-in { padding: 24px 28px 64px; }
  .bc { grid-template-columns: 250px minmax(0, 1fr); }
  .bc-in { padding: 24px 28px 64px; }
  .search { width: 240px; }
  .dg { grid-template-columns: 300px minmax(0, 1fr); }
  .set { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; }
  .page { padding: 24px 24px 56px; }
}
@media (max-width: 1023px) {
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip > div:nth-child(3) { border-left: 0; }
  .strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .dg { grid-template-columns: minmax(0, 1fr); }
  .search { width: 200px; }
}
@media (max-width: 900px) {
  .feed { grid-template-columns: 300px minmax(0, 1fr); }
  .fd-in { padding: 22px 22px 56px; }
  .fd h2.big { font-size: 30px; }
  .bc { grid-template-columns: 220px minmax(0, 1fr); }
  .set { grid-template-columns: minmax(0, 1fr); }
  .set-nav { position: static; display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); gap: 0; }
  .set-nav button { flex: none; border-radius: 0; height: 38px; }
  .set-nav button.on { box-shadow: inset 0 -2px 0 var(--blue); background: transparent; }
}
@media (max-width: 760px) {
  :root { --top-h: 54px; }
  body { overflow: hidden; }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .26s var(--ease); box-shadow: var(--pop); }
  .side.open { transform: none; }
  .side-top { justify-content: flex-start; padding: 12px; }
  .ws { flex: 1; padding: 6px 8px 6px 6px; }
  .ws .wn, .ws .chev { display: block; }
  .ibtn.side-close { display: inline-grid; }
  .nav .grp { height: auto; margin: 14px 8px 6px; background: none; font-size: 12px; }
  .nav a { justify-content: flex-start; padding: 0 10px; height: 40px; }
  .nav a .lb { display: inline; }
  .nav a .ct { position: static; margin-left: auto; }
  .nav a .ct:not(.hot) { display: inline; }
  .nav a .ct.hot { min-width: 20px; height: 18px; padding: 0 6px; font-size: 12px; }
  .nav a[data-tip]:hover::after { display: none; }
  .watch { display: flex; }
  .me { justify-content: flex-start; padding: 6px; }
  .me .who { display: block; }
  .top { padding: 0 8px 0 6px; gap: 4px; }
  .ibtn.menu-btn { display: inline-grid; }
  .search, .help { display: none; }
  .ibtn.search-ic { display: inline-grid; }
  .me-top { display: inline-grid; place-items: center; width: 34px; height: 34px; }
  .crumbs .hide-m { display: none; }
  .page { padding: 18px 16px 48px; }
  .ph h1 { font-size: 27px; }
  .ph { margin-bottom: 16px; }
  .ph .acts { width: 100%; }
  .g4, .g2e { grid-template-columns: minmax(0, 1fr); }
  .strip .v { font-size: 26px; }
  .strip > div { padding: 13px 14px 14px; }
  .cgrid { grid-template-columns: minmax(0, 1fr); }
  .feed { grid-template-columns: minmax(0, 1fr); position: relative; }
  .fl { border-right: 0; }
  .fd { position: fixed; z-index: 40; inset: var(--top-h) 0 0 0; transform: translateX(100%); transition: transform .28s var(--ease); visibility: hidden; }
  .feed.show-d .fd { transform: none; visibility: visible; }
  .fd-in { padding: 10px 16px 64px; }
  .fd-back { display: inline-flex; align-items: center; gap: 6px; height: 36px; margin-bottom: 8px; color: var(--blue-ink); font-weight: 500; }
  .fd h2.big { font-size: 27px; }
  .fd .lede { font-size: 15px; }
  .diff-h, .diff-b { grid-template-columns: minmax(0, 1fr); }
  .diff-h div + div, .diff-b .col + .col { border-left: 0; border-top: 1px solid var(--line); }
  .fi { padding: 13px 14px 13px 16px; }
  .bc { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .bc-l { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; display: flex; gap: 0; overflow-x: auto; }
  .bc-l .hd, .bc-new { display: none; }
  .bci { flex: none; width: auto; border-top: 0; border-right: 1px solid var(--line-2); padding: 12px 16px; }
  .bci .r2 { display: none; }
  .bc-in { padding: 18px 16px 64px; }
  .bc-top h2 { font-size: 28px; }
  .rule { grid-template-columns: 40px minmax(0, 1fr); }
  .rule .fr { grid-column: 2; text-align: left; display: flex; gap: 8px; align-items: baseline; }
  .rule .fr b { display: inline; font-size: 16px; }
  .rule .mn { position: absolute; right: 12px; }
  .rule { position: relative; padding-right: 48px; }
  .em-in { padding: 20px 18px 24px; }
  .mail-body { padding: 14px 8px 24px; }
  .em-bc { grid-template-columns: repeat(2, 1fr); }
  .em-bc div:nth-child(4n+1) { border-left: 1px solid var(--line); }
  .em-bc div:nth-child(2n+1) { border-left: 0; }
  .em-bc div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hbar { grid-template-columns: 92px 1fr 80px; }
  .kv { grid-template-columns: 110px 1fr; }
  .sc-list { grid-template-columns: 1fr; }
  .toolbar .sbox .inp { width: 100%; }
  .toolbar .sbox { flex: 1 1 100%; }
  .toasts { bottom: 14px; }
  .ariadne.in-menu { display: table; }
  .modal { top: auto; bottom: 0; width: 100vw; max-height: 88vh; border-radius: 6px 6px 0 0; }
  @keyframes mod { from { opacity: 0; transform: translate(-50%, 16px); } }
}
@media (min-width: 761px) { .ariadne.in-menu { display: none; } }
@media (min-width: 761px) and (max-width: 1279px) { .ariadne.in-menu { display: table; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .draw { stroke-dashoffset: 0; }
}
@media (min-width: 1280px) { .nav a[data-tip]:hover::after { display: none; } }
