:root {
  --ink: #17211d;
  --muted: #5c6963;
  --line: #dce4df;
  --leaf: #2d7a44;
  --leaf-dark: #1d5730;
  --mint: #eaf5ed;
  --paper: #fbfcfa;
  --white: #ffffff;
  --blue: #195c8e;
  --berry: #8b295d;
  --shadow: 0 18px 46px rgba(23, 33, 29, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  max-width: 100%;
}

img,
video,
table,
pre {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(251, 252, 250, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.header-brand-wrap {
  display: flex;
  justify-content: flex-start;
}

.brand {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  max-width: 100%;
}

.brand-logo {
  display: block;
  width: auto;
  height: clamp(30px, 5vw, 36px);
  flex-shrink: 0;
  object-fit: contain;
}

.brand-text {
  display: block;
  color: var(--muted);
  font-size: clamp(0.68rem, 2.2vw, 0.82rem);
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  line-height: 1.15;
  text-align: left;
  white-space: nowrap;
}

.main-nav .nav-short {
  display: none;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.95rem;
}

.main-nav a,
.site-footer a {
  text-decoration: none;
}

.main-nav a:hover,
.site-footer a:hover {
  color: var(--leaf-dark);
}

.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

.header-action,
.button.secondary {
  color: var(--leaf-dark);
  background: var(--white);
  border-color: var(--line);
}

.button.primary {
  color: var(--white);
  background: var(--leaf-dark);
}

.button:hover,
.header-action:hover {
  transform: translateY(-1px);
}

.full-width {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 670px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #eef3ee;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251, 252, 250, 0.94) 0%, rgba(251, 252, 250, 0.76) 36%, rgba(251, 252, 250, 0.05) 72%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(620px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 80px);
  padding: 68px 0 96px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--leaf-dark);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 14ch;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.25rem;
}

.hero-content p:not(.eyebrow) {
  max-width: 58ch;
  color: #314039;
  font-size: 1.12rem;
}

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

.trust-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.trust-band div {
  padding: 26px clamp(18px, 4vw, 52px);
  background: var(--white);
}

.trust-band strong,
.trust-band span {
  display: block;
}

.trust-band span {
  margin-top: 4px;
  color: var(--muted);
}

.section {
  padding: 82px clamp(18px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
  align-items: start;
}

.split > div:first-child p:not(.eyebrow),
.checkout-copy > p,
.section-heading {
  color: var(--muted);
  max-width: 680px;
}

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

.product-card,
.checkout-card,
.portal-card,
.bundle-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.product-card,
.portal-card {
  padding: 24px;
}

.product-tag {
  display: inline-flex;
  margin-bottom: 16px;
  padding: 6px 10px;
  color: var(--leaf-dark);
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 800;
}

.product-card p {
  color: var(--muted);
}

dl {
  margin: 20px 0 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  text-align: right;
  font-weight: 800;
}

.pricing-section,
.portal-section {
  background: var(--mint);
}

.section-heading {
  margin-bottom: 28px;
}

.pricing-table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pricing-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

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

.pricing-table th {
  color: var(--leaf-dark);
  background: #f6faf7;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pricing-table tr:last-child td {
  border-bottom: 0;
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1fr);
  gap: 42px;
  align-items: start;
}

.bundle-panel {
  display: grid;
  gap: 8px;
  margin-top: 26px;
  padding: 22px;
  border-left: 5px solid var(--leaf);
}

.bundle-panel strong {
  font-size: 1.6rem;
}

.bundle-panel span {
  color: var(--muted);
}

.bundle-panel .button {
  width: fit-content;
  margin-top: 8px;
}

.checkout-card {
  padding: 24px;
}

fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

legend {
  grid-column: 1 / -1;
  margin-bottom: 4px;
  font-weight: 850;
}

label span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
}

input:focus {
  outline: 3px solid rgba(45, 122, 68, 0.18);
  border-color: var(--leaf);
}

.totals {
  display: grid;
  gap: 10px;
  margin: 8px 0 18px;
  padding: 18px;
  background: #f6faf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.totals div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.total-row {
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 1.2rem;
}

.totals p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.portal-card {
  display: grid;
  gap: 14px;
  box-shadow: none;
}

.portal-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.compliance-section {
  padding-top: 0;
}

.compliance-disclosure {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f8faf9;
  overflow: hidden;
}

.compliance-disclosure summary {
  cursor: pointer;
  padding: 14px 18px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
}

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

.compliance-disclosure summary::before {
  content: "▸ ";
  color: var(--leaf);
}

.compliance-disclosure[open] summary::before {
  content: "▾ ";
}

.compliance-body {
  padding: 0 18px 16px;
  border-top: 1px solid var(--line);
}

.compliance-meta {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
}

.credential-badge-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.credential-badge {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  font-size: 0.86rem;
  color: var(--ink);
}

.credential-badge--muted {
  opacity: 0.55;
}

.credential-badge-mark {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--mint);
  color: var(--leaf-dark);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.credential-badge-text strong {
  font-weight: 600;
  color: var(--leaf-dark);
}

.credentials-public-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}

