:root {
  --bg: #f7fbfa;
  --bg-elevated: #ffffff;
  --ink: #0e2a26;
  --ink-muted: #3d5c56;
  --line: rgba(14, 42, 38, 0.1);
  --brand: #0a3d3a;
  --brand-deep: #062825;
  --brand-mid: #12665f;
  --accent: #c45c26;
  --accent-soft: #f7e6da;
  --teal: #178a80;
  --teal-soft: #e2f4f1;
  --ok: #1f7a4d;
  --warn: #9a6b12;
  --err: #a33a2c;
  --shadow: 0 20px 48px rgba(10, 61, 58, 0.1);
  --radius: 14px;
  --font: "Outfit", system-ui, sans-serif;
  --serif: "Source Serif 4", Georgia, serif;
  --header-nav-h: 84px;
  --header-search-h: 56px;
  --header-h: calc(var(--header-nav-h) + var(--header-search-h));
  --container: 1120px;
  --motif-network: url("../img/motifs/motif-network.png");
  --motif-helix: url("../img/motifs/motif-helix.png");
  --motif-cage: url("../img/motifs/motif-cage.png");
  --motif-star: url("../img/motifs/motif-star.png");
  --motif-chain: url("../img/motifs/motif-chain.png");
  --motif-branch: url("../img/motifs/motif-branch.png");
  --motif-cluster: url("../img/motifs/motif-cluster.png");
  --motif-opacity: 0.18;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(980px 520px at 8% -8%, rgba(23, 138, 128, 0.16), transparent 58%),
    radial-gradient(820px 460px at 96% 4%, rgba(196, 92, 38, 0.1), transparent 52%),
    linear-gradient(180deg, #edf8f6 0%, var(--bg) 38%, #eef6f4 100%);
  min-height: 100vh;
  line-height: 1.55;
}

/* Soft molecular watermarks in page white space (static, non-interactive) */
.hero::before,
.hero::after,
.page-hero::before,
.page-hero::after,
.section::before,
.section::after,
.site-footer::before,
.site-footer::after,
.footer-grid::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: var(--motif-opacity);
}

.hero::before,
.hero::after,
.site-footer::before,
.site-footer::after,
.footer-grid::after {
  mix-blend-mode: soft-light;
  opacity: 0.34;
}

.page-hero > .container,
.section > .container,
.section > .deck-banner,
.hero-content,
.site-footer > * {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--brand);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 1000;
  border-radius: 8px;
}

.skip-link:focus {
  top: 1rem;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px) saturate(1.15);
  background: rgba(247, 251, 250, 0.88);
  border-bottom: 1px solid rgba(23, 138, 128, 0.12);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.7) inset;
  overflow: visible;
}

.header-inner {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.header-inner--main {
  min-height: var(--header-nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--brand);
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-link {
  line-height: 0;
}

.brand-logo {
  display: block;
  width: 7rem;
  max-width: 100%;
  height: auto;
  border-radius: 0;
}

.brand-logo--header {
  width: 9.5rem;
}

.brand-logo--footer {
  width: 10.5rem;
  margin-bottom: 0.85rem;
}

.brand-logo--panel {
  width: 100%;
  max-width: 9rem;
  height: auto;
  object-fit: contain;
  object-position: left center;
}

.panel-brand .brand-logo-link--panel {
  display: block;
  padding: 0.25rem 0.35rem 0.65rem;
  border-bottom: 0;
  margin-bottom: 0;
}

.panel-brand-caption {
  margin: 0 0 1rem;
  padding: 0 0.35rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(247, 250, 249, 0.55);
  font-size: 0.78rem;
}

.hero-logo {
  display: block;
  width: min(100%, 15rem);
  height: auto;
  margin: 0 0 1.35rem;
  border-radius: 0;
}

.brand-mark {
  color: var(--accent);
  display: grid;
  place-items: center;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  font-weight: 600;
}

.header-menus {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-left: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.primary-nav > a,
.nav-drop-heading,
.nav-drop-toggle {
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.45rem 0.55rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

.primary-nav > a:hover,
.primary-nav > a.is-active,
.nav-drop-heading:hover,
.nav-drop-toggle:hover,
.nav-drop-toggle.is-active,
.nav-drop.is-current > .nav-drop-heading {
  color: var(--brand);
  background: rgba(10, 61, 58, 0.08);
}

.nav-drop {
  position: relative;
}

.nav-drop-heading {
  display: inline-flex;
  align-items: center;
  padding: 0;
  gap: 0;
}

.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  padding-right: 0.3rem;
  border-radius: 999px 0 0 999px;
  background: transparent;
}

.nav-drop-heading:hover .nav-drop-toggle,
.nav-drop.is-current > .nav-drop-heading .nav-drop-toggle {
  color: inherit;
  background: transparent;
}

.nav-drop-expand,
.nav-sub-expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 0.45rem 0.55rem 0.45rem 0.2rem;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 0;
  border-radius: 0 999px 999px 0;
}

.nav-drop-item-row {
  display: flex;
  align-items: center;
}

.nav-drop-item-row > a {
  flex: 1;
}

.nav-sub-expand {
  flex-shrink: 0;
  padding: 0.55rem 0.75rem;
  border-radius: 0;
}

.nav-drop-caret,
.nav-sub-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
}

.nav-sub-caret {
  margin-left: auto;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 5px solid currentColor;
  border-right: 0;
}

.nav-drop-menu,
.nav-sub-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0.4rem 0;
  min-width: 16.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  z-index: 120;
}

.nav-drop-menu {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.55rem;
}

.nav-drop--end .nav-drop-menu {
  left: auto;
  right: 0;
}

.nav-drop-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 0.55rem;
}

.nav-drop-item {
  position: relative;
}

.nav-drop-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.55rem 0.9rem;
  white-space: normal;
  line-height: 1.3;
}

.nav-drop-menu a:hover,
.nav-drop-item.has-sub:hover > .nav-drop-item-row > a {
  color: var(--brand);
  background: rgba(10, 61, 58, 0.06);
}

.nav-drop-menu a.is-active {
  color: var(--brand);
  background: rgba(10, 61, 58, 0.08);
  font-weight: 600;
}

.nav-sub-menu {
  position: absolute;
  top: -0.4rem;
  left: calc(100% - 0.15rem);
  min-width: 15rem;
  max-height: min(70vh, 28rem);
  overflow-y: auto;
}

@media (min-width: 1025px) {
  .nav-drop:hover > .nav-drop-menu,
  .nav-drop:focus-within > .nav-drop-menu,
  .nav-drop-item.has-sub:hover > .nav-sub-menu,
  .nav-drop-item.has-sub:focus-within > .nav-sub-menu {
    display: block;
  }

  .nav-drop-expand,
  .nav-sub-expand {
    pointer-events: none;
  }
}

.header-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.header-search-row {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.header-inner--search {
  min-height: var(--header-search-h);
  gap: 0.65rem;
  padding: 0.4rem 0;
}

.header-search {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 0.5rem;
}

.header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  height: 42px;
  border: 1.5px solid rgba(10, 61, 58, 0.45);
  border-radius: 999px;
  padding: 0 1.05rem;
  font: inherit;
  color: var(--ink);
  background: var(--bg-elevated);
}

.header-search input[type="search"]:hover {
  border-color: rgba(10, 61, 58, 0.65);
}

