/* === Bas === */
html, body, #map { height: 100%; margin: 0; }

/* Status-ruta */
#status {
  position: absolute; top: 8px; left: 8px;
  background: #fff; padding: 6px 10px; border-radius: 8px;
  font: 12px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: inline-flex; align-items: center; gap: 6px;
  -webkit-user-select: none;
  user-select: none; z-index: 20;
}
#status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #999; }
#status.busy::before { background: #f39c12; animation: pulse 1s infinite ease-in-out; }
#status.ok::before   { background: #2ecc71; }
#status.warn::before { background: #f39c12; }
#status.error::before{ background: #e74c3c; }
@keyframes pulse { 0%,100% { opacity:.4 } 50% { opacity:1 } }

/* Visuell ladd-indikator för checkpoint-tiles (separat från GPS/status) */


@media (max-width: 420px) {
}

#ugc-aim {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 3px solid rgba(255, 87, 34, 0.98);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.98),
    0 6px 18px rgba(0,0,0,.35);
  /* crosshair */
  background:
    linear-gradient(rgba(255,87,34,0.95), rgba(255,87,34,0.95)) center/2px 16px no-repeat,
    linear-gradient(rgba(255,87,34,0.95), rgba(255,87,34,0.95)) center/16px 2px no-repeat;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease-in-out;
  z-index: 15;
}

#ugc-aim::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: rgba(255, 87, 34, 1);
  box-shadow: 0 0 0 2px rgba(255,255,255,0.95);
}
@media (max-width: 520px) {
  #ugc-aim { top: 25%; }
}


#ugc-aim.is-active {
  opacity: 1;
}

.admin-move-label {
  position: absolute;
  left: 50%;
  top: 38%;
  transform: translate(-50%, -130%);
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  pointer-events: none;
  z-index: 16;
  white-space: nowrap;
}

.admin-auto-remove-btn {
  position: absolute;
  top: 136px;
  right: 12px;
  z-index: 25;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: #1f2328;
  font: 600 13px/1 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.admin-auto-remove-btn:hover {
  background: #fff6cf;
}

.admin-auto-remove-btn:disabled {
  opacity: 0.7;
  cursor: wait;
}

.admin-auto-remove-btn.is-active {
  background: #ffd84d;
  border-color: #d6aa00;
  color: #2b2400;
}

@media (max-width: 520px) {
  .admin-auto-remove-btn {
    top: 126px;
    right: 10px;
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }
}

@media (max-width: 520px) {
  .admin-move-label { top: 25%; }
}

.admin-move-panel {
  position: fixed;
  top: 86px;
  right: 16px;
  z-index: 60;
  width: 320px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.admin-move-title {
  font-weight: 700;
  margin-bottom: 6px;
}

.admin-move-help {
  font-size: 12px;
  color: #333;
  margin-bottom: 8px;
}

.admin-move-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}

.sheet-admin-move {
  margin-left: 6px;
  background: #ffe08a;
  border: 1px solid #f0c24b;
  color: #2b2400;
}
.sheet-admin-move:hover {
  background: #ffd76a;
}


/* Legend */
.legend {
  position: absolute; left: 8px; bottom: 8px;
  background: rgba(255,255,255,0.92);
  padding: 8px 10px; border-radius: 8px;
  font: 12px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #111; box-shadow: 0 1px 4px rgba(0,0,0,.08);
  z-index: 10; max-width: 260px;
}
.legend-row { display: flex; align-items: center; gap: 8px; margin: 3px 0; }
.swatch { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.25); }
.legend b { display:block; margin-bottom: 4px; }
.hint { color: #444; margin-top: 6px; font-size: 11px; }

/* Locate-knapp (om du har den) */
.maplibregl-ctrl-locate {
  display: grid; place-items: center;
  width: 32px; height: 32px; margin: 0; padding: 0;
  background: #fff; border: none; cursor: pointer;
}
.maplibregl-ctrl-locate:hover { background: #f3f3f3; }
.maplibregl-ctrl-locate svg { width: 18px; height: 18px; }
.maplibregl-ctrl-locate.active { outline: 2px solid #1e88e5; }
/* Map attribution (OpenStreetMap) */
.maplibregl-ctrl-attrib {
  margin: 0 8px calc(8px + env(safe-area-inset-bottom)) 0;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.92);
  font: 11px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #111;
  white-space: nowrap;
}

.maplibregl-ctrl-attrib a {
  color: inherit;
  text-decoration: none;
}

.maplibregl-ctrl-attrib a:hover {
  text-decoration: underline;
}


/* Bottom-sheet */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.3);
  z-index: 15;
  -webkit-backdrop-filter: blur(0.5px);
  backdrop-filter: blur(0.5px);
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  transform: translateY(110%);
  transition: transform .25s ease;
  box-shadow: 0 -6px 24px rgba(0,0,0,.18);
  z-index: 20;
  max-height: 55vh;
  display: grid;
  grid-template-rows: auto 1fr;
}

.sheet.open {
  transform: translateY(0);
}

.sheet-handle {
  display: grid;
  place-items: center;
  padding-top: 6px;
}

.sheet-grip {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: #ddd;
}

.sheet-close {
  position: absolute;
  right: 8px;
  top: 32px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #222;
  font-size: 22px;
  cursor: pointer;
}

.sheet-body {
  padding: 10px 14px 14px 14px;
  overflow: auto;
}

