/* Ashveil — Editorial Dark Fantasy UI (Phase 21)
   Ported from mockups/tome_editorial_v2.html + Ashveil_Design_Guide.md. */
:root{
  --ground:#121212;
  --ground-2:#1a1a1a;
  --ink:#e0e0e0;
  --ink-2:#b0b0b0;
  --muted:#7a7a7a;
  --hair:#333333;
  --accent:#c9a86a;
  --accent-glow: #e8d099;
  --accent-soft: rgba(201, 168, 106, 0.15);
  --meas:60ch;
  --font-size: 20px;
  color-scheme: dark;
}
:root.light-theme {
  --ground:#f7f5ef;
  --ground-2:#ffffff;
  --ink:#1a1a1a;
  --ink-2:#5c5c5c;
  --muted:#8c8c8c;
  --hair:#e6e3da;
  --accent:#b58a3c;
  --accent-glow:#966b1e;
  --accent-soft: rgba(181, 138, 60, 0.1);
  color-scheme: light;
}
*{ box-sizing:border-box; }
body{
  margin:0; height:100vh; display: flex; overflow: hidden;
  background:var(--ground); color:var(--ink);
  font-family:"Newsreader",Georgia,serif; font-size:var(--font-size); line-height:1.72; transition: background 0.3s, color 0.3s;
  font-feature-settings:"onum" 1,"liga" 1,"kern" 1;
  -webkit-font-smoothing:antialiased;
}
.sans{ font-family:"Inter",-apple-system,sans-serif; }
.u-label{ font-family:"Inter",sans-serif; text-transform:uppercase; letter-spacing:.16em;
  font-size:11px; font-weight:500; color:var(--muted); }

/* Sidebar */
.sidebar {
  width: 280px;
  background: var(--ground-2);
  border-right: 1px solid var(--hair);
  padding: 30px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: margin-left 0.3s ease;
}
body.sidebar-closed .sidebar { margin-left: -280px; }
.side-title {
  font-family: "Inter", sans-serif;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 8px;
  margin-bottom: 20px;
}
.hpblock .top{ display:flex; justify-content:space-between; align-items:baseline; margin-bottom:8px; }
.hpblock .top .n{ font-family:"Fraunces",serif; font-size:15px; }
.bar{ height:4px; border-radius:3px; background:var(--ground); box-shadow:inset 0 0 0 1px var(--hair); overflow:hidden; }
.bar i{ display:block; height:100%; background:var(--accent); border-radius:3px; }

.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-grid .cell .v { font-family: "Fraunces", serif; font-size: 21px; font-weight: 500; color: var(--ink); margin-top: 4px; }

.inv-list, .cond-list { list-style: none; padding: 0; margin: 0; font-family: "Newsreader", serif; font-size: 16px; color: var(--ink-2); }
.inv-list li, .cond-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--hair); }
.inv-list li .qty { color: var(--muted); font-size: 13px; }

/* Main Wrapper */
.main-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
}

/* masthead */
.masthead{
  display: flex; justify-content: space-between; align-items: center;
  padding:16px 40px; border-bottom:1px solid var(--hair);
  position: sticky; top: 0; background: var(--ground-2); z-index: 10; transition: background 0.3s;
}
.masthead .word{ font-family:"Inter",sans-serif; text-transform:uppercase; letter-spacing:.42em;
  font-size:12px; font-weight:600; color:var(--ink-2); padding-left:.42em; }
.masthead .actions { display: flex; gap: 20px; color: var(--muted); align-items: center; }
.masthead .actions svg { width: 18px; height: 18px; cursor: pointer; transition: color 0.2s; }
.masthead .actions svg:hover { color: var(--accent); }

.shell{ max-width:720px; margin:0 auto; padding:0 28px; width: 100%; }

/* header */
.hd{ display:flex; align-items:flex-end; gap:20px; padding:40px 0 8px; }
.hd .name{ font-family:"Fraunces",serif; font-weight:500; font-size:30px; line-height:1; letter-spacing:.1px; color: var(--accent-glow); }
.hd .who{ margin-top:9px; }
.hd .meta{ margin-left:auto; text-align:right; }
.hd .meta .day{ display:block; }
.hd .status{ display:inline-block; margin-top:9px; color:var(--accent);
  font-family:"Inter",sans-serif; text-transform:uppercase; letter-spacing:.16em; font-size:11px; font-weight:600; }
