.admin-hub { container-type: inline-size; background: var(--bg); border: 0; min-width: 0; }
.admin-hub * { letter-spacing: 0; }
.admin-hub-content { min-width: 0; padding-top: 8px; }
.admin-product-section { min-width: 0; }
.admin-product-title { margin: 0 0 18px; font-size: 16px; line-height: 1.4; font-weight: 650; color: var(--text); }
.admin-product-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.admin-product-groups .admin-group-heading h3 { font-size: 16px; }
.admin-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; row-gap: 22px; }
.admin-settings-group { min-width: 0; }
.admin-group-heading { display: flex; align-items: center; gap: 9px; min-height: 34px; padding-bottom: 9px; border-bottom: 1px solid var(--line-strong); }
.admin-group-heading h3 { font-size: 14px; line-height: 1.3; font-weight: 650; margin: 0; color: var(--text); }
.admin-group-heading > .nav-icon { width: 18px; height: 18px; color: var(--accent); }
.admin-group-heading > span:last-child:not(.nav-icon) { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 400; }
[data-admin-group-section="security"] .admin-group-heading > .nav-icon { color: var(--blue); }
[data-admin-group-section="evidence"] .admin-group-heading > .nav-icon { color: var(--amber); }
.admin-setting-row { display: flex; align-items: center; width: 100%; gap: 10px; padding: 12px 4px; min-height: 42px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--text); text-align: left; justify-content: flex-start; }
.admin-setting-row:hover { background: var(--panel); }
.admin-setting-copy { flex: 1; min-width: 0; }
.admin-setting-copy strong { font-size: 12px; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.admin-setting-action { color: var(--muted); font-size: 10px; font-weight: 400; flex-shrink: 0; }
.admin-chevron { flex: 0 0 14px; width: 14px; height: 14px; color: var(--muted); margin: 0 1px; }
.admin-staff-tools { border-top: 1px solid var(--line-strong); margin-top: 26px; padding: 18px 0 0; }
.admin-staff-tools .admin-group-heading { border: 0; }
.admin-empty { padding: 44px 12px; color: var(--muted); text-align: center; font-size: 13px; }
.admin-hub button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Keep the existing shell's stacked mobile layout above density overrides. */
@media (max-width: 980px) {
  body[data-density]:has(#adminView.active) { grid-template-columns: minmax(0, 1fr); }
  body[data-density]:has(#adminView.active) > .sidebar { min-height: 0; max-height: 180px; overflow-y: auto; align-items: stretch; }
  body[data-density]:has(#adminView.active) > .app-shell { min-width: 0; padding: 12px; }
  body[data-density]:has(#adminView.active) > .shortcut-rail { min-height: 0; max-height: 220px; overflow-y: auto; }
}
@container (max-width: 850px) {
  .admin-groups, .admin-product-groups { column-gap: 18px; }
  .admin-setting-action { display: none; }
}
@container (max-width: 520px) {
  .admin-groups, .admin-product-groups { grid-template-columns: minmax(0, 1fr); }
}
