@layer reset, tokens, base, components, report, utilities, overrides;

/* ---- src/tokens.css ---- */
/* Design tokens — seeded from reelmetric-script-web/static/css/reelmetrics-theme.css
   as it stood after T151.10 (monochrome set). ADR-0054 SS2.2. */
@layer tokens {
:root {
  color-scheme: dark;

  /* Color palette — monochrome only (T151.10). Names are kept for a smaller diff;
     values are black/white/neutral-gray so every rule built on these tokens,
     used or not, resolves to monochrome without a per-rule rewrite. */
  --rm-ink: #0a0a0a;
  --rm-ink-2: #141414;
  --rm-panel: #1c1c1c;
  --rm-panel-2: #242424;
  --rm-cream: #ffffff;
  --rm-paper: #fafafa;
  --rm-muted: #9a9a9a;
  --rm-muted-2: #737373;
  --rm-line: rgba(255, 255, 255, 0.14);
  --rm-line-strong: rgba(255, 255, 255, 0.28);
  /* Legacy accent-token names, still consumed by the unused landing-hero rules
     below (0 references in the six submitter templates as of T151.10) — kept
     monochrome so nothing that later reuses them regains color by accident. */
  --rm-gold: #3a3a3a;
  --rm-gold-2: #737373;
  --rm-red: #2b2b2b;
  --rm-teal: #2b2b2b;
  --rm-blue: #2b2b2b;

  /* Typography scale */
  --rm-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --rm-font-serif: Georgia, "Times New Roman", serif;
  --rm-text-xs: 0.78rem;
  --rm-text-sm: 0.9rem;
  --rm-text-md: 1rem;
  --rm-text-lg: 1.15rem;
  --rm-text-xl: 1.45rem;
  --rm-text-2xl: 2rem;
  --rm-text-3xl: 3rem;
  --rm-text-4xl: 4.7rem;

  /* Layout and spacing */
  --rm-page-pad: 1.5rem;
  --rm-container: 1180px;
  --rm-section: 6rem;
  --rm-section-tight: 4rem;
  --rm-radius: 8px;
  --rm-radius-sm: 6px;
  --rm-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --rm-shadow-soft: 0 16px 34px rgba(0, 0, 0, 0.18);

  /* T152.03: script-web's static/css/styles.css defined its own 13-name token
     vocabulary (--charcoal, --slate, --amber, --muted, --border, --panel,
     --panel-white, --script-white, --light-gray, --bg, --text, --accent,
     --accent-hv) with no --rm-* equivalent for these five distinct values.
     --panel/--panel-white/--script-white/--bg already had exact matches
     (--rm-cream, --rm-paper) and are not duplicated here. */
  --rm-charcoal: #1a1a1a;
  --rm-charcoal-hover: #262626;
  --rm-slate: #595959;
  --rm-light-gray: #e5e5e5;
  --rm-black: #000000;
}
}

/* ---- src/base.css ---- */
/* Reset + base page/section/typography primitives. ADR-0054 SS2.2. */
@layer reset {
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
}

@layer base {
body.rm-theme-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--rm-font-sans);
  font-size: var(--rm-text-md);
  color: var(--rm-ink);
  background: var(--rm-paper);
  line-height: 1.65;
}

.rm-theme-page a {
  color: inherit;
}

.rm-container {
  width: min(var(--rm-container), calc(100% - (var(--rm-page-pad) * 2)));
  margin: 0 auto;
}

.rm-section {
  padding: var(--rm-section) 0;
}

.rm-section--tight {
  padding: var(--rm-section-tight) 0;
}

.rm-section--paper {
  color: var(--rm-ink);
  background: var(--rm-paper);
}

.rm-section--ink {
  color: var(--rm-cream);
  background: var(--rm-ink);
}

.rm-section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(280px, 0.52fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.5rem;
}

.rm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
  color: #4a4a4a;
  font-size: var(--rm-text-xs);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.rm-section--ink .rm-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.rm-kicker::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: currentColor;
}

.rm-theme-page h1,
.rm-theme-page h2,
.rm-theme-page h3,
.rm-theme-page p {
  margin-top: 0;
}

.rm-theme-page h1,
.rm-theme-page h2,
.rm-theme-page h3 {
  color: inherit;
  line-height: 1.05;
  letter-spacing: 0;
}

