:root {
  color-scheme: dark;
  --bg: #0b0d12;
  --surface: #1a1d24;
  --surface-2: #23262f;
  --surface-3: #2c303a;
  --border: #2c303a;
  --text: #f2f3f5;
  --text-muted: #9a9ea8;
  --accent: #3b82f6;
  --accent-strong: #5b9bff;
  --danger: #ef4444;
  --success: #22c55e;
  /* Norrskensgrafens "ingen aktivitet"-farg - se panels/.aurora-* i
     Weather.js/style.css */
  --aurora-none: #3a3f4b;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --nav-height: 76px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent-strong);
}

button {
  font-family: inherit;
}

/* Kort laddningsskarm som visas TYST under den engangs-korrigerande
   sidstudsen (se Root.js) forsta gangen appen oppnas, sa anvandaren aldrig
   ser fel botten-meny-layout eller nagon overgang - bara en vanlig
   laddningsstund. */
.app-loading {
  min-height: 100vh;
  min-height: var(--vh100, 100dvh);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
}

/* Centered auth pages (login) */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(1rem + var(--safe-top, env(safe-area-inset-top))) 1rem
    calc(1rem + var(--safe-bottom, env(safe-area-inset-bottom)));
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.auth-card h1 {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
  text-align: center;
}

.language-select {
  display: block;
  margin: 0 0 1rem auto;
  width: auto;
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

input,
select,
textarea {
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1rem;
}

.markdown-editor {
  width: 100%;
  min-height: 320px;
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
}

/* Renderat admin-skrivet Markdown-innehall (Om hytta) - se AboutCabin.js. */
.markdown-content {
  line-height: 1.55;
}

.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
  margin: 1.5rem 0 0.5rem;
  line-height: 1.3;
}

.markdown-content h1:first-child,
.markdown-content h2:first-child,
.markdown-content h3:first-child {
  margin-top: 0;
}

.markdown-content p {
  margin: 0 0 1rem;
}

.markdown-content ul,
.markdown-content ol {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
}

.markdown-content li {
  margin-bottom: 0.35rem;
}

.markdown-content a {
  color: var(--accent-strong);
}

.markdown-content strong {
  color: var(--text);
}

.markdown-content code {
  background: var(--surface-2);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.9em;
}

.phone-field {
  display: flex;
  gap: 0.5rem;
}

.phone-field select {
  flex: none;
  width: 6.5rem;
}

.phone-field input {
  flex: 1;
  min-width: 0;
}

