/* ==========================================================================
   FELTOPTAGER — APP STYLES (NATURE POSTER)
   ========================================================================== */

body {
  margin: 0;
}

/* ── Layout ─────────────────────────────────────────────────────────────── */
.poster-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.poster-header {
  padding: 4rem 0 2rem;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.poster-header__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.poster-header .poster-title {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.poster-tagline {
  font-size: 1rem;
  font-weight: 500;
  color: var(--green-mid);
  margin: 0.35rem 0 0.75rem;
  max-width: 22rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
}

.poster-subtitle {
  font-size: 0.85rem;
  color: var(--text-light);
  letter-spacing: 0.2rem;
  margin: 0;
  max-width: 28rem;
  line-height: 1.45;
}

/* Main column: keep aligned with header max-width + horizontal padding */
main.poster-container.poster-main {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding-bottom: 2.5rem;
}

/* Inner pages (tally, cards, remote, …) — shared top banner */
.app-header {
  padding: 3rem 1.5rem 1.75rem;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  box-sizing: border-box;
  width: 100%;
}

.app-header h1,
.app-header__text h1 {
  font-size: 1.85rem;
  margin: 0 0 0.5rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  line-height: 1.2;
}

.app-header > p,
.app-header__text p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.45;
}

.poster-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 0.72rem;
  color: var(--text-light);
}

.poster-nav a {
  color: var(--green-mid);
  font-weight: 700;
}

/* ── Waveform + INPUT/VIZ (inside checklist grid; wave only when mic on) ─── */
.poster-wave-container {
  max-width: 200px;
  width: 100%;
  height: 48px;
  flex-shrink: 0;
  border: 1.5px solid var(--border);
  background: var(--bg-card);
  padding: 4px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.poster-wave-container canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Live mic waveform: egen række under titel — fylder bredden af checklist-boksen */
.preflight-summary__wave.poster-wave-container {
  width: 100%;
  max-width: none;
  min-width: 0;
  height: 44px;
  padding: 3px;
  margin: 0;
  flex: 1 1 auto;
  align-self: stretch;
  box-sizing: border-box;
}

.preflight-wave-tools.poster-wave-tools {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0.35rem;
}

/* Passive / active tool buttons (grey vs solid green) */
.btn-state.btn-wave-tool {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(26, 58, 42, 0.12);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-dark);
  background: #e8eae6;
  color: var(--text-light);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.btn-state.btn-wave-tool.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-state.btn-wave-tool:not(.is-active):hover {
  border-color: var(--green-mid);
  color: var(--text-mid);
  background: #dfe3dd;
}

.btn-state.btn-wave-tool:focus-visible {
  outline: 2px solid var(--green-mid);
  outline-offset: 2px;
}

/* ── Preflight / Checklist ───────────────────────────────────────────────── */
.preflight {
  margin-bottom: 2rem;
}

.preflight > summary {
  list-style: none;
  cursor: pointer;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  user-select: none;
  border-bottom: 1.5px solid var(--border);
}

.preflight-summary__title {
  flex: 1 1 auto;
  min-width: 10rem;
  text-align: left;
}

.preflight-summary__actions {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex: 1 1 100%;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.btn-state.btn-preflight-perms {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-dark);
  background: #e8eae6;
  color: var(--text-light);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.btn-state.btn-preflight-perms.is-active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.btn-state.btn-preflight-perms:not(.is-active):hover {
  border-color: var(--green-mid);
  color: var(--text-mid);
  background: #dfe3dd;
}

.btn-state.btn-preflight-perms:focus-visible {
  outline: 2px solid var(--green-mid);
  outline-offset: 2px;
}

.preflight > summary::-webkit-details-marker { display: none; }
.preflight > summary::after { 
  content: "+"; 
  font-family: var(--font-mono);
  font-size: 1.25rem;
  color: var(--text-light);
  flex-shrink: 0;
  margin-left: 0.25rem;
}
.preflight[open] > summary::after { content: "−"; }

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  padding: 1.5rem;
}

.birdnet-wave-panel {
  padding: 0 1.5rem 1.5rem;
  border-top: 1.5px solid var(--border);
  margin-top: -1px; /* Ensure one border when sibling to checklist */
}

.birdnet-wave-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.75rem 0 0.55rem;
  flex-wrap: wrap;
}

