/* Hallmark · v2.0.0 · mode: redesign · depth: full · scope: app · genre: modern-minimal */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V4 · weakest: V, strictly tokenized colors, 4px spacing, SVG icons, zero emojis */

:root {
  /* Hallmark Stamp Tokens - Pristine Light Theme */
  --color-black: #050d1a;
  --color-sky-700: #0284c7;
  --color-navy-darkest: #030812;
  --color-sky-800: #0369a1;
  --color-navy-950: #040c1a;
  --color-emerald-700: #047857;
  --color-navy-900: #050e1d;
  --color-navy-bg: #f7f9fd;
  --color-navy-board-label: #081427;
  --color-green-card: #f0fdf4;
  --color-navy-frame-border: #e2e8f0;
  --color-navy-card: #f8fafd;
  --color-ink-primary: #0f1f38;
  --color-navy-surface: #f1f5f9;
  --color-green-live: #10b981;
  --color-navy-icon-wrap: #eef2ff;
  --color-green-border: #86efac;
  --color-blue-hover: #1456d6;
  --color-green-speaker: #15803d;
  --color-navy-round-ic: #eef2ff;
  --color-navy-border: #e2e8f0;
  --color-blue-pill-border: #93c5fd;
  --color-blue-primary: #185ee0;
  --color-sky-400: #38bdf8;
  --color-blue-500: #3980f4;
  --color-ink-secondary: #3d5478;
  --color-ink-muted: #63738a;
  --color-green-text: #065f46;
  --color-blue-stop-border: #7db1ff;
  --color-sky-300: #7dd3fc;
  --color-green-guidance-border: #86efac;
  --color-amber-warning-text: #92400e;
  --color-blue-300: #93c5fd;
  --color-slate-400: #94a3b8;
  --color-red-dark: #991b1b;
  --color-green-light-text: #065f46;
  --color-amber-700: #b45309;
  --color-red-700: #b91c1c;
  --color-sky-200: #bae6fd;
  --color-slate-300: #cbd5e1;
  --color-amber-600: #d97706;
  --color-indigo-100: #e0e7ff;
  --color-sky-100: #e0f2fe;
  --color-slate-200: #e2e8f0;
  --color-blue-light: #e8f0fe;
  --color-emerald-50: #065f46;
  --color-indigo-50: #eef2ff;
  --color-red-primary: #dc2626;
  --color-blue-50: #eff6ff;
  --color-green-50: #f0fdf4;
  --color-slate-100: #f1f5f9;
  --color-amber-primary: #f59e0b;
  --color-red-400: #f87171;
  --color-paper: #f7f9fd;
  --color-amber-400: #fbbf24;
  --color-amber-200: #fde68a;
  --color-red-100: #fee2e2;
  --color-amber-100: #fef3c7;
  --color-card-white: #f8fafd;
  --color-teal-600: #0f766e;
  --color-amber-50: #fffbeb;

  --color-primary: var(--color-blue-primary);
  --color-text-white: var(--color-card-white);
  --color-viewport-bg: #030812;
  --color-guidance-sub-bg: #d1fae5;

  --shadow-soft-0: rgba(0, 0, 0, 0.04);
  --shadow-soft-1: rgba(0, 0, 0, 0.08);
  --shadow-soft-2: rgba(0, 0, 0, 0.12);
  --shadow-soft-3: rgba(0, 0, 0, 0.16);
  --shadow-soft-4: rgba(0, 0, 0, 0.22);
  --shadow-soft-5: rgba(0, 0, 0, 0.3);

  --color-green-tint-15: rgba(16, 185, 129, 0.15);
  --color-green-tint-20: rgba(16, 185, 129, 0.2);
  --color-green-tint-40: rgba(16, 185, 129, 0.4);
  --color-speaker-glow-30: rgba(22, 163, 74, 0.3);
  --color-speaker-glow-40: rgba(22, 163, 74, 0.4);
  --color-red-tint-20: rgba(239, 68, 68, 0.2);
  --color-amber-tint-20: rgba(245, 158, 11, 0.2);
  --color-white-tint-08: rgba(255, 255, 255, 0.08);
  --color-white-tint-14: rgba(255, 255, 255, 0.14);
  --color-white-tint-20: rgba(255, 255, 255, 0.2);
  --color-white-tint-25: rgba(255, 255, 255, 0.25);
  --color-white-tint-40: rgba(255, 255, 255, 0.4);
  --color-blue-tint-10: rgba(31, 107, 255, 0.1);
  --color-blue-tint-15: rgba(31, 107, 255, 0.15);
  --color-blue-tint-20: rgba(31, 107, 255, 0.2);
  --color-blue-tint-25: rgba(31, 107, 255, 0.25);
  --color-blue-tint-35: rgba(31, 107, 255, 0.35);
  --color-blue-tint-50: rgba(31, 107, 255, 0.5);
  --color-header-bg: #f8fafd;
  --color-sky-tint-20: rgba(56, 189, 248, 0.2);
  --color-blue-glow-40: rgba(59, 130, 246, 0.4);

  --blue: var(--color-blue-primary);
  --blue-hover: var(--color-blue-hover);
  --blue-light: var(--color-blue-light);
  --blue-glow: var(--color-blue-tint-35);

  --navy-bg: var(--color-navy-bg);
  --navy-dark: var(--color-navy-900);
  --navy-card: var(--color-navy-card);
  --navy-surface: var(--color-navy-surface);
  --navy-border: var(--color-navy-border);

  --green-live: var(--color-green-live);
  --green-card: var(--color-green-card);
  --green-border: var(--color-green-border);
  --green-text: var(--color-green-text);

  --amber: var(--color-amber-primary);
  --red: var(--color-red-primary);
  --red-dark: var(--color-red-dark);

  --ink-primary: var(--color-ink-primary);
  --ink-secondary: var(--color-ink-secondary);
  --ink-muted: var(--color-ink-muted);
  --paper: var(--color-paper);
  --card-white: var(--color-card-white);
  --border-light: var(--color-slate-200);
  --focus-ring: var(--color-sky-400);

  --radius-phone: 40px;
  --radius-card: 16px;
  --radius-btn: 9999px;
  --radius-pill: 9999px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-main: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}


