/* admin + lab pages: one centred column, sections stacked */
.topbar { display: flex; align-items: center; gap: 16px; height: 52px; padding: 0 max(24px, calc((100% - 1072px) / 2)); border-bottom: 1px solid var(--line); }
.crumb { color: var(--fg-2); }
.crumb.sep::before { content: '/'; color: var(--fg-3); margin-right: 16px; }
.tabs { display: flex; gap: 4px; margin-left: auto; }
.tabs a { color: var(--fg-2); text-decoration: none; padding: 6px 10px; border-radius: var(--r-2); }
.tabs a:hover { color: var(--fg-1); background: var(--bg-hover); }
.tabs a[aria-current] { color: var(--fg-1); background: var(--bg-active); }
.tabs .tab-off { color: var(--fg-3); padding: 6px 10px; cursor: default; }

.page { max-width: 1120px; margin: 0 auto; padding: 32px 24px 96px; }
.head { margin-bottom: 32px; }
.head p { margin-top: 4px; }
.sec { padding-top: 24px; margin-top: 24px; border-top: 1px solid var(--line); }
.sec:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
.sec-h { display: flex; align-items: center; gap: 12px; min-height: 32px; margin-bottom: 16px; }
.sec-h h2 { font: var(--t-body); font-weight: 600; }
.aside { margin-left: auto; }
.aside .big { font-weight: 600; color: var(--fg-1); }

/* GPU line */
.line { display: flex; align-items: stretch; gap: 8px; }
.slot { border: 1px solid var(--line-strong); border-radius: var(--r-3); padding: 10px 12px; display: grid; gap: 6px; align-content: start; min-width: 0; }
.slot.holder { flex: 1 1 auto; background: var(--bg-raised); }
.slot.q { flex: 0 1 240px; }
.slot .k { font: var(--t-meta); color: var(--fg-3); }
.slot .v { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot .meta { white-space: normal; }
.tbl .acts .ph { visibility: hidden; }
.ticks { display: grid; grid-template-columns: repeat(64, 1fr); gap: 2px; height: 10px; }
.ticks i { background: var(--bg-active); border-radius: 1px; }
.ticks i.on { background: var(--accent); }
.arrow { align-self: center; color: var(--fg-3); flex: none; }
.spark-t { margin-top: 16px; }
.spark { display: block; width: 100%; height: 72px; margin-top: 8px; }
.spark-x { display: flex; justify-content: space-between; margin-top: 4px; padding-left: 36px; color: var(--fg-2); }

/* table */
.tbl-wrap { overflow-x: auto; margin: 0 -8px; }
.tbl { width: 100%; border-collapse: collapse; min-width: 860px; }
.tbl th { font: var(--t-meta); color: var(--fg-2); text-align: left; padding: 0 8px 8px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; }
.tbl td { padding: 0 8px; height: 44px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl tr:hover td { background: var(--bg-hover); }
.tbl .r { text-align: right; }
.tbl .who { display: flex; flex-direction: column; justify-content: center; }
.tbl .st { display: inline-flex; align-items: center; gap: 8px; min-width: 190px; }
.tbl .st.gen { color: var(--fg-1); }
.tbl .st.gen b { color: var(--accent); font-weight: 500; }
.tbl .st.mute { color: var(--fg-2); }
.tbl .acts { text-align: left; width: 1%; }
.tbl .acts .btn + .btn, .tbl .acts .btn + .ph { margin-left: 4px; }
.tbl .acts .btn { height: 26px; padding: 0 8px; color: var(--fg-3); }
.tbl tr:hover .acts .btn { color: var(--fg-2); }
.tbl .acts .btn:hover { color: var(--fg-1); }
.tbl .acts .btn { min-width: 76px; justify-content: center; }
.tbl .acts .btn.armed { color: var(--fg-1); border-color: var(--line-strong); }
.foot-note { margin-top: 12px; }

/* drawer */
.drawer { position: fixed; top: 32px; right: 0; bottom: 0; width: min(480px, 100vw); background: var(--bg-raised); border-left: 1px solid var(--line-strong); box-shadow: -24px 0 48px oklch(0 0 0 / .4); display: flex; flex-direction: column; z-index: 40; }
.drawer-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.drawer-b { padding: 16px; overflow-y: auto; display: grid; gap: 16px; }
.drawer-b .u { justify-self: end; max-width: 85%; background: var(--bg-active); padding: 8px 12px; border-radius: 12px 12px 4px 12px; }

@media (max-width: 760px) {
  .topbar { padding: 0 16px; gap: 12px; }
  .topbar .crumb { display: none; }
  .tabs { display: none; }
  .page { padding: 24px 16px 64px; }
  .line { flex-direction: column; }
  .slot.q { flex: none; }
  .arrow { transform: rotate(90deg); }
  .sec-h { flex-wrap: wrap; }
  .mock .lbl { display: none; }
  .tbl { min-width: 0; }
  .tbl-wrap { margin: 0; }
  .tbl td { white-space: normal; height: auto; padding-top: 8px; padding-bottom: 8px; }
  .tbl td.r { white-space: nowrap; }
  .tbl th:nth-child(2), .tbl td:nth-child(2), .tbl th:nth-child(4), .tbl td:nth-child(4), .tbl th:nth-child(6), .tbl td:nth-child(6), .tbl th:nth-child(7), .tbl td:nth-child(7) { display: none; }
  .tbl .st { min-width: 0; }
  .sec-h .aside { flex-basis: 100%; margin-left: 0; }
}