input:focus,
select:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.primary {
  display: inline-block;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary:active {
  background: var(--accent-strong);
}

button.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button.secondary {
  width: 100%;
  padding: 0.8rem 1rem;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

button.secondary:active {
  background: var(--border);
}

button.secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.error {
  color: var(--danger);
  font-size: 0.875rem;
  margin: 0;
}

/* App shell (dashboard / profile / admin) */
.app-page {
  min-height: 100vh;
  /* env(safe-area-inset-top) haller innehallet under kameran/skaran nar
     appen kors i helskarmslage (fran "Lagg till pa hemskarmen") - status-
     faltet dar ar genomskinligt, sa utan detta ritas sidan bakom den. */
  padding: calc(1.5rem + var(--safe-top, env(safe-area-inset-top))) 1.25rem calc(var(--nav-height) + 1.5rem);
  max-width: 480px;
  margin: 0 auto;
}

.greeting {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.5rem 0 1.5rem;
}

.section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin: 1.5rem 0 0.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

#users-row {
  margin-top: 1rem;
}

.banner {
  background: linear-gradient(135deg, #1e3a8a33, #1a1d24);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Feature tile (dashboard action, e.g. "Öppna grinden") */
.tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.tile:active {
  background: var(--surface-2);
}

.tile:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.tile-icon {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-icon svg {
  width: 24px;
  height: 24px;
  stroke: white;
}

.tile-text {
  flex: 1;
  min-width: 0;
}

.tile-subtitle {
  display: block;
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

.app-page-top {
  padding-top: calc(3rem + var(--safe-top, env(safe-area-inset-top)));
}

.gate-button {
  width: 100%;
}

#gate-message {
  color: white;
  background: rgba(11, 13, 18, 0.75);
  border-radius: var(--radius-md);
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  text-align: center;
  margin: 0;
}

/* Bom-kartan: fyller hela skarmen kant-till-kant, under (den genomskinliga)
   statusfalten och ovanpa botten-menyn - se docs/bom-karta-plan.md.
   position: relative + min-height (inte fixed/inset:0) - samma monster som
   .app-page - annars hamnar den fasta botten-menyn (som ligger utanfor den
   har sidans DOM, som syskon) fel pa vissa mobila webblasare eftersom sidan
   da blir den enda utan normalt dokumentflode/skrollbarhet. */
.gate-map-page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  /* --vh100 (satt av viewport.js fran window.innerHeight/visualViewport)
     vinner over 100dvh nar den finns - mer tillforlitlig pa mobil precis
     efter t.ex. geolocation-behorighetsdialogen. */
  min-height: var(--vh100, 100dvh);
  padding: 0;
  max-width: none;
}

.gate-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--surface);
}

/* Hall Leaflets egna zoom-/attributionskontroller fria fran kameraskaran -
   paverkar bara kontrollerna, inte sjalva kartytan. */
.gate-map .leaflet-top {
  top: calc(0.75rem + var(--safe-top, env(safe-area-inset-top)));
}

/* Manuell aterstall-zoom-knapp - kartan ramar bara om automatiskt en gang
   (nar positionen forst blir kand), sa detta ar det enda sattet att komma
   tillbaka efter att man sjalv panorerat/zoomat. */
.gate-recenter-btn {
  position: absolute;
  top: calc(0.75rem + var(--safe-top, env(safe-area-inset-top)));
  right: 0.75rem;
  z-index: 500;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.gate-overlay {
  position: absolute;
  left: 0;
  right: 0;
  /* --nav-height ar en fast bas-hojd - botten-menyns riktiga hojd vaxer med
     --safe-bottom (hem-indikatorn) via dess egen padding, sa den maste
     raknas med har ocksa, annars hamnar knappen under menyn. */
  bottom: calc(var(--nav-height) + var(--safe-bottom, env(safe-area-inset-bottom)) + 1rem);
  padding: 0 1.25rem;
  max-width: 480px;
  margin: 0 auto;
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.gate-marker-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  border: 2px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.gate-marker-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.gate-you-marker {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid white;
  animation: gate-pulse 2s infinite;
}

@keyframes gate-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(59, 130, 246, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
  }
}

.empty-state {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 1.5rem;
  text-align: center;
}

/* List rows (profile, admin) */
.list-item[hidden] {
  display: none;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.list-item-icon svg {
  stroke: currentColor;
  color: var(--text-muted);
}

.list-item-body {
  flex: 1;
  min-width: 0;
}

.list-item-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.list-item-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

.gate-log-answered {
  color: var(--success);
}

.gate-log-not-answered {
  color: var(--text-muted);
}

/* Väder-fliken */
.weather-now-card {
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.weather-now-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.weather-now-temp {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.weather-now-label {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

.weather-icon svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  display: block;
}

.weather-icon-lg svg {
  width: 46px;
  height: 46px;
}

.weather-hourly-item .weather-icon,
.card .list-item .weather-icon {
  flex: none;
}

.weather-condition-sun,
.weather-condition-clear {
  color: #f5b400;
}

.weather-condition-rain,
.weather-condition-fog,
.weather-condition-overcast,
.weather-condition-cloudy {
  color: var(--accent-strong);
}

.weather-condition-snow {
  color: #a5f3fc;
}

.weather-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem 1rem;
}

.weather-stat {
  display: flex;
  flex-direction: column;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.weather-stat strong {
  font-size: 1rem;
  color: var(--text);
  font-weight: 600;
}

.trend-down {
  color: var(--danger);
}

.trend-up {
  color: var(--success);
}

.radar-sparkline {
  grid-column: span 1;
}

.radar-sparkline svg {
  display: block;
  width: 100%;
  height: 30px;
  margin-top: 0.15rem;
}

.radar-axis {
  display: flex;
  justify-content: space-between;
}

.radar-axis span {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.weather-updated {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.weather-hourly-row {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.weather-hourly-item {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 52px;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.weather-hourly-item strong {
  color: var(--text);
  font-size: 0.95rem;
}

.weather-daily-temps {
  font-variant-numeric: tabular-nums;
  font-size: 0.9rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.weather-aurora-card {
  padding: 1.25rem;
  margin-top: 1rem;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title-row .section-title {
  margin: 0;
}

.info-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-muted);
  display: flex;
  cursor: pointer;
}

.info-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.info-button:disabled {
  opacity: 0.6;
  cursor: default;
}

.info-button.spinning svg {
  animation: icon-spin 1s linear infinite;
}

@keyframes icon-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.weather-header-actions {
  margin-left: auto;
  display: flex;
  gap: 0.75rem;
}

.pull-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--text-muted);
  transition: height 0.15s ease-out;
}

.pull-indicator svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  flex: none;
}

/* Nordljuskortets tva grafer - molntacke (hoga/mellanhoga/laga moln + dimma,
   se buildAuroraCharts() i Weather.js) och norrskensaktivitet - ritas som
   mjuka SVG-kurvor (dangerouslySetInnerHTML) i tva fristaende paneler utan
   rubriker, direkt ihopsittande i en gemensam box. Ingen delad linje/yta
   langre - vardera grafen hanterar bara sin egen data. */
.panels {
  display: flex;
  flex-direction: column;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.6rem 0.7rem 0.5rem;
  margin: 0.75rem 0;
}

.panel {
  padding: 0;
}

.chart-wrap {
  position: relative;
  padding-right: 2.1rem;
}

.chart-wrap svg {
  display: block;
  width: 100%;
  height: 62px;
}

.axis-label {
  position: absolute;
  right: 0;
  font-size: 0.68rem;
  color: var(--text-muted);
  background: var(--surface-2);
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.4;
}

.axis-high {
  top: 0;
}

.axis-low {
  bottom: 0;
}

.panel-aurora .aurora-axis {
  margin-top: 0.2rem;
}

.aurora-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 0.75rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.aurora-legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.aurora-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex: none;
  background-color: var(--surface-3);
}

.aurora-swatch-high {
  background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.32) 0 2px, transparent 2px 6px);
}

.aurora-swatch-medium {
  background-image: repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.45) 0 3px, transparent 3px 7px);
}

.aurora-swatch-low {
  background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.6) 0 3px, transparent 3px 6px);
}

