/* MOOS Journey Studio — a distinct, original product UI with responsive, accessible input states. */
.moos-shell:has(.moos-journey-layout){--ms-ink:var(--ink);--ms-teal:var(--a);--ms-mint:#77B9D9;--ms-coral:#CB755F;--ms-indigo:#596CC4;--ms-amber:#D6AB61;--ms-soft:color-mix(in srgb,var(--a) 8%,var(--sur));--ms-edge:color-mix(in srgb,var(--a) 22%,var(--line));max-width:1232px;margin-inline:auto;padding-top:clamp(18px,3vw,30px);padding-inline:clamp(14px,3vw,32px)}
.moos-shell:has(.moos-journey-layout)>header{padding:0 5px}
.moos-shell:has(.moos-journey-layout)>header .moos-title{font-size:clamp(28px,4vw,43px);letter-spacing:-.045em}
.moos-shell:has(.moos-journey-layout)>header .moos-lead{font-size:14px}
.moos-shell:has(.moos-journey-layout) .moos-progress{grid-template-columns:repeat(7,minmax(0,1fr));margin:13px 0 24px;gap:8px}
.moos-shell:has(.moos-journey-layout) .moos-step{font-size:12px;gap:9px;border-bottom-width:3px;padding:8px 2px 13px;transition:color .18s,border-color .18s}
.moos-shell:has(.moos-journey-layout) .moos-step.current{border-bottom-color:var(--ms-teal);color:var(--ms-ink)}
.moos-shell:has(.moos-journey-layout) .moos-step.current .moos-step-count{background:var(--ms-teal);border-color:var(--ms-teal)}
.moos-shell:has(.moos-journey-layout) .moos-step.completed{border-bottom-color:var(--ms-mint);color:var(--ms-teal)}
.moos-shell:has(.moos-journey-layout) .moos-step-count{width:27px;height:27px;flex-shrink:0;font-size:12px}
.moos-shell:has(.moos-journey-layout) .moos-journey-layout{display:grid;grid-template-columns:minmax(0,1.18fr) minmax(320px,.82fr);gap:clamp(14px,2vw,26px);align-items:start}
.moos-shell:has(.moos-journey-layout) .moos-feature{position:relative;overflow:visible;min-width:0;min-height:570px;padding:clamp(24px,3.4vw,48px);background:var(--sur);border:1px solid var(--ms-edge);border-radius:28px;box-shadow:0 20px 65px -42px rgba(29,63,53,.3)}
.moos-shell:has(.moos-journey-layout) .moos-feature::before{display:none}
.moos-shell:has(.moos-journey-layout) .moos-journey-layout .moos-subtitle{font-size:clamp(28px,3vw,40px);font-weight:710;line-height:1.14;letter-spacing:-.045em;max-width:26ch;margin:8px 0 15px}
.moos-shell:has(.moos-journey-layout) .moos-journey-layout .moos-muted{font-size:15px;line-height:1.65;color:var(--mut);margin-bottom:18px}
.moos-shell:has(.moos-journey-layout) .moos-preview{display:block;position:sticky;top:85px;background:linear-gradient(155deg,color-mix(in srgb,var(--a) 12%,var(--sur)),var(--sur) 48%,color-mix(in srgb,var(--a) 4%,var(--sur)));color:var(--ms-ink);border:1px solid var(--ms-edge);border-radius:28px;box-shadow:0 28px 72px -48px rgba(25,73,114,.28);padding:clamp(24px,3vw,38px);min-height:480px;overflow:hidden}
.moos-shell:has(.moos-journey-layout) .moos-preview[hidden]{display:none}
.moos-shell:has(.moos-journey-layout) .moos-preview::after{content:"";position:absolute;right:-115px;top:-110px;width:260px;height:260px;border-radius:50%;border:55px solid rgba(95,166,149,.08);pointer-events:none}
.ms-eyebrow,.ms-visual-kicker{font-size:11px;font-weight:780;letter-spacing:.15em;line-height:1.35;color:var(--ms-teal);margin:0 0 12px}
.ms-visual-kicker{color:var(--mut)}.ms-viz-title{font-size:clamp(22px,2.5vw,31px);line-height:1.19;letter-spacing:-.04em;font-weight:720;margin:9px 0 23px;max-width:25ch}
.moos-shell:has(.moos-journey-layout) .moos-welcome-screen{max-width:none;text-align:left}
.moos-shell:has(.moos-journey-layout) .moos-welcome-screen .moos-subtitle{font-size:clamp(37px,4.1vw,52px);max-width:19ch}
.ms-icon{display:inline-flex;align-items:center;justify-content:center;color:var(--ms-teal);flex-shrink:0}
.ms-icon svg{width:22px;height:22px;display:block}
.ms-house-card{min-height:220px;border-radius:22px!important;padding:25px!important;background:linear-gradient(145deg,var(--sur),color-mix(in srgb,var(--ms-soft) 55%,var(--sur)))!important;border:1.5px solid var(--ms-edge)!important;box-shadow:0 16px 25px -27px rgba(23,89,142,.35)!important}
.ms-house-card:hover{border-color:var(--ms-teal)!important;box-shadow:0 22px 35px -29px rgba(23,89,142,.38)!important}
.ms-house-card>.ms-icon{width:55px;height:55px;background:color-mix(in srgb,var(--a) 16%,var(--sur));border-radius:17px;color:var(--ms-teal);margin-bottom:4px}
.ms-house-card>.ms-icon svg{height:31px;width:31px}
.ms-house-card strong{font-size:21px!important;color:var(--ink)}
.ms-house-card .moos-card-continue{font-size:13px!important;color:var(--ms-teal)!important;letter-spacing:.02em}
.ms-trust-row{display:flex;gap:9px;align-items:center;font-size:12px;color:var(--mut);line-height:1.5;margin:19px 0 2px}
.ms-trust-row .ms-icon svg{width:16px;height:16px}
.ms-choice-set{border:0;padding:0;margin:26px 0 18px;min-width:0}
.ms-label{font-size:13px;font-weight:760;color:var(--ink);margin-bottom:10px}
.ms-choice-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}
.ms-tile{appearance:none;text-align:left;display:flex;align-items:flex-start;gap:14px;min-height:100px;padding:18px;background:var(--bg);border:1.5px solid var(--line);border-radius:17px;color:var(--ink);font:inherit;cursor:pointer;transition:background .16s,border .16s,transform .16s}
.ms-tile:hover{transform:translateY(-2px);border-color:var(--ms-teal)}
.ms-tile[aria-pressed=true]{border-color:var(--ms-teal);background:color-mix(in srgb,var(--ms-mint) 12%,var(--sur));box-shadow:inset 0 0 0 1px var(--ms-teal)}
.ms-tile>.ms-icon{width:41px;height:41px;border-radius:13px;background:color-mix(in srgb,var(--ms-teal) 10%,var(--sur))}
.ms-choice-copy{display:grid;gap:5px}.ms-choice-copy strong{font-size:15px;font-weight:720}.ms-choice-copy small{font-size:12px;color:var(--mut);line-height:1.4}
.moos-shell:has(.moos-journey-layout) .moos-field label{font-size:13px;font-weight:700}
.moos-shell:has(.moos-journey-layout) .moos-field input,.moos-shell:has(.moos-journey-layout) .moos-field select{border-radius:11px;border:1px solid var(--line);background:var(--bg);min-height:49px;box-shadow:0 2px 7px -6px rgba(25,73,114,.2)}
.moos-shell:has(.moos-journey-layout) .moos-field input:focus-visible,.moos-shell:has(.moos-journey-layout) .moos-field select:focus-visible{outline:3px solid color-mix(in srgb,var(--ms-mint) 65%,transparent);outline-offset:1px}
.ms-section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:26px;margin-bottom:14px;padding-bottom:13px;border-bottom:1px solid var(--line)}
.ms-section-head>div{display:grid;gap:3px}.ms-section-head strong{font-size:17px}.ms-section-head small{font-size:12px;color:var(--mut);line-height:1.4}
.moos-shell:has(.moos-journey-layout) .moos-button.ms-add-button{background:var(--ms-teal);color:#fff;border-color:var(--ms-teal);font-size:13px;min-height:41px;padding:10px 15px;white-space:nowrap}
.ms-account-chooser{border:1.5px solid var(--ms-mint);background:color-mix(in srgb,var(--ms-mint) 8%,var(--sur));padding:19px;border-radius:19px;margin:10px 0 19px}
.ms-account-chooser>strong{font-size:15px}
.ms-account-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:14px}
.ms-account-option{appearance:none;display:flex;align-items:flex-start;gap:11px;text-align:left;padding:13px;background:var(--bg);border:1px solid var(--line);border-radius:13px;font:inherit;color:var(--ink);cursor:pointer}
.ms-account-option:hover,.ms-account-option:focus-visible{border-color:var(--ms-teal);background:var(--sur)}
.ms-account-option>.ms-icon{width:28px;height:28px;background:color-mix(in srgb,var(--ms-mint) 18%,var(--sur));border-radius:9px}
.ms-account-option>.ms-icon svg{width:17px;height:17px}
.ms-account-option>span:last-child{display:grid;gap:3px;min-width:0}.ms-account-option strong{font-size:12px}.ms-account-option small{color:var(--mut);font-size:11px;line-height:1.35}
.ms-empty-state{margin:20px 0;background:linear-gradient(145deg,var(--ms-soft),var(--sur));border:1px dashed color-mix(in srgb,var(--a) 35%,var(--line));border-radius:21px;padding:28px;text-align:center}
.ms-empty-state>.ms-icon{width:60px;height:60px;border-radius:20px;margin:auto;background:color-mix(in srgb,var(--a) 13%,var(--sur))}.ms-empty-state>.ms-icon svg{width:33px;height:33px}.ms-empty-state h3{font-size:18px;margin:17px 0 8px}.ms-empty-state p{font-size:13px;color:var(--mut);max-width:38ch;line-height:1.6;margin:auto}
.ms-account-card,.ms-person-card{border:1px solid var(--ms-edge);border-radius:18px;background:var(--sur);padding:18px 20px;margin:12px 0;box-shadow:0 12px 30px -32px rgba(25,73,114,.2)}
.ms-account-top,.ms-person-head{display:flex;align-items:center;gap:11px}.ms-account-top>.ms-icon,.ms-person-head>.ms-icon{height:41px;width:41px;background:var(--ms-soft);border-radius:12px}.ms-account-top>div,.ms-person-head>div{display:grid;gap:3px;flex:1;min-width:0}.ms-account-top strong,.ms-person-head strong{font-size:15px;font-weight:750}.ms-account-top small{font-size:12px;color:var(--mut)}
.moos-shell:has(.moos-journey-layout) .moos-button.ms-remove-button{min-height:30px;padding:6px 9px;background:transparent;color:var(--mut);border:0;font-size:12px;margin-left:auto}
.moos-shell:has(.moos-journey-layout) .moos-button.ms-remove-button:hover{color:#b64f43;background:rgba(205,98,80,.07);box-shadow:none}
.moos-shell:has(.moos-journey-layout) .ms-account-fields{gap:13px;margin-top:18px}
.ms-existing{padding:18px 20px;border:1px dashed var(--line);border-radius:15px;margin-top:20px;font-size:13px}.ms-existing p{margin:10px 0}.ms-existing small{color:var(--mut);line-height:1.5}
.ms-person-grid{display:grid;gap:15px;margin-top:23px}.ms-person-card{padding:22px;margin:0}.ms-person-card>.moos-field{margin-top:17px}.ms-person-card>.ms-person-head .ms-icon{background:color-mix(in srgb,var(--ms-teal) 10%,var(--sur))}
.ms-advanced{margin-top:17px;padding-top:13px;border-top:1px solid var(--line)}.ms-advanced>summary{color:var(--ms-teal);font-size:13px;font-weight:720;cursor:pointer;padding:7px 0}.ms-advanced>.moos-fields{margin-top:9px}
.ms-segmented{display:grid;grid-template-columns:1fr 1fr;padding:5px;gap:5px;border-radius:16px;background:var(--ms-soft);border:1px solid var(--ms-edge);margin:24px 0 23px}
.ms-segment{appearance:none;border:0;cursor:pointer;background:transparent;color:var(--mut);font:700 13px/1.3 var(--sans);min-height:45px;border-radius:12px;padding:12px}
.ms-segment[aria-pressed=true]{color:var(--ms-ink);background:var(--sur);box-shadow:0 4px 15px -11px var(--ink)}
.ms-total-entry{display:grid;gap:13px;background:linear-gradient(135deg,var(--ms-soft),var(--sur));border:1px solid var(--ms-edge);border-radius:21px;padding:24px}
.ms-total-entry>.ms-icon{height:44px;width:44px;background:color-mix(in srgb,var(--a) 12%,var(--sur));border-radius:14px}.ms-total-entry h3{font-size:21px;letter-spacing:-.03em;margin:0}.ms-total-entry p{font-size:14px;color:var(--mut);line-height:1.6;margin:0}.ms-total-entry small{color:var(--mut);font-size:12px}.ms-total-entry>.moos-field{margin-top:5px}
.ms-expenses-list{display:grid;gap:9px}
.ms-expense-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,1.2fr);gap:11px;align-items:center;padding:13px 15px;background:var(--sur);border:1px solid var(--ms-edge);border-radius:14px}
.ms-expense-heading{display:flex;gap:9px;align-items:center;min-width:0}.ms-expense-heading>.ms-icon{width:33px;height:33px;border-radius:11px;background:var(--ms-soft)}.ms-expense-heading>.ms-icon svg{width:18px;height:18px}.ms-expense-heading>div{display:grid;min-width:0;gap:3px}.ms-expense-heading strong{font-size:13px}.ms-expense-heading small{font-size:10px;color:var(--mut);line-height:1.4}
.ms-expense-entry{display:grid;grid-template-columns:1fr minmax(93px,.7fr);gap:6px;min-width:0}.ms-expense-entry:has(select:nth-of-type(2)){grid-template-columns:1fr 95px 85px}
.ms-expense-entry>input,.ms-expense-entry>select,.ms-custom-expense-fields>input,.ms-custom-expense-fields>select,.ms-allocation-row>input{width:100%;min-width:0;max-width:100%;border:1px solid var(--ms-edge);border-radius:10px;background:var(--bg);padding:9px 10px;min-height:41px;font:inherit;font-size:12px;color:var(--ink)}
.ms-custom-expense-fields{display:flex;gap:10px;margin:8px 0 14px}.ms-custom-expense-fields>input{flex:1}.ms-custom-expense-fields>select{flex:0 0 145px}
.ms-detailed-total,.ms-alloc-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;border-radius:15px;background:var(--ms-soft);border:1px solid var(--ms-edge);padding:17px 19px;margin-top:16px}.ms-detailed-total span,.ms-alloc-summary span{font-size:13px;font-weight:680}.ms-detailed-total strong,.ms-alloc-summary strong{font-size:21px;letter-spacing:-.03em}
.ms-surplus-hero{background:linear-gradient(120deg,var(--ink),var(--ms-teal));color:white;border-radius:22px;padding:24px 26px;margin:25px 0 20px;position:relative;overflow:hidden}.ms-surplus-hero:after{content:"";position:absolute;right:-50px;top:-100px;width:220px;height:220px;border:1px solid rgba(255,255,255,.25);border-radius:50%;box-shadow:0 0 0 39px rgba(255,255,255,.04),0 0 0 78px rgba(255,255,255,.04)}.ms-surplus-hero>span{font-size:11px;font-weight:780;letter-spacing:.12em;color:color-mix(in srgb,var(--a) 30%,var(--sur))}.ms-surplus-hero>strong{display:block;font-size:clamp(34px,4vw,52px);font-variant-numeric:tabular-nums;margin:9px 0;line-height:1.1;letter-spacing:-.05em}.ms-surplus-hero p{font-size:13px;line-height:1.55;max-width:38ch;color:color-mix(in srgb,var(--a) 12%,var(--sur))}
.ms-allocation-list{display:grid;gap:10px}.ms-allocation-row{display:grid;grid-template-columns:40px minmax(0,1fr) minmax(80px,130px);align-items:center;gap:12px;padding:15px;border:1px solid var(--ms-edge);border-radius:15px;background:var(--sur)}.ms-allocation-row>.ms-icon{height:39px;width:39px;border-radius:12px;background:var(--ms-soft)}.ms-allocation-name{display:grid;gap:4px;min-width:0}.ms-allocation-name strong{font-size:13px}.ms-allocation-name small{font-size:11px;color:var(--mut)}
.ms-hero-metric{display:grid;gap:5px;margin:20px 0;padding:18px 19px;border-radius:17px;background:var(--sur);border:1px solid var(--line)}.ms-hero-metric>span{font-size:11px;letter-spacing:.12em;font-weight:750;color:var(--mut)}.ms-hero-metric>strong{font-size:clamp(31px,3.7vw,45px);line-height:1.25;letter-spacing:-.05em;overflow-wrap:anywhere;font-variant-numeric:tabular-nums;color:var(--ink)}.ms-hero-metric>small{font-size:12px;color:var(--mut)}
.ms-bar-chart,.ms-chart-block,.ms-flow-chart{display:grid;gap:15px;margin:21px 0}.ms-bar-row{display:grid;gap:8px}.ms-bar-caption{display:flex;justify-content:space-between;gap:9px;align-items:baseline}.ms-bar-caption>span{font-size:12px;color:var(--mut)}.ms-bar-caption>strong{font-size:13px;letter-spacing:-.015em;font-weight:750;font-variant-numeric:tabular-nums}.ms-bar-track{height:13px;background:var(--line);border-radius:50px;overflow:hidden}.ms-bar-track>i{display:block;height:100%;border-radius:50px;transition:width .3s ease}
.ms-donut-row{display:flex;gap:20px;align-items:center;padding:19px 0;border-top:1px solid var(--line);margin-top:20px}.ms-donut{width:145px;height:145px;flex:none;border-radius:50%;display:grid;place-items:center;box-shadow:0 8px 18px -14px rgba(25,73,114,.18)}.ms-donut-hole{display:grid;place-items:center;text-align:center;background:var(--sur);border-radius:50%;width:97px;height:97px;font-weight:800;letter-spacing:-.04em;font-size:14px}.ms-donut-legend{display:grid;gap:10px}.ms-donut-legend>div{display:flex;gap:8px;align-items:center;font-size:11px}.ms-donut-legend i{width:10px;height:10px;flex:none;border-radius:3px}
.ms-viz-row{display:flex;align-items:center;gap:12px;margin:12px 0;padding:12px 0;border-bottom:1px solid var(--line)}.ms-viz-row>.ms-icon{color:var(--ms-teal)}.ms-viz-row>span:last-child{font-size:13px;font-weight:650;color:var(--mut)}
.ms-aside-tip{font-size:12px;line-height:1.65;color:var(--mut);border-top:1px solid var(--line);margin:24px 0 0;padding-top:17px}
.ms-illustration{height:220px;display:grid;place-items:center;overflow:hidden}.ms-orbit{position:relative;height:184px;width:184px;border:1px dashed color-mix(in srgb,var(--a) 40%,var(--line));border-radius:50%;display:grid;place-items:center;box-shadow:0 0 0 20px rgba(91,163,209,.07),0 0 0 48px rgba(91,163,209,.04)}.ms-orbit-center{height:83px;width:83px;border-radius:26px;display:grid;place-items:center;color:#fff;font-weight:800;font-size:50px;font-family:var(--serif);background:linear-gradient(135deg,#1B557D,#5C9CC8);box-shadow:0 13px 34px -16px rgba(22,80,142,.28);transform:rotate(-9deg)}.ms-orbit-badge{position:absolute;display:grid;place-items:center;background:var(--sur);border:1px solid var(--ms-edge);border-radius:13px;width:43px;height:43px;box-shadow:0 10px 20px -15px rgba(24,72,130,.3)}.ms-orbit-badge:nth-child(2){top:-12px;left:68px}.ms-orbit-badge:nth-child(3){right:-17px;top:70px}.ms-orbit-badge:nth-child(4){bottom:-15px;left:67px}.ms-orbit-badge:nth-child(5){left:-19px;top:70px}
.ms-helper{font-size:12px;line-height:1.6;color:var(--mut);margin:18px 0 0}.moos-shell:has(.moos-journey-layout) .moos-actions.ms-footer-actions{justify-content:space-between;margin-top:29px;padding-top:24px;border-top:1px solid var(--ms-edge)}.moos-shell:has(.moos-journey-layout) .moos-actions.ms-footer-actions .moos-button:last-child{background:var(--ms-teal);border-color:var(--ms-teal);color:white;font-weight:730;min-width:180px}
.moos-shell:has(.moos-journey-layout) .moos-actions.ms-footer-actions .moos-button:last-child:hover{background:color-mix(in srgb,var(--a) 75%,#052A45)}
.moos-shell:has(.moos-journey-layout) .moos-review-card{border:1px solid var(--ms-edge);border-radius:17px}.moos-shell:has(.moos-journey-layout) .moos-review-card>h3{background:var(--ms-soft);font-weight:760}.moos-shell:has(.moos-journey-layout) .moos-review-line .moos-button{font-size:12px;color:var(--ms-teal)}
.ms-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.moos-shell:has(.moos-journey-layout) .ms-tile:focus-visible,.moos-shell:has(.moos-journey-layout) .ms-segment:focus-visible,.moos-shell:has(.moos-journey-layout) .ms-house-card:focus-visible,.moos-shell:has(.moos-journey-layout) .ms-account-option:focus-visible{outline:3px solid var(--ms-teal);outline-offset:3px}
.moos-shell[data-journey-step="welcome"]>header,.moos-shell[data-journey-step="welcome"] #journey-progress{display:none}
.moos-shell[data-journey-step="general"]>header,.moos-shell[data-journey-step="assets"]>header,.moos-shell[data-journey-step="salary"]>header,.moos-shell[data-journey-step="expenses"]>header,.moos-shell[data-journey-step="allocation"]>header,.moos-shell[data-journey-step="review"]>header{display:none}
@media(max-width:1050px){.moos-shell:has(.moos-journey-layout) .moos-journey-layout{grid-template-columns:minmax(0,1fr) minmax(280px,.8fr)}.ms-expense-card{grid-template-columns:1fr}.ms-account-options{grid-template-columns:1fr 1fr}}
@media(max-width:800px){.moos-shell:has(.moos-journey-layout) .moos-journey-layout{grid-template-columns:1fr}.moos-shell:has(.moos-journey-layout) .moos-preview{position:static;min-height:0;order:initial;padding:24px}.ms-illustration{height:135px}.ms-orbit{transform:scale(.7)}.moos-shell:has(.moos-journey-layout) .moos-preview:has(.ms-illustration){display:none}.moos-shell:has(.moos-journey-layout) .moos-progress{margin-bottom:16px}.ms-viz-title{font-size:22px;margin-bottom:12px}.ms-hero-metric{margin:10px 0}.ms-hero-metric strong{font-size:30px}.ms-bar-chart,.ms-chart-block,.ms-flow-chart{grid-template-columns:1fr 1fr;gap:15px}.ms-aside-tip{margin:10px 0 0}}
@media(max-width:600px){.moos-shell:has(.moos-journey-layout){padding-left:12px;padding-right:12px;padding-top:15px}.moos-shell:has(.moos-journey-layout) .moos-progress{gap:2px;margin-top:10px}.moos-shell:has(.moos-journey-layout) .moos-step{padding-bottom:9px}.moos-shell:has(.moos-journey-layout) .moos-step-name{font-size:9px}.moos-shell:has(.moos-journey-layout) .moos-step-count{height:22px;width:22px;font-size:10px}.moos-shell:has(.moos-journey-layout) .moos-feature{padding:23px 17px;border-radius:21px;min-height:0}.moos-shell:has(.moos-journey-layout) .moos-journey-layout .moos-subtitle{font-size:30px}.moos-shell:has(.moos-journey-layout) .moos-journey-layout .moos-muted{font-size:14px}.ms-choice-options,.moos-household-grid,.ms-account-options{grid-template-columns:1fr}.ms-house-card{min-height:165px}.ms-account-card{padding:17px}.ms-account-fields{grid-template-columns:1fr!important}.ms-expense-card{grid-template-columns:1fr}.ms-expense-entry{grid-template-columns:minmax(0,1fr) minmax(85px,100px)}.ms-expense-entry:has(select:nth-of-type(2)){grid-template-columns:minmax(0,1fr) 94px 76px}.ms-expense-entry>select{font-size:11px;padding:7px 5px}.ms-custom-expense-fields>select{flex:0 0 115px}.ms-allocation-row{grid-template-columns:34px minmax(0,1fr) 95px;gap:8px;padding:12px}.ms-allocation-row>.ms-icon{height:33px;width:33px}.ms-donut-row{flex-direction:column;align-items:flex-start}.ms-donut{width:123px;height:123px}.ms-donut-hole{width:84px;height:84px}.moos-shell:has(.moos-journey-layout) .moos-actions.ms-footer-actions{gap:9px}.moos-shell:has(.moos-journey-layout) .moos-actions.ms-footer-actions .moos-button{flex:1;padding:11px 10px;font-size:12px;min-width:0}.moos-shell:has(.moos-journey-layout) .moos-preview{padding:20px 19px;border-radius:20px}.ms-bar-chart,.ms-chart-block,.ms-flow-chart{grid-template-columns:1fr;gap:12px}}
@media(prefers-reduced-motion:reduce){.ms-tile,.ms-bar-track>i{transition:none}}
/* After setup: an interactive, explicitly return-free contribution scenario. */
.ms-scenario-panel{margin-top:26px;padding:24px;background:linear-gradient(145deg,var(--ms-soft),var(--sur));border:1px solid var(--ms-edge);border-radius:21px}
.ms-scenario-panel>h3{font-size:clamp(21px,2.6vw,29px);letter-spacing:-.035em;line-height:1.2;margin:8px 0 10px}
.ms-scenario-lead,.ms-scenario-empty,.ms-scenario-footnote{font-size:12.5px;line-height:1.6;color:var(--mut)}
.ms-scenario-tabs{display:flex;gap:5px;max-width:360px;background:var(--sur);border:1px solid var(--ms-edge);padding:4px;margin:18px 0 13px;border-radius:12px}
.moos-journey-layout .moos-button.ms-scenario-tab{flex:1;min-height:38px;padding:8px 12px;border:0;background:transparent;color:var(--mut);font-size:12px}
.moos-journey-layout .moos-button.ms-scenario-tab[aria-pressed=true]{background:var(--ms-teal);color:#fff;border-radius:9px}
.ms-scenario-kpis{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap;margin-top:16px}
.ms-scenario-kpis>div{display:grid;gap:4px}.ms-scenario-kpis small{font-size:10px;letter-spacing:.11em;color:var(--mut);font-weight:700}
.ms-scenario-kpis strong{font-size:clamp(22px,3vw,31px);font-weight:750;letter-spacing:-.035em;font-variant-numeric:tabular-nums}
.ms-scenario-graph{background:var(--sur);border:1px solid var(--line);border-radius:15px;padding:8px 10px;margin-top:15px;overflow:hidden}
.ms-scenario-graph svg{width:100%;height:auto;display:block;max-height:230px}
.ms-scenario-legend{display:flex;gap:18px;flex-wrap:wrap;margin:14px 0 12px;font-size:11px;color:var(--mut)}
.ms-scenario-legend span:first-child{color:var(--ms-teal);font-weight:700}
@media(max-width:600px){.ms-scenario-panel{padding:20px 16px}.ms-scenario-legend{gap:7px;flex-direction:column}}
/* Goal selection: carry illustrated, tactile choice cards into the returning-user Journey. */
.moos-shell:has(.moos-journey-layout) .moos-grid:has(.ms-path-card){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:23px}
.moos-shell:has(.moos-journey-layout) .moos-grid .ms-path-card{display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:12px;min-height:182px;padding:22px;border:1.5px solid var(--ms-edge);background:var(--sur);border-radius:18px;cursor:pointer;box-shadow:0 12px 30px -30px rgba(25,73,114,.28);transition:border-color .15s,transform .15s,box-shadow .15s;color:var(--ink)}
.moos-shell:has(.moos-journey-layout) .moos-grid .ms-path-card:hover{border-color:var(--ms-teal);transform:translateY(-2px);box-shadow:0 17px 30px -24px rgba(25,73,114,.28)}
.moos-shell:has(.moos-journey-layout) .ms-path-card>.ms-icon{display:grid;place-items:center;width:45px;height:45px;border-radius:14px;background:var(--ms-soft);color:var(--ms-teal)}
.moos-shell:has(.moos-journey-layout) .ms-path-card strong{font-size:15px;line-height:1.35}
.moos-shell:has(.moos-journey-layout) .ms-path-card>span:last-child:not(.ms-icon){font-size:12px;line-height:1.55;color:var(--mut)}
@media(max-width:600px){.moos-shell:has(.moos-journey-layout) .moos-grid:has(.ms-path-card){grid-template-columns:1fr}.moos-shell:has(.moos-journey-layout) .moos-grid .ms-path-card{min-height:134px}}

/* MOOS v5: responsive canvas, blue brand palette and accessible interactive summaries. */
.moos-shell:has(.moos-journey-layout){isolation:isolate}
.moos-shell:has(.moos-journey-layout) .moos-journey-layout{max-width:100%;margin-inline:auto}
.moos-shell:has(.moos-journey-layout) .moos-feature,.moos-shell:has(.moos-journey-layout) .moos-preview{max-width:100%;min-width:0}
.moos-shell:has(.moos-journey-layout) .ms-scenario-panel{background:linear-gradient(160deg,var(--ms-soft),var(--sur))}
.ms-scenario-basis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:20px 0 16px}
.ms-scenario-basis>div{display:flex;flex-direction:column;gap:5px;border:1px solid var(--ms-edge);background:var(--sur);border-radius:14px;padding:13px 14px;min-width:0}
.ms-scenario-basis small{font-size:10px;line-height:1.4;letter-spacing:.035em;color:var(--mut)}
.ms-scenario-basis strong{font-size:16px;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ms-scenario-growth{display:flex;align-items:flex-start;gap:12px;background:color-mix(in srgb,var(--a) 6%,var(--sur));border:1px solid var(--ms-edge);border-radius:14px;padding:15px;cursor:pointer;margin:0 0 16px}
.ms-scenario-growth input{accent-color:var(--ms-teal);margin:4px 0 0;width:19px;height:19px;flex:none}
.ms-scenario-growth span{display:grid;gap:3px}.ms-scenario-growth strong{font-size:13px}.ms-scenario-growth small{font-size:11px;line-height:1.5;color:var(--mut)}
.ms-scenario-graph{background:var(--sur);padding:10px;overflow:visible}
.ms-scenario-graph svg{max-height:none;overflow:visible}
.ms-chart-grid{stroke:var(--line);stroke-width:1;stroke-dasharray:4 5}
.ms-chart-axis{fill:var(--mut);font-size:11px;font-family:var(--sans)}
.ms-chart-line{stroke:var(--ms-teal);stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round}
.ms-chart-growth-line{stroke:var(--ms-indigo);stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-dasharray:7 4}
.ms-chart-dot{fill:var(--sur);stroke:var(--ms-teal);stroke-width:2;cursor:crosshair;transition:r .15s}
.ms-chart-dot:hover,.ms-chart-dot:focus{stroke-width:4;r:7;outline:none}
.ms-legend-growth{font-weight:700;color:var(--ms-indigo)}
.ms-scenario-inspector{border:1px solid var(--ms-edge);border-radius:13px;padding:15px;background:var(--sur)}
.ms-year-slider{width:100%;accent-color:var(--ms-teal);cursor:pointer;min-height:28px;margin:0 0 8px}
.ms-year-detail{display:grid;gap:5px}.ms-year-detail strong{font-size:14px;font-variant-numeric:tabular-nums}.ms-year-detail span{font-size:12px;color:var(--mut);line-height:1.6}
.ms-path-value{font-style:normal;font-weight:750;font-size:12px;color:var(--ms-teal);border-top:1px solid var(--line);padding-top:12px;margin-top:auto;width:100%;letter-spacing:.01em}
.moos-shell:has(.moos-journey-layout) .ms-path-card>span:last-child:not(.ms-icon){font-size:12px}
.ms-goal-facts-intro{display:flex;gap:13px;align-items:center;padding:15px 17px;border:1px solid var(--ms-edge);border-radius:16px;background:var(--ms-soft);margin-bottom:22px}
.ms-goal-facts-intro .ms-icon{width:48px;height:48px;border-radius:13px;background:var(--sur)}
.ms-goal-facts-intro p{font-size:13px;line-height:1.65;color:var(--mut)}
.ms-goal-hero{margin:25px 0 20px;padding:clamp(19px,3vw,28px);border-radius:22px;border:1px solid var(--ms-edge);background:linear-gradient(150deg,var(--ms-soft),var(--sur) 73%)}
.ms-goal-hero-head{display:flex;gap:12px;align-items:center}
.ms-goal-hero-head>.ms-icon{width:51px;height:51px;background:color-mix(in srgb,var(--ms-teal) 15%,var(--sur));border-radius:16px}
.ms-goal-hero-head>.ms-icon svg{width:28px;height:28px}
.ms-goal-hero-head>div{display:grid;gap:4px}.ms-goal-hero-head small{font-size:10px;letter-spacing:.09em;font-weight:750;color:var(--mut)}
.ms-goal-hero-head strong{font-size:17px;line-height:1.4}
.ms-goal-hero .moos-result-number{font-family:var(--sans);font-weight:730;letter-spacing:-.06em;margin:22px 0 12px;font-size:clamp(30px,4vw,56px)}
.ms-basis-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:14px 0 0}
.ms-basis-chips>small{font-size:10px;font-weight:750;color:var(--mut);letter-spacing:.06em}
.ms-goal-detail{padding:clamp(18px,2.8vw,26px);border-radius:20px;border:1px solid var(--ms-edge);background:var(--sur);margin:15px 0}
.ms-goal-detail>h3{font-size:18px;letter-spacing:-.025em;margin-bottom:17px}
.ms-result-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:12px}
.ms-result-stat{display:grid;align-content:start;gap:7px;background:var(--ms-soft);border-radius:14px;padding:15px;min-width:0}
.ms-result-stat small{font-weight:700;font-size:10px;letter-spacing:.06em;color:var(--mut)}
.ms-result-stat strong{font-weight:750;font-size:clamp(17px,2.3vw,23px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ms-result-stat>span{font-size:11px;line-height:1.5;color:var(--mut)}
.ms-goal-bars{margin-top:22px}.ms-goal-bars:empty{display:none}
.ms-goal-bars .ms-bar-row{margin-bottom:16px}
.ms-result-breakdown{margin-top:19px;border-top:1px solid var(--line);padding-top:16px}
.ms-result-breakdown>h4{font-size:15px;margin-bottom:12px}
.ms-result-breakdown .ms-bar-track{height:9px}
.ms-buffer-track{height:16px;border-radius:14px;background:var(--line);overflow:hidden;margin:10px 0 15px}
.ms-buffer-track i{display:block;height:100%;background:linear-gradient(90deg,var(--ms-teal),var(--ms-mint));border-radius:14px}
.ms-investment-bars{display:grid;gap:15px}.ms-investment-line{display:grid;gap:5px;font-size:12px;color:var(--mut)}
.ms-goal-explainer{background:var(--ms-soft);border-radius:16px;padding:20px;margin-top:18px}
.ms-goal-next{background:var(--sur);border-color:var(--ms-edge)}
#journey-screen .ms-expense-card input,#journey-screen .ms-expense-card select,#journey-screen .ms-allocation-row input{min-width:0;max-width:100%;color:var(--ink)}
.moos-shell:has(.moos-journey-layout) .moos-card{overflow-wrap:break-word}
.moos-shell:has(.moos-journey-layout) .ms-empty-state{max-width:100%}
@media(max-width:1050px){.ms-scenario-basis{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){
 .moos-shell:has(.moos-journey-layout) .moos-journey-layout{grid-template-columns:minmax(0,1fr)}
 .moos-shell:has(.moos-journey-layout) .moos-preview{order:initial;min-height:0;position:relative;top:auto}
 .moos-shell:has(.moos-journey-layout) .moos-feature{min-height:0}
}
@media(max-width:600px){
 .moos-shell:has(.moos-journey-layout){padding-inline:clamp(12px,4vw,20px)}
 .ms-scenario-basis{grid-template-columns:1fr 1fr;gap:8px}.ms-scenario-basis>div{padding:11px}
 .ms-scenario-basis>div:last-child{grid-column:1/-1}
 .ms-scenario-graph{margin-inline:-7px;padding:5px}
 .ms-scenario-inspector{padding:12px}.ms-scenario-legend{gap:8px}
 .ms-goal-hero{padding:18px}.ms-result-stats{grid-template-columns:1fr 1fr;gap:8px}
 .ms-result-stat{padding:12px}.ms-result-stat strong{font-size:17px}
 .ms-goal-facts-intro{align-items:flex-start}
 .ms-goal-next{display:flex;flex-direction:column}.ms-goal-next .moos-button{width:100%}
}
@media(max-width:420px){
 .moos-shell:has(.moos-journey-layout) .moos-progress{gap:5px}
 .moos-shell:has(.moos-journey-layout) .moos-step-name{display:none}
 .moos-shell:has(.moos-journey-layout) .moos-step{padding:4px 0 10px;justify-content:center}
 .moos-shell:has(.moos-journey-layout) .moos-step-count{height:27px;width:27px}
 .ms-result-stats{grid-template-columns:1fr}
 .ms-scenario-tabs{max-width:none}
 .ms-scenario-kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px}
 .ms-scenario-kpis strong{font-size:20px}
 .moos-shell:has(.moos-journey-layout) input:not([type=checkbox]):not([type=range]),.moos-shell:has(.moos-journey-layout) select{font-size:16px}
}

/* When the chart companion is not used, center the entire Journey instead of
   leaving an empty right column on the goal-selection and choice screens. */
.moos-shell:has(.moos-journey-layout) .moos-journey-layout:has(> .moos-preview[hidden]){grid-template-columns:minmax(0,1fr);justify-items:center}
.moos-shell:has(.moos-journey-layout) .moos-journey-layout:has(> .moos-preview[hidden])>.moos-feature{width:100%;max-width:950px}
.ms-scenario-kpis strong{overflow-wrap:anywhere}
.ms-scenario-basis strong{overflow-wrap:anywhere}
@media(max-width:600px){
 .moos-shell:has(.moos-journey-layout) .moos-journey-layout:has(> .moos-preview[hidden])>.moos-feature{max-width:100%}
 .ms-scenario-kpis>div{min-width:0}
}

/* Theme-aware Journey accents; manual light choice wins over the system theme. */
:root[data-theme="dark"] .moos-shell:has(.moos-journey-layout),
:root:not([data-theme="light"]) .moos-shell:has(.moos-journey-layout){--ms-chart-axis:var(--mut)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .ms-scenario-graph{background:var(--sur)}}
:root[data-theme="dark"] .ms-scenario-graph,:root[data-theme="dark"] .ms-hero-metric{background:var(--sur);color:var(--ink)}
:root[data-theme="dark"] .ms-scenario-tab[aria-pressed=true]{color:#fff}

/* Keep the guided Journey buttons legible in explicit and automatic dark mode. */
:root[data-theme="dark"] .moos-shell:has(.moos-journey-layout){--ms-teal:#8fc8f4;--ms-button-fill:#225e85}
:root[data-theme="dark"] .moos-shell:has(.moos-journey-layout) .moos-button.ms-add-button,
:root[data-theme="dark"] .moos-shell:has(.moos-journey-layout) .moos-actions.ms-footer-actions .moos-button:last-child,
:root[data-theme="dark"] .moos-journey-layout .moos-button.ms-scenario-tab[aria-pressed="true"]{background:var(--ms-button-fill);border-color:var(--ms-button-fill);color:#fff}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .moos-shell:has(.moos-journey-layout){--ms-teal:#8fc8f4;--ms-button-fill:#225e85}
  :root:not([data-theme="light"]) .moos-shell:has(.moos-journey-layout) .moos-button.ms-add-button,
  :root:not([data-theme="light"]) .moos-shell:has(.moos-journey-layout) .moos-actions.ms-footer-actions .moos-button:last-child,
  :root:not([data-theme="light"]) .moos-journey-layout .moos-button.ms-scenario-tab[aria-pressed="true"]{background:var(--ms-button-fill);border-color:var(--ms-button-fill);color:#fff}
}
:root[data-theme="dark"] .moos-shell:has(.moos-journey-layout) .ms-scenario-graph,
:root[data-theme="dark"] .moos-shell:has(.moos-journey-layout) .ms-hero-metric{background:var(--sur);color:var(--ink)}

/* Dark hero is deliberately dark even though --ink becomes light in dark theme. */
:root[data-theme="dark"] .ms-surplus-hero{background:linear-gradient(125deg,#122d42,#215977);color:#fff}
:root[data-theme="dark"] .ms-surplus-hero>span,:root[data-theme="dark"] .ms-surplus-hero p{color:#d9edfc}
@media (prefers-color-scheme:dark){
  :root:not([data-theme="light"]) .ms-surplus-hero{background:linear-gradient(125deg,#122d42,#215977);color:#fff}
  :root:not([data-theme="light"]) .ms-surplus-hero>span,:root:not([data-theme="light"]) .ms-surplus-hero p{color:#d9edfc}
}

/* Keep the task dominant and make progress legible on narrow screens. */
.moos-shell:has(.moos-journey-layout)>header .moos-title{font-family:var(--sans);font-weight:720;letter-spacing:-.05em}
.moos-shell:has(.moos-journey-layout) .moos-feature{border-radius:24px}
.moos-shell:has(.moos-journey-layout) .moos-preview{border-radius:24px}
.moos-shell:has(.moos-journey-layout) .moos-button{border-radius:11px}
.moos-shell:has(.moos-journey-layout) .ms-house-card{background:var(--sur)!important}
@media(max-width:700px){
  .moos-shell:has(.moos-journey-layout){padding-inline:12px}
  .moos-shell:has(.moos-journey-layout) .moos-progress{gap:5px;margin-bottom:17px}
  .moos-shell:has(.moos-journey-layout) .moos-step{justify-content:center;padding-bottom:10px}
  .moos-shell:has(.moos-journey-layout) .moos-step-name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .moos-shell:has(.moos-journey-layout) .moos-feature{min-height:0;padding:24px 20px}
  .moos-shell:has(.moos-journey-layout) .moos-preview{padding:24px 20px;min-height:0}
  .moos-shell:has(.moos-journey-layout) .ms-choice-options,.moos-shell:has(.moos-journey-layout) .ms-account-options{grid-template-columns:1fr}
}

/* Phase 0D: legacy direct journeys are focused forms, not seven-step setup.
   These selectors do not affect normal onboarding or the returning goals view. */
.moos-shell[data-journey-step^="direct"] .moos-journey-layout{grid-template-columns:minmax(0,1fr);max-width:760px;margin-inline:auto}
.moos-shell[data-journey-step^="direct"] .moos-feature{min-height:0}
.moos-shell[data-journey-step^="direct"] .moos-progress{grid-template-columns:repeat(4,minmax(0,1fr));max-width:760px;margin-inline:auto}
.moos-shell[data-journey-step^="direct"] .moos-progress:has(.moos-step:nth-child(2):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