.header-search input[type="search"]:focus,
.header-search input[type="search"]:active {
  border-color: var(--brand);
  outline: 2px solid rgba(10, 61, 58, 0.28);
  outline-offset: 1px;
}

.header-search .btn {
  flex-shrink: 0;
}

.header-structure-btn {
  flex-shrink: 0;
  white-space: nowrap;
}

.header-structure-btn.is-active {
  color: var(--brand);
  background: rgba(10, 61, 58, 0.08);
}

.header-structure-icon {
  width: 1.15rem;
  height: 1.15rem;
}

.catalog-result-meta {
  margin: 0 0 1rem;
  color: var(--ink-muted);
}

.catalog-result-wrap {
  margin-bottom: 1.5rem;
}

.catalog-result-table .catalog-mol {
  width: 120px;
}

.catalog-mol {
  display: grid;
  place-items: center;
  min-height: 88px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.catalog-mol svg {
  display: block;
  max-width: 100%;
  height: auto;
}

.catalog-mol--lg {
  width: min(100%, 20rem);
  min-height: 220px;
}

.catalog-compound-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 20rem) 1fr;
  gap: 2rem;
  align-items: start;
  margin: 1rem 0 1.5rem;
}

.catalog-result-table a:not(.btn) {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.catalog-result-table a:not(.btn):hover {
  text-decoration: underline;
}

.catalog-result-table {
  min-width: 48rem;
}

.catalog-result-actions {
  text-align: right;
  white-space: nowrap;
}

.catalog-result-actions .btn + .btn {
  margin-left: 0.35rem;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--bg-elevated);
  border-radius: 10px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--brand);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.7rem 1.25rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

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

.btn-primary {
  background: linear-gradient(160deg, var(--brand-mid), var(--brand));
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(10, 61, 58, 0.18);
}

