/* ----------------------------------------------------
   Unified Theme Layer
   Purpose: tokenized, consistent UI rhythm and layout.
   Loaded after style.css to safely normalize legacy rules.
----------------------------------------------------- */

:root {
  /* 8px spacing system */
  --ds-space-1: 4px;
  --ds-space-2: 8px;
  --ds-space-3: 12px;
  --ds-space-4: 16px;
  --ds-space-5: 24px;
  --ds-space-6: 32px;
  --ds-space-7: 40px;

  --ds-content-max: 1160px;
  --ds-reading-max: 72ch;
  --ds-control-size: 40px;
  --ds-touch-size: 44px;

  --ds-type-body: clamp(0.99rem, 0.97rem + 0.14vw, 1.05rem);
  --ds-type-h1: clamp(1.8rem, 2.2vw, 2.45rem);
  --ds-type-h2: clamp(1.35rem, 1.7vw, 1.85rem);
  --ds-type-h3: clamp(1.05rem, 1.15vw, 1.3rem);
  --ds-line-height: 1.68;

  --ds-radius-sm: 10px;
  --ds-radius-md: 14px;
  --ds-radius-lg: 16px;
  --ds-radius-xl: 20px;

  --ds-surface: rgba(255, 251, 244, 0.93);
  --ds-surface-soft: rgba(250, 243, 231, 0.9);
  --ds-border: rgba(15, 27, 51, 0.15);
  --ds-border-strong: rgba(15, 27, 51, 0.26);
  --ds-shadow-sm: 0 8px 20px rgba(15, 27, 51, 0.08), 0 2px 8px rgba(15, 27, 51, 0.04);
  --ds-shadow-md: 0 14px 30px rgba(15, 27, 51, 0.14), 0 6px 14px rgba(15, 27, 51, 0.06);
  --ds-link: #1f3152;
  --ds-link-hover: #0f1b33;
  --ds-focus: rgba(197, 154, 94, 0.88);

  /* Backfill variables used by existing blocks */
  --elevation-card: var(--ds-shadow-sm);
  --elevation-card-hover: var(--ds-shadow-md);
  --content-max: var(--ds-content-max);
}

html {
  font-size: 16px;
}

body {
  font-size: var(--ds-type-body);
  line-height: var(--ds-line-height);
}

h1 {
  font-size: var(--ds-type-h1);
  line-height: 1.12;
}

h2 {
  font-size: var(--ds-type-h2);
  line-height: 1.18;
}

h3 {
  font-size: var(--ds-type-h3);
  line-height: 1.26;
}

p,
li {
  line-height: var(--ds-line-height);
}

/* Strong, consistent visible focus */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--ds-focus) !important;
  outline-offset: 2px;
}

/* ------------------------------------------------------------------
   Shared layout rhythm
------------------------------------------------------------------- */
.content {
  padding: clamp(18px, 2.2vw, 34px);
}

.content__main {
  width: min(var(--ds-content-max), 100%);
  margin-inline: auto;
}

.content.content-with-toc {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: var(--ds-space-5);
  align-items: start;
}

.content.content-with-toc .content__main {
  width: 100%;
  margin: 0;
}

.toc {
  position: sticky;
  top: var(--ds-space-4);
}

.page-shell {
  gap: var(--ds-space-5);
}

.page-shell > * + * {
  padding-top: var(--ds-space-5);
}

.page-shell > * + *::before {
  opacity: 0.8;
}

/* ------------------------------------------------------------------
   Shared surfaces + cards
------------------------------------------------------------------- */
.section-hero,
.home-hero,
.card,
.research-panel,
.feature-card,
.summary-card,
.growth-card,
.cta-strip,
.role-path-card,
.team-card,
.account-item,
.toc-card,
.page-note-card,
.acc-item {
  border-radius: var(--ds-radius-lg);
  border: 1px solid var(--ds-border);
  box-shadow: var(--ds-shadow-sm);
}

.section-hero,
.home-hero {
  padding: clamp(16px, 2.1vw, 28px);
  gap: clamp(14px, 2vw, 24px);
}

.section-hero__title,
.home-hero__title {
  max-width: 20ch;
}

.section-hero__text,
.home-hero__text {
  max-width: var(--ds-reading-max);
  font-size: 1rem;
  line-height: 1.72;
}

.section-hero__chips li,
.home-hero__chips li {
  min-height: 32px;
  padding: 6px 12px;
}

/* ------------------------------------------------------------------
   Editorial variation for a more personal, project-driven tone
------------------------------------------------------------------- */
.editorial-slab {
  display: grid;
  gap: var(--ds-space-4);
  padding: clamp(18px, 2vw, 28px);
  border-radius: var(--ds-radius-lg);
  border: 1px solid var(--ds-border);
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.92), rgba(250, 248, 242, 0.98));
  box-shadow: var(--ds-shadow-sm);
}

.editorial-slab--intro,
.editorial-slab--guide {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  align-items: start;
}

.editorial-slab__body,
.editorial-slab__header {
  display: grid;
  gap: 12px;
}

.editorial-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(15, 27, 51, 0.06);
  color: rgba(15, 27, 51, 0.72);
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-slab__title {
  margin: 0;
  max-width: 22ch;
  font-size: clamp(1.5rem, 1.18rem + 1vw, 2.1rem);
  line-height: 1.16;
}

.editorial-grid {
  display: grid;
  gap: var(--ds-space-3);
}

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

.editorial-card,
.iteration-card,
.team-reflection {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: calc(var(--ds-radius-lg) - 4px);
  border: 1px solid var(--ds-border);
  background: rgba(255, 255, 255, 0.78);
}

.editorial-card h4,
.team-reflection h4 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.32;
}

.project-journal {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: calc(var(--ds-radius-lg) - 2px);
  border: 1px dashed rgba(15, 27, 51, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(246, 241, 229, 0.92));
}

.project-journal__label {
  display: inline-flex;
  width: fit-content;
  color: rgba(15, 27, 51, 0.7);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-journal__lead,
.project-journal h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.42;
}

.project-journal--decision,
.project-journal--wide {
  grid-column: 1 / -1;
}

.project-journal__split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: var(--ds-space-3);
  align-items: start;
}

.project-journal__aside {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(15, 27, 51, 0.08);
}

.iteration-card {
  align-content: start;
  border-left: 4px solid rgba(199, 150, 78, 0.72);
}

.iteration-card__step {
  color: rgba(15, 27, 51, 0.66);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.editorial-link-stack {
  display: grid;
  gap: 12px;
}

.editorial-link-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: calc(var(--ds-radius-lg) - 4px);
  border: 1px solid var(--ds-border);
  background: rgba(255, 255, 255, 0.76);
  color: inherit;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard);
}

.editorial-link-card:hover,
.editorial-link-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(15, 27, 51, 0.2);
  box-shadow: 0 12px 24px rgba(15, 27, 51, 0.08);
}

.editorial-link-card strong {
  color: var(--navy-900);
}

.editorial-link-card span {
  color: rgba(15, 27, 51, 0.76);
  line-height: 1.58;
}

.team-reflection-grid {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.project-note-band {
  display: grid;
}

.porter-visual {
  max-width: min(860px, 100%);
  margin-inline: auto;
}

.porter-visual img {
  aspect-ratio: auto;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
}

.prototype-visual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--ds-space-3);
}

.prototype-visual-card img {
  aspect-ratio: auto;
  object-fit: contain;
  max-height: 360px;
  background: rgba(255, 255, 255, 0.92);
  cursor: zoom-in;
}

.prototype-visual-card img:focus-visible {
  outline: 3px solid var(--ds-focus);
  outline-offset: 2px;
  border-radius: 10px;
}

body.image-lightbox-open {
  overflow: hidden;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  place-items: center;
  padding: clamp(16px, 2vw, 28px);
  background: rgba(4, 10, 20, 0.82);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}

.image-lightbox.is-open {
  display: grid;
}

.image-lightbox__figure {
  width: min(1320px, 96vw);
  max-height: 94vh;
  display: grid;
  gap: 10px;
  margin: 0;
}

.image-lightbox__img {
  width: 100%;
  max-height: calc(94vh - 62px);
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42);
  background: rgba(255, 255, 255, 0.98);
}

.image-lightbox__caption {
  color: rgba(247, 249, 252, 0.95);
  font-family: var(--font-ui);
  font-size: 13px;
  text-align: center;
}

.image-lightbox__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(7, 14, 28, 0.62);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:hover {
  background: rgba(197, 154, 94, 0.35);
}

.card,
.research-panel,
.feature-card,
.summary-card,
.growth-card,
.team-card {
  padding: clamp(14px, 1.8vw, 20px);
}

.acc-inner > p,
.card p,
.research-panel p,
.summary-card p,
.feature-card p,
.growth-card p,
.team-card p {
  max-width: var(--ds-reading-max);
}

.acc-inner > ul,
.acc-inner > ol {
  max-width: var(--ds-reading-max);
}

.acc-inner > * {
  margin-block: 0;
}

.acc-inner > * + * {
  margin-top: var(--ds-space-3);
}

.section-title {
  margin-bottom: var(--ds-space-2);
}

.section-title-spaced {
  margin: var(--ds-space-4) 0 var(--ds-space-2);
}

/* ------------------------------------------------------------------
   Accordion consistency
------------------------------------------------------------------- */
.accordion-page {
  display: grid;
  gap: var(--ds-space-3);
}

.acc-item {
  overflow: hidden;
  background: var(--ds-surface);
}

.acc-btn {
  min-height: var(--ds-touch-size);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem);
  line-height: 1.35;
  text-align: left;
}

.acc-icon {
  margin-left: auto;
}

.acc-content {
  background: var(--ds-surface-soft);
}

.acc-inner {
  padding: 16px 18px 20px;
}

/* ------------------------------------------------------------------
   Buttons and links
------------------------------------------------------------------- */
.btn,
.btn-secondary,
.btn-danger {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform var(--duration-fast) var(--ease-standard),
    box-shadow var(--duration-fast) var(--ease-standard),
    background var(--duration-fast) var(--ease-standard),
    border-color var(--duration-fast) var(--ease-standard);
}

.btn {
  background: var(--amber-500);
  color: #ffffff;
  border-color: rgba(120, 84, 25, 0.36);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(120, 84, 25, 0.26);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.68);
  color: var(--navy-900);
  border-color: var(--ds-border-strong);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.88);
  transform: translateY(-1px);
}

.btn-danger {
  background: #fff1f0;
  color: #8c1f22;
  border-color: rgba(140, 31, 34, 0.36);
}

.btn-danger:hover {
  background: #ffe2df;
}

.content__main a:not(.btn):not(.btn-secondary):not(.btn-danger) {
  color: var(--ds-link);
  text-decoration: underline;
  text-decoration-thickness: 1.4px;
  text-underline-offset: 2px;
}

.content__main a:not(.btn):not(.btn-secondary):not(.btn-danger):hover {
  color: var(--ds-link-hover);
}

.updates-capture-form {
  display: grid;
  gap: 10px;
}

.updates-capture-status {
  min-height: 1.2em;
  margin: 0;
  font-size: 0.92rem;
}

.updates-capture-status.is-ok {
  color: #21633b;
}

.updates-capture-status.is-warn {
  color: #8a6326;
}

.updates-capture-status.is-error {
  color: #9a2b2f;
}

.updates-capture-note {
  margin: 0;
  color: rgba(15, 27, 51, 0.68);
  font-size: 0.86rem;
  line-height: 1.48;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  border: 0;
}

/* ------------------------------------------------------------------
   Header controls (single clean row)
------------------------------------------------------------------- */
.banner-top-controls {
  top: 12px;
  right: 14px;
  gap: 8px;
  flex-wrap: nowrap;
  padding: 4px 6px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(8, 15, 29, 0.36);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.banner-top-controls > * {
  flex: 0 0 auto;
}

.banner-view-mode,
.banner-role-switch,
.banner-workspace-switch {
  padding: 0 !important;
  margin: 0;
  border: 0 !important;
  background: transparent !important;
}

.banner-icon-menu,
.banner-account-menu,
.banner-workspace-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.banner-icon-btn,
.banner-profile {
  width: var(--ds-control-size);
  height: var(--ds-control-size);
  min-width: var(--ds-control-size);
  min-height: var(--ds-control-size);
}

.banner-icon-dropdown,
.banner-account-dropdown {
  top: calc(100% + 8px);
  right: 0;
  min-width: 192px;
  padding: 6px;
}

.banner-icon-menu.open .banner-icon-dropdown,
.banner-account-menu.open .banner-account-dropdown {
  display: grid;
  gap: 2px;
}

.banner-icon-dropdown-item,
.banner-account-dropdown a,
.banner-account-dropdown button {
  min-height: 38px;
  display: flex;
  align-items: center;
  font-size: 13px;
}

.banner-control-icon {
  font-size: 16px;
}

/* Hide helper native selects/labels: avoid duplicate control rows */
#view-mode-select,
#role-view-select,
#workspace-select,
.banner-view-mode__select,
.banner-role-switch__select,
.banner-workspace-switch__select,
.banner-view-mode__label,
.banner-role-switch__label,
.banner-workspace-switch__label {
  display: none !important;
}

/* ------------------------------------------------------------------
   Sidebar and nav rhythm
------------------------------------------------------------------- */
.sidebar-nav a {
  min-height: 34px;
  display: flex;
  align-items: center;
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 4px;
}

.sidebar-nav a:hover {
  transform: translateX(3px);
}

.sidebar-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-nav a.active::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-left: auto;
  background: var(--amber-400);
  box-shadow: 0 0 0 1px rgba(15, 27, 51, 0.18);
}

