:root {
  --color-ink-900: #081735;
  --color-ink-800: #0b1f47;
  --color-ink-600: #234269;
  --color-ink-500: #3c5674;
  --color-ink-300: #8c9db3;
  --color-surface: #f4f7fb;
  --color-panel: #ffffff;
  --color-border: rgba(12, 34, 64, 0.08);
  --color-brand-500: #1f6feb;
  --color-brand-400: #2d8dfc;
  --color-brand-300: #6aa8ff;
  --color-accent: #1fbfb8;
  --shadow-soft: 0 24px 48px rgba(8, 23, 53, 0.08);
  --shadow-card: 0 18px 40px rgba(8, 23, 53, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--color-surface);
  color: var(--color-ink-800);
  line-height: 1.6;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-brand-500);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover,
a:focus {
  color: var(--color-brand-400);
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

ul,
ol {
  margin-top: 0;
  margin-bottom: 1.25rem;
  padding-left: 1.2rem;
}

button,
input,
textarea,
select {
  font-family: inherit;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 12px;
  background: var(--color-brand-500);
  color: var(--color-panel);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  transform: translateY(-120%);
  transition: transform 0.2s ease;
  z-index: 1000;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1140px, calc(100% - 3rem));
  margin: 0 auto;
}

.page-container {
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
  padding: clamp(2.5rem, 4vw, 4rem) 0;
}

.page-container + .page-container {
  padding-top: 0;
}

.page-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-ink-800);
  border-radius: 999px;
  padding: 0.72rem 1.05rem;
  font: inherit;
  font-weight: 600;
  box-shadow: 0 14px 30px -22px rgba(15, 23, 42, 0.5);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.page-back-button:hover,
.page-back-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(45, 141, 252, 0.45);
  color: var(--color-brand-600);
  box-shadow: 0 18px 34px -24px rgba(15, 23, 42, 0.55);
  outline: none;
}

.page-back-button[hidden] {
  display: none;
}

.page-back-button--header {
  width: auto;
  min-width: max-content;
  white-space: nowrap;
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(12px);
  padding: 0.55rem 0.9rem;
}

.page-back-button--header:hover,
.page-back-button--header:focus-visible {
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
}

.site-header {
  background: radial-gradient(circle at 20% 30%, rgba(45, 141, 252, 0.12), transparent 42%),
    radial-gradient(circle at 70% 10%, rgba(31, 191, 184, 0.12), transparent 38%),
    linear-gradient(135deg, #061226, #0c2a5a);
  color: var(--color-panel);
  box-shadow: 0 12px 32px rgba(8, 23, 53, 0.28);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 50;
}

.header-inner {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 0.35rem;
}

.header-top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem 1.2rem;
  flex-wrap: wrap;
}

.header-leading {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.9rem;
  flex: 1 1 auto;
  min-width: 0;
}

.header-back-slot {
  display: none;
  align-items: center;
  flex: 0 0 auto;
}

.header-back-slot:not([hidden]) {
  display: inline-flex;
}

.brand {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.03em;
  color: var(--color-panel);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex: 0 1 auto;
  min-width: 0;
}

.brand-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
}

.brand-title {
  color: inherit;
  line-height: 1.1;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  position: relative;
}

.navigation-menu {
  list-style: none;
  display: flex;
  width: 100%;
  gap: clamp(0.25rem, 0.6vw, 0.45rem);
  margin: 0;
  padding: 0.45rem;
  flex-wrap: wrap;
  justify-content: flex-start;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}

.navigation-menu li {
  position: relative;
}

.navigation-menu a,
.navigation-menu .nav-inline-button {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem clamp(0.75rem, 1vw, 0.95rem);
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease,
    box-shadow 0.2s ease, border-color 0.2s ease;
}

.navigation-menu .nav-inline-button {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.navigation-menu a:hover,
.navigation-menu a:focus,
.navigation-menu .nav-inline-button:hover,
.navigation-menu .nav-inline-button:focus {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.22);
}

.navigation-menu .nav-inline-form {
  margin: 0;
  display: inline-flex;
}

.navigation-menu .nav-link--gated {
  gap: 0.55rem;
  padding-right: 0.7rem;
}

.navigation-menu .nav-gated-chip {
  display: inline-grid;
  place-items: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.96);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.header-auth {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

.header-auth-form {
  margin: 0;
}

.header-auth-identity {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: rgba(255, 255, 255, 0.92);
}

.header-auth-avatar {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.14);
}

.header-auth-greeting {
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
}

.header-auth-link,
.header-auth-button {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(4, 20, 44, 0.45);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.header-auth-button {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.header-auth-link i,
.header-auth-button i {
  font-size: 0.95rem;
}

.header-auth-link:hover,
.header-auth-link:focus,
.header-auth-button:hover,
.header-auth-button:focus {
  background: rgba(19, 46, 86, 0.78);
  border-color: rgba(255, 255, 255, 0.56);
  transform: translateY(-1px);
  color: #ffffff;
}

.navigation-menu .nav-has-child {
  position: relative;
}

.navigation-menu .nav-has-child > a {
  gap: 0.45rem;
  padding-right: clamp(0.9rem, 1.4vw, 1.2rem);
}

.navigation-menu .nav-has-child > a::after {
  content: "\f107";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 0.75rem;
  opacity: 0.75;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.navigation-menu .nav-has-child:hover > a::after,
.navigation-menu .nav-has-child:focus-within > a::after {
  transform: rotate(180deg);
  opacity: 1;
}

.navigation-menu .nav-sub {
  position: absolute;
  display: grid;
  grid-auto-rows: 1fr;
  gap: 0.15rem;
  top: calc(100% + 8px);
  left: 0;
  background: linear-gradient(150deg, #0c1f46, #0d274e);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  border-radius: 14px;
  min-width: 240px;
  padding: 0.6rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 10;
  pointer-events: none;
}

.navigation-menu .nav-sub a {
  color: rgba(255, 255, 255, 0.9);
  display: block;
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.03);
}

.navigation-menu .nav-sub a:hover,
.navigation-menu .nav-sub a:focus {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  transform: none;
  border-color: rgba(255, 255, 255, 0.18);
}

.navigation-menu .nav-has-child:hover .nav-sub,
.navigation-menu .nav-has-child:focus-within .nav-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.navigation-menu .nav-sub::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 18px;
  width: 14px;
  height: 14px;
  background: linear-gradient(150deg, #0c1f46, #0d274e);
  transform: rotate(45deg);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 0;
}

.site-main {
  background: var(--color-surface);
  padding-top: 8rem;
}

@media (max-width: 960px) {
  .site-main {
    padding-top: 9.5rem;
  }
}

@media (max-width: 720px) {
  .site-main {
    padding-top: 11.5rem;
  }

  .auth-page {
    min-height: auto;
  }

  .auth-shell {
    grid-template-columns: 1fr;
  }
}

.site-footer {
  background: #0a1b38;
  color: rgba(255, 255, 255, 0.8);
  padding: 2.5rem 0;
  margin-top: clamp(3rem, 5vw, 4rem);
}

.footer-inner {
  text-align: center;
  font-size: 0.95rem;
}

.card {
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.auth-page {
  min-height: calc(100vh - 16rem);
  display: grid;
  align-items: center;
}

.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 440px);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: stretch;
}

.auth-panel {
  border-radius: 28px;
  border: 1px solid rgba(12, 34, 64, 0.08);
  overflow: hidden;
}

.auth-panel--intro {
  padding: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(56, 189, 248, 0.26), transparent 30%),
    radial-gradient(circle at bottom left, rgba(31, 191, 184, 0.2), transparent 34%),
    linear-gradient(145deg, #081a39 0%, #10346c 52%, #0e7490 100%);
  box-shadow: 0 24px 50px rgba(8, 23, 53, 0.2);
}

.auth-panel--intro .section-eyebrow,
.auth-panel--intro .section-title,
.auth-panel--intro .auth-copy,
.auth-panel--intro .auth-benefit span,
.auth-panel--intro .auth-benefit strong {
  color: inherit;
}

.auth-copy {
  max-width: 38rem;
  margin: 1rem 0 0;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
}

.auth-benefits {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
}

.auth-benefit {
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-benefit strong {
  font-size: 1rem;
}

.auth-benefit span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.auth-panel--form {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 50px rgba(8, 23, 53, 0.12);
  padding: clamp(1.6rem, 3vw, 2.2rem);
}

.auth-form-header h2 {
  margin: 0.15rem 0 0.45rem;
  font-size: clamp(1.6rem, 2vw, 2rem);
  color: var(--color-ink-800);
}

.auth-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--color-brand-500);
}

.auth-help {
  margin: 0;
  color: var(--color-ink-500);
}

.auth-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.auth-field {
  display: grid;
  gap: 0.45rem;
}

.auth-field label {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-ink-700);
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #ffffff;
  color: var(--color-ink-800);
  font: inherit;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.auth-form input[type="text"]:focus,
.auth-form input[type="password"]:focus,
.auth-form input[type="email"]:focus {
  outline: none;
  border-color: rgba(45, 141, 252, 0.65);
  box-shadow: 0 0 0 4px rgba(45, 141, 252, 0.12);
  transform: translateY(-1px);
}

.auth-submit {
  width: 100%;
  min-height: 3rem;
  margin-top: 0.25rem;
}

.auth-alert,
.auth-error {
  color: #9f1239;
  font-size: 0.92rem;
}

.auth-alert {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #fff1f2;
  border: 1px solid #fecdd3;
}

.auth-alert--info {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.auth-alert p,
.auth-error,
.auth-help-text,
.auth-links {
  margin: 0;
}

.auth-help-text {
  color: var(--color-ink-400);
  font-size: 0.84rem;
}

.auth-links {
  margin-top: 1rem;
}

.auth-links--secondary {
  color: var(--color-ink-500);
}

.auth-links a {
  color: var(--color-brand-500);
  font-weight: 600;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-300));
  color: #ffffff;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover,
.button:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(31, 111, 235, 0.3);
}

.button-primary {
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-accent));
  color: #ffffff;
}

.button-primary:hover,
.button-primary:focus {
  filter: brightness(1.05);
}

.button-link {
  background: transparent;
  color: var(--color-brand-500);
  padding-inline: 0;
  padding-block: 0;
  border-radius: 0;
}

.button-link:hover,
.button-link:focus {
  text-decoration: underline;
  box-shadow: none;
  transform: none;
}

.button-outline {
  background: transparent;
  border: 2px solid rgba(31, 111, 235, 0.4);
  color: var(--color-brand-500);
}

.button-outline:hover,
.button-outline:focus {
  background: rgba(31, 111, 235, 0.08);
  box-shadow: none;
}

.quant-page {
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.quant-page__container {
  display: grid;
  gap: 1.5rem;
  width: min(1680px, calc(100% - 2rem));
  max-width: none;
}

.quant-hero {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.6rem, 3vw, 2.3rem);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(106, 168, 255, 0.2), transparent 34%),
    linear-gradient(145deg, #0d2754, #153b76);
  color: #ffffff;
  box-shadow: 0 22px 46px rgba(8, 23, 53, 0.18);
}

.quant-hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(222, 235, 255, 0.84);
}

.quant-hero__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}

.quant-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.05;
}

.quant-hero__summary {
  margin: 0.65rem 0 0;
  max-width: 62rem;
  color: rgba(231, 240, 255, 0.9);
  font-size: 1rem;
}

.quant-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.quant-tab-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.quant-tab-nav__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.quant-tab-nav__item:hover,
.quant-tab-nav__item:focus-visible {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.quant-tab-nav__item[aria-current="page"] {
  background: #ffffff;
  border-color: #ffffff;
  color: #12366b;
  box-shadow: 0 18px 30px -22px rgba(5, 18, 43, 0.85);
}

.quant-metadata {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.quant-metadata__card {
  display: grid;
  gap: 0.25rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
}

.quant-metadata__label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(223, 235, 255, 0.74);
}

.quant-metadata__card strong {
  font-size: 1.25rem;
  line-height: 1.2;
  color: #ffffff;
}

.quant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.quant-section {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(12, 34, 64, 0.08);
  box-shadow: 0 16px 36px rgba(8, 23, 53, 0.08);
}

.quant-section--compact {
  align-content: start;
}

.quant-section__heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.quant-section__heading h2 {
  margin: 0.2rem 0 0;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  color: var(--color-ink-800);
}

.quant-section__kicker {
  margin: 0;
  color: var(--color-brand-500);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.quant-section__note {
  margin: 0;
  max-width: 30rem;
  color: var(--color-ink-500);
  font-size: 0.92rem;
}

.quant-chip-list,
.quant-factor-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.quant-chip-list__item,
.quant-factor-list li {
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(12, 34, 64, 0.04);
  border: 1px solid rgba(12, 34, 64, 0.06);
}

.quant-chip-list__meta {
  color: var(--color-ink-500);
  font-size: 0.92rem;
  line-height: 1.5;
}

.quant-chip-list__item--empty,
.quant-factor-list__empty {
  color: var(--color-ink-400);
  font-style: italic;
}

.study-summary-panel {
  display: grid;
  gap: 1rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(11, 36, 77, 0.03), rgba(31, 111, 235, 0.05));
  border: 1px solid rgba(12, 34, 64, 0.08);
}

.study-summary-copy {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.75;
  color: var(--color-ink-700);
}

.study-summary-notes {
  display: grid;
  gap: 0.85rem;
}

.study-summary-note {
  display: grid;
  gap: 0.3rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(12, 34, 64, 0.06);
}

.study-summary-note strong {
  color: var(--color-ink-800);
}

.study-summary-note span {
  color: var(--color-ink-500);
  line-height: 1.55;
}

.study-coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
}

.study-coverage-card {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  background: rgba(12, 34, 64, 0.04);
  border: 1px solid rgba(12, 34, 64, 0.06);
}

.study-coverage-card__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink-400);
}

.study-coverage-card strong {
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--color-ink-800);
}

.study-coverage-note {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(31, 111, 235, 0.04);
  border: 1px solid rgba(31, 111, 235, 0.08);
}

.study-coverage-note p {
  margin: 0;
  color: var(--color-ink-500);
  line-height: 1.65;
}

.study-inline-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0.28rem 0.28rem 0;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.08);
  border: 1px solid rgba(31, 111, 235, 0.14);
  color: var(--color-brand-500);
  font-size: 0.86rem;
  font-weight: 600;
}