.btn-primary:hover {
  background: linear-gradient(160deg, #178a80, var(--brand-mid));
  color: #fff;
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: #a84c1e;
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  border-color: var(--line);
}

.btn-ghost:hover {
  background: rgba(10, 61, 58, 0.06);
  color: var(--brand);
}

.btn-lg {
  padding: 0.9rem 1.5rem;
  font-size: 1rem;
}

/* Flash */
.flash {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin: 0 0 1.15rem;
  padding: 0.8rem 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.flash p {
  margin: 0;
  flex: 1 1 auto;
  line-height: 1.45;
}

.flash-ok {
  background: #e6f4ef;
  color: #0a3d3a;
  border-color: #b7ddd0;
}

.flash-error {
  background: #fdeceb;
  color: #7a1f1f;
  border-color: #f0b4b4;
}

.flash-close {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  cursor: pointer;
  color: inherit;
  line-height: 1;
  padding: 0;
  flex: 0 0 auto;
  opacity: 0.75;
}

.flash-close:hover {
  opacity: 1;
}

.flash-page-top {
  padding-top: 1.25rem;
}

#profile-form,
#password-form {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

#profile-form .flash,
#password-form .flash,
[data-scroll-form] .field-error {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

/* Hero */
.hero {
  position: relative;
  min-height: 0;
  display: block;
  overflow: hidden;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(115deg, rgba(6, 40, 37, 0.9) 0%, rgba(10, 61, 58, 0.62) 48%, rgba(6, 40, 37, 0.4) 100%),
    linear-gradient(160deg, #0a3d3a, #1a7a72 55%, #c45c26);
}

.hero::before {
  top: auto;
  left: auto;
  right: max(0.75rem, calc((100vw - var(--container)) / 2 - 1rem));
  bottom: -1.75rem;
  width: min(14rem, 38vw);
  height: min(14rem, 38vw);
  background-image: var(--motif-chain);
  opacity: 0.5;
  mix-blend-mode: normal;
}

.hero::after {
  content: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
  padding: 1.75rem 0 3.5rem;
  color: #f7faf9;
  max-width: 720px;
  animation: fadeUp 0.8s ease both;
}

@media (min-width: 900px) {
  .hero-content {
    display: grid;
    grid-template-columns: minmax(15rem, 0.85fr) minmax(0, 1.25fr);
    gap: 3.25rem;
    align-items: center;
    max-width: var(--container);
    padding: 2.75rem 0 4rem;
  }

  .hero-logo {
    width: min(100%, 22rem);
    margin: 0;
    justify-self: start;
  }

  .hero h1 {
    font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-brand {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 500;
  line-height: 1.35;
  color: rgba(247, 250, 249, 0.92);
}

.hero p {
  margin: 0 0 1.75rem;
  font-size: 1.05rem;
  color: rgba(247, 250, 249, 0.78);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero .btn-primary {
  background: #fff;
  color: var(--brand);
}

.hero .btn-primary:hover {
  background: var(--accent-soft);
  color: var(--brand-deep);
}

.hero .btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hero .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Sections */
.section {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0;
}

.section::before,
.section::after {
  content: none;
}

.home-about::before {
  content: none;
}

.home-about::after {
  content: none;
}

.page-home .home-products {
  overflow: visible;
}

/* Higher specificity so homepage Products keeps the circle motif (not nth-of-type star) */
.page-home .section.home-products::before {
  content: "";
  top: 1rem;
  right: max(0.75rem, calc((100vw - var(--container)) / 2 - 3rem));
  width: min(15rem, 40vw);
  height: min(15rem, 40vw);
  background-image: var(--motif-cage);
}

.page-home .section.home-products::after {
  content: none;
}

.page-home .section.home-support::before {
  content: "";
  top: auto;
  left: auto;
  right: max(0.75rem, calc((100vw - var(--container)) / 2 - 3rem));
  bottom: 0;
  width: min(16rem, 42vw);
  height: min(12rem, 32vw);
  transform: none;
  background-image: var(--motif-network);
  opacity: var(--motif-opacity);
}

.page-home .section.home-support::after {
  content: none;
}

/* Homepage: one shared page background (no alternating section fills) */
.page-home {
  overflow-x: clip;
}

.page-home #main {
  background: transparent;
  overflow-x: clip;
}

.page-home .section {
  background: transparent;
  border: 0;
  overflow: hidden;
  padding: 1.5rem 0;
}

.section-alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(226, 244, 241, 0.5));
  border-block: 1px solid rgba(23, 138, 128, 0.12);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.25rem;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 1.05rem;
}

/* Feature list (not cards by default — open layout) */
.feature-list {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(3, 1fr);
}

.feature-item {
  padding-top: 1rem;
  border-top: 2px solid var(--brand);
  animation: fadeUp 0.7s ease both;
}

.feature-item:nth-child(2) { animation-delay: 0.08s; }
.feature-item:nth-child(3) { animation-delay: 0.16s; }
.feature-item:nth-child(4) { animation-delay: 0.24s; }
.feature-item:nth-child(5) { animation-delay: 0.32s; }
.feature-item:nth-child(6) { animation-delay: 0.4s; }

.feature-item h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.feature-item p {
  margin: 0;
  color: var(--ink-muted);
}

/* Page hero (inner pages) */
.page-hero {
  --page-hero-wash: #e7f4f1;
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2rem;
  border-bottom: 1px solid rgba(23, 138, 128, 0.12);
  background:
    linear-gradient(120deg, rgba(23, 138, 128, 0.14) 0%, rgba(196, 92, 38, 0.06) 48%, transparent 78%),
    linear-gradient(180deg, #f4fbf9 0%, var(--page-hero-wash) 100%);
}

body:not(.page-home) .page-hero {
  overflow: visible;
}

.page-hero > .container {
  position: relative;
  z-index: 1;
}

.page-hero::before,
.page-hero::after {
  content: none;
}

/* Inner pages: 2–3 unique motifs inside #main, different set per page. Footer is unchanged. */
body:not(.page-home) .page-hero::before,
body:not(.page-home) .section::after {
  content: "";
}

body:not(.page-home) .page-hero::before {
  top: 0;
  bottom: auto;
  left: auto;
  right: max(0.75rem, calc((100vw - var(--container)) / 2 - 3rem));
  width: min(12rem, 32vw);
  height: min(13rem, 36vw);
  background-position: top center;
  opacity: 0.4;
}

body:not(.page-home) .section::after {
  top: auto;
  right: auto;
  bottom: 0.5rem;
  left: max(0.5rem, calc((100vw - var(--container)) / 2 - 2.5rem));
  width: min(16rem, 42vw);
  height: min(11rem, 30vw);
}

body:not(.page-home).page-product .section::after,
body:not(.page-home).page-products .section::after,
body:not(.page-home).page-support .section::after,
body:not(.page-home).page-support-topic .section::after,
body:not(.page-home).page-catalog-structure .section::after,
body:not(.page-home).page-catalog-compound .section::after {
  left: auto;
  right: max(0.75rem, calc((100vw - var(--container)) / 2 - 3rem));
}

body:not(.page-home) .section ~ .section::after,
body:not(.page-home) .page-hero::after {
  content: none;
}

body:not(.page-home) .section::before {
  content: none;
}

body.page-about .page-hero::before {
  background-image: var(--motif-star);
  width: min(12rem, 32vw);
  height: min(12rem, 32vw);
}

body.page-catalog-compound .page-hero::before {
  background-image: var(--motif-helix);
  width: min(8rem, 22vw);
  height: min(9.5rem, 28vw);
}

.page-about .section::after { background-image: var(--motif-chain); }
.page-about .section::before {
  content: "";
  top: 8rem;
  right: max(0.75rem, calc((100vw - var(--container)) / 2 - 3rem));
  width: min(14rem, 36vw);
  height: min(14rem, 36vw);
  background-image: var(--motif-network);
}

.page-products .page-hero::before { background-image: var(--motif-network); }
.page-products .section::after { background-image: var(--motif-branch); }

/* Product topic pages: unique hero vs content motifs; does not affect /products listing */
body:not(.page-home).page-product-aromatic .page-hero::before {
  background-image: var(--motif-branch);
  width: min(14rem, 36vw);
  height: min(13rem, 36vw);
}
body:not(.page-home).page-product-aromatic .section::after { background-image: var(--motif-chain); }

body:not(.page-home).page-product-hetero-aromatic .page-hero::before { background-image: var(--motif-branch); width: min(14rem, 36vw); height: min(13rem, 36vw); }
body:not(.page-home).page-product-hetero-aromatic .section::after { background-image: var(--motif-network); }

body:not(.page-home).page-product-aliphatic .page-hero::before { background-image: var(--motif-chain); width: min(16rem, 42vw); height: min(13rem, 36vw); }
body:not(.page-home).page-product-aliphatic .section::after { background-image: var(--motif-cage); }

body:not(.page-home).page-product-chemical .page-hero::before { background-image: var(--motif-network); width: min(14rem, 36vw); height: min(13rem, 36vw); }
body:not(.page-home).page-product-chemical .section::after {
  background-image: var(--motif-star);
  width: min(12rem, 32vw);
  height: min(12rem, 32vw);
}

body:not(.page-home).page-product-life-science .page-hero::before { background-image: var(--motif-cage); width: min(14rem, 36vw); height: min(13rem, 36vw); }
body:not(.page-home).page-product-life-science .section::after { background-image: var(--motif-branch); }

body:not(.page-home).page-product-chiral .page-hero::before {
  background-image: var(--motif-chain);
  width: min(16rem, 42vw);
  height: min(13rem, 36vw);
}
body:not(.page-home).page-product-chiral .section::after { background-image: var(--motif-network); }

body:not(.page-home).page-product-non-chiral .page-hero::before { background-image: var(--motif-branch); width: min(14rem, 36vw); height: min(13rem, 36vw); }
body:not(.page-home).page-product-non-chiral .section::after { background-image: var(--motif-chain); }

body:not(.page-home).page-product-reference-custom .page-hero::before { background-image: var(--motif-cage); width: min(14rem, 36vw); height: min(13rem, 36vw); }
body:not(.page-home).page-product-reference-custom .section::after {
  background-image: var(--motif-star);
  width: min(12rem, 32vw);
  height: min(12rem, 32vw);
}

.page-support .page-hero::before { background-image: var(--motif-chain); width: min(16rem, 42vw); height: min(13rem, 36vw); }
.page-support .section::after { background-image: var(--motif-network); }

body:not(.page-home).page-support-topic .section::before {
  content: "";
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  right: max(0.75rem, calc((100vw - var(--container)) / 2 - 3rem));
  width: min(14rem, 36vw);
  height: min(13rem, 36vw);
}

body.page-support-how-to-order .page-hero::before {
  background-image: var(--motif-star);
  width: min(12rem, 32vw);
  height: min(12rem, 32vw);
}
body.page-support-how-to-order .section::before { background-image: var(--motif-network); }
body.page-support-how-to-order .section::after { background-image: var(--motif-chain); }

body.page-support-shipping .page-hero::before { background-image: var(--motif-branch); width: min(14rem, 36vw); height: min(13rem, 36vw); }
body.page-support-shipping .section::before { background-image: var(--motif-cluster); }
body.page-support-shipping .section::after {
  background-image: var(--motif-star);
  width: min(12rem, 32vw);
  height: min(12rem, 32vw);
}

body.page-support-customer-service .page-hero::before { background-image: var(--motif-network); width: min(14rem, 36vw); height: min(13rem, 36vw); }
body.page-support-customer-service .section::before { background-image: var(--motif-chain); }
body.page-support-customer-service .section::after { background-image: var(--motif-cluster); }

body.page-support-quotation .page-hero::before {
  background-image: var(--motif-cluster);
  width: min(14rem, 36vw);
  height: min(13rem, 36vw);
}
body.page-support-quotation .section::before { background-image: var(--motif-branch); }
body.page-support-quotation .section::after { background-image: var(--motif-network); }

body.page-support-licensing .page-hero::before { background-image: var(--motif-chain); width: min(16rem, 42vw); height: min(13rem, 36vw); }
body.page-support-licensing .section::before { background-image: var(--motif-cluster); }
body.page-support-licensing .section::after { background-image: var(--motif-branch); }

.page-contact .page-hero::before { background-image: var(--motif-cluster); width: min(14rem, 36vw); height: min(13rem, 36vw); }
.page-contact .section::after { background-image: var(--motif-chain); }

.page-catalog-search .page-hero::before { background-image: var(--motif-network); width: min(14rem, 36vw); height: min(13rem, 36vw); }
.page-catalog-search .section::after { background-image: var(--motif-branch); width: min(14rem, 36vw); height: min(13rem, 36vw); }

.page-catalog-structure .page-hero::before { background-image: var(--motif-branch); width: min(14rem, 36vw); height: min(13rem, 36vw); }
.page-catalog-structure .section::after { background-image: var(--motif-cluster); width: min(14rem, 36vw); height: min(16rem, 40vw); }

.page-catalog-compound .section::after { background-image: var(--motif-branch); }

.page-privacy .page-hero::before { background-image: var(--motif-chain); width: min(16rem, 42vw); height: min(13rem, 36vw); }
.page-privacy .section::after { background-image: var(--motif-network); }

.page-terms .page-hero::before { background-image: var(--motif-cluster); width: min(14rem, 36vw); height: min(13rem, 36vw); }
.page-terms .section::after { background-image: var(--motif-star); width: min(12rem, 32vw); height: min(12rem, 32vw); }

.page-auth .page-hero::before { background-image: var(--motif-network); width: min(14rem, 36vw); height: min(13rem, 36vw); }
.page-auth .section::after { background-image: var(--motif-branch); }

body:not(.page-home).page-login .section::after,
body:not(.page-home).page-register .section::after {
  content: none;
}

body:not(.page-home).page-login .section::before,
body:not(.page-home).page-register .section::before {
  content: "";
  top: 50%;
  bottom: auto;
  right: auto;
  transform: translateY(-50%);
  left: max(0.5rem, calc((100vw - var(--container)) / 2 - 2.5rem));
  width: min(14rem, 36vw);
  height: min(13rem, 36vw);
}

body:not(.page-home).page-login .section::before {
  background-image: var(--motif-chain);
  width: min(16rem, 42vw);
  height: min(13rem, 36vw);
}

body:not(.page-home).page-register .section::before {
  background-image: var(--motif-branch);
}

body.page-register .page-hero::before {
  background-image: var(--motif-chain);
  width: min(16rem, 42vw);
  height: min(13rem, 36vw);
}

body.page-forgot-password .page-hero::before {
  background-image: var(--motif-cage);
  width: min(14rem, 36vw);
  height: min(14rem, 36vw);
}

.page-profile .narrow-form::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
  top: 30%;
  left: auto;
  right: calc(
    max(0.75rem, (100vw - var(--container)) / 2 - 3rem)
    - (100vw - 100%) / 2
  );
  width: min(14rem, 36vw);
  height: min(14rem, 36vw);
  background-image: var(--motif-cage);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top center;
  opacity: var(--motif-opacity);
}

.page-profile .narrow-form > * {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0 0 0.5rem;
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--ink-muted);
  max-width: 48ch;
  font-size: 1.05rem;
}

.deck-banner {
  position: relative;
  margin: 0 0 1.75rem;
}

/* Sit banner flush under page-hero and share the same wash so they feel one block */
.section:has(> .deck-banner:not(.deck-banner--inline)) {
  --page-hero-wash: #e7f4f1;
  padding-top: 0;
  background: var(--page-hero-wash);
}

.section:has(> .deck-banner:not(.deck-banner--inline)) > .container:first-child:has(.flash) {
  padding-block: 1rem;
}

.page-hero:has(+ .section > .deck-banner:not(.deck-banner--inline)),
.page-hero:has(+ .section > .container + .deck-banner:not(.deck-banner--inline)) {
  --page-hero-wash: #e7f4f1;
  border-bottom: 0;
  padding-bottom: 1.25rem;
  background:
    linear-gradient(120deg, rgba(23, 138, 128, 0.14) 0%, rgba(196, 92, 38, 0.06) 48%, transparent 78%),
    linear-gradient(180deg, #f4fbf9 0%, var(--page-hero-wash) 100%);
}

.section:has(> .deck-banner:not(.deck-banner--inline)) > .deck-banner:not(.deck-banner--inline) {
  margin-top: 0;
  margin-bottom: 2rem;
  background: var(--page-hero-wash, #e7f4f1);
  /* Even upward shadow in page-hero wash (both left and right) */
  box-shadow:
    0 -22px 36px rgba(231, 244, 241, 0.95),
    0 -10px 20px rgba(23, 138, 128, 0.1),
    0 -2px 6px rgba(23, 138, 128, 0.08);
}

/* Full-width fade so left matches the blended right join */
.section:has(> .deck-banner:not(.deck-banner--inline)) > .deck-banner:not(.deck-banner--inline)::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(4rem, 9vw, 6.5rem);
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    var(--page-hero-wash, #e7f4f1) 0%,
    rgba(231, 244, 241, 0.92) 22%,
    rgba(231, 244, 241, 0.55) 55%,
    rgba(231, 244, 241, 0.18) 78%,
    transparent 100%
  );
}

.deck-banner img {
  display: block;
  width: 100%;
  height: auto;
  /* Soft inset tint matching About Us wash across the full top edge */
  box-shadow: inset 0 72px 56px -28px var(--page-hero-wash, #e7f4f1);
}

/* Banner below page content (search tools / home copy stay first) */
.deck-banner--inline {
  margin: 2rem 0 0;
}

.deck-banner--inline img {
  box-shadow: none;
}

.page-home .deck-banner--inline {
  margin-top: 2.5rem;
}

.deck-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
}

.deck-gallery--dense {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.deck-gallery figure {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}

.deck-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.deck-gallery figcaption {
  padding: 0.55rem 0.75rem 0.7rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-muted);
}

/* Forms */
.form-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
}

.req {
  color: #b42318;
  font-weight: 700;
}

.field-error {
  font-size: 0.8rem;
  font-weight: 500;
  color: #b42318;
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #f0b4b4;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
  color: var(--ink);
}

.checkbox-row input[type="checkbox"] {
  width: auto;
  min-width: 1rem;
  margin: 0;
  accent-color: var(--brand);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(26, 122, 114, 0.35);
  border-color: var(--teal);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 2.75rem;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0;
}

.password-toggle:hover,
.password-toggle:focus {
  color: var(--brand);
  outline: none;
  background: rgba(10, 61, 58, 0.06);
}

.password-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.tab {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-muted);
}

.tab.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.structure-canvas {
  min-height: 280px;
  border: 1px dashed rgba(10, 61, 58, 0.28);
  border-radius: 12px;
  background:
    linear-gradient(180deg, #f8fbfa, #eef5f3),
    radial-gradient(circle at 50% 45%, rgba(26, 122, 114, 0.08), transparent 55%);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.structure-canvas svg {
  width: min(220px, 70%);
  color: var(--brand);
  opacity: 0.85;
  animation: floatMol 4.5s ease-in-out infinite;
}

@keyframes floatMol {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.structure-canvas p {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
}

/* Advanced structure search workspace */
.section-search-workspace {
  padding-top: 0.5rem;
}

.search-workspace {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.5rem;
}

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

.editor-shell {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #f7faf9;
}

.editor-toolbar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fcfefd, #eef5f3);
}

.editor-badge {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand);
}

.editor-hint {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.editor-hint.is-ok {
  color: var(--ok);
}

.editor-hint.is-err {
  color: var(--err);
}

.ocl-editor {
  min-height: 420px;
  height: 440px;
  width: 100%;
  background: #fff;
}

.ocl-editor > div,
.ocl-editor svg {
  max-width: 100%;
}

.editor-fallback-box,
.editor-fallback {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--ink-muted);
}

.scaffold-row {
  margin-top: 0.85rem;
}

.tool-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-muted);
  margin-right: 0.25rem;
}

.notation-label {
  margin-top: 1rem;
}

.notation-label textarea {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88rem;
  resize: vertical;
  min-height: 4.5rem;
}

.field-note {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.register-notice {
  margin: 0 0 1.15rem;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(10, 61, 58, 0.06), rgba(243, 246, 245, 0.9));
}

.register-notice-title {
  margin: 0 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brand);
}

