/* src/shared/css/view-public-entry.css
   All component/layout styles for the view-public-entry page. */

/* ── Body ─────────────────────────────────────────────────────────────────── */

body {
  min-height: 100vh;
  background-color: #0B1120;
  color: #e5edf7;
}

/* Safe-area top padding for mobile (overridden by web HTML if not needed) */
body.mobile-layout {
  padding-top: env(safe-area-inset-top);
}

/* ── Scrollbar hide ───────────────────────────────────────────────────────── */

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ── Glass panels ─────────────────────────────────────────────────────────── */

.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-header {
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── Category pills ───────────────────────────────────────────────────────── */

#categoriesContent .category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 9999px;
  background: var(--cat-bg, rgba(255, 255, 255, 0.08));
  background-color: var(--cat-bg, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--cat-border, rgba(255, 255, 255, 0.18));
  border-color: var(--cat-border, rgba(255, 255, 255, 0.18));
  color: #f8fbff;
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

#categoriesContent .category-pill.primary {
  padding: 10px 18px;
  font-size: 0.9rem;
}

#categoriesContent .category-pill .material-symbols-rounded {
  color: var(--cat-color, #ffffff);
  font-size: 1.1em;
}

/* Linked collection pills */
.collection-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.collection-pill {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
  padding: 0.9rem;
  border-radius: 14px;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #151e32;
}

.collection-pill__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--collection-color, #9aa0a6);
  color: #06111f;
}

.collection-pill__icon .material-symbols-rounded {
  font-size: 1.25rem;
  font-variation-settings: "FILL" 1, "wght" 700, "GRAD" 0, "opsz" 24;
}

.collection-pill__body {
  min-width: 0;
}

.collection-pill__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: #eef6ff;
  font-weight: 800;
  line-height: 1.2;
}


.collection-pill__meta {
  margin-top: 0.2rem;
  color: var(--collection-color, #9aa0a6);
  font-size: 0.72rem;
  font-weight: 800;
}

.collection-pill p {
  margin: 0.35rem 0 0;
  color: #aab7c8;
  font-size: 0.78rem;
  line-height: 1.4;
}

/* Inline detail-page actions keep their icon outside any text decoration. */
.entry-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: 0.5rem;
  color: #3b82f6;
  font-size: 0.75rem;
  text-decoration: none;
  transition: color 160ms ease;
}

.entry-inline-link:hover,
.entry-inline-link:focus-visible {
  color: #93c5fd;
  text-decoration: none;
}

.entry-inline-link .material-symbols-rounded {
  font-size: 0.875rem;
  transition: transform 160ms ease;
}

.entry-inline-link:hover .material-symbols-rounded,
.entry-inline-link:focus-visible .material-symbols-rounded {
  transform: translateX(2px);
}

/* ── Photo lightbox ───────────────────────────────────────────────────────── */

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.photo-lightbox.active {
  opacity: 1;
  visibility: visible;
}

.photo-lightbox img {
  max-width: 75vw;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 0.5rem;
}

/* Admin action strip — positioned right of image inside lightbox */
.lightbox-admin-strip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}
/* Only show when not hidden by Tailwind .hidden utility */
.lightbox-admin-strip:not(.hidden) { display: flex; }

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.lightbox-nav span {
  font-size: 2rem;
  line-height: 1;
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.lightbox-close {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  right: 16px;
  min-width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: white;
  padding: 0 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 20;
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.25); }

.lightbox-close__label {
  font-size: 0.78rem;
  font-weight: 800;
}

.lightbox-close > span:first-child {
  font-size: 1.55rem;
  line-height: 1;
}

.lightbox-counter {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

/* ── Species comparison bars ──────────────────────────────────────────────── */

.comp-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
}

.comp-bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  width: 0%;
}

.comp-bar-fill.green  { background: linear-gradient(90deg, #10B981, #34D399); }
.comp-bar-fill.amber  { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.comp-bar-fill.red    { background: linear-gradient(90deg, #EF4444, #F87171); }

/* ── Species leader cards ─────────────────────────────────────────────────── */

.leader-card {
  min-width: 140px;
  max-width: 160px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.leader-card:hover { background: rgba(255, 255, 255, 0.07); transform: translateY(-1px); }
.leader-card:active { transform: scale(0.97); }

.leader-card.is-current {
  border-color: rgba(245, 158, 11, 0.4);
  background: rgba(245, 158, 11, 0.08);
}

.leader-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
}

.leader-card.is-current .leader-photo { border-color: rgba(245, 158, 11, 0.5); }

/* ── Offline button glow ──────────────────────────────────────────────────── */

.offline-ready {
  color: #06b6d4 !important;
  filter: drop-shadow(0 0 8px rgba(6, 182, 212, 0.6));
}

.offline-package-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(6, 182, 212, 0.12), rgba(16, 185, 129, 0.06)),
    rgba(7, 15, 28, 0.86);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.24);
}

.offline-package-banner__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.13);
  color: #67e8f9;
}

