.controls-column,.option-browser { min-width: 0; }
.option-tabs { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 6px; padding: 8px; background: #eef0e8; border-bottom: 1px solid var(--line); }
.option-tabs button { min-width: 0; min-height: 49px; padding: 7px 10px; border: 1px solid transparent; border-radius: 8px; color: #687363; text-align: left; }
.option-tabs button span,.option-tabs button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.option-tabs button span { font-size: 10px; font-weight: 650; }
.option-tabs button small { margin-top: 4px; color: #7c8676; font-size: 8px; font-weight: 400; }
.option-tabs button[aria-selected="true"] { border-color: #ccd6c4; background: #fff; color: var(--green); box-shadow: 0 2px 8px #2638220a; }
.option-tabs button[aria-selected="true"] small { color: #4e6549; }
.tab-panel[hidden] { display: none !important; }
.price-actions { display: grid; gap: 9px; }
.price-actions .secondary-button { margin-top: 0; }

@media (min-width:1101px) and (min-height:760px) {
 html,body { height: 100%; overflow: hidden; }
 .site-header { height: 72px; padding: 0 28px; }
 .site-header nav { gap: 30px; }
 .brand-logo { width: 151px; }
 .workspace { width: 100%; max-width: 1920px; height: calc(100vh - 72px); padding: 16px 28px; }
 .intro,.site-footer { display: none; }
 .config-layout { height: 100%; grid-template-columns: minmax(0,1.5fr) minmax(440px,.82fr); gap: 20px; align-items: stretch; }

 .preview-column { position: relative; top: auto; display: grid; grid-template-rows: minmax(0,1fr) 70px 76px; gap: 10px; height: 100%; min-height: 0; }
 .preview-card { display: flex; flex-direction: column; min-height: 0; }
 .preview-toolbar { flex: 0 0 auto; padding: 13px 18px 8px; }
 .relief-controls { flex: 0 0 auto; min-height: 32px; padding: 0 19px 3px; }
 .canvas { flex: 1 1 auto; width: 100%; height: auto; min-height: 0; }
 .canvas-bottom { flex: 0 0 auto; padding: 11px 18px; }
 .dimension-cards { height: 70px; margin: 0; padding: 13px 0; }
 .dimension-cards>div { padding: 0 18px; }
 .dimension-cards strong { margin-top: 4px; font-size: 20px; }
 .summary-card { height: 76px; margin: 0; padding: 10px 2px; }
 .summary-card .eyebrow { margin-bottom: 5px; }
 .summary-card h2 { max-width: 850px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
 .summary-card p:not(.eyebrow) { margin-top: 5px; }
 .craft-note,.demo-caption { display: none; }

 .controls-column { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: hidden; }
 .controls-column>.control-section { flex: 0 0 auto; }
 .controls-column .control-section { padding: 13px 20px; }
 .controls-column .section-heading { margin-bottom: 8px; }
 .text-section textarea.text-input { height: 44px; min-height: 44px; resize: none; padding: 8px 12px; font-size: 17px; }
 .text-section .field-note { margin-top: 5px; line-height: 1.4; }
 .measure-section .size-header { margin-bottom: 7px; }
 .measure-section .size-axis button { min-width: 60px; padding: 7px 10px; }
 .measure-section .measure-field input { height: 38px; padding: 7px 11px; font-size: 16px; }
 .measure-section .dimension-result { margin-top: 5px; line-height: 1.35; }
 .measure-section .two-fields { gap: 12px; margin-top: 8px; }
 .measure-section .two-fields label { margin-bottom: 5px; }
 .measure-section .two-fields select,.measure-section .stepper { height: 32px; }
 .measure-section>.field-note { display: none; }

 .option-browser { display: grid; grid-template-rows: auto minmax(0,1fr); flex: 1 1 auto; min-height: 0; overflow: hidden; border-bottom: 1px solid var(--line); }
 .option-tabs { padding: 6px 8px; }
 .option-tabs button { min-height: 42px; padding: 5px 9px; }
 .tab-panel:not([hidden]) { display: flex; flex-direction: column; height: 100%; min-height: 0; overflow: auto; border-bottom: 0; }
 .tab-panel .section-heading { flex: 0 0 auto; }
 .tab-panel .field-note { flex: 0 0 auto; margin-top: 6px; line-height: 1.35; }
 .material-grid { grid-template-columns: repeat(5,minmax(0,1fr)); gap: 7px; }
 .material-card { padding: 5px 5px 7px; }
 .material-swatch { height: clamp(42px,5vh,58px); }
 .material-card strong { margin-top: 6px; font-size: 9px; line-height: 1.25; }
 .font-tools { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(140px,.65fr); align-items: end; gap: 12px; margin-bottom: 8px; }
 .category-tabs { align-items: center; gap: 13px; margin: 0; }
 .font-grid { flex: 1 1 auto; grid-template-columns: repeat(3,minmax(0,1fr)); align-content: start; max-height: none; min-height: 0; overflow-x: hidden; overflow-y: auto; gap: 7px; }
 .font-card { height: clamp(61px,7.2vh,76px); padding: 8px; }
 .font-label { margin-top: 6px; }
 .delivery-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
 .delivery-card { min-height: 78px; padding: 13px 5px 10px; }
 .delivery-estimate { margin-top: 8px; }

 .price-panel { flex: 0 0 auto; padding: 13px 20px 12px; }
 .price-top { margin-bottom: 9px; }
 .total-price { margin-top: 1px; font-size: 29px; }
 .price-actions { grid-template-columns: minmax(0,1.45fr) minmax(0,1fr); }
 .price-actions .primary-button,.price-actions .secondary-button { height: 40px; }
 .price-footnote { display: none; }
 .cart-edit-notice { flex: 0 0 auto; }
}

@media (max-width:1100px), (max-height:759px) {
 .option-tabs { position: sticky; top: 0; z-index: 2; }
 .tab-panel { border-bottom: 1px solid var(--line); }
}

@media (max-width:800px) {
 .option-tabs { gap: 4px; padding: 7px; }
 .option-tabs button { min-height: 47px; padding: 6px 7px; }
 .option-tabs button span { font-size: 11px; }
 .option-tabs button small { font-size: 8px; }
}
