:root {
  --blue: #0070ea;
  --blue-dark: #0059bb;
  --ink: #171717;
  --black: #0b0b0c;
  --paper: #f6f6f4;
  --white: #ffffff;
  --line: #d5d2ca;
  --muted: #68645d;
  --soft: #ece9e3;
  --soft-2: #ded9cf;
  --error: #ba1a1a;
  --brand-deep: #001a41;
  --electric: #7ddfff;
  --hero-image: url("/Flyer%20Templates/Flyer%20Template.jpg");
  --home-shell: #f2f6fb;
  --home-panel: #ffffff;
  --home-panel-alt: #e9f1fb;
  --home-ink: #10233f;
  --home-line: #bad0e8;
  --home-muted: #4b617c;
  --home-accent: #0070ea;
  --home-max: 1288px;
  --home-glass: rgba(255, 255, 255, 0.72);
  --home-glass-strong: rgba(255, 255, 255, 0.88);
  --home-shadow-soft: 0 24px 64px rgba(16, 35, 63, 0.09), 0 1px 0 rgba(255, 255, 255, 0.88) inset;
  --home-shadow-hover: 0 28px 72px rgba(16, 35, 63, 0.12), 0 1px 0 rgba(255, 255, 255, 0.94) inset;
  --shadow: 0 2px 8px rgba(10, 10, 10, 0.08);
  --motion: cubic-bezier(0.32, 0.72, 0, 1);
  color: var(--black);
  background: var(--paper);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  overflow-x: hidden;
}

.public-home {
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 95, 109, 0.14), transparent 22%),
    radial-gradient(circle at 90% 14%, rgba(106, 215, 255, 0.18), transparent 26%),
    radial-gradient(circle at 40% 90%, rgba(180, 140, 255, 0.14), transparent 24%),
    linear-gradient(135deg, #fdfdff 0%, #edf6ff 33%, #f6fbff 62%, #ffffff 100%);
  min-height: 100vh;
  isolation: isolate;
  position: relative;
}

.home-bokeh-background {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.home-bokeh-field {
  inset: 0;
  position: absolute;
}

.home-bokeh-dot {
  border-radius: 9999px;
  position: absolute;
  transform: translate3d(0, 0, 0);
}

.home-bokeh-dot-0,
.home-bokeh-dot-1 {
  animation: bokeh-drift 22s ease-in-out infinite, bokeh-glow 10s ease-in-out infinite;
}

.home-bokeh-dot-2,
.home-bokeh-dot-3 {
  animation: bokeh-drift 28s ease-in-out infinite reverse, bokeh-glow 12s ease-in-out infinite;
}

.home-bokeh-glow {
  border-radius: 9999px;
  filter: blur(26px);
  opacity: 0.14;
  position: absolute;
}

.home-bokeh-glow-a {
  background: radial-gradient(circle, rgba(255, 95, 109, 0.45), rgba(255, 95, 109, 0));
  height: 20vw;
  left: -6vw;
  top: 6vh;
  width: 20vw;
}

.home-bokeh-glow-b {
  background: radial-gradient(circle, rgba(106, 215, 255, 0.38), rgba(106, 215, 255, 0));
  height: 18vw;
  right: 4vw;
  top: 10vh;
  width: 18vw;
}

.home-bokeh-glow-c {
  background: radial-gradient(circle, rgba(180, 140, 255, 0.36), rgba(180, 140, 255, 0));
  bottom: 8vh;
  height: 24vw;
  left: 30vw;
  width: 24vw;
}

@keyframes bokeh-drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(var(--dot-drift-x, 0), var(--dot-drift-y, 0), 0);
  }
}

.public-home-shell {
  margin: 0 auto;
  max-width: var(--home-max);
  padding: 38px clamp(22px, 4vw, 42px) 56px;
  width: 100%;
  position: relative;
  z-index: 1;
}

.public-home-stack {
  display: grid;
  gap: 26px;
}

.home-flyer-carousel {
  padding: 0 0 24px;
  width: 100%;
}

.home-flyer-panel {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(229, 241, 253, 0.76) 62%, rgba(255, 255, 255, 0.9)),
    var(--home-glass-strong);
  overflow: hidden;
  padding: clamp(14px, 1.6vw, 22px);
  position: relative;
}

.home-flyer-panel::before {
  background: linear-gradient(180deg, rgba(0, 112, 234, 0.2), rgba(0, 112, 234, 0));
  content: "";
  height: 100%;
  left: 0;
  position: absolute;
  top: 0;
  width: 4px;
}

.home-flyer-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.campaign-surface-shadow {
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--home-shadow-soft);
  transition:
    box-shadow 320ms var(--motion),
    transform 320ms var(--motion),
    border-color 320ms var(--motion);
}

.home-flyer-panel,
.home-flyer-frame,
.story-card,
.home-about-copy,
.telemetry-card,
.content-empty-state,
.campaign-footer {
  border: 1px solid rgba(186, 208, 232, 0.76);
}

.home-flyer-copy {
  display: grid;
  align-content: end;
  gap: 18px;
  min-height: clamp(460px, 44vw, 590px);
  min-width: 0;
  padding: clamp(18px, 2.4vw, 34px);
  position: relative;
}

