:root {
  --bg-dark: #080d1a;
  --bg-card: #0f172a;
  --bg-card-hover: #1e293b;
  --bg-glass: rgba(15, 23, 42, 0.88);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-active: rgba(250, 204, 21, 0.4);
  
  --delijn-yellow: #facc15;
  --delijn-yellow-glow: rgba(250, 204, 21, 0.25);
  --delijn-blue: #0284c7;
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;
  --accent-amber: #f59e0b;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-full: 9999px;

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

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-dark);
  color: var(--text-main);
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* Header */
.app-header {
  height: 64px;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;
  z-index: 1000;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.logo-badge {
  position: relative;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(250, 204, 21, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.bus-icon {
  width: 22px;
  height: 22px;
  color: var(--delijn-yellow);
}

.live-pulse {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  background: var(--accent-emerald);
  border: 2px solid var(--bg-dark);
  border-radius: 50%;
  animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.accent-text {
  color: var(--delijn-yellow);
}

.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 520px;
  position: relative;
}

.search-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  padding: 0 14px;
  height: 42px;
  transition: all 0.2s ease;
}

.search-input-wrapper:focus-within {
  border-color: var(--delijn-yellow);
  box-shadow: 0 0 0 3px var(--delijn-yellow-glow);
  background: rgba(30, 41, 59, 0.95);
}

.search-icon {
  width: 18px;
  height: 18px;
  color: var(--text-dim);
  margin-right: 10px;
  flex-shrink: 0;
}

.search-input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 0.9rem;
  font-family: inherit;
  outline: none;
}

.search-input-wrapper input::placeholder {
  color: var(--text-dim);
}

.clear-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border-radius: 50%;
}

.clear-btn:hover {
  color: var(--text-main);
}

.search-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--delijn-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Search Dropdown */
.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  max-height: 380px;
  overflow-y: auto;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.search-dropdown-section-title {
  padding: 8px 12px 4px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}

.search-dropdown-item {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  gap: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.search-dropdown-item:hover, .search-dropdown-item.active {
  background: var(--bg-card-hover);
}

.search-dropdown-item .item-icon {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--delijn-yellow);
  flex-shrink: 0;
}

.search-dropdown-item .item-info {
  flex: 1;
  min-width: 0;
}

.search-dropdown-item .item-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-dropdown-item .item-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
}

/* Header Action Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 0 12px;
  height: 38px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: var(--bg-card-hover);
  border-color: rgba(255, 255, 255, 0.2);
}

.action-btn svg {
  width: 16px;
  height: 16px;
}

.action-btn.icon-only {
  padding: 0;
  width: 38px;
  justify-content: center;
}

#favBtn.active svg {
  fill: var(--delijn-yellow);
  stroke: var(--delijn-yellow);
}

#refreshIcon.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Sub-header */
.sub-header {
  height: 44px;
  background: rgba(10, 15, 28, 0.95);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  gap: 16px;
  z-index: 990;
  overflow: hidden;
}

.city-pills-container {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.city-pills-container::-webkit-scrollbar {
  display: none;
}

.pills-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
}

.city-pills {
  display: flex;
  gap: 6px;
}

.city-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.city-pill:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.1);
}

.city-pill.active {
  background: var(--delijn-yellow);
  color: #000;
  border-color: var(--delijn-yellow);
  font-weight: 700;
}

.live-status-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.stat-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.stat-dot.green { background: var(--accent-emerald); }
.stat-dot.cyan { background: var(--accent-cyan); }
.stat-dot.pulse { animation: pulse-ring 1.8s infinite; }

.pill-btn {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.pill-btn:hover {
  color: var(--text-main);
}

/* Main Content & Map */
.main-content {
  flex: 1;
  position: relative;
  overflow: hidden;
}

.map-container {
  width: 100%;
  height: 100%;
  background: #080d1a;
}

/* Crisp Dark Mode Filter for OpenStreetMap (No Watermarks, 100% Free) */
.dark-tiles .leaflet-tile-pane {
  filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
}

/* Leaflet Customizations */
.leaflet-container {
  font-family: var(--font-sans) !important;
}

.leaflet-bar {
  border: 1px solid var(--border-color) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5) !important;
  border-radius: var(--radius-sm) !important;
  overflow: hidden;
}

.leaflet-bar a {
  background-color: var(--bg-card) !important;
  color: var(--text-main) !important;
  border-bottom: 1px solid var(--border-color) !important;
}

.leaflet-bar a:hover {
  background-color: var(--bg-card-hover) !important;
}

