/* procontent product interface. Client branding lives in the PDF/asset renderers. */
:root {
  color-scheme: light;
  --bg: #f7f8fa; --surface: #fff; --surface-2: #f1f3f6; --surface-hover: #f8f9fb;
  --sidebar: #fff; --input-bg: #fff; --text: #252a34; --muted: #687180; --faint: #8c95a3;
  --border: #e7e9ee; --border-strong: #d6dbe3; --accent: #d64d29; --accent-text: #fff;
  --accent-soft: #fdf0eb; --link: #bd4223; --ok: #26785d; --ok-bg: #eaf5ef;
  --warn: #946217; --warn-bg: #fbf3e4; --bad: #bd4248; --bad-bg: #fceef0;
  --info: #426c9a; --info-bg: #edf3fb; --mark: #ffdfb5;
  --ig: #a73f76; --ig-bg: #f9edf3; --fb: #4368b3; --fb-bg: #edf2fb; --li: #29759d; --li-bg: #e9f4fa;
  --overlay: #1a202c70; --shadow: 0 18px 70px #24314a18; --small-shadow: 0 2px 4px #27314a05;
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, monospace; --radius: 14px;
  --meter-grad: linear-gradient(90deg, #d64d29, #ed9c75);
  --login-canvas: #f1ece6; --login-ink: #3c3936; --client-bg: #f5efdf; --client-ink: #927537;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111418; --surface: #191d23; --surface-2: #232830; --surface-hover: #1e232b;
  --sidebar: #161a20; --input-bg: #15191f; --text: #edf0f5; --muted: #a0a9b7; --faint: #7f8998;
  --border: #2b313b; --border-strong: #414a59; --accent: #fa997b; --accent-text: #241811;
  --accent-soft: #352720; --link: #f7a68c; --ok: #82d5ad; --ok-bg: #1e342b;
  --warn: #e3bc75; --warn-bg: #362e21; --bad: #f08c96; --bad-bg: #38252b;
  --info: #9abde8; --info-bg: #222f41; --mark: #705434;
  --ig: #e49abc; --ig-bg: #362535; --fb: #a5bdf0; --fb-bg: #253047; --li: #8bc5e5; --li-bg: #20313d;
  --overlay: #040609ab; --shadow: 0 18px 70px #0006; --small-shadow: none;
  --meter-grad: linear-gradient(90deg, #fa997b, #b96d54);
  --login-canvas: #24221f; --login-ink: #e9dfd2; --client-bg: #332e23; --client-ink: #e0bf77;
}
* { box-sizing: border-box; }
.theme-changing *, .theme-changing *::before, .theme-changing *::after { transition: none !important; }
html { scroll-padding-top: 80px; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.55 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button svg, a svg { flex-shrink: 0; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1, h2, h3 { margin: 0; line-height: 1.25; letter-spacing: -.035em; }
::selection { background: var(--mark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
[tabindex="-1"]:focus { outline: none; }
code, .mono { font-family: var(--mono); font-size: 12px; }
svg { vertical-align: middle; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; white-space: nowrap; }
.wordmark { font-size: 24px; letter-spacing: -1.1px; font-weight: 750; line-height: 1; }
.brand-dot { color: var(--accent); }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: .12em; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.mini-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 12px 18px; background: var(--surface); border: 1px solid var(--accent); border-radius: 8px; }
.skip-link:focus { top: 10px; }

/* Workspace frame */
.shell { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100dvh; }
.side { display: flex; flex-direction: column; height: 100dvh; position: sticky; top: 0; background: var(--sidebar); border-right: 1px solid var(--border); min-width: 0; z-index: 15; }
.side-brand { min-height: 86px; padding: 25px 23px 20px; display: flex; align-items: center; justify-content: space-between; }
.side-brand .brand { gap: 9px; }
.side-brand .wordmark { font-size: 23px; }
.side-brand .brand img { width: 31px; height: 31px; }
.client-card { display: flex; align-items: center; gap: 11px; margin: 0 16px 20px; padding: 13px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-hover); }
.client-monogram { display: inline-grid; place-items: center; width: 33px; height: 35px; border: 1px solid color-mix(in srgb, var(--client-ink) 20%, transparent); border-radius: 9px; background: var(--client-bg); color: var(--client-ink); font: bold 23px var(--serif); flex: none; }
.client-card small { display: block; color: var(--muted); font-size: 8px; letter-spacing: .11em; font-weight: 600; margin-bottom: 3px; }
.client-card strong { display: block; font-size: 12px; font-weight: 650; }
.side-navigation { overflow-y: auto; overscroll-behavior: contain; padding: 0 14px 20px; scrollbar-width: thin; flex: 1; }
.nav-group + .nav-group { margin-top: 20px; }
.nav-label { padding: 0 12px 8px; color: var(--faint); font-size: 10px; font-weight: 650; letter-spacing: .075em; text-transform: uppercase; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 8px 12px; min-height: 36px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 12px; font-weight: 500; transition: background .15s, color .15s; }
.nav a svg { width: 17px; height: 17px; opacity: .85; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--link); background: var(--accent-soft); font-weight: 650; }
.nav a.active svg { opacity: 1; }
.side-foot { display: flex; gap: 9px; align-items: center; border-top: 1px solid var(--border); padding: 17px 15px; min-width: 0; }
.avatar { display: grid; place-items: center; width: 33px; height: 33px; border-radius: 50%; background: var(--info-bg); color: var(--info); font-size: 10px; font-weight: 750; flex: none; }
.user-meta { flex: 1; min-width: 0; }
.user-meta strong { display: block; font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta > span { display: block; color: var(--muted); text-transform: capitalize; font-size: 10px; margin-top: 2px; }
.workspace { display: flex; flex-direction: column; min-width: 0; }
.workspace-header { height: 74px; padding: 0 36px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 18px; background: var(--surface); }
.header-breadcrumb { font-size: 12px; gap: 12px !important; color: var(--text); }
.breadcrumb-client { color: var(--muted); }
.breadcrumb-slash { color: var(--border-strong); font-size: 17px; font-weight: 300; }
.header-actions { display: flex; gap: 18px; align-items: center; }
.appearance-switch { display: inline-flex; align-items: center; padding: 3px; gap: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); }
.appearance-option { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; min-height: 29px; font-size: 11px; color: var(--muted); border: 0; border-radius: 6px; background: none; }
.appearance-option[aria-pressed="true"] { color: var(--text); background: var(--surface); box-shadow: 0 1px 3px #00000012; }
.appearance-option:hover { color: var(--text); }
.main { width: 100%; max-width: 1536px; margin: 0 auto; padding: 35px 36px 48px; min-width: 0; flex: 1; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 36px; padding: 18px 0 22px; border-top: 1px solid var(--border); color: var(--faint); font-size: 10px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 27px; flex-wrap: wrap; }
.page-head h1 { font-size: 29px; font-weight: 650; line-height: 1.25; }
.page-head p { color: var(--muted); margin: 7px 0 0; max-width: 690px; font-size: 12px; line-height: 1.7; }
.page-head .eyebrow { margin-bottom: 9px; }
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.crumb a { color: var(--muted); text-decoration: none; }
.menu-toggle, .side-close, .drawer-scrim { display: none !important; }

/* Surfaces, controls, and lists */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--small-shadow); min-width: 0; }
.card-pad { padding: 22px 24px; }
.card h2 { font-size: 13px; letter-spacing: -.01em; font-weight: 650; color: var(--text); margin-bottom: 18px; }
.section-head { display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.section-head h2 { margin: 0; }
.section-head a { font-size: 11px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; }
.section-head a:hover { color: var(--link); }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.empty { padding: 48px 24px; text-align: center; color: var(--muted); font-size: 12px; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px 24px; min-height: 180px; }
.empty-state strong { font-size: 13px; font-weight: 600; margin-top: 14px; }
.empty-state p { color: var(--muted); font-size: 12px; max-width: 310px; margin: 5px 0 0; }
.empty-state > .btn { margin-top: 18px; }
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--surface-2); color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--border-strong); background: var(--surface); padding: 9px 14px; min-height: 37px; border-radius: 8px; font-size: 12px; font-weight: 550; text-decoration: none; color: var(--text); white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { background: var(--surface-2); border-color: var(--faint); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); font-weight: 600; }
.btn.primary:hover:not(:disabled) { filter: brightness(.96); background: var(--accent); border-color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.danger { color: var(--bad); }
.btn.small { min-height: 29px; padding: 5px 10px; font-size: 11px; }
.icon-btn { display: inline-flex; justify-content: center; align-items: center; border: 0; width: 32px; height: 32px; background: none; color: var(--muted); padding: 6px; border-radius: 7px; flex: none; }
.icon-btn:hover { color: var(--text); background: var(--surface-2); }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-weight: 550; font-size: 12px; }
.input, textarea.input, select.input { width: 100%; padding: 10px 12px; border: 1px solid var(--border-strong); background: var(--input-bg); border-radius: 8px; font-size: 12px; min-height: 40px; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: 2px solid color-mix(in srgb, var(--accent) 35%, transparent); outline-offset: 1px; border-color: var(--accent); }
.input.compact { width: auto; padding: 7px 11px; min-height: 35px; }
textarea.input { min-height: 110px; resize: vertical; line-height: 1.7; }
textarea.input.tall { min-height: 360px; font-family: var(--mono); font-size: 12px; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 12px; }
.check input { margin-top: 3px; accent-color: var(--accent); }
.field-error { color: var(--bad); font-size: 12px; }
.field-error:empty { display: none; }
.card:has(> .table) { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 12px; }
.table th { text-align: left; font-size: 10px; font-weight: 550; color: var(--muted); padding: 12px 20px; background: var(--surface-hover); border-bottom: 1px solid var(--border); white-space: nowrap; letter-spacing: .01em; }
.table td { padding: 16px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; line-height: 1.6; }
.table tr:last-child td { border-bottom: 0; }
.table tr.link { cursor: pointer; }
.table tr.link:hover td { background: var(--surface-hover); }
.title-cell { font-weight: 600; font-size: 12px; }
.title-cell + .small { margin-top: 4px; }
.article-title { color: var(--text); text-decoration: none; }
.article-title:hover { color: var(--link); }
.table .mono { font-size: 10px; }
.table-toolbar { padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--border); }
.table-search { display: flex; align-items: center; gap: 9px; color: var(--faint); max-width: 330px; width: 100%; }
.table-search input { background: transparent; border: 0; min-width: 0; width: 100%; font-size: 12px; padding: 5px 0; }
.table-search input:focus { outline: none; }
.table-search:focus-within { color: var(--accent); }
.table-search:focus-within input { outline: 2px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 10px; font-weight: 550; white-space: nowrap; background: var(--surface-2); color: var(--muted); border: 1px solid transparent; line-height: 1.6; }
.badge.ok { color: var(--ok); background: var(--ok-bg); }
.badge.warn { color: var(--warn); background: var(--warn-bg); }
.badge.bad { color: var(--bad); background: var(--bad-bg); }
.badge.info { color: var(--info); background: var(--info-bg); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 10px; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--border); color: var(--faint); white-space: nowrap; }
.chip.on { color: var(--info); background: var(--info-bg); border-color: transparent; text-decoration: none; }
.chip.on:hover { border-color: var(--info); }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 420px; }

