/* Skalia · Workspace — light, crisp, quietly premium */
:root {
  --bg: #f7f7f5;
  --surface: #ffffff;
  --sunk: #f2f2ef;
  --line: #e7e7e3;
  --line-2: #dcdcd7;
  --ink: #17181b;
  --ink-2: #3a3c42;
  --muted: #6c6f77;
  --faint: #9b9ea6;
  --ghost: #c4c6cb;
  --accent: #b07d12;          /* waiting for you — Skalia gold, restrained */
  --accent-bg: #fbf4e2;
  --accent-line: #ecd9a6;
  --work: #3f63d6;            /* Skalia preparing */
  --work-bg: #eef2fd;
  --ok: #1f7a55;
  --ok-bg: #e9f5ef;
  --bad: #b4413a;
  --bad-bg: #fbeeec;
  --gold: #c9a24a;
  --sel: #eef0f4;
  --r: 8px;
  --r-lg: 12px;
  --sh-1: 0 1px 0 rgba(20, 20, 25, .04), 0 1px 2px rgba(20, 20, 25, .06);
  --sh-2: 0 1px 2px rgba(20, 20, 25, .06), 0 8px 24px -8px rgba(20, 20, 25, .14);
  --sh-3: 0 2px 6px rgba(20, 20, 25, .08), 0 24px 64px -16px rgba(20, 20, 25, .28);
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --tree-w: 252px;
  --panel-w: 384px;
  --top-h: 52px;
  color-scheme: light;
}
@media (max-width: 1360px) { :root { --tree-w: 232px; --panel-w: 352px; } }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 450 13.5px/1.45 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01', 'ss03'; overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
a { color: inherit; }
::selection { background: #dfe5f7; }
.mono { font-family: var(--mono); }
.serif { font-family: var(--serif); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
kbd, .kbd { font: 500 10.5px/1 var(--mono); color: var(--muted); border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px 1px; background: var(--surface); display: inline-block; min-width: 18px; text-align: center; }
.dark kbd, .btn-ink kbd { color: rgba(255,255,255,.72); border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.06); }
.scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: #d6d6d1 transparent; }

/* ───────── App grid ───────── */
.app { display: grid; transition: grid-template-columns .25s ease; grid-template-columns: var(--tree-w) minmax(0, 1fr) var(--panel-w); grid-template-rows: var(--top-h) minmax(0, 1fr); height: 100vh; }
.top { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 16px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.86); backdrop-filter: saturate(1.4) blur(8px); z-index: 5; }
.tree { border-right: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; min-height: 0; }
.centre { min-width: 0; min-height: 0; position: relative; display: flex; flex-direction: column; background: var(--bg); }
.panel { border-left: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; min-height: 0; }

