/* ============================================================
   DEC — Decision-to-Engagement Canvas
   styles.css
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Palette — warm studio */
  --bg:            #f5f2ea;
  --surface:       #fffdf8;
  --surface-b:     #ffffff;
  --ink:           #1d211c;
  --ink-2:         #3a3f38;
  --muted:         #5e655b;
  --line:          rgba(29, 33, 28, 0.09);
  --line-b:        rgba(29, 33, 28, 0.15);
  --accent:        #1f5b48;
  --accent-light:  #e5f0ec;
  --accent-mid:    rgba(31, 91, 72, 0.14);
  --shadow-card:   0 18px 50px rgba(32, 38, 28, 0.07), 0 2px 8px rgba(32, 38, 28, 0.04);
  --shadow-sm:     0 2px 8px rgba(32, 38, 28, 0.06);
  --radius:        24px;
  --radius-sm:     14px;
  --radius-xs:     8px;

  /* Step colors */
  --s1: #1f5b48;
  --s2: #6b45c4;
  --s3: #0f7ac3;
  --s4: #b65d10;
  --s5: #9c2020;

  /* Decision colors */
  --go:     #16a34a;
  --go-bg:  #f0fdf4;
  --hold:   #ca8a04;
  --hold-bg:#fefce8;
  --kill:   #dc2626;
  --kill-bg:#fef2f2;
  --change: #0891b2;
  --change-bg:#f0f9ff;
  --pivot:  #7c3aed;
  --pivot-bg:#f5f3ff;

  /* Typography */
  --font: "Manrope", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "JetBrains Mono", Consolas, monospace;
}

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(31,91,72,.07), transparent 28%),
    linear-gradient(180deg, #f7f4ed 0%, #f2eee4 100%);
  min-height: 100vh;
}

button, input, textarea, select { font: inherit; }
input, textarea, select { color: var(--ink); }
a { color: inherit; text-decoration: none; }

/* ── APP HEADER ─────────────────────────────────────────────── */
.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 248, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-b);
  box-shadow: 0 2px 16px rgba(32, 38, 28, 0.06);
}

.header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.brand-divider {
  color: var(--line-b);
  font-weight: 300;
}

.brand-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (max-width: 860px) { .brand-name { display: none; } }

/* Step nav */
.step-nav {
  display: flex;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid transparent;
  transition: all 140ms ease;
  white-space: nowrap;
}

.step-pill:hover { background: var(--accent-light); color: var(--accent); }
.step-pill.active { background: var(--accent); color: white; }

.step-pill .sn { font-size: 0.7rem; opacity: 0.7; }
.step-pill .sl { }

@media (max-width: 680px) { .step-pill .sl { display: none; } }

/* Header actions */
.header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-shrink: 0;
}

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line-b);
  border-radius: 999px;
  background: rgba(255,255,255,.72);
}

.lang-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 0.74rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 120ms ease;
}

.lang-btn.active {
  background: var(--accent);
  color: white;
}

.hbtn {
  appearance: none;
  border: 1px solid var(--line-b);
  background: transparent;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 120ms ease;
}

.hbtn:hover { background: var(--accent-light); border-color: var(--accent); color: var(--accent); }
.hbtn-danger { color: var(--kill); border-color: rgba(220,38,38,.25); }
.hbtn-danger:hover { background: var(--kill-bg); border-color: var(--kill); }

@media (max-width: 580px) { .hbtn { padding: 4px 9px; font-size: 0.7rem; } }

/* ── AI CONFIG PANEL ────────────────────────────────────────── */
.ai-config-panel {
  position: sticky;
  top: 64px;
  z-index: 90;
  background: var(--surface-b);
  border-bottom: 1px solid var(--line-b);
  box-shadow: 0 4px 20px rgba(32, 38, 28, 0.08);
}

.ai-config-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px 20px;
}

.ai-config-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ai-config-head h3 { margin: 0 0 2px; font-size: 0.95rem; }
.ai-config-sub { font-size: 0.78rem; color: var(--muted); margin: 0; }