*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--navy-bg);
  color: var(--ink-primary);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Accessibility Utilities */
.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;
  top: -120px;
  left: 16px;
  z-index: 10000;
  background: var(--blue);
  color: var(--color-card-white);
  font-weight: 800;
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  box-shadow: 0 4px 12px var(--shadow-soft-3);
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
}

button,
input,
select {
  font: inherit;
}

/* ==========================================================================
   Master Presentation Header (View Switcher)
   ========================================================================== */
.master-header {
  background: var(--color-header-bg);
  border-bottom: 1px solid var(--border-light);
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-primary);
  font-size: 1.15rem;
  font-weight: 800;
}

.brand-app-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 4px 12px var(--shadow-soft-2);
  flex-shrink: 0;
}

.hero-brand-mark {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: -36px auto 14px;
  position: relative;
  z-index: 2;
}

.hero-app-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  object-fit: cover;
  box-shadow: 0 10px 24px var(--shadow-soft-4);
  border: 3px solid var(--color-card-white);
}

.about-logo-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 8px auto 16px;
}

.about-app-logo {
  width: 80px;
  height: 80px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 12px 28px var(--shadow-soft-4);
  border: 3px solid var(--color-card-white);
}

.header-brand .logo-icon {
  width: 32px;
  height: 32px;
}

.header-tagline {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 500;
  margin-left: 4px;
  white-space: nowrap;
}

.brand-ver-badge {
  font-size: 0.65rem;
  background: var(--color-blue-primary, #185ee0);
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-left: 5px;
  vertical-align: middle;
  display: inline-block;
  line-height: 1.4;
}

@media (max-width: 1250px) {
  .header-tagline {
    display: none;
  }
}



/* Responsive Desktop Top Navbar */
.master-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item-btn {
  background: transparent;
  color: var(--ink-secondary);
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav-item-btn:hover {
  color: var(--ink-primary);
  background: var(--color-slate-100);
}

.nav-item-btn.active {
  color: var(--blue);
  background: var(--color-blue-50);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-green-50);
  border: 1px solid var(--color-green-border);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-green-text);
}

.header-status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-green-live);
  animation: pulse-dot 1.8s infinite;
}

.header-action-btn {
  background: var(--color-card-white);
  color: var(--ink-secondary);
  border: 1px solid var(--color-slate-300);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.header-action-btn:hover {
  background: var(--color-slate-100);
  border-color: var(--blue);
  color: var(--blue);
}

.header-action-btn.btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--color-card-white);
}

.header-action-btn.header-btn-running {
  background: #dc2626 !important;
  border-color: #b91c1c !important;
  color: #ffffff !important;
}

.header-action-btn.header-btn-running:hover {
  background: #b91c1c !important;
}

.header-action-btn.btn-primary:hover {
  background: var(--blue-hover);
}

/* ==========================================================================
   Desktop Container & Application Stage
   ========================================================================== */
.main-wrapper {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.desktop-shell {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  margin: 0 auto;
  width: 100%;
}

/* Primary Application Stage (Expansive on PC, fluid on Phone) */
.app-stage,
.phone {
  width: 100%;
  max-width: 760px;
  background: var(--color-card-white);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  min-height: 720px;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Desktop Side Panel (Responsive Companion Telemetry)
   ========================================================================== */
.desktop-panel {
  display: none;
  width: 440px;
  background: var(--color-card-white);
  border-radius: 28px;
  padding: 24px;
  position: sticky;
  top: 80px;
  border: 1px solid var(--border-light);
}

.dp-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1.5px solid var(--border-light);
}

.dp-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--blue);
}

.dp-brand span {
  color: var(--ink-primary);
}

.dp-head .avatar {
  margin-left: auto;
  width: 36px;
  height: 36px;
  background: var(--color-slate-200);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

h1,
h2,
h3,
h4,
.desktop-panel h2,
.screen-head h2,
.board-header h2 {
  text-wrap: balance;
  overflow-wrap: break-word;
  min-width: 0;
  letter-spacing: normal;
}

.desktop-panel h2 {
  font-size: 1.05rem;
  margin: 20px 0 12px;
  font-weight: 800;
  color: var(--ink-primary);
}

.dp-guidance-card {
  display: flex;
  gap: 16px;
  background: var(--color-green-50);
  border: 2px solid var(--color-green-guidance-border);
  border-radius: var(--radius-card);
  padding: 16px;
  align-items: flex-start;
}

.dp-speaker-ic {
  background: var(--color-green-speaker);
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-card-white);
  font-size: 1.3rem;
  flex-shrink: 0;
  box-shadow: 0 4px 10px var(--color-speaker-glow-30);
}

