:root {
  --paper: #f7f1e7;
  --paper-strong: #fffaf4;
  --ink: #151515;
  --muted: rgba(21, 21, 21, 0.62);
  --muted-strong: rgba(21, 21, 21, 0.46);
  --line: rgba(21, 21, 21, 0.11);
  --surface: rgba(255, 255, 255, 0.78);
  --surface-strong: rgba(255, 255, 255, 0.9);
  --surface-dark: #0f1318;
  --accent: #d97706;
  --accent-soft: #f59e0b;
  --accent-strong: #0f766e;
  --accent-pink: #f97316;
  --shadow-soft: 0 24px 80px rgba(10, 10, 10, 0.08);
  --shadow-hard: 0 30px 90px rgba(10, 10, 10, 0.18);
  --radius-panel: 2rem;
  --radius-card: 1.7rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.18), transparent 24%),
    linear-gradient(180deg, #f9f3ea 0%, #f5ecdf 100%);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
}

body.u-lock-scroll {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: rgba(249, 243, 234, 0.84);
  backdrop-filter: blur(20px);
}

.header-inner,
.page-shell {
  width: min(1380px, calc(100vw - 2rem));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1rem 0;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.brand-link {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.75rem, 7vw, 4rem);
  letter-spacing: 0.02em;
  line-height: 0.9;
}

.brand-subline,
.eyebrow,
.meta-label,
.stat-label,
.badge,
.tiny-copy {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.22em;
}

.brand-subline {
  font-size: 0.65rem;
  color: var(--accent-strong);
}

.header-actions {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-end;
}

.nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.nav-pill,
.btn,
.toggle-pill,
.cart-trigger {
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.nav-pill {
  padding: 0.8rem 1rem;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.nav-pill:hover,
.btn:hover,
.toggle-pill:hover,
.cart-trigger:hover {
  transform: translateY(-1px);
}

.nav-pill.is-active {
  background: #111;
  color: #fff;
}

.cart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  background: #111;
  color: #fff;
  border-color: #111;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.cart-badge {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
}

.active-crate-pill {
  padding: 0.75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  min-width: 12rem;
}

.active-crate-pill--inventory {
  min-width: 13rem;
}

.active-crate-name {
  margin-top: 0.25rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.page-shell {
  padding: 1.2rem 0 4rem;
}

.page-root {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.hero-grid,
.split-grid,
.detail-grid,
.dashboard-grid,
.catalog-grid,
.card-grid,
.playlist-grid,
.stats-grid,
.metrics-grid,
.login-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(18rem, 0.92fr);
}

.split-grid,
.dashboard-grid,
.login-grid {
  grid-template-columns: minmax(17rem, 0.9fr) minmax(0, 1.1fr);
}

.detail-grid {
  grid-template-columns: minmax(18rem, 0.76fr) minmax(0, 1.24fr);
}

.catalog-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.playlist-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.stats-grid,
.metrics-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--surface);
  padding: 1.6rem;
  box-shadow: var(--shadow-soft);
}

.panel-dark {
  background: var(--surface-dark);
  color: #fff;
  box-shadow: var(--shadow-hard);
}

.hero-panel {
  border-radius: 2.5rem;
  padding: 2rem;
}

.hero-panel--gradient {
  background: linear-gradient(135deg, #111827, #0f766e 42%, #f97316);
  color: #fff;
}

.eyebrow {
  font-size: 0.68rem;
  color: var(--accent-strong);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.7);
}

.display-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.8rem, 7vw, 5rem);
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.display-title--xl {
  font-size: clamp(4rem, 10vw, 7.5rem);
}

