/* Consistent dimensional entry, with unconstrained typed precision. */
.dimension-stepper{display:inline-flex;align-items:stretch;min-width:0;max-width:100%;border:1px solid #d9cdef;border-radius:8px;background:white;overflow:hidden;vertical-align:middle}
.dimension-stepper input[type=number]{min-width:0;width:100%;border:0!important;border-radius:0!important;margin:0;box-shadow:none;appearance:textfield;-moz-appearance:textfield}
.dimension-stepper input::-webkit-inner-spin-button,.dimension-stepper input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.dimension-nudges{display:flex;flex-direction:column;flex:none;border-left:1px solid #e6ddf0}
.dimension-nudges button{display:grid;place-items:center;flex:1;padding:0 6px!important;min-width:25px;min-height:18px;line-height:1;border:0!important;border-radius:0!important;font:inherit;font-size:13px!important;background:#faf7ff!important;color:#7030e8!important;cursor:pointer}
.dimension-nudges button+button{border-top:1px solid #e6ddf0!important}.dimension-nudges button:disabled{opacity:.4;cursor:default}
.dimension-stepper:focus-within{outline:2px solid #bda0ee;outline-offset:2px}
#imageBorderOptions{background:#fff;border:1px solid #e5ddef;border-radius:12px;padding:20px;margin-top:10px}
#imageBorderOptions .image-border-toggle{padding:0 0 20px;margin:0 0 20px;border-bottom:1px solid #e7e0f0}
#imageBorderOptions .image-border-toggle strong,#imageBorderOptions .image-outer-edge-toggle strong{font-size:14px;font-weight:650;color:var(--text,#30243e)}
#imageBorderOptions .image-border-toggle small,#imageBorderOptions .image-outer-edge-toggle small{font-size:12px;line-height:1.5;color:var(--dim,#817393)}
#imageBorderOptions .settings-switch{flex:none;width:44px;height:26px}#imageBorderOptions .settings-switch::after{width:20px;height:20px}
#imageBorderOptions input:checked+.settings-switch::after{transform:translateX(18px)}
.freshie-extension-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.freshie-extension-heading>label{font-size:14px;font-weight:650;color:var(--text,#30243e)}
.freshie-extension-heading .unit-toggle{flex:none;margin:0}.freshie-extension-heading .unit-toggle button{padding:7px 14px}
.freshie-extension-controls{display:grid;grid-template-columns:120px minmax(0,1fr);gap:24px;align-items:center}
#imageBorderOptions .image-border-width{gap:0;display:flex;border:1px solid #d9cdef;border-radius:8px;overflow:hidden;background:#fff}
#imageBorderOptions .image-border-width .dimension-stepper{border:0;border-radius:0;flex:1}
#imageBorderOptions .image-border-width input{width:100%;text-align:left;padding:10px;font-size:15px}
#imageBorderOptions .image-border-width>span:last-child{align-self:stretch;display:flex;align-items:center;justify-content:center;padding:0 9px;border-left:1px solid #e6ddf0;background:#fbf9ff;color:#817393;font-size:12px}
#imageBorderOptions .image-border-slider-wrap{padding:0;margin:0}.freshie-slider-column{min-width:0}
#imageBorderRecommended{border:0;background:transparent;padding:0;font-family:inherit;cursor:pointer;position:static;display:block;width:auto;margin:12px 0 0;font-size:11px;font-weight:400;line-height:1.5;color:#817393;pointer-events:auto}
#imageBorderRecommended span{margin:0;white-space:normal;pointer-events:auto}#imageBorderRecommended:hover{color:#7030e8}
#imageBorderOptions>.image-border-scale{display:none}
#imageBorderOptions .image-outer-edge-card{margin:20px 0 0;padding:20px 0 0;border:0;border-top:1px solid #e7e0f0;border-radius:0;background:none}
#imageBorderOptions .image-outer-edge-options .image-border-scale{margin-top:8px}
#imageBorderOptions .image-perimeter-total{margin-top:16px;padding-top:14px;border-top:1px solid #e7e0f0;font-size:11px;color:#817393}
@media(max-width:420px){#imageBorderOptions{padding:16px}.freshie-extension-controls{grid-template-columns:108px minmax(0,1fr);gap:20px}.freshie-extension-heading .unit-toggle button{padding:7px 11px}}

#imageBorderOptions .image-perimeter-total{background:none;border-radius:0;padding-left:0;padding-right:0}

/* Let the size editor use the full settings width instead of a narrow card. */
.review-config .cfg-mold-type .mold-radio-row:has(#moldSizeFields:not([hidden])){grid-template-columns:minmax(0,1fr)}
#moldSizeFields .size-row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
#moldSizeFields .dimension-stepper{flex:1 1 140px;min-width:140px;box-sizing:border-box}
#moldSizeFields .dimension-stepper input{width:100%;box-sizing:border-box;flex:1;min-width:0}
#moldSizeFields .unit-toggle{flex:none;margin:0}
.cleanup-size-label{flex-wrap:wrap}.cleanup-size-label .dimension-stepper{flex:none;width:130px;box-sizing:border-box}.cleanup-size-label .dimension-stepper input{flex:1;min-width:0;width:100%;box-sizing:border-box}

/* Numeric tab settings expand beyond the Yes/No cards, including on phones. */
#pullTabOptions:has(#pullTabFields:not([hidden])){grid-template-columns:minmax(0,1fr)}
#pullTabFields{padding:16px;box-sizing:border-box}
#pullTabFields>.cfg-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
#pullTabFields>.cfg-grid>.cfg-field:last-child{grid-column:1/-1}
#pullTabFields .tab-number-row{display:flex;min-width:0}
#pullTabFields .dimension-stepper{width:100%;box-sizing:border-box}
#pullTabFields input[type=number]{width:100%;box-sizing:border-box;font-size:16px;padding:10px}
#pullTabFields .toggle-row{align-items:center;gap:10px}
#pullTabFields .tsw{flex:none}
#pullTabFields .lbl-inline{font-size:13px;line-height:1.5}
#pullTabFields #manualFields{grid-template-columns:repeat(2,minmax(0,1fr))}
#pullTabFields .cfg-field>label .hint{display:block;margin-top:4px}
@media(max-width:360px){#pullTabFields>.cfg-grid,#pullTabFields #manualFields{grid-template-columns:minmax(0,1fr)}}

#imageBorderOptions .image-border-width-row{row-gap:12px}
#imageBorderOptions .image-outer-edge-options>.image-border-slider{margin-top:22px}

/* The main switch adds/removes geometry; hide optional adjustments when off. */
#imageBorderOptions.silhouette-off .image-border-toggle{padding:0;margin:0;border-bottom:0}
#imageBorderOptions .image-border-toggle{padding-bottom:16px;margin-bottom:16px}
#imageBorderOptions.silhouette-off .silhouette-render-status{margin-bottom:0}

#imageSilhouetteControls>.image-border-scale{display:none}

/* Initials belong to the whole tab choice, below the two option cards. */
#tabInitialsOptions:not([hidden]){display:flex;align-items:center;flex-wrap:wrap;gap:10px 16px;margin-top:14px}
#tabInitialsOptions .toggle-row{gap:10px;padding:0;min-height:44px}
#tabInitialsOptions .tsw{flex:none}
#tabInitialsOptions .lbl-inline{margin:0;font-size:13px;line-height:1.5}
#tabInitialsOptions input[type=text]{box-sizing:border-box;width:7rem;max-width:100%;min-height:44px;padding:10px 12px;border:1px solid #d8c9ee;border-radius:8px;background:#fff;color:#2d1c46;font:inherit;font-size:16px;letter-spacing:.12em;text-transform:uppercase}
#tabInitialsOptions input[type=text]:focus-visible{outline:2px solid #8247ed;outline-offset:2px}