.dp-guidance-text {
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--ink-primary);
  line-height: 1.25;
  margin: 0;
}

.dp-guidance-sub {
  color: var(--color-emerald-700);
  font-size: 0.85rem;
  font-weight: 700;
  margin-top: 8px;
}

.dp-risk-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dp-risk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--color-paper);
  border: 1.5px solid var(--border-light);
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}

.dp-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dp-item-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.dp-item-icon.red {
  background: var(--color-red-100);
  color: var(--color-red-dark);
}

.dp-item-icon.yellow {
  background: var(--color-amber-100);
  color: var(--color-amber-700);
}

.dp-item-icon.blue {
  background: var(--color-sky-100);
  color: var(--color-sky-800);
}

.dp-item-chip {
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
}

.dp-item-chip.red {
  background: var(--color-red-100);
  color: var(--color-red-700);
}

.dp-item-chip.yellow {
  background: var(--color-amber-100);
  color: var(--color-amber-700);
}

.dp-item-chip.blue {
  background: var(--color-sky-100);
  color: var(--color-sky-800);
}

.dp-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.dp-btn {
  background: var(--color-slate-200);
  color: var(--ink-primary);
  border: 0;
  border-radius: 12px;
  padding: 12px 8px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.dp-btn:hover {
  background: var(--color-slate-300);
}

.dp-btn.dp-btn-stop {
  background: var(--blue);
  color: var(--color-card-white);
}

.dp-btn.dp-btn-stop:hover {
  background: var(--blue-hover);
}

.dp-btn.dp-btn-start {
  background: #10b981;
  color: #ffffff;
  font-weight: 700;
}

.dp-btn.dp-btn-start:hover {
  background: #059669;
}

.dp-disclaimer {
  color: var(--ink-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  margin-top: 20px;
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
}

.dp-credit {
  color: var(--ink-muted);
  font-size: 0.76rem;
  margin-top: 8px;
  font-weight: 500;
}

/* ==========================================================================
   Screen Containers & General Screen Layout
   ========================================================================== */
.screen {
  display: none !important;
  padding: 12px 16px 24px;
  flex: 1;
  flex-direction: column;
}

.screen.screen-active {
  display: flex !important;
}

.screen:not(.screen-active) {
  display: none !important;
}

.screen-dark {
  background-color: var(--color-card-white);
  color: var(--ink-primary);
}

.screen-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.screen-head h2 {
  font-size: 1.25rem;
  margin: 0;
  font-weight: 800;
  color: var(--ink-primary);
}

.back-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: var(--color-slate-100);
  color: var(--ink-primary);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.back-btn:hover {
  background: var(--color-slate-200);
  border-color: var(--color-slate-300);
}

.dark-back {
  background: var(--color-slate-200);
  color: var(--ink-primary);
}

.dark-back:hover {
  background: var(--color-slate-300);
}

/* Common UI Elements */
.screen-pad {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
}

.btn-blue {
  background: var(--blue);
  color: var(--color-card-white);
  border: 0;
  border-radius: var(--radius-btn);
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 14px var(--blue-glow);
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-decoration: none;
}

.btn-blue:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
  border-radius: var(--radius-btn);
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-outline:hover {
  background: var(--blue-light);
}

.btn-ghost {
  background: var(--color-card-white);
  color: var(--ink-secondary);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-btn);
  padding: 16px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-ghost:hover {
  background: var(--color-slate-100);
  border-color: var(--color-slate-300);
  color: var(--ink-primary);
}

.link-btn {
  background: none;
  border: 0;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  padding: 12px;
  font-size: 0.95rem;
}

.link-btn.center {
  align-self: center;
}

/* ==========================================================================
   Screen 1: Welcome Screen
   ========================================================================== */
.welcome-hero {
  text-align: center;
}

.hero-art-photo {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  background: linear-gradient(135deg, #07152b 0%, #0d2b56 50%, #185ee0 100%);
  box-shadow: 0 8px 24px var(--shadow-soft-0);
}

.logo-eye {
  margin: 16px auto 4px;
  display: flex;
  justify-content: center;
}

.logo-eye svg {
  width: 68px;
  height: 44px;
}

.brand {
  font-size: 2.1rem;
  font-weight: 900;
  color: var(--blue);
  margin: 2px 0 0;
  letter-spacing: -0.02em;
}

.brand span {
  color: var(--ink-primary);
}

.tagline {
  color: var(--blue);
  font-weight: 700;
  font-size: 1.05rem;
  margin: 4px 0 0;
}

.sub {
  color: var(--ink-secondary);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 8px 0 16px;
}

.built-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-muted);
  margin: 8px 0 0;
}

/* ==========================================================================
   Screen 2: Camera Permission Screen
   ========================================================================== */
.perm-center {
  text-align: center;
  margin-top: 12px;
}

.perm-icon-wrapper {
  position: relative;
  width: 90px;
  height: 90px;
  background: var(--color-blue-50);
  border: 1px solid var(--color-blue-pill-border);
  border-radius: 24px;
  margin: 20px auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px var(--shadow-soft-0);
}

.perm-cam-icon {
  color: var(--blue);
}

.perm-icon-wrapper .perm-cam {
  font-size: 2.5rem;
}

.perm-check-badge {
  position: absolute;
  right: -6px;
  bottom: -6px;
  background: var(--color-emerald-700);
  color: var(--color-card-white);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.9rem;
  border: 3px solid var(--color-card-white);
}

.perm-title {
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--ink-primary);
}