.display-title--md {
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.section-copy {
  max-width: 48rem;
  margin: 1rem 0 0;
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.section-copy--light {
  color: rgba(255, 255, 255, 0.76);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.btn {
  padding: 0.95rem 1.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.btn--primary {
  background: #111;
  color: #fff;
}

.btn--primary-light {
  background: #fff;
  color: #111;
}

.btn--ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn--soft {
  background: var(--accent-strong);
  color: #fff;
}

.btn--danger {
  border-color: rgba(220, 38, 38, 0.25);
  color: #dc2626;
  background: rgba(220, 38, 38, 0.06);
}

.btn--danger-light {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn[disabled] {
  opacity: 0.46;
  cursor: not-allowed;
  transform: none;
}

.hero-mini-grid,
.aside-list,
.featured-grid,
.genre-entry-grid,
.tag-list,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2rem;
}

.mini-card {
  border-radius: 1.5rem;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.mini-card-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.mini-card-copy {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.76);
}

.route-card {
  display: block;
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem 1.1rem;
}

.route-card:hover {
  background: #111;
  color: #fff;
}

.route-card-copy {
  margin-top: 0.45rem;
  font-size: 0.9rem;
  line-height: 1.65;
}

.route-card-path {
  margin-top: 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.55;
}

.record-card,
.genre-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.record-art,
.genre-highlight,
.detail-cover {
  position: relative;
  overflow: hidden;
  border-radius: 1.8rem;
  border: 1px solid rgba(21, 21, 21, 0.1);
}

.record-art {
  aspect-ratio: 1;
  padding: 1rem;
  background: linear-gradient(145deg, var(--record-from), var(--record-to));
  box-shadow: 0 24px 70px var(--record-glow);
}

.record-art::before,
.detail-cover::before,
.genre-highlight::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 35%);
}

.record-art::after,
.detail-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.08);
}

.record-art-image,
.detail-cover-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.record-art-head,
.record-art-foot,
.detail-cover-inner {
  position: relative;
  z-index: 2;
}

.record-art-head {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.record-art-id,
.record-art-artist,
.detail-cover-code {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  text-transform: uppercase;
  line-height: 0.92;
}

.record-art-id {
  font-size: 3rem;
  color: #fff;
}

.record-art-artist {
  font-size: 2.2rem;
  color: #fff;
}

.record-art-label,
.record-art-title,
.detail-cover-label {
  color: rgba(255, 255, 255, 0.8);
}

.record-art-label,
.detail-cover-label {
  font-size: 0.68rem;
}

.record-art-year {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 0.68rem;
}

.record-art-foot {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
}

.record-card-body,
.genre-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.85rem;
}

.badge-row {
  gap: 0.5rem;
}

.badge {
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.62rem;
  color: var(--accent-strong);
}

.badge--soft {
  background: rgba(21, 21, 21, 0.05);
  color: var(--muted);
}

.card-copy {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--muted);
}

.card-divider {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.card-meta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.meta-label,
.stat-label {
  font-size: 0.62rem;
  color: var(--muted-strong);
}

.meta-value {
  margin-top: 0.35rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.price-value {
  margin-top: 0.35rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.2rem;
  line-height: 0.92;
}

.record-actions,
.stack-actions,
.drawer-actions,
.playlist-card-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.stats-grid {
  margin-top: 1.5rem;
}

.stat-card {
  border-radius: 1.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
}

.stat-value {
  margin-top: 0.65rem;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.8rem;
  line-height: 0.92;
}

.sidebar-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.snapshot-card {
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  padding: 1rem;
}

.snapshot-card .stat-label {
  color: rgba(255, 255, 255, 0.48);
}

.snapshot-card .stat-value {
  font-size: 2.4rem;
}

.snapshot-list,
.drawer-list,
.order-list,
.playlist-track-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.snapshot-item,
.order-item,
.drawer-item,
.track-row {
  border-radius: 1.3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.panel-dark .snapshot-item,
.panel-dark .track-row {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
}

.snapshot-item-title,
.order-item-title,
.drawer-item-title,
.track-row-title {
  margin: 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2rem;
  line-height: 0.92;
}

.empty-state,
.loading-state {
  padding: 2.2rem;
  border-radius: 1.7rem;
  border: 1px dashed rgba(21, 21, 21, 0.15);
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  text-align: center;
}

.loading-state {
  min-height: 18rem;
  display: grid;
  place-items: center;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  margin-top: 1.5rem;
}

.field,
.filter-control {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  min-width: 0;
}

.field-label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted-strong);
}

.input,
.textarea,
.select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: var(--surface);
  padding: 0.95rem 1rem;
  color: var(--ink);
  outline: none;
}

.input:focus,
.textarea:focus,
.select:focus {
  border-color: rgba(21, 21, 21, 0.3);
}

.textarea {
  min-height: 7rem;
  resize: vertical;
}

.filter-control--search {
  flex: 1 1 20rem;
}

.toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.toggle-pill {
  padding: 0.8rem 1.1rem;
  color: var(--muted);
  background: transparent;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.toggle-pill.is-active {
  background: #111;
  color: #fff;
}

.playlist-header {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--line);
}

