@layer xf3-field-alignment {
/* Mandatory shared field geometry. Keep this after style-specific assets.
   Every related dropdown and numeric entry shares these metrics. */
html:root body .lab-page {
 --xf3-field-label-size:max(14px,calc(16px * var(--lab-scale,1)));
 --xf3-field-label-height:max(24px,calc(24px * var(--lab-scale,1)));
 --xf3-field-height:max(48px,calc(48px * var(--lab-scale,1)));
 --xf3-field-value-size:max(20px,calc(24px * var(--lab-scale,1)));
}
html:root body .lab-page .xf3v2__dimensions {
 grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:12px!important;align-items:start!important;
}
html:root body .lab-page :is(.xf3v2__dimensions,.xf3-inner-top,.xf3-inner-arm-dimensions,.lab-hole-controls,.lab-hole-locations) label:not([hidden]):has(>input[type=number],>select) {
 display:grid!important;grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:var(--xf3-field-label-height) var(--xf3-field-height) auto!important;
 gap:6px!important;align-content:start!important;align-items:start!important;
 min-width:0!important;max-width:100%!important;width:100%!important;
 margin:0!important;padding:0!important;
}
html:root body .lab-page .xf3v2__dimensions>label:has(>input[type=number],>select){grid-column:auto!important}
html:root body .lab-page :is(.xf3v2__dimensions,.xf3-inner-top,.xf3-inner-arm-dimensions,.lab-hole-controls,.lab-hole-locations) label:has(>input[type=number],>select)>span {
 grid-column:1!important;grid-row:1!important;display:flex!important;
 align-items:center!important;flex-wrap:nowrap!important;gap:6px!important;
 font-size:var(--xf3-field-label-size)!important;font-weight:600!important;
 line-height:var(--xf3-field-label-height)!important;height:var(--xf3-field-label-height)!important;
 min-height:0!important;margin:0!important;padding:0!important;
 white-space:nowrap!important;width:100%!important;max-width:100%!important;
}
html:root body .lab-page :is(.xf3v2__dimensions,.xf3-inner-top,.xf3-inner-arm-dimensions,.lab-hole-controls,.lab-hole-locations) label>span>span {font:inherit!important}
html:root body .lab-page :is(.xf3v2__dimensions,.xf3-inner-top,.xf3-inner-arm-dimensions,.lab-hole-controls,.lab-hole-locations) :is(input[type=number],select) {
 grid-column:1!important;grid-row:2!important;box-sizing:border-box!important;
 height:var(--xf3-field-height)!important;min-height:var(--xf3-field-height)!important;max-height:var(--xf3-field-height)!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
 margin:0!important;padding:6px 10px!important;
 font-size:var(--xf3-field-value-size)!important;font-weight:400!important;line-height:1.2!important;
}
html:root body .lab-page :is(.xf3v2__dimensions,.xf3-inner-arm-dimensions) label>input[type=range] {
 grid-column:1!important;grid-row:3!important;width:100%!important;
 height:24px!important;min-height:24px!important;margin:0!important;
}
html:root body .lab-page .lab-dimension-limits {font-size:max(14px,calc(14px * var(--lab-scale,1)))!important;line-height:1.2!important;white-space:nowrap!important}
html:root body .lab-page .xf3-wide-controls>label:has([data-wide=angleDeg]){width:100%!important}
html:root body .lab-page .xf3-wide-lips{margin-left:0!important;width:100%!important}
html:root body .lab-page[data-inner-panels=true] .xf3-inner-top:has(.xf3-wide-l-angle:not([hidden])) {
 grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:12px!important;align-items:start!important;
}
html:root body .lab-page[data-inner-panels=true] .xf3-inner-top .xf3-wide-l-angle .lab-dimension-label {
 width:max-content!important;max-width:none!important;
}
html:root body .lab-page[data-inner-panels=true] .xf3-inner-top .xf3-triangle-quick-controls {align-self:end!important}
html:root body .lab-page[data-inner-panels=true] .xf3-inner-top .xf3-wide-l-angle-slider input{height:var(--xf3-field-height)!important;margin:0!important}
html:root body .lab-page .lab-option-title{font-size:max(14px,calc(16px * var(--lab-scale,1)))!important}
/* At phone width use equal full-width fields, never a differently sized thickness row. */
@media(max-width:650px){
 html:root body .lab-page .xf3v2__dimensions{grid-template-columns:minmax(0,1fr)!important}
 html:root body .lab-page .xf3v2__dimensions>label:has(>input[type=number],>select){grid-column:1!important}
}
/* Preserve the configurators' conditional fields. */
html:root body .lab-page [hidden]{display:none!important}
html:root body .lab-page:is([data-halfoval-editable=true],[data-fullmoon-editable=true],[data-wide-editable=true]) .xf3v2__dimensions>label:has([data-field=length],[data-field=depth]){display:none!important}
html:root body .lab-page.lab-page:is([data-halfoval-editable=true],[data-fullmoon-editable=true],[data-wide-editable=true]) .xf3v2__dimensions>label:has([data-field=length],[data-field=depth]){display:none!important}

html:root body .lab-page .xf3v2__dimensions[data-fields-compact=true]{--xf3-field-label-size:14px}
html:root body .lab-page .xf3v2__dimensions[data-fields-stacked=true]{grid-template-columns:minmax(0,1fr)!important}
html:root body .lab-page .lab-dimensions-note>[data-feature-note-toggle]{font-size:14px!important}
html:root body .lab-page .xf3v2__dimensions label:not([hidden]):has(>input[type=number],>select){grid-area:auto!important}
html:root body .lab-page .xf3v2__form :is(input[type=number],select){box-sizing:border-box!important;height:var(--xf3-field-height)!important;min-height:var(--xf3-field-height)!important;max-height:var(--xf3-field-height)!important}
html:root body .lab-page :is(.lab-hole-controls,.lab-hole-locations) label{font-size:var(--xf3-field-label-size)!important;line-height:var(--xf3-field-label-height)!important}
html:root body .lab-page .lab-hole-controls[data-fields-compact=true]{--xf3-field-label-size:14px}
html:root body .lab-page .lab-hole-controls[data-fields-stacked=true]{grid-template-columns:minmax(0,1fr)!important}
}
