/* /agentic-erp/ · the Admin desk grown to every admin job (build.py admin_desk(), pages/erp/admin.js; Saife 2026-10-19).
   The eight tabs sit in a 4 x 2 grid so the desk still fits the pinned screen; the new panes reuse the desk's own list
   rows (panel-2 rows on a hairline) and its badge colours: green allowed or live, red walled or denied, grey removed. */
.adc__tabs--8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.adc__tabs--8 button { min-height: 36px; font-size: 13px; }
.adc__tabs button.is-new { animation: adcPing 1.4s ease-out; }
@keyframes adcPing { 0% { box-shadow: inset 0 0 0 1px var(--lh), 0 0 0 0 color-mix(in oklab, var(--lh) 70%, transparent); color: #fff; }
  100% { box-shadow: inset 0 0 0 1px transparent, 0 0 0 10px transparent; } }

.adc__count { font-weight: 500; color: var(--ink-4); }
.adc__reg, .adc__walls, .adc__probes, .adc__held, .adc__log, .adc__caps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.adc__reg li, .adc__walls li, .adc__probes li, .adc__held li, .adc__caps li { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-2); font-size: 12.5px; color: var(--fg-body); transition: opacity .4s; }
.adc__reg li > span:first-child, .adc__caps span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.adc__reg b, .adc__walls b, .adc__caps span { color: var(--sc-ink); font-weight: 600; }
.adc__reg i, .adc__caps i { font-style: normal; font-weight: 500; font-size: 11.5px; color: var(--ink-4); }
.adc__last { margin-left: auto; font-size: 11.5px; color: var(--ink-4); white-space: nowrap; }
.adc__reg li.is-dormant .adc__last { color: #f3c98b; }
.adc__reg li.is-gone, .adc__held li.is-gone { opacity: .55; }

/* status chips: the same shapes as the probe's Allow and Deny badges, smaller */
.adc__pane em { flex: none; font: 600 11px/1 var(--sc-font-text); font-style: normal; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.adc__pane em.ok { color: #b9f5cf; background: #0f2a1b; border: 1px solid #1f5f3a; }
.adc__pane em.no { color: #ffb4a8; background: #2a1414; border: 1px solid #5c2620; }
.adc__pane em.gone { color: var(--ink-2); background: #15171f; border: 1px solid var(--line-2); }
.adc__pane em.warn { color: #f8d9a8; background: #2a1f0f; border: 1px solid #6a4a1c; }
.adc__pane em.pause { color: #e3d6ff; background: color-mix(in oklab, var(--lh) 22%, #12141c); border: 1px solid color-mix(in oklab, var(--lh) 55%, transparent); }

.adc__btn { flex: none; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid color-mix(in oklab, var(--lh) 55%, transparent);
  background: color-mix(in oklab, var(--lh) 20%, #12141c); color: #fff; font: 600 12.5px var(--sc-font-text); cursor: pointer; transition: border-color .2s, opacity .2s; }
.adc__btn:hover { border-color: var(--lh); }
.adc__btn:focus-visible { outline: 2px solid var(--lh); outline-offset: 2px; }
.adc__btn:disabled { opacity: .5; cursor: default; }
.adc__btn--sm { min-height: 28px; padding: 0 11px; font-size: 11.5px; }

.adc__walls li > span:first-child { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.adc__walls li > span:first-child i { font-style: normal; color: var(--lh); }
.adc__wnote { margin-left: auto; font-size: 11.5px; color: var(--ink-4); text-align: right; }
.adc__wallrun { margin-top: 14px; display: grid; gap: 10px; justify-items: start; }
.adc__probes { width: 100%; }
.adc__probes li { animation: adcIn .3s ease-out both; }
.adc__probes .adc__verdict { justify-content: flex-start; color: #b9f5cf; font-weight: 600; background: #0f2a1b; border-color: #1f5f3a; }
@keyframes adcIn { from { opacity: 0; transform: translateY(4px); } }

.adc__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.adc__stats p { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-2); }
.adc__stats b { display: block; font: 600 20px/1.1 var(--sc-font-display); color: var(--sc-ink); }
.adc__stats span { display: block; margin-top: 4px; font-size: 11.5px; line-height: 1.35; color: var(--ink-4); }

.adc__leaver { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 10px; background: #0b0d13; border: 1px solid var(--line-2); }
.adc__leaver p { margin: 0; }
.adc__leaver b { display: block; color: var(--sc-ink); font-size: 14px; }
.adc__leaver span { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-4); }

.adc__log li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; padding: 8px 10px; border-radius: 9px; background: var(--panel-2); border: 1px solid var(--line-2); }
.adc__log li > span { font: 500 11.5px/1.5 var(--sc-font-mono); color: var(--ink-4); }
.adc__log p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--fg-body); }
.adc__log li.is-new { border-color: color-mix(in oklab, var(--lh) 60%, transparent); background: color-mix(in oklab, var(--lh) 12%, var(--panel-2)); animation: adcIn .3s ease-out both; }
.adc__log li.is-new > span { color: var(--lh); }

@media (max-width: 760px) {
  .adc__tabs--8 button { min-height: 34px; font-size: 11.5px; padding: 0 4px; }
  .adc__reg li, .adc__walls li, .adc__caps li { flex-wrap: wrap; }
  .adc__last, .adc__wnote { margin-left: 0; order: 3; flex-basis: 100%; text-align: left; }
  .adc__stats b { font-size: 17px; }
  .adc__log li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .adc__tabs button.is-new, .adc__probes li, .adc__log li.is-new { animation: none; } }

/* the section is pinned (a sticky stage one screen tall, clipped), so the copy and the desk must fit one screen: a
   smaller headline and a 2 x 2 legend beside the desk, and a desk window no taller than the screen whose panel scrolls
   inside it, as an admin console does. On phones the window takes the height left under the headline. */
.erp #desk .ad__copy .h2 { font-size: clamp(32px, 3.3vw, 52px); }
.erp #desk .ad__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 24px; margin-top: 22px; }
.erp #desk .ad__legend div { padding-top: 10px; }
.erp #desk .ad__legend dd { font-size: 13.5px; line-height: 1.5; }
.erp #desk .ad__hint { margin-top: 16px; }
.erp #desk .adc { display: flex; flex-direction: column; max-height: calc(100svh - var(--bar-h) - 120px); }
.erp #desk .adc > * { flex: none; }
.erp #desk .adc__panel { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: color-mix(in oklab, var(--lh) 45%, transparent) transparent; }
@media (max-width: 960px) {
  .erp #desk .ad__stage { grid-template-rows: auto minmax(0, 1fr); }
  .erp #desk .ad__copy .h2 { font-size: 26px; }
  /* stretched to its row, so the window is capped by the row rather than overflowing it and being centred upwards */
  .erp #desk .ad__mock { min-height: 0; margin: 0; display: flex; align-self: stretch; align-items: flex-start; }
  .erp #desk .adc { width: 100%; max-height: 100%; }
}
@media (min-width: 961px) and (max-height: 780px) { .erp #desk .ad__hint { display: none; } }

