.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #0f172a;
  text-decoration: none;
  min-width: 0;
}

.system-health-card {
  grid-column: 1 / -1;
}

.health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.health-ok { color: #15803d; }
.health-warning { color: #a16207; }
.health-error { color: #b91c1c; }
.health-error-text { color: #b91c1c; overflow-wrap: anywhere; }
.health-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }

@media (max-width: 700px) {
  .health-row { align-items: flex-start; font-size: 13px; }
  .health-row strong { text-align: right; }
  .health-actions .btn { flex: 1 1 160px; }
}

.brand-lockup img {
  display: block;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 9px;
}

.brand-lockup span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1;
}

.brand-lockup strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand-lockup small {
  margin-top: 3px;
  color: #64748b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-lockup--header {
  flex: 1 1 auto;
  width: fit-content;
}

.brand-lockup--login {
  justify-content: center;
  margin: 0 auto 24px;
}

.brand-lockup--login img {
  width: 54px;
  height: 54px;
  border-radius: 12px;
}

.brand-lockup--login strong {
  font-size: 22px;
}

.brand-lockup--login small {
  font-size: 12px;
}

.brand-splash {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #075f63;
  color: #fff;
  opacity: 1;
  transition: opacity 340ms ease, visibility 340ms ease;
}

.js .brand-splash {
  display: flex;
}

.brand-splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(78vw, 320px);
}

.brand-splash-mark {
  display: block;
  width: clamp(112px, 25vw, 164px);
  height: clamp(112px, 25vw, 164px);
  border-radius: 28px;
  opacity: 0;
  transform: translateY(18px) scale(.78);
  box-shadow: 0 22px 55px rgba(0, 0, 0, .22);
}

.brand-splash-name {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  line-height: 1;
  opacity: 0;
  transform: translateY(12px);
}

.brand-splash-name strong {
  font-size: clamp(29px, 7vw, 44px);
  letter-spacing: 0;
}

.brand-splash-name span {
  margin-top: 7px;
  color: #ffd05a;
  font-size: clamp(13px, 3vw, 17px);
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-splash-accent {
  width: 0;
  height: 3px;
  margin-top: 18px;
  border-radius: 3px;
  background: #ffd05a;
}

.brand-splash.is-running .brand-splash-mark {
  animation: brand-mark-in 720ms cubic-bezier(.2, .85, .25, 1) forwards;
}

.brand-splash.is-running .brand-splash-name {
  animation: brand-name-in 520ms 380ms ease-out forwards;
}

.brand-splash.is-running .brand-splash-accent {
  animation: brand-accent-in 580ms 620ms ease-out forwards;
}

.brand-splash.is-leaving {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

@keyframes brand-mark-in {
  0% { opacity: 0; transform: translateY(18px) scale(.78); }
  65% { opacity: 1; transform: translateY(-4px) scale(1.035); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes brand-name-in {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes brand-accent-in {
  to { width: 72px; }
}

@media (max-width: 720px) {
  .brand-lockup--header { gap: 6px; }
  .brand-lockup--header img { width: 32px; height: 32px; border-radius: 7px; }
  .brand-lockup--header strong { font-size: 13px; }
  .brand-lockup--header small { margin-top: 2px; font-size: 8px; }
  .brand-splash-mark { border-radius: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .brand-splash-mark,
  .brand-splash-name,
  .brand-splash-accent {
    animation: none !important;
  }
}