.process-hero__identity {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.process-brand-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.process-link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.process-link-card {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 1.05rem;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(242, 247, 255, 0.9));
  border: 1px solid rgba(12, 34, 64, 0.08);
  box-shadow: 0 14px 28px -22px rgba(12, 34, 64, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.process-link-card:hover,
.process-link-card:focus {
  transform: translateY(-2px);
  border-color: rgba(31, 111, 235, 0.28);
  box-shadow: 0 18px 34px -22px rgba(31, 111, 235, 0.32);
}

.process-link-card strong {
  color: var(--color-ink-800);
}

.process-link-card span {
  color: var(--color-ink-500);
  line-height: 1.55;
}

.quant-table-shell {
  --quant-sticky-first-col-width: 21rem;
  border-radius: 18px;
  border: 1px solid rgba(12, 34, 64, 0.08);
  overflow: hidden;
  background: linear-gradient(180deg, rgba(244, 247, 251, 0.55), rgba(255, 255, 255, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.quant-table-shell--input {
  --quant-sticky-first-col-width: 12rem;
}

.quant-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.quant-table-scroll::-webkit-scrollbar {
  height: 0;
}

.quant-table {
  width: 100%;
  min-width: max-content;
  border-collapse: separate;
  border-spacing: 0;
}

.quant-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  white-space: nowrap;
}

.quant-table th,
.quant-table td {
  vertical-align: top;
  text-align: left;
}

.quant-table th {
  padding: 0.82rem 0.9rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.quant-table td {
  padding: 0.78rem 0.9rem;
  line-height: 1.55;
  font-size: 0.94rem;
  background: rgba(255, 255, 255, 0.92);
}

.quant-table td:first-child {
  min-width: var(--quant-sticky-first-col-width);
}

.quant-table--input th:first-child,
.quant-table--input td:first-child {
  width: var(--quant-sticky-first-col-width);
  max-width: var(--quant-sticky-first-col-width);
  white-space: normal;
  word-break: break-word;
}

.quant-table--input thead th {
  white-space: normal;
}

.quant-table--input th:not(:first-child):not(:nth-child(2)),
.quant-table--input td:not(:first-child):not(:nth-child(2)) {
  max-width: 7.5rem;
  min-width: 5rem;
}

.quant-table__col--temps {
  min-width: 10rem;
  max-width: 13rem;
  white-space: nowrap;
}

.quant-table-shell--output {
  --quant-sticky-first-col-width: 5rem;
}

.quant-table--output th:first-child,
.quant-table--output td:first-child {
  width: var(--quant-sticky-first-col-width);
  max-width: var(--quant-sticky-first-col-width);
  text-align: center;
}

.quant-table--output thead th {
  white-space: normal;
}

.quant-table--output th:not(:first-child):not(:nth-child(2)),
.quant-table--output td:not(:first-child):not(:nth-child(2)) {
  max-width: 8rem;
  min-width: 5rem;
}

.quant-table--dense td,
.quant-table--dense th {
  padding-top: 0.72rem;
  padding-bottom: 0.72rem;
}

.quant-table--sticky th:first-child,
.quant-table--sticky td:first-child,
.quant-table--sticky th:nth-child(2),
.quant-table--sticky td:nth-child(2) {
  position: sticky;
  z-index: 2;
}

.quant-table--sticky th:first-child,
.quant-table--sticky td:first-child {
  left: 0;
}

.quant-table--sticky th:nth-child(2),
.quant-table--sticky td:nth-child(2) {
  left: var(--quant-sticky-first-col-width);
}

.quant-table--sticky thead th:first-child,
.quant-table--sticky thead th:nth-child(2) {
  z-index: 4;
}

.quant-table--sticky tbody td:first-child,
.quant-table--sticky tbody td:nth-child(2) {
  box-shadow: 1px 0 0 rgba(12, 34, 64, 0.06);
}

.quant-table--sticky th:first-child,
.quant-table--sticky th:nth-child(2) {
  background: linear-gradient(135deg, #4588ef, #6ba7ff);
}

.quant-table--sticky td:first-child,
.quant-table--sticky td:nth-child(2) {
  background: #f7faff;
}

.quant-table--sticky tbody tr:nth-child(even) td:first-child,
.quant-table--sticky tbody tr:nth-child(even) td:nth-child(2) {
  background: #edf3fc;
}

.quant-table--sticky tbody tr:hover td:first-child,
.quant-table--sticky tbody tr:hover td:nth-child(2) {
  background: #e6eefb;
}

.quant-table-scrollbar {
  position: fixed;
  left: 0;
  bottom: 1rem;
  z-index: 30;
  display: none;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(12, 34, 64, 0.1);
  border-radius: 999px;
  background: rgba(247, 250, 255, 0.96);
  box-shadow: 0 14px 28px -24px rgba(12, 34, 64, 0.65);
  backdrop-filter: blur(8px);
}

.quant-table-scrollbar__track {
  height: 1.05rem;
}

.viz-page {
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.viz-page__container {
  display: grid;
  gap: 1.5rem;
  width: min(1500px, calc(100% - 2rem));
  max-width: none;
}

.viz-hero {
  display: grid;
  gap: 1.15rem;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(31, 191, 184, 0.18), transparent 32%),
    radial-gradient(circle at bottom left, rgba(106, 168, 255, 0.18), transparent 30%),
    linear-gradient(145deg, #0c264f, #1a427b);
  color: #ffffff;
  box-shadow: 0 22px 46px rgba(8, 23, 53, 0.18);
}

.viz-hero__eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(222, 235, 255, 0.82);
}

.viz-hero__title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem 2rem;
  flex-wrap: wrap;
}

.viz-hero h1 {
  margin: 0;
  font-size: clamp(1.9rem, 3vw, 2.9rem);
  line-height: 1.08;
}

.viz-hero__summary {
  margin: 0.65rem 0 0;
  max-width: 62rem;
  color: rgba(231, 240, 255, 0.92);
  font-size: 1rem;
}

.viz-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.viz-hero__meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.viz-hero__meta-card {
  display: grid;
  gap: 0.22rem;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.viz-hero__meta-label {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(223, 235, 255, 0.72);
}

.viz-hero__meta-card strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.viz-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.viz-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(12, 34, 64, 0.08);
  box-shadow: 0 16px 36px rgba(8, 23, 53, 0.08);
}

.viz-panel--chart {
  min-height: 680px;
}

.viz-panel__heading {
  display: grid;
  gap: 0.55rem;
}

.viz-panel__kicker {
  margin: 0;
  color: var(--color-brand-500);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.viz-panel__heading h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  color: var(--color-ink-800);
}

.viz-panel__note {
  margin: 0;
  color: var(--color-ink-500);
  font-size: 0.92rem;
  line-height: 1.55;
}

.viz-control-grid {
  display: grid;
  gap: 0.9rem;
}

.viz-field {
  display: grid;
  gap: 0.38rem;
}

.viz-field span {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-ink-700);
}

.viz-field__hint {
  color: var(--color-ink-500);
  font-size: 0.82rem;
  line-height: 1.45;
}

.viz-select {
  width: 100%;
  min-height: 3rem;
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: #ffffff;
  color: var(--color-ink-800);
  font: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.viz-select:focus {
  outline: none;
  border-color: rgba(45, 141, 252, 0.65);
  box-shadow: 0 0 0 4px rgba(45, 141, 252, 0.12);
}

.viz-select--varying {
  border-color: rgba(219, 170, 45, 0.72);
  box-shadow: 0 0 0 4px rgba(219, 170, 45, 0.16), 0 10px 24px rgba(219, 170, 45, 0.14);
  background:
    linear-gradient(180deg, rgba(255, 248, 220, 0.75), rgba(255, 255, 255, 0.98));
}

.viz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.viz-results {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, #f7faff, #eef4ff);
  border: 1px solid rgba(98, 139, 214, 0.18);
}

.viz-results--empty {
  color: var(--color-ink-500);
}

.viz-results--empty p {
  margin: 0;
}

.viz-results__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.viz-results__card {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(12, 34, 64, 0.06);
}

.viz-results__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-ink-400);
}

.viz-results__card strong {
  font-size: 1.15rem;
  color: var(--color-ink-800);
}

.viz-chart-shell {
  position: relative;
  min-height: 520px;
  padding: 1rem;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(106, 168, 255, 0.08), transparent 22%),
    linear-gradient(180deg, #fbfdff, #f4f8ff);
  border: 1px solid rgba(12, 34, 64, 0.08);
}

.viz-chart-canvas {
  width: 100% !important;
  height: 100% !important;
}

@media (max-width: 980px) {
  .quant-grid {
    grid-template-columns: 1fr;
  }

  .viz-layout {
    grid-template-columns: 1fr;
  }

  .viz-panel--chart {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .quant-hero__title-row,
  .quant-section__heading {
    align-items: flex-start;
  }

  .quant-hero__actions {
    width: 100%;
  }

  .quant-hero__actions .button {
    width: 100%;
  }

  .quant-table td:first-child {
    min-width: 15rem;
  }

  .quant-table--sticky th:nth-child(2),
  .quant-table--sticky td:nth-child(2) {
    left: 15rem;
  }

  .quant-tab-nav__item {
    width: 100%;
  }

  .viz-hero__title-row {
    align-items: flex-start;
  }

  .viz-hero__actions {
    width: 100%;
  }

  .viz-hero__actions .button,
  .viz-actions .button {
    width: 100%;
  }

  .viz-chart-shell {
    min-height: 420px;
    padding: 0.75rem;
  }
}

.button-ghost {
  background: rgba(31, 111, 235, 0.1);
  color: var(--color-brand-500);
}

.button-ghost:hover,
.button-ghost:focus {
  background: rgba(31, 111, 235, 0.18);
  box-shadow: none;
}

.hero--home .button-outline {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.65);
}

.hero--home .button-outline:hover,
.hero--home .button-outline:focus {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  padding: clamp(5rem, 7vw, 7.5rem) 0 clamp(4rem, 6vw, 5.5rem);
  overflow: hidden;
  color: #ffffff;
}

.hero--home {
  background: linear-gradient(140deg, rgba(8, 23, 53, 0.92), rgba(13, 48, 104, 0.92)),
    url('../images/hero-bg.jpg') center/cover no-repeat;
  padding-top: clamp(2rem, 3.2vw, 3rem);
}

.hero--subtle {
  color: var(--color-ink-800);
  background: linear-gradient(140deg, rgba(31, 111, 235, 0.08), rgba(12, 34, 64, 0.08));
}

.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  gap: clamp(2rem, 4vw, 3rem);
}

.hero__content {
  display: grid;
  gap: 1.25rem;
}

.hero__eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 0.25rem;
}

.hero--subtle .hero__eyebrow {
  color: var(--color-brand-500);
}

.hero__title {
  font-size: clamp(2.5rem, 4vw, 3.4rem);
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero__subtitle {
  font-size: clamp(1.05rem, 2.1vw, 1.3rem);
  max-width: 54ch;
  color: rgba(255, 255, 255, 0.82);
}

.hero--subtle .hero__subtitle {
  color: var(--color-ink-500);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.hero__visual {
  display: grid;
  gap: 1rem;
  justify-items: center;
  align-self: start;
  padding-top: clamp(1rem, 3vw, 2rem);
}

.hero__badge {
  align-self: flex-start;
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 2px rgba(6, 18, 38, 0.28);
}

.hero__figure {
  margin: 0;
  width: min(480px, 100%);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 28px 60px rgba(8, 23, 53, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.hero__figure img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.hero__caption {
  margin: 0.65rem 0 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.hero__highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  width: 100%;
}

.hero__highlights li {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.44rem;
  padding: 1.5rem 1rem;
  background: rgba(8, 23, 53, 0.45);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
}

.hero__highlights i {
  color: var(--color-brand-300);
  font-size: 1.6rem;
  margin-top: 0.2rem;
}

.hero__input-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
}

.hero-input {
  border: none;
  background: transparent;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  color: #ffffff;
  min-width: clamp(220px, 45vw, 320px);
}

.hero-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.hero-input:focus {
  outline: none;
}

.brand-strip {
  padding: clamp(2.6rem, 4vw, 3.6rem) 0;
  background: #ffffff;
  border-bottom: 1px solid var(--color-border);
}

.brand-strip__inner {
  width: min(1080px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  gap: 1.75rem;
  justify-items: center;
}

.brand-strip__title {
  margin: 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.35em;
  color: var(--color-ink-500);
}

.brand-strip__caption {
  margin: -0.6rem 0 0;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-ink-600);
  text-align: center;
}

.logo-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(1.4rem, 4vw, 2.6rem);
}

.logo-grid img {
  max-height: 48px;
  max-width: clamp(110px, 20vw, 160px);
  filter: grayscale(40%);
  opacity: 0.8;
  transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.logo-grid img:hover {
  transform: translateY(-3px);
  filter: grayscale(0%);
  opacity: 1;
}

.quick-links {
  margin-top: clamp(2rem, 4vw, 3rem);
}

.quick-links__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.quick-links__card {
  display: grid;
  gap: 0.65rem;
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 1.95rem);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.quick-links__card:hover,
.quick-links__card:focus-within {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.quick-links__icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(31, 111, 235, 0.12);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  color: var(--color-brand-500);
}

.quick-links__card h3 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--color-ink-800);
}

.quick-links__card p {
  margin: 0;
  color: var(--color-ink-500);
}

.quick-links__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-brand-500);
}

.quick-links__cta i {
  font-size: 0.9rem;
}

.quick-links__cta .fa-lock,
.explore-card__cta .fa-lock {
  font-size: 0.8rem;
}

.feature-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
  position: relative;
  overflow: hidden;
}

.feature-card__eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand-500);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feature-card__title {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
  color: var(--color-ink-800);
}

.feature-card__list {
  list-style: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.feature-card__list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.65rem;
}

.feature-card__list li::before {
  content: '\f058';
  font-family: 'Font Awesome 6 Free';
  font-weight: 600;
  color: var(--color-accent);
  margin-top: 0.1rem;
}

.section-heading {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  color: var(--color-brand-500);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.section-title {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
  color: var(--color-ink-800);
}

.section-subtitle {
  color: var(--color-ink-500);
}

.how-it-works__grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 2.5rem;
}

.how-it-works__item {
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  position: relative;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.workflow-showcase {
  position: relative;
}

.workflow-diagram {
  position: relative;
  display: grid;
  gap: 1.35rem;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 30px;
  background:
    radial-gradient(circle at top left, rgba(31, 111, 235, 0.12), transparent 28%),
    radial-gradient(circle at bottom right, rgba(31, 191, 184, 0.14), transparent 30%),
    linear-gradient(160deg, #081b3b 0%, #0f2d62 54%, #0b6f8d 100%);
  box-shadow: 0 28px 60px rgba(8, 23, 53, 0.16);
  overflow: hidden;
}

.workflow-diagram__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0, rgba(255, 255, 255, 0.05) 1px, transparent 1px, transparent 100%),
    linear-gradient(rgba(255, 255, 255, 0.04) 0, rgba(255, 255, 255, 0.04) 1px, transparent 1px, transparent 100%);
  background-size: 120px 100%, 100% 120px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 92%);
  pointer-events: none;
}

.workflow-diagram__rail {
  display: none;
}

.workflow-node,
.workflow-arrow,
.workflow-loop,
.workflow-row,
.workflow-bridge,
.workflow-loop-group {
  position: relative;
  z-index: 1;
}

.workflow-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 70px minmax(0, 1fr) 70px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.workflow-row--primary {
  grid-template-rows: auto 56px;
}

.workflow-row--primary > .workflow-node,
.workflow-row--primary > .workflow-arrow:not(.workflow-arrow--drop) {
  grid-row: 1;
}

.workflow-row--secondary {
  width: 100%;
  margin: 0;
}

.workflow-node {
  min-height: 17rem;
  padding: 1.2rem 1rem 1.1rem;
  border-radius: 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px rgba(4, 16, 36, 0.22);
  display: flex;
  flex-direction: column;
}

.workflow-node h3 {
  margin: 0 0 0.45rem;
  font-size: 1.2rem;
  color: #ffffff;
}

.workflow-node p {
  margin: 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.96rem;
}

.workflow-node__kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.72);
}

.workflow-node__icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 18px;
  font-size: 1.2rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.workflow-node--literature .workflow-node__icon {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.45), rgba(249, 115, 22, 0.38));
}

.workflow-node--nlp .workflow-node__icon {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.42), rgba(16, 185, 129, 0.34));
}

.workflow-node--database .workflow-node__icon {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.44), rgba(59, 130, 246, 0.34));
}

.workflow-node--modelling .workflow-node__icon {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.44), rgba(139, 92, 246, 0.34));
}