/* Editorial overview */
.dash-section { margin-bottom: 24px; }
.dash-h { font-size: 13px; letter-spacing: -.01em; font-weight: 600; margin: 0 0 14px; }
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 22px; margin-bottom: 24px; }
.dash-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; margin-bottom: 24px; }
.tile { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 19px 20px 17px; text-decoration: none; color: var(--text); position: relative; min-width: 0; box-shadow: var(--small-shadow); transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.tile-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 17px; }
.tile-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--surface-2); color: var(--muted); }
.tile-icon.info { color: var(--info); background: var(--info-bg); }
.tile-icon.warn { color: var(--warn); background: var(--warn-bg); }
.tile-icon.ok { color: var(--ok); background: var(--ok-bg); }
.tile-icon.accent { color: var(--accent); background: var(--accent-soft); }
.tile-n { font-size: 32px; font-weight: 600; line-height: 1.1; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.tile-label { font-size: 11px; color: var(--muted); margin-top: 8px; }
.tile-you { font-size: 9px; font-weight: 550; color: var(--link); }
.tile-arrow { color: var(--faint); }
.attention-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 24px; padding: 13px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 24px; }
.attention-strip > strong { font-size: 10px; font-weight: 600; color: var(--muted); }
.attention-strip a { font-size: 10px; text-decoration: none; color: var(--muted); display: flex; gap: 7px; align-items: center; }
.attention-strip a:hover { color: var(--link); }
.attention-strip a b { color: var(--text); font-weight: 650; }
.attention-strip a.urgent b { color: var(--bad); }
.waitlist, .runlist { list-style: none; margin: 0; padding: 0; }
.waitlist li { display: flex; align-items: center; gap: 13px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.waitlist li:last-child { border-bottom: 0; padding-bottom: 3px; }
.waitlist li:first-child { padding-top: 4px; }
.wait-icon { display: grid; place-items: center; width: 36px; height: 40px; background: var(--surface-2); border-radius: 9px; color: var(--muted); flex: none; }
.wait-content { flex: 1; min-width: 0; }
.waitlist a { font-weight: 550; color: var(--text); text-decoration: none; font-size: 12px; line-height: 1.6; display: block; }
.waitlist a:hover { color: var(--link); }
.waitlist .row { margin-top: 7px; gap: 8px; font-size: 10px; }
.waitlist .badge { font-size: 9px; }
.wait-age { color: var(--faint); font-size: 10px; white-space: nowrap; }
.runlist li { padding: 12px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; align-items: center; font-size: 12px; }
.runlist li:last-child { border-bottom: 0; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.err { color: var(--bad); }
.ok-n { color: var(--ok); }
.pipeline th, .pipeline td { padding-left: 22px; padding-right: 16px; }
.pipeline td { padding-top: 16px; padding-bottom: 16px; }
.pipeline td:first-child { width: 37%; }
.pipeline .small { font-size: 10px; }
.pipeline .title-cell { font-size: 11px; }
.pipeline .title-cell + .small { margin-top: 3px; max-width: 330px; }
.card-header { padding: 21px 24px 18px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.card-header h2 { margin: 0; }
.card-header p { font-size: 11px; color: var(--muted); margin: 4px 0 0; }
.live-label { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; white-space: nowrap; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 12px; padding-top: 7px; }
.stat-n { font-size: 24px; font-weight: 550; letter-spacing: -.045em; line-height: 1.2; }
.stat .small { font-size: 10px; margin-top: 6px; }
.meter + .meter { margin-top: 20px; }
.meter .row { font-size: 11px; }
.meter strong { font-weight: 550; }
.meter .row > span:last-child { color: var(--muted); font-size: 10px; }
.meter-track { height: 5px; border-radius: 6px; background: var(--surface-2); overflow: hidden; margin-top: 10px; }
.meter-fill { height: 100%; border-radius: 6px; background: var(--accent); }
.meter-fill.hot { background: var(--bad); }

/* Article workspace, evidence, and history */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 24px; align-items: start; }
.detail > *, .claim > div, .story-body, .signal-body { min-width: 0; }
.tabs { display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--border); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 12px 14px; cursor: pointer; color: var(--muted); font-size: 12px; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: var(--link); border-bottom-color: var(--accent); font-weight: 600; }
.tabs button:hover { color: var(--text); }
.preview { padding: 40px 42px; }
.preview .kicker { color: var(--accent); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 650; }
.preview h1.headline { font: 500 34px/1.25 var(--serif); letter-spacing: -.025em; margin: 12px 0 16px; }
.preview .dek { font: 18px/1.6 var(--serif); color: var(--muted); margin: 0 0 30px; }
.prose { font: 16px/1.85 var(--serif); }
.prose h2, .prose h3 { font: 600 18px/1.4 var(--sans); margin: 1.6em 0 .7em; color: var(--text); letter-spacing: -.025em; }
.prose p { margin: 0 0 1.2em; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.prose blockquote { margin: 0 0 1.2em; border-left: 3px solid var(--accent); padding-left: 18px; color: var(--muted); }
.sources { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12px; }
.sources ol { padding-left: 1.3em; margin: 8px 0 0; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 11px 12px; font-size: 11px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.hash { font: 10px/1.7 var(--mono); word-break: break-all; background: var(--surface-2); padding: 11px 12px; border: 1px solid var(--border); border-radius: 7px; }
.notice { padding: 13px 15px; border-radius: 8px; font-size: 12px; line-height: 1.75; }
.notice.warn { background: var(--warn-bg); color: var(--warn); }
.notice.bad { background: var(--bad-bg); color: var(--bad); }
.notice.ok { background: var(--ok-bg); color: var(--ok); }
.notice.info { background: var(--info-bg); color: var(--info); }
.notice ul { margin: 5px 0 0; padding-left: 17px; }
.claim { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; padding: 23px; border-bottom: 1px solid var(--border); }
.claim:last-child { border-bottom: 0; }
.claim-num { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 11px; font-weight: 600; }
.claim-text { font-size: 13px; font-weight: 550; margin-bottom: 7px; }
.excerpt { border-left: 2px solid var(--border-strong); font: 14px/1.7 var(--serif); color: var(--muted); padding: 1px 0 1px 14px; margin: 8px 0 12px; }
.claim-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--muted); font-size: 10px; }
.claim-meta a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: min(360px, 100%); display: inline-block; vertical-align: bottom; }
.timeline { list-style: none; margin: 0; padding: 0; font-size: 12px; }
.timeline li { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.timeline li:last-child { border-bottom: 0; }
.timeline time { color: var(--muted); font-size: 10px; }
.timeline pre { font-size: 10px; margin: 7px 0 0; white-space: pre-wrap; word-break: break-word; color: var(--muted); }
.timeline.wide pre { max-height: 7em; overflow: auto; }
tr.muted td { opacity: .7; }
.md-table-wrap { overflow-x: auto; margin: 0 0 1.3em; }
.md-table { border-collapse: collapse; width: 100%; font: 12px/1.7 var(--sans); }
.md-table th, .md-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: left; }
.md-table th { font-weight: 600; background: var(--surface-2); }
.md-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 11px; }
.notes li { padding-left: 12px; border-left: 2px solid var(--border); color: var(--muted); }
.notes li.warn { border-left-color: var(--warn); color: var(--text); }
.infographic { margin: 0 0 28px; }
.infographic-img { display: block; width: 100%; height: auto; border-radius: 9px; border: 1px solid var(--border); background: var(--surface-2); min-height: 80px; }
.infographic figcaption { margin-top: 10px; font-family: var(--sans); }
.infographic details, .infographic summary { display: inline; }
.infographic summary { cursor: pointer; color: var(--link); }

