.kusk-brand-logo-img,
.kusk-page-logo img,
.kusk-sidebar-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-mark.kusk-logo-mark,
.manual-logo.kusk-logo-mark,
.kusk-page-logo,
img.logo,
img.login-logo,
.sidebar-header img[src*="logo"] {
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16) !important;
  color: transparent !important;
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  backdrop-filter: blur(10px);
}

.kusk-page-logo {
  display: grid;
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  place-items: center;
}

img.logo,
img.login-logo {
  display: inline-block;
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
  object-fit: contain;
}

.logo.kusk-sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  margin-bottom: 28px;
  color: inherit;
  line-height: 1.25;
}

.logo.kusk-sidebar-logo img,
.sidebar-header img[src*="logo"] {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  padding: 5px;
  border-radius: 12px;
  object-fit: contain;
}

.sidebar-header img[src*="logo"] {
  display: block;
  margin: 0 auto 10px;
}

.logo.kusk-sidebar-logo span,
.kusk-sidebar-logo-text {
  display: block;
  min-width: 0;
  color: inherit;
  font-size: 22px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body.has-kusk-sidebar .main-content .kusk-page-logo,
body.has-kusk-sidebar .content .kusk-page-logo,
body.has-kusk-sidebar main .kusk-page-logo {
  display: none !important;
}

.developer-credit {
  width: min(100%, 1180px);
  margin: 24px auto 12px;
  padding: 0 16px;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
}

.main-content > .developer-credit,
.content > .developer-credit,
.container > .developer-credit,
.login-card > .developer-credit,
.login-panel > .developer-credit,
.login-box > .developer-credit {
  width: 100%;
}

.login-card > .developer-credit,
.login-panel > .developer-credit,
.login-box > .developer-credit {
  margin-top: 18px;
  margin-bottom: 0;
  color: rgba(100, 116, 139, 0.9);
}

@media (max-width: 700px) {
  .developer-credit {
    margin-top: 18px;
    font-size: 10.5px;
  }

  .kusk-page-logo,
  img.logo,
  img.login-logo {
    width: 56px;
    height: 56px;
    padding: 6px;
    border-radius: 12px;
  }
}

@media print {
  .developer-credit {
    color: #444;
  }
}

/* Standard KUSK school identity block */
.kusk-standard-brand,
.sidebar-brand.kusk-standard-brand,
.sidebar-header.kusk-standard-brand,
.logo.kusk-sidebar-logo.kusk-standard-brand,
.kusk-login-brand,
.kusk-hero-brand {
  display: grid;
  align-items: start;
  gap: 8px;
  color: inherit;
  line-height: 1.35;
}

.sidebar-brand.kusk-standard-brand,
.logo.kusk-sidebar-logo.kusk-standard-brand,
.sidebar-header.kusk-standard-brand {
  margin-bottom: 26px;
  padding: 2px 0 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.sidebar-brand.kusk-standard-brand > .brand-mark,
.logo.kusk-sidebar-logo.kusk-standard-brand > img,
.sidebar-header.kusk-standard-brand > img {
  margin: 0;
}

.kusk-brand-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
  max-width: 100%;
}

.sidebar-brand.kusk-standard-brand .kusk-school-name,
.sidebar-header.kusk-standard-brand .kusk-school-name,
.logo.kusk-sidebar-logo.kusk-standard-brand .kusk-school-name {
  color: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.sidebar-brand.kusk-standard-brand .kusk-school-detail,
.sidebar-header.kusk-standard-brand .kusk-school-detail,
.logo.kusk-sidebar-logo.kusk-standard-brand .kusk-school-detail {
  color: rgba(219, 234, 254, 0.72);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.sidebar-brand.kusk-standard-brand .kusk-system-name,
.sidebar-header.kusk-standard-brand .kusk-system-name,
.logo.kusk-sidebar-logo.kusk-standard-brand .kusk-system-name {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.kusk-login-brand,
.kusk-hero-brand {
  justify-items: center;
  text-align: center;
}

.kusk-login-brand {
  margin-bottom: 16px;
}

.kusk-login-brand .brand-mark,
.kusk-login-brand img.login-logo {
  margin: 0 auto 6px;
}

.kusk-login-brand .kusk-school-name,
.manual-brand.kusk-standard-brand .kusk-school-name {
  color: #0f172a;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.kusk-login-brand .kusk-school-detail,
.manual-brand.kusk-standard-brand .kusk-school-detail {
  color: #64748b;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.kusk-login-brand .kusk-system-name,
.manual-brand.kusk-standard-brand .kusk-system-name {
  margin: 4px 0 0;
  color: #334155;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.kusk-login-brand h1.kusk-system-name {
  color: #0f172a;
  font-size: 22px;
}

.manual-brand.kusk-standard-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.manual-brand.kusk-standard-brand small {
  color: #64748b;
  font-size: 11px;
  line-height: 1.45;
}

.kusk-hero-brand .kusk-school-name,
.bannerText .kusk-school-name {
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.kusk-hero-brand .kusk-school-detail,
.kusk-hero-brand .kusk-system-name,
.bannerText .kusk-school-detail {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
}

.kusk-hero-brand .kusk-system-name,
.bannerText .kusk-system-name {
  margin-top: 6px;
  font-size: 22px;
  font-weight: 800;
}

@media (max-width: 700px) {
  .sidebar-brand.kusk-standard-brand,
  .logo.kusk-sidebar-logo.kusk-standard-brand,
  .sidebar-header.kusk-standard-brand {
    justify-items: center;
    text-align: center;
    padding-bottom: 14px;
  }

  .manual-brand.kusk-standard-brand {
    align-items: flex-start;
  }

  .kusk-login-brand .kusk-school-name {
    font-size: 13px;
  }

  .kusk-login-brand h1.kusk-system-name,
  .kusk-hero-brand .kusk-system-name,
  .bannerText .kusk-system-name {
    font-size: 20px;
  }
}
/* Repair sidebar brand alignment */
.sidebar-header.kusk-standard-brand {
  justify-items: start;
  gap: 9px;
  padding: 4px 4px 18px;
  text-align: left;
}

.sidebar-header.kusk-standard-brand .kusk-brand-copy {
  justify-items: start;
  text-align: left;
}

.sidebar-header.kusk-standard-brand .kusk-school-name {
  font-size: 12.5px;
  line-height: 1.5;
}

.sidebar-header.kusk-standard-brand .kusk-school-detail {
  font-size: 11px;
  line-height: 1.5;
}

.sidebar-header.kusk-standard-brand .kusk-system-name {
  font-size: 12px;
}

@media (max-width: 700px) {
  .sidebar-header.kusk-standard-brand {
    justify-items: start;
    text-align: left;
  }
}