﻿:root {
  --bg: #0b0d10;
  --bg-deep: #07080a;
  --panel: rgba(21, 25, 31, 0.9);
  --panel-strong: rgba(21, 25, 31, 0.96);
  --line: rgba(201, 162, 75, 0.18);
  --line-strong: rgba(201, 162, 75, 0.4);
  --text: #efe9dc;
  --muted: #a39c8c;
  --cyan: #dcb95f;
  --teal: #dcb95f;
  --blue: #c9c2b2;
  --amber: #ffab4a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 12% 10%, rgba(201, 162, 75, 0.18), transparent 28%),
    radial-gradient(circle at 88% 0%, rgba(201, 162, 75, 0.1), transparent 24%),
    linear-gradient(130deg, var(--bg) 0%, var(--bg-deep) 100%);
  color: var(--text);
  font-family: 'Inter', sans-serif;
}

body {
  min-height: 100vh;
  padding: 28px;
}

.hud-shell {
  max-width: 1320px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(11, 13, 16, 0.75);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  overflow: hidden;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(21, 25, 31, 0.9);
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 3px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(135deg, rgba(201, 162, 75, 0.12), rgba(201, 162, 75, 0.08));
  color: var(--cyan);
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.topbar-meta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.status-pill.live {
  background: rgba(201, 162, 75, 0.08);
  color: var(--teal);
}

.status-pill.muted {
  background: rgba(122, 135, 140, 0.08);
  color: var(--muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(201, 162, 75, 0.15);
}

.chat-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  min-height: 760px;
}

.sidebar-panel {
  padding: 20px;
  border-right: 1px solid var(--line);
  background: rgba(16, 19, 23, 0.8);
}

.mini-panel {
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(16, 19, 23, 0.8);
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(201, 162, 75, 0.08);
  color: var(--muted);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row strong {
  color: var(--text);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.quick-actions button {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(29, 35, 43, 0.7);
  color: var(--text);
  padding: 10px 8px;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  cursor: pointer;
}

.alerts-panel {
  padding-bottom: 12px;
}

.alert-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  color: var(--text);
}

.alert-line.muted {
  color: var(--muted);
}

.alert-indicator {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(201, 162, 75, 0.12);
}

.alert-indicator.subtle {
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(255, 211, 138, 0.12);
}

.chat-panel {
  display: flex;
  flex-direction: column;
  padding: 22px 28px 18px;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
}

.chat-header h1 {
  margin: 0;
  font-size: clamp(2rem, 2.3vw, 3rem);
  letter-spacing: -0.06em;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border: 1px solid rgba(201, 162, 75, 0.32);
  border-radius: 999px;
  color: var(--teal);
  background: rgba(201, 162, 75, 0.08);
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.badge.subtle {
  border-color: rgba(201, 162, 75, 0.28);
  color: var(--blue);
  background: rgba(201, 162, 75, 0.08);
}

.conversation {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(13, 16, 20, 0.86);
  overflow: auto;
}

.message {
  max-width: 76%;
  padding: 14px 16px 12px;
  border-radius: 3px;
  border: 1px solid var(--line);
}

.message.assistant {
  align-self: flex-start;
  background: rgba(15, 31, 35, 0.8);
}

.message.user {
  align-self: flex-end;
  background: rgba(29, 35, 43, 0.9);
  border-color: rgba(201, 162, 75, 0.28);
}

.message-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.message p {
  margin: 0;
  line-height: 1.6;
  color: var(--text);
}

.command-form {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.command-form input {
  flex: 1;
  min-height: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(10, 24, 28, 0.9);
  color: var(--text);
  font-size: 1rem;
  padding: 0 18px;
  outline: none;
}

.command-form input:focus {
  border-color: rgba(201, 162, 75, 0.72);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.12);
}

.command-form button {
  min-width: 120px;
  border: 1px solid rgba(201, 162, 75, 0.44);
  border-radius: 3px;
  background: linear-gradient(135deg, rgba(201, 162, 75, 0.18), rgba(201, 162, 75, 0.14));
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 860px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }

  .sidebar-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  body {
    padding: 18px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .quick-actions {
    grid-template-columns: 1fr 1fr;
  }

  .message {
    max-width: 88%;
  }

  .command-form {
    flex-direction: column;
  }
}

[hidden] { display: none !important; }

.topbar-meta { flex-wrap: wrap; }

.view-switch {
  display: flex;
  gap: 5px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(8, 9, 11, 0.7);
}

.nav-button, .refresh-button {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 9px 12px;
  background: transparent;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.nav-button.active {
  border-color: var(--line-strong);
  background: rgba(201, 162, 75, 0.1);
  color: var(--cyan);
}

.noc-view {
  min-height: 760px;
  padding: clamp(20px, 3vw, 36px);
}

.noc-heading, .panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.noc-heading { margin-bottom: 24px; }

.noc-heading h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  letter-spacing: -0.05em;
}

.noc-subtitle, .estimate-note, .chart-footnote {
  color: var(--muted);
  line-height: 1.6;
}

.noc-subtitle { max-width: 720px; margin: 8px 0 0; }

.refresh-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--teal);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.refresh-status::before {
  content: '';
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 5px rgba(201, 162, 75, 0.1);
}

.refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  flex: 0 0 auto;
  border-color: var(--line-strong);
  background: rgba(201, 162, 75, 0.1);
  color: var(--cyan);
  padding: 12px 16px;
}

.refresh-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(201, 162, 75, 0.28);
  border-top-color: var(--cyan);
  border-radius: 50%;
}

.refresh-button.is-loading .refresh-spinner {
  display: inline-block;
  animation: refresh-spin 0.75s linear infinite;
}

.refresh-button:disabled { cursor: wait; opacity: 0.82; }

@keyframes refresh-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .refresh-button.is-loading .refresh-spinner { animation-duration: 2s; }
}

.usage-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.usage-card, .noc-panel {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(15, 18, 22, 0.86);
}

.usage-card { min-height: 142px; padding: 18px; }

.usage-card.highlight {
  border-color: rgba(201, 162, 75, 0.35);
  background: linear-gradient(140deg, rgba(201, 162, 75, 0.2), rgba(15, 18, 22, 0.92));
}

.usage-card .eyebrow { margin-bottom: 16px; }

.usage-card strong {
  display: block;
  color: var(--text);
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.45rem, 2vw, 2rem);
  letter-spacing: -0.04em;
}

.usage-card.highlight strong { color: var(--teal); }

.usage-card > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.noc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.85fr);
  gap: 14px;
}

.noc-panel { padding: 20px; }

.panel-heading { margin-bottom: 18px; }
.panel-heading .eyebrow { margin-bottom: 6px; }
.panel-heading h2 { margin: 0; font-size: 1.1rem; letter-spacing: -0.02em; }

.live-indicator, .chart-legend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
}

.live-indicator .dot { width: 6px; height: 6px; box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.1); }

.source-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid rgba(201, 162, 75, 0.1);
}

.source-name { display: flex; align-items: center; gap: 12px; }
.source-name strong, .source-name small, .source-metric strong, .source-metric small { display: block; }
.source-name strong { font-size: 0.76rem; letter-spacing: 0.1em; }
.source-name small, .source-metric small { margin-top: 5px; color: var(--muted); font-size: 0.7rem; }
.source-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 3px; font-family: 'Playfair Display', serif; font-weight: 700; }
.api-mark { color: var(--cyan); background: rgba(201, 162, 75, 0.1); }
.code-mark { color: var(--amber); background: rgba(255, 211, 138, 0.1); }
.source-metric { text-align: right; }
.source-metric strong { font-family: 'Playfair Display', serif; color: var(--text); font-size: 1rem; }
.estimate-note { margin: 14px 0 0; font-size: 0.7rem; }

.budget-form { display: grid; gap: 12px; }
.budget-form label { color: var(--text); font-size: 0.78rem; }
.budget-form label span { float: right; color: var(--muted); font-size: 0.68rem; }
.budget-form input {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 7px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: rgba(11, 13, 16, 0.9);
  color: var(--text);
  font: inherit;
}
.budget-form button {
  min-height: 42px;
  border: 1px solid rgba(201, 162, 75, 0.38);
  border-radius: 3px;
  background: rgba(201, 162, 75, 0.1);
  color: var(--cyan);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  cursor: pointer;
}
.budget-alert { margin-top: 12px; padding: 11px 12px; border-radius: 3px; background: rgba(201, 162, 75, 0.07); color: var(--muted); font-size: 0.74rem; line-height: 1.5; }
.budget-alert.warning { border: 1px solid rgba(255, 211, 138, 0.3); color: var(--amber); background: rgba(255, 211, 138, 0.07); }
.budget-alert.over { border: 1px solid rgba(255, 129, 129, 0.35); color: #ff9a9a; background: rgba(255, 129, 129, 0.08); }

.copilot-credit-panel { grid-column: 1 / -1; }
.copilot-credit-note { margin: -4px 0 16px; max-width: 860px; color: var(--muted); font-size: 0.76rem; line-height: 1.55; }
.copilot-credit-form { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; }
.credit-meter-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.credit-meter { flex: 1; height: 8px; overflow: hidden; border: 1px solid var(--line); border-radius: 999px; background: rgba(8, 9, 11, 0.8); }
.credit-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--amber)); transition: width 0.35s ease; }
.credit-meter-row strong { min-width: 58px; color: var(--cyan); font-family: 'Playfair Display', serif; font-size: 0.75rem; text-align: right; }
.copilot-cost-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.copilot-cost-summary > div { padding: 12px; border: 1px solid var(--line); border-radius: 3px; background: rgba(8, 9, 11, 0.42); }
.copilot-cost-summary span, .copilot-cost-summary strong { display: block; }
.copilot-cost-summary span { color: var(--muted); font-size: 0.6rem; letter-spacing: 0.12em; }
.copilot-cost-summary strong { margin-top: 8px; color: var(--text); font-family: 'Playfair Display', serif; font-size: 1rem; }
.copilot-cost-summary .copilot-total-cost strong { color: var(--teal); }
.copilot-usage-link { display: inline-block; margin-top: 11px; color: var(--cyan); font-size: 0.72rem; text-decoration: none; }
.copilot-usage-link:hover { text-decoration: underline; }

.chart-panel { grid-column: 1 / -1; }
.chart-legend { color: var(--muted); }
.chart-legend i { width: 9px; height: 9px; border-radius: 3px; background: var(--cyan); }
.usage-chart { display: grid; grid-template-columns: repeat(14, minmax(10px, 1fr)); align-items: end; gap: clamp(5px, 1vw, 12px); height: 150px; padding: 12px 0 0; border-bottom: 1px solid var(--line); }
.chart-day { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; height: 100%; min-width: 0; }
.chart-bar { width: min(100%, 28px); min-height: 3px; border: 1px solid rgba(201, 162, 75, 0.22); border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, var(--cyan), rgba(201, 162, 75, 0.4)); box-shadow: 0 0 16px rgba(201, 162, 75, 0.12); }
.chart-day span { color: var(--muted); font-size: 0.58rem; white-space: nowrap; }
.chart-footnote { margin: 12px 0 0; font-size: 0.68rem; }

@media (max-width: 900px) {
  .usage-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .noc-grid { grid-template-columns: 1fr; }
  .chart-panel { grid-column: auto; }
  .copilot-credit-panel { grid-column: auto; }
}

@media (max-width: 640px) {
  .topbar-meta { justify-content: flex-start; }
  .view-switch { order: 2; width: 100%; }
  .view-switch button { flex: 1; }
  .noc-heading { align-items: flex-start; flex-direction: column; }
  .usage-cards { grid-template-columns: 1fr 1fr; gap: 8px; }
  .usage-card { min-height: 126px; padding: 14px; }
  .usage-card .eyebrow { font-size: 0.56rem; }
  .usage-chart { gap: 4px; }
  .chart-day span { font-size: 0.5rem; }
  .copilot-credit-form { grid-template-columns: 1fr; }
  .copilot-cost-summary { grid-template-columns: 1fr; }
}