/* Story and competitor research */
.story { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 16px; padding: 24px; }
.story.regulator { border-left: 3px solid var(--info); }
.story-rank { display: grid; place-items: center; width: 34px; height: 36px; font-size: 15px; font-weight: 600; letter-spacing: -.03em; color: var(--muted); background: var(--surface-2); border-radius: 8px; }
.story-title { font-size: 17px; font-weight: 600; letter-spacing: -.025em; margin: 10px 0; }
.story-summary { margin: 0 0 12px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.story-source, .story-origin { margin-top: 8px; overflow-wrap: anywhere; }
.story-items { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--border); }
.story-items li { padding: 13px 0; border-bottom: 1px solid var(--border); }
.story-items li:last-child { border-bottom: 0; }
.story-snippet { margin-top: 6px; color: var(--muted); white-space: pre-wrap; word-break: break-word; }
.signal-list { display: flex; flex-direction: column; gap: 17px; }
.signal { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 22px; padding: 24px; }
.signal-score { text-align: center; padding-top: 4px; }
.signal-x { font-size: 26px; letter-spacing: -.04em; white-space: nowrap; line-height: 1; font-weight: 600; }
.signal-x.hot { color: var(--accent); }
.signal-text { margin: 12px 0; white-space: pre-wrap; word-break: break-word; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; }
.badge.plat-instagram { background: var(--ig-bg); color: var(--ig); }
.badge.plat-facebook { background: var(--fb-bg); color: var(--fb); }
.badge.plat-linkedin { background: var(--li-bg); color: var(--li); }

