/* One visual system for the working steps, while preserving their controls. */
.form-app .app-main #screen .unified-step{padding:18px 12px 30px;color:#151a20}
.form-app .app-main #screen .unified-step .measure-heading{max-width:900px;margin:14px auto 28px;text-align:center}
.form-app .app-main #screen .unified-step .measure-heading h1{font-size:clamp(30px,4vw,46px);line-height:1.08;letter-spacing:-.04em;font-weight:700;margin:0}
.form-app .app-main #screen .unified-step .measure-eyebrow{font-size:12px!important;letter-spacing:.14em;color:#42688c!important;margin:0 0 10px!important}
.unified-step .unified-review{display:inline-block;color:#687b8e;font-size:12px;margin-top:10px}
.unified-step .measure-stage{max-width:900px;gap:clamp(24px,5vw,60px);align-items:start}
.unified-step .measure-stage.no-figure{display:block;max-width:650px}
.unified-step .unified-figure{grid-area:figure;min-width:0}
.unified-step .drawings{display:block;margin:0;padding:0;background:none;border:0}
.unified-step .drawings figure{display:block;margin:0 0 18px;min-width:0}
.unified-step .drawings .zoom{display:block;width:100%;padding:8px;background:#fff;border:1px solid #dce4eb;border-radius:4px;box-shadow:none;cursor:zoom-in}
.unified-step .drawings .zoom img{display:block;width:100%;max-height:440px;object-fit:contain;margin:auto}
.unified-step .drawings figcaption{font-family:inherit;font-size:12px;line-height:1.45;color:#8995a0;margin:8px 0;text-align:left}
.unified-step .figure-key{font-size:12px;line-height:1.5;text-align:left;margin-top:10px}
.unified-step .measure-fields{gap:22px;min-width:0}
.unified-step .entry-panel{margin:0;padding:0;background:none;border:0;box-shadow:none}
.unified-step .entry-panel.empty{display:none}
.unified-step .entry-grid{display:grid;grid-template-columns:1fr;gap:18px}
.unified-step .form-field{margin:0;min-width:0}
.unified-step .form-field>span{display:block;color:#425466;font-size:13px;font-weight:700;line-height:1.4;margin:0 0 8px}
.unified-step .form-field input,.unified-step .form-field select,.unified-step .form-field textarea{display:block;box-sizing:border-box;width:100%;min-height:48px;margin:0;padding:12px;background:#fff;border:1px solid #cbd5df;border-radius:4px;color:#1f2a34;font:inherit;font-size:14px}
.unified-step .field-check{display:flex;align-items:flex-start;gap:9px;color:#425466;font-size:14px;line-height:1.5}
.unified-step .field-check input{flex:none;margin-top:3px}
.unified-step .entry-panel .workspace-help{display:none}
.unified-step .instruction{color:#425466;font-size:14px;line-height:1.6;margin:0;padding:0;background:none;border:0;box-shadow:none}
.unified-step .instruction>.tiny,.unified-step .check>.tiny{font:inherit;font-size:13px;font-weight:700;letter-spacing:0;color:#425466;margin:0 0 7px}
.unified-step .instruction p{margin:0 0 12px;font-size:14px;line-height:1.6;color:#425466}
.unified-step .instruction ol,.unified-step .instruction ul{padding-left:20px;margin:0 0 14px}
.unified-step .instruction li{margin:0 0 7px}
.unified-step .instruction .check{margin:17px 0 0;padding:14px 0 0;border:0;border-top:1px solid #dfe6ec;background:transparent}
.unified-step .instruction .note{margin-top:14px;font-size:13px;line-height:1.55}
.unified-step #live-data:empty,.unified-step #catalog-assistance:empty{display:none}
.unified-step .carry,.unified-step #catalog-assistance{font-size:13px;line-height:1.5}
.unified-step .unified-source{max-width:900px;margin:25px auto 0;color:#8793a0;font-size:12px;line-height:1.5}
.form-app .app-main #screen .measure-step:not(.unified-step):not(.contracture-step) .measure-field{background:transparent;border:0;border-radius:0;box-shadow:none;padding:0}
.form-app .app-main #screen .measure-step:not(.unified-step):not(.contracture-step) .measure-heading h1{font-size:clamp(30px,4vw,46px);line-height:1.08;letter-spacing:-.04em}
.form-app .app-main #screen.unified-summary>h1{font-size:clamp(30px,4vw,46px);letter-spacing:-.04em;text-align:center;margin:20px 0 28px}
@media(max-width:700px){.form-app .app-main #screen .unified-step{padding:20px 4px}.form-app .app-main #screen .unified-step .measure-heading{margin:18px auto 22px}.unified-step .measure-stage{gap:20px}.unified-step .drawings .zoom img{max-height:320px}.unified-step .measure-fields{gap:18px}}

.form-app .number-choice-field select.number-choice{display:block;width:100%;box-sizing:border-box;background:#fff;border:1px solid #cbd5df;border-radius:4px;color:#1f2a34;margin:0;padding:12px;min-height:48px;font:inherit;font-size:14px}
.form-app .number-manual[hidden]{display:none}
.form-app .number-manual:not([hidden]){display:block}

.unified-step .allowance-explanation{margin:-10px 0 0;color:#687b8e;font-size:13px;line-height:1.5}

.unified-step .foot-calculation-hint{margin:-10px 0 0;color:#687b8e;font-size:13px;line-height:1.5}
.foot-distance-result{padding:16px 18px;background:#edf4fc;border-left:3px solid #1768cc;color:#425466}
.foot-distance-result span{display:block;font-size:13px;font-weight:700;line-height:1.4}
.foot-distance-result strong{display:block;color:#1768cc;font-size:25px;margin-top:6px}
.foot-distance-result p{font-size:13px;line-height:1.5;margin:6px 0 0}

.unified-step .heel-calculation-hint{display:block;margin-top:6px;color:#687b8e;font-size:13px;line-height:1.5}

.unified-step .rotation-hint{display:block;margin-top:10px;color:#687b8e;font-size:13px;line-height:1.5}
.rotation-keyboard{padding:10px;background:#eef3fa;border:1px solid #c7d5e5;border-radius:8px;margin-top:8px;display:grid;gap:5px}
.rotation-keyboard[hidden],#rotation-source-field[hidden]{display:none}
.rotation-keyboard-row{display:flex;gap:4px;justify-content:center}
.rotation-keyboard-row button{flex:1;min-width:0;padding:8px 2px;border:1px solid #c3d1e1;border-radius:4px;background:#fff;color:#193552;cursor:pointer;font-size:14px}
.rotation-keyboard-row button:hover{background:#d9eaff}
.rotation-keyboard-row .rotation-keyboard-space{flex:2}
.rotation-keyboard-row button[data-key="done"]{flex:1.7}
@media(max-width:480px){.rotation-keyboard{padding:6px;gap:4px}.rotation-keyboard-row{gap:2px}.rotation-keyboard-row button{font-size:12px;padding:8px 1px}}

#flexion-source-field[hidden]{display:none}

/* Keep the document within the screen; lengthy content remains accessible in its work area. */
@media screen{
 html:has(body.form-app){height:100%}
 body.form-app{height:100vh;height:100dvh;display:flex;flex-direction:column;overflow:hidden}
 .form-app .app-header{flex:0 0 auto}
 .form-app .app-layout{flex:1 1 auto;min-height:0;width:100%;overflow:hidden}
 .form-app main.app-main{height:100%;min-height:0;overflow:auto;overscroll-behavior:contain;padding-top:8px;padding-bottom:16px}
 .form-app.level-landing .visual-builder,.form-app.level-landing .level-choice:not([hidden]){flex:1 1 auto;min-height:0}
 .form-app.level-landing .level-choice:not([hidden]){width:100%;overflow:auto;padding:clamp(12px,3vh,30px) 24px 16px}
 .level-choice__lead{margin-bottom:14px}
 .level-choice__image{height:clamp(90px,25vh,215px)}
 .form-app .app-main #screen .unified-step{padding-top:6px;padding-bottom:14px}
 .form-app .app-main #screen .unified-step .measure-heading{margin:6px auto 16px}
 .form-app .app-main #screen .unified-step .measure-heading h1{font-size:clamp(27px,3.3vw,40px)}
 .form-app .app-main #screen .measure-step:not(.unified-step):not(.contracture-step) .measure-heading h1{font-size:clamp(27px,3.3vw,40px)}
 .measure-heading{margin-bottom:16px}
 .measure-figure img{max-height:min(42vh,420px)}
 .unified-step .drawings .zoom img{max-height:min(43vh,400px)}
}
@media screen and (max-width:700px){
 .form-app main.app-main{padding:6px 12px 12px}
 .form-app.level-landing .level-choice:not([hidden]){padding:12px 14px}
 .level-choice__grid{grid-template-columns:1fr 1fr;gap:8px}
 .level-choice__option{padding:10px}
 .level-choice__option h2{font-size:18px;margin:5px 0 0}
 .level-choice__option p{font-size:11px;line-height:1.25}
 .level-choice__image{height:clamp(80px,18vh,150px)}
 .level-choice h1{font-size:28px;margin-bottom:8px}
 .level-choice__lead{font-size:14px;margin-bottom:10px}
 .level-choice__action{padding-top:8px}
 .form-app .app-main #screen .unified-step{padding:6px 0 12px}
 .form-app .app-main #screen .unified-step .measure-heading{margin:6px auto 12px}
 .form-app .app-main #screen .unified-step .measure-heading h1,.form-app .app-main #screen .measure-step:not(.unified-step):not(.contracture-step) .measure-heading h1{font-size:26px}
 .unified-step .measure-stage,.contracture-step .measure-stage,.measure-step[data-side=left].contracture-step .measure-stage{grid-template-columns:minmax(100px,38%) minmax(0,1fr);grid-template-areas:'figure fields';gap:12px}
 .unified-step .drawings .zoom img{max-height:27vh}
 .contracture-step .measure-stage{min-height:0}
 .form-app .app-main .contracture-step{padding:6px 0 12px}
 .form-app .app-main .contracture-step .measure-heading{margin:6px auto 12px}
 .form-app .app-main .contracture-step .measure-heading h1{font-size:26px}
 .contracture-step .measure-fields,.unified-step .measure-fields{gap:12px}
 .contracture-step .contracture-action,.unified-step .instruction,.unified-step .instruction p{font-size:13px;line-height:1.45}
}
@media screen and (max-width:360px){
 .form-app .app-header{gap:6px}
 .form-app .app-header .workspace-nav a{padding:6px 3px;font-size:10px;gap:4px}
}

@media screen{
 .shoe-measure-step .measure-stage{max-width:1040px;grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr);gap:clamp(24px,4vw,54px)}
 .shoe-measure-step .drawings .zoom img{max-height:none;width:100%;height:auto}
 .shoe-measure-step .shoe-measure-note{color:#687b8e;font-size:12px;line-height:1.45;margin:8px 0 0}
}
@media screen and (max-width:700px){
 .shoe-measure-step .measure-stage{grid-template-columns:minmax(0,1fr);grid-template-areas:'figure' 'fields';gap:16px}
 .shoe-measure-step .drawings .zoom img{max-height:none}
}

@media screen {
 .foot-mark-step .measure-stage{max-width:1120px;grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr);gap:clamp(24px,4vw,54px)}
 .foot-mark-step .drawings .zoom{padding:0;border:0;background:transparent;box-shadow:none}
 .foot-mark-step .drawings .zoom img{width:100%;height:auto;max-height:49vh;object-fit:contain}
 .foot-mark-step .drawings figcaption{display:block;font-size:13px;line-height:1.45;margin-top:10px}
 .foot-mark-step .drawings figcaption a{display:inline;color:#1463c8}
}
@media screen and (max-width:700px){.foot-mark-step .measure-stage{grid-template-columns:minmax(0,1fr);grid-template-areas:'figure' 'fields';gap:16px}.foot-mark-step .drawings .zoom img{max-height:none}}

@media screen {
 .foot-offset-step .measure-stage{max-width:1120px;grid-template-columns:minmax(0,1.15fr) minmax(300px,1fr);gap:clamp(24px,4vw,54px)}
 .foot-offset-step .drawings .zoom img{width:100%;height:auto;max-height:45vh;object-fit:contain}
 .foot-offset-step .drawings figcaption{display:block;font-size:13px;line-height:1.45;margin-top:10px}
 .foot-offset-step .foot-distance-source{font-size:13px;line-height:1.45;margin-top:8px}
}
@media screen and (max-width:700px){.foot-offset-step .measure-stage{grid-template-columns:minmax(0,1fr);grid-template-areas:'figure' 'fields';gap:16px}.foot-offset-step .drawings .zoom img{max-height:none}}

@media screen {
 .heel-support-step .measure-stage{max-width:1100px;grid-template-columns:minmax(0,1.2fr) minmax(300px,1fr);gap:clamp(24px,4vw,54px)}
 .heel-support-step .drawings .zoom{padding:0;background:#fff}
 .heel-support-step .drawings .zoom img{width:100%;height:auto;max-height:48vh;object-fit:contain}
 .heel-support-step .drawings figcaption{display:flex;gap:12px;line-height:1.4;margin-top:10px}
}
@media screen and (max-width:700px){.heel-support-step .measure-stage{grid-template-columns:minmax(0,1fr);grid-template-areas:'figure' 'fields';gap:16px}.heel-support-step .drawings .zoom img{max-height:none}}

@media screen{
 .knee-vertical-step .measure-stage{max-width:1100px;grid-template-columns:minmax(0,.95fr) minmax(320px,1.05fr);gap:clamp(22px,3vw,45px);align-items:start}
 .knee-vertical-step .measure-figure img{max-height:43vh;width:100%;object-fit:contain}
 .knee-vertical-step .measure-fields{gap:16px}
 .knee-vertical-step .measure-field h2{font-size:17px;margin:0 0 6px}
 .knee-vertical-step .measure-field p{margin:5px 0;line-height:1.4}
 .knee-vertical-step .knee-patient-value{color:#1463c8;font-size:24px}
 .knee-vertical-step .knee-adjustment{font-size:18px;color:#152d45}
 .knee-vertical-step .knee-landmark-confirm,.knee-vertical-step .knee-height-confirm{margin-top:10px}
 .knee-vertical-step .measure-detail{max-width:1100px;margin:12px auto}
}
@media screen and (max-width:700px){.knee-vertical-step .measure-stage{grid-template-columns:minmax(0,1fr);grid-template-areas:'figure' 'fields';gap:14px}.knee-vertical-step .measure-figure img{max-height:33vh}}

/* Holder sizes are a single, accessible choice. */
.holder-choices{border:0;padding:0;margin:0;min-width:0}
.holder-choices legend{padding:0;margin:0 0 12px;font-weight:700;color:#304a64;font-size:16px}
.holder-choices__buttons{display:flex;gap:10px;flex-wrap:wrap}
.holder-choice{flex:1 1 0;min-width:0;cursor:pointer;position:relative}
.holder-choice input{position:absolute;width:1px;height:1px;opacity:0}
.holder-choice span{display:flex;align-items:center;justify-content:center;text-align:center;min-height:56px;padding:10px 12px;border:1px solid #bdcfe2;border-radius:5px;background:#fff;color:#263f5b;font-weight:700;font-size:14px;line-height:1.3;transition:background-color .15s,color .15s,border-color .15s}
.holder-choice input:checked+span{background:#1765cc;border-color:#1765cc;color:#fff}
.holder-choice input:focus-visible+span{outline:3px solid #1765cc;outline-offset:3px}
@media(max-width:520px){.holder-choice{flex-basis:100%}.holder-choice span{min-height:44px}}

/* Four zero adjustments, shown with original BION footage. */
.holder-zero-step{width:100%;max-width:1120px;margin:0 auto}
.holder-zero-intro{max-width:920px;margin:8px auto 20px;text-align:center;color:#425b74;line-height:1.45;font-size:16px}
.holder-zero-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.holder-zero-card{margin:0;min-width:0;padding:8px 8px 12px;background:white;border:1px solid #d9e1eb;border-radius:7px}
.holder-zero-card .zoom{display:block;width:100%;border:0;padding:0;background:#eef2f7;cursor:zoom-in;border-radius:4px;overflow:hidden}
.holder-zero-card img{display:block;width:100%;height:clamp(165px,25vh,245px);object-fit:cover;object-position:center 42%}
.holder-zero-card figcaption{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 4px 0;font-family:inherit;font-size:14px;line-height:1.25;color:#304b67;font-weight:700}
.holder-zero-card figcaption strong{flex:none;color:#1765cc;white-space:nowrap;font-size:16px}
.holder-zero-caption{margin:16px 0 0;text-align:center;color:#657c92;line-height:1.4;font-size:13px}
@media(max-width:750px){.holder-zero-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.holder-zero-intro{text-align:left}.holder-zero-card img{height:clamp(145px,28vw,210px)}}

.tube-entry #tube-evidence{margin-top:14px}.tube-evidence-depth{padding:12px 14px;background:#edf4fc;border-left:3px solid #1768cc;color:#425466}.tube-evidence-depth span{display:block;font-size:13px;font-weight:700}.tube-evidence-depth strong{display:block;font-size:19px;margin-top:4px}.tube-evidence-depth p,.tube-evidence-note{font-size:13px;line-height:1.45;margin:8px 0}.tube-calculation{margin-top:12px}.tube-entry .entry-grid{min-width:0}

.tube-evidence-depth{padding:0;background:none;border:0}.tube-evidence-depth span,.tube-evidence-depth strong{display:inline;font-size:14px}.tube-evidence-depth strong{margin:0 0 0 7px;color:#1768cc}.tube-evidence-depth p{display:inline;margin-left:8px}.tube-calculation{padding:10px 14px}.tube-calculation strong{font-size:23px}.tube-entry .tube-evidence-note{margin:7px 0;line-height:1.35}

.tube-evidence-depth strong{white-space:nowrap}
