:root { color-scheme: dark; --bg: #06090e; --ink: #ecf5ff; --mute: #93a9c2; --line: #1f2a38; --ice: #6fd8ff; --amber: #ffbf5a; --err: #ff7a93; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 14px/1.45 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif; }
.app { height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: radial-gradient(ellipse at 50% 45%, #0f1d2c 0%, var(--bg) 70%); }
.topbar { display: flex; align-items: center; gap: 16px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.brand { font: 700 16px 'Oxanium', system-ui, sans-serif; letter-spacing: .18em; text-transform: uppercase; }
.status { flex: 1; color: var(--mute); }
.app[data-phase="error"] .status { color: var(--err); }
.tools { display: flex; gap: 8px; }
.tools button, .back { background: transparent; color: #c4d4e6; border: 1px solid #2a3a4e; border-radius: 6px; padding: 6px 12px; cursor: pointer; font: inherit; }
.tools button:hover:not(:disabled) { border-color: var(--ice); color: #fff; }
.tools button:disabled { opacity: .4; cursor: default; }
.tools button:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
.stage { position: relative; overflow: hidden; }
/* el orbe se desplaza a la izquierda en el modo enfocado */
.orbwrap { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); transition: left .5s ease, top .5s ease, transform .5s ease; }
.app[data-mode="focus"] .orbwrap { left: 23%; transform: translate(-50%, -50%) scale(.82); }
.bar { display: flex; align-items: center; gap: 16px; padding: 10px 20px; border-top: 1px solid var(--line); min-height: 52px; }
.transcript { flex: 1; font-size: 15px; }
.transcript .count { color: var(--amber); margin-left: 8px; font-family: 'JetBrains Mono', monospace; }
.hint { color: var(--mute); font-size: 12px; }
@media (prefers-reduced-motion: reduce) { .orbwrap { transition: none; } }
.app[data-mode="focus"] .radial { display: none; } /* en modo enfocado solo el orbe y el chat */

/* barras de scroll finas y transparentes, a juego con el tema */
* { scrollbar-width: thin; scrollbar-color: rgba(111,216,255,.28) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(111,216,255,.22); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(111,216,255,.5); }
::-webkit-scrollbar-corner { background: transparent; }

/* boton y panel de nueva sesion */
.tools .accent { border-color: rgba(111,216,255,.55); color: #dff4ff; background: rgba(60,150,200,.16); }
.tools .accent:hover { background: rgba(111,216,255,.26); }
.np-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(2,5,9,.55); }
.newpanel { position: fixed; z-index: 91; top: 64px; right: 20px; width: min(420px, calc(100vw - 40px)); max-height: calc(100vh - 100px); overflow: auto; padding: 16px 18px; border: 1px solid rgba(111,216,255,.45); border-radius: 12px; background: #08101b; box-shadow: 0 0 34px rgba(80,200,255,.22); }
.newpanel h3 { margin: 0 0 4px; font: 600 14px 'Oxanium', system-ui, sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #bfeaff; }
.np-help { margin: 0 0 10px; color: #93a9c2; font: 13px 'Segoe UI', system-ui, sans-serif; }
.np-list { display: grid; gap: 6px; margin-bottom: 12px; color: #93a9c2; font: 13px 'Segoe UI', system-ui, sans-serif; }
.np-dir { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n c" "p p"; gap: 2px 10px; text-align: left; padding: 8px 12px; border: 1px solid #1f2a38; border-radius: 8px; background: rgba(14,22,34,.82); color: #ecf5ff; cursor: pointer; }
.np-dir:hover { border-color: #6fd8ff; }
.np-dir b { grid-area: n; font-weight: 600; }
.np-dir i { grid-area: c; font-style: normal; font-size: 12px; color: #7a8da0; }
.np-dir small { grid-area: p; font-size: 11.5px; color: #6f8296; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.np-custom { display: flex; gap: 8px; }
.np-custom input { flex: 1; min-width: 0; padding: 7px 10px; border: 1px solid #1f2a38; border-radius: 8px; background: #050a12; color: #ecf5ff; font: 13px Consolas, monospace; }
.np-custom button { padding: 7px 14px; border: 1px solid rgba(111,216,255,.55); border-radius: 8px; background: rgba(60,150,200,.2); color: #dff4ff; cursor: pointer; }
.np-dir:focus-visible, .np-custom input:focus-visible, .np-custom button:focus-visible { outline: 2px solid #6fd8ff; outline-offset: 2px; }
.np-err { min-height: 1.2em; margin: 8px 0 0; color: #ff9d8a; font: 12.5px 'Segoe UI', system-ui, sans-serif; }

.tools #btnMusic.on { border-color: rgba(111,216,255,.55); color: #dff4ff; }

.app[data-mode="radial"] .orbwrap { cursor: pointer; }

/* boton de microfono (tablet sin teclado) */
.mic { flex: none; min-height: 48px; padding: 10px 26px; border: 1px solid rgba(111,216,255,.6); border-radius: 999px; background: rgba(60,150,200,.18); color: #dff4ff; font: 600 15px 'Segoe UI', system-ui, sans-serif; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }
.mic:hover { background: rgba(111,216,255,.26); }
.mic.on { background: rgba(255,120,90,.35); border-color: #ff9d8a; box-shadow: 0 0 28px rgba(255,140,110,.5); }
.mic:focus-visible { outline: 2px solid #6fd8ff; outline-offset: 3px; }
.bar { display: flex; align-items: center; gap: 14px; }
