:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:#e8edf6;background:#101722;font-size:16px;font-synthesis:none;-webkit-font-smoothing:antialiased;--bg:#101722;--panel:#172130;--raised:#1e2b3d;--border:#303e52;--muted:#9aa9bc;--text:#edf1f8;--accent:#f66f62;--focus:#ffcf8b;--safe-bottom:env(safe-area-inset-bottom,0px)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;height:100%;overflow:hidden}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.35}button:focus-visible,input:focus-visible,textarea:focus-visible,.stage:focus-visible{outline:2px solid var(--focus);outline-offset:3px}svg{display:block;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}.icon-sprite{position:absolute;width:0;height:0;overflow:hidden}.hidden{display:none!important}.mobile-only{display:none!important}.app-shell{display:flex;flex-direction:column;height:100dvh;min-height:420px;overflow:hidden}
.topbar{height:76px;flex:0 0 76px;background:#121c2a;border-bottom:1px solid #2b3849;display:flex;align-items:center;gap:28px;padding:0 25px;z-index:10}.brand{display:flex;align-items:center;gap:12px;flex:0 0 240px}.brand-mark{height:43px;width:43px;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,#ff9a6c,#f04d63);color:#fff;box-shadow:0 6px 18px #ff695532}.brand-mark svg{width:27px;height:27px;stroke-width:2.3}.brand-name{font-size:20px;font-weight:850;letter-spacing:-.8px;line-height:1.07;white-space:nowrap}.brand-name span{color:#ff9682}.brand-sub{font-size:8px;letter-spacing:1.5px;font-weight:800;color:#8190a5;margin-top:5px;white-space:nowrap}.project-heading{flex:1;min-width:130px;display:flex;flex-direction:column;gap:5px}.project-heading input{background:transparent;color:#ebf2fa;border:1px solid transparent;outline:none;font-size:15px;font-weight:700;max-width:300px;width:100%;padding:3px 5px;border-radius:5px;text-overflow:ellipsis}.project-heading input:hover,.project-heading input:focus{border-color:#41526b;background:#1a2738}.save-indicator{display:flex;gap:7px;align-items:center;color:#94a3b6;font-size:11px;padding-left:5px}.status-dot{background:#8d98a9;width:6px;height:6px;border-radius:50%}.save-indicator.saved .status-dot{background:#56d9a1}.save-indicator.saving .status-dot{background:#fbd172}.save-indicator.error .status-dot{background:#f07a75}.top-actions{display:flex;align-items:center;gap:8px}.btn{border:1px solid transparent;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 13px;min-height:41px;font-size:12px;font-weight:800;white-space:nowrap;transition:transform .12s,background .12s,border-color .12s}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn svg{width:16px;height:16px}.btn-subtle{background:transparent;border-color:#36465a;color:#d3deed}.btn-subtle:hover:not(:disabled){background:#253347;border-color:#657489}.btn-primary{background:linear-gradient(135deg,#fb8969,#ef5865);color:#fff;box-shadow:0 5px 18px #ef58652a}.btn-primary:hover:not(:disabled){filter:brightness(1.06)}.btn-light{background:#fff;color:#25354a;box-shadow:0 9px 20px #10172218}.btn-outline{color:#d8e5f6;background:#233245;border:1px solid #42536a}.btn-danger-outline{color:#ffb7b7;background:#392a37;border:1px solid #80505c}.btn-large{font-size:14px;padding:13px 21px;min-height:49px}.btn-large svg{width:19px;height:19px}.top-divider,.controls-separator{height:24px;width:1px;background:#364456;display:block;margin:0 4px}
.workspace{flex:1;min-height:0;display:flex;overflow:hidden}.tool-rail{width:87px;flex:0 0 87px;border-right:1px solid #2d3b50;background:#172232;padding:15px 10px 11px;display:flex;flex-direction:column;gap:3px;align-items:center;overflow-y:auto;scrollbar-width:thin}.rail-section-label{font-size:10px;letter-spacing:2px;color:#677c96;font-weight:900;text-align:center;margin:4px 0 10px}.tool{width:65px;min-height:61px;border:1px solid transparent;background:transparent;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:12px;color:#9eadc2;transition:.13s}.tool:hover{background:#26364b;color:#e7f0fa}.tool.active{background:linear-gradient(135deg,#f97669,#ef5968);color:#fff;box-shadow:0 6px 20px #f75e6038}.tool svg{width:22px;height:22px;stroke-width:1.9}.tool span{font-size:10px;font-weight:750}.rail-separator{width:38px;height:1px;background:#374456;margin:9px auto}.rail-flex{flex:1}.secondary-tool{color:#c4d3e4}
.editor-panel{flex:1;min-width:0;min-height:0;display:flex;flex-direction:column;background:#dfe4ed}.editor-topbar{height:53px;flex:0 0 53px;background:#1a2736;border-bottom:1px solid #344258;display:flex;justify-content:space-between;align-items:center;padding:0 16px;color:#b9c8db;gap:8px}.editor-file{display:flex;gap:8px;align-items:center;font-size:11px;font-weight:750;min-width:0}.editor-file #imageMeta{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-file-dot{width:7px;height:7px;background:#61c9b3;border-radius:50%;flex:none}.editor-controls{display:flex;align-items:center;gap:3px;flex:none}.selection-meta{font-size:10px;color:#8da0b8;margin-right:9px;max-width:210px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.icon-btn{width:36px;height:36px;border:0;border-radius:8px;background:transparent;color:#c0cfdf;display:inline-grid;place-items:center;flex:none}.icon-btn:hover:not(:disabled){color:#fff;background:#34475e}.icon-btn svg{width:17px;height:17px}.zoom-label{font-size:11px;color:#d6e1ee;min-width:36px;text-align:center;font-variant-numeric:tabular-nums}
.stage{position:relative;flex:1;min-height:0;overflow:hidden;touch-action:none;background:radial-gradient(circle at center,#ecf0f5 0%,#ccd5e2 95%);cursor:crosshair;isolation:isolate}.stage.is-select{cursor:default}.stage.is-pan{cursor:grab}.stage.is-panning{cursor:grabbing}.stage canvas{width:100%;height:100%;display:block;touch-action:none}.stage:has(.empty-state:not(.hidden)) canvas{display:none}.empty-state{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;text-align:center;overflow:auto;padding:30px 22px;color:#1c293d;user-select:none}.empty-art{width:280px;height:207px;position:relative;margin-bottom:4px}.empty-paper{position:absolute;inset:17px 35px 17px;transform:rotate(-6deg);background:#fff;border:7px solid #e8edf3;border-radius:17px;box-shadow:0 18px 50px #53668130}.empty-photo{position:absolute;left:22px;top:24px;width:99px;height:96px;color:#829caf;stroke-width:1.2}.empty-line{position:absolute;height:7px;background:#d4e0e8;border-radius:4px;left:26px}.empty-line.one{width:90px;bottom:32px}.empty-line.two{width:62px;bottom:18px}.empty-note{position:absolute;right:-25px;top:19px;background:#f15c68;color:#fff;padding:13px 15px;transform:rotate(6deg);border-radius:8px;font-size:12px;font-weight:900;box-shadow:0 9px 20px #ed737651;border:3px solid #fff}.empty-arrow{position:absolute;right:28px;top:58px;width:54px;height:65px;border-left:4px solid #f15c68;transform:rotate(25deg);transform-origin:top left}.empty-arrow:after{content:"";position:absolute;left:-9px;bottom:-1px;border-top:12px solid #f15c68;border-left:6px solid transparent;border-right:6px solid transparent}.empty-dot{position:absolute;right:61px;bottom:35px;width:13px;height:13px;background:#f15c68;border-radius:50%;border:3px solid #fff}.empty-eyebrow{display:flex;gap:11px;align-items:center;color:#ed685e;font-size:10px;letter-spacing:2.3px;font-weight:850}.empty-eyebrow span{width:25px;height:1px;background:#ee8d82}.empty-state h1{font-size:clamp(25px,3.2vw,40px);letter-spacing:-1.5px;margin:12px 0 10px;font-weight:900;line-height:1.13}.empty-state h1 em{font-style:normal;color:#f26963}.empty-state p{font-size:clamp(12px,1.15vw,15px);color:#718096;line-height:1.6;max-width:445px;margin:0}.empty-ctas{margin:23px 0 18px;display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:center}.empty-state .empty-hint{font-size:11px;color:#8b99ab}.drop-overlay{position:absolute;inset:18px;border:3px dashed #fb735e;border-radius:17px;background:#ebf6f3f2;color:#233e49;display:none;flex-direction:column;align-items:center;justify-content:center;gap:12px;z-index:6;pointer-events:none}.drop-overlay.show{display:flex}.drop-overlay svg{width:55px;height:55px;color:#f26b60}.drop-overlay strong{font-size:23px}.drop-overlay span{font-size:14px}
.editor-bottombar{height:42px;flex:0 0 42px;background:#192636;border-top:1px solid #314255;display:flex;align-items:center;justify-content:space-between;padding:0 15px;color:#90a3b9;gap:8px}.editor-tip,.bottom-actions{display:flex;gap:8px;align-items:center;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.editor-tip svg{color:#f6a576;width:15px;height:15px;flex:none}.editor-tip span{overflow:hidden;text-overflow:ellipsis}.bottom-actions{flex:none;font-size:10px}.link-button{padding:2px;border:0;background:transparent;color:#a6bcd7;display:flex;align-items:center;gap:5px;font-size:10px}.link-button:hover{text-decoration:underline}.link-button svg{width:14px;height:14px}.tiny-divider{height:14px;width:1px;background:#435167}
.inspector{flex:0 0 310px;width:310px;display:flex;flex-direction:column;background:#172232;border-left:1px solid #303d51;min-height:0}.inspector-head{height:84px;padding:19px 22px;border-bottom:1px solid #303e52;display:flex;align-items:center;justify-content:space-between;flex:none}.inspector-overline{font-size:9px;letter-spacing:2.1px;font-weight:850;color:#ef856f}.inspector h2{font-size:18px;font-weight:850;margin:6px 0 0;letter-spacing:-.35px}.inspector-content{flex:1;overflow-y:auto;padding:21px 21px 14px;scrollbar-width:thin;scrollbar-color:#445773 transparent}.inspector-empty-icon{width:48px;height:48px;display:grid;place-items:center;border-radius:14px;background:#30465a;color:#f9a68c;margin:10px auto 17px}.inspector-empty-icon svg{width:25px;height:25px}.inspector-empty{text-align:center}.inspector-empty h3{font-size:16px;letter-spacing:-.3px;margin:4px 0 10px}.inspector-empty>p{font-size:12px;color:#99a9bc;line-height:1.6;margin:0 auto 20px;max-width:240px}.preset-preview{position:relative;overflow:hidden;text-align:left;border-radius:12px;border:2px solid #f47765;background:#f7fbff;padding:13px 12px 11px 16px;color:#263648;margin:0 2px 20px;transform:rotate(-2deg);box-shadow:0 12px 20px #0002}.preset-preview .preset-stripe{position:absolute;inset:0 0 auto;background:#e96960;height:6px}.preset-preview strong{display:block;font-size:13px}.preset-preview p{font-size:10px;color:#647387;margin:7px 0 0}.full-width{width:100%}.inspector-footer{border-top:1px solid #324156;padding:16px 19px 21px;flex:none;background:#182638;position:relative}.footer-spark{float:left;color:#fbd380;font-size:24px;margin:0 12px 10px 0}.inspector-footer span{font-size:10px;color:#f2b68c;letter-spacing:1.5px;font-weight:900}.inspector-footer p{color:#97a9c0;font-size:11px;line-height:1.5;margin:5px 0 0}
.field-section{margin-bottom:23px}.field-label,.section-heading{display:block;font-size:11px;font-weight:850;color:#e3edf8;letter-spacing:.3px;margin:0 0 11px}.field-label{font-size:10px;color:#a1b6cf;letter-spacing:1.1px;margin:13px 0 8px}.field-input{width:100%;border:1px solid #41536b;background:#202f43;color:#edf5fc;border-radius:9px;min-height:40px;padding:11px 12px;resize:vertical;font-size:13px;line-height:1.45}.field-input::placeholder{color:#72849b}.field-textarea{min-height:88px}.section-heading{display:flex;justify-content:space-between;align-items:center}.section-heading span{font-size:10px;color:#91a5bc;font-weight:600;letter-spacing:0}.style-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}.style-option{border:1px solid #394b60;border-radius:9px;background:#223146;color:#adbed3;font-size:9px;font-weight:800;padding:7px 4px 8px;display:flex;flex-direction:column;gap:8px;align-items:center;min-width:0}.style-option.active{border-color:#f88471;background:#38404d;color:#fff;box-shadow:inset 0 0 0 1px #f88471}.style-visual{display:flex;flex-direction:column;overflow:hidden;width:42px;height:37px;border-radius:4px;border:1px solid #d4e3ed;box-shadow:0 2px 8px #0002}.style-visual b{height:13px;background:#f36e67}.style-visual i{flex:1;background:#fff}.style-visual.solid b,.style-visual.solid i{background:#f36e67}.style-visual.dark b{background:#f36e67}.style-visual.dark i{background:#263345}.style-visual.outline{border:3px solid #f36e67}.style-visual.outline b,.style-visual.outline i{background:#fff}.swatches{display:grid;grid-template-columns:repeat(6,1fr);gap:9px}.swatch{width:32px;height:32px;justify-self:center;border:3px solid transparent;border-radius:11px;box-shadow:inset 0 0 0 1px #ffffff25;transition:transform .1s}.swatch.active{outline:2px solid #fff;outline-offset:2px}.swatch:hover{transform:scale(1.1)}.custom-color-label{display:flex;justify-content:space-between;align-items:center;color:#91a5bc;font-size:11px;margin-top:15px}.custom-color-label input{width:45px;height:29px;border:1px solid #617189;background:transparent;border-radius:5px;padding:2px;cursor:pointer}.range-header{display:flex;align-items:center;justify-content:space-between}.range-header span{background:#263d53;color:#b9cee5;font-size:11px;padding:4px 8px;border-radius:6px;font-variant-numeric:tabular-nums}input[type="range"]{width:100%;accent-color:#ef7866;cursor:pointer}.object-actions{margin-top:17px;display:grid;gap:9px}
.mobile-toolbar{display:none}.modal{padding:0;border:1px solid #45566c;border-radius:17px;background:#192637;color:#e9f2fa;width:min(720px,calc(100vw - 25px));max-height:min(83dvh,800px);box-shadow:0 26px 100px #0008;overflow:auto}.modal::backdrop{background:#0a0f18bc;backdrop-filter:blur(5px)}.modal-inner{padding:25px}.modal-head{display:flex;align-items:start;justify-content:space-between;gap:12px}.modal-head h2{font-size:24px;letter-spacing:-.65px;margin:8px 0}.modal-head p{color:#93a7be;font-size:12px;margin:0}.modal-toolbar{display:flex;gap:10px;flex-wrap:wrap;margin:25px 0 21px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(168px,1fr));gap:13px;max-height:44dvh;overflow:auto}.project-card{border:1px solid #45566b;border-radius:12px;overflow:hidden;background:#233246;min-width:0}.project-card.active{border-color:#f47a68}.project-preview{width:100%;aspect-ratio:1.4;object-fit:cover;background:#c4d0db;display:grid;place-items:center;color:#56718c}.project-preview svg{width:50px;height:50px}.project-card-body{padding:10px}.project-card-title{font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.project-card-date{font-size:10px;color:#8ca1b9;margin:5px 0 10px}.project-card-buttons{display:flex;gap:7px}.project-card-buttons button{font-size:10px;padding:6px 10px;min-height:33px;flex:1}.project-card-buttons .delete-project{flex:0 0 34px;padding:6px}.project-card-buttons svg{width:14px;height:14px}.library-empty{grid-column:1/-1;text-align:center;padding:45px 16px;color:#93a5bd;background:#223246;border:1px dashed #506078;border-radius:12px}.library-empty svg{margin:auto auto 14px;width:35px;height:35px}.modal-note{font-size:11px;color:#8095ae;line-height:1.6;margin:16px 0 0}.small-modal{max-width:475px}.install-instructions{background:#233348;border:1px solid #3f556d;border-radius:12px;padding:18px;color:#c4d5e9;font-size:14px;line-height:1.65;margin:20px 0}.install-instructions strong{color:#fff}.install-instructions ol{padding-left:23px}.toast{position:fixed;bottom:35px;left:50%;transform:translate(-50%,18px);background:#1d3045;border:1px solid #507086;border-radius:10px;box-shadow:0 10px 45px #0005;color:#f6faff;padding:12px 19px;font-size:13px;font-weight:750;z-index:50;opacity:0;pointer-events:none;transition:.22s;max-width:min(90vw,500px);text-align:center}.toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:1200px){.topbar{gap:15px;padding:0 15px}.brand{flex-basis:205px}.inspector{width:285px;flex-basis:285px}.inspector-content{padding:16px}.selection-meta{display:none}}
@media(max-width:1000px){.brand{flex-basis:auto}.brand-name{font-size:18px}.brand-sub{display:none}.topbar{height:66px;flex-basis:66px}.project-heading{flex:1}.desktop-label{display:none}.top-actions{gap:5px}.top-actions .btn-subtle{min-width:41px;padding:9px}.tool-rail{width:72px;flex-basis:72px}.tool{width:53px}.inspector{width:260px;flex-basis:260px}}
@media(max-width:750px){.app-shell{min-height:0}.topbar{height:62px;flex-basis:62px;padding:0 10px;gap:9px}.brand-mark{width:38px;height:38px;border-radius:11px}.brand-mark svg{width:24px;height:24px}.brand-name{font-size:15px}.brand{gap:8px}.project-heading{flex:1;min-width:0}.project-heading input{font-size:12px;width:100%;padding:3px 0}.save-indicator{font-size:9px;padding-left:0}.top-actions{gap:3px}.top-actions .btn{min-height:38px}.top-actions #newBtn,.top-actions #installBtn,.top-actions .top-divider{display:none}.top-actions #exportBtn{min-width:39px;padding:9px}.top-actions #exportBtn span{display:none}.workspace{flex:1}.tool-rail{display:none}.editor-topbar{height:47px;flex-basis:47px;padding:0 8px}.editor-file{font-size:10px}.editor-controls{gap:0}.editor-controls .icon-btn{width:33px;height:33px}.editor-controls .controls-separator{margin:0 2px}.mobile-only{display:inline-grid!important}.inspector{position:fixed;left:0;right:0;bottom:0;width:100%;height:min(77dvh,680px);border:1px solid #50647a;border-radius:19px 19px 0 0;z-index:30;transform:translateY(105%);transition:transform .2s ease;box-shadow:0 -15px 65px #050a17a6}.inspector.open{transform:translateY(0)}.inspector-head{height:69px;padding:13px 21px}.inspector-content{padding:15px 20px}.inspector-footer{display:none}.inspector.open:before{content:"";width:38px;height:4px;border-radius:4px;background:#7890a8;position:absolute;top:7px;left:calc(50% - 19px)}.inspector-head{padding-top:19px}.style-grid{grid-template-columns:repeat(4,1fr)}.swatches{grid-template-columns:repeat(8,1fr)}.mobile-toolbar{display:flex;flex:0 0 auto;max-width:100%;overflow-x:auto;background:#172333;border-top:1px solid #36485b;gap:5px;padding:7px 7px calc(6px + var(--safe-bottom));scrollbar-width:thin;scroll-snap-type:x proximity}.mobile-toolbar .tool{min-width:56px;width:56px;min-height:52px;scroll-snap-align:start}.mobile-toolbar .tool svg{width:21px;height:21px}.mobile-toolbar .tool span{font-size:9px}.stage{min-height:100px}.editor-bottombar{height:33px;flex-basis:33px;padding:0 9px}.editor-tip,.bottom-actions{font-size:9px}.bottom-actions #objectCount,.bottom-actions .tiny-divider{display:none}.toast{bottom:calc(85px + var(--safe-bottom))}.empty-art{width:230px;height:161px}.empty-paper{inset:9px 29px 13px}.empty-photo{width:72px;height:74px}.empty-note{font-size:9px;padding:11px}.empty-arrow{height:45px}.empty-state h1{font-size:clamp(24px,7.2vw,35px)}.empty-state p{font-size:12px}.empty-state{padding:10px 15px}.empty-ctas{margin:17px 0 10px}.btn-large{padding:12px 13px;min-height:44px;font-size:12px}.empty-hint{max-width:250px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.modal-inner{padding:17px}.modal-toolbar{margin:18px 0;gap:7px}.modal-toolbar .btn{padding:9px;font-size:11px}.modal-head h2{font-size:21px}}
@media(max-width:390px){.brand-name{font-size:13px}.brand-mark{width:34px;height:34px}.project-heading{max-width:125px}.editor-controls .icon-btn{width:29px;height:32px}.editor-controls .controls-separator{margin:0}.zoom-label{min-width:30px}.empty-art{height:139px;transform:scale(.9);margin:-6px 0}.empty-eyebrow{font-size:8px}.empty-state .empty-hint{display:none}.top-actions #shareBtn{display:none}.swatches{grid-template-columns:repeat(6,1fr)}}
@media(max-height:600px) and (min-width:751px){.empty-art{height:120px;transform:scale(.7);margin:-13px}.empty-state h1{font-size:27px}.empty-ctas{margin:12px 0}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important}}

/* v1.1 — quick annotation editor; touch-friendly and safe-area aware. */
.stage{position:relative}.quick-edit{position:absolute;top:15px;right:15px;display:flex;align-items:center;gap:8px;background:#f36d6b;color:white;border:2px solid #fff;border-radius:11px;padding:10px 14px;font-size:13px;font-weight:850;box-shadow:0 6px 24px #0005;z-index:6;cursor:pointer}.quick-edit svg{width:18px;height:18px}.quick-edit.hidden{display:none}
.edit-modal{width:min(520px,calc(100vw - 24px));max-height:min(86dvh,850px);overscroll-behavior:contain}.edit-modal .modal-inner{display:block}.edit-modal .modal-head{margin-bottom:17px}.edit-fields{margin-bottom:16px}.edit-modal .field-label{margin:13px 0 8px}.edit-options{display:grid;gap:9px}.edit-colors{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:7px;margin:13px 0}.edit-colors .swatch{width:30px;height:30px}.edit-modal-actions{display:flex;gap:10px;margin-top:23px;justify-content:flex-end}.edit-modal-actions .btn{flex:1;min-height:46px}.edit-modal select.field-input{color-scheme:dark}.edit-modal output{color:#ffab8c;margin-left:8px;font-variant-numeric:tabular-nums}
@media(max-width:750px){.quick-edit{top:10px;right:10px;font-size:12px;padding:9px 12px}.edit-modal{max-height:calc(90dvh - env(safe-area-inset-top));margin:auto}.edit-modal .modal-inner{padding:16px 18px calc(14px + env(safe-area-inset-bottom))}.edit-colors{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}.edit-colors .swatch{width:31px;height:31px}.edit-modal .field-input{font-size:16px}.edit-modal-actions{position:sticky;bottom:0;background:#192637;padding-top:12px;padding-bottom:5px}}
