/* abuai — hologram command center */
:root {
  --bg: #070B14;
  --bg-2: #0A1424;
  --glass: rgba(34, 211, 238, 0.045);
  --glass-strong: rgba(34, 211, 238, 0.085);
  --glass-dark: rgba(6, 14, 28, 0.72);
  --edge: rgba(103, 232, 249, 0.32);
  --edge-strong: rgba(103, 232, 249, 0.6);
  --line: rgba(103, 232, 249, 0.14);
  --text: #E6F6FF;
  --muted: #8FA9C4;
  --cyan: #22D3EE;
  --cyan-hi: #67E8F9;
  --violet: #7C5CFF;
  --ok: #34D399;
  --warn: #FBBF24;
  --err: #F87171;
  --glow: 0 0 0 1px rgba(103, 232, 249, 0.08), 0 0 24px rgba(34, 211, 238, 0.12), inset 0 0 32px rgba(34, 211, 238, 0.04);
  --radius: 14px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background:
    radial-gradient(1100px 620px at 50% -12%, rgba(34, 211, 238, 0.16), transparent 62%),
    radial-gradient(900px 520px at 100% 0%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(800px 600px at 0% 100%, rgba(34, 211, 238, 0.08), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}
/* faint HUD grid + scan lines across the whole site */
.hud-backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(103, 232, 249, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(103, 232, 249, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 80%);
}
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  background: repeating-linear-gradient(0deg, rgba(103, 232, 249, 0.018) 0 1px, transparent 1px 3px);
}
em, i, cite, address, dfn, var, q, ::placeholder { font-style: normal; }
img, svg, canvas { max-width: 100%; }
a { color: var(--cyan-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #A5F3FC; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5rem; letter-spacing: 0.01em; }
h1 { font-size: clamp(1.5rem, 2.5vw + 1rem, 2rem); letter-spacing: 0.04em; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.75rem; }
code, .mono { font-family: var(--mono); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--cyan-hi); outline-offset: 3px; border-radius: 6px; box-shadow: 0 0 14px rgba(103, 232, 249, 0.6); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 60; background: var(--cyan); color: #04121A; padding: 0.6rem 1rem; border-radius: var(--radius-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 1rem; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 1.25rem 1rem 2rem; flex: 1; }
main:focus { outline: none; }
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  max-width: 1280px; width: 100%; margin: 0 auto; padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.topbar::after { content: ""; position: absolute; left: 1rem; bottom: -1px; width: 120px; height: 1px; background: linear-gradient(90deg, var(--cyan-hi), transparent); }
.brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: 0.22em; text-transform: uppercase; min-height: 44px; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 6px rgba(34, 211, 238, 0.55)); }
.nav { display: flex; align-items: center; gap: 0.25rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.55rem 0.8rem; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; border: 1px solid transparent;
}
.nav a:hover { color: var(--text); background: var(--glass); border-color: var(--line); }
.nav a[aria-current="page"] { color: var(--cyan-hi); background: var(--glass-strong); border-color: var(--edge); box-shadow: 0 0 16px rgba(34, 211, 238, 0.18); }
.nav-logout { margin: 0 0 0 0.25rem; }
.footer { text-align: center; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; padding: 1.5rem 1rem 2rem; border-top: 1px solid var(--line); }
.footer p { margin: 0; }

/* ---------- glass panels with HUD corner brackets ---------- */
.panel {
  position: relative;
  background: linear-gradient(180deg, rgba(34, 211, 238, 0.07), rgba(34, 211, 238, 0.025) 40%, rgba(124, 92, 255, 0.03));
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--glow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.panel::before, .panel::after {
  content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none;
  border-color: var(--cyan-hi); border-style: solid; filter: drop-shadow(0 0 4px rgba(103, 232, 249, 0.8));
}
.panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: var(--radius); }
.panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: var(--radius); }
.panel-title {
  display: flex; align-items: center; gap: 0.55rem;
  font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.24em; color: var(--cyan-hi); margin-bottom: 1rem; font-weight: 800;
}
.panel-title::before { content: ""; width: 18px; height: 2px; background: var(--cyan-hi); box-shadow: 0 0 8px var(--cyan); }
.panel-foot { margin: 0.9rem 0 0; }
.eyebrow { color: var(--cyan-hi); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 800; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.label { font-weight: 600; margin-bottom: 0.25rem; }
.section { margin-top: 1.75rem; }
.section-head, .page-head { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
.section-head .panel-title { margin-bottom: 0; }
.page-head h1 { margin: 0; text-transform: uppercase; }
.link-strong { font-weight: 800; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.65rem 1.2rem; border-radius: 10px; border: 1px solid transparent;
  font: inherit; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.86rem;
  cursor: pointer; text-decoration: none; line-height: 1.2;
  transition: background-color .15s, border-color .15s, transform .05s, opacity .15s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.btn-primary { background: linear-gradient(135deg, var(--cyan-hi), var(--cyan) 45%, var(--violet)); color: #03111A; box-shadow: 0 0 22px rgba(34, 211, 238, 0.35); }
.btn-primary:hover { color: #03111A; box-shadow: 0 0 30px rgba(103, 232, 249, 0.55); }
.btn-ghost { background: var(--glass); color: var(--text); border-color: var(--edge); }
.btn-ghost:hover { background: var(--glass-strong); color: var(--text); box-shadow: 0 0 16px rgba(34, 211, 238, 0.2); }
.btn-sm { min-height: 44px; padding: 0.45rem 0.85rem; font-size: 0.78rem; }
.btn-block { width: 100%; }
.btn[aria-busy="true"]::before { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.form { display: grid; gap: 0.9rem; }
.form-inline { margin-top: 0.75rem; }
.field { display: grid; gap: 0.35rem; }
.field > span { font-weight: 700; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text);
  background: rgba(4, 12, 24, 0.75); border: 1px solid var(--edge); border-radius: 10px;
  padding: 0.7rem 0.85rem; min-height: 46px; box-shadow: inset 0 0 18px rgba(34, 211, 238, 0.05);
  transition: border-color .15s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 110px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--cyan-hi) 50%), linear-gradient(135deg, var(--cyan-hi) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 2.5rem; }
select option { background: var(--bg-2); color: var(--text); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--cyan-hi); outline: none; box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.22), 0 0 22px rgba(34, 211, 238, 0.3), inset 0 0 18px rgba(34, 211, 238, 0.08); }
input[aria-invalid="true"] { border-color: var(--err); }
.hint { color: var(--muted); font-size: 0.82rem; }
.hint-error { color: var(--err); }
.form-row { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; }
.form-result { margin: 0; font-size: 0.92rem; min-height: 1.4em; flex: 1 1 200px; }
.form-result.is-ok { color: var(--ok); }
.form-result.is-warn { color: var(--warn); }
.form-result.is-error { color: var(--err); }

/* ---------- alerts ---------- */
.alert { border-radius: 10px; padding: 0.75rem 0.95rem; border: 1px solid; font-size: 0.95rem; }
.alert-error { color: #FECACA; background: rgba(248, 113, 113, 0.08); border-color: rgba(248, 113, 113, 0.45); box-shadow: 0 0 18px rgba(248, 113, 113, 0.12); }
.alert-warn { color: #FDE68A; background: rgba(251, 191, 36, 0.07); border-color: rgba(251, 191, 36, 0.45); box-shadow: 0 0 18px rgba(251, 191, 36, 0.1); }
.alert-ok { color: #A7F3D0; background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.45); }
.banner { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem; }
.banner[hidden] { display: none; }
.dot { display: inline-block; width: 0.6rem; height: 0.6rem; border-radius: 50%; margin-right: 0.45rem; flex: none; }
.dot-ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot-warn { background: var(--warn); box-shadow: 0 0 10px var(--warn); }

/* ---------- auth pages ---------- */
.auth-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 1.5rem; }
.auth-mark { display: flex; flex-direction: column; align-items: center; margin-bottom: 1rem; }
.auth-mark .core-mark { width: 92px; height: 92px; filter: drop-shadow(0 0 14px rgba(34, 211, 238, 0.6)); }
.auth-mark-label { margin: 0.4rem 0 0; font-size: 0.72rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--cyan-hi); font-weight: 800; }
.mark-ring { transform-box: view-box; transform-origin: 32px 32px; }
.mark-ring-a { animation: rot 14s linear infinite; }
.mark-ring-b { animation: rot 9s linear infinite reverse; }
.auth-card { width: 100%; max-width: 440px; padding: 1.75rem; }
.auth-card h1 { text-transform: uppercase; }
.auth-card-wide { max-width: 720px; }
.enroll { display: grid; gap: 1.25rem; align-items: start; }
.qr-box { background: #fff; border-radius: 12px; padding: 0.5rem; width: 100%; max-width: 280px; justify-self: center; box-shadow: 0 0 0 1px var(--edge-strong), 0 0 30px rgba(34, 211, 238, 0.35); }
.qr-box .qr { display: block; width: 100%; height: auto; }
.secret-text { font-family: var(--mono); font-size: 1.05rem; letter-spacing: 0.06em; overflow-wrap: anywhere; background: rgba(4, 12, 24, 0.75); border: 1px dashed var(--edge); border-radius: 10px; padding: 0.65rem 0.8rem; user-select: all; color: var(--cyan-hi); }
.recovery-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; padding: 0; margin: 1rem 0; list-style: none; }
.recovery-codes li { background: rgba(4, 12, 24, 0.75); border: 1px solid var(--edge); border-radius: 10px; padding: 0.6rem; text-align: center; }
.recovery-codes code { font-size: 1rem; letter-spacing: 0.06em; user-select: all; color: var(--cyan-hi); }
.error-card { text-align: center; max-width: 520px; width: 100%; padding: 2.25rem 1.5rem; }
.error-code { font-size: 4.5rem; font-weight: 800; line-height: 1; margin-bottom: 0.75rem; letter-spacing: 0.08em; background: linear-gradient(135deg, var(--cyan-hi), var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 18px rgba(34, 211, 238, 0.45)); }

/* ================= DASHBOARD ================= */
.hud-grid {
  display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "core" "command" "feed" "desk" "link" "voice" "analytics";
}
.hud-grid > * { margin-bottom: 0; min-width: 0; }
.core-panel { grid-area: core; }
.command-panel { grid-area: command; }
.desk-panel { grid-area: desk; }
.holo-voice { grid-area: voice; }
.holo-link { grid-area: link; }
.holo-feed { grid-area: feed; }
.holo-analytics { grid-area: analytics; }

/* ---------- Jarvis core ---------- */
.core-panel { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.5rem 0 0.25rem; isolation: isolate; }
.core-particles { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.core-stage { position: relative; width: min(100%, 400px); aspect-ratio: 1; }
.core-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.core-svg .ring, .core-svg .ring-boost, .core-svg .core-glow, .core-svg .core-pulse-ring { transform-box: view-box; transform-origin: 200px 200px; }
.core-svg .core-head, .core-svg .core-eye-glow, .core-svg .core-eye { transform-box: fill-box; transform-origin: center; }
.ring-1 { animation: rot 60s linear infinite; }
.ring-2 { animation: rot 42s linear infinite reverse; }
.ring-3 { animation: rot 26s linear infinite; }
.ring-4 { animation: rot 34s linear infinite reverse; }
.ring-boost { animation: rot 9s linear infinite; animation-play-state: paused; }
.ring-2 .ring-boost, .ring-4 .ring-boost { animation-direction: reverse; animation-duration: 7s; }
.core-glow { animation: breathe 5s ease-in-out infinite; opacity: 0.7; }
.core-eye-glow { animation: eye-glow 4s ease-in-out infinite; }
.core-head { animation: hover 6s ease-in-out infinite; }
.core-scan { animation: scan 4.5s ease-in-out infinite; }
.core-pulse-ring { opacity: 0; }
.core-pulse-ring.is-pulsing { animation: celebrate 1.6s ease-out 1; }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: 0.55; transform: scale(0.97); } 50% { opacity: 0.85; transform: scale(1.03); } }
@keyframes eye-glow { 0%, 100% { opacity: 0.55; } 50% { opacity: 0.95; } }
@keyframes hover { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes scan { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .5; } 85% { opacity: .5; } 100% { transform: translateY(160px); opacity: 0; } }
@keyframes celebrate { 0% { opacity: 0.95; transform: scale(1); } 100% { opacity: 0; transform: scale(1.65); } }

/* state: working — faster rings (boost layer runs), brighter glow */
.core-state-working .ring-boost, .core-state-voice .ring-boost { animation-play-state: running; }
.core-state-working .core-glow { animation-duration: 2.2s; opacity: 1; }
.core-state-working .core-eye-glow { animation-duration: 1.4s; }
.core-state-voice .core-glow { animation-duration: 1.6s; opacity: 1; }
.core-state-voice .core-eye-glow { animation-duration: 0.9s; }
.core-state-idle .core-stage { filter: saturate(0.85); }

.core-title h2 { font-size: clamp(1.8rem, 3vw + 1rem, 2.6rem); font-weight: 900; letter-spacing: 0.42em; margin: -0.5rem 0 0.15rem; padding-left: 0.42em; color: #fff; text-shadow: 0 0 22px rgba(103, 232, 249, 0.55); }
.core-tagline { text-wrap: balance; max-width: 26rem; padding: 0 1rem; font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--cyan-hi); font-weight: 700; margin-bottom: 0.6rem; }
.waveform { width: min(100%, 460px); height: 56px; display: block; }
.talk-dock { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 0.5rem; }
.chat-bubble { width: 44px; height: 38px; opacity: 0.75; flex: none; }
.talk-btn {
  display: inline-flex; flex-direction: column; align-items: center; gap: 0.5rem;
  background: none; border: 0; padding: 0.25rem; color: var(--text); font: inherit; cursor: pointer; min-width: 160px;
  border-radius: 14px;
}
.talk-orb {
  position: relative; display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(103, 232, 249, 0.45), rgba(34, 211, 238, 0.14) 55%, rgba(4, 12, 24, 0.95));
  border: 1px solid var(--edge-strong);
  box-shadow: 0 0 0 6px rgba(34, 211, 238, 0.07), 0 0 34px rgba(34, 211, 238, 0.35), inset 0 0 18px rgba(103, 232, 249, 0.25);
  transition: transform .15s, box-shadow .2s;
}
.talk-btn:hover:not([disabled]) .talk-orb { transform: scale(1.05); box-shadow: 0 0 0 8px rgba(34, 211, 238, 0.1), 0 0 44px rgba(34, 211, 238, 0.5), inset 0 0 18px rgba(103, 232, 249, 0.3); }
.talk-btn:focus-visible { box-shadow: none; }
.talk-btn:focus-visible .talk-orb { outline: 3px solid var(--cyan-hi); outline-offset: 5px; }
.talk-icon { width: 34px; height: 34px; color: #E6FBFF; filter: drop-shadow(0 0 6px rgba(103, 232, 249, 0.9)); }
.talk-label { text-wrap: balance; font-weight: 800; font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; max-width: 220px; line-height: 1.3; }
.talk-ring { position: absolute; inset: -7px; border-radius: 50%; border: 2px solid transparent; pointer-events: none; }
.talk-btn[data-state="unconfigured"] { cursor: not-allowed; opacity: 0.65; }
.talk-btn[data-state="unconfigured"] .talk-orb { filter: grayscale(0.8); box-shadow: none; }
.talk-btn[data-state="connecting"], .talk-btn[data-state="submitting"] { cursor: progress; }
.talk-btn[data-state="connecting"] .talk-ring, .talk-btn[data-state="submitting"] .talk-ring { border-color: var(--cyan-hi); border-right-color: transparent; animation: spin 1s linear infinite; }
.talk-btn[data-state="live"] .talk-orb { background: radial-gradient(circle at 50% 38%, rgba(52, 211, 153, 0.5), rgba(34, 211, 238, 0.18) 55%, rgba(4, 12, 24, 0.95)); border-color: var(--ok); box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.1), 0 0 40px rgba(52, 211, 153, 0.45); }
.talk-btn[data-state="live"] .talk-ring { border-color: rgba(52, 211, 153, 0.7); animation: ring-out 1.6s ease-out infinite; }
.talk-btn[data-state="live"][data-mode="speaking"] .talk-ring { border-color: rgba(124, 92, 255, 0.85); }
.talk-btn[data-state="live"] .talk-label { color: var(--ok); }
@keyframes ring-out { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(1.3); opacity: 0; } }
.voice-status { margin: 0.75rem 1rem 0.25rem; color: var(--muted); max-width: 30rem; min-height: 3em; font-size: 0.92rem; }
.voice-status.is-ok { color: var(--ok); }
.voice-heard { display: grid; gap: 0.3rem; }
.voice-heard-text { color: var(--text); font-weight: 600; overflow-wrap: anywhere; white-space: pre-line; max-height: 9em; overflow-y: auto; }
.voice-heard-note { color: var(--ok); font-size: 0.85rem; }
.voice-status.is-warn { color: var(--warn); }
.voice-status.is-error { color: var(--err); }

