/* ==========================================================================
   GuardRadar — Premium Marketing Site v2
   Linear.app-grade scroll narrative. Dark. Sharp. 4K-clean.
   ========================================================================== */

:root {
  /* Colors — locked brand palette */
  --bg: #0a0a0a;
  --bg-2: #0c0c12;
  --bg-3: #14141c;
  --bg-4: #1c1c26;
  --bg-5: #25252f;
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.1);
  --line-3: rgba(255, 255, 255, 0.18);
  --text: #f5f5f7;
  --text-2: #d1d5db;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;
  --purple: #8B5CF6;
  --purple-2: #a78bfa;
  --purple-deep: #6d28d9;
  --purple-soft: rgba(139, 92, 246, 0.15);
  --green: #22c55e;
  --green-2: #4ade80;
  --green-soft: rgba(34, 197, 94, 0.15);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.15);
  --red: #ef4444;
  --red-2: #f87171;
  --red-soft: rgba(239, 68, 68, 0.2);
  --red-glow: rgba(239, 68, 68, 0.5);

  /* Spacing scale */
  --container: 1280px;
  --gutter: 32px;
  --section-pad: clamp(80px, 12vh, 160px);

  /* Type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Radii */
  --r: 10px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-2xl: 32px;
}

/* ============== Reset / Base ============== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: 0; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Subtle film grain overlay on the entire site */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============== Container ============== */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  position: relative;
}

/* ============== Typography ============== */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--text);
}
h1 {
  font-size: clamp(48px, 6.5vw, 96px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.96;
}
h2 {
  font-size: clamp(36px, 4.8vw, 72px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.0;
}
h3 { font-size: clamp(20px, 1.8vw, 28px); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { line-height: 1.6; color: var(--text-2); }
.lead {
  font-size: clamp(17px, 1.35vw, 21px);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 56ch;
  font-weight: 400;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--purple-2);
  font-weight: 600;
  margin-bottom: 28px;
}
.hero-text {
  position: relative;
}
.hero-text::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -140px;
  right: -60px;
  bottom: -80px;
  background:
    radial-gradient(ellipse 60% 50% at 25% 25%, rgba(255, 255, 255, 0.06), transparent 60%),
    radial-gradient(ellipse 70% 60% at 55% 65%, rgba(139, 92, 246, 0.12), transparent 65%);
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}
.hero-text::after {
  content: '';
  position: absolute;
  top: 18px;
  left: -32px;
  width: 3px;
  height: 56px;
  background: linear-gradient(180deg, var(--purple), transparent);
  border-radius: 2px;
  pointer-events: none;
}
.eyebrow.green { color: var(--green-2); }
.eyebrow.amber { color: var(--amber); }
.eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 8px currentColor;
}
.accent { color: var(--purple-2); }
.accent-green { color: var(--green-2); }

/* ============== Buttons ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--r);
  transition: all 0.2s var(--ease);
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--purple);
  color: white;
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover {
  background: var(--purple-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -8px rgba(139, 92, 246, 0.6), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-ghost {
  background: var(--bg-3);
  color: var(--text);
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--bg-4);
  border-color: var(--line-3);
}
.btn-arrow {
  transition: transform 0.2s var(--ease);
  display: inline-block;
}
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-sm { padding: 9px 14px; font-size: 0.85rem; }

/* ============== Nav ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  background: rgba(10, 10, 10, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: all 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(10, 10, 10, 0.85);
  border-bottom-color: var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.logo-img { width: 28px; height: 28px; border-radius: 6px; }
.nav-links {
  display: flex;
  gap: 28px;
}
.nav-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; padding: 0; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 10px; background: var(--bg-3); border: 1px solid var(--line-2); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); position: relative; border-radius: 1px; transition: background 0.2s var(--ease); }
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s var(--ease), top 0.2s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open { background: var(--purple); border-color: var(--purple); }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); background: white; }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); background: white; }

.mobile-menu {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(10, 10, 10, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 92px 28px 40px;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  transform: translateY(-100%);
  transition: transform 0.35s var(--ease);
  max-height: 100vh;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}
.mobile-menu a:hover, .mobile-menu a:active { color: var(--purple-2); }
.mobile-menu .mobile-cta {
  margin-top: 20px;
  background: var(--purple);
  color: white;
  padding: 16px 20px;
  border-radius: 12px;
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 24px -8px rgba(139, 92, 246, 0.5);
}
.mobile-menu .mobile-cta:hover, .mobile-menu .mobile-cta:active { color: white; }

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  body.menu-open { overflow: hidden; }
}

/* ============== Hero ============== */
.hero {
  min-height: 100vh;
  padding: 120px 0 60px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 80%;
  background: radial-gradient(closest-side, var(--purple-soft), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-text { max-width: 620px; }
.hero h1 { margin-bottom: 48px; }
.hero h1 .accent { display: inline-block; }
.hero .lead { margin-bottom: 36px; }
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-dim);
}
.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero-image {
  position: relative;
  border-radius: var(--r-xl);
  overflow: visible;
}
.hero-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: linear-gradient(135deg, var(--purple-soft), transparent 50%, var(--green-soft));
  border-radius: var(--r-2xl);
  filter: blur(40px);
  z-index: -1;
  opacity: 0.6;
}
.hero-screenshot {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  box-shadow:
    0 60px 120px -30px rgba(0, 0, 0, 0.8),
    0 30px 60px -20px rgba(139, 92, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transform: perspective(2000px) rotateY(-3deg) rotateX(1deg);
  transition: transform 0.6s var(--ease);
}
.hero-screenshot:hover { transform: perspective(2000px) rotateY(-1deg) rotateX(0deg); }

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 2;
}
.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(180deg, var(--text-dim), transparent);
  position: relative;
  overflow: hidden;
}
.scroll-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 20px;
  background: var(--purple);
  animation: scrollDown 2s ease-in-out infinite;
}
@keyframes scrollDown {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(250%); }
}

@media (max-width: 900px) {
  .hero { padding: 100px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-screenshot { transform: none; }
}

/* ============== Scene (scroll-driven section) ============== */
.scene {
  min-height: 100vh;
  padding: var(--section-pad) 0;
  position: relative;
  display: flex;
  align-items: center;
}
.scene-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
  width: 100%;
}
.scene-grid.reverse {
  grid-template-columns: 1.15fr 0.85fr;
}

/* Wide-image variant for sections where the screenshot needs more room */
.scene-grid.wide-img { grid-template-columns: 0.7fr 1.3fr; gap: 60px; }
.scene-grid.wide-img.reverse { grid-template-columns: 1.3fr 0.7fr; }
@media (max-width: 900px) {
  .scene-grid.wide-img, .scene-grid.wide-img.reverse { grid-template-columns: 1fr; gap: 40px; }
}

/* Scene 06 (Shifts) needs the image on the RIGHT for the L/R alternation
   pattern. With the calendar block being huge, we swap via CSS order rather
   than HTML element order — keeps the diff small. */
#shifts .scene-grid > .scene-image { order: 2; }
#shifts .scene-grid > .scene-text  { order: 1; }
.scene-grid.reverse .scene-text { order: 2; }
.scene-grid.reverse .scene-image { order: 1; }

