/* ==========================================================================
   PinionMesh Swiss Hardware Grid Stylesheet
   Aesthetic: DJI / Teenage Engineering Precision Industrial Spec Sheet
   Palette: Matte Carbon (#111317), Graphite Rail (#1b1f27), Anodized Lab (#f4f5f7),
   Pure Studio Plinth (#ffffff), LiHV Tangerine (#ff5a1f), Link-Locked Emerald (#10b981).
   Typography: Space Grotesk (700) + IBM Plex Sans + JetBrains Mono.
   ========================================================================== */

:root {
  --carbon: #111317;
  --carbon-mid: #191d24;
  --carbon-soft: #232833;
  --carbon-line: #2d3442;
  --lihv: #ff5a1f;
  --lihv-hover: #ff713d;
  --lihv-deep: #c73c0a;
  --emerald: #10b981;
  --emerald-deep: #047857;
  --emerald-tint: #ecfdf5;
  --lab-bg: #f4f5f7;
  --lab-alt: #eaedf2;
  --plinth: #ffffff;
  --ink: #111317;
  --ink-mid: #384152;
  --ink-muted: #616b7d;
  --hairline: #d6dbe3;
  --hairline-strong: #b8c0cd;
  --radius-xs: 2px;
  --radius: 4px;
  --radius-md: 6px;
  --shadow-plinth: 0 1px 3px rgba(17, 19, 23, 0.05);
  --shadow-lift: 0 12px 26px rgba(17, 19, 23, 0.11);
  --display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --body: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--lab-bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 15.5px;
  line-height: 1.55;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

.mono,
code {
  font-family: var(--mono);
}

code {
  font-size: 0.86em;
  background: var(--lab-alt);
  border: 1px solid var(--hairline);
  padding: 1px 5px;
  border-radius: var(--radius-xs);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  background: var(--lihv);
  color: #ffffff;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
}

.skip:focus {
  left: 12px;
}

.wrap {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
}

.main-view {
  flex: 1 0 auto;
  padding-bottom: 64px;
}

.main-view:focus {
  outline: none;
}

/* ---------------- Matte Carbon Swiss Architectural Header ---------------- */
.top {
  position: sticky;
  top: 0;
  z-index: 95;
  background: var(--carbon);
  border-bottom: 1px solid var(--carbon-line);
  color: #f8fafc;
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

.logo-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  letter-spacing: 0.03em;
  color: #ffffff;
}

.wordmark b {
  color: var(--lihv);
  font-weight: 700;
}

.logo-tag {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(248, 250, 252, 0.56);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 11px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.76);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.14s ease, border-color 0.14s ease;
}

.nav a:hover {
  color: #ffffff;
}

.nav a.nav-emerald {
  color: #34d399;
}

.nav a.nav-lihv {
  color: #ff8559;
}

.nav a.active {
  color: #ffffff;
  border-bottom-color: var(--lihv);
}

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

.icon-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--carbon-line);
  border-radius: var(--radius-xs);
  background: var(--carbon-mid);
  color: #f8fafc;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.icon-pill:hover,
.icon-pill.active {
  border-color: var(--lihv);
  background: var(--carbon-soft);
}

.icon-pill svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saved-pill em {
  font-style: normal;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  background: var(--lihv);
  color: #ffffff;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--carbon-line);
  border-radius: var(--radius-xs);
  background: var(--carbon-mid);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-ico {
  position: relative;
  width: 15px;
  height: 2px;
  background: var(--lihv);
}

.menu-ico::before,
.menu-ico::after {
  content: "";
  position: absolute;
  left: 0;
  width: 15px;
  height: 2px;
  background: var(--lihv);
}

.menu-ico::before { top: -5px; }
.menu-ico::after { top: 5px; }

.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(10, 12, 16, 0.78);
  display: flex;
  justify-content: flex-end;
}

.menu-sheet[hidden] {
  display: none !important;
}

.menu-panel {
  width: min(350px, 92vw);
  height: 100%;
  background: var(--carbon);
  color: #f8fafc;
  border-left: 1px solid var(--carbon-line);
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--carbon-line);
}

.menu-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-body a {
  display: flex;
  align-items: center;
  min-height: 45px;
  padding: 0 12px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #f8fafc;
}

.menu-body a:hover {
  background: var(--carbon-mid);
  border-color: var(--carbon-line);
  color: var(--lihv);
}