.sheet-title {
  font: 600 16px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  margin: 0 0 8px 0;
}

.sheet-mode-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.sheet-mode-header .sheet-title {
  margin-bottom: 0;
}

.sheet-close-inline {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: #222;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  margin: -4px -6px 0 0;
}

.sheet.sheet-edit-active .sheet-handle .sheet-close {
  display: none;
}

#ugc-edit-form {
  padding-bottom: 84px;
}

/* === Raden med Poäng / Avstånd / Cooldown === */
.sheet-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.sheet-meta > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;   /* både label och värde vänsterställda */
  gap: 2px;
}

.sheet-meta dt {
  margin: 0;
  font-size: 11px;
  color: #666;
}

/* === Landing page === */
body.landing {
  background: radial-gradient(circle at top left, #f0f7ff 0%, #ffffff 45%, #f7faf7 100%);
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #14202b;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 32px;
  align-items: center;
}

.landing-card {
  background: rgba(255,255,255,0.96);
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 18px 50px rgba(16, 26, 38, 0.08);
}

.landing-eyebrow {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #5a6a7b;
  margin-bottom: 14px;
}

.landing-lead {
  font-size: 18px;
  line-height: 1.5;
  margin: 16px 0 18px;
}

.landing-points {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}

.landing-points li {
  margin-bottom: 8px;
  padding-left: 22px;
  position: relative;
}

.landing-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #1c8adb;
  font-size: 18px;
  line-height: 1;
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.landing-note {
  font-size: 13px;
  color: #5a6a7b;
}

.landing-visual {
  display: flex;
  justify-content: center;
}

.landing-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.landing-stack img {
  width: 100%;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(16, 26, 38, 0.18);
  object-fit: cover;
}

.landing-info {
  max-width: 1100px;
  margin: 16px auto 48px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.landing-info-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(16, 26, 38, 0.08);
}

.landing-info-card h2 {
  margin-top: 0;
  margin-bottom: 8px;
  font-size: 18px;
}

.landing-footer {
  padding: 0 24px 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.landing-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  color: #5a6a7b;
  font-size: 14px;
}

.landing-brand img {
  width: 120px;
  height: auto;
}

@media (max-width: 900px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-card {
    order: 1;
  }

  .landing-visual {
    order: 2;
  }

  .landing-stack {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .landing-stack {
    grid-template-columns: 1fr;
  }

  .landing-card {
    padding: 24px;
  }
}

.sheet-meta dd {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

/* Spot details + comments */
.sheet-section-title {
  font-size: 13px;
  font-weight: 600;
  margin: 10px 0 6px;
  color: #222;
}

.sheet-details > summary,
.sheet-comments > summary {
  list-style: none;
  cursor: pointer;
}

.sheet-details > summary::-webkit-details-marker,
.sheet-comments > summary::-webkit-details-marker {
  display: none;
}

.sheet-details > summary::after,
.sheet-comments > summary::after {
  content: "▾";
  float: right;
  color: #666;
  font-size: 12px;
  margin-top: 2px;
}

.sheet-details[open] > summary::after,
.sheet-comments[open] > summary::after {
  content: "▴";
}

.sheet-details {
  margin: 6px 0 10px;
}

.sheet-details-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 10px;
}

.sheet-details-list > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sheet-details-list dt {
  font-size: 11px;
  color: #666;
}

.sheet-details-list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: #111;
  word-break: break-word;
}

.sheet-comments {
  margin: 8px 0 12px;
}

.sheet-comments-status {
  min-height: 16px;
  font-size: 12px;
  color: #555;
  margin-bottom: 6px;
}

.sheet-comments-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sheet-comment {
  padding: 8px 10px;
  border-radius: 10px;
  background: #f6f6f6;
}

.sheet-comment-header {
  font-size: 11px;
  color: #555;
  margin-bottom: 4px;
}

.sheet-comment-text {
  font-size: 13px;
  color: #111;
  white-space: pre-wrap;
  word-break: break-word;
}

.sheet-comment-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sheet-comment-photo {
  font-size: 12px;
  color: #444;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sheet-comment-photo input[type="file"] {
  font-size: 12px;
}

.sheet-comment-photo-preview img {
  max-width: 100%;
  border-radius: 10px;
  display: block;
}

.sheet-comment-photo-preview[hidden] {
  display: none;
}

.sheet-comment-photo-thumb {
  margin-top: 6px;
  width: 100%;
  border-radius: 10px;
  display: block;
}

.sheet-comment-label {
  font-size: 12px;
  color: #444;
}

#sheet-comment-input {
  width: 100%;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  resize: vertical;
  min-height: 70px;
  box-sizing: border-box;
}

.sheet-comment-actions {
  display: flex;
  justify-content: flex-end;
}

/* === Raden med "Fick" === */
.sheet-extra {
  margin-bottom: 10px;
}

.sheet-action-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sheet-action-row .sheet-favorite-row,
.sheet-action-row .sheet-wishlist-row {
  margin: 0;
}

.sheet-extra-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.sheet-extra-row span:first-child {
  font-size: 11px;
  color: #666;
}

.sheet-extra-row span:last-child,
#sheet-awarded {
  font-size: 16px;
  font-weight: 600;
}

.sheet-favorite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 4px 0 10px;
  flex-wrap: wrap; /* F09-1: tillåt radbrytning vid behov */
}

