/* ══════════════════════════════════════════
   DATAFIED RISE 2026 — LOCKED BRAND PALETTE
   No theme switcher. No variants. Just the booth.
══════════════════════════════════════════ */
:root {
  /* Core palette */
  --bg:        #071d3f;
  --bg-soft:   #0a2558;
  --bg-mid:    #0d3170;
  --bg-light:  #1a5bb5;
  --text:      #f0f4fa;
  --muted:     #8fafd4;

  /* Brand orange — the pop */
  --accent:    #f08a24;
  --accent2:   #e07010;

  /* Brand blue — user bubbles, structural */
  --blue:      #0d3d8a;
  --blue2:     #1a5bb5;

  /* Borders */
  --border:         rgba(255, 255, 255, 0.08);
  --border-accent:  rgba(240, 138, 36, 0.22);
  --border-blue:    rgba(13, 61, 138, 0.5);

  /* RGB variants for rgba() usage */
  --accent-rgb:   240, 138, 36;
  --accent2-rgb:  224, 112, 16;
  --blue-rgb:     13, 61, 138;
  --soft-rgb:     10, 37, 88;
  --mid-rgb:      13, 49, 112;
  --light-rgb:    26, 91, 181;

  /* Orb glow colors */
  --orb1: 240, 138, 36;
  --orb2: 13, 61, 138;

  /* Gradients */
  --grad-body:     linear-gradient(160deg, #071d3f 0%, #071d3f 45%, #0a2558 100%);
  --grad-chat-bg:  linear-gradient(180deg, #071d3f 0%, #071d3f 55%, #0a2558 100%);
  --title-grad:    linear-gradient(115deg, #ffffff 0%, #fde0c0 45%, #f08a24 100%);
  --send-btn-text: #fff;
}

/* ══════════════════════════════════════════
   RESET
══════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  background: var(--bg);
  background-image: var(--grad-body);
  color: var(--text);
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════
   SCREENS + TRANSITIONS
══════════════════════════════════════════ */
.screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
  position: relative;
  overflow: hidden;
  /* Default: flex-center for simple screens (passcode, name capture) */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}
/* Chat screen uses JS-controlled scaling — override flex centering */
#chatScreen {
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}
/* Welcome screen — uses CSS zoom (not transform) so the hub's layout size
   matches its visual size. Flex centering from .screen works correctly with zoom. */
#welcomeScreen {
  padding: 1rem;
  padding-top: max(1rem, env(safe-area-inset-top, 0px));
  position: relative;
}

/* No typing mode layout changes — both columns stay visible when keyboard opens.
   Browser scrolls focused input into view naturally. */

.screen:not(.hidden) {
  animation: screenFadeIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes screenFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.screen.hidden { display: none !important; }
.screen.fading {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 300ms ease, transform 300ms ease;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.08) 0%, rgba(var(--accent-rgb), 0.03) 40%, transparent 65%);
  top: -250px;
  left: -250px;
  animation: orbFloat1 25s ease-in-out infinite;
}

.orb-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(91,184,245, 0.08) 0%, rgba(91,184,245, 0.03) 40%, transparent 65%);
  bottom: -200px;
  right: -150px;
  animation: orbFloat2 30s ease-in-out infinite;
}

@keyframes orbFloat1 { 0%,100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(60px, 40px) scale(1.1); } }
@keyframes orbFloat2 { 0%,100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-50px, -30px) scale(1.05); } }