/* Chat mode is a viewport-fitted app shell; only the transcript can scroll. */
body.chat-active {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding: 16px;
  overflow: hidden;
}

body.chat-active .hud-shell {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: calc(100vh - 32px);
  height: calc(100dvh - 32px);
  min-height: 0;
  margin: 0 auto;
}

body.chat-active .topbar { flex: 0 0 auto; }

body.chat-active .chat-layout {
  display: flex;
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  overflow: hidden;
}

body.chat-active .sidebar-panel { display: none; }

body.chat-active .chat-panel {
  flex: 1 1 auto;
  width: min(100%, 980px);
  min-height: 0;
  margin: 0 auto;
  padding: 24px clamp(18px, 4vw, 48px) 18px;
}

body.chat-active .chat-header { flex: 0 0 auto; padding-bottom: 12px; }

body.chat-active .chat-header h1 {
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
  letter-spacing: -0.045em;
}

.chat-subtitle { margin: 7px 0 0; color: var(--muted); font-size: 0.86rem; }

body.chat-active .conversation {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  overscroll-behavior: contain;
  overflow-y: auto;
  scrollbar-width: none;
}

body.chat-active .conversation::-webkit-scrollbar { display: none; }
body.chat-active .message p { white-space: pre-wrap; overflow-wrap: anywhere; }

.chat-suggestions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}

.chat-suggestions button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(29, 35, 43, 0.65);
  color: var(--muted);
  font: inherit;
  font-size: 0.74rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.chat-suggestions button:hover {
  border-color: var(--line-strong);
  background: rgba(201, 162, 75, 0.08);
  color: var(--cyan);
}

body.chat-active .command-form { flex: 0 0 auto; margin-top: 12px; }

@media (max-width: 640px) {
  body.chat-active { padding: 8px; }
  body.chat-active .hud-shell { height: calc(100vh - 16px); height: calc(100dvh - 16px); border-radius: 3px; }
  body.chat-active .chat-panel { padding: 14px 12px 12px; }
  body.chat-active .conversation { padding: 14px 10px; gap: 12px; border-radius: 3px; }
  body.chat-active .message { max-width: 94%; }
  body.chat-active .chat-suggestions { gap: 6px; margin-top: 10px; }
  body.chat-active .chat-suggestions button { padding: 7px 10px; font-size: 0.68rem; }
  body.chat-active .command-form { flex-direction: row; gap: 8px; }
  body.chat-active .command-form input { min-width: 0; min-height: 50px; padding: 0 13px; font-size: 0.9rem; }
  body.chat-active .command-form button { min-width: 76px; min-height: 50px; border-radius: 3px; font-size: 0.7rem; }
}

