/* Line-first editor. Product landing and hero styles are untouched. */
#design-workspace .wording-section[hidden],#design-workspace [hidden],#font-dialog [hidden]{display:none!important}
#lettering-steps{max-width:1320px;margin-bottom:12px}
#lettering-steps button{min-height:54px}
#design-workspace.v2-layout{grid-template-columns:minmax(360px,1fr) minmax(0,1.05fr);gap:36px;padding-top:18px}
#design-workspace .wizard-heading h2{font-size:26px}
#design-workspace .editor-heading,#design-workspace .jump-step,#design-workspace #editing-title{display:none}
#design-workspace .wizard-actions{position:static;background:transparent;z-index:auto;margin-top:22px}
#design-workspace #style-line-title{font-size:19px;line-height:1.4;margin:0 0 16px;overflow-wrap:anywhere}
#design-workspace .wording-row{display:grid;grid-template-columns:1fr auto;gap:8px 12px;margin-bottom:18px}
#design-workspace .wording-row label{grid-column:1/-1;margin:0;font-size:15px;font-weight:600}
#design-workspace .wording-row input{width:100%;min-width:0;min-height:48px;padding:10px 12px;font-size:18px;background:#fff;border:1px solid #8c9da4;border-radius:3px}
#design-workspace .wording-row button{border:0;background:transparent;padding:8px;color:#8a2d36;text-decoration:underline;font:inherit;font-size:14px}
#design-workspace #add-line{margin:0 0 18px;min-height:44px}
#design-workspace .line-manager{margin:0 0 20px}
#design-workspace .line-manager .line-actions{display:none}
#design-workspace #duplicate-line,#design-workspace #remove-line{display:none}
#design-workspace .line-tabs{display:flex;gap:8px;flex-wrap:wrap;max-height:none;overflow:visible}
#design-workspace .line-tabs button{flex:1;min-width:100px;max-width:100%;padding:8px 10px}
#design-workspace .line-tabs button small{display:none}
#design-workspace .two-fields{margin-bottom:14px}
#design-workspace .font-picker>label{display:block;font-size:15px;margin:0 0 6px;font-weight:600}
#design-workspace .font-trigger{width:100%;background:#fff;min-height:66px;border:1px solid #83969e;border-radius:3px;margin-bottom:18px}
#design-workspace .font-trigger small{display:block;color:#8a2d36;text-decoration:underline;margin-top:4px}
#design-workspace .finish-details>summary,#design-workspace .mounting>summary,#design-workspace .material-details>summary{display:block;cursor:pointer;font-weight:600;padding:12px 0;pointer-events:auto}
#design-workspace .finish-details,#design-workspace .mounting{border-top:1px solid #c9d3d7;margin-top:12px}
#design-workspace .material-details{margin-top:12px;padding-top:0}
#design-workspace .mounting-explained{display:none}
#design-workspace .sign-summary{top:90px}
#design-workspace .compact-preview .letter-stage{height:clamp(240px,38vh,350px)}
#design-workspace .font-artwork-notice{inset:5%;padding:15px;overflow:auto}
#design-workspace .font-artwork-notice p{font-size:14px}
#design-workspace #saved-requirements{border-top:1px solid #c9d3d7;padding-top:12px;margin-top:16px}
#font-dialog:not([open]){display:none}
#font-dialog[open]{display:flex;flex-direction:column;width:min(680px,calc(100vw - 32px));height:min(610px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);padding:0;border:0;border-radius:8px;background:#fff;color:#173747;overflow:hidden;box-shadow:0 18px 70px #0005}
#font-dialog::backdrop{background:#10283599}
#font-dialog .font-dialog-header{position:static;display:flex;align-items:center;justify-content:space-between;flex:none;padding:18px 22px;gap:16px;background:#fff;color:#173747}
#font-dialog h2{font-size:23px;margin:0;line-height:1.2}
#font-dialog #close-font-dialog{min-height:44px;border:0;background:transparent;color:#173747;font:inherit;cursor:pointer}
#font-dialog .font-dialog-search{flex:none;padding:0 22px 12px;border-bottom:1px solid #ccd5d8}
#font-dialog #font-search{width:100%;min-height:46px;padding:10px 12px;border:1px solid #83969e;border-radius:3px;font-size:16px}
#font-dialog #font-help{font-size:13px;line-height:1.45;margin:8px 0 0}
#font-dialog .font-preview-filter{display:flex;align-items:center;gap:10px;min-height:44px;margin:8px 0 0;font-size:14px;font-weight:400;line-height:1.45;cursor:pointer}
#font-dialog #font-preview-only{display:inline-block;flex:0 0 20px;width:20px;height:20px;min-width:20px;min-height:20px;margin:0;padding:0;accent-color:#173747}
#font-dialog #font-preview-only:focus-visible{outline:3px solid #1b6683;outline-offset:3px}
#font-dialog .font-dialog-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:10px 22px 20px;flex:1}
#font-dialog #font-grid{display:flex;flex-direction:column;gap:0;max-height:none;overflow:visible;padding:0}
#font-dialog #font-grid button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;width:100%;min-height:106px;border:0;border-bottom:1px solid #ccd5d8;border-radius:0;background:#fff;padding:16px 12px;text-align:left;cursor:pointer;color:#173747}
#font-dialog #font-grid button[aria-pressed=true]{background:#f5f1eb;box-shadow:inset 3px 0 #a8313e}
#font-dialog #font-grid button:disabled{opacity:.65;cursor:wait}
#font-dialog .font-choice-name{font-size:22px;line-height:1.3;font-weight:400;overflow-wrap:anywhere}
#font-dialog .font-sample{font-size:28px;line-height:1.3;overflow-wrap:anywhere}
#font-dialog .font-choice-status,#font-dialog .font-no-preview{font:13px/1.45 system-ui;color:#526570;padding:0}
#font-dialog button:focus-visible,#design-workspace button:focus-visible{outline:2px solid #a8313e;outline-offset:2px}
@media(max-width:760px){
 #design-workspace.v2-layout{grid-template-columns:1fr;padding:16px 5% 30px;gap:24px}
 #design-workspace .controls{grid-row:1}#design-workspace .sign-summary{grid-row:2;position:static}
 #design-workspace .wizard-actions{position:static}
 #design-workspace .compact-preview .letter-stage{height:270px}
 #lettering-steps button{font-size:12px;gap:5px;padding:8px 5px}#lettering-steps button span{width:21px;height:21px}
 #font-dialog .font-dialog-header{padding:12px 16px}#font-dialog .font-dialog-search{padding:0 16px 10px}#font-dialog .font-dialog-list{padding:6px 12px 16px}
}
/* Clear chooser action; selected font stays visible below it. */
#design-workspace #choose-font.font-trigger{display:block;min-height:48px;padding:12px 18px;background:#a8313e;color:#fff;border:1px solid #a8313e;font-family:inherit;font-size:16px;font-weight:600;line-height:1.4;text-align:center;margin:0 0 8px}
#design-workspace #choose-font.font-trigger:hover{background:#8d2935}
#design-workspace .current-font-readout{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin:0 0 18px;color:#526570;min-width:0}
#design-workspace .current-font-readout #selected-font-name{font-size:14px;font-weight:500;min-width:0;overflow-wrap:anywhere;flex:1 1 0}
#design-workspace .current-font-readout #selected-font-sample{font-size:21px;overflow-wrap:anywhere;min-width:0;text-align:right}
#font-dialog #font-grid button{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:4px 16px;align-items:center;min-height:74px;padding:10px 12px}
#font-dialog .font-choice-name{font-size:24px;line-height:1.2}
#font-dialog .font-sample{font-size:22px;line-height:1.2}
#font-dialog .font-choice-status{grid-column:1/-1;font-size:12px;line-height:1.3}
#font-dialog .font-no-preview{font-size:12px}
@media(max-width:480px){#font-dialog #font-grid button{grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:10px}#font-dialog .font-choice-name{font-size:21px}#font-dialog .font-sample{font-size:20px}}

/* Compact, visible preview controls; preserve the existing two-column design. */
#design-workspace .background-controls{padding:0;margin:0 0 10px;border:0;background:transparent}
#design-workspace .background-controls .wall-picks{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#design-workspace .background-controls legend{float:left;margin:0;padding:8px 0;font-size:13px}
#design-workspace .background-options{flex:1;min-width:210px}
#design-workspace .background-options button{padding:8px 10px;min-height:40px;font-size:13px}
#design-workspace .wall-custom{display:flex;align-items:center;gap:10px;padding-top:8px}
#design-workspace .wall-custom label{margin:0;font-size:13px}
#design-workspace .wall-custom input{width:50px;height:34px;padding:2px}
#design-workspace .optional-notes{margin-top:12px}
#design-workspace .optional-notes summary{font-size:14px;padding:8px 0;cursor:pointer}
#design-workspace .two-fields .field-help{display:block;margin:6px 0 0;font-size:12px}
#design-workspace[aria-busy=true] #letter-canvas{opacity:.25}
#preview-updating{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#f5f3eee8;color:#173747;font-size:15px;font-weight:600;margin:0;padding:20px;text-align:center}
#design-workspace .wizard-actions{position:sticky;bottom:0;background:#f8f7f2;border-top:1px solid #d0d8da;padding:10px 0;z-index:10}
#design-workspace .wizard-actions #wizard-status:empty{display:none}
#design-workspace .wizard-actions>div{display:flex;justify-content:space-between;gap:12px}
#design-workspace .controls{padding-bottom:10px}

#design-workspace .controls>.material-details{margin:0 0 16px;padding:0;border:0;border-bottom:1px solid #c9d3d7;background:transparent}
#design-workspace .controls>.material-details>summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 14px;padding:10px 0 14px}
#material-line-label{font-size:13px;color:#526570;font-weight:500}
#current-product-name{font-size:18px}
#design-workspace .controls>.material-details>summary small{margin-left:auto;color:#8a2d36;text-decoration:underline;font-size:14px}
#material-change-note{margin:0 0 16px;color:#81303a}
#design-workspace .controls>.material-details>summary small{display:inline!important}

#step-price{display:block;font-size:16px;font-weight:600;margin-bottom:6px;color:#173747}
#step-price:empty{display:none}
#design-workspace .mobile-preview-jump{display:none}
#design-workspace .sizing-help{font-size:13px;margin:8px 0;color:#526570}
#design-workspace .compact-preview{scroll-margin-top:110px}
#design-workspace .preview-specs small{font-size:12px}
@media(max-width:760px){#design-workspace .mobile-preview-jump{display:block}#design-workspace .wizard-actions>div{gap:6px}#design-workspace .wizard-actions button{font-size:13px;padding:10px 8px}}

/* Phone controls: readable line names and comfortable touch targets. */
@media(max-width:760px){
 #design-workspace .swatches{gap:8px;max-height:166px;overscroll-behavior:contain}
 #design-workspace .swatches button{width:44px;height:44px;min-width:44px;min-height:44px}
 #design-workspace .line-tabs{flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden;max-width:100%;padding:3px 3px 10px;overscroll-behavior-x:contain;scroll-padding-inline:3px}
 #design-workspace .line-tabs button{flex:0 0 auto;min-width:156px;max-width:calc(100% - 20px);min-height:48px;align-items:center;grid-template-columns:24px minmax(0,1fr)}
 #design-workspace .line-tabs button>b{font-size:14px;max-width:28ch;white-space:normal;overflow-wrap:anywhere;text-overflow:clip;line-height:1.35}
 #design-workspace .line-tabs button>span{grid-row:1}
 #design-workspace .line-manager{margin-bottom:14px}
}

/* Focused specification review; retains existing material and landing design. */
.line-confirmations{border:1px solid #bdc9cc;border-radius:4px;padding:16px;margin-top:22px;background:#fff}
.line-confirmations legend{font-weight:600;font-size:17px;padding:0 6px}
.line-confirmations label,.final-confirmation{display:flex;align-items:flex-start;gap:10px;padding:10px 0;font-size:15px;line-height:1.5}
.line-confirmations input,.final-confirmation input{width:20px;height:20px;flex:0 0 20px;margin-top:2px;accent-color:#173747}
#review-state{font-size:14px;color:#526570;margin:0 0 6px}
#design-workspace .line-tabs button .line-review-state{display:block;grid-column:2;font-size:11px;line-height:1.25}
#design-workspace .line-tabs button>b{grid-column:2}
#design-workspace.guided-review .price-panel{margin:0 0 14px;padding:10px 0;border-top:0;border-bottom:1px solid #c9d3d7}
#design-workspace.guided-review #price{font-size:30px}
#design-workspace.guided-review #price-detail{font-size:13px;margin:5px 0 0}
#design-workspace.guided-review #choose-font.font-trigger{background:#fff;color:#173747;border-color:#83969e;font-weight:500}
#design-workspace.guided-review #choose-font.font-trigger:hover{background:#eef2f2}
#design-workspace.guided-review .finish-details>summary,#design-workspace.guided-review .mounting>summary,#design-workspace.guided-review .material-details>summary{border-left:0;background:transparent}
#design-workspace.guided-review #step-price{display:none}
#design-workspace.guided-review .compact-preview .letter-stage{height:clamp(190px,30vh,270px)}
#design-workspace.guided-review .dimension-list{max-height:76px;overflow:auto}
#design-workspace.guided-review .sign-summary{top:104px}
body:has(#design-workspace.guided-review:not([hidden])) .dim-page-nav{position:static}
#design-workspace.guided-review .wizard-actions .outline-button{border-color:transparent;background:transparent}
#design-workspace.guided-review .wizard-actions #wizard-next,#design-workspace.guided-review .wizard-actions #add-cart{background:#173747;color:#fff}
#review-layout-summary{font-size:14px;line-height:1.5}
.final-confirmation{border-top:1px solid #c9d3d7;margin-top:16px;padding-top:16px}
@media(min-width:761px){#design-workspace.guided-review .sign-summary>.design-help,#design-workspace.guided-review .sign-summary>.tax-note{font-size:12px}}
@media(max-width:760px){
 #design-workspace.guided-review #step-price{display:block}
 #design-workspace.guided-review .sign-summary .price-panel{display:none}
 #design-workspace.guided-review .compact-preview .letter-stage{height:270px}
 #design-workspace.guided-review .line-tabs button{min-height:65px}
 .line-confirmations{padding:12px}
}

/* One price location per viewport: right summary on desktop, action bar on phones. */
@media(min-width:761px){
 #design-workspace.guided-review .controls{grid-column:1;grid-row:1}
 #design-workspace.guided-review .sign-summary{grid-column:2;grid-row:1;position:sticky;top:104px;align-self:start}
 #design-workspace.guided-review #step-price{display:none}
}

/* Keep selected values and required checks visible; defer optional comparison. */
#design-workspace .color-palette{margin:10px 0}
#design-workspace .color-palette>summary{cursor:pointer;font-size:14px;padding:10px 0;color:#173747}
#design-workspace .color-palette .swatches{margin-top:10px}
#design-workspace .summary-line>span:last-child{display:grid;grid-template-columns:1fr;gap:5px;min-width:0}
#design-workspace .summary-line small{margin:0;line-height:1.45;overflow-wrap:anywhere}
#design-workspace .summary-line{padding-block:14px}
#design-workspace .review-edit-actions{margin-top:6px}
#design-workspace .field-help{line-height:1.45}
#design-workspace input,#design-workspace select{scroll-margin-block:160px}
#design-workspace .line-confirmations input,#design-workspace .final-confirmation input{scroll-margin-block:200px}
@media(min-width:1100px){
 #design-workspace .summary-line>span:last-child{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:16px}
 #design-workspace .summary-line>span:last-child>b,#design-workspace .summary-line>span:last-child>small:first-of-type,#design-workspace .summary-line .review-edit-actions{grid-column:1/-1}
}
/* Deliberate choices replace repeated specification acknowledgments. */
[data-wizard-panel="1"] label,[data-wizard-panel="1"] legend {font-weight:700;}
.choice-pending {border:2px solid #246878!important;background-color:#f3fafb;}
.choice-error {color:#a52020;font-weight:700;margin:6px 0 14px;}
[aria-invalid="true"] {border:2px solid #a52020!important;}

/* Keep per-line proof/load notices from covering the supported preview. */
#design-workspace .font-artwork-notice{position:static;inset:auto;margin:12px 0;text-align:left}

/* Distinct specification sections, with direct navigation for long mobile forms. */
#design-workspace [data-wizard-panel="1"] .choice-section{border:1px solid #c9d3d7;border-radius:6px;padding:16px;margin:16px 0;background:#fff}
#design-workspace [data-wizard-panel="1"] .choice-section h4,#design-workspace [data-wizard-panel="1"] .choice-section>summary{font-size:18px;font-weight:750;color:#173747;margin:0 0 12px;padding:0 0 10px;border-bottom:1px solid #dce3e5}
#design-workspace .choice-navigation{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}
#design-workspace .choice-navigation button{font:inherit;font-size:13px;font-weight:650;padding:10px 12px;border:1px solid #8c9ea6;border-radius:4px;background:#fff;color:#173747;min-height:44px}
#design-workspace .choice-navigation button:focus-visible{outline:3px solid #246878;outline-offset:2px}
#mobile-line-picker{display:none}
@media(max-width:760px){
 #design-workspace #mobile-line-picker:not([hidden]){display:block;font-weight:700;margin:12px 0}
 #mobile-line-select{width:100%;min-height:48px;margin-top:6px}
 #design-workspace .line-tabs{display:none}
 #design-workspace .line-manager{margin:8px 0}
 #design-workspace [data-wizard-panel="1"] .choice-section{padding:12px;margin:12px 0}
 #design-workspace .choice-navigation{position:static;background:#f8f7f2;padding:8px 0;border-bottom:1px solid #c9d3d7}
}

#design-workspace .proof-choice{border:1px solid #c9d3d7;border-radius:6px;padding:16px;margin:16px 0;background:#fff;min-width:0}
#design-workspace .proof-choice legend{font-size:18px;font-weight:700;color:#173747}
#design-workspace .proof-choice label{display:flex;gap:10px;align-items:flex-start;line-height:1.5}
#design-workspace .proof-choice input[type=checkbox]{width:20px;height:20px;min-height:20px;flex:0 0 20px;margin:2px 0 0;accent-color:#173747}

/* Paint swatches are directly available, without disclosure or nested scrolling. */
#design-workspace .color-palette .swatches{max-height:none;overflow:visible;gap:10px;margin:12px 0 18px}
#design-workspace .color-palette .swatches button{width:44px;height:44px;min-width:44px;min-height:44px}

/* Actual per-line progress, with text cues as well as restrained color. */
#design-workspace .choice-navigation button{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;flex:1 1 100px;min-width:0}
#design-workspace .choice-navigation .choice-nav-status{font-size:11px;line-height:1.35;font-weight:500}
#design-workspace .choice-navigation button[data-state="complete"]{background:#eef6f1;border-color:#4b7660;color:#24523a}
#design-workspace .choice-navigation button[data-state="pending"]{border-left:3px solid #246878;background:#f3fafb}
#design-workspace .choice-navigation button[data-state="missing"]{border-color:#a52020;border-left-width:3px;color:#8e2020;background:#fff5f4}
#design-workspace .choice-navigation button[data-state="required"],#design-workspace .choice-navigation button[data-state="requested"]{background:#edf3f6}
#choice-progress{font-size:13px;font-weight:650;color:#173747;margin:8px 0 16px}
@media(max-width:760px){#design-workspace .choice-navigation{gap:5px}#design-workspace .choice-navigation button{flex:1 1 95px;padding:7px 8px}.choice-navigation .choice-nav-status{font-size:11px}}

/* Selected values stay readable, including long custom names, at narrow widths. */
#design-workspace .choice-navigation .choice-nav-value{font-size:12px;line-height:1.4;font-weight:600;overflow-wrap:anywhere;max-width:100%}

@media(max-width:480px){#design-workspace .current-font-readout{flex-direction:column;align-items:stretch;gap:6px}#design-workspace .current-font-readout #selected-font-sample{text-align:left}}

/* Preview-first ordering: retain details without repeating them beside every choice. */
@media(min-width:761px){
 #design-workspace.guided-review .controls{align-self:start}
 #design-workspace.guided-review .sign-summary{position:static}
 #design-workspace.guided-review #price{font-size:25px}
}
#design-workspace.guided-review .price-panel{margin:16px 0 0;padding:14px 0;border-top:1px solid #c9d3d7;border-bottom:0}
#design-workspace .background-controls{margin-top:12px}
#design-workspace .color-palette .swatches{gap:6px}
#design-workspace .color-palette .swatches button{width:32px;height:32px;min-width:32px;min-height:32px}
@media(pointer:coarse){#design-workspace .color-palette .swatches button{width:40px;height:40px;min-width:40px;min-height:40px}}
#design-workspace .price-footnote{font-size:13px;line-height:1.5}
