:root {
  --site-bg: #eef3f8;
  --site-surface: #ffffff;
  --site-text: #111827;
  --site-muted: #64748b;
  --site-primary: #0095eb;
  --site-border: rgba(148,163,184,0.36);
  --site-shadow: 0 18px 45px rgba(15,23,42,0.10);
}

* {
  box-sizing: border-box;
}

body.site-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--site-text);
  background: linear-gradient(135deg, var(--site-bg), #dfe9f2);
}

i[data-lucide] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1em;
  height: 1em;
}

html:not(.lucide-ready) i[data-lucide='menu']::before {
  content: "☰";
}

.site-header {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 18px;
  background: var(--site-primary);
  color: #fff;
}

.site-brand,
.site-nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
}

.site-brand {
  font-size: 18px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 14px;
}

.site-main {
  width: min(1280px, calc(100% - 28px));
  margin: 22px auto;
}

.site-card {
  background: var(--site-surface);
  border: 1px solid var(--site-border);
  border-radius: 10px;
  box-shadow: var(--site-shadow);
  padding: 18px;
}

.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.site-card h1,
.site-card h2 {
  margin: 0 0 12px;
}

.site-muted {
  color: var(--site-muted);
}

.site-form {
  display: grid;
  gap: 12px;
  max-width: 460px;
}

.site-form label {
  display: grid;
  gap: 5px;
  font-weight: 800;
}

.site-form input {
  min-height: 40px;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 8px 10px;
}

.site-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--site-primary);
  border-radius: 8px;
  background: var(--site-primary);
  color: #fff;
  padding: 8px 14px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
}

.site-button.secondary {
  background: #fff;
  color: var(--site-primary);
}

.site-alert {
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #991b1b;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-weight: 700;
}

.site-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}

.site-table th,
.site-table td {
  border-bottom: 1px solid var(--site-border);
  padding: 10px;
  text-align: left;
}

.site-table th {
  color: #334155;
  font-size: 13px;
}

.score-pill {
  display: inline-flex;
  min-width: 54px;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0,149,235,0.12);
  color: #075985;
  padding: 4px 8px;
  font-weight: 900;
}

.home-hero {
  min-height: calc(100vh - 128px);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 28px;
  padding: 38px;
  border: 1px solid rgba(0,149,235,0.28);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(0,149,235,0.96), rgba(3,105,161,0.96)),
    #0095eb;
  color: #fff;
  box-shadow: var(--site-shadow);
}

.home-kicker {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(255,255,255,0.36);
  border-radius: 999px;
  padding: 4px 10px;
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 900;
}

.home-hero h1 {
  max-width: 820px;
  margin: 18px 0 12px;
  color: #fff;
  font-size: clamp(36px, 5vw, 66px);
  line-height: 1.04;
  letter-spacing: 0;
}

.home-hero p {
  max-width: 720px;
  color: #e0f2fe;
  font-size: 19px;
  line-height: 1.55;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.home-actions .site-button,
.home-band .site-button {
  border-color: #fff;
}

.home-actions .site-button.secondary {
  background: transparent;
  color: #fff;
}

.home-search-card {
  max-width: 640px;
  margin-top: 22px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  padding: 14px;
}

.home-search-card label {
  display: block;
  margin-bottom: 8px;
  color: #e0f2fe;
  font-size: 13px;
  font-weight: 900;
}

.home-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.home-search-row input {
  min-height: 42px;
  min-width: 0;
  border: 1px solid rgba(255,255,255,0.44);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  color: #0f172a;
  padding: 8px 12px;
  font: inherit;
}

.popular-exams {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.popular-exams span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  color: #fff;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 900;
}

.product-preview {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.42);
  border-radius: 12px;
  background: #f8fafc;
  box-shadow: 0 24px 60px rgba(8,47,73,0.34);
}

.preview-topbar {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #075985;
  color: #fff;
}

.preview-topbar span {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background:
    linear-gradient(#fff,#fff) center 7px / 14px 2px no-repeat,
    linear-gradient(#fff,#fff) center 12px / 14px 2px no-repeat,
    linear-gradient(#fff,#fff) center 17px / 14px 2px no-repeat,
    rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.52);
}

.preview-topbar strong,
.preview-topbar em {
  font-style: normal;
  font-weight: 900;
}

.preview-topbar em {
  border-radius: 999px;
  background: rgba(255,255,255,0.16);
  padding: 5px 9px;
  font-size: 12px;
}

.preview-body {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  min-height: 420px;
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 10px;
  border-right: 1px solid #dbe5ee;
  background: #e8f2fb;
  padding: 14px;
}

.preview-sidebar b {
  color: #334155;
  font-size: 13px;
}

.preview-grid,
.preview-question-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.preview-grid span,
.preview-question-grid span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 900;
}

.preview-grid .active,
.preview-question-grid .active {
  background: var(--site-primary);
  border-color: var(--site-primary);
  color: #fff;
}

.preview-question-grid .done {
  border-color: #16a34a;
  background: #dcfce7;
  color: #166534;
}

.preview-question {
  background: #fff;
}

.preview-question-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  background: var(--site-primary);
  color: #fff;
  padding: 12px 18px;
  font-weight: 900;
}

.preview-question p {
  margin: 22px 18px 16px;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.5;
}

.preview-question ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 18px;
  list-style: none;
}

.preview-question li {
  min-height: 46px;
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  color: #334155;
}

.preview-result {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px;
}

.preview-result span {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(0,149,235,0.12);
  color: #075985;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.stats-strip div {
  min-height: 96px;
  display: grid;
  align-content: center;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: #fff;
  padding: 16px;
  box-shadow: var(--site-shadow);
}

.stats-strip strong {
  color: var(--site-primary);
  font-size: 32px;
  line-height: 1;
}

.stats-strip span {
  margin-top: 4px;
  color: #334155;
  font-weight: 900;
}

.workflow-section {
  margin-top: 16px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--site-shadow);
}

.section-heading {
  max-width: 760px;
}

.section-heading span {
  color: var(--site-primary);
  font-size: 13px;
  font-weight: 900;
}

.section-heading h2 {
  margin: 6px 0 18px;
  font-size: 30px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.workflow-grid div {
  border: 1px solid var(--site-border);
  border-radius: 8px;
  padding: 14px;
  background: #f8fafc;
}

.workflow-grid b {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--site-primary);
  color: #fff;
}

.workflow-grid h3 {
  margin: 12px 0 6px;
  font-size: 18px;
  color: #16335b;
  font-weight: 800;
}

.workflow-grid p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.5;
}

