:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fafc;
  --navy: #0b1220;
  --navy-2: #131f35;
  --navy-3: #1e293b;
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --border: #e2e8f0;
  --teal: #0d9488;
  --teal-bright: #14b8a6;
  --teal-soft: #ccfbf1;
  --amber: #d97706;
  --amber-soft: #fef3c7;
  --rose: #e11d48;
  --rose-soft: #ffe4e6;
  --emerald: #059669;
  --emerald-soft: #d1fae5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--teal);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 18, 32, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
  flex-wrap: wrap;
  padding: 8px 0;
}

@media (min-width: 1200px) {
  .site-header .container.header-inner {
    max-width: 1400px;
    padding: 8px 18px;
    flex-wrap: nowrap;
  }
  .site-header .brand {
    gap: 8px;
    font-size: 1.04rem;
    flex-shrink: 0;
  }
  .site-header .brand-tag {
    display: none;
  }
  .site-header .nav-links {
    flex-wrap: nowrap;
    gap: 2px;
    min-width: 0;
  }
  .site-header .nav-links a {
    font-size: 0.8rem;
    padding: 5px 7px;
    white-space: nowrap;
  }
  .site-header .header-actions {
    flex-wrap: nowrap;
    gap: 6px;
    flex-shrink: 0;
  }
  .site-header .header-actions .btn {
    padding: 6px 10px;
    font-size: 0.78rem;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.brand-tag {
  font-size: 0.7rem;
  font-weight: 700;
  color: #5eead4;
  background: rgba(20, 184, 166, 0.14);
  border: 1px solid rgba(20, 184, 166, 0.32);
  padding: 2px 7px;
  border-radius: 999px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-links a {
  color: #cbd5e1;
  font-size: 0.84rem;
  font-weight: 600;
  padding: 6px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.nav-links a:hover, .nav-links a.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0d9488, #0f766e);
  color: #ffffff;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #14b8a6, #0d9488);
  text-decoration: none;
}

.btn-amber {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0b1220;
}

.btn-amber:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  text-decoration: none;
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border-color: rgba(148, 163, 184, 0.28);
  padding: 7px 12px;
  font-size: 0.82rem;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  text-decoration: none;
}

.btn-outline {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
  text-decoration: none;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.82rem;
}

/* Hero */
.hero {
  background: radial-gradient(circle at 18% 12%, rgba(20, 184, 166, 0.22), transparent 46%),
              radial-gradient(circle at 86% 24%, rgba(245, 158, 11, 0.14), transparent 44%),
              var(--navy);
  color: #f8fafc;
  padding: 46px 0 42px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #5eead4;
  background: rgba(20, 184, 166, 0.12);
  border: 1px solid rgba(20, 184, 166, 0.28);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3.3vw, 2.55rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  max-width: 880px;
}

.hero p.lead {
  margin: 0 0 24px;
  color: #cbd5e1;
  font-size: 1.02rem;
  max-width: 780px;
}

.search-box {
  display: flex;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--radius);
  padding: 8px;
  max-width: 820px;
}

.search-box input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 0.98rem;
  padding: 10px 12px;
  outline: none;
}

.search-box input::placeholder {
  color: #94a3b8;
}

.sample-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.sample-chips-label {
  font-size: 0.82rem;
  color: #94a3b8;
  font-weight: 600;
}

.chip {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.chip:hover, .chip.active {
  background: rgba(20, 184, 166, 0.24);
  border-color: #2dd4bf;
  color: #ffffff;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-size: 0.82rem;
  color: #94a3b8;
}

/* Main Sections */
.section {
  padding: 36px 0;
}

.section-tight {
  padding: 24px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

/* Cards & Grids */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  min-width: 0;
}

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

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

/* KPI Tiles */
.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  min-width: 0;
}

.kpi-label {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle);
}

.kpi-value {
  margin-top: 6px;
  font-size: 1.48rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.2;
}

