/* Shared visual and accessibility layer; form values and calculations are unchanged. */
:root{--focus:#1f6651;--surface:#fffdf9;--line:#dcd2c5}
html{scroll-padding-top:155px}main{max-width:1200px;margin-inline:auto}
body{line-height:1.5}button,input,select,textarea{font:inherit}
button,a.button,input:not([type=checkbox]):not([type=radio]),select{min-height:44px}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.lux-skip{position:fixed;left:12px;top:-100px;z-index:1000;background:var(--surface);padding:12px 18px;color:#174638;border:2px solid var(--focus);border-radius:8px}.lux-skip:focus{top:12px}
#luxBetaEnvironment{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:7px 24px;background:#e8eee7;color:#254a3d;font:600 12px/1.5 system-ui;border-bottom:1px solid #cbd7ca;letter-spacing:.03em}
#luxBetaEnvironment a{color:inherit;text-underline-offset:3px}
#moduleBanner{padding:16px 20px;margin-block:12px!important;border-color:#d5c4b7!important;box-shadow:none!important}
#moduleBanner h1{font-size:clamp(23px,3vw,29px);line-height:1.2;margin:0 0 10px}
#moduleBanner .actions{gap:8px;margin-top:8px}#moduleContext{margin:4px 0 8px;font-size:13px;color:#655b52}#moduleContext summary{cursor:pointer;min-height:28px;font-weight:500}#moduleContext p{max-width:85ch}
#planningSaveToolbar{padding:16px 20px!important;border:1px solid #dcd2c5!important;box-shadow:none!important;gap:12px}
#quickPlanner{border:1px solid #dcd2c5;box-shadow:0 3px 14px #302b2708}
#quickPlanner h2{letter-spacing:-.025em}#quickPlanner label{line-height:1.45}
#planNavigationBand{border-radius:12px}#planLiveSummary{border:1px solid #d6dfd4;border-top:3px solid #496b55;box-shadow:0 2px 10px #302b2708}
#planNavigationBand .studio-tabs button[aria-pressed=true]{font-weight:650;color:#214a39;background:#fffdf9}
.actions,.headrow,.grid>*{min-width:0}.actions button{white-space:normal;overflow-wrap:anywhere}
img,svg,video{max-width:100%}.scroll{max-width:100%;overflow:auto;overscroll-behavior-inline:contain}
[role=alert]{scroll-margin-top:155px}textarea{resize:vertical}
@media(max-width:640px){
 html{scroll-padding-top:115px}body{font-size:16px}main{padding:14px!important}
 #luxBetaEnvironment{padding:7px 14px;gap:10px;font-size:11px;letter-spacing:0}
 #moduleBanner{padding:14px!important}#moduleBanner h1{font-size:23px}#moduleBanner .actions button,#moduleBanner .actions a{flex:1 1 130px;text-align:center}
 #planningSaveToolbar{padding:14px!important}#planningSaveToolbar .actions{width:100%;display:flex;flex-wrap:wrap}#planningSaveToolbar .actions button{flex:1 1 140px}
 input:not([type=checkbox]):not([type=radio]),select,textarea{font-size:16px!important;max-width:100%}
 #quickPlanner .quick-grid{gap:14px}.card,.panel,.quick-planner{min-width:0}
 #planNavigationBand .studio-tabs button{min-width:104px}#planLiveSummary{padding:8px 10px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{#luxBetaEnvironment,.lux-skip,#moduleContext{display:none!important}}

/* Physical left/right controls stay outside the horizontally scrollable menu. */
#planNavigationBand .lux-tab-rail{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;direction:ltr;align-items:center;gap:4px;width:100%;min-width:0;max-width:100%;flex:1 1 100%;box-sizing:border-box}
#planNavigationBand .lux-tab-rail .studio-tabs{min-width:0;width:100%;max-width:100%;box-sizing:border-box;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none}
#planNavigationBand .lux-tab-rail .studio-tabs::-webkit-scrollbar{display:none}
#planNavigationBand .lux-tab-rail .studio-tabs button{flex:1 0 auto;white-space:nowrap;word-break:normal;overflow-wrap:normal}
#planNavigationBand .lux-tab-arrow{display:grid;place-items:center;width:44px;min-width:44px;height:48px;min-height:44px;padding:0;border:1px solid #b7a795;border-radius:9px;background:#fffdf9;color:#214a39;box-shadow:0 2px 4px #302b2712;cursor:pointer;touch-action:manipulation}
#planNavigationBand .lux-tab-arrow svg{display:block;width:24px;height:24px;pointer-events:none}
#planNavigationBand .lux-tab-arrow:disabled{opacity:.32;cursor:default;box-shadow:none}
#planNavigationBand .lux-tab-rail[data-overflow=false]{grid-template-columns:minmax(0,1fr)}
#planNavigationBand .lux-tab-rail[data-overflow=false]>.lux-tab-arrow{display:none}

/* Print format and icon share a single row, including compact mobile layouts. */
.flow-actions .planning-print-controls{display:grid;grid-template-columns:minmax(0,1fr) 48px;gap:10px;align-items:end;flex:1 1 100%;min-width:0;width:100%}
.flow-actions .planning-print-choice{min-width:0}.planning-print-controls select{min-width:0;width:100%}
.flow-actions #quickPrintPlanning.print-icon-button{display:grid;place-items:center;box-sizing:border-box;width:48px;min-width:48px;height:48px;min-height:48px;padding:0;flex:none}
#quickPrintPlanning svg{display:block;width:24px;height:24px;pointer-events:none}

/* Offer rows retain their inputs, becoming labelled cards on narrow screens. */
.offer-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#offerLines .offer-field-label{display:none}
#offerLines td>label{display:block;margin:0;color:inherit;font-size:inherit}
#offerLines .offer-remove{display:grid;place-items:center;min-width:44px;min-height:44px;padding:10px}
#offerLines .offer-remove svg{pointer-events:none;display:block}
.offer-product-search{flex:1 1 220px;min-width:0}
.offer-product-search label{display:block}
.offer-product-search input{width:100%;box-sizing:border-box}
.offer-product-tools{align-items:end}
.offer-product-tools #offerProduct{flex:1 1 240px;min-width:0;max-width:100%!important}
@media screen and (max-width:700px){
 #studioOffer .offer-lines-scroll{overflow:visible;max-width:100%;margin-block:20px}
 #offerLinesTable{display:block;width:100%;min-width:0;margin:0;border:0}
 #offerLinesTable thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 #offerLines{display:grid;gap:14px;width:100%;min-width:0}
 #offerLines tr{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;padding:14px;border:1px solid var(--line);border-radius:12px;background:#faf7f1;min-width:0;box-sizing:border-box}
 #offerLines td{display:block;min-width:0;width:auto;padding:0;border:0;text-align:start}
 #offerLines td.offer-cell-title,#offerLines td.offer-cell-code{grid-column:1/-1}
 #offerLines td.offer-cell-quantity,#offerLines td.offer-cell-grossPrice{display:flex}
 #offerLines .offer-cell-quantity>label,#offerLines .offer-cell-grossPrice>label{display:flex;flex-direction:column;width:100%}
 #offerLines .offer-cell-quantity input,#offerLines .offer-cell-grossPrice input{margin-top:auto}
 #offerLines .offer-field-label{display:block;font-size:13px;line-height:1.4;color:var(--muted);margin-bottom:6px;white-space:normal;overflow-wrap:normal;word-break:normal}
 #offerLines input,#offerLines input.name{display:block;width:100%;min-width:0;max-width:100%;box-sizing:border-box;min-height:48px}
 #offerLines .offer-cell-total{align-self:center;overflow-wrap:anywhere}
 #offerLines .offer-cell-total strong{font-size:20px;color:#214a39}
 #offerLines .offer-cell-remove{display:flex;align-items:end;justify-content:flex-end}
 #offerLines .offer-remove{width:44px;height:44px;background:#fffdf9;border:1px solid var(--line);color:#99462e}
 .offer-product-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:10px;width:100%}
 .offer-product-tools #offerProduct,.offer-product-search,.offer-product-tools>button{width:100%;max-width:100%;box-sizing:border-box;min-width:0}
}

/* Product actions must wrap as whole controls instead of shrinking into vertical text. */
@media screen and (max-width:700px){
 #productEditor .flow-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch;gap:8px;width:100%;box-sizing:border-box;position:static;inset:auto}
 #productEditor .flow-actions>button{width:100%;min-width:0;max-width:100%;min-height:48px;height:auto;padding:12px 10px;font-size:14px;line-height:1.4;white-space:normal!important;overflow-wrap:normal;word-break:normal}
 #productEditor .flow-actions>#saveProduct{grid-column:1/-1;order:-1}
}
