:root{color-scheme:dark;--bg:#0b0e15;--panel:#111722;--line:#28313f;--muted:#9da9b9;--text:#f2f4f8;--accent:#e9bf69;--font:Inter,"Segoe UI",Tahoma,Arial,sans-serif}
html,body{min-height:100%;background:var(--bg)}
body{color:var(--text);background:radial-gradient(circle at 52% -22%,#182237 0,transparent 48%),var(--bg)}
button{background:#182130;border-color:#303c4e;transition:background .16s,border-color .16s,transform .16s}
button:hover{background:#243148;border-color:#52627a}button:active{transform:translateY(1px)}
input,textarea,select{background:#111927;color:var(--text);border-color:#354153}
.primary,.send{background:var(--accent);color:#20180b;border-color:var(--accent)}.primary:hover,.send:hover{background:#f4d58d;border-color:#f4d58d}
.workspace{grid-template-columns:260px minmax(0,1fr);min-height:100dvh}
.sidebar{height:100dvh;padding:22px 14px 15px;background:#10151f;border-left:1px solid var(--line)}
.brand{gap:9px;margin:0 8px 24px}.brand img{width:44px;height:44px;object-fit:contain;filter:drop-shadow(0 2px 8px #e9bf6930)}.brand strong{font-size:23px;color:#f2d289}.brand span{font-size:9px;letter-spacing:1.8px}
.new-project{background:#192535;border:1px solid #3a4b62;border-radius:11px;justify-content:center;min-height:42px;font-weight:600}
.section-label{margin:25px 10px 9px}.sidebar nav button{border-radius:9px;padding:10px 11px}.project-row.active,.chat-list button.active{background:#222c3d;border:1px solid #7f6846;color:#f4d18b}
.sidebar-footer{margin-top:auto;border-color:var(--line)}.sidebar-footer button{color:#c0c9d4;border-radius:8px;padding:8px 10px}.sidebar-footer button:hover{color:var(--text)}#account-button{color:var(--accent)}.ownership{color:#68788b;padding-top:10px}
main{background:#0d1119}.topbar{height:66px;padding:0 24px;background:#10151f;border-bottom:1px solid var(--line)}.topbar-start,.topbar-end{display:flex;align-items:center;gap:12px;min-width:0}.breadcrumb{gap:9px}.breadcrumb strong{font-weight:600}.model-pill{background:#172131;border:1px solid #344155;padding:7px 12px;color:#d8e0eb;max-width:180px}.model-pill:disabled{opacity:1;cursor:default}.model-symbol{color:#77cf9e;font-size:11px}.mobile-action,.panel-close{display:none}
.work-area{grid-template-columns:minmax(0,1fr) 310px;min-height:calc(100dvh - 66px)}.conversation-panel{height:calc(100dvh - 66px);padding:23px clamp(22px,4vw,64px) 18px;min-height:0}.conversation-panel>*,.conversation-panel>.messages{width:min(100%,900px);margin-left:auto;margin-right:auto}
.conversation-heading h1{font-size:17px;font-weight:600;margin:0 0 7px}.conversation-heading .eyebrow{font-size:10px;letter-spacing:1.4px}.private-badge{border-color:#344155;color:#9baab9}
.welcome{margin:auto!important;text-align:center;padding:20px 0;max-width:720px}.welcome-mark img{width:84px;height:84px;object-fit:contain;filter:drop-shadow(0 5px 20px #d6a85120)}.welcome h2{font-size:30px;font-weight:650;margin:10px 0 6px}.welcome p{font-size:14px;line-height:1.75;margin:0 0 22px}.suggestions{gap:10px}.suggestions button{text-align:right;padding:13px 14px;background:#151c29;border:1px solid #2d394b;border-radius:11px;min-height:110px}.suggestions button>span{color:var(--accent);margin-bottom:9px}.suggestions strong{font-weight:600}.suggestions small{color:#8999aa}
.messages{padding:18px 2px;scrollbar-color:#3b4a60 transparent}.message{max-width:780px;margin:10px 0 22px}.message .sender{color:var(--accent)}.message.user .content{background:#1b2738;border:1px solid #2c3c51;border-radius:14px;padding:12px 16px}.message.assistant .content{padding:2px 4px;line-height:1.85}.message.error .content{color:#ffb6a9}
.composer{margin-top:auto;background:#151d2b;border:1px solid #3b4c65;border-radius:15px;box-shadow:0 12px 42px #0004;padding:11px 13px 8px}.composer:focus-within{border-color:#d5b46f}.composer>label[for=task-mode]{display:inline-block;margin:0 8px 4px;color:var(--muted);font-size:12px}.composer select{display:inline-block;width:auto;min-width:118px;padding:5px 10px;margin:0 0 5px;border-radius:8px;background:#1d2939;color:#dce4ee;font-size:12px}.composer textarea,.composer textarea:focus{background:transparent!important;border:0!important;outline:0;box-shadow:none;min-height:72px;max-height:180px;padding:11px 4px 5px;resize:vertical;line-height:1.65}.composer-bottom{padding:6px 0 0;border-top:1px solid #29394c}.composer-bottom>span{color:#9aaabb}.send{border-radius:10px;font-size:21px;width:37px;height:37px}.composer-note{font-size:11px;color:#7e8b9d;margin-top:10px}.is-busy .composer-bottom>span::before{content:"";display:inline-block;width:7px;height:7px;margin-left:7px;background:var(--accent);border-radius:50%;animation:pulse 1s infinite alternate}@keyframes pulse{to{opacity:.25}}
.media-tools{margin:1px 0 7px}.media-tools summary{cursor:pointer;display:inline-block;font-size:12px;color:#aebbc9;list-style:none;padding:4px 7px;border-radius:6px}.media-tools summary:hover{background:#253144}.media-tools summary::-webkit-details-marker{display:none}.media-controls{padding:7px 0 3px;gap:6px}.media-controls p:empty{display:none}.media-controls button{padding:6px 8px;font-size:11px;border-radius:7px;background:#1c293a}
.inspector{height:calc(100dvh - 66px);background:#101722;border-color:var(--line)}.tabbar{padding:11px 17px 0;border-color:var(--line)}.tabbar button[aria-selected=true]{border-color:var(--accent)}.file-actions{padding:12px}.panel-empty{padding:55px 12px}.inspector-footer{border-color:var(--line)}
.toast{background:#e9cf93;color:#211a0d}.proposal{background:#172234;border-color:#354a64}dialog{background:#141d2b;border-color:#42536b}dialog::backdrop{background:#05080dbd}
#account-dialog{width:min(470px,calc(100% - 24px))}#account-dialog .auth-tabs{display:flex;gap:8px;margin:20px 0 6px}#account-dialog .auth-tabs button{flex:1}#account-dialog .auth-tabs button.selected{border-color:var(--accent);color:var(--accent);background:#293348}#account-dialog input{width:100%}#account-dialog small{display:block;line-height:1.7;margin-top:18px}
.panel-backdrop{position:fixed;inset:0;background:#05080dbb;z-index:19}
@media(max-width:1100px){.work-area{display:block}.inspector{display:none;position:fixed;left:0;top:0;width:min(370px,90vw);height:100dvh;z-index:21;box-shadow:20px 0 60px #0008}.inspector.open{display:flex}.inspector .panel-close{display:block;margin-right:auto}.mobile-action{display:inline-flex;align-items:center;justify-content:center;background:transparent}.conversation-panel{height:calc(100dvh - 66px);min-height:0}}
@media(max-width:900px){.workspace{display:block}.sidebar{display:flex;position:fixed;right:0;top:0;width:min(300px,86vw);height:100dvh;z-index:21;transform:translateX(105%);transition:transform .2s;box-shadow:-20px 0 60px #0007}.sidebar.open{transform:translateX(0)}.sidebar .section-label{display:flex}.sidebar nav{max-height:none;overflow:auto}.sidebar .sidebar-footer{display:block;border-top:1px solid var(--line);padding-top:12px}.sidebar .sidebar-footer button{justify-content:flex-start}.sidebar .conversations-label{display:flex}.sidebar .ownership{display:block}.sidebar .panel-close{display:block;position:absolute;left:8px;top:10px}.topbar{height:60px;padding:0 15px}.topbar-start,.topbar-end{gap:8px}.breadcrumb>span:first-child{display:none}.model-pill{max-width:130px;padding:6px 8px}.work-area{min-height:calc(100dvh - 60px)}.conversation-panel{height:calc(100dvh - 60px);min-height:0;padding:16px 18px 12px}.welcome{padding:8px 0}.welcome-mark img{width:68px;height:68px}.welcome h2{font-size:25px}.welcome p{font-size:13px;margin-bottom:15px}.suggestions button{min-height:75px;padding:9px 11px}.suggestions button>span{font-size:18px;margin-bottom:3px}.suggestions small{display:none}.composer{margin-top:auto}.messages{max-height:none}.inspector{height:100dvh}}
@media(max-width:580px){.topbar{padding:0 10px}.breadcrumb{font-size:13px}.topbar-end .model-pill{font-size:11px;max-width:98px}.mobile-action{font-size:12px;padding:6px 8px}.conversation-panel{padding:13px 12px 10px}.conversation-heading h1{font-size:15px}.conversation-heading .eyebrow{display:none}.welcome-mark img{width:58px;height:58px}.welcome h2{font-size:22px}.welcome p{font-size:12px}.suggestions{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.suggestions button{min-height:70px;padding:7px 5px;text-align:center}.suggestions strong{font-size:11px}.composer textarea{min-height:62px;font-size:15px}.composer-note{display:none}}
@media(max-height:650px){.welcome-mark img{width:46px;height:46px}.welcome h2{font-size:21px}.welcome p{margin-bottom:10px}.suggestions button{min-height:62px}.conversation-heading{margin-bottom:5px}}
.welcome{padding:8px 0}.welcome-mark img{width:64px;height:64px}.welcome h2{font-size:26px;margin:7px 0 4px}.welcome p{margin-bottom:13px}.suggestions button{min-height:82px;padding:10px 12px}.suggestions button>span{margin-bottom:4px}.composer textarea{min-height:70px;height:70px;padding-top:8px}
@media(max-width:580px){.welcome-mark img{width:48px;height:48px}.welcome h2{font-size:22px}.suggestions button{min-height:66px;padding:7px 5px}.composer textarea{min-height:62px;height:62px}}
@media(max-height:650px){.welcome-mark img{width:42px;height:42px}.welcome h2{font-size:21px}.suggestions button{min-height:60px}}

#studio-button{white-space:nowrap;border-color:#8e7447;color:#f5d489;background:#2a2830;padding:8px 12px}#studio-button:hover{background:#3b3540}
#studio-dialog{width:min(1040px,calc(100% - 24px));max-height:92vh;overflow:auto}#studio-dialog .studio-controls{display:flex;flex-wrap:wrap;gap:9px;align-items:end;margin:18px 0}#studio-dialog .studio-controls label{width:100%;margin:0}#studio-dialog .studio-controls select{flex:1;min-width:190px;margin:0}#studio-dialog .studio-controls button{white-space:nowrap}#studio-dialog #studio-preview{width:100%;height:min(55vh,560px);min-height:300px;border:1px solid #43536d;border-radius:12px;background:white}#studio-dialog #studio-status{margin:8px 0;color:#d4e0ed}#studio-dialog #poster-controls{padding:12px 16px;margin:15px 0;border:1px solid #40516a;border-radius:12px;background:#182337}#studio-dialog #poster-controls h3{margin:4px 0}#studio-dialog #poster-controls label{margin:10px 0 5px}#studio-dialog .studio-colors{display:flex;gap:20px;flex-wrap:wrap;margin:8px 0}#studio-dialog .studio-colors input{width:90px;height:42px;padding:3px;display:block}#studio-dialog #save-poster{margin:12px 12px 0 0}#studio-dialog #download-poster{color:#f4d184}#studio-dialog #studio-publication{overflow-wrap:anywhere}#studio-dialog #studio-publication a{color:#f4d184}
@media(max-width:700px){#studio-button{font-size:12px;padding:7px 8px}#studio-dialog .studio-controls button{flex:1}#studio-dialog #studio-preview{height:370px}}
