:root {
  /* Flat mono theme */
  --bg-primary: #2c2c2e;
  --bg-secondary: #1c1c1e;
  --bg-tertiary: #3a3a3c;
  --card-bg: #3a3a3c;
  --card-hover: #48484a;
  --text-primary: #ffffff;
  --text-secondary: #aeaeb2;
  --text-muted: #8e8e93;
  --accent-primary: #007aff;
  --accent-hover: #5ac8fa;
  --error-color: #ff453a;
  --success-color: #30d158;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  
  /* Border radius */
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  
  /* Clean flat shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.12);
  
  /* Transitions */
  --transition-fast: 0.15s ease-in-out;
  --transition-normal: 0.3s ease-in-out;
  --transition-slow: 0.5s ease-in-out;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* App container */
.app-container {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

/* Background overlay removed for flat design */

/* Header styles */
.header {
  padding: var(--spacing-md) var(--spacing-sm);
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.app-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.025em;
}

/* Main content */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) var(--spacing-sm);
  min-height: 0;
  gap: var(--spacing-md);
}

/* State containers */
.state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 400px;
  width: 100%;
  padding: var(--spacing-xl);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-xl);
  order: 3;
}

.state-container.hidden {
  display: none;
}

/* Loading state */
.loading-spinner {
  width: 48px;
  height: 48px;
  border: 3px solid var(--bg-tertiary);
  border-top: 3px solid var(--accent-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--spacing-md);
}

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

/* Error state */
.error-icon {
  margin-bottom: var(--spacing-md);
  opacity: 0.8;
  color: var(--text-secondary);
}

.error-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--error-color);
  margin-bottom: var(--spacing-sm);
}

.state-message {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--spacing-md);
}

/* Retry button */
.retry-button {
  padding: var(--spacing-sm) var(--spacing-lg);
  background: var(--accent-primary);
  color: var(--text-primary);
  border: none;
  border-radius: var(--radius-md);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-normal);
  min-height: 44px;
  min-width: 120px;
}

.retry-button:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.retry-button:active {
  transform: translateY(0);
}

/* Property display */
.property-display {
  width: 100%;
  max-width: 800px;
  display: block;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
  padding: var(--spacing-sm) var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  order: 1;
  align-self: stretch;
}

.property-display.hidden {
  display: none;
}

.property-text {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  margin: 0;
  letter-spacing: -0.025em;
  display: block;
  width: 100%;
}

/* Welcome section */
.welcome-section {
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: var(--spacing-lg) var(--spacing-lg);
  margin-bottom: var(--spacing-md);
  order: 2;
  gap: var(--spacing-sm);
}

.welcome-section.hidden {
  display: none;
}

.welcome-content h2 {
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.welcome-content p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin: var(--spacing-sm) 0;
  font-weight: 400;
}

.property-name-display {
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin: 0 0 var(--spacing-md) 0;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.learn-more-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;
  margin-top: var(--spacing-xs);
}

.learn-more-link:hover {
  color: var(--text-primary);
}

/* Weather info - subtle background element */
.weather-info {
  cursor: pointer;
  transition: all 0.2s ease;
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  opacity: 0.7;
}

.weather-info:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

.weather-display {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.weather-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.weather-temp {
  font-weight: 500;
  color: var(--text-primary);
  opacity: 0.9;
}

.weather-desc {
  font-size: 0.8rem;
  opacity: 0.7;
}

/* Service grid */
.service-grid {
  width: 100%;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--spacing-md);
  order: 3;
}

.service-grid.hidden {
  display: none;
}

.service-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--spacing-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--spacing-sm);
}

.service-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  background: var(--card-hover);
}

.service-card:active {
  transform: translateY(0);
}