.offline-package-banner__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.offline-package-banner__body strong {
  color: #e0faff;
  font-size: 0.78rem;
  line-height: 1.2;
}

.offline-package-banner__body span {
  color: #93c5fd;
  font-size: 0.7rem;
  line-height: 1.25;
}

.offline-package-banner__pills {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.offline-pill {
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.1);
  color: #a5f3fc;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  line-height: 1;
  padding: 5px 7px;
  text-transform: uppercase;
}

.offline-pill-warn {
  border-color: rgba(251, 191, 36, 0.42);
  background: rgba(251, 191, 36, 0.13);
  color: #fde68a;
}

.offline-edit-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px;
  border: 1px solid rgba(34, 211, 238, 0.24);
  border-radius: 12px;
  background: rgba(6, 182, 212, 0.08);
}

.offline-edit-notice > .material-symbols-rounded {
  color: #67e8f9;
}

.offline-edit-notice strong,
.offline-edit-notice span {
  display: block;
}

.offline-edit-notice strong {
  color: #dffafe;
  font-size: 0.78rem;
}

.offline-edit-notice span {
  color: #9ca3af;
  font-size: 0.7rem;
  line-height: 1.35;
}

/* ── Desktop two-column card grid (web only) ──────────────────────────────── */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 1.5rem auto 0;
}

@media (min-width: 1600px) {
  .cards-grid { max-width: 1600px; }
}

.cards-grid > .card-full { grid-column: 1 / -1; }

#categoriesCard,
#speciesCard,
#historyCard {
  grid-column: 1;
}

#measurementsCard,
#speciesComparisonCard,
#publicMeasurementsCard,
#validationFlagsBanner {
  grid-column: 2;
}

.cards-grid > .glass-panel {
  height: 100%;
}

.desktop-full-width { max-width: 1400px; margin: 0 auto; }

#photoGalleryContainer {
  margin-bottom: 1.25rem;
}

#topActionBar {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 1600px) {
  .desktop-full-width { max-width: 1600px; }
}

@media (max-width: 1180px) {
  .cards-grid {
    grid-template-columns: 1fr;
  }

  #categoriesCard,
  #speciesCard,
  #historyCard,
  #measurementsCard,
  #speciesComparisonCard,
  #validationFlagsBanner,
  #publicMeasurementsCard {
    grid-column: 1;
  }
}

@media (max-width: 720px) {
  #compLeaderCards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    overflow-x: visible;
    padding-bottom: 0;
  }

  .leader-card {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .leader-card > .flex {
    min-width: 0;
  }

  .leader-photo {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  .lightbox-close {
    top: calc(12px + env(safe-area-inset-top, 0px));
    right: 12px;
    height: 42px;
  }

  .lightbox-close__label {
    display: none;
  }
}

#publicMeasurementsCard .grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

#publicMeasurementsCard .grid > .col-span-2 {
  grid-column: auto;
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 720px) {
  #publicMeasurementsCard .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  #publicMeasurementsCard .grid {
    grid-template-columns: 1fr;
  }
}

.forest-species-breakdown {
  display: grid;
  gap: 0.85rem;
}

.forest-species-summary {
  font-size: 0.75rem;
  color: #93c5fd;
  letter-spacing: 0.01em;
}

.forest-species-list {
  display: grid;
  gap: 0.75rem;
}

.forest-species-item {
  padding: 0.8rem 0.9rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.forest-species-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #f8fafc;
}

.forest-species-sci {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-style: italic;
  color: #cbd5e1;
}

.linked-tree-list {
  display: grid;
  gap: 0.85rem;
}

.linked-tree-loading {
  border-radius: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  padding: 0.9rem;
  color: #94a3b8;
  font-size: 0.84rem;
}

.linked-tree-item {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  padding: 1rem;
}

.linked-tree-item__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.linked-tree-item__label {
  color: #9ca3af;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.linked-tree-item__title {
  margin: 0.18rem 0 0;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.linked-tree-item__badge {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.28rem 0.55rem;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.06);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.linked-tree-item__badge.is-verified {
  border-color: rgba(34, 197, 94, 0.22);
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
}

.linked-tree-item__badge.is-rejected {
  border-color: rgba(248, 113, 113, 0.22);
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.08);
}

