* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --bg: #0f0f0f;
  --bg2: #1a1a1a;
  --bg3: #252525;
  --accent: #00d4aa;
  --accent2: #ff6b35;
  --text: #f0f0f0;
  --text2: #999;
  --danger: #e74c3c;
  --radius: 12px;
}

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  overflow-x: hidden;
}

/* ── Views ─────────────────────────────────────── */
.view { display: none; flex-direction: column; min-height: 100vh; }
.view.active { display: flex; }

/* On desktop, keep the whole app as a phone-width centered column
   instead of stretching content across the whole window. */
@media (min-width: 700px) {
  .view {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }
}

/* ── Header ─────────────────────────────────────── */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--bg3);
  position: sticky;
  top: 0;
  background: var(--bg);
  z-index: 10;
}

header h1 {
  font-size: 20px;
  font-weight: 700;
}

.btn-back {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px 4px 0;
}

.header-title-group {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.header-title-group h1 {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-title-group .btn-back { font-size: 20px; }

.btn-rename {
  flex: 0 0 auto;
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  padding: 4px;
  line-height: 0;
}
.btn-rename svg { width: 18px; height: 18px; }
.btn-rename:active { color: var(--accent); }
.btn-delete-plan,
.btn-delete-plan-card {
  color: var(--danger);
}
.btn-delete-plan:active,
.btn-delete-plan-card:active {
  color: #ff6b6b;
}

.header-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  color: var(--text2);
  cursor: pointer;
  font-size: 11px;
}
.btn-icon.connected { color: var(--accent); }
.btn-icon svg { width: 22px; height: 22px; }

/* HR icon stays red when disconnected, green when connected */
#btn-connect-hr { color: #c0392b; }
#btn-connect-hr.connected { color: #e74c3c; animation: heartbeat 1s ease-in-out infinite; }

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  14% { transform: scale(1.15); }
  28% { transform: scale(1); }
  42% { transform: scale(1.1); }
}

/* ── Connect status ──────────────────────────────── */
.connect-status {
  margin: 8px 16px;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  background: var(--bg2);
  color: var(--text2);
}
.connect-status.ok { color: var(--accent); }
.connect-status.err { color: var(--danger); }
.connect-status.hidden { display: none; }

/* ── Plans List ──────────────────────────────────── */
.plan-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px 32px;
}

.plan-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--bg2);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 18px 16px;
  margin-bottom: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s;
}
.plan-card:active { background: var(--bg3); }
.plan-card-body { flex: 1; min-width: 0; cursor: pointer; }
.btn-rename-card { flex: 0 0 auto; }
.plan-card-name {
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.plan-card-meta { font-size: 13px; color: var(--text2); margin-top: 3px; }
.plan-card-arrow { font-size: 24px; color: var(--text2); line-height: 1; flex: 0 0 auto; cursor: pointer; }

/* ── Modal ───────────────────────────────────────── */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}
.modal-panel {
  position: relative;
  width: 100%;
  max-width: 360px;
  background: var(--bg2);
  border: 1px solid var(--bg3);
  border-radius: var(--radius);
  padding: 20px;
}
.modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
}
.modal-input {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--bg3);
  border-radius: 8px;
  padding: 12px;
}
.modal-input:focus {
  outline: none;
  border-color: var(--accent);
}
.modal-error {
  margin-top: 8px;
  font-size: 13px;
  color: var(--danger);
}
.modal-error.hidden { display: none; }
.modal-copy {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text2);
}
.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}
.modal-actions .btn-primary,
.modal-actions .btn-secondary,
.modal-actions .btn-danger {
  flex: 1;
  padding: 12px;
  font-size: 15px;
}

/* ── Workout List ────────────────────────────────── */
#workout-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 16px 32px;
}

.workout-card {
  position: relative;
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 14px;
}
.workout-card:active { background: var(--bg3); }
.workout-card.completed {
  border-color: rgba(0, 212, 170, 0.55);
  background: linear-gradient(90deg, rgba(0, 212, 170, 0.08), var(--bg2) 42%);
}
.workout-card.rest { opacity: 0.55; cursor: default; }
.workout-card.rest.completed { opacity: 0.8; }

