:root {
  color-scheme: light;
  --bg: #f4f7f6;
  --ink: #17211f;
  --muted: #60716d;
  --surface: #ffffff;
  --surface-2: #eef3f1;
  --surface-3: #dcebe6;
  --line: #d5dfdc;
  --dark: #10231f;
  --dark-2: #19342f;
  --accent: #0d7c66;
  --accent-2: #1f5c9a;
  --warn: #b96b16;
  --danger: #ba3f45;
  --strong: #1b7a45;
  --shadow: 0 14px 40px rgba(24, 44, 39, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 500;
}

button,
select,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled,
input:disabled,
select:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.hidden {
  display: none !important;
}

.hidden-page {
  display: none !important;
}

.landing-view {
  display: none;
  min-height: 100vh;
}

.landing-view.active-view {
  display: block;
}

.landing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 28px;
  background: var(--dark);
  color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 20;
}

.landing-main {
  padding: 0;
}

.landing-nav,
.carousel-controls,
.button-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.landing-nav {
  margin-left: auto;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-link {
  min-height: 34px;
  background: transparent;
  color: inherit;
  padding: 0 6px;
  font-weight: 800;
}

.landing-nav .nav-link {
  color: #d7e6e2;
  padding: 0 10px;
}

.hamburger-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  place-items: center;
  gap: 4px;
  padding: 9px;
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
}

.nav-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-menu-trigger::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform 0.2s ease;
}

.nav-menu-wrap.open .nav-menu-trigger::after {
  transform: rotate(180deg);
}

.nav-submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  z-index: 40;
  display: none;
  min-width: 230px;
  padding: 8px;
  border: 1px solid rgba(8, 36, 29, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(8, 36, 29, 0.18);
}

.nav-menu-wrap:hover .nav-submenu,
.nav-menu-wrap:focus-within .nav-submenu {
  display: grid;
  gap: 4px;
}

.nav-submenu-item {
  width: 100%;
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 800;
}

.nav-submenu-item:hover,
.nav-submenu-item:focus-visible,
.nav-submenu-item.active,
.nav-submenu-item[aria-current="page"] {
  background: #eef8f5;
  color: #0d7c66;
}
.nav-link:hover,
.nav-link:focus-visible {
  color: #aee7d8;
}

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

.brand h1,
.brand p,
.topbar h2,
.topbar p,
.exam-header h2,
.exam-header p,
.panel h3,
.hero-band h2,
.hero-band p,
.tool-info h3,
.tool-info p,
.section-head h2,
.section-head p {
  margin: 0;
}

.brand h1 {
  font-size: 1.08rem;
}

.brand p {
  color: #bdd2cd;
  font-size: 0.88rem;
  line-height: 1.4;
}

.brand-dark .mark,
.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #d8eee8;
  color: var(--dark);
  font-weight: 800;
}

.brand-logo-mark {
  display: block;
  object-fit: contain;
  padding: 3px;
  background: #effaf7;
}


.hero-band {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 28px;
  align-items: end;
  padding: 74px 42px 46px;
  background:
    linear-gradient(120deg, rgba(7, 20, 32, 0.93), rgba(10, 93, 91, 0.74), rgba(31, 92, 154, 0.54)),
    url("https://images.unsplash.com/photo-1518770660439-4636190af475?auto=format&fit=crop&w=1800&q=82");
  background-size: cover;
  background-position: center;
  color: #ffffff;
  border-radius: 0;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  font-weight: 900;
  color: #168f78;
  margin-bottom: 10px !important;
}

.hero-band h2 {
  max-width: 860px;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 1.04;
}

.hero-copy {
  max-width: 820px;
  color: #e3f2ee;
  line-height: 1.55;
  margin-top: 16px !important;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-panel {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(7, 20, 32, 0.58);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 18px;
}

.hero-command-panel {
  align-self: center;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.32);
}

.terminal-lines {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(174, 231, 216, 0.26);
  border-radius: 8px;
  background: rgba(5, 15, 24, 0.62);
}

.terminal-lines span {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: #dff7f1;
  font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  font-size: 0.9rem;
}

.terminal-lines b {
  color: #8ee7d3;
}

.hero-panel strong {
  font-size: 1.1rem;
}

.hero-panel span {
  color: #e7f7f3;
}

.platform-overview,
.funnel-section,
.pricing-preview-section,
.team-section {
  padding-block: 28px 48px;
}

.team-workspace-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr);
  gap: 18px;
  align-items: start;
}

.team-workspace-picker,
.team-workspace-detail,
.team-panel-block,
.team-action-form,
.team-create-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow-soft);
}

.team-workspace-picker,
.team-workspace-detail {
  padding: 18px;
}

.team-create-form,
.team-action-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: #f8fbfa;
}

.team-create-form.locked {
  border-style: dashed;
  background: #f2f7f5;
}

.team-create-form label,
.team-action-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
  color: var(--ink);
}

.team-create-form input,
.team-create-form textarea,
.team-action-form input,
.team-action-form textarea,
.team-action-form select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px 12px;
  color: var(--ink);
}

.team-create-form textarea,
.team-action-form textarea {
  min-height: 86px;
  resize: vertical;
}

.team-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.team-list-card {
  width: 100%;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.team-list-card.active,
.team-list-card:hover {
  border-color: var(--green);
  background: #ecf8f4;
}

.team-list-card span,
.team-list-card small {
  color: var(--muted);
}

.team-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.team-detail-head h3,
.team-detail-head p {
  margin: 6px 0 0;
}

.team-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.team-metric {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #09261f, #173d36);
  color: #ffffff;
}

.team-metric strong {
  font-size: 1.45rem;
}

.team-metric span,
.team-metric small {
  color: #d8eee8;
}

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

.team-member-row .team-invite-status {
    margin-top: 5px;
    font-weight: 800;
    color: #556864;
}

.team-member-row .team-invite-status.status-sent {
    color: #0d715e;
}

.team-member-row .team-invite-status.status-failed {
    color: #a52f2f;
}

.team-member-row .team-invite-status.status-not_configured {
    color: #8a620b;
}
.team-manager-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.team-panel-block {
  padding: 16px;
  box-shadow: none;
}

.team-panel-block h4,
.team-action-form h4 {
  margin: 0 0 12px;
}

.team-member-list,
.team-assignment-list {
  display: grid;
  gap: 10px;
}

.team-member-row,
.team-assignment-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.team-member-row div,
.team-assignment-row {
  min-width: 0;
}

.team-member-row span,
.team-member-row small,
.team-assignment-row span {
  display: block;
  color: var(--muted);
}

.team-manager-grid {
  margin-top: 16px;
}

.team-export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.team-report-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.team-report-card {
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(13, 124, 102, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
  box-shadow: var(--shadow-soft);
}

.team-report-card:nth-child(3) {
  grid-column: 1 / -1;
}

.team-report-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.team-report-head h4,
.team-report-head span,
.team-risk-row p,
.team-report-card p {
  margin: 0;
}

.team-report-head span {
  color: var(--muted);
  font-weight: 800;
}

.readiness-bars,
.team-assignment-progress-list,
.team-risk-list {
  display: grid;
  gap: 10px;
}

.readiness-bar-row,
.assignment-progress-row,
.team-risk-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.85fr) minmax(120px, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.team-risk-row {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.readiness-bar-row span,
.assignment-progress-row span,
.team-risk-row span,
.team-risk-row small,
.team-assignment-row small {
  display: block;
  color: var(--muted);
}

.readiness-track,
.assignment-progress-meter {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8f0ee;
}

.readiness-track span,
.assignment-progress-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0d7c66;
}

.readiness-bar-row.watch .readiness-track span {
  background: #c58a19;
}

.readiness-bar-row.risk .readiness-track span,
.assignment-progress-row.overdue .assignment-progress-meter span {
  background: #b63d3d;
}

.readiness-bar-row.empty .readiness-track span {
  background: #70827e;
}

.team-member-row.risk-at-risk {
  border-left: 4px solid #b63d3d;
}

.team-member-row.risk-watch {
  border-left: 4px solid #c58a19;
}

.team-member-row.risk-ready {
  border-left: 4px solid #0d7c66;
}

.team-member-row.risk-no-attempts {
  border-left: 4px solid #70827e;
}

.team-account-shell {
  display: grid;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  width: min(1500px, calc(100% - 32px));
  margin: 0 auto;
}

.team-account-main {
  min-width: 0;
}

.team-account-sidebar {
  position: sticky;
  top: 108px;
  z-index: 8;
  padding: 16px;
}

.team-sidebar-identity {
  display: grid;
  gap: 5px;
  padding: 2px 4px 14px;
  border-bottom: 1px solid var(--line);
}

.team-sidebar-identity strong {
  font-size: 1.05rem;
}

.team-sidebar-identity small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.team-account-sidebar nav {
  display: grid;
  gap: 5px;
  margin-top: 12px;
}

.team-account-sidebar nav button {
  width: 100%;
  padding: 10px 11px;
  border: 0;
  border-left: 3px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}

.team-account-sidebar nav button:hover,
.team-account-sidebar nav button.active {
  border-left-color: var(--accent);
  background: #e8f5f1;
  color: #075a4a;
}

.team-learner-dashboard {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(13, 124, 102, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, #f4fbf9, #ffffff);
}

.team-learner-dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.team-learner-dashboard-head h4,
.team-learner-dashboard-head p {
  margin: 0;
}

.team-learner-dashboard-head label {
  min-width: min(360px, 100%);
  font-weight: 800;
}

.team-learner-dashboard-head select {
  width: 100%;
  margin-top: 5px;
}

.team-learner-metrics,
.team-learner-details {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.team-learner-stat,
.team-learner-detail {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
}

.team-learner-stat strong {
  font-size: 1.25rem;
}

.team-learner-stat span,
.team-learner-detail span {
  color: var(--muted);
}

.team-learner-attempts {
  display: grid;
  gap: 8px;
}

.team-learner-attempt {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, auto);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.team-member-main {
  flex: 1;
}

.team-member-summary {
  min-width: 170px;
  text-align: right;
}

.team-member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
  align-items: center;
}

.team-member-actions button {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.team-member-actions button[data-team-member-action="remove"] {
  border-color: #dca5a5;
  color: #9b2929;
}

@media (max-width: 980px) {
  .team-account-shell {
    grid-template-columns: 1fr;
  }

  .team-account-sidebar {
    position: static;
  }

  .team-account-sidebar nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-workspace-layout,
  .team-detail-grid,
  .team-manager-grid,
  .team-report-grid {
    grid-template-columns: 1fr;
  }

  .team-report-card:nth-child(3) {
    grid-column: auto;
  }

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

  .team-learner-metrics,
  .team-learner-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .team-account-shell {
    width: min(100% - 20px, 1500px);
  }

  .team-account-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-detail-head,
  .team-member-row,
  .team-assignment-row,
  .readiness-bar-row,
  .assignment-progress-row,
  .team-risk-row {
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .team-member-summary { text-align: left; }

  .team-export-actions {
    justify-content: stretch;
  }

  .team-export-actions .secondary-btn {
    width: 100%;
  }

  .team-metric-grid {
    grid-template-columns: 1fr;
  }

  .team-learner-dashboard-head {
    display: grid;
    align-items: stretch;
  }

  .team-learner-metrics,
  .team-learner-details,
  .team-learner-attempt {
    grid-template-columns: 1fr;
  }

  .team-member-actions {
    justify-content: flex-start;
  }
}

.reviews-section,
.catalog-section,
.resource-section,
.career-section,
.learning-path-section,
.certificate-section,
.team-section,
.request-section,
.account-section,
.admin-section {
  padding: 28px 24px;
}

.funnel-section {
  background:
    linear-gradient(180deg, rgba(239, 249, 246, 0.78), rgba(255, 255, 255, 0.96));
}

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

.funnel-steps article {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #eef8f5);
  box-shadow: var(--shadow);
}

.funnel-steps article::after {
  content: "";
  position: absolute;
  right: -42px;
  bottom: -42px;
  width: 130px;
  height: 130px;
  border: 1px solid rgba(18, 137, 116, 0.26);
  border-radius: 999px;
}

.funnel-steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: #062d28;
  color: #baf4e7;
  font-weight: 900;
}

.funnel-steps h3 {
  margin: 18px 0 8px;
}

.funnel-steps p {
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

.tool-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}

.tool-info article,
.track-card,
.metric,
.panel,
.review-card,
.question-panel,
.score-pill,
.timer-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.tool-info article {
  padding: 18px;
}

.tool-info p,
.track-card p,
.review-card p,
.review-item p,
.study-item p,
.history-item p,
.topbar p,
.exam-header p {
  color: var(--muted);
  line-height: 1.48;
}

.catalog-section {
  margin-top: 24px;
}

.catalog-intro {
  max-width: 1040px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 6px !important;
}

.reviews-section,
.resource-section,
.career-section,
.learning-path-section,
.certificate-section,
.team-section,
.request-section,
.admin-section {
  margin-top: 28px;
}

.content-page {
  padding-top: 10px;
}

.landing-view.content-route-active .hero-band,
.landing-view.content-route-active .platform-overview,
.landing-view.content-route-active .provider-directory-section,
.landing-view.content-route-active .exam-marketplace-section,
.landing-view.content-route-active .funnel-section,
.landing-view.content-route-active .marketplace-flow-section,
.landing-view.content-route-active .pricing-preview-section,
.landing-view.content-route-active .marketplace-pricing-preview,
.landing-view.content-route-active .team-section {
  padding-block: 28px 48px;
}

.landing-view.content-route-active .marketplace-reviews {
  display: none;
}

.landing-view:not(.content-route-active):not(.standalone-account-route) .marketplace-reviews {
  display: block;
}

.landing-view.content-route-active .landing-main {
  padding-top: 10px;
}

.landing-view.standalone-account-route .landing-main {
  min-height: calc(100vh - 98px);
  padding-top: 0;
  background: #f4faf7;
}

.landing-view.standalone-account-route .hero-band,
.landing-view.standalone-account-route .platform-overview,
.landing-view.standalone-account-route .provider-directory-section,
.landing-view.standalone-account-route .exam-marketplace-section,
.landing-view.standalone-account-route .funnel-section,
.landing-view.standalone-account-route .marketplace-flow-section,
.landing-view.standalone-account-route .pricing-preview-section,
.landing-view.standalone-account-route .marketplace-pricing-preview,
.landing-view.standalone-account-route .marketplace-reviews,
.landing-view.standalone-account-route .team-section,
.landing-view.standalone-account-route .marketing-funnel-preview {
  display: none !important;
}
.landing-view.standalone-account-route .landing-footer {
  display: none;
}

.landing-view.standalone-account-route .content-page {
  padding: 0;
}

.sub-section-head {
  margin-top: 18px;
}

.section-head,
.topbar,
.exam-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.topbar-actions {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.section-head h2,
.topbar h2,
.exam-header h2 {
  font-size: 1.62rem;
  color: #071411;
  font-weight: 900;
  letter-spacing: 0;
}

.review-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.icon-controls {
  flex: 0 0 auto;
  margin-left: auto;
  align-self: center;
}

.carousel-icon-btn {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
}

.carousel-icon-btn:hover,
.carousel-icon-btn:focus-visible {
  border-color: var(--accent);
  background: #f5fbf9;
}

.carousel-icon-btn svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.carousel-icon-btn .play-icon {
  fill: currentColor;
  stroke: none;
}

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

.review-carousel {
  overflow: hidden;
}

.review-track {
  --review-card-width: calc((100% - 42px) / 4);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: var(--review-card-width);
  gap: 14px;
  transform: translateX(0);
  transition: transform 420ms ease;
}

.review-carousel:hover .review-track,
.review-carousel:focus-within .review-track {
  transition-duration: 0ms;
}

.review-card {
  min-height: 210px;
  padding: 16px;
}

.review-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-card strong,
.review-card span {
  display: block;
}

.stars {
  color: #b96b16;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.editorial-stars {
  color: #f5c518;
  font-size: 1.05rem;
  margin-top: auto;
}

.system-note,
.form-message,
.security-note {
  color: var(--muted);
  line-height: 1.5;
}

.system-note {
  margin: 10px 0 0;
}

.resource-grid,
.advisor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 12px;
}

.instruction-card,
.advice-card,
.form-panel,
.advisor-output,
.request-form {
  display: grid;
  gap: 10px;
}

.career-section .panel {
  padding: 14px;
}

.instruction-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.5;
}
.resource-library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.resource-card {
  display: grid;
  align-content: start;
  gap: 8px;
}

.resource-card span {
  width: fit-content;
  border-radius: 999px;
  background: #eef6f3;
  color: #0d7c66;
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.resource-card h3,
.resource-card p {
  margin: 0;
}

.resource-card p {
  color: var(--muted);
  line-height: 1.5;
}

.advice-columns,
.form-grid,
.account-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.account-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-layout {
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  max-width: 980px;
}

.auth-access-page {
  min-height: calc(100vh - 96px);
  background:
    radial-gradient(circle at 18% 18%, rgba(18, 134, 111, 0.13), transparent 32%),
    linear-gradient(135deg, #f7faf8 0%, #edf5f2 46%, #ffffff 100%);
}

.auth-access-shell {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 72px) clamp(10px, 2vw, 20px);
}

.auth-copy-panel h2 {
  max-width: 640px;
  margin: 10px 0 18px;
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: 0.98;
}

.auth-copy-panel > p {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.55;
}

.auth-benefit-card {
  max-width: 640px;
  margin-top: 34px;
  padding: 22px;
  border: 1px solid rgba(13, 82, 70, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
}

.auth-benefit-card strong {
  display: block;
  margin-bottom: 10px;
}

.auth-benefit-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.auth-copy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.auth-card {
  width: min(100%, 540px);
  justify-self: end;
  padding: 44px;
  border-color: rgba(13, 82, 70, 0.18);
  box-shadow: 0 24px 70px rgba(9, 43, 36, 0.14);
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  margin-bottom: 28px;
  border-radius: 8px;
  background: #eaf3ef;
}

.auth-tab {
  min-height: 48px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.auth-tab.active {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(8, 42, 35, 0.16);
}

.auth-form {
  display: grid;
  gap: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.auth-form h3 {
  margin: 0;
}

.pin-timer-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  font-size: 13.5px;
  font-weight: 600;
  padding: 9px 14px;
  border-radius: 8px;
  margin: 4px 0 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.25s ease;
}

.pin-timer-badge strong {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 15px;
  letter-spacing: 0.5px;
  color: #14532d;
}

.pin-timer-badge.expiring {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.pin-timer-badge.expiring strong {
  color: #92400e;
}

.pin-timer-badge.expired {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.pin-timer-badge.expired strong {
  color: #991b1b;
}

.pin-timer-badge .timer-icon {
  font-size: 15px;
  line-height: 1;
}

.auth-submit-btn {
  min-height: 56px;
  margin-top: 2px;
}

.label-action {
  float: right;
}

.auth-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.auth-label-row .link-btn {
  flex: 0 0 auto;
  padding: 0;
  color: #b83218;
  font-size: 0.94rem;
}

.auth-oauth-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 18px;
  margin-bottom: 8px;
}

.oauth-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  cursor: pointer;
}

.oauth-btn:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.oauth-btn:active {
  transform: translateY(0);
}

.google-oauth-btn {
  background: #ffffff;
  color: #202124 !important;
  border: 1px solid #dadce0;
}

.google-oauth-btn:hover {
  background: #f8fafd;
  border-color: #c4c7cc;
}

.github-oauth-btn {
  background: #1f2328;
  color: #ffffff !important;
  border: 1px solid #32383f;
}

.github-oauth-btn:hover {
  background: #2b3137;
  border-color: #444c56;
}

.oauth-icon {
  flex-shrink: 0;
}

.password-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

.password-input-wrap input {
  width: 100% !important;
  padding-right: 44px !important;
  box-sizing: border-box !important;
}

.password-toggle-btn {
  position: absolute !important;
  right: 10px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 4px !important;
  margin: 0 !important;
  cursor: pointer !important;
  color: #7b9690 !important;
  opacity: 0.7;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 4px !important;
  transition: opacity 0.15s ease, color 0.15s ease !important;
  z-index: 5 !important;
  min-height: 0 !important;
  min-width: 0 !important;
  height: 28px !important;
  width: 28px !important;
}

.password-toggle-btn:hover {
  opacity: 1 !important;
  color: var(--accent, #0d7c66) !important;
  background: transparent !important;
}

.settings-page .password-toggle-btn {
  color: #5c756f !important;
}

.settings-page .password-toggle-btn:hover {
  color: #0d7c66 !important;
}

.auth-card .password-toggle-btn {
  color: #9eb8b1 !important;
}

.auth-card .password-toggle-btn:hover {
  color: #ffffff !important;
}

.password-toggle-btn:focus-visible {
  outline: 2px solid var(--accent, #2dd4bf) !important;
  outline-offset: 1px !important;
}

.password-toggle-btn svg {
  display: block;
  pointer-events: none;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 20px 0 16px;
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.auth-smallprint {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

#accountMessage,
.auth-card .account-message,
.account-auth-card .account-message,
.account-message {
  margin: 14px 0 16px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 0.96rem;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  display: none;
  box-sizing: border-box;
}

#accountMessage:not(:empty),
.auth-card .account-message:not(:empty),
.account-auth-card .account-message:not(:empty),
.account-message:not(:empty) {
  display: block;
}

#accountMessage.error,
.auth-card .account-message.error,
.account-auth-card .account-message.error,
.account-message.error {
  background: #fef2f2 !important;
  border: 1.5px solid #f87171 !important;
  border-left: 5px solid #dc2626 !important;
  color: #991b1b !important;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.08);
}

#accountMessage.success,
.auth-card .account-message.success,
.account-auth-card .account-message.success,
.account-message.success {
  background: #ecfdf5 !important;
  border: 1.5px solid #6ee7b7 !important;
  border-left: 5px solid #059669 !important;
  color: #065f46 !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.1);
}

.auth-access-page .account-message {
  max-width: 1240px;
  padding: 0 10px;
}
.settings-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) repeat(2, minmax(260px, 1fr));
  gap: 14px;
  align-items: start;
}

.settings-status-card {
  min-height: 100%;
}

.account-message {
  margin-top: 14px;
}

.profile-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.account-status-panel {
  display: grid;
  gap: 12px;
  align-content: start;
}

.account-status-panel p {
  margin: 0 0 6px;
  color: var(--muted);
}

.preview-gate {
  border-color: #e2c08d;
  background: #fffaf1;
}

.advice-columns h4,
.advisor-output h3,
.advisor-output h4 {
  margin: 0;
}

.advice-columns p,
.advisor-output p,
.advisor-output li {
  color: var(--muted);
  line-height: 1.38;
}

.advisor-output p,
.advisor-output ol,
.advisor-output ul {
  margin: 0;
}

.advisor-output ol,
.advisor-output ul {
  padding-left: 20px;
}

.link-btn {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--teal);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 4px 0;
}

.link-btn:hover,
.link-btn:focus-visible {
  color: var(--ink);
  text-decoration: underline;
}

.muted-text {
  color: var(--muted);
  margin: 0 0 8px;
}
.form-panel label,
.request-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 700;
}

.form-panel input,
.form-panel select,
.request-form input,
.request-form select,
.request-form textarea,
.admin-toolbar input,
.admin-toolbar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0 10px;
}

.form-panel input,
.form-panel select {
  min-height: 38px;
}

.request-form textarea {
  min-height: 110px;
  padding: 10px;
  resize: vertical;
}

.confirm-row {
  display: flex !important;
  grid-template-columns: none !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 600 !important;
}

.confirm-row input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.form-message.success {
  color: var(--strong);
}

.form-message.error {
  color: var(--danger);
}

.access-summary {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto;
  gap: 14px;
  margin-bottom: 14px;
}

.access-summary span {
  color: var(--muted);
}

.access-summary span:last-child {
  grid-column: 1 / -1;
}

.badge.warning {
  background: #fff1cf;
  color: #8a520c;
}

.badge.danger {
  background: #fde8e8;
  color: #9b1c1c;
}

.badge.neutral {
  background: #eef2f4;
  color: #465a64;
}

.learning-path-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}

.learning-path-picker,
.learning-path-detail {
  display: grid;
  gap: 14px;
}

.learning-path-toolbar {
  display: grid;
  gap: 8px;
}

.learning-path-grid {
  display: grid;
  gap: 10px;
}

.learning-path-card {
  display: grid;
  gap: 8px;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 14px;
  color: var(--ink);
  cursor: pointer;
}

.learning-path-card.active,
.learning-path-card:hover,
.learning-path-card:focus-visible {
  border-color: rgba(13, 124, 102, 0.44);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.12);
}

.learning-path-card strong,
.learning-path-card p,
.learning-path-card small {
  margin: 0;
}

.learning-path-card p,
.learning-path-card small,
.learning-path-detail p,
.learning-path-detail li,
.learning-path-summary small {
  color: var(--muted);
}

.learning-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.learning-detail-head h3 {
  margin: 8px 0 6px;
  font-size: 1.45rem;
}

.learning-progress-ring {
  display: grid;
  place-items: center;
  min-width: 96px;
  min-height: 96px;
  border-radius: 50%;
  background: #edf8f4;
  border: 1px solid rgba(13, 124, 102, 0.28);
  text-align: center;
}

.learning-progress-ring strong,
.learning-progress-ring span {
  display: block;
}

.learning-path-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.learning-path-summary span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.learning-sequence {
  display: grid;
  gap: 10px;
}

.learning-sequence article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.learning-sequence article > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #0d7c66;
  color: #ffffff;
  font-weight: 900;
}

.learning-sequence p {
  margin: 4px 0 0;
}

.learning-milestones {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-milestones span {
  border: 1px solid rgba(13, 124, 102, 0.22);
  border-radius: 999px;
  padding: 7px 10px;
  background: #edf8f4;
  font-weight: 800;
}

.learning-weekly-plan {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.learning-premium-note {
  border: 1px dashed rgba(13, 124, 102, 0.35);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfa;
}

.learning-premium-note.unlocked {
  border-style: solid;
  background: #edf8f4;
}

.career-signal-grid,
.advisor-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.career-signal-grid article,
.advisor-mini-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(238, 249, 245, 0.92), rgba(255, 255, 255, 0.98));
}

.career-signal-grid strong,
.advisor-mini-grid strong {
  display: block;
  margin-bottom: 4px;
}

.advisor-output .advisor-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

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

.certificate-issued-panel,
.certificate-eligibility-panel,
.certificate-grid,
.certificate-eligibility-list {
  display: grid;
  gap: 12px;
}

.certificate-card,
.certificate-eligible-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(8, 38, 34, 0.07);
}

.certificate-card {
  background:
    linear-gradient(135deg, rgba(238, 249, 245, 0.94), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at top right, rgba(13, 124, 102, 0.16), transparent 34%);
}

.certificate-card h3,
.certificate-card p,
.certificate-eligible-row p,
.certificate-eligibility-panel p {
  margin: 0;
}

.certificate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
  margin: 10px 0;
}