/* ---------------- Typography, Buttons & Industrial Labels ---------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lihv-deep);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lihv);
  display: inline-block;
}

.page-head {
  padding: 34px 0 22px;
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 24px;
}

.page-head h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 8px 0 10px;
  color: var(--ink);
}

.lede {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-mid);
  max-width: 76ch;
  margin: 0;
}

.fine {
  font-size: 0.84rem;
  color: var(--ink-muted);
  line-height: 1.5;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 42px 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--ink);
}

.section-head h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.28rem, 2vw, 1.62rem);
  letter-spacing: -0.015em;
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.14s ease, border-color 0.14s ease, color 0.14s ease, transform 0.12s ease;
}

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

.btn.lihv,
.btn.amber {
  background: var(--lihv);
  border-color: var(--lihv);
  color: #ffffff;
}

.btn.lihv:hover,
.btn.amber:hover {
  background: var(--lihv-hover);
  border-color: var(--lihv-hover);
}

.btn.primary,
.btn.carbon {
  background: var(--carbon);
  border-color: var(--carbon);
  color: #ffffff;
}

.btn.primary:hover,
.btn.carbon:hover {
  background: var(--carbon-soft);
  border-color: var(--carbon-soft);
}

.btn.ghost {
  background: var(--plinth);
  border-color: var(--hairline-strong);
  color: var(--ink);
}

.btn.ghost:hover {
  border-color: var(--ink);
  background: var(--lab-alt);
}

.btn.ghost-carbon {
  background: var(--carbon-mid);
  border-color: var(--carbon-line);
  color: #f8fafc;
}

.btn.ghost-carbon:hover {
  border-color: var(--emerald);
  color: #ffffff;
}

.btn.sm {
  min-height: 44px;
  padding: 0 13px;
  font-size: 0.74rem;
}

/* ---------------- Matte Carbon Hangar Hero + 2x2 Studio Plinth Grid ---------------- */
.hangar-hero {
  background-color: var(--carbon);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 32px 32px;
  color: #f8fafc;
  border-bottom: 2px solid var(--lihv);
  padding: 44px 0 48px;
}

.hangar-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1.06fr);
  gap: 36px;
  align-items: center;
}

.hangar-copy .eyebrow {
  color: var(--emerald);
  margin-bottom: 14px;
}

.hangar-copy .eyebrow::before {
  color: var(--lihv);
}

.hangar-copy h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.2rem, 4.1vw, 3.45rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 16px;
}

.hangar-copy h1 span {
  color: var(--lihv);
}

.hangar-copy p {
  font-size: 1.03rem;
  line-height: 1.62;
  color: rgba(248, 250, 252, 0.78);
  margin: 0 0 24px;
  max-width: 54ch;
}

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

.hangar-bus {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--carbon-line);
  border: 1px solid var(--carbon-line);
  margin-top: 28px;
}

.bus-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 12px;
  background: var(--carbon-mid);
  font-family: var(--mono);
  font-size: 0.73rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.86);
  transition: background 0.14s ease, color 0.14s ease;
}

.bus-cell span {
  color: var(--emerald);
}

.bus-cell:hover {
  background: var(--carbon-soft);
  color: #ffffff;
}

/* Orthogonal 2x2 Bright White Specimen Plinths */
.plinth-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.plinth-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  color: var(--ink);
  border: 1px solid var(--carbon-line);
  border-radius: var(--radius-xs);
  padding: 12px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.plinth-card:hover {
  border-color: var(--lihv);
  transform: translateY(-2px);
}

.plinth-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-bottom: 8px;
  border-bottom: 1px solid #eceff4;
}

.plinth-bar b {
  color: var(--emerald-deep);
}

.plinth-stage {
  aspect-ratio: 4 / 3;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  background: #ffffff;
}

.plinth-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.plinth-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid #eceff4;
}

.plinth-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.84rem;
  line-height: 1.22;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plinth-price {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--lihv-deep);
  flex-shrink: 0;
}

/* Store Strip */
.store-strip {
  background: #ffffff;
  border-bottom: 1px solid var(--hairline);
  padding: 12px 0;
}

.store-strip-row {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.store-strip-row::-webkit-scrollbar {
  display: none;
}

.store-strip-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  white-space: nowrap;
  padding-right: 4px;
}

.store-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  background: var(--lab-bg);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.store-chip em {
  font-style: normal;
  color: var(--ink-muted);
}

.store-chip:hover {
  border-color: var(--ink);
  background: #ffffff;
}