.home-section {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.home-feature {
  min-height: 190px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: #fff;
  padding: 18px;
  box-shadow: var(--site-shadow);
}

.home-feature span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(0,149,235,0.12);
  color: var(--site-primary);
  font-weight: 900;
}

.home-feature h2 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.home-feature p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.55;
}

.home-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  border-radius: 10px;
  background: #075985;
  color: #fff;
  padding: 20px;
}

.home-band h2,
.home-band p {
  margin: 0;
}

.home-band p {
  margin-top: 4px;
  color: #bae6fd;
}

.home-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 16px 0 4px;
  color: var(--site-muted);
  font-size: 13px;
}

.home-footer span:first-child {
  color: #334155;
  font-weight: 900;
}

@media (max-width: 680px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-hero,
  .home-section,
  .workflow-grid,
  .stats-strip {
    grid-template-columns: 1fr;
  }

  .home-search-row,
  .preview-body {
    grid-template-columns: 1fr;
  }

  .home-hero {
    min-height: auto;
    padding: 24px;
  }

  .preview-sidebar {
    border-right: none;
    border-bottom: 1px solid #dbe5ee;
  }

  .home-band,
  .home-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Modern product-site layer */
:root {
  --site-primary-dark: #075985;
  --site-primary-soft: rgba(0,149,235,0.12);
  --site-shadow-strong: 0 24px 70px rgba(8,47,73,0.22);
}

.site-body svg {
  width: 18px;
  height: 18px;
  stroke-width: 2.4;
}

.site-header {
  min-height: 68px;
  padding: 10px max(18px, calc((100vw - 1280px) / 2 + 18px));
  background: rgba(0,149,235,0.94);
  box-shadow: 0 8px 30px rgba(8,47,73,0.16);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.site-brand-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.site-brand-mark {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.36);
  border-radius: 10px;
  background: rgba(255,255,255,0.14);
}

.site-brand-logo {
  width: 30px;
  height: 30px;
  display: block;
  border-radius: 9px;
}

.site-nav {
  gap: 8px;
}

.site-nav a,
.nav-dropdown button,
.nav-dropdown summary {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  padding: 8px 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.nav-dropdown summary {
  list-style: none;
}

.nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.site-nav a:hover,
.nav-dropdown button:hover,
.nav-dropdown summary:hover,
.nav-dropdown:focus-within button,
.nav-dropdown:focus-within summary,
.nav-dropdown[open] summary {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.12);
}

.nav-cta {
  border-color: rgba(255,255,255,0.92) !important;
  background: #fff !important;
  color: var(--site-primary) !important;
}

.nav-dropdown {
  position: relative;
}

.nav-menu {
  min-width: 230px;
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  border: 1px solid rgba(148,163,184,0.28);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--site-shadow-strong);
  padding: 8px;
  z-index: 60;
}

.nav-dropdown:hover .nav-menu,
.nav-dropdown:focus-within .nav-menu,
.nav-dropdown[open] .nav-menu {
  display: grid;
}

.nav-menu a {
  width: 100%;
  justify-content: flex-start;
  border-radius: 8px;
  color: #334155;
}

.nav-menu a:hover {
  background: #eef7ff;
  color: #075985;
}

.site-button {
  gap: 8px;
  transition:
    transform 170ms ease,
    box-shadow 170ms ease,
    background 170ms ease;
}

.site-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,149,235,0.22);
}

.home-hero {
  background:
    radial-gradient(circle at 78% 18%, rgba(255,255,255,0.24), transparent 28%),
    linear-gradient(135deg, rgba(0,149,235,0.98), rgba(3,105,161,0.98)),
    #0095eb;
}

.home-kicker {
  gap: 7px;
}

.home-actions .site-button:first-child {
  background: #fff;
  color: var(--site-primary);
}

.search-input-shell {
  min-width: 0;
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,0.44);
  border-radius: 8px;
  background: rgba(255,255,255,0.94);
  padding: 0 10px;
}

.search-input-shell svg {
  color: var(--site-primary);
  flex: 0 0 auto;
}

.home-search-row input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 8px 0;
}

.popular-exams a {
  min-height: 36px;
  display: inline-grid;
  align-items: center;
  grid-template-columns: auto auto;
  gap: 6px;
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  padding: 5px 10px;
  text-decoration: none;
  font-size: 12px;
}

.popular-exams a:hover {
  background: rgba(255,255,255,0.24);
}

.popular-exams strong {
  font-weight: 900;
}

.popular-exams span {
  opacity: 0.86;
  padding: 0;
  background: transparent;
}

.product-preview {
  transform: perspective(1200px) rotateY(-4deg) rotateX(2deg);
  box-shadow: 0 30px 78px rgba(8,47,73,0.36);
}

.preview-result span {
  align-items: center;
  gap: 6px;
}

.stats-strip div {
  gap: 6px;
}

.stats-strip svg {
  color: var(--site-primary);
}

.workflow-section,
.catalog-section,
.report-showcase {
  margin-top: 16px;
  border: 1px solid var(--site-border);
  border-radius: 10px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--site-shadow);
}

.section-heading p {
  margin: -8px 0 18px;
  color: var(--site-muted);
  line-height: 1.55;
}

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

.catalog-card {
  min-height: 170px;
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--site-text);
  padding: 16px;
  text-decoration: none;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    box-shadow 170ms ease;
}

.catalog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0,149,235,0.38);
  box-shadow: 0 14px 30px rgba(15,23,42,0.10);
}

.catalog-card svg {
  width: 34px;
  height: 34px;
  color: var(--site-primary);
}

.catalog-card strong {
  font-size: 18px;
}

.catalog-card span {
  color: var(--site-muted);
  line-height: 1.45;
}

.workflow-grid b svg,
.home-feature span svg {
  width: 18px;
  height: 18px;
}

.report-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 16px;
  align-items: center;
}

.report-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 16px;
  border: 1px solid rgba(0,149,235,0.20);
  border-radius: 10px;
  background: #eef7ff;
  padding: 16px;
}

.report-score {
  min-height: 156px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 8px;
  background: var(--site-primary);
  color: #fff;
}

.report-score strong {
  font-size: 48px;
  line-height: 1;
}

.report-score span {
  margin-top: 4px;
  font-weight: 900;
}

.report-bars {
  display: grid;
  align-content: center;
  gap: 9px;
}

.report-bars label {
  display: flex;
  justify-content: space-between;
  color: #334155;
  font-weight: 900;
}

