/* ============================================================
   BioOPSS / BNY — 2026 portal redesign
   Editorial life-science portal · IBM Plex stack
   ============================================================ */

:root {
  /* Type */
  --font-sans: "IBM Plex Sans", "IBM Plex Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --font-serif: "IBM Plex Serif", Georgia, serif;

  /* Color — warm clinical neutral */
  --bg:        oklch(98% 0.006 95);
  --bg-tinted: oklch(96% 0.008 95);
  --surface:   oklch(100% 0 0);
  --ink:       oklch(20% 0.015 250);
  --fg:        oklch(24% 0.016 250);
  --muted:     oklch(50% 0.018 250);
  --faint:     oklch(74% 0.012 250);
  --border:    oklch(90% 0.008 250);
  --hairline:  oklch(93% 0.006 250);

  --blue:      oklch(52% 0.13 235);
  --blue-soft: oklch(94% 0.025 235);
  --green:     oklch(60% 0.12 145);
  --green-soft: oklch(94% 0.03 145);

  --accent:    var(--blue);
  --accent-soft: var(--blue-soft);
  --accent-2:  var(--green);

  /* Scale */
  --container: 1280px;
  --gutter: 32px;
  --rule: 1px solid var(--hairline);
  --radius: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-sans);
  color: var(--fg);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: "ss01" 1, "tnum" 1, "liga" 1;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5 {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.container-wide {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule { border: 0; border-top: var(--rule); margin: 0; }

/* monospace eyebrow / data tag */
.mono {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mono-tight {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Header
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in oklch, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: var(--rule);
}

.header-utility {
  border-bottom: var(--rule);
  font-size: 12px;
  color: var(--muted);
}
.header-utility .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
  gap: 24px;
  white-space: nowrap;
  overflow: hidden;
}
.header-utility .util-left,
.header-utility .util-right {
  display: flex;
  gap: 22px;
  align-items: center;
  white-space: nowrap;
}
.header-utility .util-right a:hover { color: var(--ink); }
.header-utility .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); display: inline-block; margin-right: 6px;
}

.header-main .container {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}
.brand-mark {
  width: 30px;
  height: 44px;
  background: url("/static/img/brand-logo.svg") center / contain no-repeat;
  flex: 0 0 auto;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.brand-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
}
.nav button {
  background: transparent;
  border: 0;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--fg);
  border-radius: var(--radius);
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.nav button:hover { color: var(--ink); background: var(--bg-tinted); }
.nav button.active { color: var(--ink); background: var(--bg-tinted); }
.nav button.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: -2px;
  height: 2px;
  background: var(--accent);
}
.nav .chev {
  width: 7px; height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.55;
}

.header-search {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius);
  width: 260px;
}
.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 14%, transparent);
}
.header-search input {
  flex: 1 1 auto;
  border: 0;
  background: transparent;
  outline: 0;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  min-width: 0;
}
.header-search input::placeholder { color: var(--faint); }
.header-search .kbd {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 5px;
  border: var(--rule);
  border-radius: 3px;
  color: var(--muted);
  background: var(--bg-tinted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.icon-btn {
  width: 36px; height: 36px;
  border: var(--rule);
  background: var(--surface);
  border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--fg);
  position: relative;
}
.icon-btn:hover { border-color: var(--ink); color: var(--ink); }
.icon-btn .badge {
  position: absolute; top: -5px; right: -5px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  height: 16px; min-width: 16px; padding: 0 4px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500;
}

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  background: var(--ink);
  color: var(--surface);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
  letter-spacing: 0;
  white-space: nowrap;
}
.btn:hover { background: color-mix(in oklch, var(--ink) 88%, black); transform: translateY(-1px); }
.btn .arrow {
  width: 16px; height: 16px;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn .arrow::after {
  content: "→";
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1;
}

.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--bg-tinted); border-color: var(--ink); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid transparent;
}
.btn-ghost:hover { background: var(--bg-tinted); }

.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover { background: color-mix(in oklch, var(--accent) 86%, black); border-color: color-mix(in oklch, var(--accent) 86%, black); }

.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 64px 0 0;
  overflow: hidden;
  border-bottom: var(--rule);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 80px 80px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

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

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 56px;
  flex-wrap: wrap;
  gap: 16px;
}
.hero-top .crumb {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.hero-top .crumb .sep {
  width: 18px; height: 1px; background: currentColor; opacity: 0.4;
}
.hero-top .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.hero-top .meta strong {
  color: var(--ink); font-weight: 500;
}

.hero-headline {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 60px;
}

.hero-h1 {
  font-size: clamp(40px, 4.4vw, 68px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.022em;
  color: var(--ink);
  margin: 0;
  font-feature-settings: "ss01" 1;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.hero-h1 .line {
  display: block;
}
.hero-h1 .accent-mark {
  color: var(--accent);
  font-style: normal;
}
.hero-h1 .em { font-style: normal; font-weight: 500; }

.hero-right {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-bottom: 6px;
}
.hero-lede {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  max-width: 440px;
  margin: 0;
}
.hero-cta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-canvas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 0;
  border-top: var(--rule);
}

.hero-canvas-left {
  position: relative;
  padding: 36px 56px 36px 0;
  border-right: var(--rule);
}
.hero-canvas-right {
  padding: 36px 0 36px 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.kpi {
  padding: 22px 28px;
  border-right: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kpi:last-child { border-right: 0; }
.kpi-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.kpi-value {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 32px;
  line-height: 1.1;
  color: var(--ink);
  font-weight: 500;
}
.kpi-value sub {
  font-size: 13px;
  color: var(--muted);
  margin-left: 4px;
  vertical-align: baseline;
}
.kpi-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

/* ============================================================
   Lab visual — microplate
   ============================================================ */

.lab-card {
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.lab-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-bottom: var(--rule);
  background: var(--bg-tinted);
}
.lab-card-title {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
}
.lab-card-status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--green);
}
.lab-card-status .pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 color-mix(in oklch, var(--green) 50%, transparent);
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in oklch, var(--green) 50%, transparent); }
  50% { box-shadow: 0 0 0 6px transparent; }
}
.lab-card-body { padding: 24px; }

