/* Deck Review — monochrome greys, colour only for meaning, Inter 400/500,
   white cards with layered edges, filled wells, radii stepping 16 → 12 → 10 → 6. */
@font-face {
  font-family: "Inter";
  src: url("/vendor/InterVariable.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
:root {
  --bg: #fafbfc; --surface: #ffffff; --well: #f3f5f8; --well-2: #e9edf2; --stage: #eef1f5;
  --text: #121a24; --text-2: #556070; --text-3: #6b7684; --faint: #b2bac5;
  --line: #eef1f4; --line-2: #e4e8ee; --line-3: #d8dee6;
  --dark: #15212c; --dark-2: #0b141c; --on-dark: #ffffff;
  --hover: #f6f9fc; --hover-2: #eef1f5; --pill: #ffffff; --list-bg: #f7fafd; --card-line: #e8ebf0; --track: #dde2e8; --scroll: #d5dbe2;
  --thumb-n: rgba(255, 255, 255, .92); --login-1: #e3e8ee; --login-2: #d3dae3; --mine: #eaf4fc;
  --danger: #c93a32; --ok: #2f6f3e; --ok-2: #5aa46a;
  --del-bg: #fde4e2; --del-fg: #d93a33; --ins-bg: #dceffb; --ins-fg: #0b6aa0;
  --tag-n-bg: #edf0f3; --tag-n-line: #dbe0e6; --tag-n-fg: #4f5a67;
  --tag-y-bg: #fbf5df; --tag-y-line: #f0e3a6; --tag-y-fg: #3d3416;
  --tag-g-bg: #e6f6ea; --tag-g-line: #b5e2c0; --tag-g-fg: #1f4a26;
  --tag-b-bg: #e3effb; --tag-b-line: #a9cdf0; --tag-b-fg: #133e66;
  --tag-r-bg: #fce6e5; --tag-r-line: #f1b5b2; --tag-r-fg: #5c2420;
  --elan: #08a3e9;
  --r-card: 16px; --r-md: 12px; --r: 10px; --r-sm: 6px;
  --edge: 0 0 0 1px rgba(15, 25, 40, .06), 0 1px 2px rgba(15, 25, 40, .04);
  --float: 0 0 0 1px rgba(15, 25, 40, .08), 0 0 0 4px rgba(255, 255, 255, .5), 0 2px 4px rgba(15, 25, 40, .06), 0 16px 40px rgba(20, 35, 55, .16);
  font-family: "Inter", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  font-feature-settings: "cv11";
  font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; }
[v-cloak] { display: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
.spacer { flex: 1; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.muted, .t-2 { color: var(--text-2); }
.t-3 { color: var(--text-3); }
.small { font-size: 13px; }
.nums { font-variant-numeric: tabular-nums; }
.error { color: var(--danger); font-size: 13px; }
.ic { flex-shrink: 0; display: block; }

/* severity: icon colour, halo, tint (colour only where it means something) */
.sev-critical { --c: #ef4136; --halo: #fbd6d1; --tint: #fdeceb; }
.sev-major { --c: #ee9632; --halo: #fbe5cb; --tint: #fdf3e6; }
.sev-minor { --c: #4b8ee0; --halo: #d9e7fa; --tint: #ecf3fd; }
.sev-suggestion { --c: #9ca1aa; --halo: #e7e9ee; --tint: #f0f3f6; }
.sev-client { --c: #a35bc6; --halo: #eedff5; --tint: #f7eefa; }
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d141b; --surface: #151e28; --well: #1c2631; --well-2: #24303c; --stage: #0a1016;
  --text: #e6ebf1; --text-2: #a8b3bf; --text-3: #8794a3; --faint: #4f5b68;
  --line: #1f2a35; --line-2: #2a3642; --line-3: #36434f;
  --dark: #08a3e9; --dark-2: #3bb8f0; --on-dark: #06121b;
  --hover: #1d2833; --hover-2: #202c38; --pill: #18222c; --list-bg: #111921; --card-line: #243039; --track: #2a3642; --scroll: #2e3a46;
  --thumb-n: rgba(13, 20, 27, .85); --login-1: #16212c; --login-2: #0b1117; --mine: #12304a;
  --danger: #f2766d; --ok: #3f8f53; --ok-2: #6cc17f;
  --del-bg: #3a1a1a; --del-fg: #ff8a80; --ins-bg: #0f3049; --ins-fg: #7cc8f5;
  --tag-n-bg: #1f2a35; --tag-n-line: #2e3a46; --tag-n-fg: #b4bfcb;
  --tag-y-bg: #2e2812; --tag-y-line: #574a1d; --tag-y-fg: #f0dc8c;
  --tag-g-bg: #12291a; --tag-g-line: #24502f; --tag-g-fg: #9fdcaf;
  --tag-b-bg: #0f2a42; --tag-b-line: #1d4d75; --tag-b-fg: #a6d3f7;
  --tag-r-bg: #35181a; --tag-r-line: #6a2a2b; --tag-r-fg: #f5b1ab;
  --edge: 0 0 0 1px rgba(255, 255, 255, .09), 0 1px 2px rgba(0, 0, 0, .3);
  --float: 0 0 0 1px rgba(255, 255, 255, .08), 0 2px 4px rgba(0, 0, 0, .3), 0 16px 40px rgba(0, 0, 0, .5);
}
:root[data-theme="dark"] [class*="sev-"] { --halo: color-mix(in srgb, var(--c) 30%, var(--surface)); --tint: color-mix(in srgb, var(--c) 18%, var(--surface)); }
:root[data-theme="dark"] .sev-suggestion { --c: #7d8896; }
:root[data-theme="dark"] .seg { background: var(--well); }
:root[data-theme="dark"] .seg button.active { background: var(--well-2); }
/* pins sit on the slide image, which stays light */
:root[data-theme="dark"] .pin { background: #ffffff; color: #121a24; }
:root[data-theme="dark"] .pin.on { background: #15212c; color: #ffffff; }
:root[data-theme="dark"] .thumb img, :root[data-theme="dark"] .slide img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06); }

/* 20px halo with a glyph: triangle / half disc / dot / ring */
.sev-icon { position: relative; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--halo); display: inline-block; }
.sev-icon::after { content: ""; position: absolute; inset: 0; margin: auto; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.sev-icon.sev-critical::after { width: 10px; height: 9px; border-radius: 1px; clip-path: polygon(50% 0, 100% 100%, 0 100%); top: -1px; }
.sev-icon.sev-major::after { background: linear-gradient(90deg, var(--c) 50%, transparent 50%); box-shadow: inset 0 0 0 1.5px var(--c); }
.sev-icon.sev-minor::after { width: 7px; height: 7px; }
.sev-icon.sev-suggestion::after { width: 8px; height: 8px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }

/* buttons */
.btn, .pill, .icon-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 32px; padding: 0 12px;
  border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface); color: var(--text);
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; white-space: nowrap; user-select: none;
  box-shadow: 0 1px 2px rgba(15, 25, 40, .04); transition: background .12s, border-color .12s; }
.btn:hover, .pill:hover, .icon-btn:hover { background: var(--hover); border-color: var(--line-3); }
.btn .ic, .pill .ic { color: var(--text-2); }
.btn.dark, .pill.dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); box-shadow: 0 1px 2px rgba(15, 25, 40, .12); }
.btn.dark .ic, .pill.dark .ic { color: var(--on-dark); }
.btn.dark:hover, .pill.dark:hover { background: var(--dark-2); border-color: var(--dark-2); }
.btn.ghost { background: var(--well); border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: var(--well-2); }
.btn.wide { width: 100%; height: 38px; }
.btn.pressed { background: var(--well-2); border-color: var(--line-3); }
.btn.dark.pressed { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn:disabled, .pill:disabled, .icon-btn:disabled { opacity: .4; cursor: default; }
.pill { border-radius: 999px; background: var(--pill); padding: 0 14px; }
.pill.icon-only { width: 32px; padding: 0; }
.icon-btn { width: 32px; padding: 0; color: var(--text-2); }
.icon-btn.well { background: var(--well); border-color: transparent; box-shadow: none; width: 34px; height: 34px; }
.icon-btn.well.on { background: var(--well-2); color: var(--text); }
.icon-btn.ghostless { border-color: transparent; box-shadow: none; background: transparent; }
.icon-btn.ghostless:hover { background: var(--well); }
.quiet-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 500; }
.quiet-link:hover { color: var(--text); }
.link { color: var(--text-2); font-size: 13px; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
.link:hover { color: var(--text); }

/* tags: pastel fill, same-hue border, dark same-hue text */
.tag { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 999px; border: 1px solid; font-size: 12.5px; white-space: nowrap; }
.tag.neutral { background: var(--tag-n-bg); border-color: var(--tag-n-line); color: var(--tag-n-fg); }
.tag.yellow { background: var(--tag-y-bg); border-color: var(--tag-y-line); color: var(--tag-y-fg); }
.tag.green { background: var(--tag-g-bg); border-color: var(--tag-g-line); color: var(--tag-g-fg); }
.tag.blue { background: var(--tag-b-bg); border-color: var(--tag-b-line); color: var(--tag-b-fg); }
.tag.red { background: var(--tag-r-bg); border-color: var(--tag-r-line); color: var(--tag-r-fg); }

/* inputs */
.well-input { width: 100%; height: 36px; padding: 0 12px; border: 0; border-radius: var(--r); background: var(--well); font: inherit; color: var(--text); outline: none; }
textarea.well-input { height: auto; padding: 9px 12px; resize: vertical; line-height: 1.5; }
.well-input:focus { box-shadow: 0 0 0 2px var(--line-3); background: var(--hover-2); }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: var(--well); border-radius: var(--r); color: var(--text-3); min-width: 0; flex: 1; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--text); outline: none; }
.search input::placeholder, .well-input::placeholder, textarea::placeholder { color: var(--text-3); }

/* brand */
.wordmark { font-weight: 700; letter-spacing: .01em; font-size: 22px; color: var(--text); }
.wordmark .brace { color: var(--elan); font-weight: 400; margin: 0 1px; }
.wordmark.small { font-size: 14px; }

/* frame */
.app { height: 100vh; display: flex; flex-direction: column; }
.bar { height: 56px; flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px; }
.bar.contained { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.crumbs .tag { margin-left: 4px; }
.crumbs { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.crumb { color: var(--text-3); white-space: nowrap; }
a.crumb:hover { color: var(--text); }
.crumb.current { color: var(--text); font-weight: 500; max-width: 520px; }
.crumb-sep { color: var(--faint); }
.page { flex: 1; min-height: 0; display: flex; flex-direction: column; }

/* card + floating sheet */
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--float); }
.overlay { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(120% 120% at 50% 40%, rgba(214, 221, 230, .55), rgba(188, 198, 210, .75)); backdrop-filter: blur(2px); }
.sheet { width: 520px; max-width: 100%; display: flex; flex-direction: column; }
.sheet.narrow { width: 380px; }
.sheet-head { display: flex; align-items: center; height: 52px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--line); font-weight: 500; }
.sheet-head > span:first-child { flex: 1; }
.sheet-body { padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.sheet-foot { display: flex; align-items: center; gap: 8px; padding: 12px 18px 16px; }
.drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 150px; padding: 20px;
  border-radius: var(--r-md); background: var(--well); color: var(--text-2); cursor: pointer; text-align: center; transition: box-shadow .12s, background .12s; }
.drop:hover { background: var(--hover-2); }
.drop.over { box-shadow: inset 0 0 0 2px var(--text); background: var(--well-2); }
.drop.filled { color: var(--text); }
.drop b { font-weight: 500; color: var(--text); margin-top: 6px; }
.well-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 12px; border: 0; border-radius: var(--r);
  background: var(--well); color: var(--text); font: inherit; font-weight: 500; cursor: pointer; text-align: left; }
.well-row:hover { background: var(--well-2); }
.well-row .ic { color: var(--text-2); }
.well-row .push { margin-left: auto; color: var(--faint); }
.well-row .flip { transform: rotate(180deg); }
.options { display: flex; flex-direction: column; gap: 12px; padding: 4px 2px; }
.opt { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); }
.opt input[type=file] { font: inherit; font-size: 13px; color: var(--text); }

/* password */
.stage-center { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(120% 120% at 50% 40%, var(--login-1), var(--login-2)); }
.login { width: 360px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.login .wordmark { margin-bottom: 4px; }

/* reviews list */
.minibar { width: 56px; height: 4px; border-radius: 2px; background: var(--track); overflow: hidden; }
.minibar span { display: block; height: 100%; border-radius: 2px; background: var(--elan); }
.minibar span[style*="width: 0%"] { display: none; }
.row-del { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: transparent; cursor: pointer; }
.recent-row:hover .row-del { color: var(--text-3); }
.row-del:hover { color: var(--danger) !important; background: var(--well); }
.t-empty { padding: 16px 14px; color: var(--text-3); }

/* workspace */
.workspace { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 384px; gap: 16px; padding: 0 16px 16px; }
.doc { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: var(--stage); border-radius: var(--r-card); }
.doc-head { display: flex; align-items: center; gap: 2px; height: 52px; padding: 0 16px; flex-shrink: 0; }
.doc-head .seg { margin-right: 8px; }
.doc-title { color: var(--text-2); font-size: 13.5px; margin-left: 6px; }
.doc-head .icon-btn { width: 28px; height: 28px; border-radius: 6px; background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.doc-head .nums { margin-right: 6px; font-weight: 500; font-size: 13px; }
.doc-head .icon-btn:hover:not(:disabled) { background: rgba(15, 25, 40, .05); }
.banner { margin: 0 12px 10px; padding: 10px 14px; border-radius: var(--r); background: var(--tag-r-bg); color: var(--tag-r-fg); font-size: 13.5px; }
.doc-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 16px; padding: 0 16px 16px; }
.doc-empty { flex: 1; display: grid; place-items: center; }
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r); background: rgba(15, 25, 40, .05); }
.seg button { height: 26px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--text-2); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 2px rgba(15, 25, 40, .08); }
.seg button span { color: var(--text-3); font-weight: 400; margin-left: 4px; }
.pane .seg { background: var(--well); display: flex; }
.pane .seg button { flex: 1; }