.campaign-eyebrow {
  color: var(--home-accent);
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.campaign-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.campaign-meta span {
  border-left: 2px solid var(--home-accent);
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding-left: 10px;
  text-transform: uppercase;
}

.home-flyer-copy h1,
.home-section-heading h2,
.story-header h1 {
  color: var(--home-ink);
  font-family: "Oswald", "Hanken Grotesk", sans-serif;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.home-flyer-copy h1 {
  font-size: clamp(58px, 7.2vw, 116px);
  margin: 0;
  max-width: 7ch;
}

.home-flyer-copy p {
  color: var(--home-muted);
  font-size: 17px;
  line-height: 1.75;
  margin: 0;
  max-width: 38rem;
}

.campaign-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.campaign-actions .button {
  border-color: rgba(16, 35, 63, 0.16);
  box-shadow: 0 12px 26px rgba(16, 35, 63, 0.1);
  overflow: visible;
  transition:
    background-color 320ms var(--motion),
    border-color 320ms var(--motion),
    box-shadow 320ms var(--motion),
    color 320ms var(--motion),
    transform 320ms var(--motion);
}

.campaign-actions .button.primary,
.public-top-nav .nav-actions .nav-cta {
  box-shadow: 0 14px 32px rgba(0, 112, 234, 0.24);
}

.campaign-actions .button:hover,
.public-top-nav .nav-actions .nav-cta:hover {
  box-shadow: 0 18px 38px rgba(16, 35, 63, 0.16), 0 0 0 4px rgba(0, 112, 234, 0.08);
  transform: translateY(-3px);
}

.campaign-actions .button.primary:hover {
  background: #005ec7;
  border-color: #005ec7;
}

.campaign-actions .button-mark {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: inherit;
  transition:
    background-color 320ms var(--motion),
    filter 320ms var(--motion),
    transform 320ms var(--motion);
}

.campaign-actions .button:hover .button-mark,
.public-top-nav .nav-actions button:hover {
  filter: drop-shadow(0 6px 10px rgba(0, 112, 234, 0.18));
}

.campaign-actions .button:hover .button-mark {
  transform: translate(2px, -1px);
}

.home-ghost-button {
  background: var(--home-ink);
  border-color: var(--home-ink);
  box-shadow: 0 14px 32px rgba(16, 35, 63, 0.18);
  color: var(--white);
}

.home-ghost-button:hover {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: var(--white);
}

.home-ghost-button .button-mark {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--white);
}

.home-ghost-button:hover .button-mark {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.home-flyer-media {
  align-items: center;
  display: grid;
  justify-items: end;
  min-width: 0;
}

.home-flyer-frame {
  aspect-ratio: 1 / 1;
  background:
    linear-gradient(145deg, rgba(0, 112, 234, 0.1), rgba(255, 255, 255, 0.62)),
    rgba(255, 255, 255, 0.72);
  box-shadow: 0 20px 44px rgba(16, 35, 63, 0.14);
  isolation: isolate;
  max-height: 610px;
  max-width: 100%;
  overflow: hidden;
  min-width: 0;
  position: relative;
  width: min(100%, 610px);
}

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

.home-flyer-overlay {
  align-items: end;
  background: linear-gradient(180deg, rgba(16, 35, 63, 0) 48%, rgba(16, 35, 63, 0.48));
  color: var(--white);
  display: grid;
  inset: 0;
  justify-items: start;
  padding: clamp(18px, 2vw, 28px);
  position: absolute;
  pointer-events: none;
}

.home-flyer-overlay span,
.story-card-tag {
  background: var(--white);
  border: 1px solid var(--home-line);
  color: var(--home-accent);
  display: inline-flex;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  padding: 6px 8px;
  text-transform: uppercase;
}

.home-flyer-overlay strong {
  font-family: "Oswald", "Hanken Grotesk", sans-serif;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-top: auto;
  text-transform: uppercase;
}

.home-carousel-controls {
  margin: 14px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.home-carousel-controls button {
  border: 1px solid var(--home-line);
  background: var(--home-glass-strong);
  box-shadow: 0 8px 18px rgba(16, 35, 63, 0.08);
  color: var(--home-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  min-height: 42px;
  padding: 0 16px;
  text-transform: uppercase;
  transition:
    background-color 220ms var(--motion),
    border-color 220ms var(--motion),
    box-shadow 220ms var(--motion),
    color 220ms var(--motion),
    transform 220ms var(--motion);
}

.home-carousel-controls button:hover {
  background: var(--home-accent);
  border-color: var(--home-accent);
  box-shadow: 0 14px 26px rgba(0, 112, 234, 0.2);
  color: var(--white);
  transform: translateY(-1px);
}

.home-content-notice {
  margin: 12px 4px 0;
}

.home-stories,
.home-about {
  padding: 4px 0 40px;
}

.home-section-heading {
  margin-bottom: 20px;
}

.home-section-heading h2 {
  margin: 0;
  font-size: clamp(38px, 5vw, 64px);
  max-width: 12ch;
}

.home-section-heading p {
  margin: 8px 0 0;
  max-width: 760px;
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.75;
}

.story-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.story-card {
  text-align: left;
  background: var(--home-glass);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.story-card:hover,
.home-about-copy:hover,
.telemetry-card:hover {
  box-shadow: var(--home-shadow-hover);
  transform: translateY(-1px);
}

.story-card-featured {
  grid-column: span 2;
}

.story-card img,
.story-card-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--home-panel-alt);
}

.story-card-image {
  display: grid;
  place-items: center;
}

.story-card-image .brand-logo {
  width: 132px;
}

.story-card-body {
  background:
    linear-gradient(180deg, rgba(0, 112, 234, 0.02), rgba(255, 255, 255, 0)),
    var(--home-panel);
  padding: 18px;
  display: grid;
  gap: 12px;
}

.story-card-body h3 {
  margin: 0;
  color: var(--home-ink);
  font-family: "Oswald", "Hanken Grotesk", sans-serif;
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0.02em;
  line-height: 0.96;
  text-transform: uppercase;
}

.story-card-body p {
  margin: 0;
  color: var(--home-muted);
  line-height: 1.65;
}

.story-meta {
  margin: 0;
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.story-card-action {
  justify-self: start;
}

.product-flyers-page,
.product-flyer-detail-page {
  background: var(--home-shell);
  min-height: 100vh;
  padding: 0;
}

.product-flyers-stack {
  position: relative;
  z-index: 1;
}

.product-flyer-intro {
  background: var(--home-glass);
  border: 1px solid var(--home-line);
  margin: 0;
  padding: clamp(22px, 4vw, 42px);
}

.product-flyer-intro h1 {
  color: var(--home-ink);
  font-family: "Oswald", "Hanken Grotesk", sans-serif;
  font-size: clamp(46px, 7vw, 96px);
  letter-spacing: 0.02em;
  line-height: 0.96;
  margin: 0;
  text-transform: uppercase;
}

.product-flyer-intro p {
  color: var(--home-muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 10px 0 0;
  max-width: 680px;
}

.product-flyer-category {
  display: grid;
  gap: 16px;
}

.product-flyer-category-head {
  align-items: end;
  border-bottom: 1px solid var(--home-line);
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 0.78fr) minmax(280px, 0.42fr);
  padding-bottom: 14px;
}

.product-flyer-category-head h2 {
  color: var(--home-ink);
  font-family: "Oswald", "Hanken Grotesk", sans-serif;
  font-size: clamp(32px, 4.6vw, 64px);
  letter-spacing: 0.02em;
  line-height: 0.96;
  margin: 0;
  text-transform: uppercase;
}

.product-flyer-category-head p {
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.65;
  margin: 0;
}

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

.product-flyer-card {
  background: var(--home-glass-strong);
  border: 1px solid var(--home-line);
  box-shadow: 0 14px 34px rgba(16, 35, 63, 0.08);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr);
  min-height: 360px;
  overflow: hidden;
}

.product-flyer-image {
  background:
    linear-gradient(145deg, rgba(0, 112, 234, 0.08), rgba(255, 255, 255, 0.62)),
    var(--home-panel-alt);
  min-height: 100%;
}

.product-flyer-image img,
.product-flyer-detail-media img {
  display: block;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.product-flyer-placeholder {
  align-items: center;
  background: var(--home-panel-alt);
  display: flex;
  height: 100%;
  justify-content: center;
  min-height: 260px;
}

.product-flyer-placeholder .brand-logo {
  width: 140px;
}

.product-flyer-copy,
.product-flyer-detail-copy {
  align-content: end;
  display: grid;
  gap: 14px;
  padding: clamp(20px, 3vw, 34px);
}

.product-flyer-copy p,
.product-flyer-detail-copy p {
  color: var(--home-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin: 0;
  text-transform: uppercase;
}

.product-flyer-copy h2,
.product-flyer-detail-copy h1 {
  color: var(--home-ink);
  font-family: "Oswald", "Hanken Grotesk", sans-serif;
  letter-spacing: 0.02em;
  line-height: 0.98;
  margin: 0;
  text-transform: uppercase;
}

.product-flyer-copy h2 {
  font-size: clamp(28px, 4vw, 56px);
}

.product-flyer-detail-copy h1 {
  font-size: clamp(42px, 7vw, 92px);
}

.product-flyer-copy span,
.product-flyer-detail-copy strong,
.product-flyer-story {
  color: var(--home-muted);
  font-size: 15px;
  line-height: 1.7;
}

.product-flyer-copy .button {
  justify-self: start;
}

.product-flyer-back {
  justify-self: start;
  margin: 0;
}

.product-flyer-detail {
  background: var(--home-glass-strong);
  border: 1px solid var(--home-line);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr);
  min-height: 620px;
}

.product-flyer-detail-media {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-flyer-gallery-item {
  background: var(--home-panel-alt);
  display: grid;
  margin: 0;
  min-height: 300px;
}

.product-flyer-gallery-item img {
  min-height: 260px;
}

.product-flyer-gallery-item figcaption {
  border-top: 1px solid var(--home-line);
  display: grid;
  gap: 4px;
  padding: 14px 16px;
}

.product-flyer-gallery-item figcaption strong {
  color: var(--home-ink);
  font-size: 14px;
}

.product-flyer-gallery-item figcaption span,
.product-flyer-gallery-item figcaption em {
  color: var(--home-muted);
  font-size: 12px;
  font-style: normal;
  line-height: 1.45;
}

.product-flyer-detail-media img:only-child,
.product-flyer-detail-media .product-flyer-placeholder:only-child {
  grid-column: 1 / -1;
}

.home-about-copy {
  display: grid;
  gap: 18px;
  align-content: start;
  background: var(--home-glass);
  min-height: 100%;
  padding: clamp(24px, 4vw, 40px);
}

.home-about-copy p {
  margin: 0;
  color: var(--home-ink);
  line-height: 1.8;
}

.home-about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
}

.home-about-banner {
  color: var(--home-muted) !important;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-about-points {
  display: grid;
  gap: 10px;
}

.home-about-points span {
  border-top: 1px solid var(--home-line);
  color: var(--home-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  padding-top: 12px;
  text-transform: uppercase;
}

.telemetry-card {
  background:
    linear-gradient(160deg, rgba(0, 112, 234, 0.14), rgba(255, 255, 255, 0.62)),
    var(--home-glass);
  display: grid;
  gap: 24px;
  min-height: 100%;
  padding: clamp(24px, 4vw, 40px);
}

.telemetry-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}

.telemetry-grid span {
  color: var(--home-muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.telemetry-grid strong {
  border-bottom: 1px solid rgba(16, 35, 63, 0.14);
  color: var(--home-ink);
  font-family: "Oswald", "Hanken Grotesk", sans-serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1;
  padding-bottom: 14px;
  text-transform: uppercase;
}

.story-page {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 16px 56px;
}

.campaign-story-page {
  padding-top: 24px;
}

.story-article {
  display: grid;
  gap: 20px;
  background: var(--home-panel);
  border: 1px solid var(--home-line);
  padding: clamp(20px, 4vw, 36px);
}

.story-header h1 {
  margin: 4px 0 0;
  font-size: clamp(44px, 6vw, 82px);
}

.story-summary {
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: 18px;
  line-height: 1.6;
}

.story-hero-image {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.story-body {
  display: grid;
  gap: 14px;
}

.story-body p {
  margin: 0;
  color: var(--home-ink);
  line-height: 1.8;
}

.content-empty-state {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(232, 243, 255, 0.62)),
    var(--home-glass);
  box-shadow: 0 12px 34px rgba(16, 35, 63, 0.06);
  padding: 22px 24px;
}

.content-empty-state p {
  margin: 0;
  color: var(--home-muted);
  font-size: 15px;
}

.website-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.content-admin-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.content-admin-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  background: var(--white);
}

.content-admin-item img,
.content-admin-thumb {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border-radius: 6px;
  background: var(--soft);
  display: block;
}

.content-admin-thumb {
  display: grid;
  place-items: center;
}

.content-admin-thumb .brand-logo {
  width: 56px;
}

.content-admin-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.content-admin-copy strong,
.content-admin-copy span {
  display: block;
}

.content-admin-copy strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.content-admin-copy span {
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.content-admin-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.site-controls-workspace {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: 220px minmax(0, 1fr);
}

.site-controls-panel {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.site-controls-card {
  min-width: 0;
}

.site-controls-panel .workflow-form {
  padding: 24px;
}

.site-controls-panel .content-admin-list {
  margin-top: 0;
  padding: 0 24px 24px;
}

.site-controls-panel .content-admin-item {
  align-items: start;
  gap: 14px;
  grid-template-columns: 72px minmax(0, 1fr);
  padding: 14px;
}

.site-controls-panel .content-admin-actions {
  flex-wrap: wrap;
  grid-column: 2;
  justify-content: flex-start;
}

.site-controls-panel .content-empty-state {
  margin: 0 24px 24px;
}

.site-controls-panel .site-control-grid {
  margin: 0;
}

.public-product-flyer-image-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 16px;
}

.public-product-flyer-image-control {
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}

.public-product-flyer-image-preview {
  background: var(--soft);
  border-radius: 6px;
  min-height: 180px;
  overflow: hidden;
}

.public-product-flyer-image-preview img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.public-product-flyer-image-empty {
  align-items: center;
  color: var(--muted);
  display: grid;
  min-height: 180px;
  place-items: center;
  text-align: center;
}

.public-product-flyer-image-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.public-product-flyer-gallery-editor {
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  padding: 16px;
}

.public-product-flyer-gallery-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.public-product-flyer-gallery-head h3 {
  font-size: 15px;
  margin: 0;
}

.public-product-flyer-gallery-head span {
  color: var(--muted);
  font-size: 13px;
}

.public-product-flyer-gallery-list {
  display: grid;
  gap: 12px;
}

.public-product-flyer-gallery-row {
  border: 1px solid rgba(23, 23, 23, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 170px minmax(0, 1fr);
  padding: 12px;
}

.public-product-flyer-gallery-row .public-product-flyer-image-preview {
  min-height: 150px;
}

.public-product-flyer-gallery-row .public-product-flyer-image-empty {
  min-height: 150px;
}

.public-product-flyer-gallery-fields {
  display: grid;
  gap: 10px;
}

.public-product-flyer-gallery-fields textarea {
  min-height: 72px;
}

.public-product-flyer-file-input {
  display: none;
}

.public-product-flyer-admin-card {
  grid-column: 1 / -1;
}

.public-product-flyer-admin-card .content-admin-item {
  grid-template-columns: 72px minmax(0, 1fr);
  align-items: start;
  padding: 14px;
}

.public-product-flyer-admin-card .content-admin-actions {
  grid-column: 2;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.public-product-flyer-admin-card .content-admin-list {
  padding: 0 24px 24px;
}

@media (max-width: 980px) {
  .home-flyer-stage {
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  }

  .website-content-grid {
    grid-template-columns: 1fr;
  }

  .site-controls-workspace {
    grid-template-columns: 1fr;
  }

  .site-controls-subnav nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-flyer-frame {
    aspect-ratio: 4 / 5;
  }

  .home-carousel-controls {
    justify-content: space-between;
  }

  .story-strip {
    grid-template-columns: 1fr;
  }

  .story-card-body h3 {
    font-size: 21px;
  }

  .product-flyers-page,
  .product-flyer-detail-page {
    padding: 22px var(--mobile-gutter) 36px;
  }

  .product-flyer-grid,
  .product-flyer-card,
  .product-flyer-detail {
    grid-template-columns: 1fr;
  }

  .product-flyer-category-head {
    grid-template-columns: 1fr;
  }

  .product-flyer-card {
    min-height: 0;
  }

  .product-flyer-image {
    aspect-ratio: 4 / 5;
  }

  .product-flyer-detail {
    min-height: 0;
  }

  .product-flyer-detail-media {
    grid-template-columns: 1fr;
  }

  .product-flyer-copy,
  .product-flyer-detail-copy {
    padding: 20px;
  }

  .content-admin-item {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .content-admin-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}

body::before {
  background-image: radial-gradient(rgba(23, 23, 23, 0.055) 0.65px, transparent 0.65px);
  background-size: 18px 18px;
  content: "";
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  position: fixed;
  z-index: 1;
}

#app {
  isolation: isolate;
  position: relative;
  z-index: 2;
}

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

button {
  cursor: pointer;
}

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

.app-shell {
  min-height: 100vh;
}

.brand-logo {
  display: block;
  width: 158px;
  height: auto;
}

.top-nav {
  align-items: center;
  background: rgba(246, 246, 244, 0.96);
  border-bottom: 0;
  box-shadow: 0 1px 0 rgba(23, 23, 23, 0.08);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  padding: 8px clamp(20px, 5vw, 64px);
  position: relative;
  top: 0;
  z-index: 20;
  transition: background-color 520ms var(--motion), border-color 520ms var(--motion);
}

.logo-link {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  height: 32px;
  overflow: visible;
  position: relative;
  width: clamp(154px, 14vw, 210px);
}

.bare-button {
  background: transparent;
  border: 0;
  padding: 0;
}

.logo-link .brand-logo {
  filter: drop-shadow(0 8px 16px rgba(0, 112, 234, 0.12));
  left: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(154px, 14vw, 210px);
}

.main-nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.mobile-area-label {
  display: none;
}

.portal-top-nav .main-nav {
  gap: 12px;
}

.main-nav button,
.nav-actions button,
.footer button,
.admin-sidebar button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: color 360ms var(--motion), background-color 360ms var(--motion), border-color 360ms var(--motion);
}

.main-nav button.active,
.main-nav button:hover {
  color: var(--blue);
}

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

.public-top-nav {
  background: rgba(255, 255, 255, 0.76);
  border-bottom: 1px solid rgba(186, 208, 232, 0.9);
  box-shadow: 0 10px 28px rgba(16, 35, 63, 0.06);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(14px);
}

.public-top-nav .main-nav {
  gap: 10px;
}

.public-top-nav .main-nav button,
.public-top-nav .nav-actions button {
  background: rgba(255, 255, 255, 0.54);
  border: 1px solid rgba(186, 208, 232, 0.72);
  color: var(--home-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  min-height: 40px;
  padding: 0 14px;
  text-transform: uppercase;
}

.public-top-nav .main-nav button.active,
.public-top-nav .main-nav button:hover,
.public-top-nav .nav-actions button:hover {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(0, 112, 234, 0.34);
  color: var(--home-accent);
}

.public-top-nav .nav-actions .nav-utility {
  border-color: rgba(0, 112, 234, 0.26);
}

.public-top-nav .nav-actions .nav-cta {
  background: var(--home-ink);
  border-color: var(--home-ink);
  box-shadow: 0 14px 32px rgba(16, 35, 63, 0.16);
  color: var(--white);
}

.public-top-nav .nav-actions .nav-cta:hover {
  background: var(--home-accent);
  border-color: var(--home-accent);
  color: var(--white);
  filter: brightness(1);
}

.mobile-menu-button,
.mobile-nav-backdrop,
.mobile-nav-drawer,
.mobile-context-bar,
.mobile-catalog-toolbar,
.filter-sheet-backdrop,
.filter-sheet,
.inventory-card-list {
  display: none;
}

.mobile-menu-button {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  height: 38px;
  justify-content: center;
  padding: 0;
  width: 38px;
}

.menu-dots {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(2, 5px);
  justify-content: center;
}

.menu-dots i {
  background: var(--ink);
  border-radius: 2px;
  display: block;
  height: 5px;
  width: 5px;
}

.mobile-menu-button[aria-expanded="true"] {
  border-color: var(--ink);
  box-shadow: 0 1px 4px rgba(10, 10, 10, 0.08);
}

.mobile-context-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 8px 14px;
}

.mobile-context-bar button {
  background: transparent;
  border: 0;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  min-height: 32px;
  padding: 0;
}

.icon-button {
  align-items: center;
  border: 1px solid var(--line);
  background: var(--white);
  display: inline-flex;
  height: 32px;
  justify-content: center;
  min-width: 32px;
  padding: 0 10px;
  width: auto;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  transition: border-color 360ms var(--motion), background-color 360ms var(--motion), transform 360ms var(--motion);
}

.icon-button:hover {
  border-color: var(--ink);
  transform: translateY(-1px);
}

.reseller-strip {
  align-items: center;
  background: var(--brand-deep);
  color: var(--white);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  padding: 10px 20px;
}

.hero {
  align-items: center;
  color: var(--white);
  display: flex;
  min-height: calc(100dvh - 82px);
  overflow: hidden;
  padding: clamp(44px, 7vh, 72px) clamp(20px, 5vw, 64px);
  position: relative;
}

.hero-bg {
  background-image:
    linear-gradient(100deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 24, 60, 0.86) 44%, rgba(0, 75, 156, 0.48) 100%),
    var(--hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: 0;
  position: absolute;
  transform: scale(1.04);
  animation: heroDrift 18s var(--motion) infinite alternate;
}

.hero-bg::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.38), transparent 52%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.78), transparent 48%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-blue-wash {
  background:
    radial-gradient(circle at 82% 18%, rgba(0, 112, 234, 0.42), transparent 28%),
    radial-gradient(circle at 16% 72%, rgba(0, 89, 187, 0.24), transparent 30%);
  inset: 0;
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
  position: absolute;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: clamp(28px, 5vw, 72px);
  grid-template-columns: minmax(0, 760px) minmax(260px, 1fr);
  margin: 0 auto;
  max-width: 1260px;
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  color: #d6e3ff;
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.eyebrow.dark {
  color: var(--blue);
}

h1,
h2,
h3,
h4 {
  font-family: "Hanken Grotesk", "Plus Jakarta Sans", sans-serif;
  margin: 0;
}

.hero h1 {
  font-size: clamp(48px, 6.4vw, 88px);
  font-weight: 800;
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 24px;
  max-width: 720px;
}

.hero p {
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.6;
  margin: 0 0 34px;
  max-width: 560px;
}

.hero-actions,
.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.button {
  align-items: center;
  border: 1px solid var(--black);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  overflow: hidden;
  padding: 0 18px;
  position: relative;
  transition: background-color 420ms var(--motion), border-color 420ms var(--motion), color 420ms var(--motion), transform 420ms var(--motion);
}

.button > * {
  position: relative;
  z-index: 2;
}

.button-mark {
  align-items: center;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  display: inline-flex;
  font-size: 10px;
  height: 26px;
  justify-content: center;
  min-width: 26px;
  padding: 0 6px;
  transition: transform 420ms var(--motion), background-color 420ms var(--motion);
}

.button:hover .button-mark {
  background: rgba(255, 255, 255, 0.24);
  transform: translateX(2px) translateY(-1px);
}

.button:hover,
.card-action:hover,
.upload-box:hover {
  transform: translateY(-1px);
}

.button:active,
.card-action:active,
.upload-box:active {
  transform: translateY(0) scale(0.99);
}

.button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.workflow-form .button.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}

.charge-button {
  border-color: color-mix(in srgb, var(--electric) 72%, white 28%);
  box-shadow:
    0 0 0 1px rgba(107, 218, 255, 0.28),
    0 0 18px rgba(0, 112, 234, 0.34),
    inset 0 0 18px color-mix(in srgb, var(--electric) 16%, transparent);
}

.charge-button::before {
  background: linear-gradient(100deg, transparent 0%, rgba(225, 250, 255, 0.95) 42%, var(--electric) 50%, transparent 62%);
  content: "";
  inset: -24px -62px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: translateX(-72%) skewX(-20deg);
  z-index: 1;
  animation: chargeSweep 2.35s var(--motion) infinite;
}

.charge-button::after {
  background:
    linear-gradient(132deg, transparent 0 31%, rgba(235, 252, 255, 0.96) 32% 35%, transparent 36% 100%),
    linear-gradient(42deg, transparent 0 53%, var(--electric) 54% 57%, transparent 58% 100%),
    linear-gradient(158deg, transparent 0 64%, rgba(255, 255, 255, 0.9) 65% 68%, transparent 69% 100%);
  box-shadow: 0 0 24px color-mix(in srgb, var(--electric) 56%, transparent);
  content: "";
  inset: -8px;
  mix-blend-mode: screen;
  opacity: 0.32;
  pointer-events: none;
  position: absolute;
  z-index: 1;
  animation: buttonBolt 1.42s steps(1, end) infinite;
}

.charge-button.subdued {
  box-shadow: 0 0 0 1px rgba(107, 218, 255, 0.18), 0 0 14px rgba(0, 112, 234, 0.22);
}

.charge-button.subdued::after {
  animation-delay: 0.38s;
}

.hero-meta {
  color: rgba(255, 255, 255, 0.74);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  max-width: 620px;
}

.hero-meta span {
  border-left: 2px solid rgba(0, 112, 234, 0.72);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  padding-left: 12px;
}

.button.small {
  min-height: 40px;
}

.button.mini {
  min-height: 34px;
  padding: 0 12px;
}

.button.full {
  width: 100%;
}

.catalog-section {
  display: grid;
  gap: 32px;
  grid-template-columns: 280px 1fr;
  margin: 0 auto;
  max-width: 1280px;
  padding: 84px clamp(20px, 5vw, 64px);
}

.filters {
  align-self: start;
  display: grid;
  gap: 34px;
  position: sticky;
  top: 96px;
}

.filters h2,
.section-header h2,
.panel-toolbar h2,
.lab-section h2,
.portal-header h1,
.admin-topbar h1 {
  color: var(--black);
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.1;
}

.search-field,
.compact-search {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  gap: 10px;
  padding: 0 12px;
}

.search-field span,
.compact-search span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search-field input,
.compact-search input {
  background: transparent;
  border: 0;
  min-height: 42px;
  outline: 0;
  width: 100%;
}

.filter-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 14px;
}

.filter-options {
  display: grid;
  gap: 12px;
}

.filter-options label {
  align-items: center;
  display: flex;
  gap: 10px;
}

.size-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, 1fr);
}

.size-grid button,
.pager button {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 38px;
}

.range-labels,
.section-header,
.panel-toolbar,
.pager,
.summary-row,
.line-total,
.order-title-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

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

.section-header {
  gap: 20px;
  margin-bottom: 30px;
}

.section-header select {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 40px;
  padding: 0 12px;
}

.section-note {
  color: var(--muted);
  line-height: 1.5;
  margin: 10px 0 0;
  max-width: 560px;
}

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

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: border-color 520ms var(--motion), transform 520ms var(--motion), box-shadow 520ms var(--motion);
}

.product-card:hover {
  border-color: #b9b2a6;
  box-shadow: 0 8px 24px rgba(10, 10, 10, 0.07);
  transform: translateY(-2px);
}

.product-visual {
  align-items: center;
  aspect-ratio: 4 / 3;
  background: var(--soft);
  display: flex;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: background-color 520ms var(--motion);
}

.table-product .product-visual,
.order-item .product-visual {
  aspect-ratio: 1;
  flex: 0 0 48px;
  width: 48px;
}

.product-photo {
  box-sizing: border-box;
  display: block;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  width: 100%;
}

.missing-product-image {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  height: 100%;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.missing-product-image small {
  color: var(--muted-2);
  font-size: 11px;
  max-width: 80%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-visual em {
  bottom: 14px;
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  position: absolute;
  right: 14px;
}

.product-card-gallery {
  position: relative;
}

.product-card-gallery > .product-visual {
  width: 100%;
}

.gallery-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: flex;
  font-size: 22px;
  font-weight: 700;
  height: 36px;
  justify-content: center;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  z-index: 2;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  border-color: var(--ink);
}

.gallery-arrow.previous {
  left: 8px;
}

.gallery-arrow.next {
  right: 8px;
}

.gallery-count {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 6px;
  position: absolute;
  right: 8px;
}

.product-card-body {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 20px;
}

.product-card h3 {
  font-size: 24px;
}

.product-card p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 6px 0 0;
}

.price-stack {
  text-align: right;
}

.price-stack strong {
  color: var(--blue-dark);
  display: block;
  font-size: 24px;
  white-space: nowrap;
}

.price-stack small {
  color: var(--muted);
  font-weight: 700;
}

.swatches {
  display: flex;
  gap: 7px;
  margin-top: 14px;
}

.swatch {
  border: 1px solid var(--line);
  border-radius: 50%;
  display: inline-block;
  height: 15px;
  width: 15px;
}

.swatch.neutral {
  background: var(--surface-strong);
}

.swatch.orange {
  background: #f97316;
}

.swatch.blue {
  background: #2563eb;
}

.swatch.black {
  background: #111827;
}

.swatch.white {
  background: #fff;
}

.card-action {
  background: var(--black);
  border: 0;
  color: var(--white);
  font-weight: 700;
  margin: 0 20px 20px;
  min-height: 42px;
  transition: background-color 420ms var(--motion), transform 420ms var(--motion);
  width: calc(100% - 40px);
}

.text-link {
  background: transparent;
  border: 0;
  color: var(--blue-dark);
  font-weight: 700;
  padding: 0;
  text-align: left;
}

.detail-page,
.form-page,
.info-page {
  margin: 0 auto;
  max-width: 1280px;
  padding: 48px clamp(20px, 5vw, 64px);
}

.detail-grid {
  align-items: start;
  display: grid;
  gap: 44px;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  margin-top: 28px;
}

.detail-grid > .product-visual {
  min-height: 540px;
}

.detail-gallery-strip {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(88px, 1fr));
  margin-top: 14px;
}

.gallery-thumb {
  background: var(--white);
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: var(--ink);
  box-shadow: 0 8px 20px rgba(10, 10, 10, 0.12);
  outline: none;
  transform: translateY(-1px);
}

.gallery-thumb.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 112, 234, 0.18);
}

