/* ============================================================================
 * RUNTEC Trial — Story Studio
 * Notion 風デザイントークン (warm minimalism + パステル + 紫 CTA + ネイビー hero)
 * ============================================================================ */

/* --------------------------------------------------------------------------
 * Tokens
 * -------------------------------------------------------------------------- */
:root {
  /* Surface — オレンジを微かに感じる温かいオフホワイト */
  --canvas: #fdf9f3;
  --canvas-soft: #f9f3e9;
  --canvas-card: #f5ecdd;
  --canvas-strong: #efe2cc;
  --hairline: #ece1cd;
  --hairline-soft: #f1e8d6;
  --hairline-strong: #d9c8a8;
  --surface-dark: #3a2f24;        /* warm brown ink — オレンジ系と相性 */
  --surface-dark-elevated: #4e4131;
  --surface-dark-soft: #2c2319;
  /* Brand — 淡いアプリコット/オレンジ系 */
  --coral: #e4a07b;               /* primary — soft apricot orange */
  --coral-active: #c97f57;        /* hover/active — 一段濃い */
  --coral-soft: #fce8d4;
  --coral-ring: rgba(228, 160, 123, 0.25);
  --accent-teal: #b2c9a1;         /* dusty sage — オレンジに合う補色 */
  --accent-amber: #f3d394;        /* soft butter */
  --accent-orange: #e89876;
  --accent-pink: #f5c4b0;
  /* Pastel card tints — すべて暖色寄り (オレンジ族で揃える) */
  --tint-peach:    #fde6d2;       /* 淡いピーチ */
  --tint-apricot:  #fbdcc1;       /* 淡いアプリコット */
  --tint-cream:    #f9eccf;       /* 淡いクリーム */
  --tint-sand:     #f3e6cf;       /* 淡いサンド */
  --tint-butter:   #fbeec4;       /* 淡いバター */
  --tint-blush:    #fadfd0;       /* 淡い紅 */
  --tint-rose:     #f7d8ce;       /* 旧 rose を暖色化 */
  --tint-mint:     #e6e5d4;       /* sage 寄りに変更 */
  --tint-lavender: #f1e0d2;       /* もはや lavender ではない暖色 */
  --tint-sky:      #f8e9d4;       /* 旧 sky を暖色化 */
  --tint-yellow:   #fef5d8;
  --tint-yellow-bold: #f9e1a6;    /* sticky-note 風 */
  --tint-gray:     #f1ebe1;
  /* Text — 温かい墨色 (warm ink) */
  --ink: #3a2f25;
  --body-strong: #5a4a3a;
  --body: #7d6b58;
  --muted: #a08a72;
  --muted-soft: #bda993;
  --on-primary: #ffffff;
  --on-dark: #fdf9f3;
  --on-dark-soft: #c4b39d;
  /* Semantic — 暖色トーンに合わせて柔らかく */
  --success: #94b888;
  --warning: #e0a36b;
  --error: #d8836a;
  --error-soft: #fbe1d6;
  /* Shape */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-xxl: 20px;
  --r-pill: 9999px;
  /* Spacing */
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --section-y: 96px;
  --card-pad: 32px;
  /* Type — Notion-Sans (Inter ベース) を全面利用。読み物部分のみ serif (Georgia) */
  --serif: Georgia, "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, Helvetica, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

/* --------------------------------------------------------------------------
 * Reset & base
 * -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body { min-height: 100vh; display: flex; flex-direction: column; }

main.rt-main { flex: 1 0 auto; }

a { color: var(--coral); text-decoration: none; }
a:hover { color: var(--coral-active); text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--sans);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 var(--space-md);
}

h1 { font-size: 56px; line-height: 1.10; letter-spacing: -1px; }
h2 { font-size: 40px; line-height: 1.15; letter-spacing: -0.5px; }
h3 { font-size: 28px; line-height: 1.25; letter-spacing: -0.3px; }
h4 { font-size: 22px; line-height: 1.3; letter-spacing: -0.2px; }

p { margin: 0 0 var(--space-md); }

hr { border: 0; border-top: 1px solid var(--hairline); margin: var(--space-lg) 0; }

code, pre, .rt-mono { font-family: var(--mono); }

/* --------------------------------------------------------------------------
 * Layout
 * -------------------------------------------------------------------------- */
.rt-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.rt-section { padding: var(--section-y) 0; }
.rt-section--soft { background: var(--canvas-soft); }
.rt-section--dark { background: var(--surface-dark); color: var(--on-dark); }
.rt-section--dark h1,
.rt-section--dark h2,
.rt-section--dark h3,
.rt-section--dark h4 { color: var(--on-dark); }

.rt-eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 var(--space-md);
}

