/* ORBIT theme for PortalByte: tokens from the ORBIT UI kit (cool blue-gray, thin cyan linework, translucent
   panels). Loaded after style.css, so it only overrides tokens and adds rules. */
:root, :root:not([data-theme="light"]) {
  --bg: #08131d; --surface: rgba(9, 24, 36, 0.84); --surface-2: rgba(24, 54, 74, 0.82); --text: #e4f2fa;
  --muted: #92abba; --border: rgba(141, 196, 222, 0.26); --accent: #56cdf5; --accent-text: #04202c;
  --danger: #ff9a90; --ok: #69dbbc; --user: rgba(30, 104, 140, 0.6); --radius: 3px; --focus: #7edcff;
  --glow: rgba(86, 205, 245, 0.35); color-scheme: dark;  --byte-bg: #08131d; --byte-fg: #e4f2fa; --byte-muted: #92abba; --byte-head: #eaf7fd; --byte-link: #7edcff; --byte-border: rgba(141, 196, 222, 0.26);
  --byte-card: #0b1d2b; --byte-bar: #07141f; --byte-accent: #56cdf5; --byte-pill: rgba(86, 205, 245, 0.14); --byte-done: #69dbbc; --byte-warn: #f3c67b;
  --byte-danger: #ff9a90; --byte-on-accent: #04202c; --byte-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); --byte-focus: 0 0 0 2px #56cdf5;
}
:root.motion-off *, :root.motion-off *::before, :root.motion-off *::after {
  animation: none !important;
  scroll-behavior: auto !important;
  transition: none !important;
}
:root[data-theme="light"] {
  --bg: #dbe9f1; --surface: rgba(247, 251, 253, 0.86); --surface-2: rgba(214, 232, 242, 0.9); --text: #0e2230;
  --muted: #4b6575; --border: rgba(30, 90, 120, 0.3); --accent: #0b6f95; --accent-text: #ffffff;
  --danger: #a3261d; --ok: #17704f; --user: rgba(170, 214, 235, 0.8); --radius: 3px; --focus: #0b6f95;
  --glow: rgba(11, 111, 149, 0.25); color-scheme: light;  --byte-bg: #dbe9f1; --byte-fg: #0e2230; --byte-muted: #4b6575; --byte-head: #0e2230; --byte-link: #0b6f95; --byte-border: rgba(30, 90, 120, 0.3);
  --byte-card: #f4f9fc; --byte-bar: #e3eef4; --byte-accent: #0b6f95; --byte-pill: #d6e6ee; --byte-done: #17704f; --byte-warn: #8a5300;
  --byte-danger: #a3261d; --byte-on-accent: #ffffff; --byte-shadow: 0 10px 30px rgba(14, 34, 48, 0.2); --byte-focus: 0 0 0 2px #0b6f95;
}
html, body { background: var(--bg); font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
.space { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: 0; pointer-events: none; }
body::before { content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(0deg, var(--bg) 0%, transparent 55%), linear-gradient(90deg, rgba(4, 12, 20, 0.5), rgba(4, 14, 23, 0.3)); }
:root[data-theme="light"] body::before { background: linear-gradient(0deg, var(--bg) 0%, transparent 55%); }
.app, .login { position: relative; z-index: 1; }

/* ORBIT surfaces: hairline border, cyan corner tick, soft blur */
.chat, .panel, .rail, .login-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); position: relative;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.chat::before, .panel::before, .rail::before, .login-card::before { content: ""; position: absolute; top: -1px; left: -1px; width: 28px; border-top: 2px solid var(--accent); z-index: 2; pointer-events: none; }
.top, .composer, .miniplayer { background: rgba(6, 17, 27, 0.82); border-color: var(--border); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
:root[data-theme="light"] .top, :root[data-theme="light"] .composer, :root[data-theme="light"] .miniplayer { background: rgba(240, 247, 251, 0.88); }
.top h1 { font-size: 1rem; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 600; }
.panel-head h2 { letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; color: var(--muted); }
button { border-radius: var(--radius); border-color: var(--border); background: var(--surface-2); }
button:hover:not(:disabled) { filter: brightness(1.15); }
button.primary { background: linear-gradient(105deg, #1676a1, #269dcc); border-color: #69d6f5; color: #fff; box-shadow: inset 0 0 12px rgba(126, 226, 255, 0.25); }
:root[data-theme="light"] button.primary { background: var(--accent); border-color: var(--accent); }
.btn { border-radius: var(--radius); }
.login-card input, .composer textarea { background: rgba(4, 14, 22, 0.7); border-radius: var(--radius); }
:root[data-theme="light"] .login-card input, :root[data-theme="light"] .composer textarea { background: rgba(255, 255, 255, 0.9); }
.msg { border-radius: var(--radius); }
.msg:not(.user) { border: 1px solid var(--border); background: rgba(14, 36, 52, 0.55); }
:root[data-theme="light"] .msg:not(.user) { background: rgba(255, 255, 255, 0.6); }

/* narrow chat pane (phone cover screen, unfolded split): the textarea gets its own full-width row */
@container chat (max-width: 30rem) {
  .composer { grid-template-columns: minmax(0, 1fr); }
  .composer textarea { grid-column: 1; }
  .composer-buttons { grid-column: 1; justify-content: flex-end; }
  .voice-group { margin-inline-end: auto; }
}
.panel-head { gap: 0.5rem; }