.playlist-meter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.meter-pill {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.playlist-create {
  margin-top: 1.25rem;
  border-radius: 1.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  padding: 1.2rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.playlist-grid {
  margin-top: 1.5rem;
}

.playlist-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.playlist-card {
  padding: 1.2rem;
  border-radius: 1.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 45px rgba(10, 10, 10, 0.06);
}

.playlist-card.is-active {
  background: #111;
  color: #fff;
  box-shadow: 0 22px 60px rgba(10, 10, 10, 0.22);
}

.playlist-card.is-active .card-copy,
.playlist-card.is-active .field-label,
.playlist-card.is-active .meta-label {
  color: rgba(255, 255, 255, 0.68);
}

.playlist-card-head,
.drawer-item-head,
.order-item-head,
.track-row-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.playlist-card-title {
  margin: 0.45rem 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 2.6rem;
  line-height: 0.92;
}

.playlist-count {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.playlist-card.is-active .playlist-count {
  background: rgba(255, 255, 255, 0.1);
}

.playlist-detail {
  padding: 1.3rem;
  border-radius: 1.8rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
}

.playlist-detail-title {
  margin: 0.35rem 0 0;
  font-family: "Bebas Neue", sans-serif;
  font-size: 3.6rem;
  line-height: 0.92;
}

.detail-hero {
  padding: 1.8rem;
  border-radius: 2.3rem;
  color: #fff;
  border: 1px solid rgba(21, 21, 21, 0.1);
  box-shadow: var(--shadow-hard);
}

.detail-hero-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(18rem, 0.76fr) minmax(0, 1.24fr);
}

.detail-cover {
  min-height: 26rem;
  background: linear-gradient(145deg, var(--record-from), var(--record-to));
  box-shadow: 0 40px 110px var(--record-glow);
}

.detail-cover-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 1.4rem;
  border-radius: 1.6rem;
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(6px);
}

.detail-cover-code {
  font-size: 5rem;
}

.detail-meta-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 1.6rem;
}

.detail-meta-card {
  padding: 1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.12);
}

.detail-meta-card .field-label {
  color: rgba(255, 255, 255, 0.55);
}

.detail-meta-value {
  margin-top: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: none;
}

.drawer.is-open {
  display: block;
}

.drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.56);
  backdrop-filter: blur(4px);
}

.drawer-panel {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(32rem, 100vw);
  background: var(--paper-strong);
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 80px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
}

.drawer-header,
.drawer-body {
  padding: 1.4rem;
}

.drawer-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid var(--line);
}

.drawer-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  overflow: auto;
}

.drawer-summary {
  margin-top: auto;
  padding: 1.2rem;
  border-radius: 1.8rem;
  background: #111;
  color: #fff;
}

.drawer-summary-grid {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
}

.quantity-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem;
  background: rgba(255, 255, 255, 0.68);
}

.quantity-stepper button {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.quantity-stepper span {
  min-width: 2rem;
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.82rem;
}

.notice {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(21, 21, 21, 0.08);
  background: #111;
  color: #fff;
  box-shadow: 0 18px 40px rgba(10, 10, 10, 0.18);
}

.notice-copy {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.notice-close {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.4rem 0.7rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

.profile-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.not-found-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.centered-panel {
  width: min(40rem, calc(100vw - 2rem));
  text-align: center;
}

.noscript-banner {
  margin: 0 auto 2rem;
  width: min(48rem, calc(100vw - 2rem));
  padding: 1rem 1.2rem;
  border: 1px solid rgba(220, 38, 38, 0.18);
  border-radius: 1rem;
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
}

@media (max-width: 1200px) {
  .catalog-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid,
  .split-grid,
  .dashboard-grid,
  .playlist-grid,
  .detail-hero-grid,
  .login-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .metrics-grid,
  .detail-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .header-inner,
  .page-shell {
    width: min(100vw - 1rem, 1380px);
  }

  .page-shell {
    padding-bottom: 3rem;
  }

  .brand-link {
    font-size: 2.6rem;
  }

  .hero-panel,
  .panel,
  .detail-hero {
    padding: 1.25rem;
  }

  .hero-mini-grid,
  .stats-grid,
  .metrics-grid,
  .snapshot-grid,
  .card-grid,
  .catalog-grid,
  .detail-meta-grid,
  .form-grid,
  .form-grid--wide {
    grid-template-columns: 1fr;
  }

  .button-row,
  .filter-bar,
  .nav-pills {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    width: 100%;
    align-items: stretch;
  }

  .cart-trigger,
  .btn,
  .nav-pill {
    justify-content: center;
  }
}