.hd .status::before{ content:""; display:inline-block; width:5px; height:5px; border-radius:50%;
  background:var(--accent); margin-right:7px; vertical-align:2px; }

.divider {
  display: flex; align-items: center; justify-content: center; margin: 30px 0; gap: 15px;
}
.divider::before, .divider::after {
  content: ''; height: 1px; width: 80px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.5;
}
.divider-icon { color: var(--accent); font-size: 14px; }

/* recap ("previously on Ashveil") */
.recap{ max-width:var(--meas); margin:0 auto 20px; padding:16px 20px; background:var(--ground-2);
  border-left:2px solid var(--accent); border-radius:6px; font-style:italic; color:var(--ink-2); }
.recap .u-label{ display:block; margin-bottom:8px; font-style:normal; }

/* prose */
.prose{ max-width:var(--meas); margin:0 auto; }
.narr{ margin:0 0 26px; white-space:pre-wrap; }
.narr em{ font-style:italic; }
.lead .drop{
  float:left; font-family:"Fraunces",serif; font-weight:500; font-size:88px; line-height:.74;
  padding:8px 14px 0 0; color:var(--accent-glow);
}

/* player line — indented, bounded, clear distinction */
.you{
  margin: 32px 0 32px 40px;
  padding: 16px 24px;
  background: var(--ground-2);
  border-radius: 6px;
  border-left: 2px solid var(--accent);
  position: relative;
}
.you .tag{ display:block; margin-bottom:8px; color: var(--accent); }
.you .said{ color:var(--ink); font-style: italic; }

/* roll = editorial footnote, centered */
.roll{ max-width:44ch; margin:34px auto; text-align:center; }
.roll .cap{ display:inline-block; width:34px; height:1px; background:var(--muted); opacity:.5; margin-bottom:16px; }
.roll .lab{ display:block; margin-bottom:7px; }
.roll .val{ font-size:20px; }
.roll .val b{ font-weight:600; color: var(--accent-glow); }
.roll .res{ font-style:italic; color:var(--muted); margin-top:3px; }
.roll .foe{ color:var(--accent); font-style:italic; }
.roll.crit .lab{ color:var(--accent); }
.roll.crit .cap{ background:var(--accent); opacity:.9; width:44px; }
.roll.crit .flag{ font-family:"Inter",sans-serif; text-transform:uppercase; letter-spacing:.2em;
  font-size:11px; font-weight:600; color:var(--accent); margin-top:9px; }
.roll{ animation:fade .45s ease both; }
@keyframes fade{ from{ opacity:0; transform:translateY(5px); } to{ opacity:1; transform:none; } }

/* action choices */
.actions-list { display: flex; flex-direction: column; gap: 12px; margin: 34px 0 10px; }
.action-btn { background: transparent; border: 1px solid rgba(201, 168, 106, 0.3); color: var(--ink); padding: 16px 24px; font: 400 calc(var(--font-size) - 2px)/1.5 "Newsreader",Georgia,serif; text-align: left; cursor: pointer; border-radius: 6px; transition: all .3s ease; width: 100%; }
.action-btn:hover { border-color: var(--accent); color: var(--accent-glow); background: rgba(201, 168, 106, 0.05); transform: translateY(-1px); }
.action-btn .opt-num { color: var(--accent); font-family: "Fraunces", serif; font-weight: 500; margin-right: 8px; }

/* composer */
.composer{ max-width:var(--meas); margin:46px auto 60px; }
.field{ display:flex; align-items:center; gap:16px; border-bottom:1px solid var(--hair); padding:10px 2px; transition:border-color .25s; }
.field:focus-within{ border-color:var(--accent); }
.field input, .field textarea{ flex:1; border:0; background:transparent; outline:none;
  font:400 calc(var(--font-size) - 1px)/1.5 "Newsreader",Georgia,serif; color:var(--ink); }
.field textarea{ resize:none; overflow-y:auto; min-height:1.5em; max-height:9em;
  padding:0; margin:0; display:block; }
