/* ==========================================================================
   Ring Concierge AI - Luxury Engineering & Security Surveillance System
   Designed for Amazon Developer Hackathon 2026: Build, Ship, Shape
   Aesthetic: Obsidian Luxury Dark Mode • Frosted Titanium • Precision Telemetry
   ========================================================================== */

:root {
  --bg-obsidian: #04060a;
  --bg-surface: #0a0e17;
  --bg-card: rgba(14, 20, 32, 0.72);
  --bg-card-hover: rgba(22, 30, 48, 0.82);
  --bg-elevated: rgba(26, 36, 56, 0.6);

  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-cyan-glow: rgba(0, 210, 255, 0.35);

  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --text-code: #38bdf8;

  --accent-cyan: #00d2ff;
  --accent-cyan-dark: #0088cc;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --shadow-panel: 0 16px 40px -10px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --shadow-glow-cyan: 0 0 24px rgba(0, 210, 255, 0.2);
  --shadow-glow-alexa: 0 0 35px rgba(0, 210, 255, 0.5);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-obsidian);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Subtle Lighting Mesh */
.ambient-mesh {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.mesh-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.12;
}
.orb-cyan {
  width: 550px;
  height: 550px;
  background: var(--accent-cyan);
  top: -150px;
  left: 5%;
}
.orb-indigo {
  width: 600px;
  height: 600px;
  background: var(--accent-indigo);
  bottom: -200px;
  right: 10%;
}
.orb-amber {
  width: 400px;
  height: 400px;
  background: var(--accent-amber);
  top: 40%;
  left: 45%;
  opacity: 0.04;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.top-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: rgba(4, 6, 10, 0.88);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(0, 210, 255, 0.15), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(0, 210, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(0, 210, 255, 0.15);
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand-title-row h1 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.system-status-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.04em;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 6px var(--accent-emerald);
  animation: pulse-dot-anim 2s infinite;
}
@keyframes pulse-dot-anim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.brand-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  font-weight: 500;
}

/* Center Telemetry Bar */
.telemetry-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 6px 18px;
}
.telemetry-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.telemetry-label {
  color: var(--text-tertiary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.telemetry-val {
  color: var(--text-secondary);
  font-weight: 500;
}
.telemetry-sep {
  color: var(--border-medium);
  font-size: 11px;
}
.highlight-cyan {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Right Nav Controls */
.nav-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}
.control-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}
.control-btn:hover {
  background: rgba(255, 255, 255, 0.09);
  color: var(--text-primary);
  border-color: var(--border-medium);
}
.btn-glass-accent {
  background: rgba(0, 210, 255, 0.08);
  color: var(--accent-cyan);
  border-color: rgba(0, 210, 255, 0.25);
}
.btn-glass-accent:hover {
  background: rgba(0, 210, 255, 0.16);
  border-color: var(--accent-cyan);
  color: #ffffff;
}
.btn-github {
  background: #1e2533;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.1);
}
.btn-github:hover {
  background: #2b3548;
}

/* ==========================================================================
   CONSOLE WORKSTATION LAYOUT
   ========================================================================== */
.console-layout {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1.25fr 1.15fr 0.95fr;
  gap: 20px;
  padding: 22px 28px;
  max-width: 1780px;
  margin: 0 auto;
}

@media (max-width: 1440px) {
  .console-layout {
    grid-template-columns: 1.2fr 1fr;
  }
}
@media (max-width: 1080px) {
  .console-layout {
    grid-template-columns: 1fr;
  }
  .telemetry-bar {
    display: none;
  }
}

/* Panel Containers */
.console-panel {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.panel-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.device-icon-box {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.2);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-icon-box.box-bedrock {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.25);
  color: #a5b4fc;
}
.device-icon-box.box-tv {
  background: rgba(168, 85, 247, 0.1);
  border-color: rgba(168, 85, 247, 0.25);
  color: #c084fc;
}
.device-icon-box.box-db {
  background: rgba(245, 158, 11, 0.1);
  border-color: rgba(245, 158, 11, 0.25);
  color: #fbbf24;
}

.panel-identity h2, .panel-identity h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.panel-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.04em;
  margin-top: 2px;
}

.mode-switch-group {
  display: flex;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}
.mode-chip {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  background: transparent;
  color: var(--text-tertiary);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
}
.mode-chip.active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

/* ==========================================================================
   PANEL 1: RING CAMERA SURVEILLANCE
   ========================================================================== */
.camera-viewport {
  position: relative;
  width: 100%;
  height: 290px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #000000;
  border: 1px solid var(--border-medium);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.8);
}

.camera-feed-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: filter 0.5s ease;
}

/* Infrared Night Vision Mode Filter */
.camera-viewport.night-mode .camera-feed-img {
  filter: grayscale(100%) brightness(1.2) contrast(1.4) sepia(100%) hue-rotate(85deg) saturate(300%);
}