.report-bars meter {
  width: 100%;
  height: 12px;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav,
  .site-nav a,
  .nav-dropdown,
  .nav-dropdown button,
  .nav-dropdown summary {
    width: 100%;
  }

  .nav-menu {
    position: static;
    width: 100%;
    margin-top: 6px;
  }

  .catalog-grid,
  .report-showcase,
  .report-card {
    grid-template-columns: 1fr;
  }

  .product-preview {
    transform: none;
  }
}

/* Modern marketplace-style polish */
:root {
  --site-ink: #0f172a;
  --site-blue-700: #0277bd;
  --site-blue-50: #eef8ff;
}

body.site-body {
  background:
    linear-gradient(rgba(14,165,233,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.055) 1px, transparent 1px),
    linear-gradient(145deg, #f7fbff, #dceaf5);
  background-size: 32px 32px, 32px 32px, auto;
}

.site-header {
  border-bottom: 1px solid rgba(255,255,255,0.22);
}

.site-brand span:last-child {
  letter-spacing: 0;
}

.site-nav a,
.nav-dropdown button,
.nav-dropdown summary,
.site-button {
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.nav-menu {
  gap: 4px;
}

.nav-menu a {
  min-height: 42px;
  color: #1f2937;
}

.nav-menu a svg {
  color: var(--site-primary);
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(8,47,73,0.18);
}

.site-main {
  width: min(1320px, calc(100% - 24px));
}

.home-hero {
  position: relative;
  overflow: hidden;
  min-height: min(780px, calc(100vh - 118px));
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(0,149,235,0.98), rgba(2,119,189,0.98)),
    linear-gradient(rgba(255,255,255,0.13) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.13) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  box-shadow: 0 28px 80px rgba(2,68,111,0.24);
}

.home-hero-copy,
.product-preview {
  position: relative;
  z-index: 1;
}

.home-kicker {
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
}

.home-hero h1 {
  font-size: clamp(38px, 4.8vw, 64px);
  letter-spacing: 0;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.hero-proof-row span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #eff6ff;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 900;
}

.home-search-card {
  border-radius: 8px;
  background: rgba(255,255,255,0.15);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.18);
}

.search-input-shell:focus-within {
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.20);
}

.popular-exams a {
  grid-template-columns: 1fr;
  min-width: 128px;
  border-radius: 8px;
}

.popular-exams a strong {
  font-size: 13px;
}

.product-preview {
  border-radius: 8px;
  border-color: rgba(255,255,255,0.54);
  background: rgba(248,250,252,0.96);
}

.product-preview:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(1deg) translateY(-2px);
}

.preview-topbar,
.preview-question-head {
  background: var(--site-primary);
}

.preview-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 18px 0;
}