/* ---------- the desk (robot team) ---------- */
.desk-panel { padding-bottom: 1rem; }
.desk-holo { display: inline-flex; align-items: center; gap: 0.5rem; margin: 0; font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan-hi); font-weight: 800; padding: 0.3rem 0.7rem; border: 1px solid var(--edge); border-radius: 999px; background: var(--glass); }
.desk-holo-ring { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--cyan-hi); border-right-color: transparent; animation: spin 3s linear infinite; }
.boardroom {
  position: relative; border-radius: 12px; overflow: hidden; padding: 0.75rem 0.5rem 0.25rem;
  background:
    repeating-linear-gradient(90deg, transparent 0 119px, rgba(103, 232, 249, 0.07) 119px 120px),
    linear-gradient(180deg, rgba(10, 30, 56, 0.6), rgba(4, 10, 20, 0.2) 70%);
  border: 1px solid var(--line);
}
.skyline { position: absolute; left: 0; right: 0; top: 30px; height: 120px; pointer-events: none; }
.skyline svg { width: 100%; height: 100%; display: block; }
.seats { position: relative; list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.emp-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.emp-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
.seat-stage { position: relative; height: 190px; }
.seat-beam {
  position: absolute; top: -0.75rem; left: 50%; width: 92px; height: calc(100% - 30px); margin-left: -46px; z-index: 0;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.55), rgba(34, 211, 238, 0.12) 70%, transparent);
  clip-path: polygon(44% 0, 56% 0, 100% 100%, 0 100%);
  opacity: 0; transform: scaleY(0.4); transform-origin: top center;
  transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1);
}
.seat-spot {
  position: absolute; left: 50%; bottom: 38px; width: 140px; height: 34px; margin-left: -70px; z-index: 1;
  background: radial-gradient(ellipse at center, rgba(103, 232, 249, 0.55), rgba(34, 211, 238, 0.12) 55%, transparent 72%);
  opacity: 0; transform: scale(0.6); transition: opacity .6s, transform .8s;
}
.robot-wrap {
  position: absolute; left: 50%; bottom: 34px; width: 112px; margin-left: -56px; z-index: 1;
  transform: translateY(-10px) scale(0.9); transform-origin: bottom center;
  transition: transform .9s cubic-bezier(.2, .8, .2, 1);
}
.robot { display: block; width: 100%; height: auto; overflow: visible; }
.robot, .robot .rb-head, .robot .rb-hand, .robot .rb-core, .robot .rb-core-glow, .robot .rb-arm { transform-box: fill-box; transform-origin: center; }
.robot { transform-origin: 50% 100%; animation: sway 7s ease-in-out infinite; }
.robot .rb-eye { opacity: 0.5; transition: opacity .4s; }
.robot .rb-light { opacity: 0.6; }
.seat-desk {
  position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: 2;
  background: linear-gradient(180deg, rgba(103, 232, 249, 0.2), rgba(34, 211, 238, 0.07) 30%, rgba(6, 18, 34, 0.55));
  border-top: 1px solid var(--cyan-hi); box-shadow: 0 -2px 18px rgba(34, 211, 238, 0.25);
  border-radius: 8px;
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  display: flex; align-items: flex-end; justify-content: center; padding-bottom: 4px;
}
.desk-screen { width: min(78%, 150px); height: auto; opacity: 0; transform: translateY(8px) scale(0.9); transition: opacity .6s .3s, transform .6s .3s; filter: drop-shadow(0 0 6px rgba(103, 232, 249, 0.6)); }
.desk-arc, .desk-bar { transition: stroke-dashoffset .6s, width .6s; }
.seat-badge { position: absolute; top: 4px; right: 10%; width: 28px; height: 28px; z-index: 3; opacity: 0; transform: scale(0.5); transition: opacity .4s, transform .4s; filter: drop-shadow(0 0 8px rgba(52, 211, 153, 0.8)); }
.seat-badge svg { width: 100%; height: 100%; display: block; }

