/* ============================================================
   Adfactors GEO — Reputation module styles
   Built on tokens.css. Saffron light theme. Model identity colors.
   ============================================================ */

/* ---------- Model chip ---------- */
.model-chip { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px 5px 9px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 12px; background: var(--mcw); color: var(--mci); border: 1px solid color-mix(in srgb, var(--mc) 26%, transparent); white-space: nowrap; }
.model-chip .mc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mc); flex: none; }
.model-chip .mc-model { font-family: var(--font-mono); font-size: 10.5px; opacity: .72; font-weight: 500; padding-left: 6px; border-left: 1px solid color-mix(in srgb, var(--mc) 24%, transparent); }
.mc-sm { padding: 3px 9px 3px 8px; font-size: 11px; }
.mc-sm .mc-dot { width: 7px; height: 7px; }

/* model coverage dots */
.model-dots { display: inline-flex; align-items: center; gap: 4px; }
.model-dots .md-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.md-none { color: var(--faint); font-family: var(--font-mono); }

/* ============================================================
   2.1 REPUTATION HOME — portfolio cards
   ============================================================ */
.rep-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.rep-client-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm);
  padding: var(--s-5) var(--s-6) var(--s-5); cursor: pointer; transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast), border-color var(--dur-fast); }
.rep-client-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.rcc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); }
.rcc-name { font-family: var(--font-display); font-weight: 500; font-size: 22px; line-height: 1.1; margin: 0 0 3px; letter-spacing: -.01em; }
.rcc-tag { display: inline-flex; align-items: center; gap: 3px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink, var(--accent)); background: var(--accent-wash, var(--surface-2)); border-radius: var(--r-pill); padding: 1px 7px; vertical-align: middle; }
.rcc-sub { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.rcc-sector { font-size: 12.5px; color: var(--muted); }
.rcc-score { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); font-weight: 800; flex: none; }
.rcc-score .tnum { font-size: 19px; letter-spacing: -.02em; }
.rcc-grade { font-family: var(--font-display); font-weight: 600; font-size: 13px; opacity: .85; }
.rcc-noscore { font-size: 11.5px; font-weight: 700; color: var(--faint); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 10px; border-radius: var(--r-pill); white-space: nowrap; }
.rcc-meta { font-family: var(--font-mono); font-size: 12px; color: var(--muted); margin-top: var(--s-4); }
.rcc-vs { font-size: 12.5px; color: var(--faint); margin-top: 4px; }
.rcc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.rcc-trend { display: flex; align-items: center; gap: 10px; }
.rcc-delta { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums; }
.rcc-delta.up { color: var(--success-ink); } .rcc-delta.down { color: var(--danger-ink); }
.rcc-newish { font-size: 11.5px; color: var(--faint); font-style: italic; }
.rcc-runs { display: flex; align-items: center; gap: 10px; font-size: 11.5px; }
.rcc-runcount { font-weight: 700; color: var(--ink); }
.rcc-lastrun { color: var(--faint); }
.spark-empty { color: var(--faint); }

/* ============================================================
   2.2 / 2.3 CLIENT FORM + parsed preview
   ============================================================ */
.rep-form-grid { display: grid; grid-template-columns: 1fr 320px; gap: var(--s-5); align-items: start; }
.rep-form-side { position: sticky; top: 84px; }
.pool-explain { display: flex; gap: 9px; align-items: flex-start; padding: 11px 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-ctrl); font-size: 12.5px; color: var(--muted); line-height: 1.55; margin-bottom: var(--s-4); }
.pool-explain svg { flex: none; margin-top: 2px; color: var(--accent-ink); }
.pool-explain code { font-family: var(--font-mono); font-size: 11.5px; background: var(--surface); padding: 1px 5px; border-radius: 5px; border: 1px solid var(--line); color: var(--accent-ink); }
.pool-modes { margin-bottom: var(--s-4); }
textarea.pool-text { min-height: 180px; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.6; }
.link-btn { display: inline-flex; align-items: center; gap: 7px; margin-top: var(--s-3); background: none; border: none; color: var(--accent-ink); font-weight: 700; font-size: 13px; cursor: pointer; padding: 4px 0; }
.link-btn:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.link-btn svg { color: var(--accent); }

.pool-preview { padding: var(--s-5); }
.pp-empty { text-align: center; }
.pp-empty-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); color: var(--faint); display: grid; place-items: center; margin: 4px auto var(--s-3); }
.pp-empty-t { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.pp-empty p { font-size: 12.5px; color: var(--muted); line-height: 1.55; margin: 0; }
.pp-valid { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13px; color: var(--success-ink); margin-bottom: var(--s-4); }
.pp-check { width: 20px; height: 20px; border-radius: 50%; background: var(--success-wash); color: var(--success); display: grid; place-items: center; }
.pp-stats { display: flex; gap: var(--s-3); margin-bottom: var(--s-4); }
.pp-stat { flex: 1; background: var(--surface-2); border-radius: var(--r-card-sm); padding: 12px 14px; text-align: center; }
.pp-k { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-ink); }
.pp-l { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-top: 2px; }
.pp-detected { border-top: 1px solid var(--line); padding-top: var(--s-4); }
.pp-sec { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: 10px; }
.pp-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; font-size: 13px; border-bottom: 1px dashed var(--line); }
.pp-row:last-child { border-bottom: none; }
.pp-name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp-weight { color: var(--accent-ink); font-weight: 700; white-space: nowrap; }
.pp-note { display: flex; gap: 7px; align-items: center; font-size: 11.5px; color: var(--faint); margin-top: var(--s-4); }
.rep-form-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: var(--s-5); }

/* ============================================================
   2.4 CLIENT DETAIL — trend + runs
   ============================================================ */
.trend-chart { width: 100%; }
.runs-table .col-models { width: 90px; }
.runs-table tbody tr.row-error { background: color-mix(in srgb, var(--danger-wash) 40%, transparent); }
.runs-table tbody tr.row-error:hover { background: var(--danger-wash); }

/* run status pills */
.run-status { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; white-space: nowrap; }
.rs-running { background: var(--accent-wash); color: var(--accent-ink); }
.rs-pending { background: var(--surface-2); color: var(--muted); }
.rs-error { background: var(--danger-wash); color: var(--danger-ink); }
.rs-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.spin-sm { width: 12px; height: 12px; border: 2px solid color-mix(in srgb, var(--accent) 30%, transparent); border-top-color: var(--accent); border-radius: 50%; animation: spin .7s linear infinite; }