.linked-tree-item__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.linked-tree-item__metric {
  min-width: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(0, 0, 0, 0.12);
  padding: 0.72rem;
}

.linked-tree-item__metric span {
  display: block;
  margin-bottom: 0.25rem;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.linked-tree-item__metric strong,
.linked-tree-item__metric em {
  display: block;
  overflow-wrap: anywhere;
}

.linked-tree-item__metric strong {
  color: #e2e8f0;
  font-size: 0.86rem;
  line-height: 1.3;
}

.linked-tree-item__metric em {
  margin-top: 0.2rem;
  color: #94a3b8;
  font-size: 0.76rem;
  line-height: 1.35;
}

.linked-tree-item__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 42px;
  margin-top: 0.85rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(34, 197, 94, 0.24);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  padding: 0.62rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 430px) {
  .linked-tree-item__body {
    grid-template-columns: 1fr;
  }
}

.linked-forest-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.03);
  padding: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.linked-forest-card > section + section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
}

.linked-forest-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.linked-forest-card__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: #9ca3af;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.linked-forest-card__title {
  margin: 0.2rem 0 0;
  color: #f8fafc;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.linked-forest-card__badge {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 0.28rem 0.55rem;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.06);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.linked-forest-card__badge.is-verified {
  border-color: rgba(34, 197, 94, 0.22);
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
}

.linked-forest-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.linked-forest-card__metric {
  min-width: 0;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  padding: 0.72rem;
}

.linked-forest-card__metric span {
  display: block;
  margin-bottom: 0.25rem;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.linked-forest-card__metric strong {
  display: block;
  color: #e2e8f0;
  font-size: 0.86rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.linked-forest-card__description {
  margin: 0.85rem 0 0;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.55;
}

.linked-forest-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  max-width: 100%;
  min-height: 42px;
  margin-top: 0.9rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(34, 197, 94, 0.28);
  background: rgba(34, 197, 94, 0.12);
  color: #86efac;
  padding: 0.62rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.25;
  text-decoration: none;
  overflow-wrap: anywhere;
  text-align: center;
}

.forest-inline-edit-panel {
  border-radius: 1rem;
  padding: 1rem;
  border-color: rgba(16, 185, 129, 0.22);
  background: rgba(7, 15, 28, 0.72);
}

.forest-inline-edit-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.forest-inline-edit-kicker {
  margin: 0 0 0.25rem;
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.forest-inline-edit-header h2 {
  margin: 0;
  color: #f8fafc;
  font-size: 1.2rem;
  font-weight: 900;
  line-height: 1.1;
}

.forest-inline-edit-mode {
  flex: 0 0 auto;
  border: 1px solid rgba(34, 211, 238, 0.22);
  border-radius: 999px;
  background: rgba(8, 145, 178, 0.1);
  color: #a5f3fc;
  padding: 0.35rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.forest-inline-edit-grid {
  display: grid;
  gap: 0.85rem;
}

.forest-inline-edit-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.9rem;
  background: rgba(15, 23, 42, 0.7);
  padding: 0.9rem;
}

.forest-inline-edit-card__head {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
}

.forest-inline-edit-card__head > .material-symbols-rounded {
  color: #34d399;
  font-size: 1.25rem;
}

.forest-inline-edit-card__head h3 {
  margin: 0;
  color: #e5edf7;
  font-size: 0.88rem;
  font-weight: 900;
}

.forest-inline-edit-card__head p {
  margin: 0.15rem 0 0;
  color: #94a3b8;
  font-size: 0.76rem;
  line-height: 1.4;
}

.forest-inline-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.forest-inline-field,
.forest-inline-label {
  display: block;
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.forest-inline-label {
  margin: 0.8rem 0 0.35rem;
}

.forest-inline-field span {
  display: block;
  margin-bottom: 0.35rem;
}

.forest-inline-input,
.forest-inline-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.52);
  color: #f8fafc;
  font: inherit;
  font-size: 0.88rem;
  outline: none;
}

.forest-inline-input {
  min-height: 44px;
  padding: 0.68rem 0.75rem;
}

.forest-inline-textarea {
  min-height: 110px;
  padding: 0.75rem;
  line-height: 1.45;
  resize: vertical;
}

.forest-inline-input:focus,
.forest-inline-textarea:focus {
  border-color: rgba(52, 211, 153, 0.58);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
}

.forest-inline-radius {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.8rem;
  border: 1px solid rgba(34, 197, 94, 0.18);
  border-radius: 0.85rem;
  background: rgba(22, 101, 52, 0.12);
  padding: 0.75rem;
}

.forest-inline-radius span {
  display: block;
  color: #86efac;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forest-inline-radius strong {
  display: block;
  margin-top: 0.1rem;
  color: #f8fafc;
  font-size: 1.05rem;
}

.forest-inline-radius-actions {
  display: flex;
  gap: 0.45rem;
}

.forest-inline-radius-actions button,
.forest-inline-gps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 197, 94, 0.24);
  border-radius: 0.75rem;
  background: rgba(34, 197, 94, 0.1);
  color: #bbf7d0;
  cursor: pointer;
}