/* ---------------- Signature Utility 1: Video + ELRS Link Matrix ---------------- */
.matrix-shell {
  background: var(--plinth);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--carbon);
  border-radius: var(--radius);
  padding: 24px;
  margin-top: 28px;
  box-shadow: var(--shadow-plinth);
}

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

.ctrl-group h2,
.ctrl-group h3 {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 0 0 10px;
}

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

.matrix-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 58px;
  padding: 10px 12px;
  text-align: left;
  background: var(--lab-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}

.matrix-pill span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}

.matrix-pill small {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.matrix-pill:hover {
  border-color: var(--ink);
}

.matrix-pill.active {
  background: var(--carbon);
  border-color: var(--carbon);
}

.matrix-pill.active span {
  color: #ffffff;
}

.matrix-pill.active small {
  color: #34d399;
}

.matrix-readout {
  background: var(--carbon);
  color: #f8fafc;
  border-radius: var(--radius-xs);
  padding: 20px;
  border-left: 4px solid var(--emerald);
}

.readout-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--carbon-line);
}

.readout-banner h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.28rem;
  margin: 4px 0 0;
  color: #ffffff;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-xs);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.45);
  color: #6ee7b7;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.status-chip.amber {
  background: rgba(255, 90, 31, 0.12);
  border-color: rgba(255, 90, 31, 0.4);
  color: var(--lihv-deep);
}

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

.spec-box {
  background: var(--carbon-mid);
  border: 1px solid var(--carbon-line);
  border-radius: var(--radius-xs);
  padding: 12px;
}

.spec-box h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lihv);
  margin: 0 0 8px;
}

.spec-box ul {
  margin: 0;
  padding-left: 16px;
  font-size: 0.82rem;
  color: rgba(248, 250, 252, 0.86);
}

.spec-box li {
  margin-bottom: 4px;
}

.spec-box p {
  margin: 0;
  font-size: 0.81rem;
  color: rgba(248, 250, 252, 0.84);
  line-height: 1.45;
}

/* ---------------- Signature Utility 2: LiPo / LiHV & Parallel Charge Sizer ---------------- */
.calc-shell {
  background: var(--plinth);
  border: 1px solid var(--hairline);
  border-top: 3px solid var(--lihv);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-plinth);
}

.calc-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.14fr);
  gap: 26px;
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eceff4;
}

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

.field-row label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
}

.cell-pills,
.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;
  background: var(--lab-bg);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.13s ease, border-color 0.13s ease, color 0.13s ease;
}

.cell-btn:hover {
  border-color: var(--ink);
}

.cell-btn.active {
  background: var(--carbon);
  border-color: var(--carbon);
  color: var(--lihv);
}

input[type="range"] {
  width: 100%;
  accent-color: var(--lihv);
  min-height: 32px;
}

.calc-gauges {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.gauge-card {
  background: var(--carbon);
  color: #f8fafc;
  border: 1px solid var(--carbon-line);
  border-top: 3px solid var(--lihv);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gauge-card.teal {
  border-top-color: var(--emerald);
}

.gauge-card span {
  font-family: var(--mono);
  font-size: 0.67rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(248, 250, 252, 0.66);
}

.gauge-card strong {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.38rem;
  color: #ffffff;
}

.gauge-card small {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: rgba(248, 250, 252, 0.72);
}

.parallel-alert {
  background: var(--emerald-tint);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-left: 4px solid var(--emerald);
  border-radius: var(--radius-xs);
  padding: 12px 14px;
  font-size: 0.84rem;
  color: #064e3b;
  margin-bottom: 14px;
}

.conn-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  border: 1px solid var(--hairline);
}

.conn-table th,
.conn-table td {
  padding: 9px 10px;
  text-align: left;
  border-bottom: 1px solid var(--hairline);
}

.conn-table th {
  background: var(--lab-alt);
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-mid);
}

.conn-table tr.rec-conn {
  background: #fff7ed;
  font-weight: 600;
}

.conn-table tr.rec-conn td:first-child {
  color: var(--lihv-deep);
}

/* ---------------- Swiss Hardware Specimen Product Cards ---------------- */
.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(244px, 1fr));
  gap: 14px;
}