/* mock badge */
.mock-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 800; letter-spacing: .02em; background: var(--amber-wash); color: var(--amber-ink); border: 1px solid #f0dca6; white-space: nowrap; }
.mock-badge .mb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.mock-badge.mb-sm { padding: 2px 8px; font-size: 10px; margin-left: 8px; }

/* ============================================================
   2.5 NEW RUN
   ============================================================ */
.run-grid { display: grid; grid-template-columns: 1fr 320px; gap: var(--s-5); align-items: start; }
.run-section { margin-bottom: var(--s-6); }
.run-section:last-child { margin-bottom: 0; }
.run-sec-label { font-size: 12.5px; font-weight: 700; margin-bottom: 12px; }
.model-picks { display: grid; gap: 10px; }
.model-pick { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: var(--r-ctrl); border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; transition: all var(--dur-fast); }
.model-pick:hover { border-color: var(--line-2); }
.model-pick.on { border-color: var(--mc); background: var(--mcw); }
.model-pick .mp-check { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: #fff; flex: none; transition: all var(--dur-fast); }
.model-pick.on .mp-check { background: var(--mc); border-color: var(--mc); }
.model-pick .mp-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.mp-body { display: flex; flex-direction: column; flex: 1; }
.mp-name { font-weight: 700; font-size: 14px; }
.mp-model { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.mp-nokey { font-size: 11px; font-weight: 700; color: var(--amber-ink); background: var(--amber-wash); padding: 3px 9px; border-radius: var(--r-pill); }
.model-pick.nokey { opacity: .85; }

.reps-row { display: flex; align-items: center; gap: var(--s-4); }
.reps-slider { -webkit-appearance: none; appearance: none; flex: 1; height: 7px; border-radius: var(--r-pill); outline: none;
  background: linear-gradient(to right, var(--accent) var(--pct), var(--surface-2) var(--pct)); }
.reps-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); cursor: pointer; box-shadow: var(--shadow-sm); }
.reps-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); cursor: pointer; }
.reps-val { font-size: 22px; font-weight: 800; color: var(--accent-ink); width: 32px; text-align: center; }

.mock-toggle { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--accent-wash); border: 1px solid #f2e2c8; border-radius: var(--r-ctrl); }
.toggle { width: 46px; height: 26px; border-radius: var(--r-pill); background: var(--line-2); border: none; position: relative; cursor: pointer; flex: none; transition: background var(--dur-fast); }
.toggle.on { background: var(--accent); }
.toggle-knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform var(--dur-fast) var(--ease); }
.toggle.on .toggle-knob { transform: translateX(20px); }
.mock-title { font-weight: 700; font-size: 14px; }
.mock-sub { font-size: 12.5px; color: var(--accent-ink); margin-top: 2px; }

