/* Deck Review — warm paper neutrals, ink primary, ELAN blue for selection,
   colour otherwise only for meaning (severity ladder, tags, proof marks).
   Inter for UI, a serif for titles. */
@font-face {
  font-family: "Inter";
  src: url("/vendor/InterVariable.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}
:root {
  --bg: #faf9f6; --surface: #ffffff; --well: #f3f1ec; --well-2: #eae7e0; --stage: #efece6;
  --text: #1a1917; --text-2: #625e57; --text-3: #7a756c; --faint: #b3aea4;
  --line: #eeebe5; --line-2: #e4e1da; --line-3: #d6d2c9;
  --dark: #15212c; --dark-2: #0b141c;
  --elan: #08a3e9; --elan-ink: #0574a8; --elan-soft: rgba(8, 163, 233, .12);
  --serif: ui-serif, "Iowan Old Style", Charter, "Palatino Linotype", Georgia, serif;
  --r-card: 16px; --r-md: 12px; --r: 10px; --r-sm: 6px;
  --edge: 0 0 0 1px rgba(0, 0, 0, .06), 0 1px 2px rgba(0, 0, 0, .04);
  --float: 0 0 0 1px rgba(0, 0, 0, .08), 0 0 0 4px rgba(255, 255, 255, .5), 0 2px 4px rgba(0, 0, 0, .06), 0 16px 40px rgba(40, 40, 30, .16);
  font-family: "Inter", ui-sans-serif, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  font-feature-settings: "cv11", "tnum";
  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: #c93a32; font-size: 13px; }
.ic { flex-shrink: 0; display: block; }

/* severity: icon colour, halo, tint (colour only where it means something) */
.sev-critical { --c: #b8322a; --tint: #f8e4e1; }
.sev-major { --c: #c47f1a; --tint: #f7ecda; }
.sev-minor { --c: #6f7d8c; --tint: #e9edf1; }
.sev-suggestion { --c: #b9b2a5; --tint: #f1eee8; }
.sev-client { --c: #8a5aa8; --tint: #f1e9f6; }


/* severity ladder */
.lad { display: inline-flex; align-items: flex-end; gap: 1.5px; height: 12px; flex-shrink: 0; }
.lad b { width: 3px; border-radius: 1px; background: #d8d4cb; }
.lad b:nth-child(1) { height: 5px; } .lad b:nth-child(2) { height: 8px; } .lad b:nth-child(3) { height: 11px; }
.lad.sev-critical b { background: var(--c); }
.lad.sev-major b:nth-child(-n+2) { background: var(--c); }
.lad.sev-minor b:nth-child(1) { background: var(--c); }
.lad.sev-client b { display: none; }
.lad.sev-client::after { content: ""; width: 8px; height: 8px; margin-bottom: 2px; border-radius: 50%; background: 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(0, 0, 0, .04); transition: background .12s, border-color .12s; }
.btn:hover, .pill:hover, .icon-btn:hover { background: #fafaf9; 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: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.btn.dark .ic, .pill.dark .ic { color: #fff; }
.btn.dark:hover, .pill.dark:hover { background: var(--dark-2); border-color: var(--dark-2); }
.btn.ink-outline { border-color: var(--dark); color: var(--dark); box-shadow: none; }
.btn.ink-outline:hover { background: var(--well); }
.btn.ink-outline.pressed { background: var(--dark); color: #fff; }
.btn.ink-outline.pressed .ic { color: #fff; }
.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: #2f6f3e; border-color: #2f6f3e; }
.well-input:focus, .search:focus-within { box-shadow: 0 0 0 2px var(--elan-soft), inset 0 0 0 1px color-mix(in srgb, var(--elan) 40%, transparent); }
.btn:disabled, .pill:disabled, .icon-btn:disabled { opacity: .4; cursor: default; }
.pill { background: var(--surface); padding: 0 12px; }
.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: #efefee; border-color: #e0e0de; color: #636363; }
.tag.yellow { background: #fbf5df; border-color: #f0e3a6; color: #3d3416; }
.tag.green { background: #e6f6ea; border-color: #b5e2c0; color: #1f4a26; }
.tag.blue { background: #e3effb; border-color: #a9cdf0; color: #133e66; }
.tag.red { background: #fce6e5; border-color: #f1b5b2; color: #5c2420; }

/* 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: #f1f1f0; }
.search { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: var(--surface); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text-3); min-width: 0; flex: 1; }
.pane-head .search { flex: none; height: 32px; }
.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: #cdcdcb; }
.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(223, 222, 217, .55), rgba(200, 199, 192, .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: #f0f0ef; }
.drop.over { box-shadow: inset 0 0 0 2px var(--text); background: #eeeeec; }
.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%, #e6e5e0, #d9d8d2); }
.login { width: 360px; padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.login .wordmark { margin-bottom: 4px; }

/* reviews list */
.list-page { width: 100%; max-width: 1200px; margin: 0 auto; padding: 18px 20px 60px; }
.list-head { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.list-head h1 { font-family: var(--serif); font-size: 30px; font-weight: 500; letter-spacing: -.01em; }
.list-head .search { max-width: 240px; }
.table { }
.thead, .tr { display: grid; grid-template-columns: minmax(0, 1fr) 130px 200px 140px 120px 40px; align-items: center; }
.thead { height: 40px; border-bottom: 1px solid var(--line); }
.thead > span { position: relative; padding: 0 14px; font-size: 13px; color: var(--text-2); }
.thead > span + span::before { content: ""; position: absolute; left: 0; top: 50%; height: 18px; margin-top: -9px; width: 1px; background: var(--line-2); }
.thead > span { font-weight: 500; }
.thead > span:last-child::before { display: none; }
.tr { min-height: 44px; border-bottom: 1px solid var(--line); transition: background .1s; }
.tr > * { padding: 0 14px; min-width: 0; }
.tr:hover { background: #f4f4f2; }
.t-title { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.t-id { color: var(--text-3); font-weight: 400; font-size: 13px; flex-shrink: 0; width: 56px; }
.t-sev { display: flex; align-items: center; gap: 10px; }
.sevcount { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--text-2); }
.t-decided { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.minibar { width: 56px; height: 4px; border-radius: 2px; background: #dedad1; overflow: hidden; }
.minibar span { display: block; height: 100%; border-radius: 2px; background: var(--dark); }
.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; }
.tr:hover .row-del { color: var(--text-3); }
.row-del:hover { color: #c93a32 !important; background: var(--well); }
.t-empty { padding: 16px 14px; color: var(--text-3); }
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 72px 20px; border-radius: var(--r-card); background: var(--surface); box-shadow: var(--edge); color: var(--text-2); }

/* 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: #555; }
.doc-head .nums { margin-right: 6px; font-weight: 500; font-size: 13px; }
.doc-head .icon-btn:hover:not(:disabled) { background: rgba(0, 0, 0, .05); }
.banner { margin: 0 12px 10px; padding: 10px 14px; border-radius: var(--r); background: #fce6e5; color: #5c2420; 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(0, 0, 0, .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(0, 0, 0, .08); }
.seg button span { color: var(--text-3); font-weight: 400; margin-left: 4px; }
.pane .seg { background: var(--well); display: flex; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); cursor: pointer; user-select: none; }
.toggle input { display: none; }
.toggle span { position: relative; width: 26px; height: 16px; border-radius: 8px; background: var(--well-2); transition: background .15s; }
.toggle span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s; }
.toggle input:checked + span { background: var(--dark); }
.toggle input:checked + span::after { transform: translateX(10px); }
.toggle b { font-weight: 600; color: var(--text-3); }
.pane .seg button { flex: 1; }

.thumbs { scrollbar-width: thin; scrollbar-color: #d6d2c9 transparent; 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: #f3f3f2; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); transition: box-shadow .12s; }
.thumb:hover { box-shadow: 0 0 0 1px rgba(0, 0, 0, .18); }
.thumb.active { box-shadow: 0 0 0 2px var(--elan); }
.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: rgba(255, 255, 255, .92); font-size: 10px; font-weight: 500; line-height: 14px; color: var(--text-2); box-shadow: 0 0 0 1px rgba(0, 0, 0, .05); }
.thumb-count { position: absolute; right: 4px; top: 4px; 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 1px 2px rgba(0, 0, 0, .15); }
.thumb-count.sev-minor, .thumb-count.sev-suggestion, .thumb-count.sev-client { background: #fff; color: color-mix(in srgb, var(--c) 80%, #000); box-shadow: 0 0 0 1px rgba(0, 0, 0, .08), 0 1px 2px rgba(0, 0, 0, .1); }

.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(0, 0, 0, .06), 0 8px 24px -8px rgba(40, 40, 30, .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) 45%, transparent); transition: box-shadow .12s, background .12s; }
.hl.on { box-shadow: 0 0 0 2px var(--elan); background: var(--elan-soft); }
.hl.dec-reject { box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.pin { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 5px; height: 22px; min-width: 24px; padding: 0 7px;
  border: 0; border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .1), 0 2px 6px rgba(0, 0, 0, .14); font-variant-numeric: tabular-nums; }
.pin-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.pin.on { background: var(--elan); color: #fff; z-index: 3; box-shadow: 0 0 0 3px var(--elan-soft), 0 2px 8px rgba(5, 116, 168, .35); }
.pin.on .pin-dot { background: #fff; }
.pin.dec-accept .pin-dot { background: #4f9a62; }
.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: 10px; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.pane-title { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: -.005em; line-height: 1.25; }
.pane-title span { font-family: "Inter", sans-serif; font-size: 13px; color: var(--text-3); font-weight: 400; margin-left: 6px; letter-spacing: 0; }
.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(--faint); }
.group-head { position: sticky; top: -12px; z-index: 1; display: flex; align-items: center; gap: 8px; margin: 6px -2px 0; padding: 8px 2px 4px;
  background: #fcfbf9; font-size: 12.5px; color: var(--text-2); cursor: pointer; }
.group-head:first-child { margin-top: -6px; }
.group-head:hover { color: var(--text); }
.group-n { min-width: 22px; height: 18px; padding: 0 5px; border-radius: 5px; background: var(--well-2); color: var(--text); font-size: 11px; font-weight: 600; line-height: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.pane-list { flex: 1; min-height: 0; overflow: auto; padding: 12px 10px 12px 16px; display: flex; flex-direction: column; gap: 6px; background: #fcfbf9;
  scrollbar-gutter: stable; scrollbar-width: thin; scrollbar-color: #d6d2c9 transparent;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent 100%); mask-image: linear-gradient(to bottom, #000 calc(100% - 14px), transparent 100%); }
/* 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: #dcdcda; 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 #ececea; border-radius: var(--r-md); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); transition: box-shadow .12s, border-color .12s; }
.fc:hover { border-color: var(--line-3); }
.fc.open { border-color: color-mix(in srgb, var(--elan) 45%, var(--line-2)); box-shadow: 0 0 0 3px var(--elan-soft), 0 8px 22px rgba(40, 40, 30, .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: 500; }
.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(--elan); color: #fff; 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 { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; font-size: 12px; line-height: 16px; color: var(--text-3); }
.fc-sev { color: var(--c); font-weight: 600; }
.fc-meta > * + *::before { content: "·"; padding: 0 6px; color: var(--faint); text-decoration: none; display: inline-block; }
.fc-loc { border: 0; padding: 0; background: none; font: inherit; color: var(--text-3); cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-3); text-underline-offset: 2px; }
.fc-loc:hover { color: var(--elan-ink); text-decoration-color: currentColor; }
.fc-text { color: #1f1f1f; font-size: 14px; line-height: 22px; }
.redline { margin: 0; padding: 2px 0 2px 12px; border-left: 2px solid var(--line-3); font-size: 13.5px; line-height: 1.65; color: var(--text-2); overflow-wrap: anywhere; }
.redline .del { color: #b4332b; text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: rgba(180, 51, 43, .55); }
.redline .ins { color: var(--text); font-weight: 500; padding: 0 1px; background: linear-gradient(transparent 58%, rgba(8, 163, 233, .28) 58%); }
.redline .quote { color: #3a3a3a; }
.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: #2a2a2a; }
.reply.mine { background: #eef3fb; }
.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(0, 0, 0, .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 { position: relative; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; border-top: 1px solid var(--line); background: var(--surface);
  box-shadow: 0 -12px 16px -12px rgba(40, 30, 20, .1); }
.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: #c93a32; }
.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: #2a2a2a; }
.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; }
}
