/* Financial intake and profile. System type is scoped to the intake. */
.app.in-financial-profile{--sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;font-family:var(--sans);-webkit-font-smoothing:antialiased}
.in-financial-profile .app-head{display:none}
.in-financial-profile #view{padding-bottom:0}
.fp-page{display:flex;flex-direction:column;gap:24px;min-height:100%;padding-top:22px;padding-bottom:24px;animation:none}
.fp-top{display:flex;align-items:center;gap:18px}
.fp-progress{height:6px;border-radius:8px;background:var(--line);overflow:hidden;flex:1}
.fp-progress>span{display:block;height:100%;background:var(--accent);border-radius:inherit;transition:width .2s ease}
.fp-step{color:var(--muted);font-size:12px;letter-spacing:.12em;font-weight:700;margin:0}
.fp-question{flex:1;display:flex;flex-direction:column;gap:20px;padding-top:8px}
.fp-symbol,.fp-success{display:grid;place-items:center;width:56px;height:56px;background:var(--surface);border:1px solid var(--line);border-radius:50%;color:var(--accent)}
.fp-symbol svg,.fp-success svg{width:28px;height:28px}
.fp-question h1,.fp-page>h1{font-size:clamp(28px,6vw,36px);line-height:1.16;letter-spacing:-.04em;margin:0;max-width:19ch}
.fp-question h1 label{font:inherit;color:inherit}
.fp-question p{margin:0;line-height:1.5}
#fp-footer{padding:16px 24px max(12px,env(safe-area-inset-bottom));border:0}
#app.in-financial-profile #fp-footer .btn{width:100%;min-height:56px;justify-content:center;font-size:17px}
#app.in-financial-profile #fp-footer .btn .icon{margin:0}
.app.in-financial-profile>footer{padding:0;background:var(--bg);border-top:1px solid var(--line)}
.fp-profile{border:1px solid var(--line);border-radius:24px;padding:22px;display:grid;gap:16px;margin:8px 0 24px;background:var(--surface)}
.fp-profile-percent{font-size:30px;color:var(--accent)}
.fp-profile .fp-progress{flex:none;height:6px;width:100%}
.fp-section-label{display:flex;justify-content:space-between;gap:12px;font-size:15px;padding-top:12px}
.fp-row{display:flex;align-items:center;justify-content:space-between;width:100%;gap:16px;text-align:left;background:transparent;border:0;border-bottom:1px solid var(--line);padding:17px 0;min-height:76px;color:var(--ink);cursor:pointer}
.fp-row>span:first-child{display:grid;gap:6px;font-size:14px;color:var(--muted)}
.fp-row strong{font-size:18px;color:var(--ink);font-weight:650;overflow-wrap:anywhere}
.fp-edit{color:var(--accent);font-size:14px;flex-shrink:0}
.fp-profile .btn{width:100%;justify-content:center}
.fp-complete{align-items:center;text-align:center;justify-content:center;gap:20px}
.fp-complete h1{max-width:18ch}.fp-percent{font-size:64px;line-height:1;color:var(--accent)}
.fp-success{width:80px;height:80px}.fp-success svg{width:36px;height:36px}
@media(max-width:375px){.fp-page{padding-inline:20px;gap:20px}.fp-profile{padding:16px}.fp-question{gap:16px}.fp-question h1{font-size:28px}#fp-footer{padding-inline:20px}}
@media(prefers-reduced-motion:reduce){.fp-progress>span{transition:none}}

/* Number-led composition: age ruler and monetary range share one value editor. */
.fp-question-screen{gap:32px;padding:12px 24px 16px}
.fp-question-screen .fp-top{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;gap:16px;min-height:44px}
.fp-question-screen .fp-top .quiet-icon{width:44px;height:44px;min-width:44px;min-height:44px;background:transparent}
.fp-question-screen .fp-top .text-link{min-width:44px;min-height:44px;padding:0;font-size:15px;font-weight:500}
.fp-question-screen .fp-progress{height:4px}
.fp-question-screen .fp-question{gap:0;text-align:left;padding-top:0}
.fp-question-screen .fp-question h1{max-width:none;font:600 30px/1.18 var(--sans);letter-spacing:-.025em;text-wrap:balance}
.fp-question-screen #fp-helper{font-size:16px;max-width:33ch;margin:16px 0 0;line-height:1.5;text-wrap:pretty}
.fp-question-screen #fp-form{display:flex;flex:1;flex-direction:column;justify-content:center;margin:0;padding:32px 0 56px}
.fp-number-row{--fp-value-height:76px;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:start;gap:12px}
.fp-number-value{display:flex;flex-direction:column;align-items:center;min-width:0}
.fp-number-value input{display:block;width:100%;min-width:0;height:80px;padding:0!important;border:0!important;box-shadow:none!important;background:transparent!important;border-radius:10px!important;color:var(--ink);font-family:var(--sans);font-weight:600;font-size:72px;line-height:1.1;letter-spacing:-.045em;text-align:center;font-variant-numeric:tabular-nums;caret-color:var(--accent);-moz-appearance:textfield;appearance:textfield}
.fp-number-value input::-webkit-inner-spin-button,.fp-number-value input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.fp-number-value input:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.fp-number-value input::placeholder{color:var(--muted);opacity:.5}
.fp-number-money .fp-number-value input{font-size:clamp(24px,calc(84px - var(--fp-digits)*5px),64px);letter-spacing:-.035em}
#fp-unit{font-size:15px;line-height:1.4;color:var(--muted);font-weight:500;margin-top:4px}
.fp-adjust{width:44px;height:44px;margin-top:calc((var(--fp-value-height) - 44px)/2);border:1px solid color-mix(in srgb,var(--ink) 15%,transparent);border-radius:50%;background:color-mix(in srgb,var(--ink) 12%,var(--bg));color:var(--ink);box-shadow:inset 0 1px 0 #ffffff0a;display:grid;place-items:center;padding:0;cursor:pointer;transition:background .16s,transform .16s,border-color .16s;touch-action:manipulation}
.fp-adjust svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.fp-adjust:hover:not(:disabled){background:color-mix(in srgb,var(--ink) 20%,var(--bg));border-color:color-mix(in srgb,var(--ink) 30%,transparent)}
.fp-adjust:active:not(:disabled){transform:scale(.96);background:color-mix(in srgb,var(--ink) 24%,var(--bg))}
.fp-adjust:disabled{opacity:.35;cursor:default}
.fp-adjust:focus-visible{outline:2px solid var(--focus);outline-offset:4px}
.fp-slider{margin:32px 0 0}
.fp-slider-control{position:relative;display:flex;align-items:center;min-height:44px}
.fp-slider-native{-webkit-appearance:none;appearance:none;display:block;width:100%;height:44px;margin:0;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;cursor:grab;touch-action:pan-y}
.fp-slider-native:active{cursor:grabbing}
.fp-slider-native::-webkit-slider-runnable-track{height:14px;border-radius:999px;background:linear-gradient(to right,var(--accent) 0 var(--slider-fill),var(--line) var(--slider-fill) 100%)}
.fp-slider-native::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;width:44px;height:44px;margin-top:-15px;border-radius:50%;border:4px solid color-mix(in srgb,var(--ink) 90%,var(--accent));background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='m8 7-5 5 5 5M16 7l5 5-5 5' fill='none' stroke='%23102034' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;box-shadow:0 2px 8px #06101f55}
.fp-slider-native::-moz-range-track{height:14px;border-radius:999px;background:var(--line)}
.fp-slider-native::-moz-range-progress{height:14px;border-radius:999px;background:var(--accent)}
.fp-slider-native::-moz-range-thumb{width:36px;height:36px;border-radius:50%;border:4px solid var(--ink);background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='m8 7-5 5 5 5M16 7l5 5-5 5' fill='none' stroke='%23102034' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/22px no-repeat;box-shadow:0 2px 8px #06101f55}
.fp-slider-native:focus-visible{outline:2px solid var(--focus);outline-offset:4px;border-radius:12px!important}
.fp-slider-native:active::-webkit-slider-thumb{box-shadow:0 0 0 8px color-mix(in srgb,var(--accent) 12%,transparent)}
.fp-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.fp-slider[data-empty="true"] .fp-slider-control{opacity:.55}
.fp-slider--ruler .fp-slider-control{height:76px}
.fp-slider--ruler .fp-slider-native{position:relative;z-index:1;height:76px;color:transparent}
.fp-slider--ruler .fp-slider-native::-webkit-slider-runnable-track{background:transparent;height:100%}
.fp-slider--ruler .fp-slider-native::-webkit-slider-thumb{background:transparent;box-shadow:none;border:0;width:1px;height:100%;margin:0}
.fp-slider--ruler .fp-slider-native::-moz-range-track,.fp-slider--ruler .fp-slider-native::-moz-range-progress{background:transparent}
.fp-slider--ruler .fp-slider-native::-moz-range-thumb{background:transparent;box-shadow:none;border:0;width:1px;height:100%}
.fp-ruler-window{position:absolute;inset:0;overflow:hidden;pointer-events:none;mask-image:linear-gradient(to right,transparent,#000 12%,#000 88%,transparent)}
.fp-ruler-ticks{display:flex;position:absolute;left:50%;top:16px;transform:translateX(-50%);height:58px;align-items:flex-start}
.fp-ruler-tick{position:relative;flex:0 0 12px;width:12px;display:flex;flex-direction:column;align-items:center;gap:12px}
.fp-ruler-tick i{display:block;width:1px;height:14px;background:color-mix(in srgb,var(--muted) 55%,transparent)}
.fp-ruler-tick.is-major i{height:24px;background:var(--muted)}
.fp-ruler-tick b{position:absolute;top:38px;font-size:12px;font-weight:500;line-height:1;color:var(--muted);font-variant-numeric:tabular-nums}
.fp-ruler-tick[data-outside]{visibility:hidden}
.fp-ruler-marker{position:absolute;left:50%;top:4px;width:3px;height:36px;transform:translateX(-50%);border-radius:3px;background:var(--accent)}
.fp-question-screen #fp-storage{font-size:13px;text-align:left;line-height:1.5;margin:0;color:var(--muted)}
.fp-question-screen #fp-storage:empty{display:none}
.fp-question-screen #fp-error:empty{display:none}
.fp-question-screen #fp-error:not(:empty){margin-top:16px;text-align:left}
.fp-question-screen #fp-initial{margin:12px 0 0;text-align:center;color:var(--muted);font-size:13px;line-height:1.4}
.fp-question-screen #fp-slider-hint{position:static;width:auto;height:auto;padding:0;margin:14px 0 0;overflow:visible;clip-path:none;white-space:normal;text-align:center;color:var(--muted);font-size:13px;line-height:1.4}
/* The hidden header removes the first grid item; reserve the footer explicitly. */
.app.in-financial-profile{grid-template-rows:minmax(0,1fr) auto}
.app.in-financial-profile>footer{min-height:0}
@media(max-width:375px){.fp-number-row{gap:8px}.app.in-financial-profile #fp-footer{padding-inline:24px}}
@media(max-width:340px){.fp-question-screen{padding-inline:20px}.fp-question-screen .fp-question h1{font-size:28px}.app.in-financial-profile #fp-footer{padding-inline:20px}}
@media(max-height:760px){.fp-question-screen{gap:24px;padding-top:12px;padding-bottom:12px}.fp-question-screen #fp-form{padding-block:24px 32px}.fp-slider{margin-top:28px}}
@media(max-height:640px){.fp-question-screen{gap:16px;padding-top:8px;padding-bottom:8px}.fp-question-screen .fp-question h1{font-size:28px}.fp-question-screen #fp-form{padding-block:10px}.fp-number-row{--fp-value-height:68px}.fp-slider{margin-top:20px}.fp-question-screen #fp-form:has(.fp-number-age){padding-block:2px}.fp-number-age .fp-number-row{--fp-value-height:60px}.fp-slider--ruler{margin-top:12px}}
@media(prefers-reduced-motion:reduce){.fp-adjust{transition:none}}

/* The intrinsic digit stack keeps the currency and amount centered as one group.
   Formatted money and rolling digits; the transparent native input stays interactive. */
.fp-number-value{container-type:inline-size}
.fp-value-editor{display:flex;align-items:center;justify-content:center;gap:.06em;width:100%;height:var(--fp-value-height);font-size:68px;font-weight:600;letter-spacing:-.035em;font-variant-numeric:tabular-nums;font-kerning:none}
.fp-number-money .fp-value-editor{font-size:clamp(16px,calc(100cqi / (var(--fp-digits)*.6 + .52)),60px)}
.fp-currency{font-size:.48em;line-height:1;align-self:center;color:var(--muted);flex:none;letter-spacing:0}
.fp-digit-stack{position:relative;display:grid;place-items:center;align-content:center;min-width:1ch;max-width:100%;flex:0 1 auto;height:100%}
.fp-number-value .fp-digit-stack input{position:absolute;inset:0;z-index:1;height:100%;font:inherit!important;letter-spacing:inherit;color:transparent;caret-color:transparent;font-kerning:none}
.fp-number-value .fp-digit-stack input::placeholder{color:transparent}
.fp-number-display{position:relative;display:grid;place-items:center;pointer-events:none;white-space:nowrap;line-height:1.1}
.fp-number-display>span,.fp-number-display>number-flow{grid-area:1/1}
.fp-number-flow{display:none;--number-flow-mask-height:.12em;--number-flow-mask-width:.08em;overflow:clip;line-height:1.1}
.fp-number-flow.is-ready{display:inline-block}
.fp-number-display:has(.fp-number-flow.is-ready) .fp-number-fallback{visibility:hidden}
.fp-digit-stack:focus-within .fp-number-display{visibility:hidden}
.fp-number-value .fp-digit-stack input:focus{color:var(--ink);caret-color:var(--accent)}
.fp-number-value .fp-digit-stack input:focus::placeholder{color:var(--muted)}
.fp-number-picker[data-empty="true"] .fp-number-fallback{color:var(--muted);opacity:.5}
