/* The Brand Translator — FC brand system (../standards/brand-system.md Part A)
   plus a form-wizard / document-builder component layer adapted by analogy
   from the Quiz kit (chips, progress, question type) and the Chatbot kit
   (copyable output block). New-archetype choices recorded via
   assumption-capture. */

:root {
  /* CORE */
  --gold:        #F2A900;
  --gold-dim:    rgba(242,169,0,0.10);
  --black:       #0D0D0D;
  --cream:       #FAF7F2;
  --cream2:      #F2EDE4;
  --cream3:      #E8E0D4;
  --muted:       #8C8075;
  --text:        #2A2420;
  --border:      rgba(13,13,13,0.08);
  --border-med:  rgba(13,13,13,0.14);

  /* ACCENT PAIRS */
  --c-teal:        #0E8A6E;
  --c-teal-bg:     #E6F5F1;
  --c-teal-border: rgba(14,138,110,0.15);
  --c-teal-text:   #0a4a3a;
  --c-blue:        #1A5FB4;
  --c-blue-bg:     #E8F0FB;
  --c-blue-border: rgba(26,95,180,0.15);
  --c-blue-text:   #0f3470;
  --c-coral:        #C04B28;
  --c-coral-bg:     #FAECE7;
  --c-coral-border: rgba(192,75,40,0.15);
  --c-coral-text:   #6b2510;
  --c-amber:        #9E6800;
  --c-amber-bg:     #FDF3DC;
  --c-amber-border: rgba(158,104,0,0.15);
  --c-amber-text:   #5a3c00;
  --c-green:        #1A7A3C;
  --c-green-bg:     #E8F5EE;
  --c-green-border: rgba(26,122,60,0.15);
  --c-green-text:   #0e4523;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  min-height: 100vh;
  background: var(--cream);
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(242,169,0,0.07) 0%, transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(242,169,0,0.04) 0%, transparent 50%);
}
#app { max-width: 680px; margin: 0 auto; padding: 0 1.5rem 5rem; }

/* A4. Site header */
.site-header { padding: 2.25rem 0 2rem; display: flex; align-items: center; }
.logo-svg { height: 30px; width: auto; flex-shrink: 0; }
.header-rule { flex: 1; height: 1px; background: var(--border-med); margin-left: 1.5rem; }

