:root {
  --ink: #181818;
  --ink-2: #4C5855;
  --ink-3: #7B8683;
  --line: #E5E9E6;
  --line-strong: #CDD5D1;
  --bg-page: #F7F8F7;
  --bg-soft: #F3F6F4;
  --brand: #585858;
  --brand-dark: #474747;
  --brand-soft: #E6F3EE;
  --accent: #ABABAB;
  --danger: #4D4D4D;
  --radius: 8px;
}

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

[hidden] { display: none !important; }

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

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg-page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon { width: 18px; height: 18px; flex: none; }
.icon--16 { width: 16px; height: 16px; }
.icon--28 { width: 28px; height: 28px; }

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

.wrap {
  max-width: 1180px;
  margin-inline: auto;
  padding: 28px 20px 56px;
}

.wrap--narrow { max-width: 820px; }

.view { display: none; }
.view.is-active { display: block; animation: fade-in 0.2s ease both; }
.view:focus, .view h1:focus, .view h2:focus { outline: none; }

@keyframes fade-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #FFFFFF;
  border-bottom: 1px solid var(--line);
}

.topbar__inner {
  max-width: 1180px;
  margin-inline: auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.me {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 4px 10px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.me:hover { background: var(--bg-soft); }
.me__name { font-size: 14px; font-weight: 500; }

.nav { display: flex; align-items: center; gap: 2px; margin-inline: auto; }

.nav__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav__item:hover { background: var(--bg-soft); color: var(--ink); }
.nav__item[aria-current="page"] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

.nav__badge {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #2B2B2B;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.3;
  text-align: right;
}

.topbar__brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.topbar__brand-mark {
  width: 36px;
  height: 36px;
  flex: none;
  display: block;
  border-radius: 9px;
}

.topbar__brand-name { font-family: Georgia, 'Times New Roman', 'Songti SC', serif; font-size: 17px; font-weight: 700; color: var(--ink-2); }
.topbar__brand-tagline { font-family: Georgia, 'Times New Roman', 'Songti SC', serif; font-size: 11.5px; font-weight: 400; color: var(--ink-3); }

/* ---------- Avatars ---------- */

.avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  background-color: var(--brand-soft);
  background-size: cover;
  background-position: center;
  color: var(--brand);
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
}

.avatar--sm { width: 30px; height: 30px; font-size: 11.5px; }
.avatar--xl { width: 84px; height: 84px; font-size: 26px; }
.avatar.has-photo { color: transparent; }

/* ---------- Page heads ---------- */

.page-head { margin-bottom: 24px; }
.page-head--split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.page-head h1 { margin: 0; font-size: 26px; font-weight: 600; }

.eyebrow {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand);
}

.lede {
  margin: 6px 0 0;
  max-width: 60ch;
  font-size: 14.5px;
  color: var(--ink-3);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 44px 0 18px;
  flex-wrap: wrap;
}

.section-head h2 { margin: 0; font-size: 20px; font-weight: 600; }

.link-arrow {
  font-size: 14px;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

.hint { margin: 0; font-size: 12.5px; color: var(--ink-3); }
.label-note { font-weight: 400; color: var(--ink-3); }
.count { font-size: 14px; font-weight: 500; color: var(--ink-3); }

/* ---------- Grids ---------- */

.grid { display: grid; gap: 16px; }
.grid--products { grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); }
.grid--videos { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

/* ---------- Cards ---------- */

.card {
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 6px 18px rgba(24, 24, 24, 0.08);
  transform: translateY(-2px);
}

.thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  display: grid;
  place-items: center;
}

.thumb svg { width: 54px; height: 54px; color: rgba(24, 24, 24, 0.5); }

.tint-mint { background: #EFEFEF; }
.tint-sand { background: #E7E7E7; }
.tint-peach { background: #F2F2F2; }
.tint-sky { background: #E9E9E9; }
.tint-stone { background: #EDEDED; }
.tint-blush { background: #F1F1F1; }

.thumb--photo { background: #FFFFFF; padding: 12px; }
.thumb img { width: 100%; height: 100%; object-fit: contain; }

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 600;
}

.card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 14px 16px;
}

.card__brand { font-size: 12px; color: var(--ink-3); }

.card__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

.card__name a { color: inherit; text-decoration: none; }
.card__name a:hover { text-decoration: underline; text-underline-offset: 2px; }

.card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 10px;
  font-size: 12.5px;
  color: var(--ink-3);
}

.card__meta > span { white-space: nowrap; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--ink-2);
  font-weight: 500;
}

.rating svg { width: 13px; height: 13px; color: var(--accent); }

.card__foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.samples { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Video cards ---------- */

.video-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; }

.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
}

.video-thumb__play {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.93);
  color: var(--ink);
}

.video-thumb__play .icon { width: 22px; height: 22px; }

.video-duration {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(24, 24, 24, 0.78);
  color: #FFFFFF;
  font-size: 11.5px;
}

.video-card__body { display: flex; gap: 10px; padding: 12px 14px 14px; }

.video-card__title {
  margin: 0 0 4px;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.45;
}

.video-card__sub { margin: 0; font-size: 12.5px; color: var(--ink-3); }

/* ---------- Chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }

.chip {
  appearance: none;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.chip:hover { border-color: var(--ink-3); color: var(--ink); }
.chip[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: #FFFFFF;
}

.chips--sm { margin-bottom: 0; gap: 6px; }
.chips--sm .chip { padding: 5px 11px; font-size: 12.5px; }

/* ---------- Form controls ---------- */

.input, .textarea, .select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-size: 14.5px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.input { height: 40px; }
.textarea { resize: vertical; line-height: 1.6; }

.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(88, 88, 88, 0.14);
}