.scene-text { max-width: 540px; }
.scene-num {
  display: inline-block;
  font-family: 'Inter', monospace;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--purple-2);
  margin-bottom: 24px;
  padding: 6px 12px;
  background: var(--purple-soft);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 100px;
}
.scene h2 { margin-bottom: 24px; }
.scene .lead { margin-bottom: 28px; }
.scene-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 28px;
}
.scene-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.5;
}
.scene-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  margin-top: 9px;
}
.scene-list strong { color: var(--text); font-weight: 600; }

.scene-image {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
}
.scene-image::before {
  content: '';
  position: absolute;
  inset: -10px;
  background: linear-gradient(135deg, var(--purple-soft), transparent 60%);
  border-radius: var(--r-2xl);
  filter: blur(30px);
  z-index: -1;
  opacity: 0.4;
}
.scene-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--r-xl);
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}

/* Sticky pin effect — text stays in view while image scrolls past */
.scene-pin {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: start;
  width: 100%;
}
.scene-pin .scene-text {
  position: sticky;
  top: 25vh;
  align-self: start;
  max-width: 500px;
}
.scene-pin .scene-image-stack {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

@media (max-width: 900px) {
  .scene-pin, .scene-grid, .scene-grid.reverse { grid-template-columns: 1fr; gap: 40px; }
  .scene-pin .scene-text { position: static; }
  .scene-grid.reverse .scene-text { order: 1; }
  .scene-grid.reverse .scene-image { order: 2; }
  .scene-pin .scene-image-stack { gap: 40px; }
}

/* ============== Spot check alert (CSS-built dramatic) ============== */
.alert-panel {
  background: linear-gradient(180deg, #0a0a0a 0%, #1a0608 100%);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--r-2xl);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 60px 120px -20px rgba(239, 68, 68, 0.3),
    inset 0 0 100px rgba(239, 68, 68, 0.05);
  aspect-ratio: 9/16;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.alert-panel::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 100%; height: 100%;
  background: radial-gradient(circle at center, var(--red-soft), transparent 60%);
  transform: translate(-50%, -50%);
  animation: alertPulse 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes alertPulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}
.alert-status {
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  margin-bottom: 60px;
  position: relative;
  z-index: 1;
}
.alert-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 2px solid var(--red);
  margin: 0 auto 40px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  animation: ringPulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 60px var(--red-glow), inset 0 0 60px var(--red-glow);
}
@keyframes ringPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 60px var(--red-glow), inset 0 0 60px var(--red-glow); }
  50% { transform: scale(1.08); box-shadow: 0 0 100px var(--red-glow), inset 0 0 100px var(--red-glow); }
}
.alert-ring::before,
.alert-ring::after {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  border: 1px solid rgba(239, 68, 68, 0.3);
  animation: ringExpand 2s ease-out infinite;
}
.alert-ring::after {
  animation-delay: 1s;
}
@keyframes ringExpand {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}
.alert-title {
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 800;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 16px;
  text-shadow: 0 0 30px var(--red-glow);
  position: relative;
  z-index: 1;
}
.alert-sub {
  font-size: 0.95rem;
  color: var(--text-2);
  max-width: 320px;
  margin: 0 auto 40px;
  position: relative;
  z-index: 1;
}
.alert-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: #052e16;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 20px 60px;
  border-radius: 14px;
  box-shadow: 0 12px 28px -6px rgba(34, 197, 94, 0.5);
  position: relative;
  z-index: 1;
  letter-spacing: 0.01em;
}
.alert-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  font-size: 0.85rem;
  color: var(--text-dim);
  position: relative;
  z-index: 1;
}

/* ============== GPS Map (CSS-built) ============== */
.map-panel {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.6);
  position: relative;
  aspect-ratio: 16/10;
  display: grid;
  grid-template-columns: 1fr 240px;
}
.map-canvas {
  position: relative;
  background:
    radial-gradient(circle at 30% 40%, rgba(139, 92, 246, 0.08), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(34, 197, 94, 0.06), transparent 50%),
    linear-gradient(135deg, #0a0a0a, #14141c);
  background-size: 40px 40px, 60px 60px, 100% 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(135deg, #0a0a0a, #14141c);
  background-size: 40px 40px, 40px 40px, 100% 100%;
}
.map-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 30%, rgba(139, 92, 246, 0.1), transparent 30%),
    radial-gradient(ellipse at 65% 55%, rgba(34, 197, 94, 0.08), transparent 30%),
    radial-gradient(ellipse at 80% 20%, rgba(245, 158, 11, 0.06), transparent 30%);
}
.map-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}
.map-pin::after {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: white;
  transform: rotate(45deg);
}
.map-pin.green { background: var(--green); box-shadow: 0 0 20px var(--green), 0 4px 12px rgba(0, 0, 0, 0.5); }
.map-pin.amber { background: var(--amber); box-shadow: 0 0 20px var(--amber), 0 4px 12px rgba(0, 0, 0, 0.5); animation: pinPulse 1.5s ease-in-out infinite; }
.map-pin.purple { background: var(--purple); box-shadow: 0 0 20px var(--purple), 0 4px 12px rgba(0, 0, 0, 0.5); }
@keyframes pinPulse {
  0%, 100% { transform: rotate(-45deg) scale(1); }
  50% { transform: rotate(-45deg) scale(1.15); }
}
.map-pin.p1 { top: 30%; left: 25%; }
.map-pin.p2 { top: 55%; left: 50%; }
.map-pin.p3 { top: 20%; left: 70%; }
.map-pin.p4 { top: 70%; left: 35%; }
.map-pin.p5 { top: 45%; left: 80%; }
.map-pin-label {
  position: absolute;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.7rem;
  color: var(--text);
  white-space: nowrap;
  z-index: 3;
  pointer-events: none;
}
.map-sidebar {
  background: var(--bg-3);
  border-left: 1px solid var(--line);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.map-side-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.map-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--bg-2);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.map-row-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.map-row-dot.green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.map-row-dot.amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }
.map-row-info { flex: 1; min-width: 0; }
.map-row-name { font-size: 0.85rem; color: var(--text); font-weight: 600; }
.map-row-status { font-size: 0.72rem; color: var(--text-dim); }

@media (max-width: 700px) {
  .map-panel { grid-template-columns: 1fr; aspect-ratio: 4/5; }
  .map-sidebar { border-left: 0; border-top: 1px solid var(--line); }
}