.thumbs { overflow: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px 6px 12px 2px; scroll-padding-block: 16px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%); }
.thumb { position: relative; flex-shrink: 0; padding: 0; border: 0; border-radius: 8px; background: var(--well); cursor: pointer;
  box-shadow: 0 0 0 1px rgba(15, 25, 40, .06); transition: box-shadow .12s; }
.thumb:hover { box-shadow: 0 0 0 1px rgba(15, 25, 40, .18); }
.thumb.active { box-shadow: 0 0 0 2px var(--dark); }
.thumb img, .thumb-ph { display: block; width: 100%; aspect-ratio: var(--ar, 16 / 9); border-radius: 8px; }
.thumb.hidden img { opacity: .4; }
.thumb-n { position: absolute; left: 4px; bottom: 4px; padding: 0 4px; border-radius: 4px; background: var(--thumb-n); font-size: 10px; font-weight: 500; line-height: 14px; color: var(--text-2); box-shadow: 0 0 0 1px rgba(15, 25, 40, .05); }
.thumb-count { position: absolute; right: -6px; top: -6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px;
  background: var(--c); color: #fff; font-size: 10px; font-weight: 600; line-height: 16px; text-align: center; box-shadow: 0 0 0 2px var(--stage); }
.thumb-count.sev-minor, .thumb-count.sev-suggestion, .thumb-count.sev-client { background: var(--surface); color: color-mix(in srgb, var(--c) 75%, var(--text));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 0 0 2px var(--stage); }

.stage { min-width: 0; min-height: 0; container-type: size; display: flex; align-items: center; justify-content: center; }
.slide { position: relative; width: min(100cqw, calc(100cqh * var(--ar))); aspect-ratio: var(--ar); flex-shrink: 0;
  background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px rgba(15, 25, 40, .06), 0 8px 24px -8px rgba(20, 35, 55, .18); }
.slide img { display: block; width: 100%; height: 100%; user-select: none; }
.slide-ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text-3); }
.hl { position: absolute; border-radius: 6px; cursor: pointer; box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent); transition: box-shadow .12s, background .12s; }
.hl.on { box-shadow: 0 0 0 2px var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.hl.dec-reject { box-shadow: 0 0 0 1px rgba(15, 25, 40, .12); }
.pin { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 22px; min-width: 22px; padding: 0 7px 0 5px;
  border: 0; border-radius: 999px; background: var(--surface); color: var(--text); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(15, 25, 40, .1), 0 2px 6px rgba(15, 25, 40, .14); }
.pin-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pin.on { background: var(--dark); color: var(--on-dark); z-index: 3; }
.pin.dec-accept .pin-dot { background: var(--ok-2); }
.pin.dec-reject { opacity: .45; }

/* findings pane */
.pane { min-height: 0; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--edge); overflow: hidden; }
.pane-head { display: flex; flex-direction: column; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.pane-title { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }
.pane-title span { color: var(--text-3); font-weight: 600; margin-left: 4px; }
.sevstrip { display: flex; gap: 2px; height: 4px; }
.sevstrip span { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--c); transition: opacity .12s; }
.sevstrip span.dim { opacity: .2; }
.chips { display: flex; flex-wrap: nowrap; gap: 2px; margin: -2px -6px 0; overflow: hidden; }
.chip { flex: 0 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px; border: 0; border-radius: 6px; background: none;
  font: inherit; font-size: 12.5px; color: var(--text); white-space: nowrap; cursor: pointer; }