.certificate-disclaimer {
  color: var(--muted);
  font-size: 0.9rem;
}

.certificate-eligible-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.certificate-eligible-row > div {
  display: grid;
  gap: 6px;
}

.learning-path-actions {
  justify-content: flex-start;
}

.learning-path-message {
  margin: 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

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

.pricing-teaser-card {
  display: grid;
  gap: 12px;
  align-content: start;
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pricing-teaser-card h3,
.pricing-teaser-card p {
  margin: 0;
}

.pricing-teaser-card strong {
  font-size: 1.6rem;
}

.pricing-teaser-card p {
  color: var(--muted);
  line-height: 1.5;
}

.pricing-teaser-card button {
  align-self: end;
}

.featured-plan {
  border-color: rgba(31, 92, 154, 0.36);
  background: linear-gradient(180deg, #ffffff, #eef6fb);
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.pricing-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.16), var(--shadow);
}
.pricing-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pricing-card h3,
.pricing-card p {
  margin: 0;
}

.pricing-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.pricing-price {
  font-size: 1.8rem;
  font-weight: 900;
}

.plan-action-btn {
  margin-top: auto;
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}

.admin-section {
  background: #f7f2e8;
}

.admin-section > .section-head {
  border: 1px solid rgba(122, 91, 46, 0.18);
  background: linear-gradient(135deg, #fffaf0 0%, #edf8f4 100%);
  box-shadow: 0 18px 44px rgba(76, 57, 30, 0.08);
}

.admin-database-console {
  display: grid;
  gap: 18px;
  margin: 12px 0 22px;
  border-color: rgba(122, 91, 46, 0.18);
  background: #fffaf2;
  box-shadow: 0 18px 50px rgba(77, 58, 32, 0.08);
}

.admin-console-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.admin-console-head h3 {
  margin: 4px 0 4px;
  font-size: 1.45rem;
}

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

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

.admin-db-stat-card {
  display: grid;
  gap: 7px;
  min-height: 104px;
  padding: 16px;
  border: 1px solid rgba(122, 91, 46, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(77, 58, 32, 0.06);
}

.admin-db-stat-card span,
.admin-db-table-card small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-db-stat-card strong {
  font-size: 1.15rem;
}

.admin-db-stat-card p,
.admin-db-table-card p,
.admin-db-preview-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.38;
}

.admin-db-table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-db-table-card {
  display: grid;
  gap: 8px;
  min-height: 92px;
  padding: 14px;
  border: 1px solid rgba(122, 91, 46, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.admin-db-table-card span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.admin-db-table-card.active,
.admin-db-table-card:hover,
.admin-db-table-card:focus-visible {
  border-color: #183d68;
  box-shadow: 0 0 0 2px rgba(24, 61, 104, 0.12), 0 14px 34px rgba(77, 58, 32, 0.08);
  outline: none;
}

.admin-db-table-card.active {
  background: #f4f7fb;
}

.admin-db-preview {
  overflow: hidden;
  border: 1px solid rgba(122, 91, 46, 0.18);
  border-radius: 8px;
  background: #ffffff;
}

.admin-db-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 15px 16px;
  border-bottom: 1px solid var(--line);
  background: #fffdf7;
}

.admin-db-preview-scroll {
  overflow-x: auto;
}

.admin-db-preview-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-db-preview-table th,
.admin-db-preview-table td {
  max-width: 260px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  overflow-wrap: anywhere;
}

.admin-db-preview-table th {
  background: #0b2c25;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-db-preview-table tbody tr:nth-child(even) {
  background: #f8fbfa;
}
@media (max-width: 980px) {
  .admin-console-head {
    display: grid;
  }

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

.admin-summary-card p {
  color: var(--muted);
  line-height: 1.35;
  margin: 8px 0 0;
}

.admin-database-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  gap: 14px;
  margin-bottom: 18px;
}

.admin-database-panel .system-note {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.audit-log-card {
  border-left: 4px solid var(--accent-2);
}

.admin-user-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.7fr) minmax(130px, 0.45fr) minmax(150px, 0.55fr) minmax(150px, 0.55fr) minmax(150px, 0.55fr) auto;
}

.admin-support-fields {
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.admin-support-fields label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.admin-support-fields textarea {
  min-height: 74px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
}

.admin-support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-event-card {
  border-left: 4px solid var(--accent);
}

.compact-admin-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}

.compact-summary-card {
  min-height: auto;
}

.admin-subscriber-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.55fr) minmax(190px, 0.45fr) auto;
}

.admin-audit-toolbar {
  grid-template-columns: minmax(260px, 1fr) minmax(190px, 0.5fr) minmax(140px, 0.35fr) auto;
}

.admin-ops-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  align-items: start;
}

.admin-table {
  display: grid;
  gap: 8px;
}

.admin-table-row {
  display: grid;
  grid-template-columns: minmax(190px, 1.2fr) minmax(140px, 0.75fr) minmax(130px, 0.7fr) minmax(120px, 0.65fr) minmax(140px, 0.7fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  box-shadow: var(--shadow);
}

.admin-table-head {
  background: #eef6f4;
  color: var(--muted);
  font-weight: 900;
  box-shadow: none;
}

.subscriber-row {
  cursor: pointer;
}

.subscriber-row:hover,
.subscriber-row:focus-visible {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.14), var(--shadow);
  outline: none;
}

.admin-table-row span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-table-row small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.admin-detail-panel {
  display: grid;
  gap: 10px;
  position: sticky;
  top: 18px;
}

.detail-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.detail-heading p,
.detail-section p,
.admin-detail-panel p {
  color: var(--muted);
  margin: 0;
  line-height: 1.45;
}

.detail-section {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.compact-log-list {
  grid-template-columns: 1fr !important;
  width: 100% !important;
}

.compact-log-card {
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 10px;
  padding: 16px 20px;
}
.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 14px;
}

.pagination-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 180px auto auto;
  gap: 10px;
  align-items: center;
}
.admin-qa-toolbar {
  grid-template-columns: minmax(320px, 1fr) repeat(3, minmax(180px, 220px));
  gap: 14px;
  align-items: stretch;
  border-color: rgba(13, 124, 102, 0.24);
  background: linear-gradient(135deg, #f8fbfa 0%, #eef6f3 52%, #eef5fb 100%);
  box-shadow: 0 16px 38px rgba(9, 29, 24, 0.08);
}

.admin-qa-copy {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
}

.admin-qa-copy strong {
  font-size: 1.08rem;
}

.admin-qa-copy p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.admin-qa-btn {
  display: grid;
  align-content: center;
  gap: 5px;
  min-height: 76px;
  padding: 13px 15px;
  border: 1px solid rgba(13, 124, 102, 0.18);
  border-left: 5px solid var(--accent);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 28px rgba(9, 29, 24, 0.06);
}

.admin-qa-btn span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.admin-qa-btn strong {
  line-height: 1.2;
}

.admin-qa-btn:hover,
.admin-qa-btn:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(13, 124, 102, 0.42);
  box-shadow: 0 16px 34px rgba(9, 29, 24, 0.12);
}

.admin-qa-btn.audit {
  border-left-color: #1f5c9a;
}

.admin-qa-btn.normalize {
  border-left-color: #a56511;
}

.admin-qa-btn.readiness {
  border-left-color: #0d7c66;
}

.admin-qa-report-card {
  overflow: hidden;
  border-color: rgba(13, 124, 102, 0.18);
  background: #ffffff;
}

.admin-qa-report-card header {
  align-items: stretch;
  padding: 4px 2px 10px;
  border-bottom: 1px solid var(--line);
}

.admin-qa-report-card header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.qa-score {
  display: grid;
  place-items: center;
  min-width: 94px;
  min-height: 70px;
  border-radius: 8px;
  padding: 10px;
  text-align: center;
}

.qa-score b {
  font-size: 1.55rem;
  line-height: 1;
}

.qa-score small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.qa-score.ok {
  background: #e8f7f1;
  color: #08634f;
}

.qa-score.warn {
  background: #fff6df;
  color: #8a520c;
}

.admin-qa-table,
.admin-readiness-table {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.admin-qa-table-row,
.admin-readiness-row {
  display: grid;
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.admin-qa-table-row {
  grid-template-columns: minmax(170px, 1fr) repeat(5, minmax(95px, 0.45fr));
}

.admin-readiness-row {
  grid-template-columns: minmax(82px, 0.25fr) minmax(220px, 0.75fr) minmax(260px, 1fr);
}

.admin-qa-table-row:first-child,
.admin-readiness-row:first-child {
  border-top: 0;
}

.admin-qa-table-head,
.admin-readiness-head {
  background: #0b2c25;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-qa-table-row:not(.admin-qa-table-head):nth-child(odd),
.admin-readiness-row:not(.admin-readiness-head):nth-child(odd) {
  background: #ffffff;
}

.admin-qa-table-row small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.admin-readiness-row.ok {
  border-left: 4px solid #0d7c66;
}

.admin-readiness-row.warn {
  border-left: 4px solid #a56511;
}

.qa-status-pill {
  display: inline-grid;
  min-width: 62px;
  min-height: 28px;
  place-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.qa-status-pill.ok {
  background: #dff7f1;
  color: #08634f;
}

.qa-status-pill.warn {
  background: #fff1cf;
  color: #8a520c;
}

.admin-qa-empty-state {
  border-left: 5px solid #0d7c66;
  background: #f2fbf8;
}

.account-access-card {
  padding: 0;
  overflow: hidden;
  border-color: rgba(31, 92, 154, 0.16);
  background: #ffffff;
}

.account-access-card header {
  padding: 16px 18px;
  background: linear-gradient(135deg, #f5f9fb, #eef6f3);
  border-bottom: 1px solid var(--line);
}

.account-access-card header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.account-access-card .account-access-fields,
.account-access-card .system-note,
.account-access-card .admin-support-fields {
  margin-left: 18px;
  margin-right: 18px;
}

.account-access-card .account-access-fields {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.account-access-card .system-note {
  padding: 12px 14px;
  border-radius: 8px;
  background: #eef5fb;
  color: #39534d;
}

.account-access-card .admin-support-fields {
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.account-access-card .badge {
  align-self: start;
  min-width: 74px;
  justify-content: center;
}
.admin-request-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.admin-request-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.admin-request-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.admin-request-card textarea {
  width: 100%;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
}

.admin-actions {
  display: grid;
  grid-template-columns: 220px 1fr auto;
  gap: 10px;
}

.account-access-fields {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(160px, 0.7fr) auto;
  gap: 10px;
  align-items: end;
}

.account-access-fields label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-weight: 800;
}

.account-access-fields select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--ink);
  border-radius: 8px;
  padding: 0 10px;
}

.landing-footer {
  margin-top: 32px;
  padding: 28px;
  background: var(--dark);
  color: #ffffff;
  border-radius: 8px 8px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.4fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr) minmax(260px, 1.2fr);
  gap: 24px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-brand-header .footer-logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
}

.footer-brand-header strong {
  display: inline-block;
  margin-bottom: 0;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.landing-footer p {
  color: #d7e6e2;
  line-height: 1.5;
  margin: 8px 0 0;
}

.landing-footer nav {
  display: grid;
  gap: 8px;
  align-content: start;
}

.landing-footer strong {
  display: block;
  margin-bottom: 8px;
}

.landing-footer .nav-link {
  min-height: 0;
  padding: 0;
  text-align: left;
  color: #d7e6e2;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #bdd2cd;
  font-weight: 700;
}

.footer-top-btn {
  display: inline-grid;
  place-items: center;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  border: 1px solid rgba(215, 230, 226, 0.38);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
  position: relative;
  z-index: 1;
}

.footer-top-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.footer-top-btn:hover,
.footer-top-btn:focus-visible {
  background: #d8f6ee;
  color: var(--dark);
  border-color: #d8f6ee;
}

.mobile-only-nav {
  display: none;
}

.catalog-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: -4px 0 18px;
}

.catalog-search-panel {
  display: grid;
  grid-template-columns: minmax(190px, 0.8fr) minmax(170px, 0.7fr) minmax(280px, 1.4fr) auto;
  gap: 10px;
  align-items: end;
  margin: -4px 0 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.catalog-search-panel label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 800;
}

.catalog-search-panel label span {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.catalog-search-panel select,
.catalog-search-panel input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
}

.catalog-search-panel select:focus,
.catalog-search-panel input:focus {
  outline: 3px solid rgba(13, 124, 102, 0.18);
  border-color: var(--accent);
}

.catalog-search-summary {
  min-height: 22px;
  margin: -4px 0 14px;
  color: var(--muted);
  line-height: 1.45;
}

.catalog-search-summary strong {
  color: var(--ink);
}

.category-filters {
  display: contents;
}

.category-chip {
  min-height: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 0 12px;
  font-weight: 800;
}

.category-chip span {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
}

.category-chip.active {
  background: var(--dark);
  color: #ffffff;
  border-color: var(--dark);
}

.category-chip.active span {
  background: #d8eee8;
  color: var(--dark);
}

.catalog-status-chip {
  display: inline-grid;
  place-items: center;
  text-transform: capitalize;
}

.all-exam-dropdown {
  display: grid;
  gap: 12px;
  margin: -4px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.all-exam-dropdown-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.all-exam-dropdown-head strong {
  color: var(--ink);
}

.all-exam-list,
.all-category-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-height: 420px;
  overflow: auto;
  padding-right: 4px;
}

.all-exam-option,
.all-category-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  text-align: left;
}

.all-exam-option:hover,
.all-exam-option:focus-visible,
.all-category-option:hover,
.all-category-option:focus-visible {
  border-color: var(--accent);
  background: #f5fbf9;
}

.all-exam-option strong,
.all-exam-option small,
.all-category-option strong,
.all-category-option small {
  display: block;
}

.all-exam-option small,
.all-category-option small {
  color: var(--muted);
  margin-top: 4px;
}

.all-exam-option em,
.all-category-option em {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.all-exam-option[data-status="available"] em {
  background: #e6f6f0;
  color: var(--strong);
}

.all-category-option em {
  background: #e6f6f0;
  color: var(--strong);
}

.track-card {
  display: grid;
  gap: 10px;
  min-height: 210px;
  padding: 16px;
  text-align: left;
}

.track-card.available {
  border-color: #83c8b7;
}

.track-card.locked {
  border-color: #e0d4c5;
  background: #fffdf9;
}

.track-card.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.16), var(--shadow);
}

.track-card h3 {
  margin: 0;
  font-size: 1.12rem;
}

.track-card p {
  margin: 0;
}

.category-label {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: #edf5fb;
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 800;
}

.track-card-action {
  width: fit-content;
  border-radius: 8px;
  padding: 8px 10px;
  background: #e6f6f0;
  color: var(--strong);
  font-size: 0.82rem;
  font-weight: 900;
}

.track-card:not(.available) .track-card-action {
  background: var(--surface-2);
  color: var(--muted);
}

.track-card.locked .track-card-action {
  background: #fff1df;
  color: var(--warn);
}

.access-notice {
  border: 1px solid #7ecfbd;
  background: #e7f7f3;
  color: #10231f;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.4;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.catalog-pagination span {
  color: var(--muted);
  font-weight: 800;
}

.catalog-pagination .secondary-btn {
  width: auto;
}

.track-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.badge {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--surface-2);
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.available {
  background: #e6f6f0;
  color: var(--strong);
}

.app-shell {
  min-height: 100vh;
  display: none;
  grid-template-columns: 292px 1fr;
}

.app-shell.active-view {
  display: grid;
}

.sidebar {
  background: var(--dark);
  color: #f8fbfa;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.sidebar-back {
  background: #17332e;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.16);
}

.nav-tabs {
  display: grid;
  gap: 8px;
  margin: 6px 0;
}

.nav-tab {
  min-height: 42px;
  text-align: left;
  color: #d7e6e2;
  background: transparent;
  border-left: 3px solid transparent;
  padding: 10px 12px;
}

.nav-tab.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-left-color: #72d4bd;
}

