:root {
  --ink:#27243a; --muted:#817d92; --paper:#fbfaff; --surface:#fff;
  --lavender:#f0edff; --purple:#7663d6; --purple-dark:#5745b6;
  --purple-wash:#f7f5ff; --line:#e9e6f3; --green:#4e9d7d;
  --yellow:#b38944; --orange:#c9784b; --red:#b45e6a;
  --serif:"Noto Serif SC", "Songti SC", serif; --sans:"Noto Sans SC", system-ui, sans-serif;
}

* { box-sizing:border-box; }
html { height:100%; background:var(--paper); overscroll-behavior:none; }
body { height:100%; min-width:320px; margin:0; overflow:hidden; color:var(--ink); background:var(--paper); font-family:var(--sans); -webkit-font-smoothing:antialiased; overscroll-behavior:none; }
button, input { font:inherit; }
button { cursor:pointer; }
button:disabled { cursor:not-allowed; }
.app-shell { height:100%; min-height:100svh; overflow:hidden; }
img { -webkit-user-drag:none; user-select:none; }
h1, h2, h3, p { margin-top:0; }
h1, h2 { font-family:var(--serif); font-weight:600; }
em { color:var(--purple-dark); font-style:normal; }

/* Home */
.topbar, .result-nav { display:flex; align-items:center; justify-content:space-between; width:min(1160px, calc(100% - 48px)); margin:auto; }
.topbar { height:92px; }
.brand { display:inline-flex; align-items:center; gap:10px; border:0; padding:0; color:var(--ink); background:transparent; font-family:var(--serif); font-size:20px; font-weight:700; text-decoration:none; }
.brand-mark { display:grid; place-items:center; width:29px; height:29px; border:1px solid var(--purple); border-radius:50%; color:var(--purple-dark); font-family:var(--serif); font-size:18px; line-height:1; }
.nav-note, .tiny { color:var(--muted); font-size:13px; }
.home-hero { display:grid; grid-template-columns:1.05fr .95fr; align-items:center; gap:20px; width:min(1120px, calc(100% - 48px)); min-height:525px; margin:0 auto 32px; }
.eyebrow { margin:0 0 14px; color:var(--purple-dark); font-size:11px; font-weight:700; letter-spacing:.16em; text-transform:uppercase; }
.hero-copy h1 { margin-bottom:22px; font-size:clamp(40px, 5.1vw, 68px); line-height:1.19; letter-spacing:-.055em; }
.lede { max-width:395px; color:#625f70; font-size:17px; line-height:1.8; }
.trust-row { display:flex; flex-wrap:wrap; gap:10px 21px; margin:28px 0; color:var(--muted); font-size:13px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:28px; min-height:52px; padding:0 24px; border:1px solid transparent; border-radius:14px; font-weight:600; transition:.2s ease; }
.button span { font-size:19px; font-weight:400; }
.button-primary { color:#fff; background:var(--purple); box-shadow:0 9px 20px #7663d633; }
.button-primary:hover { background:var(--purple-dark); transform:translateY(-1px); }
.button-secondary { color:var(--purple-dark); border-color:#c9c2fb; background:#fff; }
.button-dark { color:#fff; background:#353249; }
.text-button { padding:4px 0; border:0; border-bottom:1px solid currentColor; color:var(--purple-dark); background:transparent; font-size:13px; font-weight:600; }
.hero-art { position:relative; align-self:stretch; min-height:450px; overflow:hidden; border-radius:160px 160px 32px 32px; background:#edeaff; }
.hero-illustration { display:block; width:100%; height:100%; object-fit:cover; object-position:center; }
.intro-cards { display:grid; grid-template-columns:repeat(3, 1fr); gap:1px; width:min(1120px, calc(100% - 48px)); margin:0 auto 45px; border:1px solid var(--line); background:var(--line); }
.intro-cards article { min-height:190px; padding:27px 30px; background:var(--surface); }
.intro-cards span { color:#aaa0ec; font:24px var(--serif); }
.intro-cards h2 { margin:15px 0 7px; font-size:20px; }
.intro-cards p { margin:0; color:var(--muted); font-size:13px; line-height:1.75; }
.home footer, .result-footer { padding:25px; color:#a19dae; text-align:center; font-size:12px; }
.latest-card { display:grid; grid-template-columns:1fr auto auto; align-items:center; gap:28px; width:min(1120px, calc(100% - 48px)); margin:0 auto 36px; padding:24px 28px; border:1px solid var(--line); border-radius:16px; background:#fff; }
.latest-card h2 { margin:0 0 4px; font-size:20px; }
.latest-card p:not(.eyebrow) { margin:0; color:var(--muted); font-size:13px; }
.latest-card .text-button { justify-self:end; }

/* Single-question wizard */
.wizard-assessment { display:flex; flex-direction:column; height:100%; min-height:100svh; overflow:hidden; background:linear-gradient(138deg,#fcfbff 0%,#f6f4ff 100%); }
.wizard-header { position:relative; z-index:10; flex:0 0 auto; display:grid; grid-template-columns:112px minmax(100px, 430px) 112px; align-items:center; justify-content:center; gap:18px; width:100%; min-height:76px; padding:0 max(24px, calc((100vw - 920px) / 2)); border-bottom:1px solid #efecf7; background:rgba(252,251,255,.9); box-shadow:0 5px 18px #6e62a009; backdrop-filter:blur(13px); }
.wizard-back, .skip-button { display:inline-flex; align-items:center; gap:7px; width:max-content; border:0; padding:8px 0; color:#777285; background:transparent; font-size:13px; }
.wizard-back span { font-size:20px; line-height:1; transition:transform .2s ease; }
.wizard-back:hover span { transform:translateX(-3px); }
.wizard-back em { color:inherit; font-style:normal; }
.skip-button { justify-self:end; color:#aaa6b5; }
.skip-button:hover { color:var(--purple-dark); }
.privacy-label { justify-self:end; color:#aaa6b5; font-size:12px; }
.wizard-progress { position:relative; height:5px; overflow:hidden; border-radius:100px; background:#e9e6f4; box-shadow:inset 0 1px 1px #cfc8e844; }
.wizard-progress i { display:block; height:100%; border-radius:inherit; background:linear-gradient(90deg,#9b8ef1,#7360d5); transition:width .42s cubic-bezier(.4,0,.2,1); }
.wizard-main { display:flex; flex:1 1 auto; align-items:center; justify-content:center; width:min(720px, calc(100% - 48px)); min-height:0; padding:42px 0 118px; margin:0 auto; overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; scrollbar-color:#b9b1e5 transparent; scrollbar-width:thin; }
.wizard-main::-webkit-scrollbar { width:6px; }
.wizard-main::-webkit-scrollbar-thumb { border-radius:100px; background:#bbb3e6; }
.wizard-main::-webkit-scrollbar-track { background:transparent; }
.wizard-stage { width:100%; padding:clamp(28px,5vw,48px); border:1px solid #ece9f6; border-radius:28px; background:rgba(255,255,255,.88); box-shadow:0 22px 60px #6e62a016; transition:min-height .36s ease-in-out, opacity .22s ease, transform .36s cubic-bezier(.2,.8,.2,1); }
.wizard-stage.is-shape-stage { overflow:hidden; }
.wizard-stage.motion-forward { animation:wizard-in-forward .38s cubic-bezier(.2,.8,.2,1) both; }
.wizard-stage.motion-backward { animation:wizard-in-backward .38s cubic-bezier(.2,.8,.2,1) both; }
@keyframes wizard-in-forward { from { opacity:0; transform:translateX(34px); } to { opacity:1; transform:translateX(0); } }
@keyframes wizard-in-backward { from { opacity:0; transform:translateX(-34px); } to { opacity:1; transform:translateX(0); } }
.wizard-kicker { margin-bottom:22px; color:#857bc2; font-size:12px; font-weight:700; letter-spacing:.08em; }
.wizard-question-heading { margin-bottom:30px; }
.wizard-question-heading h1 { max-width:570px; margin:0; font-size:clamp(27px,4.2vw,40px); line-height:1.35; letter-spacing:-.042em; }
.wizard-question-heading sup { margin-left:4px; color:#8d7de8; font-family:var(--sans); font-size:14px; }
.optional { margin-left:10px; color:#aaa5b4; font-family:var(--sans); font-size:12px; font-weight:400; letter-spacing:0; vertical-align:middle; }
.wizard-question-heading p { margin:11px 0 0; color:#9994a3; font-size:13px; line-height:1.7; }
.wizard-control { min-height:112px; transition:min-height .36s ease-in-out; }
.card-group { display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:12px; }
.card-group.is-compact { grid-template-columns:repeat(auto-fit,minmax(132px,1fr)); }
.answer-card { position:relative; display:flex; align-items:center; justify-content:center; min-height:66px; padding:12px 37px 12px 17px; overflow:hidden; border:1px solid #e4e0ef; border-radius:16px; color:#4c485c; text-align:center; background:#fff; font-size:14px; transition:border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease; }
.answer-card:hover { border-color:#bbb2ec; background:#fbfaff; transform:translateY(-1px); }
.answer-card.selected { border:2px solid var(--purple); padding:11px 36px 11px 16px; color:#4d3eaa; background:var(--purple-wash); box-shadow:0 7px 18px #7260cd18; }
.card-check { position:absolute; top:12px; right:12px; display:grid; place-items:center; width:18px; height:18px; border-radius:50%; color:transparent; background:transparent; font-size:11px; transition:.18s ease; }
.selected .card-check { color:#fff; background:var(--purple); }
.tag-matrix { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.tag-card { display:flex; align-items:center; justify-content:space-between; min-height:58px; gap:10px; padding:12px 13px 12px 16px; border:1px solid #e4e0ef; border-radius:14px; color:#575263; text-align:left; background:#fff; font-size:13px; transition:.18s ease; }
.tag-card b { display:grid; place-items:center; width:22px; height:22px; border-radius:50%; color:#9791a7; background:#f3f1f8; font-size:14px; font-weight:400; }
.tag-card:hover { border-color:#bbb2ec; }
.tag-card.selected { border:2px solid #7a66d7; padding:11px 12px 11px 15px; color:#4f3fac; background:#f8f7ff; }
.tag-card.selected b { color:#fff; background:#7a66d7; }
.selection-hint { margin:12px 0 0; color:#aaa5b3; font-size:12px; }
.number-entry { display:flex; align-items:center; width:min(100%,330px); padding:0 0 8px; border-bottom:2px solid #ded9eb; transition:border-color .18s ease; }
.number-entry:focus-within { border-color:var(--purple); }
.number-entry.has-error { border-color:var(--red); }
.number-entry input { width:100%; min-width:0; border:0; outline:0; color:#353044; background:transparent; font:36px/1.2 var(--serif); }
.number-entry input::-webkit-inner-spin-button { appearance:none; }
.number-entry input::placeholder { color:#d4cfdf; font:17px var(--sans); }
.number-entry span { color:#8e8998; font-size:15px; }
.tactile-slider { padding:13px 0 2px; }
.slider-feedback { display:table; min-height:32px; margin:0 auto 19px; padding:7px 13px; border-radius:100px; color:#5849b1; background:#f0edff; font-size:13px; font-weight:700; }
.range-rail { position:relative; padding:13px 0; }
input[type="range"] { position:relative; z-index:2; display:block; width:100%; height:8px; margin:0; appearance:none; border-radius:99px; outline:none; background:linear-gradient(90deg,#7965d9 0 var(--progress),#e6e2f1 var(--progress) 100%); }
input[type="range"]::-webkit-slider-thumb { width:27px; height:27px; appearance:none; border:5px solid #fff; border-radius:50%; background:#7863d5; box-shadow:0 2px 10px #6454af55; }
input[type="range"]::-moz-range-thumb { width:18px; height:18px; border:5px solid #fff; border-radius:50%; background:#7863d5; box-shadow:0 2px 10px #6454af55; }
.range-ticks { position:absolute; top:15px; right:9px; left:9px; z-index:1; display:flex; justify-content:space-between; pointer-events:none; }
.range-ticks i { width:2px; height:5px; border-radius:2px; background:#c6c1d5; }
.range-ticks i.is-active { background:#fff; }
.slider-extremes { display:flex; justify-content:space-between; gap:22px; margin-top:6px; font-size:11px; }
.slider-extremes button { border:0; padding:3px 0; color:#9d98a8; background:transparent; font:inherit; text-align:left; }
.slider-extremes button:hover, .slider-extremes button:focus-visible { color:var(--purple-dark); text-decoration:underline; outline:0; }
.slider-extremes button:last-child { text-align:right; }
.shape-picker { user-select:none; }
.shape-picker-hint, .shape-selected-label { margin:0; color:#9993a8; font-size:12px; text-align:center; }
.shape-picker-hint { margin-bottom:4px; }
.shape-selected-label { min-height:19px; margin-top:-4px; color:#6756bb; font-weight:600; }
.shape-carousel { display:flex; gap:18px; width:calc(100% + 2 * clamp(20px,5vw,48px)); margin-left:calc(-1 * clamp(20px,5vw,48px)); padding:34px calc((100% - 220px) / 2) 28px; overflow-x:auto; overflow-y:visible; scroll-snap-type:x mandatory; scroll-behavior:smooth; scrollbar-width:none; -webkit-overflow-scrolling:touch; overscroll-behavior-x:contain; touch-action:pan-x; }
.shape-carousel::-webkit-scrollbar { display:none; }
.shape-option { position:relative; flex:0 0 220px; min-height:290px; padding:9px 9px 14px; overflow:hidden; border:1px solid #e3dfee; border-radius:18px; color:#4b4658; background:#fff; pointer-events:none; text-align:center; opacity:.55; transform:scale(.87); transform-origin:center; scroll-snap-align:center; transition:border-color .2s ease, background .2s ease, box-shadow .2s ease, opacity .24s ease, transform .28s cubic-bezier(.2,.8,.2,1); }
.shape-option:hover { border-color:#bcb3ed; opacity:.86; transform:scale(.94); }
.shape-option.selected { z-index:1; border-color:#7964d8; color:#40318d; background:#f8f6ff; box-shadow:0 15px 30px #7964d82b; opacity:1; transform:scale(1.08); }
.shape-image-frame { display:block; overflow:hidden; border-radius:9px; background:#eeeaff; }
.shape-image { display:block; width:100%; height:190px; object-fit:cover; object-position:center top; mix-blend-mode:multiply; transition:transform .22s ease; }
.shape-option:hover .shape-image, .shape-option.selected .shape-image { transform:scale(1.035); }
.shape-option strong, .shape-option small { display:block; }
.shape-option strong { margin:8px 0 4px; font-size:13px; }
.shape-option small { color:#9791a2; font-size:10px; line-height:1.3; }
.shape-option .card-check { top:12px; right:12px; background:#fff; box-shadow:0 2px 6px #48425822; }
.shape-option.selected .card-check { color:#fff; background:#7663d6; }
.field-reference { display:flex; gap:8px; margin:25px 0 0; padding:13px 14px; border-radius:12px; color:#918c9c; background:#faf9fd; font-size:11px; line-height:1.7; }
.field-reference b { flex:0 0 auto; color:#7c70bd; font-weight:600; }
.error-message { margin:13px 0 0; color:var(--red); font-size:12px; }
.auto-advance-note { margin:17px 0 0; color:#9b95aa; text-align:center; font-size:12px; }
.wizard-footer { position:fixed; right:0; bottom:0; left:0; z-index:5; display:flex; justify-content:center; padding:15px 24px max(15px, env(safe-area-inset-bottom)); border-top:1px solid #eeebf6; background:rgba(253,252,255,.86); backdrop-filter:blur(14px); }
.wizard-cta { display:flex; align-items:center; justify-content:center; gap:36px; width:min(540px,100%); min-height:53px; border:0; border-radius:15px; color:#b3aebf; background:#e9e6f0; font-weight:700; transition:.22s ease; }
.wizard-cta.is-ready { color:#fff; background:var(--purple); box-shadow:0 10px 22px #7865d93b; }
.wizard-cta.is-ready:hover { background:var(--purple-dark); transform:translateY(-1px); }
.wizard-cta span { font-size:20px; font-weight:400; }

/* Tailoring interstitial */
.tailoring-page { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:100svh; padding:34px 24px; overflow:hidden; text-align:center; background:radial-gradient(circle at 50% 42%,#f3f0ff 0,#fbfaff 51%,#f6f4ff 100%); transition:opacity .36s ease, transform .36s ease; }
.tailoring-page.is-leaving { opacity:0; transform:scale(1.015); }
.tailoring-orb { position:relative; width:98px; height:98px; margin-bottom:32px; border-radius:50%; background:conic-gradient(#7762d6 0 76%,#ddd8f3 76% 100%); animation:orb-rotate 1.25s linear infinite; box-shadow:0 16px 34px #7160ca23; }
.tailoring-orb::before { position:absolute; inset:8px; border-radius:inherit; background:#fbfaff; content:""; }
.tailoring-orb span { position:absolute; top:50%; left:50%; z-index:1; width:22px; height:22px; border:2px solid #7864d6; border-top-color:transparent; border-radius:50%; transform:translate(-50%,-50%); }
@keyframes orb-rotate { to { transform:rotate(360deg); } }
.tailoring-page h1 { margin:0 0 14px; font-size:clamp(30px,5vw,42px); line-height:1.42; letter-spacing:-.045em; }
.tailoring-intro { max-width:340px; margin-bottom:32px; color:#8b8697; font-size:13px; line-height:1.8; }
.tailoring-list { display:grid; gap:10px; width:min(430px,100%); padding:0; margin:0; list-style:none; text-align:left; }
.tailoring-list li { display:flex; align-items:center; gap:11px; min-height:47px; padding:11px 13px; border:1px solid transparent; border-radius:13px; color:#aaa5b5; background:#ffffff8c; font-size:12px; opacity:0; transform:translateY(8px); transition:.3s ease; }
.tailoring-list li.is-done { border-color:#e7e2f5; color:#635c73; opacity:1; transform:none; }
.tailoring-list i { display:grid; place-items:center; width:20px; height:20px; flex:0 0 auto; border-radius:50%; color:transparent; background:#e7e3ee; font-size:11px; font-style:normal; transition:.25s ease; }
.tailoring-list li.is-done i { color:#fff; background:var(--green); }

/* Results and history */
.result-nav { height:77px; border-bottom:1px solid var(--line); }
.plain { font-size:18px; }
.result-hero { padding:82px max(24px, calc((100vw - 870px)/2)) 64px; text-align:center; }
.result-hero .eyebrow { margin-bottom:17px; }
.result-hero h1 { max-width:700px; margin:0 auto 16px; font-size:clamp(34px,4vw,52px); letter-spacing:-.05em; }
.result-hero > p:not(.eyebrow) { max-width:620px; margin:0 auto 24px; color:#625e6e; font-size:15px; line-height:1.8; }
.risk-panel-green { background:#eff7f2; } .risk-panel-yellow { background:#fbf5e8; } .risk-panel-orange { background:#fdf0e9; } .risk-panel-red { background:#fbefef; }
.risk-pill { display:inline-flex; align-items:center; padding:6px 10px; border-radius:100px; font-size:11px; font-weight:700; letter-spacing:.05em; }
.risk-green { color:#407755; background:#e1f0e6; } .risk-yellow { color:#896425; background:#f7edce; } .risk-orange { color:#a2542a; background:#f8e1d1; } .risk-red { color:#914642; background:#f5dddb; }
.result-main { width:min(980px, calc(100% - 48px)); padding:67px 0; margin:auto; }
.result-main > section { margin-bottom:86px; }
.section-label { display:flex; align-items:center; gap:10px; margin-bottom:14px; color:#968fa0; font-size:11px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; }
.section-label span { color:var(--purple-dark); font:22px var(--serif); letter-spacing:0; }
.result-main h2 { margin-bottom:28px; font-size:31px; letter-spacing:-.045em; }
.portrait-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.portrait-card { min-height:206px; padding:20px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.portrait-image { display:block; width:58px; height:58px; margin:0 0 21px; border-radius:50%; object-fit:cover; background:#f3efff; }
.portrait-card p { margin-bottom:8px; color:#9993a1; font-size:11px; }
.portrait-card h3 { margin-bottom:12px; font-family:var(--serif); font-size:18px; line-height:1.45; font-weight:600; }
.portrait-card small { color:#9d96a3; font-size:11px; line-height:1.6; }
.actions-section { padding:35px; border-radius:20px; background:#f1eeff; }
.action-list { display:grid; grid-template-columns:repeat(3,1fr); gap:9px; }
.action-list article { display:flex; align-items:flex-start; min-height:104px; gap:13px; padding:17px; border-radius:12px; background:#fff; }
.action-list b { color:#7d69d7; font:22px var(--serif); }
.action-list p { flex:1; margin:4px 0 0; font:15px/1.5 var(--serif); }
.action-list span { color:#998ed4; }
.course-list { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; }
.course-card { display:grid; grid-template-columns:128px 1fr; position:relative; min-height:202px; overflow:hidden; border:1px solid var(--line); border-radius:14px; background:#fff; }
.course-badge { position:absolute; top:10px; left:10px; z-index:1; padding:4px 7px; border-radius:5px; color:#fff; background:#454159; font-size:10px; }
.course-art { display:flex; align-items:flex-end; padding:14px; color:#fff; font:13px var(--serif); letter-spacing:.12em; }
.art-pf_support { background:linear-gradient(155deg,#bcb3f3,#7566bf); } .art-pf_relax { background:linear-gradient(155deg,#b5baa8,#788876); } .art-posture_core { background:linear-gradient(155deg,#b7b6c4,#777384); } .art-curve { background:linear-gradient(155deg,#d3a7d1,#936093); } .art-magic_abs { background:linear-gradient(155deg,#d5b183,#a57446); } .art-morning { background:linear-gradient(155deg,#d7b375,#d87a5e); }
.course-copy { padding:21px 17px; }
.course-copy p { margin-bottom:5px; color:#a29aaa; font-size:10px; }
.course-copy h3 { margin-bottom:8px; font:18px/1.42 var(--serif); }
.course-copy small { display:block; margin-bottom:14px; color:#a69fab; font-size:10px; }
.course-link { font-size:12px; }
.advisor-banner, .evaluation-banner { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:36px 39px; border-radius:18px; background:#39364d; color:#fff; }
.advisor-banner .eyebrow, .evaluation-banner .eyebrow { color:#c4bbf9; }
.advisor-banner h2, .evaluation-banner h2 { margin-bottom:8px; color:#fff; font-size:27px; }
.advisor-banner p:not(.eyebrow), .evaluation-banner p:not(.eyebrow) { max-width:560px; margin-bottom:0; color:#e5e1f0; font-size:13px; line-height:1.8; }
.advisor-banner .button, .evaluation-banner .button { flex:0 0 auto; color:#453f5c; background:#fff; }
.evaluation-banner { display:block; padding:48px; background:#71525f; }
.evaluation-banner .button { margin-top:22px; }
.result-footer { display:flex; justify-content:space-between; width:min(980px, calc(100% - 48px)); margin:auto; border-top:1px solid var(--line); }
.result-footer span { color:#a39dab; font-size:11px; }
.home, .result-page, .history-page { height:100%; overflow-y:auto; overscroll-behavior:contain; }
.history-page main { width:min(760px, calc(100% - 48px)); padding:68px 0; margin:auto; }
.history-page h1 { margin-bottom:10px; font-size:42px; }
.section-description { color:var(--muted); font-size:14px; line-height:1.8; }
.history-list { display:grid; gap:10px; margin-top:35px; }
.history-item { display:grid; grid-template-columns:1fr auto 20px; align-items:center; gap:18px; width:100%; padding:22px; border:1px solid var(--line); border-radius:14px; color:var(--ink); text-align:left; background:#fff; }
.history-item:hover { border-color:#bdb4ef; }
.history-item p { margin-bottom:5px; color:#9c95a4; font-size:12px; }
.history-item h2 { margin-bottom:6px; font-size:19px; }
.history-item small { color:#a099a7; font-size:11px; }
.history-item > b { color:#7a67d6; font-size:20px; }
.empty-state { padding:55px; border:1px dashed #d8d3e9; color:#8d8798; text-align:center; }
.toast { position:fixed; right:22px; bottom:24px; z-index:20; max-width:300px; padding:12px 16px; border-radius:12px; color:#fff; background:#39364d; box-shadow:0 8px 24px #382d5433; font-size:13px; opacity:0; pointer-events:none; transform:translateY(8px); transition:.2s; }
.toast.is-visible { opacity:1; transform:none; }

@media (max-width:720px) {
  .topbar, .result-nav, .home-hero, .intro-cards, .latest-card, .result-main, .result-footer, .history-page main { width:calc(100% - 32px); }
  .topbar { height:72px; } .nav-note { display:none; }
  .home-hero { display:flex; flex-direction:column; align-items:stretch; min-height:0; padding-top:46px; margin-bottom:16px; }
  .hero-copy h1 { font-size:45px; } .hero-art { min-height:285px; border-radius:110px 110px 24px 24px; }
  .intro-cards { grid-template-columns:1fr; } .intro-cards article { min-height:135px; }
  .latest-card { grid-template-columns:1fr auto; gap:14px; } .latest-card .button { grid-column:1/-1; width:100%; } .latest-card .text-button { justify-self:start; }
  .wizard-header { grid-template-columns:76px minmax(70px,1fr) 76px; gap:9px; width:100%; min-height:68px; padding:0 16px; }
  .wizard-back em { display:none; } .wizard-back { min-width:32px; } .privacy-label, .skip-button { font-size:12px; }
  .wizard-main { align-items:flex-start; width:calc(100% - 32px); padding:31px 0 106px; }
  .wizard-stage { min-height:0; padding:28px 20px; border-radius:22px; }
  .wizard-kicker { margin-bottom:17px; } .wizard-question-heading { margin-bottom:25px; }
  .wizard-question-heading h1 { font-size:27px; line-height:1.42; }
  .card-group, .tag-matrix { grid-template-columns:1fr; } .card-group.is-compact { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .answer-card { min-height:59px; } .tag-card { min-height:55px; }
  .shape-carousel { width:calc(100% + 40px); margin-left:-20px; padding:28px calc((100% - 190px) / 2) 34px; gap:15px; }
  .shape-option { flex-basis:190px; min-height:255px; } .shape-image { height:165px; }
  .number-entry input { font-size:33px; }
  .wizard-footer { padding:12px 16px max(12px, env(safe-area-inset-bottom)); } .wizard-cta { min-height:50px; }
  .result-hero { padding:58px 22px 46px; text-align:left; } .result-hero h1 { font-size:37px; } .result-hero > p:not(.eyebrow) { margin-left:0; }
  .portrait-grid { grid-template-columns:repeat(2,1fr); gap:8px; } .portrait-card { min-height:183px; padding:16px; } .portrait-card h3 { font-size:16px; }
  .actions-section { padding:25px 18px; } .action-list { grid-template-columns:1fr; } .action-list article { min-height:77px; }
  .course-list { grid-template-columns:1fr; } .advisor-banner { display:block; padding:30px 24px; } .advisor-banner .button { width:100%; margin-top:22px; }
  .result-main { padding:46px 0; } .result-main > section { margin-bottom:60px; } .result-main h2 { font-size:26px; }
  .result-footer { display:block; text-align:center; } .result-footer span { display:block; margin-top:15px; }
  .history-page main { padding:49px 0; } .history-page h1 { font-size:36px; } .history-item { grid-template-columns:1fr auto; } .history-item > b { display:none; }
}

@media (max-width:380px) {
  .wizard-stage { padding:25px 16px; }
  .card-group.is-compact { grid-template-columns:1fr; }
  .shape-option { flex-basis:178px; min-height:238px; } .shape-image { height:151px; }
}
