.creative-shell{--creative-accent:var(--primary);--creative-bg:var(--background);--creative-panel:var(--secondary);--creative-border:var(--border);--creative-text:var(--foreground);background:var(--creative-bg);color:var(--creative-text);font-family:var(--font-brand)}.creative-home-shell{--home-ground:#eeedeb;--home-paper:#fff;background:var(--home-ground)}.creative-home-main{max-width:1120px;margin:auto;padding:clamp(30px,5vh,76px) 24px 64px}.creative-home-heading{text-align:center;margin-bottom:30px}.creative-home-heading h1{color:var(--heading);letter-spacing:-.045em;font:450 clamp(44px,4.2vw,66px)/1.2 Songti SC,Noto Serif CJK SC,Georgia,serif}.creative-home-heading h1 em{font-family:Georgia,serif;font-weight:400}.creative-home-heading p{color:var(--muted-foreground);margin-top:12px;font-size:14px}.creative-compose{background:var(--home-paper);border-radius:24px;width:min(100%,800px);margin-inline:auto;overflow:hidden}.creative-compose-heading{isolation:isolate;background:#e7e6e3;justify-content:center;align-items:center;gap:8px;width:100%;padding:10px 50% 10px 0;font-size:14px;font-weight:600;display:flex;position:relative}.creative-compose-heading:before{z-index:-1;content:"";background:var(--home-paper);border-radius:24px 36px 0 0;position:absolute;inset:0 50% 0 0}.creative-compose-fields{gap:16px;padding:16px 18px 0;display:flex}.creative-upload{border:1px dashed var(--input);background:var(--surface-soft);border-radius:14px;flex-direction:column;flex:0 0 170px;justify-content:center;align-items:center;gap:5px;min-width:0;min-height:116px;display:flex}.creative-upload:hover:enabled{background:var(--secondary)}.creative-upload-icon{background:var(--accent);border-radius:50%;place-items:center;width:26px;height:26px;margin-bottom:3px;display:grid}.creative-home-prompt{resize:none;flex:1;width:100%;min-width:0;min-height:112px;padding:8px 6px;font-size:14px;line-height:1.65}.creative-compose-footer{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:12px;padding:12px 18px;font-size:13px;display:flex}.creative-compose>[role=alert]{margin:8px 18px}.creative-home-submit{background:var(--heading);color:#fff;border-radius:50%;place-items:center;width:36px;height:36px;display:grid}.creative-home-submit:disabled{background:var(--muted);color:var(--muted-foreground)}.creative-home-projects{margin-top:clamp(64px,18vh,200px)}.creative-home-gallery{grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;display:grid}.creative-home-gallery .creative-project-card{background:#e8e7e4;border-radius:18px;padding:8px;transition:background .15s}.creative-home-gallery .creative-project-card:hover{background:var(--home-paper)}.creative-project-cover{aspect-ratio:16/9;background:var(--surface-soft);color:var(--muted-foreground);border-radius:12px;place-items:center;display:grid}.creative-trial-entry{align-items:center;gap:16px;padding:32px 24px;display:flex}.creative-trial-entry>:last-child{margin-left:auto}.creative-trial-entry p{color:var(--muted-foreground);margin-top:6px;font-size:13px}@media (width<=850px){.creative-home-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}}@media (width<=600px){.creative-home-main{padding-inline:16px}.creative-compose-fields{flex-direction:column}.creative-upload{flex-basis:auto;min-height:94px}.creative-home-prompt{min-height:92px}.creative-home-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.creative-trial-entry{flex-wrap:wrap}}.creative-project-tabs button{border-bottom:2px solid #0000;padding:6px 0}.creative-project-tabs button[aria-pressed=true]{border-bottom-color:var(--foreground)}.creative-shell button:disabled,.creative-shell textarea:disabled{cursor:not-allowed;opacity:.55}.creative-shell :is(button,a,select,input,textarea):focus-visible{outline:2px solid var(--creative-accent);outline-offset:2px}.creative-primary,.creative-secondary{border:1px solid var(--creative-border);white-space:nowrap;background:#fff;border-radius:8px;justify-content:center;align-items:center;gap:6px;min-height:36px;padding:8px 12px;font-size:13px;line-height:1.4;display:inline-flex}.creative-primary{border-color:var(--creative-accent);background:var(--creative-accent);color:#fff}.creative-icon{border-radius:6px;justify-content:center;align-items:center;padding:8px;display:inline-flex}.creative-secondary:hover,.creative-icon:hover{background:var(--muted)}.creative-primary:hover{background:var(--primary-hover)}.creative-workspace{flex-direction:column;height:100dvh;min-height:370px;display:flex}.creative-workspace-header{border-bottom:1px solid var(--creative-border);background:#fff;flex-shrink:0;align-items:center;gap:20px;padding:12px 20px;display:flex}.creative-workspace-header nav{color:var(--muted-foreground);align-items:center;gap:16px;font-size:14px;display:flex}.creative-workspace-header [aria-current=page]{color:var(--foreground)}.creative-workspace-notice{overflow-wrap:anywhere;background:var(--tint-yellow);flex-wrap:wrap;flex-shrink:0;align-items:center;gap:6px 12px;max-height:92px;padding:6px 16px;font-size:12px;display:flex;overflow:auto}.creative-workspace-grid{flex:1;grid-template-columns:220px minmax(0,1fr) 300px;min-height:0;display:grid}.creative-pane{flex-direction:column;min-width:0;min-height:0;display:flex}.creative-directory{border-right:1px solid var(--creative-border);background:var(--creative-panel)}.creative-assistant{border-left:1px solid var(--creative-border);background:var(--surface-soft)}.creative-editor{background:#fff}.creative-scroll{flex:1;min-height:0;overflow:hidden auto}.creative-directory-button,.creative-material{text-align:left;overflow-wrap:anywhere;border-radius:6px;align-items:center;gap:6px;width:100%;padding:8px;font-size:13px;display:flex}.creative-directory-button:hover{background:var(--accent)}.creative-directory-button[aria-pressed=true]{background:var(--accent);color:var(--creative-text);font-weight:500}.creative-directory-button svg{flex-shrink:0}.creative-material{border:1px solid var(--creative-border);background:#fff;align-items:flex-start;gap:8px;margin-bottom:6px;padding:10px}.creative-editor-tabs{border-bottom:1px solid var(--creative-border);flex-shrink:0;display:flex}.creative-editor-tabs button{white-space:nowrap;border-bottom:2px solid #0000;flex:1;padding:12px 6px;font-size:13px}.creative-editor-tabs button[aria-pressed=true]{border-color:var(--creative-text);color:var(--creative-text);font-weight:500}.creative-script-editor{resize:none;border:0;flex:1;width:100%;min-height:100px;padding:32px clamp(24px,4vw,64px);line-height:1.9}.creative-script-editor:focus-visible{outline-offset:-2px}.creative-editor-footer{border-top:1px solid var(--creative-border);background:var(--surface-soft);flex-direction:column;flex-shrink:0;gap:10px;padding:12px 16px;display:flex}.creative-chat-bubble{border:1px solid var(--creative-border);white-space:pre-wrap;overflow-wrap:anywhere;background:#fff;border-radius:8px;align-self:flex-start;max-width:100%;padding:12px;font-size:13px;line-height:1.65}.creative-chat-bubble[data-role=user]{background:var(--tint-lavender);color:var(--creative-text);border-color:#0000;align-self:flex-end}.creative-chat-form{border:1px solid var(--creative-border);background:#fff;border-radius:8px;flex-shrink:0;margin:12px}.creative-chat-form textarea{resize:vertical;background:0 0;width:100%;min-height:70px;max-height:160px;padding:12px;font-size:13px;display:block}.creative-workspace-switcher{display:none}.creative-dialog{border:1px solid var(--creative-border);width:min(560px,100vw - 24px);max-height:85dvh;color:var(--creative-text);background:#fff;border-radius:12px;margin:auto;padding:0;font-size:14px;overflow:auto}.creative-dialog::backdrop{background:#0f0f0f4d}@media (width<=1099px){.creative-workspace-grid{display:flex}.creative-pane{flex:1;min-width:0;display:none}.creative-pane[data-active=true]{display:flex}.creative-workspace-switcher{border-bottom:1px solid var(--creative-border);background:#fff;flex-shrink:0;gap:4px;padding:6px 12px;display:flex}.creative-workspace-switcher button{border-radius:6px;flex:1;padding:7px 4px;font-size:13px}.creative-workspace-switcher button[aria-pressed=true]{background:var(--accent);color:var(--creative-text);font-weight:500}}@media (width<=480px){.creative-home-heading h1{font-size:42px}.creative-primary,.creative-secondary,.creative-icon,.creative-workspace-switcher button{min-height:44px}.creative-home-submit{width:44px;height:44px}.creative-workspace-header{gap:8px;padding:10px}.creative-workspace-header nav{gap:6px;font-size:13px}.creative-workspace-header>a{font-size:14px}.creative-script-editor{padding:16px}.creative-editor-footer{padding:10px}}
