:root {
  --bg: #07111f;
  --panel: rgba(12, 24, 43, .84);
  --panel-solid: #0c182b;
  --panel-soft: rgba(15, 31, 54, .72);
  --ink: #eaf2ff;
  --muted: #8da2bf;
  --line: rgba(106, 141, 189, .22);
  --cyan: #38d8ff;
  --cyan-soft: rgba(56, 216, 255, .16);
  --blue: #3d6bff;
  --blue-dark: #254ed8;
  --green: #52f2a8;
  --warn: #ffd166;
  --pink: #ff3df2;
  --violet: #8b5cff;
  --acid: #d7ff3f;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 12%, rgba(56, 216, 255, .18), transparent 34%),
    radial-gradient(circle at 78% 8%, rgba(255, 61, 242, .15), transparent 30%),
    radial-gradient(circle at 65% 75%, rgba(139, 92, 255, .1), transparent 36%),
    linear-gradient(135deg, #050b14 0%, #0a1626 48%, #08101d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 216, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 216, 255, .055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.7), transparent 86%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,.028) 0 1px, transparent 1px 4px),
    linear-gradient(90deg, rgba(255,61,242,.08), transparent 28%, rgba(56,216,255,.08));
  mix-blend-mode: screen;
  opacity: .45;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 260px;
  background: rgba(5, 12, 23, .88);
  border-right: 1px solid var(--line);
  color: white;
  padding: 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  backdrop-filter: blur(14px);
  box-shadow: inset -1px 0 0 rgba(255,61,242,.14), 12px 0 44px rgba(0,0,0,.22);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 20px;
  border-bottom: 1px solid var(--line);
}
.brand span { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.mark {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(145deg, #17215f, #2b7cff 55%, #ff3df2);
  display: grid;
  place-items: center;
  color: white;
  font-weight: 900;
  box-shadow: 0 0 24px rgba(56, 216, 255, .38), 0 0 34px rgba(255,61,242,.2), inset 0 0 18px rgba(255,255,255,.18);
}

nav { display: grid; gap: 8px; }
.nav-item, .logout {
  width: 100%;
  border: 1px solid transparent;
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
  color: #bdd0ea;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
}
.nav-item.active, .nav-item:hover {
  background: linear-gradient(90deg, rgba(56,216,255,.16), rgba(255,61,242,.08));
  border-color: rgba(56, 216, 255, .42);
  color: white;
  box-shadow: inset 3px 0 0 var(--pink), 0 0 22px rgba(56,216,255,.08);
}
.logout {
  margin-top: auto;
  text-align: center;
  border-color: var(--line);
  color: #dce9ff;
}

.workspace {
  position: relative;
  margin-left: 260px;
  padding: 28px 32px 44px;
  max-width: 1260px;
}
.topbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 18px;
}
h1 { margin: 0 0 5px; font-size: 30px; letter-spacing: 0; }
p { margin: 0; color: var(--muted); line-height: 1.5; }
.model, .pill {
  color: #04120c;
  background: linear-gradient(135deg, #68ffc0, #a6ffd9);
  border: 1px solid rgba(82, 242, 168, .7);
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 0 18px rgba(82, 242, 168, .22);
}
.pill.warn {
  background: rgba(255, 209, 102, .16);
  border-color: rgba(255, 209, 102, .42);
  color: var(--warn);
}
.notice {
  background: rgba(255, 209, 102, .1);
  border: 1px solid rgba(255, 209, 102, .28);
  color: #ffe1a1;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 13px;
}
.hidden { display: none !important; }

.integrations, .openclaw-panel {
  display: grid;
  gap: 16px;
}
.chat-shell {
  min-height: calc(100vh - 190px);
  background: linear-gradient(180deg, rgba(12, 24, 43, .92), rgba(8, 18, 32, .94));
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid;
  grid-template-rows: auto auto minmax(320px, 1fr) auto auto;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.05);
}
.chat-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 18, 32, .72);
}
.chat-head strong { font-size: 20px; }
.chat-head p { margin-top: 3px; font-size: 13px; }
.jarvis-core {
  width: 58px;
  height: 58px;
  position: relative;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #e9fbff 0 10%, #38d8ff 11% 18%, transparent 19%);
  box-shadow: 0 0 28px rgba(56, 216, 255, .65), inset 0 0 22px rgba(56, 216, 255, .4);
}
.jarvis-core span {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(56, 216, 255, .56);
  border-radius: 50%;
  animation: orbit 3.8s linear infinite;
}
.jarvis-core span:nth-child(2) { inset: 11px; animation-duration: 2.6s; animation-direction: reverse; }
.jarvis-core span:nth-child(3) { inset: 17px; animation-duration: 1.8s; }

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 12, 23, .45);
}
.quick-prompt {
  background: rgba(56, 216, 255, .08);
  color: #ccefff;
  border: 1px solid rgba(56, 216, 255, .26);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: inset 0 0 18px rgba(56, 216, 255, .04);
}
.quick-prompt:hover {
  background: rgba(56, 216, 255, .18);
  border-color: rgba(56, 216, 255, .62);
  color: white;
  transform: translateY(-1px);
}
.chat-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(56,216,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56,216,255,.035) 1px, transparent 1px),
    rgba(7, 16, 30, .62);
  background-size: 28px 28px;
}
.chat-message {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  max-width: min(850px, 92%);
}
.chat-message.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  background: rgba(56, 216, 255, .16);
  border: 1px solid rgba(56, 216, 255, .34);
  color: #bff4ff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 0 16px rgba(56, 216, 255, .18);
}
.chat-message.user .avatar {
  background: rgba(61, 107, 255, .22);
  border-color: rgba(120, 151, 255, .38);
  color: white;
}
.bubble {
  border: 1px solid rgba(134, 166, 213, .24);
  border-radius: 9px;
  padding: 12px 14px;
  background: rgba(12, 24, 43, .9);
  color: #eaf2ff;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 30px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.04);
}
.chat-message.user .bubble {
  border-color: rgba(61, 107, 255, .7);
  background: linear-gradient(135deg, #2e59e9, #2542b8);
  color: white;
}
.chat-message.pending .bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8c8dd;
  min-width: 210px;
}
.thinking {
  display: inline-flex;
  gap: 5px;
}
.thinking i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 10px var(--cyan);
  animation: pulseDot 1s ease-in-out infinite;
}
.thinking i:nth-child(2) { animation-delay: .16s; }
.thinking i:nth-child(3) { animation-delay: .32s; }
.chat-message.pending em {
  font-style: normal;
  letter-spacing: .02em;
}
.chat-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 15px 18px;
  border-top: 1px solid var(--line);
  background: rgba(5, 12, 23, .76);
}
.chat-composer textarea {
  min-height: 48px;
  max-height: 160px;
  resize: none;
  margin: 0;
  background: rgba(6, 14, 26, .86);
}
.chat-composer button {
  align-self: end;
  min-width: 86px;
  min-height: 48px;
}
.chat-tools {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  padding: 0 18px 16px;
  background: rgba(5, 12, 23, .76);
}
.chat-tools input { margin-top: 0; }