.perm-subtitle {
  color: var(--ink-muted);
  font-size: 0.88rem;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 280px;
}

.perm-list-card {
  color: var(--ink-primary);
  background: var(--color-slate-100);
  border-radius: var(--radius-card);
  padding: 16px 16px;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--border-light);
}

.perm-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.perm-round-ic {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-card-white);
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
  color: var(--blue);
}

.perm-text {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--ink-primary);
}

.perm-text small {
  display: block;
  font-weight: 500;
  color: var(--ink-muted);
  font-size: 0.82rem;
}

/* ==========================================================================
   Screen 3: Live View (Main Mode) & Screen 7: Live View (Expanded)
   ========================================================================= */
.live-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.live-pill {
  background: var(--color-green-50);
  border: 1px solid var(--color-green-border);
  color: var(--color-green-text);
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: normal;
}

.live-pill.demo-pill {
  background: var(--color-blue-50);
  border-color: var(--color-blue-pill-border);
  color: var(--blue);
}

.live-objects-tag {
  color: var(--ink-muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.icon-btn-settings {
  background: transparent;
  border: 0;
  color: var(--ink-secondary);
  font-size: 1.15rem;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.icon-btn-settings:hover {
  color: var(--blue);
}

.live-top-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn-torch {
  background: var(--color-card-white);
  border: 1px solid var(--border-light);
  color: var(--ink-secondary);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}

.icon-btn-torch:hover {
  background: var(--color-blue-50);
  color: var(--blue);
  border-color: var(--blue);
}

.icon-btn-torch.torch-active {
  background: #fef08a !important;
  color: #854d0e !important;
  border-color: #facc15 !important;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.45);
}

.viewport-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 11;
  background: var(--color-viewport-bg);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.viewport-container video,
.viewport-container canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.viewport-container video {
  object-fit: cover;
}

.viewport-container canvas {
  object-fit: fill;
  pointer-events: none;
}

/* Guidance Card */
.guidance-box {
  background: var(--color-green-50);
  border: 2px solid var(--color-green-guidance-border);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-top: 16px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.speaker-btn {
  background: var(--color-green-speaker);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--color-card-white);
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.speaker-btn:active {
  transform: scale(0.94);
}

/* Real-time speech audio speaking pulse & glowing ripple */
@keyframes speakerSoundPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.7);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 14px rgba(22, 163, 74, 0);
    transform: scale(1.06);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(22, 163, 74, 0);
    transform: scale(1);
  }
}

.speaker-btn.speaking-pulse,
.dp-speaker-ic.speaking-active {
  animation: speakerSoundPulse 1.0s infinite ease-out !important;
  background: #16a34a !important;
}

.guidance-box.guidance-speaking,
.dp-guidance-card.guidance-speaking {
  border-color: #22c55e !important;
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.22) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.waveform-bar.speaking-active {
  background: #22c55e !important;
  animation-duration: 0.55s !important;
}

.voice-agent-btn {
  background: var(--color-card-white);
  border: 1.5px solid var(--border-light);
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.voice-agent-btn:hover {
  background: var(--color-blue-50);
  color: var(--blue-hover);
  border-color: var(--blue);
}

.voice-agent-btn.is-listening {
  background: var(--color-red-primary);
  border-color: var(--color-red-400);
  color: var(--color-card-white);
  box-shadow: 0 0 0 4px var(--color-red-tint-20);
}

.voice-chip-row {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.voice-chip-row::-webkit-scrollbar {
  display: none;
}

.voice-chip {
  background: var(--color-card-white);
  color: var(--ink-secondary);
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.voice-chip:hover {
  background: var(--color-blue-50);
  color: var(--blue);
  border-color: var(--blue);
  transform: translateY(-1px);
}

.voice-chip:active {
  transform: translateY(1px);
}

.voice-chip.special-chip {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.15));
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--blue, #2563eb);
  font-weight: 700;
}

.voice-chip.special-chip:hover {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.22), rgba(16, 185, 129, 0.25));
  border-color: var(--blue, #2563eb);
}

.gesture-hint-bar {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
  z-index: 10;
}

.gesture-pill {
  background: rgba(7, 21, 43, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  letter-spacing: 0.02em;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.guidance-content {
  flex: 1;
}

.guidance-heading {
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.25;
  color: var(--color-navy-board-label);
  margin: 0 0 4px;
}

.guidance-pill-sub {
  display: inline-block;
  background: var(--color-guidance-sub-bg);
  color: var(--color-green-text);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

/* Active Track Chip Row */
.active-chip-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.active-chip-row::-webkit-scrollbar {
  display: none;
}

.obj-chip {
  background: var(--color-card-white);
  border: 1px solid var(--border-light);
  color: var(--ink-primary);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}

.obj-chip-arrow {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.obj-chip-active {
  background: var(--color-blue-50);
  border-color: var(--color-blue-pill-border);
  color: var(--blue);
}

.obj-chip-standby {
  background: var(--color-slate-100, #f1f5f9);
  color: var(--ink-secondary, #475569);
  border-color: var(--border-light, #e2e8f0);
}

.chip-standby-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #94a3b8;
  display: inline-block;
}

.chip-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.6);
  animation: pulseLiveDot 1.5s infinite;
}

@keyframes pulseLiveDot {

  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.3);
    opacity: 0.6;
  }
}

/* Audio Waveform Visualizer (for Expanded View) */
.audio-visualizer-box {
  background: var(--color-card-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-card);
  padding: 16px;
  margin-top: 16px;
  text-align: center;
}

.vis-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 0 0 12px;
}

.waveform-bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 38px;
}

.waveform-bar {
  width: 4px;
  background: var(--blue);
  border-radius: 4px;
  animation: pulseWave 1.2s infinite ease-in-out;
}

.waveform-bar:nth-child(1) {
  height: 12px;
  animation-delay: 0.0s;
}

.waveform-bar:nth-child(2) {
  height: 24px;
  animation-delay: 0.1s;
}

.waveform-bar:nth-child(3) {
  height: 32px;
  animation-delay: 0.2s;
}

.waveform-bar:nth-child(4) {
  height: 18px;
  animation-delay: 0.3s;
}

.waveform-bar:nth-child(5) {
  height: 36px;
  animation-delay: 0.4s;
}

.waveform-bar:nth-child(6) {
  height: 26px;
  animation-delay: 0.5s;
}

.waveform-bar:nth-child(7) {
  height: 38px;
  animation-delay: 0.6s;
}

.waveform-bar:nth-child(8) {
  height: 14px;
  animation-delay: 0.7s;
}

.waveform-bar:nth-child(9) {
  height: 28px;
  animation-delay: 0.8s;
}

.waveform-bar:nth-child(10) {
  height: 20px;
  animation-delay: 0.9s;
}

.waveform-bar:nth-child(11) {
  height: 10px;
  animation-delay: 1.0s;
}

@keyframes pulseWave {

  0%,
  100% {
    transform: scaleY(0.4);
    opacity: 0.5;
  }

  50% {
    transform: scaleY(1.0);
    opacity: 1;
  }
}

/* 3-Card Row in Live View (Expanded) */
.detected-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}