.chip:hover { background: var(--well); }
.chip .key { flex-shrink: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1.5px var(--c); transition: background .12s; }
.chip b { flex-shrink: 0; font-weight: 500; color: var(--text-3); font-variant-numeric: tabular-nums; }
.chip.off { color: var(--text-3); }
.chip.off .key { background: transparent; }
.chip.off span { text-decoration: line-through; text-decoration-color: var(--text-3); }
.pane-tools { display: flex; gap: 8px; }
.filters { display: flex; flex-direction: column; gap: 2px; padding: 6px; border-radius: var(--r-md); background: var(--well); }
.check { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 8px; font-size: 13px; cursor: pointer; }
.check:hover { background: var(--well-2); }
.check input { margin: 0; accent-color: var(--dark); }
.check .t-3 { margin-left: auto; }
.check .sev-icon { width: 16px; height: 16px; }
.pane-list { flex: 1; min-height: 0; overflow: auto; padding: 12px 10px 12px 16px; display: flex; flex-direction: column; gap: 6px; background: var(--list-bg);
  scrollbar-gutter: stable; }
/* thin scrollbars; the list's 6px gutter + 10px padding keeps cards aligned with the search field */
.pane-list::-webkit-scrollbar, .thumbs::-webkit-scrollbar, .activity::-webkit-scrollbar { width: 6px; }
.pane-list::-webkit-scrollbar-thumb, .thumbs::-webkit-scrollbar-thumb, .activity::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 3px; }
.pane-list::-webkit-scrollbar-track, .thumbs::-webkit-scrollbar-track, .activity::-webkit-scrollbar-track { background: transparent; }
.pane-empty { padding: 24px 8px; text-align: center; color: var(--text-3); }
.notes { padding: 14px 16px; background: var(--surface); }
.notes hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }

.fc { background: var(--surface); border: 1px solid var(--card-line); border-radius: var(--r-md); box-shadow: 0 1px 2px rgba(15, 25, 40, .04); transition: box-shadow .12s, border-color .12s; }
.fc:hover { border-color: var(--line-3); }
.fc.open { border-color: var(--line-3); box-shadow: 0 0 0 4px rgba(15, 25, 40, .03), 0 8px 22px rgba(20, 35, 55, .08); margin: 4px 0; }
.fc-head { display: flex; align-items: center; gap: 10px; min-height: 42px; padding: 0 12px; cursor: pointer; }
.fc-title { flex: 1; font-size: 13.5px; font-weight: 600; }
.fc-pin { height: 18px; min-width: 18px; padding: 0 5px; border-radius: 9px; font-size: 11px; font-weight: 600; line-height: 18px; text-align: center;
  color: var(--text-2); box-shadow: 0 0 0 1px var(--line-2); font-variant-numeric: tabular-nums; }
.fc.open .fc-pin { background: var(--dark); color: var(--on-dark); box-shadow: none; }
.fc-slide { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.fc-slide::before { content: "Slide "; }
.fc-replies { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--text-3); }
.fc .chev { color: var(--faint); transition: transform .15s; }
.fc.open .chev { transform: rotate(180deg); }
.fc.dec-reject:not(.open) .fc-title { color: var(--text-3); text-decoration: line-through; text-decoration-color: var(--line-3); }
.fc-body { display: flex; flex-direction: column; gap: 10px; padding: 0 12px 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.fc-meta { font-size: 12px; line-height: 16px; color: var(--text-3); }
.fc-sev { color: var(--c); font-weight: 500; }
.fc-text { color: var(--text); font-size: 14px; line-height: 22px; }
.redline { margin: 0; padding: 10px 12px 10px 24px; position: relative; border-radius: var(--r); background: var(--well); font-size: 13.5px; line-height: 1.6; color: var(--text-2); overflow-wrap: anywhere; }
.redline::before { content: ""; position: absolute; left: 12px; top: 10px; bottom: 10px; width: 2px; border-radius: 1px; background: var(--line-3); }
.redline .del { background: var(--del-bg); color: var(--del-fg); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--del-fg) 50%, transparent); padding: 0 2px; border-radius: 4px; }
.redline .ins { background: var(--ins-bg); color: var(--ins-fg); padding: 0 2px; border-radius: 4px; }
.redline .quote { color: var(--text); }
.reply { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; padding: 8px 10px; border-radius: var(--r); background: var(--well); }
.reply b { font-weight: 500; white-space: nowrap; }
.reply span { flex: 1; white-space: pre-wrap; color: var(--text); }
.reply.mine { background: var(--mine); }
.reply .x { display: grid; place-items: center; width: 20px; height: 20px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); cursor: pointer; }
.reply .x:hover { background: rgba(15, 25, 40, .06); color: var(--text); }
.composer textarea { width: 100%; padding: 9px 12px; border: 0; border-radius: var(--r); background: var(--well); font: inherit; font-size: 13.5px; resize: vertical; outline: none; }
.composer textarea:focus { box-shadow: 0 0 0 2px var(--line-3); }
.fc-foot { display: flex; align-items: center; gap: 8px; padding-top: 2px; }