.sheet-favorite-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  background: #eee;
  font: 500 13px system-ui;
  cursor: pointer;
  min-height: 36px;   /* F09-1: större klickyta */
  max-width: 100%;    /* F09-1: tryck inte ut raden horisontellt */
}


.sheet-favorite-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.sheet-favorite-icon {
  font-size: 16px;
  line-height: 1;
}

.sheet-favorite-label {
  white-space: nowrap;
}

.sheet-favorite-count {
  font-size: 12px;
  color: #555;
  white-space: nowrap;
}


/* Knappen längst ner */
.sheet-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

/* Ligger först i raden och trycker ut övriga knappar åt höger */
#sheet-report-remove {
  margin-right: auto;
}


.sheet-description {
  margin: 8px 0 10px;
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-line;
}

.sheet-photo-container {
  margin: 0 0 10px;
}

.sheet-photo {
  display: block;
  max-width: 100%;
  border-radius: 8px;
}


.btn-primary {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  background: #1565C0;
  color: #fff;
  font: 600 14px system-ui;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.15);
}

.btn-primary[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

/* Diagnostics launcher button (nere till höger) */
.diag-launcher {
  position: fixed;
  bottom: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.96);
  box-shadow: 0 1px 4px rgba(0,0,0,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  cursor: pointer;
  z-index: 30; /* över bottom sheet (20) och backdrop (15) */
  display: none !important;
}


.diag-launcher:hover {
  background: #f0f0f0;
}

/* === DIAGNOSTIKPANEL === */
.diag.hidden { display: none; }
.diag {
  position: fixed; left: 10px; top: 10px; width: min(520px, 95vw); height: min(60vh, 80vh);
  background: #fff; color: #111; border: 1px solid #ddd; border-radius: 10px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18); z-index: 1000;
  display: grid; grid-template-rows: auto 1fr auto;
}
.diag-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 8px 10px; border-bottom: 1px solid #eee;
  font: 600 13px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}
