/* ============================================
   HOPPO APPS — Master Design System
   ============================================ */

:root {
  /* Brand colors (matching website) */
  --ink: #1F2D3D;
  --ink-light: #2C3A4A;
  --ink-soft: #4A5868;
  --ink-faint: #7A8794;
  --bone: #F7F4EE;
  --bone-warm: #EAE2D2;
  --paper: #FFFEFB;
  --signal: #C25A3A;
  --signal-soft: #F4DCC9;
  --gold: #B89460;
  --gold-soft: #F0E5C9;
  --sage: #6F8C73;
  --sky: #486B96;

  /* App-specific extensions */
  --success: #6F8C73;
  --success-soft: #DDE8DF;
  --warning: #C97B4A;
  --warning-soft: #F4E2CC;
  --danger: #B4524A;
  --danger-soft: #EFD5D2;
  --info: #486B96;
  --info-soft: #D8E0EC;

  /* Surfaces */
  --surface-0: #FFFEFB;
  --surface-1: #F7F4EE;
  --surface-2: #EFE9DD;
  --surface-dark: #1B3A42;
  --surface-darker: #0F2A33;
  /* refined classy palette */
  --petrol: #1B3A42;
  --petrol-deep: #0F2A33;
  --sage-surface: #E8EDE6;
  --blush-surface: #F4E6E1;
  --cream-warm: #FBF7EE;
  --linen: #F0E9DC;
  --brass: #B89460;

  --border: rgba(31, 45, 61, 0.08);
  --border-strong: rgba(31, 45, 61, 0.16);
  --border-dark: rgba(247, 244, 238, 0.12);

  --shadow-sm: 0 1px 2px rgba(31,45,61,0.05);
  --shadow-md: 0 4px 12px rgba(31,45,61,0.08), 0 1px 3px rgba(31,45,61,0.05);
  --shadow-lg: 0 12px 32px rgba(31,45,61,0.12), 0 4px 8px rgba(31,45,61,0.05);
  --shadow-xl: 0 24px 64px rgba(31,45,61,0.18);

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 36px;
  --r-full: 9999px;

  /* Phone frame dimensions */
  --phone-w: 390px;
  --phone-h: 844px;
  --phone-radius: 44px;
}

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bone);
  color: var(--ink);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
ul, ol { list-style: none; }

/* ============================================
   PHONE FRAME (for mobile apps)
   ============================================ */
.phone-stage {
  min-height: 100vh;
  background: linear-gradient(180deg, #FBF7EE 0%, #F0E9DC 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}
.phone-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(194,90,58,0.06) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(184,148,96,0.07) 0%, transparent 55%);
  pointer-events: none;
}

.stage-header {
  position: relative;
  z-index: 2;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--ink);
}
.stage-header h1 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.stage-header p {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--ink-faint);
}

.stage-nav {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  background: rgba(255,254,251,0.85);
  padding: 0.375rem;
  border-radius: var(--r-full);
  border: 1px solid rgba(31,45,61,0.08);
  backdrop-filter: blur(20px);
  flex-wrap: wrap;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(31,45,61,0.04);
}
.stage-nav a {
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--r-full);
  transition: all 0.2s;
  letter-spacing: 0.02em;
}
.stage-nav a:hover { color: var(--ink); }
.stage-nav a.active {
  background: var(--signal);
  color: white;
}

.phone-frame {
  width: var(--phone-w);
  max-width: 100%;
  height: var(--phone-h);
  background: #0a0a14;
  border-radius: var(--phone-radius);
  padding: 12px;
  position: relative;
  z-index: 1;
  box-shadow:
    0 0 0 2px #2a2a3a,
    0 0 0 12px rgba(0,0,0,0.4),
    0 30px 80px rgba(0,0,0,0.6),
    0 60px 120px rgba(0,0,0,0.4);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--phone-radius) - 12px);
  overflow: hidden;
  position: relative;
  background: var(--bone);
}

/* Dynamic Island */
.phone-island {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 32px;
  background: #0a0a14;
  border-radius: 100px;
  z-index: 100;
  pointer-events: none;
}