.preview-pills span {
  border-radius: 999px;
  background: var(--site-blue-50);
  color: var(--site-blue-700);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.preview-question li,
.catalog-card,
.workflow-grid div,
.home-feature,
.report-card,
.stats-strip div {
  border-radius: 8px;
}

.preview-question li:hover {
  border-color: rgba(0,149,235,0.48);
  background: #f5fbff;
}

.stats-strip div {
  grid-template-columns: auto 1fr;
  column-gap: 10px;
  align-items: center;
}

.stats-strip div svg {
  grid-row: span 2;
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 8px;
  background: var(--site-primary-soft);
}

.catalog-section,
.workflow-section,
.home-section,
.report-showcase,
.home-band {
  border-radius: 8px;
}

.category-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.category-tabs a,
.category-tabs button {
  min-height: 72px;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: 3px 9px;
  align-items: center;
  border: 1px solid rgba(0,149,235,0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f4faff);
  color: var(--site-ink);
  padding: 12px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.category-tabs a:hover,
.category-tabs button:hover {
  transform: translateY(-1px);
  border-color: rgba(0,149,235,0.42);
  box-shadow: 0 12px 28px rgba(15,23,42,0.10);
}

.category-tabs button.is-active {
  border-color: rgba(0,149,235,0.58);
  box-shadow: 0 10px 24px rgba(0,149,235,0.18);
  background: linear-gradient(180deg, #f9fcff, #eaf5ff);
}

.category-tabs svg {
  grid-row: 1 / span 2;
  width: 32px;
  height: 32px;
  color: var(--site-primary);
}

.category-tabs strong {
  font-size: 15px;
}

.category-tabs span {
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 800;
}

.catalog-card {
  position: relative;
  overflow: hidden;
}

.catalog-card::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 8px;
  border-radius: 999px;
  background: rgba(0,149,235,0.14);
}

.workflow-grid b,
.home-feature span {
  box-shadow: 0 10px 20px rgba(0,149,235,0.18);
}

.report-card {
  background:
    linear-gradient(90deg, rgba(0,149,235,0.10), rgba(255,255,255,0.95)),
    #eef7ff;
}

.report-bars meter {
  overflow: hidden;
  border-radius: 999px;
}

.home-band {
  background:
    linear-gradient(135deg, #075985, #0095eb);
  box-shadow: 0 22px 54px rgba(2,68,111,0.24);
}

@media (max-width: 980px) {
  .home-hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .category-tabs,
  .catalog-grid,
  .home-section,
  .workflow-grid,
  .stats-strip,
  .report-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-preview,
  .product-preview:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  .site-main {
    width: min(100% - 16px, 1320px);
    margin-top: 12px;
  }

  .site-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-hero {
    padding: 22px;
  }

  .home-actions,
  .home-actions .site-button,
  .home-search-row .site-button {
    width: 100%;
  }

  .home-search-row,
  .category-tabs,
  .catalog-grid,
  .home-section,
  .workflow-grid,
  .stats-strip,
  .report-showcase,
  .report-card {
    grid-template-columns: 1fr;
  }

  .preview-topbar {
    grid-template-columns: auto 1fr;
  }

  .preview-topbar em {
    grid-column: 1 / -1;
    width: fit-content;
  }
}

/* Phoenix-inspired vertical app shell */
body.site-body {
  background:
    linear-gradient(rgba(148,163,184,0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.10) 1px, transparent 1px),
    #f5f7fb;
  background-size: 32px 32px, 32px 32px, auto;
}

.site-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 282px minmax(0, 1fr);
}

.site-sidebar {
  position: sticky;
  top: 0;
  z-index: 80;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  border-right: 1px solid #dbe7f2;
  background: rgba(255,255,255,0.94);
  padding: 16px;
  box-shadow: 10px 0 30px rgba(15,23,42,0.04);
  backdrop-filter: blur(18px);
}

.site-sidebar .site-brand {
  min-height: 46px;
  color: #0f172a;
  font-size: 18px;
}

.site-sidebar .site-brand-mark {
  border-color: rgba(0,149,235,0.28);
  background: #eaf7ff;
  color: var(--site-primary);
}

.sidebar-search,
.topbar-search {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe7f2;
  border-radius: 8px;
  background: #fff;
  color: #64748b;
  padding: 8px 10px;
}

.sidebar-search input,
.topbar-search input {
  min-width: 0;
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #0f172a;
  font: inherit;
}

.sidebar-search:focus-within,
.topbar-search:focus-within {
  border-color: rgba(0,149,235,0.54);
  box-shadow: 0 0 0 4px rgba(0,149,235,0.10);
}

.sidebar-section {
  display: grid;
  gap: 5px;
}

.sidebar-label {
  margin: 0 8px 4px;
  color: #8a98aa;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sidebar-link {
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 8px;
  color: #334155;
  padding: 9px 10px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 850;
}

.sidebar-link svg {
  color: #6b7b8f;
}

.sidebar-link:hover {
  background: #eef8ff;
  color: #075985;
}

.sidebar-link:hover svg {
  color: var(--site-primary);
}

.sidebar-dropdown {
  display: grid;
  gap: 4px;
}

.sidebar-summary {
  width: 100%;
  list-style: none;
  cursor: pointer;
  justify-content: space-between;
}

.sidebar-summary::-webkit-details-marker {
  display: none;
}

.sidebar-summary-main {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.sidebar-summary-arrow {
  width: 16px;
  height: 16px;
  color: #6b7b8f;
  transition: transform 160ms ease;
}

.sidebar-dropdown[open] .sidebar-summary-arrow {
  transform: rotate(180deg);
}

.sidebar-submenu {
  margin: 0 0 2px 32px;
  display: grid;
  gap: 4px;
}

.sidebar-submenu a {
  min-height: 30px;
  display: flex;
  align-items: center;
  border-radius: 8px;
  color: #4b5d75;
  padding: 5px 9px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.sidebar-submenu a:hover {
  background: #eef8ff;
  color: #075985;
}

.sidebar-submenu-viewall {
  color: var(--site-primary) !important;
  font-weight: 800 !important;
}

.sidebar-panel {
  margin-top: auto;
  border: 1px solid rgba(0,149,235,0.20);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0,149,235,0.12), rgba(255,255,255,0.98)),
    #fff;
  padding: 14px;
}

.sidebar-panel span {
  color: var(--site-primary);
  font-size: 12px;
  font-weight: 900;
}

.sidebar-panel strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 18px;
}

.sidebar-panel p {
  margin: 6px 0 0;
  color: var(--site-muted);
  font-size: 13px;
  line-height: 1.45;
}

.site-content-shell {
  min-width: 0;
}

.site-header {
  min-height: 68px;
  display: grid;
  grid-template-columns: minmax(220px, auto) minmax(260px, 520px) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #dbe7f2;
  background: rgba(255,255,255,0.90);
  color: #0f172a;
  padding: 10px 22px;
  box-shadow: none;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.sidebar-mobile-toggle {
  width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd8e6;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
}

.sidebar-brand-toggle {
  border-color: #dbe7f2;
  border-radius: 10px;
  background: #fff;
  color: #334155;
  outline: none;
  box-shadow: none;
}

.sidebar-brand-toggle:hover {
  border-color: rgba(0,149,235,0.36);
  background: #eef8ff;
  color: #075985;
}

.sidebar-brand-toggle:focus-visible {
  border-color: rgba(0,149,235,0.5);
  box-shadow: 0 0 0 3px rgba(0,149,235,0.2);
}

.topbar-title {
  display: grid;
  min-width: 0;
}

.topbar-title strong {
  overflow: hidden;
  color: #0f172a;
  font-size: 18px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-title span {
  color: var(--site-muted);
  font-size: 12px;
  font-weight: 800;
}

.site-header .site-nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.site-header .site-nav a,
.site-header .nav-dropdown button,
.site-header .nav-dropdown summary {
  border-color: #dbe7f2;
  background: #fff;
  color: #334155;
}

.site-header .site-nav .sidebar-mobile-toggle {
  display: none !important;
}

.site-header .site-nav a:hover,
.site-header .nav-dropdown button:hover,
.site-header .nav-dropdown summary:hover,
.site-header .nav-dropdown:focus-within button,
.site-header .nav-dropdown:focus-within summary,
.site-header .nav-dropdown[open] summary {
  border-color: rgba(0,149,235,0.36);
  background: #eef8ff;
  color: #075985;
}

.site-header .nav-cta {
  border-color: var(--site-primary) !important;
  background: var(--site-primary) !important;
  color: #fff !important;
}

.site-header .nav-menu {
  right: 0;
  left: auto;
}

.site-main {
  width: min(1220px, calc(100% - 40px));
  margin: 22px auto 34px;
}

.home-hero {
  min-height: auto;
  align-items: stretch;
  gap: 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0;
  box-shadow: none;
}

.home-hero-copy {
  border: 1px solid rgba(0,149,235,0.20);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0,149,235,0.96), rgba(2,119,189,0.96)),
    var(--site-primary);
  padding: 28px;
  box-shadow: 0 18px 42px rgba(2,68,111,0.18);
}

.home-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 4.2vw, 56px);
}

.home-hero p {
  font-size: 17px;
}

.product-preview {
  min-height: 100%;
  transform: none;
  box-shadow: 0 18px 42px rgba(15,23,42,0.10);
}

.product-preview:hover {
  transform: translateY(-2px);
}

.stats-strip,
.catalog-section,
.workflow-section,
.home-section,
.report-showcase,
.home-band,
.home-footer {
  margin-top: 18px;
}