.kpi-sub {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.badge-teal { background: var(--teal-soft); color: #0f766e; }
.badge-emerald { background: var(--emerald-soft); color: #047857; }
.badge-amber { background: var(--amber-soft); color: #b45309; }
.badge-rose { background: var(--rose-soft); color: #be123c; }
.badge-slate { background: #e2e8f0; color: #334155; }

/* Pain Matrix Bars */
.pain-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.pain-row:last-child {
  border-bottom: none;
}

.pain-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pain-title {
  font-weight: 700;
  font-size: 0.93rem;
}

.pain-track {
  margin-top: 7px;
  height: 9px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.pain-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0d9488, #f59e0b);
}

.pain-fill.sev-critical { background: linear-gradient(90deg, #e11d48, #f97316); }
.pain-fill.sev-high { background: linear-gradient(90deg, #f59e0b, #ea580c); }
.pain-fill.sev-medium { background: linear-gradient(90deg, #0d9488, #14b8a6); }

.pain-opp {
  margin-top: 6px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Tables (strict zero overflow) */
.table-wrap {
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th, td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle);
  background: var(--surface-alt);
}

.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Quotes & Signals */
.quote-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rose);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 10px;
}

.quote-text {
  margin: 0;
  font-size: 0.88rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.quote-meta {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.76rem;
  color: var(--subtle);
}

/* Monthly Spark Bars */
.trend-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 112px;
  padding: 10px 4px 4px;
  min-width: 0;
  overflow-x: auto;
}

.trend-col {
  flex: 1;
  min-width: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.trend-bar {
  width: 100%;
  max-width: 30px;
  border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, #14b8a6, #0f766e);
  min-height: 6px;
}

.trend-bar.warn {
  background: linear-gradient(180deg, #f59e0b, #e11d48);
}

.trend-lbl {
  font-size: 0.66rem;
  color: var(--subtle);
  white-space: nowrap;
}

/* Sample Benchmark Cards */
.sample-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.15s, transform 0.15s;
  min-width: 0;
}

.sample-card:hover {
  border-color: var(--teal);
  transform: translateY(-2px);
}

.sample-title {
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0;
}

.sample-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 0.82rem;
}

/* Pricing */
.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  min-width: 0;
}

.plan-card.featured {
  border: 2px solid var(--teal);
  box-shadow: 0 14px 36px rgba(13, 148, 136, 0.12);
}

.plan-price {
  font-size: 2rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan-price small {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--subtle);
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
  flex: 1;
}

.feature-list li::before {
  content: "✓";
  color: var(--teal);
  font-weight: 900;
  margin-right: 8px;
}

/* Calculator Inputs */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.92rem;
  color: var(--ink);
  background: #ffffff;
}

.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid rgba(20, 184, 166, 0.25);
  border-color: var(--teal);
}

/* Banners & Alerts */
.alert {
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.alert-info { background: #eff6ff; border: 1px solid #bfdbfe; color: #1e3a8a; }
.alert-warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.alert-error { background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 80;
}

.modal-backdrop.open {
  display: flex;
}

.modal-panel {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

.modal-close {
  border: none;
  background: #f1f5f9;
  color: #334155;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 36px 0;
  margin-top: 48px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1fr;
  gap: 24px;
}

.site-footer a {
  color: #cbd5e1;
  font-size: 0.88rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer-bottom {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* Ten-Site Upp3 Ecosystem Footer Strip */
.footer-ecosystem {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.eco-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.eco-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.eco-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.16);
  color: #e2e8f0 !important;
  font-size: 0.82rem !important;
  text-decoration: none;
  min-width: 0;
  transition: border-color 0.15s, background 0.15s;
}

.eco-chip:hover {
  border-color: rgba(20, 184, 166, 0.55);
  background: rgba(20, 184, 166, 0.1);
  text-decoration: none;
}

.eco-name {
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.eco-host {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #5eead4;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Wishlist Sales Estimator */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 12px;
}

.breadcrumb a {
  color: #cbd5e1;
}

.preset-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  min-width: 0;
}

.preset-btn:hover {
  border-color: var(--teal);
}

.preset-btn.active {
  border-color: var(--teal);
  background: #f0fdfa;
  box-shadow: 0 0 0 2px rgba(20, 184, 166, 0.18);
}

.preset-title {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--ink);
}

.preset-sub {
  font-size: 0.76rem;
  color: var(--muted);
}

.wl-model-note {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--muted);
}

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

.rev-compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rp-price-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.row-arbitrage-warn {
  background: #fffbeb !important;
}

.row-arbitrage-warn td {
  border-bottom-color: #fde68a;
}

.dp-input-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.row-seasonal-exempt {
  background: #f0fdfa !important;
}

.row-seasonal-exempt td {
  border-bottom-color: #99f6e4;
}

.row-tier-active {
  background: #ecfdf5 !important;
}

.row-tier-active td {
  border-bottom-color: #6ee7b7;
  font-weight: 700;
}

.nf-band-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.nf-progress-wrap {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.nf-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.nf-check-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  cursor: pointer;
  min-width: 0;
  transition: border-color 0.15s, background 0.15s;
}

.nf-check-card:hover {
  border-color: var(--teal);
}

.nf-check-card.is-urgent {
  border-color: #f59e0b;
  background: #fffbeb;
}

.nf-check-card.is-done {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.nf-check-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.nf-check-top input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  flex-shrink: 0;
}

.nf-stage-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--subtle);
}

.nf-check-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.nf-check-card.is-done .nf-check-title {
  text-decoration: line-through;
  color: var(--muted);
}

.nf-check-detail {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

/* Store Page 10-Point Conversion Checklist */
.sp-meter-box,
.sp-preview-120 {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.sp-signal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sp-first120-mark {
  background: #ccfbf1;
  color: #0f766e;
  border-bottom: 2px solid #14b8a6;
  padding: 1px 2px;
  border-radius: 3px;
}

.sp-over300-mark {
  background: #ffe4e6;
  color: #9f1239;
  text-decoration: underline wavy #e11d48;
  padding: 1px 2px;
  border-radius: 3px;
}

.sp-score-hero {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.sp-score-big {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
}

.sp-score-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.sp-items-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  transition: border-color 0.15s, background 0.15s;
}

.sp-item-row.state-ready {
  border-color: #a7f3d0;
  background: #ecfdf5;
}

.sp-item-row.state-partial {
  border-color: #fde68a;
  background: #fffbeb;
}

.sp-item-row.state-missing {
  border-color: #fecdd3;
  background: #fff1f2;
}

.sp-item-info {
  flex: 1;
  min-width: 0;
}

.sp-item-earned {
  font-size: 0.76rem;
  font-weight: 800;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}

.sp-item-title {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.35;
}

.sp-item-desc {
  font-size: 0.81rem;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.45;
}

.sp-tri-group {
  display: inline-flex;
  gap: 6px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.sp-tri-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}

.sp-tri-btn:hover {
  border-color: var(--teal);
  color: var(--ink);
}

.sp-tri-btn.active-0 {
  background: #e11d48;
  border-color: #e11d48;
  color: #ffffff;
}

.sp-tri-btn.active-1 {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.sp-tri-btn.active-2 {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
}

.sp-fix-item {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  background: var(--surface-alt);
}

.sp-fix-item.p0 {
  border-left-color: var(--rose);
  background: #fff1f2;
}

.scenario-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.scenario-card.scenario-base {
  background: #f0fdfa;
  border: 2px solid var(--teal);
}

.scenario-card.scenario-optimistic {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.scenario-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.scenario-conv {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}

.scenario-metric {
  min-width: 0;
}

.scenario-val {
  margin-top: 4px;
  font-size: 1.32rem;
  font-weight: 900;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.scenario-divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.28);
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.faq-item {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  min-width: 0;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 0.96rem;
  line-height: 1.35;
}

.faq-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Prose (Guides & Legal) */
.prose h2 {
  margin: 24px 0 8px;
  font-size: 1.18rem;
}

.prose p {
  margin: 0 0 12px;
  color: var(--muted);
}

/* Creator Key-Pitch Radar & Cold Pitch Builder */
.creator-filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.chip-light {
  background: var(--surface-alt);
  color: var(--ink);
  border: 1px solid var(--border);
}

.chip-light:hover, .chip-light.active {
  background: var(--teal-soft);
  color: #0f766e;
  border-color: var(--teal);
}

.creator-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.creator-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.pitch-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.pitch-pre {
  margin: 0;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  line-height: 1.5;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 280px;
  overflow-y: auto;
}

/* Responsive (375px safe, zero horizontal overflow) */
@media (max-width: 960px) {
  .grid-4, .creator-filter-grid, .dp-input-grid, .nf-band-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3, .eco-links, .preset-bar, .scenario-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-score-hero { grid-template-columns: 1fr; }
  .sp-item-row { flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { padding: 0 14px; }
  .grid-2, .grid-3, .grid-4, .form-grid, .creator-filter-grid, .dp-input-grid, .nf-band-grid, .nf-checklist-grid, .eco-links, .preset-bar, .scenario-grid, .rev-compare-grid, .faq-list, .sp-score-stats, .genre-kpi-strip { grid-template-columns: 1fr !important; }
  .sp-tri-group { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .sp-tri-btn { padding: 7px 4px; font-size: 0.72rem; text-align: center; }
  #cold-pitch-form .field { grid-column: auto !important; }
  .search-box { flex-direction: column; }
  .search-box .btn { width: 100%; }
  .header-inner { gap: 8px; }
  .nav-links { width: 100%; order: 3; padding-top: 4px; border-top: 1px solid rgba(148, 163, 184, 0.14); }
  .nav-links a { font-size: 0.82rem; padding: 5px 8px; }
  .hero { padding: 28px 0 28px; }
  .card { padding: 15px; }
  .plan-card { padding: 18px; }
}

/* Printable Sample Autopsy Report (/sample-report) */
.print-only-header {
  display: none;
}

.sr-action-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sr-svg-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sr-bar-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.sr-trigger-card {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 3px solid var(--rose);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.sr-quote {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  font-style: italic;
  line-height: 1.5;
}

.sr-guardrail {
  margin-top: auto;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  font-size: 0.82rem;
  color: #065f46;
  line-height: 1.45;
}

.sr-wedge-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #f0fdfa;
  border: 1px solid #99f6e4;
  border-left: 4px solid var(--teal);
}

.sr-mvp-col {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px;
  min-width: 0;
}

.sr-cut-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.sr-cut-list li::before {
  content: "✕";
  color: var(--rose);
  font-weight: 900;
  margin-right: 8px;
}

.sr-inline-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

@media print {
  @page {
    size: A4 portrait;
    margin: 12mm;
  }

  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  html, body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11px !important;
    line-height: 1.45 !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }

  .site-header,
  .site-footer,
  .modal-backdrop,
  .no-print {
    display: none !important;
  }

  .print-only-header {
    display: block !important;
  }

  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  .sr-hero {
    display: none !important;
  }

  .section {
    padding: 0 !important;
  }

  .card,
  .kpi-card,
  .sr-trigger-card,
  .sr-mvp-col,
  .sr-wedge-box,
  .sr-disclaimer-box {
    box-shadow: none !important;
    border-color: #cbd5e1 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .card {
    padding: 12px !important;
    margin-bottom: 12px !important;
  }

  .sr-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .sr-refund-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .sr-net-strip,
  .sr-mvp-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .kpi-value {
    font-size: 1.15rem !important;
  }

  .table-wrap,
  .sr-svg-wrap {
    overflow: visible !important;
  }

  table {
    font-size: 9.5px !important;
    table-layout: auto !important;
    width: 100% !important;
  }

  th, td {
    padding: 5px 6px !important;
    word-break: break-word !important;
    white-space: normal !important;
  }

  th.sr-nowrap,
  td.num {
    white-space: nowrap !important;
    word-break: keep-all !important;
  }

  .badge {
    white-space: nowrap !important;
  }

  tr {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .sr-bar-svg {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
  }
}

/* Genre Negative-Review Playbooks (/genres & /genres/<slug>) */
.genre-hub-grid-4 {
  gap: 14px;
}

.genre-hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
}

.genre-home-card {
  padding: 16px;
}

.genre-hub-title {
  margin: 10px 0 6px;
  font-size: 1.0rem;
  line-height: 1.35;
}

.genre-hub-desc {
  margin: 0 0 10px;
  font-size: 0.81rem;
  color: var(--muted);
  line-height: 1.5;
}

.genre-hub-actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: auto;
}

.genre-hub-actions .btn-sm {
  padding: 6px 10px;
  font-size: 0.78rem;
}

.genre-checklist-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.genre-check-item {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.45;
}

.genre-check-num {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.14);
  color: var(--teal);
  font-weight: 800;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

@media (max-width: 720px) {
  .genre-checklist-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.genre-mini-meta {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.genre-mini-meta small {
  display: block;
  font-size: 0.72rem;
  color: var(--subtle);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.genre-mini-meta strong {
  font-size: 0.84rem;
  color: var(--ink);
  line-height: 1.35;
}

.genre-mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: 6px;
}

.genre-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.genre-kpi-item {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.genre-kpi-item span {
  font-size: 0.74rem;
  color: #cbd5e1;
}

.genre-kpi-item strong {
  font-size: 0.96rem;
  color: #ffffff;
}

.genre-pain-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.genre-pain-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #ffffff;
}

.genre-pain-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.genre-share-pill {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}

.genre-bar-track {
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin-top: 9px;
}

.genre-bar-fill {
  height: 100%;
  border-radius: 999px;
}

.genre-bar-fill.is-crit {
  background: linear-gradient(90deg, #e11d48, #f43f5e);
}

.genre-bar-fill.is-high {
  background: linear-gradient(90deg, #d97706, #f59e0b);
}

.genre-bar-fill.is-med {
  background: linear-gradient(90deg, #0d9488, #14b8a6);
}

.genre-sub-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
}

.genre-sub-box.is-fix {
  background: #f0fdfa;
  border-color: #99f6e4;
}

.genre-opp-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 900px) {
  .genre-kpi-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Next Fest 90-Day Wishlist Benchmark Diagnostic */
.nfb-genre-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.nfb-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.nfb-quick-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.nfb-mini-pill {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: var(--muted);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}

.nfb-mini-pill:hover {
  border-color: var(--teal);
  color: var(--ink);
}

.nfb-mini-pill.active {
  background: #0d9488;
  border-color: #0d9488;
  color: #ffffff;
}

.nfb-svg-wrap {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 10px 8px;
  overflow: hidden;
}

.nfb-svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

.nfb-action-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 15px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.nfb-action-card.is-p0 {
  border-color: rgba(13, 148, 136, 0.45);
  background: #f0fdfa;
}

.nfb-action-card h3 {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.35;
  color: var(--ink);
}

.nfb-action-card p {
  margin: 0;
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.nfb-demo-disabled {
  opacity: 0.56;
}

@media (max-width: 900px) {
  .nfb-genre-grid,
  .nfb-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .nfb-genre-grid,
  .nfb-input-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Store Page 300-Char Short Description Checker & 12-Point Conversion Audit */
.spc-score-banner {
  display: grid;
  grid-template-columns: 124px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

.spc-gauge-col {
  display: flex;
  align-items: center;
  justify-content: center;
}

.spc-gauge-svg {
  display: block;
  width: 116px;
  height: 116px;
  flex-shrink: 0;
}

.spc-score-body {
  min-width: 0;
}

.spc-score-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
}

.spc-mini-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.spc-mini-kpi {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 7px 10px;
  min-width: 0;
}

.spc-mini-kpi span {
  display: block;
  font-size: 0.72rem;
  color: var(--subtle);
}

.spc-mini-kpi strong {
  display: block;
  margin-top: 2px;
  font-size: 0.9rem;
  color: var(--ink);
  word-break: break-word;
}

.spc-signals-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.spc-signal-group {
  min-width: 0;
}

.spc-signal-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.spc-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.spc-check-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 0.14s, background 0.14s, box-shadow 0.14s;
  min-width: 0;
}

.spc-check-card:hover {
  border-color: var(--teal);
}

.spc-check-card.is-checked {
  border-color: rgba(13, 148, 136, 0.55);
  background: #f0fdfa;
}

.spc-check-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.spc-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #0d9488;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.spc-owner-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  padding: 2px 8px;
  white-space: nowrap;
}

.spc-check-title {
  font-size: 0.94rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.spc-check-desc {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.48;
}

@media (max-width: 980px) {
  .spc-score-banner {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
  }

  .spc-score-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .spc-mini-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spc-signals-box,
  .spc-check-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pre-Buy Multi-Tool Comparison Decision Page */
.compare-objection-card {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%);
}

.compare-multi-table {
  min-width: 860px;
}

.compare-multi-table th,
.compare-multi-table td {
  vertical-align: top;
  font-size: 0.86rem;
  line-height: 1.55;
}

.workflow-step {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: var(--surface-alt);
}

.workflow-tip {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.58;
}

/* Steam 30-Day Discount Cooldown Planner */
.dc-event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.dc-event-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  text-align: left;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.dc-event-btn strong {
  font-size: 0.9rem;
  line-height: 1.3;
}

.dc-event-btn span {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.42;
}

.dc-event-btn.active {
  border-color: var(--teal);
  background: #f0fdfa;
  box-shadow: 0 0 0 2px rgba(13, 148, 136, 0.14);
}

.dc-input-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.dc-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.dc-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dc-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 3px;
}

.dc-svg-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 10px 8px 6px;
}

.dc-svg-wrap svg {
  display: block;
  min-width: 640px;
  height: auto;
}

.dc-check-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: #ffffff;
}

.dc-check-card.is-warn {
  border-color: #f59e0b;
  background: #fffbeb;
}

.dc-check-card.is-danger {
  border-color: #f43f5e;
  background: #fff1f2;
}

.dc-check-card.is-ok {
  border-color: #99f6e4;
  background: #f0fdfa;
}

@media (max-width: 900px) {
  .dc-event-grid,
  .dc-input-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Steam 30% Cut, Tax & Break-Even Units Calculator (/tools/steam-net-revenue-breakeven-calculator) */
.be-input-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}

.be-field-wide {
  grid-column: span 2;
}

.be-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border-top: 4px solid var(--teal);
}

.be-kpi-card.is-units {
  border-top-color: var(--amber);
}

.be-kpi-card.is-wl {
  border-top-color: var(--emerald);
}

.be-kpi-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

.be-kpi-val {
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  line-height: 1.15;
  color: var(--ink);
}

.be-kpi-sub {
  font-size: 0.8rem;
  color: var(--subtle);
}

.be-svg-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 12px 10px 8px;
}

.be-svg-wrap svg {
  display: block;
  min-width: 620px;
  height: auto;
}

.be-legend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.be-legend-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 11px;
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.be-legend-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.79rem;
  font-weight: 700;
  color: var(--ink);
}

.be-legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  margin-right: 6px;
  vertical-align: middle;
}

.be-legend-sub {
  font-size: 0.76rem;
  color: var(--muted);
}

.be-sens-card {
  border-left: 4px solid var(--rose);
}

.be-sens-box {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: var(--surface-alt);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.be-sens-box small {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.be-sens-box strong {
  font-size: 1.38rem;
  line-height: 1.2;
}

.be-sens-box span {
  font-size: 0.79rem;
  color: var(--subtle);
}

.be-sens-box.is-tip {
  background: #fff1f2;
  border-color: #fecdd3;
}

.be-md-preview {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #0f172a;
  color: #e2e8f0;
  font-size: 0.78rem;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 960px) {
  .be-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .be-field-wide {
    grid-column: span 2;
  }
  .be-legend-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .be-input-grid,
  .be-legend-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .be-field-wide {
    grid-column: span 1;
  }
}
