.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-grid { display: grid; gap: 15px; padding: 18px; }
.admin-card { padding: 15px; 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: 13px; 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-card .system-moderator-settings { margin-top: 13px; }

.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-access-search { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; margin: 12px 0 9px; color: #a6b8d0; font-size: 10px; font-weight: 800; }
.admin-access-search input { box-sizing: border-box; width: 100%; height: 38px; padding: 0 11px; border: 1px solid #284b77; border-radius: 8px; outline: 0; color: #eef6ff; background: #071a37; font: 600 12px Manrope,sans-serif; }
.admin-access-search input:focus { border-color: #3d9ed0; box-shadow: 0 0 0 2px rgba(37,244,238,.08); }
.admin-access-list { display: grid; max-height: 330px; gap: 7px; overflow-y: auto; }
.admin-access-user { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 11px; 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-search { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px; margin: 13px 0 9px; color: #a6b8d0; font-size: 10px; font-weight: 800; }
.admin-profile-search input { 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: 600 12px Manrope,sans-serif; }
.admin-profile-search input:focus { border-color: #3d9ed0; box-shadow: 0 0 0 2px rgba(37,244,238,.08); }
.admin-profile-note { margin: 0 0 12px; 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: 10px; 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: 10px 12px; 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 { 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: 700px) {
  .admin-page-header { align-items: flex-start; }
  .admin-page-header h1 { font-size: 20px; }
  .admin-test-banner,
  .admin-profile { align-items: flex-start; }
  .admin-profile { display: grid; }
  .admin-profile button { width: 100%; }
}