.workout-card.up-next {
  border-color: rgba(255, 107, 53, 0.6);
  background: linear-gradient(90deg, rgba(255, 107, 53, 0.07), var(--bg2) 42%);
  margin-top: 18px;
}
.up-next-chip {
  position: absolute;
  top: -9px;
  left: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent2);
  padding: 2px 8px;
  border-radius: 20px;
  line-height: 1.4;
}
.workout-card.pulse {
  animation: card-pulse 1.6s ease-out 1;
}
@keyframes card-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 107, 53, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(255, 107, 53, 0); }
}

/* Floating "jump to current" pill */
.jump-current {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 72px);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border: none;
  border-radius: 24px;
  background: var(--accent);
  color: #05221c;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2), opacity 0.2s;
  z-index: 20;
}
.jump-current.visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}
.jump-current svg { width: 15px; height: 15px; transition: transform 0.2s; }
.jump-current.above svg { transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce) {
  .workout-card.pulse { animation: none; }
  .jump-current { transition: opacity 0.2s; }
}

.card-date-block {
  text-align: center;
  min-width: 36px;
}
.card-date-block.completed { color: var(--accent); }
.card-day-num { font-size: 22px; font-weight: 700; line-height: 1; }
.card-day-name { font-size: 11px; color: var(--text2); text-transform: uppercase; }