.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.input[readonly] { background: var(--bg-soft); color: var(--ink-3); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.btn--primary { background: var(--brand); color: #FFFFFF; }
.btn--primary:hover { background: var(--brand-dark); }

.btn--ghost {
  background: #FFFFFF;
  border-color: var(--line-strong);
  color: var(--ink);
  font-weight: 500;
}
.btn--ghost:hover { background: var(--bg-soft); border-color: var(--ink-3); }

.btn--link {
  height: auto;
  padding: 6px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn--link:hover { color: var(--ink); }

.btn--sm { height: 34px; padding: 0 13px; font-size: 13.5px; border-radius: 6px; }

/* ---------- Product detail ---------- */

.product-layout {
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 36px;
  margin-bottom: 36px;
}

.product-media { display: flex; flex-direction: column; }

.media-box {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
}

.media-box svg { width: 130px; height: 130px; color: rgba(24, 24, 24, 0.48); }
.media-box .badge { top: 14px; left: 14px; }

.media-box--photo {
  background: #FFFFFF;
  border: 1px solid var(--line);
  padding: 18px;
}

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

.price { font-weight: 600; color: var(--ink); }

.btn--block { width: 100%; margin-top: 12px; }
.hint--center { margin-top: 8px; text-align: center; }

.product-name {
  margin: 6px 0 10px;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.3;
}

.spec-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 20px;
  margin: 22px 0;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.spec-list dt { color: var(--ink-3); }
.spec-list dd { margin: 0; color: var(--ink); font-weight: 500; }

.apply-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

.panelbox--spaced { margin-top: 28px; }

.req-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------- Products layout ---------- */

.products-layout {
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: 28px;
}

.rail-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

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

.cat-rail__title {
  margin: 0 0 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.cat-rail__list { display: flex; flex-direction: column; gap: 2px; }

.cat {
  appearance: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cat:hover { background: var(--bg-soft); color: var(--ink); }
.cat[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); font-weight: 600; }
.cat__count { font-size: 12px; color: var(--ink-3); }
.cat[aria-pressed="true"] .cat__count { color: var(--brand); }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.toolbar__right { display: flex; align-items: center; gap: 10px; }
.toolbar .select { width: auto; height: 38px; padding-block: 0; }

.result-count { margin: 0; font-size: 13.5px; color: var(--ink-3); }

.empty {
  margin: 0;
  padding: 40px 20px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
  font-size: 14px;
  color: var(--ink-3);
}

/* ---------- Detail views ---------- */

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  padding: 6px 10px 6px 6px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-2);
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.back:hover { background: var(--bg-soft); color: var(--ink); }

.player {
  position: relative;
  aspect-ratio: 16 / 9;
  margin-bottom: 22px;
  border-radius: var(--radius);
  background: #202020;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.player__play {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.player__duration {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 3px 8px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.55);
  color: #FFFFFF;
  font-size: 12px;
}

.detail-title { margin: 0 0 14px; font-size: 22px; font-weight: 600; line-height: 1.35; }

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

.creator { display: flex; align-items: center; gap: 10px; }
.creator__name { margin: 0; font-size: 14.5px; font-weight: 600; }
.creator__sub { margin: 0; font-size: 12.5px; color: var(--ink-3); }

.detail-desc {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-2);
}

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }

.tag {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink-2);
  font-size: 12.5px;
}

/* ---------- Comment / reply panels ---------- */

.panelbox {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.panelbox__title { margin: 0 0 16px; font-size: 17px; font-weight: 600; }

.comment-form { display: flex; gap: 12px; margin-bottom: 20px; }
.comment-form__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }

.comment-form__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.comment {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}

.comment:first-child { border-top: 0; padding-top: 0; }
.comment__body { flex: 1; }

.comment__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 3px;
}

.comment__author { font-size: 13.5px; font-weight: 600; }
.comment__time { font-size: 12px; color: var(--ink-3); }

.comment__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-2);
}

/* ---------- Community ---------- */

.composer {
  display: flex;
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.composer__body { flex: 1; display: flex; flex-direction: column; gap: 10px; }

.composer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.post {
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s ease;
}

.post:hover { border-color: var(--line-strong); }

.post__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.post__author { font-size: 13.5px; font-weight: 600; }
.post__time { font-size: 12px; color: var(--ink-3); }

.post__tag {
  margin-left: auto;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11.5px;
  font-weight: 600;
}

.post__title { margin: 0 0 6px; font-size: 16.5px; font-weight: 600; line-height: 1.4; }
.post__title a { color: inherit; text-decoration: none; }
.post__title a:hover { text-decoration: underline; text-underline-offset: 3px; }

.post__body {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
}

.post__foot { display: flex; align-items: center; gap: 8px; }

.action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  font: inherit;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.action:hover { background: var(--bg-soft); color: var(--ink); }
.action.is-on { color: var(--brand); }
.action svg { width: 15px; height: 15px; }

.thread {
  padding: 22px;
  margin-bottom: 20px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

/* ---------- Notifications ---------- */

.notice-list {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.notice {
  display: flex;
  gap: 14px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.notice:first-child { border-top: 0; }
.notice.is-unread { background: #F6FBF9; }

.notice__icon {
  width: 36px;
  height: 36px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--brand-soft);
  color: var(--brand);
}

.notice__body { flex: 1; min-width: 0; }

.notice__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.notice__sender { font-size: 13.5px; font-weight: 600; }

.verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 600;
}

.notice__time { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.notice__title { margin: 0 0 2px; font-size: 14.5px; font-weight: 600; }
.notice__text { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }

.dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); }

/* ---------- Profile ---------- */

.profile-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.profile-top__actions { display: flex; flex-direction: column; gap: 6px; }
.profile-top__buttons { display: flex; align-items: center; gap: 10px; }
.profile-top label.btn { cursor: pointer; }

.completeness { margin-bottom: 26px; }

.completeness__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
}

.completeness__bar {
  height: 6px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.completeness__bar span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--brand);
  transition: width 0.25s ease;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 22px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; }
.field label, .field legend { padding: 0; font-size: 13.5px; font-weight: 500; color: var(--ink-2); }
.field--wide { grid-column: 1 / -1; }

.error { margin: 0; font-size: 12.5px; color: var(--danger); }
.field.is-invalid .input { border-color: var(--danger); }

.form-grid__foot {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.saved { font-size: 13px; font-weight: 500; color: var(--brand); }

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

.sitefoot { margin-top: 56px; background: var(--ink); color: rgba(255, 255, 255, 0.72); }

.sitefoot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 44px;
  padding-bottom: 32px;
}

.sitefoot__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 10px;
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  font-size: 20px;
  font-weight: 600;
  color: #FFFFFF;
}

.sitefoot__mark { width: 32px; height: 32px; flex: none; display: block; border-radius: 7px; }

.sitefoot__tagline {
  margin: 0 0 10px;
  font-family: Georgia, 'Times New Roman', 'Songti SC', serif;
  font-size: 14px;
  font-weight: 400;
  color: #FFFFFF;
}

.sitefoot p { margin: 0; font-size: 13.5px; line-height: 1.75; }
.sitefoot h3 { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; color: #FFFFFF; }

.sitefoot ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13.5px;
}

.sitefoot a { color: inherit; text-decoration: none; }
.sitefoot a:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }

.sitefoot__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  flex-wrap: wrap;
}

.sitefoot__copy { display: inline-flex; align-items: center; gap: 8px; }

.sitefoot__copy img { width: 22px; height: 22px; flex: none; display: block; border-radius: 5px; }

.sitefoot__links { display: flex; gap: 16px; }