.rm-theme-page h1 {
  max-width: 12ch;
  margin-bottom: 1.3rem;
  font-family: var(--rm-font-serif);
  font-size: var(--rm-text-4xl);
  font-weight: 700;
}

.rm-theme-page h2 {
  margin-bottom: 1rem;
  font-family: var(--rm-font-serif);
  font-size: var(--rm-text-3xl);
  font-weight: 700;
}

.rm-theme-page h3 {
  margin-bottom: 0.65rem;
  font-size: var(--rm-text-xl);
  font-weight: 800;
}

.rm-lead {
  max-width: 42rem;
  color: var(--rm-muted);
  font-size: var(--rm-text-lg);
}

.rm-section--paper .rm-lead,
.rm-section--paper .rm-muted {
  color: #58616d;
}

.rm-muted {
  color: var(--rm-muted);
}

.rm-small {
  font-size: var(--rm-text-sm);
}

/* Ported from reelmetric-script-web/static/css/styles.css by T152.03 (D10). */
html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, sans-serif;
  color: var(--rm-charcoal);
  background: linear-gradient(135deg, var(--rm-paper) 0%, #f5f0e6 100%);
  min-height: 100vh;
  position: relative;
}

/* Subtle film grain overlay */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: -1;
}

/* The bare *,*::before,*::after reset here is safe in any layer: it is
   !important, and important declarations invert normal layer order (earlier
   layer wins), so it overrides every non-important transition/animation
   declared in components/overrides regardless of this layer's position.
   The one non-important sub-rule from the source media query, `.reveal`'s
   opacity/transform reset, is NOT safe here: base is cascade-earlier than
   components, so a non-important base rule can never beat a non-important
   components rule (.reveal's default opacity:0). That one line is ported
   into components.css's `@layer utilities` block instead, next to `.reveal`
   itself, where utilities' later position makes the override actually apply. */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
}

/* ---- src/components.css ---- */
/* Component classes (buttons, nav, hero, cards, tables, etc.) plus
   responsive/reduced-motion utility rules. ADR-0054 SS2.2. */
@layer components {
.rm-topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding: 1.1rem 0;
}

.rm-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.rm-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--rm-cream);
  font-weight: 900;
  text-decoration: none;
}

.rm-brand-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--rm-line-strong);
  border-radius: 50%;
  color: #ffffff;
  background: #000000;
  font-family: var(--rm-font-serif);
  font-weight: 700;
}

.rm-nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
}

.rm-nav-links a {
  color: rgba(247, 239, 225, 0.82);
  font-size: var(--rm-text-sm);
  font-weight: 750;
  text-decoration: none;
}

.rm-nav-links a:hover {
  color: var(--rm-cream);
}

/* Light-background variant: dark ink nav text for pages without a dark hero */
.rm-topbar--light .rm-brand {
  color: var(--rm-ink);
}

.rm-topbar--light .rm-nav-links a {
  color: var(--rm-ink);
}

.rm-topbar--light .rm-nav-links a:hover {
  color: var(--rm-ink-2);
}

.rm-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.78rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--rm-radius-sm);
  font-family: inherit;
  font-size: var(--rm-text-sm);
  font-weight: 850;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.rm-button:hover {
  transform: translateY(-1px);
}

/* One button hierarchy, per user_surface_audit_2026-08-23.md §Design Direction:
   primary = black bg / white text; secondary = white bg / black text / gray
   border; disabled = light gray bg / medium gray text. */
.rm-button--primary {
  color: #ffffff;
  background: #000000;
  box-shadow: none;
}

.rm-button--primary:hover {
  background: #262626;
}

.rm-button--secondary {
  color: #000000;
  border-color: #b5b5b5;
  background: #ffffff;
}

.rm-button--secondary:hover {
  border-color: #000000;
  background: #f2f2f2;
}

.rm-button--dark {
  color: #ffffff;
  background: #000000;
}

.rm-button[disabled],
.rm-button--disabled {
  color: #8a8a8a;
  background: #e5e5e5;
  border-color: #e5e5e5;
  cursor: not-allowed;
}

.rm-button[disabled]:hover,
.rm-button--disabled:hover {
  transform: none;
}

.rm-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.rm-hero {
  position: relative;
  display: grid;
  min-height: 780px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 11, 15, 0.92), rgba(9, 11, 15, 0.66) 48%, rgba(9, 11, 15, 0.2)),
    linear-gradient(180deg, rgba(9, 11, 15, 0.2), rgba(9, 11, 15, 0.94)),
    var(--rm-ink-2);
}