.stats-strip div,
.catalog-section,
.workflow-section,
.home-feature,
.report-showcase {
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.site-card {
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.sidebar-backdrop {
  display: none;
}

@media (max-width: 1160px) {
  .site-shell {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .site-sidebar {
    padding: 12px 10px;
  }

  .site-sidebar .site-brand span:last-child,
  .sidebar-search,
  .sidebar-label,
  .sidebar-link span,
  .sidebar-panel {
    display: none;
  }

  .sidebar-link {
    justify-content: center;
    padding: 10px;
  }

  .site-header {
    grid-template-columns: minmax(190px, auto) minmax(220px, 1fr) auto;
  }
}

@media (max-width: 900px) {
  .site-shell {
    grid-template-columns: 1fr;
  }

  .site-sidebar {
    position: fixed;
    left: 0;
    transform: translateX(-104%);
    width: min(310px, calc(100vw - 36px));
    transition: transform 180ms ease;
  }

  .site-shell.sidebar-open .site-sidebar {
    transform: translateX(0);
  }

  .site-shell.sidebar-open .sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: block;
    border: 0;
    background: rgba(15,23,42,0.34);
  }

  .site-sidebar .site-brand span:last-child,
  .sidebar-search,
  .sidebar-label,
  .sidebar-link span,
  .sidebar-panel {
    display: flex;
  }

  .site-sidebar .site-brand span:last-child,
  .sidebar-label,
  .sidebar-panel {
    display: block;
  }

  .sidebar-link {
    justify-content: flex-start;
  }

  .sidebar-mobile-toggle {
    display: inline-flex;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .topbar-search {
    display: none;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 8px 12px;
  }

  .site-header .site-nav {
    width: auto;
  }

  .site-header .site-nav .nav-link {
    display: none;
  }

  .site-main {
    width: min(100% - 16px, 1220px);
  }

  .home-hero-copy {
    padding: 22px;
  }
}

/* Catalogue and provider pages */
.home-dashboard-hero {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
}

.hero-data-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.home-metric-panel {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(0,149,235,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.96);
  padding: 16px;
  box-shadow: 0 14px 34px rgba(15,23,42,0.08);
}

.home-metric-panel.wide {
  grid-column: 1 / -1;
}

.home-metric-panel span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--site-primary);
  font-size: 13px;
  font-weight: 900;
}

.home-metric-panel strong {
  color: #0f172a;
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.08;
}

.home-metric-panel strong.metric-name {
  font-size: clamp(18px, 2.1vw, 30px);
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.home-metric-panel p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.5;
}

.home-metric-panel a,
.inline-action {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--site-primary);
  font-weight: 900;
  text-decoration: none;
}

.provider-showcase,
.page-hero,
.catalog-toolbar,
.empty-state-card {
  margin-top: 18px;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.page-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-hero span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--site-primary);
  font-size: 13px;
  font-weight: 900;
}

.page-hero h1 {
  margin: 8px 0 6px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 48px);
}

.page-hero p {
  max-width: 760px;
  margin: 0;
  color: var(--site-muted);
  line-height: 1.55;
}

.provider-grid,
.entity-grid,
.exam-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.provider-card,
.entity-card,
.exam-card {
  display: grid;
  gap: 14px;
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.provider-card-head,
.entity-card-head,
.exam-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.provider-card-head {
  justify-content: flex-start;
}

.provider-card-head > span,
.entity-card-head > span {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eaf7ff;
  color: var(--site-primary);
}

.provider-card-head strong,
.entity-card-head strong {
  display: block;
  color: #0f172a;
  font-size: 18px;
}

.provider-card-head small,
.entity-card-head small {
  color: var(--site-muted);
  font-weight: 800;
}

.provider-exams,
.entity-list,
.exam-mini-list {
  display: grid;
  gap: 8px;
}

.provider-exams a,
.entity-list a,
.exam-mini-list a {
  min-height: 42px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid #e3edf7;
  border-radius: 8px;
  background: #f8fbff;
  color: #334155;
  padding: 8px 10px;
  text-decoration: none;
}

.provider-exams a:hover,
.entity-list a:hover,
.exam-mini-list a:hover,
.exam-card:hover,
.entity-card:hover,
.provider-card:hover {
  border-color: rgba(0,149,235,0.38);
  box-shadow: 0 16px 34px rgba(15,23,42,0.09);
}

.provider-exams span,
.entity-list span,
.exam-mini-list span,
.exam-card-top b {
  border-radius: 999px;
  background: rgba(0,149,235,0.12);
  color: var(--site-primary);
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 900;
}

.provider-exams strong,
.entity-list strong,
.exam-mini-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-exams b,
.entity-list em,
.exam-mini-list em {
  color: var(--site-muted);
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
}

.exam-mini-list {
  margin-top: 14px;
}

.exam-mini-list a {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.mini-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-stat-grid div {
  border: 1px solid var(--site-border);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
}

.mini-stat-grid strong {
  display: block;
  color: var(--site-primary);
  font-size: 32px;
  line-height: 1;
}

.mini-stat-grid span {
  display: block;
  margin-top: 5px;
  color: #334155;
  font-weight: 900;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 260px) auto auto;
  align-items: center;
  gap: 10px;
}

.provider-toolbar {
  grid-template-columns: 1fr;
}

.catalog-toolbar label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dbe7f2;
  border-radius: 8px;
  background: #fff;
  color: var(--site-primary);
  padding: 0 10px;
}

.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid #dbe7f2;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  padding: 0 10px;
  font: inherit;
}

.catalog-toolbar label input {
  min-height: 38px;
  border: 0;
  outline: 0;
  padding: 0;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.badge-row span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #f1f7fd;
  color: #334155;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 900;
}

.entity-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.entity-actions .site-button {
  min-width: 0;
  flex: 1;
}

.exam-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 18px;
  line-height: 1.35;
}

.exam-card-top span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--site-muted);
  font-size: 13px;
  font-weight: 900;
}

.empty-state-card {
  display: grid;
  place-items: center;
  min-height: 280px;
  text-align: center;
}

.empty-state-card svg {
  width: 42px;
  height: 42px;
  color: var(--site-primary);
}

.empty-state-card h2 {
  margin: 10px 0 4px;
}

.empty-state-card p {
  margin: 0;
  color: var(--site-muted);
}

@media (max-width: 1080px) {
  .home-dashboard-hero,
  .provider-grid,
  .entity-grid,
  .exam-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-toolbar {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .home-dashboard-hero,
  .hero-data-grid,
  .provider-grid,
  .entity-grid,
  .exam-cards,
  .mini-stat-grid,
  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .page-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .entity-actions .site-button {
    flex-basis: 100%;
  }
}

/* Edulab-style skin */
:root {
  --edu-primary: #1363df;
  --edu-primary-dark: #0f4fb3;
  --edu-accent: #ffb000;
  --edu-bg: #f4f8ff;
  --edu-card: #ffffff;
  --edu-ink: #1f2a44;
  --edu-muted: #6d7993;
  --edu-radius: 18px;
  --edu-shadow: 0 18px 46px rgba(19,99,223,0.12);
}

body.site-body {
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(circle at 8% 9%, rgba(19,99,223,0.12), transparent 24%),
    radial-gradient(circle at 92% 12%, rgba(255,176,0,0.14), transparent 20%),
    linear-gradient(180deg, #f7fbff 0%, #edf4ff 100%);
  color: var(--edu-ink);
}

.site-sidebar,
.site-header,
.site-card,
.provider-showcase,
.page-hero,
.catalog-toolbar,
.catalog-section,
.workflow-section,
.home-section,
.report-showcase,
.home-band,
.entity-card,
.provider-card,
.exam-card,
.mini-stat-grid div,
.stats-strip div {
  border-radius: var(--edu-radius);
}

.site-sidebar {
  border-right: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,251,255,0.98));
  box-shadow: var(--edu-shadow);
}