.passcode-logo { position: static; margin-bottom: 0.25rem; height: 34px; width: auto; border-radius: 10px; }
.passcode-card {
  background: rgba(10, 37, 88, 0.55);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  width: min(400px, 92vw);
  box-shadow: 0 0 60px rgba(var(--accent-rgb), 0.07), 0 24px 48px rgba(0,0,0,0.3);
  backdrop-filter: blur(12px);
  position: relative;
  z-index: 2;
}
.passcode-title { font-size: 1.6rem; font-weight: 700; background: linear-gradient(135deg, #fff, var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.passcode-sub { color: var(--muted); font-size: 0.95rem; }
.passcode-form { display: grid; grid-template-columns: 1fr auto; gap: 0.5rem; width: 100%; }
.passcode-form input {
  background: rgba(7, 29, 63, 0.7);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.82rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 150ms ease;
}
.passcode-form input:focus {
  border-color: rgba(var(--accent-rgb), 0.5);
}
.passcode-submit {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
  aspect-ratio: 1;
  width: 48px;
}
.passcode-submit:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(var(--accent-rgb), 0.4);
}
.passcode-submit svg { stroke: #fff; }


/* ══════════════════════════════════════════
   PAGE BRANDING (top of welcome screen)
══════════════════════════════════════════ */
.page-brand {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  pointer-events: none;
}
.page-brand-logo {
  width: 300px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}
.page-brand-byline {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.page-brand-by {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f4cfaa;
}
.page-brand-datafied {
  height: 44px;
  width: auto;
  opacity: 1;
}

/* ══════════════════════════════════════════
   HUB-AND-SPOKE LAYOUT
══════════════════════════════════════════ */
.hub-layout {
  z-index: 2;
  width: 1100px;
  height: 680px;
  position: relative;
}

/* Connector lines */
.hub-connectors {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  z-index: 0;
}
.spoke-line {
  stroke: url(#line-gradient);
  stroke-width: 2.5;
  fill: none;
  opacity: 0.4;
  filter: url(#glow);
}
.spoke-line-bottom {
  opacity: 0.5;
}
.flow-dot {
  opacity: 0.6;
}
.anchor-dot {
  fill: var(--accent);
  opacity: 0.5;
  filter: drop-shadow(0 0 3px rgba(var(--accent-rgb), 0.4));
}

/* Central hub — styled like a chat input bar */
.hub-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 580px;
  height: 88px;
  border-radius: 999px;
  border: none;
  background: transparent;
  cursor: pointer;
  z-index: 2;
  padding: 0;
  font-family: inherit;
  color: var(--text);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.hub-center:hover { transform: translate(-50%, -50%) scale(1.04); }
.hub-center:active { transform: translate(-50%, -50%) scale(0.98); }
.hub-center:hover .hub-ring {
  border-color: rgba(var(--accent-rgb), 0.5);
  box-shadow:
    0 0 0 4px rgba(var(--accent-rgb), 0.15),
    0 0 30px rgba(var(--accent-rgb), 0.25),
    0 8px 32px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hub-ring {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgb(12, 40, 95);
  box-shadow:
    0 0 0 3px rgba(var(--accent-rgb), 0.1),
    0 0 25px rgba(var(--accent-rgb), 0.15),
    0 10px 40px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: hub-pulse 3.5s ease-in-out infinite;
}

@keyframes hub-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1), 0 0 25px rgba(var(--accent-rgb), 0.15), 0 10px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08); }
  50% { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.15), 0 0 45px rgba(var(--accent-rgb), 0.25), 0 10px 40px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08); }
}

.hub-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0 0.6rem 0 1.2rem;
  gap: 0.6rem;
}

.hub-chat-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  stroke: rgba(var(--accent-rgb), 0.6);
}

.hub-cta-text {
  flex: 1;
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.hub-cta-text::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--accent);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: blink-cursor 0.9s step-end infinite;
}
@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Send arrow on the right side of the hub input */
.hub-send-icon {
  width: 54px;
  height: 54px;
  min-width: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
}
.hub-send-icon svg {
  width: 22px;
  height: 22px;
  stroke: #fff;
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* SVG wordmark for chat header */
.chatified-wordmark-sm {
  width: 160px;
  height: auto;
  display: block;
}

/* Spoke cards */
.spoke {
  position: absolute;
  z-index: 1;
}
.spoke-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(155deg, rgba(16, 48, 100, 0.95), rgba(12, 38, 82, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 18px;
  padding: 1.2rem 1.4rem 1rem;
  width: 210px;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    0 2px 8px rgba(0, 0, 0, 0.2);
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  text-align: center;
}
.spoke-card:hover {
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(var(--accent-rgb), 0.45);
  box-shadow:
    0 14px 44px rgba(0, 0, 0, 0.4),
    0 0 24px rgba(var(--accent-rgb), 0.1);
}

.spoke-icon {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.18), rgba(var(--accent-rgb), 0.06));
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.spoke-icon svg {
  width: 30px;
  height: 30px;
  color: var(--accent);
}

.spoke-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-align: center;
}
.spoke-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.spoke-sub {
  font-size: 0.92rem;
  color: var(--muted);
}