.register-notice p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

.form-section-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brand);
}

.search-controls {
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1rem;
}

.match-modes {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.match-modes legend {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 0.45rem;
  width: 100%;
}

.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-muted);
  cursor: pointer;
  background: #fff;
}

.radio-chip input {
  width: auto;
  margin: 0;
  accent-color: var(--teal);
}

.radio-chip:has(input:checked) {
  background: var(--teal-soft);
  border-color: rgba(26, 122, 114, 0.45);
  color: var(--brand);
}

.form-row-3 {
  grid-template-columns: repeat(3, 1fr);
}

.search-actions {
  margin-top: 0.25rem;
}

.results-panel {
  position: sticky;
  top: calc(var(--header-h) + 1rem);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #fbfdfc, #f3f8f6);
  padding: 1rem;
  min-height: 320px;
}

.results-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}

.results-panel-head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.results-count {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}

.results-panel-sub {
  margin: 0.35rem 0 0.9rem;
  font-size: 0.86rem;
  color: var(--ink-muted);
}

.live-results {
  display: grid;
  gap: 0.75rem;
  max-height: min(70vh, 720px);
  overflow: auto;
  padding-right: 0.15rem;
}

.live-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
}

.live-result-card {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 0.75rem;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.2s, transform 0.2s;
}