.forest-inline-radius-actions button {
  width: 44px;
  height: 44px;
}

.forest-inline-gps-btn {
  width: 100%;
  min-height: 46px;
  gap: 0.45rem;
  margin-top: 0.8rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.forest-inline-gps-btn[hidden] {
  display: none;
}

.forest-inline-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.forest-inline-choice-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.forest-inline-choice {
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 0.75rem;
  background: rgba(15, 23, 42, 0.84);
  color: #cbd5e1;
  padding: 0.62rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: left;
}

.forest-inline-choice.is-active {
  border-color: rgba(52, 211, 153, 0.5);
  background: rgba(16, 185, 129, 0.16);
  color: #ecfdf5;
}

.forest-inline-savebar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(16, 185, 129, 0.28);
  background: rgba(11, 17, 32, 0.94);
  backdrop-filter: blur(14px);
}

.forest-inline-savebar__label {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: #6ee7b7;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.forest-inline-savebar__label .material-symbols-rounded {
  font-size: 0.9rem;
}

.forest-inline-savebar__save,
.forest-inline-savebar__cancel {
  min-height: 40px;
  border-radius: 0.6rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 900;
}

.forest-inline-savebar__save {
  border: 0;
  background: #34d399;
  color: #022c22;
}

.forest-inline-savebar__cancel {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: transparent;
  color: #d1d5db;
}

.forest-inline-savebar__status {
  color: #94a3b8;
  font-size: 0.75rem;
}

.forest-inline-savebar__status[data-tone="success"] {
  color: #86efac;
}

.forest-inline-savebar__status[data-tone="queued"] {
  color: #fde68a;
}

.forest-inline-savebar__status[data-tone="error"] {
  color: #fca5a5;
}

@media (max-width: 430px) {
  .forest-inline-field-grid,
  .forest-inline-choice-grid {
    grid-template-columns: 1fr;
  }
}
.location-card--admin-hidden {
  border: 1px solid rgba(251, 191, 36, 0.55);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.08), 0 18px 45px rgba(120, 53, 15, 0.2);
}

.admin-hidden-location-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  color: #fde68a;
  background: rgba(120, 53, 15, 0.48);
  border-bottom: 1px solid rgba(251, 191, 36, 0.35);
}

.admin-hidden-location-notice > span {
  flex: 0 0 auto;
  color: #fbbf24;
}

.admin-hidden-location-notice strong,
.admin-hidden-location-notice div > span {
  display: block;
}

.edit-location-visibility {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 0.9rem;
  background: rgba(7, 27, 45, 0.72);
  box-shadow: inset 3px 0 0 #38bdf8;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.edit-location-visibility[data-mode="hidden"] {
  border-color: rgba(251, 191, 36, 0.48);
  background: rgba(69, 31, 8, 0.58);
  box-shadow: inset 3px 0 0 #fbbf24;
}

.edit-location-visibility__heading {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.75rem;
}

.edit-location-visibility__heading > span {
  color: #7dd3fc;
  font-size: 1.2rem;
}

.edit-location-visibility[data-mode="hidden"] .edit-location-visibility__heading > span {
  color: #fbbf24;
}

.edit-location-visibility__heading label {
  display: block;
  color: #e0f2fe;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.edit-location-visibility__heading p,
.edit-location-visibility__status {
  margin: 0.2rem 0 0;
  color: #94a3b8;
  font-size: 0.72rem;
  line-height: 1.45;
}

.edit-location-visibility__select {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  color: #e5edf7;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(125, 211, 252, 0.32);
  border-radius: 0.65rem;
  font: inherit;
  font-size: 0.82rem;
  outline: none;
}

.edit-location-visibility__select:focus-visible {
  border-color: #7dd3fc;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.16);
}

.edit-location-visibility[data-mode="hidden"] .edit-location-visibility__status {
  color: #fcd34d;
  font-weight: 650;
}

.admin-hidden-location-notice strong {
  margin-bottom: 0.15rem;
  font-size: 0.8rem;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.admin-hidden-location-notice div > span {
  color: #fcd34d;
  font-size: 0.75rem;
  line-height: 1.4;
}
