/* Material 3 Mobile Theme for Dreamcatchers NA */
/* True Material 3 implementation with proper elevation tokens */

/* ===== MATERIAL 3 DESIGN TOKENS ===== */
:root {
  /* Color Tokens - Using global theme variables */
  --md-primary: var(--accent);
  --md-primary-hover: var(--accent-hover);
  --md-surface: var(--bg-widget);
  --md-surface-hover: var(--bg-hover);
  --md-on-surface: var(--text-primary);
  --md-on-surface-secondary: var(--text-secondary);
  --md-outline: var(--border);
  --md-error: var(--error);

  /* Material 3 Elevation Tokens (Levels 0-5) */
  --md-elevation-0: none;
  --md-elevation-1:
    0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 1px 3px 1px rgba(0, 0, 0, 0.15);
  --md-elevation-2:
    0px 1px 2px 0px rgba(0, 0, 0, 0.3), 0px 2px 6px 2px rgba(0, 0, 0, 0.15);
  --md-elevation-3:
    0px 1px 3px 0px rgba(0, 0, 0, 0.3), 0px 4px 8px 3px rgba(0, 0, 0, 0.15);
  --md-elevation-4:
    0px 2px 3px 0px rgba(0, 0, 0, 0.3), 0px 6px 10px 4px rgba(0, 0, 0, 0.15);
  --md-elevation-5:
    0px 4px 4px 0px rgba(0, 0, 0, 0.3), 0px 8px 12px 6px rgba(0, 0, 0, 0.15);

  /* State Layer Opacities (Material 3 Standard) */
  --md-state-hover: 0.08;
  --md-state-focus: 0.12;
  --md-state-pressed: 0.12;
  --md-state-dragged: 0.16;
}

/* ===== MATERIAL 3 BUTTONS ===== */

/* Filled Button - Primary Actions */
.md-filled-btn {
  background: var(--md-primary);
  color: white;
  border: none;
  border-radius: 20px; /* Material 3 uses fully rounded corners for buttons */
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  box-shadow: var(--md-elevation-0);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.md-filled-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: white;
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1);
  z-index: 0;
}

.md-filled-btn > * {
  position: relative;
  z-index: 1;
}

.md-filled-btn:hover::before {
  opacity: var(--md-state-hover);
}

.md-filled-btn:focus-visible::before {
  opacity: var(--md-state-focus);
}

.md-filled-btn:active::before {
  opacity: var(--md-state-pressed);
}

.md-filled-btn:hover {
  box-shadow: var(--md-elevation-1);
}

.md-filled-btn:disabled {
  background: rgba(94, 173, 164, 0.12);
  color: rgba(255, 255, 255, 0.38);
  cursor: not-allowed;
  box-shadow: var(--md-elevation-0);
}

.md-filled-btn:disabled::before {
  opacity: 0;
}

/* Outlined Button - Secondary Actions */
.md-outlined-btn {
  background: transparent;
  color: var(--md-primary);
  border: 1px solid var(--md-outline);
  border-radius: 20px;
  padding: 9px 23px; /* 1px less to account for border */
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.md-outlined-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--md-primary);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1);
  z-index: 0;
}

.md-outlined-btn > * {
  position: relative;
  z-index: 1;
}

.md-outlined-btn:hover::before {
  opacity: var(--md-state-hover);
}

.md-outlined-btn:focus-visible::before {
  opacity: var(--md-state-focus);
}

.md-outlined-btn:active::before {
  opacity: var(--md-state-pressed);
}

.md-outlined-btn:disabled {
  color: rgba(94, 173, 164, 0.38);
  border-color: rgba(94, 173, 164, 0.12);
  cursor: not-allowed;
}

.md-outlined-btn:disabled::before {
  opacity: 0;
}

/* Active state for toggle buttons */
.md-outlined-btn.active {
  background: rgba(94, 173, 164, 0.12);
  border-color: var(--md-primary);
}

/* Text Button - Tertiary Actions */
.md-text-btn {
  background: transparent;
  color: var(--md-primary);
  border: none;
  border-radius: 20px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.1px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.md-text-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--md-primary);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1);
  z-index: 0;
}

.md-text-btn > * {
  position: relative;
  z-index: 1;
}

.md-text-btn:hover::before {
  opacity: var(--md-state-hover);
}

.md-text-btn:focus-visible::before {
  opacity: var(--md-state-focus);
}

.md-text-btn:active::before {
  opacity: var(--md-state-pressed);
}

.md-text-btn:disabled {
  color: rgba(94, 173, 164, 0.38);
  cursor: not-allowed;
}

.md-text-btn:disabled::before {
  opacity: 0;
}

/* ===== MATERIAL 3 CARDS ===== */