.credential-public-card {
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.credential-public-card--tm {
  border-top: 4px solid var(--leaf);
  background: linear-gradient(180deg, #f8fcf9 0%, var(--white) 100%);
}

.credential-public-eyebrow {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--leaf-dark);
}

.credential-public-card h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: var(--ink);
}

.credential-public-number,
.credential-public-acn {
  margin: 0 0 10px;
  font-size: 0.95rem;
  color: var(--muted);
}

.credential-public-summary,
.credential-public-meta,
.credential-public-block-copy {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.credential-class-list {
  margin: 0;
  padding-left: 18px;
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.6;
}

.credential-public-block {
  list-style: none;
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--line);
}

.credential-public-block-title {
  margin: 0 0 6px;
  font-weight: 600;
  color: var(--leaf-dark);
  font-size: 0.92rem;
}

.section-lead {
  max-width: 620px;
  margin: 8px auto 0;
  color: var(--muted);
  font-size: 1rem;
}

.site-footer {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding: 32px clamp(18px, 5vw, 72px) 20px;
  color: var(--muted);
  background: var(--ink);
}

.footer-col {
  display: grid;
  gap: 6px;
  align-content: start;
}

.footer-col strong,
.footer-col a,
.site-footer a {
  color: #e8f1ec;
}

.footer-col a {
  text-decoration: none;
}

.footer-col a:hover {
  color: #fff;
}

.footer-tm {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #8a9690;
  letter-spacing: 0.02em;
}

.tm-mark {
  font-size: 0.65em;
  vertical-align: super;
  line-height: 0;
  font-weight: 600;
}

.footer-disclaimer {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  line-height: 1.55;
  color: #a8b5ae;
}

.footer-disclaimer a {
  color: #cfe8d6;
}

.page-hero {
  padding: 56px clamp(18px, 5vw, 72px) 40px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 16ch;
  margin-bottom: 14px;
  font-size: clamp(2.4rem, 5vw, 4rem);
}