.field input::placeholder, .field textarea::placeholder{ color:var(--muted); font-style:italic; }
.field .send{ background:transparent; border:0; cursor:pointer; color:var(--ink-2);
  font-family:"Inter",sans-serif; text-transform:uppercase; letter-spacing:.18em; font-size:11px; font-weight:600;
  padding:6px 2px; transition:color .2s; }
.field .send:hover{ color:var(--accent); }

/* footer (always-on) */
.footer-bar{ position: sticky; bottom: 0; display:flex; gap:24px; justify-content:center;
  padding:10px; background:var(--ground-2); border-top:1px solid var(--hair); font-family:"Inter",sans-serif;
  font-size:11px; letter-spacing:.08em; color:var(--ink-2); text-transform:uppercase; }
/* On desktop the sidebar already shows HP/AC/XP/silver/conditions, so the
   footer bar is redundant — hide it there. Kept on mobile (≤800px), where the
   sidebar is off-canvas and this is the only always-on stat surface. */
@media (min-width:801px){ #footer-bar{ display:none !important; } }
.footer-bar b{ color:var(--accent-glow); font-family:"Fraunces",serif; font-size:13px; text-transform:none; letter-spacing:0; }

/* journal panel (off-canvas, reuses sidebar mechanics) */
.journal-panel{ position: fixed; top:0; right:-360px; bottom:0; width:340px; background:var(--ground-2);
  border-left:1px solid var(--hair); padding:30px 24px; overflow-y:auto; transition: right .3s ease; z-index: 60; }
.journal-panel.open{ right: 0; }
.journal-header{ display:flex; align-items:center; justify-content:space-between;
  margin-bottom: 20px; }
.journal-heading{ font-family:"Fraunces",serif; font-size:20px; font-weight:500;
  color:var(--accent-glow); }
.journal-close{ background:none; border:none; color:var(--muted); font-size:24px;
  line-height:1; cursor:pointer; padding:0; transition:color .2s; }
.journal-close:hover{ color:var(--ink); }
.journal-panel h3.side-title{ margin-top: 24px; }
.journal-header + h3.side-title{ margin-top: 0; }
.journal-list{ list-style:none; padding:0; margin:0; font-size:15px; color:var(--ink-2); }
.journal-list li{ padding:6px 0; border-bottom:1px dashed var(--hair); }

/* teaser (cliffhanger, on quit) */
.teaser{ max-width:var(--meas); margin:40px auto; text-align:center; padding:24px; font-style:italic;
  color:var(--accent-glow); border-top:1px solid var(--hair); border-bottom:1px solid var(--hair); }

/* 29a-3: merchant note — in-world shop listing or buy confirmation */
.merchant-note{
  max-width:var(--meas); margin:20px 0; padding:16px 20px;
  border-left:2px solid var(--hair); color:var(--ink-2);
  font-family:"Newsreader",Georgia,serif; font-size:.95em; line-height:1.7;
  animation:fade .3s ease;
}
.merchant-note p{ margin:0 0 .5em; }
.merchant-note p:last-child{ margin-bottom:0; }

/* Mobile off-canvas */
.sidebar-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 40; opacity: 0; transition: opacity 0.3s; pointer-events: none; display: none; }

.sidebar-toggle-btn {
  position: fixed; bottom: 24px; left: 304px; z-index: 100;
  color: var(--muted); cursor: pointer;
  transition: left 0.3s ease, color 0.2s ease;
  display: flex; align-items: center; justify-content: center;
}
.sidebar-toggle-btn:hover { color: var(--accent); }
body.sidebar-closed .sidebar-toggle-btn { left: 24px; }

@media (prefers-reduced-motion:reduce){ *{ animation:none !important; } }
@media (max-width:800px){
  body { flex-direction: row; }
  .sidebar-toggle-btn { left: 24px; }
  body.sidebar-open .sidebar-toggle-btn { left: 304px; }
  .sidebar-overlay { display: block; }
  body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .sidebar {
    position: fixed; top: 0; left: -300px; bottom: 0; width: 280px;
    z-index: 50; transition: transform 0.3s ease;
    border-right: 1px solid var(--hair);
  }
  body.sidebar-open .sidebar { transform: translateX(300px); }

  .masthead { padding: 12px 20px; }
  .shell { padding: 0 16px; }
  .you { margin: 24px 0 24px 16px; padding: 12px 16px; }
  .action-btn { padding: 12px 16px; font-size: 16px; }
  .journal-panel{ width: 85vw; right: -90vw; }
}