.card-icon {
  width: 32px;
  height: 32px;
  margin-bottom: var(--spacing-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Minimal abstract icon shapes */
.icon-shape {
  width: 24px;
  height: 24px;
  position: relative;
  opacity: 0.8;
  transition: all 0.3s ease;
}

.service-card:hover .icon-shape {
  opacity: 1;
  transform: scale(1.1);
}

/* Weather sun icon */
.weather-sun {
  background: var(--text-secondary);
  border-radius: 50%;
  width: 16px;
  height: 16px;
}

.weather-sun::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid var(--text-secondary);
  border-radius: 50%;
  opacity: 0.3;
}

/* Microphone icon */
.icon-microphone {
  background: linear-gradient(to bottom, var(--accent-primary) 0%, var(--accent-hover) 100%);
  border-radius: 8px 8px 50% 50%;
}

.icon-microphone::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 6px;
  border: 2px solid var(--accent-primary);
  border-top: none;
  border-radius: 0 0 12px 12px;
}

/* Chat icon */
.icon-chat {
  background: var(--text-primary);
  border-radius: 12px;
  width: 20px;
  height: 16px;
}

.icon-chat::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 4px;
  width: 0;
  height: 0;
  border-left: 6px solid var(--text-primary);
  border-right: 6px solid transparent;
  border-top: 4px solid var(--text-primary);
}

/* Dining icon - Heroicons outline */
.icon-dining {
  width: 24px;
  height: 24px;
  background: none;
}

.icon-dining::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23ffffff'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M13.5 21v-7.5a.75.75 0 0 1 .75-.75h3a.75.75 0 0 1 .75.75V21m-4.5 0H2.36m11.14 0H18m0 0h3.64m-1.39 0V9.349M3.75 21V9.349m0 0a3.001 3.001 0 0 0 3.75-.615A2.993 2.993 0 0 0 9.75 9.75c.896 0 1.7-.393 2.25-1.016a2.993 2.993 0 0 0 2.25 1.016c.896 0 1.7-.393 2.25-1.016a3.001 3.001 0 0 0 3.75.614m-16.5 0a3.004 3.004 0 0 1-.621-4.72L4.318 3.44A1.5 1.5 0 0 1 5.378 3h13.243a1.5 1.5 0 0 1 1.06.44l1.19 1.189a3 3 0 0 1-.621 4.72M6.75 18h3.75a.75.75 0 0 0 .75-.75V13.5a.75.75 0 0 0-.75-.75H6.75a.75.75 0 0 0-.75.75v3.75c0 .414.336.75.75.75Z' /%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Activity icon - Heroicons outline */
.icon-activity {
  width: 24px;
  height: 24px;
  background: none;
  transform: none;
}

.icon-activity::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23ffffff'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z' /%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M19.5 10.5c0 7.142-7.5 11.25-7.5 11.25S4.5 17.642 4.5 10.5a7.5 7.5 0 1 1 15 0Z' /%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Deals icon - Heroicons outline */
.icon-deals {
  width: 24px;
  height: 24px;
  background: none;
  position: relative;
}

.icon-deals::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23ffffff'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M8.25 9.75h4.875a2.118 2.118 0 0 1 2.117 2.118v.932c0 .287-.107.564-.297.767l-3.705 3.944a.75.75 0 0 1-1.09 0l-3.705-3.944a1.125 1.125 0 0 1-.297-.767v-.932A2.118 2.118 0 0 1 8.25 9.75Z' /%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M5.25 18.75h13.5M18.53 3.22a.75.75 0 0 1 .22.53c0 .64-.42 1.21-1.075 1.397l-3.6.947a1.875 1.875 0 0 1-1.287-.107 3.75 3.75 0 0 0-3.576 0 1.875 1.875 0 0 1-1.287.107l-3.6-.947A1.5 1.5 0 0 1 3.25 3.75a.75.75 0 0 1 .22-.53A.75.75 0 0 1 4 3h.25c.621 0 1.164.406 1.357 1.002l.39 1.2c.11.33.355.58.654.69l3.6.947a3.75 3.75 0 0 0 2.394 0l3.6-.947a.75.75 0 0 0 .654-.69l.39-1.2A1.5 1.5 0 0 1 19.75 3H20a.75.75 0 0 1 .53.22Z' /%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Home icon - Heroicons outline */
.icon-home {
  width: 24px;
  height: 24px;
  background: none;
}