/* ------------------------------------------------------------------
   Dark mode consistency + contrast
------------------------------------------------------------------- */
body.dark {
  --ds-surface: rgba(18, 30, 54, 0.86);
  --ds-surface-soft: rgba(16, 27, 47, 0.92);
  --ds-border: rgba(228, 236, 249, 0.2);
  --ds-border-strong: rgba(228, 236, 249, 0.34);
  --ds-link: #f2d8ab;
  --ds-link-hover: #ffe7c5;
  --ds-shadow-sm: 0 10px 22px rgba(2, 6, 14, 0.42), 0 4px 10px rgba(2, 6, 14, 0.28);
}

body.dark .section-hero,
body.dark .home-hero,
body.dark .card,
body.dark .research-panel,
body.dark .feature-card,
body.dark .summary-card,
body.dark .growth-card,
body.dark .cta-strip,
body.dark .role-path-card,
body.dark .team-card,
body.dark .account-item,
body.dark .toc-card,
body.dark .page-note-card,
body.dark .acc-item,
body.dark .acc-content {
  background: var(--ds-surface);
  border-color: var(--ds-border);
  color: rgba(234, 239, 248, 0.95);
}

body.dark .acc-btn,
body.dark .content__main h2,
body.dark .content__main h3,
body.dark .content__main h4,
body.dark .toc-card a,
body.dark .toc-title {
  color: rgba(247, 230, 196, 0.98);
}

body.dark .content__main p,
body.dark .content__main li,
body.dark .content__main small,
body.dark .section-hero__text,
body.dark .home-hero__text {
  color: rgba(230, 235, 244, 0.94);
}

body.dark .editorial-slab,
body.dark .editorial-card,
body.dark .iteration-card,
body.dark .project-journal,
body.dark .project-journal__aside,
body.dark .editorial-link-card,
body.dark .team-reflection {
  background: rgba(17, 28, 48, 0.94);
  border-color: rgba(228, 236, 249, 0.16);
  color: rgba(234, 239, 248, 0.95);
}

body.dark .editorial-kicker,
body.dark .project-journal__label,
body.dark .iteration-card__step {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 230, 196, 0.88);
}

body.dark .editorial-link-card strong,
body.dark .editorial-card h4,
body.dark .team-reflection h4,
body.dark .project-journal h3,
body.dark .project-journal__lead {
  color: rgba(247, 230, 196, 0.98);
}

body.dark .editorial-link-card span,
body.dark .project-journal__aside {
  color: rgba(230, 235, 244, 0.92);
}

body.dark .btn {
  background: #d29a42;
  color: #0e1627;
  border-color: rgba(232, 195, 140, 0.74);
}

body.dark .btn-secondary {
  background: rgba(26, 41, 68, 0.92);
  border-color: var(--ds-border-strong);
  color: rgba(246, 232, 205, 0.98);
}

body.dark .updates-capture-status.is-ok {
  color: #9cd3ae;
}

body.dark .updates-capture-status.is-warn {
  color: #f0cd90;
}

body.dark .updates-capture-status.is-error {
  color: #ffb1b4;
}

body.dark .updates-capture-note {
  color: rgba(230, 235, 244, 0.82);
}

body.dark .btn-danger {
  background: rgba(108, 24, 29, 0.72);
  border-color: rgba(241, 181, 181, 0.52);
  color: #ffe4e4;
}

body.dark .banner-top-controls {
  background: rgba(4, 9, 18, 0.58);
  border-color: rgba(255, 255, 255, 0.2);
}

body.dark .banner-account-dropdown,
body.dark .banner-icon-dropdown {
  background: rgba(15, 30, 54, 0.98);
  border-color: rgba(228, 236, 249, 0.24);
}

body.dark .banner-icon-dropdown-item,
body.dark .banner-account-dropdown a,
body.dark .banner-account-dropdown button {
  color: rgba(236, 241, 249, 0.96);
}

body.dark .banner-icon-dropdown-item:hover,
body.dark .banner-account-dropdown a:hover,
body.dark .banner-account-dropdown button:hover {
  background: rgba(220, 167, 84, 0.28);
}

/* ------------------------------------------------------------------
   Responsive behavior (checked at 375, 768, 1280)
------------------------------------------------------------------- */
@media (max-width: 1280px) {
  .content__main {
    width: min(1080px, 100%);
  }
}

@media (max-width: 1024px) {
  .content.content-with-toc {
    display: block;
  }

  .toc {
    display: none;
  }

  .section-hero,
  .home-hero,
  .home-hero--landing {
    grid-template-columns: 1fr;
  }

  .editorial-slab--intro,
  .editorial-slab--guide,
  .project-journal__split,
  .editorial-grid--three,
  .iteration-grid {
    grid-template-columns: 1fr;
  }

  .home-feature-grid,
  .summary-triplet,
  .growth-stack {
    grid-template-columns: 1fr;
  }

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

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

  .cta-strip__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  .wrapper {
    display: block;
  }

  .sidebar {
    width: 100%;
    height: auto;
    flex: none;
    position: relative;
    overflow: visible;
    padding: 14px 12px;
  }

  .main::before {
    display: none;
  }

  .banner {
    min-height: 136px;
    padding: 58px 14px 20px;
  }

  .banner-top-controls {
    top: 8px;
    right: 8px;
    gap: 6px;
    padding: 3px 4px;
  }

  .banner-user-label,
  .banner-admin-label {
    display: none;
  }

  .banner-icon-btn,
  .banner-profile {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
  }

  .banner-icon-dropdown,
  .banner-account-dropdown {
    min-width: 168px;
  }

  .content {
    padding: 14px 10px 20px;
  }

  .page-shell {
    gap: var(--ds-space-4);
  }

  .page-shell > * + * {
    padding-top: var(--ds-space-4);
  }

  .section-hero,
  .home-hero,
  .card,
  .research-panel,
  .feature-card,
  .summary-card,
  .growth-card,
  .team-card,
  .acc-inner {
    padding: 14px;
  }

  .acc-btn {
    padding: 12px 14px;
  }

  .btn,
  .btn-secondary,
  .btn-danger {
    width: 100%;
  }

  .prototype-visual-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn,
  .btn-secondary,
  .btn-danger,
  .feature-card,
  .summary-card,
  .growth-card,
  .banner-icon-btn,
  .banner-profile {
    transition: none !important;
  }
}

/* ------------------------------------------------------------------
   Interactive prototype demo
------------------------------------------------------------------- */
.prototype-demo-page {
  gap: var(--ds-space-5);
}

.prototype-demo-hero__side {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 18px;
  border-radius: var(--ds-radius-lg);
  border: 1px solid rgba(197, 154, 94, 0.3);
  background:
    radial-gradient(circle at top right, rgba(197, 154, 94, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(255, 249, 239, 0.92), rgba(247, 240, 228, 0.82));
}

.prototype-demo-notice__meta {
  margin-top: 12px;
  font-size: 0.95rem;
  color: rgba(33, 49, 82, 0.82);
}

.prototype-demo-gate {
  display: grid;
  gap: 14px;
}

.prototype-demo-gate__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.page-prototype-demo .prototype-demo-app {
  display: none;
}

.page-prototype-demo .prototype-demo-gate {
  display: grid;
}

body[data-view-mode="presentation"].page-prototype-demo .prototype-demo-app {
  display: block;
}

body[data-view-mode="presentation"].page-prototype-demo .prototype-demo-gate {
  display: none;
}

.prototype-demo-app {
  padding: clamp(14px, 1.5vw, 22px);
  border-radius: 24px;
  border: 1px solid rgba(21, 77, 147, 0.18);
  background: linear-gradient(180deg, rgba(245, 248, 252, 0.98), rgba(255, 255, 255, 0.96));
  box-shadow: 0 20px 44px rgba(15, 27, 51, 0.1);
}

.prototype-storefront,
.prototype-demo-scenarios,
.prototype-demo-filters,
.prototype-demo-support-actions,
.prototype-demo-radio-group,
.demo-product__tags,
.demo-product__actions,
.prototype-demo-kpis,
.prototype-storefront__masthead,
.prototype-storefront__tabs,
.prototype-storefront__hero-zone,
.prototype-storefront__body,
.prototype-storefront__headline,
.prototype-storefront__menu-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prototype-storefront {
  display: grid;
  gap: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(21, 77, 147, 0.14);
  background: #ffffff;
}

.prototype-storefront__utility {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  min-height: 40px;
  padding: 10px 18px;
  border-bottom: 1px solid rgba(15, 27, 51, 0.08);
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(240, 247, 255, 0.92));
  color: rgba(21, 39, 68, 0.75);
  font-family: var(--font-ui);
  font-size: 0.84rem;
}

.prototype-storefront__utility-divider {
  width: 1px;
  height: 14px;
  background: rgba(21, 39, 68, 0.14);
}

.prototype-storefront__masthead {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px;
  border-bottom: 1px solid rgba(15, 27, 51, 0.08);
}

.prototype-storefront__primary-links {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: max-content;
}

.prototype-storefront__primary-link {
  min-height: 42px;
  padding: 0 12px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(21, 39, 68, 0.88);
  font-family: var(--font-ui);
  font-size: 0.96rem;
  font-weight: 600;
}

.prototype-storefront__primary-link.is-active {
  color: #1670c7;
  border-bottom-color: #1670c7;
}

.prototype-storefront__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #153d72;
  text-decoration: none;
}

.prototype-storefront__brand:hover {
  color: #0e315f;
}

.prototype-storefront__brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0e68c7, #1f8eed);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: lowercase;
}

.prototype-storefront__brand-copy {
  display: grid;
  gap: 2px;
}

.prototype-storefront__brand-copy strong {
  font-family: var(--font-ui);
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.prototype-storefront__brand-copy small {
  color: rgba(21, 39, 68, 0.64);
  font-size: 0.77rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prototype-storefront__search {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
}

.prototype-storefront__search input,
.prototype-demo-select select {
  min-height: 52px;
  width: 100%;
  border-radius: 999px;
  border: 1px solid rgba(15, 27, 51, 0.1);
  background: rgba(243, 247, 252, 0.96);
  color: #14233d;
  font: inherit;
}

.prototype-storefront__search input {
  padding: 12px 18px 12px 50px;
}

.prototype-demo-select select {
  padding: 12px 18px;
}

.prototype-storefront__search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(21, 39, 68, 0.55);
  font-size: 1.1rem;
}

.prototype-storefront__actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 12px;
}

.prototype-storefront__ghost-link,
.prototype-storefront__login-btn,
.prototype-storefront__icon-btn,
.prototype-storefront__basket-pill {
  border: 1px solid rgba(15, 27, 51, 0.1);
  background: #fff;
  color: #173663;
  font-family: var(--font-ui);
  font-weight: 600;
}

.prototype-storefront__ghost-link {
  padding: 0 4px;
  border-color: transparent;
  background: transparent;
  color: #1670c7;
}

.prototype-storefront__login-btn {
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #19a3e3, #108ac6);
  border-color: rgba(17, 118, 170, 0.28);
  color: #fff;
}

.prototype-storefront__icon-btn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.1rem;
}

.prototype-storefront__icon-btn.is-active {
  color: #1670c7;
  border-color: rgba(22, 112, 199, 0.22);
  background: rgba(22, 112, 199, 0.06);
}

.prototype-storefront__basket-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
}

.prototype-storefront__basket-pill strong {
  font-size: 0.96rem;
}

.prototype-storefront__tabs {
  align-items: center;
  gap: 0;
  padding: 0 18px;
  border-bottom: 1px solid rgba(15, 27, 51, 0.08);
  overflow-x: auto;
  scrollbar-width: none;
}

.prototype-storefront__tabs::-webkit-scrollbar {
  display: none;
}

.prototype-storefront__tab {
  min-height: 54px;
  padding: 0 18px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: rgba(21, 39, 68, 0.88);
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 600;
}

.prototype-storefront__tab.is-active {
  color: #1670c7;
  border-bottom-color: #1670c7;
}

.prototype-storefront__promo-stage {
  position: relative;
  padding: 18px 18px 0;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.98), rgba(245, 249, 255, 0.98));
}

.prototype-storefront__menu {
  position: absolute;
  top: 18px;
  left: clamp(228px, 22vw, 292px);
  z-index: 5;
  width: 250px;
  display: none;
  align-self: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(15, 27, 51, 0.1);
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 27, 51, 0.12);
}

.prototype-storefront__menu.is-open {
  display: grid;
  gap: 12px;
}

.prototype-storefront__promo-wall,
.prototype-storefront__editorial-strip {
  padding: 18px;
}

.prototype-storefront__promo-wall {
  padding: 0 0 18px;
}

.prototype-storefront__promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.prototype-storefront__promo-card {
  position: relative;
  overflow: hidden;
  min-height: 300px;
  padding: 24px 22px 86px;
  border-radius: 26px;
  color: #fff;
  box-shadow: 0 18px 38px rgba(15, 27, 51, 0.14);
}