.spoke-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  transition: background 150ms ease;
}
.spoke-card:hover .spoke-cta {
  background: rgba(var(--accent-rgb), 0.2);
}

/* Spoke positions — Layout A (cards) */
.spoke-top-left    { left: 0;   top: 10%;  }
.spoke-top-right   { right: 0;  top: 10%;  }
.spoke-bottom-left { left: 0;   bottom: 18%; }
.spoke-bottom-right{ right: 0;  bottom: 18%; }
.spoke-bottom      { left: 50%; bottom: 0; transform: translateX(-50%); }

/* Layouts B & C removed — single layout locked in */

/* ══════════════════════════════════════════
   DEMO REQUEST MODAL
══════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(4, 12, 28, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(6px);
}
.modal-overlay.hidden { display: none !important; }

.modal-card {
  background: linear-gradient(155deg, rgba(14, 42, 90, 0.98), rgba(7, 29, 63, 0.99));
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 1.8rem 2rem;
  width: min(520px, 90vw);
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
}

.modal-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.25rem;
}
.modal-sub {
  color: var(--muted);
  font-size: 1.05rem;
  margin-bottom: 0.8rem;
  line-height: 1.4;
}

.demo-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.demo-form input[type="text"],
.demo-form input[type="email"] {
  background: rgba(7, 29, 63, 0.7);
  color: var(--text);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 0.7rem 1rem;
  font-size: 1.1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 150ms ease;
}
.demo-form input:focus {
  border-color: rgba(var(--accent-rgb), 0.5);
}
.demo-form input::placeholder { color: #5a7da8; }

.demo-services {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  margin: 0;
}
.demo-services legend {
  font-size: 1.05rem;
  color: var(--muted);
  padding: 0 0.2rem;
  font-weight: 600;
}
.demo-legend-note { font-weight: 400; opacity: 0.7; }

.demo-services label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  color: #d7e5f8;
  padding: 0.2rem 0;
  cursor: pointer;
}
.demo-services input[type="checkbox"] {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
}

.demo-submit {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
  margin-top: 0.15rem;
}

.demo-success {
  text-align: center;
  padding: 1.5rem 0 0.5rem;
}
.demo-success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.15);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-size: 1.8rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}
.demo-success h3 {
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 0.3rem;
}
.demo-success p {
  color: var(--muted);
  font-size: 0.9rem;
}

.countdown-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(4, 12, 28, 0.85); display: flex; align-items: center; justify-content: center; }
.countdown-overlay.hidden { display: none !important; }
.countdown-card { background: rgba(10, 37, 88, 0.7); border: 1px solid var(--border); border-radius: 20px; padding: 2.5rem 3rem; text-align: center; backdrop-filter: blur(12px); }
.countdown-question { font-size: 1.1rem; color: var(--muted); margin-bottom: 0.5rem; }
.countdown-number { font-size: 5rem; font-weight: 800; color: var(--accent); }
.countdown-stay {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.6rem;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(var(--accent-rgb), 0.3);
}

#chatScreen {
  justify-content: flex-start;
  align-items: flex-start;
  padding: 0;
  gap: 0;
  background: var(--grad-chat-bg);
  overflow: hidden;
}
#chatScreen .orb { display: none; }

/* Fixed-size inner container — always renders at tablet dimensions, scales to fit */
.chat-shell {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  height: calc(var(--vh, 1vh) * 100);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg);
}