.aurora-swatch-fog {
  background-image:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 4px),
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.45) 0 2px, transparent 2px 4px);
}

.aurora-swatch-activity {
  background-color: var(--accent);
}

.aurora-axis {
  display: flex;
  padding-right: 2.1rem;
}

.aurora-axis span {
  flex: 1;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
}

.aurora-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.5rem 0;
}

.aurora-badge {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--surface-3);
  color: var(--text-muted);
}

.aurora-badge-possible {
  background: color-mix(in srgb, var(--accent) 25%, var(--surface-3));
  color: var(--accent-strong);
}

.aurora-badge-likely {
  background: color-mix(in srgb, var(--success) 25%, var(--surface-3));
  color: var(--success);
}

.weather-aurora-explain {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
}

button.list-action {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  flex: none;
}

.avatar-sm {
  width: 40px;
  height: 40px;
  font-size: 1.05rem;
}

.list-item-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.list-item-link:active {
  background: var(--surface-2);
}

.chevron {
  flex: none;
  color: var(--text-muted);
  stroke: currentColor;
}

/* Bottom nav */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  /* var(--safe-bottom, ...) istallet for rakt env() - se viewport.js:
     env(safe-area-inset-bottom) har visat sig rapportera ett for stort
     varde pa forsta layout-passet i installerade Android-PWA:er, vilket
     tryckte upp menyn for langt fran skarmens nederkant. */
  padding: 0.75rem 1rem calc(0.75rem + var(--safe-bottom, env(safe-area-inset-bottom)));
  background: linear-gradient(to top, var(--bg) 60%, transparent);
  /* Maste vara over Leaflet-kartans interna panelstack (Bom-fliken) - se
     docs/bom-karta-plan.md. Under .modal-overlay. */
  z-index: 900;
}

.bottom-nav-inner {
  display: flex;
  gap: 0.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.4rem;
  width: 100%;
  max-width: 400px;
}

.nav-item[hidden] {
  display: none;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
}

.nav-item svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.nav-item.active {
  color: white;
  background: var(--accent);
}

/* Sub-page header (back button + title, no bottom nav) */
.subpage-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.subpage-header h1 {
  margin: 0;
  font-size: 1.3rem;
  flex: 1;
}

.subpage-header .add-button {
  margin-left: auto;
}

.back-button {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
}

.back-button svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.password-field {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  right: 0.4rem;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
}

.password-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.password-toggle .eye-icon {
  display: none;
}

#account-success {
  color: var(--success);
  font-size: 0.9rem;
  margin: 0;
}

/* Confirm modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  /* Over allt annat, inklusive Bom-flikens Leaflet-karta och .bottom-nav
     (z-index 900) - se docs/bom-karta-plan.md. */
  z-index: 1000;
}

.modal-overlay[hidden] {
  display: none;
}


.modal {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.modal p {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.install-step-row {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.install-step-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--surface-3);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.install-step-icon svg {
  width: 20px;
  height: 20px;
}

.install-step-text {
  font-size: 0.9rem;
  line-height: 1.3;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
}

.modal-btn {
  flex: 1;
  padding: 0.7rem;
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

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

.modal-btn.secondary {
  background: var(--surface-3);
  color: var(--text);
}

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

.danger-link {
  background: none;
  border: none;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
}

/* Admin: table -> card list of users */
.user-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
}

.user-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.user-card-header .phone {
  font-weight: 600;
}

.user-card-header .name {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.checkbox-row input {
  width: auto;
}
