/* ─────────────────────────────────────────────────────────────
   Noren — Framework Pages
   Mirrors index.html exactly: .app shell, .header chrome, .icon-btn,
   .cat-pill, type scale. Per-page accent: <body style="--accent:#…">
   ───────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0a0f;
  --bg-2: #0e0e15;
  --surface: #14141d;
  --surface-2: #1c1c28;
  --surface-3: #25252f;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --text: #f5f4ef;
  --text-2: #b8b8c4;
  --text-3: #71717f;
  --text-4: #4d4d5a;
  --gold: #d1a848;
  --gold-soft: rgba(209,168,72,0.16);
  --accent: #d1a848;
  --cat-ai-tech: #5b8def;
  --cat-systems: #4fb594;
  --cat-cognitive-edge: #e89c3a;
  --cat-economics: #e96680;
  --cat-strategy: #9b6bf5;
  --display: 'Cormorant Garamond', Georgia, serif;
  --serif: 'Lora', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --t-fast: 150ms cubic-bezier(0.4,0,0.2,1);
  --t-med: 240ms cubic-bezier(0.4,0,0.2,1);
  --t-slow: 360ms cubic-bezier(0.4,0,0.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(91,141,239,0.04), transparent 60%),
    radial-gradient(800px 400px at 100% 100%, rgba(155,107,245,0.03), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--gold-soft); color: var(--text); }

/* ── .app shell (identical to main site) ────────────────────── */
.app {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
@media (min-width: 1024px) {
  .app { max-width: 1100px; padding: 0 48px; }
}

/* ── header: 3-col grid; icon buttons match site height ─────── */
.header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px 0 12px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(to bottom, var(--bg) 60%, transparent);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.header > .icon-btn { justify-self: start; }
.header-actions { justify-self: end; display: flex; gap: 8px; align-items: center; position: relative; }

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0;
  line-height: 1;
}
.brand-text {
  font-family: var(--display);
  font-size: 48px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: -0.02em;
}
.brand-icon {
  height: 46px;
  width: auto;
  flex-shrink: 0;
  margin: 0 2px;
  transform: translateY(7px);
  display: block;
}
@media (min-width: 600px) { .brand-text { font-size: 54px; } }

/* ── icon buttons (copied from site .icon-btn / .header-icon-btn) ── */
.icon-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
  flex-shrink: 0;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.75; }

/* ── hamburger menu = bottom sheet (identical to main site) ──── */
.sheet-backdrop {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-med);
}
.sheet-backdrop.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  background: var(--surface);
  border-top-left-radius: var(--radius-xl);
  border-top-right-radius: var(--radius-xl);
  border-top: 1px solid var(--border-strong);
  z-index: 100;
  transition: transform var(--t-slow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.sheet.open { transform: translateX(-50%) translateY(0); }
@media (min-width: 768px) {
  .sheet {
    bottom: 50%;
    transform: translate(-50%, 60%) scale(0.96);
    opacity: 0;
    pointer-events: none;
    border-radius: var(--radius-xl);
    border-top: 1px solid var(--border-strong);
    max-height: 80vh;
    width: 90%;
    max-width: 600px;
  }
  .sheet.open { transform: translate(-50%, 50%) scale(1); opacity: 1; pointer-events: auto; }
}
.sheet-handle {
  width: 36px; height: 4px;
  background: var(--text-4);
  border-radius: 100px;
  margin: 10px auto 4px;
  flex-shrink: 0;
}
@media (min-width: 768px) { .sheet-handle { display: none; } }
.sheet-head {
  padding: 14px 24px 10px;
  display: flex; justify-content: space-between; align-items: center;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sheet-title { font-family: var(--display); font-size: 24px; font-weight: 600; flex: 1; text-align: center; }
.sheet-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-2); color: var(--text-2);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast);
}
.sheet-close:hover { color: var(--text); background: var(--surface-3); }
.sheet-close svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.sheet-body { flex: 1; overflow-y: auto; padding: 20px 24px 32px; -webkit-overflow-scrolling: touch; }