.det-card {
  color: var(--ink-primary);
  background: var(--color-card-white);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 8px;
  text-align: center;
}

.det-card-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.det-card.red .det-card-icon {
  background: var(--color-red-tint-20);
  color: var(--color-red-400);
}

.det-card.yellow .det-card-icon {
  background: var(--color-amber-tint-20);
  color: var(--color-amber-400);
}

.det-card.blue .det-card-icon {
  background: var(--color-sky-tint-20);
  color: var(--blue);
}

.det-card-name {
  font-size: 0.82rem;
  font-weight: 800;
  margin: 0;
  color: var(--ink-primary);
}

.det-card-id {
  font-size: 0.72rem;
  color: var(--ink-muted);
  margin: 2px 0;
}

.det-card-dist {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--ink-secondary);
}

/* Quick Session Controls & Mini Pill Buttons */
.session-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 6px 0;
  flex-wrap: wrap;
}

.btn-mini {
  background: var(--color-slate-100);
  border: 1px solid var(--border-light);
  color: var(--ink-secondary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-mini:hover {
  background: var(--color-slate-200);
  color: var(--ink-primary);
}

.btn-mini.btn-primary {
  background: var(--color-blue-50);
  border-color: var(--color-blue-pill-border);
  color: var(--blue);
}

.btn-mini.btn-primary:hover {
  background: var(--blue);
  color: var(--color-card-white);
}

.btn-mini.btn-accent {
  background: var(--color-green-card);
  border-color: var(--color-green-border);
  color: var(--color-green-text);
}

.btn-mini:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Live Action Bar (Stop, Demo Mode, Settings) */
.live-action-bar {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
}

.action-nav-item {
  background: none;
  border: 0;
  color: var(--ink-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
  min-width: 68px;
}

.action-nav-item svg {
  width: 22px;
  height: 22px;
  color: var(--ink-secondary);
  transition: color 0.15s ease, transform 0.15s ease;
}

.action-nav-item span {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ink-secondary);
  transition: color 0.15s ease;
}

.action-nav-item:hover,
.action-nav-item:active {
  color: var(--blue);
}

.action-nav-item:hover svg,
.action-nav-item:hover span {
  color: var(--blue);
}

.btn-stop-main {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--blue);
  border: 4px solid var(--color-blue-stop-border);
  color: var(--color-card-white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 18px var(--color-blue-glow-40);
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.btn-stop-main:hover {
  transform: scale(1.04);
  background: var(--blue-hover);
}

.btn-stop-main:active {
  transform: scale(0.92);
}

.stop-icon-square {
  width: 16px;
  height: 16px;
  background: var(--color-card-white);
  border-radius: 3px;
  margin-bottom: 2px;
}

.stop-label {
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-card-white);
}

.btn-stop-main.btn-start-state {
  background: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.4) !important;
  box-shadow: 0 4px 18px rgba(16, 185, 129, 0.45) !important;
}

.btn-stop-main.btn-start-state:hover {
  background: #059669 !important;
}

.play-icon-triangle {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #ffffff;
  margin-bottom: 2px;
  margin-left: 3px;
}

.live-pill-dot.gray {
  background: #94a3b8 !important;
  box-shadow: none !important;
  animation: none !important;
}

/* ==========================================================================
   Screen 4: Navigation History Screen
   ========================================================================== */
.tabs-pill-row {
  display: flex;
  background: var(--color-slate-200);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin: 12px 0 16px;
}

.tab-pill {
  flex: 1;
  text-align: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-secondary);
  border: 0;
  background: transparent;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.tab-pill.active {
  background: var(--blue);
  color: var(--color-card-white);
  box-shadow: 0 2px 6px var(--blue-glow);
}

.history-cards-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-white);
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 12px 12px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.history-card-item:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 12px var(--color-blue-tint-10);
}

