:root {
  --ink: #0b1220;
  --text: #243247;
  --muted: #55657c;
  --faint: #7b8aa0;
  --line: #dbe3ee;
  --line-soft: #edf1f7;
  --bg: #f4f6fa;
  --card: #ffffff;
  --primary: #1d4ed8;
  --primary-soft: #e8eeff;
  --green: #059669;
  --amber: #b45309;
  --radius-lg: 16px;
  --radius: 13px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 10px 30px -24px rgba(15, 23, 42, .35);
  --font: "Microsoft YaHei UI", "Microsoft YaHei", "PingFang SC",
    "Noto Sans CJK SC", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, ul { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
img, video { max-width: 100%; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 6px;
}

.app {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 24px 72px;
}

/* ---------- hero ---------- */

.hero {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px 24px;
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .09em;
  color: var(--muted);
  font-weight: 650;
  margin-bottom: 6px;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.28;
  font-weight: 750;
  letter-spacing: -.01em;
  color: var(--ink);
}

.hero .sub {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--muted);
}

.hero .sub b { color: var(--text); font-weight: 650; }

.hero-foot {
  display: flex;
  align-items: baseline;
  gap: 4px 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding-top: 11px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--muted);
}

.hero-foot .vend-role { color: var(--faint); }
.hero-foot .vend-role::after { content: "："; }
html[lang="en"] .hero-foot .vend-role::after { content: " by "; }

.hero-foot .vend {
  font-weight: 650;
  color: var(--text);
  letter-spacing: .01em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: #edf1f7;
  border-radius: 999px;
}

.seg button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  transition: background .16s ease, color .16s ease;
}

.seg button:hover { color: var(--ink); }

.seg button.on {
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(15, 23, 42, .12);
}

.btn {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 10px;
  padding: 7px 13px;
  font-size: 12.5px;
  font-weight: 600;
  transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.btn:hover { border-color: #b9c6d8; }
.btn.ghost { background: transparent; }
.btn.solid { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn.solid:hover { background: #1a45c2; }

/* ---------- filter bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
  margin: 0 -24px 6px;
  padding: 12px 24px;
  background: rgba(244, 246, 250, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}

.bar.stuck { border-bottom-color: var(--line); }

.chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: #37465e;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 600;
  transition: all .16s ease;
  white-space: nowrap;
}

.chip:hover { border-color: #b9c6d8; }

.chip.on {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.chip .n {
  font-weight: 500;
  opacity: .68;
  margin-left: 5px;
  font-variant-numeric: tabular-nums;
}

.chip.tiny { padding: 4px 10px; font-size: 12px; font-weight: 600; }

.bar .spacer { flex: 1 1 0; }

.bar .tally {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
}

.bar .tally b { color: var(--ink); font-weight: 650; }

/* ---------- product tabs ---------- */

.ptabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.ptab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

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

.ptab .thumb {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f4f9;
  border: 1px solid var(--line-soft);
}

.ptab .thumb img { width: 100%; height: 100%; object-fit: cover; }

.ptab .meta { min-width: 0; }

.ptab b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ptab small {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}

.swatch {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, .18);
  flex: 0 0 auto;
}

.ptab.on {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, .1);
}

/* ---------- product detail ---------- */

.detail {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.detail .shot {
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  min-height: 260px;
}

.detail .shot img { width: 100%; height: 100%; max-height: 380px; object-fit: contain; }

.detail .info { padding: 20px 22px; }

.detail .info h2 {
  font-size: 21px;
  font-weight: 750;
  color: var(--ink);
  line-height: 1.3;
}

.detail .info .code {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: .04em;
  margin-top: 2px;
}

.specs {
  margin-top: 14px;
  border-top: 1px solid var(--line-soft);
}

.specs div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
}

.specs span { color: var(--muted); }
.specs b { font-weight: 650; color: var(--text); text-align: right; }

/* 尺码参考（来自客户 invoice 的 SIZE(US-L) 一栏） */
.fitref {
  margin-top: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}

.fitref-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  background: #f7f9fd;
  border-bottom: 1px solid var(--line-soft);
}

.fitref-head b { font-size: 12.5px; color: var(--ink); font-weight: 650; }
.fitref-head span { font-size: 11px; color: var(--muted); }

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

.fitref-grid > div {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
}

.fitref-grid > div:nth-child(2n) { border-right: 0; }
.fitref-grid > div:nth-last-child(-n + 2) { border-bottom: 0; }

.fitref-grid span {
  font-size: 11px;
  color: var(--muted);
  min-width: 46px;
}

.fitref-grid b { font-size: 13px; color: var(--text); font-weight: 650; }
.fitref-grid em { font-style: normal; font-size: 11.5px; color: var(--faint); }

.cover {
  margin-top: 16px;
}

.cover .line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 6px;
}

.cover .line b { color: var(--ink); font-size: 13px; }

.cover .track {
  height: 6px;
  border-radius: 999px;
  background: #e9eef6;
  overflow: hidden;
}