/* estimate card */
.run-side { position: sticky; top: 84px; }
.estimate-card { padding: var(--s-5); }
.est-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.est-math { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 14px; }
.em-part { font-size: 13px; color: var(--muted); }
.em-part b { font-size: 18px; color: var(--ink); }
.em-x { color: var(--faint); font-weight: 700; }
.est-models { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.est-nomodels { font-size: 12px; color: var(--faint); font-style: italic; }
.est-foot { display: flex; gap: 7px; align-items: flex-start; font-size: 11.5px; color: var(--faint); margin-top: 12px; line-height: 1.5; }
.est-foot svg { flex: none; margin-top: 1px; }

/* cost estimate strip */
.cost-strip { border-radius: var(--r-ctrl); border: 1px solid var(--line); background: var(--surface-2); padding: 16px; }
.cost-strip.cs-mock { background: var(--amber-wash); border-color: #f0dca6; }
.cost-strip.cs-warn { background: var(--danger-wash); border-color: #f0c4cf; }
.cs-main { display: flex; align-items: center; gap: var(--s-4); }
.cs-block { flex: 1; }
.cs-k { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.cs-l { font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 600; }
.cs-x { font-size: 18px; color: var(--faint); font-weight: 700; }
.cs-guard { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding-top: 14px; border-top: 1px solid #f0c4cf; font-size: 12px; font-weight: 600; color: var(--danger-ink); line-height: 1.5; }
.cs-guard svg { flex: none; margin-top: 1px; }

/* ============================================================
   2.6 RUN IN PROGRESS
   ============================================================ */
.running-card { padding: var(--s-7); }
.running-top { display: flex; align-items: center; gap: var(--s-7); margin-bottom: var(--s-6); }
.pring { position: relative; flex: none; }
.pring .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.pr-num { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--accent-ink); }
.pr-num small { font-size: 15px; }
.pr-lbl { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.rs-eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.rs-stage { font-family: var(--font-display); font-weight: 500; font-size: 24px; margin: 0 0 8px; animation: viewIn var(--dur) var(--ease-out) both; }
.rs-line { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.rs-trust { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--faint); margin-top: 14px; }
.running-models { display: grid; gap: 10px; padding: var(--s-5) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: var(--s-5); }
.rm-row { display: grid; grid-template-columns: 130px 1fr 64px; align-items: center; gap: var(--s-4); }
.rm-bar { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.rm-fill { height: 100%; border-radius: var(--r-pill); transition: width .3s linear; }
.rm-count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); text-align: right; }
.rsk-label { font-size: 13px; font-weight: 700; margin-bottom: 12px; }
.rsk-label .tnum { color: var(--accent-ink); }
.rsk-ticker { display: flex; flex-wrap: wrap; gap: 8px; }
.rsk-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; background: var(--surface-2); color: var(--faint); border: 1px solid var(--line); transition: all var(--dur); }
.rsk-chip.done { background: var(--success-wash); color: var(--success-ink); border-color: #b8e6c9; }
.rsk-chip svg { color: var(--success); }

/* ============================================================
   Reputation viz shared
   ============================================================ */
/* component bar */
.cbar { margin-bottom: 11px; }
.cbar-compact { margin-bottom: 9px; }
.cbar-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 5px; }
.cbar-label { font-size: 12.5px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.cbar-short { font-family: var(--font-mono); font-size: 10px; color: var(--faint); }
.cbar-compact .cbar-label { font-size: 12px; }
.cbar-val { font-size: 13px; font-weight: 800; }
.cbar-track { height: 7px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.cbar-fill { height: 100%; border-radius: var(--r-pill); transition: width var(--dur-slow) var(--ease-out); }

/* sentiment split */
.sent { display: flex; flex-direction: column; gap: 6px; }
.sent-bar { display: flex; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-2); }
.sent-seg { display: block; height: 100%; }
.sent-seg.pos { background: var(--success); } .sent-seg.neu { background: var(--line-2); } .sent-seg.neg { background: var(--danger); }
.sent-counts { display: flex; gap: 10px; font-size: 11px; font-weight: 700; }
.sent-counts .sc { display: inline-flex; align-items: center; gap: 1px; }
.sent-counts .pos { color: var(--success-ink); } .sent-counts .neu { color: var(--muted); } .sent-counts .neg { color: var(--danger-ink); }

/* sov bar */
.sovbar-track { display: flex; height: 14px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-2); }
.sov-seg { height: 100%; } .sov-seg.client { background: var(--accent); }
.sovbar-legend { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.sl { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.sl .dot { width: 9px; height: 9px; border-radius: 3px; }
.sl b { color: var(--ink); font-weight: 700; }

/* grouped bars */
.gbars { width: 100%; }
.gb-gridlayer { position: absolute; left: 0; right: 0; top: 0; }
.gb-grid { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line); }
.gb-gridlbl { position: absolute; left: -2px; top: -8px; font-size: 9.5px; color: var(--faint); background: var(--surface); padding-right: 4px; }
.gbars-groups { position: relative; display: flex; align-items: flex-end; justify-content: space-around; padding-left: 22px; }
.gb-group { display: flex; flex-direction: column; align-items: center; flex: 1; }
.gb-bars { display: flex; align-items: flex-end; gap: 8px; }
.gb-bar-wrap { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.gb-bar { width: 28px; border-radius: 5px 5px 0 0; transition: height var(--dur-slow) var(--ease-out); }
.gb-val { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
.gb-glabel { font-size: 11px; font-weight: 700; color: var(--muted); margin-top: 7px; text-align: center; }

/* sparkline */
.spark { display: block; }

/* mini gauge */
.mini-gauge { position: relative; }
.mini-gauge .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.mg-num { font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: .9; }
.mg-grade { font-family: var(--font-display); font-weight: 600; font-size: 13px; margin-top: 1px; }

/* prov pill */
.prov-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; white-space: nowrap; }
.prov-pill .pp-l { color: var(--muted); }
.prov-pill .pp-v { font-weight: 800; color: var(--ink); }
.prov-pill svg { color: var(--accent-ink); }
.prov-good .pp-v { color: var(--success-ink); } .prov-good { background: var(--success-wash); border-color: #b8e6c9; }
.prov-bad .pp-v { color: var(--danger-ink); } .prov-bad { background: var(--danger-wash); border-color: #f0c4cf; }

/* ============================================================
   2.7 REPORT
   ============================================================ */
.rt-em { font-style: italic; font-weight: 600; }
.report-filter-bar { display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-5); padding: 12px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-ctrl); box-shadow: var(--shadow-sm); }
.rfb-label { font-size: 12px; font-weight: 700; color: var(--muted); }
.rfb-note { font-size: 12.5px; font-weight: 600; font-family: var(--font-mono); }
.model-filter { display: inline-flex; gap: 3px; padding: 4px; background: var(--surface-2); border-radius: var(--r-pill); border: 1px solid var(--line); }
.mf-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: none; background: none; border-radius: var(--r-pill); font-weight: 700; font-size: 12.5px; color: var(--muted); cursor: pointer; transition: all var(--dur-fast); }
.mf-btn:hover { color: var(--ink); }
.mf-btn.active { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--ink); }
.mf-btn .mf-dot { width: 8px; height: 8px; border-radius: 50%; }
.mf-btn.active .mf-dot { box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 20%, transparent); }
.prov-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hero-scoped { border-color: var(--line-2); }

/* stakeholder grid + card */
.stakeholder-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.sh-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: var(--s-5) var(--s-6); }
.sh-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-5); }
.sh-name { font-weight: 700; font-size: 16px; margin: 0 0 3px; }
.sh-meta { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.sh-srs { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 13px; border-radius: var(--r-card-sm); flex: none; }
.sh-srs-num { font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.sh-srs-grade { font-family: var(--font-display); font-weight: 600; font-size: 14px; }
.sh-components { display: grid; grid-template-columns: 1fr 1fr; gap: 0 var(--s-5); margin-bottom: var(--s-4); }
.sh-rates { display: flex; gap: var(--s-4); padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); }
.rate { flex: 0 0 auto; }
.rate.rate-sent { flex: 1; min-width: 0; }
.rate-l { display: block; font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .04em; font-weight: 700; margin-bottom: 5px; }
.rate-v { font-size: 16px; font-weight: 800; }
.sh-section { margin-bottom: var(--s-4); }
.sh-sec-label { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: 9px; }

/* message item */
.msg-item { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; }
.msg-item .msg-q { color: var(--accent-2); flex: none; margin-top: 2px; }
.msg-risky .msg-q { color: var(--danger); }
.msg-text { flex: 1; font-size: 13px; line-height: 1.45; }
.msg-count { font-family: var(--font-mono); font-size: 11.5px; font-weight: 700; color: var(--muted); flex: none; }
.msg-risky .msg-count { color: var(--danger-ink); }

/* competitor chips */
.comp-row { display: flex; flex-wrap: wrap; gap: 7px; }
.comp-chip { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: var(--r-pill); font-size: 12px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.comp-chip b { color: var(--ink); font-weight: 800; }
.comp-lead { background: #f3ece0; border-color: var(--line-2); }

/* evidence */
.sh-evidence-toggle { display: inline-flex; align-items: center; gap: 6px; background: none; border: none; color: var(--accent-ink); font-weight: 700; font-size: 12.5px; cursor: pointer; padding: 6px 0 0; }
.sh-evidence-toggle:hover { color: var(--accent-deep); }
.sh-evidence { margin-top: var(--s-3); display: grid; gap: 10px; }
.ev-item { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-ctrl); padding: 12px 14px; }
.ev-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.ev-sent { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; padding: 2px 8px; border-radius: var(--r-pill); }
.ev-pos { background: var(--success-wash); color: var(--success-ink); } .ev-neu { background: var(--surface); color: var(--muted); border: 1px solid var(--line); }
.ev-neg { background: var(--danger-wash); color: var(--danger-ink); } .ev-none { background: var(--surface); color: var(--faint); border: 1px solid var(--line); }
.ev-rung, .ev-prom { font-family: var(--font-mono); font-size: 10.5px; color: var(--faint); }
.ev-prom { padding-left: 8px; border-left: 1px solid var(--line-2); }
.ev-excerpt { font-family: var(--font-display); font-style: italic; font-size: 14px; line-height: 1.55; color: var(--ink); margin: 0 0 8px; }
.ev-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.ev-sources svg { color: var(--accent-ink); }
.ev-src { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; }

/* cost & usage card */
.cost-card .immutable-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 5px 11px; border-radius: var(--r-pill); }
.cost-card .immutable-tag svg { color: var(--accent-ink); }
.cost-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); margin-bottom: var(--s-5); }
.cost-stat { background: var(--surface-2); border-radius: var(--r-card-sm); padding: 16px 18px; }
.cost-k { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.cost-k-sm { font-size: 21px; color: var(--muted); }
.cost-l { font-size: 11.5px; color: var(--muted); margin-top: 5px; font-weight: 600; }
.cost-table { width: 100%; border-collapse: collapse; margin-bottom: var(--s-4); }
.cost-table th { text-align: left; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.cost-table th.r, .cost-table td.r { text-align: right; }
.cost-table td { padding: 10px; border-bottom: 1px solid var(--line); font-size: 13px; }
.cost-table td:first-child { display: flex; align-items: center; gap: 9px; font-weight: 600; }
.cost-table .ct-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.cost-table tbody tr:last-child td { border-bottom: none; }
.cost-table .coder-row { background: var(--surface-2); }
.coder-flag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; background: var(--accent-wash); color: var(--accent-ink); padding: 2px 7px; border-radius: 5px; }
.cost-rates { display: flex; gap: 8px; align-items: flex-start; font-family: var(--font-mono); font-size: 11px; color: var(--faint); line-height: 1.55; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.cost-rates svg { flex: none; margin-top: 1px; }
.cost-mock { display: flex; align-items: center; gap: var(--s-4); padding: var(--s-3) 0; }
.cost-mock-text { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.cost-mock-text b { color: var(--ink); }

/* synthesis */
.synth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-6); }
.synth-grid-2 { margin-top: var(--s-6); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.synth-label { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; margin-bottom: 10px; color: var(--ink); }
.synth-label svg { color: var(--muted); }
.synth-pos { color: var(--success-ink); } .synth-pos svg { color: var(--success); }
.synth-neg { color: var(--danger-ink); } .synth-neg svg { color: var(--danger); }
.gap-list { display: grid; gap: 12px; }
.gap-row { display: grid; grid-template-columns: 120px 1fr auto; align-items: center; gap: 12px; }
.gap-name { font-size: 13px; font-weight: 600; }
.gap-bar { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.gap-fill { height: 100%; background: linear-gradient(90deg, var(--grade-d), var(--grade-c)); border-radius: var(--r-pill); }
.gap-val { font-family: var(--font-mono); font-size: 11px; color: var(--muted); white-space: nowrap; }

/* ============================================================
   2.8 PER-MODEL COMPARE
   ============================================================ */
.finding-callout { display: flex; gap: var(--s-4); padding: 18px 20px; border-radius: var(--r-card); background: linear-gradient(135deg, #fdf4e7, #fefaf3); border: 1px solid #f2e2c8; margin-bottom: var(--s-5); }
.fc-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--accent-wash); color: var(--accent-deep); display: grid; place-items: center; flex: none; }
.fc-title { font-weight: 800; font-size: 15px; margin-bottom: 4px; }
.fc-text { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.fc-text b { color: var(--ink); }
.compare-top { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-bottom: var(--s-6); align-items: start; }
.radar-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-4); margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.rl-item { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.rl-item b { color: var(--ink); font-family: var(--font-mono); font-size: 11.5px; }
.rl-dot { width: 11px; height: 11px; border-radius: 3px; }

.compare-cols { display: grid; gap: var(--s-4); }
.compare-cols.cols-6 { grid-template-columns: repeat(3, 1fr); }
.compare-cols.cols-5 { grid-template-columns: repeat(5, 1fr); }
.compare-cols.cols-4 { grid-template-columns: repeat(4, 1fr); }
.compare-cols.cols-3 { grid-template-columns: repeat(3, 1fr); }
.compare-cols.cols-2 { grid-template-columns: repeat(2, 1fr); }
.compare-cols.cols-1 { grid-template-columns: 1fr; max-width: 420px; }
.mcol { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--shadow-sm); padding: var(--s-5); border-top: 3px solid var(--mc); }
.mcol-head { display: flex; justify-content: center; margin-bottom: var(--s-4); }
.mcol-gauge { display: grid; place-items: center; }
.mcol-srs-label { text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin: 6px 0 var(--s-5); }
.mcol-components { margin-bottom: var(--s-4); }
.mcol-rates { display: grid; gap: 8px; padding: var(--s-4) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: var(--s-4); }
.mcr { display: flex; justify-content: space-between; align-items: baseline; }
.mcr-l { font-size: 12.5px; color: var(--muted); }
.mcr-v { font-size: 15px; font-weight: 800; color: var(--ink); }
.mcol-sublabel { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; margin-bottom: 9px; }
.mcol-sent { margin-bottom: var(--s-4); }

/* matrix */
.matrix { overflow-x: auto; }
.matrix-table { width: 100%; border-collapse: collapse; }
.matrix-table th { padding: 10px 12px; font-size: 11.5px; }
.matrix-table .mx-corner { text-align: left; color: var(--faint); text-transform: uppercase; letter-spacing: .05em; font-weight: 700; font-size: 10.5px; }
.matrix-table .mx-mhead { text-align: center; font-weight: 700; color: var(--ink); }
.matrix-table .mx-mhead .mx-mdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.matrix-table .mx-spread { text-align: center; font-size: 11px; }
.matrix-table td { padding: 8px 12px; border-top: 1px solid var(--line); }
.mx-name { font-weight: 600; font-size: 13px; }
.mx-cell { text-align: center; }
.mx-val { display: inline-grid; place-items: center; min-width: 40px; padding: 5px 10px; border-radius: 8px; font-weight: 800; font-family: var(--font-mono); font-size: 13px; }
.matrix-note { display: flex; gap: 8px; align-items: flex-start; font-size: 11.5px; color: var(--faint); margin-top: var(--s-4); line-height: 1.5; }
.matrix-note svg { flex: none; margin-top: 1px; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .rep-grid { grid-template-columns: 1fr; }
  .rep-form-grid, .run-grid { grid-template-columns: 1fr; }
  .rep-form-side, .run-side { position: static; }
  .stakeholder-grid { grid-template-columns: 1fr; }
  .compare-top { grid-template-columns: 1fr; }
  .compare-cols.cols-3, .compare-cols.cols-2 { grid-template-columns: 1fr; }
  .compare-cols.cols-4, .compare-cols.cols-5, .compare-cols.cols-6 { grid-template-columns: 1fr 1fr; }
  .synth-grid { grid-template-columns: 1fr; gap: var(--s-5); }
}
@media (max-width: 760px) {
  .running-top { flex-direction: column; text-align: center; }
  .rm-row { grid-template-columns: 100px 1fr 50px; }
  .cost-stats { grid-template-columns: repeat(2, 1fr); }
  .report-filter-bar { gap: var(--s-3); }
  .gap-row { grid-template-columns: 90px 1fr; }
  .gap-val { grid-column: 2; }
}

/* ============================================================
   AI prompt-pool generator (New client → Generate with AI)
   ============================================================ */
.btn-sm { padding: 6px 11px; font-size: 12.5px; border-radius: 9px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; flex: none; border: 1px solid var(--line); background: var(--surface); border-radius: 9px; color: var(--muted); cursor: pointer; transition: all var(--dur-fast); }
.icon-btn:hover { color: var(--danger-ink); border-color: var(--danger); background: var(--danger-wash); }
.gen-panel { margin-top: var(--s-3); }
.gen-stake-row { display: grid; grid-template-columns: 1.4fr 1.8fr auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.gen-stake-row.has-wt { grid-template-columns: 1.4fr 64px 1.8fr auto; }
.gen-stake-row.is-topic { grid-template-columns: 1fr 1.2fr 1.6fr auto; }
.gen-stake-row .gs-weight { text-align: center; }
.gen-results { margin-top: var(--s-4); }
.gen-group { border: 1px solid var(--line); border-radius: var(--r-card-sm); margin-bottom: var(--s-4); overflow: hidden; }
.gen-group-h { display: flex; align-items: center; gap: var(--s-3); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.gg-title { font-weight: 700; font-size: 13.5px; display: flex; align-items: center; gap: 8px; }
.gg-n { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent-ink); background: var(--accent-wash); padding: 1px 8px; border-radius: var(--r-pill); }
.gg-actions { margin-left: auto; display: flex; gap: 8px; }
.gen-table { width: 100%; border-collapse: collapse; }
.gen-table th { text-align: left; font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--faint); font-weight: 700; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.gen-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.gen-table tbody tr:last-child td { border-bottom: none; }
.gen-table th:nth-child(2), .gen-table td:nth-child(2) { width: 120px; }
.gen-table th:nth-child(3), .gen-table td:nth-child(3) { width: 64px; text-align: center; }
.gen-table th:nth-child(4), .gen-table td:nth-child(4) { width: 44px; }
.gen-q { min-height: 0; resize: vertical; font-size: 13px; line-height: 1.45; }
.gen-rung { padding: 7px 8px; font-size: 12px; }
@media (max-width: 760px) {
  .gen-stake-row { grid-template-columns: 1fr auto; }
  .gen-stake-row.has-wt { grid-template-columns: 1fr 56px auto; }
  .gen-stake-row.is-topic { grid-template-columns: 1fr auto; }
  .gen-stake-row .gs-kw, .gen-stake-row .gs-desc { grid-column: 1 / -1; }
}

/* ---- inline term tooltips (explain the jargon) ---- */
.term-help { display: inline-flex; align-items: center; color: var(--faint); cursor: help; vertical-align: middle; }
.term-help:hover, .term-help:focus-visible { color: var(--accent-ink); outline: none; }
.cbar-label[title], .rate-l[title], .sh-srs[title], .mcr-l[title] { cursor: help; }

/* ---- "How to read this" legend — quiet, collapsed by default (first-time / refresher) ---- */
.glossary { margin: -4px 0 14px; }
.glossary > summary { cursor: pointer; font-weight: 600; font-size: 11.5px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; list-style: none; padding: 2px 0; transition: color var(--dur-fast); }
.glossary > summary::-webkit-details-marker { display: none; }
.glossary > summary:hover { color: var(--accent-ink); }
.glossary > summary svg { flex: none; }
.glossary[open] { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-ctrl); padding: 12px 16px; }
.glossary[open] > summary { color: var(--muted); margin-bottom: 12px; }
.glossary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 28px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.glossary-grid b { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) { .glossary-grid { grid-template-columns: 1fr; } }

/* ---- collapsible Cost & usage card (collapsed by default; spend shown in header) ---- */
.cost-card > summary { display: flex; align-items: center; gap: 12px; cursor: pointer; list-style: none; }
.cost-card > summary::-webkit-details-marker { display: none; }
.cost-card > summary h3 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 17px; }
.cost-sum-val { font-weight: 800; font-size: 18px; color: var(--ink); letter-spacing: -.01em; }
.cost-sum-sub { font-size: 12px; color: var(--muted); }
.cost-chev { color: var(--muted); display: inline-flex; transition: transform var(--dur-fast); flex: none; }
.cost-card[open] .cost-chev { transform: rotate(90deg); }

/* ============================================================
   Redesigned Reputation report (ordered sections per spec)
   ============================================================ */
.rep-report { max-width: 1080px; }

/* report cold-build loader (main app view, outside .geo-rep — uses explicit brand palette) */
.rep-loader { max-width: 620px; }
.rep-loader .rl-head { display: flex; align-items: center; gap: 14px; }
.rep-loader .rl-spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid #e7e0d4; border-top-color: #e28f27; animation: rl-spin .8s linear infinite; flex: none; }
@keyframes rl-spin { to { transform: rotate(360deg); } }
.rep-loader .rl-eyebrow { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: #8a8378; }
.rep-loader .rl-title { font-size: 19px; margin: 2px 0 0; font-weight: 600; letter-spacing: -.01em; }
.rep-loader .rl-stage { margin: 18px 0 10px; font-size: 14px; color: #2a2825; }
.rep-loader .rl-bar { height: 5px; border-radius: 4px; background: #efeae1; overflow: hidden; }
.rep-loader .rl-bar-fill { height: 100%; width: 36%; border-radius: 4px; background: #e28f27; animation: rl-indet 1.25s ease-in-out infinite; }
@keyframes rl-indet { 0% { margin-left: -38%; } 100% { margin-left: 102%; } }
.rep-loader .rl-note { margin-top: 14px; font-size: 12px; color: #9a9389; display: flex; align-items: center; gap: 6px; }

/* ===== Owned Assets — editorial report (main app view; explicit warm palette) ===== */
.oa { max-width: 880px; margin: 0 auto; --ink: #2a2825; --muted: #6b645b; --faint: #9a9389; --line: #e7e0d4; --inset: #f4f0e8; --acc: #e28f27; --pine: #1f7a52; --ox: #b4452f; }
.oa-eyebrow { font-family: "IBM Plex Mono", ui-monospace, monospace; font-size: 11px; letter-spacing: .15em; text-transform: uppercase; color: var(--faint); }
.oa-sec { margin-top: 26px; }
.oa-sec-h { font-size: 13px; letter-spacing: .04em; color: var(--muted); margin: 0 0 12px; font-weight: 600; }
/* hero */
.oa-hero { display: flex; gap: 30px; flex-wrap: wrap; align-items: center; }
.oa-big { font-size: 3.6rem; font-weight: 700; line-height: .95; letter-spacing: -.02em; }
.oa-big-sub { font-size: 13px; color: var(--muted); margin-top: 2px; }
.oa-subs { flex: 1; min-width: 260px; }
.oa-subrow { margin: 12px 0; }
.oa-subrow .t { display: flex; justify-content: space-between; font-size: 14px; }
.oa-subrow .q { font-size: 11px; color: var(--faint); margin-top: 3px; }
.oa-bar { height: 7px; border-radius: 5px; background: var(--inset); overflow: hidden; margin-top: 5px; }
.oa-bar > i { display: block; height: 100%; border-radius: 5px; }
.oa-capnote { margin-top: 14px; font-size: 12px; color: var(--ox); display: flex; gap: 6px; align-items: center; }
/* gate scan rows */
.oa-scan { border-top: 1px solid var(--line); }
.oa-scanrow { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.oa-scanrow .l { font-size: 14px; } .oa-scanrow .l b { font-weight: 600; }
.oa-scanrow .l .sub { color: var(--muted); font-size: 12.5px; margin-top: 3px; }
.oa-verdict { font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.oa-verdict .ic { width: 16px; height: 16px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-size: 10px; }
.oa-verdict.pass { color: var(--pine); } .oa-verdict.pass .ic { background: var(--pine); }
.oa-verdict.partial { color: #b07d15; } .oa-verdict.partial .ic { background: #df9e1d; }
.oa-verdict.fail { color: var(--ox); } .oa-verdict.fail .ic { background: var(--ox); }
/* signal ledger */
.oa-sig { display: grid; grid-template-columns: minmax(0,1.6fr) 120px 60px; gap: 18px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.oa-sig .nm { min-width: 0; } .oa-sig .nm b { font-weight: 600; } .oa-sig .nm .code { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--acc); margin-right: 6px; }
.oa-sig .nm .dt { color: var(--muted); font-size: 12px; margin-top: 3px; }
.oa-sig .nm .tag { font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; color: var(--muted); margin-left: 6px; }
.oa-wt { display: flex; gap: 3px; } .oa-wt i { width: 13px; height: 8px; border-radius: 1px; border: 1px solid #d8d0c1; }
.oa-wt i.on { background: var(--acc); border-color: var(--acc); } .oa-wt i.zero { border-style: dashed; }
.oa-sigscore { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
/* off-site ceiling — dark band */
.oa-ceiling { background: #211f1a; color: #ede7d6; border-radius: 10px; padding: 26px 28px; margin-top: 26px; }
.oa-ceiling .oa-eyebrow { color: #c9a14a; }
.oa-ceiling h3 { color: #f4efe0; font-size: 1.3rem; margin: 8px 0 6px; font-weight: 500; }
.oa-ceiling p { color: #c7bfa9; font-size: 13.5px; max-width: 64ch; }
.oa-ceiling .stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(237,231,214,.15); }
.oa-ceiling .stat .n { font-size: 1.6rem; font-weight: 600; color: #e7b85c; } .oa-ceiling .stat .l { font-size: 11px; color: #9c947e; }
/* fix list */
.oa-fix { padding: 15px 0; border-bottom: 1px solid var(--line); }
.oa-fix .top { display: flex; align-items: center; gap: 10px; }
.oa-fix .pri { font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; border-radius: 3px; padding: 2px 7px; }
.oa-fix .pri.critical { background: #fbe4de; color: var(--ox); } .oa-fix .pri.high { background: #fbe6cf; color: #a4630f; }
.oa-fix .pri.medium { background: #f0ead9; color: #6b645b; } .oa-fix .pri.optional { background: #eef1ec; color: #6b7a6b; }
.oa-fix .impact { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.oa-fix.provisional { opacity: .92; }
.oa-fix .oa-prov { font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: .05em; text-transform: uppercase; color: #a4630f; background: #fbf1d8; border-radius: 3px; padding: 2px 6px; }
/* access caveat — site blocks AI crawlers / JS-only / barely readable */
.oa-access { background: #fbf1d8; border: 1px solid #ecd9a8; border-left: 3px solid #c9a14a; border-radius: 9px; padding: 16px 18px; margin: 20px 0; }
.oa-access-h { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; color: #7a5a14; }
.oa-access p { color: #6b5a32; font-size: 13px; line-height: 1.55; margin: 8px 0 0; }
.oa-access b { color: #4a3d1c; }
/* pages analyzed — the list of links read for the audit */
.oa-pages { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.oa-page { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1.5fr) 86px 64px; gap: 14px; align-items: center; padding: 9px 14px; border-top: 1px solid var(--hair); font-size: 13px; }
.oa-page:first-child { border-top: 0; }
.oa-page.head { background: var(--inset); color: var(--faint); font-family: "IBM Plex Mono", monospace; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.oa-page .u { font-family: "IBM Plex Mono", monospace; font-size: 12px; color: var(--acc-ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-page .u:hover { text-decoration: underline; }
.oa-page .t { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oa-page .src { font-family: "IBM Plex Mono", monospace; font-size: 9.5px; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 4px; background: var(--inset); color: var(--muted); text-align: center; white-space: nowrap; }
.oa-page .src.full { background: #e3f6ec; color: #2f6b43; }
.oa-page.head .src { background: none; padding: 0; }
.oa-page .ln { text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; }
.oa-fix .why { color: var(--muted); font-size: 13px; margin: 7px 0 4px; }
.oa-fix .how { font-size: 13px; } .oa-fix pre { background: var(--inset); padding: 9px 11px; border-radius: 6px; font-size: 12px; margin-top: 8px; overflow: auto; white-space: pre-wrap; font-family: "IBM Plex Mono", monospace; }
@media print { .topbar, .back-link, #oDownload { display: none !important; } .oa { max-width: 100%; } .oa-ceiling { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* section scaffold */
.rep-sec { margin-top: var(--s-8); }
.rep-sec-h { display: flex; align-items: flex-start; gap: var(--s-4); margin-bottom: var(--s-4); }
.rep-sec-n { flex: none; width: 30px; height: 30px; border-radius: 9px; background: var(--accent-wash); color: var(--accent-ink);
  font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.rep-sec-tt { min-width: 0; }
.rep-sec-t { font-family: var(--font-display); font-weight: 500; font-size: 22px; letter-spacing: -.01em; margin: 0; }
.rep-sec-s { font-size: 13px; color: var(--muted); margin: 3px 0 0; max-width: 620px; line-height: 1.45; }
.sec-cta { margin-top: var(--s-4); }

/* hero / executive summary */
.hero-card { margin-bottom: 4px; }
.gauge .gband { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 12px; padding: 4px 12px; border-radius: var(--r-pill); }
.hero-verdict .vlabel { display: inline-flex; align-items: center; gap: 6px; }
.hero-verdict .vlabel svg { color: var(--accent); }
.hero-sub { font-family: var(--font-mono); font-size: 12px; color: var(--faint); margin-top: 6px; }

/* warnings */
.rep-warn { background: var(--amber-wash); border-color: #f0dca6; margin-bottom: var(--s-4); }
.rep-warn .rw-flex { display: flex; gap: 10px; align-items: flex-start; }
.rep-warn .rw-ico { color: var(--amber-ink); flex: none; }
.rep-warn b { color: var(--amber-ink); }
.rep-warn ul { margin: 6px 0 0; padding-left: 18px; color: var(--muted); font-size: 13px; }

/* 1 — headline numbers */
.headline-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); }
.hl-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card-sm); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.hl-k { font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.hl-l { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 8px; }
.hl-sub { font-size: 12px; color: var(--faint); margin-top: 3px; }
.hl-sent { display: flex; flex-direction: column; justify-content: center; }
.hl-sent .hl-l { margin: 0 0 9px; }

/* 2 — per-LLM comparison */
.llm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-4); }
.llm-card { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--mc); border-radius: var(--r-card-sm); padding: var(--s-4) var(--s-5); box-shadow: var(--shadow-sm); }
.llm-head { margin-bottom: var(--s-3); }
.llm-gaugewrap { display: flex; justify-content: center; margin-bottom: var(--s-3); }
.llm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: var(--s-3); text-align: center; }
.llm-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ls-v { font-weight: 800; font-size: 16px; color: var(--ink); }
.ls-l { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }

/* 3 — competitor share of voice (client vs each) */
.csov { display: grid; gap: 11px; }
.csov-row { display: grid; grid-template-columns: 160px 1fr 120px; align-items: center; gap: var(--s-4); }
.csov-name { font-weight: 700; font-size: 13.5px; color: var(--ink); text-align: right; }
.csov-bar { display: flex; height: 16px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-2); }
.csov-client { background: var(--accent); }
.csov-comp { background: var(--line-2); }
.csov-val { font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.csov-val .csov-c { font-weight: 800; color: var(--accent-ink); }
.csov-val .csov-o { font-weight: 700; color: var(--muted); }
.csov-val .csov-vs { font-size: 10px; color: var(--faint); text-transform: uppercase; }
.csov-legend { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); margin-top: 6px; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.csov-legend .cl { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.csov-legend .dot { width: 10px; height: 10px; border-radius: 3px; }
.csov-note { color: var(--faint); }

/* 4 — strongest vs weakest */
.sw-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.sw-card { border: 1px solid var(--line); border-radius: var(--r-card-sm); padding: var(--s-5); box-shadow: var(--shadow-sm); }
.sw-strong { background: var(--grade-a-wash); border-color: #bfe6cd; }
.sw-weak { background: var(--grade-f-wash); border-color: #f3c7d2; }
.sw-k { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.sw-strong .sw-k { color: var(--success-ink); }
.sw-weak .sw-k { color: var(--danger-ink); }
.sw-name { font-family: var(--font-display); font-size: 20px; font-weight: 500; margin: 8px 0 4px; }
.sw-score { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.sw-score .sw-srs { font-size: 12px; font-weight: 700; color: var(--faint); margin-left: 6px; }
.sw-na { display: flex; align-items: flex-start; gap: 11px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-card-sm); padding: var(--s-4) var(--s-5); font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.sw-na svg { color: var(--faint); flex: none; margin-top: 1px; }
.sw-na b { color: var(--ink); font-weight: 700; }

/* 5/6 — message cards (with evidence + sources) */
.msgcard { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: var(--r-card-sm); padding: 12px var(--s-4); margin-bottom: 10px; }
.msgcard.mc-pos { border-left-color: var(--grade-b); }
.msgcard.mc-neg { border-left-color: var(--grade-f); }
.msgcard.mc-neu { border-left-color: var(--line-2); }
.mc-top { display: flex; align-items: flex-start; gap: 9px; }
.mc-q { color: var(--faint); flex: none; margin-top: 2px; }
.mc-text { flex: 1; font-size: 14px; line-height: 1.5; color: var(--ink); }
.mc-count { flex: none; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: var(--r-pill); }
.mc-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 9px; padding-left: 22px; }
.mc-srcs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 5px; color: var(--faint); }
.src-chip { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); padding: 2px 7px; border-radius: var(--r-pill); }
.mc-evtoggle { display: inline-flex; align-items: center; gap: 5px; background: none; border: none; color: var(--accent-ink); font-weight: 700; font-size: 12px; cursor: pointer; padding: 8px 0 0 22px; }
.mc-evtoggle:hover { color: var(--accent-deep); }
.mc-evidence { display: grid; gap: 9px; margin: 10px 0 2px 22px; }
.mc-ev { background: var(--surface-2); border-radius: var(--r-ctrl); padding: 10px 12px; }
.mc-ev-head { margin-bottom: 6px; }
.mc-ev-text { font-size: 13px; font-style: italic; color: var(--muted); margin: 0; line-height: 1.5; }
.mc-ev-srcs { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 8px; color: var(--faint); }

/* 7 — top sources */
.src-list { display: grid; gap: 7px; }
.src-row { display: grid; grid-template-columns: 24px 200px 1fr 40px; align-items: center; gap: var(--s-3); }
.src-rank { color: var(--faint); font-size: 12px; text-align: center; }
.src-dom { font-weight: 700; font-size: 13px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-bar { height: 8px; background: var(--surface-2); border-radius: var(--r-pill); overflow: hidden; }
.src-fill { height: 100%; background: var(--accent-2); border-radius: var(--r-pill); transition: width var(--dur-slow) var(--ease-out); }
.src-c { text-align: right; font-weight: 700; font-size: 13px; color: var(--muted); }

/* 8 — prominence distribution */
.prom-bar { display: flex; height: 22px; border-radius: var(--r-pill); overflow: hidden; background: var(--surface-2); }
.prom-seg.prom-lead { background: var(--grade-a); }
.prom-seg.prom-list { background: var(--accent-2); }
.prom-seg.prom-bury { background: var(--line-2); }
.prom-legend { display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-6); margin-top: 11px; font-size: 13px; color: var(--muted); }
.prom-legend .pl { display: inline-flex; align-items: center; gap: 6px; }
.prom-legend .pl b { color: var(--ink); }
.prom-legend .pl-pct { color: var(--faint); }
.prom-legend .dot { width: 11px; height: 11px; border-radius: 3px; }
.prom-legend .dot.prom-lead { background: var(--grade-a); }
.prom-legend .dot.prom-list { background: var(--accent-2); }
.prom-legend .dot.prom-bury { background: var(--line-2); }

/* 9 — gaps */
.gaps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.gap-cat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card-sm); padding: var(--s-4); box-shadow: var(--shadow-sm); }
.gap-cat-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 800; color: var(--ink); margin-bottom: 11px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.gap-cat-h svg { color: var(--danger); flex: none; }
.gap-cat-t { flex: 1; line-height: 1.3; }
.gap-n { flex: none; font-size: 11px; background: var(--surface-2); color: var(--muted); padding: 1px 8px; border-radius: var(--r-pill); }
.gap-item { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.gap-item:last-child { border-bottom: none; }
.gap-q { font-size: 13px; color: var(--ink); line-height: 1.4; }
.gap-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: 7px; }
.gap-comps { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.gap-comps .comp-chip { padding: 2px 8px; font-size: 11px; }
.gap-rank { font-size: 11.5px; color: var(--muted); }
.gap-rank b { color: var(--ink); text-transform: capitalize; }
.gap-rank .gap-vs { color: var(--faint); }
.gap-srcs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; color: var(--faint); }

/* rung badges (gaps + appendix) */
.rung-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 2px 7px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); flex: none; }
.rung-badge.rung-branded { background: var(--accent-wash); color: var(--accent-ink); border-color: #f0dcb8; }
.rung-badge.rung-comparison { background: var(--model-perplexity-wash); color: var(--model-perplexity-ink); border-color: #ddd4ec; }

/* 11 — prompt appendix */
.apx { margin-top: 4px; border: 1px solid var(--line); border-radius: var(--r-card-sm); background: var(--surface); }
.apx > summary { cursor: pointer; list-style: none; padding: var(--s-4) var(--s-5); display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink); }
.apx > summary::-webkit-details-marker { display: none; }
.apx > summary .tnum { color: var(--faint); font-weight: 600; }
.apx-body { padding: 0 var(--s-5) var(--s-4); }
.apx-group { margin-top: var(--s-4); }
.apx-stake { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-ink); margin-bottom: 6px; }
.apx-row { display: flex; align-items: center; gap: var(--s-3); padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.apx-text { flex: 1; color: var(--ink); line-height: 1.4; }
.apx-named { font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--accent-ink); background: var(--accent-wash); padding: 1px 6px; border-radius: var(--r-pill); margin-right: 7px; }
.apx-mr { flex: none; width: 42px; text-align: right; font-weight: 700; color: var(--muted); }

/* per-stakeholder additions */
.sh-srs-lbl { font-family: var(--font-mono); font-weight: 600; font-size: 10px; letter-spacing: .04em; opacity: .8; }
.sh-oneline { font-size: 13.5px; color: var(--muted); line-height: 1.5; margin: 0 0 var(--s-4); padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.sh-sec-label { display: flex; align-items: center; gap: 6px; }
.sh-sec-label svg { color: var(--success); flex: none; }
.sh-sec-label.sh-neg svg { color: var(--danger); }
.sh-section .msgcard { margin-bottom: 8px; }
.sh-gaps { margin: var(--s-3) 0; }
.sh-gaps > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; color: var(--accent-ink); padding: 4px 0; }
.sh-gaps > summary::-webkit-details-marker { display: none; }
.sh-gaps[open] .gaps { grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }

/* footer (cost + glossary) */
.rep-footer { margin-top: var(--s-9); padding-top: var(--s-6); border-top: 1px solid var(--line); }
.rep-footer .cost-card { margin-bottom: var(--s-4); }

/* responsive */
@media (max-width: 860px) {
  .headline-row { grid-template-columns: repeat(2, 1fr); }
  .gaps { grid-template-columns: 1fr; }
  .csov-row { grid-template-columns: 110px 1fr 96px; }
  .sw-row { grid-template-columns: 1fr; }
  .src-row { grid-template-columns: 22px 130px 1fr 36px; }
}
@media (max-width: 600px) { .cost-sum-sub { display: none; } }