.side-block {
  display: grid;
  gap: 7px;
}

.side-block label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c3d8d3;
}

select,
input[type="number"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--dark-2);
  color: #ffffff;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 8px;
}

input[type="number"] {
  color-scheme: dark;
}

.primary-btn,
.secondary-btn,
.icon-btn {
  min-height: 42px;
  border-radius: 8px;
}

.primary-btn {
  background: var(--accent);
  color: #ffffff;
  padding: 0 16px;
  font-weight: 800;
}

.secondary-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
}

.danger-btn {
  border-color: #e3b9bc;
  color: var(--danger);
}

.danger-btn:hover:not(:disabled) {
  background: #fff1f2;
}

.danger-btn:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.icon-btn {
  width: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 1.1rem;
}

.icon-btn.flagged {
  background: #fff3df;
  border-color: #edbd73;
  color: var(--warn);
}

.main {
  padding: 24px;
  min-width: 0;
}

.view {
  display: none;
}

.view.active-view {
  display: block;
}

.score-pill,
.timer-box {
  padding: 12px 14px;
}

.timer-box {
  min-width: 190px;
  text-align: right;
}

.timer-box span {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
}

.timer-box small {
  color: var(--muted);
}

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

.metric {
  padding: 16px;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 8px;
}

.metric strong {
  font-size: 1.45rem;
}


.premium-dashboard-panel {
  margin-bottom: 18px;
  border-color: rgba(17, 135, 108, 0.28);
  background: linear-gradient(135deg, rgba(238, 249, 245, 0.96), rgba(255, 255, 255, 0.98));
  box-shadow: 0 18px 42px rgba(8, 38, 34, 0.08);
}

.premium-dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 16px;
}

.premium-dashboard-head h3 {
  margin: 8px 0 4px;
  font-size: 1.25rem;
}

.premium-dashboard-head p {
  color: var(--muted);
  margin: 0;
  max-width: 720px;
}

.premium-dashboard-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.premium-dashboard-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.82);
  padding: 14px;
}

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

.premium-dashboard-card strong {
  display: block;
  font-size: 1.45rem;
  margin: 6px 0;
}

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

.premium-insight-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #ffffff;
  padding: 14px;
  min-height: 150px;
}

.premium-insight-card.locked {
  background: repeating-linear-gradient(135deg, rgba(17, 135, 108, 0.08), rgba(17, 135, 108, 0.08) 8px, rgba(255, 255, 255, 0.9) 8px, rgba(255, 255, 255, 0.9) 16px);
}

.premium-insight-card h4 {
  margin: 0 0 10px;
  font-size: 0.98rem;
}

.premium-insight-card p,
.premium-insight-card li,
.premium-attempt-row span {
  color: var(--muted);
}

.premium-insight-card ul {
  margin: 0;
  padding-left: 18px;
}

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

.premium-attempt-row {
  display: grid;
  gap: 2px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.premium-attempt-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
}

.panel,
.question-panel {
  padding: 18px;
}

.tracker,
.history-list,
.review-list,
.study-grid {
  display: grid;
  gap: 12px;
}

.tracker {
  margin-top: 14px;
}

.tracker-row,
.history-item,
.review-item,
.study-item,
.skipped-strip {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  padding: 12px;
}

.tracker-row {
  display: grid;
  grid-template-columns: 90px 1fr 116px;
  gap: 10px;
  align-items: center;
}

.bar {
  height: 9px;
  border-radius: 999px;
  background: #d7dfdc;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: var(--accent-2);
}

.status {
  font-weight: 800;
}

.status.strong {
  color: var(--strong);
}

.status.weak,
.status.high-risk {
  color: var(--danger);
}

.progress-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.progress-track {
  height: 10px;
  background: #dce4e1;
  border-radius: 999px;
  overflow: hidden;
}

#progressFill {
  width: 0;
  height: 100%;
  background: var(--accent);
}

.skipped-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.skipped-strip strong {
  margin-right: 4px;
}

.skip-chip {
  min-height: 32px;
  border-radius: 999px;
  background: #fff3df;
  color: var(--warn);
  padding: 0 10px;
  font-weight: 800;
}

.question-toolbar,
.action-row,
.action-group,
.confidence-row,
.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.question-toolbar {
  justify-content: space-between;
  margin-bottom: 16px;
}

#questionLabel {
  color: var(--muted);
  font-weight: 800;
}

.question-text {
  font-size: 1.18rem;
  line-height: 1.55;
  margin-bottom: 18px;
}

.locked-question-card {
  position: relative;
  display: grid;
  min-height: 290px;
  border: 1px solid #e3c48f;
  border-radius: 8px;
  background: #fffaf1;
  overflow: hidden;
}

.locked-question-preview {
  padding: 18px;
  color: var(--muted);
  opacity: 0.42;
  filter: blur(1px);
  user-select: none;
}

.locked-question-preview ol {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 24px;
}

.locked-question-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
  background: rgba(255, 250, 241, 0.88);
  text-align: center;
}

.locked-question-overlay strong {
  font-size: 1.25rem;
}

.locked-question-overlay p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--muted);
}

.locked-question-overlay .button-row {
  justify-content: center;
}

.answers {
  display: grid;
  gap: 10px;
}

.answer-option {
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: 10px;
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  text-align: left;
}

.answer-option.selected {
  border-color: var(--accent-2);
  background: #edf5fb;
}

.answer-option.correct {
  border-color: var(--strong);
  background: #eef8f1;
}

.answer-option.incorrect {
  border-color: var(--danger);
  background: #fff0f1;
}

.answer-letter {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 800;
}

.confidence-row {
  margin-top: 16px;
}

.confidence-row input {
  width: min(220px, 48vw);
}

.explanation {
  margin-top: 16px;
  border: 1px solid #c7d8d3;
  background: #f7fbfa;
  border-radius: 8px;
  padding: 14px;
  line-height: 1.5;
}

.action-row {
  justify-content: space-between;
  margin-top: 14px;
  flex-wrap: wrap;
}

.action-group-nav {
  flex-wrap: wrap;
}

.action-group-submit {
  margin-left: auto;
}

.action-group-submit .primary-btn,
.action-group-submit .danger-btn {
  min-width: 180px;
}

.review-item h3,
.study-item h3 {
  margin: 0 0 8px;
}

.review-item p,
.study-item p,
.history-item p {
  margin: 5px 0;
}

@media (max-width: 1100px) {
  .track-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-band,
  .resource-grid,
  .resource-library-grid,
  .advisor-layout,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-pricing-grid,
  .funnel-steps,
  .profile-layout,
  .learning-path-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .section-head,
  .topbar,
  .exam-header {
    flex-direction: column;
  }

  .landing-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-areas:
      "brand menu"
      "nav nav";
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
  }

  .landing-header .brand {
    grid-area: brand;
    min-width: 0;
  }

  .landing-header .brand p {
    max-width: 230px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .landing-nav {
    grid-area: nav;
    grid-column: 1 / -1;
    display: none;
    justify-content: stretch;
    margin-left: 0;
    padding: 10px;
  }

  .mobile-menu-open .landing-nav {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mobile-menu-open .landing-nav .nav-link {
    min-height: 42px;
    text-align: left;
  }
  .mobile-menu-open .landing-nav {
    gap: 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
  }


  .mobile-menu-open .nav-menu-wrap {
    display: grid;
    width: 100%;
  }

  .mobile-menu-open .nav-menu-trigger {
    justify-content: space-between;
    width: 100%;
  }

  .mobile-menu-open .nav-submenu {
    position: static;
    display: none;
    gap: 4px;
    min-width: 0;
    width: 100%;
    margin-top: 4px;
    padding: 6px 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
  }

  .mobile-menu-open .nav-menu-wrap.open .nav-submenu {
    display: grid;
  }

  .mobile-menu-open .nav-submenu-item {
    color: #c9e4dc;
    padding: 8px 14px;
    min-height: 38px;
    font-size: 0.92rem;
  }

  .mobile-menu-open .nav-submenu-item:hover,
  .mobile-menu-open .nav-submenu-item:focus-visible,
  .mobile-menu-open .nav-submenu-item.active,
  .mobile-menu-open .nav-submenu-item[aria-current="page"] {
    background: rgba(45, 212, 191, 0.15);
    color: #ffffff;
  }

  .mobile-menu-open .account-menu-wrap {
    display: grid;
    width: 100%;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mobile-menu-open .account-menu-btn,
  .mobile-menu-open .header-cart-link {
    justify-content: flex-start;
    width: 100%;
  }

  .mobile-menu-open .header-cart-link.hidden {
    display: none !important;
  }

  .hamburger-btn {
    grid-area: menu;
    display: grid;
    margin-left: auto;
    align-self: center;
  }

  .landing-header .primary-btn {
    display: none;
  }

  .mobile-only-nav {
    display: block;
    color: #ffffff !important;
    background: var(--accent);
    border-radius: 8px;
    padding: 0 12px !important;
    text-align: center !important;
  }

  .main {
    padding: 16px;
  }

  .hero-band {
    min-height: auto;
    padding: 24px 20px;
    gap: 14px;
  }

  .hero-command-panel {
    padding: 14px;
  }

  .terminal-lines {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
  }

  .terminal-lines span {
    display: grid;
    gap: 4px;
    align-content: start;
  }

  .hero-command-panel .primary-btn {
    display: none;
  }

  .tool-info,
  .track-grid,
  .pricing-grid,
  .landing-pricing-grid,
  .metric-grid,
  .premium-dashboard-metrics,
  .premium-dashboard-insights,
  .split-layout,
  .learning-path-layout,
  .learning-path-summary,
  .account-layout,
  .auth-layout,
  .settings-grid,
  .profile-layout,
  .advice-columns,
  .form-grid,
  .catalog-search-panel {
    grid-template-columns: 1fr;
  }

  .app-shell.active-view {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    max-height: none;
    overflow-y: visible;
  }

  .nav-tabs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-tab {
    text-align: center;
    border-left: 0;
    border-bottom: 3px solid transparent;
    padding: 10px 6px;
  }

  .nav-tab.active {
    border-bottom-color: #72d4bd;
  }

  .timer-box {
    width: 100%;
    text-align: left;
  }

  .topbar-actions {
    width: 100%;
  }

  .topbar-actions .score-pill,
  .topbar-actions .danger-btn {
    flex: 1;
  }

  .landing-footer {
    padding: 20px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 22px;
  }

  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-grid > div,
  .footer-grid > nav {
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
  }

  .footer-grid > div:first-child {
    padding-top: 0;
    border-top: 0;
  }
  .footer-bottom {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-top-btn {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .landing-header {
    padding: 12px;
  }
  .platform-overview,
  .funnel-section,
  .pricing-preview-section {
    padding-block: 28px 48px;
  }

  .reviews-section,
  .catalog-section,
  .resource-section,
  .career-section,
  .learning-path-section,
  .certificate-section,
  .team-section,
  .request-section,
  .account-section,
  .admin-section {
    padding: 32px 16px;
  }

  .brand-dark .mark,
  .mark {
    width: 38px;
    height: 38px;
  }

  .brand h1 {
    font-size: 1rem;
  }

  .landing-header .brand p {
    max-width: 210px;
    font-size: 0.82rem;
  }

  .hero-band h2 {
    font-size: 1.8rem;
    line-height: 1.08;
  }

  .hero-copy {
    font-size: 0.98rem;
    line-height: 1.45;
    margin-top: 12px !important;
  }

  .hero-actions {
    margin-top: 14px;
  }

  .hero-command-panel .panel-kicker {
    display: none;
  }

  .terminal-lines span {
    font-size: 0.82rem;
  }

  .hero-actions,
  .access-summary,
  .action-row,
  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .review-title-row {
    align-items: flex-start;
    gap: 10px;
  }

  .carousel-icon-btn {
    width: 36px;
    height: 36px;
  }

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

  .review-track {
    --review-card-width: 100%;
  }

  .all-exam-dropdown-head,
  .all-exam-option,
  .all-category-option {
    display: grid;
  }

  .all-exam-list,
  .all-category-list {
    grid-template-columns: 1fr;
    max-height: 360px;
  }

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

  .answer-option {
    grid-template-columns: 30px 1fr;
  }

  .primary-btn,
  .secondary-btn,
  .catalog-search-panel .secondary-btn {
    width: 100%;
  }

  .catalog-pagination {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .catalog-pagination .secondary-btn {
    width: 100%;
  }

  .landing-footer {
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 0;
    border-radius: 0;
  }

  .landing-footer p {
    font-size: 0.94rem;
  }
}

@media (max-width: 980px) {
  .admin-ops-grid,
  .compact-log-list {
    grid-template-columns: 1fr;
  }

  .admin-detail-panel {
    position: static;
  }

  .admin-subscriber-toolbar,
  .admin-audit-toolbar {
    grid-template-columns: 1fr;
  }

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

  .admin-table-head {
    display: none;
  }

  .admin-table-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .compact-admin-grid {
    grid-template-columns: 1fr;
  }

  .admin-pagination {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pagination-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .review-track {
    transition: none;
  }

  * {
    scroll-behavior: auto !important;
  }
}






/* Marketplace redesign */
.marketplace-header {
  background: #071814;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.brand-home-btn {
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
}

.marketplace-header .landing-nav {
  border: 0;
  background: transparent;
  border-radius: 0;
  gap: 4px;
}

body.content-route-active .marketplace-header {
  position: sticky;
}

.marketplace-header .landing-nav .nav-link {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 11px;
}

.nav-link:hover,
.marketplace-header .landing-nav .nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.marketplace-header .landing-nav .nav-link.active,
.marketplace-header .landing-nav .nav-link[aria-current="page"],
.marketplace-header .account-menu-btn.active,
.marketplace-header .header-cart-link.active {
  background: #d9f6ef;
  color: #08241d;
}

.marketplace-header .brand-home-btn.active .mark,
.marketplace-header .brand-home-btn[aria-current="page"] .mark {
  background: #ffffff;
  color: var(--dark);
  box-shadow: 0 0 0 2px rgba(217, 246, 239, 0.35);
}

.marketplace-hero {
  min-height: 590px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  align-items: center;
  padding: 78px 48px 54px;
  background:
    linear-gradient(115deg, rgba(5, 18, 27, 0.94), rgba(8, 73, 67, 0.84), rgba(16, 52, 78, 0.62)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=82");
  background-size: cover;
  background-position: center;
}

.marketplace-hero h2 {
  max-width: 940px;
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.hero-copy-block {
  max-width: 990px;
}

.hero-search-card {
  display: grid;
  grid-template-columns: minmax(190px, 0.35fr) minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: end;
  max-width: 960px;
  margin-top: 24px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.hero-search-card label {
  display: grid;
  gap: 6px;
  color: #243631;
  font-weight: 900;
}

.hero-search-card span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #60716d;
}

.hero-search-card select,
.hero-search-card input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #071411;
  font-weight: 800;
}

.hero-search-card .primary-btn {
  min-height: 46px;
  padding: 0 22px;
}

.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-quick-links button,
.provider-chip-grid button,
.popular-exam-grid article button {
  border: 1px solid rgba(13, 124, 102, 0.22);
  border-radius: 999px;
  background: #ffffff;
  color: #0b3b32;
  min-height: 34px;
  padding: 0 13px;
  font-weight: 900;
}

.hero-quick-links button {
  background: rgba(255, 255, 255, 0.12);
  color: #e8fbf6;
  border-color: rgba(255, 255, 255, 0.22);
}
@media (min-width: 981px) {
  .hero-quick-links {
    gap: 5px;
  }

  .hero-quick-links button {
    min-height: 32px;
    padding: 0 8px;
    font-size: 0.84rem;
    white-space: nowrap;
  }
}

.marketplace-stats-panel {
  background: rgba(3, 17, 24, 0.72);
}

.market-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.market-stats-grid span {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: #dff7f1;
}

.market-stats-grid b {
  color: #ffffff;
  font-size: 1.45rem;
}

.hero-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

.provider-directory-section,
.exam-marketplace-section,
.marketplace-flow-section,
.marketplace-pricing-preview,
.marketplace-reviews {
  padding: 36px 42px;
}

.provider-directory-section,
.marketplace-flow-section {
  background: #ffffff;
}

.exam-marketplace-section,
.marketplace-pricing-preview,
.marketplace-reviews {
  background: #f4f7f6;
}

.compact-section-head {
  margin-bottom: 16px;
}

.compact-section-head h2 {
  font-size: clamp(1.45rem, 3vw, 2.25rem);
}

.provider-chip-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}


.provider-directory-action {
  display: flex;
  justify-content: center;
  margin-top: 18px;
}

.provider-directory-action .secondary-btn {
  min-width: 210px;
}
.provider-chip-grid button {
  min-height: 48px;
  border-radius: 8px;
  justify-content: flex-start;
  padding: 0 14px;
  box-shadow: 0 8px 24px rgba(24, 44, 39, 0.06);
}

.provider-chip-grid button:hover,
.provider-chip-grid button:focus-visible,
.popular-exam-grid article button:hover,
.popular-exam-grid article button:focus-visible {
  background: #0d7c66;
  color: #ffffff;
}


.provider-logo-grid button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  overflow: hidden;
  text-align: left;
}

.provider-logo-grid button > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.provider-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 7px;
  border: 1px solid rgba(8, 45, 38, 0.12);
  background: #edf7f5;
  color: #062920;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
}

.provider-logo {
  background: #ffffff;
  border-color: rgba(13, 124, 102, 0.18);
  box-shadow: 0 4px 12px rgba(24, 44, 39, 0.08);
}

.provider-logo img {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.provider-logo.wordmark {
  width: 64px;
  flex-basis: 64px;
}

.provider-logo.wordmark img {
  width: 58px;
  height: 24px;
}

.provider-logo .provider-fallback {
  display: inline-grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 0.67rem;
  font-weight: 900;
}

.provider-logo .provider-fallback[hidden],
.provider-logo img[hidden] {
  display: none;
}

.provider-logo-grid button:hover .provider-mark,
.provider-logo-grid button:focus-visible .provider-mark {
  background: rgba(255, 255, 255, 0.96);
  color: #062920;
}

.provider-mark.comptia,
.provider-mark.microsoft,
.provider-mark.google,
.provider-mark.cisco,
.provider-mark.tableau {
  background: #e8f2ff;
  color: #073763;
}

.provider-mark.aws,
.provider-mark.oracle,
.provider-mark.eccouncil,
.provider-mark.offsec,
.provider-mark.tcm {
  background: #fff1de;
  color: #703600;
}

.provider-mark.isaca,
.provider-mark.isc2,
.provider-mark.giac,
.provider-mark.iapp,
.provider-mark.nist,
.provider-mark.pecb {
  background: #e9f8ef;
  color: #0b5130;
}

.provider-mark.paloalto,
.provider-mark.fortinet,
.provider-mark.juniper,
.provider-mark.cwnp,
.provider-mark.vmware {
  background: #eef0ff;
  color: #222a70;
}

.provider-mark.github,
.provider-mark.python,
.provider-mark.mongodb,
.provider-mark.postgres,
.provider-mark.lpi {
  background: #f1f4f2;
  color: #1c2f2a;
}

.provider-mark.htb,
.provider-mark.ine,
.provider-mark.sbt,
.provider-mark.zeropoint {
  background: #e8fbf8;
  color: #06433b;
}
.popular-exam-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.popular-exam-grid article {
  display: grid;
  gap: 9px;
  min-height: 210px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(24, 44, 39, 0.07);
}

.popular-exam-grid article span {
  width: fit-content;
  border-radius: 999px;
  background: #eef6f3;
  color: #0d7c66;
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.popular-exam-grid article h3 {
  margin: 0;
  font-size: 1.15rem;
}

.popular-exam-grid article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.popular-exam-grid article button {
  margin-top: auto;
  width: fit-content;
  border-radius: 8px;
}

@media (max-width: 980px) {
  .marketplace-hero,
  .hero-search-card,
  .popular-exam-grid,
  .provider-chip-grid {
    grid-template-columns: 1fr;
  }

  .marketplace-hero {
    padding: 46px 20px 28px;
  }

  .provider-directory-section,
  .exam-marketplace-section,
  .marketplace-flow-section,
  .marketplace-pricing-preview,
  .marketplace-reviews {
    padding: 28px 18px;
  }

  .hero-quick-links button {
    flex: 1 1 calc(50% - 8px);
    min-width: 140px;
  }
}

@media (max-width: 720px) {
  .marketplace-header .brand p {
    display: none;
  }

  .hero-search-card {
    padding: 10px;
  }

  .market-stats-grid {
    grid-template-columns: 1fr;
  }

  .market-stats-grid span {
    justify-items: start;
    gap: 8px;
    padding: 18px 16px;
  }

  .market-stats-grid b {
    display: block;
    font-size: 1.9rem;
    line-height: 1;
  }
}

/* Account dropdown and conditional cart */
.account-menu-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.account-menu-btn,
.header-cart-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  display: grid;
  min-width: 240px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(9, 29, 24, 0.18);
}

.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 8px;
  background: transparent;
  color: #10231f;
  font-weight: 800;
  text-align: left;
}

.account-dropdown-item:hover,
.account-dropdown-item:focus-visible {
  background: #eef6f3;
  color: #0d7c66;
}

.nav-icon {
  position: relative;
  display: inline-block;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
}

.account-icon::before,
.register-icon::before,
.logout-icon::before,
.admin-icon::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.account-icon::after,
.register-icon::after,
.logout-icon::after,
.admin-icon::after {
  content: "";
  position: absolute;
  left: 3px;
  bottom: 2px;
  width: 14px;
  height: 8px;
  border: 2px solid currentColor;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  border-bottom: 0;
}

.register-icon::after {
  box-shadow: 8px -8px 0 -6px currentColor, 8px -8px 0 -4px transparent;
}

.payment-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 5px;
  width: 18px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.payment-icon::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 14px;
  height: 2px;
  background: currentColor;
}

.access-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.access-icon::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.share-icon::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 4px;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.share-icon::after {
  content: "★";
  position: absolute;
  left: 6px;
  top: 1px;
  font-size: 11px;
  color: currentColor;
}

.cart-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 5px;
  width: 15px;
  height: 9px;
  border: 2px solid currentColor;
  border-top: 0;
  transform: skewX(-10deg);
}

.cart-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 10px 0 0 currentColor;
}

.cart-count-badge {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 999px;
  background: #dff7f1;
  color: #0d332c;
  font-size: 0.75rem;
  font-weight: 900;
}

@media (max-width: 860px) {
  .account-menu-wrap {
    display: grid;
    width: 100%;
  }

  .account-menu-btn,
  .header-cart-link {
    justify-content: flex-start;
    width: 100%;
  }

  .account-dropdown {
    position: static;
    min-width: 0;
    width: 100%;
    margin-top: 8px;
    box-shadow: none;
  }
}
.billing-actions-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0;
}