.birdnet-wave-panel__title {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 700;
}

.birdnet-wave-panel__meta {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--text-light);
}

.birdnet-wave-panel__canvas-wrap {
  border: 1.5px solid var(--border);
  background: #0f1410;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.35rem;
}

.birdnet-wave-panel__canvas-wrap canvas {
  width: 100%;
  height: 68px;
  display: block;
}

.check-grid button.btn-poster {
  flex-direction: column;
  padding: 1rem 0.5rem;
  height: auto;
  min-height: 4.5rem;
  font-size: 0.8rem;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(26, 58, 42, 0.12);
}

.check-grid button.btn-poster .sub {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 500;
  line-height: 1.2;
}

/* Checklist: passive = greyed, active (.is-done) = solid green.
   MENNESKEFILTER: app.js synker is-done med filter (FuglelydeVad.getEnabled) — grøn kun når filteret er på. */
.check-grid button.btn-poster:not(.is-done) {
  border-width: 2px;
  border-color: var(--border-dark);
  background: #e8eae6;
  color: var(--text-light);
}

.check-grid button.btn-poster:not(.is-done) .sub {
  color: var(--text-light);
}

.check-grid button.btn-poster:not(.is-done):hover {
  border-color: var(--green-mid);
  color: var(--text-mid);
  background: #dfe3dd;
}

