/* ============================================================== */
/* developments/css/admin-v2.css — D109                            */
/* Admin v2: ground-up rebuild as a real ops console.              */
/*                                                                  */
/* Lives next to (not inside) admin-v1 CSS. v1 styles in           */
/* devmap.css stay untouched until v2 cutover. The new selectors   */
/* are namespaced `.av2-*` so there's zero CSS bleed.              */
/* ============================================================== */

/* When the v2 module mounts, it sets [data-admin-v2-active=1] on  */
/* <body>. This is the toggle that widens the right rail and slides */
/* mapbox controls clear. Everything v2 expects this attribute.     */

body[data-admin-v2-active="1"] #dev-nav {
  width: min(880px, calc(100vw - 60px - 16px - 16px));
}
body[data-admin-v2-active="1"] .mapboxgl-ctrl-bottom-right {
  right: calc(60px + 16px + min(880px, 100vw - 60px - 32px) + 8px) !important;
}
/* Below 1024px the right rail isn't pinned-floating; the body width
   rule still applies but the panel is full-flow. Don't widen on
   narrow screens — the panel just takes whatever it gets. */
@media (max-width: 1023px) {
  body[data-admin-v2-active="1"] #dev-nav {
    width: 100%;
    max-width: none;
  }
}

/* ==================== shell ==================== */
.av2 {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface-1, #fff);
  color: var(--ink-1, #111);
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.45;
}

.av2-head {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--line, #e7e5e4);
}
.av2-head-title {
  font: 600 17px/1 var(--font-display, var(--font-body));
  letter-spacing: -0.01em;
}
.av2-head-stamp {
  font: 500 11px/1 var(--font-mono);
  color: var(--ink-3, #6b7280);
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* B7a/D15 (2026-06-02) — DEAD COCKPIT SELECTORS REMOVED.
 * admin-v2.js was cut to the auth gate + AdminV6 handoff (P2 cutover,
 * 2026-05-31). The only `.av2-*` classes it still emits are
 * .av2 / .av2-head{,-title,-stamp} / .av2-gate{,-eyebrow,-title,-cue,
 * -form,-input,-submit} (verified: grep `.av2-` in developments/js/**
 * = admin-v2.js is the sole writer; AdminV6 uses the separate `.av6-*`
 * namespace). The retired cockpit's ribbon/alerts/two-pane body/rail/
 * detail/search/filter/table/row/drawer/why/drilldown/skeleton/footer/
 * invariants selector families — plus the head's retired lock button
 * (.av2-head-stamp button, .av2-lock) — had ZERO live emitter anywhere
 * in the repo and are deleted here. Reversible via git history. */

/* ==================== gate (re-uses devmap.css gate but namespaced) ==================== */
.av2-gate {
  padding: 32px 24px;
  max-width: 320px;
}
.av2-gate-eyebrow {
  font: 600 10px/1 var(--font-body);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3, #6b7280);
}
.av2-gate-title {
  font: 600 22px/1.1 var(--font-display, var(--font-body));
  color: var(--ink-1, #111);
  margin: 6px 0 10px;
}
.av2-gate-cue {
  font: 400 13px/1.5 var(--font-body);
  color: var(--ink-3, #6b7280);
  margin-bottom: 16px;
}
.av2-gate-form { display: flex; gap: 8px; }
.av2-gate-input {
  flex: 1 1 auto;
  appearance: none;
  border: 1px solid var(--line-strong, #d1d5db);
  background: var(--surface-1, #fff);
  color: var(--ink-1, #111);
  font: 500 14px/1 var(--font-mono);
  padding: 8px 10px;
  border-radius: 5px;
  outline: none;
}
.av2-gate-input:focus { border-color: var(--ink-1, #111); }
.av2-gate-submit {
  appearance: none;
  border: 1px solid var(--ink-1, #111);
  background: var(--ink-1, #111);
  color: var(--surface-1, #fff);
  font: 600 12px/1 var(--font-body);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0 14px;
  border-radius: 5px;
  cursor: pointer;
}
.av2-gate-err {
  font: 500 12px/1.3 var(--font-body);
  color: var(--status-error, #dc2626);
  margin-top: 8px;
}