.site-brand {
  color: var(--edu-ink) !important;
  font-weight: 800;
}

.site-brand-mark {
  border-color: rgba(19,99,223,0.22) !important;
  background: linear-gradient(135deg, #eaf2ff, #dce9ff) !important;
  color: var(--edu-primary) !important;
}

.sidebar-link {
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 700;
}

.sidebar-link:hover {
  border-color: rgba(19,99,223,0.16);
  background: linear-gradient(90deg, #edf4ff, #f8fbff);
}

.sidebar-panel {
  border: 1px solid rgba(19,99,223,0.18);
  background: linear-gradient(150deg, rgba(19,99,223,0.14), rgba(255,176,0,0.10));
}

.sidebar-panel strong {
  color: #0e3474;
}

.site-header {
  border-bottom: 0;
  background: rgba(255,255,255,0.86);
  box-shadow: 0 10px 30px rgba(16,56,118,0.08);
}

.topbar-title strong {
  color: #16335b;
  font-weight: 700;
}

.site-nav a,
.nav-dropdown button,
.nav-dropdown summary {
  border-radius: 12px !important;
  font-weight: 700 !important;
}

.site-button {
  border-radius: 12px;
  font-weight: 700;
}

.site-button,
.site-header .nav-cta {
  border-color: var(--edu-primary) !important;
  background: var(--edu-primary) !important;
}

.site-button:hover,
.site-header .nav-cta:hover {
  border-color: var(--edu-primary-dark) !important;
  background: var(--edu-primary-dark) !important;
}

.site-button.secondary {
  border-color: rgba(19,99,223,0.18) !important;
  background: #ffffff !important;
  color: var(--edu-primary) !important;
}

.home-dashboard-hero {
  gap: 16px;
}

.home-hero-copy {
  border: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 14%, rgba(255,255,255,0.20), transparent 33%),
    linear-gradient(135deg, #165ecf 0%, #1a78f2 100%);
  box-shadow: 0 28px 54px rgba(19,99,223,0.24);
}

.home-hero-copy h1 {
  letter-spacing: 0;
  font-weight: 800;
}

.home-kicker {
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.10);
  font-weight: 700;
}

.hero-proof-row span {
  border-color: rgba(255,255,255,0.20);
  background: rgba(255,255,255,0.12);
}

.home-search-card {
  border-radius: 16px;
  background: rgba(255,255,255,0.16);
}

.search-input-shell {
  border-radius: 12px;
}

.popular-exams a {
  border-radius: 12px;
}

.hero-data-grid {
  gap: 14px;
}

.home-metric-panel {
  border: 1px solid rgba(19,99,223,0.14);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(19,99,223,0.10);
}

.home-metric-panel span {
  color: var(--edu-primary);
}

.home-metric-panel strong {
  color: #153b73;
}

.stats-strip div,
.mini-stat-grid div {
  border: 1px solid rgba(19,99,223,0.12);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(19,99,223,0.08);
}

.stats-strip strong,
.mini-stat-grid strong {
  color: var(--edu-primary);
}

.provider-card,
.entity-card,
.exam-card,
.catalog-section,
.workflow-section,
.home-feature,
.report-showcase,
.provider-showcase,
.page-hero,
.catalog-toolbar,
.home-band {
  border: 1px solid rgba(19,99,223,0.12);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(19,99,223,0.08);
}

.provider-card-head > span,
.entity-card-head > span {
  border-radius: 12px;
  background: linear-gradient(135deg, #eaf2ff, #d8e7ff);
}

.provider-exams a,
.entity-list a,
.exam-mini-list a {
  border-radius: 12px;
  border-color: rgba(19,99,223,0.12);
  background: #f8fbff;
}

.provider-exams a:hover,
.entity-list a:hover,
.exam-mini-list a:hover,
.exam-card:hover,
.provider-card:hover,
.entity-card:hover {
  border-color: rgba(19,99,223,0.32);
  box-shadow: 0 18px 36px rgba(19,99,223,0.12);
}

.provider-exams span,
.entity-list span,
.exam-mini-list span,
.exam-card-top b,
.badge-row span {
  background: rgba(19,99,223,0.12);
  color: var(--edu-primary);
}

.page-hero span,
.section-heading span {
  color: var(--edu-primary);
}

.page-hero h1,
.section-heading h2,
.home-feature h2,
.exam-card h2 {
  color: #16335b;
}

.workflow-grid b,
.home-feature span {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--edu-primary), #3d8dff);
  color: #fff;
}

.home-band {
  border-radius: 22px;
  background: linear-gradient(130deg, #1758bf 0%, #1b7df5 70%);
}

.home-band p {
  color: rgba(255,255,255,0.84);
}

.home-footer {
  border-radius: 14px;
  background: rgba(255,255,255,0.7);
  padding: 12px 14px;
}

@media (max-width: 900px) {
  .site-sidebar {
    border-radius: 0 18px 18px 0;
  }

  .home-hero-copy {
    border-radius: 18px;
  }
}

.exam-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.reveal-up {
  opacity: 0;
  transform: translateY(14px);
}

.reveal-up.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 420ms ease,
    transform 420ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-up.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 720px) {
  .exam-detail-grid {
    grid-template-columns: 1fr;
  }
}

.viewer-integrated-page {
  display: grid;
  gap: 14px;
}

.viewer-integrated-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(19,99,223,0.12);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(19,99,223,0.08);
  padding: 16px 18px;
}

.viewer-integrated-head span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--site-primary);
  font-size: 13px;
  font-weight: 900;
}

.viewer-integrated-head h1 {
  margin: 6px 0 4px;
  color: #16335b;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
}

.viewer-integrated-head p {
  margin: 0;
  color: var(--site-muted);
  line-height: 1.5;
}

.integrated-viewer-frame {
  width: 100%;
  min-height: calc(100vh - 226px);
  border: 1px solid rgba(19,99,223,0.14);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(19,99,223,0.10);
}

/* Keep viewer integrated in website shell while using full vertical workspace */
body.site-page-viewer-php .site-content-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.site-page-viewer-php .site-header {
  display: none;
}

body.site-page-viewer-php .site-main {
  width: min(1280px, calc(100% - 36px));
  max-width: none;
  margin: 10px auto 6px;
  flex: 1;
  min-height: 0;
  display: flex;
}