.billing-actions-panel h3,
.billing-actions-panel p {
  margin: 6px 0 0;
}

.billing-actions-buttons {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 0;
}
.checkout-return-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
}

.checkout-return-panel.warning {
  border-left-color: #b7791f;
  background: #fffaf0;
}

.checkout-return-panel h3,
.checkout-return-panel p {
  margin: 6px 0 0;
}

.checkout-return-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 0;
}
.checkout-cart-panel {
  display: grid;
  gap: 16px;
  margin-top: 16px;
  scroll-margin-top: 110px;
}

.checkout-cart-panel.cart-focus {
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.22), 0 18px 44px rgba(9, 29, 24, 0.12);
}

.checkout-cart-header,
.checkout-cart-item,
.checkout-cart-details {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.checkout-cart-header h3,
.checkout-cart-header p,
.checkout-cart-item h4,
.checkout-cart-item p,
.checkout-cart-total p {
  margin: 6px 0 0;
}

.checkout-cart-header > strong {
  font-size: 1.3rem;
  white-space: nowrap;
}

.checkout-cart-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.85fr);
  gap: 16px;
  align-items: start;
}

.checkout-cart-item,
.checkout-cart-details {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbf9;
  padding: 14px;
}

.checkout-cart-price,
.checkout-cart-total {
  display: grid;
  gap: 4px;
  min-width: 180px;
  text-align: right;
}

.checkout-cart-details .checkout-cart-total {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.checkout-cart-price strong,
.checkout-cart-total strong {
  font-size: 1.2rem;
}

.checkout-cart-price span,
.checkout-cart-total p,
.checkout-cart-next-step {
  color: var(--muted);
}

.checkout-cart-details ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
}

.checkout-cart-next-step {
  grid-column: 1 / -1;
  margin: 0;
}

.checkout-cart-actions {
  justify-content: flex-end;
  margin-top: 0;
}

@media (max-width: 720px) {
  .billing-actions-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .billing-actions-buttons,
  .billing-actions-buttons .primary-btn,
  .billing-actions-buttons .secondary-btn {
    width: 100%;
  }

  .checkout-return-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-return-actions,
  .checkout-return-actions .primary-btn,
  .checkout-return-actions .secondary-btn {
    width: 100%;
  }
  .checkout-cart-body {
    grid-template-columns: 1fr;
  }

  .checkout-cart-header,
  .checkout-cart-item,
  .checkout-cart-details {
    align-items: stretch;
    flex-direction: column;
  }

  .checkout-cart-header > strong,
  .checkout-cart-price,
  .checkout-cart-total {
    min-width: 0;
    text-align: left;
  }

  .checkout-cart-actions,
  .checkout-cart-actions .primary-btn,
  .checkout-cart-actions .secondary-btn {
    width: 100%;
  }
}
.account-status-actions {
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.account-status-actions .primary-btn,
.account-status-actions .secondary-btn {
  min-height: 42px;
}
.account-dropdown-status {
  display: grid;
  gap: 2px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.account-dropdown-status span,
.account-dropdown-status small {
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.25;
}

.account-dropdown-status strong {
  font-size: 0.98rem;
  line-height: 1.25;
}

.account-dropdown-status .account-tier-label {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 1px;
}

.account-dropdown-status .account-tier-label.premium {
  color: #64f1c0;
}

.checkout-provider-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfa;
}

.checkout-provider-card strong,
.checkout-provider-card p {
  margin: 0;
}

.checkout-provider-card p {
  color: var(--muted);
  line-height: 1.42;
}

.checkout-provider-card.stripe-ready {
  border-color: rgba(13, 124, 102, 0.35);
  background: #edf8f4;
}

.checkout-provider-card.stripe-pending {
  border-style: dashed;
}

.reviews-section,
.marketplace-reviews {
  max-width: 100%;
  overflow-x: hidden;
}


@media (max-width: 720px) {
  .premium-dashboard-head {
    display: grid;
  }

  .premium-dashboard-head .secondary-btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .learning-detail-head,
  .learning-sequence article {
    grid-template-columns: 1fr;
  }

  .learning-detail-head {
    display: grid;
  }

  .learning-progress-ring {
    width: 96px;
  }

  .learning-path-actions .primary-btn,
  .learning-path-actions .secondary-btn {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .career-signal-grid,
  .advisor-mini-grid,
  .certificate-layout,
  .team-workspace-layout,
  .team-detail-grid,
  .team-manager-grid,
  .team-report-grid {
    grid-template-columns: 1fr;
  }

  .team-report-card:nth-child(3) {
    grid-column: auto;
  }

  .certificate-eligible-row {
    align-items: stretch;
    flex-direction: column;
  }
}

/* Marketing and content funnel */
.marketing-funnel-preview,
.marketing-resource-section {
  padding: 36px 42px;
  background: linear-gradient(180deg, #ffffff, #eef6f3);
}

.marketing-preview-grid,
.marketing-resource-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.marketing-preview-grid article,
.marketing-resource-grid article,
.marketing-hero-panel,
.marketing-comparison-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.marketing-preview-grid article {
  display: grid;
  gap: 8px;
  min-height: 170px;
  padding: 20px;
}

.marketing-preview-grid span,
.marketing-resource-grid span {
  width: fit-content;
  border-radius: 999px;
  background: #e7f6f1;
  color: #0d7c66;
  padding: 4px 9px;
  font-weight: 900;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.marketing-preview-grid h3,
.marketing-preview-grid p,
.marketing-resource-grid h3,
.marketing-resource-grid p,
.marketing-hero-panel h3,
.marketing-hero-panel p,
.marketing-comparison-panel h3,
.marketing-comparison-panel p {
  margin: 0;
}

.marketing-preview-grid p,
.marketing-resource-grid p,
.marketing-hero-panel p,
.marketing-comparison-panel p,
.marketing-comparison-panel li {
  color: var(--muted);
  line-height: 1.5;
}

.marketing-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 22px;
  background: linear-gradient(135deg, #09261f, #155f52);
  color: #ffffff;
}

.marketing-hero-panel p,
.marketing-hero-panel label {
  color: #dff7f1;
}

.marketing-lead-form {
  display: grid;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.marketing-lead-form label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.marketing-lead-form input,
.marketing-lead-form select {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: var(--ink);
}

#marketingLeadMessage,
.marketing-lead-form .form-message,
.marketing-hero-panel .form-message {
  font-weight: 700 !important;
  margin-top: 10px !important;
  line-height: 1.45 !important;
  border-radius: 6px !important;
  display: block !important;
}

#marketingLeadMessage.success,
.marketing-lead-form .form-message.success,
.marketing-hero-panel .form-message.success {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.22) !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

#marketingLeadMessage.error,
.marketing-lead-form .form-message.error,
.marketing-hero-panel .form-message.error {
  color: #ffffff !important;
  background: rgba(220, 38, 38, 0.55) !important;
  padding: 10px 14px !important;
  border: 1px solid rgba(255, 120, 120, 0.5) !important;
}

.marketing-resource-grid article {
  display: grid;
  gap: 10px;
  min-height: 245px;
  padding: 18px;
}

.marketing-resource-grid button {
  width: fit-content;
  min-height: 38px;
  margin-top: auto;
  border: 1px solid rgba(13, 124, 102, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: #0b3b32;
  padding: 0 13px;
  font-weight: 900;
}

.marketing-resource-grid button:hover,
.marketing-resource-grid button:focus-visible {
  background: #0d7c66;
  color: #ffffff;
}

.marketing-comparison-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  margin-top: 18px;
  padding: 22px;
}

.marketing-comparison-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.landing-view.content-route-active .marketing-funnel-preview {
  display: none;
}

@media (max-width: 980px) {
  .marketing-funnel-preview,
  .marketing-resource-section {
    padding: 28px 18px;
  }

  .marketing-preview-grid,
  .marketing-resource-grid,
  .marketing-hero-panel,
  .marketing-comparison-panel {
    grid-template-columns: 1fr;
  }
}
/* Premium content experience */
.icon-btn.bookmarked,
.icon-btn.bookmarked:hover,
.icon-btn.bookmarked:focus-visible {
  border-color: #0d7c66;
  background: #d9f6ef;
  color: #08241d;
}

.premium-study-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.premium-study-summary article {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #09261f, #173d36);
  color: #ffffff;
}

.premium-study-summary strong {
  font-size: 1.6rem;
}

.premium-study-summary span {
  color: #d8eee8;
  font-weight: 800;
}

.premium-study-coach,
.premium-study-item,
.premium-note-card,
.premium-flashcard {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.premium-study-coach {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.premium-study-coach h3,
.premium-study-coach p,
.premium-study-item h3,
.premium-study-item p,
.premium-note-card p,
.premium-flashcard p {
  margin: 0;
}

.premium-study-coach p,
.premium-study-item p,
.premium-note-card p,
.premium-flashcard p {
  color: var(--muted);
  line-height: 1.5;
}

.premium-study-coach.locked,
.premium-study-item.locked,
.premium-study-summary.locked article {
  background: #f7faf9;
}

.premium-study-list {
  display: grid;
  gap: 14px;
}

.premium-study-item {
  display: grid;
  gap: 12px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.premium-study-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.premium-study-item-head span {
  width: fit-content;
  border-radius: 999px;
  background: #eef6f3;
  color: #0d7c66;
  padding: 4px 9px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.premium-note-card,
.premium-flashcard {
  display: grid;
  gap: 6px;
  padding: 14px;
  background: #f8fbfa;
  box-shadow: none;
}

.premium-flashcard {
  border-left: 4px solid #0d7c66;
}

@media (max-width: 760px) {
  .premium-study-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .premium-study-coach,
  .premium-study-item-head {
    display: grid;
  }
}

@media (max-width: 520px) {
  .premium-study-summary {
    grid-template-columns: 1fr;
  }
}
/* Settings page contrast, hierarchy, and clean SaaS UI */
.settings-page {
  background: #f8faf9 !important;
}

.settings-page > .section-head {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 24px 28px !important;
  border: 1px solid #dbe7e4 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: #072a24 !important;
  box-shadow: 0 4px 16px rgba(12, 45, 39, 0.04) !important;
}

.settings-page > .section-head h2 {
  color: #072a24 !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  margin: 4px 0 6px !important;
}

.settings-page > .section-head p {
  color: #4b635e !important;
  margin: 0 !important;
}

.settings-page > .section-head .eyebrow {
  color: #0d7c66 !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
}

.settings-page .toolbar-actions .primary-btn {
  background: #0d7c66 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
}

.settings-page .toolbar-actions .primary-btn:hover {
  background: #095949 !important;
}

.settings-page .toolbar-actions .secondary-btn {
  background: #ffffff !important;
  border: 1px solid #cce5df !important;
  color: #0c4f42 !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  padding: 10px 18px !important;
}

.settings-page .toolbar-actions .secondary-btn:hover {
  background: #f0f7f5 !important;
}

.settings-page .settings-grid {
  display: grid !important;
  grid-template-columns: minmax(300px, 340px) 1fr !important;
  gap: 20px !important;
  margin-top: 20px !important;
  align-items: start !important;
}

.settings-page .panel,
.settings-page .form-panel {
  border: 1px solid #dbe7e4 !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  box-shadow: 0 4px 16px rgba(12, 45, 39, 0.04) !important;
  padding: 22px !important;
}

.settings-page .form-panel::before {
  display: none !important;
}

.settings-page .settings-status-card {
  position: relative !important;
  overflow: hidden !important;
  border: 1px solid #dbe7e4 !important;
  background: #ffffff !important;
  color: #072a24 !important;
  padding: 22px !important;
}

.settings-page .settings-status-card::after {
  display: none !important;
}

.settings-page .settings-status-card h3 {
  position: relative !important;
  margin: 0 0 12px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #eef5f3 !important;
  color: #0c4f42 !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
}

.settings-page .settings-status-card #accountStatus {
  position: relative !important;
  display: grid !important;
  gap: 8px !important;
  color: #2d4540 !important;
  font-size: 0.94rem !important;
}

.settings-page .settings-status-card #accountStatus strong {
  font-size: 1.15rem !important;
  color: #072a24 !important;
  display: block !important;
}

.settings-page .settings-status-card #checkoutStatus {
  margin-top: 14px !important;
  padding: 12px 14px !important;
  border: 1px solid #cce5df !important;
  border-radius: 8px !important;
  background: #f6fbf9 !important;
  color: #4b635e !important;
  font-size: 0.88rem !important;
  line-height: 1.45 !important;
}

.settings-page .settings-status-card #accountStatus .account-status-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin-top: 12px !important;
}

.settings-page .settings-status-card #accountStatus .account-status-actions .primary-btn {
  background: #0d7c66 !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700 !important;
  padding: 9px 16px !important;
  border-radius: 6px !important;
}

.settings-page .settings-status-card #accountStatus .account-status-actions .secondary-btn {
  background: #f6fbf9 !important;
  color: #0c4f42 !important;
  border: 1px solid #bad4ce !important;
  font-weight: 700 !important;
  padding: 9px 16px !important;
  border-radius: 6px !important;
}

.settings-page .settings-status-card #accountStatus .account-status-actions .secondary-btn:hover {
  background: #eaf5f2 !important;
}

.settings-grid > .settings-detail-stack {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
}

.settings-grid > .settings-detail-stack > #profileForm {
  grid-column: 1 !important;
}

.settings-grid > .settings-detail-stack > #passwordForm {
  grid-column: 2 !important;
}