/* ============== PDF report (CSS-built) ============== */
.pdf-panel {
  background: #f5f5f7;
  color: #111;
  border-radius: var(--r);
  padding: 40px 36px;
  max-width: 480px;
  margin: 0 auto;
  transform: perspective(2000px) rotateY(-4deg) rotateX(2deg);
  box-shadow:
    0 60px 100px -20px rgba(0, 0, 0, 0.7),
    0 20px 40px -10px rgba(139, 92, 246, 0.2);
  position: relative;
  font-size: 0.78rem;
}
.pdf-panel::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent 30%);
  pointer-events: none;
}
.pdf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5e5e5;
  margin-bottom: 20px;
}
.pdf-logo {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
}
.pdf-title { font-size: 0.7rem; color: #6b7280; }
.pdf-meta { text-align: right; font-size: 0.7rem; color: #6b7280; line-height: 1.4; }
.pdf-meta strong { color: #111; }
.pdf-section-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 14px;
}
.pdf-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}
.pdf-stat {
  background: white;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  padding: 10px 12px;
}
.pdf-stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: #111;
  letter-spacing: -0.02em;
  line-height: 1;
}
.pdf-stat-value.green { color: #16a34a; }
.pdf-stat-label { font-size: 0.65rem; color: #6b7280; margin-top: 3px; }
.pdf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.7rem;
}
.pdf-table th {
  text-align: left;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b7280;
  font-weight: 600;
  padding: 6px 4px;
  border-bottom: 1px solid #e5e5e5;
}
.pdf-table td {
  padding: 6px 4px;
  border-bottom: 1px solid #f0f0f0;
  color: #111;
}
.pdf-table td.miss { color: #dc2626; }
.pdf-table td.ok { color: #16a34a; }
.pdf-foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #e5e5e5;
  font-size: 0.65rem;
  color: #9ca3af;
  text-align: center;
}

@media (max-width: 700px) {
  .pdf-panel { padding: 28px 24px; font-size: 0.72rem; }
  .pdf-panel { transform: none; }
}

/* ============== Numbers strip ============== */
.numbers {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.num {
  text-align: left;
  padding: 0;
}
.num-value {
  font-size: clamp(40px, 4vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text);
  line-height: 1;
  margin-bottom: 8px;
  font-feature-settings: 'tnum';
}
.num-value .unit {
  font-size: 0.5em;
  color: var(--text-dim);
  font-weight: 600;
  margin-left: 4px;
}
.num-value.green { color: var(--green-2); }
.num-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

@media (max-width: 700px) {
  .numbers-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}

/* ============== Pricing ============== */
.pricing {
  padding: var(--section-pad) 0;
}
.section-head { text-align: center; max-width: 720px; margin: 0 auto 64px; }
.section-head h2 { margin-bottom: 0; }
.section-head .lead { margin: 32px auto 0; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tier {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all 0.3s var(--ease);
}
.tier:hover { transform: translateY(-4px); border-color: var(--line-2); }
.tier.featured {
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg-2) 100%);
  border-color: var(--purple);
  box-shadow: 0 30px 80px -20px rgba(139, 92, 246, 0.3);
}
.tier.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, var(--purple-soft), transparent 50%);
  pointer-events: none;
}
.tier-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--purple);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tier-name { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 14px; }
.tier-price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 6px; }
.tier-price .amt { font-size: 2.8rem; font-weight: 800; color: var(--text); letter-spacing: -0.04em; }
.tier-price .per { font-size: 0.85rem; color: var(--text-dim); }
.tier-billed { font-size: 0.78rem; color: var(--text-dim); margin-bottom: 24px; }
.tier-desc { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; line-height: 1.5; }
.tier ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; flex: 1; }
.tier li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; color: var(--text-2); }
.tier li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.tier li.key { font-weight: 500; color: var(--text); }
.tier li .key-tag {
  display: inline-block;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--purple-2);
  background: var(--purple-soft);
  border: 1px solid rgba(139, 92, 246, 0.25);
  border-radius: 4px;
  padding: 2px 6px;
  margin-right: 6px;
  vertical-align: middle;
}
.tier .btn { justify-content: center; }

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ============== Compare table ============== */
.compare-wrap {
  margin-top: 80px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px 28px;
}
.compare-title { font-size: 1.2rem; margin-bottom: 8px; }
.compare-sub { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 24px; }
.compare-scroll { overflow-x: auto; }
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.compare th, .compare td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.compare th { color: var(--text-muted); font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }
.compare th.featured-col { color: var(--purple-2); }
.compare td.yes { color: var(--green); font-weight: 700; }
.compare td.no { color: var(--text-dim); }
.compare tr:last-child td { border-bottom: 0; }
.compare .key-tag { display: inline-block; font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; color: var(--purple-2); background: var(--purple-soft); border: 1px solid rgba(139, 92, 246, 0.25); border-radius: 4px; padding: 2px 6px; margin-right: 6px; vertical-align: middle; }

/* ============== Contact / Final CTA ============== */
.final-cta {
  padding: var(--section-pad) 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 80%; height: 200%;
  background: radial-gradient(closest-side, var(--purple-soft), transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  filter: blur(60px);
}
.final-cta-card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}
.final-cta h2 { margin-bottom: 20px; }
.final-cta .lead { margin: 0 auto 36px; }
.contact-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 0.78rem; color: var(--text-muted); font-weight: 500; }
.form-field input, .form-field select, .form-field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 12px 14px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: all 0.2s var(--ease);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--purple);
  background: var(--bg-3);
  box-shadow: 0 0 0 3px var(--purple-soft);
}
.form-field textarea { resize: vertical; min-height: 100px; }
.form-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ============== FAQ ============== */
.faq { padding: var(--section-pad) 0; background: var(--bg-2); }
.faq-list { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.faq-item:hover { border-color: var(--line-2); }
.faq-item.open { border-color: var(--purple-soft); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.2s var(--ease);
}
.faq-q:hover { color: var(--text); }
.faq-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--text);
  transition: all 0.3s var(--ease);
  flex-shrink: 0;
  margin-left: 16px;
}
.faq-item.open .faq-icon {
  background: var(--purple);
  color: white;
  transform: rotate(45deg);
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-a > div { padding: 0 24px 20px; }
.faq-item.open .faq-a { max-height: 500px; }

/* ============== Footer ============== */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.foot-brand p { font-size: 0.88rem; color: var(--text-muted); max-width: 320px; margin-top: 14px; }
.foot-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: 16px; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { font-size: 0.9rem; color: var(--text-muted); transition: color 0.2s var(--ease); }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--text-dim);
}

@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* ============== Reveal animations ============== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* iOS safe-area insets — notch + home indicator */
.nav {
  padding-top: max(18px, env(safe-area-inset-top));
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}
.mobile-menu {
  padding-top: max(92px, calc(92px + env(safe-area-inset-top)));
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}
footer {
  padding-bottom: max(40px, calc(40px + env(safe-area-inset-bottom)));
  padding-left: max(0px, env(safe-area-inset-left));
  padding-right: max(0px, env(safe-area-inset-right));
}

/* Tighter mobile scenes — was 100vh which is excessive on a phone */
@media (max-width: 768px) {
  .scene {
    min-height: auto;
    padding: 64px 0;
    align-items: flex-start;
  }
  .scene-pin {
    align-items: flex-start;
  }
  .hero {
    min-height: auto;
    padding: 100px 0 60px;
  }
  /* Hide decorative purple accent bar on mobile */
  .hero-text::after { display: none; }
  /* Tighter hero glow so it doesn't push off-screen */
  .hero-text::before {
    top: -40px;
    left: -60px;
    right: -40px;
    bottom: -40px;
  }
}

/* ============== Section label utility ============== */
.section-pad { padding: var(--section-pad) 0; }