.gallery-thumb img {
  aspect-ratio: 1;
  display: block;
  object-fit: cover;
  width: 100%;
}

.detail-copy {
  background: var(--white);
  border: 1px solid var(--line);
  padding: clamp(24px, 4vw, 42px);
  box-shadow: 0 12px 34px rgba(10, 10, 10, 0.05);
  overflow: hidden;
  position: relative;
}

.detail-brand-mark {
  display: block;
  margin: 4px 0 18px;
  max-width: 240px;
  width: 58%;
}

.detail-copy h1,
.form-hero h1,
.info-page h1 {
  color: var(--black);
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1.05;
  margin: 0 0 18px;
}

.detail-price {
  color: var(--blue-dark);
  font-family: "Hanken Grotesk", "Plus Jakarta Sans", sans-serif;
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 14px;
}

.selector-group {
  margin-top: 26px;
}

.selector-group div {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.selector-group button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 38px;
  padding: 0 12px;
  transition: background-color 360ms var(--motion), border-color 360ms var(--motion), color 360ms var(--motion);
}

.selector-group button.selected {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.detail-actions,
.split-actions,
.portal-actions,
.row-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detail-actions {
  margin-top: 30px;
}

.detail-note {
  background: var(--soft);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
  margin-top: 18px;
  padding: 14px;
}

.related-products {
  margin-top: 44px;
}

.form-page.narrow {
  max-width: 760px;
}

.form-hero {
  max-width: 860px;
  margin-bottom: 30px;
}

.form-hero p,
.info-page p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.form-grid {
  align-items: start;
  display: grid;
  gap: 26px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.auth-grid {
  grid-template-columns: minmax(0, 1fr) 320px;
}

.signup-page .workflow-form {
  gap: 14px;
}

.auth-process-panel {
  position: sticky;
  top: 24px;
}

.admin-invite-page {
  max-width: 1040px;
  min-height: 100vh;
  padding-top: clamp(54px, 8vh, 92px);
  width: 100%;
}

.admin-invite-page * {
  min-width: 0;
}

.admin-invite-hero {
  margin-bottom: 24px;
  max-width: 720px;
}

.admin-invite-hero h1 {
  font-size: clamp(38px, 5vw, 64px);
  letter-spacing: 0;
  line-height: 0.98;
  margin-bottom: 20px;
  max-width: 680px;
  overflow-wrap: break-word;
}

.admin-invite-hero p {
  font-size: 18px;
  line-height: 1.65;
  max-width: 760px;
}

.admin-invite-layout {
  align-items: stretch;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  max-width: 100%;
}

.workflow-form.admin-invite-card,
.process-panel.admin-invite-flow {
  box-shadow: 0 2px 8px rgba(10, 10, 10, 0.08);
  min-width: 0;
  padding: 28px;
}

.admin-invite-card {
  align-content: start;
}

.admin-invite-card .notice {
  overflow-wrap: anywhere;
}

.admin-invite-card .notice.error {
  background: #fffafa;
  margin-bottom: 4px;
}

.admin-invite-help {
  border-top: 1px solid var(--line);
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
  padding-top: 18px;
}

.admin-invite-actions {
  display: grid;
  gap: 12px;
}

.google-button {
  align-items: center;
  display: inline-flex;
  gap: 10px;
  justify-content: center;
  min-width: 0;
  white-space: normal;
}

.google-mark {
  align-items: center;
  background: var(--white);
  color: var(--black);
  display: inline-flex;
  flex: 0 0 24px;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  line-height: 1;
  width: 24px;
}

.admin-invite-flow {
  align-content: start;
}

.admin-invite-flow .process-step {
  grid-template-columns: 30px 1fr;
}

.admin-invite-flow .process-step > strong {
  height: 30px;
  width: 30px;
}

.admin-invite-flow .process-step h3 {
  font-size: 16px;
}

.admin-invite-flow .process-step p {
  overflow-wrap: break-word;
}

.admin-invite-page .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

.workflow-form,
.process-panel,
.timeline-panel,
.email-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 24px;
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.045);
}