.settings-grid > .settings-detail-stack > #affiliateReferralCard {
  grid-column: 1 / -1 !important;
}

.settings-grid > .settings-detail-stack > .settings-shortcut-card {
  grid-column: 1 / -1 !important;
}

.settings-page .form-panel h3 {
  color: #0c4f42 !important;
  font-size: 1.15rem !important;
  font-weight: 800 !important;
  margin: 0 0 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid #eef5f3 !important;
}

.settings-page .form-panel label {
  color: #2d4540 !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  display: grid !important;
  gap: 6px !important;
}

.settings-page .form-panel input {
  border: 1px solid #bad4ce !important;
  background: #fbfdfc !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-size: 0.95rem !important;
  color: #072a24 !important;
}

.settings-page .form-panel input:focus {
  outline: none !important;
  border-color: #0d7c66 !important;
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.16) !important;
  background: #ffffff !important;
}

.settings-page .settings-shortcut-card {
  background: #ffffff !important;
  border: 1px solid #dbe7e4 !important;
}

.settings-page .settings-shortcut-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: 14px !important;
}

.settings-page .settings-shortcut-actions .primary-btn {
  background: #0d7c66 !important;
  color: #ffffff !important;
}

.settings-page .settings-shortcut-actions .secondary-btn {
  background: #f6fbf9 !important;
  color: #0c4f42 !important;
  border: 1px solid #bad4ce !important;
}

@media (max-width: 980px) {
  .settings-page .settings-grid {
    grid-template-columns: 1fr !important;
  }
  .settings-grid > .settings-detail-stack {
    grid-template-columns: 1fr !important;
  }
  .settings-grid > .settings-detail-stack > #profileForm,
  .settings-grid > .settings-detail-stack > #passwordForm {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 760px) {
  .settings-page > .section-head {
    display: grid !important;
    gap: 14px !important;
    padding: 18px !important;
  }

  .settings-page .toolbar-actions {
    width: 100% !important;
  }

  .settings-page .toolbar-actions button {
    flex: 1 1 180px !important;
  }
}
/* Download credit add-on */
.download-credits-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  border-color: rgba(13, 124, 102, 0.22);
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
}

.download-credit-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.download-credit-head h3,
.download-credit-head p,
.download-product-card h4,
.download-product-card p,
.download-export-grid h4,
.download-export-grid p {
  margin: 0;
}

.download-credit-head p,
.download-product-card p,
.download-export-grid p,
.download-history li {
  color: var(--muted);
}

.download-credit-balance {
  min-width: 150px;
  display: grid;
  gap: 2px;
  padding: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #09261f, #173d36);
  color: #ffffff;
  text-align: right;
}

.download-credit-balance strong {
  font-size: 1.8rem;
}

.download-credit-balance span,
.download-credit-balance small {
  color: #d8eee8;
  font-weight: 800;
}

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

.download-product-card,
.download-checkout-card,
.download-export-grid,
.download-history {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.download-product-card {
  display: grid;
  gap: 9px;
}

.download-product-card strong {
  font-size: 1.3rem;
}

.download-checkout-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  background: #eef8f5;
  border-color: rgba(13, 124, 102, 0.24);
}

.download-export-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) minmax(180px, 0.8fr) minmax(180px, 0.8fr) auto;
  gap: 14px;
  align-items: end;
}

.download-export-grid label {
  display: grid;
  gap: 6px;
  font-weight: 900;
}

.download-export-grid select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
}

.download-history ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

@media (max-width: 980px) {
  .download-product-grid,
  .download-export-grid {
    grid-template-columns: 1fr;
  }

  .download-credit-head,
  .download-checkout-card {
    display: grid;
  }

  .download-credit-balance {
    text-align: left;
  }
}
/* Saved attempt review */
.review-filter-actions {
  align-items: center;
}

.review-filter-actions select {
  min-height: 42px;
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 0 12px;
  font-weight: 800;
}

.attempt-review-summary article:nth-child(2) {
  border-color: rgba(13, 124, 102, 0.28);
  background: #eef8f5;
}

.attempt-review-summary article:nth-child(3) {
  border-color: rgba(182, 61, 61, 0.24);
  background: #fff4f4;
}

.attempt-review-item {
  border-left: 4px solid #70827e;
}

.attempt-review-item.correct {
  border-left-color: #0d7c66;
}

.attempt-review-item.wrong,
.attempt-review-item.incorrect {
  border-left-color: #b63d3d;
}

.attempt-review-item.skipped {
  border-left-color: #c58a19;
}

.attempt-review-choices {
  display: grid;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.attempt-review-choice {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.attempt-review-choice.selected {
  border-color: #315cc8;
  background: #eef0ff;
}

.attempt-review-choice.correct {
  border-color: rgba(13, 124, 102, 0.38);
  background: #eef8f5;
}

.attempt-review-choice.incorrect {
  border-color: rgba(182, 61, 61, 0.35);
  background: #fff4f4;
}

.badge.correct {
  background: #d9f6ef;
  color: #07503f;
}

.badge.wrong,
.badge.incorrect {
  background: #ffe2e2;
  color: #8f2525;
}

.badge.skipped {
  background: #fff3d7;
  color: #794f00;
}

@media (max-width: 760px) {
  .review-filter-actions,
  .review-filter-actions select {
    width: 100%;
  }
}

.marketplace-stats-panel .hero-secondary {
  background: #ffffff;
  color: #082f28;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);
}

.marketplace-stats-panel .hero-secondary:hover,
.marketplace-stats-panel .hero-secondary:focus-visible {
  background: #e9fbf6;
  color: #06241f;
  border-color: #b9ebe0;
}

.landing-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 12px;
  background: var(--dark);
  pointer-events: none;
}

.landing-header + .landing-main {
  margin-top: 0;
}

.dashboard-topbar-actions {
  align-items: stretch;
}

.dashboard-account-badge {
  min-width: 220px;
  max-width: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(13, 124, 102, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #eef9f5, #ffffff);
  color: #0b2d27;
  box-shadow: 0 10px 24px rgba(8, 38, 34, 0.07);
}

.dashboard-account-badge span,
.dashboard-account-badge small {
  color: #4f6662;
  font-size: 0.78rem;
  line-height: 1.25;
}

.dashboard-account-badge strong {
  color: #061d19;
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .dashboard-topbar-actions,
  .dashboard-account-badge {
    width: 100%;
  }
}

/* Mobile usability pass */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  max-width: 100%;
}

@media (max-width: 860px) {
  .landing-header {
    position: sticky;
    min-height: 80px;
  }

  .mobile-menu-open .landing-header {
    grid-template-areas: "brand menu";
  }

  .mobile-menu-open .landing-nav {
    position: absolute;
    top: calc(100% + 4px);
    left: 10px;
    right: 10px;
    z-index: 1000;
    max-height: min(85vh, calc(100dvh - 88px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 14px 14px 42px 14px;
    border: 1px solid rgba(210, 232, 226, 0.28);
    border-radius: 12px;
    background: #08241f;
    box-shadow: 0 24px 52px rgba(0, 0, 0, 0.45);
  }

  .mobile-menu-open .landing-nav .nav-link,
  .mobile-menu-open .nav-menu-trigger,
  .mobile-menu-open .account-menu-btn,
  .mobile-menu-open .header-cart-link,
  .mobile-menu-open .mobile-only-nav {
    min-height: 44px;
    width: 100%;
  }

  .mobile-menu-open .nav-submenu {
    display: none;
    max-height: none;
  }

  .mobile-menu-open .nav-menu-wrap.open .nav-submenu {
    display: grid;
  }

  .mobile-menu-open .account-dropdown {
    position: static;
    display: grid;
    width: 100%;
    margin-top: 6px;
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.2);
    box-shadow: none;
    border-radius: 8px;
    padding: 6px 8px;
  }

  .mobile-menu-open .account-dropdown-item,
  .mobile-menu-open .account-dropdown-summary {
    color: #e4f4ef;
  }

  .topbar-actions {
    min-width: 0;
  }

  .dashboard-account-badge {
    min-width: 0;
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero-quick-links {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-quick-links button,
  .provider-chip-grid button,
.pricing-teaser-card button,
  .pricing-card button,
  .team-export-actions .secondary-btn {
    width: 100%;
  }

  .provider-logo-grid button {
    justify-content: flex-start;
    min-height: 54px;
  }

  .app-shell.active-view {
    min-height: 100vh;
  }

  .sidebar {
    padding-bottom: 22px;
  }

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

  .topbar-actions,
  .dashboard-topbar-actions,
  .review-filter-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .topbar-actions > *,
  .review-filter-actions > * {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .admin-db-stats,
  .admin-db-table-grid {
    grid-template-columns: 1fr;
  }

  .admin-db-preview-head {
    display: grid;
  }

  .admin-db-preview-table {
    min-width: 720px;
  }
  .auth-access-page {
    padding: 0;
  }

  .auth-access-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 24px 14px 34px;
  }

  .auth-copy-panel h2 {
    font-size: 2.45rem;
    line-height: 1.02;
  }

  .auth-copy-panel > p {
    font-size: 1rem;
  }

  .auth-benefit-card {
    margin-top: 20px;
    padding: 16px;
  }

  .auth-card {
    width: 100%;
    justify-self: stretch;
    padding: 22px;
  }

  .auth-tabs {
    margin-bottom: 20px;
  }

  .auth-tab {
    min-height: 44px;
  }

  .auth-copy-actions .secondary-btn {
    flex: 1 1 160px;
  }

  .auth-access-page .account-message {
    margin: 0 auto 20px;
    padding: 0 14px;
  }
}

/* Standalone billing and subscription page */
.billing-standalone-page {
  min-height: calc(100vh - 98px);
  padding: clamp(24px, 4vw, 44px);
  background:
    radial-gradient(circle at 52% -20%, rgba(0, 193, 135, 0.18), transparent 34%),
    linear-gradient(135deg, #050a18 0%, #081426 48%, #061018 100%);
  color: #f7fbff;
}

.billing-standalone-page .eyebrow {
  color: #4ff0bb;
}

.billing-hero-panel {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 26px;
}

.billing-hero-panel h2,
.billing-hero-panel p {
  margin: 0;
}

.billing-hero-panel h2 {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

.billing-hero-panel p:not(.eyebrow) {
  max-width: 760px;
  color: #b9cce6;
  font-size: 1.05rem;
  line-height: 1.5;
}

.billing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.billing-standalone-page .secondary-btn,
.billing-standalone-page .primary-btn {
  min-height: 48px;
}

.billing-standalone-page .secondary-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #f7fbff;
  border-color: rgba(185, 204, 230, 0.24);
}

.billing-standalone-page .secondary-btn:hover,
.billing-standalone-page .secondary-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.billing-standalone-page .access-summary,
.billing-standalone-page .billing-actions-panel,
.billing-standalone-page .checkout-return-panel,
.billing-standalone-page .checkout-cart-panel,
.billing-standalone-page .download-credits-panel {
  border: 1px solid rgba(137, 188, 217, 0.18);
  background: rgba(16, 28, 48, 0.88);
  color: #f7fbff;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.billing-standalone-page .access-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.billing-standalone-page .access-summary strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.billing-standalone-page .access-summary span,
.billing-standalone-page .billing-actions-panel p,
.billing-standalone-page .system-note,
.billing-standalone-page .checkout-cart-next-step {
  color: #bfd0e8;
}

.billing-standalone-page .pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 26px 0 28px;
}

.billing-standalone-page .pricing-card.subscription-plan-card {
  position: relative;
  min-height: 520px;
  padding: 30px;
  overflow: visible;
  border: 1px solid rgba(137, 188, 217, 0.2);
  background: #111a2c;
  color: #f7fbff;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.24);
}

.billing-standalone-page .pricing-card.subscription-plan-card.popular,
.billing-standalone-page .pricing-card.subscription-plan-card.active {
  border-color: rgba(0, 203, 143, 0.8);
  box-shadow: 0 0 0 1px rgba(0, 203, 143, 0.35), 0 28px 72px rgba(0, 0, 0, 0.34);
}

.subscription-plan-top {
  display: grid;
  gap: 10px;
}

.billing-plan-badge {
  width: max-content;
  min-height: 30px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #a9bedc;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.billing-plan-badge.popular {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: #00bf86;
  color: #ffffff;
  font-size: 0.86rem;
  text-transform: none;
}

.billing-plan-badge.current {
  background: rgba(0, 203, 143, 0.14);
  color: #64f1c0;
}

.billing-plan-badge.upgrade-badge {
  background: rgba(0, 191, 134, 0.14);
  color: #64f1c0;
}

.billing-plan-kicker {
  margin: 10px 0 0;
  color: #8ea7cc;
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.billing-standalone-page .pricing-card h3 {
  color: #ffffff;
  font-size: 1.4rem;
}

.billing-plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-top: 4px;
}

.billing-plan-price strong {
  color: #ffffff;
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1;
}

.billing-plan-price span,
.billing-plan-usage,
.billing-plan-lead {
  color: #8ea7cc;
}

.billing-plan-lead {
  line-height: 1.5;
}

.billing-feature-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: #e7f0ff;
}

.billing-feature-list li {
  position: relative;
  padding-left: 28px;
  line-height: 1.45;
}

.billing-feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #00d694;
  font-weight: 900;
}

.billing-plan-action {
  align-self: end;
  width: 100%;
  min-height: 56px;
  border-radius: 12px;
}

.billing-standalone-page .plan-action-btn:disabled {
  background: rgba(255, 255, 255, 0.08);
  color: #7f93b2;
  border-color: rgba(185, 204, 230, 0.12);
  opacity: 1;
}

.billing-standalone-page .billing-actions-panel h3,
.billing-standalone-page .checkout-return-panel h3,
.billing-standalone-page .checkout-cart-panel h3,
.billing-standalone-page .download-credits-panel h3,
.billing-standalone-page .download-product-card h4,
.billing-standalone-page .download-export-grid h4,
.billing-standalone-page .download-history strong {
  color: #ffffff;
}

.billing-standalone-page .checkout-cart-item,
.billing-standalone-page .checkout-cart-details,
.billing-standalone-page .download-product-card,
.billing-standalone-page .download-checkout-card,
.billing-standalone-page .download-export-grid,
.billing-standalone-page .download-history {
  border-color: rgba(137, 188, 217, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f7fbff;
}

.billing-standalone-page .checkout-provider-card,
.billing-standalone-page .checkout-cart-total {
  border-color: rgba(137, 188, 217, 0.18);
  background: rgba(6, 16, 24, 0.6);
}

.billing-standalone-page .download-credit-balance {
  background: linear-gradient(135deg, #00a878, #07342d);
}

.billing-standalone-page .download-credit-head p,
.billing-standalone-page .download-product-card p,
.billing-standalone-page .download-export-grid p,
.billing-standalone-page .download-history li,
.billing-standalone-page .checkout-cart-details li,
.billing-standalone-page .checkout-cart-item p {
  color: #bfd0e8;
}

.billing-standalone-page select,
.billing-standalone-page input,
.billing-standalone-page textarea {
  background: #ffffff;
  color: #071f2b;
}

.billing-standalone-page .form-message {
  color: #67efbe;
}

.billing-standalone-page .form-message.error {
  color: #ffb0b0;
}

@media (max-width: 980px) {
  .billing-standalone-page {
    padding: 22px 14px 34px;
  }

  .billing-hero-panel,
  .billing-standalone-page .access-summary,
  .billing-standalone-page .billing-actions-panel {
    display: grid;
  }

  .billing-hero-actions,
  .billing-actions-buttons {
    justify-content: stretch;
  }

  .billing-hero-actions .secondary-btn,
  .billing-actions-buttons .primary-btn,
  .billing-actions-buttons .secondary-btn {
    width: 100%;
  }

  .billing-standalone-page .pricing-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .billing-standalone-page .pricing-card.subscription-plan-card {
    min-height: auto;
    padding: 24px;
  }
}
/* Billing light-theme refinement */
.billing-standalone-page {
  padding: clamp(28px, 4vw, 56px) clamp(22px, 5vw, 76px) clamp(40px, 5vw, 70px);
  background:
    radial-gradient(circle at 16% 0%, rgba(13, 124, 102, 0.13), transparent 30%),
    linear-gradient(180deg, #f4faf7 0%, #eef5f2 46%, #f8fbfa 100%);
  color: var(--ink);
}

.billing-standalone-page .eyebrow {
  color: #38e0ad;
}

.billing-hero-panel {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(5, 18, 27, 0.92), rgba(8, 73, 67, 0.82), rgba(16, 52, 78, 0.54)),
    url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1800&q=80");
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
}

.billing-hero-panel h2 {
  color: #ffffff;
}

.billing-hero-panel p:not(.eyebrow) {
  color: #def4ef;
}

.billing-hero-panel .secondary-btn {
  background: rgba(255, 255, 255, 0.94);
  color: #0b312a;
  border-color: rgba(255, 255, 255, 0.48);
}

.billing-hero-panel .secondary-btn:hover,
.billing-hero-panel .secondary-btn:focus-visible {
  background: #ffffff;
  color: #08241d;
}

.billing-standalone-page .access-summary,
.billing-standalone-page .billing-actions-panel,
.billing-standalone-page .checkout-return-panel,
.billing-standalone-page .checkout-cart-panel,
.billing-standalone-page .download-credits-panel {
  border: 1px solid rgba(13, 124, 102, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 18px 50px rgba(24, 44, 39, 0.1);
}

.billing-standalone-page .access-summary strong,
.billing-standalone-page .billing-actions-panel h3,
.billing-standalone-page .checkout-return-panel h3,
.billing-standalone-page .checkout-cart-panel h3,
.billing-standalone-page .download-credits-panel h3,
.billing-standalone-page .download-product-card h4,
.billing-standalone-page .download-export-grid h4,
.billing-standalone-page .download-history strong {
  color: var(--ink);
}

.billing-standalone-page .access-summary span,
.billing-standalone-page .billing-actions-panel p,
.billing-standalone-page .system-note,
.billing-standalone-page .checkout-cart-next-step,
.billing-standalone-page .download-credit-head p,
.billing-standalone-page .download-product-card p,
.billing-standalone-page .download-export-grid p,
.billing-standalone-page .download-history li,
.billing-standalone-page .checkout-cart-details li,
.billing-standalone-page .checkout-cart-item p {
  color: var(--muted);
}

.billing-standalone-page .pricing-grid {
  gap: 22px;
}

.billing-standalone-page .pricing-card.subscription-plan-card {
  grid-template-rows: auto 1fr auto;
  align-content: stretch;
  min-height: 500px;
  border: 1px solid rgba(13, 124, 102, 0.18);
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
  color: var(--ink);
  box-shadow: 0 18px 45px rgba(24, 44, 39, 0.1);
}

.billing-standalone-page .pricing-card.subscription-plan-card.popular {
  background: linear-gradient(180deg, #ffffff, #eef8f5);
}

.billing-standalone-page .pricing-card.subscription-plan-card.popular,
.billing-standalone-page .pricing-card.subscription-plan-card.active {
  border-color: rgba(13, 124, 102, 0.55);
  box-shadow: 0 0 0 2px rgba(13, 124, 102, 0.12), 0 20px 55px rgba(24, 44, 39, 0.13);
}

.billing-plan-badge {
  background: #eef5f2;
  color: #0b3b32;
}

.billing-plan-badge.popular {
  background: #0d7c66;
  color: #ffffff;
}

.billing-plan-badge.current {
  background: #d9f6ef;
  color: #0d6d5a;
}

.billing-plan-badge.upgrade-badge {
  background: #e1f7f0;
  color: #0d7c66;
}

.account-dropdown-status .account-tier-label.premium {
  color: #0d7c66;
}

.billing-plan-kicker,
.billing-plan-price span,
.billing-plan-usage,
.billing-plan-lead {
  color: var(--muted);
}

.billing-standalone-page .pricing-card h3,
.billing-plan-price strong,
.billing-feature-list {
  color: var(--ink);
}

.billing-plan-action {
  border-radius: 8px;
}

.billing-standalone-page .plan-action-btn:disabled {
  background: #eef3f1;
  color: #60716d;
  border-color: var(--line);
}

.billing-standalone-page .secondary-btn {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.billing-standalone-page .secondary-btn:hover,
.billing-standalone-page .secondary-btn:focus-visible {
  background: #eef8f5;
  color: #08241d;
  border-color: rgba(13, 124, 102, 0.32);
}

.billing-standalone-page .checkout-cart-item,
.billing-standalone-page .checkout-cart-details,
.billing-standalone-page .download-product-card,
.billing-standalone-page .download-checkout-card,
.billing-standalone-page .download-export-grid,
.billing-standalone-page .download-history {
  border-color: var(--line);
  background: #ffffff;
  color: var(--ink);
}

.billing-standalone-page .checkout-provider-card,
.billing-standalone-page .checkout-cart-total {
  border-color: rgba(13, 124, 102, 0.18);
  background: #f4faf7;
}

.billing-standalone-page .form-message {
  color: #087255;
}

.billing-standalone-page .form-message.error {
  color: var(--danger);
}

@media (max-width: 980px) {
  .billing-standalone-page {
    padding: 22px 14px 38px;
  }
}
/* Billing layout containment and header alignment */
body.content-route-active.standalone-account-route .marketplace-header {
  border-bottom-color: #071814;
  margin-bottom: 0;
}

body.content-route-active.standalone-account-route .marketplace-header + .landing-main,
.landing-view.standalone-account-route .landing-main {
  padding-top: 0;
}

body.content-route-active.standalone-account-route .billing-standalone-page {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) clamp(28px, 5vw, 72px) clamp(44px, 5vw, 72px);
  border-left: 1px solid rgba(13, 124, 102, 0.12);
  border-right: 1px solid rgba(13, 124, 102, 0.12);
  box-shadow: 0 26px 80px rgba(24, 44, 39, 0.08);
}

body.content-route-active.standalone-account-route:has(.billing-standalone-page:not(.hidden-page)) .landing-main {
  background: linear-gradient(180deg, #071814 0 14px, #e7f0ed 14px 100%);
}

body.content-route-active.standalone-account-route:has(.billing-standalone-page:not(.hidden-page)) .marketplace-header {
  min-height: 98px;
  padding-bottom: 12px;
}

.billing-standalone-page .billing-hero-panel,
.billing-standalone-page .access-summary,
.billing-standalone-page .billing-actions-panel,
.billing-standalone-page .pricing-grid,
.billing-standalone-page .download-credits-panel,
.billing-standalone-page .checkout-cart-panel,
.billing-standalone-page .form-message {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 980px) {
  body.content-route-active.standalone-account-route .billing-standalone-page {
    width: 100%;
    padding: 20px 14px 38px;
    border-left: 0;
    border-right: 0;
  }

  body.content-route-active.standalone-account-route:has(.billing-standalone-page:not(.hidden-page)) .marketplace-header {
    min-height: 86px;
    padding-bottom: 10px;
  }
}
/* Explicit billing route spacing */
body.billing-route-active .landing-main {
  background: linear-gradient(180deg, #071814 0 14px, #e7f0ed 14px 100%);
}

body.billing-route-active .marketplace-header {
  min-height: 98px;
  padding-bottom: 12px;
  border-bottom-color: #071814;
}

@media (max-width: 980px) {
  body.billing-route-active .marketplace-header {
    min-height: 86px;
    padding-bottom: 10px;
  }
}
/* Admin route containment and scrollable operations panels */
body.admin-route-active .landing-main {
  background: linear-gradient(180deg, #071814 0 14px, #e9efe9 14px 100%);
}

body.admin-route-active .marketplace-header {
  min-height: 98px;
  padding-bottom: 12px;
  border-bottom-color: #071814;
}

body.admin-route-active .admin-section {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 52px) clamp(28px, 5vw, 72px) clamp(44px, 5vw, 72px);
  border-left: 1px solid rgba(122, 91, 46, 0.12);
  border-right: 1px solid rgba(13, 124, 102, 0.1);
  background:
    radial-gradient(circle at 8% 0%, rgba(185, 107, 22, 0.09), transparent 28%),
    linear-gradient(180deg, #f7f2e8 0%, #f2f8f5 100%);
  box-shadow: 0 26px 80px rgba(76, 57, 30, 0.08);
}

body.admin-route-active .admin-section > .section-head,
body.admin-route-active .admin-summary-grid,
body.admin-route-active .admin-database-console,
body.admin-route-active .admin-toolbar,
body.admin-route-active .admin-pagination,
body.admin-route-active .admin-request-list,
body.admin-route-active .admin-ops-grid,
body.admin-route-active .admin-database-panel,
body.admin-route-active #adminDatabaseBackupStatus {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

body.admin-route-active .admin-toolbar {
  overflow-x: auto;
  scrollbar-width: thin;
}

body.admin-route-active .admin-toolbar > * {
  min-width: 0;
}

body.admin-route-active .admin-user-toolbar,
body.admin-route-active .admin-subscriber-toolbar,
body.admin-route-active .admin-audit-toolbar,
body.admin-route-active .admin-download-toolbar {
  align-items: end;
}

body.admin-route-active .admin-request-list,
body.admin-route-active .compact-log-list,
body.admin-route-active .admin-detail-panel,
body.admin-route-active .admin-database-console,
body.admin-route-active .admin-database-panel {
  min-width: 0;
}

body.admin-route-active .admin-table {
  display: block;
  width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

body.admin-route-active .admin-table-row {
  min-width: 880px;
  margin-bottom: 8px;
}

body.admin-route-active .compact-download-ledger .admin-table-row {
  min-width: 760px;
  grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) minmax(180px, 0.8fr);
}

body.admin-route-active .admin-db-preview-scroll {
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  scrollbar-width: thin;
}

body.admin-route-active .admin-db-preview-table {
  min-width: 980px;
}

body.admin-route-active .admin-ops-grid {
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
}

@media (max-width: 980px) {
  body.admin-route-active .marketplace-header {
    min-height: 86px;
    padding-bottom: 10px;
  }

  body.admin-route-active .admin-section {
    width: 100%;
    padding: 20px 14px 38px;
    border-left: 0;
    border-right: 0;
  }

  body.admin-route-active .admin-toolbar {
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  body.admin-route-active .admin-table-row,
  body.admin-route-active .compact-download-ledger .admin-table-row {
    min-width: 0;
  }

  body.admin-route-active .admin-ops-grid,
  body.admin-route-active .admin-database-panel {
    grid-template-columns: 1fr;
  }
}

/* Admin route header clearance */
body.admin-route-active {
  scroll-padding-top: 132px;
}

body.admin-route-active .landing-main {
  padding-top: 16px;
}

body.admin-route-active #adminSection,
body.admin-route-active #adminDatabaseSection {
  scroll-margin-top: 132px;
}

@media (max-width: 980px) {
  body.admin-route-active {
    scroll-padding-top: 104px;
  }

  body.admin-route-active .landing-main {
    padding-top: 12px;
  }

  body.admin-route-active #adminSection,
  body.admin-route-active #adminDatabaseSection {
    scroll-margin-top: 104px;
  }
}

/* Admin operations side navigation */
body.admin-route-active #adminSection {
  display: grid;
  grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  max-width: 1540px;
}

body.admin-route-active #adminSection > .section-head {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
}

body.admin-route-active #adminSection > .admin-side-nav {
  grid-column: 1;
  grid-row: 2;
  position: sticky;
  top: 116px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 16px;
  border-color: rgba(13, 124, 102, 0.18);
  background: linear-gradient(180deg, #ffffff, #f4faf7);
  box-shadow: 0 18px 44px rgba(24, 44, 39, 0.08);
  z-index: 2;
}

body.admin-route-active #adminSection > .admin-main-flow {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  gap: 18px;
  min-width: 0;
  width: 100%;
}

body.admin-route-active #adminSection > .admin-main-flow > * {
  width: 100%;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
}

body.admin-route-active #adminSection > .admin-main-flow > #adminSummaryGrid {
  margin-top: 0;
}

body.admin-route-active #adminSection > .admin-main-flow > .admin-ops-grid {
  display: grid;
}

.admin-side-nav strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.05rem;
}

.admin-side-nav a,
.admin-side-nav button {
  display: flex;
  align-items: center;
  min-height: 40px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: #21413a;
  font-weight: 900;
  text-align: left;
  text-decoration: none;
}

.admin-side-nav a:hover,
.admin-side-nav a:focus-visible,
.admin-side-nav button:hover,
.admin-side-nav button:focus-visible {
  border-color: rgba(13, 124, 102, 0.22);
  background: #e8f7f3;
  color: #08241d;
  outline: none;
}

.admin-side-nav-divider {
  height: 1px;
  margin: 6px 0;
  background: var(--line);
}

body.admin-route-active #adminSection [id] {
  scroll-margin-top: 124px;
}

@media (max-width: 1100px) {
  body.admin-route-active #adminSection {
    grid-template-columns: 1fr;
  }

  body.admin-route-active #adminSection > .admin-side-nav,
  body.admin-route-active #adminSection > .admin-main-flow {
    grid-column: 1;
    grid-row: auto;
  }

  body.admin-route-active #adminSection > .admin-side-nav {
    position: sticky;
    top: 86px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px;
    scrollbar-width: thin;
  }

  .admin-side-nav > div:first-child,
  .admin-side-nav-divider {
    display: none;
  }

  .admin-side-nav a,
  .admin-side-nav button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }
}