.chat-header {
  width: 100%; display: flex; align-items: center; justify-content: center;
  padding: 0.8rem 1.2rem 0.8rem;
  padding-top: calc(env(safe-area-inset-top, 0px) + 0.8rem);
  border-bottom: 2px solid rgba(var(--accent-rgb), 0.35);
  background: rgba(6, 22, 52, 1); 
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  position: relative;
}
/* Separator line between status bar and header content */
.chat-header::before {
  content: '';
  position: absolute;
  top: env(safe-area-inset-top, 0px);
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--accent-rgb), 0.4), transparent);
}
.header-spacer {
  width: 90px; /* match back button width */
  flex-shrink: 0;
}
.chat-brand { display: flex; align-items: center; gap: 0.6rem; justify-content: center; }
.chat-brand-byline { display: flex; align-items: center; gap: 0.25rem; }
.chat-brand-by { font-size: 0.55rem; letter-spacing: 0.12em; text-transform: uppercase; color: #f4cfaa; }
.chat-brand-datafied { height: 24px; width: auto; opacity: 0.9; }
.corner-logo { height: 24px; width: auto; border-radius: 6px; }

.reset-btn {
  position: absolute;
  right: 1.2rem;
  background: rgba(var(--accent-rgb), 0.12);
  border: 1.5px solid rgba(var(--accent-rgb), 0.35);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: inherit;
  cursor: pointer;
  transition: background 150ms ease, border-color 150ms ease;
}
.reset-btn:hover {
  background: rgba(var(--accent-rgb), 0.2);
  border-color: rgba(var(--accent-rgb), 0.5);
}
.reset-btn svg { width: 16px; height: 16px; stroke: var(--accent); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Locked / Coming Soon spoke cards ── */
.spoke-card--locked {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}
.spoke-card--locked:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 2px 8px rgba(0, 0, 0, 0.2);
}
.spoke-cta--locked {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.chat-layout {
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.chat-header { flex-shrink: 0; }

/* ── Info Panel (v8q template) ── */
.context-panel {
  position: relative;
  border-right: 2px solid rgba(var(--accent-rgb), 0.25);
  background: linear-gradient(180deg, #0d2a52 0%, #0a2248 100%);
  padding: 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 0.5rem;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  transition: opacity 180ms ease, transform 180ms ease;
}
.context-panel.panel-exit {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 250ms ease, transform 250ms ease;
}
.context-panel.panel-enter {
  animation: panelFadeIn 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Panel header — centered, poster-style */
.panel-header { text-align: center; flex-shrink: 0; margin-bottom: 0; padding: 0.3rem 0; }
.panel-title { font-size: 2rem; font-weight: 900; color: #ffffff; margin-bottom: 0.35rem; line-height: 1.1; letter-spacing: -0.01em; }

.panel-description { display: none; }

/* Panel stats row */
.panel-stats-row {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
  flex-shrink: 0;
}
.panel-stat-card {
  border: 1.5px solid rgba(var(--accent-rgb), 0.5);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
  background: rgba(60, 120, 200, 0.2);
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  width: 140px;
  min-height: 72px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.panel-stat-value {
  display: block;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
/* Numeric stats get big, text stats get smaller */
.panel-stat-value.stat-numeric { font-size: 1.8rem; }
.panel-stat-value.stat-text { font-size: 1rem; }
.panel-stat-label {
  display: block;
  font-size: 0.55rem;
  text-transform: uppercase;
  color: #b0cce6;
  letter-spacing: 0.04em;
  margin-top: 0.25rem;
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.panel-stat-divider {
  display: flex;
  align-items: center;
  padding: 0 0.9rem;
}
.panel-stat-divider::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
  border-radius: 1px;
}

/* Panel divider */
.panel-divider {
  height: 2px;
  margin: 0.7rem 0;
  background: linear-gradient(90deg, var(--accent) 0%, rgba(80, 160, 220, 0.4) 50%, transparent 100%);
  border-radius: 1px;
  flex-shrink: 0;
}

/* Panel dual column cards */
.panel-dual-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; flex-shrink: 0; }
.panel-card {
  border: 1.5px solid rgba(100, 160, 230, 0.3);
  border-radius: 12px;
  background: rgba(15, 45, 95, 0.7);
  padding: 0.8rem 0.85rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25), 0 1px 0 rgba(255,255,255,0.04) inset;
}
.panel-card h3 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  margin-bottom: 0.45rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.2);
  padding-bottom: 0.35rem;
}
.panel-card h3::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 15px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.panel-card ul {
  margin-left: 0.9rem;
  color: #e4edf8;
  display: grid;
  gap: 0.4rem;
  line-height: 1.45;
  font-size: 0.92rem;
}
.panel-card ul li::marker { color: var(--accent); }

/* Panel CTA card — horizontal layout */
.panel-cta-card {
  border-color: rgba(var(--accent-rgb), 0.3);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  flex-shrink: 0;
  gap: 1rem;
}
.panel-cta-card h3 { display: none; }
.panel-cta-left { flex: 1; }
.panel-cta-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.panel-cta-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 15px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.panel-cta-text { font-size: 0.85rem; color: #a8c4e0; line-height: 1.4; }
.panel-cta-button {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.5rem 1.4rem;
  border-radius: 8px;
  border: none;
  box-shadow: 0 3px 10px rgba(var(--accent-rgb), 0.25);
  white-space: nowrap;
  cursor: pointer;
}

/* Prompt chips — above chat input */
.prompt-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem 0.9rem;
  flex-shrink: 0;
}
.prompt-chip {
  padding: 0.45rem 0.9rem;
  background: rgba(50, 120, 200, 0.2);
  border: 1.5px solid rgba(80, 150, 220, 0.35);
  border-radius: 999px;
  font-size: 0.95rem;
  color: #c8ddf0;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 150ms ease;
}
.prompt-chip:hover {
  background: rgba(50, 120, 200, 0.35);
}

.chat-main {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}
.chat-thread {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  width: 100%;
  padding: 1.1rem 1.1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border-right: 1px solid rgba(255, 255, 255, 0.04);
}
/* Scrollbar styling */
.chat-thread::-webkit-scrollbar { width: 6px; }
.chat-thread::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
.chat-thread::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.chat-thread::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
.context-panel::-webkit-scrollbar { width: 6px; }
.context-panel::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.03); }
.context-panel::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.12); border-radius: 3px; }
.context-panel::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); }
.bubble {
  max-width: min(680px, 88%);
  padding: 1rem 1.2rem;
  border-radius: 16px;
  font-size: 1.05rem;
  line-height: 1.6;
  border: 1.5px solid rgba(255,255,255,0.1);
  white-space: pre-wrap;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}