.workflow-node--decision .workflow-node__icon {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.42), rgba(244, 114, 182, 0.32));
}

.workflow-node--interface .workflow-node__icon {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.42), rgba(20, 184, 166, 0.34));
}

.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  color: rgba(255, 255, 255, 0.82);
  justify-self: stretch;
}

.workflow-arrow__line {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.9));
}

.workflow-arrow i {
  font-size: 0.95rem;
  flex-shrink: 0;
}

.workflow-arrow--drop {
  grid-column: 5;
  grid-row: 2;
  min-height: 3rem;
  flex-direction: column;
  align-self: center;
  justify-self: center;
  width: 70px;
}

.workflow-arrow__line--drop {
  width: 2px;
  height: 100%;
  min-height: 2.2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.9));
}

.platform-about__actions {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.workflow-arrow--left {
  flex-direction: row-reverse;
}

.workflow-arrow--left .workflow-arrow__line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.08));
}

.workflow-row--secondary .workflow-node--interface {
  grid-column: 1;
}

.workflow-row--secondary .workflow-node--decision {
  grid-column: 3;
}

.workflow-row--secondary .workflow-node--modelling {
  grid-column: 5;
}

.step-number {
  position: absolute;
  top: -18px;
  left: 24px;
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-accent));
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px rgba(8, 23, 53, 0.18);
}

.page-header {
  padding-bottom: 1.5rem;
}

.page-header__eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 600;
  color: var(--color-brand-500);
  margin-bottom: 0.5rem;
}

.page-header__title {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  color: var(--color-ink-800);
}

.page-header__subtitle {
  margin-top: 0.6rem;
  max-width: 60ch;
  color: var(--color-ink-500);
}

.explore-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: stretch;
}

.explore-card {
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 3vw, 2.2rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-top-width: 3px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  color: inherit;
  display: grid;
  gap: 0.75rem;
  grid-template-rows: auto auto auto 1fr auto;
}

.explore-card h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--color-ink-800);
}

.explore-card p {
  margin: 0;
}

.explore-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: rgba(31, 111, 235, 0.12);
  color: var(--color-brand-500);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.explore-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--color-brand-500);
  padding-top: 0.25rem;
  align-self: end;
}

.explore-card__tier {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-ink-500);
  line-height: 1.35;
}

.explore-card__tier .explore-data-overview__dot {
  width: 0.55rem;
  height: 0.55rem;
  margin-top: 0;
  flex-shrink: 0;
}

/* Module colour accents */
.explore-card--bibliometric  { border-top-color: #ef9f27; }
.explore-card--qualitative   { border-top-color: #1d9e75; }
.explore-card--quantitative  { border-top-color: #7f77dd; }
.explore-card--ingredients   { border-top-color: #7f77dd; }
.explore-card--relationships { border-top-color: #d85a30; }

.explore-card--bibliometric  .explore-card__icon { background: rgba(239, 159,  39, 0.12); color: #c47d0d; }
.explore-card--qualitative   .explore-card__icon { background: rgba( 29, 158, 117, 0.12); color: #1d9e75; }
.explore-card--quantitative  .explore-card__icon { background: rgba(127, 119, 221, 0.12); color: #7f77dd; }
.explore-card--ingredients   .explore-card__icon { background: rgba(127, 119, 221, 0.12); color: #7f77dd; }
.explore-card--relationships .explore-card__icon { background: rgba(216,  90,  48, 0.12); color: #d85a30; }

.explore-card--bibliometric:hover,  .explore-card--bibliometric:focus  { border-color: #ef9f27; }
.explore-card--qualitative:hover,   .explore-card--qualitative:focus   { border-color: #1d9e75; }
.explore-card--quantitative:hover,  .explore-card--quantitative:focus  { border-color: #7f77dd; }
.explore-card--ingredients:hover,   .explore-card--ingredients:focus   { border-color: #7f77dd; }
.explore-card--relationships:hover, .explore-card--relationships:focus { border-color: #d85a30; }

.explore-card:hover,
.explore-card:focus {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.future-dev-header {
  display: grid;
  gap: 0.9rem;
}

.future-dev-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.future-dev-intro {
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.future-dev-intro__panel,
.future-dev-placeholder__card {
  background: linear-gradient(145deg, rgba(12, 31, 70, 0.98), rgba(22, 54, 108, 0.92));
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.3rem);
  box-shadow: var(--shadow-card);
}

.future-dev-intro__panel h2,
.future-dev-placeholder__card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  color: #ffffff;
}

.future-dev-intro__panel p,
.future-dev-placeholder__card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
}

.future-dev-card {
  position: relative;
  gap: 1rem;
  grid-template-rows: auto minmax(8.5rem, auto) minmax(0, 1fr) auto;
  height: 100%;
}

.future-dev-card__meta {
  display: grid;
  gap: 0.55rem;
  align-content: start;
}

.future-dev-card h2,
.future-dev-card p {
  margin: 0;
}

.future-dev-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.future-dev-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(12, 31, 70, 0.08);
  color: var(--color-brand-500);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .future-dev-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .future-dev-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .future-dev-card {
    grid-template-rows: auto auto minmax(0, 1fr) auto;
  }
}

.future-dev-placeholder {
  display: grid;
}

.future-dev-placeholder__card {
  display: grid;
  gap: 1rem;
}

.future-dev-placeholder__icon {
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  font-size: 1.5rem;
}

.future-dev-placeholder__note {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.72);
}

.community-hero {
  position: relative;
  padding: clamp(3.75rem, 5.2vw, 4.8rem) 0 clamp(2.75rem, 4vw, 3.4rem);
  background:
    radial-gradient(circle at 82% 18%, rgba(49, 116, 255, 0.12), transparent 20rem),
    linear-gradient(180deg, rgba(237, 244, 255, 0.9), rgba(255, 255, 255, 0.98));
}

.community-hero__content {
  gap: 1rem;
  justify-items: center;
  text-align: center;
}

.community-hero__title {
  max-width: 19ch;
  font-size: clamp(2.35rem, 3.7vw, 3.15rem);
  line-height: 1.08;
  text-wrap: balance;
}

.community-hero__subtitle {
  max-width: 54ch;
  font-size: 1.02rem;
}

.community-hero__actions {
  margin-top: 0.2rem;
  justify-content: center;
}

.community-hero__cta {
  padding-inline: 1.15rem;
  box-shadow: 0 14px 30px rgba(31, 111, 235, 0.18);
}

.community-shell {
  position: relative;
  padding-top: clamp(1.8rem, 3vw, 2.75rem);
  padding-bottom: clamp(2.4rem, 4vw, 3.6rem);
}

.community-shell__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.92), rgba(255, 255, 255, 0.98));
  border-top: 1px solid rgba(31, 111, 235, 0.08);
  pointer-events: none;
}

.community-layout {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  align-items: start;
}

.community-summary {
  position: sticky;
  top: 7.5rem;
  display: grid;
  gap: 1.15rem;
  padding: 1.45rem 1.35rem 1.3rem;
  border: 1px solid rgba(31, 111, 235, 0.08);
  border-radius: 1.6rem;
  background:
    linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(244, 248, 255, 0.94));
  box-shadow: 0 16px 36px rgba(8, 23, 53, 0.06);
}

.community-summary__eyebrow,
.community-directory__eyebrow {
  margin: 0;
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-brand-500);
}

.community-summary h2,
.community-directory h2 {
  margin: 0;
  color: var(--color-ink-800);
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  letter-spacing: -0.03em;
}

.community-summary h2 {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  letter-spacing: -0.02em;
}

.stat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.1rem;
}

.stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-weight: 600;
  color: var(--color-ink-700);
}

.stat-list li span {
  font-size: 0.95rem;
}

.stat-list > li:not(.stat-list__stacked) {
  padding: 0.9rem 0.95rem;
  border: 1px solid rgba(31, 111, 235, 0.08);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.84);
}

.stat-list strong {
  font-size: 1.45rem;
  line-height: 1;
  color: var(--color-brand-500);
}

.stat-list__stacked {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.7rem;
  padding-top: 0.15rem;
}

.stat-list__stacked ol {
  margin: 0;
  padding-left: 0;
  color: var(--color-ink-500);
  display: grid;
  gap: 0.45rem;
  list-style: none;
}

.stat-list__stacked ol li {
  display: block;
  padding: 0;
  font-weight: 500;
  line-height: 1.45;
}

.stat-list__stacked ol li strong {
  color: var(--color-ink-700);
}

.community-summary__cta {
  justify-self: start;
  margin-top: 0.25rem;
  padding-inline: 1rem;
  background: rgba(31, 111, 235, 0.08);
}

.community-directory {
  display: grid;
  gap: 1.25rem;
  align-content: start;
}

.community-directory__header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.3rem;
}

.community-directory__intro {
  display: grid;
  gap: 0.45rem;
  max-width: 40rem;
}

.community-directory__description {
  max-width: 42ch;
}

.search-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: clamp(260px, 32vw, 360px);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(8, 23, 53, 0.08);
  box-shadow: 0 10px 26px rgba(8, 23, 53, 0.06);
}

.search-field i {
  color: var(--color-ink-300);
}

.search-field input {
  border: none;
  background: transparent;
  min-width: 0;
  width: 100%;
  font-size: 0.98rem;
  color: var(--color-ink-700);
}

.search-field input:focus {
  outline: none;
}

.community-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.explore-auth-notice {
  margin-top: 1rem;
  max-width: 42rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(31, 111, 235, 0.18);
  background: rgba(31, 111, 235, 0.08);
  color: var(--color-ink-700);
}

.explore-data-overview {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1rem, 2vw, 1.3rem);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 250, 255, 0.96));
  border: 1px solid rgba(31, 111, 235, 0.1);
  box-shadow: 0 14px 34px rgba(8, 23, 53, 0.06);
  display: grid;
  gap: 1rem;
}

.explore-data-overview__header {
  display: grid;
  gap: 0.2rem;
}

.explore-data-overview__eyebrow {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-brand-500);
  padding-left: 0.6rem;
  border-left: 3px solid var(--color-brand-400);
}

.explore-data-overview__intro {
  margin: 0;
  max-width: 52rem;
  font-size: 0.94rem;
  color: var(--color-ink-500);
  line-height: 1.45;
}

.explore-data-overview__pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(16rem, 0.9fr);
  gap: 0.9rem;
  align-items: start;
}

.explore-data-overview__steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  background: rgba(15, 23, 42, 0.025);
  border-radius: 20px;
  padding: 0.55rem 0.65rem;
}

.explore-data-overview__step {
  min-height: 0;
  padding: 0.8rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-top: 3px solid var(--color-brand-400);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 0.18rem;
  text-align: center;
}

.explore-data-overview__count {
  font-size: clamp(1.1rem, 1.5vw, 1.45rem);
  font-weight: 800;
  color: var(--color-brand-600);
  line-height: 1;
  letter-spacing: -0.03em;
}

.explore-data-overview__subset .explore-data-overview__count {
  color: var(--color-ink-900);
}

.explore-data-overview__label {
  font-size: 0.92rem;
  color: var(--color-ink-600);
  line-height: 1.35;
}

.explore-data-overview__arrow {
  display: grid;
  gap: 0.12rem;
  justify-items: center;
  color: var(--color-ink-400);
}

.explore-data-overview__arrow i {
  font-size: 0.95rem;
}

.explore-data-overview__arrow span {
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.explore-data-overview__subset-stack {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.explore-data-overview__subset {
  position: relative;
  padding: 0.8rem 0.95rem;
  border-radius: 18px;
  display: grid;
  gap: 0.18rem;
  border: 1px solid transparent;
  box-shadow: none;
}

.explore-data-overview__subset--qualitative {
  background: linear-gradient(180deg, rgba(24, 142, 108, 0.14), rgba(24, 142, 108, 0.09));
  border-color: rgba(24, 142, 108, 0.16);
}

.explore-data-overview__subset--quantitative {
  background: linear-gradient(180deg, rgba(90, 78, 214, 0.16), rgba(90, 78, 214, 0.1));
  border-color: rgba(90, 78, 214, 0.18);
}

.explore-data-overview__subset-badge {
  justify-self: start;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--color-ink-700);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.explore-data-overview__module-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-ink-500);
}

.explore-data-overview__modules {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
}

.explore-data-overview__module {
  padding: 0.8rem 0.85rem 0.9rem;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.78);
  display: grid;
  gap: 0.35rem;
}

.explore-data-overview__module-tier {
  display: flex;
  align-items: flex-start;
  gap: 0.38rem;
  color: var(--color-ink-500);
  font-size: 0.78rem;
  line-height: 1.35;
}

.explore-data-overview__module-tier-stack {
  display: grid;
  gap: 0.08rem;
}

.explore-data-overview__dot {
  width: 0.46rem;
  height: 0.46rem;
  border-radius: 999px;
  margin-top: 0.32rem;
  flex-shrink: 0;
}

.explore-data-overview__dot--bibliometric { background: #ef9f27; }
.explore-data-overview__dot--qualitative { background: #1d9e75; }
.explore-data-overview__dot--quantitative { background: #7f77dd; }
.explore-data-overview__dot--relationships { background: #d85a30; }

.explore-data-overview__module--bibliometric  { border-top: 3px solid #ef9f27; }
.explore-data-overview__module--qualitative   { border-top: 3px solid #1d9e75; }
.explore-data-overview__module--quantitative  { border-top: 3px solid #7f77dd; }
.explore-data-overview__module--ingredients   { border-top: 3px solid #7f77dd; }
.explore-data-overview__module--relationships { border-top: 3px solid #d85a30; }

.explore-data-overview__module h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-ink-900);
  line-height: 1.2;
}

.explore-data-overview__module p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-ink-600);
  line-height: 1.45;
}

.explore-literature-row {
  margin-top: clamp(1rem, 2vw, 1.25rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(0.8rem, 1.8vw, 1rem);
  align-items: stretch;
}

.explore-card--literature {
  height: 100%;
}

.explore-litrel-panel {
  padding: clamp(1rem, 2vw, 1.2rem);
  border-radius: 20px;
  border: 1px solid rgba(216, 90, 48, 0.16);
  background: linear-gradient(180deg, rgba(255, 250, 247, 0.98), rgba(255, 246, 241, 0.96));
  box-shadow: 0 14px 30px rgba(8, 23, 53, 0.06);
  display: grid;
  gap: 0.8rem;
}

.explore-litrel-panel__header {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
}

.explore-litrel-panel__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.8rem;
  background: rgba(216, 90, 48, 0.12);
  color: #b24d28;
  display: grid;
  place-items: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.explore-litrel-panel__header h2 {
  margin: 0 0 0.25rem;
  font-size: 1.08rem;
  color: var(--color-ink-900);
  line-height: 1.2;
}

.explore-litrel-panel__header p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--color-ink-600);
  line-height: 1.45;
}

.explore-litrel-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 0.8rem;
}

.explore-litrel-panel__pipeline,
.explore-litrel-panel__highlights {
  display: grid;
  gap: 0.55rem;
}

.explore-litrel-panel__stage,
.explore-litrel-panel__highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
}

.explore-litrel-panel__stage-num,
.explore-litrel-panel__highlight-dot {
  margin-top: 0.12rem;
}

.explore-litrel-panel__stage-num {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  background: rgba(216, 90, 48, 0.1);
  color: #a94824;
  font-size: 0.72rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.explore-litrel-panel__highlight-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: #d85a30;
}

.explore-litrel-panel__stage strong,
.explore-litrel-panel__highlight strong {
  color: var(--color-ink-900);
}

.explore-litrel-panel__stage div,
.explore-litrel-panel__highlight div {
  font-size: 0.9rem;
  color: var(--color-ink-600);
  line-height: 1.42;
}

.explore-litrel-panel__example {
  padding: 0.7rem 0.8rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(216, 90, 48, 0.12);
  font-size: 0.88rem;
  color: var(--color-ink-600);
  line-height: 1.42;
}

.explore-litrel-panel__example strong {
  color: var(--color-ink-900);
}

.community-filter {
  position: relative;
  display: grid;
  gap: 0.2rem;
  min-width: min(100%, 190px);
  padding: 0.72rem 0.95rem 0.72rem 1rem;
  border: 1px solid rgba(8, 23, 53, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: none;
}

.community-filter__label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--color-ink-300);
}

.community-filter select {
  border: none;
  background: transparent;
  color: var(--color-ink-700);
  font-size: 0.92rem;
  font-weight: 600;
  padding-right: 1rem;
}

.community-filter select:focus {
  outline: none;
}

.community-results-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.15rem 0 0.05rem;
}

