/* Shared public controls. Native range semantics and number steppers are retained. */
html body main input[type=range]{-webkit-appearance:none;appearance:none;box-sizing:border-box;display:block;width:100%;height:44px;min-height:44px;margin:0;padding:0;border:0;border-radius:8px;background:transparent;box-shadow:none;cursor:pointer;touch-action:pan-y}
html body main input[type=range]::-webkit-slider-runnable-track{height:6px;border:0;border-radius:999px;background:linear-gradient(90deg,#2464cb 0%,#4384ed var(--mm-range-progress,0%),#cddbed var(--mm-range-progress,0%),#cddbed 100%)}
html body main input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;box-sizing:border-box;width:22px;height:22px;margin-top:-8px;border:3px solid #fff;border-radius:50%;background:#2464cb;box-shadow:0 0 0 1px #a8bee0,0 3px 8px #17478133}
html body main input[type=range]::-moz-range-track{height:6px;border:0;border-radius:999px;background:#cddbed}
html body main input[type=range]::-moz-range-progress{height:6px;border-radius:999px;background:#2464cb}
html body main input[type=range]::-moz-range-thumb{box-sizing:border-box;width:22px;height:22px;border:3px solid #fff;border-radius:50%;background:#2464cb;box-shadow:0 0 0 1px #a8bee0,0 3px 8px #17478133}
html body main input[type=range]:focus-visible{outline:3px solid #377edb;outline-offset:3px}
html body main input[type=range]:disabled{opacity:.55;cursor:not-allowed}
html body main :is(.valuation-controls,.risk-controls,.simulator-controls,.scenario-studio__controls) :is(span,div):has(>input[type=number]){display:flex;align-items:center;min-width:0;border:1px solid #bfd1e9;border-radius:9px;background:#fff;box-sizing:border-box;box-shadow:none}
html body main :is(.valuation-controls,.risk-controls,.simulator-controls,.scenario-studio__controls) :is(span,div)>input[type=number]{box-sizing:border-box;flex:1 1 auto;width:100%;min-width:0;max-width:100%;height:44px;min-height:44px;margin:0;padding:10px 12px;border:0!important;border-radius:9px;background:transparent!important;color:#173556;font:600 16px/1.4 Inter,Arial,sans-serif;text-align:right;box-shadow:none!important}
html body main :is(.valuation-controls,.risk-controls,.simulator-controls,.scenario-studio__controls) :is(span,div):has(>input[type=number]):focus-within{border-color:#2464cb;outline:3px solid #377edb;outline-offset:2px}
html body main :is(.valuation-controls,.risk-controls,.simulator-controls,.scenario-studio__controls) :is(span,div)>input[type=number]:focus-visible{outline:0!important}
html body main .scenario-allocation>label{grid-template-columns:minmax(0,1fr) 124px;gap:12px;font-size:15px;min-height:48px}
html body main .scenario-allocation>label>span:last-child{width:124px}
html body main :is(.scenario-allocation,.valuation-input) b{flex:0 0 auto;padding-inline:10px;color:#526783;font-size:13px;line-height:1}
html body main .valuation-controls .valuation-field{display:grid;grid-template-columns:minmax(0,1fr) 128px;align-items:center;gap:12px;margin-bottom:10px;min-width:0}
html body main .valuation-controls .valuation-field__heading{display:flex;align-items:center;gap:6px;min-width:0}
html body main .valuation-controls .valuation-field__heading>label{display:block;flex:0 1 auto;width:auto;min-width:0;margin:0;padding:0;border:0;background:transparent;color:#425873;font:500 14px/1.5 Inter,Arial,sans-serif}
html body main .valuation-controls .mm-metric-help-wrap{flex:0 0 auto;display:inline-flex;width:auto;min-width:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none}
html body main .valuation-controls .valuation-input{width:128px}
@media(max-width:430px){html body main .valuation-controls .valuation-field{grid-template-columns:minmax(0,1fr) 112px;gap:8px}html body main .valuation-controls .valuation-input{width:112px}}
@media(forced-colors:active){html body main input[type=range]{appearance:auto;-webkit-appearance:auto;accent-color:Highlight}html body main input[type=range]::-webkit-slider-thumb{appearance:auto;-webkit-appearance:auto;box-shadow:none}html body main input[type=range]::-webkit-slider-runnable-track{background:CanvasText}}

/* Help is a separate control, never nested inside the input label. */
html body main .risk-controls .risk-field{display:flex;align-items:center;justify-content:space-between;gap:12px;min-width:0;margin-bottom:12px}
html body main .risk-controls .risk-field__heading{display:flex;align-items:center;gap:6px;min-width:0}
html body main .risk-controls .risk-field__heading>label{display:block;flex:0 1 auto;width:auto;margin:0;padding:0;border:0;background:transparent}
html body main .risk-controls .risk-input{flex:0 1 145px;min-width:0;width:145px}
html body main .risk-controls .risk-field__heading>.mm-metric-help-wrap{flex:0 0 auto;display:inline-flex;width:auto;min-width:0;border:0;background:transparent}

html body main .valuation-headline .mm-metric-help-wrap{display:inline-flex;align-items:center;width:auto;min-width:0;vertical-align:middle}

/* The optional symbol field uses the same single-border input shell. */
html body main .risk-market-seed label>span:has(>input[type=text]){display:flex;align-items:center;min-width:0;border:1px solid #bfd1e9;border-radius:9px;background:#fff}
html body main .risk-market-seed label>span>input[type=text]{width:100%;min-width:0;min-height:44px;margin:0;border:0!important;background:transparent!important;box-shadow:none!important}
html body main .risk-market-seed label>span:focus-within{outline:3px solid #377edb;outline-offset:2px}
html body main .risk-market-seed label>span>input[type=text]:focus-visible{outline:0!important}