/* iOS Status bar */
.ios-status {
  height: 50px;
  padding: 18px 28px 4px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  font-family: -apple-system, 'SF Pro Display', var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.ios-status.dark { color: white; }
.ios-status-right {
  display: flex;
  gap: 5px;
  align-items: center;
}
.ios-battery {
  width: 24px;
  height: 11px;
  border: 1px solid currentColor;
  border-radius: 3px;
  position: relative;
  padding: 1px;
}
.ios-battery::after {
  content: '';
  width: 80%;
  height: 100%;
  background: currentColor;
  border-radius: 1px;
  display: block;
}

/* App view container */
.app-view {
  height: calc(100% - 50px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.app-view::-webkit-scrollbar { display: none; }

/* App bottom tab bar */
.tab-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 254, 251, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-top: 1px solid var(--border);
  padding: 0.5rem 0 1.5rem;
  display: flex;
  justify-content: space-around;
  z-index: 10;
}
.tab-bar.dark {
  background: rgba(10,14,26,0.92);
  border-top-color: var(--border-dark);
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0.5rem;
  color: var(--ink-faint);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.tab-bar.dark .tab-item { color: rgba(247,244,238,0.5); }
.tab-item.active { color: var(--signal); }
.tab-item svg { width: 22px; height: 22px; }

/* ============================================
   COMMON APP COMPONENTS
   ============================================ */

/* App top bar */
.app-bar {
  padding: 12px 20px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-bar h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.app-bar-greeting {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2px;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--signal), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  position: relative;
  overflow: hidden;
}
.avatar.driver { background: linear-gradient(135deg, var(--gold), #8B6F38); }
.avatar.child { background: linear-gradient(135deg, var(--sky), var(--sage)); }
.avatar-ring::after {
  content: '';
  position: absolute;
  inset: -3px;
  border: 2px solid var(--success);
  border-radius: 50%;
}

/* Cards */
.card {
  background: var(--paper);
  border-radius: var(--r-lg);
  padding: 1.25rem;
  border: 1px solid var(--border);
}
.card.dark {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}
.card.signal {
  background: var(--signal);
  color: white;
  border-color: var(--signal);
}
.card-title {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 8px;
  font-weight: 600;
}
.card.dark .card-title { color: var(--gold); }
.card.signal .card-title { color: rgba(255,255,255,0.8); }

/* Status pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.pill-success { background: var(--success-soft); color: #047857; }
.pill-warning { background: var(--warning-soft); color: #B45309; }
.pill-danger { background: var(--danger-soft); color: #B91C1C; }
.pill-info { background: var(--info-soft); color: #1D4ED8; }
.pill-signal { background: var(--signal-soft); color: #C2410C; }
.pill-ink { background: var(--ink); color: var(--bone); }
.pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.pill-dot.pulse { animation: pillPulse 1.5s ease-in-out infinite; }
@keyframes pillPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

/* Stat blocks */
.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 500;
}
.stat-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.stat-value.large { font-size: 36px; }
.stat-value.small { font-size: 18px; }
.stat-delta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--success);
  font-weight: 500;
}
.stat-delta.negative { color: var(--danger); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-light); transform: translateY(-1px); }
.btn-signal { background: var(--signal); color: white; }
.btn-signal:hover { background: #E54A15; transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-danger { background: var(--danger); color: white; }
.btn-full { width: 100%; }
.btn-lg { padding: 16px 24px; font-size: 14px; }
.btn-sm { padding: 8px 14px; font-size: 12px; }

/* ============================================
   DASHBOARD CHROME (for admin/school)
   ============================================ */

.dash-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--surface-1);
}

.dash-sidebar {
  background: linear-gradient(180deg, #EDE5D3 0%, #E5DCC4 100%);
  color: var(--ink);
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(31,45,61,0.06);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem;
}
.dash-brand-mark {
  width: 36px;
  height: 36px;
  background: var(--ink);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border: none;
  box-shadow: 0 2px 6px rgba(31,45,61,0.18);
}
.dash-brand-mark::before {
  content: '';
  width: 14px;
  height: 14px;
  background: var(--signal);
  border-radius: 50%;
}
.dash-brand-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.dash-brand-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: -2px;
}

.dash-nav-section {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.dash-nav-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(31,45,61,0.45);
  font-weight: 600;
  padding: 0 12px;
  margin-bottom: 6px;
}
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  font-size: 13px;
  color: rgba(31,45,61,0.72);
  transition: all 0.2s;
  font-weight: 500;
}
.dash-nav-link:hover { background: rgba(31,45,61,0.05); color: var(--ink); }
.dash-nav-link.active {
  background: rgba(194,90,58,0.12);
  color: var(--signal);
}
.dash-nav-link svg { width: 18px; height: 18px; flex-shrink: 0; }
.dash-nav-badge {
  margin-left: auto;
  background: var(--signal);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--r-full);
}

.dash-user {
  margin-top: auto;
  padding: 12px;
  background: rgba(31,45,61,0.04);
  border: 1px solid rgba(31,45,61,0.06);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-user-name { font-size: 13px; font-weight: 600; color: var(--ink); }
.dash-user-role { font-size: 11px; color: rgba(31,45,61,0.55); font-family: var(--font-mono); letter-spacing: 0.05em; }

/* Dashboard main area */
.dash-main {
  padding: 0;
  overflow-x: hidden;
}
.dash-topbar {
  height: 64px;
  background: var(--surface-0);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 10;
}
.dash-topbar h1 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.dash-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface-1);
  border-radius: var(--r-md);
  width: 320px;
  border: 1px solid transparent;
  transition: all 0.2s;
}
.dash-search:focus-within { border-color: var(--ink); background: var(--paper); }
.dash-search input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--ink);
}
.dash-search svg { width: 16px; height: 16px; color: var(--ink-faint); }

.dash-content { padding: 2rem; }

/* Stat grid */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.stat-card {
  background: var(--paper);
  padding: 1.25rem;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}