.diag-actions button {
  margin-left: 6px; padding: 4px 8px; font: 12px system-ui;
  border: 1px solid #ccc; border-radius: 6px; background: #fafafa; cursor: pointer;
}
.diag-actions button:hover { background: #f0f0f0; }
.diag-build { color: #666; font-weight: 400; margin-left: 6px; }
.diag-log {
  margin: 0; padding: 8px 10px; overflow: auto; background: #fafafa; color: #111;
  font: 12px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.diag-hint {
  padding: 6px 10px; font: 11px system-ui; color: #666; border-top: 1px solid #eee;
}
/* === AUTH / STARTSIDA (S21) === */

.screen-auth {
  position: fixed;
  inset: 0;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.65);
  z-index: 900; /* över karta/sheet, under diag (1000) */
}

.screen-auth[hidden] {
  display: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  padding: 18px 18px 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font: 14px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.auth-header h1 {
  margin: 0 0 4px 0;
  font-size: 22px;
}

.auth-lead {
  margin: 0;
  font-size: 13px;
  color: #444;
}

.auth-tabs {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}

.auth-tab {
  flex: 1;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  padding: 6px 8px;
  font: 600 13px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  cursor: pointer;
}

.auth-tab.is-active {
  background: #1565C0;
  color: #fff;
  border-color: #1565C0;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.auth-form[hidden] {
  display: none !important;
}

.auth-form label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.auth-form input {
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font: 14px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.auth-form input:focus {
  outline: 2px solid #1565C0;
  outline-offset: 1px;
  border-color: #1565C0;
}

.auth-submit {
  margin-top: 6px;
  width: 100%;
}

.auth-link {
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  color: #1565C0;
  font: 12px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  text-align: left;
  cursor: pointer;
}

.auth-link:hover {
  text-decoration: underline;
}

.auth-social-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
  color: #667085;
  font-size: 12px;
}

.auth-social-divider::before,
.auth-social-divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: #d9dce1;
}

.auth-social-divider span {
  flex: 0 0 auto;
}

.auth-oauth-btn {
  appearance: none;
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid #d0d5dd;
  background: #fff;
  color: #101828;
  font: 600 14px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  cursor: pointer;
}

.auth-oauth-btn:hover {
  background: #f8fafc;
}

.auth-oauth-apple {
  background: #111827;
  border-color: #111827;
  color: #fff;
}

.auth-oauth-apple:hover {
  background: #000;
}

.auth-reset-text {
  margin: 0 0 6px 0;
  font-size: 13px;
}

.auth-message {
  min-height: 18px;
  margin: 4px 0 0 0;
  font-size: 12px;
  color: #c0392b; /* fel i rött, vi kan justera via JS sen */
}

.auth-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.auth-about-btn {
  margin-right: auto;  /* trycker ut gäst-knappen till höger */
  font-size: 12px;
}

.btn-ghost {
  appearance: none;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #fdfdfd;
  padding: 6px 10px;
  font: 12px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  cursor: pointer;
}

.btn-ghost:hover {
  background: #f0f0f0;
}

/* Lite mobilanpassning */
@media (max-width: 480px) {
  .auth-card {
    max-width: 100%;
    border-radius: 0;
    height: auto;
  }
}

































.screen-profile {
  position: fixed;
  inset: 0;
  z-index: 880;  /* under auth-overlay (900), över kartan */
  pointer-events: none;
}

.screen-profile[hidden] {
  display: none;
}

.profile-card {
  position: absolute;
  top: 80px;
  left: 8px;
  width: 320px;
  max-width: calc(100% - 16px);
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0,0,0,.35);
  padding: 14px 14px 10px 14px;
  font: 13px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  pointer-events: auto;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overscroll-behavior: contain;
  max-height: calc(100vh - 96px);
  max-height: calc(100svh - 96px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.profile-title {
  margin: 0 0 4px 0;
  font-size: 16px;
}

.profile-close {
  position: absolute;
  right: 6px;
  top: 4px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.profile-email-row {
  margin: 0 0 8px 0;
  font-size: 12px;
  color: #555;
}

.profile-email-row span {
  font-weight: 600;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-form label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.profile-form input {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font: 13px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.profile-form input:disabled {
  background: #f4f4f4;
  color: #777;
}

.profile-form select {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font: 13px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background-color: #fff;
}

.profile-row-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.profile-half {
  display: flex;
  flex-direction: column;
  gap: 2px;
}


.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin: 4px 0 2px;
  font-size: 12px;
}

.profile-meta dt {
  color: #666;
}

.profile-meta dd {
  margin: 0;
  font-weight: 600;
}

.profile-security {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #eee;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-subtitle {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  color: #555;
}

.profile-security-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-email-current {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.profile-email-current span:last-child {
  font-weight: 600;
  font-size: 12px;
}


.profile-message {
  min-height: 16px;
  margin: 2px 0 4px 0;
  font-size: 11px;
  color: #c0392b;
}

.profile-actions {
  position: sticky;
  bottom: 0;

  display: flex;
  justify-content: space-between;
  gap: 8px;

  margin: 10px -14px 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));

  background: #fff;
  border-top: 1px solid #eee;
  z-index: 1;
}

.profile-actions .btn-primary {
  flex: 1;
}

.profile-actions .btn-ghost {
  white-space: nowrap;
}
.profile-danger {
  margin-top: 8px;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #e67e22;
  background: #fff8f2;
}

.profile-remove-toggle {
  display: inline-block;
  margin-top: 4px;
  padding: 0;
  border: none;
  background: none;
  font: 11px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #c0392b;
  text-decoration: underline;
  cursor: pointer;
}

.profile-remove-toggle[hidden] {
  display: none;
}

.profile-remove-toggle:hover {
  text-decoration: none;
}

.profile-danger-title {
  margin: 0 0 4px 0;
  font-size: 13px;
  font-weight: 600;
}

.profile-danger-text {
  margin: 0 0 6px 0;
  font-size: 11px;
}

.btn-danger {
  appearance: none;
  border-radius: 999px;
  border: none;
  background: #c0392b;
  padding: 6px 10px;
  font: 12px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #fff;
  cursor: pointer;
}

.btn-danger[disabled] {
  opacity: .6;
  cursor: not-allowed;
}

/* UGC create form (U06) */
.ugc-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.ugc-form label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
}

.ugc-form input,
.ugc-form textarea {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font: 13px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.ugc-form textarea {
  resize: vertical;
  min-height: 60px;
}

/* Snabbval för "Rapportera borttag" (bottom sheet) */
.report-quick-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.report-quick-buttons .report-quick-btn {
  padding: 6px 10px; /* matchar btn-ghost men blir jämn i raden */
}



.ugc-help {
  font-size: 11px;
  color: #666;
}

@media (max-width: 480px) {
  .profile-card {
    top: 40px;
    right: 8px;
    left: 8px;
    width: auto;
  }
}

.ugc-create-form {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  padding: 12px 14px 14px 14px;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -6px 24px rgba(0,0,0,.18);
  z-index: 22;

  max-height: 50vh;
  max-height: 50svh;

  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;

  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}


/* Se till att hidden-attributet verkligen gömmer UGC-formuläret */
.ugc-create-form[hidden] {
  display: none !important;
}

.ugc-create-heading {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.ugc-create-heading::before {
  content: '-';
  order: 2;
  color: #1565C0;
}

.ugc-create-heading .ugc-create-title {
  order: 1;
}

.ugc-create-heading .ugc-create-intro {
  order: 3;
  flex: 1 1 320px;
}


.ugc-create-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.ugc-create-intro {
  margin: 0;
  font-size: 13px;
  color: #1565C0;
}

.ugc-create-status {
  min-height: 18px;
  font-size: 12px;
  color: #1565C0;
}

.ugc-create-grid {
  display: grid;
  grid-template-columns: minmax(160px, 25%) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 0;
  flex: 1 1 auto;
}

.ugc-create-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.ugc-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.ugc-field > span:first-child {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
}

.ugc-field input[type="text"],
.ugc-field input[type="file"],
.ugc-field textarea {
  width: 100%;
  box-sizing: border-box;
}

.ugc-field input[type="text"],
.ugc-field textarea {
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 10px 12px;
  font: 14px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
}

.ugc-field textarea {
  resize: vertical;
}

.ugc-field-name {
  flex: 1 1 auto;
}

.ugc-field-photo {
  flex: 0 0 auto;
}

.ugc-field-description {
  flex: 1 1 auto;
}

.ugc-field-description textarea {
  flex: 1 1 auto;
  min-height: 0;
}

.ugc-photo-preview-wrapper {
  min-height: 100px;
}

.ugc-error-details {
  margin-top: 6px;
}

.ugc-error-details summary {
  cursor: pointer;
  color: #333;
}

.ugc-error-details pre {
  margin: 6px 0 0 0;
  padding: 8px;
  border-radius: 10px;
  background: #f6f6f6;
  color: #111;
  font-size: 11px;
  line-height: 1.3;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 180px;
  overflow: auto;
}

.ugc-error-details-actions {
  margin-top: 6px;
}

.ugc-error-copy {
  padding: 4px 10px;
}

.ugc-actions {
  position: sticky;
  bottom: 0;
  display: flex;
  justify-content: flex-end;
  gap: 8px;

  margin: 10px -14px 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));

  background: #fff;
  border-top: 1px solid #eee;
  z-index: 1;
}


/* U11 – mindre bild i UGC-formulärens förhandsvisning */
#ugc-photo-preview,
#ugc-edit-photo-preview {
  max-width: 100px;
  max-height: 100px;
  height: auto;
  object-fit: cover;
}

@media (max-width: 720px) {
  .ugc-create-heading {
    display: block;
    margin-bottom: 12px;
  }

  .ugc-create-heading::before {
    display: none;
  }

  .ugc-create-heading .ugc-create-intro {
    display: block;
    margin-top: 6px;
  }

  .ugc-create-grid {
    grid-template-columns: 1fr;
  }

  .ugc-field-description textarea {
    min-height: 150px;
  }
}


/* Lyft upp status-rutan en aning när create-läget är aktivt */
body.ugc-create-active #status {
  transform: translateY(-4px);
}


/* === Huvudmeny (S23) === */

.menu-button {
  position: absolute;
  left: 8px;
  top: 44px; /* samma vertikala läge som tidigare profile-badge */
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.96);
  font: 12px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.map-filters {
  position: absolute;
  left: 8px;
  top: 92px;
  z-index: 25;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.map-filter-btn {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.15);
  background: rgba(255,255,255,0.96);
  font: 12px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
}

.map-filter-btn[aria-pressed="true"] {
  background: #1565C0;
  color: #fff;
  border-color: #1565C0;
}











.signin-button {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 112px; /* under menyknappen */
  z-index: 25;

  padding: 10px 14px;
  border-radius: 999px;
  border: none;

  background: #1565C0;
  color: #fff;

  font: 700 14px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  cursor: pointer;

  box-shadow: 0 3px 10px rgba(0,0,0,.22);
  white-space: normal;
  text-align: center;
}

.signin-button:hover {
  filter: brightness(1.06);
}

.signin-button:active {
  transform: translateY(1px);
}

.signin-button:focus-visible {
  outline: 3px solid rgba(21,101,192,0.35);
  outline-offset: 2px;
}


.signin-button[hidden] {
  display: none;
}


.menu-button-icon {
  font-size: 14px;
}

.menu-button-label {
  font-weight: 600;
}

/* Sidomeny-panel */
.main-menu {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: 280px;
  max-width: 80vw;
  background: #fff;
  box-shadow: 2px 0 18px rgba(0,0,0,.25);
  transform: translateX(-100%);
  transition: transform .25s ease-out;
  z-index: 870; /* över karta/sheet, under auth (900) och diag (1000) */
  display: flex;
  flex-direction: column;
  padding: 14px 14px 10px 14px;
}

.main-menu[hidden] {
  display: none;
}

.main-menu.open {
  transform: translateX(0);
}

.menu-header {
  margin-bottom: 12px;
}

.menu-user-name {
  font: 600 16px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  margin-bottom: 4px;
}

.menu-user-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font: 12px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #555;
}