/* ── Instance picker ────────────────────────────────────────────────── */
#picker-view{ flex:1; display:flex; align-items:center; justify-content:center; overflow-y:auto; }
.picker-shell{ max-width:560px; width:100%; padding:40px 28px; }
.picker-shell h1{ font-family:"Fraunces",serif; font-weight:500; color:var(--accent-glow); font-size:32px; margin:0 0 8px; }
.picker-shell .sub{ color:var(--ink-2); margin-bottom:32px; }
.instance-list{ list-style:none; padding:0; margin:0 0 24px; display:flex; flex-direction:column; gap:12px; }
.instance-card{ display:flex; justify-content:space-between; align-items:center; padding:18px 22px;
  border:1px solid var(--hair); border-radius:8px; cursor:pointer; transition:border-color .2s, background .2s; }
.instance-card:hover{ border-color:var(--accent); background:var(--accent-soft); }
.instance-card .who{ font-family:"Fraunces",serif; font-size:18px; color:var(--ink); }
.instance-card .meta{ color:var(--muted); font-size:13px; margin-top:4px; }
.instance-card .del{ color:var(--muted); background:none; border:0; cursor:pointer; font-size:18px; padding:4px 8px; }
.instance-card .del:hover{ color:#c9524a; }
.new-game-btn{ width:100%; padding:16px; border:1px dashed var(--accent); border-radius:8px; background:transparent;
  color:var(--accent); font:400 16px "Newsreader",Georgia,serif; cursor:pointer; transition:background .2s; }
.new-game-btn:hover{ background:var(--accent-soft); }
.empty-note{ color:var(--muted); font-style:italic; margin-bottom:24px; }

/* ═══ Phase 25: conversational creation view ═══ */
#creation-view{
  width:100%; height:100%; display:flex; align-items:center; justify-content:center;
  padding:24px; box-sizing:border-box;
}
.creation-shell{
  width:100%; max-width:64ch; display:flex; flex-direction:column; gap:18px;
  max-height:100%;
}
.creation-log{
  flex:1; overflow-y:auto; display:flex; flex-direction:column; gap:16px;
  padding:8px 2px; min-height:120px;
}
.creation-log .dm{
  font-family:"Newsreader",Georgia,serif; color:var(--ink); line-height:1.7;
  animation:fade .4s ease;
}
/* The DM's markdown is rendered into real paragraphs (app.js); space them. */
.creation-log .dm p{ margin:0 0 .7em; }
.creation-log .dm p:last-child{ margin-bottom:0; }
.creation-log .dm strong{ color:var(--accent-glow); font-weight:600; }
.creation-log .dm.greet{ color:var(--accent-glow); }
.creation-log .you{
  font-family:"Inter",sans-serif; color:var(--ink-2); font-size:.85em;
  align-self:flex-end; text-align:right; max-width:80%;
}
.creation-log .you::before{
  content:"You"; display:block;
  font-size:10px; letter-spacing:.16em; text-transform:uppercase; color:var(--muted);
}
.creation-chips{ display:flex; flex-wrap:wrap; gap:8px; min-height:0; }
.creation-chips .chip{
  font-family:"Inter",sans-serif; font-size:12px; padding:4px 10px; border-radius:12px;
  background:var(--accent-soft); color:var(--accent-glow); border:1px solid var(--hair);
}
.creation-chips .chip b{ color:var(--muted); font-weight:500; margin-right:4px; text-transform:uppercase; letter-spacing:.08em; font-size:10px; }
/* Composer: the quiet underline field the game view uses — not a boxed form.
   (.field / .send styling is shared; these are creation-only tweaks.) */
.creation-composer{ margin-top:2px; }

/* In-world asides — soft text prompts, not chrome. The creation flow is
   deliberately pure free-text conversation (the DM never reads a menu of
   options), so these whispered prompts are the only affordances the player
   needs beyond simply typing. */
.creation-asides{ display:flex; gap:10px; align-items:center; flex-wrap:wrap;
  font-family:"Newsreader",Georgia,serif; font-style:italic; font-size:14px; }