.workflow-form {
  display: grid;
  gap: 16px;
}

.form-section-title {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.form-actions-row {
  display: grid;
  gap: 10px;
}

.dev-login-links {
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  gap: 10px;
  padding: 14px;
}

.dev-login-links p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.workflow-form label {
  display: grid;
  gap: 7px;
}

.workflow-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.workflow-form input,
.workflow-form textarea,
.workflow-form select {
  background: var(--white);
  border: 1px solid var(--line);
  min-height: 44px;
  padding: 0 12px;
  transition: border-color 320ms var(--motion), box-shadow 320ms var(--motion);
}

.workflow-form input:focus,
.workflow-form textarea:focus,
.search-field input:focus,
.compact-search input:focus,
.qty-input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(23, 23, 23, 0.08);
  outline: 0;
}

.workflow-form textarea {
  min-height: 120px;
  padding: 12px;
}

.invite-link-row {
  align-items: center;
  display: flex;
  gap: 10px;
}

.invite-link-row input {
  flex: 1;
  min-width: 0;
}

.password-help-card {
  margin-top: 16px;
}

.password-help-card > p {
  color: var(--muted);
  margin: 0;
}

.process-panel,
.timeline-panel {
  display: grid;
  gap: 16px;
}

.process-panel h2 {
  margin: 0;
}

.process-step {
  display: grid;
  gap: 12px;
  grid-template-columns: 34px 1fr;
}

.process-step > strong {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.process-step h3 {
  font-size: 17px;
}

.process-step p {
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 0;
}

.notice.success {
  border-left-color: #08622d;
}

.notice.warning {
  border-left-color: #c88400;
}

.pager {
  color: var(--muted);
  gap: 20px;
  margin-top: 28px;
}

.pager div {
  display: flex;
  gap: 8px;
}

.pager button {
  align-items: center;
  display: flex;
  justify-content: center;
  min-width: 38px;
  padding: 0 10px;
}

.pager button.active {
  background: var(--black);
  color: var(--white);
}

.lab-section {
  background: var(--soft);
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr 1fr;
  padding: 64px clamp(20px, 5vw, 64px);
}

.lab-panel {
  align-items: center;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 280px;
  text-align: center;
}

.lab-panel span {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 64px;
  font-weight: 800;
}

.lab-section p {
  color: var(--muted);
  line-height: 1.7;
}

.portal-page {
  margin: 0 auto;
  max-width: 1440px;
  padding: 48px clamp(20px, 5vw, 64px);
}

.portal-header {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.portal-header p {
  color: var(--muted);
  margin-bottom: 0;
}

.portal-actions {
  justify-content: flex-end;
}

.portal-quick-nav {
  display: none;
}

.protected-pill {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  padding: 10px 12px;
}

.account-chip {
  display: grid;
  gap: 2px;
  text-align: right;
}

.account-chip span {
  font-size: 13px;
  font-weight: 800;
}

.account-chip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
}

.metric-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 32px;
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  padding: 22px;
  transition: border-color 420ms var(--motion), transform 420ms var(--motion);
}

.metric-card:hover {
  border-color: #b9b2a6;
  transform: translateY(-1px);
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.metric-card strong {
  font-family: "Hanken Grotesk", sans-serif;
  font-size: 34px;
}

.metric-card small {
  color: var(--blue-dark);
  font-weight: 800;
}

.reseller-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) 380px;
}

.inventory-panel,
.order-sidebar,
.admin-card,
.import-panel,
.product-overview {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.04);
}

.inventory-panel,
.import-panel,
.product-overview {
  padding: 24px;
}

.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  min-width: 820px;
  width: 100%;
}

tbody tr {
  transition: background-color 280ms var(--motion);
}

tbody tr:hover {
  background: rgba(236, 233, 227, 0.45);
}

th {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: left;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  vertical-align: middle;
  white-space: nowrap;
}

td {
  color: var(--ink);
  font-size: 14px;
}

.table-product {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 240px;
}

.mono {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
}

.price {
  color: var(--blue-dark);
  font-weight: 800;
}

.stock-badge {
  background: var(--soft);
  border: 1px solid var(--line);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 8px;
}

.stock-badge.low {
  background: #ffdad8;
  border-color: #92001c;
  color: #92001c;
}

.qty-input {
  border: 1px solid var(--line);
  min-height: 36px;
  padding: 0 8px;
  text-align: right;
  width: 70px;
}

.reseller-shop-panel {
  background: var(--paper);
  min-height: 420px;
  min-width: 0;
}

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

.reseller-product-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
}

.clickable-product-card {
  cursor: pointer;
}

.clickable-product-card:hover {
  border-color: var(--ink);
}

.reseller-product-card > .product-visual,
.reseller-product-card > .product-card-gallery .product-visual {
  aspect-ratio: 1.2;
  border: 0;
  border-bottom: 1px solid var(--line);
  width: 100%;
}

.reseller-product-copy {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.reseller-product-head {
  align-items: start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
}

.reseller-product-head h3 {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.05;
  margin: 4px 0 0;
}

.reseller-product-head p,
.reseller-product-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  margin: 0;
}

.reseller-product-head strong {
  color: var(--blue-dark);
  font-size: 18px;
  white-space: nowrap;
}

.reseller-product-head strong.price-pending {
  color: #b7351f;
  font-size: 13px;
  text-transform: uppercase;
}

.product-facts {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 12px;
  font-weight: 800;
}

.product-facts span {
  background: var(--soft);
  border: 1px solid var(--line);
  padding: 6px 10px;
}

.product-facts .stock-exact {
  color: var(--blue-dark);
}

.variant-picker {
  display: grid;
  gap: 10px;
}

.colour-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.colour-strip button {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  flex: 0 0 150px;
  gap: 8px;
  padding: 10px 12px;
  text-align: left;
}

.colour-strip button.selected {
  border-color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}

.colour-strip .product-visual {
  aspect-ratio: 1.35;
  border: 0;
  min-height: 0;
  width: 100%;
}

.colour-strip .product-visual em,
.colour-strip .missing-product-image small {
  display: none;
}

.colour-dot {
  background: linear-gradient(135deg, var(--ink), var(--blue));
  border-radius: 999px;
  display: inline-block;
  height: 11px;
  width: 11px;
}

.colour-strip span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.colour-strip-more {
  align-self: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.product-card-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.product-card-actions .button {
  max-width: 190px;
}

.product-card-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.bulk-order-panel {
  background: #f7f3ed;
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 12px;
}

.bulk-order-head {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.bulk-order-head strong {
  display: block;
  font-size: 14px;
}

.bulk-order-head span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.bulk-order-sizes {
  align-items: baseline;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.bulk-order-sizes span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.size-matrix {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
}

.size-cell {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 8px;
}

.size-cell label {
  display: grid;
  gap: 6px;
}

.size-cell label span {
  font-size: 12px;
  font-weight: 900;
}

.size-cell .qty-input {
  width: 100%;
}

.size-cell small {
  margin-top: 0;
}

.bulk-order-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.reseller-builder-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.18fr) minmax(300px, 0.62fr);
}

.builder-product-panel,
.builder-form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 16px;
}

.builder-product-panel > .product-visual {
  aspect-ratio: 1.08;
  width: 100%;
}

.builder-section-head {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.builder-section-head h2 {
  font-size: 18px;
  margin: 0;
}

.builder-section-head span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.builder-colour-order-list {
  display: grid;
  gap: 14px;
}

.builder-colour-order-card {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  gap: 0;
  min-width: 0;
}

.builder-colour-card-head {
  align-items: center;
  background: var(--soft);
  display: grid;
  gap: 12px;
  grid-template-columns: 104px minmax(0, 1fr) auto;
  padding: 12px;
}

.builder-colour-image .product-visual {
  aspect-ratio: 1.2;
  border: 1px solid var(--line);
  min-height: 0;
  width: 104px;
}

.builder-colour-image .product-visual em,
.builder-colour-image .missing-product-image small {
  display: none;
}

.builder-colour-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.builder-colour-copy strong,
.builder-colour-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.builder-colour-copy span,
.builder-colour-state {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.builder-colour-state {
  color: var(--ink);
}

.builder-colour-total {
  display: grid;
  gap: 2px;
  justify-items: end;
  min-width: 58px;
}

.builder-colour-total strong {
  font-size: 20px;
}

.builder-colour-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.builder-size-list {
  display: grid;
}

.builder-size-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(120px, 0.9fr) minmax(90px, 0.7fr) minmax(90px, 0.6fr) minmax(72px, 0.45fr);
  padding: 10px 12px;
}

.builder-size-row + .builder-size-row {
  border-top: 1px solid var(--line);
}

.builder-size-row label {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 58px 78px;
}

.builder-size-row label span {
  font-size: 13px;
  font-weight: 800;
}

.builder-size-row .qty-input {
  width: 78px;
}

.builder-size-row strong {
  font-size: 13px;
  text-align: right;
}

.reseller-detail-grid {
  align-items: start;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.02fr) minmax(300px, 0.58fr);
}

