:root {
  --bg: #050805;
  --panel: #0f1610;
  --panel-2: #131d14;
  --text: #e8f1e8;
  --muted: #9fb39f;
  --green: #2aa84a;
  --green-2: #56d873;
  --danger: #b12424;
  --border: #2f4a32;
  --shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: radial-gradient(circle at 30% 10%, #1a2b1a 0%, var(--bg) 52%);
  color: var(--text);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border);
  background: rgba(5, 9, 6, 0.9);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand h1 { margin: 0; font-size: 1.15rem; }
.brand p { margin: 2px 0 0; color: var(--muted); font-size: 0.85rem; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; }

.layout { max-width: 1200px; margin: 18px auto 30px; padding: 0 14px; }
.panel, .card {
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.auth-panel { padding: 18px; }
.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px;
}
.card { padding: 16px; margin-bottom: 14px; }
.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

h2, h3 { margin-top: 0; }
label { display: block; margin: 10px 0 6px; color: var(--muted); }
input {
  width: 100%;
  border: 1px solid #395d3f;
  background: #0b120c;
  color: var(--text);
  border-radius: 8px;
  padding: 10px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: transform 0.08s ease, box-shadow 0.12s ease,
    filter 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover:not(:disabled):not([disabled]) {
  filter: brightness(1.08);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}
.btn:focus-visible {
  outline: 2px solid var(--green-2, #67ce7c);
  outline-offset: 2px;
}
.btn:active:not(:disabled):not([disabled]) {
  transform: translateY(1px) scale(0.98);
  filter: brightness(0.92);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.45);
}
.btn-primary { background: linear-gradient(180deg, var(--green-2), var(--green)); color: #08230f; }
.btn-secondary { background: #1d281f; color: var(--text); border-color: #355738; }
.btn-danger { background: #2e1010; color: #ffb2b2; border-color: #7f2525; }
.badge {
  border: 1px solid #3f6643;
  padding: 7px 10px;
  border-radius: 999px;
  color: #d4f4d8;
  background: rgba(22, 53, 27, 0.55);
}

.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.tab {
  border: 1px solid #355738;
  background: #152017;
  color: #d6ecd8;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: transform 0.08s ease, background-color 0.12s ease,
    border-color 0.12s ease, filter 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.tab:hover:not(.active) { filter: brightness(1.1); }
.tab:active { transform: translateY(1px) scale(0.98); filter: brightness(0.9); }
.tab.active { background: #2b4d31; border-color: #67ce7c; color: #ecffef; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.feature-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.feature-widget {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid #2d4b30;
  background: #101711;
}
.feature-widget h4 { margin: 0 0 8px; }
.feature-widget .metric {
  font-size: 1.7rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.feature-widget .meta-line {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 10px;
}
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  border: 1px solid #3c5d40;
  background: rgba(24, 48, 28, 0.7);
  color: #d7f4db;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}
.stat {
  background: #111913;
  border: 1px solid #2d4b30;
  border-radius: 12px;
  padding: 10px;
}
.stat .label { color: var(--muted); font-size: 0.8rem; }
.stat .value { font-size: 1.45rem; font-weight: 700; margin-top: 4px; }
.stat-feature {
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.stat-feature .label { font-size: 0.95rem; font-weight: 600; color: #d7f4db; }
.stat-feature .value { font-size: 1.7rem; margin: 2px 0 6px; }
.stat-feature .meta-line {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 10px;
  min-height: 1.1em;
}
.stat-feature .btn { align-self: flex-start; }

.list { display: grid; gap: 10px; }
.list-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.item {
  border: 1px solid #2a422d;
  background: #0e150f;
  border-radius: 10px;
  padding: 10px;
}
.item h4 {
  margin: 10px 0 6px;
}
.item-focused {
  border-color: #67ce7c;
  box-shadow: 0 0 0 2px rgba(103, 206, 124, 0.32), 0 0 24px rgba(86, 216, 115, 0.24);
}
.item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #2d4b30;
}
.item .meta { color: var(--muted); font-size: 0.85rem; }
.item .hero {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.item .grid-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.item .grid-meta .cell {
  background: #101711;
  border: 1px solid #213725;
  border-radius: 8px;
  padding: 8px;
}
.item .grid-meta .label {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  margin-bottom: 4px;
}
.confidence-bar {
  height: 8px;
  border-radius: 999px;
  background: #182119;
  overflow: hidden;
  border: 1px solid #29412d;
  margin-top: 8px;
}
.confidence-bar > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2aa84a, #67ce7c);
}

/* Greyed-out "AI couldn't determine" indicator. Applied to detail
   cards whose value is null/missing from the AI prediction so the
   end user understands the system tried but had no estimate. */
.detail-card.unknown-value {
  background: rgba(255, 255, 255, 0.025);
  border: 1px dashed rgba(245, 158, 11, 0.35);
}
.detail-card.unknown-value .ai-unknown-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.10);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #d1d5db;
  font-size: 11px;
  font-style: italic;
  cursor: help;
}
.detail-card.unknown-value .ai-unknown-icon {
  width: 14px;
  height: 14px;
  fill: #fbbf24;
  flex-shrink: 0;
}
.detail-card.unknown-value .ai-unknown-label {
  white-space: nowrap;
}
.empty-state {
  padding: 18px;
  border: 1px dashed #355738;
  border-radius: 12px;
  color: var(--muted);
}

.map {
  width: 100%;
  height: 540px;
  border: 1px solid #355738;
  border-radius: 10px;
}
.map-dashboard {
  height: 320px;
}
.leaflet-popup-content .map-popup-content {
  line-height: 1.35;
  min-width: 160px;
}
.leaflet-popup-content .map-popup-open-btn {
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 0.82rem;
  border-radius: 6px;
}
.qr-wrap { text-align: center; margin: 12px 0; }
.qr-wrap img { width: 220px; height: 220px; border-radius: 8px; border: 1px solid #355738; background: #fff; }
.code-row { margin-top: 8px; display: flex; justify-content: center; gap: 8px; align-items: center; }

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  margin-bottom: 10px;
}
.toolbar { margin-bottom: 10px; }

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 12px;
}

.integration-form-grid {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.integration-form-grid label {
  margin: 6px 0 2px;
}

.integration-form-grid .checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.integration-form-grid .checkbox-row input[type="checkbox"] {
  width: auto;
  margin: 0;
}

.integration-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.integration-notice {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(59, 130, 246, 0.4);
  color: #cbd5f5;
  font-size: 13px;
  line-height: 1.4;
}

.integration-notice strong {
  display: block;
  margin-bottom: 4px;
  color: #e0e7ff;
}

.integration-sync-banner {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #d1fae5;
  font-size: 13px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.integration-sync-banner.hidden {
  display: none;
}

.integration-sync-banner .spinner {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #d1fae5;
  border-radius: 50%;
  animation: integration-spin 0.9s linear infinite;
  flex-shrink: 0;
}

@keyframes integration-spin {
  to { transform: rotate(360deg); }
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(35%);
}

.integration-output {
  margin-top: 12px;
  max-height: 220px;
  overflow: auto;
}

.integration-preview-summary {
  margin-bottom: 8px;
}

.integration-preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}

.integration-preview-item {
  border: 1px solid #2a422d;
  background: #0e150f;
  border-radius: 10px;
  padding: 8px;
}

.integration-preview-item img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #2d4b30;
  background: #0b120c;
}

.integration-preview-item .meta {
  margin-top: 6px;
}

.integration-history {
  margin-top: 10px;
  max-height: 360px;
  overflow: auto;
  display: grid;
  gap: 8px;
}

.integration-history-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #0e150f;
  padding: 8px;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 10px;
}

.integration-history-item img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #0b120c;
}

.integration-history-meta {
  display: grid;
  gap: 4px;
}

.integration-history-status {
  font-weight: 600;
}

.integration-history-status.status-animal-detected {
  color: var(--green-2);
}

.integration-history-status.status-no-animal,
.integration-history-status.status-error {
  color: #ffb2b2;
}

.integration-history-status.status-not-evaluated,
.integration-history-status.status-existing,
.integration-history-status.status-no-image {
  color: var(--muted);
}

@media (max-width: 680px) {
  .integration-history-item {
    grid-template-columns: 1fr;
  }
  .integration-history-item img {
    height: 140px;
  }
}

.meta.error-text {
  color: #ffb2b2;
}
.json {
  background: #090f09;
  border: 1px solid #2f4831;
  border-radius: 8px;
  padding: 10px;
  overflow: auto;
  color: #d4f0d6;
}

.toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  background: #122715;
  border: 1px solid #4ca75e;
  color: #d5ffde;
  padding: 10px 14px;
  border-radius: 10px;
  z-index: 50;
}

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.hidden { display: none !important; }

@media (max-width: 820px) {
  .inline-form { grid-template-columns: 1fr; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .section-heading { flex-direction: column; }
  .item .grid-meta { grid-template-columns: 1fr; }
  .map { height: 420px; }
  .map-dashboard { height: 280px; }
  .detail-header { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
}
.item.item-clickable {
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.item.item-clickable:hover {
  transform: translateY(-1px);
  border-color: #67ce7c;
  box-shadow: 0 0 0 1px rgba(103, 206, 124, 0.2), 0 8px 20px rgba(0, 0, 0, 0.24);
}
.modal {
  position: fixed;
  inset: 0;
  /* Leaflet uses z-index up to ~1000 for its panes/controls. Stay well above
     those so the modal's dialog (and its own embedded map) render in front of
     any dashboard map underneath. */
  z-index: 2000;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(3px);
}
.modal-dialog {
  position: relative;
  width: min(980px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  margin: 12px auto;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--panel), var(--panel-2));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.modal-close {
  position: sticky;
  top: 10px;
  margin-left: calc(100% - 54px);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid #426946;
  background: rgba(12, 20, 13, 0.92);
  color: #effff1;
  cursor: pointer;
  font-size: 1.4rem;
  z-index: 2;
}
.modal-content {
  padding: 6px 18px 18px;
}
.detail-header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: start;
}
.detail-media img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #2d4b30;
  background: #090f09;
}
.detail-title {
  margin: 0;
  font-size: 1.5rem;
}
.detail-subtitle {
  color: var(--muted);
  margin: 6px 0 12px;
}
.detail-section {
  margin-top: 16px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.detail-card {
  border: 1px solid #213725;
  border-radius: 10px;
  padding: 10px;
  background: #101711;
}
.detail-card .label {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 4px;
}
.detail-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}
.detail-json {
  white-space: pre-wrap;
  word-break: break-word;
  background: #090f09;
  border: 1px solid #2f4831;
  border-radius: 10px;
  padding: 12px;
  color: #d4f0d6;
  font-size: 0.85rem;
}

.section-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin-top: 14px;
}
.form-grid .field-full { grid-column: 1 / -1; }
.form-grid label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  margin-bottom: 4px;
}
.form-grid input[type="text"],
.form-grid input[type="number"],
.form-grid input[type="email"],
.form-grid input[type="password"],
.form-grid input[type="date"],
.form-grid input[type="datetime-local"],
.form-grid select,
.form-grid textarea {
  width: 100%;
  background: #0b110c;
  border: 1px solid #2d4b30;
  color: #e3f3e6;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.form-grid textarea { min-height: 80px; resize: vertical; }
.form-grid .checkbox-row {
  display: flex; align-items: center; gap: 8px;
  color: #d4f0d6; font-size: 0.92rem;
}
.form-footer {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 18px; padding-top: 14px;
  border-top: 1px solid #213725;
}
.upload-zone {
  border: 1px dashed #426946;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background: #0b110c;
  cursor: pointer;
  margin-bottom: 14px;
}
.upload-zone:hover { border-color: #67ce7c; }
.upload-zone.has-image { padding: 8px; }
.upload-preview {
  max-width: 100%;
  max-height: 320px;
  border-radius: 8px;
  display: block;
  margin: 0 auto;
}
.ai-status {
  background: #0e1a10;
  border: 1px solid #2f4831;
  border-radius: 10px;
  padding: 12px;
  margin: 10px 0;
  color: #d4f0d6;
  font-size: 0.92rem;
}
.ai-status.error { border-color: #7a3d3d; color: #f3c9c9; background: #1a0e0e; }
.ai-status .spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #67ce7c; border-top-color: transparent; animation: spin 0.8s linear infinite; vertical-align: middle; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }
.feeder-actions {
  display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap;
}
.feeder-actions .btn { padding: 4px 10px; font-size: 0.85rem; }

.shared-detail .detail-header { display: grid; gap: 12px; align-items: start; margin-bottom: 18px; }
.shared-detail .detail-title { margin: 0 0 4px; }
.shared-detail .detail-section { margin-top: 18px; }
.shared-detail .detail-section h3 { margin: 0 0 10px; font-size: 1rem; color: #cbd5f5; }
.shared-detail .member-list { display: flex; flex-direction: column; gap: 6px; }
.shared-detail .member-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #1a2030; border: 1px solid #2b3346; border-radius: 8px; padding: 10px 12px;
}
.shared-detail .member-row .btn { padding: 4px 10px; font-size: 0.8rem; }
.shared-detail .member-add { margin-bottom: 12px; }
.shared-detail .member-add input {
  width: 100%; padding: 8px 12px; border-radius: 8px; border: 1px solid #2b3346;
  background: #0f1623; color: #f1f5f9; font-size: 0.9rem;
}
.shared-detail .member-search-results { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.shared-detail .member-result {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: #141a27; border: 1px solid #232a3c; border-radius: 8px; padding: 8px 12px;
}
.shared-detail .member-result .btn { padding: 4px 12px; font-size: 0.8rem; }
.shared-detail code { background: #141a27; padding: 2px 6px; border-radius: 4px; font-size: 0.85rem; }

/* ============================================================
   Boone & Crockett scoresheet — printed-form styling.
   Rendered inside the existing detail modal.
   ============================================================ */
.bc-loading {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 60px 20px; color: #cbd5f5;
}
.bc-loading .spinner {
  width: 32px; height: 32px; border-radius: 50%;
  border: 3px solid #1f2937; border-top-color: #10b981;
  animation: bc-spin 0.8s linear infinite;
}
@keyframes bc-spin { to { transform: rotate(360deg); } }

.bc-sheet {
  background: #ffffff;
  color: #111;
  padding: 14px;
  border-radius: 6px;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.35;
}
.bc-sheet table { border-collapse: collapse; width: 100%; }
.bc-sheet td, .bc-sheet th { padding: 4px 6px; }

.bc-header-strip {
  background: #000; color: #fff; text-align: center;
  font-weight: 700; letter-spacing: .5px; padding: 6px 8px; font-size: 15px;
}
.bc-subheader-strip {
  background: #000; color: #fff; text-align: center;
  font-size: 9px; letter-spacing: .2px; padding: 0 8px 6px;
}
.bc-category {
  border: 1px solid #000;
  text-align: center; font-style: italic; font-weight: 700;
  padding: 5px; margin-top: 6px; font-size: 14px;
}
.bc-diagram { display: flex; justify-content: center; margin: 8px 0; }
.bc-diagram svg { width: 320px; max-width: 100%; height: auto; }

.bc-section { border: 1px solid #000; margin-top: 6px; }
.bc-section-title {
  background: #000; color: #fff; font-size: 10px; font-weight: 700;
  text-align: center; padding: 3px 6px;
}
.bc-kv td { border-bottom: 1px solid #000; font-size: 11px; }
.bc-kv td:last-child { text-align: right; font-weight: 700; width: 110px; }
.bc-kv tr:last-child td { border-bottom: 0; }
.bc-kv tr.bc-emph td { font-weight: 700; }

.bc-grid { border: 1px solid #000; margin-top: 6px; }
.bc-grid th { background: #000; color: #fff; font-size: 10px; }
.bc-grid .bc-grid-headers-2 th { background: #e5e7eb; color: #111; }
.bc-grid td { border-top: 1px solid #000; font-size: 11px; }
.bc-grid td.bc-lbl { width: 50%; }
.bc-grid td.bc-val { text-align: center; border-left: 1px solid #000; font-weight: 600; }
.bc-grid tfoot td { background: #f3f4f6; font-weight: 700; }
.bc-grid tfoot td.bc-totals-lbl { text-align: left; }

.bc-final {
  display: flex; align-items: center; justify-content: space-between;
  background: #fef3c7; padding: 8px 10px; border-top: 1px solid #000;
}
.bc-final span { font-size: 14px; font-weight: 700; letter-spacing: .5px; }
.bc-final strong {
  background: #fff; border: 2px solid #000; padding: 6px 16px;
  font-size: 22px;
}

.bc-footer { padding: 8px; }
.bc-fkv { display: flex; gap: 8px; font-size: 11px; padding: 2px 0; }
.bc-fkv > span:first-child { width: 110px; font-weight: 700; }
.bc-fkv > span:last-child { flex: 1; }

.bc-meta {
  text-align: center; color: #555; font-size: 10px; margin-top: 10px;
}

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

.bc-empty {
  background: #ffffff; color: #111; border-radius: 6px;
  padding: 28px 20px; text-align: center;
}
.bc-empty-title { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.bc-empty-msg { margin-bottom: 16px; color: #444; }

/* Camera Locations modal (Moultrie / VOSKER) */
.camera-locations-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
}
.camera-locations-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  background: #111913;
  border: 1px solid #2d4b30;
  border-radius: 8px;
}
.camera-locations-row-main { flex: 1 1 auto; min-width: 0; }
.camera-locations-row-name {
  font-weight: 600;
  color: #e6f5e8;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.camera-locations-row-meta { color: var(--muted); font-size: 0.85rem; margin-top: 4px; }
.camera-locations-row-actions { display: flex; gap: 6px; flex-shrink: 0; }
.camera-locations-picker { display: flex; flex-direction: column; gap: 8px; }
.pill.pill-green { border-color: #3c8a4c; background: rgba(40, 110, 60, 0.7); }
.pill.pill-grey  { border-color: #555; background: rgba(80, 80, 80, 0.5); color: #ddd; }
.pill.pill-amber { border-color: #b88600; background: rgba(140, 100, 20, 0.6); color: #ffe9a8; }

/* Camera Locations search */
.camera-locations-search { position: relative; margin-bottom: 10px; }
.camera-locations-search input {
  width: 100%;
  background: #111913;
  color: #e6f5e8;
  border: 1px solid #2d4b30;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 0.9rem;
}
.camera-locations-search input:focus { outline: none; border-color: #3c8a4c; }
.camera-locations-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 5;
  margin-top: 4px;
  max-height: 200px;
  overflow-y: auto;
  background: #0c130e;
  border: 1px solid #2d4b30;
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.5);
}
.camera-locations-search-row {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #1a2a1d;
  color: #e6f5e8;
  padding: 8px 10px;
  cursor: pointer;
}
.camera-locations-search-row:hover { background: #14211a; }
.camera-locations-search-row:last-child { border-bottom: 0; }
.camera-locations-search-short { font-weight: 600; font-size: 0.9rem; }
.camera-locations-search-full { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }
.camera-locations-search-loading,
.camera-locations-search-empty { padding: 10px; color: var(--muted); font-size: 0.85rem; }