.prototype-storefront__promo-card--navy {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(145deg, #073b82, #0c67c5);
}

.prototype-storefront__promo-card--sky {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, #40a7df, #1793d6);
}

.prototype-storefront__promo-card--mint {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(145deg, #4da9dd, #1f88c9);
}

.prototype-storefront__promo-card--amber {
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.14), transparent 32%),
    linear-gradient(145deg, #dc8c20, #f0a233);
}

.prototype-storefront__promo-copy {
  position: relative;
  z-index: 1;
  max-width: 14ch;
}

.prototype-storefront__promo-copy h3,
.prototype-storefront__promo-copy p {
  color: #fff;
}

.prototype-storefront__promo-copy h3 {
  margin: 0;
  font-size: clamp(1.8rem, 1.45vw, 2.3rem);
  line-height: 1.04;
  text-wrap: balance;
}

.prototype-storefront__promo-copy p {
  margin-top: 10px;
  max-width: 20ch;
  font-size: 1rem;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.prototype-storefront__promo-tag {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prototype-storefront__promo-visual {
  position: absolute;
  inset: auto 22px 22px 22px;
  display: flex;
  align-items: end;
  justify-content: flex-start;
}

.prototype-storefront__promo-cluster {
  position: relative;
  width: 160px;
  height: 112px;
  margin-left: auto;
  margin-right: 74px;
}

.prototype-storefront__promo-pack {
  position: absolute;
  bottom: 0;
  width: 62px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(230, 240, 252, 0.94));
  box-shadow: 0 14px 22px rgba(11, 25, 44, 0.18);
}

.prototype-storefront__promo-pack--a {
  left: 0;
  height: 72px;
  transform: rotate(-8deg);
}

.prototype-storefront__promo-pack--b {
  left: 46px;
  width: 72px;
  height: 108px;
  transform: rotate(2deg);
}

.prototype-storefront__promo-pack--c {
  right: 0;
  height: 88px;
  transform: rotate(8deg);
}

.prototype-storefront__promo-pack::before,
.prototype-storefront__promo-pack::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  border-radius: 10px;
}

.prototype-storefront__promo-pack::before {
  top: 12px;
  height: 14px;
  background: rgba(18, 103, 193, 0.14);
}

.prototype-storefront__promo-pack::after {
  bottom: 14px;
  height: 28px;
  background: rgba(13, 33, 58, 0.08);
}

.prototype-storefront__promo-sticker {
  display: inline-grid;
  place-items: center;
  min-width: 92px;
  min-height: 92px;
  padding: 10px;
  border-radius: 14px;
  background: linear-gradient(180deg, #ff9a22, #f37300);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 0.92;
  box-shadow: 0 14px 24px rgba(182, 89, 0, 0.24);
}

.prototype-storefront__promo-badge {
  position: absolute;
  right: 90px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 148px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #0d5fb1;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.prototype-storefront__promo-arrow,
.prototype-storefront__editorial-arrow {
  position: absolute;
  right: 22px;
  bottom: 22px;
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #173663;
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(15, 27, 51, 0.16);
}

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

.prototype-storefront__editorial-card {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(0, 1.2fr);
  min-height: 228px;
  border-radius: 22px;
  border: 1px solid rgba(15, 27, 51, 0.1);
  background: #fff;
  box-shadow: 0 14px 28px rgba(15, 27, 51, 0.08);
}

.prototype-storefront__editorial-media {
  background:
    linear-gradient(145deg, rgba(199, 150, 92, 0.3), rgba(112, 75, 42, 0.18)),
    linear-gradient(145deg, #d4c3ab, #8f6f4d);
}

.prototype-storefront__editorial-card--stamps .prototype-storefront__editorial-media {
  background:
    linear-gradient(145deg, rgba(90, 148, 226, 0.32), rgba(30, 94, 162, 0.18)),
    linear-gradient(145deg, #a7c9ef, #4e82c1);
}

.prototype-storefront__editorial-copy {
  display: grid;
  gap: 10px;
  padding: 24px 72px 24px 24px;
}

.prototype-storefront__editorial-copy h3 {
  margin: 0;
  font-size: clamp(1.25rem, 1.05vw, 1.7rem);
  line-height: 1.12;
  text-wrap: balance;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.prototype-storefront__editorial-copy p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.48;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.prototype-storefront__editorial-tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 112, 199, 0.08);
  color: #1670c7;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.prototype-storefront__menu-list {
  display: grid;
  gap: 4px;
}

.prototype-storefront__menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: #1a355f;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 500;
  text-align: left;
}

.prototype-storefront__menu-item:hover,
.prototype-storefront__menu-item.is-active {
  background: rgba(22, 112, 199, 0.08);
  color: #0f61ae;
}

.prototype-storefront__body {
  align-items: start;
  padding: 18px;
}

.prototype-storefront__main {
  flex: 1 1 680px;
  display: grid;
  gap: 24px;
}

.prototype-storefront__rail {
  flex: 0 0 320px;
  display: grid;
  gap: 16px;
}

.prototype-storefront__sectionbar,
.prototype-storefront__headline,
.prototype-storefront__scenario-block,
.prototype-demo-select {
  display: grid;
  gap: 10px;
}

.prototype-storefront__sectionbar {
  gap: 16px;
  padding-bottom: 6px;
}

.prototype-storefront__scenario-block {
  gap: 12px;
}

.prototype-storefront__categories,
.prototype-storefront__catalog,
.prototype-demo-panel {
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(15, 27, 51, 0.1);
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 27, 51, 0.08);
}

.prototype-storefront__headline {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-bottom: 18px;
}

.prototype-storefront__headline-link {
  align-self: center;
  border: 0;
  background: transparent;
  color: #1670c7;
  font-family: var(--font-ui);
  font-weight: 600;
}

.prototype-storefront__category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.prototype-storefront__category-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 116px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(15, 27, 51, 0.1);
  background: linear-gradient(180deg, rgba(245, 250, 255, 0.98), rgba(234, 243, 252, 0.96));
  text-align: left;
}

.prototype-storefront__category-card.is-active {
  border-color: rgba(22, 112, 199, 0.34);
  box-shadow: 0 14px 28px rgba(22, 112, 199, 0.16);
}

.prototype-storefront__category-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: linear-gradient(145deg, #0c67c5, #3da6f3);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 700;
}

.prototype-storefront__category-copy {
  display: grid;
  gap: 4px;
}

.prototype-storefront__category-copy strong {
  color: #173663;
  font-family: var(--font-ui);
}

.prototype-storefront__category-copy small {
  color: rgba(21, 39, 68, 0.66);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.prototype-storefront__category-count {
  color: #1670c7;
  font-family: var(--font-ui);
  font-size: 1.15rem;
  font-weight: 700;
}

.prototype-demo-label {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 35, 61, 0.66);
}

.prototype-demo-meta,
.prototype-demo-panel__text {
  margin: 4px 0 0;
  max-width: 62ch;
  color: rgba(20, 35, 61, 0.76);
}

.prototype-demo-chip,
.prototype-demo-filter,
.prototype-demo-mini-btn,
.demo-product__btn,
.prototype-demo-linkbtn,
.prototype-storefront__menu-item,
.prototype-storefront__category-card,
.prototype-storefront__headline-link,
.prototype-storefront__primary-link,
.prototype-storefront__ghost-link,
.prototype-storefront__login-btn,
.prototype-storefront__icon-btn,
.prototype-storefront__basket-pill,
.prototype-storefront__tab {
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.prototype-demo-chip,
.prototype-demo-filter,
.prototype-demo-mini-btn {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 999px;
  border: 1px solid rgba(15, 27, 51, 0.1);
  background: rgba(244, 248, 252, 0.96);
  color: #15345f;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
}

.prototype-demo-chip:hover,
.prototype-demo-filter:hover,
.prototype-demo-mini-btn:hover,
.demo-product__btn:hover,
.prototype-demo-linkbtn:hover,
.prototype-storefront__primary-link:hover,
.prototype-storefront__ghost-link:hover,
.prototype-storefront__login-btn:hover,
.prototype-storefront__icon-btn:hover,
.prototype-storefront__basket-pill:hover,
.prototype-storefront__category-card:hover,
.prototype-storefront__headline-link:hover,
.prototype-storefront__promo-arrow:hover,
.prototype-storefront__editorial-arrow:hover {
  transform: translateY(-1px);
}

.prototype-demo-chip.is-active,
.prototype-demo-filter.is-active,
.prototype-demo-mini-btn.is-active {
  border-color: rgba(22, 112, 199, 0.28);
  background: linear-gradient(180deg, #1577d2, #0d5fb1);
  color: #fff;
  box-shadow: 0 10px 18px rgba(21, 103, 186, 0.18);
}

.prototype-demo-kpi {
  min-width: 126px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(241, 247, 253, 0.92);
  border: 1px solid rgba(15, 27, 51, 0.08);
}

.prototype-demo-kpi span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 35, 61, 0.62);
}

.prototype-demo-kpi strong {
  display: block;
  margin-top: 6px;
  color: #173663;
  font-size: 1.05rem;
}

.prototype-demo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.demo-product {
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid rgba(15, 27, 51, 0.1);
  background: #ffffff;
  box-shadow: 0 16px 30px rgba(15, 27, 51, 0.08);
}

.demo-product.is-unavailable {
  border-color: rgba(214, 139, 49, 0.26);
}

.demo-product__media {
  position: relative;
  min-height: 172px;
  display: grid;
  place-items: center;
  padding: 18px;
  background: linear-gradient(145deg, #e4f0fb, #cfe5fb);
}

.demo-product__media[data-tone="amber"] {
  background: linear-gradient(145deg, #f5dfbf, #f2c37c);
}

.demo-product__media[data-tone="blue"] {
  background: linear-gradient(145deg, #d9ebff, #a8d1ff);
}

.demo-product__media[data-tone="green"] {
  background: linear-gradient(145deg, #ddefe7, #b0d9c8);
}

.demo-product__media[data-tone="slate"] {
  background: linear-gradient(145deg, #e3e8f2, #c4cfdf);
}

.demo-product__badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #184170;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
}

.demo-product__pack {
  position: relative;
  width: 120px;
  height: 138px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff, #edf5ff);
  box-shadow: 0 16px 28px rgba(15, 27, 51, 0.14);
  transform: rotate(-4deg);
}

.demo-product__pack::before,
.demo-product__pack::after {
  content: "";
  position: absolute;
  border-radius: 12px;
}

.demo-product__pack::before {
  inset: 12px 16px auto;
  height: 18px;
  background: rgba(22, 112, 199, 0.14);
}

.demo-product__pack::after {
  inset: auto 16px 18px;
  height: 34px;
  background: rgba(15, 27, 51, 0.08);
}

.demo-product__pack span {
  position: relative;
  z-index: 1;
  color: #0f61ae;
  font-family: var(--font-ui);
  font-size: 1.65rem;
  font-weight: 700;
}

.demo-product__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.demo-product__meta-row,
.demo-product__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.demo-product__availability,
.demo-product__rating {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
}

.demo-product__availability {
  color: #0f61ae;
}

.demo-product.is-unavailable .demo-product__availability {
  color: #a66112;
}

.demo-product__title {
  margin: 0;
  color: #173663;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.demo-product__seller,
.demo-product__text,
.demo-product__footer span {
  color: rgba(20, 35, 61, 0.76);
}

.demo-product__seller,
.demo-product__text {
  margin: 0;
}

.demo-product__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.demo-product__tags {
  padding: 0;
  margin: 0;
  list-style: none;
}

.demo-product__tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 112, 199, 0.08);
  color: #184170;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
}

.demo-product__btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 27, 51, 0.08);
  background: linear-gradient(180deg, #1577d2, #0d5fb1);
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
}

.demo-product__btn--ghost,
.prototype-demo-linkbtn {
  background: rgba(236, 244, 252, 0.96);
  color: #173663;
}

.prototype-demo-basket {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.prototype-demo-basket__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(240, 246, 252, 0.96);
  border: 1px solid rgba(15, 27, 51, 0.08);
}

.prototype-demo-basket__item div {
  display: grid;
  gap: 4px;
}

.prototype-demo-empty,
.prototype-demo-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(243, 247, 252, 0.92);
  border: 1px dashed rgba(15, 27, 51, 0.12);
  color: rgba(20, 35, 61, 0.76);
}

.prototype-demo-action {
  margin-top: 12px;
}

.prototype-demo-empty-state {
  grid-column: 1 / -1;
  padding: 34px 24px;
  border-radius: 20px;
  border: 1px dashed rgba(15, 27, 51, 0.16);
  background: rgba(243, 247, 252, 0.8);
  text-align: center;
}

.prototype-demo-empty-state h4 {
  margin-bottom: 8px;
  color: #173663;
}

body.dark .prototype-demo-hero__side {
  border-color: rgba(220, 170, 97, 0.28);
  background:
    radial-gradient(circle at top right, rgba(220, 170, 97, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(14, 24, 41, 0.95), rgba(10, 18, 31, 0.88));
}

body.dark .prototype-demo-notice__meta,
body.dark .prototype-demo-meta,
body.dark .prototype-demo-panel__text,
body.dark .demo-product__seller,
body.dark .demo-product__text,
body.dark .demo-product__footer span,
body.dark .prototype-demo-empty,
body.dark .prototype-demo-note,
body.dark .prototype-demo-kpi span,
body.dark .prototype-demo-label,
body.dark .prototype-storefront__brand-copy small,
body.dark .prototype-storefront__category-copy small,
body.dark .prototype-storefront__utility {
  color: rgba(236, 241, 248, 0.78);
}

body.dark .prototype-demo-app,
body.dark .prototype-storefront,
body.dark .prototype-storefront__menu,
body.dark .prototype-storefront__categories,
body.dark .prototype-storefront__catalog,
body.dark .prototype-demo-panel,
body.dark .demo-product,
body.dark .prototype-demo-empty-state,
body.dark .prototype-storefront__search input,
body.dark .prototype-demo-select select,
body.dark .prototype-demo-kpi,
body.dark .prototype-demo-basket__item,
body.dark .prototype-demo-empty,
body.dark .prototype-demo-note {
  background: rgba(11, 20, 34, 0.94);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(247, 249, 252, 0.94);
}

body.dark .prototype-storefront__utility,
body.dark .prototype-storefront__masthead,
body.dark .prototype-storefront__tabs,
body.dark .prototype-storefront__promo-stage,
body.dark .prototype-storefront__promo-wall,
body.dark .prototype-storefront__editorial-strip {
  background: rgba(12, 22, 36, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .prototype-storefront__tab,
body.dark .prototype-storefront__primary-link,
body.dark .prototype-storefront__menu-item,
body.dark .prototype-storefront__headline-link,
body.dark .prototype-storefront__brand,
body.dark .prototype-storefront__category-copy strong,
body.dark .prototype-demo-kpi strong,
body.dark .demo-product__title,
body.dark .prototype-demo-empty-state h4 {
  color: rgba(255, 249, 239, 0.96);
}

body.dark .prototype-storefront__menu-item:hover,
body.dark .prototype-storefront__menu-item.is-active,
body.dark .prototype-storefront__ghost-link,
body.dark .prototype-storefront__icon-btn,
body.dark .prototype-storefront__basket-pill,
body.dark .prototype-storefront__category-card,
body.dark .prototype-demo-chip,
body.dark .prototype-demo-filter,
body.dark .prototype-demo-mini-btn,
body.dark .demo-product__btn--ghost,
body.dark .prototype-demo-linkbtn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(247, 249, 252, 0.94);
}

body.dark .prototype-storefront__login-btn {
  background: linear-gradient(180deg, #1b88ca, #146ea3);
  border-color: rgba(91, 181, 233, 0.18);
  color: #fff;
}

body.dark .prototype-storefront__promo-card--navy {
  background: linear-gradient(145deg, #0b3f7a, #0e66bf);
}

body.dark .prototype-storefront__promo-card--sky,
body.dark .prototype-storefront__promo-card--mint {
  background: linear-gradient(145deg, #165b8a, #2390cf);
}

body.dark .prototype-storefront__promo-card--amber {
  background: linear-gradient(145deg, #a36a18, #ce8826);
}

body.dark .prototype-storefront__editorial-card,
body.dark .prototype-storefront__promo-arrow,
body.dark .prototype-storefront__editorial-arrow {
  background: rgba(11, 20, 34, 0.94);
  color: rgba(255, 249, 239, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
}

body.dark .prototype-storefront__promo-pack {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(224, 232, 244, 0.92));
}

body.dark .prototype-storefront__promo-badge {
  background: rgba(11, 20, 34, 0.88);
  color: rgba(255, 249, 239, 0.96);
}

body.dark .prototype-storefront__category-card.is-active {
  border-color: rgba(87, 169, 245, 0.32);
}

body.dark .prototype-demo-chip.is-active,
body.dark .prototype-demo-filter.is-active,
body.dark .prototype-demo-mini-btn.is-active,
body.dark .demo-product__btn {
  background: linear-gradient(180deg, #d4a04d, #ad7622);
  border-color: rgba(220, 170, 97, 0.44);
  color: #0f1520;
}

body.dark .demo-product__media {
  background: linear-gradient(145deg, rgba(28, 50, 78, 0.98), rgba(16, 29, 49, 0.98));
}

body.dark .demo-product__pack {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(226, 234, 246, 0.92));
}

@media (max-width: 1120px) {
  .prototype-storefront__masthead,
  .prototype-storefront__body {
    display: grid;
    grid-template-columns: 1fr;
  }

  .prototype-storefront__primary-links,
  .prototype-storefront__actions {
    margin-left: 0;
  }

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

  .prototype-storefront__promo-grid,
  .prototype-storefront__editorial-grid,
  .prototype-storefront__category-grid,
  .prototype-demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prototype-storefront__menu {
    position: relative;
    top: auto;
    left: auto;
    width: min(280px, 100%);
    margin: 0 0 18px;
  }
}

@media (max-width: 760px) {
  .prototype-storefront__masthead,
  .prototype-storefront__primary-links,
  .prototype-storefront__tabs,
  .prototype-storefront__promo-grid,
  .prototype-storefront__editorial-grid,
  .prototype-storefront__sectionbar,
  .prototype-storefront__headline,
  .prototype-storefront__rail,
  .prototype-demo-grid,
  .prototype-storefront__category-grid,
  .demo-product__footer,
  .prototype-demo-kpis {
    display: grid;
    grid-template-columns: 1fr;
  }

  .prototype-storefront__masthead,
  .prototype-storefront__promo-wall,
  .prototype-storefront__editorial-strip,
  .prototype-storefront__body,
  .prototype-storefront__categories,
  .prototype-storefront__catalog,
  .prototype-demo-panel {
    padding: 14px;
  }

  .prototype-storefront__tabs {
    padding: 0 14px;
  }

  .prototype-storefront__tab {
    justify-content: flex-start;
    text-align: left;
  }

  .prototype-storefront__search input {
    min-height: 48px;
  }

  .prototype-storefront__menu {
    margin: 0 0 14px;
  }

  .prototype-storefront__promo-card {
    min-height: 250px;
    padding: 18px 18px 78px;
  }

  .prototype-storefront__promo-copy {
    max-width: 13ch;
  }

  .prototype-storefront__promo-copy h3 {
    font-size: 1.7rem;
  }

  .prototype-storefront__promo-visual {
    inset: auto 18px 18px 18px;
  }

  .prototype-storefront__promo-cluster {
    width: 128px;
    height: 88px;
    margin-right: 64px;
  }

  .prototype-storefront__promo-pack {
    width: 48px;
  }

  .prototype-storefront__promo-pack--b {
    left: 38px;
    width: 58px;
    height: 86px;
  }

  .prototype-storefront__promo-pack--c {
    height: 68px;
  }

  .prototype-storefront__promo-sticker {
    min-width: 78px;
    min-height: 78px;
    font-size: 1.15rem;
  }

  .prototype-storefront__promo-badge {
    right: 78px;
    bottom: 18px;
  }

  .prototype-storefront__editorial-card {
    grid-template-columns: 1fr;
  }

  .prototype-storefront__editorial-media {
    min-height: 140px;
  }

  .prototype-storefront__editorial-copy {
    padding: 20px 72px 20px 20px;
  }

  .prototype-demo-chip,
  .prototype-demo-filter,
  .prototype-demo-mini-btn,
  .demo-product__btn,
  .prototype-storefront__login-btn,
  .prototype-storefront__basket-pill,
  .prototype-demo-gate__actions .btn,
  .prototype-demo-gate__actions .btn-secondary {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prototype-demo-chip,
  .prototype-demo-filter,
  .prototype-demo-mini-btn,
  .demo-product__btn,
  .prototype-demo-linkbtn,
  .prototype-storefront__menu-item,
  .prototype-storefront__category-card,
  .prototype-storefront__headline-link,
  .prototype-storefront__primary-link,
  .prototype-storefront__ghost-link,
  .prototype-storefront__login-btn,
  .prototype-storefront__icon-btn,
  .prototype-storefront__basket-pill,
  .prototype-storefront__promo-arrow,
  .prototype-storefront__editorial-arrow,
  .prototype-storefront__tab {
    transition: none !important;
  }
}
}

.prototype-demo-label {
  font-family: var(--font-ui);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 35, 61, 0.72);
}

.prototype-demo-chip,
.prototype-demo-filter,
.prototype-demo-mini-btn,
.demo-product__btn,
.prototype-demo-linkbtn {
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease;
}

.prototype-demo-chip,
.prototype-demo-filter,
.prototype-demo-mini-btn {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 27, 51, 0.12);
  background: rgba(255, 255, 255, 0.72);
  color: #162540;
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 600;
}

.prototype-demo-chip:hover,
.prototype-demo-filter:hover,
.prototype-demo-mini-btn:hover,
.demo-product__btn:hover,
.prototype-demo-linkbtn:hover {
  transform: translateY(-1px);
}

.prototype-demo-chip.is-active,
.prototype-demo-filter.is-active,
.prototype-demo-mini-btn.is-active {
  border-color: rgba(197, 154, 94, 0.56);
  background: linear-gradient(180deg, rgba(199, 144, 48, 0.96), rgba(174, 120, 28, 0.96));
  color: #fffaf2;
  box-shadow: 0 10px 18px rgba(151, 99, 23, 0.2);
}

.prototype-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.95fr);
  gap: var(--ds-space-4);
}

.prototype-demo-catalog,
.prototype-demo-panel {
  padding: clamp(16px, 1.7vw, 22px);
  border-radius: 18px;
  border: 1px solid rgba(15, 27, 51, 0.12);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 24px rgba(15, 27, 51, 0.08);
}

.prototype-demo-headline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 16px;
}

.prototype-demo-meta,
.prototype-demo-panel__text {
  margin: 6px 0 0;
  max-width: 62ch;
  color: rgba(20, 35, 61, 0.8);
}

.prototype-demo-kpi {
  min-width: 110px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(19, 33, 58, 0.05);
  border: 1px solid rgba(15, 27, 51, 0.08);
}

.prototype-demo-kpi span {
  display: block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(20, 35, 61, 0.64);
}

.prototype-demo-kpi strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  color: #162540;
}

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

.demo-product {
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(15, 27, 51, 0.12);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 22px rgba(15, 27, 51, 0.08);
}

.demo-product.is-unavailable {
  border-color: rgba(171, 113, 44, 0.28);
}

.demo-product__media {
  position: relative;
  min-height: 138px;
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 18px;
  color: #fffaf2;
  background: linear-gradient(140deg, #233659, #10203c);
}

.demo-product__media[data-tone="amber"] {
  background: linear-gradient(145deg, #6f4f22, #c98c31);
}

.demo-product__media[data-tone="blue"] {
  background: linear-gradient(145deg, #14325b, #2d6db1);
}

.demo-product__media[data-tone="green"] {
  background: linear-gradient(145deg, #1f4b46, #3b8a7b);
}

.demo-product__media[data-tone="slate"] {
  background: linear-gradient(145deg, #25324c, #485a79);
}

.demo-product__media::after {
  content: "";
  position: absolute;
  inset: auto 18px 18px auto;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.demo-product__eyebrow,
.demo-product__availability {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.demo-product__media strong {
  position: relative;
  z-index: 1;
  max-width: 14ch;
  font-size: 1.28rem;
  line-height: 1.08;
}

.demo-product__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.demo-product__title {
  margin: 0;
}

.demo-product__seller,
.demo-product__text,
.demo-product__footer span {
  color: rgba(20, 35, 61, 0.78);
}

.demo-product__seller,
.demo-product__text {
  margin: 0;
}

.demo-product__tags {
  padding: 0;
  margin: 0;
  list-style: none;
}

.demo-product__tag {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(19, 33, 58, 0.06);
  color: rgba(20, 35, 61, 0.76);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.demo-product__footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.demo-product__btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 27, 51, 0.12);
  background: #1a2c4b;
  color: #fffaf2;
  font-family: var(--font-ui);
  font-weight: 700;
}

.demo-product__btn--ghost,
.prototype-demo-linkbtn {
  background: rgba(19, 33, 58, 0.06);
  color: #162540;
}

.prototype-demo-aside {
  display: grid;
  gap: 16px;
}

.prototype-demo-basket {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.prototype-demo-basket__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(19, 33, 58, 0.05);
  border: 1px solid rgba(15, 27, 51, 0.08);
}

.prototype-demo-basket__item div {
  display: grid;
  gap: 4px;
}

.prototype-demo-empty,
.prototype-demo-note {
  margin: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(19, 33, 58, 0.05);
  border: 1px dashed rgba(15, 27, 51, 0.12);
  color: rgba(20, 35, 61, 0.78);
}

.prototype-demo-action {
  margin-top: 12px;
}

.prototype-demo-empty-state {
  grid-column: 1 / -1;
  padding: 30px 24px;
  border-radius: 18px;
  border: 1px dashed rgba(15, 27, 51, 0.16);
  background: rgba(255, 255, 255, 0.58);
  text-align: center;
}

.prototype-demo-empty-state h4 {
  margin-bottom: 8px;
}

body.dark .prototype-demo-hero__side {
  border-color: rgba(220, 170, 97, 0.28);
  background:
    radial-gradient(circle at top right, rgba(220, 170, 97, 0.18), transparent 54%),
    linear-gradient(180deg, rgba(14, 24, 41, 0.95), rgba(10, 18, 31, 0.88));
}

body.dark .prototype-demo-notice__meta,
body.dark .prototype-demo-meta,
body.dark .prototype-demo-panel__text,
body.dark .demo-product__seller,
body.dark .demo-product__text,
body.dark .demo-product__footer span,
body.dark .prototype-demo-empty,
body.dark .prototype-demo-note,
body.dark .prototype-demo-kpi span,
body.dark .demo-product__tag,
body.dark .prototype-demo-label {
  color: rgba(239, 243, 248, 0.78);
}

body.dark .prototype-demo-app,
body.dark .prototype-demo-catalog,
body.dark .prototype-demo-panel,
body.dark .demo-product,
body.dark .prototype-demo-empty-state,
body.dark .prototype-demo-search input,
body.dark .prototype-demo-select select,
body.dark .prototype-demo-kpi,
body.dark .prototype-demo-basket__item,
body.dark .prototype-demo-empty,
body.dark .prototype-demo-note {
  background: rgba(11, 20, 34, 0.9);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(247, 249, 252, 0.94);
}

body.dark .prototype-demo-chip,
body.dark .prototype-demo-filter,
body.dark .prototype-demo-mini-btn,
body.dark .demo-product__btn--ghost,
body.dark .prototype-demo-linkbtn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(247, 249, 252, 0.94);
}

body.dark .demo-product__btn {
  background: linear-gradient(180deg, #d4a04d, #ad7622);
  border-color: rgba(220, 170, 97, 0.44);
  color: #10161f;
}

body.dark .prototype-demo-chip.is-active,
body.dark .prototype-demo-filter.is-active,
body.dark .prototype-demo-mini-btn.is-active {
  color: #0f1520;
}

body.dark .prototype-demo-kpi strong,
body.dark .demo-product__title,
body.dark .prototype-demo-empty-state h4 {
  color: rgba(255, 249, 239, 0.98);
}

@media (max-width: 1024px) {
  .prototype-demo-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .prototype-demo-toolbar,
  .prototype-demo-headline,
  .prototype-demo-aside,
  .demo-product__footer {
    grid-template-columns: 1fr;
    display: grid;
  }

  .prototype-demo-grid {
    grid-template-columns: 1fr;
  }

  .prototype-demo-aside {
    gap: 12px;
  }

  .prototype-demo-toolbar {
    align-items: stretch;
  }

  .prototype-demo-kpis,
  .demo-product__actions {
    grid-template-columns: 1fr;
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  .prototype-demo-chip,
  .prototype-demo-filter,
  .prototype-demo-mini-btn,
  .demo-product__btn,
  .prototype-demo-linkbtn {
    transition: none !important;
  }
}

/* ------------------------------------------------------------------
   Prototype demo premium storefront overrides
------------------------------------------------------------------- */
.page-prototype-demo .content__main {
  width: min(1680px, 100%);
}

.prototype-demo-page {
  gap: clamp(22px, 2vw, 32px);
}

.prototype-demo-app {
  padding: clamp(14px, 1.6vw, 24px);
  border-radius: 28px;
  border-color: rgba(21, 77, 147, 0.16);
  background:
    radial-gradient(circle at top left, rgba(95, 174, 248, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(249, 251, 255, 0.98), rgba(241, 246, 253, 0.96));
  box-shadow: 0 26px 60px rgba(15, 27, 51, 0.1);
}

.prototype-storefront {
  position: relative;
  border-radius: 30px;
  border-color: rgba(15, 27, 51, 0.08);
  box-shadow: 0 24px 58px rgba(15, 27, 51, 0.12);
}

.prototype-storefront__utility {
  min-height: 34px;
  padding: 8px 22px;
  gap: 10px;
  font-size: 0.78rem;
}

.prototype-storefront__masthead {
  grid-template-columns: auto auto minmax(360px, 1fr) auto;
  gap: 18px;
  padding: 16px 22px;
}

.prototype-storefront__brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  font-size: 1.1rem;
}

.prototype-storefront__primary-links {
  gap: 10px;
}

.prototype-storefront__search-shell {
  position: relative;
  min-width: 0;
}

.prototype-storefront__search {
  width: 100%;
}

.prototype-storefront__search input {
  min-height: 54px;
  padding-left: 54px;
  font-size: 1.02rem;
  background: #f3f5f8;
}

.prototype-storefront__search-suggestions {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 12;
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 20px;
  border: 1px solid rgba(15, 27, 51, 0.08);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 50px rgba(15, 27, 51, 0.14);
}

.prototype-storefront__search-caption {
  padding: 2px 4px 8px;
  color: rgba(20, 35, 61, 0.62);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prototype-storefront__suggestion {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 56px;
  padding: 8px 10px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  text-align: left;
  transition: background-color 160ms ease, transform 160ms ease;
}

.prototype-storefront__suggestion:hover,
.prototype-storefront__suggestion:focus-visible {
  background: rgba(22, 112, 199, 0.08);
  transform: translateY(-1px);
}

.prototype-storefront__suggestion-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #fff;
  font-family: var(--font-ui);
  font-weight: 700;
  background: linear-gradient(145deg, #0c67c5, #3da6f3);
}

.prototype-storefront__suggestion-mark[data-tone="amber"] {
  background: linear-gradient(145deg, #c87b10, #f0a233);
}

.prototype-storefront__suggestion-mark[data-tone="green"] {
  background: linear-gradient(145deg, #2d6d62, #4ca391);
}

.prototype-storefront__suggestion-mark[data-tone="slate"] {
  background: linear-gradient(145deg, #627695, #8a9ab3);
}

.prototype-storefront__suggestion-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.prototype-storefront__suggestion-copy strong,
.prototype-storefront__suggestion-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.prototype-storefront__suggestion-copy strong {
  color: #173663;
  font-family: var(--font-ui);
  font-size: 0.94rem;
}

.prototype-storefront__suggestion-copy small,
.prototype-storefront__suggestion-empty {
  color: rgba(20, 35, 61, 0.68);
  font-size: 0.82rem;
}

.prototype-storefront__suggestion-empty {
  margin: 0;
  padding: 6px 4px 2px;
}

.prototype-storefront__actions {
  gap: 10px;
}

.prototype-storefront__tabs {
  padding: 0 22px;
}

.prototype-storefront__service-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px 22px 0;
  background: linear-gradient(180deg, rgba(252, 253, 255, 0.96), rgba(246, 249, 253, 0.94));
}

.prototype-storefront__service-pill {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 27, 51, 0.08);
  background: rgba(255, 255, 255, 0.88);
  color: #173663;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.prototype-storefront__service-pill:hover,
.prototype-storefront__service-pill:focus-visible,
.prototype-storefront__service-pill.is-active {
  transform: translateY(-1px);
  border-color: rgba(22, 112, 199, 0.24);
  background: rgba(229, 242, 255, 0.96);
  box-shadow: 0 12px 22px rgba(22, 112, 199, 0.12);
}

.prototype-storefront__promo-stage {
  padding: 18px 22px 0;
}

.prototype-storefront__menu {
  top: 14px;
  left: var(--prototype-menu-left, 22px);
  width: 262px;
  border-radius: 22px;
}

.prototype-storefront__promo-grid {
  gap: 20px;
}

.prototype-storefront__promo-card,
.prototype-storefront__editorial-card {
  cursor: pointer;
}

.prototype-storefront__promo-card:focus-visible,
.prototype-storefront__editorial-card:focus-visible {
  outline: 3px solid rgba(22, 112, 199, 0.24);
  outline-offset: 4px;
}

.prototype-storefront__promo-card {
  min-height: 328px;
  padding: 24px 24px 92px;
  border-radius: 30px;
}

.prototype-storefront__promo-card::after {
  content: "";
  position: absolute;
  inset: auto -8% -20% auto;
  width: 52%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22), transparent 68%);
  pointer-events: none;
}

.prototype-storefront__promo-copy {
  max-width: 15ch;
}

.prototype-storefront__promo-copy h3 {
  font-size: clamp(1.9rem, 1.9vw, 2.55rem);
  line-height: 1.02;
}

.prototype-storefront__promo-copy p {
  max-width: 24ch;
  font-size: 0.98rem;
  line-height: 1.38;
}

.prototype-storefront__promo-visual {
  inset: auto 24px 22px 24px;
  justify-content: space-between;
}

.prototype-storefront__promo-cluster {
  width: 184px;
  height: 128px;
  margin-right: 90px;
}

.prototype-storefront__promo-pack {
  border-radius: 18px;
}

.prototype-storefront__promo-pack--a {
  height: 78px;
}

.prototype-storefront__promo-pack--b {
  left: 52px;
  width: 78px;
  height: 118px;
}

.prototype-storefront__promo-pack--c {
  height: 94px;
}

.prototype-storefront__promo-sticker {
  min-width: 98px;
  min-height: 98px;
}

.prototype-storefront__promo-badge {
  right: 92px;
  bottom: 22px;
}

.prototype-storefront__editorial-strip {
  padding-top: 10px;
}

.prototype-storefront__editorial-grid {
  gap: 20px;
}

.prototype-storefront__editorial-card {
  min-height: 242px;
  border-radius: 24px;
  grid-template-columns: minmax(250px, 0.88fr) minmax(0, 1.1fr);
}

.prototype-storefront__editorial-media {
  position: relative;
  overflow: hidden;
}

.prototype-storefront__editorial-media::before,
.prototype-storefront__editorial-media::after {
  content: "";
  position: absolute;
  inset: auto;
}

.prototype-storefront__editorial-media::before {
  left: 12%;
  bottom: 18%;
  width: 58%;
  height: 46%;
  border-radius: 22px;
  background: rgba(255, 250, 244, 0.8);
  box-shadow: 0 18px 30px rgba(15, 27, 51, 0.12);
  transform: rotate(-6deg);
}

.prototype-storefront__editorial-media::after {
  right: 14%;
  bottom: 14%;
  width: 24%;
  height: 24%;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.32);
}

.prototype-storefront__editorial-copy {
  gap: 12px;
  padding: 24px 78px 24px 24px;
}

.prototype-storefront__editorial-copy h3 {
  font-size: clamp(1.3rem, 1.2vw, 1.8rem);
}

.prototype-storefront__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 336px;
  gap: 22px;
  padding: 18px 22px 22px;
}

.prototype-storefront__main,
.prototype-storefront__rail {
  min-width: 0;
}

.prototype-storefront__rail {
  position: sticky;
  top: 20px;
  gap: 18px;
  align-self: start;
}

.prototype-storefront__sectionbar {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
}

.prototype-storefront__categories,
.prototype-storefront__catalog,
.prototype-demo-panel {
  padding: 24px;
  border-radius: 24px;
}

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

.prototype-storefront__category-card {
  min-height: 122px;
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(248, 251, 255, 0.98), rgba(238, 245, 253, 0.96));
  box-shadow: 0 14px 24px rgba(15, 27, 51, 0.08);
}

.prototype-storefront__category-count {
  align-self: start;
}

.prototype-demo-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.demo-product {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 24px;
}

.demo-product__media {
  min-height: 210px;
  padding: 18px;
}

.demo-product__save {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #173663;
  box-shadow: 0 10px 18px rgba(15, 27, 51, 0.12);
  transition: transform 160ms ease, background-color 160ms ease;
}

.demo-product__save:hover,
.demo-product__save:focus-visible {
  transform: translateY(-1px);
  background: #ffffff;
}

.demo-product__visual-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding-top: 18px;
}

.demo-product__visual-shadow {
  position: absolute;
  left: 50%;
  bottom: 18px;
  width: min(76%, 180px);
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 27, 51, 0.12);
  filter: blur(10px);
  transform: translateX(-50%);
}

.demo-product__packshot {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  align-content: start;
  width: min(74%, 176px);
  min-height: 150px;
  padding: 14px 14px 16px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #eef5ff);
  box-shadow: 0 20px 30px rgba(15, 27, 51, 0.16);
}

.demo-product__packshot::before {
  content: "";
  display: block;
  height: 14px;
  border-radius: 999px;
  background: rgba(20, 86, 160, 0.12);
}

.demo-product__packshot--loaf {
  min-height: 112px;
  width: min(80%, 190px);
  border-radius: 28px 28px 22px 22px;
}

.demo-product__packshot--bottle {
  width: 88px;
  min-height: 164px;
  padding-top: 22px;
  border-radius: 32px 32px 24px 24px;
}

.demo-product__packshot--carton {
  width: 112px;
  min-height: 168px;
  border-radius: 18px;
}

.demo-product__packshot--tray {
  width: min(82%, 200px);
  min-height: 118px;
  border-radius: 22px;
}

.demo-product__packshot--wrap {
  min-height: 108px;
  width: min(86%, 198px);
  border-radius: 999px;
}

.demo-product__packshot--bundle {
  width: min(86%, 198px);
  min-height: 136px;
  border-radius: 26px;
}

.demo-product__packshot--crate {
  width: min(86%, 198px);
  min-height: 134px;
  border-radius: 20px;
}

.demo-product__packshot-brand {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #0e68c7, #2aa4ef);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 700;
}

.demo-product__packshot-copy {
  display: grid;
  gap: 2px;
}

.demo-product__packshot-copy strong,
.demo-product__packshot-copy small {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
}

.demo-product__packshot-copy strong {
  color: #173663;
  font-family: var(--font-ui);
  font-size: 0.95rem;
  -webkit-line-clamp: 2;
}

.demo-product__packshot-copy small {
  color: rgba(20, 35, 61, 0.64);
  font-size: 0.76rem;
  -webkit-line-clamp: 2;
}

.demo-product__body {
  gap: 14px;
  padding: 20px;
}

.demo-product__title {
  font-size: 1.18rem;
  line-height: 1.18;
}

.demo-product__seller,
.demo-product__text,
.demo-product__footer span {
  font-size: 0.92rem;
  line-height: 1.48;
}

.demo-product__footer {
  align-items: start;
}

.demo-product__footer strong {
  font-family: var(--font-ui);
  font-size: 1.14rem;
  color: #102944;
}

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

.demo-product__btn {
  width: 100%;
  justify-content: center;
}

.prototype-demo-panel {
  gap: 14px;
}

.prototype-demo-basket__item strong {
  color: #173663;
  font-family: var(--font-ui);
}

.prototype-demo-note,
.prototype-demo-empty {
  line-height: 1.5;
}

body.dark .prototype-demo-app {
  background:
    radial-gradient(circle at top left, rgba(87, 169, 245, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(12, 20, 34, 0.98), rgba(10, 18, 31, 0.96));
}

body.dark .prototype-storefront__service-row {
  background: linear-gradient(180deg, rgba(14, 22, 36, 0.96), rgba(12, 20, 34, 0.94));
}

body.dark .prototype-storefront__search-suggestions,
body.dark .prototype-storefront__service-pill,
body.dark .demo-product__save {
  background: rgba(14, 22, 36, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 249, 239, 0.96);
}

body.dark .prototype-storefront__suggestion-copy strong,
body.dark .prototype-storefront__search-caption,
body.dark .demo-product__footer strong,
body.dark .prototype-demo-basket__item strong {
  color: rgba(255, 249, 239, 0.96);
}

body.dark .prototype-storefront__suggestion-copy small,
body.dark .prototype-storefront__suggestion-empty {
  color: rgba(255, 249, 239, 0.72);
}

body.dark .prototype-storefront__service-pill:hover,
body.dark .prototype-storefront__service-pill:focus-visible,
body.dark .prototype-storefront__service-pill.is-active,
body.dark .prototype-storefront__suggestion:hover,
body.dark .prototype-storefront__suggestion:focus-visible {
  background: rgba(28, 44, 71, 0.96);
}

body.dark .demo-product__packshot,
body.dark .demo-product__save:hover,
body.dark .demo-product__save:focus-visible {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(231, 237, 246, 0.92));
  color: #173663;
}

@media (max-width: 1380px) {
  .prototype-storefront__masthead {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .prototype-storefront__primary-links {
    grid-column: 1 / -1;
    order: 4;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .prototype-storefront__primary-links::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 1200px) {
  .prototype-storefront__body {
    grid-template-columns: 1fr;
  }

  .prototype-storefront__rail {
    position: static;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .prototype-storefront__promo-grid,
  .prototype-storefront__editorial-grid,
  .prototype-storefront__category-grid,
  .prototype-demo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prototype-storefront__menu {
    position: relative;
    top: auto;
    left: auto;
    width: min(280px, 100%);
    margin-bottom: 18px;
  }
}

@media (max-width: 900px) {
  .prototype-storefront__masthead {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .prototype-storefront__actions {
    justify-content: space-between;
  }

  .prototype-storefront__tabs,
  .prototype-storefront__service-row {
    padding-inline: 16px;
  }

  .prototype-storefront__promo-stage,
  .prototype-storefront__body {
    padding-inline: 16px;
  }

  .prototype-storefront__promo-card,
  .prototype-storefront__editorial-card,
  .prototype-storefront__categories,
  .prototype-storefront__catalog,
  .prototype-demo-panel {
    border-radius: 22px;
  }

  .prototype-storefront__sectionbar,
  .prototype-storefront__headline {
    grid-template-columns: 1fr;
  }

  .prototype-storefront__headline-link {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .prototype-demo-app {
    padding: 10px;
    border-radius: 22px;
  }

  .prototype-storefront {
    border-radius: 24px;
  }

  .prototype-storefront__utility,
  .prototype-storefront__masthead,
  .prototype-storefront__tabs,
  .prototype-storefront__service-row,
  .prototype-storefront__promo-stage,
  .prototype-storefront__body {
    padding-inline: 14px;
  }

  .prototype-storefront__promo-grid,
  .prototype-storefront__editorial-grid,
  .prototype-storefront__category-grid,
  .prototype-demo-grid,
  .prototype-storefront__rail {
    grid-template-columns: 1fr;
  }

  .prototype-storefront__promo-card {
    min-height: 284px;
    padding: 20px 18px 86px;
  }

  .prototype-storefront__promo-copy {
    max-width: 12ch;
  }

  .prototype-storefront__promo-copy h3 {
    font-size: 1.65rem;
  }

  .prototype-storefront__promo-cluster {
    width: 132px;
    height: 92px;
    margin-right: 70px;
  }

  .prototype-storefront__promo-sticker {
    min-width: 78px;
    min-height: 78px;
    font-size: 1.1rem;
  }

  .prototype-storefront__promo-arrow,
  .prototype-storefront__editorial-arrow {
    width: 48px;
    height: 48px;
  }

  .prototype-storefront__editorial-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .prototype-storefront__editorial-media {
    min-height: 150px;
  }

  .prototype-storefront__editorial-copy {
    padding: 20px 20px 72px;
  }

  .prototype-storefront__category-card,
  .demo-product__actions {
    grid-template-columns: 1fr;
  }

  .demo-product__media {
    min-height: 190px;
  }

  .demo-product__packshot {
    width: min(72%, 168px);
  }
}

/* ------------------------------------------------------------------
   Prototype demo experiential layer
------------------------------------------------------------------- */
.prototype-storefront__concept-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.9fr);
  gap: 18px;
  padding: 20px 22px 8px;
  background:
    radial-gradient(circle at top right, rgba(255, 190, 92, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(242, 247, 253, 0.96));
}

.prototype-storefront__concept-copy,
.prototype-storefront__concept-side,
.prototype-storefront__trust-points,
.prototype-storefront__concept-actions,
.prototype-storefront__concept-metrics,
.prototype-storefront__seller-grid,
.prototype-demo-mini-stats,
.prototype-demo-basket__controls,
.prototype-demo-support-cta-row,
.prototype-demo-inline-actions,
.prototype-demo-flow-steps,
.prototype-demo-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.prototype-storefront__concept-copy {
  display: grid;
  gap: 12px;
  align-content: start;
}

.prototype-storefront__concept-copy h3 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 2.6vw, 3rem);
  line-height: 0.98;
  text-wrap: balance;
}

.prototype-storefront__concept-copy p {
  margin: 0;
  max-width: 62ch;
  color: rgba(20, 35, 61, 0.78);
}

.prototype-storefront__concept-actions .btn,
.prototype-storefront__concept-actions .btn-secondary {
  min-height: 46px;
}

.prototype-storefront__concept-metrics {
  margin-top: 4px;
}

.prototype-storefront__concept-metric {
  min-width: 150px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(15, 27, 51, 0.08);
  box-shadow: 0 12px 22px rgba(15, 27, 51, 0.08);
}

.prototype-storefront__concept-metric span {
  display: block;
  color: rgba(20, 35, 61, 0.62);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prototype-storefront__concept-metric strong {
  display: block;
  margin-top: 6px;
  color: #173663;
  font-family: var(--font-ui);
  font-size: 1.18rem;
}

.prototype-storefront__concept-side {
  display: grid;
  gap: 14px;
}

.prototype-storefront__concept-visual {
  display: grid;
  gap: 12px;
}

.prototype-storefront__concept-mosaic {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 10px;
  min-height: 248px;
}

.prototype-storefront__concept-tile {
  overflow: hidden;
  min-height: 118px;
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(15, 27, 51, 0.12);
}

.prototype-storefront__concept-tile--large {
  grid-row: span 2;
}

.prototype-storefront__concept-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prototype-storefront__concept-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prototype-storefront__concept-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 27, 51, 0.08);
  color: #173663;
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 700;
}

.prototype-storefront__trust-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prototype-storefront__trust-card,
.prototype-storefront__preference-card,
.prototype-storefront__seller-card,
.prototype-demo-flow-card {
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(15, 27, 51, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 28px rgba(15, 27, 51, 0.08);
}

.prototype-storefront__trust-card strong,
.prototype-storefront__preference-card strong {
  display: block;
  color: #173663;
  font-family: var(--font-ui);
}

.prototype-storefront__trust-card p,
.prototype-storefront__preference-card p {
  margin: 6px 0 0;
  color: rgba(20, 35, 61, 0.76);
  font-size: 0.86rem;
  line-height: 1.4;
}

.prototype-storefront__seller-strip {
  padding: 4px 22px 0;
}

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

.prototype-storefront__seller-card {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
}

.prototype-storefront__seller-media {
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(211, 226, 246, 0.92), rgba(154, 184, 221, 0.88));
}

.prototype-storefront__seller-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prototype-storefront__seller-copy {
  display: grid;
  gap: 8px;
}

.prototype-storefront__seller-copy h4 {
  margin: 0;
  color: #173663;
}

.prototype-storefront__seller-copy p {
  margin: 0;
  color: rgba(20, 35, 61, 0.76);
  font-size: 0.88rem;
  line-height: 1.42;
}

.prototype-storefront__seller-badge {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(26, 121, 204, 0.1);
  color: #1767b6;
  font-family: var(--font-ui);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.prototype-storefront__seller-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prototype-storefront__seller-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(22, 112, 199, 0.08);
  color: #1767b6;
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 700;
}

.prototype-storefront__promo-card {
  display: grid;
  align-content: end;
}

.prototype-storefront__promo-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.prototype-storefront__promo-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 43, 0.08), rgba(7, 22, 43, 0.46) 56%, rgba(7, 22, 43, 0.74));
}

.prototype-storefront__promo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prototype-storefront__promo-copy {
  position: relative;
  z-index: 1;
  max-width: 18ch;
}

.prototype-storefront__promo-copy p {
  max-width: 24ch;
  -webkit-line-clamp: 2;
}

.prototype-storefront__promo-visual {
  position: absolute;
  inset: auto 18px 18px auto;
  z-index: 1;
}

.prototype-storefront__editorial-media {
  position: relative;
  overflow: hidden;
}

.prototype-storefront__editorial-media::before,
.prototype-storefront__editorial-media::after {
  display: none;
}

.prototype-storefront__editorial-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prototype-storefront__editorial-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 44%;
  display: block;
  background: linear-gradient(180deg, transparent, rgba(7, 22, 43, 0.12));
}

.prototype-storefront__editorial-copy p {
  -webkit-line-clamp: 2;
}

.prototype-storefront__category-card {
  grid-template-columns: 88px minmax(0, 1fr) auto;
  min-height: 108px;
}

.prototype-storefront__category-thumb {
  overflow: hidden;
  width: 88px;
  height: 72px;
  border-radius: 16px;
  box-shadow: 0 10px 18px rgba(15, 27, 51, 0.12);
}

.prototype-storefront__category-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.prototype-storefront__category-copy small {
  -webkit-line-clamp: 1;
}

.demo-product__media {
  min-height: 236px;
  padding: 14px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.32), transparent 30%),
    linear-gradient(145deg, #edf3fb, #d6e6f8);
}

.demo-product__image-frame {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 178px;
  margin-top: 26px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 252, 0.98));
  box-shadow: 0 18px 28px rgba(15, 27, 51, 0.12);
}