.community-results-bar__summary,
.community-results-bar__hint {
  margin: 0;
}

.community-results-bar__summary {
  color: var(--color-ink-800);
  font-size: 0.98rem;
  font-weight: 700;
}

.community-results-bar__hint {
  color: var(--color-ink-300);
  font-size: 0.88rem;
}

.community-cards {
  display: grid;
  gap: clamp(1.15rem, 2vw, 1.6rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.community-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.community-card {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 100%;
  padding: 1.35rem 1.3rem 1.2rem;
  border: 1px solid rgba(8, 23, 53, 0.07);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(8, 23, 53, 0.05);
}

.community-card--linked {
  border-color: rgba(31, 111, 235, 0.18);
  background:
    radial-gradient(circle at top right, rgba(31, 111, 235, 0.08), transparent 36%),
    rgba(255, 255, 255, 0.99);
  box-shadow:
    0 12px 26px rgba(8, 23, 53, 0.05),
    0 0 0 1px rgba(31, 111, 235, 0.06);
}

.community-card__profile-token {
  position: absolute;
  top: 0.95rem;
  right: 0.95rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: var(--color-brand-500);
  background: rgba(31, 111, 235, 0.09);
}

.community-card__header {
  display: grid;
  gap: 0.35rem;
  padding-right: 2.3rem;
}

.community-card__heading {
  display: grid;
  gap: 0.55rem;
}

.community-card h3 {
  margin: 0;
  color: var(--color-ink-800);
  font-size: 1.34rem;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.community-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.32rem 0.72rem;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.1);
  color: var(--color-brand-600);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-card__action {
  color: var(--color-brand-500);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.community-card__meta {
  display: grid;
  gap: 0.75rem;
}

.community-card__meta p {
  margin: 0;
  display: grid;
  gap: 0.18rem;
  color: var(--color-ink-600);
  font-size: 0.95rem;
  line-height: 1.45;
}

.community-card__meta p span {
  color: var(--color-ink-300);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.community-card-link .community-card {
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease;
}

.community-card-link:hover .community-card,
.community-card-link:focus-visible .community-card {
  transform: translateY(-3px);
}

.community-card-link:hover .community-card--linked,
.community-card-link:focus-visible .community-card--linked {
  border-color: rgba(31, 111, 235, 0.32);
  box-shadow:
    0 18px 34px rgba(8, 23, 53, 0.08),
    0 0 0 1px rgba(31, 111, 235, 0.1);
}

.muted-text {
  color: var(--color-ink-300);
  font-size: 0.95rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.profile-page {
  display: grid;
  gap: clamp(2rem, 3vw, 3rem);
}

.profile-hero {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr);
  align-items: center;
}

.profile-avatar {
  width: clamp(96px, 12vw, 120px);
  height: clamp(96px, 12vw, 120px);
  border-radius: 28px;
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-accent));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: clamp(1.8rem, 3vw, 2.2rem);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.profile-hero__text h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 2.6rem);
  color: var(--color-ink-800);
}

.profile-kicker {
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.24em;
  color: var(--color-brand-500);
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.profile-subtitle {
  color: var(--color-ink-500);
  max-width: 60ch;
}

.profile-content {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.profile-main__header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.profile-status-badges {
  display: inline-flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.status-badge {
  background: rgba(31, 111, 235, 0.12);
  color: var(--color-brand-500);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.status-badge--accent {
  background: rgba(31, 191, 184, 0.12);
  color: var(--color-accent);
}

.profile-info-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 1.8rem;
}

.info-item {
  display: grid;
  gap: 0.35rem;
}

.info-item .label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-ink-300);
  font-weight: 600;
}

.info-item .value {
  font-size: 1.05rem;
  color: var(--color-ink-700);
  font-weight: 600;
}

.profile-edit-form {
  display: grid;
  gap: 1.4rem;
}

.profile-edit-form .label {
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-ink-300);
}

.info-item--editable {
  align-content: start;
}

.profile-edit-form .form-control {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(31, 111, 235, 0.25);
  background-color: #ffffff;
  padding: 0.75rem 0.95rem;
  font-size: 0.98rem;
  color: var(--color-ink-700);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-edit-form textarea.form-control {
  min-height: 130px;
  resize: vertical;
  line-height: 1.45;
}

.profile-edit-form .form-control::placeholder {
  color: var(--color-ink-300);
}

.profile-edit-form .form-control:hover {
  border-color: rgba(31, 111, 235, 0.4);
}

.profile-edit-form .form-control:focus {
  outline: none;
  border-color: var(--color-brand-500);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.12);
}

.profile-bio--editable {
  display: grid;
  gap: 0.6rem;
  max-width: 820px;
}

.profile-bio--editable .muted-text {
  margin: 0;
}

.profile-edit-form__actions {
  margin-top: 0.2rem;
}

.profile-edit-form__actions .button {
  min-width: 170px;
}

.form-error {
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
}

.profile-side {
  display: grid;
  gap: 1.25rem;
}

.profile-community-card p,
.profile-highlights p,
.profile-highlights li {
  color: var(--color-ink-500);
}

.profile-highlights ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: grid;
  gap: 0.75rem;
}

.profile-highlights li strong {
  color: var(--color-ink-700);
}

.profile-card-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.profile-card-section h3 {
  margin: 0 0 0.8rem;
}

.profile-insights-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.profile-insight-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  padding: 0.75rem;
  background: rgba(241, 247, 255, 0.85);
}

.profile-insight-card h4 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #10284d;
}

.profile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.profile-list li {
  display: grid;
  gap: 0.3rem;
  padding: 0.75rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
}

.profile-milestone-grid {
  display: grid;
  gap: 1rem;
}

.profile-milestone-card {
  --milestone-accent: #2a6bc7;
  --milestone-accent-rgb: 42, 107, 199;
  --milestone-surface: linear-gradient(135deg, rgba(236, 243, 255, 0.96), rgba(255, 255, 255, 0.98));
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.9rem;
  padding: 1.05rem 1.15rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(27, 53, 100, 0.1);
  background: var(--milestone-surface);
  box-shadow: 0 10px 24px rgba(16, 40, 77, 0.06);
}

.profile-milestone-card::after {
  content: "";
  position: absolute;
  inset: auto -28px -38px auto;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.profile-milestone-card__header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.profile-milestone-card__icon {
  width: 3rem;
  height: 3rem;
  flex: 0 0 3rem;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: linear-gradient(145deg, var(--milestone-accent), rgba(var(--milestone-accent-rgb), 0.72));
  box-shadow: 0 12px 20px rgba(var(--milestone-accent-rgb), 0.24);
}

.profile-milestone-card__icon i {
  font-size: 1rem;
}

.profile-milestone-card__title-group {
  display: grid;
  gap: 0.12rem;
}

.profile-milestone-card__title-group strong {
  color: #0f274b;
  font-size: 1.06rem;
  line-height: 1.3;
}

.profile-milestone-card__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--milestone-accent);
}

.profile-milestone-card__description {
  margin: 0;
  color: #57739a;
}

.profile-milestone-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.92rem;
  color: #6a81a3;
}

.profile-milestone-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-milestone-card__meta span::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: rgba(var(--milestone-accent-rgb), 0.72);
  box-shadow: 0 0 0 4px rgba(var(--milestone-accent-rgb), 0.14);
}

.profile-milestone-card--prediction_workflow_completed {
  --milestone-accent: #2563a6;
  --milestone-accent-rgb: 37, 99, 166;
  --milestone-surface: linear-gradient(135deg, rgba(232, 244, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.profile-milestone-card--prediction_engine_opened_first,
.profile-milestone-card--prediction_engine_regular,
.profile-milestone-card--first_trial_plan,
.profile-milestone-card--planning_habit,
.profile-milestone-card--trial_plan_power_user,
.profile-milestone-card--trial_plan_downloaded_first,
.profile-milestone-card--prediction_workflow_completed_v2,
.profile-milestone-card--workspace_project_created {
  --milestone-accent: #2563a6;
  --milestone-accent-rgb: 37, 99, 166;
  --milestone-surface: linear-gradient(135deg, rgba(232, 244, 255, 0.98), rgba(255, 255, 255, 0.98));
}

.profile-milestone-card--experiment_planner_active {
  --milestone-accent: #1f8f78;
  --milestone-accent-rgb: 31, 143, 120;
  --milestone-surface: linear-gradient(135deg, rgba(232, 248, 244, 0.98), rgba(255, 255, 255, 0.98));
}

.profile-milestone-card--workspace_snapshot_saved,
.profile-milestone-card--workspace_snapshot_collector,
.profile-milestone-card--workspace_resume_user,
.profile-milestone-card--results_logged_first,
.profile-milestone-card--results_loop_active,
.profile-milestone-card--next_plan_generated,
.profile-milestone-card--recommendation_unlocked {
  --milestone-accent: #1f8f78;
  --milestone-accent-rgb: 31, 143, 120;
  --milestone-surface: linear-gradient(135deg, rgba(232, 248, 244, 0.98), rgba(255, 255, 255, 0.98));
}

.profile-milestone-card--data_explorer {
  --milestone-accent: #7b5eb3;
  --milestone-accent-rgb: 123, 94, 179;
  --milestone-surface: linear-gradient(135deg, rgba(242, 238, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.profile-milestone-card--research_browser,
.profile-milestone-card--explorer {
  --milestone-accent: #7b5eb3;
  --milestone-accent-rgb: 123, 94, 179;
  --milestone-surface: linear-gradient(135deg, rgba(242, 238, 252, 0.98), rgba(255, 255, 255, 0.98));
}

.profile-milestone-card--consistency_user {
  --milestone-accent: #c57f2d;
  --milestone-accent-rgb: 197, 127, 45;
  --milestone-surface: linear-gradient(135deg, rgba(255, 246, 233, 0.98), rgba(255, 255, 255, 0.98));
}

.profile-milestone-card--profile_complete,
.profile-milestone-card--platform_regular {
  --milestone-accent: #c57f2d;
  --milestone-accent-rgb: 197, 127, 45;
  --milestone-surface: linear-gradient(135deg, rgba(255, 246, 233, 0.98), rgba(255, 255, 255, 0.98));
}

.profile-milestone-card--collaboration_activity {
  --milestone-accent: #b34c6b;
  --milestone-accent-rgb: 179, 76, 107;
  --milestone-surface: linear-gradient(135deg, rgba(252, 239, 243, 0.98), rgba(255, 255, 255, 0.98));
}

.profile-milestone-card--capability_builder,
.profile-milestone-card--first_endorsement_given,
.profile-milestone-card--community_supporter,
.profile-milestone-card--recognised_by_peers {
  --milestone-accent: #b34c6b;
  --milestone-accent-rgb: 179, 76, 107;
  --milestone-surface: linear-gradient(135deg, rgba(252, 239, 243, 0.98), rgba(255, 255, 255, 0.98));
}

.profile-capability-form {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.profile-capability-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.capability-picker {
  margin-top: 0.75rem;
}

.capability-picker[hidden] {
  display: none;
}

.capability-pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.55rem;
}

.capability-pill {
  display: inline-flex;
  align-items: center;
}

.capability-pill input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.capability-pill span {
  display: inline-block;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  background: #ffffff;
  color: var(--color-ink-700);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.15s ease;
}

.capability-pill input[type="checkbox"]:checked + span {
  border-color: var(--color-brand-500);
  background: rgba(31, 111, 235, 0.12);
  color: var(--color-brand-500);
}

.profile-capability-actions {
  margin-top: 0.4rem;
}

.inline-action-form {
  margin-top: 0.3rem;
}

.contact-page {
  display: grid;
  gap: clamp(2.5rem, 4vw, 3.5rem);
}

.contact-hero {
  display: grid;
  gap: clamp(1.75rem, 3vw, 2.5rem);
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  align-items: stretch;
  position: relative;
  overflow: hidden;
}

.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(31, 111, 235, 0.16), transparent 60%),
    radial-gradient(circle at bottom left, rgba(31, 191, 184, 0.14), transparent 55%);
  pointer-events: none;
}

.contact-hero__text {
  position: relative;
  display: grid;
  gap: 1.25rem;
  z-index: 1;
}

.contact-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-brand-500);
  margin: 0;
}

.contact-hero__text h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.5vw, 2.8rem);
  color: var(--color-ink-800);
}

.contact-subtitle {
  margin: 0;
  color: var(--color-ink-500);
  max-width: 60ch;
  line-height: 1.7;
}

.contact-highlight {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  background: rgba(31, 111, 235, 0.08);
  border: 1px solid rgba(31, 111, 235, 0.16);
  max-width: 480px;
}

.contact-highlight__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-300));
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.contact-highlight__title {
  margin: 0;
  font-weight: 600;
  color: var(--color-ink-700);
}

.contact-highlight__body {
  margin: 0.35rem 0 0;
  color: var(--color-ink-500);
}

.contact-hero__aside {
  position: relative;
  z-index: 1;
  align-self: stretch;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(155deg, rgba(10, 28, 58, 0.96), rgba(28, 59, 103, 0.94));
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(170, 205, 255, 0.16);
  box-shadow: 0 22px 50px rgba(8, 23, 53, 0.2);
  display: grid;
  gap: 1rem;
  overflow: hidden;
}

.contact-hero__aside::before {
  content: "";
  position: absolute;
  inset: auto -15% 52% auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(115, 179, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.contact-hero__aside-header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.3rem;
}

.contact-hero__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(185, 214, 255, 0.78);
}

.contact-hero__aside-header p:last-child {
  margin: 0;
  max-width: 34ch;
  color: rgba(232, 241, 255, 0.78);
  line-height: 1.45;
}

.contact-hero__aside h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.contact-hero__contacts {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  position: relative;
  z-index: 1;
}