.plate {
  display: grid;
  grid-template-columns: 18px repeat(12, 1fr);
  grid-template-rows: 18px repeat(8, 1fr);
  gap: 6px;
  align-items: center;
  justify-items: center;
}
.plate .lbl {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--faint);
}
.plate .well {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--bg-tinted);
  box-shadow: inset 0 0 0 1px var(--border);
  position: relative;
}
.plate .well.on {
  background: radial-gradient(circle at 32% 32%,
    color-mix(in oklch, var(--accent) 20%, white) 0%,
    var(--accent) 70%);
  box-shadow:
    inset 0 0 0 1px color-mix(in oklch, var(--accent) 70%, black),
    0 0 8px color-mix(in oklch, var(--accent) 30%, transparent);
}
.plate .well.warm {
  background: radial-gradient(circle at 32% 32%,
    color-mix(in oklch, var(--green) 25%, white) 0%,
    var(--green) 70%);
  box-shadow:
    inset 0 0 0 1px color-mix(in oklch, var(--green) 70%, black),
    0 0 8px color-mix(in oklch, var(--green) 30%, transparent);
}
.plate .well.dim {
  background: color-mix(in oklch, var(--accent) 8%, var(--bg-tinted));
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--accent) 18%, var(--border));
}

/* signal graph card */
.signal-card {
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.signal-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 16px;
  border-bottom: var(--rule);
  background: var(--bg-tinted);
}
.signal-card .head-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.signal-card .head-value { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.signal-svg-wrap { padding: 14px 16px; }
.signal-svg { width: 100%; height: 110px; display: block; }

.spec-list {
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 0;
}
.spec-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  padding: 12px 16px;
  border-bottom: var(--rule);
  font-size: 13px;
}
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.spec-row dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }

/* ============================================================
   Sections
   ============================================================ */

.section {
  padding: 96px 0;
  border-bottom: var(--rule);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 48px;
  margin-bottom: 56px;
  align-items: end;
}
.section-head .left .num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.section-head .left h2 {
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin: 16px 0 0;
  line-height: 1.05;
  color: var(--ink);
  text-wrap: balance;
}
.section-head .left h2 .em { font-style: normal; font-weight: 500; }
.section-head .right {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 6px;
}
.section-head .right p {
  font-size: 17px;
  line-height: 1.55;
  color: var(--fg);
  margin: 0;
  max-width: 540px;
}
.section-head .right .actions {
  display: flex; gap: 8px; flex-wrap: wrap;
}

/* ============================================================
   Category grid
   ============================================================ */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: var(--rule);
  border-left: var(--rule);
}
.cat-cell {
  position: relative;
  padding: 28px 28px 80px;
  border-right: var(--rule);
  border-bottom: var(--rule);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--surface);
  transition: background 0.2s;
  min-height: 240px;
  cursor: pointer;
}
.cat-cell:hover { background: var(--bg-tinted); }
.cat-cell .index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.cat-cell h3 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 0;
  line-height: 1.18;
}
.cat-cell .meta {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0;
}
.cat-cell .tags {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: auto;
}
.cat-cell .tag {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 3px 8px;
  border: var(--rule);
  border-radius: 3px;
  background: var(--bg);
}
.cat-cell .corner {
  position: absolute;
  bottom: 24px; right: 24px;
  width: 36px; height: 36px;
  border-radius: 50%;
  border: var(--rule);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink);
  font-family: var(--font-mono);
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cat-cell:hover .corner {
  background: var(--ink); color: #fff; border-color: var(--ink);
}
.cat-cell .corner::after { content: "→"; font-size: 16px; }
.cat-cell .skus {
  position: absolute;
  top: 22px; right: 24px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.cat-cell .skus strong {
  display: block;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
  line-height: 1.2;
}

/* ============================================================
   Audience split
   ============================================================ */

.audience {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: var(--rule);
  border-bottom: var(--rule);
}
.aud-col {
  padding: 56px 48px;
  border-right: var(--rule);
  position: relative;
}
.aud-col:last-child { border-right: 0; }
.aud-col .tag {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  white-space: nowrap;
}
.aud-col .tag .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
}
.aud-col.b .tag { color: var(--accent-2); }
.aud-col.b .tag .dot { background: var(--accent-2); }
.aud-col h3 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin: 0 0 14px;
  color: var(--ink);
  line-height: 1.15;
}
.aud-col p {
  color: var(--fg);
  font-size: 15px;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 0 28px;
}
.aud-col ul {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: var(--rule);
}
.aud-col li {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: var(--rule);
  font-size: 14px;
  color: var(--fg);
}
.aud-col li .ix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.aud-col li .qty {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.aud-col.a {
  background:
    radial-gradient(ellipse 60% 50% at 100% 0%, color-mix(in oklch, var(--blue) 8%, transparent), transparent 70%),
    var(--surface);
}
.aud-col.b {
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, color-mix(in oklch, var(--green) 8%, transparent), transparent 70%),
    var(--surface);
}

/* ============================================================
   Product strip
   ============================================================ */

.prod-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: var(--rule);
  border-left: var(--rule);
}
.prod-card {
  border-right: var(--rule);
  border-bottom: var(--rule);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.2s;
}
.prod-card:hover { background: var(--bg-tinted); }
.prod-cover {
  aspect-ratio: 4 / 3;
  background: #fff;
  position: relative;
  border-bottom: var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 44px 16px 24px;
}
.prod-cover .placeholder {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-tinted);
  padding: 4px 10px;
  border: var(--rule);
  text-align: center;
  max-width: 80%;
}
.prod-cover .stock {
  position: absolute;
  top: 12px; left: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  background: var(--surface);
  border: var(--rule);
  border-radius: 3px;
  color: var(--green);
  display: inline-flex; gap: 6px; align-items: center;
}
.prod-cover .stock.out { color: oklch(55% 0.16 30); }
.prod-cover .stock::before {
  content: "";
  width: 5px; height: 5px; border-radius: 50%;
  background: currentColor;
}
.prod-cover .sku {
  position: absolute;
  top: 12px; right: 12px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.prod-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1 1 auto;
}
.prod-body .ctype {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.prod-body h4 {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
  min-height: 42px;
}
.prod-body .spec {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.prod-body .site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: var(--rule);
  flex-wrap: wrap;
}
.prod-body .price {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.prod-body .price .unit { font-size: 11px; color: var(--muted); margin-left: 4px; }
.prod-body .docs {
  display: flex; gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.prod-body .docs span {
  font-family: var(--font-mono);
  font-size: 9px;
  padding: 2px 5px;
  border: var(--rule);
  border-radius: 3px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ============================================================
   Resources / Articles
   ============================================================ */

.res-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 48px;
}
.res-feature {
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.res-feature .cover {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, var(--hairline) 0 1px, transparent 1px 18px),
    var(--bg-tinted);
  display: flex; align-items: center; justify-content: center;
  border-bottom: var(--rule);
}
.res-feature .cover .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-tinted);
  padding: 5px 12px;
  border: var(--rule);
}
.res-feature .body {
  padding: 32px 36px 36px;
}
.res-feature .meta {
  display: flex; gap: 14px; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.res-feature .meta .tag {
  color: var(--accent);
}
.res-feature h3 {
  font-size: 28px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.012em;
  margin: 0 0 14px;
  color: var(--ink);
}
.res-feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0 0 20px;
}

.res-list {
  display: flex;
  flex-direction: column;
  border-top: var(--rule);
}
.res-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  border-bottom: var(--rule);
  cursor: pointer;
  transition: background 0.15s;
}
.res-item:hover { background: var(--bg-tinted); padding-left: 8px; padding-right: 8px; }
.res-item .ix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.res-item .body h4 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.35;
}
.res-item .body .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.res-item .body .meta .tag {
  color: var(--accent);
  margin-right: 8px;
}
.res-item .arrow {
  font-family: var(--font-mono);
  color: var(--muted);
  transition: transform 0.15s, color 0.15s;
}
.res-item:hover .arrow { color: var(--ink); transform: translateX(4px); }

