:root {
  --portal-bg:
    radial-gradient(circle at 82% 10%, rgba(88, 195, 182, 0.18), transparent 22%),
    radial-gradient(circle at 14% 18%, rgba(26, 124, 156, 0.12), transparent 24%),
    linear-gradient(135deg, #edf2f5 0%, #ffffff 48%, #eef8f6 100%);
  --portal-panel: #ffffff;
  --portal-panel-soft: #f4f8fb;
  --portal-line: #d3dde4;
  --portal-line-strong: #9cb5c5;
  --portal-text: #12314e;
  --portal-muted: #617b90;
  --portal-blue: #003b71;
  --portal-cyan: #1a7c9c;
  --portal-green: #58c3b6;
  --portal-green-soft: #e8f8f5;
  --portal-red: #ca4b4b;
  --portal-red-soft: #fff1f1;
  --portal-orange: #db962d;
  --portal-orange-soft: #fff5e7;
  --portal-cloud: #e6e6e6;
  --portal-shadow: 0 24px 60px rgba(0, 59, 113, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI Variable", "Candara", sans-serif;
  background: var(--portal-bg);
  color: var(--portal-text);
}

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.portal-shell {
  min-height: 100vh;
  display: grid;
  gap: 24px;
  padding: 24px;
}

.portal-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--portal-line);
  border-radius: 24px;
  box-shadow: var(--portal-shadow);
  padding: 18px 22px;
}

.portal-brand {
  display: grid;
  gap: 4px;
}

.portal-brand__lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.portal-brand__mark {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 60% 40%, rgba(88, 195, 182, 0.62), transparent 48%),
    linear-gradient(135deg, rgba(0, 59, 113, 0.96), rgba(26, 124, 156, 0.82));
  color: #ffffff;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 18px 34px rgba(0, 59, 113, 0.22);
}

.portal-brand__text {
  display: grid;
  gap: 4px;
}

.portal-brand strong {
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: 1.35rem;
}

.portal-brand span,
.portal-topbar__links a,
.portal-hero p,
.portal-note-list span,
.portal-form label span,
.portal-session-hint p {
  color: var(--portal-muted);
}

.portal-topbar__links {
  display: flex;
  gap: 12px;
  align-items: center;
}

.portal-topbar__links a {
  text-decoration: none;
  font-weight: 700;
}

.portal-main {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.portal-main--admin {
  grid-template-columns: 1fr;
}

.portal-hero,
.portal-card,
.portal-dashboard,
.portal-card--compact {
  background: var(--portal-panel);
  border: 1px solid var(--portal-line);
  border-radius: 28px;
  box-shadow: var(--portal-shadow);
}

.portal-hero,
.portal-card,
.portal-dashboard {
  padding: 26px;
}

.portal-card--compact {
  padding: 20px;
}

.portal-eyebrow {
  margin: 0 0 10px;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--portal-muted);
}

.portal-hero h1,
.portal-card h2,
.portal-card h3,
.portal-dashboard h2 {
  margin: 0;
  font-family: "Georgia", "Palatino Linotype", serif;
}

.portal-hero h1 {
  font-size: 2rem;
  margin-bottom: 14px;
}

.portal-hero p {
  margin: 0;
  line-height: 1.6;
}

.portal-note-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.portal-note-list article {
  border: 1px solid var(--portal-line);
  border-radius: 18px;
  background: var(--portal-panel-soft);
  padding: 16px;
  display: grid;
  gap: 6px;
}

.portal-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.portal-tab,
.portal-primary,
.portal-secondary,
.portal-table button {
  border-radius: 999px;
  border: 1px solid var(--portal-line-strong);
  padding: 11px 16px;
  cursor: pointer;
  font-weight: 700;
}

.portal-tab,
.portal-secondary,
.portal-table button {
  background: #ffffff;
  color: var(--portal-blue);
}

.portal-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.portal-tab.is-active,
.portal-primary {
  background: var(--portal-green);
  border-color: var(--portal-green);
  color: #ffffff;
}

.portal-form {
  display: none;
  gap: 14px;
}

.portal-form.is-active,
.portal-form.portal-form--always {
  display: grid;
}

.portal-form label {
  display: grid;
  gap: 8px;
}

