:is(#v231Shape,#v248Contour) {display:flex;align-items:center;gap:12px;margin:0 0 12px;font-size:12px;}
:is(#v231Shape,#v248Contour) .v231-segments {display:inline-flex;gap:0;}
:is(#v231Shape,#v248Contour) button {height:32px;min-width:72px;border:1px solid #9ab5cc;background:var(--v09201-surface,#fff);color:inherit;cursor:pointer;}
:is(#v231Shape,#v248Contour) button:first-child {border-radius:5px 0 0 5px;}
:is(#v231Shape,#v248Contour) button:last-child {border-radius:0 5px 5px 0;border-left:0;}
:is(#v231Shape,#v248Contour) button[aria-pressed="true"],#v231Order button[aria-pressed="true"] {background:#1397cc;color:#fff;}
#v231Order {font-size:12px;margin:8px 0 12px;}
#v231Order .v231-order-list {display:flex;gap:5px;overflow-x:auto;padding:7px 0;}
#v231Order button {height:32px;min-width:43px;flex:none;border:1px solid #a8b9ca;border-radius:4px;background:var(--v09201-surface,#fff);color:inherit;cursor:pointer;}
#v231Order .v231-actions {display:flex;gap:6px;justify-content:flex-end;}
#v231Notice {font-size:11px;color:#687c91;line-height:1.5;margin-top:5px;}
html[data-theme="dark"] #v231Notice {color:#b4b9c6;}
html[data-theme="dark"] :is(#v231Shape,#v248Contour,#v231Order) button:not([aria-pressed="true"]){background:#36363a;border-color:#585860;}
/* Match the real select state, including dynamically inserted shield rows. */
html[data-theme] #editorSidebarScroll .editor-section-body .v0988-carrier-row:has(select:disabled) > .check > span,
html[data-theme] #editorSidebarScroll .editor-section-body .v0988-carrier-row:has(> select:disabled) > label {
 color:var(--v09206-disabled-text,#7c8592)!important;
}
html[data-v231-shape="flat"] :is(#structurePatternField,#structureSlotModeField,#structureManualSlotsField,#structureManualField,#structureCenter2Field,#structureOuterCenter2Field,#structureGroupCenter2Field,#structureUnequalVariantField,#coreLayFactorRow,.v09140-core-lay-row,#groupLayFactorRow) {display:none!important;}
#v231SheathRow {display:grid;grid-template-columns:var(--v0927-parent-track,116px) var(--v0927-material-select-width,112px) minmax(0,1fr);gap:6px;align-items:center;margin-top:8px;}
#v231SheathRow>label {padding-left:26px;font-size:12px;}
#v231SheathMode {height:32px;min-width:0;width:100%;}
#v231SheathRow.is-parent-disabled {color:#7c8592;}
html[data-theme="dark"] #v231SheathRow.is-parent-disabled {color:#a5a5ad;}

html #editorSidebarScroll :is(#v231Shape,#v248Contour,#v231Order) button,
html #editorSidebarScroll #v231SheathMode {box-sizing:border-box;height:32px!important;min-height:32px!important;max-height:32px!important;font-size:var(--v0911-field-font-size,12px);}
:is(#v231Shape,#v248Contour) button:focus-visible,#v231Order button:focus-visible {outline:2px solid #1397cc;outline-offset:2px;}
#v231Order button:disabled {opacity:.45;cursor:default;}
#v231SheathRow {grid-template-columns:var(--v0927-parent-track,116px) minmax(0,var(--v0927-material-select-width,112px)) minmax(0,1fr);}


#v231PressureNotice {grid-column:1/-1;font-size:11px;line-height:1.5;color:var(--v09206-disabled-text,#687c91);margin:0;}
#v231ShapeStatus {font-size:11px;line-height:1.5;margin:0 0 8px;color:var(--v09206-state-text);}

#v248Contour[hidden] {display:none!important;}

:is(#v231Shape,#v248Contour) > span:first-child {flex:0 0 6em;}

/* Flat structure: keep related choices on one row when space allows. */
#v231Shape {flex-wrap:wrap;gap:8px;}
#v231Shape > span:first-child {flex:0 0 auto;}
#v231Shape button {min-width:44px;padding:0 9px;}
#v248Contour {display:flex;align-items:center;gap:6px;margin:0 0 0 auto;}
#v249ContourSelect {width:84px;min-width:0;height:32px;font-size:12px;}
#v249SupportControls {margin:4px 0 8px;}
#v249SupportControls[hidden],#v249SupportDiameterRow[hidden] {display:none!important;}
.v249-member-row {display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
#v249MemberType {width:98px;min-width:0;height:32px;font:inherit;}
#v249SupportDiameterRow {display:inline-flex;align-items:center;gap:5px;}
#v249SupportDiameter,#v249SupportArea {width:66px;min-width:0;height:32px;box-sizing:border-box;}
#v249MemberSummary {font-size:11px;color:var(--v09206-state-text);margin-top:7px;}
@media(max-width:600px){#v248Contour{margin-left:0;}#v231Shape{column-gap:8px;}}

/* Compact flat controls; reserve room for native number steppers. */
html #editorSidebarScroll #v249SupportDiameter{width:60px;height:28px!important;min-height:28px!important;max-height:28px!important;}
html #editorSidebarScroll #v249SupportArea{width:86px;height:28px!important;min-height:28px!important;max-height:28px!important;}
#v249SupportDiameterRow{gap:5px;white-space:nowrap;}
#v249MemberSummary[hidden]{display:none!important;}
@media(max-width:600px){
 #v231Shape{flex-wrap:nowrap;gap:3px;font-size:12px;}
 #v231Shape>.v231-segments{flex:none;}
 html #editorSidebarScroll #v231Shape button{min-width:34px;padding:0 4px;font-size:12px;}
 #v248Contour{flex:none;gap:3px;margin-left:auto;font-size:12px;}
 html #editorSidebarScroll #v249ContourSelect{width:80px;font-size:12px;}
 #v249SupportDiameterRow{gap:4px;}
}

@media(max-width:600px){html #editorSidebarScroll #v249SupportDiameterRow>label{font-size:12px!important;}#v249SupportDiameterRow{gap:3px;}html #editorSidebarScroll #v249SupportDiameter{width:56px;}html #editorSidebarScroll #v249SupportArea{width:84px;}}

@media(max-width:380px){#v231Shape,#v248Contour{gap:2px;}html #editorSidebarScroll #v231Shape button{min-width:32px;padding:0 3px;}html #editorSidebarScroll #v249ContourSelect{width:74px;padding-right:18px;}#v249SupportDiameterRow{gap:2px;}html #editorSidebarScroll #v249SupportDiameterRow input{font-size:12px!important;padding-left:4px;padding-right:4px;}html #editorSidebarScroll #v249SupportDiameter{width:52px;}html #editorSidebarScroll #v249SupportArea{width:80px;}}

/* Separate mobile dimension groups, sharing the contour control's right edge. */
@media(max-width:600px){#v249SupportDiameterRow{display:flex;flex:0 0 100%;width:100%;min-width:0;}#v249SupportDiameterRow>label[for="v249SupportArea"]{margin-left:auto;}#v249SupportDiameterRow>input{flex:none;}}

/* Match existing editor inputs without changing their compact dimensions. */
html #editorSidebarScroll :is(#v249ContourSelect,#v249MemberType,#v249SupportDiameter,#v249SupportArea){border:1px solid var(--v09201-border,#d2d8de);border-radius:6px;background:var(--v09201-surface,#fff);color:var(--v09206-active-text,#111);box-sizing:border-box;}
html #editorSidebarScroll :is(#v249SupportDiameter,#v249SupportArea){padding:3px 8px;}
html #editorSidebarScroll .structure-stepper{height:28px;box-sizing:border-box;grid-template-rows:repeat(2,minmax(0,1fr));}
html #editorSidebarScroll .structure-stepper button{height:100%!important;min-height:0!important;line-height:1;font-size:9px;}
html[data-v231-shape="flat"] #v231Order{border-bottom:1px solid var(--v09201-separator,#d7dfe5);padding-bottom:12px;margin-bottom:12px;}

/* Use measured group edges: 12px on each side of both separators. */
html[data-v231-shape="flat"] #v249SupportControls{margin-bottom:0;}
html[data-v231-shape="flat"] #v231Order{padding-bottom:12px;margin-bottom:0;}
html[data-v231-shape="flat"] #model225{margin-top:2px;}
html #editorSidebarScroll #model225{padding-bottom:12px;margin-bottom:0;}
html #editorSidebarScroll .structure-total-field{margin-top:2px;}


/* Reserve an explicit arrow track so mobile native select chrome cannot cover text. */
html #editorSidebarScroll #v248Contour #v249ContourSelect{appearance:none!important;-webkit-appearance:none!important;flex:none;width:calc(4em + 24px);min-width:calc(4em + 24px);padding:3px 18px 3px 4px!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%238c939a' stroke-width='1.5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 6px center;background-size:8px 6px;}
