/* MOOS first-time journey: original UI language influenced by clarity and progressive disclosure,
   not a reproduction of the reference application's assets or layouts. */
.moos-shell:has(.moos-journey-layout){max-width:1160px;padding-top:clamp(30px,5vw,58px)}
.moos-shell:has(.moos-journey-layout)>header{padding:0 2px}
.moos-shell:has(.moos-journey-layout) .moos-title{font:600 clamp(34px,5.1vw,58px)/1.09 var(--sans);letter-spacing:-.05em;max-width:24ch}
.moos-shell:has(.moos-journey-layout) .moos-lead{max-width:62ch;font-size:16px}
.moos-shell:has(.moos-journey-layout) .moos-progress{margin:8px 0 26px;gap:5px;grid-template-columns:repeat(5,minmax(0,1fr))}
.moos-shell:has(.moos-journey-layout) .moos-step{font-size:12px;padding:10px 6px 13px;gap:9px;border-bottom-width:2px}
.moos-shell:has(.moos-journey-layout) .moos-step.current{border-bottom-width:4px}
.moos-shell:has(.moos-journey-layout) .moos-step-count{width:26px;height:26px;font-size:12px}
.moos-shell:has(.moos-journey-layout) .moos-feature{border:1px solid var(--line);box-shadow:0 24px 65px -44px rgba(16,31,41,.27);padding:clamp(25px,4vw,45px);border-radius:24px}
.moos-shell:has(.moos-journey-layout) .moos-feature::before{width:210px;height:210px;right:-180px;top:-160px}
.moos-journey-layout{display:block;min-width:0}
.moos-journey-layout:has(.moos-preview:not([hidden])){display:grid;grid-template-columns:minmax(0,1.8fr) minmax(250px,.85fr);align-items:start;gap:22px}
.moos-journey-layout .moos-subtitle{font:650 clamp(25px,3vw,36px)/1.18 var(--sans);letter-spacing:-.035em;max-width:26ch}
.moos-journey-layout .moos-muted{font-size:15px;line-height:1.65;max-width:62ch}
.moos-journey-layout .moos-actions{margin-top:28px;border-top:1px solid var(--line);padding-top:23px}
.moos-journey-layout .moos-actions .moos-button:last-child:not(.secondary):not(.plain){min-width:172px}
.moos-journey-layout .moos-button{min-height:47px;transition:transform .15s,box-shadow .15s,border-color .15s}
.moos-journey-layout .moos-button:hover:not(:disabled){transform:translateY(-1px);box-shadow:0 6px 16px -12px rgba(0,0,0,.35)}
.moos-journey-layout .moos-button:focus-visible,.moos-household-card:focus-visible,.moos-journey-layout .moos-goal:focus-visible{outline:3px solid var(--a);outline-offset:3px}
.moos-journey-layout .moos-fields{gap:15px;margin-top:17px}
.moos-journey-layout .moos-field input,.moos-journey-layout .moos-field select{min-height:54px;border-radius:12px;transition:border-color .15s,box-shadow .15s}
.moos-journey-layout .moos-field:focus-within>label{color:var(--a)}
.moos-welcome-screen{text-align:center;max-width:860px;margin:0 auto}
.moos-welcome-screen .moos-subtitle{max-width:none;font-size:clamp(31px,4vw,44px);margin-bottom:10px}
.moos-welcome-screen>.moos-muted{max-width:49ch;margin:0 auto 26px}
.moos-welcome-screen .moos-actions{border:0;justify-content:center;padding:0;margin:15px 0 0}
.moos-household-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:28px 0 17px;text-align:left}
.moos-household-card{position:relative;display:flex;flex-direction:column;gap:14px;min-height:218px;padding:27px 25px;text-align:left;background:var(--bg);color:var(--ink);font:inherit;border:1.5px solid var(--line);border-radius:18px;cursor:pointer;box-shadow:0 14px 35px -30px rgba(14,25,35,.45);transition:border-color .15s,box-shadow .15s,transform .15s}
.moos-household-card:hover{border-color:var(--a);box-shadow:0 17px 35px -25px rgba(14,25,35,.4);transform:translateY(-2px)}
.moos-household-card[aria-pressed=true]{border-color:var(--a);box-shadow:inset 0 0 0 1px var(--a)}
.moos-household-card strong{font-size:20px;line-height:1.25;font-weight:650;letter-spacing:-.02em}
.moos-household-card>span:not(.moos-household-icon):not(.moos-card-continue){color:var(--mut);line-height:1.5;font-size:14px;max-width:27ch}
.moos-household-icon{display:grid;place-items:center;width:46px;height:46px;border:1px solid color-mix(in srgb,var(--a) 22%,var(--line));border-radius:14px;color:var(--a);background:color-mix(in srgb,var(--a) 8%,var(--sur));font-size:23px}
.moos-household-card .moos-card-continue{margin-top:auto;font-weight:700;font-size:13px;color:var(--a)}
.moos-privacy-line{color:var(--mut);font-size:12px;line-height:1.5;margin:14px 0 0}
.moos-context-inline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0 8px;padding:9px 12px 9px 15px;border:1px solid var(--line);border-radius:14px;background:color-mix(in srgb,var(--a) 3%,var(--sur))}
.moos-context-chip{color:var(--ink);font-size:13px;font-weight:700}
.moos-form-section{padding-top:19px;border-top:1px solid var(--line);margin-top:25px}
.moos-form-section h3{font-size:17px;font-weight:700;letter-spacing:-.02em;margin:0 0 6px}
.moos-form-section p{margin:0;color:var(--mut);line-height:1.5;font-size:13px}
.moos-soft-note{border-radius:12px;border:1px solid color-mix(in srgb,var(--a) 20%,var(--line));background:color-mix(in srgb,var(--a) 5%,var(--sur));color:var(--mut);padding:12px 15px;margin:20px 0 0;line-height:1.55;font-size:13px}
.moos-preview{position:sticky;top:90px;border:1px solid var(--line);background:var(--sur);border-radius:21px;padding:27px 24px;box-shadow:0 20px 45px -38px rgba(20,30,40,.3)}
.moos-preview[hidden]{display:none}
.moos-preview-title{font:650 21px/1.2 var(--sans);letter-spacing:-.03em;margin:0 0 9px}
.moos-preview-explainer,.moos-preview-footnote{font-size:13px;color:var(--mut);line-height:1.5;margin:0 0 18px}
.moos-preview-row{display:flex;flex-direction:column;gap:7px;padding:14px 0;border-top:1px solid var(--line)}
.moos-preview-row span{color:var(--mut);font-size:12px}
.moos-preview-row strong{font-size:23px;font-weight:650;letter-spacing:-.03em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.moos-preview-focus{padding:16px;border:1px solid color-mix(in srgb,var(--a) 23%,var(--line));background:color-mix(in srgb,var(--a) 7%,var(--sur));border-radius:12px;margin:6px 0}
.moos-preview-focus strong{color:var(--a)}
.moos-preview-footnote{font-size:12px;margin:14px 0 0}
.moos-asset-grid{display:grid;gap:12px;margin-top:22px}
.moos-asset-card{border:1px solid var(--line);border-radius:17px;padding:21px;background:color-mix(in srgb,var(--sur) 80%,var(--bg))}
.moos-asset-head{display:flex;align-items:flex-start;gap:13px}
.moos-asset-icon{display:grid;place-items:center;flex:0 0 37px;height:37px;border-radius:11px;color:var(--a);background:color-mix(in srgb,var(--a) 10%,var(--sur));font-size:21px}
.moos-asset-head h3{font-size:16px;font-weight:700;margin:0 0 4px}
.moos-asset-head p{color:var(--mut);font-size:13px;margin:0;line-height:1.5}
.moos-asset-card .moos-fields{margin-top:17px}
.moos-review-layout{margin-top:22px}
.moos-review-sections{display:grid;gap:14px}
.moos-review-card{border:1px solid var(--line);border-radius:17px;overflow:hidden;background:var(--bg)}
.moos-review-card>h3{padding:16px 19px;margin:0;background:color-mix(in srgb,var(--a) 6%,var(--sur));font-weight:700;font-size:15px;border-bottom:1px solid var(--line)}
.moos-review-line{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:13px 19px;border-top:1px solid var(--line)}
.moos-review-line:first-of-type{border-top:0}
.moos-review-line>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.moos-review-line span{font-size:12px;color:var(--mut)}
.moos-review-line strong{font-size:15px;font-weight:650;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.moos-review-line .moos-button{padding:8px 12px;min-height:39px;flex:none}
.moos-insight-explainer{margin:22px 0;border-radius:15px;border:1px solid var(--line);background:color-mix(in srgb,var(--a) 4%,var(--sur));padding:20px}
.moos-insight-explainer h3{font-size:13px;font-weight:700;margin:0 0 9px}
.moos-insight-explainer p{font-size:14px;line-height:1.6;margin:0;color:var(--mut)}
.moos-journey-layout .moos-goal{min-height:151px;gap:12px;border-radius:18px}
.moos-journey-layout .moos-goal span:not(.moos-symbol){font-size:13px;line-height:1.55}
@media(max-width:850px){
 .moos-journey-layout:has(.moos-preview:not([hidden])){grid-template-columns:1fr}
 .moos-preview{position:static;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));column-gap:16px;align-items:start}
 .moos-preview>.moos-eyebrow,.moos-preview-title,.moos-preview-explainer,.moos-preview-footnote{grid-column:1/-1}
 .moos-preview-row{min-width:0}.moos-preview-row strong{font-size:19px}
}
@media(max-width:620px){
 .moos-shell:has(.moos-journey-layout) .moos-progress{gap:3px}
 .moos-shell:has(.moos-journey-layout) .moos-step{font-size:10px;flex-direction:column;text-align:center;gap:5px;padding:7px 2px 10px}
 .moos-shell:has(.moos-journey-layout) .moos-feature{padding:23px 18px;border-radius:18px}
 .moos-household-grid{grid-template-columns:1fr}
 .moos-household-card{min-height:160px;padding:19px 21px}
 .moos-journey-layout .moos-actions .moos-button{flex:1}
 .moos-preview{padding:19px 17px;column-gap:9px}
 .moos-preview-row strong{font-size:16px}
 .moos-preview-row span{font-size:11px}
 .moos-preview-focus{padding:9px}
 .moos-review-line{padding:12px 13px}
 .moos-review-line .moos-button{padding:7px 10px}
 .moos-asset-card{padding:16px}
}
@media(max-width:360px){.moos-preview{display:block}.moos-shell:has(.moos-journey-layout) .moos-step-name{font-size:9px}}
@media(prefers-reduced-motion:reduce){.moos-household-card,.moos-journey-layout .moos-button{transition:none}}
/* Give the existing guided expense editor the same calm orientation and live feedback. */
.moos-shell:has(.moos-expense-layout) .moos-expense-progress{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));column-gap:5px;row-gap:10px;margin:5px 0 25px}
.moos-expense-progress>.moos-small{grid-column:1/-1;font-weight:700;font-size:13px;color:var(--ink)}
.moos-expense-progress i{height:6px;background:var(--line);border-radius:99px}
.moos-expense-progress i.done{background:var(--a)}
.moos-expense-layout .moos-expense-step{gap:12px}
.moos-expense-layout .moos-expense-item{background:var(--bg);border-radius:16px;box-shadow:none}
.moos-expense-layout .moos-expense-title{font-size:15px}
.moos-expense-layout .moos-expense-controls{gap:12px}
.moos-expense-layout .moos-option-row{margin:12px 0}
.moos-expense-layout .moos-expense-total{position:static;margin:18px 0 0}
.moos-expense-layout .moos-actions{margin-top:19px}
.moos-expense-layout .moos-details{margin-top:8px}
.moos-expense-layout .moos-details>summary{border:1px solid var(--line);background:color-mix(in srgb,var(--a) 5%,var(--sur));padding:15px;border-radius:12px}
.moos-expense-layout .moos-note{background:color-mix(in srgb,var(--a) 5%,var(--sur))}
@media(max-width:850px){.moos-expense-layout .moos-preview{order:-1}}

/* Welcome asks only one decision; postpone the long progress indicator. */
.moos-shell:has(.moos-welcome-screen)>header .moos-title,.moos-shell:has(.moos-welcome-screen)>header .moos-lead,.moos-shell:has(.moos-welcome-screen) #journey-progress{display:none}
.moos-shell:has(.moos-welcome-screen) .moos-feature{margin-top:25px;padding-top:clamp(42px,6vw,72px);padding-bottom:clamp(42px,6vw,65px)}
