
    /* ==========================================================================
       1. DESIGN TOKENS & THEME VARIABLES (DARK CONTROL ROOM & CRISP LIGHT MODE)
       ========================================================================== */
    :root {
      --bg-base: #070b12;
      --bg-surface: #0f1623;
      --bg-elevated: #162032;
      --bg-card: #131c2e;
      --bg-card-hover: #1a263d;
      --bg-glass: rgba(15, 22, 35, 0.88);
      --border-subtle: #1e2d45;
      --border-focus: #38bdf8;
      --text-primary: #f1f5f9;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;
      --accent-amber: #f59e0b;
      --accent-amber-soft: rgba(245, 158, 11, 0.15);
      --accent-teal: #14b8a6;
      --accent-teal-soft: rgba(20, 184, 166, 0.15);
      --accent-blue: #38bdf8;
      --accent-blue-soft: rgba(56, 189, 248, 0.15);
      --status-green: #10b981;
      --status-green-soft: rgba(16, 185, 129, 0.15);
      --status-red: #ef4444;
      --status-red-soft: rgba(239, 68, 68, 0.16);
      --status-purple: #a855f7;
      --status-purple-soft: rgba(168, 85, 247, 0.15);
      --shadow-main: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
      --radius-sm: 6px;
      --radius-md: 10px;
      --radius-lg: 14px;
      --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
      --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
      --transition-fast: 160ms cubic-bezier(0.4, 0, 0.2, 1);
    }

    [data-theme="light"] {
      --bg-base: #f1f5f9;
      --bg-surface: #ffffff;
      --bg-elevated: #f8fafc;
      --bg-card: #ffffff;
      --bg-card-hover: #f1f5f9;
      --bg-glass: rgba(255, 255, 255, 0.92);
      --border-subtle: #cbd5e1;
      --border-focus: #0284c7;
      --text-primary: #0f172a;
      --text-secondary: #334155;
      --text-muted: #52627b;
      --accent-amber: #8b4b05;
      --accent-amber-soft: rgba(217, 119, 6, 0.12);
      --accent-teal: #096e66;
      --accent-teal-soft: rgba(13, 148, 136, 0.12);
      --accent-blue: #036a9e;
      --accent-blue-soft: rgba(2, 132, 199, 0.12);
      --status-green: #07764f;
      --status-green-soft: rgba(5, 150, 105, 0.12);
      --status-red: #b11d25;
      --status-red-soft: rgba(220, 38, 38, 0.12);
      --status-purple: #7e22ce;
      --status-purple-soft: rgba(126, 34, 206, 0.12);
      --shadow-main: 0 8px 24px -4px rgba(15, 23, 42, 0.08);
    }

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

    /* ==========================================================================
       2. GLOBAL RESET & BASE TYPOGRAPHY
       ========================================================================== */
    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      height: 100%;
      background-color: var(--bg-base);
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 14px;
      line-height: 1.5;
      overflow-x: hidden;
    }

    button, input, select, textarea {
      font-family: inherit;
      font-size: inherit;
      color: inherit;
    }

    button {
      cursor: pointer;
      border: none;
      background: none;
    }

    /* Custom Scrollbars */
    ::-webkit-scrollbar {
      width: 7px;
      height: 7px;
    }
    ::-webkit-scrollbar-track {
      background: var(--bg-base);
    }
    ::-webkit-scrollbar-thumb {
      background: var(--border-subtle);
      border-radius: 4px;
    }
    ::-webkit-scrollbar-thumb:hover {
      background: var(--text-muted);
    }

    /* ==========================================================================
       3. APP SHELL LAYOUT (TOP BAR + SIDEBAR + MAIN STAGE)
       ========================================================================== */
    .app-shell {
      display: flex;
      flex-direction: column;
      min-height: 100vh;
    }

    /* Top Header Navigation */
    .top-nav {
      position: sticky;
      top: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      padding: 10px 18px;
      background: var(--bg-surface);
      border-bottom: 1px solid var(--border-subtle);
      box-shadow: var(--shadow-main);
    }

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

    .brand-logo {
      width: 38px;
      height: 38px;
      border-radius: var(--radius-md);
      background: linear-gradient(135deg, var(--accent-teal), var(--night-raised, #0284c7));
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--night-text, #fff);
      flex-shrink: 0;
      box-shadow: 0 0 15px rgba(20, 184, 166, 0.35);
    }

    .brand-titles h1 {
      font-size: 16px;
      font-weight: 700;
      letter-spacing: -0.01em;
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .brand-subtitle {
      font-size: 11.5px;
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .venue-pill {
      background: var(--accent-amber-soft);
      color: var(--accent-amber);
      border: 1px solid rgba(245, 158, 11, 0.35);
      padding: 1px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
    }

    /* Live Status & Controls Cluster */
    .top-controls {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    .live-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      padding: 5px 11px;
      border-radius: 999px;
      background: var(--status-green-soft);
      border: 1px solid rgba(16, 185, 129, 0.35);
      color: var(--status-green);
      font-size: 11.5px;
      font-weight: 700;
      letter-spacing: 0.03em;
    }

    .live-badge.paused {
      background: var(--accent-amber-soft);
      border-color: rgba(245, 158, 11, 0.4);
      color: var(--accent-amber);
    }

    .pulse-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: currentColor;
      animation: pulseGlow 1.6s infinite;
    }

    .live-badge.paused .pulse-dot {
      animation: none;
    }

    @keyframes pulseGlow {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.35); opacity: 0.45; }
    }

    .sim-clock {
      font-family: var(--font-mono);
      font-size: 12.5px;
      font-weight: 600;
      padding: 5px 10px;
      border-radius: var(--radius-sm);
      background: var(--bg-elevated);
      border: 1px solid var(--border-subtle);
      color: var(--text-primary);
    }

    /* Buttons */
    .btn {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: var(--radius-sm);
      font-size: 12.5px;
      font-weight: 600;
      border: 1px solid var(--border-subtle);
      background: var(--bg-elevated);
      color: var(--text-primary);
      transition: all var(--transition-fast);
      white-space: nowrap;
    }

    .btn:hover {
      background: var(--bg-card-hover);
      border-color: var(--text-muted);
    }

    .btn-primary {
      background: linear-gradient(135deg, var(--accent-amber), var(--night-error, #ea580c));
      color: var(--night-text, #ffffff);
      border-color: transparent;
      box-shadow: 0 3px 12px rgba(245, 158, 11, 0.3);
    }

    .btn-primary:hover {
      filter: brightness(1.08);
      border-color: transparent;
    }

    .btn-teal {
      background: var(--accent-teal);
      color: var(--night-text, #ffffff);
      border-color: transparent;
    }

    .btn-teal:hover {
      filter: brightness(1.1);
    }

    .btn-sm {
      padding: 4px 9px;
      font-size: 11.5px;
    }

    .btn-subtle {
      background: transparent;
    }

    .speed-select {
      padding: 5px 8px;
      border-radius: var(--radius-sm);
      background: var(--bg-elevated);
      border: 1px solid var(--border-subtle);
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
    }

    /* Body Layout: Left Sidebar + Main View */
    .workspace {
      display: flex;
      flex: 1;
      min-height: 0;
    }

    .sidebar {
      width: 248px;
      flex-shrink: 0;
      background: var(--bg-surface);
      border-right: 1px solid var(--border-subtle);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      padding: 12px 10px;
      user-select: none;
    }

    .nav-list {
      display: flex;
      flex-direction: column;
      gap: 4px;
      list-style: none;
    }

    .nav-item {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      padding: 9px 12px;
      border-radius: var(--radius-sm);
      color: var(--text-secondary);
      font-weight: 500;
      font-size: 13px;
      text-align: left;
      transition: all var(--transition-fast);
    }

    .nav-item-left {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .nav-item:hover {
      background: var(--bg-elevated);
      color: var(--text-primary);
    }

    .nav-item.active {
      background: var(--accent-teal-soft);
      color: var(--accent-teal);
      font-weight: 600;
      border-left: 3px solid var(--accent-teal);
    }

    .nav-badge {
      padding: 1px 7px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 700;
      background: var(--bg-elevated);
      color: var(--text-secondary);
    }

    .nav-badge.amber {
      background: var(--accent-amber-soft);
      color: var(--accent-amber);
    }

    .nav-badge.red {
      background: var(--status-red-soft);
      color: var(--status-red);
    }

    .sidebar-footer {
      margin-top: 16px;
      padding: 12px;
      border-radius: var(--radius-md);
      background: var(--bg-elevated);
      border: 1px solid var(--border-subtle);
      font-size: 11.5px;
      color: var(--text-secondary);
    }

    .sidebar-footer strong {
      color: var(--text-primary);
      display: block;
      margin-bottom: 4px;
    }

    /* Main Content Stage */
    .main-stage {
      flex: 1;
      padding: 18px 22px 90px 22px;
      overflow-y: auto;
      max-width: 100%;
    }

    .view-section {
      display: none;
      animation: fadeIn 0.22s ease-out;
    }

    .view-section.active {
      display: block;
    }

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

    /* ==========================================================================
       4. REUSABLE UI COMPONENTS (CARDS, GRIDS, BADGES, BANNERS)
       ========================================================================== */
    .section-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 18px;
    }

    .section-title {
      font-size: 20px;
      font-weight: 700;
      letter-spacing: -0.01em;
    }

    .section-desc {
      color: var(--text-secondary);
      font-size: 13px;
      margin-top: 2px;
    }

    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
      gap: 14px;
      margin-bottom: 18px;
    }

    .kpi-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      transition: transform var(--transition-fast), border-color var(--transition-fast);
    }

    .kpi-card:hover {
      border-color: var(--text-muted);
    }

    .kpi-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: var(--text-secondary);
      font-size: 12px;
      font-weight: 600;
    }

    .kpi-value {
      font-size: 24px;
      font-weight: 800;
      margin: 6px 0 4px 0;
      font-family: var(--font-mono);
    }

    .kpi-sub {
      font-size: 11.5px;
      color: var(--text-muted);
      display: flex;
      align-items: center;
      gap: 5px;
    }

    .panel {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      padding: 16px;
      margin-bottom: 18px;
    }

    .panel-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 14px;
      padding-bottom: 10px;
      border-bottom: 1px solid var(--border-subtle);
    }

    .panel-title {
      font-size: 15px;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      padding: 2px 8px;
      border-radius: 999px;
      font-size: 11px;
      font-weight: 600;
    }

    .tag-teal { background: var(--accent-teal-soft); color: var(--accent-teal); }
    .tag-amber { background: var(--accent-amber-soft); color: var(--accent-amber); }
    .tag-red { background: var(--status-red-soft); color: var(--status-red); }
    .tag-green { background: var(--status-green-soft); color: var(--status-green); }
    .tag-blue { background: var(--accent-blue-soft); color: var(--accent-blue); }
    .tag-purple { background: var(--status-purple-soft); color: var(--status-purple); }

    .grid-2 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
      gap: 16px;
    }

    .grid-3 {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 16px;
    }

    /* Operational Story Ribbon */
    .story-ribbon {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 6px;
      background: linear-gradient(90deg, rgba(20,184,166,0.12), rgba(245,158,11,0.12), rgba(56,189,248,0.12));
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 10px 16px;
      margin-bottom: 18px;
      overflow-x: auto;
      font-size: 12px;
    }

    .story-step {
      display: flex;
      align-items: center;
      gap: 6px;
      white-space: nowrap;
      font-weight: 600;
      color: var(--text-primary);
    }

    .story-arrow {
      color: var(--text-muted);
      font-weight: bold;
    }

    /* ==========================================================================
       5. SIMULATED CCTV CAMERA GRID & SVG SCENE OVERLAYS
       ========================================================================== */
    .camera-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
      gap: 16px;
    }

    .camera-card {
      background: var(--bg-card);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      overflow: hidden;
      display: flex;
      flex-direction: column;
      transition: all var(--transition-fast);
      position: relative;
    }

    .camera-card:hover {
      border-color: var(--accent-teal);
      box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    }

    .camera-card.alert-active {
      border-color: var(--accent-amber);
      box-shadow: 0 0 0 1px var(--accent-amber);
    }

    .camera-card.risk-active {
      border-color: var(--status-red);
      box-shadow: 0 0 0 1px var(--status-red);
    }

    .cam-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 9px 13px;
      background: var(--bg-elevated);
      border-bottom: 1px solid var(--border-subtle);
      font-size: 12.5px;
    }

    .cam-title-group {
      display: flex;
      align-items: center;
      gap: 8px;
      font-weight: 700;
    }

    .rec-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--status-green);
      display: inline-block;
    }

    .cam-viewport {
      position: relative;
      width: 100%;
      aspect-ratio: 16 / 9.4;
      background: var(--night-strong, #060a10);
      overflow: hidden;
      cursor: pointer;
    }

    .cam-svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    /* Scanline & CCTV HUD effect */
    .cam-viewport::after {
      content: "";
      position: absolute;
      inset: 0;
      background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.18) 50%);
      background-size: 100% 4px;
      pointer-events: none;
    }

    .cam-hud-top {
      position: absolute;
      top: 8px;
      left: 10px;
      right: 10px;
      display: flex;
      justify-content: space-between;
      pointer-events: none;
      font-family: var(--font-mono);
      font-size: 10.5px;
      color: var(--night-text, #e2e8f0);
      z-index: 2;
    }

    .cam-hud-pill {
      background: rgba(7, 11, 18, 0.78);
      padding: 2px 7px;
      border-radius: 4px;
      border: 1px solid rgba(255, 255, 255, 0.14);
    }

    .cam-footer {
      padding: 10px 13px;
      display: flex;
      flex-direction: column;
      gap: 6px;
      font-size: 12px;
      background: var(--bg-card);
    }

    .cam-observation {
      color: var(--text-secondary);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
    }

    /* ==========================================================================
       6. EVENT DETECTION STUDIO (7-STAGE ANIMATED PIPELINE)
       ========================================================================== */
    .pipeline-stages {
      display: grid;
      grid-template-columns: repeat(7, minmax(135px, 1fr));
      gap: 10px;
      overflow-x: auto;
      padding-bottom: 8px;
      margin-bottom: 18px;
    }

    .stage-card {
      background: var(--bg-elevated);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-md);
      padding: 12px;
      position: relative;
      transition: all 0.25s ease;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      min-height: 155px;
    }

    .stage-card.active-stage {
      border-color: var(--accent-teal);
      background: linear-gradient(180deg, rgba(20, 184, 166, 0.16), var(--bg-elevated));
      box-shadow: 0 0 18px rgba(20, 184, 166, 0.25);
      transform: translateY(-2px);
    }

    .stage-num {
      font-family: var(--font-mono);
      font-size: 11px;
      font-weight: 700;
      color: var(--accent-teal);
      margin-bottom: 4px;
    }

    .stage-name {
      font-weight: 700;
      font-size: 13px;
      margin-bottom: 6px;
    }

    .stage-detail {
      font-size: 11.5px;
      color: var(--text-secondary);
      line-height: 1.4;
    }

    .stage-live-readout {
      margin-top: 8px;
      padding: 6px 8px;
      background: var(--bg-base);
      border-radius: var(--radius-sm);
      border: 1px solid var(--border-subtle);
      font-family: var(--font-mono);
      font-size: 10.5px;
      color: var(--accent-amber);
    }

    /* ==========================================================================
       7. PROMPT CARDS, RISK CARDS & FLOORPLAN
       ========================================================================== */
    .prompt-list {
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .prompt-card {
      background: var(--bg-elevated);
      border: 1px solid var(--border-subtle);
      border-left: 4px solid var(--accent-teal);
      border-radius: var(--radius-md);
      padding: 14px;
      display: flex;
      flex-direction: column;
      gap: 10px;
      transition: all var(--transition-fast);
    }

    .prompt-card.priority-high {
      border-left-color: var(--accent-amber);
    }

    .prompt-card.priority-risk {
      border-left-color: var(--status-red);
    }

    .prompt-card.status-completed {
      opacity: 0.72;
      border-left-color: var(--status-green);
    }

    .prompt-top {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
    }

    .prompt-actions {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-wrap: wrap;
    }

    /* Timeline Scrubber */
    .timeline-bar {
      display: flex;
      align-items: center;
      gap: 6px;
      overflow-x: auto;
      padding: 12px 4px;
    }

    .timeline-node {
      flex: 1;
      min-width: 110px;
      padding: 10px;
      border-radius: var(--radius-sm);
      background: var(--bg-elevated);
      border: 1px solid var(--border-subtle);
      cursor: pointer;
      text-align: left;
      transition: all var(--transition-fast);
    }

    .timeline-node:hover, .timeline-node.selected {
      border-color: var(--accent-amber);
      background: var(--accent-amber-soft);
    }

    /* Guided Demo Floating Director Bar */
    .guided-director {
      position: fixed;
      bottom: 16px;
      left: 50%;
      transform: translateX(-50%);
      width: min(940px, 95vw);
      background: var(--bg-glass);
      backdrop-filter: blur(14px);
      border: 2px solid var(--accent-amber);
      border-radius: var(--radius-lg);
      padding: 14px 18px;
      z-index: 250;
      box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
      display: none;
    }

    .guided-director.active {
      display: block;
      animation: slideUp 0.25s ease-out;
    }

    @keyframes slideUp {
      from { transform: translate(-50%, 30px); opacity: 0; }
      to { transform: translate(-50%, 0); opacity: 1; }
    }

    /* Modal Dialog */
    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: rgba(3, 7, 15, 0.78);
      backdrop-filter: blur(5px);
      z-index: 300;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px;
    }

    .modal-backdrop.open {
      display: flex;
    }

    .modal-box {
      background: var(--bg-surface);
      border: 1px solid var(--border-subtle);
      border-radius: var(--radius-lg);
      width: min(880px, 96vw);
      max-height: 90vh;
      overflow-y: auto;
      padding: 20px;
      box-shadow: var(--shadow-main);
    }

    /* Toast container */
    .toast-stack {
      position: fixed;
      top: 72px;
      right: 18px;
      z-index: 350;
      display: flex;
      flex-direction: column;
      gap: 8px;
      max-width: 360px;
      pointer-events: none;
    }

    .toast-item {
      pointer-events: auto;
      background: var(--bg-surface);
      border: 1px solid var(--accent-teal);
      border-left: 4px solid var(--accent-teal);
      padding: 10px 14px;
      border-radius: var(--radius-sm);
      box-shadow: var(--shadow-main);
      font-size: 12.5px;
      animation: fadeIn 0.2s ease-out;
    }

    /* Form Controls */
    .form-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 14px;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 5px;
    }

    .form-group label {
      font-size: 12px;
      font-weight: 600;
      color: var(--text-secondary);
    }

    .form-input {
      padding: 8px 10px;
      border-radius: var(--radius-sm);
      background: var(--bg-base);
      border: 1px solid var(--border-subtle);
      color: var(--text-primary);
    }

    /* Table styling for Audit Log */
    .audit-table {
      width: 100%;
      border-collapse: collapse;
      font-size: 12.5px;
    }

    .audit-table th, .audit-table td {
      padding: 9px 11px;
      text-align: left;
      border-bottom: 1px solid var(--border-subtle);
    }

    .audit-table th {
      color: var(--text-secondary);
      font-weight: 600;
      background: var(--bg-elevated);
    }

    /* Responsive adjustments */
    @media (max-width: 960px) {
      .workspace {
        flex-direction: column;
      }
      .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-subtle);
      }
      .nav-list {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 4px;
      }
      .nav-item {
        white-space: nowrap;
        width: auto;
      }
      .sidebar-footer {
        display: none;
      }
    }
  