.live-result-card:hover {
  border-color: rgba(26, 122, 114, 0.45);
  transform: translateY(-1px);
}

.live-result-struct {
  display: grid;
  place-items: center;
  background: #f8fbfa;
  border-radius: 10px;
  min-height: 96px;
  overflow: hidden;
}

.live-result-struct svg {
  width: 100%;
  height: auto;
}

.struct-placeholder {
  font-size: 0.8rem;
  color: var(--ink-muted);
  padding: 0.5rem;
  text-align: center;
}

.live-result-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: start;
}

.live-result-name {
  font-weight: 700;
  color: var(--brand);
  text-decoration: none;
}

.live-result-name:hover {
  color: var(--teal);
}

.score-pill {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
}

.live-result-meta {
  margin-top: 0.2rem;
  font-size: 0.78rem;
  color: var(--ink-muted);
}

.live-result-actions {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.live-result-tags {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}

.live-result-smiles {
  margin-top: 0.45rem;
  font-size: 0.72rem;
  color: var(--ink-muted);
  word-break: break-all;
}

.empty-state.compact {
  padding: 1.5rem 0.75rem;
  text-align: center;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

@media (max-width: 1024px) {
  .search-layout {
    grid-template-columns: 1fr;
  }

  .results-panel {
    position: static;
  }

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

  .live-result-card {
    grid-template-columns: 100px 1fr;
  }

  .ocl-editor {
    min-height: 360px;
    height: 380px;
  }
}

/* Results */
.results-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.results-meta h2 {
  margin: 0;
  font-size: 1.2rem;
}

.result-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

table.results {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

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

table.results th {
  background: rgba(10, 61, 58, 0.05);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
}

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

table.results a {
  font-weight: 600;
  text-decoration: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 600;
  margin: 0.1rem 0.15rem 0.1rem 0;
}

.score {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
}

/* Compound detail */
.compound-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}

.mol-preview {
  min-height: 320px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 40%, rgba(196, 92, 38, 0.12), transparent 50%),
    linear-gradient(160deg, #fff, #eef5f3);
  display: grid;
  place-items: center;
  padding: 1.5rem;
}

.mol-preview svg {
  width: min(100%, 320px);
  height: auto;
  max-height: 280px;
}

.mol-preview-fallback {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.95rem;
  text-align: center;
}

.prop-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prop-list li {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

.prop-list strong {
  color: var(--ink-muted);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  word-break: break-all;
}

/* Browse grid */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.compound-link {
  display: block;
  padding: 1.1rem 1.15rem;
  border-top: 2px solid var(--brand);
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.55);
  transition: background 0.2s, transform 0.15s;
}

.compound-link:hover {
  background: #fff;
  transform: translateY(-2px);
  color: inherit;
}

.compound-link h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.compound-link p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.price-plan {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-elevated);
}

.price-plan.featured {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.price-plan h3 {
  margin: 0 0 0.35rem;
}

.price {
  font-family: var(--serif);
  font-size: 2.4rem;
  margin: 0.5rem 0 1rem;
  letter-spacing: -0.02em;
}

.price span {
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--ink-muted);
}

.price-plan ul {
  margin: 0 0 1.25rem;
  padding-left: 1.1rem;
  color: var(--ink-muted);
}

/* Auth */
.auth-wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

.auth-wrap h1 {
  font-family: var(--serif);
  margin: 0 0 0.35rem;
}

.auth-wrap > p {
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
}

.auth-links {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--ink-muted);
}

.auth-links a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* Docs / legal */
.prose {
  max-width: 48rem;
}

.home-about .prose,
.page-about .prose {
  max-width: 70rem;
}

.home-about .read-more {
  font-weight: 700;
  white-space: nowrap;
}

.prose h2 {
  font-family: var(--serif);
  margin: 2rem 0 0.75rem;
  font-size: 1.5rem;
}

.prose h3 {
  margin: 1.5rem 0 0.5rem;
}

.prose p,
.prose li {
  color: var(--ink-muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.contact-list {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.contact-list li {
  margin: 0 0 0.55rem;
}

.ruo-note {
  margin-top: 1.5rem;
  padding: 0.95rem 1.1rem;
  border-left: 3px solid var(--brand);
  background: rgba(10, 61, 58, 0.06);
  color: var(--ink);
}

.catalog-intro {
  margin-bottom: 1.75rem;
}

.prose.catalog-intro {
  max-width: 70rem;
}

.catalog-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 2.5rem;
}

.catalog-jump a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--brand);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
}

.catalog-jump a:hover {
  background: rgba(10, 61, 58, 0.08);
}

.catalog-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.catalog-breadcrumb a {
  color: var(--brand);
  text-decoration: none;
}

.catalog-breadcrumb a:hover {
  text-decoration: underline;
}

.catalog-group-title {
  font-family: var(--serif);
  font-size: 1.7rem;
  margin: 0 0 1.25rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.catalog-block {
  margin-bottom: 2.75rem;
}

.catalog-block h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  margin: 0 0 1rem;
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.catalog-block h2 a {
  color: inherit;
  text-decoration: none;
}

.catalog-block h2 a:hover {
  color: var(--brand);
}

.product-card-grid {
  --product-card-orange: #ed7d31;
  --product-card-teal: #008b8b;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.7rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-card-grid > li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.9rem;
  background: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  letter-spacing: 0.01em;
  color: var(--product-card-orange);
  border: 1px solid var(--product-card-orange);
  border-bottom: 5px solid var(--product-card-orange);
  border-radius: 10px 10px 0 0;
  overflow-wrap: anywhere;
}

.product-card-grid > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: inherit;
  color: inherit;
  text-decoration: none;
}

.product-card-grid > li:nth-child(5n + 2),
.product-card-grid > li:nth-child(5n + 4) {
  color: var(--product-card-teal);
  border-color: var(--product-card-teal);
}

.support-prose {
  max-width: 52rem;
}

