@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-code: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bg: #0a1830;
  --panel: #10254a;
  --border: #274067;
  --text: #ffffff;
  --muted: #9db1cc;
  --accent: #e3a72f;
  /* Issue #160 (A1 P2-4): shared web/PDF brand tokens — these names and
     values are the CSS side of the seam whose PDF side is the BRAND
     defaults in app/pdf_export.py; agreement is asserted by test. */
  --navy: #1e2a4a;
  --severity-critical: #b91c1c;
  --severity-warning: #d97706;
  --severity-info: #646464;
  --green: #3fb950;
  --yellow: #d29922;
  --red: #f85149;
  --radius: 10px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.55;
}

/* Form controls do not inherit the body font in browsers; adopt the brand font explicitly. */
button, input, select, textarea { font-family: var(--font-body); }

.wrap { max-width: 860px; margin: 0 auto; padding: 0 20px; }

header.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0; border-bottom: 1px solid var(--border);
}
/* Canonical wordmark (issue #79): matches reports.html exactly — 20px/700,
   tight tracking, accent period. The anchor itself carries .logo; the nav
   link rule below is scoped to .nav-links so it can never shrink it. */
.logo { font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.logo span { color: var(--accent); }
.top .nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.top .nav-links a:hover { color: var(--text); }
/* Mobile nav toggle (issue #79): hidden above 768px; below it the nav
   collapses into a menu opened by this button. */
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; color: var(--text); cursor: pointer; padding: 8px; line-height: 0; }
@media (max-width: 768px) {
  header.top { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; }
  .top .nav-links { display: none; flex-direction: column; align-items: stretch; gap: 4px; width: 100%; padding: 12px 0 4px; }
  .top .nav-links.open { display: flex; }
  .top .nav-links a { padding: 10px 8px; }
  .top .nav-links form { display: block !important; }
  .top .nav-links .nav-logout { width: 100%; text-align: left; padding: 10px 8px; }
  .top .nav-links .user-email { max-width: 100%; padding: 10px 8px; }
}
/* Auth navigation */
.nav-links { display: flex; align-items: center; gap: 18px; }
.nav-links a { color: var(--muted); text-decoration: none; font-size: 14px; }
.nav-links a:hover { color: var(--text); }
.user-email { color: var(--muted); font-size: 14px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.btn-login { border: 1px solid var(--border); border-radius: 8px; padding: 8px 16px !important; }
.btn-login:hover { border-color: var(--accent); }
.btn-signup { background: var(--accent); color: #1a1a2e !important; border-radius: 8px; padding: 8px 16px !important; font-weight: 600; }
.btn-signup:hover { filter: brightness(1.1); color: #1a1a2e !important; }
.nav-logout { background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; padding: 0; font-family: inherit; }
.nav-logout:hover { color: var(--text); }


.hero { text-align: center; padding: 56px 0 30px; }
.hero h1 { font-size: 40px; margin: 0 0 10px; letter-spacing: -1px; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--muted); font-size: 18px; margin: 0 auto; max-width: 560px; }

/* Accessibility: visually hidden, but still in the accessibility tree and the
   keyboard tab order (unlike display:none). Used for the file input so the
   dropzone label keeps its full styling while the input stays operable. */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Visible keyboard focus on every interactive element. */
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.dropzone {
  display: block;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 44px 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin: 26px 0 10px;
}
.dropzone:hover, .dropzone.dragover { border-color: var(--accent); background: #16305c; }
/* The file input is visually hidden; surface its keyboard focus on the label. */
#file-input:focus-visible + .dropzone {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-color: var(--accent);
}
.dropzone .big { font-size: 17px; font-weight: 600; }
.dropzone .small { color: var(--muted); font-size: 14px; margin-top: 6px; }
.dropzone .big, .dropzone .small, .dropzone .filename { display: block; }
.filename { color: var(--accent); font-weight: 600; margin-top: 10px; min-height: 22px; }

.actions { display: flex; gap: 12px; justify-content: center; margin: 14px 0 6px; flex-wrap: wrap; }
button {
  font-size: 16px; font-weight: 600; padding: 12px 26px;
  border-radius: 8px; border: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #0a1830; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--text); border-color: var(--muted); }

.rate-note { text-align: center; color: var(--muted); font-size: 13px; }
.demo-cta { text-align: center; color: var(--muted); font-size: 14px; margin: 12px 0 0; }
.demo-cta a { color: var(--accent); font-weight: 600; text-decoration: none; }
.demo-cta a:hover { text-decoration: underline; }
.demo-banner { background: var(--panel); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 12px 18px; margin: 20px 0; font-size: 14px; }
.demo-banner a { color: var(--accent); font-weight: 600; }


.error {
  background: #3a1a1e; border: 1px solid var(--red); color: #ffb4ab;
  border-radius: var(--radius); padding: 12px 16px; margin: 16px 0;
}

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 40px 0; }
@media (max-width: 640px) { .info-grid { grid-template-columns: 1fr; } }
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.card h3 { margin: 0 0 8px; font-size: 16px; }
.card p, .card li { color: var(--muted); font-size: 14px; }
.card ul { margin: 8px 0 0; padding-left: 20px; }
code {
  background: #081426; border: 1px solid var(--border); border-radius: 6px;
  padding: 2px 6px; font-size: 13px; color: var(--text);
  font-family: var(--font-code);
}
pre.format {
  background: #081426; border: 1px solid var(--border); border-radius: 8px;
  padding: 14px; font-size: 13px; overflow-x: auto; color: var(--text);
  font-family: var(--font-code);
}

footer {
  border-top: 1px solid var(--border); margin-top: 48px; padding: 22px 0 40px;
  color: var(--muted); font-size: 13px; text-align: center;
}
footer a { color: var(--muted); }

/* ---- report page ---- */
.report-head { padding: 34px 0 6px; }
.report-head h2 { margin: 0 0 4px; font-size: 26px; word-break: break-all; }
.report-head .meta { color: var(--muted); font-size: 14px; }

.badge {
  display: inline-block; padding: 5px 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px; margin: 10px 8px 10px 0;
}
.badge.red { background: rgba(248,81,73,.15); color: var(--red); border: 1px solid var(--red); }
.badge.yellow { background: rgba(210,153,34,.15); color: var(--yellow); border: 1px solid var(--yellow); }
.badge.green { background: rgba(63,185,80,.15); color: var(--green); border: 1px solid var(--green); }
.badge.gray { background: rgba(139,148,158,.15); color: var(--muted); border: 1px solid var(--border); }
.badge.info { background: rgba(227,167,47,.12); color: var(--accent); border: 1px solid var(--border); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; text-align: center; }
.stat .num { font-size: 26px; font-weight: 700; }
.stat .lbl { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }

.callout {
  border-left: 4px solid var(--accent); background: var(--panel);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px; margin: 20px 0;
}
.callout .k { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.callout .v { font-size: 17px; font-weight: 600; }

.sev-row { display: flex; align-items: center; gap: 12px; margin: 8px 0; }
.sev-row .name { width: 90px; font-weight: 700; font-size: 14px; }
.sev-row .bar-wrap { flex: 1; background: #081426; border-radius: 6px; height: 22px; overflow: hidden; display: flex; align-items: stretch; }
.sev-row .bar { border-radius: 6px; }
.sev-row .count { width: 70px; text-align: right; color: var(--muted); font-size: 14px; }
.bar.critical { background: var(--red); } .bar.error { background: #e8944a; }
.bar.warn { background: var(--yellow); } .bar.info { background: var(--accent); }
/* neutralize generic .error message-box styles on severity bars */
.sev-row .bar.error { margin: 0; padding: 0; border: 0; }

table.issues { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 14px; }
table.issues th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
table.issues td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.issues tr:last-child td { border-bottom: none; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.pill.CRITICAL { background: rgba(248,81,73,.15); color: var(--red); }
.pill.ERROR { background: rgba(232,148,74,.15); color: #e8944a; }
.pill.WARN { background: rgba(210,153,34,.15); color: var(--yellow); }

.notice {
  background: rgba(210,153,34,.08); border: 1px solid var(--yellow);
  border-radius: var(--radius); padding: 12px 16px; margin: 18px 0;
  font-size: 14px; color: var(--text);
}
.notice small { color: var(--muted); }

.section-title { font-size: 18px; margin: 30px 0 6px; }
.privacy { color: var(--muted); font-size: 13px; text-align: center; margin: 26px 0 8px; }

/* incident timeline */
.timeline { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding: 8px 4px 0; }
.tbar { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; min-width: 0; }
.tcount { font-size: 10px; color: var(--muted); height: 14px; }
.tstack { width: 100%; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 3px 3px 0 0; overflow: hidden; min-height: 2px; background: #1a2740; }
.tseg { width: 100%; }
.seg-critical { background: var(--red); }
.seg-error { background: #e8944a; }
.seg-warn { background: var(--yellow); }
.tbar-label { font-size: 10px; color: var(--muted); margin-top: 4px; white-space: nowrap; }
.tlegend { display: flex; gap: 16px; margin-top: 10px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.tlegend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: baseline; }
.tlegend .tphases { margin-left: auto; }

/* shared report (issue #107, PR #128 round 2 Finding 4): static
   replacements for the shared page's former inline style attributes,
   so the page needs no inline styles under its CSP. Dynamic chart
   dimensions are NOT here — they arrive in the page's nonced style
   block as generated ss-dyn-* rules. */
/* ---- Issue #170 S1 (Report surface design alignment) ----
   Every rule in this block is scoped to the Report surface via the
   .s1- prefix (A7): style.css is shared by 20 templates, and no S1
   rule may restyle a nonported surface (pricing/auth/compare/batch/
   shared/sample chrome beyond the report templates that opt in).
   Values reuse the live tokens only — no new severity colors, no new
   token enters pdf_export.resolve_tokens (Decisions 2 and 3). */
.s1-section-head { display: flex; align-items: baseline; gap: 10px; margin: 30px 0 6px; }
.s1-section-head .section-title { margin: 0; }
.s1-section-num { font-family: var(--font-code); color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.s1-section-sub { color: var(--muted); font-weight: 400; font-size: 14px; }
.s1-stat-note { color: var(--muted); font-size: 11px; margin-top: 4px; }
.s1-evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 14px 0; }
@media (max-width: 640px) { .s1-evidence-grid { grid-template-columns: 1fr; } }
.s1-evidence-group { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.s1-evidence-group h4 { margin: 0 0 4px; font-size: 14px; }
.s1-evidence-caption { color: var(--muted); font-size: 12px; margin: 0 0 8px; }
.s1-evidence-item { font-size: 13px; margin: 6px 0; word-break: break-word; }
.s1-evidence-more { color: var(--muted); font-size: 12px; font-style: italic; margin-top: 8px; }
.s1-notice-row { display: flex; gap: 10px; align-items: flex-start; }
.s1-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; border: 1px solid var(--border); border-radius: 999px; padding: 2px 8px; color: var(--muted); white-space: nowrap; }
.s1-premium-card { border: 1px solid var(--accent); background: var(--panel); border-radius: var(--radius); padding: 18px; margin: 20px 0; }
.s1-premium-card h3 { margin: 0 0 6px; font-size: 17px; }
.s1-premium-card p { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.s1-timeline-peak { color: var(--muted); font-size: 13px; margin: 0 0 8px; }
.s1-report-foot { color: var(--muted); font-size: 12px; font-family: var(--font-code); margin-top: 10px; word-break: break-all; }
/* Fidelity slice (G1-G14): direct export controls, breadcrumb,
   eyebrow, callout recomposition, incident-start panel, evidence
   markers/excerpts, event rows, section asides, footer band,
   tagline, window label — all .s1- scoped, live tokens only. */
.s1-breadcrumb { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.s1-breadcrumb a { color: var(--muted); text-decoration: none; }
.s1-breadcrumb a:hover { color: var(--text); }
.s1-eyebrow { font-family: var(--font-code); color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 1px; margin: 0 0 6px; }
.s1-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.s1-btn-gold { background: var(--accent); color: #0a1830; font-size: 14px; font-weight: 700; padding: 9px 16px; border-radius: 8px; border: none; cursor: pointer; }
.s1-btn-gold:hover { filter: brightness(1.1); }
.s1-chip { background: transparent; color: var(--text); border: 1px solid var(--border); font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 8px; cursor: pointer; display: inline-block; }
.s1-chip:hover { border-color: var(--accent); }
.s1-free-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; opacity: .75; margin-left: 4px; }
.s1-window { color: var(--muted); font-size: 13px; font-family: var(--font-code); margin: 14px 0 0; }
.s1-callout-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.s1-medallion { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #0a1830; font-weight: 800; }
.s1-callout-meta { margin-left: auto; color: var(--muted); font-size: 13px; }
.s1-callout-title { font-size: 17px; margin: 10px 0 4px; word-break: break-word; }
.s1-callout-foot { display: flex; gap: 12px; align-items: center; margin-top: 10px; color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.s1-source-chip { border: 1px solid var(--border); border-radius: 999px; padding: 2px 10px; font-family: var(--font-code); font-size: 12px; color: var(--text); }
.s1-incident-start { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 12px 0; }
@media (max-width: 640px) { .s1-incident-start { grid-template-columns: 1fr; } }
.s1-start-field { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.s1-start-label { display: block; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.s1-marker { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; background: var(--muted); }
.s1-marker-observed { background: var(--green); }
.s1-marker-correlated { background: var(--yellow); }
.s1-marker-hypothesized { background: var(--accent); }
.s1-excerpt { background: #081426; border-left: 3px solid var(--accent); border-radius: 6px; padding: 8px 10px; margin: 6px 0; }
.s1-excerpt-ref { color: var(--muted); font-size: 11px; }
.s1-excerpt-text { font-family: var(--font-code); white-space: pre-wrap; word-break: break-word; margin: 4px 0 0; font-size: 12px; }
.s1-event-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.s1-event-row:last-child { border-bottom: none; }
.s1-event-main { flex: 1; font-size: 14px; word-break: break-word; }
.s1-event-source { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.s1-event-count { color: var(--muted); font-size: 13px; white-space: nowrap; }
.s1-section-aside { margin-left: auto; color: var(--muted); font-size: 13px; }
.s1-issue-source { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.s1-timeline-caption { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.s1-premium-icon { color: var(--accent); font-size: 20px; }
.s1-premium-title { margin: 6px 0; font-size: 19px; }
.s1-premium-pitch { color: var(--text) !important; }
.s1-footer-band { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-top: 1px solid var(--border); margin-top: 34px; padding-top: 16px; flex-wrap: wrap; }
.s1-footer-meta { color: var(--muted); font-size: 12px; font-family: var(--font-code); letter-spacing: .5px; }
.s1-tagline { text-align: center; color: var(--muted); font-size: 13px; margin: 18px 0 0; }

.ss-muted-normal { color: var(--muted); font-weight: 400; }
.ss-subtitle-note { color: var(--muted); font-weight: 400; font-size: 14px; }
.ss-mt10 { margin-top: 10px; }
.ss-mb8 { margin-bottom: 8px; }
.ss-card-pad-x { padding: 0 20px; }
.ss-text-right { text-align: right; }
.ss-count-cell { text-align: right; color: var(--muted); }

/* ---- Issue #164 S6/S7 (Batch / Compare surface design alignment) ----
   Every rule in this block is scoped to the Batch/Compare surfaces:
   all selectors carry the .s6- prefix, and the .s6- classes exist only
   in batch.html / compare.html plus the Batch/Compare product renders
   of paid_consent.html and product_return.html (A3: the new consent /
   return composition is operation-scoped — the credit branch and the
   Oversize branch of those shared templates keep their existing
   inline styles and never carry .s6- classes). No shared selector,
   token, or :root value is touched. Values reuse the live tokens only
   (navy/gold house system). Placement mirrors the S3 note: this block
   sits BEFORE the S3 block so the S3 (marker-to-S2), S2 (marker-to-S4)
   and S4 (marker-to-EOF) scope-slice tests all stay green. */
.s6-eyebrow { font-family: var(--font-code); color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 12px; }
.s6-panel { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 24px; margin-top: 26px; }
.s6-panel h1 { margin: 0 0 10px; }
.s6-sub { color: var(--muted); max-width: 640px; }
.s6-inline-link { color: var(--accent); }
.s6-field-label { display: block; font-family: var(--font-code); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 28px 0 0; }
.s6-dropzone { box-shadow: inset 0 0 0 1px var(--panel); padding: 52px 24px; margin-top: 12px; }
.s6-medallion { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #0a1830; margin: 0 auto 12px; }
.s6-file-input:focus-visible + .s6-dropzone { outline: 3px solid var(--accent); outline-offset: 3px; border-color: var(--accent); }
.s6-staged { display: grid; gap: 10px; margin-top: 14px; }
.s6-file-row { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px 14px; }
.s6-file-name { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; word-break: break-all; }
.s6-file-meta { color: var(--muted); font-family: var(--font-code); font-size: 11px; white-space: nowrap; }
.s6-remove { background: transparent; border: 1px solid var(--border); color: var(--muted); border-radius: 6px; padding: 2px 9px; font-size: 14px; cursor: pointer; flex: none; }
.s6-remove:hover { color: var(--text); border-color: var(--accent); }
@media (max-width: 560px) { .s6-file-row { flex-wrap: wrap; } }
.s6-cta { display: flex; justify-content: flex-end; margin-top: 24px; }
.s6-btn-primary { background: var(--accent); color: #0a1830; font-size: 16px; font-weight: 700; padding: 12px 26px; border-radius: 8px; border: none; cursor: pointer; }
.s6-btn-primary:hover { filter: brightness(1.1); }
@media (max-width: 720px) { .s6-cta > * { width: 100%; } }
.s6-compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
@media (max-width: 720px) { .s6-compare-grid { grid-template-columns: 1fr; } }
.s6-shell { display: flex; justify-content: center; padding: 24px 20px 56px; }
.s6-consent-panel { width: 100%; max-width: 480px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px 30px 24px; text-align: center; }
@media (max-width: 720px) { .s6-consent-panel { padding: 22px 18px; } }
.s6-consent-panel h1 { margin: 0 0 8px; font-size: 22px; }
.s6-intro { color: var(--muted); margin: 0; }
.s6-files { display: grid; gap: 8px; margin: 16px 0; text-align: left; }
.s6-chip { font-family: var(--font-code); font-size: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 9px 12px; word-break: break-all; }
.s6-meta { color: var(--muted); font-size: 13px; margin: 8px 0; }
.s6-cost { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 18px 0; margin: 18px 0; }
.s6-cost strong { display: block; font-size: 38px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.s6-cost p { font-size: 13px; color: var(--muted); margin: 6px 0 0; }
.s6-lead { font-size: 13px; text-align: center; margin: 0 0 10px; }
.s6-promise { font-size: 12px; color: var(--muted); line-height: 1.55; text-align: center; margin: 0; }
.s6-actions { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.s6-actions > * { flex: 1; }
@media (max-width: 720px) { .s6-actions { flex-direction: column; } }
.s6-btn-confirm { background: var(--accent); color: #1a1a2e; border: none; padding: 12px 24px; border-radius: 8px; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit; }
.s6-btn-confirm:hover { filter: brightness(1.1); }
.s6-btn-cancel { border: 1px solid var(--border); color: var(--text); background: transparent; padding: 12px 24px; border-radius: 8px; text-decoration: none; font-size: 1rem; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; }
.s6-btn-cancel:hover { border-color: var(--accent); }
.s6-foot { font-size: 11px; color: var(--muted); text-align: center; margin: 16px 0 0; }
.s6-note { margin-top: 20px; font-size: 0.85rem; color: var(--muted); }
/* ---- Issue #170 S3 (My Reports surface design alignment) ----
   Every rule in this block is scoped to the My Reports surface: all
   selectors carry the .s3- prefix, and the .s3- classes exist only
   in reports.html (A7). NOTE on placement: this block sits BEFORE
   the S2 block, not between S2 and S4 — the S2 test slices style.css
   from its own marker to the S4 marker and asserts every selector
   in that slice is .s2-scoped, and the S4 test slices from its
   marker to EOF; a block placed between S2 and S4, or after S4,
   would break one of those unmodified scope tests. Placement here
   keeps both green. NOTE on effect: reports.html does not link this
   shared stylesheet (it carries its own <style> block in the page's
   own tokens), so the functional copy of these rules lives in
   reports.html itself; this block is the shared-stylesheet record
   of the S3 surface styles in the shared tokens, per the house
   pattern for S1/S2/S4. No shared selector, token, or :root value
   is touched, so pricing/auth/report/settings/shared/sample
   surfaces cannot be restyled by these rules. */
.s3-eyebrow { font-family: var(--font-code); color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 10px; }
.s3-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); }
.s3-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.s3-table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.s3-table td { padding: 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.s3-table tbody tr.card { display: table-row; padding: 0; background: transparent; border: none; border-radius: 0; }
.s3-table tbody tr:last-child td { border-bottom: none; }
.s3-report-main { display: flex; align-items: center; gap: 14px; min-width: 0; }
.s3-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; border: 1px solid var(--border); color: var(--muted); }
.s3-pill.ok { color: var(--green); }
.s3-pill.warnings { color: var(--yellow); }
.s3-pill.errors { color: var(--red); }
.s3-state-cell .expiry { margin-left: 8px; }
.s3-status-word { font-weight: 700; }
.s3-share-state { display: block; margin-top: 8px; color: var(--muted); font-size: 13px; }
.s3-share-state .btn { height: 30px; padding: 0 10px; font-size: 13px; margin-left: 6px; }
.s3-date-line { display: block; }
.s3-date-sub { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.s3-report-sub { color: var(--muted); font-size: 13px; margin-top: 2px; font-family: var(--font-code); }
.s3-actions-cell .actions { flex-wrap: wrap; }
.s3-empty { border-top: 3px solid var(--accent); }
@media (max-width: 640px) { .s3-table th, .s3-table td { padding: 12px; } }
/* ---- Issue #170 S2 (Analyze surface design alignment) ----
   Every rule in this block is scoped to the Analyze surface: all
   selectors carry the .s2- prefix, and the .s2- classes exist only
   in index.html plus the shared panel opt-in on compare.html /
   batch.html (their <section> gains .s2-panel; no structural, form,
   route, or flow change there) (A7). No shared selector, token, or
   :root value is touched, so pricing/auth/reports/settings/shared/
   sample surfaces cannot be restyled by these rules. Values reuse
   the live tokens only (navy/gold house system, Decisions 2 and 3).
   The remake's "50 MB free" framing is rejected outright (A2) and
   no price text appears here or on the entry cards: Compare/Batch
   dollar copy belongs to #164 Phase B, which has not landed. */
.s2-hero .s2-eyebrow { font-family: var(--font-code); color: var(--accent); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; margin: 0 0 12px; max-width: none; }
.s2-dropzone { box-shadow: inset 0 0 0 1px var(--panel); padding: 52px 24px; }
.s2-note-row { margin: 14px 0 0; }
.s2-entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 0; }
@media (max-width: 640px) { .s2-entry-grid { grid-template-columns: 1fr; } }
.s2-entry-card { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-decoration: none; color: var(--text); }
.s2-entry-card:hover { border-color: var(--accent); }
.s2-entry-title { display: block; font-size: 16px; font-weight: 700; margin: 0 0 6px; }
.s2-entry-sub { display: block; color: var(--muted); font-size: 14px; line-height: 1.5; }
.s2-entry-link { display: block; color: var(--accent); font-weight: 600; font-size: 14px; margin-top: 12px; }
.s2-panel { border-top: 3px solid var(--accent); }
section.s2-panel { background: var(--panel); border: 1px solid var(--border); border-top: 3px solid var(--accent); border-radius: var(--radius); padding: 24px; margin-top: 26px; }
/* ---- Issue #170 S4 (Settings surface design alignment) ----
   Every rule in this block is scoped to the Settings surface: all
   selectors carry the .s4- prefix, and .s4-group / .s4-settings exist
   only in settings.html (A7). No shared selector, token, or :root
   value is touched, so pricing/auth/compare/batch/shared/sample
   surfaces cannot be restyled by these rules. Values reuse the live
   tokens only (navy/gold house system, Decisions 2 and 3); the
   Settings cards themselves keep their template-local styles, here
   gaining only the numbered-group composition of the remake. */
.s4-group { margin: 0 0 10px; }
.s4-section-head { display: flex; align-items: baseline; gap: 10px; margin: 26px 0 10px; }
.s4-group:first-child .s4-section-head { margin-top: 0; }
.s4-section-num { font-family: var(--font-code); color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: .5px; }
.s4-section-label { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.s4-section-aside { margin-left: auto; color: var(--muted); font-size: 12px; }
.s4-group .btn-small:hover { border-color: var(--accent); }