.rt-lead {
  font-size: 18px;
  color: var(--body-strong);
  line-height: 1.6;
}

.rt-grid { display: grid; gap: var(--space-lg); }
.rt-grid--2 { grid-template-columns: repeat(2, 1fr); }
.rt-grid--3 { grid-template-columns: repeat(3, 1fr); }
.rt-grid--4 { grid-template-columns: repeat(4, 1fr); }
.rt-grid--6-6 { grid-template-columns: 1fr 1fr; align-items: center; }

@media (max-width: 1024px) {
  .rt-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .rt-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .rt-grid--2,
  .rt-grid--3,
  .rt-grid--4,
  .rt-grid--6-6 { grid-template-columns: 1fr; }
  h1 { font-size: 38px; letter-spacing: -0.7px; }
  h2 { font-size: 30px; }
  .rt-section { padding: 64px 0; }
}

/* --------------------------------------------------------------------------
 * Topbar
 * -------------------------------------------------------------------------- */
.rt-topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.rt-topbar__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.rt-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.3px;
  text-decoration: none;
}

.rt-brand:hover { color: var(--ink); text-decoration: none; }

.rt-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  color: var(--coral);
}

.rt-brand__suffix {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 4px;
}

.rt-nav { display: flex; gap: 6px; align-items: center; }

.rt-nav-link {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  color: var(--body);
  padding: 8px 12px;
  border-radius: var(--r-md);
  text-decoration: none;
}

.rt-nav-link:hover { background: var(--canvas-card); color: var(--ink); text-decoration: none; }
.rt-nav-link.active { background: var(--canvas-card); color: var(--ink); }

.rt-topbar__right { display: flex; gap: 12px; align-items: center; }

@media (max-width: 768px) {
  .rt-nav { display: none; }
  .rt-brand__suffix { display: none; }
}

/* --------------------------------------------------------------------------
 * Buttons
 * -------------------------------------------------------------------------- */
.rt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  padding: 12px 20px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.rt-btn--primary {
  background: var(--coral);
  color: var(--on-primary);
}
.rt-btn--primary:hover { background: var(--coral-active); color: var(--on-primary); text-decoration: none; }
.rt-btn--primary:active { background: var(--coral-active); }
.rt-btn--primary[disabled],
.rt-btn--primary.is-disabled { background: var(--coral-soft); color: rgba(255,255,255,0.7); cursor: not-allowed; }

.rt-btn--secondary {
  background: var(--canvas);
  color: var(--ink);
  border-color: var(--hairline);
}
.rt-btn--secondary:hover { background: var(--canvas-soft); color: var(--ink); text-decoration: none; }

.rt-btn--on-dark {
  background: var(--surface-dark-elevated);
  color: var(--on-dark);
  border-color: transparent;
}
.rt-btn--on-dark:hover { background: #2f2c28; color: var(--on-dark); text-decoration: none; }

.rt-btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: transparent;
}
.rt-btn--ghost:hover { background: var(--canvas-card); color: var(--ink); text-decoration: none; }

.rt-btn--coral-on-light {
  background: var(--canvas);
  color: var(--ink);
  border-color: transparent;
}
.rt-btn--coral-on-light:hover { background: var(--canvas-soft); color: var(--ink); text-decoration: none; }

.rt-btn--lg { padding: 14px 24px; font-size: 15px; }
.rt-btn--sm { padding: 8px 14px; font-size: 13px; }
.rt-btn--block { width: 100%; }

.rt-text-link {
  color: var(--coral);
  font-weight: 500;
  text-decoration: none;
}
.rt-text-link:hover { text-decoration: underline; color: var(--coral-active); }

/* --------------------------------------------------------------------------
 * Inputs
 * -------------------------------------------------------------------------- */