.ai-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-settings-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(250,248,242,.9));
  box-shadow: 0 8px 24px rgba(32, 38, 28, 0.04);
}

.ai-settings-card-active {
  border-color: rgba(29, 33, 28, 0.09);
}

.ai-settings-card-reference {
  margin-top: 18px;
  padding: 18px 18px 22px;
  background: rgba(255,255,255,.96);
  border-color: rgba(29, 33, 28, 0.07);
}

.ai-settings-card-head {
  margin-bottom: 10px;
}

.ai-settings-card-head h4 {
  margin: 0 0 3px;
  font-size: 0.92rem;
}

.ai-panel-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 18px;
  align-items: end;
}

.ai-panel-row + .ai-panel-row {
  margin-top: 10px;
}

.ai-panel-row-main {
  align-items: start;
}

.ai-panel-row-compact {
  align-items: center;
}

.ai-panel-left {
  min-width: 0;
}

.ai-panel-left-inline {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}

.ai-panel-right {
  display: flex;
  justify-content: flex-end;
  align-items: end;
  min-width: 0;
}

.ai-panel-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.ai-panel-actions .btn-secondary {
  align-self: end;
}

.ai-panel-actions-compact {
  align-items: center;
}

.ai-panel-statuses {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.ai-panel-block-note {
  margin-top: 8px;
}

.field-wide {
  min-width: 0;
}

.field-tight label,
.field-compact label,
.field-action label,
.field-action-tight label {
  margin-bottom: 4px;
}

.field-compact {
  width: fit-content;
  min-width: 0;
}

.field-compact select {
  min-width: 150px;
  width: auto;
}

.field-action {
  width: fit-content;
}

.field-action-tight {
  width: fit-content;
}

.field-action .btn-secondary,
.field-action-tight .btn-secondary {
  width: auto;
  min-width: 0;
}

.ai-session-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ai-provider-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .ai-panel-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .ai-panel-right {
    justify-content: flex-start;
  }
}

.inline-pill-note {
  border: 1px dashed var(--line-b);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  background: rgba(255,255,255,.82);
}

.inline-pill-note-compact {
  padding: 8px 11px;
  white-space: nowrap;
}

.settings-methodology {
  margin-top: 22px;
}

.settings-methodology-head {
  margin-bottom: 14px;
}

.settings-methodology-head h4 {
  margin: 0 0 3px;
  font-size: 0.92rem;
}

.methodology-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

@media (max-width: 980px) {
  .methodology-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .methodology-cards {
    grid-template-columns: 1fr;
  }
}

.method-card {
  padding: 12px;
  border-radius: 16px;
  border: 1px solid var(--line-b);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,245,239,.9));
  min-height: 126px;
}

.method-card-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: white;
  font-size: 0.76rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.method-card-1 .method-card-step { background: var(--s1); }
.method-card-2 .method-card-step { background: var(--s2); }
.method-card-3 .method-card-step { background: var(--s3); }
.method-card-4 .method-card-step { background: var(--s4); }
.method-card-5 .method-card-step { background: var(--s5); }

.method-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.86rem;
}

.method-card p {
  margin: 0;
  font-size: 0.79rem;
  color: var(--muted);
  line-height: 1.5;
}

.ai-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.ai-status-row-inline {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.85);
}

.ai-status-row-soft {
  padding: 10px 12px;
  border: 1px solid rgba(29, 33, 28, 0.07);
  border-radius: 14px;
  background: rgba(247,244,237,.85);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line-b);
  flex-shrink: 0;
}

.status-dot.active { background: var(--go); box-shadow: 0 0 0 3px rgba(22,163,74,.15); }
.status-dot.error { background: var(--kill); }

.ai-model-meta {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  margin-top: 0;
}