.icon-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23ffffff'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='m2.25 12 8.954-8.955c.44-.439 1.152-.439 1.591 0L21.75 12M4.5 9.75v10.125c0 .621.504 1.125 1.125 1.125H9.75v-4.875c0-.621.504-1.125 1.125-1.125h2.25c.621 0 1.125.504 1.125 1.125V21h4.125c.621 0 1.125-.504 1.125-1.125V9.75M8.25 21h8.25' /%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Contact icon - Heroicons outline */
.icon-contact {
  width: 24px;
  height: 24px;
  background: none;
}

.icon-contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='%23ffffff'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M2.25 6.75c0 8.284 6.716 15 15 15h2.25a2.25 2.25 0 0 0 2.25-2.25v-1.372c0-.516-.351-.966-.852-1.091l-4.423-1.106c-.44-.11-.902.055-1.173.417l-.97 1.293c-.282.376-.769.542-1.21.38a12.035 12.035 0 0 1-7.143-7.143c-.162-.441.004-.928.38-1.21l1.293-.97c.363-.271.527-.734.417-1.173L6.963 3.102a1.125 1.125 0 0 0-1.091-.852H4.5A2.25 2.25 0 0 0 2.25 4.5v2.25Z' /%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.025em;
}

.service-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin: 0;
}

.start-card {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.15), 
    rgba(99, 102, 241, 0.12)
  );
  border: 1px solid rgba(59, 130, 246, 0.25);
  box-shadow: var(--shadow-xl), 0 0 24px rgba(59, 130, 246, 0.1);
}

.start-card:hover {
  background: linear-gradient(135deg, 
    rgba(59, 130, 246, 0.2), 
    rgba(99, 102, 241, 0.18)
  );
  border: 1px solid rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow-xl), 0 0 32px rgba(59, 130, 246, 0.15);
}

/* Modal styles */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: var(--spacing-md);
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 800px;
  max-height: 95vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: var(--spacing-md) var(--spacing-lg) 0;
  border-bottom: none;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.close-button {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--spacing-xs);
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-button:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

/* Weekly weather */
.weekly-weather {
  padding: var(--spacing-lg);
  display: grid;
  gap: var(--spacing-md);
}

.weather-day {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.weather-day-name {
  font-weight: 500;
  color: var(--text-primary);
  min-width: 80px;
}

.weather-day-icon {
  font-size: 1.5rem;
}

.weather-day-temps {
  display: flex;
  gap: var(--spacing-sm);
  align-items: center;
}

.weather-high {
  font-weight: 600;
  color: var(--text-primary);
}

.weather-low {
  color: var(--text-secondary);
}

/* Learn more modal */
.learn-more-content {
  max-width: 500px;
}

.learn-more-body {
  padding: var(--spacing-lg);
  max-height: 60vh;
  overflow-y: auto;
}

.learn-more-section {
  margin-bottom: var(--spacing-lg);
}

.learn-more-section:last-child {
  margin-bottom: 0;
}

.learn-more-section h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 var(--spacing-sm) 0;
  letter-spacing: -0.025em;
}

.learn-more-section p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 var(--spacing-sm) 0;
}

.learn-more-section ul {
  margin: 0;
  padding-left: var(--spacing-lg);
}

.learn-more-section li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--spacing-xs);
}