/* Elevated Card - Interactive Meeting Cards (Elevation Level 1) */
.md-elevated-card {
  background: var(--md-surface);
  border-radius: 12px; /* Material 3 medium corner radius */
  padding: 12px;
  box-shadow: var(--md-elevation-1);
  transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
  cursor: pointer;
  border: none; /* Elevated cards don't have borders in Material 3 */
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  -webkit-tap-highlight-color: transparent;
}

.md-elevated-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--md-primary);
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
  z-index: 0;
}

.md-elevated-card > * {
  position: relative;
  z-index: 1;
}

.md-elevated-card:hover {
  box-shadow: var(--md-elevation-2);
  transform: translateY(-1px);
}

.md-elevated-card:hover::before {
  opacity: var(--md-state-hover);
}

.md-elevated-card:active {
  transform: translateY(0);
  box-shadow: var(--md-elevation-1);
}

.md-elevated-card:active::before {
  opacity: var(--md-state-pressed);
}

/* Filled Card - Informational Content (Elevation Level 0) */
.md-filled-card {
  background: var(--md-surface);
  border-radius: 12px;
  padding: 12px;
  border: none;
  box-shadow: var(--md-elevation-0);
  transition: background 0.2s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.md-filled-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--md-primary);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
  z-index: 0;
}

.md-filled-card > * {
  position: relative;
  z-index: 1;
}

.md-filled-card:hover::before {
  opacity: var(--md-state-hover);
}

/* Outlined Card - Alternative Styling */
.md-outlined-card {
  background: var(--md-surface);
  border: 1px solid var(--md-outline);
  border-radius: 12px;
  padding: 11px; /* 1px less to account for border */
  box-shadow: var(--md-elevation-0);
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  margin-bottom: 8px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
  -webkit-tap-highlight-color: transparent;
}

.md-outlined-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--md-primary);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
  z-index: 0;
}

.md-outlined-card > * {
  position: relative;
  z-index: 1;
}

.md-outlined-card:hover {
  border-color: var(--md-primary);
}

.md-outlined-card:hover::before {
  opacity: var(--md-state-hover);
}

.md-outlined-card:active::before {
  opacity: var(--md-state-pressed);
}

/* ===== MOBILE RESPONSIVE ADJUSTMENTS ===== */

/* Touch-optimized sizes for mobile */
@media (max-width: 640px) {
  .md-filled-btn,
  .md-outlined-btn,
  .md-text-btn {
    min-height: 48px; /* Material 3 minimum touch target */
    padding: 10px 24px;
    font-size: 14px;
  }

  .md-elevated-card,
  .md-filled-card,
  .md-outlined-card {
    padding: 16px; /* More breathing room on mobile */
    margin-bottom: 12px;
    border-radius: 16px; /* Slightly larger radius on mobile */
  }
}

/* Very small screens - maintain readability */
@media (max-width: 400px) {
  .md-elevated-card,
  .md-filled-card,
  .md-outlined-card {
    padding: 12px;
    margin-bottom: 8px;
  }
}

/* Disable hover effects on touch devices */
@media (hover: none) and (pointer: coarse) {
  .md-filled-btn:hover,
  .md-outlined-btn:hover,
  .md-text-btn:hover,
  .md-elevated-card:hover,
  .md-outlined-card:hover {
    transform: none;
    box-shadow: initial;
  }

  /* Keep state layers for visual feedback on touch */
  .md-filled-btn:hover::before,
  .md-outlined-btn:hover::before,
  .md-text-btn:hover::before,
  .md-elevated-card:hover::before,
  .md-outlined-card:hover::before {
    opacity: 0;
  }

  /* But enable active (pressed) states */
  .md-filled-btn:active,
  .md-outlined-btn:active,
  .md-text-btn:active,
  .md-elevated-card:active,
  .md-outlined-card:active {
    transform: scale(0.98);
  }

  .md-filled-btn:active::before,
  .md-outlined-btn:active::before,
  .md-text-btn:active::before,
  .md-elevated-card:active::before,
  .md-outlined-card:active::before {
    opacity: var(--md-state-pressed);
  }
}

/* ===== ACCESSIBILITY ===== */

/* Focus indicators for keyboard navigation */
.md-filled-btn:focus-visible,
.md-outlined-btn:focus-visible,
.md-text-btn:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 2px;
}

.md-elevated-card:focus-visible,
.md-filled-card:focus-visible,
.md-outlined-card:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .md-filled-btn,
  .md-outlined-btn,
  .md-text-btn,
  .md-elevated-card,
  .md-filled-card,
  .md-outlined-card,
  .md-filled-btn::before,
  .md-outlined-btn::before,
  .md-text-btn::before,
  .md-elevated-card::before,
  .md-filled-card::before,
  .md-outlined-card::before {
    transition: none;
  }
}