.menu-value {
  font-weight: 600;
}

.menu-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 10px 0 12px 0;
}
.menu-divider {
  height: 1px;
  background: #eee;
  margin: 6px 4px;
  border-radius: 1px;
}

.menu-link {
  text-align: left;
  padding: 6px 8px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font: 13px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  cursor: pointer;
  color: #111;
  text-decoration: none;
}

.menu-link:hover {
  background: #f3f3f3;
}

.menu-footer {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid #eee; /* linje ovanför sponsordelen */
  font: 11px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #777;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.menu-sponsor {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
  width: 100%;
}

.menu-sponsor-link {
  display: inline-block;
}

.menu-sponsor-logo {
  max-width: 200px;
  width: 200px;
  height: auto;
  display: block;
}

.menu-version-line {
  border-top: 1px solid #eee; /* linje ovanför Version */
  padding-top: 8px;
  width: 100%;
}



.menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.35);
  z-index: 860;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease-out;
}

.menu-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

.menu-backdrop[hidden] {
  display: none;
}

/* Lite bredare meny på större skärm */
@media (min-width: 768px) {
  .main-menu {
    width: 320px;
    max-width: 320px;
  }
}
/* === ABOUT-SIDA (S24) === */

.screen-about {
  position: fixed;
  inset: 0;
  z-index: 880; /* under auth (900), under diag (1000), ovan karta */
  background: #fff;
  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
  overflow-y: auto;
}

.screen-about[hidden] {
  display: none;
}

.about-header {
  position: sticky;
  top: 0;
  padding: 8px 4px 8px 0;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,0.98),
    rgba(255,255,255,0.92),
    rgba(255,255,255,0.0)
  );
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 1;
}

.about-back-btn {
  align-self: flex-start;
  margin: 4px 0 8px;
  font-size: 12px;
}