.ai-model-selected {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ai-model-selected-label {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ai-model-selected strong {
  font-size: 0.85rem;
  text-align: right;
}

.ai-model-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.ai-model-meta-compact {
  justify-content: flex-end;
}

@media (max-width: 760px) {
  .ai-model-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .inline-pill-note-compact {
    white-space: normal;
  }
}

/* ── AI MODAL ───────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 24, 20, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-box {
  background: var(--surface-b);
  border-radius: var(--radius);
  box-shadow: 0 32px 80px rgba(20, 24, 20, 0.25);
  width: min(660px, 100%);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.modal-head h3 { margin: 0; font-size: 1rem; }

.modal-body {
  padding: 22px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ai-running-label {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  animation: pulse 1.2s ease infinite;
}

@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.ai-response {
  border: 1px solid var(--line-b);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.ai-response-head {
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--accent-light);
  border-bottom: 1px solid var(--line);
}

.ai-response-label { font-size: 0.8rem; font-weight: 700; color: var(--accent); }
.ai-response-btns { display: flex; gap: 6px; }

.ai-response-body {
  padding: 16px;
  font-size: 0.88rem;
  line-height: 1.65;
  white-space: pre-wrap;
  max-height: 320px;
  overflow-y: auto;
}

/* ── PAGE LAYOUT ────────────────────────────────────────────── */
.page-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 28px 80px;
}

.workspace {
  display: block;
  margin-top: 20px;
}

/* ── SCREEN SYSTEM ──────────────────────────────────────────── */
.screen-el {
  display: none;
}

.screen-el.screen-active {
  display: block;
}

/* hero uses flex internally so needs special treatment */
header.screen-el.screen-active {
  display: flex;
  flex-direction: column;
}

/* progress bar */
.screen-progress-bar {
  height: 4px;
  background: var(--line-b);
  border-radius: 2px;
  margin: 16px 0 0;
  overflow: hidden;
}

.spb-inner {
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  transition: width 280ms ease;
}

/* screen nav footer — injected by JS */
.screen-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  gap: 14px;
}

.section-validation {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(220,38,38,.18);
  background: var(--kill-bg);
  color: #8a1f1f;
  font-size: 0.84rem;
}

.section-validation strong {
  display: block;
  margin-bottom: 4px;
}

.section-validation ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.screen-nav-left  { display: flex; gap: 10px; align-items: center; }
.screen-nav-right { display: flex; gap: 10px; align-items: center; }

.screen-counter,
.screen-indicator {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  flex: 1;
  text-align: center;
}

.btn-screen-next {
  appearance: none;
  border: none;
  background: var(--accent);
  color: white;
  border-radius: 999px;
  padding: 11px 26px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 120ms ease;
}

.btn-screen-next:hover { background: #174d3c; transform: translateY(-1px); }
.btn-screen-next:disabled { background: var(--muted); cursor: default; transform: none; }

.btn-screen-prev {
  appearance: none;
  border: 1px solid var(--line-b);
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
}

.btn-screen-prev:hover { border-color: var(--accent); color: var(--accent); }

.btn-screen-skip {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 0.78rem;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 100ms ease;
  text-decoration: underline;
  text-decoration-color: transparent;
}

.btn-screen-skip:hover { color: var(--ink); text-decoration-color: var(--muted); }

/* screen-enter / screen-exit animation */
@keyframes screenIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.screen-el.screen-active {
  animation: screenIn 220ms ease forwards;
}

/* hero screen: start CTA */
.hero-start-btn {
  margin-top: 24px;
}

/* Summary screen layout */
.summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .summary-grid { grid-template-columns: 1fr; }
}

.summary-card {
  background: var(--surface-b);
  border: 1px solid var(--line-b);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}

.summary-card-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.summary-card p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.6;
  color: var(--ink-2);
}

.summary-decision-banner {
  text-align: center;
  padding: 22px 28px;
  border-radius: var(--radius-sm);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 22px;
  border: 2px solid currentColor;
}

.summary-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

/* skip-link validation warning */
.nav-warning {
  font-size: 0.78rem;
  color: var(--kill);
  font-weight: 600;
  text-align: center;
  flex: 1;
  display: none;
}

.nav-warning.visible { display: block; }