.portal-form input,
.portal-form textarea,
.portal-form select {
  width: 100%;
  border: 1px solid var(--portal-line);
  border-radius: 14px;
  background: var(--portal-panel-soft);
  color: var(--portal-text);
  padding: 12px 14px;
  outline: none;
}

.portal-form input:focus,
.portal-form textarea:focus,
.portal-form select:focus {
  border-color: var(--portal-blue);
  box-shadow: 0 0 0 4px rgba(35, 95, 153, 0.12);
}

.portal-feedback {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--portal-line);
  background: var(--portal-panel-soft);
  line-height: 1.5;
  margin-bottom: 16px;
}

.portal-feedback--info {
  color: var(--portal-blue);
  background: #ebf4ff;
}

.portal-feedback--success {
  color: var(--portal-green);
  background: var(--portal-green-soft);
}

.portal-feedback--error {
  color: var(--portal-red);
  background: var(--portal-red-soft);
}

.portal-feedback--warning {
  color: #9a630f;
  background: var(--portal-orange-soft);
}

.portal-session-hint {
  margin-top: 16px;
  border: 1px solid var(--portal-line);
  border-radius: 18px;
  background: var(--portal-panel-soft);
  padding: 16px;
  display: grid;
  gap: 8px;
}

.portal-session-hint strong {
  font-size: 1rem;
}

.portal-dashboard {
  display: grid;
  gap: 18px;
}

.portal-dashboard--admin {
  gap: 24px;
}

