/* A shared motion language: reveal, respond, then settle. */
.guide-unified{margin-top:24px}
.guide-unified>h1{font-size:clamp(34px,4.6vw,52px);line-height:1.08;margin:12px 0 24px}
.guide-unified>.kicker{margin-top:0}
.guide-unified>.progress-steps,.guide-unified>.invest-progress{margin:22px 0 28px}
.guide-unified [data-live-count]{font-variant-numeric:tabular-nums}
.guide-unified .button{transition:translate .18s,box-shadow .18s,background-color .18s;position:relative}
.guide-unified .button:active:not(:disabled){translate:0 2px}
.guide-unified .options button,.guide-unified .future-choices button{transition:translate .22s,box-shadow .22s,border-color .22s,background-color .22s}
.guide-feedback{animation:feedback-in .4s ease-out}
.guide-unified input:focus,.guide-unified textarea:focus{box-shadow:0 0 0 4px #9341b51c;transition:box-shadow .2s}
.guide-unified .pay-share-track i{transform-origin:left;animation:fill-share .85s cubic-bezier(.2,.75,.25,1)}
.guide-unified .buffer-phone{animation:phone-alert .7s ease-out}
.buffer-drain,.funds-value-track{height:24px;background:#ffffffb3;border-radius:14px;overflow:hidden;margin:22px 0 12px;box-shadow:inset 0 1px 3px #23392c14}
.buffer-drain>div,.funds-value-track>i{display:block;width:100%;height:100%;transform-origin:left;border-radius:inherit;background:linear-gradient(90deg,#267c68,#4bb29b)}
.buffer-drain-label{font-size:14px;margin:12px 0 24px!important;color:#28594d}
.shortfall .buffer-drain-label{color:#814b26}
.shortfall .buffer-drain>div{background:#bb7044}
.funds-value-track>i{background:linear-gradient(90deg,#8649af,#b675cf)}
#funds-comparison .panel:last-of-type .funds-value-track>i{background:linear-gradient(90deg,#267c68,#4bb29b)}
#start.active>h1:only-child:after{content:'';display:inline-block;width:.45em;height:.45em;margin-left:.35em;border-radius:50%;border:3px solid #dfd0e7;border-top-color:#853caf;animation:loading-turn .8s linear infinite}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .guide-unified .button:hover:not(:disabled){translate:0 -3px;box-shadow:0 7px 0 #39263b25,0 12px 22px #39263b12}
 .guide-unified .options button:hover:not(:disabled),.guide-unified .future-choices button:hover:not(:disabled){translate:0 -4px}
 .guide-unified .future-card:not(.tactile-card):hover,.guide-unified .cv-paper:hover{translate:0 -5px;transition:translate .3s}
 .guide-unified .experience-icon{animation:icon-breathe 4s ease-in-out 2}
}
@keyframes feedback-in{from{opacity:.4;translate:0 10px}to{opacity:1;translate:0 0}}
@keyframes fill-share{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes phone-alert{0%,100%{rotate:0deg}25%{rotate:-4deg}50%{rotate:3deg}75%{rotate:-1deg}}
@keyframes icon-breathe{0%,100%{translate:0 0}50%{translate:0 -5px}}
@keyframes loading-turn{to{rotate:360deg}}
@media(prefers-reduced-motion:reduce){
 .guide-unified *,.journey-ending *{animation:none!important;transition:none!important;scroll-behavior:auto!important}
 #start.active>h1:only-child:after{animation:none}
}
@media(max-width:600px){.guide-unified{margin-top:20px}.guide-unified>h1{font-size:34px;margin-bottom:20px}.guide-unified>.invest-progress,.guide-unified>.progress-steps{margin:18px 0 24px}}
#funds-comparison .habit-paths>.panel:first-child{background:#ead2f6;box-shadow:0 6px #c5a0d7}
#funds-comparison .habit-paths>.panel:last-child{background:#cbece2;box-shadow:0 6px #97cbbd}
#funds-comparison h3[data-live-count]{font-size:36px;margin:16px 0}
.guide-intro-copy{margin:22px 0 30px;padding:4px 0 4px 22px;border-left:4px solid #a166be;max-width:760px}
.guide-intro-copy h2{font-size:23px!important;margin:0 0 10px!important}
.guide-intro-copy p{margin:0;line-height:1.65}
.cv-builder{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:26px;align-items:start;margin-top:26px}
.cv-one-question{background:#ead2f6;border:1px solid #d4afe6;border-radius:24px;padding:28px;box-shadow:0 6px #c6a0d8;animation:feedback-in .35s ease-out}
.cv-one-question .field{font-size:25px;line-height:1.25;display:block;margin:24px 0 12px;font-weight:700}
.cv-one-question input,.cv-one-question textarea{width:100%;font-size:19px!important;font-weight:400!important}
.cv-one-question p{font-size:15px;line-height:1.6}
.cv-one-question .hint{margin-top:18px;color:#654969;font-size:13px}
.cv-building-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.cv-building-top>span:last-child{font-size:12px;color:#66506c}
.cv-building-paper{border:1px solid #d9cadf;border-radius:18px;overflow:hidden;background:white;box-shadow:0 6px #d7c5df,0 14px 30px #39253910}
.cv-building-name{padding:24px;background:#d1eee4;border-bottom:1px solid #b8dbce;overflow-wrap:anywhere}
.cv-building-name small{font-size:9px;letter-spacing:2px}.cv-building-name h3{font-size:30px;margin:12px 0 0}
.cv-building-section{padding:18px 24px;border-bottom:1px solid #f0e9f3;transition:background-color .25s;overflow-wrap:anywhere}
.cv-building-section:last-child{border-bottom:0}.cv-building-section h4{font-size:12px;letter-spacing:.05em;color:#744873;margin:0 0 8px}
.cv-building-section p{font-size:14px;line-height:1.6;margin:0;white-space:pre-wrap;max-height:230px;overflow:auto}
.cv-building-section.is-writing{background:#fbf0dc;box-shadow:inset 4px 0 #e3ac4b}.cv-building-name.is-writing{box-shadow:inset 4px 0 #299b80}
.cv-draft-empty{color:#95849b;font-size:13px}.cv-builder+.guide-step-actions{margin-top:26px}
@media(max-width:700px){.cv-builder{grid-template-columns:1fr;gap:26px}.cv-one-question{padding:22px}.guide-intro-copy{padding-left:16px}.cv-building-section{padding:14px 20px}}

/* Short, visible explanations before each exercise. */
.intro-questions{margin:28px 0 36px;padding:28px 30px;background:#e0f1ea;border:1px solid #b5daca;border-radius:22px;box-shadow:0 5px 0 #b5daca}
.intro-questions h2{font-size:25px;margin:0 0 22px}.intro-questions dl{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:24px 32px}.intro-questions dt{font-weight:700;font-size:17px;line-height:1.4;color:#194f43}.intro-questions dd{margin:8px 0 0;font-size:15px;line-height:1.65;color:#253c35}
body .guide-state.done{display:inline-flex;align-items:center;gap:6px;background:#167451;color:#fff;font-size:12px;font-weight:700;border:1px solid #105b40;padding:7px 11px;box-shadow:0 3px 0 #a8d8c2;white-space:nowrap}
body .guide-state.done::before{content:'✓';font-size:14px;font-weight:700}
body a,body button,body summary,body .link,body a:hover,body button:hover,body summary:hover{ text-decoration:none!important }
body .link{font-weight:600}body .link:hover,body summary:hover{color:#692b77}
@media(max-width:600px){.intro-questions{padding:23px 20px}.intro-questions dl{grid-template-columns:1fr;gap:22px}}

/* Warm, high-contrast primary actions, with quiet back buttons. */
body :is(#lesson,#first-pay) .button:not(.secondary),body .feature-footer .cta,body .guide-unlock-note .cta,body .certificate-journey .button:not(.secondary),body .verification-card .button:not(.secondary){background:#ff8759;color:#2b1821;border:1px solid #db5b31;box-shadow:0 5px 0 #c24e2c;border-radius:15px;font-weight:700}
body :is(#lesson,#first-pay) .button:not(.secondary):hover:not(:disabled),body .feature-footer .cta:hover{background:#ff9b6e;box-shadow:0 7px 0 #c24e2c;translate:0 -2px}
body :is(#lesson,#first-pay) .button:not(.secondary):active:not(:disabled),body .feature-footer .cta:active{translate:0 3px;box-shadow:0 2px 0 #c24e2c}
body :is(#lesson,#first-pay) .button:not(.secondary):disabled{background:#e6d8d0;color:#6a5d57;border-color:#d2c3ba;box-shadow:0 3px 0 #c9bbb3;opacity:1}
body :is(#lesson,#first-pay) .button:focus-visible,body .feature-footer .cta:focus-visible{outline:3px solid #582468;outline-offset:5px}
body .certificate-journey{background:linear-gradient(125deg,#eee1f6,#f8e9d7);border:1px solid #dbc5df;grid-template-columns:minmax(0,1fr) 240px;gap:44px;overflow:visible}
body .certificate-preview{position:relative;isolation:isolate;aspect-ratio:.77;padding:27px 24px 34px;background:linear-gradient(135deg,#fffcf4,#fff6e3);border:1px solid #cba669;box-shadow:5px 6px 0 #ead7b3,10px 12px 0 #fbf1df,15px 20px 25px #4e254323;transform:rotate(4deg);border-radius:5px;color:#4b203e;justify-content:space-between;transition:transform .3s,box-shadow .3s}
body .certificate-preview:before{content:'';position:absolute;inset:10px;border:1px solid #cfac71;border-radius:2px;z-index:-1}
.diploma-top{text-align:center}.diploma-top>span{font-family:'Instrument Serif',Georgia,serif;font-size:34px;letter-spacing:.02em}.diploma-top small{display:block;font-size:7px;letter-spacing:.19em;margin-top:3px;color:#8b683a}
.diploma-title{text-align:center;margin:17px -5px 30px}.diploma-title>span{font-size:9px;letter-spacing:.2em;font-weight:700;color:#8e6530}.diploma-title strong{display:block;font-family:'Instrument Serif',Georgia,serif;font-weight:400;font-size:31px;line-height:1.1;margin-top:13px}.diploma-title em{color:#8b344e}
.diploma-bottom{text-align:left;max-width:145px}.diploma-stars{font-size:13px;color:#b18539;letter-spacing:3px;white-space:nowrap;margin-bottom:6px}.diploma-bottom small{font-size:6px;letter-spacing:.09em;color:#775939}
.diploma-seal{position:absolute;right:-17px;bottom:16px;width:70px;height:70px;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(140deg,#ffe5a1,#e4ad4f);border:4px double #b78230;box-shadow:0 4px 0 #b57c31,0 6px 12px #582c3920;color:#654121;transform:rotate(-12deg)}
.diploma-seal>span{font-size:27px;line-height:1}.diploma-seal small{font-size:8px;letter-spacing:.1em;font-weight:700;margin-top:4px}
@media(hover:hover) and (prefers-reduced-motion:no-preference){.certificate-journey:hover .certificate-preview{transform:rotate(1deg) translateY(-4px)}}
@media(max-width:700px){body .certificate-journey{grid-template-columns:1fr;gap:28px}body .certificate-preview{display:flex;width:200px;justify-self:center;margin:0 0 15px}.diploma-title strong{font-size:27px}.diploma-seal{width:60px;height:60px;right:-12px}.diploma-bottom{max-width:120px}.diploma-stars{font-size:10px;letter-spacing:2px}}

/* A familiar character accompanies each step; motion is brief and optional. */
.guide-unified.has-guide-mascot{position:relative}.has-guide-mascot>h1{padding-right:125px;min-height:70px}.guide-mascot{position:absolute;right:0;top:0;width:112px;height:120px;pointer-events:none;isolation:isolate}
.guide-mascot-halo{position:absolute;inset:18px 2px 3px;border-radius:50% 44% 48% 42%;background:linear-gradient(145deg,#e5c9f2,#ffd9ad);z-index:-1}.guide-mascot img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 2px #452b3c20);transform-origin:50% 90%}
@media(prefers-reduced-motion:no-preference){.mascot-forward img{animation:mascot-greet .65s cubic-bezier(.2,.75,.3,1) both}.mascot-return img{animation:mascot-back .4s ease-out both}.mascot-forward .guide-mascot-halo{animation:mascot-halo .7s ease-out both}}
@keyframes mascot-greet{0%{transform:translateY(10px) rotate(-5deg) scale(.94);opacity:.5}45%{transform:translateY(-6px) rotate(3deg) scale(1.025);opacity:1}72%{transform:translateY(2px) rotate(-1deg)}100%{transform:none;opacity:1}}
@keyframes mascot-back{from{transform:translateX(8px) rotate(3deg);opacity:.6}to{transform:none;opacity:1}}
@keyframes mascot-halo{0%{transform:scale(.85);opacity:.4}65%{transform:scale(1.06);opacity:1}100%{transform:scale(1);opacity:1}}
@media(max-width:600px){.has-guide-mascot>h1{padding-right:88px;min-height:66px}.guide-mascot{width:78px;height:88px;top:8px}.guide-mascot-halo{inset:12px 0 0}}
@media(prefers-reduced-motion:reduce){.guide-mascot img,.guide-mascot-halo{animation:none!important;transform:none!important}}
/* A visible journey, a personal starting point and an optional next chapter. */
body .visual-journey{display:block;padding:26px;background:#e9def4;border:1px solid #cdb5df;border-radius:24px;box-shadow:0 5px 0 #cdb5df}.journey-progress-top{display:flex;align-items:center;justify-content:space-between;gap:20px}.journey-progress-top>div{display:grid;gap:5px}.journey-progress-top strong{font-size:24px;line-height:1.2}.chapter-link{font-size:14px;font-weight:700;color:#632d68;background:#fff8;padding:13px 16px;border-radius:13px;white-space:nowrap}
body .visual-journey .journey-milestones{display:grid;grid-template-columns:repeat(6,1fr);gap:12px;list-style:none;padding:0;margin:25px 0 18px}.journey-milestones li{display:grid;justify-items:center;text-align:center;gap:6px;color:#6e6174}.journey-milestones li>span{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#fff9;border:1px solid #c6b5ce;font-weight:700}.journey-milestones li.is-done>span{background:#187454;color:white;border-color:#126044;box-shadow:0 3px 0 #a4c9b6}.journey-milestones strong{font-size:13px}.journey-milestones small{font-size:11px}.journey-milestones .is-done{color:#164c3a}body .visual-journey progress{width:100%;height:10px;accent-color:#187454;margin:0}
.personal-welcome{display:flex;align-items:center;justify-content:space-between;gap:25px;margin:0 0 26px;padding:25px;background:#fbe2c1;border-radius:22px}.personal-welcome h2{font-family:inherit;font-size:27px;margin:10px 0}.personal-welcome p{font-size:14px;margin:8px 0}.personal-welcome>a{flex-shrink:0;font-size:13px;font-weight:700}.personal-tags{display:flex;flex-wrap:wrap;gap:6px}.personal-tags>span{font-size:12px;background:#fff9;padding:7px 10px;border-radius:20px}
.chapter-invite{display:flex;align-items:center;gap:30px;background:#34213b;color:#fff;border-radius:26px;padding:30px;margin:32px 0}.chapter-invite img{width:145px;height:170px;object-fit:contain;flex-shrink:0}.chapter-invite .eyebrow{color:#ffc69c}.chapter-invite h2{font-family:inherit;font-size:28px;margin:10px 0}.chapter-invite p{color:#eee2f0;font-size:15px;margin:12px 0 20px}body .chapter-invite .button,body .chapter-exit .button{background:#ff8759;color:#2b1821;border:1px solid #db5b31;box-shadow:0 5px 0 #bd4f2e;font-weight:700;border-radius:14px}
.chapter-page{max-width:1060px}.chapter-hero{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:36px;align-items:center;margin:25px 0}.chapter-hero h1{font-size:clamp(40px,5vw,65px)}.chapter-hero p{max-width:550px}.chapter-door{height:285px;background:linear-gradient(155deg,#e5c8f4,#ffd39c);border:8px solid #654168;border-bottom-width:12px;border-radius:120px 120px 12px 12px;display:flex;flex-direction:column;align-items:center;box-shadow:10px 9px 0 #e6d9ec;position:relative;padding-top:18px}.chapter-door>span{font:32px 'Instrument Serif',serif;color:#4e254c}.chapter-door img{height:190px;width:190px;object-fit:contain}.chapter-door small{font-size:9px;letter-spacing:.14em;font-weight:700;color:#542b50}.chapter-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:30px 0}.chapter-stats>div{background:#e2efe7;padding:24px;border-radius:19px;display:grid;gap:8px;text-align:center;border-bottom:5px solid #bad6c7}.chapter-stats strong{font-size:36px;color:#185b44}.chapter-stats span{font-size:13px}.chapter-backpack h2,.chapter-destination h2,.chapter-exit h2{font-family:inherit;font-size:28px}.chapter-skills{display:flex;flex-wrap:wrap;gap:9px}.chapter-skills>span{padding:10px 14px;border-radius:12px;background:#ede3f4;color:#512857;font-size:13px}.chapter-destination{margin:40px 0}.chapter-destination>div{display:grid;grid-template-columns:repeat(3,1fr);gap:15px}.chapter-destination article{padding:22px;background:#fff;border:1px solid #e3d6cc;border-radius:18px}.chapter-destination article>span{font-size:26px;color:#a5412e}.chapter-destination h3{font-family:inherit;font-size:20px}.chapter-destination p{font-size:14px}.chapter-exit{padding:30px;background:#f9ddba;border-radius:24px}.chapter-exit p{font-size:14px}.chapter-stay{display:block;margin-top:23px;font-size:14px;font-weight:600;color:#64314d}.chapter-exit [aria-disabled=true]{opacity:.6;cursor:wait}
@media(prefers-reduced-motion:no-preference){.chapter-door img{animation:mascot-greet .7s ease-out both}.chapter-stats>div{animation:step-in .4s ease-out both}.chapter-stats>div:nth-child(2){animation-delay:.08s}.chapter-stats>div:nth-child(3){animation-delay:.16s}}
@media(max-width:700px){.journey-progress-top,.personal-welcome{align-items:flex-start;flex-direction:column}.chapter-link{white-space:normal}body .visual-journey .journey-milestones{grid-template-columns:repeat(3,1fr);gap:18px 10px}.chapter-invite{gap:18px;padding:24px}.chapter-invite img{width:85px;height:125px}.chapter-invite h2{font-size:24px}.chapter-hero{grid-template-columns:1fr}.chapter-door{width:200px;justify-self:center;height:260px}.chapter-door img{height:170px}.chapter-stats{gap:8px}.chapter-stats>div{padding:18px 8px}.chapter-stats strong{font-size:29px}.chapter-destination>div{grid-template-columns:1fr}.chapter-exit{padding:22px}.chapter-invite .button{font-size:13px;padding:12px}.chapter-invite .eyebrow{font-size:9px}}

/* Keep chart labels readable on narrow screens. */
@media(max-width:600px){.own-interest-chart svg text{font-size:22px;fill:#49364e}.own-interest-chart svg{margin:24px 0}.fall-chart .own-interest-top{gap:12px}.fall-chart .fall-loss{padding:14px}.habit-line-chart text{font-size:22px}}

.guide-revisit{border-top:1px solid #cbb8d5;margin-top:28px;padding-top:24px}.guide-revisit h3{font-size:1.25rem;margin:0 0 8px}.guide-revisit p{font-size:1rem}.guide-revisit .actions{justify-content:flex-start}

.learning-row-wrap{position:relative;display:flex;align-items:center;gap:8px;background:#fff;border:1px solid #e4dcd6;border-radius:20px;margin-bottom:10px;padding-right:14px}.learning-row-wrap .learning-row{flex:1;min-width:0;margin:0;border:0;background:transparent;box-shadow:none}.guide-redo{flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;background:#ead7f4;color:#582961;border:1px solid #c7a2d5;border-radius:12px;font-weight:700;text-decoration:none!important}.guide-redo:hover{background:#ddbee9}.guide-redo:focus-visible{outline:3px solid #803447;outline-offset:3px}@media(max-width:600px){.learning-row-wrap{flex-wrap:wrap;padding:0 12px 12px}.learning-row-wrap .learning-row{flex-basis:100%;padding-left:4px;padding-right:4px}.learning-row-wrap .guide-redo{margin-left:auto}.learning-row-wrap:not(:has(.guide-redo)){padding-bottom:0}}

.pay-save-success{display:flex;align-items:center;gap:14px;padding:18px 22px;background:#d8f0e1;border:2px solid #43856a;border-radius:18px;color:#174d37;animation:save-arrive .45s ease-out}.pay-save-success strong{font-size:20px}.save-check{display:grid;place-items:center;flex-shrink:0;width:44px;height:44px;border-radius:50%;background:#28734f;color:white;font-size:27px;animation:save-arrive .5s ease-out}.button.pay-save-confirmed:disabled{background:#28734f!important;color:white!important;opacity:1;box-shadow:0 4px 0 #195738!important}.pay-card-saved{animation:save-card-glow .9s ease-out}@keyframes save-arrive{from{opacity:0;transform:translateY(10px) scale(.94)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes save-card-glow{50%{box-shadow:0 0 0 7px #64bb8c66}}@media(prefers-reduced-motion:reduce){.pay-save-success,.save-check,.pay-card-saved{animation:none}}
#pay2-save-status.pay-save-success{background:#d8f0e1;border:2px solid #43856a;color:#174d37}#first-pay:has(.pay-save-confirmed) .pay-result-actions+.storage-note{display:none}

.tax-flow-panel{margin:24px 0;padding:28px;background:#ede0f5;border:1px solid #cbb0da;border-radius:24px;box-shadow:0 5px #c7add6}.tax-flow-panel h3{font-size:28px}.tax-split-bar{display:flex;border-radius:16px;overflow:hidden;margin:24px 0;min-height:90px;color:#173c35;font-weight:700}.tax-split-bar span{display:grid;place-items:center;padding:14px;width:70%;background:#abdcca}.tax-split-bar span+span{width:30%;background:#ffca91;color:#583719}.tax-payment-dots{display:flex;gap:10px;margin:20px 0}.tax-payment-dots span{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;border:2px solid #92729d;background:white}.tax-payment-dots .paid{background:#663475;color:white;animation:save-arrive .4s ease-out}.tax-flow-totals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:22px 0}.tax-flow-totals>div{background:#fff;border-radius:16px;padding:18px}.tax-flow-totals strong,.tax-settle strong{display:block;font-size:clamp(24px,3vw,34px);margin-top:12px;font-variant-numeric:tabular-nums}.tax-settle{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:14px;margin:28px 0}.tax-settle>div{padding:18px;background:white;border-radius:16px}.tax-settle>b{font-size:28px}.tax-flow-answer{background:#d2ecdf;color:#234b3b;padding:20px;border-radius:16px;font-weight:600}.tax-flow-panel [aria-pressed=true]{outline:3px solid #813b61;outline-offset:2px}.dictionary-launch{position:fixed;right:20px;bottom:18px;z-index:60;border:2px solid #69426f;border-radius:16px;background:#f0e2f7;color:#48254f;box-shadow:0 4px #aa8fbb;padding:12px 20px;font-weight:700}.youth-dictionary{width:min(760px,calc(100% - 32px));max-height:85vh;border:1px solid #bba4ca;border-radius:24px;padding:26px;background:#faf7fc;color:#242024}.youth-dictionary::backdrop{background:#24172e88}.dictionary-head{display:flex;align-items:center;justify-content:space-between;gap:14px}.dictionary-head h2{font-size:30px}.youth-dictionary input{width:100%;padding:16px;border:1px solid #907399;border-radius:12px;margin:10px 0 20px}.youth-dictionary article{padding:20px;margin-bottom:12px;background:white;border-radius:16px;border:1px solid #dfd2e5}.youth-dictionary article h3{font-size:23px;margin:0}.dictionary-example{background:#f1e8f6;border-radius:10px;padding:12px}.youth-dictionary p{margin:12px 0 0}@media(max-width:600px){.tax-flow-panel{padding:20px}.tax-flow-totals,.tax-settle{grid-template-columns:1fr}.tax-settle>b{text-align:center}.tax-split-bar{font-size:14px}.tax-split-bar span{padding:10px}.dictionary-head{align-items:flex-start}.dictionary-head h2{font-size:24px}.dictionary-launch{right:12px;bottom:12px;padding:10px 16px}.youth-dictionary{padding:18px}.tax-flow-panel .actions{display:grid}.tax-payment-dots{gap:6px}.tax-payment-dots span{width:34px;height:34px}}@media(prefers-reduced-motion:reduce){.tax-payment-dots .paid{animation:none}}

/* Tax review: distinguish a single payment from the annual reconciliation. */
.tax-period{font-size:22px;margin:30px 0 8px;padding-top:22px;border-top:2px solid #ceb6d8}.tax-working{line-height:1.65}.tax-example-note{padding:18px 20px;margin:20px 0;background:#fff0cd;border-left:5px solid #b87817;border-radius:12px;line-height:1.65;color:#493313}.tax-example-note strong{display:block}.tax-year-result{display:grid;gap:12px;border-radius:16px;padding:20px;background:#fff}.tax-year-result strong{font-size:clamp(21px,2.4vw,30px);font-variant-numeric:tabular-nums}.tax-settle strong{white-space:nowrap}.tax-payment-dots span{flex-shrink:0}body{padding-bottom:76px}@media(max-width:600px){.tax-settle{gap:6px;margin:16px 0}.tax-settle>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px}.tax-settle strong{font-size:24px;margin:0}.tax-settle span{max-width:55%;font-size:14px}.tax-settle>b{font-size:20px;line-height:1}.tax-year-result{padding:16px}.tax-year-result strong{font-size:21px}.tax-period{font-size:20px}.tax-example-note{padding:15px}.tax-flow-panel .tax-flow-totals>div{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px}.tax-flow-totals strong{white-space:nowrap;margin:0;font-size:24px}.tax-flow-totals span{font-size:14px;max-width:55%}}

.money-picture{margin:24px 0}.money-source{text-align:center;background:#fff;border:2px solid #c7afd7;border-radius:18px;padding:18px;max-width:320px;margin:auto;display:grid;gap:6px}.money-source strong{font-size:34px}.money-source small{color:#65556a}.money-fork{height:28px;width:50%;margin:auto;border-top:0;border-bottom:2px solid #a087ad;position:relative}.money-fork:before{content:"";position:absolute;top:0;bottom:0;left:50%;border-left:2px solid #a087ad}.money-pockets{display:grid;grid-template-columns:1fr 1fr;gap:18px;padding-top:12px}.money-pocket{border-radius:18px;padding:20px;min-width:0;border:2px solid}.pocket-you{background:#d1eddf;border-color:#61a78a;color:#173e30}.pocket-tax{background:#ffe0b6;border-color:#cb9052;color:#583a18}.money-pocket>span{font-weight:600}.money-pocket strong{display:block;font-size:32px;margin:8px 0 18px;white-space:nowrap;font-variant-numeric:tabular-nums}.money-tokens{display:flex;flex-wrap:wrap;gap:7px;min-height:74px;align-content:flex-start}.money-tokens span{display:block;width:24px;height:30px;border-radius:5px;background:#287459;box-shadow:0 3px #16513d;position:relative;z-index:2}.pocket-tax .money-tokens span{background:#ba681b;box-shadow:0 3px #8c4b12}.money-pocket small{display:block;margin-top:14px}.refund-picture{background:#fff;border-radius:18px;padding:24px;margin:24px 0}.refund-picture>p{display:flex;justify-content:space-between;gap:12px;margin:0 0 20px}.refund-track{height:46px;display:flex;overflow:hidden;border-radius:10px}.refund-track span{display:block;background:#ba681b}.refund-track span+span{background:#287459}.refund-labels{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:18px}.refund-labels strong{display:block;font-size:30px;margin-top:8px}.refund-labels i{display:inline-block;width:12px;height:12px;border-radius:3px;margin-right:6px}.tax-dot{background:#ba681b}.you-dot{background:#287459}@media(max-width:600px){.money-pockets{gap:10px}.money-pocket{padding:13px}.money-pocket strong{font-size:24px}.money-pocket>span{font-size:14px}.money-tokens{gap:5px;min-height:110px}.money-tokens span{width:17px;height:23px}.money-pocket small{font-size:12px}.refund-picture{padding:16px}.refund-picture>p{display:grid;gap:6px}.refund-labels{gap:12px;font-size:13px}.refund-labels strong{font-size:23px;white-space:nowrap}.money-source strong{font-size:30px}}

.refund-track{animation:tax-reveal .65s ease-out both}@keyframes tax-reveal{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}@media(prefers-reduced-motion:reduce){.refund-track{animation:none}}

.tax-year-payments{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;margin:24px 0}.tax-year-payments>div{background:#ffe0b6;color:#583a18;border:1px solid #cb9052;border-radius:14px;padding:14px 8px;text-align:center}.tax-year-payments span{display:block;font-size:12px}.tax-year-payments strong{display:block;font-size:20px;margin-top:8px;white-space:nowrap}@media(max-width:600px){.tax-year-payments{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.tax-year-payments strong{font-size:18px}.tax-year-payments span{font-size:11px}}

/* Mobile audit: preserve the explanation, shorten the path to the next action. */
.intro-faq-list{display:grid;grid-template-columns:1fr 1fr;gap:20px 28px}
.intro-faq-list summary{font-weight:700;color:#194f43;cursor:pointer;min-height:44px;align-content:center}
.intro-faq-list p{font-size:15px;line-height:1.6;margin:8px 0 0}
body .guide-unified :is(.habit-replay,.compound-reset){min-height:44px;padding:10px 14px;border:1px solid #ad8bb9;border-radius:12px;background:#fff9;font-weight:600}
@media(max-width:600px){
 .guide-unified [aria-label="Guidens steg"],.guide-unified>h1{scroll-margin-top:16px}
 .guide-unified .cv-video{padding:26px 18px}.guide-unified .cv-video strong{margin:14px 0}
 .intro-faq-list{grid-template-columns:1fr;gap:8px}.intro-faq-list details+details{border-top:1px solid #b5daca;padding-top:8px}
 .guide-unified .intro-questions{padding:18px;margin:22px 0}.intro-questions h2{font-size:22px;margin-bottom:12px}
 .guide-unified .pay-allocation-cards{gap:12px;margin:16px 0 24px}
 .guide-unified .pay-allocation-cards section{padding:16px}
 .guide-unified .pay-label-row{margin-bottom:8px;min-height:44px}
 .guide-unified .pay-info summary{width:44px;height:44px}
 .guide-unified .pay-allocation-cards .pay-icon{font-size:24px;margin-bottom:4px}
 .guide-unified .pay-account-choices button{padding:16px;display:grid;grid-template-columns:32px 1fr;gap:6px 12px}
 .guide-unified .pay-account-choices h3{margin:0;font-size:19px;align-self:center}
 .guide-unified .pay-account-choices .pay-balance,.guide-unified .pay-account-choices .pay-deduction,.guide-unified .pay-account-choices button>span:last-child{grid-column:2}
 .guide-unified .pay-account-choices .pay-balance{font-size:28px}
 .guide-unified .journey-ending{padding:22px 18px;margin-top:28px}
 .guide-unified .guide-revisit{margin-top:20px;padding-top:16px}
 .guide-unified .own-interest-chart,.guide-unified .habit-explore{padding:18px}
 .guide-unified .own-interest-chart svg text{font-size:28px}.guide-unified .habit-line-chart text{font-size:26px}
 .guide-unified input,.guide-unified textarea,.guide-unified select{font-size:16px}
}

/* Short pages keep one decision and its controls together at every screen size. */
body .page-hidden,body .empty-page-panel{display:none!important}
.guide-page-label{font-weight:700;color:#733b81;font-size:16px;margin:12px 0 18px;scroll-margin-top:16px}
.guide-page-label:focus{outline:none}.guide-page-error:empty{display:none}
.guide-page-error{padding:14px;border-radius:12px;background:#ffeadf;color:#7c302c}
.guide-unified .one-card-at-a-time{display:block;margin:18px 0}
.guide-unified .one-card-at-a-time>div,.guide-unified .one-card-at-a-time>article{max-width:650px;margin:0}
.guide-unified .allocation-pages .pay-allocation-cards,.allocation-pages .pay-allocation-cards{display:block}
.allocation-pages .pay-allocation-cards>section{max-width:600px}
.allocation-pages .pay-confirmed-income{padding:14px;margin:14px 0}.allocation-pages .pay-confirmed-income>span{display:none}
.allocation-pages .pay-suggestion-note{padding:14px;font-size:14px}.allocation-pages .pay-suggestion-note h3{font-size:18px;margin:0 0 8px}
.slip-reminder{background:#e9dcf2;padding:16px;border-radius:14px}
.funds-compact{display:grid;gap:16px;margin:22px 0}.funds-compact article{padding:18px 22px;border-radius:18px;background:#ead2f6;box-shadow:0 4px #c5a0d7;display:grid;grid-template-columns:1fr auto;align-items:center;gap:10px}
.funds-compact article+article{background:#cbece2;box-shadow:0 4px #97cbbd}.funds-compact strong{font-size:30px;font-variant-numeric:tabular-nums}.funds-compact .funds-value-track{grid-column:1/-1;width:100%;margin:2px 0;height:18px}.funds-compact article+article i{background:#267c68}
.funds-takeaway{font-size:17px;line-height:1.5}.guide-step-actions>[hidden]{display:none!important}
@media(max-width:600px){.guide-unified .guide-page-label{margin:8px 0 14px}.guide-unified .allocation-pages .pay-allocation-cards{margin:12px 0}.guide-unified.allocation-pages>h2{font-size:26px;margin:14px 0}.guide-unified .one-card-at-a-time h2{font-size:25px}.funds-compact strong{font-size:27px}.funds-compact article{padding:16px}.guide-unified .guide-step-actions{margin-top:22px}}
@media(max-width:600px){.guide-unified .own-interest-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:12px}.guide-unified .own-interest-top strong{font-size:29px}.guide-unified .own-interest-top>div:last-child{padding:12px}.guide-unified .own-interest-top span{font-size:14px}}

/* Small, purposeful feedback for the shorter mobile flow. */
.guide-page-dots{display:flex;gap:6px;margin:-4px 0 22px;max-width:360px}
.guide-page-dots i{height:5px;flex:1;border-radius:8px;background:#e1d9e6;transition:background .25s,flex .25s}
.guide-page-dots i.is-done{background:#458c78}.guide-page-dots i.is-current{background:#903cb0;flex:1.6}
.guide-unified input[type="range"]{appearance:none;-webkit-appearance:none;touch-action:pan-y;min-height:44px;cursor:pointer;accent-color:#913bb0;background:transparent}
.guide-unified input[type="range"]::-webkit-slider-runnable-track{height:10px;border-radius:20px;background:linear-gradient(to right,#913bb0 0 var(--range-fill,0%),#e2d9e8 var(--range-fill,0%) 100%)}
.guide-unified input[type="range"]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;border:2px solid #913bb0;background:#fff;border-radius:50%;margin-top:-7px;width:24px;height:24px;box-shadow:0 2px 6px #45234d35}
.guide-unified input[type="range"]::-moz-range-track{height:10px;border-radius:20px;background:#e2d9e8}.guide-unified input[type="range"]::-moz-range-progress{height:10px;border-radius:20px;background:#913bb0}
.guide-unified input[type="range"]:focus-visible{outline:3px solid #713480;outline-offset:4px}
@media(max-width:600px){
 .guide-unified .guide-step-actions{position:sticky;bottom:0;z-index:15;background:#faf8f4f5;backdrop-filter:blur(14px);padding:12px 0 calc(62px + env(safe-area-inset-bottom));border-top:1px solid #ded2df;gap:10px;isolation:isolate}
 .guide-unified .guide-step-actions .button{min-height:52px;line-height:1.35;border-radius:16px}
 .guide-unified:has(input:focus,textarea:focus,select:focus) .guide-step-actions{position:static}
 body:has(.view.active .guide-step-actions) .dictionary-launch{bottom:12px;padding:9px 13px;font-size:13px;min-height:44px}
 .guide-unified .guide-page-dots{margin-bottom:18px}
 .guide-unified .button,.guide-unified summary{-webkit-tap-highlight-color:transparent;touch-action:manipulation}
}
@media(prefers-reduced-motion:reduce){.guide-page-dots i{transition:none}}

.account-gate{max-width:620px;margin:24px auto 60px;padding:38px;border:1px solid #d5bce4;border-radius:28px;background:linear-gradient(150deg,#eee1f8,#f9eee5);box-shadow:0 6px 0 #c8acd6}
.account-gate-symbol{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:#763a80;color:#fff;font-size:32px;margin:20px 0}
.account-gate h1{font-size:clamp(34px,5vw,48px);line-height:1.1;margin:20px 0}.account-gate h1 em{color:#763a80}.account-gate>p{line-height:1.6}.account-gate ul{padding-left:22px;margin:24px 0;line-height:1.9}
.account-gate>.button{display:flex;justify-content:center;width:100%;min-height:52px;text-align:center;text-decoration:none}.account-gate .hint{font-size:14px;color:#514455}.account-gate .gate-back{display:block;margin-top:25px;color:#67366f;font-weight:700;text-decoration:none}.gate-test{border-top:1px solid #cfb7db;margin-top:22px;padding-top:18px;font-size:14px}.account-gate #join-status:empty{display:none}
@media(max-width:600px){.account-gate{padding:24px 20px;margin:8px auto 30px}.account-gate .button{font-size:15px}.account-gate ul{font-size:15px}}

body[data-screen="join"] .dictionary-launch{display:none}.account-gate>a.button{background:#fa895b;border:1px solid #dc7046;color:#291a20;box-shadow:0 4px 0 #c55d3d}.account-gate>a.button:active{transform:translateY(2px);box-shadow:0 2px 0 #c55d3d}
@media(max-width:600px){.account-gate-symbol{width:42px;height:42px;font-size:26px;margin:12px 0}.account-gate h1{margin:14px 0}.account-gate ul{margin:18px 0}}
