/* Workshop layout, using Minifix's existing graphite / white / red palette. */
:root{--bg:#f7f7f8;--surface:#fff;--panel:#f5f5f7;--ink:#202023;--muted:#66666f;--line:#e6e6ea;--accent:#c91520;--button:#d71920;--button-ink:#fff;--soft:#fff3f3;--board:#dedbd6;color-scheme:light}
:root[data-theme="dark"]{--bg:#171719;--surface:#202023;--panel:#27272b;--ink:#f5f5f7;--muted:#aeafb8;--line:#343439;--accent:#ff6971;--button:#ff6971;--button-ink:#251013;--soft:#352125;--board:#494746;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.5 -apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;letter-spacing:-.015em}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}a{color:inherit}img{display:block;max-width:100%}[hidden]{display:none!important}h1,h2,h3,p{margin:0}:focus-visible{outline:3px solid var(--accent);outline-offset:3px}html{scroll-behavior:smooth;scroll-padding-top:24px}.sr-only{position:absolute;width:1px;height:1px;padding:0;border:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.order-header{display:flex;align-items:center;gap:28px;min-height:82px;padding:18px max(24px,calc((100vw - 1280px)/2));background:var(--surface);border-bottom:1px solid var(--line)}.logo{width:190px;height:auto}:root[data-theme="dark"] .logo{content:url("logo-light.svg")}.order-header nav{display:flex;gap:26px;margin-left:auto}.order-header nav a{text-decoration:none;color:var(--muted);font-size:13px}.order-header nav a:hover{color:var(--accent)}.header-tools{display:flex;gap:8px}.header-tools button{width:38px;height:38px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:5px;font-size:12px;font-weight:600}
.order-main{max-width:1280px;margin:auto;padding:0 24px}.intro{display:flex;justify-content:space-between;align-items:center;gap:40px;padding:32px 0 24px}.eyebrow{font-size:10px;font-weight:600;letter-spacing:.13em;color:var(--muted);margin-bottom:10px}h1{font-size:32px;letter-spacing:-.04em;line-height:1.2;font-weight:650}h1 em{font-style:normal}.intro-copy{font-size:14px;color:var(--muted);margin-top:10px;max-width:65ch}.intro-note{font-size:12px;color:var(--muted);max-width:31ch}.intro-note a{text-underline-offset:3px}.progress{display:flex;list-style:none;gap:32px;margin:0 0 24px;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.progress li{display:flex;gap:10px;font-size:12px;color:var(--muted)}.progress b{font-weight:500}.progress span{font-family:ui-monospace,Consolas,monospace}.progress [aria-current="step"]{color:var(--accent)}.progress [aria-current="step"] b{font-weight:600}
.workspace{display:flex;flex-direction:column;gap:24px}.work-content{width:100%;min-width:0}.surface{margin-bottom:24px}.section-heading{display:flex;gap:12px;align-items:center;margin-bottom:16px}.section-number{display:none}h2{font-size:18px;font-weight:600;line-height:1.3}h3{font-size:15px;font-weight:600;line-height:1.4}.unit{margin-left:auto;font-size:12px;color:var(--muted)}label>span,legend{display:block;margin-bottom:7px;font-size:12px;color:var(--muted);font-weight:400}input:not([type="radio"]):not([type="checkbox"]),select,textarea{display:block;width:100%;min-width:0;min-height:42px;background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:10px 11px;border-radius:5px}input::placeholder,textarea::placeholder{color:var(--muted);opacity:.7}input:focus,select:focus,textarea:focus{border-color:var(--accent)}fieldset{min-width:0;margin:0;padding:0;border:0}legend{padding:0}.customer{padding:0 0 24px;border-bottom:1px solid var(--line)}.customer-grid{display:grid;grid-template-columns:1.3fr 1.4fr 1.2fr 1.2fr;gap:18px;align-items:end}.material-options,.thickness-options{display:flex;gap:5px}.material-options label,.thickness-options label{flex:1;min-width:0;position:relative}.material-options input,.thickness-options input{position:absolute;opacity:0;width:1px;height:1px}.material-options label>span,.thickness-options label>span{display:flex;justify-content:center;align-items:center;gap:5px;border:1px solid var(--line);background:var(--surface);border-radius:5px;min-height:42px;padding:8px 6px;margin:0;font-size:12px;color:var(--ink);cursor:pointer;white-space:nowrap}.material-options span span{margin:0;color:inherit}.material-options input:checked+span,.thickness-options input:checked+span{border-color:var(--accent);background:var(--soft)}.material-options input:focus-visible+span,.thickness-options input:focus-visible+span{outline:3px solid var(--accent);outline-offset:3px}.swatch{display:none}
.measurements{padding-bottom:22px;border-bottom:1px solid var(--line)}.measurement-bench{display:grid;grid-template-columns:minmax(0,1fr) 275px;gap:24px;align-items:start}.table-work{min-width:0}.measurement-scroll{overflow-x:auto}.measurement-table{width:100%;border-collapse:collapse;background:var(--surface);font-size:13px;table-layout:fixed}.measurement-table th{font-size:11px;font-weight:500;color:var(--muted);text-align:left;padding:12px 9px;border-bottom:1px solid var(--line)}.measurement-table th:first-child{width:34px}.measurement-table th:nth-child(2){width:22%}.measurement-table th:nth-child(3),.measurement-table th:nth-child(4){width:14%}.measurement-table th:nth-child(5){width:11%}.measurement-table th:nth-child(6){width:18%}.measurement-table th:last-child{width:80px}.measurement-table td{padding:12px 9px;border-bottom:1px solid var(--line);vertical-align:middle;overflow-wrap:anywhere}.measurement-table .index{font:11px ui-monospace,Consolas,monospace;color:var(--muted)}.measurement-table .part-name{font-weight:500}.part-number{font:13px ui-monospace,Consolas,monospace;white-space:nowrap}.part-bands{font-size:11px;color:var(--muted)}.part-row.is-editing td{background:var(--soft)}.draft-row{background:var(--soft)}.draft-row td{padding:10px 7px}.draft-row input{padding:9px 7px;font-size:13px;font-family:ui-monospace,Consolas,monospace}.draft-row #part-label{font-family:inherit}.row-add{border:0;border-radius:4px;background:var(--button);color:var(--button-ink);padding:10px 9px;width:100%;font-size:12px;font-weight:600;min-height:40px}.row-actions{display:flex;gap:4px}.row-actions button{border:1px solid var(--line);border-radius:4px;background:var(--surface);color:var(--muted);font-size:15px;min-width:29px;height:32px;padding:0 6px}.row-actions button:hover{color:var(--accent);border-color:var(--accent)}.mobile-label{display:none}.empty{padding:16px 0 0;font-size:12px;color:var(--muted)}.helper{font-size:12px;color:var(--muted);margin:12px 0}.helper:empty{display:none}.keyboard-help{margin-top:14px}.part-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px;margin-top:18px}.inline-check{display:flex;align-items:flex-start;gap:9px;font-size:12px;cursor:pointer}.inline-check span{margin:0}.inline-check input{height:17px;width:17px;flex:none;margin:0;accent-color:var(--accent)}.list-footer{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap;margin-top:20px;font-size:11px;color:var(--muted)}.list-footer b{color:var(--ink);font-weight:600}
.edge-workspace{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:18px}.edge-copy h3{font-size:15px;margin-bottom:8px}.edge-copy>p:not(.edge-status){font-size:12px;color:var(--muted);margin:0 0 16px}.edge-diagram{display:grid;grid-template-columns:40px 1fr 40px;grid-template-rows:38px 112px 38px;gap:4px}.edge{display:flex;justify-content:center;align-items:center;gap:5px;border:1px solid var(--line);background:var(--surface);color:var(--muted);border-radius:4px;font-size:11px;min-width:0;padding:3px}.edge i{font-style:normal}.edge[aria-pressed="true"]{background:var(--button);color:var(--button-ink);border-color:var(--button)}.edge.top{grid-column:2;grid-row:1}.edge.bottom{grid-column:2;grid-row:3}.edge.left{grid-column:1;grid-row:2;flex-direction:column}.edge.right{grid-column:3;grid-row:2;flex-direction:column}.edge.left span,.edge.right span{writing-mode:vertical-rl}.panel-board{grid-column:2;grid-row:2;background:var(--board);color:var(--ink);display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px}.panel-board>span{font:12px ui-monospace,Consolas,monospace;padding:0 5px;text-align:center;overflow-wrap:anywhere}.panel-board small{font-size:10px;color:var(--muted)}.edge-presets{display:flex;gap:6px;flex-wrap:wrap;margin:12px 0}.edge-presets button{font-size:11px;min-height:32px;background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:4px;padding:6px 9px}.edge-status{font-size:11px;color:var(--accent);margin:10px 0}
.button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:11px 18px;border:1px solid var(--button);background:var(--button);color:var(--button-ink);font-size:13px;font-weight:600;border-radius:5px;text-decoration:none;cursor:pointer}.button.secondary{background:var(--surface);border-color:var(--line);color:var(--ink);font-weight:400}.button:hover,.row-add:hover{filter:brightness(1.07)}.message{font-size:12px;margin:10px 0}.message:empty{display:none}.error{color:var(--accent)}.order-summary{width:100%;background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:24px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:14px 24px;align-items:start}.order-summary>.eyebrow{display:none}.order-summary>h2{grid-column:1}.summary-material{grid-column:1;font-size:12px;color:var(--muted);display:flex;gap:8px;align-items:center}.order-summary dl{grid-column:2/4;grid-row:1/3;margin:0;display:flex;gap:35px;justify-content:flex-end}dl>div{display:flex;flex-direction:column;gap:5px}dt{font-size:11px;color:var(--muted)}dd{font:600 20px ui-monospace,Consolas,monospace;margin:0}.summary-note{grid-column:1/-1;font-size:11px;color:var(--muted);padding-bottom:18px;border-bottom:1px solid var(--line);margin-bottom:4px}.order-summary>label:first-of-type{grid-column:1}.order-summary>label:nth-of-type(2){grid-column:2/4}.order-summary textarea{height:42px;min-height:42px;resize:vertical}.order-summary>.button{grid-column:3;grid-row:6;justify-self:end}.order-summary>#order-error{grid-column:1/-1}.download{background:transparent;border:0;padding:5px 0;color:var(--ink);text-decoration:underline;text-underline-offset:3px;font-size:12px;justify-self:start}.draft-note{font-size:11px;color:var(--muted);grid-column:1/3;grid-row:6;align-self:center}.muted-button{color:var(--muted)}#save-status{grid-column:1/-1;margin:0}.quote-section{background:var(--surface);border:1px solid var(--line);border-radius:6px;padding:24px;margin-bottom:0}.quote-tools{display:flex;gap:10px;flex-wrap:wrap}.request-reference{font:12px ui-monospace,Consolas,monospace;color:var(--accent);margin:18px 0;overflow-wrap:anywhere}.message-preview{border-top:1px solid var(--line);padding-top:14px;margin-top:18px}.message-preview summary{font-size:12px;color:var(--muted);cursor:pointer}.message-preview pre{font:12px/1.7 ui-monospace,Consolas,monospace;white-space:pre-wrap;overflow-wrap:anywhere;max-height:260px;overflow:auto;padding:16px;background:var(--panel);border-radius:4px}.received-quote{margin-top:24px;border-top:1px solid var(--line);padding-top:24px}.received-quote>p,.cut-ready>p{font-size:13px;color:var(--muted);margin:8px 0 18px}.quote-fields{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:700px}.received-quote>.inline-check{margin:20px 0}.cut-ready{background:var(--soft);border-left:3px solid var(--accent);padding:20px;margin-top:20px}.flow-status{font-size:13px;color:var(--accent);margin:20px 0}.order-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:16px;color:var(--muted);font-size:11px;margin-top:30px;padding:24px 0 32px;border-top:1px solid var(--line)}
@media(max-width:1100px){.customer-grid{grid-template-columns:1fr 1fr}.measurement-bench{grid-template-columns:minmax(0,1fr) 245px;gap:16px}.measurement-table th:nth-child(6){width:14%}.measurement-table th:last-child{width:70px}.measurement-table th,.measurement-table td{padding:11px 6px}.draft-row td{padding:9px 4px}.edge-workspace{padding:14px}.row-actions button{min-width:25px;padding:0 4px}.order-summary dl{gap:24px}}
@media(max-width:800px){.measurement-bench{grid-template-columns:1fr}.edge-workspace{max-width:380px;width:100%}.edge-copy{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.edge-copy h3,.edge-copy>p:not(.edge-status){grid-column:1/-1}.edge-presets{margin:4px 0 14px}.edge-status{margin:9px 0}.measurement-table th:nth-child(6){width:17%}.order-summary{grid-template-columns:1fr 1fr}.order-summary dl{grid-column:2;gap:16px;flex-wrap:wrap}.order-summary>label:nth-of-type(2){grid-column:2}.order-summary>.button{grid-column:2}.draft-note{grid-column:1}.intro-note{display:none}}
@media(max-width:540px){.order-header{min-height:70px;padding:16px;gap:12px}.order-header nav{display:none}.header-tools{margin-left:auto}.logo{width:175px}.order-main{padding:0 16px}.intro{padding:26px 0 20px}h1{font-size:27px}.intro-copy{font-size:13px}.progress{gap:0;justify-content:space-between;font-size:11px}.progress li{gap:7px}.customer-grid{gap:16px 12px}.customer-name,.customer-decor{grid-column:1/-1}.material-options{gap:4px}.material-options label>span,.thickness-options label>span{font-size:11px;padding:8px 5px}.section-heading h2{font-size:17px}.measurement-table{background:transparent}.measurement-table thead{display:none}.measurement-table tbody,.measurement-table tfoot{display:block}.measurement-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:var(--surface);border-bottom:1px solid var(--line);padding:12px;gap:10px;margin-bottom:10px;border-radius:5px}.measurement-table td{border:0;padding:0;min-width:0}.measurement-table td:first-child{display:none}.measurement-table td:nth-child(2){grid-column:1/-1}.measurement-table td:nth-child(3),.measurement-table td:nth-child(4),.measurement-table td:nth-child(5){grid-column:auto}.measurement-table td:nth-child(6){grid-column:1/3;align-self:center}.measurement-table td:nth-child(7){grid-column:3}.measurement-table .draft-row{background:var(--soft);border:1px solid var(--line)}.part-number::before{content:attr(data-label);display:block;font:11px 'Segoe UI',sans-serif;color:var(--muted);margin-bottom:4px}.part-row.is-editing td{background:transparent}.part-row.is-editing{outline:1px solid var(--accent)}.draft-row input{min-height:44px;font-size:16px}.mobile-label{display:block;font-size:11px}.row-actions{justify-content:flex-end}.row-actions button{height:36px;min-width:35px}.row-add{min-height:44px}.list-footer{font-size:11px}.order-summary{padding:18px;display:flex;flex-direction:column;gap:18px}.order-summary dl{width:100%;justify-content:space-between;gap:10px}.order-summary dl>div{gap:6px}dd{font-size:17px}.order-summary>label{width:100%}.summary-note{padding-bottom:14px}.order-summary>.button{width:100%}.order-summary>h2{font-size:18px}.summary-material{margin-top:-10px}.download{padding:7px 0}.draft-note{order:1}.quote-section{padding:18px}.quote-fields{grid-template-columns:1fr;gap:16px}.quote-fields input{font-size:16px}.order-footer{display:block}.order-footer>*{display:block;margin-bottom:8px}.customer-grid input,.customer-grid select{font-size:16px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
.service-navigation{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:12px;color:var(--muted);margin-top:24px}

.button,.row-add,.row-actions button,.edge-presets button,.header-tools button,.edge{transition:background .2s,color .2s,border-color .2s,transform .2s,box-shadow .2s}
.button:hover,.row-add:hover{transform:scale(1.04);box-shadow:0 8px 20px -10px var(--button)}
.button.secondary:hover,.row-actions button:hover,.edge-presets button:hover,.header-tools button:hover,.edge:not([aria-pressed="true"]):hover{background:var(--button);border-color:var(--button);color:var(--button-ink);transform:scale(1.04);filter:none}
@media (prefers-reduced-motion:reduce){.button:hover,.row-add:hover,.button.secondary:hover,.row-actions button:hover,.edge-presets button:hover,.header-tools button:hover,.edge:hover{transform:none}}

/* Step-by-step order flow: one panel at a time, with a clickable progress rail. */
.progress{gap:8px;padding:0;border:0;counter-reset:none}
.progress li{flex:1;min-width:0}
.progress button{display:flex;align-items:center;gap:10px;width:100%;padding:12px 4px 14px;background:none;border:0;border-bottom:2px solid var(--line);color:var(--muted);font-size:13px;text-align:left}
.progress button:disabled{cursor:default;opacity:.55}
.progress button span{display:inline-flex;justify-content:center;align-items:center;flex:none;width:26px;height:26px;border:1px solid var(--line);border-radius:50%;background:var(--surface);font:600 12px ui-monospace,Consolas,monospace}
.progress [aria-current="step"] button{color:var(--accent);border-bottom-color:var(--accent)}
.progress [aria-current="step"] button span{background:var(--button);border-color:var(--button);color:var(--button-ink)}
.progress .is-done button{color:var(--ink);border-bottom-color:var(--ink)}
.progress .is-done button span{font-size:0;border-color:var(--ink)}
.progress .is-done button span::after{content:"✓";font-size:13px}
.progress button:not(:disabled):hover b{text-decoration:underline;text-underline-offset:3px}
.step-panel{background:var(--surface);border:1px solid var(--line);border-radius:8px;padding:28px;margin-bottom:16px;transition:opacity .3s,filter .3s,border-color .3s}
.step-panel.enter-forward{animation:step-forward .3s ease-out}
.step-panel.enter-back{animation:step-back .3s ease-out}
.step-panel .section-heading{align-items:flex-start;margin-bottom:24px}
.step-badge{flex:none;display:inline-flex;justify-content:center;align-items:center;width:26px;height:26px;font:600 12px ui-monospace,Consolas,monospace;color:var(--accent);background:var(--soft);border-radius:50%;margin-top:0}
.step-lead{font-size:13px;color:var(--muted);margin-top:4px;max-width:70ch}
.contact-grid{display:grid;grid-template-columns:repeat(2,minmax(0,340px));gap:20px}
.contact-grid input{min-height:48px;font-size:16px}
.material-grid{display:grid;gap:22px;max-width:640px}
.material-grid .material-options label>span,.material-grid .thickness-options label>span{min-height:52px;font-size:14px}
.step-nav{display:flex;justify-content:flex-end;gap:10px;margin-top:28px;padding-top:20px;border-top:1px solid var(--line)}
.step-nav .button{min-width:140px}
.measurements{padding-bottom:28px;border-bottom:1px solid var(--line)}
.measurements .measurement-table{background:transparent}
.band-thickness{margin:0 0 12px}
.band-thickness legend{font-weight:600;color:var(--ink)}
.band-thickness .thickness-options label>span{min-height:38px}
.edge[data-band="0.8"]{box-shadow:inset 0 0 0 2px var(--button-ink)}
.edge i{font:600 11px ui-monospace,Consolas,monospace}
.band-split{display:block;font:400 10px ui-monospace,Consolas,monospace;color:var(--muted);margin-top:4px}
.summary-customer{grid-column:1;font-size:12px;color:var(--ink);overflow-wrap:anywhere}
.summary-customer:empty{display:none}
@keyframes step-forward{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}
@keyframes step-back{from{opacity:0;transform:translateX(-24px)}to{opacity:1;transform:none}}
@media(max-width:800px){.step-panel{padding:20px}.contact-grid{grid-template-columns:1fr}.band-thickness{grid-column:1/-1}}
@media(max-width:540px){.step-panel .unit{display:none}.progress button{flex-direction:column;align-items:flex-start;gap:6px;font-size:11px;padding:10px 0 12px}.progress b{font-weight:500}.step-panel{padding:16px}.step-panel.measurements{padding:16px 12px}.step-nav .button{width:100%}}
@media(prefers-reduced-motion:reduce){.step-panel.enter-forward,.step-panel.enter-back{animation:none}.step-panel{transition:none}}