@media (max-width: 560px) {
  body.admin-route-active #adminSection > .admin-side-nav {
    top: 76px;
  }
}
/* Admin route final viewport gutters and sticky-header clearance */
body.admin-route-active .landing-main {
  padding: 28px clamp(18px, 3vw, 48px) 56px;
}

body.admin-route-active #adminSection.admin-section,
body.admin-route-active #adminDatabaseSection.admin-section {
  width: min(100%, 1540px);
  margin: 0 auto;
  padding: clamp(34px, 4vw, 56px) clamp(24px, 4vw, 64px) clamp(44px, 5vw, 72px);
  border-radius: 8px;
  overflow: visible;
}

body.admin-route-active #adminSection.admin-section {
  scroll-margin-top: 148px;
}

body.admin-route-active #adminSection > .section-head {
  padding-top: 0;
}

@media (max-width: 980px) {
  body.admin-route-active .landing-main {
    padding: 18px 12px 42px;
  }

  body.admin-route-active #adminSection.admin-section,
  body.admin-route-active #adminDatabaseSection.admin-section {
    width: 100%;
    padding: 22px 14px 38px;
    border-radius: 0;
  }
}
/* Admin operations compact layout pass */
body.admin-route-active .landing-main {
  padding: 6px clamp(16px, 2vw, 32px) 34px;
  background: #e9efe9;
}

body.admin-route-active #adminSection.admin-section,
body.admin-route-active #adminDatabaseSection.admin-section {
  width: min(100%, 1760px);
  margin: 0 auto;
  padding: 14px clamp(18px, 2vw, 32px) 28px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 5% 0%, rgba(185, 107, 22, 0.04), transparent 20%),
    linear-gradient(180deg, #f9f4ea 0%, #eef6f3 100%);
}

body.admin-route-active #adminSection {
  gap: 12px;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
}

body.admin-route-active #adminSection > .section-head {
  min-height: 0;
  padding: 14px 18px;
}

body.admin-route-active #adminSection > .section-head .toolbar-actions {
  align-self: center;
}

body.admin-route-active #adminSection > .admin-side-nav {
  top: 104px;
  padding: 14px;
}

body.admin-route-active #adminSection > .admin-main-flow {
  gap: 12px;
}

body.admin-route-active #adminSection > .admin-main-flow > .admin-summary-grid,
body.admin-route-active .compact-admin-grid {
  gap: 10px;
  margin: 0;
}

body.admin-route-active #adminSection .stat-card,
body.admin-route-active #adminSummaryGrid > * {
  min-height: 118px;
}

body.admin-route-active .admin-database-console,
body.admin-route-active .admin-toolbar,
body.admin-route-active .admin-pagination,
body.admin-route-active .admin-request-list,
body.admin-route-active .admin-ops-grid,
body.admin-route-active .admin-detail-panel,
body.admin-route-active .admin-database-panel,
body.admin-route-active #adminDatabaseBackupStatus {
  margin-top: 0;
  margin-bottom: 0;
}

body.admin-route-active .admin-database-console {
  gap: 12px;
  padding: 18px;
}

body.admin-route-active .admin-toolbar {
  padding: 16px 18px;
}

body.admin-route-active .admin-request-list {
  gap: 10px;
}

body.admin-route-active .admin-ops-grid {
  gap: 12px;
}

body.admin-route-active #adminAuditLogList,
body.admin-route-active #adminRequestList,
body.admin-route-active #adminRuntimeReadinessList,
body.admin-route-active #contentIntegrityList {
  min-height: 0;
}

@media (max-width: 980px) {
  body.admin-route-active .landing-main {
    padding: 8px 10px 28px;
  }

  body.admin-route-active #adminSection.admin-section,
  body.admin-route-active #adminDatabaseSection.admin-section {
    width: 100%;
    padding: 12px 10px 24px;
    border-radius: 0;
  }

  body.admin-route-active #adminSection > .section-head {
    padding: 12px;
  }
}
/* Admin download ledger full-width arrangement */
body.admin-route-active #adminSection > .admin-main-flow > .admin-download-grid {
  grid-template-columns: 1fr;
  gap: 10px;
}

body.admin-route-active .admin-download-grid > div:first-child,
body.admin-route-active #adminDownloadActivityList,
body.admin-route-active #adminDownloadDetail {
  min-width: 0;
  width: 100%;
}

body.admin-route-active #adminDownloadActivityList {
  overflow-x: auto;
  scrollbar-width: thin;
}

body.admin-route-active .compact-download-ledger {
  min-width: 100%;
}

body.admin-route-active .compact-download-ledger .admin-table-row {
  min-width: 980px;
  grid-template-columns: minmax(300px, 1.45fr) minmax(190px, 0.85fr) minmax(170px, 0.75fr) minmax(240px, 1fr);
}

body.admin-route-active #adminDownloadDetail.admin-detail-panel {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f5faf8 100%);
}

body.admin-route-active #adminDownloadDetail .detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

body.admin-route-active #adminDownloadDetail .detail-section {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
  body.admin-route-active .compact-download-ledger .admin-table-row {
    min-width: 820px;
    grid-template-columns: minmax(240px, 1.4fr) minmax(160px, 0.8fr) minmax(140px, 0.7fr) minmax(200px, 1fr);
  }

  body.admin-route-active #adminDownloadDetail .detail-heading {
    display: grid;
  }
}
/* Admin download ledger table stretch fix */
body.admin-route-active #adminDownloadActivityList.compact-log-list {
  display: block;
  max-width: none;
  margin: 0;
  overflow-x: visible;
}

body.admin-route-active #adminDownloadActivityList .compact-download-ledger {
  display: grid;
  width: 100%;
  min-width: 0;
  overflow-x: visible;
}

body.admin-route-active #adminDownloadActivityList .compact-download-ledger .admin-table-row {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(260px, 1.4fr) minmax(190px, 0.9fr) minmax(170px, 0.8fr) minmax(220px, 1fr);
}

body.admin-route-active #adminDownloadActivityList .compact-download-ledger .admin-table-row > span {
  min-width: 0;
}

body.admin-route-active #adminDownloadActivityList .compact-download-ledger .admin-table-row small,
body.admin-route-active #adminDownloadActivityList .compact-download-ledger .admin-table-row strong {
  overflow-wrap: anywhere;
}

body.admin-route-active .admin-download-grid #adminDownloadPagination {
  margin-top: 0;
}

@media (max-width: 1100px) {
  body.admin-route-active #adminDownloadActivityList {
    overflow-x: auto;
  }

  body.admin-route-active #adminDownloadActivityList .compact-download-ledger {
    min-width: 840px;
  }
}
/* Admin side navigation active state */
.admin-side-nav a.active,
.admin-side-nav a[aria-current="location"] {
  border-color: rgba(13, 124, 102, 0.36);
  background: #0d7c66;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(13, 124, 102, 0.18);
}

.admin-side-nav a.active:hover,
.admin-side-nav a.active:focus-visible,
.admin-side-nav a[aria-current="location"]:hover,
.admin-side-nav a[aria-current="location"]:focus-visible {
  background: #0b6e5a;
  color: #ffffff;
}
/* Admin operation section labels and global back-to-top control */
.admin-section-kicker {
  margin: 0 0 6px;
  color: #087255;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.admin-toolbar .admin-section-kicker,
.admin-console-head .admin-section-kicker {
  margin-bottom: 7px;
}

.back-to-top-btn {
  position: fixed;
  right: clamp(140px, 12vw, 164px);
  bottom: clamp(18px, 2.4vw, 34px);
  z-index: 510;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(217, 246, 239, 0.42);
  border-radius: 999px;
  background: #0d7c66;
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 18px 36px rgba(8, 36, 29, 0.26);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.back-to-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top-btn:hover,
.back-to-top-btn:focus-visible {
  background: #095f4e;
  outline: 3px solid rgba(13, 124, 102, 0.24);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .back-to-top-btn {
    width: 44px;
    height: 44px;
    right: 14px;
    bottom: 14px;
  }
}
/* Database preview table: keep records on one line and scroll horizontally */
.admin-db-preview-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  scrollbar-width: thin;
}

.admin-db-preview-table {
  width: max-content;
  min-width: 100%;
  table-layout: auto;
}

.admin-db-preview-table th,
.admin-db-preview-table td {
  max-width: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  vertical-align: middle;
}

.admin-db-preview-table td {
  min-width: 140px;
}

.admin-db-preview-table th:first-child,
.admin-db-preview-table td:first-child {
  min-width: 240px;
}
/* Runtime readiness table: keep checks on one line and scroll horizontally */
.admin-readiness-table {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  scrollbar-width: thin;
}

.admin-readiness-row {
  min-width: 1180px;
  grid-template-columns: 140px 430px minmax(560px, 1fr);
}

.admin-readiness-row > span {
  min-width: 0;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
/* Admin operations final audit pass: consistent sections, usable tables, and reduced dead space */
body.admin-route-active .landing-main {
  padding: 0 clamp(18px, 3vw, 44px) 42px;
  background: #e9efe9;
}

body.admin-route-active .marketplace-header {
  margin-bottom: 0;
}

body.admin-route-active #adminSection.admin-section,
body.admin-route-active #adminDatabaseSection.admin-section {
  width: min(100%, 1680px);
  margin: 0 auto;
  padding: 18px clamp(18px, 2.4vw, 36px) 34px;
  border-radius: 0 0 8px 8px;
  background:
    radial-gradient(circle at top left, rgba(185, 107, 22, 0.045), transparent 22%),
    linear-gradient(180deg, #faf6ee 0%, #eef7f4 100%);
}

body.admin-route-active #adminSection {
  grid-template-columns: minmax(220px, 250px) minmax(0, 1fr);
  gap: 14px;
}

body.admin-route-active #adminSection > .section-head {
  margin: 0;
  padding: 14px 18px;
  min-height: 0;
  border-radius: 8px;
}