/* menu rows (identical to main site) */
.menu-row {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; margin-top: 12px;
  text-align: left; transition: all var(--t-fast);
}
.menu-row:first-child { margin-top: 0; }
.menu-row:hover { background: var(--surface-3); border-color: var(--border-strong); }
.menu-row-icon {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
}
.menu-row-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.menu-row-text { flex: 1; }
.menu-row-title { font-weight: 600; font-size: 14px; color: var(--text); }
.menu-row-sub { font-size: 12px; color: var(--text-3); }
.menu-row-arrow { width: 16px; height: 16px; stroke: var(--text-3); fill: none; stroke-width: 2; flex-shrink: 0; }
.settings-section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 10px;
}

/* ── account sheet components (verbatim from main site) ─────── */
.user-badge {
  display: flex; align-items: center; gap: 10px; padding: 12px 14px;
  background: var(--surface-2); border-radius: var(--radius); margin-bottom: 18px;
}
.user-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; overflow: hidden;
}
.user-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-info { flex: 1; min-width: 0; }
.user-name { font-weight: 600; font-size: 14px; color: var(--text); }
.user-email { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.stat-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; text-align: center; }
.stat-num { font-family: var(--sans); font-size: 28px; font-weight: 700; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.stat-flame { font-size: 16px; margin-left: 2px; }
.stat-label { font-size: 11px; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }

.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 12px; }
.cal-dow { text-align: center; font-size: 10px; color: var(--text-4); font-weight: 600; padding-bottom: 4px; }
.cal-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 7px; font-size: 11px; color: var(--text-3); background: var(--surface-2); }
.cal-none { background: var(--surface-2); }
.cal-low  { background: color-mix(in srgb, var(--gold) 35%, var(--surface-2)); color: var(--text); }
.cal-high { background: var(--gold); color: var(--bg); font-weight: 700; }
.cal-today { outline: 2px solid var(--gold); outline-offset: 1px; }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
.cal-legend span { display: flex; align-items: center; gap: 6px; }
.cal-swatch { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

.pref-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; margin-top: 10px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; text-align: left; }
.pref-toggle-text { font-size: 14px; color: var(--text); }
.pref-toggle-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-slider { position: absolute; inset: 0; cursor: pointer; background: var(--surface-3); border-radius: 999px; transition: 0.2s; }
.switch-slider::before { content: ''; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .switch-slider { background: var(--gold); }
.switch input:checked + .switch-slider::before { transform: translateX(18px); }

.reset-btn { width: 100%; margin-top: 10px; padding: 12px; background: transparent; border: 1px solid rgba(233,102,128,0.3); border-radius: var(--radius); color: #e96680; font-size: 13px; font-weight: 600; transition: all var(--t-fast); }
.reset-btn:hover { background: rgba(233,102,128,0.08); }

/* auth */
.auth-options { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.auth-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 18px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-size: 14px; font-weight: 600; transition: all var(--t-fast); }
.auth-btn:hover { background: var(--surface-3); border-color: var(--border-strong); }
.auth-btn.google { background: #fff; color: #202124; }
.auth-btn.google:hover { background: #f5f5f5; }
.auth-btn svg { width: 18px; height: 18px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-field { width: 100%; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; font-size: 15px; color: var(--text); margin-bottom: 10px; }
.auth-field:focus { outline: none; border-color: var(--gold); }
.auth-error { color: #f08aa1; font-size: 13px; margin-top: 8px; padding: 10px 12px; background: rgba(233,102,128,0.08); border-radius: 8px; }
.auth-toggle { text-align: center; color: var(--text-3); font-size: 13px; margin-top: 14px; }
.auth-toggle button { color: var(--gold); font-weight: 600; padding: 0; }
.auth-config-warning { background: rgba(233,102,128,0.08); border: 1px solid rgba(233,102,128,0.2); border-radius: var(--radius); padding: 14px 16px; font-size: 13px; color: var(--text-2); }

/* about */
.about-mission { padding: 16px 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 22px; }
.about-mission-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.about-mission p { font-family: var(--serif); font-size: 15px; line-height: 1.6; color: var(--text); margin: 0 0 10px 0; }
.about-mission p:last-child { margin-bottom: 0; }
.about-pillars-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-3); margin-bottom: 12px; }
.about-pillars { display: flex; flex-direction: column; gap: 12px; }
.about-pillar { padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-left: 3px solid var(--cat-color, var(--gold)); border-radius: 12px; }
.about-pillar-head { display: flex; align-items: center; margin-bottom: 10px; }
.about-pillar-head .cat-pill { margin-bottom: 0; }
.about-pillar-text { font-size: 15px; line-height: 1.6; color: var(--text-2); margin: 0; }
.about-footer { margin-top: 22px; padding: 14px; text-align: center; font-family: var(--serif); font-size: 14px; color: var(--text-3); font-style: italic; }

/* customize */
.customize-intro { font-size: 12px; color: var(--text-3); margin-bottom: 16px; }
.cat-list { display: flex; flex-direction: column; gap: 8px; }
.cat-item { display: flex; align-items: center; gap: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; transition: background var(--t-fast), border-color var(--t-fast), box-shadow var(--t-fast); touch-action: none; }
.cat-item.dragging { background: var(--surface-3); border-color: var(--gold); box-shadow: 0 8px 28px rgba(0,0,0,0.45); opacity: 0.97; }
.cat-handle { color: var(--text-4); cursor: grab; flex-shrink: 0; display: flex; touch-action: none; }
.cat-handle svg { width: 18px; height: 18px; }
.cat-swatch { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.cat-swatch-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bg); }
.cat-label { flex: 1; font-weight: 600; font-size: 14px; }

/* ── copy-link toast ────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 32px;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 13px;
  padding: 10px 18px;
  border-radius: 100px;
  opacity: 0;
  transition: opacity var(--t-med), transform var(--t-med);
  z-index: 200; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── main grows to fill ─────────────────────────────────────── */
main { flex: 1; }

/* ── hero (mirrors .edition-header) ─────────────────────────── */
.hero { padding: 28px 0 30px; border-bottom: 1px solid var(--border); }
.cat-pill {
  display: inline-flex; align-items: center;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  padding: 6px 12px; border-radius: 100px; margin-bottom: 20px;
}
.hero h1 {
  font-family: var(--display);
  font-size: 44px; line-height: 1.05; font-weight: 500;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.lede { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--text-2); }
@media (min-width: 1024px) {
  .hero h1 { font-size: 56px; }
  .lede { font-size: 19px; }
}

/* ── sections ───────────────────────────────────────────────── */
section { padding: 32px 0; border-bottom: 1px solid var(--border); }
.kicker {
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); font-weight: 700; margin-bottom: 14px;
}
h2 {
  font-family: var(--display); font-size: 30px; font-weight: 600;
  letter-spacing: -0.01em; margin-bottom: 14px;
}
section p { color: var(--text-2); font-size: 15.5px; line-height: 1.7; margin-bottom: 14px; }
section p:last-child { margin-bottom: 0; }
section p.muted { color: var(--text-3); }

/* ── numbered insight list ──────────────────────────────────── */
.insight { list-style: none; display: grid; gap: 16px; }
.insight li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; align-items: start; }
.insight .n { font-family: var(--sans); font-size: 18px; color: var(--accent); font-weight: 600; line-height: 1.4; }
.insight b { color: var(--text); font-weight: 600; }
.insight span { color: var(--text-2); }

/* ── figure ─────────────────────────────────────────────────── */
.figwrap {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px; text-align: center;
}
.figwrap svg { max-width: 100%; height: auto; }
.figcap {
  font-family: var(--serif); font-style: italic; font-size: 13.5px;
  color: var(--text-3); margin-top: 16px; max-width: 560px;
  margin-left: auto; margin-right: auto;
}

/* ── worked example ─────────────────────────────────────────── */
.example {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 22px 24px;
}
.example .who {
  font-size: 11px; letter-spacing: 0.08em; color: var(--accent);
  text-transform: uppercase; font-weight: 700; margin-bottom: 9px;
}
.example p { font-size: 15px; line-height: 1.7; color: var(--text); }
.example p.muted { color: var(--text-2); margin-bottom: 0; }

/* ── CTA ────────────────────────────────────────────────────── */
.cta {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong); border-radius: var(--radius-xl);
  padding: 36px 30px; text-align: center; margin: 34px 0 6px;
}
.cta h3 { font-family: var(--display); font-size: 30px; font-weight: 600; margin-bottom: 10px; }
.cta > p { color: var(--text-2); font-size: 15px; max-width: 540px; margin: 0 auto; }
.btn {
  display: inline-block; background: var(--accent); color: #0a0a0f;
  font-weight: 600; font-size: 15px; padding: 13px 28px; border-radius: 100px;
  margin-top: 18px; transition: filter var(--t-fast);
}
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border-strong); margin-left: 8px; }
.price { font-size: 12.5px; color: var(--text-3); margin-top: 14px; }