body.site-page-viewer-php .viewer-integrated-page {
  display: flex;
  flex: 1;
  min-height: 0;
  padding-bottom: 0;
}

body.site-page-viewer-php .integrated-viewer-frame {
  height: 100%;
  min-height: 0;
}

/* Site-wide dark mode */
:root.theme-dark body.site-body {
  background:
    radial-gradient(1200px 520px at 12% -5%, rgba(0,149,235,0.12), transparent 62%),
    radial-gradient(900px 420px at 88% -8%, rgba(56,189,248,0.08), transparent 60%),
    #111a2b;
  color: #d6deea;
}

:root.theme-dark .site-sidebar {
  border-right-color: rgba(147,197,253,0.18);
  background: rgba(20, 33, 54, 0.72);
  backdrop-filter: blur(10px);
}

:root.theme-dark .site-brand,
:root.theme-dark .sidebar-label,
:root.theme-dark .sidebar-link,
:root.theme-dark .topbar-title strong,
:root.theme-dark .site-nav a,
:root.theme-dark .site-nav button,
:root.theme-dark .site-nav summary {
  color: #d6deea;
}

:root.theme-dark .sidebar-link:hover,
:root.theme-dark .sidebar-link.is-active {
  background: rgba(96,165,250,0.16);
}

:root.theme-dark .sidebar-summary-arrow {
  color: #9eb2cd;
}

:root.theme-dark .sidebar-submenu a {
  color: #b5c6dd;
}

:root.theme-dark .sidebar-submenu a:hover {
  background: rgba(96,165,250,0.16);
  color: #e5eefb;
}

:root.theme-dark .sidebar-search,
:root.theme-dark .topbar-search,
:root.theme-dark .site-header .site-nav a,
:root.theme-dark .site-header .nav-dropdown button,
:root.theme-dark .site-header .nav-dropdown summary,
:root.theme-dark .site-card,
:root.theme-dark .viewer-integrated-head,
:root.theme-dark .integrated-viewer-frame,
:root.theme-dark .sidebar-panel {
  border-color: rgba(147,197,253,0.22) !important;
  background: rgba(21, 34, 56, 0.72) !important;
  color: #d6deea;
  box-shadow: 0 16px 36px rgba(5, 12, 24, 0.22);
  backdrop-filter: blur(10px);
}

:root.theme-dark .site-content-shell,
:root.theme-dark .site-main {
  background: transparent;
}

:root.theme-dark .site-header {
  border-bottom-color: rgba(147,197,253,0.2);
  background: rgba(17, 28, 47, 0.78);
  backdrop-filter: blur(10px);
}

:root.theme-dark .topbar-title span,
:root.theme-dark .sidebar-panel p,
:root.theme-dark .site-muted,
:root.theme-dark .site-text-muted {
  color: #9bb0cd !important;
}

:root.theme-dark .site-theme-toggle {
  border-color: rgba(147,197,253,0.3) !important;
  background: rgba(24, 39, 63, 0.8) !important;
  color: #d6deea !important;
}

:root.theme-dark .sidebar-brand-toggle {
  border-color: rgba(147,197,253,0.28) !important;
  background: rgba(24, 39, 63, 0.75) !important;
  color: #d6deea !important;
}

:root.theme-dark .site-header .site-nav a:hover,
:root.theme-dark .site-header .nav-dropdown button:hover,
:root.theme-dark .site-header .nav-dropdown summary:hover,
:root.theme-dark .site-header .nav-dropdown:focus-within button,
:root.theme-dark .site-header .nav-dropdown:focus-within summary,
:root.theme-dark .site-header .nav-dropdown[open] summary {
  border-color: rgba(0,149,235,0.56);
  background: rgba(17, 40, 72, 0.74);
  color: #d6deea;
}

:root.theme-dark .workflow-section,
:root.theme-dark .home-feature,
:root.theme-dark .workflow-grid div {
  border-color: rgba(147,197,253,0.22) !important;
  background: rgba(21, 34, 56, 0.72) !important;
  backdrop-filter: blur(10px);
}

:root.theme-dark .workflow-grid h3,
:root.theme-dark .home-feature h2,
:root.theme-dark .section-heading h2 {
  color: #e5eefb !important;
}

:root.theme-dark .workflow-grid p,
:root.theme-dark .home-feature p {
  color: #b7c7df !important;
}

@media (max-width: 820px) {
  .viewer-integrated-head {
    align-items: stretch;
    flex-direction: column;
  }

  .integrated-viewer-frame {
    min-height: 78vh;
  }
}

/* Phase-1 polish tokens and responsive rhythm */
:root {
  --ui-space-1: 8px;
  --ui-space-2: 12px;
  --ui-space-3: 16px;
  --ui-space-4: 20px;
  --ui-space-5: 28px;
  --ui-radius-compact: 8px;
  --ui-radius-content: 12px;
  --ui-radius-hero: 18px;
}

.home-dashboard-hero {
  gap: var(--ui-space-4);
}

.home-hero-copy h1 {
  font-size: clamp(40px, 4.3vw, 60px);
  line-height: 1.02;
}

.site-card {
  border-radius: var(--ui-radius-content);
  padding: var(--ui-space-3);
}

.home-hero,
.home-band {
  border-radius: var(--ui-radius-hero);
}

.category-tabs button {
  position: relative;
  overflow: hidden;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.category-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 0 999px 999px 0;
  background: transparent;
  transition: background 180ms ease;
}

.category-tabs button.is-active::after {
  background: var(--site-primary);
}

.exam-mini-list {
  transition: opacity 180ms ease, transform 180ms ease;
}

.exam-mini-list.is-refreshing {
  animation: listRefreshIn 220ms ease;
}

@keyframes listRefreshIn {
  from { opacity: 0.35; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.exam-mini-list em.exam-meta-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.exam-mini-list em.exam-meta-chips b {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 8px;
  border: 1px solid rgba(0,149,235,0.2);
  border-radius: 999px;
  background: #f3f9ff;
  color: #3e5878;
  font-size: 12px;
  font-weight: 800;
}

.site-header .site-nav {
  gap: 10px;
}

.site-header .nav-icon-link {
  width: 42px;
  min-width: 42px;
  justify-content: center;
  padding: 0;
}

.sidebar-link {
  position: relative;
}

.sidebar-link.is-active {
  background: #e8f4ff;
  color: #0b5fa7;
}

.sidebar-link.is-active svg {
  color: #0b79d0;
}

.sidebar-link.is-active::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 6px;
  bottom: 6px;
  width: 3px;
  border-radius: 999px;
  background: var(--site-primary);
}

.table-scroll-wrap {
  max-height: min(62vh, 700px);
  overflow: auto;
  border: 1px solid rgba(19,99,223,0.12);
  border-radius: 10px;
}

.site-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f7fbff;
}