.rm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(247, 239, 225, 0.08) 0,
      rgba(247, 239, 225, 0.08) 1px,
      transparent 1px,
      transparent 56px
    );
  opacity: 0.28;
}

.rm-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, var(--rm-ink));
}

.rm-hero-content {
  position: relative;
  z-index: 2;
  align-self: center;
  padding-top: 7rem;
  padding-bottom: 6rem;
}

.rm-hero-copy {
  max-width: 58rem;
}

.rm-hero .rm-lead {
  max-width: 46rem;
  margin-bottom: 2rem;
  color: rgba(247, 239, 225, 0.76);
}

.rm-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 2rem;
  max-width: 43rem;
}

.rm-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.36rem 0.72rem;
  border: 1px solid var(--rm-line);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.06);
  font-size: var(--rm-text-xs);
  font-weight: 800;
}

.rm-hero-visual {
  position: absolute;
  inset: 7.5rem -2rem 4rem auto;
  z-index: 1;
  width: min(56vw, 760px);
  min-width: 560px;
  opacity: 0.88;
  pointer-events: none;
}

.rm-product-frame,
.rm-script-frame,
.rm-signal-frame {
  position: absolute;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  background: rgba(22, 27, 36, 0.82);
  box-shadow: var(--rm-shadow);
  backdrop-filter: blur(14px);
}

.rm-product-frame {
  top: 2rem;
  right: 2rem;
  width: 540px;
  min-height: 430px;
  padding: 1rem;
}

.rm-script-frame {
  top: 13rem;
  right: 29rem;
  width: 250px;
  padding: 1rem;
  transform: rotate(-2deg);
}

.rm-signal-frame {
  top: 25.8rem;
  right: 9rem;
  width: 320px;
  padding: 1rem;
}

.rm-window-bar {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.rm-window-dot {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--rm-line-strong);
}

.rm-window-dot:nth-child(1) {
  background: var(--rm-red);
}

.rm-window-dot:nth-child(2) {
  background: var(--rm-gold);
}

.rm-window-dot:nth-child(3) {
  background: var(--rm-teal);
}

.rm-score-panel {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 152px;
  padding: 1rem;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  background: rgba(9, 11, 15, 0.48);
}

.rm-score-ring {
  display: grid;
  place-items: center;
  width: 7.2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--rm-gold) 0 82%, rgba(247, 239, 225, 0.12) 82% 100%);
}

.rm-score-ring span {
  display: grid;
  place-items: center;
  width: 5.2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  color: var(--rm-cream);
  background: var(--rm-ink-2);
  font-size: var(--rm-text-xl);
  font-weight: 900;
}

.rm-product-title {
  margin: 0 0 0.35rem;
  color: var(--rm-cream);
  font-size: var(--rm-text-md);
  font-weight: 900;
}

.rm-product-copy {
  margin: 0;
  color: var(--rm-muted);
  font-size: var(--rm-text-sm);
}

.rm-bar-stack {
  display: grid;
  gap: 0.65rem;
  margin-top: 1rem;
}

.rm-data-row {
  display: grid;
  grid-template-columns: 6.5rem 1fr 2.5rem;
  gap: 0.7rem;
  align-items: center;
  color: var(--rm-muted);
  font-size: var(--rm-text-xs);
  font-weight: 800;
}

.rm-data-track {
  height: 0.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(247, 239, 225, 0.12);
}

.rm-data-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rm-gold);
}

.rm-data-fill--teal {
  background: var(--rm-teal);
}

.rm-data-fill--red {
  background: var(--rm-red);
}

.rm-data-fill--blue {
  background: var(--rm-blue);
}

.rm-script-lines {
  display: grid;
  gap: 0.55rem;
}

.rm-script-line {
  height: 0.52rem;
  border-radius: 999px;
  background: rgba(247, 239, 225, 0.18);
}

.rm-script-line:nth-child(2),
.rm-script-line:nth-child(5) {
  width: 72%;
}

.rm-script-line:nth-child(3),
.rm-script-line:nth-child(7) {
  width: 88%;
}

.rm-script-callout {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rm-line);
  color: var(--rm-gold-2);
  font-size: var(--rm-text-xs);
  font-weight: 900;
}

.rm-signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.rm-mini-metric {
  min-height: 5.5rem;
  padding: 0.75rem;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius-sm);
  background: rgba(9, 11, 15, 0.38);
}