/* ============================================================
   Trust band — clients/partners
   ============================================================ */

.trust {
  padding: 64px 0;
  border-bottom: var(--rule);
}
.trust-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 28px;
}
.trust-head h3 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--ink);
}
.trust-head .mono { font-size: 12px; }
.partner-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border: var(--rule);
  background: var(--border);
  gap: 1px;
}
.partner-cell {
  padding: 28px 20px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  min-height: 88px;
  text-transform: uppercase;
}

/* ============================================================
   CTA band
   ============================================================ */

.cta-band {
  padding: 96px 0;
  background: oklch(18% 0.012 250);
  color: oklch(86% 0.01 250);
  border-bottom: 1px solid color-mix(in oklch, var(--accent) 30%, black);
  position: relative;
  overflow: hidden;
}
.cta-band .grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 30%, transparent 80%);
  pointer-events: none;
}
.cta-band .container { position: relative; }
.cta-band .grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.cta-band h2 {
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.cta-band h2 .em { font-style: normal; font-weight: 500; }
.cta-band p {
  font-size: 16px;
  line-height: 1.6;
  margin: 24px 0 0;
  color: oklch(78% 0.012 250);
  max-width: 520px;
}
.cta-band .btn {
  background: var(--accent-2);
  border-color: var(--accent-2);
  color: oklch(18% 0.012 250);
  font-weight: 500;
}
.cta-band .btn:hover {
  background: color-mix(in oklch, var(--accent-2) 90%, white);
  border-color: color-mix(in oklch, var(--accent-2) 90%, white);
}
.cta-band .btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.25);
  color: #fff;
}
.cta-band .btn-outline:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.5);
  color: #fff;
}
.cta-band .right .channels {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.cta-band .channel {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.cta-band .channel .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(70% 0.012 250);
}
.cta-band .channel .val {
  font-family: var(--font-mono);
  font-size: 14px;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.cta-band .channel .badge {
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 3px 8px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  color: var(--accent-2);
  letter-spacing: 0.04em;
}

/* ============================================================
   Footer
   ============================================================ */

.site-footer {
  background: oklch(18% 0.012 250);
  color: oklch(72% 0.012 250);
  padding: 72px 0 0;
}
.site-footer .container {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 56px;
}
.site-footer .brand-block .brand-mark {
  filter: brightness(1.1);
}
.site-footer .brand-block .brand-name { color: #fff; }
.site-footer .brand-block .brand-sub { color: oklch(60% 0.01 250); }
.site-footer .brand-block p {
  font-size: 13px;
  line-height: 1.6;
  margin: 18px 0 0;
  max-width: 320px;
}
.site-footer h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(60% 0.01 250);
  margin: 0 0 16px;
  font-weight: 500;
}
.site-footer ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.site-footer a { font-size: 13px; color: oklch(78% 0.012 250); }
.site-footer a:hover { color: #fff; }
.site-footer .bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: oklch(60% 0.01 250);
}
.site-footer .bottom .container {
  display: flex;
  justify-content: space-between;
  padding-bottom: 0;
  grid-template-columns: none;
}

/* ============================================================
   Product detail view
   ============================================================ */

.crumb-bar {
  border-bottom: var(--rule);
  background: var(--bg);
}
.crumb-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 42px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.crumb-bar .path { display: flex; gap: 8px; align-items: center; }
.crumb-bar .path .sep { opacity: 0.5; }
.crumb-bar .path .current { color: var(--ink); }
.crumb-bar .back {
  color: var(--muted);
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.crumb-bar .back:hover { color: var(--ink); }

.pdp {
  padding: 56px 0 96px;
}
.pdp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 64px;
}
.pdp-media {
  position: sticky;
  top: 120px;
  align-self: start;
}
.pdp-cover {
  aspect-ratio: 1;
  background:
    repeating-linear-gradient(45deg, var(--hairline) 0 1px, transparent 1px 16px),
    var(--bg-tinted);
  border: var(--rule);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.pdp-cover .placeholder {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-tinted);
  padding: 6px 14px;
  border: var(--rule);
}
.pdp-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.pdp-thumb {
  aspect-ratio: 1;
  background: var(--bg-tinted);
  border: var(--rule);
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.pdp-thumb.active { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in oklch, var(--accent) 18%, transparent); }
.pdp-thumb::after {
  content: attr(data-label);
  position: absolute;
  bottom: 4px; left: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.pdp-info .top-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
  padding-bottom: 14px;
  border-bottom: var(--rule);
  margin-bottom: 22px;
}
.pdp-info .top-meta .stock {
  color: var(--green); display: inline-flex; gap: 6px; align-items: center;
}
.pdp-info .top-meta .stock::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor;
}
.pdp h1 {
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -0.018em;
  line-height: 1.08;
  color: var(--ink);
  margin: 0 0 16px;
}
.pdp .short {
  font-size: 16px;
  color: var(--fg);
  line-height: 1.6;
  margin: 0 0 32px;
}

.pdp-spec {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.pdp-spec dl {
  margin: 0;
  border-right: var(--rule);
}
.pdp-spec dl:last-child { border-right: 0; }
.pdp-spec .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 12px 16px;
  border-bottom: var(--rule);
  font-size: 13px;
}
.pdp-spec .row:last-child { border-bottom: 0; }
.pdp-spec dt {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pdp-spec dd {
  margin: 0;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-size: 12px;
}

.pdp-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  padding: 24px;
  margin-top: 24px;
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius);
  border-top: 3px solid var(--accent);
}
.pdp-price .left .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.pdp-price .left .val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 36px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  margin-top: 4px;
}
.pdp-price .left .val .unit { font-size: 14px; color: var(--muted); margin-left: 6px; }
.pdp-price .left .role-badge {
  display: inline-block;
  margin-top: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 3px;
}