.contact-hero__contact {
  display: grid;
  gap: 0.65rem;
  align-content: start;
  padding: 0.85rem 0.9rem 0.9rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.contact-hero__name {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
}

.contact-hero__role {
  margin: 0;
  color: rgba(232, 241, 255, 0.82);
  line-height: 1.45;
}

.contact-hero__email {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  width: fit-content;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-weight: 600;
}

.contact-hero__email:hover,
.contact-hero__email:focus {
  color: #ffffff;
  background: rgba(124, 184, 255, 0.16);
  border-color: rgba(170, 211, 255, 0.3);
}

.contact-hero__email i {
  color: rgba(174, 214, 255, 0.95);
}

.contact-hero__location {
  position: relative;
  z-index: 1;
  padding: 0.9rem 0.95rem;
  border-radius: 18px;
  background: rgba(4, 16, 34, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-hero__location .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 0.2rem;
}

.contact-hero__location p {
  margin: 0;
  color: rgba(244, 248, 255, 0.9);
  line-height: 1.5;
}

.contact-grid {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.contact-details {
  display: grid;
  gap: 1.5rem;
}

.contact-details__grid {
  display: grid;
  gap: 1.25rem;
}

.contact-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.contact-detail__icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: rgba(31, 111, 235, 0.12);
  color: var(--color-brand-500);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
}

.contact-detail h3 {
  margin: 0;
  color: var(--color-ink-700);
}

.contact-detail p {
  margin: 0.35rem 0 0;
  color: var(--color-ink-500);
}

.contact-form-card {
  display: grid;
  gap: 1.5rem;
}

.contact-form {
  display: grid;
  gap: 1.25rem;
}

.form-group {
  display: grid;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-ink-600);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(12, 34, 64, 0.12);
  background: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-brand-400);
  box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
}

.contact-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact-support__content {
  max-width: 54ch;
}

.contact-support h2 {
  margin: 0;
  color: var(--color-ink-800);
}

.contact-support p {
  margin: 0.5rem 0 0;
  color: var(--color-ink-500);
}

.contact-team {
  display: grid;
  gap: 1.25rem;
}

.contact-team h2 {
  margin: 0;
}

.contact-team p {
  margin: 0;
  color: var(--color-ink-500);
}

.contact-team__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.contact-team__member {
  border: 1px solid rgba(12, 34, 64, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  background: rgba(255, 255, 255, 0.75);
}

.contact-team__member h3 {
  margin: 0 0 0.5rem;
}

.contact-team__member p {
  margin: 0.25rem 0;
  font-size: 0.92rem;
}

.contact-team__photo {
  width: 132px !important;
  height: 132px !important;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  margin-bottom: 0.85rem;
  border: 3px solid rgba(31, 111, 235, 0.24);
  display: block;
}

/* Data tables & utilities */
.table-container {
  padding: 1.5rem;
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  overflow-x: auto;
}

.styled-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.styled-table thead th {
  background: linear-gradient(135deg, var(--color-brand-500), var(--color-brand-300));
  color: #ffffff;
  text-align: left;
  padding: 0.85rem 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.styled-table th,
.styled-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(12, 34, 64, 0.08);
}

.styled-table tbody tr:nth-child(even) {
  background: rgba(31, 111, 235, 0.04);
}

.styled-table tbody tr:hover {
  background: rgba(31, 111, 235, 0.12);
}

.styled-table .na-text {
  color: var(--color-ink-300);
  font-style: italic;
}

.no-data {
  text-align: center;
  font-style: italic;
  color: var(--color-ink-300);
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.filter-container input,
.filter-container select {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #ffffff;
  font-size: 0.95rem;
}

.filter-container .button {
  padding: 0.65rem 1.15rem;
}

.remove-filters-btn {
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  border: none;
  background: #ff6b6b;
  color: #ffffff;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.remove-filters-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255, 107, 107, 0.25);
}

.team-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.team-member {
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  width: 280px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-member:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card);
}

.team-photo {
  border-radius: 50%;
  width: 96px;
  height: 96px;
  margin: 0 auto 0.75rem;
  object-fit: cover;
}

.main-header {
  position: relative;
  text-align: center;
  padding: clamp(3rem, 5vw, 4.2rem) 0 clamp(2.2rem, 4vw, 3.2rem);
  margin: 0 0 clamp(1.8rem, 4vw, 2.8rem);
  color: #ffffff;
  background: linear-gradient(135deg, rgba(8, 23, 53, 0.95), rgba(13, 58, 123, 0.92));
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(8, 23, 53, 0.45);
}

.main-header::before,
.main-header::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.main-header::before {
  background: radial-gradient(120% 120% at 50% -10%, rgba(255, 255, 255, 0.18), transparent 70%);
  opacity: 0.8;
}

.main-header::after {
  background: linear-gradient(120deg, rgba(31, 111, 235, 0.18), transparent 55%);
  mix-blend-mode: screen;
}

.main-header > * {
  position: relative;
  z-index: 1;
  margin-left: auto;
  margin-right: auto;
  width: min(1080px, calc(100% - 3rem));
}

.main-header h1 {
  margin: 0;
  font-size: clamp(2.1rem, 3.8vw, 2.9rem);
  letter-spacing: -0.01em;
}

.main-header p {
  margin: 0.75rem auto 0;
  max-width: 70ch;
  color: rgba(255, 255, 255, 0.8);
}

.main-header .header-actions {
  margin-top: 1.35rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.main-header .header-actions .button-outline {
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
}

.main-header .header-actions .button-outline:hover,
.main-header .header-actions .button-outline:focus {
  background: rgba(255, 255, 255, 0.15);
}

.page-breadcrumbs-shell {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(238, 244, 252, 0.96));
  box-shadow:
    inset 0 -1px 0 rgba(15, 23, 42, 0.04),
    0 10px 26px -22px rgba(8, 23, 53, 0.38);
}

.page-breadcrumbs {
  margin: 0 auto;
  padding: 1rem 0 1.05rem;
}

.breadcrumb {
  width: min(1080px, calc(100% - 3rem));
  margin: clamp(1.2rem, 3vw, 1.8rem) auto clamp(2.2rem, 4vw, 3rem);
  font-size: 0.95rem;
  color: var(--color-ink-500);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  line-height: 1.4;
}

.breadcrumb a {
  color: var(--color-brand-500);
  font-weight: 600;
}

.breadcrumb a:hover,
.breadcrumb a:focus {
  color: var(--color-brand-400);
}

.breadcrumb span[aria-hidden="true"] {
  color: rgba(48, 72, 112, 0.46);
  font-weight: 600;
}

.breadcrumb span:last-child {
  color: var(--color-ink-700);
  font-weight: 700;
}

.qualitative-database-page {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.qualitative-database-header {
  margin-bottom: clamp(1rem, 3vw, 1.6rem);
}

.qualitative-database-header__content {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  text-align: center;
}

.qualitative-database-header__eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.qualitative-database-breadcrumb {
  margin-bottom: clamp(1.3rem, 3vw, 2rem);
}

.qualitative-database-shell {
  width: min(1800px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.qualitative-database-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(12, 34, 64, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(8, 23, 53, 0.08);
  backdrop-filter: blur(14px);
}

.qualitative-database-panel--filters {
  padding: clamp(1.2rem, 2vw, 1.6rem);
}

.qualitative-database-panel--filters .filter-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  align-items: end;
  gap: 1rem;
}

.qualitative-database-panel--filters .filter-field {
  display: grid;
  gap: 0.45rem;
}

.qualitative-database-panel--filters .filter-field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-ink-600);
}

.qualitative-database-panel--filters .filter-container select {
  width: 100%;
  min-height: 48px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.qualitative-database-panel--filters .filter-container .button,
.qualitative-database-panel--filters .filter-container .remove-filters-btn {
  min-height: 48px;
  justify-content: center;
}

.qualitative-database-panel--table {
  padding: 0;
  overflow: hidden;
}

.qualitative-database-table-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.2rem, 2vw, 1.6rem) clamp(1.2rem, 2vw, 1.6rem) 0;
}

.qualitative-database-table-header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--color-ink-900);
}

.qualitative-database-table-header p {
  margin: 0.45rem 0 0;
  color: var(--color-ink-500);
  max-width: 48rem;
}

.qualitative-database-table-count {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.08);
  color: var(--color-brand-500);
  font-size: 0.9rem;
  font-weight: 700;
}

.qualitative-database-table-wrap {
  margin: clamp(1rem, 2vw, 1.25rem);
  margin-top: 1rem;
  border-radius: 18px;
  border: 1px solid rgba(12, 34, 64, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.qualitative-database-table-shell {
  position: relative;
}

.qualitative-database-table-scroll {
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-gutter: stable both-edges;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.qualitative-database-table-scroll::-webkit-scrollbar {
  height: 0;
}

.qualitative-database-proxy-scrollbar {
  position: fixed;
  left: 0;
  bottom: 1rem;
  z-index: 48;
  display: none;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(12, 34, 64, 0.12);
  border-radius: 999px;
  background: rgba(247, 250, 255, 0.98);
  box-shadow: 0 14px 28px -24px rgba(12, 34, 64, 0.7);
  backdrop-filter: blur(8px);
}

.qualitative-database-proxy-scrollbar__track {
  height: 1.05rem;
}

.qualitative-database-table {
  min-width: 1500px;
}

.qualitative-database-table td {
  vertical-align: top;
}

.active-filters {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(12, 34, 64, 0.08);
}

.active-filters ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  padding: 0;
  margin: 0.85rem 0 0.9rem;
  list-style: none;
}

.active-filters li {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.08);
  color: var(--color-ink-600);
  font-size: 0.9rem;
}

.active-filters ul:empty {
  display: none;
}

.active-filters p {
  margin-bottom: 0;
}

.qualitative-database-table th:nth-child(4),
.qualitative-database-table td:nth-child(4) {
  min-width: 300px;
}

.qualitative-database-table th:nth-child(7),
.qualitative-database-table td:nth-child(7) {
  min-width: 180px;
}

.qualitative-database-table th:nth-child(11),
.qualitative-database-table td:nth-child(11) {
  min-width: 190px;
}

.qualitative-database-table th:nth-child(12),
.qualitative-database-table td:nth-child(12),
.qualitative-database-table th:nth-child(13),
.qualitative-database-table td:nth-child(13),
.qualitative-database-table th:nth-child(14),
.qualitative-database-table td:nth-child(14),
.qualitative-database-table th:nth-child(15),
.qualitative-database-table td:nth-child(15) {
  min-width: 240px;
}

.ingredient-database-page {
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}

.ingredient-explore-shell {
  width: min(1180px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 1.5rem 0 2.75rem;
}

.ingredient-explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.ingredient-explore-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.4rem, 2.5vw, 1.8rem);
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(31, 111, 235, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 247, 255, 0.96));
  border: 1px solid rgba(31, 111, 235, 0.12);
  box-shadow: 0 24px 48px rgba(8, 23, 53, 0.08);
}

.ingredient-explore-card__eyebrow {
  display: inline-flex;
  width: fit-content;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.1);
  color: var(--color-brand-500);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ingredient-explore-card h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  color: var(--color-ink-900);
}

.ingredient-explore-card p {
  margin: 0;
  color: var(--color-ink-500);
}

.ingredient-explore-card__highlights {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--color-ink-600);
  display: grid;
  gap: 0.45rem;
}

.ingredient-explore-card .button {
  justify-self: start;
}

.ingredient-database-header {
  margin-bottom: clamp(1rem, 3vw, 1.6rem);
}

.ingredient-database-header__content {
  display: grid;
  gap: 0.9rem;
  justify-items: center;
  text-align: center;
}

.ingredient-database-header__eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.ingredient-database-shell {
  width: min(1280px, calc(100% - 3rem));
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.ingredient-database-panel {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(12, 34, 64, 0.08);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(8, 23, 53, 0.08);
  backdrop-filter: blur(14px);
}

.ingredient-database-panel--padded {
  padding: clamp(1.2rem, 2vw, 1.6rem);
}

.ingredient-database-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ingredient-database-subnav .button {
  min-height: 48px;
  border-radius: 999px;
}

.ingredient-database-subnav .button[aria-current="page"] {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  border-color: rgba(15, 23, 42, 0.15);
  color: #ffffff;
  box-shadow: 0 16px 26px -18px rgba(29, 78, 216, 0.75);
}

.ingredient-database-current-label {
  font-size: 0.78rem;
  margin-left: 0.35rem;
  opacity: 0.9;
}

.ingredient-database-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.ingredient-database-summary-card {
  padding: 1.35rem 1.45rem;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
  border: 1px solid rgba(12, 34, 64, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.ingredient-database-summary-card h2 {
  margin: 0 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-500);
}

.ingredient-database-summary-value {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 700;
  color: var(--color-ink-900);
}

.ingredient-database-summary-hint {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  color: var(--color-ink-500);
}

.ingredient-database-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ingredient-database-section-header h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  color: var(--color-ink-900);
}

.ingredient-database-section-header p {
  margin: 0.45rem 0 0;
  max-width: 48rem;
  color: var(--color-ink-500);
}

.ingredient-database-section-count {
  flex-shrink: 0;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.08);
  color: var(--color-brand-500);
  font-size: 0.9rem;
  font-weight: 700;
}

.ingredient-database-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ingredient-database-highlight {
  padding: 1.1rem 1.15rem;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(239, 246, 255, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.ingredient-database-highlight h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  color: var(--color-ink-900);
}

.ingredient-database-highlight p {
  margin: 0;
  color: var(--color-ink-500);
  font-size: 0.94rem;
}

.ingredient-database-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.ingredient-database-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(31, 111, 235, 0.08);
  color: var(--color-ink-600);
  font-size: 0.82rem;
  font-weight: 600;
}

.ingredient-database-table-panel {
  overflow: hidden;
}

.ingredient-database-table-wrap {
  margin: clamp(1rem, 2vw, 1.25rem);
  margin-top: 0;
  border-radius: 18px;
  border: 1px solid rgba(12, 34, 64, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.ingredient-database-table {
  min-width: 1100px;
}

.ingredient-database-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ingredient-database-sort:hover,
.ingredient-database-sort:focus-visible {
  text-decoration: underline;
  outline: none;
}

.ingredient-database-sort.is-active {
  text-decoration: underline;
}

.ingredient-database-sort__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
}

.ingredient-database-table td {
  vertical-align: top;
}

.ingredient-database-name {
  display: grid;
  gap: 0.45rem;
}

.ingredient-database-name strong {
  color: var(--color-ink-900);
}

.ingredient-database-subtext {
  color: var(--color-ink-500);
  font-size: 0.9rem;
}

.ingredient-database-inline-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.ingredient-database-inline-list li {
  line-height: 1.45;
}

.ingredient-database-metric {
  position: relative;
}

.ingredient-database-metric strong {
  color: var(--color-ink-800);
}

.ingredient-database-metric-hint {
  color: var(--color-ink-300);
  font-size: 0.8rem;
  margin-left: 0.25rem;
}

.ingredient-database-tooltip {
  display: none;
  position: absolute;
  left: 0;
  top: calc(100% + 0.3rem);
  width: min(22rem, 80vw);
  background: #1f2937;
  color: #f9fafb;
  border-radius: 0.4rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.82rem;
  line-height: 1.35;
  z-index: 20;
  box-shadow: 0 0.35rem 0.9rem rgba(0, 0, 0, 0.25);
}

.ingredient-database-tooltip::before {
  content: "";
  position: absolute;
  top: -0.3rem;
  left: 0.8rem;
  border-left: 0.3rem solid transparent;
  border-right: 0.3rem solid transparent;
  border-bottom: 0.3rem solid #1f2937;
}

.ingredient-database-metric:hover .ingredient-database-tooltip,
.ingredient-database-metric:focus-within .ingredient-database-tooltip {
  display: block;
}

.ingredient-database-empty {
  text-align: center;
  padding: 1.4rem 1rem;
  color: var(--color-ink-500);
}

.ingredient-database-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding-top: 0;
}

.ingredient-database-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(12, 34, 64, 0.08);
  color: var(--color-ink-700);
  text-decoration: none;
  font-weight: 600;
}

.ingredient-database-pill span {
  color: var(--color-ink-500);
  font-size: 0.85rem;
}