.creation-asides .aside{ background:none; border:0; padding:0; cursor:pointer;
  font:inherit; color:var(--ink-2); border-bottom:1px dotted var(--hair); transition:color .2s, border-color .2s; }
.creation-asides .aside:hover{ color:var(--accent-glow); border-color:var(--accent); }
.creation-asides .aside.quiet{ color:var(--muted); margin-left:auto; }
.creation-asides .aside-dot{ color:var(--muted); }
.creation-asides .aside:disabled{ opacity:.4; cursor:default; }

/* 29f: typing affordance — quiet in-world cue during a creation API call */
.creation-typing{
  font-family:"Newsreader",Georgia,serif; font-style:italic;
  color:var(--muted); font-size:.9em;
}
@keyframes creation-dots{
  0%,20%  { content:"."; }
  40%     { content:".."; }
  60%,100%{ content:"..."; }
}
.creation-typing-dots::after{
  content:"."; animation:creation-dots 1.2s steps(1,end) infinite;
}

/* Chronicle overlay (Phase 32) */
.chronicle-view {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0,0.75); display: flex; align-items: flex-start; justify-content: center;
  overflow-y: auto; padding: 60px 24px 60px;
  animation: fade .25s ease;
}
.chronicle-shell {
  background: var(--ground-2); border: 1px solid var(--hair);
  border-radius: 4px; max-width: 68ch; width: 100%;
  padding: 48px 52px 40px; position: relative;
}
.chronicle-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 24px;
  margin-bottom: 32px;
}
.chronicle-title {
  font-family: "Fraunces", serif; font-size: 1.5em; font-weight: 500;
  color: var(--accent-glow); line-height: 1.25; margin: 0;
}
.chronicle-close {
  background: none; border: none; color: var(--muted); font-size: 24px; line-height: 1;
  cursor: pointer; padding: 0; margin-top: -2px; flex-shrink: 0;
  transition: color 0.2s;
}
.chronicle-close:hover { color: var(--ink); }
.chronicle-body {
  font-family: "Newsreader", Georgia, serif; font-size: 1em; line-height: 1.78;
  color: var(--ink); max-width: 60ch;
}
.chronicle-body p { margin: 0 0 1.4em; }
.chronicle-body p:last-child { margin-bottom: 0; }
.chronicle-body em { font-style: italic; color: var(--ink-2); }
.chronicle-footer { margin-top: 40px; display: flex; justify-content: flex-end; }
.chronicle-download {
  font-family: "Inter", sans-serif; font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: .12em;
  padding: 8px 18px; border-radius: 4px;
  border: 1px solid var(--accent); background: var(--accent-soft);
  color: var(--accent-glow); cursor: pointer; transition: background 0.2s;
}
.chronicle-download:hover { background: var(--accent); color: var(--ground); }
.chronicle-download:disabled { opacity: .4; cursor: default; }
.chronicle-spinner {
  font-family: "Newsreader", Georgia, serif; font-style: italic;
  color: var(--muted); font-size: .9em;
}
@media (max-width: 800px) {
  .chronicle-shell { padding: 32px 24px 28px; }
}

/* The one intentional threshold: begin your tale. This stays a real button. */
#creation-begin{
  align-self:flex-start; margin-top:4px;
  font-family:"Fraunces",serif; font-size:16px; font-weight:500; padding:12px 22px;
  border-radius:8px; border:1px solid var(--accent); background:var(--accent-soft);
  color:var(--accent-glow); cursor:pointer; box-shadow:0 0 16px var(--accent-soft);
  transition:background .2s;
}
#creation-begin:hover{ background:var(--accent); color:var(--ground); }

/* Typewriter word fade-in (Narration Overhaul, 2026-07-13) */
.narr span.twx{ opacity:0; animation:twFadeIn .5s ease-out forwards; }
@keyframes twFadeIn{ from{ opacity:0; } to{ opacity:1; } }

/* Options as text (not buttons) — the player answers in the composer */
.action-opt{ padding:4px 0; color:var(--accent-glow); }
.action-opt .opt-num{ color:var(--muted); margin-right:6px; }

/* World-forging overlay: blurs the stage while the opening generates and
   cycles slow in-character setup messages. */