/* ============== Trust strip (UHNWI band) ============== */
.trust-strip {
  padding: 28px 0;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.trust-strip::before,
.trust-strip::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 80px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-3));
}
.trust-strip::before { left: 0; }
.trust-strip::after { right: 0; transform: rotate(180deg); }
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  text-align: center;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-2);
  font-weight: 500;
  letter-spacing: 0.02em;
}
.trust-item .trust-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--purple-soft);
  border: 1px solid rgba(139, 92, 246, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--purple-2);
  flex-shrink: 0;
}
.trust-item.trust-headline {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.005em;
}
.trust-item.trust-headline .trust-mark {
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  border-color: var(--purple-2);
  color: white;
  box-shadow: 0 0 16px rgba(139, 92, 246, 0.4);
}
.trust-divider {
  width: 1px;
  height: 18px;
  background: var(--line-2);
}
@media (max-width: 700px) {
  .trust-inner { gap: 16px; }
  .trust-divider { display: none; }
  .trust-item { font-size: 0.78rem; }
  .trust-item.trust-headline { font-size: 0.9rem; }
}

/* ============== Dashboard panel (hero + scene 01) ============== */
.dash-panel {
  background: linear-gradient(180deg, #14141c 0%, #0c0c12 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  aspect-ratio: 16/11;
  width: 100%;
}
.dash-frame {
  background: var(--bg-3);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-dots { display: flex; gap: 6px; }
.dash-dots span {
  width: 11px; height: 11px;
  border-radius: 50%;
}
.dash-dots span:nth-child(1) { background: #ef4444; }
.dash-dots span:nth-child(2) { background: #f59e0b; }
.dash-dots span:nth-child(3) { background: #22c55e; }
.dash-url {
  flex: 1;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.7rem;
  color: var(--text-dim);
  font-family: 'SF Mono', 'Menlo', monospace;
  letter-spacing: 0.01em;
}
.dash-url .dash-live {
  display: inline-block;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 8px;
  box-shadow: 0 0 6px var(--green);
  animation: dashPulse 1.6s ease-in-out infinite;
  vertical-align: middle;
}
@keyframes dashPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.dash-header {
  padding: 16px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.dash-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.dash-title small {
  color: var(--text-dim);
  font-weight: 500;
  margin-left: 6px;
  font-size: 0.78rem;
}
.dash-tabs { display: flex; gap: 2px; }
.dash-tab {
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 5px 10px;
  border-radius: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dash-tab.active {
  background: var(--purple-soft);
  color: var(--purple-2);
}
.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.dash-stat {
  background: var(--bg-2);
  padding: 14px 20px;
}
.dash-stat-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1;
  font-feature-settings: 'tnum';
}
.dash-stat-value.green { color: var(--green-2); }
.dash-stat-value.purple { color: var(--purple-2); }
.dash-stat-label {
  font-size: 0.62rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 6px;
  font-weight: 600;
}
.dash-list {
  padding: 4px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.dash-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 11px 22px;
  border-bottom: 1px solid var(--line);
}
.dash-row:last-child { border-bottom: 0; }
.dash-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bg-4), var(--bg-5));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  border: 1px solid var(--line-2);
  flex-shrink: 0;
}
.dash-info { min-width: 0; }
.dash-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-site {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  font-feature-settings: 'tnum';
  white-space: nowrap;
}
.dash-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 100px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.dash-status .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
}
.dash-status.on { background: var(--green-soft); color: var(--green-2); }
.dash-status.on .dot { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dash-status.due { background: var(--amber-soft); color: var(--amber); }
.dash-status.due .dot { background: var(--amber); box-shadow: 0 0 6px var(--amber); animation: dashPulse 1.4s ease-in-out infinite; }
.dash-status.off { background: rgba(255,255,255,0.04); color: var(--text-dim); }
.dash-status.off .dot { background: var(--text-dim); }
@media (max-width: 700px) {
  .dash-frame { padding: 10px 12px; gap: 10px; }
  .dash-url { font-size: 0.62rem; padding: 5px 10px; }
  .dash-header { padding: 12px 16px 10px; }
  .dash-title { font-size: 0.85rem; }
  .dash-tab { padding: 4px 7px; font-size: 0.6rem; }
  .dash-stat { padding: 12px 14px; }
  .dash-stat-value { font-size: 1.2rem; }
  .dash-row { padding: 10px 16px; gap: 10px; }
  .dash-name { font-size: 0.78rem; }
  .dash-site { font-size: 0.65rem; }
  .dash-time { display: none; }
}

/* ============== Phone / tablet panel (scene 04 — guard POV) ============== */
.phone-panel {
  background: linear-gradient(180deg, #0c0c12 0%, #14141c 100%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2xl);
  box-shadow: 0 60px 100px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  position: relative;
  aspect-ratio: 9/16;
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 22px 22px 24px;
  width: 100%;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: var(--text-dim);
  font-feature-settings: 'tnum';
  margin-bottom: 22px;
  font-weight: 600;
}
.phone-status .phone-sigs {
  display: inline-flex;
  gap: 3px;
  align-items: end;
  height: 10px;
}
.phone-status .phone-sigs span {
  width: 3px;
  background: var(--text-dim);
  border-radius: 1px;
}
.phone-status .phone-sigs span:nth-child(1) { height: 30%; }
.phone-status .phone-sigs span:nth-child(2) { height: 60%; }
.phone-status .phone-sigs span:nth-child(3) { height: 80%; }
.phone-status .phone-sigs span:nth-child(4) { height: 100%; }
.phone-greeting {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}
.phone-name {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
  margin-bottom: 26px;
  line-height: 1.05;
}
.phone-on-post {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at center, rgba(34, 197, 94, 0.16), transparent 65%);
  border-radius: var(--r-xl);
  padding: 24px 18px;
  margin-bottom: 18px;
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.phone-on-post-label {
  font-size: 0.7rem;
  color: var(--green-2);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.phone-on-post-label .live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px var(--green);
  animation: dashPulse 1.6s ease-in-out infinite;
}
.phone-compliance {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  font-feature-settings: 'tnum';
}
.phone-compliance small {
  font-size: 1.4rem;
  color: var(--green-2);
  font-weight: 700;
  margin-left: 2px;
}
.phone-compliance-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 10px;
  letter-spacing: 0.02em;
}
.phone-next-check {
  margin-top: 18px;
  padding: 8px 14px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-radius: 100px;
  font-size: 0.74rem;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.phone-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.phone-action {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 13px 10px;
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 600;
  letter-spacing: 0.01em;
}
.phone-action.primary {
  background: var(--bg-4);
  border-color: var(--line-3);
  color: var(--text);
}
@media (max-width: 700px) {
  .phone-panel { max-width: 320px; padding: 18px 18px 20px; }
  .phone-name { font-size: 1.3rem; }
  .phone-compliance { font-size: 3rem; }
}

/* ============== Overview panel (Scene 02 — TL command.html overview tab) ============== */
.ov-panel {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
}

.ov-chrome {
  background: var(--bg-2);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-2);
}
.ov-dots { display: flex; gap: 5px; }
.ov-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-5); }
.ov-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: 'SF Mono', Menlo, monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}
.ov-lock { color: var(--purple-2); font-size: 0.7rem; }
.ov-tab {
  font-size: 0.65rem;
  color: var(--text);
  font-weight: 600;
  padding: 3px 10px;
  background: var(--bg-3);
  border-radius: 6px;
}

.ov-toolbar {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.ov-toolbar-left strong {
  font-size: 0.85rem;
  color: var(--text);
  display: block;
}
.ov-toolbar-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
}
.ov-toolbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ov-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--green-2);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ov-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: dashPulse 1.6s ease-in-out infinite;
}
.ov-clock {
  font-size: 0.62rem;
  color: var(--text-dim);
  font-family: 'SF Mono', Menlo, monospace;
}

