:root{color-scheme:light;--paper:#f5f3ee;--card:#fffefa;--ink:#2e352d;--muted:#727669;--line:#dedfd4;--olive:#677052;--olive-light:#e9eddf;--wood:#bfa07a;--wood-light:#dfcbb0;--danger:#a54f39;--font:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:15px;line-height:1.5}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,summary:focus-visible{outline:3px solid #8a976c;outline-offset:4px}button{color:inherit}button:disabled{cursor:not-allowed;opacity:.5}button, input{touch-action:manipulation}a{color:inherit;text-decoration:none}.topbar{height:80px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 5.5%;gap:20px}.brand{font-size:12px;letter-spacing:2.8px;font-weight:700;display:flex;align-items:center;gap:13px}.brand-mark{display:inline-block;width:23px;height:26px;border:4px solid var(--olive);transform:rotate(-6deg);flex:none}.topbar-note{font-family:Georgia,serif;font-style:italic;color:var(--muted);font-size:15px}main{max-width:1336px;padding:44px 42px 0;margin:0 auto}.intro{display:flex;align-items:center;justify-content:space-between;margin-bottom:30px;gap:20px}.eyebrow{font-size:10px;letter-spacing:1.8px;line-height:1.6;font-weight:700;color:var(--olive);margin:0 0 8px}h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:clamp(34px,4vw,47px);line-height:1.16;letter-spacing:-1.8px;margin:0 0 12px}.subtitle{font-size:15px;color:var(--muted);margin:0}h2{font-size:18px;line-height:1.3;font-weight:600;letter-spacing:-.4px;margin:0}h3{margin:0;font-size:14px;font-weight:600}.quiet-button{border:0;background:transparent;padding:10px 0 10px 15px;font-size:13px;color:var(--muted);white-space:nowrap}.quiet-button span{font-size:20px;vertical-align:-1px;margin-right:3px}.toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.style-switch{display:flex;border:1px solid var(--line);border-radius:8px;padding:4px;background:#ecece4;gap:4px}.style-switch button{border:0;border-radius:5px;padding:12px 19px;display:flex;align-items:center;gap:9px;background:transparent;color:var(--muted);font-size:13px;font-weight:600;transition:background .15s,color .15s}.style-switch svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.5}.style-switch button[aria-pressed=true]{background:var(--card);color:var(--ink);box-shadow:0 1px 4px #26342310}.unit-switch{display:flex;border:1px solid var(--line);border-radius:7px;padding:3px;background:#ecece4}.unit-switch button{border:0;background:transparent;border-radius:4px;padding:8px 14px;font-size:12px;min-width:45px;font-weight:600}.unit-switch button[aria-pressed=true]{background:var(--ink);color:#fff}.unit-notice{margin:0;color:var(--danger);font-size:13px}.unit-notice:not(:empty){margin:-8px 0 16px}.workbench{display:grid;grid-template-columns:minmax(310px,360px) minmax(0,1fr);gap:24px;align-items:start}.input-panel,.drawing-card,.cut-card{border:1px solid var(--line);background:var(--card);border-radius:10px;overflow:hidden}.input-section{padding:26px 24px;border-bottom:1px solid var(--line)}.input-section:last-child{border-bottom:0}.section-title{display:flex;align-items:center;gap:10px}.section-title h2{font-size:16px}.step-number{font-size:10px;font-weight:700;width:24px;height:24px;border:1px solid var(--line);display:grid;place-items:center;border-radius:50%;color:var(--olive)}.section-help{margin:12px 0 20px;font-size:12px;color:var(--muted);line-height:1.6}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px 12px}.field{min-width:0}.field.full-width{grid-column:1 / -1}.field label{display:block;font-size:12px;font-weight:600;margin-bottom:7px}.input-wrap{position:relative}.input-wrap input{width:100%;height:43px;padding:9px 37px 9px 11px;color:var(--ink);border:1px solid #d6d9cd;border-radius:5px;background:white;font-size:16px;font-variant-numeric:tabular-nums;outline:none;transition:box-shadow .15s,border-color .15s}.input-wrap input:focus{border-color:var(--olive);box-shadow:0 0 0 3px #67705218}.input-wrap input[aria-invalid=true]{border-color:var(--danger);background:#fff8f5}.input-unit{position:absolute;right:11px;top:11px;color:#85897e;font-size:12px;pointer-events:none}.field-help{font-size:10px;color:var(--muted);line-height:1.45;margin:6px 0 0}.field-error{color:var(--danger);font-size:11px;line-height:1.4;margin:5px 0 0}.profile-note{background:#f0f1e9;border-radius:5px;padding:11px 12px;margin-top:20px;font-size:11px;color:#636b57;line-height:1.6}.profile-note strong{font-weight:600;color:#424c37}.material-section .field-grid{margin-top:19px}.check-label{display:flex;align-items:center;gap:8px;font-size:12px;margin-top:17px;cursor:pointer}.check-label input{accent-color:var(--olive);width:15px;height:15px;margin:0}.small-help{font-size:11px;color:var(--muted);margin:8px 0 0;line-height:1.6}.output-panel{min-width:0}.output-panel section+section{margin-top:20px}.card-heading{padding:24px 26px 0;display:flex;align-items:center;justify-content:space-between;gap:15px}.live-badge{font-size:10px;color:var(--olive);display:flex;align-items:center;gap:5px;white-space:nowrap}.live-badge span{width:5px;height:5px;background:#7b8a5e;border-radius:50%}.summary-grid{display:grid;grid-template-columns:1.35fr 1.35fr .75fr;gap:8px;margin:23px 26px 0;padding-bottom:21px;border-bottom:1px solid var(--line)}.summary-grid>div{padding-left:13px;border-left:1px solid var(--line);min-width:0}.summary-grid>div:first-child{padding-left:0;border-left:0}.summary-grid span{font-size:10px;color:var(--muted);display:block;margin-bottom:7px}.summary-grid strong{font-size:16px;font-weight:550;letter-spacing:-.3px;font-variant-numeric:tabular-nums}.drawing-tabs{display:flex;align-items:center;gap:18px;padding:14px 26px 0}.drawing-tabs button{padding:5px 0 7px;border:0;border-bottom:2px solid transparent;background:transparent;font-size:11px;color:var(--muted);font-weight:600;white-space:nowrap}.drawing-tabs button[aria-pressed=true]{color:var(--ink);border-bottom-color:var(--olive)}.drawing-tabs span{font-size:9px;color:#979b8f;margin-left:auto;text-align:right}.svg-wrap{padding:3px 16px 1px;background:radial-gradient(ellipse at center,#fffefa 0%,#faf9f400 70%);line-height:0}.svg-wrap svg{display:block;width:100%;height:auto;max-height:330px;overflow:visible}.svg-wrap text{font-family:var(--font);fill:#606a57;font-size:12px}.svg-wrap .dim-label{font-weight:600;font-size:13px;fill:#48533e}.svg-wrap .diagram-title{font-size:10px;letter-spacing:1.5px;fill:#929886}.svg-wrap .art-label{fill:#77826b;font-family:Georgia,serif;font-size:22px;font-style:italic}.svg-wrap .fine{stroke:#a8b096;stroke-width:1;fill:none}.svg-wrap .dimension{stroke:#889676;stroke-width:1;fill:none}.svg-wrap .leader{stroke:#8a957b;stroke-width:1;fill:none;stroke-dasharray:3 3}.svg-wrap .wood{fill:#cfb595;stroke:#ae916d;stroke-width:1}.svg-wrap .canvas{fill:#e4e8d9;stroke:#b9c2a5;stroke-width:1}.diagram-caption{border-top:1px solid var(--line);padding:12px 26px;font-size:11px;color:var(--muted);background:#fafbf5;line-height:1.6}.diagram-caption strong{color:#596548;font-weight:600}.cut-profile{padding:0 26px;margin:14px 0 18px;font-size:12px;color:var(--muted)}.print-button{display:flex;align-items:center;gap:6px;border:1px solid #d7dbcd;border-radius:5px;background:#fffefa;padding:7px 12px;font-size:11px;font-weight:600}.print-button:hover{background:var(--olive-light)}.print-button svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.2}.table-scroll{overflow-x:auto;margin:0 26px}table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:13px}th{font-size:10px;font-weight:500;color:var(--muted);background:#f3f4ec;padding:9px 10px}th:first-child{border-radius:4px 0 0 4px}th:last-child{border-radius:0 4px 4px 0}td{padding:14px 10px;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}td:nth-child(n+3){font-weight:600}td:nth-child(2){color:var(--muted)}.tip-key{display:flex;align-items:center;justify-content:flex-start;gap:16px;padding:14px 27px}.tip-key svg{width:139px;height:34px;fill:#e8d9c5;stroke:#b89b76;stroke-width:1}.tip-key p{font-size:10px;color:var(--muted);line-height:1.6;margin:0}.rounding-note{font-size:10px;color:#858c7c;line-height:1.6;margin:16px 26px 20px}.stock-card{padding:23px 26px;background:#e9edde;border:1px solid #d5ddc5;border-radius:10px}.stock-card h2{font-size:17px}.stock-row{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin-top:15px}.stock-row span{font-size:12px;color:#68735b}.stock-row strong{font-size:21px;font-weight:500;letter-spacing:-.5px}.stock-row small{font-size:11px;font-weight:400;letter-spacing:0;color:#6a775a;margin-left:7px}.stock-card>p{font-size:10px;line-height:1.6;color:#6c765d;margin:15px 0 0}.stock-card .stock-limit{padding-top:13px;border-top:1px solid #cfd7bf}.notice{font-size:12px;line-height:1.6;background:#fff5e5;padding:14px 17px;border:1px solid #e7d8ba;border-radius:6px;margin-top:15px}#error-panel{border:1px solid #e4cdc3;border-radius:10px;padding:35px;background:#fff9f4;min-height:330px}#error-panel h2{margin:17px 0 10px}#error-panel p{font-size:13px;color:var(--muted)}#error-list{padding-left:18px;font-size:12px;line-height:1.8;color:var(--danger)}.error-symbol{display:grid;place-items:center;border:1px solid #d7b9a7;border-radius:50%;width:33px;height:33px;color:var(--danger);font-family:Georgia,serif;font-size:22px}.guide{display:grid;grid-template-columns:1fr 1.6fr;gap:55px;margin-top:54px;padding:40px 0 50px;border-top:1px solid var(--line)}.guide h2{font-family:Georgia,serif;font-size:29px;font-weight:400;line-height:1.25;letter-spacing:-.6px}.guide details{border-bottom:1px solid var(--line);padding:14px 0}.guide details:first-child{padding-top:0}.guide summary{font-size:13px;font-weight:550;cursor:pointer;list-style:none;display:flex;justify-content:space-between;gap:15px}.guide summary::-webkit-details-marker{display:none}.guide summary:after{content:'+';color:var(--olive)}.guide details[open] summary:after{content:'−'}.guide details p{font-size:12px;color:var(--muted);line-height:1.7;margin:12px 25px 0 0}footer{border-top:1px solid var(--line);padding:25px 0 35px;display:flex;gap:10px;align-items:center;font-size:10px;color:#919586}footer .small{width:11px;height:13px;border-width:2px}footer span:last-child{margin-left:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.no-js{position:fixed;inset:auto 20px 20px;background:#fff5e5;padding:20px;border:1px solid #c9ad80;z-index:10}[hidden]{display:none!important}
@media(min-width:1400px){main{padding-top:50px}.workbench{gap:28px}}@media(max-width:1000px){main{padding:32px 26px 0}.workbench{grid-template-columns:310px minmax(0,1fr);gap:18px}.input-section{padding:23px 19px}.card-heading{padding:23px 20px 0}.live-badge{display:none}.summary-grid{margin:20px 20px 0;grid-template-columns:1fr 1fr}.summary-grid>div:last-child{padding:10px 0 0;border-left:0;grid-column:1 / -1}.summary-grid>div:last-child span{display:inline;margin-right:8px}.summary-grid>div:last-child strong{font-size:13px}.summary-grid strong{font-size:14px}.drawing-tabs{padding-left:20px;padding-right:20px;gap:13px}.drawing-tabs span{font-size:8px}.table-scroll{margin:0 20px}.cut-profile{padding:0 20px}.rounding-note{margin-left:20px;margin-right:20px}td,th{padding-left:7px;padding-right:7px}.stock-card{padding:21px 20px}.stock-row strong{font-size:19px}.stock-row small{display:block;margin-left:0;text-align:right}.guide{gap:35px;grid-template-columns:1fr 1.5fr}}
@media(max-width:760px){.topbar{height:65px;padding:0 22px}.topbar-note{display:none}.brand{font-size:10px;letter-spacing:2.2px}.brand-mark{width:20px;height:23px}main{padding:29px 18px 0}.intro{margin-bottom:24px;align-items:flex-start}.intro .eyebrow{font-size:9px}.intro h1{font-size:35px;letter-spacing:-1.3px;max-width:330px}.subtitle{font-size:13px;max-width:280px}.quiet-button{font-size:11px;margin-top:19px}.toolbar{gap:10px;margin-bottom:19px}.style-switch{flex:1;gap:2px;padding:3px}.style-switch button{justify-content:center;flex:1;padding:11px 8px;font-size:11px;gap:6px}.style-switch svg{width:16px;height:16px}.unit-switch{padding:3px}.unit-switch button{min-width:30px;padding:8px 8px;font-size:10px}.workbench{grid-template-columns:1fr;gap:21px}.input-panel{display:grid;grid-template-columns:1fr 1fr}.input-section{padding:21px 18px}.input-section:first-child{border-right:1px solid var(--line)}.input-section:nth-child(2){grid-column:2;grid-row:1 / 3;border-bottom:0}.input-section:last-child{grid-column:1}.input-section .field-grid{grid-template-columns:1fr}.input-section .field.full-width{grid-column:auto}.material-section .field-grid{grid-template-columns:1fr 1fr}.input-section .field-grid{gap:14px}.input-section .section-help{font-size:11px;margin-bottom:16px}.profile-note{margin-top:16px}.section-title h2{font-size:14px}.step-number{width:21px;height:21px;font-size:9px}.section-title{gap:7px}.field label{font-size:11px}.input-wrap input{height:41px;font-size:16px}.small-help{font-size:10px}.check-label{font-size:10px;align-items:flex-start}.summary-grid{grid-template-columns:1.3fr 1.3fr .7fr}.summary-grid>div:last-child{grid-column:auto;padding:0 0 0 13px;border-left:1px solid var(--line)}.summary-grid>div:last-child span{display:block;margin-right:0}.summary-grid>div:last-child strong{font-size:14px}.drawing-tabs span{font-size:9px}.card-heading{padding-top:21px}.svg-wrap{padding:8px 4px 3px}.svg-wrap svg{max-height:none}.stock-row strong{font-size:21px}.stock-row small{display:inline;margin-left:7px}.guide{grid-template-columns:1fr;gap:27px;margin-top:37px;padding:31px 0}.guide h2{font-size:27px}.guide h2 br{display:none}.guide details p{margin-right:0}footer{padding-bottom:26px;flex-wrap:wrap}footer span:last-child{font-size:9px}.rounding-note{font-size:10px}}
@media(max-width:440px){.intro h1{font-size:31px;max-width:255px}.input-panel{display:block}.input-section:first-child{border-right:0}.input-section:nth-child(2){border-bottom:1px solid var(--line)}.input-section .field-grid{grid-template-columns:1fr 1fr;gap:17px 13px}.input-section .field.full-width{grid-column:1 / -1}.input-section{padding:23px 21px}.section-title h2{font-size:16px}.section-help{font-size:12px!important}.field label{font-size:12px}.profile-note{font-size:11px}.small-help,.check-label{font-size:11px}.input-wrap input{height:44px;font-size:16px}.style-switch button{padding:11px 7px;font-size:10px}.style-switch svg{display:none}.summary-grid{gap:8px;grid-template-columns:1fr 1fr}.summary-grid>div:last-child{grid-column:1 / -1;padding:10px 0 0;border:0}.summary-grid>div:last-child span{display:inline;margin-right:8px}.summary-grid strong{font-size:15px}.drawing-tabs{gap:17px}.drawing-tabs span{max-width:115px;font-size:8px}.stock-row small{display:block;margin:0}.table-scroll{margin:0 14px}.card-heading{padding-left:20px;padding-right:20px}td{font-size:12px}.tip-key{gap:9px;padding-left:20px;padding-right:20px}.tip-key svg{width:116px}.diagram-caption{padding-left:20px;padding-right:20px}footer span:last-child{width:100%;margin-left:21px}.quiet-button{padding-left:0}}
@media print{*{-webkit-print-color-adjust:exact;print-color-adjust:exact}body{background:white;color:#222;font-size:11px}.topbar{padding:0;height:45px}.topbar-note,.intro,.toolbar,.unit-notice,.input-panel,.guide,footer,.drawing-tabs,.print-button,.live-badge,.rounding-note{display:none!important}main{max-width:none;padding:18px 0}.workbench{display:block}.drawing-card,.cut-card,.stock-card{break-inside:avoid;box-shadow:none}.card-heading{padding-top:15px}.card-heading h2{font-size:16px}.summary-grid{margin-top:14px;padding-bottom:14px;grid-template-columns:1fr 1fr 1fr}.summary-grid>div:last-child{grid-column:auto;border-left:1px solid var(--line);padding:0 0 0 13px}.summary-grid>div:last-child span{display:block}.svg-wrap svg{max-height:230px}.output-panel section+section{margin-top:15px}.table-scroll{overflow:visible}td{padding-top:9px;padding-bottom:9px}.stock-card{padding:15px 25px}.stock-row{margin-top:8px}.stock-row strong{font-size:16px}.stock-row small{display:inline}.stock-card>p{margin-top:8px}.stock-card .stock-limit{padding-top:8px}#results[hidden]{display:none!important}#error-panel{min-height:0}}

/* Plain-language profile controls keep the original workshop palette. */
.dimension-key{display:inline-grid;place-items:center;width:18px;height:18px;margin-right:5px;border-radius:50%;background:var(--olive-light);color:var(--olive);font-size:10px;vertical-align:1px}.profile-link{display:block;border:0;background:transparent;color:var(--olive);padding:0;margin:-8px 0 20px;font-size:11px;text-align:left;text-decoration:underline;text-underline-offset:3px}.auto-depth{margin-top:20px;border:1px solid #d8decc;border-radius:6px;background:#f5f7ed;padding:13px 12px;display:grid;grid-template-columns:1fr auto;gap:6px 10px;align-items:center}.auto-depth>span{font-size:11px;color:#5b674c}.auto-depth>strong{font-size:16px;font-weight:600}.auto-depth>p{grid-column:1 / -1;font-size:10px;color:var(--muted);margin:0;line-height:1.6}.profile-advanced{margin-top:17px;border-top:1px solid var(--line);padding-top:14px}.profile-advanced summary{cursor:pointer;font-size:11px;font-weight:600;color:var(--olive);line-height:1.5}.profile-advanced>.field-grid{margin-top:18px}.profile-advanced .override-field{margin-top:13px}.input-wrap input:disabled{background:#f0f1e9;color:#8b9181;border-color:#e0e3d7}.dimension-legend{display:flex;gap:7px 17px;flex-wrap:wrap;margin-top:10px}.dimension-legend span{display:inline-flex;align-items:center;font-size:10px;white-space:nowrap}.dimension-legend b{display:inline-grid;place-items:center;background:#e9eddf;color:#536245;border-radius:50%;font-size:9px;height:16px;width:16px;margin-right:5px}.svg-wrap .hidden-edge{fill:none;stroke:#6f795d;stroke-width:.9;stroke-dasharray:4 4}.cut-reference{font-size:11px;line-height:1.65;color:#636f55;margin:0 26px 17px;padding:10px 12px;border-radius:5px;background:#f1f4e9}.routing-summary{margin:0 26px 20px;border-top:1px solid var(--line);padding-top:15px}.routing-summary p{font-size:11px;line-height:1.65;color:var(--muted);margin:6px 0 0}.routing-summary strong{font-weight:600;color:#536245}.svg-wrap svg{max-height:360px}.drawing-tabs span{max-width:170px}.tip-key p{flex:1}.tip-key svg{flex-shrink:0}
@media(max-width:760px){.svg-wrap svg{max-height:none}.dimension-legend{gap:7px 12px}.profile-link{font-size:10px}.auto-depth{grid-template-columns:1fr}.auto-depth>p{grid-column:auto}.auto-depth>strong{font-size:17px}.profile-advanced summary{font-size:11px}}
@media(max-width:440px){.auto-depth{grid-template-columns:1fr auto}.auto-depth>p{grid-column:1 / -1}.cut-reference,.routing-summary{margin-left:20px;margin-right:20px}.field label{line-height:1.5}.dimension-key{margin-right:4px}}
@media print{.svg-wrap svg{max-height:265px}.dimension-legend{gap:5px 14px}.dimension-legend span{font-size:9px}.cut-reference{margin-bottom:11px}.routing-summary{margin-bottom:14px;padding-top:11px}.routing-summary p{font-size:10px}.tip-key{padding-top:10px;padding-bottom:10px}.rounding-note{display:block!important;font-size:9px;margin-top:9px}.drawing-card,.cut-card,.stock-card{break-inside:avoid}}

/* Lumber shopping stays distinct from the finished profile and strip-length estimate. */
.stock-switch{display:flex;gap:3px;padding:3px;border:1px solid var(--line);border-radius:6px;background:#eeefe7}.stock-switch button{flex:1;border:0;padding:9px 7px;border-radius:4px;font-size:11px;color:var(--muted);background:transparent}.stock-switch button[aria-pressed=true]{background:var(--card);color:var(--ink);box-shadow:0 1px 3px #26342314;font-weight:600}.milling-field{margin-top:17px}.buy-card{background:var(--card);border:1px solid #ced6bf;border-radius:10px;overflow:hidden}.buy-card .card-heading{align-items:flex-start}.plan-badge{font-size:9px;line-height:1.5;padding:5px 8px;background:#eef1e5;border-radius:4px;color:#6b755b;white-space:nowrap}.buy-body{padding:20px 26px 23px}.buy-line{padding:14px 16px;background:#e9edde;border-radius:6px;margin-bottom:8px;display:flex;gap:10px;align-items:baseline;flex-wrap:wrap}.board-count{font-size:10px;text-transform:uppercase;letter-spacing:.8px;color:#61704f;font-weight:600;white-space:nowrap}.buy-line strong{font-size:16px;font-weight:600;letter-spacing:-.3px;line-height:1.6}.buy-note{font-size:10px;line-height:1.7;color:var(--muted);margin:10px 0 0}.buy-finished{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:16px 0;margin:18px 0 0}.buy-finished>span{display:block;font-size:10px;color:var(--muted);margin-bottom:5px}.buy-finished>strong{font-size:13px;font-weight:600}.buy-finished p,.buy-milling,.buy-layout p{font-size:11px;line-height:1.7;color:#69745d;margin:8px 0 0}.buy-finished b,.buy-milling strong,.buy-layout strong{color:#46533b;font-weight:600}.buy-milling{margin-top:14px}.buy-layout{margin-top:19px}.buy-layout h3{font-size:12px}.buy-alternative{padding:10px 12px;background:#f5f6ef;border-radius:5px}.buy-warnings:empty{display:none}.buy-warnings p{font-size:10px;color:#8b6244;line-height:1.65;background:#fbf3e8;padding:10px 12px;border-radius:5px;margin:12px 0 0}.buy-allowances{border-top:1px solid var(--line);padding-top:13px;margin-top:17px}.buy-sources{font-size:9px;color:var(--muted);margin:13px 0 0;line-height:1.65}.buy-sources a{text-decoration:underline;text-underline-offset:2px}
@media(max-width:1000px){.buy-body{padding-left:20px;padding-right:20px}.plan-badge{display:none}.buy-line strong{font-size:15px}.stock-switch button{font-size:10px}}
@media(max-width:760px){.stock-switch{flex-wrap:wrap}.stock-switch button{flex-basis:100%}.buy-line strong{font-size:16px}}
@media(max-width:440px){.stock-switch{flex-wrap:nowrap}.stock-switch button{flex-basis:auto;font-size:11px}.buy-line{padding:12px}.buy-line strong{font-size:15px}.buy-body{padding-top:16px}}
@media print{.buy-card{break-inside:auto}.buy-body{padding-top:12px;padding-bottom:14px}.buy-line,.buy-finished,.buy-layout,.buy-milling,.buy-warnings p{break-inside:avoid}.buy-line{padding:9px 12px}.buy-line strong{font-size:14px}.buy-finished{padding:10px 0;margin-top:12px}.buy-finished p,.buy-milling,.buy-layout p{font-size:10px}.buy-layout{margin-top:12px}.buy-note,.buy-warnings p{font-size:9px}.buy-allowances{margin-top:12px;padding-top:10px}.buy-sources{font-size:8px}.plan-badge{display:none}}

/* Existing-stock workflow, with explicit orientation and separate inventory fit. */
.workflow-switch{display:flex;gap:5px;width:fit-content;padding:4px;background:#e9ebdf;border:1px solid var(--line);border-radius:7px;margin-bottom:8px}.workflow-switch button{border:0;background:transparent;color:var(--muted);padding:10px 16px;border-radius:4px;font-size:12px;font-weight:600}.workflow-switch button[aria-pressed=true]{background:var(--card);color:var(--ink);box-shadow:0 1px 3px #26342314}.workflow-help{font-size:12px;color:var(--muted);line-height:1.6;margin:0 0 23px}.control-label{font-size:11px;color:var(--olive);font-weight:600;margin:18px 0 8px}.choice-stack{display:grid;gap:6px}.choice-stack button{text-align:left;border:1px solid var(--line);border-radius:5px;background:#f8f8f1;padding:10px 11px;color:var(--muted);font-size:11px;line-height:1.45}.choice-stack button span{display:block;font-size:10px;font-weight:400;margin-top:3px}.choice-stack button[aria-pressed=true]{border-color:#8c9876;background:#eef1e5;color:#48563c;font-weight:600}.construction-controls{margin:14px 0 0}.construction-controls .control-label{margin-top:0}.calculated-tag{font-size:9px;font-weight:400;display:block;color:#778267;margin-top:3px}.owned-fit-card{background:#f0f3e7;border:1px solid #ced6bf;border-radius:10px;padding:23px 26px;margin-bottom:20px}.owned-fit-card h2{font-size:20px;line-height:1.35}.owned-fit-card p:not(.eyebrow){font-size:11px;line-height:1.7;color:#627054}.owned-fit-card strong{font-weight:600;color:#47553c}.orientation-result{border-top:1px solid #d4dcc8;padding-top:11px;margin-top:13px}.orientation-result>strong{font-size:11px}.orientation-result p{margin:5px 0 0}.orientation-result.selected{border-left:3px solid #8b9673;padding-left:10px}.svg-wrap .panel{fill:#c5ad8c;stroke:#978166;stroke-width:1}.input-wrap input:disabled{opacity:1}.owned-fit-card+.drawing-card{margin-top:20px}
@media(max-width:760px){.workflow-switch{width:100%}.workflow-switch button{flex:1;font-size:11px;padding:11px 8px}.choice-stack button{font-size:10px}.owned-fit-card{padding:20px}.construction-controls .choice-stack button{padding:9px}.workflow-help{font-size:11px}.material-section .choice-stack{margin-top:5px}}
@media print{.workflow-switch,.workflow-help{display:none!important}.owned-fit-card{break-inside:avoid;padding:15px 25px;margin-bottom:15px}.owned-fit-card h2{font-size:16px}.owned-fit-card p:not(.eyebrow){font-size:9px}.orientation-result{padding-top:7px;margin-top:8px}.orientation-result>strong{font-size:10px}}
.svg-wrap .gap-label{paint-order:stroke fill;stroke:#fbfbf6;stroke-width:5px;stroke-linejoin:round}

/* Individually measured stock, styled as quiet workshop cards. */
.board-entry{border:1px solid var(--line);border-radius:7px;padding:14px 12px;background:#f8f9f3;margin:12px 0}.board-entry-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:13px}.board-entry-heading h3{font-size:12px;color:var(--olive)}.remove-board{border:0;background:none;font-size:10px;color:var(--muted);padding:5px 0 5px 8px}.remove-board:hover:not(:disabled){color:var(--danger)}.board-entry .field-grid{gap:13px 10px}.board-entry .field label{font-size:11px;line-height:1.45}.optional-tag{display:block;font-size:9px;font-weight:400;color:var(--muted)}.add-board{width:100%;padding:10px 14px;border:1px dashed #9aa68b;border-radius:6px;background:#eff2e7;color:#536245;font-size:12px;font-weight:600}.add-board:hover{background:#e7ecdb}.add-board span{font-size:16px;margin-right:4px}.stock-exclusions{border-top:1px solid #d4dcc8;padding-top:10px}.board-entry .input-wrap input{padding-left:9px}
