:root{--ink:#282a25;--muted:#77796f;--line:#e7e5dc;--paper:#f6f5ef;--white:#fff;--green:#586e56;--dark:#30352e;--soft:#edf0e9;--gold:#e9c778;--font:system-ui,-apple-system,"Segoe UI",sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font:14px var(--font)}.topbar{position:sticky;top:0;z-index:5;height:68px;padding:0 26px;display:flex;align-items:center;justify-content:space-between;background:#fff;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-size:18px;font-weight:800;letter-spacing:-.7px}.brand-mark{width:31px;height:31px;border-radius:9px;display:grid;place-items:center;background:var(--green);color:#fff}.brand small{margin-left:7px;color:#8b8d82;font-size:9px;letter-spacing:1.25px}.top-actions{display:flex;align-items:center;gap:8px}.save-status{font-size:10px;color:var(--muted);margin-right:6px}.button{border:0;border-radius:8px;padding:10px 14px;font:600 11px var(--font);cursor:pointer;transition:.15s}.button:hover{filter:brightness(.97);transform:translateY(-1px)}.button:disabled{opacity:.45;cursor:default;transform:none}.button-quiet{background:#f3f2ed;color:#41443d}.button-dark{background:var(--dark);color:#fff}.button-accent{background:var(--green);color:#fff}.shell{display:grid;grid-template-columns:minmax(340px,430px) minmax(0,1fr);gap:18px;max-width:1900px;margin:0 auto;padding:18px}.panel{background:#fff;border:1px solid #eae8e1;border-radius:12px;box-shadow:0 2px 7px #22220805}.setup{position:sticky;top:82px;align-self:start;max-height:calc(100vh - 98px);overflow:auto;padding:20px 19px}.eyebrow{color:#898b81;font-size:9px;font-weight:700;letter-spacing:1.3px}.project-name{display:block;width:100%;margin:4px 0 15px;padding:0;border:0;outline:0;background:transparent;color:var(--ink);font:700 21px var(--font);letter-spacing:-.5px}.flowline{display:flex;align-items:center;gap:8px;padding:9px 0 15px;border-bottom:1px solid #efede7}.flowline>i{height:1px;flex:1;background:#e7e5dc}.flow-step{display:flex;align-items:center;gap:5px;white-space:nowrap;color:#9a9b92;font-size:9px}.flow-step:first-child{color:var(--green)}.flow-step b{font-weight:600}.form-section{padding:16px 0;border-bottom:1px solid #efede7}.form-section:last-child{border-bottom:0;padding-bottom:0}.form-section h2{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:13px}.form-section h2>span,.small-step{width:23px;height:23px;display:grid;place-items:center;flex:0 0 23px;border-radius:7px;background:var(--soft);color:var(--green);font-size:9px;font-weight:700}.section-help{margin:-3px 0 10px;color:#8b8d82;font-size:9px;line-height:1.45}.field-grid{display:grid;gap:9px}.field-grid.two{grid-template-columns:1fr 1fr}.field-grid label,.measure-grid label{display:grid;align-content:start;gap:5px;color:#73766c;font-size:9px;font-weight:500}.field-grid select,.field-grid input,.measure-grid input{width:100%;min-width:0;height:34px;padding:0 9px;border:1px solid #e4e2da;border-radius:6px;background:#fff;color:#34372f;font:500 11px var(--font)}.field-grid label small{font-size:8px;font-weight:400;color:#999b91;line-height:1.3}.measure-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}.finishing-options{margin-top:14px;border-top:1px solid #f0eee8;padding-top:10px}.finishing-options summary,.round-details summary{cursor:pointer;color:#5b5f55;font-size:10px;font-weight:600}.finish-grid{margin-top:11px}.full-button{width:100%;display:flex;align-items:center;justify-content:space-between;margin-top:12px}.calculation-message{display:none;margin-top:10px;padding:9px 10px;border-radius:7px;background:#f8f1e3;color:#796941;font-size:9px;line-height:1.45}.calculation-message.visible{display:block}.calculation-message.error{background:#f8e9e5;color:#8e4d3d}.workarea{display:grid;align-content:start;gap:14px;min-width:0}.summary-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.summary-card{display:grid;gap:5px;padding:13px 15px;border:1px solid #e9e7df;border-radius:10px;background:#fff}.summary-card span{color:#8a8c82;font-size:8px;font-weight:700;letter-spacing:.8px}.summary-card b{font-size:19px;letter-spacing:-.4px}.summary-card small{color:#8a8c82;font-size:9px}.preview-panel,.plan-panel,.instructions-panel{padding:18px}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.panel-heading h1,.panel-heading h2{margin:4px 0 0;font-size:16px;letter-spacing:-.2px}.plan-pill{padding:6px 9px;border-radius:20px;background:#eff1eb;color:#697365;font-size:8px;white-space:nowrap}.preview-grid{display:grid;grid-template-columns:minmax(0,1fr) 245px;gap:16px;align-items:start}.garment-view{min-width:0;border-radius:9px;background:#fafaf7;border:1px solid #efeee8;overflow:auto;text-align:center}.garment-view canvas{display:block;width:min(100%,680px);height:auto;max-height:68vh;margin:0 auto;touch-action:none}.canvas-caption{display:flex;justify-content:space-between;padding:8px 10px;border-top:1px solid #eeece5;color:#898b81;font-size:8px}.motif-tools{padding:4px 0}.motif-step{display:flex;gap:8px;align-items:flex-start}.motif-step b{font-size:11px}.motif-step p{margin:4px 0 11px;color:#85877d;font-size:9px;line-height:1.45}.motif-upload{min-height:85px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px dashed #d7d9cf;border-radius:8px;background:#fbfbf8;color:#62665c;cursor:pointer}.motif-upload:hover{border-color:#94a08a;background:#f8faf6}.motif-upload>span{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;background:#e9eee5;color:var(--green);font-size:17px}.motif-upload b{font-size:10px}.motif-upload small{font-size:8px;color:#92948b}.motif-size-fields{margin-top:10px}.motif-size-fields input{height:30px}.placement-readout{display:grid;gap:4px;margin-top:11px;padding:10px;border-radius:7px;background:#f5f4ee}.placement-readout span{color:#85877d;font-size:8px}.placement-readout b{font-size:11px}.placement-readout small{color:#85877d;font-size:8px}.swatches{display:flex;flex-wrap:wrap;gap:5px;margin-top:10px}.swatch-chip{display:flex;align-items:center;gap:5px;border:1px solid #eeece5;border-radius:5px;padding:4px 6px;color:#62655b;font-size:8px}.swatch-chip i{width:13px;height:13px;border:1px solid #ddd;border-radius:2px}.motif-note{margin:10px 0;color:#888a80;font-size:8px;line-height:1.45}.plan-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.plan-stat{padding:9px;border-radius:7px;background:#f8f8f4}.plan-stat span{display:block;color:#888a80;font-size:8px}.plan-stat b{display:block;margin-top:3px;font-size:12px}.round-details{margin-top:13px;padding-top:11px;border-top:1px solid #efede7}.round-table{max-height:390px;overflow:auto;margin-top:10px}.round-table table{width:100%;border-collapse:collapse;font-size:9px}.round-table th,.round-table td{padding:6px 7px;border-bottom:1px solid #f0eee8;text-align:left}.round-table th{position:sticky;top:0;background:#f8f7f2;color:#74776d;font-size:8px}.instructions{display:grid;gap:11px}.instruction-block{padding:11px 12px;border:1px solid #efede7;border-radius:8px}.instruction-block h3{margin:0 0 6px;font-size:11px}.instruction-block p,.instruction-block li{color:#5e6259;font-size:9px;line-height:1.55}.instruction-block p{margin:4px 0}.instruction-block ol{margin:5px 0;padding-left:18px}.warning-text{color:#896f3c!important}.page-footer{display:flex;justify-content:space-between;padding:3px 2px 9px;color:#92948a;font-size:9px}.page-footer a{color:var(--green);text-decoration:none}.toast{position:fixed;z-index:10;left:50%;bottom:22px;transform:translate(-50%,12px);opacity:0;padding:10px 15px;border-radius:8px;background:#30352e;color:#fff;font-size:10px;pointer-events:none;transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.print-page{display:none}
@media(max-width:1100px){.shell{grid-template-columns:360px minmax(0,1fr);padding:12px;gap:12px}.preview-grid{grid-template-columns:1fr}.motif-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px}.motif-step,.motif-note,.placement-readout,.swatches{grid-column:1/-1}.motif-upload{min-height:70px}.summary-row{grid-template-columns:repeat(3,1fr)}}
@media(max-width:780px){.topbar{padding:0 12px;height:58px}.brand small,.save-status{display:none}.top-actions{gap:4px}.top-actions .button{padding:8px 9px;font-size:9px}.shell{display:flex;flex-direction:column;padding:10px}.setup{position:static;max-height:none;order:1}.workarea{order:2}.summary-row{grid-template-columns:repeat(3,1fr)}.summary-card{padding:10px}.summary-card b{font-size:16px}.plan-summary{grid-template-columns:1fr 1fr}.preview-grid{grid-template-columns:1fr}.motif-tools{display:grid;grid-template-columns:1fr 1fr}.garment-view canvas{max-height:none}}
@media(max-width:450px){.top-actions #saveProject{display:none}.field-grid.two,.measure-grid{gap:7px}.setup,.preview-panel,.plan-panel,.instructions-panel{padding:14px}.summary-card span{font-size:7px}.summary-card small{font-size:8px}.panel-heading{align-items:flex-start}.plan-pill{white-space:normal;text-align:center}.motif-tools{grid-template-columns:1fr}.motif-upload,.motif-step,.motif-note,.placement-readout,.swatches{grid-column:auto}}
#vNeckOptions[hidden]{display:none}.chart-intro{margin:0 0 9px;color:#85877d;font-size:9px}.chart-empty-state{padding:20px;text-align:center;border:1px dashed #e0dfd7;border-radius:8px;color:#8a8c82;font-size:10px}.chart-scroll{width:100%;max-width:100%;max-height:70vh;overflow-y:auto;overflow-x:hidden;padding:8px 3px 12px}.stitch-chart{display:grid;align-content:start;width:max-content;max-width:100%;--stitch-cell-h:18px;--stitch-cell-w:23px}.stitch-chart .axis-corner,.stitch-chart .stitch-axis{display:grid;place-items:center;height:19px;color:#85877d;font-size:8px}.stitch-chart .axis-corner{position:sticky;left:0;z-index:2;background:#fff}.stitch-chart .stitch-axis{width:var(--stitch-cell-w)}.stitch-chart .row-axis{position:sticky;left:0;z-index:1;width:30px;height:var(--stitch-cell-h);padding-right:7px;justify-items:end;background:#fff}.stitch-cell{width:var(--stitch-cell-w);height:var(--stitch-cell-h);display:grid;place-items:center;border:.5px solid #fff9;font:7px var(--font);padding:0}.chart-legend{display:flex;flex-wrap:wrap;gap:7px;padding-top:9px;border-top:1px solid #efede7}.chart-legend-item{display:flex;align-items:center;gap:6px;padding:5px 7px;border:1px solid #eeece5;border-radius:5px;color:#62655b;font-size:8px}.chart-legend-item i{width:15px;height:15px;display:grid;place-items:center;border:1px solid #ddd;border-radius:2px;font-size:9px;font-style:normal;color:#20231f}.stitch-cell,.chart-legend-item i{-webkit-print-color-adjust:exact;print-color-adjust:exact}
@media print{.chart-scroll{overflow:visible}.stitch-chart{--stitch-cell-h:var(--print-cell-h);--stitch-cell-w:var(--print-cell-w)}.stitch-chart .axis-corner,.stitch-chart .stitch-axis{height:4mm;font-size:6pt}.stitch-chart .row-axis{width:9mm;height:var(--print-cell-h)}.stitch-cell{width:var(--print-cell-w);height:var(--print-cell-h);font-size:5pt}}
@media print{@page{size:A4 portrait;margin:12mm}body{background:#fff}.topbar,.setup,.page-footer,.motif-tools,.round-details,.toast{display:none!important}.shell,.workarea{display:block!important;max-width:none;padding:0;margin:0}.summary-row{margin:0 0 8mm}.panel{box-shadow:none;border:0;padding:0;margin:0 0 7mm}.preview-grid{display:block}.garment-view{border:0}.garment-view canvas{width:100%;max-height:115mm}.canvas-caption{display:none}.print-page{display:block}.instruction-block{break-inside:avoid}.instructions-panel{break-before:page}.plan-panel{break-inside:avoid}.print-page h1{font-size:18pt}}