/* ── CARD ───────────────────────────────────────────────────── */
.card {
  background: rgba(255, 253, 248, 0.93);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* ── HERO ───────────────────────────────────────────────────── */
.hero {
  padding: 36px 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1 {
  margin: 10px 0 14px;
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.08;
  max-width: 16ch;
  letter-spacing: -0.03em;
}

.hero-copy { color: var(--muted); margin: 0 0 18px; max-width: 42ch; }

.decision-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.chip {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  border: 1.5px solid currentColor;
}

.chip-go     { color: var(--go);     background: var(--go-bg); }
.chip-hold   { color: var(--hold);   background: var(--hold-bg); }
.chip-kill   { color: var(--kill);   background: var(--kill-bg); }
.chip-change { color: var(--change); background: var(--change-bg); }
.chip-pivot  { color: var(--pivot);  background: var(--pivot-bg); }

.hero-session-meta {
  margin-top: 14px;
  font-size: 0.75rem;
  color: var(--muted);
}

/* Framework panel (right) */
.framework-panel {
  background: var(--surface-b);
  border: 1px solid var(--line-b);
  border-radius: var(--radius-sm);
  padding: 22px;
}

.hero-focus-grid {
  display: grid;
  gap: 10px;
}

.hero-focus-card {
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(229,240,236,.6));
}

.hero-focus-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.87rem;
}

.hero-focus-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted);
}

.hero-framework-note {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.fw-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

.fw-list {
  padding-left: 20px;
  margin: 0 0 18px;
  display: grid;
  gap: 10px;
}

.fw-list li { font-size: 0.86rem; line-height: 1.45; }
.fw-list li strong { display: block; font-size: 0.88rem; color: var(--ink); }

/* Methodology table */
.methodology-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 0.81rem;
  line-height: 1.4;
}
.methodology-table th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 10px 8px;
  border-bottom: 1px solid var(--line-b);
}
.methodology-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line-b);
  vertical-align: top;
  color: var(--ink);
}
.methodology-table tbody tr:last-child td { border-bottom: none; }
.methodology-table tbody tr:hover td { background: rgba(31,91,72,.04); }
.mt-step { width: 36px; text-align: center; }
.mt-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  color: white;
}
.mt-badge.badge-1 { background: var(--step-1, #2d7a5b); }
.mt-badge.badge-2 { background: var(--step-2, #4e6db5); }
.mt-badge.badge-3 { background: var(--step-3, #9b6db5); }
.mt-badge.badge-4 { background: var(--step-4, #d4882a); }
.mt-badge.badge-5 { background: var(--step-5, #c94040); }

.principles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.principle {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--accent-mid);
  color: var(--accent);
  border: 1px solid rgba(31,91,72,.2);
}

/* ── SECTION ────────────────────────────────────────────────── */
.section { padding: 30px 34px; }

.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.step-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 800;
  color: white;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.badge-1 { background: var(--s1); }
.badge-2 { background: var(--s2); }
.badge-3 { background: var(--s3); }
.badge-4 { background: var(--s4); }
.badge-5 { background: var(--s5); }

.step-label {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.section h2 {
  margin: 0 0 8px;
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.section-copy {
  color: var(--muted);
  margin: 0 0 22px;
  max-width: 64ch;
}

/* ── METHODOLOGY CALLOUT ────────────────────────────────────── */
.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  font-size: 0.88rem;
}

.callout-warn {
  background: #fefce8;
  border: 1px solid #fde047;
  color: #713f12;
}

.callout-danger {
  background: var(--kill-bg);
  border: 1px solid #fca5a5;
  color: #7f1d1d;
}

.callout-icon { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.callout-text { color: inherit; opacity: 0.8; }

/* ── METHOD BOX ─────────────────────────────────────────────── */
.method {
  background: var(--surface-b);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-bottom: 20px;
}

.method h3 { margin: 0 0 8px; font-size: 0.88rem; font-weight: 700; color: var(--accent); }
.method p  { margin: 0 0 10px; }

.guidance-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 5px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ── FORM FIELDS ────────────────────────────────────────────── */
.field-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.two-col   { grid-template-columns: repeat(2, 1fr); }
.three-col { grid-template-columns: repeat(3, 1fr); }

@media (max-width: 680px) {
  .two-col, .three-col { grid-template-columns: 1fr; }
}

.field {
  display: grid;
  gap: 6px;
}

.field > span,
.field-label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink-2);
  display: block;
}

.field-label-sub {
  font-style: normal;
  font-weight: 500;
  color: var(--muted);
  margin-left: 3px;
}

.field-hint {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 2px;
}

input[type="text"],
input[type="password"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line-b);
  border-radius: var(--radius-sm);
  color: var(--ink);
  outline: none;
  transition: border-color 130ms ease, box-shadow 130ms ease;
  -webkit-appearance: none;
}

textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(31, 91, 72, 0.4);
  box-shadow: 0 0 0 3px rgba(31, 91, 72, 0.1);
}

.field-invalid,
.decision-btns.field-invalid {
  border-color: rgba(220,38,38,.45) !important;
  box-shadow: 0 0 0 3px rgba(220,38,38,.1) !important;
}

input::placeholder,
textarea::placeholder {
  color: rgba(94, 101, 91, 0.5);
}

/* Score selector */
.score-selector {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}

.score-btn {
  appearance: none;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-xs);
  border: 1.5px solid var(--line-b);
  background: rgba(255,255,255,.8);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  transition: all 120ms ease;
}

.score-btn:hover { border-color: var(--accent); color: var(--accent); }
.score-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

/* Radio group */
.radio-group { display: grid; gap: 8px; margin-top: 2px; }

.radio-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.7);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 500;
  transition: all 120ms ease;
}

.radio-item:hover { border-color: var(--accent); background: var(--accent-light); }
.radio-item input { width: 15px; height: 15px; flex-shrink: 0; accent-color: var(--accent); }

/* ── CHECKLIST ──────────────────────────────────────────────── */
.checklist-group {
  border: 1px solid var(--line-b);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 18px;
}

.checklist-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--surface-b);
  border-bottom: 1px solid var(--line);
}

.checklist-title {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--ink-2);
}

.checklist-score {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  background: var(--accent-mid);
  padding: 3px 9px;
  border-radius: 999px;
}

.checklist-hint {
  margin: 0;
  padding: 8px 18px;
  font-size: 0.76rem;
  color: var(--muted);
  background: rgba(202,138,4,.06);
  border-bottom: 1px solid var(--line);
  font-style: italic;
}

/* check-wrap wraps the label + evidence block together */
.check-wrap {
  border-bottom: 1px solid var(--line);
}
.check-wrap:last-child { border-bottom: none; }

.check-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  cursor: pointer;
  transition: background 100ms ease;
}