.pcard {
  background: var(--plinth);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.pcard:hover {
  border-color: var(--carbon);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.pcard-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  padding: 18px;
  border-bottom: 1px solid #eceff4;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pcard-stage a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pcard-stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.pcard:hover .pcard-stage img {
  transform: scale(1.04);
}

.badge-deal {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--lihv);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

.badge-date {
  position: absolute;
  bottom: 8px;
  left: 8px;
  background: var(--carbon);
  color: #f8fafc;
  font-family: var(--mono);
  font-size: 0.66rem;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.save-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.14s ease, color 0.14s ease, background 0.14s ease;
}

.save-btn svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.save-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.save-btn.saved {
  background: var(--carbon);
  border-color: var(--carbon);
  color: var(--lihv);
}

.save-btn.saved svg {
  fill: currentColor;
}

.pcard-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  flex: 1;
}

.pcard-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.pcard-brand {
  font-weight: 700;
  color: var(--ink);
}

.pcard-title {
  font-family: var(--body);
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.36;
  margin: 0;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.pcard-title a:hover {
  color: var(--lihv-deep);
}

.size-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.size-pill {
  font-family: var(--mono);
  font-size: 0.66rem;
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  background: var(--lab-bg);
  border: 1px solid var(--hairline);
  color: var(--ink-mid);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcard-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eceff4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.price-now {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.04rem;
  color: var(--ink);
}

.price-was {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-muted);
  text-decoration: line-through;
}

/* ---------------- Toolbars, Chips, Kits, Videos, Stores & Detail ---------------- */
.chip-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--hairline-strong);
  background: var(--plinth);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink-mid);
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease, border-color 0.14s ease;
}

.chip:hover {
  border-color: var(--ink);
  color: var(--ink);
}

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

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  align-items: center;
}

.filter-input,
.filter-select {
  min-height: 44px;
  padding: 0 13px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--hairline-strong);
  background: var(--plinth);
  color: var(--ink);
  font-size: 0.92rem;
}

.filter-input {
  flex: 1 1 260px;
}

.filter-select {
  min-width: 180px;
}

.filter-input:focus,
.filter-select:focus {
  outline: 2px solid var(--carbon);
  outline-offset: 1px;
}

/* Build Kits */
.kit-grid,
.bgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.kit-card,
.bcard {
  background: var(--plinth);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.kit-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.kit-tag {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  background: #ecfdf5;
  color: var(--emerald-deep);
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.kit-tag.rc {
  background: #fff7ed;
  color: var(--lihv-deep);
  border-color: rgba(255, 90, 31, 0.35);
}

.kit-card h3,
.bcard h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.18rem;
  margin: 0;
}

.kit-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  background: var(--lab-bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
}

.kit-mini {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.kit-mini img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: #ffffff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  padding: 3px;
}

.kit-mini-info {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.82rem;
}

.kit-mini-info a {
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kit-mini-info span {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
}

.kit-foot {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eceff4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.policy-row {
  font-size: 0.84rem;
  color: var(--ink-mid);
  padding: 8px 10px;
  background: var(--lab-bg);
  border-left: 3px solid var(--carbon);
}

.policy-row a {
  text-decoration: underline;
}

/* Videos */
.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.vcard {
  background: var(--plinth);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.vstage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--carbon);
}

.vstage img,
.vstage iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.vdur {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(17, 19, 23, 0.92);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.vplay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 19, 23, 0.24);
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.vplay:hover {
  background: rgba(17, 19, 23, 0.44);
}

.vplay-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: var(--radius-xs);
  background: var(--carbon);
  color: #ffffff;
  border: 1px solid var(--lihv);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
}

.vbody {
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.vbody h3 {
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1.38;
  margin: 0;
}

.vchan-btn {
  background: none;
  border: 0;
  padding: 0;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--lihv-deep);
  cursor: pointer;
}

/* Detail & Legal */
.detail-card {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 32px;
  background: var(--plinth);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  margin-top: 14px;
}

.detail-media {
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid #eceff4;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}

.legal-card,
.remove-box {
  background: var(--plinth);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px;
}

.legal-card h2,
.remove-box h2 {
  font-family: var(--display);
  font-size: 1.2rem;
  margin: 0 0 10px;
}

.partners-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-list details {
  background: var(--plinth);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
}

.faq-list summary {
  font-weight: 600;
  cursor: pointer;
}

/* ---------------- Footer, Toast & Feedback ---------------- */
.foot {
  background: var(--carbon);
  color: rgba(248, 250, 252, 0.8);
  border-top: 2px solid var(--lihv);
  padding: 42px 0 50px;
}

.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 32px;
  align-items: start;
}

.foot-tag {
  margin: 10px 0 8px;
  font-weight: 600;
  color: #ffffff;
}

.foot-fee,
.foot-fine {
  font-size: 0.82rem;
  color: rgba(248, 250, 252, 0.6);
  margin: 6px 0 0;
  max-width: 54ch;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: center;
}

.foot-nav a,
.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.8);
  cursor: pointer;
}