.qty {
  display: inline-flex;
  align-items: center;
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.qty button {
  width: 36px; height: 38px;
  border: 0; background: transparent;
  font-size: 18px; color: var(--ink);
}
.qty input {
  width: 56px; height: 38px;
  border: 0; border-left: var(--rule); border-right: var(--rule);
  text-align: center; font: inherit;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  background: transparent;
  outline: 0;
}

.pdp-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.pdp-docs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 28px;
}
.pdp-docs a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink);
}
.pdp-docs a:hover { border-color: var(--accent); color: var(--accent); }
.pdp-docs a .pill {
  font-size: 9px;
  padding: 2px 6px;
  border: var(--rule);
  border-radius: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.pdp-content {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 64px;
  padding-top: 48px;
  border-top: var(--rule);
}
.pdp-toc {
  position: sticky;
  top: 120px;
  align-self: start;
}
.pdp-toc h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 14px;
  font-weight: 500;
}
.pdp-toc a {
  display: block;
  padding: 8px 0;
  font-size: 13px;
  color: var(--muted);
  border-bottom: var(--rule);
}
.pdp-toc a.active, .pdp-toc a:hover { color: var(--ink); }

.pdp-section { margin-bottom: 48px; }
.pdp-section h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0 0 18px;
  color: var(--ink);
}
.pdp-section p, .pdp-section li {
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
}
.pdp-section ul { padding-left: 18px; margin: 0; }
.pdp-section li { margin-bottom: 6px; }

/* ============================================================
   Products listing view
   ============================================================ */

.plist {
  padding: 56px 0 96px;
}
.plist-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 48px;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: var(--rule);
  align-items: end;
}
.plist-head .kicker { margin-bottom: 16px; }
.plist-head h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
  margin: 0;
}
.plist-head .intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0;
  max-width: 520px;
}

.plist-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
}

.facets {
  border-right: var(--rule);
  padding-right: 32px;
}
.facet-group { padding: 18px 0; border-bottom: var(--rule); }
.facet-group:first-child { padding-top: 0; }
.facet-group h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 14px;
}
.facet-group label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 13px;
  color: var(--fg);
  cursor: pointer;
}
.facet-group label:hover { color: var(--ink); }
.facet-group input[type=checkbox] {
  width: 14px; height: 14px; margin: 0; accent-color: var(--accent);
}
.facet-group label .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.plist-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: var(--rule);
}
.plist-tools .stats {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.plist-tools .stats strong { color: var(--ink); font-weight: 500; }
.plist-tools .controls { display: flex; gap: 6px; align-items: center; }
.plist-tools select {
  appearance: none;
  -webkit-appearance: none;
  padding: 7px 28px 7px 12px;
  border: var(--rule);
  border-radius: var(--radius);
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6"><path fill="none" stroke="%23606b78" stroke-width="1.5" d="M1 1l4 4 4-4"/></svg>') right 10px center / 10px 6px no-repeat,
    var(--surface);
  font-size: 13px;
  color: var(--ink);
}
.plist-tools .view-toggle {
  display: inline-flex;
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
}
.plist-tools .view-toggle button {
  border: 0;
  background: var(--surface);
  padding: 7px 10px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}
.plist-tools .view-toggle button.active { background: var(--ink); color: #fff; }

.plist-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--rule);
  border-left: var(--rule);
}
.plist-grid .prod-card { border-radius: 0; }

/* ============================================================
   RFQ view
   ============================================================ */

.rfq {
  padding: 56px 0 96px;
}
.rfq-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 64px;
}
.rfq-left h1 {
  font-size: clamp(38px, 4.6vw, 60px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
  margin: 16px 0 16px;
}
.rfq-left .intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0 0 32px;
  max-width: 540px;
}

