/* ===== CSS Variables ===== */
:root {
  --primary: #6c63ff;
  --primary-dark: #5a52d5;
  --primary-light: #8b85ff;
  --secondary: #ff6584;
  --bg-dark: #1a1a2e;
  --bg-card: #16213e;
  --bg-surface: #0f3460;
  --text-primary: #e0e0e0;
  --text-secondary: #a0a0b0;
  --text-muted: #606080;
  --border: rgba(108, 99, 255, 0.2);
  --success: #4caf50;
  --warning: #ff9800;
  --danger: #f44336;
  --radius: 16px;
  --radius-sm: 8px;
  --shadow: 0 8px 32px rgba(0,0,0,0.4);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  overflow: hidden;
  font-family: 'Segoe UI', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}
#app {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  background: var(--bg-dark);
}

/* ===== Header ===== */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  box-shadow: 0 2px 16px rgba(0,0,0,0.3);
  z-index: 10;
}
.header-left { display: flex; align-items: center; gap: 10px; }
.header-icon { font-size: 22px; color: var(--primary-light); }
.header-title {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(135deg, #fff, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.header-right { display: flex; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(108,99,255,0.15);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.icon-btn:hover, .icon-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* ===== Auth Banner ===== */
.auth-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, rgba(108,99,255,0.2), rgba(66,133,244,0.2));
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-secondary);
  flex-shrink: 0;
}
.auth-banner i { color: #4285f4; }
.auth-banner span { flex: 1; }
.auth-connect-btn {
  background: #4285f4;
  color: white;
  border: none;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.auth-dismiss-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 14px;
  padding: 4px;
}

/* ===== Main Content ===== */
.main-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 0 100px 0;
  scroll-behavior: smooth;
}
.main-content::-webkit-scrollbar { width: 3px; }
.main-content::-webkit-scrollbar-track { background: transparent; }
.main-content::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }

/* ===== Calendar Section ===== */
.calendar-section {
  background: linear-gradient(135deg, var(--bg-card), var(--bg-surface));
  padding: 16px;
  margin: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.current-month {
  font-size: 18px;
  font-weight: 700;
  color: white;
}
.nav-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(108,99,255,0.15);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.nav-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Calendar Grid */
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.calendar-day-header {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 4px 0 8px;
  text-transform: uppercase;
}
.calendar-day-header:first-child { color: #ff6b6b; }
.calendar-day-header:last-child { color: #74b9ff; }
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 2px;
  min-height: 36px;
}
.calendar-day:hover { background: rgba(108,99,255,0.2); color: white; }
.calendar-day.today {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(108,99,255,0.4);
}
.calendar-day.selected {
  background: rgba(108,99,255,0.3);
  color: white;
  border: 1px solid var(--primary);
}
.calendar-day.other-month { color: var(--text-muted); opacity: 0.4; }
.calendar-day.sunday { color: #ff6b6b; }
.calendar-day.saturday { color: #74b9ff; }
.calendar-day.today.sunday,
.calendar-day.today.saturday { color: white; }
.event-dots {
  display: flex;
  gap: 2px;
  margin-top: 2px;
  justify-content: center;
}
.event-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--secondary);
}
.event-dot.work { background: #4caf50; }
.event-dot.personal { background: #ff9800; }
.event-dot.health { background: #2196f3; }
.event-dot.family { background: #9c27b0; }
.event-dot.social { background: #ff6584; }

/* ===== Schedule Section ===== */
.schedule-section {
  padding: 4px 12px 12px;
}
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 0 4px;
}
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: white;
}
.add-btn {
  background: rgba(108,99,255,0.15);
  border: 1px solid var(--border);
  color: var(--primary-light);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
}
.add-btn:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Schedule Items */
.schedule-item {
  background: linear-gradient(135deg, var(--bg-card), rgba(15,52,96,0.8));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: flex-start;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.schedule-item::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--primary);
  border-radius: 4px 0 0 4px;
}
.schedule-item.work::before { background: #4caf50; }
.schedule-item.personal::before { background: #ff9800; }
.schedule-item.health::before { background: #2196f3; }
.schedule-item.family::before { background: #9c27b0; }
.schedule-item.social::before { background: #ff6584; }
.schedule-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108,99,255,0.25);
  border-color: var(--primary);
}
.schedule-time-block {
  text-align: center;
  min-width: 52px;
}
.schedule-time {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1.2;
}
.schedule-ampm {
  font-size: 10px;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
}
.schedule-info { flex: 1; }
.schedule-title {
  font-size: 15px;
  font-weight: 600;
  color: white;
  margin-bottom: 4px;
}
.schedule-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.schedule-meta i { font-size: 11px; }
.schedule-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 10px;
  background: rgba(108,99,255,0.2);
  color: var(--primary-light);
  font-weight: 600;
}
.schedule-badge.work { background: rgba(76,175,80,0.2); color: #81c784; }
.schedule-badge.personal { background: rgba(255,152,0,0.2); color: #ffb74d; }
.schedule-badge.health { background: rgba(33,150,243,0.2); color: #64b5f6; }
.schedule-badge.family { background: rgba(156,39,176,0.2); color: #ce93d8; }
.schedule-badge.social { background: rgba(255,101,132,0.2); color: #ff8aa5; }
.schedule-synced {
  font-size: 11px;
  color: #4285f4;
}

/* Empty State */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
}
.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  opacity: 0.3;
  display: block;
}
.empty-sub { font-size: 13px; margin-top: 6px; opacity: 0.6; }

/* ===== Voice FAB ===== */
.voice-container {
  position: fixed;
  bottom: 30px;
  right: 50%;
  transform: translateX(50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  z-index: 100;
  max-width: 480px;
  width: 100%;
  pointer-events: none;
}
.voice-hint {
  background: rgba(26,26,46,0.95);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 8px 18px;
  font-size: 12px;
  color: var(--text-secondary);
  backdrop-filter: blur(10px);
  pointer-events: none;
  transition: var(--transition);
  opacity: 0;
  text-align: center;
}
.voice-hint.visible { opacity: 1; }
.voice-fab {
  width: 68px; height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  font-size: 26px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px rgba(108,99,255,0.5);
  transition: var(--transition);
  position: relative;
  pointer-events: all;
  flex-shrink: 0;
}
.voice-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 40px rgba(108,99,255,0.7);
}
.voice-fab.listening {
  background: linear-gradient(135deg, var(--secondary), #e05574);
  animation: pulse-fab 1.5s infinite;
}
.voice-ripple {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  opacity: 0;
  transform: scale(0.8);
}
.voice-fab.listening .voice-ripple {
  animation: ripple 1.5s infinite;
}
@keyframes pulse-fab {
  0%, 100% { box-shadow: 0 8px 32px rgba(255,101,132,0.5); }
  50% { box-shadow: 0 8px 48px rgba(255,101,132,0.8); }
}
@keyframes ripple {
  0% { opacity: 0.4; transform: scale(0.8); }
  100% { opacity: 0; transform: scale(1.6); }
}

/* ===== Voice Overlay ===== */
.voice-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.9);
  backdrop-filter: blur(10px);
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.voice-overlay.hidden { display: none; }
.voice-modal {
  background: linear-gradient(180deg, var(--bg-card), var(--bg-dark));
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 480px;
  padding: 24px 24px 40px;
  animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.voice-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.voice-modal-header h3 { font-size: 18px; font-weight: 700; color: white; }
.voice-visualizer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.voice-circle {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.voice-circle.listening {
  animation: pulse-circle 1.5s infinite;
  box-shadow: 0 0 40px rgba(108,99,255,0.5);
}
.voice-circle.processing {
  background: linear-gradient(135deg, var(--warning), #e68900);
  animation: rotate-circle 1s linear infinite;
}
@keyframes pulse-circle {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}
@keyframes rotate-circle {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.voice-mic-icon { font-size: 36px; color: white; }
.voice-waves {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 40px;
}
.voice-waves span {
  display: block;
  width: 5px;
  border-radius: 3px;
  background: var(--primary);
  height: 10px;
  transition: height 0.1s ease;
}
.voice-waves.active span:nth-child(1) { animation: wave 0.8s 0s infinite; }
.voice-waves.active span:nth-child(2) { animation: wave 0.8s 0.1s infinite; }
.voice-waves.active span:nth-child(3) { animation: wave 0.8s 0.2s infinite; }
.voice-waves.active span:nth-child(4) { animation: wave 0.8s 0.3s infinite; }
.voice-waves.active span:nth-child(5) { animation: wave 0.8s 0.4s infinite; }
@keyframes wave {
  0%, 100% { height: 8px; }
  50% { height: 36px; }
}
.voice-transcript {
  background: rgba(108,99,255,0.1);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  min-height: 60px;
  margin-bottom: 16px;
  text-align: center;
}
.transcript-hint { color: var(--text-muted); font-size: 14px; }
.transcript-text { color: white; font-size: 16px; font-weight: 500; }
.voice-examples {
  margin-bottom: 20px;
  font-size: 12px;
}
.examples-title { color: var(--text-muted); margin-bottom: 6px; font-weight: 600; }
.voice-examples ul { list-style: none; padding: 0; }
.voice-examples li {
  color: var(--text-secondary);
  padding: 3px 0;
  padding-left: 14px;
  position: relative;
}
.voice-examples li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--primary);
}
.voice-actions {
  display: flex;
  gap: 12px;
}
.voice-retry-btn {
  flex: 1;
  padding: 14px;
  border-radius: var(--radius-sm);
  background: rgba(108,99,255,0.15);
  border: 1px solid var(--border);
  color: var(--primary-light);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.voice-retry-btn:hover { background: var(--primary); color: white; }
.voice-cancel-btn {
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
}
.voice-cancel-btn:hover { border-color: var(--danger); color: var(--danger); }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10,10,20,0.85);
  backdrop-filter: blur(8px);
  z-index: 300;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.hidden { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}
.modal::-webkit-scrollbar { width: 3px; }
.modal::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 2px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px 0;
  margin-bottom: 20px;
  position: sticky;
  top: 0;
  background: var(--bg-card);
  z-index: 1;
  padding-top: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 18px; font-weight: 700; color: white; }
.close-btn {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: none;
  color: var(--text-muted);
  font-size: 15px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.close-btn:hover { background: rgba(244,67,54,0.2); color: var(--danger); }
.modal-body { padding: 0 20px 20px; }
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 28px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  position: sticky;
  bottom: 0;
}
.footer-right { display: flex; gap: 10px; }

/* Form */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.form-group label i { color: var(--primary-light); width: 14px; }
.form-row { display: flex; gap: 12px; }
.form-row .flex-1 { flex: 1; }
input[type="text"],
input[type="date"],
input[type="time"],
select,
textarea {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text-primary);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  font-family: inherit;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  background: rgba(108,99,255,0.08);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.15);
}
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(0.7);
  cursor: pointer;
}
select option { background: var(--bg-card); color: var(--text-primary); }
textarea { resize: none; line-height: 1.5; }

/* Category */
.category-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.category-btn {
  padding: 7px 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}
.category-btn.active,
.category-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}
.category-btn[data-category="work"].active { background: #4caf50; border-color: #4caf50; }
.category-btn[data-category="personal"].active { background: #ff9800; border-color: #ff9800; }
.category-btn[data-category="health"].active { background: #2196f3; border-color: #2196f3; }
.category-btn[data-category="family"].active { background: #9c27b0; border-color: #9c27b0; }
.category-btn[data-category="social"].active { background: #ff6584; border-color: #ff6584; }

/* Sync Group */
.sync-group {
  background: rgba(66,133,244,0.08);
  border: 1px solid rgba(66,133,244,0.2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.sync-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  margin-bottom: 0 !important;
  font-size: 14px !important;
  color: var(--text-primary) !important;
}
.sync-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: #4285f4;
  cursor: pointer;
}
.sync-label .fab { color: #4285f4; font-size: 16px; }

/* Buttons */
.btn-save {
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.btn-save:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(108,99,255,0.4); }
.btn-cancel {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.btn-cancel:hover { border-color: var(--primary); color: var(--primary-light); }
.btn-delete {
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: rgba(244,67,54,0.1);
  border: 1px solid rgba(244,67,54,0.3);
  color: var(--danger);
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.btn-delete:hover { background: var(--danger); color: white; }
.hidden { display: none !important; }

/* Parsed Result */
.parsed-result {
  background: rgba(108,99,255,0.08);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px;
}
.parsed-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.parsed-row:last-child { border-bottom: none; }
.parsed-icon { color: var(--primary-light); width: 20px; text-align: center; font-size: 15px; }
.parsed-label { font-size: 12px; color: var(--text-muted); width: 60px; flex-shrink: 0; }
.parsed-value { font-size: 15px; font-weight: 600; color: white; }

/* Toast */
.toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(30,30,50,0.95);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 12px 24px;
  font-size: 14px;
  color: white;
  z-index: 1000;
  backdrop-filter: blur(10px);
  animation: toastIn 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.toast.success { border-color: var(--success); }
.toast.error { border-color: var(--danger); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(-50%) translateY(20px); }
  to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* Google Auth */
.google-auth-info { text-align: center; padding: 10px 0 20px; }
.google-auth-icon {
  font-size: 52px;
  color: #4285f4;
  margin-bottom: 16px;
}
.google-auth-info h4 { font-size: 18px; font-weight: 700; color: white; margin-bottom: 10px; }
.google-auth-info p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.auth-benefits {
  list-style: none;
  text-align: left;
  padding: 0;
  margin-bottom: 20px;
  background: rgba(66,133,244,0.08);
  border-radius: var(--radius-sm);
  padding: 16px;
}
.auth-benefits li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-benefits li i { color: var(--success); }
.client-id-section { padding-top: 16px; border-top: 1px solid var(--border); }
.client-id-section label { display: block; font-size: 13px; font-weight: 600; color: var(--text-secondary); margin-bottom: 8px; }
.helper-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.helper-text a { color: #4285f4; text-decoration: none; }
.helper-text a:hover { text-decoration: underline; }

/* Utility */
.hidden { display: none !important; }

/* Desktop */
@media (min-width: 480px) {
  .voice-container { right: calc(50% - 240px); transform: none; }
  .modal, .voice-modal {
    border-radius: var(--radius);
    margin: 20px;
    max-height: 85vh;
  }
  .modal-overlay, .voice-overlay {
    align-items: center;
  }
}

/* Safe area (notch phones) */
@supports (padding-top: env(safe-area-inset-top)) {
  .app-header { padding-top: calc(14px + env(safe-area-inset-top)); }
  .modal-footer { padding-bottom: calc(28px + env(safe-area-inset-bottom)); }
  .voice-container { bottom: calc(30px + env(safe-area-inset-bottom)); }
}