.report-filters {
  display: flex;
  gap: 8px;
  margin: 10px 0 12px;
}

.report-filters button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(0,149,235,0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #3d4d64;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.report-filters button.is-active {
  background: #e8f5ff;
  border-color: rgba(0,149,235,0.42);
  color: #0866b1;
}

.score-pill.score-band-high {
  background: rgba(22,163,74,0.14);
  color: #166534;
}

.score-pill.score-band-mid {
  background: rgba(234,179,8,0.2);
  color: #854d0e;
}

.score-pill.score-band-low {
  background: rgba(220,38,38,0.14);
  color: #991b1b;
}

@media (max-width: 980px) {
  .home-dashboard-hero,
  .hero-data-grid,
  .provider-grid,
  .workflow-grid {
    gap: 12px;
  }
}

@media (max-width: 760px) {
  .site-main {
    gap: 12px;
  }

  .home-dashboard-hero,
  .provider-showcase,
  .catalog-section,
  .workflow-section,
  .home-section,
  .home-band,
  .site-card {
    padding: 14px;
  }
}

/* User-controlled site navigation collapse */
@media (min-width: 901px) {
  .sidebar-mobile-toggle {
    display: inline-flex;
  }

  .site-shell {
    transition: grid-template-columns 180ms ease;
  }

  .site-shell.sidebar-collapsed {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .site-shell.sidebar-collapsed .site-sidebar {
    padding: 12px 10px;
  }

  .site-shell.sidebar-collapsed .site-sidebar .site-brand {
    justify-content: center;
  }

  .site-shell.sidebar-collapsed .site-brand-row {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
  }

  .site-shell.sidebar-collapsed .site-brand-row .site-brand {
    display: inline-flex;
    justify-content: center;
    min-height: 42px;
  }

  .site-shell.sidebar-collapsed .site-sidebar .site-brand span:last-child,
  .site-shell.sidebar-collapsed .sidebar-search,
  .site-shell.sidebar-collapsed .sidebar-label,
  .site-shell.sidebar-collapsed .sidebar-link span,
  .site-shell.sidebar-collapsed .sidebar-dropdown,
  .site-shell.sidebar-collapsed .sidebar-panel {
    display: none;
  }

  .site-shell.sidebar-collapsed .site-sidebar .site-brand-mark {
    width: 42px;
    height: 42px;
    border-color: rgba(0,149,235,0.36) !important;
    background: #eaf7ff !important;
    box-shadow: 0 8px 18px rgba(0,149,235,0.14);
  }

  .site-shell.sidebar-collapsed .site-sidebar .site-brand-logo {
    width: 34px;
    height: 34px;
  }

  .site-shell.sidebar-collapsed .sidebar-link {
    justify-content: center;
    padding: 10px;
  }

  .site-shell.sidebar-collapsed .sidebar-link.is-active::before {
    left: -5px;
  }

  .site-shell.sidebar-collapsed .site-main {
    width: min(1320px, calc(100% - 40px));
  }
}

@media (max-width: 900px) {
  .site-shell.sidebar-collapsed {
    grid-template-columns: 1fr;
  }

  .site-shell.sidebar-collapsed .site-sidebar .site-brand span:last-child,
  .site-shell.sidebar-collapsed .sidebar-search,
  .site-shell.sidebar-collapsed .sidebar-label,
  .site-shell.sidebar-collapsed .sidebar-link span,
  .site-shell.sidebar-collapsed .sidebar-dropdown,
  .site-shell.sidebar-collapsed .sidebar-panel {
    display: revert;
  }

  .site-shell.sidebar-collapsed .sidebar-search {
    display: flex;
  }

  .site-shell.sidebar-collapsed .sidebar-link {
    justify-content: flex-start;
  }
}

/* Hero fit experiment: keep the full CertVizo blue panel visible on laptop-height screens. */
@media (min-width: 981px) and (min-height: 720px) {
  body.site-page-index-php .site-main {
    margin-top: 14px;
  }

  body.site-page-index-php .home-dashboard-hero {
    min-height: calc(100vh - 132px);
    grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.82fr);
    align-items: stretch;
  }

  body.site-page-index-php .home-hero-copy {
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding: clamp(18px, 2vw, 26px);
  }

  body.site-page-index-php .home-hero-copy h1 {
    max-width: 760px;
    margin-bottom: 14px;
    font-size: clamp(34px, 4vw, 54px);
    line-height: 1.01;
  }

  body.site-page-index-php .home-hero-copy p {
    margin-bottom: 14px;
    font-size: clamp(15px, 1.3vw, 17px);
    line-height: 1.45;
  }

  body.site-page-index-php .hero-proof-row {
    gap: 8px;
    margin-bottom: 14px;
  }

  body.site-page-index-php .hero-proof-row span {
    min-height: 34px;
    padding: 6px 11px;
  }

  body.site-page-index-php .home-actions {
    margin-bottom: 14px;
  }

  body.site-page-index-php .home-search-card {
    margin-top: auto;
    padding: 14px;
  }

  body.site-page-index-php .popular-exams {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  body.site-page-index-php .popular-exams a {
    min-height: 50px;
    padding: 9px 10px;
  }

  body.site-page-index-php .hero-data-grid {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }

  body.site-page-index-php .home-metric-panel {
    min-height: 0;
    padding: 18px;
  }
}

@media (min-width: 981px) and (max-height: 819px) {
  body.site-page-index-php .home-dashboard-hero {
    min-height: calc(100vh - 118px);
  }

  body.site-page-index-php .home-hero-copy h1 {
    font-size: clamp(31px, 3.55vw, 46px);
  }

  body.site-page-index-php .home-kicker {
    margin-bottom: 12px;
  }

  body.site-page-index-php .home-actions .site-button {
    min-height: 42px;
  }

  body.site-page-index-php .home-search-row input {
    min-height: 42px;
  }

  body.site-page-index-php .hero-data-grid {
    gap: 12px;
  }

  body.site-page-index-php .home-metric-panel strong {
    font-size: clamp(24px, 2.75vw, 38px);
  }
}

body.site-page-index-php .home-metric-panel strong.metric-name {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(22px, 2vw, 32px);
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: normal;
}

@media (min-width: 981px) and (max-height: 819px) {
  body.site-page-index-php .home-metric-panel strong.metric-name {
    font-size: clamp(21px, 1.7vw, 30px);
  }
}