.rfq-form {
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 36px 36px 32px;
}
.rfq-form h3 {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ink);
}
.rfq-form .h-sub {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}
.rfq-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.rfq-fields .full { grid-column: 1 / -1; }
.field {
  display: flex; flex-direction: column; gap: 6px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input, .field textarea, .field select {
  border: var(--rule);
  border-radius: var(--radius);
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  outline: 0;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 14%, transparent);
}
.field textarea { resize: vertical; min-height: 96px; }
.rfq-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: var(--rule);
}
.rfq-actions .note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.rfq-side h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 14px;
  color: var(--ink);
}
.timeline {
  list-style: none; padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
}
.timeline li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-bottom: var(--rule);
  position: relative;
}
.timeline li:last-child { border-bottom: 0; }
.timeline .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
  position: relative;
}
.timeline li:not(:last-child) .dot::after {
  content: "";
  position: absolute;
  left: 50%; top: 16px; bottom: -22px;
  width: 1px;
  background: var(--border);
  transform: translateX(-50%);
}
.timeline .stage {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.timeline h4 {
  font-size: 15px;
  font-weight: 500;
  margin: 4px 0 4px;
  color: var(--ink);
}
.timeline p {
  font-size: 13px;
  color: var(--fg);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1100px) {
  .hero-headline { grid-template-columns: 1fr; gap: 32px; }
  .hero-canvas { grid-template-columns: 1fr; }
  .hero-canvas-left, .hero-canvas-right { border-right: 0; border-bottom: var(--rule); padding-right: 0; padding-left: 0; }
  .kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(2), .kpi:last-child { border-right: 0; }
  .kpi:nth-child(1), .kpi:nth-child(2) { border-bottom: var(--rule); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .prod-grid { grid-template-columns: repeat(2, 1fr); }
  .res-grid { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .aud-col { border-right: 0; border-bottom: var(--rule); }
  .aud-col:last-child { border-bottom: 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .pdp-grid { grid-template-columns: 1fr; }
  .pdp-media { position: static; }
  .pdp-content { grid-template-columns: 1fr; }
  .pdp-toc { position: static; }
  .rfq-grid { grid-template-columns: 1fr; }
  .plist-layout { grid-template-columns: 1fr; }
  .facets { border-right: 0; border-bottom: var(--rule); padding-right: 0; padding-bottom: 24px; margin-bottom: 24px; }
  .site-footer .container { grid-template-columns: 1fr 1fr; }
  .partner-row { grid-template-columns: repeat(3, 1fr); }
  .cta-band .grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 720px) {
  .header-main .container { gap: 12px; }
  .nav, .header-search { display: none; }
  .hero { padding-top: 40px; }
  .hero-h1 { font-size: 44px; }
  .section { padding: 64px 0; }
  .cat-grid, .prod-grid { grid-template-columns: 1fr; }
  .plist-grid { grid-template-columns: 1fr; }
  .partner-row { grid-template-columns: repeat(2, 1fr); }
  .site-footer .container { grid-template-columns: 1fr; gap: 32px; }
  .rfq-fields { grid-template-columns: 1fr; }
}

/* ============================================================
   Theme variants (toggled via Tweaks)
   ============================================================ */

body.theme-frontier {
  --bg:        oklch(16% 0.018 245);
  --bg-tinted: oklch(20% 0.02 245);
  --surface:   oklch(22% 0.02 245);
  --ink:       oklch(96% 0.008 240);
  --fg:        oklch(82% 0.012 240);
  --muted:     oklch(64% 0.014 240);
  --faint:     oklch(48% 0.014 240);
  --border:    oklch(30% 0.022 245);
  --hairline:  oklch(26% 0.022 245);
  --blue-soft: oklch(32% 0.05 235);
  --green-soft: oklch(30% 0.05 145);
}
body.theme-frontier .brand-mark { filter: brightness(1.4) saturate(1.1); }
body.theme-frontier .hero-grid { mask-image: radial-gradient(ellipse 90% 80% at 50% 10%, #000 30%, transparent 80%); }
body.theme-frontier .site-footer,
body.theme-frontier .cta-band { background: oklch(12% 0.018 245); }
body.theme-frontier .btn { background: var(--ink); color: oklch(16% 0.018 245); border-color: var(--ink); }
body.theme-frontier .btn:hover { background: oklch(86% 0.008 240); }
body.theme-frontier .header { background: color-mix(in oklch, var(--bg) 80%, transparent); }

/* Density */
body.dense .section { padding: 64px 0; }
body.dense .cat-cell { padding: 22px 22px 70px; min-height: 200px; }
body.dense .prod-body { padding: 14px 16px 18px; }
body.dense .lab-card-body { padding: 18px; }
body.dense .kpi { padding: 16px 20px; }
body.dense .audience .aud-col { padding: 36px 36px; }

/* Compact hero (alternative layout) */
body.hero-stacked .hero-headline { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
body.hero-stacked .hero-h1 { font-size: clamp(40px, 5vw, 76px); }


/* ============================================================
   v2 — Product list redesign
   ============================================================ */

.plist-hero {
  padding: 56px 0 0;
  border-bottom: var(--rule);
  background:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    var(--bg);
  background-size: 80px 100%;
  background-position: -1px 0;
}
.plist-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 56px;
  align-items: end;
  padding-bottom: 32px;
}
.plist-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.04;
  color: var(--ink);
  margin: 14px 0 0;
}
.plist-hero h1 .em { font-style: normal; font-weight: 500; }
.plist-hero .intro {
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0 0 14px;
  max-width: 540px;
}
.plist-hero .meta {
  display: flex;
  gap: 32px;
  border-top: var(--rule);
  padding-top: 18px;
}
.plist-hero .meta .stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.plist-hero .meta .stat .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.plist-hero .meta .stat .val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  color: var(--ink);
  font-weight: 500;
}

.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: var(--rule);
  align-items: center;
}
.active-filters .lbl {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid color-mix(in oklch, var(--accent) 25%, var(--border));
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  cursor: pointer;
}
.chip:hover { background: color-mix(in oklch, var(--accent) 12%, var(--surface)); }
.chip .x { opacity: 0.6; }
.chip:hover .x { opacity: 1; }
.chip-reset {
  color: var(--muted);
  background: transparent;
  border-color: var(--border);
}

.facet-count-bar {
  display: block;
  height: 3px;
  background: var(--bg-tinted);
  border-radius: 2px;
  margin-top: 6px;
  overflow: hidden;
}
.facet-count-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
}

/* List view (alternative to grid) */
.plist-rows {
  border-top: var(--rule);
}
.plist-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 2fr) minmax(0, 1.2fr) auto auto;
  gap: 20px;
  padding: 18px 0;
  border-bottom: var(--rule);
  align-items: center;
  cursor: pointer;
  transition: background 0.15s;
}
.plist-row:hover { background: var(--bg-tinted); padding-left: 12px; padding-right: 12px; }
.plist-row .thumb {
  aspect-ratio: 1;
  background: #fff;
  border: var(--rule);
  border-radius: var(--radius);
}
.plist-row .info .ctype {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.plist-row .info h4 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ink);
}
.plist-row .info .sku {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.plist-row .spec-cell {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
}
.plist-row .spec-cell .extra {
  display: block; color: var(--muted); font-size: 11px; margin-top: 4px;
}
.plist-row .price-cell {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  white-space: nowrap;
}
.plist-row .price-cell .stock {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-top: 4px;
  letter-spacing: 0.04em;
}
.plist-row .price-cell .stock.in { color: var(--green); }
.plist-row .price-cell .stock.out { color: oklch(55% 0.16 30); }
.plist-row .row-arrow {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 18px;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: var(--rule);
  margin-top: 28px;
}
.pagination .info {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.pager {
  display: flex;
  gap: 4px;
}
.pager button {
  width: 32px; height: 32px;
  border: var(--rule);
  background: var(--surface);
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--fg);
}
.pager button:hover { border-color: var(--ink); }
.pager button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager button.nav { width: auto; padding: 0 12px; }

/* ============================================================
   v2 — Product detail enhancements
   ============================================================ */

.pdp-tabs {
  display: flex;
  gap: 0;
  border-bottom: var(--rule);
  margin-bottom: 32px;
}
.pdp-tabs button {
  border: 0;
  background: transparent;
  padding: 16px 22px;
  font: inherit;
  font-size: 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.pdp-tabs button:hover { color: var(--ink); }
.pdp-tabs button.active {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.pdp-tabs button .badge {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 1px 6px;
  border: var(--rule);
  border-radius: 2px;
  color: var(--muted);
}

.related-band {
  border-top: var(--rule);
  padding: 64px 0 0;
  margin-top: 64px;
}
.related-band h3 {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0 0 24px;
  color: var(--ink);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: var(--rule);
  border-left: var(--rule);
}
.related-grid .prod-card { border-radius: 0; }

/* Lot / certificates rail */
.lot-rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 24px;
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
}
.lot-cell {
  padding: 18px 22px;
  border-right: var(--rule);
}
.lot-cell:last-child { border-right: 0; }
.lot-cell .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.lot-cell .val {
  font-family: var(--font-mono);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  font-weight: 500;
}
.lot-cell .extra {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

/* ============================================================
   Customer center / Me views
   ============================================================ */

.me-hero {
  padding: 48px 0 32px;
  border-bottom: var(--rule);
  background:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    var(--bg);
  background-size: 80px 100%;
}
.me-hero .container {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}
.me-hero .left .kicker {
  margin-bottom: 12px;
}
.me-hero .left h1 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.022em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0 0 8px;
}
.me-hero .left .who {
  font-size: 14px;
  color: var(--muted);
}
.me-hero .left .who strong {
  color: var(--ink);
  font-weight: 500;
}
.me-hero .left .who .role {
  display: inline-block;
  margin-left: 8px;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  background: var(--green-soft);
  color: var(--green);
  border-radius: 3px;
  border: 1px solid color-mix(in oklch, var(--green) 30%, var(--border));
}
.me-hero .quick {
  display: flex;
  gap: 8px;
}

.me-layout {
  padding: 32px 0 96px;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 48px;
}
.me-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}
.me-sidebar h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.me-sidebar .me-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 24px;
}
.me-sidebar .me-nav-list button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 14px;
  color: var(--fg);
  text-align: left;
  border-radius: var(--radius);
  cursor: pointer;
  position: relative;
}
.me-sidebar .me-nav-list button:hover { background: var(--bg-tinted); color: var(--ink); }
.me-sidebar .me-nav-list button.active {
  background: var(--ink);
  color: #fff;
}
.me-sidebar .me-nav-list button.active .count {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.me-sidebar .me-nav-list button .count {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 2px 7px;
  background: var(--bg-tinted);
  border-radius: 999px;
  color: var(--muted);
}
.me-sidebar .me-nav-list button .ix {
  font-family: var(--font-mono);
  font-size: 10px;
  color: inherit;
  opacity: 0.6;
}
.me-sidebar .logout {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 10px 12px;
  border-top: var(--rule);
  margin-top: 8px;
  cursor: pointer;
}
.me-sidebar .logout:hover { color: var(--ink); }

.me-content { min-width: 0; }

.me-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: var(--rule);
  margin-bottom: 32px;
  gap: 24px;
}
.me-title h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
}
.me-title .sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 6px;
}
.me-title .actions {
  display: flex;
  gap: 8px;
}