.pane-foot { flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--surface); }
.pane-progress { display: flex; align-items: center; font-size: 13px; }
.pane-progress b { color: var(--text); font-weight: 600; }
.pane-actions { display: flex; gap: 8px; }
.pane-actions .btn { flex: 1; }

.activity { list-style: none; margin: 0; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; overflow: auto; font-size: 13px; color: var(--text-2); }
.activity li { display: flex; align-items: flex-start; gap: 10px; min-width: 0; }
.activity li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity li i { flex-shrink: 0; width: 6px; height: 6px; margin-top: 7px; border-radius: 50%; background: var(--line-3); }
.activity .act-note { color: var(--text); }
.activity .act-note i { background: var(--text-2); }
.activity .act-error { color: var(--danger); }
.activity .act-live { color: var(--text-3); align-items: center; }
.spinner { width: 14px; height: 14px; flex-shrink: 0; border-radius: 50%; border: 2px solid var(--well-2); border-top-color: var(--text-2); animation: spin .8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* notes markdown */
.md { font-size: 13.5px; line-height: 1.6; color: var(--text); }
.md p { margin: 6px 0; }
.md ul, .md ol { margin: 6px 0; padding-left: 20px; }
.md li { margin: 3px 0; }
.md code { background: var(--well); padding: 1px 5px; border-radius: 4px; font-size: 12.5px; }
.md h4 { margin: 14px 0 4px; font-size: 14px; font-weight: 600; }
.md table { border-collapse: collapse; margin: 8px 0; font-size: 13px; }
.md th, .md td { border-bottom: 1px solid var(--line); padding: 5px 10px 5px 0; text-align: left; }
.md th { color: var(--text-2); font-weight: 500; }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 340px; }
  .doc-body { grid-template-columns: 88px minmax(0, 1fr); }
  .thead, .tr { grid-template-columns: minmax(0, 1fr) 120px 110px 40px; }
  .thead > :nth-child(3), .thead > :nth-child(4), .tr > :nth-child(3), .tr > :nth-child(4) { display: none; }
}