/* Stop Marker Styles */
.stop-marker-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.stop-marker-pin {
  width: 24px;
  height: 24px;
  background: #0f172a;
  border: 2.5px solid var(--delijn-yellow);
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.stop-marker-pin svg {
  width: 12px;
  height: 12px;
  stroke: var(--delijn-yellow);
}

.stop-marker-wrap:hover .stop-marker-pin,
.stop-marker-wrap.selected .stop-marker-pin {
  transform: scale(1.35);
  background: var(--delijn-yellow);
  border-color: #ffffff;
}

.stop-marker-wrap:hover .stop-marker-pin svg,
.stop-marker-wrap.selected .stop-marker-pin svg {
  stroke: #000000;
}

/* Live Bus Marker Styles */
.bus-marker-wrap {
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bus-marker-card {
  display: flex;
  align-items: center;
  background: #0f172a;
  border: 1.5px solid #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6), 0 0 10px var(--line-glow, rgba(6, 182, 212, 0.4));
  padding: 3px 6px;
  gap: 5px;
  white-space: nowrap;
}

.bus-marker-badge {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.76rem;
  padding: 2px 6px;
  border-radius: 6px;
  color: #fff;
  background: var(--line-bg, var(--delijn-blue));
}

.bus-marker-icon {
  width: 14px;
  height: 14px;
  color: var(--delijn-yellow);
}

.bus-marker-dest {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-main);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Side Panel (Desktop slide-over, Mobile bottom sheet) */
.side-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 440px;
  background: var(--bg-card);
  border-left: 1px solid var(--border-color);
  box-shadow: -8px 0 32px rgba(0, 0, 0, 0.5);
  z-index: 1050;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.side-panel.open {
  transform: translateX(0);
}

.panel-header {
  padding: 16px 20px 0;
  background: rgba(15, 23, 42, 0.95);
  border-bottom: 1px solid var(--border-color);
}

.panel-drag-handle {
  display: none;
  width: 36px;
  height: 4px;
  background: var(--text-dim);
  border-radius: 2px;
  margin: 0 auto 12px;
}

.panel-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-icon-wrap {
  width: 40px;
  height: 40px;
  background: rgba(250, 204, 21, 0.1);
  border: 1px solid rgba(250, 204, 21, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--delijn-yellow);
  flex-shrink: 0;
}

.panel-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.panel-headings {
  flex: 1;
  min-width: 0;
}

.panel-headings h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-headings p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.panel-actions {
  display: flex;
  gap: 6px;
}

.icon-action-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.icon-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-main);
}

.panel-tabs {
  display: flex;
  gap: 4px;
}

.panel-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 10px 14px;
  cursor: pointer;
  position: relative;
  transition: color 0.15s;
}

.panel-tab:hover {
  color: var(--text-main);
}

.panel-tab.active {
  color: var(--delijn-yellow);
}

.panel-tab.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--delijn-yellow);
}

/* Panel Body */
.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

/* Loading & Empty States */
.loading-state, .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  text-align: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.loading-state .spinner {
  width: 32px;
  height: 32px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--delijn-yellow);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.empty-state svg {
  width: 44px;
  height: 44px;
  color: var(--text-dim);
}

/* Departure Cards */
.departures-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.departure-card {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.departure-card:hover {
  background: rgba(30, 41, 59, 0.85);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.line-badge {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  min-width: 44px;
  text-align: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.departure-info {
  flex: 1;
  min-width: 0;
}

.departure-destination {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 3px;
}

.departure-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.vehicle-pill {
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.departure-times {
  text-align: right;
  flex-shrink: 0;
}

.countdown-main {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--delijn-yellow);
}

.countdown-main.imminent {
  color: var(--accent-emerald);
  animation: pulse-countdown 1.5s infinite;
}

@keyframes pulse-countdown {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.time-sub {
  font-size: 0.74rem;
  color: var(--text-dim);
}

.delay-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
}

.delay-tag.delayed {
  color: var(--accent-rose);
  background: rgba(244, 63, 94, 0.15);
}

.delay-tag.ontime {
  color: var(--accent-emerald);
}

/* Lines List Tab */
.lines-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.line-item-row {
  background: rgba(30, 41, 59, 0.5);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.line-item-row .line-details {
  flex: 1;
}

.line-item-row .line-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.line-item-row .line-desc {
  font-size: 0.74rem;
  color: var(--text-muted);
}

/* Vehicle Tracker Card */
.vehicle-tracker-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vehicle-info-bar {
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vehicle-badge-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.vehicle-sub-meta {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.status-chip {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Route Timeline */
.route-stops-timeline h4 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.timeline-list {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 20px;
}

.timeline-list::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.timeline-item {
  position: relative;
  padding: 8px 0 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  cursor: pointer;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 14px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #334155;
  border: 2px solid var(--bg-card);
}

.timeline-item.passed {
  color: var(--text-dim);
}

.timeline-item.passed::before {
  background: var(--text-dim);
}

.timeline-item.current {
  color: var(--delijn-yellow);
  font-weight: 700;
}

.timeline-item.current::before {
  background: var(--delijn-yellow);
  box-shadow: 0 0 10px var(--delijn-yellow);
  transform: scale(1.3);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

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

.modal-backdrop[hidden] {
  display: none !important;
}

.modal-box {
  background: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 480px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
  position: relative;
  z-index: 2001;
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
}

.close-modal-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.close-modal-btn:hover {
  background: rgba(239, 68, 68, 0.3);
  border-color: #ef4444;
  color: #ef4444;
}

.modal-content-list {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--delijn-yellow);
  color: var(--text-main);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slide-up 0.25s ease-out;
}

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

/* Responsive (Mobile bottom sheet) */
@media (max-width: 768px) {
  .app-header {
    padding: 0 12px;
    height: 56px;
  }

  .brand-subtitle {
    display: none;
  }

  .sub-header {
    height: 40px;
    padding: 0 12px;
  }

  .stat-badge {
    display: none;
  }

  .side-panel {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 60vh;
    border-left: none;
    border-top: 1px solid var(--border-color);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    transform: translateY(100%);
  }

  .side-panel.open {
    transform: translateY(0);
  }

  .panel-drag-handle {
    display: block;
  }
}