.bubble.bot { background: linear-gradient(145deg, rgba(16, 48, 100, 0.9) 0%, rgba(10, 34, 78, 0.95) 100%); align-self: flex-start; border-left: 3px solid var(--accent); border: 1.5px solid rgba(var(--accent-rgb), 0.2); border-left: 3px solid var(--accent); box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.bubble.user { background: linear-gradient(145deg, rgba(var(--blue-rgb), 0.45) 0%, rgba(var(--blue-rgb), 0.25) 100%); align-self: flex-end; border: 1.5px solid rgba(var(--light-rgb), 0.2); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.sender { display: block; font-size: 0.82rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.3rem; }
.bubble.bot .sender { color: var(--accent); }

.chat-input-area { width: 100%; border-top: 2px solid rgba(var(--accent-rgb), 0.25); padding: 0.35rem 1rem calc(env(safe-area-inset-bottom, 0px) + 0.4rem); display: flex; flex-direction: column; justify-content: center; gap: 0.25rem; background: rgba(6, 22, 52, 1); box-shadow: 0 -4px 16px rgba(0,0,0,0.3); }
.transcript-bar { min-height: 1rem; color: var(--muted); font-size: 0.84rem; font-style: italic; }
.chat-controls { display: flex; align-items: center; gap: 0.55rem; }
.chat-form { flex: 1; display: flex; align-items: center; justify-content: center; background: rgba(10, 37, 88, 0.95); border: 1.5px solid rgba(var(--accent-rgb), 0.25); border-radius: 999px; padding: 0.45rem 0.4rem 0.45rem 1.1rem; box-shadow: 0 2px 10px rgba(0,0,0,0.25); }
.chat-form input { flex: 1; background: transparent; color: var(--text); border: none; outline: none; padding: 0.65rem 0; font-size: 1.1rem; font-family: inherit; }
.chat-form button {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-form button svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mic-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.mic-button svg { width: 18px; height: 18px; stroke: #a8c4e0; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mic-button.listening { background: rgba(var(--accent-rgb), 0.18); border-color: var(--accent); }
.mic-button.listening svg { stroke: var(--accent); }

.hidden { display: none !important; }



/* ══════════════════════════════════════════
   KIOSK MODE — No responsive breakpoints.
   The app always renders at 1180x820 and
   scales via CSS transform to fit any screen.
   Mobile/tablet media queries removed.
══════════════════════════════════════════ */