/* alert: queued / sent — eyes brighten, head lifts */
.emp-card[data-phase="alert"] .robot-wrap { transform: translateY(-16px) scale(0.92); }
.emp-card[data-phase="alert"] .rb-eye, .emp-card[data-phase="alert"] .rb-light { opacity: 1; }
.emp-card[data-phase="alert"] .rb-head { animation: alert-lift 2.4s ease-in-out infinite; }

/* working: comes to the desk and starts work */
.emp-card[data-phase="working"] .robot-wrap { transform: translateY(14px) scale(1.12); }
.emp-card[data-phase="working"] .robot { animation: none; }
.emp-card[data-phase="working"] .seat-beam { opacity: 1; transform: scaleY(1); }
.emp-card[data-phase="working"] .seat-spot { opacity: 1; transform: scale(1); }
.emp-card[data-phase="working"] .desk-screen { opacity: 1; transform: none; }
.emp-card[data-phase="working"] .rb-eye, .emp-card[data-phase="working"] .rb-light { opacity: 1; }
.emp-card[data-phase="working"] .rb-head { animation: head-scan 3.2s ease-in-out infinite; }
.emp-card[data-phase="working"] .rb-arm-l .rb-hand { animation: type .32s ease-in-out infinite alternate; }
.emp-card[data-phase="working"] .rb-arm-r .rb-hand { animation: type .32s ease-in-out .16s infinite alternate; }
.emp-card[data-phase="working"] .rb-core { animation: core-pulse 1s ease-in-out infinite; }
.emp-card[data-phase="working"] .rb-core-glow { animation: core-glow 1s ease-in-out infinite; }
.emp-card[data-phase="working"] .desk-keys { animation: keys .5s steps(2) infinite; }
.emp-card[data-phase="working"] .emp-info { border-color: var(--edge-strong); box-shadow: 0 0 22px rgba(34, 211, 238, 0.2); }