.camera-hud-layer {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 12px 16px;
  background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0) 50%, rgba(0,0,0,0.65) 100%);
  pointer-events: none;
}

.hud-top, .hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hud-rec-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-rose);
  box-shadow: 0 0 10px var(--accent-rose);
  animation: blink-rec 1.6s infinite;
}
@keyframes blink-rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.rec-label {
  font-weight: 700;
  color: var(--accent-rose);
  letter-spacing: 0.05em;
}
.bitrate-tag {
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
}

.hud-time-cluster {
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.5);
  padding: 3px 8px;
  border-radius: 4px;
}

/* AI Bounding Box Tracker */
.ai-bounding-box {
  position: absolute;
  top: 28%;
  left: 36%;
  width: 170px;
  height: 180px;
  border: 1px dashed rgba(0, 210, 255, 0.45);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.corner-bracket {
  position: absolute;
  width: 12px;
  height: 12px;
  border-color: var(--accent-cyan);
  border-style: solid;
}
.corner-bracket.tl { top: -2px; left: -2px; border-width: 2px 0 0 2px; }
.corner-bracket.tr { top: -2px; right: -2px; border-width: 2px 2px 0 0; }
.corner-bracket.bl { bottom: -2px; left: -2px; border-width: 0 0 2px 2px; }
.corner-bracket.br { bottom: -2px; right: -2px; border-width: 0 2px 2px 0; }

.target-crosshair {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(0, 210, 255, 0.8);
  border-radius: 50%;
}

.target-meta {
  position: absolute;
  top: -24px;
  left: -2px;
  display: flex;
  gap: 4px;
}
.target-type {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background: var(--accent-cyan);
  color: #04060a;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.04em;
}
.target-confidence {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  background: rgba(0, 0, 0, 0.7);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 3px;
  border: 1px solid rgba(0, 210, 255, 0.4);
}

.security-level-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 2px 6px;
  border-radius: 3px;
}
.hud-subtext {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  margin-left: 8px;
}
.hud-lens-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.45);
}

/* Persona Segmented Grid */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.section-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
}
.section-hint {
  font-size: 11px;
  color: var(--text-tertiary);
}

.persona-segmented-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.persona-tile {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.persona-tile:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}
.persona-tile.active {
  background: rgba(0, 210, 255, 0.1);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.18);
}
.tile-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.persona-tile.active .tile-icon {
  background: rgba(0, 210, 255, 0.18);
  color: var(--accent-cyan);
}
.tile-content strong {
  display: block;
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
}
.tile-content span {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Hardware Trigger Cluster */
.hardware-trigger-cluster {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
}
.hw-btn {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}
.hw-btn-accent {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  color: #04060a;
  box-shadow: 0 4px 18px rgba(0, 210, 255, 0.35);
}
.hw-btn-accent:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0, 210, 255, 0.5);
}
.hw-btn-subtle {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  border-color: var(--border-subtle);
}
.hw-btn-subtle:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* Speaker Module */
.speaker-module {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.speaker-module-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.speaker-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.audio-spectrum-canvas {
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.4);
}
.speaker-transcript-panel {
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.04);
  border-left: 2px solid var(--accent-cyan);
  padding: 8px 12px;
  border-radius: var(--radius-xs);
  min-height: 42px;
}
.transcript-placeholder {
  color: var(--text-tertiary);
  font-style: italic;
  font-size: 12px;
}

/* ==========================================================================
   PANEL 2: AMAZON BEDROCK & ALEXA+ CORE
   ========================================================================== */
.agent-tier-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: rgba(99, 102, 241, 0.12);
  color: #a5b4fc;
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.pipeline-track-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.model-telemetry-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.model-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
}
.sparkle-glow {
  color: #a855f7;
  font-size: 13px;
}
.latency-readout {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--accent-emerald);
}

.pipeline-milestones {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
}
.milestone-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  transition: all 0.25s ease;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-tertiary);
}
.step-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
}
.milestone-step.active .step-num {
  color: var(--accent-cyan);
}
.milestone-step.active .step-title {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}

.milestone-line {
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
  margin: 0 8px;
}