.demo-product__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-product__image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  color: rgba(23, 54, 99, 0.76);
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 700;
}

.demo-product__image-frame.is-fallback .demo-product__image {
  display: none;
}

.demo-product__image-frame.is-fallback .demo-product__image-fallback {
  display: grid;
}

.demo-product__save.is-saved {
  background: #173663;
  color: #fff;
}

.demo-product__subtitle {
  margin: -6px 0 0;
  color: rgba(20, 35, 61, 0.7);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
}

.demo-product__seller {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.demo-product__text {
  min-height: 3em;
}

.demo-product__tag {
  text-transform: capitalize;
}

.demo-product__btn {
  min-height: 44px;
}

.demo-product--skeleton {
  pointer-events: none;
}

.demo-skeleton {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(227, 235, 245, 0.92), rgba(244, 248, 252, 0.98), rgba(227, 235, 245, 0.92));
  background-size: 220% 100%;
  animation: prototype-demo-shimmer 1.25s linear infinite;
}

.demo-skeleton--line {
  height: 14px;
}

.demo-skeleton--short {
  width: 40%;
}

.demo-skeleton--mid {
  width: 68%;
}

@keyframes prototype-demo-shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -20% 0;
  }
}

.prototype-demo-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.prototype-demo-mini-stat {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(240, 246, 252, 0.96);
  border: 1px solid rgba(15, 27, 51, 0.08);
}

