/*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-border-style:solid;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial}}}@layer theme{:root,:host{--font-sans:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4, 0, .2, 1);--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;line-height:1.5;font-family:var(--default-font-family,-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring:where(:not(iframe)){outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab,red,red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){-webkit-appearance:button;-moz-appearance:button;appearance:button}::file-selector-button{-webkit-appearance:button;-moz-appearance:button;appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.grid{display:grid}.hidden{display:none}.table{display:table}.transform{transform:var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,)}.resize{resize:both}.border{border-style:var(--tw-border-style);border-width:1px}.ring{--tw-ring-shadow:var(--tw-ring-inset,) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.blur{--tw-blur:blur(8px);filter:var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,)}.transition{transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}}.presets-dialog[open]{flex-direction:column;display:flex;overflow:hidden}.presets-dialog .dialog-heading,.presets-dialog .preset-footer{flex-shrink:0}.presets-dialog .preset-gallery{scrollbar-gutter:stable;min-height:0;max-height:62dvh;padding:3px 7px 3px 3px;overflow:auto}.presets-dialog .preset-footer{margin-top:14px;padding-top:14px}.editor-heading-actions{align-items:center;gap:12px;display:flex}.presets-dialog{width:1210px}.preset-gallery{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.studio-dialog .preset-card{text-align:center;background:#252e29;border:1px solid #44584b;border-radius:8px;flex-direction:column;align-items:center;gap:8px;min-width:0;padding:12px 8px;display:flex;position:relative}.studio-dialog .preset-card:hover{background:#2e3c33;border-color:#749780}.studio-dialog .preset-card[aria-pressed=true]{background:#304a3b;border-color:#8dd9ad;box-shadow:inset 0 0 0 1px #8dd9ad}.preset-style{color:#bdcfc2;letter-spacing:.3px;font-size:10px}.preset-thumbnail{border:1px solid #5b6e60;border-radius:5px;width:124px;height:232px;box-shadow:0 5px 15px #0003}.preset-name{color:#edf5ee;justify-content:center;align-items:center;gap:4px;min-height:30px;font-size:12px;font-weight:550;line-height:1.3;display:flex}.preset-name svg{color:#a2edbc;flex-shrink:0}.preset-metrics{color:#c3d4c7;font-variant-numeric:tabular-nums;font-size:10px}.preset-footer{border-top:1px solid #435e4c;justify-content:space-between;align-items:center;gap:20px;margin-top:20px;padding-top:19px;display:flex}.preset-footer strong{font-size:14px}.preset-footer p{color:#c6d8ca;margin:8px 0;font-size:12px}.preset-footer small{color:#b0c8b8;font-size:10px}.preset-footer>button{flex-shrink:0}.presets-dialog .dialog-heading{margin-bottom:18px}.studio .toast{translate:-50%}.toast{z-index:60;color:#e2f8eb;pointer-events:auto;background:#294537;border:1px solid #648a73;border-radius:8px;align-items:center;gap:12px;max-width:600px;padding:13px 15px;font-size:12px;display:flex;position:fixed;bottom:54px;left:50%;transform:translate(-50%);box-shadow:0 10px 35px #0005}.toast>svg{color:#8ce3b3}.toast button{color:inherit;background:0 0;border:0;place-items:center;padding:3px;display:grid}.studio-dialog[open],.confirm-dialog[open]{animation:.18s ease-out dialog-in}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}.preview-dialog .case-preview-canvas{height:min(64dvh,680px)}.project-card:hover{border-color:#6c8d75}.studio-dialog select:focus-visible{outline-offset:3px;outline:2px solid #72d9b5}.export-dialog{width:590px}.export-options{gap:12px;display:grid}.export-options>button{flex-direction:column;align-items:flex-start;padding:17px 18px}.export-options strong{font-size:14px}.export-options span{color:#b2c7b9;font-size:11px}.studio .case-switch button{padding:7px 9px}.studio .project-title input{max-width:230px}.preview-dialog{width:950px}.preview-actions{align-items:center;gap:25px;margin-bottom:15px;display:flex}.preview-actions>div{gap:5px;display:flex}.preview-actions button[aria-pressed=true]{background:#476e54;border-color:#8db69a}.preview-actions>span{color:#b0c5b6;font-size:11px}.case-preview-canvas{background:#152019;border-radius:8px;width:auto;max-width:100%;height:min(70dvh,720px);margin:0 auto;display:block}.calibration-controls{border:1px solid #476953;grid-template-columns:1fr 1fr;gap:10px;margin-top:15px;padding:10px;display:grid}.calibration-controls label{align-items:center;gap:5px;font-size:10px;display:flex}.calibration-controls input{width:80px}.studio .case-switch>span{display:none}.image-dialog .source-image canvas{object-fit:contain;width:100%;height:100%}.image-dialog{width:1330px}.image-studio-grid{grid-template-columns:minmax(0,1fr) 300px;gap:24px;display:grid}.image-previews{grid-template-columns:1fr 330px;gap:22px;min-width:0;display:grid}.image-previews h3{color:#c6d9ca;margin:0 0 12px;font-size:12px;font-weight:500}.source-image{border:1px solid #495a4c;border-radius:7px;justify-content:center;align-items:center;height:535px;display:flex;overflow:hidden}.checkerboard{background-color:#27322b;background-image:linear-gradient(45deg,#3c493f 25%,#0000 25%),linear-gradient(-45deg,#3c493f 25%,#0000 25%),linear-gradient(45deg,#0000 75%,#3c493f 75%),linear-gradient(-45deg,#0000 75%,#3c493f 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px}.source-image canvas{object-fit:contain;max-width:100%;max-height:100%}.picking-background{cursor:crosshair;outline:2px solid #78dcb2}.image-grid-preview{touch-action:none;cursor:move;background:#17201b;border:1px solid #425c4a;border-radius:7px;width:330px;height:590px}.image-hint{color:#b4c5b8;font-size:10px;line-height:1.6}.image-settings{max-height:650px;padding-right:10px;overflow:auto}.image-range{margin:0 0 14px;display:block}.image-range>span{color:#b9cbbc;justify-content:space-between;gap:10px;margin-bottom:8px;font-size:11px;display:flex}.image-range input{accent-color:#72d5b1;width:100%}.image-settings>button{margin-bottom:15px}.image-settings fieldset{border:1px solid #415849;border-radius:5px;margin:16px 0;padding:12px}.image-settings legend{color:#b9d0c0;padding:0 5px;font-size:11px}.crop-controls{grid-template-columns:1fr 1fr;gap:9px;display:grid}.crop-controls label{color:#b6c8bc;gap:5px;font-size:10px;display:grid}.crop-controls input{width:100%}.check-label{color:#c2d2c7;align-items:center;gap:9px;margin:14px 0;font-size:11px;display:flex}.check-label input{accent-color:#72d5b1}.background-actions{gap:8px;margin:18px 0;display:flex}.import-palette{grid-template-columns:1fr 1fr;gap:10px;display:grid}.import-palette label{color:#b4cbbd;align-items:center;gap:5px;font-size:10px;display:flex}.import-palette input{accent-color:#72d5b1}.import-palette i{border-radius:2px;width:9px;height:9px}.image-footer{border-top:1px solid #465c4c;align-items:center;gap:12px;margin-top:20px;padding-top:20px;display:flex}.image-footer label{align-items:center;gap:9px;font-size:11px;display:flex}.image-footer>span{color:#a9c3b1;margin-right:auto;font-size:11px}.studio-dialog .primary{color:#fff;background:#407c5b;border-color:#7bad8b}.studio .brand{min-width:215px}.studio .project-title{padding-left:12px}.studio .case-switch{gap:7px}.studio .topbar{gap:14px;padding:0 20px}.header-button,.project-actions button,.project-card button,.studio-dialog button,.startup button,.storage-error button{color:#e1ece4;background:#29352e;border:1px solid #45564b;border-radius:6px;justify-content:center;align-items:center;gap:7px;padding:8px 11px;font-size:12px;display:inline-flex}.header-button{white-space:nowrap;flex-shrink:0}.header-button:hover,.studio-dialog button:hover{background:#3a5143}.studio-dialog button:disabled{opacity:.4;cursor:wait}.studio-dialog{color:#edf2ed;background:#202624;border:1px solid #53665a;border-radius:12px;max-width:calc(100vw - 80px);max-height:calc(100dvh - 70px);margin:auto;padding:25px;box-shadow:0 20px 100px #0009}.studio-dialog::backdrop{background:#080e0bd0}.projects-dialog{width:800px}.dialog-heading{justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px;display:flex}.dialog-heading h2{margin:0;font-size:21px;font-weight:550}.dialog-heading p{color:#acbcb1;margin:8px 0 0;font-size:12px}.dialog-heading>button{background:0 0;border:0;padding:5px}.project-actions{gap:9px;margin-bottom:22px;display:flex}.project-list{gap:10px;display:grid}.project-card{background:#262e29;border:1px solid #3f5144;border-radius:7px;flex-wrap:wrap;align-items:center;gap:10px;padding:12px;display:flex}.project-card .project-open{text-align:left;background:0 0;border:0;flex-direction:column;flex:1;align-items:flex-start}.project-open strong{font-size:14px}.project-open span{color:#afc1b3;font-size:10px}.project-card-actions{gap:5px;display:flex}.project-card form{flex:1;gap:8px;display:flex}.studio-dialog input:not([type=range]):not([type=checkbox]),.studio-dialog select{color:#e6f3e9;background:#131d17;border:1px solid #536b5a;border-radius:5px;min-width:0;padding:8px}.project-card form input{flex:1}.delete-confirm{background:#432e28;border-radius:6px;width:100%;padding:10px}.delete-confirm p{margin:0 0 10px}.delete-confirm button{margin-right:8px}.error-message,.storage-error{color:#ffd6be;background:#49372a;border:1px solid #856045;border-radius:7px;padding:12px;font-size:12px}.storage-error{z-index:30;max-width:600px;position:fixed;bottom:45px;right:20px}.storage-error button{margin-left:12px}.startup{place-content:center;gap:20px;min-height:100dvh;display:grid}.studio .topbar{gap:20px}.studio .project-title{min-width:100px}.studio .inspector{width:360px}.statistics-section{border-bottom:1px solid #343839;padding:24px 22px}.statistics-description{color:#aeb9b1;margin:9px 0 18px;font-size:10px}.statistics-totals{grid-template-columns:repeat(3,1fr);gap:9px;margin:0;display:grid}.statistics-totals>div{background:#262f29;border:1px solid #3c4a40;border-radius:6px;padding:10px 9px}.statistics-totals dt{color:#b1bdb4;white-space:nowrap;font-size:9px}.statistics-totals dd{letter-spacing:-.5px;font-variant-numeric:tabular-nums;margin:6px 0 0;font-size:21px;font-weight:550}.usage-track{background:#3a443d;border-radius:3px;height:3px;margin:14px 0 20px;overflow:hidden}.usage-track>span{background:#73d9b8;height:100%;display:block}.statistics-table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%;font-size:11px}.statistics-table thead th{color:#aab7ad;text-align:right;padding:0 0 10px;font-size:9px;font-weight:400}.statistics-table thead th:first-child{text-align:left}.statistics-table tbody th{text-align:left;align-items:center;gap:7px;font-weight:400;display:flex}.statistics-table tbody th,.statistics-table td{padding:8px 0}.statistics-table td{text-align:right}.statistics-table tbody tr{border-top:1px solid #303a33}.statistics-table .unused-color{color:#a1ada4}.statistics-table .used-color{color:#eef5ef}.statistics-color{border:1px solid #ffffff40;border-radius:3px;flex-shrink:0;width:11px;height:11px}.statistics-table tfoot{color:#d9ece0;border-top:1px solid #526254;font-weight:600}.statistics-table tfoot th{text-align:left;padding-top:12px}.statistics-table tfoot td{padding-top:12px}.statistics-note{color:#aebbb1;margin:15px 0 0;font-size:10px;line-height:1.7}@media(max-width:1199px){.studio .inspector{width:340px}}.editor-stage .editor-canvas{height:calc(100% - 62px)}.editor-stage .view-controls{white-space:nowrap;flex-direction:row;bottom:9px}.editor-stage{background-image:radial-gradient(#858f8424 .65px,#0000 .65px);background-size:18px 18px;border:1px solid #353e37;border-radius:8px;flex:1;min-height:0;margin:0 20px 15px;position:relative;overflow:hidden}.editor-canvas{touch-action:none;width:100%;height:100%;display:block;outline-offset:-3px!important}.editor-rail{gap:9px!important;padding-top:25px!important}.editor-rail button{color:#aab7af;background:0 0;border:1px solid #0000;border-radius:7px;place-items:center;width:40px;height:40px;display:grid}.editor-rail button:hover:not(:disabled){color:#eff6f0;background:#303a34}.editor-rail button.tool-active{color:#7de0be;background:#263e36;border-color:#456352}.editor-rail button:disabled{opacity:.28;cursor:default}.editor-rail .clear-button:hover:not(:disabled){color:#ffb9b1;background:#432d2b}.editor-rail .rail-line{margin:8px 0}.view-controls{flex-direction:column;align-items:center;gap:10px;display:flex;position:absolute;bottom:18px;left:50%;transform:translate(-50%)}.zoom-controls,.rectangle-modes{background:#202925;border:1px solid #4b5950;border-radius:8px;align-items:center;gap:5px;padding:5px;display:flex;box-shadow:0 4px 15px #0004}.view-controls button{color:#d5e0d8;background:0 0;border:1px solid #0000;border-radius:4px;justify-content:center;align-items:center;gap:7px;min-width:31px;height:30px;padding:0 8px;font-size:11px;display:flex}.view-controls button:hover:not(:disabled){background:#3a4940}.view-controls button:disabled{opacity:.35;cursor:default}.zoom-controls output{text-align:center;color:#dfe9e1;font-variant-numeric:tabular-nums;min-width:49px;font-size:11px}.zoom-controls>span{background:#49574d;width:1px;height:16px;margin:0 5px}.rectangle-modes button[aria-pressed=true]{color:#a8f3c8;background:#365b49;border-color:#567c63}.keyboard-guide{padding:22px 25px}.keyboard-guide h2{margin:0 0 20px;font-size:12px;font-weight:500}.keyboard-guide p{color:#a8b5ab;justify-content:space-between;margin:13px 0;font-size:10px;display:flex}.keyboard-guide kbd{color:#d1dfd3;background:#2a332d;border:1px solid #404c42;border-radius:3px;padding:2px 5px;font:10px Segoe UI,sans-serif}.confirm-dialog{color:#e7eee8;background:#242b27;border:1px solid #56675a;border-radius:12px;width:calc(100vw - 50px);max-width:430px;margin:auto;padding:26px;box-shadow:0 20px 80px #0009}.confirm-dialog::backdrop{background:#050a08b8}.confirm-dialog h2{margin:0 0 13px;font-size:19px;font-weight:550}.confirm-dialog p{color:#b8c5bb;margin:0 0 25px;font-size:13px;line-height:1.7}.dialog-actions{justify-content:flex-end;gap:10px;display:flex}.dialog-actions button{color:#edf3ed;background:#303d33;border:1px solid #526055;border-radius:5px;padding:9px 14px}.dialog-actions .danger{background:#744137;border-color:#a35c4d}.statusbar [aria-label=Координаты]{font-variant-numeric:tabular-nums;min-width:95px}.statusbar [aria-label="Использовано PIXEL"]{font-variant-numeric:tabular-nums}:root{color:#eceeed;font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;color-scheme:dark;background:#151719;font-family:Inter,Segoe UI,Arial,sans-serif;font-size:13px}*{box-sizing:border-box}body{margin:0}button,input,a{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline-offset:4px;outline:2px solid #66d8bb}button{transition:background .16s,border-color .16s}button:active{transform:translateY(1px)}.studio{flex-direction:column;height:100dvh;min-height:650px;display:flex;overflow:hidden}.topbar{background:#1c1e20;border-bottom:1px solid #303335;flex-shrink:0;align-items:center;gap:40px;height:82px;padding:0 28px;display:flex}.brand{color:inherit;align-items:center;gap:12px;min-width:245px;text-decoration:none;display:flex}.brand-mark{color:#15382e;background:#64d9b7;border-radius:9px;place-items:center;width:38px;height:38px;display:grid}.brand strong{letter-spacing:.5px;font-size:18px;font-weight:650}.brand b{color:#73d9bc;font-weight:650}.brand small{color:#a3a8a6;letter-spacing:.3px;margin-top:3px;font-size:10px;display:block}.project-title{color:#919997;border-left:1px solid #35393a;flex:1;align-items:center;gap:10px;padding-left:28px;display:flex}.project-title input{color:#e0e3e1;background:0 0;border:0;border-radius:4px;width:min(100%,340px);padding:8px;font-weight:500}.project-title input:hover{background:#25282a}.case-switch{color:#aeb4b1;align-items:center;gap:13px;font-size:12px;display:flex}.case-switch>div{background:#141618;border:1px solid #303435;border-radius:8px;padding:4px;display:flex}.case-switch button{color:#a2aaa6;background:0 0;border:1px solid #0000;border-radius:5px;align-items:center;gap:7px;padding:8px 12px;display:flex}.case-switch button[aria-pressed=true]{color:#fff;background:#303537;border-color:#474e4b}.case-switch i{border:1px solid #666;border-radius:50%;width:11px;height:11px}.case-switch i.black{background:#17191b}.case-switch i.white{background:#e4e4de}.workspace{flex:1;min-height:0;display:flex}.rail{color:#818a86;background:#1b1d1f;border-right:1px solid #303335;flex-direction:column;flex-shrink:0;align-items:center;gap:22px;width:66px;padding-top:26px;display:flex}.rail>span{place-items:center;display:grid}.rail-active{color:#76dfbc;background:#263e36;border:1px solid #405e51;border-radius:8px;width:40px;height:40px}.rail-line{background:#353a37;width:24px;height:1px}.editor-area{background:radial-gradient(#232729,#1a1d1f 67%);flex-direction:column;flex:1;min-width:0;display:flex;position:relative}.editor-heading{flex-shrink:0;justify-content:space-between;align-items:center;padding:28px 34px;display:flex}.eyebrow{letter-spacing:1.7px;color:#8e9993;font-size:10px;font-weight:600}h1{letter-spacing:-.5px;margin:7px 0 0;font-size:22px;font-weight:500}.geometry-badge{color:#b6bfbb;border:1px solid #39413c;border-radius:5px;align-items:center;gap:8px;padding:7px 10px;font-size:11px;display:flex}.canvas-workspace{background-image:radial-gradient(#858f8420 .65px,#0000 .65px);background-size:18px 18px;flex:1;justify-content:center;align-items:center;min-height:0;padding:12px 40px 54px;display:flex;position:relative}.panel-frame{aspect-ratio:34/64;background:#2d3133;border:1px solid #4b504e;border-radius:9px;flex-direction:column;max-width:85%;height:100%;padding:7px 7px 0;display:flex;overflow:hidden;box-shadow:0 18px 50px #0005}.panel-canvas{border-radius:4px;flex:1;width:100%;min-height:0}.panel-base{color:#a9b2ac;flex-shrink:0;justify-content:space-between;align-items:center;height:25px;padding:0 9px;display:flex}.panel-base span{letter-spacing:1px;font-size:6px;font-weight:700}.panel-base i{border:1px solid #6b8277;width:15px;height:4px}.axis-label{writing-mode:vertical-rl;color:#8f9992;letter-spacing:1px;font-size:10px;position:absolute;top:50%;right:26px}.panel-caption{color:#9ba59e;letter-spacing:.5px;font-size:11px;position:absolute;bottom:21px}.workspace-note{color:#a4ada7;justify-content:center;align-items:center;gap:8px;margin:0 26px 20px;font-size:11px;display:flex}.workspace-note svg{flex-shrink:0}.inspector{background:#1e2123;border-left:1px solid #303335;flex-direction:column;flex-shrink:0;width:326px;display:flex;overflow:auto}.palette-section,.configuration{border-bottom:1px solid #343839;padding:26px 25px}.section-heading{justify-content:space-between;align-items:center;display:flex}.section-heading h2{margin:0;font-size:13px;font-weight:600}.section-heading>span,.section-heading>svg{color:#a1aca6;font-size:10px}.muted{color:#a4ada7}.section-description{margin:8px 0 23px;font-size:11px}.palette-grid{grid-template-columns:repeat(5,1fr);gap:19px 10px;display:grid}.swatch-button{color:#aeb7b1;background:0 0;border:0;flex-direction:column;align-items:center;gap:8px;padding:0;font-size:9px;display:flex}.swatch{border:1px solid #ffffff18;border-radius:7px;place-items:center;width:34px;height:34px;display:grid;box-shadow:inset 0 1px 1px #ffffff30,inset 0 -2px 2px #0003}.swatch-button[aria-pressed=true] .swatch{outline-offset:4px;outline:2px solid #6ad9b5}.swatch-button[aria-pressed=true]{color:#edf3ee}.swatch-button:hover .swatch{box-shadow:0 0 0 3px #ffffff13}.selected-color{background:#282e2b;border:1px solid #3f5147;border-radius:7px;align-items:center;gap:11px;margin-top:26px;padding:12px;display:flex}.selected-color>span{border-radius:5px;width:28px;height:28px}.selected-color strong{font-size:11px;font-weight:500}.selected-color small{color:#abb8af;margin-top:4px;font-size:9px;display:block}.selected-color svg{color:#77dbb7;margin-left:auto}.palette-note{color:#a5afa9;margin:14px 0 0;font-size:10px;line-height:1.7}.configuration dl{margin:22px 0;font-size:11px}.configuration dl>div{justify-content:space-between;margin:14px 0;display:flex}.configuration dt{color:#aab3ad}.configuration dd{color:#e0e5df;font-variant-numeric:tabular-nums;margin:0}.geometry-notice{color:#b3bcb4;background:#272a29;border:1px solid #3b403c;border-radius:6px;gap:9px;padding:11px;display:flex}.geometry-notice svg{flex-shrink:0;margin-top:2px}.geometry-notice p{margin:0;font-size:10px;line-height:1.65}.phase-card{gap:12px;margin:23px 24px;display:flex}.phase-icon{color:#9cb5a6;background:#2b3330;border-radius:8px;flex-shrink:0;place-items:center;width:36px;height:36px;display:grid}.phase-card .eyebrow{letter-spacing:1.2px;font-size:8px}.phase-card h2{margin:7px 0;font-size:12px;font-weight:500}.phase-card p{color:#aab4ac;margin:0;font-size:10px;line-height:1.7}.local-note{color:#a1ada4;align-items:center;gap:7px;margin-top:auto;padding:19px 25px;font-size:10px;display:flex}.statusbar{color:#a6b1a9;background:#1b1e1f;border-top:1px solid #343837;flex-shrink:0;align-items:center;gap:17px;height:34px;padding:0 22px;font-size:10px;display:flex}.statusbar>span,.status-right{align-items:center;gap:7px;display:flex}.statusbar svg{color:#6ccb9e}.status-separator{background:#3c443f;width:1px;height:12px;display:inline-block}.status-right{margin-left:auto;gap:17px!important}.small-screen{color:#eee2aa;background:#373321;gap:10px;padding:14px;font-size:12px;display:none}.debug-panel{color:#92e1ae;overflow-wrap:anywhere;background:#101613;border:1px solid #466550;max-width:500px;padding:12px;font:11px monospace;position:fixed;bottom:50px;left:82px}@media(max-width:1199px){.small-screen{display:flex}.studio{min-width:1000px}.topbar{gap:18px}.brand{min-width:220px}.inspector{width:300px}.project-title{padding-left:12px}.editor-heading{padding:20px}}@media(prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}.touch-help{display:none}.view-controls .pan-button{background:#202925;border:1px solid #4b5950;min-width:42px;height:42px;box-shadow:0 4px 15px #0004}.view-controls .pan-button[aria-pressed=true]{color:#a8f3c8;background:#365b49;border-color:#78cda0}@media(max-width:1199px){.studio{min-width:0}.studio .topbar{flex-wrap:wrap;gap:10px;height:auto;min-height:82px;padding:12px 18px}.studio .brand{min-width:190px}.studio .project-title{min-width:150px}.studio .inspector{width:290px}.preset-gallery{grid-template-columns:repeat(4,minmax(0,1fr))}.image-studio-grid{grid-template-columns:minmax(0,1fr) 250px}.image-previews{grid-template-columns:1fr}.source-image{height:240px}.image-grid-preview{width:260px;max-width:100%;height:480px}.editor-heading-actions{gap:6px}.editor-heading{gap:10px}}@media(max-width:767px){.studio{height:auto;min-height:100dvh;overflow:visible}.studio .topbar{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding:12px;display:grid}.studio .brand{gap:8px;min-width:0}.brand strong{font-size:15px}.brand small{font-size:8px}.brand-mark{flex-shrink:0;width:32px;height:32px}.studio .case-switch{justify-self:end;gap:0}.studio .case-switch button{gap:5px;min-height:40px;padding:7px;font-size:11px}.studio .project-title{border-left:0;grid-area:2/1/auto/-1;min-width:0;padding-left:0}.studio .project-title input{background:#25282a;width:100%;max-width:none;min-height:44px}.topbar>.header-button{white-space:normal;min-height:44px;font-size:12px}.workspace{flex-direction:column;min-height:0;display:flex}.editor-rail{z-index:10;overscroll-behavior-x:contain;border-bottom:1px solid #38433b;border-right:0;flex-direction:row;flex-shrink:0;width:100%;position:sticky;top:0;overflow-x:auto;gap:4px!important;padding:6px 8px!important}.editor-rail button{flex-shrink:0;width:44px;height:44px}.editor-rail .rail-line{flex-shrink:0;width:1px;height:24px;margin:0 3px}.editor-area{flex:none;width:100%;min-height:0}.editor-heading{flex-wrap:wrap;gap:10px;padding:16px 12px}.eyebrow{letter-spacing:1px;font-size:8px}h1{font-size:19px}.editor-heading-actions{gap:8px;margin-left:auto}.editor-heading-actions button{min-height:44px}.geometry-badge{gap:4px;padding:7px;font-size:10px}.editor-stage{flex:none;height:clamp(400px,66dvh,650px);margin:0 8px 12px}.editor-stage .editor-canvas{height:calc(100% - 114px)}.editor-stage .view-controls{flex-wrap:wrap;justify-content:center;gap:6px;width:calc(100% - 12px);bottom:8px}.rectangle-modes{flex-basis:100%;order:-1;justify-content:center}.view-controls button{min-width:40px;height:44px;padding:0 7px}.zoom-controls{gap:2px;padding:3px}.zoom-controls>span{margin:0 3px}.zoom-controls output{min-width:40px}.workspace-note{text-align:center;margin:0 12px 14px;font-size:10px;line-height:1.6}.desktop-help{display:none}.touch-help{display:inline}.studio .inspector{border-top:1px solid #343839;border-left:0;width:100%;overflow:visible}.palette-section,.statistics-section,.configuration{padding:20px 16px}.palette-grid{gap:12px 8px}.swatch-button{justify-content:center;gap:7px;min-height:58px;font-size:11px}.swatch{width:38px;height:38px}.selected-color{margin-top:20px}.palette-note{font-size:11px}.statistics-table{font-size:12px}.statistics-table tbody th,.statistics-table td{padding:12px 0}.keyboard-guide{display:none}.local-note{padding:16px}.statusbar{height:auto;min-height:55px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));flex-wrap:wrap;gap:8px 12px;font-size:10px}.statusbar>.status-separator,.statusbar>span:nth-child(3){display:none}.status-right{gap:8px!important}.studio-dialog{overscroll-behavior:contain;border-radius:10px;width:calc(100vw - 16px);max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);padding:16px;overflow:auto}.studio-dialog button,.confirm-dialog button{min-height:44px}.dialog-heading{gap:10px;margin-bottom:16px}.dialog-heading h2{font-size:19px}.dialog-heading p{line-height:1.5}.dialog-heading>button{flex-shrink:0;min-width:44px}.dialog-heading>div{min-width:0}.presets-dialog .preset-gallery{scrollbar-gutter:auto;flex:1;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;max-height:none;padding:2px}.studio-dialog .preset-card{gap:6px;padding:10px 4px}.preset-thumbnail{width:100px;max-width:100%;height:188px}.preset-name{overflow-wrap:anywhere;font-size:11px}.preset-style,.preset-metrics{font-size:9px}.presets-dialog .preset-footer{flex-direction:column;align-items:stretch;gap:8px;margin-top:10px;padding-top:10px}.preset-footer p{margin:5px 0;font-size:11px;line-height:1.4}.preset-footer small{font-size:10px}.preset-footer>button{width:100%}.project-actions,.project-card-actions{flex-wrap:wrap}.project-card{padding:10px}.project-card-actions{width:100%}.project-card form{flex-wrap:wrap;width:100%;min-width:0}.project-card form input{width:100%;min-width:0}.image-studio-grid,.image-previews{grid-template-columns:minmax(0,1fr);gap:16px}.source-image{height:220px}.image-grid-preview{aspect-ratio:33/59;width:100%;max-width:300px;height:auto;margin:auto;display:block}.image-settings{max-height:none;padding:0;overflow:visible}.image-settings input[type=range]{min-height:32px}.image-settings input[type=checkbox],.image-footer input[type=checkbox]{flex-shrink:0;width:20px;height:20px}.import-palette label{min-height:40px;font-size:11px}.check-label{min-height:40px}.background-actions,.image-footer{flex-wrap:wrap;gap:10px}.image-footer>button{flex:1}.image-footer>span{width:100%}.preview-actions{flex-wrap:wrap;gap:12px}.preview-actions>div{flex-wrap:wrap}.preview-dialog .case-preview-canvas{object-fit:contain;width:auto;max-width:100%;height:auto;max-height:62dvh}.calibration-controls{grid-template-columns:1fr}.export-options span{line-height:1.5}.toast,.studio .toast{width:calc(100vw - 24px);max-width:500px;bottom:calc(12px + env(safe-area-inset-bottom));overflow-wrap:anywhere;padding:12px}.toast button{min-width:40px;min-height:40px}.storage-error{max-width:none;bottom:12px;left:12px;right:12px}.debug-panel{max-width:none;left:8px;right:8px}.confirm-dialog{max-height:calc(100dvh - 24px);padding:20px;overflow:auto}}@media(pointer:coarse){.touch-help{display:inline}.desktop-help{display:none}}@media(max-width:767px){.studio{overflow-x:clip}.editor-rail{grid-template-columns:repeat(6,minmax(0,1fr));justify-items:center;display:grid;overflow:visible}.editor-rail .rail-line{display:none}.presets-dialog .preset-gallery{grid-auto-rows:max-content;align-content:start}.studio-dialog .preset-card{min-height:280px}.preset-card>*{flex-shrink:0}}button,input,select{touch-action:manipulation}.preset-library-actions,.preset-manage-actions,.preset-form-buttons{flex-wrap:wrap;gap:8px;display:flex}.preset-library-actions{flex-shrink:0;margin:0 0 14px}.preset-library-actions button:last-child{margin-left:auto}.preset-manage-actions{margin-top:10px}.preset-summary{overflow-wrap:anywhere;min-width:0}.preset-empty{color:#b5c8bc;padding:12px 0;line-height:1.7}.preset-save-form,.preset-confirm{min-height:0;padding:2px 4px 4px;line-height:1.6;overflow:auto}.preset-save-form h3,.preset-confirm h3{margin:0 0 8px;font-size:17px}.preset-save-form>p,.preset-confirm>p{color:#bdd1c4;margin:0 0 16px;font-size:12px}.preset-save-form>label{color:#d1e1d6;gap:7px;margin:12px 0;font-size:12px;display:grid}.preset-save-form textarea{resize:vertical;width:100%;min-height:70px;max-height:200px;font:inherit;color:#e6f3e9;background:#131d17;border:1px solid #536b5a;border-radius:5px;padding:10px}.preset-save-form textarea:focus-visible{outline-offset:3px;outline:2px solid #72d9b5}.preset-save-preview{justify-content:center;margin:16px 0;display:flex}.preset-form-buttons{border-top:1px solid #435e4c;justify-content:flex-end;margin-top:16px;padding-top:16px}@media(max-width:767px){.preset-library-actions{gap:6px;margin-bottom:10px}.preset-library-actions button{flex:1;min-width:0;padding:7px;font-size:10px}.preset-library-actions button:last-child{margin-left:0}.preset-manage-actions{gap:6px}.preset-manage-actions button{flex:1;min-height:40px;padding:7px;font-size:10px}.preset-manage-actions button svg{flex-shrink:0}.preset-summary>p{-webkit-line-clamp:2;-webkit-box-orient:vertical;display:-webkit-box;overflow:hidden}.preset-form-buttons button{flex:1;font-size:11px}}.selection-controls{color:#d5e0d8;background:#202925;border:1px solid #4b5950;border-radius:8px;justify-content:center;align-items:center;gap:8px;padding:5px;font-size:11px;display:flex}@media(max-width:767px){.selection-controls{flex-basis:100%;order:-1}}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}