/* ---------- start screen ---------- */
.link { color: var(--text-2); cursor: pointer; }
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.status.blue i { background: var(--elan); animation: pulse 1.6s ease-in-out infinite; }
.status.yellow i { background: #e0a21b; }
.status.green i { background: var(--ok-2); }
.status.red i { background: var(--danger); }
@keyframes pulse { 50% { opacity: .35; } }

.home { width: 100%; max-width: 760px; margin: 0 auto; padding: 10vh 20px 96px; }
.home-title { margin-bottom: 24px; font-size: 30px; font-weight: 600; letter-spacing: -.02em; text-align: center; }
.composer { display: flex; flex-direction: column; gap: 10px; padding: 10px; border-radius: 24px; background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2), 0 10px 32px -14px rgba(20, 35, 55, .22); transition: box-shadow .15s; }
.composer.over { box-shadow: 0 0 0 2px var(--elan), 0 12px 36px -14px rgba(8, 163, 233, .35); }
.composer-drop { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 34px 20px 30px; border-radius: 16px; background: var(--well);
  cursor: pointer; text-align: center; transition: background .15s; }
.composer-drop:hover, .composer.over .composer-drop { background: color-mix(in srgb, var(--elan) 7%, var(--well)); }
.composer-drop b { font-size: 15px; font-weight: 500; }
.composer-drop .t-3 { font-size: 13px; }
.drop-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 50%; background: var(--surface); color: var(--text-2); box-shadow: var(--edge); }
.composer.over .drop-ic { color: var(--elan); }
.composer-files { display: flex; flex-wrap: wrap; gap: 8px; padding: 4px 4px 0; }
.file-chip { display: inline-flex; align-items: center; gap: 10px; height: 48px; max-width: 360px; padding: 0 6px 0 6px; border-radius: 14px; background: var(--well); font-size: 13.5px; }
.file-chip .t-3 { flex-shrink: 0; font-size: 12.5px; }
.file-ic { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; background: var(--surface); color: var(--text-2); box-shadow: var(--edge); }
.file-chip.deck .file-ic { color: var(--elan); }
.file-chip button { display: grid; place-items: center; flex-shrink: 0; width: 26px; height: 26px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--text-3); cursor: pointer; }
.file-chip button:hover { background: var(--well-2); color: var(--text); }
.composer-note { height: 40px; margin: 0 4px; padding: 0 12px; border: 0; border-radius: 12px; background: var(--well); font: inherit; color: var(--text); outline: none; }
.composer-note:focus { box-shadow: 0 0 0 2px var(--line-3); }
.composer-row { display: flex; align-items: center; gap: 6px; padding: 0 0 0 4px; }
.cbtn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px 0 11px; border: 1px solid var(--line-2); border-radius: 999px;
  background: none; font: inherit; font-size: 13px; color: var(--text-2); cursor: pointer; transition: background .12s, color .12s; }