/* ── footer ─────────────────────────────────────────────────── */
footer { padding: 34px 0 60px; text-align: center; color: var(--text-3); font-size: 13px; }
footer a { color: var(--text-2); }
footer a:hover { color: var(--text); }

/* ── hub ────────────────────────────────────────────────────── */
.hubhead { padding: 28px 0 4px; }
.hubhead h1 {
  font-family: var(--display);
  font-size: 44px; line-height: 1.05; font-weight: 500;
  letter-spacing: -0.02em; margin: 0 0 12px;
}
.hubhead h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
.hubhead p { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--text-2); }
@media (min-width: 1024px) {
  .hubhead h1 { font-size: 56px; }
  .hubhead p { font-size: 19px; }
}

.hubgrid { display: grid; grid-template-columns: 1fr; gap: 16px; margin: 28px 0 8px; }
@media (min-width: 600px) { .hubgrid { grid-template-columns: repeat(2, 1fr); } }
.fcard {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-top: 3px solid var(--cardc, var(--gold)); border-radius: var(--radius-lg);
  padding: 24px 24px 22px; transition: transform var(--t-fast), border-color var(--t-fast);
}
.fcard:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.fcard .pill { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--cardc, var(--gold)); }
.fcard h3 { font-family: var(--display); font-size: 25px; font-weight: 600; margin: 10px 0 7px; letter-spacing: -0.01em; color: var(--text); }
.fcard p { font-family: var(--serif); font-size: 14.5px; line-height: 1.55; color: var(--text-2); margin: 0; }
.fcard .arrow { color: var(--cardc, var(--gold)); font-size: 13px; margin-top: 14px; display: inline-block; }

