:root{--bg:#0c0e0d;--panel:#121513;--panel2:#171a17;--panel3:#242820;--text:#f0f0e9;--muted:#9da39a;--line:rgba(255,255,255,.1);--line2:rgba(255,255,255,.16);--accent:#d6a573;--accent2:#bb8e65;--green:#9eb9a0;--danger:#d98b7e;--warning:#edc99f;--sidebar:278px;--shadow:0 24px 80px rgba(0,0,0,.45)}
*{box-sizing:border-box}html,body{height:100%;margin:0}body{overflow:hidden;background:radial-gradient(circle at 70% -20%,rgba(214,165,115,.14),transparent 32%),var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;-webkit-font-smoothing:antialiased}button,input,textarea{font:inherit}button,a{touch-action:manipulation}button{color:inherit}.app-shell{height:100dvh;display:grid;grid-template-columns:var(--sidebar) minmax(0,1fr)}.sidebar{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--line);background:rgba(7,9,13,.82);backdrop-filter:blur(22px);padding:16px 12px}.sidebar-head{height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 8px 0 6px}.brand{display:flex;align-items:center;gap:10px;color:#fff;text-decoration:none;font-weight:800;letter-spacing:-.025em}.brand img{width:30px;height:30px;border-radius:9px;object-fit:cover}.brand span{font-size:16px}.new-chat{margin:14px 2px 20px;height:43px;border:1px solid var(--line2);border-radius:13px;background:linear-gradient(180deg,rgba(255,255,255,.07),rgba(255,255,255,.035));cursor:pointer;text-align:left;padding:0 14px;font-weight:700}.new-chat:hover,.side-action:hover,.ghost-btn:hover,.icon-btn:hover{background:rgba(255,255,255,.075)}.sidebar-label{padding:0 10px 8px;color:#707b8b;font-size:11px;text-transform:uppercase;letter-spacing:.11em;font-weight:800}.conversation-list{display:grid;gap:3px;overflow:auto;min-height:0}.conversation-button{width:100%;border:0;background:transparent;color:#b7bdb4;text-align:left;padding:10px;border-radius:10px;cursor:pointer;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px}.conversation-button:hover,.conversation-button.active{background:rgba(255,255,255,.055);color:#fff}.sidebar-spacer{flex:1}.side-action{display:flex;justify-content:space-between;align-items:center;width:100%;min-height:40px;border:0;background:transparent;color:#9ca7b7;text-decoration:none;border-radius:10px;padding:0 10px;cursor:pointer;font-size:13px}.badge-count{min-width:20px;height:20px;padding:0 6px;display:inline-grid;place-items:center;border-radius:999px;background:rgba(214,165,115,.16);color:#d8dcff;font-size:10px;font-weight:800}.workspace{min-width:0;display:flex;flex-direction:column;height:100dvh}.workspace-head{height:64px;flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid rgba(255,255,255,.055);background:rgba(7,9,13,.58);backdrop-filter:blur(18px);z-index:10}.runtime-status{display:flex;align-items:center;gap:8px;color:#8e99aa;font-size:12px}.status-dot{width:7px;height:7px;border-radius:50%;background:#697485;box-shadow:0 0 0 3px rgba(255,255,255,.03)}.status-dot.online{background:var(--green);box-shadow:0 0 16px rgba(158,185,160,.5)}.status-dot.error{background:var(--danger)}.head-actions{display:flex;align-items:center;gap:8px}.ghost-btn,.icon-btn,.profile-btn{border:1px solid var(--line);background:rgba(255,255,255,.025);cursor:pointer}.ghost-btn{height:36px;padding:0 12px;border-radius:10px;font-size:12px;color:#b7bdb4}.icon-btn{width:36px;height:36px;border-radius:10px;font-size:20px;display:grid;place-items:center}.profile-btn{width:34px;height:34px;border-radius:50%;font-weight:800;color:#e8ebff;background:linear-gradient(135deg,rgba(214,165,115,.22),rgba(183,141,102,.2))}.chat-main{flex:1;min-height:0;overflow:auto;position:relative;scroll-behavior:smooth}.empty-state{min-height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:54px 24px 160px}.hero-logo{width:64px;height:64px;border-radius:19px;box-shadow:0 18px 60px rgba(214,165,115,.2);margin-bottom:20px}.eyebrow{color:#edc5a0;text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:850}.empty-state h1{font-size:clamp(34px,5vw,58px);letter-spacing:-.055em;line-height:1.02;margin:12px 0 15px}.empty-state>p{max-width:660px;color:#9ca7b7;font-size:15px;line-height:1.65;margin:0}.prompt-grid{width:min(720px,100%);display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:30px}.prompt-chip{min-height:68px;text-align:left;border:1px solid var(--line);border-radius:15px;background:rgba(255,255,255,.022);color:#b6bfcc;padding:13px 15px;cursor:pointer;line-height:1.45}.prompt-chip:hover{border-color:rgba(214,165,115,.38);background:rgba(214,165,115,.06);color:#fff}.messages{width:min(860px,calc(100% - 34px));margin:0 auto;padding:34px 0 180px;display:none}.messages.active{display:block}.message{display:grid;grid-template-columns:34px minmax(0,1fr);gap:12px;margin:0 0 28px}.message-avatar{width:30px;height:30px;border-radius:9px;display:grid;place-items:center;font-size:11px;font-weight:850;border:1px solid var(--line)}.message.user .message-avatar{background:rgba(255,255,255,.04);color:#bdc6d2}.message.assistant .message-avatar{background:linear-gradient(135deg,rgba(214,165,115,.18),rgba(183,141,102,.14));color:#e9d1b5}.message-body{min-width:0}.message-role{font-size:11px;color:#737f90;margin-bottom:7px;font-weight:750}.message-content{font-size:15px;line-height:1.72;color:#d5dae2;white-space:pre-wrap;overflow-wrap:anywhere}.message.user .message-content{color:#f2f4f7}.message-content.error{color:#ffadb5}.message-meta{margin-top:9px;font-size:11px;color:#687485}.thinking{display:inline-flex;align-items:center;gap:6px}.thinking i{width:5px;height:5px;border-radius:50%;background:#d6a573;animation:pulse 1s infinite}.thinking i:nth-child(2){animation-delay:.15s}.thinking i:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,100%{opacity:.25;transform:translateY(0)}50%{opacity:1;transform:translateY(-3px)}}.approval-inline{margin-top:13px;border:1px solid rgba(255,213,128,.22);border-radius:14px;background:rgba(255,213,128,.045);padding:13px}.approval-inline b{font-size:12px;color:#ffe3a7}.approval-inline p{margin:5px 0 10px;color:#a9b2bf;font-size:12px}.composer-wrap{position:absolute;left:var(--sidebar);right:0;bottom:0;padding:14px 20px max(15px,env(safe-area-inset-bottom));background:linear-gradient(to top,var(--bg) 55%,rgba(7,9,13,.86) 76%,transparent);pointer-events:none}.composer{pointer-events:auto;width:min(860px,100%);margin:0 auto;display:flex;align-items:flex-end;gap:10px;border:1px solid var(--line2);border-radius:20px;background:rgba(15,20,29,.92);box-shadow:0 20px 55px rgba(0,0,0,.38);padding:9px}.composer:focus-within{border-color:rgba(214,165,115,.5)}textarea{flex:1;min-height:42px;max-height:170px;resize:none;border:0;outline:0;background:transparent;color:#fff;padding:10px 12px;line-height:1.5;font-size:15px}textarea::placeholder{color:#707b8b}.send-button{width:42px;height:42px;flex:0 0 42px;border:0;border-radius:13px;background:#f5f6fa;color:#090b10;font-size:21px;font-weight:900;cursor:pointer}.send-button:disabled{opacity:.35;cursor:not-allowed}.composer-note{pointer-events:none;text-align:center;color:#5f6a79;font-size:10px;margin:7px auto 0;width:min(860px,100%)}.modal-backdrop,.drawer-backdrop{position:fixed;inset:0;z-index:100;background:rgba(2,4,8,.7);backdrop-filter:blur(13px);display:grid;place-items:center;padding:18px}.modal-backdrop[hidden],.drawer-backdrop[hidden],.menu[hidden],.toast[hidden]{display:none}.modal{width:min(460px,100%);border:1px solid var(--line2);border-radius:24px;background:linear-gradient(180deg,#171b16,#121513);box-shadow:var(--shadow);padding:28px}.auth-brand{width:max-content;margin-bottom:28px}.modal h2,.drawer h2{font-size:28px;letter-spacing:-.04em;margin:8px 0 10px}.modal-copy{color:#929dad;font-size:13px;line-height:1.6;margin:0 0 20px}.login-form{display:grid;gap:13px}.login-form label{display:grid;gap:6px;color:#99a4b4;font-size:11px;font-weight:750}.login-form input{height:45px;border:1px solid var(--line);border-radius:11px;background:#090d14;color:#fff;padding:0 12px;outline:0}.login-form input:focus{border-color:rgba(214,165,115,.55)}.primary-btn{height:46px;border:0;border-radius:12px;background:#f5f6fa;color:#080a0e;font-weight:850;cursor:pointer;margin-top:4px}.form-error{margin-top:13px;color:#ffadb5;font-size:12px;border:1px solid rgba(255,123,134,.18);background:rgba(255,123,134,.05);padding:10px;border-radius:10px}.small-copy{font-size:11px;color:#687484;margin:18px 0 0}.small-copy a{color:#edc5a0}.drawer-backdrop{place-items:stretch end;padding:0}.drawer{height:100%;width:min(520px,100%);overflow:auto;border-left:1px solid var(--line);background:#0a0e15;padding:24px;box-shadow:-30px 0 90px rgba(0,0,0,.45)}.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px}.approval-list{display:grid;gap:12px}.approval-card{border:1px solid var(--line);border-radius:16px;background:rgba(255,255,255,.025);padding:15px}.approval-top{display:flex;justify-content:space-between;gap:15px}.approval-capability{font-size:12px;font-weight:850;color:#e9d1b5;overflow-wrap:anywhere}.approval-state{font-size:10px;text-transform:uppercase;color:#ffd992}.argument-list{margin:12px 0;display:grid;gap:7px}.argument-row{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;font-size:11px}.argument-row span:first-child{color:#6f7b8b}.argument-row code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#c4ccd7;white-space:pre-wrap;overflow-wrap:anywhere}.approval-meta{font-size:10px;color:#657181;display:grid;gap:4px}.approval-actions{display:flex;gap:8px;margin-top:13px}.approval-actions button{height:36px;padding:0 12px;border-radius:10px;cursor:pointer}.approve-btn{border:0;background:#eef0f6;color:#090b10;font-weight:800}.reject-btn{border:1px solid var(--line);background:transparent;color:#aab3c0}.empty-approvals{padding:24px 0;color:#788394;font-size:13px}.menu{position:fixed;z-index:80;right:18px;top:58px;width:190px;border:1px solid var(--line);border-radius:12px;background:#0d121a;box-shadow:var(--shadow);padding:7px}.menu-title{padding:9px 10px;color:#7f8a9a;font-size:11px;border-bottom:1px solid var(--line);margin-bottom:4px}.menu button{width:100%;border:0;background:transparent;color:#c1c8d3;text-align:left;padding:9px 10px;border-radius:8px;cursor:pointer}.menu button:hover{background:rgba(255,255,255,.06)}.toast{position:fixed;z-index:150;left:50%;bottom:26px;transform:translateX(-50%);max-width:min(520px,calc(100% - 30px));border:1px solid var(--line2);border-radius:12px;background:#121821;color:#d9dee6;box-shadow:var(--shadow);padding:11px 14px;font-size:12px}.mobile-only{display:none}
@media(max-width:820px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;z-index:70;inset:0 auto 0 0;width:min(310px,88vw);transform:translateX(-105%);transition:transform .22s ease;box-shadow:40px 0 90px rgba(0,0,0,.55)}.sidebar.open{transform:translateX(0)}.mobile-only{display:grid}.composer-wrap{left:0}.workspace-head{padding:0 12px}.ghost-btn{display:none}.prompt-grid{grid-template-columns:1fr}.messages{width:min(100% - 24px,860px)}.empty-state{padding-left:18px;padding-right:18px}.composer-wrap{padding-left:10px;padding-right:10px}.composer-note{display:none}}
@media(max-width:520px){.empty-state h1{font-size:38px}.modal{padding:22px}.drawer{padding:19px}.argument-row{grid-template-columns:1fr}.message{grid-template-columns:28px minmax(0,1fr);gap:9px}.message-avatar{width:26px;height:26px}.message-content{font-size:14px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


/* Rich-text conversation presentation */
.message.assistant .message-content{white-space:normal;line-height:1.7}
.message-content p{margin:0 0 .8em}.message-content p:last-child{margin-bottom:0}
.message-content h3,.message-content h4,.message-content h5{font-size:1.04em;line-height:1.4;letter-spacing:-.015em;margin:1em 0 .5em;color:#f3f5fa}
.message-content ul,.message-content ol{padding-left:1.5em;margin:.45em 0 1em}
.message-content li{padding-left:.15em;margin:.3em 0}
.message-content strong{font-weight:750;color:#f7f8fb}
.message-content em{font-style:italic}
.message-content code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#171e2a;border:1px solid #293040;border-radius:5px;padding:.12em .32em;font-size:.9em}
.message-content pre{padding:15px;overflow-x:auto;border:1px solid #293040;border-radius:12px;background:#101410;margin:.7em 0 1em}
.message-content pre code{padding:0;border:0;background:transparent;white-space:pre;font-size:13px}
.message.user .message-content{white-space:pre-wrap}

/* Hidden states must override display:flex/grid component styles. */
.empty-state[hidden], .messages[hidden] { display: none !important; }

/* DragonZpyder visual system — deliberately quiet, product-first, and shared with the public site. */
:root{color-scheme:dark;--line:rgba(225,220,200,.12);--line2:rgba(225,220,200,.21)}
body{background:var(--bg);color:var(--text);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
::selection{background:#e7bd99;color:#121410}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.sidebar{background:#111411;border-right-color:#34382f;padding:19px 13px}
.sidebar-head{padding-left:8px}.brand{font-weight:720;letter-spacing:-.035em}
.brand img{border-radius:7px}
.sidebar-label{font-size:10px;letter-spacing:.15em;font-weight:720;color:#969d91}
.new-chat{margin-top:22px;border:1px solid #5a6153;border-radius:6px;background:#1b2019;font-size:13px;font-weight:670}
.new-chat:hover{background:#282d23}
.side-action,.conversation-button{border-radius:5px;color:#b6bdb2}
.conversation-button.active{background:#252a22;border-left:2px solid #d6a573}
.workspace-head{background:#0f120f;border-bottom:1px solid #30352f}
.runtime-status{color:#a6ada3;font-size:11px;letter-spacing:.015em}
.profile-btn{background:#292b23;color:#efdcbe;border-color:#55594b}
.empty-state{padding-bottom:172px}
.hero-logo{border-radius:14px;box-shadow:none;width:56px;height:56px;margin-bottom:24px}
.eyebrow{color:var(--accent);font-weight:720;letter-spacing:.17em}
.empty-state h1{font-family:Iowan Old Style,Baskerville,Georgia,serif;font-style:normal;font-weight:400;letter-spacing:-.059em;font-size:clamp(42px,5vw,65px);max-width:750px;line-height:1.08;margin-top:14px;margin-bottom:17px}
.empty-state>p{color:#a5aba2;max-width:580px;font-size:15px;line-height:1.85}
.prompt-grid{width:min(730px,100%);gap:10px;margin-top:37px}
.prompt-chip{border-radius:7px;background:#131713;color:#cbd0c8;min-height:74px;padding:16px 17px;line-height:1.6}
.prompt-chip:hover{border-color:#a88766;background:#1d211b;color:#fff}
.message.assistant .message-avatar{background:#24271f;color:#f1d6b9;border-color:#5d5a4c}
.message.user .message-avatar{background:#1b201c}
.message-content{color:#d3d8d0;line-height:1.8}.message-role{color:#90978c;letter-spacing:.04em}
.message-content code{background:#1c211a;border-color:#343a32}.message-content pre{background:#131813;border-color:#343a32}
.composer-wrap{background:linear-gradient(to top,#0c0e0d 58%,rgba(12,14,13,.92) 79%,transparent)}
.composer{background:#171b16;border-color:#4b5246;border-radius:12px;box-shadow:0 12px 35px rgba(0,0,0,.26)}
.composer:focus-within{border-color:#c5996c}
textarea{color:#f0f0e9}textarea::placeholder{color:#91998d}
.send-button{background:#e9e7de;color:#101310;border-radius:7px}.send-button:not(:disabled):hover{background:#e9c19c}
.composer-note{color:#818b7f;font-size:10px}
.modal{background:#161a15;border-color:#444c3f;border-radius:10px}.drawer{background:#131713;border-left-color:#444c3f}
.login-form input{border-radius:6px;background:#0c0e0d}.primary-btn{border-radius:6px;background:#eeeae1}.primary-btn:hover{background:#edc5a0}
.approval-card,.approval-inline{border-radius:7px}.approval-card{background:#191d18}
.ghost-btn,.icon-btn,.menu,.toast{border-radius:7px}
.approve-btn{background:#e8e5dd;border-radius:6px}.reject-btn{border-radius:6px}
@media(max-width:820px){.sidebar{box-shadow:20px 0 65px rgba(0,0,0,.55)}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Realtime companion — existing graphite and copper palette */
.companion-launch{height:42px;padding:0 14px;border:1px solid #736049;border-radius:7px;background:#25271f;color:#efc89f;font-size:12px;font-weight:750;cursor:pointer}
.companion-launch:hover{background:#373026}
.companion-panel[hidden]{display:none!important}
.companion-panel{position:fixed;inset:0;z-index:90;display:grid;place-items:center;background:rgba(6,8,7,.93);backdrop-filter:blur(15px);padding:16px}
.companion-card{width:min(610px,100%);max-height:95dvh;overflow:hidden;display:flex;flex-direction:column;align-items:center;padding:36px 28px;background:#141814;border:1px solid #454b3f}
.companion-card h2{font:400 clamp(40px,6vw,62px)/1.12 Iowan Old Style,Baskerville,Georgia,serif;letter-spacing:-.06em;margin:18px 0;color:#f0f0e9}
.companion-bars{height:154px;display:flex;align-items:center;justify-content:center;gap:10px}
.companion-bars i{width:5px;height:30px;border-radius:9px;background:#d6a573}
.companion-bars i:nth-child(2),.companion-bars i:nth-child(6){height:48px}.companion-bars i:nth-child(3),.companion-bars i:nth-child(5){height:65px}.companion-bars i:nth-child(4){height:84px}
.companion-panel[data-state="active"] .companion-bars i{animation:dz-wave 1s ease-in-out infinite alternate}
.companion-bars i:nth-child(even){animation-delay:-.48s!important}
@keyframes dz-wave{to{transform:scaleY(.35);opacity:.5}}
#companion-status{color:#b8bfb5;font-size:13px;text-align:center;margin:0 0 20px}
.companion-panel[data-state="error"] #companion-status{color:#e7aa9a}
.companion-transcript{width:100%;min-height:60px;max-height:215px;overflow:auto;border-block:1px solid #343a32;padding:12px 0;color:#cbd0c8;font-size:13px;line-height:1.7}
.companion-transcript p{margin:5px 0;overflow-wrap:anywhere}.companion-transcript strong{color:#e6b98d}
.companion-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:20px}
.companion-actions button{background:#22281f;border:1px solid #555f4c;color:#f0f0e9;padding:12px 18px;border-radius:7px;cursor:pointer}.companion-actions button:disabled{opacity:.4}
#companion-end{background:#eeeae1;color:#151715;border-color:#eeeae1;font-weight:750}
.companion-foot{font-size:11px;line-height:1.6;color:#8e978a;text-align:center;margin:20px 0 0}
@media(max-width:560px){.companion-card{padding:22px 17px}.companion-bars{height:120px}.companion-launch{padding:0 10px}}
@media(prefers-reduced-motion:reduce){.companion-bars i{animation:none!important}}


/* Independent speech controls: live voice in header, dictated text in composer. */
.head-actions .companion-launch{height:36px;padding:0 13px;display:inline-flex;align-items:center;gap:10px;justify-content:center;background:#20251e;border:1px solid #565d4f;color:#e7c7a1;font-size:12px;line-height:1;flex-shrink:0}
.head-actions .companion-launch:hover{background:#2a3026;border-color:#bd9267}
.live-voice-bars{height:16px;display:inline-flex;align-items:center;gap:3px}
.live-voice-bars i{display:block;width:2px;height:7px;background:var(--accent);border-radius:2px}
.live-voice-bars i:nth-child(2){height:14px}
.dictation-button{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;color:#aeb5a8;background:transparent;border:1px solid transparent;border-radius:7px;cursor:pointer}
.dictation-button:hover{color:#f0dfc6;background:#282d25}
.dictation-button.listening{color:#e9bd8e;background:#34291f;border-color:#bd8f61}
.dictation-button.listening svg{animation:dictation-breathe .9s ease-in-out infinite alternate}
@keyframes dictation-breathe{to{opacity:.55}}
.dictation-feedback[hidden]{display:none!important}
.dictation-feedback{pointer-events:auto;display:block;width:max-content;max-width:min(480px,100%);margin:0 auto 9px;padding:8px 12px;border:1px solid #66553f;border-radius:6px;background:#1c211a;color:#ecc49b;text-align:center;font-size:12px}
@media(max-width:520px){.head-actions .companion-launch{padding:0 10px;font-size:11px;gap:6px}.composer{gap:4px}.dictation-button{width:38px;height:42px;flex-basis:38px}.workspace-head .runtime-status #status-text{font-size:10px}}
@media(max-width:380px){.workspace-head .runtime-status #status-text{display:none}}
@media(prefers-reduced-motion:reduce){.dictation-button.listening svg{animation:none!important}}

.menu-account-link{display:block;padding:10px;color:#e3c4a0;text-decoration:none;font-size:12px;border-radius:7px}.menu-account-link:hover{background:#252a22}

/* A hidden native-only control must not be displayed by older Mesh/voice CSS. */
#mesh-switch[hidden], #companion-open[hidden] { display: none !important; }