.cbtn:hover, .cbtn.on { background: var(--hover); color: var(--text); }
.send { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 8px 0 16px; border: 0; border-radius: 999px; background: var(--dark); color: var(--on-dark);
  font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .12s, color .12s; }
.send .ic { display: block; padding: 4px; box-sizing: content-box; border-radius: 50%; background: color-mix(in srgb, var(--on-dark) 16%, transparent); color: inherit; }
.send:disabled { background: var(--well-2); color: var(--text-3); cursor: default; }
.home-error { margin-top: 10px; text-align: center; }

.recent { margin-top: 64px; }
.recent-head { display: flex; align-items: center; gap: 8px; padding: 0 12px 8px; font-size: 13px; font-weight: 500; color: var(--text-3); }
.recent-head .search { max-width: 200px; height: 30px; }
.ghost-btn { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; font-weight: 400; color: var(--text-2); cursor: pointer; }
.ghost-btn:hover { background: var(--hover-2); color: var(--text); }
.recent-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto 96px 28px; align-items: center; gap: 14px; padding: 8px 12px; border-radius: 12px; transition: background .1s; }
.recent-row:hover { background: var(--hover-2); }
.recent-thumb { display: block; width: 56px; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 5px; background: var(--stage); box-shadow: 0 0 0 1px var(--line-2); }
.recent-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.recent-main { display: flex; flex-direction: column; min-width: 0; }
.recent-name { font-weight: 500; }
.recent-meta { font-size: 12.5px; color: var(--text-3); }
.recent-prog { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.recent-prog .minibar { width: 40px; }
.recent-row.skeleton i { display: block; height: 10px; border-radius: 5px; background: var(--well-2); animation: pulse 1.6s ease-in-out infinite; }
.recent-row.skeleton i:first-child { width: 46%; margin-bottom: 8px; }
.recent-row.skeleton i:last-child { width: 28%; }
.recent-row.skeleton .recent-thumb { animation: pulse 1.6s ease-in-out infinite; }
:root[data-theme="dark"] .recent-thumb img, :root[data-theme="dark"] .thumb img { filter: brightness(.92); }
/* numbers line up; set per element because tabular figures also widen Inter's hyphen */
.pin, .fc-pin, .thumb-n, .thumb-count, .seg button span, .chip b, .pane-progress { font-variant-numeric: tabular-nums; }