.rt-form-group { margin-bottom: var(--space-lg); }
.rt-label {
  display: block;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--body-strong);
  margin-bottom: 6px;
}

.rt-input, .rt-textarea, .rt-select {
  width: 100%;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 10px 14px;
  outline: none;
  transition: border-color 120ms ease, box-shadow 120ms ease;
}

.rt-input:focus, .rt-textarea:focus, .rt-select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-ring);
}

.rt-textarea { min-height: 120px; resize: vertical; font-family: var(--sans); }
.rt-textarea--code { font-family: var(--mono); font-size: 13px; }

.rt-hint {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

/* --------------------------------------------------------------------------
 * Cards
 * -------------------------------------------------------------------------- */
.rt-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--card-pad);
}

.rt-card--cream {
  background: var(--canvas-card);
  border: none;
  border-radius: var(--r-lg);
  padding: var(--card-pad);
}

.rt-card--dark {
  background: var(--surface-dark);
  color: var(--on-dark);
  border-radius: var(--r-lg);
  padding: var(--card-pad);
}
.rt-card--dark h1, .rt-card--dark h2, .rt-card--dark h3, .rt-card--dark h4 { color: var(--on-dark); }
.rt-card--dark p { color: var(--on-dark-soft); }

.rt-callout-coral {
  background: var(--coral);
  color: var(--on-primary);
  border-radius: var(--r-lg);
  padding: var(--space-xxl);
}
.rt-callout-coral h2 { color: var(--on-primary); }
.rt-callout-coral p { color: rgba(255,255,255,0.92); }

/* Notion の sticky-note 風 bright yellow banner */
.rt-callout-yellow {
  background: var(--tint-yellow-bold);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: var(--space-xxl);
}
.rt-callout-yellow h2 { color: var(--ink); }
.rt-callout-yellow p { color: var(--body-strong); }

.rt-feature-card {
  background: var(--canvas-card);
  border-radius: var(--r-lg);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* パステル variant — 全て暖色 (オレンジ族) で揃える */
.rt-feature-card--peach    { background: var(--tint-peach); }
.rt-feature-card--apricot  { background: var(--tint-apricot); }
.rt-feature-card--cream    { background: var(--tint-cream); }
.rt-feature-card--sand     { background: var(--tint-sand); }
.rt-feature-card--butter   { background: var(--tint-butter); }
.rt-feature-card--blush    { background: var(--tint-blush); }
.rt-feature-card--rose     { background: var(--tint-rose); }
.rt-feature-card--mint     { background: var(--tint-mint); }
.rt-feature-card--lavender { background: var(--tint-lavender); }
.rt-feature-card--sky      { background: var(--tint-sky); }
.rt-feature-card--yellow   { background: var(--tint-yellow); }
.rt-feature-card--gray     { background: var(--tint-gray); }
.rt-feature-card--yellow-bold {
  background: var(--tint-yellow-bold);
  color: var(--body-strong);
}

.rt-feature-card__icon {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  border-radius: var(--r-md);
  font-size: 20px;
  font-weight: 600;
}

.rt-feature-card h3 {
  font-family: var(--sans);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.rt-feature-card p { margin: 0; color: var(--body-strong); font-size: 15px; }

/* --------------------------------------------------------------------------
 * Pricing
 * -------------------------------------------------------------------------- */
.rt-pricing {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--card-pad);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rt-pricing--featured {
  background: var(--surface-dark);
  color: var(--on-dark);
  border: none;
}
.rt-pricing--featured h3 { color: var(--on-dark); }
.rt-pricing--featured .rt-pricing__price { color: var(--on-dark); }
.rt-pricing--featured ul li { color: var(--on-dark-soft); }
.rt-pricing--featured ul li::before { color: var(--coral); }

.rt-pricing h3 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  margin: 0;
  letter-spacing: 0;
}

.rt-pricing__price {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 36px;
  letter-spacing: -0.5px;
  color: var(--ink);
}
.rt-pricing__price small {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--muted);
  margin-left: 4px;
}

.rt-pricing ul {
  list-style: none;
  padding: 0;
  margin: 8px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rt-pricing ul li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: var(--body);
}
.rt-pricing ul li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--coral);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
 * Hero
 * -------------------------------------------------------------------------- */