.rm-mini-metric strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--rm-cream);
  font-size: var(--rm-text-xl);
  line-height: 1;
}

.rm-mini-metric span {
  display: block;
  color: var(--rm-muted);
  font-size: var(--rm-text-xs);
  font-weight: 800;
}

.rm-value-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  border-top: 1px solid var(--rm-line);
  border-bottom: 1px solid var(--rm-line);
  background: var(--rm-line);
}

.rm-value-item {
  padding: 2rem;
  background: var(--rm-ink-2);
}

.rm-value-item strong {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--rm-cream);
  font-size: var(--rm-text-lg);
}

.rm-value-item p {
  max-width: 25rem;
  margin-bottom: 0;
  color: var(--rm-muted);
  font-size: var(--rm-text-sm);
}

.rm-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.rm-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.rm-card {
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  background: var(--rm-panel);
  box-shadow: var(--rm-shadow-soft);
}

.rm-card--paper {
  border-color: rgba(9, 11, 15, 0.12);
  color: var(--rm-ink);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(9, 11, 15, 0.08);
}

.rm-card-body {
  padding: 1.35rem;
}

.rm-step {
  display: grid;
  min-height: 18rem;
  align-content: space-between;
}

.rm-step-number {
  color: var(--rm-gold);
  font-family: var(--rm-font-serif);
  font-size: var(--rm-text-3xl);
  font-weight: 700;
  line-height: 1;
}

.rm-step p {
  margin-bottom: 0;
  color: var(--rm-muted);
}

.rm-section--paper .rm-step p {
  color: #5d6672;
}

.rm-insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.65fr);
  gap: 1rem;
  align-items: stretch;
}

.rm-analysis-board {
  min-height: 36rem;
  overflow: hidden;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  background:
    linear-gradient(180deg, rgba(247, 239, 225, 0.04), rgba(247, 239, 225, 0)),
    var(--rm-panel);
  box-shadow: var(--rm-shadow);
}

.rm-board-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--rm-line);
}

.rm-board-title {
  color: var(--rm-cream);
  font-weight: 900;
}

.rm-board-status {
  color: var(--rm-teal);
  font-size: var(--rm-text-xs);
  font-weight: 900;
}

.rm-board-body {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(260px, 0.7fr);
  gap: 1rem;
  padding: 1rem;
}

.rm-slate-panel {
  min-height: 15rem;
  padding: 1rem;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  background: rgba(9, 11, 15, 0.34);
}

.rm-panel-label {
  margin: 0 0 0.8rem;
  color: var(--rm-muted);
  font-size: var(--rm-text-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.rm-quote {
  margin: 0;
  color: var(--rm-cream);
  font-family: var(--rm-font-serif);
  font-size: var(--rm-text-2xl);
  line-height: 1.22;
}

.rm-risk-list {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rm-risk-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  color: var(--rm-muted);
  font-size: var(--rm-text-sm);
}

.rm-risk-list li::before {
  content: "";
  width: 0.58rem;
  height: 0.58rem;
  margin-top: 0.43rem;
  border-radius: 50%;
  background: var(--rm-gold);
  flex: 0 0 auto;
}

.rm-comp-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--rm-muted);
  font-size: var(--rm-text-sm);
}

.rm-comp-table th,
.rm-comp-table td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rm-line);
  text-align: left;
}

.rm-comp-table th {
  color: var(--rm-muted-2);
  font-size: var(--rm-text-xs);
  font-weight: 900;
  text-transform: uppercase;
}

.rm-comp-table td:last-child,
.rm-comp-table th:last-child {
  text-align: right;
}

.rm-comp-table strong {
  color: var(--rm-cream);
}

.rm-insight-aside {
  display: grid;
  gap: 1rem;
}

.rm-score-card {
  min-height: 17.5rem;
  padding: 1.35rem;
}

.rm-score-number {
  display: block;
  margin: 1.1rem 0 0.35rem;
  color: var(--rm-gold);
  font-family: var(--rm-font-serif);
  font-size: 5.2rem;
  font-weight: 700;
  line-height: 0.9;
}

.rm-score-card p {
  color: var(--rm-muted);
}

.rm-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.rm-tag {
  display: inline-flex;
  padding: 0.33rem 0.62rem;
  border: 1px solid var(--rm-line);
  border-radius: 999px;
  color: var(--rm-muted);
  background: rgba(247, 239, 225, 0.04);
  font-size: var(--rm-text-xs);
  font-weight: 850;
}