.history-thumb-img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-slate-200);
}

.history-content {
  flex: 1;
  min-width: 0;
}

.history-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin: 0;
  line-height: 1.3;
}

.history-title span {
  font-weight: 500;
  color: var(--ink-secondary);
}

.history-time {
  font-size: 0.78rem;
  color: var(--ink-muted);
  margin: 2px 0 0;
}

.history-chevron {
  color: var(--color-slate-400);
  font-size: 1.2rem;
  font-weight: 700;
}

/* Light Bottom Navigation */
.light-bottom-nav {
  display: flex;
  justify-content: space-around;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
}

.nav-item-btn {
  background: none;
  border: 0;
  color: var(--ink-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
}

.nav-item-btn small {
  font-size: 0.72rem;
}

.nav-item-btn.active {
  color: var(--blue);
}

/* ==========================================================================
   Screen 5: Settings Screen
   ========================================================================== */
.settings-section-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-primary);
  margin: 20px 0 8px;
}

.setting-card-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-white);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 8px;
}

.setting-card-row.clickable {
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.setting-card-row.clickable:hover {
  border-color: var(--blue);
}

.setting-row-ic {
  color: var(--blue);
  font-size: 1.25rem;
  flex-shrink: 0;
}

.setting-row-main {
  flex: 1;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-primary);
}

.setting-row-main small {
  display: block;
  color: var(--ink-muted);
  font-weight: 400;
  font-size: 0.8rem;
  margin-top: 1px;
}

.setting-radio-option {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-white);
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  padding: 12px 16px;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-primary);
  cursor: pointer;
}

.setting-radio-option input[type="radio"] {
  accent-color: var(--blue);
  width: 18px;
  height: 18px;
}

/* Toggle Switch */
.toggle-switch {
  width: 50px;
  height: 28px;
  background: var(--color-slate-300);
  border-radius: var(--radius-pill);
  border: 0;
  cursor: pointer;
  position: relative;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-card-white);
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px var(--shadow-soft-1);
}

.toggle-switch.switch-on {
  background: var(--blue);
}

.toggle-switch.switch-on::after {
  transform: translateX(22px);
}

/* ==========================================================================
   Screen 6: Demo Mode Screen
   ========================================================================== */
.demo-pill-badge {
  background: var(--color-blue-50);
  color: var(--blue);
  border: 1px solid var(--color-blue-pill-border);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  margin-left: auto;
}

.demo-instruction {
  color: var(--ink-secondary);
  font-size: 0.88rem;
  margin: 0 0 16px;
  line-height: 1.45;
}

.scenarios-cards-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.scenario-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-white);
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 8px 12px;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.scenario-card-item:hover,
.scenario-card-item.selected {
  border-color: var(--blue);
  box-shadow: 0 4px 14px var(--color-blue-tint-15);
}

.scenario-thumb {
  width: 64px;
  height: 48px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--color-slate-200);
  flex-shrink: 0;
}

.scenario-title {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink-primary);
}

.scenario-title span {
  font-weight: 500;
  color: var(--ink-secondary);
}

/* ==========================================================================
   Screen 8: Detection Overlay Controls Screen
   ========================================================================== */
.segmented-control {
  display: flex;
  background: var(--color-slate-200);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin: 8px 0 16px;
}

.seg-button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 12px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink-secondary);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.seg-button.seg-active {
  background: var(--blue);
  color: var(--color-card-white);
  box-shadow: 0 2px 6px var(--blue-glow);
}

.slider-container {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 8px 0 16px;
}

.slider-container input[type="range"] {
  flex: 1;
  accent-color: var(--blue);
}

.slider-value-pill {
  background: var(--color-slate-200);
  color: var(--ink-primary);
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  min-width: 48px;
  text-align: center;
}

.info-note-card {
  background: var(--color-slate-100);
  border-radius: 14px;
  padding: 16px;
  font-size: 0.85rem;
  color: var(--ink-secondary);
  line-height: 1.45;
  margin-top: 16px;
}

/* ==========================================================================
   Screen 9: AI Processing Screen
   ========================================================================== */
.ai-meta-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink-primary);
  margin: 4px 0 16px;
}

.pipeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pipeline-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card-white);
  border: 1.5px solid var(--border-light);
  border-radius: 16px;
  padding: 12px 16px;
}

.pipe-step-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--color-blue-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
  color: var(--blue);
}

.pipe-step-text {
  flex: 1;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--ink-primary);
}

.pipe-step-text small {
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 2px;
}

.pipe-status-check {
  color: var(--color-green-live);
  font-size: 1.25rem;
  font-weight: 900;
}

.pipe-status-pulse {
  width: 14px;
  height: 14px;
  background: var(--blue);
  border-radius: 50%;
  box-shadow: 0 0 0 4px var(--color-blue-tint-25);
  animation: pipePulse 1.2s infinite;
}

@keyframes pipePulse {
  0% {
    transform: scale(0.9);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.1);
    opacity: 1;
  }

  100% {
    transform: scale(0.9);
    opacity: 0.7;
  }
}

.pipe-status-pending {
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-slate-300);
  border-radius: 50%;
}

.current-models-card {
  background: var(--color-indigo-50);
  border-radius: 16px;
  padding: 16px;
  margin-top: 20px;
}

.current-models-card h3 {
  font-size: 0.95rem;
  font-weight: 800;
  margin: 0 0 12px;
  color: var(--ink-primary);
}