/* ── worksheet promo (on framework pages) ───────────────────── */
.ws-promo {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 24%, transparent);
  border-radius: var(--radius-lg); padding: 18px 22px; margin-top: 26px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.ws-promo:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-2px); }
.ws-promo-text { font-size: 14.5px; line-height: 1.55; color: var(--text-2); flex: 1; min-width: 240px; }
.ws-promo-text b { color: var(--text); font-weight: 600; }
.ws-promo .btn { margin-top: 0; white-space: nowrap; }

/* ── worksheet (Layer 2: interactive, data-driven) ──────────── */
.ws-intro { color: var(--text-2); font-size: 15.5px; line-height: 1.7; margin-top: 26px; }
.ws-note { color: var(--text-3); font-size: 13px; line-height: 1.5; margin-top: 8px; }
.ws-situation { margin: 24px 0 4px; }
.ws-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.ws-input {
  width: 100%; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px 16px; font-size: 15px; font-family: var(--sans);
  color: var(--text); transition: border-color var(--t-fast);
}
.ws-input:focus { outline: none; border-color: var(--accent); }
.ws-input::placeholder { color: var(--text-4); }

.ws-progress {
  position: sticky; top: 74px; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--border); border-radius: 100px;
  padding: 9px 16px; margin: 20px 0 4px; font-size: 13px; color: var(--text-2); font-weight: 600;
}
.ws-progress-bar { flex: 1; height: 6px; border-radius: 100px; background: var(--surface-3); overflow: hidden; }
.ws-progress-fill { height: 100%; width: 0%; background: var(--accent); border-radius: 100px; transition: width var(--t-med); }
.ws-progress-saved { color: var(--text-3); font-size: 12px; font-weight: 500; white-space: nowrap; min-width: 56px; text-align: right; }