.cover .fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #1d4ed8, #059669);
}

.cover .hint {
  margin-top: 7px;
  font-size: 12px;
  color: var(--faint);
}

/* ---------- groups ---------- */

.group { margin-top: 26px; }

.group-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
}

.group-head h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
}

.group-head span {
  font-size: 12px;
  color: var(--muted);
}

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

/* 真人上身图是竖构图，卡片也用竖版，避免大量留白 */
.grid.fit {
  grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
}

.grid.fit .card .frame { aspect-ratio: 3 / 4; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  padding: 0;
  text-align: left;
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: #c3cfe0;
  box-shadow: 0 12px 26px -20px rgba(15, 23, 42, .5);
}

.card .frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #fff;
  overflow: hidden;
  border-bottom: 1px solid var(--line-soft);
}

.card .frame img,
.card .frame video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.card .cap {
  padding: 9px 12px 12px;
}

.card .cap b {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink);
}

.card .cap p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.badge {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(11, 18, 32, .62);
  color: #fff;
  backdrop-filter: blur(4px);
}

.badge.pending {
  background: rgba(255, 255, 255, .92);
  color: var(--amber);
  border: 1px solid #f0dcc2;
}

.badge.count {
  left: auto;
  right: 8px;
  background: rgba(255, 255, 255, .94);
  color: var(--text);
  border: 1px solid rgba(15, 23, 42, .1);
}

.cellbtn .badge.count { right: 6px; }

.play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(11, 18, 32, .18);
}

.play i {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  display: grid;
  place-items: center;
  font-style: normal;
  color: var(--ink);
  font-size: 15px;
  padding-left: 3px;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .6);
}

.dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  font-size: 11px;
  font-weight: 650;
  color: #fff;
  background: rgba(11, 18, 32, .72);
  padding: 2px 6px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

/* empty slot */

.slot {
  border: 1px dashed #cfdaea;
  background:
    repeating-linear-gradient(45deg, #fafbfe 0 8px, #f4f7fc 8px 16px);
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--faint);
  text-align: center;
  padding: 10px;
}

