:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light;--paper:#efe7da;--paper-deep:#e4d9c8;--card:#fffdf8;--ink:#2a211c;--muted:#5e534a;--line:#ddd2c2;--walnut:#3e2c26;--thread:#8d3434;--pine:#1f4a40;--shadow:0 16px 40px #3e2c2614;--sans:"Segoe UI", Candara, sans-serif;--serif:"Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;font-family:var(--sans);color:var(--ink);background:linear-gradient(180deg, #fffcf7b3, transparent 220px), var(--paper)}*{box-sizing:border-box}body{min-height:100vh;margin:0}button,input,select{font:inherit;color:inherit}button{border:1px solid var(--walnut);cursor:pointer;background:0 0;border-radius:999px;padding:.55rem 1rem}button:hover{background:#3e2c260f}button.primary{background:var(--walnut);color:#f7f1e8}button.primary:hover{background:#2f211c}button:disabled{opacity:.45;cursor:not-allowed}button:focus-visible,input:focus-visible,select:focus-visible,.drop:focus-within{outline:2px solid var(--pine);outline-offset:3px}.text-button{color:var(--pine);text-underline-offset:3px;background:0 0;border:0;border-radius:0;padding:.2rem .1rem;text-decoration:underline}.text-button:hover{color:var(--thread);background:0 0}.app{width:min(1180px,100% - 32px);margin:0 auto;padding:28px 0 48px}.header{border-bottom:4px solid var(--thread);flex-wrap:wrap;justify-content:space-between;align-items:flex-end;gap:16px 24px;padding-bottom:18px;display:flex}.eyebrow{letter-spacing:.14em;text-transform:uppercase;color:var(--thread);margin:0 0 4px;font-size:.75rem}h1,h2{font-family:var(--serif);margin:0;font-weight:600}h1{font-size:2.1rem;line-height:1.1}h2{font-size:1.35rem}.header-actions,.actions,.quiet-actions,.section-head{flex-wrap:wrap;align-items:center;gap:8px 12px;display:flex}.section-head{justify-content:space-between;margin-bottom:10px}.section-head p{color:var(--muted);margin:0}.banner,.notice,.loading{border-radius:12px;margin:16px 0 0;padding:12px 14px}.banner{color:#6d2424;background:#f8e7e4}.notice,.loading{background:var(--card);color:var(--muted)}.start{margin-top:28px}.drop{text-align:center;background:linear-gradient(180deg, #fffdf866, #fffdf8e6), repeating-linear-gradient(0deg, transparent, transparent 18px, #3e2c260a 19px), var(--card);min-height:320px;box-shadow:var(--shadow);cursor:pointer;border:2px dashed #b7a898;border-radius:18px;flex-direction:column;justify-content:center;align-items:center;gap:8px;padding:32px;display:flex;position:relative}.drop.over{border-color:var(--thread);background:#fff}.drop input{clip:rect(0 0 0 0);width:1px;height:1px;position:absolute;overflow:hidden}.drop-kicker{letter-spacing:.16em;text-transform:uppercase;color:var(--thread);font-size:.75rem}.drop-title{font-family:var(--serif);font-size:2.4rem}.drop-sub{color:var(--muted)}.start-copy{max-width:62ch;color:var(--muted);line-height:1.5}.workspace{grid-template-columns:minmax(280px,360px) minmax(0,1fr);align-items:start;gap:24px;margin-top:24px;display:grid}.sidebar,.chart-card,.legend-card{background:var(--card);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px}.sidebar{padding:16px}.crop-block{margin-bottom:18px}.crop-stage{padding:8px 0}.crop-frame{touch-action:none;cursor:crosshair;border-radius:10px;max-width:100%;line-height:0;display:inline-block;position:relative}.crop-frame img{width:auto;max-width:100%;height:auto;max-height:280px;display:block}.shade{pointer-events:none;background:#2a211c73;position:absolute}.crop-rect{border:2px solid var(--walnut);cursor:move;position:absolute;box-shadow:inset 0 0 0 1px #fffdf8cc}.crop-handle{background:var(--card);border:2px solid var(--walnut);border-radius:2px;width:12px;height:12px;position:absolute}.crop-handle.n,.crop-handle.s{cursor:ns-resize;margin-left:-6px;left:50%}.crop-handle.e,.crop-handle.w{cursor:ew-resize;margin-top:-6px;top:50%}.crop-handle.n,.crop-handle.nw,.crop-handle.ne{top:-6px}.crop-handle.s,.crop-handle.sw,.crop-handle.se{bottom:-6px}.crop-handle.w,.crop-handle.nw,.crop-handle.sw{left:-6px}.crop-handle.e,.crop-handle.ne,.crop-handle.se{right:-6px}.crop-handle.nw,.crop-handle.se{cursor:nwse-resize}.crop-handle.ne,.crop-handle.sw{cursor:nesw-resize}.controls{flex-direction:column;gap:4px;display:flex}.field{flex-direction:column;gap:6px;margin-top:12px;display:flex}.field-label{justify-content:space-between;gap:12px;font-size:.95rem;display:flex}.field-value{font-variant-numeric:tabular-nums;color:var(--muted)}input[type=range]{width:100%;accent-color:var(--thread)}select,input[type=number]{border:1px solid var(--line);background:#fff;border-radius:10px;width:100%;padding:.5rem .7rem}.hint,.finished{color:var(--muted);font-size:.92rem;line-height:1.4}.hint{margin:6px 0 0}.finished{color:var(--ink);margin:12px 0 0}.actions{margin-top:16px}.quiet-actions{margin-top:12px}.stage{flex-direction:column;gap:16px;min-width:0;display:flex}.chart-card,.legend-card{padding:16px}.chart-scroll{border:1px solid var(--line);background:#fff;border-radius:12px;max-height:min(72vh,860px);overflow:auto}.chart-scroll canvas{display:block}.chart-empty{text-align:center;color:var(--muted);margin:0;padding:48px 16px}.legend{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px 18px;margin:0;padding:0;list-style:none;display:grid}.legend li{grid-template-columns:18px 52px minmax(0,1fr) auto;align-items:center;gap:8px;min-width:0;display:grid}.swatch{border:1px solid #2a211c59;border-radius:2px;width:18px;height:18px}.code{font-variant-numeric:tabular-nums;font-weight:650}.name{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.count{color:var(--muted);font-variant-numeric:tabular-nums}.footer{color:var(--muted);margin-top:28px;font-size:.85rem}.footer a{color:var(--pine)}@media (width<=860px){.workspace{grid-template-columns:1fr}h1{font-size:1.7rem}.drop-title{font-size:1.8rem}}