.about-title {
  margin: 0 32px 2px 0;
  font: 600 18px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.about-lead {
  margin: 0 0 8px 0;
  font-size: 13px;
  color: #444;
}

.about-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,0.06);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.about-close:hover {
  background: rgba(0,0,0,0.12);
}

.about-toc {
  margin: 8px 0 12px 0;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #eee;
  background: #fafafa;
}

.about-toc-title {
  margin: 0 0 4px 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #555;
}

.about-toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
}

.about-toc li {
  margin: 0;
}

.about-toc a {
  font-size: 12px;
  text-decoration: none;
  color: #0070c9;
}

.about-toc a:hover {
  text-decoration: underline;
}

.about-content {
  font: 13px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #222;
  padding-bottom: 24px;
}

.about-section {
  margin-top: 12px;
}

.about-section h3 {
  margin: 12px 0 4px 0;
  font-size: 15px;
}

.about-section p {
  margin: 4px 0 6px 0;
}

.about-section ul {
  margin: 4px 0 6px 18px;
  padding: 0;
}

.about-steps {
  margin: 6px 0 10px 18px;
  padding: 0;
}

.about-steps li {
  margin: 10px 0;
}

.about-step-title {
  font-weight: 600;
  margin: 0 0 2px 0;
}

.about-note {
  margin: 8px 0 6px 0;
  padding: 8px 10px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fafafa;
}


.about-legend {
  margin-top: 4px;
}

.about-legend-hint {
  margin-top: 6px;
  font-size: 11px;
  color: #444;
}

/* Lite bredare layout på större skärm */
@media (min-width: 768px) {
  .screen-about {
    padding: 24px;
  }

  .about-content {
    max-width: 720px;
  }
}

/* === Legend-knapp → About (S24) === */
/* Överskuggar tidigare .legend-stil så den blir en liten knapp i hörnet */

.legend {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 10;
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
}

.legend-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.25);
  background: rgba(255,255,255,0.92);
  font: 11px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #111;
  cursor: pointer;
  white-space: nowrap;
}

.legend-link::before {
  content: "i";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.3);
  font-size: 10px;
  font-weight: 600;
}

.legend-link:disabled {
  opacity: 0.6;
  cursor: default;
}

/* U08 – feedback-block i bottom sheet */

.sheet-feedback {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e0e0e0;
  font-size: 0.9rem;
}

.sheet-feedback-title {
  margin: 0 0 0.25rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.sheet-feedback-text {
  margin: 0 0 0.5rem;
  color: #555;
}

.sheet-feedback-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.sheet-feedback-icon-btn {
  border: none;
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}

.sheet-feedback-good {
  background: #e3f6e8;  /* ljusgrön ton */
}

.sheet-feedback-bad {
  background: #fde5e5;  /* ljusröd ton */
}

.sheet-feedback-skip-btn,
.sheet-feedback-btn {
  border-radius: 999px;
  padding: 0.3rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid #ccc;
  background: #fff;
}

.sheet-feedback-btn-primary {
  border-color: #2f7ae5;
}

.sheet-feedback-btn-secondary {
  border-color: #ccc;
}

.sheet-feedback-comment {
  width: 100%;
  box-sizing: border-box;
  min-height: 3.5rem;
  resize: vertical;
  margin-bottom: 0.5rem;
  padding: 0.4rem 0.5rem;
  font-family: inherit;
  font-size: 0.9rem;
}
/* F09-1/F09-3: Mobilanpassning av favoritknapp + notisikon */
@media (max-width: 480px) {
  .sheet-favorite-row {
    align-items: flex-start;
  }

  .sheet-favorite-btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 40px; /* lite extra höjd på små skärmar */
  }

  .sheet-favorite-label,
  .sheet-favorite-count {
    white-space: normal;      /* tillåt radbrytning */
    overflow-wrap: anywhere;  /* bryt långa ord i stället för horisontell scroll */
  }

    width: 40px;   /* lite större klickyta på liten skärm */
    height: 40px;
  }

    font-size: 20px;  /* något större ikon så den syns tydligt */
  }
}
#checkpoint-report-photo-preview {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ddd;
  margin-top: 6px;
}

/* Wishlist button in spot sheet */
.sheet-wishlist-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin: 0 0 10px;
  flex-wrap: wrap;
}

.sheet-wishlist-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: none;
  background: #f3f4f6;
  font: 500 13px system-ui;
  cursor: pointer;
  min-height: 36px;
  max-width: 100%;
}

