:root{color-scheme:dark;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#f2efe5;background:#12140f;font-synthesis:none;text-rendering:optimizeLegibility;--bg: #12140f;--panel: #1c211b;--panel-2: #242a22;--panel-3: #2d241f;--line: #3d473a;--line-strong: #607052;--text: #f2efe5;--muted: #b7c1ae;--soft: #8d9b84;--green: #67b783;--green-dark: #2d7a55;--rust: #ce5f3c;--rust-dark: #a9472c;--gold: #e0ba69;--danger: #ff9d89}*{box-sizing:border-box}body{margin:0;min-width:320px;min-height:100vh}button,input,select,textarea{font:inherit}button{cursor:pointer}.app-shell{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(circle at 15% 10%,rgba(103,183,131,.14),transparent 28rem),linear-gradient(135deg,#12140f,#191d17 52%,#261d1a)}.topbar{min-height:104px;padding:24px clamp(18px,4vw,48px);display:flex;align-items:center;justify-content:space-between;gap:20px;border-bottom:1px solid var(--line);background:#12140feb;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.eyebrow{margin:0 0 6px;color:var(--green);font-size:.78rem;font-weight:700;letter-spacing:0;text-transform:uppercase}h1,h2,p{margin:0}h1{font-size:clamp(1.55rem,3vw,2.25rem);line-height:1.08;letter-spacing:0}h2{font-size:1rem;letter-spacing:0}.topbar-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.connection-pill{min-height:36px;display:inline-flex;align-items:center;gap:8px;padding:0 12px;border:1px solid rgba(255,255,255,.1);border-radius:999px;color:#bdbdbd;background:#252525;font-size:.78rem;font-weight:800}.connection-pill.connected{color:#bdf4cc;border-color:#67b78359;background:#2d7a552e}.connection-pill.offline{color:#ffd0c7;border-color:#ff9d894d;background:#a9472c24}.mobile-settings-button{display:none}.workspace{flex:1;display:grid;grid-template-columns:minmax(340px,430px) 1fr;min-height:0}.control-panel{padding:24px clamp(18px,3vw,34px);display:flex;flex-direction:column;gap:18px;border-right:1px solid var(--line);background:#1c211bf5}.panel-heading{display:flex;align-items:center;gap:10px;color:var(--text)}.panel-heading.compact{margin-top:4px}.panel-heading.with-action{justify-content:space-between}.heading-title{display:inline-flex;align-items:center;gap:10px}.direction-actions{display:inline-flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}.toggle-control{min-height:34px;display:inline-flex;align-items:center;gap:8px;padding:0 10px;border:1px solid var(--line);border-radius:8px;color:var(--muted);background:#151a13;font-size:.88rem;font-weight:800;cursor:pointer}.toggle-control input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.switch-track{width:38px;height:20px;display:inline-flex;align-items:center;padding:2px;border:1px solid var(--line-strong);border-radius:999px;background:#0f130e;transition:border-color .16s ease,background .16s ease}.switch-thumb{width:14px;height:14px;border-radius:999px;background:var(--soft);transition:transform .16s ease,background .16s ease}.toggle-control:has(input:checked){border-color:var(--green);color:#07120c;background:var(--green)}.toggle-control:has(input:checked) .switch-track{border-color:#07120c52;background:#07120c38}.toggle-control:has(input:checked) .switch-thumb{transform:translate(18px);background:#07120c}.toggle-control:has(input:focus-visible){box-shadow:0 0 0 3px #67b78333}.direction-note{margin-top:-6px;color:var(--soft);font-size:.86rem;line-height:1.35}.mini-button{min-height:34px;padding:0 10px;font-size:.88rem}.mini-icon-button{width:34px;height:34px;flex:0 0 auto}.advanced-panel{display:flex;flex-direction:column;gap:14px}textarea,input,select{width:100%;border:1px solid var(--line);border-radius:8px;background:#141811;color:var(--text);outline:none}textarea{resize:vertical;min-height:190px;padding:14px;line-height:1.45}input,select{min-height:42px;padding:0 11px}textarea:focus,input:focus,select:focus{border-color:var(--green);box-shadow:0 0 0 3px #67b7832e}.preset-row{display:flex;flex-wrap:wrap;gap:8px}.icon-button{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;color:var(--text);background:var(--panel-2)}.icon-button:hover{border-color:var(--green);color:#cbf5d6}.icon-button.danger-button{color:#ffc3b7}.icon-button.danger-button:hover{border-color:#ff9d89cc;color:#fff0ec;background:#70261e94}.text-button{width:auto;min-height:38px;height:auto;max-width:100%;padding:0 10px;gap:7px;justify-content:flex-start;text-align:left}.text-button span{max-width:245px;overflow-wrap:anywhere;white-space:normal}fieldset{margin:0;padding:0;border:0}legend,.field span{display:block;margin-bottom:7px;color:var(--muted);font-size:.86rem;font-weight:700}.segmented{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.segmented button{min-height:40px;padding:0 8px;border:1px solid var(--line);border-radius:8px;color:var(--text);background:#151a13}.segmented button.active{border-color:var(--green);color:#07120c;background:var(--green)}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.message{display:flex;align-items:flex-start;gap:9px;padding:11px 12px;border-radius:8px;font-size:.92rem;line-height:1.35}.codex-login-notice{margin:0 0 14px}.message.error{color:#ffd6cf;background:#70261e8c;border:1px solid rgba(255,157,137,.6)}.message.muted{color:#d3decb;background:#2e3c2ab8;border:1px solid rgba(132,154,119,.55)}.message a{color:#bff3cf;font-weight:800}.setup-actions{display:flex;flex-wrap:wrap;gap:9px}.setup-actions .secondary-button{flex:1 1 132px}.upload-panel{display:flex;flex-direction:column;gap:12px;padding:12px;border:1px solid var(--line);border-radius:8px;background:#14181199}.upload-dropzone{min-height:82px;display:flex;align-items:center;justify-content:center;gap:10px;border:1px dashed var(--line-strong);border-radius:8px;color:var(--text);background:#141811;font-weight:800;cursor:pointer}.upload-dropzone:hover{border-color:var(--green);color:#cbf5d6}.upload-dropzone input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.upload-button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:9px;padding:0 14px;border:1px dashed var(--line-strong);border-radius:8px;color:var(--text);background:#ffffff0a;font-weight:800;cursor:pointer}.upload-button:hover{border-color:var(--green);color:#cbf5d6}.upload-button input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.compact-upload-button{min-height:38px;justify-self:start}.attachment-list{display:grid;gap:10px}.reference-upload-grid{display:grid;gap:9px}.reference-upload-card{min-width:0;display:grid;grid-template-columns:58px minmax(0,1fr) 32px;align-items:center;gap:10px;padding:8px;border:1px solid var(--line);border-radius:9px;background:#ffffff09}.reference-upload-card img,.reference-format-placeholder{width:58px;height:58px;border:1px solid var(--line);border-radius:8px;object-fit:cover;background:#0f130e}.reference-format-placeholder{display:grid;place-items:center;gap:1px;color:var(--accent)}.reference-format-placeholder small{color:var(--muted);font-size:.62rem;line-height:1}.reference-upload-card>div{min-width:0;display:flex;flex-direction:column;gap:4px}.reference-upload-card strong,.reference-upload-card span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.reference-upload-card strong{color:var(--text);font-size:.88rem}.reference-upload-card span,.compact-reference-dropzone small{color:var(--muted);font-size:.76rem}.compact-reference-dropzone{grid-template-columns:auto 1fr}.compact-reference-dropzone small{grid-column:2}.attachment-row{grid-template-columns:52px 1fr 34px;padding:8px;border:1px solid var(--line);border-radius:8px;background:#ffffff09}.field-error{margin:0;color:#ffb4a8;font-size:.86rem}.upload-preview{display:grid;grid-template-columns:76px 1fr;align-items:center;gap:12px}.upload-preview img{width:76px;aspect-ratio:1 / 1;border:1px solid var(--line);border-radius:8px;object-fit:cover;background:#0f130e}.file-upload-preview{grid-template-columns:52px 1fr}.file-upload-preview>svg{width:52px;height:52px;padding:9px;border:1px solid var(--line);border-radius:8px;color:var(--accent);background:#ffffff0a}.upload-preview div{min-width:0;display:flex;flex-direction:column;gap:4px}.upload-preview strong{color:var(--text);overflow-wrap:anywhere}.upload-preview span{color:var(--muted);font-size:.86rem}.reference-panel{display:grid;grid-template-columns:74px 1fr 38px;gap:12px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:8px;background:#141811b8}.reference-panel img{width:74px;aspect-ratio:1 / 1;border:1px solid var(--line);border-radius:8px;object-fit:cover;background:#0f130e}.reference-copy{min-width:0;display:flex;flex-direction:column;gap:10px}.reference-copy p{color:var(--muted);font-size:.88rem;line-height:1.35;max-height:3.6em;overflow:hidden}.prompt-preview-panel{border:1px solid var(--line);border-radius:8px;background:#11150fbd;overflow:hidden}.prompt-preview-panel summary{min-height:42px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:5px 8px 5px 12px;color:var(--muted);font-size:.9rem;font-weight:800;list-style:none;cursor:pointer}.prompt-preview-panel summary::-webkit-details-marker{display:none}.prompt-preview-panel pre{max-height:260px;margin:0;padding:12px;border-top:1px solid var(--line);color:#e7eddc;font:.84rem/1.45 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;white-space:pre-wrap;overflow:auto}.prompt-attachment-note{display:flex;align-items:center;gap:8px;padding:10px 12px;border-top:1px solid var(--line);color:var(--muted);font-size:.84rem;overflow-wrap:anywhere}.prompt-reference-thumb{width:30px;height:30px;flex:0 0 auto;border:1px solid var(--line);border-radius:6px;object-fit:cover}.generate-button{min-height:48px;display:inline-flex;align-items:center;justify-content:center;gap:10px;border:0;border-radius:8px;color:#fffaf2;background:var(--rust);font-weight:800}.generate-button:hover:not(:disabled){background:var(--rust-dark)}.secondary-button{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid var(--line-strong);border-radius:8px;color:var(--text);background:var(--panel-2);font-weight:800}.secondary-button:hover:not(:disabled){border-color:var(--green);color:#cbf5d6}.secondary-button:disabled{cursor:wait;opacity:.72}.generate-button:disabled{cursor:wait;opacity:.72}.working-indicator{display:grid;grid-template-columns:auto 1fr;gap:12px;padding:14px;border:1px solid rgba(236,236,236,.18);border-radius:14px;background:linear-gradient(135deg,#ececec1a,#7c5cff1f);box-shadow:0 16px 42px #00000038}.working-orb{width:42px;height:42px;display:grid;place-items:center;border-radius:999px;color:#111;background:#ececec}.working-copy{min-width:0;display:grid;gap:7px}.working-title-row{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#f5f5f5}.working-title-row span,.working-copy small,.working-copy code{color:#a8a8a8;font-size:.78rem}.working-copy p{margin:0;color:#d5d5d5;font-size:.86rem;line-height:1.35}.working-copy code{overflow-wrap:anywhere}.working-progress{height:6px;overflow:hidden;border-radius:999px;background:#ffffff1a}.working-progress span{display:block;width:38%;height:100%;border-radius:inherit;background:linear-gradient(90deg,transparent,#ececec,transparent);animation:working-slide 1.35s ease-in-out infinite}.composer-working-chip{width:fit-content;max-width:calc(100% - 32px);margin:0 auto 10px;display:inline-flex;align-items:center;gap:7px;padding:7px 10px;border:1px solid rgba(255,255,255,.13);border-radius:999px;color:#ececec;background:#111111c2;font-size:.78rem}@keyframes working-slide{0%{transform:translate(-110%)}to{transform:translate(265%)}}.spin{animation:spin .9s linear infinite}.gallery-panel{min-width:0;padding:24px clamp(18px,3vw,42px);background:#12140f80}.gallery-toolbar{min-height:46px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.empty-state{min-height:calc(100vh - 154px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:var(--soft);text-align:center}.empty-state h2{color:var(--text);font-size:1.2rem}.gallery-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}.image-card{overflow:hidden;border:1px solid var(--line);border-radius:8px;background:var(--panel)}.image-preview-button{display:block;width:100%;padding:0;border:0;background:transparent}.image-card img,.image-preview-button img{display:block;width:100%;aspect-ratio:1 / 1;object-fit:contain;background:linear-gradient(45deg,#2f362d 25%,transparent 25%),linear-gradient(-45deg,#2f362d 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#2f362d 75%),linear-gradient(-45deg,transparent 75%,#2f362d 75%);background-position:0 0,0 10px,10px -10px,-10px 0;background-size:20px 20px}.image-actions{min-height:54px;display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:8px;border-top:1px solid var(--line);flex-wrap:wrap}.preview-backdrop{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:24px;background:#040605d1;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.preview-modal{width:min(100%,1180px);max-height:calc(100vh - 48px);display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid var(--line-strong);border-radius:8px;background:#12140f;box-shadow:0 32px 100px #00000085}.preview-header,.preview-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px}.preview-header{border-bottom:1px solid var(--line)}.preview-footer{border-top:1px solid var(--line)}.preview-stage{min-height:0;display:grid;place-items:center;padding:14px;background:#0b0e0a}.preview-stage img{max-width:100%;max-height:calc(100vh - 210px);object-fit:contain}.preview-meta{display:flex;flex-direction:column;gap:4px;color:var(--text)}.preview-meta span{color:var(--muted);font-size:.88rem}.preview-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:9px}.preview-download{min-height:42px;padding:0 14px}.log-modal{width:min(100%,880px)}.log-modal-body{min-height:0;padding:14px;overflow:auto;background:#0b0e0a}.log-details.always-open{padding:12px}.login-shell{min-height:100vh;display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,460px);align-items:center;gap:clamp(40px,8vw,120px);padding:clamp(28px,7vw,96px);background:radial-gradient(circle at 25% 20%,rgba(206,95,60,.18),transparent 22rem),radial-gradient(circle at 78% 65%,rgba(103,183,131,.18),transparent 24rem),linear-gradient(140deg,#12140f,#1a2119 55%,#2b1d19)}.login-intro{width:min(100%,680px);display:grid;gap:20px}.login-intro h2{max-width:650px;font-size:clamp(2.4rem,6vw,5.6rem);line-height:.96;letter-spacing:-.065em}.login-intro>p:not(.eyebrow){max-width:610px;color:var(--muted);font-size:clamp(1rem,2vw,1.22rem);line-height:1.55}.login-orbit{width:58px;height:58px;display:grid;place-items:center;border:1px solid rgba(103,183,131,.45);border-radius:20px;color:#d8ffe3;background:linear-gradient(145deg,#67b78347,#ce5f3c1f);box-shadow:0 20px 70px #3f955b2e}.login-capabilities{display:flex;flex-wrap:wrap;gap:9px}.login-capabilities span{min-height:36px;display:inline-flex;align-items:center;gap:7px;padding:0 12px;border:1px solid rgba(255,255,255,.1);border-radius:999px;color:#e5e9df;background:#12140f73;font-size:.82rem;font-weight:800}.login-panel{width:min(100%,460px);padding:30px;display:flex;flex-direction:column;gap:24px;border:1px solid var(--line-strong);border-radius:8px;background:#1c211beb;box-shadow:0 28px 90px #00000059}.login-brand{display:flex;align-items:center;gap:16px}.login-mark{width:54px;height:54px;display:grid;place-items:center;border-radius:8px;color:#07120c;background:var(--green)}.login-form{display:flex;flex-direction:column;gap:16px}.key-setup{display:flex;flex-direction:column;gap:14px;padding:14px;border:1px solid var(--line);border-radius:8px;background:#141811ad}.run-log-panel{display:flex;flex-direction:column;gap:12px;padding-top:4px}.log-empty{padding:12px;border:1px dashed var(--line);border-radius:8px;color:var(--muted);font-size:.9rem;line-height:1.4;background:#14181173}.run-log-list{display:flex;flex-direction:column;gap:10px}.run-log-item{border:1px solid var(--line);border-radius:8px;background:#141811b8;overflow:hidden}.run-log-item.running{border-color:#e0ba69b8}.run-log-item.success{border-color:#67b7839e}.run-log-item.failed{border-color:#ff9d89b8;background:#34181394}.run-log-item summary{min-height:44px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 12px;list-style:none;cursor:pointer}.run-log-item summary::-webkit-details-marker{display:none}.log-status{min-width:0;display:inline-flex;align-items:center;gap:8px}.run-log-item.running .log-status{color:#ffdea0}.run-log-item.success .log-status{color:#bff3cf}.run-log-item.failed .log-status{color:#ffd6cf}.log-time{color:var(--muted);font-size:.82rem;white-space:nowrap}.log-details{display:flex;flex-direction:column;gap:12px;padding:0 12px 12px}.log-details dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0}.log-details dl div{min-width:0}.log-details dt{margin-bottom:3px;color:var(--soft);font-size:.72rem;font-weight:800;text-transform:uppercase}.log-details dd{margin:0;color:var(--text);font-size:.86rem;overflow-wrap:anywhere}.log-error{padding:10px;border:1px solid rgba(255,157,137,.58);border-radius:8px;color:#ffd6cf;background:#70261e73;font-size:.88rem;line-height:1.4;overflow-wrap:anywhere}.log-prompt{border:1px solid var(--line);border-radius:8px;background:#11150f;overflow:hidden}.log-prompt-heading{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:6px 8px 6px 10px;border-bottom:1px solid var(--line);color:var(--muted);font-size:.82rem;font-weight:800}.log-prompt pre{max-height:220px;margin:0;padding:10px;color:#e7eddc;font:.82rem/1.45 ui-monospace,SFMono-Regular,Consolas,Liberation Mono,monospace;white-space:pre-wrap;overflow:auto}.logout-button{flex:0 0 auto}@keyframes spin{to{transform:rotate(360deg)}}@media(max-width:920px){.topbar{align-items:flex-start;flex-direction:column}.workspace{grid-template-columns:1fr}.control-panel{border-right:0;border-bottom:1px solid var(--line)}.empty-state{min-height:300px}}@media(max-width:560px){.topbar{padding:18px}.topbar-actions{width:100%}.panel-heading.with-action{align-items:flex-start;flex-direction:column}.direction-actions{width:100%;justify-content:flex-start}.grid-2{grid-template-columns:1fr}.text-button span{max-width:235px}.reference-panel{grid-template-columns:58px 1fr 38px}.reference-panel img{width:58px}.preview-footer{align-items:stretch;flex-direction:column}.preview-actions{justify-content:stretch}.preview-actions>button{flex:1 1 100%}.run-log-item summary{align-items:flex-start;flex-direction:column;justify-content:center;padding:9px 12px}.log-time{white-space:normal}.log-details dl{grid-template-columns:1fr}}.document-generate-button{margin-top:-8px}.document-panel{margin-bottom:22px;padding-bottom:22px;border-bottom:1px solid var(--line)}.document-list{display:grid;gap:12px}.document-card{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;padding:14px;border:1px solid var(--line);border-radius:18px;background:#ffffff0b}.document-card>svg{color:var(--accent)}.document-card strong,.document-card span,.document-card p{display:block}.document-card span{margin-top:3px;color:var(--muted);font-size:.86rem}.document-card p{margin:6px 0 0;color:var(--muted);font-size:.82rem;line-height:1.4}@media(max-width:560px){.document-card{grid-template-columns:auto 1fr}.document-card button{grid-column:1 / -1;justify-content:center}}.quick-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:-8px}.quick-action-grid .mini-button{justify-content:center}@media(max-width:560px){.quick-action-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.app-shell{background:#212121}.topbar{min-height:58px;padding:10px 18px;background:#171717;border-bottom-color:#ffffff14}.topbar .eyebrow{display:none}.topbar h1{font-size:1rem;font-weight:700}.workspace{grid-template-columns:292px minmax(0,1fr);background:#212121}.control-panel{max-height:calc(100vh - 58px);overflow:auto;padding:16px;gap:14px;background:#171717;border-right-color:#ffffff14}.control-panel>.panel-heading:first-child,.control-panel>textarea:first-of-type,.control-panel>.generate-button,.control-panel>.quick-action-grid,.control-panel>.document-generate-button{display:none}.control-panel:before{content:"Settings";display:block;color:#ececec;font-size:.92rem;font-weight:800;margin-bottom:2px}.gallery-panel{position:relative;min-height:calc(100vh - 58px);display:flex;flex-direction:column;padding:34px clamp(18px,4vw,54px) 34px;overflow:auto;background:#212121}.gallery-panel:before{display:none;content:""}.studio-launchpad{width:min(100%,920px);margin:auto auto 34px;display:grid;gap:30px}.launchpad-heading{max-width:700px;margin:0 auto;display:grid;justify-items:center;gap:10px;text-align:center}.launchpad-mark{width:52px;height:52px;display:grid;place-items:center;margin-bottom:4px;border:1px solid rgba(103,183,131,.35);border-radius:18px;color:#d9ffe3;background:linear-gradient(145deg,#67b7833d,#ce5f3c1f)}.launchpad-heading h2{font-size:clamp(2rem,5vw,3.6rem);line-height:1;letter-spacing:-.055em}.launchpad-heading>p:last-child{max-width:620px;color:#b4b4b4;line-height:1.55}.quick-start-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.quick-start-card{min-width:0;display:grid;grid-template-columns:42px minmax(0,1fr);gap:12px;padding:16px;border:1px solid rgba(255,255,255,.1);border-radius:18px;color:#ececec;background:linear-gradient(145deg,#2b2b2b,#272727);text-align:left;transition:transform .16s ease,border-color .16s ease,background .16s ease}.quick-start-card:hover{transform:translateY(-2px);border-color:#79d2906b;background:linear-gradient(145deg,#303631,#2b2b2b)}.quick-start-card:focus-visible{outline:2px solid #cbf5d6;outline-offset:2px}.quick-start-icon{width:42px;height:42px;display:grid;place-items:center;border-radius:14px;color:#d9ffe3;background:#67b78324}.quick-start-copy{min-width:0;display:grid;gap:4px}.quick-start-copy small{color:#80c795;font-size:.7rem;font-weight:900;letter-spacing:.06em;text-transform:uppercase}.quick-start-copy strong{font-size:.98rem;line-height:1.25}.quick-start-copy>span{color:#adadad;font-size:.8rem;line-height:1.4}.document-answer{margin-top:12px;border-top:1px solid rgba(255,255,255,.1)}.document-answer summary{padding:10px 0 4px;color:#d7efdd;font-size:.8rem;font-weight:800;cursor:pointer}.document-answer pre{max-height:420px;margin:8px 0 0;padding:14px;overflow:auto;border-radius:12px;color:#e5e5e5;background:#222;font-family:inherit;font-size:.88rem;line-height:1.55;white-space:pre-wrap}.gallery-toolbar,.document-panel,.gallery-grid,.empty-state{max-width:920px;margin-left:auto;margin-right:auto}.gallery-toolbar{padding:0 4px}.document-panel{border:0}.document-card,.image-card,.empty-state,.run-log-item,.prompt-preview-panel,.upload-panel,.reference-panel,.key-setup,.message{border-color:#ffffff1a;background:#2f2f2f;box-shadow:none}.document-card,.image-card{border-radius:18px}.document-card{grid-template-columns:36px 1fr auto}.empty-state{min-height:320px;border:0;background:transparent;color:#ececec}.empty-state svg{display:none}.empty-state h2{font-size:clamp(1.6rem,4vw,2.4rem);letter-spacing:-.04em}.empty-state p{max-width:560px;margin-top:10px;color:#b4b4b4}.chat-composer{position:relative;order:-1;z-index:5;width:100%;max-width:820px;margin:0 auto 24px;padding:0;flex:0 0 auto}.composer-card{position:relative;border:1px solid rgba(255,255,255,.12);border-radius:28px;background:#303030;box-shadow:0 18px 45px #00000047;overflow:hidden}.composer-card.dragging-files{border-color:#cbf5d6;box-shadow:0 0 0 2px #79d2904d,0 18px 45px #00000047}.composer-file-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.composer-drop-overlay{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;gap:10px;color:#f0fff4;background:#1c2d20db;font-weight:900;pointer-events:none}.composer-card textarea{width:100%;min-height:74px;max-height:190px;padding:18px 20px 8px;border:0;border-radius:0;background:transparent;color:#ececec;resize:vertical}.composer-card textarea:focus{box-shadow:none}.composer-attachment-tray{display:flex;flex-wrap:wrap;gap:8px;padding:0 12px 8px}.composer-attachment-chip{max-width:min(100%,320px);min-height:36px;display:inline-flex;align-items:center;gap:7px;padding:4px 5px 4px 10px;border:1px solid rgba(255,255,255,.12);border-radius:999px;color:#ececec;background:#252525}.composer-reference-chip{padding-left:4px}.composer-reference-chip>img,.composer-reference-placeholder{width:28px;height:28px;flex:0 0 auto;border-radius:50%;object-fit:cover;background:#111}.composer-reference-placeholder{display:grid;place-items:center;color:var(--accent)}.attachment-reference-button{color:var(--accent);background:#ffffff0e}.composer-attachment-chip span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}.composer-prompt-preview{margin:0 12px 8px;border:1px solid rgba(255,255,255,.1);border-radius:12px;background:#272727}.composer-prompt-preview summary{min-height:30px;padding:6px 10px;color:#cfcfcf;font-size:.8rem;font-weight:800;cursor:pointer}.composer-prompt-preview pre{max-height:160px;margin:0;padding:0 10px 10px;overflow:auto;color:#ececec;font-size:.78rem;line-height:1.4;white-space:pre-wrap}.composer-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px 10px 14px}.composer-tools{min-width:0;display:flex;align-items:center;gap:8px;flex-wrap:wrap}.composer-tools select,.composer-tools .secondary-button{min-height:34px;border-radius:999px;background:#252525;color:#ececec}.composer-tools .secondary-button.mode-active{border-color:#ececec;background:#ececec;color:#111}.composer-tools select{width:min(260px,48vw);padding:0 12px}.icon-only-tool{width:36px;padding-inline:0;justify-content:center}.send-button{width:42px;height:42px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;color:#111;background:#ececec}.send-button:disabled{cursor:not-allowed;opacity:.45}.composer-note{margin:0 16px 8px;color:#9b9b9b;font-size:.78rem;line-height:1.35;text-align:center}.composer-note strong{color:#ececec;font-weight:800}textarea,input,select,.secondary-button,.icon-button{background:#2b2b2b;border-color:#ffffff1a;color:#ececec}.generate-button{background:#ececec;color:#111}@media(max-width:920px){.login-shell{grid-template-columns:1fr;justify-items:center}.login-intro{justify-items:center;text-align:center}.login-intro h2{max-width:720px}.login-capabilities{justify-content:center}.workspace{grid-template-columns:1fr}.control-panel{max-height:none;border-right:0;border-bottom:1px solid rgba(255,255,255,.08)}.control-panel>.panel-heading:first-child,.control-panel>textarea:first-of-type{display:none}.gallery-panel{min-height:auto;padding-bottom:28px}}@media(max-width:560px){.gallery-panel{padding-left:12px;padding-right:12px;padding-bottom:28px}.composer-footer{align-items:stretch;flex-direction:column}.composer-tools select{width:100%}.send-button{align-self:flex-end}}.server-activity-panel{margin-top:4px}.activity-log-list{display:grid;gap:8px}.activity-log-item{border:1px solid var(--line);border-radius:12px;background:#151a13;overflow:hidden}.activity-log-item summary{min-height:38px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;cursor:pointer}.activity-log-item summary span:first-child{min-width:0;display:inline-flex;align-items:center;gap:8px}.activity-log-item em{padding:2px 7px;border-radius:999px;color:#111;background:var(--muted);font-size:.72rem;font-style:normal;font-weight:900;text-transform:uppercase}.activity-log-item.success em{background:var(--green)}.activity-log-item.fallback em{background:var(--gold)}.activity-log-item.failed em{background:var(--danger)}.activity-log-body{display:grid;gap:7px;padding:10px;border-top:1px solid var(--line);color:var(--muted);font-size:.82rem;line-height:1.38}.activity-log-body ul{margin:0;padding-left:18px}.activity-log-body pre{max-height:190px;margin:0;padding:9px;border-radius:10px;background:#11150f;color:#e7eddc;overflow:auto;white-space:pre-wrap}@media(max-width:720px){.topbar{position:sticky;top:0;z-index:12;min-height:50px;padding:8px 12px}.topbar h1{font-size:.95rem}.topbar-actions{gap:6px}.connection-pill{width:38px;height:38px;justify-content:center;padding:0}.connection-pill span{display:none}.mobile-settings-button{display:inline-flex}.workspace{display:block}.control-panel{max-height:38vh;padding:10px 12px;gap:9px;overflow:auto;-webkit-overflow-scrolling:touch}.control-panel.mobile-settings-closed{display:none}.control-panel.mobile-settings-open{display:flex;max-height:45dvh}.control-panel:before{content:"Settings — scroll for tuning, prompt at bottom";position:sticky;top:-10px;z-index:1;margin:-10px -12px 4px;padding:9px 12px;background:#171717;border-bottom:1px solid rgba(255,255,255,.08)}.gallery-panel{min-height:calc(100dvh - 50px);padding:14px 10px calc(230px + env(safe-area-inset-bottom));overflow:visible}.studio-launchpad{margin-top:18px;gap:22px}.launchpad-heading{gap:8px}.launchpad-heading h2{font-size:clamp(1.9rem,10vw,2.8rem)}.launchpad-heading>p:last-child{font-size:.9rem}.quick-start-grid{display:flex;gap:10px;margin-inline:-10px;padding:0 10px 8px;overflow-x:auto;scroll-snap-type:x mandatory;-webkit-overflow-scrolling:touch}.quick-start-card{flex:0 0 min(82vw,330px);scroll-snap-align:center}.empty-state{min-height:180px;padding:18px 8px}.chat-composer{position:relative;left:auto;right:auto;bottom:auto;z-index:40;width:100%;max-width:none;margin:0 auto 18px;padding:0}.composer-card{border-radius:22px;max-height:min(46dvh,360px);overflow:auto;-webkit-overflow-scrolling:touch}.composer-card textarea{min-height:92px;max-height:34dvh;padding:14px 14px 6px;font-size:16px;resize:none}.composer-note{margin:0 12px 6px;font-size:.72rem}.composer-footer{position:sticky;bottom:0;display:grid;grid-template-columns:1fr auto;align-items:end;gap:8px;padding:7px 8px 8px;background:linear-gradient(180deg,#303030b8,#303030 35%)}.composer-tools{display:flex;flex-wrap:nowrap;gap:6px;overflow-x:auto;padding-bottom:2px;-webkit-overflow-scrolling:touch}.composer-tools select{width:152px;min-width:152px;font-size:.78rem}.composer-tools .secondary-button{min-width:max-content;min-height:34px;padding:0 10px;font-size:.78rem}.icon-only-tool{min-width:36px!important;width:36px}.send-button{width:46px;height:46px;align-self:end}.composer-attachment-tray,.composer-prompt-preview,.composer-working-chip{margin-left:10px;margin-right:10px}}@media(max-width:560px){.login-shell{align-content:start;gap:30px;padding:28px 18px}.login-intro{justify-items:start;text-align:left}.login-intro h2{font-size:clamp(2.35rem,14vw,3.7rem)}.login-capabilities{justify-content:flex-start}.login-panel{padding:22px}}.image-history-toolbar>div{display:grid;gap:4px}.image-count-pill{width:fit-content;padding:3px 8px;border-radius:999px;color:#d7d7d7;background:#ffffff14;font-size:.74rem;font-weight:800}.preview-stage{position:relative}.preview-nav{position:absolute;top:50%;z-index:2;width:44px;height:54px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.18);border-radius:999px;color:#fff;background:#0000007a;font-size:2rem;line-height:1;transform:translateY(-50%)}.preview-nav-prev{left:10px}.preview-nav-next{right:10px}.preview-counter{padding:8px 14px 0;color:#bdbdbd;font-size:.82rem;text-align:center}.preview-thumb-strip{display:flex;gap:8px;padding:10px 14px 0;overflow-x:auto;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity}.preview-thumb{flex:0 0 64px;width:64px;height:64px;padding:0;overflow:hidden;border:2px solid transparent;border-radius:12px;background:#252525;scroll-snap-align:center}.preview-thumb.active{border-color:#ececec}.preview-thumb img{width:100%;height:100%;object-fit:cover;display:block}@media(max-width:720px){html,body,#root{min-height:100%;overflow-x:hidden}.app-shell{min-height:100dvh}.gallery-panel{overflow-x:hidden;overscroll-behavior-y:contain;-webkit-overflow-scrolling:touch}.composer-card{max-height:none;overflow:visible}.composer-footer{position:static}.image-review-strip{display:flex;grid-template-columns:none;gap:12px;margin:0 -10px 18px;padding:0 10px 8px;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;scroll-snap-type:x mandatory}.image-review-strip .image-card{flex:0 0 min(82vw,360px);scroll-snap-align:center}.image-actions{justify-content:flex-start;overflow-x:auto;flex-wrap:nowrap;-webkit-overflow-scrolling:touch}.image-actions .icon-button{flex:0 0 38px}.preview-backdrop{z-index:80;overflow:auto;-webkit-overflow-scrolling:touch;padding:max(10px,env(safe-area-inset-top)) 8px max(14px,env(safe-area-inset-bottom))}.preview-modal{width:100%;max-height:none;margin:0;border-radius:18px}.preview-stage img{max-height:58dvh;object-fit:contain}.preview-nav{width:42px;height:50px;background:#00000094}.preview-footer,.preview-actions{align-items:stretch;justify-content:stretch}.preview-actions .secondary-button,.preview-actions .generate-button{flex:1 1 100%}}