body.admin-route-active #adminSection > .admin-side-nav {
  top: 112px;
  max-height: calc(100vh - 132px);
  overflow-y: auto;
}

body.admin-route-active #adminSection > .admin-main-flow {
  gap: 12px;
}

body.admin-route-active #adminSection > .admin-main-flow > .admin-summary-grid,
body.admin-route-active .compact-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 0;
}

body.admin-route-active .admin-summary-card,
body.admin-route-active #adminSummaryGrid > * {
  min-height: 96px;
  padding: 14px 16px;
}

body.admin-route-active .admin-toolbar,
body.admin-route-active .admin-pagination,
body.admin-route-active .admin-request-list,
body.admin-route-active .admin-detail-panel,
body.admin-route-active .admin-database-console,
body.admin-route-active .admin-database-panel,
body.admin-route-active .admin-ops-grid {
  border-radius: 8px;
  margin: 0;
}

body.admin-route-active .admin-toolbar {
  align-items: end;
  gap: 12px;
  padding: 16px 18px;
  overflow-x: visible;
}

body.admin-route-active .admin-toolbar input,
body.admin-route-active .admin-toolbar select,
body.admin-route-active .admin-toolbar button {
  min-height: 44px;
}

body.admin-route-active .admin-subscriber-toolbar {
  grid-template-columns: minmax(320px, 1fr) minmax(260px, 0.55fr) minmax(210px, 0.4fr) auto;
}

body.admin-route-active #adminSection > .admin-main-flow > .admin-ops-grid,
body.admin-route-active #adminSection > .admin-main-flow > .admin-download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

body.admin-route-active .admin-ops-grid > div:first-child,
body.admin-route-active .admin-download-grid > div:first-child {
  min-width: 0;
}

body.admin-route-active .admin-detail-panel {
  position: static;
  width: 100%;
  min-height: 104px;
  padding: 16px 18px;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbf9 100%);
  box-shadow: 0 16px 38px rgba(9, 29, 24, 0.07);
}

body.admin-route-active #adminPaymentList,
body.admin-route-active #adminDownloadActivityList {
  display: block;
  width: 100%;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}

body.admin-route-active #adminPaymentList .admin-table,
body.admin-route-active #adminDownloadActivityList .admin-table {
  display: grid;
  gap: 8px;
  width: max-content;
  min-width: 100%;
  overflow: visible;
}

body.admin-route-active #adminPaymentList .admin-table-row {
  width: 100%;
  min-width: 980px;
  grid-template-columns: minmax(260px, 1.3fr) minmax(190px, 0.8fr) minmax(170px, 0.75fr) minmax(160px, 0.7fr) minmax(220px, 0.9fr);
}

body.admin-route-active #adminDownloadActivityList .compact-download-ledger .admin-table-row {
  width: 100%;
  min-width: 980px;
  grid-template-columns: minmax(300px, 1.35fr) minmax(190px, 0.8fr) minmax(170px, 0.75fr) minmax(240px, 0.95fr);
}

body.admin-route-active .admin-table-row {
  margin-bottom: 0;
  box-shadow: 0 10px 24px rgba(9, 29, 24, 0.055);
}

body.admin-route-active .admin-table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #edf7f4;
}

body.admin-route-active .admin-table-row span,
body.admin-route-active .admin-table-row small,
body.admin-route-active .admin-table-row strong {
  min-width: 0;
}

body.admin-route-active .admin-table-row small {
  overflow-wrap: anywhere;
}

body.admin-route-active .admin-pagination {
  padding: 14px 18px;
  background: #ffffff;
}

body.admin-route-active #adminAuditLogList:empty,
body.admin-route-active #adminRequestList:empty,
body.admin-route-active #adminRuntimeReadinessList:empty,
body.admin-route-active #contentIntegrityList:empty {
  display: none;
}

@media (min-width: 1200px) {
  body.admin-route-active #adminSubscriberDetail,
  body.admin-route-active #adminDownloadDetail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 1100px) {
  body.admin-route-active #adminSection {
    grid-template-columns: 1fr;
  }

  body.admin-route-active #adminSection > .admin-side-nav {
    position: sticky;
    top: 86px;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body.admin-route-active .admin-subscriber-toolbar,
  body.admin-route-active .admin-user-toolbar,
  body.admin-route-active .admin-audit-toolbar,
  body.admin-route-active .admin-download-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body.admin-route-active .landing-main {
    padding: 0 10px 30px;
  }

  body.admin-route-active #adminSection.admin-section,
  body.admin-route-active #adminDatabaseSection.admin-section {
    padding: 12px 10px 26px;
  }

  body.admin-route-active .admin-pagination {
    display: grid;
  }
}

.access-state-warning {
  border: 1px solid rgba(165, 101, 17, 0.24);
  border-radius: 8px;
  padding: 9px 10px;
  background: #fff8e8;
  color: #744508;
  font-weight: 800;
}
.account-access-card header {
  align-items: flex-start;
  min-height: auto;
}

.account-access-card header > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding-right: 12px;
}

.account-access-card header p {
  margin: 0;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.account-card-meta {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-top: 2px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef5fb;
  color: #39534d;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

@media (max-width: 760px) {
  .account-access-card header {
    display: grid;
  }

  .account-access-card .badge {
    justify-self: start;
  }
}
/* Persistent floating site header */
:root {
  --site-header-offset: 96px;
}

.landing-view.active-view .landing-header,
.marketplace-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(8, 36, 29, 0.2);
}

.landing-view.active-view .landing-main,
body.content-route-active .landing-main,
body.billing-route-active .landing-main,
body.admin-route-active .landing-main {
  padding-top: var(--site-header-offset);
}

html {
  scroll-padding-top: calc(var(--site-header-offset) + 18px);
}

.scroll-anchor,
.content-page,
#adminSection,
#adminDatabaseSection,
#trackCatalog,
#providerDirectory,
#reviewsSection,
#pricingSection,
#teamSection,
#learningPathsPage,
#advisorPage,
#certificatesPage,
#resourcesPage {
  scroll-margin-top: calc(var(--site-header-offset) + 18px);
}

@media (max-width: 980px) {
  :root {
    --site-header-offset: 108px;
  }
}

@media (max-width: 640px) {
  :root {
    --site-header-offset: 96px;
  }
}

/* Fixed-header cleanup: keep one floating top button and clear routed pages */
:root {
  --site-header-offset: 132px;
}

.footer-top-btn {
  display: none !important;
}

.landing-view.active-view .landing-main,
body.content-route-active .landing-main,
body.billing-route-active .landing-main,
body.admin-route-active .landing-main,
body.content-route-active.standalone-account-route .marketplace-header + .landing-main,
.landing-view.standalone-account-route .landing-main {
  padding-top: var(--site-header-offset) !important;
}

body.billing-route-active .billing-standalone-page,
body.content-route-active.standalone-account-route .billing-standalone-page,
body.admin-route-active #adminSection.admin-section,
body.admin-route-active #adminDatabaseSection.admin-section {
  margin-top: 0;
}

html {
  scroll-padding-top: calc(var(--site-header-offset) + 18px);
}

.scroll-anchor,
.content-page,
#adminSection,
#adminDatabaseSection,
#trackCatalog,
#providerDirectory,
#reviewsSection,
#pricingSection,
#teamSection,
#learningPathsPage,
#advisorPage,
#certificatesPage,
#resourcesPage {
  scroll-margin-top: calc(var(--site-header-offset) + 18px);
}

@media (max-width: 980px) {
  :root {
    --site-header-offset: 112px;
  }
}

@media (max-width: 640px) {
  :root {
    --site-header-offset: 104px;
  }
}

/* Home page uses the natural header height; routed pages keep extra clearance */
body:not(.content-route-active):not(.billing-route-active):not(.admin-route-active) .landing-view.active-view .landing-main {
  padding-top: 100px !important;
}

body:not(.content-route-active):not(.billing-route-active):not(.admin-route-active) html,
body:not(.content-route-active):not(.billing-route-active):not(.admin-route-active) {
  scroll-padding-top: 118px;
}

@media (max-width: 980px) {
  body:not(.content-route-active):not(.billing-route-active):not(.admin-route-active) .landing-view.active-view .landing-main {
    padding-top: 104px !important;
  }
}

/* Home header final alignment: remove exposed strip below fixed menu */
body:not(.content-route-active):not(.billing-route-active):not(.admin-route-active) .marketplace-header {
  min-height: 100px;
  align-items: center;
}

body:not(.content-route-active):not(.billing-route-active):not(.admin-route-active) .marketplace-header .landing-nav,
body:not(.content-route-active):not(.billing-route-active):not(.admin-route-active) .marketplace-header .header-actions {
  align-self: center;
}

body:not(.content-route-active):not(.billing-route-active):not(.admin-route-active) .landing-view.active-view .landing-main {
  padding-top: 100px !important;
}

body:not(.content-route-active):not(.billing-route-active):not(.admin-route-active) .landing-header::after {
  bottom: -1px;
  height: 1px;
  background: var(--dark);
}

@media (max-width: 980px) {
  body:not(.content-route-active):not(.billing-route-active):not(.admin-route-active) .marketplace-header {
    min-height: 104px;
  }

  body:not(.content-route-active):not(.billing-route-active):not(.admin-route-active) .landing-view.active-view .landing-main {
    padding-top: 104px !important;
  }
}

/* Admin audit log cards: align status/file bubbles cleanly */
body.admin-route-active .audit-log-card {
  gap: 14px;
  padding: 18px;
}

body.admin-route-active .audit-log-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 240px);
  gap: 14px;
  align-items: start;
}

body.admin-route-active .audit-log-card header > div {
  min-width: 0;
  display: grid;
  gap: 8px;
}

body.admin-route-active .audit-log-card header strong,
body.admin-route-active .audit-log-card header p,
body.admin-route-active .audit-log-card > p {
  min-width: 0;
  margin: 0;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

body.admin-route-active .audit-log-card header .badge {
  justify-self: end;
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: 240px;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef5f2;
  color: #10231f;
  line-height: 1.25;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 760px) {
  body.admin-route-active .audit-log-card header {
    grid-template-columns: 1fr;
  }

  body.admin-route-active .audit-log-card header .badge {
    justify-self: start;
    max-width: 100%;
  }
}
/* CSP-safe review carousel positions */
.review-track.review-index-0 { transform: translateX(0); }
.review-track.review-index-1 { transform: translateX(calc(-25% - 3.5px)); }
.review-track.review-index-2 { transform: translateX(calc(-50% - 7px)); }
.review-track.review-index-3 { transform: translateX(calc(-75% - 10.5px)); }
.review-track.review-index-4 { transform: translateX(calc(-100% - 14px)); }
.review-track.review-index-5 { transform: translateX(calc(-125% - 17.5px)); }
.review-track.review-index-6 { transform: translateX(calc(-150% - 21px)); }
.review-track.review-index-7 { transform: translateX(calc(-175% - 24.5px)); }
.review-track.review-index-8 { transform: translateX(calc(-200% - 28px)); }

@media (min-width: 721px) and (max-width: 1100px) {
  .review-track { --review-card-width: calc((100% - 14px) / 2); }
  .review-track.review-index-0 { transform: translateX(0); }
  .review-track.review-index-1 { transform: translateX(calc(-50% - 7px)); }
  .review-track.review-index-2 { transform: translateX(calc(-100% - 14px)); }
  .review-track.review-index-3 { transform: translateX(calc(-150% - 21px)); }
  .review-track.review-index-4 { transform: translateX(calc(-200% - 28px)); }
  .review-track.review-index-5 { transform: translateX(calc(-250% - 35px)); }
  .review-track.review-index-6 { transform: translateX(calc(-300% - 42px)); }
  .review-track.review-index-7 { transform: translateX(calc(-350% - 49px)); }
}

@media (max-width: 720px) {
  .review-track { --review-card-width: 100%; }
  .review-track.review-index-0 { transform: translateX(0); }
  .review-track.review-index-1 { transform: translateX(calc(-100% - 14px)); }
  .review-track.review-index-2 { transform: translateX(calc(-200% - 28px)); }
  .review-track.review-index-3 { transform: translateX(calc(-300% - 42px)); }
  .review-track.review-index-4 { transform: translateX(calc(-400% - 56px)); }
  .review-track.review-index-5 { transform: translateX(calc(-500% - 70px)); }
  .review-track.review-index-6 { transform: translateX(calc(-600% - 84px)); }
  .review-track.review-index-7 { transform: translateX(calc(-700% - 98px)); }
  .review-track.review-index-8 { transform: translateX(calc(-800% - 112px)); }
}
/* Home exam and provider typeahead */
.hero-search-input {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.home-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  max-height: min(420px, 58vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #cbdad6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(3, 30, 24, 0.24);
}

.home-search-suggestion {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  color: #10231f;
  text-align: left;
}

.home-search-suggestion:hover,
.home-search-suggestion:focus-visible,
.home-search-suggestion.active {
  background: #eaf7f3;
  outline: none;
}

.hero-search-card .suggestion-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d8e5e1;
  border-radius: 7px;
  background: #f7fbfa;
}

.suggestion-logo img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.hero-search-card .suggestion-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  color: #10231f;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.suggestion-copy strong,
.suggestion-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suggestion-copy strong {
  font-size: 0.92rem;
}

.suggestion-copy small {
  color: #60716d;
  font-size: 0.76rem;
  font-weight: 700;
}

.hero-search-card .suggestion-type {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef3f1;
  color: #52645f;
  font-size: 0.66rem;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.hero-search-card .suggestion-type.available {
  background: #ddf6ed;
  color: #087255;
}

@media (max-width: 560px) {
  .home-search-suggestion {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .hero-search-card .suggestion-type {
    display: none;
  }
}
/* Search orientation step before opening a simulator dashboard */
.catalog-preamble {
  margin: 14px 0 18px;
}

.catalog-preamble-card {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid rgba(13, 124, 102, 0.26);
  border-left: 5px solid #118873;
  border-radius: 8px;
  background: #f1faf7;
  box-shadow: 0 12px 32px rgba(13, 55, 47, 0.08);
}

.catalog-preamble-logo {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border: 1px solid #d3e4df;
  border-radius: 8px;
  background: #ffffff;
}

.catalog-preamble-logo img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.catalog-preamble-copy {
  min-width: 0;
}

.catalog-preamble-copy .eyebrow,
.catalog-preamble-copy h3,
.catalog-preamble-copy p {
  margin: 0;
}

.catalog-preamble-copy h3 {
  margin-top: 3px;
  font-size: 1.3rem;
}

.catalog-preamble-copy p {
  max-width: 960px;
  margin-top: 7px;
  color: #4f625d;
  line-height: 1.5;
}

.catalog-preamble-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 11px;
}

.catalog-preamble-facts span {
  padding: 5px 8px;
  border: 1px solid #cfe3dd;
  border-radius: 999px;
  background: #ffffff;
  color: #174a40;
  font-size: 0.75rem;
  font-weight: 800;
}

.catalog-preamble-card > .secondary-btn {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .catalog-preamble-card {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 12px;
    padding: 16px;
  }

  .catalog-preamble-logo {
    width: 48px;
    height: 48px;
  }

  .catalog-preamble-logo img {
    width: 34px;
    height: 34px;
  }

  .catalog-preamble-card > .secondary-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.catalog-preamble-grid {
  display: grid;
  gap: 14px;
}

.catalog-preamble-grid.two-overviews {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.catalog-preamble-grid.two-overviews .catalog-preamble-card {
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: start;
}

.catalog-preamble-grid.two-overviews .catalog-preamble-logo {
  width: 54px;
  height: 54px;
}

.catalog-preamble-grid.two-overviews .catalog-preamble-logo img {
  width: 38px;
  height: 38px;
}

.catalog-preamble-grid.two-overviews .catalog-preamble-card > .secondary-btn {
  grid-column: 1 / -1;
  width: 100%;
}

@media (max-width: 980px) {
  .catalog-preamble-grid.two-overviews {
    grid-template-columns: 1fr;
  }
}
/* Catalog exam/provider autocomplete */
.catalog-search-input-wrap {
  position: relative;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.catalog-search-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 90;
  max-height: min(480px, 62vh);
  overflow-y: auto;
  padding: 6px;
  border: 1px solid #cbdad6;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(3, 30, 24, 0.22);
}

.catalog-search-suggestion {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #ffffff;
  color: #10231f;
  text-align: left;
}

.catalog-search-suggestion:hover,
.catalog-search-suggestion:focus-visible,
.catalog-search-suggestion.active {
  background: #eaf7f3;
  outline: none;
}

.catalog-search-suggestion .suggestion-logo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d8e5e1;
  border-radius: 7px;
  background: #f7fbfa;
}

.catalog-search-suggestion .suggestion-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.catalog-search-suggestion .suggestion-type {
  padding: 4px 7px;
  border-radius: 999px;
  background: #eef3f1;
  color: #52645f;
  font-size: 0.66rem;
  font-weight: 800;
  white-space: nowrap;
}

.catalog-search-suggestion .suggestion-type.available {
  background: #ddf6ed;
  color: #087255;
}

@media (max-width: 560px) {
  .catalog-search-suggestion {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .catalog-search-suggestion .suggestion-type {
    display: none;
  }
}

/* Help center and automated support assistant */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.help-center-section {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.help-center-head {
  padding: 24px 26px;
  border: 1px solid #cfe2dd;
  background: linear-gradient(110deg, #eff9f6 0%, #ffffff 62%, #eef5fb 100%);
}

.help-center-head > div {
  max-width: 900px;
}

.help-topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0;
}

.help-topic-grid button {
  display: grid;
  min-height: 144px;
  padding: 20px;
  border: 1px solid #cfe0dc;
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(9, 45, 37, 0.06);
}

.help-topic-grid button:hover,
.help-topic-grid button:focus-visible {
  border-color: var(--accent);
  background: #f2faf8;
  outline: 3px solid rgba(13, 124, 102, 0.14);
  outline-offset: 2px;
}

.help-topic-grid span {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.help-topic-grid strong {
  margin: 9px 0 6px;
  font-size: 1.05rem;
}

.help-topic-grid small {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.help-center-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 18px;
  align-items: start;
}

.help-faq-panel,
.support-contact-panel {
  padding: 24px;
}

.help-faq-panel details {
  border-top: 1px solid var(--line);
}

.help-faq-panel details:last-child {
  border-bottom: 1px solid var(--line);
}

.help-faq-panel summary {
  padding: 17px 30px 17px 0;
  font-weight: 800;
  cursor: pointer;
}

.help-faq-panel details p {
  margin: 0;
  padding: 0 22px 18px 0;
  color: var(--muted);
  line-height: 1.55;
}

.support-request-form {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.support-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-request-form label:not(.confirm-row) {
  display: grid;
  gap: 7px;
  color: #41554f;
  font-weight: 800;
}

.support-request-form input,
.support-request-form select,
.support-request-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid #cbdad6;
  border-radius: 7px;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.support-request-form textarea {
  resize: vertical;
}

.help-assistant {
  position: fixed;
  right: clamp(18px, 2.4vw, 34px);
  bottom: clamp(18px, 2.4vw, 34px);
  z-index: 520;
}

.help-assistant-launcher {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 6px 16px 6px 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: var(--accent);
  color: #ffffff;
  font: inherit;
  font-weight: 900;
  box-shadow: 0 14px 36px rgba(3, 35, 28, 0.28);
  cursor: pointer;
}

.help-assistant-launcher img {
  width: 38px;
  height: 38px;
  padding: 4px;
  border-radius: 50%;
  background: #e8f7f3;
}

.help-assistant-launcher:hover,
.help-assistant-launcher:focus-visible {
  background: #095f4e;
  outline: 3px solid rgba(13, 124, 102, 0.25);
  outline-offset: 3px;
}

.help-assistant-panel {
  position: absolute;
  right: 0;
  bottom: 64px;
  display: none;
  width: min(390px, calc(100vw - 28px));
  max-height: min(640px, calc(100vh - 120px));
  overflow: hidden;
  border: 1px solid #bad4ce;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(3, 31, 25, 0.28);
}

.help-assistant.open .help-assistant-panel {
  display: grid;
  grid-template-rows: auto minmax(170px, 1fr) auto auto auto;
}

.help-assistant-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 15px;
  background: var(--dark);
  color: #ffffff;
}

.help-assistant-identity {
  display: flex;
  align-items: center;
  gap: 10px;
}

.help-assistant-identity img {
  width: 42px;
  height: 42px;
  padding: 5px;
  border-radius: 7px;
  background: #e5f6f2;
}

.help-assistant-identity div {
  display: grid;
  gap: 2px;
}

.help-assistant-identity span {
  color: #c9dfda;
  font-size: 0.76rem;
}

.help-assistant-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1.45rem;
  cursor: pointer;
}

.help-assistant-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 210px;
  padding: 15px;
  overflow-y: auto;
  background: #f3f7f6;
}

.help-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
}

.help-message p {
  margin: 0;
}

.help-message.assistant {
  align-self: flex-start;
  border: 1px solid #d2e2de;
  background: #ffffff;
  color: #344944;
}

.help-message.user {
  align-self: flex-end;
  background: var(--accent);
  color: #ffffff;
}

.help-assistant-prompts {
  display: flex;
  gap: 7px;
  padding: 10px 12px 0;
  overflow-x: auto;
  background: #ffffff;
}

.help-assistant-prompts button {
  flex: 0 0 auto;
  padding: 7px 9px;
  border: 1px solid #c8dad5;
  border-radius: 999px;
  background: #f5faf8;
  color: #174d42;
  font-weight: 800;
  cursor: pointer;
}

.help-assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  background: #ffffff;
}

.help-assistant-form input {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #c7d8d4;
  border-radius: 7px;
  font: inherit;
}

.help-assistant-form button,
.help-assistant-panel footer button {
  padding: 10px 13px;
  border: 0;
  border-radius: 7px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
  cursor: pointer;
}

.help-assistant-panel > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px 12px;
  border-top: 1px solid #e1eae8;
  background: #ffffff;
}

.help-assistant-panel > footer span {
  color: var(--muted);
  font-size: 0.7rem;
  text-align: right;
}

@media (max-width: 900px) {
  .help-center-section {
    width: min(100% - 28px, 760px);
  }

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

  .help-center-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .help-center-section {
    width: calc(100% - 20px);
    padding-top: 18px;
  }

  .help-center-head {
    padding: 18px;
  }

  .help-topic-grid,
  .support-form-grid {
    grid-template-columns: 1fr;
  }

  .help-topic-grid button {
    min-height: 116px;
  }

  .help-faq-panel,
  .support-contact-panel {
    padding: 18px;
  }

  .help-assistant {
    right: 14px;
    bottom: 14px;
  }

  .help-assistant-launcher {
    width: 48px;
    height: 48px;
    min-height: 48px;
    padding: 5px;
  }

  .help-assistant-launcher span {
    display: none;
  }

  .help-assistant-launcher img {
    width: 36px;
    height: 36px;
  }

  .help-assistant-panel {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 78px;
    width: auto;
    max-height: calc(100dvh - 100px);
  }
}

/* Standalone Team account route */
body.team-account-route {
  overflow-x: clip;
  overflow-y: visible;
}

body.team-account-route .landing-main {
  display: grid !important;
  grid-template-columns: minmax(210px, 240px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
  width: min(1500px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding-right: 16px !important;
  padding-bottom: 32px;
  padding-left: 16px !important;
  box-sizing: border-box;
  background: #f4faf7;
}

body.team-account-route .landing-main > * {
  display: none !important;
}

body.team-account-route .landing-main > #teamAccountSidebar,
body.team-account-route .landing-main > .content-page:not(.hidden-page) {
  display: block !important;
}

body.team-account-route .landing-main > .landing-footer {
  display: block !important;
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 8px;
}

body.team-account-route .team-account-global-sidebar {
  position: sticky;
  top: calc(var(--site-header-offset) + 16px);
  grid-column: 1;
  margin: 0;
}

body.team-account-route .content-page:not(.hidden-page) {
  grid-column: 2;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.team-account-route #teamsPage .team-account-main {
  width: 100%;
}

@media (max-width: 980px) {
  body.team-account-route .landing-main {
    grid-template-columns: 1fr;
  }

  body.team-account-route .team-account-global-sidebar,
  body.team-account-route .content-page:not(.hidden-page) {
    grid-column: 1;
  }

  body.team-account-route .team-account-global-sidebar {
    position: static;
  }
}

@media (max-width: 560px) {
  body.team-account-route .landing-main {
    padding-right: 10px !important;
    padding-left: 10px !important;
  }
}
/* Team workspace navigation refinement */
body.team-account-route .marketplace-header .landing-nav,
body.team-account-route .marketplace-header .header-actions,
body.team-account-route .marketplace-header #mobileMenuBtn,
body.team-account-route .marketplace-header #openAvailableExamBtn {
  display: none !important;
}

body.team-account-route .marketplace-header {
  justify-content: flex-start;
}

body.team-account-route .team-account-global-sidebar {
  position: sticky;
  top: calc(var(--site-header-offset) + 16px);
  left: auto;
  width: auto;
  max-height: calc(100vh - var(--site-header-offset) - 32px);
  overflow-y: auto;
}

body.team-account-route[data-team-workspace-view="dashboard"] .team-management-only,
body.team-account-route[data-team-workspace-view="teams"] .team-dashboard-only {
  display: none !important;
}

@media (max-width: 980px) {
  body.team-account-route .team-account-global-sidebar {
    position: static;
    width: auto;
    max-height: none;
    overflow: visible;
  }
}
/* Mobile Team workspace tab bar */
@media (max-width: 980px) {
  body.team-account-route .team-account-global-sidebar {
    position: fixed;
    top: var(--site-header-offset);
    right: 0;
    left: 0;
    z-index: 490;
    width: 100%;
    max-height: none;
    padding: 8px 10px;
    border-radius: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body.team-account-route .team-sidebar-identity {
    display: none;
  }

  body.team-account-route .team-account-sidebar nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    width: max-content;
    min-width: 100%;
    margin: 0;
  }

  body.team-account-route .team-account-sidebar nav button {
    width: auto;
    min-width: max-content;
    padding: 9px 12px;
    border-left: 0;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    text-align: center;
  }

  body.team-account-route .team-account-sidebar nav button:hover,
  body.team-account-route .team-account-sidebar nav button.active {
    border-left-color: transparent;
    border-bottom-color: var(--accent);
  }

  body.team-account-route .content-page:not(.hidden-page) {
    padding-top: 62px;
  }
}
body.team-account-route .team-account-global-sidebar {
  scrollbar-width: none;
}

body.team-account-route .team-account-global-sidebar::-webkit-scrollbar {
  display: none;
}

@media (max-width: 560px) {
  body.team-account-route .team-account-global-sidebar {
    top: 80px;
  }
}
/* Team workspace spacing and member-row correction */
body.team-account-route .landing-main {
  padding-top: 10px !important;
}

body.team-account-route .team-workspace-layout {
  grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
}

body.team-account-route .team-detail-grid {
  grid-template-columns: minmax(440px, 1.45fr) minmax(240px, 0.75fr);
}

body.team-account-route .team-member-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.65fr) minmax(96px, auto);
  align-items: start;
  gap: 10px;
}

