.space-switcher {
  display: block;
  margin: -20px 12px 24px;
  color: #8ea3ba;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.space-switcher[hidden] {
  display: none;
}

.space-switcher select {
  height: 44px;
  margin-top: 8px;
  padding: 0 34px 0 12px;
  border-color: #29425c;
  background: #102b46;
  color: #ecf4ff;
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
}

body.sidebar-collapsed .space-switcher {
  display: none;
}

.access-state-card {
  width: min(650px, 100%);
  margin: 12vh auto 0;
  padding: 60px 48px;
  border: 1px solid #e3eaf2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(10, 37, 65, .08);
  text-align: center;
}

.access-state-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 24px;
  place-items: center;
  border-radius: 50%;
  background: #e8fbfa;
  color: #0ab8b2;
  font-size: 42px;
}

.access-state-card .access-state-contact {
  margin: 20px auto 26px;
  color: #8190a7;
  font-size: 13px;
}

.access-state-card .access-state-contact a {
  color: #079f9b;
  font-weight: 800;
  text-decoration: none;
}

.access-state-card .access-state-contact a:hover,
.access-state-card .access-state-contact a:focus-visible {
  text-decoration: underline;
}

.access-state-card h1 {
  margin: 0 0 14px;
  font-size: 32px;
  letter-spacing: -.8px;
}

.access-state-card p {
  max-width: 520px;
  margin: 0 auto 26px;
  color: #718199;
  line-height: 1.65;
}

.access-state-card .primary-button {
  justify-content: center;
}

.admin-topbar {
  margin-bottom: 28px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  padding-bottom: 1px;
  border-bottom: 1px solid #e8edf4;
}

.admin-tabs a {
  margin-bottom: -1px;
  padding: 15px 20px;
  border-bottom: 3px solid transparent;
  color: #718199;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.admin-tabs a.active {
  border-color: #09bdb8;
  color: #079f9b;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.admin-layout:has(.admin-editor:not(.hidden)) {
  grid-template-columns: minmax(620px, 1.4fr) minmax(390px, .8fr);
}

.admin-list-card {
  min-width: 0;
  overflow: auto;
}

.admin-list {
  min-width: 760px;
}

.admin-list-head,
.admin-list-row {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 0 24px;
}

.admin-list-head {
  min-height: 64px;
  background: #f8fafc;
  color: #7d8ba0;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-list-row {
  min-height: 84px;
  border-top: 1px solid #e8edf4;
  font-size: 14px;
}

.admin-list-head + .admin-list-row {
  border-top: 0;
}

.admin-users-grid {
  grid-template-columns: minmax(190px, 1.3fr) minmax(130px, 1fr) minmax(140px, 1fr) 90px 88px;
}

.admin-simple-grid {
  grid-template-columns: minmax(260px, 1fr) 120px 90px;
}

.admin-list-row b,
.admin-list-row small {
  display: block;
}

.admin-list-row b {
  color: #10243a;
  font-size: 14px;
}

.admin-list-row small {
  margin-top: 5px;
  overflow: hidden;
  color: #8290a4;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-badges span,
.admin-status {
  width: max-content;
  padding: 5px 8px;
  border-radius: 7px;
  background: #eaf9f6;
  color: #16867f;
  font-size: 11px;
  font-weight: 800;
}

.admin-status.inactive {
  background: #f2f4f7;
  color: #8390a2;
}

.admin-muted {
  color: #9aa6b5;
  font-size: 12px;
}

.admin-edit,
.admin-load-error button {
  border: 0;
  background: transparent;
  color: #08aaa6;
  font: 800 13px Manrope, Arial, sans-serif;
  cursor: pointer;
}

.admin-empty {
  display: grid;
  min-height: 220px;
  padding: 40px;
  place-content: center;
  color: #8290a4;
  text-align: center;
}

.admin-empty b,
.admin-empty span {
  display: block;
}

.admin-empty b {
  margin-bottom: 7px;
  color: #263b53;
}

.admin-load-error button {
  margin-top: 16px;
}

.admin-editor {
  position: sticky;
  top: 25px;
  max-height: calc(100vh - 50px);
  margin: 0;
  overflow: auto;
}

.admin-editor-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.admin-editor-heading h2 {
  margin: 0;
}

.admin-editor-heading button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: #f2f5f8;
  color: #63728a;
  font-size: 22px;
  cursor: pointer;
}