.stat-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.stat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bone-warm);
  margin-bottom: 1rem;
}
.stat-card-icon.signal { background: var(--signal-soft); color: var(--signal); }
.stat-card-icon.success { background: var(--success-soft); color: var(--success); }
.stat-card-icon.warning { background: var(--warning-soft); color: var(--warning); }
.stat-card-icon.info { background: var(--info-soft); color: var(--info); }
.stat-card-icon.gold { background: var(--gold-soft); color: var(--gold); }

/* Data table */
.data-table {
  width: 100%;
  background: var(--paper);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.data-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
}
.data-table-header h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.data-table table {
  width: 100%;
  border-collapse: collapse;
}
.data-table th {
  text-align: left;
  padding: 12px 1.5rem;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 1.5rem;
  font-size: 13px;
  border-bottom: 1px solid var(--border);
  color: var(--ink);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--surface-1); }

.cell-with-avatar { display: flex; align-items: center; gap: 10px; }
.cell-with-avatar .avatar { width: 32px; height: 32px; font-size: 12px; }
.cell-strong { font-weight: 600; }
.cell-mono { font-family: var(--font-mono); font-size: 12px; }
.cell-secondary { font-size: 11px; color: var(--ink-faint); font-family: var(--font-mono); }

/* ============================================
   LIVE INDICATORS & ANIMATIONS
   ============================================ */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--danger);
  color: white;
  border-radius: var(--r-xs);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
}
.live-indicator .dot {
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  animation: liveBlink 1.4s ease-in-out infinite;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* Pulse ring */
.pulse-ring {
  position: relative;
}
.pulse-ring::before,
.pulse-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid currentColor;
  animation: pulseRing 2s ease-out infinite;
}
.pulse-ring::after { animation-delay: 1s; }
@keyframes pulseRing {
  0% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.5); }
}

/* Loading shimmer for placeholder content */
.shimmer {
  background: linear-gradient(90deg, var(--bone-warm) 0%, var(--paper) 50%, var(--bone-warm) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s linear infinite;
  border-radius: var(--r-sm);
}
@keyframes shimmer {
  to { background-position: -200% 0; }
}

/* Mini charts (sparklines) */
.spark {
  display: block;
  height: 40px;
  width: 100%;
}

/* Map placeholder */
.map-canvas {
  background:
    radial-gradient(circle at 20% 30%, rgba(74,107,138,0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(91,115,97,0.08) 0%, transparent 40%),
    var(--bone-warm);
  position: relative;
  overflow: hidden;
}
.map-canvas::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31,45,61,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,45,61,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.map-canvas.dark {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,91,34,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(200,165,92,0.1) 0%, transparent 50%),
    #0E1421;
}
.map-canvas.dark::before {
  background-image:
    linear-gradient(rgba(247,244,238,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,244,238,0.04) 1px, transparent 1px);
}

/* Map markers */
.map-marker {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  font-weight: 700;
  transform: translate(-50%, -50%);
  z-index: 5;
}
.map-marker.signal { background: var(--signal); }
.map-marker.ink { background: var(--ink); }
.map-marker.gold { background: var(--gold); color: var(--ink); }
.map-marker.sage { background: var(--sage); }

.map-route {
  position: absolute;
  pointer-events: none;
}

/* Animated route */
@keyframes routeDraw {
  to { stroke-dashoffset: 0; }
}
.route-line {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 8 8;
  animation: routeFlow 1.5s linear infinite;
}
@keyframes routeFlow {
  to { stroke-dashoffset: -32; }
}

/* Bar chart bars */
.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 8px 0;
}
.bar-track {
  height: 8px;
  background: var(--bone-warm);
  border-radius: var(--r-full);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--signal), var(--gold));
  border-radius: var(--r-full);
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.bar-fill.signal { background: var(--signal); }
.bar-fill.success { background: var(--success); }
.bar-fill.gold { background: var(--gold); }
.bar-fill.ink { background: var(--ink); }

/* List items */
.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-md);
  transition: background 0.2s;
}
.list-item:hover { background: var(--surface-1); }
.list-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--bone-warm);
}
.list-item-body { flex: 1; min-width: 0; }
.list-item-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 2px;
}
.list-item-meta {
  font-size: 12px;
  color: var(--ink-faint);
  font-family: var(--font-mono);
}
.list-item-right {
  text-align: right;
  flex-shrink: 0;
}

/* Section heading inside dashboards */
.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.section-title h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.section-title-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* Responsive dashboard */
@media (max-width: 900px) {
  .dash-shell { grid-template-columns: 1fr; }
  .dash-sidebar {
    position: relative;
    height: auto;
    overflow: visible;
  }
  .dash-content { padding: 1rem; }
}

/* Stage layout for showing apps */
.stage-info-strip {
  position: fixed;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  background: rgba(10,14,26,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--bone);
  padding: 10px 16px;
  border-radius: var(--r-full);
  font-size: 11px;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  z-index: 100;
}
.stage-info-strip a {
  color: var(--signal);
  font-weight: 600;
}