/* ---------- Toast ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  z-index: 50;
  max-width: calc(100vw - 40px);
  padding: 11px 16px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #FFFFFF;
  font-size: 13.5px;
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Modals ---------- */

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 24, 0.52);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  padding: 26px 24px 22px;
  background: #FFFFFF;
  border-radius: var(--radius);
  box-shadow: 0 18px 48px rgba(24, 24, 24, 0.24);
  animation: modal-in 0.18s ease both;
}

.modal__panel--narrow { max-width: 388px; }

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
}

.modal__close:hover { background: var(--bg-soft); color: var(--ink); }

.modal__title {
  margin: 0 0 6px;
  padding-right: 30px;
  font-size: 19px;
  font-weight: 600;
}

.modal__sub {
  margin: 0 0 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.modal__sub b { font-weight: 600; color: var(--ink-2); }

.modal__icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
}

.modal .field { margin-bottom: 14px; }
.modal .btn--primary { width: 100%; margin-top: 6px; }

.ref {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--ink-3);
}

.ref b { font-weight: 600; color: var(--ink); }

.modal__foot {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
  text-align: center;
}

.link-inline {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.link-inline:hover { color: var(--brand-dark); }

.qr {
  display: grid;
  place-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.qr img {
  width: 210px;
  height: 210px;
  object-fit: contain;
  background: #FFFFFF;
  border-radius: 6px;
}

.qr--missing img { display: none; }

.qr--missing::after {
  content: "QR code not added yet";
  display: grid;
  place-items: center;
  width: 210px;
  height: 210px;
  border-radius: 6px;
  background: #FFFFFF;
  color: var(--ink-3);
  font-size: 12.5px;
  text-align: center;
}

.support-form { margin-top: 20px; text-align: left; }
.support-form .field { margin-bottom: 12px; }
.support-form .btn--primary { width: 100%; margin-top: 4px; }

/* ---------- Help widget ---------- */

.help-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--brand);
  color: #FFFFFF;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(24, 24, 24, 0.22);
  transition: background-color 0.15s ease;
}

.help-fab:hover { background: var(--brand-dark); }
.help-fab[aria-expanded="true"] { background: var(--ink); }

.help-panel {
  position: fixed;
  right: 22px;
  bottom: 150px;
  z-index: 41;
  width: min(340px, calc(100vw - 32px));
  max-height: min(72vh, 520px);
  overflow-y: auto;
  padding: 18px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 18px 44px rgba(24, 24, 24, 0.2);
  animation: modal-in 0.16s ease both;
}

.help-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.help-panel__title { margin: 0; font-size: 17px; font-weight: 600; }
.help-panel__close { position: static; }

.help-list { list-style: none; margin: 0; padding: 0; }
.help-item { border-top: 1px solid var(--line); }
.help-item:first-child { border-top: 0; }

.help-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.help-q:hover { color: var(--brand); }

.help-q .icon {
  width: 16px;
  height: 16px;
  flex: none;
  color: var(--ink-3);
  transition: transform 0.15s ease;
}

.help-q[aria-expanded="true"] .icon { transform: rotate(180deg); }

.help-a {
  margin: 0 0 14px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--ink-3);
}

.help-panel__foot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  .topbar__brand-tagline { display: none; }
}