.ov-stats {
  padding: 10px 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  border-bottom: 1px solid var(--line-2);
}
.ov-stat {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}
.ov-stat-num {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
  font-feature-settings: 'tnum';
}
.ov-stat-num-sm { font-size: 0.7rem; font-weight: 700; }
.ov-stat-red .ov-stat-num { color: var(--red); }
.ov-stat-purple {
  border-color: var(--purple);
}
.ov-stat-purple .ov-stat-num { color: var(--purple); }
.ov-stat-label {
  font-size: 0.5rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  font-weight: 600;
}

.ov-grid {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.ov-card {
  background: var(--bg-2);
  border: 2px solid var(--line-2);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ov-card-active { border-color: var(--green); }
.ov-card-break { border-color: var(--amber); }
.ov-card-off { border-color: var(--line-2); opacity: 0.55; }

.ov-card-row { display: flex; align-items: center; gap: 8px; }
.ov-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.ov-card-name {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}
.ov-card-status {
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
  margin-top: 1px;
}
.ov-status-active { color: var(--green); }
.ov-status-break { color: var(--amber); }
.ov-status-off { color: var(--text-muted); }

.ov-card-seen {
  font-size: 0.58rem;
  color: var(--text-muted);
}
.ov-card-sc {
  font-size: 0.6rem;
  font-weight: 700;
  margin-top: 1px;
}
.ov-sc-active { color: var(--red); animation: dashPulse 1s ease-in-out infinite; }
.ov-sc-soon { color: var(--amber); }
.ov-sc-later { color: var(--text-muted); font-weight: 500; }
.ov-sc-none { color: rgba(255,255,255,0.25); }

.ov-card-btn {
  background: transparent;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 0.58rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  margin-top: auto;
  cursor: pointer;
}

@media (max-width: 900px) {
  .ov-stats { grid-template-columns: repeat(2, 1fr); }
  .ov-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 500px) {
  .ov-grid { grid-template-columns: 1fr; }
}

/* ============== Spot check panel (scene 02) — clone of production tablet ============== */
.sc-panel {
  /* Tablet frame */
  background:
    linear-gradient(180deg, #1f1f22 0%, #2c2c30 50%, #1a1a1c 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 32px;
  padding: 18px 14px 16px;
  box-shadow:
    0 60px 120px -20px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.3);
  position: relative;
  aspect-ratio: 3/4;          /* matches the 720×960 video exactly so cover doesn't crop */
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}
.sc-panel::before {
  /* Camera dot — top center */
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #0d0d0e;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
}
.sc-panel::after {
  /* Speaker slit — top */
  content: '';
  position: absolute;
  top: 9px;
  left: calc(50% + 30px);
  width: 40px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.04);
}
.sc-panel-screen {
  /* The screen showing the spot check alert (full overlay, like prod) */
  background: #dc2626;
  border-radius: 18px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 36px 24px;
  color: #fff;
  animation: scFlashFast 0.25s infinite;
}
.sc-panel-screen.sc-phase2 {
  animation: scFlashSlow 1.5s infinite;
}
.sc-panel-video {
  /* Real spot-check recording — replaces the static .sc-panel-screen mockup */
  background: #dc2626;            /* fallback red if video fails to load */
  border-radius: 18px;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
@media (prefers-reduced-motion: reduce) {
  .sc-panel-video { animation: none; }
}
.sc-panel-title {
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin: 0 0 8px;
  color: #fff;
  line-height: 1.05;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.sc-panel-screen.sc-phase2 .sc-panel-title {
  color: #fca5a5;
}
.sc-panel-sub {
  font-size: clamp(13px, 1.5vw, 16px);
  opacity: 0.9;
  margin: 0 0 22px;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.sc-panel-timer {
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 900;
  margin: 0 0 22px;
  font-feature-settings: 'tnum';
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.sc-panel-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(160px, 22vw, 220px);
  height: clamp(160px, 22vw, 220px);
  background: #ef4444;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    inset 0 -4px 0 rgba(0, 0, 0, 0.18),
    inset 0 2px 0 rgba(255, 255, 255, 0.18);
  margin: 12px auto 0;
  animation: scBtnPulse 1.5s ease-in-out infinite;
  user-select: none;
  -webkit-user-select: none;
}
.sc-panel-screen.sc-phase2 .sc-panel-btn {
  background: #991b1b;
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.55),
    inset 0 -4px 0 rgba(0, 0, 0, 0.25),
    inset 0 2px 0 rgba(255, 255, 255, 0.1);
}
@keyframes scFlashFast {
  0%, 49% { background: #dc2626; }
  50%, 100% { background: #16a34a; }
}
@keyframes scFlashSlow {
  0%, 49% { background: #7f1d1d; }
  50%, 100% { background: #14532d; }
}
@keyframes scBtnPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-panel-screen { animation: none; background: #dc2626; }
  .sc-panel-btn { animation: none; }
}

/* ============== Brand mark (hero — static logo) ============== */
.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
  padding: 20px;
}
.brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.18), transparent 60%);
  filter: blur(20px);
  z-index: -1;
}
.brand-logo {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 40px rgba(139, 92, 246, 0.35));
}
@media (max-width: 900px) {
  .brand-logo { max-width: 400px; }
}
@media (max-width: 700px) {
  .brand-logo { max-width: 280px; }
}

/* ============== SCENE 03 — GPS PANEL ============== */
/* ============== GPS verification (Scene 03 — matches Guards tab + incident alert) ============== */
.gps-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gps-panel {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
}
.gps-chrome {
  background: var(--bg-2);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-2);
}
.gps-dots { display: flex; gap: 5px; }
.gps-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-5); }
.gps-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: 'SF Mono', Menlo, monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gps-lock { color: var(--purple-2); font-size: 0.7rem; }
.gps-tab {
  font-size: 0.65rem;
  color: var(--text);
  font-weight: 600;
  padding: 3px 10px;
  background: var(--bg-3);
  border-radius: 6px;
}
.gps-toolbar {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line-2);
}
.gps-toolbar strong {
  font-size: 0.85rem;
  color: var(--text);
}
.gps-toolbar-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
  flex: 1;
}
.gps-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--green-2);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.gps-live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: dashPulse 1.6s ease-in-out infinite;
}