.ws-moves { list-style: none; display: grid; gap: 18px; margin: 26px 0 0; padding: 0; }
.ws-move {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--surface-3);
  border-radius: var(--radius-lg); padding: 22px 22px 20px;
  transition: border-color var(--t-fast);
}
.ws-move.filled { border-left-color: var(--accent); }
.ws-move-head { display: grid; grid-template-columns: 38px 1fr; gap: 12px; align-items: baseline; }
.ws-move-n { font-family: var(--display); font-size: 26px; color: var(--accent); font-weight: 600; line-height: 1; }
.ws-move-title { font-size: 17px; font-weight: 600; color: var(--text); }
.ws-move-prompt { color: var(--text-2); font-size: 14px; line-height: 1.6; margin: 8px 0 14px 50px; }
@media (max-width: 480px) { .ws-move-prompt { margin-left: 0; } }
.ws-textarea {
  display: block; width: 100%; min-height: 84px; resize: none; overflow: hidden;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 13px 15px; font-size: 15px; font-family: var(--sans); line-height: 1.6; color: var(--text);
  transition: border-color var(--t-fast);
}
.ws-textarea:focus { outline: none; border-color: var(--accent); }
.ws-textarea::placeholder { color: var(--text-4); }

.ws-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 8px; }
.ws-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 100px;
  font-size: 14px; font-weight: 600; border: 1px solid var(--border-strong); color: var(--text);
  background: var(--surface-2); transition: all var(--t-fast);
}
.ws-btn:hover { background: var(--surface-3); }
.ws-btn.primary { background: var(--accent); color: #0a0a0f; border-color: var(--accent); }
.ws-btn.primary:hover { filter: brightness(1.08); }
.ws-btn.danger { color: #e96680; border-color: rgba(233,102,128,0.3); background: transparent; }
.ws-btn.danger:hover { background: rgba(233,102,128,0.08); }
.ws-btn svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── print / save-as-PDF: colored, polished layout ──────────── */
@media print {
  html, body { background: #fff !important; color: #222 !important; }
  .header, footer, .ws-actions, .ws-progress, .ws-intro, .ws-note,
  .sheet, .sheet-backdrop, .cta, .ws-promo, .toast { display: none !important; }
  .app { max-width: none; padding: 0; }
  .hero { border: none; padding: 0 0 14px; margin-bottom: 20px; }
  .hero h1 { color: #000 !important; font-size: 32px; font-weight: 600; }
  .hero h1 em { font-style: italic; color: #0a0a0f !important; }
  .lede { color: #555 !important; font-size: 15px; }
  .cat-pill {
    color: var(--accent) !important; background: transparent !important;
    border: 1.5px solid var(--accent) !important; font-weight: 700;
  }
  .ws-label { color: var(--accent) !important; font-weight: 700; letter-spacing: 0.12em; }
  .ws-input {
    background: #fafafa !important; border: 1.5px solid #ddd !important;
    color: #222 !important; padding: 11px 13px; font-size: 15px;
  }
  .ws-move {
    background: #fafafa !important; border-left: 4px solid var(--accent) !important;
    border-top: 1px solid #ddd !important; border-right: 1px solid #ddd !important;
    border-bottom: 1px solid #ddd !important;
    break-inside: avoid; page-break-inside: avoid; margin-bottom: 16px;
  }
  .ws-move-n { color: var(--accent) !important; font-size: 28px; font-weight: 700; }
  .ws-move-title { color: #000 !important; font-weight: 700; font-size: 18px; }
  .ws-move-prompt { color: #555 !important; font-size: 13px; line-height: 1.5; }
  .ws-textarea {
    background: #fff !important; border: 1px solid #ccc !important;
    color: #222 !important; padding: 11px 13px; font-size: 14px; min-height: 60px;
  }
}