/* done: badge glows, robot back in its seat */
.emp-card[data-phase="done"] .seat-badge { opacity: 1; transform: scale(1); }
.emp-card.just-done .seat-badge { animation: badge-pop 1.4s ease-out 1; }
.emp-card.just-done .seat-spot { animation: done-flash 1.4s ease-out 1; }

@keyframes sway { 0%, 100% { transform: rotate(-1deg); } 50% { transform: rotate(1deg) translateY(-1px); } }
@keyframes alert-lift { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(-4px) rotate(-3deg); } }
@keyframes head-scan { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg) translateY(1px); } }
@keyframes type { from { transform: translateY(0); } to { transform: translateY(-5px); } }
@keyframes core-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@keyframes core-glow { 0%, 100% { opacity: 0.25; transform: scale(1); } 50% { opacity: 0.7; transform: scale(1.4); } }
@keyframes keys { 0% { opacity: 0.45; } 100% { opacity: 1; } }
@keyframes badge-pop { 0% { transform: scale(0.4); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }
@keyframes done-flash { 0% { opacity: 1; transform: scale(1.4); } 100% { opacity: 0; transform: scale(0.8); } }

.emp-info { margin-top: 0.5rem; padding: 0.7rem 0.75rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(4, 12, 24, 0.55); transition: border-color .4s, box-shadow .4s; flex: 1; }
.emp-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.3rem; }
.emp-name { margin: 0; font-size: 0.95rem; letter-spacing: 0.06em; overflow-wrap: anywhere; min-width: 0; }
.emp-task { margin: 0 0 0.15rem; font-size: 0.86rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.emp-ref, .task-ref { font-family: var(--mono); font-size: 0.8rem; color: var(--cyan-hi); font-weight: 700; }
.emp-task-status { margin: 0 0 0.45rem; min-height: 1.3em; font-size: 0.8rem; }

.pill { flex: none; font-size: 0.68rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; padding: 0.2rem 0.55rem; border-radius: 999px; border: 1px solid; }
.pill-idle { color: var(--muted); border-color: rgba(143, 169, 196, 0.4); background: rgba(143, 169, 196, 0.07); }
.pill-working { color: var(--cyan-hi); border-color: var(--edge-strong); background: rgba(34, 211, 238, 0.12); box-shadow: 0 0 12px rgba(34, 211, 238, 0.35); }
.pill-done { color: var(--ok); border-color: rgba(52, 211, 153, 0.55); background: rgba(52, 211, 153, 0.1); box-shadow: 0 0 12px rgba(52, 211, 153, 0.25); }

.progress { width: 100%; height: 6px; border: 0; border-radius: 999px; background: rgba(103, 232, 249, 0.12); overflow: hidden; appearance: none; vertical-align: middle; }
.progress::-webkit-progress-bar { background: rgba(103, 232, 249, 0.12); border-radius: 999px; }
.progress::-webkit-progress-value { background: linear-gradient(90deg, var(--cyan-hi), var(--violet)); border-radius: 999px; box-shadow: 0 0 8px var(--cyan); }
.progress::-moz-progress-bar { background: linear-gradient(90deg, var(--cyan-hi), var(--violet)); border-radius: 999px; }
.meta-grid .progress { width: 120px; margin-right: 0.4rem; }

/* ---------- voice commands panel ---------- */
.voice-live { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 800; color: var(--muted); }
.voice-live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.voice-live[data-state="live"] { color: var(--ok); }
.voice-live[data-state="live"] .voice-live-dot { background: var(--ok); box-shadow: 0 0 10px var(--ok); animation: blink-dot 1s ease-in-out infinite; }
.voice-live[data-state="idle"] .voice-live-dot { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.voice-live[data-state="connecting"], .voice-live[data-state="submitting"], .voice-live[data-state="ending"] { color: var(--cyan-hi); }
@keyframes blink-dot { 50% { opacity: 0.35; } }

.task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.task-link {
  display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "icon ref title status" "icon meta meta meta";
  gap: 0.15rem 0.6rem; align-items: center; padding: 0.65rem 0.8rem; min-height: 56px;
  background: rgba(4, 12, 24, 0.5); border: 1px solid var(--line); border-radius: 10px; color: var(--text); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.task-link:hover { border-color: var(--edge-strong); color: var(--text); box-shadow: 0 0 16px rgba(34, 211, 238, 0.15); }
.task-icon { grid-area: icon; width: 24px; height: 24px; display: grid; place-items: center; border: 0; background: none; padding: 0; }
.task-link .task-ref { grid-area: ref; }
.task-link .task-title { grid-area: title; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.92rem; }
.task-link .task-meta { grid-area: meta; font-size: 0.78rem; }
.task-link .status { grid-area: status; }
.st-icon { width: 22px; height: 22px; display: block; }
.st-spin { transform-box: view-box; transform-origin: 12px 12px; animation: spin 1s linear infinite; }
.task-icon.status-done { color: var(--ok); }
.task-icon.status-working { color: var(--cyan-hi); }
.task-icon.status-queued { color: var(--warn); }
.task-icon.status-sent { color: #A5B4FC; }
.task-icon.status-failed { color: var(--err); }
.status { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; padding: 0.18rem 0.55rem; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.task-icon.status-done, .task-icon.status-working, .task-icon.status-queued, .task-icon.status-sent, .task-icon.status-failed { border: 0; background: none; padding: 0; }
.status-queued { color: var(--warn); border-color: rgba(251, 191, 36, 0.5); background: rgba(251, 191, 36, 0.08); }
.status-sent { color: #A5B4FC; border-color: rgba(124, 92, 255, 0.55); background: rgba(124, 92, 255, 0.12); }
.status-working { color: var(--cyan-hi); border-color: var(--edge-strong); background: rgba(34, 211, 238, 0.12); }
.status-done { color: var(--ok); border-color: rgba(52, 211, 153, 0.55); background: rgba(52, 211, 153, 0.1); }
.status-failed { color: var(--err); border-color: rgba(248, 113, 113, 0.55); background: rgba(248, 113, 113, 0.1); }
.status-cancelled { color: var(--muted); border-color: rgba(143, 169, 196, 0.5); background: rgba(143, 169, 196, 0.08); }
.task-icon.status-cancelled { color: var(--muted); }
.btn-danger { background: rgba(248, 113, 113, 0.12); color: #FCA5A5; border-color: rgba(248, 113, 113, 0.55); }
.btn-danger:hover { background: rgba(248, 113, 113, 0.22); color: #FECACA; }
.inline-form { display: inline-flex; margin-left: 0.75rem; }
.hw-actions { margin: 0.25rem 0 0.5rem; }
.thread-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.9rem; }
.thread-item { border-left: 2px solid var(--edge); padding-left: 0.9rem; }
.thread-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.35rem; font-size: 0.8rem; color: var(--muted); }
.thread-item .result-text { margin-top: 0.35rem; }
.tag { font-size: 0.7rem; color: var(--muted); border: 1px solid var(--edge); border-radius: 6px; padding: 0 0.35rem; margin-left: 0.25rem; }

.empty-state { text-align: center; padding: 1.75rem 1rem; border: 1px dashed var(--edge); border-radius: var(--radius); background: rgba(34, 211, 238, 0.02); }
.empty-title { font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.92rem; margin-bottom: 0.35rem; color: var(--cyan-hi); }

/* ---------- Hermes link map ---------- */
.flow-caption { margin: 0; font-size: 0.86rem; color: var(--muted); overflow-wrap: anywhere; }

/* ---------- analytics ---------- */
.analytics { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 1rem; align-items: center; }
.gauge { position: relative; margin: 0; width: 140px; display: grid; justify-items: center; }
.gauge svg { width: 140px; height: 140px; display: block; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.5)); }
#gauge-arc { transition: stroke-dashoffset .8s ease; }
.gauge-value { position: absolute; top: 0; left: 0; width: 140px; height: 140px; display: grid; place-items: center; font-size: 1.6rem; font-weight: 900; letter-spacing: 0.02em; color: #fff; text-shadow: 0 0 14px rgba(103, 232, 249, 0.7); }
.gauge-caption { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 800; margin-top: 0.35rem; }
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; margin: 0; }
.stat-grid div { border: 1px solid var(--line); border-radius: 10px; padding: 0.55rem 0.65rem; background: rgba(4, 12, 24, 0.5); }
.stat-grid dt { font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.stat-grid dd { margin: 0.1rem 0 0; font-size: 1.45rem; font-weight: 900; color: var(--cyan-hi); text-shadow: 0 0 12px rgba(34, 211, 238, 0.45); }

/* ---------- reports table ---------- */
.table-wrap { position: relative; border: 1px solid var(--edge); border-radius: var(--radius); background: linear-gradient(180deg, rgba(34, 211, 238, 0.06), rgba(34, 211, 238, 0.02)); box-shadow: var(--glow); overflow: hidden; }
.report-table { width: 100%; border-collapse: collapse; }
.report-table th, .report-table td { text-align: left; padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 0.93rem; }
.report-table th { color: var(--cyan-hi); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.18em; font-weight: 800; background: rgba(34, 211, 238, 0.05); }
.report-table tbody tr:last-child td { border-bottom: 0; }
.report-table tbody tr { transition: background .15s, box-shadow .15s; }
.report-table tbody tr:hover { background: rgba(34, 211, 238, 0.05); box-shadow: inset 2px 0 0 var(--cyan-hi); }
.report-table a.task-ref { display: inline-flex; min-height: 32px; align-items: center; }
.cell-command { overflow-wrap: anywhere; max-width: 28rem; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1rem; }

/* ---------- detail + settings ---------- */
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin: 0; }
.meta-grid dt, .status-list dt { color: var(--muted); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 800; }
.meta-grid dd, .status-list dd { margin: 0.25rem 0 0; display: flex; align-items: center; flex-wrap: wrap; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 0.97rem; }
.result-text { font-family: var(--mono); font-size: 0.9rem; background: rgba(4, 12, 24, 0.75); border: 1px solid var(--line); border-radius: 10px; padding: 1rem; color: #CFFAFE; }
.settings-grid { display: grid; gap: 1rem; align-items: start; }
.status-list { display: grid; gap: 1rem; margin: 0 0 1rem; }

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .report-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .report-table, .report-table tbody, .report-table tr, .report-table td { display: block; width: 100%; }
  .report-table tr { border-bottom: 1px solid var(--line); padding: 0.6rem 0; }
  .report-table td { border: 0; padding: 0.3rem 0.95rem; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.5rem; }
  .report-table td::before { content: attr(data-label); color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; padding-top: 0.15rem; }
  .cell-command { max-width: none; }
  .nav { width: 100%; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.25rem; }
  .nav a { justify-content: center; padding: 0.5rem 0.3rem; font-size: 0.7rem; letter-spacing: 0.08em; }
  .nav-logout { margin: 0; }
  .nav-logout .btn { width: 100%; padding: 0.45rem 0.3rem; font-size: 0.7rem; letter-spacing: 0.04em; }
  .recovery-codes { grid-template-columns: minmax(0, 1fr); }
  .chat-bubble { display: none; }
}
@media (max-width: 420px) {
  .analytics { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .stat-grid { width: 100%; }
}
@media (min-width: 640px) {
  .enroll { grid-template-columns: 240px minmax(0, 1fr); }
  .seats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .emp-card:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 760px) {
  .hud-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "core core" "command feed" "desk desk" "link link" "voice analytics"; }
}
@media (min-width: 960px) {
  .seats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 0.5rem; }
  .seat-desk { border-radius: 0; left: -0.25rem; right: -0.25rem; }
  .emp-card:first-child .seat-desk { border-top-left-radius: 14px; left: 0; }
  .emp-card:last-child .seat-desk { border-top-right-radius: 14px; right: 0; }
  .settings-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .container { padding: 1.5rem 1.5rem 2.5rem; }
  .topbar { padding: 0.8rem 1.5rem; }
}
@media (min-width: 1140px) {
  .hud-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr);
    grid-template-areas: "voice core command" "link core analytics" "feed feed feed" "desk desk desk";
  }
  .seat-stage { height: 210px; }
  .robot-wrap { width: 124px; margin-left: -62px; }
}


.link-map { display: grid; grid-template-columns: auto minmax(24px, 1fr) auto minmax(24px, 1fr) auto; align-items: center; gap: 0.35rem; margin: 0.25rem 0 0.9rem; }
.link-node { display: flex; flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; }
.link-node-label { font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--cyan-hi); }
.link-core svg { width: 48px; height: 48px; filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.6)); }
.link-hermes { background: none; border: 1px solid transparent; border-radius: 12px; padding: 0.35rem 0.4rem; color: var(--text); font: inherit; cursor: pointer; min-width: 88px; transition: border-color .2s, background-color .2s; }
.link-hermes:hover { border-color: var(--edge); background: var(--glass); }
.hermes-label { font-size: 0.7rem; color: var(--muted); max-width: 120px; line-height: 1.25; }
.hermes-orb { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--edge); background: rgba(4, 12, 24, 0.8); }
.hermes-orb-core { width: 22px; height: 22px; border-radius: 50%; background: #64748B; }
.hermes-orb-slash { position: absolute; width: 34px; height: 3px; border-radius: 2px; background: var(--err); transform: rotate(-45deg); opacity: 0; }
[data-bridge="connected"] .hermes-orb, .hermes-orb[data-bridge="connected"] { border-color: var(--cyan-hi); box-shadow: 0 0 18px rgba(34, 211, 238, 0.55); }
[data-bridge="connected"] .hermes-orb-core, .hermes-orb[data-bridge="connected"] .hermes-orb-core { background: radial-gradient(circle, #E6FBFF, var(--cyan-hi) 45%, var(--cyan)); animation: orb-pulse 1.8s ease-in-out infinite; }
[data-bridge="unreachable"] .hermes-orb, .hermes-orb[data-bridge="unreachable"] { border-color: rgba(251, 191, 36, 0.7); box-shadow: 0 0 16px rgba(251, 191, 36, 0.35); }
[data-bridge="unreachable"] .hermes-orb-core, .hermes-orb[data-bridge="unreachable"] .hermes-orb-core { background: radial-gradient(circle, #FEF3C7, var(--warn)); }
[data-bridge="unconfigured"] .hermes-orb-slash, .hermes-orb[data-bridge="unconfigured"] .hermes-orb-slash { opacity: 1; }
[data-bridge="connected"] .hermes-label { color: var(--cyan-hi); }
[data-bridge="unreachable"] .hermes-label { color: var(--warn); }
@keyframes orb-pulse { 0%, 100% { transform: scale(0.9); opacity: 0.85; } 50% { transform: scale(1.1); opacity: 1; } }
.link-line { position: relative; height: 2px; background: rgba(103, 232, 249, 0.18); overflow: visible; }
[data-bridge="connected"] .link-line { background: linear-gradient(90deg, rgba(103, 232, 249, 0.6), rgba(34, 211, 238, 0.35)); box-shadow: 0 0 8px rgba(34, 211, 238, 0.4); }
.link-track { position: absolute; left: 0; top: 0; width: 100%; height: 2px; transform: translateX(0); opacity: 0; }
.link-pulse { position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #E6FBFF; box-shadow: 0 0 10px var(--cyan-hi), 0 0 18px var(--cyan); }
.link-line.is-flowing .link-track { animation: travel 1.8s linear infinite; }
.link-line[data-line="hermes-team"].is-flowing .link-track { animation-delay: .9s; }
.link-line.is-burst .link-track { animation: travel 0.9s ease-in 1; }
.link-line[data-line="hermes-team"].is-burst .link-track { animation-delay: .9s; animation-fill-mode: backwards; }
@keyframes travel { 0% { transform: translateX(0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateX(100%); opacity: 0; } }
.link-team { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.link-bot { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: rgba(4, 12, 24, 0.6); cursor: pointer; padding: 0; transition: border-color .3s, box-shadow .3s, transform .3s; }
.link-bot svg { width: 22px; height: 22px; opacity: 0.6; }
.link-bot:hover { border-color: var(--edge-strong); }
.link-bot.is-working { border-color: var(--cyan-hi); box-shadow: 0 0 12px rgba(34, 211, 238, 0.55); transform: translateX(-3px); }
.link-bot.is-working svg { opacity: 1; }
.holo-link.is-empty .link-map { opacity: 0.6; }
.inline-link { background: none; border: 0; padding: 0.1rem 0.15rem; margin: 0; font: inherit; font-family: var(--mono); font-size: 0.86em; font-weight: 700; color: var(--cyan-hi); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 4px; min-height: 28px; }
.inline-link:hover { color: #A5F3FC; }

/* ---------- live feed ---------- */
.feed-live { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0; font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--cyan-hi); }
.feed-live .voice-live-dot { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); animation: blink-dot 1.6s ease-in-out infinite; }
.feed-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.3rem; max-height: 220px; overflow-y: auto; overscroll-behavior: contain; }
.feed-empty { color: var(--muted); font-size: 0.88rem; padding: 0.5rem 0.25rem; }
.feed-item { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); align-items: center; gap: 0.5rem; padding: 0.35rem 0.6rem; border-radius: 8px; border: 1px solid var(--line); background: rgba(4, 12, 24, 0.5); font-size: 0.86rem; animation: feed-in .5s ease-out; }
.feed-item:not(:has(.feed-ref)) { grid-template-columns: auto auto minmax(0, 1fr); }
.feed-time { font-family: var(--mono); font-size: 0.74rem; color: var(--muted); }
.feed-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.feed-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.feed-created .feed-dot { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.feed-sent .feed-dot { background: #A5B4FC; box-shadow: 0 0 8px #A5B4FC; }
.feed-working .feed-dot { background: var(--cyan-hi); box-shadow: 0 0 8px var(--cyan); }
.feed-done .feed-dot, .feed-bridge-up .feed-dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.feed-failed .feed-dot { background: var(--err); box-shadow: 0 0 8px var(--err); }
.feed-bridge-down .feed-dot { background: var(--warn); box-shadow: 0 0 8px var(--warn); }
.feed-failed { border-color: rgba(248, 113, 113, 0.35); }
.feed-done, .feed-bridge-up { border-color: rgba(52, 211, 153, 0.3); }
.feed-bridge-down { border-color: rgba(251, 191, 36, 0.35); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ---------- click targets ---------- */
.seat-open { position: absolute; inset: 0; z-index: 5; background: none; border: 1px solid transparent; border-radius: 12px; cursor: pointer; padding: 0; transition: border-color .2s, background-color .2s; }
.seat-open:hover { border-color: var(--edge); background: rgba(34, 211, 238, 0.04); }
.seat-open-hint { position: absolute; top: 6px; left: 8px; font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 800; color: var(--cyan-hi); opacity: 0; transition: opacity .2s; }
.seat-open:hover .seat-open-hint, .seat-open:focus-visible .seat-open-hint { opacity: 1; }
.panel-hit { position: absolute; inset: 0; z-index: 2; width: 100%; background: none; border: 0; border-radius: var(--radius); cursor: pointer; padding: 0; }
.panel-hit:hover { background: rgba(34, 211, 238, 0.03); }
.panel-open-hint { margin-left: auto; font-size: 0.62rem; letter-spacing: 0.16em; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 0.1rem 0.5rem; }
.holo-analytics:hover .panel-open-hint { color: var(--cyan-hi); border-color: var(--edge); }
.banner { flex-wrap: wrap; }
.banner-action { margin-left: auto; }

/* ---------- holo-window stage ---------- */
.holo-stage { position: fixed; inset: 0; z-index: 45; pointer-events: none; }
.holo-scrim { position: absolute; inset: 0; background: rgba(2, 6, 14, 0.62); pointer-events: auto; backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.holo-scrim[hidden] { display: none; }
.holo-window { position: absolute; left: 0; top: 0; width: min(560px, calc(100vw - 32px)); pointer-events: auto; will-change: transform; }
.hw-frame {
  position: relative; display: flex; flex-direction: column; max-height: calc(100vh - 96px);
  background: linear-gradient(180deg, rgba(10, 30, 52, 0.94), rgba(6, 14, 28, 0.95));
  border: 1px solid var(--edge-strong); border-radius: var(--radius);
  box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.1), 0 0 40px rgba(34, 211, 238, 0.25), 0 30px 80px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transform-origin: 50% 0;
}
.hw-frame::before, .hw-frame::after { content: ""; position: absolute; width: 18px; height: 18px; border: solid var(--cyan-hi); pointer-events: none; filter: drop-shadow(0 0 4px rgba(103, 232, 249, 0.9)); }
.hw-frame::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-top-left-radius: var(--radius); }
.hw-frame::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-bottom-right-radius: var(--radius); }
.hw-frame.is-opening { animation: hw-open .42s cubic-bezier(.2, .9, .25, 1.05); }
.hw-frame.is-closing { animation: hw-close .28s ease-in forwards; }
.hw-frame.is-flash { animation: hw-flash .6s ease-out; }
@keyframes hw-open { from { opacity: 0; transform: translateY(26px) scale(0.86); } to { opacity: 1; transform: none; } }
@keyframes hw-close { to { opacity: 0; transform: translateY(14px) scale(0.92); } }
@keyframes hw-flash { 0% { box-shadow: 0 0 0 2px var(--cyan-hi), 0 0 60px rgba(34, 211, 238, 0.6); } 100% { box-shadow: 0 0 0 1px rgba(103, 232, 249, 0.1), 0 0 40px rgba(34, 211, 238, 0.25); } }
.hw-bar { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.55rem 0.55rem 0.9rem; border-bottom: 1px solid var(--line); background: linear-gradient(90deg, rgba(34, 211, 238, 0.14), transparent 70%); border-radius: var(--radius) var(--radius) 0 0; touch-action: none; user-select: none; }
.holo-window .hw-bar { cursor: grab; }
.holo-window.is-dragging .hw-bar { cursor: grabbing; }
.hw-kind { font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 800; color: #03111A; background: var(--cyan-hi); border-radius: 4px; padding: 0.1rem 0.4rem; flex: none; }
.hw-title { margin: 0; font-size: 0.95rem; letter-spacing: 0.08em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-title:focus { outline: none; }
.hw-title:focus-visible { outline: 2px solid var(--cyan-hi); }
.hw-close { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--edge); background: rgba(4, 12, 24, 0.6); color: var(--text); cursor: pointer; padding: 0; }
.hw-close svg { width: 18px; height: 18px; }
.hw-close:hover { border-color: var(--err); color: #FECACA; }
.hw-live { margin: 0; padding: 0 0.9rem; font-size: 0.78rem; color: var(--warn); }
.hw-live:empty { display: none; }
.hw-body { overflow-y: auto; overscroll-behavior: contain; padding: 0.9rem; display: grid; gap: 0.9rem; }
.hw-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.hw-swatch { width: 14px; height: 14px; border-radius: 4px; background: var(--emp, var(--cyan)); box-shadow: 0 0 10px var(--emp, var(--cyan)); }
.hw-section { display: grid; gap: 0.45rem; }
.hw-section-title { margin: 0; font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cyan-hi); font-weight: 800; }
.hw-command { background: rgba(4, 12, 24, 0.7); border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem; }
.hw-body .result-text { max-height: 40vh; overflow-y: auto; }
.hw-progress { display: flex; align-items: center; gap: 0.6rem; }
.hw-progress-value { font-family: var(--mono); font-size: 0.82rem; color: var(--cyan-hi); min-width: 3.2em; text-align: right; }
.hw-facts, .hw-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; margin: 0; }
.hw-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hw-facts div, .hw-stats div { border: 1px solid var(--line); border-radius: 8px; padding: 0.45rem 0.6rem; background: rgba(4, 12, 24, 0.5); min-width: 0; }
.hw-facts dt, .hw-stats dt { font-size: 0.62rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 800; }
.hw-facts dd { margin: 0.15rem 0 0; font-size: 0.88rem; overflow-wrap: anywhere; }
.hw-stats dd { margin: 0.1rem 0 0; font-size: 1.25rem; font-weight: 900; color: var(--cyan-hi); }
.hw-task-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.hw-task { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 0.5rem; width: 100%; text-align: left; padding: 0.5rem 0.6rem; min-height: 44px; border-radius: 8px; border: 1px solid var(--line); background: rgba(4, 12, 24, 0.55); color: var(--text); font: inherit; font-size: 0.86rem; cursor: pointer; }
.hw-task:hover { border-color: var(--edge-strong); }
.hw-task .task-icon { width: 22px; height: 22px; }
.hw-task-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hw-foot { display: flex; align-items: center; gap: 0.9rem; flex-wrap: wrap; margin: 0; }
.hw-note { margin: 0; font-size: 0.86rem; color: var(--muted); border-left: 2px solid var(--cyan); padding-left: 0.7rem; }
.hw-hermes-head .hermes-orb { width: 54px; height: 54px; }
.hw-hermes-label { font-size: 1.05rem; }
.hw-big { font-size: 2.2rem; font-weight: 900; color: #fff; text-shadow: 0 0 16px rgba(103, 232, 249, 0.7); }
.hw-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.hw-table { width: 100%; border-collapse: collapse; font-size: 0.86rem; }
.hw-table th, .hw-table td { padding: 0.45rem 0.6rem; text-align: left; border-bottom: 1px solid var(--line); }
.hw-table th { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan-hi); }
.hw-table tbody tr:last-child td { border-bottom: 0; }
.hw-error { display: grid; gap: 0.6rem; justify-items: start; color: #FECACA; }
.hw-error p { margin: 0; }
.hw-loading { display: grid; gap: 0.6rem; padding: 0.25rem 0; }
.shimmer-line { display: block; height: 14px; border-radius: 6px; background: linear-gradient(90deg, rgba(103, 232, 249, 0.06), rgba(103, 232, 249, 0.22), rgba(103, 232, 249, 0.06)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.shimmer-line:nth-child(3) { width: 80%; } .shimmer-line:nth-child(4) { width: 60%; } .shimmer-line:nth-child(5) { width: 90%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: 0 0; } }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.tl-step { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 0.6rem; padding-bottom: 0.7rem; }
.tl-step:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.tl-step.is-done:not(:last-child)::before { background: linear-gradient(180deg, var(--cyan-hi), rgba(34, 211, 238, 0.3)); }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(143, 169, 196, 0.4); background: rgba(4, 12, 24, 0.8); }
.tl-step.is-done .tl-dot { border-color: var(--cyan-hi); background: radial-gradient(circle, var(--cyan-hi) 35%, rgba(34, 211, 238, 0.2) 40%); box-shadow: 0 0 10px rgba(34, 211, 238, 0.5); }
.tl-step.is-current .tl-dot { border-color: var(--cyan-hi); animation: node-pulse 1.2s ease-in-out infinite; }
.tl-step.is-failed .tl-dot { border-color: var(--err); background: radial-gradient(circle, var(--err) 35%, transparent 40%); }
.tl-step.is-skipped .tl-dot { border-style: dashed; }
.tl-text { display: grid; }
.tl-label { font-weight: 800; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }
.tl-detail { font-size: 0.84rem; color: var(--muted); }
.tl-step.is-pending .tl-label { color: var(--muted); }
@keyframes node-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

@media (max-width: 759px) {
  .holo-window { position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: 100%; transform: none !important; }
  .hw-frame { max-height: 88vh; border-radius: var(--radius) var(--radius) 0 0; transform-origin: 50% 100%; }
  .holo-window .hw-bar { cursor: default; }
  .hw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .link-map { gap: 0.2rem; }
  .hermes-label { max-width: 90px; }
}

/* ---------- motion controls ---------- */
.is-paused .ring, .is-paused .ring-boost, .is-paused .core-glow, .is-paused .core-head, .is-paused .core-scan, .is-paused .core-eye-glow,
.is-paused .robot, .is-paused .robot *, .is-paused .desk-keys, .is-paused .mark-ring,
.is-paused .link-track, .is-paused .hermes-orb-core, .is-paused .shimmer-line { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .ring, .ring-boost, .core-glow, .core-head, .core-scan, .core-eye-glow, .mark-ring, .desk-holo-ring,
  .robot, .robot *, .desk-keys, .st-spin { animation: none !important; }
  .core-scan { opacity: 0; }
  .robot-wrap, .seat-beam, .seat-spot, .desk-screen { transition-duration: 0.01s !important; }
  .talk-btn[data-state="live"] .talk-ring { animation: none; opacity: 1; }
  .core-pulse-ring.is-pulsing { animation-duration: 0.01s; }
  .link-track { animation: none !important; opacity: 0 !important; }
  .link-line.is-flowing { background: linear-gradient(90deg, var(--cyan-hi), var(--cyan)); }
  .hw-frame.is-opening, .hw-frame.is-closing, .hw-frame.is-flash, .feed-item, .shimmer-line,
  .hermes-orb-core, .tl-step.is-current .tl-dot, .feed-live .voice-live-dot { animation: none !important; }
}