.slot b { font-size: 12.5px; font-weight: 650; color: #6d7d94; }
.slot small { font-size: 11.5px; }
.slot.card-slot { aspect-ratio: auto; }
.slot.card-slot .slot-inner { aspect-ratio: 4 / 3; width: 100%; }

.frame .slot {
  aspect-ratio: auto;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: repeating-linear-gradient(45deg, #fbfcfe 0 10px, #f3f6fb 10px 20px);
}

.card.as-slot { cursor: default; }
.card.as-slot:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* ---------- compare matrix ---------- */

.matrix-wrap {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: auto;
  margin-top: 8px;
}

.matrix {
  display: grid;
  grid-template-columns: minmax(148px, 180px) repeat(var(--cols), minmax(168px, 1fr));
  min-width: 100%;
}

.matrix.dense .cellbtn,
.matrix.dense .cell-empty,
.matrix.dense .cell-na { height: 150px; }

.cmpbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.cmpintro {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--muted);
}

.mcell {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 8px;
  min-width: 0;
}

.mhead {
  position: sticky;
  top: 0;
  z-index: 3;
  background: #f7f9fd;
  padding: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}

.mhead .sub {
  display: block;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.mhead.corner { left: 0; z-index: 4; font-size: 11.5px; color: var(--muted); font-weight: 600; letter-spacing: .05em; }

.mgroup {
  grid-column: 1 / -1;
  background: #f1f4f9;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 6px 12px;
  border-bottom: 1px solid var(--line-soft);
}

.mlabel {
  position: sticky;
  left: 0;
  z-index: 2;
  background: #fbfcfe;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 12px 10px 0;
}

.mlabel .k {
  font-size: 10.5px;
  color: var(--faint);
  font-weight: 600;
  letter-spacing: .03em;
}

.cellbtn {
  display: block;
  width: 100%;
  height: 250px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  overflow: hidden;
  background: #fff;
  position: relative;
  transition: box-shadow .16s ease;
}

.cellbtn img { width: 100%; height: 100%; object-fit: contain; display: block; }

.cellbtn:hover { box-shadow: 0 0 0 2px var(--primary); }

.cellbtn.duo,
.bigduo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #fff;
}

.cellbtn.duo .half {
  position: relative;
  display: block;
  overflow: hidden;
  height: 100%;
  background: #fff;
}

.cellbtn.duo img { width: 100%; height: 100%; object-fit: contain; }

.bigduo { height: 100%; }
.bigduo .big { height: 100%; }

.ml {
  position: absolute;
  left: 4px;
  bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: rgba(11, 18, 32, .62);
  border-radius: 4px;
  padding: 0 5px;
  line-height: 16px;
}

.cellbtn .badge { top: 6px; left: 6px; font-size: 10.5px; padding: 2px 6px; }

.cell-empty,
.cell-na {
  height: 250px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  text-align: center;
  font-size: 11.5px;
  font-weight: 600;
  padding: 6px;
}

.cell-empty {
  border: 1px dashed #cfdaea;
  color: var(--amber);
  background: repeating-linear-gradient(45deg, #fcfdff 0 7px, #f7f9fd 7px 14px);
}

.cell-na { background: #f8fafc; color: #97a4b6; border: 1px solid var(--line-soft); }

/* ---------- single view compare ---------- */

.viewpick {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-bottom: 4px;
}

.vsingle {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
  align-items: start;
}

.vcol {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.vcol header {
  padding: 11px 14px 9px;
  border-bottom: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: 8px;
}

.vcol header b { font-size: 14px; color: var(--ink); }
.vcol header .swatch { margin-left: auto; }

.vcol .big {
  height: clamp(210px, 22vw, 320px);
  background: #fff;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  position: relative;
}

.vcol .big img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* 单视图对比：一个部位的全部照片摊开，第一张占满一行，其余两列 */
.vcol .stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  background: #fff;
}

.vcol .stack button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #fff;
  overflow: hidden;
  cursor: zoom-in;
}

.vcol .stack img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.vcol .stack .hero {
  grid-column: 1 / -1;
  height: clamp(200px, 21vw, 310px);
}

.vcol .stack .mini { aspect-ratio: 4 / 3; }

.vcol .cap {
  padding: 10px 14px 13px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.vcol .cap b { display: block; color: var(--text); font-size: 12.5px; font-weight: 650; margin-bottom: 2px; }

.vcol .empty {
  height: clamp(170px, 22vw, 320px);
  display: grid;
  place-items: center;
  color: var(--amber);
  font-size: 12.5px;
  font-weight: 600;
  background: repeating-linear-gradient(45deg, #fcfdff 0 8px, #f7f9fd 8px 16px);
  border-bottom: 1px dashed #e3d3bd;
}

/* ---------- footer ---------- */

.foot {
  margin-top: 34px;
  font-size: 12px;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

/* ---------- lightbox ---------- */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(8, 12, 20, .9);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  animation: fade .16s ease;
}

.lb[hidden] { display: none; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.lb-stage {
  position: relative;
  width: min(1120px, 100%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lb-media {
  background: #10151f;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
}

.lb-media img,
.lb-media video {
  max-height: 72vh;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

.lb-caption {
  color: #dfe7f2;
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
}

.lb-caption b { font-weight: 650; color: #fff; }
.lb-caption .pos { color: #93a2b8; font-variant-numeric: tabular-nums; white-space: nowrap; }

.lb-close,
.lb-nav {
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  color: #fff;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-size: 20px;
  line-height: 1;
  transition: background .16s ease;
}

.lb-close:hover,
.lb-nav:hover { background: rgba(255, 255, 255, .22); }

.lb-close {
  position: absolute;
  top: -46px;
  right: 0;
  font-size: 24px;
}

.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.lb-nav.prev { left: 8px; }
.lb-nav.next { right: 8px; }

.lb-empty {
  color: #cbd5e1;
  font-size: 13px;
  padding: 60px 20px;
  text-align: center;
  line-height: 1.7;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: rgba(11, 18, 32, .94);
  color: #fff;
  font-size: 13px;
  padding: 9px 16px;
  border-radius: 999px;
  z-index: 120;
  box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .8);
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .detail { grid-template-columns: 1fr; }
  .detail .shot { min-height: 220px; }
}

@media (max-width: 760px) {
  .app { padding: 14px 14px 56px; }
  .bar { margin: 0 -14px 4px; padding: 10px 14px; }
  .hero { padding: 18px; }
  .hero h1 { font-size: 23px; }
  .ptabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .ptab {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 9px;
  }
  .ptab .thumb { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .ptab b { font-size: 13px; }
  .ptab small { font-size: 11px; flex-wrap: wrap; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .vsingle { grid-template-columns: 1fr; }
  .lb-nav { width: 34px; height: 34px; }
  .lb-caption { flex-direction: column; gap: 4px; }
  .lb-close { top: -44px; }

  .bar .chips.groups {
    width: 100%;
  }

  .matrix { grid-template-columns: minmax(94px, 104px) repeat(var(--cols), minmax(124px, 1fr)); }
  .cellbtn,
  .cell-empty,
  .cell-na { height: 132px; }
  .mhead { padding: 9px 10px; font-size: 12.5px; }
  .mhead .sub { white-space: nowrap; }
  .mlabel { font-size: 12px; padding: 10px 8px 0; }
  .mcell { padding: 6px; }
  .vcol .big,
  .vcol .empty { height: 230px; }
  .vcol .cap { padding: 9px 12px 11px; }
}

/* ---------- print ---------- */

@media print {
  body { background: #fff; }
  .bar, .ptabs, .hero-actions, .foot, .lb, .toast { display: none !important; }
  .app { max-width: none; padding: 0; }
  .hero, .panel, .card, .matrix-wrap, .vcol { box-shadow: none; }
  .card, .vcol, .matrix { break-inside: avoid; }
  .matrix-wrap { overflow: visible; }
}