#worldgen-overlay{
  position:fixed; inset:0; z-index:200;
  display:flex; align-items:center; justify-content:center;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  background: color-mix(in srgb, var(--ground) 55%, transparent);
}
.worldgen-msg{
  font-family:'Fraunces', serif; font-size:22px; font-style:italic;
  color: var(--accent-glow); text-align:center; max-width:520px; padding:0 24px;
  opacity:0; transition: opacity 1.1s ease;
}
.worldgen-msg.show{ opacity:1; }

/* ═══ Auth gate (Clerk sign-in) ═══ */
#auth-view{ flex:1; display:flex; align-items:center; justify-content:center; overflow-y:auto; padding:40px 20px; }
.auth-shell{ max-width:420px; width:100%; display:flex; flex-direction:column; align-items:center; text-align:center; }
.auth-title{ font-family:"Fraunces",serif; font-weight:500; color:var(--accent-glow); font-size:40px; margin:0 0 6px; letter-spacing:.5px; }
.auth-tagline{ font-family:"Newsreader",serif; font-style:italic; color:var(--ink-2); font-size:18px; margin:0 0 14px; }
.auth-beta-badge{ font-family:"Inter",sans-serif; text-transform:uppercase; letter-spacing:.16em; font-size:11px; font-weight:600; color:var(--accent); border:1px solid var(--hair); border-radius:999px; padding:4px 12px; margin-bottom:20px; }
.auth-invite-note{ font-family:"Inter",sans-serif; font-size:13px; color:var(--muted); margin:0 0 28px; max-width:340px; line-height:1.5; }
#sign-in{ display:flex; justify-content:center; min-height:40px; }
.auth-footer{ margin-top:28px; color:var(--muted); font-family:"Inter",sans-serif; font-size:12px; line-height:1.6; }
.auth-footer p{ margin:4px 0; }
.auth-footer strong{ color:var(--ink-2); font-weight:600; }
.auth-legal{ margin-top:10px; }
.auth-legal a{ color:var(--muted); text-decoration:none; border-bottom:1px solid var(--hair); }
.auth-legal a:hover{ color:var(--accent); }
.auth-legal span{ margin:0 8px; }

/* Signed-in account control in the picker (Clerk UserButton avatar) */
.picker-account{ display:flex; align-items:center; justify-content:flex-end; gap:10px; margin-bottom:24px; }
.tier-chip{ font-family:"Inter",sans-serif; text-transform:uppercase; letter-spacing:.14em; font-size:10px; font-weight:600; color:var(--muted); border:1px solid var(--hair); border-radius:999px; padding:3px 10px; }
.tier-btn{ font-family:"Inter",sans-serif; font-size:12px; font-weight:600; border-radius:999px; padding:5px 14px; cursor:pointer; border:1px solid var(--hair); background:transparent; color:var(--ink-2); }
.tier-btn:hover{ color:var(--accent); border-color:var(--accent); }
.tier-btn.upgrade{ background:var(--accent); border-color:var(--accent); color:#fff; }
.tier-btn.upgrade:hover{ filter:brightness(1.08); color:#fff; }
.limit-card{ margin:36px auto; max-width:520px; text-align:center; padding:28px 24px; border:1px solid var(--hair); border-radius:14px; background:var(--panel, rgba(0,0,0,0.02)); }
.limit-msg{ font-family:"Fraunces",serif; font-size:20px; color:var(--ink); margin:0 0 8px; }
.limit-sub{ font-family:"Inter",sans-serif; font-size:14px; color:var(--muted); margin:0 0 18px; line-height:1.5; }
.limit-card .tier-btn{ font-size:14px; padding:8px 20px; }

/* Placeholder legal pages */
.legal-shell{ max-width:640px; margin:0 auto; padding:56px 28px; }
.legal-shell h1{ font-family:"Fraunces",serif; font-weight:500; color:var(--accent-glow); font-size:32px; margin:0 0 20px; }
.legal-shell h2{ font-family:"Inter",sans-serif; text-transform:uppercase; letter-spacing:.14em; font-size:13px; color:var(--muted); margin:28px 0 8px; }
.legal-shell p{ color:var(--ink-2); margin:8px 0; }
.legal-note{ padding:14px 18px; background:var(--accent-soft); border-left:2px solid var(--accent); border-radius:6px; }
.legal-back{ margin-top:32px; }
.legal-back a{ color:var(--accent); text-decoration:none; }