.gps-table {
  padding: 8px 14px 12px;
  font-size: 0.62rem;
}
.gps-thead, .gps-trow {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr 1.6fr 0.5fr 0.9fr;
  gap: 8px;
  align-items: center;
  padding: 6px 0;
}
.gps-thead {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line-2);
}
.gps-trow {
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.gps-trow-warn {
  background: rgba(245, 158, 11, 0.06);
  border-left: 2px solid var(--amber);
  padding-left: 8px;
  margin-left: -8px;
  border-radius: 4px;
}
.gps-tname {
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.62rem;
}
.gps-dot-green, .gps-dot-amber, .gps-dot-grey {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.gps-dot-green { background: var(--green); box-shadow: 0 0 5px var(--green); }
.gps-dot-amber { background: var(--amber); box-shadow: 0 0 5px var(--amber); animation: dashPulse 1s infinite; }
.gps-dot-grey { background: var(--text-dim); }
.gps-mono {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.6rem;
}
.gps-mono-warn { color: var(--amber); font-weight: 700; }
.gps-mono-dim { color: var(--text-dim); }
.gps-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 100px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.gps-badge-ok {
  background: var(--green-soft);
  color: var(--green-2);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.gps-badge-warn {
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.gps-badge-dim {
  background: var(--bg);
  color: var(--text-dim);
  border: 1px solid var(--line);
}

.gps-alert-panel {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}
.gps-alert-head {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
}
.gps-alert-icon { font-size: 1rem; }
.gps-alert-head strong {
  font-size: 0.7rem;
  color: var(--text);
  font-weight: 600;
}
.gps-alert-msg {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.65rem;
  color: var(--text-2);
  background: var(--bg);
}
.gps-alert-line {
  line-height: 1.5;
}
.gps-alert-line strong { color: var(--text); }
.gps-alert-key {
  color: var(--text-dim);
  display: inline-block;
  min-width: 70px;
}
.gps-alert-link a {
  color: var(--purple-2);
  text-decoration: none;
  word-break: break-all;
}
.gps-alert-link a:hover { text-decoration: underline; }

/* ============== SCENE 04 — TABLET (guard POV) ============== */
.tablet-frame {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  aspect-ratio: 3/4;        /* matches the 3:4 guard-pov.png so it fits without crop */
  background: linear-gradient(180deg, #1a1a22 0%, #0a0a0a 100%);
  border-radius: 28px;
  padding: 14px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.tablet-screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #0a0a0a 0%, #14141c 100%);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tablet-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
}
.tablet-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.05em;
}
.tablet-status .live {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--green-2);
}
.tablet-status .live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
}
.tablet-top {
  padding: 4px 22px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.tablet-id {
  display: flex;
  align-items: center;
  gap: 10px;
}
.tablet-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--purple-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  color: white;
}
.tablet-id-text { line-height: 1.2; }
.tablet-id-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.tablet-id-site {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 1px;
}
.tablet-id-pill {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--green-soft);
  color: var(--green-2);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 100px;
}
.tablet-main {
  flex: 1;
  padding: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}
.tablet-time-big {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.tablet-time-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tablet-confirm {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--purple-2), var(--purple-deep));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5);
  animation: tabletConfirmPulse 2.4s ease-in-out infinite;
}
@keyframes tabletConfirmPulse {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.5); }
  70% { box-shadow: 0 0 0 24px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}
.tablet-confirm-icon {
  font-size: 1.6rem;
  margin-bottom: 2px;
}
.tablet-stats-row {
  display: flex;
  gap: 16px;
  width: 100%;
  justify-content: center;
}
.tablet-stat {
  flex: 1;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
}
.tablet-stat-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  font-family: 'SF Mono', Menlo, monospace;
}
.tablet-stat-val.green { color: var(--green-2); }
.tablet-stat-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}
.tablet-foot {
  padding: 14px 18px;
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
}
.tablet-foot-btn {
  flex: 1;
  padding: 9px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid var(--line-2);
  background: var(--bg-3);
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.tablet-foot-btn.primary {
  background: var(--red-soft);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--red-2);
}