.integration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.integration-card, .setup-box, .email-results {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 16px 54px rgba(0,0,0,.22);
}
.card-head, .output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.actions.compact {
  justify-content: flex-start;
}
dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 8px 12px;
  margin: 0;
}
dt {
  color: var(--muted);
  font-size: 13px;
}
dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
textarea, input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font: inherit;
  color: var(--ink);
  background: rgba(6, 14, 26, .72);
  outline: none;
}
textarea {
  min-height: 260px;
  resize: vertical;
  line-height: 1.5;
}
input { margin-top: 10px; }
textarea::placeholder, input::placeholder { color: #7187a5; }
textarea:focus, input:focus {
  border-color: rgba(56, 216, 255, .68);
  box-shadow: 0 0 0 3px rgba(56,216,255,.12), 0 0 24px rgba(56,216,255,.08);
}
.actions, .output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
button {
  border: 1px solid rgba(56, 216, 255, .28);
  border-radius: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #1d6dff, #29c7ff);
  color: white;
  font-weight: 900;
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
button:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(56, 216, 255, .2);
}
button:disabled { opacity: .65; cursor: wait; transform: none; }
button.secondary {
  background: rgba(6, 14, 26, .72);
  color: #c8d8ef;
  border: 1px solid var(--line);
}
button.secondary:hover { background: rgba(56, 216, 255, .08); }
pre {
  min-height: 280px;
  white-space: pre-wrap;
  word-wrap: break-word;
  margin: 12px 0 0;
  color: #dbe8fb;
  line-height: 1.55;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.login-body {
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 50% 8%, rgba(56,216,255,.18), transparent 34%),
    #07111f;
}
.login-panel {
  width: min(420px, 100%);
  background: rgba(12, 24, 43, .92);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,.35);
}
.login-panel .mark { margin-bottom: 16px; }
.login-panel h1 { font-size: 26px; }
.login-panel form { margin-top: 22px; display: grid; gap: 9px; }
.login-panel label { font-size: 13px; color: #c8d8ef; font-weight: 800; }
.login-panel button { margin-top: 8px; }
.error { display: none; color: #ff9b8f; font-size: 13px; }
body:has([action="/login"]) .error { display: none; }

@keyframes orbit {
  from { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.08); }
  to { transform: rotate(360deg) scale(1); }
}
@keyframes pulseDot {
  0%, 80%, 100% { opacity: .35; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-4px); }
}