.rt-hero {
  padding: var(--section-y) 0;
  background: var(--canvas);
}

.rt-hero__title { font-size: 64px; letter-spacing: -1.5px; line-height: 1.04; margin-bottom: var(--space-lg); }
.rt-hero__sub { font-size: 18px; color: var(--body-strong); max-width: 540px; margin-bottom: var(--space-xl); line-height: 1.55; }
.rt-hero__cta { display: flex; gap: 12px; }

.rt-hero__art {
  background: var(--surface-dark);
  color: var(--on-dark);
  border-radius: var(--r-xl);
  padding: var(--space-xl);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.7;
}
.rt-hero__art .rt-mock-line { color: var(--on-dark-soft); }
.rt-hero__art .rt-mock-line .k { color: var(--accent-amber); }
.rt-hero__art .rt-mock-line .s { color: var(--accent-teal); }
.rt-hero__art .rt-mock-line .c { color: #d9b9a0; }

@media (max-width: 768px) {
  .rt-hero { padding: 64px 0; }
  .rt-hero__title { font-size: 38px; letter-spacing: -0.7px; }
}

/* --------------------------------------------------------------------------
 * Badges
 * -------------------------------------------------------------------------- */
.rt-badge {
  display: inline-flex;
  align-items: center;
  background: var(--canvas-card);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--r-pill);
}
.rt-badge--coral {
  background: var(--coral);
  color: var(--on-primary);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.rt-badge--ghost {
  background: transparent;
  border: 1px solid var(--hairline);
  color: var(--muted);
}
.rt-badge--success { background: rgba(93,184,114,0.15); color: #2f7a44; }
.rt-badge--warn { background: rgba(212,160,23,0.15); color: #8a6a0e; }
.rt-badge--danger { background: var(--error-soft); color: var(--error); }

/* --------------------------------------------------------------------------
 * Wizard tabs
 * -------------------------------------------------------------------------- */
.rt-wizard {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: 0;
  overflow: hidden;
}

.rt-wizard__tabs {
  display: flex;
  background: var(--canvas-soft);
  border-bottom: 1px solid var(--hairline);
}

.rt-wizard__tab {
  flex: 1;
  padding: 16px 12px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  border-right: 1px solid var(--hairline);
  text-decoration: none;
  position: relative;
}
.rt-wizard__tab:last-child { border-right: none; }
.rt-wizard__tab.is-current {
  background: var(--canvas);
  color: var(--ink);
}
.rt-wizard__tab.is-done {
  background: var(--canvas);
  color: var(--ink);
}
.rt-wizard__tab.is-future {
  pointer-events: none;
  opacity: 0.55;
}
.rt-wizard__tab .step-no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: var(--r-pill);
  background: var(--canvas-card);
  color: var(--muted);
  margin-right: 8px;
  font-size: 12px;
  font-weight: 600;
}
.rt-wizard__tab.is-current .step-no { background: var(--coral); color: white; }
.rt-wizard__tab.is-done .step-no { background: var(--accent-teal); color: white; }

.rt-wizard__body { padding: var(--card-pad); }

.rt-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 24px;
}

.rt-chip {
  background: var(--canvas);
  color: var(--ink);
  border: 1px solid var(--hairline);
  border-radius: var(--r-pill);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}
.rt-chip:hover { border-color: var(--coral); color: var(--coral); }
.rt-chip.is-selected {
  background: var(--coral);
  border-color: var(--coral);
  color: var(--on-primary);
}
.rt-chip[disabled],
.rt-chip.is-disabled {
  background: var(--canvas-soft);
  color: var(--muted-soft);
  border-color: var(--hairline-soft);
  cursor: not-allowed;
}

.rt-chip__hint {
  font-size: 11px;
  margin-left: 6px;
  opacity: 0.75;
}

.rt-wizard__actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--hairline);
}

/* --------------------------------------------------------------------------
 * Tables
 * -------------------------------------------------------------------------- */
.rt-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rt-table th,
.rt-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
}

.rt-table th {
  font-family: var(--sans);
  font-weight: 500;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.rt-table tbody tr:hover { background: var(--canvas-soft); }

.rt-table--compact th,
.rt-table--compact td { padding: 8px 10px; }

/* --------------------------------------------------------------------------
 * Stat tiles
 * -------------------------------------------------------------------------- */
.rt-stat {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--space-lg);
}