.rm-cta {
  position: relative;
  overflow: hidden;
  padding: 4rem;
  border: 1px solid var(--rm-line);
  border-radius: var(--rm-radius);
  background:
    linear-gradient(90deg, rgba(232, 174, 77, 0.14), transparent 50%),
    var(--rm-panel);
  box-shadow: var(--rm-shadow);
}

.rm-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 5.4rem,
      rgba(247, 239, 225, 0.06) 5.4rem,
      rgba(247, 239, 225, 0.06) 5.5rem
    );
  opacity: 0.28;
  pointer-events: none;
}

.rm-cta-content {
  position: relative;
  z-index: 1;
  max-width: 48rem;
}

.rm-footer {
  padding: 2rem 0;
  border-top: 1px solid var(--rm-line);
  color: var(--rm-muted);
  background: var(--rm-ink);
}

.rm-footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
  justify-content: space-between;
}

.rm-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.rm-footer a {
  color: var(--rm-muted);
  font-size: var(--rm-text-sm);
  text-decoration: none;
}

.rm-footer a:hover {
  color: var(--rm-cream);
}

/* Ported from reelmetric-script-web/static/css/styles.css by T152.03 (D10) —
   app-specific components with no equivalent in the shared set above. */

/* ── Status rows / badges (platform_status.html, platform_submit_success.html) ── */
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rm-light-gray);
}
.status-row:last-child {
  border-bottom: none;
}
.status-row-center {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  align-items: baseline;
  padding: 0.6rem 0 1rem;
}
.status-label {
  color: var(--rm-slate);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.status-desc {
  color: var(--rm-slate);
  font-size: 0.92rem;
  text-align: center;
  margin: 0 0 1rem;
}
.status-details {
  margin-top: 0.75rem;
}

/* Status badge: weight and a leading marker carry meaning, not color. */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid #d0d0d0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: capitalize;
  color: #333333;
  background: #f5f5f5;
}
.status-badge::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #a3a3a3;
}
.status-badge.status-released {
  border-color: #000000;
  color: #000000;
  background: #ffffff;
  font-weight: 800;
}
.status-badge.status-released::before {
  background: #000000;
}
.status-badge.status-failed {
  border-color: #000000;
  border-width: 2px;
  color: #000000;
  background: #ffffff;
}
.status-badge.status-failed::before {
  background: #000000;
}

.link-accent {
  color: #000000;
  font-weight: 700;
  text-decoration: underline;
}

/* ── Progress timeline (platform_status.html) ───────────────────────────── */
.progress-timeline {
  display: flex;
  justify-content: space-between;
  margin: 1.5rem 0;
  position: relative;
}
.progress-timeline-track {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 2px;
  background: #e0e0e0;
  z-index: 0;
  transform: translateY(-50%);
}
.progress-timeline-step {
  position: relative;
  z-index: 1;
  text-align: center;
  width: 20%;
}
.progress-timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #c7c7c7;
  margin: 0 auto 0.5rem;
}
.progress-timeline-dot.active {
  background: #ffffff;
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}
.progress-timeline-dot.done {
  background: #000000;
  border-color: #000000;
}
.progress-timeline-dot.done::after {
  content: "\2713";
  display: block;
  color: #ffffff;
  font-size: 13px;
  line-height: 20px;
}
.progress-timeline-label {
  font-size: 0.85rem;
  color: #737373;
}
.progress-timeline-label.active {
  color: #000000;
  font-weight: 700;
}

/* ── Form controls (upload.html) ─────────────────────────────────────────── */
.form-section + .form-section {
  margin-top: 1.25rem;
}
.form-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--rm-charcoal);
}
.form-help {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--rm-slate);
}
.form-help.text-danger {
  color: #000000;
  font-weight: 700;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
}