.agent-decision-terminal {
  background: #06090f;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 11px;
}
.terminal-header {
  display: flex;
  justify-content: space-between;
  color: var(--text-tertiary);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  padding-bottom: 4px;
}
.syntax-keyword { color: #a5b4fc; font-weight: 600; }
.syntax-string { color: var(--accent-emerald); font-weight: 600; }
.syntax-val { color: #e2e8f0; }

/* Echo Hardware Card */
.echo-hardware-card {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.echo-display-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
}
.echo-light-ring-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.echo-light-ring {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #00d2ff, #3b82f6, #00d2ff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-glow-alexa);
  animation: rotate-ring 4s linear infinite;
  transition: all 0.3s ease;
}
.echo-light-ring.speaking {
  animation: rotate-ring 1.2s linear infinite;
  box-shadow: 0 0 45px rgba(0, 210, 255, 0.85);
}
@keyframes rotate-ring {
  100% { transform: rotate(360deg); }
}

.echo-center-core {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #080c14;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
}

.echo-info-cluster {
  flex: 1;
}
.echo-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.echo-title-row h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.volume-indicator {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-tertiary);
}
.echo-status-state {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 3px;
}

.ambient-whisper-module {
  background: rgba(0, 210, 255, 0.04);
  border: 1px solid rgba(0, 210, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}
.whisper-tagline {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.whisper-text-box {
  font-size: 13px;
  color: #e2e8f0;
  line-height: 1.4;
}

.input-caption {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 6px;
  display: block;
}
.interaction-input-row {
  display: flex;
  gap: 6px;
}
.command-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  outline: none;
  transition: border-color 0.2s ease;
}
.command-input:focus {
  border-color: var(--accent-cyan);
}

.alexa-response-quote {
  background: rgba(0, 0, 0, 0.35);
  border-left: 2px solid var(--accent-blue);
  border-radius: var(--radius-xs);
  padding: 8px 10px;
  margin-top: 8px;
}
.quote-speaker {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-blue);
  display: block;
  margin-bottom: 2px;
}
.alexa-response-quote p {
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.4;
}

/* ==========================================================================
   PANEL 3: FIRE TV & DYNAMODB LEDGER
   ========================================================================== */
.panel-telemetry {
  gap: 16px;
}
.compact-header {
  padding-bottom: 6px;
}

.tv-bezel-screen {
  position: relative;
  width: 100%;
  height: 170px;
  background: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #1e293b;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
}
.tv-ambient-art {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 100%);
  display: flex;
  align-items: flex-end;
  padding: 12px;
}
.prime-tag {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  color: var(--accent-cyan);
  background: rgba(0, 210, 255, 0.15);
  padding: 2px 5px;
  border-radius: 2px;
  display: inline-block;
  margin-bottom: 2px;
}
.tv-stream-title {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  display: block;
}

/* Frosted Picture-in-Picture Banner */
.firetv-pip-hud {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 250px;
  background: rgba(15, 23, 42, 0.94);
  backdrop-filter: blur(16px);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  padding: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8), 0 0 15px rgba(0, 210, 255, 0.25);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 20;
}
.firetv-pip-hud.hidden {
  opacity: 0;
  transform: translateY(-16px) scale(0.96);
  pointer-events: none;
}
.pip-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.pip-alert-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}
.pip-dismiss-btn {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 16px;
  cursor: pointer;
}
.pip-content-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pip-icon-bubble {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pip-copy h4 {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}
.pip-copy p {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
}
.pip-actions-row {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}
.pip-btn-action {
  flex: 1;
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  cursor: pointer;
}
.pip-btn-primary {
  background: var(--accent-cyan);
  color: #04060a;
  border: none;
}

/* DynamoDB Ledger */
.ledger-counter {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}
.ledger-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.45);
  max-height: 240px;
}
.ledger-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}
.ledger-table th {
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-tertiary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-subtle);
  text-align: left;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.05em;
}
.ledger-table td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
}
.ledger-table tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.time-col {
  font-family: var(--font-mono);
  color: var(--text-tertiary);
  font-size: 10px;
}

.tag-pill {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}
.tag-delivery { background: rgba(0, 210, 255, 0.12); color: var(--accent-cyan); }
.tag-neighbor { background: rgba(16, 185, 129, 0.12); color: var(--accent-emerald); }
.tag-solicitor { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.tag-suspicious { background: rgba(244, 63, 94, 0.12); color: var(--accent-rose); }

/* ==========================================================================
   FEEDBACK MODAL
   ========================================================================== */
.modal-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-scrim.hidden {
  display: none;
}
.modal-dialog {
  background: #090d16;
  border: 1px solid rgba(0, 210, 255, 0.25);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 210, 255, 0.15);
  border-radius: var(--radius-lg);
  max-width: 650px;
  width: 100%;
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.modal-title-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-subtle);
}
.badge-amazon-official {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: #ffaa22;
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 2px;
}
.modal-title-cluster h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}
.modal-close-icon {
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-size: 22px;
  cursor: pointer;
}
.modal-content-scroller {
  padding: 20px 24px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: #cbd5e1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.callout-box {
  background: rgba(255, 153, 0, 0.08);
  border: 1px solid rgba(255, 153, 0, 0.25);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  color: #fed7aa;
  font-size: 12px;
}
.feedback-section h3 {
  font-size: 14px;
  color: var(--accent-cyan);
  margin-bottom: 4px;
}
.feedback-section ul, .feedback-section ol {
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.modal-action-bar {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0, 0, 0, 0.25);
}
