:root{
  --bg:#06070b;
  --text:#eaefff;
  --muted:#c9d1e6;
  --stroke:rgba(255,255,255,.08);
  --gold:#f5a84b;
  --cyan:#00b3ff;
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  background:
    radial-gradient(1200px 600px at 20% 0%, rgba(0,179,255,.10), transparent 60%),
    radial-gradient(900px 500px at 80% 20%, rgba(245,168,75,.10), transparent 55%),
    var(--bg);
  color:var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}
.shell{
  height:100%;
  display:flex;
  flex-direction:column;
  max-width:1100px;
  margin:0 auto;
  padding:18px;
  gap:12px;
}
.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border:1px solid var(--stroke);
  border-radius:14px;
  padding:12px 14px;
  backdrop-filter: blur(10px);
}
.brand{display:flex;align-items:center;gap:12px}
.mark{width:86px;height:86px;object-fit:contain;filter: drop-shadow(0 12px 26px rgba(0,0,0,.60));}
.brandtext .name{font-weight:800;letter-spacing:.22em;font-size:16px;}
.brandtext .sub{color:var(--muted);font-size:12px;margin-top:2px;}
.toggles{display:flex;align-items:center;gap:10px}
.toggle{
  display:flex;align-items:center;gap:8px;
  padding:8px 10px;
  border:1px solid var(--stroke);
  border-radius:12px;
  background: rgba(255,255,255,.03);
}
.toggle input{accent-color: var(--gold)}
.btn{
  border:1px solid var(--stroke);
  background: rgba(255,255,255,.04);
  color:var(--text);
  border-radius:12px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:650;
}
.btn.primary{
  background: linear-gradient(90deg, rgba(245,168,75,.18), rgba(245,168,75,.08));
  border-color: rgba(245,168,75,.35);
}
.btn:disabled{opacity:.6;cursor:not-allowed}
.panel{
  flex:1;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border:1px solid var(--stroke);
  border-radius:16px;
  overflow:hidden;
  display:flex;
}
.chat{padding:16px;width:100%;overflow:auto;}
.msg{display:flex;margin:10px 0}
.msg.user{justify-content:flex-end}
.msg.ghost{justify-content:flex-start}
.bubble{
  max-width:min(780px, 92%);
  border:1px solid var(--stroke);
  border-radius:16px;
  padding:12px 12px 10px;
  background: rgba(11,15,26,.65);
}
.msg.user .bubble{background: rgba(0,179,255,.08);border-color: rgba(0,179,255,.25);}
.role{font-size:11px;color:var(--muted);letter-spacing:.12em;text-transform:uppercase;margin-bottom:6px;}
.text{font-size:14.5px;line-height:1.45;white-space:pre-wrap}
.composer{
  display:flex;gap:10px;padding:12px;border-radius:14px;
  border:1px solid var(--stroke);background: rgba(255,255,255,.03);
  backdrop-filter: blur(10px);
}
.input{
  flex:1;border:1px solid var(--stroke);background: rgba(0,0,0,.25);
  color:var(--text);padding:12px 12px;border-radius:12px;outline:none;
}
.input::placeholder{color:rgba(201,209,230,.65)}