.support-prose h2,
.support-prose h3,
.support-prose h4 {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.support-prose h4 {
  margin: 1.15rem 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 650;
}

.policy-meta {
  margin: 0 0 0.85rem;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.support-table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.25rem;
}

.support-table {
  width: 100%;
  min-width: 28rem;
  border-collapse: collapse;
  background: var(--bg-elevated);
}

.support-table th,
.support-table td {
  text-align: left;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.92rem;
}

.support-table th {
  font-weight: 600;
  background: rgba(10, 61, 58, 0.06);
}

.code-block {
  background: var(--brand-deep);
  color: #e8f2f0;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* Dashboard */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat {
  padding: 1.1rem 1.2rem;
  border-top: 2px solid var(--accent);
  background: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  color: inherit;
  display: block;
}

a.stat:hover {
  background: rgba(255, 255, 255, 0.95);
}

.stat strong {
  display: block;
  font-size: 1.8rem;
  font-family: var(--serif);
  letter-spacing: -0.02em;
}

.stat span {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

/* App / admin shell — replaced by dedicated panel layouts below */
.header-user {
  font-size: 0.85rem;
  color: var(--ink-muted);
  align-self: center;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Separate Dashboard / Admin panels */
.panel-shell {
  display: grid;
  grid-template-columns: 16.5rem 1fr;
  min-height: 100vh;
  background: var(--brand-deep);
}

.panel-shell-admin {
  background: var(--brand-deep);
}

.panel-sidebar {
  background: var(--brand-deep);
  color: rgba(247, 250, 249, 0.86);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem 1.5rem;
  position: sticky;
  top: 0;
  align-self: start;
  min-height: 100vh;
  min-height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  overflow-y: auto;
}

.panel-brand a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  padding: 0.25rem 0.35rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}

.panel-brand a.brand-logo-link {
  padding-bottom: 0.65rem;
  border-bottom: 0;
  margin-bottom: 0;
}

.panel-brand-mark {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.panel-brand-mark-admin {
  background: rgba(196, 92, 38, 0.35);
}

.panel-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.panel-brand-text strong {
  font-size: 1rem;
}

.panel-brand-text small {
  color: rgba(247, 250, 249, 0.55);
  font-size: 0.78rem;
}

.panel-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
}

.panel-nav-label {
  margin: 1rem 0 0.35rem;
  padding: 0 0.65rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(247, 250, 249, 0.45);
}

.panel-nav a {
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: rgba(247, 250, 249, 0.82);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.panel-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.panel-nav a.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.panel-nav-external {
  border: 1px dashed rgba(255, 255, 255, 0.22);
}

.panel-sidebar-foot {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.panel-sidebar-foot a {
  color: rgba(247, 250, 249, 0.65);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 0.35rem 0.65rem;
}

.panel-sidebar-foot a:hover {
  color: #fff;
}

.panel-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
  background: #eef3f2;
}

.panel-shell[data-panel="admin"] .panel-main {
  background: #f0eeec;
}

.panel-topbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
}

.panel-topbar-title {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.panel-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
}

.panel-topbar-title strong {
  font-size: 1.05rem;
}

.panel-topbar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.panel-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  padding: 0.55rem;
}

.panel-menu-toggle span {
  display: block;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
}

.panel-content {
  flex: 1;
  padding: 1.5rem 1.75rem 2rem;
}

.panel-page {
  max-width: 1100px;
}

.panel-page-head {
  margin-bottom: 1.5rem;
}

.panel-page-head h1 {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.5vw, 2.1rem);
  letter-spacing: -0.02em;
}

.panel-page-head p {
  margin: 0;
  color: var(--ink-muted);
}

.panel-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 0.85rem;
  color: var(--ink-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.panel-back-link:hover {
  color: var(--brand);
}

.panel-page-head--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.panel-page-head-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.panel-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.panel-page-actions .inline-form {
  margin: 0;
}

@media (max-width: 640px) {
  .panel-page-head--split {
    flex-direction: column;
  }

  .panel-page-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.panel-footer {
  padding: 1rem 1.75rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}

.layout-dashboard .search-workspace {
  margin-top: 0;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.badge-status-pending {
  background: rgba(196, 92, 38, 0.15);
  color: #9a4a1c;
}

.badge-status-approved {
  background: rgba(26, 122, 114, 0.15);
  color: var(--brand);
}

.badge-status-rejected {
  background: rgba(155, 44, 44, 0.12);
  color: #9b2c2c;
}

.compound-title-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.compound-title-row h1 {
  margin: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}

.status-chip-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: currentColor;
}

.status-chip--pending {
  background: var(--accent-soft);
  color: #9a4a1c;
  border: 1px solid rgba(196, 92, 38, 0.35);
}

.status-chip--approved {
  background: var(--teal-soft);
  color: var(--brand);
  border: 1px solid rgba(26, 122, 114, 0.35);
}

.compound-status-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid;
  margin: -0.35rem 0 1.5rem;
  flex-wrap: wrap;
}

.compound-status-banner--pending {
  background: rgba(196, 92, 38, 0.08);
  border-color: rgba(196, 92, 38, 0.28);
}

.compound-status-banner--approved {
  background: rgba(26, 122, 114, 0.08);
  border-color: rgba(26, 122, 114, 0.28);
}

.compound-status-banner-copy {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}

.compound-status-banner-copy strong {
  font-size: 0.95rem;
}

.compound-status-banner-copy span {
  color: var(--ink-muted);
  font-size: 0.875rem;
}

/* Account dropdown */
.account-menu {
  position: relative;
}

.account-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.28rem 0.7rem 0.28rem 0.28rem;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}

.account-avatar {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

.account-menu-label {
  max-width: 8rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  font-weight: 500;
}

.account-caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--ink-muted);
  transition: transform 0.15s ease;
}

.account-menu.is-open .account-caret {
  transform: rotate(180deg);
}

.account-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  min-width: 14rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(10, 40, 36, 0.12);
  padding: 0.45rem;
  z-index: 50;
}

.account-menu-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem 0.7rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.35rem;
}

.account-menu-meta strong {
  font-size: 0.92rem;
}

.account-menu-meta span {
  color: var(--ink-muted);
  font-size: 0.78rem;
}

.account-menu-panel a {
  display: block;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}

.account-menu-panel a:hover {
  background: rgba(10, 61, 58, 0.06);
}

.account-menu-danger {
  color: #9b2c2c !important;
}

.panel-topbar-user .account-menu-toggle {
  background: rgba(255, 255, 255, 0.92);
}

.profile-wrap {
  max-width: 34rem;
}

.profile-summary {
  margin-bottom: 1rem;
  display: grid;
  gap: 0.65rem;
}

.profile-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.profile-summary-row span {
  color: var(--ink-muted);
}

.admin-count {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.admin-table-wrap--menus {
  overflow: visible;
}

.admin-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.95rem;
}

.admin-table th,
.admin-table td {
  position: relative;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 0;
  vertical-align: middle;
  background-clip: padding-box;
}

.admin-table th::after,
.admin-table td::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
  pointer-events: none;
  z-index: 2;
}

.admin-table select {
  width: auto;
  max-width: 100%;
  min-width: 6.5rem;
  padding: 0.4rem 0.55rem;
}

.admin-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-muted);
  background: rgba(10, 61, 58, 0.04);
}

.admin-table tbody tr:last-child td::after {
  content: none;
}

