:root {
  --dash-bg: #f4f9fa;
  --dash-surface: #ffffff;
  --dash-surface-soft: #edf8f7;
  --dash-ink: #08233f;
  --dash-muted: #5c7080;
  --dash-border: #cfe2e4;
  --dash-accent: #0b887d;
  --dash-accent-strong: #087268;
  --dash-track: #dceced;
  --dash-shadow: 0 16px 38px rgba(8, 35, 63, 0.08);
}

html[data-theme="dark"] {
  --dash-bg: #061a2d;
  --dash-surface: #0c2940;
  --dash-surface-soft: #11354a;
  --dash-ink: #f3fbfd;
  --dash-muted: #b7c9d2;
  --dash-border: #2d5265;
  --dash-accent: #58d4c6;
  --dash-accent-strong: #7be2d6;
  --dash-track: #173e52;
  --dash-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

body.dashboard-page {
  margin: 0;
  background: var(--dash-bg);
  color: var(--dash-ink);
}

.dashboard-page .site-header,
.dashboard-page .en-header {
  max-width: 1240px;
  margin-inline: auto;
}

html[data-theme="dark"] .dashboard-page .site-header,
html[data-theme="dark"] .dashboard-page .en-header {
  border-color: var(--dash-border);
  background: var(--dash-surface);
  color: var(--dash-ink);
}

html[data-theme="dark"] .dashboard-page .brand,
html[data-theme="dark"] .dashboard-page .en-brand,
html[data-theme="dark"] .dashboard-page .header-brand-name,
html[data-theme="dark"] .dashboard-page .header-brand-name small,
html[data-theme="dark"] .dashboard-page .en-brand small,
html[data-theme="dark"] .dashboard-page .language-switch,
html[data-theme="dark"] .dashboard-page .en-language-switch {
  color: var(--dash-ink);
}

.dashboard-page .dashboard-header-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-page .dashboard-header-nav a {
  color: inherit;
  text-decoration: none;
}

.dashboard-page .dashboard-header-nav a[aria-current="page"] {
  color: var(--dash-accent);
  font-weight: 800;
}

.dashboard-page .theme-toggle {
  flex: 0 0 auto;
}

.institutional-dashboard {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 64px;
}

.dashboard-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 5vw, 50px);
  border: 1px solid var(--dash-border);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 15%, rgba(88, 212, 198, 0.22), transparent 30%),
    linear-gradient(135deg, var(--dash-surface), var(--dash-surface-soft));
  box-shadow: var(--dash-shadow);
}

.dashboard-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  color: var(--dash-accent-strong);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--dash-ink);
  font-size: clamp(2rem, 5vw, 3.65rem);
  line-height: 1.12;
}

.dashboard-hero p {
  max-width: 760px;
  margin: 16px 0 0;
  color: var(--dash-muted);
  font-size: 1.04rem;
  line-height: 1.85;
}

.dashboard-hero .dashboard-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  margin-top: 22px;
  padding: 15px 17px;
  border: 1px solid color-mix(in srgb, var(--dash-accent) 34%, var(--dash-border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--dash-accent) 9%, var(--dash-surface));
  color: var(--dash-ink);
  font-size: 0.94rem;
  line-height: 1.75;
}

.dashboard-info-icon {
  display: grid;
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  place-items: center;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--dash-accent);
  color: #05263a;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 800;
}

.dashboard-illustration {
  overflow: hidden;
  max-width: 940px;
  margin: 24px auto 0;
  border: 1px solid color-mix(in srgb, var(--dash-accent) 28%, var(--dash-border));
  border-radius: 22px;
  background: #082b3d;
  box-shadow: 0 14px 30px rgba(8, 35, 63, 0.14);
}

.dashboard-illustration img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.dashboard-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.metric-card,
.dashboard-panel,
.priority-card {
  border: 1px solid var(--dash-border);
  border-radius: 22px;
  background: var(--dash-surface);
  box-shadow: var(--dash-shadow);
}

.metric-card {
  min-height: 150px;
  padding: 24px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--dash-muted);
}

.metric-card strong {
  display: block;
  margin: 9px 0 5px;
  color: var(--dash-ink);
  font-size: clamp(2.35rem, 6vw, 3.6rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-card strong b {
  color: var(--dash-accent);
  font-size: 0.43em;
}

.priority-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border-color: color-mix(in srgb, var(--dash-accent) 48%, var(--dash-border));
  background: linear-gradient(135deg, var(--dash-surface), var(--dash-surface-soft));
}

.priority-card span,
.priority-card small {
  display: block;
  color: var(--dash-muted);
}

.priority-card strong {
  display: block;
  margin-top: 5px;
  color: var(--dash-ink);
  font-size: 1.22rem;
}

.priority-score {
  min-width: 82px;
  color: var(--dash-accent-strong);
  font-size: 2.2rem;
  font-weight: 900;
  text-align: center;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 22px;
  margin-top: 22px;
}

.dashboard-panel {
  padding: clamp(22px, 4vw, 32px);
}

.dashboard-panel h2 {
  margin: 0;
  color: var(--dash-ink);
  font-size: 1.45rem;
}

.panel-intro {
  margin: 7px 0 24px;
  color: var(--dash-muted);
  line-height: 1.7;
}

.domain-row,
.distribution-row {
  margin-top: 20px;
}

.domain-label,
.distribution-label {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--dash-ink);
}

.domain-label span,
.distribution-label span {
  min-width: 0;
}

.domain-label b,
.distribution-label b {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--dash-track);
}

.progress-fill {
  height: 100%;
  width: var(--value);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--dash-accent-strong), var(--dash-accent));
}

.distribution-row .progress-track {
  height: 9px;
}

.distribution-row:nth-of-type(3) .progress-fill,
.distribution-row:nth-of-type(4) .progress-fill {
  opacity: 0.82;
}

.dashboard-footer {
  padding: 26px 16px;
  border-top: 1px solid var(--dash-border);
  background: var(--dash-surface);
  color: var(--dash-muted);
  text-align: center;
}

.dashboard-footer a {
  color: var(--dash-accent-strong);
  font-weight: 700;
}

@media (max-width: 880px) {
  .dashboard-summary,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-page .dashboard-header-nav {
    display: none;
    position: absolute;
    inset-inline: 16px;
    top: 78px;
    z-index: 20;
    padding: 18px;
    border: 1px solid var(--dash-border);
    border-radius: 18px;
    background: var(--dash-surface);
    box-shadow: var(--dash-shadow);
  }

  .dashboard-page .dashboard-header-nav.open {
    display: grid;
  }

  .dashboard-page .dashboard-header-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 560px) {
  .institutional-dashboard {
    width: min(100% - 20px, 1180px);
    padding-top: 16px;
  }

  .dashboard-hero,
  .metric-card,
  .dashboard-panel,
  .priority-card {
    border-radius: 18px;
  }

  .priority-card {
    align-items: flex-start;
  }

  .priority-score {
    min-width: 66px;
    font-size: 1.85rem;
  }

  .domain-label,
  .distribution-label {
    font-size: 0.94rem;
  }

  .dashboard-hero .dashboard-info {
    padding: 13px 14px;
    font-size: 0.9rem;
  }

  .dashboard-illustration {
    margin-top: 18px;
    border-radius: 16px;
  }
}