.check-grid button.btn-poster.is-done {
  border-width: 2.5px;
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.check-grid button.btn-poster.is-done .sub {
  color: rgba(255, 255, 255, 0.88);
}

.check-grid button.btn-poster.is-done:hover:not(.upload-deactivated) {
  background: var(--green-mid);
  border-color: var(--green-mid);
  color: #fff;
}

/* Upload valgt men auto-upload fra → stadig passiv grå */
.check-grid button.btn-poster.is-done.upload-deactivated {
  border-color: var(--border-dark);
  background: #e8eae6;
  color: var(--text-light);
}

.check-grid button.btn-poster.is-done.upload-deactivated .sub {
  color: var(--text-light);
}

/* Menneskefilter: kort rød under VAD-nedkøling (tale dæmpet) — højere specificitet end :not(.is-done) */
.check-grid button.btn-poster:not(.is-done).vad-in-cooldown,
.check-grid button.btn-poster.vad-in-cooldown {
  border-width: 2.5px;
  border-color: #b71c1c;
  background: #c62828;
  color: #fff;
}
.check-grid button.btn-poster:not(.is-done).vad-in-cooldown .sub,
.check-grid button.btn-poster.vad-in-cooldown .sub {
  color: rgba(255, 255, 255, 0.92);
}
.check-grid button.btn-poster:not(.is-done).vad-in-cooldown:hover,
.check-grid button.btn-poster.vad-in-cooldown:hover {
  background: #b71c1c;
  border-color: #b71c1c;
  color: #fff;
}

/* VAD genindlæsning: lyd igennem, men ingen ny kill endnu */
.check-grid button.btn-poster:not(.is-done).vad-in-rearm,
.check-grid button.btn-poster.vad-in-rearm {
  border-width: 2.5px;
  border-color: #b8860b;
  background: linear-gradient(180deg, #d4a017 0%, #c9a227 100%);
  color: #1a1a12;
}
.check-grid button.btn-poster:not(.is-done).vad-in-rearm .sub,
.check-grid button.btn-poster.vad-in-rearm .sub {
  color: rgba(26, 26, 18, 0.9);
}
.check-grid button.btn-poster:not(.is-done).vad-in-rearm:hover,
.check-grid button.btn-poster.vad-in-rearm:hover {
  background: linear-gradient(180deg, #c9a227 0%, #b8860b 100%);
  border-color: #a67c00;
  color: #1a1a12;
}

/* hidden-attribut skal respekteres — .badge-* har ellers display som overskrider [hidden] */
.badge-ready[hidden],
.badge-loading[hidden] {
  display: none !important;
}

/* BirdNet FORBEREDT-badge (synlig når modellen er i RAM) */
.badge-ready {
  display: inline-block;
  margin-left: 0;
  padding: 0.12rem 0.4rem;
  white-space: nowrap;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.2;
  vertical-align: middle;
  border-radius: 2px;
  background: var(--yellow);
  color: var(--green);
}

.check-grid button.btn-poster.is-done .badge-ready {
  background: #fff;
  color: var(--green);
}

/* BirdNet: tydelig indlæsningstilstand (badge + amber + puls) */
.badge-loading {
  display: inline-block;
  padding: 0.12rem 0.4rem;
  font-size: 0.52rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  white-space: nowrap;
  border-radius: 2px;
  vertical-align: middle;
  background: #b8860b;
  color: #fff;
}

.check-preload.is-loading {
  border-color: #c9a227 !important;
  background: linear-gradient(180deg, #fffdf5 0%, #fdf1c0 100%) !important;
  color: var(--text) !important;
  cursor: wait;
  animation: birdnet-load-pulse 1.15s ease-in-out infinite;
}

.check-preload.is-loading .sub {
  color: var(--text-mid) !important;
  font-weight: 700;
}

.check-preload.is-loading .check-preload-fill {
  background: rgba(201, 169, 39, 0.18);
}

@keyframes birdnet-load-pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(201, 169, 39, 0.45);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(201, 169, 39, 0.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .check-preload.is-loading,
  .check-grid button.btn-remote.btn-poster.is-loading {
    animation: none;
  }
}

/* Remote (uden data-step): samme mønster */
.check-grid button.btn-remote.btn-poster:not(.is-active) {
  border-color: var(--border-dark);
  background: #e8eae6;
  color: var(--text-light);
}

.check-grid button.btn-remote.btn-poster:not(.is-active) .sub {
  color: var(--text-light);
}

.check-grid button.btn-remote.btn-poster.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.check-grid button.btn-remote.btn-poster.is-active .sub {
  color: rgba(255, 255, 255, 0.88);
}

.check-grid button.btn-remote.btn-poster.is-active:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

.check-grid button.btn-remote.btn-poster.is-loading {
  border-color: #c9a227 !important;
  background: linear-gradient(180deg, #fffdf5 0%, #fdf1c0 100%) !important;
  color: var(--text) !important;
  cursor: wait;
  animation: birdnet-load-pulse 1.15s ease-in-out infinite;
}

/* Preload filling logic */
.check-preload {
  position: relative;
  overflow: hidden;
}

.check-preload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  text-align: center;
}

/* INDLÆSER / FORBEREDT — egen linje over BIRDNET */
.check-preload-status-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 0;
  line-height: 1.15;
}

.check-preload-title-line {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
}

.check-preload-inner {
  position: relative;
  z-index: 2;
}

.check-preload-fill {
  position: absolute;
  left: 0; bottom: 0; right: 0;
  height: calc(100% * var(--preload-p, 0));
  background: rgba(26, 58, 42, 0.08);
  pointer-events: none;
  transition: height 0.1s ease-out;
}

/* ── Panel Styles ────────────────────────────────────────────────────────── */
.poster-panel {
  background: var(--bg-card);
  border: 1.5px solid var(--green);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}

.step-panel {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}
.poster-panel-inner {
  padding: 1.5rem;
  box-sizing: border-box;
}

.bird-card-host {
  margin-top: 2rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.bird-card-host__inner {
  padding: 1.5rem;
  box-sizing: border-box;
}

#panel-location {
  scroll-margin-top: 0.75rem;
}

.step-panel .step-panel__title {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--green);
  text-transform: none;
  letter-spacing: 0.02em;
}

.step-panel .step-panel__lead {
  margin: 0 0 1.25rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 40rem;
}

.step-panel--location .location-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

@media (max-width: 600px) {
  .step-panel--location .location-methods {
    grid-template-columns: 1fr;
  }
}

/* Fuld bredde — egen blok under GPS + intro */
.location-search-strip {
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 1.25rem;
  padding: 0;
}

.location-search-strip__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.location-search-strip__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  background: var(--bg-card);
}

.location-method {
  padding: 1rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.location-method__title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green);
}

.location-method__text {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text-mid);
}

.location-method--search-intro .location-method__text {
  margin-bottom: 0;
}

