:root{--cyber-bg:#070d18;--card-border:rgba(0,243,255,.2);--cyan:#00f3ff;--purple:#c084fc;--magenta:#e879f9;--amber:#f59e0b}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#050a14;color:#e2e8f0;font-family:'Rajdhani',sans-serif}body{overflow-x:hidden}.font-orbitron{font-family:'Orbitron',monospace}.font-chakra{font-family:'Chakra Petch',sans-serif}.app-shell{min-height:100vh}.circuit-bg{background-color:#060b16;background-image:radial-gradient(circle at 50% 50%,rgba(13,30,56,.5) 0%,rgba(4,8,18,.95) 100%),linear-gradient(rgba(0,243,255,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(0,243,255,.03) 1px,transparent 1px);background-size:100% 100%,40px 40px,40px 40px}.system-header{border-bottom:1px solid rgba(0,243,255,.13);color:rgba(34,211,238,.72);font-family:'Orbitron',monospace}.cyber-panel{background:linear-gradient(135deg,rgba(11,23,44,.83),rgba(7,14,28,.78));border:1px solid rgba(0,243,255,.2);box-shadow:0 8px 32px #0009,inset 0 0 12px rgba(0,243,255,.03);backdrop-filter:blur(14px);border-radius:18px;position:relative}.hud-brackets:before,.hud-brackets:after{content:'';position:absolute;width:12px;height:12px;border-color:#00f3ff;pointer-events:none}.hud-brackets:before{top:-1px;left:-1px;border-top:2px solid;border-left:2px solid;border-top-left-radius:16px}.hud-brackets:after{bottom:-1px;right:-1px;border-bottom:2px solid;border-right:2px solid;border-bottom-right-radius:16px}::-webkit-scrollbar{width:4px;height:4px}::-webkit-scrollbar-track{background:rgba(10,20,36,.5)}::-webkit-scrollbar-thumb{background:rgba(0,243,255,.3);border-radius:4px}::-webkit-scrollbar-thumb:hover{background:rgba(0,243,255,.7)}.status-dot{display:inline-block;width:8px;height:8px;border-radius:50%;flex:none}.status-online{background:#34d399;box-shadow:0 0 8px #34d399}.status-offline{background:#f87171;box-shadow:0 0 8px #f87171}.status-checking{background:#fbbf24;box-shadow:0 0 8px #fbbf24;animation:pulse 1.6s infinite}.mini-dot{position:absolute;right:-2px;top:-2px;width:8px;height:8px;border:2px solid #07111e;border-radius:50%}.rail-button,.icon-button,.input-action{display:inline-flex;align-items:center;justify-content:center;color:#94a3b8;transition:.2s;border:1px solid transparent;background:transparent;cursor:pointer}.rail-button{width:38px;height:38px;border-radius:12px}.rail-button svg{width:19px;height:19px}.rail-button:hover,.icon-button:hover,.input-action:hover{color:#a5f3fc;background:rgba(0,243,255,.1)}.rail-button.active{color:#67e8f9;background:rgba(0,243,255,.13);border-color:rgba(0,243,255,.45);box-shadow:0 0 12px rgba(0,243,255,.2)}.icon-button{width:30px;height:30px;border-radius:8px;flex:none}.icon-button svg{width:16px;height:16px}.core-mini{position:relative;width:38px;height:38px;border:1px solid rgba(0,243,255,.4);border-radius:12px;background:rgba(8,45,65,.4);display:grid;place-items:center;color:#67e8f9}.core-mini svg{width:19px;height:19px;animation:pulse 2.4s infinite}.avatar-ring{width:46px;height:46px;padding:2px;border-radius:50%;border:2px solid rgba(192,132,252,.8);box-shadow:0 0 12px rgba(192,132,252,.35);flex:none}.avatar-ring svg{width:100%;height:100%;border-radius:50%}.footer-link{display:flex;align-items:center;gap:5px;background:transparent;color:#94a3b8;font-size:12px;transition:.2s}.footer-link:hover{color:#67e8f9}.footer-link svg{width:14px;height:14px}.runtime-pill{font:600 9px 'Orbitron',sans-serif;letter-spacing:.08em;padding:4px 7px;border-radius:999px;border:1px solid}.runtime-checking{color:#fcd34d;border-color:#f59e0b66;background:#78350f33}.runtime-online{color:#6ee7b7;border-color:#10b98166;background:#064e3b44}.runtime-offline{color:#fca5a5;border-color:#ef444466;background:#7f1d1d33}.chat-item{width:100%;text-align:left;padding:10px;border:1px solid rgba(51,65,85,.7);border-radius:12px;background:rgba(15,23,42,.35);color:#cbd5e1;transition:.2s;cursor:pointer}.chat-item:hover{border-color:rgba(0,243,255,.4)}.chat-item.selected{border-color:rgba(0,243,255,.5);background:rgba(8,47,73,.42);color:#a5f3fc;box-shadow:inset 0 0 10px rgba(0,243,255,.08)}.chat-item-title{display:block;font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-item-preview{display:block;font-size:11px;color:#64748b;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:3px}.eyebrow{font:10px 'Orbitron',sans-serif;color:rgba(34,211,238,.62);letter-spacing:.2em;margin-bottom:8px}.side-vent{position:absolute;top:43%;width:6px;height:64px;border-radius:8px;background:repeating-linear-gradient(0deg,rgba(0,243,255,.38),rgba(0,243,255,.38) 3px,transparent 3px,transparent 7px);opacity:.7}.vent-left{left:7px}.vent-right{right:7px}.orb-stage{isolation:isolate}.orb-glow{position:absolute;border-radius:50%;filter:blur(38px);pointer-events:none}.orb-glow-cyan{width:260px;height:260px;background:rgba(0,243,255,.12)}.orb-glow-purple{width:220px;height:220px;background:rgba(147,51,234,.16);transform:translate(38px,20px)}.orb-ring{position:absolute;border-radius:50%;pointer-events:none}.ring-one{width:min(72vw,320px);height:min(72vw,320px);border:1px dashed rgba(34,211,238,.22);animation:spin 22s linear infinite}.ring-two{width:min(60vw,258px);height:min(60vw,258px);border:1px dotted rgba(192,132,252,.3);animation:spin-reverse 28s linear infinite}.orb-button{display:block;width:min(100%,520px);padding:0;background:transparent;border:0;cursor:pointer}.orb-button canvas{display:block;width:100%;height:auto;filter:drop-shadow(0 0 22px rgba(0,243,255,.4))}.orb-hint{position:absolute;bottom:3px;left:50%;transform:translateX(-50%);font:9px 'Orbitron',sans-serif;letter-spacing:.13em;color:rgba(103,232,249,.55);white-space:nowrap}.conversation-panel{max-height:170px;min-height:42px;overflow:hidden}.conversation-empty{display:flex;align-items:center;justify-content:center;gap:8px;text-align:center;color:#64748b;font-size:12px;padding:8px 4px}.conversation-empty svg{color:#22d3ee;flex:none}.messages{max-height:170px;overflow-y:auto;padding:2px 4px 5px;display:flex;flex-direction:column;gap:9px}.message{max-width:88%;padding:9px 12px;border-radius:12px;font-size:13px;line-height:1.45;white-space:pre-wrap;overflow-wrap:anywhere}.message.user{align-self:flex-end;color:#cffafe;background:rgba(8,47,73,.65);border:1px solid rgba(34,211,238,.35)}.message.assistant{align-self:flex-start;color:#e2e8f0;background:rgba(30,41,59,.72);border:1px solid rgba(148,163,184,.2)}.message.system{align-self:center;max-width:100%;font-size:11px;color:#fcd34d;background:rgba(120,53,15,.22);border:1px solid rgba(245,158,11,.22)}.message-meta{font:9px 'Orbitron',sans-serif;color:#64748b;margin-bottom:3px;letter-spacing:.08em}.cyber-input-wrapper{background:rgba(6,15,30,.94);border:1.5px solid #00cfe0;box-shadow:0 0 17px rgba(0,243,255,.18),inset 0 0 15px rgba(0,243,255,.06);border-radius:14px}.cyber-input-wrapper:focus-within{box-shadow:0 0 20px rgba(0,243,255,.3),inset 0 0 15px rgba(0,243,255,.08)}#prompt-input{max-height:130px;min-height:25px}.input-action{width:34px;height:32px;border-radius:8px;color:#67e8f9}.input-action svg{width:19px;height:19px}.input-action.recording{color:#fca5a5;background:rgba(239,68,68,.15);border-color:rgba(248,113,113,.35)}.send-button{display:inline-flex;align-items:center;gap:8px;padding:7px 18px;border-radius:10px;background:rgba(8,47,73,.8);border:1px solid #22d3ee;color:#a5f3fc;font:600 13px 'Chakra Petch',sans-serif;box-shadow:0 0 12px rgba(0,243,255,.2);transition:.2s}.send-button:hover{background:rgba(8,70,95,.8);box-shadow:0 0 18px rgba(0,243,255,.35)}.send-button:disabled{opacity:.5;cursor:wait}.send-button svg{width:15px;height:15px}.status-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid rgba(148,163,184,.09);font-size:13px}.status-row:last-of-type{border-bottom:0}.status-row span{color:#94a3b8}.status-row strong{font:600 9px 'Orbitron',sans-serif;letter-spacing:.04em;text-align:right}.subsystem-card{display:flex;align-items:center;gap:10px}.subsystem-icon{width:32px;height:32px;border-radius:9px;background:rgba(15,23,42,.7);border:1px solid rgba(148,163,184,.15);display:grid;place-items:center;flex:none}.subsystem-icon svg{width:16px;height:16px}.subsystem-title{font-size:13px;font-weight:600;color:#cbd5e1}.subsystem-detail{font-size:11px;line-height:1.35;color:#64748b;margin-top:1px}.build-card{padding:13px;border-radius:12px;border:1px solid rgba(245,158,11,.28);background:linear-gradient(180deg,rgba(120,53,15,.16),rgba(15,23,42,.52))}.build-help-button{margin-top:10px;width:100%;padding:7px 10px;border-radius:9px;border:1px solid rgba(34,211,238,.5);background:rgba(8,47,73,.5);color:#a5f3fc;font:600 12px 'Chakra Petch',sans-serif}.attachment-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}.attachment-chip{border:1px solid rgba(34,211,238,.25);border-radius:8px;padding:4px 8px;color:#a5f3fc;font-size:11px;background:rgba(8,47,73,.25)}.modal-backdrop{position:fixed;inset:0;z-index:50;background:rgba(3,7,18,.78);backdrop-filter:blur(8px);display:flex;align-items:center;justify-content:center;padding:16px}.modal-backdrop.hidden{display:none}.modal-card{width:100%;max-width:480px;padding:24px;box-shadow:0 0 35px rgba(0,243,255,.2)}.modal-close{position:absolute;top:15px;right:15px;color:#94a3b8;background:transparent}.modal-close svg{width:19px;height:19px}.modal-icon{width:40px;height:40px;border-radius:11px;background:rgba(0,243,255,.12);border:1px solid rgba(34,211,238,.35);color:#67e8f9;display:grid;place-items:center}.modal-icon svg{width:19px;height:19px}.modal-body{border-top:1px solid rgba(34,211,238,.15);padding-top:14px;color:#cbd5e1;font-size:13px;line-height:1.6}.modal-dismiss{padding:7px 16px;border-radius:8px;border:1px solid rgba(148,163,184,.35);color:#cbd5e1;background:rgba(15,23,42,.5);font:600 12px 'Chakra Petch',sans-serif}.modal-body code{color:#67e8f9;background:rgba(8,47,73,.45);padding:2px 5px;border-radius:4px}.toast{position:fixed;right:20px;bottom:20px;z-index:60;display:flex;align-items:center;gap:9px;max-width:min(90vw,440px);padding:11px 15px;border-radius:12px;border:1px solid rgba(34,211,238,.4);background:rgba(7,18,34,.96);box-shadow:0 0 22px rgba(0,243,255,.2);color:#cffafe;font-size:13px}.toast.hidden{display:none}.toast svg{width:16px;height:16px;color:#67e8f9;flex:none}.orb-pulse{animation:orb-pulse .6s ease-out}@keyframes spin{to{transform:rotate(360deg)}}@keyframes spin-reverse{to{transform:rotate(-360deg)}}@keyframes pulse{50%{opacity:.5}}@keyframes orb-pulse{0%{filter:drop-shadow(0 0 12px #00f3ff)}50%{filter:drop-shadow(0 0 38px #c084fc)}100%{filter:drop-shadow(0 0 22px rgba(0,243,255,.4))}}
@media(max-width:1023px){.app-shell{min-height:100vh}.app-shell>.grid{min-height:auto}.app-shell .lg\:max-h-full{max-height:none}.orb-stage{min-height:230px}.conversation-panel{max-height:200px}.messages{max-height:200px}}
@media(max-width:640px){.system-header{font-size:9px}.avatar-ring{width:40px;height:40px}.orb-stage{min-height:205px}.ring-one{width:245px;height:245px}.ring-two{width:198px;height:198px}.orb-glow-cyan{width:190px;height:190px}.orb-glow-purple{width:160px;height:160px}.modal-card{padding:20px}.footer-link{font-size:11px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;scroll-behavior:auto!important}}

.voice-locale-select{width:100%;padding:8px 10px;border-radius:8px;border:1px solid rgba(34,211,238,.3);background:#071525;color:#cffafe;font:13px 'Chakra Petch',sans-serif;outline:none}.voice-locale-select:focus{border-color:#22d3ee;box-shadow:0 0 10px rgba(0,243,255,.15)}