.admin-actions {
  text-align: right;
  white-space: nowrap;
}

/* Row actions dropdown */
.action-menu {
  position: relative;
  display: inline-flex;
}

.action-menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.action-menu-caret {
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.7;
}

.action-menu-panel {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: 0;
  min-width: 9.5rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  z-index: 30;
  display: grid;
  gap: 0.1rem;
}

.action-menu-panel[hidden] {
  display: none;
}

.action-menu-panel a,
.action-menu-panel button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
}

.action-menu-panel a:hover,
.action-menu-panel button:hover {
  background: rgba(10, 61, 58, 0.06);
}

.action-menu-panel form {
  margin: 0;
}

.action-menu-danger {
  color: #9b2c2c !important;
}

.action-menu-danger:hover {
  background: rgba(155, 44, 44, 0.08) !important;
}

.admin-table tbody tr:nth-last-child(-n+2) .action-menu-panel {
  top: auto;
  bottom: calc(100% + 0.35rem);
}

.inline-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
  max-width: 100%;
}

.role-form {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.role-form select {
  min-width: 5.5rem;
  padding: 0.3rem 0.45rem;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: inherit;
}

.btn-danger {
  color: #9b2c2c;
}

.empty-cell {
  color: var(--ink-muted);
  text-align: center;
  padding: 1.5rem !important;
}

.narrow-form {
  max-width: 44rem;
}

.compound-form-wrap {
  max-width: 56rem;
}

.packaging-heading {
  margin: 1.5rem 0 0.75rem;
  font-size: 1rem;
  color: var(--brand);
}

.packaging-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.packaging-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

.packaging-table th,
.packaging-table td {
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.packaging-table th {
  background: rgba(10, 61, 58, 0.04);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.packaging-table tr:last-child td {
  border-bottom: none;
}

.packaging-table input,
.packaging-table select {
  margin: 0;
  padding: 0.45rem 0.55rem;
}

.document-upload-grid {
  display: grid;
  gap: 1rem;
}

.document-upload {
  display: grid;
  gap: 0.4rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

input[type="date"].date-input-open {
  cursor: pointer;
}

.packaging-custom-size::placeholder {
  color: var(--ink-muted);
  opacity: 0.85;
}

.compound-docs {
  margin-top: 1.25rem;
}

.compound-docs h3 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: var(--brand);
}

.doc-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.doc-list a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: none;
}

.doc-list a:hover {
  text-decoration: underline;
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.admin-form .field-note {
  margin: -0.35rem 0 0.5rem;
}

.disclaimer-banner {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(10, 61, 58, 0.12);
  background: rgba(10, 61, 58, 0.06);
}

.disclaimer-scroll {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: disclaimer-marquee var(--disclaimer-duration, 28s) linear infinite;
}

.disclaimer-group {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.disclaimer-text {
  margin: 0;
  padding: 0.85rem 2.5rem;
  white-space: nowrap;
  font-size: 0.92rem;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: #1d2d2d;
}

@keyframes disclaimer-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(var(--disclaimer-distance, -50%), 0, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .disclaimer-scroll {
    animation: none;
  }
}

@media (max-width: 720px) {
  .disclaimer-text {
    font-size: 0.8rem;
    padding: 0.7rem 1.5rem;
  }

  .hero::before,
  .hero::after,
  .page-hero::before,
  .page-hero::after,
  .section::before,
  .section::after,
  .page-profile .narrow-form::before,
  .site-footer::before,
  .site-footer::after {
    opacity: 0.1;
  }

  body:not(.page-home) .page-hero::before {
    opacity: 0.4;
  }

  .hero::before,
  .hero::after,
  .site-footer::before,
  .site-footer::after,
  .footer-grid::after {
    opacity: 0.2;
  }

  .hero::before,
  .footer-grid::after {
    opacity: 0.5;
    mix-blend-mode: normal;
  }

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

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-grid::after {
    top: auto;
    bottom: 0.15rem;
    right: 0;
    width: min(5.25rem, 22vw);
    height: min(8rem, 34vw);
  }
}

/* Footer */
.site-footer {
  position: relative;
  overflow: hidden;
  margin-top: 0;
  background:
    radial-gradient(620px 280px at 12% 0%, rgba(23, 138, 128, 0.45), transparent 60%),
    radial-gradient(520px 260px at 92% 100%, rgba(196, 92, 38, 0.22), transparent 55%),
    linear-gradient(165deg, #12665f 0%, #0a3d3a 48%, #0c4a45 100%);
  color: rgba(247, 250, 249, 0.82);
  padding-top: 1.25rem;
}

.site-footer::before {
  content: none;
}

.site-footer::after {
  content: none;
}

.footer-grid::after {
  top: auto;
  left: auto;
  right: -1.25rem;
  bottom: 0.5rem;
  width: min(7.5rem, 20vw);
  height: min(11.5rem, 30vw);
  background-image: var(--motif-helix);
  background-position: bottom center;
  opacity: 0.5;
  mix-blend-mode: normal;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.brand-footer {
  color: #fff;
  margin-bottom: 0.75rem;
}

.brand-footer .brand-sub {
  color: rgba(247, 250, 249, 0.55);
}

.footer-brand p {
  margin: 0;
  width: 100%;
  max-width: 100%;
}

.footer-col h3 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col {
  min-width: 0;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  display: block;
  color: rgba(247, 250, 249, 0.72);
  text-decoration: none;
  padding: 0.2rem 0;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1rem 0;
  font-size: 0.88rem;
}

.footer-bottom p {
  margin: 0;
}

.empty-state {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--ink-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: end;
}

.filter-bar label {
  min-width: 140px;
}

/* Responsive */
@media (max-width: 1024px) {
  :root {
    --header-nav-h: 68px;
    --header-search-h: 56px;
  }

  html,
  body {
    overflow-x: clip;
  }

  body.is-panel-locked {
    overflow: hidden;
  }

  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
  }

  body:has(.site-header) {
    padding-top: var(--header-h);
  }

  .feature-list,
  .pricing-grid,
  .compound-layout,
  .catalog-compound-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem 1.25rem;
    padding-bottom: 1.75rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .brand-logo--footer {
    width: 8.5rem;
    margin-bottom: 0.6rem;
  }

  .footer-grid::after {
    top: auto;
    bottom: 0.15rem;
    right: 0;
    width: min(6.25rem, 18vw);
    height: min(9.5rem, 28vw);
  }

  .product-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
  }

  .deck-gallery--dense {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card-grid > li {
    min-height: 2.55rem;
    font-size: 0.84rem;
  }

  .product-card-grid > li:nth-child(5n + 2),
  .product-card-grid > li:nth-child(5n + 4) {
    color: var(--product-card-orange);
    border-color: var(--product-card-orange);
  }

  .product-card-grid > li:nth-child(3n + 2) {
    color: var(--product-card-teal);
    border-color: var(--product-card-teal);
  }

  .price-plan.featured {
    transform: none;
  }

  .header-inner--main {
    min-height: var(--header-nav-h);
    gap: 0.75rem;
  }

  .header-inner--search {
    gap: 0.5rem;
  }

  .header-search input[type="search"] {
    height: 40px;
    font-size: 0.92rem;
  }

  .brand-logo--header {
    width: 6.25rem;
  }
	
  .nav-toggle {
    display: flex;
  }

  .header-menus {
    display: none;
    margin-left: 0;
  }

  .site-header.is-open .header-menus {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;	  
    position: fixed;
    left: 0;
    right: 0;
    top: var(--header-h);
    background: rgba(247, 251, 250, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem 1rem;
    max-height: calc(100dvh - var(--header-h));
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
  }
	
  .site-header.is-open .primary-nav {
    flex-direction: column;
    align-items: stretch;
  }

  .site-header.is-open .primary-nav > a,
  .site-header.is-open .nav-drop-toggle {
    padding: 0.7rem 0.85rem;
  }

  .site-header.is-open .nav-drop-heading {
    display: flex;
    width: 100%;
    border-radius: 10px;
  }

  .site-header.is-open .nav-drop-toggle {
    flex: 1;
    min-width: 0;
    border-radius: 10px 0 0 10px;
  }

  .site-header.is-open .nav-drop-expand {
    flex-shrink: 0;
    width: 2.75rem;
    min-height: 2.75rem;
    padding: 0;
    border-left: 1px solid rgba(14, 42, 38, 0.1);
    border-radius: 0 10px 10px 0;
  }

  .site-header.is-open .nav-drop-item-row {
    width: 100%;
  }

  .site-header.is-open .nav-sub-expand {
    width: 2.75rem;
    min-height: 2.5rem;
    padding: 0;
    border-left: 1px solid rgba(14, 42, 38, 0.08);
  }

  .site-header.is-open .nav-drop-menu,
  .site-header.is-open .nav-sub-menu {
    display: none;
    position: static;
    min-width: 0;
    margin: 0.15rem 0 0.35rem 0.75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  .site-header.is-open .nav-drop.is-open > .nav-drop-menu,
  .site-header.is-open .nav-drop-item.is-open > .nav-sub-menu {
    display: block;
  }

  .site-header.is-open .nav-drop-item.is-open > .nav-drop-item-row .nav-sub-caret {
    transform: rotate(90deg);
  }

  .site-header.is-open .nav-drop.is-open > .nav-drop-heading .nav-drop-caret {
    transform: rotate(180deg);
  }

  .site-header.is-open .header-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid var(--line);
  }

  .site-header.is-open .header-actions .btn,
  .site-header.is-open .account-menu,
  .site-header.is-open .account-menu-toggle {
    width: 100%;
    justify-content: center;
  }

  .site-header.is-open .account-menu-toggle {
    gap: 0.55rem;
    padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  }

  .site-header.is-open .account-caret {
    display: inline-block;
  }

  .site-header.is-open .account-menu-panel {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: 100%;
    min-width: 0;
    margin-top: 0.5rem;
    box-shadow: none;
  }

  .form-row,	
  .form-row-2 {
    grid-template-columns: 1fr;
  }

  .header-user {
    display: none;
  }

  .account-menu-label {
    max-width: 6rem;
  }

  .admin-table-wrap--menus {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-table {
    min-width: 42rem;
  }	

  .panel-shell {
    grid-template-columns: 1fr;
  }

  .panel-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: min(17rem, 86vw);
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
    min-height: 100dvh;
    max-height: 100dvh;	  
  }

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

  .panel-shell.is-sidebar-open::after {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(10, 30, 28, 0.35);
    z-index: 30;
  }

  .panel-menu-toggle {
    display: flex;
    width: 2.75rem;
    height: 2.75rem;
  }

  .panel-main {
    padding-top: 4.35rem;
  }

  .panel-content {
    padding: 1.15rem 1rem 1.75rem;
  }

  .panel-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 25;
    padding: 0.75rem 1rem;
    gap: 0.65rem;
  }

  .panel-topbar-title strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .panel-footer {
    padding: 1rem;	  
  }

  .prop-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .search-workspace {
    padding: 1rem;
  }

  .editor-toolbar-meta {
    flex-wrap: wrap;
  }

  .editor-shell {
    overflow-x: auto;
  }
}

@media (max-width: 640px) {
  :root {
    --header-search-h: 7.35rem;
  }

  .hero-content {
    padding: 1.5rem 0 2.6rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .header-inner--search {
    flex-wrap: wrap;
  }

  .header-search {
    flex: 1 1 100%;
  }

  .header-structure-btn {
    width: 100%;
  }

  .section {
    padding: 2.75rem 0;
  }

  .page-hero {
    padding: 2rem 0 1.5rem;
  }

  .product-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .deck-gallery,
  .deck-gallery--dense {
    grid-template-columns: 1fr;
  }

  .product-card-grid > li {
    min-height: 2.45rem;
    padding: 0.35rem 0.65rem;
    font-size: 0.82rem;
  }

  .product-card-grid > li:nth-child(3n + 2),
  .product-card-grid > li:nth-child(5n + 2),
  .product-card-grid > li:nth-child(5n + 4) {
    color: var(--product-card-orange);
    border-color: var(--product-card-orange);
  }

  .product-card-grid > li:nth-child(even) {
    color: var(--product-card-teal);
    border-color: var(--product-card-teal);
  }

  .form-panel {
    padding: 1.15rem;
  }

  .account-menu-label {
    display: none;
  }

  .panel-topbar-user .account-caret {
    display: none;
  }

  .account-menu-toggle {
    padding: 0.28rem;
  }

  .panel-topbar-user .account-menu-toggle {
    padding: 0.28rem;
  }

  .search-actions,
  .tool-row.search-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .search-actions .btn {
    width: 100%;
  }

  .filter-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .filter-bar label {
    min-width: 0;
    width: 100%;
  }

  .filter-bar .btn {
    width: 100%;
  }

  .ocl-editor {
    min-height: 280px;
    height: 300px;
  }

  .live-result-card {
    grid-template-columns: 1fr;
  }

  .confirm-dialog-actions {
    flex-direction: column-reverse;
  }

  .confirm-dialog-actions .btn {
    width: 100%;
  }

  .pager {
    gap: 0.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Laravel panel form helpers */
.panel-sidebar-foot form,
.account-menu-panel form { margin: 0; }
.panel-sidebar-foot .linkish,
.account-menu-panel button.account-menu-danger {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  width: 100%;
}
.account-menu-panel button.account-menu-danger {
  padding: 0.55rem 0.85rem;
  color: #9b1c1c;
}

/* Confirm delete dialog */
.confirm-dialog[hidden] {
  display: none !important;
}

.confirm-dialog {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1rem;
  overscroll-behavior: none;
  width: 100%;
  max-width: 100%;
}

.confirm-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 24, 22, 0.48);
}

.confirm-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 26rem);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(6, 40, 37, 0.22);
  padding: 1.35rem 1.4rem 1.25rem;
}

.confirm-dialog-panel h2 {
  margin: 0 0 0.55rem;
  font-size: 1.2rem;
  color: var(--brand);
}

.confirm-dialog-panel p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.5;
}

.confirm-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  margin-top: 1.25rem;
}

.btn-danger-solid {
  background: #9b2c2c;
  border-color: #9b2c2c;
  color: #fff;
}

.btn-danger-solid:hover {
  background: #7f2323;
  border-color: #7f2323;
  color: #fff;
}

/* Pagination */
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 1.5rem 0 0.5rem;
}

.pager-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.pager-btn:hover {
  background: var(--teal-soft);
}

.pager-btn.is-current {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.pager-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.pager-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 0.35rem;
  color: var(--ink-muted);
}

.pager-meta {
  margin: 0.75rem 0 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-muted);
}