.prototype-demo-mini-stat span {
  display: block;
  color: rgba(20, 35, 61, 0.62);
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prototype-demo-mini-stat strong {
  display: block;
  margin-top: 6px;
  color: #173663;
  font-family: var(--font-ui);
  font-size: 1.02rem;
}

.prototype-demo-substitution-chip {
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(22, 112, 199, 0.08);
  color: #1767b6;
  font-family: var(--font-ui);
  font-size: 0.86rem;
  font-weight: 700;
}

.prototype-demo-basket__controls {
  gap: 8px;
}

.prototype-demo-basket__controls .prototype-demo-linkbtn {
  min-width: 40px;
}

.prototype-demo-toast-region {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  display: grid;
  gap: 10px;
}

.prototype-demo-toast {
  min-width: min(360px, calc(100vw - 28px));
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 27, 51, 0.94);
  color: #fff;
  box-shadow: 0 18px 36px rgba(15, 27, 51, 0.24);
  transform: translateY(8px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}

.prototype-demo-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.prototype-demo-toast--success {
  background: rgba(22, 107, 74, 0.96);
}

.prototype-demo-toast--warning {
  background: rgba(138, 80, 19, 0.96);
}

.prototype-demo-drawer-host {
  position: fixed;
  right: clamp(16px, 2vw, 28px);
  bottom: clamp(16px, 2vw, 28px);
  z-index: 72;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.prototype-demo-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(10, 18, 31, 0.48);
  backdrop-filter: blur(6px);
}

.prototype-demo-drawer,
.prototype-demo-modal {
  position: absolute;
  background: #fff;
  box-shadow: 0 26px 58px rgba(15, 27, 51, 0.24);
}

.prototype-demo-drawer {
  position: relative;
  inset: auto;
  width: 100%;
  max-height: min(72vh, 760px);
  padding: 20px;
  border: 1px solid rgba(15, 27, 51, 0.08);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 60px rgba(15, 27, 51, 0.18), 0 10px 24px rgba(15, 27, 51, 0.12);
  overflow: auto;
  pointer-events: auto;
}

.prototype-demo-modal {
  left: 50%;
  top: 50%;
  width: min(560px, calc(100vw - 24px));
  transform: translate(-50%, -50%);
  border-radius: 24px;
}

.prototype-demo-modal__card {
  padding: 20px;
}

.prototype-demo-drawer__header,
.prototype-demo-modal__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.prototype-demo-drawer__header h3,
.prototype-demo-modal__header h3 {
  margin: 6px 0 0;
}

.prototype-demo-drawer__body,
.prototype-demo-modal__body {
  margin-top: 18px;
  display: grid;
  gap: 16px;
}

.prototype-demo-icon-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(15, 27, 51, 0.08);
  background: rgba(245, 248, 252, 0.96);
  color: #173663;
  font-size: 1.3rem;
}

