/* Round 3 v8: order production options only. Other pages retain their 12-column system. */
.theo-order.theo-workspace-adaptive {
 --r3-header:64px; --r3-bar:76px; --r3-outer:32px; --r3-left:380px; --r3-right:340px; --r3-gap:36px;
 padding:var(--r3-header) 0 var(--r3-bar); min-height:100svh;
}
.theo-order.theo-workspace-adaptive .theo-order-layout { width:100%; max-width:none; margin:0; padding:12px var(--r3-outer); }
.theo-order.theo-workspace-adaptive .theo-studio-grid { position:relative; grid-template-columns:var(--r3-left) minmax(0,1fr); column-gap:var(--r3-gap); row-gap:0; height:var(--r3-work-height); align-items:start; }
.theo-order.theo-workspace-adaptive[data-workspace-mode="wide"] .theo-studio-grid { grid-template-columns:var(--r3-left) minmax(0,1fr) var(--r3-right); }
.theo-order.theo-workspace-adaptive .theo-studio-controls { grid-column:1; grid-row:1; position:relative; top:auto; width:100%; height:100%; max-height:100%; padding:0 0 12px; overflow:auto; overscroll-behavior:contain; }
.theo-order.theo-workspace-adaptive .theo-workspace-central { display:flex; flex-direction:column; align-items:center; gap:12px; grid-column:2; grid-row:1; min-width:0; width:100%; height:auto; margin:0; }
.theo-order.theo-workspace-adaptive .theo-workspace-central > * { width:min(100%,var(--r3-preview-width,1080px)); max-width:100%; min-width:0; flex:none; }
.theo-order.theo-workspace-adaptive .theo-studio-preview { position:relative; inset:auto; }
.theo-order.theo-workspace-adaptive .theo-editor-stage { aspect-ratio:var(--r3-ratio,1.5); width:100%; height:auto; max-height:none; min-height:0; }
.theo-order.theo-workspace-adaptive .theo-room-background { width:100%; height:100%; max-width:none; object-fit:cover; object-position:center; }
.theo-order.theo-workspace-adaptive .theo-editor-stage.is-room .theo-editor-product-view { padding:0; }
.theo-order.theo-workspace-adaptive .theo-editor-stage.is-room .theo-editor-product { max-width:none; max-height:none; }
.theo-order.theo-workspace-adaptive .theo-size-files { width:min(100%,var(--r3-preview-width,1080px)); max-width:100%; overflow:hidden; }
.theo-order.theo-workspace-adaptive .theo-size-file-list { width:100%; max-width:100%; min-width:0; display:flex; flex-wrap:nowrap; gap:12px; padding:12px 12px 2px 0; overflow:auto hidden; scroll-padding-inline:12px; }
.theo-order.theo-workspace-adaptive .theo-size-file { flex:0 0 56px; width:56px; }
.theo-order.theo-workspace-adaptive .theo-size-file > button:first-child { width:56px; height:56px; min-height:56px; }
.theo-order.theo-workspace-adaptive .theo-artwork-add { flex:0 0 56px; height:56px; min-height:56px; }
.theo-order.theo-workspace-adaptive .theo-option-reuse { padding:8px 12px; gap:8px 12px; }
.theo-order.theo-workspace-adaptive .theo-option-reuse > div:last-child { display:flex; flex-wrap:wrap; gap:8px; }
.theo-order.theo-workspace-adaptive .theo-option-reuse .button { min-height:36px; padding:6px 10px; font-size:12px; }
.theo-order.theo-workspace-adaptive .theo-room-picker { position:absolute; z-index:2; left:8px; right:8px; bottom:34px; display:flex; justify-content:center; align-items:start; width:auto; max-width:calc(100% - 16px); padding:4px; gap:4px; margin:0; border:0; overflow:auto hidden; background:rgb(255 255 255 / .94); }
.theo-order.theo-workspace-adaptive .theo-room-picker button { display:grid; grid-template-rows:26px 28px; gap:2px; align-content:start; flex:0 0 76px; min-width:0; width:76px; min-height:64px; height:64px; padding:3px; border:1px solid transparent; background:transparent; }
.theo-order.theo-workspace-adaptive .theo-room-picker button[aria-pressed="true"] { padding:3px; border:1px solid #111; box-shadow:none; }
.theo-order.theo-workspace-adaptive .theo-room-picker :is(img,.theo-room-picker-product) { width:100%; height:26px; min-height:26px; aspect-ratio:auto; object-fit:cover; }
.theo-order.theo-workspace-adaptive .theo-room-picker-label { height:28px; min-height:28px; font-size:10px; line-height:14px; }
.theo-order.theo-workspace-adaptive .theo-editor-note[data-room-caption] { height:26px; min-height:26px; padding:4px 8px; font-size:11px; line-height:17px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.theo-order.theo-workspace-adaptive .theo-studio-summary { grid-column:3; grid-row:1; position:relative; top:auto; width:100%; height:100%; max-height:100%; min-width:0; overflow:auto; overscroll-behavior:contain; scroll-margin-top:calc(var(--sticky-header-height,64px) + var(--r3-sticky-preview,0px) + 12px); }
.theo-order.theo-workspace-adaptive .theo-workspace-detail-head { position:sticky; top:0; z-index:2; min-height:64px; background:#fff; }
.theo-order.theo-workspace-adaptive .theo-studio-summary[hidden] { display:none; }
.theo-order.theo-workspace-adaptive[data-workspace-mode="wide"] .theo-workspace-v2[data-detail-panel="quote"] .theo-workspace-close { display:none; }
.theo-order.theo-workspace-adaptive[data-workspace-mode="mid"] .theo-studio-summary { position:absolute; z-index:12; grid-column:auto; right:0; top:0; bottom:0; width:var(--r3-right); max-width:calc(100% - var(--r3-left) - var(--r3-gap)); box-shadow:0 8px 30px #0002; }
.theo-order.theo-workspace-adaptive .theo-order-workspace-nav { display:flex; justify-content:flex-end; gap:8px 16px; margin:0 12px 8px; }
.theo-order.theo-workspace-adaptive .theo-order-workspace-nav :is(a,button) { min-height:32px; padding:4px 0; font-size:12px; }
.theo-order.theo-workspace-adaptive .theo-studio-controls > * + * { margin-top:12px; }
.theo-order.theo-workspace-adaptive .theo-workspace-group-head { scroll-margin-top:calc(var(--sticky-header-height,64px) + var(--r3-sticky-preview,0px) + 12px); }
.theo-order.theo-workspace-adaptive .theo-order-actions { grid-template-columns:auto minmax(0,1fr) auto auto; gap:20px; min-height:76px; padding:12px var(--r3-outer) max(12px,env(safe-area-inset-bottom)); }
.theo-order.theo-workspace-adaptive .theo-order-actions [data-order-prev] { grid-column:1; grid-row:1; min-width:120px; min-height:48px; }
.theo-order.theo-workspace-adaptive .theo-order-actions [data-order-next] { grid-column:4; grid-row:1; min-height:48px; max-width:240px; padding:10px 20px; }
.theo-order.theo-workspace-adaptive .theo-order-actions .theo-workspace-selection { display:block; grid-column:2; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; font-size:12px; }
.theo-order.theo-workspace-adaptive .theo-workspace-action-total { grid-column:3; grid-row:1; display:flex; flex-wrap:nowrap; gap:12px; justify-content:flex-end; }
.theo-order.theo-workspace-adaptive .theo-workspace-action-total > strong { white-space:nowrap; font-size:23px; }
.theo-order.theo-workspace-adaptive .theo-workspace-action-total > span { display:block; font-size:12px; }
.theo-order.theo-workspace-adaptive [data-workspace-toggle] { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:8px 12px; border:1px solid #111; background:#fff; color:#111; font-size:13px; font-weight:500; text-decoration:none; white-space:nowrap; }
.theo-order.theo-workspace-adaptive [data-workspace-toggle][aria-expanded="true"] { background:#111; color:#fff; }
.theo-workspace-detail-count { display:inline-flex; align-items:center; justify-content:center; min-width:22px; height:22px; padding:0 5px; border-radius:50%; background:#111; color:#fff; font-size:11px; line-height:1; }
[data-workspace-toggle][aria-expanded="true"] .theo-workspace-detail-count { background:#fff; color:#111; }
.theo-order.theo-workspace-adaptive[data-workspace-mode="wide"] [data-workspace-toggle] { display:none; }
.theo-order.theo-workspace-adaptive [data-workspace-toggle].is-price-updated { animation:theo-quote-update 1.1s ease-out; }
@keyframes theo-quote-update { 0% { box-shadow:0 0 0 0 #1f7a3e66; border-color:#1f7a3e; } 60% { box-shadow:0 0 0 5px #1f7a3e20; border-color:#1f7a3e; } 100% { box-shadow:0 0 0 7px transparent; } }
@media(min-width:1000px) {
 body.theo-workspace-active { overflow:hidden; }
 .theo-order.theo-workspace-adaptive { height:100dvh; min-height:0; overflow:hidden; }
 .theo-order.theo-workspace-adaptive .theo-material-preset-note,
 .theo-order.theo-workspace-adaptive .theo-member-preset-note { display:none; }
}
@media(min-width:1000px) and (max-width:1199px) {
 .theo-order.theo-workspace-adaptive .theo-order-actions { grid-template-columns:auto minmax(0,1fr) auto; gap:12px; }
 .theo-order.theo-workspace-adaptive .theo-order-actions .theo-workspace-selection { display:none; }
 .theo-order.theo-workspace-adaptive .theo-workspace-action-total { grid-column:2; }
 .theo-order.theo-workspace-adaptive .theo-order-actions [data-order-next] { grid-column:3; }
}
@media(max-width:999px) {
 .theo-order.theo-workspace-adaptive .theo-order-layout { padding:0 20px 20px; }
 .theo-order.theo-workspace-adaptive .theo-studio-grid { display:flex; flex-direction:column; gap:16px; height:auto; overflow:visible; }
 .theo-order.theo-workspace-adaptive .theo-workspace-central { order:0; position:sticky; top:var(--sticky-header-height,64px); z-index:8; gap:8px; padding:8px 0; background:#fff; border-bottom:1px solid #dedede; }
 .theo-order.theo-workspace-adaptive .theo-workspace-central > :is(.theo-size-files,.theo-option-reuse) { width:100%; }
 .theo-order.theo-workspace-adaptive .theo-studio-controls { order:1; position:static; height:auto; max-height:none; overflow:visible; contain:none; }
 .theo-order.theo-workspace-adaptive .theo-editor-journey { position:static; }
 .theo-order.theo-workspace-adaptive .theo-studio-summary { order:2; position:static; height:auto; max-height:none; width:100%; }
 .theo-order.theo-workspace-adaptive .theo-workspace-detail-head { position:static; }
 .theo-order.theo-workspace-adaptive .theo-workspace-v2[data-detail-panel="quote"] .theo-workspace-close { display:none; }
 .theo-order.theo-workspace-adaptive .theo-order-actions { grid-template-columns:minmax(0,1fr) auto; gap:12px; padding:12px 20px max(12px,env(safe-area-inset-bottom)); }
 .theo-order.theo-workspace-adaptive .theo-order-actions :is([data-order-prev],.theo-workspace-selection) { display:none; }
 .theo-order.theo-workspace-adaptive .theo-order-actions .theo-workspace-action-total { grid-column:1; grid-row:1; justify-content:space-between; gap:8px; }
 .theo-order.theo-workspace-adaptive .theo-order-actions [data-order-next] { grid-column:2; grid-row:1; min-width:0; max-width:220px; font-size:13px; }
 .theo-order.theo-workspace-adaptive [data-workspace-toggle] { order:-1; }
 .theo-order.theo-workspace-adaptive .theo-room-picker { bottom:32px; justify-content:flex-start; }
 .theo-order.theo-workspace-adaptive .theo-room-picker button { flex:0 0 64px; width:64px; }
}
@media(max-width:599px) {
 .theo-order.theo-workspace-adaptive .theo-workspace-action-total > span { display:none; }
 .theo-order.theo-workspace-adaptive .theo-workspace-action-total > strong { font-size:18px; }
 .theo-order.theo-workspace-adaptive [data-workspace-toggle] { min-height:44px; padding:6px 8px; gap:4px; font-size:12px; }
 .theo-order.theo-workspace-adaptive .theo-order-actions { gap:10px; padding-inline:12px; }
 .theo-order.theo-workspace-adaptive .theo-order-actions [data-order-next] { max-width:clamp(104px,calc(50vw - 56px),140px); padding:8px 10px; font-size:12px; }
 .theo-order.theo-workspace-adaptive .theo-workspace-action-total { gap:6px; }
 .theo-order.theo-workspace-adaptive .theo-size-file { flex-basis:44px; width:44px; }
 .theo-order.theo-workspace-adaptive .theo-size-file > button:first-child { width:44px; height:44px; min-height:44px; }
 .theo-order.theo-workspace-adaptive .theo-artwork-add { flex-basis:44px; height:44px; min-height:44px; }
 .theo-order.theo-workspace-adaptive .theo-editor-note[data-room-caption] { display:none; }
 .theo-order.theo-workspace-adaptive .theo-room-picker { bottom:6px; left:6px; right:6px; max-width:calc(100% - 12px); gap:2px; padding:2px; }
 .theo-order.theo-workspace-adaptive .theo-room-picker button { grid-template-rows:36px; flex-basis:46px; width:46px; height:44px; min-height:44px; }
 .theo-order.theo-workspace-adaptive .theo-room-picker :is(img,.theo-room-picker-product) { height:36px; min-height:36px; }
 .theo-order.theo-workspace-adaptive .theo-room-picker-label { position:absolute; width:1px; height:1px; min-height:0; overflow:hidden; clip-path:inset(50%); }
 .theo-order.theo-workspace-adaptive .theo-option-reuse { padding:6px; }
 .theo-order.theo-workspace-adaptive .theo-option-reuse strong { display:none; }
 .theo-order.theo-workspace-adaptive .theo-option-reuse > div:last-child { gap:4px; }
 .theo-order.theo-workspace-adaptive .theo-option-reuse .button { min-height:36px; font-size:11px; padding:6px; }
}
@media(prefers-reduced-motion:reduce) {
 .theo-order.theo-workspace-adaptive [data-workspace-toggle].is-price-updated { animation:none; border-color:#1f7a3e; }
}
