* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 2rem;
}

.container {
  max-width: 640px;
  margin: 0 auto;
}

h1 {
  font-size: 2rem;
  font-weight: 700;
}

.subtitle {
  color: #6e6e73;
  margin-bottom: 2rem;
}

h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #d2d2d7;
}

section {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.account-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f0f0f0;
}

.account-row:last-child { border-bottom: none; }

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.connected { background: #34c759; }
.status-dot.disconnected { background: #d2d2d7; }

.account-email {
  flex: 1;
  font-size: 0.95rem;
}

.btn-small {
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-block;
}

.btn-connect {
  background: #007aff;
  color: #fff;
}

.btn-connect:hover { background: #0066d6; }

.btn-disconnect {
  background: #f0f0f0;
  color: #6e6e73;
}

.btn-disconnect:hover { background: #e5e5e5; }

.sync-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

#sync-btn {
  padding: 0.5rem 1.5rem;
  border-radius: 8px;
  background: #007aff;
  color: #fff;
  border: none;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
}

#sync-btn:hover { background: #0066d6; }
#sync-btn:disabled { background: #a0c8ff; cursor: not-allowed; }

#sync-status {
  color: #6e6e73;
  font-size: 0.9rem;
}

#sync-info p {
  font-size: 0.9rem;
  color: #6e6e73;
  margin-bottom: 0.35rem;
}

.errors {
  background: #fff3f3;
  border-radius: 6px;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
}

.errors p {
  color: #ff3b30;
  font-size: 0.85rem;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1d1d1f;
  color: #fff;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: opacity 0.3s;
}

.toast.hidden { opacity: 0; pointer-events: none; }