.page-lead {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero--hub {
  min-height: clamp(360px, 42vw, 560px);
  max-height: 560px;
  background: var(--mint);
}

.hero--hub img {
  object-fit: contain;
  object-position: right center;
}

.hero--product {
  min-height: 520px;
}

.hero--product h1 {
  max-width: 15ch;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
}

.hero--humidity::after {
  background: linear-gradient(90deg, rgba(251, 252, 250, 0.97) 0%, rgba(251, 252, 250, 0.88) 42%, rgba(234, 245, 237, 0.2) 78%);
}

.hero--gummies::after,
.hero--access::after,
.hero--portal::after {
  background: linear-gradient(90deg, rgba(251, 252, 250, 0.96) 0%, rgba(251, 252, 250, 0.82) 38%, rgba(251, 252, 250, 0.08) 70%);
}

.hero--lab::after {
  background: linear-gradient(90deg, rgba(251, 252, 250, 0.97) 0%, rgba(251, 252, 250, 0.9) 45%, rgba(234, 245, 237, 0.15) 80%);
}

.landing-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.landing-card {
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.landing-card--primary {
  border-top: 4px solid var(--leaf);
}

.plain-list {
  margin: 0 0 20px;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}

.product-tag--new {
  color: var(--berry);
  background: #fde8f1;
}

.cta-section {
  background: var(--mint);
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gated-teaser {
  background: #f6faf7;
}

.teaser-panel {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 28px;
  background: var(--white);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.access-panel {
  max-width: 480px;
  margin: 0 auto;
}

.pending-note {
  margin: 0 0 14px;
  padding: 12px 14px;
  color: #6b4f0a;
  background: #fff8e6;
  border: 1px solid #f0d998;
  border-radius: 8px;
}

.form-error {
  margin: 0;
  color: #b42318;
  font-size: 0.92rem;
}

.portal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 16px;
  background: transparent;
  border-bottom: 1px solid var(--line);
}
.portal-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.pricing-placeholder {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

.product-order-block {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.disclaimer-box {
  background: #f8faf8;
  border-block: 1px solid var(--line);
}

.disclaimer-box h2 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.disclaimer-box p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.disclosure-link {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.disclosure-link a {
  color: var(--leaf-dark);
  font-weight: 700;
}

@media (max-width: 920px) {
  .site-header {
    grid-template-columns: 1fr;
    justify-items: stretch;
    gap: 10px;
    padding: 10px clamp(10px, 3vw, 18px) 12px;
  }

  .header-brand-wrap {
    justify-content: center;
    width: 100%;
  }

  .brand {
    justify-content: center;
    gap: clamp(10px, 3vw, 14px);
  }

  .brand-logo {
    height: clamp(38px, 11vw, 52px);
  }

  .brand-text {
    font-size: clamp(0.72rem, 3.2vw, 0.9rem);
    letter-spacing: 0.06em;
  }

  .main-nav {
    grid-column: 1 / -1;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(6px, 2vw, 12px) clamp(8px, 2.5vw, 16px);
    overflow-x: hidden;
    padding-bottom: 0;
    font-size: clamp(0.72rem, 2.6vw, 0.88rem);
    line-height: 1.25;
  }

  .main-nav .nav-long {
    display: none;
  }

  .main-nav .nav-short {
    display: inline;
  }

  .header-action {
    justify-self: center;
    width: auto;
    max-width: 100%;
    font-size: clamp(0.78rem, 2.5vw, 0.88rem);
    min-height: 38px;
    padding: 8px 16px;
    white-space: nowrap;
  }

  .hero {
    min-height: auto;
    max-height: none;
  }

  .hero--hub {
    min-height: clamp(420px, 70vw, 520px);
  }

  .hero--hub img {
    object-fit: cover;
    object-position: 80% center;
    opacity: 0.55;
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(251, 252, 250, 0.97) 0%, rgba(251, 252, 250, 0.9) 55%, rgba(251, 252, 250, 0.75) 100%);
  }

  .hero-content {
    align-self: flex-start;
    width: min(100%, calc(100% - 36px));
    margin-inline: auto;
    padding: 48px 18px 56px;
  }

  .trust-band,
  .split,
  .checkout-section,
  .product-grid,
  .portal-grid {
    grid-template-columns: 1fr;
  }
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.hero-badges li {
  padding: 6px 12px;
  color: var(--leaf-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 750;
}

.centered {
  text-align: center;
  margin-inline: auto;
}

.section-lead {
  max-width: 62ch;
  margin: 12px auto 0;
  color: var(--muted);
}

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

.feature-card {
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  border-top: 4px solid var(--leaf);
  box-shadow: var(--shadow);
}

.feature-icon {
  font-size: 1.6rem;
  display: block;
  margin-bottom: 10px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lab-section {
  background: var(--white);
}

.lab-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}

.lab-card {
  padding: 22px;
  border-radius: 8px;
  border: 2px solid var(--line);
}

.lab-card--bad {
  background: #fff5f5;
  border-color: #f2b8b5;
}

.lab-card--good {
  background: #f3faf5;
  border-color: #b9dcc4;
}

.lab-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.lab-card header span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.lab-card--bad header span {
  background: #fde0de;
  color: #c62828;
}

.lab-card--good header span {
  background: #dff2e5;
  color: var(--leaf-dark);
}

.lab-card header h3 {
  margin: 0;
}

.lab-card header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lab-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 22px;
}

.lab-pills span {
  padding: 7px 12px;
  color: var(--leaf-dark);
  background: var(--mint);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 750;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.chart-grid--single {
  grid-template-columns: 1fr;
}

.chart-panel {
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.chart-panel h3 {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--muted);
  text-align: center;
}

.chart-panel {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.chart-panel canvas {
  flex: 1 1 auto;
  width: 100% !important;
  min-height: 260px;
  max-height: 340px;
}

.chart-panel--full {
  grid-column: 1 / -1;
  min-height: 380px;
}

.chart-panel--full canvas {
  min-height: 320px;
  max-height: 420px;
}

.lab-stat-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  font-size: 0.92rem;
}

.lab-stat-list em {
  color: var(--leaf-dark);
  font-style: normal;
  font-weight: 600;
}

.lab-table-wrap {
  margin-top: 24px;
  padding: 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.lab-table-wrap h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--leaf-dark);
}

.lab-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.lab-data-table th,
.lab-data-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.lab-data-table th {
  background: var(--mint);
  color: var(--leaf-dark);
  font-weight: 700;
}

.lab-data-table__highlight {
  background: #f3faf5;
  font-weight: 600;
}

.lab-table-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.5;
}

.science-section {
  background: var(--mint);
}

.science-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.science-grid article {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.science-grid p {
  margin: 0;
  color: var(--muted);
}

.cert-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bundle-panel--featured {
  position: relative;
  margin: 20px 0;
  padding-top: 28px;
  border: 2px solid var(--leaf);
  background: linear-gradient(135deg, #f3faf5, #fff);
}

.bundle-badge {
  position: absolute;
  top: -12px;
  left: 20px;
  padding: 5px 10px;
  color: var(--white);
  background: var(--leaf-dark);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bundle-panel ul {
  margin: 0 0 10px;
  padding-left: 18px;
  color: var(--muted);
}

.order-section {
  background: var(--paper);
}

.order-form {
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 28px;
  background: var(--white);
  border: 2px solid var(--leaf);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.form-block {
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.form-block legend {
  margin-bottom: 12px;
  color: var(--leaf-dark);
  font-size: 1.05rem;
}

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

.form-grid .wide {
  grid-column: 1 / -1;
}

textarea {
  width: 100%;
  min-height: 80px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f8faf8;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

textarea:focus {
  outline: 3px solid rgba(45, 122, 68, 0.18);
  border-color: var(--leaf);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  padding: 14px;
  background: var(--mint);
  border-radius: 8px;
  cursor: pointer;
}

.check-row input {
  width: auto;
  margin-top: 3px;
}

.order-steps {
  max-width: 820px;
  margin: 0 auto;
  padding: 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.order-steps ol {
  margin: 0 0 14px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.order-steps p {
  margin: 0 0 8px;
  color: var(--muted);
}

.order-steps a,
.portal-hint a {
  color: var(--leaf-dark);
  font-weight: 700;
}

.partners-section {
  padding-bottom: 60px;
}

.partner-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.partner-logos img {
  max-height: 48px;
  max-width: 180px;
  object-fit: contain;
  opacity: 0.85;
  filter: grayscale(0.25);
}

.product-showcase {
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(0, 1.05fr);
  gap: 36px;
  align-items: center;
  padding: 0 clamp(18px, 5vw, 72px) 48px;
}

.product-showcase__media {
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.product-showcase__media img {
  width: 100%;
  max-width: 420px;
  height: auto;
  object-fit: contain;
}

.product-showcase__copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.product-showcase__copy p {
  color: var(--muted);
  line-height: 1.65;
}

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

.product-gallery__hero {
  grid-column: 1 / -1;
}

.product-gallery figure {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.product-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.product-gallery figcaption {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.86rem;
  border-top: 1px solid var(--line);
}

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

.flavour-card {
  padding: 18px 16px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.flavour-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.flavour-card span {
  color: var(--muted);
  font-size: 0.84rem;
}

.flavour-card--grape strong { color: #6b3fa0; }
.flavour-card--blue strong { color: var(--blue); }
.flavour-card--berry strong { color: var(--berry); }
.flavour-card--custom strong { color: var(--leaf-dark); }

.section--tight-top {
  padding-top: 48px;
}

.pack-duo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 920px;
  margin: 0 auto;
}

.pack-duo figure {
  margin: 0;
  padding: 24px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
}

.pack-duo img {
  display: block;
  width: 100%;
  max-height: 420px;
  margin: 0 auto;
  object-fit: contain;
}

.pack-duo figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pack-note {
  max-width: 920px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.gummies-intro {
  background: var(--mint);
  border-block: 1px solid var(--line);
}

.gummies-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 28px;
  align-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.gummies-intro__thumb {
  margin: 0;
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.gummies-intro__thumb img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.gummies-intro__inner--text {
  grid-template-columns: 1fr;
  max-width: 720px;
}

.bulk-section {
  background: #f6faf7;
}

.landing-card__image {
  width: 100%;
  height: 180px;
  margin: 0 0 18px;
  object-fit: cover;
  object-position: center;
  background: #f4f8f5;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.product-card__image {
  width: 100%;
  max-height: 160px;
  margin-bottom: 16px;
  object-fit: contain;
  background: #f4f8f5;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.cert-row img {
  max-height: 72px;
  max-width: 140px;
  object-fit: contain;
}

dd small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.modal[hidden] {
  display: none !important;
}

.modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(23, 33, 29, 0.55);
  backdrop-filter: blur(4px);
}

.modal-card {
  max-width: 420px;
  width: 100%;
  padding: 28px;
  text-align: center;
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.modal-card h2 {
  color: var(--leaf-dark);
}

@media (max-width: 920px) {
  .feature-grid,
  .lab-compare,
  .chart-grid,
  .science-grid,
  .form-grid,
  .landing-grid,
  .credentials-public-grid,
  .site-footer,
  .product-showcase,
  .product-gallery,
  .flavour-grid,
  .pack-duo,
  .gummies-intro__inner {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header {
    gap: 8px;
  }

  .brand-logo {
    height: clamp(36px, 12vw, 46px);
  }

  .main-nav {
    gap: 6px 8px;
  }

  .hero {
    min-height: 680px;
  }

  h1 {
    font-size: 3rem;
  }

  .section {
    padding-block: 58px;
  }

  fieldset {
    grid-template-columns: 1fr;
  }

  dl div,
  .totals div {
    align-items: flex-start;
  }
}
.catalogue-tools {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
  gap: 14px;
  margin: 18px 0 10px;
}
.catalogue-tools label { display: grid; gap: 6px; }
.catalogue-tools input, .catalogue-tools select { width: 100%; padding: 12px; border: 1px solid #cbd7d0; border-radius: 10px; background: #fff; }
.catalogue-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 18px; }
.catalogue-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid #dce6df; border-radius: 16px; background: #fff; box-shadow: 0 8px 24px rgba(23, 33, 29, .07); }
.catalogue-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; border-radius: 10px; background: #f6f8f6; }
.catalogue-card h3, .catalogue-card p { margin: 0; }
.catalogue-card strong { margin-top: auto; color: #1d5730; font-size: 1.08rem; }
.catalogue-card small { color: #5c6963; }
@media (max-width: 640px) { .catalogue-tools { grid-template-columns: 1fr; } }

.muted-copy { color: var(--muted); max-width: 52rem; }
.invoice-list { display: grid; gap: 12px; margin-top: 18px; }
.invoice-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(23, 33, 29, 0.06);
}
.invoice-card p { margin: 4px 0 0; color: var(--muted); font-size: 0.92rem; }
.invoice-card-actions { display: flex; align-items: center; gap: 14px; }
.shop-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #eef3ee;
}
.shop-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}
.shop-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(251,252,250,0.96) 0%, rgba(251,252,250,0.78) 42%, rgba(251,252,250,0.08) 78%);
}
.shop-hero-copy {
  position: relative;
  z-index: 1;
  width: min(640px, calc(100% - 36px));
  margin-left: clamp(18px, 6vw, 80px);
  padding: 56px 0 64px;
}
.shop-hero-copy h1 { max-width: 16ch; }
.shop-hero-session { margin: 16px 0 0; color: var(--muted); font-size: 0.92rem; }
.shop-layout { max-width: 1120px; margin: 0 auto; padding: 0 clamp(18px, 4vw, 52px) 160px; }
.shop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.shop-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 46px rgba(23, 33, 29, 0.1);
}
.shop-card-photo { position: relative; background: #eef3ee; }
.shop-card-photo img { display: block; width: 100%; height: 280px; object-fit: cover; }
.shop-card-photo .product-tag { position: absolute; left: 16px; top: 16px; }
.shop-card-body { padding: 22px 22px 26px; }
.shop-card-body h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 8px; }
.shop-price { display: grid; gap: 8px; margin: 16px 0 18px; padding: 14px; background: var(--mint); border-radius: 14px; }
.shop-price div { display: flex; justify-content: space-between; gap: 12px; }
.shop-price span { color: var(--muted); }
.shop-price strong { color: var(--leaf-dark); }
.stepper-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stepper span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.stepper-controls { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.stepper-controls input {
  width: 64px;
  border: 0;
  text-align: center;
  font: inherit;
  font-weight: 750;
  background: transparent;
}
.stepper-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--mint);
  color: var(--leaf-dark);
  font-size: 1.2rem;
  cursor: pointer;
}
.shop-offers { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.shop-offer {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  cursor: pointer;
}
.shop-offer input { width: auto; margin-top: 4px; }
.shop-offer small { display: block; color: var(--muted); margin-top: 4px; }
.shop-notes { display: grid; gap: 6px; margin-bottom: 28px; }
.shop-invoices { margin-top: 12px; padding-top: 12px; }
.order-desk { padding-bottom: 140px; }
.order-desk-form { display: grid; gap: 22px; max-width: 980px; margin: 0 auto; }
.order-profile {
  margin: 0;
  padding: 14px 18px;
  background: var(--mint);
  border-radius: 14px;
  color: var(--leaf-dark);
}
.order-product-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.order-product-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(23, 33, 29, 0.07);
}
.order-product-card h3 { margin: 4px 0 8px; }
.order-product-card > p { margin: 0 0 16px; color: var(--muted); }
.qty-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.qty-grid label, .flavour-field, .notes-field { display: grid; gap: 6px; font-size: 0.88rem; color: var(--muted); }
.qty-grid input, .flavour-field input, .notes-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfcfa;
  font: inherit;
  color: var(--ink);
}
.flavour-field { margin-top: 14px; }
.order-extras { display: grid; gap: 12px; }
.offer-chip {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
}
.offer-chip input { width: auto; margin-top: 3px; }
.order-dock {
  position: sticky;
  bottom: 16px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(23, 33, 29, 0.14);
}
.order-dock-totals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 10px; }
.order-dock-totals span { display: block; color: var(--muted); font-size: 0.78rem; }
.order-dock-note { color: var(--muted); font-size: 0.9rem; }
.order-dock .paypal-checkout { margin-top: 12px; }
.order-dock .paypal-checkout p { margin: 0 0 8px; color: var(--muted); font-size: 0.9rem; }
.order-bundle-card ul { margin: 8px 0 12px; padding-left: 18px; color: var(--muted); }
.order-product-card .product-card__image { width: 100%; max-height: 160px; object-fit: contain; border-radius: 12px; background: #f6f8f6; margin-bottom: 10px; }
.order-product-card dl { margin: 0 0 14px; }
.order-product-card dt { color: var(--muted); font-size: 0.82rem; }
.order-product-card dd { margin: 0 0 8px; font-weight: 700; color: var(--leaf-dark); }
.access-panel .portal-card {
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 16px 40px rgba(23, 33, 29, 0.08);
}
.modal-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  max-width: 420px;
  box-shadow: 0 24px 60px rgba(23, 33, 29, 0.18);
}
.modal-card .button { margin-top: 10px; }
@media (max-width: 800px) {
  .order-product-grid, .qty-grid, .order-dock-totals, .invoice-card, .shop-grid, .shop-offers, .stepper-row { grid-template-columns: 1fr; display: grid; }
  .invoice-card-actions { justify-content: space-between; }
  .shop-card-photo img { height: 200px; }
  .shop-hero { min-height: 320px; }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.portal-app {
  background: #eef1ef;
}
.portal-catalog-order { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.portal-catalog-order img { width: 100%; height: 170px; object-fit: contain; }
.portal-catalog-order label { display: grid; gap: 7px; margin-top: 12px; }
.portal-catalog-order small { display: block; margin-top: 10px; color: var(--muted); }
.portal-catalog-order select { width: 100%; min-width: 0; }
body.portal-app .site-header,
body.portal-app .site-footer,
body.portal-app .page-hero {
  display: none !important;
}
body.portal-app main {
  padding: 0;
  max-width: none;
}

.dash {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: 100vh;
}
.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 16px;
  background: #fff;
  border-right: 1px solid var(--line);
}
.dash-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
  text-decoration: none;
  font-weight: 750;
}
.dash-brand img {
  width: auto;
  height: 28px;
}
.dash-brand span {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dash-nav-links {
  display: grid;
  gap: 4px;
}
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}
.dash-nav-link svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  color: var(--muted);
}
.dash-nav-link:hover {
  background: var(--mint);
}
.dash-nav-link.is-active {
  background: var(--mint);
  color: var(--leaf-dark);
}
.dash-nav-link.is-active svg {
  color: var(--leaf-dark);
}
.dash-nav-foot {
  margin-top: auto;
  padding: 16px 10px 4px;
  border-top: 1px solid var(--line);
}
.dash-pharmacy {
  margin: 0 0 4px;
  font-weight: 750;
}
.dash-session {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.86rem;
  word-break: break-all;
}

.dash-main {
  min-width: 0;
  padding: 28px clamp(18px, 3vw, 36px) 40px;
}
.dash-view {
  display: grid;
  gap: 18px;
}
.dash-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}
.dash-top h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.dash-count {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.dash-top-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.dash-search {
  flex: 1 1 240px;
}
.dash-search input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
}
.dash-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dash-chip {
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.dash-chip.is-active {
  background: var(--leaf-dark);
  border-color: var(--leaf-dark);
  color: #fff;
}

.dash-empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;
  padding: 64px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(23, 33, 29, 0.06);
}
.dash-empty-art {
  width: min(220px, 70vw);
  height: auto;
}
.dash-empty h2 {
  margin: 8px 0 0;
}
.dash-empty p {
  max-width: 42ch;
  margin: 0 0 8px;
  color: var(--muted);
}

.orders-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.orders-workspace.has-info {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
}
.orders-workspace.has-info .orders-table th:nth-child(3),
.orders-workspace.has-info .orders-table td:nth-child(3) {
  display: none;
}
.orders-table-wrap {
  overflow: auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(23, 33, 29, 0.05);
}
.orders-table {
  width: 100%;
  border-collapse: collapse;
}
.orders-table th,
.orders-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.orders-table th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #f7faf8;
}
.orders-table tr:last-child td {
  border-bottom: 0;
}
.orders-row {
  cursor: pointer;
}
.orders-row:hover {
  background: #f6faf7;
}
.orders-row.is-selected {
  background: var(--mint);
}
.orders-table td:first-child,
.orders-table td:nth-child(2) {
  white-space: nowrap;
}
.orders-items {
  max-width: 280px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.orders-total {
  font-weight: 750;
  white-space: nowrap;
}
.orders-table-empty {
  color: var(--muted);
  text-align: center;
}

.dash-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef1ef;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  white-space: nowrap;
}
.dash-badge--ok {
  background: #e3f4e8;
  color: var(--leaf-dark);
}
.dash-badge--wait {
  background: #fff3d6;
  color: #8a5a00;
}
.dash-badge--warn {
  background: #fdecec;
  color: #8b295d;
}

.order-info {
  position: sticky;
  top: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 40px rgba(23, 33, 29, 0.08);
}
.order-info-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.order-info-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.order-info-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 10px;
  background: #eef1ef;
  color: var(--ink);
  font-size: 1.3rem;
  cursor: pointer;
}
.order-info-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}
.order-info section {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.order-info h3 {
  margin: 0 0 8px;
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.order-info p {
  margin: 0 0 4px;
}
.order-info-lines {
  width: 100%;
  border-collapse: collapse;
}
.order-info-lines td {
  padding: 8px 0;
  border-bottom: 1px solid #eef1ef;
  vertical-align: top;
}
.order-info-lines td:last-child {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}
.order-info-lines small {
  display: block;
  color: var(--muted);
}
.order-info-totals {
  display: grid;
  gap: 8px;
}
.order-info-totals div,
.order-dock-totals .total-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.order-info-totals .total-row {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  font-size: 1.05rem;
}
.order-info-timeline ol {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}
.order-info-timeline li + li {
  margin-top: 8px;
}
.order-info .button {
  margin-top: 8px;
}

.dash-order-form.shop-layout {
  max-width: 1080px;
  margin: 0;
  padding: 0 0 24px;
}
.portal-delivery-block { display: block; min-width: 0; margin: 24px 0; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.portal-delivery-block > p { margin: 8px 0; }
.portal-delivery-block .button { width: auto; margin: 12px 0; }
.portal-delivery-block .portal-delivery-toggle { display: flex; align-items: center; gap: 10px; margin: 12px 0; }
.portal-delivery-block .portal-delivery-toggle input { width: 20px; height: 20px; min-height: 20px; padding: 0; flex: 0 0 20px; }
.portal-delivery-block #alternateDeliveryField { display: grid; gap: 8px; margin-top: 16px; }
.dash-view .compliance-section {
  max-width: 1080px;
}

@media (max-width: 980px) {
  .dash {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-nav {
    position: sticky;
    top: 0;
    z-index: 8;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 12px 14px;
  }
  .dash-brand {
    padding: 0 8px 0 0;
  }
  .dash-nav-links {
    display: flex;
    flex-wrap: wrap;
    min-width: 0;
    flex: 1;
    gap: 6px;
  }
  .dash-nav-link {
    width: auto;
  }
  .dash-nav-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
    width: 100%;
  }
  .dash-pharmacy,
  .dash-session {
    margin: 0;
  }
  .dash-nav-foot .button {
    margin-left: auto;
    width: auto;
  }
  .orders-workspace.has-info {
    grid-template-columns: 1fr;
  }
  .order-info {
    position: fixed;
    inset: 12px;
    z-index: 30;
    overflow: auto;
    max-height: calc(100vh - 24px);
  }
}

@media (max-width: 720px) {
  .orders-table th:nth-child(n+3):nth-child(-n+5),
  .orders-table td:nth-child(n+3):nth-child(-n+5) {
    display: none;
  }
  .orders-table td:first-child {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .dash-main {
    padding: 18px 14px 28px;
  }
  .dash-top {
    flex-direction: column;
    align-items: stretch;
  }
  .dash-nav-link span,
  .dash-nav-link {
    font-size: 0.92rem;
  }
}

#orderForm { max-width: 1440px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, 320px); gap: 24px; align-items: start; }
.checkout-main { min-width: 0; }
.checkout-side-cart { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow: auto; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 12px 30px rgba(23,33,29,.08); }
.checkout-cart-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.checkout-cart-heading h2 { margin: 0 0 14px; font-size: 1.4rem; }
.checkout-side-cart .order-dock { position: static; padding: 0; border: 0; border-radius: 0; box-shadow: none; margin-top: 18px; }
.checkout-side-cart .order-dock-totals { display: grid; grid-template-columns: 1fr; gap: 10px; }
.checkout-side-cart .order-dock-totals > div { display: flex; justify-content: space-between; gap: 10px; }
.cart-line { padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line strong { display: block; overflow-wrap: anywhere; }
.cart-line p { display: flex; justify-content: space-between; gap: 10px; margin: 6px 0 0; font-size: .9rem; }
.cart-line small { color: var(--muted); }
#cartMessages { color: var(--leaf-dark); font-size: .9rem; }
#cartMessages.cart-warning { color: #9a3c00; }
.mobile-cart-toggle, .mobile-cart-close { display: none; }
@media (max-width: 1100px) {
 #orderForm { grid-template-columns: minmax(0,1fr); padding-bottom: 86px; }
 .checkout-side-cart { display: none; position: fixed; z-index: 25; top: auto; left: 12px; right: 12px; bottom: 76px; max-height: 65vh; }
 .checkout-side-cart.is-mobile-open { display: block; }
 .mobile-cart-toggle { display: block; position: fixed; z-index: 26; bottom: 16px; right: 16px; width: auto; box-shadow: 0 6px 24px rgba(0,0,0,.2); }
 .mobile-cart-close { display: block; width: auto; }
}

body.portal-app, html:has(body.portal-app) { overflow-x: clip; overflow-y: visible; }
