:root{font-synthesis:none;text-rendering:optimizelegibility;color:#24302b;background:#f8f9f6;font-family:Segoe UI,Aptos,sans-serif;font-weight:400}*{box-sizing:border-box}body{background:radial-gradient(at 50% 12%,#f1f5ee,#0000 60%),#f8f9f6;min-width:320px;min-height:100vh;margin:0}button{-webkit-tap-highlight-color:transparent}.fatal-error{color:#203d34;background:#f5f7f3;place-items:center;min-height:100vh;padding:2rem;display:grid}.fatal-error section{background:#fff;border-radius:1rem;max-width:38rem;padding:2rem}.fatal-error h1{margin-block:.75rem}.fatal-error p{color:#58665d}#root{min-height:100vh}.app-shell{color:#24302b;min-height:100vh}.topbar{background:#ffffffe0;border-bottom:1px solid #e6e9e3;justify-content:space-between;align-items:center;gap:24px;min-height:76px;padding:0 5vw;display:flex}.brand{color:#203d34;letter-spacing:-.04em;align-items:center;gap:11px;font-size:19px;font-weight:750;text-decoration:none;display:flex}.version-badge{color:#698071;letter-spacing:.02em;background:#f4f7f2;border:1px solid #dfe8df;border-radius:999px;margin-left:1px;padding:4px 7px;font-size:10px;font-weight:700}.brand-mark{color:#fff;background:#315f4d;border-radius:11px 11px 11px 4px;place-items:center;width:34px;height:34px;font-size:17px;display:grid}.workflow{align-items:center;gap:8px;display:flex}.workflow-step{color:#77817b;font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:8px;padding:9px 12px;font-size:13px;display:flex}.workflow-step.active{color:#315f4d;font-weight:700}.workflow-step:disabled{cursor:not-allowed;opacity:.58}.step-index{color:#738078;background:#edf0eb;border-radius:50%;place-items:center;width:23px;height:23px;font-size:11px;font-weight:700;display:grid}.workflow-step.active .step-index{color:#fff;background:#315f4d}.new-button,.secondary-button{color:#34443d;font:inherit;cursor:pointer;background:#fff;border:1px solid #dfe4dc;border-radius:9px;padding:10px 14px;font-size:13px;font-weight:650}.new-button span{color:#315f4d;margin-right:4px;font-size:17px}.workspace{width:min(1360px,92vw);margin:0 auto;padding:48px 0 38px}.eyebrow{color:#789084;letter-spacing:.17em;font-size:10px;font-weight:800}h1{color:#203d34;letter-spacing:-.045em;margin:10px 0 7px;font-size:clamp(30px,4vw,42px)}.intro{color:#7b857f;margin:0;font-size:14px}.setup-card{box-sizing:border-box;text-align:center;background:#ffffffc2;border:1px dashed #cdd8ce;border-radius:20px;flex-direction:column;align-items:center;width:min(570px,100%);min-height:315px;margin:45px auto 0;padding:38px;display:flex}.setup-card.dragging{background:#f0f7f0;border:2px dashed #55836a;box-shadow:0 0 0 4px #55836a1a}.card-icon{color:#45715b;background:#edf4ee;border-radius:16px;place-items:center;width:52px;height:52px;font-size:24px;display:grid}.setup-card h2{color:#29483c;margin:20px 0 6px;font-size:20px}.setup-card p{color:#7b857f;max-width:380px;margin:0 0 22px;font-size:13px;line-height:1.6}.primary-button,.continue-button{color:#fff;font:inherit;cursor:pointer;background:#315f4d;border:0;border-radius:9px;padding:12px 18px;font-size:13px;font-weight:700}.primary-button:disabled,.continue-button:disabled{cursor:not-allowed;background:#b4c3b8}.hint{color:#98a099;margin-top:12px;font-size:11px}.visually-hidden{clip:rect(0, 0, 0, 0);white-space:nowrap;clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.editor-layout{grid-template-columns:minmax(0,1fr) 330px;align-items:start;gap:22px;margin-top:32px;display:grid}.image-panel,.roi-panel{background:#ffffffe0;border:1px solid #e5e9e2;border-radius:15px;min-width:0;padding:18px;box-shadow:0 8px 28px #2c45370b}.image-toolbar{justify-content:space-between;align-items:center;gap:16px;margin-bottom:15px;display:flex}.image-toolbar>div:first-child{gap:4px;min-width:0;display:grid}.image-toolbar strong{color:#2b493d;text-overflow:ellipsis;white-space:nowrap;font-size:13px;overflow:hidden}.image-toolbar span{color:#89938d;font-size:11px}.toolbar-actions{flex-wrap:wrap;align-items:center;gap:8px;display:flex}.toolbar-actions .secondary-button:disabled{cursor:not-allowed;opacity:.48}.toolbar-actions{flex-shrink:0;gap:7px;display:flex}.secondary-button{padding:8px 10px;font-size:11px}.secondary-button.selected{color:#315f4d;background:#eff5ef;border-color:#315f4d}.image-stage{touch-action:none;background:#151817;border-radius:7px;width:100%;position:relative;overflow:hidden}.overlap-drop-overlay{z-index:2;color:#fff;text-align:center;pointer-events:none;background:#1f4b34b8;border:3px dashed #d5f0dc;border-radius:7px;flex-direction:column;justify-content:center;align-items:center;gap:8px;display:flex;position:absolute;inset:0}.overlap-drop-overlay strong{font-size:clamp(13px,2vw,20px)}.overlap-drop-overlay span{font-size:12px}.image-stage canvas{object-fit:fill;width:100%;height:100%;display:block}.roi-overlay{touch-action:none;width:100%;height:100%;display:block;position:absolute;inset:0;overflow:visible}.image-stage.adding .roi-overlay{cursor:crosshair}.roi-hitbox{fill:#ff002304;stroke:#0000;stroke-width:0;cursor:move;pointer-events:all}.roi-outline{fill:none;stroke:#ff2b45;stroke-width:2.2px;stroke-dasharray:8 5;vector-effect:non-scaling-stroke;pointer-events:none}.roi-group.active .roi-outline{stroke:#ff2942;stroke-width:3px}.roi-label rect{fill:#d7182ff0}.roi-label text{fill:#fff;dominant-baseline:middle;font-family:Segoe UI,sans-serif;font-size:10px;font-weight:700}.roi-label{pointer-events:none}.roi-label foreignObject,.roi-label-input{pointer-events:auto}.roi-handle{fill:#fff;stroke:#e21e38;stroke-width:2px;vector-effect:non-scaling-stroke;pointer-events:all}.roi-handle.handle-nw,.roi-handle.handle-se{cursor:nwse-resize}.roi-handle.handle-ne,.roi-handle.handle-sw{cursor:nesw-resize}.roi-handle.handle-n,.roi-handle.handle-s{cursor:ns-resize}.roi-handle.handle-e,.roi-handle.handle-w{cursor:ew-resize}.roi-label-input{box-sizing:border-box;color:#fff;background:0 0;border:0;outline:0;width:100%;height:100%;padding:0 8px;font:700 18px Segoe UI,sans-serif;display:block}.roi-label-input::placeholder{color:#ffffffb8}.roi-rotate-line{stroke:#e21e38;stroke-width:1.5px;vector-effect:non-scaling-stroke;pointer-events:none}.roi-rotate-handle{fill:#fff;stroke:#e21e38;stroke-width:2px;vector-effect:non-scaling-stroke;cursor:grab;pointer-events:all}.roi-rotate-handle:active{cursor:grabbing}.roi-outline.draft{stroke-dasharray:7 5}.semi-auto-marker circle{fill:#ffffffdb;stroke:#de1e38;stroke-width:3px;vector-effect:non-scaling-stroke}.semi-auto-marker text{fill:#c5162c;text-anchor:middle;dominant-baseline:central;font:700 24px Segoe UI,sans-serif}.image-help{color:#8a938e;margin:12px 2px 1px;font-size:11px}.roi-panel{position:sticky;top:16px}.roi-panel-heading h2{color:#29483c;align-items:center;gap:9px;margin:7px 0 0;font-size:18px;display:flex}.roi-panel-heading h2 span{color:#527260;background:#edf3ed;border-radius:12px;place-items:center;min-width:22px;height:22px;padding:0 5px;font-size:11px;display:inline-grid}.panel-copy{color:#858f89;margin:11px 0 14px;font-size:11px;line-height:1.55}.roi-list{gap:9px;max-height:min(42vh,390px);padding-right:2px;display:grid;overflow:auto}.roi-card{cursor:pointer;background:#fff;border:1px solid #e5e9e3;border-radius:10px;padding:11px}.roi-card.active{border-color:#a9c3af;box-shadow:0 0 0 2px #5e8a691a}.roi-card-top{color:#425b4d;justify-content:space-between;align-items:center;margin-bottom:7px;font-size:11px;display:flex}.icon-button{color:#838c86;cursor:pointer;background:#f4f5f2;border:0;border-radius:6px;width:23px;height:23px;font-size:17px;line-height:1}.icon-button:hover{color:#c52e3f;background:#fae8e9}.name-label{color:#8b948f;margin-bottom:4px;font-size:10px;display:block}.name-input{color:#2d4338;width:100%;height:34px;font:inherit;border:1px solid #e0e6df;border-radius:7px;outline:none;padding:0 9px;font-size:12px}.name-input:focus{border-color:#7ca18a;box-shadow:0 0 0 3px #5b8b681f}.name-input::placeholder{color:#a1aaa4}.roi-coordinates{color:#8e9892;font-variant-numeric:tabular-nums;margin-top:7px;font-size:10px}.no-rois{color:#828e86;border:1px dashed #d5ded4;border-radius:9px;padding:14px 12px;font-size:11px;line-height:1.5}.metadata-card{color:#77837b;background:#f5f7f3;border-radius:9px;gap:8px;margin-top:13px;padding:12px;font-size:10px;display:grid}.metadata-card>span{color:#84948a;letter-spacing:.12em;margin-bottom:1px;font-size:9px;font-weight:800}.metadata-card div{justify-content:space-between;gap:10px;display:flex}.metadata-card b{color:#586b5f;font-weight:600}.continue-button{justify-content:space-between;align-items:center;width:100%;margin-top:13px;display:flex}.continue-button span{font-size:18px;line-height:12px}.gate-note{color:#89938d;text-align:center;margin:8px 1px 0;font-size:10px}.empty-state{color:#77817b;text-align:center;background:#f4f6f1;border-radius:14px;margin:45px auto 0;padding:32px}.stage-continue{color:#758178;justify-content:flex-end;align-items:center;gap:16px;margin-top:16px;font-size:12px;display:flex}.stage-continue .continue-button{gap:12px;width:auto;min-width:190px;margin-top:0}.error-banner{color:#9e2633;background:#fff1f2;border:1px solid #f1c9cd;border-radius:9px;max-width:780px;margin:18px auto 0;padding:12px 15px;font-size:12px;line-height:1.5}.privacy-note{color:#859089;text-align:center;margin-top:34px;font-size:11px}.privacy-note span{color:#6c9779;margin-right:6px;font-size:9px}.confirm-backdrop{z-index:10;background:#19251e61;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.confirm-dialog{background:#fff;border:1px solid #e1e7df;border-radius:14px;width:min(440px,100%);padding:22px;box-shadow:0 20px 60px #14281c38}.confirm-dialog h2{margin:0 0 8px;font-size:19px}.confirm-dialog p{color:#758178;font-size:13px;line-height:1.55}.confirm-dialog>div{justify-content:flex-end;gap:8px;margin-top:18px;display:flex}@media (width<=1000px){.editor-layout{grid-template-columns:minmax(0,1fr) 290px;gap:14px}.image-panel,.roi-panel{padding:13px}.image-toolbar{flex-direction:column;align-items:flex-start}}@media (width<=760px){.topbar{flex-wrap:wrap;min-height:70px;padding:12px 5vw}.workflow{order:3;justify-content:space-between;width:100%;overflow-x:auto}.workflow-step{white-space:nowrap;padding:8px 5px;font-size:11px}.workspace{padding-top:34px}.editor-layout{grid-template-columns:1fr}.roi-panel{position:static}.roi-list{max-height:none}.image-toolbar{flex-direction:column}.toolbar-actions{width:100%}}.operation-status{color:#315d4b;margin:1rem 0;font-weight:600}.chemi-stage{background:#ffffffe6;border:1px solid #e5e9e2;border-radius:16px;margin-top:30px;padding:20px;box-shadow:0 8px 28px #2c45370b}.chemi-heading{justify-content:space-between;align-items:center;gap:18px;margin-bottom:20px;display:flex}.chemi-heading h2{color:#29483c;margin:7px 0 5px;font-size:22px}.chemi-heading p{color:#849088;margin:0;font-size:12px}.chemi-import-button{white-space:nowrap;align-items:center;display:inline-flex}.chemi-import-button input{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.chemi-toolbar{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:14px;display:flex}.chemi-toolbar>label{color:#637168;align-items:center;gap:7px;font-size:11px;display:flex}.chemi-toolbar select{color:#354b3e;height:33px;font:inherit;background:#fff;border:1px solid #dfe5dc;border-radius:7px;padding:0 9px}.selection-tools{flex-wrap:wrap;gap:6px;margin-left:auto;display:flex}.selection-tools button,.pagination button{color:#50675a;font:inherit;cursor:pointer;background:#fff;border:1px solid #dfe5dc;border-radius:7px;padding:7px 9px;font-size:10px;font-weight:650}.selection-tools button:disabled,.pagination button:disabled{opacity:.45;cursor:not-allowed}.roi-stepper{color:#345442;background:#f2f7f1;border:1px solid #dbe6dc;border-radius:10px;justify-content:center;align-items:center;gap:18px;margin:4px 0 14px;padding:11px 14px;display:flex}.roi-stepper strong{text-align:center;text-overflow:ellipsis;white-space:nowrap;min-width:min(260px,35vw);font-size:13px;overflow:hidden}.roi-stepper button{color:#315a43;min-width:120px;font:inherit;cursor:pointer;background:#fff;border:1px solid #cddbcf;border-radius:8px;padding:9px 12px;font-size:12px;font-weight:700}.roi-stepper button:disabled{opacity:.42;cursor:not-allowed}.chemi-dropzone{background:#fbfcfa;border:1px dashed #cad7cb;border-radius:12px;min-height:210px;padding:14px}.chemi-dropzone.dragging{background:#f0f7f0;border-color:#55836a}.drop-hint{color:#68796e;text-align:center;pointer-events:none;background:#f5f8f3;border:1px dashed #cad7cb;border-radius:8px;margin:-2px 0 12px;padding:9px 12px;font-size:11px}.chemi-dropzone.dragging .drop-hint{color:#315f4d;background:#e8f3e8;border-color:#55836a}.chemi-empty{color:#6f7e74;text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:11px;min-height:180px;display:flex}.chemi-empty strong{color:#385846;font-size:14px}.chemi-empty span{max-width:450px;font-size:11px;line-height:1.5}.chemi-grid{gap:12px;display:grid}.chemi-grid.size-1{grid-template-columns:minmax(0,1fr)}.chemi-grid.size-2,.chemi-grid.size-4{grid-template-columns:repeat(2,minmax(0,1fr))}.chemi-grid.size-6{grid-template-columns:repeat(3,minmax(0,1fr))}.chemi-grid.size-8,.chemi-grid.size-12{grid-template-columns:repeat(4,minmax(0,1fr))}.exposure-card{background:#fff;border:1px solid #e1e7df;border-radius:10px;min-width:0;padding:10px}.exposure-select{color:#425c4c;align-items:center;gap:7px;min-width:0;margin-bottom:8px;font-size:11px;font-weight:650;display:flex}.exposure-select input{accent-color:#315f4d;flex:none}.exposure-select span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.exposure-preview{object-fit:contain;image-rendering:auto;background:#161a18;width:100%;max-height:270px;display:block}.exposure-card footer{color:#87938b;margin-top:7px;font-size:9px;line-height:1.4}.copy-crop-button{color:#50675a;font:inherit;cursor:pointer;background:#fff;border:1px solid #dfe5dc;border-radius:7px;margin-top:8px;padding:7px 9px;font-size:10px;font-weight:650}.copy-crop-status{color:#587461;margin-top:5px;font-size:9px;line-height:1.4;display:block}.pagination{color:#65756a;justify-content:center;align-items:center;gap:16px;margin-top:14px;font-size:11px;display:flex}.overlap-reference{background:#f3f6f1;border-radius:10px;justify-content:space-between;align-items:center;gap:18px;margin-top:16px;padding:13px;display:flex}.overlap-reference p{color:#728078;margin:6px 0 9px;font-size:10px}.reference-thumb{cursor:pointer;background:#161a18;border:1px solid #dce4dc;border-radius:6px;width:150px;height:74px;padding:0;overflow:hidden}.reference-thumb canvas{object-fit:contain;width:100%;height:100%;display:block}.import-errors{color:#885639;background:#fff8f2;border:1px solid #f0d1bd;border-radius:8px;margin-top:12px;padding:10px 12px;font-size:10px;line-height:1.5}.import-errors strong{margin-bottom:4px;display:block}@media (width<=900px){.chemi-grid.size-6,.chemi-grid.size-8,.chemi-grid.size-12{grid-template-columns:repeat(2,minmax(0,1fr))}.selection-tools{margin-left:0}}@media (width<=560px){.chemi-stage{padding:12px}.chemi-heading{flex-direction:column;align-items:flex-start}.chemi-grid.size-2,.chemi-grid.size-4,.chemi-grid.size-6,.chemi-grid.size-8,.chemi-grid.size-12{grid-template-columns:1fr}.reference-thumb{width:110px}.roi-stepper{gap:7px;padding:8px}.roi-stepper button{min-width:0;padding:8px 6px;font-size:10px}.roi-stepper strong{flex:1;min-width:0;font-size:10px}}.export-stage{background:#fff;border:1px solid #e5e9e2;border-radius:16px;margin-top:30px;padding:24px;box-shadow:0 8px 28px #2c45370b}.export-heading{justify-content:space-between;align-items:center;gap:18px;display:flex}.export-heading h2{color:#29483c;margin:7px 0 5px;font-size:22px}.export-heading p{color:#849088;margin:0;font-size:12px}.export-summary{flex-wrap:wrap;align-items:center;gap:9px;margin:22px 0;display:flex}.export-summary strong,.export-summary span{color:#42604d;background:#f2f6f1;border-radius:8px;padding:9px 12px;font-size:12px}.export-option{color:#4a5d51;align-items:center;gap:9px;margin:13px 0;font-size:13px;display:flex}.export-option input{accent-color:#315f4d}.ppt-layout{color:#4a5d51;border:1px solid #e5e9e2;border-radius:10px;flex-wrap:wrap;gap:12px 22px;margin:16px 0 20px 25px;padding:12px 14px;display:flex}.ppt-layout legend{color:#42604d;padding:0 6px;font-size:12px;font-weight:650}.ppt-layout label{grid-template-columns:auto 1fr;align-items:center;gap:3px 8px;font-size:12px;display:grid}.ppt-layout input{accent-color:#315f4d;grid-row:span 2}.ppt-layout span{color:#849088;font-size:11px}.ppt-layout:disabled{opacity:.65}.export-status{color:#42604d;background:#f2f6f1;border-radius:8px;gap:5px;margin-top:15px;padding:10px 12px;font-size:12px;line-height:1.45;display:grid}
