/* ============================================================================
   admin.css — owner's control room. Night Prowl (frankie.css v2 tokens).
   Same look as the public pages, calmer: no glow, compact rows. Phone-first.
   ============================================================================ */

.adm-header, #main, .adm-photo-panel, .adm-toasts {
  width: 100%; max-width: 640px; margin-inline: auto;
  padding-left: max(var(--space-4), env(safe-area-inset-left));
  padding-right: max(var(--space-4), env(safe-area-inset-right));
}

/* ---- Header ---- */
.adm-header { position: sticky; top: 0; z-index: 20; background: rgba(11,14,19,0.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  padding-top: max(var(--space-3), env(safe-area-inset-top)); padding-bottom: var(--space-3); }
.adm-header__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); flex-wrap: wrap; }
.adm-header__actions { margin-left: auto; }
.adm-title { display: inline-flex; align-items: center; gap: var(--space-3); margin: 0; font-size: var(--fs-md); }
.adm-header__actions { display: flex; align-items: center; gap: var(--space-2); }
.adm-iconbtn {
  width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--glass); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; place-items: center;
}
.adm-iconbtn:hover { background: rgba(255,255,255,0.09); }
.adm-iconbtn .fh-icon { width: 20px; height: 20px; }

/* ---- Tabs (segmented control) ---- */
.adm-tabs { display: flex; gap: var(--space-1); margin-top: var(--space-3); padding: 4px;
  border-radius: var(--radius); background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); }
.adm-tab { flex: 1; min-height: var(--tap-min); border: 0; border-radius: 10px; cursor: pointer;
  background: transparent; color: var(--ink-soft); font-weight: 700; font-size: var(--fs-sm); }
.adm-tab[aria-selected="true"] { background: var(--raised); color: var(--ink);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06), 0 4px 12px rgba(0,0,0,0.35); }
.adm-tab__count { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.adm-tab__count:not(:empty)::before { content: "· "; }

#main { padding-bottom: var(--space-7); }
#main:focus { outline: none; }

/* ---- Status / login / loading / empty / error ---- */
.adm-status:empty { display: none; }
.adm-status { margin-top: var(--space-4); }
.adm-note { text-align: center; padding: var(--space-6) var(--space-4); }
.adm-note__title { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.adm-note p { color: var(--ink-soft); margin: 0; }
.adm-note .fh-btn { margin-top: var(--space-4); }

.adm-login { max-width: 400px; margin: var(--space-6) auto 0; }
.adm-login__badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); margin-bottom: var(--space-4); }
.adm-login__badge .fh-icon { width: 24px; height: 24px; }
.adm-login h2 { font-size: 1.75rem; margin-bottom: var(--space-2); }
.adm-login > p { color: var(--ink-soft); margin-bottom: var(--space-5); }
.adm-login__wrong { margin-bottom: var(--space-4); }
.adm-login__wrong p { margin: 0; }
.adm-pw { position: relative; }
.adm-pw .fh-input { padding-right: 56px; }
.adm-pw__toggle { position: absolute; right: 2px; top: 2px; width: 44px; height: 44px; border: 0; cursor: pointer;
  background: none; color: var(--ink-soft); display: grid; place-items: center; border-radius: 10px; }
.adm-pw__toggle .fh-icon { width: 20px; height: 20px; }
.adm-login .fh-btn { margin-top: var(--space-4); }
.adm-login__fine { font-size: var(--fs-xs); color: var(--ink-soft); margin-top: var(--space-3); }

/* ---- Sighting rows ---- */
.adm-list { list-style: none; margin: var(--space-4) 0 0; padding: 0; display: grid; gap: var(--space-2); }
.adm-card {
  display: grid; grid-template-columns: 72px 1fr auto; gap: var(--space-3); align-items: center;
  padding: var(--space-3); border-radius: var(--radius-card);
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line);
  transition: opacity var(--press-time) ease;
}
.adm-photo, .adm-photo--none { width: 72px; height: 72px; border-radius: var(--radius-sm); object-fit: cover; display: block; background: var(--surface); }
.adm-photo--none { display: grid; place-items: center; color: var(--ink-faint); box-shadow: inset 0 0 0 1px var(--line); }
.adm-photo--none .fh-icon { width: 22px; height: 22px; }
.adm-meta { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-name { font-weight: 700; overflow-wrap: anywhere; }
.adm-note-text { margin: 0; font-size: var(--fs-sm); color: var(--ink); overflow-wrap: anywhere; }
.adm-note-text--empty { color: var(--ink-soft); }
.adm-time, .adm-coords { margin: 0; font-size: var(--fs-xs); color: var(--ink-soft); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }

.adm-actions { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.adm-btn-delete { width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  display: grid; place-items: center; background: var(--danger-wash); color: var(--danger);
  box-shadow: inset 0 0 0 1px var(--danger-line); }
.adm-btn-delete:hover { background: rgba(248,113,113,0.2); }
.adm-btn-delete .fh-icon { width: 20px; height: 20px; }
.adm-card--leaving .adm-card { opacity: 0.55; }
.adm-undo { display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-1); }
.adm-undo__text { font-size: var(--fs-xs); font-weight: 700; color: var(--danger); }
.adm-undo__btn { min-height: var(--tap-min); }

/* ---- Frankie's photo panel ---- */
.adm-photo-panel { padding-top: var(--space-4); padding-bottom: var(--space-7); }
.adm-photo-panel:focus { outline: none; }
.adm-hero { padding: 0; background: none; box-shadow: none; }
.adm-hero__title { font-size: var(--fs-lg); margin-bottom: var(--space-1); }
.adm-hero > .fh-help { margin: 0 0 var(--space-4); }
.adm-hero__frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-card); overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; place-items: center; color: var(--ink-faint); }
.adm-hero__frame .fh-icon { width: 32px; height: 32px; }
.adm-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.adm-hero__live { position: absolute; left: var(--space-3); bottom: var(--space-3); }
.adm-hero__row { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.adm-hero__choose { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: 96px; padding: var(--space-4); border-radius: var(--radius-card); cursor: pointer; text-align: center;
  background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.adm-hero__choose:hover { background: rgba(255,255,255,0.06); }
.adm-hero__choose .fh-icon { color: var(--primary); }
.adm-hero__choose strong { font-weight: 700; }
.adm-hero__filename { font-size: var(--fs-xs); color: var(--ink-soft); }
.adm-hero__file { position: absolute; width: 0; height: 0; opacity: 0; overflow: hidden; }
.adm-hero__file:focus-visible + .adm-hero__choose { outline: 3px solid var(--primary); outline-offset: 2px; }

/* ---- Toasts (announced, never steal focus) ---- */
.adm-toasts { position: fixed; left: 0; right: 0; bottom: max(var(--space-4), env(safe-area-inset-bottom));
  z-index: 50; display: flex; flex-direction: column; gap: var(--space-2); pointer-events: none; }
.adm-toast { position: relative; overflow: hidden; padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: var(--ink); color: var(--bg); font-weight: 700; font-size: var(--fs-sm);
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.7); animation: adm-in 220ms var(--ease-out) both; }
@keyframes adm-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Video sightings: a "Watch the video" line under the details. */
.adm-video { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.adm-video .fh-icon { width: 16px; height: 16px; }