.model-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.model-row strong {
  color: var(--blue);
}

.model-row span {
  color: var(--ink-secondary);
}

/* ==========================================================================
   Screen 10: About Screen
   ========================================================================== */
.about-container {
  text-align: center;
  padding: 12px 0;
}

.about-desc {
  font-size: 0.9rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 12px 0 20px;
}

.about-details-card {
  background: var(--card-white);
  border: 1.5px solid var(--border-light);
  border-radius: 18px;
  padding: 16px 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.about-row-title {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ink-primary);
}

.about-row-sub {
  font-size: 0.82rem;
  color: var(--ink-muted);
  line-height: 1.4;
  margin-top: 2px;
}

.meta-official-branding {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

/* ==========================================================================
   Screen 11: Safety Notice Screen
   ========================================================================== */
.hero-art-safety {
  width: 100%;
  border-radius: 18px;
  display: block;
}

.safety-heading {
  font-size: 1.6rem;
  font-weight: 900;
  text-align: center;
  margin: 20px 0 8px;
  color: var(--ink-primary);
}

.safety-desc {
  text-align: center;
  font-size: 0.92rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin: 0 0 12px;
}

.safety-warning-box {
  background: var(--color-amber-50);
  border: 1.5px solid var(--color-amber-200);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 0.82rem;
  color: var(--color-amber-warning-text);
  line-height: 1.45;
  margin-top: 12px;
}

/* Hallmark Interactive States */
button:disabled,
input:disabled,
select:disabled,
[aria-disabled="true"] {
  opacity: 0.48;
  cursor: not-allowed;
  pointer-events: none;
}

button:active,
.btn-blue:active,
.btn-outline:active,
.dp-btn:active,
.speaker-btn:active,
.tool-btn:active {
  transform: translateY(1px);
  filter: brightness(0.96);
}

/* ==========================================================================
   Full Mobile, Tablet, & Desktop Auto-Detected Responsive Layout
   ========================================================================== */
/* PC Desktop & Laptop (Spacious Dual-Panel Dashboard Console) */
@media (min-width: 1025px) {
  .master-header {
    padding: 16px 32px;
  }

  .desktop-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, 1fr);
    gap: 32px;
    align-items: start;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0;
  }

  .app-stage,
  .phone {
    width: 100%;
    max-width: none;
    min-height: 740px;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    background: var(--color-card-white);
  }

  .viewport-container {
    height: 440px;
  }

  /* Automatically show companion telemetry panel on PC and Laptop */
  .desktop-panel {
    display: block;
    width: 100%;
    position: sticky;
    top: 96px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    border-radius: 24px;
  }
}

/* Tablet (Centered widescreen stage with stacked companion panel) */
@media (min-width: 769px) and (max-width: 1024px) {
  .master-header {
    padding: 16px 24px;
  }

  .desktop-shell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    max-width: 780px;
    margin: 0 auto;
    padding: 0;
  }

  .app-stage,
  .phone {
    width: 100%;
    max-width: 100%;
    border-radius: 20px;
    min-height: 700px;
    border: 1px solid var(--border-light);
    background: var(--color-card-white);
  }

  .viewport-container {
    height: 380px;
  }

  /* Companion panel neatly stacked below stage for tablet */
  .desktop-panel {
    display: block;
    width: 100%;
    max-width: 780px;
    position: static;
    max-height: none;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--border-light);
  }
}