.foot-nav a:hover,
.foot-link:hover {
  color: var(--lihv);
}

.foot-fb-dot {
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: 0;
  color: rgba(248, 250, 252, 0.42);
  cursor: pointer;
}

.toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 160;
  background: var(--carbon);
  color: #ffffff;
  border: 1px solid var(--lihv);
  padding: 12px 16px;
  border-radius: var(--radius-xs);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: var(--shadow-lift);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.toast.on {
  opacity: 1;
  transform: translateY(0);
}

#htfb-btn {
  display: none !important;
}

body.show-feedback #htfb-btn {
  display: flex !important;
}

/* ---------------- Responsive Breakpoints ---------------- */
@media (max-width: 1120px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .hangar-grid,
  .matrix-controls,
  .spec-columns,
  .calc-grid,
  .detail-card,
  .partners-wrap,
  .foot-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .wrap {
    padding: 0 16px;
  }
  .hide-sm {
    display: none;
  }
  .hangar-hero {
    padding: 30px 0 36px;
  }
  .hangar-bus,
  .pill-grid,
  .calc-gauges {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .conn-table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 374px) {
  .wrap {
    padding: 0 12px;
  }
  .logo-tag {
    display: none;
  }
  .plinth-grid,
  .hangar-bus,
  .pill-grid,
  .calc-gauges,
  .pgrid {
    grid-template-columns: 1fr;
  }
}


/* ==========================================================================
   V4 Overhaul: Full-Bleed 5-Column Tilted Mosaic Hero, Creator Hub & Makers
   ========================================================================== */
.logo-mark {
  width: 42px;
  height: 42px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.35));
}
.wordmark {
  font-size: 1.22rem;
  letter-spacing: 0.02em;
}
.nav a.nav-shop {
  background: var(--lihv);
  color: #ffffff !important;
  border-radius: 999px;
  padding: 0 15px;
  min-height: 36px;
  margin-right: 6px;
  border-bottom: 0;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(255, 90, 31, 0.36);
}
.nav a.nav-shop:hover {
  background: var(--lihv-hover);
  color: #111317 !important;
}
.nav a.nav-yt {
  color: #fdba74;
}
.nav a.nav-yt:hover,
.nav a.nav-yt.active {
  color: #ffffff;
}

.v4-hero {
  position: relative;
  overflow: hidden;
  background: #0b0d11;
  color: #f8fafc;
  min-height: min(650px, calc(100svh - 70px));
  display: flex;
  align-items: flex-end;
  border-bottom: 2px solid var(--lihv);
  isolation: isolate;
}
.v4-wall {
  position: absolute;
  inset: -18% -5% -18% -5%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  transform: rotate(-7deg);
  z-index: -2;
  pointer-events: none;
}
.v4-wall-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: cpWallFloat 76s linear infinite;
  will-change: transform;
}
.v4-wall-col.wc1 { animation-duration: 90s; animation-direction: reverse; }
.v4-wall-col.wc2 { animation-duration: 66s; }
.v4-wall-col.wc3 { animation-duration: 94s; animation-direction: reverse; }
.v4-wall-col.wc4 { animation-duration: 80s; }
@keyframes cpWallFloat {
  to { transform: translateY(-50%); }
}
.v4-wall-cell {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  overflow: hidden;
  background: #ffffff;
  padding: 12px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.48);
  flex: none;
}
.v4-wall-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.v4-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(64% 62% at 18% 82%, rgba(255, 90, 31, 0.23), transparent 65%),
    linear-gradient(96deg, rgba(11, 13, 17, 0.96) 0%, rgba(11, 13, 17, 0.89) 42%, rgba(11, 13, 17, 0.50) 76%, rgba(11, 13, 17, 0.34) 100%),
    linear-gradient(180deg, rgba(11, 13, 17, 0.28) 0%, rgba(11, 13, 17, 0.48) 54%, rgba(11, 13, 17, 0.95) 100%);
}
.v4-hero-inner {
  padding: 112px 0 46px;
  width: 100%;
}
.v4-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 6px 15px;
  border-radius: 999px;
  background: rgba(17, 19, 23, 0.78);
  border: 1px solid rgba(255, 113, 61, 0.52);
  color: #f8fafc;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}