/* ============== SCENE 05 — PDF DOCUMENT ============== */
.pdf-doc {
  background: #fafaf7;
  color: #1a1a1a;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 40px 80px -20px rgba(0, 0, 0, 0.7);
  aspect-ratio: 4/3.2;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
}
.pdf-head {
  padding: 18px 22px 14px;
  border-bottom: 2px solid #1a1a1a;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.pdf-logo {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  font-size: 0.85rem;
  color: #1a1a1a;
  letter-spacing: -0.01em;
}
.pdf-logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
}
.pdf-meta {
  text-align: right;
  font-size: 0.6rem;
  color: #555;
  line-height: 1.4;
}
.pdf-meta strong { color: #1a1a1a; }
.pdf-title {
  padding: 12px 22px 8px;
}
.pdf-title h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0;
  color: #1a1a1a;
}
.pdf-title p {
  font-size: 0.65rem;
  color: #777;
  margin: 3px 0 0;
}
.pdf-summary {
  padding: 8px 22px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  border-bottom: 1px dashed #ddd;
}
.pdf-stat {
  text-align: center;
  padding: 6px 0;
}
.pdf-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #1a1a1a;
  font-family: 'SF Mono', Menlo, monospace;
  line-height: 1;
}
.pdf-stat-val.green { color: #15803d; }
.pdf-stat-val.amber { color: #b45309; }
.pdf-stat-val.purple { color: var(--purple-deep); }
.pdf-stat-label {
  font-size: 0.55rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 4px;
  font-weight: 600;
}
.pdf-table {
  flex: 1;
  padding: 8px 22px 0;
  font-size: 0.6rem;
}
.pdf-table-head, .pdf-table-row {
  display: grid;
  grid-template-columns: 0.9fr 1fr 1fr 0.6fr 0.7fr 0.5fr;
  gap: 6px;
  padding: 5px 0;
  align-items: center;
}
.pdf-table-head {
  font-weight: 700;
  color: #1a1a1a;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid #1a1a1a;
}
.pdf-table-row {
  border-bottom: 1px solid #eee;
  color: #333;
}
.pdf-table-row .mono { font-family: 'SF Mono', Menlo, monospace; font-size: 0.55rem; }
.pdf-table-row .ok { color: #15803d; font-weight: 600; }
.pdf-table-row .miss { color: #b91c1c; font-weight: 600; }
.pdf-foot {
  padding: 10px 22px;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.55rem;
  color: #777;
}
.pdf-sign {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.55rem;
  color: var(--purple-deep);
  font-weight: 600;
}

/* ============== SCENE 05 — REPORTS (Dashboard + PDF) ============== */
.reports-stage {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.rpt-dash {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
}

.rpt-dash-chrome {
  background: var(--bg-2);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-2);
}
.rpt-dash-dots { display: flex; gap: 5px; }
.rpt-dash-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bg-5);
}
.rpt-dash-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: 'SF Mono', Menlo, monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rpt-dash-lock { color: var(--purple-2); font-size: 0.7rem; }
.rpt-dash-tab {
  font-size: 0.65rem;
  color: var(--text);
  font-weight: 600;
  padding: 3px 10px;
  background: var(--bg-3);
  border-radius: 6px;
}

.rpt-dash-toolbar {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.rpt-dash-title strong {
  font-size: 0.9rem;
  color: var(--text);
  display: block;
}
.rpt-dash-sub {
  font-size: 0.62rem;
  color: var(--text-muted);
}
.rpt-dash-filter {
  font-size: 0.62rem;
  color: var(--text-2);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 3px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rpt-dash-filter-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.rpt-dash-grid {
  flex: 1;
  padding: 10px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.rpt-card {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.rpt-card-active {
  border-color: var(--purple);
  box-shadow:
    0 0 0 2px var(--purple),
    0 0 32px -2px rgba(139, 92, 246, 0.5),
    0 12px 30px -8px rgba(139, 92, 246, 0.4);
  z-index: 2;
  transform: translateY(-2px);
}
.rpt-card-glow {
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.4), rgba(139, 92, 246, 0) 70%);
  pointer-events: none;
  z-index: -1;
  filter: blur(8px);
}
.rpt-card-head { display: flex; align-items: center; gap: 8px; }
.rpt-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--av, var(--purple));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 0.8rem;
  flex-shrink: 0;
}
.rpt-card-name {
  font-size: 0.72rem;
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}
.rpt-card-site {
  font-size: 0.58rem;
  color: var(--text-muted);
  line-height: 1.2;
}
.rpt-card-meta {
  font-size: 0.58rem;
  color: var(--text-muted);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
.rpt-card-comp { text-align: center; padding: 4px 0; }
.rpt-card-comp-val {
  font-size: 1.4rem;
  font-weight: 900;
  line-height: 1;
}
.rpt-card-comp-label {
  font-size: 0.52rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 3px;
  font-weight: 600;
}
.rpt-card-actions {
  display: flex;
  gap: 5px;
  margin-top: auto;
}
.rpt-btn {
  flex: 1;
  padding: 5px 8px;
  border-radius: 6px;
  font-size: 0.58rem;
  font-weight: 600;
  text-align: center;
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: all 0.2s;
}
.rpt-btn-primary {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.rpt-btn-ghost {
  background: transparent;
  color: var(--text-2);
}

/* Flow arrow between dashboard and PDF (vertical stack) */
.rpt-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 36px;
  position: relative;
}
.rpt-flow-line {
  width: 60%;
  max-width: 320px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--purple), transparent);
  position: relative;
}
.rpt-flow-line::after {
  content: '↓';
  position: absolute;
  right: -8px;
  top: -13px;
  color: var(--purple);
  font-size: 1.3rem;
  font-weight: 700;
}
.rpt-flow-label {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 100px;
  padding: 4px 12px;
}
.rpt-flow-step {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.6rem;
  color: var(--purple-2);
  font-weight: 700;
}
.rpt-flow-text {
  font-size: 0.7rem;
  color: var(--text);
  font-weight: 500;
  line-height: 1;
}

/* PDF document — redesigned for Scene 05 */
.pdf-doc {
  background: var(--bg-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-2);
}
.pdf-toolbar {
  background: var(--bg-3);
  padding: 7px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.pdf-toolbar-left, .pdf-toolbar-right { display: flex; gap: 6px; align-items: center; }
.pdf-toolbar-btn {
  font-size: 0.6rem;
  color: var(--text);
  padding: 3px 8px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: 5px;
  font-family: 'SF Mono', Menlo, monospace;
}
.pdf-toolbar-btn-disabled { color: var(--text-dim); }
.pdf-toolbar-print {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
  font-weight: 600;
}

.pdf-page {
  background: #fff;
  color: #1a1a2e;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  margin: 6px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  overflow: hidden;
}
.pdf-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid #8B5CF6;
  padding-bottom: 10px;
  margin-bottom: 12px;
  gap: 10px;
}
.pdf-head h4 {
  font-size: 0.85rem;
  font-weight: 800;
  margin: 0;
  color: #1a1a2e;
}
.pdf-head-meta { font-weight: 500; color: #666; }
.pdf-head-site {
  font-size: 0.6rem;
  color: #666;
  margin-top: 2px;
}
.pdf-head-right { text-align: right; }
.pdf-badge {
  display: inline-block;
  background: #8B5CF6;
  color: #fff;
  padding: 3px 9px;
  border-radius: 100px;
  font-size: 0.55rem;
  font-weight: 700;
}
.pdf-head-date {
  font-size: 0.6rem;
  color: #888;
  margin-top: 4px;
}

.pdf-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-bottom: 14px;
}
.pdf-stat {
  background: #f8f7ff;
  border: 1px solid #e5e0ff;
  border-radius: 8px;
  padding: 8px 4px;
  text-align: center;
}
.pdf-stat-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a1a2e;
  line-height: 1;
}
.pdf-stat-green .pdf-stat-num { color: #22c55e; }
.pdf-stat-red .pdf-stat-num { color: #ef4444; }
.pdf-stat-label {
  font-size: 0.5rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 4px;
  font-weight: 700;
}

.pdf-section { flex: 1; display: flex; flex-direction: column; }
.pdf-section-title {
  font-size: 0.6rem;
  font-weight: 800;
  color: #8B5CF6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-bottom: 1px solid #e5e0ff;
  padding-bottom: 5px;
  margin-bottom: 6px;
}
.pdf-log {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.58rem;
}
.pdf-log th {
  background: #f8f7ff;
  padding: 5px 6px;
  text-align: left;
  font-weight: 700;
  border-bottom: 1px solid #e5e0ff;
  color: #1a1a2e;
  font-size: 0.55rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.pdf-log td {
  padding: 4px 6px;
  border-bottom: 1px solid #f0eff9;
}
.pdf-log-date, .pdf-log-time, .pdf-log-resp {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.55rem;
  color: #444;
}
.pdf-log-status {
  font-weight: 700;
  font-size: 0.55rem;
}
.pdf-log-ok { color: #22c55e; }
.pdf-log-miss { color: #ef4444; }
.pdf-log-break { color: #f59e0b; }
.pdf-table-more {
  font-size: 0.55rem;
  color: #888;
  text-align: center;
  padding: 6px 0 0;
  font-style: italic;
}

.pdf-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  font-size: 0.55rem;
  color: #aaa;
}

@media (max-width: 900px) {
  .reports-stage {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .rpt-flow {
    flex-direction: row;
    width: 100%;
    height: 30px;
  }
  .rpt-flow-line {
    height: 2px;
    width: 80%;
  }
  .rpt-flow-line::after { right: 10%; top: -10px; }
  .rpt-dash, .pdf-doc { height: auto; min-height: 380px; }
}
/* ============== Shifts calendar (Scene 06 — matches command.html Calendar tab + calendar.js) ============== */
.shift-panel {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
}
.shift-chrome {
  background: var(--bg-2);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-2);
}
.shift-dots { display: flex; gap: 5px; }
.shift-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-5); }
.shift-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: 'SF Mono', Menlo, monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}
.shift-lock { color: var(--purple-2); font-size: 0.7rem; }
.shift-tab {
  font-size: 0.65rem;
  color: var(--text);
  font-weight: 600;
  padding: 3px 10px;
  background: var(--bg-3);
  border-radius: 6px;
}
.shift-toolbar {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.shift-toolbar strong {
  font-size: 0.85rem;
  color: var(--text);
  font-weight: 700;
}
.shift-export {
  background: var(--purple);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.65rem;
  font-weight: 600;
  cursor: pointer;
}
.shift-controls {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap;
}
.shift-type-strip {
  display: flex;
  gap: 4px;
  background: var(--bg-2);
  padding: 3px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
}
.shift-type-btn {
  background: transparent;
  border: none;
  color: var(--text-2);
  font-size: 0.6rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
}
.shift-type-day.shift-type-day { background: var(--bg-3); color: var(--text); }
.shift-guard-strip {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.shift-guard-btn {
  background: var(--bg-2);
  color: var(--text);
  border: 1.5px solid var(--gc, var(--line-2));
  font-size: 0.58rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 100px;
  cursor: pointer;
}
.shift-guard-sel {
  background: var(--gc, var(--purple));
  color: #fff;
  border-color: var(--gc, var(--purple));
}
.shift-nav {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line-2);
}
.shift-nav-btn {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 0.62rem;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
}
.shift-nav-today { color: var(--text); }
.shift-nav-export {
  background: var(--purple);
  border-color: var(--purple);
  color: #fff;
}
.shift-nav-clear { color: var(--red); }
.shift-month-label {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--purple-2);
  margin: 0;
  flex: 1;
  text-align: center;
}
.shift-nav-btns {
  display: flex;
  gap: 4px;
}
.shift-grid {
  padding: 6px 8px 10px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.shift-dow {
  text-align: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 0 4px;
}
.shift-cell {
  background: var(--bg-2);
  border-radius: 5px;
  min-height: 64px;
  padding: 4px 5px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  border: 1px solid transparent;
}
.shift-cell-empty { background: transparent; }
.shift-cell-today {
  border-color: var(--purple);
  box-shadow: 0 0 0 1px var(--purple), 0 0 12px -2px var(--purple);
}
.shift-day-num {
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-muted);
  font-family: 'SF Mono', Menlo, monospace;
}
.shift-cell-today .shift-day-num { color: var(--purple-2); font-weight: 800; }
.shift-bar {
  color: #fff;
  font-size: 0.55rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
}
.shift-bar span {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.5rem;
  opacity: 0.85;
  flex-shrink: 0;
}
.shift-bar-night {
  background: linear-gradient(135deg, #1e1b4b, #312e81) !important;
}

/* ============== SCENE 07 — GUARDS TABLE ============== */
.gtable {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.7);
}
/* ============== Guard management table (Scene 07 — Settings → Guard Management) ============== */
.gtable {
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.7);
  display: flex;
  flex-direction: column;
}
.gtable-chrome {
  background: var(--bg-2);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line-2);
}
.gtable-dots { display: flex; gap: 5px; }
.gtable-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--bg-5); }
.gtable-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: 'SF Mono', Menlo, monospace;
  display: flex;
  align-items: center;
  gap: 6px;
}
.gtable-lock { color: var(--purple-2); font-size: 0.7rem; }
.gtable-tab {
  font-size: 0.65rem;
  color: var(--text);
  font-weight: 600;
  padding: 3px 10px;
  background: var(--bg-3);
  border-radius: 6px;
}
.gtable-head {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.gtable-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.gtable-title-badge {
  font-size: 0.58rem;
  font-weight: 600;
  padding: 3px 7px;
  background: var(--bg-2);
  color: var(--text-muted);
  border-radius: 100px;
  border: 1px solid var(--line-2);
}
.gtable-actions-top {
  display: flex;
  gap: 6px;
}
.gtable-add-btn {
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
}
.gtable-reset-btn {
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--line-2);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 600;
  cursor: pointer;
}