body.team-account-route .team-member-main,
body.team-account-route .team-member-summary,
body.team-account-route .team-member-actions {
  min-width: 0;
}

body.team-account-route .team-member-main,
body.team-account-route .team-member-summary {
  overflow-wrap: anywhere;
}

body.team-account-route .team-member-summary {
  text-align: left;
}

body.team-account-route .team-member-actions {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: stretch;
}

body.team-account-route .team-member-actions button {
  width: 100%;
  min-width: 96px;
}

@media (max-width: 1280px) {
  body.team-account-route .team-workspace-layout,
  body.team-account-route .team-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  body.team-account-route .landing-main {
    padding-top: 0 !important;
  }

  body.team-account-route .team-member-row {
    grid-template-columns: 1fr;
  }

  body.team-account-route .team-member-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* Routed marketplace pages: let the sticky header define its own clearance */
body.content-route-active:not(.team-account-route):not(.standalone-account-route) .marketplace-header {
  position: sticky;
}

body.content-route-active:not(.team-account-route):not(.standalone-account-route) .landing-main {
  padding-top: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* 404 Recovery & Upsell Page                                                 */
/* -------------------------------------------------------------------------- */
.not-found-page {
  display: grid;
  gap: 24px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}

body.not-found-route-active .not-found-page {
  margin: 0 auto;
  padding: clamp(24px, 4vw, 40px) clamp(16px, 3vw, 24px) 64px;
}

body.not-found-route-active .landing-main {
  background: var(--bg, #040c0a) !important;
  min-height: calc(100vh - 98px);
}

body.light-theme.not-found-route-active .landing-main {
  background: #f4faf8 !important;
}

.not-found-hero {
  position: relative;
  overflow: hidden;
  padding: 36px 32px;
  background: radial-gradient(circle at top right, rgba(0, 191, 134, 0.12), transparent 55%), var(--card-bg, #0b1a16);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
}

.not-found-hero-copy {
  display: grid;
  gap: 16px;
  max-width: 780px;
}

.not-found-badge {
  display: inline-flex;
  align-self: flex-start;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(255, 170, 0, 0.15);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

.not-found-hero h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.25;
  color: var(--text, #ffffff);
  margin: 0;
}

.not-found-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted, #9fb3ad);
  margin: 0;
}

.not-found-search-hint {
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(0, 191, 134, 0.1);
  border: 1px solid rgba(0, 191, 134, 0.25);
  color: #64f1c0;
  font-size: 0.9rem;
}

.not-found-search-box {
  margin: 8px 0;
}

.not-found-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input-bg, #071310);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.15));
  border-radius: 10px;
  padding: 6px 8px 6px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.not-found-input-wrap:focus-within {
  border-color: #00bf86;
  box-shadow: 0 0 0 3px rgba(0, 191, 134, 0.2);
}

.not-found-input-wrap .search-icon-decor {
  font-size: 1.1rem;
  opacity: 0.7;
}

.not-found-input-wrap input[type="search"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text, #ffffff);
  font-size: 0.98rem;
  outline: none;
  min-width: 0;
}

.not-found-input-wrap input[type="search"]::placeholder {
  color: var(--muted, #6f857f);
}

.not-found-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* Quick Recovery Track Cards */
.not-found-recovery-section {
  display: grid;
  gap: 20px;
  padding: 28px;
  background: var(--card-bg, #0b1a16);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
}

.not-found-track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.not-found-track-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.not-found-track-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 191, 134, 0.4);
}

.not-found-track-card h4 {
  font-size: 1.12rem;
  margin: 0;
  color: var(--text, #ffffff);
}

.not-found-track-card p {
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted, #9fb3ad);
  margin: 0;
  flex-grow: 1;
}

/* Upsell Value Section */
.not-found-upsell-section {
  display: grid;
  gap: 24px;
  padding: 32px 28px;
  background: var(--card-bg, #0b1a16);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.1));
  border-radius: 16px;
}

.not-found-upsell-header {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.not-found-upsell-header h3 {
  font-size: 1.45rem;
  margin: 0;
  color: var(--text, #ffffff);
}

.not-found-upsell-header p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--muted, #9fb3ad);
  margin: 0;
}

.not-found-upsell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.not-found-tier-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
}

.not-found-tier-card.featured-tier {
  background: radial-gradient(circle at top, rgba(0, 191, 134, 0.14), transparent 70%), rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 191, 134, 0.45);
  box-shadow: 0 0 20px rgba(0, 191, 134, 0.08);
}

.not-found-tier-card h4 {
  font-size: 1.25rem;
  margin: 0;
  color: var(--text, #ffffff);
}

.upsell-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.upsell-price strong {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text, #ffffff);
}

.upsell-price span {
  font-size: 0.9rem;
  color: var(--muted, #9fb3ad);
}

.not-found-tier-card p {
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted, #9fb3ad);
  margin: 0;
  flex-grow: 1;
}

.not-found-tier-card button {
  width: 100%;
}

/* Light Mode Overrides for 404 Page */
body.light-theme .not-found-hero {
  background: radial-gradient(circle at top right, rgba(13, 124, 102, 0.09), transparent 60%), #ffffff;
  border-color: #dbe7e4;
}

body.light-theme .not-found-badge {
  background: #fff8e1;
  color: #b78103;
  border-color: #ffe082;
}

body.light-theme .not-found-hero h2,
body.light-theme .not-found-upsell-header h3,
body.light-theme .not-found-track-card h4,
body.light-theme .not-found-tier-card h4,
body.light-theme .upsell-price strong {
  color: #102420;
}

body.light-theme .not-found-lead,
body.light-theme .not-found-upsell-header p,
body.light-theme .not-found-track-card p,
body.light-theme .not-found-tier-card p,
body.light-theme .upsell-price span {
  color: #4a635d;
}

body.light-theme .not-found-search-hint {
  background: #e1f7f0;
  border-color: #b2ebd9;
  color: #0d7c66;
}

body.light-theme .not-found-input-wrap {
  background: #f4faf8;
  border-color: #cde2dc;
}

body.light-theme .not-found-input-wrap input[type="search"] {
  color: #102420;
}

body.light-theme .not-found-input-wrap input[type="search"]::placeholder {
  color: #7b9690;
}

body.light-theme .not-found-recovery-section,
body.light-theme .not-found-upsell-section {
  background: #ffffff;
  border-color: #dbe7e4;
}

body.light-theme .not-found-track-card,
body.light-theme .not-found-tier-card {
  background: #f8fcfa;
  border-color: #e2ece9;
}

body.light-theme .not-found-tier-card.featured-tier {
  background: radial-gradient(circle at top, rgba(13, 124, 102, 0.08), transparent 70%), #f3faf7;
  border-color: #0d7c66;
}

@media (max-width: 640px) {
  .not-found-hero {
    padding: 24px 18px;
  }
  .not-found-input-wrap {
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
  }
  .not-found-input-wrap button {
    width: 100%;
  }
  .not-found-recovery-section,
  .not-found-upsell-section {
    padding: 20px 16px;
  }
}

/* Full-width spread admin tables (Checklist Leads, etc) */
.admin-table-container {
  width: 100% !important;
  overflow-x: auto;
  padding: 0 !important;
  border-radius: 8px;
  border: 1px solid #bad4ce;
  background: #ffffff;
}

.admin-full-table {
  width: 100% !important;
  border-collapse: collapse;
  font-size: 0.92rem;
  table-layout: fixed;
}

.admin-full-table th {
  padding: 14px 18px;
  background: #f4faf8;
  border-bottom: 2px solid #bad4ce;
  color: #0c4f42;
  font-weight: 800;
  text-align: left;
}

.admin-full-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #e0edea;
  vertical-align: middle;
}

.admin-full-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-full-table tbody tr:hover {
  background: #f9fcfb;
}

/* Spread-out audit logs and cards */
.audit-log-card {
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 18px 22px !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  border: 1px solid #bad4ce !important;
}

.audit-log-card header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 18px !important;
  width: 100% !important;
  margin-bottom: 8px !important;
}

.audit-log-card header strong {
  font-size: 1.05rem;
  color: #0d4a3e;
}

.audit-status-badge {
  max-width: 55%;
  word-break: break-all;
  white-space: normal;
  font-family: monospace;
  font-size: 0.82rem;
  padding: 6px 12px;
  background: #e8f7f3;
  color: #0d7c66;
  border: 1px solid #bad4ce;
  border-radius: 6px;
  text-align: right;
}

.audit-log-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 1px solid #eef5f3;
}

.audit-log-meta p {
  margin: 0;
  color: #4b635e;
}

/* ==========================================================================
   Popup Modal Layer (Bug Report Modal, etc.)
   ========================================================================== */
.modal-backdrop {
  display: none !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(4, 25, 21, 0.72) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 9999 !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.modal-backdrop.open {
  display: flex !important;
}

.modal-card {
  background: #ffffff !important;
  color: #072a24 !important;
  width: 100% !important;
  max-width: 540px !important;
  border-radius: 14px !important;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.35) !important;
  padding: 24px 26px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  position: relative !important;
  border: 1px solid #bad4ce !important;
  box-sizing: border-box !important;
  animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalPopIn {
  from {
    opacity: 0;
    transform: scale(0.94) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.modal-card header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
  border-bottom: 1px solid #e0edea !important;
  padding-bottom: 14px !important;
}

.modal-card header h3 {
  margin: 4px 0 2px !important;
  font-size: 1.3rem !important;
  color: #0c4f42 !important;
  font-weight: 800 !important;
}

.modal-card header p {
  margin: 0 !important;
  font-size: 0.88rem !important;
  color: #5c756f !important;
}

.modal-close-btn {
  background: transparent !important;
  border: none !important;
  font-size: 1.8rem !important;
  line-height: 1 !important;
  cursor: pointer !important;
  color: #5c756f !important;
  padding: 2px 8px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease !important;
}

.modal-close-btn:hover {
  background: #eef5f3 !important;
  color: #072a24 !important;
}

.modal-card form {
  display: grid !important;
  gap: 14px !important;
}

.modal-card form label {
  display: grid !important;
  gap: 6px !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  color: #0c4f42 !important;
  text-align: left !important;
}

.modal-card form input,
.modal-card form select,
.modal-card form textarea {
  width: 100% !important;
  border: 1px solid #bad4ce !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  font-size: 0.95rem !important;
  color: #072a24 !important;
  background: #fbfdfc !important;
  box-sizing: border-box !important;
  font-family: inherit !important;
}

.modal-card form textarea {
  resize: vertical !important;
  min-height: 90px !important;
}

.modal-card form input:focus,
.modal-card form select:focus,
.modal-card form textarea:focus {
  outline: none !important;
  border-color: #0d7c66 !important;
  box-shadow: 0 0 0 3px rgba(13, 124, 102, 0.18) !important;
  background: #ffffff !important;
}