.v4-live-pill:hover {
  color: #ffffff;
  border-color: var(--lihv);
}
.v4-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--lihv);
  box-shadow: 0 0 0 4px rgba(255, 90, 31, 0.28);
}
.v4-hero-copy {
  max-width: 720px;
}
.v4-hero-copy h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.55rem, 5.5vw, 4.5rem);
  line-height: 1.01;
  letter-spacing: -0.025em;
  margin: 16px 0 14px;
  color: #ffffff;
  text-shadow: 0 8px 34px rgba(0, 0, 0, 0.55);
}
.v4-hero-copy h1 span {
  color: #ff7a45;
}
.v4-hero-sub {
  font-size: 1.06rem;
  line-height: 1.55;
  color: #e2e8f0;
  max-width: 56ch;
  margin: 0 0 22px;
}
.v4-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.v4-hero-ctas .btn {
  min-height: 48px;
  padding: 0 22px;
  font-size: 0.88rem;
}
.v4-btn-yt {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(17, 19, 23, 0.82);
  color: #ffffff !important;
  border: 1.5px solid rgba(248, 250, 252, 0.55);
  border-radius: var(--radius);
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.v4-btn-yt:hover {
  background: #ffffff;
  color: #111317 !important;
  border-color: #ffffff;
}
.v4-hero-disclose {
  margin: 16px 0 0;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.82);
}
.v4-hero-disclose a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Creator Channel Directory Grid */
.creator-grid-v4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: 16px;
}
.ccard-v4 {
  background: var(--plinth);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-plinth);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.ccard-v4:hover {
  transform: translateY(-2px);
  border-color: var(--lihv);
}
.ccard-v4.active {
  border: 2px solid var(--lihv);
  background: #fff9f6;
}
.ccard-top {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ccard-avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--carbon) 0%, #2b3344 100%);
  color: #ffffff;
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 90, 31, 0.55);
}
.ccard-ident {
  min-width: 0;
  flex: 1;
}
.ccard-name {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  line-height: 1.2;
}
.ccard-handle {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--ink-muted);
}
.ccard-subs {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  background: var(--carbon);
  color: #ffffff;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.ccard-bio {
  margin: 0;
  font-size: 0.86rem;
  color: var(--ink-mid);
  line-height: 1.45;
  flex: 1;
}
.ccard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--lab-alt);
}

/* Ecosystem Makers Strip & Cards */
.maker-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.maker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--plinth);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.14s ease, background 0.14s ease;
}
.maker-pill:hover {
  border-color: var(--lihv);
}
.maker-pill.on {
  background: var(--carbon);
  color: #ffffff;
  border-color: var(--carbon);
}
.ecogrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 14px;
}
.ecocard {
  background: var(--plinth);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-plinth);
}
.ecocard h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
}

@media (max-width: 900px) {
  .v4-wall {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    inset: -12% -14% -12% -14%;
  }
  .v4-wall-col.wc3,
  .v4-wall-col.wc4 {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .v4-wall-col {
    animation: none;
  }
}

/* ---------------- V5 Subpage & Brand Mosaic Showcase Overhaul ---------------- */
.brands-hero-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 18px;
  flex-wrap: wrap;
}
.brands-hero-head h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  margin: 6px 0 6px;
}
.brands-hero-head .lede {
  margin: 0;
  max-width: 68ch;
}
.brands-sort-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bgrid-v5 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.bcard-v5 {
  background: var(--plinth);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-plinth);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.bcard-v5:hover {
  transform: translateY(-2px);
  border-color: var(--lihv);
  box-shadow: 0 14px 28px rgba(17, 19, 23, 0.11);
}
.bmosaic {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4px;
  aspect-ratio: 16 / 9.5;
  overflow: hidden;
  background: #e2e8f0;
  border-bottom: 1px solid var(--hairline);
  text-decoration: none;
}
.bmosaic-cell {
  background: #ffffff;
  padding: 10px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
}
.bmosaic-cell.hero {
  grid-row: 1 / span 2;
  padding: 14px;
}
.bmosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.18s ease;
}
.bcard-v5:hover .bmosaic-cell img {
  transform: scale(1.03);
}
.bcard-v5-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.bcard-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.bcard-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.69rem;
  font-weight: 600;
  line-height: 1.2;
}
.bcard-pill.domain {
  background: #f1f5f9;
  color: #334155;
  border: 1px solid #dbe3ed;
}
.bcard-pill.skus {
  background: var(--carbon);
  color: #ffffff;
}
.bcard-pill.deal {
  background: #fff1eb;
  color: #c73c0a;
  border: 1px solid #fdba74;
}
.bcard-v5-title {
  margin: 0;
  font-family: var(--display);
  font-size: 1.22rem;
  line-height: 1.24;
}
.bcard-v5-title a {
  color: var(--carbon);
  text-decoration: none;
}
.bcard-v5-title a:hover {
  color: var(--lihv-deep);
}
.bcard-focus {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bcard-ship-line {
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  font-size: 0.77rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bcard-v5-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 4px;
}
.brands-eco-band {
  background: var(--plinth);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg, 14px);
  padding: 20px 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-plinth);
}

