:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f7f7f7;
  --panel: #ffffff;
  --ink: #151515;
  --muted: #6b7280;
  --line: #e5e7eb;
  --soft-line: #f0f1f3;
  --brand: #7f1d1d;
  --brand-dark: #111827;
  --accent: #0f766e;
  --warning: #b45309;
  --danger: #b91c1c;
  --ink-soft: #374151;
  --ink-subtle: #4b5563;
  --link: #2563eb;
  --success: #047857;
  --focus-ring: rgba(15, 118, 110, 0.35);
  --success-soft: #dff8ec;
  --ok-bg: #e8f7f1;
  --warn-bg: #fff7ed;
  --info-bg: #eff6ff;
  --fixed-footer-height: 74px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
}

body {
  font-size: 14px;
  line-height: 1.45;
}

.site-shell {
  padding-bottom: calc(var(--fixed-footer-height) + env(safe-area-inset-bottom));
}

header {
  padding-top: 74px;
}

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

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

.top-strip {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.top-strip-inner,
.brand-header,
.content-shell,
.footer-inner {
  width: min(1140px, calc(100vw - 36px));
  margin: 0 auto;
}

.top-strip-inner {
  height: 74px;
  display: grid;
  grid-template-columns: minmax(280px, 440px) minmax(280px, 1fr);
  align-items: center;
  gap: 18px;
}

.top-strip-inner > * {
  min-width: 0;
}

.search-form {
  display: flex;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  overflow: hidden;
}

.search-form input {
  width: 100%;
  min-width: 0;
  border: 0;
  padding: 0 14px;
  outline: none;
}

.search-form button,
.link-button,
.dark-button,
.ghost-button,
.danger-button {
  border: 0;
  cursor: pointer;
  font-weight: 800;
  white-space: nowrap;
}

.search-form button {
  padding: 0 16px;
  background: #fff;
  color: var(--ink);
}

.quick-links,
.mobile-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
}

.quick-links a,
.mobile-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  white-space: nowrap;
}

.quick-links {
  justify-content: flex-end;
}

.brand-header {
  height: 128px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.site-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  font-weight: 950;
  letter-spacing: 0;
}

.site-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.quick-links a.active {
  color: var(--brand);
}

.front-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-height: 38px;
  flex: 0 0 auto;
}

.front-header-actions .front-language-menu,
.front-header-actions .account-menu {
  display: inline-flex;
  align-items: center;
}

.front-language-menu {
  position: relative;
  z-index: 82;
}

.front-language-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  min-height: 38px;
  padding: 0;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  line-height: 38px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  cursor: pointer;
  list-style: none;
}

.front-language-menu summary::-webkit-details-marker {
  display: none;
}

.front-language-menu[open] summary,
.front-language-menu summary:hover {
  color: var(--brand);
}

.front-language-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 58px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.front-language-option {
  width: 100%;
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.front-language-option:hover,
.front-language-option:focus-visible,
.front-language-option.active {
  color: #111827;
  background: #f3f4f6;
}

.account-menu {
  position: relative;
  z-index: 80;
}

.account-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0;
  cursor: pointer;
  list-style: none;
  font-weight: 900;
  color: #111827;
}

.account-menu summary::-webkit-details-marker {
  display: none;
}

.account-menu summary::after {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  margin-left: 1px;
  border-right: 2px solid #6b7280;
  border-bottom: 2px solid #6b7280;
  transform: rotate(45deg) translateY(-2px);
}

.account-menu[open] summary::after {
  transform: rotate(225deg) translate(-1px, -1px);
}