@font-face{font-family:Inter;src:url('/fonts/inter-latin-variable.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Manrope;src:url('/fonts/manrope-latin-variable.woff2') format('woff2');font-weight:200 800;font-display:swap}
:root,[data-theme="light"]{--bg-base:#f5f3e9;--bg-surface:#fffef8;--bg-elevated:#edf0e2;--bg-card:#fffef8;--bg-card-hover:#edf1df;--bg-glass:rgba(245,243,233,.94);--border-subtle:#d2d8c4;--border-focus:#52613e;--text-primary:#283b2e;--text-secondary:#5d6853;--text-muted:#69735f;--accent-teal:#526f3e;--accent-teal-soft:#e7edda;--accent-blue:#52613e;--accent-blue-soft:#e4e9d8;--status-green:#4e6a39;--status-green-soft:#e4edda;--font-sans:Inter,Arial,sans-serif;--radius-lg:10px;--shadow-main:0 6px 20px rgba(40,59,46,.05)}
h1,h2,h3,h4,.panel-title{font-family:Manrope,Inter,sans-serif;letter-spacing:-.03em}
.site-strip{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:18px 26px;background:var(--night-surface, #f5f3e9);color:var(--night-muted, #283b2e);border-bottom:1px solid var(--night-border, #d2d8c4)}
.studio-brand{display:flex;gap:8px;align-items:center;text-decoration:none;color:inherit;font-family:Manrope,Arial,sans-serif;font-weight:700;font-size:16px;line-height:1.1}
.studio-brand svg{width:35px;height:35px}.studio-brand small{display:block;letter-spacing:2px;font:8px/2 Inter,sans-serif;text-transform:uppercase}
.site-strip nav{display:flex;gap:22px;font-size:12px}.site-strip nav a{color:inherit;text-decoration:none}.site-strip nav a:hover{text-decoration:underline}
.studio-disclosure{padding:12px 26px;background:var(--night-strong, #283b2e);color:var(--night-text, #e0e8d3);font-size:11px;line-height:1.7}
.top-nav{box-shadow:none}.brand-logo{background:var(--night-strong, #283b2e);box-shadow:none;color:var(--night-text, #d5eb71)}.venue-pill{font-weight:400}.btn-primary{background:var(--night-strong, #283b2e);color:var(--night-text, #f5f3e9);border-color:var(--night-border, #283b2e)}.btn-primary:hover{background:var(--night-strong, #3f5739)}.btn-teal{background:var(--night-soft, #e4edcf);color:var(--night-muted, #283b2e)}.nav-item.active{background:var(--night-soft, #e4edcf);color:var(--night-muted, #283b2e);border-color:var(--night-border, #9daf80)}
.btn:focus-visible,[role="button"]:focus-visible,a:focus-visible{outline:2px solid var(--night-border, #52613e);outline-offset:3px}.cam-viewport{min-height:120px}.sidebar{min-width:0}.main-stage{min-width:0}.panel,.camera-card{min-width:0}.audit-table-wrap{max-width:100%;overflow:auto}
[data-theme="dark"] .site-strip{background:var(--night-strong, #283b2e);color:var(--night-text, #f5f3e9)}[data-theme="dark"] .btn-primary{background:#d5eb71;color:var(--night-muted, #283b2e)}
@media(max-width:700px){.site-strip{padding:15px;align-items:start}.site-strip nav{flex-direction:column;gap:10px;font-size:11px}.studio-disclosure{padding:12px 15px}.top-nav{position:relative}.brand-titles h1{font-size:17px}.top-controls{width:100%}.main-stage{padding:14px}.pipeline-stage{min-width:0}}

@media(max-width:620px){.grid-2,.grid-3,.grid-4{grid-template-columns:1fr}.top-controls{gap:7px}.btn{min-height:38px}.section-header{align-items:flex-start}.story-ribbon{font-size:10px}.guided-director{left:10px;right:10px;bottom:10px;max-height:45dvh;overflow:auto}}
@media(max-width:620px){.camera-grid{grid-template-columns:minmax(0,1fr)}.grid-2>*{min-width:0}}

.studio-legal-footer{display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap;padding:20px 32px;background:var(--night-soft, #eceee1);color:var(--night-muted, #606b51);border-top:1px solid var(--night-border, #d3d8c3);font-size:11px}.studio-legal-footer .footer-legal{display:flex;gap:20px;flex-wrap:wrap}.studio-legal-footer a{color:inherit;text-decoration:none}.studio-legal-footer a:hover{text-decoration:underline}@media(max-width:600px){.studio-legal-footer{padding:20px;gap:15px}}

/* Match the public website shell; studio controls form a separate page panel. */
.hospitality-studio{padding-bottom:0}
.hospitality-studio .site-header{font-family:var(--sans);color:var(--ink);z-index:200}
.hospitality-studio .site-header a:focus-visible{outline:3px solid var(--moss);outline-offset:6px}
.hospitality-studio .skip-link{z-index:400}
.hospitality-studio .app-shell{min-height:0}
.hospitality-studio .studio-disclosure{padding:12px max(56px,calc((100% - 1328px)/2));background:var(--night-soft,#e8ecdb);color:var(--moss);border-bottom:1px solid var(--line);font:11px/1.8 var(--sans)}
.hospitality-studio .top-nav{position:static;display:block;padding:30px 0 23px;background:transparent;border:0;box-shadow:none;z-index:auto;color:var(--ink)}
.studio-title-row{display:flex;justify-content:space-between;align-items:center;gap:30px}
.hospitality-studio .brand-titles .eyebrow{font:600 10px/1.7 var(--sans);letter-spacing:1.3px;color:var(--moss);margin-bottom:15px}
.hospitality-studio .brand-titles h1{display:block;font:600 clamp(34px,3.5vw,48px)/1.15 var(--heading);letter-spacing:-.05em;color:var(--ink)}
.hospitality-studio .brand-titles h1 em{font-style:normal;color:var(--moss)}
.hospitality-studio .brand-subtitle{display:block;font:12px/1.9 var(--sans);margin-top:12px;color:var(--muted)}
.studio-context{display:flex;flex-direction:column;gap:15px;align-items:flex-end;font:11px/1.8 var(--sans)}
.studio-context .venue-pill{padding:5px 12px;font-size:10px;border-color:var(--line);background:var(--night-soft,#e8ecdb);color:var(--moss)}
.studio-context a{display:inline-flex;gap:18px;align-items:center;text-decoration:none;color:var(--forest);padding:5px 0}
.studio-context a:hover{color:var(--moss);text-decoration:underline;text-underline-offset:5px}
.hospitality-studio .top-controls{margin-top:26px;padding-top:20px;border-top:1px solid var(--line);gap:9px}
.hospitality-studio .top-controls :is(.btn,.speed-select){min-height:40px;border-radius:6px;font:500 11px/1.6 var(--sans)}
.hospitality-studio .top-controls .btn-primary{box-shadow:none;background:var(--night-action,var(--forest));color:var(--night-action-ink,var(--paper-light));border-color:transparent}
.hospitality-studio .top-controls .btn-primary:hover{background:var(--night-action-hover,#405534);color:var(--night-action-ink,#fffef8);filter:none}
.hospitality-studio .top-controls .live-badge{font-size:10px;letter-spacing:.2px;min-height:34px}
.hospitality-studio .top-controls .sim-clock{font-size:11px;font-weight:500;min-height:34px;display:flex;align-items:center}
.hospitality-studio .workspace{border-top:1px solid var(--line)}
.hospitality-studio .toast-stack{top:115px}
@media(max-width:1100px){.hospitality-studio .studio-disclosure{padding-inline:36px}}
@media(max-width:800px){.hospitality-studio .studio-disclosure{padding:12px 24px;font-size:10px}.hospitality-studio .top-nav{padding:26px 0 22px}.studio-title-row{align-items:flex-start;flex-direction:column;gap:18px}.studio-context{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:12px 20px}.hospitality-studio .top-controls{margin-top:20px;padding-top:18px;gap:8px}.hospitality-studio .brand-titles h1{font-size:38px}.hospitality-studio .brand-subtitle{font-size:11px}.hospitality-studio .toast-stack{top:90px}.hospitality-studio .site-header .main-nav{max-height:calc(100dvh - 90px)}}
@media(max-width:420px){.hospitality-studio .brand-titles h1{font-size:34px}.hospitality-studio .top-controls .sim-clock{font-size:10px}.hospitality-studio .top-controls .btn{white-space:normal}}