/* Dialogs and notifications */
.modal-back { position: fixed; inset: 0; background: var(--overlay); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 24px; z-index: 30; }
.modal { background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--border); border-radius: 16px; max-width: 780px; width: 100%; max-height: 88dvh; display: flex; flex-direction: column; }
.modal-head { padding: 22px 24px; border-bottom: 1px solid var(--border); display: flex; gap: 16px; align-items: flex-start; }
.modal-head h2 { font-size: 18px; }
.modal-body { padding: 24px; overflow: auto; }
.evidence-text { font: 14px/1.8 var(--serif); white-space: pre-wrap; }
mark { background: var(--mark); color: inherit; border-radius: 3px; padding: 0 2px; }
#toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 50; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: var(--text); color: var(--bg); padding: 13px 20px; border-radius: 10px; font-size: 12px; box-shadow: var(--shadow); max-width: 560px; }
.toast.bad { background: var(--bad); color: var(--surface); }

/* Product sign-in */
.login { min-height: 100dvh; display: flex; flex-direction: column; background: var(--surface); }
.login-header { padding: 29px 48px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.login-layout { flex: 1; display: grid; grid-template-columns: 1.1fr 1fr; margin: 0 28px; min-height: 640px; }
.login-story { background: var(--login-canvas); color: var(--login-ink); border-radius: 20px; padding: 58px clamp(30px, 5vw, 85px) 32px; display: flex; flex-direction: column; align-items: flex-start; position: relative; overflow: hidden; }
.login-story .eyebrow { font-size: 8px; letter-spacing: .11em; color: color-mix(in srgb, var(--login-ink) 70%, transparent); }
.login-story h2 { font-size: clamp(34px, 3.8vw, 58px); font-weight: 550; line-height: 1.13; letter-spacing: -.055em; margin-top: 28px; }
.login-story h2 > span { color: var(--accent); }
.login-story > p { font-size: 13px; line-height: 1.8; max-width: 340px; color: color-mix(in srgb, var(--login-ink) 72%, transparent); margin: 22px 0 28px; }
.editorial-art { width: 100%; max-width: 400px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); transform: rotate(-3deg); box-shadow: 0 10px 30px #422a1520; margin: 12px 0 34px 10px; }
.art-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 8px; color: var(--muted); }
.art-dots { font-size: 6px; color: var(--border-strong); letter-spacing: 1px; }
.art-paper { padding: 25px 27px; color: var(--text); }
.art-kicker { display: block; color: var(--accent); font-size: 7px; letter-spacing: .1em; font-weight: 650; }
.art-paper > strong { display: block; font: 21px/1.3 var(--serif); max-width: 240px; margin: 10px 0 17px; }
.art-line { display: block; width: 95%; height: 5px; border-radius: 2px; background: var(--surface-2); margin: 7px 0; }
.art-line.short { width: 70%; }
.art-check { display: flex; align-items: center; gap: 8px; font-size: 8px; margin-top: 18px; color: var(--muted); }
.art-check > span { display: grid; place-items: center; color: var(--ok); background: var(--ok-bg); border-radius: 50%; width: 21px; height: 21px; }
.login-stages { display: flex; gap: 24px; align-items: center; margin-top: auto; width: 100%; padding-top: 10px; }
.login-stages > span { font-size: 9px; font-weight: 500; display: flex; align-items: center; gap: 7px; }
.login-stages small { color: color-mix(in srgb, var(--login-ink) 50%, transparent); font-size: 8px; }
.login-panel { display: flex; flex-direction: column; justify-content: center; padding: 60px clamp(35px, 5.8vw, 100px); }
.login-form { max-width: 370px; width: 100%; margin: auto; }
.login-form > .eyebrow { font-size: 8px; letter-spacing: .12em; margin-bottom: 15px; }
.login-form h1 { font-size: clamp(24px, 2.3vw, 32px); font-weight: 600; line-height: 1.3; letter-spacing: -.045em; }
.login-description { color: var(--muted); font-size: 12px; line-height: 1.85; margin: 13px 0 30px; }
.login-form .field { margin-bottom: 18px; }
.login-form > .btn { width: 100%; }
.google-signin { width: 100%; padding: 13px 18px; border-color: var(--border-strong); border-radius: 9px; background: var(--surface); font-size: 12px; justify-content: flex-start; gap: 14px; }
.google-signin svg { margin-left: auto; color: var(--faint); }
.google-g { font-family: Arial, sans-serif; color: #4285f4; font-size: 18px; font-weight: 700; }
.login-access { display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 18px; font-size: 9px; color: var(--muted); }
.login-form .notice { margin-bottom: 18px; }
.login-footer { display: flex; justify-content: space-between; padding: 24px 48px; color: var(--faint); font-size: 9px; gap: 20px; }

/* Responsive workspace: all navigation, account, and appearance controls remain available. */
@media (min-width: 1600px) { .main { padding-top: 48px; } }
@media (max-width: 1200px) {
  .shell { grid-template-columns: 222px minmax(0, 1fr); }
  .side-brand { padding-left: 18px; padding-right: 18px; }
  .side-brand .wordmark { font-size: 21px; }
  .main { padding: 28px 26px 40px; }
  .workspace-header { padding: 0 26px; }
  .workspace-footer { margin: 0 26px; }
  .tile { padding: 17px; }
  .tiles { gap: 12px; }
  .detail { grid-template-columns: minmax(0, 1fr) 285px; gap: 18px; }
  .preview { padding: 30px; }
  .dash-grid { gap: 18px; }
  .login-stages { gap: 15px; }
}
@media (max-width: 1000px) {
  .detail { grid-template-columns: minmax(0, 1fr); }
  .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .dash-grid.equal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
  .login-layout { min-height: 590px; grid-template-columns: 1fr 1fr; margin: 0 20px; }
  .login-story { padding: 40px 30px 28px; }
  .login-panel { padding: 45px 35px; }
  .login-stages { flex-wrap: wrap; }
  .editorial-art { margin-left: 0; }
}
@media (max-width: 800px) {
  .shell { display: block; }
  .side { position: fixed; inset: 0 auto 0 0; width: 260px; height: 100dvh; transform: translateX(-100%); visibility: hidden; transition: transform .2s; }
  .nav-open .side { transform: none; visibility: visible; }
  .nav-open .drawer-scrim { display: block !important; position: fixed; inset: 0; background: var(--overlay); border: 0; z-index: 14; }
  .menu-toggle, .side-close { display: inline-flex !important; }
  .workspace { min-height: 100dvh; }
  .workspace-header { height: 68px; padding: 0 20px; }
  .header-actions { gap: 12px; }
  .header-breadcrumb { gap: 8px !important; }
  .main { padding: 27px 20px 36px; }
  .page-head h1 { font-size: 26px; }
  .workspace-footer { margin: 0 20px; }
  .login-header { padding: 24px 28px; }
  .login-layout { grid-template-columns: minmax(0, 1fr); max-width: 560px; width: calc(100% - 40px); margin: 0 auto; min-height: auto; }
  .login-story { display: none; }
  .login-panel { padding: 60px 40px; border: 1px solid var(--border); border-radius: 16px; min-height: 500px; }
  .login-form h1 { font-size: 30px; }
  .login-footer { padding: 28px; margin-top: auto; }
  .login-footer > span:last-child { display: none; }
}
@media (max-width: 560px) {
  .header-breadcrumb { font-size: 11px; }
  .breadcrumb-client, .breadcrumb-slash { display: none; }
  .header-actions { gap: 10px; }
  .appearance-option { padding: 6px 7px; min-height: 30px; }
  .appearance-option span { display: none; }
  .new-draft { padding: 8px 10px; font-size: 10px; min-height: 36px; gap: 4px; }
  .main { padding: 24px 16px 32px; }
  .workspace-header { padding: 0 12px; }
  .page-head { gap: 14px; margin-bottom: 22px; }
  .page-head h1 { font-size: 25px; }
  .page-head p { font-size: 11px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 18px; }
  .tile { padding: 15px; border-radius: 11px; }
  .tile-n { font-size: 28px; }
  .tile-top { margin-bottom: 13px; }
  .tile-label { font-size: 10px; }
  .tile-you { font-size: 8px; }
  .attention-strip { gap: 10px 16px; padding: 14px; margin-bottom: 18px; }
  .attention-strip > strong { width: 100%; }
  .dash-grid, .dash-grid.equal { grid-template-columns: minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
  .card-pad { padding: 20px; }
  .card-header { padding: 20px; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 10px; }
  .waitlist li { align-items: flex-start; gap: 10px; }
  .wait-age { display: none; }
  .table .hide-sm { display: none; }
  .table th, .table td { padding-left: 15px; padding-right: 15px; }
  .pipeline td:first-child { width: auto; min-width: 150px; }
  .pipeline td:last-child { padding-left: 5px; }
  .pipeline td, .pipeline th { padding-left: 12px; padding-right: 10px; }
  .pipeline .title-cell + .small { display: none; }
  .pipeline .badge { font-size: 9px; }
  .pipeline .btn { font-size: 9px; padding: 5px 7px; }
  .pipeline, .pipeline tbody { display: block; width: 100%; }
  .pipeline thead { display: none; }
  .pipeline tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 15px 18px; border-bottom: 1px solid var(--border); }
  .pipeline tr:last-child { border-bottom: 0; }
  .pipeline td { padding: 0; border: 0; }
  .pipeline td:first-child { grid-column: 1; grid-row: 1; min-width: 0; width: auto; }
  .pipeline td:nth-child(2) { grid-column: 1; grid-row: 2; margin-top: 3px; }
  .pipeline td:nth-child(5) { grid-column: 1; grid-row: 3; color: var(--muted); font-size: 9px; }
  .pipeline td:nth-child(5)::before { content: "Next: "; }
  .pipeline td:last-child { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .pipeline .btn { min-height: 35px; padding: 7px 10px; font-size: 10px; }
  .table-toolbar { padding: 14px 16px; }
  .preview { padding: 26px 22px; }
  .preview h1.headline { font-size: 28px; }
  .claim { padding: 20px 15px; gap: 10px; }
  .story, .signal { padding: 20px 16px; gap: 12px; }
  .story { grid-template-columns: 30px minmax(0, 1fr); }
  .signal { grid-template-columns: 50px minmax(0, 1fr); }
  .story-rank { width: 28px; height: 30px; font-size: 12px; }
  .story-title { font-size: 15px; }
  .signal-x { font-size: 21px; }
  .timeline li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .modal-back { padding: 12px; }
  .modal-head, .modal-body { padding: 20px; }
  .workspace-footer { margin: 0 16px; font-size: 8px; }
  .login-header { padding: 24px; }
  .login-header .wordmark { font-size: 23px; }
  .login-header .brand img { width: 30px; height: 30px; }
  .login-layout { width: calc(100% - 32px); }
  .login-panel { padding: 40px 25px; min-height: 460px; }
  .login-form h1 { font-size: 26px; }
  .login-footer { padding: 24px; font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.table-scroll { overflow-x: auto; border-radius: 0 0 var(--radius) var(--radius); }
.overview-updated { display: flex; align-items: center; justify-content: flex-end; gap: 6px; color: var(--faint); font-size: 9px; }