.card-body { flex: 1; min-width: 0; }
.card-name { font-size: 15px; font-weight: 600; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-meta { font-size: 13px; color: var(--text2); }

.card-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 20px;
  white-space: nowrap;
}
.btn-complete-toggle {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  border: 1.5px solid var(--text2);
  background: transparent;
  color: var(--bg);
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}
.btn-complete-toggle.completed {
  border-color: var(--accent);
  background: var(--accent);
}
.btn-inspect {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 50%;
  border: 1.5px solid var(--bg3);
  background: var(--bg3);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-inspect svg { width: 16px; height: 16px; }
.btn-inspect:active { opacity: 0.7; }
.badge-speed    { background: #1a2a3a; color: #5bc0f8; }
.badge-tempo    { background: #2a1a1a; color: #f87c56; }
.badge-easy     { background: #1a2a1a; color: #6be07a; }
.badge-recovery { background: #1a1a2a; color: #a78bfa; }
.badge-hills    { background: #2a2a1a; color: #e0c06b; }
.badge-long     { background: #1a2a2a; color: #5be0d4; }
.badge-race     { background: #2a1a2a; color: #f85bc0; }
.badge-rest     { background: var(--bg3); color: var(--text2); }

/* ── Detail View ─────────────────────────────────── */
.detail-meta {
  padding: 12px 16px;
  font-size: 14px;
  color: var(--text2);
  border-bottom: 1px solid var(--bg3);
}

.detail-chart-wrap {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--bg3);
  background:
    radial-gradient(circle at top right, rgba(0, 212, 170, 0.12), transparent 34%),
    radial-gradient(circle at top left, rgba(255, 107, 53, 0.08), transparent 28%),
    var(--bg);
}

.detail-chart-wrap.hidden {
  display: none;
}

.detail-chart-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.detail-chart-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
}

.detail-chart-caption {
  font-size: 11px;
  color: var(--text2);
}

.detail-chart-panel {
  padding: 10px 10px 12px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.detail-chart-svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 200px;
}

.detail-chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  font-size: 11px;
  color: var(--text2);
}

.detail-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.05);
}

.detail-chart-legend i {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.detail-chart-note {
  margin-left: auto;
  background: transparent !important;
  border: none !important;
  padding-right: 0 !important;
  color: var(--text2);
}

@media (max-width: 480px) {
  .detail-chart-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .detail-chart-note {
    margin-left: 0;
    padding-left: 0 !important;
  }
}

.segment-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
}

.seg-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 6px;
  background: var(--bg2);
}
.seg-row.rep-group {
  background: var(--bg3);
  padding: 8px 14px;
  font-size: 13px;
  color: var(--text2);
}
.seg-index {
  font-size: 12px;
  color: var(--text2);
  min-width: 20px;
  text-align: right;
}
.seg-info { flex: 1; }
.seg-speed { font-size: 18px; font-weight: 700; }
.seg-detail { font-size: 13px; color: var(--text2); margin-top: 1px; }
.seg-dur { font-size: 14px; font-weight: 600; color: var(--accent); min-width: 44px; text-align: right; }

.detail-actions {
  padding: 16px;
  border-top: 1px solid var(--bg3);
}

/* ── Buttons ─────────────────────────────────────── */
.btn-primary, .btn-secondary, .btn-danger {
  width: 100%;
  padding: 16px;
  border-radius: var(--radius);
  border: none;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn-primary { background: var(--accent); color: #000; }
.btn-secondary { background: var(--bg3); color: var(--text); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-primary:active, .btn-secondary:active, .btn-danger:active { opacity: 0.75; }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-secondary:disabled, .btn-danger:disabled, .btn-adjust:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Active Workout View ─────────────────────────── */
#view-active {
  background: var(--bg);
}

.active-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
}
.active-title { font-size: 15px; font-weight: 600; color: var(--text2); }
.btn-stop {
  background: var(--bg3);
  border: none;
  color: var(--text2);
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.active-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 24px 16px;
  gap: 12px;
}

.active-metric-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: flex-end;
}
.active-metric { text-align: center; }
.metric-value {
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  color: var(--accent);
  letter-spacing: -1px;
}
.metric-label { font-size: 13px; color: var(--text2); margin-top: 2px; }

/* Heart rate metric — slightly smaller, red */
#hr-metric .metric-value { font-size: 40px; color: #e74c3c; }
#hr-metric .metric-label { color: #e74c3c; opacity: 0.7; }

.active-adjust-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.adjust-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 12px;
}

.adjust-title {
  font-size: 12px;
  color: var(--text2);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.adjust-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.btn-adjust {
  border: none;
  border-radius: 10px;
  background: var(--bg3);
  color: var(--text);
  padding: 12px 10px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.btn-adjust:active { opacity: 0.75; }

/* Timer ring */
.segment-timer {
  position: relative;
  width: 140px;
  height: 140px;
}
.timer-ring {
  width: 140px;
  height: 140px;
  transform: rotate(-90deg);
}
.ring-bg { stroke: var(--bg3); stroke-width: 8; fill: none; }
.ring-fg {
  stroke: var(--accent);
  stroke-width: 8;
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 327;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear;
}
.timer-inner {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.seg-time { font-size: 28px; font-weight: 800; }
.seg-time-label { font-size: 11px; color: var(--text2); }

.active-seg-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text2);
  text-align: center;
}

.active-next {
  font-size: 13px;
  color: var(--text2);
  text-align: center;
  min-height: 18px;
}

.progress-bar-wrap { width: 100%; }
.active-progress-graph {
  width: 100%;
  aspect-ratio: 380 / 118;
  min-height: 0;
  max-height: 132px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg2);
  border: 1px solid rgba(255,255,255,0.06);
}
.active-progress-svg {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}
.progress-label {
  font-size: 12px;
  color: var(--text2);
  text-align: right;
  margin-top: 4px;
}

.active-controls {
  display: flex;
  gap: 10px;
  padding: 12px 16px 28px;
}
.active-controls .btn-secondary,
.active-controls .btn-danger {
  flex: 1;
  padding: 14px;
  font-size: 15px;
}

/* ── Summary View ────────────────────────────────── */
.summary-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 24px 24px;
  gap: 6px;
}
.summary-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #000;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 8px;
}
.summary-title { font-size: 22px; font-weight: 700; text-align: center; }
.summary-date  { font-size: 14px; color: var(--text2); }

