:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#e6eaf0;background:#10141a;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;--bg: #10141a;--panel: #171c24;--panel-2: #1b222c;--panel-3: #202936;--border: #2b3441;--border-soft: #252d38;--text: #e7ecf3;--muted: #8b96a6;--muted-2: #667181;--accent: #a7e46e;--accent-2: #82c94a;--blue: #80a9db;--danger: #e37c7c}*{box-sizing:border-box}html,body,#root{margin:0;width:100%;height:100%;overflow:hidden}body{min-width:320px}button,input,select{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #9fce72;outline-offset:2px}.app-shell{height:100%;display:flex;flex-direction:column;background:var(--bg);min-width:320px}.topbar{height:58px;flex:0 0 58px;display:flex;align-items:center;gap:24px;padding:0 18px;background:#151a22;border-bottom:1px solid var(--border);z-index:20}.brand-lockup{display:flex;align-items:center;gap:10px;width:222px;flex:0 0 222px}.brand-mark{width:32px;height:32px;display:grid;place-items:center;color:#172014;background:var(--accent);border-radius:9px;box-shadow:0 0 18px #a7e46e20}.brand-title{font-family:Inter,ui-sans-serif,system-ui,sans-serif;font-size:13px;font-weight:700;letter-spacing:.09em;line-height:1.05;color:#f0f4f8;white-space:nowrap}.brand-title span{color:var(--accent)}.brand-title small{display:block;margin-top:4px;color:#778292;font:500 8px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.2em}.project-name-wrap{display:flex;align-items:center;gap:9px;min-width:150px;max-width:330px;flex:1}.project-name-wrap input{min-width:0;width:100%;max-width:280px;background:transparent;border:1px solid transparent;border-radius:6px;color:#d9e0e9;padding:7px 9px;font-size:12px;font-weight:600}.project-name-wrap input:hover,.project-name-wrap input:focus{border-color:var(--border);background:#11161d;outline:none}.saved-dot{width:6px;height:6px;flex:0 0 6px;border-radius:50%;background:#8dcf63;box-shadow:0 0 9px #8dcf6370}.top-actions{display:flex;align-items:center;gap:7px;margin-left:auto}.top-button,.primary-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:33px;border:1px solid transparent;border-radius:6px;padding:0 10px;background:transparent;color:#aeb8c5;font-size:11px;font-weight:600;cursor:pointer;transition:.15s ease;white-space:nowrap}.top-button:hover{color:#f1f5f9;background:#222a35;border-color:#303a48}.primary-button{color:#172113;background:var(--accent);border-color:var(--accent);padding:0 12px;font-weight:700}.primary-button:hover{background:#b6ef82}.file-button{position:relative;overflow:hidden}.file-button input,.import-reference input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.icon-button{border:1px solid transparent;width:30px;height:30px;border-radius:6px;display:inline-grid;place-items:center;color:#8995a5;background:transparent;cursor:pointer;transition:.15s ease}.icon-button:hover:not(:disabled){color:#f1f5f9;background:#28313d;border-color:#354152}.icon-button:disabled{opacity:.35;cursor:default}.icon-button.small{width:26px;height:26px}.settings-trigger{margin-left:2px}.export-wrap{position:relative}.export-menu{position:absolute;top:41px;right:0;width:235px;background:#1b222c;border:1px solid #35404d;border-radius:9px;padding:6px;z-index:50;box-shadow:0 14px 35px #0008}.export-menu button{width:100%;display:flex;align-items:center;gap:10px;padding:9px;border:0;border-radius:6px;background:transparent;color:#a7e46e;text-align:left;cursor:pointer}.export-menu button:hover{background:#27313d}.export-menu button span{display:flex;flex-direction:column;gap:3px;color:#e7ecf3;font-size:11px;font-weight:600}.export-menu button small{color:#8793a3;font-size:9px;font-weight:400}.menu-note{margin:5px 7px 4px;padding-top:8px;border-top:1px solid #303a47;color:#7b8797;font-size:9px}.workspace{display:grid;grid-template-columns:66px minmax(0,1fr) 248px;flex:1;min-height:0;overflow:hidden}.tool-rail{background:#171c24;border-right:1px solid var(--border);display:flex;flex-direction:column;align-items:center;padding:12px 7px;gap:11px;z-index:5}.rail-group{display:flex;flex-direction:column;gap:5px;width:100%}.tool-button{width:100%;height:53px;display:flex;flex-direction:column;gap:5px;align-items:center;justify-content:center;background:transparent;border:1px solid transparent;border-radius:7px;color:#8490a0;cursor:pointer;transition:.15s ease}.tool-button span{font-size:9px;font-weight:600}.tool-button:hover{color:#e4eaf1;background:#232b36}.tool-button.active{color:var(--accent);background:#293429;border-color:#3c5334;box-shadow:inset 0 0 0 1px #a7e46e12}.rail-divider{width:30px;height:1px;background:#303946}.rail-small{height:46px}.rail-bottom{margin-top:auto;width:100%}.center-column{display:flex;flex-direction:column;min-width:0;min-height:0;background:#11161d}.options-bar{height:48px;flex:0 0 48px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 13px;background:#171d26;border-bottom:1px solid var(--border);z-index:4}.tool-context,.canvas-actions{display:flex;align-items:center;gap:9px;min-width:0}.context-tool{color:var(--accent);display:inline-flex;align-items:center}.context-label{font-size:10px;color:#d7dee7;font-weight:600;white-space:nowrap}.context-divider{width:1px;height:19px;background:#303a47;flex:0 0 1px}.compact-control{display:flex;align-items:center;gap:7px;color:#8491a1;font-size:10px;white-space:nowrap}.compact-control input[type=range]{width:74px}.compact-control b{min-width:31px;color:#c8d1dc;font:10px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}input[type=range]{accent-color:var(--accent);height:3px;cursor:pointer}.check-control{display:inline-flex;align-items:center;gap:5px;font-size:10px;color:#93a0ae;white-space:nowrap}.check-control input{accent-color:var(--accent)}.canvas-actions{gap:3px}.zoom-label{min-width:37px;text-align:center;color:#aab5c3;font:10px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.viewport{position:relative;flex:1 1 auto;min-height:150px;overflow:hidden;background:#11161d;touch-action:none;user-select:none}.viewport-grid{position:absolute;inset:0;opacity:.36;background-image:linear-gradient(#26303d 1px,transparent 1px),linear-gradient(90deg,#26303d 1px,transparent 1px);background-size:26px 26px;background-position:center center;pointer-events:none}.canvas-origin{position:absolute;left:50%;top:50%;transform-origin:center center;box-shadow:0 8px 34px #0008;will-change:transform}.drawing-canvas{display:block;width:100%;height:100%;background-color:#f6f6f6;background-image:linear-gradient(45deg,#dcdfe2 25%,transparent 25%),linear-gradient(-45deg,#dcdfe2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#dcdfe2 75%),linear-gradient(-45deg,transparent 75%,#dcdfe2 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0px;cursor:crosshair;touch-action:none}.canvas-origin:has(.drawing-canvas){outline:1px solid #778493}.canvas-edge{position:absolute;inset:0;border:1px solid #f2f5f855;pointer-events:none}.viewport-hud{position:absolute;left:15px;bottom:13px;display:flex;align-items:center;gap:9px;padding:6px 9px;border:1px solid #2c3542;background:#171d26dd;border-radius:6px;color:#97a3b2;font:9px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;backdrop-filter:blur(8px)}.viewport-hud i{width:3px;height:3px;border-radius:50%;background:#657181}.viewport-shortcut{position:absolute;right:15px;bottom:16px;color:#697687;font:8px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.06em}.timeline-panel{height:190px;flex:0 0 190px;background:#171d26;border-top:1px solid var(--border);display:flex;flex-direction:column;min-height:0}.timeline-header{min-height:43px;height:auto;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 12px;padding:6px 14px;border-bottom:1px solid #29323e}.timeline-title{min-width:0;display:flex;align-items:center;flex-wrap:wrap;gap:6px;color:#dfe5ed;font-size:11px}.timeline-title svg{color:var(--accent)}.timeline-title strong{font-weight:700;white-space:nowrap}.timeline-bulk-actions,.timeline-selection-actions{display:flex;align-items:center;flex-wrap:wrap;gap:4px}.timeline-selection-actions{padding-left:7px;border-left:1px solid #35404d}.selection-summary{max-width:250px;overflow:hidden;color:#b8d79c;font:8px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.02em;text-overflow:ellipsis;white-space:nowrap}.tiny-text-button.selected-action{border-color:#536b42;color:#c7e6a8;background:#273226}.tiny-text-button.selected-action:hover{border-color:#8dbb5c;color:#edffdb;background:#33432d}.clear-selection-button{width:20px;height:20px;border:1px solid #465260;border-radius:4px;color:#aab6c4;background:#222b35;cursor:pointer;line-height:1}.clear-selection-button:hover{color:#fff;border-color:#9a6b6b;background:#38272d}.frame-count{margin-left:4px;padding:3px 5px;border-radius:4px;color:#8692a1;background:#252e39;font:8px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.08em}.timeline-controls{display:flex;align-items:center;gap:5px}.fps-control{display:flex;align-items:center;gap:5px;margin-right:3px;color:#8793a3;font-size:9px}.fps-control input{width:36px;height:25px;text-align:center;border:1px solid #333e4c;border-radius:4px;background:#202833;color:#dbe3ec;font:10px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;outline:none}.small-divider{width:1px;height:18px;background:#35404d;margin:0 4px}.play-button{width:29px;height:27px;display:grid;place-items:center;border:1px solid #597b43;border-radius:6px;color:#1b2915;background:var(--accent);cursor:pointer}.play-button:hover{background:#b6ef82}.play-button.playing{color:var(--accent);background:#34442f}.onion-toggle.selected{color:var(--accent);background:#2a3828;border-color:#3c5334}.danger-hover:hover{color:#f08c8c!important;background:#432c32!important;border-color:#68434b!important}.timeline-scroll{min-height:0;flex:1;overflow-x:auto;overflow-y:hidden;padding:6px 13px 5px;scrollbar-color:#394554 #171d26;scrollbar-width:thin}.timeline-track{display:flex;align-items:flex-start;gap:8px;min-width:max-content}.frame-cell{width:76px;flex:0 0 76px;padding:0;border:1px solid #343f4d;border-radius:6px;background:#202833;overflow:hidden;text-align:left;transition:.13s ease}.frame-cell:hover{border-color:#66778d;transform:translateY(-1px)}.frame-main{display:block;width:100%;padding:0;border:0;color:inherit;background:transparent;text-align:left;cursor:pointer}.frame-main:focus-visible{outline:2px solid var(--accent);outline-offset:-3px}.frame-cell.range-selected{border-color:#6d91bc;background:#263447;box-shadow:inset 0 0 0 1px #6d91bc26}.frame-cell.selected{border:2px solid var(--accent);background:#29362a;box-shadow:0 0 0 1px #a7e46e20}.frame-cell.preview-active{border:2px solid #82aee1}.frame-thumb{height:60px;position:relative;display:grid;place-items:center;background-color:#e7e9eb;background-image:linear-gradient(45deg,#d5d9dd 25%,transparent 25%),linear-gradient(-45deg,#d5d9dd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d5d9dd 75%),linear-gradient(-45deg,transparent 75%,#d5d9dd 75%);background-size:12px 12px;background-position:0 0,0 6px,6px -6px,-6px 0px}.frame-number{position:absolute;top:4px;left:5px;color:#586575;font:8px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.thumb-art{width:26px;height:39px;border:1px dashed #b3bbc4;border-radius:42% 42% 28% 28%;opacity:.22}.thumb-cross{position:absolute;width:1px;height:47px;background:#9ba6b3;transform:translate(12px,-4px);opacity:.5}.frame-label{display:block;padding:5px 6px 6px;color:#aab5c2;font-size:8px;font-weight:600}.frame-cell.selected .frame-label{color:#d4ebc1}.frame-cell.range-selected:not(.selected) .frame-label{color:#c7d9ef}.add-frame-cell{width:76px;height:101px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:1px dashed #465260;border-radius:6px;color:#7f8c9c;background:#1b222c;font-size:8px;cursor:pointer}.add-frame-cell:hover{color:var(--accent);border-color:#799f58;background:#232f25}.timeline-footer{height:25px;flex:0 0 25px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 14px;border-top:1px solid #28313d;color:#758192;font:8px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.timeline-footer-hint,.timeline-frame-limit{flex:0 0 auto;white-space:nowrap}.timeline-footer-hint{max-width:48%;overflow:hidden;text-overflow:ellipsis}.timeline-scrubber{display:flex;align-items:center;gap:9px;flex:1 1 auto;min-width:90px;max-width:760px;margin:0 auto}.timeline-scrubber-frame,.timeline-scrubber-time{flex:0 0 auto;min-width:34px;color:#aab6c4;font:8px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;white-space:nowrap}.timeline-scrubber-time{min-width:38px;text-align:right;color:#8290a1}.timeline-scrubber-range{appearance:none;-webkit-appearance:none;display:block;flex:1 1 auto;width:100%;min-width:35px;height:4px!important;margin:0;padding:0;border:0;border-radius:999px;outline:none;cursor:pointer;touch-action:pan-y}.timeline-scrubber-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:11px;height:11px;border:1px solid #d7f8bd;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px #a6e56e25}.timeline-scrubber-range::-moz-range-thumb{width:10px;height:10px;border:1px solid #d7f8bd;border-radius:50%;background:var(--accent);box-shadow:0 0 0 2px #a6e56e25}.timeline-scrubber-range:focus-visible{outline:1px solid #9edc70;outline-offset:5px}.properties-panel{background:#171c24;border-left:1px solid var(--border);display:flex;flex-direction:column;min-height:0;overflow-y:auto;z-index:5}.panel-heading{height:47px;flex:0 0 47px;display:flex;align-items:center;justify-content:space-between;padding:0 13px;border-bottom:1px solid var(--border)}.panel-heading>div{display:flex;align-items:center;gap:8px;font-size:11px}.panel-heading svg{color:var(--accent)}.panel-heading strong{color:#e0e6ed}.layer-list{padding:9px 9px 7px;display:flex;flex-direction:column;gap:3px}.layer-row{position:relative;display:flex;align-items:center;gap:7px;height:43px;padding:4px 6px;border:1px solid transparent;border-radius:6px;background:transparent;cursor:pointer}.layer-row:hover{background:#202833}.layer-row.selected{background:#263328;border-color:#40563a}.layer-visibility,.layer-lock{width:21px;height:24px;flex:0 0 21px;display:grid;place-items:center;border:0;background:transparent;color:#8f9bab;padding:0;cursor:pointer}.layer-visibility:hover,.layer-lock:hover{color:var(--accent)}.layer-thumb{width:31px;height:30px;flex:0 0 31px;display:grid;place-items:center;border:1px solid #3a4654;border-radius:4px;color:#9cabbd;background:#222b36}.layer-thumb.reference-thumb{color:#8ca9cd;background:#202c3b}.layer-thumb-mark{width:17px;height:17px;border:1px solid #c5d0dc;border-radius:2px;background:linear-gradient(135deg,transparent 45%,#bdc9d7 46%,#bdc9d7 52%,transparent 53%);opacity:.7}.layer-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px}.layer-info span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#d2dbe5;font-size:10px;font-weight:600}.layer-info small{color:#778495;font:7px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.08em}.layer-row.selected .layer-info span{color:#e4f0dc}.layer-row.selected .layer-selected-mark{position:absolute;left:-1px;top:9px;bottom:9px;width:2px;border-radius:2px;background:var(--accent)}.layer-actions{display:flex;flex-direction:column;gap:7px;padding:8px 12px 10px;border-top:1px solid #28313d;border-bottom:1px solid #28313d}.import-reference{height:30px;position:relative;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #3b4858;border-radius:5px;color:#b8c5d4;background:#202833;font-size:9px;font-weight:600;cursor:pointer}.import-reference:hover{color:var(--accent);border-color:#607c4e}.layer-action-buttons{display:flex;gap:5px}.layer-action-buttons button{flex:1;height:25px;display:grid;place-items:center;border:1px solid #303b49;border-radius:4px;background:#1e2630;color:#8794a4;cursor:pointer}.layer-action-buttons button:hover{color:#dce5ee;background:#2b3542}.layer-action-buttons button:last-child:hover{color:#ef8c8c}.layer-properties{padding:13px 13px 12px;border-bottom:1px solid #28313d}.subsection-title{margin-bottom:11px;color:#7f8c9c;font:8px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.12em}.layer-name-field{display:flex;flex-direction:column;gap:5px;color:#8996a7;font-size:9px}.layer-name-field input{width:100%;height:28px;padding:0 8px;border:1px solid #34404e;border-radius:4px;background:#111820;color:#dce4ed;font-size:10px;outline:none}.property-slider{display:grid;grid-template-columns:1fr auto;gap:6px;margin-top:12px;color:#8996a7;font-size:9px}.property-slider b{color:#cbd5df;font:9px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.property-slider input{grid-column:1 / -1;width:100%}.muted-hint{margin:10px 0 0;color:#788697;font-size:9px;line-height:1.5}.panel-spacer{min-height:8px;flex:1}.input-mode-card,.onion-card{margin:0 10px 10px;padding:10px;border:1px solid #303b48;border-radius:7px;background:#1d252f}.input-card-title{display:flex;align-items:center;gap:6px;margin-bottom:8px;color:#8c9aaa;font:8px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.1em}.input-card-title svg{color:#9dcf70}.input-mode-card select{width:100%;height:29px;border:1px solid #3b4857;border-radius:4px;padding:0 7px;color:#d6dfe8;background:#141b23;font-size:9px;outline:none}.input-mode-card p,.onion-card p{margin:7px 0 0;color:#788697;font-size:8px;line-height:1.5}.onion-card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.onion-card-head>span{display:flex;align-items:center;gap:6px;color:#a9c88f;font:8px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.1em}.onion-card-head>span svg{color:var(--accent)}.switch{width:28px;height:16px;padding:2px;border:1px solid #475363;border-radius:20px;background:#303a47;cursor:pointer}.switch i{display:block;width:10px;height:10px;border-radius:50%;background:#8793a1;transition:.15s}.switch.on{background:#4d6c3b;border-color:#71994f}.switch.on i{transform:translate(12px);background:#c6f19a}.onion-card label{display:flex;justify-content:space-between;color:#8e9aaa;font-size:9px}.onion-card label b{color:#c6d1dc;font:9px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.onion-card input{width:100%;margin-top:8px}.settings-popover{position:fixed;z-index:60;top:66px;right:18px;width:240px;padding:12px;border:1px solid #3a4654;border-radius:9px;background:#1d252f;box-shadow:0 15px 35px #0008}.popover-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px;color:#e6ecf3;font-size:11px}.settings-size{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px solid #303a47;color:#91a0af;font-size:9px}.settings-size b{color:#dce4ec;font:9px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.settings-popover p{margin:10px 0 0;color:#758394;font-size:9px;line-height:1.5}.toast-message{position:fixed;z-index:100;left:50%;bottom:44px;transform:translate(-50%);display:flex;align-items:center;gap:8px;padding:9px 13px;border:1px solid #465a3d;border-radius:7px;color:#dff2ce;background:#263625;box-shadow:0 8px 24px #0008;font-size:10px;font-weight:600;white-space:nowrap}.toast-message svg{color:var(--accent)}.statusbar{height:23px;flex:0 0 23px;display:flex;align-items:center;justify-content:space-between;padding:0 11px;border-top:1px solid #2a333f;background:#131820;color:#6f7b8b;font:7px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.06em}.statusbar>span{display:flex;align-items:center;gap:6px}.statusbar b{color:#a5b1bf;font-weight:500}.status-light{width:5px;height:5px;border-radius:50%;background:#9edb6b;box-shadow:0 0 7px #9edb6b77}@media(max-width:1050px){.workspace{grid-template-columns:58px minmax(0,1fr) 218px}.topbar{gap:13px;padding:0 12px}.brand-lockup{width:195px;flex-basis:195px}.pressure-control,.pressure-divider{display:none}}@media(max-width:780px){.topbar{height:52px;flex-basis:52px;gap:7px;padding:0 8px}.brand-lockup{width:auto;flex:0 0 auto;gap:7px}.brand-mark{width:29px;height:29px}.brand-title{font-size:10px}.brand-title small{font-size:6px}.project-name-wrap{display:none}.top-actions{gap:3px}.top-button{width:31px;padding:0}.top-button span{display:none}.primary-button{width:34px;padding:0;font-size:0;gap:0}.primary-button svg:last-child{display:none}.primary-button svg:first-child{width:16px}.workspace{grid-template-columns:48px minmax(0,1fr)}.properties-panel{position:fixed;z-index:15;right:0;top:52px;bottom:23px;width:min(230px,78vw);box-shadow:-10px 0 28px #0005;transform:translate(calc(100% + -0px));transition:transform .22s}.properties-panel:focus-within{transform:translate(0)}.tool-rail{padding:8px 5px}.tool-button{height:47px}.options-bar{padding:0 7px;height:43px;flex-basis:43px}.context-label{display:none}.compact-control{gap:4px;font-size:8px}.compact-control input[type=range]{width:50px}.compact-control b{font-size:8px;min-width:26px}.canvas-actions{gap:0}.timeline-panel{height:166px;flex-basis:166px}.timeline-header{padding:0 7px}.timeline-title{gap:5px;font-size:9px}.timeline-header{align-items:flex-start}.timeline-selection-actions{padding-left:0;border-left:0}.timeline-bulk-actions,.frame-count{display:none}.timeline-controls{gap:2px}.timeline-footer-hint,.viewport-shortcut{display:none}}@media(max-width:480px){.workspace{grid-template-columns:43px minmax(0,1fr)}.brand-title{display:none}.topbar{gap:4px}.top-actions .top-button:nth-child(1){display:none}.options-bar{gap:4px}.context-divider{display:none}.compact-control input[type=range]{width:38px}.compact-control b{min-width:22px}.canvas-actions .icon-button{width:25px}.zoom-label{min-width:30px;font-size:8px}.timeline-title strong{display:none}.timeline-footer{gap:6px;padding:0 7px}.timeline-scrubber{gap:5px;min-width:75px}.timeline-scrubber-frame{min-width:25px}.timeline-scrubber-time{min-width:32px}.timeline-frame-limit{font-size:7px}.fps-control{font-size:8px}.fps-control input{width:31px}.small-divider{margin:0 1px}.statusbar>span:last-child{display:none}}.mobile-layers-trigger{display:none}.import-ai-overlay{position:relative;height:29px;display:flex;align-items:center;justify-content:center;gap:7px;border:1px solid #4a513d;border-radius:5px;color:#bbd89e;background:#252d25;font-size:9px;font-weight:600;cursor:pointer;overflow:hidden}.import-ai-overlay:hover{color:#d8f1bf;border-color:#7c985e;background:#2d3a2a}.import-ai-overlay input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.frame-thumb>img{width:100%;height:100%;object-fit:contain}@media(max-width:780px){.mobile-layers-trigger{display:inline-grid}.properties-panel{transform:translate(100%)}.properties-panel.open{transform:translate(0)}}.reference-transform-panel{padding:12px 13px 13px;border-bottom:1px solid #28313d;background:#19212b}.reference-transform-panel .subsection-title{color:#9bb8df}.reference-coordinate-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px}.reference-coordinate-row label{display:flex;flex-direction:column;gap:5px;color:#8996a7;font-size:9px}.reference-coordinate-row input{width:100%;min-width:0;height:28px;padding:0 7px;border:1px solid #34404e;border-radius:4px;background:#111820;color:#dce4ed;font:10px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.reference-actions{display:grid;grid-template-columns:.85fr 1.15fr;gap:6px;margin-top:10px}.reference-actions button{min-width:0;height:29px;padding:0 6px;border:1px solid #3b4858;border-radius:5px;color:#b9c5d3;background:#202833;font-size:9px;font-weight:600;cursor:pointer}.reference-actions button:hover{border-color:#6984aa;color:#e5edf7;background:#293746}.reference-actions .apply-all-reference{border-color:#536b42;color:#d5edc2;background:#2a3828}.reference-actions .apply-all-reference:hover{border-color:#8bb96a;background:#35472f}.reference-transform-panel .muted-hint{margin-top:9px}.drawing-canvas.reference-move-active{cursor:grab}.drawing-canvas.reference-move-active:active{cursor:grabbing}.reference-import-overlay{position:fixed;inset:0;z-index:120;display:grid;place-items:center;padding:18px;background:#05080dcc;backdrop-filter:blur(5px)}.reference-import-modal{width:min(620px,100%);max-height:min(82vh,760px);display:flex;flex-direction:column;overflow:hidden;border:1px solid #3a4654;border-radius:12px;background:#171e27;box-shadow:0 24px 70px #000b}.reference-import-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 18px;border-bottom:1px solid #303a47}.reference-import-title-wrap{display:flex;align-items:center;gap:11px;min-width:0}.reference-import-icon{width:37px;height:37px;flex:0 0 37px;display:grid;place-items:center;border:1px solid #506846;border-radius:9px;color:#b8e88f;background:#263525}.reference-import-head h2{margin:0;color:#edf2f7;font:600 15px Inter,ui-sans-serif,system-ui,sans-serif}.reference-import-head p{margin:4px 0 0;color:#8794a5;font-size:10px}.reference-order-notice{display:flex;align-items:flex-start;gap:8px;margin:12px 16px 0;padding:10px 11px;border:1px solid #3c4b3a;border-radius:7px;color:#c6dfb3;background:#202d22;font-size:10px;line-height:1.5}.reference-order-notice svg{flex:0 0 auto;margin-top:1px}.reference-order-notice.manual-needed{border-color:#685637;color:#e6d1a5;background:#30291e}.reference-import-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px 9px}.reference-order-label{display:flex;align-items:center;gap:8px;color:#dce5ee;font-size:11px}.reference-order-label span{padding:4px 6px;border:1px solid #3a4756;border-radius:4px;color:#8fa0b2;font:7px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.06em}.reference-order-actions{display:flex;gap:5px}.reference-order-actions button{display:flex;align-items:center;gap:5px;height:27px;padding:0 8px;border:1px solid #394655;border-radius:5px;color:#aab8c7;background:#202a35;font-size:9px;cursor:pointer}.reference-order-actions button:hover{border-color:#758d63;color:#e4efd9}.reference-import-list{min-height:100px;overflow-y:auto;padding:3px 16px 13px;display:flex;flex-direction:column;gap:5px}.reference-import-item{min-height:54px;display:flex;align-items:center;gap:10px;padding:6px 9px;border:1px solid #2f3a47;border-radius:6px;background:#1c2530;cursor:grab}.reference-import-item:hover{border-color:#526541;background:#222e29}.reference-import-item.dragging{opacity:.48;border-color:#a7e46e}.reference-import-index{width:22px;flex:0 0 22px;color:#9eb58b;font:10px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.reference-import-item>img{width:48px;height:40px;flex:0 0 48px;object-fit:contain;border:1px solid #3a4654;border-radius:4px;background-color:#e7e9eb;background-image:linear-gradient(45deg,#d5d9dd 25%,transparent 25%),linear-gradient(-45deg,#d5d9dd 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#d5d9dd 75%),linear-gradient(-45deg,transparent 75%,#d5d9dd 75%);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.reference-import-file-info{min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}.reference-import-file-info strong{overflow:hidden;color:#dce5ee;font-size:10px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}.reference-import-file-info small{color:#778596;font:8px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace}.reference-drag-hint{color:#627184;font-size:16px;letter-spacing:-3px;cursor:grab}.reference-order-stepper{display:flex;gap:4px}.reference-order-stepper button{width:26px;height:26px;display:grid;place-items:center;border:1px solid #3a4654;border-radius:4px;color:#aab7c5;background:#222c37;cursor:pointer}.reference-order-stepper button:hover:not(:disabled){border-color:#91b873;color:#dff0d1}.reference-order-stepper button:disabled{opacity:.25;cursor:default}.reference-import-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;border-top:1px solid #303a47;background:#151b23}.reference-import-footer>span{color:#8190a1;font-size:9px;line-height:1.5}.reference-import-footer>div{display:flex;gap:7px;flex:0 0 auto}.reference-cancel-button,.reference-confirm-button{height:32px;display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:0 11px;border-radius:5px;font-size:10px;font-weight:600;cursor:pointer}.reference-cancel-button{border:1px solid #3c4856;color:#aeb9c6;background:#202833}.reference-confirm-button{border:1px solid #a7e46e;color:#182313;background:#a7e46e}.reference-confirm-button:hover{background:#b8ee86}@media(max-width:560px){.reference-import-overlay{padding:8px}.reference-import-modal{max-height:90vh}.reference-import-head{padding:12px}.reference-import-toolbar{align-items:flex-start;flex-direction:column;padding:10px 12px 8px}.reference-import-list{padding:3px 10px 10px}.reference-import-footer{align-items:stretch;flex-direction:column;padding:10px 12px}.reference-import-footer>div{justify-content:flex-end}.reference-order-notice{margin:10px 10px 0}}.drawing-canvas.cursor-brush{cursor:crosshair}.drawing-canvas.cursor-eraser{cursor:cell}.drawing-canvas.cursor-hand,.drawing-canvas.cursor-reference{cursor:grab}.drawing-canvas.cursor-eyedropper{cursor:copy}.color-tool-wrap{position:relative;width:100%;flex:0 0 auto}.color-control{width:100%;height:48px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:1px solid transparent;border-radius:7px;color:#8490a0;background:transparent;font-size:9px;font-weight:600;cursor:pointer}.color-control:hover{color:#e4eaf1;background:#232b36}.color-control.active{color:var(--accent);background:#293429;border-color:#3c5334}.color-tool-swatch{width:22px;height:22px;border:2px solid #596675;border-radius:6px;box-shadow:inset 0 0 0 1px #ffffff30}.color-popover{position:absolute;z-index:40;top:-178px;left:calc(100% + 11px);width:326px;max-height:min(570px,calc(100vh - 220px));overflow-y:auto;padding:0 11px 10px;border:1px solid #3b4857;border-radius:9px;background:#1b222c;box-shadow:0 16px 42px #000a;scrollbar-width:thin;scrollbar-color:#465466 #1b222c}.color-popover-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;margin:0 -11px 10px;padding:11px 12px 9px;border-bottom:1px solid #303b48;background:#1b222c}.color-popover-head>div{display:flex;flex-direction:column;gap:3px}.color-popover-head strong{color:#e8eef5;font-size:12px}.color-popover-head small{color:#74869b;font:7px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.12em}.color-popover-close{width:26px;height:26px;display:grid;place-items:center;border:1px solid #394655;border-radius:5px;color:#9eacbb;background:#222c37;cursor:pointer}.color-popover-close:hover{color:#f0f4f8;border-color:#66768a}.brush-color-row{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #344151;border-radius:7px;background:#202a35}.brush-color-input-wrap{width:38px;height:38px;flex:0 0 38px;overflow:hidden;border:1px solid #647386;border-radius:7px;background:#252f3a;cursor:pointer}.brush-color-input-wrap input{width:100%;height:100%;display:block;padding:3px;border:0;background:transparent;cursor:pointer}.brush-color-input-wrap input::-webkit-color-swatch-wrapper{padding:0}.brush-color-input-wrap input::-webkit-color-swatch{border:0;border-radius:4px}.brush-color-value{min-width:0;display:flex;flex-direction:column;gap:4px}.brush-color-value span{color:#8b9aab;font-size:9px}.brush-color-value strong{color:#e3eaf2;font:600 11px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.04em}.color-popover-section{margin-top:5px}.color-history-head{display:flex;justify-content:space-between;align-items:center;gap:5px;margin:11px 0 7px;color:#93a0ae;font:8px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;letter-spacing:.06em}.color-history-head small{color:#6f7e8f}.color-history-head button,.palette-actions button{border:1px solid #3a4654;border-radius:4px;padding:4px 6px;color:#a9bd98;background:#222d28;font-size:8px;cursor:pointer}.color-history-head button:hover,.palette-actions button:hover{border-color:#748d5c;color:#d8edc4}.recent-color-grid{min-height:22px;display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px}.recent-color-grid button{width:100%;height:22px;padding:0;border:1px solid #ffffff55;border-radius:4px;cursor:pointer}.recent-color-grid button:hover{outline:2px solid var(--accent);outline-offset:1px}.empty-color-history{margin:0;padding:8px;border:1px dashed #394655;border-radius:5px;color:#778697;font-size:9px;text-align:center}.anatomy-palette{display:grid;grid-template-columns:1fr 1fr;gap:5px}.anatomy-palette label{min-width:0;display:flex;align-items:center;gap:4px;padding:4px 5px;border:1px solid #303b48;border-radius:4px;background:#18212a}.anatomy-palette label span{flex:1;min-width:0;overflow:hidden;color:#aab6c4;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.anatomy-palette input[type=color]{width:22px;height:20px;flex:0 0 22px;padding:1px;border:1px solid #536071;border-radius:3px;background:#202a35;cursor:pointer}.anatomy-palette label button{border:0;padding:3px 2px;color:#9dcf70;background:transparent;font-size:8px;cursor:pointer}.anatomy-palette label button:hover{color:#d9f5bd}.palette-actions{display:flex;gap:6px;margin-top:10px}.palette-actions button{min-height:25px;flex:1}.color-popover-hint{margin:8px 1px 1px}.frame-flags{display:flex;gap:3px;padding:0 5px 5px}.frame-flags button{flex:1;min-height:18px;padding:1px 2px;border:1px solid #3b4654;border-radius:3px;color:#aab7c5;background:#1b242e;font:7px ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;cursor:pointer}.frame-flags button:hover{border-color:#8aa96d;color:#d8edc4}.frame-flags button.flag-on{color:#b9d99b;border-color:#45573a;background:#222d24}.frame-flags button.flag-off{color:#e49a9a;border-color:#64434a;background:#32262b}.frame-disabled{opacity:.62}.frame-disabled .frame-thumb{filter:grayscale(.8)}.frame-excluded:not(.frame-disabled) .frame-label:after{content:" · EXCLUDED";color:#df9b9b;font-size:6px}.tiny-text-button{margin-left:5px;border:1px solid #354252;border-radius:4px;padding:4px 5px;color:#91a0af;background:#202833;font-size:8px;cursor:pointer}.tiny-text-button:hover{color:#d7e8c8;border-color:#657e50}@media(max-width:760px){.workspace{grid-template-columns:52px minmax(0,1fr)}.properties-panel{position:fixed;top:58px;right:0;bottom:0;width:min(290px,84vw);transform:translate(105%);transition:transform .2s ease;box-shadow:-12px 0 35px #0007}.properties-panel.open{transform:translate(0)}.brand-lockup{width:auto;flex:0 0 auto}.brand-title{font-size:11px}.topbar{gap:8px}.top-button span{display:none}.top-button{padding:0 7px}.tool-context{gap:6px}.context-label,.pressure-divider,.pressure-control{display:none}.compact-control input[type=range]{width:48px}.timeline-panel{height:165px;flex-basis:165px}.timeline-header{padding:5px 7px}.tiny-text-button{display:none}.tiny-text-button.selected-action{display:inline-flex}}@media(max-width:460px){.brand-title small{display:none}.project-name-wrap{min-width:70px}.topbar,.options-bar{padding:0 6px}.compact-control{font-size:8px}.compact-control input[type=range]{width:38px}.canvas-actions{gap:0}.viewport-shortcut{display:none}}.brush-cursor-ring{position:absolute;z-index:8;border:1px solid #101820;border-radius:50%;box-shadow:0 0 0 1px #fffd,0 1px 5px #0009;transform:translate(-50%,-50%);pointer-events:none}.brush-cursor-ring.eraser-ring{border-color:#a94444;box-shadow:0 0 0 1px #fffd,0 1px 5px #0009}@media(max-width:760px){.tool-rail{z-index:20}.color-popover{width:min(326px,calc(100vw - 92px));max-height:calc(100vh - 165px);top:-200px;left:calc(100% + 8px)}}@media(max-width:460px){.color-popover{width:min(310px,calc(100vw - 82px));top:-200px}.anatomy-palette{grid-template-columns:1fr 1fr}}