/* Dashboard KPI cards */
.me-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: var(--rule);
  border-radius: var(--radius);
  margin-bottom: 40px;
  background: var(--surface);
}
.me-kpi {
  padding: 20px 22px;
  border-right: var(--rule);
}
.me-kpi:last-child { border-right: 0; }
.me-kpi .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.me-kpi .val {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 28px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.1;
}
.me-kpi .val sub {
  font-size: 12px;
  color: var(--muted);
  margin-left: 4px;
}
.me-kpi .delta {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--green);
}
.me-kpi .delta.down { color: oklch(55% 0.16 30); }

/* Generic me-table redesigned */
.me-table-v2 {
  width: 100%;
  border-collapse: collapse;
  border: var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.me-table-v2 th, .me-table-v2 td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: var(--rule);
  font-size: 13px;
  vertical-align: middle;
}
.me-table-v2 tr:last-child td { border-bottom: 0; }
.me-table-v2 th {
  background: var(--bg-tinted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.me-table-v2 tbody tr:hover { background: var(--bg-tinted); cursor: pointer; }
.me-table-v2 .id-cell {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
}
.me-table-v2 .num-cell {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.me-table-v2 .date-cell {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* Status pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
  border: 1px solid currentColor;
  background: transparent;
  white-space: nowrap;
}
.status-pill::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.status-pill.ok    { color: var(--green); background: color-mix(in oklch, var(--green) 6%, var(--surface)); border-color: color-mix(in oklch, var(--green) 30%, var(--border)); }
.status-pill.info  { color: var(--blue); background: color-mix(in oklch, var(--blue) 5%, var(--surface)); border-color: color-mix(in oklch, var(--blue) 30%, var(--border)); }
.status-pill.warn  { color: oklch(58% 0.14 75); background: oklch(96% 0.04 75); border-color: oklch(82% 0.06 75); }
.status-pill.fail  { color: oklch(55% 0.16 30); background: oklch(96% 0.03 30); border-color: oklch(85% 0.05 30); }
.status-pill.mute  { color: var(--muted); background: var(--bg-tinted); border-color: var(--border); }

.flow-trail {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.flow-trail .step {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px dashed var(--border);
  border-radius: 3px;
  color: var(--muted);
}
.flow-trail .step.done {
  border-style: solid;
  background: var(--green-soft);
  color: var(--green);
  border-color: color-mix(in oklch, var(--green) 30%, var(--border));
}
.flow-trail .step.now {
  border-style: solid;
  background: var(--accent-soft);
  color: var(--accent);
  border-color: color-mix(in oklch, var(--accent) 30%, var(--border));
}
.flow-trail .sep { color: var(--faint); font-family: var(--font-mono); font-size: 10px; }

/* Profile / KYC two-column card grid */
.me-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.me-cards.cols-3 { grid-template-columns: repeat(3, 1fr); }
.me-card-v2 {
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.me-card-v2 h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ink);
}
.me-card-v2 .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.me-card-v2 dl {
  margin: 0;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px 18px;
}
.me-card-v2 dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.me-card-v2 dd {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.me-card-v2 .footer {
  margin-top: 22px;
  padding-top: 18px;
  border-top: var(--rule);
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* KYC progress */
.kyc-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}
.kyc-step {
  border: var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: var(--surface);
  position: relative;
}
.kyc-step.done {
  background: var(--green-soft);
  border-color: color-mix(in oklch, var(--green) 35%, var(--border));
}
.kyc-step.now {
  background: var(--accent-soft);
  border-color: color-mix(in oklch, var(--accent) 35%, var(--border));
}
.kyc-step .ix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.kyc-step h4 {
  font-size: 14px;
  font-weight: 500;
  margin: 8px 0 4px;
  color: var(--ink);
}
.kyc-step .desc {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.kyc-step .state {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.kyc-step.done .state { color: var(--green); }
.kyc-step.now .state { color: var(--accent); }
.kyc-step.todo .state { color: var(--faint); }

.kyc-form-section {
  background: var(--surface);
  border: var(--rule);
  border-radius: var(--radius);
  padding: 28px 30px;
  margin-bottom: 16px;
}
.kyc-form-section .head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
}
.kyc-form-section .head h3 {
  font-size: 17px;
  font-weight: 500;
  margin: 0;
  color: var(--ink);
}
.kyc-form-section .head h3 .ix {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-right: 10px;
  letter-spacing: 0.04em;
}

/* Activity timeline (orders detail / dashboard) */
.activity-list {
  display: flex;
  flex-direction: column;
  border-top: var(--rule);
}
.activity-row {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  padding: 16px 0;
  border-bottom: var(--rule);
  align-items: start;
}
.activity-row .ts {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.activity-row .body h5 {
  font-size: 14px;
  font-weight: 500;
  margin: 0 0 4px;
  color: var(--ink);
}
.activity-row .body p {
  font-size: 13px;
  color: var(--fg);
  margin: 0;
  line-height: 1.5;
}
.activity-row .body .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  .me-layout { grid-template-columns: 1fr; }
  .me-sidebar { position: static; }
  .me-sidebar .me-nav-list { flex-direction: row; flex-wrap: wrap; }
  .me-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .me-kpi:nth-child(2) { border-right: 0; }
  .me-kpi:nth-child(1), .me-kpi:nth-child(2) { border-bottom: var(--rule); }
  .me-cards, .me-cards.cols-3 { grid-template-columns: 1fr; }
  .kyc-progress { grid-template-columns: 1fr 1fr; }
  .plist-rows .plist-row { grid-template-columns: 64px 1fr auto; gap: 14px; }
  .plist-row .spec-cell { display: none; }
  .plist-row .row-arrow { display: none; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .plist-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .me-hero .container { flex-direction: column; align-items: start; gap: 16px; }
  .me-kpi-grid { grid-template-columns: 1fr; }
  .me-kpi { border-right: 0; border-bottom: var(--rule); }
  .me-kpi:last-child { border-bottom: 0; }
  .kyc-progress { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}


/* ============================================================
   Content / article layouts (v3)
   ============================================================ */

.content-hero {
  padding: 56px 0 48px;
  border-bottom: var(--rule);
  background:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    var(--bg);
  background-size: 80px 100%;
}
.content-hero h1 {
  font-size: clamp(36px, 4.4vw, 60px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--ink);
  margin: 14px 0 16px;
  max-width: 880px;
  word-break: keep-all;
}
.content-hero .intro {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0;
  max-width: 720px;
}
.content-hero .filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.content-hero .filters a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border: var(--rule);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
}
.content-hero .filters a:hover { color: var(--ink); border-color: var(--ink); }
.content-hero .filters a.active { color: #fff; background: var(--ink); border-color: var(--ink); }

.article-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 48px;
  align-items: stretch;
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 48px;
}
.article-feature .cover {
  aspect-ratio: 4 / 3;
  background:
    repeating-linear-gradient(135deg, var(--hairline) 0 1px, transparent 1px 18px),
    var(--bg-tinted);
  display: flex; align-items: center; justify-content: center;
}
.article-feature .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-feature .body {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}
.article-feature .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  gap: 14px;
  align-items: center;
}
.article-feature .meta .tag { color: var(--accent); }
.article-feature h2 {
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.18;
  margin: 14px 0 14px;
  color: var(--ink);
  word-break: keep-all;
}
.article-feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0;
}
.article-feature .actions { display: flex; gap: 10px; margin-top: 16px; }

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: var(--rule);
  border-left: var(--rule);
}
.article-tile {
  border-right: var(--rule);
  border-bottom: var(--rule);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--ink);
}
.article-tile:hover { background: var(--bg-tinted); }
.article-tile .cover {
  aspect-ratio: 16 / 9;
  background:
    repeating-linear-gradient(135deg, var(--hairline) 0 1px, transparent 1px 14px),
    var(--bg-tinted);
  border-bottom: var(--rule);
  display: flex; align-items: center; justify-content: center;
}
.article-tile .cover img { width: 100%; height: 100%; object-fit: cover; }
.article-tile .cover .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 4px 10px;
  background: var(--bg-tinted);
  border: var(--rule);
}
.article-tile .body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.article-tile .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.article-tile .meta .tag { color: var(--accent); margin-right: 10px; }
.article-tile h3 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  margin: 0;
  color: var(--ink);
  min-height: 44px;
}
.article-tile p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.article-tile .footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: var(--rule);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* article body */
.article-shell {
  display: grid;
  grid-template-columns: 200px minmax(0, 720px) 200px;
  gap: 48px;
  padding: 56px 0 96px;
  justify-content: center;
}
.article-aside {
  position: sticky;
  top: 100px;
  align-self: start;
}
.article-aside h5 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 500;
}
.article-aside ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 0;
  border-top: var(--rule);
}
.article-aside li {
  padding: 8px 0;
  border-bottom: var(--rule);
}
.article-aside li a {
  font-size: 13px;
  color: var(--muted);
}
.article-aside li a:hover, .article-aside li a.active { color: var(--ink); }