.sheet-wishlist-btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.sheet-wishlist-label {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .sheet-wishlist-btn {
    flex: 1 1 auto;
    justify-content: center;
    min-height: 40px;
  }

  .sheet-wishlist-label {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}
@media (max-width: 520px) {
  .menu-button { top: 84px; }
  .signin-button { top: 124px; }
}
/* Activation toast */
.activation-toast {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 96px 12px 12px;
  z-index: 885; /* över karta/sheet, under auth (900) och diag (1000) */
  pointer-events: none;
}

.activation-toast[hidden] {
  display: none !important;
}

.activation-toast-card {
  pointer-events: auto;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  padding: 12px 14px;
  min-width: 220px;
  max-width: 92vw;
  text-align: center;

  opacity: 0;
  transform: translateY(-10px) scale(.98);
  transition: opacity .18s ease, transform .18s ease;
}

.activation-toast.show .activation-toast-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.activation-toast-emoji {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 6px;
}

.activation-toast-title {
  font: 700 14px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.activation-toast-points {
  margin-top: 2px;
  font: 800 20px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.activation-toast-name {
  margin-top: 4px;
  font: 12px system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .activation-toast-card {
    transition: none;
  }
}

/* === Landing page === */

body.landing {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at top, #f7f4ee 0%, #efe9dd 40%, #e6dfd2 100%);
  color: #1a1a1a;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.landing-hero {
  width: 100%;
  display: grid;
  place-items: center;
  padding: 48px 18px;
}

.landing-card {
  width: min(620px, 92vw);
  background: rgba(255,255,255,0.9);
  border-radius: 18px;
  padding: 36px 32px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
  border: 1px solid rgba(0,0,0,0.08);
}

.landing-card h1 {
  margin: 0 0 12px 0;
  font-size: 40px;
  letter-spacing: -0.02em;
}

.landing-card p {
  margin: 0 0 14px 0;
  font-size: 16px;
  line-height: 1.5;
  color: #3a3a3a;
}

.landing-card .btn-primary {
  margin-top: 10px;
  width: 100%;
  padding: 12px 18px;
  font-size: 16px;
  border-radius: 999px;
}

.sheet-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet-admin-remove {
  white-space: nowrap;
}

/* === Landing marketing refresh (2026-04-09) === */

body.landing.landing-marketing {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(255, 197, 84, 0.28), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(28, 138, 219, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f1de 0%, #f5efe4 28%, #fbfaf6 62%, #f0f5f1 100%);
  color: #1c231c;
  font-family: "Space Grotesk", system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  display: block;
}

.landing-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  box-sizing: border-box;
  padding: 14px 0;
  background: rgba(251, 250, 246, 0.86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(28, 35, 28, 0.08);
}

.landing-topbar-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.landing-wordmark {
  display: inline-flex;
  align-items: center;
  color: #1b3a2f;
  text-decoration: none;
  font: 700 clamp(30px, 3.2vw, 42px)/0.95 "Fraunces", Georgia, serif;
  letter-spacing: -0.04em;
  white-space: nowrap;
  text-rendering: optimizeLegibility;
}

.landing-login-btn {
  appearance: none;
  border: 1px solid rgba(27, 58, 47, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: #1b3a2f;
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 13px/1 "Space Grotesk", system-ui, sans-serif;
  cursor: pointer;
}

.landing-login-btn:hover {
  background: #fff;
}

.landing-hero-marketing,
.landing-proof,
.landing-feature-grid,
.landing-benefits,
.landing-final-cta,
.landing-footer-marketing,
.landing-countries {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.landing-hero-marketing {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: 44px;
  align-items: center;
  padding: 46px 0 24px;
}

.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d6b78;
}

.landing-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
}

.landing-hero-copy h1,
.landing-benefits-intro h2,
.landing-final-cta-card h2,
.landing-countries-header h1 {
  margin: 14px 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  color: #17352b;
}

.landing-benefits-intro h2,
.landing-final-cta-card h2,
.landing-countries-header h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1;
}

.landing-hero-lead,
.landing-subnote,
.landing-proof-text,
.landing-feature-copy p,
.landing-benefits-intro p,
.landing-final-cta-card p,
.landing-countries-header p {
  color: #46524a;
  line-height: 1.65;
}

.landing-hero-lead {
  margin: 24px 0 0;
  max-width: 640px;
  font-size: 19px;
}

.landing-subnote {
  margin: 16px 0 0;
  font-size: 13px;
}

.landing-store-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.landing-store-actions-center {
  justify-content: center;
}

.landing-store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 210px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 18px;
  text-decoration: none;
  font: 700 15px/1 "Space Grotesk", system-ui, sans-serif;
  transition: transform 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.landing-store-btn:hover {
  transform: translateY(-1px);
}

.landing-store-btn-primary {
  background: #1a6f5f;
  color: #fff;
  box-shadow: 0 14px 34px rgba(26, 111, 95, 0.22);
}

.landing-store-btn-primary:hover {
  background: #135649;
}

.landing-store-btn-secondary {
  border: 1px solid rgba(23, 53, 43, 0.12);
  background: rgba(255, 255, 255, 0.82);
  color: #17352b;
  box-shadow: 0 12px 28px rgba(23, 53, 43, 0.08);
}

.landing-hero-visual {
  position: relative;
  min-height: 650px;
}

.landing-hero-phone {
  position: absolute;
  overflow: hidden;
  border-radius: 34px;
  background: #10211b;
  box-shadow: 0 28px 60px rgba(20, 26, 38, 0.22);
}

.landing-hero-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-hero-phone-main {
  inset: 20px 90px 20px 30px;
  transform: rotate(-4deg);
}

.landing-hero-phone-side {
  width: 180px;
  height: 260px;
  right: 0;
}

.landing-hero-phone-top {
  top: 0;
  transform: rotate(9deg);
}

.landing-hero-phone-bottom {
  bottom: 10px;
  transform: rotate(7deg);
}

.landing-proof {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 1.1fr);
  gap: 18px;
  padding: 6px 0 24px;
}

.landing-proof-card,
.landing-feature-card,
.landing-benefit-panel,
.landing-final-cta-card,
.landing-countries-table-card {
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(24, 44, 35, 0.08);
  box-shadow: 0 22px 40px rgba(23, 53, 43, 0.08);
}

.landing-proof-card {
  padding: 28px;
}

.landing-proof-header {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  align-items: flex-start;
}

.landing-proof-label {
  color: #6d776f;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-proof-value {
  margin-top: 10px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(44px, 5vw, 66px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: #16352a;
}

.landing-proof-link,
.landing-countries-back {
  color: #0d6b78;
  font-weight: 700;
  text-decoration: none;
}

.landing-proof-link:hover,
.landing-countries-back:hover {
  text-decoration: underline;
}

.landing-country-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 18px;
}

.landing-country-row,
.landing-countries-table-head,
.landing-countries-table-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 140px;
  gap: 12px;
  align-items: center;
}

.landing-country-row {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(90deg, rgba(255, 236, 198, 0.78), rgba(244, 247, 240, 0.86));
}

.landing-country-rank,
.landing-countries-table-head span:first-child,
.landing-countries-table-row span:first-child {
  color: #7a5a18;
  font-weight: 700;
}

.landing-country-name,
.landing-country-value,
.landing-countries-table-head,
.landing-countries-table-row {
  font-size: 15px;
}

.landing-country-value,
.landing-countries-table-head span:last-child,
.landing-countries-table-row span:last-child {
  text-align: right;
  font-weight: 700;
  color: #17352b;
}

.landing-feature-grid {
  display: grid;
  gap: 18px;
  padding: 10px 0 24px;
}

.landing-feature-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.42fr);
  gap: 0;
  overflow: hidden;
}