@media (max-width: 820px) {
  .sidebar {
    position: static;
    width: auto;
    min-height: auto;
  }
  .workspace { margin-left: 0; padding: 18px; }
  .topbar { flex-direction: column; }
  .integration-grid { grid-template-columns: 1fr; }
  .chat-shell { min-height: 72vh; }
  .chat-head { grid-template-columns: auto 1fr; }
  .chat-head .pill { grid-column: 1 / -1; width: max-content; }
  .quick-actions { overflow-x: auto; flex-wrap: nowrap; }
  .quick-prompt { flex: 0 0 auto; }
  .chat-tools { grid-template-columns: 1fr; }
  .chat-composer { grid-template-columns: 1fr; }
  .chat-composer button { width: 100%; }
}

/* Premium app polish */
.workspace {
  width: min(100% - 260px, 1380px);
}
.topbar {
  padding: 4px 2px;
}
.topbar h1 {
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  background: linear-gradient(135deg, #ffffff, #9cecff 58%, #79a6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notice {
  display: none;
}
.chat-shell {
  border-radius: 22px;
  min-height: calc(100vh - 150px);
  box-shadow:
    0 30px 110px rgba(0, 0, 0, .42),
    0 0 0 1px rgba(255,255,255,.04),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.chat-shell::before {
  content: "";
  position: absolute;
}
.chat-head {
  padding: 22px 24px;
}
.chat-head strong {
  letter-spacing: .01em;
}
.jarvis-core {
  width: 64px;
  height: 64px;
}
.quick-actions {
  padding: 14px 22px;
  gap: 10px;
}
.quick-prompt {
  padding: 9px 13px;
  backdrop-filter: blur(12px);
}
.chat-thread {
  padding: 24px;
  min-height: 430px;
}
.bubble {
  border-radius: 18px 18px 18px 6px;
  padding: 14px 16px;
  max-width: 100%;
}
.chat-message.user .bubble {
  border-radius: 18px 18px 6px 18px;
}
.chat-composer {
  padding: 16px 22px 12px;
}
.chat-composer textarea {
  border-radius: 16px;
  padding: 14px 15px;
}
.chat-composer button {
  border-radius: 16px;
  padding-inline: 22px;
}
.chat-tools {
  padding: 0 22px 20px;
}
.chat-tools input,
.chat-tools button.secondary {
  border-radius: 14px;
}
.mobile-tabbar {
  display: none;
}

@media (max-width: 820px) {
  body {
    min-height: 100svh;
    overflow-x: hidden;
  }
  body::before {
    background-size: 26px 26px;
  }
  .sidebar {
    display: none;
  }
  .workspace {
    width: 100%;
    margin-left: 0;
    padding: 14px 12px 92px;
    max-width: none;
  }
  .topbar {
    align-items: center;
    flex-direction: row;
    margin-bottom: 10px;
    padding: 6px 2px;
  }
  .topbar h1 {
    font-size: 30px;
    margin-bottom: 1px;
  }
  .topbar p {
    max-width: 235px;
    font-size: 12px;
    line-height: 1.35;
  }
  .model {
    padding: 6px 9px;
    font-size: 11px;
  }
  .chat-shell {
    min-height: calc(100svh - 124px);
    border-radius: 26px;
    grid-template-rows: auto auto minmax(260px, 1fr) auto;
  }
  .chat-head {
    grid-template-columns: auto 1fr auto;
    padding: 16px;
    gap: 11px;
  }
  .chat-head .pill {
    grid-column: auto;
    width: auto;
    font-size: 0;
    padding: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
  }
  .chat-head strong {
    font-size: 18px;
  }
  .chat-head p {
    font-size: 12px;
    line-height: 1.25;
  }
  .jarvis-core {
    width: 48px;
    height: 48px;
  }
  .quick-actions {
    padding: 11px 14px 12px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .quick-actions::-webkit-scrollbar {
    display: none;
  }
  .quick-prompt {
    flex: 0 0 auto;
    padding: 8px 12px;
    font-size: 12px;
  }
  .chat-thread {
    min-height: 0;
    padding: 16px 14px;
    gap: 12px;
  }
  .chat-message {
    max-width: 94%;
  }
  .avatar {
    width: 30px;
    height: 30px;
    flex-basis: 30px;
    font-size: 10px;
  }
  .bubble {
    border-radius: 17px 17px 17px 7px;
    padding: 12px 13px;
    font-size: 14px;
  }
  .chat-message.user .bubble {
    border-radius: 17px 17px 7px 17px;
  }
  .chat-composer {
    grid-template-columns: minmax(0, 1fr) 58px;
    padding: 12px 12px 8px;
    position: sticky;
    bottom: 58px;
    z-index: 5;
  }
  .chat-composer textarea {
    min-height: 48px;
    max-height: 120px;
    font-size: 16px;
  }
  .chat-composer button {
    width: 58px;
    min-width: 58px;
    min-height: 48px;
    padding: 0;
  }
  .chat-tools {
    display: none;
  }
  .mobile-tabbar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 20;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 8px;
    border: 1px solid rgba(106, 141, 189, .28);
    border-radius: 22px;
    background: rgba(5, 12, 23, .82);
    backdrop-filter: blur(18px);
    box-shadow: 0 18px 60px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.08);
  }
  .mobile-tab {
    border-radius: 16px;
    background: transparent;
    color: #9db2ce;
    border: 1px solid transparent;
    min-height: 42px;
  }
  .mobile-tab.active {
    background: linear-gradient(135deg, rgba(29, 109, 255, .95), rgba(41, 199, 255, .9));
    color: white;
    border-color: rgba(56, 216, 255, .46);
    box-shadow: 0 0 24px rgba(56,216,255,.18);
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .integration-card,
  .setup-box,
  .email-results {
    border-radius: 20px;
  }
}

/* Final command-console layout pass */
@media (min-width: 821px) {
  body {
    height: 100vh;
    overflow: hidden;
  }
  .sidebar {
    width: 248px;
    padding: 24px 18px;
  }
  .workspace {
    width: auto;
    height: 100vh;
    margin-left: 248px;
    padding: 24px 32px 28px;
    max-width: none;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    overflow: hidden;
  }
  .topbar {
    margin: 0;
    min-height: 82px;
    align-items: center;
  }
  .topbar h1 {
    font-size: clamp(40px, 4vw, 64px);
    line-height: .95;
  }
  .topbar p {
    font-size: 15px;
    margin-top: 12px;
  }
  .openclaw-panel {
    min-height: 0;
  }
  .chat-shell {
    height: 100%;
    min-height: 0;
    max-height: none;
    border-radius: 24px;
    grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  }
  .chat-head {
    padding: 18px 24px;
  }
  .jarvis-core {
    width: 54px;
    height: 54px;
  }
  .quick-actions {
    padding: 12px 24px;
  }
  .quick-prompt {
    padding: 8px 13px;
  }
  .chat-thread {
    min-height: 0;
    padding: 22px 28px;
    align-content: start;
  }
  .chat-message {
    max-width: min(760px, 82%);
  }
  .chat-composer {
    padding: 14px 24px 10px;
  }
  .chat-tools {
    padding: 0 24px 18px;
    grid-template-columns: minmax(160px, 1fr) auto auto;
  }
  .integrations {
    min-height: 0;
    overflow: auto;
    padding-right: 6px;
  }
}

@media (max-width: 820px) {
  body {
    height: 100svh;
    overflow: hidden;
  }
  .workspace {
    height: 100svh;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 10px;
    overflow: hidden;
  }
  .topbar {
    margin: 0;
  }
  .openclaw-panel,
  .integrations {
    min-height: 0;
    overflow: hidden;
  }
  .chat-shell {
    height: 100%;
    min-height: 0;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }
  .chat-thread {
    min-height: 0;
    overflow-y: auto;
  }
  .chat-composer {
    position: static;
    bottom: auto;
  }
  .integrations {
    overflow-y: auto;
    padding-bottom: 82px;
  }
}

/* Cyberpunk theme layer */
.workspace {
  z-index: 1;
}
.topbar h1 {
  text-shadow: 0 0 20px rgba(56,216,255,.28), 0 0 34px rgba(255,61,242,.18);
}
.model,
.pill.good {
  background: linear-gradient(135deg, #52f2a8, #d7ff3f);
  border-color: rgba(215,255,63,.62);
  box-shadow: 0 0 22px rgba(82,242,168,.32), 0 0 40px rgba(215,255,63,.08);
}
.chat-shell {
  border-color: rgba(56,216,255,.32);
  background:
    linear-gradient(180deg, rgba(8, 15, 30, .92), rgba(5, 10, 20, .96)),
    linear-gradient(135deg, rgba(56,216,255,.08), rgba(255,61,242,.08));
  box-shadow:
    0 28px 110px rgba(0,0,0,.5),
    0 0 40px rgba(56,216,255,.1),
    0 0 70px rgba(255,61,242,.08),
    inset 0 1px 0 rgba(255,255,255,.08);
}
.chat-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, transparent 0 46%, rgba(56,216,255,.1) 50%, transparent 54%),
    linear-gradient(180deg, rgba(255,61,242,.08), transparent 18%, transparent 82%, rgba(56,216,255,.08));
  opacity: .45;
}
.chat-head {
  position: relative;
  background:
    linear-gradient(90deg, rgba(56,216,255,.08), rgba(255,61,242,.06)),
    rgba(5, 12, 23, .76);
}
.chat-head::after {
  content: "SYSTEM ONLINE";
  position: absolute;
  right: 24px;
  bottom: -8px;
  padding: 2px 8px;
  border: 1px solid rgba(56,216,255,.32);
  background: #060d18;
  color: var(--cyan);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
}
.jarvis-core {
  background:
    radial-gradient(circle, white 0 8%, var(--cyan) 9% 17%, transparent 18%),
    conic-gradient(from 90deg, var(--cyan), var(--pink), var(--violet), var(--cyan));
  box-shadow: 0 0 32px rgba(56,216,255,.85), 0 0 62px rgba(255,61,242,.26), inset 0 0 24px rgba(255,255,255,.2);
}
.jarvis-core::after {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(255,61,242,.45);
  animation: orbit 7s linear infinite reverse;
}
.quick-actions {
  background:
    linear-gradient(90deg, rgba(56,216,255,.06), rgba(255,61,242,.05)),
    rgba(3, 8, 17, .64);
}
.quick-prompt {
  color: #e5f8ff;
  background: linear-gradient(135deg, rgba(56,216,255,.1), rgba(255,61,242,.08));
  border-color: rgba(56,216,255,.34);
  box-shadow: inset 0 0 18px rgba(56,216,255,.05), 0 0 18px rgba(255,61,242,.05);
}
.quick-prompt:hover {
  border-color: rgba(255,61,242,.62);
  box-shadow: 0 0 18px rgba(56,216,255,.18), 0 0 26px rgba(255,61,242,.12);
}
.chat-thread {
  background:
    linear-gradient(rgba(56,216,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,61,242,.035) 1px, transparent 1px),
    radial-gradient(circle at 50% 18%, rgba(56,216,255,.05), transparent 28%),
    rgba(3, 9, 18, .74);
  background-size: 30px 30px, 30px 30px, auto, auto;
}
.bubble {
  border-color: rgba(56,216,255,.22);
  background: linear-gradient(180deg, rgba(13, 27, 50, .94), rgba(8, 18, 34, .94));
}
.chat-message.agent .bubble {
  box-shadow: 0 10px 30px rgba(0,0,0,.2), -2px 0 0 rgba(56,216,255,.65), 0 0 24px rgba(56,216,255,.06);
}
.chat-message.user .bubble {
  border-color: rgba(255,61,242,.58);
  background: linear-gradient(135deg, #3135d8, #7b2cff 52%, #d927d0);
  box-shadow: 0 10px 30px rgba(0,0,0,.22), 0 0 28px rgba(255,61,242,.12);
}
.avatar {
  background: rgba(56,216,255,.13);
  border-color: rgba(56,216,255,.45);
  color: var(--cyan);
}
.chat-message.user .avatar {
  border-color: rgba(255,61,242,.5);
  color: #ffd6fb;
}
.chat-composer,
.chat-tools {
  background:
    linear-gradient(90deg, rgba(56,216,255,.05), rgba(255,61,242,.05)),
    rgba(3, 8, 17, .82);
}
textarea,
input {
  border-color: rgba(56,216,255,.24);
  background: rgba(2, 8, 17, .82);
}
textarea:focus,
input:focus {
  border-color: rgba(255,61,242,.62);
  box-shadow: 0 0 0 3px rgba(255,61,242,.1), 0 0 28px rgba(56,216,255,.12);
}
button {
  background: linear-gradient(135deg, #00b8ff, #6b5cff 48%, #ff3df2);
  border-color: rgba(255,61,242,.36);
}
button.secondary {
  background: rgba(2, 8, 17, .78);
}
.mobile-tab.active {
  background: linear-gradient(135deg, #00b8ff, #6b5cff 48%, #ff3df2);
}