.reseller-detail-media,
.reseller-detail-order {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
  min-width: 0;
  padding: 18px;
}

.reseller-detail-media > .product-visual {
  aspect-ratio: 1.12;
  min-height: 0;
  width: 100%;
}

.reseller-detail-media > .product-visual .product-photo {
  object-fit: contain;
  padding: 12px;
}

.reseller-detail-order h1 {
  font-size: clamp(28px, 2.45vw, 38px);
  line-height: 1.08;
  margin: 4px 0 0;
}

.detail-facts {
  margin-top: -4px;
}

.reseller-detail-order .reseller-product-head {
  min-width: 0;
}

.reseller-detail-order .reseller-product-head > div {
  min-width: 0;
}

.detail-colour-strip button {
  flex-basis: 126px;
}

.reseller-detail-sidebar {
  min-width: 0;
  top: 96px;
}

.availability {
  color: var(--blue-dark);
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 3px;
}

.availability.low {
  color: #8a5a00;
}

.availability.sold-out {
  color: var(--muted);
}

.exact-stock {
  color: var(--ink);
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  margin-top: 2px;
}

.request-confirmation {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 980px;
  padding: 24px;
}

.confirmation-head {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.confirmation-head h1 {
  font-size: 32px;
  margin: 0 0 6px;
}

.confirmation-head p {
  color: var(--muted);
  margin: 0;
}

.confirmation-summary {
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.confirmation-summary div {
  display: grid;
  gap: 4px;
  padding: 14px;
}

.confirmation-summary div + div {
  border-left: 1px solid var(--line);
}

.confirmation-summary span,
.confirmation-line span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.confirmation-summary strong {
  font-size: 22px;
}

.confirmation-lines {
  border: 1px solid var(--line);
  display: grid;
}

.confirmation-line {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(80px, 0.5fr) minmax(80px, 0.5fr);
  padding: 12px;
}

.confirmation-line + .confirmation-line {
  border-top: 1px solid var(--line);
}

.confirmation-line strong:last-child {
  text-align: right;
}

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

.order-sidebar {
  position: sticky;
  top: 96px;
}

.inventory-card-list {
  gap: 12px;
}

.inventory-card {
  background: var(--white);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  grid-template-columns: 78px 1fr;
  padding: 12px;
}

.inventory-card > .product-visual {
  aspect-ratio: 1;
  width: 78px;
}

.inventory-card-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.inventory-card-copy strong {
  display: block;
  line-height: 1.25;
}

.inventory-card-copy p {
  margin: 3px 0 0;
}

.inventory-card dl {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.inventory-card dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.inventory-card dd {
  font-size: 13px;
  font-weight: 700;
  margin: 2px 0 0;
  min-width: 0;
}

.inventory-card-actions {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(86px, 0.7fr) minmax(96px, 1fr);
}

.sidebar-head,
.order-summary {
  padding: 20px;
}

.sidebar-head {
  border-bottom: 1px solid var(--line);
}

.sidebar-head h2 {
  font-size: 22px;
}

.sidebar-head p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.order-items {
  display: grid;
  gap: 18px;
  max-height: 420px;
  overflow: auto;
  padding: 20px;
}

.order-item {
  display: grid;
  gap: 12px;
  grid-template-columns: 48px 1fr;
}

.order-item p {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0;
}

.order-title-row button {
  background: transparent;
  border: 0;
  color: var(--muted);
}

.line-total {
  margin-top: 6px;
}

.line-total span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.order-summary {
  background: var(--soft);
  display: grid;
  gap: 12px;
}

.order-summary textarea {
  min-height: 72px;
}

.summary-row {
  color: var(--muted);
  font-size: 14px;
}

.summary-row.strong {
  border-top: 1px solid var(--line);
  color: var(--black);
  font-size: 20px;
  padding-top: 12px;
}

.muted {
  font-style: italic;
  font-weight: 500;
}

textarea {
  border: 1px solid var(--line);
  min-height: 86px;
  padding: 12px;
  resize: vertical;
}

.notice {
  align-items: flex-start;
  background: var(--white);
  border-left: 4px solid var(--blue);
  color: var(--ink);
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 8px;
  line-height: 1.45;
  margin: 0;
  padding: 12px;
}

.notice.error {
  border-left-color: var(--error);
  margin-bottom: 18px;
}

.admin-main .notice {
  border: 1px solid var(--line);
  border-left: 3px solid #5b6b7a;
}

.admin-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 73px);
}

.admin-sidebar {
  background: var(--ink);
  color: var(--white);
  padding: 32px 24px;
}

.admin-sidebar .brand-logo {
  margin-bottom: 10px;
  width: 170px;
}

.admin-chip {
  background: var(--blue);
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 30px;
  padding: 5px 8px;
}

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

.admin-sidebar a,
.admin-sidebar button {
  align-items: center;
  color: #b9c7e4;
  display: flex;
  font-weight: 800;
  gap: 10px;
  padding: 13px 12px;
  text-align: left;
  width: 100%;
}

.admin-sidebar a.active,
.admin-sidebar a:hover,
.admin-sidebar button.active,
.admin-sidebar button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.admin-main {
  padding: 32px clamp(20px, 5vw, 48px);
}

.admin-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
}

.admin-topbar p {
  color: var(--muted);
  margin: 8px 0 0;
}

.admin-panels {
  display: grid;
  align-items: start;
  gap: 20px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 20px;
}

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

