/* ══════════════════════════════════════════════════
   अर्थ-संचित (Legacy Book) — standalone page.
   Loads with shared.css + landing.css (for .lp-btn / .lp-cta-row
   only); everything below is specific to this tool: the intro
   screen, the workspace (sidebar + accordion form), the section
   map, the celebration toast and the print-preview booklet.
   Palette/type follow shared.css tokens throughout — no colors
   or fonts are hardcoded outside of print-only greyscale tweaks.
   ══════════════════════════════════════════════════ */

body { background: #fff; }
* { box-sizing: border-box; }

/* ── self-contained language toggle (same widget as ff-calculator.css) ── */
.lang-toggle {
  position: relative; display: flex; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 30px; padding: 3px; flex-shrink: 0;
}
.lang-indicator {
  position: absolute; top: 3px; left: 3px; width: calc(50% - 3px); height: calc(100% - 6px);
  background: var(--text); border-radius: 30px; transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.lang-toggle:has(#lb-en.on) .lang-indicator { transform: translateX(100%); }
.lb {
  position: relative; z-index: 1; padding: 8px 14px; font-size: 12px; font-weight: 700;
  border: none; white-space: nowrap; background: transparent; color: var(--muted);
  cursor: pointer; transition: color .18s; min-height: 36px; border-radius: 30px;
}
.lb.on { color: white; }
.lb:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ── shared eyebrow / buttons ─────────────────────── */
.as-eyebrow { color: var(--accent-text); font-size: 10px; font-weight: 800; letter-spacing: .15em; margin: 0 0 11px; text-transform: uppercase; }
.as-primary-btn, .as-secondary-btn {
  align-items: center; border: 0; border-radius: 8px; cursor: pointer; display: inline-flex;
  font-size: 13px; font-weight: 750; gap: 14px; justify-content: center; min-height: 46px; padding: 0 19px;
  transition: background .15s, border .15s, transform .15s; font-family: inherit;
}
.as-primary-btn { background: var(--text); color: #fff; }
.as-primary-btn:hover { background: var(--accent-text); transform: translateY(-1px); }
.as-primary-btn:disabled, .as-secondary-btn:disabled { cursor: not-allowed; opacity: .38; transform: none; }
.as-secondary-btn { background: #fff; border: 1px solid var(--border); color: var(--text); }
.as-secondary-btn:hover:not(:disabled) { border-color: var(--accent); }

/* ── intro header — same white/blur/height/logo treatment as every
   other page's header (site.css `nav`, landing.css `.lp-nav`) ── */
.as-intro-header {
  align-items: center; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); display: flex;
  height: 64px; justify-content: space-between; margin: 0 auto; max-width: 1320px; padding: 0 clamp(22px, 5vw, 70px);
  position: sticky; top: 0; z-index: 30;
}
.as-intro-header img { height: 44px; width: 59px; object-fit: contain; display: block; }
.as-header-right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.as-home-link { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 13.5px; white-space: nowrap; }
.as-home-link:hover { color: var(--accent-text); }

/* ── intro screen ─────────────────────────────────── */
.as-intro-screen { margin: 0 auto; max-width: 1180px; padding: 0 clamp(22px, 5vw, 68px) 90px; }
.as-intro-hero { align-items: center; display: flex; min-height: 480px; padding: 68px 0 60px; }
.as-hero-content { max-width: 820px; }
.as-intro-hero h1 { font-family: var(--font-serif); font-size: clamp(46px, 6.5vw, 76px); font-weight: 650; letter-spacing: -.03em; line-height: 1.02; margin: 0 0 24px; color: var(--text); }
.as-intro-body { color: var(--text); font-size: clamp(16px, 1.5vw, 19px); font-weight: 400; line-height: 1.7; margin: 0 0 28px; max-width: 780px; }
.as-intro-actions { display: flex; }
.as-intro-cta { margin-top: 8px; }

.as-guide-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--r); padding: clamp(24px, 4vw, 40px); }
.as-guide-heading { align-items: start; display: flex; justify-content: space-between; margin-bottom: 20px; gap: 16px; }
.as-guide-heading h2 { font-family: var(--font-serif); font-size: clamp(25px, 3vw, 34px); font-weight: 650; letter-spacing: -.02em; line-height: 1.15; margin: 0; color: var(--text); }
.as-guide-sub { color: var(--muted); font-size: 12px; margin: 8px 0 0; }
.as-guide-heading > span {
  align-items: center; background: var(--accent-bg); border: 1px solid var(--border); border-radius: 50%;
  color: var(--accent-text); display: flex; font-size: 14px; font-style: italic; font-weight: 800; height: 34px; justify-content: center; width: 34px; flex-shrink: 0;
}
.as-instruction-grid { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.as-instruction-grid details { background: #fff; border: 1px solid var(--border); border-radius: 8px; padding: 0 15px; }
.as-instruction-grid summary { align-items: center; cursor: pointer; display: grid; font-size: 12px; font-weight: 750; gap: 10px; grid-template-columns: 1fr 18px; line-height: 1.4; list-style: none; min-height: 64px; color: var(--text); }
.as-instruction-grid summary::-webkit-details-marker { display: none; }
.as-instruction-grid summary b { color: var(--accent); font-size: 17px; font-weight: 400; text-align: center; transition: transform .15s; }
.as-instruction-grid details[open] summary b { transform: rotate(45deg); }
.as-instruction-grid details p { color: var(--muted); font-size: 11.5px; line-height: 1.65; margin: 0 0 18px; }

/* ── workspace header — same white/blur/logo treatment as every other
   page's header; kept a bit taller than the 64px standard since this
   toolbar packs in a progress bar and several action buttons ── */
.as-workspace-header {
  align-items: center; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); display: grid;
  grid-template-columns: 140px minmax(180px, 1fr) auto; height: 74px; padding: 0 clamp(16px, 3vw, 42px);
  position: sticky; top: 0; z-index: 30;
}
.as-mini-brand { background: transparent; border: 0; cursor: pointer; padding: 0; text-align: left; }
.as-mini-brand img { height: 44px; width: 59px; object-fit: contain; display: block; }
.as-header-progress { margin: 0 auto; max-width: 420px; width: 70%; }
.as-header-progress > span { color: var(--muted); display: block; font-size: 9px; font-weight: 750; letter-spacing: .08em; margin-bottom: 6px; text-transform: uppercase; }
.as-progress-track { background: var(--bg2); border-radius: 4px; height: 4px; overflow: hidden; }
.as-progress-track i { background: var(--accent); display: block; height: 100%; transition: width .3s ease; }
.as-header-actions { align-items: center; display: flex; gap: 7px; }
.as-header-btn {
  background: #fff; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; font-size: 10.5px;
  font-weight: 750; min-height: 36px; padding: 0 11px; color: var(--text); font-family: inherit;
}
.as-header-btn:hover { background: var(--bg2); border-color: var(--accent); }
.as-save-btn { color: var(--accent-text); }
.as-save-action { align-items: center; display: flex; gap: 5px; position: relative; }
.as-save-info-btn {
  align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 50%; color: var(--accent-text);
  cursor: pointer; display: flex; font-size: 10px; font-style: italic; font-weight: 800; height: 22px; justify-content: center; width: 22px;
}
.as-save-popover {
  background: #fff; border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 14px 35px rgba(35,33,28,.13);
  color: var(--muted); font-size: 10.5px; line-height: 1.55; margin: 0; padding: 12px; position: absolute; right: 0; top: 44px; width: 245px; z-index: 40;
}

/* ── workspace layout: sidebar + focus panel ──────── */
.as-workspace-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); margin: 0 auto; max-width: 1500px; min-height: calc(100vh - 74px); }
.as-sidebar { align-self: start; background: var(--bg2); border-right: 1px solid var(--border); height: calc(100vh - 74px); overflow: auto; padding: 34px 22px 28px 26px; position: sticky; top: 74px; }
.as-journey-title { align-items: flex-end; display: flex; justify-content: space-between; margin: 0 8px 18px; }
.as-journey-title span { font-size: 16px; font-weight: 750; color: var(--text); }
.as-journey-title strong { color: var(--accent-text); font-size: 11px; }
.as-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.as-sidebar nav button { align-items: center; background: transparent; border: 0; border-radius: 8px; cursor: pointer; display: grid; gap: 11px; grid-template-columns: 28px 1fr; padding: 9px; text-align: left; font-family: inherit; }
.as-sidebar nav button:hover { background: #fff; }
.as-sidebar nav button.active { background: var(--accent-bg); color: var(--accent-text); }
.as-step-number { align-items: center; border: 1px solid var(--border); border-radius: 50%; color: var(--muted); display: flex; font-size: 9px; height: 26px; justify-content: center; width: 26px; flex-shrink: 0; }
.as-step-number.as-done { background: var(--accent); border-color: var(--accent); color: #fff; }
.as-sidebar nav strong { display: block; font-size: 11px; font-weight: 700; line-height: 1.3; color: var(--text); }
.as-sidebar nav small { color: var(--muted); display: block; font-size: 8px; margin-top: 2px; }
.as-sidebar > p { border-top: 1px solid var(--border); color: var(--muted); font-size: 9px; line-height: 1.5; margin: 20px 8px 0; padding-top: 16px; }

.as-focus-panel { background: #fff; margin: 0 auto; max-width: 1050px; padding: 56px clamp(30px, 6vw, 80px) 100px; width: 100%; }
.as-focus-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 30px; gap: 16px; }
.as-focus-heading h1 { font-family: var(--font-serif); font-size: clamp(34px, 4.5vw, 52px); font-weight: 650; letter-spacing: -.02em; line-height: 1; margin: 0; color: var(--text); }
.as-focus-meta { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 9px; font-weight: 700; gap: 7px; letter-spacing: .07em; margin-top: 13px; text-transform: uppercase; }
.as-section-score { align-items: center; background: var(--bg2); border: 1px solid var(--border); border-radius: 40px; display: flex; gap: 8px; min-width: 116px; padding: 8px 13px 8px 8px; flex-shrink: 0; }
.as-section-score strong { align-items: center; background: var(--accent-bg); border-radius: 50%; color: var(--accent-text); display: flex; font-size: 16px; height: 34px; justify-content: center; width: 34px; }
.as-section-score span { color: var(--muted); font-size: 8px; font-weight: 700; line-height: 1.3; text-transform: uppercase; }

/* ── accordion ─────────────────────────────────────── */
.as-accordion-stack { display: flex; flex-direction: column; gap: 10px; }
.as-accordion-card { background: #fff; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.as-accordion-card.as-open { border-color: var(--accent); box-shadow: 0 7px 22px rgba(35,33,28,.05); }
.as-accordion-trigger { align-items: center; background: transparent; border: 0; cursor: pointer; display: grid; gap: 13px; grid-template-columns: 30px 1fr 27px; min-height: 70px; padding: 13px 19px; text-align: left; width: 100%; font-family: inherit; }
.as-accordion-index { color: var(--accent); font-family: ui-monospace, monospace; font-size: 9px; }
.as-accordion-copy strong { display: block; font-size: 16px; font-weight: 700; color: var(--text); }
.as-accordion-copy small { color: var(--muted); display: block; font-size: 8px; margin-top: 3px; text-transform: uppercase; }
.as-accordion-icon { align-items: center; background: var(--accent-bg); border-radius: 50%; color: var(--accent-text); display: flex; font-size: 16px; height: 26px; justify-content: center; width: 26px; flex-shrink: 0; }
.as-accordion-body { border-top: 1px solid var(--border); padding: 27px clamp(18px, 4vw, 36px) 32px; }

.as-field-grid { display: grid; gap: 22px 26px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.as-field { display: flex; flex-direction: column; min-width: 0; }
.as-field-wide { grid-column: 1 / -1; }
.as-field-label-row { align-items: center; display: flex; gap: 8px; justify-content: space-between; margin-bottom: 7px; }
.as-field-label-row label { font-size: 11px; font-weight: 750; color: var(--text); }
.as-info-btn {
  align-items: center; background: #fff; border: 1px solid var(--border); border-radius: 50%; color: var(--accent-text);
  cursor: pointer; display: flex; font-size: 10px; font-style: italic; font-weight: 800; height: 19px; justify-content: center; min-width: 19px; flex-shrink: 0;
}
.as-info-btn:hover, .as-info-btn[aria-expanded="true"] { background: var(--accent-bg); border-color: var(--accent); }
.as-field-help { background: var(--accent-bg); border-left: 2px solid var(--accent); color: var(--accent-text); font-size: 9.5px; line-height: 1.55; margin: 0 0 7px; padding: 8px 9px; }
.as-field input, .as-field textarea, .as-field select {
  background: #fff; border: 1px solid var(--border); border-radius: 6px; color: var(--text); outline: 0;
  padding: 11px 12px; transition: border .15s, box-shadow .15s; width: 100%; font-family: inherit; font-size: 14px;
}
.as-field input, .as-field select { min-height: 43px; }
.as-field textarea { line-height: 1.5; min-height: 78px; resize: vertical; }
.as-field textarea[rows="8"] { min-height: 205px; }
.as-field input:focus, .as-field textarea:focus, .as-field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(81,122,75,.12); }
.as-field input::placeholder, .as-field textarea::placeholder { color: #a9a396; }
.as-field-meta { align-items: center; display: flex; justify-content: space-between; margin-top: 6px; min-height: 19px; gap: 10px; }
.as-note-toggle { align-items: center; background: transparent; border: 0; color: var(--muted); cursor: pointer; display: flex; font-size: 8.5px; font-weight: 700; gap: 3px; padding: 2px 0; font-family: inherit; }
.as-note-toggle:hover, .as-note-toggle.as-has-note { color: var(--accent-text); }
.as-validation { font-size: 8.5px; font-weight: 700; white-space: nowrap; }
.as-validation.as-valid { color: var(--accent-text); }
.as-validation.as-invalid { color: var(--err-text); }
.as-field-note { background: var(--bg) !important; font-size: 10.5px; margin-top: 6px; min-height: 62px !important; }
.as-risk-note { background: var(--err-bg); border-left: 2px solid var(--err-border); color: var(--err-text); font-size: 10.5px; line-height: 1.6; margin: 24px 0 0; padding: 12px 14px; }
.as-remove-record { background: transparent; border: 0; border-bottom: 1px solid var(--err-border); color: var(--err-text); cursor: pointer; font-size: 9.5px; margin-top: 22px; padding: 3px 0; font-family: inherit; }
.as-add-record-btn {
  align-items: center; background: #fff; border: 1px dashed var(--accent); border-radius: 8px; color: var(--accent-text);
  cursor: pointer; display: flex; font-size: 10.5px; font-weight: 750; gap: 8px; justify-content: center; margin-top: 11px; min-height: 45px; width: 100%; font-family: inherit;
}
.as-add-record-btn:hover { background: var(--accent-bg); }
.as-add-record-btn span { font-size: 15px; font-weight: 400; }

/* ── export card + focus controls ─────────────────── */
.as-export-card { align-items: center; background: var(--accent-bg); border: 1px solid var(--accent); border-radius: 10px; color: var(--text); display: grid; gap: 18px; grid-template-columns: 64px 1fr auto; margin-top: 28px; padding: 28px; }
.as-export-badge { align-items: center; background: #fff; border: 1px solid var(--accent); border-radius: 50%; color: var(--accent-text); display: flex; font-size: 15px; font-weight: 750; height: 58px; justify-content: center; width: 58px; }
.as-export-card h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; margin: 0; color: var(--text); }
.as-export-card p { color: var(--muted); font-size: 11.5px; line-height: 1.6; margin: 7px 0 0; max-width: 520px; }
.as-export-help { margin-top: 10px !important; }
.as-export-help a { color: var(--accent-text); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.as-export-btn { align-self: center; white-space: nowrap; }

.as-focus-controls { align-items: center; border-top: 1px solid var(--border); display: grid; gap: 12px; grid-template-columns: auto 1fr auto; margin-top: 34px; padding-top: 25px; }
.as-skip-btn { background: transparent; border: 0; color: var(--muted); cursor: pointer; font-size: 10.5px; justify-self: center; text-decoration: underline; text-underline-offset: 4px; font-family: inherit; }
.as-skip-btn:disabled { opacity: .35; }
.as-completed-btn { background: var(--accent-text); }

/* ── section map overlay ───────────────────────────── */
.as-map-overlay { align-items: stretch; background: rgba(35,33,28,.35); display: flex; inset: 0; justify-content: flex-end; position: fixed; z-index: 50; }
.as-section-map { animation: as-slide-in .22s ease both; background: #fff; box-shadow: -20px 0 55px rgba(35,33,28,.15); max-width: 580px; overflow: auto; padding: 36px; width: min(92vw, 580px); }
@keyframes as-slide-in { from { transform: translateX(35px); opacity: 0; } }
.as-map-heading { align-items: start; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; margin-bottom: 24px; padding-bottom: 20px; gap: 16px; }
.as-map-heading h2 { font-size: 29px; font-weight: 700; letter-spacing: -.02em; margin: 0; color: var(--text); }
.as-map-heading > button { background: var(--accent-bg); border: 0; border-radius: 50%; cursor: pointer; font-size: 22px; height: 35px; line-height: 1; width: 35px; color: var(--text); flex-shrink: 0; }
.as-map-grid { display: grid; gap: 9px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.as-map-grid button { background: #fff; border: 1px solid var(--border); border-radius: 7px; cursor: pointer; display: grid; gap: 5px; min-height: 96px; padding: 14px; text-align: left; font-family: inherit; }
.as-map-grid button:hover, .as-map-grid button.active { background: var(--accent-bg); border-color: var(--accent); }
.as-map-grid button > span { color: var(--accent); font-family: ui-monospace, monospace; font-size: 9px; }
.as-map-grid button > span.as-done { align-items: center; background: var(--accent); border-radius: 50%; color: #fff; display: flex; height: 19px; justify-content: center; width: 19px; }
.as-map-grid strong { font-size: 14px; font-weight: 700; color: var(--text); }
.as-map-grid small { color: var(--muted); font-size: 8px; }

/* ── celebration toast — top-right, below the sticky header, out of the
   way of the bottom-of-panel CTAs; pointer-events:none so it can never
   block a click even mid-animation ── */
.as-celebration-toast { align-items: center; animation: as-toast-in .3s ease both; background: var(--text); border-radius: 9px; top: 90px; box-shadow: 0 15px 45px rgba(35,33,28,.25); color: #fff; display: flex; gap: 12px; max-width: 360px; padding: 14px 17px; position: fixed; right: 20px; z-index: 70; pointer-events: none; }
@keyframes as-toast-in { from { transform: translateY(-14px); opacity: 0; } }
.as-celebration-toast > span { color: #9bd68c; font-size: 20px; }
.as-celebration-toast strong { color: #b7e6ab; font-size: 8px; letter-spacing: .11em; text-transform: uppercase; }
.as-celebration-toast p { font-size: 13px; font-weight: 600; margin: 3px 0 0; }

/* ── print-preview booklet ─────────────────────────── */
.as-print-shell { background: var(--bg2); inset: 0; overflow: auto; padding: 96px 24px 56px; position: fixed; z-index: 90; }
.as-print-toolbar { align-items: center; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--border); display: grid; gap: 10px; grid-template-columns: 1fr auto auto; height: 74px; left: 0; padding: 0 clamp(18px, 4vw, 52px); position: fixed; right: 0; top: 0; z-index: 92; }
.as-print-toolbar strong { display: block; font-size: 13px; color: var(--text); }
.as-print-toolbar span { color: var(--muted); display: block; font-size: 9px; margin-top: 3px; }
.as-print-report { align-items: center; display: flex; flex-direction: column; gap: 24px; margin: 0 auto; }
.as-print-page { background: #fff; box-shadow: 0 12px 36px rgba(35,33,28,.15); min-height: 803px; padding: 50px 54px 56px; position: relative; width: 594px; color: #111; }
.as-print-cover-page { align-items: center; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.as-print-cover-title { margin-bottom: 260px; }
.as-print-cover-title h1 { font-size: 38px; font-weight: 650; letter-spacing: -.02em; margin: 0; font-family: var(--font-serif); }
.as-print-cover-title p { font-size: 33px; font-weight: 600; letter-spacing: .01em; margin: 20px 0 0; }
.as-print-cover-page > img { height: 104px; width: 81px; object-fit: contain; }
.as-print-intro-page > img { display: block; height: 42px; width: 33px; margin: 0 auto 34px; object-fit: contain; }
.as-print-intro-copy { font-size: 13px; font-weight: 600; line-height: 1.65; margin: 0; }
.as-print-intro-page blockquote { background: var(--accent-bg); border-radius: 12px; margin: 42px 0 0; padding: 24px; text-align: center; }
.as-print-intro-page blockquote p { font-size: 14px; line-height: 1.65; margin: 0; }
.as-print-intro-page blockquote cite { display: block; font-size: 11px; font-style: normal; margin-top: 9px; }
.as-print-intro-page > small { bottom: 45px; color: var(--muted); font-size: 8px; position: absolute; }
.as-print-data-page h2 { border-bottom: 1px solid #9a988f; font-size: 20px; font-weight: 700; margin: 0 0 18px; padding-bottom: 8px; font-family: var(--font-serif); }
.as-print-group { break-inside: avoid; margin-bottom: 17px; }
.as-print-group h3 { font-size: 13px; font-weight: 700; margin: 0 0 7px; }
.as-print-row { align-items: end; display: grid; gap: 8px; grid-template-columns: 38% 1fr; min-height: 26px; }
.as-print-row > strong { font-size: 8px; font-weight: 650; padding-bottom: 4px; }
.as-print-row p { border-bottom: 1px dotted #777; font-size: 9px; line-height: 1.35; margin: 0; min-height: 21px; padding: 3px 2px; white-space: pre-wrap; }
.as-print-row small { color: #555; font-size: 7px; grid-column: 2; margin: 0 0 4px; }
.as-print-footer { align-items: center; bottom: 20px; display: flex; justify-content: center; left: 45px; position: absolute; right: 45px; }
.as-print-footer img { height: 23px; width: 18px; object-fit: contain; }
.as-print-footer span { color: #777; font-size: 7px; position: absolute; right: 0; }
.as-print-brand-page { align-items: center; display: flex; flex-direction: column; justify-content: center; text-align: center; }
.as-print-brand-page > p { font-size: 11px; font-weight: 700; margin: 0 0 30px; }
.as-print-brand-page img { height: 123px; width: 96px; object-fit: contain; }
.as-print-brand-page strong { font-size: 24px; margin-top: 13px; font-family: var(--font-serif); }
.as-print-brand-page span { font-size: 12px; margin-top: 10px; }

/* ── responsive ─────────────────────────────────────── */
@media (max-width: 1050px) {
  .as-workspace-header { grid-template-columns: 85px 1fr auto; }
  .as-guide-btn { display: none; }
  .as-workspace-layout { grid-template-columns: 215px minmax(0, 1fr); }
  .as-sidebar { padding-left: 16px; padding-right: 14px; }
  .as-focus-panel { padding-left: 32px; padding-right: 32px; }
}

@media (max-width: 820px) {
  .as-intro-hero { min-height: 440px; }
  .as-instruction-grid { grid-template-columns: 1fr; }
  .as-workspace-header { grid-template-columns: 75px 1fr auto; padding: 0 12px; }
  .as-header-progress { width: 85%; }
  .as-workspace-layout { display: block; }
  .as-sidebar { display: none; }
  .as-focus-panel { padding: 40px 20px 70px; }
  .as-field-grid { grid-template-columns: 1fr; }
  .as-field-wide { grid-column: auto; }
  .as-export-card { grid-template-columns: 58px 1fr; }
  .as-export-btn { grid-column: 1 / -1; justify-self: stretch; }
  .as-export-help { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .as-intro-screen { padding: 0 18px 64px; }
  .as-intro-hero { min-height: 420px; padding: 52px 0; }
  .as-intro-hero h1 { font-size: 46px; }
  .as-guide-card { padding: 22px 16px; }
  .as-guide-heading h2 { font-size: 26px; }
  .as-guide-heading > span { display: none; }
  .as-workspace-header { grid-template-columns: 1fr auto; height: 68px; }
  .as-workspace-header .as-header-progress, .as-workspace-header .lang-toggle, .as-guide-btn { display: none; }
  .as-header-actions { gap: 5px; }
  .as-save-btn { font-size: 0; padding: 0 9px; }
  .as-save-btn::after { content: "Save"; font-size: 10px; }
  .as-focus-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .as-focus-heading h1 { font-size: 36px; }
  .as-accordion-trigger { padding: 12px 14px; }
  .as-accordion-copy strong { font-size: 15px; }
  .as-accordion-body { padding: 22px 14px 26px; }
  .as-focus-controls { grid-template-columns: 1fr 1fr; }
  .as-skip-btn { grid-column: 1 / -1; grid-row: 2; }
  .as-focus-controls .as-primary-btn, .as-focus-controls .as-secondary-btn { padding: 0 10px; }
  .as-section-map { padding: 28px 16px; }
  .as-map-grid { grid-template-columns: 1fr; }
  .as-celebration-toast { top: 78px; left: 10px; right: 10px; max-width: none; }
  .as-print-shell { padding: 84px 10px 35px; }
  .as-print-toolbar { grid-template-columns: 1fr auto; height: 66px; padding: 0 12px; }
  .as-print-toolbar > div span, .as-print-toolbar .as-secondary-btn { display: none; }
  .as-print-page { min-height: 129vw; padding: 8vw 9vw; width: 96vw; }
}

@media print {
  @page { margin: 0; size: 148.5mm 200.7mm; }
  body { background: #fff; color: #111; }
  .as-intro-header, .as-intro-screen, .as-workspace-header, .as-workspace-layout, .as-map-overlay, .as-celebration-toast, .as-print-toolbar { display: none !important; }
  .as-print-shell { background: #fff; inset: auto; overflow: visible; padding: 0; position: static; }
  .as-print-report { display: block; margin: 0; }
  .as-print-page { box-shadow: none; break-after: page; height: 200.7mm; min-height: 200.7mm; overflow: hidden; padding: 13mm 13.5mm 14mm; width: 148.5mm; }
  .as-print-data-page { height: auto; min-height: 200.7mm; overflow: visible; }
  .as-print-page:last-child { break-after: auto; }
  .as-print-cover-title { margin-bottom: 67mm; }
  .as-print-cover-title h1 { font-size: 27pt; }
  .as-print-cover-title p { font-size: 24pt; }
  .as-print-intro-copy { font-size: 10pt; }
  .as-print-intro-page blockquote p { font-size: 10pt; }
  .as-print-data-page h2 { font-size: 16pt; }
  .as-print-group h3 { font-size: 10pt; }
  .as-print-row { min-height: 5.8mm; }
  .as-print-row > strong { font-size: 7pt; }
  .as-print-row p { font-size: 7.5pt; min-height: 4.5mm; }
}
