@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;450;500;550;600;650;700&family=Manrope:wght@400;500;600;650;700;750;800&display=swap');
:root{color-scheme:dark;--bg:#111113;--panel:#19191c;--line:#29292d;--muted:#929297;--red:#fa2548;--text:#eeeef0}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font:14px 'DM Sans',sans-serif}button,a,textarea{-webkit-tap-highlight-color:transparent}button,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid #ff6079;outline-offset:4px}a{color:inherit;text-decoration:none}button{color:inherit}button:disabled{cursor:default;opacity:.4}.sidebar{position:fixed;inset:0 auto 0 0;width:264px;background:#171719;border-right:1px solid var(--line);padding:32px 20px 16px;display:flex;flex-direction:column;z-index:5}.brand{display:flex;align-items:center;gap:10px;padding:0 7px 34px;font:800 23px 'Manrope',sans-serif;letter-spacing:-1px}.brand img{width:39px;height:39px}.muted-brand{font-weight:500;color:#b9b9bf}.brand small{display:block;font:9px 'DM Sans',sans-serif;letter-spacing:1.7px;color:#77777f;margin-top:5px}.new-chat{display:flex;align-items:center;gap:9px;width:100%;padding:13px 10px;border:1px solid #62303a;background:#301d23;border-radius:9px;font-size:12px;text-align:left}.new-chat>span{font-size:19px;color:#ff647d}.new-chat kbd{margin-left:auto;font:9px inherit;color:#aa8189;white-space:nowrap}.history-label{margin:32px 10px 14px;font-size:9px;font-weight:600;letter-spacing:1.4px;color:#77777f;display:flex;justify-content:space-between}#history{overflow:auto;flex:1;min-height:40px}.history-empty{font-size:12px;color:#727279;padding:5px 10px;line-height:1.7}.history-item{width:100%;border:0;background:transparent;display:flex;gap:9px;padding:12px;border-radius:7px;text-align:left;color:#a5a5ac;font-size:12px}.history-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-item.active{background:#252528;color:#ededf0}.history-item:hover{background:#222225}.sidebar-bottom{margin-top:20px}.upgrade{border:1px solid #3c2930;background:radial-gradient(ellipse at 20% 0%,#382028,transparent 80%);border-radius:10px;padding:17px 15px}.upgrade-icon{display:block;color:#ff536d;font-size:24px;margin-bottom:10px}.upgrade strong{font-size:12px;font-weight:500}.upgrade p{font-size:11px;color:#9b9196;line-height:1.7;margin:8px 0 15px}.upgrade a{display:flex;justify-content:space-between;font-size:11px;background:#30252a;border:1px solid #4c303a;padding:10px;border-radius:6px}.profile{margin-top:20px;border-top:1px solid var(--line);padding:19px 2px 0;display:flex;align-items:center;gap:10px;font-size:12px}.avatar{width:33px;height:33px;display:grid;place-items:center;border:1px solid #45454b;border-radius:50%;background:#303036;font-size:12px}.profile small{display:block;color:#85858d;font-size:10px;margin-top:4px}.profile button{margin-left:auto}.icon-button{background:transparent;border:0;color:#96969f;padding:8px;font-size:19px}main{margin-left:264px;height:100dvh;display:flex;flex-direction:column}header{height:81px;flex-shrink:0;border-bottom:1px solid #202023;padding:0 37px;display:flex;align-items:center;justify-content:space-between}.header-left{display:flex;align-items:center;gap:14px;font-weight:600}.version{font-size:9px;letter-spacing:1px;color:#a6a6ae;border:1px solid #37373e;border-radius:4px;padding:3px 5px;margin-left:8px;font-weight:400}.demo{font-size:11px;color:#97979f;display:flex;align-items:center;gap:7px}.demo i{width:5px;height:5px;background:#fb4e68;border-radius:50%;box-shadow:0 0 8px #fb4e6855}#menu{display:none}.chat-area{overflow:auto;flex:1;min-height:0;scroll-behavior:smooth;background:radial-gradient(ellipse at 50% 35%,#331a211e,transparent 57%)}.welcome{max-width:870px;margin:auto;padding:54px 40px 34px;text-align:center}.hero-mark{width:89px;height:89px;margin:0 auto 25px;display:grid;place-items:center;position:relative}.hero-mark:before{content:'';position:absolute;inset:-30px;background:#ef234312;filter:blur(28px);border-radius:50%}.hero-mark img{width:89px;height:89px;position:relative}.eyebrow{font-size:9px;color:#b7727f;letter-spacing:2.1px;font-weight:600}h1{font:650 clamp(30px,3.6vw,48px)/1.22 'Manrope',sans-serif;letter-spacing:-1.8px;margin:19px 0 17px}h1 span{color:#939399}.welcome>p{font-size:13px;color:#87878f;line-height:1.9;margin:0}.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:42px;text-align:left}.suggestions button{position:relative;background:linear-gradient(135deg,#202023,#1a1a1d);border:1px solid #303035;border-radius:11px;min-height:139px;padding:18px;text-align:left;transition:border-color .2s,transform .2s}.suggestions button:hover{border-color:#85404c;transform:translateY(-3px)}.card-icon{display:block;color:#e95670;font-size:21px;margin-bottom:14px}.suggestions strong{display:block;font-size:12px;font-weight:500;margin-bottom:8px}.suggestions button>span:not(.card-icon){display:block;color:#8d8d96;font-size:11px;line-height:1.7;max-width:155px}.suggestions b{position:absolute;right:16px;top:18px;color:#68686f;font-weight:400}.composer-wrap{width:100%;max-width:870px;margin:auto;padding:10px 40px 20px}#composer{background:#1d1d21;border:1px solid #38383e;border-radius:14px;box-shadow:0 12px 45px #0002;padding:17px 18px 11px}#composer:focus-within{border-color:#93505d}textarea{resize:none;display:block;width:100%;max-height:160px;background:none;border:0;outline:none!important;color:#ededf0;line-height:1.6;font-size:13px;min-height:36px}textarea::placeholder{color:#82828c}.composer-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px}.composer-tools>span{color:#8b8b94;font-size:10px;display:flex;align-items:center;gap:7px}.red-dot{width:5px;height:5px;background:#e74460;border-radius:50%}.composer-tools>div{display:flex;align-items:center;gap:14px}.composer-tools small{font-size:9px;color:#73737e}#send{width:33px;height:33px;border:1px solid #ff5470;border-radius:8px;background:var(--red);color:white;font-size:23px;line-height:1}.footnote{text-align:center;font-size:9px;color:#6f6f78;margin:14px 0 0}.footnote span{margin:0 8px}#messages{max-width:790px;padding:30px 0;margin:auto}.message{display:flex;gap:13px;padding:20px 16px}.message .message-avatar{height:30px;width:30px;flex-shrink:0;object-fit:contain}.message .avatar{height:30px;width:30px;flex-shrink:0}.message-content{min-width:0;flex:1}.message-name{font-size:12px;font-weight:600;margin:6px 0 12px}.message-text{font-size:14px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#c7c7cf}.message.user{background:#1b1b1f;border:1px solid #29292e;border-radius:12px;margin:12px 0}.message-name small{font-size:9px;margin-left:9px;color:#a2737f;font-weight:400}.copy{background:none;border:0;color:#8a8a96;padding:10px 0 0;font-size:10px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#353039;border:1px solid #62505a;border-radius:8px;padding:12px 20px;z-index:20;font-size:12px}dialog{background:#202025;color:var(--text);border:1px solid #45454d;border-radius:14px;padding:28px;max-width:90vw}dialog::backdrop{background:#0009}dialog h2{font:600 20px 'Manrope',sans-serif}dialog p{color:#a8a8b0;font-size:13px}dialog form{display:flex;gap:10px;justify-content:flex-end;margin-top:25px}dialog button{background:#303036;border:1px solid #484850;border-radius:6px;padding:10px 15px}dialog .danger{background:#d91c3d;border-color:#f33151}[hidden]{display:none!important}@media(min-height:850px){.welcome{padding-top:85px}.suggestions{margin-top:50px}}@media(max-width:1050px){.sidebar{width:230px;padding-left:14px;padding-right:14px}main{margin-left:230px}.welcome{padding-left:24px;padding-right:24px}.composer-wrap{padding-left:24px;padding-right:24px}.suggestions button{padding:15px}#messages{padding:20px}}@media(max-width:760px){.sidebar{transform:translateX(-100%);transition:transform .2s;width:264px}.sidebar.open{transform:none}.scrim{position:fixed;inset:0;background:#0009;border:0;z-index:4}main{margin-left:0}header{padding:0 18px;height:65px}#menu{display:block}.welcome{padding:35px 20px 25px}.hero-mark{margin-bottom:18px;width:70px;height:70px}.hero-mark img{width:70px;height:70px}h1{font-size:34px}.eyebrow{font-size:8px}.suggestions{margin-top:26px;gap:8px}.suggestions button{padding:12px;min-height:142px}.suggestions strong{font-size:11px}.suggestions button>span:not(.card-icon){font-size:10px}.suggestions b{display:none}.composer-wrap{padding:8px 16px 15px}.composer-tools small{display:none}.footnote{font-size:8px;line-height:1.6}.desktop-break{display:none}#messages{padding:16px 12px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}
/* Simplified chat layout */
body{font-family:'DM Sans',sans-serif;background:#171719}
main{background:#171719;transition:margin-left .24s ease}
.sidebar{background:#111113;width:244px;padding:25px 16px 16px;transition:transform .24s ease}
main{margin-left:244px}
.brand{font-size:21px;padding:0 7px 29px;gap:8px}.brand img{width:34px;height:34px}
.new-chat{background:transparent;border:1px solid #343439;border-radius:8px;font-size:13px;padding:10px}.new-chat:hover{background:#252528}
.history-label{font-size:11px;letter-spacing:0;font-weight:400;text-transform:none;color:#898991}
.premium-link{display:flex;align-items:center;gap:10px;font-size:12px;padding:12px 9px;border-radius:8px;color:#c3c3ca}.premium-link:hover{background:#222225}.premium-link span:first-child{color:#f24b66;font-size:20px}.premium-link span:last-child{margin-left:auto;color:#777780}
header{height:65px;border:0;padding:0 24px}.header-left{font-size:16px}.version{display:none}#menu{display:block;font-size:17px}.demo{font-size:10px}
.chat-area{background:none}.welcome{padding:40px 20px 24px;animation:welcome-in .5s ease both;max-width:760px}
.hero-mark,.hero-mark img{width:58px;height:58px}.hero-mark{margin-bottom:20px}.hero-mark:before{display:none}
h1{font-size:30px;font-weight:550;letter-spacing:-.9px;margin:0 0 25px;line-height:1.3}
.suggestions{display:flex;justify-content:center;flex-wrap:wrap;gap:9px;margin-top:0}.suggestions button{display:flex;align-items:center;gap:8px;min-height:0;padding:10px 15px;background:transparent;border:1px solid #37373d;border-radius:22px;transition:background .18s,border-color .18s,transform .18s}
.suggestions button:hover{transform:translateY(-2px);background:#222225;border-color:#74404b}.card-icon{font-size:16px;margin:0}.suggestions strong{font-size:12px;margin:0;color:#bcbcc5;font-weight:400}
.composer-wrap{max-width:820px;padding:12px 28px 18px;margin:0 auto}#composer{border-radius:22px;background:#242427;border-color:#3a3a40;box-shadow:none;padding:17px 18px 10px;transition:border-color .2s,box-shadow .2s}#composer:focus-within{border-color:#7e414e;box-shadow:0 0 0 3px #fa254808}textarea{font-size:14px}#send{border-radius:50%;transition:background .18s,transform .18s,opacity .18s}#send:hover:not(:disabled){transform:translateY(-2px);background:#ff4362}#send:active:not(:disabled){transform:scale(.93)}.footnote{font-size:10px;margin-top:12px}.composer-tools>span{color:#878790}.empty-chat .chat-area{flex:0;overflow:visible;margin-top:auto}.empty-chat .composer-wrap{margin-bottom:auto;padding-bottom:70px}
#messages{max-width:764px;padding:25px 0}.message{padding:20px 0;gap:12px}.message.user{width:fit-content;max-width:85%;margin:12px 0 12px auto;padding:12px 18px;background:#2b2b30;border:0;border-radius:22px}.message.user .avatar,.message.user .message-name{display:none}.message-text{font-size:15px;line-height:1.8}.message-name{margin-top:5px}.message-enter{animation:message-in .32s ease both}.message-enter.assistant{animation-delay:.12s}.copy{transition:color .2s}.copy:hover{color:#f3637c}.sidebar-collapsed .sidebar{transform:translateX(-100%)}.sidebar-collapsed main{margin-left:0}
@keyframes message-in{from{opacity:0;transform:translateY(9px)}to{opacity:1;transform:translateY(0)}}
@keyframes welcome-in{from{opacity:0;transform:translateY(7px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1050px){#messages{padding:24px}}
@media(max-width:760px){main{margin-left:0}.sidebar{width:244px}.sidebar.open{transform:translateX(0)}header{padding:0 12px}.welcome{padding:25px 15px 23px}h1{font-size:26px;letter-spacing:-.6px}.hero-mark{margin-bottom:18px}.suggestions{gap:7px}.suggestions button{padding:9px 12px}.suggestions strong{font-size:11px}.composer-wrap{padding:8px 15px 14px}.empty-chat .composer-wrap{padding-bottom:65px}.message.user{max-width:90%}#messages{padding:12px 18px}.message-text{font-size:14px}.footnote{font-size:9px}}
@media(max-height:600px){.empty-chat .chat-area{margin-top:0;flex:1;overflow:auto}.empty-chat .composer-wrap{margin-bottom:0;padding-bottom:12px}.welcome{padding-top:15px}.hero-mark{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
.empty-chat .chat-area{flex:0 0 auto}@media(max-height:600px){.empty-chat .chat-area{flex:1 1 auto}}
.brand-version{font-size:12px;font-weight:500;letter-spacing:0;color:#f3637c;margin-left:3px}
button.premium-link{width:100%;background:transparent;border:0;text-align:left}
#premium-dialog{width:540px;max-height:88dvh;padding:30px;overflow:auto;background:#1b1b1f;border:1px solid #463039;animation:message-in .22s ease both}
#premium-dialog .premium-close{position:absolute;right:14px;top:12px;margin:0}#premium-dialog .premium-close button{border:0;background:none;color:#aaa;font-size:25px;padding:3px 9px}
.premium-heading{display:flex;align-items:center;gap:10px;color:#ee6a80;font-size:9px;letter-spacing:1.6px}.premium-heading img{width:35px;height:35px}
#premium-title{font-size:27px;letter-spacing:-.7px;margin:18px 0 6px}#premium-dialog .premium-tagline{margin:0;color:#b6b6bf}.premium-price{display:flex;align-items:baseline;gap:12px;margin:25px 0 14px}.premium-price strong{font:650 43px 'Manrope',sans-serif;letter-spacing:-1.8px}.premium-price>span{font-size:13px;color:#9999a3}.premium-badges{display:flex;flex-wrap:wrap;gap:8px}.premium-badges span{border:1px solid #53303a;border-radius:20px;padding:6px 10px;color:#ed9aaa;background:#2c1e24;font-size:11px}
#premium-dialog>p{line-height:1.7}.premium-features{list-style:none;padding:16px 0;margin:0 0 15px;border-top:1px solid #303035;display:grid;gap:12px}.premium-features li{font-size:13px;color:#c8c8d0;padding-left:22px;position:relative}.premium-features li:before{content:'✓';position:absolute;left:0;color:#f65c75}.premium-cta{display:flex;align-items:center;justify-content:space-between;gap:12px;background:#de2040;border:1px solid #f5415e;border-radius:9px;padding:14px;color:white;font-size:13px;transition:background .2s}.premium-cta:hover{background:#f12c4e}@media(max-width:480px){#premium-dialog{padding:25px 20px}.premium-cta{font-size:12px}}
#save-state{background:none;border:0;color:inherit;font:inherit;padding:0;cursor:pointer}
#search-chats{width:100%;background:#1c1c21;color:#ddd;border:1px solid #33333b;padding:10px;border-radius:7px;margin:0 0 10px;font:inherit;font-size:12px}.history-row{display:flex;align-items:center}.history-row .history-item{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-tool{background:none;border:0;color:#888;padding:6px;font-size:13px}.chat-tool:hover{color:#ff5577}.text-action{background:none;border:0;color:#a99aa6;padding:6px;font-size:11px;cursor:pointer}.text-action:hover{color:#ff667d}#usage{font-size:11px;color:#c598a5;text-align:center;padding:10px;line-height:1.7}.response-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:8px}.response-actions small{font-size:9px;color:#8e818c}.code-block{margin:15px 0;border:1px solid #423642;border-radius:10px;overflow:hidden;white-space:normal;background:#101014}.code-bar{display:flex;align-items:center;justify-content:space-between;background:#24202a;padding:6px 13px;color:#a99aac;font:11px monospace}.code-block pre{padding:17px;overflow:auto;line-height:1.65;margin:0;font:12px/1.7 Consolas,monospace}.syntax-comment{color:#778674}.syntax-string{color:#cfb682}.syntax-keyword{color:#f575a9}.syntax-number{color:#a497ec}.message-files{display:block;color:#b5889c;font-size:10px;margin-top:8px}#attachments{display:flex;flex-wrap:wrap;gap:7px}#attachments>span{background:#34222e;border:1px solid #624050;border-radius:15px;font-size:10px;padding:3px 8px;margin-bottom:7px}#settings-dialog{width:520px;max-height:85dvh;overflow:auto}#settings-dialog h3{font-size:14px;margin-top:26px}#settings-dialog label{font-size:11px;display:block;margin-bottom:8px}#settings-dialog input,#replacement-key{width:100%;color:#eee;background:#111116;border:1px solid #54404e;border-radius:7px;padding:11px;margin-bottom:10px}#settings-dialog button:not(.text-action){padding:10px 12px;border:1px solid #5c3949;border-radius:7px;background:#362331;color:#eddae5;font-size:12px;margin:4px 5px 4px 0}#settings-dialog .danger{background:#661d35!important}.settings-note{font-size:11px!important;line-height:1.7}.dialog-close{position:absolute;right:15px;top:10px;margin:0!important}.message-text>div:not(.code-block){white-space:pre-wrap;overflow-wrap:anywhere}#toast{z-index:100;max-width:90vw}.composer-tools>div{flex-shrink:0}@media(max-width:760px){.response-actions{flex-wrap:wrap}.response-actions small{font-size:8px}.profile{margin-top:10px;padding-top:10px}.sidebar-bottom{margin-top:8px}}
@media(max-width:760px){main{transition:none;min-width:0}}
/* Pro appearance: account status comes from the authenticated backend. */
body.pro{--pro-accent:#ff6d80;--pro-rgb:255,72,105}
body.pro[data-pro-theme=amethyst]{--pro-accent:#c3a2ff;--pro-rgb:164,111,255}
body.pro[data-pro-theme=arctic]{--pro-accent:#7ad8f1;--pro-rgb:70,190,230}
body.pro main{background:radial-gradient(ellipse at 65% 18%,rgba(var(--pro-rgb),.10),transparent 60%),#111116}
body.pro .sidebar{background:#0b0b11;border-right:1px solid rgba(var(--pro-rgb),.18)}
body.pro header{border-bottom:1px solid rgba(var(--pro-rgb),.12);background:#10101680}
.pro-pill{font-size:10px;letter-spacing:2px;border:1px solid rgba(var(--pro-rgb),.4);border-radius:6px;padding:4px 7px;color:var(--pro-accent);margin-left:7px;vertical-align:middle}
body.pro .brand-version,body.pro #usage{color:var(--pro-accent)}
body.pro .hero-mark{display:none}
.pro-logo{position:relative;width:112px;height:112px;margin:0 auto 22px;perspective:520px}
.pro-logo:after{content:'';position:absolute;inset:28px 10px 0;border-radius:50%;background:rgba(var(--pro-rgb),.2);filter:blur(20px);z-index:0}
.pro-logo-core{position:absolute;inset:0;transform-style:preserve-3d;transform:rotateX(16deg) rotateY(-24deg);animation:logo-orbit 7s ease-in-out infinite;z-index:1}
.pro-logo-layer{position:absolute;inset:0;mask:url('/assets/logo.png') center/contain no-repeat;-webkit-mask:url('/assets/logo.png') center/contain no-repeat;background:color-mix(in srgb,var(--pro-accent) 45%,#320a19);transform:translateZ(calc(var(--layer)*1.3px));backface-visibility:visible}
.pro-logo-layer:last-child{background:linear-gradient(135deg,#fff0f2 0%,var(--pro-accent) 35%,#b91640 75%,#ffc2d5 100%)}
body.pro h1{font-weight:500;letter-spacing:-1px}
body.pro #composer{background:#191922;border-color:rgba(var(--pro-rgb),.30);box-shadow:0 12px 50px #0003}
body.pro #composer:focus-within{border-color:var(--pro-accent);box-shadow:0 0 0 3px rgba(var(--pro-rgb),.08)}
body.pro #send{background:var(--pro-accent);color:#111}
body.pro .suggestions button:hover,body.pro .new-chat:hover{border-color:var(--pro-accent);background:rgba(var(--pro-rgb),.07)}
#pro-settings{padding:0 16px 12px;border:1px solid rgba(var(--pro-rgb),.25);border-radius:12px;background:rgba(var(--pro-rgb),.05);margin-top:20px}
#pro-theme{width:100%;padding:10px;background:#16161d;color:#eee;border:1px solid #555;border-radius:7px;margin-bottom:15px}
#settings-dialog .motion-choice{display:flex;align-items:center;gap:10px}#settings-dialog #pro-motion{width:auto;margin:0;accent-color:var(--pro-accent)}
body.pro-still *,body.pro-still *::before,body.pro-still *::after{animation:none!important}
@keyframes logo-orbit{0%,100%{transform:translateY(0) rotateX(16deg) rotateY(-24deg) rotateZ(-7deg)}50%{transform:translateY(-7px) rotateX(-10deg) rotateY(30deg) rotateZ(7deg)}}
@media(prefers-reduced-motion:reduce){.pro-logo-core{animation:none!important}}
@media(max-height:600px){.pro-logo{width:68px;height:68px;margin-bottom:8px}}
/* Website artifacts belong to the active chat. */
.studio-response{font-size:12px;color:#baaec2;margin-top:12px}.studio-response summary{cursor:pointer;padding:8px 0}
.website-artifact{display:block;width:100%;text-align:left;margin:16px 0 8px;padding:18px;background:#24212c;border:1px solid #514052;border-radius:12px;color:#e8dbea;font-size:12px}.website-artifact:hover{border-color:var(--pro-accent,#fa526c)}
#website-context{display:flex;align-items:center;justify-content:space-between;gap:10px;color:#b2a6bc;font-size:11px;padding:8px 4px}#website-context button{background:none;border:0;color:var(--pro-accent,#ff7289);font-size:11px}
#builder-dialog{position:fixed;inset:12px 12px 12px auto;width:52vw;max-width:900px;padding:22px;background:#15151c;border:1px solid #39323f;border-radius:16px;overflow:auto;z-index:3;color:#eee;box-shadow:0 20px 70px #0004}
.builder-open main{margin-right:min(calc(52vw + 24px),924px);min-width:0}.builder-open main header{padding:0 15px}.builder-open .demo{display:none}.builder-open .header-left{gap:6px;font-size:13px}
.builder-open .welcome{padding:28px 18px}.builder-open h1{font-size:25px}.builder-open .composer-wrap{padding:12px 18px 18px}.builder-open .composer-tools small{display:none}.builder-open #messages{padding:18px;max-width:100%}.builder-open .message-text{font-size:13px}.builder-open.empty-chat .composer-wrap{padding-bottom:25px}
#builder-dialog button,#builder-dialog input,#builder-dialog select{font:12px 'DM Sans',sans-serif;border:1px solid #3b3541;border-radius:8px;color:#ddd;background:#24212a;padding:9px 12px}#builder-dialog button:hover:not(:disabled){border-color:var(--pro-accent,#f66)}#builder-dialog button:disabled{opacity:.4}
#builder-dialog button:focus-visible,#builder-dialog input:focus-visible,#builder-dialog select:focus-visible,#builder-code:focus-visible{outline:2px solid var(--pro-accent,#f66)!important;outline-offset:2px}
.builder-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.builder-top small{display:flex;align-items:center;gap:10px;font-size:9px;letter-spacing:1.5px;color:var(--pro-accent,#ff7289)}#builder-title{font:600 24px 'Manrope',sans-serif;margin:10px 0 0;letter-spacing:-.8px}#builder-close{font-size:20px!important;padding:4px 12px!important}
#builder-status{font-size:12px;color:#b9a9c2;line-height:1.7;margin:20px 0;min-height:20px;overflow-wrap:anywhere}.builder-note{font-size:11px;color:#a69aad;line-height:1.8;margin:16px 0}
#builder-empty,#builder-locked{padding:60px 18px;text-align:center}#builder-empty h3,#builder-locked h3{font:500 22px 'Manrope',sans-serif;letter-spacing:-.6px;margin:18px 0 9px}#builder-empty p,#builder-locked p{color:#aaa0b4;font-size:13px;line-height:1.8}#builder-locked button{margin:5px}
.studio-mark{display:inline-grid;place-items:center;width:52px;height:52px;border:1px solid #493343;border-radius:15px;color:var(--pro-accent,#ff7289);font-size:27px;background:#251d29}
.builder-actions,.builder-toolbar,.builder-pages,.builder-view-tabs{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.builder-actions{margin-bottom:20px}#builder-name{flex:1;min-width:130px;background:transparent!important}#builder-dialog #builder-download,#builder-dialog #builder-upgrade{background:var(--pro-accent,#fa526c);color:#160e18;border-color:transparent;font-weight:600}
.builder-view-tabs{border-bottom:1px solid #35303b;padding-bottom:12px;margin-bottom:16px}#builder-undo{margin-left:auto}#builder-dialog button.selected{color:var(--pro-accent,#ff7289);background:#302431;border-color:var(--pro-accent,#ff7289)}.builder-pages{font-size:11px;color:#a899b3;margin:15px 0}.builder-toolbar{margin:12px 0}.builder-toolbar>div{display:flex;gap:6px}
#builder-frame-wrap{height:calc(100dvh - 380px);min-height:320px;background:repeating-linear-gradient(45deg,#201d26,#201d26 8px,#24212a 8px,#24212a 9px);padding:10px;display:flex;justify-content:center;overflow:auto;border:1px solid #37303d;border-radius:10px}#builder-frame{width:100%;height:100%;border:0;background:white;flex-shrink:0}#builder-frame-wrap[data-size=mobile] #builder-frame{width:375px;max-width:100%}#builder-frame-wrap[data-size=tablet] #builder-frame{width:768px;max-width:100%}
#builder-file{display:block;background:#25202b;color:#b8a7c2;padding:10px 13px;font:11px monospace;border-radius:8px 8px 0 0}#builder-code{width:100%;height:calc(100dvh - 420px);min-height:280px;max-height:none;display:block;resize:vertical;background:#101017;color:#ddd;border:1px solid #37303d;padding:14px;border-radius:0 0 8px 8px;font:12px/1.8 Consolas,monospace;white-space:pre;overflow:auto}
@media(max-width:1200px){#builder-dialog{inset:65px 12px 235px 256px;width:auto;max-width:none;padding:18px}.builder-open main{margin-right:0}#builder-frame-wrap{height:350px}#builder-code{height:350px}}
@media(max-width:760px){#builder-dialog{inset:68px 10px 235px;width:auto;padding:16px;z-index:6;border-radius:12px}#builder-title{font-size:21px}.builder-top small{font-size:8px;letter-spacing:1px}.builder-actions{gap:6px}#builder-name{flex-basis:100%}.builder-view-tabs{gap:5px}#builder-dialog button{padding:8px 9px;font-size:11px}#builder-undo{margin-left:auto}.builder-open main header{padding:0 12px}.builder-open .header-left{font-size:12px}.builder-open .composer-wrap{padding:10px 16px 15px}#builder-empty,#builder-locked{padding:25px 8px}.builder-open .sidebar:not(.open){visibility:hidden}}
@media(max-height:650px) and (max-width:1200px){#builder-dialog{bottom:150px;top:55px}#builder-frame-wrap{min-height:260px}}
.builder-top{position:sticky;top:0;z-index:2;background:#15151c;padding-bottom:12px}
#builder-agent-activity{font-size:12px;color:#bfb0c9;border:1px solid #39303f;border-radius:9px;padding:12px;margin:12px 0}#builder-agent-activity summary{cursor:pointer}#builder-agent-steps{padding-left:20px;max-height:160px;overflow:auto;line-height:1.9;margin-bottom:0}.builder-library{display:flex;align-items:center;gap:10px;font-size:11px;color:#b8a7c2;margin:14px 0}.builder-library select{min-width:0;flex:1}#builder-page{max-width:100%;flex:1;min-width:150px}.builder-actions{gap:6px}#builder-delete-project{font-size:10px!important}#builder-frame-wrap{min-height:360px}#builder-archive{max-width:80px}
@media(max-width:760px){#builder-workspace:not([hidden]),#builder-editor:not([hidden]){display:flex;flex-direction:column}#builder-status{margin:4px 0 12px}#builder-editor{order:1}#builder-agent-activity{order:2}.builder-library{order:3}.builder-view-tabs{order:0;margin-bottom:0}.builder-pages{order:1;flex-wrap:nowrap;overflow-x:auto;padding:4px 1px;margin:8px 0}.builder-pages>*{flex-shrink:0}#builder-page{flex:none;min-width:130px;width:130px}#builder-preview-pane,#builder-code-pane{order:2}.builder-actions{order:3;margin:16px 0 0}.builder-note{order:4}#builder-frame-wrap{min-height:300px;height:350px}.builder-toolbar{margin:4px 0 10px}}

#free-plan-note:not([hidden]){display:flex;align-items:center;justify-content:center;gap:8px;color:#c9bcc8;font-size:11px;line-height:1.5;padding:5px 0 0}#free-plan-note input{width:13px;height:13px;margin:0;accent-color:#f36580;opacity:1;flex-shrink:0}#free-plan-note:not([hidden])+#usage{padding-top:5px}

/* Native radio controls give the subscription tabs keyboard support without JavaScript. */
.subscription-switch{display:grid;grid-template-columns:auto 1fr;gap:8px;min-width:0;margin-top:24px;position:relative}.plan-choice{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden;clip-path:inset(50%)}.plan-tab{display:flex;align-items:center;justify-content:center;border:1px solid #48313e;border-radius:9px;padding:12px 16px;font-size:12px;color:#bca9b7;background:#211a23;cursor:pointer;min-width:0;text-align:center}.plan-choice:checked+.plan-tab{background:#44222e;border-color:#f36580;color:#ffafbf}.plan-choice:focus-visible+.plan-tab{outline:2px solid #ff7891;outline-offset:3px}.subscription-panels{grid-column:1/-1;min-width:0}.subscription-panel{display:none}[data-plan-choice=free]:checked~.subscription-panels>[data-plan=free],[data-plan-choice=paid]:checked~.subscription-panels>[data-plan=paid]{display:block}.plan-free-check{display:flex;align-items:center;gap:10px;font-size:13px;color:#dac3d1;margin:24px 0 30px;line-height:1.6}.plan-free-check input{width:16px;height:16px;accent-color:#f36580;margin:0;opacity:1;flex-shrink:0}.subscription-panel>p{font-size:13px;line-height:1.8;color:#b6a6b3}.plan-continue{width:100%;cursor:pointer}.hero-plans{display:inline-block;margin-top:20px}@media(max-width:480px){.plan-tab{padding:11px 10px;font-size:11px}}

.policy-links{display:flex;flex-wrap:wrap;gap:12px 18px;font-size:12px;line-height:1.7}.policy-links a{color:#e4b2c2;text-decoration:underline;text-underline-offset:4px}

/* One visible agent run, with readable activity and direct file access. */
#builder-frame-wrap{position:relative;display:block;overflow:auto}#builder-frame-wrap #builder-frame{position:relative;max-width:none;display:block;margin-inline:auto}
#agent-mode{background:#28232e;color:#eee;border:1px solid #544458;border-radius:8px;font:12px system-ui;padding:7px;max-width:120px;margin-right:8px}
#agent-live,.agent-result{border:1px solid #403847;border-radius:10px;background:#1c1a23;padding:12px;margin:10px 0;color:#d8d0e0;line-height:1.5;min-width:0;max-width:100%;overflow-wrap:anywhere}
#agent-live[hidden]{display:none}.agent-heading{font-size:14px;font-weight:650;color:#f0e7fa;display:flex;align-items:center;gap:9px}.agent-heading:before{content:'';width:7px;height:7px;border-radius:50%;background:#ba91ed;box-shadow:0 0 12px #ba91ed88}
#agent-live>p{font-size:12px;margin:5px 0}#agent-live details,.agent-result details{font-size:12px;color:#b9a9c9}#agent-live ol,.agent-result ol{padding-left:20px;max-height:140px;overflow:auto}#agent-live summary,.agent-result summary{cursor:pointer;padding:4px 0}
.agent-files{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.agent-file,.attachment-open{background:#292331;border:1px solid #56415f;border-radius:8px;color:#e4d4ee;padding:7px 10px;font:12px ui-monospace,monospace;cursor:pointer;overflow-wrap:anywhere}.agent-file:hover,.attachment-open:hover{border-color:#bf91e5;background:#382b45}.agent-result .message-text{margin-top:12px}.builder-library{flex-wrap:wrap}
#attachment-dialog{width:min(850px,94vw);max-height:85dvh;overflow:auto}#attachment-text{white-space:pre-wrap;overflow-wrap:anywhere;font:13px/1.7 ui-monospace,monospace;padding:20px;background:#121219;border:1px solid #37313e;border-radius:10px}#attachment-image{max-width:100%;max-height:60vh;object-fit:contain}#attachment-note{font-size:12px;color:#b9a9c9}.message-files{display:flex;align-items:center;flex-wrap:wrap;gap:5px}
@media(max-width:760px){#agent-live,.agent-result{padding:10px}#agent-mode{font-size:11px;max-width:100px}.composer-tools small{display:none}.agent-files{gap:5px}.agent-file{font-size:11px}}

/* Keep work details small and preserve usable controls on narrow/short screens. */
#agent-live{width:calc(100% - 36px);max-width:728px;margin:8px auto 16px}
.agent-heading{font-size:12px}.agent-files{gap:5px;margin-top:7px}
.agent-file{max-width:100%;padding:6px 8px;font-size:11px}
#builder-agent-activity{padding:8px 10px;margin:8px 0;font-size:11px}
.composer-wrap{flex-shrink:0}.composer-tools{gap:6px;flex-wrap:wrap}
.composer-tools>div{margin-left:auto;gap:8px}
.builder-top>div{min-width:0}#builder-title{overflow-wrap:anywhere}
.builder-toolbar,.builder-toolbar>div{flex-wrap:wrap;min-width:0}
#builder-dialog input,#builder-dialog select{max-width:100%}
#website-context>span{min-width:0;overflow-wrap:anywhere}
@media(max-width:1200px){
 #builder-dialog{top:66px;bottom:var(--composer-clearance,235px);left:256px}
 .sidebar-collapsed #builder-dialog{left:12px}
}
@media(max-width:760px){
 #builder-dialog,.sidebar-collapsed #builder-dialog{left:8px;right:8px;padding:12px;top:66px}
 #builder-title{font-size:18px}#builder-status{font-size:11px}
 .builder-top{padding-bottom:8px}#agent-mode{margin-right:0}
 .sidebar{max-width:calc(100vw - 40px);overflow-y:auto}
 #attachments>span{max-width:100%;overflow-wrap:anywhere}
}
@media(max-height:600px){
 /* A scrollable sheet is usable even with the software keyboard/landscape height. */
 #builder-dialog{top:8px;bottom:8px;z-index:6}
 #builder-frame-wrap{min-height:220px}#builder-code{min-height:180px}
 .sidebar{overflow-y:auto}.history-label{margin-top:12px}
}

/* Workspace finish: neutral surfaces, clear hierarchy, restrained brand color. */
body,main,body.pro main{background:#17171a;color:#ececef}
.sidebar,body.pro .sidebar{background:#121215;border-right:1px solid #2c2c32}
header,body.pro header{background:#17171a;border-bottom:1px solid #2b2b31}
.brand{font-weight:650;letter-spacing:-.5px}.brand-version{font-size:10px;letter-spacing:.6px}
.header-left{font-size:14px}.history-label{color:#83838e;font-size:11px}.history-item{font-size:12px;border-radius:6px}
.history-item.active{background:#25252b}.premium-link{color:#aaaab5}.premium-link:hover{background:#222228}
#search-chats{background:#1a1a20;border-color:#303038;border-radius:6px}
.welcome h1{font-size:28px;letter-spacing:-.8px;font-weight:500}.suggestions button{border-color:#383840;border-radius:8px;background:#1b1b21;padding:11px 14px}.suggestions button:hover,body.pro .suggestions button:hover{background:#24242b;border-color:#646470;transform:none}.suggestions strong{color:#bbbcc6}.card-icon{color:#a4a4af}
#composer,body.pro #composer{background:#212127;border-color:#414149;border-radius:16px;box-shadow:none}
#composer:focus-within,body.pro #composer:focus-within{border-color:#93717a;box-shadow:none}
#prompt{font-size:15px}#send,body.pro #send{background:#e2dfe3;border-color:#e2dfe3;color:#202027}#send:hover:not(:disabled){background:#fff;transform:none}
#agent-mode{border-color:#474750;background:#2a2a32;border-radius:6px}.composer-tools .text-action{color:#b6b6c2}.footnote{color:#85858f}
.message.user{background:#292930;border-radius:14px}.message-text{color:#d0d0d9}.message-name{font-weight:500}.message-name small{color:#9999a5}
#agent-live,.agent-result{background:#1c1c23;border-color:#3a3a45;border-radius:8px;color:#c7c7d3}.agent-heading{color:#dbdbe5}.agent-heading:before{background:#b9a3ad;box-shadow:none}
.agent-file,.attachment-open{background:#25252f;border-color:#454550;color:#d4d4df;border-radius:6px}.website-artifact{background:#25252e;border-color:#45454f;border-radius:8px;font-size:12px;padding:14px}
#builder-dialog{background:#1b1b22;border-color:#41414b;border-radius:12px;box-shadow:0 16px 44px #0003}.builder-top{background:#1b1b22}#builder-title{font-size:21px;font-weight:500;letter-spacing:-.5px}
#builder-dialog button,#builder-dialog input,#builder-dialog select{background:#292932;border-color:#454550;border-radius:6px}#builder-agent-activity{border-color:#40404c;color:#afafbe}#website-context{color:#a8a8b5}
dialog,#settings-dialog,#premium-dialog{background:#1e1e25;border-color:#43434e;border-radius:12px;box-shadow:0 18px 70px #0005}
dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}#settings-dialog h2{font-weight:500}#settings-dialog h3{color:#d1d1dc}#settings-dialog input,#replacement-key{border-color:#494953;background:#17171e}#settings-dialog button:not(.text-action){background:#2b2b35;border-color:#4a4a56;color:#dedee8;border-radius:6px}
#pro-settings{background:#25252d;border-color:#454550}.pro-logo{width:100px;height:100px}.pro-logo:after{opacity:.65}
#premium-dialog{width:560px;padding:28px;max-height:90dvh}#premium-title{font-size:25px;font-weight:500;letter-spacing:-.7px;margin:20px 0 8px}.premium-heading{color:#a7a7b2;letter-spacing:1.2px}.premium-heading img{width:26px;height:26px}.premium-tagline{font-size:12px;color:#aaaab7}
#premium-dialog .subscription-switch{margin-top:24px;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#premium-dialog .plan-tab{flex-direction:column;gap:5px;background:#22222b;border-color:#43434f;border-radius:7px;padding:12px 5px;color:#b0b0be;font-size:12px}#premium-dialog .plan-tab strong{font-weight:500}#premium-dialog .plan-tab small{font-size:9px}#premium-dialog .plan-choice:checked+.plan-tab{background:#35252d;border-color:#956270;color:#ffdae3}
[data-plan-choice=lifetime]:checked~.subscription-panels>[data-plan=lifetime]{display:block}
#premium-dialog .subscription-panels{margin-top:10px}#premium-dialog .plan{border:1px solid #41414c;padding:24px;border-radius:9px;background:#191920}.plan-top{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:14px}.plan-term{font:9px monospace;letter-spacing:.4px;color:#9999a7}.price{font:600 42px 'Manrope',sans-serif;letter-spacing:-1.5px;margin:24px 0 14px;line-height:1.2}.price small{font:11px 'DM Sans',sans-serif;letter-spacing:0;color:#a8a8b5}.plan>p{font-size:12px;color:#b1b1c0;line-height:1.8;margin:0 0 18px}.plan-features{list-style:none;padding:17px 0 0;margin:18px 0 24px;border-top:1px solid #383842;display:grid;gap:12px}.plan-features li{position:relative;padding-left:20px;font-size:12px;line-height:1.6;color:#c2c2ce}.plan-features li:before{content:'✓';position:absolute;left:0;color:#d7909e}.plan .primary{display:flex;align-items:center;justify-content:space-between;width:100%;padding:13px 15px;background:#d33b53;border:1px solid #df5269;color:#fff;border-radius:7px;font-size:12px;font-weight:500;cursor:pointer}.plan .primary:hover{background:#e24a61}.plan-note{display:block;margin-top:13px;font-size:10px;line-height:1.8;color:#9999a9}.plan-free-check{margin:18px 0;font-size:12px;color:#cccbd7}.plan form{margin:0}
@media(max-width:760px){.welcome h1{font-size:25px}.composer-wrap{padding-inline:14px}#premium-dialog{padding:24px 17px;max-width:calc(100vw - 20px)}#premium-dialog .plan{padding:20px}.price{font-size:38px}.pro-logo{width:86px;height:86px}.message-text{font-size:14px}.suggestions button{padding:10px 12px}}
@media(max-height:600px){.pro-logo{width:62px;height:62px}}

/* Reference chat: flowing color, centered composition and a quiet tool row. */
body.reference-chat{--wave-color:#e00019;--wave-rgb:225,15,38;background:#100202}
.reference-chat[data-pro-theme=amethyst]{--wave-color:#902bdf;--wave-rgb:145,50,215}
.reference-chat[data-pro-theme=arctic]{--wave-color:#087cbb;--wave-rgb:25,140,210}
body.reference-chat main{background:transparent;position:relative}
body.reference-chat header{background:transparent;border:0;height:76px;padding:0 24px;gap:16px}
.reference-chat .header-left{font-size:20px;gap:8px;font-weight:500;white-space:nowrap}
.reference-chat #menu{display:flex;align-items:center;gap:6px;padding:0;color:#ddd}
.reference-chat #menu img{width:39px;height:39px}.reference-chat #menu>span{font-size:19px}
.theme-switch{display:flex;gap:9px;align-items:center;padding:10px 13px;border:1px solid rgba(var(--wave-rgb),.35);border-radius:30px;background:#10020480;box-shadow:inset 0 0 0 3px #0003;margin-left:auto}
.theme-switch>span{width:20px;height:20px;border-radius:50%;background:var(--wave-color);box-shadow:0 0 12px rgba(var(--wave-rgb),.4);flex-shrink:0}
.theme-switch select{border:0;background:transparent;color:#eee;font:13px 'DM Sans',sans-serif;max-width:132px;cursor:pointer;outline-offset:6px}.theme-switch option{background:#200b10;color:#fff}
.reference-chat.empty-chat .chat-area{margin-top:auto;flex:none;overflow:visible}
.reference-chat .welcome{padding:0 18px 28px;animation:none;max-width:860px}
.reference-chat .welcome h1{font:400 32px/1.35 'DM Sans',sans-serif;letter-spacing:-.7px;margin:0}
.reference-chat .pro-logo{width:78px;height:78px;margin-bottom:22px}.reference-chat .hero-mark{width:70px;height:70px;margin-bottom:22px}.reference-chat .hero-mark img{width:70px;height:70px}
.logo-mesh{position:absolute;inset:0;width:100%;height:100%;z-index:1;filter:drop-shadow(0 9px 7px #0006)}
.webgl-ready .pro-logo-core{visibility:hidden}
.reference-chat .pro-logo.webgl-ready{width:104px;height:104px}
@media(max-height:600px){.reference-chat .pro-logo.webgl-ready{width:58px;height:58px}}
.reference-chat .composer-wrap{max-width:868px;padding:8px 20px 18px;display:flex;flex-direction:column}
.reference-chat.empty-chat .composer-wrap{margin-top:0;margin-bottom:auto;padding-bottom:38px}
body.reference-chat #composer{background:rgba(48,8,14,.64);border:1px solid rgba(var(--wave-rgb),.7);border-radius:32px;padding:17px 22px 13px;box-shadow:inset 0 0 0 4px #0002,0 0 25px #0002;backdrop-filter:blur(16px)}
body.reference-chat #composer:focus-within{border-color:#d75165;box-shadow:0 0 0 3px rgba(var(--wave-rgb),.08)}
.reference-chat #prompt{font-size:18px;min-height:35px}.reference-chat #prompt::placeholder{color:#b68e96}
.reference-chat .composer-tools{justify-content:flex-start;flex-wrap:nowrap;gap:14px;margin-top:10px}
.reference-chat #attach{font-size:28px;padding:0;width:27px;height:32px;line-height:1;color:#e6d8dc;order:0}
.reference-chat #web-search{order:1;width:32px;height:32px;padding:5px;border:1px solid transparent;border-radius:50%;display:grid;place-items:center;color:#e6d8dc;flex-shrink:0}
#web-search svg{width:22px;height:22px}.reference-chat #web-search.selected{background:rgba(var(--wave-rgb),.25);color:#fff;border-color:rgba(var(--wave-rgb),.8)}
.reference-chat #agent-mode{order:2;margin:0;border:0;background:transparent;color:#c9afb6;font-size:11px;max-width:110px;padding:5px 0}.reference-chat #agent-mode option{background:#241218}
.reference-chat .composer-tools>div{order:3;margin-left:auto}.reference-chat .composer-tools small{display:none}
body.reference-chat #send{width:36px;height:36px;border-radius:50%;background:#fa3653;border-color:#ff6279;color:white;font-size:24px;flex-shrink:0}body.reference-chat #send:disabled{opacity:.5}
.reference-chat .suggestions{display:none;margin:28px 0 0;gap:10px}.reference-chat.empty-chat .suggestions{display:flex}
.reference-chat .suggestions button{border:1px solid rgba(var(--wave-rgb),.35);border-radius:28px;padding:13px 19px;background:#10020588;box-shadow:inset 0 0 0 3px #0004;min-height:48px;gap:10px}
.reference-chat .suggestions button:hover{background:rgba(var(--wave-rgb),.12);border-color:#ad3b4c}.reference-chat .suggestions strong{font-size:13px;color:#ede0e3}.reference-chat .card-icon{color:#eb7186;font-size:21px;line-height:1}
.reference-chat .card-icon svg{width:22px;height:22px;display:block}
.reference-chat #usage{order:5;font-size:10px;color:#b18790;margin:10px 0 0;text-align:center}.reference-chat #free-plan-note{order:4;justify-content:center;margin-top:15px}.reference-chat .footnote{order:6;color:#a1808a;margin-top:6px}
.reference-chat .response-actions{margin-top:9px}.reference-chat #file-note{font-size:9px;color:#a5838c}.reference-chat.empty-chat #file-note{display:none}
.reference-chat .message.user{background:#3c161ed9;border:1px solid #63323b}.reference-chat .message-text{color:#eddee4}.reference-chat .message-name{color:#cbaeb8}
body.reference-chat .sidebar{background:#130b10f5;border-color:#482530;backdrop-filter:blur(20px)}
.reference-chat #messages{max-width:828px}.reference-chat:not(.empty-chat) .wave-background{opacity:.5}
.search-status{font-size:11px;color:#d8a2af;margin-top:16px}.search-sources{display:flex;gap:8px;flex-wrap:wrap}.search-sources a{font-size:12px;padding:8px 11px;border:1px solid #714350;border-radius:10px;background:#28131c;max-width:100%;overflow-wrap:anywhere}.search-sources a:hover{border-color:#db8299}
.reference-chat.builder-open .theme-switch{display:none}.reference-chat.builder-open .composer-wrap{padding-inline:16px}
.reference-chat.pro-still .wave-background path{animation:none}
@media(min-width:761px) and (min-height:601px){.reference-chat .pro-logo{margin-bottom:10px}.reference-chat.empty-chat .composer-wrap{padding-bottom:62px}}
@media(prefers-reduced-motion:reduce){.wave-background path{animation:none!important}}
@media(max-width:760px){body.reference-chat header{height:65px;padding:0 14px;gap:8px}.reference-chat .header-left{font-size:15px;gap:3px}.reference-chat #menu img{width:30px;height:30px}.reference-chat #menu>span{font-size:14px}.reference-chat .pro-pill{font-size:8px;padding:3px 4px;letter-spacing:1px;margin-left:3px}.theme-switch{padding:8px;gap:5px}.theme-switch>span{width:12px;height:12px}.theme-switch select{font-size:10px;max-width:98px}.reference-chat #open-builder{font-size:10px;padding:3px}.reference-chat .welcome{padding:10px 12px 24px}.reference-chat .welcome h1{font-size:26px}.reference-chat .composer-wrap{padding-inline:14px}body.reference-chat #composer{border-radius:25px;padding:15px}.reference-chat #prompt{font-size:16px}.reference-chat .composer-tools{gap:10px}.reference-chat .suggestions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:22px}.reference-chat:not(.empty-chat) .suggestions{display:none!important}.reference-chat .suggestions button{padding:11px 9px;justify-content:center;gap:7px}.reference-chat .suggestions strong{font-size:11px}.reference-chat .card-icon{font-size:18px}.reference-chat.empty-chat .composer-wrap{padding-bottom:24px}}
@media(max-width:360px){.reference-chat .header-left{font-size:13px}.reference-chat .header-left .pro-pill{display:none}.theme-switch select{max-width:91px}.reference-chat #menu img{width:26px;height:26px}.reference-chat .welcome h1{font-size:23px}}
@media(max-height:600px){.reference-chat.empty-chat .chat-area{margin-top:0;flex:1;overflow:auto}.reference-chat .welcome{padding-top:12px;padding-bottom:12px}.reference-chat .pro-logo{width:52px;height:52px;margin-bottom:8px}.reference-chat .welcome h1{font-size:22px}.reference-chat.empty-chat .composer-wrap{padding-bottom:8px;margin-bottom:0}.reference-chat .suggestions{margin-top:10px;gap:7px}.reference-chat .suggestions button{padding:7px 12px;min-height:34px}.reference-chat .footnote{margin-top:3px}}

/* Compact chat sizing, shared by Free and Pro. */
.wave-site #settings-dialog,.wave-site #premium-dialog,.wave-site #attachment-dialog,.wave-site #delete-dialog,.wave-site #builder-dialog{background:#23080fe8;border-color:#69303f;backdrop-filter:blur(12px)}
.wave-site #premium-dialog .plan{background:#19050bbd;border-color:#66313f}.wave-site #builder-dialog .builder-top{background:transparent}
body.reference-chat{--pro-accent:#ff6d80;--pro-rgb:255,72,105}
.reference-chat .hero-mark{display:none}
body.reference-chat header{height:60px;padding-inline:20px}
.reference-chat .header-left{font-size:16px}.reference-chat #menu img{width:30px;height:30px}
.reference-chat .theme-switch{padding:7px 10px}.reference-chat .theme-switch>span{width:15px;height:15px}.reference-chat .theme-switch select{font-size:11px}
.reference-chat .welcome{padding:0 16px 18px}.reference-chat .welcome h1{font-size:25px;letter-spacing:-.5px}
.reference-chat .pro-logo,.reference-chat .pro-logo.webgl-ready{width:84px;height:84px;margin:0 auto 12px}
.reference-chat .composer-wrap{max-width:696px;padding:6px 18px 14px}
.reference-chat.empty-chat .composer-wrap{padding-bottom:38px}
body.reference-chat #composer{padding:11px 15px 9px;border-radius:23px}
.reference-chat #prompt{font-size:14px;min-height:26px;line-height:1.5}
.reference-chat .composer-tools{margin-top:5px;gap:10px}.reference-chat #attach{font-size:23px;width:26px;height:28px}
.reference-chat #web-search{width:28px;height:28px;padding:4px}.reference-chat #web-search svg{width:19px;height:19px}
body.reference-chat #send{width:30px;height:30px;font-size:21px}.reference-chat #agent-mode{font-size:11px;padding:3px}
.reference-chat .suggestions{margin-top:18px;gap:8px}.reference-chat .suggestions button{min-height:38px;padding:9px 12px;gap:7px}
.reference-chat .suggestions strong{font-size:11px}.reference-chat .card-icon svg{width:18px;height:18px}
.reference-chat #usage{font-size:9px;margin-top:8px}.reference-chat .footnote{font-size:9px}
.reference-chat #messages{max-width:672px}.reference-chat .message-text{font-size:14px;line-height:1.7}
.reference-chat .message{padding-block:14px}.reference-chat .message.user{padding:10px 14px;border-radius:17px}
@media(max-width:760px){body.reference-chat header{padding-inline:12px;height:56px}.reference-chat .header-left{font-size:13px}.reference-chat #menu img{width:26px;height:26px}.reference-chat .theme-switch{padding:6px}.reference-chat .theme-switch select{font-size:10px}.reference-chat .welcome h1{font-size:22px}.reference-chat .composer-wrap{padding-inline:14px}.reference-chat .pro-logo,.reference-chat .pro-logo.webgl-ready{width:76px;height:76px}.reference-chat #prompt{font-size:16px;min-height:26px}.reference-chat .suggestions{gap:7px;margin-top:15px}.reference-chat .suggestions button{min-height:38px;padding:8px 9px}.reference-chat.empty-chat .composer-wrap{padding-bottom:20px}.reference-chat .message-text{font-size:13px}}
@media(max-height:600px){.reference-chat .pro-logo,.reference-chat .pro-logo.webgl-ready{width:50px;height:50px;margin-bottom:6px}.reference-chat .welcome{padding:8px 12px 10px}.reference-chat .welcome h1{font-size:20px}.reference-chat.empty-chat .composer-wrap{padding-bottom:6px}.reference-chat .suggestions{margin-top:8px}}
/* Connected account controls use the same compact treatment as appearance settings. */
#telegram-settings{padding:16px;border:1px solid #57333e;border-radius:14px;background:#241319;margin:18px 0}
#telegram-settings h3{margin-top:0}
#model-mode{display:block;width:100%;max-width:100%;margin:8px 0;padding:10px 12px;border:1px solid #65535c;border-radius:9px;background:#19171e;color:#f6edf0;font:inherit;font-size:13px}
#telegram-account-status{overflow-wrap:anywhere}

.profile>div{min-width:0}.profile #profile-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.avatar{position:relative;overflow:hidden;flex-shrink:0}.avatar>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}#profile-avatar{display:flex;flex-shrink:0}

/* Pro onion index search */
#dark-web-search{width:30px;height:30px;padding:5px;flex:0 0 30px}#dark-web-search svg{width:20px;height:20px}#dark-web-search.selected{color:#ff758d;background:#4b1220;border-radius:50%}.darkweb-result{min-width:0}.darkweb-result>small{display:block;line-height:1.7;opacity:.7;overflow-wrap:anywhere}.darkweb-source{display:flex;flex-direction:column;gap:8px;border:1px solid #65323d;border-radius:12px;padding:14px;margin:12px 0;min-width:0}.darkweb-source code{white-space:normal;overflow-wrap:anywhere;font-size:11px;color:#e3a9b4}.darkweb-source small{opacity:.65}.darkweb-source button{align-self:flex-start}.darkweb-result .search-status{line-height:1.6}

#agent-command-results { margin:12px 0; padding:12px; border:1px solid #69323a; border-radius:12px; }
#agent-command-results summary { cursor:pointer; font-size:13px; }
#agent-command-results p { font:12px ui-monospace,monospace; overflow-wrap:anywhere; }
#agent-command-results pre { max-height:240px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; font:12px/1.5 ui-monospace,monospace; padding:12px; background:#10090c; border-radius:8px; }
#attachment-note { overflow-wrap:anywhere; font-size:12px; line-height:1.6; }
#agent-command-results .agent-file { margin:4px; max-width:100%; overflow-wrap:anywhere; }
#attachment-title, .attachment-open { overflow-wrap:anywhere; white-space:normal; }
#attachments > span { max-width:100%; min-width:0; }
#attachments .attachment-open { min-width:0; text-align:left; }
.agent-artifact-card { display:flex; flex-wrap:wrap; gap:6px; align-items:center; max-width:100%; padding:6px 0; }
.agent-artifact-card .agent-file { max-width:100%; overflow-wrap:anywhere; white-space:normal; }
#attachment-remove { margin:8px; background:transparent; color:#eea6b1; border:1px solid #68323c; border-radius:8px; padding:8px 12px; }
.pro-task-card{margin:12px auto;padding:16px;max-width:780px;width:calc(100% - 32px);border:1px solid #6d3039;border-radius:14px;background:rgba(24,7,12,.9);font-size:13px;box-sizing:border-box;overflow-wrap:anywhere}.pro-task-card p{margin:8px 0;color:#d5bdc3}.pro-task-card details{margin-top:10px}.pro-task-card ol{max-height:180px;overflow:auto}.pro-project-tools{margin:10px 0;padding:10px;border:1px solid #51262e;border-radius:10px;font-size:12px}.pro-project-tools>div{margin-top:10px}.pro-project-tools input,.pro-project-tools textarea{box-sizing:border-box;width:100%;background:#16090d;border:1px solid #60313b;border-radius:7px;color:#f8edf0;padding:9px;margin:5px 0}.pro-project-tools pre{max-height:340px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere}.pro-task-limits{display:grid;grid-template-columns:1fr 1fr;gap:10px}.pro-task-limits small{grid-column:1/-1;color:#c6aab2}.pro-project-tools button{margin:4px;max-width:100%;overflow-wrap:anywhere}.pro-task-card[hidden]{display:none}@media(max-width:500px){.pro-task-limits{grid-template-columns:1fr}.pro-task-card{padding:12px}}
.pro-task-card pre{white-space:pre-wrap;overflow-wrap:anywhere;max-height:240px;overflow:auto;font-size:12px}.pro-task-card a.agent-file{display:inline-block;margin:6px;color:#ffc6d0;}
/* Compact, truthful response feedback; no simulated streaming or thought text. */
#reply-status{display:flex;align-items:center;gap:9px;min-height:25px;margin:0 3px 7px;font-size:12px;line-height:1.45;color:#c7afb6;flex-wrap:wrap}#reply-status[hidden]{display:none!important}#reply-status button{background:none;border:0;padding:2px 4px;font:inherit;color:#ffc1d0;text-decoration:underline;text-underline-offset:3px}.reply-dots{display:inline-flex;gap:4px;align-items:center;height:12px;flex-shrink:0}.reply-dots i{display:block;width:4px;height:4px;border-radius:50%;background:currentColor;animation:reply-dot 1.3s ease-in-out infinite}.reply-dots i:nth-child(2){animation-delay:.16s}.reply-dots i:nth-child(3){animation-delay:.32s}@keyframes reply-dot{0%,70%,100%{opacity:.35;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}#reply-status.interrupted{color:#dcb19b}.pro-task-card{max-width:672px;padding:12px 14px;border-color:#61303b;background:rgba(22,9,13,.78);font-size:12px;line-height:1.5}.pro-task-card>strong{font-size:12px;font-weight:600}.pro-task-card>p{margin:7px 0 10px}.pro-task-card .task-metrics{font-size:11px;color:#bba6ac}.pro-task-card .agent-file{font-family:inherit;font-size:11px;border-radius:7px}.pro-task-card>details{margin-top:9px}.pro-task-card>details>summary{cursor:pointer;color:#bca7ad;font-size:11px;min-height:24px;padding:3px 0}@media(prefers-reduced-motion:reduce){.reply-dots i{animation:none;opacity:.65;transform:none}}@media(max-width:480px){#reply-status{font-size:11px;gap:7px}.pro-task-card{width:calc(100% - 28px);padding:10px 12px}}
:root .desktop-download-card{border:1px solid #56303e;background:#27151f;border-radius:12px;padding:18px;margin:20px 0}.desktop-download-card h3{font-size:16px;margin:0 0 10px}.desktop-download-card p{font-size:12px;line-height:1.6}.desktop-download-link{display:inline-block;background:#b82050;color:#fff;border-radius:8px;text-decoration:none;padding:12px 16px;font-size:13px}.desktop-download-status{color:#c7a9b7}.desktop-download-card [hidden]{display:none!important}

.desktop-download-card select,#platform{max-width:100%;padding:10px;background:#20151a;color:#eee;border:1px solid #684253;border-radius:7px;font:inherit;margin:8px 0}
/* Keep account access and theme controls inside narrow chat headers. */
.reference-chat .header-left{min-width:0;flex:1}.reference-chat .header-left>span{overflow:hidden;text-overflow:ellipsis}.reference-chat #header-account{flex-shrink:0}
@media(max-width:600px){body.reference-chat header{gap:7px;padding-inline:10px}.reference-chat .header-left{font-size:12px;gap:3px}.reference-chat #header-account{font-size:11px;padding:7px 5px}.reference-chat .theme-switch{margin-left:0;padding:6px;gap:0}.reference-chat .theme-switch>span{display:none}.reference-chat .theme-switch select{width:72px;max-width:72px}.reference-chat #open-builder{padding:6px 3px;font-size:10px}.reference-chat .header-left .pro-pill{display:none}}

/* Workspace detail pass: calmer borders, consistent focus and readable notes. */
body.reference-chat :is(button,a,input,textarea,select,summary):focus-visible{outline:2px solid #ed9caf;outline-offset:3px}
body.reference-chat .settings-note{font-size:12px;line-height:1.7;color:#baadb4}
body.reference-chat .builder-note{font-size:12px;line-height:1.65}
body.reference-chat .response-actions button{min-height:34px;border-radius:7px}
body.reference-chat dialog{border-color:#ffffff26;border-radius:14px;box-shadow:0 20px 60px #0005}
body.reference-chat .suggestions button{border-radius:10px;box-shadow:none}
body.reference-chat #composer{border-color:#ffffff28;box-shadow:0 8px 28px #0002}

.referral-card{border-top:1px solid #ffffff18;margin-top:24px;padding-top:12px}.referral-identity{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin-top:20px}.referral-identity span{font:12px monospace;padding:5px 9px;border-radius:6px;background:#ffffff0b;color:#e5a4ac}.referral-link{display:flex;gap:8px;align-items:center}.referral-link input{min-width:0;flex:1}.referral-total{font-size:26px;font-weight:650;letter-spacing:-.8px;margin:22px 0 12px}.referral-contact{display:inline-block;color:#ffb4be;padding:10px 0}.referral-card details{border-top:1px solid #ffffff12;padding:14px 0}.referral-card summary{cursor:pointer;font-weight:550}.referral-card li{margin:10px 0;line-height:1.6}.referral-card textarea{width:100%;box-sizing:border-box;resize:vertical;line-height:1.5}.referral-card label{margin-top:12px}.referral-card [hidden]{display:none}