/* ── Designed upload control (replaces the bare native file input) ───────── */
.rm-dropzone {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding: 2rem 1.5rem;
  border: 1px dashed #b5b5b5;
  border-radius: 10px;
  background: #fafafa;
  text-align: center;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.rm-dropzone:hover,
.rm-dropzone.is-dragover {
  border-color: #000000;
  background: #f2f2f2;
}
.rm-dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.rm-dropzone-icon {
  width: 2rem;
  height: 2rem;
  border: 1px solid #000000;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  line-height: 1;
}
.rm-dropzone-title {
  font-weight: 700;
  color: var(--rm-charcoal);
}
.rm-dropzone-meta {
  font-size: 0.82rem;
  color: var(--rm-slate);
}
.rm-dropzone-filename {
  display: none;
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #000000;
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 700;
}
.rm-dropzone-filename.is-visible {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

/* ── Scroll reveal (optional JS triggers .reveal; static/js/scroll-reveal.js) ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Landing hero (T152.04) ── ported verbatim from reelmetric-landing's
   index.html page-local <style> block. A standalone marketing splash page
   with no header/nav chrome — deliberately not built on .rm-theme-page's
   cascade (that would swap this page's Arial/Georgia/Impact type for the
   rest of the site's Inter), so tokens are referenced directly. Colors:
   --black(#000)->--rm-black, --white(#f7f7f4)->--rm-cream(#ffffff, ~3%
   channel delta, imperceptible), --muted(#1d1d1a)->--rm-charcoal(#1a1a1a,
   ~2% delta) — the source page's unused fourth token, --soft, has no
   equivalent and was not ported (grep-confirmed zero uses in index.html). */
.rm-landing-page {
  margin: 0;
  min-height: 100vh;
  color: var(--rm-black);
  background: var(--rm-cream);
  font-family: Arial, Helvetica, sans-serif;
}

.rm-landing-stage {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100vh;
  overflow: hidden;
  background: var(--rm-cream);
  border: 0;
  border-radius: 0;
}

.rm-landing-topline,
.rm-landing-tagline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(0.8rem, 1.6vw, 1.4rem) clamp(0.8rem, 1.8vw, 1.8rem);
  font-size: clamp(1rem, 1.75vw, 1.7rem);
  line-height: 1;
}

.rm-landing-contact {
  justify-self: end;
  text-align: right;
}

.rm-landing-main {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: clamp(0.7rem, 1.6vw, 1.4rem) clamp(0.4rem, 0.9vw, 0.9rem);
  text-align: center;
}

.rm-landing-wordmark {
  margin: 0;
  color: var(--rm-black);
  font-family: Impact, Haettenschweiler, "Arial Black", "Franklin Gothic Heavy", sans-serif;
  font-size: clamp(5.1rem, 15.8vw, 19rem);
  font-stretch: condensed;
  font-weight: 900;
  letter-spacing: clamp(-0.015em, 0.08vw, 0.02em);
  line-height: 0.78;
  text-transform: uppercase;
  max-width: calc(100vw - clamp(1rem, 2vw, 1.8rem));
  transform: scaleY(1.48);
  transform-origin: center;
  white-space: nowrap;
}

.rm-landing-tagline {
  grid-template-columns: 1fr;
  padding-bottom: clamp(1.4rem, 2.4vw, 2rem);
  color: var(--rm-charcoal);
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}
}