.workspace-content {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.workspace-subnav {
  background: #f8f5f0;
  border: 1px solid #dedbd3;
  border-radius: 8px;
  overflow: hidden;
}

.workspace-subnav-head {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.workspace-subnav-head h2 {
  font-size: 13px;
  line-height: 1.2;
  margin: 0;
}

.workspace-subnav nav {
  display: grid;
  gap: 2px;
  padding: 8px;
}

.workspace-subnav button {
  align-items: center;
  background: transparent;
  border-radius: 6px;
  color: #4c463f;
  display: flex;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  justify-content: space-between;
  min-height: 42px;
  padding: 10px 12px;
  text-align: left;
  width: 100%;
}

.workspace-subnav button:hover,
.workspace-subnav button.active {
  background: var(--white);
  color: var(--ink);
}

.workspace-subnav button strong {
  color: #6a6257;
  font-size: 11px;
  font-weight: 700;
}

.admin-card {
  background: var(--white);
  border: 1px solid #dedbd3;
  display: grid;
  align-content: start;
  overflow: hidden;
  border-radius: 8px;
}

.admin-card > p,
.admin-card > .request-meta-line,
.admin-card > .request-note,
.admin-card > .request-item-list,
.admin-card > .approval-actions,
.admin-card > .form-note {
  margin-left: 20px;
  margin-right: 20px;
}

.admin-card > p:last-child,
.admin-card > .request-note:last-child,
.admin-card > .request-item-list:last-child,
.admin-card > .approval-actions:last-child {
  margin-bottom: 20px;
}

.admin-card > p {
  color: #5d564d;
  font-size: 14px;
  line-height: 1.5;
}

.admin-card-head {
  align-items: center;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
}

.admin-card-head button {
  background: transparent;
  border: 0;
  color: var(--blue-dark);
  font-weight: 800;
}

.status {
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 7px;
}

.status.pending,
.status.draft {
  background: #f1ede5;
  color: #5e4a2f;
}

.status.approved {
  background: #dff7e7;
  color: #08622d;
}

.status.submitted {
  background: #ffdad8;
  color: #92001c;
}

.status.rejected {
  background: #f4e7e7;
  color: #7f1d1d;
}

.status.fulfilled {
  background: #d6e3ff;
  color: #123e87;
}

.admin-layout {
  background: #f6f3ee;
  grid-template-columns: 248px 1fr;
}

.admin-sidebar {
  background: #ece7df;
  border-right: 1px solid #d8d0c5;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  padding: 22px 18px;
}

.admin-sidebar .brand-logo {
  margin-bottom: 12px;
  width: 156px;
}

.admin-chip {
  background: transparent;
  color: #6a6257;
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  padding: 0;
}

.admin-sidebar nav {
  gap: 4px;
}

.admin-sidebar-footer {
  border-top: 1px solid #d8d0c5;
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 16px;
}

.admin-sidebar-user {
  display: grid;
  gap: 2px;
  padding: 4px 2px 8px;
}

.admin-sidebar-user strong,
.admin-sidebar-user span {
  margin: 0;
}

.admin-sidebar-user strong {
  font-size: 14px;
  font-weight: 700;
}

.admin-sidebar-user span {
  color: #6a6257;
  font-size: 12px;
  font-weight: 600;
}

.admin-sidebar a,
.admin-sidebar button {
  border-radius: 8px;
  color: #4c463f;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 12px;
}

.admin-sidebar a.active,
.admin-sidebar a:hover,
.admin-sidebar button.active,
.admin-sidebar button:hover {
  background: #ffffff;
  color: var(--ink);
}

.admin-main {
  padding: 24px clamp(20px, 4vw, 36px) 36px;
}

.admin-topbar {
  border-bottom: 1px solid #ddd6ca;
  margin-bottom: 20px;
  padding-bottom: 14px;
}

.admin-topbar p {
  color: #6a6257;
  font-size: 14px;
  margin: 4px 0 0;
  max-width: 64rem;
}

.admin-main .metric-grid {
  gap: 12px;
  margin-bottom: 24px;
}

.admin-main .metric-card {
  background: transparent;
  border: 1px solid #d8d0c5;
  border-radius: 10px;
  gap: 6px;
  padding: 14px 16px;
  transition: border-color 160ms ease;
}

.admin-main .metric-card:hover {
  border-color: #bfb5a7;
  transform: none;
}

.admin-main .metric-card span,
.admin-main .metric-card small {
  color: #6a6257;
  font-size: 12px;
  font-weight: 600;
}

.admin-main .metric-card strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 24px;
  font-weight: 700;
}

.admin-card,
.import-panel,
.product-overview,
.admin-product-command,
.admin-product-board {
  border-radius: 10px;
  box-shadow: none;
}

.admin-card-head {
  background: #f7f4ef;
  padding: 14px 18px;
}

.admin-card-head button {
  color: #544c42;
  font-weight: 600;
}

.status {
  background: #f5f2ed;
  border-radius: 8px;
  font-weight: 600;
  padding: 4px 8px;
}

.approval-stack {
  gap: 12px;
  padding: 18px;
}

.approval-item {
  background: #fbfaf7;
  border-radius: 10px;
}

.upload-box {
  background: #fbfaf7;
  border: 1px dashed #cfc6b7;
  border-radius: 10px;
  min-height: 168px;
  padding: 24px;
}

.upload-box:hover {
  border-color: #988b75;
}

.stock-reset-panel {
  background: #fbf7f2;
  border: 1px solid #e2d5c6;
  border-radius: 10px;
}

.import-status {
  background: #f7f5f1;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.import-preview,
.import-history {
  border-radius: 10px;
}

.import-preview-grid div {
  background: #f7f5f1;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.approval-stack {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.approval-item {
  align-items: start;
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px;
  border-radius: 8px;
}

.approval-item-body {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.request-review-item {
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.approval-item-head {
  align-items: flex-start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  min-width: 0;
}

.approval-item-head strong {
  font-size: 15px;
  line-height: 1.3;
}

.request-meta-line {
  align-items: baseline;
  color: var(--muted);
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.request-meta-line strong {
  color: var(--ink);
  font-size: 13px;
}

.request-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.approval-item p {
  color: var(--muted);
  margin: 6px 0 0;
  white-space: normal;
}

.request-item-list {
  border: 1px solid var(--line);
  display: grid;
  border-radius: 8px;
  margin-top: 14px;
  overflow: hidden;
}

.request-item-row {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.8fr) minmax(110px, 1fr) auto;
  padding: 14px 16px;
}

.request-item-row strong {
  font-size: 13px;
  line-height: 1.35;
}

.request-item-row + .request-item-row {
  border-top: 1px solid var(--line);
}

.request-item-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.approval-actions {
  align-items: stretch;
  display: grid;
  gap: 8px;
  justify-items: stretch;
  min-width: 0;
}

.approval-actions .button {
  min-height: 36px;
  width: 100%;
}

.request-review-item .approval-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.request-review-item .approval-actions .button:only-child {
  grid-column: 1 / -1;
}

.panel-toolbar {
  align-items: start;
  border-bottom: 1px solid var(--line);
  gap: 12px;
  padding: 14px 18px;
  background: #faf8f4;
}

.panel-toolbar + p {
  margin-bottom: 0;
  margin-top: 14px;
}

.panel-toolbar + .request-meta-line,
.panel-toolbar + .request-note,
.panel-toolbar + .request-item-list,
.panel-toolbar + .approval-actions {
  margin-top: 14px;
}

.panel-toolbar + .request-item-list {
  margin-top: 16px;
}

.panel-toolbar h2 {
  line-height: 1.2;
  margin: 0;
  min-width: 0;
}

.panel-toolbar span {
  color: #6a6257;
  font-size: 12px;
  font-weight: 600;
}

.form-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: -4px 0 4px;
}

.admin-return-bar {
  align-items: center;
  background: #f7f4ef;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px 20px;
}

.admin-return-bar span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.admin-return-bar .admin-return {
  white-space: nowrap;
}

.upload-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.upload-box {
  align-items: center;
  background: var(--white);
  border: 2px dashed var(--line);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 190px;
  padding: 28px;
  text-align: center;
}

.upload-box:hover {
  border-color: var(--blue);
}

.upload-box input {
  display: none;
}

.upload-box span,
.import-status {
  color: var(--muted);
}

.stock-reset-panel {
  align-items: end;
  background: #fff8f5;
  border: 1px solid rgba(194, 61, 35, 0.24);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) auto;
  margin-top: 22px;
  padding: 18px;
}

.stock-reset-panel h2 {
  font-size: 20px;
  margin: 4px 0 8px;
}

.stock-reset-panel p,
.stock-reset-panel small {
  color: var(--muted);
  display: block;
  line-height: 1.5;
  margin: 0;
}

.stock-reset-panel label {
  color: var(--ink);
  display: grid;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
}

.import-status {
  align-items: center;
  background: var(--soft);
  display: flex;
  gap: 10px;
  margin-top: 22px;
  padding: 14px;
}

.import-preview,
.import-history {
  border: 1px solid var(--line);
  margin-top: 22px;
  padding: 18px;
}

.import-preview-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.import-preview-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.import-preview-grid div {
  background: var(--soft);
  display: grid;
  gap: 4px;
  padding: 12px;
}

.import-preview-grid strong {
  font-size: 24px;
}

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

.media-product-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  margin-top: 14px;
}

.media-product-row {
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(210px, 1fr) minmax(260px, 1.1fr) minmax(260px, 1.3fr) minmax(110px, 0.5fr);
  padding: 12px 0;
}

.media-product-row + .media-product-row {
  border-top: 1px solid var(--line);
}

.media-product-row div:first-child,
.media-product-counts {
  display: grid;
  gap: 4px;
}

.media-product-row span,
.media-product-row p,
.media-product-row em,
.import-note {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.media-product-row em {
  color: var(--deep);
  font-style: normal;
}

.media-product-counts {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.import-note {
  margin-top: 14px;
}

.import-errors {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.import-errors p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.product-overview {
  margin-top: 24px;
}

.admin-product-command,
.admin-product-board {
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.04);
  margin-top: 24px;
  padding: 24px;
}

.admin-product-command {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.admin-product-command h2,
.admin-product-command p {
  margin: 0;
}

.admin-product-command p {
  color: var(--muted);
  margin-top: 6px;
}

.admin-product-command,
.admin-product-board,
.admin-product-card,
.stock-matrix-preview,
.site-control-form,
.site-preview,
.timeline-panel {
  border-radius: 10px;
  box-shadow: none;
}

.admin-product-list {
  display: grid;
  gap: 14px;
}

.admin-product-card {
  background: #fbfaf8;
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 128px minmax(0, 1fr);
  min-width: 0;
  overflow: hidden;
  padding: 14px;
}

.admin-product-card > .product-visual {
  background: #ffffff;
  aspect-ratio: 1;
  min-height: 0;
  overflow: hidden;
  width: 128px;
}

.admin-product-card > .product-visual .product-photo {
  padding: 12px;
}

.admin-product-card > .product-visual em {
  display: none;
}

.admin-product-main {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.admin-product-title {
  align-items: start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.admin-product-title p,
.admin-product-title h3 {
  margin: 0;
}

.admin-product-title p {
  color: #6a6257;
  font-size: 13px;
  font-weight: 600;
}

.admin-product-title h3 {
  font-size: 24px;
  line-height: 1.1;
  margin-top: 2px;
}

.inline-price-editor {
  display: grid;
  gap: 8px;
  grid-template-columns: 110px auto;
  margin-top: 8px;
}

.inline-price-editor input {
  border: 1px solid var(--line);
  font: inherit;
  min-height: 34px;
  padding: 7px 8px;
  width: 100%;
}

.status-badge {
  border: 1px solid var(--line);
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  padding: 7px 10px;
  text-transform: uppercase;
}

.status-badge {
  border-radius: 8px;
  font-weight: 700;
  text-transform: none;
}

.status-badge.good {
  background: #eef8ed;
  color: #256b31;
}

.status-badge.danger {
  background: #fff0ec;
  color: #b7351f;
}

.admin-product-stats,
.warning-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-product-stats span,
.warning-row span {
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 8px 10px;
}

.admin-product-stats span,
.warning-row span {
  border-radius: 8px;
  color: #5e574d;
  font-weight: 600;
}

.admin-product-stats strong {
  color: var(--text);
}

.warning-row span {
  background: #fff0ec;
  color: #b7351f;
}

.warning-row.good span {
  background: #eef8ed;
  color: #256b31;
}

.admin-stock-details {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.admin-stock-details summary {
  align-items: center;
  background: #ffffff;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  list-style: none;
  padding: 10px 12px;
}

.admin-stock-details summary::-webkit-details-marker {
  display: none;
}

.admin-stock-details summary span,
.admin-stock-details summary strong {
  font-size: 13px;
}

.admin-stock-details summary span {
  color: var(--text);
  font-weight: 700;
}

.admin-stock-details summary strong {
  color: #6a6257;
  font-weight: 600;
}

.admin-stock-details summary::after {
  color: #6a6257;
  content: "+";
  font-weight: 700;
  margin-left: auto;
}

.admin-stock-details[open] summary::after {
  content: "-";
}

.stock-matrix-preview {
  border-top: 1px solid var(--line);
  overflow-x: auto;
  --stock-size-count: 1;
}

.stock-matrix-head,
.stock-matrix-row {
  display: grid;
  gap: 1px;
  grid-template-columns: minmax(160px, 1.4fr) repeat(var(--stock-size-count), minmax(54px, 0.5fr)) minmax(64px, 0.5fr);
  min-width: max(620px, calc(224px + (var(--stock-size-count) * 58px)));
}

.stock-matrix-head span,
.stock-matrix-row span,
.stock-matrix-row strong {
  background: var(--white);
  font-size: 12px;
  padding: 9px;
}

.stock-matrix-head span {
  background: var(--soft);
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.stock-matrix-head span {
  background: #f7f5f1;
  color: #6a6257;
  font-weight: 700;
  text-transform: none;
}

.stock-matrix-row strong {
  color: var(--text);
  font-weight: 900;
}

.stock-matrix-row span {
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.product-form {
  margin-bottom: 24px;
}

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

.image-draft-grid div {
  background: var(--soft);
  border: 1px solid var(--line);
  min-width: 0;
  padding: 10px;
}

.image-draft-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-editor {
  border: 1px solid var(--line);
  display: grid;
}

.color-editor-head,
.color-editor-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1.2fr 1.2fr 0.5fr 1fr;
  padding: 10px;
}

.color-editor-head {
  background: var(--soft);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.color-editor-row + .color-editor-row {
  border-top: 1px solid var(--line);
}

.color-editor-row input,
.color-editor-row select {
  border: 1px solid var(--line);
  font: inherit;
  min-width: 0;
  padding: 9px 10px;
}

.site-control-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
}

.site-control-form,
.site-preview {
  background: var(--white);
  border: 1px solid var(--line);
}

.site-control-form {
  display: grid;
  gap: 18px;
  padding: 22px;
}

.control-section {
  display: grid;
  gap: 14px;
}

.control-section + .control-section {
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.control-section h2 {
  font-size: 22px;
}

.site-control-form label {
  display: grid;
  gap: 7px;
}

.site-control-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.site-control-form label span {
  color: #6a6257;
  font-weight: 600;
}

.site-control-form input,
.site-control-form textarea {
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 42px;
  padding: 0 12px;
}

.site-control-form textarea {
  min-height: 104px;
  padding: 12px;
}

.two-fields,
.color-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.color-control input {
  min-height: 46px;
  padding: 4px;
}

.toggle-row {
  align-items: center;
  display: flex !important;
  gap: 10px !important;
}

.toggle-row input {
  min-height: auto;
  width: 18px;
}

.site-preview {
  color: var(--white);
  min-height: 520px;
  overflow: hidden;
  padding: 32px;
  position: sticky;
  top: 24px;
}

.site-preview-bg {
  background-image:
    linear-gradient(100deg, rgba(0, 0, 0, 0.92), rgba(0, 24, 60, 0.78), rgba(0, 75, 156, 0.36)),
    var(--hero-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  inset: 0;
  position: absolute;
}

.site-preview-content {
  display: grid;
  gap: 18px;
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.site-preview-content > span {
  color: #d6e3ff;
  font-size: 13px;
  font-weight: 800;
}

.site-preview-content > span {
  color: #efe8dc;
  font-weight: 600;
}

.site-preview h2 {
  font-size: clamp(38px, 4vw, 64px);
  line-height: 0.98;
}

.site-preview p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
  margin: 0;
}

.timeline-panel {
  margin-top: 24px;
}

.email-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.email-card {
  display: grid;
  gap: 14px;
}

.email-card > span {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 700;
}

.email-card h2 {
  font-size: 24px;
}

.email-card p {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.overview-list {
  display: grid;
  gap: 8px;
}

.overview-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 16px;
  grid-template-columns: 150px 1fr 90px;
  padding: 14px 0;
}

.directory-list,
.directory-cards {
  display: grid;
  gap: 16px;
}

.directory-card {
  background: var(--soft);
  border: 1px solid var(--line);
  display: grid;
  gap: 6px;
  padding: 16px;
}

.directory-card h3,
.directory-card p,
.directory-country strong {
  margin: 0;
}

.colour-review-form {
  gap: 18px;
}

.colour-review-grid {
  display: grid;
  gap: 14px;
}

.colour-review-row {
  align-items: end;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(140px, 1fr) minmax(160px, 1.1fr) minmax(160px, 1.1fr) minmax(160px, 1.1fr) 110px;
  padding: 16px 0 0;
}

.colour-review-meta {
  display: grid;
  gap: 4px;
}

.colour-review-meta span {
  color: var(--muted);
  font-size: 13px;
}

.footer {
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 36px;
  grid-template-columns: 2fr 1fr 1fr;
  margin-top: 84px;
  padding: 56px clamp(20px, 5vw, 64px) 28px;
}

.footer.compact {
  margin-top: 48px;
}

.footer .brand-logo {
  margin-bottom: 18px;
  width: 160px;
}

.footer p,
.footer a,
.footer button {
  color: #b9c7e4;
}

.footer strong {
  display: block;
  margin-bottom: 12px;
}

.footer a,
.footer button {
  background: transparent;
  border: 0;
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 8px;
  padding: 0;
  text-align: left;
}

.footer button:hover {
  color: var(--white);
}

.campaign-footer {
  background:
    linear-gradient(180deg, rgba(0, 112, 234, 0.1), rgba(255, 255, 255, 0)),
    var(--home-panel);
  color: var(--home-ink);
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 48px;
  padding: 32px clamp(20px, 3.2vw, 34px) 22px;
  position: relative;
  z-index: 1;
}

.campaign-footer-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.4fr 1fr 1fr;
  margin: 0 auto;
  max-width: var(--home-max);
  padding: 0 clamp(22px, 4vw, 42px);
}

.campaign-footer.footer p,
.campaign-footer.footer a,
.campaign-footer.footer button {
  color: var(--home-muted);
}

.campaign-footer.footer strong {
  color: var(--home-ink);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.campaign-footer.footer button:hover {
  color: var(--home-ink);
}

.story-back-link {
  color: var(--home-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

@keyframes bokeh-glow {
  0%,
  100% {
    opacity: 0.06;
  }
  50% {
    opacity: 0.18;
  }
}

.lead-copy {
  font-size: 20px;
  max-width: 760px;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 20px;
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }

  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@keyframes chargeSweep {
  0%,
  42% {
    opacity: 0;
    transform: translateX(-72%) skewX(-20deg);
  }

  52% {
    opacity: 0.82;
  }

  72%,
  100% {
    opacity: 0;
    transform: translateX(72%) skewX(-20deg);
  }
}

@keyframes buttonBolt {
  0%,
  14%,
  19%,
  58%,
  64%,
  100% {
    opacity: 0.28;
  }

  15%,
  18% {
    opacity: 0.88;
  }

  59%,
  63% {
    opacity: 0.68;
  }
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 760ms var(--motion), transform 760ms var(--motion);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.metric-card.reveal:nth-child(2),
.admin-card.reveal:nth-child(2) {
  transition-delay: 70ms;
}

.metric-card.reveal:nth-child(3) {
  transition-delay: 120ms;
}

.metric-card.reveal:nth-child(4) {
  transition-delay: 170ms;
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-bg,
  .charge-button::before,
  .charge-button::after {
    animation: none !important;
  }

  .home-bokeh-dot,
  .home-bokeh-glow {
    animation: none !important;
  }

  .charge-button::after {
    display: none;
  }
}

@media (max-width: 1100px) {
  .catalog-section,
  .reseller-grid,
  .reseller-detail-grid,
  .reseller-builder-grid,
  .admin-layout,
  .admin-panels,
  .lab-section,
  .detail-grid,
  .form-grid,
  .admin-invite-layout,
  .email-grid,
  .site-control-grid {
    grid-template-columns: 1fr;
  }

  .reseller-product-grid {
    grid-template-columns: 1fr;
  }

  .auth-process-panel {
    position: static;
  }

  .filters,
  .order-sidebar {
    position: static;
  }

  .admin-sidebar {
    display: grid;
    gap: 10px;
    padding: 12px clamp(16px, 4vw, 24px);
  }

  .admin-sidebar .brand-logo {
    margin-bottom: 4px;
    width: 126px;
  }

  .admin-chip {
    font-size: 11px;
    margin-bottom: 10px;
    padding: 4px 7px;
  }

  .admin-sidebar nav {
    display: flex;
    gap: 6px;
    margin-left: calc(clamp(18px, 4vw, 28px) * -1);
    margin-right: calc(clamp(18px, 4vw, 28px) * -1);
    overflow-x: auto;
    padding: 0 clamp(18px, 4vw, 28px) 4px;
    scrollbar-width: none;
    white-space: nowrap;
  }

  .admin-sidebar-footer {
    border-top: 0;
    grid-auto-flow: column;
    margin-top: 12px;
    overflow-x: auto;
    padding-top: 8px;
  }

  .admin-sidebar-user {
    min-width: 120px;
    padding: 4px 0;
  }

  .admin-sidebar nav::-webkit-scrollbar {
    display: none;
  }

  .admin-sidebar a,
  .admin-sidebar button {
    flex: 0 0 auto;
    font-size: 12px;
    min-height: 38px;
    padding: 8px 10px;
  }

  .hero {
    min-height: calc(100dvh - 82px);
    padding-bottom: clamp(44px, 7vh, 72px);
  }

  .hero-grid {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .approval-item,
  .import-preview-grid,
  .media-product-row {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width: 900px) {
  .top-nav {
    align-items: center;
    gap: 10px;
    padding: 7px 14px 8px;
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .logo-link {
    height: 30px;
    width: 118px;
  }

  .logo-link .brand-logo {
    width: 118px;
  }

  .mobile-area-label {
    color: var(--ink);
    display: block;
    flex: 1 1 auto;
    font-size: 13px;
    font-weight: 800;
    min-width: 0;
    overflow: hidden;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-nav,
  .nav-actions {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
  }

  .mobile-context-bar {
    display: block;
    position: sticky;
    top: 45px;
    z-index: 35;
  }

  .mobile-nav-backdrop.open {
    background: rgba(10, 10, 10, 0.28);
    display: block;
    inset: 0;
    position: fixed;
    z-index: 80;
  }

  .mobile-nav-drawer {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(10, 10, 10, 0.12);
    display: grid;
    gap: 10px;
    grid-template-rows: auto 1fr;
    height: auto;
    max-width: 264px;
    padding: 12px;
    position: fixed;
    left: auto;
    right: 12px;
    top: 54px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms var(--motion);
    width: min(72vw, 264px);
    z-index: 90;
  }

  .mobile-nav-drawer.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-drawer-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .mobile-drawer-head strong {
    color: var(--ink);
    font-size: 13px;
  }

  .mobile-drawer-head button {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    min-height: 28px;
    padding: 0 2px;
  }

  .mobile-nav-drawer nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .mobile-nav-drawer nav button {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    min-height: 38px;
    padding: 0 10px;
    text-align: left;
  }

  .mobile-nav-drawer nav button.active {
    border-color: var(--ink);
    color: var(--ink);
  }
}

@media (max-width: 760px) {
  :root {
    --mobile-gutter: 22px;
    --shadow: 0 1px 6px rgba(10, 10, 10, 0.08);
  }

  body::before {
    opacity: 0.1;
  }

  .top-nav {
    align-items: center;
    gap: 10px;
    padding: 7px var(--mobile-gutter) 8px;
    position: sticky;
    top: 0;
    z-index: 40;
  }

  .logo-link {
    height: 30px;
    width: 118px;
  }

  .logo-link .brand-logo {
    width: 118px;
  }

  .main-nav {
    display: none;
  }

  .mobile-menu-button {
    display: grid;
  }

  .nav-actions {
    display: none;
  }

  .public-top-nav {
    padding-top: 9px;
    padding-bottom: 9px;
  }

  .public-home-shell {
    padding: 18px var(--mobile-gutter) 30px;
  }

  .home-flyer-carousel {
    margin-left: 0;
    transform: none;
    width: 100%;
  }

  .home-flyer-stage,
  .story-strip,
  .home-about-layout,
  .campaign-footer-grid {
    grid-template-columns: 1fr;
  }

  .home-flyer-copy {
    min-height: 0;
    order: 2;
    padding: 24px 20px;
  }

  .home-flyer-copy h1 {
    font-size: clamp(46px, 14vw, 72px);
    max-width: 100%;
  }

  .campaign-meta {
    gap: 8px;
  }

  .campaign-meta span,
  .story-meta,
  .campaign-eyebrow,
  .home-about-points span,
  .telemetry-grid span,
  .story-back-link {
    letter-spacing: 0.12em;
  }

  .home-flyer-frame {
    aspect-ratio: 4 / 5;
    order: 1;
  }

  .home-flyer-overlay {
    padding: 18px;
  }

  .home-carousel-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .home-carousel-controls button {
    width: 100%;
  }

  .story-card-featured {
    grid-column: span 1;
  }

  .story-card-body h3 {
    font-size: clamp(26px, 9vw, 34px);
  }

  .home-stories,
  .home-about {
    padding: 0 0 22px;
  }

  .story-article {
    padding: 20px 16px;
  }

  .mobile-nav-backdrop.open,
  .filter-sheet-backdrop.open {
    background: rgba(10, 10, 10, 0.28);
    display: block;
    inset: 0;
    position: fixed;
    z-index: 80;
  }

  .mobile-nav-drawer {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(10, 10, 10, 0.12);
    display: grid;
    gap: 10px;
    grid-template-rows: auto 1fr;
    height: auto;
    max-width: 264px;
    padding: 12px;
    position: fixed;
    left: auto;
    right: var(--mobile-gutter);
    top: 54px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform 260ms var(--motion);
    width: min(72vw, 264px);
    z-index: 90;
  }

  .mobile-nav-drawer.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .mobile-drawer-head {
    align-items: center;
    display: flex;
    justify-content: space-between;
  }

  .mobile-drawer-head strong {
    color: var(--ink);
    font-size: 13px;
  }

  .mobile-drawer-head button {
    background: transparent;
    border: 0;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    min-height: 28px;
    padding: 0 2px;
  }

  .mobile-nav-drawer nav {
    gap: 4px;
    grid-template-columns: 1fr;
  }

  .mobile-nav-drawer nav button {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    min-height: 38px;
    padding: 0 10px;
    text-align: left;
  }

  .mobile-nav-drawer nav button.active {
    border-color: var(--ink);
    color: var(--ink);
  }

  .reseller-strip {
    font-size: 11px;
    line-height: 1.35;
    min-height: 34px;
    padding: 7px var(--mobile-gutter);
    text-align: center;
  }

  .hero {
    align-items: flex-end;
    min-height: calc(100svh - 88px);
    padding: 36px var(--mobile-gutter) 42px;
  }

  .hero-bg {
    background-image:
      linear-gradient(105deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 24, 60, 0.82) 52%, rgba(0, 75, 156, 0.58) 100%),
      var(--hero-image);
    background-position: 52% center;
    transform: scale(1.02);
  }

  .hero-blue-wash {
    opacity: 0.58;
  }

  .hero-grid {
    gap: 0;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero h1 {
    font-size: clamp(42px, 13.2vw, 64px);
    line-height: 0.98;
    margin-bottom: 18px;
  }

  .hero p {
    font-size: 15px;
    line-height: 1.55;
    margin-bottom: 24px;
    max-width: 92%;
  }

  .hero-actions,
  .toolbar-actions,
  .split-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hero-actions .button,
  .toolbar-actions .button,
  .split-actions .button {
    width: 100%;
  }

  .hero-meta {
    display: grid;
    gap: 8px;
    margin-top: 18px;
  }

  .hero-meta span {
    font-size: 12px;
  }

  .product-grid,
  .metric-grid,
  .upload-grid,
  .stock-reset-panel,
  .footer {
    grid-template-columns: 1fr;
  }

  .catalog-section {
    gap: 24px;
    padding: 42px var(--mobile-gutter);
  }

  .filters {
    display: none;
  }

  .filters h2 {
    font-size: 32px;
  }

  .filter-options {
    gap: 9px;
  }

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

  .size-grid button,
  .pager button,
  .selector-group button {
    min-height: 42px;
  }

  .section-header {
    gap: 14px;
    margin-bottom: 22px;
  }

  .section-header select,
  .compact-search,
  .search-field {
    width: 100%;
  }

  .filters,
  .catalog-content,
  .detail-copy,
  .inventory-panel,
  .order-sidebar,
  .admin-main,
  .site-control-form,
  .site-preview {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .catalog-content,
  .filters {
    padding-left: 0;
    padding-right: 0;
  }

  .mobile-catalog-toolbar {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin-bottom: 18px;
  }

  .mobile-catalog-toolbar .button {
    min-width: 104px;
  }

  .filter-sheet {
    background: var(--paper);
    border-top: 1px solid var(--line);
    bottom: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    left: 0;
    max-height: min(82svh, 680px);
    position: fixed;
    right: 0;
    transform: translateY(105%);
    transition: transform 260ms var(--motion);
    z-index: 90;
  }

  .filter-sheet.open {
    transform: translateY(0);
  }

  .filter-sheet-head,
  .filter-sheet-actions {
    align-items: center;
    background: var(--paper);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    padding: 14px var(--mobile-gutter);
  }

  .filter-sheet-head {
    border-bottom: 1px solid var(--line);
  }

  .filter-sheet-head strong {
    font-size: 18px;
  }

  .filter-sheet-body {
    display: grid;
    gap: 20px;
    overflow: auto;
    padding: var(--mobile-gutter);
    position: static;
  }

  .filter-sheet-body .search-field {
    display: flex;
  }

  .filter-sheet-actions {
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .portal-header,
  .section-header,
  .panel-toolbar,
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-page,
  .form-page,
  .detail-page,
  .info-page {
    padding: 34px var(--mobile-gutter);
  }

  .form-hero,
  .portal-header {
    margin-bottom: 22px;
  }

  .form-hero h1,
  .portal-header h1,
  .admin-topbar h1,
  .detail-copy h1,
  .info-page h1 {
    font-size: clamp(28px, 8.5vw, 36px);
    line-height: 1.12;
  }

  .form-hero p,
  .portal-header p,
  .admin-topbar p,
  .section-note,
  .lead-copy {
    font-size: 14px;
    line-height: 1.55;
  }

  .admin-invite-page {
    max-width: 100%;
    overflow-x: hidden;
    padding-top: 30px;
    width: 100%;
  }

  .admin-invite-hero h1 {
    font-size: clamp(30px, 10vw, 40px);
    line-height: 1.02;
    max-width: calc(100vw - (var(--mobile-gutter) * 2));
  }

  .admin-invite-hero,
  .admin-invite-layout,
  .workflow-form.admin-invite-card,
  .process-panel.admin-invite-flow {
    max-width: 100% !important;
    width: 100% !important;
  }

  .admin-invite-layout {
    display: flex;
    flex-direction: column;
  }

  .workflow-form.admin-invite-card,
  .process-panel.admin-invite-flow {
    padding: 20px;
  }

  .admin-topbar {
    border-bottom: 1px solid var(--line);
    gap: 8px;
    margin: -4px 0 18px;
    padding: 0 0 16px;
  }

  .admin-topbar h1 {
    font-size: 30px;
  }

  .admin-topbar p {
    color: #5f5b54;
    margin-top: 6px;
    max-width: 31rem;
  }

  .admin-panels,
  .email-grid {
    gap: 12px;
    margin-bottom: 12px;
  }

  .workspace-shell {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .workspace-subnav {
    border-radius: 8px;
  }

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

  .workspace-subnav button {
    min-height: 40px;
    padding: 9px 10px;
  }

  .admin-card,
  .import-panel,
  .product-overview,
  .admin-product-command,
  .admin-product-board {
    border-color: #dedbd3;
    box-shadow: none;
  }

  .admin-product-command {
    align-items: stretch;
    display: grid;
    gap: 14px;
    padding: 18px;
  }

  .admin-product-board {
    padding: 18px;
  }

  .admin-product-card {
    grid-template-columns: 1fr;
  }

  .admin-product-card > .product-visual {
    width: 112px;
  }

  .admin-product-title {
    display: grid;
  }

  .admin-card-head {
    align-items: flex-start;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    gap: 6px;
    padding: 14px;
  }

  .admin-card-head h2,
  .panel-toolbar h2 {
    font-size: 21px;
    line-height: 1.15;
  }

  .admin-card-head button {
    min-height: 32px;
  }

  .approval-stack {
    gap: 10px;
    padding: 14px;
  }

  .approval-item {
    background: #fbfbfa;
    border-color: #dedbd3;
    padding: 14px;
  }

  .request-review-item .approval-actions,
  .request-item-row {
    grid-template-columns: 1fr;
  }

  .approval-item strong {
    font-size: 14px;
  }

  .approval-item p {
    font-size: 13px;
    line-height: 1.45;
  }

  .notice {
    background: #fbfbfa;
    border-left-width: 3px;
    font-size: 12px;
    line-height: 1.45;
    padding: 12px;
  }

  .metric-grid {
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 20px;
  }

  .portal-quick-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    border-top: 1px solid var(--line);
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: -4px calc(var(--mobile-gutter) * -1) 18px;
    padding: 8px var(--mobile-gutter);
    position: sticky;
    top: 83px;
    z-index: 30;
  }

  .portal-quick-nav a,
  .portal-quick-nav button {
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--ink);
    display: flex;
    font-size: 12px;
    font-weight: 800;
    justify-content: center;
    min-height: 40px;
    padding: 0 8px;
    text-align: center;
  }

  .portal-quick-nav span {
    background: var(--blue);
    color: var(--white);
    display: inline-flex;
    font-size: 10px;
    justify-content: center;
    margin-left: 5px;
    min-width: 18px;
    padding: 2px 4px;
  }

  .metric-card,
  .inventory-panel,
  .order-sidebar,
  .admin-card,
  .import-panel,
  .product-overview,
  .workflow-form,
  .process-panel,
  .detail-copy {
    box-shadow: none;
  }

  .metric-card {
    padding: 16px;
  }

  .metric-card span,
  .metric-card small {
    font-size: 11px;
  }

  .metric-card strong {
    font-size: 24px;
  }

  .overview-row {
    grid-template-columns: 1fr;
  }

  .two-fields,
  .color-grid,
  .import-preview-grid,
  .media-product-row,
  .media-product-counts,
  .image-draft-grid,
  .color-editor-head,
  .color-editor-row,
  .colour-review-row {
    grid-template-columns: 1fr;
  }

  .product-card-body,
  .detail-actions,
  .portal-actions,
  .row-actions,
  .approval-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .product-card:hover {
    box-shadow: none;
    transform: none;
  }

  .product-visual {
    aspect-ratio: 1.08 / 0.82;
  }

  .product-card-body {
    gap: 10px;
    padding: 16px;
  }

  .product-card h3 {
    font-size: 21px;
    line-height: 1.12;
  }

  .price-stack {
    text-align: left;
  }

  .price-stack strong {
    font-size: 22px;
  }

  .card-action {
    margin: 0 16px 16px;
    min-height: 44px;
    width: calc(100% - 32px);
  }

  .button,
  .icon-button,
  .card-action {
    min-height: 44px;
  }

  .button.mini {
    min-height: 40px;
  }

  .table-wrap {
    display: none;
  }

  .inventory-card-list {
    display: grid;
  }

  .inventory-card {
    grid-template-columns: 66px 1fr;
    padding: 10px;
  }

  .inventory-card > .product-visual {
    width: 66px;
  }

  .inventory-card-copy {
    gap: 8px;
  }

  .inventory-card-copy strong {
    font-size: 14px;
  }

  .inventory-card dl {
    gap: 7px;
  }

  .inventory-card dt {
    font-size: 10px;
  }

  .inventory-card dd {
    font-size: 12px;
  }

  .inventory-card-actions {
    grid-template-columns: 76px 1fr;
  }

  th,
  td {
    padding: 12px 10px;
  }

  .qty-input {
    min-height: 40px;
    width: 76px;
  }

  .order-sidebar {
    margin-top: 18px;
  }

  .sidebar-head,
  .order-summary,
  .order-items {
    padding: 18px;
  }

  .order-items {
    max-height: none;
  }

  .order-item {
    grid-template-columns: 56px 1fr;
  }

  .order-title-row {
    align-items: flex-start;
    gap: 8px;
  }

  .order-title-row button {
    min-height: 32px;
  }

  .workflow-form {
    padding: 18px;
  }

  .workflow-form input,
  .workflow-form textarea,
  .workflow-form select {
    min-height: 44px;
  }

  .upload-box {
    min-height: 142px;
    padding: 20px;
  }

  .import-preview,
  .import-history {
    padding: 14px;
  }

  .import-preview-head {
    flex-direction: column;
  }

  .media-product-counts {
    gap: 8px;
  }

  .detail-grid > div > .product-visual,
  .detail-grid > .product-visual {
    min-height: 320px;
  }

  .detail-brand-mark {
    max-width: 180px;
    width: 52%;
  }

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

  .approval-item {
    grid-template-columns: 1fr;
  }

  .table-product {
    min-width: 180px;
  }

  .gallery-thumb img,
  .product-photo {
    border-radius: 0;
  }

  .footer {
    gap: 24px;
    margin-top: 46px;
    padding: 36px var(--mobile-gutter) 22px;
  }

  .footer .brand-logo {
    width: 138px;
  }
}

@media (max-width: 430px) {
  :root {
    --mobile-gutter: 18px;
  }

  .top-nav {
    gap: 8px;
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .logo-link,
  .logo-link .brand-logo {
    width: 106px;
  }

  .main-nav button {
    font-size: 10px;
    padding: 0 8px;
  }

  .mobile-nav-drawer nav button {
    min-height: 38px;
  }

  .hero {
    min-height: calc(100svh - 86px);
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .hero h1 {
    font-size: clamp(38px, 12.8vw, 54px);
  }

  .hero p {
    max-width: 100%;
  }

  .catalog-section,
  .portal-page,
  .form-page,
  .detail-page,
  .info-page {
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
  }

  .workflow-form.admin-invite-card,
  .process-panel.admin-invite-flow {
    padding: 16px;
  }

  .google-button {
    gap: 8px;
  }

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

  .product-visual {
    aspect-ratio: 1 / 0.86;
  }

  .gallery-arrow {
    height: 42px;
    width: 38px;
  }

  .pager {
    align-items: stretch;
    flex-direction: column;
  }

  .pager > div {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .portal-quick-nav {
    margin-left: calc(var(--mobile-gutter) * -1);
    margin-right: calc(var(--mobile-gutter) * -1);
    padding-left: var(--mobile-gutter);
    padding-right: var(--mobile-gutter);
    top: 83px;
  }

  .portal-quick-nav a,
  .portal-quick-nav button {
    font-size: 11px;
    min-height: 38px;
    padding: 0 6px;
  }

  .inventory-card {
    grid-template-columns: 58px 1fr;
    gap: 10px;
  }

  .inventory-card > .product-visual {
    width: 58px;
  }

  .inventory-card-actions {
    grid-template-columns: 72px 1fr;
  }

  .reseller-product-copy {
    padding: 14px;
  }

  .reseller-product-head {
    display: grid;
  }

  .reseller-product-head strong {
    font-size: 16px;
  }

  .colour-strip button {
    flex-basis: 96px;
  }

  .product-card-actions,
  .bulk-order-head {
    align-items: stretch;
    display: grid;
  }

  .product-card-actions .button {
    max-width: none;
  }

  .bulk-order-actions {
    grid-template-columns: 1fr;
  }

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

  .reseller-detail-media > .product-visual {
    aspect-ratio: 1.2;
    min-height: 0;
  }

  .builder-colour-card-head {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .builder-colour-image .product-visual {
    width: 72px;
  }

  .builder-colour-total {
    grid-column: 1 / -1;
    justify-items: start;
  }

  .builder-size-row {
    grid-template-columns: 1fr;
  }

  .builder-size-row label {
    grid-template-columns: 64px minmax(96px, 1fr);
  }

  .builder-size-row .qty-input {
    width: 100%;
  }

  .builder-size-row strong {
    text-align: left;
  }

  .confirmation-head,
  .confirmation-actions {
    display: grid;
    justify-content: stretch;
  }

  .confirmation-summary,
  .confirmation-line {
    grid-template-columns: 1fr;
  }

  .confirmation-summary div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .confirmation-line strong:last-child {
    text-align: left;
  }
}
