/* Shared academy identity for management and parent surfaces. */
.rcc-role-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  color: #112a45;
}
.rcc-role-brand img {
  display: block;
  width: 180px;
  height: 82px;
  object-fit: contain;
  max-width: 100%;
}
.rcc-role-brand > span {
  font:
    600 12px/1.4 'Segoe UI',
    sans-serif;
  letter-spacing: 0.12em;
}
.mobile-role-logo {
  display: none;
}
.portal-install-slot {
  padding: 16px;
  text-align: center;
}
.portal-install-slot:has([hidden]) {
  display: none;
}
.admin-v2 .page-heading {
  border-color: #cbdce8;
  border-left-color: #aac8db;
  background: linear-gradient(110deg, #e0f2fa, #fff 80%);
}
.admin-v2[data-section='Money'] .page-heading,
.admin-v2[data-section='Website'] .page-heading {
  border-color: #e8cdd6;
  border-left-color: #d5809e;
  background: linear-gradient(110deg, #f8e4e9, #fff 80%);
}
.admin-v2 .eyebrow,
.admin-v2 .page-heading p {
  color: #465564;
}
.admin-v2 .workspace-tile {
  border-color: #cbdce8;
  color: #112a45;
}
.admin-v2 .workspace-tile svg {
  color: #142c46;
  background: #e0f2fa;
}
.admin-v2 .daily-tiles .workspace-tile:nth-child(3) {
  background: #fff3f6;
  border-color: #e8cdd6;
}
.admin-v2 .daily-tiles .workspace-tile:nth-child(4) {
  background: #eef7fb;
  border-color: #cbdce8;
}
.admin-v2 .toolbar {
  border-color: #cbdce8;
  background: #edf5fb;
}
.admin-v2 .admin-mobile-nav button {
  color: #465564;
}
.admin-v2 .section-number {
  background: #e0f2fa;
  border-color: #cbdce8;
  color: #112a45;
}
.admin-v2 .account-actions .access-switch {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 12px;
  color: #112a45;
}
.admin-v2 .account-actions input[role='switch'] {
  margin: 0;
}
.admin-v2 .brand:has(.rcc-role-brand) {
  justify-content: center;
  padding: 0 0 16px;
}
.admin-v2 .rcc-role-brand img {
  width: 190px;
}
.admin-v2 .sidebar {
  background: linear-gradient(180deg, #fff, #eef6fb);
  border-color: #d3e1ec;
}
.admin-v2 :is(h1, h2, h3) {
  font-family: Georgia, 'Times New Roman', serif;
}
.admin-v2 .nav-item.active {
  background: #e0f2fa;
  color: #112a45;
  border-color: #aac8db;
  box-shadow: inset 3px 0 #142c46;
}
.admin-v2 .welcome-banner {
  background: linear-gradient(115deg, #e0f2fa, #f8e4e9);
  color: #112a45;
  border-color: #cadce8;
}
.admin-v2 .welcome-banner :is(h1, p) {
  color: #112a45;
}
.admin-v2 .button,
.portal-body .button {
  background: #142c46;
  border-color: #142c46;
  color: white;
}
.admin-v2 .button.secondary,
.portal-body .button.secondary {
  background: white;
  color: #142c46;
  border-color: #a9bfd0;
}
.admin-v2 .button:hover,
.portal-body .button:hover {
  background: #284c6d;
  color: white;
}
.admin-v2 .brand-mark {
  background: #142c46;
}
.admin-v2 .account-card {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid #cbdce8;
  border-left: 4px solid #b4d9eb;
  background: linear-gradient(110deg, #f2f9fc, #fff);
  padding: 22px;
}
.admin-v2 .account-card:has([role='switch']:not(:checked)) {
  border-left-color: #d5809e;
  background: linear-gradient(110deg, #fff1f5, #fff);
}
.account-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 190px;
}
.access-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  min-height: 44px;
  font-size: 14px;
  font-weight: 600;
}
.access-switch input[role='switch'] {
  appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 30px;
  background: #8495a5;
  padding: 3px;
  cursor: pointer;
  flex: none;
}
.access-switch input[role='switch']:before {
  content: '';
  display: block;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: white;
  transition: transform 0.15s;
}
.access-switch input[role='switch']:checked {
  background: #142c46;
}
.access-switch input[role='switch']:checked:before {
  transform: translateX(20px);
}
.access-switch input:disabled {
  opacity: 0.5;
}
.account-search {
  display: block;
  max-width: 500px;
  margin: 20px 0;
}
.account-balance {
  display: block;
  font-size: 14px;
  color: #112a45;
  margin-top: 10px;
}
.account-notice {
  background: #eaf5fb;
  border: 1px solid #c7dce9;
  border-radius: 8px;
  padding: 16px;
  color: #334d63;
  font-size: 14px;
}
.student-link-list {
  max-height: 300px;
  overflow: auto;
}
.student-link-list label {
  padding: 8px 0;
  min-height: 44px;
}
.credential-card dd {
  margin: 6px 0 18px;
  overflow-wrap: anywhere;
}
.credential-card dt {
  font-size: 12px;
  font-weight: 700;
  color: #465564;
}
.temporary-password {
  background: #e0f2fa;
  padding: 12px;
  display: block;
  font-size: 19px;
  letter-spacing: 0.04em;
  user-select: all;
  overflow-wrap: anywhere;
}
.fi-simple-layout {
  background: linear-gradient(135deg, #e0f2fa, #fdfdfb 55%, #f8e4e9);
}
.fi-simple-main {
  border: 1px solid #cbdce8;
  border-radius: 14px;
  box-shadow: 0 16px 60px #142c4614;
}
.fi-simple-main h1 {
  font-family: Georgia, 'Times New Roman', serif;
  color: #112a45;
}
.fi-input {
  font-size: 16px !important;
}
.fi-btn {
  min-height: 46px;
}
.fi-simple-main .fi-btn {
  background-color: #142c46 !important;
  color: #fff !important;
  border-color: #142c46;
}
.fi-simple-main .fi-btn:hover { background-color: #284c6d !important; }
.pwa-install { color: #142c46; border-color: #b6cbdc; }
.portal-body {
  --ink: #112a45;
  --green: #142c46;
  --green-soft: #e0f2fa;
  --muted: #465564;
  --line: #dbe4ec;
  background: #f7f9fb;
}
.portal-body :is(h1, h2, h3),
.portal-login::before {
  font-family: Georgia, 'Times New Roman', serif;
  color: #112a45;
}
.portal-body .portal-login:before {
  color: #112a45;
}
.portal-body .portal-login .form-card {
  border-color: #cbdce8;
  background: #fdfdfb;
}
.portal-body .portal-header {
  background: #fdfdfb;
  border-color: #dbe4ec;
}
.portal-body .portal-tabs .active {
  background: #142c46;
  color: white;
}
.portal-body .portal-footer {
  background: #142c46;
  color: white;
}
.portal-body :is(input, select, textarea) {
  font-size: 16px;
}
.portal-body .brand {
  padding: 0;
}
@media (max-width: 700px) {
  .admin-v2 .mobile-role-logo {
    display: block;
    text-decoration: none;
  }
  .admin-v2 .mobile-role-logo img {
    width: 112px;
    height: 50px;
  }
  .admin-v2 .mobile-role-logo .rcc-role-label {
    font-size: 10px;
  }
  .admin-v2 .admin-header > div:first-of-type {
    display: none;
  }
  .admin-v2 .admin-header {
    height: auto;
    min-height: 88px;
    padding: 10px 16px;
  }
  .admin-v2 .account-card {
    flex-direction: column;
    gap: 16px;
    padding: 18px;
  }
  .account-actions {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 10px;
  }
  .account-actions > label:first-child:not(.access-switch) {
    grid-column: 1/-1;
  }
  .account-actions .access-switch {
    grid-column: 1/-1;
  }
  .account-actions .text-button {
    min-height: 44px;
  }
  .portal-body .portal-header .header-inner {
    flex-wrap: wrap;
    gap: 12px;
  }
  .rcc-role-brand img {
    width: 154px;
    height: 70px;
  }
  .portal-body .portal-login-header {
    align-items: center;
  }
}
@media (prefers-reduced-motion: reduce) {
  .access-switch input[role='switch']:before {
    transition: none;
  }
}