@media (max-width: 900px) {
  .products-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .rail-cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .product-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; }

  .cat-rail__list {
    flex-direction: row;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .cat {
    padding: 7px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    white-space: nowrap;
  }

  .cat__count { display: none; }

  .form-grid { grid-template-columns: 1fr; }
  .sitefoot__grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Narrow tablets: the top bar needs the same wrap the phone layout uses,
   otherwise the brand pushes the page wider than the viewport. */

@media (max-width: 900px) {
  .topbar__inner {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-inline: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .topbar__brand { margin-left: auto; }
}

@media (max-width: 720px) {
  .topbar__inner {
    height: auto;
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .nav {
    order: 3;
    width: 100%;
    margin-inline: 0;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .topbar__brand { margin-left: auto; }

  .wrap { padding: 20px 16px 44px; }
  .page-head h1 { font-size: 22px; }
  .detail-title { font-size: 19px; }

  .grid--products { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .grid--videos { grid-template-columns: 1fr; }

  .panelbox { padding: 16px; }
  .profile-top { gap: 16px; }
}

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

/* =========================================================
   Liquid Glass theme — iOS inspired
   Overrides the visual layer only. Layout rules stay as they are.
   ========================================================= */

:root {
  --ink: #141414;
  --ink-2: #4A5652;
  --ink-3: #7C8783;
  --line: rgba(21, 21, 21, 0.08);
  --line-strong: rgba(21, 21, 21, 0.14);
  --bg-page: #F2F4F3;
  --bg-soft: rgba(255, 255, 255, 0.5);
  --brand: #5E5E5E;
  --brand-dark: #4B4B4B;
  --brand-soft: rgba(94, 94, 94, 0.12);
  --accent: #ABABAB;
  --danger: #606060;
  --radius: 14px;
  --radius-lg: 22px;
  --glass: rgba(255, 255, 255, 0.6);
  --glass-strong: rgba(255, 255, 255, 0.8);
  --glass-line: rgba(255, 255, 255, 0.7);
  --glass-blur: saturate(180%) blur(22px);
  --shadow-1: 0 1px 2px rgba(21, 21, 21, 0.06);
  --shadow-2: 0 10px 30px rgba(21, 21, 21, 0.1);
  --shadow-3: 0 22px 60px rgba(21, 21, 21, 0.18);
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
}

body {
  background: linear-gradient(165deg, #EDF3F0 0%, #F5F3EE 40%, #ECF1F6 74%, #F3F4F2 100%);
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, system-ui, sans-serif;
}

/* ---------- Glass surfaces ---------- */

.topbar,
.card,
.panelbox,
.post,
.thread,
.notice-list,
.composer,
.help-panel,
.modal__panel,
.media-box--photo,
.thumb--photo {
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* ---------- Navigation bar ---------- */

.topbar {
  background: rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(21, 21, 21, 0.07);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Only on wide screens: below 720px the bar wraps to two rows and must keep height auto. */
@media (min-width: 721px) {
  .topbar__inner { height: 64px; }
}

.me {
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s var(--spring), background-color 0.2s ease;
}

.me:hover { background: rgba(255, 255, 255, 0.88); }
.me:active { transform: scale(0.97); }

.nav {
  padding: 4px;
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: var(--shadow-1);
}

.nav__item {
  padding: 8px 15px;
  border-radius: 999px;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--spring), box-shadow 0.2s ease;
}

.nav__item:hover { background: rgba(255, 255, 255, 0.72); }
.nav__item:active { transform: scale(0.96); }

.nav__item[aria-current="page"] {
  background: #FFFFFF;
  color: var(--brand);
  box-shadow: 0 2px 8px rgba(21, 21, 21, 0.12);
}

.nav__badge {
  background: linear-gradient(180deg, #B8B8B8, #ABABAB);
  color: #FFFFFF;
  box-shadow: 0 2px 6px rgba(171, 171, 171, 0.45);
}

.topbar__brand-name { color: var(--ink); }
.topbar__brand-tagline { color: var(--ink-3); }

/* ---------- Avatars ---------- */

.avatar {
  background-color: rgba(94, 94, 94, 0.14);
  color: var(--brand-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 1px 2px rgba(21, 21, 21, 0.08);
}

/* ---------- Buttons ---------- */

.btn {
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.2s var(--spring), background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:hover { background: var(--glass-strong); }
.btn:active { transform: scale(0.96); }

.btn--primary {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(111, 111, 111, 0.98), rgba(86, 86, 86, 0.98));
  color: #FFFFFF;
  box-shadow: 0 8px 20px rgba(88, 88, 88, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.btn--primary:hover {
  background: linear-gradient(180deg, rgba(122, 122, 122, 0.98), rgba(88, 88, 88, 0.98));
}

.btn--link {
  border: 0;
  background: none;
  box-shadow: none;
}

/* ---------- Inputs ---------- */

.input,
.textarea,
.select {
  border: 1px solid rgba(21, 21, 21, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: inset 0 1px 2px rgba(21, 21, 21, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.input:focus,
.textarea:focus,
.select:focus {
  background: #FFFFFF;
  border-color: rgba(94, 94, 94, 0.55);
  box-shadow: 0 0 0 4px rgba(94, 94, 94, 0.16);
}

/* ---------- Cards ---------- */

.card {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.28s var(--spring), box-shadow 0.28s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.thumb--photo {
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: rgba(255, 255, 255, 0.85);
}

.badge {
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-1);
}

/* ---------- Chips and categories ---------- */

.chip,
.cat {
  border: 1px solid var(--glass-line);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform 0.2s var(--spring), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.chip:hover,
.cat:hover { background: var(--glass-strong); }

.chip:active,
.cat:active { transform: scale(0.96); }

.chip[aria-pressed="true"],
.cat[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(111, 111, 111, 0.98), rgba(86, 86, 86, 0.98));
  color: #FFFFFF;
  box-shadow: 0 6px 16px rgba(88, 88, 88, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.cat[aria-pressed="true"] .cat__count { color: rgba(255, 255, 255, 0.8); }

/* ---------- Product detail ---------- */

.media-box { border-radius: var(--radius-lg); }

.media-box--photo {
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.player { border-radius: var(--radius-lg); }

.tag {
  border: 1px solid rgba(21, 21, 21, 0.06);
  background: rgba(255, 255, 255, 0.7);
}

/* ---------- Panels and lists ---------- */

.panelbox,
.thread,
.notice-list,
.composer,
.post {
  border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg);
  background: var(--glass-strong);
  box-shadow: var(--shadow-1), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.notice:first-child { border-top: 0; }
.notice.is-unread { background: rgba(94, 94, 94, 0.07); }

.notice__icon {
  border-radius: 12px;
  background: rgba(94, 94, 94, 0.12);
}

/* ---------- Modals ---------- */

.modal__backdrop {
  background: rgba(16, 16, 16, 0.4);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.modal__panel {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  animation: lg-sheet 0.36s var(--spring) both;
}

.modal__close {
  border-radius: 999px;
  background: rgba(21, 21, 21, 0.06);
}

.modal__close:hover { background: rgba(21, 21, 21, 0.12); }

/* ---------- Help widget ---------- */

.help-fab {
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(180deg, rgba(111, 111, 111, 0.98), rgba(86, 86, 86, 0.98));
  box-shadow: 0 10px 30px rgba(88, 88, 88, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.24s var(--spring), background-color 0.2s ease;
}

.help-fab:hover { transform: scale(1.05); }
.help-fab:active { transform: scale(0.94); }
.help-fab[aria-expanded="true"] {
  background: linear-gradient(180deg, #313131, #141414);
  box-shadow: 0 10px 30px rgba(21, 21, 21, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.help-panel {
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-3), inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transform-origin: bottom right;
  animation: lg-pop 0.3s var(--spring) both;
}

/* ---------- Footer ---------- */

.sitefoot {
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #1D1D1D, #131313);
}

/* ---------- Toast ---------- */

.toast {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(20, 20, 20, 0.82);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  box-shadow: var(--shadow-2);
  transition: opacity 0.28s ease, transform 0.34s var(--spring);
}

/* ---------- Motion ---------- */

.view.is-active { animation: lg-view 0.34s var(--spring) both; }

@keyframes lg-view {
  from { opacity: 0; transform: translateY(10px) scale(0.995); }
  to { opacity: 1; transform: none; }
}

@keyframes lg-sheet {
  from { opacity: 0; transform: translateY(22px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

@keyframes lg-pop {
  from { opacity: 0; transform: translateY(10px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

/* ---------- Scroll-aware navigation bar ---------- */

.topbar {
  border-bottom-color: transparent;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.topbar.is-scrolled {
  border-bottom-color: rgba(21, 21, 21, 0.07);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 24px rgba(21, 21, 21, 0.06);
}

/* ---------- Specular sheen on primary buttons ---------- */

.btn {
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(100deg, transparent 18%, rgba(255, 255, 255, 0.38) 45%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}

.btn--primary:hover::after {
  opacity: 1;
  animation: lg-sheen 1.1s ease;
}

@keyframes lg-sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

/* =========================================================
   Monochrome - the app palette
   Black and white only, in alternating bands. No hue anywhere.
   ========================================================= */

:root {
  --ink: #0A0A0A;
  --ink-2: #4A4A4A;
  --ink-3: #787878;
  --line: rgba(10, 10, 10, 0.12);
  --line-strong: rgba(10, 10, 10, 0.26);
  --bg-page: #FFFFFF;
  --bg-soft: #F1F1F1;
  --brand: #0A0A0A;
  --brand-dark: #000000;
  --brand-soft: rgba(10, 10, 10, 0.08);
  --accent: #0A0A0A;
  --danger: #0A0A0A;
  --glass: #FFFFFF;
  --glass-strong: #FFFFFF;
  --glass-line: rgba(10, 10, 10, 0.12);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-3: 0 22px 60px rgba(0, 0, 0, 0.16);
}

html { color-scheme: light; }

body {
  background: #FFFFFF;
  color: var(--ink);
  overflow-x: clip;
}

/* ---------- Navigation bar ---------- */

.topbar {
  border-bottom-color: rgba(10, 10, 10, 0.14);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.topbar.is-scrolled {
  border-bottom-color: #0A0A0A;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.topbar__brand-name { color: var(--ink); }
.topbar__brand-tagline { color: var(--ink-3); }

.me {
  border-color: rgba(10, 10, 10, 0.16);
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: none;
}

.me:hover { background: #F1F1F1; }

.nav {
  border-color: rgba(10, 10, 10, 0.14);
  background: #F1F1F1;
  box-shadow: none;
}

.nav__item { color: var(--ink-2); }
.nav__item:hover { background: rgba(10, 10, 10, 0.07); color: var(--ink); }

.nav__item[aria-current="page"] {
  background: #0A0A0A;
  color: #FFFFFF;
  box-shadow: none;
}

.nav__badge {
  background: #0A0A0A;
  color: #FFFFFF;
  box-shadow: none;
}

.nav__item[aria-current="page"] .nav__badge {
  background: #FFFFFF;
  color: #0A0A0A;
}

.avatar {
  background-color: #0A0A0A;
  color: #FFFFFF;
  box-shadow: none;
}

/* ---------- The black ribbon that opens every view ---------- */

.page-head {
  margin: -28px calc(50% - 50vw) 24px;
  padding: 24px max(20px, calc(50vw - 50%)) 22px;
  background: #0A0A0A;
  color: #FFFFFF;
}

.page-head h1 { color: #FFFFFF; }
.page-head .eyebrow { color: rgba(255, 255, 255, 0.66); }
.page-head .lede { color: rgba(255, 255, 255, 0.72); }
.page-head .btn { border-color: #FFFFFF; background: #FFFFFF; color: #0A0A0A; }
.page-head .btn:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.8); color: #0A0A0A; }

/* ---------- Buttons ---------- */

.btn {
  border: 1px solid rgba(10, 10, 10, 0.2);
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: none;
}

.btn:hover { background: #F1F1F1; border-color: #0A0A0A; }

.btn--primary {
  border-color: #0A0A0A;
  background: #0A0A0A;
  color: #FFFFFF;
  box-shadow: none;
}

.btn--primary:hover { background: #2B2B2B; border-color: #2B2B2B; }

.btn--link { color: var(--ink-3); }
.btn--link:hover { color: var(--ink); }

.btn--primary::after { display: none; }

/* ---------- Inputs ---------- */

.input,
.textarea,
.select {
  border: 1px solid rgba(10, 10, 10, 0.18);
  background: #FFFFFF;
  color: var(--ink);
  box-shadow: none;
  color-scheme: light;
}

.input::placeholder,
.textarea::placeholder { color: #9A9A9A; }

.input:focus,
.textarea:focus,
.select:focus {
  background: #FFFFFF;
  border-color: #0A0A0A;
  box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.14);
}

.input[readonly] { background: #F7F7F7; color: var(--ink-3); }

/* ---------- Cards ---------- */

.card {
  border-color: rgba(10, 10, 10, 0.14);
  background: #FFFFFF;
  box-shadow: none;
}

.card:hover {
  border-color: #0A0A0A;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.thumb--photo { background: #FFFFFF; }

.media-box--photo {
  border-color: rgba(10, 10, 10, 0.14);
  background: #FFFFFF;
  box-shadow: none;
}

.badge {
  border-color: #0A0A0A;
  background: #0A0A0A;
  color: #FFFFFF;
}

.card__brand { color: var(--ink-3); }
.card__meta { color: var(--ink-3); }
.price { color: var(--ink); }

/* ---------- Chips and categories ---------- */

.chip,
.cat {
  border-color: rgba(10, 10, 10, 0.18);
  background: #FFFFFF;
  color: var(--ink-2);
  box-shadow: none;
}

.chip:hover,
.cat:hover { background: #F1F1F1; color: var(--ink); border-color: #0A0A0A; }

.chip[aria-pressed="true"],
.cat[aria-pressed="true"] {
  border-color: #0A0A0A;
  background: #0A0A0A;
  color: #FFFFFF;
  box-shadow: none;
}

.cat[aria-pressed="true"] .cat__count { color: rgba(255, 255, 255, 0.7); }

/* ---------- Product detail ---------- */

.player {
  border: 1px solid #0A0A0A;
  background: #0A0A0A;
}

.tag {
  border-color: rgba(10, 10, 10, 0.16);
  background: #F1F1F1;
  color: var(--ink-2);
}

.spec-list { border-color: rgba(10, 10, 10, 0.12); }
.spec-list dt { color: var(--ink-3); }
.spec-list dd { color: var(--ink); }

/* ---------- Surfaces ---------- */

.panelbox,
.thread,
.notice-list,
.composer,
.post {
  border-color: rgba(10, 10, 10, 0.14);
  background: #FFFFFF;
  box-shadow: none;
}

.post:hover { border-color: #0A0A0A; }

.notice.is-unread { background: #F1F1F1; }

.notice__icon {
  background: #0A0A0A;
  color: #FFFFFF;
}

.verified {
  background: #0A0A0A;
  color: #FFFFFF;
}

.post__tag {
  background: #0A0A0A;
  color: #FFFFFF;
}

.action { color: var(--ink-3); }
.action:hover { background: #F1F1F1; color: var(--ink); }
.action.is-on { color: var(--ink); }

.comment__author { color: var(--ink); }
.comment__text { color: var(--ink-2); }

/* ---------- Profile ---------- */

.check__box {
  border-color: rgba(10, 10, 10, 0.26);
  background: #FFFFFF;
}

.check input:checked + .check__box {
  border-color: #0A0A0A;
  background: #0A0A0A;
  box-shadow: none;
}

.completeness__bar { background: #EDEDED; }
.completeness__bar span { background: #0A0A0A; }
.saved { color: var(--ink); }

/* ---------- Modals ---------- */

.modal__backdrop { background: rgba(0, 0, 0, 0.55); }

.modal__panel {
  border-color: #0A0A0A;
  background: #FFFFFF;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.modal__close {
  background: #F1F1F1;
  color: var(--ink-3);
}

.modal__close:hover { background: #E4E4E4; color: var(--ink); }

.modal__sub { color: var(--ink-3); }
.modal__sub b { color: var(--ink); }
.ref { color: var(--ink-3); }
.ref b { color: var(--ink); }

.qr {
  border-color: rgba(10, 10, 10, 0.14);
  background: #FFFFFF;
}

.link-inline { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.link-inline:hover { color: #000000; }

.hint { color: var(--ink-3); }
.label-note { color: var(--ink-3); }

/* ---------- Help widget ---------- */

.help-fab {
  border: 1px solid #0A0A0A;
  background: #0A0A0A;
  color: #FFFFFF;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
}

.help-fab:hover { background: #2B2B2B; }

.help-fab[aria-expanded="true"] {
  border-color: #0A0A0A;
  background: #FFFFFF;
  color: #0A0A0A;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}

.help-panel {
  border-color: #0A0A0A;
  background: #FFFFFF;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
}

.help-panel__title { color: var(--ink); }
.help-item { border-top-color: rgba(10, 10, 10, 0.12); }
.help-q { color: var(--ink); }
.help-a { color: var(--ink-3); }
.help-panel__foot { border-top-color: rgba(10, 10, 10, 0.12); }
.help-panel__close { color: var(--ink-3); }
.help-panel__close:hover { background: #F1F1F1; color: var(--ink); }

/* ---------- Footer: the black base ---------- */

.sitefoot {
  border-radius: 0;
  background: #0A0A0A;
  color: rgba(255, 255, 255, 0.66);
}

.sitefoot h3 { color: #FFFFFF; }
.sitefoot a:hover { color: #FFFFFF; }

/* ---------- Toast ---------- */

.toast {
  border: 1px solid #0A0A0A;
  background: #0A0A0A;
  color: #FFFFFF;
}

/* ---------- Form errors stay legible without hue ---------- */

.error { color: var(--ink); font-weight: 600; }
.error::before { content: "! "; }

/* ---------- Prerendered product pages ---------- */

.crumbs { color: var(--ink-3); }
.crumbs a { color: var(--ink-3); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.crumbs span { opacity: 0.5; }

.static-note { margin-top: 24px; text-align: center; }

/* ---------- Small screens ---------- */

@media (max-width: 899px) {
  .page-head {
    margin-top: -20px;
    padding: 22px max(16px, calc(50vw - 50%)) 20px;
  }
}

/* ---------- Validation states, hue-free ---------- */
.field.is-invalid .input:focus { box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.18); }
.check input:focus-visible + .check__box { box-shadow: 0 0 0 3px rgba(10, 10, 10, 0.18); }

/* ---------- Thumb links inherit ink, never the browser default blue ---------- */
.thumb,
.thumb:visited,
.thumb img { color: var(--ink); }

/* =========================================================
   Unboxing and testing, Amazon reviews, orders, Amazon points
   ========================================================= */

/* ---------- Segmented control ---------- */

.seg {
  display: inline-flex;
  align-items: stretch;
  margin: 0 0 22px;
  border: 1px solid #0A0A0A;
  border-radius: 999px;
  overflow: hidden;
  background: #FFFFFF;
  max-width: 100%;
}

.seg__btn {
  appearance: none;
  -webkit-appearance: none;
  margin: 0;
  border: 0;
  border-left: 1px solid #0A0A0A;
  padding: 9px 20px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
}

.seg__btn:first-child { border-left: 0; }
.seg__btn:hover { background: #F1F1F1; }

.seg__btn[aria-selected="true"],
.seg__btn[aria-selected="true"]:hover {
  background: #0A0A0A;
  color: #FFFFFF;
}

.seg__btn:focus-visible { outline: 2px solid #0A0A0A; outline-offset: -2px; }

.seg-pane > .lede { margin-top: 0; }

.list-actions { display: flex; justify-content: flex-end; margin-bottom: 12px; }

/* ---------- Amazon product reviews ---------- */

.grid--reviews { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

.review {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
}

.review__head { display: flex; align-items: center; gap: 10px; }
.review__who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.review__author { font-size: 13.5px; font-weight: 600; }
.review__time { font-size: 12px; color: var(--ink-3); }

.stars { display: inline-flex; gap: 2px; margin-left: auto; flex: none; }
.star { display: inline-flex; color: rgba(10, 10, 10, 0.16); }
.star.is-on { color: #0A0A0A; }
.star .icon { width: 14px; height: 14px; }

.review__title { margin: 0; font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.review__body { margin: 0; font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }

.review__product {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.review__product img {
  width: 40px;
  height: 40px;
  flex: none;
  object-fit: contain;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #FFFFFF;
}

.review__product:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Orders list ---------- */

.order-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #FFFFFF;
}

.order { border-top: 1px solid var(--line); }
.order:first-child { border-top: 0; }

.order__link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  color: inherit;
  text-decoration: none;
}

.order__link:hover { background: #F1F1F1; }

.order__thumb {
  width: 54px;
  height: 54px;
  flex: none;
  object-fit: contain;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #FFFFFF;
}

.order__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.order__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.order__no { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.order__name { font-size: 14.5px; font-weight: 600; }
.order__meta { font-size: 12.5px; color: var(--ink-3); }
.order__chev { color: var(--ink-3); flex: none; }

.status {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid #0A0A0A;
  border-radius: 999px;
  background: #FFFFFF;
  color: #0A0A0A;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

/* ---------- Order detail ---------- */

.order-hero { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }

.order-hero__img {
  width: 96px;
  height: 96px;
  flex: none;
  object-fit: contain;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #FFFFFF;
}

.order-hero__info { min-width: 0; }
.order-hero__info .product-name { margin: 8px 0 4px; font-size: 22px; }
.order-actions { margin-top: 26px; }

.timeline { list-style: none; margin: 0 0 8px; padding: 0; }

.tl {
  position: relative;
  margin-left: 6px;
  padding: 0 0 20px 26px;
  border-left: 1px solid var(--line);
}

.tl:last-child { padding-bottom: 0; border-left-color: transparent; }

.tl__dot {
  position: absolute;
  left: -5px;
  top: 4px;
  width: 9px;
  height: 9px;
  border: 1px solid #0A0A0A;
  border-radius: 50%;
  background: #FFFFFF;
}

.tl:first-child .tl__dot { background: #0A0A0A; }

.tl__body { display: flex; flex-direction: column; gap: 2px; }
.tl__time { font-size: 12px; color: var(--ink-3); }
.tl__title { font-size: 14.5px; font-weight: 600; }
.tl__text { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }

/* ---------- Amazon five point description ---------- */

.amz-points {
  margin-top: 26px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}

.amz-points__title { margin: 0 0 12px; font-size: 15px; font-weight: 600; }
.amz-points__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 9px; }
.amz-points__list li { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.amz-points__list b { color: var(--ink); font-weight: 600; }
.amz-points__note { margin: 14px 0 0; font-size: 12px; color: var(--ink-3); }

/* ---------- Apply modal: two separated field groups ---------- */

.fieldgroup { margin: 0; padding: 0; border: 0; }
.fieldgroup__legend { padding: 0; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.fieldgroup__note { margin: 4px 0 14px; font-size: 12.5px; line-height: 1.5; color: var(--ink-3); }

.fieldgroup--split {
  margin-top: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.error--group { margin: 2px 0 0; font-size: 12.5px; }

/* ---------- Small screens ---------- */

@media (max-width: 560px) {
  .seg { width: 100%; }
  .seg__btn { flex: 1 1 auto; padding: 9px 10px; font-size: 13px; white-space: normal; }
  .order-hero { gap: 14px; }
  .order-hero__img { width: 72px; height: 72px; }
}

/* ---------- Home: intro, project types, steps ---------- */

.home-block { margin-top: 40px; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 6px 0 0;
  padding: 0;
}

.hero-stat {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  background: #FFFFFF;
}

.hero-stat__value { margin: 0; font-size: 26px; font-weight: 700; line-height: 1.1; color: var(--ink); }
.hero-stat__label { margin: 4px 0 0; font-size: 12.5px; color: var(--ink-3); }

.type-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.type-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  background: #FFFFFF;
}

.type-card__kicker {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.type-card__title { margin: 0; font-size: 22px; font-weight: 700; color: var(--ink); }
.type-card__desc { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.type-card__list { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }
.type-card__list li { margin: 0 0 2px; }
.type-card__meta { margin: auto 0 0; font-size: 13px; color: var(--ink-3); }
.type-card__meta b { font-size: 17px; color: var(--ink); }
.type-card .btn { align-self: flex-start; }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }

.step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  background: #FFFFFF;
}

.step__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--ink);
  color: #FFFFFF;
  font-size: 15px;
  font-weight: 700;
}

.step__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; color: var(--ink); }
.step__text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.steps--compact .step { padding: 16px 18px; }

/* ---------- Products: prominent project type rail ---------- */

.products-layout { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); }

.type-rail { display: flex; flex-direction: column; gap: 8px; margin: 0 0 26px; }

.type-btn {
  appearance: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

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

.type-btn__row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.type-btn__label { font-size: 15px; font-weight: 700; line-height: 1.3; }
.type-btn__count { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.type-btn__desc { font-size: 12px; line-height: 1.45; color: var(--ink-3); }

.type-btn[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.type-btn[aria-pressed="true"] .type-btn__count,
.type-btn[aria-pressed="true"] .type-btn__desc { color: rgba(255, 255, 255, 0.78); }

/* ---------- Product page: introduction prose ---------- */

.prose { font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }
.prose p { margin: 0 0 12px; }
.prose p:last-child { margin-bottom: 0; }
.prose b { color: var(--ink); }
.prose__note { padding-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }

@media (max-width: 900px) {
  .products-layout { grid-template-columns: minmax(0, 1fr); }
  .rail-cols { grid-template-columns: minmax(0, 1fr); }
  .type-rail { flex-direction: row; flex-wrap: wrap; }
  .type-btn { flex: 1 1 160px; }
}

@media (max-width: 760px) {
  .type-card { padding: 20px; }
  .step { grid-template-columns: 28px minmax(0, 1fr); padding: 16px; }
}

/* ---------- Project type banner, notes and hints ---------- */
.typebanner {
  margin: 4px 0 22px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--ink);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.typebanner__tag {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  color: var(--ink-3);
}
.typebanner__title { margin: 0 0 6px; font-size: 17px; font-weight: 700; }
.typebanner__text { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.typebanner__note {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line-strong);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.typebanner--order { margin-top: 28px; }
.typebanner .apply-row { margin-top: 16px; }
.flownote {
  margin: 12px 0 0;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-soft);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.req-hint {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-left: 3px solid var(--ink);
  background: var(--bg-soft);
  font-size: 13.5px;
  color: var(--ink-2);
}
.seg--flow { margin-bottom: 20px; }
.steps--home { margin-top: 4px; }
@media (max-width: 640px) {
  .typebanner { padding: 16px; }
  .typebanner__title { font-size: 16px; }
}

/* ---------- Product pagination ---------- */

.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 28px 0 4px;
}

.pager__btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(10, 10, 10, 0.18);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.pager__btn:hover:not(:disabled) { border-color: #0A0A0A; background: #F1F1F1; }
.pager__btn:active:not(:disabled) { transform: scale(0.96); }
.pager__btn:disabled { opacity: 0.35; cursor: default; }

.pager__btn.is-current {
  border-color: #0A0A0A;
  background: #0A0A0A;
  color: #FFFFFF;
}

.pager__btn .icon { width: 18px; height: 18px; }
.pager__gap { padding: 0 2px; font-size: 14px; font-weight: 600; color: var(--ink-3); }

@media (max-width: 640px) {
  .pager { gap: 6px; }
  .pager__btn { min-width: 38px; height: 38px; padding: 0 10px; font-size: 13.5px; }
}

/* ---------- Wide screens: spend the extra room on the product grid ---------- */

@media (min-width: 1420px) {
  .wrap:not(.wrap--narrow) { max-width: 1380px; }
  .topbar__inner { max-width: 1380px; }
  .grid--products { grid-template-columns: repeat(auto-fill, minmax(206px, 1fr)); }

  /* Short feature rows keep an exact track count so a row never ends in a hole. */
  #home-videos { grid-template-columns: repeat(4, minmax(0, 1fr)); }

  /* Product pages are a two column read, not a grid: they stop growing here. */
  #view-product .wrap { max-width: 1380px; }
  .product-layout { max-width: 1340px; }
  body:has(> main.wrap) .wrap { max-width: 1380px; }
  body:has(> main.wrap) .topbar__inner { max-width: 1380px; }
}

@media (min-width: 1660px) {
  .wrap:not(.wrap--narrow) { max-width: 1620px; }
  .topbar__inner { max-width: 1620px; }
}

@media (min-width: 1900px) {
  .wrap:not(.wrap--narrow) { max-width: 1860px; }
  .topbar__inner { max-width: 1860px; }

  /* Long prose stays readable once the shell is this wide. */
  .type-card__desc, .type-card__list { max-width: 76ch; }
  .steps--home { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
}

@media (min-width: 2140px) {
  .wrap:not(.wrap--narrow) { max-width: 2100px; }
  .topbar__inner { max-width: 2100px; }
  #home-products { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* ---------- Home: 3D browse ring ---------- */

.ringband {
  margin: -24px calc(50% - 50vw) 0;
  padding: 12px max(20px, calc(50vw - 50%)) 14px;
  background: #0A0A0A;
  color: #FFFFFF;
}

.ringband__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 2px;
}

.ringband__title { margin: 0; font-size: 14.5px; font-weight: 600; color: #FFFFFF; }
.ringband__more {
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  white-space: nowrap;
}
.ringband__more:hover { color: #FFFFFF; text-decoration: underline; text-underline-offset: 3px; }

/* Card size follows the viewport so the ring keeps its proportions on any screen.
   --ring-k (radius / card width) and --ring-step come from the script. */
.ring3d {
  --ring-w: clamp(180px, 7.6vw, 200px);
  --ring-k: 6.2;
  --ring-step: 10deg;
  position: relative;
  height: calc(var(--ring-w) * 1.1 + 10px);
  overflow: hidden;
  perspective: calc(var(--ring-w) * 3.6);
  perspective-origin: 50% 50%;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0, #000 6%, #000 94%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0, #000 6%, #000 94%, rgba(0, 0, 0, 0) 100%);
}

.ring3d__stage {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform-style: preserve-3d;
  animation: ring-spin 74s linear infinite;
}

 @keyframes ring-spin {
  from { transform: translateZ(calc(var(--ring-w) * var(--ring-k) * -1)) rotateY(0deg); }
  to { transform: translateZ(calc(var(--ring-w) * var(--ring-k) * -1)) rotateY(360deg); }
}

.ring3d:hover .ring3d__stage,
.ring3d:focus-within .ring3d__stage { animation-play-state: paused; }

.ringcard {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  flex-direction: column;
  width: var(--ring-w);
  height: calc(var(--ring-w) * 1.1);
  margin: calc(var(--ring-w) * -0.55) 0 0 calc(var(--ring-w) * -0.5);
  overflow: hidden;
  border-radius: 14px;
  background: #FFFFFF;
  color: var(--ink);
  text-decoration: none;
  backface-visibility: hidden;
  transform: rotateY(calc(var(--ring-step) * var(--i, 0))) translateZ(calc(var(--ring-w) * var(--ring-k)));
  transition: box-shadow 0.2s ease;
}

.ringcard:hover { outline: 2px solid rgba(255, 255, 255, 0.6); outline-offset: 0; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55); }
.ringcard:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }

.ringcard__media {
  position: relative;
  display: block;
  flex: none;
  height: calc(var(--ring-w) * 0.66);
  background: #F4F4F4;
}

.ringcard__media img { display: block; width: 100%; height: 100%; padding: 12px; object-fit: contain; }

.ringcard__chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.88);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 600;
}

.ringcard__body { display: flex; flex-direction: column; gap: 5px; padding: 12px 14px 14px; min-width: 0; }

.ringcard__name {
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ringcard__meta { margin-top: auto; display: flex; gap: 10px; font-size: 12px; color: var(--ink-3); }

 @media (max-width: 860px) {
  .ring3d {
    height: auto;
    perspective: none;
    -webkit-mask-image: none;
    mask-image: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
  }

  .ring3d__stage {
    position: static;
    display: flex;
    gap: 12px;
    width: max-content;
    height: auto;
    padding: 2px 0 12px;
    animation: none;
    transform: none;
  }

  .ringcard {
    position: static;
    flex: none;
    width: 186px;
    height: 248px;
    margin: 0;
    transform: none;
    scroll-snap-align: start;
  }

  .ringcard__media { height: 152px; }
  .ringcard__meta { font-size: 11.5px; }
  .ringcard--dup { display: none; }
}

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

/* ---------- Pinned opening band ----------
   The black band that opens a view holds its place under the nav bar and rides
   on top, so the white content slides up and disappears behind it: the band
   itself is never covered. Applied from 901px wide up; on phones and short
   windows the band scrolls away like any other section. */

.heroband { background: #0A0A0A; }

.band-follow {
  position: relative;
  z-index: 1;
  margin-inline: calc(50% - 50vw);
  padding-inline: max(20px, calc(50vw - 50%));
  background: var(--bg-page);
}

@media (max-width: 899px) {
  .band-follow { padding-inline: max(16px, calc(50vw - 50%)); }
}

@media (min-width: 901px) and (min-height: 620px) {
  .heroband,
  .view > .wrap > .page-head {
    position: sticky;
    top: 65px;
    z-index: 2;
  }
}

/* ---------- Home hero: intro beside the headline ----------
   The paragraph sits to the left of the headline so the black band loses a
   whole block of height. Below 1240px it falls back to the stacked layout. */

@media (min-width: 1240px) {
  .hero-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 36px;
    padding-top: 20px;
    padding-bottom: 18px;
  }
  .hero-split > * { grid-row: 1; }
  .hero-split__lede {
    grid-column: 1;
    margin: 0;
    max-width: 720px;
    font-size: 14px;
    line-height: 1.7;
  }
  .hero-split__main { grid-column: 2; min-width: 0; }
  .hero-split__cta { grid-column: 3; }
}

/* ---------- Products head: steady height across project types ----------
   Each project type swaps the lede for its own intro. On phones the longest
   of those wraps a line further than the default and would nudge the whole
   black band, so reserve the same three-line block for every type. */

@media (max-width: 500px) {
  #view-products .page-head .lede { min-height: 3lh; }
}

/* =========================================================
   Announcement bar and support contacts
   Both are filled from the admin console (网站设置).
   ========================================================= */

.annbar {
  margin: 0 0 18px;
  background: var(--ink, #111);
  color: #fff;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 14px;
  line-height: 1.5;
}

.support-contacts {
  margin: 0 0 16px;
  font-size: 13px;
  color: var(--muted, #6b6b6b);
}

.support-contacts a {
  color: inherit;
}

/* =========================================================
   Support conversation
   ========================================================= */

.chat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 46vh;
  overflow-y: auto;
  padding: 4px 2px 14px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line, #e4e4e4);
}

.chat__msg {
  max-width: 84%;
  border-radius: 16px;
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.chat__msg--support {
  align-self: flex-start;
  background: #f2f2f2;
  color: var(--ink, #111);
  border-bottom-left-radius: 6px;
}

.chat__msg--user {
  align-self: flex-end;
  background: var(--ink, #111);
  color: #fff;
  border-bottom-right-radius: 6px;
}

.chat__meta {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  opacity: 0.65;
}

.chat__empty {
  text-align: center;
  color: var(--muted, #6b6b6b);
  font-size: 13px;
  padding: 18px 0;
}

/* =========================================================
   Reference videos: real media in the cards and the player
   ========================================================= */

.video-thumb--photo { background: #111; }

.video-thumb__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.player__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

.player--ready { display: block; }
.player--ready .player__play,
.player--ready .player__duration { display: none; }

/* =========================================================
   Reference videos: cards play in place, no page change
   ========================================================= */

button.video-card {
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.player--modal {
  margin-bottom: 16px;
}

.player__empty {
  margin: 0;
  padding: 24px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  text-align: center;
}

.modal__panel--wide {
  width: min(880px, 94vw);
  max-width: 880px;
}