.summary-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 0 16px;
  flex: 1;
}
.stat-card {
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
}
.stat-value { font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: -0.5px; }
.stat-label { font-size: 12px; color: var(--text2); margin-top: 2px; }
.stat-card.hr .stat-value { color: #e74c3c; }

.summary-actions {
  padding: 20px 16px 36px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.save-status {
  font-size: 13px;
  text-align: center;
  padding: 6px 0;
  color: var(--text2);
}
.save-status.ok  { color: var(--accent); }
.save-status.err { color: var(--danger); }
.save-status.hidden { display: none; }

/* ── Recorded Workout (Strava-style) ─────────────── */
.workout-content {
  flex: 1;
  overflow-y: auto;
  padding: 0 16px 32px;
}

/* On desktop, keep the stats and plots as a phone-width centered column
   instead of stretching the SVGs across the whole window. */
@media (min-width: 700px) {
  .workout-content {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
  }
}

.workout-meta {
  padding: 12px 0;
  font-size: 13px;
  color: var(--text2);
  border-bottom: 1px solid var(--bg3);
}

.workout-hero {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  padding: 18px 0 14px;
  border-bottom: 1px solid var(--bg3);
}
.workout-hero-stat { text-align: center; }
.workout-hero-value {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.workout-hero-label { font-size: 11px; color: var(--text2); margin-top: 3px; }

.workout-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 0;
}
.workout-stat-grid .stat-card { padding: 12px; }
.workout-stat-grid .stat-value { font-size: 20px; }

.workout-chart {
  margin-bottom: 14px;
}
.workout-chart-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin-bottom: 6px;
}
.workout-chart-title span { font-weight: 400; text-transform: none; letter-spacing: 0; }
.workout-chart-svg { display: block; width: 100%; height: auto; }

.workout-section-title {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text2);
  margin: 18px 0 8px;
}

.split-head, .split-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  font-size: 13px;
}
.split-head {
  color: var(--text2);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--bg3);
}
.split-row { border-bottom: 1px solid rgba(255,255,255,0.04); }
.split-km { min-width: 26px; color: var(--text2); }
.split-pace { min-width: 44px; font-weight: 600; }
.split-bar-wrap { flex: 1; }
.split-bar {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(0,212,170,0.85), rgba(0,212,170,0.45));
}
.split-hr { min-width: 34px; text-align: right; color: #e74c3c; }

.workout-danger-zone {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--bg3);
}

/* ---------- Login / Pending ---------- */

.btn-icon.hidden { display: none; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 32px 24px;
  text-align: center;
}

.login-logo { font-size: 56px; }

.login-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.login-sub {
  font-size: 15px;
  color: var(--text2);
  max-width: 300px;
  line-height: 1.5;
}

.google-signin {
  min-height: 44px;
  display: flex;
  justify-content: center;
}

/* Fallback sign-in button, styled to match the GIS filled_black pill */
.btn-google {
  width: 280px;
  padding: 12px 16px;
  border: 1px solid #747775;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  background: #131314;
  color: #e3e3e3;
}
.btn-google:active { background: #2a2a2c; }

.pair-signin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.pair-link {
  display: block;
  text-decoration: none;
}

.pair-code {
  min-width: 156px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--text);
  background: var(--panel);
}

.pair-url {
  max-width: 300px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--text2);
  overflow-wrap: anywhere;
  user-select: all;
}

.login-alt-link {
  background: none;
  border: none;
  padding: 4px;
  font-size: 13px;
  color: var(--text2);
  text-decoration: underline;
}

.login-status {
  font-size: 13px;
  color: var(--text2);
  max-width: 300px;
  line-height: 1.5;
}
.login-status.err { color: var(--danger); }
.login-status.hidden { display: none; }

.login-btn {
  width: 240px;
  padding: 14px;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
}

.empty-note {
  padding: 24px 16px;
  color: var(--text2);
  font-size: 14px;
  text-align: center;
}
.empty-note.err { color: var(--danger); }

/* ---------- Admin ---------- */

.admin-user-list { padding: 12px 16px; }

.admin-user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg2);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 10px;
}

.admin-user-info { flex: 1; min-width: 0; }

.admin-user-email {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-user-meta {
  font-size: 12px;
  color: var(--text2);
  margin-top: 2px;
}

.admin-user-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.btn-admin-action {
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  background: var(--bg3);
  color: var(--text);
}
.btn-admin-action.approve { background: var(--accent); color: #000; }
.btn-admin-action.remove { background: transparent; color: var(--danger); border: 1px solid var(--danger); }