.article-body h1.article-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink);
  margin: 14px 0 18px;
  word-break: keep-all;
}
.article-body .lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0 0 20px;
}
.article-body .byline {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: var(--rule);
  text-transform: uppercase;
}
.article-body .byline .tag {
  color: var(--accent);
  padding: 2px 8px;
  background: var(--accent-soft);
  border-radius: 3px;
  text-transform: none;
  font-size: 11px;
}
.article-body .cover-img {
  margin: 28px -40px;
  border-radius: var(--radius);
  overflow: hidden;
}
.article-body .cover-img img { width: 100%; display: block; }
.article-body { font-size: 16px; line-height: 1.75; color: var(--fg); }
.article-body p { margin: 0 0 18px; }
.article-body h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.012em;
  color: var(--ink);
  margin: 40px 0 14px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.article-body h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--ink);
  margin: 32px 0 12px;
}
.article-body ul, .article-body ol { padding-left: 22px; margin: 0 0 18px; }
.article-body li { margin-bottom: 8px; }
.article-body img { border-radius: var(--radius); margin: 24px 0; }
.article-body blockquote, .article-body .w-block-quote {
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  padding: 16px 22px;
  margin: 24px 0;
  font-style: normal;
  color: var(--ink);
}
.article-body pre, .article-body code {
  font-family: var(--font-mono);
  background: var(--bg-tinted);
  border-radius: var(--radius);
}
.article-body pre { padding: 16px 20px; overflow: auto; font-size: 13px; border: var(--rule); }
.article-body code { padding: 2px 6px; font-size: 14px; }

