:root{--paper:#ece7de;--paper-2:#f6f3ed;--ink:#221d19;--ink-2:#5d554c;--line:#d6cfc2;--accent:#1a3473;--accent-ink:#fff;--focus:#1a3473;--radius:10px;color:var(--ink);background:var(--paper);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:15px;line-height:1.45}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--paper)}.app{grid-template-columns:minmax(0,1fr) 380px;height:100%;display:grid}.stage{background:radial-gradient(120% 90% at 50% 35%, #f8f5ef 0%, var(--paper) 55%, #ddd6c9 100%);min-width:0;min-height:0;position:relative}.preview{position:absolute;inset:0}.preview-canvas{touch-action:none;cursor:grab;outline-offset:-3px;width:100%;height:100%;display:block}.preview-canvas:active{cursor:grabbing}.preview-status{color:#fff;opacity:0;pointer-events:none;background:#221d19d1;border-radius:999px;margin:0;padding:6px 14px;font-size:13px;transition:opacity .15s .12s;position:absolute;top:64px;left:50%;transform:translate(-50%)}.preview-status.is-on{opacity:1}.preview-status:empty{display:none}.preview-note{border-radius:var(--radius);background:#fff7e8;border:1px solid #e2c98f;margin:0;padding:12px 16px;position:absolute;inset:auto 24px 24px}.stage-actions{pointer-events:none;flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex;position:absolute;bottom:16px;left:16px;right:16px}.stage-actions>*{pointer-events:auto}.scale-note{color:var(--ink-2);background:#ffffffd1;border-radius:999px;padding:5px 10px;font-size:13px}.stage-top{pointer-events:none;flex-wrap:wrap;gap:10px 16px;display:flex;position:absolute;top:16px;left:16px;right:16px}.segmented{border:1.5px solid var(--line);pointer-events:auto;background:#ffffffe6;border-radius:10px;align-items:center;margin:0;padding:3px;display:flex}.segmented legend{float:left;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);padding:0 8px 0 7px;font-size:12px;font-weight:700}.segmented label{cursor:pointer;position:relative}.segmented input{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.segmented span{border-radius:7px;padding:6px 11px;font-size:14px;display:block}.segmented label.is-selected span{background:var(--accent);color:var(--accent-ink)}.segmented label:has(input:focus-visible) span{outline:3px solid var(--focus);outline-offset:1px}.sun{border:1.5px solid var(--line);pointer-events:auto;background:#ffffffe6;border-radius:10px;align-items:center;gap:6px;padding:3px 4px 3px 10px;display:flex}.sun label{letter-spacing:.06em;text-transform:uppercase;color:var(--ink-2);font-size:12px;font-weight:700}.sun input{width:150px;height:28px;accent-color:var(--accent);margin:0}.stage-actions .sun-reset{width:28px;height:28px;color:var(--ink-2);cursor:pointer;background:0 0;border:0;border-radius:7px;padding:0;font-size:16px}.stage-actions .sun-reset:hover:not(:disabled){color:var(--ink);background:#e7e1d5}.stage-actions .sun-reset:disabled{opacity:.3;cursor:default}.panel{background:var(--paper-2);border-left:1px solid var(--line);flex-direction:column;gap:20px;padding:24px 22px 20px;display:flex;overflow-y:auto}.panel-head h1{letter-spacing:-.01em;margin:0 0 6px;font-family:Iowan Old Style,Palatino Linotype,Palatino,Georgia,serif;font-size:26px;font-weight:600;line-height:1.15}.panel-head p{color:var(--ink-2);margin:0}.controls{flex-direction:column;gap:22px;display:flex}.group{border:0;min-width:0;margin:0;padding:0}.group legend{letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);margin-bottom:10px;padding:0;font-size:12px;font-weight:700}.cards{grid-template-columns:1fr 1fr;gap:10px;display:grid}.card{border:1.5px solid var(--line);border-radius:var(--radius);cursor:pointer;background:#fff;flex-direction:column;gap:4px;padding:12px;display:flex;position:relative}.card input{opacity:0;cursor:pointer;margin:0;position:absolute;inset:0}.card.is-selected{border-color:var(--accent);box-shadow:0 0 0 1px var(--accent)}.card:has(input:focus-visible){outline:3px solid var(--focus);outline-offset:2px}.card-title{font-weight:650}.card-note{color:var(--ink-2);font-size:13px}.slider{display:block}.slider input{width:100%;accent-color:var(--accent);height:28px;margin:4px 0 8px}.readout{font-variant-numeric:tabular-nums;justify-content:space-between;align-items:baseline;gap:12px;margin:0 0 6px;display:flex}.readout span{color:var(--ink-2)}.hint{color:var(--ink-2);margin:0;font-size:13px}.is-stale{opacity:.5}.glazes{flex-direction:column;margin:0 0 10px;padding:0;list-style:none;display:flex}.glaze{border-bottom:1px solid var(--line);grid-template-columns:36px minmax(0,1fr) auto 32px;align-items:center;gap:10px;padding:6px 0;display:grid}.glaze:first-child{border-top:1px solid var(--line)}.glaze input[type=color]{border:1.5px solid var(--line);cursor:pointer;background:0 0;border-radius:8px;width:36px;height:36px;padding:0;overflow:hidden}.glaze input[type=color]::-webkit-color-swatch-wrapper{padding:0}.glaze input[type=color]::-webkit-color-swatch{border:0}.glaze input[type=color]::-moz-color-swatch{border:0}.glaze-name{cursor:pointer;flex-wrap:wrap;align-items:center;gap:6px;display:flex}.glaze-count{font-variant-numeric:tabular-nums;color:var(--ink-2)}.tag{color:var(--ink-2);background:#e7e1d5;border-radius:999px;padding:1px 6px;font-size:11px}.tag-changed{color:var(--accent);background:#dfe6f6}.glaze-reset{width:32px;height:32px;color:var(--ink-2);cursor:pointer;background:0 0;border:0;border-radius:8px;padding:0;font-size:17px}.glaze-reset:hover:not(:disabled){color:var(--ink);background:#e7e1d5}.glaze-reset:disabled{opacity:0;cursor:default}.row{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.materials{flex-direction:column;gap:12px;display:flex}.materials h2{letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);margin:0;font-size:12px;font-weight:700}.scale{justify-content:space-between;align-items:center;gap:12px;display:flex}.scale select{font:inherit;border:1.5px solid var(--line);color:var(--ink);background:#fff;border-radius:8px;padding:7px 10px}.facts{grid-template-columns:1fr 1fr;gap:8px;margin:0;display:grid}.fact{border:1px solid var(--line);border-radius:var(--radius);background:#fff;padding:10px 12px}.fact dt{color:var(--ink-2);font-size:12px}.fact dd{font-variant-numeric:tabular-nums;margin:2px 0 0;font-size:17px;font-weight:650}.fact dd small{color:var(--ink-2);font-size:12px;font-weight:400}.table-wrap{overflow-x:auto}.bill{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:13px}.bill caption{text-align:left;color:var(--ink-2);padding-bottom:6px}.bill th,.bill td{border-bottom:1px solid var(--line);text-align:right;white-space:nowrap;padding:6px 4px}.bill th:first-child,.bill td:first-child{text-align:left;padding-left:0}.bill thead th{color:var(--ink-2);vertical-align:bottom;white-space:normal;font-weight:600}.bill tfoot td,.bill tfoot th{border-bottom:0;font-weight:650}.chip{vertical-align:-1px;border:1px solid #0000002e;border-radius:3px;width:11px;height:11px;margin-right:7px;display:inline-block}.estimate{border:1px solid var(--line);border-radius:var(--radius);background:#fff;margin:0;padding:12px}.estimate-head{justify-content:space-between;align-items:center;gap:8px;margin-bottom:6px;font-weight:650;display:flex}.estimate dl{font-variant-numeric:tabular-nums;grid-template-columns:1fr auto;gap:3px 12px;margin:0;display:grid}.estimate dt{color:var(--ink-2)}.estimate dd{text-align:right;margin:0}.estimate .total{border-top:1px solid var(--line);color:var(--ink);margin-top:3px;padding-top:6px;font-size:16px;font-weight:650}.tag-sample{color:#6b4a0b;background:#fbe9c8}.materials-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.materials-actions button{border:1.5px solid var(--line);cursor:pointer;white-space:nowrap;background:#fff;border-radius:8px;padding:8px 12px}.materials-actions button:hover:not(:disabled){border-color:var(--ink-2)}button{font:inherit;color:inherit}.stage-actions button,.panel-foot button{border:1.5px solid var(--line);cursor:pointer;background:#fff;border-radius:8px;padding:9px 14px}.stage-actions button:hover,.panel-foot button:hover:not(:disabled){border-color:var(--ink-2)}.panel-foot button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}.panel-foot button.primary:hover{filter:brightness(1.12)}button:disabled{opacity:.45;cursor:default}button.link{color:var(--accent);cursor:pointer;white-space:nowrap;background:0 0;border:0;padding:0;text-decoration:underline}button.link:disabled{color:var(--ink-2);text-decoration:none}:focus-visible{outline:3px solid var(--focus);outline-offset:2px}.panel-foot{flex-wrap:wrap;gap:10px;margin-top:auto;padding-top:6px;display:flex}.panel-foot .primary{flex:auto}.copy-status{min-height:1.45em;color:var(--ink-2);flex-basis:100%;margin:0;font-size:13px}.fineprint{color:var(--ink-2);flex-basis:100%;margin:0;font-size:12px}.handover{flex-direction:column;gap:10px;display:flex}.handover h2{letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2);margin:0;font-size:12px;font-weight:700}.handover .hint,.handover .copy-status{margin:0}.handover-actions,.quote-actions{flex-wrap:wrap;gap:8px;display:flex}.handover button,.sheet-bar button{border:1.5px solid var(--line);cursor:pointer;background:#fff;border-radius:8px;padding:9px 14px}.handover button:hover:not(:disabled),.sheet-bar button:hover:not(:disabled){border-color:var(--ink-2)}.handover button.primary,.sheet-bar button.primary{background:var(--accent);border-color:var(--accent);color:var(--accent-ink);font-weight:600}.handover>button{align-self:flex-start}.quote{border:1px solid var(--line);border-radius:var(--radius);background:#fff;flex-direction:column;gap:6px;padding:12px;display:flex}.quote label{font-size:13px;font-weight:600}.quote label small{color:var(--ink-2);font-weight:400}.quote input,.quote textarea{font:inherit;border:1.5px solid var(--line);color:inherit;resize:vertical;background:#fff;border-radius:8px;padding:8px 10px}.quote-actions{margin-top:4px}.quote ::placeholder{color:var(--ink-2);opacity:1}.sheet{z-index:10;background:#221d198c;padding:0 16px 32px;position:fixed;inset:0;overflow-y:auto}.sheet:focus{outline:none}.sheet-bar{z-index:1;background:#2b2622;flex-wrap:wrap;justify-content:center;align-items:center;gap:10px;margin:0 -16px 12px;padding:10px 16px;display:flex;position:sticky;top:0}.sheet-bar .hint{color:#f1ede5;margin:0}.sheet-page{box-sizing:border-box;color:#1d1a17;background:#fff;max-width:210mm;margin:0 auto;padding:14mm;font-size:13px;line-height:1.45;box-shadow:0 10px 40px #00000059}.sheet-head{border-bottom:2px solid #1d1a17;justify-content:space-between;gap:16px;padding-bottom:10px;display:flex}.sheet-head h1{margin:0;font-size:22px}.sheet-head p{margin:2px 0 0}.sheet-date{text-align:right;white-space:nowrap}.sheet-top{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);align-items:start;gap:20px;margin:16px 0;display:grid}.sheet-drawing{margin:0}.sheet-drawing img,.sheet-drawing-wait{aspect-ratio:1;width:100%;display:block}.sheet-drawing-wait{color:#5c554d;background:#f1ede5;place-items:center;display:grid}.sheet-drawing figcaption{color:#5c554d;margin-top:6px;font-size:12px}.sheet-facts{grid-template-columns:auto 1fr;gap:6px 14px;margin:0;display:grid}.sheet-facts dt{color:#5c554d}.sheet-facts dd{margin:0;font-weight:600}.sheet-table .mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:12px}.sheet-estimate{break-inside:avoid;max-width:320px;margin-top:16px;margin-left:auto}.sheet-estimate h2{margin:0 0 6px;font-size:14px}.sheet-estimate dl{font-variant-numeric:tabular-nums;grid-template-columns:1fr auto;gap:3px 12px;margin:0;display:grid}.sheet-estimate dd{text-align:right;margin:0}.sheet-estimate .total{border-top:1px solid #1d1a17;margin-top:3px;padding-top:6px;font-size:16px;font-weight:650}.sheet-foot{color:#5c554d;break-inside:avoid;border-top:1px solid #cfc8bb;margin-top:18px;padding-top:10px;font-size:12px}.sheet-foot p{margin:0 0 4px}.sheet-foot a{color:inherit;overflow-wrap:anywhere}html.sheet-open,html.sheet-open body{overflow:hidden}@media (width<=640px){.sheet{padding:0 8px 24px}.sheet-bar{justify-content:flex-start;margin:0 -8px 12px;padding:10px 8px}.sheet-page{padding:16px}.sheet-top{grid-template-columns:1fr}}@page{size:A4;margin:14mm}@media print{html,body,#root,html.sheet-open,html.sheet-open body{background:#fff;height:auto;overflow:visible}html.sheet-open .app,.sheet-bar{display:none}.sheet{background:0 0;padding:0;position:static;overflow:visible}.sheet-page{max-width:none;box-shadow:none;padding:0}.sheet-top{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr)}.chip,.tag{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;border:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}@media (width<=820px){html,body,#root{height:auto}.app{display:block}.stage{display:contents}.preview{top:0;z-index:2;border-bottom:1px solid var(--line);background:radial-gradient(120% 90% at 50% 35%, #f8f5ef 0%, var(--paper) 55%, #ddd6c9 100%);height:46svh;min-height:260px;position:sticky;inset:0 auto auto}.preview-status{top:12px}.stage-top,.stage-actions{background:var(--paper-2);pointer-events:auto;padding:12px 16px 0;position:static}.stage-top{gap:10px}.stage-top .segmented{flex:100%}.stage-top .segmented label{text-align:center;flex:1 1 0}.segmented legend{min-width:58px}.stage-actions .sun{flex:180px;min-width:0}.sun input{flex:auto;width:auto;min-width:0}.segmented,.sun{background:#fff}.panel{border-left:0;padding:20px 16px 28px;overflow:visible}.panel-head h1{font-size:22px}}@media (pointer:coarse){.segmented span{padding:12px 11px}.sun input,.slider input{height:44px}.stage-actions .sun-reset,.glaze-reset{width:44px;height:44px}.glaze{grid-template-columns:44px minmax(0,1fr) auto 44px}.glaze input[type=color]{width:44px;height:44px}.stage-actions button,.panel-foot button,.handover button,.sheet-bar button,.materials-actions button,.scale select{min-height:44px}button.link{min-height:44px;padding:0 4px}.quote input,.quote textarea{font-size:16px}}@media (forced-colors:active){.segmented label.is-selected span,.card.is-selected{outline-offset:-2px;outline:2px solid highlight}.chip,.glaze input[type=color]{forced-color-adjust:none}}@media (prefers-reduced-motion:reduce){.preview-status{transition:none}}
