/* 30 Sundays editing style — Pink #FD014F · Cream #F8F6E9 · Deep ink #243330 · Orange #FAA21A
   Type: Strichpunkt Sans Black for display (drop licensed .woff2 files into static/fonts/), Geist for everything else. */
@font-face { font-family:"Strichpunkt Sans"; src:url("fonts/StrichpunktSans-Black.woff2") format("woff2"), url("fonts/StrichpunktSans-Black.woff") format("woff"); font-weight:900; font-display:swap; }

:root {
  --pink:#FD014F; --pink-dark:#d4003f; --pink-soft:#FFE3EB; --cream:#F8F6E9; --cream-deep:#EFEBDA; --ink:#243330; --ink-soft:#4C5956; --muted:#7D8783;
  --white:#FFFFFF; --orange:#FAA21A; --orange-soft:#FFF1D6; --line:#E4DFCF; --line-strong:#CFC8B2;
  --ok:#1E8E5A; --ok-soft:#DFF3E8; --err:#D11B3F; --warn:#B46B00;
  --bg:var(--cream); --panel:var(--white); --panel2:#FBFAF4; --border:var(--line); --text:var(--ink); --accent:var(--pink); --accent2:var(--pink); --me:#1F6FEB; --ai:var(--orange);
  --blocker:#D11B3F; --major:#FAA21A; --minor:#C9A227; --suggestion:#7D8783;
  --display:"Strichpunkt Sans","Geist",system-ui,-apple-system,sans-serif; --body:"Geist",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --radius:14px; --radius-sm:8px; --shadow:0 1px 2px rgba(36,51,48,.06), 0 6px 20px rgba(36,51,48,.05);
}
* { box-sizing:border-box; }
[hidden] { display:none !important; }
html, body { margin:0; background:var(--bg); color:var(--text); font:15px/1.55 var(--body); -webkit-font-smoothing:antialiased; }
a { color:var(--pink); text-decoration:none; } a:hover { text-decoration:underline; }
h1, h2, .display { font-family:var(--display); font-weight:900; letter-spacing:-.01em; color:var(--pink); }
h1 { font-size:32px; line-height:1.1; margin:0 0 6px; } h2 { font-size:22px; line-height:1.15; margin:0 0 10px; }
h3 { font-family:var(--body); font-weight:600; font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--pink); margin:18px 0 8px; }
code, pre { font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:12.5px; }
.eyebrow { font-size:11px; font-weight:600; letter-spacing:.1em; text-transform:uppercase; color:var(--pink); margin-bottom:6px; }
.rule { border:0; border-top:1px solid var(--line); margin:18px 0; }