/* ───────── Top bar ───────── */
.brand { display: flex; align-items: center; gap: 9px; font-weight: 650; letter-spacing: -.01em; font-size: 14.5px; width: calc(var(--tree-w) - 28px); }
.brand-mark { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); display: grid; place-items: center; }
.brand-mark i { width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--gold); }
.brand small { font-weight: 500; color: var(--faint); font-size: 12px; letter-spacing: 0; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.crumbs b { color: var(--ink); font-weight: 550; }
.crumbs .sep { color: var(--ghost); }
.crumbs button:hover { color: var(--ink); }
.top-sp { flex: 1; }
.search-btn { display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--faint); width: 260px; box-shadow: var(--sh-1); }
.search-btn:hover { border-color: var(--line-2); color: var(--muted); }
.search-btn span { flex: 1; text-align: left; }
.search-btn svg { width: 14px; height: 14px; }
.chip-btn { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; color: var(--ink-2); white-space: nowrap; box-shadow: var(--sh-1); }
.chip-btn:hover { border-color: var(--line-2); color: var(--ink); }
.chip-btn .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--ok-bg); }
.chip-btn .dot.pulse { animation: pulse 1.6s ease-out 2; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31,122,85,.45); } 100% { box-shadow: 0 0 0 9px rgba(31,122,85,0); } }
.chip-btn svg { width: 14px; height: 14px; }
.chip-btn .n { font: 500 11px var(--mono); color: var(--muted); }
.focus-btn { background: var(--ink); color: #fff; border-color: var(--ink); }
.focus-btn:hover { color: #fff; background: #000; }
.focus-btn kbd { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.25); background: transparent; }
.icon-btn { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.icon-btn:hover { background: var(--sunk); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn[disabled] { opacity: .3; pointer-events: none; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: #2a2c31; color: #fff; display: grid; place-items: center; font: 600 11px var(--sans); letter-spacing: .02em; }

/* ───────── Tree ───────── */
.tree-head { padding: 12px 12px 6px; display: flex; flex-direction: column; gap: 2px; }
.nav-i { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 6px; color: var(--ink-2); font-weight: 500; width: 100%; text-align: left; }
.nav-i:hover { background: #ededea; }
.nav-i.on { background: #e9e9e5; color: var(--ink); }
.nav-i svg { width: 15px; height: 15px; color: var(--muted); flex: none; }
.nav-i .ct { margin-left: auto; font: 500 11px var(--mono); color: var(--faint); }
.nav-i .ct.hot { color: var(--accent); }
.tree-body { flex: 1; padding: 6px 12px 64px; }
.fold { margin-top: 10px; }
.fold-h { display: flex; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 4px; width: 100%; border-radius: 6px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; }
.fold-h:hover { color: var(--ink); background: #ededea; }
.fold-h .car { width: 14px; height: 14px; transition: transform .16s; color: var(--faint); }
.fold.closed .fold-h .car { transform: rotate(-90deg); }
.fold-h svg.fi { width: 14px; height: 14px; }
.fold-h .ct { margin-left: auto; font: 500 11px var(--mono); color: var(--faint); text-transform: none; letter-spacing: 0; }
.fold.closed .fold-list { display: none; }
.fold-list { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.deal-i { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; padding: 5px 8px 6px 24px; border-radius: 6px; text-align: left; width: 100%; position: relative; }
.deal-i:hover { background: #ededea; }
.deal-i.on { background: var(--surface); box-shadow: var(--sh-1); }
.deal-i.on::before { content: ''; position: absolute; left: 8px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--ink); }
.deal-i .nm { font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.deal-i .st { grid-column: 1; font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.deal-i .st i { width: 6px; height: 6px; border-radius: 50%; background: var(--ghost); flex: none; }
.deal-i .st i.waiting { background: var(--accent); }
.deal-i .st i.preparing { background: var(--work); }
.deal-i .st i.done { background: var(--ok); }
.deal-i .st i.passed { background: transparent; border: 1px solid var(--faint); }
.deal-i .badge { grid-row: 1 / 3; grid-column: 2; }
.badge { font: 500 11px var(--mono); padding: 1px 4px; color: var(--faint); }
.badge.hot { color: var(--accent); font-weight: 600; }
.badge.phone { background: var(--work-bg); color: var(--work); border: 1px solid #d3ddf8; border-radius: 10px; padding: 1px 5px; display: inline-flex; }
.tree-foot { padding: 10px 12px 58px; border-top: 1px solid var(--line); }

/* ───────── Shared bits ───────── */
.eyebrow { font: 600 10.5px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.h-xl { font: 600 26px/1.15 var(--sans); letter-spacing: -.022em; margin: 0; }
.h-l { font: 600 19px/1.25 var(--sans); letter-spacing: -.015em; margin: 0; }
.h-m { font: 600 15px/1.3 var(--sans); letter-spacing: -.01em; margin: 0; }
.pill { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 550; white-space: nowrap; border: 1px solid transparent; }
.pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.waiting { background: var(--accent-bg); color: var(--accent); border-color: var(--accent-line); }
.pill.preparing { background: var(--work-bg); color: var(--work); border-color: #d6dff9; }
.pill.cleared { background: var(--ok-bg); color: var(--ok); border-color: #cfe7db; }
.pill.future, .pill.neutral { background: var(--sunk); color: var(--muted); border-color: var(--line); }
.pill.skipped { background: transparent; color: var(--faint); border: 1px dashed var(--line-2); }
.pill.bad { background: var(--bad-bg); color: var(--bad); border-color: #f0d2ce; }
.pill.phone { background: var(--work-bg); color: var(--work); border-color: #d6dff9; }
.pill.phone svg { width: 11px; height: 11px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 7px; font-weight: 550; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); white-space: nowrap; box-shadow: var(--sh-1); transition: background .12s, border-color .12s, transform .06s; }
.btn:hover { border-color: #c9cac5; background: #fcfcfb; }
.btn:active { transform: translateY(.5px); }
.btn-ink { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ink:hover { background: #000; border-color: #000; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); }
.btn-ghost:hover { background: var(--sunk); color: var(--ink); border-color: transparent; }
.btn-sm { height: 26px; padding: 0 9px; font-size: 12.5px; border-radius: 6px; }
.btn kbd { margin-left: 2px; }
.link { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--ink); color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.sim { color: var(--faint); font-size: 11.5px; }
.cite { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 7px; margin: 2px 3px 2px 0; border-radius: 5px; background: var(--sunk); border: 1px solid var(--line); font-size: 11.5px; color: var(--ink-2); font-weight: 500; vertical-align: 1px; }
.cite:hover { border-color: var(--ink-2); background: var(--surface); }
.cite b { font: 600 9.5px var(--mono); color: var(--faint); text-transform: uppercase; letter-spacing: .04em; }

/* ───────── Mini gate rail (names) ───────── */
.mrail { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; }
.mrail span { height: 5px; border-radius: 2px; background: #e7e7e3; position: relative; }
.mrail span.cleared { background: #3d4047; }
.mrail span.waiting { background: var(--accent); }
.mrail span.preparing { background: var(--work); background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.35) 0 3px, transparent 3px 6px); }
.mrail span.skipped { background: transparent; border: 1px dashed var(--line-2); }
.mrail-names { display: grid; grid-template-columns: repeat(11, 1fr); gap: 3px; margin-top: 5px; }
.mrail-names span { font-size: 10px; color: var(--faint); line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrail-names span.cur { color: var(--ink); font-weight: 600; overflow: visible; }

/* ───────── Home ───────── */
.page { flex: 1; min-height: 0; }
.page-in { max-width: 980px; margin: 0 auto; padding: 30px 36px 80px; }
.greet { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.greet p { margin: 6px 0 0; color: var(--muted); font-size: 14px; max-width: 560px; }
.greet .date { font-size: 12.5px; color: var(--faint); text-align: right; white-space: nowrap; }
.sessions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 26px; }
.sess { padding: 14px 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 6px; position: relative; text-align: left; }
.sess:hover { border-color: var(--line-2); }
.sess .t { display: flex; justify-content: space-between; align-items: center; }
.sess .t b { font-weight: 600; font-size: 14px; }
.sess .t span { font: 500 11.5px var(--mono); color: var(--faint); }
.sess .m { color: var(--muted); font-size: 12.5px; }
.sess .bar { height: 3px; background: var(--sunk); border-radius: 2px; overflow: hidden; margin-top: 4px; }
.sess .bar i { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
.sess.done { background: transparent; box-shadow: none; }
.sess.done .t b { color: var(--muted); }
.sess.next { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), var(--sh-2); }
.sess .bl { color: var(--faint); font-size: 12px; line-height: 1.35; }
.sess .ft { display: flex; align-items: center; gap: 8px; margin-top: 4px; min-height: 26px; }
.sess .ft .bar { flex: 1; margin: 0; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 10px; }
.sec-h h3 { margin: 0; font-size: 13px; font-weight: 600; }
.sec-h h3 span { color: var(--faint); font-weight: 500; margin-left: 6px; }
.waiting-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.wcard { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.wcard:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.wcard .hd { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.wcard .hd b { color: var(--ink); font-weight: 600; }
.wcard .q { font-weight: 550; font-size: 14px; line-height: 1.35; letter-spacing: -.005em; }
.wcard .ft { display: flex; align-items: center; gap: 8px; margin-top: auto; font-size: 12px; color: var(--faint); }
.wcard .ft .sp { flex: 1; }
.rows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.drow { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.25fr) minmax(0, 1.35fr) 16px; gap: 18px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); width: 100%; text-align: left; }
.drow:first-child { border-top: 0; }
.drow:hover { background: #fafaf8; }
.drow .nm b { display: block; font-weight: 600; font-size: 13.5px; }
.drow .nm span { font-size: 12px; color: var(--faint); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.drow .nx { font-size: 12.5px; color: var(--ink-2); line-height: 1.35; }
.drow .nx small { display: block; font-size: 11px; color: var(--faint); font-weight: 550; margin-bottom: 1px; letter-spacing: .02em; }
.drow .nx small.waiting { color: var(--accent); }
.drow .nx small.preparing { color: var(--work); }
.drow .chev { color: var(--ghost); }
.home-2 { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; }
.feed { padding: 6px 0; }
.feed-i { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 9px 16px; align-items: start; font-size: 12.5px; }
.feed-i + .feed-i { border-top: 1px solid var(--line); }
.feed-i .ic { width: 22px; height: 22px; border-radius: 6px; background: var(--sunk); display: grid; place-items: center; color: var(--muted); }
.feed-i .ic svg { width: 12px; height: 12px; }
.feed-i .ic.phone { background: var(--work-bg); color: var(--work); }
.feed-i .ic.ok { background: var(--ok-bg); color: var(--ok); }
.feed-i .tx b { font-weight: 600; }
.feed-i .tm { color: var(--faint); font: 500 11px var(--mono); white-space: nowrap; }
.inbox-sum { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.inbox-sum .big { font-size: 13.5px; }
.inbox-sum .big b { font-weight: 600; }
.mail-i { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 12.5px; }
.mail-i .fr { font-weight: 600; }
.mail-i .sb { color: var(--muted); grid-column: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mail-i .ac { grid-row: 1 / 3; grid-column: 2; align-self: center; }

/* ───────── Folder list view ───────── */
.list-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.list-head p { margin: 6px 0 0; color: var(--muted); }
.seg { display: inline-flex; padding: 2px; background: var(--sunk); border: 1px solid var(--line); border-radius: 8px; gap: 2px; }
.seg button { height: 26px; padding: 0 10px; border-radius: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--sh-1); }
.passed-card { padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; }
.passed-card .rs { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); padding: 8px 10px; border-left: 2px solid var(--line-2); background: #fafaf8; border-radius: 0 6px 6px 0; }
.passed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.camp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.camp { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.camp p { margin: 0; color: var(--muted); font-size: 12.5px; }
.funnel { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.funnel div { padding: 8px 10px; background: var(--sunk); border-radius: 8px; }
.funnel b { display: block; font: 600 16px var(--sans); letter-spacing: -.01em; }
.funnel span { font-size: 11px; color: var(--faint); }

/* ───────── Deal view ───────── */
.deal { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.deal-head { padding: 16px 24px 0; display: flex; flex-direction: column; gap: 12px; background: var(--bg); }
.deal-title { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.deal-title h1 { margin: 0; font: 600 21px/1.2 var(--sans); letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.deal-title h1 .code { font: 500 12px var(--mono); color: var(--faint); letter-spacing: 0; }
.deal-title .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.deal-kpis { display: flex; gap: 18px; }
.deal-kpis div { display: flex; flex-direction: column; align-items: flex-end; white-space: nowrap; }
.deal-kpis b { font: 600 14px var(--sans); letter-spacing: -.01em; }
.deal-kpis span { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.srail { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 0; position: relative; padding-bottom: 2px; }
.srail button { display: flex; flex-direction: column; gap: 6px; align-items: stretch; text-align: left; padding: 0 3px 0 0; min-width: 0; }
.srail .bar { height: 6px; border-radius: 3px; background: #e5e5e1; transition: background .3s; }
.srail .cleared .bar { background: #3d4047; }
.srail .waiting .bar { background: var(--accent); }
.srail .preparing .bar { background: var(--work); background-image: repeating-linear-gradient(-45deg, rgba(255,255,255,.4) 0 3px, transparent 3px 6px); background-size: 200% 100%; animation: stripes 1.2s linear infinite; }
@keyframes stripes { to { background-position: -17px 0; } }
.srail .skipped .bar { background: transparent; border: 1px dashed var(--line-2); }
.srail .nm { font-size: 11px; line-height: 1.2; color: var(--faint); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srail .cleared .nm { color: var(--ink-2); }
.srail .waiting .nm { color: var(--accent); font-weight: 600; }
.srail .preparing .nm { color: var(--work); font-weight: 600; }
.srail button.sel .nm { color: var(--ink); font-weight: 650; }
.srail button.sel .bar { transform: scaleY(1.6); }
.srail .bar { transform-origin: 50% 100%; transition: transform .2s, background .3s; }
.srail button:hover .nm { color: var(--ink); }
.deal-tabs { display: flex; align-items: center; gap: 2px; border-bottom: 1px solid var(--line); margin: 0 -24px; padding: 0 20px; }
.deal-tabs button { height: 36px; padding: 0 10px; color: var(--muted); font-weight: 500; position: relative; }
.deal-tabs button.on { color: var(--ink); }
.deal-tabs button.on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--ink); border-radius: 2px; }
.deal-tabs .sp { flex: 1; }
.deal-tabs .hint { font-size: 11.5px; color: var(--faint); display: flex; gap: 4px; align-items: center; }

/* gate strip */
.strip-wrap { flex: 1; min-height: 0; position: relative; }
.strip { -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 40px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 40px), transparent 100%); position: absolute; inset: 0; display: flex; gap: 0; overflow-x: auto; overflow-y: hidden; padding: 16px 24px 18px; scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #d6d6d1 transparent; }
.strip::after { content: ''; flex: 0 0 24px; }
.gf { flex: 0 0 54px; height: 100%; position: relative; margin-right: 6px; transition: flex-basis .42s cubic-bezier(.2,.8,.2,1); }
.gf.open { flex-basis: var(--gate-w, 640px); }
.gf-spine { position: absolute; inset: 0; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); display: flex; flex-direction: column; align-items: center; padding: 12px 0 14px; gap: 10px; cursor: pointer; transition: opacity .25s, border-color .15s; overflow: hidden; }
.gf-spine:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.gf-spine .ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.gf-spine .ic svg { width: 12px; height: 12px; }
.gf.cleared .gf-spine .ic { background: #3d4047; color: #fff; }
.gf.waiting .gf-spine .ic { background: var(--accent); color: #fff; }
.gf.preparing .gf-spine .ic { background: var(--work); color: #fff; }
.gf.future .gf-spine .ic { border: 1.5px solid var(--line-2); }
.gf.skipped .gf-spine .ic { border: 1.5px dashed var(--line-2); }
.gf-spine .vn { writing-mode: vertical-rl; transform: rotate(180deg); font-weight: 600; font-size: 13px; letter-spacing: -.005em; white-space: nowrap; color: var(--ink); }
.gf.future .gf-spine, .gf.skipped .gf-spine { background: transparent; box-shadow: none; border-style: dashed; }
.gf.future .gf-spine .vn, .gf.skipped .gf-spine .vn { color: var(--faint); font-weight: 500; }
.gf-spine .vd { writing-mode: vertical-rl; transform: rotate(180deg); font: 500 10.5px var(--mono); color: var(--faint); white-space: nowrap; margin-top: auto; }
.gf.waiting .gf-spine { border-color: var(--accent-line); }
.gf.waiting .gf-spine::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--accent); }
.gf.preparing .gf-spine::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--work); }
.gf.open .gf-spine { opacity: 0; pointer-events: none; }
.gf-body { position: absolute; inset: 0; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-2); display: flex; flex-direction: column; overflow: hidden; opacity: 0; pointer-events: none; transition: opacity .2s .12s; }
.gf.open .gf-body { opacity: 1; pointer-events: auto; }
.gf:not(.open) .gf-body { transition-delay: 0s; }
.gate-top { position: relative; padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.gate-top .tb { display: flex; align-items: center; gap: 10px; }
.gate-top h2 { margin: 0; font: 600 18px/1.2 var(--sans); letter-spacing: -.015em; }
.gate-top .gn { color: var(--muted); font-size: 12.5px; margin-top: 4px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gate-top .nav { margin-left: auto; display: flex; gap: 4px; }
.boom { position: absolute; left: 0; right: 0; top: 0; height: 4px; transform-origin: 0 50%; transition: transform .7s cubic-bezier(.3,1.3,.5,1), opacity .4s .6s; }
.gf.waiting .boom { background: repeating-linear-gradient(90deg, var(--accent) 0 14px, #f3e5bf 14px 28px); }
.gf.preparing .boom { background: var(--work); opacity: .9; }
.gf.cleared .boom { background: #3d4047; }
.gf.future .boom, .gf.skipped .boom { background: var(--line); }
.gf.lifting .boom { transform: rotate(-9deg) translateY(-4px); opacity: 0; }
.gf.lifting .gate-top::after { content: 'Cleared'; position: absolute; right: 96px; top: 22px; font: 600 11px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ok); animation: rise .3s ease; }
.gf.lifting .decide { transition: opacity .4s, transform .4s; opacity: .35; transform: translateY(-4px); }
.gate-scroll { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 22px 28px; display: flex; flex-direction: column; gap: 20px; scrollbar-width: thin; }
.gsec h4 { margin: 0 0 8px; font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.gsec h4 .sp { flex: 1; height: 1px; background: var(--line); }
.decide { border: 1px solid var(--accent-line); background: linear-gradient(180deg, #fffcf3, #fff 60%); border-radius: 10px; padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.decide .pq { font: 600 16px/1.35 var(--sans); letter-spacing: -.012em; }
.decide .rec { font-size: 13px; color: var(--ink-2); }
.decide .rec b { font-weight: 600; color: var(--ink); }
.decide .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.decide .cons { font-size: 12px; color: var(--muted); display: flex; gap: 6px; align-items: baseline; }
.decide .cons::before { content: '→'; color: var(--faint); }
.conf { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.conf i { width: 44px; height: 4px; border-radius: 2px; background: var(--sunk); position: relative; overflow: hidden; }
.conf i b { position: absolute; inset: 0 auto 0 0; background: var(--ink-2); border-radius: 2px; }
.why { font-size: 12.5px; color: var(--ink-2); padding: 10px 12px; background: #fafaf8; border-radius: 8px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.why ul { margin: 0; padding-left: 16px; }
.why li { margin: 2px 0; }
.why .tacit { font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 13.5px; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.doc-c { display: grid; grid-template-columns: 30px 1fr; gap: 3px 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; text-align: left; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
.doc-c:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.doc-c .pg { grid-row: 1 / 3; width: 30px; height: 38px; border-radius: 3px; border: 1px solid var(--line-2); background: linear-gradient(180deg, #fff, #f6f6f3); position: relative; }
.doc-c .pg::before { content: ''; position: absolute; left: 6px; right: 6px; top: 8px; height: 14px; background: repeating-linear-gradient(180deg, var(--line-2) 0 1px, transparent 1px 4px); }
.doc-c .pg.needs { border-color: var(--accent); }
.doc-c .pg.needs::after { content: ''; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); border: 1.5px solid #fff; }
.doc-c .t { font-weight: 550; font-size: 12.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.doc-c .m { font-size: 11px; color: var(--faint); }
.work { display: flex; flex-direction: column; gap: 2px; }
.wstep { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 12.5px; }
.wstep .ck { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
.wstep.done .ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.wstep.done .ck svg { width: 9px; height: 9px; }
.wstep.run .ck { border-color: var(--work); border-top-color: transparent; animation: spin .8s linear infinite; }
.wstep.done .tx { color: var(--muted); }
.wstep.run .tx { color: var(--ink); font-weight: 550; }
.wstep.todo .tx { color: var(--faint); }
.wstep .pb { width: 80px; height: 3px; background: var(--sunk); border-radius: 2px; overflow: hidden; }
.wstep .pb i { display: block; height: 100%; background: var(--work); transition: width .4s; }
@keyframes spin { to { transform: rotate(360deg); } }
.hist { display: flex; flex-direction: column; }
.hi { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 7px 0; font-size: 12.5px; border-top: 1px solid var(--line); }
.hi:first-child { border-top: 0; }
.hi .tm { font: 500 11px var(--mono); color: var(--faint); padding-top: 1px; }
.hi .tx b { font-weight: 600; }
.hi .tx .pill { margin-left: 6px; height: 18px; font-size: 10.5px; padding: 0 6px; }
.hi.call .tx { background: var(--work-bg); border-radius: 8px; padding: 8px 10px; }
.hi.call .tx q { display: block; font-family: var(--serif); font-size: 13.5px; color: var(--ink-2); margin-top: 4px; quotes: '“' '”'; }
.cleared-banner { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: #f6f7f6; border: 1px solid var(--line); font-size: 13px; }
.cleared-banner .ic { width: 28px; height: 28px; border-radius: 50%; background: #3d4047; color: #fff; display: grid; place-items: center; flex: none; }
.cleared-banner .ic svg { width: 14px; height: 14px; }
.cleared-banner b { font-weight: 600; }
.future-box { padding: 18px; border-radius: 10px; border: 1px dashed var(--line-2); color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.prep-box { padding: 14px 16px; border-radius: 10px; background: var(--work-bg); border: 1px solid #d6dff9; display: flex; flex-direction: column; gap: 6px; }
.prep-box .tt { font-weight: 600; color: var(--work); display: flex; gap: 8px; align-items: center; }
.prep-box .tt::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--work); animation: pulseB 1.4s ease-in-out infinite; }
@keyframes pulseB { 50% { opacity: .3; } }

/* deal other tabs */
.dpage { flex: 1; min-height: 0; overflow: auto; padding: 18px 24px 60px; }
.kv { display: grid; grid-template-columns: 140px 1fr; gap: 8px 16px; font-size: 13px; }
.kv dt { color: var(--faint); }
.kv dd { margin: 0; }
.people { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.person { display: grid; grid-template-columns: 32px 1fr; gap: 2px 10px; padding: 10px 12px; text-align: left; }
.person .av { grid-row: 1 / 3; width: 32px; height: 32px; border-radius: 50%; background: var(--sunk); display: grid; place-items: center; font: 600 11px var(--sans); color: var(--ink-2); border: 1px solid var(--line); }
.person b { font-weight: 600; font-size: 13px; }
.person span { font-size: 12px; color: var(--muted); }

/* ───────── Panel ───────── */
.ptabs { display: flex; align-items: center; height: 46px; padding: 0 10px; border-bottom: 1px solid var(--line); gap: 2px; flex: none; }
.ptabs button { height: 30px; padding: 0 11px; border-radius: 7px; font-weight: 550; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; }
.ptabs button:hover { color: var(--ink); background: var(--sunk); }
.ptabs button.on { color: var(--ink); background: var(--sunk); }
.ptabs button .n { font: 600 10.5px var(--mono); padding: 1px 6px; border-radius: 9px; background: var(--ink); color: #fff; }
.ptabs .sp { flex: 1; }
.pbody { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sesbar { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; flex: none; }
.sesbar .row1 { display: flex; align-items: center; gap: 8px; }
.sesbar .row1 b { font-weight: 600; }
.sesbar .row1 .meta { color: var(--muted); font-size: 12px; }
.sesbar .row1 .sp { flex: 1; }
.ses3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ses3 button { padding: 6px 8px; border-radius: 7px; border: 1px solid var(--line); text-align: left; display: flex; flex-direction: column; gap: 1px; background: var(--surface); }
.ses3 button:hover { border-color: var(--line-2); }
.ses3 button b { font-size: 12px; font-weight: 600; display: flex; justify-content: space-between; }
.ses3 button b span { font: 500 10.5px var(--mono); color: var(--faint); }
.ses3 button small { font-size: 11px; color: var(--faint); }
.ses3 button.on { border-color: var(--ink); box-shadow: inset 0 0 0 .5px var(--ink); }
.ses3 button.done b { color: var(--muted); }
.ses3 button.done small { color: var(--ok); }
.onecard-wrap { padding: 14px; flex: none; }
.onecard { border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); box-shadow: var(--sh-2); padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 11px; position: relative; overflow: hidden; }
.onecard .hd { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.onecard .hd b { color: var(--ink); font-weight: 600; }
.onecard .hd .sp { flex: 1; }
.onecard .hd .pos { font: 500 11px var(--mono); color: var(--faint); }
.onecard .q { font: 600 17px/1.32 var(--sans); letter-spacing: -.015em; }
.onecard .rec { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; }
.onecard .rec .lb { font: 600 10px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 2px; }
.yce { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr) minmax(0,1fr); gap: 6px; }
.yce button { min-width: 0; }
#panel .onecard .yce button small { display: none; }
#panel .onecard .yce button { height: 44px; }
.fcard .yce button small { display: block; }
.yce button { height: 52px; border-radius: 9px; border: 1px solid var(--line-2); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 0 11px; gap: 1px; position: relative; text-align: left; background: var(--surface); transition: background .12s, border-color .12s, transform .06s; }
.yce button:active { transform: translateY(1px); }
.yce button b { font-weight: 600; font-size: 13.5px; }
.yce button small { font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.yce button kbd { position: absolute; right: 7px; top: 7px; font-size: 9.5px; padding: 1px 4px; }
.yce .y { background: var(--ink); border-color: var(--ink); color: #fff; }
.yce .y small { color: rgba(255,255,255,.6); }
.yce .y kbd { color: rgba(255,255,255,.7); border-color: rgba(255,255,255,.25); background: transparent; }
.yce .y:hover { background: #000; }
.yce .c:hover { border-color: var(--ink-2); }
.yce .n b { color: var(--bad); }
.yce .n:hover { border-color: var(--bad); }
.oc-links { display: flex; align-items: center; gap: 4px; }
.oc-links .sp { flex: 1; }
.oc-input { display: flex; flex-direction: column; gap: 6px; }
.oc-input textarea { width: 100%; min-height: 58px; resize: vertical; border: 1px solid var(--line-2); border-radius: 8px; padding: 8px 10px; font-size: 13px; outline: none; background: #fff; }
.oc-input textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,24,27,.07); }
.oc-input .r { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.oc-input .r .lbl { margin-right: auto; font-size: 11.5px; color: var(--muted); }
.result { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 10px; background: var(--ok-bg); border: 1px solid #cfe7db; font-size: 12.5px; animation: rise .3s ease; }
.result.pass { background: #f8f3f2; border-color: #ecd8d5; }
.result .tt { font-weight: 600; display: flex; align-items: center; gap: 6px; }
.result .tt svg { width: 13px; height: 13px; }
.result .ho { color: var(--muted); }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } }
.onecard.leave { animation: leave .26s ease forwards; }
@keyframes leave { to { opacity: 0; transform: translateX(-14px); } }
.onecard.enter { animation: enter .3s ease; }
@keyframes enter { from { opacity: 0; transform: translateX(14px); } }
.qlist-h { display: flex; align-items: center; gap: 8px; padding: 4px 14px 8px; flex: none; }
.qlist-h .sp { flex: 1; }
.qlist { flex: 1; min-height: 0; overflow-y: auto; padding: 0 8px 60px; scrollbar-width: thin; }
.qgrp { margin-bottom: 6px; }
.qgrp-h { font: 600 10.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 8px 6px 4px; display: flex; justify-content: space-between; }
.qi { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 8px; padding: 7px 8px; border-radius: 7px; width: 100%; text-align: left; position: relative; align-items: center; }
.qi:hover { background: var(--sunk); }
.qi.cur { background: #f4f4f1; box-shadow: inset 2px 0 0 var(--ink); }
.qi .t { font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--ink); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.qi .m { font-size: 11px; color: var(--faint); display: flex; gap: 6px; align-items: center; white-space: nowrap; overflow: hidden; min-width: 0; }
.qi .m > span:not(.pri):not(.pill) { overflow: hidden; text-overflow: ellipsis; }
.qi .m .pri { flex: none; }
.qi .m .pill { height: 17px; font-size: 10px; padding: 0 6px; }
.qi .acts { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; gap: 3px; opacity: 0; transition: opacity .12s; background: linear-gradient(90deg, transparent, var(--sunk) 14px); padding-left: 18px; }
.qi.done .acts, .qi .acts.on { background: none; position: static; transform: none; padding: 0; grid-row: 1 / 3; grid-column: 2; }
.qi.done { grid-template-columns: minmax(0,1fr) auto; }
.qi:hover .acts, .qi:focus-within .acts { opacity: 1; }
.qi .acts button { height: 24px; padding: 0 7px; border-radius: 5px; font-size: 11.5px; color: var(--muted); border: 1px solid var(--line); background: var(--surface); }
.qi .acts button:hover { color: var(--ink); border-color: var(--line-2); }
.qi.done .t { color: var(--muted); }
.qi.done .t s { text-decoration-color: var(--ghost); }
.qi .pri { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.pri-1 { background: var(--bad); } .pri-2 { background: var(--accent); } .pri-3 { background: #8a8d94; } .pri-4, .pri-5 { background: var(--ghost); }
.qi.done .acts { opacity: 1; }
.empty-q { padding: 18px 14px; text-align: center; color: var(--muted); font-size: 12.5px; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.sess-done { padding: 18px; border: 1px solid var(--line); border-radius: 12px; display: flex; flex-direction: column; gap: 8px; background: linear-gradient(180deg, #fbfbf9, #fff); }
.sess-done .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; }
.sess-done .ic svg { width: 15px; height: 15px; }

/* ask */
.chat { flex: 1; min-height: 0; overflow-y: auto; padding: 14px 14px 10px; display: flex; flex-direction: column; gap: 14px; scrollbar-width: thin; }
.msg { font-size: 13px; line-height: 1.55; }
.msg.me { align-self: flex-end; max-width: 85%; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 12px 12px 3px 12px; }
.msg.sk { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.msg.sk .av { width: 22px; height: 22px; border-radius: 6px; background: var(--ink); display: grid; place-items: center; }
.msg.sk .av i { width: 7px; height: 7px; border-radius: 50%; border: 1.6px solid var(--gold); }
.msg.sk .bd { min-width: 0; }
.msg.sk .tx { color: var(--ink-2); white-space: pre-wrap; }
.msg.sk .cites { margin-top: 6px; }
.msg.sk .prop { margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 9px; display: flex; flex-direction: column; gap: 8px; background: #fcfcfb; }
.msg.sk .prop .tt { font-size: 12.5px; font-weight: 550; }
.msg.sk .prop .r { display: flex; gap: 6px; }
.caret::after { content: ''; display: inline-block; width: 6px; height: 14px; background: var(--ink-2); vertical-align: -2px; margin-left: 1px; animation: blink .9s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.sugg button { padding: 5px 10px; border-radius: 14px; border: 1px solid var(--line); font-size: 12px; color: var(--ink-2); background: var(--surface); text-align: left; }
.sugg button:hover { border-color: var(--ink-2); }
.ask-in { padding: 10px 12px 14px; border-top: 1px solid var(--line); flex: none; }
.ask-box { display: flex; align-items: flex-end; gap: 6px; border: 1px solid var(--line-2); border-radius: 10px; padding: 6px 6px 6px 11px; background: var(--surface); box-shadow: var(--sh-1); }
.ask-box:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(23,24,27,.07); }
.ask-box textarea { flex: 1; border: 0; outline: none; resize: none; font-size: 13px; line-height: 1.45; padding: 4px 0; max-height: 120px; background: transparent; }
.ask-box .ctx { font-size: 11px; color: var(--faint); margin: 0 0 6px 2px; display: flex; gap: 6px; align-items: center; }
.send { width: 28px; height: 28px; border-radius: 7px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.send svg { width: 14px; height: 14px; }

/* ───────── Focus mode ───────── */
.focus { position: fixed; inset: 0; z-index: 40; background: rgba(247,247,245,.985); backdrop-filter: blur(6px); display: flex; flex-direction: column; animation: fadeIn .22s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.focus-top { height: 56px; display: flex; align-items: center; gap: 14px; padding: 0 22px; }
.focus-top .ttl { font-weight: 600; }
.focus-top .ttl span { color: var(--faint); font-weight: 500; margin-left: 8px; }
.dots { display: flex; gap: 5px; margin-left: 10px; }
.dots i { width: 22px; height: 3px; border-radius: 2px; background: var(--line-2); }
.dots i.d { background: var(--ink); }
.dots i.c { background: var(--accent); }
.focus-top .sp { flex: 1; }
.focus-stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 0 24px 40px; overflow: auto; }
.fcard { width: min(760px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-3); padding: 34px 40px 28px; display: flex; flex-direction: column; gap: 18px; }
.fcard .hd { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.fcard .hd b { color: var(--ink); font-weight: 600; }
.fcard .q { font: 500 32px/1.18 var(--serif); letter-spacing: -.015em; margin: 0; }
.fcard .rec { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.fcard .rec .lb { font: 600 10.5px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 4px; }
.fcard .yce { grid-template-columns: 1.2fr 1fr 1fr; gap: 10px; }
.fcard .yce button { height: 70px; padding: 0 18px; border-radius: 12px; }
.fcard .yce button b { font: 500 22px var(--serif); }
.fcard .yce button small { font-size: 12px; }
.fcard .yce button kbd { right: 10px; top: 10px; }
.fcard .why { font-size: 13.5px; }
.focus-foot { display: flex; justify-content: center; gap: 18px; padding: 0 0 22px; color: var(--faint); font-size: 12px; }
.focus-foot span { display: inline-flex; gap: 6px; align-items: center; }
.fsum { width: min(620px, 100%); text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-3); padding: 34px 40px; display: flex; flex-direction: column; gap: 14px; }
.fsum h2 { font: 500 30px/1.2 var(--serif); margin: 0; letter-spacing: -.01em; }
.fsum .li { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; font-size: 13px; padding: 7px 0; border-top: 1px solid var(--line); align-items: baseline; }

/* ───────── Layer (documents, celebration) ───────── */
.layer { position: fixed; left: 0; right: 0; top: var(--top-h); bottom: 0; z-index: 20; background: var(--bg); display: grid; grid-template-columns: 252px minmax(0, 1fr) 360px; animation: fadeIn .18s ease; }
.doc-nav { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--bg); }
.doc-nav .hd { padding: 14px 14px 8px; display: flex; flex-direction: column; gap: 6px; }
.doc-nav .hd .back { align-self: flex-start; }
.doc-nav .hd h3 { margin: 4px 0 0; font-size: 14px; font-weight: 600; line-height: 1.3; }
.doc-nav .list { flex: 1; overflow-y: auto; padding: 4px 10px 70px; scrollbar-width: thin; }
.ch { display: grid; grid-template-columns: 22px 1fr auto; gap: 4px; align-items: baseline; padding: 6px 8px; border-radius: 6px; width: 100%; text-align: left; font-size: 12.5px; color: var(--ink-2); }
.ch:hover { background: #ededea; }
.ch.on { background: var(--surface); box-shadow: var(--sh-1); color: var(--ink); font-weight: 550; }
.ch .no { font: 500 10.5px var(--mono); color: var(--faint); }
.ch .vt { font-size: 10px; font-weight: 600; color: var(--accent); }
.ch .vt.ok { color: var(--ok); }
.doc-centre { overflow-y: auto; padding: 26px 32px 120px; scrollbar-width: thin; }
.doc-tools { max-width: 760px; margin: 0 auto 14px; display: flex; align-items: center; gap: 8px; }
.doc-tools .sp { flex: 1; }
.sheet { max-width: 760px; margin: 0 auto; background: #fff; border: 1px solid var(--line); box-shadow: var(--sh-2); border-radius: 3px; padding: 56px 72px 64px; font-family: var(--serif); font-size: 15.5px; line-height: 1.62; color: #1d1e22; }
.sheet .run { display: flex; justify-content: space-between; font: 500 10px var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.sheet h1 { font: 600 30px/1.2 var(--serif); margin: 0 0 6px; letter-spacing: -.01em; }
.sheet .lede { color: var(--muted); font-size: 15px; margin: 0 0 26px; font-family: var(--sans); }
.sheet h2 { font: 600 20px/1.3 var(--serif); margin: 34px 0 10px; scroll-margin-top: 20px; }
.sheet h2 .no { font: 500 12px var(--mono); color: var(--faint); margin-right: 10px; vertical-align: 2px; }
.sheet p { margin: 0 0 12px; }
.sheet table { width: 100%; border-collapse: collapse; font-family: var(--sans); font-size: 13px; margin: 8px 0 16px; }
.sheet td, .sheet th { padding: 7px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.sheet th { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; }
.sheet td.n, .sheet th.n { text-align: right; font-variant-numeric: tabular-nums; }
.sheet .sec.cur { position: relative; }
.sheet .sec.cur::before { content: ''; position: absolute; left: -36px; top: 40px; bottom: 6px; width: 2px; background: var(--ink); border-radius: 2px; }
.voice { margin: 10px 0 14px; padding: 14px 16px; border: 1.5px dashed var(--accent-line); border-radius: 10px; background: #fffcf4; font-family: var(--sans); font-size: 13px; display: flex; flex-direction: column; gap: 8px; }
.voice .lb { font: 600 10.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: flex; align-items: center; gap: 6px; }
.voice textarea { width: 100%; min-height: 64px; border: 1px solid var(--line-2); border-radius: 8px; padding: 9px 11px; font-size: 13.5px; outline: none; resize: vertical; background: #fff; }
.voice textarea:focus { border-color: var(--ink); }
.voice .r { display: flex; gap: 6px; align-items: center; }
.voice .r .sp { flex: 1; }
.voice .out { font-family: var(--serif); font-size: 15.5px; line-height: 1.6; color: var(--ink); padding: 4px 2px; }
.voice.done { border-style: solid; border-color: #cfe7db; background: #f7fbf9; }
.voice.done .lb { color: var(--ok); }
.ins { background: #e5f3ea; color: #135a3d; text-decoration: none; border-bottom: 1px solid #9fd1b5; }
.del { background: #f9e6e4; color: #8e2f29; text-decoration: line-through; text-decoration-color: rgba(142,47,41,.6); }
.chg { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; border: 1px solid var(--line); position: relative; font-family: var(--serif); }
.chg .meta { font: 500 11px var(--sans); color: var(--faint); display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.chg .meta b { color: var(--ink-2); font-weight: 600; }
.chg .acts { display: flex; gap: 6px; margin-top: 10px; font-family: var(--sans); align-items: center; }
.chg .acts .sp { flex: 1; }
.chg.accepted { border-color: #cfe7db; background: #fafdfb; }
.chg.rejected { border-color: #ecd8d5; background: #fdfafa; }
.chg .verdict { font: 600 10px var(--sans); letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; }
.verdict.accept { background: var(--ok-bg); color: var(--ok); }
.verdict.counter { background: var(--work-bg); color: var(--work); }
.verdict.escalate { background: var(--bad-bg); color: var(--bad); }
.verdict.ask { background: var(--accent-bg); color: var(--accent); }
.doc-side { border-left: 1px solid var(--line); background: var(--surface); overflow-y: auto; padding: 16px 16px 70px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; }
.doc-side .blk { display: flex; flex-direction: column; gap: 8px; }
.doc-side .note { font-size: 12.5px; color: var(--ink-2); padding: 10px 12px; border-radius: 8px; background: #fafaf8; border: 1px solid var(--line); }
.src { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; font-size: 12px; padding: 5px 0; border-top: 1px solid var(--line); }
.src:first-child { border-top: 0; }
.src .no { font: 500 10.5px var(--mono); color: var(--faint); }
.src .rl { font-size: 10.5px; color: var(--ok); font-weight: 600; }
.src .rl.med { color: var(--accent); }

/* ───────── Portfolio ───────── */
.pf { padding: 20px 24px 70px; display: flex; flex-direction: column; gap: 16px; }
.pf-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.pf-stats { display: flex; gap: 22px; }
.pf-stats div { display: flex; flex-direction: column; align-items: flex-end; }
.pf-stats b { font: 600 18px var(--sans); letter-spacing: -.015em; }
.pf-stats span { font-size: 10.5px; color: var(--faint); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.graph-card { position: relative; height: 440px; border-radius: 14px; overflow: hidden; background: #0d1016; border: 1px solid #1d222c; box-shadow: var(--sh-2); }
.graph-card canvas { display: block; }
.graph-ui { position: absolute; left: 14px; top: 12px; right: 14px; display: flex; gap: 10px; align-items: flex-start; pointer-events: none; color: #c9ced8; }
.graph-ui .t { font-weight: 600; color: #fff; font-size: 13.5px; }
.graph-ui .t span { display: block; color: #8a92a2; font-weight: 450; font-size: 11.5px; margin-top: 2px; }
.graph-ui .sp { flex: 1; }
.graph-ui .filters { display: flex; gap: 4px; pointer-events: auto; }
.graph-ui .filters button { white-space: nowrap; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; color: #aab1be; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.graph-ui .filters button.on { color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); }
.graph-legend { position: absolute; left: 14px; bottom: 12px; display: flex; gap: 12px; font-size: 11px; color: #8a92a2; pointer-events: none; }
.graph-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.graph-info { position: absolute; right: 14px; bottom: 12px; width: 240px; background: rgba(18,22,30,.92); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px 14px; color: #c9ced8; font-size: 12px; display: flex; flex-direction: column; gap: 4px; backdrop-filter: blur(6px); }
.graph-info b { color: #fff; font-size: 13px; }
.graph-info .rel { color: #8a92a2; font-size: 11.5px; }
.graph-info button { align-self: flex-start; margin-top: 6px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 11.5px; color: #fff; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16); }
.graph-tip { position: absolute; pointer-events: none; padding: 4px 8px; border-radius: 5px; background: rgba(10,12,18,.9); color: #fff; font-size: 11.5px; border: 1px solid rgba(255,255,255,.12); transform: translate(10px, -50%); white-space: nowrap; display: none; }
.graph-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: #8a92a2; }
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.kpi { padding: 14px; display: flex; flex-direction: column; gap: 8px; text-align: left; cursor: pointer; }
.kpi:hover { border-color: var(--line-2); box-shadow: var(--sh-2); }
.kpi .hd { display: flex; align-items: center; gap: 6px; }
.kpi .hd b { font-weight: 600; font-size: 13px; }
.kpi .hd .h { width: 7px; height: 7px; border-radius: 50%; margin-left: auto; }
.h.green { background: var(--ok); } .h.amber { background: var(--accent); } .h.red { background: var(--bad); }
.kpi .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.kpi .nums b { font: 600 15px var(--sans); letter-spacing: -.01em; display: block; }
.kpi .nums span { font-size: 10.5px; color: var(--faint); }
.kpi svg.spark { width: 100%; height: 30px; }
.kpi .al { font-size: 11.5px; color: var(--muted); line-height: 1.35; }
.kpi .al.amber { color: var(--accent); }
.pf-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--line); align-items: start; font-size: 12.5px; }
.alert:first-child { border-top: 0; }
.alert .h { margin-top: 5px; width: 7px; height: 7px; border-radius: 50%; }
.alert b { font-weight: 600; }
.ws { display: grid; grid-template-columns: 1fr 110px 40px; gap: 10px; align-items: center; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12.5px; }
.ws:first-child { border-top: 0; }
.ws .co { color: var(--faint); font-size: 11.5px; }
.ws .pb { height: 4px; background: var(--sunk); border-radius: 2px; overflow: hidden; }
.ws .pb i { display: block; height: 100%; background: var(--ink-2); }
.ws .pc { font: 500 11px var(--mono); color: var(--muted); text-align: right; }
.exit-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 18px 20px; background: linear-gradient(120deg, #fffaf0, #fff 55%); border-color: #ecdcb4; align-items: center; }
.exit-card h3 { margin: 0; font-size: 15px; font-weight: 600; }
.exit-card p { margin: 4px 0 0; color: var(--muted); font-size: 12.5px; }

/* celebration */
.celebrate { position: fixed; inset: 0; z-index: 45; background: radial-gradient(ellipse at 50% 30%, #2a2418 0%, #111013 60%, #0b0b0d 100%); display: grid; place-items: center; animation: fadeIn .6s ease; color: #e9e3d3; overflow: hidden; }
.celebrate::before { content: ''; position: absolute; left: 50%; top: -20%; width: 900px; height: 900px; transform: translateX(-50%); background: radial-gradient(circle, rgba(212,170,80,.22), transparent 62%); animation: glow 4s ease-in-out infinite alternate; pointer-events: none; }
@keyframes glow { to { opacity: .6; transform: translateX(-50%) scale(1.06); } }
.tomb { position: relative; width: 420px; padding: 44px 40px 36px; border: 1px solid rgba(212,170,80,.45); border-radius: 4px; background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01)); text-align: center; box-shadow: 0 40px 120px -20px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.06); animation: tomb 1.2s cubic-bezier(.2,.8,.2,1); }
@keyframes tomb { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.tomb .k { font: 600 10px var(--sans); letter-spacing: .24em; text-transform: uppercase; color: #c9a24a; }
.tomb h2 { font: 500 36px/1.1 var(--serif); margin: 16px 0 6px; color: #fff; }
.tomb .s { color: #a7a091; font-size: 13px; }
.tomb hr { border: 0; border-top: 1px solid rgba(212,170,80,.3); margin: 22px 40px; }
.tomb .ret { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tomb .ret b { display: block; font: 500 26px var(--serif); color: #f3e4bd; }
.tomb .ret span { font-size: 10.5px; color: #8f887a; letter-spacing: .08em; text-transform: uppercase; }
.tomb .ft { margin-top: 24px; font-size: 11.5px; color: #7f796d; }
.celebrate .acts { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.celebrate .acts .btn { background: rgba(255,255,255,.06); color: #e9e3d3; border-color: rgba(255,255,255,.14); box-shadow: none; }
.celebrate .acts .btn:hover { background: rgba(255,255,255,.12); }
.celebrate .thanks { position: absolute; top: 34px; left: 0; right: 0; text-align: center; font-family: var(--serif); font-style: italic; color: #a7a091; font-size: 15px; }

/* ───────── Reports ───────── */
.rp { padding: 20px 24px 70px; }
.rp-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 14px; }
.rp-head .sp { flex: 1; }
.rp-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.rp-tabs button { height: 34px; padding: 0 10px; color: var(--muted); font-weight: 500; position: relative; }
.rp-tabs button.on { color: var(--ink); }
.rp-tabs button.on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--ink); }
.tbl-card { overflow: hidden; }
.tbl-card .cap { padding: 14px 16px 10px; display: flex; align-items: baseline; gap: 10px; }
.tbl-card .cap b { font-weight: 600; }
.tbl-card .cap span { color: var(--faint); font-size: 12px; }
table.t { width: 100%; border-collapse: collapse; font-size: 12.5px; font-variant-numeric: tabular-nums; }
table.t th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); font-weight: 600; padding: 8px 12px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fafaf8; white-space: nowrap; }
table.t td { padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: normal; line-height: 1.4; }
table.t td.n { white-space: nowrap; }
table.t td.wrap { min-width: 200px; }
table.t tr:last-child td { border-bottom: 0; }
table.t .n { text-align: right; }
table.t tr.tot td { font-weight: 600; background: #fafaf8; }
table.t tbody tr:hover td { background: #fbfbf9; }
table.t td .strike { text-decoration: line-through; color: var(--faint); }
.rp-note { margin-top: 10px; font-size: 12px; color: var(--faint); }
.rp-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }

/* ───────── Cmd-K, help, popovers, toasts ───────── */
.cmdk { position: fixed; inset: 0; z-index: 60; background: rgba(20,20,25,.18); display: flex; justify-content: center; padding-top: 12vh; animation: fadeIn .12s; }
.cmdk-box { width: 600px; max-height: 460px; background: var(--surface); border-radius: 14px; box-shadow: var(--sh-3); border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; align-self: flex-start; }
.cmdk-box input { border: 0; outline: none; height: 52px; padding: 0 18px; font-size: 15px; border-bottom: 1px solid var(--line); }
.cmdk-list { overflow-y: auto; padding: 6px; }
.cmdk-g { font: 600 10.5px var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 8px 10px 4px; }
.cmdk-i { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; align-items: center; height: 38px; padding: 0 10px; border-radius: 8px; width: 100%; text-align: left; }
.cmdk-i.on { background: var(--sunk); }
.cmdk-i svg { width: 15px; height: 15px; color: var(--muted); }
.cmdk-i .s { font-size: 12px; color: var(--faint); }
.cmdk-i .s b { font-weight: 500; color: var(--muted); }
.cmdk-foot { border-top: 1px solid var(--line); padding: 8px 14px; display: flex; gap: 14px; font-size: 11.5px; color: var(--faint); }
.help { position: fixed; inset: 0; z-index: 60; background: rgba(20,20,25,.2); display: grid; place-items: center; animation: fadeIn .12s; }
.help-box { width: 640px; background: var(--surface); border-radius: 14px; box-shadow: var(--sh-3); padding: 22px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 30px; }
.help-box h3 { grid-column: 1 / -1; margin: 0 0 8px; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.help-box .k { display: flex; justify-content: space-between; align-items: center; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.help-box .k span:last-child { display: flex; gap: 3px; }
.help-box .ft { grid-column: 1 / -1; margin-top: 12px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--faint); }
.pop { position: fixed; z-index: 50; width: 340px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--sh-3); padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: rise .14s ease; }
.pop .hd { display: flex; align-items: center; gap: 8px; }
.pop .hd b { font-weight: 600; }
.pop .phone-art { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: var(--sunk); border-radius: 10px; font-size: 12.5px; }
.pop .phone-art .ph { width: 26px; height: 42px; border-radius: 6px; border: 2px solid var(--ink-2); position: relative; flex: none; }
.pop .phone-art .ph::after { content: ''; position: absolute; left: 7px; right: 7px; top: 3px; height: 2px; border-radius: 1px; background: var(--ink-2); }
.toasts { position: fixed; right: calc(var(--panel-w) + 16px); bottom: 18px; z-index: 70; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; pointer-events: none; }
.toast { pointer-events: auto; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 12.5px; box-shadow: var(--sh-3); max-width: 420px; display: flex; gap: 12px; align-items: center; animation: rise .2s ease; }
.toast .sm { color: rgba(255,255,255,.55); }
.toast button { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.4); }
.toast.phone { background: #fff; color: var(--ink); border: 1px solid #d6dff9; }
.toast.phone .sm { color: var(--faint); }
.toast.phone::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--work); flex: none; }
.toast.phone button { color: var(--work); }
.menu { position: fixed; z-index: 55; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--sh-3); padding: 4px; min-width: 180px; animation: rise .1s; }
.menu button { display: flex; justify-content: space-between; width: 100%; text-align: left; padding: 7px 10px; border-radius: 6px; font-size: 12.5px; }
.menu button:hover { background: var(--sunk); }
.menu button span { color: var(--faint); font-size: 11.5px; }

/* print */
@media print {
  body { overflow: visible; background: #fff; }
  .top, .tree, .panel, .rp-tabs, .rp-head .btn, #toasts, .sk-chrome, [class*="chrome"] { display: none !important; }
  .app { display: block; height: auto; }
  .centre, .page, .dpage { overflow: visible !important; height: auto; }
  .card { box-shadow: none; }
}
.chip-btn .dot.idle { background: var(--ghost); box-shadow: 0 0 0 3px var(--sunk); }

.autobar { height: 2px; background: var(--sunk); border-radius: 2px; overflow: hidden; margin-top: 6px; }
.autobar i { display: block; height: 100%; width: 100%; background: var(--ink-2); transform-origin: 0 50%; animation: autobar 2.6s linear forwards; }
.fsum:hover .autobar i { animation-play-state: paused; }
@keyframes autobar { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.celebrate kbd { background: transparent; color: #a7a091; border-color: rgba(255,255,255,.2); }
.kpi .big { display: flex; flex-direction: column; gap: 0; }
.kpi .big b { font: 600 22px var(--sans); letter-spacing: -.02em; }
.kpi .big span { font-size: 12px; color: var(--faint); }
.kpi .row { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.kpi .row b { color: var(--ink); font-weight: 600; }

.app.pmin { grid-template-columns: var(--tree-w) minmax(0, 1fr) 56px; }
.app.pmin .toasts { right: 72px; }
.prail { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; }
.prail button { width: 40px; height: 40px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); position: relative; }
.prail button:hover { background: var(--sunk); color: var(--ink); }
.prail button svg { width: 17px; height: 17px; }
.prail .n { position: absolute; top: 3px; right: 2px; font: 600 9.5px var(--mono); background: var(--ink); color: #fff; border-radius: 8px; padding: 1px 4px; }
.prail .vl { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 11.5px; color: var(--faint); margin-top: 8px; letter-spacing: .02em; }

.mail-i { cursor: pointer; border-radius: 6px; }
.mail-i:hover .fr { text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
.mail-x { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; padding: 8px 0 4px; font-size: 12.5px; cursor: default; }
.mail-x .draft { font-family: var(--serif); font-size: 14px; color: var(--ink-2); padding: 10px 12px; background: #fafaf8; border: 1px solid var(--line); border-radius: 8px; }
.mail-x .r { display: flex; gap: 6px; align-items: center; }
.mail-i .pill.phone svg { width: 10px; height: 10px; }
@media (max-width: 1360px) { #panel .onecard .yce button kbd { display: none; } .srail .nm { font-size: 10.5px; letter-spacing: -.01em; } .layer { grid-template-columns: 228px minmax(0, 1fr) 330px; } .sheet { padding: 48px 52px 56px; } .sheet .run span:last-child { display: none; } }

.onecard .hd .ctx { font: 500 11px var(--sans); color: var(--muted); white-space: nowrap; }
.onecard .hd .ctx:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