/* ---------- HUNT tab ---------- */
.hunt-map { position: relative; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--panel); }
.hunt-map img { display: block; width: 100%; height: auto; }
.hunt-map.placing { cursor: crosshair; outline: 2px dashed var(--amber); outline-offset: -2px; }
.hunt-pins { position: absolute; inset: 0; pointer-events: none; }
.hunt-pin { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; font: inherit; }
.hunt-pin-dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(11, 13, 16, 0.85); border: 2px solid var(--teal); box-shadow: 0 0 0 6px rgba(201, 162, 75, 0.18), 0 0 22px rgba(201, 162, 75, 0.45); font-size: 1.05rem; animation: huntPulse 2.4s ease-in-out infinite; }
.hunt-pin-label { padding: 3px 8px; border-radius: 999px; background: rgba(11, 13, 16, 0.88); border: 1px solid var(--line-strong); font-size: 0.68rem; font-weight: 700; white-space: nowrap; letter-spacing: 0.04em; }
.hunt-pin:hover .hunt-pin-dot, .hunt-pin:focus-visible .hunt-pin-dot { border-color: var(--amber); transform: scale(1.1); }
.hunt-pin.selected .hunt-pin-dot { border-color: var(--amber); box-shadow: 0 0 0 8px rgba(255, 211, 138, 0.25); }
@keyframes huntPulse { 50% { box-shadow: 0 0 0 10px rgba(201, 162, 75, 0.05), 0 0 26px rgba(201, 162, 75, 0.6); } }
@media (prefers-reduced-motion: reduce) { .hunt-pin-dot { animation: none; } }
.hunt-unplaced { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.hunt-view .budget-alert { margin: 0 0 12px; }
.hunt-back { margin-bottom: 12px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--cyan); font: 600 0.7rem 'Inter', sans-serif; letter-spacing: 0.08em; cursor: pointer; }
.hunt-back:hover { background: rgba(201, 162, 75, 0.08); }
.hunt-wide { grid-column: 1 / -1; }
.hunt-toggle { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.75rem; cursor: pointer; }
.hunt-visits { display: grid; gap: 14px; }
.hunt-visit { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 3px; background: rgba(201, 162, 75, 0.04); }
.hunt-visit.maybe { border-style: dashed; opacity: 0.85; }
.hunt-photos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.hunt-photo { padding: 0; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: #000; cursor: zoom-in; }
.hunt-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.2s; }
.hunt-photo:hover img { transform: scale(1.03); }
.hunt-visit-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.hunt-note { margin: 0 0 8px; color: var(--amber); font-size: 0.82rem; }
.hunt-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hunt-chip { padding: 5px 9px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 13, 16, 0.6); color: var(--text); font-size: 0.74rem; }
.hunt-chip.good { border-color: rgba(201, 162, 75, 0.5); color: var(--teal); }
.hunt-outlook { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.hunt-day { display: flex; flex-direction: column; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 3px; background: rgba(11, 13, 16, 0.5); font-size: 0.72rem; }
.hunt-day strong { font-size: 0.82rem; }
.hunt-day.prime { border-color: rgba(201, 162, 75, 0.6); box-shadow: 0 0 18px rgba(201, 162, 75, 0.12); }
.hunt-day.good { border-color: rgba(201, 162, 75, 0.3); }
.hunt-day.tough { opacity: 0.7; }
.hunt-rating { font-family: 'Playfair Display', serif; font-size: 0.66rem; letter-spacing: 0.1em; color: var(--muted); }
.hunt-day.prime .hunt-rating, .hunt-day.good .hunt-rating { color: var(--teal); }
.hunt-day-line { color: var(--muted); }
.hunt-flags { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 3px; }
.hunt-flags li.good { color: var(--teal); }
.hunt-flags li.good::before { content: '▲ '; }
.hunt-flags li.bad { color: var(--amber); }
.hunt-flags li.bad::before { content: '▼ '; }
.hunt-bars { display: grid; gap: 10px; }
.hunt-bar-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 120px; align-items: center; gap: 10px; font-size: 0.75rem; }
.hunt-bar-track { height: 12px; border-radius: 6px; background: rgba(201, 162, 75, 0.08); overflow: hidden; }
.hunt-bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, rgba(201, 162, 75, 0.5), var(--teal)); }
.hunt-bar-value { color: var(--muted); text-align: right; }
.hunt-hour-chart { grid-template-columns: repeat(24, minmax(4px, 1fr)); gap: 3px; }
.hunt-lightbox { max-width: min(1100px, 94vw); padding: 12px; border: 1px solid var(--line-strong); border-radius: 3px; background: var(--panel-strong); color: var(--text); }
.hunt-lightbox::backdrop { background: rgba(0, 0, 0, 0.75); }
.hunt-lightbox img { display: block; max-width: 100%; max-height: 78vh; border-radius: 3px; }
.hunt-lightbox p { margin: 10px 0; color: var(--muted); font-size: 0.8rem; }
.hunt-lightbox button { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--cyan); font-weight: 700; cursor: pointer; }
@media (max-width: 1100px) { .hunt-outlook { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hunt-visit { grid-template-columns: 1fr; }
  .hunt-outlook { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hunt-bar-row { grid-template-columns: 80px minmax(0, 1fr); }
  .hunt-bar-value { grid-column: 1 / -1; text-align: left; }
  .hunt-pin-label { display: none; }
  .hunt-pin-dot { width: 30px; height: 30px; font-size: 0.85rem; }
}

/* HUNT: processing jobs + wildlife */
.hunt-jobs-panel { margin-top: 18px; }
.hunt-job-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hunt-job-form input, .hunt-job-form select, .hunt-job-ask input, .hunt-job-ask select { min-width: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 3px; background: rgba(11, 13, 16, 0.7); color: var(--text); font: inherit; font-size: 0.85rem; }
.hunt-job-form button, .hunt-new-camera button { padding: 10px 16px; border: 1px solid rgba(201, 162, 75, 0.5); border-radius: 3px; background: rgba(201, 162, 75, 0.12); color: var(--teal); font-weight: 700; letter-spacing: 0.06em; cursor: pointer; }
.hunt-jobs { display: grid; gap: 10px; margin-top: 12px; }
.hunt-job { padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: rgba(11, 13, 16, 0.5); display: grid; gap: 8px; }
.hunt-job.needs_camera, .hunt-job.needs_clock { border-color: rgba(255, 211, 138, 0.5); }
.hunt-job.failed { border-color: rgba(255, 129, 129, 0.45); }
.hunt-job.done { opacity: 0.85; }
.hunt-job-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.hunt-job-msg { margin: 0; color: var(--muted); font-size: 0.8rem; }
.hunt-job-ask { display: grid; gap: 10px; padding: 12px; border-radius: 3px; background: rgba(255, 211, 138, 0.06); }
.hunt-job-ask p { margin: 0; font-size: 0.82rem; }
/* answer buttons inside a job question must look clickable (they were plain grey text) */
.hunt-ask-row .nav-button { padding: 9px 14px; border: 1px solid rgba(201, 162, 75, 0.5); border-radius: 3px; background: rgba(201, 162, 75, 0.12); color: var(--teal); font-weight: 700; }
.hunt-ask-row .nav-button:hover { background: rgba(201, 162, 75, 0.22); }
.hunt-ask-row .nav-button:first-child { background: rgba(201, 162, 75, 0.24); }
/* "working on it" state after answering a job question (add camera, clock) */
.hunt-working { grid-template-columns: auto 1fr; align-items: center; color: var(--cyan); font-size: 0.85rem; }
.hunt-spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--cyan); animation: hunt-spin 0.8s linear infinite; }
@keyframes hunt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .hunt-spinner { animation: none; border-top-color: var(--line-strong); background: var(--cyan); opacity: 0.6; } }
.hunt-scene { max-width: 420px; width: 100%; border-radius: 8px; border: 1px solid var(--line); }
.hunt-ask-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hunt-new-camera { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hunt-new-camera .hunt-file { grid-column: 1 / -1; color: var(--muted); font-size: 0.78rem; }
.hunt-wild-group + .hunt-wild-group { margin-top: 16px; }
.hunt-wild-title { margin: 0 0 8px; font-size: 0.9rem; }
.hunt-wild-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.hunt-wild-strip .hunt-photo { position: relative; }
.hunt-wild-time { position: absolute; left: 6px; bottom: 6px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, 0.65); font-size: 0.66rem; color: var(--text); }
/* card upload row + the "type a path" fallback */
.hunt-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.hunt-upload button { padding: 10px 16px; border: 1px solid rgba(201, 162, 75, 0.5); border-radius: 3px; background: rgba(201, 162, 75, 0.12); color: var(--teal); font: inherit; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; cursor: pointer; }
.hunt-upload button:disabled { opacity: 0.5; cursor: progress; }
.hunt-upload select { min-width: 0; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 3px; background: rgba(11, 13, 16, 0.7); color: var(--text); font: inherit; font-size: 0.85rem; }
.hunt-upload .chart-footnote { flex: 1 1 260px; margin: 0; }
.hunt-job-path { margin-top: 10px; }
.hunt-job-path summary { cursor: pointer; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.02em; }
.hunt-job-path summary:hover { color: var(--text); }
.hunt-job-path[open] summary { margin-bottom: 8px; }
@media (max-width: 760px) { .hunt-job-form, .hunt-new-camera { grid-template-columns: 1fr; } }
.hunt-job-progress { display: grid; grid-template-columns: 90px minmax(0, 1fr) 48px; align-items: center; gap: 10px; }
.hunt-job-stage { color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; }
.hunt-job-pct { text-align: right; font-family: 'Playfair Display', serif; font-size: 0.8rem; color: var(--teal); }
.hunt-job-eta { margin: 0; color: var(--text); font-size: 0.8rem; }
.hunt-job.stopped { border-color: rgba(255, 211, 138, 0.35); }
.hunt-stop { justify-self: start; border-color: rgba(255, 129, 129, 0.45) !important; color: #ff9a9a !important; }
.hunt-shot { grid-column: 1 / -1; display: grid; gap: 8px; }
.hunt-paste { padding: 18px; border: 2px dashed var(--line-strong); border-radius: 3px; color: var(--muted); font-size: 0.8rem; text-align: center; cursor: pointer; }
.hunt-paste:focus { outline: none; border-color: var(--amber); color: var(--text); background: rgba(255, 211, 138, 0.06); }
.hunt-paste-preview { max-width: 420px; max-height: 240px; width: auto; border-radius: 8px; border: 1px solid var(--line); }
.hunt-shot .nav-button { justify-self: start; }

/* HUNT camera page: main column + photo rail on the right */
.hunt-cam-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 18px; align-items: start; margin-top: 18px; }
.hunt-cam-main { display: grid; gap: 18px; min-width: 0; }
.hunt-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hunt-rail { position: sticky; top: 16px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 10px; }
.hunt-rail .hunt-visits { overflow-y: auto; padding-right: 4px; gap: 10px; }
.hunt-rail .hunt-visit { grid-template-columns: 1fr; gap: 8px; padding: 10px; }
.hunt-rail .hunt-photos { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.hunt-rail .hunt-photo:only-child { grid-column: 1 / -1; }
.hunt-rail .hunt-visit-head strong { font-size: 0.82rem; }
.hunt-rail .hunt-chip { font-size: 0.68rem; padding: 3px 7px; }
.hunt-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.hunt-filters button { padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: transparent; color: var(--muted); font: 700 0.66rem 'Inter', sans-serif; letter-spacing: 0.08em; cursor: pointer; }
.hunt-filters button.active { color: var(--teal); border-color: rgba(201, 162, 75, 0.6); background: rgba(201, 162, 75, 0.1); }
.hunt-filters .hunt-toggle { margin-left: auto; }
.hunt-more { justify-self: center; }
.hunt-cam-main .hunt-outlook { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hunt-factor-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; color: var(--muted); font-size: 0.7rem; }
.hunt-factor-legend .g { color: var(--amber); } .hunt-factor-legend .h { color: var(--teal); }
.hunt-factor-group { margin: 12px 0 4px; font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; text-transform: uppercase; }
.hunt-factor { display: grid; grid-template-columns: 130px minmax(120px, 1fr) 110px 170px; gap: 10px; align-items: center; padding: 4px 0; font-size: 0.76rem; }
.hunt-factor.little { opacity: 0.55; }
.hunt-factor-val { color: var(--muted); font-variant-numeric: tabular-nums; }
.hunt-factor-verdict { color: var(--muted); }
.hunt-factor-verdict.diff { color: var(--teal); }
.hunt-scale { position: relative; height: 16px; border-radius: 8px; background: rgba(201, 162, 75, 0.06); }
.hunt-scale-one { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-strong); }
.hunt-scale-range { position: absolute; top: 7px; height: 2px; background: rgba(201, 162, 75, 0.5); border-radius: 2px; }
.hunt-scale-gen, .hunt-scale-here { position: absolute; top: 3px; width: 10px; height: 10px; margin-left: -5px; }
.hunt-scale-gen { border: 2px solid var(--amber); transform: rotate(45deg); width: 8px; height: 8px; top: 4px; margin-left: -4px; }
.hunt-scale-here { border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(201, 162, 75, 0.6); }
@media (max-width: 1100px) {
  .hunt-cam-layout { grid-template-columns: 1fr; }
  .hunt-rail { position: static; max-height: none; }
  .hunt-rail .hunt-visits { overflow: visible; }
  .hunt-cam-main .hunt-outlook { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .hunt-two { grid-template-columns: 1fr; }
  .hunt-factor { grid-template-columns: 1fr 1fr; }
  .hunt-factor .hunt-scale { grid-column: 1 / -1; order: 3; }
}

/* HUNT: compact camera header with clean view */
.hunt-cam-head { display: grid; grid-template-columns: minmax(200px, 300px) minmax(0, 1fr); gap: 18px; align-items: center; margin: 10px 0 4px; }
.hunt-cam-view { padding: 0; border: 1px solid var(--line-strong); border-radius: 3px; overflow: hidden; background: #000; cursor: zoom-in; aspect-ratio: 16 / 9; }
.hunt-cam-view img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hunt-cam-info h1 { margin: 2px 0 2px; font-size: clamp(1.4rem, 2.4vw, 2rem); }
.hunt-cam-info .noc-subtitle { margin: 0 0 10px; font-size: 0.82rem; }
.hunt-mini-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 0; }
.hunt-mini-stats > div { padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: rgba(11, 13, 16, 0.5); min-width: 0; }
.hunt-mini-stats dt { color: var(--muted); font-size: 0.6rem; letter-spacing: 0.1em; text-transform: uppercase; }
.hunt-mini-stats dd { margin: 2px 0 0; font: 700 1.15rem 'Playfair Display', serif; }
.hunt-mini-stats span { display: block; color: var(--muted); font-size: 0.66rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hunt-mini-stats .hi dd { color: var(--teal); }
.hunt-mini-stats .buck dd { color: var(--amber); }

/* right column: deer rail, then other wildlife */
.hunt-side { display: grid; gap: 18px; align-content: start; min-width: 0; }
.hunt-side .hunt-rail { position: static; max-height: 78vh; }
.hunt-side #huntWildlifePanel .hunt-wild-strip { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }

/* bucks vs does */
.hunt-sex-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.hunt-sex-tile { padding: 10px; border: 1px solid var(--line); border-radius: 3px; background: rgba(11, 13, 16, 0.5); display: grid; gap: 2px; }
.hunt-sex-tile strong { font: 700 1.3rem 'Playfair Display', serif; }
.hunt-sex-tile small { color: var(--muted); font-size: 0.68rem; }
.hunt-sex-tile.buck strong { color: var(--amber); }
.hunt-sex-tile.dim { opacity: 0.7; }
.hunt-bar-fill.buck { background: linear-gradient(90deg, rgba(255, 211, 138, 0.35), var(--amber)); }
.hunt-chip.buck { border-color: rgba(255, 211, 138, 0.6); color: var(--amber); }

/* outlook odds */
.hunt-day-odds { color: var(--text); font-size: 0.72rem; font-weight: 600; }
.hunt-strip { display: flex; align-items: flex-end; gap: 2px; height: 34px; margin: 2px 0; }
.hunt-strip-bar { position: relative; flex: 1; min-width: 3px; background: rgba(201, 162, 75, 0.35); border-radius: 2px 2px 0 0; display: flex; align-items: flex-end; }
.hunt-strip-buck { width: 100%; background: var(--amber); border-radius: 2px 2px 0 0; }

/* stands table */
.hunt-stands { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.hunt-stands th { text-align: left; color: var(--muted); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.hunt-stands td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.hunt-stand-name { padding: 0; border: 0; background: none; color: var(--cyan); font: 700 0.85rem 'Inter', sans-serif; cursor: pointer; text-align: left; }
.hunt-week { display: grid; grid-template-columns: repeat(8, minmax(30px, 1fr)); gap: 3px; }
.hunt-week-day { display: grid; justify-items: center; padding: 3px 0; border-radius: 6px; border: 1px solid var(--line); font-size: 0.66rem; }
.hunt-week-day small { color: var(--muted); }
.hunt-week-day.prime, .hunt-week-day.good { border-color: rgba(255, 211, 138, 0.55); background: rgba(255, 211, 138, 0.08); }
.hunt-week-day.tough { opacity: 0.55; }
@media (max-width: 900px) {
  .hunt-cam-head { grid-template-columns: 1fr; }
  .hunt-mini-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hunt-sex-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hunt-stands th:nth-child(3), .hunt-stands td:nth-child(3) { display: none; }
}
.hunt-stand-cell { display: grid; gap: 2px; }
.hunt-lowdata { color: var(--amber); font-size: 0.64rem; }

/* ---------- accounts: sign-in page, user menu, admin ---------- */
.login-page { display: grid; place-items: center; min-height: 100vh; }
.login-card { width: min(420px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 3px; background: rgba(11, 13, 16, 0.85); box-shadow: var(--shadow); display: grid; gap: 18px; }
.login-form, .admin-form { display: grid; gap: 12px; }
.login-form h1 { margin: 0; font-size: 1.3rem; }
.login-form label, .admin-form label { display: grid; gap: 5px; color: var(--muted); font-size: 0.78rem; }
.login-form input, .admin-form input { padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 3px; background: rgba(11, 13, 16, 0.7); color: var(--text); font: inherit; }
.login-form button, .admin-form button[type=submit] { padding: 11px 16px; border: 1px solid rgba(201, 162, 75, 0.5); border-radius: 3px; background: rgba(201, 162, 75, 0.12); color: var(--teal); font-weight: 700; letter-spacing: 0.08em; cursor: pointer; }
.login-note { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.5; }
.user-menu { display: flex; align-items: center; gap: 6px; }
.user-name { color: var(--muted); font-size: 0.75rem; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu .nav-button { padding: 6px 9px; font-size: 0.6rem; }
body:not(.hunt-manage) .manage-only { display: none !important; }
.admin-grid { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
.admin-user { padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; background: rgba(11, 13, 16, 0.5); display: grid; gap: 8px; }
.admin-user + .admin-user { margin-top: 10px; }
.admin-user.disabled { opacity: 0.55; }
.admin-user-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.admin-username { color: var(--muted); font-size: 0.78rem; }
.admin-perms { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.admin-perm { display: flex; align-items: center; gap: 5px; font-size: 0.78rem; cursor: pointer; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-actions .nav-button { font-size: 0.6rem; padding: 6px 10px; }
.admin-actions .danger { color: #ff9a9a; border-color: rgba(255, 129, 129, 0.45); }
.admin-form fieldset { border: 1px solid var(--line); border-radius: 3px; padding: 10px; display: grid; gap: 6px; }
.admin-form legend { color: var(--muted); font-size: 0.72rem; padding: 0 4px; }
#pwDialog .admin-form { min-width: min(360px, 80vw); }
#pwDialog h2 { margin: 0; font-size: 1.1rem; }
@media (max-width: 900px) { .admin-grid { grid-template-columns: 1fr; } .user-name { display: none; } }
.admin-form .admin-perm { display: flex; grid-template-columns: none; color: var(--text); }
.hunt-sun { color: var(--text); }

/* ---- camera page layout fixes ---- */
/* photos flow down the right column with the page (no small inner scroll box) */
.hunt-side .hunt-rail { position: static; max-height: none; display: grid; align-content: start; }
.hunt-side .hunt-rail .hunt-visits { overflow: visible; padding-right: 0; }
/* hunt pages use more of a wide screen; chat keeps its narrower layout */
.view-hunt .hud-shell { max-width: 1680px; }
/* outlook cards: as many per row as fit comfortably */
.hunt-cam-main .hunt-outlook { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.hunt-day-line { line-height: 1.35; }
@media (max-width: 1100px) { .hunt-cam-main .hunt-outlook { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
/* right column is exactly as tall as the main column: photo list fills it (own scrollbar), wildlife below */
.hunt-cam-layout { align-items: stretch; }
.hunt-side { display: flex; flex-direction: column; gap: 18px; }
.hunt-side .hunt-rail { flex: 1 1 0; min-height: 640px; display: flex; flex-direction: column; }
.hunt-side .hunt-rail .hunt-visits { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.hunt-side #huntWildlifePanel { flex: none; }
.hunt-side .hunt-visits::-webkit-scrollbar { width: 8px; }
.hunt-side .hunt-visits::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
@media (max-width: 1100px) {
  .hunt-side .hunt-rail { flex: none; min-height: 0; max-height: none; }
  .hunt-side .hunt-rail .hunt-visits { overflow: visible; }
}

/* admin photo delete */
.hunt-photo-wrap { position: relative; min-width: 0; }
.hunt-photo-wrap .hunt-photo { width: 100%; }
.hunt-photo-del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border: 1px solid rgba(255, 129, 129, 0.5); border-radius: 8px; background: rgba(11, 13, 16, 0.8); cursor: pointer; opacity: 0; transition: opacity 0.15s; font-size: 0.85rem; }
.hunt-photo-wrap:hover .hunt-photo-del, .hunt-photo-del:focus-visible { opacity: 1; }
@media (hover: none) { .hunt-photo-del { opacity: 1; } }
.hunt-lightbox .danger, .admin-actions .danger { color: #ff9a9a; border-color: rgba(255, 129, 129, 0.45); }

/* NOC operations */
.noc-ops { display: grid; gap: 18px; margin-bottom: 18px; }
.noc-ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.noc-ops-list { display: grid; gap: 8px; }
.noc-op { padding: 10px 12px; border: 1px solid var(--line); border-radius: 3px; background: rgba(11, 13, 16, 0.5); display: grid; gap: 6px; }
.noc-op.running, .noc-op.queued { border-color: rgba(201, 162, 75, 0.45); }
.noc-op.waiting { border-color: rgba(255, 211, 138, 0.6); }
.noc-op.failed { border-color: rgba(255, 129, 129, 0.5); }
.noc-op-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.noc-op-status { margin-left: auto; color: var(--muted); font-size: 0.66rem; letter-spacing: 0.08em; }
.noc-op .chart-footnote { margin: 0; }
.noc-op-eta { color: var(--muted); font-size: 0.72rem; }
.noc-recent summary { cursor: pointer; color: var(--muted); font-size: 0.78rem; margin-top: 8px; }
.noc-recent[open] summary { margin-bottom: 8px; }
.noc-kv { display: grid; gap: 4px; }
.noc-kv-row { display: grid; grid-template-columns: minmax(110px, 0.8fr) minmax(0, 1.6fr); gap: 10px; padding: 4px 0; border-bottom: 1px solid rgba(201, 162, 75, 0.08); font-size: 0.78rem; align-items: center; }
.noc-k { color: var(--muted); }
.noc-v { overflow-wrap: anywhere; }
.noc-kv-row.good .noc-k::before { content: '● '; color: var(--teal); }
.noc-kv-row.bad .noc-k::before { content: '● '; color: #ff9a9a; }
.noc-kv-row.bad .noc-v { color: #ff9a9a; }
.noc-costs { width: 100%; border-collapse: collapse; font-size: 0.8rem; }
.noc-costs th { text-align: left; color: var(--muted); font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.noc-costs td { padding: 6px 8px; border-bottom: 1px solid rgba(201, 162, 75, 0.08); }
.noc-costs tr.total td { font-weight: 700; color: var(--teal); }

/* admin cameras */
.admin-cameras { grid-column: 1 / -1; }
.admin-camera { padding: 14px; border: 1px solid var(--line); border-radius: 3px; background: rgba(11, 13, 16, 0.5); display: grid; gap: 10px; }
.admin-camera + .admin-camera { margin-top: 12px; }
.admin-camera-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.admin-camera-form { grid-template-columns: 1fr 1fr; gap: 8px 12px; align-content: start; }
.admin-camera-form h3, .admin-camera-form button[type=submit] { grid-column: 1 / -1; }
.admin-camera-form textarea, .admin-camera-form select { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 3px; background: rgba(11, 13, 16, 0.7); color: var(--text); font: inherit; }
.admin-camera-form label:has(textarea) { grid-column: 1 / -1; }
.admin-clock { width: 80px; padding: 5px 8px; border: 1px solid var(--line-strong); border-radius: 8px; background: rgba(11, 13, 16, 0.7); color: var(--text); }
.badge.warn { color: var(--amber); border-color: rgba(255, 211, 138, 0.6); }
@media (max-width: 900px) { .admin-camera-cols, .admin-camera-form { grid-template-columns: 1fr; } }
/* batteries */
.admin-battery { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 3px; background: rgba(11, 13, 16, 0.4); }
.admin-battery-status { display: grid; grid-template-columns: auto minmax(120px, 260px) auto; gap: 12px; align-items: center; }
.admin-battery-status.change-soon strong { color: var(--amber); }
.admin-battery-status.likely-dead strong { color: #ff9a9a; }
.admin-battery-status.ok strong { color: var(--teal); }
.hunt-bar-fill.battery { background: linear-gradient(90deg, var(--amber), var(--teal)); }
.admin-date { width: 150px; }
@media (max-width: 760px) { .admin-battery-status { grid-template-columns: 1fr; } }

/* =====================================================================================
   MONEYPENNY THEME: 1960s secret-service console. Brass on black, ivory paper, phosphor
   green scope, nixie tubes, indicator lamps. Layered over the base rules above.
   ===================================================================================== */
@keyframes mp-sweep { to { transform: rotate(360deg); } }
@keyframes mp-blink { 0%, 60% { opacity: 1; } 61%, 100% { opacity: 0.25; } }
@keyframes mp-tape { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mp-sweep, .mp-reel, .mp-lamp.blink, .mp-ticker-run { animation: none !important; } }

html, body { background: #0b0d10; }
.hud-shell { border-radius: 0; border-color: #3a3222; background: #0b0d10; backdrop-filter: none; }
.topbar { flex-wrap: wrap; gap: 14px; background: #15191f; border-top: 3px solid #c9a24b; border-bottom: 1px solid #3a3222; }
.topbar-meta { flex-wrap: wrap; }
.brand-block { gap: 14px; }
.brand-mark { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid #c9a24b; background: none; color: #c9a24b; font-size: 1.6rem; font-weight: 700; }
.brand-name { font-size: 1.6rem; font-weight: 700; letter-spacing: 0.14em; line-height: 1.1; }
.brand-subtitle { font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 0.2em; }
.eyebrow, .nav-button, .refresh-button, .badge, .hunt-job-stage, .hunt-back, .hunt-filters button { font-family: 'IBM Plex Mono', monospace; }
.eyebrow { color: #c9a24b; letter-spacing: 0.22em; }
.noc-heading h1, .chat-header h1, .hunt-cam-info h1, .panel-heading h2, .login-form h1, .admin-form h2 { font-family: 'Playfair Display', serif; letter-spacing: 0; }
.noc-heading h1, .chat-header h1 { font-weight: 700; }
.noc-panel { background: #15191f; border: 1px solid #3a3222; border-top: 2px solid #c9a24b; border-radius: 0; }
.mp-plain { margin: 4px 0 0; color: var(--muted); font-size: 0.78rem; }

/* tabs: themed name with the plain one underneath */
.view-switch { border-radius: 0; background: #0b0d10; border-color: #3a3222; }
.view-switch .nav-button { display: grid; gap: 2px; justify-items: center; border-radius: 0; padding: 8px 14px; min-height: 44px; }
.view-switch .nav-button[hidden] { display: none; }
.view-switch .nav-button small { font-size: 0.56rem; font-weight: 400; letter-spacing: 0.08em; text-transform: lowercase; }
.view-switch .nav-button.active { background: #c9a24b; border-color: #c9a24b; color: #0b0d10; }

/* indicator lamps */
.mp-lamps { display: grid; gap: 5px; }
.mp-lamp-row { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 500 0.62rem 'IBM Plex Mono', monospace; letter-spacing: 0.16em; color: #c9c2b2; text-transform: uppercase; }
.mp-lamp-row[hidden] { display: none; }
.mp-lamp { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; }
.mp-lamp.green { background: #6fe08f; box-shadow: 0 0 8px #6fe08f; }
.mp-lamp.amber { background: #ffab4a; box-shadow: 0 0 8px #ffab4a; }
.mp-lamp.red { background: #ff5a5f; box-shadow: 0 0 8px #ff5a5f; }
.mp-lamp.blink { animation: mp-blink 1.4s steps(1) infinite; }
.noc-kv-row.good .noc-k::before, .noc-kv-row.bad .noc-k::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; background: #6fe08f; box-shadow: 0 0 8px #6fe08f; }
.noc-kv-row.bad .noc-k::before { background: #ff5a5f; box-shadow: 0 0 8px #ff5a5f; }

/* nixie-tube clock */
.mp-nixie { display: inline-flex; gap: 4px; padding: 6px; background: #0b0d10; border: 1px solid #3a3222; }
.mp-nixie span { display: grid; place-items: center; width: 24px; height: 38px; border-radius: 6px; background: #1a0f08; font: 400 1.5rem 'Nixie One', monospace; color: #ffab4a; text-shadow: 0 0 10px #ff7a1a; }
.mp-nixie span:nth-child(2) { margin-right: 6px; }

/* wire-service ticker tape */
.mp-ticker { overflow: hidden; background: #e9e1cc; color: #1c1a16; border-top: 2px dashed #8a8271; border-bottom: 2px dashed #8a8271; }
.mp-ticker[hidden] { display: none; }
.mp-ticker-run { display: inline-flex; white-space: nowrap; padding: 7px 0; font: 400 0.85rem 'Special Elite', monospace; letter-spacing: 0.08em; animation: mp-tape 45s linear infinite; }
.mp-ticker-run span { padding-right: 48px; }

/* stamps, label-maker strips, title dots */
.mp-stamp { display: inline-block; font: 400 0.9rem 'Special Elite', monospace; letter-spacing: 0.16em; color: #e0666b; border: 2px solid #e0666b; padding: 6px 12px; transform: rotate(-3deg); white-space: nowrap; }
.mp-head-side { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.mp-dots { display: flex; gap: 10px; margin-bottom: 12px; }
.mp-dots i { width: 20px; height: 20px; border-radius: 50%; background: #efe9dc; }
.mp-dots i.brass { background: #c9a24b; }
.mp-dots i.red { background: #e0666b; }
.mp-dots i.ring { background: none; border: 2px solid #efe9dc; }
.badge, .badge.subtle, .mp-dymo { border-radius: 2px; border: 1px solid #2a2f36; background: #050607; color: #f4f1e8; font: 600 0.62rem 'IBM Plex Mono', monospace; letter-spacing: 0.2em; text-transform: uppercase; white-space: nowrap; }
.mp-dymo { padding: 6px 10px; }
.badge.warn { color: #ffab4a; }
.mp-dymo.done { background: none; border: 2px solid #6fe08f; color: #6fe08f; font: 400 0.8rem 'Special Elite', monospace; letter-spacing: 0.14em; transform: rotate(-2deg); }
.mp-dymo.duplicate { background: none; border: 2px solid #ffab4a; color: #ffab4a; font: 400 0.8rem 'Special Elite', monospace; letter-spacing: 0.14em; transform: rotate(-2deg); }
.hunt-job.duplicate { opacity: 0.85; }
.mp-dymo.aborted { background: none; border: 2px solid #9aa3ad; color: #9aa3ad; font: 400 0.8rem 'Special Elite', monospace; letter-spacing: 0.14em; transform: rotate(-2deg); }
.hunt-job.aborted { opacity: 0.7; }
.hunt-scrub { margin-top: 12px; padding-top: 10px; border-top: 1px dashed #2a2f36; align-items: center; flex-wrap: wrap; gap: 10px; }
.mp-dymo.failed { color: #ff8a8e; border-color: #7a3136; }
.mp-dymo.needs_camera, .mp-dymo.needs_clock { color: #ffab4a; border-color: #7a5a1e; }

/* console push-buttons */
.command-form button, .hunt-upload button, .hunt-job-form button, .hunt-new-camera button, .login-form button, .admin-form button[type=submit],
.budget-form button, .hunt-ask-row .nav-button { border: none; border-bottom: 4px solid #7a6228; border-radius: 3px; background: #c9a24b; color: #0b0d10; font-family: 'IBM Plex Mono', monospace; font-weight: 600; letter-spacing: 0.14em; min-height: 44px; }
.hunt-ask-row .nav-button:first-child, .hunt-ask-row .nav-button:hover { background: #dcb95f; }
.hunt-ask-row .nav-button:not(:first-child) { background: #262b33; color: #efe9dc; border-bottom-color: #0b0d10; }
.hunt-upload button:disabled { opacity: 0.55; }
.refresh-button { border: 1px solid #c9a24b; border-radius: 3px; color: #dcb95f; background: #15191f; }
.mp-guard { justify-self: start; padding: 5px; border-radius: 4px; background: repeating-linear-gradient(45deg, #e8c33c 0 10px, #14161a 10px 20px); }
.mp-abort { display: block; padding: 10px 16px; border: none !important; border-bottom: 4px solid #6e1216 !important; border-radius: 3px; background: #b3262b !important; color: #ffffff !important; letter-spacing: 0.16em; min-height: 44px; }

/* the surveillance board: property map inside a radar scope */
.hunt-map { border: 10px solid #1d2229; border-radius: 16px; background: #06140c; }
.mp-scope { position: absolute; inset: 0; overflow: hidden; pointer-events: none; box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.75);
  background:
    repeating-radial-gradient(circle at 50% 50%, transparent 0, transparent 89px, rgba(125, 255, 160, 0.3) 90px, transparent 91px),
    linear-gradient(rgba(125, 255, 160, 0.12) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(125, 255, 160, 0.12) 1px, transparent 1px) 0 0 / 48px 100%; }
.mp-sweep { position: absolute; left: 50%; top: 50%; width: 2400px; height: 2400px; margin: -1200px 0 0 -1200px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(125, 255, 160, 0.24), rgba(125, 255, 160, 0) 60deg, rgba(125, 255, 160, 0) 360deg); animation: mp-sweep 8s linear infinite; }
.hunt-pin-dot { width: 14px; height: 14px; border: none; background: #7dffa0; box-shadow: 0 0 12px #7dffa0, 0 0 0 4px rgba(6, 20, 12, 0.65); }
.hunt-pin-label { border-radius: 2px; border: 1px solid #1c5a33; background: rgba(6, 20, 12, 0.88); color: #7dffa0; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.06em; text-transform: uppercase; }
.hunt-pin:hover .hunt-pin-dot, .hunt-pin:focus-visible .hunt-pin-dot, .hunt-pin.selected .hunt-pin-dot { background: #ffab4a; box-shadow: 0 0 14px #ffab4a, 0 0 0 4px rgba(6, 20, 12, 0.65); }

/* teleprinter / ledger paper */
.mp-paper { background: #e9e1cc !important; color: #1c1a16; border-color: #8a8271; font-family: 'Special Elite', 'IBM Plex Mono', monospace; }
.mp-teleprinter { border-left: 14px dotted #0b0d10; border-right: 14px dotted #0b0d10; }
.mp-paper .eyebrow, .mp-paper .chart-footnote, .mp-paper small, .mp-paper th { color: #4a453b !important; }
.mp-paper h2 { font-family: 'Special Elite', monospace; color: #1c1a16; }
.mp-paper td, .mp-paper th { border-color: #8a8271 !important; border-bottom-style: dashed !important; }
.mp-paper .hunt-stands, .mp-paper .noc-costs { font-size: 0.86rem; }
.mp-paper .hunt-stand-name { color: #1c1a16; font: inherit; text-decoration: underline; text-transform: uppercase; }
.mp-paper .hunt-lowdata { color: #7a4310 !important; }
.mp-paper .hunt-week-day { border-color: #8a8271; color: #1c1a16; }
.mp-paper .hunt-week-day.prime, .mp-paper .hunt-week-day.good { background: #d9c78a; border-color: #1c1a16; }
.mp-paper .noc-costs tr.total td { color: #1c1a16; }
.mp-paper .mp-stamp { color: #a8231f; border-color: #a8231f; transform: rotate(2deg); }

/* her desk: typed memos and punch-card shortcuts */
.conversation { background: #101317; border-color: #3a3222; }
.message.assistant { background: #e9e1cc; color: #1c1a16; border: none; font-family: 'Special Elite', monospace; transform: rotate(-0.3deg); }
.message.assistant .message-label { color: #5a4a1e; font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.message.user { background: #1d232b; border-color: #3a3222; }
.message.user .message-label { display: inline-block; padding: 4px 8px; border-radius: 2px; background: #050607; color: #f4f1e8; font-family: 'IBM Plex Mono', monospace; font-weight: 600; }
.chat-suggestions button, .chat-suggestions button:hover { border: none; border-radius: 2px; padding: 12px 16px 12px 20px; min-height: 44px; background: #e9e1cc; color: #1c1a16; font: 400 0.85rem 'Special Elite', monospace; clip-path: polygon(12px 0, 100% 0, 100% 100%, 0 100%, 0 12px); }
.chat-suggestions button:hover { background: #f6f0df; }
.command-form input { background: #e9e1cc; color: #1c1a16; border: none; border-bottom: 4px solid #8a8271; border-radius: 2px; font-family: 'Special Elite', monospace; }
.command-form input::placeholder { color: #5c564a; }

/* card jobs: reel-to-reel while the machines run */
.hunt-job { background: #0f1216; border-color: #3a3222; border-radius: 0; }
.hunt-job.needs_camera, .hunt-job.needs_clock { border-color: #7a5a1e; }
.hunt-job.failed { border-color: #7a3136; }
.mp-reels-box { color: #c9c2b2; }
.mp-reels { width: 110px; height: 48px; }
.hunt-job.running .mp-reel, .hunt-job.uploading .mp-reel { animation: mp-sweep 3s linear infinite; }
.hunt-bar-track { border-radius: 0; background: #262b33; }
.hunt-bar-fill { border-radius: 0; background: #c9a24b; }
.hunt-bar-fill.buck { background: #ffab4a; }

/* Q Branch panel meters */
.mp-gauges { display: flex; flex-wrap: wrap; justify-content: space-around; gap: 14px; margin-bottom: 14px; }
.mp-gauge { display: grid; justify-items: center; gap: 4px; margin: 0; }
.mp-gauge svg { width: 140px; height: auto; }
.mp-gauge figcaption { font: 500 0.62rem 'IBM Plex Mono', monospace; letter-spacing: 0.18em; color: #c9c2b2; }
.mp-gauge small { color: var(--muted); font-size: 0.68rem; }

/* sign-in */
.login-card { border-color: #3a3222; border-top: 3px solid #c9a24b; border-radius: 0; background: #101317; }
.login-card .brand-block { flex-direction: column; text-align: center; }
.mp-login-lamp { display: flex; justify-content: center; margin: 14px 0 18px; }
.login-form h1 { font-weight: 500; color: #efd28a; text-align: center; }
.mp-login-stamp { margin: 20px 0 0; text-align: center; }

/* typed memo text must be ink on paper */
.message.assistant p { color: #1c1a16; }
.message p { white-space: pre-line; }

/* camera view cones on the surveillance board (size and angle set per camera in hunt.js) */
.mp-cone { position: absolute; aspect-ratio: 1; pointer-events: none; border-radius: 50%;
  /* bright edges along both sides of the wedge so the direction reads at a glance, softer fill between */
  background: conic-gradient(from calc(var(--fov) / -2),
    rgba(215, 255, 225, 0.95) 0deg 2deg, rgba(125, 255, 160, 0.55) 2deg calc(var(--fov) - 2deg),
    rgba(215, 255, 225, 0.95) calc(var(--fov) - 2deg) var(--fov), transparent var(--fov) 360deg);
  -webkit-mask-image: radial-gradient(circle closest-side, #000 78%, transparent 100%); mask-image: radial-gradient(circle closest-side, #000 78%, transparent 100%);
  filter: drop-shadow(0 0 3px rgba(125, 255, 160, 0.8)); }
#huntConeNote { margin: 8px 0 0; }
#huntConeNote[hidden] { display: none; }

/* job card: which camera the card was filed under */
.hunt-job-camera { margin: 0; font-size: 0.82rem; color: var(--muted); }
.hunt-job-camera strong { color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; }
.hunt-job-camera .eyebrow { margin-right: 6px; }

/* saved scene views per camera (Personnel -> Cameras) */
.admin-view-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.admin-view { margin: 0; }
.admin-view img { width: 100%; display: block; border: 1px solid currentColor; border-radius: 4px; opacity: 0.95; }
.admin-view figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: 0.8rem; margin-top: 4px; }

/* camera question: this card's photo beside the closest known camera's */
.hunt-scene-pair { display: flex; flex-wrap: wrap; gap: 12px; }
.hunt-scene-fig { margin: 0; flex: 1 1 260px; max-width: 420px; }
.hunt-scene-fig figcaption { margin-top: 4px; }

/* links to the admin pages (process report, photo manager) */
a.nav-button { text-decoration: none; display: inline-block; }
.admin-pages { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-pages .nav-button, .topbar-meta a.nav-button { border-color: var(--line-strong); color: var(--cyan); }

/* PERSONNEL cameras: short list + the one opened */
.admin-cam-layout { display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr); gap: 16px; align-items: start; }
.admin-cam-list { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 12px; max-height: calc(100vh - 40px); overflow-y: auto; }
.admin-cam-item { text-align: left; border: 1px solid var(--line); border-radius: 3px; background: rgba(201, 162, 75, 0.03); color: var(--text); padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; }
.admin-cam-item small { color: var(--muted); font-size: 0.72rem; }
.admin-cam-item:hover { border-color: var(--line-strong); }
.admin-cam-item[aria-current="true"] { border-color: var(--cyan); background: rgba(201, 162, 75, 0.12); }
.admin-cam-name { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.admin-cam-name .badge { font-size: 0.55rem; padding: 2px 5px; }
.admin-cam-detail .admin-camera { margin: 0; }
@media (max-width: 760px) {
  .admin-cam-layout { grid-template-columns: 1fr; }
  .admin-cam-list { position: static; max-height: 240px; }
}

/* process report */
.rp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; margin-bottom: 14px; }
.rp-tile { border: 1px solid var(--line); border-radius: 3px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; background: var(--panel); }
.rp-tile strong { font: 600 1.6rem 'IBM Plex Mono', monospace; color: var(--cyan); }
.rp-tile small { color: var(--muted); font-size: 0.72rem; line-height: 1.4; }
.rp-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); margin-top: 14px; }
.rp-wide { grid-column: 1 / -1; }
.rp-bar-row { display: grid; grid-template-columns: minmax(120px, 34%) minmax(60px, 1fr) minmax(90px, auto); gap: 10px; align-items: center; margin: 5px 0; font-size: 0.8rem; }
.rp-bar-label { color: var(--text); }
.rp-bar-val { color: var(--muted); font: 0.72rem 'IBM Plex Mono', monospace; white-space: nowrap; }
.rp-hist .rp-bar-row { grid-template-columns: 90px minmax(60px, 1fr) 110px; margin: 2px 0; }
.rp-hist .rp-bar-label { font: 0.7rem 'IBM Plex Mono', monospace; color: var(--muted); }
.hunt-bar-fill.warn { background: linear-gradient(90deg, rgba(255, 171, 74, 0.35), var(--amber)); }
.hunt-bar-fill.muted { background: rgba(163, 156, 140, 0.55); }
.rp-log { margin-top: 14px; }
.rp-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.rp-filters select, .rp-filters input, .pm-filters select, .pm-filters input, .pm-toolbar select { background: var(--bg-deep); color: var(--text); border: 1px solid var(--line-strong); border-radius: 3px; padding: 6px 8px; font: inherit; font-size: 0.8rem; }
.rp-table-wrap { overflow-x: auto; }
.rp-jobs td { vertical-align: middle; white-space: nowrap; }
.rp-jobs td:nth-child(2) { white-space: normal; min-width: 160px; }
.rp-job { cursor: pointer; }
.rp-job:hover td, .rp-job.open td { background: rgba(201, 162, 75, 0.06); }
.rp-jobs .mp-dymo { font-size: 0.6rem; padding: 3px 6px; }
.rp-jobs .mp-dymo.done, .rp-jobs .mp-dymo.duplicate { font-size: 0.66rem; padding: 2px 6px; }
.rp-strip { display: flex; width: 160px; height: 10px; border-radius: 2px; overflow: hidden; background: rgba(201, 162, 75, 0.08); }
.rp-seg { height: 100%; }
.rp-seg.s0 { background: #8a7a52; } .rp-seg.s1 { background: #dcb95f; } .rp-seg.s2 { background: #6fa9c9; }
.rp-seg.s3 { background: #6fe08f; } .rp-seg.s4 { background: #ffab4a; } .rp-seg.s5 { background: #c98bd6; }
.rp-detail td { background: rgba(0, 0, 0, 0.25); white-space: normal; }
.rp-detail-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.rp-logtext { max-height: 340px; overflow: auto; background: var(--bg-deep); border: 1px solid var(--line); padding: 10px; font: 0.72rem/1.5 'IBM Plex Mono', monospace; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; }

/* photo manager */
.pm-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.pm-filters label { display: flex; flex-direction: column; gap: 4px; font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pm-toolbar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; margin-bottom: 10px; border: 1px solid var(--line); border-radius: 3px; background: var(--panel-strong); }
.pm-toolbar.has-sel { border-color: var(--cyan); }
.pm-toolbar #pmCount { font: 600 0.8rem 'IBM Plex Mono', monospace; color: var(--cyan); min-width: 90px; }
.pm-toolbar .nav-button { border-color: var(--line); }
.pm-toolbar .nav-button:disabled { opacity: 0.4; cursor: default; }
.pm-toolbar .nav-button.danger { color: #ff8a8e; border-color: #7a3136; }
.pm-group { display: inline-flex; flex-wrap: wrap; gap: 4px; padding-left: 8px; border-left: 1px solid var(--line); }
.pm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.pm-tile { position: relative; margin: 0; border: 2px solid transparent; border-radius: 3px; background: var(--bg-deep); cursor: pointer; }
.pm-tile.picked { border-color: var(--cyan); }
.pm-tile img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: rgba(201, 162, 75, 0.05); }
.pm-tile input { position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; accent-color: #dcb95f; cursor: pointer; }
.pm-tile figcaption { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 5px 6px; font-size: 0.68rem; }
.pm-when { color: var(--muted); font: 0.66rem 'IBM Plex Mono', monospace; margin-left: auto; }
.pm-badge { font: 600 0.56rem 'IBM Plex Mono', monospace; letter-spacing: 0.08em; padding: 2px 5px; border: 1px solid var(--line-strong); border-radius: 2px; color: var(--text); }
.pm-badge.deer { color: #6fe08f; border-color: rgba(111, 224, 143, 0.5); }
.pm-badge.maybe-deer, .pm-badge.warn { color: var(--amber); border-color: rgba(255, 171, 74, 0.5); }
.pm-badge.deleted { color: #ff8a8e; border-color: #7a3136; }
.pm-badge.sex.buck { color: var(--amber); }
.pm-badge.you { color: var(--cyan); }
.pm-more { text-align: center; margin: 16px 0; }
.pm-lightbox img { display: block; max-width: 100%; max-height: 70vh; margin: 0 auto 10px; }

/* "Moneypenny was updated" bar (app.js version check) */
.mp-update-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; border-radius: 0; }

/* ORDERS (Q BRANCH to-do list) */
.badge.warn { color: var(--amber); }
.ord-add { display: flex; flex-wrap: wrap; gap: 8px; }
.ord-add input { flex: 1 1 320px; min-width: 0; background: var(--bg-deep); color: var(--text); border: 1px solid var(--line-strong); border-radius: 3px; padding: 11px 12px; font: inherit; }
.ord-add input:focus { outline: 2px solid rgba(220, 185, 95, 0.5); outline-offset: 1px; }
.ord-add .nav-button { border-color: var(--line-strong); color: var(--cyan); }
#ordMic.listening { color: #ff8a8e; border-color: #ff8a8e; animation: mp-blink 1s steps(2) infinite; }
.ord-hint { margin: 6px 0 10px; font-size: 0.74rem; }
.ord-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin: 6px 0; }
.ord-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.ord-tabs .nav-button, .ord-tagbar .nav-button { border-color: var(--line); }
.ord-tabs .nav-button.active, .ord-tagbar .nav-button.active { border-color: var(--line-strong); background: rgba(201, 162, 75, 0.1); color: var(--cyan); }
.ord-bar input[type="search"], .ord-editor input, .ord-editor select, .ord-editor textarea, .ord-check-add input, .ord-proposed-title {
  background: var(--bg-deep); color: var(--text); border: 1px solid var(--line-strong); border-radius: 3px; padding: 6px 8px; font: inherit; font-size: 0.84rem; }
.ord-tagbar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.ord-tagbar .nav-button { padding: 5px 8px; text-transform: none; letter-spacing: 0.04em; }
.ord-list { display: grid; gap: 6px; }
.ord-group { margin: 10px 0 2px; font: 600 0.66rem 'IBM Plex Mono', monospace; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ord-group.overdue { color: #ff8a8e; }
.ord-task { border: 1px solid var(--line); border-left: 3px solid var(--line-strong); border-radius: 3px; background: rgba(11, 13, 16, 0.5); padding: 8px 10px; transition: opacity 0.4s; }
.ord-task.p-high { border-left-color: var(--amber); }
.ord-task.p-low { border-left-color: rgba(163, 156, 140, 0.4); }
.ord-task.done .ord-title, .ord-task.ticking .ord-title { text-decoration: line-through; color: var(--muted); }
.ord-task.ticking { opacity: 0.35; }
.ord-task.archived { opacity: 0.75; }
.ord-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ord-head input[type="checkbox"] { width: 20px; height: 20px; accent-color: #dcb95f; cursor: pointer; flex: none; }
.ord-title { background: none; border: 0; color: var(--text); font: 500 0.95rem 'Inter', sans-serif; text-align: left; cursor: pointer; padding: 2px 0; flex: 1 1 200px; }
.ord-title:hover { color: var(--cyan); }
.ord-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.ord-due { font: 600 0.68rem 'IBM Plex Mono', monospace; padding: 2px 6px; border-radius: 2px; border: 1px solid var(--line-strong); color: var(--cyan); }
.ord-due.today { color: #6fe08f; border-color: rgba(111, 224, 143, 0.5); }
.ord-due.overdue { color: #ff8a8e; border-color: #7a3136; }
.ord-flag { font: 600 0.56rem 'IBM Plex Mono', monospace; letter-spacing: 0.1em; padding: 2px 5px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); }
.ord-flag.high { color: var(--amber); border-color: rgba(255, 171, 74, 0.5); }
.ord-flag.mp { color: var(--cyan); border-color: var(--line-strong); }
.ord-tag { font-size: 0.72rem; color: var(--blue); }
.ord-count { font-size: 0.72rem; color: var(--muted); }
.ord-notes { display: block; margin: 4px 0 0 28px; color: var(--muted); font-size: 0.8rem; line-height: 1.45; white-space: pre-wrap; }
.ord-snoozed { font-size: 0.76rem; color: var(--muted); }
.ord-editor { margin: 10px 0 2px 28px; display: grid; gap: 12px; }
.ord-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.ord-fields label { display: flex; flex-direction: column; gap: 3px; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ord-fields label:first-child, .ord-fields .ord-wide { grid-column: 1 / -1; }
.ord-check { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; padding: 2px 0; }
.ord-check input { accent-color: #dcb95f; }
.ord-x { padding: 0 6px; margin-left: auto; }
.ord-check-add { display: flex; gap: 6px; margin-top: 4px; }
.ord-check-add input { flex: 1; min-width: 0; }
.ord-log-list { display: grid; gap: 4px; margin-top: 6px; max-height: 220px; overflow-y: auto; }
.ord-log-row { display: grid; grid-template-columns: minmax(130px, auto) 1fr; gap: 10px; font-size: 0.8rem; padding: 4px 0; border-bottom: 1px solid rgba(201, 162, 75, 0.08); }
.ord-log-when { color: var(--muted); font: 0.68rem 'IBM Plex Mono', monospace; }
.ord-actions { flex-wrap: wrap; }
.ord-actions .nav-button { border-color: var(--line); }
.ord-actions .nav-button.danger { color: #ff8a8e; }
.ord-proposal { border: 1px solid var(--cyan); border-radius: 3px; padding: 10px 12px; margin: 8px 0; display: grid; gap: 6px; background: rgba(201, 162, 75, 0.05); }
.ord-reply { margin: 0 0 4px; font-style: italic; }
.ord-proposed { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ord-proposed input[type="checkbox"] { width: 18px; height: 18px; accent-color: #dcb95f; }
.ord-proposed-title { flex: 1 1 260px; }
.ord-proposed .ord-notes { flex-basis: 100%; margin-left: 26px; }
.ord-cal-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; }
.ord-cal-head strong { min-width: 150px; text-align: center; font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.ord-cal-head .nav-button { border-color: var(--line); }
.ord-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.ord-cal-dow { text-align: center; font: 600 0.62rem 'IBM Plex Mono', monospace; color: var(--muted); letter-spacing: 0.1em; padding: 4px 0; }
.ord-cal-day { min-height: 86px; display: flex; flex-direction: column; gap: 2px; align-items: stretch; text-align: left; padding: 4px; border: 1px solid var(--line); border-radius: 2px; background: rgba(11, 13, 16, 0.5); color: var(--text); cursor: pointer; font: inherit; overflow: hidden; }
.ord-cal-day:hover { border-color: var(--line-strong); }
.ord-cal-day.today { border-color: #6fe08f; }
.ord-cal-day.picked { background: rgba(201, 162, 75, 0.12); border-color: var(--cyan); }
.ord-cal-day.overdue .ord-cal-num { color: #ff8a8e; }
.ord-cal-num { font: 600 0.72rem 'IBM Plex Mono', monospace; color: var(--muted); }
.ord-cal-item { font-size: 0.66rem; line-height: 1.25; padding: 1px 4px; border-radius: 2px; background: rgba(201, 162, 75, 0.14); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ord-cal-item.p-high { background: rgba(255, 171, 74, 0.2); }
.ord-cal-item.done { text-decoration: line-through; opacity: 0.55; }
.ord-cal-more { font-size: 0.62rem; color: var(--muted); }
.ord-cal-dayview { margin-top: 12px; display: grid; gap: 6px; }
@media (max-width: 640px) {
  .ord-cal-day { min-height: 54px; }
  .ord-cal-item { display: none; }
  .ord-cal-day:has(.ord-cal-item)::after { content: '•'; color: var(--cyan); text-align: center; }
  .ord-editor, .ord-notes { margin-left: 0; }
}

/* SIGHTINGS calendar heat map (hunt.js renderHeat) */
.hunt-heat { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.hunt-heat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 8px; }
.hunt-heat-head strong { flex: 1; text-align: center; font-family: 'Playfair Display', serif; font-size: 1rem; min-width: 120px; }
.hunt-heat-head .nav-button { border-color: var(--line); padding: 6px 9px; }
.hunt-heat-head .nav-button:disabled { opacity: 0.3; cursor: default; }
.hunt-heat-mode { display: flex; gap: 4px; flex-basis: 100%; justify-content: center; }
.hunt-heat-mode .nav-button.active { border-color: var(--line-strong); background: rgba(201, 162, 75, 0.1); color: var(--cyan); }
.hunt-heat-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.hunt-heat-dow { text-align: center; font: 600 0.6rem 'IBM Plex Mono', monospace; color: var(--muted); padding-bottom: 2px; }
.hunt-heat-day { position: relative; aspect-ratio: 1; min-height: 34px; border: 1px solid rgba(201, 162, 75, 0.12); border-radius: 3px; background: rgba(255, 255, 255, 0.03); color: var(--text); cursor: pointer; padding: 0; font: inherit; }
.hunt-heat-day:hover:not(:disabled) { border-color: var(--line-strong); }
.hunt-heat-day:focus-visible { outline: 2px solid var(--cyan); outline-offset: 1px; }
.hunt-heat-day.l1, .hunt-heat-key.l1 { background: rgba(111, 224, 143, 0.18); }
.hunt-heat-day.l2, .hunt-heat-key.l2 { background: rgba(111, 224, 143, 0.38); }
.hunt-heat-day.l3, .hunt-heat-key.l3 { background: rgba(111, 224, 143, 0.6); }
.hunt-heat-day.l4, .hunt-heat-key.l4 { background: rgba(111, 224, 143, 0.85); color: #0b0d10; }
.hunt-heat-day.off, .hunt-heat-key.off { background: repeating-linear-gradient(45deg, transparent 0 4px, rgba(163, 156, 140, 0.12) 4px 6px); cursor: default; color: rgba(163, 156, 140, 0.45); }
.hunt-heat-day.picked { outline: 2px solid var(--cyan); outline-offset: 1px; }
.hunt-heat-num { position: absolute; top: 2px; left: 4px; font: 0.6rem 'IBM Plex Mono', monospace; opacity: 0.75; }
.hunt-heat-val { position: absolute; inset: 0; display: grid; place-items: center; font: 600 0.82rem 'IBM Plex Mono', monospace; padding-top: 6px; }
.hunt-heat-buck { position: absolute; top: 1px; right: 3px; font-size: 0.55rem; color: var(--amber); }
.hunt-heat-day.l4 .hunt-heat-buck { color: #7a3b00; }
.hunt-heat-wild { position: absolute; bottom: 0; right: 4px; font-size: 0.9rem; line-height: 1; color: var(--blue); }
.hunt-heat-sum { margin: 8px 0 4px; font-size: 0.74rem; }
.hunt-heat-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.66rem; color: var(--muted); }
.hunt-heat-key { display: inline-block; width: 12px; height: 12px; border-radius: 2px; border: 1px solid rgba(201, 162, 75, 0.15); background: rgba(255, 255, 255, 0.03); }
.hunt-heat-key.off { margin-left: 8px; }
.hunt-heat-buck-key { margin-left: 8px; color: var(--amber); }
.hunt-heat-wild-key { margin-left: 6px; }
.hunt-day-clear { margin-left: 6px; border-color: var(--line-strong); color: var(--cyan); padding: 4px 8px; }
.hunt-day-wild { margin-bottom: 10px; }
/* the calendar sits on top of the SIGHTINGS rail; the rail grows so the visit list below it keeps
   a good scroll area (wide screens; narrow screens show everything in one column) */
#huntRangeNote { margin: 0; }
.hunt-side .hunt-rail > :not(.hunt-visits) { flex: none; }
@media (min-width: 1101px) {
  .hunt-side .hunt-rail { min-height: 1180px; }
  .hunt-side .hunt-rail .hunt-visits { min-height: 520px; }
}
/* time of day on the calendar: strip in each day + filter */
.hunt-heat-when .nav-button { padding: 5px 7px; font-size: 0.58rem; }
.hunt-heat-strip { position: absolute; left: 3px; right: 3px; bottom: 3px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; height: 4px; }
.hunt-heat-strip i, .hunt-heat-pkey i { display: block; border-radius: 1px; background: rgba(11, 13, 16, 0.35); }
.hunt-heat-strip i.on.morning, .hunt-heat-pkey i.morning { background: #ffd38a; }
.hunt-heat-strip i.on.midday, .hunt-heat-pkey i.midday { background: #f4f1e8; }
.hunt-heat-strip i.on.evening, .hunt-heat-pkey i.evening { background: #ff8a3d; }
.hunt-heat-strip i.on.night, .hunt-heat-pkey i.night { background: #6fa9c9; }
.hunt-heat-day .hunt-heat-val { padding-bottom: 4px; }
.hunt-heat-day .hunt-heat-wild { bottom: 6px; }
.hunt-heat-pkey { display: inline-flex; align-items: center; gap: 3px; margin-right: 6px; }
.hunt-heat-pkey i { width: 14px; height: 5px; }
.hunt-heat-plegend { margin-top: 3px; }

/* Q BRANCH "The front door" (access-ui.js) */
.acc-head { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.acc-tiles .rp-tile.warn strong { color: var(--amber); }
.acc-daily { display: flex; align-items: flex-end; gap: 3px; height: 90px; margin: 4px 0 14px; }
.acc-day { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 3px; }
.acc-bar { width: 100%; max-width: 26px; background: rgba(201, 162, 75, 0.25); border-radius: 2px 2px 0 0; display: flex; flex-direction: column-reverse; overflow: hidden; }
.acc-bar-inet { width: 100%; background: var(--cyan); }
.acc-day-label { font: 0.55rem 'IBM Plex Mono', monospace; color: var(--muted); white-space: nowrap; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 18px; }
.acc-sub .eyebrow { margin: 0 0 2px; }
.acc-h { margin: 0 0 8px; font-size: 0.95rem; }
.acc-table-wrap { overflow-x: auto; max-height: 300px; overflow-y: auto; }
.acc-table td { white-space: nowrap; }
.acc-table tr.acc-bad td { color: #ff8a8e; }
.acc-table tr.acc-warn td { color: var(--amber); }
.acc-recent { margin-top: 14px; }
.acc-filter { display: inline-flex; gap: 6px; align-items: center; font-size: 0.78rem; color: var(--muted); margin: 8px 0; }
.acc-filter select { background: var(--bg-deep); color: var(--text); border: 1px solid var(--line-strong); border-radius: 3px; padding: 4px 6px; }
.acc-daily[hidden] { display: none; }
.acc-table-wrap, .rp-table-wrap, .ord-log-list { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
.acc-table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.acc-table-wrap::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 4px; }
.acc-table-wrap::-webkit-scrollbar-track, .acc-table-wrap::-webkit-scrollbar-corner { background: transparent; }

/* phones / narrow windows: SIGHTINGS (calendar, then the visits) right under the camera's name;
   other wildlife stays at the bottom; the visit list scrolls inside so the charts stay reachable */
@media (max-width: 1100px) {
  .hunt-cam-layout .hunt-side { display: contents; }
  .hunt-cam-layout .hunt-rail { order: -1; min-height: 0; }
  .hunt-cam-layout #huntWildlifePanel { order: 1; }
  .hunt-cam-layout .hunt-rail .hunt-visits { max-height: 70vh; overflow-y: auto; min-height: 0; }
}

/* SCRUB CARD: a way out, not the main action */
.hunt-ask-row.hunt-scrub .nav-button.hunt-restart { background: #15191f; border: 1px solid #7a3136; border-bottom: 4px solid #4a1e21; color: #ff8a8e; }
.hunt-ask-row.hunt-scrub .nav-button.hunt-restart:hover { background: #2a1517; }

/* photo viewer: one-click classify */
.pm-classify { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; padding: 10px 12px; border: 1px solid #2a2f36; border-radius: 3px; background: #15191f; }
.pm-classify-h { font: 600 0.66rem 'IBM Plex Mono', monospace; letter-spacing: 0.2em; color: #c9a24b; margin-right: 4px; }
.pm-classify .nav-button { padding: 8px 12px; }
.pm-classify kbd { margin-left: 6px; padding: 0 4px; border: 1px solid currentColor; border-radius: 2px; font: 0.6rem 'IBM Plex Mono', monospace; opacity: 0.7; }
.pm-classify .nav-button.current { background: #c9a24b; color: #0b0d10; }
.pm-classify-other { display: inline-flex; gap: 6px; align-items: center; }
.pm-classify-other input { width: 190px; padding: 8px 10px; border: 1px solid #2a2f36; border-radius: 3px; background: #0b0d10; color: #efe9dc; font: inherit; font-size: 0.85rem; }
.pm-classify-adv { font-size: 0.78rem; color: #a9a39a; display: inline-flex; gap: 6px; align-items: center; }
.pm-classify-msg { flex-basis: 100%; font-size: 0.8rem; color: #6fe08f; min-height: 1em; }
.pm-classify-msg.warn { color: #ff8a8e; }
.pm-classify.busy { opacity: 0.6; pointer-events: none; }

/* retired cameras: hollow grey pin, faded cone */
.hunt-pin.retired .hunt-pin-dot { background: transparent; border: 2px dashed #9aa3ad; box-shadow: 0 0 0 4px rgba(11, 13, 16, 0.55); animation: none; }
.hunt-pin.retired .hunt-pin-label { color: #b9c0c8; border-color: #4a5058; background: rgba(11, 13, 16, 0.8); }
.mp-cone.retired { opacity: 0.25; filter: grayscale(1); }
.hunt-map-toggle { display: inline-flex; gap: 8px; align-items: center; margin: 4px 0 8px; font-size: 0.8rem; color: #a9a39a; cursor: pointer; }
.admin-cam-group { margin: 14px 0 4px; color: #9aa3ad; }
.admin-cam-item.retired { opacity: 0.7; }
.admin-check { display: flex !important; flex-direction: row !important; align-items: center; gap: 8px; }
.admin-check input { width: auto !important; }
.hunt-retired-check { display: flex; gap: 8px; align-items: flex-start; font-size: 0.8rem; color: #c9c3b8; grid-column: 1 / -1; }
.hunt-retired-check input { margin-top: 2px; }

/* stands: amber stand icon + range rings (10 yd steps), distinct from the green camera radar */
.hunt-stand .hunt-stand-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 4px; border: 2px solid #ffb547; background: rgba(28, 18, 4, 0.9); color: #ffb547; box-shadow: 0 0 10px rgba(255, 181, 71, 0.55); animation: none; }
.hunt-stand .hunt-stand-icon svg { width: 18px; height: 18px; }
.hunt-stand .hunt-pin-label { color: #ffcf85; border-color: #6b4a14; background: rgba(28, 18, 4, 0.9); }
.hunt-stand.retired .hunt-stand-icon { border-style: dashed; border-color: #9aa3ad; color: #9aa3ad; box-shadow: none; background: transparent; }
.hunt-stand.selected .hunt-stand-icon { box-shadow: 0 0 0 6px rgba(255, 211, 138, 0.35); }
.mp-rings { position: absolute; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.mp-rings svg { width: 100%; height: 100%; overflow: visible; }
.mp-rings .ring { fill: none; stroke: rgba(255, 207, 133, 0.45); stroke-width: 0.6; stroke-dasharray: 1.6 1.6; vector-effect: non-scaling-stroke; }
.mp-rings .ring.major { stroke: rgba(255, 207, 133, 0.8); stroke-dasharray: none; }
.mp-rings .ring-label { fill: #ffcf85; font: 700 7px 'IBM Plex Mono', monospace; text-anchor: middle; paint-order: stroke; stroke: rgba(0, 0, 0, 0.75); stroke-width: 1.2px; }
.hunt-unplaced-stand { color: #ffcf85 !important; }

/* PERSONNEL > STANDS */
.stands-add { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.stands-add input { flex: 1 1 240px; }
.stands-add select { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 3px; background: rgba(11, 13, 16, 0.7); color: var(--text); font: inherit; }
.stands-cams select { padding: 4px 6px; background: #0b0d10; color: var(--text); border: 1px solid var(--line-strong); border-radius: 3px; font: inherit; font-size: 0.78rem; }
.stands-weight { display: inline-block; width: 60px; height: 6px; border-radius: 3px; vertical-align: middle; background: linear-gradient(90deg, #ffb547 var(--w), #2a2f36 var(--w)); }
.admin-camera-form label.full { grid-column: 1 / -1; }

/* ---- forecast slider, scent cones, weather layer (hunt-forecast.js) ---- */
.hunt-scent, .hunt-weather { position: absolute; inset: 0; pointer-events: none; }
.hunt-scent svg { width: 100%; height: 100%; display: block; }
.scent-cone { stroke: rgba(199, 146, 255, 0.55); stroke-width: 3; vector-effect: non-scaling-stroke; mix-blend-mode: screen; transition: opacity 0.2s; }
.scent-cone.calm { stroke-dasharray: 4 5; }
.scent-cone.gusty { animation: scentShimmer 0.9s ease-in-out infinite alternate; }
@keyframes scentShimmer { from { stroke-opacity: 0.25; } to { stroke-opacity: 0.85; } }
.scent-arrow { fill: rgba(225, 200, 255, 0.85); font: 700 60px sans-serif; text-anchor: middle; dominant-baseline: middle; }

.hunt-weather > i { position: absolute; inset: 0; opacity: 0; transition: opacity 0.6s ease; }
/* cloud shadows: two soft blobs drifting with the wind */
.hunt-weather .wx-cloud { inset: -20%; background: radial-gradient(closest-side, rgba(8, 12, 18, 0.55), transparent 70%) 0 0 / 45% 55% no-repeat,
  radial-gradient(closest-side, rgba(8, 12, 18, 0.45), transparent 70%) 60% 40% / 38% 48% no-repeat; animation: wxDrift 38s linear infinite; }
.hunt-weather .wx-cloud.b { animation-duration: 55s; animation-delay: -20s; transform: scale(1.3); }
@keyframes wxDrift { from { translate: -25% -5%; } to { translate: 25% 5%; } }
.hunt-weather.clouds .wx-cloud { opacity: 0.45; }
.hunt-weather.overcast .wx-cloud { opacity: 0.85; }
/* rain / snow */
.hunt-weather .wx-fall { inset: -10%; rotate: 12deg; }
.hunt-weather.drizzle .wx-fall { opacity: 0.25; background: repeating-linear-gradient(100deg, transparent 0 22px, rgba(190, 215, 255, 0.35) 22px 23px); background-size: 140px 140px; animation: wxRain 0.9s linear infinite; }
.hunt-weather.rain .wx-fall { opacity: 0.45; background: repeating-linear-gradient(100deg, transparent 0 14px, rgba(190, 215, 255, 0.45) 14px 15px); background-size: 120px 120px; animation: wxRain 0.6s linear infinite; }
.hunt-weather.rain-heavy .wx-fall { opacity: 0.65; background: repeating-linear-gradient(100deg, transparent 0 7px, rgba(200, 220, 255, 0.55) 7px 8px); background-size: 90px 90px; animation: wxRain 0.4s linear infinite; }
@keyframes wxRain { from { background-position: 0 0; } to { background-position: -30px 120px; } }
.hunt-weather.snow .wx-fall, .hunt-weather.snow-heavy .wx-fall { opacity: 0.7; rotate: 0deg;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1.5px, transparent 2px) 0 0 / 53px 61px,
              radial-gradient(circle, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.5px) 20px 25px / 37px 29px,
              radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1.2px, transparent 1.8px) 7px 40px / 71px 47px; animation: wxSnow 6s linear infinite; }
.hunt-weather.snow-heavy .wx-fall { opacity: 1; animation-duration: 3.5s; }
@keyframes wxSnow { from { background-position: 0 0, 20px 25px, 7px 40px; } to { background-position: 30px 488px, 0 348px, 40px 416px; } }
/* fog: the map washes out toward the edges */
.hunt-weather .wx-fog { background: radial-gradient(ellipse at center, rgba(220, 226, 232, 0.15) 20%, rgba(220, 226, 232, 0.75) 100%); }
.hunt-weather.fog .wx-fog { opacity: 0.55; }
.hunt-weather.fog-thick .wx-fog { opacity: 0.95; }
/* night / outside legal light */
.hunt-weather.dusk { background: rgba(10, 14, 40, 0.25); }
.hunt-weather.night { background: rgba(4, 6, 20, 0.5); }
.hunt-weather { transition: background 0.4s; }
@media (prefers-reduced-motion: reduce) { .hunt-weather > i, .scent-cone.gusty { animation: none !important; } }
@media (max-width: 700px) { .hunt-weather .wx-cloud.b { display: none; } .hunt-weather .wx-fall { animation-duration: 1.2s !important; } }

.hunt-forecast { margin: 10px 0 6px; padding: 10px 12px; border: 1px solid #2a2f36; border-radius: 3px; background: #0f1318; }
.hunt-fc-read { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; font-size: 0.86rem; margin-bottom: 8px; }
.hunt-fc-read strong { color: #ffcf85; font-family: 'IBM Plex Mono', monospace; letter-spacing: 0.04em; }
.hunt-fc-read span { color: #d9d3c7; }
.hunt-fc-row { display: flex; gap: 10px; align-items: center; }
.hunt-fc-row .nav-button { padding: 8px 12px; flex: none; }
.hunt-fc-slider { position: relative; flex: 1; height: 44px; }
.hunt-fc-track { position: absolute; left: 0; right: 0; top: 8px; height: 12px; border-radius: 6px; border: 1px solid #2a2f36; }
.hunt-fc-slider input[type=range] { position: absolute; left: 0; right: 0; top: 2px; width: 100%; margin: 0; height: 24px; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.hunt-fc-slider input[type=range]::-webkit-slider-runnable-track { background: transparent; height: 24px; }
.hunt-fc-slider input[type=range]::-moz-range-track { background: transparent; }
.hunt-fc-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 6px; height: 24px; border-radius: 2px; background: #c792ff; box-shadow: 0 0 0 2px #0b0d10, 0 0 10px #c792ff; }
.hunt-fc-slider input[type=range]::-moz-range-thumb { width: 6px; height: 24px; border-radius: 2px; background: #c792ff; border: none; }
.hunt-fc-days { position: absolute; left: 0; right: 0; top: 26px; height: 16px; }
.hunt-fc-day { position: absolute; transform: translateX(-1px); padding-left: 3px; border-left: 1px solid #4a5058; font: 0.64rem 'IBM Plex Mono', monospace; color: #a9a39a; white-space: nowrap; }
.hunt-fc-key { display: inline-block; width: 12px; height: 10px; border-radius: 2px; vertical-align: middle; margin-right: 2px; }
.hunt-fc-key.scent { background: rgba(199, 146, 255, 0.6); }
.hunt-fc-key.legal { background: rgba(255, 207, 133, 0.55); }
@media (max-width: 700px) { .hunt-fc-day { font-size: 0.56rem; } .hunt-fc-row .nav-button { padding: 6px 8px; } }

/* deer travel layer (hunt-travel.js) */
.hunt-travel { position: absolute; inset: 0; pointer-events: none; }
.hunt-travel svg { width: 100%; height: 100%; display: block; overflow: visible; }
.trv-route { fill: none; stroke: rgba(120, 220, 255, 0.55); stroke-dasharray: 10 7; vector-effect: non-scaling-stroke; }
.trv-head { fill: rgba(150, 230, 255, 0.9); }
.trv-arrow { stroke-width: 3; vector-effect: non-scaling-stroke; }
.trv-arrow.trv-am { stroke: #9be7ff; }
.trv-arrow.trv-pm { stroke: #9be7ff; stroke-dasharray: 6 4; }
.trv-label { fill: #c9f1ff; font: 700 34px 'IBM Plex Mono', monospace; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(0, 0, 0, 0.8); stroke-width: 6px; }
.stands-travel { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 0 0 12px; padding: 8px 10px; border: 1px dashed #2a2f36; border-radius: 3px; }
.stands-travel p { margin: 0; flex: 1 1 320px; }

/* stand ratings for the slider hour (hunt-ratings.js) */
.hunt-stand.rate-prime .hunt-stand-icon { border-color: #3ddc84; color: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.25), 0 0 16px rgba(61, 220, 132, 0.8); }
.hunt-stand.rate-good .hunt-stand-icon { border-color: #b6e35a; color: #b6e35a; box-shadow: 0 0 12px rgba(182, 227, 90, 0.6); }
.hunt-stand.rate-fair .hunt-stand-icon { border-color: #ffb547; color: #ffb547; }
.hunt-stand.rate-poor .hunt-stand-icon { border-color: #ff5a5a; color: #ff5a5a; box-shadow: 0 0 12px rgba(255, 90, 90, 0.6); }
.hunt-stand.rate-dark .hunt-stand-icon { border-color: #6b737d; color: #8a929c; box-shadow: none; }
.hunt-stand.rate-prime .hunt-pin-label { color: #3ddc84; border-color: #1c5a33; }
.hunt-stand.rate-good .hunt-pin-label { color: #c8ee7a; }
.hunt-stand.rate-poor .hunt-pin-label { color: #ff8a8e; border-color: #7a3136; }
.hunt-stand.rate-dark .hunt-pin-label { color: #a9b0b8; border-color: #3a4048; }
.hunt-sits .hunt-sit { cursor: pointer; }
.hunt-sits .hunt-sit:hover td, .hunt-sits .hunt-sit:focus td { background: rgba(0, 0, 0, 0.05); }
.hunt-sit-chip { display: inline-block; padding: 2px 8px; border-radius: 2px; font: 700 0.7rem 'IBM Plex Mono', monospace; letter-spacing: 0.1em; color: #fff; }
.hunt-sit-chip.prime { background: #1f8a4c; }
.hunt-sit-chip.good { background: #6f8f1f; }
.hunt-sit-chip.fair { background: #a8701a; }
.hunt-sit-chip.poor { background: #a83232; }
.hunt-sit-why, .hunt-sit-next { font-size: 0.8rem; }

/* MOVE PINS: drag, and let clicks through other pins while one is picked */
.hunt-map.placing .hunt-pin { cursor: grab; touch-action: none; }
.hunt-map.placing .hunt-pin.dragging { cursor: grabbing; z-index: 5; }
.hunt-map.placing-one .hunt-pin:not(.selected) { pointer-events: none; opacity: 0.6; }
.hunt-map.placing-one { cursor: crosshair; }
/* a picked / hovered stand keeps its stand drawing visible */
.hunt-stand:hover .hunt-stand-icon, .hunt-stand:focus-visible .hunt-stand-icon, .hunt-stand.selected .hunt-stand-icon { background: #ffab4a; color: #1c1204; }

/* Import from the NAS */
.hunt-nas > summary { font-weight: 600; }
.hunt-nas-settings { margin: 8px 0; padding: 8px 10px; border: 1px dashed #2a2f36; border-radius: 3px; }
.hunt-nas-form { display: grid; grid-template-columns: 2fr 1.2fr 1.2fr auto; gap: 8px; align-items: end; margin-top: 8px; }
.hunt-nas-form label { display: grid; gap: 4px; font-size: 0.78rem; color: var(--muted); }
.hunt-nas-form input { padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: 3px; background: rgba(11, 13, 16, 0.7); color: var(--text); font: inherit; }
.hunt-nas-crumbs { margin: 10px 0 6px; font-size: 0.82rem; }
.hunt-nas-crumb { background: none; border: none; color: #ffcf85; cursor: pointer; font: inherit; padding: 2px 0; text-decoration: underline; }
.hunt-nas-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; max-height: 320px; overflow-y: auto; }
.hunt-nas-folder { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 3px; background: rgba(201, 162, 75, 0.04); color: var(--text); cursor: pointer; font: inherit; }
.hunt-nas-folder:hover, .hunt-nas-folder:focus-visible { border-color: #c9a24b; }
.hunt-nas-folder small { color: var(--muted); font-size: 0.72rem; }
.hunt-nas-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 10px 0 4px; }
@media (max-width: 760px) { .hunt-nas-form { grid-template-columns: 1fr; } }

/* camera question: flip through the card's photos */
.hunt-peek-nav { display: flex; gap: 6px; justify-content: center; margin: 6px 0 2px; }
.hunt-peek-nav .nav-button { min-width: 44px; padding: 6px 10px; font-size: 1rem; }

/* something is happening: spinner + text in one line, and a pressed button that spins */
.hunt-busy-line { display: flex; align-items: center; gap: 10px; }
.hunt-busy-line .hunt-spinner, .is-busy .hunt-spinner { flex: none; width: 16px; height: 16px; }
.nav-button.is-busy, button.is-busy { display: inline-flex; align-items: center; gap: 8px; opacity: 1; cursor: progress; }
#huntNasRunning.hunt-busy-line { color: #d9d3c7; font-size: 0.84rem; padding: 8px 10px; border: 1px solid #2a2f36; border-radius: 3px; background: rgba(120, 220, 255, 0.05); flex: 1 1 100%; }