.gtable-table {
  font-size: 0.6rem;
  padding: 4px 0;
}
.gtable-thead, .gtable-trow {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr 0.7fr 0.7fr 0.6fr 1.5fr;
  gap: 8px;
  padding: 7px 14px;
  align-items: center;
}
.gtable-thead {
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-2);
}
.gtable-trow {
  border-bottom: 1px solid var(--line);
  color: var(--text-2);
}
.gtable-trow:last-child { border-bottom: none; }

.gtable-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text);
  font-size: 0.65rem;
}
.gtable-name-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.gtable-role {
  display: inline-block;
  background: var(--blue, #3b82f6);
  color: #fff;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.55rem;
  font-weight: 600;
}
.gtable-role-tl {
  background: var(--purple);
}

.gtable-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 5px;
  vertical-align: middle;
}
.gtable-dot-green { background: var(--green); box-shadow: 0 0 4px var(--green); }
.gtable-dot-amber { background: var(--amber); box-shadow: 0 0 4px var(--amber); }
.gtable-dot-grey { background: var(--text-dim); }

.gtable-mono {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 0.58rem;
  color: var(--text-muted);
}

.gtable-comp {
  font-family: 'SF Mono', Menlo, monospace;
  font-weight: 700;
  font-size: 0.7rem;
}
.gtable-comp-green { color: var(--green); }
.gtable-comp-amber { color: var(--amber); }
.gtable-comp-red { color: var(--red); }

.gtable-row-actions {
  display: flex;
  gap: 3px;
  flex-wrap: wrap;
}
.gtable-btn-sm {
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  font-size: 0.55rem;
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 4px;
  cursor: pointer;
}
.gtable-btn-deactivate {
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.3);
}
.gtable-btn-activate {
  color: var(--green);
  border-color: rgba(34, 197, 94, 0.3);
}

/* ============== SCENE 03-07 — Mobile ============== */
/* On mobile, drop the desktop aspect-ratio on the mockup panels and
   give them a min-height so they don't collapse. Several panels
   (radar-panel in particular) have all-absolute children, so without
   an explicit height/aspect-ratio they collapse to ~0 once we kill
   the desktop aspect-ratio rule. */
@media (max-width: 900px) {
  .dash-panel   { aspect-ratio: auto; min-height: 360px; }
  .alert-panel  { aspect-ratio: auto; min-height: 460px; padding: 40px 24px; }
  .map-panel    { aspect-ratio: auto; min-height: 520px; grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .pdf-panel    { aspect-ratio: auto; min-height: 420px; transform: none; padding: 32px 28px; }
  .radar-panel  { aspect-ratio: auto; min-height: 300px; }
  .shift-cal    { aspect-ratio: auto; min-height: 360px; }
  .gtable-wrap  { aspect-ratio: auto; min-height: 340px; }
  .phone-panel  { aspect-ratio: auto; min-height: 0; }
  .numpad-wrap  { aspect-ratio: auto; min-height: 0; }

  .tablet-frame { max-width: 340px; aspect-ratio: 4/5; }
  .tablet-time-big { font-size: 1.9rem; }
  .tablet-confirm { width: 100px; height: 100px; }
  .shift-week { grid-template-columns: 60px repeat(7, 1fr); font-size: 0.6rem; }
  .shift-row-label { padding: 8px 6px; font-size: 0.65rem; }
  .gtable-row { grid-template-columns: 1.4fr 1fr 0.8fr 0.7fr 0.6fr; font-size: 0.65rem; }
  .gtable-row .gtable-last, .gtable-row .gtable-act { display: none; }

  /* Spot check phone mockup — drop aspect-ratio entirely on mobile so
     the panel always sizes to its content (no overflow if iOS renders
     fonts slightly larger than expected). Shrink button + trim padding
     so it still looks compact on a 390px viewport. */
  .sc-panel {
    max-width: 400px;
    aspect-ratio: 3/4;        /* match video on mobile too */
    overflow: hidden;
  }
  .sc-panel-screen {
    padding: 22px 18px;
    height: auto;
    min-height: 344px;
    justify-content: space-between;
  }
  .sc-panel-title { font-size: 17px; margin: 0 0 4px; letter-spacing: 2px; }
  .sc-panel-sub { font-size: 12px; margin: 0 0 10px; }
  .sc-panel-timer { font-size: 38px; margin: 0 0 12px; }
  .sc-panel-btn {
    width: 76px;
    height: 76px;
    font-size: 14px;
    letter-spacing: 2px;
    margin-top: auto;
    box-shadow: 0 6px 18px -4px rgba(0, 0, 0, 0.5);
  }

  /* Allow horizontal scroll inside tables/calendars rather than overflow
     pushing the whole panel sideways. The container already has overflow:hidden,
     so we expose scroll only on the inner element. */
  .shift-cal-inner,
  .gtable-inner {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