.prototype-demo-flow-card p,
.prototype-demo-inline-list {
  margin: 8px 0 0;
  color: rgba(20, 35, 61, 0.76);
}

.prototype-demo-flow-steps {
  display: grid;
  gap: 10px;
}

.prototype-demo-flow-steps div {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.prototype-demo-flow-steps span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(22, 112, 199, 0.1);
  color: #1767b6;
  font-family: var(--font-ui);
  font-weight: 700;
}

.prototype-demo-inline-actions,
.prototype-demo-modal__actions {
  margin-top: 8px;
}

.prototype-demo-inline-list {
  padding-left: 18px;
}

body.dark .prototype-storefront__concept-hero,
body.dark .prototype-storefront__service-pill,
body.dark .prototype-storefront__seller-card,
body.dark .prototype-storefront__trust-card,
body.dark .prototype-storefront__preference-card,
body.dark .demo-product__image-frame,
body.dark .prototype-demo-mini-stat,
body.dark .prototype-demo-substitution-chip,
body.dark .prototype-demo-drawer,
body.dark .prototype-demo-modal,
body.dark .prototype-demo-flow-card,
body.dark .prototype-demo-toast--info {
  background: rgba(11, 20, 34, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 249, 239, 0.96);
}

body.dark .prototype-storefront__concept-copy p,
body.dark .prototype-storefront__trust-card p,
body.dark .prototype-storefront__preference-card p,
body.dark .prototype-storefront__seller-copy p,
body.dark .prototype-storefront__seller-chips span,
body.dark .prototype-demo-flow-card p,
body.dark .prototype-demo-inline-list {
  color: rgba(255, 249, 239, 0.74);
}

