:root{--ink:#282a25;--muted:#77796f;--line:#e8e5dc;--paper:#f8f7f2;--white:#fff;--green:#586e56;--green-dark:#3c5340;--coral:#e4a28d;--gold:#e7bd61;--soft:#f1efe7;--font:'DM Sans',sans-serif;--display:'Manrope',sans-serif}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:var(--font);font-size:14px}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:sticky;top:0;z-index:5}.brand{display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink);font:800 18px var(--display);letter-spacing:-.7px}.brand-mark{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:var(--green);color:#fff;font:700 16px var(--display)}.top-actions{display:flex;align-items:center;gap:9px}.save-status{font-size:11px;color:var(--muted);margin-right:8px}.button{border:0;border-radius:8px;padding:10px 15px;font:600 12px var(--font);cursor:pointer;transition:.15s}.button:hover{transform:translateY(-1px);filter:brightness(.97)}.button-quiet{background:#f5f4ef;color:#40423b}.button-dark{background:#30352e;color:#fff}.button-accent{background:var(--green);color:#fff}.app-shell{display:grid;grid-template-columns:255px minmax(0,1fr);min-height:calc(100vh - 68px)}.sidebar{background:#eeeee6;padding:34px 24px 22px;display:flex;flex-direction:column;min-height:calc(100vh - 68px);position:sticky;top:68px;align-self:start;height:calc(100vh - 68px)}.eyebrow{font-size:9px;font-weight:700;letter-spacing:1.45px;color:#8b8d82}.eyebrow span{margin-left:6px;color:var(--green);letter-spacing:.7px}.sidebar h1{font:700 28px/1.18 var(--display);letter-spacing:-1.2px;margin:17px 0 12px}.intro{font-size:12px;line-height:1.65;color:#73756d;margin:0 0 30px}.step-list{display:grid;gap:17px}.step{display:flex;align-items:center;gap:12px}.step>span{width:31px;height:31px;border-radius:50%;background:#dfe4d8;color:var(--green-dark);display:grid;place-items:center;font:700 10px var(--font)}.step div{display:grid;gap:3px}.step b{font-size:12px}.step small{font-size:10px;color:#8b8d82}.sidebar-note{border-top:1px solid #ddded5;margin-top:auto;padding-top:18px;display:flex;gap:9px;align-items:flex-start}.note-icon{color:#c07c5d;font-size:18px}.sidebar-note p{font-size:10px;line-height:1.55;color:#73756d;margin:2px 0}.sidebar-footer{font-size:8px;letter-spacing:1px;color:#8b8d82;margin-top:22px}.local-dot{display:inline-block;width:6px;height:6px;background:#72956d;border-radius:50%;margin-left:4px}.workspace{padding:29px 32px 16px;min-width:0}.workspace-heading{display:flex;justify-content:space-between;align-items:center;margin:0 0 22px}.project-name{font:700 21px var(--display);letter-spacing:-.6px;color:var(--ink);border:0;background:transparent;outline:none;padding:4px 0;width:min(460px,60vw)}.heading-meta{display:flex;align-items:center;gap:8px}.status-pill{font-size:10px;color:#6d7569;background:#e9eee5;border-radius:20px;padding:7px 10px;margin-right:6px}.status-pill i{display:inline-block;background:#71916c;width:6px;height:6px;border-radius:50%;margin-right:5px}.icon-button{border:1px solid var(--line);background:#fff;color:#55594f;width:31px;height:31px;border-radius:7px;font-size:19px;line-height:1;cursor:pointer}.icon-button:disabled{opacity:.38;cursor:default}.editor-layout{display:grid;grid-template-columns:minmax(270px,330px) minmax(0,1fr);gap:17px;align-items:start}.panel{background:#fff;border:1px solid #ece9e2;border-radius:12px;box-shadow:0 2px 8px #24271c05}.controls-panel{padding:19px 18px 17px}.panel-title{display:flex;gap:10px;align-items:flex-start}.panel-title h2,.chart-toolbar h2{font:700 14px var(--display);margin:1px 0 4px;letter-spacing:-.15px}.panel-title p{font-size:10px;color:#85877e;line-height:1.45;margin:0}.number-badge{width:23px;height:23px;flex:0 0 23px;border-radius:7px;background:#edf0e9;color:var(--green);display:grid;place-items:center;font-size:10px;font-weight:700}.drop-zone{height:118px;border:1px dashed #d9d9ce;border-radius:9px;background:#fbfbf8;margin-top:15px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;color:#797b72}.drop-zone:hover{border-color:#8b9d84;background:#f8faf6}.upload-icon{height:25px;width:25px;border-radius:50%;display:grid;place-items:center;background:#e9eee5;color:var(--green);font-size:18px;margin-bottom:1px}.drop-zone b{font-size:11px;color:#41443c}.drop-zone>span{font-size:9px}.drop-zone .file-name{color:#9a9b92}.crop-wrap{margin-top:12px}.crop-caption{display:flex;justify-content:space-between;font-size:8px;letter-spacing:.7px;color:#898b81;margin-bottom:6px}.crop-caption span+span{letter-spacing:0}.crop-wrap canvas{width:100%;height:auto;display:block;border-radius:6px;touch-action:none;cursor:crosshair;background:#f1f1eb}.text-button{border:0;padding:7px 0 0;background:none;color:var(--green);font:600 9px var(--font);cursor:pointer}.divider{height:1px;background:#efede7;margin:16px 0}.compact{align-items:center;margin-bottom:12px}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.field-grid label{font-size:9px;color:#7e8077;display:grid;gap:6px}.field-grid input{width:100%;height:34px;padding:0 9px;border:1px solid #e7e5dd;border-radius:6px;background:#fff;font:600 11px var(--font);color:#333}.gauge-fields{margin-top:9px}.dimension-readout{display:flex;justify-content:space-between;margin-top:11px;font-size:9px;color:#85877d}.dimension-readout b{color:#41443c;font-size:10px}.full-button{width:100%;margin-top:12px;display:flex;justify-content:space-between;align-items:center;padding:11px 13px}.range-label{display:flex;justify-content:space-between;font-size:9px;color:#77796f}.range-label b{color:#3e423b}.range{width:100%;accent-color:var(--green);height:14px;margin:7px 0 9px}.palette{display:flex;flex-wrap:wrap;gap:7px;min-height:27px}.swatch{position:relative;width:25px;height:25px;border:2px solid #fff;box-shadow:0 0 0 1px #e3e1d9;border-radius:50%;cursor:pointer}.swatch.selected{box-shadow:0 0 0 2px var(--green)}.swatch.selected:after{content:'✓';position:absolute;inset:0;display:grid;place-items:center;color:#fff;font-size:11px;text-shadow:0 1px 2px #333}.selected-color-row{display:flex;justify-content:space-between;align-items:center;margin-top:10px;font-size:9px;color:#898b81;gap:4px}.color-edit{display:flex;align-items:center;gap:6px;color:#5e6258;cursor:pointer}.color-edit input{width:24px;height:20px;border:0;background:none;padding:0;cursor:pointer}.segmented{padding:3px;background:#f2f1eb;border-radius:7px;display:grid;grid-template-columns:1fr 1fr}.segmented button{background:none;border:0;border-radius:5px;padding:7px 3px;color:#77796f;font:500 9px var(--font);cursor:pointer}.segmented button.selected{background:#fff;color:#39463a;box-shadow:0 1px 3px #2221}.chart-panel{padding:19px 19px 0;min-width:0;overflow:hidden}.chart-toolbar{display:flex;justify-content:space-between;align-items:center}.chart-toolbar h2{font-size:17px;margin:5px 0 0}.chart-actions{display:flex;align-items:center;gap:7px;color:#85877d;font-size:9px}.chart-actions .icon-button{width:27px;height:27px;font-size:16px}.chart-info{display:flex;align-items:center;gap:17px;border-bottom:1px solid #efede7;padding:14px 0 11px;margin-top:9px;color:#77796f;font-size:9px}.chart-info b{color:#44473f;font-weight:600}.legend-square{display:inline-block;width:8px;height:8px;background:#778a70;border-radius:2px;margin-right:4px}.legend-row{display:inline-block;width:8px;height:1px;background:#a18b65;margin-right:4px;vertical-align:middle}.chart-help{margin-left:auto;color:#9a9b92}.chart-scroll{height:min(57vh,610px);min-height:310px;overflow:auto;display:flex;align-items:flex-start;justify-content:center;padding:20px 10px 15px}.chart-empty{align-self:center;display:flex;flex-direction:column;align-items:center;gap:8px;color:#92948b;text-align:center}.chart-empty b{font:600 12px var(--display);color:#55584e}.chart-empty span{font-size:10px}.empty-art{width:54px;height:54px;border-radius:14px;background:#f3f2ec;display:grid;place-items:center;color:#89947f;font-size:25px}.chart{display:grid;gap:0;align-content:start;width:max-content;--cell:15px;--cell-w:19.3px}.chart-corner,.chart-col-label,.chart-row-label{height:18px;display:grid;place-items:center;color:#888a80;font:9px var(--font)}.chart-col-label{width:var(--cell-w);font-size:8px}.chart-row-label{height:var(--cell);width:25px;padding-right:7px;justify-items:end;font-size:8px}.chart-cell{display:block;width:var(--cell-w);height:var(--cell);border:0.5px solid #ffffffa3;padding:0;cursor:crosshair}.chart-cell:hover{outline:1px solid #31352c;outline-offset:-1px;z-index:1}.chart-cell.cell-selected{box-shadow:inset 0 0 0 1px #333}.chart-row{display:contents}.chart-corner{position:sticky;left:0;background:#fff;z-index:2}.chart-col-label{position:sticky;top:0;background:#fff;z-index:1}.chart-row-label{position:sticky;left:0;background:#fff;z-index:1}.chart-footer{display:flex;justify-content:space-between;padding:11px 0 12px;border-top:1px solid #efede7;color:#85877d;font-size:9px}.legend-area{border-top:1px solid #efede7;padding:13px 0 16px}.legend-heading{display:flex;justify-content:space-between;align-items:center}.legend-heading h3{font:700 11px var(--display);margin:0}.legend-heading span{font-size:8px;color:#989990}.color-legend{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.legend-chip{display:flex;align-items:center;gap:5px;border:1px solid #eeece5;border-radius:5px;padding:4px 6px;font-size:8px;color:#66695f}.legend-chip i{display:grid;place-items:center;width:13px;height:13px;border:1px solid #ddd;border-radius:2px;font-style:normal;font-size:8px;color:#252821}.page-footer{display:flex;justify-content:space-between;color:#999b91;font-size:9px;padding:17px 1px 0}.footer-sep{padding:0 6px;color:#c1c2b9}.toast{position:fixed;left:50%;bottom:25px;transform:translate(-50%,15px);opacity:0;pointer-events:none;padding:10px 16px;border-radius:8px;background:#30352e;color:#fff;font-size:11px;transition:.2s;z-index:10}.toast.show{opacity:1;transform:translate(-50%,0)}.print-page{display:none}@media(max-width:1050px){.app-shell{grid-template-columns:220px 1fr}.sidebar{padding:28px 18px}.workspace{padding:25px 20px}.editor-layout{grid-template-columns:280px minmax(0,1fr);gap:12px}.controls-panel{padding:16px 14px}.chart-panel{padding-left:14px;padding-right:14px}}@media(max-width:780px){.topbar{padding:0 15px}.top-actions{gap:5px}.top-actions .button{padding:9px 10px;font-size:10px}.save-status{display:none}.app-shell{display:block}.sidebar{display:none}.workspace{padding:20px 14px}.editor-layout{grid-template-columns:1fr}.chart-scroll{height:55vh}.workspace-heading{margin-bottom:14px}.heading-meta .status-pill{display:none}}@media(max-width:460px){.topbar{height:58px}.brand{font-size:16px}.top-actions .button-quiet{display:none}.top-actions .button-dark{font-size:10px}.project-name{font-size:18px}.chart-info{gap:10px}.chart-help{display:none}}
.piece-heading{margin-bottom:10px}.piece-select-label{display:grid;gap:7px;font-size:10px;font-weight:600;color:#5f6258}.piece-select-label select{width:100%;height:38px;border:1px solid #dedfd5;border-radius:7px;padding:0 10px;background:#fff;color:#34372f;font:500 11px var(--font)}.phase-one-note{display:grid;gap:4px;margin-top:10px;padding:9px 10px;border-radius:7px;background:#f7f3e8;color:#74705e;font-size:9px;line-height:1.45}.phase-one-note b{font-size:9px;color:#615c48}.drop-zone.locked{opacity:.45;cursor:not-allowed;pointer-events:none}
.app-shell{grid-template-columns:minmax(0,1fr)}
.aspect-toggle{display:flex;align-items:flex-start;gap:8px;margin-top:10px;padding:9px 10px;background:#f7f8f4;border:1px solid #eceee8;border-radius:7px;cursor:pointer}.aspect-toggle input{margin:2px 0 0;accent-color:var(--green)}.aspect-toggle span{display:grid;gap:3px}.aspect-toggle b{font-size:9px;color:#54584f}.aspect-toggle small{font-size:8px;color:#85877d}
.resolution-hint{margin-top:6px;font-size:8px;line-height:1.4;color:#8a7b58}
@media print{@page{size:A4 portrait;margin:12mm}body{background:#fff;color:#111}.topbar,.sidebar,.controls-panel,.workspace-heading,.chart-toolbar,.chart-info,.chart-footer,.page-footer,.toast{display:none!important}.app-shell,.workspace,.editor-layout,.chart-panel{display:block!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;background:#fff!important}.chart-scroll{display:none!important}.print-page{display:block!important}.print-title{font:700 20px Arial,sans-serif;margin:0 0 4px}.print-subtitle{font:12px Arial,sans-serif;margin:0 0 14px;color:#555}.print-chart{border-collapse:collapse;table-layout:fixed;margin:0 auto 16px}.print-chart td{padding:0;width:min(5mm,calc(180mm / var(--columns)),calc(240mm / var(--rows)));height:min(5mm,calc(180mm / var(--columns)),calc(240mm / var(--rows)));border:.25pt solid #aaa;text-align:center;vertical-align:middle;font:0.8em Arial,sans-serif;color:#222}.print-chart .print-axis{border:0;font-size:5pt;color:#444}.print-legend{display:flex;justify-content:center;gap:7mm;flex-wrap:wrap;font:9pt Arial,sans-serif}.print-legend span{display:flex;align-items:center;gap:2mm}.print-legend i{width:5mm;height:5mm;border:1px solid #777;display:inline-grid;place-items:center;font-style:normal;font-size:6pt}}