.map-section-title {
  margin: 0 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-mid);
}

/* Leaflet kræver eksplicit højde — ellers ingen fliser / celle */
#map-canvas.map-canvas,
.map-canvas.leaflet-container {
  width: 100%;
  height: 300px;
  min-height: 300px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  box-sizing: border-box;
  background: #e8ebe8;
}

.step-panel--location .map-canvas {
  margin-bottom: 0.75rem;
}

.step-panel--location .btn-loc-confirm {
  width: 100%;
  margin-top: 0.5rem;
  scroll-margin-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  scroll-margin-top: 0.5rem;
}

.nom-suggestions {
  margin-top: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.nom-suggest-item {
  text-align: left;
  padding: 0.45rem 0.55rem;
  font-size: 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  cursor: pointer;
  color: var(--text);
}

.nom-suggest-item:hover {
  border-color: var(--green-mid);
  color: var(--green);
}

.step-panel .btn-primary {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  border: 2px solid var(--green);
  background: var(--green);
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.step-panel .btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
}

.step-panel .btn-secondary {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-dark);
  background: #e8eae6;
  color: var(--text-mid);
  cursor: pointer;
}

.step-panel .btn-secondary:hover {
  border-color: var(--green-mid);
  color: var(--green);
}

/* ── Listen Section ──────────────────────────────────────────────────────── */
.listen-wrap {
  margin: 1rem 0 3rem;
}

.listen-hint {
  margin-bottom: 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-dark);
  background: #f4f5f3;
  color: var(--text-mid);
}

.listen-hint__lead {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.35;
  text-transform: uppercase;
}

.listen-hint__count {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: #e0e3dc;
  color: var(--text);
  font-weight: 800;
}

.listen-hint__count.listen-hint__count--ready {
  background: rgba(74, 156, 92, 0.2);
  color: var(--green);
}

.listen-hint__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.listen-hint__item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.listen-hint__mark {
  flex-shrink: 0;
  width: 1.1rem;
  text-align: center;
  font-weight: 800;
  color: var(--text-light);
}

.listen-hint__item.is-done .listen-hint__mark {
  color: var(--green);
}

.listen-hint__item.is-done .listen-hint__label {
  color: var(--text);
}

.listen-hint--hidden {
  display: none;
}

button.listen-main.btn-poster--primary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(26, 58, 42, 0.12);
}

/* Lyt: ikke klar (.listen-main--not-ready) = grå, klar / lytter = grøn */
button.listen-main.btn-poster--primary.listen-main--not-ready:not(.is-listening) {
  background: #d4d6d2 !important;
  border-color: var(--border-dark) !important;
  color: var(--text-light) !important;
  box-shadow: none;
  transform: none;
  cursor: pointer;
  opacity: 1;
}

button.listen-main.btn-poster--primary:not(.listen-main--not-ready):not(.is-listening) {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 6px 0 var(--green-mid);
  transform: translateY(-2px);
}

button.listen-main.btn-poster--primary:not(.listen-main--not-ready):not(.is-listening):active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 var(--green-mid);
}

button.listen-main.btn-poster--primary.is-listening {
  border-color: var(--green-mid);
  background: var(--green-mid);
  color: #fff;
  box-shadow: 0 6px 0 #1e3d28;
}

button.listen-main.btn-poster--primary.is-listening:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #1e3d28;
}

/* ── Tally / Results ─────────────────────────────────────────────────────── */
.poster-section {
  margin-top: 3rem;
}

.poster-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: var(--green);
  color: white;
}

.poster-panel-title {
  font-size: 0.85rem;
  margin: 0;
  letter-spacing: 0.1em;
}

.tally-header-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.tally-duration {
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  opacity: 0.65;
  letter-spacing: 0.02em;
}

.tally-badge {
  background: white;
  color: var(--green);
  padding: 0.1rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 800;
  border-radius: 99px;
}

.poster.obs-row {
  border-bottom: 1.5px solid var(--border);
  padding: 1.25rem 0;
  display: flex;
  flex-direction: column;
  background: transparent;
  transition: background 0.2s;
}

.obs-row:hover {
  background: var(--bg-card);
}

.obs-row.obs-row--below-threshold {
  background: #fdfaf0;
}

