:root{color:#0d0d0d;font-synthesis:none;text-rendering:optimizelegibility;background:#fff;font-family:-apple-system,BlinkMacSystemFont,SF Pro Display,SF Pro Text,Noto Sans SC,sans-serif}:root[data-theme=dark]{color:#f5f5f5;background:#0d0d0d}*{box-sizing:border-box}html,body,#app{min-height:100%}html,body{overflow-x:hidden}body{background:inherit;min-width:320px;min-height:100vh;margin:0}button,input,textarea,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit;text-decoration:none}.app-shell{background:var(--bg,#fff);min-height:100vh;display:flex}.desktop-sidebar{border-right:1px solid var(--border,#eee);background:var(--surface,#fff);flex-direction:column;flex:0 0 240px;width:240px;min-height:100vh;padding:28px 16px 24px;transition:width .24s,flex-basis .24s,padding .24s;display:flex}.desktop-sidebar.is-collapsed{flex-basis:76px;width:76px;padding-left:12px;padding-right:12px}.desktop-sidebar.is-collapsed .sidebar-label{display:none}.sidebar-brand-row{justify-content:space-between;align-items:center;gap:8px;min-width:0;display:flex;position:relative}.brand{letter-spacing:0;align-items:center;gap:10px;padding:8px;font-size:16px;font-weight:600;display:inline-flex}.brand-mark{color:#fff;background:#0d0d0d;border-radius:12px;place-items:center;width:32px;height:32px;display:grid}.sidebar-collapse-toggle{color:#8f8f8f;background:0 0;border:0;border-radius:50%;flex:none;place-items:center;width:40px;height:40px;transition:background .16s,color .16s;display:grid}.sidebar-collapse-toggle:hover{color:#0d0d0d;background:#f7f7f7}.nav-list{gap:6px;margin-top:40px;display:grid}.nav-item{color:#8f8f8f;border-radius:9999px;align-items:center;gap:12px;min-height:48px;padding:0 14px;font-size:14px;transition:background .2s,color .2s;display:flex}.nav-item:hover,.nav-item.active{color:#0d0d0d;background:#f7f7f7}.desktop-sidebar.is-collapsed .sidebar-brand-row{justify-content:center;gap:0}.desktop-sidebar.is-collapsed .brand{padding:0}.desktop-sidebar.is-collapsed .brand-mark{border-radius:50%;width:26px;height:26px}.desktop-sidebar.is-collapsed .sidebar-collapse-toggle{opacity:0;background:var(--surface,#fff);width:34px;height:34px;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.desktop-sidebar.is-collapsed .sidebar-brand-row:hover .sidebar-collapse-toggle,.desktop-sidebar.is-collapsed .sidebar-collapse-toggle:focus-visible{opacity:1}.desktop-sidebar.is-collapsed .nav-item{border-radius:50%;justify-content:center;width:48px;height:48px;min-height:48px;margin-inline:auto;padding:0}.sidebar-controls{gap:8px;margin-top:auto;display:grid}.sidebar-control{color:#8f8f8f;background:0 0;border:0;border-radius:9999px;justify-content:flex-start;align-items:center;gap:12px;min-width:0;min-height:44px;padding:0 12px;display:flex}.sidebar-control:hover{color:#0d0d0d;background:#f7f7f7}.desktop-sidebar.is-collapsed .sidebar-control{border-radius:50%;justify-content:center;width:48px;height:48px;min-height:48px;margin-inline:auto;padding:0}.main-content{overscroll-behavior-x:none;flex:1;min-width:0;height:100vh;overflow:hidden auto}.mobile-header,.mobile-bottom-nav{display:none}.result-panel{min-width:0;transition:opacity .22s,transform .28s,box-shadow .22s;overflow:hidden}.result-panel.is-collapsed{width:56px}.result-panel-header{border-bottom:1px solid #eee;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px;display:flex}.result-panel-header h2{margin:0}.result-panel-header p{color:#8f8f8f;margin:4px 0 0;font-size:12px}.result-panel-content{gap:16px;padding:16px;display:grid}.result-panel-content>.surface-card{box-shadow:none}.result-panel.is-collapsed .result-panel-header{border-bottom:0;justify-content:center;padding:8px}.page{width:min(1120px,100%);margin:0 auto;padding:64px clamp(24px,5vw,64px) 80px}.page-intro{max-width:680px;margin-bottom:40px}.eyebrow{color:#8f8f8f;letter-spacing:.12em;margin:0 0 12px;font-size:12px;font-weight:600}h1,h2,p{margin-top:0}h1{letter-spacing:0;margin-bottom:12px;font-size:clamp(28px,4vw,40px);font-weight:600}h2{margin-bottom:8px;font-size:20px;font-weight:600}.page-description,.section-heading p,.empty-state p,.empty-panel p,.about-card p{color:#8f8f8f;line-height:1.6}.workspace-grid{grid-template-columns:minmax(440px,1.1fr) minmax(360px,.9fr);align-items:start;gap:24px;transition:grid-template-columns .28s;display:grid}.workspace-grid.results-collapsed{grid-template-columns:1fr}.result-panel.is-collapsed{z-index:25;border:1px solid #e8e8e8;border-right:0;border-radius:20px 0 0 20px;width:40px;height:76px;right:0;transform:translateY(-50%);box-shadow:0 6px 24px #0000001f;position:fixed!important;top:50vh!important;bottom:auto!important}.result-panel.is-collapsed .result-panel-header{border:0;justify-content:center;height:100%;padding:8px}.result-panel.is-collapsed .result-panel-header .icon-button{color:#777;background:0 0;border-radius:18px 0 0 18px;width:38px;height:74px}.result-panel.is-collapsed .result-panel-header .icon-button:hover{color:#111;background:#f5f5f5}@keyframes result-tab-in{0%{opacity:0;transform:translate(12px,-50%)}to{opacity:1;transform:translateY(-50%)}}@media (width>=768px){.result-panel.is-collapsed{animation:.28s both result-tab-in}}.surface-card{background:#fff;border-radius:24px;box-shadow:0 4px 16px #0000000f}.generation-card,.setting-card{padding:24px}.section-heading{justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px;display:flex}.section-heading>svg{color:#8f8f8f}.field,.field-label{gap:8px;display:grid}.generation-card>.field+.field,.generation-card>.token-budget+.field,.prompt-field,.resolution-field,.custom-resolution-fields{margin-top:20px}.field-label{color:#0d0d0d;margin-bottom:8px;font-size:14px;font-weight:500}.field-hint{color:#8f8f8f;margin:8px 0 0;font-size:12px;line-height:1.5}.text-input{color:#0d0d0d;background:#fff;border:1px solid #eee;border-radius:12px;outline:none;width:100%;min-height:48px;padding:12px 14px;transition:border-color .16s,box-shadow .16s}.text-input:focus{border-color:#0d0d0d;box-shadow:0 0 0 3px #0d0d0d14}.prompt-input{resize:vertical;min-height:144px;max-height:40vh;line-height:1.6;overflow-y:hidden}.prompt-input-compact{min-height:48px;max-height:180px}.prompt-editor{position:relative}.prompt-editor .prompt-input{display:block}.tag-suggestions{z-index:4;background:#fff;border-radius:16px;max-height:220px;padding:6px;display:grid;position:absolute;top:calc(100% + 8px);left:0;right:0;overflow:auto;box-shadow:0 8px 32px #0000001f}.tag-suggestions button{text-align:left;background:0 0;border:0;border-radius:10px;align-items:baseline;gap:8px;min-height:40px;padding:8px 10px;display:flex}.tag-suggestions button:hover{background:#f7f7f7}.tag-suggestions span{color:#8f8f8f;font-size:12px}.token-budget{color:#8f8f8f;justify-content:space-between;align-items:baseline;gap:12px;margin-top:8px;font-size:12px;display:flex}.token-budget small{color:#b5b5b5}.token-warning span{color:#9a6700}.token-danger span,.token-failed span{color:#b42318}.field-row{grid-template-columns:1fr 160px;gap:16px;margin-top:20px;display:grid}.button{border:0;border-radius:9999px;justify-content:center;align-items:center;gap:8px;min-height:52px;padding:0 22px;font-size:15px;font-weight:500;transition:transform .16s,background .16s;display:inline-flex}.button:active{transform:scale(.98)}.button-primary{color:#fff;background:#0d0d0d}.button-primary:hover{background:#2b2b2b}.button:disabled{cursor:not-allowed;opacity:.55}.button-secondary{color:#0d0d0d;background:#f7f7f7}.button-spinner{border:2px solid;border-right-color:#0000;border-radius:9999px;width:18px;height:18px;animation:.8s linear infinite spin-loading}.generation-card .button{width:100%;margin-top:24px}.switch-row{color:#0d0d0d;align-items:center;gap:10px;min-height:44px;margin-top:16px;font-size:14px;display:inline-flex}.switch-row input{accent-color:#0d0d0d;width:18px;height:18px}.advanced-toggle{color:#0d0d0d;background:0 0;border:0;align-items:center;gap:8px;min-height:44px;margin-top:16px;padding:0;font-size:14px;display:inline-flex}.advanced-toggle span{color:#8f8f8f}.advanced-panel{background:#f7f7f7;border-radius:16px;gap:12px;margin-top:12px;padding:16px;display:grid}.advanced-panel .switch-row{margin-top:0}.form-error{color:#b42318;margin:16px 0 0;font-size:14px}.form-success{color:#26734d;margin:16px 0 0;font-size:14px}.form-actions{grid-template-columns:1fr auto;gap:10px;display:grid}.form-actions .button{margin-top:24px}.result-grid{grid-template-columns:repeat(auto-fill,minmax(180px,1fr));align-content:start;gap:16px;display:grid}.result-card{background:#fff;border-radius:20px;padding-bottom:12px;overflow:hidden;box-shadow:0 4px 16px #0000000f}.result-card img{aspect-ratio:1;object-fit:cover;background:#f3f3f3;width:100%;display:block}.result-card p{color:#0d0d0d;text-overflow:ellipsis;white-space:nowrap;margin:10px 12px;font-size:12px;overflow:hidden}.result-card .button{width:calc(100% - 24px);margin:0 12px}.result-card .compact-button{width:auto;margin:0 12px}.result-viewer-backdrop{z-index:40}.result-viewer{background:#fff;border-radius:24px;gap:16px;width:min(880px,100%);max-height:90vh;padding:24px;display:grid;position:relative;overflow:auto;box-shadow:0 8px 40px #0003}.result-viewer img{object-fit:contain;background:#f3f3f3;width:100%;max-height:72vh;display:block}.result-viewer .viewer-close{z-index:1;position:absolute;top:16px;right:16px}.result-viewer-actions{justify-content:flex-end;display:flex}.empty-panel,.empty-state{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:360px;padding:40px 24px;display:flex}.empty-state{min-height:420px}.empty-icon{color:#8f8f8f;background:#f7f7f7;border-radius:20px;place-items:center;width:64px;height:64px;margin-bottom:20px;display:grid}.empty-panel p,.empty-state p{max-width:390px;margin-bottom:24px}.generation-progress{text-align:center;flex-direction:column;justify-content:center;align-items:center;gap:12px;min-height:360px;padding:40px 24px;display:flex}.generation-progress p,.generation-progress small{color:#8f8f8f;margin:0}.loading-orbit{background:#f7f7f7;border-radius:20px;place-items:center;width:64px;height:64px;animation:1.4s ease-in-out infinite pulse-loading;display:grid}.loading-dots{justify-content:center;align-items:center;gap:8px;min-height:12px;margin-top:4px;display:inline-flex}.loading-dots span{background:#0d0d0d;border-radius:9999px;width:8px;height:8px;animation:1s ease-in-out infinite loading-dot}.loading-dots span:nth-child(2){animation-delay:.15s}.loading-dots span:nth-child(3){animation-delay:.3s}.progress-track{background:#eee;border-radius:9999px;width:min(320px,100%);height:6px;overflow:hidden}.progress-track span{border-radius:inherit;background:#0d0d0d;height:100%;transition:width .22s;display:block}@keyframes pulse-loading{50%{opacity:.62;transform:scale(1.08)}}@keyframes loading-dot{0%,80%,to{opacity:.3;transform:translateY(0)}40%{opacity:1;transform:translateY(-4px)}}@keyframes spin-loading{to{transform:rotate(360deg)}}.toast-stack{z-index:100010;pointer-events:none;gap:10px;width:min(380px,100vw - 32px);display:grid;position:fixed;bottom:24px;right:24px}.toast{color:#0d0d0d;pointer-events:auto;background:#fff;border:1px solid #eee;border-radius:16px;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;font-size:14px;display:flex;box-shadow:0 8px 32px #0000001f}.toast-success{border-color:#b7dfc8}.toast-error{color:#8f241b;border-color:#efb5b0}.toast button{width:24px;height:24px;color:inherit;background:#f7f7f7;border:0;border-radius:50%}.settings-stack{gap:24px;max-width:720px;display:grid}.backup-actions{flex-wrap:wrap;gap:8px;display:flex}.setting-card{gap:18px;display:grid}.setting-card .section-heading{margin-bottom:4px}.theme-switcher{gap:8px;display:flex}.theme-option{color:#8f8f8f;background:#f7f7f7;border:0;border-radius:9999px;align-items:center;gap:8px;min-height:48px;padding:0 16px;display:inline-flex}.theme-option.selected{color:#fff;background:#0d0d0d}.about-card{gap:16px;max-width:680px;padding:24px;display:flex}.about-card>svg{color:#0d0d0d;flex:none}.about-card p{margin-bottom:0}.about-stack{gap:16px;max-width:760px;display:grid}.about-card-warning{border:1px solid #e5b8b3}.about-card-warning>svg{color:#b42318}.about-card-warning p+p{margin-top:12px}.library-heading{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:32px;display:flex}.library-heading .page-description{max-width:720px;margin-bottom:0}.library-heading-icon{color:#8f8f8f;background:#f7f7f7;border-radius:18px;flex:none;place-items:center;width:56px;height:56px;display:grid}.library-toolbar{justify-content:space-between;align-items:flex-end;gap:20px;padding:16px;display:flex}.group-control{align-items:flex-end;gap:8px;min-width:min(340px,100%);display:flex}.group-control .field-label{white-space:nowrap;align-self:center;margin:0}.group-control .text-input{min-width:160px}.library-actions{flex-wrap:wrap;justify-content:flex-end;gap:8px;display:flex}.compact-button{min-height:44px;padding:0 16px;font-size:13px}.compact-button:disabled{cursor:not-allowed;opacity:.45}.icon-button{color:#0d0d0d;background:#f7f7f7;border:0;border-radius:50%;flex:none;place-items:center;width:44px;height:44px;display:grid}.file-status{color:#8f8f8f;align-items:center;gap:6px;margin:12px 4px 24px;font-size:12px;display:flex}.visually-hidden{clip:rect(0 0 0 0);white-space:nowrap;clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}.library-page.is-dragging{outline-offset:-12px;outline:2px dashed #0d0d0d}.drop-overlay{z-index:20;color:#0d0d0d;pointer-events:none;background:#ffffffeb;border:2px dashed #0d0d0d;border-radius:24px;justify-content:center;align-items:center;gap:12px;font-size:18px;font-weight:500;display:flex;position:fixed;inset:24px}.library-loading{color:#8f8f8f;place-items:center;min-height:320px;display:grid}.image-grid{align-items:flex-start;gap:16px;display:flex}.masonry-column{flex:1 1 0;align-content:start;gap:16px;min-width:0;display:grid}.image-card{cursor:default;background:#fff;border-radius:20px;width:100%;position:relative;overflow:hidden;box-shadow:0 2px 8px #0000000a}.image-card.selected{outline-offset:2px;outline:3px solid #0d0d0d}.image-card img{object-fit:cover;background:#f3f3f3;width:100%;height:auto;display:block}.image-card-actions{z-index:1;opacity:0;gap:6px;transition:opacity .16s;display:flex;position:absolute;top:10px;right:10px}.image-card:hover .image-card-actions,.image-card:focus-within .image-card-actions{opacity:1}.image-card-actions .icon-button{background:#ffffffe6;border:1px solid #ffffffa6;width:36px;height:36px;box-shadow:0 3px 10px #0000001a}@media (width<=767px){.image-card-actions{opacity:1}.image-grid,.masonry-column{gap:10px}}.image-card-footer{color:#fff;background:linear-gradient(#0d0d0d00 0%,#0d0d0db8 100%);justify-content:space-between;align-items:flex-end;gap:8px;min-height:64px;padding:28px 12px 10px;font-size:12px;display:flex;position:absolute;bottom:0;left:0;right:0}.image-card-footer span{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.selection-check{color:#0d0d0d;background:#fff;border:1px solid #eee;border-radius:50%;flex:none;place-items:center;width:28px;height:28px;display:grid}.image-card.selected .selection-check{color:#fff;background:#0d0d0d;border-color:#0d0d0d}.selection-bar{z-index:8;background:#fff;border-radius:9999px;align-items:center;gap:16px;padding:10px 12px 10px 18px;display:flex;position:fixed;bottom:24px;right:32px;box-shadow:0 8px 32px #0000001f}.selection-bar span{font-size:13px}.modal-backdrop{z-index:30;background:#0d0d0d6b;justify-content:center;align-items:center;padding:24px;display:flex;position:fixed;inset:0}.image-viewer{background:#fff;border-radius:24px;grid-template-columns:minmax(0,1.2fr) minmax(280px,.8fr);width:min(1000px,100%);max-height:min(760px,100%);display:grid;position:relative;overflow:auto;box-shadow:0 8px 32px #00000029}.viewer-image{object-fit:contain;background:#f3f3f3;width:100%;height:100%;min-height:360px;max-height:720px}.viewer-info{align-content:start;gap:16px;padding:32px 24px 24px;display:grid;position:relative}.viewer-info h2{overflow-wrap:anywhere;padding-right:24px}.viewer-close{z-index:1;background:#f7f7f7;position:absolute;top:16px;right:16px}.metadata-list{gap:10px;display:grid}.metadata-list div{border-bottom:1px solid #eee;justify-content:space-between;gap:16px;padding-bottom:10px;font-size:13px;display:flex}.metadata-list span{color:#8f8f8f}.metadata-list strong{overflow-wrap:anywhere;text-align:right;max-width:65%;font-weight:500}.viewer-info details{color:#8f8f8f;font-size:12px}.viewer-info pre{color:#0d0d0d;white-space:pre-wrap;word-break:break-word;background:#f7f7f7;border-radius:12px;max-height:220px;padding:12px;overflow:auto}.viewer-actions{z-index:100003;justify-content:flex-end;gap:12px;display:flex;position:absolute;bottom:24px;right:24px}.viewer-info>.button{width:100%}@media (width<=1100px) and (width>=768px){.workspace-grid:not(.results-collapsed){grid-template-columns:minmax(0,1fr)}.result-panel{width:100%}}@media (width<=767px){.result-panel.is-collapsed .result-panel-header,.result-panel.is-collapsed .result-panel-content{display:none}.desktop-sidebar{display:none}.main-content{height:auto;min-height:100vh;overflow:visible}.mobile-header{z-index:160;background:#fffffff5;border-bottom:1px solid #eee;justify-content:space-between;align-items:center;height:64px;padding:0 20px;font-size:16px;font-weight:600;display:flex;position:fixed;top:0;left:0;right:0}.mobile-header-brand{align-items:center;gap:10px;display:inline-flex}.mobile-header-brand .brand-mark{border-radius:10px;width:30px;height:30px}.page{padding:104px 24px calc(104px + env(safe-area-inset-bottom))}.workspace-grid{grid-template-columns:1fr}.result-panel{z-index:120;border-radius:0;width:100vw;height:calc(100dvh - 64px);max-height:none;transition:transform .22s;position:fixed;top:64px;bottom:auto;right:0;overflow-y:auto;transform:translate(0)!important}.result-panel.is-collapsed{border:0;border-radius:0;width:100vw;height:calc(100dvh - 64px);right:0;box-shadow:-8px 0 28px #00000024;top:64px!important;transform:translate(100%)!important}.result-panel.is-collapsed .result-panel-header,.result-panel.is-collapsed .result-panel-content{display:none}.empty-panel{min-height:280px}.mobile-bottom-nav{z-index:180;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:#fffffff5;border-top:1px solid #eee;grid-template-columns:repeat(5,1fr);display:grid;position:fixed;bottom:0;left:0;right:0}.mobile-nav-item{color:#8f8f8f;border-radius:12px;flex-direction:column;justify-content:center;align-items:center;gap:3px;min-height:48px;font-size:11px;display:flex}.mobile-nav-item.active{color:#0d0d0d;background:#f7f7f7}.field-row{grid-template-columns:1fr 1fr}.about-card{align-items:flex-start}.library-heading{margin-bottom:24px}.library-heading-icon{width:48px;height:48px}.library-toolbar{flex-direction:column;align-items:stretch}.group-control{min-width:0}.library-actions{justify-content:flex-start}.selection-bar{right:16px;bottom:calc(88px + env(safe-area-inset-bottom));justify-content:space-between;left:16px}.modal-backdrop{z-index:200;justify-content:flex-start;align-items:stretch;padding:0}.image-viewer{z-index:201;border-radius:0;grid-template-rows:max-content max-content;grid-template-columns:minmax(0,1fr);align-content:start;width:100vw;height:100dvh;max-height:none;position:fixed;inset:0;overflow-y:auto}.viewer-image{aspect-ratio:auto;object-fit:contain;align-self:start;width:100%;height:auto;min-height:0;max-height:none;display:block}.viewer-info{min-height:0;padding:24px 20px calc(24px + env(safe-area-inset-bottom))}.viewer-close{z-index:202;position:fixed;top:16px;right:16px}.result-viewer-backdrop{z-index:99999;justify-content:stretch;align-items:stretch;padding:0}.result-viewer{z-index:100000;width:100vw;height:100dvh;max-height:none;padding:0 0 calc(116px + env(safe-area-inset-bottom));border-radius:0;grid-template-rows:minmax(0,1fr);grid-template-columns:minmax(0,1fr);gap:16px;display:grid;position:fixed;inset:0;overflow-y:auto}.result-viewer img{object-fit:contain;align-self:start;width:100%;height:auto;min-height:0;max-height:none}.result-viewer .viewer-close{z-index:100001;position:fixed;top:16px;right:16px}.result-viewer-actions{z-index:100001;padding:12px 16px calc(12px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;border-top:1px solid #0d0d0d14;justify-content:flex-end;gap:12px;display:flex;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -10px 28px #00000014}.result-viewer-actions .button{width:100%}.toast-stack{right:16px;bottom:calc(88px + env(safe-area-inset-bottom));z-index:100010;width:auto;left:16px}}@media (prefers-color-scheme:dark){:root[data-theme=dark] .desktop-sidebar,:root[data-theme=dark] .mobile-header,:root[data-theme=dark] .mobile-bottom-nav,:root[data-theme=dark] .surface-card,:root[data-theme=dark] .text-input{background:#161616}:root[data-theme=dark] .app-shell{background:#0d0d0d}:root[data-theme=dark] .desktop-sidebar,:root[data-theme=dark] .mobile-header,:root[data-theme=dark] .mobile-bottom-nav,:root[data-theme=dark] .text-input{border-color:#292929}:root[data-theme=dark] .nav-item:hover,:root[data-theme=dark] .nav-item.active,:root[data-theme=dark] .mobile-nav-item.active,:root[data-theme=dark] .theme-option,:root[data-theme=dark] .sidebar-control:hover,:root[data-theme=dark] .sidebar-control.active{color:#f5f5f5;background:#2b2b2b}:root[data-theme=dark] .text-input,:root[data-theme=dark] .field-label,:root[data-theme=dark] .brand,:root[data-theme=dark] h1,:root[data-theme=dark] h2{color:#f5f5f5}}:root[data-theme=dark] .nav-item:hover,:root[data-theme=dark] .nav-item.active,:root[data-theme=dark] .mobile-nav-item.active,:root[data-theme=dark] .theme-option,:root[data-theme=dark] .sidebar-control:hover,:root[data-theme=dark] .sidebar-control.active,:root[data-theme=dark] .sidebar-collapse-toggle:hover{color:#f5f5f5;background:#2b2b2b}:root[data-theme=dark] .desktop-sidebar.is-collapsed .sidebar-collapse-toggle{background:#161616}:root[data-theme=dark] .advanced-panel{color:#f5f5f5;background:#242424}:root[data-theme=dark] .advanced-panel .field-label,:root[data-theme=dark] .advanced-panel .switch-row,:root[data-theme=dark] .about-card>svg{color:#f5f5f5}:root[data-theme=dark] .about-card-warning{border-color:#71352f}:root[data-theme=dark] .about-card-warning>svg{color:#ef8f87}:root[data-theme=dark] .mobile-header .brand-mark{color:#0d0d0d;background:#fff}:root[data-theme=dark] .viewer-actions{background:#161616}@media (width<=767px){.generate-page .page-intro{display:none}.generate-page.page{padding-top:80px;padding-bottom:calc(24px + 64px + env(safe-area-inset-bottom))}.generate-page .generation-card{z-index:140;right:0;bottom:calc(64px + env(safe-area-inset-bottom));width:100vw;height:min(var(--generation-sheet-height,58dvh), calc(100dvh - 128px));-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);will-change:transform, opacity, height;border-radius:24px 24px 0 0;flex-direction:column;max-height:calc(100dvh - 128px);margin:0;padding:0;transition:transform .22s,opacity .22s,height .22s,box-shadow .22s;display:flex;position:fixed;left:0;overflow:hidden;box-shadow:0 -16px 40px #00000029}.generate-page .generation-card:not(.is-ready){opacity:0;pointer-events:none;transform:translateY(calc(100% + 20px))}.generate-page .generation-card.is-dragging{transition:none}.generate-page .generation-card-header{background:inherit;z-index:1;flex:none;gap:4px;padding:8px 16px 0;display:grid;position:relative}.generate-page .generation-card-grip{width:100%;min-height:28px;color:inherit;touch-action:none;-webkit-user-select:none;user-select:none;cursor:ns-resize;background:0 0;border:0;justify-content:center;align-items:center;padding:6px 0 4px;display:flex}.generate-page .generation-card-grip span{background:#0d0d0d1f;border-radius:9999px;width:44px;height:5px;display:block}.generate-page .generation-card-toggle{background:#f7f7f7eb;width:40px;height:40px}.generate-page .generation-card .section-heading{margin-bottom:0;padding-bottom:12px}.generate-page .generation-card-body{overscroll-behavior:contain;min-height:0;padding:0 16px calc(16px + env(safe-area-inset-bottom));flex:auto;display:grid;overflow-y:auto}.generate-page .generation-card-body>.field+.field,.generate-page .generation-card-body>.token-budget+.field,.generate-page .generation-card-body .prompt-field,.generate-page .generation-card-body .custom-resolution-fields{margin-top:16px}.generate-page .generation-card .form-actions{background:linear-gradient(#fff0 0%,#ffffffe0 26px,#fffffffa 100%);gap:10px;margin-top:16px;padding-top:12px;position:sticky;bottom:0}.generate-page .generation-card .form-actions .button{margin-top:0}.generate-page .generation-card .field-row{margin-top:16px}.generate-page .result-panel-content{padding-bottom:calc(var(--generation-sheet-height,58dvh) + 24px)}.generate-page .generation-card.is-collapsed{height:var(--generation-sheet-height,92px);overflow:hidden;box-shadow:0 -8px 24px #0000001f}.generate-page .generation-card.is-collapsed .generation-card-body{display:none}:root[data-theme=dark] .generate-page .generation-card-toggle{background:#2b2b2beb}:root[data-theme=dark] .generate-page .generation-card-grip span{background:#ffffff2e}:root[data-theme=dark] .generate-page .generation-card .form-actions{background:linear-gradient(#16161600 0%,#161616e0 26px,#161616fa 100%)}:root[data-theme=dark] .generate-page .generation-card.is-collapsed{box-shadow:0 -8px 24px #0000003d}html.viewer-open,body.viewer-open{overscroll-behavior:contain;overflow:hidden!important}.viewer-open .mobile-header,.viewer-open .mobile-bottom-nav{z-index:1!important}.result-panel{z-index:120!important;border-radius:0!important;width:100vw!important;height:calc(100dvh - 64px)!important;position:fixed!important;top:64px!important;bottom:auto!important;right:0!important;transform:translate(0)!important}.result-panel.is-collapsed{top:64px!important;right:0!important;transform:translate(100%)!important}.modal-backdrop{justify-content:stretch;align-items:stretch;padding:0;overflow:hidden;z-index:99999!important;position:fixed!important;inset:0!important}.image-viewer{grid-template-rows:max-content max-content;grid-template-columns:minmax(0,1fr);align-content:start;z-index:100000!important;border-radius:0!important;width:100vw!important;height:100dvh!important;max-height:none!important;display:grid!important;position:fixed!important;inset:0!important;overflow:hidden auto!important}.image-viewer .viewer-image{object-fit:contain;display:block;width:100%!important;height:auto!important;max-height:none!important}.image-viewer .viewer-info{min-height:0;padding:24px 20px calc(180px + env(safe-area-inset-bottom));gap:16px;display:grid;position:relative}.viewer-actions{z-index:100003;padding:12px 16px calc(12px + env(safe-area-inset-bottom));-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;border-top:1px solid #0d0d0d14;grid-template-columns:minmax(0,1fr);justify-items:stretch;gap:12px;display:grid;position:fixed;bottom:0;left:0;right:0;box-shadow:0 -10px 28px #00000014}.viewer-actions .button{width:100%;margin:0}.viewer-close{top:16px;right:16px;z-index:100004!important;position:fixed!important}.library-toolbar{flex-direction:column;align-items:stretch;gap:12px;padding:12px}.group-control{gap:6px;min-width:0}.group-control .text-input{min-width:0;min-height:44px;padding:10px 12px;font-size:13px}.library-toolbar .icon-button{width:40px;height:40px}.library-toolbar .compact-button{min-height:40px;padding:0 14px;font-size:12px}.library-actions{justify-content:flex-start;gap:8px}.selection-bar{gap:10px;padding:8px 10px 8px 14px}.selection-bar .compact-button{min-height:40px;padding:0 12px;font-size:12px}}:root[data-theme=dark] .viewer-actions{background:#161616f5;border-top-color:#ffffff14;box-shadow:0 -10px 28px #00000047}:root[data-theme=dark] .loading-dots span{background:#f5f5f5}:root[data-theme=dark] .result-viewer-actions{background:#161616f5;border-top-color:#ffffff14;box-shadow:0 -10px 28px #00000047}
