/* ============================================
   MAGNIFYHOPE OPTIMIZED UI V2 - No-Scroll Layout
   ============================================ */

/* Import modern font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* Modern color palette and variables */
:root {
  /* Colors */
  --primary: #5E72E4;
  --primary-dark: #4C63D2;
  --primary-light: #8B9FE8;
  --success: #00D97E;
  --warning: #F5B800;
  --danger: #EC5252;
  --muted: #6E84A3;
  --border: rgba(0, 0, 0, 0.06);
  
  /* Backgrounds */
  --bg-base: #FFFFFF;
  --bg-surface: #F7F9FC;
  
  /* Text */
  --text-primary: #12263F;
  --text-secondary: #6E84A3;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base reset and typography */
* { 
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-surface);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 14px;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Utility classes */
.hidden { display: none !important; }
.text-center { text-align: center; }
.text-small { font-size: 0.85rem; }

/* Optimized Landing Page - No Scroll Layout */
.landing-optimized {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: linear-gradient(135deg, var(--bg-surface) 0%, #fff 100%);
}

.landing-content {
  width: 100%;
  max-width: 900px;
  text-align: center;
  border: 3px solid var(--primary);
  border-radius: 20px;
  padding: 40px 30px;
  background: white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Logo Container */
.logo-container {
  margin-bottom: 15px;
}

.logo-background {
  display: inline-block;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  padding: 12px 20px;
  border-radius: 14px;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.3);
}

.logo {
  height: 70px;
  width: auto;
  display: block;
}

/* Tagline */
.tagline {
  font-size: 0.99275rem;
  color: var(--muted);
  margin: 0 0 20px 0;
  font-weight: 500;
}

.mh-faith-aligned {
  font-size: 0.88rem;
  color: #475569;
  margin: 0 0 18px 0;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

/* Main Action Buttons Container */
.main-buttons {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
  padding: 0 20px;
}

/* Action Group */
.action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  max-width: 250px;
  padding: 15px;
  border: 2px solid rgba(94, 114, 228, 0.1);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.action-group:hover {
  border-color: rgba(94, 114, 228, 0.3);
  background: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

/* Larger, More Prominent Action Buttons */
.action-button {
  width: 200px;
  height: 80px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 16px;
  font-weight: 700;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.button-icon {
  font-size: 1.5rem;
}

.button-text {
  font-size: 1.3915rem; /* +15% from 1.21rem — Helpers / Edit Profile / Hosts */
}

/* Button Colors */
.action-volunteer {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.action-volunteer:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.action-profile {
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
}

.action-profile:hover {
  background: linear-gradient(135deg, #218838 0%, #1ea085 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.action-host {
  background: linear-gradient(135deg, #fd7e14 0%, #e83e8c 100%);
  color: white;
}

.action-host:hover {
  background: linear-gradient(135deg, #e8690b 0%, #d63384 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 126, 20, 0.4);
}

/* Action Description */
.action-description {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin: 8px 0 0 0;
  font-weight: 600;
  text-align: center;
}

/* Host Registration Section */
.host-registration {
  margin-top: 15px;
  padding-top: 15px;
}

.divider {
  width: 100px;
  height: 2px;
  background: #e3e8f0;
  margin: 0 auto 15px;
}

.host-title {
  color: #1f6feb;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.register-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.register-button:hover {
  background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.host-info {
  color: #666;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Footer Links */
.footer-links {
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #e9ecef;
}

.links-row {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.footer-link {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s ease;
  padding: 0;
}

.footer-link:hover {
  color: var(--primary);
  text-decoration: underline;
}

.copyright {
  color: var(--muted);
  font-size: 0.924rem; /* 20% larger (0.77rem * 1.2 = 0.924rem) */
  margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-buttons {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0;
  }

  .action-button {
    width: 220px;
    height: 70px;
    font-size: 1rem;
  }

  .logo {
    height: 60px;
  }

  .tagline {
    font-size: 0.855rem;
  }
}

@media (max-width: 480px) {
  .landing-optimized {
    padding: 15px;
  }

  .landing-content {
    padding: 25px 20px;
  }

  .action-button {
    width: 200px;
    height: 60px;
    font-size: 0.95rem;
  }

  .logo {
    height: 50px;
  }

  .tagline {
    font-size: 0.88825rem;
  }

  .footer-link {
    font-size: 0.7rem;
  }
}

/* Height-constrained screens (laptops) */
@media (max-height: 800px) {
  .landing-optimized {
    padding: 5px;
  }

  .logo-container {
    margin-bottom: 10px;
  }

  .logo {
    height: 60px;
  }

  .tagline {
    margin-bottom: 15px;
  }

  .action-button {
    height: 50px;
  }

  .host-registration {
    margin-top: 10px;
    padding-top: 10px;
  }

  .footer-links {
    margin-top: 10px;
    padding-top: 8px;
  }
}

@media (max-height: 700px) {
  .logo {
    height: 50px;
  }

  .logo-background {
    padding: 10px 16px;
  }

  .action-button {
    height: 45px;
    width: 140px;
  }

  .button-icon {
    font-size: 1rem;
  }

  .button-text {
    font-size: 1.075rem; /* +15% from 0.935rem — Helpers / Edit Profile / Hosts */
  }

  .tagline {
    font-size: 0.88825rem;
    margin-bottom: 12px;
  }

  .main-buttons {
    gap: 12px;
    margin-bottom: 15px;
  }

  .host-registration {
    margin-top: 8px;
    padding-top: 8px;
  }

  .footer-links {
    margin-top: 8px;
  }
}

/* ============================================
   OTHER EXISTING STYLES (Non-Landing)
   ============================================ */

/* App Container (for other modes) */
.app-container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

/* General Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
  background: var(--primary);
  color: white;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-secondary {
  background: var(--bg-base);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: var(--bg-surface);
  border-color: var(--primary);
}

.back-btn {
  background: #6c757d;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s;
}

.back-btn:hover {
  background: #5a6268;
}

/* Forms */
fieldset {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 20px;
}

legend {
  padding: 0 10px;
  font-weight: 600;
  color: var(--primary);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  transition: var(--transition);
  background: var(--bg-base);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(94, 114, 228, 0.1);
}

.required-label::after {
  content: " *";
  color: var(--danger);
}

.error-message {
  color: var(--danger);
  font-size: 12px;
  margin-top: 4px;
  min-height: 18px;
}

/* Stat Cards */
.stat-card {
  background: var(--bg-base);
  padding: 20px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}

/* Tab Navigation */
.tab-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}

.tab-button {
  padding: 12px 24px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
}

.tab-button:hover {
  color: var(--primary);
}

.tab-button.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.tab-pane {
  display: none;
}

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

/* Cards */
.card {
  background: var(--bg-base);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 20px;
}

.card-body {
  padding: 20px;
}

/* Mode Indicator */
.mode-indicator {
  background: linear-gradient(135deg, #667eea10, #764ba210);
  border-left: 4px solid var(--primary);
  padding: 12px 20px;
  border-radius: 8px;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 500;
}

/* Status Bar */
.status {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

/* Modal Styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__panel {
  background: white;
  border-radius: 12px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

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

.modal__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.modal__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
}

.modal__body {
  padding: 20px;
}

.modal__footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* Inspiration Banner */
.mh-inspire-banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white !important;
  color: #1e293b !important;
  padding: 40px 20px;
  text-align: center;
  z-index: 100000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* Desktop-specific rounded corners for inspiration banner */
@media (min-width: 601px) {
  .mh-inspire-banner {
    border-radius: 24px !important;
  }
}

.mh-inspire-content {
  max-width: 800px;
  margin: 0 auto;
}

.mh-inspire-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1e293b !important;
}

.mh-inspire-text {
  font-size: 1.1rem;
  margin: 10px 0;
  line-height: 1.6;
  color: #475569 !important;
}

.mh-inspire-companies {
  font-size: 0.9rem;
  opacity: 0.9;
  letter-spacing: 1px;
  color: #f59e0b !important;
}

.mh-inspire-cta {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 20px 0;
  color: #1e293b !important;
}

.mh-inspire-button {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%) !important;
  border: 2px solid #2563eb !important;
  color: white !important;
  padding: 12px 30px;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.mh-inspire-button:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%) !important;
  border-color: #1d4ed8 !important;
  color: white !important;
}

/* Animations */
@keyframes slideIn {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* Checkbox Groups */
.checkbox-group {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
  width: auto;
}

/* Form Row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-primary);
}

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

/* Loading Spinner */
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Info Link Styles */
.info-link {
  background: none;
  border: none;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  padding: 0;
  transition: color 0.2s;
}

.info-link:hover {
  color: var(--primary-dark);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background: var(--bg-surface);
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border);
}

td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
}

tr:hover {
  background: var(--bg-surface);
}

/* Skills Table Specific */
.skill-row td {
  padding: 8px;
}

.btn-remove {
  background: var(--danger);
  color: white;
  border: none;
  padding: 4px 8px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}

.btn-remove:hover {
  background: #d32f2f;
}

.btn-add-skill {
  background: var(--success);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}

.btn-add-skill:hover {
  background: #00b968;
}

/* ============================================
   AESTHETIC CIRCULAR TIME PICKER STYLES
   ============================================ */

.day-availability-container {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 1px solid #dee2e6;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

.day-availability-container:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.day-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.day-name {
  font-weight: 700;
  font-size: 1.1rem;
  color: #495057;
  display: flex;
  align-items: center;
  gap: 8px;
}

.day-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #007bff, #0056b3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
}

.time-range-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  flex-direction: row;
}

.time-picker-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.time-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #6c757d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.circular-time-picker {
  position: relative;
  width: 105px;
  height: 105px;
  border: 2.25px solid #e9ecef;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 9px rgba(0,0,0,0.1);
}

.circular-time-picker:hover {
  border-color: #007bff;
  box-shadow: 0 6px 20px rgba(0,123,255,0.2);
  transform: scale(1.02);
}

.circular-time-picker.active {
  border-color: #007bff;
  box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.time-display {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: #007bff;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
  background: white;
  padding: 4px 8px;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.meridiem-toggle {
  position: absolute;
  bottom: -26px;
  left: 50%;
  transform: translateX(-50%);
  background: #007bff;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 2px 12px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  transition: all 0.2s ease-in-out;
}

.meridiem-toggle:hover {
  background: #0056b3;
}

.meridiem-toggle:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(0,123,255,0.3);
}

.time-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #007bff, #0056b3);
  border-radius: 50%;
  border: 2.25px solid white;
  box-shadow: 0 3px 9px rgba(0,0,0,0.3);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  transition: all 0.2s ease;
}

.time-handle:hover {
  transform: translate(-50%, -50%) scale(1.2);
  box-shadow: 0 4px 12px rgba(0,123,255,0.4);
}

.time-handle:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.1);
}

.time-labels {
  position: absolute;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.time-label-marker {
  position: absolute;
  font-size: 0.75rem;
  font-weight: 600;
  color: #6c757d;
  transform: translate(-50%, -50%);
}

/* Time labels removed for cleaner appearance */

.time-range-separator {
  font-size: 1.5rem;
  font-weight: 700;
  color: #6c757d;
  margin: 0 8px;
}

.remove-day-btn {
  background: linear-gradient(135deg, #dc3545, #c82333);
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(220,53,69,0.3);
}

.remove-day-btn:hover {
  background: linear-gradient(135deg, #c82333, #a71e2a);
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(220,53,69,0.4);
}

.add-day-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 12px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  margin-top: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 12px rgba(40,167,69,0.3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-day-btn:hover {
  background: linear-gradient(135deg, #20c997, #17a2b8);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40,167,69,0.4);
}

.add-day-btn:before {
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
}

/* Responsive design for time pickers */
@media (max-width: 768px) {
  .time-range-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .time-range-separator {
    transform: rotate(90deg);
    margin: 8px 0;
  }
  
  .circular-time-picker {
    width: 90px;
    height: 90px;
  }
  
  .time-handle {
    width: 15px;
    height: 15px;
  }
}

/* ============================================
   SKILLS SELECTION HIGHLIGHTING
   ============================================ */

.skill-step-highlight {
  border: 2px solid #007bff !important;
  background: #e7f3ff !important;
  box-shadow: 0 0 10px rgba(0, 123, 255, 0.3) !important;
  position: relative;
  color: #007bff !important;
}

/* Pulsating animation for the select field text when category is not selected */
#skillCategory.pulsate {
  animation: pulsateSelectText 2s ease-in-out infinite;
  color: #007bff !important;
}

/* Pulsating animation for the subcategory select field text when subcategory is not selected */
#skillSubcategory.pulsate {
  animation: pulsateSelectText 2s ease-in-out infinite;
  color: #007bff !important;
}

@keyframes pulsateSelectText {
  0%, 100% {
    opacity: 1;
    font-weight: 400;
  }
  50% {
    opacity: 0.6;
    font-weight: 600;
  }
}

.skill-step-highlight::before {
  content: "";
  display: none;
}

.skill-step-highlight::after {
  content: "";
  display: none;
}

@keyframes pulse {
  0% { box-shadow: 0 0 10px rgba(0, 123, 255, 0.3); }
  50% { box-shadow: 0 0 20px rgba(0, 123, 255, 0.6); }
  100% { box-shadow: 0 0 10px rgba(0, 123, 255, 0.3); }
}

.skill-step-completed {
  border: 2px solid #28a745 !important;
  background: #e8f5e8 !important;
}

.skill-step-completed::before {
  content: "✅ Completed!";
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: #28a745;
  color: white;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  z-index: 1000;
}

.skill-step-completed::after {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #28a745;
}

.skill-option:hover {
  background: #f0f8ff !important;
  border-color: #007bff !important;
}

.skill-option.selected {
  background: #e7f3ff !important;
  border-color: #007bff !important;
  font-weight: 600;
}

#skillOptions .skill-option,
#volunteerMode #skillOptions .skill-option {
  background: #f3e9c2 !important;
  border-color: #c4a35a !important;
}

#skillOptions .skill-option:hover,
#volunteerMode #skillOptions .skill-option:hover,
#skillOptions .skill-option.selected,
#volunteerMode #skillOptions .skill-option.selected {
  background: #e8d89a !important;
  border-color: #a68532 !important;
}

.skill-category-highlight {
  position: relative;
}

.skill-category-highlight option[value=""] {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { color: #007bff; }
  50% { color: #003f7f; }
  100% { color: #007bff; }
}

.data-source-toggle-bar {
    margin-top: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 10px 14px;
}

.data-source-toggle-bar .toggle-label {
    font-weight: 600;
    color: #1f2937;
}

.data-source-toggle-bar .toggle-option {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    color: #374151;
    cursor: pointer;
}

.data-source-toggle-bar .toggle-option input[type="checkbox"] {
    transform: scale(1.1);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.timestamp-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: #1f2937;
  color: #ffffff;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  min-width: 120px;
}

/* Desktop only: Put Tour On, Tour Off, and Inspiration Off buttons on same line */
/* Cell screens (≤600px) will use their own formatting from mobile.css */
/* This ensures Galaxy S8+, Z Fold 5 (both cover and unfolded), A51, A71 all use the same layout */
/* Devices ≥601px (Nest Hub Max, Nest Hub, Asus Zenbook Fold, iPads, Surface devices) use desktop layout */
@media (min-width: 601px) {
  /* Change housekeeping buttons container from column to row on desktop */
  .housekeeping > div[style*="flex-direction: column"] {
    flex-direction: row !important;
    gap: 8px !important;
    align-items: stretch !important;
    justify-content: center !important;
    width: 100% !important;
  }
  
  /* Make all paired control buttons (Overview/Help / Inspiration / Leaders / Helpers) the same fixed dimensions on desktop */
  /* Use maximum specificity to override inline styles and ensure identical width, height, padding, font-size, etc. */
  .housekeeping button[onclick="turnOnTour()"],
  .housekeeping button[onclick="turnOffTour()"],
  .housekeeping button[onclick="turnOnBanner()"],
  .housekeeping button[onclick="turnOffBanner()"],
  .housekeeping button[onclick="turnOnLeaders()"],
  .housekeeping button[onclick="turnOffLeaders()"],
  .housekeeping button[onclick="turnOnHelpers()"],
  .housekeeping button[onclick="turnOffHelpers()"],
  button[onclick="turnOnTour()"],
  button[onclick="turnOffTour()"],
  button[onclick="turnOnBanner()"],
  button[onclick="turnOffBanner()"],
  button[onclick="turnOnLeaders()"],
  button[onclick="turnOffLeaders()"],
  button[onclick="turnOnHelpers()"],
  button[onclick="turnOffHelpers()"] {
    width: 168px !important;
    min-width: 168px !important;
    max-width: 168px !important;
    flex: 0 0 168px !important; /* Wider for Overview/Help On|Off labels */
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 1.15 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
  }
  
  /* Make the Tour On/Off container not use flex for button sizing */
  .housekeeping > div[style*="flex-direction: column"] > div[style*="display: flex"][style*="gap: 6px"] {
    display: flex !important;
    gap: 6px !important;
    justify-content: center !important;
    align-items: center !important;
  }
  
  /* Ensure Tour On and Tour Off buttons have fixed width, not flex - use maximum specificity */
  .housekeeping > div[style*="flex-direction: column"] > div[style*="display: flex"][style*="gap: 6px"] button[onclick="turnOnTour()"],
  .housekeeping > div[style*="flex-direction: column"] > div[style*="display: flex"][style*="gap: 6px"] button[onclick="turnOffTour()"],
  .housekeeping > div[style*="flex-direction: column"] > div[style*="display: flex"][style*="gap: 6px"] button {
    flex: 0 0 168px !important;
    width: 168px !important;
    min-width: 168px !important;
    max-width: 168px !important;
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    height: auto !important;
    line-height: 1.15 !important;
  }
  
  /* Ensure Inspiration / Leaders / Helpers On and Off buttons have the same fixed size */
  .housekeeping > div[style*="flex-direction: column"] > button[onclick*="turnOnBanner"],
  .housekeeping > div[style*="flex-direction: column"] > button[onclick*="turnOffBanner"],
  .housekeeping > div[style*="flex-direction: column"] > button[onclick="turnOnBanner()"],
  .housekeeping > div[style*="flex-direction: column"] > button[onclick="turnOffBanner()"],
  .housekeeping > div[style*="flex-direction: column"] > button[onclick*="turnOnLeaders"],
  .housekeeping > div[style*="flex-direction: column"] > button[onclick*="turnOffLeaders"],
  .housekeeping > div[style*="flex-direction: column"] > button[onclick*="turnOnHelpers"],
  .housekeeping > div[style*="flex-direction: column"] > button[onclick*="turnOffHelpers"],
  .housekeeping button[onclick*="turnOnBanner"],
  .housekeeping button[onclick*="turnOffBanner"],
  .housekeeping button[onclick*="turnOnLeaders"],
  .housekeeping button[onclick*="turnOffLeaders"],
  .housekeeping button[onclick*="turnOnHelpers"],
  .housekeeping button[onclick*="turnOffHelpers"] {
    flex: 0 0 140px !important; /* Fixed width, no flex growth/shrink */
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    padding: 6px 12px !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    height: 32px !important;
    min-height: 32px !important;
    max-height: 32px !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  
  /* Redesigned housekeeping section for desktop - simple, stable, no vibration */
  /* Remove all complex positioning - use simple flow layout */
  .main-buttons {
    position: relative !important;
    align-items: flex-start;
    padding-bottom: 0 !important; /* No extra padding needed */
    margin-bottom: 20px !important; /* Space before housekeeping */
    overflow: visible !important;
  }
  
  /* Make helper-section position static */
  .helper-section {
    position: static !important;
    overflow: visible !important; /* Ensure housekeeping is not clipped */
  }
  
  .helper-buttons {
    overflow: visible !important; /* Ensure housekeeping is not clipped */
  }
  
  .host-section {
    position: relative;
  }
  
  /* Hide housekeeping in its original position within helper-buttons FIRST */
  /* Only hide if it has data-moved="true" (meaning JavaScript moved it for mobile) */
  .helper-section .helper-buttons .housekeeping[data-moved="true"],
  .helper-buttons .housekeeping[data-moved="true"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  /* REDESIGNED: Simple, stable housekeeping section for desktop - no vibration */
  /* Position it between main-buttons and footer-links using normal document flow */
  .landing-content {
    position: relative !important;
  }
  
  /* Hide housekeeping in its original nested position */
  .helper-section .helper-buttons .housekeeping:not([data-moved="true"]),
  .helper-buttons .housekeeping:not([data-moved="true"]) {
    display: none !important;
  }
  
  /* Redesigned housekeeping - positioned as sibling of main-buttons, before footer-links */
  /* This targets housekeeping when it's moved to be a direct child of landing-content */
  .landing-content .housekeeping:not([data-moved="true"])[data-redesigned="true"],
  .landing-content > .housekeeping:not([data-moved="true"]) {
    /* Simple static positioning - no fixed, no absolute, no JavaScript calculations */
    position: static !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 600px !important;
    max-width: 600px !important;
    margin: 20px auto !important; /* Center with auto margins - simple and stable */
    padding: 15px 20px !important;
    background: rgba(40,167,69,0.05) !important;
    border: 1px dashed rgba(40,167,69,0.3) !important;
    border-radius: 10px !important;
    box-sizing: border-box !important;
    /* No transforms, no containment, no isolation - keep it simple and stable */
    transform: none !important;
    contain: none !important;
    isolation: auto !important;
    will-change: auto !important;
    transition: none !important;
    animation: none !important;
    z-index: auto !important;
    overflow: visible !important;
    height: auto !important;
    /* Remove any inline styles that might interfere */
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
  }
  
  /* Ensure proper spacing between main-buttons and housekeeping */
  .main-buttons {
    margin-bottom: 0 !important;
  }
  
  /* Ensure proper spacing between housekeeping and footer-links */
  .landing-content .housekeeping:not([data-moved="true"])[data-redesigned="true"] + .footer-links,
  .landing-content > .housekeeping:not([data-moved="true"]) + .footer-links {
    margin-top: 20px !important;
  }
  
  /* No hover effects needed - static positioning doesn't move */
  @media (min-width: 601px) {
    .landing-content .housekeeping:not([data-moved="true"])[data-redesigned="true"]:hover,
    .landing-content > .housekeeping:not([data-moved="true"]):hover {
      position: static !important;
      transform: none !important;
      margin: 20px auto !important;
    }
  }
  
  /* Responsive width for smaller desktop screens */
  @media (min-width: 601px) and (max-width: 700px) {
    .landing-content .housekeeping:not([data-moved="true"])[data-redesigned="true"],
    .landing-content > .housekeeping:not([data-moved="true"]) {
      width: calc(100% - 40px) !important;
      max-width: 600px !important;
    }
  }
  
  /* Prevent button hover transforms from affecting container position on all desktop screens - completely disable hover movement */
  @media (min-width: 601px) {
    /* Override the global hover rule from index.html - no movement on hover */
    #landing .housekeeping button,
    .main-buttons .helper-section .helper-buttons .housekeeping:not([data-moved="true"]) button,
    .main-buttons .helper-section .housekeeping:not([data-moved="true"]) button,
    .main-buttons .housekeeping:not([data-moved="true"]) button,
    .helper-section .housekeeping:not([data-moved="true"]) button {
      position: relative !important;
      top: 0 !important;
      transform: none !important;
      transition: opacity 0.2s ease !important;
    }
    
    #landing .housekeeping button:hover,
    .main-buttons .helper-section .helper-buttons .housekeeping:not([data-moved="true"]) button:hover,
    .main-buttons .helper-section .housekeeping:not([data-moved="true"]) button:hover,
    .main-buttons .housekeeping:not([data-moved="true"]) button:hover,
    .helper-section .housekeeping:not([data-moved="true"]) button:hover {
      opacity: 0.9 !important;
      /* Remove transform and top - these can cause parent layout recalculation */
      transform: none !important;
      -webkit-transform: none !important;
      top: auto !important;
      /* Prevent any property that could trigger layout */
      will-change: auto !important;
    }
    
    /* Completely hide and disable tooltips for housekeeping on desktop */
    .housekeeping .quick-tooltip {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
      pointer-events: none !important;
      position: absolute !important;
      left: -9999px !important;
      top: -9999px !important;
    }
    
    /* Use native browser tooltips for housekeeping buttons on desktop to avoid layout shifts */
    .housekeeping button[data-quick-tooltip] {
      cursor: help !important;
    }
    
    /* Prevent any tooltip-related layout reads for housekeeping buttons */
    .housekeeping button[data-quick-tooltip]:hover .quick-tooltip,
    .housekeeping button:hover .quick-tooltip {
      display: none !important;
      visibility: hidden !important;
      opacity: 0 !important;
    }
  }
  
  /* Desktop screens only (≥1401px) - position housekeeping just below main-buttons and above footer links */
  @media (min-width: 1401px) {
    /* Make landing-content position relative for absolute positioning */
    .landing-content {
      position: relative !important;
    }
    
    /* Prevent tooltips from affecting housekeeping container layout on desktop */
    .housekeeping .quick-tooltip {
      position: fixed !important;
      bottom: auto !important;
      left: auto !important;
      transform: none !important;
      margin-bottom: 0 !important;
    }
    
    /* Position housekeeping just below helper/admin tools and above footer links on desktop */
    .main-buttons .helper-section .helper-buttons .housekeeping:not([data-moved="true"]),
    .main-buttons .helper-section .housekeeping:not([data-moved="true"]),
    .main-buttons .housekeeping:not([data-moved="true"]),
    .helper-section .housekeeping:not([data-moved="true"]) {
      position: fixed !important;
      /* Center within full screen width - fixed positioning is relative to viewport */
      left: calc(50vw - 300px) !important;
      right: auto !important;
      transform: none !important;
      -webkit-transform: none !important;
      /* Top position will be set via JavaScript to position between main-buttons and footer-links */
      top: auto !important;
      bottom: auto !important;
      width: 600px !important;
      max-width: calc(100vw - 40px) !important;
      z-index: 1000 !important;
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      background: rgba(40,167,69,0.05) !important;
      border: 1px dashed rgba(40,167,69,0.3) !important;
      border-radius: 10px !important;
      padding: 15px 20px !important;
      box-sizing: border-box !important;
      min-height: 80px !important;
      height: auto !important;
      overflow: visible !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      margin-top: 0 !important;
      margin-bottom: 0 !important;
      text-align: center !important;
      isolation: isolate !important;
      contain: layout style paint !important;
      backface-visibility: hidden !important;
      /* No transform - use margin auto for centering to prevent recalculation */
      transform: none !important;
      -webkit-transform: none !important;
    }
    
    /* Prevent button hover transforms from affecting container position - completely disable hover movement */
    .main-buttons .helper-section .helper-buttons .housekeeping:not([data-moved="true"]) button,
    .main-buttons .helper-section .housekeeping:not([data-moved="true"]) button,
    .main-buttons .housekeeping:not([data-moved="true"]) button,
    .helper-section .housekeeping:not([data-moved="true"]) button {
      position: relative !important;
      top: 0 !important;
      transform: none !important;
      transition: opacity 0.2s ease !important;
    }
    
    .main-buttons .helper-section .helper-buttons .housekeeping:not([data-moved="true"]) button:hover,
    .main-buttons .helper-section .housekeeping:not([data-moved="true"]) button:hover,
    .main-buttons .housekeeping:not([data-moved="true"]) button:hover,
    .helper-section .housekeeping:not([data-moved="true"]) button:hover {
      opacity: 0.9 !important;
      transform: none !important;
      top: 0 !important;
    }
  }
  
  /* For Nest Hub (1024x600) and Nest Hub Max (1280x800) - show housekeeping in its natural position */
  /* This media query must come AFTER the general desktop rules to properly override them */
  @media (min-width: 601px) and (max-width: 1024px) {
    /* Override ALL absolute positioning rules - show housekeeping in its natural flow position */
    /* Use more specific selectors to ensure these rules override the general desktop rules above */
    .main-buttons .helper-section .helper-buttons .housekeeping:not([data-moved="true"]),
    .main-buttons .helper-section .housekeeping:not([data-moved="true"]),
    .main-buttons .housekeeping:not([data-moved="true"]),
    .helper-section .helper-buttons .housekeeping:not([data-moved="true"]),
    .helper-buttons .housekeeping:not([data-moved="true"]),
    .helper-section .housekeeping:not([data-moved="true"]) {
      position: relative !important;
      left: auto !important;
      transform: none !important;
      top: auto !important;
      bottom: auto !important;
      margin: 15px auto 0 auto !important; /* Increased margin to move it lower and center it */
      width: calc(100% - 50px) !important; /* Adjusted width for better centering */
      max-width: calc(100% - 50px) !important;
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      z-index: auto !important;
      padding: 15px 20px !important;
      height: auto !important;
      overflow: visible !important;
      text-align: center !important; /* Ensure content is centered */
    }
  }
  
  /* For iPad Air (820px portrait, 1180px landscape) and similar tablets - center on screen */
  /* Exclude Nest Hub range (601-1024px) to avoid conflicts */
  /* Note: iPad Pro (1024-1366px) has its own rule below */
  @media (min-width: 1025px) and (max-width: 1400px) {
    /* Position housekeeping centered horizontally on the screen, just below both sections */
    .main-buttons .helper-section .helper-buttons .housekeeping:not([data-moved="true"]),
    .main-buttons .helper-section .housekeeping:not([data-moved="true"]),
    .main-buttons .housekeeping:not([data-moved="true"]),
    .helper-section .helper-buttons .housekeeping:not([data-moved="true"]),
    .helper-buttons .housekeeping:not([data-moved="true"]),
    .helper-section .housekeeping:not([data-moved="true"]) {
      position: absolute !important;
      left: 50% !important;
      transform: translateX(-50%) !important;
      top: 100% !important;
      margin-top: 10px !important;
      width: 600px !important;
      max-width: calc(100vw - 40px) !important;
      z-index: 1000 !important;
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      background: rgba(40,167,69,0.05) !important;
      border: 1px dashed rgba(40,167,69,0.3) !important;
      border-radius: 10px !important;
      padding: 15px 20px !important;
      box-sizing: border-box !important;
      height: auto !important;
      overflow: visible !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      text-align: center !important;
    }
  }
  
  /* For iPad Pro (1024x1366 portrait, 1366x1024 landscape) - move housekeeping higher */
  /* This must come AFTER the 1025px-1400px rule to override it */
  /* Match iPad Pro 12.9" specifically by width and height combinations */
  @media (width: 1024px) and (height: 1366px),
         (width: 1366px) and (height: 1024px),
         (min-width: 1024px) and (max-width: 1024px) and (min-height: 1366px) and (max-height: 1366px),
         (min-width: 1366px) and (max-width: 1366px) and (min-height: 1024px) and (max-height: 1024px) {
    /* Center main-buttons container on the page for iPad Pro */
    .main-buttons {
      justify-content: center !important;
      gap: 30px !important;
      position: relative !important;
    }
    
    /* Make the parent container (landing-content) position relative for absolute positioning */
    .landing-content {
      position: relative !important;
    }
    
    /* Position housekeeping centered horizontally on the screen, higher position for iPad Pro */
    /* Use same selectors as general desktop rules to ensure proper override */
    .main-buttons .helper-section .helper-buttons .housekeeping:not([data-moved="true"]),
    .main-buttons .helper-section .housekeeping:not([data-moved="true"]),
    .main-buttons .housekeeping:not([data-moved="true"]),
    .helper-section .helper-buttons .housekeeping:not([data-moved="true"]),
    .helper-buttons .housekeeping:not([data-moved="true"]),
    .helper-section .housekeeping:not([data-moved="true"]) {
      position: absolute !important;
      left: 50% !important; /* Center relative to viewport */
      transform: translateX(-50%) !important;
      transform-origin: center center !important;
      /* Position it higher - reduced calculation for iPad Pro */
      top: calc(436.63px + 30px + 15px + 70px - 150px) !important;
      width: 600px !important;
      max-width: calc(100vw - 40px) !important;
      z-index: 1000 !important;
      display: block !important;
      will-change: auto !important;
      isolation: isolate !important;
      visibility: visible !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      background: rgba(40,167,69,0.05) !important;
      border: 1px dashed rgba(40,167,69,0.3) !important;
      border-radius: 10px !important;
      padding: 15px 20px !important;
      box-sizing: border-box !important;
      height: auto !important;
      overflow: visible !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      margin-top: 0 !important;
      text-align: center !important;
    }
  }
  
  /* For iPad Mini (744x1133 portrait, 1133x744 landscape OR 768x1024 portrait, 1024x768 landscape) - same as iPad Air */
  /* This needs to override both Nest Hub rules and general desktop rules, including the 768px column rule */
  @media (min-width: 744px) and (max-width: 820px) and (min-height: 1024px),
         (min-width: 768px) and (max-width: 820px) and (min-height: 1024px),
         (min-width: 1024px) and (max-width: 1133px) and (min-height: 744px),
         (min-width: 1133px) and (max-width: 1133px) and (min-height: 744px) {
    /* Center main-buttons container on the page for iPad Mini */
    .main-buttons {
      flex-direction: row !important; /* Ensure sections display side by side */
      justify-content: center !important;
      gap: 20px !important;
      position: relative !important;
      align-items: flex-start !important;
    }
    
    /* Make the parent container (landing-content) position relative for absolute positioning */
    .landing-content {
      position: relative !important;
    }
    
    /* Position housekeeping centered horizontally on the screen, just below footer links - same as iPad Air */
    .main-buttons .helper-section .helper-buttons .housekeeping:not([data-moved="true"]),
    .main-buttons .helper-section .housekeeping:not([data-moved="true"]),
    .main-buttons .housekeeping:not([data-moved="true"]),
    .helper-section .helper-buttons .housekeeping:not([data-moved="true"]),
    .helper-buttons .housekeeping:not([data-moved="true"]),
    .helper-section .housekeeping:not([data-moved="true"]) {
      position: absolute !important;
      left: 50% !important; /* Center relative to viewport */
      transform: translateX(-50%) !important;
      /* Position it after main-buttons (436.63px) + margin-bottom (30px) + footer-links margin-top (15px) + footer-links approximate height (70px) - reduced gap for higher position */
      top: calc(436.63px + 30px + 15px + 70px - 80px) !important;
      width: 600px !important;
      max-width: calc(100vw - 40px) !important;
      z-index: 1000 !important;
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      background: rgba(40,167,69,0.05) !important;
      border: 1px dashed rgba(40,167,69,0.3) !important;
      border-radius: 10px !important;
      padding: 15px 20px !important;
      box-sizing: border-box !important;
      height: auto !important;
      overflow: visible !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      margin-top: 0 !important;
      text-align: center !important;
    }
    
    /* Reduce helper section width for iPad Mini to fit side by side */
    .helper-section {
      width: 280px !important;
      height: 436.63px !important;
      flex: 0 0 auto !important;
      display: flex !important;
      flex-direction: column !important;
    }
    
    /* Ensure host section matches helper section width on iPad Mini */
    .host-section {
      width: 280px !important;
      flex: 0 0 auto !important;
      min-width: 0 !important;
      display: flex !important;
      flex-direction: column !important;
    }
    
    /* Ensure both sections are visible and displayed side by side */
    .helper-section,
    .host-section {
      display: flex !important;
      visibility: visible !important;
      opacity: 1 !important;
    }
  }
  
  /* For iPad Air (820px portrait, 1180px landscape) - center on screen */
  /* This needs to override both Nest Hub rules and general desktop rules */
  @media (min-width: 820px) and (max-width: 1024px) and (min-height: 1180px),
         (min-width: 1180px) and (max-width: 1180px) and (max-height: 820px) {
    /* Center main-buttons container on the page for iPad Air */
    .main-buttons {
      justify-content: center !important;
      gap: 30px !important;
      position: relative !important;
    }
    
    /* Make the parent container (landing-content) position relative for absolute positioning */
    .landing-content {
      position: relative !important;
    }
    
    /* Position housekeeping centered horizontally on the screen, just below footer links */
    .main-buttons .helper-section .helper-buttons .housekeeping:not([data-moved="true"]),
    .main-buttons .helper-section .housekeeping:not([data-moved="true"]),
    .main-buttons .housekeeping:not([data-moved="true"]),
    .helper-section .helper-buttons .housekeeping:not([data-moved="true"]),
    .helper-buttons .housekeeping:not([data-moved="true"]),
    .helper-section .housekeeping:not([data-moved="true"]) {
      position: absolute !important;
      left: 50% !important; /* Center relative to viewport */
      transform: translateX(-50%) !important;
      /* Position it after main-buttons (436.63px) + margin-bottom (30px) + footer-links margin-top (15px) + footer-links approximate height (70px) - reduced gap for higher position */
      top: calc(436.63px + 30px + 15px + 70px - 80px) !important;
      width: 600px !important;
      max-width: calc(100vw - 40px) !important;
      z-index: 1000 !important;
      display: block !important;
      visibility: visible !important;
      opacity: 1 !important;
      pointer-events: auto !important;
      background: rgba(40,167,69,0.05) !important;
      border: 1px dashed rgba(40,167,69,0.3) !important;
      border-radius: 10px !important;
      padding: 15px 20px !important;
      box-sizing: border-box !important;
      height: auto !important;
      overflow: visible !important;
      margin-left: 0 !important;
      margin-right: 0 !important;
      margin-top: 0 !important;
      text-align: center !important;
    }
    
    /* Make admin tools section match helper tools section dimensions on iPad Air */
    .helper-section {
      width: 324px !important;
      height: 436.63px !important;
      flex: 0 0 auto !important;
      display: flex !important;
      flex-direction: column !important;
    }
    
    .host-section {
      width: 324px !important;
      height: 436.63px !important;
      flex: 0 0 auto !important;
      min-width: 0 !important;
      display: flex !important;
      flex-direction: column !important;
    }
  }
  
  /* Make housekeeping section more readable on larger tablet/hub devices (≥601px) */
  .main-buttons .housekeeping h4,
  .helper-section .housekeeping:not([data-moved="true"]) h4 {
    font-size: 1.1rem !important; /* Larger heading */
    margin-bottom: 10px !important;
  }
  
  .main-buttons .housekeeping p,
  .helper-section .housekeeping:not([data-moved="true"]) p {
    font-size: 0.9rem !important; /* Larger description text */
    margin-bottom: 12px !important;
  }
  
  /* Override general housekeeping button styles for Tour On, Tour Off, and Inspiration Off buttons */
  /* These must come after the general button rule to override it */
  .main-buttons .housekeeping button[onclick="turnOnTour()"],
  .main-buttons .housekeeping button[onclick="turnOffTour()"],
  .main-buttons .housekeeping button[onclick="turnOffBanner()"],
  .helper-section .housekeeping:not([data-moved="true"]) button[onclick="turnOnTour()"],
  .helper-section .housekeeping:not([data-moved="true"]) button[onclick="turnOffTour()"],
  .helper-section .housekeeping:not([data-moved="true"]) button[onclick="turnOffBanner()"] {
    padding: 6px 12px !important; /* Match inline style padding - same as Tour On/Off */
    font-size: 0.75rem !important; /* Match inline style font-size - same as Tour On/Off */
    min-height: auto !important; /* Override the 44px min-height */
    width: 140px !important;
    min-width: 140px !important;
    max-width: 140px !important;
    flex: 0 0 140px !important;
    height: auto !important;
    line-height: 1.2 !important;
  }
  
  .main-buttons .housekeeping button:not([onclick="turnOnTour()"]):not([onclick="turnOffTour()"]):not([onclick="turnOffBanner()"]),
  .helper-section .housekeeping:not([data-moved="true"]) button:not([onclick="turnOnTour()"]):not([onclick="turnOffTour()"]):not([onclick="turnOffBanner()"]) {
    padding: 10px 16px !important; /* Larger button padding for other buttons */
    font-size: 0.9rem !important; /* Larger button text for other buttons */
    min-height: 44px !important; /* Better touch target for other buttons */
  }
  
  .main-buttons .housekeeping > div[style*="flex-direction: column"],
  .helper-section .housekeeping:not([data-moved="true"]) > div[style*="flex-direction: column"] {
    gap: 12px !important; /* More spacing between button groups */
  }
  
  /* Make Tour On, Tour Off, and Inspiration Off buttons side by side and centered on desktop */
  .housekeeping > div[style*="flex-direction: column"] {
    flex-direction: row !important;
    gap: 8px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    flex-wrap: nowrap !important;
  }
  
  /* Make the nested div with Tour On/Off buttons display inline (not as a block) */
  .housekeeping > div[style*="flex-direction: column"] > div[style*="display: flex"][style*="gap: 6px"] {
    display: flex !important;
    flex-direction: row !important;
    gap: 6px !important;
    flex: 0 0 auto !important;
  }
  
  /* Make Inspiration Off button appear inline with the others - but with fixed width matching Overview/Help On/Off */
  .housekeeping > div[style*="flex-direction: column"] > button[onclick*="turnOffBanner"],
  .housekeeping > div[style*="flex-direction: column"] > button[onclick="turnOffBanner()"] {
    flex: 0 0 168px !important;
    width: 168px !important;
    min-width: 168px !important;
    max-width: 168px !important;
    padding: 6px 10px !important;
    font-size: 0.72rem !important;
    min-height: auto !important;
    height: auto !important;
    line-height: 1.15 !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    box-sizing: border-box !important;
  }
  
  /* Set specific dimensions for Helper Tools section on desktop */
  .helper-section {
    width: 324px !important;
    height: 436.63px !important;
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Make Helper Tools and Admin Tools sections the same size on desktop */
  .host-section {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
    display: flex !important;
    flex-direction: column !important;
  }
  
  /* Ensure both sections have equal height */
  .main-buttons {
    align-items: stretch !important;
  }
  
  .host-section {
    height: 100% !important;
  }
  
  /* Ensure availability days fit horizontally on all screen sizes */
  #editAvailabilityCheckboxes {
    display: grid !important;
    grid-template-columns: repeat(7, minmax(0, 1fr)) !important;
    gap: 6px !important;
    font-size: 0.85rem !important;
  }
  
  #editAvailabilityCheckboxes label {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    font-size: 0.8rem !important;
    gap: 4px !important;
    font-weight: 600 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: center !important;
    min-width: 0 !important;
  }
  
  /* On smaller desktop/tablet screens, keep one row */
  @media (min-width: 601px) and (max-width: 1024px) {
    #editAvailabilityCheckboxes {
      gap: 4px !important;
      font-size: 0.75rem !important;
    }
    
    #editAvailabilityCheckboxes label {
      font-size: 0.75rem !important;
      gap: 3px !important;
    }
  }
}

/* Info modal — What? / Why? — inline-block for Android 8 WebView flex/max-content bugs */
#infoContent.info-content-what .mh-whatwhy-logo-outer,
#infoContent.info-content-why .mh-whatwhy-logo-outer {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  flex-shrink: 0 !important;
  align-self: flex-start !important;
  box-sizing: border-box !important;
}

/* Info modal — What? / Why? — blue chip hugs logo */
#infoContent.info-content-what .logo-background,
#infoContent.info-content-what > div:first-child .logo-background,
#infoContent.info-content-what > div:first-child > div:first-child .logo-background,
#infoContent.info-content-why .logo-background,
#infoContent.info-content-why > div:first-child .logo-background,
#infoContent.info-content-why > div:first-child > div:first-child .logo-background {
  display: inline-block !important;
  width: auto !important;
  max-width: 100% !important;
  flex: 0 0 auto !important;
  flex-grow: 0 !important;
  align-self: flex-start !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  text-align: center !important;
  line-height: 40px !important;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%) !important;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3) !important;
  border-radius: 12px !important;
}

@media (max-width: 480px) {
  #infoContent.info-content-what .logo-background,
  #infoContent.info-content-what > div:first-child .logo-background,
  #infoContent.info-content-what > div:first-child > div:first-child .logo-background,
  #infoContent.info-content-why .logo-background,
  #infoContent.info-content-why > div:first-child .logo-background,
  #infoContent.info-content-why > div:first-child > div:first-child .logo-background {
    line-height: normal !important;
    min-height: 0 !important;
    padding: 6px 10px !important;
    border-radius: 8px !important;
    font-size: inherit !important;
    overflow: visible !important;
  }
  #infoContent.info-content-what .logo,
  #infoContent.info-content-what img.logo,
  #infoContent.info-content-why .logo,
  #infoContent.info-content-why img.logo {
    height: 32px !important;
    max-height: 32px !important;
  }
}