.admin-editor textarea {
  min-height: 92px;
  padding: 13px 15px;
  resize: vertical;
}

.admin-name-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.admin-active {
  display: flex !important;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  background: #f7fafc;
}

.admin-active input {
  width: 18px;
  height: 18px;
  margin: 0 !important;
}

.admin-assignment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 4px 0 22px;
}

.admin-checklist {
  min-width: 0;
  max-height: 210px;
  margin: 0;
  padding: 12px;
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 9px;
}

.admin-checklist legend {
  padding: 0 6px;
  color: #6f7e93;
  font-size: 12px;
  font-weight: 800;
}

.admin-checklist label {
  display: flex !important;
  gap: 8px;
  align-items: center;
  margin: 0 !important;
  padding: 7px 3px;
  color: #263b53;
  font-size: 12px;
}

.admin-checklist input {
  width: 17px;
  height: 17px;
  margin: 0 !important;
}

.admin-checklist p,
.admin-copy-hint,
.admin-password-reset p {
  color: #8290a4;
  font-size: 12px;
  line-height: 1.55;
}

.admin-copy-hint {
  padding: 12px;
  border-radius: 8px;
  background: #effaf8;
  color: #397873;
}

.admin-password-reset {
  margin: 24px 0;
  padding-top: 20px;
  border-top: 1px solid #e8edf4;
}

.admin-password-reset h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

.admin-password-reset p {
  margin: 0 0 12px;
}

.admin-password-reset > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.admin-space-users {
  margin: 28px 0;
  padding-top: 24px;
  border-top: 1px solid #e8edf4;
}

.admin-space-users-heading {
  display: flex;
  gap: 18px;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 18px;
}

.admin-space-users-heading h3 {
  margin: 0 0 6px;
  color: #10233c;
  font-size: 16px;
}

.admin-space-users-heading p {
  margin: 0;
  color: #8190a7;
  font-size: 12px;
  line-height: 1.5;
}

.admin-space-users-heading > span {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 7px;
  background: #e9f9f8;
  color: #0a8e8a;
  font-size: 11px;
  font-weight: 800;
}

.admin-user-search {
  margin-bottom: 12px !important;
}

.admin-user-search input {
  height: 44px;
}

.admin-space-user-options {
  display: grid;
  max-height: 270px;
  overflow-y: auto;
  border: 1px solid #e3eaf2;
  border-radius: 10px;
}

.admin-space-user-options > label {
  display: flex;
  gap: 11px;
  align-items: center;
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid #edf1f5;
  color: #10233c;
  cursor: pointer;
}

.admin-space-user-options > label:last-child {
  border-bottom: 0;
}

.admin-space-user-options > label:hover {
  background: #f6fbfb;
}

.admin-space-user-options input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #09bdb8;
}

.admin-space-user-options span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-space-user-options b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-space-user-options small {
  overflow: hidden;
  color: #8190a7;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-space-user-options .hidden {
  display: none;
}

.admin-editor-loading {
  padding: 32px 0;
  color: #8190a7;
  text-align: center;
}

.admin-password-reset .secondary-button {
  height: 51px;
  font-size: 13px;
}

.admin-form-error {
  min-height: 19px;
  color: #cf3946;
  font-size: 12px;
  font-weight: 700;
}

.admin-save {
  justify-content: center;
  width: 100%;
}

@media (max-width: 1400px) {
  .admin-layout:has(.admin-editor:not(.hidden)) { grid-template-columns: 1fr; }
  .admin-editor { position: static; max-height: none; }
}

@media (max-width: 800px) {
  .space-switcher { margin: 8px 0 14px; }
  .admin-tabs { overflow-x: auto; }
  .admin-name-grid,
  .admin-assignment-grid { grid-template-columns: 1fr; }
  .access-state-card { margin-top: 6vh; padding: 40px 24px; }
}