.ingredient-database-pill--active {
  background: linear-gradient(135deg, #0f172a 0%, #1d4ed8 100%);
  border-color: rgba(15, 23, 42, 0.15);
  color: #ffffff;
}

.ingredient-database-pill--active span {
  color: rgba(255, 255, 255, 0.82);
}

.ingredient-database-distribution {
  display: grid;
  gap: 0.65rem;
}

.ingredient-database-distribution summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-brand-500);
}

.ingredient-database-distribution__section {
  display: grid;
  gap: 0.4rem;
}

.ingredient-database-mini-bars {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  align-items: end;
  gap: 0.22rem;
  height: 3.2rem;
}

.ingredient-database-mini-bars__bar {
  min-height: 0.25rem;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, #1d4ed8, #60a5fa);
  cursor: help;
}

.ingredient-database-mini-bars__bar--alt {
  background: linear-gradient(180deg, #0f766e, #2dd4bf);
}

.ingredient-comparison-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.ingredient-comparison-form label {
  display: grid;
  gap: 0.45rem;
  color: var(--color-ink-700);
  font-weight: 600;
}

.ingredient-comparison-form select {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(12, 34, 64, 0.12);
  padding: 0.7rem 0.85rem;
  background: #ffffff;
}

.ingredient-comparison-form__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ingredient-comparison-chart {
  min-height: 360px;
}

.ingredient-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.ingredient-comparison-card h2,
.ingredient-comparison-card h3 {
  margin-top: 0;
}

.ingredient-comparison-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 0 0 1.25rem;
}

.ingredient-comparison-stats div {
  padding: 0.9rem 1rem;
  border-radius: 16px;
  background: rgba(31, 111, 235, 0.05);
}

.ingredient-comparison-stats dt {
  font-size: 0.82rem;
  color: var(--color-ink-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.ingredient-comparison-stats dd {
  margin: 0.35rem 0 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-ink-900);
}

.main-footer {
  text-align: center;
  padding: 1.5rem;
  background: #0a1b38;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.95rem;
}

.airsm-plot-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.airsm-plot-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-ink-800);
}

.airsm-variant-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(31, 111, 235, 0.12);
  color: var(--color-brand-500);
  border: 1px solid rgba(31, 111, 235, 0.2);
}

@media (max-width: 960px) {
  .header-inner {
    padding-top: 0.85rem;
    padding-bottom: 0.85rem;
  }

  .header-top {
    align-items: flex-start;
  }

  .header-leading {
    width: 100%;
  }

  .community-layout {
    grid-template-columns: 1fr;
  }

  .ingredient-database-section-header {
    flex-direction: column;
  }

  .ingredient-explore-grid {
    grid-template-columns: 1fr;
  }

  .explore-data-overview__pipeline,
  .explore-litrel-panel__body,
  .explore-literature-row {
    grid-template-columns: 1fr;
  }

  .explore-data-overview__steps {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }

  .explore-data-overview__modules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explore-data-overview__step:nth-child(5),
  .explore-data-overview__steps > .explore-data-overview__arrow:last-child {
    grid-column: 1 / -1;
    justify-self: center;
  }

  .explore-data-overview__arrow {
    grid-auto-flow: column;
    justify-content: start;
  }

  .explore-data-overview__subset-stack {
    min-width: 0;
  }

  .ingredient-comparison-form {
    grid-template-columns: 1fr;
  }

  .community-summary {
    position: static;
  }

  .profile-hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-hero__text {
    text-align: center;
  }

  .profile-content {
    grid-template-columns: 1fr;
  }

  .profile-side {
    width: 100%;
  }

  .contact-hero {
    grid-template-columns: 1fr;
  }

  .contact-hero__aside {
    order: -1;
  }

  .contact-hero__aside-header p:last-child {
    max-width: none;
  }

  .contact-highlight {
    max-width: 100%;
  }

  .contact-support {
    justify-content: center;
    text-align: center;
  }

  .contact-support__content {
    max-width: none;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__badge {
    justify-self: center;
  }

  .hero__highlights {
    width: min(420px, 100%);
  }
}

@media (max-width: 720px) {
  .header-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-leading {
    width: 100%;
    flex-wrap: wrap;
  }

  .header-auth {
    width: 100%;
    justify-content: space-between;
    margin-left: 0;
  }

  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero__input-group {
    width: 100%;
  }

  .hero-input {
    flex: 1;
    min-width: 0;
  }

  .search-field {
    width: 100%;
  }

  .search-field input {
    min-width: 0;
    width: 100%;
  }

  .community-filter {
    width: 100%;
    min-width: 0;
  }

  .explore-data-overview__steps,
  .explore-data-overview__modules {
    grid-template-columns: 1fr;
  }

  .qualitative-database-shell {
    width: min(1800px, calc(100% - 1.5rem));
  }

  .ingredient-database-shell {
    width: min(1280px, calc(100% - 1.5rem));
  }

  .qualitative-database-table-header {
    flex-direction: column;
  }

  .qualitative-database-panel--filters .filter-container {
    grid-template-columns: 1fr;
  }

  .navigation-menu {
    justify-content: flex-start;
  }

  .main-header > * {
    width: calc(100% - 2.5rem);
  }

  .breadcrumb {
    width: calc(100% - 2.5rem);
  }
}

/* -------------------------------------------------------------------------- */
/* Alerts                                                                    */
/* -------------------------------------------------------------------------- */

.alert-stack {
  margin: 1.5rem auto 0;
  display: grid;
  gap: 0.75rem;
}

.alert {
  background: rgba(31, 191, 184, 0.12);
  border: 1px solid rgba(31, 191, 184, 0.35);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  color: var(--color-ink-800);
  font-weight: 500;
  box-shadow: 0 12px 24px rgba(8, 23, 53, 0.08);
}

.alert[data-alert-level~="error"],
.alert[data-alert-level~="danger"] {
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.4);
}

.alert[data-alert-level~="success"] {
  background: rgba(31, 191, 120, 0.12);
  border-color: rgba(31, 191, 120, 0.35);
}

.alert[data-alert-level~="info"] {
  background: rgba(31, 111, 235, 0.12);
  border-color: rgba(31, 111, 235, 0.35);
}

/* -------------------------------------------------------------------------- */
/* Supplier directory                                                         */
/* -------------------------------------------------------------------------- */

.supplier-hero {
  text-align: left;
  display: grid;
  gap: 1rem;
}

.supplier-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.75rem;
  background: rgba(31, 111, 235, 0.12);
  color: var(--color-brand-500);
}

.supplier-hero__title {
  margin: 0;
  font-size: clamp(2.25rem, 3.8vw, 2.8rem);
  letter-spacing: -0.015em;
}

.supplier-hero__subtitle {
  max-width: 68ch;
  color: var(--color-ink-600);
  font-size: 1.05rem;
}

.supplier-layout {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.25rem);
  grid-template-columns: minmax(260px, 320px) 1fr;
}

.supplier-filters {
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 1.25rem;
  height: fit-content;
  border: 1px solid var(--color-border);
}

.supplier-filters__form {
  display: grid;
  gap: 1.25rem;
}

.supplier-filters label,
.supplier-filters legend {
  font-weight: 600;
  color: var(--color-ink-600);
  font-size: 0.95rem;
}

.supplier-filters__group select,
.supplier-filters__group input[type="text"] {
  width: 100%;
  margin-top: 0.35rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.6rem 0.75rem;
  font-size: 0.95rem;
  background: rgba(12, 34, 64, 0.02);
}

.supplier-filters__choices {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.supplier-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}

.supplier-checkbox input[type="checkbox"] {
  accent-color: var(--color-brand-500);
  transform: scale(1.05);
}

.supplier-checkbox:hover {
  background: rgba(31, 111, 235, 0.08);
}

.supplier-filters__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.supplier-tier-card {
  background: linear-gradient(145deg, rgba(31, 111, 235, 0.1), rgba(31, 191, 184, 0.12));
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(31, 111, 235, 0.15);
}

.supplier-tier-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.supplier-tier-card__lead {
  margin: 0;
  color: var(--color-ink-600);
  font-size: 0.95rem;
}

.supplier-tier-card__list {
  list-style: none;
  display: grid;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.supplier-tier-card__tier {
  font-weight: 700;
  color: var(--color-brand-500);
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
}

.supplier-tier-card dl {
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.supplier-tier-card dt {
  font-weight: 600;
  color: var(--color-ink-600);
  font-size: 0.85rem;
}

.supplier-tier-card dd {
  margin: 0;
  font-size: 0.9rem;
}

.supplier-results {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.2rem);
}

.supplier-featured {
  background: var(--color-panel);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(191, 161, 31, 0.22);
  box-shadow: var(--shadow-soft);
}

.supplier-featured h2 {
  margin-top: 0;
}

.supplier-featured__grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  margin-top: 1.25rem;
}

.supplier-results__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  justify-content: space-between;
}

.supplier-results__header p {
  margin: 0;
  color: var(--color-ink-500);
}

.supplier-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.supplier-card {
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  display: grid;
  gap: 0.9rem;
  border: 1px solid var(--color-border);
  box-shadow: 0 16px 30px rgba(8, 23, 53, 0.12);
  position: relative;
  min-height: 100%;
}

.supplier-card--featured {
  border-color: rgba(191, 161, 31, 0.65);
  box-shadow: 0 20px 44px rgba(191, 161, 31, 0.2);
}

.supplier-card--gold::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid rgba(191, 161, 31, 0.6);
  pointer-events: none;
}

.supplier-card--silver::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  border: 2px solid rgba(167, 174, 186, 0.6);
  pointer-events: none;
}

.supplier-card__media {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.supplier-card__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

.supplier-card__placeholder {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(31, 111, 235, 0.12);
  color: var(--color-brand-500);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
}

.supplier-card__tier {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: rgba(12, 34, 64, 0.55);
}

.supplier-card--gold .supplier-card__tier {
  color: #c39a1c;
}

.supplier-card--silver .supplier-card__tier {
  color: #8c97a8;
}

.supplier-card__title {
  margin: 0;
  font-size: 1.2rem;
}

.supplier-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  color: var(--color-ink-500);
  margin: 0;
  font-size: 0.9rem;
}

.supplier-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.supplier-card__description {
  margin: 0;
  color: var(--color-ink-600);
}

.supplier-card__tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
}

.supplier-card__tags li {
  background: rgba(12, 34, 64, 0.05);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
}

.supplier-card__tags--empty {
  background: transparent;
  color: var(--color-ink-400);
  font-style: italic;
}

.supplier-card__footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: auto;
}

.supplier-empty {
  text-align: center;
  background: var(--color-panel);
  padding: 3rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(12, 34, 64, 0.2);
  display: grid;
  gap: 0.75rem;
}

/* Supplier detail --------------------------------------------------------- */

.supplier-detail__breadcrumb {
  display: flex;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--color-ink-500);
  align-items: center;
}

.supplier-detail__breadcrumb a {
  color: var(--color-brand-500);
}

.supplier-detail__header {
  margin-top: 1.5rem;
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}

.supplier-detail__identity {
  display: flex;
  gap: 1.25rem;
  align-items: center;
}

.supplier-detail__logo {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  object-fit: contain;
  background: rgba(12, 34, 64, 0.03);
  padding: 0.6rem;
}

.supplier-detail__logo--placeholder {
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: var(--color-brand-500);
  font-weight: 700;
}

.supplier-detail__tier {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  color: rgba(12, 34, 64, 0.6);
}

.supplier-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 0;
  color: var(--color-ink-500);
}

.supplier-detail__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.supplier-detail__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.supplier-detail__layout {
  margin-top: 2rem;
  display: grid;
  gap: 1.75rem;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.35fr);
}

.supplier-detail__panel {
  background: var(--color-panel);
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
  display: grid;
  gap: 1rem;
}

.supplier-detail__panel h2 {
  margin: 0;
}

.supplier-detail__chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.supplier-detail__chips li {
  background: rgba(12, 34, 64, 0.05);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

.supplier-detail__chips--empty {
  background: transparent;
  color: var(--color-ink-400);
  font-style: italic;
}

.supplier-detail__video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: var(--radius-md);
  background: rgba(12, 34, 64, 0.08);
}

.supplier-case-studies {
  display: grid;
  gap: 1.25rem;
}

.supplier-case-study {
  background: rgba(12, 34, 64, 0.03);
  padding: 1rem;
  border-radius: var(--radius-md);
  display: grid;
  gap: 0.6rem;
}

.supplier-case-study__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.supplier-events {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.supplier-events__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--color-ink-500);
}

.supplier-detail__sidebar {
  display: grid;
  gap: 1.25rem;
}

.supplier-contact-form .form-control {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.8rem;
  font-size: 0.95rem;
  background: rgba(12, 34, 64, 0.02);
}

.form-errors {
  background: rgba(220, 53, 69, 0.12);
  border: 1px solid rgba(220, 53, 69, 0.4);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.8rem;
  color: #8a1c1c;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.form-error {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8rem;
  color: #9c1b1b;
}

.supplier-contact-form label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  color: var(--color-ink-600);
}

.supplier-contact-form__consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--color-ink-500);
}

.supplier-contact-form__consent input[type="checkbox"] {
  transform: scale(1.05);
  accent-color: var(--color-brand-500);
}

.supplier-tier-summary ul {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
}

@media (max-width: 980px) {
  .supplier-layout {
    grid-template-columns: 1fr;
  }

  .supplier-filters {
    order: 2;
  }

  .supplier-results {
    order: 1;
  }

  .supplier-detail__layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .supplier-card__media {
    flex-direction: column;
    align-items: flex-start;
  }

  .supplier-card__footer {
    flex-direction: column;
  }

  .supplier-detail__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .supplier-detail__identity {
    flex-direction: column;
    align-items: flex-start;
  }

  .supplier-detail__actions {
    width: 100%;
  }

  .supplier-detail__actions .button {
    width: 100%;
  }
}



.hero__assistant-note {
  margin-top: 0.75rem;
  color: #d8e5ff;
  font-size: 0.95rem;
}

.extrubot-explainer {
  margin-top: 0.85rem;
  padding: 0.95rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(153, 187, 255, 0.36);
  background: rgba(8, 24, 52, 0.48);
  color: #eaf2ff;
}

.extrubot-explainer__title {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  color: inherit;
}

.extrubot-explainer__summary {
  margin: 0 0 0.55rem;
  color: inherit;
}

.extrubot-explainer__list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.3rem;
}

.extrubot-explainer__list li {
  margin: 0;
}

.extrubot-explainer--light {
  background: #ffffff;
  color: #123a68;
  border-color: rgba(103, 143, 212, 0.34);
  box-shadow: 0 10px 26px rgba(23, 54, 105, 0.11);
}

.hero__assistant-panel {
  margin-top: 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(119, 160, 255, 0.35);
  background: rgba(10, 25, 58, 0.45);
  min-height: 3.8rem;
  overflow: hidden;
}

.hero__assistant-response {
  padding: 0.75rem;
  display: grid;
  gap: 0.55rem;
  max-height: 320px;
  overflow-y: auto;
}

.hero__chat-message {
  border-radius: 0.75rem;
  padding: 0.65rem 0.8rem;
  color: #f5f8ff;
  font-size: 0.95rem;
  white-space: pre-wrap;
  display: grid;
  gap: 0.45rem;
}

.hero__chat-message--user {
  justify-self: end;
  max-width: min(88%, 520px);
  background: rgba(90, 136, 255, 0.35);
  border: 1px solid rgba(150, 185, 255, 0.58);
}

.hero__chat-message--assistant {
  justify-self: start;
  max-width: min(92%, 560px);
  background: rgba(8, 23, 53, 0.7);
  border: 1px solid rgba(119, 160, 255, 0.35);
}