/* ---------- top bar ---------- */
.topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; padding:12px 24px; background:rgba(248,246,233,.92); backdrop-filter:blur(8px); border-bottom:1px solid var(--line); }
.topbar .brand { display:flex; align-items:center; gap:10px; color:var(--ink); font-family:var(--display); font-weight:900; font-size:17px; }
.topbar .brand .mark { display:inline-flex; align-items:center; justify-content:center; width:30px; height:30px; border-radius:9px; background:var(--pink); color:#fff; font-size:12px; letter-spacing:0; }
.topbar .brand .sub { font-family:var(--body); font-weight:500; color:var(--muted); font-size:13px; margin-left:4px; }
.topbar .brand .brand-logo { height:40px; width:auto; display:block; } .topbar .brand .sub { border-left:1px solid var(--line-strong); padding-left:12px; font-size:13.5px; color:var(--ink-soft); }
.site-logo img { height:30px; width:auto; display:block; }
.topbar nav { display:flex; align-items:center; gap:6px; }
.topbar nav a { color:var(--ink-soft); font-weight:500; padding:7px 12px; border-radius:999px; }
.topbar nav a:hover { background:var(--cream-deep); text-decoration:none; color:var(--ink); }
.topbar nav a.primary { background:var(--pink); color:#fff; font-weight:600; } .topbar nav a.primary:hover { background:var(--pink-dark); }
.user { display:flex; align-items:center; gap:8px; margin-left:10px; padding-left:14px; border-left:1px solid var(--line); font-weight:500; }
.avatar { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:var(--ink); color:#fff; font-size:11px; font-weight:600; text-transform:uppercase; }
.role-badge { font-size:11px; font-weight:600; padding:2px 8px; border-radius:999px; background:var(--cream-deep); color:var(--ink-soft); text-transform:capitalize; }
.role-editor { background:var(--pink-soft); color:var(--pink-dark); } .role-reviewer { background:var(--ok-soft); color:var(--ok); } .role-admin { background:var(--ink); color:#fff; }

/* ---------- layout ---------- */
.container { max-width:960px; margin:0 auto; padding:28px 20px 90px; } .container.wide { max-width:1440px; }
.card { background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:22px 24px; margin-bottom:18px; box-shadow:var(--shadow); }
.card.narrow { max-width:420px; margin:70px auto; } .card.empty { color:var(--muted); text-align:center; padding:48px; background:transparent; box-shadow:none; border-style:dashed; }
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin-bottom:18px; }
.page-head .actions { display:flex; gap:8px; }
.meta { display:flex; gap:10px; align-items:center; color:var(--muted); font-size:13px; flex-wrap:wrap; }
label { display:block; margin:14px 0 6px; font-weight:600; color:var(--ink); } label.inline { display:inline; font-weight:500; margin-left:12px; }
input[type=text], input:not([type]), input[type=password], input[type=number], input[type=file], textarea, select {
  width:100%; padding:10px 12px; border:1px solid var(--line-strong); border-radius:var(--radius-sm); background:#fff; color:var(--ink); font:inherit; margin-top:4px; }
input:focus, textarea:focus, select:focus { outline:2px solid var(--pink); outline-offset:1px; border-color:var(--pink); }
textarea { resize:vertical; font-family:var(--body); font-size:14px; }
input[type=file] { padding:8px; background:var(--panel2); } input:disabled { opacity:.5; }
button, .btn { display:inline-flex; align-items:center; gap:6px; background:var(--pink); color:#fff; border:0; border-radius:999px; padding:10px 18px; font:inherit; font-weight:600; cursor:pointer; text-decoration:none; transition:background .15s; }
button:hover, .btn:hover { background:var(--pink-dark); text-decoration:none; } button:disabled { opacity:.45; cursor:default; }
.btn.ghost, button.ghost { background:#fff; border:1px solid var(--line-strong); color:var(--ink); } .btn.ghost:hover, button.ghost:hover { background:var(--cream); }
.btn.danger { color:var(--err); } .btn.small, button.small { padding:5px 12px; font-size:12.5px; }
button.link { background:none; color:var(--muted); padding:0 4px; font-weight:500; } button.link:hover { background:none; color:var(--ink); }
.hint, .dim { color:var(--muted); font-weight:400; font-size:13px; }
.or { color:var(--muted); text-align:center; margin:8px 0; font-size:12px; text-transform:uppercase; letter-spacing:.08em; }
.flash { max-width:960px; margin:14px auto 0; padding:12px 16px; border-radius:var(--radius-sm); background:var(--pink-soft); color:var(--pink-dark); font-weight:500; }
.flash.warn { background:var(--orange-soft); color:var(--warn); max-width:none; margin:0 0 14px; }
.preview { white-space:pre-wrap; max-height:260px; overflow:auto; background:var(--panel2); padding:12px; border-radius:var(--radius-sm); border:1px solid var(--line); }
.file-status { font-size:13px; color:var(--muted); margin-top:6px; } .file-status.ok { color:var(--ok); font-weight:500; }
.upload-progress { margin-top:14px; } .upload-progress .bar { height:8px; background:var(--cream-deep); border-radius:4px; overflow:hidden; }
.upload-progress .fill { height:100%; width:0; background:var(--pink); transition:width .2s; }

/* ---------- review list ---------- */
.review-grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(280px, 1fr)); gap:16px; }
.review-card { display:block; background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; color:var(--ink); box-shadow:var(--shadow); transition:transform .12s, box-shadow .12s; }
.review-card:hover { transform:translateY(-2px); box-shadow:0 10px 28px rgba(36,51,48,.1); text-decoration:none; }
.review-card .poster { aspect-ratio:16/9; background:var(--ink) url("") center/cover no-repeat; display:flex; align-items:center; justify-content:center; }
.review-card .poster img { width:100%; height:100%; object-fit:cover; display:block; }
.review-card .poster .ph { color:rgba(255,255,255,.5); font-size:12px; letter-spacing:.08em; text-transform:uppercase; }
.review-card .body { padding:14px 16px 16px; }
.review-card .title { font-weight:600; font-size:16px; margin:0 0 6px; line-height:1.3; }
.review-card .row { display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12.5px; color:var(--muted); }
.status { display:inline-flex; align-items:center; gap:6px; font-size:11.5px; font-weight:600; padding:3px 10px; border-radius:999px; background:var(--cream-deep); color:var(--ink-soft); text-transform:capitalize; }
.status::before { content:""; width:7px; height:7px; border-radius:50%; background:currentColor; }
.status-done { background:var(--ok-soft); color:var(--ok); } .status-error { background:#FBE1E6; color:var(--err); }
.status-auditing, .status-downloading, .status-queued { background:var(--orange-soft); color:var(--warn); }
.table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; }
.table th, .table td { text-align:left; padding:10px 14px; border-bottom:1px solid var(--line); } .table th { color:var(--muted); font-weight:600; font-size:12px; }

/* ---------- review page ---------- */
.section-nav { position:sticky; top:58px; z-index:15; display:flex; gap:4px; background:rgba(248,246,233,.95); backdrop-filter:blur(8px); padding:8px 0 10px; margin:-8px 0 14px; border-bottom:1px solid var(--line); overflow-x:auto; }
.section-nav a { color:var(--ink-soft); font-weight:500; font-size:13.5px; padding:6px 12px; border-radius:999px; white-space:nowrap; }
.section-nav a:hover, .section-nav a.active { background:#fff; color:var(--pink); border:1px solid var(--line); text-decoration:none; }
.section-nav a .n { display:inline-block; min-width:18px; height:18px; border-radius:50%; background:var(--pink); color:#fff; font-size:11px; font-weight:600; text-align:center; line-height:18px; margin-right:6px; }
.result-section { scroll-margin-top:110px; }
.progress-head { display:flex; align-items:center; gap:10px; margin-bottom:8px; }
.spinner { width:14px; height:14px; border:2px solid var(--line-strong); border-top-color:var(--pink); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
#progressLog { white-space:pre-wrap; color:var(--muted); margin:0; max-height:220px; overflow:auto; background:var(--panel2); padding:10px 12px; border-radius:var(--radius-sm); }
.section-head { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:10px; flex-wrap:wrap; }
.score { font-family:var(--display); font-weight:900; font-size:22px; color:var(--ink); } .score b { color:var(--pink); }
.doc-slot { margin-left:auto; margin-right:14px; font-size:13px; }
.doc-link { color:#fff; background:var(--ink); padding:7px 12px; border-radius:999px; text-decoration:none; font-weight:600; } .doc-link:hover { background:#000; text-decoration:none; }
.md p { margin:6px 0; } .md ul, .md ol { padding-left:22px; } .md li { margin:3px 0; }
.md h1, .md h2, .md h3 { font-family:var(--body); color:var(--ink); text-transform:none; letter-spacing:0; margin:14px 0 6px; } .md h2 { font-size:17px; font-weight:600; } .md h3 { font-size:14.5px; font-weight:600; } .md h4 { font-size:13.5px; color:var(--ink-soft); margin:10px 0 4px; }
.md table { border-collapse:collapse; width:100%; margin:10px 0; font-size:13.5px; display:block; overflow-x:auto; }
.md th, .md td { border:1px solid var(--line); padding:7px 9px; text-align:left; vertical-align:top; } .md th { background:var(--cream); color:var(--ink-soft); font-weight:600; }
.md blockquote { border-left:3px solid var(--pink); margin:8px 0; padding-left:12px; color:var(--ink-soft); }
.md strong { color:var(--ink); }
.action-list { padding-left:22px; } .action-list li { margin:9px 0; }
.prio { display:inline-block; font-size:10.5px; font-weight:700; padding:2px 7px; border-radius:999px; text-transform:uppercase; margin-right:6px; letter-spacing:.04em; }
.prio-high { background:#FBE1E6; color:var(--err); } .prio-medium { background:var(--orange-soft); color:var(--warn); } .prio-low { background:var(--ok-soft); color:var(--ok); }
.ts { font-family:ui-monospace,Menlo,monospace; font-size:12px; color:var(--pink-dark); cursor:pointer; background:var(--pink-soft); padding:1px 7px; border-radius:6px; border:1px solid transparent; }
.ts:hover { border-color:var(--pink); }
details.report { border:1px solid var(--line); border-radius:12px; margin:10px 0; background:#fff; }
details.report summary { cursor:pointer; padding:12px 16px; font-weight:600; list-style:none; display:flex; justify-content:space-between; align-items:center; gap:10px; color:var(--ink); }
details.report summary::after { content:"▸"; color:var(--muted); } details.report[open] summary::after { content:"▾"; }
details.report[open] summary { border-bottom:1px solid var(--line); background:var(--panel2); border-radius:12px 12px 0 0; }
details.report .body { padding:6px 16px 14px; }
details.keyframe-section summary::before { content:"✨ "; }
table.findings { width:100%; border-collapse:collapse; font-size:13.5px; } table.findings td, table.findings th { padding:7px 9px; border-bottom:1px solid var(--line); vertical-align:top; text-align:left; } table.findings th { color:var(--muted); font-size:12px; }
.sev { font-size:10.5px; font-weight:700; padding:2px 7px; border-radius:999px; text-transform:uppercase; letter-spacing:.04em; }
.sev-blocker { background:#FBE1E6; color:var(--blocker); } .sev-major { background:var(--orange-soft); color:var(--warn); } .sev-minor { background:#FFF7D6; color:#8A6D00; } .sev-suggestion { background:var(--cream-deep); color:var(--ink-soft); }
.kf-actions { display:inline-flex; gap:8px; align-items:center; margin-left:8px; white-space:nowrap; }
.kf-actions .btn.small { padding:3px 10px; font-size:11.5px; } .kf-view { font-size:12.5px; color:var(--ok); font-weight:600; } .kf-note { margin-top:8px; }

/* ---------- key-frame redesigns ---------- */
.redesign-panel { display:grid; grid-template-columns:220px 1fr; gap:18px; background:var(--cream); border:1px solid var(--line); border-radius:12px; padding:16px; margin:12px 0 16px; }
@media (max-width:760px) { .redesign-panel { grid-template-columns:1fr; } }
.redesign-src img { width:100%; border-radius:10px; background:#000; display:block; border:1px solid var(--line); }
.redesign-form label { margin-top:0; } .redesign-form .row { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:12px; }
.redesign-gallery { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:16px; }
.redesign-card { background:#fff; border:1px solid var(--line); border-radius:12px; padding:12px; }
.redesign-card .pair { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.redesign-card .pair img { width:100%; border-radius:8px; background:#000; display:block; border:1px solid var(--line); }
.redesign-card .cap { font-size:11.5px; color:var(--muted); text-align:center; margin-top:4px; font-weight:500; }
.redesign-card .meta { display:flex; gap:8px; align-items:center; font-size:12.5px; color:var(--muted); margin:10px 0 4px; flex-wrap:wrap; }
.redesign-card details { font-size:12.5px; color:var(--muted); } .redesign-card details pre { white-space:pre-wrap; font-family:inherit; margin:6px 0 0; }
.link-chip { font-size:11px; font-weight:600; color:var(--warn); background:var(--orange-soft); border-radius:999px; padding:2px 8px; }

/* ---------- frame tool ---------- */
.frame-tool { display:grid; grid-template-columns:minmax(0,1fr) 400px; gap:16px; align-items:start; scroll-margin-top:110px; }
@media (max-width:960px) { .frame-tool { grid-template-columns:1fr; } }
.player-col { background:#fff; border:1px solid var(--line); border-radius:var(--radius); padding:14px; box-shadow:var(--shadow); }
.stage { position:relative; width:100%; max-height:70vh; background:var(--ink); border-radius:10px; overflow:hidden; display:flex; justify-content:center; }
.stage video { display:block; max-height:70vh; max-width:100%; }
.stage canvas { position:absolute; top:0; left:0; cursor:crosshair; pointer-events:none; } .stage.drawing canvas { pointer-events:auto; }
.scrubber { position:relative; height:28px; margin:12px 4px 4px; cursor:pointer; }
.scrubber::before { content:""; position:absolute; left:0; right:0; top:12px; height:4px; background:var(--cream-deep); border-radius:2px; }
.scrub-progress { position:absolute; left:0; top:12px; height:4px; background:var(--pink); border-radius:2px; width:0; }
.playhead { position:absolute; top:6px; width:2px; height:16px; background:var(--ink); margin-left:-1px; left:0; }
.markers { position:absolute; inset:0; }
.marker { position:absolute; top:18px; width:9px; height:9px; border-radius:50%; margin-left:-4px; cursor:pointer; border:1.5px solid #fff; box-shadow:0 0 0 1px rgba(36,51,48,.2); }
.marker.ai { top:1px; border-radius:2px; transform:rotate(45deg); } .marker.comment { background:var(--me); } .marker.resolved { opacity:.35; }
.marker:hover { transform:scale(1.4); z-index:2; } .marker.ai:hover { transform:rotate(45deg) scale(1.4); }
.controls { display:flex; align-items:center; gap:6px; margin-top:8px; flex-wrap:wrap; }
.ctl { background:#fff; border:1px solid var(--line-strong); color:var(--ink); padding:6px 10px; border-radius:8px; font-weight:500; }
.ctl:hover { background:var(--cream); } .ctl.play { background:var(--pink); border-color:var(--pink); color:#fff; min-width:44px; justify-content:center; } .ctl.play:hover { background:var(--pink-dark); }
.timecode { font-family:ui-monospace,Menlo,monospace; font-size:13px; margin:0 6px; white-space:nowrap; color:var(--ink); }
select.mini, input.mini { width:auto; padding:5px 7px; margin:0; font-size:12.5px; border-radius:8px; } input.num { width:72px; }
.mini-label { font-size:12.5px; color:var(--muted); display:flex; align-items:center; gap:4px; margin:0; font-weight:500; }
.volume { width:80px; margin-left:auto; accent-color:var(--pink); }
.annot-tools { display:flex; align-items:center; gap:6px; margin-top:10px; flex-wrap:wrap; }
.tool { background:#fff; border:1px solid var(--line-strong); color:var(--ink); padding:4px 10px; border-radius:8px; font-weight:500; }
.tool:hover { background:var(--cream); } .tool.active { border-color:var(--pink); color:var(--pink); background:var(--pink-soft); }
.swatches { display:inline-flex; gap:5px; margin:0 4px; } .swatch { width:20px; height:20px; border-radius:50%; padding:0; border:2px solid #fff; box-shadow:0 0 0 1px var(--line-strong); } .swatch.active { box-shadow:0 0 0 2px var(--ink); }
.comments-col { background:#fff; border:1px solid var(--line); border-radius:var(--radius); display:flex; flex-direction:column; max-height:calc(70vh + 120px); min-height:480px; box-shadow:var(--shadow); }
.comments-head { display:flex; align-items:center; gap:8px; padding:12px 14px; border-bottom:1px solid var(--line); font-weight:600; }
.comments-head select { margin-left:auto; }
.ai-at-frame { background:var(--orange-soft); border-bottom:1px solid #F3D9A6; padding:6px 12px 8px; max-height:38%; overflow:auto; flex:0 1 auto; }
.ai-head { display:flex; align-items:center; gap:8px; width:100%; background:none; padding:4px 0; color:var(--warn); font-weight:700; font-size:11.5px; text-transform:uppercase; letter-spacing:.08em; text-align:left; border-radius:0; }
.ai-head:hover { background:none; } .ai-head .dim { text-transform:none; letter-spacing:0; font-weight:400; margin-left:auto; } .ai-head .chev { color:var(--muted); }
.ai-at-frame.collapsed #aiAtFrameList { display:none; } .ai-at-frame.collapsed .chev { transform:rotate(-90deg); }
.ai-card { background:#fff; border:1px solid #F3D9A6; border-left:3px solid var(--orange); border-radius:10px; padding:7px 10px; margin-top:6px; }
.ai-card.resolved { opacity:.6; border-left-color:var(--ok); }
.ai-card .head { display:flex; align-items:center; gap:8px; cursor:pointer; min-width:0; }
.ai-card .head .title { font-weight:600; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ai-card.open .head .title { white-space:normal; }
.ai-card .head .id { color:var(--muted); font-size:12px; white-space:nowrap; } .ai-card .head .chev { color:var(--muted); font-size:11px; }
.ai-card .body { display:none; } .ai-card.open .body { display:block; }
.ai-card .when { font-size:12.5px; margin:4px 0; color:var(--muted); } .ai-card .when em { color:var(--warn); font-style:normal; font-weight:600; }
.ai-card .desc { margin:4px 0; } .ai-card .sugg { color:var(--ink-soft); } .ai-card .row { display:flex; gap:6px; align-items:center; margin-top:8px; flex-wrap:wrap; }
.comment-list { flex:1 1 160px; min-height:160px; overflow:auto; padding:8px 14px; }
.comment { border-bottom:1px solid var(--line); padding:10px 0; } .comment.selected { background:var(--cream); margin:0 -14px; padding:10px 14px; }
.comment.resolved .body { color:var(--muted); text-decoration:line-through; }
.comment .head { display:flex; align-items:center; gap:8px; font-size:12.5px; color:var(--muted); flex-wrap:wrap; }
.comment .head .name { color:var(--ink); font-weight:600; }
.frame-badge { font-family:ui-monospace,Menlo,monospace; font-size:11px; background:var(--pink-soft); border-radius:6px; padding:2px 7px; color:var(--pink-dark); cursor:pointer; white-space:nowrap; }
.comment .body { margin:4px 0; white-space:pre-wrap; word-break:break-word; }
.comment .foot { display:flex; gap:12px; font-size:12.5px; } .comment .foot button { background:none; color:var(--muted); padding:0; font-weight:500; border-radius:0; } .comment .foot button:hover { color:var(--pink); background:none; }
.annot-chip { font-size:11px; color:var(--me); font-weight:600; }
.replies { margin-left:22px; border-left:2px solid var(--line); padding-left:10px; margin-top:6px; }
.replies .comment { border-bottom:0; padding:6px 0; }
.composer { border-top:1px solid var(--line); padding:12px 14px; background:var(--panel2); border-radius:0 0 var(--radius) var(--radius); }
.composer-context { display:flex; justify-content:space-between; align-items:center; font-size:12.5px; color:var(--warn); background:var(--orange-soft); padding:5px 10px; border-radius:8px; margin-bottom:8px; font-weight:500; }
.composer-row { display:flex; gap:8px; align-items:stretch; } .composer-row textarea { margin:0; flex:1; min-width:0; font-size:14px; }
.composer-row .btn { padding:0 16px; border-radius:10px; } .composer-foot { margin-top:8px; display:flex; align-items:center; gap:6px; flex-wrap:wrap; }
.empty-note { color:var(--muted); text-align:center; padding:30px 10px; }

/* =====================================================================
   Article audit additions (reader mockup, pinned comments, AI score)
   ===================================================================== */
:root { --must:#D11B3F; --should:#FAA21A; --minor-c:#C9A227; --hl-must:#FFD9E0; --hl-should:#FFE9BF; --hl-minor:#FFF5C2; --hl-me:#D9E8FF; }
.grid-3 { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; } @media (max-width:760px) { .grid-3 { grid-template-columns:1fr; } }
.status-reading, .status-sold_data { background:var(--orange-soft); color:var(--warn); }
.status.verdict-bad { background:#FBE1E6; color:var(--err); } .status.verdict-mid { background:var(--orange-soft); color:var(--warn); } .status.verdict-good { background:var(--ok-soft); color:var(--ok); }
.sev-must { background:#FBE1E6; color:var(--must); } .sev-should { background:var(--orange-soft); color:var(--warn); } .sev-minor { background:#FFF7D6; color:#8A6D00; }
.sev { white-space:nowrap; }

/* audit list cards */
.article-poster { flex-direction:column; gap:10px; background:var(--ink); color:#fff; }
.poster-score { text-align:center; line-height:1; } .poster-score b { font-family:var(--display); font-size:44px; color:#fff; } .poster-score span { display:block; font-size:11px; letter-spacing:.1em; text-transform:uppercase; color:rgba(255,255,255,.6); margin-top:4px; }
.poster-counts { display:flex; gap:6px; flex-wrap:wrap; justify-content:center; }

/* 1 · AI detection score */
.ai-grid { display:grid; grid-template-columns:260px minmax(0,1fr); gap:28px; align-items:start; } @media (max-width:820px) { .ai-grid { grid-template-columns:1fr; } }
.dial-wrap { text-align:center; background:var(--panel2); border:1px solid var(--line); border-radius:var(--radius); padding:18px 14px 16px; }
.dial { width:100%; max-width:230px; }
.dial-track { fill:none; stroke:var(--cream-deep); stroke-width:14; stroke-linecap:round; }
.dial-fill { fill:none; stroke:var(--muted); stroke-width:14; stroke-linecap:round; transition:stroke-dasharray .6s ease; }
.dial-low { stroke:var(--ok); } .dial-mid { stroke:var(--orange); } .dial-high { stroke:var(--pink); }
.dial-num { font-family:var(--display); font-weight:900; font-size:46px; fill:var(--ink); } .dial-cap { font-size:10px; fill:var(--muted); letter-spacing:.08em; text-transform:uppercase; }
.dial-label { font-weight:700; font-size:16px; margin-top:6px; } .lvl-low { color:var(--ok); } .lvl-mid { color:var(--warn); } .lvl-high { color:var(--pink-dark); }
.dial-parts { margin-top:4px; font-size:12.5px; }
.tells { padding-left:20px; margin:8px 0 12px; } .tells li { margin:3px 0; }
table.signals { width:100%; border-collapse:collapse; font-size:13.5px; } table.signals th { text-align:left; color:var(--muted); font-size:12px; font-weight:600; padding:6px 8px; border-bottom:1px solid var(--line); }
table.signals td { padding:7px 8px; border-bottom:1px solid var(--line); vertical-align:top; }
.lv { font-size:11px; font-weight:700; padding:2px 8px; border-radius:999px; white-space:nowrap; } .lv-ai { background:var(--pink-soft); color:var(--pink-dark); } .lv-mixed { background:var(--orange-soft); color:var(--warn); } .lv-human { background:var(--ok-soft); color:var(--ok); }
.ai-caveat { margin:12px 0 0; }
.passage-list { padding-left:22px; margin:0; } .passage-list li { margin:8px 0; } .q-inline { font-style:italic; color:var(--ink); }
button.link.jump { color:var(--pink); font-weight:600; font-size:12.5px; white-space:nowrap; } button.link.jump:hover { color:var(--pink-dark); text-decoration:underline; }
button.link.idref { background:var(--pink-soft); border-radius:6px; padding:1px 7px; margin-left:4px; font-family:ui-monospace,Menlo,monospace; font-size:11.5px; }

/* 2 · Key issues */
.verdict-row { display:flex; align-items:center; gap:18px; flex-wrap:wrap; margin-bottom:10px; }
.verdict { font-family:var(--display); font-weight:900; font-size:20px; padding:8px 16px; border-radius:12px; }
.verdict-bad { background:#FBE1E6; color:var(--err); } .verdict-mid { background:var(--orange-soft); color:var(--warn); } .verdict-good { background:var(--ok-soft); color:var(--ok); }
.tiles { display:flex; gap:10px; flex-wrap:wrap; }
.tile { min-width:112px; border:1px solid var(--line); border-radius:12px; padding:8px 14px; background:#fff; border-top:3px solid var(--line-strong); }
.tile b { font-family:var(--display); font-size:26px; line-height:1; display:block; color:var(--ink); } .tile span { font-size:12px; font-weight:600; color:var(--ink-soft); display:block; } .tile i { font-style:normal; font-size:11px; color:var(--muted); }
.tile-must { border-top-color:var(--must); } .tile-should { border-top-color:var(--should); } .tile-minor { border-top-color:var(--minor-c); }
.check-chips { display:flex; gap:6px; flex-wrap:wrap; margin:12px 0 4px; }
.key-issues li { margin:11px 0; } .key-issues .sev { margin-right:8px; }
.doc-slot { display:flex; gap:8px; margin-right:0; }

/* 3 · workspace: comments on the left, reader mockup on the right */
.workspace { display:grid; grid-template-columns:410px minmax(0,1fr); gap:16px; height:calc(100vh - 128px); min-height:580px; scroll-margin-top:112px; margin-bottom:10px; }
@media (max-width:1000px) { .workspace { grid-template-columns:1fr; height:auto; } .workspace .comments-col { max-height:70vh; } .reader-frame { height:80vh; } }
.workspace .comments-col { max-height:none; min-height:0; height:100%; }
.comments-head select { margin-left:auto; }
.chip-bar { display:flex; gap:5px; flex-wrap:wrap; padding:8px 12px; border-bottom:1px solid var(--line); background:var(--panel2); }
.chip { background:#fff; border:1px solid var(--line-strong); color:var(--muted); border-radius:999px; padding:3px 10px; font-size:12px; font-weight:600; }
.chip:hover { background:var(--cream); } .chip b { font-weight:700; margin-left:2px; opacity:.75; }
.chip.on { color:var(--ink); border-color:var(--ink); } .chip.chip-must.on { background:#FBE1E6; border-color:var(--must); color:var(--must); } .chip.chip-should.on { background:var(--orange-soft); border-color:var(--should); color:var(--warn); }
.chip.chip-minor.on { background:#FFF7D6; border-color:var(--minor-c); color:#8A6D00; } .chip.chip-me.on { background:var(--hl-me); border-color:var(--me); color:#1553B8; }
.chip-sep { flex-basis:100%; height:0; }
.workspace .comment-list { padding:6px 12px 10px; }
.group-cap { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:12px 2px 6px; }
.thread { border:1px solid var(--line); border-radius:10px; margin:6px 0; background:#fff; cursor:pointer; }
.thread.selected { box-shadow:0 0 0 2px var(--pink); border-color:var(--pink); }
.thread.resolved { opacity:.55; }
.thread.ai { border-left:4px solid var(--line-strong); padding:7px 10px; } .thread.edge-must { border-left-color:var(--must); } .thread.edge-should { border-left-color:var(--should); } .thread.edge-minor { border-left-color:var(--minor-c); }
.thread.ai .head { display:flex; align-items:center; gap:7px; min-width:0; }
.thread.ai .head .id { color:var(--muted); font-size:11.5px; font-family:ui-monospace,Menlo,monospace; white-space:nowrap; }
.thread.ai .head .title { font-weight:600; flex:1; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; font-size:13.5px; }
.thread.ai.open .head .title { white-space:normal; }
.thread.ai .chev { color:var(--muted); font-size:11px; } .n-linked { font-size:11.5px; color:var(--me); font-weight:600; white-space:nowrap; }
.thread.ai .body { display:none; padding-top:4px; } .thread.ai.open .body { display:block; }
.thread .when { font-size:12px; color:var(--muted); margin:2px 0 4px; }
.thread .q { margin:6px 0; padding:4px 10px; border-left:3px solid var(--line-strong); color:var(--ink-soft); font-style:italic; font-size:13px; background:var(--panel2); border-radius:0 6px 6px 0; }
.thread .desc { margin:4px 0; font-size:13.5px; } .thread .sugg { color:var(--ok); font-size:13.5px; font-weight:500; }
.thread .row { display:flex; gap:6px; align-items:center; margin-top:8px; flex-wrap:wrap; } .thread .src { font-size:12.5px; margin-left:auto; }
.thread.manual { border-left:4px solid var(--me); padding:7px 10px 2px; } .thread.manual .q { border-left-color:var(--me); }
.thread .comment { border-bottom:0; padding:4px 0 6px; } .thread .replies { margin:4px 0 0 4px; }
.pin-chip { font-size:11px; font-weight:600; color:var(--ink-soft); background:var(--cream-deep); border-radius:999px; padding:2px 8px; }

.reader-col { display:flex; flex-direction:column; min-width:0; min-height:0; background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; }
.reader-bar { display:flex; align-items:center; gap:14px; padding:9px 14px; border-bottom:1px solid var(--line); background:var(--panel2); flex-wrap:wrap; }
.reader-bar .mini-label input { width:auto; margin:0 4px 0 0; accent-color:var(--pink); }
.reader-dl { margin-left:auto; }
.seg { display:inline-flex; border:1px solid var(--line-strong); border-radius:999px; overflow:hidden; background:#fff; }
.seg-btn { background:none; color:var(--ink-soft); padding:5px 14px; border-radius:0; font-size:12.5px; } .seg-btn:hover { background:var(--cream); } .seg-btn.active { background:var(--ink); color:#fff; }
.reader-frame { position:relative; flex:1; min-height:0; background:#ECE8D8; }
.reader-scroll { position:absolute; inset:0 18px 0 0; overflow-y:auto; padding:22px 22px 60px; scroll-behavior:auto; }
.rail { position:absolute; top:0; bottom:0; right:0; width:18px; background:#E3DECB; border-left:1px solid var(--line-strong); }
.tick { position:absolute; left:3px; right:3px; height:4px; border-radius:2px; cursor:pointer; background:var(--me); } .tick:hover { left:0; right:0; height:6px; }
.tick-must { background:var(--must); } .tick-should { background:var(--should); } .tick-minor { background:var(--minor-c); } .tick.resolved { opacity:.3; }
.rail-view { position:absolute; left:0; right:0; border:1px solid rgba(36,51,48,.45); background:rgba(36,51,48,.08); border-radius:3px; pointer-events:none; min-height:8px; }

.serp, .brief, .page { max-width:820px; margin:0 auto 16px; }
.serp { background:#fff; border:1px solid var(--line); border-radius:12px; padding:14px 18px 12px; font-family:Arial, sans-serif; }
.serp-cap { font:600 11px/1 var(--body); letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-bottom:10px; }
.serp-site { display:flex; align-items:center; gap:10px; font-size:13px; color:#202124; line-height:1.3; } .serp-url { color:#4d5156; font-size:12px; }
.serp-fav { display:inline-flex; align-items:center; justify-content:center; width:28px; height:28px; border-radius:50%; background:var(--pink); color:#fff; font:700 11px var(--body); }
.serp-title { color:#1a0dab; font-size:20px; line-height:1.3; margin:8px 0 3px; } .serp-desc { color:#4d5156; font-size:14px; line-height:1.55; } .serp-len { margin-top:8px; font:12px var(--body); }
.brief { background:#fff; border:1px dashed var(--line-strong); border-radius:12px; } .brief summary { cursor:pointer; padding:10px 16px; font-weight:600; font-size:13.5px; }
.brief-body { padding:0 18px 12px; font-size:13.5px; } .brief-body p { margin:6px 0; }
.page { background:#fff; border-radius:14px; box-shadow:0 2px 6px rgba(36,51,48,.08), 0 14px 40px rgba(36,51,48,.10); overflow:hidden; transition:max-width .25s ease; }
.reader-scroll.mobile .page, .reader-scroll.mobile .serp, .reader-scroll.mobile .brief { max-width:390px; }
.reader-scroll.mobile .page { border-radius:34px; border:9px solid var(--ink); }
.site-nav { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 22px; border-bottom:1px solid var(--line); background:var(--cream); }
.site-logo { font-family:var(--display); font-weight:900; color:var(--ink); display:flex; align-items:center; gap:7px; font-size:15px; } .site-logo .mark { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:8px; background:var(--pink); color:#fff; font-size:11px; }
.site-links { display:flex; align-items:center; gap:16px; font-size:12.5px; font-weight:500; color:var(--ink-soft); } .site-cta { background:var(--pink); color:#fff; padding:5px 12px; border-radius:999px; font-weight:600; }
.reader-scroll.mobile .site-links span:not(.site-cta) { display:none; }
.site-foot { padding:16px 22px; border-top:1px solid var(--line); color:var(--muted); font-size:12px; text-align:center; background:var(--cream); }
.article { padding:34px 56px 44px; font-size:17px; line-height:1.72; color:#27322F; } .reader-scroll.mobile .article { padding:22px 18px 30px; font-size:16px; }
.article h1 { font-size:38px; line-height:1.12; margin:0 0 12px; color:var(--ink); } .reader-scroll.mobile .article h1 { font-size:29px; }
.article h2 { font-family:var(--body); font-weight:700; font-size:26px; line-height:1.25; color:var(--ink); margin:38px 0 12px; letter-spacing:-.01em; } .reader-scroll.mobile .article h2 { font-size:22px; }
.article h3 { font-family:var(--body); font-weight:600; font-size:19px; text-transform:none; letter-spacing:0; color:var(--ink); margin:26px 0 8px; }
.article h4 { font-size:16px; margin:20px 0 6px; }
.article p { margin:0 0 16px; } .article ul, .article ol { margin:0 0 18px; padding-left:24px; } .article li { margin:7px 0; }
.article a, .brief-body a { color:var(--pink); text-decoration:underline; text-underline-offset:2px; }
.byline { display:flex; align-items:center; gap:8px; color:var(--muted); font-size:13.5px; margin:0 0 24px; padding-bottom:18px; border-bottom:1px solid var(--line); }
.table-wrap { overflow-x:auto; margin:0 0 20px; border:1px solid var(--line); border-radius:10px; }
.article table, .brief-body table { border-collapse:collapse; width:100%; font-size:15px; line-height:1.5; }
.article th, .article td, .brief-body td, .brief-body th { border-bottom:1px solid var(--line); padding:10px 12px; text-align:left; vertical-align:top; }
.article th { background:var(--cream); font-weight:600; color:var(--ink); } .article tr:last-child td { border-bottom:0; }
.img-ph { margin:0 0 18px; background:var(--cream-deep); border-radius:12px; min-height:160px; display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:13px; }
.img-ph::before { content:"Image: "; margin-right:4px; }

mark.hl { background:var(--hl-me); color:inherit; border-radius:3px; padding:1px 0; cursor:pointer; border-bottom:2px solid var(--me); }
mark.hl-must { background:var(--hl-must); border-bottom-color:var(--must); } mark.hl-should { background:var(--hl-should); border-bottom-color:var(--should); } mark.hl-minor { background:var(--hl-minor); border-bottom-color:var(--minor-c); }
mark.hl-pending { background:#CFE0FF; border-bottom:2px dashed var(--me); }
mark.hl.resolved { background:transparent; border-bottom-style:dotted; opacity:.75; }
mark.hl.sel { outline:2px solid var(--pink); outline-offset:1px; } mark.hl.flash, .blk.flash { animation:flash 1.3s ease; }
@keyframes flash { 0%, 60% { box-shadow:0 0 0 6px rgba(253,1,79,.28); } 100% { box-shadow:0 0 0 0 rgba(253,1,79,0); } }
.blk-flag { position:relative; box-shadow:-4px 0 0 var(--me); padding-left:10px; margin-left:-10px; cursor:pointer; border-radius:2px; }
.blk-flag.flag-must { box-shadow:-4px 0 0 var(--must); } .blk-flag.flag-should { box-shadow:-4px 0 0 var(--should); } .blk-flag.flag-minor { box-shadow:-4px 0 0 var(--minor-c); }
.blk-flag.sel { background:rgba(253,1,79,.05); }
.no-hl mark.hl { background:transparent; border-bottom-color:transparent; } .no-hl .blk-flag { box-shadow:none; }
.sel-btn { position:fixed; z-index:50; padding:7px 14px; font-size:13px; box-shadow:0 6px 18px rgba(36,51,48,.25); background:var(--ink); } .sel-btn:hover { background:#000; }
button.link.bref { background:var(--cream-deep); color:var(--ink-soft); border-radius:6px; padding:0 6px; font-family:ui-monospace,Menlo,monospace; font-size:11.5px; font-weight:600; } button.link.bref:hover { background:var(--pink-soft); color:var(--pink-dark); }

/* =====================================================================
   Writing desk (Google-Docs-style editor, typed text only)
   ===================================================================== */
.doc-table td { vertical-align:top; } .doc-link-title { font-weight:600; color:var(--ink); font-size:15.5px; } .doc-link-title:hover { color:var(--pink); }
.rec { display:inline-block; font-size:11.5px; font-weight:700; padding:3px 10px; border-radius:999px; background:var(--cream-deep); color:var(--ink-soft); white-space:nowrap; }
.rec-ok { background:var(--ok-soft); color:var(--ok); } .rec-warn { background:var(--orange-soft); color:var(--warn); } .rec-bad { background:#FBE1E6; color:var(--err); }
main.gd-main { padding:0; max-width:none; }
.gd { display:flex; flex-direction:column; height:calc(100vh - 55px); background:#F3F1E6; }
.gd-head { display:flex; align-items:center; gap:12px; padding:8px 18px 4px; background:#fff; }
.gd-icon { color:var(--pink); display:flex; } .gd-titlebox { flex:1; min-width:0; }
.gd-title { border:1px solid transparent; background:transparent; font:500 18px/1.2 var(--body); color:var(--ink); padding:3px 6px; margin:0; width:min(560px, 100%); border-radius:6px; }
.gd-title:hover:not(:disabled) { border-color:var(--line-strong); } .gd-title:disabled { opacity:1; }
.gd-sub { display:flex; gap:7px; align-items:center; font-size:12.5px; color:var(--muted); padding-left:7px; flex-wrap:wrap; }
.save-state.ok { color:var(--ok); } .save-state.pending { color:var(--warn); } .save-state.bad { color:var(--err); font-weight:600; }
.lock-chip { font-size:11px; font-weight:700; background:var(--ink); color:#fff; border-radius:999px; padding:2px 9px; margin-left:4px; cursor:help; }
.gd-actions { display:flex; gap:8px; align-items:center; }
.gd-toolbar-wrap { background:#fff; padding:4px 14px 8px; border-bottom:1px solid var(--line); }
.gd-toolbar.ql-toolbar.ql-snow { border:0; background:#EEF1EC; border-radius:999px; padding:5px 14px; display:flex; flex-wrap:wrap; align-items:center; font-family:var(--body); }
.gd-toolbar .ql-formats { margin-right:10px !important; display:inline-flex; align-items:center; }
.gd-toolbar button.tb { width:auto !important; padding:2px 7px !important; font-size:14px; color:var(--ink); background:none; border-radius:6px; font-weight:500; height:24px; line-height:1; }
.gd-toolbar button.tb:hover { background:#DDE3DB; color:var(--pink); } .gd-toolbar button { border-radius:6px; } .gd-toolbar .ql-snow button:hover { background:#DDE3DB; }
.tb-table { display:inline-flex; gap:2px; margin-left:4px; padding-left:6px; border-left:1px solid var(--line-strong); } .tb-table .tb { font-size:11.5px !important; }
.gd-toolbar .ql-picker.ql-header { width:132px; }
.gd-toolbar .ql-picker.ql-header .ql-picker-label::before, .gd-toolbar .ql-picker.ql-header .ql-picker-item::before { content:'Normal text' !important; }
.gd-toolbar .ql-picker.ql-header .ql-picker-label[data-value="1"]::before, .gd-toolbar .ql-picker.ql-header .ql-picker-item[data-value="1"]::before { content:'Title (H1)' !important; }
.gd-toolbar .ql-picker.ql-header .ql-picker-label[data-value="2"]::before, .gd-toolbar .ql-picker.ql-header .ql-picker-item[data-value="2"]::before { content:'Heading (H2)' !important; }
.gd-toolbar .ql-picker.ql-header .ql-picker-label[data-value="3"]::before, .gd-toolbar .ql-picker.ql-header .ql-picker-item[data-value="3"]::before { content:'Subheading (H3)' !important; }
.gd-toolbar .ql-picker.ql-header .ql-picker-label[data-value="4"]::before, .gd-toolbar .ql-picker.ql-header .ql-picker-item[data-value="4"]::before { content:'Minor heading (H4)' !important; }
.gd-toolbar .ql-picker-options { z-index:30; border-radius:8px; }
.gd-banner { background:var(--orange-soft); color:var(--warn); font-weight:500; padding:8px 18px; display:flex; gap:12px; align-items:center; border-bottom:1px solid #F3D9A6; }
.gd-body { flex:1; min-height:0; display:grid; grid-template-columns:220px minmax(0,1fr) 360px; }
@media (max-width:1100px) { .gd-body { grid-template-columns:minmax(0,1fr) 320px; } .gd-outline { display:none; } }
@media (max-width:760px) { .gd-body { grid-template-columns:1fr; } .gd-side { display:none; } }
.gd-outline { overflow:auto; padding:16px 10px 20px 16px; } .gd-cap { font-size:11px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin:6px 0 8px; }
.outline .ol { display:block; width:100%; text-align:left; background:none; color:var(--ink-soft); padding:4px 8px; border-radius:6px; font-weight:500; font-size:13px; line-height:1.35; margin:1px 0; }
.outline .ol:hover { background:#E6E2D2; color:var(--ink); } .outline .ol-h1 { font-weight:700; color:var(--ink); } .outline .ol-h3 { padding-left:22px; font-weight:400; }
.gd-canvas { overflow:auto; padding:22px 16px 80px; }
.gd-page { width:min(816px, 100%); margin:0 auto; background:#fff; box-shadow:0 1px 3px rgba(36,51,48,.14), 0 8px 26px rgba(36,51,48,.07); border-radius:3px; min-height:1056px; }
.gd-page .ql-container.ql-snow { border:0; font-family:var(--body); font-size:16.5px; }
.gd-page .ql-editor { padding:72px 84px 96px; min-height:1056px; line-height:1.7; color:#27322F; }
@media (max-width:900px) { .gd-page .ql-editor { padding:36px 28px 60px; } }
.gd-page .ql-editor.ql-blank::before { left:84px; right:84px; font-style:normal; color:#A9AFAB; }
.gd-page .ql-editor h1 { font-family:var(--display); font-weight:900; font-size:34px; line-height:1.15; color:var(--ink); margin:0 0 14px; letter-spacing:-.01em; }
.gd-page .ql-editor h2 { font-family:var(--body); font-weight:700; font-size:25px; line-height:1.25; color:var(--ink); margin:28px 0 10px; }
.gd-page .ql-editor h3 { font-family:var(--body); font-weight:600; font-size:19px; color:var(--ink); margin:22px 0 8px; text-transform:none; letter-spacing:0; }
.gd-page .ql-editor h4 { font-size:16px; font-weight:600; color:var(--ink-soft); margin:16px 0 6px; }
.gd-page .ql-editor p { margin:0 0 12px; } .gd-page .ql-editor ol, .gd-page .ql-editor ul { margin:0 0 14px; } .gd-page .ql-editor li { margin:4px 0; }
.gd-page .ql-editor a { color:var(--pink); } .gd-page .ql-editor blockquote { border-left:4px solid var(--pink); margin:10px 0; padding-left:14px; color:var(--ink-soft); }
.gd-page .ql-editor table { border-collapse:collapse; width:100%; margin:10px 0 16px; table-layout:fixed; } .gd-page .ql-editor td { border:1px solid var(--line-strong); padding:7px 10px; vertical-align:top; }
.gd-side { background:#fff; border-left:1px solid var(--line); display:flex; flex-direction:column; min-height:0; }
.side-tabs { display:flex; border-bottom:1px solid var(--line); padding:0 6px; }
.side-tab { background:none; color:var(--muted); border-radius:0; padding:11px 9px 9px; font-size:12.5px; font-weight:600; border-bottom:2px solid transparent; }
.side-tab:hover { background:none; color:var(--ink); } .side-tab.active { color:var(--pink); border-bottom-color:var(--pink); } .side-tab b { background:var(--pink); color:#fff; border-radius:999px; padding:0 6px; font-size:10.5px; margin-left:2px; } .side-tab b:empty { display:none; }
.side-body { flex:1; min-height:0; overflow:auto; padding:10px 14px 24px; font-size:13.5px; }
.rounds { display:flex; flex-direction:column; gap:6px; margin:4px 0 10px; }
.round { display:flex; align-items:center; gap:8px; flex-wrap:wrap; border:1px solid var(--line); border-radius:10px; padding:7px 10px; color:var(--ink); font-size:12.5px; } .round:hover { border-color:var(--pink); text-decoration:none; }
.fb { border:1px solid var(--line); border-left:4px solid var(--line-strong); border-radius:10px; padding:8px 10px; margin:7px 0; cursor:pointer; }
.fb:hover, .fb.active { box-shadow:0 0 0 2px var(--pink-soft); } .fb.active { border-color:var(--pink); }
.fb-must { border-left-color:var(--must); } .fb-should { border-left-color:var(--should); } .fb-minor { border-left-color:var(--minor-c); } .fb-manual { border-left-color:var(--me); }
.sev-manual { background:var(--hl-me); color:#1553B8; }
.fb-head { display:flex; gap:8px; align-items:center; font-size:12px; } .fb-title { font-weight:600; margin:4px 0 2px; } .fb-desc { color:var(--ink-soft); }
.fb .q, .fb-reply { margin:6px 0; padding:4px 10px; border-left:3px solid var(--line-strong); color:var(--ink-soft); font-size:12.5px; background:var(--panel2); border-radius:0 6px 6px 0; } .fb .q { font-style:italic; }
.fb .sugg { color:var(--ok); font-weight:500; margin-top:3px; }
.kv { display:flex; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid var(--line); } .kv span { color:var(--ink-soft); } .kv b { text-align:right; font-weight:600; }
.kv.warn b { color:var(--warn); } .kv.bad b { color:var(--err); }
.rec-big { font-family:var(--display); font-weight:900; font-size:17px; padding:10px 12px; border-radius:10px; margin-bottom:8px; background:var(--cream-deep); color:var(--ink-soft); }
.rec-big.rec-ok { background:var(--ok-soft); color:var(--ok); } .rec-big.rec-warn { background:var(--orange-soft); color:var(--warn); } .rec-big.rec-bad { background:#FBE1E6; color:var(--err); }
.ev { border-bottom:1px solid var(--line); padding:6px 0; display:flex; gap:8px; flex-wrap:wrap; align-items:baseline; font-size:12.5px; }
.ev-sample { flex-basis:100%; color:var(--muted); font-style:italic; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ev-large_insert b, .ev-unaccounted b, .ev-fast_typing b, .ev-no_keystrokes b { color:var(--err); } .ev-paste_blocked b, .ev-drop_blocked b { color:var(--warn); }
.brief-text { white-space:pre-wrap; font:12.5px/1.55 var(--body); background:var(--panel2); border:1px solid var(--line); border-radius:8px; padding:10px 12px; max-height:none; user-select:text; }
.ver { display:flex; justify-content:space-between; gap:10px; align-items:center; border-bottom:1px solid var(--line); padding:8px 0; }
.gd-foot { display:flex; gap:16px; align-items:center; padding:6px 18px; background:#fff; border-top:1px solid var(--line); font-size:12.5px; font-weight:500; }
.gd-foot-right { margin-left:auto; display:flex; gap:10px; align-items:center; }
.toast { position:fixed; left:50%; bottom:54px; transform:translateX(-50%); background:var(--ink); color:#fff; padding:10px 18px; border-radius:10px; font-size:13.5px; font-weight:500; max-width:min(620px, 92vw); z-index:80; box-shadow:0 10px 30px rgba(36,51,48,.3); }
.toast.warn { background:#8A1730; }

/* writing record on the audit page */
.writing-card { margin-top:18px; border:1px solid var(--line); border-radius:var(--radius); padding:14px 16px; background:var(--panel2); }
.writing-card .wc-head { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-bottom:8px; } .writing-card .wc-head strong { font-size:15px; }
.wc-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(150px, 1fr)); gap:8px; }
.wc-cell { background:#fff; border:1px solid var(--line); border-radius:10px; padding:8px 10px; } .wc-cell b { display:block; font-size:16px; color:var(--ink); } .wc-cell span { font-size:11.5px; color:var(--muted); }
.wc-cell.warn b { color:var(--warn); } .wc-cell.bad b { color:var(--err); }
/* toolbar buttons never inherit the app's pink pill button, even before the editor's stylesheet arrives */
.gd-toolbar button, .gd-toolbar button:hover { background:none; border-radius:6px; padding:3px 5px; width:28px; height:24px; color:var(--ink); transition:none; display:inline-block; font-weight:500; }
.gd-toolbar button:hover { background:#DDE3DB; }
.req { font-size:10.5px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--pink-dark); background:var(--pink-soft); border-radius:999px; padding:1px 7px; margin-left:4px; }
.sold-bar { display:flex; gap:10px; align-items:center; flex-wrap:wrap; background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px 14px; margin:0 0 14px; font-size:13.5px; }
.sold-bar.missing { background:var(--orange-soft); border-color:#F3D9A6; } .sold-bar.missing strong { color:var(--warn); }
.sold-bar select.mini { min-width:170px; } .sold-bar input.mini { flex:1; min-width:220px; max-width:420px; }

/* model bar + comparison */
.model-bar { display:flex; gap:12px; align-items:center; flex-wrap:wrap; background:#fff; border:1px solid var(--line); border-radius:12px; padding:8px 14px; margin:0 0 14px; font-size:13.5px; }
.model-bar .model-run { margin-left:auto; display:flex; gap:8px; align-items:center; } .model-bar select.mini { min-width:200px; } .cmp-links { display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.cmp-grid { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:18px; align-items:start; } @media (max-width:900px) { .cmp-grid { grid-template-columns:1fr; } }
.cmp-card .cmp-title { font-family:var(--display); font-weight:900; font-size:20px; color:var(--ink); } .cmp-card .cmp-title:hover { color:var(--pink); text-decoration:none; }
.cmp-table td, .cmp-table th { padding:8px 14px; } .cmp-table td.sub { padding-left:30px; color:var(--ink-soft); } .cmp-table td:first-child { width:38%; font-weight:500; }
.cmp-pair { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:14px; border-top:1px solid var(--line); padding:6px 0; } .cmp-pair.differs { background:linear-gradient(90deg, var(--orange-soft), transparent 6px); }
.cmp-f { border:1px solid var(--line); border-radius:10px; padding:9px 12px; margin:8px 0; background:#fff; font-size:13.5px; }
.cmp-f-head { display:flex; gap:8px; align-items:center; font-size:12px; } .cmp-f-title { font-weight:600; margin:4px 0 2px; }
.cmp-f .q { margin:6px 0; padding:4px 10px; border-left:3px solid var(--line-strong); color:var(--ink-soft); font-style:italic; font-size:12.5px; background:var(--panel2); border-radius:0 6px 6px 0; }
.cmp-f .sugg { color:var(--ok); font-weight:500; margin-top:3px; } .idref-link { margin-left:auto; font-family:ui-monospace,Menlo,monospace; font-size:11.5px; background:var(--pink-soft); border-radius:6px; padding:1px 7px; }

/* grouped findings: one card, several places */
.n-places { font-size:11px; font-weight:700; color:var(--ink-soft); background:var(--cream-deep); border-radius:999px; padding:1px 7px; white-space:nowrap; }
.more-places { margin:6px 0; display:flex; flex-direction:column; gap:4px; align-items:flex-start; }
.more-q { background:var(--panel2); border:1px solid var(--line); border-left:3px solid var(--line-strong); color:var(--ink-soft); font-style:italic; font-size:12.5px; font-weight:400; border-radius:0 6px 6px 0; padding:3px 9px; text-align:left; }
.more-q:hover { background:var(--cream); border-left-color:var(--pink); color:var(--ink); }
mark.hl-more { border-bottom-style:dashed; }

/* filter chips: unselected = neutral, selected = filled */
.chip-bar { align-items:center; }
.chip-cap { font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); margin-right:2px; }
.chip { background:#fff; border:1px solid var(--line-strong); color:var(--ink-soft); cursor:pointer; }
.chip:hover { background:var(--cream); border-color:var(--ink-soft); }
.chip.on { background:var(--ink); border-color:var(--ink); color:#fff; } .chip.on b { opacity:.85; }
.chip.chip-me.on { background:var(--me); border-color:var(--me); color:#fff; }
.chip.chip-must { color:var(--must); border-color:#F1B8C3; } .chip.chip-should { color:var(--warn); border-color:#F3D9A6; } .chip.chip-minor { color:#8A6D00; border-color:#E6D48A; }
.chip.chip-must.on { background:var(--must); border-color:var(--must); color:#fff; } .chip.chip-should.on { background:var(--should); border-color:var(--should); color:#3B2A00; } .chip.chip-minor.on { background:var(--minor-c); border-color:var(--minor-c); color:#2E2500; }
.tick-mark { margin-right:4px; font-weight:800; }
.chip-clear { background:none; color:var(--pink-dark); font-size:12px; font-weight:600; padding:3px 6px; border-radius:6px; margin-left:auto; } .chip-clear:hover { background:var(--pink-soft); color:var(--pink-dark); }
button.link.jump-clear { color:var(--pink); font-weight:600; }

/* section intent */
table.intent-table { width:100%; border-collapse:collapse; font-size:13.5px; } table.intent-table th { text-align:left; color:var(--muted); font-size:12px; font-weight:600; padding:6px 8px; border-bottom:1px solid var(--line); }
table.intent-table td { padding:8px; border-bottom:1px solid var(--line); vertical-align:top; } table.intent-table td:nth-child(1) { width:17%; } table.intent-table td:nth-child(2) { width:27%; color:var(--ink-soft); } table.intent-table td:nth-child(3) { width:16%; }
table.intent-table .sugg { color:var(--ok); font-weight:500; margin-top:3px; } tr.intent-match td { opacity:.75; }
.ist { font-size:11px; font-weight:700; padding:2px 9px; border-radius:999px; white-space:nowrap; background:var(--cream-deep); color:var(--ink-soft); }
.ist-match { background:var(--ok-soft); color:var(--ok); } .ist-partial { background:#FFF7D6; color:#8A6D00; } .ist-mismatch { background:var(--orange-soft); color:var(--warn); } .ist-missing { background:#fff; color:var(--muted); border:1px solid var(--line-strong); }
.article .blk.sec-band { background:rgba(250,162,26,.08); box-shadow:-18px 0 0 rgba(250,162,26,.08), 18px 0 0 rgba(250,162,26,.08), -22px 0 0 var(--should); }
.article .blk.sec-band.sec-must { background:rgba(209,27,63,.06); box-shadow:-18px 0 0 rgba(209,27,63,.06), 18px 0 0 rgba(209,27,63,.06), -22px 0 0 var(--must); }
.article .blk.sec-band.sec-minor { background:rgba(201,162,39,.08); box-shadow:-18px 0 0 rgba(201,162,39,.08), 18px 0 0 rgba(201,162,39,.08), -22px 0 0 var(--minor-c); }
.article .blk.sec-band.sec-resolved { background:transparent; box-shadow:-22px 0 0 var(--line-strong); }
.article .table-wrap:has(.sec-band) { box-shadow:-22px 0 0 var(--should); }
.no-hl .blk.sec-band { background:transparent; box-shadow:none; } .no-hl .intent-badge { display:none; }
.intent-badge { display:inline-block; vertical-align:middle; margin-left:10px; font:700 11px/1.4 var(--body); letter-spacing:0; text-transform:none; padding:2px 9px; border-radius:999px; background:var(--orange-soft); color:var(--warn); cursor:pointer; white-space:nowrap; user-select:none; }
.intent-badge.ib-must { background:#FBE1E6; color:var(--must); } .intent-badge.ib-minor { background:#FFF7D6; color:#8A6D00; } .intent-badge.resolved { opacity:.5; }
table.intent-table button.link.bref { font:500 13px/1.4 var(--body); background:none; color:var(--pink); padding:0; text-align:left; white-space:normal; border-radius:0; }
table.intent-table button.link.bref:hover { background:none; color:var(--pink-dark); text-decoration:underline; }

/* article stages + editor queue */
.stg { display:inline-block; font-size:11px; font-weight:700; padding:2px 9px; border-radius:999px; background:var(--cream-deep); color:var(--ink-soft); white-space:nowrap; }
.stg-draft { background:var(--cream-deep); color:var(--ink-soft); } .stg-with_editor { background:var(--hl-me); color:#1553B8; } .stg-with_writer { background:var(--orange-soft); color:var(--warn); }
.stg-wait { background:var(--cream-deep); color:var(--ink-soft); } .stg-run { background:var(--orange-soft); color:var(--warn); }
.status-waiting { background:var(--hl-me); color:#1553B8; }
.q-sec h2 { display:flex; align-items:center; gap:10px; } .q-n { font:700 12px/1 var(--body); background:var(--ink); color:#fff; border-radius:999px; padding:4px 9px; letter-spacing:0; }
.q-table { box-shadow:none; border-radius:10px; } .q-table td { vertical-align:middle; } .q-actions { text-align:right; white-space:nowrap; } .q-actions .btn { margin-left:6px; }
.q-row { display:flex; flex-direction:column; gap:2px; padding:9px 0; border-bottom:1px solid var(--line); } .q-row:last-child { border-bottom:0; }
.act { display:flex; justify-content:space-between; gap:10px; align-items:flex-start; border-bottom:1px solid var(--line); padding:8px 0; font-size:13px; }
.act-note { margin:3px 0; color:var(--ink-soft); font-style:italic; } .act-sent_back b { color:var(--warn); } .act-shared b { color:#1553B8; } .act-audit_failed b { color:var(--err); }
.stg-limit { background:#FBE1E6; color:var(--err); } .btn.at-limit { opacity:.45; }
.page-head .actions .btn { white-space:nowrap; }

/* writer's feedback loop: To do and Completed edits */
.fb-seg { margin:6px 0 8px; } .fb-seg .seg { display:flex; width:100%; } .fb-seg .seg-btn { flex:1; white-space:nowrap; } .fb-seg .seg-btn b { margin-left:4px; }
.fb-lead { margin:2px 0 8px; font-size:12.5px; }
.rtag { margin-left:auto; font-size:10.5px; font-weight:700; color:var(--ink-soft); background:var(--cream-deep); border-radius:999px; padding:1px 7px; white-space:nowrap; }
.fb-foot { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:8px; flex-wrap:wrap; }
.fb-hint { font-size:11.5px; color:var(--muted); } .fb-hint.ok { color:var(--ok); font-weight:600; }
.fb-note { margin-top:8px; border-top:1px dashed var(--line-strong); padding-top:8px; cursor:default; }
.fb-note label { display:block; font-size:12.5px; color:var(--warn); font-weight:600; margin-bottom:5px; }
.fb-note textarea { width:100%; box-sizing:border-box; font:inherit; font-size:13px; padding:6px 8px; border:1px solid var(--line-strong); border-radius:8px; resize:vertical; }
.fb-note-row { display:flex; gap:6px; margin-top:6px; }
.fb-back { font-size:12px; font-weight:600; color:var(--warn); background:var(--orange-soft); border-radius:6px; padding:3px 8px; margin:5px 0 2px; }
.fb-done { border-left-color:var(--ok); } .fb-done.fb-check { border-left-color:var(--should); }
.out { font-size:10.5px; font-weight:700; padding:2px 7px; border-radius:999px; text-transform:uppercase; letter-spacing:.04em; white-space:nowrap; background:#E3F4EA; color:#1F7A4D; }
.out-kept, .out-whole { background:var(--orange-soft); color:var(--warn); } .out-removed { background:var(--cream-deep); color:var(--ink-soft); }
.ed-diff { margin:6px 0; padding:6px 10px; background:var(--panel2); border-radius:8px; font-size:12.5px; line-height:1.6; color:var(--ink-soft); word-break:break-word; }
.ed-diff del { background:#FBE1E6; color:#9B1C36; text-decoration:line-through; border-radius:3px; padding:0 2px; }
.ed-diff ins { background:#DDF3E4; color:#17603C; text-decoration:none; border-radius:3px; padding:0 2px; }
.ed-diff .gap { color:var(--muted); } .ed-same::before { content:"Unchanged: "; font-weight:600; color:var(--muted); }
.fb-mynote { font-size:12.5px; margin:5px 0; color:var(--ink); }
.wr-edit { margin:8px 0 2px; border:1px solid var(--ok-soft); border-left:3px solid var(--ok); border-radius:8px; padding:6px 9px; background:#fff; }
.wr-edit.wr-check { border-color:var(--orange-soft); border-left-color:var(--should); }
.wr-head { display:flex; align-items:center; gap:8px; flex-wrap:wrap; font-size:12px; } .wr-note { font-size:12.5px; margin-top:4px; }
.thread.resolved.selected { opacity:1; }
.tile-ok { border-top-color:var(--ok); } .tile-none { border-top-color:var(--line-strong); }
#revisionCard .tiles { margin-bottom:8px; }
.rev-row { padding:9px 0; border-bottom:1px solid var(--line); } .rev-row:last-child { border-bottom:0; }
.rev-head { display:flex; align-items:baseline; gap:8px; flex-wrap:wrap; font-size:13.5px; } .rev-head b { font-weight:600; } .rev-head a { margin-left:auto; white-space:nowrap; }
.rev-check { background:linear-gradient(90deg, var(--orange-soft), transparent 40%); margin:0 -16px; padding-left:16px; padding-right:16px; }

/* editor's Commenting / Editing switch on the audit page, and the editor's edit log */
.mode-seg .seg-btn.active { background:var(--pink); color:#fff; }
.edit-note { padding:7px 14px; font-size:12.5px; color:var(--ink-soft); background:var(--panel2); border-bottom:1px solid var(--line); } .edit-note.warn { background:var(--orange-soft); color:var(--warn); font-weight:500; }
.edit-pane { display:flex; flex-direction:column; flex:1; min-height:0; } .edit-pane[hidden] { display:none; }
.edit-pane .gd-toolbar-wrap { padding:6px 12px; } .edit-canvas { flex:1; min-height:0; background:#ECE8D8; padding:18px 14px 60px; }
.edit-canvas .gd-page, .edit-canvas .gd-page .ql-editor { min-height:640px; } .edit-canvas .gd-page .ql-editor { padding:48px 56px 72px; }
.edit-foot { display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap; padding:8px 14px; border-top:1px solid var(--line); background:#fff; font-size:12.5px; }
.edit-actions { display:flex; align-items:center; gap:8px; }
body.editing-mode .comments-col .composer { opacity:.6; }
.chg-changed { background:var(--hl-me); color:#1553B8; } .chg-added { background:#E3F4EA; color:#1F7A4D; } .chg-removed { background:#FBE1E6; color:#9B1C36; } .chg-format { background:var(--cream-deep); color:var(--ink-soft); }
.fb-edit { border-left-color:var(--me); } .fb-seg .seg-btn { padding:5px 8px; font-size:12px; }
.act-editor_edit b { color:#1553B8; } .act-editor_opened b, .act-writer_opened b { color:var(--ink-soft); font-weight:600; }
.status-reviewed { background:var(--ok-soft); color:var(--ok); }

/* reviewer stage: final checks */
.stg-with_reviewer { background:#EDE4FB; color:#5B2BB5; } .stg-approved { background:var(--ok-soft); color:var(--ok); }
.status-final_review { background:#EDE4FB; color:#5B2BB5; } .status-approved { background:var(--ok-soft); color:var(--ok); }
.status-changes_requested { background:var(--orange-soft); color:var(--warn); } .status-recalled { background:var(--cream-deep); color:var(--ink-soft); }
.final-bar { padding:14px 20px; border-left:4px solid #712BDA; } .final-bar p { margin:0 0 6px; } .final-bar p:last-child { margin-bottom:0; }
.final-bar .fb-note-line { color:var(--ink); background:var(--panel2); border-radius:8px; padding:6px 10px; margin:6px 0; }
.final-bar.ok { border-left-color:var(--ok); } .final-bar.back { border-left-color:var(--should); }
body.final-check #tabBar, body.final-check #tab-report { display:none !important; }
body.final-check .workspace { height:calc(100vh - 150px); }
.act-finalised b, .act-recalled b, .act-reopened b { color:#5B2BB5; } .act-approved b { color:var(--ok); } .act-review_sent_back b { color:var(--warn); }
.rtag-final { background:#EDE4FB; color:#5B2BB5; }

/* audit page: two tabs, Audit report and Review */
.tabs { position:sticky; top:58px; z-index:15; display:flex; gap:6px; background:rgba(248,246,233,.97); backdrop-filter:blur(8px); padding:8px 0 0; margin:-6px 0 16px; border-bottom:2px solid var(--line); }
.tabs[hidden] { display:none; } .tab-pane[hidden] { display:none; }
.tab, .tab:hover { background:none; color:var(--ink-soft); border-radius:12px 12px 0 0; padding:8px 20px 9px; display:flex; flex-direction:column; align-items:flex-start; gap:0; border:1px solid transparent; border-bottom:0; margin-bottom:-2px; text-align:left; transition:none; }
.tab b { font-family:var(--display); font-weight:900; font-size:15.5px; line-height:1.25; } .tab span { font-size:12px; color:var(--muted); font-weight:500; }
.tab:hover { background:rgba(255,255,255,.6); color:var(--ink); }
.tab.active, .tab.active:hover { background:#fff; color:var(--pink); border-color:var(--line); border-bottom:2px solid #fff; }
.tab-n { font-style:normal; background:var(--pink); color:#fff; border-radius:999px; padding:0 6px; font-size:10.5px; font-weight:700; margin-left:6px; } .tab-n:empty { display:none; }
#tab-review .workspace { height:calc(100vh - 138px); }

/* AI check: one outcome from the detector services, with the notes the typing record adds */
.aiv { border:1px solid var(--line); border-left:6px solid var(--line-strong); border-radius:12px; padding:14px 18px; background:#fff; }
.aiv-main { display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.aiv-chip { font-family:var(--display); font-weight:900; font-size:22px; line-height:1.2; padding:4px 14px; border-radius:10px; background:var(--cream-deep); color:var(--ink-soft); }
.aiv-pct { font-size:14.5px; color:var(--ink-soft); } .aiv-pct b { font-family:var(--display); font-size:20px; color:var(--ink); }
.aiv-human { border-left-color:var(--ok); } .aiv-human .aiv-chip, .poster-ai.aiv-human b { background:var(--ok-soft); color:var(--ok); }
.aiv-assisted { border-left-color:var(--should); } .aiv-assisted .aiv-chip, .poster-ai.aiv-assisted b { background:var(--orange-soft); color:var(--warn); }
.aiv-ai { border-left-color:var(--must); } .aiv-ai .aiv-chip, .poster-ai.aiv-ai b { background:#FBE1E6; color:var(--must); }
.aiv-basis { margin-top:8px; font-size:13.5px; } .aiv-reasons { margin:8px 0 0; padding-left:20px; font-size:13.5px; color:var(--ink-soft); } .aiv-reasons li { margin:2px 0; }
.aiv-meta { margin-top:8px; font-size:12.5px; } .aiv-actions { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:12px; } .aiv-actions code { font-size:12px; }
.aiv-caveat { margin:10px 0 0; font-size:12.5px; }
.ai-note { margin:10px 0 0; padding:9px 14px; border-radius:10px; font-size:13.5px; background:var(--panel2); border:1px solid var(--line); }
.ai-note-warn { background:var(--orange-soft); border-color:#F3D9A6; color:#7A4A00; } .ai-note-prompt { background:#F4EEFD; border-color:#DCCBF7; color:#3F1D80; }
.ai-note-muted { color:var(--muted); background:none; border-style:dashed; } .ai-note .dim { margin-top:4px; font-size:12.5px; }
#aiFlaggedWrap { margin-top:14px; } #aiFlaggedWrap h3 { margin-bottom:6px; } #aiWhy { margin-top:14px; }
.aiv-tag-ai { background:#FBE1E6; color:var(--must); } .aiv-tag-assisted { background:var(--orange-soft); color:var(--warn); }
.blk.ai-para { box-shadow:inset 4px 0 0 #712BDA; padding-left:10px; margin-left:-10px; } .no-hl .blk.ai-para { box-shadow:none; }
.poster-ai b { font-size:17px !important; padding:3px 10px; border-radius:8px; background:var(--cream-deep); color:var(--ink-soft); }

/* settings: prompt history; audit page: what an audit ran on */
.prompt-diff { font-family:ui-monospace,Menlo,monospace; font-size:12px; white-space:pre-wrap; } .prompt-diff div { margin:1px 0; }
.rev-row > details { margin-top:4px; } .rev-row > details > summary { cursor:pointer; font-size:12.5px; }
.run-stale { color:var(--warn) !important; font-weight:600; }

/* ---- the Brief panel: the reco in parts (a guide, not a score: no warning colours) ---- */
.bf-note { font-size:12.5px; color:var(--ink-soft); background:var(--cream); border-radius:8px; padding:8px 10px; margin:10px 0 6px; }
.bf-read { font-size:12px; margin:0 0 6px; } .bf-read .btn { padding:3px 9px; font-size:11.5px; }
.bf-warn { font-size:12.5px; color:var(--ink); border-left:3px solid var(--line-strong); padding:2px 0 2px 9px; margin:6px 0; border-radius:0; }
.bf-sec { border-top:1px solid var(--line); margin-top:10px; padding-top:8px; }
.bf-cap { font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin-bottom:4px; }
.bf-row { display:flex; gap:8px; align-items:flex-start; padding:5px 0; font-size:13px; line-height:1.4; }
.bf-main { flex:1; min-width:0; overflow-wrap:anywhere; } .bf-sub { font-size:12px; color:var(--muted); margin-top:2px; }
.bf-side { display:flex; flex-direction:column; align-items:flex-end; gap:4px; flex:none; }
.bf-lab { font-size:11px; font-weight:700; color:var(--muted); } .bf-url { font-size:11.5px; }
.bf-q { display:inline-block; font-size:11px; font-weight:700; color:var(--ink); background:var(--cream-deep); border-radius:999px; padding:0 6px; cursor:help; }
.bs { font-size:11px; font-weight:600; padding:1px 8px; border-radius:999px; white-space:nowrap; }
.bs-in { background:var(--ok-soft); color:var(--ok); } .bs-re { background:var(--cream-deep); color:var(--ink-soft); } .bs-out { background:#fff; color:var(--muted); border:1px solid var(--line-strong); }
.bf-ins { padding:2px 9px !important; font-size:11.5px !important; }
.bf-full { margin-top:12px; border-top:1px solid var(--line); padding-top:8px; } .bf-full summary { cursor:pointer; font-size:12.5px; color:var(--ink-soft); }
/* ---- the audit report: what the article leaves out of the reco, for information ---- */
.rd-note { font-size:13px; color:var(--ink-soft); margin:0 0 10px; }
.rd-list { margin:0 0 12px; padding:0; list-style:none; } .rd-list li { padding:6px 0; border-top:1px solid var(--line); font-size:14px; display:flex; gap:10px; align-items:baseline; }
.rd-list li:first-child { border-top:0; } .rd-tag { flex:none; font-size:11px; font-weight:700; color:var(--muted); min-width:44px; }
.rd-have { color:var(--muted); font-size:13px; } .rd-h { font-size:12px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin:10px 0 2px; }
tr.intent-missing td { opacity:.8; } #recoDiffBody button.link.bref { font:500 13px/1.4 var(--body); background:none; color:var(--pink); padding:0; text-align:left; white-space:normal; }

/* ---- the full reco, laid out for reading ---- */
.reco-view { font-size:13px; line-height:1.5; color:var(--ink); overflow-wrap:anywhere; }
.reco-view h4 { font:700 13.5px/1.3 var(--body); color:var(--ink); margin:16px 0 6px; padding-top:10px; border-top:1px solid var(--line); }
.reco-view h4:first-child { border-top:0; padding-top:0; margin-top:6px; }
.reco-view p { margin:0 0 7px; } .reco-view ul, .reco-view ol { margin:0 0 8px 18px; padding:0; } .reco-view li { margin-bottom:4px; }
.reco-view .rv-field b { color:var(--ink); } .reco-view .rv-why { color:var(--muted); font-size:12px; margin-left:10px; }
.reco-view .rv-section { font-weight:700; margin:12px 0 3px; } .reco-view .rv-section span { font-size:11px; color:var(--muted); font-weight:700; margin-right:2px; }
.reco-view .rv-cover { color:var(--ink-soft); border-left:3px solid var(--line-strong); border-radius:0; padding:1px 0 1px 9px; margin:0 0 8px; font-size:12.5px; }
.reco-view .rv-table { overflow-x:auto; margin:4px 0 10px; } .reco-view table { border-collapse:collapse; width:100%; font-size:12px; }
.reco-view th, .reco-view td { border:1px solid var(--line); padding:5px 6px; text-align:left; vertical-align:top; } .reco-view th { background:var(--cream); font-weight:700; }
.reco-view a { color:var(--pink); word-break:break-all; }

/* ---- find and replace, the symbols menu and the shortcuts list (editor_tools.js) ---- */
.find-bar { position:sticky; top:0; z-index:6; margin:0 0 12px auto; width:max-content; max-width:100%; background:#fff; border:1px solid var(--line-strong); border-radius:12px;
  padding:8px 10px; box-shadow:0 4px 14px rgba(36,51,48,.10); display:flex; flex-direction:column; gap:6px; }
.find-bar[hidden] { display:none; }
.edit-pane > .find-bar { position:static; margin:8px 12px 0 auto; }
.find-bar .fb-line { display:flex; align-items:center; gap:6px; }
.find-bar input[type=text] { width:230px; margin:0; padding:6px 9px; font-size:13px; border:1px solid var(--line-strong); border-radius:8px; }
.find-bar .fb-btn { background:#fff; color:var(--ink); border:1px solid var(--line-strong); border-radius:8px; padding:5px 9px; font-size:12.5px; font-weight:600; }
.find-bar .fb-btn:hover { background:var(--cream); }
.find-bar .fb-count { font-size:12px; color:var(--muted); min-width:64px; text-align:center; } .find-bar .fb-count.none { color:var(--warn); font-weight:600; }
.find-bar .fb-case { display:inline-flex; align-items:center; gap:3px; font-size:12px; color:var(--ink-soft); margin:0; cursor:pointer; } .find-bar .fb-case input { width:auto; margin:0; }
::highlight(find-all) { background-color:#FFE9A8; color:inherit; }
::highlight(find-current) { background-color:#FDA201; color:#1b1b1b; }
.gd-toolbar button.tb.tb-word { font-size:12.5px; font-weight:600; }
.tool-pop { position:absolute; z-index:50; background:#fff; border:1px solid var(--line-strong); border-radius:12px; padding:10px 12px; box-shadow:0 6px 18px rgba(36,51,48,.14); max-width:320px; }
.tool-pop[hidden] { display:none; }
.tool-pop .tp-cap { font-size:11px; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--muted); margin-bottom:6px; }
.tool-pop .tp-grid { display:grid; grid-template-columns:repeat(6, 34px); gap:4px; }
.tool-pop .tp-sym { background:#fff; color:var(--ink); border:1px solid var(--line); border-radius:8px; padding:0; height:32px; font-size:16px; font-weight:500; justify-content:center; }
.tool-pop .tp-sym:hover { background:var(--cream); }
.tool-pop .tp-keys { border-collapse:collapse; font-size:12.5px; } .tool-pop .tp-keys td { padding:3px 10px 3px 0; }
.tool-pop kbd { font:600 11.5px/1 var(--body); background:var(--cream); border:1px solid var(--line-strong); border-radius:5px; padding:2px 6px; white-space:nowrap; }
/* ---- the outline: words under each heading ---- */
.outline .ol { display:flex; gap:8px; align-items:baseline; } .outline .ol .ol-t { flex:1; min-width:0; }
.outline .ol .ol-n { flex:none; font-size:11px; font-weight:500; color:var(--muted); }

/* ---- tables in the editor: the size picker and the header row ---- */
.tool-pop .tp-size { display:grid; gap:3px; } .tool-pop .tp-cell { width:18px; height:18px; padding:0; border:1px solid var(--line-strong); border-radius:3px; background:#fff; }
.tool-pop .tp-cell.on { background:var(--pink-soft); border-color:var(--pink); } .tool-pop .tp-say { font-size:12px; color:var(--ink-soft); margin-top:8px; min-height:16px; }
.ql-editor td.ql-th-yes { background:var(--cream); font-weight:700; }
.gd-toolbar .tb-table .tb.on { background:var(--pink-soft); color:var(--pink-dark); }

/* ---- image places in the editor: a marked line that holds an image's alt text ---- */
.ql-editor p.ql-imgplace-yes { border:1.5px dashed var(--line-strong); background:var(--cream); border-radius:10px; padding:10px 12px; margin:10px 0 14px; color:var(--ink); }
.ql-editor p.ql-imgplace-yes::before { content:"Image goes here · alt text: "; font-weight:700; font-size:12.5px; color:var(--muted); }

/* ---- the editor's Tables section: each table with the HTML the website takes ---- */
.tbl-item { border-top:1px solid var(--line); padding:12px 0 6px; } .tbl-item:first-of-type { border-top:0; }
.tbl-head { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:8px; font-size:14px; } .tbl-head .tbl-copy { margin-left:auto; }
.tbl-head button.link.bref { font:500 13px/1.4 var(--body); background:none; color:var(--pink); padding:0; }
.tbl-preview { overflow-x:auto; margin:6px 0; } .tbl-preview table { border-collapse:collapse; width:100%; font-size:13.5px; }
.tbl-preview th, .tbl-preview td { border:1px solid var(--line-strong); padding:7px 10px; text-align:left; vertical-align:top; }
.tbl-preview th { background:var(--cream); font-weight:700; }
.tbl-code summary { cursor:pointer; font-size:12.5px; } .tbl-code pre.preview { font-size:12px; max-height:340px; overflow:auto; white-space:pre; }

/* ---- the editor's queue: the steps strip, one card per step in workflow order, and the uploaded-audits table ---- */
.flow { display:flex; flex-wrap:wrap; align-items:center; gap:6px; margin:0 0 18px; }
.flow-step { display:inline-flex; align-items:center; gap:7px; background:#fff; border:1px solid var(--line); border-radius:999px; padding:5px 12px 5px 5px; color:var(--ink-soft); font-size:12.5px; font-weight:500; }
.flow-step:hover { text-decoration:none; border-color:var(--line-strong); color:var(--ink); }
.flow-step .flow-no { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; background:var(--cream-deep); color:var(--ink-soft); font-size:11.5px; font-weight:700; }
.flow-step b { font-size:12px; font-weight:700; color:var(--muted); background:var(--cream); border-radius:999px; padding:1px 8px; }
.flow-step.has { color:var(--ink); border-color:var(--line-strong); } .flow-step.has b { background:var(--ink); color:#fff; }
.flow-step.has.who-you .flow-no { background:var(--pink); color:#fff; } .flow-step.has.who-writer .flow-no { background:#1F78FF; color:#fff; }
.flow-step.has.who-tool .flow-no { background:#FDA201; color:#fff; } .flow-step.has.who-reviewer .flow-no { background:#712BDA; color:#fff; } .flow-step.has.who-done .flow-no { background:#4EAC7E; color:#fff; }
.flow-arrow { color:var(--muted); font-size:13px; }
.qs-grid { display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:16px; align-items:stretch; margin-bottom:22px; }
@media (max-width:1280px) { .qs-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } } @media (max-width:720px) { .qs-grid { grid-template-columns:1fr; } }
.q-stage { margin:0; padding:0; overflow:hidden; display:flex; flex-direction:column; border-top:4px solid var(--line-strong); scroll-margin-top:84px; }
.q-stage.who-you { border-top-color:var(--pink); } .q-stage.who-writer { border-top-color:#1F78FF; } .q-stage.who-tool { border-top-color:#FDA201; }
.q-stage.who-reviewer { border-top-color:#712BDA; } .q-stage.who-done { border-top-color:#4EAC7E; } .q-stage.who-agency { border-top-color:#FF5400; }
.flow-step.has.who-agency .flow-no, .stp.who-agency b { background:#FF5400; color:#fff; }
.hold-card { border-left:4px solid #FDA201; } .hold-card h2 { margin-top:0; }
.qs-head { display:grid; grid-template-columns:auto 1fr; gap:4px 10px; align-items:start; padding:14px 16px 10px; }
.qs-head .step-no { display:inline-flex; align-items:center; justify-content:center; width:26px; height:26px; border-radius:50%; background:var(--cream-deep); color:var(--ink); font-weight:700; font-size:13px; margin-top:1px; }
.qs-head h2 { font-size:15.5px; line-height:1.25; margin:0; display:flex; flex-wrap:wrap; align-items:center; gap:6px 8px; }
.qs-head .holder { grid-column:2; justify-self:start; font-size:11px; font-weight:700; letter-spacing:.03em; text-transform:uppercase; color:var(--muted); }
.q-stage.who-you .holder { color:var(--pink-dark); }
.qs-sub { font-size:12.5px; color:var(--muted); margin:3px 0 0; line-height:1.4; }
.qs-tools { padding:0 16px 8px; }
.qs-body { border-top:1px solid var(--line); padding:4px 16px 10px; max-height:460px; overflow:auto; flex:1; }
.qs-empty { color:var(--muted); font-size:13px; margin:12px 0 6px; }
.q-item { padding:11px 0; border-bottom:1px solid var(--line); display:flex; flex-direction:column; gap:5px; } .q-item:last-child { border-bottom:0; }
.q-item .doc-link-title { font-size:14.5px; line-height:1.3; overflow-wrap:anywhere; }
.qi-meta { font-size:12.5px; color:var(--muted); line-height:1.4; } .qi-note { font-size:13px; color:var(--ink-soft); border-left:3px solid var(--line-strong); border-radius:0; padding-left:8px; }
.qi-chips { display:flex; flex-wrap:wrap; gap:5px; align-items:center; } .qi-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.up-sec { scroll-margin-top:84px; } .up-wrap { overflow-x:auto; margin-top:6px; }
.up-table { box-shadow:none; border-radius:10px; width:100%; font-size:13px; } .up-table th, .up-table td { padding:9px 9px; } .up-table th { font-size:11.5px; line-height:1.25; vertical-align:bottom; } .up-table td { vertical-align:middle; }
.up-table .num { text-align:right; } .up-table th.num { text-align:right; } .up-table .nowrap { white-space:nowrap; } .up-table .up-title { min-width:240px; }
.up-table .doc-link-title { font-size:14px; } .up-table .status { white-space:nowrap; } .up-table .q-actions .btn { margin-left:0; }
.up-aicell { white-space:nowrap; } .up-small { display:block; font-size:11.5px; color:var(--muted); }
.up-ai { font-weight:600; font-size:12.5px; } .up-ai.aiv-ai { color:var(--err); } .up-ai.aiv-assisted { color:var(--warn); } .up-ai.aiv-human { color:var(--ok); } .up-ai.aiv-cannot_tell { color:var(--muted); }

/* ---- tasks from the task sheet (G1) ---- */
.tk-code { display:inline-block; font-size:11px; font-weight:700; letter-spacing:.03em; padding:2px 7px; border-radius:6px; background:var(--ink); color:#fff; white-space:nowrap; vertical-align:middle; }
.stg.tk-late { background:#FBE1E6; color:var(--err); } .stg.tk-warn { background:var(--orange-soft); color:var(--warn); } .stg.tk-new { background:var(--hl-me); color:#1553B8; }
.tk-late-text { color:var(--err); font-weight:600; } .tk-miss { color:var(--warn); }
.tk-bar { display:flex; flex-wrap:wrap; align-items:center; gap:6px 14px; background:#fff; border:1px solid var(--line); border-radius:12px; padding:10px 14px; margin:0 0 14px; font-size:13px; }
.tk-bar-right { margin-left:auto; display:flex; gap:6px; } .tk-bar-err { flex-basis:100%; color:var(--warn); font-size:12.5px; }
.q-stage.q-wide { grid-column:1 / -1; } .q-stage.q-wide .qs-body { max-height:520px; padding:0; }
.tk-table { border:0; border-radius:0; } .tk-table th { position:sticky; top:0; background:#fff; z-index:1; } .tk-table .up-title { min-width:260px; }
.tk-table .doc-link-title { color:var(--ink); } .tk-table tr:last-child td { border-bottom:0; }
.tk-give { white-space:nowrap; } .tk-writer { width:auto; min-width:150px; max-width:200px; padding:5px 8px; font-size:12.5px; display:inline-block; margin:0 6px 0 0; }
.tk-move { font-size:12.5px; } .tk-move summary { cursor:pointer; color:var(--muted); } .tk-move .qi-actions { margin-top:6px; align-items:center; }
.tk-reco-err { border-left-color:var(--warn); color:var(--warn); }
.tk-outside summary { cursor:pointer; list-style:revert; } .tk-outside summary h2 { display:inline-flex; align-items:center; gap:8px; margin:0 10px 0 4px; } .tk-outside summary .qs-sub { display:block; margin:4px 0 0 20px; }
.tk-box { border:1px solid var(--line); border-radius:10px; padding:10px 12px 6px; margin:0 0 14px; background:var(--panel2); } .tk-box .gd-cap { display:flex; align-items:center; gap:8px; }
.tk-box .kv b { overflow-wrap:anywhere; text-align:right; }
.user-name { color:inherit; } .user-name:hover { color:var(--pink); text-decoration:none; }
.once-card { border:2px solid var(--ok); background:var(--ok-soft); } .once-card code { font-size:15px; background:#fff; padding:2px 8px; border-radius:6px; user-select:all; }
.wr-table td { vertical-align:top; } .wr-table .num { text-align:right; } .wr-table .names-box { width:100%; min-width:220px; font-size:13px; padding:6px 8px; margin:0 0 6px; }
.inline-form { margin-top:14px; } .form-row { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
@media (max-width:1100px) { .q-stage.q-wide .qs-body { overflow-x:auto; } }

/* ---- the Queue as summary cards, and the article-level page (G1) ---- */
a.bd-card { color:inherit; text-decoration:none; cursor:pointer; transition:box-shadow .15s, transform .15s; } a.bd-card:hover { text-decoration:none; box-shadow:0 6px 20px rgba(36,51,48,.13); transform:translateY(-1px); }
a.bd-card:focus-visible { outline:3px solid var(--pink); outline-offset:2px; } .bd-card .q-n { font-size:15px; }
.bd-card.bd-none { opacity:.72; } .bd-card.bd-none:hover { opacity:1; }
.bd-body { border-top:1px solid var(--line); padding:8px 16px 10px; flex:1; display:flex; flex-direction:column; gap:8px; }
.bd-people { list-style:none; margin:0; padding:0; font-size:13px; } .bd-people li { display:flex; justify-content:space-between; gap:10px; padding:3px 0; border-bottom:1px dashed var(--line); }
.bd-people li:last-child { border-bottom:0; } .bd-people span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } .bd-people b { font-weight:700; }
.bd-foot { padding:8px 16px 12px; font-size:12.5px; font-weight:600; color:var(--pink); } .bd-links { font-size:13px; margin:0 0 30px; line-height:1.9; }
.flow-step.on { background:var(--ink); border-color:var(--ink); color:#fff; } .flow-step.on b { background:#fff; color:var(--ink); } .flow-step.on .flow-no { background:#fff !important; color:var(--ink) !important; }
.art-filters { display:flex; flex-wrap:wrap; align-items:center; gap:8px 18px; margin:0 0 12px; font-size:13px; } .art-filters label { display:flex; align-items:center; gap:6px; margin:0; font-weight:500; }
.art-filters select { width:auto; padding:5px 8px; font-size:13px; margin:0; } .art-filters .inline { margin-left:0; }
.art-table td { vertical-align:top; } .art-table .up-title { min-width:230px; max-width:340px; } .art-table .doc-link-title { font-size:14px; }
.art-flags { margin-top:4px; } .art-audit .status { white-space:nowrap; } .art-sev { display:flex; gap:4px; margin-top:4px; flex-wrap:wrap; } .art-sev .sev { white-space:nowrap; }
.art-actions { min-width:210px; } .art-actions .qi-actions { margin:0; align-items:center; } .art-actions .tk-writer { margin:0; }
.stp { display:inline-flex; align-items:center; gap:6px; font-size:12px; font-weight:600; color:var(--ink); white-space:nowrap; }
.stp b { display:inline-flex; align-items:center; justify-content:center; width:20px; height:20px; border-radius:50%; background:var(--cream-deep); font-size:11px; }
.stp.who-you b { background:var(--pink); color:#fff; } .stp.who-writer b { background:#1F78FF; color:#fff; } .stp.who-tool b { background:#FDA201; color:#fff; }
.stp.who-reviewer b { background:#712BDA; color:#fff; } .stp.who-done b { background:#4EAC7E; color:#fff; }
.page-head h1 .q-n { font-size:18px; vertical-align:middle; }

/* ---- users and Google sign-in ---- */
.g-btn { width:100%; justify-content:center; background:#fff; color:var(--ink); border:1px solid var(--line-strong); font-size:15px; padding:12px 18px; margin:6px 0 10px; }
.g-btn:hover { background:var(--cream); } .g-mark { display:inline-flex; align-items:center; justify-content:center; width:22px; height:22px; border-radius:50%; background:#1F78FF; color:#fff; font-weight:700; font-size:13px; }
.usr-table td { vertical-align:top; } .usr-table input, .usr-table select, .usr-table textarea { margin:0; padding:6px 8px; font-size:13px; min-width:150px; } .usr-table .names-box { min-width:200px; }
.usr-table tr.usr-off td { background:var(--panel2); } .usr-table tr.usr-off input, .usr-table tr.usr-off select { color:var(--muted); }
span.user-name { color:inherit; }

/* the admin in a writer's article (2026-11-16): paste is open to the admin, and what they change is shown apart */
.lock-chip.lock-open { background:#FF5400; }
.gd-banner.gd-banner-warn { background:#FBE1E6; color:var(--err); border-bottom-color:#F2B8C2; }
.rec-admin { margin:10px 0; padding:9px 12px; border-radius:10px; background:var(--orange-soft); border-left:3px solid #FF5400; font-size:13px; }
.rec-admin b { display:block; margin-bottom:2px; }
.wc-admin { margin:10px 0 0; padding:8px 12px; border-radius:10px; background:var(--orange-soft); border-left:3px solid #FF5400; font-size:13px; }

/* model drafts (2026-11-16): the benchmark article of a page category */
.md-head { display:flex; gap:16px; justify-content:space-between; align-items:flex-start; } .md-actions { display:flex; gap:6px; flex:none; }
.md-cats { display:flex; flex-wrap:wrap; gap:6px 8px; align-items:center; margin:8px 0 12px; } .md-cats .bf-cap { width:100%; margin:0; }
.md-cat { display:inline-flex; gap:5px; align-items:center; font-size:12.5px; padding:2px 9px; border:1px solid var(--line-strong); border-radius:999px; background:#fff; cursor:pointer; }
.md-cat.on { background:var(--ok-soft); border-color:var(--ok); } .md-cat input { margin:0; }
.md-table td { vertical-align:top; font-size:13.5px; } .md-pick { max-width:420px; }
.md-read h1 { font-size:26px; } .md-read h2 { font-size:20px; margin-top:22px; } .md-read h3 { font-size:16px; margin-top:14px; } .md-read p, .md-read li { font-size:15px; line-height:1.6; }
.md-li { align-items:flex-start !important; } .md-li .bs { flex:none; min-width:112px; text-align:center; margin-top:2px; }
.md-box summary { font-size:13px; } .md-note { color:var(--ink-soft); }

/* the Write tab's list of articles (2026-11-16): full width, one line per article, chips to narrow it */
.dx-bar { display:flex; flex-wrap:wrap; gap:10px 18px; align-items:center; justify-content:space-between; margin:0 0 12px; }
.dx-chips { display:flex; flex-wrap:wrap; gap:6px; }
.dx-chip { background:#fff; color:var(--ink-soft); border:1px solid var(--line-strong); border-radius:999px; padding:5px 12px; font-size:12.5px; font-weight:600; white-space:nowrap; }
.dx-chip b { margin-left:4px; font-weight:700; color:var(--muted); } .dx-chip:hover { background:var(--cream); }
.dx-chip.active { background:var(--ink); color:#fff; border-color:var(--ink); } .dx-chip.active b { color:#fff; opacity:.75; }
.dx-chip.dx-late { color:var(--err); border-color:#F2B8C2; } .dx-chip.dx-late.active { background:var(--err); border-color:var(--err); color:#fff; }
.dx-tools { display:flex; flex-wrap:wrap; gap:8px 14px; align-items:center; font-size:13px; }
.dx-tools label { display:flex; align-items:center; gap:6px; margin:0; font-weight:500; white-space:nowrap; }
.dx-tools select, .dx-tools input { width:auto; margin:0; padding:5px 8px; font-size:13px; } .dx-tools input { min-width:220px; }
.dx-table { font-size:13.5px; } .dx-table th { white-space:nowrap; } .dx-table td { vertical-align:middle; } .dx-table .up-title { min-width:320px; width:40%; } .dx-table td:not(.up-title), .dx-table th:not(.up-title) { width:1%; } .dx-table .doc-link-title { font-size:14.5px; }
.dx-table tbody tr:hover { background:var(--panel2); } .dx-table .up-small { margin-top:2px; } .dx-table .num .up-small { text-align:right; }
.dx-table tr[hidden] { display:none; }
.dx-table .dx-rec { min-width:150px; max-width:190px; } .dx-table .dx-rec .rec { white-space:normal; border-radius:10px; line-height:1.3; } .dx-table .up-small .stg { margin-top:3px; }