/* Phone (Native Mobile Web App Experience - 100% full screen fluid) */
/* Phone & Tablet (Native Mobile Web App Experience - 100% full screen fluid) */
@media (max-width: 900px),
(max-device-width: 900px) {

  html,
  body {
    height: 100%;
    overflow-x: hidden;
  }

  .master-header {
    padding: 8px 14px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    height: 50px;
    box-sizing: border-box;
  }

  .header-brand {
    font-size: 1.05rem;
    gap: 8px;
  }

  .header-brand .brand-app-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
  }

  .header-tagline {
    display: none;
  }

  /* Mobile hides wide top navbar */
  .master-nav {
    display: none !important;
  }

  .header-actions {
    gap: 8px;
  }

  .header-status-pill {
    display: none !important;
  }

  .header-action-btn {
    padding: 6px 12px;
    font-size: 0.76rem;
  }

  /* Hide start live button in header on mobile when already in app flow */
  #headerStartLiveBtn {
    display: none !important;
  }

  .main-wrapper {
    padding: 0;
    margin: 0;
    max-width: 100%;
  }

  .desktop-shell {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
  }

  /* Phone stage fills viewport seamlessly as a native app */
  .app-stage,
  .phone {
    max-width: 100%;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    border: none;
    min-height: calc(100dvh - 50px);
    height: calc(100dvh - 50px);
    background: var(--color-card-white);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Inactive screens MUST ALWAYS be hidden */
  .screen,
  .screen:not(.screen-active) {
    display: none !important;
  }

  /* Only the single active screen is displayed */
  .screen.screen-active {
    display: flex !important;
    padding: 12px 14px max(16px, env(safe-area-inset-bottom));
    height: calc(100dvh - 50px);
    max-height: calc(100dvh - 50px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

  /* LIVE NAVIGATION SCREENS: Fixed native viewport, ZERO page scroll - ONLY WHEN ACTIVE */
  .screen.screen-active[data-screen="live"],
  .screen.screen-active[data-screen="live-expanded"] {
    overflow: hidden !important;
    height: calc(100dvh - 50px) !important;
    max-height: calc(100dvh - 50px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 8px 12px max(10px, env(safe-area-inset-bottom)) !important;
    box-sizing: border-box;
  }

  .live-top-bar {
    margin-bottom: 6px;
    flex-shrink: 0;
  }

  /* Camera Viewport: Stays prominent, locked in place, never scrolls away */
  .viewport-container {
    flex: 1 1 200px;
    min-height: 180px;
    max-height: 38vh;
    width: 100%;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    background: var(--color-viewport-bg);
    margin: 0;
    flex-shrink: 0;
    box-shadow: 0 4px 14px var(--shadow-soft-2);
  }

  /* Guidance Card directly below camera: high contrast, clear text */
  .guidance-box {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 14px;
    gap: 10px;
    flex-shrink: 0;
  }

  .guidance-heading {
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 2px;
    color: var(--color-navy-board-label) !important;
  }

  .guidance-pill-sub {
    font-size: 0.72rem;
    padding: 2px 8px;
  }

  .speaker-btn,
  .voice-agent-btn {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    flex-shrink: 0;
  }

  .voice-chip-row {
    margin-top: 6px;
    gap: 6px;
    flex-shrink: 0;
  }

  .voice-chip {
    padding: 5px 10px;
    font-size: 0.72rem;
  }

  .active-chip-row {
    margin-top: 6px;
    gap: 6px;
    flex-shrink: 0;
  }

  .obj-chip {
    padding: 4px 8px;
    font-size: 0.7rem;
    gap: 4px;
  }

  /* Hide raw developer debug buttons on mobile live screen */
  .session-controls {
    display: none !important;
  }

  /* Native Bottom Action Bar */
  .live-action-bar {
    margin-top: auto;
    padding-top: 8px;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border-light);
    flex-shrink: 0;
  }

  .btn-stop-main {
    width: 60px;
    height: 60px;
  }

  .action-nav-item svg {
    width: 20px;
    height: 20px;
  }

  .action-nav-item span {
    font-size: 0.72rem;
  }

  .hero-art-photo {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
    border-radius: 16px;
    margin: 0 auto 12px;
  }

  /* Automatically hide desktop panel on phone */
  .desktop-panel {
    display: none !important;
  }

  /* Hide master marketing footer banner on phone so live view is clean */
  .master-footer-banner {
    display: none !important;
  }
}

/* Master Footer Showcase Banner */
.master-footer-banner {
  background: var(--color-card-white);
  border-top: 1px solid var(--border-light);
  margin-top: 48px;
  padding: 32px 24px;
}

.footer-banner-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.fb-brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fb-logo-svg {
  width: 44px;
  height: 28px;
}

.fb-brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin: 0;
  color: var(--blue);
}

.fb-brand-title span {
  color: var(--ink-primary);
}

.fb-tagline {
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin: 2px 0 0;
}

.fb-features-list {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.fb-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--color-slate-100);
  border: 1px solid var(--border-light);
  padding: 8px 12px;
  border-radius: var(--radius-md);
}

.fb-feature-icon {
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fb-feature-text {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-primary);
  line-height: 1.25;
}

.fb-feature-text small {
  display: block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
}

.fb-right-group {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.fb-hackathon-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-blue-50);
  border: 1px solid var(--color-blue-pill-border);
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
}

.fb-meta-pill-logo {
  width: 16px;
  height: 16px;
}

.fb-credit-box {
  text-align: right;
}

.fb-credit-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-primary);
}

.fb-credit-sub {
  font-size: 0.75rem;
  color: var(--ink-muted);
  line-height: 1.35;
}

/* Camera blocked / fallback banner */
.camera-banner {
  margin-top: 12px;
  background: var(--color-amber-50);
  border: 2px solid var(--color-amber-primary);
  border-radius: var(--radius-card);
  padding: 12px 16px;
  color: var(--color-amber-warning-text);
}

.camera-banner-text {
  margin: 0 0 12px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.camera-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ==========================================================================
   Meta Ray-Ban Smart Glasses Mode & Multilingual Guidance
   ========================================================================== */
.lang-select-dropdown {
  background: var(--color-slate-100, #f1f5f9);
  color: var(--ink-primary, #0f172a);
  border: 1px solid var(--border-light, #cbd5e1);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.lang-select-dropdown:focus {
  border-color: var(--blue, #185ee0);
  box-shadow: 0 0 0 3px rgba(24, 94, 224, 0.15);
}

.rayban-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #10b981;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  animation: pulseRayban 2.5s infinite;
}

@keyframes pulseRayban {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

.pocket-saver-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #e2e8f0;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pocket-saver-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.pocket-blackout-overlay {
  position: absolute;
  inset: 0;
  background: #000000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 24px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
}

.pocket-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 320px;
}

.pocket-pulse-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 2px solid rgba(16, 185, 129, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pocketPulse 2s infinite ease-in-out;
}

@keyframes pocketPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 15px rgba(16, 185, 129, 0.2); }
  50% { transform: scale(1.1); box-shadow: 0 0 30px rgba(16, 185, 129, 0.45); }
}

.pocket-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

.pocket-sub {
  color: #94a3b8;
  font-size: 0.85rem;
  line-height: 1.45;
  margin: 0;
}

.pocket-tap-prompt {
  margin-top: 18px;
  color: #10b981;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 20px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px dashed rgba(16, 185, 129, 0.4);
}

/* Reduced motion accessibility fallback */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}