.hero__chat-message--status {
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(177, 205, 255, 0.35);
  color: rgba(225, 237, 255, 0.96);
}

.hero__chat-message--warning {
  border-color: rgba(255, 215, 150, 0.45);
  background: rgba(112, 68, 3, 0.3);
}

.hero__chat-message--error {
  border-color: rgba(255, 157, 157, 0.45);
  background: rgba(127, 22, 22, 0.28);
}

.hero__chat-text {
  margin: 0;
}

.hero__chat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.hero__chat-source-summary {
  border: 1px solid rgba(126, 171, 245, 0.45);
  background: rgba(10, 36, 74, 0.14);
  border-radius: 0.7rem;
  padding: 0.45rem 0.6rem 0.55rem;
  display: grid;
  gap: 0.35rem;
}

.hero__chat-source-summary--none {
  border-style: dashed;
  background: rgba(15, 42, 84, 0.08);
  color: rgba(218, 232, 255, 0.92);
  font-size: 0.84rem;
}

.hero__chat-source-heading {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-transform: uppercase;
  color: rgba(225, 238, 255, 0.98);
}

.hero__chat-source-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hero__chat-source-tags li {
  margin: 0;
  border: 1px solid rgba(153, 188, 246, 0.45);
  border-radius: 999px;
  padding: 0.16rem 0.55rem;
  font-size: 0.79rem;
  line-height: 1.35;
  background: rgba(18, 48, 92, 0.4);
  color: rgba(230, 239, 255, 0.96);
}

.hero__chat-source-tags li a {
  color: inherit;
  text-decoration: none;
}

.hero__chat-source-tags li a:hover,
.hero__chat-source-tags li a:focus {
  text-decoration: underline;
}

.hero__chat-action {
  border: 1px solid rgba(169, 198, 255, 0.46);
  background: rgba(20, 41, 86, 0.55);
  color: #f0f5ff;
  border-radius: 999px;
  font-size: 0.8rem;
  padding: 0.24rem 0.68rem;
  cursor: pointer;
}

.hero__chat-action:hover {
  background: rgba(36, 67, 132, 0.65);
}

.extrubot-chat__lookup {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hero__chat-citations {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.2rem;
}

.hero__chat-citations-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(224, 237, 255, 0.95);
}

.hero__chat-citation {
  color: rgba(214, 228, 255, 0.95);
  font-size: 0.84rem;
}

.hero__chat-citation a {
  color: #b4d0ff;
}

.hero__chat-citation a:hover {
  color: #d5e6ff;
}

.extrubot-page {
  padding: 2.5rem 0 3rem;
  background:
    radial-gradient(circle at 0% 0%, rgba(53, 101, 207, 0.18), transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(24, 174, 167, 0.16), transparent 38%),
    linear-gradient(165deg, #071831 0%, #0b2244 50%, #0b1f3d 100%);
}

.extrubot-page__container {
  display: grid;
  gap: 1.1rem;
}

.extrubot-page__header {
  display: grid;
  gap: 0.7rem;
  max-width: 58rem;
}

.extrubot-page__title {
  margin: 0;
  color: #f2f7ff;
  font-size: clamp(1.55rem, 2.2vw, 2.2rem);
}

.extrubot-page__subtitle {
  margin: 0;
  color: rgba(214, 230, 255, 0.93);
  max-width: 54rem;
}

.extrubot-page__header .button {
  width: fit-content;
}

.extrubot-chat {
  border: 1px solid rgba(143, 177, 255, 0.3);
  background: rgba(6, 19, 42, 0.72);
  border-radius: 1.1rem;
  box-shadow: 0 24px 55px rgba(4, 12, 26, 0.4);
  min-height: 68vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}

.extrubot-chat__messages {
  padding: 1.1rem;
  min-height: 0;
}

.extrubot-page .hero__assistant-response {
  padding: 0;
  max-height: none;
  height: 100%;
  overflow-y: auto;
  gap: 0.75rem;
}

.extrubot-page .hero__chat-message {
  max-width: min(75%, 700px);
  border-radius: 1rem;
  padding: 0.75rem 0.92rem;
}

.extrubot-page .hero__chat-message--assistant {
  justify-self: start;
  background: rgba(23, 41, 76, 0.84);
  border: 1px solid rgba(135, 177, 255, 0.4);
}

.extrubot-page .hero__chat-message--user {
  justify-self: end;
  background: linear-gradient(145deg, rgba(45, 106, 255, 0.84), rgba(29, 152, 223, 0.86));
  border: 1px solid rgba(153, 203, 255, 0.66);
}

.extrubot-page .hero__chat-message--status {
  justify-self: center;
  max-width: min(92%, 760px);
  font-size: 0.88rem;
}

.extrubot-chat__composer {
  border-top: 1px solid rgba(136, 174, 255, 0.28);
  background: rgba(9, 25, 55, 0.94);
  padding: 0.9rem 1.1rem 1rem;
  position: sticky;
  bottom: 0;
}

.extrubot-chat__label {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(214, 228, 255, 0.85);
  font-size: 0.83rem;
  letter-spacing: 0.03em;
}

.extrubot-chat__input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
}

.extrubot-chat__input {
  background: rgba(247, 251, 255, 0.95);
  border: 1px solid rgba(159, 188, 249, 0.65);
  border-radius: 999px;
  padding: 0.65rem 1.1rem;
  min-width: clamp(220px, 45vw, 320px);
  color: #0f2345;
}

.extrubot-chat__send {
  min-width: 7rem;
}

@media (max-width: 720px) {
  .extrubot-chat {
    min-height: 74vh;
  }

  .extrubot-page .hero__chat-message {
    max-width: 92%;
  }

  .extrubot-chat__input-row {
    grid-template-columns: 1fr;
  }

  .extrubot-chat__send {
    width: 100%;
  }
}

/* ExtruBot chat refresh */
.extrubot-page__title-icon {
  margin-right: 0.45rem;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.35));
}

.extrubot-page__actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.55rem;
  align-items: center;
}

.extrubot-page__history-label {
  color: rgba(214, 228, 255, 0.85);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  margin-right: 0.1rem;
}

.extrubot-page__history-select {
  min-width: min(100%, 300px);
  border-radius: 999px;
  border: 1px solid rgba(141, 177, 255, 0.45);
  background: rgba(6, 21, 46, 0.72);
  color: #eaf2ff;
  padding: 0.45rem 0.8rem;
}

.extrubot-page .hero__chat-message {
  box-shadow: 0 10px 26px rgba(5, 15, 35, 0.35);
}

.extrubot-chat__message-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.82rem;
  opacity: 0.95;
}

.hero__chat-richtext {
  display: grid;
  gap: 0.5rem;
}

.hero__chat-richtext .hero__chat-text {
  line-height: 1.52;
}

.hero__chat-list {
  margin: 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.3rem;
  line-height: 1.52;
}

.hero__chat-richtext a {
  color: #b8d7ff;
}

.hero__chat-richtext a:hover {
  color: #d8e8ff;
}


.extrubot-chat__input::placeholder {
  color: rgba(15, 35, 69, 0.6);
}

@media (max-width: 720px) {
  .extrubot-page__actions {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .extrubot-page__history-select {
    width: 100%;
  }
}

/* ExtruBot chat layout refinement: high-readability bubble conversation */
.extrubot-page {
  background: linear-gradient(180deg, #f7faff 0%, #eef4ff 58%, #e7f0ff 100%);
}

.extrubot-page__title,
.extrubot-page__subtitle,
.extrubot-page__history-label {
  color: #0f2d56;
}

.extrubot-page__history-select {
  background: #ffffff;
  color: #183b6b;
  border-color: rgba(86, 127, 200, 0.38);
}

.extrubot-chat {
  border-color: rgba(87, 133, 211, 0.3);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 38px rgba(24, 55, 104, 0.15);
}

.extrubot-chat__messages {
  background: linear-gradient(180deg, rgba(243, 248, 255, 0.8) 0%, rgba(247, 251, 255, 0.94) 100%);
}

.extrubot-page .hero__assistant-response {
  padding: 0.25rem;
  gap: 0.9rem;
}

.extrubot-page .hero__chat-message {
  position: relative;
  max-width: min(78%, 760px);
  padding: 0.82rem 1rem;
  border-radius: 1rem;
  box-shadow: 0 8px 20px rgba(23, 54, 105, 0.12);
}

.extrubot-page .hero__chat-message--assistant {
  color: #173960;
  background: #ffffff;
  border: 1px solid rgba(116, 154, 219, 0.36);
}

.extrubot-page .hero__chat-message--assistant::after {
  content: "";
  position: absolute;
  left: -8px;
  top: 14px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: #ffffff;
  border-left: 1px solid rgba(116, 154, 219, 0.36);
  border-bottom: 1px solid rgba(116, 154, 219, 0.36);
}

.extrubot-page .hero__chat-message--user {
  color: #ffffff;
  background: linear-gradient(145deg, #1f92ff, #1c75ea);
  border: 1px solid rgba(43, 124, 234, 0.58);
}

.extrubot-page .hero__chat-message--user::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 14px;
  width: 14px;
  height: 14px;
  transform: rotate(45deg);
  background: #1d86f3;
  border-right: 1px solid rgba(43, 124, 234, 0.58);
  border-top: 1px solid rgba(43, 124, 234, 0.58);
}

.extrubot-page .hero__chat-message--status {
  max-width: min(94%, 820px);
  border-radius: 0.8rem;
  box-shadow: none;
  color: #1b426f;
  background: #e5f0ff;
  border: 1px solid rgba(92, 141, 217, 0.55);
  font-weight: 600;
}

.extrubot-page .hero__chat-message--warning {
  color: #6a4700;
  background: #fff4dd;
  border-color: rgba(214, 165, 66, 0.58);
}

.extrubot-page .hero__chat-message--error {
  color: #7b1f1f;
  background: #fde8e8;
  border-color: rgba(215, 117, 117, 0.6);
}

.extrubot-chat__message-title {
  color: inherit;
}

.hero__chat-richtext {
  gap: 0.62rem;
}

.hero__chat-richtext .hero__chat-text,
.hero__chat-list {
  line-height: 1.65;
  font-size: 0.99rem;
}

.hero__chat-heading {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
  color: inherit;
}

.hero__chat-richtext code {
  font-family: "SFMono-Regular", Menlo, Consolas, monospace;
  background: rgba(15, 46, 92, 0.08);
  border-radius: 0.35rem;
  padding: 0.05rem 0.35rem;
  font-size: 0.92em;
}

.extrubot-page .hero__chat-message--user .hero__chat-richtext a {
  color: #deeeff;
}

.extrubot-page .hero__chat-message--assistant .hero__chat-richtext a {
  color: #1d66c9;
}

.extrubot-page .hero__chat-source-summary {
  border-color: rgba(96, 143, 217, 0.4);
  background: rgba(224, 238, 255, 0.5);
}

.extrubot-page .hero__chat-source-summary--none {
  background: rgba(208, 225, 247, 0.45);
  color: #244f80;
}

.extrubot-page .hero__chat-source-heading {
  color: #27588f;
}

.extrubot-page .hero__chat-source-tags li {
  background: #f5f9ff;
  color: #1f4f86;
  border-color: rgba(100, 147, 219, 0.45);
}

.extrubot-chat__composer {
  background: #ffffff;
  border-top: 1px solid rgba(119, 156, 219, 0.28);
}

.extrubot-chat__label {
  color: #1f4779;
}

.extrubot-chat__input {
  border-color: rgba(114, 153, 219, 0.55);
}

@media (max-width: 720px) {
  .extrubot-page .hero__chat-message {
    max-width: 94%;
  }
}

.page-loading-overlay {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(1px);
  z-index: 2000;
}

.page-loading-overlay.is-visible {
  display: grid;
}

.page-loading-overlay__content {
  display: grid;
  justify-items: center;
  gap: 0.75rem;
  color: #0f172a;
  font-weight: 600;
}

.page-loading-overlay__spinner {
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 50%;
  border: 4px solid #d4dbe8;
  border-top-color: #2563eb;
  animation: page-loading-spin 0.85s linear infinite;
}

.page-loading-overlay__label {
  margin: 0;
  font-size: 0.95rem;
}

@keyframes page-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-loading-overlay__spinner {
    animation: none;
  }
}

.expert-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.expert-kpi-card,
.expert-quickstart-card,
.expert-shell__filters,
.expert-empty-state {
  background: #ffffff;
  border: 1px solid #d7dfef;
  border-radius: 14px;
  padding: 16px;
}

.expert-kpi-card__label {
  display: block;
  color: #4b5b7e;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.expert-kpi-card__value {
  display: block;
  margin-top: 6px;
  font-size: 1.8rem;
  line-height: 1.1;
  color: #14213d;
}

.expert-kpi-card__hint {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  color: #5c6f94;
}

.expert-shell {
  display: grid;
  grid-template-columns: minmax(220px, 290px) 1fr;
  gap: 20px;
}

.expert-shell__filters {
  align-self: start;
  display: grid;
  gap: 8px;
}

.expert-shell__filters h2 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.expert-profile-summary {
  border: 1px solid #c4d5f3;
  border-radius: 10px;
  background: #eef4ff;
  padding: 10px;
  margin-bottom: 6px;
}

.expert-profile-summary p {
  margin: 4px 0 0;
  color: #2e4775;
  font-size: 0.88rem;
}

.expert-shell__filters label {
  font-size: 0.9rem;
  color: #34466d;
}

.expert-shell__filters input,
.expert-shell__filters select {
  border: 1px solid #ccd6ea;
  border-radius: 8px;
  padding: 9px 10px;
  margin-bottom: 6px;
}

.expert-shell__content {
  display: grid;
  gap: 20px;
}

.expert-quickstart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
}

.expert-quickstart-card h3 {
  margin-bottom: 8px;
  font-size: 1.04rem;
}

.expert-quickstart-card p {
  color: #4e5f84;
  min-height: 66px;
}

.expert-quickstart-card--recommended {
  border-color: #4a7de8;
  box-shadow: 0 6px 16px rgba(35, 82, 187, 0.12);
}

.expert-empty-state ul {
  margin: 8px 0 0 18px;
}

@media (max-width: 960px) {
  .workflow-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .workflow-row--primary {
    grid-template-rows: none;
  }

  .workflow-row--secondary {
    width: 100%;
    margin: 0;
  }

  .workflow-arrow {
    min-height: 2.5rem;
    flex-direction: column;
  }

  .workflow-arrow__line {
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.9));
  }

  .workflow-arrow i {
    transform: rotate(90deg);
  }

  .workflow-arrow--drop {
    grid-column: auto;
    min-height: 2.5rem;
  }

  .workflow-arrow--drop i {
    transform: none;
  }

  .workflow-arrow--left .workflow-arrow__line {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.9));
  }

  .expert-shell {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .workflow-diagram {
    padding: 1.2rem;
  }

  .workflow-node {
    padding: 1rem;
  }

  .workflow-node h3 {
    font-size: 1.08rem;
  }

  .workflow-node p {
    font-size: 0.92rem;
  }

}

.ingredient-knowledge-shell {
  display: grid;
  gap: 1.25rem;
}

.ingredient-explore-note {
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: 18px;
  background: rgba(12, 34, 64, 0.04);
  border: 1px solid rgba(12, 34, 64, 0.08);
  color: var(--color-ink-600);
}

.ingredient-explore-note p {
  margin: 0;
}

.ingredient-explore-note a {
  font-weight: 700;
}