.check-item:hover { background: rgba(31,91,72,.03); }
.check-item input[type="checkbox"] { margin-top: 2px; width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--accent); }
.check-item.check-active { background: rgba(31,91,72,.045); }
.check-item.check-valid { border-left: 3px solid rgba(22,163,74,.55); }
.check-item.check-invalid { border-left: 3px solid rgba(220,38,38,.55); background: rgba(254,242,242,.8); }

.check-body { display: grid; gap: 2px; flex: 1; }
.check-label { font-size: 0.88rem; font-weight: 600; }
.check-desc  { font-size: 0.78rem; color: var(--muted); }

/* credibility badge on the right of each check-item */
.check-badge {
  flex-shrink: 0;
  align-self: center;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.check-badge.cred-high   { background: var(--go-bg);   color: var(--go);   border: 1px solid rgba(22,163,74,.3); }
.check-badge.cred-medium { background: var(--hold-bg);  color: var(--hold); border: 1px solid rgba(202,138,4,.3); }
.check-badge.cred-low    { background: var(--kill-bg);  color: var(--kill); border: 1px solid rgba(220,38,38,.3); }

/* evidence block — shown after checkbox is ticked */
.check-evidence {
  padding: 0 18px 14px 49px;   /* indent to align with check-body */
  background: rgba(248,250,249,.7);
  border-top: 1px dashed var(--line-b);
}

.ev-textarea {
  width: 100%;
  min-height: 72px;
  margin-top: 10px;
  padding: 10px 12px;
  font-size: 0.84rem;
  line-height: 1.55;
  background: white;
  border: 1px solid var(--line-b);
  border-radius: var(--radius-xs);
  resize: vertical;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}
.ev-textarea:focus {
  border-color: rgba(31,91,72,.4);
  box-shadow: 0 0 0 3px rgba(31,91,72,.09);
  outline: none;
}
.ev-textarea.ev-missing {
  border-color: var(--kill);
  background: var(--kill-bg);
}

.ev-footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.btn-ev-validate {
  appearance: none;
  border: 1px solid rgba(31,91,72,.35);
  background: var(--accent-light);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: all 120ms ease;
  white-space: nowrap;
}
.btn-ev-validate:hover  { background: var(--accent); color: white; }
.btn-ev-validate:disabled { opacity: .5; cursor: default; }

/* credibility result block */
.ev-credibility {
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.5;
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--line);
  background: white;
}
.ev-credibility .ev-score { font-size: 1rem; font-weight: 800; margin-right: 6px; }
.ev-credibility .ev-verdict { font-weight: 700; }
.ev-credibility .ev-reasoning { color: var(--muted); margin-top: 3px; font-size: 0.77rem; }
.ev-credibility.cred-high   { border-color: rgba(22,163,74,.3);  background: var(--go-bg); }
.ev-credibility.cred-medium { border-color: rgba(202,138,4,.3);  background: var(--hold-bg); }
.ev-credibility.cred-low    { border-color: rgba(220,38,38,.3);  background: var(--kill-bg); }

