@font-face{font-family:'DM Sans';src:url('./assets/dm-sans-latin.woff2') format('woff2');font-style:normal;font-weight:100 1000;font-display:swap}
:root{font-family:'DM Sans',sans-serif;font-synthesis:none;color-scheme:dark;color:#f5f5f5;background:#0a0a0a;--muted:#a3a3a3;--line:#ffffff12;--border:#ffffff24;--surface:#141414}
*{box-sizing:border-box}
body{margin:0;font-size:13px;line-height:1.5}
button,input,select{font:inherit}
button,a,input,select{-webkit-tap-highlight-color:transparent;outline-offset:4px}
button,a{touch-action:manipulation}
button{color:inherit;cursor:pointer;border:0;background:none}
button:disabled{cursor:wait;opacity:.5}
a{color:inherit;text-decoration:none}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:2px solid #fff;outline-offset:4px}
button svg,a svg{pointer-events:none}
.icon{display:inline-block;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex:none;vertical-align:middle}
.icon-definitions{position:absolute;width:0;height:0;overflow:hidden}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.skip-link{position:fixed;top:-60px;left:20px;z-index:100;background:#fff;color:#111;padding:12px 20px;border-radius:6px}
.skip-link:focus{top:12px}
[hidden]{display:none!important}

.dashboard-shell{display:grid;grid-template-columns:208px minmax(0,1fr);min-height:100dvh}
.sidebar{height:100dvh;position:sticky;top:0;display:flex;flex-direction:column;padding:26px 14px 18px;border-right:1px solid var(--line);background:#111;z-index:10}
.brand{display:flex;align-items:center;gap:10px;padding:0 10px}
.brand-mark{display:grid;place-items:center;width:32px;height:34px;border-radius:7px;border:1px solid #ffffff3a;background:#222;color:#fff;font-size:24px;font-weight:700;line-height:1;letter-spacing:-1.5px;padding-right:2px}
.brand-name{display:flex;align-items:baseline;gap:6px;font-size:17px;font-weight:650;letter-spacing:-.6px}
.brand-studio{font-size:11px;font-weight:450;color:#aaa;letter-spacing:0}
.workspace-label{display:flex;align-items:center;gap:8px;color:#a3a3a3;font-size:11px;font-weight:500;margin:38px 12px 12px}
.beta-badge{display:inline-flex;align-items:center;padding:2px 5px;border-radius:4px;border:1px solid #ffffff25;color:#bdbdbd;font-size:9px;line-height:1.3;font-weight:450}
.workspace-label .beta-badge{margin-left:auto}
.sidebar-nav{display:flex;flex-direction:column;gap:4px}
.nav-item{position:relative;display:flex;align-items:center;gap:10px;min-height:40px;padding:10px 12px;text-align:left;border-radius:6px;font-size:13px;font-weight:450;color:#b3b3b3;transition:background .15s,color .15s}
.nav-item .icon{width:17px;height:17px}
.nav-item:hover{background:#1b1b1b;color:#fff}
.nav-item.is-active,.nav-item[aria-current=page]{color:#fff;background:#252525}
.nav-item.is-active::before{content:'';position:absolute;left:0;top:13px;bottom:13px;width:2px;background:#f5f5f5;border-radius:2px}
.nav-divider{height:1px;background:var(--line);margin:14px 12px}
.sidebar-bottom{margin-top:auto;padding-top:54px}
.local-note{display:flex;gap:9px;margin:0 10px 24px}
.local-note>.icon{width:15px;color:#a3a3a3;margin-top:2px}
.local-note strong{font-size:11px;font-weight:500;color:#ddd}
.local-note p{font-size:11px;line-height:1.7;color:#a3a3a3;margin:6px 0 0}
.about-link{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:#b3b3b3;padding:14px 10px 0;border-top:1px solid var(--line)}
.about-link .icon{width:14px;height:14px}
.about-link:hover{color:#fff}
.dashboard-body{min-width:0;display:flex;flex-direction:column}
.topbar{min-height:68px;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 36px;border-bottom:1px solid var(--line);background:#0a0a0a}
.breadcrumb{display:flex;align-items:center;gap:12px;font-size:12px;color:#a3a3a3;white-space:nowrap}
.breadcrumb-slash{color:#666}
.breadcrumb strong{font-weight:500;color:#eee}
.topbar-actions{display:flex;align-items:center;gap:8px}
.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:9px 14px;min-height:36px;font-size:12px;font-weight:550;line-height:1.4;border-radius:6px;white-space:nowrap;transition:background .15s,border-color .15s}
.button .icon{width:16px;height:16px}
.quiet-button{border:1px solid #ffffff28;background:#141414;color:#e5e5e5}
.quiet-button:hover{border-color:#ffffff50;background:#202020;color:#fff}
.topbar [data-account-link]{background:transparent;border-color:transparent;color:#bdbdbd}
.topbar [data-account-link]:hover{background:#1a1a1a;color:#fff}
.glass-button{border:1px solid #fff;background:#f0f0f0;color:#111}
.glass-button:hover{background:#fff;border-color:#fff}
.glass-button:active{background:#d4d4d4}
.main-content{width:100%;max-width:1580px;flex:1;display:flex;flex-direction:column;padding:38px 36px 0;margin:0 auto}
.projects-section{margin:0 0 32px}
.section-header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:24px;margin-bottom:24px}
.heading-line{display:flex;align-items:center;gap:12px}
.section-heading h1{font-size:30px;font-weight:550;letter-spacing:-1px;line-height:1.25;margin:0}
.count-badge{display:grid;place-items:center;min-width:24px;height:22px;padding:0 7px;border-radius:5px;font-size:11px;font-weight:500;color:#ddd;background:#242424}
.section-heading>p{font-size:13px;color:#aaa;margin:8px 0 0;line-height:1.6}
.project-controls{display:flex;align-items:center;gap:8px}
.search-field{display:flex;align-items:center;gap:8px;height:36px;border:1px solid #ffffff24;border-radius:6px;background:#121212;padding:0 10px;width:220px}
.search-field .icon{width:15px;height:15px;color:#a3a3a3}
.search-field input{width:100%;min-width:0;border:0;background:none;color:#f5f5f5;font-size:12px;padding:8px 0;outline:none}
.search-field:focus-within{outline:2px solid #fff;outline-offset:3px}
.search-field input::placeholder{color:#a3a3a3}
.sort-field select{font-size:12px;color:#ddd;background:#141414;border:1px solid #ffffff24;border-radius:6px;min-height:36px;padding:0 9px;max-width:145px}
.dashboard-status{font-size:11px;line-height:1.6;color:#aaa;white-space:pre-line;margin:0 0 16px}
.dashboard-status:empty{display:none}
.dashboard-status.is-error{padding:12px 14px;color:#ffc1bb;border:1px solid #bb746850;border-radius:6px;background:#281919}
.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:24px}
.project-card{position:relative;min-width:0;border:1px solid #ffffff24;border-radius:9px;background:#151515;overflow:visible;transition:border-color .15s,background .15s}
.project-card:hover{border-color:#ffffff60;background:#1a1a1a}
.project-card:has(.project-menu[open]){z-index:5}
.project-open{display:block;width:100%;padding:0;text-align:left;border-radius:8px;overflow:hidden}
.project-preview{position:relative;display:grid;place-items:center;aspect-ratio:16/9;overflow:hidden;background:#101010;border-radius:8px 8px 0 0;border-bottom:1px solid #ffffff15}
.project-preview>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}
.preview-fallback{height:100%;width:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;background:#191919;color:#ccc;font-size:30px}
.preview-fallback>small{font-size:11px;line-height:1.4;letter-spacing:0;color:#b3b3b3;font-weight:450}
.preview-fallback svg{width:64px;height:40px;fill:none;stroke:#858585;stroke-width:1;stroke-linejoin:round}
.preview-badge{position:absolute;left:10px;top:10px;padding:3px 6px;border-radius:4px;background:#0a0a0acc;border:1px solid #ffffff24;color:#ddd;font-size:9px;font-weight:450;letter-spacing:.1px;backdrop-filter:blur(8px)}
.project-version-badge{position:absolute;right:10px;top:10px;padding:3px 6px;border-radius:4px;background:#0a0a0acc;border:1px solid #ffffff24;color:#eee;font-size:10px;line-height:1.5;backdrop-filter:blur(8px)}
.project-preview>.preview-arrow{position:absolute;right:10px;bottom:10px;width:28px;height:28px;display:grid;place-items:center;border:1px solid #ffffff45;border-radius:5px;background:#181818dc;color:#fff;opacity:0;transition:opacity .15s}
.preview-arrow svg,.card-actions svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.project-card:hover .preview-arrow,.project-open:focus-visible .preview-arrow{opacity:1}
.project-info{padding:16px 42px 16px 16px}
.project-info h3{font-size:14px;line-height:1.4;margin:0 0 7px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#f5f5f5}
.project-meta{margin:0;font-size:11px;line-height:1.6;color:#b3b3b3;display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.project-meta>span{color:#777}
.project-info>time{display:block;font-size:11px;color:#aaa;margin-top:5px;line-height:1.6}
.project-menu{position:absolute;right:10px;bottom:66px;z-index:4}
.project-menu>summary{display:grid;place-items:center;width:28px;height:28px;border-radius:5px;font-size:16px;color:#aaa;list-style:none;cursor:pointer;line-height:1}
.project-menu>summary::-webkit-details-marker{display:none}
.project-menu>summary:hover,.project-menu[open]>summary{background:#ffffff12;color:#fff}
.project-menu-panel{position:absolute;right:0;top:33px;min-width:172px;padding:5px;background:#222;border:1px solid #ffffff40;box-shadow:0 8px 24px #0008;border-radius:7px}
.project-menu-panel>button,.project-menu-panel>a{display:block;width:100%;padding:9px 10px;text-align:left;white-space:nowrap;border-radius:4px;font-size:12px;color:#eee;background:transparent}
.project-menu-panel>button:hover,.project-menu-panel>a:hover{background:#ffffff12;color:#fff}
.project-menu-panel .danger{color:#edbbb5;border-top:1px solid var(--line);margin-top:4px}
.card-actions{display:flex;gap:6px;padding:0 16px 14px;flex-wrap:wrap}
.card-actions button{display:inline-flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid #ffffff30;border-radius:5px;color:#ddd;font-size:11px}
.card-actions button:hover{border-color:#ffffff65;color:#fff}
.empty-state{text-align:center;padding:60px 24px;border:1px dashed #ffffff30;border-radius:9px;background:#111}
.empty-art{display:grid;place-items:center;margin:0 auto 18px;width:46px;height:46px;border:1px solid #ffffff30;border-radius:9px;color:#ddd;background:#1c1c1c}
.empty-art svg{width:22px;height:22px}
.empty-state h3{font-size:20px;font-weight:550;letter-spacing:-.5px;margin:0 0 8px}
.empty-state p{font-size:13px;line-height:1.7;color:#aaa;margin:0 auto 22px;max-width:340px}
.main-footer{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px 0;margin-top:auto;border-top:1px solid var(--line);font-size:11px;color:#aaa}
.main-footer>span{font-size:10px;letter-spacing:.7px;color:#999}
.main-footer p{display:flex;align-items:center;gap:8px;margin:0}
.main-footer>a{color:#bbb;font-size:11px;display:flex;gap:8px}
.main-footer>a:hover{color:#fff}

.project-dialog{width:min(460px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #ffffff40;border-radius:12px;padding:28px;background:#151515;color:#f5f5f5;box-shadow:0 24px 80px #0009}
.project-dialog::backdrop{background:#000a;backdrop-filter:blur(4px)}
#new-project-dialog{width:min(620px,calc(100% - 32px))}
.dialog-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}
.dialog-heading h2{font-size:24px;font-weight:550;letter-spacing:-.7px;margin:0;line-height:1.3}
.icon-button{display:grid;place-items:center;width:30px;height:30px;flex:none;border:1px solid #ffffff28;background:#1c1c1c;border-radius:5px;color:#ccc}
.icon-button .icon{width:15px;height:15px}
.icon-button:hover{border-color:#ffffff60;color:#fff}
.field{display:block;color:#ddd;font-size:12px;position:relative;margin-bottom:18px}
.field>span{float:right;font-size:11px;color:#aaa}
.field>input,.field>select{display:block;width:100%;margin-top:7px;border:1px solid #ffffff30;border-radius:6px;background:#0c0c0c;color:#f5f5f5;padding:10px 12px;min-height:40px;font-size:13px}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.dialog-note{font-size:12px;color:#aaa;line-height:1.6;margin:0 0 20px}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;border-top:1px solid #ffffff20;padding-top:18px}
#new-project-dialog .dialog-actions{position:sticky;bottom:-28px;padding:16px 0 22px;margin-bottom:-22px;background:#151515;z-index:2}
.form-error,.form-status{font-size:12px;color:#ffc1bb;line-height:1.6;margin:0 0 14px}
.form-error:empty,.form-status:empty{display:none}
.compact-dialog{max-width:400px}
.noscript-note{position:fixed;inset:20px 20px auto;z-index:100;background:#222;color:#fff;border:1px solid #aaa;padding:25px;border-radius:8px}
.canvas-format-field,.project-version-field{margin:0 0 20px;padding:0;border:0;min-width:0}
.canvas-format-field>legend,.project-version-field>legend{padding:0;margin-bottom:10px;font-size:12px;color:#eee;font-weight:500}
.project-version-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.project-version-option{position:relative;display:block;cursor:pointer;min-width:0}
.project-version-option input{position:absolute;right:14px;top:16px;width:15px;height:15px;margin:0;accent-color:#eee;cursor:pointer}
.project-version-option-content{display:flex;flex-direction:column;gap:7px;height:100%;padding:14px;border:1px solid #ffffff30;border-radius:7px;background:#191919;transition:border-color .15s,background .15s}
.project-version-option-content strong{padding-right:23px;font-size:15px;font-weight:550;color:#eee;line-height:1.3}
.project-version-option-content>span{font-size:12px;line-height:1.6;color:#bbb}
.project-version-option:hover .project-version-option-content{border-color:#ffffff70}
.project-version-option input:checked+.project-version-option-content{border-color:#ddd;background:#252525}
.project-version-option input:focus-visible+.project-version-option-content{outline:2px solid #fff;outline-offset:3px}
.project-version-field:disabled .project-version-option{cursor:wait;opacity:.6}
.project-version-help{margin:10px 0 0;font-size:11px;line-height:1.6;color:#aaa}
.project-dialog .composition-preset{background:#1a1a1a;border-color:#ffffff30;border-radius:6px;box-shadow:none;color:#f5f5f5}
.project-dialog .composition-preset:hover{background:#222;border-color:#ffffff70}
.project-dialog .composition-preset[aria-pressed=true]{background:#262626;border-color:#ddd;box-shadow:none}
.project-dialog .composition-preset-preview{height:32px;color:#ddd}
.project-dialog .composition-preset-preview>span{max-height:30px;border-color:#aaa;background:#ffffff08;box-shadow:none}
.project-dialog .composition-preset[aria-pressed=true] .composition-preset-preview>span{border-color:#fff;background:#ffffff15}
.project-dialog .composition-preset-title>b,.project-dialog .composition-preset-size{color:#bbb}
.project-dialog .composition-format-help,.project-dialog .composition-format-note{color:#bbb;font-size:11px}

@media(min-width:1800px){.main-content{padding-top:48px}.project-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.dashboard-shell{grid-template-columns:184px minmax(0,1fr)}.sidebar{padding-inline:10px}.brand{padding-inline:8px;gap:8px}.brand-name{font-size:16px}.brand-studio{display:none}.topbar{padding-inline:26px}.main-content{padding:30px 26px 0}.project-grid{gap:20px}.section-header{gap:20px}.project-controls{width:100%}.search-field{flex:1;width:auto}.section-heading h1{font-size:28px}}
@media(max-width:720px){.dashboard-shell{display:block}.sidebar{position:relative;height:auto;padding:18px 20px 0;border-right:0;border-bottom:1px solid var(--line)}.brand{padding:0;width:max-content}.brand-studio{display:inline}.workspace-label{position:absolute;right:20px;top:24px;margin:0;font-size:11px;gap:8px}.workspace-label .beta-badge{margin-left:0}.sidebar-nav{flex-direction:row;gap:8px;margin:18px 0 0}.nav-item{flex:1;justify-content:center;border-radius:6px 6px 0 0;min-height:44px}.nav-item.is-active::before{left:12px;right:12px;top:auto;bottom:0;width:auto;height:2px}.nav-divider,.sidebar-bottom{display:none}.topbar{min-height:68px;padding:12px 20px}.breadcrumb{display:none}.topbar-actions{width:100%;justify-content:flex-end;gap:8px}.topbar [data-account-link]{margin-right:auto;padding-inline:4px}.topbar-actions .button{min-height:40px}.main-content{padding:28px 20px 0}.section-header{margin-bottom:20px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.project-info{padding-left:12px}.project-meta{font-size:10px;gap:5px}.project-menu{right:7px}.main-footer>span{display:none}.main-footer{margin-top:28px}.project-menu>summary{width:32px;height:32px}.project-menu-panel>button{min-height:42px}}
@media(max-width:480px){.workspace-label{font-size:0}.workspace-label .beta-badge{font-size:10px}.nav-item{font-size:12px;gap:7px;padding-inline:6px}.nav-item .icon{width:16px;height:16px}.topbar-actions .button{padding-inline:11px;font-size:12px}.topbar-actions .button .icon{width:15px;height:15px}.project-grid{grid-template-columns:1fr;gap:20px}.project-info{padding:16px 44px 16px 16px}.project-meta{font-size:11px}.section-heading h1{font-size:28px}.section-heading>p{font-size:12px}.project-controls{gap:8px}.search-field{min-width:0;height:40px}.sort-field select{min-height:40px;max-width:126px;font-size:11px}.empty-state{padding:40px 20px}.main-footer{font-size:10px;gap:12px}.main-footer>a{font-size:10px}.project-dialog{padding:20px;width:calc(100% - 24px);max-height:calc(100dvh - 24px)}#new-project-dialog{width:calc(100% - 24px)}#new-project-dialog .dialog-actions{bottom:-20px;padding-bottom:16px;margin-bottom:-16px}.project-version-options{gap:8px}.project-version-option-content{padding:13px 11px}.project-version-option input{right:11px;top:15px}.project-version-option-content strong{font-size:14px}.project-version-option-content>span{font-size:11px}.dialog-actions .button{min-height:40px;font-size:12px;padding-inline:12px}.field-row{gap:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}
.file-drop-overlay{position:fixed;inset:0;z-index:2000;pointer-events:none;background:#0a0a0a99;box-shadow:inset 0 0 0 2px #f5f5f5aa}
.file-drop-overlay.is-refused{box-shadow:inset 0 0 0 2px #e58a7a}
.file-drop-overlay[hidden],.file-drop-frame,.file-drop-card span[hidden]{display:none}
.file-drop-card{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:4px;box-sizing:border-box;max-width:min(420px,calc(100vw - 32px));padding:16px 22px;border:1px solid var(--border);border-radius:14px;background:var(--surface);color:#f5f5f5;font-size:15px;font-weight:600;text-align:center;box-shadow:0 12px 40px #000a}
.file-drop-card span{font-size:12px;font-weight:400;color:var(--muted)}