.portal-card__head {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.portal-card__head small {
  color: var(--portal-muted);
  line-height: 1.45;
}

.portal-dashboard__head,
.portal-dashboard__actions,
.portal-inline-fields {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-dashboard__head {
  justify-content: space-between;
  align-items: flex-start;
}

.portal-grid {
  display: grid;
  gap: 18px;
}

.portal-grid--admin {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.portal-grid--editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.portal-grid--quick-access {
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  align-items: end;
}

.portal-actions-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.portal-quick-access__aside {
  display: grid;
  gap: 12px;
}

.portal-check {
  display: flex;
  gap: 10px;
  align-items: center;
}

.portal-check input {
  width: 18px;
  height: 18px;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  accent-color: var(--portal-green);
}

.portal-table-wrap {
  overflow: auto;
  border: 1px solid var(--portal-line);
  border-radius: 18px;
  background: #ffffff;
}

.portal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.portal-table th,
.portal-table td {
  padding: 12px;
  border-bottom: 1px solid var(--portal-line);
  text-align: left;
  vertical-align: top;
}

.portal-table th {
  background: #edf4fb;
  color: var(--portal-blue);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.portal-table td small {
  color: var(--portal-muted);
  display: block;
  margin-top: 4px;
  line-height: 1.45;
}

.portal-table__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.portal-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: #ecf4ff;
  color: var(--portal-blue);
}

.portal-badge--success {
  background: var(--portal-green-soft);
  color: var(--portal-green);
}

.portal-badge--warning {
  background: var(--portal-orange-soft);
  color: #9a630f;
}

.portal-badge--danger {
  background: var(--portal-red-soft);
  color: var(--portal-red);
}

.portal-empty {
  color: var(--portal-muted);
  text-align: center;
  padding: 20px;
}

.portal-hero--admin {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 20px;
  align-items: start;
}

.portal-admin-hero__copy {
  display: grid;
  gap: 14px;
}

.portal-admin-quicklist {
  display: grid;
  gap: 12px;
}

.portal-admin-quicklist article {
  border: 1px solid var(--portal-line);
  border-radius: 18px;
  background: var(--portal-panel-soft);
  padding: 16px;
  display: grid;
  gap: 6px;
}

.portal-admin-quicklist span {
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-brand-overview {
  display: grid;
  gap: 22px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 80% 15%, rgba(88, 195, 182, 0.16), transparent 20%),
    linear-gradient(135deg, rgba(0, 59, 113, 0.06), rgba(26, 124, 156, 0.05) 38%, rgba(255, 255, 255, 0.98) 100%);
}

.portal-brand-overview > * {
  position: relative;
  z-index: 1;
}

.portal-brand-overview__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
}

.portal-brand-overview__head > div {
  display: grid;
  gap: 8px;
}

.portal-brand-overview__head h2 {
  margin: 0;
  font-family: "Georgia", "Palatino Linotype", serif;
}

.portal-brand-overview__head > p {
  margin: 0;
  max-width: 580px;
  color: var(--portal-muted);
  line-height: 1.7;
}

.portal-brand-overview__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portal-brand-tile {
  min-height: 214px;
  padding: 18px;
  border-radius: 22px;
  border: 1px solid rgba(0, 59, 113, 0.08);
  background: rgba(255, 255, 255, 0.9);
  display: grid;
  gap: 12px;
  align-content: start;
  box-shadow: 0 18px 40px rgba(0, 59, 113, 0.08);
}

.portal-brand-tile > span {
  color: var(--portal-muted);
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.portal-brand-tile > strong {
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: 1.6rem;
  line-height: 1.15;
}

.portal-brand-tile > small {
  color: var(--portal-muted);
  line-height: 1.6;
}

.portal-brand-iso {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 55% 48%, rgba(88, 195, 182, 0.48), transparent 34%),
    radial-gradient(circle at 50% 50%, rgba(26, 124, 156, 0.18), transparent 54%),
    linear-gradient(135deg, rgba(0, 59, 113, 0.08), rgba(26, 124, 156, 0.12));
  box-shadow: inset 0 0 0 1px rgba(0, 59, 113, 0.05), 0 18px 30px rgba(0, 59, 113, 0.11);
}

.portal-brand-iso strong {
  position: relative;
  z-index: 2;
  color: var(--portal-blue);
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.portal-brand-iso__ring {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 16px solid rgba(0, 59, 113, 0.96);
  border-right-color: transparent;
  border-bottom-color: rgba(0, 59, 113, 0.7);
  transform: rotate(-24deg);
}

.portal-brand-iso__ring--accent {
  inset: 24px;
  border-width: 14px;
  border-color: rgba(88, 195, 182, 0.96);
  border-left-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(18deg);
}

.portal-brand-wordmark {
  display: flex;
  align-items: baseline;
  gap: 0.08em;
  font-size: clamp(2rem, 2vw + 1.2rem, 3rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--portal-blue);
  text-shadow:
    0 10px 28px rgba(0, 59, 113, 0.16),
    0 0 26px rgba(26, 124, 156, 0.18);
}

.portal-brand-wordmark span {
  color: var(--portal-green);
}

.portal-brand-palette {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.portal-brand-swatch {
  min-height: 74px;
  border-radius: 20px;
  background: var(--swatch-color);
  border: 1px solid rgba(0, 59, 113, 0.08);
  box-shadow: 0 14px 24px rgba(0, 59, 113, 0.12);
}

.portal-brand-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.portal-brand-codes code {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 59, 113, 0.12);
  color: var(--portal-blue);
  font-size: 0.86rem;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(0, 59, 113, 0.06);
}

.portal-card--auth {
  max-width: 760px;
  width: 100%;
  justify-self: center;
}

.portal-card--chooser {
  border-style: dashed;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.portal-admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.portal-stat-card {
  border: 1px solid var(--portal-line);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f9ff 100%);
  box-shadow: 0 14px 34px rgba(25, 57, 90, 0.08);
  display: grid;
  gap: 6px;
  min-height: 124px;
}

.portal-stat-card__label,
.portal-section__head > p {
  color: var(--portal-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

.portal-stat-card strong {
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: 2rem;
  line-height: 1;
}

.portal-stat-card small {
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-admin-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-admin-nav__button.is-active {
  background: var(--portal-green);
  border-color: var(--portal-green);
  color: #ffffff;
}

.portal-admin-section {
  display: grid;
  gap: 18px;
}

.portal-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
}

.portal-section__head > div {
  display: grid;
  gap: 6px;
}

.portal-section__head h3 {
  margin: 0;
  font-family: "Georgia", "Palatino Linotype", serif;
}

.portal-section__head > p {
  margin: 0;
  max-width: 480px;
  line-height: 1.6;
  text-transform: none;
  letter-spacing: normal;
  font-size: 0.95rem;
}

.portal-inline-fields > label {
  flex: 1 1 140px;
}

.portal-inline-hint {
  margin: 0;
  padding: 12px 14px;
  border: 1px dashed rgba(43, 102, 197, 0.28);
  border-radius: 14px;
  background: rgba(43, 102, 197, 0.05);
  color: rgba(33, 54, 92, 0.78);
  font-size: 0.92rem;
}

.portal-inline-hint.is-active {
  border-style: solid;
  background: rgba(34, 139, 94, 0.08);
  border-color: rgba(34, 139, 94, 0.24);
  color: rgba(23, 88, 60, 0.9);
}

.portal-form--locked {
  opacity: 0.72;
}

.portal-card--table {
  overflow: hidden;
}

.portal-license-detail {
  display: grid;
  gap: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.portal-license-detail__summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portal-license-detail__metric {
  border: 1px solid var(--portal-line);
  border-radius: 20px;
  padding: 16px;
  background: #ffffff;
  display: grid;
  gap: 6px;
  min-height: 118px;
}

.portal-license-detail__metric span {
  color: var(--portal-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portal-license-detail__metric strong {
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: 1.28rem;
  line-height: 1.2;
}

.portal-license-detail__metric small {
  color: var(--portal-muted);
  line-height: 1.5;
}

.portal-license-detail__users-head {
  margin-top: 6px;
  margin-bottom: 0;
}

.portal-table--detail {
  min-width: 840px;
}

body[data-admin-view="loading"] .portal-hero--admin,
body[data-admin-view="login"] .portal-hero--admin,
body[data-admin-view="bootstrap"] .portal-hero--admin,
body[data-admin-view="dashboard"] .portal-hero--admin {
  display: none;
}

body[data-admin-view="loading"] #adminDashboard,
body[data-admin-view="login"] #adminDashboard,
body[data-admin-view="bootstrap"] #adminDashboard,
body[data-admin-view="dashboard"] #adminLoadingPanel,
body[data-admin-view="dashboard"] #adminLoginPanel,
body[data-admin-view="dashboard"] #adminBootstrapPanel,
body[data-admin-view="login"] #adminLoadingPanel,
body[data-admin-view="login"] #adminBootstrapPanel,
body[data-admin-view="bootstrap"] #adminLoadingPanel,
body[data-admin-view="bootstrap"] #adminLoginPanel {
  display: none !important;
}

body[data-admin-view="loading"] .portal-main--admin,
body[data-admin-view="login"] .portal-main--admin,
body[data-admin-view="bootstrap"] .portal-main--admin {
  min-height: calc(100vh - 150px);
  align-content: center;
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 980px) {
  .portal-main,
  .portal-main--admin,
  .portal-grid--admin,
  .portal-grid--editor,
  .portal-grid--quick-access,
  .portal-admin-summary,
  .portal-hero--admin,
  .portal-license-detail__summary,
  .portal-brand-overview__grid,
  .portal-brand-palette {
    grid-template-columns: 1fr;
  }

  .portal-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-brand-overview__head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 720px) {
  .portal-shell {
    padding: 16px;
  }

  .portal-topbar,
  .portal-dashboard__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .portal-brand__lockup {
    align-items: flex-start;
  }

  .portal-tabs,
  .portal-dashboard__actions,
  .portal-inline-fields,
  .portal-actions-row,
  .portal-admin-nav {
    width: 100%;
  }

  .portal-tab,
  .portal-primary,
  .portal-secondary,
  .portal-admin-nav a {
    width: 100%;
  }

  .portal-stat-card {
    min-height: auto;
  }

  .portal-brand-swatch {
    min-height: 60px;
  }
}

/* CONTEX360 visual refresh */
body {
  background:
    radial-gradient(circle at 84% 10%, rgba(88, 195, 182, 0.16), transparent 22%),
    radial-gradient(circle at 12% 16%, rgba(26, 124, 156, 0.1), transparent 24%),
    linear-gradient(135deg, #eff3f6 0%, #ffffff 48%, #eef9f7 100%);
}

.portal-topbar {
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(0, 59, 113, 0.12);
  box-shadow: 0 20px 42px rgba(0, 59, 113, 0.09);
}

.portal-brand__mark {
  overflow: hidden;
  padding: 2px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(88, 195, 182, 0.24)),
    linear-gradient(135deg, rgba(0, 59, 113, 0.96), rgba(26, 124, 156, 0.82));
}

.portal-brand__mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 16px;
}

.portal-brand__text {
  gap: 6px;
}

.portal-brand__wordmark-image {
  width: 164px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 20px rgba(0, 59, 113, 0.14));
}

.portal-brand__text span {
  max-width: 440px;
}

.portal-hero,
.portal-card,
.portal-dashboard {
  border-radius: 30px;
}

.portal-tab,
.portal-primary,
.portal-secondary,
.portal-table button {
  transition:
    transform 0.16s ease,
    background 0.16s ease,
    border-color 0.16s ease,
    box-shadow 0.16s ease;
}

.portal-tab:hover,
.portal-primary:hover,
.portal-secondary:hover,
.portal-table button:hover {
  transform: translateY(-1px);
}

.portal-tab.is-active,
.portal-primary,
.portal-admin-nav__button.is-active {
  background: linear-gradient(135deg, #1a7c9c 0%, #58c3b6 100%);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(26, 124, 156, 0.18);
}

.portal-table-wrap {
  border: 1px solid rgba(0, 59, 113, 0.12);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 14px 28px rgba(0, 59, 113, 0.05);
}

.portal-table th,
.portal-table td {
  padding: 14px;
}

.portal-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: linear-gradient(180deg, #f3f7fb 0%, #e7eef6 100%);
  color: #174568;
  font-size: 0.73rem;
  letter-spacing: 0.15em;
}

.portal-table td {
  border-bottom: 1px solid rgba(0, 59, 113, 0.08);
}

.portal-table tbody tr:nth-child(even) {
  background: rgba(243, 247, 250, 0.72);
}

.portal-table tbody tr:hover {
  background: rgba(88, 195, 182, 0.1);
}

.portal-cell-stack {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.portal-cell-stack strong {
  color: var(--portal-text);
  line-height: 1.35;
}

.portal-table-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.portal-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.portal-pill--dark {
  background: rgba(0, 59, 113, 0.1);
  color: var(--portal-blue);
}

.portal-pill--soft {
  background: rgba(88, 195, 182, 0.18);
  color: #136c79;
}

.portal-table button {
  padding: 9px 12px;
  border-color: rgba(0, 59, 113, 0.14);
}

.portal-brand-overview {
  border: 1px solid rgba(0, 59, 113, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    0 20px 44px rgba(0, 59, 113, 0.08);
}

.portal-brand-asset {
  display: block;
  max-width: 100%;
  height: auto;
}

.portal-brand-asset--symbol {
  width: 132px;
  margin: 4px 0 0;
  filter: drop-shadow(0 16px 30px rgba(0, 59, 113, 0.12));
}

.portal-brand-asset--wordmark {
  width: 100%;
  max-width: 260px;
  margin-top: 22px;
  filter: drop-shadow(0 16px 28px rgba(0, 59, 113, 0.12));
}

.portal-empty {
  padding: 28px 16px;
}

@media (max-width: 720px) {
  .portal-brand__wordmark-image {
    width: 132px;
  }

  .portal-brand__text span {
    font-size: 0.82rem;
  }

  .portal-topbar__links {
    width: 100%;
  }

  .portal-topbar__links a {
    width: 100%;
    text-align: center;
  }

  .portal-table-wrap {
    border-radius: 18px;
  }
}

/* Minimal palette refinement */
:root {
  --portal-bg:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 30%),
    radial-gradient(circle at bottom right, rgba(88, 195, 182, 0.04), transparent 24%),
    linear-gradient(180deg, #f1f3f5 0%, #ebeff2 100%);
  --portal-panel: #ffffff;
  --portal-panel-soft: #fafbfc;
  --portal-line: #dbe4e8;
  --portal-line-strong: rgba(26, 124, 156, 0.16);
  --portal-panel-border: rgba(0, 59, 113, 0.28);
  --portal-divider: rgba(0, 59, 113, 0.14);
  --portal-text: #15324a;
  --portal-muted: #688091;
  --portal-shadow: 0 10px 24px rgba(0, 59, 113, 0.06);
}

body {
  background: var(--portal-bg);
}

.portal-topbar,
.portal-hero,
.portal-card,
.portal-dashboard,
.portal-card--compact {
  border: 1px solid var(--portal-panel-border);
  box-shadow: var(--portal-shadow);
}

.portal-topbar {
  background: rgba(255, 255, 255, 0.96);
}

.portal-hero,
.portal-card,
.portal-dashboard {
  border-radius: 26px;
}

.portal-note-list article,
.portal-admin-quicklist article,
.portal-session-hint,
.portal-stat-card,
.portal-license-detail__metric,
.portal-inline-hint,
.portal-card--chooser {
  background: var(--portal-panel-soft);
  border: 1px solid var(--portal-panel-border);
  box-shadow: none;
}

.portal-card__head,
.portal-dashboard__head,
.portal-section__head,
.portal-brand-overview__head,
.portal-license-detail__users-head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--portal-divider);
}

.portal-tab,
.portal-secondary,
.portal-table button {
  background: #ffffff;
  border-color: var(--portal-panel-border);
  box-shadow: none;
}

.portal-tab:hover,
.portal-secondary:hover,
.portal-table button:hover {
  background: rgba(26, 124, 156, 0.05);
  border-color: rgba(26, 124, 156, 0.14);
}

.portal-tab.is-active,
.portal-primary,
.portal-admin-nav__button.is-active {
  background: var(--portal-blue);
  border-color: var(--portal-blue);
  box-shadow: none;
}

.portal-primary:hover,
.portal-admin-nav__button.is-active:hover {
  background: var(--portal-cyan);
  border-color: var(--portal-cyan);
}

.portal-table-wrap {
  border: 1px solid var(--portal-panel-border);
  background: #ffffff;
  box-shadow: none;
}

.portal-table th {
  background: #f7fafc;
  color: #1a4b70;
  border-bottom: 1px solid rgba(0, 59, 113, 0.1);
}

.portal-table td {
  border-bottom: 1px solid rgba(0, 59, 113, 0.08);
}

.portal-table tbody tr:nth-child(even) {
  background: rgba(230, 230, 230, 0.18);
}

.portal-table tbody tr:hover {
  background: rgba(88, 195, 182, 0.08);
}

.portal-pill--dark {
  background: rgba(0, 59, 113, 0.06);
}

.portal-pill--soft {
  background: rgba(88, 195, 182, 0.14);
}

.portal-badge {
  box-shadow: none;
}

.portal-badge--success {
  background: rgba(88, 195, 182, 0.14);
  color: #187f79;
}

.portal-badge--warning {
  background: rgba(26, 124, 156, 0.1);
  color: var(--portal-cyan);
}

.portal-badge--danger {
  background: rgba(0, 59, 113, 0.08);
  color: var(--portal-blue);
}

.portal-brand-overview {
  border: 1px solid var(--portal-panel-border);
  background:
    radial-gradient(circle at 82% 12%, rgba(88, 195, 182, 0.08), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  box-shadow: var(--portal-shadow);
}

.portal-brand-tile {
  background: #ffffff;
  border: 1px solid var(--portal-panel-border);
  box-shadow: none;
}

:root {
  --portal-bg: #c7c7c7;
}

body {
  background: #c7c7c7;
}

.portal-table-wrap {
  border: 1px solid var(--portal-panel-border);
  background: linear-gradient(180deg, #edf4fb 0%, #e6eef4 100%);
}

.portal-table {
  background: rgba(244, 248, 251, 0.92);
}

.portal-table th {
  background: linear-gradient(180deg, #dcecf7 0%, #eaf4fb 100%);
  color: var(--portal-blue);
  border-bottom: 1px solid rgba(0, 59, 113, 0.14);
  border-right: 1px solid rgba(0, 59, 113, 0.08);
}

.portal-table td {
  border-bottom: 1px solid rgba(0, 59, 113, 0.08);
  border-right: 1px solid rgba(0, 59, 113, 0.07);
}

.portal-table th:last-child,
.portal-table td:last-child {
  border-right: 0;
}

.portal-table tbody tr {
  background: rgba(255, 255, 255, 0.42);
}

.portal-table tbody tr:nth-child(even) {
  background: rgba(88, 195, 182, 0.08);
}

.portal-table tbody tr:hover {
  background: rgba(26, 124, 156, 0.12);
}