/* ===== MATERIAL 3 CHIPS ===== */

/* Assist Chip - For branding/navigation */
.md-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: var(--text-sm);
  font-weight: var(--font-weight-medium);
  color: var(--accent);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  min-height: 32px;
  -webkit-tap-highlight-color: transparent;
}

.md-chip::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.md-chip:hover {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--elevation-1);
  transform: translateY(-1px);
}

.md-chip:hover::before {
  opacity: 1;
}

.md-chip:active {
  transform: translateY(0);
  box-shadow: var(--elevation-0);
}

/* Chip with icon */
.md-chip-icon {
  font-size: 18px;
  line-height: 1;
}

/* Elevated chip variant */
.md-chip-elevated {
  background: var(--bg-widget);
  border: none;
  box-shadow: var(--elevation-1);
  color: var(--text-primary);
}

.md-chip-elevated:hover {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: var(--elevation-2);
}

/* ===== SPECIAL UTILITY CLASSES ===== */

/* Mobile filter toggle indicator */
.mobile-filter-toggle::after {
  content: " ▼";
  font-size: 12px;
  margin-left: 8px;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
}

.mobile-filter-toggle.expanded::after {
  transform: rotate(180deg);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .md-outlined-btn,
  .md-outlined-card {
    border-width: 2px;
  }

  .md-filled-btn:focus-visible,
  .md-outlined-btn:focus-visible,
  .md-text-btn:focus-visible,
  .md-elevated-card:focus-visible,
  .md-filled-card:focus-visible,
  .md-outlined-card:focus-visible {
    outline-width: 3px;
  }
}

/* ===== MATERIAL 3 FORM CONTROLS ===== */

/* Timezone Dropdown - Material 3 Select/Menu */
.timezone-selector {
  background: var(--md-surface);
  color: var(--md-on-surface);
  border: 1px solid var(--md-outline);
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  min-width: 200px;
  min-height: 40px;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235eada4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
  padding-right: 36px;
  position: relative;
  overflow: hidden;
}

.timezone-selector::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--md-primary);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}

.timezone-selector:hover {
  border-color: var(--md-primary);
  background-color: var(--md-surface-hover);
}

.timezone-selector:focus-visible {
  outline: 2px solid var(--md-primary);
  outline-offset: 2px;
  border-color: var(--md-primary);
}

.timezone-selector option {
  background: var(--md-surface);
  color: var(--md-on-surface);
  padding: 8px;
}

/* Mobile responsiveness for timezone selector */
@media (max-width: 640px) {
  .timezone-selector {
    width: 100%;
    min-width: auto;
    font-size: 14px;
    min-height: 48px;
  }
}

/* ===== MATERIAL 3 NAVIGATION COMPONENTS ===== */

/* Time Block Buttons - List Item Style */
.time-block-btn {
  width: 100%;
  background: var(--md-surface);
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--md-on-surface);
  padding: 12px 16px;
  margin-bottom: 4px;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.time-block-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--md-primary);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
  z-index: 0;
}

.time-block-btn > * {
  position: relative;
  z-index: 1;
}

.time-block-btn:hover {
  background: var(--md-surface-hover);
  border-color: var(--md-outline);
}

.time-block-btn:hover::before {
  opacity: 0.04;
}

/* Active state - Material 3 filled tonal button style */
.time-block-btn.active {
  background: rgba(94, 173, 164, 0.16);
  border-color: var(--md-primary);
  color: var(--md-primary);
  font-weight: 500;
}

.time-block-btn.active::before {
  opacity: 0;
}

/* Current time indicator with subtle glow */
.time-block-btn.current-time {
  border-color: var(--md-primary);
  box-shadow: 0 0 0 1px rgba(94, 173, 164, 0.2);
  animation: glow-pulse 2s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(94, 173, 164, 0.2);
  }
  50% {
    box-shadow: 0 0 8px 2px rgba(94, 173, 164, 0.3);
  }
}

/* Time block button text elements */
.time-block-btn .time-range {
  font-size: 12px;
  color: var(--md-on-surface-secondary);
  font-weight: 400;
}

.time-block-btn .count {
  position: absolute;
  top: 12px;
  right: 16px;
  background: rgba(94, 173, 164, 0.12);
  color: var(--md-primary);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  min-width: 24px;
  text-align: center;
  z-index: 1;
}

.time-block-btn.active .count {
  background: var(--md-primary);
  color: white;
}

/* Navigation Section Headers - Material 3 Label Style */
.nav-section-header {
  font-size: 11px;
  font-weight: 600;
  color: var(--md-on-surface-secondary);
  padding: 16px 16px 8px 16px;
  margin-top: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  -webkit-user-select: none;
  user-select: none;
}