.landing-feature-card-reverse {
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.42fr);
}

.landing-feature-card img {
  width: min(100%, 320px);
  height: auto;
  max-height: 320px;
  object-fit: cover;
  display: block;
  justify-self: center;
  align-self: center;
  border-radius: 22px;
  margin: 24px 0;
}

.landing-feature-copy {
  padding: 34px 34px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.landing-feature-copy h2 {
  margin: 0 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: #17352b;
}

.landing-benefits {
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(0, 1.08fr);
  gap: 18px;
  padding: 12px 0 24px;
}

.landing-benefits-intro {
  padding: 16px 6px 0 0;
}

.landing-benefit-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.landing-benefit-panel {
  padding: 28px;
}

.landing-benefit-panel h3 {
  margin: 0 0 14px;
  font-size: 18px;
  color: #17352b;
}

.landing-benefit-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #3f4c44;
  line-height: 1.7;
}

.landing-benefit-panel li + li {
  margin-top: 8px;
}

.landing-final-cta {
  padding: 12px 0 28px;
}

.landing-final-cta-card {
  padding: 34px 28px;
  text-align: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 210, 112, 0.38), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(243, 248, 242, 0.92));
}

.landing-footer-marketing {
  padding: 0 0 40px;
}

.landing-footer-marketing .landing-brand {
  justify-content: center;
  gap: 18px;
  color: #536057;
  font-size: 14px;
}

.landing-footer-marketing .landing-brand img {
  width: 128px;
}

.landing-stats-empty {
  margin: 12px 0 0;
  color: #7a1e1e;
}

.landing-countries-page {
  padding-bottom: 34px;
}

.landing-countries {
  padding-top: 36px;
}

.landing-countries-header {
  max-width: 820px;
}

.landing-countries-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.landing-countries-table-card {
  margin-top: 18px;
  padding: 18px 18px 8px;
}

.landing-countries-table-head {
  padding: 8px 12px 14px;
  border-bottom: 1px solid rgba(24, 44, 35, 0.08);
  color: #69746d;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-countries-table-row {
  padding: 14px 12px;
  border-bottom: 1px solid rgba(24, 44, 35, 0.06);
}

.landing-countries-table-row:last-child {
  border-bottom: none;
}

@media (max-width: 980px) {
  .landing-hero-marketing,
  .landing-proof,
  .landing-benefits {
    grid-template-columns: 1fr;
  }

  .landing-hero-visual {
    min-height: 520px;
  }

  .landing-feature-card,
  .landing-feature-card-reverse {
    grid-template-columns: 1fr;
  }

  .landing-benefit-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .landing-topbar {
    padding: 12px 0;
  }

  .landing-topbar-inner {
    width: min(1180px, calc(100% - 20px));
  }

  .landing-wordmark {
    font-size: clamp(26px, 8vw, 34px);
  }

  .landing-hero-marketing,
  .landing-proof,
  .landing-feature-grid,
  .landing-benefits,
  .landing-final-cta,
  .landing-footer-marketing,
  .landing-countries {
    width: min(1180px, calc(100% - 20px));
  }

  .landing-hero-marketing {
    gap: 24px;
    padding-top: 22px;
  }

  .landing-hero-copy h1 {
    font-size: clamp(38px, 11vw, 56px);
  }

  .landing-hero-visual {
    min-height: 360px;
  }

  .landing-hero-phone-main {
    inset: 14px 48px 14px 10px;
  }

  .landing-hero-phone-side {
    width: 132px;
    height: 190px;
  }

  .landing-proof-card,
  .landing-feature-copy,
  .landing-benefit-panel,
  .landing-final-cta-card,
  .landing-countries-table-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .landing-country-row,
  .landing-countries-table-head,
  .landing-countries-table-row {
    grid-template-columns: 58px minmax(0, 1fr) 96px;
    gap: 8px;
  }

  .landing-countries-summary {
    grid-template-columns: 1fr;
  }
}