body.dark .prototype-storefront__concept-metric,
body.dark .prototype-demo-mini-stat {
  background: rgba(18, 30, 48, 0.98);
}

body.dark .prototype-storefront__concept-strip span,
body.dark .prototype-storefront__seller-chips span {
  background: rgba(18, 30, 48, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 249, 239, 0.9);
}

body.dark .prototype-storefront__concept-metric strong,
body.dark .prototype-storefront__trust-card strong,
body.dark .prototype-storefront__preference-card strong,
body.dark .prototype-storefront__seller-copy h4,
body.dark .prototype-demo-mini-stat strong,
body.dark .prototype-demo-modal__header h3,
body.dark .prototype-demo-drawer__header h3 {
  color: rgba(255, 249, 239, 0.96);
}

body.dark .prototype-storefront__concept-metric span,
body.dark .prototype-demo-mini-stat span {
  color: rgba(255, 249, 239, 0.58);
}

body.dark .prototype-demo-substitution-chip {
  color: #f0c26a;
}

body.dark .prototype-demo-icon-close {
  background: rgba(18, 30, 48, 0.98);
  color: rgba(255, 249, 239, 0.96);
}

body.dark .prototype-demo-drawer-host {
  filter: none;
}

body.dark .demo-product__subtitle,
body.dark .demo-product__seller,
body.dark .demo-product__text {
  color: rgba(255, 249, 239, 0.74);
}

body.dark .demo-product__image-fallback,
body.dark .prototype-storefront__seller-badge,
body.dark .prototype-storefront__suggestion-mark {
  color: rgba(255, 249, 239, 0.96);
}

@media (max-width: 1260px) {
  .prototype-storefront__concept-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 980px) {
  .prototype-storefront__trust-points {
    grid-template-columns: 1fr 1fr;
  }

  .prototype-storefront__seller-card {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .prototype-storefront__concept-hero,
  .prototype-storefront__seller-strip {
    padding-inline: 14px;
  }

  .prototype-storefront__concept-mosaic {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .prototype-storefront__concept-tile--large {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 180px;
  }

  .prototype-storefront__trust-points,
  .prototype-storefront__seller-grid,
  .prototype-demo-mini-stats,
  .prototype-demo-flow-steps,
  .prototype-demo-inline-actions,
  .prototype-demo-modal__actions {
    grid-template-columns: 1fr;
    display: grid;
  }

  .prototype-storefront__seller-card {
    grid-template-columns: 1fr;
  }

  .prototype-storefront__category-card {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .prototype-storefront__category-count {
    display: none;
  }

  .prototype-storefront__category-thumb {
    width: 72px;
    height: 64px;
  }

  .prototype-storefront__seller-media {
    min-height: 160px;
  }

  .prototype-demo-toast-region {
    right: 14px;
    left: 14px;
    bottom: 14px;
  }

  .prototype-demo-toast {
    min-width: 0;
  }

  .prototype-demo-drawer-host {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }

  .prototype-demo-drawer {
    max-height: min(76vh, 640px);
  }

  .prototype-demo-modal {
    width: calc(100vw - 24px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prototype-demo-toast,
  .prototype-storefront__service-pill,
  .prototype-storefront__suggestion,
  .demo-skeleton {
    transition: none !important;
    animation: none !important;
  }
}

/* ------------------------------------------------------------------
   Prototype demo retail polish overrides
------------------------------------------------------------------- */
.prototype-demo-page__intro {
  display: grid;
  gap: clamp(18px, 1.8vw, 28px);
}

body[data-view-mode="presentation"].page-prototype-demo .prototype-demo-page__intro {
  display: none;
}

.prototype-demo-page {
  gap: 0;
}

.prototype-storefront__chrome {
  position: sticky;
  top: 0;
  z-index: 22;
  display: grid;
  gap: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 30px rgba(15, 27, 51, 0.08);
}

.prototype-storefront__primary-link,
.prototype-storefront__tab,
.prototype-storefront__ghost-link,
.prototype-storefront__login-btn,
.prototype-storefront__basket-pill,
.prototype-storefront__icon-btn,
.prototype-storefront__service-pill,
.prototype-storefront__nav-card,
.demo-product__image-frame,
.demo-product__title-link {
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.prototype-storefront__primary-link:hover,
.prototype-storefront__tab:hover {
  color: #11579d;
}

.prototype-storefront__actions {
  position: relative;
}

.prototype-storefront__icon-btn,
.prototype-storefront__basket-pill {
  position: relative;
}

.prototype-storefront__icon-count,
.prototype-storefront__basket-count {
  position: absolute;
  top: -4px;
  right: -2px;
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #0f5da7;
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(15, 27, 51, 0.16);
}

.prototype-storefront__basket-count {
  right: auto;
  left: 20px;
}

.prototype-storefront__search-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 2px;
}

.prototype-storefront__search-shortcut {
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(15, 27, 51, 0.08);
  border-radius: 999px;
  background: rgba(244, 248, 252, 0.96);
  color: #173663;
  font: inherit;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 600;
}

.prototype-storefront__search-shortcut:hover,
.prototype-storefront__search-shortcut:focus-visible {
  background: rgba(228, 240, 253, 0.96);
  border-color: rgba(22, 112, 199, 0.2);
}

.prototype-storefront__nav-hub {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 22px 18px;
  border-top: 1px solid rgba(15, 27, 51, 0.06);
  background: linear-gradient(180deg, rgba(249, 252, 255, 0.98), rgba(242, 247, 253, 0.96));
}

.prototype-storefront__nav-hub-copy {
  display: grid;
  gap: 8px;
  align-content: start;
}

.prototype-storefront__nav-hub-copy h3 {
  margin: 0;
  color: #173663;
  font-size: 1.18rem;
  line-height: 1.1;
}

.prototype-storefront__nav-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.prototype-storefront__nav-card {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 140px;
  padding: 16px 18px 18px;
  border: 1px solid rgba(15, 27, 51, 0.08);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.94);
  font: inherit;
  text-align: left;
  box-shadow: 0 14px 28px rgba(15, 27, 51, 0.06);
}

.prototype-storefront__nav-card strong {
  color: #173663;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.14;
}

.prototype-storefront__nav-card p {
  margin: 0;
  color: rgba(20, 35, 61, 0.76);
  font-size: 0.9rem;
  line-height: 1.45;
}

.prototype-storefront__nav-card:hover,
.prototype-storefront__nav-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(22, 112, 199, 0.18);
  box-shadow: 0 18px 34px rgba(15, 27, 51, 0.1);
}

.prototype-storefront__nav-card-arrow {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: #1767b6;
  font-size: 1.05rem;
  font-weight: 700;
}

.prototype-storefront__concept-hero {
  padding-top: 16px;
}

.prototype-storefront__concept-copy h3 {
  max-width: 14ch;
}

.prototype-storefront__concept-copy p {
  max-width: 44ch;
  font-size: 0.98rem;
}

.prototype-storefront__seller-strip {
  padding-top: 10px;
}

.prototype-storefront__headline {
  align-items: center;
}

.prototype-demo-panel__text {
  margin: 0;
  color: rgba(20, 35, 61, 0.72);
  font-size: 0.92rem;
  line-height: 1.45;
}

.demo-product__image-frame,
.demo-product__title-link {
  border: 0;
  background: transparent;
  padding: 0;
  margin: 0;
  text-align: left;
}

.demo-product__image-frame:hover,
.demo-product__image-frame:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 22px 34px rgba(15, 27, 51, 0.14);
}

.demo-product__title-link {
  display: block;
}

.demo-product__title-link:hover .demo-product__title,
.demo-product__title-link:focus-visible .demo-product__title {
  color: #11579d;
}

.prototype-demo-inline-list--cards {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.prototype-demo-inline-list--cards li {
  display: grid;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid rgba(15, 27, 51, 0.08);
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.92);
}

.prototype-demo-inline-list--cards span {
  color: rgba(20, 35, 61, 0.72);
  font-size: 0.9rem;
}

.prototype-demo-product-drawer {
  display: grid;
  gap: 16px;
}

.prototype-demo-product-drawer__media {
  overflow: hidden;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(244, 248, 252, 0.96), rgba(236, 243, 251, 0.96));
  box-shadow: 0 14px 28px rgba(15, 27, 51, 0.08);
}

.prototype-demo-product-drawer__media img {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
}

body.dark .prototype-storefront__chrome {
  background: rgba(11, 20, 34, 0.94);
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.26);
}

body.dark .prototype-storefront__nav-hub,
body.dark .prototype-storefront__nav-card,
body.dark .prototype-storefront__search-shortcut,
body.dark .prototype-demo-inline-list--cards li,
body.dark .prototype-demo-product-drawer__media {
  background: rgba(11, 20, 34, 0.96);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 249, 239, 0.96);
}