/* Modal property name display - external to modal content */
.modal-property-name-external {
  text-align: center;
  margin-bottom: var(--spacing-md);
  padding: 0 var(--spacing-lg);
  font-size: 1.2rem;
  color: var(--text-primary);
  font-weight: 500;
  opacity: 0.9;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .welcome-section {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
    align-items: center;
  }
  
  .weather-info {
    order: -1; /* Show weather above welcome text on mobile */
  }
  
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
  
  .service-card {
    min-height: 100px;
    padding: var(--spacing-md);
  }
  
  .card-icon {
    width: 28px;
    height: 28px;
  }
  
  .icon-shape {
    width: 20px;
    height: 20px;
  }
  
  .service-card h3 {
    font-size: 0.9rem;
  }
  
  .service-card p {
    font-size: 0.8rem;
  }
  
  .modal-content {
    margin: var(--spacing-xs);
    max-height: 98vh;
    width: calc(100vw - 16px);
    max-width: none;
  }
  
  .weather-display {
    justify-content: center;
  }
}

/* Widget wrapper */
.widget-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-xl);
  min-height: 600px;
  flex: 1;
}

.widget-wrapper.hidden {
  display: none;
}

/* Eleven Labs widget customization */
elevenlabs-convai {
  width: 100%;
  max-width: 100%;
  min-height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  elevenlabs-convai {
    min-height: 65vh;
    height: 65vh;
  }
}

/* Instruction text animations */
.instruction-text {
  position: static;
  width: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
  padding: var(--spacing-xs) var(--spacing-lg);
  margin-top: calc(-1 * var(--spacing-lg));
  pointer-events: none;
}

.instruction-text.show {
  opacity: 1;
}

.instruction-message {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-weight: 400;
}

/* Extra mobile optimizations for very small screens */
@media (max-width: 480px) {
  .modal-content {
    margin: 4px;
    max-height: 99vh;
    width: calc(100vw - 8px);
    border-radius: var(--radius-lg);
  }
  
  .widget-wrapper {
    padding: var(--spacing-xs);
    min-height: 60vh;
    flex: none;
  }
  
  elevenlabs-convai {
    min-height: 70vh;
    height: 70vh;
    border-radius: var(--radius-md);
  }
  
  .instruction-text {
    padding: var(--spacing-xs) var(--spacing-sm);
    margin-top: calc(-2.5 * var(--spacing-lg));
    margin-bottom: var(--spacing-xs);
  }
  
  .instruction-message {
    font-size: 0.85rem;
    color: var(--text-secondary);
  }
}

/* Footer */
.footer {
  padding: var(--spacing-md) var(--spacing-sm);
  text-align: center;
  z-index: 10;
}

.footer-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Responsive design */
@media (max-width: 768px) {
  .logo {
    width: 32px;
    height: 32px;
  }
  
  .app-title {
    font-size: 1.25rem;
  }
  
  .main-content {
    padding: var(--spacing-md) var(--spacing-sm);
  }
  
  .state-container {
    padding: var(--spacing-lg);
    max-width: 100%;
  }
  
  .widget-wrapper {
    padding: var(--spacing-lg);
    max-width: 100%;
    min-height: 500px;
  }
}

@media (max-width: 480px) {
  .header {
    padding: var(--spacing-sm);
  }
  
  .logo-container {
    gap: var(--spacing-xs);
  }
  
  .logo {
    width: 28px;
    height: 28px;
  }
  
  .app-title {
    font-size: 1.125rem;
  }
  
  .state-container {
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
  }
  
  .widget-wrapper {
    padding: var(--spacing-sm);
    min-height: 70vh;
    border-radius: var(--radius-lg);
  }
  
  .error-title {
    font-size: 1.125rem;
  }
  
  .state-message {
    font-size: 0.875rem;
  }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .loading-spinner {
    animation: none;
  }
  
  .retry-button:hover {
    transform: none;
  }
  
  * {
    transition: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-secondary: #cccccc;
  }
}

/* Focus styles for accessibility */
.retry-button:focus,
elevenlabs-convai:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Dark mode is default, but adding support for potential light mode toggle */
@media (prefers-color-scheme: light) {
  /* Keep dark mode as default since it's specified in requirements */
}
