/* ==========================================================================
   Service Portal — aligned with SYS_RUNS Academic Portal
   ========================================================================== */

.portal-body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: #f5f7fb;
}

.portal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 14px 28px;
  border-bottom: 1px solid rgba(214, 162, 30, 0.22);
  background: var(--navy);
  color: var(--white);
}

.brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--white);
}

.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.brand-text strong {
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
  font-weight: 500;
}

.portal-topbar .btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: var(--gold);
  color: var(--navy);
}

.portal-main {
  flex: 1 0 auto;
  width: 100%;
  max-width: 940px;
  margin: 0 auto;
  padding: 34px 20px 42px;
}

.service-main {
  display: grid;
  gap: 18px;
}

.account-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 50px;
  padding: 6px 12px;
  border: 1px solid rgba(11, 31, 58, 0.10);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  background: var(--white);
  box-shadow: 0 6px 18px rgba(11, 31, 58, 0.07);
}

.account-panel .eyebrow {
  display: none;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 2px;
  color: var(--gold-2);
  font-size: var(--fs-xs);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.account-panel h1 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.2;
}

.account-panel p {
  display: none;
}

.identity-list {
  display: flex;
  align-items: center;
  gap: 14px;
}

.identity-item {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
}

.identity-item strong {
  display: inline;
  margin: 0;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.identity-item span {
  display: inline;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-size: 0.76rem;
  font-weight: 800;
}

.systems {
  display: grid;
  gap: 16px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(214, 162, 30, 0.34);
}

.section-head h2 {
  margin: 0 0 4px;
  color: var(--navy);
  font-size: clamp(1.35rem, 3vw, 1.75rem);
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.system-count {
  flex: 0 0 auto;
  border: 1px solid rgba(214, 162, 30, 0.40);
  border-radius: 999px;
  padding: 5px 12px;
  background: #fffaf0;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.system-list {
  display: grid;
  gap: 10px;
}

.system-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(11, 31, 58, 0.10);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.system-row:hover {
  border-color: rgba(214, 162, 30, 0.62);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.system-icon {
  width: 54px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.system-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.system-copy strong {
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.3;
}

.system-copy span {
  color: var(--muted);
  font-size: 0.88rem;
}

.system-copy small {
  color: #7b8794;
  font-size: 0.82rem;
  line-height: 1.45;
}

.system-open {
  min-width: 86px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 9px 12px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
}

.portal-body .fixed-screen-footer {
  border-top-color: rgba(15, 23, 42, 0.06);
  color: rgba(100, 116, 139, 0.78);
}

@media (max-width: 860px) {
  .account-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .portal-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 12px 16px;
  }

  .portal-topbar .btn {
    width: 100%;
  }

  .portal-main {
    padding: 24px 14px 32px;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .identity-list {
    display: flex;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .identity-item {
    flex: 0 0 auto;
  }

  .system-row {
    grid-template-columns: 1fr;
  }

  .system-icon {
    width: 54px;
    font-size: 0.58rem;
  }

  .system-open {
    width: 100%;
  }
}
.system-row[hidden] {
  display: none !important;
}
