.home-page .home-brand-selector {
  position: relative;
  box-sizing: border-box;
  width: min(1060px, calc(100% - 48px));
  margin: 0 auto 24px;
  /* Former visible vertical gap: 12px shell + 4px track, halved. */
  padding: 8px;
  border: 1px solid rgba(245, 217, 159, .4);
  border-radius: 20px;
  background: #0a111b;
  box-shadow: var(--panel-backlight);
}
.home-page .home-brand-selector[hidden],
.home-page .home-brand-arrow[hidden],
.home-page .model-card[hidden] { display: none; }
.home-page .home-brand-track {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  overflow-x: auto;
  padding: 0;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  scroll-behavior: smooth;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.home-page .home-brand-track::-webkit-scrollbar { display: none; }
.home-page .home-brand-button {
  /* Match the former visible top gap, measured from the glyph outline. */
  --brand-ink-height: 15px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: auto;
  padding: 15.6px;
  border: 1px solid #495260;
  border-radius: 14px;
  background: linear-gradient(160deg, #101a27, #0a111b);
  color: #f3f4f7;
  font-family: inherit;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: grab;
}
.home-page .home-brand-label { position: relative; display: block; flex: 0 0 auto; }
.home-page .home-brand-text { position: absolute; display: block; white-space: nowrap; line-height: 1; }
.home-page .home-brand-button[aria-disabled="true"] {
  color: #7f8998;
  border-color: #303947;
  background: #101721;
  box-shadow: none;
}
.home-page .home-brand-button[aria-pressed="true"] {
  border-color: #e8c681;
  background: linear-gradient(135deg, #f7dda0, #c99b50);
  color: #151719;
  box-shadow: 0 0 12px #d3ad5f24;
}
.home-page .home-brand-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #eee2c8;
  font-family: inherit;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.home-page .home-brand-arrow[data-brand-direction="-1"] {
  left: 3px;
  background: linear-gradient(to right, #0a111b 65%, #0a111b00);
}
.home-page .home-brand-arrow[data-brand-direction="1"] {
  right: 3px;
  background: linear-gradient(to left, #0a111b 65%, #0a111b00);
}
.home-page .home-brand-button:focus-visible,
.home-page .home-brand-arrow:focus-visible { outline: 2px solid #f7d797; outline-offset: -3px; }
.home-page .home-brand-track.is-dragging { scroll-behavior: auto; }
.home-page .home-brand-track.is-dragging,
.home-page .home-brand-track.is-dragging .home-brand-button { cursor: grabbing; }
.home-page .model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-page .home-product-viewport { position: relative; min-width: 0; }
.home-page .home-product-viewport.is-sliding { overflow: hidden; isolation: isolate; }
.home-page .home-product-outgoing { position: absolute; inset: 0 0 auto; pointer-events: none; }
@media (max-width: 760px) {
  /* Former visible vertical gap: 10px shell + 4px track, halved. */
  .home-page .home-brand-selector { padding: 7px; border-radius: 16px; }
  .home-page .home-brand-button { --brand-ink-height: 14px; padding: 14.6px; font-size: 20px; }
  .home-page .home-brand-text { transform: translateY(.5px); }
  /* Twice the previous mobile left inset, applied to all four sides. */
  .home-page .models-section { padding: 32px; }
}
@media (max-width: 380px) {
  .home-page .models-section { padding: 8px; }
}
/* Keep all three mobile panels on the carousel's same outer edges. */
@media (max-width: 760px) {
  .home-page { --home-mobile-panel-gutter: var(--station-shell-gutter, 20px); }
  .home-page #homeStation.mcq-station { padding-inline: var(--home-mobile-panel-gutter); }
  .home-page .home-brand-selector,
  .home-page .models-section {
    width: calc(100% - 2 * var(--home-mobile-panel-gutter));
    margin-inline: auto;
  }
}
@media (max-width: 700px) {
  .home-page { --home-mobile-panel-gutter: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .home-brand-track { scroll-behavior: auto; }
}