.rt-stat__label {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.rt-stat__value {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 32px;
  color: var(--ink);
  letter-spacing: -0.5px;
  line-height: 1;
}

.rt-stat__sub {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.rt-stat--profit .rt-stat__value { color: var(--accent-teal); }
.rt-stat--cost .rt-stat__value { color: var(--coral); }

/* --------------------------------------------------------------------------
 * Footer
 * -------------------------------------------------------------------------- */
.rt-footer-dark {
  background: var(--surface-dark);
  color: var(--on-dark-soft);
  padding: 64px 0 48px;
  margin-top: auto;
}
.rt-footer-dark__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.rt-footer-dark__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
}
.rt-footer-dark .rt-brand { color: var(--on-dark); }
.rt-footer-dark .rt-brand__suffix { color: var(--on-dark-soft); }

.rt-footer-dark__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.rt-footer-dark__cols h5 {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--on-dark);
  font-weight: 500;
  margin: 0 0 12px;
}
.rt-footer-dark__cols a {
  display: block;
  color: var(--on-dark-soft);
  font-size: 14px;
  margin-bottom: 6px;
  text-decoration: none;
}
.rt-footer-dark__cols a:hover { color: var(--on-dark); }

.rt-footer-dark__bottom {
  border-top: 1px solid #2a2725;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--on-dark-soft);
}

@media (max-width: 768px) {
  .rt-footer-dark__cols { grid-template-columns: repeat(2, 1fr); }
  .rt-footer-dark__top { flex-direction: column; }
}

/* --------------------------------------------------------------------------
 * Flash
 * -------------------------------------------------------------------------- */
.rt-flash {
  border-radius: var(--r-md);
  padding: 12px 16px;
  margin-bottom: var(--space-md);
  font-size: 14px;
  border: 1px solid transparent;
}
.rt-flash--error { background: var(--error-soft); color: var(--error); border-color: rgba(198,69,69,0.25); }
.rt-flash--success { background: rgba(93,184,114,0.12); color: #2f7a44; border-color: rgba(93,184,114,0.3); }
.rt-flash--info { background: var(--canvas-card); color: var(--body-strong); border-color: var(--hairline); }
.rt-flash--warn { background: rgba(212,160,23,0.12); color: #8a6a0e; border-color: rgba(212,160,23,0.3); }

/* --------------------------------------------------------------------------
 * Auth screens
 * -------------------------------------------------------------------------- */
.rt-auth {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-xxl) var(--space-lg);
}
.rt-auth__card {
  width: 100%;
  max-width: 420px;
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--space-xxl);
}
.rt-auth__card h2 { margin-bottom: 8px; font-size: 32px; }
.rt-auth__sub { color: var(--muted); margin-bottom: var(--space-xl); }

/* --------------------------------------------------------------------------
 * Story result
 * -------------------------------------------------------------------------- */
.rt-story {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  padding: var(--space-xxl);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  color: var(--body-strong);
  white-space: pre-wrap;
  letter-spacing: 0.2px;
}

/* --------------------------------------------------------------------------
 * Misc helpers
 * -------------------------------------------------------------------------- */
.rt-row { display: flex; gap: var(--space-md); align-items: center; }
.rt-row--between { justify-content: space-between; }
.rt-row--wrap { flex-wrap: wrap; }
.rt-stack { display: flex; flex-direction: column; gap: var(--space-md); }
.rt-stack--lg { gap: var(--space-lg); }
.rt-mt-lg { margin-top: var(--space-lg); }
.rt-mt-xl { margin-top: var(--space-xl); }
.rt-mb-lg { margin-bottom: var(--space-lg); }
.rt-muted { color: var(--muted); }
.rt-strong { color: var(--ink); font-weight: 500; }
.rt-divider { height: 1px; background: var(--hairline); margin: var(--space-lg) 0; }
.rt-pill-row { display: flex; gap: 8px; flex-wrap: wrap; }

.rt-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
  gap: var(--space-lg);
}

/* Chart container */
.rt-chart-wrap {
  position: relative;
  height: 320px;
}