.article-body .w-block-heading {
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  margin: 36px 0 12px;
  padding-left: 14px;
  border-left: 4px solid var(--accent);
}
.article-body .w-block-cta { text-align: center; margin: 32px 0; }
.article-body .w-block-image img { width: 100%; }

.related-articles {
  border-top: var(--rule);
  padding-top: 48px;
  margin-top: 56px;
}
.related-articles h3 {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 24px;
}

@media (max-width: 1100px) {
  .article-shell { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .article-aside { display: none; }
  .article-feature { grid-template-columns: 1fr; }
  .article-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .article-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Search results
   ============================================================ */

.search-hero {
  padding: 48px 0 32px;
  border-bottom: var(--rule);
  background:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    var(--bg);
  background-size: 80px 100%;
}
.search-hero h1 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500;
  margin: 0 0 16px;
  color: var(--ink);
  letter-spacing: -0.018em;
}
.search-form-large {
  display: flex;
  gap: 0;
  max-width: 640px;
  border: var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.search-form-large:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--accent) 14%, transparent);
}
.search-form-large input {
  flex: 1; padding: 14px 18px;
  border: 0; background: transparent; outline: 0;
  font: inherit; font-size: 15px; color: var(--ink);
}
.search-form-large button {
  padding: 0 24px;
  border: 0; background: var(--ink); color: #fff;
  font: inherit; font-size: 14px; font-weight: 500;
  cursor: pointer;
}
.search-form-large button:hover { background: color-mix(in oklch, var(--ink) 88%, black); }

.search-stat-bar {
  padding: 18px 0;
  border-bottom: var(--rule);
  background: var(--bg-tinted);
  display: flex;
  gap: 32px;
}
.search-stat-bar .stat {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.search-stat-bar .stat strong {
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  margin-right: 6px;
}

.search-results {
  display: flex;
  flex-direction: column;
  border-top: var(--rule);
}
.search-result {
  padding: 22px 0;
  border-bottom: var(--rule);
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: start;
  cursor: pointer;
  transition: background 0.15s;
}
.search-result:hover { background: var(--bg-tinted); padding-left: 12px; padding-right: 12px; }
.search-result .kind {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 3px 8px;
  border: 1px solid color-mix(in oklch, var(--accent) 30%, var(--border));
  border-radius: 3px;
  background: var(--accent-soft);
  text-align: center;
}
.search-result .body h3 {
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 6px;
  color: var(--ink);
}
.search-result .body p {
  font-size: 13px;
  color: var(--fg);
  margin: 0 0 6px;
  line-height: 1.5;
}
.search-result .body .url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.search-result .body mark {
  background: var(--accent-soft);
  color: var(--ink);
  padding: 1px 3px;
  border-radius: 2px;
}
.search-result .arrow {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 18px;
}
.search-result:hover .arrow { color: var(--ink); }

/* ── portal-v3 supplements ───────────────────────────────────────────────
   未改版 me/* 模板 + 新 shop 模板引用了 .empty-state / .me-error，但官方 css 未定义，
   补上保持全站一致。纯新增，不覆盖既有规则。 */
.empty-state {
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-tinted);
  padding: 48px 24px;
  text-align: center;
  color: var(--ink);
}
.empty-state p { margin: 0 0 6px; }
.empty-state p:first-child { font-size: 15px; font-weight: 500; }
.empty-state a { color: var(--blue); }

.me-error {
  border: 1px solid oklch(80% 0.09 30);
  background: oklch(96% 0.03 30);
  color: oklch(45% 0.16 30);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  margin-bottom: 16px;
}

/* ============================================================
   HERO 轮播 banner（品牌 ↔ 注册赠品活动）— 移植自 tmp/homepage gift.css
   ============================================================ */
.hero-banner { position: relative; margin: 0 0 8px; }
.hb-track { display: grid; align-content: start; }
.hb-slide { grid-area: 1 / 1; }
.hb-slide:not(.active) { visibility: hidden; opacity: 0; pointer-events: none; }
.hb-slide.active { animation: hbFadeIn 0.5s ease; }
@keyframes hbFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.hb-tag-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.hb-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 12px;
  border: var(--rule);
  border-radius: 999px;
  background: var(--surface);
  white-space: nowrap;
}
.hb-tag.green { color: #fff; background: var(--green); border-color: var(--green); }
.hb-sku {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--green);
  white-space: nowrap;
}
.hero-h1 .em-green { font-style: normal; font-weight: 500; color: var(--green); }
.hero-h1 .accent-mark-green { color: var(--green); font-style: normal; }
.hero-banner .btn.btn-accent {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.hero-banner .btn.btn-accent:hover {
  background: color-mix(in oklch, var(--green) 86%, black);
  border-color: color-mix(in oklch, var(--green) 86%, black);
}
.hb-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding-top: 20px;
  border-top: var(--rule);
}
.hb-dots { display: flex; gap: 10px; align-items: center; }
.hb-dot {
  position: relative;
  width: 56px;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 999px;
  background: var(--border);
  cursor: pointer;
  overflow: hidden;
}
.hb-dot .hb-dot-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--accent);
  border-radius: 999px;
}
.hb-dot.green .hb-dot-fill { background: var(--green); }
.hb-dot.on .hb-dot-fill { width: 100%; animation: hbFill 6.5s linear; }
.hb-dot.on { background: color-mix(in oklch, var(--accent) 20%, var(--border)); }
@keyframes hbFill { from { width: 0; } to { width: 100%; } }
.hb-nav { display: flex; align-items: center; gap: 10px; }
.hb-count {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.hb-arrow {
  width: 32px;
  height: 32px;
  border: var(--rule);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.hb-arrow:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