.nav-section-header.collapsible {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.2, 0, 0, 1);
  position: relative;
  overflow: hidden;
}

.nav-section-header.collapsible::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--md-primary);
  opacity: 0;
  transition: opacity 0.2s cubic-bezier(0.2, 0, 0, 1);
  pointer-events: none;
}

.nav-section-header.collapsible:hover {
  color: var(--md-primary);
}

.nav-section-header.collapsible:hover::before {
  opacity: 0.04;
}

.nav-section-header .collapse-icon {
  font-size: 12px;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0, 1);
  display: inline-block;
}

.nav-section-header.collapsed .collapse-icon {
  transform: rotate(-90deg);
}

/* Section content collapse animation */
.nav-section-content {
  max-height: 2000px;
  overflow: hidden;
  transition:
    max-height 0.3s cubic-bezier(0.2, 0, 0, 1),
    opacity 0.2s cubic-bezier(0.2, 0, 0, 1);
  opacity: 1;
}

.nav-section-content.collapsed {
  max-height: 0;
  opacity: 0;
}

/* Mobile optimizations for navigation components */
@media (max-width: 640px) {
  .time-block-btn {
    padding: 14px 16px;
    margin-bottom: 6px;
    font-size: 14px;
    min-height: 48px;
  }
  /* Move header center (day/time/tz) to top-left on mobile */
  .header-container {
    grid-template-columns: 1fr;
    align-items: start;
    gap: var(--spacing-sm);
  }

  .header-center {
    align-items: flex-start;
    text-align: left;
  }

  .current-time-display {
    justify-content: flex-start;
  }

  /* Optional: remove header horizontal padding to flush to screen edges */
  /* .page-header { padding-left: 0; padding-right: 0; } */
  /* Strong override to ensure mobile layout wins over inline page styles */
  .page-header {
    position: relative !important;
  }

  /* Pin current time to the very top-left on mobile */
  .page-header .current-time-display {
    position: absolute !important;
    top: 8px !important;
    left: var(--spacing-md) !important;
    transform: none !important;
    margin: 0 !important;
    justify-content: flex-start !important;
    text-align: left !important;
  }

  /* Push header-center content down so it doesn't overlap the absolute time */
  .page-header .header-center {
    margin-top: 12px !important;
  }
  /* Also nudge the in-person header title up on mobile */
  .app-header .header-center {
    margin-top: 12px !important;
  }
  /* Move theme toggle to top-right and hide label text on mobile */
  .page-header .theme-toggle {
    position: absolute !important;
    top: 8px !important;
    right: var(--spacing-md) !important;
    padding: 6px 10px !important;
    /* hide textual label by collapsing font size while keeping icon visible via ::after */
    font-size: 0 !important;
    min-width: 40px !important;
    min-height: 40px !important;
    background: transparent !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10001 !important;
    pointer-events: auto !important;
  }
  /* Use ::after for the visible icon so it doesn't conflict with the state-layer ::before in theme.css */
  .page-header .theme-toggle::after {
    content: "🌙" !important;
    font-size: 18px !important;
    color: var(--text-primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    position: relative !important;
    z-index: 10002 !important;
  }
  /* In-person meetings header uses different classes; apply same mobile theme-toggle behavior */
  .app-header {
    position: relative !important;
  }

  .app-header .theme-toggle {
    position: absolute !important;
    top: 8px !important;
    right: var(--spacing-md) !important;
    padding: 6px 10px !important;
    font-size: 0 !important;
    min-width: 40px !important;
    min-height: 40px !important;
    background: transparent !important;
    border: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10001 !important;
    pointer-events: auto !important;
  }

  .app-header .theme-toggle::after {
    content: "🌙" !important;
    font-size: 18px !important;
    color: var(--text-primary) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    position: relative !important;
    z-index: 10002 !important;
  }
  .time-block-btn .count {
    top: 14px;
    right: 16px;
  }

  .nav-section-header {
    padding: 12px 16px 8px 16px;
    font-size: 12px;
    /* reduce vertical gap above section headers on mobile */
    margin-top: 0 !important;
    padding-top: 8px !important;
  }
  /* Remove extra space above the first section header (e.g., "Virtual Meetings") on mobile */
  .nav-section-header:first-of-type {
    margin-top: 0 !important;
    padding-top: 8px !important;
  }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
  .time-block-btn:hover,
  .timezone-selector:hover,
  .nav-section-header.collapsible:hover {
    transform: none;
  }

  .time-block-btn:active {
    transform: scale(0.98);
  }

  .time-block-btn:active::before {
    opacity: var(--md-state-pressed);
  }
}