.ingredient-knowledge-build-meta {
  margin: 1rem 0 0;
  color: var(--color-ink-500);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.ingredient-knowledge-top-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.ingredient-knowledge-top-card,
.ingredient-knowledge-claim-card {
  background: rgba(12, 34, 64, 0.03);
  border: 1px solid rgba(12, 34, 64, 0.08);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.ingredient-knowledge-top-card h3,
.ingredient-knowledge-claim-card h3 {
  margin: 0;
}

.ingredient-knowledge-top-card__qualifier,
.ingredient-knowledge-claim-card__qualifier {
  margin: 0;
  color: var(--color-ink-500);
  font-size: 0.95rem;
}

.ingredient-knowledge-top-card__outcome,
.ingredient-knowledge-claim-card__outcome,
.ingredient-knowledge-claim-card__summary,
.ingredient-knowledge-claim-card__mechanism {
  margin: 0;
}

.ingredient-knowledge-direction,
.ingredient-knowledge-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.ingredient-knowledge-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.ingredient-knowledge-chip {
  background: rgba(31, 111, 235, 0.08);
  color: var(--color-brand-500);
  border: 1px solid rgba(31, 111, 235, 0.18);
}

.ingredient-knowledge-direction--increase {
  background: rgba(14, 159, 110, 0.12);
  color: #0b6a48;
  border: 1px solid rgba(14, 159, 110, 0.22);
}

.ingredient-knowledge-direction--decrease {
  background: rgba(214, 76, 76, 0.12);
  color: #9c1f1f;
  border: 1px solid rgba(214, 76, 76, 0.2);
}

.ingredient-knowledge-direction--mixed {
  background: rgba(197, 139, 20, 0.14);
  color: #7b5a00;
  border: 1px solid rgba(197, 139, 20, 0.24);
}

.ingredient-knowledge-filters {
  display: grid;
  gap: 1rem;
}

.ingredient-knowledge-filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.ingredient-knowledge-filter-field {
  display: grid;
  gap: 0.45rem;
  font-weight: 600;
  color: var(--color-ink-600);
}

.ingredient-knowledge-select-shell {
  position: relative;
}

.ingredient-knowledge-select-shell::after {
  content: "";
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid rgba(25, 47, 92, 0.72);
  border-bottom: 2px solid rgba(25, 47, 92, 0.72);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.ingredient-knowledge-select {
  appearance: none;
  width: 100%;
  min-height: 3.35rem;
  border-radius: 18px;
  border: 1px solid rgba(109, 134, 182, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 10px 24px -20px rgba(15, 23, 42, 0.28);
  padding: 0.8rem 2.7rem 0.8rem 1rem;
  color: var(--color-ink-800);
  font-size: 1rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.ingredient-knowledge-select:hover {
  border-color: rgba(76, 115, 194, 0.36);
}

.ingredient-knowledge-select:focus {
  outline: none;
  border-color: rgba(45, 141, 252, 0.6);
  box-shadow:
    0 0 0 4px rgba(45, 141, 252, 0.12),
    0 14px 28px -20px rgba(31, 111, 235, 0.3);
  transform: translateY(-1px);
}

.ingredient-knowledge-filter-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: end;
}

.ingredient-knowledge-claims-panel {
  display: grid;
  gap: 1rem;
}

.ingredient-knowledge-results-meta {
  margin: 0;
  color: var(--color-ink-500);
}

.ingredient-knowledge-claim-list {
  display: grid;
  gap: 1rem;
}

.ingredient-knowledge-claim-card__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.ingredient-knowledge-claim-card__ratio {
  min-width: 96px;
  text-align: right;
  display: grid;
  gap: 0.1rem;
}

.ingredient-knowledge-claim-card__ratio strong {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--color-ink-900);
}

.ingredient-knowledge-claim-card__ratio span {
  color: var(--color-ink-500);
  font-size: 0.82rem;
}

.ingredient-knowledge-evidence {
  border-top: 1px solid rgba(12, 34, 64, 0.08);
  padding-top: 0.8rem;
}

.ingredient-knowledge-variants {
  border-top: 1px solid rgba(12, 34, 64, 0.08);
  padding-top: 0.8rem;
}

.ingredient-knowledge-variants summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-ink-800);
}

.ingredient-knowledge-variant-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.ingredient-knowledge-variant-item {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(12, 34, 64, 0.08);
  border-radius: 14px;
  padding: 0.8rem 0.95rem;
  color: var(--color-ink-600);
}

.ingredient-knowledge-evidence summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--color-ink-800);
}

.ingredient-knowledge-evidence__body {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.8rem;
}

.ingredient-knowledge-evidence__item {
  background: #ffffff;
  border: 1px solid rgba(12, 34, 64, 0.08);
  border-radius: 14px;
  padding: 0.85rem 0.95rem;
  display: grid;
  gap: 0.45rem;
}

.ingredient-knowledge-evidence__item p {
  margin: 0;
  color: var(--color-ink-600);
}

.ingredient-knowledge-evidence__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.88rem;
  color: var(--color-ink-500);
}

.ingredient-knowledge-evidence__meta a {
  font-weight: 600;
}

.ingredient-knowledge-overview {
  display: grid;
  gap: 1rem;
}

.ingredient-knowledge-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.ingredient-knowledge-overview-card {
  background: rgba(12, 34, 64, 0.03);
  border: 1px solid rgba(12, 34, 64, 0.08);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  display: grid;
  gap: 0.7rem;
}

.ingredient-knowledge-overview-card h3,
.ingredient-knowledge-overview-card p {
  margin: 0;
}

.ingredient-knowledge-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: center;
}

@media (max-width: 720px) {
  .ingredient-knowledge-claim-card__header {
    flex-direction: column;
  }

  .ingredient-knowledge-claim-card__ratio {
    text-align: left;
  }

  .ingredient-knowledge-filter-actions .button {
    width: 100%;
  }

  .ingredient-knowledge-pagination {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   PLATFORM HELP PANEL
   Slide-in drawer from the right with TOC, search, and module filters.
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ── Help button in header ─────────────────────────────────────────────────── */

.header-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 179, 237, 0.35);
  background: rgba(99, 179, 237, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease,
    box-shadow 0.2s ease, transform 0.2s ease;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 0 rgba(99, 179, 237, 0);
}

.header-help-btn:hover,
.header-help-btn:focus-visible {
  background: rgba(99, 179, 237, 0.18);
  border-color: rgba(99, 179, 237, 0.6);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 0 14px rgba(99, 179, 237, 0.25);
  outline: none;
}

.header-help-btn[aria-expanded="true"] {
  background: rgba(99, 179, 237, 0.22);
  border-color: rgba(99, 179, 237, 0.7);
  color: #ffffff;
  box-shadow: 0 0 18px rgba(99, 179, 237, 0.3);
}

.header-help-btn .fa-circle-question {
  font-size: 1rem;
  opacity: 0.95;
}

.header-help-label {
  line-height: 1;
}

/* ── Overlay container ─────────────────────────────────────────────────────── */

.help-panel {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  justify-content: flex-start;
  pointer-events: none;
}

.help-panel.help-panel--open {
  pointer-events: auto;
}

/* ── Backdrop ──────────────────────────────────────────────────────────────── */

.help-panel-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 18, 38, 0.6);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.help-panel--open .help-panel-backdrop {
  opacity: 1;
}

/* ── Drawer ────────────────────────────────────────────────────────────────── */

.help-panel-drawer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(720px, 92vw);
  height: 100%;
  background: linear-gradient(160deg, #0d1f3c 0%, #091629 60%, #060f1e 100%);
  border-right: 1px solid rgba(99, 179, 237, 0.18);
  box-shadow: 12px 0 48px rgba(0, 0, 0, 0.45);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.help-panel--open .help-panel-drawer {
  transform: translateX(0);
}

/* ── Panel header ──────────────────────────────────────────────────────────── */

.help-panel-hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.help-panel-hd-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  font-size: 1rem;
  flex-shrink: 0;
}

.help-panel-hd-brand .fa-book-open {
  color: #63b3ed;
  font-size: 1.1rem;
}

.help-panel-hd-title {
  letter-spacing: 0.01em;
}

.help-panel-version-badge {
  font-size: 0.72rem;
  font-weight: 500;
  background: rgba(99, 179, 237, 0.15);
  color: #90cdf4;
  border: 1px solid rgba(99, 179, 237, 0.25);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.help-panel-hd-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: flex-end;
}

/* ── Search ────────────────────────────────────────────────────────────────── */

.help-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  max-width: 340px;
  min-width: 0;
}

.help-search-icon {
  position: absolute;
  left: 0.7rem;
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 1;
}

.help-search-input {
  width: 100%;
  padding: 0.45rem 3rem 0.45rem 2.2rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-family: inherit;
  font-size: 0.88rem;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.help-search-input::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.help-search-input:focus {
  outline: none;
  border-color: rgba(99, 179, 237, 0.5);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 0 3px rgba(99, 179, 237, 0.12);
}

.help-search-input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  height: 14px;
  width: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='rgba(255,255,255,0.5)'%3E%3Cpath d='M6.28 5.22a.75.75 0 0 0-1.06 1.06L8.94 10l-3.72 3.72a.75.75 0 1 0 1.06 1.06L10 11.06l3.72 3.72a.75.75 0 1 0 1.06-1.06L11.06 10l3.72-3.72a.75.75 0 0 0-1.06-1.06L10 8.94 6.28 5.22Z'/%3E%3C/svg%3E");
  background-size: contain;
  cursor: pointer;
  margin-right: 4px;
}

.help-search-count {
  position: absolute;
  right: 0.75rem;
  font-size: 0.75rem;
  color: #90cdf4;
  font-weight: 500;
  pointer-events: none;
  white-space: nowrap;
}

/* ── Close button ──────────────────────────────────────────────────────────── */

.help-panel-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.help-panel-close-btn:hover,
.help-panel-close-btn:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
  outline: none;
}

/* ── Module tabs ───────────────────────────────────────────────────────────── */

.help-module-tabs {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

.help-module-tabs::-webkit-scrollbar {
  display: none;
}

.help-module-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  padding: 0.32rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}

.help-module-tab:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
}

.help-module-tab--active {
  background: rgba(99, 179, 237, 0.16);
  border-color: rgba(99, 179, 237, 0.4);
  color: #90cdf4;
}

.help-module-tab--active:hover {
  background: rgba(99, 179, 237, 0.22);
}

/* ── Body layout ───────────────────────────────────────────────────────────── */

.help-panel-body {
  display: flex;
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

/* ── TOC sidebar ───────────────────────────────────────────────────────────── */

.help-toc {
  width: 210px;
  flex-shrink: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.help-toc-heading {
  padding: 0.75rem 1rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
  flex-shrink: 0;
}

.help-toc-inner {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 0 0.5rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.help-toc-inner::-webkit-scrollbar {
  width: 4px;
}

.help-toc-inner::-webkit-scrollbar-track {
  background: transparent;
}

.help-toc-inner::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 2px;
}

.help-toc-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 0;
  color: rgba(255, 255, 255, 0.3);
}

.help-toc-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  width: 100%;
  padding: 0.38rem 0.6rem;
  border-radius: 6px;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 400;
  text-align: left;
  cursor: pointer;
  line-height: 1.35;
  transition: background 0.14s, color 0.14s;
  margin-bottom: 1px;
}

.help-toc-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
}

.help-toc-item--active {
  background: rgba(99, 179, 237, 0.12);
  color: #90cdf4;
  font-weight: 500;
}

.help-toc-item--active:hover {
  background: rgba(99, 179, 237, 0.18);
}

.help-toc-num {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.help-toc-item--active .help-toc-num {
  color: rgba(99, 179, 237, 0.7);
}

.help-toc-label {
  flex: 1 1 0;
  min-width: 0;
}

.help-toc-empty {
  padding: 1rem 0.6rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  margin: 0;
}

/* ── Content pane ──────────────────────────────────────────────────────────── */

.help-content-pane {
  flex: 1 1 0;
  overflow-y: auto;
  min-width: 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.help-content-pane::-webkit-scrollbar {
  width: 5px;
}

.help-content-pane::-webkit-scrollbar-track {
  background: transparent;
}

.help-content-pane::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 3px;
}

.help-content-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 3rem 1.5rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.88rem;
}

.help-content-loading[hidden],
.help-content-empty[hidden],
.help-content-sections[hidden] {
  display: none;
}

.help-content-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3.5rem 2rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}

.help-content-empty .fa-face-meh {
  font-size: 2rem;
  opacity: 0.5;
}

.help-content-empty p {
  margin: 0;
  font-size: 0.9rem;
}

.help-clear-search-btn {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(99, 179, 237, 0.35);
  background: rgba(99, 179, 237, 0.1);
  color: #90cdf4;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s;
}

.help-clear-search-btn:hover {
  background: rgba(99, 179, 237, 0.2);
  border-color: rgba(99, 179, 237, 0.5);
}

.help-content-sections {
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Section cards ─────────────────────────────────────────────────────────── */

.help-section {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  overflow: hidden;
  scroll-margin-top: 0.75rem;
  transition: border-color 0.2s;
}

.help-section:hover {
  border-color: rgba(255, 255, 255, 0.13);
}

.help-section-hd {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem 1rem 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.025);
}

.help-section-hd-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.help-section-num {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.04em;
}

.help-section-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  line-height: 1.35;
}

/* Module tag colours */
.help-section-module-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.help-section-module-tag--prediction {
  background: rgba(124, 58, 237, 0.18);
  color: #c4b5fd;
  border: 1px solid rgba(124, 58, 237, 0.3);
}

.help-section-module-tag--extrubot {
  background: rgba(21, 170, 191, 0.15);
  color: #67e8f9;
  border: 1px solid rgba(21, 170, 191, 0.28);
}

.help-section-module-tag--ingredients {
  background: rgba(22, 163, 74, 0.14);
  color: #86efac;
  border: 1px solid rgba(22, 163, 74, 0.25);
}

.help-section-module-tag--platform {
  background: rgba(99, 179, 237, 0.13);
  color: #90cdf4;
  border: 1px solid rgba(99, 179, 237, 0.24);
}

.help-section-body {
  padding: 0.85rem 1rem 1rem;
}

.help-section-body p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 0.65rem;
}

.help-section-body p:last-child {
  margin-bottom: 0;
}

/* ── Hit navigation buttons ────────────────────────────────────────────────── */

.help-hit-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}

.help-hit-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.help-hit-nav-btn:hover,
.help-hit-nav-btn:focus-visible {
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

/* ── Search match highlight ────────────────────────────────────────────────── */

mark.help-match {
  background: rgba(251, 191, 36, 0.28);
  color: #fde68a;
  border-radius: 2px;
  padding: 0 1px;
}

mark.help-match--active {
  background: rgba(251, 191, 36, 0.65);
  color: #1a1200;
  outline: 2px solid rgba(251, 191, 36, 0.8);
  border-radius: 3px;
}

/* ── Footer ────────────────────────────────────────────────────────────────── */

.help-panel-ft {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.help-panel-ft-hint {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: wrap;
}

.help-panel-ft-hint kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.1rem 0.38rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.help-panel-ft-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: #90cdf4;
  text-decoration: none;
  opacity: 0.8;
  transition: opacity 0.16s;
}

.help-panel-ft-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ── Responsive: narrow screens ────────────────────────────────────────────── */

@media (max-width: 600px) {
  .help-panel-drawer {
    width: 100vw;
  }

  .help-toc {
    display: none;
  }

  .help-panel-hd {
    flex-direction: column;
    align-items: flex-start;
  }

  .help-panel-hd-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .header-help-label {
    display: none;
  }
}