/* ── UPLOAD ZONE ────────────────────────────────────────────── */
.upload-zone-wrap { margin-bottom: 16px; }

.upload-zone {
  border: 2px dashed var(--line-b);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,.6);
  transition: all 140ms ease;
  cursor: pointer;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: var(--accent-light);
}

.upload-inner {
  padding: 28px 20px;
  text-align: center;
}

.upload-icon { font-size: 2rem; color: var(--muted); line-height: 1; margin-bottom: 8px; }
.upload-label { font-size: 0.88rem; color: var(--muted); margin: 0 0 12px; }

.upload-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.btn-upload {
  appearance: none;
  border: 1px solid var(--line-b);
  background: white;
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 120ms ease;
}

.btn-upload:hover { border-color: var(--accent); background: var(--accent-light); color: var(--accent); }

.upload-hint { font-size: 0.74rem; color: var(--muted); display: block; }

.uploaded-list {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.uploaded-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 10px 16px;
  background: var(--surface-b);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  font-weight: 700;
}

.uploaded-list-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.uploaded-count {
  font-weight: 500;
  color: var(--muted);
}

.uploaded-item {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.uploaded-item:last-child { border-bottom: none; }
.uploaded-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.uploaded-item strong { display: block; }
.uploaded-item span { color: var(--muted); }

.uploaded-remove-btn {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  font-size: 0.78rem;
  padding: 0;
  white-space: nowrap;
}

.uploaded-status {
  display: inline-flex;
  margin-top: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
}

.uploaded-status.is-ready {
  color: var(--accent);
  border-color: rgba(31,91,72,.22);
  background: var(--accent-light);
}

.uploaded-status.is-muted {
  color: var(--muted);
}

.uploaded-preview {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

/* ── AI ROW & CHIPS ─────────────────────────────────────────── */
.ai-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.ai-row-label {
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.ai-chip {
  appearance: none;
  border: 1px solid rgba(31, 91, 72, 0.3);
  background: var(--accent-light);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: all 120ms ease;
}

.ai-chip:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* ── SYNTHESIS BLOCK ────────────────────────────────────────── */
.synthesis-block {
  background: linear-gradient(160deg, rgba(229,240,236,.85), rgba(255,255,255,.7));
  border: 1px solid rgba(31, 91, 72, 0.18);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-top: 8px;
}

.synthesis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(31,91,72,.12);
}

.synthesis-label {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.ai-btn {
  appearance: none;
  border: 1px solid rgba(31,91,72,.3);
  background: white;
  border-radius: 999px;
  padding: 4px 11px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  transition: all 120ms ease;
}

.ai-btn:hover { background: var(--accent); color: white; }

.synthesis-body {
  padding: 14px 16px;
  font-size: 0.87rem;
  line-height: 1.65;
}

.synthesis-body strong { display: block; margin-bottom: 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.synthesis-body p { margin: 0; color: var(--ink-2); }

.synthesis-empty { color: var(--muted); font-style: italic; font-size: 0.83rem; }

/* Decision synthesis has darker treatment */
.decision-synthesis {
  background: linear-gradient(160deg, rgba(20,56,44,.06), rgba(20,56,44,.03));
  border-color: rgba(31,91,72,.28);
}

/* ── COMMERCIAL ENGINE PANEL ────────────────────────────────── */
.engine-panel {
  background: var(--surface-b);
  border: 1.5px solid var(--line-b);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 22px;
}

.engine-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.9);
}

.engine-head h3 { margin: 0 0 2px; font-size: 0.95rem; }
.engine-badge { font-size: 0.72rem; font-weight: 700; color: var(--muted); background: rgba(29,33,28,.06); padding: 3px 9px; border-radius: 999px; }

.engine-result-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  background: rgba(29,33,28,.07);
  color: var(--muted);
  border: 1px solid var(--line);
  text-transform: uppercase;
  transition: all 200ms ease;
}

.engine-result-badge.model-active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.engine-rationale {
  padding: 14px 20px;
  font-size: 0.86rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.engine-conditions {
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (max-width: 600px) { .engine-conditions { grid-template-columns: 1fr; } }

.condition-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.condition-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.condition-dot.met     { background: var(--go); }
.condition-dot.unmet   { background: var(--kill); }
.condition-dot.partial { background: var(--hold); }

.condition-text.met   { color: var(--ink); }
.condition-text.unmet { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(220,38,38,.4); }

/* ── SUCCESS FEE GATE ───────────────────────────────────────── */
.gate-panel {
  background: #fffdf8;
  border: 1.5px solid var(--line-b);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 22px;
}

.gate-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}

.gate-head h3 { margin: 0; font-size: 0.93rem; }

.gate-verdict {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.gate-verdict.eligible   { background: var(--go-bg); color: var(--go); border: 1px solid rgba(22,163,74,.3); }
.gate-verdict.ineligible { background: var(--kill-bg); color: var(--kill); border: 1px solid rgba(220,38,38,.3); }
.gate-verdict.partial    { background: var(--hold-bg); color: var(--hold); border: 1px solid rgba(202,138,4,.3); }

.gate-grid {
  padding: 14px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (max-width: 600px) { .gate-grid { grid-template-columns: 1fr; } }

.gate-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.gate-icon { font-size: 0.9rem; flex-shrink: 0; width: 18px; text-align: center; }
.gate-icon.pass { color: var(--go); }
.gate-icon.fail { color: var(--kill); }

.gate-text.fail { color: var(--muted); }

/* ── DECISION SELECTOR ──────────────────────────────────────── */
.decision-selector { margin-bottom: 22px; }

.decision-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.dbtn {
  appearance: none;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 2px solid transparent;
  background: rgba(255,255,255,.8);
  border-color: var(--line-b);
  transition: all 140ms ease;
  min-width: 110px;
  text-align: center;
  align-items: center;
}

.dbtn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.dbtn-label { font-size: 0.88rem; font-weight: 800; letter-spacing: 0.05em; }
.dbtn-sub   { font-size: 0.72rem; font-weight: 500; color: var(--muted); }

.dbtn-go:hover,     .dbtn-go.selected     { background: var(--go-bg);     border-color: var(--go);     color: var(--go); }
.dbtn-hold:hover,   .dbtn-hold.selected   { background: var(--hold-bg);   border-color: var(--hold);   color: var(--hold); }
.dbtn-kill:hover,   .dbtn-kill.selected   { background: var(--kill-bg);   border-color: var(--kill);   color: var(--kill); }
.dbtn-change:hover, .dbtn-change.selected { background: var(--change-bg); border-color: var(--change); color: var(--change); }
.dbtn-pivot:hover,  .dbtn-pivot.selected  { background: var(--pivot-bg);  border-color: var(--pivot);  color: var(--pivot); }

.decision-selected {
  margin-top: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 2px solid currentColor;
}

/* ── BUTTONS ────────────────────────────────────────────────── */
.btn-primary,
.btn-secondary {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 120ms ease;
}

.btn-primary {
  background: var(--accent);
  color: white;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: #174d3c;
  transform: translateY(-1px);
}

.btn-secondary {
  background: rgba(255,255,255,.85);
  color: var(--ink);
  border: 1px solid var(--line-b);
}

.btn-secondary:hover {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost-sm {
  appearance: none;
  border: 1px solid var(--line-b);
  background: transparent;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
  transition: all 100ms ease;
}

.btn-ghost-sm:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

.file-btn-label {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.icon-btn {
  appearance: none;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: color 100ms ease;
}

.icon-btn:hover { color: var(--ink); }

/* ── ARTIFACTS ──────────────────────────────────────────────── */
.artifacts-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  align-items: center;
}

.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

@media (max-width: 860px) { .artifact-grid { grid-template-columns: 1fr; } }

.artifact-card {
  background: var(--surface-b);
  border: 1px solid var(--line-b);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.artifact-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.95);
}

.artifact-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: white;
  background: var(--accent);
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.artifact-head h3 { margin: 0; font-size: 0.9rem; }

.artifact-body {
  padding: 16px 18px;
  font-size: 0.84rem;
  line-height: 1.65;
}

.artifact-body p  { margin: 0 0 8px; }
.artifact-body p:last-child { margin-bottom: 0; }
.artifact-body strong { color: var(--ink); }
.artifact-body ul { margin: 6px 0; padding-left: 18px; }
.artifact-body li + li { margin-top: 4px; }
.artifact-body .a-section { margin-top: 12px; }
.artifact-body .a-section:first-child { margin-top: 0; }
.artifact-body .a-title { font-size: 0.72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 4px; }

.artifact-empty { color: var(--muted); font-style: italic; font-size: 0.83rem; }

/* Decision badge in artifact */
.artifact-decision-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

/* ── APP FOOTER ─────────────────────────────────────────────── */
.app-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.74rem;
  color: var(--muted);
}

.footer-session { font-variant-numeric: tabular-nums; }

/* ── UTILITIES ──────────────────────────────────────────────── */
.hidden { display: none !important; }
.muted { color: var(--muted); }

/* ── PRINT ──────────────────────────────────────────────────── */
@media print {
  .no-print,
  .app-header,
  .app-footer,
  .ai-config-panel,
  .step-nav,
  .header-actions,
  .ai-row,
  .ai-btn,
  .btn-primary,
  .btn-secondary,
  .btn-upload,
  .artifacts-toolbar,
  .upload-zone,
  .callout,
  .method,
  #hero,
  #step-1, #source-materials, #step-2, #step-3,
  #readiness-check, #trust-fit, #step-4, #delivery-commercial, #step-5,
  .engine-panel, .gate-panel, .decision-selector {
    display: none !important;
  }

  body { background: white; }

  .page-shell {
    max-width: 100%;
    padding: 0;
  }

  .workspace { gap: 0; margin: 0; }

  .card, .artifact-card {
    box-shadow: none;
    border: 1px solid #ddd;
    border-radius: 0;
    page-break-inside: avoid;
  }

  .artifact-grid { grid-template-columns: 1fr; gap: 16px; }

  .print-surface .section-copy,
  .print-surface .section-kicker { display: none; }
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 860px) {
  .section { padding: 22px 20px; }
  .hero { padding: 24px; }
  .header-inner { padding: 0 16px; gap: 12px; }
}

@media (max-width: 500px) {
  .decision-btns { gap: 6px; }
  .dbtn { min-width: 90px; padding: 10px 12px; }
  .dbtn-label { font-size: 0.78rem; }
}
