.admin-page {
  grid-area: dashboard;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border-color: #183d72;
  background: #061127;
}

.app-navigation-item[hidden] { display: none !important; }

.admin-page[hidden] { display: none; }

.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 82px;
  padding: 16px 20px;
  border-bottom: 1px solid #1b3b68;
  background: #081936;
}

.admin-page-header p { margin: 0 0 4px; color: #43e9f0; font: 700 9px "DM Mono",monospace; letter-spacing: .15em; }
.admin-page-header h1 { margin: 0; color: #f0f6ff; font-size: 23px; letter-spacing: -.035em; }
.admin-page-header span { display: block; margin-top: 4px; color: #a8b9cf; font-size: 11px; }
.admin-page-header button,
.admin-test-banner button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  border: 1px solid #2469aa;
  border-radius: 8px;
  color: #dff9ff;
  background: #0a2c57;
  font: 800 10px Manrope,sans-serif;
  cursor: pointer;
}
.admin-page-header button:hover { border-color: #45eaf2; box-shadow: 0 0 16px rgba(37,244,238,.12); }
.admin-page-header button:disabled { cursor: wait; opacity: .55; }

.admin-test-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 15px 18px 0;
  padding: 12px 14px;
  border: 1px solid #b56a22;
  border-radius: 10px;
  background: #2b1809;
  box-shadow: 7px 9px 18px rgba(0,0,0,.3);
}
.admin-test-banner[hidden] { display: none; }
.admin-test-banner strong,
.admin-test-banner small { display: block; }
.admin-test-banner strong { color: #ffd79b; font-size: 12px; }
.admin-test-banner small { margin-top: 3px; color: #d8b784; font-size: 10px; }
.admin-test-banner button { border-color: #c27b33; color: #ffe3b8; background: #572d0c; }
.admin-test-actions { display: flex; flex: 0 0 auto; gap: 8px; }
.admin-test-actions #saveAdminProfile { border-color: #2bb7b9; color: #dffffa; background: #07545b; }
.admin-test-actions #saveAdminProfile:hover { border-color: #62ece7; box-shadow: 0 0 16px rgba(54,232,222,.14); }
.admin-test-actions #saveAdminProfile:disabled { cursor: wait; opacity: .55; }

.admin-subnavigation { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:8px; padding:12px 20px; border-bottom:1px solid #19365d; background:#06132b; }
.admin-subnavigation button { display:flex; min-width:0; align-items:center; gap:8px; min-height:48px; padding:8px 10px; border:1px solid #1c3d67; border-radius:9px; color:#9db0c9; background:#07172f; cursor:pointer; text-align:left; transition:border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease; }
.admin-subnavigation button:hover { border-color:#2f7eac; color:#dff8ff; transform:translateY(-1px); box-shadow:0 7px 14px rgba(0,0,0,.22); }
.admin-subnavigation button.active { border-color:#25bcd2; color:#effcff; background:#0a294e; box-shadow:inset 0 -2px 0 #39dce8,0 0 14px rgba(38,213,226,.1); }
.admin-subnavigation button > i { display:grid; flex:0 0 auto; width:27px; height:27px; place-items:center; border:1px solid #28517d; border-radius:7px; color:#60cfe2; background:#0a203e; font:800 9px "DM Mono",monospace; font-style:normal; }
.admin-subnavigation button.active > i { border-color:#32b9d0; color:#85f3f5; background:#0b3657; }
.admin-subnavigation strong,.admin-subnavigation small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-subnavigation strong { color:inherit; font-size:10px; }
.admin-subnavigation small { margin-top:2px; color:#8299b6; font-size:8px; }
[data-admin-panel][hidden],[data-admin-section][hidden] { display:none !important; }

.admin-grid { display: grid; gap: 18px; padding: 20px; }
.admin-card { padding: 18px; border: 1px solid #1d416e; border-radius: 12px; background: #07162f; box-shadow: 8px 10px 22px rgba(0,0,0,.28); }
.admin-card > header { display: flex; align-items: center; gap: 11px; padding-bottom: 15px; border-bottom: 1px solid #19365d; }
.admin-card > header > i { display: grid; flex: 0 0 auto; width: 34px; height: 34px; place-items: center; border: 1px solid #286aa1; border-radius: 9px; color: #55ebf2; background: #0a294e; font: 800 12px "DM Mono",monospace; font-style: normal; }
.admin-card > header > span { min-width: 0; }
.admin-card > header strong,
.admin-card > header small { display: block; }
.admin-card > header strong { color: #edf5ff; font-size: 13px; }
.admin-card > header small { margin-top: 3px; color: #9eb1ca; font-size: 10px; }
.admin-card > header > b { margin-left: auto; color: #73eaf0; font: 700 9px "DM Mono",monospace; }
.admin-health-card > header > b { margin-left:auto; padding:5px 8px; border:1px solid #246678; border-radius:999px; background:#092a3b; color:#75ebd0; }
.admin-health-card > header > b[data-state="warning"] { border-color:#87672b; background:#2b210d; color:#ffd27a; }
.admin-health-card > header > b[data-state="error"] { border-color:#81384a; background:#30131d; color:#ff91a7; }
.admin-health-card > header > button { min-height:32px; padding:0 11px; border:1px solid #2b6294; border-radius:7px; color:#d9f6ff; background:#0a2a50; font:800 9px Manrope,sans-serif; cursor:pointer; }
.admin-health-card > header > button:disabled { opacity:.5; cursor:wait; }
.admin-health-resources { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:9px; padding-top:14px; }
.admin-health-resources article { min-width:0; padding:11px; border:1px solid #1f436d; border-radius:9px; background:#061329; }
.admin-health-resources article[data-tone="warning"] { border-color:#765a2b; background:#211a0d; }
.admin-health-resources article[data-tone="critical"] { border-color:#7d3348; background:#29121c; }
.admin-health-resources small,.admin-health-resources strong,.admin-health-resources span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.admin-health-resources small { color:#6ecbdc; font:750 8px "DM Mono",monospace; letter-spacing:.08em; }
.admin-health-resources strong { margin-top:5px; color:#eff7ff; font-size:17px; }
.admin-health-resources span { margin-top:2px; color:#9eb2ca; font-size:9px; }
.admin-health-warnings { margin-top:11px; padding:11px; border:1px solid #1c3d66; border-radius:9px; background:#061329; }
.admin-health-warnings > strong { color:#dceaff; font-size:10px; }
.admin-health-warnings > div { display:grid; gap:6px; margin-top:8px; }
.admin-health-warnings article { display:flex; align-items:center; gap:8px; padding:7px 9px; border-radius:7px; background:#0a1b36; }
.admin-health-warnings article[data-level="healthy"] { border-left:3px solid #45dcb0; }
.admin-health-warnings article[data-level="warning"] { border-left:3px solid #efbd54; }
.admin-health-warnings article[data-level="critical"] { border-left:3px solid #ff6c89; }
.admin-health-warnings article strong { flex:0 0 auto; color:#eaf3ff; font-size:9px; }
.admin-health-warnings article span,.admin-health-warnings p { margin:0; color:#a9bbd0; font-size:9px; }
.admin-health-columns { display:grid; grid-template-columns:1fr 1fr; gap:11px; margin-top:11px; }
.admin-health-panel { margin-top:11px; border:1px solid #1d416b; border-radius:9px; overflow:hidden; background:#061329; }
.admin-health-columns .admin-health-panel { margin-top:0; }
.admin-health-panel > header { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 11px; border-bottom:1px solid #17365d; background:#091a36; }
.admin-health-panel > header strong { color:#e7f2ff; font-size:10px; }
.admin-health-panel > header small { color:#8fa5c0; font-size:8px; }
.admin-health-history > header > span strong,.admin-health-history > header > span small { display:block; }
.admin-health-history > header label { display:flex; align-items:center; gap:8px; color:#91a8c4; font:750 8px "DM Mono",monospace; text-transform:uppercase; }
.admin-health-history > header select { min-width:132px; height:31px; padding:0 30px 0 9px; border:1px solid #28527f; border-radius:7px; color:#eaf5ff; background:#071a37; font:700 9px Manrope,sans-serif; cursor:pointer; }
.admin-health-charts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; padding:11px; }
.admin-health-charts > p { grid-column:1/-1; margin:0; padding:20px; color:#92a8c1; font-size:9px; text-align:center; }
.admin-health-charts article { min-width:0; overflow:hidden; border:1px solid #1b3d67; border-radius:8px; background:#07172f; }
.admin-health-charts article header { display:flex; align-items:flex-start; justify-content:space-between; gap:8px; padding:9px 10px 0; }
.admin-health-charts article header small,.admin-health-charts article header strong { display:block; }
.admin-health-charts article header small { color:#77bdd0; font:750 7px "DM Mono",monospace; letter-spacing:.07em; }
.admin-health-charts article header strong { margin-top:3px; color:#eef7ff; font-size:15px; }
.admin-health-charts article header b { color:#859db8; font:650 8px "DM Mono",monospace; }
.admin-health-charts svg { display:block; width:100%; height:66px; margin-top:3px; }
#adminHealthProviders,#adminHealthLatency { display:grid; }
#adminHealthProviders > article,#adminHealthLatency > article { display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:37px; padding:7px 11px; border-bottom:1px solid #132f50; }
#adminHealthProviders > article:last-child,#adminHealthLatency > article:last-child { border-bottom:0; }
#adminHealthProviders article > span,#adminHealthLatency article > span { min-width:0; }
#adminHealthProviders article > span:first-child { display:flex; align-items:center; gap:7px; }
#adminHealthProviders i { width:7px; height:7px; border-radius:50%; background:#efbd54; box-shadow:0 0 8px currentColor; }
#adminHealthProviders i[data-state="online"] { background:#42deb0; }
#adminHealthProviders strong,#adminHealthLatency strong,#adminHealthProviders b,#adminHealthLatency b { display:block; color:#dce9f8; font-size:9px; }
#adminHealthProviders b,#adminHealthLatency b { text-align:right; }
#adminHealthProviders small,#adminHealthLatency small { display:block; margin-top:2px; color:#899fb9; font-size:8px; }
#adminHealthProviders article > span:last-child small,#adminHealthLatency article > span:last-child small { text-align:right; }
#adminHealthProviders > p,#adminHealthLatency > p,#adminHealthTrace > p { margin:0; padding:16px; color:#8fa5bf; font-size:9px; }
.admin-health-table-wrap { overflow-x:auto; }
.admin-health-accounts table { width:100%; border-collapse:collapse; min-width:900px; }
.admin-health-accounts th { padding:8px 10px; color:#7191b4; background:#07172f; font:750 8px "DM Mono",monospace; text-align:left; }
.admin-health-accounts td { padding:9px 10px; border-top:1px solid #132e4e; color:#bdd0e4; font-size:9px; vertical-align:middle; }
.admin-health-accounts td strong,.admin-health-accounts td small,.admin-health-accounts td b { display:block; }
.admin-health-accounts td strong { color:#e4eef9; }
.admin-health-accounts td small { margin-top:2px; color:#8097b2; font-size:8px; }
.admin-health-accounts td b { width:max-content; padding:3px 6px; border-radius:999px; color:#9cb1cb; background:#142742; font:700 8px "DM Mono",monospace; text-transform:uppercase; }
.admin-health-accounts td b[data-state="connected"] { color:#74e8c5; background:#0c3a36; }
.admin-health-accounts td b[data-state="waiting"],.admin-health-accounts td b[data-state="connecting"] { color:#80dff4; background:#10334d; }
.admin-health-accounts td b[data-state="ready"] { color:#74e8c5; background:#0c3a36; }
.admin-health-accounts td b[data-state="blocked"],.admin-health-accounts td b[data-state="error"] { color:#ff9bb0; background:#351621; }
#adminHealthTrace { display:grid; max-height:220px; overflow-y:auto; }
#adminHealthTrace article { display:grid; grid-template-columns:68px 70px minmax(100px,.7fr) minmax(160px,1.5fr) auto; align-items:center; gap:8px; padding:8px 11px; border-bottom:1px solid #132f50; }
#adminHealthTrace article:last-child { border-bottom:0; }
#adminHealthTrace time,#adminHealthTrace b { color:#7191b4; font:700 8px "DM Mono",monospace; }
#adminHealthTrace b { color:#62ddea; }
#adminHealthTrace span { overflow:hidden; color:#dbe8f6; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
#adminHealthTrace small { overflow:hidden; color:#91a6c0; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
#adminHealthTrace em { padding:3px 6px; border-radius:999px; color:#ffb0bf; background:#321724; font:700 8px "DM Mono",monospace; font-style:normal; }
#adminHealthTrace em[data-match="true"] { color:#73e5c2; background:#0b3933; }
#adminHealthTrace article[data-stage="failed"] b,#adminHealthTrace article[data-stage="blocked"] b,#adminHealthTrace article[data-stage="audio_blocked"] b { color:#ff829b; }
#adminHealthTrace article[data-stage="completed"] b,#adminHealthTrace article[data-stage="audio_ready"] b { color:#69dfb9; }
#adminHealthTrace em[data-status="success"] { color:#73e5c2; background:#0b3933; }
#adminHealthTrace em[data-status="error"] { color:#ff9cb0; background:#351621; }
#adminHealthTrace em[data-status="fallback"] { color:#ffd27b; background:#33260e; }
.admin-health-updated { margin:9px 1px 0; color:#829ab7; font:700 8px "DM Mono",monospace; }
.admin-card .system-moderator-settings { margin-top: 13px; }
.admin-overlay-refresh-manager form { grid-template-columns:minmax(220px,1fr) auto; align-items:end; }
.admin-overlay-refresh-manager select { min-height:40px; border:1px solid #23517d; border-radius:8px; padding:0 36px 0 10px; background:#030d22; color:#f4f8ff; }
.admin-overlay-refresh-manager button { min-width:130px; border-color:#27cddd; background:#096174; }
.admin-overlay-refresh-manager p { grid-column:1/-1; }
.admin-desktop-control-manager form { grid-template-columns:minmax(220px,1fr) minmax(180px,.55fr) auto;align-items:end; }
.admin-desktop-control-manager select { min-height:40px;border:1px solid #23517d;border-radius:8px;padding:0 36px 0 10px;background:#030d22;color:#f4f8ff; }
.admin-desktop-control-manager label small { color:#91a8c7;font-size:10px;font-weight:500; }
.admin-desktop-control-manager button { min-width:130px;border-color:#34cce0;background:#07566d; }
.admin-desktop-control-manager p { grid-column:1/-1; }
@media(max-width:620px){.admin-overlay-refresh-manager form{grid-template-columns:1fr}.admin-overlay-refresh-manager p{grid-column:auto}}
@media(max-width:760px){.admin-desktop-control-manager form{grid-template-columns:1fr}.admin-desktop-control-manager p{grid-column:auto}}
.admin-discord-application > header b[data-state=online] { background: #182d54; color: #7fdcff; }
.admin-discord-application .admin-discord-enable { display:flex; grid-column:1/-1; grid-template-columns:auto 1fr; align-items:center; gap:8px; }
.admin-discord-application .admin-discord-enable input { width:16px; min-height:16px; margin:0; accent-color:#36dbe8; }
.admin-discord-actions { display:flex; flex-wrap:wrap; gap:8px; }
.admin-discord-application .admin-discord-actions button { min-width:100px; border-color:#3473ba; background:#123e73; }
.admin-discord-application .admin-discord-actions button:first-child { border-color:#27cddd; background:#096174; }
.admin-discord-application .admin-discord-actions button:last-child { border-color:#7b3750; background:#3a1726; color:#ffafbf; }

.admin-event-injector-form { display: grid; gap: 12px; padding-top: 13px; }
.admin-event-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.admin-event-extra { grid-template-columns: minmax(180px,1.6fr) repeat(3,minmax(90px,.65fr)); padding: 11px; border: 1px solid #1b3d67; border-radius: 10px; background: #061329; }
.admin-event-injector-form label { display: grid; min-width: 0; gap: 5px; color: #adbed3; font-size: 10px; font-weight: 800; }
.admin-event-injector-form input,
.admin-event-injector-form select { box-sizing: border-box; width: 100%; height: 39px; padding: 0 11px; border: 1px solid #284b77; border-radius: 8px; outline: 0; color: #eef6ff; background: #071a37; font: 650 12px Manrope,sans-serif; }
.admin-event-injector-form input:focus,
.admin-event-injector-form select:focus { border-color: #43dce8; box-shadow: 0 0 0 2px rgba(37,244,238,.09); }
.admin-event-wide { grid-column: 1/-1; }
.admin-inject-roles { display: flex; flex-wrap: wrap; gap: 8px 15px; margin: 0; padding: 10px 12px 11px; border: 1px solid #1b3d67; border-radius: 10px; background: #061329; }
.admin-inject-roles legend { padding: 0 5px; color: #78e7ec; font: 700 9px "DM Mono",monospace; letter-spacing: .05em; }
.admin-inject-roles label { display: flex; grid-template-columns: auto 1fr; align-items: center; gap: 6px; color: #b8c8da; }
.admin-inject-roles input { width: 15px; height: 15px; margin: 0; accent-color: #25dfe7; }
.admin-inject-actions { display: flex; align-items: center; gap: 12px; }
.admin-inject-actions button { min-height: 39px; padding: 0 16px; border: 1px solid #29cbd5; border-radius: 8px; color: #031321; background: #40dce4; font: 850 10px Manrope,sans-serif; cursor: pointer; box-shadow: 0 7px 14px rgba(0,0,0,.24); }
.admin-inject-actions button:hover { background: #66e8ed; box-shadow: 0 0 18px rgba(52,224,232,.18),0 7px 14px rgba(0,0,0,.24); }
.admin-inject-actions button:disabled { cursor: wait; opacity: .55; }
.admin-inject-actions span { color: #91a8c2; font-size: 10px; line-height: 1.4; }
.admin-inject-actions span.success { color: #6de2bd; }
.admin-inject-actions span.error { color: #ff879f; }
.admin-event-injector-form [hidden] { display: none !important; }

.admin-command-tester-form { display: grid; gap: 12px; padding-top: 13px; }
.admin-command-grid { display: grid; grid-template-columns: minmax(250px,1.45fr) minmax(150px,.7fr) minmax(180px,.85fr); gap: 10px; }
.admin-command-tester-form label { display: grid; min-width: 0; gap: 5px; color: #adbed3; font-size: 10px; font-weight: 800; }
.admin-command-tester-form input,
.admin-command-tester-form select { box-sizing: border-box; width: 100%; height: 41px; padding: 0 11px; border: 1px solid #28527f; border-radius: 8px; outline: 0; color: #eef6ff; background: #071a37; font: 650 12px Manrope,sans-serif; }
.admin-command-tester-form input:focus,
.admin-command-tester-form select:focus { border-color: #43dce8; box-shadow: 0 0 0 2px rgba(37,244,238,.09); }
.admin-command-input input { color: #62f0cb; font-family: "DM Mono",monospace; font-weight: 700; }
.admin-command-actions { display: flex; align-items: center; gap: 12px; padding: 11px; border: 1px solid #1b3d67; border-radius: 10px; background: #061329; }
.admin-command-actions button { flex: 0 0 auto; min-height: 39px; padding: 0 16px; border: 1px solid #2bd9a8; border-radius: 8px; color: #031b16; background: #4ce2b7; font: 850 10px Manrope,sans-serif; cursor: pointer; box-shadow: 0 7px 14px rgba(0,0,0,.24); }
.admin-command-actions button:hover { background: #72ebc9; box-shadow: 0 0 18px rgba(66,231,184,.18),0 7px 14px rgba(0,0,0,.24); }
.admin-command-actions button:disabled { cursor: wait; opacity: .55; }
.admin-command-actions span { color: #9db0c8; font-size: 10px; line-height: 1.45; }
.admin-command-actions span.waiting { color: #7fdef1; }
.admin-command-actions span.success { color: #72e5bd; }
.admin-command-actions span.denied,
.admin-command-actions span.error { color: #ff8da4; }

.admin-access-manager { margin-top: 13px; padding-top: 13px; border-top: 1px solid #19365d; }
.admin-access-manager > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.admin-access-manager > header strong,
.admin-access-manager > header small { display: block; }
.admin-access-manager > header strong { color: #e8f3ff; font-size: 12px; }
.admin-access-manager > header small { margin-top: 3px; color: #9db0c9; font-size: 9px; }
.admin-access-manager > header b { flex: 0 0 auto; color: #63eaf0; font: 700 9px "DM Mono",monospace; }
.admin-filter-toolbar { display: grid; grid-template-columns: minmax(240px,2fr) minmax(145px,.8fr) minmax(150px,.8fr) auto; align-items: end; gap: 10px; margin: 14px 0 0; padding: 12px; border: 1px solid #1b3d67; border-radius: 10px; background: #061329; }
.admin-profile-toolbar { grid-template-columns: minmax(260px,2fr) repeat(3,minmax(145px,.8fr)) auto; }
.admin-filter-toolbar label { display: grid; min-width: 0; gap: 6px; color: #b3c4d9; font-size: 9px; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.admin-filter-toolbar input,
.admin-filter-toolbar select { box-sizing: border-box; width: 100%; min-width: 0; height: 40px; padding: 0 11px; border: 1px solid #284b77; border-radius: 8px; outline: 0; color: #eef6ff; background: #071a37; font: 650 11px Manrope,sans-serif; }
.admin-filter-toolbar select { padding-right: 30px; cursor: pointer; }
.admin-filter-toolbar input:focus,
.admin-filter-toolbar select:focus { border-color: #43dce8; box-shadow: 0 0 0 2px rgba(37,244,238,.09); }
.admin-filter-toolbar button { height: 40px; padding: 0 14px; border: 1px solid #2b5685; border-radius: 8px; color: #cfe7ff; background: #0a2a50; font: 800 10px Manrope,sans-serif; cursor: pointer; }
.admin-filter-toolbar button:hover:not(:disabled) { border-color: #45dce7; color: #fff; }
.admin-filter-toolbar button:disabled { cursor: default; opacity: .42; }
.admin-filter-results { margin: 8px 2px 12px; color: #91a8c3; font: 700 9px "DM Mono",monospace; }
.admin-access-list { display: grid; max-height: none; gap: 9px; padding-right: 4px; overflow: visible; }
.admin-access-select { display:grid;gap:6px;padding:12px;border:1px solid #1b3d67;border-radius:10px;background:#061329;color:#b3c4d9;font-size:9px;font-weight:850;letter-spacing:.04em;text-transform:uppercase; }
.admin-access-select select { box-sizing:border-box;width:100%;height:40px;padding:0 34px 0 11px;border:1px solid #284b77;border-radius:8px;outline:0;color:#eef6ff;background:#071a37;font:650 11px Manrope,sans-serif;cursor:pointer;text-transform:none;letter-spacing:normal; }
.admin-access-select select:focus { border-color:#43dce8;box-shadow:0 0 0 2px rgba(37,244,238,.09); }
.admin-access-selected { min-height:44px; }
.admin-access-user { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 13px; border: 1px solid #203e66; border-radius: 9px; background: #061329; }
.admin-access-user.enabled { border-color: #236a7b; background: #071b32; }
.admin-access-user > span:first-child { min-width: 0; }
.admin-access-user strong,
.admin-access-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-access-user strong { color: #e1ecf9; font-size: 11px; }
.admin-access-user small { margin-top: 3px; color: #91a6c0; font-size: 9px; }
.admin-access-control { display: flex; align-items: center; flex: 0 0 auto; gap: 8px; }
.admin-access-control em { color: #8fa4bc; font: 700 9px "DM Mono",monospace; font-style: normal; }
.admin-access-user.enabled .admin-access-control em { color: #63e3d9; }
.admin-access-note { margin: 9px 1px 0; color: #879db8; font-size: 9px; line-height: 1.45; }

.admin-profile-note { margin: 0 2px 14px; color: #91a8c3; font-size: 10px; line-height: 1.5; }
.admin-profiles-empty { margin: 0; padding: 22px; border: 1px dashed #294a74; border-radius: 9px; color: #94a9c2; text-align: center; }
.admin-profile-list { display: grid; max-height: 560px; gap: 12px; padding-right: 4px; overflow-y: auto; }
.admin-account { border: 1px solid #21446f; border-radius: 10px; overflow: hidden; background: #061329; }
.admin-account > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-bottom: 1px solid #1b3a62; background: #0a1d3c; }
.admin-account > header strong,
.admin-account > header small { display: block; }
.admin-account > header strong { color: #e8f2ff; font-size: 11px; }
.admin-account > header small { margin-top: 2px; color: #8fa4bd; font-size: 9px; }
.admin-account > header b { color: #8fa9c9; font: 700 9px "DM Mono",monospace; }
.admin-account > div { display: grid; }
.admin-profile-picker { grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 8px 14px; padding: 14px; }
.admin-profile-picker.testing { background: rgba(196,119,42,.09); }
.admin-profile-picker label { display: grid; gap: 6px; min-width: 0; }
.admin-profile-picker label > span { color: #a9bdd5; font-size: 9px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.admin-profile-picker select { box-sizing: border-box; width: 100%; min-width: 0; height: 39px; padding: 0 34px 0 11px; border: 1px solid #2b5685; border-radius: 8px; outline: 0; color: #eef7ff; background: #071a37; font: 700 11px Manrope,sans-serif; cursor: pointer; }
.admin-profile-picker select:focus { border-color: #3edce7; box-shadow: 0 0 0 2px rgba(62,220,231,.1); }
.admin-profile-picker > small { grid-column: 1; overflow: hidden; color: #91a6c0; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.admin-profile-picker > button { grid-column: 2; grid-row: 1 / span 2; min-height: 39px; padding: 0 13px; border: 1px solid #286a9e; border-radius: 7px; color: #c9f8fb; background: #0a2a50; font: 800 9px Manrope,sans-serif; cursor: pointer; }
.admin-profile-picker > button:hover { border-color: #4beaf1; color: #fff; }
.admin-profile-picker > button:disabled { border-color: #895421; color: #ffd69d; background: #3a210c; cursor: default; }
.admin-profile-list { max-height: none; overflow: visible; }
.admin-account-selector { overflow: visible; }
.admin-profile-dropdowns { grid-template-columns: minmax(0,1.25fr) minmax(0,.85fr) auto; padding: 12px; }
.admin-profile-dropdowns > small { grid-column: 1 / 3; }
.admin-profile-dropdowns > button { grid-column: 3; grid-row: 1 / span 2; }
.admin-profile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-bottom: 1px solid #142f51; }
.admin-profile:last-child { border-bottom: 0; }
.admin-profile.testing { background: rgba(196,119,42,.09); }
.admin-profile > span { min-width: 0; }
.admin-profile strong,
.admin-profile small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-profile strong { color: #dfeafa; font-size: 11px; }
.admin-profile small { margin-top: 3px; color: #91a6c0; font-size: 9px; }
.admin-profile button { flex: 0 0 auto; min-height: 34px; padding: 0 11px; border: 1px solid #286a9e; border-radius: 7px; color: #c9f8fb; background: #0a2a50; font: 800 9px Manrope,sans-serif; cursor: pointer; }
.admin-profile button:hover { border-color: #4beaf1; color: #fff; }
.admin-profile button:disabled { border-color: #895421; color: #ffd69d; background: #3a210c; cursor: default; }

.admin-test-mode .profile-console { border-color: #9b611f; box-shadow: 0 0 14px rgba(225,141,46,.12); }

@media (max-width: 1000px) {
  .admin-subnavigation { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .admin-health-resources { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .admin-profile-toolbar { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .admin-profile-toolbar .admin-filter-search { grid-column: 1/-1; }
}

@media (max-width: 700px) {
  .admin-page-header { align-items: flex-start; }
  .admin-page-header h1 { font-size: 20px; }
  .admin-grid { gap: 14px; padding: 14px; }
  .admin-card { padding: 14px; }
  .admin-subnavigation { display:flex; gap:7px; padding:10px 14px; overflow-x:auto; scrollbar-width:thin; }
  .admin-subnavigation button { flex:0 0 142px; }
  .admin-health-card > header { flex-wrap:wrap; }
  .admin-health-card > header > b { margin-left:0; }
  .admin-health-resources { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .admin-health-columns { grid-template-columns:1fr; }
  .admin-health-charts { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #adminHealthTrace article { grid-template-columns:58px 60px 1fr; }
  #adminHealthTrace small { grid-column:2/4; }
  #adminHealthTrace em { grid-column:2/4; width:max-content; }
  .admin-filter-toolbar,
  .admin-profile-toolbar { grid-template-columns: 1fr; padding: 10px; }
  .admin-profile-toolbar .admin-filter-search { grid-column: auto; }
  .admin-filter-toolbar button { width: 100%; }
  .admin-test-banner,
  .admin-profile { align-items: flex-start; }
  .admin-test-actions { width: 100%; flex-direction: column; }
  .admin-test-actions button { width: 100%; }
  .admin-profile { display: grid; }
  .admin-profile button { width: 100%; }
  .admin-profile-picker { grid-template-columns: 1fr; align-items: stretch; }
  .admin-profile-picker > small,
  .admin-profile-picker > button { grid-column: 1; grid-row: auto; }
  .admin-profile-picker > button { width: 100%; }
  .admin-event-grid,
  .admin-event-extra,
  .admin-command-grid { grid-template-columns: 1fr; }
  .admin-inject-actions { align-items: stretch; flex-direction: column; }
  .admin-command-actions { align-items: stretch; flex-direction: column; }
  .admin-command-actions button { width: 100%; }
}

@media (max-width: 480px) {
  .admin-health-history > header { align-items:flex-start; flex-direction:column; }
  .admin-health-history > header label,.admin-health-history > header select { width:100%; }
  .admin-health-charts { grid-template-columns:1fr; }
}

@media (max-width: 820px) {
  .admin-profile-dropdowns { grid-template-columns: 1fr; }
  .admin-profile-dropdowns > small,
  .admin-profile-dropdowns > button { grid-column: 1; grid-row: auto; }
}