body.dark .prototype-storefront__nav-hub-copy h3,
body.dark .prototype-storefront__nav-card strong,
body.dark .demo-product__title-link:hover .demo-product__title,
body.dark .demo-product__title-link:focus-visible .demo-product__title {
  color: rgba(255, 249, 239, 0.96);
}

body.dark .prototype-storefront__nav-card p,
body.dark .prototype-demo-panel__text,
body.dark .prototype-demo-inline-list--cards span {
  color: rgba(255, 249, 239, 0.72);
}

body.dark .prototype-storefront__search-shortcut:hover,
body.dark .prototype-storefront__search-shortcut:focus-visible,
body.dark .prototype-storefront__nav-card:hover,
body.dark .prototype-storefront__nav-card:focus-visible {
  background: rgba(18, 30, 48, 0.98);
}

@media (max-width: 1260px) {
  .prototype-storefront__nav-hub {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .prototype-storefront__nav-hub {
    padding-inline: 16px;
  }

  .prototype-storefront__nav-hub-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .prototype-storefront__chrome {
    position: static;
  }

  .prototype-storefront__icon-count,
  .prototype-storefront__basket-count {
    top: -2px;
  }

  .prototype-demo-product-drawer__media img {
    height: 200px;
  }
}

/* ------------------------------------------------------------------
   Prototype demo white storefront refinement
------------------------------------------------------------------- */
.prototype-demo-app {
  background: #f7f8fa;
  border-color: rgba(15, 27, 51, 0.08);
  box-shadow: 0 20px 48px rgba(15, 27, 51, 0.08);
}

.prototype-storefront {
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 27, 51, 0.08);
}

.prototype-storefront__chrome,
.prototype-storefront__utility,
.prototype-storefront__service-row,
.prototype-storefront__nav-hub,
.prototype-storefront__concept-hero,
.prototype-storefront__promo-stage,
.prototype-storefront__seller-strip {
  background: #ffffff;
}

.prototype-storefront__utility,
.prototype-storefront__masthead,
.prototype-storefront__tabs,
.prototype-storefront__service-row,
.prototype-storefront__nav-hub {
  border-bottom: 1px solid rgba(15, 27, 51, 0.07);
}

.prototype-storefront__nav-hub {
  border-top: 0;
}

.prototype-storefront__menu,
.prototype-storefront__nav-card,
.prototype-storefront__trust-card,
.prototype-storefront__preference-card,
.prototype-storefront__seller-card,
.prototype-storefront__category-card,
.prototype-storefront__categories,
.prototype-storefront__catalog,
.prototype-demo-panel,
.demo-product,
.prototype-demo-drawer,
.prototype-demo-modal,
.prototype-demo-product-drawer__media,
.prototype-demo-inline-list--cards li {
  border-radius: 12px;
}

.prototype-storefront__search input {
  border-radius: 18px;
  background: #f3f5f7;
}

.prototype-storefront__login-btn,
.prototype-storefront__basket-pill,
.prototype-storefront__icon-btn,
.prototype-storefront__service-pill,
.prototype-storefront__search-shortcut,
.prototype-demo-filter,
.prototype-demo-chip,
.prototype-demo-mini-btn,
.prototype-demo-linkbtn,
.demo-product__btn,
.btn,
.btn-secondary {
  border-radius: 12px;
}

.prototype-storefront__service-pill,
.prototype-storefront__search-shortcut,
.prototype-demo-filter,
.prototype-demo-chip,
.prototype-demo-mini-btn {
  min-height: 40px;
  background: #ffffff;
  border-color: rgba(15, 27, 51, 0.1);
  box-shadow: none;
}

.prototype-storefront__service-pill:hover,
.prototype-storefront__service-pill:focus-visible,
.prototype-storefront__service-pill.is-active,
.prototype-storefront__search-shortcut:hover,
.prototype-storefront__search-shortcut:focus-visible,
.prototype-demo-filter:hover,
.prototype-demo-filter:focus-visible,
.prototype-demo-filter.is-active,
.prototype-demo-chip:hover,
.prototype-demo-chip:focus-visible,
.prototype-demo-chip.is-active,
.prototype-demo-mini-btn:hover,
.prototype-demo-mini-btn:focus-visible,
.prototype-demo-mini-btn.is-active {
  background: #eef5fc;
  border-color: rgba(17, 95, 168, 0.2);
  box-shadow: none;
}

.prototype-storefront__nav-card,
.prototype-storefront__trust-card,
.prototype-storefront__preference-card,
.prototype-storefront__seller-card,
.prototype-storefront__category-card,
.prototype-storefront__categories,
.prototype-storefront__catalog,
.prototype-demo-panel,
.demo-product {
  border: 1px solid rgba(15, 27, 51, 0.08);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 27, 51, 0.04);
}

.prototype-storefront__nav-card:hover,
.prototype-storefront__nav-card:focus-visible,
.prototype-storefront__category-card:hover,
.prototype-storefront__category-card:focus-visible,
.demo-product:hover,
.demo-product:focus-within {
  box-shadow: 0 12px 24px rgba(15, 27, 51, 0.07);
}

.prototype-storefront__concept-hero {
  gap: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(15, 27, 51, 0.07);
}

.prototype-storefront__concept-copy h3 {
  max-width: 13ch;
}

.prototype-storefront__concept-strip span,
.prototype-storefront__seller-chips span,
.prototype-demo-substitution-chip,
.prototype-demo-mini-stat,
.prototype-storefront__concept-metric {
  border-radius: 10px;
  background: #f6f8fb;
  box-shadow: none;
}

.prototype-storefront__promo-grid,
.prototype-storefront__editorial-grid,
.prototype-storefront__seller-grid,
.prototype-storefront__category-grid,
.prototype-demo-grid {
  gap: 16px;
}

.prototype-storefront__promo-card,
.prototype-storefront__editorial-card {
  border-radius: 14px;
  box-shadow: none;
}

.prototype-storefront__promo-card::after {
  display: none;
}

.prototype-storefront__promo-media::after {
  background: linear-gradient(180deg, rgba(7, 22, 43, 0.04), rgba(7, 22, 43, 0.34) 52%, rgba(7, 22, 43, 0.66));
}

.prototype-storefront__promo-sticker {
  border-radius: 14px;
}

.prototype-storefront__category-thumb,
.demo-product__image-frame,
.prototype-storefront__seller-media,
.prototype-storefront__concept-tile {
  border-radius: 10px;
}

.demo-product__image-frame {
  background: #f6f8fb;
  box-shadow: none;
}

.demo-product__media {
  min-height: 224px;
  background: #f7f9fc;
}

.demo-product__save {
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(15, 27, 51, 0.08);
}

.demo-product__title-link {
  color: #173663;
}

.demo-product__title-link:hover,
.demo-product__title-link:focus-visible {
  color: #11579d;
}

.prototype-demo-toast {
  border-radius: 12px;
}

body.dark .prototype-demo-app {
  background: linear-gradient(180deg, rgba(12, 20, 34, 0.98), rgba(10, 18, 31, 0.96));
}

body.dark .prototype-storefront {
  background: rgba(11, 20, 34, 0.98);
}

body.dark .prototype-storefront__chrome,
body.dark .prototype-storefront__utility,
body.dark .prototype-storefront__service-row,
body.dark .prototype-storefront__nav-hub,
body.dark .prototype-storefront__concept-hero,
body.dark .prototype-storefront__promo-stage,
body.dark .prototype-storefront__seller-strip {
  background: rgba(11, 20, 34, 0.96);
}

body.dark .prototype-storefront__nav-card,
body.dark .prototype-storefront__trust-card,
body.dark .prototype-storefront__preference-card,
body.dark .prototype-storefront__seller-card,
body.dark .prototype-storefront__category-card,
body.dark .prototype-storefront__categories,
body.dark .prototype-storefront__catalog,
body.dark .prototype-demo-panel,
body.dark .demo-product,
body.dark .prototype-demo-drawer,
body.dark .prototype-demo-modal,
body.dark .prototype-demo-inline-list--cards li {
  background: rgba(13, 22, 38, 0.98);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.prototype-storefront__tabs {
  position: relative;
  gap: 8px;
  overflow: visible;
}

.prototype-storefront__market-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  min-height: 46px;
  margin: 8px 8px 8px 0;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(20, 115, 197, 0.16);
  border-radius: 14px;
  background: linear-gradient(180deg, #f7fbff 0%, #e9f4ff 100%);
  color: #1473c5;
  font-family: var(--font-ui);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.88) inset;
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.prototype-storefront__market-btn:hover,
.prototype-storefront__market-btn:focus-visible,
.prototype-storefront__market-btn.is-active {
  border-color: rgba(20, 115, 197, 0.28);
  background: linear-gradient(180deg, #eef7ff 0%, #dfefff 100%);
  box-shadow: 0 10px 24px rgba(20, 115, 197, 0.12);
}

.prototype-storefront__market-btn:focus-visible {
  outline: none;
  transform: translateY(-1px);
}

.prototype-storefront__market-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #11a1ec;
}

.prototype-storefront__market-icon svg {
  display: block;
  width: 24px;
  height: 24px;
}

.prototype-storefront__market-label {
  white-space: nowrap;
}

.prototype-storefront__market-caret {
  color: rgba(20, 115, 197, 0.82);
  font-size: 0.82rem;
  transition: transform 180ms ease;
}

.prototype-storefront__market-btn[aria-expanded="true"] .prototype-storefront__market-caret {
  transform: rotate(180deg);
}

.prototype-storefront__menu {
  top: calc(100% + 8px);
  left: var(--prototype-menu-left, 12px);
  width: 286px;
  padding: 12px 0;
  border-radius: 20px;
  border: 1px solid rgba(15, 27, 51, 0.1);
  background: #ffffff;
  box-shadow: 0 22px 44px rgba(15, 27, 51, 0.14);
}

.prototype-storefront__menu-list {
  gap: 0;
}

.prototype-storefront__menu-item {
  justify-content: flex-start;
  width: 100%;
  min-height: 58px;
  padding: 0 22px;
  border-top: 1px solid rgba(15, 27, 51, 0.08);
  border-radius: 0;
  color: #0f61ae;
  font-size: 0.98rem;
  font-weight: 600;
}

.prototype-storefront__menu-item:first-child {
  border-top: 0;
}

.prototype-storefront__menu-item:hover,
.prototype-storefront__menu-item.is-active {
  background: #f2f8ff;
  color: #0d5a9f;
}

.prototype-storefront__menu-item--view-all::after {
  content: "›";
  margin-left: auto;
  font-size: 1.15rem;
  font-weight: 700;
}

body.dark .prototype-storefront__market-btn {
  border-color: rgba(93, 174, 255, 0.24);
  background: linear-gradient(180deg, rgba(22, 41, 68, 0.96) 0%, rgba(15, 33, 57, 0.98) 100%);
  color: #79c3ff;
  box-shadow: none;
}

body.dark .prototype-storefront__market-btn:hover,
body.dark .prototype-storefront__market-btn:focus-visible,
body.dark .prototype-storefront__market-btn.is-active {
  border-color: rgba(121, 195, 255, 0.42);
  background: linear-gradient(180deg, rgba(20, 48, 82, 0.98) 0%, rgba(14, 39, 68, 1) 100%);
}

body.dark .prototype-storefront__market-caret {
  color: rgba(121, 195, 255, 0.9);
}

body.dark .prototype-storefront__menu {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(12, 22, 36, 0.98);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.42);
}

body.dark .prototype-storefront__menu-item {
  border-top-color: rgba(255, 255, 255, 0.08);
  color: #a8d7ff;
}

body.dark .prototype-storefront__menu-item:hover,
body.dark .prototype-storefront__menu-item.is-active {
  background: rgba(26, 63, 104, 0.78);
  color: #d8eeff;
}

@media (max-width: 860px) {
  .prototype-storefront__tabs {
    flex-wrap: wrap;
    padding-top: 8px;
    padding-bottom: 10px;
  }

  .prototype-storefront__market-btn {
    margin: 0;
  }

  .prototype-storefront__menu {
    top: calc(100% + 6px);
    left: 0;
    width: min(320px, calc(100vw - 32px));
  }
}
/* Prototype demo interaction polish: visible guidance when buttons trigger a real section update */
.prototype-storefront__seller-card.is-active,
[data-demo-section].is-guided {
  box-shadow: 0 0 0 2px rgba(52, 111, 194, 0.18);
}

[data-demo-section].is-guided {
  transition: box-shadow 180ms ease, background-color 180ms ease, transform 180ms ease;
  background-color: rgba(238, 244, 251, 0.92);
  transform: translateY(-2px);
}

.prototype-demo-note__followup {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(18, 42, 79, 0.12);
  display: grid;
  gap: 0.32rem;
}

.prototype-demo-note__followup strong {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.dark .prototype-storefront__seller-card.is-active,
body.dark [data-demo-section].is-guided {
  box-shadow: 0 0 0 2px rgba(114, 182, 255, 0.3);
}

body.dark [data-demo-section].is-guided {
  background-color: rgba(21, 35, 58, 0.92);
}

body.dark .prototype-demo-note__followup {
  border-top-color: rgba(160, 178, 208, 0.2);
}