.account-menu-name {
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.account-menu-role {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.account-menu-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  display: grid;
  min-width: 150px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}

.account-menu-panel a {
  display: flex;
  align-items: center;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 5px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
}

.account-menu-panel a.active,
.account-menu-panel a:hover {
  color: #111827;
  background: #f3f4f6;
}

.hero {
  display: grid;
  grid-template-columns: 40px minmax(0, 1040px) 40px;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.hero-card {
  position: relative;
  height: 380px;
  overflow: hidden;
  background: #eef0f4;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
}

.hero-copy {
  display: grid;
  height: 100%;
  place-items: center;
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(240px, 330px) minmax(0, 1fr);
  align-items: center;
  gap: 38px;
  padding: 28px 36px;
  background: linear-gradient(135deg, var(--tone, #eef0f4), #ffffff 78%);
  color: #151515;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-image-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 950;
}

.hero-poster-wrap {
  display: grid;
  min-width: 0;
  place-items: center;
}

.hero-slide-image.image-box {
  position: relative;
  width: min(100%, 300px);
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 42px rgba(17, 24, 39, 0.14);
}

.hero-slide-image.image-box::after {
  display: none;
}

.hero-slide-image.image-box img {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
}

.hero-info {
  display: grid;
  align-content: center;
  justify-items: start;
  min-width: 0;
  gap: 14px;
}

.hero-info strong {
  display: block;
  max-width: 620px;
  font-size: 30px;
  line-height: 1.18;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.hero-product-brand {
  color: var(--link);
  font-size: 12px;
  font-weight: 950;
}

.hero-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--ink-subtle);
  font-size: 12px;
  font-weight: 850;
}

.hero-dates span {
  padding: 6px 9px;
  border: 1px solid rgba(75, 85, 99, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

.hero-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 5px;
  background: #111;
  color: #fff;
  font-weight: 900;
  font-size: 12px;
  transition: background 160ms ease, transform 160ms ease;
}

.hero-slide:hover .hero-action,
.hero-slide:focus-visible .hero-action {
  background: #000;
  transform: translateY(-1px);
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--muted);
  cursor: pointer;
}

.pager {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-bottom: 34px;
}

.dot {
  position: relative;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.dot::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d1d5db;
  display: block;
  margin: auto;
}

.dot.active::before {
  width: 18px;
  border-radius: 999px;
  background: #111827;
}

.section-title {
  margin: 0 0 18px;
  font-size: 26px;
  line-height: 1.22;
  font-weight: 900;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.date-section {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  margin-bottom: 72px;
}

.date-section:first-of-type {
  padding-top: 0;
  border-top: 0;
}

.product-grid {
  display: grid;
  justify-content: center;
  align-items: start;
  gap: var(--product-gap, 17px);
}

.product-grid-home {
  grid-template-columns: repeat(7, minmax(0, 148px));
  --product-gap: 17px;
}

.product-grid-browse {
  grid-template-columns: repeat(4, minmax(0, 168px));
  --product-gap: 32px;
}

.product-grid-related {
  grid-template-columns: repeat(4, minmax(0, 168px));
  --product-gap: 22px;
}

.product-card {
  min-width: 0;
}

.product-card a {
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.product-card a:hover,
.product-card a:focus-visible {
  border-color: #cbd5e1;
}

.image-box {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--tone, #f0f2f6);
  color: #94a3b8;
  text-align: center;
  font-weight: 900;
}

.image-box img,
.thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.image-box .image-fallback,
.thumb .image-fallback {
  display: none;
  position: absolute;
  inset: 0;
  place-items: center;
  padding: 8px;
  background: var(--tone, #f0f2f6);
  color: #8a93a3;
  font-size: 11px;
  font-weight: 900;
  text-align: center;
}

.image-box.no-image span,
.image-box.image-error .image-fallback,
.thumb.image-error .image-fallback {
  display: grid;
}

.image-box.image-error img,
.thumb.image-error img {
  display: none;
}

.product-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  font-size: 10px;
}

.product-card-body {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.product-brand {
  margin: 0;
  color: var(--link);
  font-size: 11px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.invoice-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  width: fit-content;
  margin: 0 0 7px;
  padding: 0 8px;
  border-radius: 999px;
  background: #fef3c7;
  color: #92400e;
  font-size: 11px;
  font-weight: 900;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.invoice-tag.detail-invoice {
  margin: 0 0 12px;
}

.invoice-tag.admin-invoice {
  margin: 0;
}

.product-name {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.translation-fallback {
  display: inline-flex;
  margin-inline-start: 0.55em;
  padding: 0.1em 0.45em;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: #7c5b00;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  vertical-align: 0.12em;
  white-space: nowrap;
}

.spec-current-name {
  margin: 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.spec-summary {
  display: grid;
  gap: 3px;
  margin-top: 3px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  min-width: 0;
}

.spec-summary strong {
  color: #1f2937;
  font-size: 12px;
}

.spec-summary span {
  color: #6b7280;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 850;
}

.status-text.closed {
  color: #b45309;
}

.status-text.published {
  color: var(--success);
}

.status-text.draft {
  color: #6b7280;
}

.product-price {
  margin: 5px 0 0;
  color: #374151;
  font-size: 12px;
  font-weight: 850;
}

.read-more {
  display: inline-flex;
  margin-top: 10px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  border-bottom: 1px solid var(--ink);
}

.page-header {
  margin: 16px 0 26px;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.page-header h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.page-header p {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
  text-wrap: pretty;
}

.browse-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 34px;
  margin-bottom: 60px;
  min-width: 0;
  align-items: start;
}

.selector-panel,
.detail-panel,
.login-card,
.notice,
.admin-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.selector-panel {
  padding: 18px 18px 20px;
  align-self: start;
  min-width: 0;
}

.selector-title {
  margin: 0 0 14px;
  font-size: 16px;
  font-weight: 900;
}

.calendar-grid,
.month-grid,
.brand-list {
  display: grid;
  gap: 8px;
}

.calendar-grid {
  grid-template-columns: repeat(7, 1fr);
}

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

.date-chip,
.brand-chip,
.month-chip {
  min-height: 38px;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
  text-align: center;
}

.date-chip.has,
.month-chip.has {
  background: #f3f4f6;
}

.date-chip.active,
.brand-chip.active,
.month-chip.active {
  background: #151515;
  color: #fff;
  border-color: #151515;
}

.brand-index-page-header {
  margin-bottom: 32px;
}

.brand-index-directory {
  min-width: 0;
  margin-bottom: 64px;
}

.brand-index-titlebar,
.brand-results-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-index-titlebar {
  margin-bottom: 14px;
}

.brand-index-titlebar h2 {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.3;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.brand-index-titlebar > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.brand-index-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 28px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand-index-jump a {
  display: grid;
  place-items: center;
  min-width: 32px;
  min-height: 32px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: var(--link);
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.brand-index-jump a:hover,
.brand-index-jump a:focus-visible {
  border-color: #9ca3af;
  background: #f7f7f7;
}

.brand-index-section {
  min-width: 0;
  margin-bottom: 28px;
  scroll-margin-top: 88px;
}

.brand-index-letter {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: #374151;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 900;
}

.brand-index-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px 28px;
}

.brand-index-trigger {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 40px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--link);
  text-decoration: none;
}

.brand-index-trigger:hover,
.brand-index-trigger:focus-visible {
  border-color: var(--line);
  background: #f7f7f7;
}

.brand-index-trigger.loading {
  cursor: progress;
}

.brand-index-name {
  min-width: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.brand-index-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  min-height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 10px;
  font-weight: 900;
}

.brand-browser > [hidden] {
  display: none !important;
}

.brand-products-view {
  min-width: 0;
  margin-bottom: 64px;
  scroll-margin-top: 88px;
  animation: brand-products-reveal 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-products-view:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.brand-results-header {
  display: grid;
  gap: 18px;
  margin-bottom: 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid var(--line);
}

.brand-results-heading {
  align-items: baseline;
}

.brand-results-heading h2 {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.brand-results-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.brand-results-back {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  color: var(--link);
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.brand-results-back:hover,
.brand-results-back:focus-visible {
  text-decoration: underline;
}

.product-grid-brand {
  grid-template-columns: repeat(auto-fill, minmax(140px, 148px));
  justify-content: start;
  --product-gap: 17px;
}

.brand-results-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.brand-results-progress {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.brand-results-progress:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 4px;
}

.brand-results-more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 1px solid #111827;
  border-radius: 5px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  text-decoration: none;
}

.brand-results-more:hover,
.brand-results-more:focus-visible {
  background: #374151;
  border-color: #374151;
}

.brand-results-more.loading {
  cursor: progress;
  opacity: 0.68;
}

.brand-products-loading-copy {
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.brand-products-skeleton {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 148px));
  gap: 17px;
}

.brand-products-skeleton i {
  display: block;
  aspect-ratio: 3 / 4.9;
  border-radius: 8px;
  background: #e5e7eb;
  animation: brand-skeleton-pulse 1.1s ease-in-out infinite alternate;
}

@keyframes brand-products-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brand-skeleton-pulse {
  from { opacity: 0.55; }
  to { opacity: 1; }
}

@media (max-width: 959px) {
  .brand-index-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap-inline: 18px;
  }
}

@media (max-width: 719px) {
  .brand-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap-inline: 10px;
  }

}

@media (max-width: 479px) {
  .brand-index-page-header {
    margin-bottom: 24px;
  }

  .brand-index-titlebar {
    margin-bottom: 10px;
  }

  .brand-index-jump {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .brand-index-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .brand-results-heading {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-products-view,
  .brand-products-skeleton i {
    animation: none;
  }
}

.empty-state {
  min-height: 160px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
  overflow-wrap: anywhere;
}

.empty-state strong {
  color: var(--ink);
  font-size: 14px;
}

.empty-state span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.catalog-page {
  min-width: 0;
}

.catalog-page .browse-results,
.catalog-page .product-grid,
.catalog-page .product-card,
.catalog-page .product-card a {
  min-width: 0;
}

.catalog-page .product-grid-related {
  justify-content: start;
}

.catalog-page .pager {
  margin-bottom: 42px;
}

.catalog-page .hero {
  margin-bottom: 14px;
}

.catalog-page .selector-panel .empty-state {
  min-height: 120px;
}

.product-card-grouped .product-name {
  margin-bottom: 0;
}

.catalog-empty-state {
  grid-column: 1 / -1;
}

.breadcrumb {
  margin: 12px 0 28px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.detail-page {
  min-width: 0;
}

.detail-layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 44px;
  margin-bottom: 50px;
}

.detail-layout > * {
  min-width: 0;
}

.detail-media {
  width: 390px;
  max-width: 100%;
  min-width: 0;
}

.detail-image-main {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.thumb {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 3 / 4;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--tone, #f0f2f6);
  overflow: hidden;
  cursor: pointer;
}

.thumb.active {
  border-color: #111827;
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.thumb.no-image {
  display: block;
  cursor: default;
}

.download-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  min-height: 42px;
}

.download-package-button {
  min-width: 112px;
}

.image-help {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.detail-brand {
  color: var(--link);
  font-weight: 950;
  overflow-wrap: anywhere;
}

.detail-title {
  margin: 8px 0 18px;
  font-size: 30px;
  line-height: 1.18;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.detail-spec-name {
  margin: -8px 0 14px;
  color: var(--ink-subtle);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.spec-selector {
  display: grid;
  gap: 12px;
  margin: 16px 0 20px;
  padding: 14px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fafc;
  min-width: 0;
}

.spec-selector span {
  color: #6b7280;
  font-size: 12px;
}

.spec-option-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
  gap: 8px;
}

.spec-option {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  min-width: 0;
}

.spec-option.active {
  border-color: var(--link);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.spec-option strong,
.spec-option span,
.spec-option em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.spec-option strong {
  font-size: 13px;
}

.spec-option em {
  color: #6b7280;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.field-table {
  display: grid;
  gap: 9px;
  margin: 22px 0;
}

.field-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  font-size: 14px;
}

.field-row strong {
  color: #111827;
}

.field-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.field-row.retail-price-row span {
  color: var(--danger);
  font-weight: 900;
}

.price-panel {
  margin: 18px 0;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #bfe5d8;
  background: var(--ok-bg);
  min-width: 0;
  overflow-wrap: anywhere;
}

.account-price-summary {
  display: grid;
  gap: 2px;
  min-height: 58px;
  align-content: center;
}

.account-price-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
}

.account-price-login strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
  line-height: 1.25;
}

.account-price-login span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.account-price-login .dark-button {
  white-space: nowrap;
}

.price-panel.warning {
  background: var(--warn-bg);
  border-color: #fed7aa;
}

.price-label {
  margin: 0 0 4px;
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
}

.price-value {
  margin: 0;
  font-size: 26px;
  font-weight: 950;
  line-height: 1.08;
}

.price-summary-note {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.price-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 0;
}

.price-tier-card {
  min-width: 0;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(4, 120, 87, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.price-tier-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  min-height: 22px;
}

.price-tier-card.editable {
  cursor: pointer;
}

.price-tier-card.editable:focus-visible {
  border-color: var(--success);
}

.price-tier-card.saving {
  cursor: wait;
  opacity: 0.82;
}

.price-tier-card.editable:hover,
.price-tier-card.editing {
  border-color: rgba(4, 120, 87, 0.45);
  background: #fff;
}

.price-tier-head span {
  display: inline-block;
  min-width: 0;
  color: var(--success);
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-tier-card strong {
  display: block;
  margin-top: 1px;
  color: #111827;
  font-size: 20px;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.price-tier-card strong.pending {
  color: #b45309;
  font-size: 14px;
}

.inline-price-edit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 22px;
  margin: 0;
  padding: 0 7px;
  border: 1px solid rgba(4, 120, 87, 0.28);
  border-radius: 5px;
  background: #fff;
  color: #065f46;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.inline-price-edit-button:hover,
.inline-price-edit-button:focus-visible {
  border-color: var(--success);
}

.price-tier-card.editing .inline-price-edit-button {
  display: none;
}

.inline-price-input {
  width: 100%;
  min-height: 34px;
  border: 1px solid #a7d7c5;
  border-radius: 6px;
  padding: 6px 8px;
  color: #111827;
  font: inherit;
}

.inline-price-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.inline-price-action {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.inline-price-action.save {
  border-color: rgba(4, 120, 87, 0.34);
  color: #065f46;
}

.inline-price-action.cancel {
  color: var(--muted);
}

.inline-price-action:disabled {
  cursor: wait;
  opacity: 0.68;
}

.inline-price-action:hover:not(:disabled),
.inline-price-action:focus-visible {
  border-color: var(--success);
}

.inline-price-hint,
.inline-price-error {
  display: block;
  margin-top: 6px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.price-tier-card.editing .inline-price-hint {
  display: none;
}

.inline-price-error {
  min-height: 0;
}

.inline-price-error:empty {
  display: none;
}

.inline-price-error.error {
  color: var(--danger);
}

.price-tier-card em {
  display: block;
  margin-top: 1px;
  color: var(--success);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.source-price-panel {
  margin-top: 18px;
  border: 1px solid #d8e4d3;
  background: #f8fbf6;
  border-radius: 8px;
  padding: 16px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-price-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  min-width: 0;
}

.source-price-header span,
.muted-text {
  color: #6b7280;
  font-size: 12px;
}

.source-price-row {
  border: 1px solid #e0e7dc;
  background: #fff;
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 7px;
  max-width: 100%;
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-price-row + .source-price-row {
  margin-top: 10px;
}

.source-price-main {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-width: 0;
  max-width: 100%;
}

.source-price-main > * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.source-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  background: #1f2937;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.source-price-main strong {
  font-size: 17px;
  color: #166534;
  line-height: 1.2;
}

.source-deadline {
  color: #4b5563;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.source-price-row p {
  margin: 0;
  color: var(--ink-subtle);
  font-size: 12px;
  line-height: 1.5;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.source-note {
  color: #6b7280;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.source-file-action {
  justify-self: start;
  max-width: 100%;
}

.source-price-empty {
  border: 1px dashed #cbd5c0;
  border-radius: 8px;
  padding: 14px;
  color: #6b7280;
  background: #fff;
}

.order-entry-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #d8e4d3;
  border-radius: 8px;
  background: #f8fbf6;
  min-width: 0;
  overflow-wrap: anywhere;
}

.order-entry-panel.warning {
  border-color: #fed7aa;
  background: var(--warn-bg);
}

.order-entry-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.order-entry-panel span,
.order-entry-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.order-entry-form {
  display: flex;
  align-items: end;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}

.order-entry-form label {
  display: grid;
  gap: 5px;
}

.order-entry-form input {
  width: 86px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
}

.business-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid #cfe0ee;
  border-radius: 8px;
  background: #f8fbff;
}

.business-contact-panel strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.business-contact-panel span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.contact-list,
.footer-contact-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
}

.contact-list a,
.footer-contact-list a {
  color: #2563eb;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.order-confirm-layout,
.order-detail-layout {
  width: min(820px, 100%);
  margin: 0 auto;
}

.account-page-header {
  max-width: 760px;
}

.account-home-layout {
  width: min(760px, 100%);
}

.account-home-card {
  overflow: visible;
}

.order-confirm-body,
.order-detail-body {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.order-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
}

.account-review-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.account-review-actions .dark-button,
.account-review-actions .danger-button {
  flex: 0 0 auto;
  min-width: 132px;
  min-height: 38px;
  padding: 0 16px;
  white-space: nowrap;
}

.orders-page-header {
  max-width: 760px;
}

.order-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.status-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 900;
}

.status-filter.active {
  color: #fff;
  border-color: #111827;
  background: #111827;
}

.status-filter span {
  color: inherit;
  opacity: 0.78;
}

.customer-order-table {
  min-width: 940px;
}

.customer-page,
.customer-page .breadcrumb,
.customer-page .page-header,
.customer-page .admin-card,
.customer-page .table-wrap,
.customer-page .field-table,
.customer-page .notice,
.customer-page .form-stack {
  min-width: 0;
}

.customer-page .page-header {
  margin-bottom: 22px;
}

.customer-page .page-header,
.customer-page .breadcrumb,
.customer-page .notice,
.customer-page .data-table th,
.customer-page .data-table td {
  overflow-wrap: anywhere;
}

.customer-page .admin-card {
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.035);
}

.customer-page .admin-card-header {
  align-items: flex-start;
}

.customer-page .admin-card-header > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-page .admin-card-header h1,
.customer-page .admin-card-header h2 {
  margin: 0;
  line-height: 1.25;
}

.customer-page .order-confirm-layout,
.customer-page .order-detail-layout,
.customer-page .account-home-layout {
  margin: 0 auto 60px;
  min-width: 0;
}

.customer-page .order-confirm-body,
.customer-page .order-detail-body {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-page .field-table {
  margin: 0;
}

.customer-page .field-row {
  grid-template-columns: 128px minmax(0, 1fr);
  align-items: start;
}

.customer-page .field-row strong,
.customer-page .field-row span,
.customer-page .form-field,
.customer-page .form-field span,
.customer-page textarea,
.customer-page input {
  min-width: 0;
  overflow-wrap: anywhere;
}

.customer-page textarea {
  max-width: 100%;
}

.customer-page .notice {
  align-items: flex-start;
  line-height: 1.45;
}

.customer-page .business-contact-panel {
  box-shadow: none;
}

.customer-page .order-actions {
  align-items: center;
  min-width: 0;
}

.customer-page .order-actions .dark-button,
.customer-page .order-actions .ghost-button {
  min-height: 40px;
}

.customer-page .order-status-filters {
  min-width: 0;
}

.customer-page .status-filter {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.customer-page .customer-order-card {
  overflow: hidden;
}

.customer-page .table-wrap {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.customer-page .data-table th,
.customer-page .data-table td {
  line-height: 1.45;
}

.customer-page .order-product-mini {
  min-width: 0;
  width: 100%;
}

.customer-page .order-product-mini > div {
  min-width: 0;
}

.customer-page .order-product-mini strong,
.customer-page .order-product-mini span {
  overflow-wrap: anywhere;
}

.customer-page .order-product-thumb {
  aspect-ratio: 3 / 4;
  height: auto;
  border-radius: 6px;
}

.order-product-mini {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 220px;
}

.order-product-mini strong {
  display: block;
  color: #111827;
  font-size: 12px;
  line-height: 1.35;
}

.order-product-mini span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.order-product-thumb {
  width: 54px;
  height: 72px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #f8fafc;
  color: #94a3b8;
  font-size: 10px;
  font-weight: 900;
}

.order-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.order-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.order-status.submitted {
  color: #1d4ed8;
  background: #dbeafe;
}

.order-status.confirmed {
  color: #047857;
  background: #dff8ec;
}

.order-status.balance_due {
  color: #b45309;
  background: #ffedd5;
}

.order-status.completed {
  color: #374151;
  background: #f3f4f6;
}

.order-status.canceled {
  color: #991b1b;
  background: #fee2e2;
}

.dark-button,
.link-button,
.ghost-button,
.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 5px;
}

.dark-button {
  background: #111;
  color: #fff;
}

.link-button {
  background: var(--brand);
  color: #fff;
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.danger-button {
  background: #fff1f2;
  color: var(--danger);
  border: 1px solid #fecdd3;
}

.dark-button:disabled,
.ghost-button:disabled,
.danger-button:disabled,
.download-package-button.disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.related {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  align-items: center;
  gap: 70px;
  min-height: 620px;
}

.auth-page,
.auth-page .login-layout,
.auth-page .login-context,
.auth-page .login-card,
.auth-page .form-stack,
.auth-page .form-field,
.auth-page .split-fields {
  min-width: 0;
}

.auth-layout {
  width: min(1040px, 100%);
  margin: 0 auto 70px;
  align-items: start;
  gap: 52px;
}

.auth-status-layout {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
  min-height: 420px;
}

.auth-context {
  padding: 26px 0;
}

.login-context h1 {
  margin: 0 0 16px;
  font-size: 32px;
  line-height: 1.14;
  overflow-wrap: anywhere;
}

.login-context p {
  max-width: 58ch;
  overflow-wrap: anywhere;
}

.login-context ul {
  margin: 22px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-weight: 750;
  display: grid;
  gap: 8px;
  overflow-wrap: anywhere;
}

.login-card {
  padding: 28px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.05);
}

.auth-card {
  border-radius: 8px;
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.04);
}

.auth-card h1,
.auth-card h2 {
  margin: 0;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.auth-status-card {
  display: grid;
  gap: 16px;
}

.auth-status-card .notice {
  margin: 0;
}

.register-card {
  align-self: start;
}

.verification-row {
  align-items: end;
}

.verification-row .ghost-button {
  min-height: 40px;
}

.form-stack {
  display: grid;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.auth-page .form-field {
  gap: 7px;
}

.form-field span {
  font-size: 12px;
  font-weight: 900;
  color: #374151;
}

.required-mark {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: #fff1f2;
  color: var(--danger);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  line-height: 18px;
  vertical-align: 1px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff;
  color: var(--ink);
  min-width: 0;
}

.auth-page .form-field input,
.auth-page .form-field select,
.auth-page .form-field textarea {
  min-height: 42px;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.password-input-wrap {
  position: relative;
  min-width: 0;
}

.password-input-wrap input {
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 4px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  padding: 0;
}

.password-toggle:hover {
  color: #111827;
  background: #f3f4f6;
}

.password-toggle:focus-visible {
  outline: 2px solid #111827;
  outline-offset: 2px;
}

.password-toggle-icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle-icon-hide,
.password-visible .password-toggle-icon-show {
  display: none;
}

.password-visible .password-toggle-icon-hide {
  display: block;
}

.auth-page .form-field input::placeholder,
.auth-page .form-field textarea::placeholder {
  color: #8a94a3;
}

.auth-page .form-field:focus-within span {
  color: #111827;
}

.form-field textarea {
  min-height: 74px;
  resize: vertical;
}

.form-error {
  padding: 10px 12px;
  border-radius: 6px;
  background: #fff1f2;
  color: var(--danger);
  font-weight: 800;
}

.auth-page .form-error {
  border: 1px solid #fecdd3;
  overflow-wrap: anywhere;
}

.field-help,
.field-error {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.field-help {
  color: var(--muted);
}

.field-error {
  color: var(--danger);
  font-weight: 800;
}

.auth-page .field-help,
.auth-page .field-error {
  margin-top: 2px;
}

.auth-page .split-fields {
  gap: 12px;
}

.auth-page .split-fields > * {
  min-width: 0;
}

.auth-page .dark-button,
.auth-page .ghost-button {
  min-height: 42px;
  justify-content: center;
}

.auth-page .site-subtitle {
  margin: 0;
  overflow-wrap: anywhere;
}

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  margin-top: 0;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 -10px 24px rgba(17, 24, 39, 0.06);
}

.footer-inner {
  min-height: var(--fixed-footer-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
}

.footer-contact strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
}

.footer-copy {
  text-align: right;
}

.admin-body {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 228px 1fr;
  background: var(--surface);
  min-width: 0;
}

.admin-sidebar {
  min-height: 100vh;
  height: 100vh;
  position: sticky;
  top: 0;
  overflow-y: auto;
  padding: 24px 18px;
  background: #151515;
  color: #fff;
}

.admin-brand {
  margin-bottom: 24px;
}

.admin-brand strong {
  display: block;
  font-size: 18px;
  font-weight: 950;
}

.admin-brand span {
  color: #a3a3a3;
  font-size: 12px;
  font-weight: 800;
}

.admin-nav {
  display: grid;
  gap: 8px;
}

.admin-nav a {
  padding: 11px 12px;
  border-radius: 6px;
  color: #d4d4d4;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.admin-nav a.active,
.admin-nav a:hover {
  background: #2a2a2a;
  color: #fff;
}

.sidebar-boundary {
  margin-top: 24px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #d4d4d4;
  font-size: 12px;
}

.admin-main {
  padding: 26px 32px;
  min-width: 0;
}

.admin-account-topbar {
  display: flex;
  justify-content: flex-end;
  min-height: 34px;
  margin-bottom: 10px;
  position: relative;
  z-index: 60;
}

.admin-account-topbar .account-menu-panel {
  z-index: 120;
}

.admin-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-width: 0;
}

.admin-header h1 {
  margin: 0;
  font-size: 24px;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.admin-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.notice {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-weight: 800;
  color: #92400e;
  background: var(--warn-bg);
  border-color: #fed7aa;
}

.notice.info {
  color: #1d4ed8;
  background: var(--info-bg);
  border-color: #bfdbfe;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.metric {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.metric strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
  line-height: 1;
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr)) auto;
  gap: 10px;
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filter-bar.accounts {
  grid-template-columns: minmax(220px, 1.5fr) repeat(5, minmax(120px, 1fr)) auto auto;
}

.filter-bar.brand-ledger-filter {
  grid-template-columns: minmax(180px, 1.4fr) repeat(4, minmax(0, 1fr)) auto;
}

.filter-bar.order-filter {
  grid-template-columns: minmax(240px, 1fr) minmax(160px, 220px) auto;
}

.filter-bar input,
.filter-bar select {
  min-width: 0;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
}

.admin-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
  gap: 24px;
}

.product-admin-workspace {
  grid-template-columns: minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.admin-products-page {
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr);
  gap: 16px;
  height: calc(100dvh - 96px);
  max-height: calc(100dvh - 96px);
  min-height: 0;
  min-width: 0;
  overflow: hidden;
}

.admin-products-page .admin-header,
.admin-products-page .notice,
.admin-products-page .metrics,
.admin-products-page .filter-bar,
.admin-products-page .admin-workspace,
.admin-products-page .admin-card,
.admin-products-page .table-wrap {
  min-width: 0;
}

.admin-products-page .notice {
  margin-bottom: 0;
  align-items: flex-start;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.product-task-queue {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.task-queue-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  min-width: 0;
}

.task-queue-heading h2 {
  margin: 2px 0 0;
  font-size: 16px;
  line-height: 1.2;
}

.task-queue-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.task-clear-link {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  background: #fafafa;
  font-size: 12px;
  font-weight: 900;
}

.task-clear-link.active {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.task-queue-list {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.task-card {
  min-width: 0;
  display: grid;
  gap: 4px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fafafa;
}

.task-card span,
.task-card small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.task-card span {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 950;
}

.task-card strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.task-card small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.3;
}

.task-card.teal.active {
  border-color: var(--focus-ring);
  background: var(--ok-bg);
}

.task-card.amber.active {
  border-color: var(--warning);
  background: var(--warn-bg);
}

.task-card.red.active {
  border-color: var(--danger);
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--danger);
}

.admin-products-page .metrics {
  margin-bottom: 0;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.admin-products-page .metric {
  padding: 13px 14px;
  box-shadow: none;
}

.admin-products-page .metric strong {
  font-size: 22px;
}

.admin-products-page .filter-bar {
  grid-template-columns: repeat(6, minmax(112px, 1fr)) minmax(170px, 1.35fr) auto auto;
  align-items: end;
  margin-bottom: 0;
  padding: 12px;
  background: #fafafa;
  box-shadow: none;
}

.admin-products-page .filter-bar button,
.admin-products-page .filter-bar .ghost-button {
  min-height: 38px;
  justify-content: center;
  white-space: nowrap;
}

.admin-ledger-page {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.admin-ledger-page .admin-header,
.admin-ledger-page .notice,
.admin-ledger-page .metrics,
.admin-ledger-page .filter-bar,
.admin-ledger-page .admin-tabs,
.admin-ledger-page .order-status-filters,
.admin-ledger-page .admin-workspace,
.admin-ledger-page .admin-card,
.admin-ledger-page .table-wrap {
  min-width: 0;
}

.admin-ledger-page .notice {
  margin-bottom: 0;
  align-items: flex-start;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.admin-ledger-page .metrics {
  margin-bottom: 0;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.admin-ledger-page .metric {
  padding: 13px 14px;
  box-shadow: none;
}

.admin-ledger-page .metric strong {
  font-size: 22px;
}

.admin-ledger-page .filter-bar {
  align-items: end;
  margin-bottom: 0;
  box-shadow: none;
}

.admin-ledger-page .filter-bar button,
.admin-ledger-page .filter-bar .ghost-button {
  min-height: 38px;
  white-space: nowrap;
}

.admin-orders-page .filter-bar.order-filter {
  grid-template-columns: minmax(220px, 1.4fr) minmax(160px, 1fr) repeat(3, minmax(120px, 0.8fr));
}

.admin-orders-page {
  grid-template-rows: auto auto auto auto auto minmax(0, 1fr);
  height: calc(100dvh - 96px);
  max-height: calc(100dvh - 96px);
  min-height: 0;
  overflow: hidden;
}

.admin-orders-page .admin-workspace,
.admin-orders-page .admin-card,
.admin-orders-page .table-wrap {
  min-height: 0;
}

.admin-accounts-page .filter-bar.accounts {
  grid-template-columns: minmax(240px, 1.4fr) minmax(130px, 0.8fr) repeat(5, minmax(118px, 1fr)) auto auto;
}

.admin-brand-ledger-page .filter-bar.brand-ledger-filter {
  grid-template-columns: minmax(220px, 1.5fr) repeat(4, minmax(118px, 0.9fr)) auto;
}

.admin-ledger-page .admin-tabs {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-accounts-page .order-status-filters {
  margin-bottom: 0;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-accounts-page .status-filter {
  min-height: 34px;
  border-radius: 6px;
}

.order-list-card,
.account-list-card,
.brand-ledger-list-card,
.settings-card {
  border-color: var(--line);
  box-shadow: none;
}

.order-list-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

.order-list-card > .table-wrap {
  flex: 1 1 0;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: auto;
}

.admin-ledger-page .data-table {
  table-layout: fixed;
}

.admin-ledger-page .data-table th,
.admin-ledger-page .data-table td {
  padding: 11px 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.admin-ledger-page .data-table strong,
.admin-ledger-page .data-table span,
.admin-ledger-page .data-table p,
.admin-ledger-page .muted-text,
.admin-ledger-page .ledger-details,
.admin-ledger-page .ledger-rule-row {
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-ledger-page .muted-text {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
}

.admin-ledger-page .read-more {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.admin-ledger-page .small-pill,
.admin-ledger-page .status-pill,
.admin-ledger-page .price-pill {
  white-space: nowrap;
}

.admin-ledger-page .order-admin-table {
  min-width: 1520px;
}

.order-admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid var(--line);
  background: #fafafa;
}

.admin-ledger-page .account-admin-table {
  min-width: 1220px;
}

.admin-ledger-page .account-application-table {
  min-width: 1120px;
}

.admin-ledger-page .brand-ledger-table {
  min-width: 1220px;
}

.order-admin-table th:nth-child(1) { width: 150px; }
.order-admin-table th:nth-child(2) { width: 96px; }
.order-admin-table th:nth-child(3) { width: 190px; }
.order-admin-table th:nth-child(4) { width: 260px; }
.order-admin-table th:nth-child(5),
.order-admin-table th:nth-child(6),
.order-admin-table th:nth-child(12) { width: 72px; }
.order-admin-table th:nth-child(7),
.order-admin-table th:nth-child(8),
.order-admin-table th:nth-child(9),
.order-admin-table th:nth-child(14) { width: 108px; }
.order-admin-table th:nth-child(10),
.order-admin-table th:nth-child(11) { width: 142px; }
.order-admin-table th:nth-child(13) { width: 170px; }

.account-admin-table th:nth-child(1) { width: 150px; }
.account-admin-table th:nth-child(2) { width: 140px; }
.account-admin-table th:nth-child(3) { width: 190px; }
.account-admin-table th:nth-child(4),
.account-admin-table th:nth-child(6),
.account-admin-table th:nth-child(7),
.account-admin-table th:nth-child(8),
.account-admin-table th:nth-child(10) { width: 108px; }
.account-admin-table th:nth-child(5) { width: 210px; }
.account-admin-table th:nth-child(9) { width: 150px; }

.account-application-table th:nth-child(1),
.account-application-table th:nth-child(8) { width: 150px; }
.account-application-table th:nth-child(2),
.account-application-table th:nth-child(3),
.account-application-table th:nth-child(4) { width: 170px; }
.account-application-table th:nth-child(5),
.account-application-table th:nth-child(6),
.account-application-table th:nth-child(7),
.account-application-table th:nth-child(9) { width: 110px; }

.brand-ledger-table th:nth-child(1) { width: 190px; }
.brand-ledger-table th:nth-child(2) { width: 150px; }
.brand-ledger-table th:nth-child(3) { width: 250px; }
.brand-ledger-table th:nth-child(4),
.brand-ledger-table th:nth-child(5),
.brand-ledger-table th:nth-child(8) { width: 120px; }
.brand-ledger-table th:nth-child(6) { width: 190px; }
.brand-ledger-table th:nth-child(7) { width: 150px; }

.admin-settings-page .settings-card {
  max-width: 720px;
}

.admin-settings-page .settings-form {
  padding: 18px;
}

.admin-settings-page .settings-form .field-table {
  gap: 8px;
  margin: 4px 0;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fafafa;
}

.admin-settings-page .settings-form .field-row {
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 14px;
  font-size: 13px;
}

.admin-settings-page .settings-form .image-help {
  margin: 0;
  overflow-wrap: anywhere;
}

.account-admin-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.admin-tabs {
  display: inline-flex;
  gap: 6px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.admin-tabs a {
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
}

.admin-tabs a.active {
  color: #fff;
  background: var(--ink);
}

.brand-ledger-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.settings-admin-workspace {
  grid-template-columns: minmax(0, 720px);
}

.settings-form {
  padding: 18px;
}

.admin-card {
  overflow: hidden;
}

.product-list-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  border-color: var(--line);
  box-shadow: none;
}

.product-list-card > .table-wrap {
  flex: 1 1 0;
  height: 100%;
  min-height: 0;
  max-height: none;
  overflow-x: auto;
  overflow-y: auto;
}

.admin-card-header {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
}

.admin-card-header h2 {
  margin: 0;
  font-size: 16px;
}

.table-wrap {
  overflow-x: auto;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1080px;
}

.data-table th,
.data-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--soft-line);
  text-align: left;
  vertical-align: top;
  font-size: 12px;
}

.data-table th {
  color: #6b7280;
  font-size: 11px;
  font-weight: 950;
  background: #fafafa;
}

.data-table td {
  font-weight: 750;
}

.product-admin-table {
  min-width: 1340px;
  table-layout: fixed;
}

.product-admin-table th,
.product-admin-table td {
  padding: 11px 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.product-admin-table tbody tr {
  background: #fff;
}

.product-admin-table tbody tr:hover {
  background: #fafafa;
}

.product-admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fafafa;
  border-bottom: 1px solid var(--soft-line);
  box-shadow: inset 0 -1px 0 var(--soft-line);
}

.product-admin-table th:nth-child(1) { width: 150px; }
.product-admin-table th:nth-child(2) { width: 250px; }
.product-admin-table th:nth-child(3) { width: 190px; }
.product-admin-table th:nth-child(4) { width: 128px; }
.product-admin-table th:nth-child(5),
.product-admin-table th:nth-child(6),
.product-admin-table th:nth-child(7) { width: 96px; }
.product-admin-table th:nth-child(8),
.product-admin-table th:nth-child(9),
.product-admin-table th:nth-child(10),
.product-admin-table th:nth-child(11) { width: 108px; }
.product-admin-table th:nth-child(12) { width: 80px; }

.product-admin-table td:nth-child(2) {
  color: #111827;
  font-weight: 850;
}

.admin-product-name {
  display: block;
  min-width: 0;
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 950;
  line-height: 1.38;
  overflow-wrap: anywhere;
}

.product-admin-table .muted-text {
  display: block;
  margin-top: 4px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.product-admin-table .read-more {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
}

.admin-products-page .status-pill.draft {
  color: var(--warning);
  background: var(--warn-bg);
}

.brand-ledger-table {
  min-width: 1180px;
}

.order-admin-workspace {
  grid-template-columns: minmax(0, 1fr);
}

.order-admin-table {
  min-width: 1280px;
}

.order-editor-modal {
  width: min(820px, 100%);
}

.order-editor-preview {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.order-status-actions,
.order-proof-actions,
.image-upload-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.order-proof-manager .image-upload-actions select {
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 8px;
  background: #fff;
}

.order-proof-list,
.order-history-list {
  display: grid;
  gap: 9px;
  margin: 10px 0 0;
  padding: 0;
}

.order-proof-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fff;
}

.order-proof-row strong,
.order-proof-row span {
  display: block;
}

.order-proof-row span,
.order-proof-row p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
}

.order-history-list {
  list-style: none;
}

.order-history-list li {
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fff;
}

.order-history-list strong,
.order-history-list span {
  display: block;
}

.order-history-list span,
.order-history-list p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.audience-pills,
.ledger-rule-head span,
.brand-rule-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.ledger-details summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 900;
}

.ledger-rule-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.ledger-rule-row {
  display: grid;
  gap: 5px;
  padding: 9px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fff;
}

.ledger-rule-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ledger-rule-row p {
  margin: 0;
  color: #4b5563;
  font-size: 11px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.status-pill,
.price-pill,
.small-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.status-pill.published,
.price-pill.ok,
.small-pill.ok {
  color: #047857;
  background: #dff8ec;
}

.status-pill.draft {
  color: #6b7280;
  background: #f3f4f6;
}

.status-pill.closed,
.price-pill.warn,
.small-pill.warn {
  color: #b45309;
  background: #ffedd5;
}

.status-pill.archived,
.small-pill.off {
  color: #991b1b;
  background: #fee2e2;
}

.side-editor {
  padding: 18px;
}

.product-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  justify-content: flex-end;
  align-items: stretch;
  padding: 20px;
  background: rgba(17, 24, 39, 0.42);
  overflow: hidden;
}

[data-product-editor-backdrop] {
  background: rgba(17, 24, 39, 0.34);
}

.account-editor-backdrop {
  justify-content: center;
  align-items: center;
  padding: 24px;
  overflow: auto;
}

.product-editor-modal {
  width: min(760px, 100%);
  max-width: calc(100vw - 40px);
  height: 100%;
  display: flex;
  border-radius: 8px;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.28);
}

[data-product-editor-modal] {
  width: min(820px, 100%);
  border: 1px solid rgba(229, 231, 235, 0.92);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
}

.brand-ledger-editor-modal {
  width: min(840px, 100%);
}

.account-editor-modal {
  width: min(540px, calc(100vw - 48px));
  height: auto;
  max-height: min(720px, calc(100vh - 48px));
  align-self: center;
}

.product-editor-modal .side-editor {
  width: 100%;
  min-height: 0;
  padding: 0 18px 18px;
  overflow-y: auto;
}

[data-product-editor-modal] .side-editor {
  gap: 12px;
  padding: 0 20px 20px;
}

.account-editor-modal .side-editor {
  padding: 0 18px 18px;
}

.account-editor-modal .form-stack {
  gap: 12px;
}

.account-editor-modal .form-field input,
.account-editor-modal .form-field select,
.account-editor-modal .form-field textarea {
  min-height: 40px;
  padding: 7px 10px;
}

.account-editor-modal .dark-button {
  min-height: 42px;
}

.account-danger-zone {
  border: 1px solid #fecdd3;
  border-radius: 8px;
  background: #fff1f2;
  padding: 12px;
}

.account-danger-zone .selector-title {
  color: #991b1b;
}

.account-danger-copy,
.account-archive-reason {
  margin: 0;
  color: #7f1d1d;
  font-size: 12px;
  line-height: 1.55;
}

.account-archive-reason {
  font-weight: 800;
}

.account-row-archived {
  color: #6b7280;
  background: #fafafa;
}

.small-pill.account-archived-pill {
  color: #4b5563;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
}

.switch-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.switch-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-track {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 999px;
  background: #d1d5db;
  transition: background 0.16s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
  transition: transform 0.16s ease;
}

.switch-field input:checked + .switch-track {
  background: var(--ink);
}

.switch-field input:checked + .switch-track::after {
  transform: translateX(20px);
}

.switch-field strong {
  font-size: 12px;
  color: var(--muted);
}

.product-editor-empty {
  height: auto;
  max-height: min(360px, calc(100vh - 40px));
  align-self: center;
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.modal-titlebar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 -18px 16px;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px) saturate(140%);
}

[data-product-editor-modal] .modal-titlebar {
  margin: 0 -20px 14px;
  padding: 16px 20px;
  background: #fff;
  backdrop-filter: none;
}

.modal-titlebar h2 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.modal-close {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #374151;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.modal-close:hover,
.modal-close:focus {
  border-color: #d1d5db;
  background: #f9fafb;
  color: #111827;
  outline: none;
}

.modal-close:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.35);
  outline-offset: 2px;
}

.admin-image-summary {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.admin-image-summary strong,
.admin-image-summary span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.admin-image-summary strong {
  color: #111827;
  font-size: 12px;
}

.admin-image-summary span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
}

.admin-image-summary span.ok {
  color: #047857;
}

.admin-product-thumb {
  width: 56px;
  height: 75px;
  border: 1px solid var(--soft-line);
  border-radius: 4px;
  font-size: 10px;
}

.side-editor h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.editor-preview {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  margin-bottom: 14px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: #fafafa;
  min-width: 0;
}

.editor-preview-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid var(--soft-line);
  font-size: 8px;
}

.editor-preview strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.editor-preview span {
  display: block;
  color: #6b7280;
  font-size: 11px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.price-editor {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.form-section {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fafafa;
  min-width: 0;
}

[data-product-editor-modal] .form-section,
[data-product-editor-modal] .image-manager,
[data-product-editor-modal] .source-price-manager,
[data-product-editor-modal] .product-group-editor {
  border-color: var(--line);
  background: #fff;
}

[data-product-editor-modal] .selector-title {
  margin: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

[data-product-editor-modal] .form-field,
[data-product-editor-modal] .split-fields,
[data-product-editor-modal] .price-editor,
[data-product-editor-modal] .image-manager,
[data-product-editor-modal] .source-price-manager {
  min-width: 0;
}

[data-product-editor-modal] .form-field input,
[data-product-editor-modal] .form-field select,
[data-product-editor-modal] .form-field textarea {
  min-height: 40px;
  max-width: 100%;
  color: var(--ink);
  overflow-wrap: anywhere;
}

[data-product-editor-modal] .form-field input::placeholder,
[data-product-editor-modal] .form-field textarea::placeholder {
  color: #8a94a3;
}

[data-product-editor-modal] .image-help,
[data-product-editor-modal] .image-empty-state,
[data-product-editor-modal] .source-file-uploader span {
  overflow-wrap: anywhere;
}

[data-product-editor-modal] > .side-editor > .dark-button[type="submit"] {
  min-height: 42px;
  margin-top: 2px;
}

.audience-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.brand-source-rules-editor {
  background: #f8fafc;
}

.brand-source-rule-editor {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: #fff;
}

.rule-add-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 950;
}

.rule-add-divider::before,
.rule-add-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--soft-line);
}

.price-editor-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  align-items: center;
  gap: 10px;
}

.price-editor-row span {
  color: #374151;
  font-size: 12px;
  font-weight: 850;
}

.split-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.image-manager {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  min-width: 0;
}

.image-manager.disabled {
  background: #fafafa;
}

.image-manager-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.image-manager-header > * {
  min-width: 0;
}

.image-manager-header .selector-title {
  margin-bottom: 4px;
}

.image-manager-header span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.image-upload-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.image-upload-log {
  min-height: 20px;
  color: #047857;
  font-size: 12px;
  font-weight: 850;
}

.image-upload-log.error {
  color: var(--danger);
}

.image-list {
  display: grid;
  gap: 10px;
}

.image-empty-state {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px dashed #d1d5db;
  border-radius: 7px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  font-weight: 850;
}

.image-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fafafa;
  min-width: 0;
}

.image-row-thumb {
  width: 64px;
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 10px;
}

.image-row-main {
  min-width: 0;
}

.image-row-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.image-row-title strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.main-image-badge {
  flex: 0 0 auto;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #dff8ec;
  color: #047857;
  font-size: 11px;
  font-weight: 900;
}

.image-row-main p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.image-row-status,
.image-row-message {
  display: block;
  font-size: 11px;
  font-weight: 850;
}

.image-row-status {
  color: #047857;
}

.image-row-message {
  min-height: 16px;
  color: var(--danger);
}

.image-row-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}

.image-row-actions .mini {
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-price-manager {
  border: 1px solid var(--soft-line);
}

.product-group-editor {
  border: 1px solid #dbe3ef;
  background: #f8fafc;
}

.spec-admin-list {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.spec-admin-list li {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  font-size: 12px;
}

.spec-admin-list span,
.spec-admin-list strong,
.spec-admin-list em {
  min-width: 0;
  overflow-wrap: anywhere;
}

.spec-admin-list em {
  color: #6b7280;
  font-style: normal;
  font-weight: 850;
}

.spec-admin-list b {
  color: #2563eb;
}

.source-file-uploader {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.source-file-uploader select {
  min-height: 34px;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  min-width: min(220px, 100%);
  max-width: 100%;
}

.source-file-uploader span {
  color: #7f1d1d;
  font-size: 12px;
}

.source-price-list {
  display: grid;
  gap: 10px;
}

.source-file-list {
  display: grid;
  gap: 7px;
}

.source-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  padding: 8px;
  background: #fff;
  min-width: 0;
}

.source-file-row div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.source-file-row strong,
.source-file-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.source-file-row > span,
.source-file-row div span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.source-editor-row {
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  background: #fff;
  padding: 10px;
  display: grid;
  gap: 9px;
  min-width: 0;
}

.source-editor-row-head,
.source-editor-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #374151;
  font-size: 12px;
  font-weight: 800;
}

.inline-check.danger {
  color: #991b1b;
}

.mini {
  min-height: 30px;
  padding: 0 7px;
  border-radius: 4px;
  font-size: 11px;
}

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

@media (max-width: 1179px) {
  .product-grid-home {
    grid-template-columns: repeat(5, minmax(0, 148px));
  }
}

@media (max-width: 959px) {
  .product-grid-home {
    grid-template-columns: repeat(4, minmax(0, 148px));
  }

  .product-grid-browse,
  .product-grid-related {
    grid-template-columns: repeat(3, minmax(0, 168px));
    --product-gap: 24px;
  }
}

@media (max-width: 900px) {
  :root {
    --fixed-footer-height: 106px;
  }

  .detail-page-shell {
    padding-bottom: 0;
  }

  .catalog-page-shell {
    padding-bottom: 0;
  }

  .customer-page-shell {
    padding-bottom: 0;
  }

  .auth-page-shell {
    padding-bottom: 0;
  }

  header {
    padding-top: 122px;
  }

  .top-strip-inner {
    height: auto;
    grid-template-columns: 1fr;
    padding: 14px 0;
  }

  .quick-links,
  .mobile-nav {
    overflow-x: auto;
    justify-content: flex-start;
    gap: 14px;
    width: 100%;
    padding-bottom: 4px;
  }

  .brand-header {
    height: auto;
    padding: 24px 0;
  }

  .site-title {
    font-size: 26px;
  }

  .hero {
    grid-template-columns: 1fr;
    height: auto;
  }

  .hero-card {
    height: 500px;
  }

  .hero-slide {
    grid-template-columns: 1fr;
    align-content: start;
    justify-items: center;
    gap: 18px;
    padding: 22px;
  }

  .hero-slide-image.image-box {
    width: min(76vw, 260px);
  }

  .hero-info {
    justify-items: start;
    width: 100%;
  }

  .hero-info strong {
    font-size: 22px;
  }

  .carousel-arrow {
    display: none;
  }

  .catalog-page + .footer {
    position: static;
    margin-top: 32px;
    backdrop-filter: none;
    box-shadow: none;
  }

  .browse-layout,
  .detail-layout,
  .login-layout,
  .admin-body,
  .admin-workspace {
    grid-template-columns: 1fr;
  }

  .browse-layout > *,
  .selector-panel,
  .browse-results {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .catalog-browse-layout .selector-panel {
    width: min(100%, 360px);
    max-width: 360px;
  }

  .detail-layout {
    gap: 26px;
    width: 100%;
  }

  .detail-page + .footer {
    position: static;
    margin-top: 32px;
    backdrop-filter: none;
    box-shadow: none;
  }

  .customer-page + .footer {
    position: static;
    margin-top: 32px;
    backdrop-filter: none;
    box-shadow: none;
  }

  .auth-page + .footer {
    position: static;
    margin-top: 32px;
    backdrop-filter: none;
    box-shadow: none;
  }

  .detail-layout article,
  .detail-image-main,
  .thumb-row,
  .field-table,
  .price-panel,
  .price-tier-grid,
  .source-price-panel,
  .order-entry-panel {
    min-width: 0;
    max-width: 100%;
  }

  .price-tier-grid {
    grid-template-columns: 1fr;
  }

  .spec-option-list {
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  }

  .catalog-browse-layout {
    gap: 22px;
  }

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

  .admin-sidebar {
    min-height: 0;
    height: auto;
    position: static;
    overflow: visible;
  }

  .admin-products-page .admin-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .admin-products-page .admin-actions,
  .admin-products-page .filter-bar {
    width: 100%;
  }

  .admin-products-page .filter-bar {
    grid-template-columns: 1fr;
  }

  .admin-products-page .filter-bar button,
  .admin-products-page .filter-bar .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .admin-ledger-page .admin-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .admin-ledger-page .admin-actions,
  .admin-ledger-page .filter-bar {
    width: 100%;
  }

  .admin-ledger-page .filter-bar,
  .admin-orders-page .filter-bar.order-filter,
  .admin-accounts-page .filter-bar.accounts,
  .admin-brand-ledger-page .filter-bar.brand-ledger-filter {
    grid-template-columns: 1fr;
  }

  .admin-ledger-page .filter-bar button,
  .admin-ledger-page .filter-bar .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .admin-ledger-page .order-status-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
    width: 100%;
  }

  .admin-ledger-page .status-filter {
    justify-content: space-between;
  }

  .admin-settings-page .settings-admin-workspace {
    grid-template-columns: 1fr;
  }

  .product-admin-table {
    min-width: 1180px;
  }

  .product-list-card > .table-wrap {
    min-height: clamp(360px, calc(100dvh - 280px), 560px);
    max-height: none;
  }

  [data-product-editor-modal] {
    width: min(680px, 100%);
    max-width: 100%;
  }

  [data-product-editor-modal] .side-editor {
    padding: 0 16px 16px;
  }

  [data-product-editor-modal] .modal-titlebar {
    margin: 0 -16px 14px;
    padding: 14px 16px;
  }

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

  .filter-bar,
  .filter-bar.accounts,
  .filter-bar.brand-ledger-filter,
  .filter-bar.order-filter,
  .customer-page .order-confirm-layout,
  .customer-page .order-detail-layout,
  .customer-page .account-home-layout,
  .business-contact-panel,
  .order-entry-panel,
  .order-editor-preview {
    grid-template-columns: 1fr;
  }

  .customer-page .order-confirm-layout,
  .customer-page .order-detail-layout,
  .customer-page .account-home-layout {
    width: 100%;
    margin-bottom: 48px;
  }

  .customer-page .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .customer-page .order-confirm-body,
  .customer-page .order-detail-body {
    padding: 16px;
    gap: 14px;
  }

  .customer-page .field-row {
    grid-template-columns: 1fr;
    gap: 4px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--soft-line);
  }

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

  .customer-page .order-actions {
    align-items: stretch;
  }

  .customer-page .order-actions .dark-button,
  .customer-page .order-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .customer-page .status-filter {
    flex: 1 1 calc(50% - 8px);
    justify-content: space-between;
    min-width: 132px;
  }

  .customer-page .customer-order-table {
    min-width: 720px;
  }

  .auth-layout {
    width: 100%;
    min-height: 0;
    margin-bottom: 48px;
    gap: 22px;
  }

  .auth-context {
    padding: 0;
  }

  .auth-context h1 {
    font-size: 28px;
  }

  .auth-card {
    padding: 22px;
  }

  .password-input-wrap input {
    padding-right: 50px;
  }

  .password-toggle {
    right: 2px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }

  .auth-status-layout {
    min-height: 320px;
  }

  .auth-page .dark-button,
  .auth-page .ghost-button,
  .auth-page .order-actions .dark-button,
  .auth-page .order-actions .ghost-button {
    width: 100%;
  }

  .auth-page .order-actions {
    align-items: stretch;
  }

  .admin-main {
    padding: 22px 20px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    padding: 10px 0;
  }

  .footer-copy {
    text-align: left;
  }

  .order-entry-form,
  .order-actions {
    justify-content: flex-start;
  }

  .account-review-actions {
    align-items: stretch;
  }

  .account-review-actions .dark-button,
  .account-review-actions .danger-button {
    width: 100%;
  }

  .order-entry-panel > .dark-button,
  .order-entry-panel > .ghost-button,
  .order-entry-form button {
    width: 100%;
  }

  .image-manager-header,
  .download-panel {
    flex-direction: column;
    align-items: stretch;
  }

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

  .detail-media {
    width: 100%;
    justify-self: center;
  }

  .product-editor-backdrop {
    padding: 12px;
  }

  .product-editor-modal {
    width: min(680px, 100%);
    max-width: 100%;
  }

  .account-editor-modal {
    width: min(540px, calc(100vw - 32px));
  }
}

@media (max-width: 719px) {
  .product-grid-home {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    --product-gap: 14px;
  }

  .product-grid-browse,
  .product-grid-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    --product-gap: 18px;
  }
}

@media (max-width: 520px) {
  .top-strip-inner,
  .brand-header,
  .content-shell,
  .footer-inner {
    width: min(100%, calc(100vw - 24px));
  }

  .page-header h1,
  .detail-title {
    font-size: 24px;
  }

  .section-title {
    margin-bottom: 14px;
    font-size: 22px;
    line-height: 1.25;
  }

  .date-section {
    margin-bottom: 56px;
  }

  .selector-panel {
    padding: 14px;
  }

  .calendar-month-tabs {
    gap: 6px;
  }

  .calendar-month-tabs a {
    min-height: 32px;
    padding: 0 8px;
  }

  .calendar-weekdays,
  .calendar-month-grid {
    gap: 5px;
  }

  .calendar-day {
    min-height: 34px;
  }

  .calendar-day span,
  .month-cell span {
    min-width: 14px;
    height: 14px;
    font-size: 9px;
  }

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

  .catalog-page .hero-card {
    height: 470px;
  }

  .catalog-page .hero-slide {
    padding: 18px;
  }

  .catalog-page .hero-info {
    gap: 10px;
  }

  .catalog-page .product-card a {
    padding: 7px;
  }

  .catalog-page .product-grid-home,
  .catalog-page .product-grid-browse,
  .catalog-page .product-grid-related {
    --product-gap: 12px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .detail-layout {
    gap: 20px;
    margin-bottom: 38px;
  }

  .thumb-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  .spec-selector,
  .price-panel,
  .source-price-panel,
  .order-entry-panel {
    padding: 14px;
  }

  .spec-option-list,
  .source-price-header,
  .account-price-login,
  .order-entry-panel,
  .business-contact-panel,
  .order-entry-form {
    grid-template-columns: 1fr;
  }

  .source-price-header,
  .account-price-login,
  .order-entry-form {
    display: grid;
    align-items: stretch;
  }

  .account-price-login > .dark-button {
    width: 100%;
  }

  .order-entry-form input {
    width: 100%;
  }

  .product-editor-backdrop {
    padding: 0;
  }

  .account-editor-backdrop {
    padding: 12px;
    align-items: center;
  }

  .product-editor-modal {
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .account-editor-modal {
    width: calc(100vw - 24px);
    height: auto;
    max-height: calc(100vh - 24px);
    border-radius: 8px;
  }

  .product-editor-modal .side-editor,
  .product-editor-empty {
    padding: 0 14px 16px;
  }

  .account-editor-modal .side-editor {
    padding: 0 14px 14px;
  }

  .modal-titlebar {
    margin: 0 -14px 14px;
    padding: 14px;
  }
}

@media (max-width: 640px) {
  .front-language-menu-panel {
    position: fixed;
    top: 58px;
    right: 18px;
  }

  .admin-products-page {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .admin-orders-page {
    height: auto;
    max-height: none;
    overflow: visible;
  }

  .product-admin-workspace,
  .product-list-card,
  .order-admin-workspace,
  .order-list-card {
    height: auto;
  }

  .product-task-queue {
    padding: 12px;
  }

  .task-queue-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .task-clear-link {
    width: 100%;
    justify-content: center;
  }

  .task-queue-list {
    grid-template-columns: 1fr;
  }

  .task-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .task-card small {
    grid-column: 1 / -1;
  }

  .product-list-card > .table-wrap {
    flex: initial;
    height: auto;
    min-height: 0;
    max-height: none;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: visible;
    background: #f9fafb;
  }

  .order-list-card > .table-wrap {
    flex: initial;
    height: auto;
    min-height: clamp(360px, calc(100dvh - 280px), 560px);
    max-height: none;
    overflow-x: auto;
    overflow-y: auto;
  }

  .product-admin-table,
  .product-admin-table tbody,
  .product-admin-table tr,
  .product-admin-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .product-admin-table {
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    min-width: 0;
  }

  .product-admin-table thead {
    display: none;
  }

  .product-admin-table tbody {
    display: grid;
    gap: 10px;
  }

  .product-admin-table tbody tr {
    display: grid;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
  }

  .product-admin-table th,
  .product-admin-table td {
    padding: 8px 0;
    border-bottom: 1px solid var(--soft-line);
    font-size: 12px;
  }

  .product-admin-table td {
    display: grid;
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }

  .product-admin-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 950;
  }

  .product-admin-table td:first-child {
    padding-top: 0;
  }

  .product-admin-table td:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .product-admin-table td:first-child {
    grid-template-columns: 1fr;
  }

  .product-admin-table td:first-child::before {
    display: none;
  }

  .product-admin-table td:last-child {
    grid-template-columns: 1fr;
  }

  .product-admin-table td:last-child::before {
    display: none;
  }

  .product-admin-table .read-more {
    width: 100%;
    min-height: 36px;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
  }
}

@media (max-width: 479px) {
  .product-grid-home,
  .product-grid-browse,
  .product-grid-related {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-page .hero-card {
    height: 440px;
  }

  .catalog-page .hero-slide-image.image-box {
    width: min(70vw, 210px);
  }

  .catalog-page .hero-info strong {
    font-size: 20px;
  }

  .catalog-page .product-name {
    font-size: 12px;
  }

  .catalog-page .product-brand,
  .catalog-page .product-meta,
  .catalog-page .spec-current-name,
  .catalog-page .spec-summary span {
    font-size: 11px;
  }

  .auth-layout {
    gap: 18px;
    margin-bottom: 40px;
  }

  .auth-context h1 {
    font-size: 25px;
  }

  .auth-context ul {
    margin-top: 16px;
  }

  .auth-card {
    padding: 18px;
  }

  .admin-main {
    padding: 18px 12px;
  }

  .admin-products-page .metrics {
    grid-template-columns: 1fr;
  }

  .admin-ledger-page .metrics {
    grid-template-columns: 1fr;
  }

  .admin-ledger-page .admin-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-settings-page .settings-form .field-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .auth-page .form-stack {
    gap: 12px;
  }

  .split-fields,
  .price-editor-row,
  .price-tier-grid {
    grid-template-columns: 1fr;
  }

  .image-row {
    grid-template-columns: 58px minmax(0, 1fr);
  }

  .image-row-thumb {
    width: 58px;
    height: 78px;
  }

  .image-row-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .source-price-header {
    display: grid;
  }

  .source-file-row,
  .source-editor-row-head,
  .source-editor-actions,
  .order-proof-row {
    grid-template-columns: 1fr;
  }

  [data-product-editor-modal] .source-file-uploader .dark-button,
  [data-product-editor-modal] .image-upload-actions .dark-button,
  [data-product-editor-modal] .image-upload-actions .ghost-button {
    width: 100%;
    justify-content: center;
  }

  .order-entry-form {
    display: grid;
    align-items: stretch;
  }

  .brand-rule-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 359px) {
  .product-grid-home,
  .product-grid-browse,
  .product-grid-related {
    grid-template-columns: 1fr;
  }

  .catalog-page .hero-card {
    height: 430px;
  }
}

/* Targeted v0.1.11 UI refinements. */
.admin-account-topbar {
  align-items: center;
  gap: 10px;
}

.admin-language-control label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-language-control span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.admin-language-control select {
  height: 30px;
  min-width: 104px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.catalog-page .hero-card {
  height: 500px;
}

.catalog-page .hero-slide {
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  padding: 28px 42px;
}

.catalog-page .hero-slide-image.image-box {
  width: min(100%, 330px);
  max-height: 440px;
}

.catalog-page .hero-slide-image.image-box img {
  object-fit: contain;
}

.detail-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  min-width: 0;
}

.detail-title-row .detail-title {
  min-width: 0;
}

.detail-title-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  padding-top: 6px;
}

.detail-title-action {
  flex: 0 0 auto;
  margin-top: 0;
  white-space: nowrap;
}

.dealer-view-toggle-form {
  margin: 0;
  line-height: 0;
}

.dealer-view-toggle {
  position: relative;
  width: 44px;
  height: 32px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.dealer-view-toggle::before {
  content: "";
  position: absolute;
  inset: 6px 4px;
  border: 1px solid #c7cbd1;
  border-radius: 999px;
  background: #d1d5db;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.dealer-view-toggle::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 7px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.2);
  transition: transform 0.18s ease;
}

.dealer-view-toggle:hover::before {
  border-color: var(--ink-soft);
}

.dealer-view-toggle[aria-checked="true"]::before {
  border-color: var(--ink);
  background: var(--ink);
}

.dealer-view-toggle[aria-checked="true"]::after {
  transform: translateX(16px);
}

.detail-preview-unavailable {
  min-height: 320px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}

.detail-preview-unavailable h1 {
  margin: 8px 0 10px;
}

.detail-preview-unavailable p:last-child {
  margin: 0;
  color: var(--muted);
}

.retail-price-row span {
  color: #b91c1c;
  font-weight: 950;
}

.detail-page .product-grid-related {
  justify-content: start;
}

.spec-selector {
  margin: 12px 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
}

.spec-option-list {
  grid-template-columns: repeat(auto-fit, minmax(148px, 1fr));
}

.spec-option {
  min-height: 58px;
  padding: 10px 12px;
  border-radius: 7px;
}

.source-info {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.source-info-button {
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  line-height: 1;
  cursor: help;
}

.source-tooltip {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 20;
  display: none;
  width: min(360px, 70vw);
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #111827;
  color: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.source-info:hover .source-tooltip,
.source-info:focus-within .source-tooltip {
  display: block;
}

.calendar-picker,
.month-picker {
  display: grid;
  gap: 14px;
}

.calendar-month-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.calendar-month-tabs a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 900;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.calendar-month-tabs a:hover {
  border-color: #cbd5e1;
  background: #fff;
  color: #111827;
}

.calendar-month-tabs a.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.calendar-weekdays,
.calendar-month-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays span {
  min-height: 22px;
  display: grid;
  place-items: center;
  color: var(--ink-subtle);
  font-size: 11px;
  font-weight: 950;
  text-align: center;
}

.calendar-day,
.month-cell {
  min-height: 42px;
  display: grid;
  place-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f9fafb;
  color: #9ca3af;
  font-size: 12px;
  font-weight: 850;
  line-height: 1;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.calendar-day {
  aspect-ratio: 1;
}

.calendar-day.empty {
  min-height: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.calendar-day.has,
.month-cell.has {
  background: #fff;
  color: var(--ink);
}

.calendar-day.has:hover,
.month-cell.has:hover {
  border-color: #9ca3af;
  background: #fff;
  color: #111827;
}

.calendar-day.active,
.month-cell.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: none;
}

.calendar-day strong,
.month-cell strong {
  font-size: 13px;
  line-height: 1;
}

.calendar-day span,
.month-cell span {
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--success-soft);
  color: var(--success);
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.calendar-day.active span,
.month-cell.active span {
  background: #fff;
  color: var(--success);
}

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

.admin-products-page {
  grid-template-rows: auto auto auto minmax(260px, 1fr);
}

.product-task-queue {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
}

.task-queue-heading {
  flex: 0 0 auto;
  align-items: center;
}

.task-queue-heading h2 {
  font-size: 14px;
}

.task-queue-list {
  flex: 1 1 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.task-card {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  border-radius: 999px;
}

.task-card span {
  font-size: 11px;
}

.task-card strong {
  font-size: 13px;
}

.product-list-card > .table-wrap {
  min-height: 280px;
  max-height: calc(100dvh - 330px);
}

.data-table th,
.data-table td,
.product-admin-table th,
.product-admin-table td {
  vertical-align: middle;
}

.product-admin-table td {
  height: 72px;
}

.inline-select-form,
.inline-switch-form {
  margin: 0;
}

.inline-select-form select {
  width: 118px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
}

.compact-switch {
  min-height: 30px;
  gap: 8px;
}

.compact-switch .switch-track {
  width: 36px;
  height: 20px;
}

.compact-switch .switch-track::after {
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
}

.compact-switch input:checked + .switch-track::after {
  transform: translateX(16px);
}

.admin-accounts-page .filter-bar.accounts {
  grid-template-columns: minmax(240px, 1.4fr) minmax(130px, 0.8fr) repeat(4, minmax(118px, 1fr)) auto auto;
}

.admin-ledger-page .account-admin-table {
  min-width: 1120px;
}

.account-admin-table th:nth-child(4),
.account-admin-table th:nth-child(7),
.account-admin-table th:nth-child(9) {
  width: 128px;
}

.account-admin-table th:nth-child(8) {
  width: 150px;
}

.account-editor-backdrop {
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.account-editor-modal {
  width: min(560px, 100vw);
  height: 100dvh;
  max-height: 100dvh;
  align-self: stretch;
  border-radius: 0;
}

.account-editor-modal .side-editor {
  padding: 0 20px 24px;
}

.admin-tabs a {
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.admin-tabs a.active {
  box-shadow: 0 1px 6px rgba(17, 24, 39, 0.12);
  transform: translateY(-1px);
}

.view-switch-tabs {
  width: fit-content;
}

.order-product-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  align-content: start;
  gap: 12px;
  min-height: 0;
  padding: 14px;
}

.order-products-view .order-list-card > .order-product-summary-grid {
  flex: 1 1 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.order-product-summary-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.order-product-summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.order-product-summary-stats span {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.product-localized-fields {
  padding: 0;
  overflow: hidden;
}

.product-localized-fields summary {
  position: relative;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
  list-style: none;
}

.product-localized-fields summary::-webkit-details-marker {
  display: none;
}

.product-localized-fields summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1;
}

.product-localized-fields[open] summary::after {
  content: "-";
}

.product-localized-fields summary small {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.product-localized-fields .image-manager-header {
  padding: 0 14px 10px;
  border-top: 1px solid var(--line);
}

.localized-profile-grid,
.localized-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.localized-language-card {
  min-width: 0;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.localized-language-card legend {
  padding: 0 4px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.localized-language-card legend span {
  color: var(--ink-soft);
  font-weight: 800;
}

@media (prefers-reduced-motion: reduce) {
  .admin-tabs a,
  .dealer-view-toggle::before,
  .dealer-view-toggle::after,
  .hero-action,
  .hero-slide {
    transition: none;
  }
}

@media (max-width: 900px) {
  .catalog-page .hero-card {
    height: 520px;
  }

  .catalog-page .hero-slide {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .catalog-page .hero-slide-image.image-box {
    width: min(76vw, 260px);
  }

  .detail-title-row {
    display: grid;
  }

  .detail-title-row.dealer-preview-active {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
  }

  .detail-title-row.dealer-preview-active .detail-title-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
  }

  .detail-title-action {
    margin-top: 0;
    width: fit-content;
  }

  .detail-title-actions {
    padding-top: 0;
  }

  .detail-preview-unavailable {
    min-height: 240px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 16px;
    padding: 32px 0;
  }

  .detail-preview-unavailable .detail-title-actions {
    grid-column: 2;
    grid-row: 1;
  }

  .product-task-queue {
    display: grid;
  }

  .localized-profile-grid,
  .localized-name-grid {
    grid-template-columns: 1fr;
  }

  .product-localized-fields summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-localized-fields summary::after {
    position: absolute;
    right: 14px;
  }

  .product-localized-fields summary small {
    max-width: calc(100% - 34px);
    text-align: left;
  }

  .source-tooltip {
    left: 0;
    right: auto;
    width: min(320px, 82vw);
  }
}

@media (max-width: 640px) {
  .order-products-view .order-list-card > .order-product-summary-grid {
    flex: initial;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    overscroll-behavior: auto;
  }
}