/* Upgraded Kit Card Mosaic */
.kit-card.kit-card-v5 {
  padding: 0;
  overflow: hidden;
  gap: 0;
}
.kit-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  aspect-ratio: 16 / 4.6;
  background: #e2e8f0;
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
}
.kit-mosaic-cell {
  background: #ffffff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.kit-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.kit-card-v5-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

@media (max-width: 1100px) {
  .bgrid-v5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  .bgrid-v5 {
    grid-template-columns: 1fr;
  }
  .kit-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    aspect-ratio: 16 / 9;
  }
}

/* ---------------- V6 Mobile fit: no side-to-side scroll at 320-480px ---------------- */
@media (max-width: 640px) {
  .hangar-grid,
  .matrix-controls,
  .spec-columns,
  .calc-grid,
  .detail-card,
  .partners-wrap,
  .foot-inner,
  .bgrid-v5,
  .kit-grid,
  .bgrid,
  .vgrid,
  .legal-grid,
  .creator-grid-v4 {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-head,
  .brands-hero-head,
  .bcard-v5-actions,
  .kit-top,
  .kit-foot,
  .ccard-foot,
  .pcard-foot,
  .field-row label {
    flex-wrap: wrap;
  }
  .calc-shell,
  .calc-inputs,
  .kit-card,
  .bcard,
  .bcard-v5,
  .legal-card,
  .remove-box,
  .ccard-v4,
  .vcard,
  .pcard {
    min-width: 0;
    max-width: 100%;
  }
  .legal-card,
  .remove-box {
    overflow-wrap: anywhere;
  }
  select,
  input:not([type="checkbox"]):not([type="radio"]) {
    max-width: 100%;
    min-width: 0;
  }
  .section-head .btn,
  .bcard-v5-actions .btn {
    max-width: 100%;
    white-space: normal;
    height: auto;
    padding-top: 8px;
    padding-bottom: 8px;
    text-align: center;
  }
  .toast {
    left: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
  }
  .vmodal,
  .vmodal-box {
    max-width: 100%;
  }
}
@media (max-width: 480px) {
  .top-inner {
    gap: 8px;
  }
  .top-inner > .logo {
    min-width: 0;
    flex-shrink: 1;
    gap: 7px;
  }
  .logo > * {
    min-width: 0;
  }
  .logo .logo-mark {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .logo .logo-box {
    flex-shrink: 0;
  }
  .logo .wordmark,
  .logo .wordmark-main {
    font-size: clamp(0.92rem, 4.6vw, 1.3rem);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo .wordmark-sub,
  .logo .logo-sub {
    display: none;
  }
  .top-actions {
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
  }
  .top-actions .hide-sm {
    display: none;
  }
  .top-actions > a {
    min-width: 42px;
    min-height: 42px;
    padding: 0 9px;
    gap: 5px;
    justify-content: center;
  }
  .top-actions .menu-btn {
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    justify-content: center;
  }
  .top-actions .menu-btn > span:not(.menu-ico) {
    display: none;
  }
}
@media (max-width: 374px) {
  .top-actions {
    gap: 4px;
  }
  .top-actions > a {
    min-width: 40px;
    min-height: 40px;
    padding: 0 7px;
    gap: 4px;
  }
  .top-actions .menu-btn {
    min-width: 40px;
    min-height: 40px;
    padding: 0 11px;
  }
  .logo .logo-mark {
    width: 28px;
    height: 28px;
  }
}

html, body {
  overflow-x: clip;
}