@layer utilities {
@media (max-width: 980px) {
  :root {
    --rm-section: 4.75rem;
    --rm-text-4xl: 3.4rem;
    --rm-text-3xl: 2.35rem;
  }

  .rm-section-head,
  .rm-insight-layout,
  .rm-board-body {
    grid-template-columns: 1fr;
  }

  .rm-grid-3,
  .rm-value-strip {
    grid-template-columns: 1fr;
  }

  .rm-hero {
    min-height: 700px;
  }

  .rm-hero-visual {
    inset: auto -9rem 1rem auto;
    width: 620px;
    min-width: 0;
    opacity: 0.36;
  }
}

@media (max-width: 720px) {
  :root {
    --rm-page-pad: 1rem;
    --rm-section: 4rem;
    --rm-section-tight: 3rem;
    --rm-text-4xl: 2.45rem;
    --rm-text-3xl: 2rem;
    --rm-text-2xl: 1.55rem;
  }

  .rm-nav {
    align-items: flex-start;
  }

  .rm-nav-links {
    display: none;
  }

  .rm-hero {
    min-height: 650px;
  }

  .rm-hero-content {
    padding-top: 6rem;
    padding-bottom: 4rem;
  }

  .rm-hero-visual {
    display: none;
  }

  .rm-button-row,
  .rm-button {
    width: 100%;
  }

  .rm-value-item,
  .rm-card-body,
  .rm-score-card,
  .rm-slate-panel {
    padding: 1rem;
  }

  .rm-grid-2 {
    grid-template-columns: 1fr;
  }

  .rm-analysis-board {
    min-height: auto;
  }

  .rm-comp-table {
    font-size: var(--rm-text-xs);
  }

  .rm-score-number {
    font-size: 4rem;
  }

  .rm-cta {
    padding: 2rem 1.15rem;
  }

  /* Landing hero (T152.04). The source rule's .stage sub-override at this
     breakpoint (min-height/border/border-radius) duplicated its own base
     rule byte-for-byte — a no-op, confirmed by diff — and was not ported. */
  .rm-landing-topline {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .rm-landing-contact {
    justify-self: start;
    text-align: left;
  }

  .rm-landing-wordmark {
    font-size: clamp(3.2rem, 15.5vw, 6.8rem);
    letter-spacing: 0em;
    max-width: calc(100vw - 1rem);
    transform: scaleY(1.22);
    white-space: nowrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .rm-button:hover {
    transform: none;
  }

  /* Ported from styles.css's reduced-motion block by T152.03 — kept here
     rather than in base.css alongside its sibling !important reset, because
     this override is not !important and `components` (declared later in
     the @layer statement) would otherwise always beat a same-priority rule
     in `base` regardless of source order. See the note in base.css. */
  .reveal {
    opacity: 1;
    transform: none;
  }
}
}

/* ---- src/report.css ---- */
/* Report-specific layer. ADR-0054 SS2.2.
   Placeholder for now: report_user.html, decision_package.html, and
   worksheet_public.html keep their own template-local <style> blocks until
   the extraction phase (T152.03/T152.06 name this explicitly). This file
   exists so the @layer order is complete and consumers have a stable target
   to extract into later — it is not populated by this task. */
@layer report {
}

/* ---- src/overrides/bootstrap.css ---- */
/* Bootstrap CDN override surface. ADR-0054 SS3 keeps the Bootstrap CDN link
   in consuming templates; this layer is where a consumer's Bootstrap-default
   override rules live so they always lose to `components`/`report` in the
   cascade regardless of source order.

   Populated by T152.03 (D10) from reelmetric-script-web/static/css/styles.css
   lines 29-38 (the --bs-* variable block) and its Bootstrap component
   restyles (.btn-primary, .btn-secondary, .card, .form-control:focus, the
   .alert family). Every var(...) is rewritten from styles.css's own local
   token names onto the --rm-* vocabulary in tokens.css — see the mapping
   note there. No second token vocabulary is introduced. */
@layer overrides {

:root {
  --bs-body-bg: var(--rm-paper);
  --bs-body-color: var(--rm-charcoal);
  --bs-link-color: var(--rm-black);
  --bs-link-hover-color: var(--rm-charcoal-hover);
  --bs-border-color: var(--rm-light-gray);
  --bs-heading-color: var(--rm-charcoal);
  --bs-card-bg: var(--rm-cream);
  --bs-card-border-color: var(--rm-light-gray);
}

.btn-primary {
  background: var(--rm-black);
  border-color: var(--rm-black);
  color: #fff;
  border-radius: 6px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  transition: all 0.15s ease-out;
}
.btn-primary:hover {
  background: var(--rm-charcoal-hover);
  border-color: var(--rm-charcoal-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}
.btn-secondary {
  background: transparent;
  border-color: var(--rm-light-gray);
  color: var(--rm-charcoal);
  border-radius: 6px;
}
.btn-secondary:hover {
  border-color: var(--rm-black);
  color: var(--rm-black);
}

.card {
  background: var(--rm-cream);
  border: 1px solid var(--rm-light-gray);
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
  border-color: var(--rm-black);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.15);
}

/* Monochrome: severity is distinguished by border weight and a text label,
   not by color (user_surface_audit_2026-08-23.md SSDesign Direction). */
.alert {
  position: relative;
  border-radius: 8px;
  border: none;
  border-left: 3px solid var(--rm-light-gray);
  background: #f7f7f7;
  color: var(--rm-charcoal);
  padding-left: 1rem;
}
.alert::before {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b6b6b;
}
.alert-info::before {
  content: "Note";
}
.alert-success::before {
  content: "Done";
}
.alert-warning {
  border-left-color: #6b6b6b;
}
.alert-warning::before {
  content: "Warning";
}
.alert-danger,
.alert-error {
  border-left-width: 4px;
  border-left-color: #000000;
  background: #f0f0f0;
}
.alert-danger::before,
.alert-error::before {
  content: "Error";
  color: #000000;
}

}