.obs-row.obs-row--below-threshold:hover {
  background: #fbf5e1;
}

.obs-row.obs-row--below-threshold .micro-card__names {
  color: #8c6a1e;
}

.obs-row__card {
  padding: 0 1.5rem;
}

.tally-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1.5px solid var(--green);
  border-top: none;
  background: var(--bg-card);
  max-height: 25rem;
  overflow-y: auto;
}

.obs-row {
.micro-card__thumb-wrap {
  width: 4rem;
  height: 4rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  flex-shrink: 0;
}

.micro-card__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.micro-card__names {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--green);
  margin-bottom: 0.15rem;
}

.micro-card__facts {
  font-size: 0.72rem;
  color: var(--text-mid);
  font-family: var(--font-mono);
}

.obs-row__bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
  font-size: 0.65rem;
  font-family: var(--font-mono);
}

.obs-row__time {
  color: var(--text-light);
}

.obs-row__conf {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.38rem;
  border: 1px solid var(--green-mid);
  border-radius: 999px;
  background: #edf7ef;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.obs-row__flag {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.35rem;
  border: 1px solid #c6a85d;
  border-radius: 999px;
  background: #fff7d9;
  color: #8a6a1f;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.obs-row__wave-wrap {
  flex: 1 1 14rem;
  height: 24px;
  background: #fdfdfd;
  border: 1px solid var(--border);
  border-radius: 2px;
}

.obs-row__play, .obs-row__upload {
  padding: 0.25rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: transparent;
  border: 1px solid var(--border-dark);
  cursor: pointer;
  border-radius: 2px;
}

.obs-row__play:hover, .obs-row__upload:hover {
  border-color: var(--green);
  color: var(--green);
}

/* ── Remote link (own row below subtitle; long URLs must not shift layout) ─ */
.remote-inline {
  font-size: 0.65rem;
  font-family: var(--font-mono);
  background: var(--yellow);
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border-dark);
  color: var(--text);
  margin: 0.65rem 0 0;
  max-width: min(100%, 28rem);
  width: auto;
  min-width: 0;
  align-self: center;
  box-sizing: border-box;
  word-break: break-all;
  line-height: 1.35;
}

.remote-inline:not([hidden]) {
  cursor: pointer;
}

/* ── Toasts (default = compact; placering uses .toast--fullwidth) ─────── */
#toast-host {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
}

#toast-host .toast {
  pointer-events: auto;
}

.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  max-width: min(100% - 2rem, 28rem);
  width: max-content;
  box-sizing: border-box;
  margin: 0;
  padding: 0.85rem 1.15rem;
  background: var(--green);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  font-size: 0.82rem;
  line-height: 1.4;
  text-align: center;
}

/* Synlig over checklisten på mobil når placering-panel åbnes */
#toast-host .toast.toast--hint-top {
  bottom: auto;
  top: calc(4.5rem + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  max-width: min(100% - 1.25rem, 26rem);
  width: auto;
  font-size: 0.78rem;
  padding: 0.65rem 0.9rem;
  z-index: 10000;
}

.toast.toast--fullwidth {
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  transform: none;
  border-radius: 0;
  padding: 1rem 1.25rem;
  padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  text-align: center;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.14);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* Responsive */
@media (max-width: 600px) {
  .check-grid { grid-template-columns: 1fr 1fr; padding: 1rem; }
  .poster-header .poster-title { font-size: 1.8rem; }
  .poster-header { padding: 3rem 0 1.5rem; }
  .btn-wave-tool:nth-child(3) { width: 100%; } /* Wrap the amplitude button if 3 buttons in bar */
}

/* Hide SR only */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

/* ── Footer Quote ───────────────────────────────────────────────────────── */
.poster-footer {
  margin: 6rem auto 4rem;
  text-align: center;
  padding: 0 1.5rem;
  width: 100%;
  box-sizing: border-box;
  opacity: 0.55;
  transition: opacity 0.3s ease;
}

.poster-footer:hover {
  opacity: 0.85;
}

.poster-footer__quote {
  font-size: 0.68rem;
  line-height: 1.6;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  max-width: 28rem;
  margin: 0 auto;
}
