:root{color-scheme:dark;--black:#050505;--panel:#0b0b0b;--panel2:#101010;--gold:#d9ad55;--gold2:#f5d58a;--gold-dim:#785a2b;--line:rgba(217,173,85,.23);--text:#f3eee4;--muted:#9b9589;font-family:Inter,"Noto Sans Arabic","Segoe UI",Tahoma,Arial,sans-serif}*{box-sizing:border-box}html{min-height:100%;background:var(--black)}body{position:relative;min-height:100vh;margin:0;overflow-x:hidden;background:radial-gradient(ellipse at 50% 36%,#17120a 0,transparent 39%),linear-gradient(145deg,#050505,#080807 55%,#030303);color:var(--text)}a{color:inherit}.ambient{position:fixed;z-index:0;width:420px;height:420px;border-radius:50%;filter:blur(110px);opacity:.09;pointer-events:none}.ambient-one{top:8%;right:-180px;background:#d9ad55}.ambient-two{bottom:0;left:-220px;background:#a47730}.app-shell{position:relative;z-index:1;width:min(1120px,calc(100% - 40px));min-height:100vh;margin:auto;display:flex;flex-direction:column;padding:24px 0 20px}.topbar,.topbar-meta,.brand,.connection-state,.footer,.chat-header,.composer,.security-note{display:flex;align-items:center}.topbar,.footer{justify-content:space-between}.brand{gap:11px;text-decoration:none}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border:1px solid var(--gold-dim);border-radius:11px;color:var(--gold2);font-family:Georgia,serif;font-size:21px;box-shadow:0 0 18px #d9ad5520,inset 0 0 15px #d9ad5510}.brand-name{font-size:13px;letter-spacing:3px;font-weight:800}.topbar-meta{gap:20px}.mode-label,.eyebrow,.footer{font-size:9px;letter-spacing:2px}.mode-label{color:var(--gold2);font-weight:700}.connection-state{gap:8px;color:#a49d90;font-size:11px}.connection-state i,.pulse-dot{width:7px;height:7px;border-radius:50%;background:#a67c38;box-shadow:0 0 10px #d9ad55}.workspace{width:min(760px,100%);margin:0 auto;flex:1;display:flex;flex-direction:column;align-items:center}.assistant-heading{text-align:center;padding-top:44px}.eyebrow{color:var(--gold);font-weight:800;margin:0 0 12px}.assistant-heading h1{margin:0;font-family:Georgia,"Times New Roman",serif;font-size:clamp(34px,6vw,54px);font-weight:500;letter-spacing:5px;text-shadow:0 0 26px #d9ad5524}.assistant-heading h1 span{color:var(--gold2)}.subheading{margin:13px 0 0;color:#aaa294;font-size:13px}.voice-stage{position:relative;display:grid;place-items:center;width:300px;height:280px;margin:12px auto 0}.orbit{position:absolute;border:1px solid #c99d4a;border-radius:50%;pointer-events:none}.orbit-outer{width:248px;height:248px;opacity:.2;border-style:dashed;animation:rotate 42s linear infinite}.orbit-middle{width:204px;height:204px;opacity:.4;border-top-color:transparent;border-bottom-color:transparent;animation:rotate-reverse 26s linear infinite}.orbit-inner{width:166px;height:166px;opacity:.22;box-shadow:0 0 25px #d9ad5514,inset 0 0 25px #d9ad5510}.voice-core{position:relative;display:grid;place-items:center;width:128px;height:128px;border:1px solid #d6ad5b;border-radius:50%;background:radial-gradient(circle at 50% 45%,#302311 0,#100d08 56%,#050505 100%);box-shadow:0 0 24px #d9ad5530,0 0 75px #d9ad5515,inset 0 0 25px #d9ad5526;animation:core-breathe 5s ease-in-out infinite}.core-glow{position:absolute;inset:9px;border:1px solid #d9ad5545;border-radius:50%;box-shadow:0 0 20px #d9ad5520}.core-mark{position:absolute;top:29px;color:var(--gold2);font-family:Georgia,serif;font-size:38px;text-shadow:0 0 18px #f5d58a8c}.sound-bars{position:absolute;bottom:25px;display:flex;align-items:center;gap:3px;height:15px}.sound-bars i{display:block;width:2px;height:4px;border-radius:2px;background:var(--gold);opacity:.8;animation:equalize 1.1s ease-in-out infinite}.sound-bars i:nth-child(2n){animation-delay:.2s}.sound-bars i:nth-child(3n){animation-delay:.4s}.voice-caption{position:absolute;bottom:0;display:flex;align-items:center;gap:8px;color:#8d8577;font-size:10px}.pulse-dot{width:5px;height:5px}.chat-panel{position:relative;width:min(680px,100%);padding:21px;border:1px solid transparent;border-radius:17px;background:linear-gradient(#0a0a09,#0a0a09) padding-box,conic-gradient(from var(--angle),#4b361b,#d7ad5c,#6f5126,#f4d38b,#5c411e,#d7ad5c,#4b361b) border-box;box-shadow:0 0 24px #d9ad5510,0 18px 65px #000a;animation:border-glow 9s linear infinite}.chat-panel:before{content:"";position:absolute;inset:-1px;border-radius:18px;padding:1px;background:conic-gradient(from var(--angle),transparent 0 25%,#e4bd6b 34%,transparent 45% 72%,#a77b35 82%,transparent 90%);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;pointer-events:none;opacity:.75}.chat-header{justify-content:space-between;gap:12px}.chat-header .eyebrow{margin-bottom:5px;font-size:8px}.chat-header h2{margin:0;font-size:16px;font-weight:600}.runtime-badge{padding:6px 9px;border:1px solid #5b4727;border-radius:20px;color:#d5b574;font-size:9px}.conversation{min-height:104px;padding:21px 0 17px}.message{display:flex;align-items:flex-start;gap:11px}.message-avatar{display:grid;place-items:center;flex:0 0 29px;height:29px;border:1px solid #80612f;border-radius:9px;color:var(--gold2);font-family:Georgia,serif}.message-content p{margin:1px 0 7px;font-size:12px;line-height:1.8}.message-content .muted{max-width:550px;color:#8f887b;font-size:10px}.composer{gap:10px;padding:9px;border:1px solid #342a1b;border-radius:12px;background:#050505}.composer input{flex:1;min-width:0;border:0;outline:0;background:transparent;color:var(--text);font:inherit;font-size:11px}.composer input::placeholder{color:#716a5e}.voice-button,.send-button{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border:1px solid #4a3921;border-radius:9px;background:#100d08;color:#8c754b}.voice-button svg,.send-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.voice-button:disabled,.send-button:disabled,.composer input:disabled{opacity:.48;cursor:not-allowed}.security-note{gap:7px;margin:12px 0 0;color:#746d61;font-size:9px}.security-note span{color:var(--gold)}.system-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;width:min(680px,100%);margin:17px 0 25px}.system-strip>div{display:flex;align-items:center;gap:9px;padding:11px;border:1px solid #242017;border-radius:10px;background:#080807a8}.system-icon{color:#bd9651;font-family:Georgia,serif;font-size:13px}.system-strip b,.system-strip small{display:block}.system-strip b{font-size:8px;letter-spacing:1px;color:#c7b58f}.system-strip small{margin-top:4px;color:#716b60;font-size:8px}.footer{gap:12px;padding-top:14px;border-top:1px solid #211b11;color:#71695b;font-size:8px}.footer a{color:#b89a61;text-decoration:none}.footer a:hover{color:var(--gold2)}@property --angle{syntax:"<angle>";initial-value:0deg;inherits:false}@keyframes rotate{to{transform:rotate(360deg)}}@keyframes rotate-reverse{to{transform:rotate(-360deg)}}@keyframes core-breathe{0%,100%{box-shadow:0 0 24px #d9ad5530,0 0 75px #d9ad5515,inset 0 0 25px #d9ad5526}50%{box-shadow:0 0 34px #d9ad5550,0 0 95px #d9ad5525,inset 0 0 32px #d9ad5538}}@keyframes equalize{0%,100%{height:4px}50%{height:13px}}@keyframes border-glow{to{--angle:360deg}}@media(max-width:600px){.app-shell{width:calc(100% - 26px);padding-top:15px}.topbar-meta{gap:10px}.mode-label{font-size:8px;letter-spacing:1px}.connection-state{font-size:9px}.assistant-heading{padding-top:47px}.assistant-heading h1{letter-spacing:3px}.subheading{font-size:11px}.voice-stage{height:250px;width:270px}.orbit-outer{width:220px;height:220px}.orbit-middle{width:184px;height:184px}.orbit-inner{width:150px;height:150px}.chat-panel{padding:16px}.system-strip{gap:6px}.system-strip>div{padding:8px 6px;gap:6px}.system-strip b{font-size:7px}.system-strip small{font-size:7px}.footer{flex-direction:column;align-items:flex-start;font-size:7px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}
/* BLACK VANTA identity — restrained royal black and animated gold */
:root{--black:#030303;--panel:#080808;--gold:#d9ad55;--gold2:#f5d58a;--text:#fff}
body{background:#030303;color:#fff}
.ambient,.voice-stage{display:none!important}
.workspace{width:min(760px,100%);justify-content:center}
.assistant-heading{padding:clamp(72px,15vh,150px) 0 42px}
.assistant-heading h1{font-family:Georgia,"Times New Roman",serif;font-weight:500;letter-spacing:6px;color:#fff}
.assistant-heading h1 span{color:var(--gold2)}
.subheading{color:#c7c7c7}
.chat-panel{width:min(720px,100%);padding:clamp(17px,3vw,26px);border:1px solid transparent;border-radius:18px;background:linear-gradient(#080808,#080808) padding-box,conic-gradient(from var(--angle),#61451c,#f5d58a,#9b702e,#fbe5a9,#61451c) border-box;box-shadow:0 0 16px #d9ad5525,0 0 42px #d9ad5510;animation:border-glow 5s linear infinite}
.chat-panel:before{inset:-2px;border-radius:20px;opacity:.85;filter:drop-shadow(0 0 5px #d9ad5580)}
.chat-header h2{color:#fff}
.conversation{min-height:150px;max-height:42vh;overflow:auto}
.message-content p{color:#fff;font-size:14px}
.message-content .muted{color:#c4c4c4;font-size:12px}
.message-avatar{border-radius:50%;color:var(--gold2)}
.composer{gap:13px;padding:10px 12px;border:0;border-radius:0;border-top:1px solid #3a2b16;background:transparent}
.composer input{color:#fff;font-size:15px;min-height:42px}
.composer input::placeholder{color:#aaa}
.send-button{width:46px;height:46px;flex-basis:46px;border:1px solid var(--gold2);border-radius:50%;background:linear-gradient(145deg,#f5d58a,#c4933d);color:#050505;box-shadow:0 0 16px #d9ad5540;transition:transform .2s ease,box-shadow .2s ease}
.send-button:hover{transform:translateY(-2px);box-shadow:0 0 24px #d9ad5590}
.send-button:active{transform:scale(.94)}
.send-arrow{width:22px;height:22px;fill:none;stroke:#050505;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.send-button:disabled{opacity:.45}
.security-note{color:#aaa}
.system-strip{margin-top:22px}
.system-strip>div{background:#070707;border-color:#302516}
.system-strip b{color:#f0d69e}
.system-strip small{color:#aaa}
.footer{color:#888}
.footer a{color:#d8b66e}
@media(max-width:600px){.assistant-heading{padding:clamp(65px,13vh,110px) 0 32px}.assistant-heading h1{font-size:clamp(34px,10vw,48px);letter-spacing:4px}.chat-panel{padding:16px 14px}.conversation{min-height:165px}.message-content p{font-size:13px}.message-content .muted{font-size:11px}.send-button{width:44px;height:44px;flex-basis:44px}}
@media(prefers-reduced-motion:reduce){.chat-panel,.send-button{animation:none;transition:none}}

.runtime-settings{width:min(720px,100%);margin:18px auto 0;padding:11px 14px;border:1px solid #3a2b16;border-radius:12px;background:#070707}
.runtime-settings summary{cursor:pointer;color:#d8bd82;font-size:11px;letter-spacing:.4px;list-style-position:inside}
.runtime-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:13px}
.runtime-fields label{display:flex;flex-direction:column;gap:6px;color:#b9aa8b;font-size:10px}
.runtime-fields input,.runtime-fields select{width:100%;min-width:0;padding:10px;border:1px solid #392c19;border-radius:8px;outline:0;background:#050505;color:#fff;font:inherit;font-size:11px}
.runtime-fields input:focus,.runtime-fields select:focus{border-color:#d9ad55;box-shadow:0 0 12px #d9ad5522}
.runtime-fields button{align-self:end;min-height:36px;border:1px solid #f5d58a;border-radius:8px;background:linear-gradient(145deg,#f5d58a,#bd8b3d);color:#080604;font:inherit;font-size:11px;font-weight:800;cursor:pointer}
.runtime-fields button:disabled{opacity:.55;cursor:wait}
.connection-state.is-connected i{background:#77bd82;box-shadow:0 0 10px #77bd82}
@media(max-width:600px){.runtime-settings{margin-top:14px;padding:10px}.runtime-fields{grid-template-columns:1fr}.runtime-fields button{width:100%}}

.artifact-link{display:inline-block;color:#f5d58a;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.artifact-link:hover{color:#fff}
.artifact-link[aria-busy="true"]{opacity:.6;pointer-events:none}

.runtime-fields{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:600px){.runtime-fields{grid-template-columns:1fr}}

#android-build-button{grid-column:1/-1;min-height:42px;border:1px solid #f5d58a;border-radius:9px;background:linear-gradient(145deg,#f5d58a,#bd8b3d);color:#080604;font-weight:800;letter-spacing:.2px}
#android-build-button:disabled{opacity:.42;cursor:not-allowed}
#android-project-path{direction:ltr;text-align:left}

.agent-progress-feed{display:flex;flex-direction:column;gap:5px;max-height:120px;overflow:auto;padding:0 8px;color:#d9bd80}
.agent-progress-event{margin:0;padding:5px 8px;border-right:2px solid #b58a42;background:#ffffff05;color:#e5d5b0;font-size:11px;line-height:1.6}
#web-build-button,#web-verify-button,#android-build-button{grid-column:1/-1}
#web-verify-button{min-height:40px;border:1px solid #a98a55;border-radius:9px;background:#17130d;color:#f5d58a;font-weight:700}
#web-verify-button:disabled{opacity:.42;cursor:not-allowed}

.voice-toggle span{display:flex;align-items:center;gap:8px;color:#e4d3ad;font-size:11px}
.voice-toggle input{width:16px!important;min-height:16px;accent-color:#d9ad55}
#voice-record-button{grid-column:1/-1;min-height:40px}
.voice-status{grid-column:1/-1;color:#b9aa8b;font-size:10px;line-height:1.6}
.voice-output-row{display:flex;flex-direction:column;gap:5px;padding:8px 12px;border-top:1px solid #3a2b16}
.voice-output-row span{color:#e6cb8c;font-size:10px}
.voice-output{width:min(100%,360px);height:36px;filter:sepia(.15)}

.voice-diagnostics{grid-column:1/-1;min-width:0;border:1px solid var(--line);border-radius:8px;padding:7px 9px;background:#080807}
.voice-diagnostics summary{cursor:pointer;color:var(--gold2);font-size:10px;line-height:1.7;list-style-position:inside}
.voice-diagnostics-list{display:grid;gap:4px;margin:8px 0 0;padding:0 18px 0 0}
.voice-diagnostics-list li{font-size:10px;line-height:1.65;overflow-wrap:anywhere;color:var(--muted)}
.voice-diagnostics-list li[data-state="ready"]{color:#b7d6a4}
.voice-diagnostics-list li[data-state="optional"]{color:#b9aa8b}
.voice-diagnostics-list li[data-state="missing"],.voice-diagnostics-list li[data-state="issue"]{color:#e2b57d}


/* BLACK VANTA: true-black canvas and always-visible, gold-framed chat */
:root{--black:#000000;--panel:#030303;--panel2:#070707;--text:#ffffff;--gold:#d9ad55;--gold2:#f5d58a}
html,body{min-height:100%;background:#000000!important}
body{background:#000000!important;color:#ffffff!important}
.app-shell{width:min(1040px,calc(100% - 28px));min-height:100svh;padding:14px 0 12px}
.workspace{width:min(780px,100%);justify-content:flex-start;align-items:stretch}
.assistant-heading{padding:20px 0 18px;text-align:center}
.assistant-heading .eyebrow{margin-bottom:7px;color:#d9ad55}
.assistant-heading h1{font-family:Inter,"Segoe UI",Arial,sans-serif;font-size:clamp(25px,5vw,36px);font-weight:800;letter-spacing:5px;color:#ffffff;text-shadow:0 0 18px #ffffff18}
.assistant-heading h1 span{color:#ffffff}
.assistant-heading .subheading{margin-top:7px;color:#cfcfcf;font-size:12px;letter-spacing:.4px}
.chat-panel{isolation:isolate;display:flex;flex-direction:column;width:100%;min-height:clamp(360px,56svh,560px);padding:clamp(16px,3vw,25px);border:2px solid transparent;border-radius:19px;background:linear-gradient(#000000,#000000) padding-box,conic-gradient(from var(--angle),#76531f 0deg,#d9ad55 55deg,#fff0bd 105deg,#9b702e 175deg,#f5d58a 245deg,#76531f 310deg,#d9ad55 360deg) border-box;box-shadow:0 0 12px #d9ad5560,0 0 34px #d9ad5528,0 18px 70px #000000;animation:vanta-border-flow 4.5s linear infinite}
.chat-panel:before{content:"";position:absolute;z-index:-1;inset:-4px;border-radius:22px;padding:2px;background:conic-gradient(from var(--angle),transparent 0deg,#d9ad55 55deg,#fff0bd 95deg,transparent 145deg,transparent 245deg,#c18b38 300deg,transparent 360deg);-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask-composite:exclude;filter:drop-shadow(0 0 7px #d9ad55);opacity:.95;pointer-events:none}
@keyframes vanta-border-flow{to{--angle:360deg}}
.chat-header{flex:0 0 auto;padding-bottom:13px;border-bottom:1px solid #594321}
.chat-header .eyebrow{color:#d9ad55}
.chat-header h2{color:#ffffff;font-size:16px}
.runtime-badge{border-color:#8d6a32;color:#f5d58a}
.conversation{flex:1 1 auto;min-height:155px;max-height:36svh;overflow-y:auto;padding:18px 2px}
.message-content p,.message-content .muted{color:#ffffff;font-size:13px;line-height:1.9}
.message-avatar{border-color:#d9ad55;color:#ffffff;background:#080808}
.agent-progress-feed{flex:0 0 auto;max-height:100px}
.composer{flex:0 0 auto;gap:12px;padding:9px 10px;border:1px solid #d9ad55;border-radius:14px;background:#050505;box-shadow:0 0 12px #d9ad5528,inset 0 0 12px #d9ad5509}
.composer:focus-within{border-color:#fff0bd;box-shadow:0 0 17px #d9ad5570,inset 0 0 12px #d9ad5512}
.composer input{min-height:42px;color:#ffffff;font-size:15px;caret-color:#f5d58a}
.composer input::placeholder{color:#bcbcbc}
.send-button{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border:1px solid #f5d58a;border-radius:50%;background:#d9ad55;color:#ffffff;box-shadow:0 0 13px #d9ad5570;transition:transform .18s ease,box-shadow .18s ease}
.send-button:hover{transform:translateY(-2px);box-shadow:0 0 22px #f5d58a}
.send-button:active{transform:scale(.94)}
.send-arrow{width:23px;height:23px;fill:none;stroke:#ffffff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round}
.security-note{color:#bdbdbd}
.system-strip{margin:15px 0 18px}
.system-strip>div{border-color:#3a2b16;background:#050505}
.system-strip b,.system-strip small{color:#ffffff}
.footer{border-color:#292015;color:#a5a5a5}
.footer a{color:#d9ad55}
.runtime-settings{background:#050505;border-color:#594321}
.runtime-settings summary,.runtime-fields label{color:#f5d58a}
.runtime-fields input,.runtime-fields select{background:#000000;color:#ffffff;border-color:#594321}
@media(max-width:600px){
 .app-shell{width:calc(100% - 22px);padding-top:10px}
 .assistant-heading{padding:14px 0 13px}
 .assistant-heading h1{font-size:27px;letter-spacing:4px}
 .assistant-heading .eyebrow{font-size:8px;letter-spacing:1.4px}
 .chat-panel{min-height:clamp(370px,57svh,520px);padding:15px 13px;border-radius:16px}
 .chat-panel:before{border-radius:19px}
 .conversation{min-height:145px;max-height:34svh;padding:14px 1px}
 .message-content p,.message-content .muted{font-size:12px}
 .composer{gap:8px;padding:7px 8px}
 .composer input{font-size:14px;min-height:40px}
 .send-button{width:44px;height:44px;flex-basis:44px}
 .system-strip{margin-top:12px}
}
@media(prefers-reduced-motion:reduce){.chat-panel{animation:none}}

.plan-approval-message .message-content{display:flex;flex-direction:column;gap:10px}
.plan-fingerprint{overflow-wrap:anywhere;font-size:11px;opacity:.75}
.plan-approve-button{align-self:flex-start;border:1px solid #d9ad55;border-radius:24px;background:#d9ad55;color:#fff;padding:11px 18px;font-weight:700;cursor:pointer}
.plan-approve-button:disabled{opacity:.6;cursor:wait}
.message-content p{white-space:pre-wrap}