/* A5. Buttons */
.btn-primary { display: inline-flex; align-items: center; gap: 9px; padding: 15px 32px; font-size: 15px; font-weight: 500; font-family: 'DM Sans', sans-serif; color: var(--black); background: var(--gold); border: none; border-radius: 10px; cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 16px rgba(242,169,0,0.35); }
.btn-primary:hover { background: #d9940a; box-shadow: 0 4px 24px rgba(242,169,0,0.45); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background: var(--cream3); box-shadow: none; cursor: not-allowed; transform: none; color: var(--muted); }
.btn-secondary { font-size: 14px; font-weight: 500; color: var(--text); background: transparent; border: 1px solid var(--border-med); border-radius: 9px; padding: 10px 16px; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; transition: all 0.15s; }
.btn-secondary:hover { background: var(--cream2); }
.btn-ghost { font-size: 14px; color: var(--muted); background: none; border: none; cursor: pointer; font-family: 'DM Sans', sans-serif; padding: 10px 0; transition: color 0.15s; }
.btn-ghost:hover { color: var(--text); }

/* A6. Animations */
.fade-in { animation: fadeUp 0.45s cubic-bezier(0.4,0,0.2,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.s1 { animation-delay: .07s; } .s2 { animation-delay: .14s; } .s3 { animation-delay: .21s; } .s4 { animation-delay: .28s; } .s5 { animation-delay: .35s; }

/* Intro (B2 by analogy) */
.intro-wrap { padding: 2rem 0 0; }
.intro-headline { font-family: 'Khand', sans-serif; font-size: 60px; font-weight: 700; line-height: 1.0; color: var(--black); margin-bottom: 1.5rem; letter-spacing: -0.01em; }
.intro-headline em { font-style: italic; color: var(--gold); }
.intro-divider { width: 48px; height: 3px; background: var(--gold); border-radius: 2px; margin-bottom: 1.5rem; }
.intro-sub  { font-size: 17px; color: var(--muted); line-height: 1.8; margin-bottom: 1rem; max-width: 520px; font-weight: 300; }
.intro-sub2 { font-size: 15px; color: var(--muted); line-height: 1.75; margin-bottom: 2.25rem; max-width: 480px; font-weight: 300; opacity: 0.8; }
.entry-question { font-family: 'Khand', sans-serif; font-size: 24px; font-weight: 600; color: var(--black); margin-bottom: 1rem; }
.entry-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Draft recovery banner (+ its in-place delete confirm state) */
.draft-banner { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--c-amber-bg); border: 1px solid var(--c-amber-border); border-radius: 12px; padding: 14px 16px; margin-bottom: 1.75rem; }
.draft-banner-text { font-size: 14px; color: var(--c-amber-text); line-height: 1.6; }
.draft-banner-actions { display: flex; gap: 8px; }
.draft-banner.danger { background: var(--c-coral-bg); border-color: rgba(192,75,40,0.35); }
.draft-banner.danger .draft-banner-text { color: var(--c-coral-text); }
.btn-danger { font-size: 14px; font-weight: 600; color: #fff; background: var(--c-coral); border: none; border-radius: 9px; padding: 10px 16px; cursor: pointer; font-family: 'DM Sans', sans-serif; white-space: nowrap; transition: background 0.15s; }
.btn-danger:hover { background: #a53e20; }

/* Step rail — five honest pages; pills are live anchors once unlocked */
.step-rail { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 2rem; }
.step-pill { font-family: 'Khand', sans-serif; font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 12px; border-radius: 20px; background: var(--cream2); color: var(--muted); border: 1px solid transparent; cursor: default; }
.step-pill.active { background: var(--gold); color: var(--black); }
.step-pill.done { background: var(--cream3); color: var(--text); }
.step-pill.step-link { cursor: pointer; }
.step-pill.step-link:not(.active):hover { border-color: var(--gold); background: var(--gold-dim); color: var(--text); }
.step-arrow { color: var(--cream3); font-size: 12px; }
.cta-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 0.9rem; }

/* Form sections */
.q-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; }
.q-text { font-family: 'Khand', sans-serif; font-size: 34px; font-weight: 600; color: var(--black); line-height: 1.15; margin-bottom: 0.5rem; }
.q-prompt { font-size: 14px; color: var(--muted); font-style: italic; font-weight: 300; line-height: 1.65; margin-bottom: 1.5rem; }
.err { font-size: 13px; color: var(--c-coral); margin-top: 10px; }
.q-btn-row { display: flex; align-items: center; justify-content: space-between; margin-top: 2rem; gap: 12px; }

.form-section { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.4rem 1.5rem; margin-bottom: 14px; }
.fs-title { font-family: 'Khand', sans-serif; font-size: 19px; font-weight: 600; color: var(--black); margin-bottom: 2px; }
.fs-hint { font-size: 13px; color: var(--muted); font-weight: 300; font-style: italic; line-height: 1.6; margin-bottom: 0.9rem; }
.fs-optional { font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); float: right; margin-top: 4px; }
.fs-required { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: #7a5500; background: var(--gold-dim); border: 1px solid rgba(242,169,0,0.45); border-radius: 20px; padding: 3px 10px; float: right; margin-top: 2px; }
.fs-required::before { content: '● '; color: var(--gold); }
.req-count { font-size: 12.5px; color: var(--muted); }

.field-label { display: block; font-size: 13px; font-weight: 500; color: var(--text); margin: 0.9rem 0 0.35rem; }
.field-label:first-of-type { margin-top: 0; }
input[type="text"], textarea {
  width: 100%; padding: 11px 14px; font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400;
  color: var(--text); background: var(--cream); border: 1px solid var(--border-med); border-radius: 10px;
  outline: none; transition: border-color 0.15s, background 0.15s; line-height: 1.6;
}
input[type="text"]:focus, textarea:focus { border-color: var(--gold); background: #fff; }
input::placeholder, textarea::placeholder { color: var(--muted); font-weight: 300; }
textarea { resize: vertical; min-height: 70px; }
.input-row { display: flex; gap: 8px; }
.input-row > input { flex: 1; min-width: 0; }
.triple { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.prefilled { border-color: var(--gold) !important; background: var(--gold-dim) !important; }

/* Colour fields */
.colour-row { display: flex; gap: 8px; align-items: center; }
.colour-row input[type="color"] { width: 44px; height: 44px; border: 1px solid var(--border-med); border-radius: 10px; background: var(--cream); padding: 4px; cursor: pointer; flex-shrink: 0; }
.colour-row input[type="text"] { flex: 1; min-width: 0; }

/* Tone sliders */
.slider-block { margin-bottom: 1.1rem; }
.slider-labels { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
input[type="range"] { width: 100%; accent-color: var(--gold); height: 28px; cursor: pointer; }

/* Chips (B3) */
.chip-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 0.5rem; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; font-size: 14px; font-weight: 400; font-family: 'DM Sans', sans-serif; color: var(--text); background: #fff; border: 1px solid var(--border-med); border-radius: 50px; cursor: pointer; transition: all 0.15s; user-select: none; }
.chip:hover { border-color: var(--gold); background: var(--gold-dim); }
.chip.selected { background: var(--gold); color: var(--black); border-color: var(--gold); font-weight: 500; box-shadow: 0 2px 8px rgba(242,169,0,0.25); }
.chip.single-select.selected { background: var(--black); color: #fff; border-color: var(--black); box-shadow: none; }
.chip-group-label { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0.9rem 0 0.5rem; }

/* Upload zones */
.dropzone { border: 2px dashed var(--border-med); border-radius: 14px; background: #fff; padding: 1.6rem 1.2rem; text-align: center; cursor: pointer; transition: all 0.15s; }
.dropzone:hover, .dropzone.dragover { border-color: var(--gold); background: var(--gold-dim); }
.dropzone-label { font-size: 14px; color: var(--text); font-weight: 500; margin-bottom: 4px; }
.dropzone-hint { font-size: 12px; color: var(--muted); font-weight: 300; }
.file-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.75rem; }
.file-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px 7px 12px; font-size: 12.5px; background: var(--cream2); border: 1px solid var(--border-med); border-radius: 50px; color: var(--text); max-width: 100%; }
.file-pill .file-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-pill button { border: none; background: var(--cream3); color: var(--muted); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1; flex-shrink: 0; }
.file-pill button:hover { background: var(--c-coral-bg); color: var(--c-coral); }
.photo-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 0.75rem; }
.photo-thumb { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border-med); }
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb button { position: absolute; top: 4px; right: 4px; border: none; background: rgba(13,13,13,0.65); color: #fff; width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: 12px; line-height: 1; }

/* Gap chips (audit result) */
.gap-note { background: var(--c-teal-bg); border: 1px solid var(--c-teal-border); border-radius: 12px; padding: 12px 15px; font-size: 14px; color: var(--c-teal-text); line-height: 1.65; margin-bottom: 0.9rem; }
.gap-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.gap-chip { font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 20px; background: var(--c-coral-bg); border: 1px solid var(--c-coral-border); color: var(--c-coral-text); }
.found-chip { font-size: 12.5px; font-weight: 500; padding: 5px 12px; border-radius: 20px; background: var(--c-green-bg); border: 1px solid var(--c-green-border); color: var(--c-green-text); }

/* Loading (B5b boot-loader — real round trip, no artificial delay) */
.console-loading { min-height: 40vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; color: var(--muted); font-size: 13px; font-weight: 300; letter-spacing: 0.01em; }
.console-loading .spinner { width: 34px; height: 34px; border: 3px solid var(--cream3); border-top-color: var(--gold); border-radius: 50%; animation: console-spin 0.8s linear infinite; }
@keyframes console-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .console-loading .spinner { animation-duration: 1.8s; } }
.loading-label { font-family: 'Khand', sans-serif; font-size: 22px; font-weight: 600; color: var(--black); }

/* Save-this banner (dark, unmissable) */
.save-banner { background: var(--black); border-radius: 16px; padding: 1.4rem 1.5rem; margin-bottom: 1rem; position: relative; overflow: hidden; }
.save-banner::before { content: ''; position: absolute; top: -80px; right: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(242,169,0,0.1) 0%, transparent 70%); pointer-events: none; }
.save-banner-title { font-family: 'Khand', sans-serif; font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 4px; position: relative; }
.save-banner-sub { font-size: 13.5px; color: rgba(255,255,255,0.65); line-height: 1.65; font-weight: 300; margin-bottom: 1rem; position: relative; max-width: 460px; }
.save-banner-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }

/* Section label (B6) */
.section-label { font-family: 'Khand', sans-serif; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 1.75rem 0 0.85rem; padding-left: 2px; }

/* Output 1 — the member-branded one-pager. Accents come from the member's
   own colours via --m-primary / --m-ink (set inline by the renderer);
   FC gold stays on the tool chrome around it. */
.onepager { background: #fff; border: 1px solid var(--border-med); border-radius: 14px; padding: 1.9rem 2rem; box-shadow: 0 2px 20px rgba(13,13,13,0.06); --m-primary: #F2A900; --m-ink: #2A2420; }
.op-head { border-bottom: 4px solid var(--m-primary); padding-bottom: 1rem; margin-bottom: 1.15rem; display: flex; justify-content: space-between; gap: 1rem; align-items: flex-end; flex-wrap: wrap; }
.op-name { font-family: 'DM Sans', Georgia, serif; font-size: 32px; font-weight: 600; color: var(--m-ink); line-height: 1.05; letter-spacing: -0.01em; }
.op-kicker { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.op-one { font-size: 13px; color: #6d6459; font-style: italic; max-width: 300px; line-height: 1.55; }
.op-cols { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; }
.op-block { margin-bottom: 1rem; }
.op-label { font-size: 10.5px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; color: var(--m-ink); margin-bottom: 0.45rem; }
.op-p { font-size: 12.5px; line-height: 1.65; color: #3d372f; margin-bottom: 4px; }
.op-chiprow { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.vchip { font-size: 11.5px; padding: 4px 11px; border-radius: 20px; font-weight: 600; color: #3d372f; background: color-mix(in srgb, var(--m-primary) 16%, #fff); border: 1px solid color-mix(in srgb, var(--m-primary) 40%, #fff); }
.vchip.not { background: #F2F2F1; color: #6b6f75; border-color: rgba(13,13,13,0.10); text-decoration: line-through; font-weight: 400; }
.sayrow { font-size: 12.5px; line-height: 1.6; padding: 7px 10px; border-left: 3px solid var(--m-primary); background: color-mix(in srgb, var(--m-primary) 7%, #fff); margin-bottom: 5px; color: #3d372f; border-radius: 0 8px 8px 0; }
.sayrow.never { border-left-color: var(--c-coral); background: var(--c-coral-bg); color: var(--c-coral-text); }
.op-swatches { display: flex; gap: 8px; }
.op-sw { flex: 1; border-radius: 10px; overflow: hidden; border: 1px solid rgba(13,13,13,0.10); max-width: 150px; }
.op-sw-col { height: 52px; }
.op-sw-meta { padding: 6px 9px; background: #fff; }
.op-sw-meta b { display: block; font-size: 11.5px; color: var(--text); }
.op-sw-meta span { font-size: 10.5px; color: var(--muted); font-family: ui-monospace, Consolas, monospace; }
.op-scale { margin-bottom: 9px; }
.op-scale-lbls { display: flex; justify-content: space-between; font-size: 10.5px; color: #8a8175; margin-bottom: 3px; }
.op-scale-track { height: 5px; background: #EFEAE1; border-radius: 3px; position: relative; }
.op-scale-dot { position: absolute; top: -3px; width: 11px; height: 11px; border-radius: 50%; background: var(--m-primary); border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.op-fontline { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed #E5DFD3; padding: 5px 0; gap: 8px; }
.op-fontline b { font-size: 15px; color: var(--text); font-weight: 600; }
.op-fontline span { font-size: 10.5px; color: var(--muted); text-align: right; }
.op-mods .op-modsec { border-top: 1px solid #EFEAE1; padding-top: 0.75rem; margin-top: 0.75rem; }
.op-photos { border-top: 1px solid #EFEAE1; padding-top: 0.9rem; margin-top: 1rem; page-break-before: always; }
.op-p.do { color: var(--c-green-text); }
.op-p.dont { color: var(--c-coral-text); }
.brief-photo-grid { display: flex; flex-wrap: wrap; gap: 10px; margin: 0.4rem 0 0.9rem; }
.brief-photo-grid img { width: 130px; height: 130px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-med); }
.op-foot { margin-top: 1.2rem; padding-top: 0.75rem; border-top: 1px solid #EFEAE1; font-size: 10px; color: #a89d8d; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; }
[contenteditable]:focus { outline: 2px solid var(--gold-dim); border-radius: 4px; }
.edit-hint { font-size: 12px; color: var(--muted); font-style: italic; font-weight: 300; margin-top: 8px; }

/* Output 2 — the AI-ready plain text (CB7 output block by analogy) */
.output2-wrap { position: relative; }
.output2-text { width: 100%; min-height: 340px; background: #fff; border: 1px solid var(--border-med); border-radius: 12px; padding: 16px 18px; font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 12.5px; line-height: 1.75; color: var(--text); resize: vertical; outline: none; }
.output2-text:focus { border-color: var(--gold); }
.char-count { font-size: 12px; color: var(--muted); margin-top: 6px; text-align: right; }
.char-count.over { color: var(--c-coral); font-weight: 500; }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 0.9rem; align-items: center; }

/* Inline confirm bar (window.confirm is blocked in cross-origin iframes) */
.confirm-bar { background: var(--c-amber-bg); border: 1px solid var(--c-amber-border); border-radius: 12px; padding: 12px 15px; margin-top: 0.75rem; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.confirm-bar span { font-size: 13.5px; color: var(--c-amber-text); line-height: 1.6; }
.confirm-bar div { display: flex; gap: 8px; }

/* Bonus module cards — each states its use case */
.module-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 9px; }
.mod-card { background: #fff; border: 1px solid var(--border-med); border-radius: 12px; padding: 0.8rem 2rem 0.8rem 0.95rem; position: relative; cursor: pointer; transition: all 0.15s; user-select: none; }
.mod-card:hover { border-color: var(--gold); background: var(--gold-dim); }
.mod-card.on { border-color: var(--gold); background: #FFFBF2; box-shadow: 0 2px 10px rgba(242,169,0,0.18); }
.mod-card.busy { opacity: 0.55; cursor: wait; }
.mod-card b { font-family: 'Khand', sans-serif; font-size: 15px; font-weight: 600; color: var(--black); display: block; margin-bottom: 1px; letter-spacing: 0.02em; }
.mod-card small { font-size: 11.5px; color: var(--muted); line-height: 1.5; display: block; font-weight: 300; }
.mod-tick { position: absolute; top: 9px; right: 11px; font-size: 12px; color: var(--cream3); font-weight: 700; }
.mod-card.on .mod-tick { color: var(--gold); }
.module-hint { font-size: 13px; color: var(--muted); font-weight: 300; font-style: italic; line-height: 1.6; margin-bottom: 0.75rem; }

/* Sharpen panel (vibe check + Test It) */
.sharpen { background: var(--c-amber-bg); border: 1px solid var(--c-amber-border); border-radius: 12px; padding: 1rem 1.1rem; margin-top: 10px; }
.sharpen-title { font-family: 'Khand', sans-serif; font-size: 16px; font-weight: 600; color: var(--black); text-transform: uppercase; letter-spacing: 0.04em; }
.sharpen-sub { font-size: 12.5px; color: var(--c-amber-text); margin: 2px 0 9px; font-weight: 300; }
.sharpen input[type="text"] { margin-bottom: 7px; background: #fff; }
.sharpen .cta-row { margin-top: 4px; }

/* Build It page */
.build-tabs { display: flex; gap: 6px; margin-bottom: 0.9rem; }
.build-tab { font-size: 13px; padding: 8px 18px; border-radius: 20px; border: 1px solid var(--border-med); background: #fff; color: var(--muted); cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.build-tab:hover { background: var(--cream2); color: var(--text); }
.build-tab.on { background: var(--black); color: #fff; border-color: var(--black); font-weight: 500; }
.build-step { display: flex; gap: 12px; margin-bottom: 14px; }
.build-step:last-child { margin-bottom: 4px; }
.build-n { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--black); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; font-family: 'Khand', sans-serif; margin-top: 1px; }
.build-p { font-size: 14px; line-height: 1.65; color: var(--text); }
.build-small { font-size: 12px; color: var(--muted); font-weight: 300; margin-top: 1px; }
.grad-prompt { color: #5c554b; font-style: italic; }

/* Build It */
.copy-block { background: #fff; border: 1px solid var(--border-med); border-radius: 10px; padding: 13px 15px; font-size: 13px; line-height: 1.7; white-space: pre-wrap; position: relative; margin-bottom: 10px; }
.copy-block-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-blue); margin-bottom: 0.4rem; display: block; }
.copy-btn { position: absolute; top: 10px; right: 10px; padding: 4px 10px; font-size: 11px; font-weight: 500; font-family: 'DM Sans', sans-serif; background: var(--cream2); border: 1px solid var(--border-med); border-radius: 6px; cursor: pointer; color: var(--muted); transition: all 0.15s; }
.copy-btn:hover { background: var(--gold-dim); border-color: var(--gold); color: var(--black); }
.copy-btn.copied { background: var(--c-teal-bg); border-color: var(--c-teal-border); color: var(--c-teal); }
.callout { margin: 0.75rem 0; padding: 10px 12px; background: var(--c-amber-bg); border: 1px solid var(--c-amber-border); border-radius: 8px; font-size: 12.5px; color: var(--c-amber-text); line-height: 1.65; }

/* Test It */
.test-piece { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.3rem; margin-bottom: 10px; }
.test-piece-label { font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-blue); margin-bottom: 0.4rem; }
.test-piece-text { font-size: 13.5px; line-height: 1.75; white-space: pre-wrap; color: var(--text); margin-bottom: 0.75rem; }
.score-row { display: flex; gap: 8px; flex-wrap: wrap; }
.score-chip { padding: 7px 14px; font-size: 13px; border-radius: 50px; border: 1px solid var(--border-med); background: #fff; cursor: pointer; font-family: 'DM Sans', sans-serif; transition: all 0.15s; }
.score-chip:hover { background: var(--cream2); }
.score-chip.sel-good { background: var(--c-green-bg); border-color: var(--c-green-border); color: var(--c-green-text); font-weight: 500; }
.score-chip.sel-mid { background: var(--c-amber-bg); border-color: var(--c-amber-border); color: var(--c-amber-text); font-weight: 500; }
.score-chip.sel-bad { background: var(--c-coral-bg); border-color: var(--c-coral-border); color: var(--c-coral-text); font-weight: 500; }
.score-note { margin-top: 8px; }

.privacy-note { text-align: center; font-size: 11px; color: var(--muted); font-weight: 300; line-height: 1.6; padding: 1.25rem 0 0.5rem; opacity: 0.7; }

/* A9. Mobile */
@media (max-width: 640px) {
  .intro-headline { font-size: 40px; }
  .q-text { font-size: 28px; }
  .loading-label { font-size: 22px; }
  #app { padding: 0 1.1rem 4rem; }
  .triple { grid-template-columns: 1fr; }
  .op-cols { grid-template-columns: 1fr; }
  .op-name { font-size: 26px; }
}

/* Print — Output 1 only, one page of rules + photo reference sheet.
   Drives the Download PDF / Print actions (no PDF library). */
@media print {
  * { transition: none !important; animation: none !important; }
  body { visibility: hidden; background: #fff; background-image: none; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; border: none; box-shadow: none; border-radius: 0; padding: 0; }
  .op-block, .op-modsec { page-break-inside: avoid; }
}
