:root {
  --ink: #081957;
  --muted: #58617f;
  --line: #dbe4f3;
  --surface: #ffffff;
  --soft: #f5f8ff;
  --accent: #081957;
  --accent-strong: #081957;
  --accent-soft: #eaf2ff;
  --paper: #ffffff;
  --page: #ffffff;
  --blue: #1268ff;
  --blue-strong: #0052e6;
  --blue-soft: #eaf2ff;
  --teal: #081957;
  --teal-deep: #081957;
  --shadow: 0 18px 40px rgba(8, 25, 87, 0.08);
  --shadow-soft: 0 10px 24px rgba(8, 25, 87, 0.06);
}

/* Runtime design tokens controlled by the admin site studio. */
:root {
  --site-primary: #0b5cff;
  --site-ink: #141922;
  --site-page: #ffffff;
  --site-surface: #ffffff;
  --site-radius: 8px;
  --site-content-width: 1480px;
  --site-product-columns-desktop: 4;
  --site-product-columns-mobile: 2;
  --site-home-gap: 18px;
  --site-font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
}

body {
  color: var(--site-ink);
  font-family: var(--site-font-family);
  background: var(--site-page);
}

html.native-app body {
  min-height: 100dvh;
  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

@media (display-mode: standalone) {
  body {
    min-height: 100dvh;
    padding-top: env(safe-area-inset-top);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
    padding-left: env(safe-area-inset-left);
  }
}

[data-site-text="homeDetails"],
[data-site-text="bathHeroTitle"] {
  white-space: pre-line;
}

.site-menu-hidden {
  display: none !important;
}

.square-main-home {
  max-width: var(--site-content-width);
}

.square-main-grid {
  gap: var(--site-home-gap);
}

.square-main-tile,
.bath-editorial-hero,
.tile-search-stage {
  border-radius: var(--site-radius);
}

.square-main-blue,
.tile-search-submit,
body.customer-experience-mode[data-page="productsPage"] .product-page-list .product-card [data-add-product],
body[data-page="productsPage"] .product-page-list .product-card [data-add-product],
.bath-editorial-categories button:hover,
.bath-editorial-categories button.is-active {
  border-color: var(--site-primary) !important;
  background: var(--site-primary) !important;
}

.tile-search-stage,
.square-main-dark {
  background: var(--site-ink) !important;
}

body[data-page="productsPage"] .customer-products-page,
body[data-page="bathProductsPage"] .bath-products-page {
  width: min(var(--site-content-width), calc(100% - 42px));
}

body.customer-experience-mode[data-page="productsPage"] .product-page-list,
body[data-page="productsPage"] .product-list.product-page-list,
body[data-page="productsPage"] .product-page-slide-panel {
  grid-template-columns: repeat(var(--site-product-columns-desktop), minmax(0, 1fr)) !important;
}

body.site-font-compact {
  font-size: 18px;
}

body.site-font-default {
  font-size: 20.8px;
}

body.site-font-large {
  font-size: 22px;
}

body.site-font-compact .tile-search-stage .catalog-toolbar-copy h3 {
  font-size: 37px;
}

body.site-font-large .tile-search-stage .catalog-toolbar-copy h3 {
  font-size: 47px;
}

body.site-font-compact .bath-editorial-overlay h3 {
  font-size: 44px;
}

body.site-font-large .bath-editorial-overlay h3 {
  font-size: 56px;
}

/* Operations and design studio */
.site-studio-page {
  max-width: 1640px;
  padding-bottom: 110px;
}

.site-studio-heading {
  align-items: flex-end;
  margin-bottom: 14px;
  padding: 30px 32px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: none;
}

.site-studio-heading > div:first-child {
  max-width: 820px;
}

.site-studio-heading h2 {
  margin-bottom: 8px;
  color: #141922;
  font-size: clamp(32px, 3vw, 48px);
}

.site-studio-heading > div > p:last-child {
  margin: 0;
  color: #65707b;
  font-size: 15px;
  line-height: 1.7;
}

.site-studio-command {
  min-height: 240px;
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(480px, 1.2fr);
  align-items: end;
  gap: 40px;
  border-radius: 8px;
  color: #ffffff;
  background: #141922;
}

.site-studio-command .eyebrow {
  color: #78a1ff;
}

.site-studio-command h3 {
  max-width: 620px;
  margin: 7px 0 12px;
  color: #ffffff;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.08;
}

.site-studio-command p:last-child {
  max-width: 620px;
  margin: 0;
  color: #b9c2cb;
  font-size: 14px;
  line-height: 1.7;
}

.site-studio-command-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.site-studio-command-actions button {
  min-height: 58px;
  padding: 0 14px;
  border: 1px solid rgb(255 255 255 / 19%);
  border-radius: 6px;
  color: #ffffff;
  background: rgb(255 255 255 / 7%);
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}

.site-studio-command-actions button:hover {
  border-color: #6f98ff;
  background: #0b5cff;
}

.site-studio-ops-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #dfe4ea;
  border-left: 1px solid #dfe4ea;
}

.site-studio-ops-summary article {
  min-height: 112px;
  padding: 22px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  border-top: 1px solid #dfe4ea;
  border-right: 1px solid #dfe4ea;
  background: #ffffff;
}

.site-studio-ops-summary span {
  color: #69747f;
  font-size: 12px;
  font-weight: 800;
}

.site-studio-ops-summary strong {
  color: #141922;
  font-size: 28px;
}

.site-studio-workspace {
  position: relative;
  margin-top: 28px;
  display: grid;
  grid-template-columns: 168px minmax(520px, 1fr) minmax(340px, 420px);
  align-items: start;
  gap: 20px;
}

.site-studio-sidebar,
.site-studio-preview-panel {
  position: sticky;
  top: 16px;
}

.site-studio-sidebar {
  padding: 16px 0;
  display: grid;
  gap: 2px;
  border-top: 2px solid #141922;
}

.site-studio-sidebar > strong {
  padding: 8px 10px 14px;
  color: #141922;
  font-size: 13px;
}

.site-studio-sidebar button {
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 4px;
  color: #53606c;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.site-studio-sidebar button:hover {
  color: #ffffff;
  background: #141922;
}

.site-studio-sidebar hr {
  width: 100%;
  margin: 10px 0;
  border: 0;
  border-top: 1px solid #dfe4ea;
}

.site-studio-editor {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.site-studio-editor-section {
  scroll-margin-top: 16px;
  padding: 26px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #ffffff;
}

.site-studio-editor-section > header {
  margin-bottom: 22px;
  padding-bottom: 18px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid #e5e9ed;
}

.site-studio-editor-section h3,
.site-studio-preview-head h3 {
  margin: 3px 0 0;
  color: #141922;
  font-size: 24px;
}

.site-studio-editor-section > header > p {
  max-width: 360px;
  margin: 0;
  color: #6b7681;
  font-size: 12px;
  line-height: 1.6;
  text-align: right;
}

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

.site-studio-form-grid > label,
.site-studio-text-field,
.site-studio-range-field {
  min-width: 0;
  display: grid;
  gap: 8px;
  color: #26313c;
  font-size: 12px;
  font-weight: 850;
}

.site-studio-form-grid select,
.site-studio-form-grid input[type="text"],
.site-studio-text-field input,
.site-studio-text-field textarea,
.site-studio-image-row input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d5dce2;
  border-radius: 5px;
  color: #141922;
  background: #f8fafb;
  font: inherit;
  font-size: 13px;
}

.site-studio-text-field textarea {
  min-height: 72px;
  resize: vertical;
}

.site-studio-color-control {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
}

.site-studio-color-control input[type="color"] {
  width: 48px;
  height: 44px;
  padding: 3px;
  border: 1px solid #d5dce2;
  border-radius: 5px;
  background: #ffffff;
}

.site-studio-text-list {
  display: grid;
  gap: 10px;
}

.site-studio-text-field {
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: start;
}

.site-studio-text-field > span {
  padding-top: 11px;
  display: grid;
  gap: 3px;
}

.site-studio-text-field small {
  color: #0b5cff;
  font-size: 9px;
  text-transform: uppercase;
}

.site-studio-image-list {
  display: grid;
  gap: 12px;
}

.site-studio-image-row {
  min-width: 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border: 1px solid #e1e6ea;
  border-radius: 6px;
  background: #fbfcfd;
}

.site-studio-image-row > img {
  width: 88px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  background: #edf0f2;
}

.site-studio-image-row > div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.site-studio-image-row strong {
  color: #141922;
  font-size: 13px;
}

.site-studio-image-row small {
  color: #7a848e;
  font-size: 10px;
}

.site-studio-file-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 11px;
}

.site-studio-file-button input {
  display: none;
}

.site-studio-layout-list {
  display: grid;
  gap: 20px;
}

.site-studio-range-field > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-studio-range-field b {
  color: #0b5cff;
}

.site-studio-range-field input[type="range"] {
  width: 100%;
  accent-color: #0b5cff;
}

.site-studio-menu-list {
  display: grid;
  border-top: 1px solid #dfe4e8;
}

.site-studio-menu-row {
  min-height: 58px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 84px 70px;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #dfe4e8;
}

.site-studio-menu-row > span {
  color: #89939d;
  font-size: 10px;
  font-weight: 900;
}

.site-studio-menu-row > input {
  min-width: 0;
  height: 38px;
  padding: 0 10px;
  border: 1px solid #d6dde3;
  border-radius: 4px;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.site-studio-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #53606c;
  font-size: 11px;
  font-weight: 800;
}

.site-studio-toggle input {
  accent-color: #0b5cff;
}

.site-studio-menu-row > div {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

.site-studio-menu-row > div button {
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #d6dde3;
  border-radius: 4px;
  color: #141922;
  background: #ffffff;
  font-size: 14px;
}

.site-studio-preview-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #ffffff;
}

.site-studio-preview-head {
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.site-studio-preview-head select {
  min-width: 92px;
  height: 38px;
  border: 1px solid #d5dce2;
  border-radius: 5px;
  background: #f8fafb;
  font-size: 11px;
}

.site-studio-live-preview {
  min-height: 500px;
  overflow: hidden;
  border: 1px solid #cad2d9;
  border-radius: 6px;
  background: #eef1f4;
}

.site-studio-preview-shell {
  min-height: 500px;
  padding: 12px;
  color: var(--preview-ink);
  background: var(--preview-page);
}

.site-studio-preview-shell > nav {
  min-height: 38px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  border-bottom: 1px solid #dde2e6;
  color: #5d6873;
  font-size: 8px;
  font-weight: 800;
  white-space: nowrap;
}

.site-studio-preview-home {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.site-studio-preview-home article {
  min-height: 128px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid #e0e4e7;
  border-radius: var(--preview-radius);
  background: var(--preview-surface);
}

.site-studio-preview-home article:first-child {
  grid-column: span 2;
  justify-content: center;
}

.site-studio-preview-home h4 {
  margin: 0 0 6px;
  font-size: 28px;
}

.site-studio-preview-home p {
  margin: 0;
  color: #6d7780;
  font-size: 10px;
}

.site-studio-preview-home strong {
  font-size: 14px;
}

.site-studio-preview-home small {
  margin-top: 4px;
  font-size: 8px;
}

.site-studio-preview-home .is-dark {
  color: #ffffff;
  background: var(--preview-ink);
}

.site-studio-preview-home .is-primary {
  color: #ffffff;
  background: var(--preview-primary);
}

.site-studio-preview-home .has-image {
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.site-studio-preview-tile-hero {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: var(--preview-radius);
  color: #ffffff;
  background: var(--preview-ink);
}

.site-studio-preview-tile-hero > small {
  color: #8bacff;
  font-size: 8px;
  font-weight: 900;
}

.site-studio-preview-tile-hero h4,
.site-studio-preview-bath-hero h4 {
  margin: 7px 0;
  font-size: 24px;
  line-height: 1.1;
}

.site-studio-preview-tile-hero p,
.site-studio-preview-bath-hero p {
  margin: 0 0 14px;
  font-size: 9px;
  line-height: 1.5;
}

.site-studio-preview-tile-hero > div {
  min-height: 40px;
  padding-left: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  color: #66717b;
  background: #ffffff;
  font-size: 8px;
}

.site-studio-preview-tile-hero button {
  align-self: stretch;
  width: 56px;
  border: 0;
  border-radius: 0 4px 4px 0;
  color: #ffffff;
  background: var(--preview-primary);
  font-size: 8px;
}

.site-studio-preview-products {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.site-studio-preview-products article {
  display: grid;
  gap: 4px;
  font-size: 9px;
}

.site-studio-preview-products i {
  aspect-ratio: 1;
  border-radius: 4px;
  background: linear-gradient(135deg, #e9e4dc, #b9b5af);
}

.site-studio-preview-products small {
  color: #77818a;
  font-size: 7px;
}

.site-studio-preview-bath-hero {
  min-height: 280px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: var(--preview-radius);
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.site-studio-preview-bath-hero > small {
  color: #b5cbff;
  font-size: 8px;
  font-weight: 900;
}

.site-studio-preview-bath-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-studio-preview-bath-categories span {
  min-height: 72px;
  padding: 12px;
  display: flex;
  align-items: flex-end;
  border-right: 1px solid #dfe4e8;
  border-bottom: 1px solid #dfe4e8;
  font-size: 10px;
  font-weight: 900;
}

.site-studio-draft-state {
  margin-top: 12px;
  padding: 10px;
  border-radius: 4px;
  color: #53606c;
  background: #f2f5f7;
  font-size: 10px;
  font-weight: 800;
}

.site-studio-draft-state.is-dirty {
  color: #7c4d00;
  background: #fff3d7;
}

.site-studio-savebar {
  position: sticky;
  bottom: 12px;
  z-index: 20;
  margin-top: 22px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #cfd7de;
  border-radius: 8px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 12px 36px rgb(20 25 34 / 14%);
  backdrop-filter: blur(14px);
}

.site-studio-savebar > div:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-studio-savebar strong {
  white-space: nowrap;
  color: #141922;
  font-size: 12px;
}

.site-studio-savebar .signup-status-bar {
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #66717b;
  background: transparent;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-studio-savebar > div:last-child {
  display: flex;
  gap: 7px;
}

@media (max-width: 1280px) {
  .site-studio-workspace {
    grid-template-columns: 150px minmax(480px, 1fr);
  }

  .site-studio-preview-panel {
    position: static;
    grid-column: 2;
  }

  .site-studio-command {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.customer-experience-mode[data-page="productsPage"] .product-page-list,
  body[data-page="productsPage"] .product-list.product-page-list,
  body[data-page="productsPage"] .product-page-slide-panel {
    grid-template-columns: repeat(var(--site-product-columns-mobile), minmax(0, 1fr)) !important;
  }

  .site-studio-page {
    width: 100%;
    padding-bottom: 100px;
  }

  .site-studio-heading {
    align-items: stretch;
    padding: 22px 16px;
  }

  .site-studio-heading .detail-actions {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .site-studio-command {
    min-height: 0;
    padding: 24px 16px;
    gap: 22px;
    border-radius: 0;
  }

  .site-studio-command h3 {
    font-size: 31px;
  }

  .site-studio-command-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-studio-ops-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-studio-workspace {
    margin-top: 16px;
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-studio-sidebar {
    position: static;
    padding: 10px 14px;
    display: flex;
    overflow-x: auto;
    border-top: 0;
    border-bottom: 1px solid #dfe4ea;
  }

  .site-studio-sidebar > strong,
  .site-studio-sidebar hr {
    display: none;
  }

  .site-studio-sidebar button {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .site-studio-editor-section {
    padding: 18px 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .site-studio-editor-section > header {
    align-items: start;
    flex-direction: column;
    gap: 8px;
  }

  .site-studio-editor-section > header > p {
    text-align: left;
  }

  .site-studio-form-grid {
    grid-template-columns: 1fr;
  }

  .site-studio-text-field {
    grid-template-columns: 1fr;
  }

  .site-studio-text-field > span {
    padding-top: 0;
  }

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

  .site-studio-image-row > img {
    width: 72px;
    height: 64px;
  }

  .site-studio-file-button {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .site-studio-menu-row {
    grid-template-columns: 28px minmax(0, 1fr) 70px;
  }

  .site-studio-menu-row > div {
    grid-column: 2 / -1;
    padding-bottom: 8px;
  }

  .site-studio-preview-panel {
    grid-column: 1;
    margin: 0 14px;
  }

  .site-studio-savebar {
    right: 10px;
    bottom: 92px;
    left: 10px;
    margin: 16px 10px 0;
    align-items: stretch;
    flex-direction: column;
  }

  .site-studio-savebar > div:first-child {
    align-items: start;
    flex-direction: column;
  }

  .site-studio-savebar > div:last-child {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* TileGO / BathGO catalog split */
body.customer-experience-mode .customer-nav-group {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.bath-catalog-panel {
  display: grid;
  gap: 24px;
}

.bath-catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.bath-catalog-heading h3,
.bath-subcategory-head h3 {
  margin: 0;
  color: #081957;
}

.bath-catalog-heading > p {
  max-width: 620px;
  margin: 0;
  color: #596579;
  line-height: 1.7;
}

.bath-category-tabs {
  display: flex;
  align-items: stretch;
  gap: 26px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 2px;
  border-bottom: 1px solid #dfe5ef;
  scrollbar-width: thin;
}

.bath-category-tab {
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 48px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: #4d596c;
  background: transparent;
  font-weight: 900;
}

.bath-category-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: transparent;
  content: "";
}

.bath-category-tab small {
  color: #8893a5;
  font-size: 14.3px;
}

.bath-category-tab:hover,
.bath-category-tab.is-active {
  color: #081957;
  background: transparent;
  box-shadow: none;
}

.bath-category-tab.is-active::after {
  background: #1857f2;
}

.bath-category-tab.is-active small {
  color: #1857f2;
}

.bath-subcategory-band {
  display: grid;
  gap: 16px;
  padding: 22px 0 4px;
}

.bath-subcategory-head {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.bath-subcategory-head span {
  color: #687386;
  font-size: 16.9px;
}

.bath-subcategory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid #e5e7eb;
  border-left: 1px solid #e5e7eb;
}

.bath-subcategory-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-right: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  border-radius: 0;
  color: #263249;
  background: #fff;
  text-align: left;
}

.bath-subcategory-button small {
  color: #8b95a5;
}

.bath-subcategory-button:hover,
.bath-subcategory-button.is-active {
  color: #081957;
  background: #f3f6ff;
  box-shadow: inset 3px 0 0 #1857f2;
}

.bath-subcategory-button.is-active small {
  color: #1857f2;
}

.bath-subcategory-empty {
  grid-column: 1 / -1;
  padding: 16px 0;
  color: #7a8597;
}

.bath-filter-grid {
  grid-template-columns: minmax(180px, 0.35fr) minmax(280px, 1fr);
}

.bath-product-list {
  min-height: 360px;
}

@media (max-width: 860px) {
  body.customer-experience-mode .customer-nav-group {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

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

@media (max-width: 720px) {
  .bath-catalog-panel {
    gap: 18px;
  }

  .bath-catalog-heading {
    display: grid;
    gap: 10px;
    padding-bottom: 16px;
  }

  .bath-category-tabs {
    gap: 22px;
    margin-right: -14px;
    margin-left: -14px;
    padding: 0 14px;
  }

  .bath-category-tab {
    min-height: 44px;
  }

  .bath-subcategory-band {
    padding-top: 10px;
  }

  .bath-subcategory-head {
    display: grid;
    gap: 4px;
  }

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

  .bath-subcategory-button {
    min-height: 50px;
    padding: 9px 10px;
    font-size: 15.6px;
  }

  .bath-filter-grid {
    grid-template-columns: 1fr;
  }
}

.sample-product-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 18px 0;
}

body.customer-experience-mode .sample-product-toolbar label,
.sample-product-toolbar label {
  display: grid !important;
  min-width: min(420px, 100%);
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

.sample-product-toolbar input {
  width: 100%;
  min-height: 44px;
}

.sample-product-toolbar strong {
  color: var(--muted);
  text-align: right;
}

@media (max-width: 720px) {
  .sample-product-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .sample-product-toolbar label {
    min-width: 0;
  }

  .sample-product-toolbar strong {
    text-align: left;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-size: 20.8px;
  font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  background: var(--page);
}

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

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  padding: 20px 24px 48px;
}

.topbar,
.app-nav,
.page-panel,
.workspace {
  max-width: 1320px;
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  padding: 18px 20px;
  border: 1px solid rgba(8, 25, 87, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

.topbar h1,
.page-heading h2,
.hero-panel h2,
.panel-heading h2,
.doc-brand h2 {
  margin: 0;
  letter-spacing: 0;
}

.topbar h1 {
  font-size: clamp(2.6rem, 3.9vw, 3.64rem);
  line-height: 1.08;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent-strong);
  font-size: 15.6px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.top-actions,
.document-tabs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.server-status-pill {
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafc;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
}

.server-status-pill.online {
  border-color: rgba(18, 104, 255, 0.24);
  background: var(--blue-soft);
  color: #081957;
}

.server-status-pill.offline {
  border-color: #ebc8c8;
  background: #fff1f1;
  color: #b74b4b;
}

.auth-actions,
.auth-session {
  display: flex;
  align-items: center;
  gap: 8px;
}

body:not(.admin-authenticated) .admin-only {
  display: none !important;
}

.auth-badge {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  background: #fff;
  font-size: 16.9px;
  font-weight: 900;
}

.icon-button,
.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.icon-button {
  width: 44px;
}

.primary-action {
  gap: 8px;
  padding: 0 18px;
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(135deg, #081957 0%, #1268ff 100%);
  box-shadow: 0 12px 24px rgba(18, 104, 255, 0.22);
}

.secondary-action {
  padding: 0 14px;
  color: var(--accent-strong);
  background: #fff;
}

.icon-button:hover,
.primary-action:hover,
.secondary-action:hover,
.category-card:hover,
.product-card:hover,
.social-signup-button:hover,
.flow-card:hover,
.highlight-card:hover {
  transform: translateY(-1px);
}

.primary-action:hover {
  box-shadow: 0 16px 28px rgba(18, 104, 255, 0.28);
}

.secondary-action:hover,
.icon-button:hover {
  border-color: #cdd5df;
  box-shadow: var(--shadow-soft);
}

svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid rgba(8, 25, 87, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-soft);
  scrollbar-width: none;
}

.app-nav::-webkit-scrollbar {
  display: none;
}

.app-nav button {
  flex: 1 0 0;
  min-width: max-content;
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  white-space: nowrap;
}

.app-nav button.active {
  color: #fff;
  background: #081957;
}

.app-nav span {
  display: inline-flex;
  justify-content: center;
  min-width: 24px;
  margin-left: 5px;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
}

.app-page {
  display: none;
}

.app-page.active {
  display: grid;
}

.page-panel {
  gap: 20px;
}

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

.hero-panel,
.page-heading,
.commerce-panel,
.input-panel,
.preview-panel {
  border: 1px solid rgba(217, 225, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-soft);
}

.hero-panel,
.page-heading,
.commerce-panel,
.input-panel,
.preview-panel {
  padding: 24px;
}

.hero-panel-shell {
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: stretch;
}

.hero-copy {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-panel h2 {
  max-width: 820px;
  font-size: clamp(2.86rem, 5.2vw, 4.42rem);
  line-height: 1.1;
}

.hero-copy > p:last-of-type {
  max-width: 720px;
  color: var(--muted);
  font-size: 20.8px;
  line-height: 1.75;
}

.hero-actions,
.hero-inline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-inline-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d8f3ee;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 15.6px;
  font-weight: 800;
}

.hero-highlights {
  display: grid;
  gap: 12px;
  padding: 6px;
  border-radius: 8px;
  background: linear-gradient(180deg, #f9fffd 0%, #f7fbff 100%);
}

.member-home-board {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(8, 25, 87, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.member-board-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.member-board-head h3 {
  margin: 0;
  color: #081957;
  font-size: 31.2px;
}

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

.member-board-card {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 18px;
  border: 1px solid rgba(8, 25, 87, 0.12);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  color: #081957;
  text-align: left;
  cursor: pointer;
}

.member-board-card:hover {
  border-color: rgba(20, 101, 255, 0.38);
  box-shadow: 0 14px 30px rgba(8, 25, 87, 0.1);
}

.member-board-card span {
  color: #1465ff;
  font-size: 15.6px;
  font-weight: 900;
}

.member-board-card strong {
  font-size: 31.2px;
  line-height: 1.15;
}

.member-board-card small {
  color: var(--muted);
  font-size: 16.9px;
  line-height: 1.45;
}

.manual-business-toggle-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(8, 25, 87, 0.1);
  border-radius: 8px;
  background: #f7faff;
}

.manual-business-toggle-row span {
  color: var(--muted);
  font-size: 16.9px;
}

.manual-business-input-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(20, 101, 255, 0.18);
  border-radius: 8px;
  background: #fff;
}

.highlight-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.highlight-card span,
.catalog-summary-card span {
  color: var(--accent-strong);
  font-size: 15.6px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.highlight-card strong,
.flow-card strong,
.catalog-summary-card strong {
  font-size: 23.4px;
  line-height: 1.35;
}

.highlight-card p,
.catalog-summary-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18.2px;
  line-height: 1.65;
}

.server-control-panel {
  padding: 22px 24px;
  border: 1px solid rgba(217, 225, 232, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-soft);
}

.server-control-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.server-control-header h3 {
  margin: 0;
  font-size: 31.2px;
}

.server-control-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

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

.category-card {
  min-height: 180px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.category-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 14px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 14.3px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.category-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 36.4px;
}

.category-card > span:not(.category-kicker) {
  color: var(--muted);
  line-height: 1.65;
}

.home-section {
  display: grid;
  gap: 16px;
}

.home-flow-section {
  padding: 24px;
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-soft);
}

.section-header-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.section-header-inline h3,
.catalog-toolbar-copy h3 {
  margin: 0;
  font-size: 36.4px;
  line-height: 1.2;
}

.section-header-inline p:last-child,
.catalog-toolbar-copy p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

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

.flow-card {
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fafcfe 100%);
  box-shadow: var(--shadow-soft);
}

.flow-card span {
  color: var(--muted);
  font-size: 18.2px;
  line-height: 1.7;
}

.page-heading h2,
.panel-heading h2,
.doc-brand h2,
.cart-heading strong {
  font-size: 39px;
  line-height: 1.2;
}

.page-heading,
.panel-heading,
.doc-brand,
.cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-admin-editor {
  display: grid;
  gap: 14px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.compact-panel-heading {
  margin-bottom: 0;
}

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

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

.planner-layout {
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}

.planner-control-panel,
.planner-stage-panel {
  min-width: 0;
}

body[data-page="plannerPage"] .planner-stage-panel {
  display: flex;
  flex-direction: column;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="plannerPage"] .planner-graphic-preview-toolbar,
body[data-page="plannerPage"] .planner-canvas-mount {
  display: none;
}

body[data-page="plannerPage"] #plannerResetCameraBtn {
  display: none;
}

.planner-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.planner-field-grid .wide {
  grid-column: 1 / -1;
}

.planner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.planner-actions.compact-actions {
  margin-top: 0;
}

.planner-actions .active {
  border-color: rgba(0, 168, 150, 0.55);
  background: rgba(0, 168, 150, 0.12);
  color: var(--text);
}

.planner-plan-tool {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.planner-surface-guide {
  display: grid;
  gap: 10px;
}

.planner-plan-mobile-note {
  display: none;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 16.9px;
  line-height: 1.5;
}

.planner-plan-heading {
  display: grid;
  gap: 3px;
}

.planner-plan-heading strong {
  font-size: 19.5px;
}

.planner-plan-heading span {
  color: var(--muted);
  font-size: 16.9px;
  line-height: 1.5;
}

.planner-panorama-source {
  display: inline-flex;
  width: fit-content;
  margin-top: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--accent-strong);
  font-size: 15.6px;
  font-weight: 900;
}

.planner-plan-canvas-wrap {
  overflow: hidden;
  border: 1px solid rgba(35, 31, 26, 0.12);
  border-radius: 8px;
  background: #f5f1ea;
}

#plannerPlanCanvas,
#plannerSurfaceGuideCanvas {
  display: block;
  width: 100%;
  height: auto;
  min-height: 220px;
}

#plannerPlanCanvas {
  cursor: crosshair;
}

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

.planner-summary div {
  border: 1px solid rgba(35, 31, 26, 0.12);
  border-radius: 8px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.68);
}

.planner-summary span,
.planner-stage-toolbar span,
.planner-product-chip span,
.planner-empty-note {
  color: var(--muted);
  font-size: 16.9px;
}

.planner-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 23.4px;
}

.planner-cart-products {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.planner-product-chip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(35, 31, 26, 0.1);
  border-radius: 8px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.planner-product-chip img,
.planner-product-empty {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #ded8cc;
}

.planner-product-chip strong,
.planner-product-chip span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-stage-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.planner-stage-toolbar strong,
.planner-stage-toolbar span {
  display: block;
}

.planner-canvas-mount {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(35, 31, 26, 0.12);
  border-radius: 8px;
  background: #f5f1ea;
}

body[data-page="plannerPage"] .planner-canvas-mount {
  min-height: clamp(560px, 68vh, 780px);
  border: 0;
  border-radius: 0;
  background: #e9eee5;
}

.planner-canvas-mount canvas {
  display: block;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
}

.planner-canvas-mount canvas:active {
  cursor: grabbing;
}

.planner-canvas-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.planner-real-render {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

body[data-page="plannerPage"] .planner-real-render {
  order: -1;
  margin-top: 0;
  margin-bottom: 16px;
}

.planner-panorama-viewer {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.planner-panorama-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.planner-panorama-actions .secondary-action {
  min-height: 36px;
  padding-inline: 14px;
}

.planner-panorama-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101614;
  aspect-ratio: 16 / 9;
  min-height: 300px;
}

#plannerPanoramaCanvas {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  cursor: grab;
  touch-action: none;
}

#plannerPanoramaCanvas:active {
  cursor: grabbing;
}

.planner-panorama-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, rgba(247, 243, 236, 0.94), rgba(228, 235, 238, 0.94));
  color: var(--muted);
  font-size: 18.2px;
  font-weight: 900;
  text-align: center;
}

#plannerRealRenderDownload {
  color: var(--accent);
  font-weight: 800;
  text-decoration: none;
}

/* Image-first tile preview workspace */
body[data-page="plannerPage"] .planner-photo-heading {
  align-items: end;
  margin-bottom: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid #dfe4ea;
}

body[data-page="plannerPage"] .planner-photo-heading h2 {
  margin-bottom: 8px;
}

body[data-page="plannerPage"] .planner-photo-heading p:last-child {
  max-width: 720px;
  margin: 0;
  color: #65707b;
  font-size: 16px;
}

.planner-photo-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
  border-top: 1px solid #dfe4ea;
  border-bottom: 1px solid #dfe4ea;
  background: #ffffff;
}

.planner-photo-progress > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: 0 18px;
  border-right: 1px solid #e8ebee;
  color: #68727d;
}

.planner-photo-progress > div:last-child {
  border-right: 0;
}

.planner-photo-progress span,
.planner-photo-section-heading span,
.planner-photo-result-heading > div > span {
  color: #1465ff;
  font-size: 12px;
  font-weight: 900;
}

.planner-photo-progress strong {
  color: #141922;
  font-size: 15px;
}

.planner-photo-progress .active {
  background: #f4f7ff;
}

.planner-photo-shell {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(520px, 1.08fr);
  gap: 22px;
  align-items: start;
}

.planner-photo-controls,
.planner-photo-result-panel {
  min-width: 0;
  border: 1px solid #dfe4ea;
  border-radius: 8px;
  background: #ffffff;
}

.planner-photo-controls {
  overflow: hidden;
}

.planner-photo-section {
  display: grid;
  gap: 16px;
  padding: 24px;
  border-bottom: 1px solid #e7eaed;
}

.planner-photo-section:last-child {
  border-bottom: 0;
}

.planner-photo-section-heading,
.planner-photo-result-heading,
.planner-photo-result-heading > div,
.planner-photo-section-heading > div {
  display: flex;
  align-items: center;
}

.planner-photo-section-heading,
.planner-photo-result-heading {
  justify-content: space-between;
  gap: 16px;
}

.planner-photo-section-heading > div,
.planner-photo-result-heading > div {
  gap: 10px;
}

.planner-photo-section-heading strong,
.planner-photo-result-heading strong {
  color: #141922;
  font-size: 19px;
}

.planner-photo-section-heading small,
.planner-photo-result-heading small {
  color: #78818b;
  font-size: 12px;
}

.planner-photo-upload-zone {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  min-height: 112px;
  padding: 22px;
  border: 1px dashed #aeb8c3;
  border-radius: 8px;
  background: #f8fafc;
  color: #65707b;
  text-align: center;
  cursor: pointer;
}

.planner-photo-upload-zone:hover {
  border-color: #1465ff;
  background: #f3f6ff;
}

.planner-photo-upload-zone input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.planner-photo-upload-zone strong {
  color: #081957;
  font-size: 17px;
}

.planner-photo-upload-zone span {
  font-size: 13px;
}

.planner-photo-canvas-wrap {
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background: #eef1f4;
}

body[data-page="plannerPage"] #plannerSurfaceGuideCanvas {
  display: block;
  width: 100%;
  min-height: 0;
  background: #eef1f4;
}

.planner-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #1465ff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.planner-photo-selection-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.planner-photo-selection-grid .wide {
  grid-column: 1 / -1;
}

.planner-photo-selection-grid label {
  display: grid;
  gap: 7px;
  color: #59636e;
  font-size: 13px;
  font-weight: 800;
}

.planner-photo-selection-grid select {
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid #d4dae0;
  border-radius: 6px;
  background: #ffffff;
  color: #141922;
  font: inherit;
}

.planner-photo-controls .planner-cart-products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.planner-photo-controls .planner-product-chip {
  position: relative;
  grid-template-columns: 46px minmax(0, 1fr);
  min-width: 0;
  border-color: #e0e4e8;
  background: #ffffff;
}

.planner-photo-controls .planner-product-chip.is-selected {
  border-color: #1465ff;
  box-shadow: inset 0 0 0 1px #1465ff;
}

.planner-photo-controls .planner-product-chip em {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 3px 6px;
  border-radius: 4px;
  background: #081957;
  color: #ffffff;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}

.planner-cart-auto-button {
  width: 100%;
}

.planner-photo-surface-actions,
.planner-photo-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.planner-photo-surface-actions .secondary-action {
  flex: 1 1 110px;
}

.planner-photo-status-section {
  background: #f8fafc;
}

body[data-page="plannerPage"] .planner-summary {
  margin: 0;
}

body[data-page="plannerPage"] .planner-summary div {
  min-width: 0;
  border-color: #e0e4e8;
  background: #ffffff;
}

body[data-page="plannerPage"] .planner-summary strong {
  overflow: hidden;
  color: #141922;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.planner-photo-status {
  min-height: 42px;
  padding: 12px 14px;
  border-left: 3px solid #1465ff;
  background: #eef4ff;
  color: #35404c;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

.planner-photo-result-panel {
  position: sticky;
  top: 16px;
  display: grid;
  gap: 16px;
  padding: 24px;
}

.planner-photo-result-heading > div > div {
  display: grid;
  gap: 3px;
}

.planner-photo-result-heading a {
  color: #1465ff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

body[data-page="plannerPage"] .planner-photo-result {
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border: 0;
  background: #eef1f4;
}

body[data-page="plannerPage"] .planner-photo-result.has-comparison {
  aspect-ratio: auto;
  padding: 0;
  background: #ffffff;
}

body[data-page="plannerPage"] .planner-photo-result .render-before-after {
  width: 100%;
  min-width: 0;
  min-height: clamp(320px, 50vw, 560px);
  border-radius: 6px;
}

.planner-photo-result-actions .primary-action {
  flex: 1 1 260px;
}

.planner-photo-result-actions .secondary-action {
  flex: 0 0 auto;
}

.planner-photo-result-note {
  margin: 0;
  color: #77818b;
  font-size: 12px;
  line-height: 1.6;
}

.social-signup-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.social-signup-page {
  width: min(100%, 1040px);
  margin-inline: auto;
}

.social-signup-heading {
  align-items: end;
}

#signupPage .social-signup-heading {
  padding: 18px 24px;
}

#signupPage .social-signup-heading h2 {
  font-size: 28px;
  line-height: 1.2;
}

#signupPage .social-signup-heading .eyebrow {
  margin-bottom: 3px;
  font-size: 11px;
}

.social-signup-entry {
  display: grid;
  gap: 26px;
  min-height: 420px;
  padding: clamp(28px, 5vw, 64px);
  border-top: 1px solid var(--line);
  align-content: center;
  background: #fff;
}

#signupPage .social-signup-entry {
  gap: 18px;
  min-height: 320px;
  padding: 28px 40px;
}

.social-signup-copy {
  max-width: 680px;
}

.social-signup-copy h3 {
  margin: 7px 0 8px;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.18;
}

#signupPage .social-signup-copy h3 {
  margin: 5px 0 6px;
  font-size: 30px;
  line-height: 1.25;
}

.social-signup-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 700;
}

#signupPage .social-signup-copy p {
  font-size: 14px;
}

.social-signup-grid--entry {
  margin-top: 0;
}

.social-signup-grid--entry .social-signup-button {
  min-height: 82px;
  align-content: center;
  text-align: center;
  box-shadow: none;
}

#signupPage .social-signup-grid--entry {
  gap: 10px;
}

#signupPage .social-signup-grid--entry .social-signup-button {
  min-height: 54px;
  padding: 10px 14px;
}

#signupPage .social-signup-grid--entry .social-signup-button strong {
  font-size: 15px;
}

#signupPage .signup-status-bar {
  margin-top: 4px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.5;
}

#signupPage #signupEntryStatus:empty {
  display: none;
}

.social-signup-button {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.social-signup-button strong {
  font-size: 23.4px;
  line-height: 1.3;
}

.social-signup-button span {
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 700;
  line-height: 1.5;
}

.google-signup {
  border-color: #d9e1e8;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8fb 100%);
}

.kakao-signup {
  border-color: #f2d600;
  background: #fee500;
}

.naver-signup {
  border-color: #03b95f;
  background: #03c75a;
  color: #fff;
}

.naver-signup span {
  color: rgba(255, 255, 255, 0.86);
}

@media (max-width: 620px) {
  #signupPage .social-signup-heading {
    padding: 16px;
  }

  #signupPage .social-signup-entry {
    gap: 14px;
    min-height: 0;
    padding: 20px 16px;
  }

  #signupPage .social-signup-copy h3 {
    font-size: 24px;
  }

  #signupPage .social-signup-grid--entry {
    grid-template-columns: minmax(0, 1fr);
  }
}

.business-onboarding-page {
  width: min(100%, 760px);
  margin-inline: auto;
}

.business-onboarding-heading {
  padding: 18px 24px;
  align-items: end;
}

.business-onboarding-heading h2 {
  font-size: 28px;
  line-height: 1.2;
}

.business-onboarding-entry {
  display: grid;
  gap: 24px;
  padding: 34px 40px 40px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.business-onboarding-copy h3 {
  margin: 5px 0 7px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.3;
}

.business-onboarding-copy > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.55;
}

.business-onboarding-options {
  display: grid;
  gap: 14px;
}

.business-onboarding-upload {
  display: flex;
  min-height: 92px;
  padding: 18px 20px;
  align-items: center;
  gap: 16px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  cursor: pointer;
  background: #f8fafc;
}

.business-onboarding-upload:hover,
.business-onboarding-upload:focus-within {
  border-color: #1557e8;
  background: #f4f7ff;
}

.business-onboarding-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.business-onboarding-option-icon {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background: #081957;
}

.business-onboarding-option-icon::before,
.business-onboarding-option-icon::after {
  content: "";
  position: absolute;
  left: 12px;
  width: 18px;
  height: 2px;
  background: #fff;
}

.business-onboarding-option-icon::before {
  top: 20px;
}

.business-onboarding-option-icon::after {
  top: 20px;
  transform: rotate(90deg);
}

.business-onboarding-upload strong,
.business-onboarding-upload small {
  display: block;
}

.business-onboarding-upload strong {
  color: var(--ink);
  font-size: 16px;
}

.business-onboarding-upload small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.business-onboarding-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8993a1;
  font-size: 12px;
  font-weight: 800;
}

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

.business-onboarding-number {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.business-onboarding-number input {
  min-height: 50px;
  padding: 12px 14px;
  border: 1px solid #cfd8e5;
  border-radius: 6px;
  color: var(--ink);
  font-size: 16px;
  background: #fff;
}

.business-onboarding-number input:focus {
  border-color: #1557e8;
  outline: 2px solid rgba(21, 87, 232, 0.12);
}

.business-onboarding-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.business-onboarding-actions button {
  min-height: 48px;
}

.business-onboarding-status {
  min-height: 20px;
  margin: -8px 0 0;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.business-onboarding-status:empty {
  display: none;
}

@media (max-width: 620px) {
  .business-onboarding-heading {
    padding: 16px;
  }

  .business-onboarding-heading h2 {
    font-size: 24px;
  }

  .business-onboarding-entry {
    gap: 20px;
    padding: 24px 16px 28px;
  }

  .business-onboarding-copy h3 {
    font-size: 23px;
  }

  .business-onboarding-upload {
    min-height: 84px;
    padding: 16px;
  }

  .business-onboarding-actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

#loginPage.login-workspace {
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  width: min(100%, 680px);
  max-width: 680px;
}

#loginPage .login-option-panel {
  display: grid;
  gap: 16px;
  align-content: start;
  min-height: 0;
  padding: 20px 24px;
  box-shadow: none;
}

#loginPage .login-primary-panel {
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
}

#loginPage .login-business-panel {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  background: #fbfcfe;
}

#loginPage .panel-heading h2 {
  font-size: 28px;
  line-height: 1.2;
}

#loginPage .panel-heading .eyebrow {
  margin-bottom: 3px;
  font-size: 11px;
}

#loginPage .login-social-grid {
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 0;
}

#loginPage .login-social-grid .social-signup-button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 16px;
  text-align: center;
  box-shadow: none;
}

#loginPage .login-social-grid .social-signup-button strong {
  font-size: 15px;
}

#loginPage .login-business-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

#loginPage .login-business-form label {
  min-width: 0;
  font-size: 13px;
}

#loginPage .login-business-form input {
  width: 100%;
  min-height: 44px;
  font-size: 14px;
}

#loginPage .login-business-form .wide {
  grid-column: 1 / -1;
  min-height: 44px;
  font-size: 15px;
}

#loginPage .signup-status-bar {
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.55;
}

@media (max-width: 620px) {
  #loginPage.login-workspace {
    gap: 6px;
  }

  #loginPage .login-option-panel {
    padding: 16px;
  }

  #loginPage .login-business-form {
    grid-template-columns: minmax(0, 1fr);
  }
}

.partner-application-access {
  display: grid;
  gap: 14px;
  min-height: 320px;
  padding: clamp(24px, 4vw, 48px);
  align-content: center;
  justify-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.partner-application-page.is-locked {
  grid-template-columns: minmax(0, 720px);
  justify-content: center;
}

.partner-application-access h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.partner-application-access p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 16.9px;
  line-height: 1.65;
}

.auth-required-page {
  width: min(100%, 1180px);
  margin-inline: auto;
  background: #fff;
}

.auth-required-panel {
  display: grid;
  min-height: min(520px, 66vh);
  padding: clamp(40px, 7vw, 76px) clamp(24px, 7vw, 80px);
  align-content: center;
  justify-items: start;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.auth-required-mark {
  position: relative;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: #ffe500;
}

.auth-required-mark::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 11px;
  width: 16px;
  height: 14px;
  border: 3px solid #081957;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}

.auth-required-mark span {
  position: absolute;
  left: 12px;
  top: 23px;
  width: 22px;
  height: 18px;
  border-radius: 4px;
  background: #081957;
}

.auth-required-panel h2 {
  max-width: 620px;
  margin: 6px 0 10px;
  color: #081957;
  font-size: clamp(1.55rem, 2.4vw, 1.875rem);
  line-height: 1.2;
}

.auth-required-panel > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.auth-required-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.auth-required-actions .primary-action,
.auth-required-actions .secondary-action {
  min-width: 116px;
  min-height: 42px;
  justify-content: center;
  font-size: 13px;
}

.auth-required-actions .text-action {
  min-height: 42px;
  padding-inline: 12px;
  color: #536172;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .auth-required-panel {
    min-height: calc(100dvh - 190px);
    padding: 34px 18px 64px;
  }

  .auth-required-panel h2 {
    font-size: 1.45rem;
  }

  .auth-required-panel > p:not(.eyebrow) {
    font-size: 13px;
  }

  .auth-required-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .auth-required-actions .text-action {
    grid-column: 1 / -1;
  }
}

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

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

.catalog-panel {
  display: grid;
  gap: 18px;
}

.catalog-toolbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #fcfffe 0%, #f8fbff 100%);
}

.catalog-toolbar-copy {
  display: grid;
  gap: 10px;
}

.catalog-summary-card {
  display: grid;
  gap: 8px;
  width: min(320px, 100%);
  padding: 18px;
  border: 1px solid #d8f3ee;
  border-radius: 8px;
  background: #fff;
}

.catalog-summary-card span:last-child {
  color: var(--muted);
  font-size: 18.2px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0;
  text-transform: none;
}

.wide {
  grid-column: 1 / -1;
}

.proposal-template-picker,
.proposal-company-grid {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.proposal-template-heading {
  display: grid;
  gap: 6px;
}

.proposal-template-heading strong {
  color: var(--ink);
  font-size: 20.8px;
}

.proposal-template-heading span {
  color: var(--muted);
  font-size: 16.9px;
  line-height: 1.6;
}

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

.proposal-template-heading {
  grid-column: 1 / -1;
}

.proposal-template-card {
  position: relative;
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 18px 18px 18px 48px;
  border: 1px solid #dacfc2;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.proposal-template-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.proposal-template-card input {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.proposal-template-card strong {
  color: var(--ink);
  font-size: 22.1px;
  line-height: 1.4;
}

.proposal-template-visual {
  --template-surface: linear-gradient(145deg, #f5efe7 0%, #f0e6d9 100%);
  --template-panel: rgba(255, 255, 255, 0.88);
  --template-ink: #241f1a;
  --template-accent: #111111;
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 14px;
  border-radius: 16px;
  background: var(--template-surface);
  box-shadow: inset 0 0 0 1px rgba(72, 53, 34, 0.08);
}

.proposal-template-visual-cover {
  display: grid;
  gap: 6px;
  min-height: 78px;
  padding: 14px;
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.56) 100%);
  color: var(--template-ink);
}

.proposal-template-visual-cover span {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--template-accent);
}

.proposal-template-visual-cover strong {
  font-size: 23.4px;
  line-height: 1.1;
  color: var(--template-ink);
}

.proposal-template-visual-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.proposal-template-visual-pages span {
  min-height: 44px;
  border-radius: 10px;
  background: var(--template-panel);
  box-shadow: inset 0 0 0 1px rgba(53, 42, 32, 0.06);
}

.proposal-template-card span:last-child {
  color: var(--muted);
  font-size: 16.9px;
  line-height: 1.6;
  font-weight: 700;
}

.proposal-template-kicker {
  color: var(--accent);
  font-size: 14.3px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.proposal-template-card:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 25, 87, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #eaf2ff 100%);
}

.proposal-template-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 25, 87, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #eaf2ff 100%);
}

.template-preview-beige-black {
  --template-surface: linear-gradient(145deg, #f6efe6 0%, #dfd3c3 100%);
  --template-panel: rgba(255, 255, 255, 0.92);
  --template-ink: #1c1814;
  --template-accent: #111111;
}

.template-preview-beige-red {
  --template-surface: linear-gradient(145deg, #f7e6db 0%, #efcdbd 100%);
  --template-panel: rgba(255, 246, 241, 0.9);
  --template-ink: #3e221b;
  --template-accent: #b8402d;
}

.template-preview-beige-brown {
  --template-surface: linear-gradient(145deg, #efe6d9 0%, #d8c5aa 100%);
  --template-panel: rgba(255, 252, 247, 0.88);
  --template-ink: #30251c;
  --template-accent: #8b6748;
}

.proposal-template-preview-board {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid #d9cec1;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(246, 241, 234, 0.98) 100%);
}

.proposal-template-preview-stage {
  --template-surface: linear-gradient(145deg, #f5efe7 0%, #f0e6d9 100%);
  --template-panel: rgba(255, 255, 255, 0.88);
  --template-ink: #241f1a;
  --template-accent: #111111;
  display: grid;
  grid-template-rows: 1.1fr 0.9fr;
  gap: 14px;
  min-height: 280px;
  padding: 18px;
  border-radius: 22px;
  background: var(--template-surface);
  box-shadow: inset 0 0 0 1px rgba(72, 53, 34, 0.08);
}

.proposal-template-preview-cover {
  display: grid;
  align-content: end;
  gap: 8px;
  padding: 22px;
  border-radius: 18px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.5) 100%);
}

.proposal-template-preview-brand {
  font-size: 14.3px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--template-accent);
}

.proposal-template-preview-headline {
  font-size: clamp(33.8px, 3.9vw, 44.2px);
  line-height: 1.04;
  color: var(--template-ink);
}

.proposal-template-preview-subline {
  font-size: 15.6px;
  font-weight: 700;
  color: rgba(49, 39, 31, 0.68);
}

.proposal-template-preview-spread {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 12px;
}

.proposal-template-preview-spread article {
  position: relative;
  min-height: 88px;
  border-radius: 16px;
  background: var(--template-panel);
  box-shadow: inset 0 0 0 1px rgba(53, 42, 32, 0.06);
  overflow: hidden;
}

.proposal-template-preview-spread article::before,
.proposal-template-preview-spread article::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  border-radius: 999px;
  background: rgba(69, 55, 44, 0.1);
}

.proposal-template-preview-spread article::before {
  top: 16px;
  height: 12px;
}

.proposal-template-preview-spread article::after {
  top: 36px;
  height: 8px;
}

.proposal-template-preview-spread article:first-child::before {
  left: 16px;
  right: 42%;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(230, 220, 207, 0.78) 100%);
}

.proposal-template-preview-spread article:first-child::after {
  top: 68px;
  left: 16px;
  right: 16px;
  height: 8px;
}

.proposal-template-preview-copy {
  display: grid;
  align-content: center;
  gap: 12px;
}

.proposal-template-preview-label {
  color: var(--accent);
  font-size: 15.6px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.proposal-template-preview-copy strong {
  color: var(--ink);
  font-size: 31.2px;
  line-height: 1.2;
}

.proposal-template-preview-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 18.2px;
  line-height: 1.7;
  font-weight: 700;
}

.proposal-template-preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.proposal-template-preview-meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(8, 25, 87, 0.08);
  color: var(--ink);
  font-size: 15.6px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 800;
}

.inline-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.compact-action {
  min-width: 96px;
  min-height: 42px;
}

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

.admin-inline-actions .compact-action {
  min-width: 58px;
  min-height: 32px;
  padding: 0 9px;
  font-size: 15.6px;
}

.muted-cell {
  color: var(--muted);
  font-size: 15.6px;
  white-space: nowrap;
}

.field-note {
  color: var(--muted);
  font-size: 15.6px;
  line-height: 1.5;
}

.social-business-gate {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid rgba(18, 104, 255, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f8ff 100%);
  box-shadow: var(--shadow-soft);
}

.social-business-gate h3 {
  margin: 0;
  color: var(--ink);
  font-size: 1.755rem;
  line-height: 1.35;
}

.social-business-gate p {
  margin: 0;
  color: var(--muted);
  font-size: 18.2px;
  line-height: 1.7;
}

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

.social-business-actions span {
  color: var(--accent-strong);
  font-size: 16.9px;
  font-weight: 900;
}

.file-hint {
  color: var(--accent-strong);
  font-size: 15.6px;
  font-weight: 900;
}

#approvalRuleStatus {
  display: block;
  margin-top: 8px;
}

.signup-summary-card {
  margin-top: 18px;
}

.partner-approval-steps {
  display: grid;
  gap: 10px;
}

.partner-approval-steps div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}

.partner-approval-steps b {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--accent-strong);
  font-size: 14px;
}

.partner-approval-steps span {
  color: var(--ink);
  font-size: 15.6px;
  font-weight: 800;
}

.signup-status-bar {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--accent-strong);
  background: var(--soft);
  font-size: 16.9px;
  font-weight: 900;
  line-height: 1.5;
}

.tile114-test-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(140px, 180px) auto;
  gap: 12px;
  align-items: end;
  margin-top: 16px;
}

.tile114-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.tile114-sample-card {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.tile114-sample-card img,
.tile114-sample-image-empty {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f4f7f8;
}

.tile114-sample-image-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 900;
}

.tile114-sample-copy {
  display: grid;
  gap: 8px;
  align-content: start;
  min-width: 0;
}

.tile114-sample-copy > span {
  color: var(--accent-strong);
  font-size: 15.6px;
  font-weight: 900;
}

.tile114-sample-copy strong {
  font-size: 20.8px;
  line-height: 1.4;
}

.tile114-sample-copy dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.tile114-sample-copy dl div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
}

.tile114-sample-copy dt,
.tile114-sample-copy dd {
  margin: 0;
  font-size: 15.6px;
  line-height: 1.45;
}

.tile114-sample-copy dt {
  color: var(--muted);
  font-weight: 800;
}

.tile114-sample-copy dd {
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

textarea {
  resize: vertical;
  line-height: 1.55;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 25, 87, 0.14);
}

.product-list,
.cart-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.product-pagination-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}

.product-pagination-toolbar label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 900;
}

.product-pagination-toolbar select {
  width: auto;
  min-height: 38px;
  padding: 7px 30px 7px 10px;
}

.taxonomy-sort-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
}

.taxonomy-sort-toolbar label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 900;
}

.taxonomy-sort-toolbar select {
  width: auto;
  min-width: 150px;
  min-height: 38px;
  padding: 7px 30px 7px 10px;
}

.product-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
}

.product-pagination button {
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-size: 16.9px;
  font-weight: 900;
}

.product-pagination button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.product-pagination button:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.product-pagination-ellipsis,
.product-pagination-summary {
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 800;
}

.product-pagination-summary {
  margin-left: 4px;
}

.tile-finder-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: start;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.ai-tile-finder-shell {
  display: grid;
  gap: 16px;
}

.ai-tile-finder-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.65fr);
  gap: 18px;
  align-items: stretch;
  padding: 18px;
  border: 1px solid rgba(8, 25, 87, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(0, 86, 255, 0.08), rgba(255, 219, 0, 0.14)),
    #fff;
}

.ai-tile-finder-hero h3 {
  margin: 2px 0 8px;
  color: var(--ink);
  font-size: 33.8px;
  line-height: 1.25;
}

.ai-tile-finder-hero p,
.ai-tile-finder-note span {
  margin: 0;
  color: var(--muted);
  font-size: 18.2px;
  font-weight: 760;
  line-height: 1.7;
}

.ai-tile-finder-note {
  display: grid;
  align-content: center;
  gap: 8px;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(8, 25, 87, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.ai-tile-finder-note strong {
  color: var(--accent-strong);
  font-size: 19.5px;
}

.ai-tile-finder-tool {
  margin: 0;
}

.tile-finder-panel--shortcut {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: #fff;
}

.ai-tile-finder-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.tile-finder-copy h3 {
  margin: 2px 0 6px;
  font-size: 28.6px;
}

.tile-finder-copy p:last-child,
.tile-finder-actions span {
  margin: 0;
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 700;
  line-height: 1.6;
}

.tile-finder-actions {
  display: grid;
  gap: 10px;
  justify-items: start;
}

.tile-finder-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  width: 100%;
}

.tile-finder-controls label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 900;
}

.tile-finder-size-custom {
  width: 100%;
}

.tile-finder-preview {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.tile-finder-preview img {
  width: 120px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.tile-finder-preview strong {
  display: block;
  margin-bottom: 8px;
}

.tile-finder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tile-finder-tags span,
.tile-match-score {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  border: 1px solid rgba(8, 25, 87, 0.2);
  border-radius: 999px;
  background: rgba(8, 25, 87, 0.08);
  color: var(--accent-strong);
  font-size: 15.6px;
  font-weight: 900;
}

.tile-finder-analysis-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(8, 25, 87, 0.14);
  border-radius: 8px;
  background: #f8fafc;
}

.tile-finder-analysis-heading {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.tile-finder-analysis-heading strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 19.5px;
}

.tile-finder-analysis-heading span {
  display: block;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 760;
  line-height: 1.55;
}

.tile-finder-analysis-grid {
  display: grid;
  gap: 10px;
}

.tile-finder-analysis-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.tile-finder-analysis-row > span {
  padding-top: 7px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 900;
}

.tile-finder-analysis-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tile-finder-analysis-chips button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(8, 25, 87, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 15.6px;
  font-weight: 900;
  cursor: pointer;
}

.tile-finder-analysis-chips button:hover,
.tile-finder-analysis-chips button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.tile-finder-results {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  touch-action: pan-y;
}

.tile-finder-result-group {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tile-finder-result-group-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 2px 2px;
  border-top: 1px solid rgba(8, 25, 87, 0.12);
}

.taxonomy-image-results-heading + .tile-finder-result-group .tile-finder-result-group-title {
  border-top: 0;
  padding-top: 0;
}

.tile-finder-result-group-title strong {
  color: var(--ink);
  font-size: 19.5px;
}

.tile-finder-result-group-title span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 850;
}

.tile-finder-result-filters {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(8, 25, 87, 0.14);
  border-radius: 8px;
  background: #f7faff;
}

.tile-finder-filter-head,
.tile-finder-facet-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tile-finder-filter-head > div {
  display: grid;
  gap: 3px;
}

.tile-finder-filter-head strong,
.tile-finder-facet-title strong {
  color: var(--accent-strong);
  font-size: 18.2px;
}

.tile-finder-filter-head span,
.tile-finder-facet-title span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
}

.tile-finder-price-filter,
.tile-finder-stock-filter {
  display: grid;
  grid-template-columns: minmax(120px, 180px) minmax(140px, 220px) auto;
  gap: 10px;
  align-items: end;
}

.tile-finder-stock-filter {
  grid-template-columns: minmax(140px, 220px) minmax(0, 1fr) auto;
  align-items: center;
}

.tile-finder-price-filter label,
.tile-finder-stock-filter label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 900;
}

.tile-finder-stock-filter > span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
}

.tile-finder-facet-filter {
  display: grid;
  gap: 8px;
}

.tile-finder-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tile-finder-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(8, 25, 87, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 15.6px;
  font-weight: 900;
}

.tile-finder-filter-chip small {
  color: var(--muted);
  font-size: 14.3px;
}

.tile-finder-filter-chip.is-include {
  border-color: rgba(23, 98, 255, 0.42);
  background: rgba(23, 98, 255, 0.1);
  color: var(--accent-strong);
}

.tile-finder-filter-chip.is-exclude {
  border-color: rgba(211, 47, 47, 0.32);
  background: rgba(211, 47, 47, 0.08);
  color: #9f1c1c;
  text-decoration: line-through;
}

.expert-search-panel {
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(8, 25, 87, 0.16);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
  box-shadow: 0 18px 44px rgba(8, 25, 87, 0.08);
}

.expert-search-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  cursor: pointer;
  list-style: none;
}

.expert-search-head::-webkit-details-marker {
  display: none;
}

.expert-search-head::after {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid var(--accent-strong);
  border-bottom: 2px solid var(--accent-strong);
  content: "";
  transform: rotate(45deg);
  transition: transform 180ms ease;
}

.expert-search-panel[open] > .expert-search-head::after {
  transform: rotate(225deg);
}

.expert-search-head h3 {
  margin: 2px 0 0;
  color: var(--accent-strong);
  font-size: 27.3px;
  line-height: 1.25;
}

.expert-search-head > span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 15.6px;
  font-weight: 900;
  white-space: nowrap;
}

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

.expert-search-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr;
  gap: 12px;
}

.expert-search-grid article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(8, 25, 87, 0.12);
  border-radius: 8px;
  background: #fff;
}

.expert-search-grid strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ink);
}

.expert-search-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 750;
  line-height: 1.65;
}

.product-result-origin-option {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(8, 25, 87, 0.12);
}

.product-result-origin-option > div {
  display: grid;
  gap: 3px;
}

.product-result-origin-option > div > strong {
  color: var(--ink);
}

.product-result-origin-option > div > span {
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 750;
}

.product-result-origin-option label {
  display: grid;
  gap: 6px;
  min-width: 180px;
  color: var(--ink);
  font-size: 16.9px;
  font-weight: 850;
}

.expert-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.expert-chip-row span,
.expert-chip-row button {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border: 1px solid rgba(8, 25, 87, 0.16);
  border-radius: 999px;
  background: rgba(8, 25, 87, 0.06);
  color: var(--accent-strong);
  font-size: 15.6px;
  font-weight: 900;
}

.expert-chip-row button {
  cursor: pointer;
}

.expert-chip-row button:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.expert-chip-row small {
  margin-left: 5px;
  opacity: 0.72;
}

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

.tile-match-card img,
.tile-match-card .product-thumb-empty {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.tile-match-card strong {
  line-height: 1.35;
}

.tile-match-card span,
.tile-match-card small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.5;
}

.tile-match-card .tile-match-admin-brand {
  color: var(--accent-strong);
  font-weight: 900;
}

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

.image-search-product-card .image-search-match-score {
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 3;
  display: inline-flex !important;
  width: fit-content;
  max-width: calc(100% - 58px);
  min-height: 22px;
  align-items: center;
  padding: 0 7px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(8, 25, 87, 0.9);
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 900;
  line-height: 1 !important;
  text-overflow: ellipsis;
  white-space: nowrap !important;
  box-shadow: 0 6px 14px rgba(8, 25, 87, 0.2);
}

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

.taxonomy-panel {
  display: grid;
  gap: 20px;
}

.taxonomy-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: stretch;
}

.taxonomy-hero h3 {
  margin: 0 0 8px;
  font-size: 31.2px;
  line-height: 1.3;
}

.taxonomy-hero p,
.taxonomy-note span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.65;
}

.taxonomy-note,
.taxonomy-metric-card,
.taxonomy-collection-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.taxonomy-note {
  display: grid;
  gap: 8px;
  align-content: center;
  padding: 18px;
}

.taxonomy-note strong {
  font-size: 23.4px;
}

.taxonomy-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.taxonomy-metric-card {
  display: grid;
  gap: 6px;
  padding: 16px;
}

.taxonomy-metric-card span,
.taxonomy-metric-card small {
  color: var(--muted);
  font-weight: 800;
}

.taxonomy-metric-card strong {
  font-size: 33.8px;
  line-height: 1.1;
}

.taxonomy-axis-bar,
.taxonomy-tag-row,
.taxonomy-intent-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.taxonomy-axis-chip,
.taxonomy-tag-row span,
.taxonomy-intent-chips span,
.taxonomy-intent-chip,
.taxonomy-intent-reset {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(18, 104, 255, 0.18);
  border-radius: 999px;
  background: rgba(234, 242, 255, 0.9);
  color: var(--blue);
  font-size: 15.6px;
  font-weight: 900;
}

.taxonomy-intent-chips span,
.taxonomy-intent-chip,
.taxonomy-intent-reset {
  border-color: rgba(8, 25, 87, 0.16);
  background: #ffffff;
  color: var(--ink);
}

.taxonomy-intent-chip,
.taxonomy-intent-reset {
  cursor: pointer;
}

.taxonomy-intent-chip {
  border-color: rgba(18, 104, 255, 0.28);
  background: var(--blue-soft);
}

.taxonomy-intent-chip.is-selected {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.taxonomy-intent-chip small {
  color: inherit;
  font-size: 14.3px;
  font-weight: 900;
  opacity: 0.78;
}

.taxonomy-intent-chip.is-off {
  border-color: rgba(92, 106, 122, 0.22);
  background: #f1f4f6;
  color: var(--muted);
  text-decoration: line-through;
  opacity: 0.72;
}

.taxonomy-intent-reset {
  border-color: rgba(211, 74, 74, 0.2);
  background: rgba(211, 74, 74, 0.08);
  color: #a83232;
}

.taxonomy-intent-chips strong {
  color: var(--accent-strong);
}

.taxonomy-intent-chip.is-off strong {
  color: var(--muted);
}

.taxonomy-facet-group {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.taxonomy-facet-group > strong {
  color: var(--ink);
  font-size: 16.9px;
}

.taxonomy-facet-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.taxonomy-axis-chip {
  opacity: 1;
}

.taxonomy-axis-chip span {
  color: var(--ink);
}

.taxonomy-filter-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.taxonomy-search-field {
  display: grid;
  gap: 8px;
}

.taxonomy-search-field > span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
}

.taxonomy-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.taxonomy-search-row .primary-action {
  min-height: 44px;
  padding-inline: 20px;
  white-space: nowrap;
}

.taxonomy-search-assist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaf2ff;
}

.taxonomy-image-control {
  display: grid;
  gap: 6px;
  min-width: 190px;
}

.taxonomy-image-control span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
  line-height: 1.4;
}

.taxonomy-assist-control {
  display: grid;
  gap: 6px;
  min-width: 180px;
}

.taxonomy-assist-control > span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 900;
}

.taxonomy-size-toggle {
  justify-content: center;
  min-height: 40px;
}

.taxonomy-segmented {
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(58px, 1fr));
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.taxonomy-segmented button,
.taxonomy-size-panel button {
  min-height: 34px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  cursor: pointer;
}

.taxonomy-segmented button.active,
.taxonomy-size-panel button.active {
  border-color: var(--teal);
  background: rgba(0, 166, 147, 0.1);
  color: var(--teal-deep);
}

.taxonomy-image-preview {
  margin-top: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.taxonomy-image-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(8, 25, 87, 0.12);
  border-radius: 8px;
  background: #f8fbff;
}

.taxonomy-image-results-heading {
  grid-column: 1 / -1;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.image-search-pagination {
  grid-column: 1 / -1;
}

body.customer-experience-mode .tile-finder-results,
body.customer-experience-mode .taxonomy-image-results {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 8px !important;
}

body.customer-experience-mode .tile-finder-results .tile-match-card,
body.customer-experience-mode .taxonomy-image-results .tile-match-card {
  min-width: 0 !important;
  padding: 8px !important;
  gap: 6px !important;
  border-radius: 12px !important;
}

body.customer-experience-mode .tile-finder-results .tile-match-card img,
body.customer-experience-mode .taxonomy-image-results .tile-match-card img,
body.customer-experience-mode .tile-finder-results .tile-match-card .product-thumb-empty,
body.customer-experience-mode .taxonomy-image-results .tile-match-card .product-thumb-empty {
  border-radius: 10px !important;
}

body.customer-experience-mode .tile-finder-results .tile-match-card strong,
body.customer-experience-mode .taxonomy-image-results .tile-match-card strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15.6px !important;
  line-height: 1.28 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.customer-experience-mode .tile-finder-results .tile-match-card span,
body.customer-experience-mode .taxonomy-image-results .tile-match-card span,
body.customer-experience-mode .tile-finder-results .tile-match-card small,
body.customer-experience-mode .taxonomy-image-results .tile-match-card small {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px !important;
  line-height: 1.35 !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.customer-experience-mode .tile-finder-results .tile-match-actions,
body.customer-experience-mode .taxonomy-image-results .tile-match-actions {
  gap: 6px !important;
}

body.customer-experience-mode .tile-finder-results .tile-match-actions button,
body.customer-experience-mode .taxonomy-image-results .tile-match-actions button {
  min-height: 34px !important;
  padding: 0 8px !important;
  border-radius: 10px !important;
  font-size: 15.6px !important;
}

.taxonomy-image-results-heading strong {
  font-size: 19.5px;
}

.taxonomy-image-results-heading span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
}

.taxonomy-size-panel {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.taxonomy-size-panel button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding-inline: 10px;
  border-color: var(--line);
  background: #fff;
}

.taxonomy-size-panel button span {
  color: var(--muted);
  font-size: 14.3px;
}

.taxonomy-collection-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.taxonomy-collection-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  min-width: 0;
}

.taxonomy-collection-thumb {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f4f7f8;
}

.taxonomy-collection-body {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.taxonomy-collection-body strong {
  display: block;
  margin-top: 6px;
  font-size: 22.1px;
  line-height: 1.35;
}

.taxonomy-collection-body p {
  margin: 4px 0 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.taxonomy-mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.taxonomy-mini-grid span {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 15.6px;
  font-weight: 900;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.compact-empty-state {
  min-height: 36px;
  padding: 8px 12px;
}

@media (max-width: 1080px) {
  .taxonomy-hero,
  .taxonomy-collection-list {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .taxonomy-metrics,
  .taxonomy-filter-grid,
  .taxonomy-mini-grid {
    grid-template-columns: 1fr;
  }

  .taxonomy-search-row {
    grid-template-columns: 1fr;
  }

  .taxonomy-search-assist,
  .taxonomy-assist-control {
    width: 100%;
  }

  .taxonomy-image-control {
    width: 100%;
  }

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

  .taxonomy-image-results-heading {
    display: grid;
  }

  .taxonomy-segmented {
    width: 100%;
  }

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

  .taxonomy-hero h3 {
    font-size: 26px;
  }
}

.product-card,
.cart-item {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.product-card {
  position: relative;
  grid-template-columns: 1fr;
  align-items: start;
}

.product-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f4f7f8;
}

.product-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
  text-align: center;
}

.product-detail-trigger,
.product-name-button {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
}

.product-detail-trigger {
  display: block;
  width: 100%;
  border-radius: 8px;
  line-height: 0;
}

.product-detail-trigger:hover .product-thumb,
.product-detail-trigger:focus-visible .product-thumb {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 25, 87, 0.14);
}

.product-name-button {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 20.8px;
  font-weight: 900;
  line-height: 1.45;
}

.product-card > div:nth-child(2) {
  display: grid;
  gap: 4px;
}

.product-code-badge {
  display: inline-flex !important;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid rgba(8, 25, 87, 0.22);
  border-radius: 8px;
  background: rgba(8, 25, 87, 0.08);
  color: var(--accent-strong) !important;
  font-family: Consolas, "Courier New", monospace;
  font-size: 15.6px !important;
  font-weight: 900 !important;
  line-height: 1.2 !important;
  overflow-wrap: anywhere;
}

.product-card [data-add-product] {
  position: absolute;
  top: 16px;
  right: 16px;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 16.9px;
  line-height: 1;
}

.product-name-button:hover,
.product-name-button:focus-visible {
  color: var(--accent-strong);
  text-decoration: underline;
  outline: none;
}

.cart-item {
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
  align-items: center;
}

.cart-item-main {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.cart-item-image {
  width: 72px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f4f7f8;
}

.cart-item-image-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
  text-align: center;
}

.cart-item-copy {
  min-width: 0;
}

.cart-item strong {
  display: block;
  margin-bottom: 5px;
  line-height: 1.35;
}

.product-card span,
.cart-item span,
.service-copy {
  display: block;
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 700;
  line-height: 1.65;
}

.cost-only {
  color: var(--accent-strong) !important;
}

.product-detail-layout {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.detail-main-media,
.detail-main-placeholder {
  width: 100%;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7f8;
  overflow: hidden;
}

.detail-image-preview-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.detail-main-preview-trigger {
  height: 100%;
}

.detail-main-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-main-placeholder {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 900;
}

.detail-spec-panel h3 {
  margin: 0 0 14px;
  font-size: 36.4px;
}

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

.detail-spec-grid div {
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.detail-spec-grid span,
.detail-image-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 900;
}

.detail-spec-grid strong {
  display: block;
  color: var(--ink);
  line-height: 1.4;
  word-break: keep-all;
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

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

.detail-image-card img,
.detail-image-empty {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f4f7f8;
}

.detail-image-card img {
  object-fit: cover;
}

.detail-image-preview-trigger:hover img,
.detail-image-preview-trigger:focus-visible img {
  border-color: var(--accent);
}

.detail-image-preview-trigger:focus-visible {
  outline: 3px solid rgba(0, 168, 150, 0.25);
  outline-offset: 3px;
}

.detail-image-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 900;
}

.product-card [data-add-product],
.cart-controls button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #b7efe4;
  border-radius: 8px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 900;
}

.cart-controls {
  display: grid;
  grid-template-columns: 90px 132px 132px 64px;
  gap: 8px;
  align-items: end;
}

.cart-controls input {
  min-height: 36px;
  padding: 6px;
}

.cart-tile-calculator {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(2, minmax(120px, 0.8fr)) minmax(150px, 0.9fr);
  gap: 10px;
  align-items: stretch;
  padding: 12px;
  border: 1px solid rgba(18, 104, 255, 0.16);
  border-radius: 8px;
  background: #f5f8ff;
}

.cart-tile-calculator-empty {
  grid-template-columns: 1fr;
}

.cart-tile-calculator-meta,
.cart-tile-calculator-result {
  display: grid;
  gap: 5px;
  align-content: center;
}

.cart-tile-calculator-meta strong,
.cart-tile-calculator-result strong {
  color: var(--ink);
  font-size: 18.2px;
  font-weight: 900;
}

.cart-tile-calculator-meta span,
.cart-tile-calculator-result span,
.cart-tile-calculator-result small,
.cart-tile-calculator-empty span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
  line-height: 1.45;
}

.cart-tile-calculator label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 15.6px;
  font-weight: 900;
}

.cart-tile-calculator input {
  min-height: 42px;
}

.cart-tile-calculator-result {
  padding: 10px 12px;
  border: 1px solid rgba(8, 25, 87, 0.12);
  border-radius: 8px;
  background: #fff;
}

.cart-tile-calculator-result strong {
  color: var(--blue);
  font-size: 26px;
  line-height: 1.1;
}

.cart-price-readout {
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbfb;
}

.cart-price-readout span {
  display: block;
  margin-bottom: 2px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 900;
  line-height: 1;
}

.cart-price-readout strong {
  display: block;
  color: var(--accent-strong);
  font-size: 18.2px;
  line-height: 1.2;
}

.cart-price-readout small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14.3px;
  font-weight: 800;
  line-height: 1.3;
}

.price-locked,
.member-price-line {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid rgba(8, 25, 87, 0.14);
  border-radius: 8px;
  background: #f5f8ff;
  color: #081957;
  font-size: 15.6px;
  font-weight: 900;
  line-height: 1.35;
}

.price-locked {
  color: var(--muted);
  background: #f8fafc;
}

.price-locked-readout strong {
  color: var(--muted);
}

.customer-my-page {
  gap: 14px;
}

.customer-my-page .customer-page-heading {
  margin-bottom: 2px;
}

.my-page-heading-copy {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.my-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.customer-my-page .commerce-panel {
  padding: 20px;
}

body.customer-experience-mode .customer-my-page .section-header-inline h3,
body.customer-experience-mode .customer-my-page .my-page-disclosure-summary h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: 0;
}

.customer-my-page .section-header-inline {
  min-height: 42px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e7ebf1;
}

.my-account-overview {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.my-account-identity {
  min-width: 0;
}

.my-account-identity span,
.my-account-identity small,
.my-profile-card span,
.my-current-order-summary span,
.my-past-order-head span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
}

.my-account-identity strong {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  color: #081957;
  font-size: 23px;
  font-weight: 950;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-account-identity small {
  margin-top: 5px;
}

.my-account-grade {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid rgba(20, 101, 255, 0.2);
  border-radius: 999px;
  background: #edf4ff;
  color: #0b4cd4;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.2;
}

.my-profile-card,
.my-current-order-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.my-profile-card div,
.my-current-order-summary div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid #e5e9f0;
  border-radius: 8px;
  background: #f8fafc;
}

.my-profile-card strong,
.my-current-order-summary strong,
.my-past-order-head strong {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #081957;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-partner-application-action {
  width: 100%;
  margin-top: 12px;
}

.my-current-order-status {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 10px;
}

.my-current-order-status span {
  padding: 5px 9px;
  border-radius: 999px;
  background: #f0f3f8;
  color: #58617f;
  font-size: 12px;
  font-weight: 900;
}

.my-contact-info-panel {
  margin-top: 12px;
  border: 1px solid #e5e9f0;
  border-radius: 8px;
  background: #fff;
}

.my-contact-info-summary,
.my-page-disclosure-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  cursor: pointer;
  list-style: none;
}

.my-contact-info-summary {
  padding: 12px 14px;
}

.my-contact-info-summary::-webkit-details-marker,
.my-page-disclosure-summary::-webkit-details-marker {
  display: none;
}

.my-contact-info-summary strong {
  display: block;
  color: #081957;
  font-size: 16px;
  font-weight: 900;
}

.my-contact-info-summary span:not(.my-contact-info-edit) {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.my-contact-info-edit {
  color: #0b4cd4;
  font-size: 13px;
  font-weight: 900;
}

.my-contact-info-body {
  padding: 14px;
  border-top: 1px solid #e7ebf1;
}

.my-contact-card-file {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.my-contact-info-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.my-contact-info-actions span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

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

.my-contact-info-grid label,
.client-management-card label {
  display: grid;
  gap: 5px;
  color: #303957;
  font-size: 13px;
  font-weight: 800;
}

.my-contact-info-grid input,
.client-management-card input,
.client-management-card select,
.client-management-card textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #dfe4ec;
  border-radius: 8px;
  background: #fff;
  color: #081957;
  font: inherit;
}

.my-contact-info-grid .wide,
.client-management-card .wide {
  grid-column: 1 / -1;
}

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

.my-order-item {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e5e9f0;
  border-radius: 8px;
  background: #fff;
}

.my-order-item img,
.my-order-thumb-empty {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafc;
}

.my-order-thumb-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
}

.my-order-item strong {
  display: block;
  overflow: hidden;
  color: #081957;
  font-size: 16px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-order-item span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.my-page-disclosure {
  overflow: hidden;
}

.my-page-disclosure-summary {
  min-height: 46px;
}

.my-page-disclosure-summary > div > span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.my-page-disclosure-state {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid #dfe4ec;
  border-radius: 50%;
  color: transparent;
  font-size: 0;
}

.my-page-disclosure-state::before {
  color: #081957;
  content: "+";
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.my-page-disclosure[open] .my-page-disclosure-state::before {
  content: "−";
}

.my-page-disclosure-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e7ebf1;
}

.my-page-section-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.my-past-order-card {
  padding: 12px;
  border: 1px solid #e5e9f0;
  border-radius: 8px;
  background: #fff;
}

.my-past-order-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.compact-my-order-list .my-order-item {
  grid-template-columns: 48px minmax(0, 1fr);
  padding: 8px;
}

.compact-my-order-list .my-order-item img,
.compact-my-order-list .my-order-thumb-empty {
  width: 48px;
  height: 48px;
}

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

.client-management-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid #e5e9f0;
  border-radius: 8px;
  background: #f8fafc;
}

.client-management-card > div:first-child span,
.client-status-strip span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
}

.client-management-card > div:first-child strong,
.client-status-strip strong {
  display: block;
  margin-bottom: 2px;
  color: #081957;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.3;
}

.client-management-card textarea {
  min-height: 96px;
  resize: vertical;
}

.client-status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.client-status-strip div {
  min-width: 0;
  padding: 8px;
  border: 1px solid #e1e7f0;
  border-radius: 6px;
  background: #fff;
}

.client-status-strip strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.my-page-login-gate {
  display: grid;
  min-height: 210px;
  align-content: center;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.my-page-login-gate > strong {
  color: #081957;
  font-size: 22px;
  font-weight: 950;
}

.my-page-login-gate > span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.my-empty-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.customer-my-page.is-signed-out .my-page-grid {
  grid-template-columns: minmax(0, 680px);
  justify-content: center;
}

.customer-my-page.is-signed-out .my-profile-panel .section-header-inline,
.customer-my-page.is-signed-out .my-current-order-panel,
.customer-my-page.is-signed-out .my-cart-panel,
.customer-my-page.is-signed-out .my-client-panel,
.customer-my-page.is-signed-out .my-past-orders-panel {
  display: none;
}

@media (max-width: 860px) {
  .my-page-grid,
  .client-management-grid {
    grid-template-columns: 1fr;
  }

  .my-contact-info-actions,
  .my-past-order-head {
    align-items: stretch;
  }
}

@media (max-width: 560px) {
  .customer-my-page {
    gap: 10px;
  }

  .customer-my-page .commerce-panel {
    padding: 15px;
  }

  .my-page-heading-copy {
    font-size: 13px;
  }

  .my-profile-card,
  .my-current-order-summary {
    grid-template-columns: 1fr;
  }

  .my-contact-info-grid {
    grid-template-columns: 1fr;
  }

  .my-contact-info-grid .wide {
    grid-column: auto;
  }

  .my-account-identity strong {
    font-size: 20px;
  }

  .my-order-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .my-order-item img,
  .my-order-thumb-empty {
    width: 56px;
    height: 56px;
  }

  .my-contact-info-actions {
    display: grid;
  }

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

.cost-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.cost-summary div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.cost-summary span,
.doc-summary span,
.total-box span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 900;
}

.status-pill {
  padding: 8px 11px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--soft);
  font-size: 15.6px;
  font-weight: 900;
}

.document-tabs {
  margin-bottom: 16px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
}

.document-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.document-action-status {
  display: grid;
  gap: 6px;
  justify-items: end;
  text-align: right;
  color: var(--muted);
  font-size: 18.2px;
}

.document-action-status a {
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
}

.document-action-status a:hover {
  text-decoration: underline;
}

.tab {
  min-height: 36px;
  min-width: 92px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
}

.tab.active {
  color: #fff;
  background: var(--accent-strong);
}

.document-view {
  min-height: 760px;
  padding: 32px;
  border: 1px solid #ece8df;
  border-radius: 8px;
  background: #ffffff;
}

.hidden {
  display: none !important;
}

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

.doc-brand {
  padding-bottom: 18px;
  border-bottom: 3px solid var(--accent);
}

.doc-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
}

.doc-summary div,
.total-box {
  padding: 13px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
}

.proposal-company-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid #eadfce;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffefc 0%, #f6f8f7 100%);
}

.proposal-company-card strong {
  color: var(--ink);
  font-size: 23.4px;
  line-height: 1.4;
}

.proposal-company-card span {
  color: var(--muted);
  font-size: 18.2px;
  line-height: 1.6;
  font-weight: 700;
}

.proposal-select-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

.proposal-select-header,
.proposal-select-group-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.proposal-select-header h3 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 28.6px;
  line-height: 1.3;
}

.proposal-select-header span,
.proposal-select-group-header span {
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 800;
  line-height: 1.6;
}

.proposal-select-actions,
.proposal-select-list {
  display: grid;
  gap: 12px;
}

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

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

.proposal-select-card {
  position: relative;
  display: grid;
  grid-template-columns: 18px 84px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e5ddd0;
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.proposal-select-card.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(8, 25, 87, 0.1);
}

.proposal-select-card input {
  width: 18px;
  min-height: 18px;
  margin: 4px 0 0;
}

.proposal-select-thumb {
  width: 84px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f4f7f8;
}

.proposal-render-select-thumb {
  aspect-ratio: 0.8;
}

.proposal-select-copy {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.proposal-select-copy strong {
  color: var(--ink);
  font-size: 19.5px;
  line-height: 1.4;
}

.proposal-select-copy span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
  line-height: 1.5;
}

.proposal-select-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 5px 8px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--soft);
  font-size: 14.3px;
  font-weight: 900;
}

.doc-section {
  margin-top: 22px;
}

.doc-section p,
.check-list {
  color: #384452;
  line-height: 1.75;
}

.check-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  list-style: none;
}

.proposal-item-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 104px;
  padding: 12px;
  border: 1px solid #ece6da;
  border-radius: 8px;
  background: #fff;
}

.proposal-item-card.has-rendered-image {
  align-items: start;
}

.proposal-image-button {
  width: 86px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.proposal-image-button:focus-visible {
  outline: 3px solid rgba(8, 25, 87, 0.24);
  outline-offset: 3px;
}

.proposal-image-button:hover .proposal-item-image {
  border-color: var(--accent);
}

.proposal-item-image {
  width: 86px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f4f7f8;
}

.proposal-item-image-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
  text-align: center;
}

.proposal-item-card strong,
.proposal-item-card span {
  display: block;
}

.proposal-item-card strong {
  margin-bottom: 5px;
  color: #18212f;
  line-height: 1.35;
}

.proposal-item-card span {
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 800;
  line-height: 1.5;
}

.proposal-item-card .proposal-item-size {
  margin-top: 4px;
  color: var(--accent-strong);
  font-size: 18.2px;
}

.proposal-rendered-preview {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  margin-top: 2px;
}

.proposal-render-surface-list {
  display: grid;
  gap: 10px;
  margin-bottom: 6px;
}

.proposal-render-workflow {
  border-color: rgba(8, 25, 87, 0.18);
  background: linear-gradient(180deg, #eaf2ff 0%, #ffffff 100%);
}

.proposal-render-workflow-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.proposal-render-workflow-body div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.proposal-render-workflow-body strong {
  color: var(--ink);
  font-size: 19.5px;
  font-weight: 900;
  line-height: 1.35;
}

.proposal-render-workflow-body span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
  line-height: 1.45;
}

.proposal-render-open-btn {
  min-height: 34px;
  padding: 0 12px;
  font-size: 15.6px;
  white-space: nowrap;
}

.proposal-render-surface-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid #e4ecea;
  border-radius: 10px;
  background: #f8fcfb;
}

.proposal-render-surface-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.proposal-render-surface-header strong {
  margin-bottom: 0;
  color: var(--accent-strong);
  font-size: 18.2px;
  font-weight: 900;
}

.proposal-render-surface-header span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
}

.proposal-render-surface-body {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.proposal-render-surface-image {
  width: 72px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.proposal-render-surface-copy {
  display: grid;
  gap: 4px;
}

.proposal-render-surface-copy strong {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 18.2px;
  font-weight: 900;
}

.proposal-render-surface-copy span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
  line-height: 1.45;
}

.proposal-rendered-preview span {
  color: var(--accent-strong);
  font-size: 15.6px;
  font-weight: 900;
}

.proposal-rendered-preview img {
  width: 100%;
  max-height: 260px;
  border: 1px solid #eadfce;
  border-radius: 8px;
  object-fit: cover;
}

.proposal-render-gallery {
  display: grid;
  gap: 16px;
}

.proposal-render-result-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid #ece6da;
  border-radius: 10px;
  background: #fff;
}

.proposal-render-result-copy {
  display: grid;
  gap: 4px;
}

.proposal-render-result-copy strong {
  color: #18212f;
  font-size: 20.8px;
  font-weight: 900;
  line-height: 1.35;
}

.proposal-render-result-copy span {
  color: var(--accent-strong);
  font-size: 16.9px;
  font-weight: 900;
  line-height: 1.5;
}

.proposal-item-empty {
  grid-column: 1 / -1;
}

.render-selected,
.render-preview-grid,
.render-actions {
  margin-top: 16px;
}

.render-cart-tile-section {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.render-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.render-section-heading strong {
  color: var(--ink);
  font-size: 23.4px;
  font-weight: 900;
}

.render-section-heading span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
  line-height: 1.45;
}

.render-cart-tile-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 10px;
}

.render-cart-tile {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 70px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.render-cart-tile.active {
  border-color: var(--accent);
  background: #eaf2ff;
  box-shadow: 0 10px 22px rgba(8, 25, 87, 0.14);
}

.render-cart-tile img,
.render-cart-tile-empty {
  width: 54px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 6px;
  object-fit: cover;
  background: #f4f7f8;
}

.render-cart-tile-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.render-cart-tile span {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.render-cart-tile strong,
.render-cart-tile small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.render-cart-tile strong {
  color: var(--ink);
  font-size: 16.9px;
  font-weight: 900;
}

.render-cart-tile small {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
}

.render-direction-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f7faff);
}

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

.render-direction-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 900;
}

.render-direction-grid label.wide {
  grid-column: 1 / -1;
}

.render-direction-grid select,
.render-direction-grid input {
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.render-room-analysis {
  padding: 10px 12px;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--accent-strong);
  font-size: 15.6px;
  font-weight: 900;
  line-height: 1.55;
}

.render-surface-config {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.render-surface-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.render-surface-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.render-surface-header strong {
  color: var(--ink);
  font-size: 23.4px;
  font-weight: 900;
}

.render-surface-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.render-surface-select-btn,
.render-surface-clear-btn {
  min-height: 40px;
}

.render-surface-summary {
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 800;
  line-height: 1.5;
}

.render-surface-note {
  color: var(--accent-strong);
  font-size: 15.6px;
  font-weight: 900;
}

.render-selected {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.render-product-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.render-product-card img,
.render-product-empty {
  width: 88px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: #f4f7f8;
}

.render-product-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15.6px;
}

.render-product-card strong,
.render-product-card span {
  display: block;
}

.render-product-card strong {
  color: var(--ink);
}

.render-product-card span {
  margin-top: 4px;
  color: var(--muted);
}

.render-preview-grid {
  display: grid;
  gap: 14px;
}

.render-preview-grid span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 900;
}

.render-preview-stack {
  grid-template-columns: 1fr;
}

.render-preview-block,
.render-preview-result-block {
  display: grid;
  gap: 10px;
}

.render-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 800;
  overflow: hidden;
}

.render-preview img {
  width: 100%;
  height: 100%;
  max-height: 480px;
  object-fit: contain;
}

.render-surface-preview {
  min-height: 220px;
}

.render-preview-large {
  min-height: 520px;
}

.render-preview.has-image {
  cursor: zoom-in;
}

.render-preview.has-comparison {
  display: grid;
  align-content: stretch;
  justify-items: stretch;
  gap: 10px;
  padding: 12px;
  cursor: default;
}

.render-before-after {
  --compare: 50%;
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 8px;
  background: #071334;
}

.render-before-image,
.render-after-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  background: #fff;
}

.render-after-layer {
  position: absolute;
  inset: 0;
  overflow: hidden;
  clip-path: inset(0 calc(100% - var(--compare)) 0 0);
}

.render-compare-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--compare);
  width: 2px;
  transform: translateX(-1px);
  background: #ffffff;
  box-shadow: 0 0 0 1px rgba(8, 25, 87, 0.18), 0 0 20px rgba(0, 0, 0, 0.28);
}

.render-compare-divider::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 18px;
  height: 18px;
  transform: translateX(-50%);
  border: 3px solid #ffffff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 5px 14px rgba(8, 25, 87, 0.28);
}

.render-compare-label {
  position: absolute;
  top: 14px;
  z-index: 2;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(8, 25, 87, 0.82);
  color: #fff;
  font-size: 15.6px;
  font-weight: 900;
}

.render-compare-label-before {
  left: 14px;
}

.render-compare-label-after {
  right: 14px;
  background: var(--accent);
}

.render-compare-range {
  width: 100%;
  accent-color: var(--accent);
  cursor: ew-resize;
}

.render-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(7, 19, 52, 0.36);
  backdrop-filter: blur(6px);
}

.render-loading-overlay.hidden {
  display: none;
}

.render-loading-card {
  width: min(380px, 100%);
  display: grid;
  justify-items: center;
  gap: 13px;
  padding: 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--primary);
  text-align: center;
  box-shadow: 0 24px 60px rgba(8, 25, 87, 0.28);
}

.render-loading-mark {
  position: relative;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #081957, #0b5cff);
  box-shadow: 0 14px 34px rgba(11, 92, 255, 0.28);
}

.render-loading-mark::before {
  content: "";
  width: 42px;
  height: 42px;
  border: 4px solid rgba(255, 255, 255, 0.34);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: render-loading-spin 0.9s linear infinite;
}

.render-loading-mark span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  opacity: 0.8;
  animation: render-loading-pulse 1.2s ease-in-out infinite;
}

.render-loading-mark span:nth-child(1) {
  top: 15px;
  right: 18px;
}

.render-loading-mark span:nth-child(2) {
  bottom: 17px;
  left: 17px;
  animation-delay: 0.18s;
}

.render-loading-mark span:nth-child(3) {
  bottom: 14px;
  right: 17px;
  animation-delay: 0.36s;
}

.render-loading-card strong {
  color: var(--primary);
  font-size: 28.6px;
  font-weight: 900;
}

.render-loading-card p {
  max-width: 300px;
  margin: 0;
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 850;
  line-height: 1.6;
}

.render-loading-progress {
  width: 100%;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf8;
}

.render-loading-progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #081957, #0b5cff, #7db7ff);
  animation: render-loading-progress 1.25s ease-in-out infinite;
}

@keyframes render-loading-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes render-loading-pulse {
  0%,
  100% {
    transform: scale(0.72);
    opacity: 0.42;
  }
  50% {
    transform: scale(1.2);
    opacity: 1;
  }
}

@keyframes render-loading-progress {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(250%);
  }
}

.render-preview.is-photo-preview {
  background: #f7f3ec;
}

.render-preview.is-ai-result {
  background: #ffffff;
}

.render-preview.is-render-loading {
  cursor: wait;
}

.planner-render-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 12px;
  padding: 28px;
  background:
    linear-gradient(135deg, rgba(8, 12, 18, 0.78), rgba(0, 38, 84, 0.64)),
    rgba(0, 0, 0, 0.55);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(6px);
}

.planner-render-loading strong {
  font-size: 28.6px;
  font-weight: 900;
}

.planner-render-loading span {
  max-width: 520px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 18.2px;
  font-weight: 800;
  line-height: 1.6;
}

.planner-render-loading small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 15.6px;
  font-weight: 900;
}

.planner-render-spinner {
  width: 54px;
  height: 54px;
  border: 5px solid rgba(255, 255, 255, 0.26);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: planner-render-spin 0.9s linear infinite;
}

.planner-render-progress {
  width: min(460px, 82%);
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.planner-render-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7dd3fc, #2563eb, #ffffff);
  transition: width 0.35s ease;
}

@keyframes planner-render-spin {
  to {
    transform: rotate(360deg);
  }
}

.render-preview-trigger {
  margin-top: 0;
}

.render-download-link {
  display: inline-flex;
  margin-top: 0;
}

.render-result-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.render-feedback-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(8, 25, 87, 0.14);
  border-radius: 12px;
  background: #f8fbff;
}

.render-feedback-panel.hidden {
  display: none;
}

.render-feedback-panel > div:first-child {
  display: grid;
  gap: 3px;
}

.render-feedback-panel strong {
  color: var(--primary);
  font-size: 19.5px;
  font-weight: 900;
}

.render-feedback-panel span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
  line-height: 1.45;
}

.render-feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.render-feedback-actions button {
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(8, 25, 87, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--primary);
  font-size: 15.6px;
  font-weight: 900;
  cursor: pointer;
}

.render-feedback-actions button:hover,
.render-feedback-actions button.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.render-feedback-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.render-feedback-panel label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 900;
}

.render-feedback-panel input {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.render-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

#renderStatus {
  color: var(--accent-strong);
  font-size: 16.9px;
  font-weight: 900;
}

.image-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
}

.image-preview-modal.hidden {
  display: none;
}

.image-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 16, 32, 0.68);
}

.image-preview-panel {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(8, 16, 32, 0.28);
  overflow: hidden;
}

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

.image-preview-body {
  padding: 16px;
  overflow: auto;
  background: #f5f8fb;
}

.image-preview-body img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
  background: #fff;
}

.tile-picker-panel {
  width: min(1120px, 100%);
}

.tile-picker-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  overflow: auto;
}

.tile-picker-empty {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  color: var(--muted);
  font-weight: 800;
  text-align: center;
}

.tile-picker-option {
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.tile-picker-option.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(11, 191, 174, 0.18);
}

.tile-picker-option img,
.tile-picker-option-empty {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #f4f7f8;
}

.tile-picker-option-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
}

.tile-picker-option-copy {
  display: grid;
  gap: 6px;
}

.tile-picker-option-copy strong {
  color: var(--ink);
  font-size: 18.2px;
  font-weight: 900;
  line-height: 1.45;
}

.tile-picker-option-copy span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
  line-height: 1.45;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid #eadfce;
  border-radius: 8px;
  background: #fff;
}

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

th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid #eadfce;
  text-align: right;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  color: var(--accent-strong);
  background: #f5f0e8;
}

.total-box {
  width: min(430px, 100%);
  margin: 18px 0 0 auto;
}

.total-box div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid #eadfce;
}

.total-box div:last-child {
  border-bottom: 0;
}

.grand-total {
  color: var(--accent-strong);
  font-size: 26px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: #fff;
  font-weight: 800;
}

@media (max-width: 1180px) {
  .workspace,
  .hero-grid,
  .catalog-toolbar,
  .section-header-inline,
  .product-detail-layout {
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .catalog-summary-card {
    width: 100%;
  }

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

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

  .tile-finder-filter-head,
  .tile-finder-facet-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .tile-finder-price-filter,
  .tile-finder-stock-filter {
    grid-template-columns: 1fr;
  }

  .product-card [data-add-product] {
    top: 14px;
    right: 14px;
  }

  .detail-gallery-grid,
  .category-grid,
  .home-flow-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-grid,
  .doc-summary,
  .check-list,
  .cost-summary,
  .proposal-template-grid,
  .proposal-company-grid,
  .proposal-select-actions,
  .proposal-select-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .app-shell {
    padding: 14px 14px 36px;
  }

  .topbar,
  .server-control-header,
  .page-heading,
  .panel-heading,
  .customer-list-header,
  .doc-brand,
  .section-header-inline,
  .catalog-toolbar,
  .proposal-select-header,
  .proposal-select-group-header {
    align-items: stretch;
    flex-direction: column;
  }

  .taxonomy-sort-toolbar {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .taxonomy-sort-toolbar label,
  .taxonomy-sort-toolbar select {
    width: 100%;
  }

  .top-actions,
  .detail-actions,
  .document-tabs,
  .auth-actions,
  .auth-session,
  .hero-actions,
  .product-pagination-toolbar {
    width: 100%;
  }

  .topbar h1,
  .hero-panel h2 {
    font-size: clamp(2.6rem, 10.4vw, 3.38rem);
    line-height: 1.16;
  }

  .workspace,
  .social-signup-grid,
  .detail-gallery-grid,
  .filter-grid,
  .form-grid,
  .render-grid,
  .render-preview-grid,
  .inline-field,
  .detail-spec-grid,
  .doc-summary,
  .check-list,
  .proposal-template-grid,
  .proposal-company-grid,
  .proposal-select-actions,
  .proposal-select-list,
  .product-card,
  .cart-item,
  .cart-controls,
  .cost-summary,
  .category-grid,
  .home-flow-grid {
    grid-template-columns: 1fr;
  }

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

  .tile-finder-panel,
  .ai-tile-finder-hero,
  .tile-finder-preview,
  .tile-finder-controls {
    grid-template-columns: 1fr;
  }

  .tile-finder-preview img {
    width: min(180px, 100%);
  }

  .tile-finder-analysis-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .tile-finder-analysis-row {
    grid-template-columns: 1fr;
  }

  .tile-finder-analysis-row > span {
    padding-top: 0;
  }

  .tile-finder-result-group-title {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .tile-finder-result-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    padding: 14px;
  }

  .product-thumb,
  .product-detail-trigger {
    width: 100%;
    max-height: 220px;
  }

  .proposal-item-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .proposal-item-image,
  .proposal-image-button {
    width: 76px;
  }

  .cart-controls button,
  .cart-controls input,
  .cart-price-readout,
  .inline-field .compact-action {
    width: 100%;
  }

  .commerce-panel,
  .input-panel,
  .preview-panel,
  .hero-panel,
  .page-heading,
  .server-control-panel,
  .home-flow-section {
    padding: 16px;
  }

  .document-view {
    min-height: auto;
    padding: 22px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .topbar,
  .app-nav,
  .input-panel,
  .document-actions,
  .document-tabs,
  .page-heading {
    display: none;
  }

  .app-shell,
  .preview-panel,
  .document-view {
    padding: 0;
    border: 0;
    box-shadow: none;
    background: #fff;
  }

  .app-page {
    display: none !important;
  }

  #proposalPage {
    display: block !important;
  }

  .document-view.hidden {
    display: none;
  }
}

@media (max-width: 900px) {
  .document-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .document-action-status {
    justify-items: start;
    text-align: left;
  }
}

@media (max-width: 640px) {
  .tile-finder-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell {
    padding: 12px 12px 28px;
  }

  .topbar {
    gap: 14px;
    padding: 16px;
  }

  .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .top-actions > .server-status-pill {
    grid-column: 1 / -1;
    width: 100%;
    text-align: center;
  }

  .auth-actions,
  .auth-session,
  .server-control-actions,
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .auth-session .auth-badge {
    grid-column: 1 / -1;
    justify-content: flex-start;
    width: 100%;
  }

  .topbar h1 {
    font-size: clamp(2.21rem, 9.1vw, 2.73rem);
  }

  .page-heading h2,
  .panel-heading h2,
  .doc-brand h2,
  .cart-heading strong,
  .server-control-header h3,
  .section-header-inline h3,
  .catalog-toolbar-copy h3,
  .detail-spec-panel h3 {
    font-size: 28.6px;
  }

  .eyebrow {
    margin-bottom: 4px;
  }

  .app-nav {
    gap: 6px;
    margin-bottom: 18px;
    padding: 5px;
  }

  .app-nav button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 18.2px;
  }

  .app-nav span {
    min-width: 22px;
    padding: 2px 6px;
  }

  .hero-panel h2 {
    font-size: clamp(2.535rem, 10.4vw, 3.12rem);
    line-height: 1.14;
  }

  .hero-copy > p:last-of-type,
  .section-header-inline p:last-child,
  .catalog-toolbar-copy p:last-child {
    font-size: 18.2px;
    line-height: 1.65;
  }

  .hero-inline-meta {
    gap: 8px;
  }

  .hero-inline-meta span,
  .category-kicker {
    min-height: 32px;
    font-size: 14.3px;
  }

  .highlight-card,
  .flow-card,
  .category-card,
  .social-signup-button {
    min-height: 0;
    padding: 16px;
  }

  .category-card strong {
    font-size: 31.2px;
    margin-bottom: 8px;
  }

  .product-list.product-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    align-items: start;
  }

  .tile114-test-controls,
  .tile114-sample-grid,
  .tile114-sample-card {
    grid-template-columns: 1fr;
  }

  .tile114-sample-card img,
  .tile114-sample-image-empty {
    max-width: 220px;
  }

  .product-page-list .product-card {
    position: relative;
    width: 100%;
    min-width: 0;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px;
    align-content: start;
  }

  .product-page-list .product-card > :last-child:not([data-add-product]) {
    width: 100%;
  }

  .product-page-list .product-card [data-add-product] {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: auto;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 14.3px;
    line-height: 1;
  }

  .product-page-list .product-thumb,
  .product-page-list .product-detail-trigger {
    width: 100%;
    max-height: none;
  }

  .product-page-list .product-thumb {
    aspect-ratio: 1.2;
  }

  .product-page-list .product-card > div:nth-child(2) {
    display: grid;
    gap: 4px;
  }

  .product-page-list .product-name-button {
    margin-bottom: 0;
    font-size: 16.9px;
    line-height: 1.35;
  }

  .product-page-list .product-card span {
    font-size: 14.3px;
    line-height: 1.45;
  }

  .cart-item {
    gap: 12px;
  }

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

  .cart-controls [data-remove-product] {
    grid-column: 1 / -1;
  }

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

  .proposal-item-card {
    grid-template-columns: 72px minmax(0, 1fr);
    min-height: 0;
  }

  .proposal-item-image,
  .proposal-image-button {
    width: 72px;
  }

  .proposal-render-surface-body {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .proposal-render-surface-image {
    width: 64px;
  }

  .proposal-render-workflow-body {
    display: grid;
  }

  .document-view {
    padding: 18px;
  }

  .doc-section {
    margin-top: 18px;
  }

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

  .render-product-card img,
  .render-product-empty {
    width: 72px;
  }

  .render-preview {
    min-height: 180px;
  }

  .render-direction-grid {
    grid-template-columns: 1fr;
  }

  .render-surface-config {
    grid-template-columns: 1fr;
  }

  .render-surface-actions {
    justify-content: flex-start;
  }

  .tile-picker-body {
    grid-template-columns: 1fr;
  }

  .render-preview-large {
    min-height: 320px;
  }

  .render-before-after {
    min-height: 320px;
  }

  .render-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .render-actions > * {
    width: 100%;
  }

  .render-result-actions {
    flex-direction: column;
  }

  .render-result-actions > * {
    width: 100%;
  }

  .image-preview-modal {
    padding: 12px;
  }

  .image-preview-header {
    padding: 12px 14px;
  }

  .image-preview-body {
    padding: 10px;
  }

  .table-wrap table {
    min-width: 560px;
  }
}

.admin-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.admin-summary-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 8px;
}

.admin-summary-card span {
  font-size: 15.6px;
  color: var(--muted);
  font-weight: 700;
}

.admin-summary-card strong {
  font-size: 31.2px;
  line-height: 1.1;
}

.admin-summary-card p {
  margin: 0;
  font-size: 16.9px;
  color: var(--muted);
  line-height: 1.5;
}

.quality-summary-grid {
  margin-bottom: 16px;
}

.admin-ops-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(8, 25, 87, 0.14);
  border-radius: 16px;
  background: linear-gradient(135deg, #081957 0%, #0b5cff 100%);
  color: #fff;
  margin-bottom: 16px;
}

.admin-ops-hero .eyebrow,
.admin-ops-hero p {
  color: rgba(255, 255, 255, 0.78);
}

.admin-ops-hero h3 {
  margin: 4px 0 8px;
  font-size: 36.4px;
  letter-spacing: 0;
}

.admin-ops-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-ops-actions .secondary-action {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.1);
}

.admin-ops-kpi-grid {
  margin-bottom: 16px;
}

.admin-launch-board {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 14px;
  margin-bottom: 16px;
}

.admin-launch-panel,
.admin-launch-timeline-panel {
  border-color: rgba(8, 25, 87, 0.14);
}

.admin-launch-status {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(180px, 0.8fr);
  gap: 12px;
  margin-bottom: 12px;
}

.admin-launch-status > div {
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}

.admin-launch-status span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
}

.admin-launch-status strong {
  display: block;
  color: var(--primary);
  font-size: 26px;
  line-height: 1.2;
}

.admin-launch-status p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16.9px;
  line-height: 1.45;
}

.admin-launch-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5edf8;
  margin-bottom: 14px;
}

.admin-launch-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #081957 0%, #0b5cff 100%);
  transition: width 0.25s ease;
}

.admin-launch-todos {
  display: grid;
  gap: 10px;
}

.admin-launch-request-status {
  margin-top: 10px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fbff;
  color: var(--primary);
  padding: 10px 12px;
  font-size: 16.9px;
  font-weight: 800;
  line-height: 1.45;
}

.admin-launch-request-status.is-success {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #166534;
}

.admin-launch-request-status.is-error {
  border-color: #fecaca;
  background: #fff1f2;
  color: #991b1b;
}

.admin-launch-todo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.admin-launch-todo label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.admin-launch-todo input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #081957;
}

.admin-launch-todo span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.admin-launch-todo small {
  width: fit-content;
  border-radius: 999px;
  background: #edf2ff;
  color: var(--primary);
  padding: 3px 8px;
  font-size: 14.3px;
  font-weight: 900;
}

.admin-launch-todo strong {
  color: var(--primary);
  font-size: 19.5px;
}

.admin-launch-todo em {
  color: var(--muted);
  font-size: 16.9px;
  font-style: normal;
  line-height: 1.4;
}

.admin-launch-todo.is-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.admin-launch-todo.is-done strong,
.admin-launch-todo.is-done em {
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(8, 25, 87, 0.35);
}

.admin-launch-todo-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.admin-launch-todo-actions button {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
}

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

.admin-launch-phase {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px;
}

.admin-launch-phase > span {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: var(--primary);
  font-size: 15.6px;
  font-weight: 900;
}

.admin-launch-phase strong {
  display: block;
  color: var(--primary);
}

.admin-launch-phase small {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-weight: 800;
}

.admin-launch-phase p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 15.6px;
  line-height: 1.4;
}

.admin-launch-phase.is-current {
  border-color: rgba(11, 92, 255, 0.35);
  background: #eff6ff;
}

.admin-launch-phase.is-current > span {
  background: #081957;
  color: #fff;
}

.admin-launch-phase.is-done {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.admin-launch-phase.is-skipped {
  border-style: dashed;
  border-color: #cbd5e1;
  background: #f8fafc;
  opacity: 0.78;
}

.admin-launch-phase.is-skipped > span {
  background: #cbd5e1;
  color: #334155;
}

.admin-ops-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.3fr);
  gap: 14px;
  margin-bottom: 16px;
}

.admin-ops-table-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.admin-ops-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  min-width: 0;
}

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

.admin-task-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  align-items: center;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 12px;
  color: var(--primary);
  cursor: pointer;
}

.admin-task-item strong {
  font-size: 26px;
}

.admin-task-item small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
}

.admin-task-item.is-danger {
  border-color: #fecaca;
  background: #fff1f2;
}

.admin-task-item.is-warning {
  border-color: #fde68a;
  background: #fffbeb;
}

.admin-task-item.is-stable {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.admin-process-steps {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.admin-process-step {
  display: grid;
  gap: 6px;
  align-content: start;
  min-height: 126px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px;
}

.admin-process-step span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 15.6px;
  font-weight: 900;
}

.admin-process-step strong,
.admin-process-step b {
  color: var(--primary);
}

.admin-process-step small {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.compact-table-wrap {
  margin-top: 0;
}

.compact-table-wrap table {
  min-width: 620px;
}

.quality-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

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

.compact-section-header {
  margin-bottom: 12px;
}

.compact-section-header h4 {
  margin: 0;
  font-size: 20.8px;
}

.quality-field-list,
.quality-priority-list {
  display: grid;
  gap: 10px;
}

.quality-field-row,
.quality-priority-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  padding: 10px 12px;
}

.quality-field-row > div:first-child,
.quality-priority-card > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.quality-field-row strong,
.quality-priority-card strong {
  color: var(--primary);
}

.quality-field-row span,
.quality-priority-card p {
  margin: 0;
  font-size: 16.9px;
  color: var(--muted);
}

.quality-progress {
  height: 8px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}

.quality-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #0b5cff;
}

.quality-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--primary);
  font-size: 15.6px;
  font-weight: 800;
  white-space: nowrap;
}

.quality-badge.is-high {
  background: #fee2e2;
  color: #991b1b;
}

.quality-badge.is-mid {
  background: #fef3c7;
  color: #92400e;
}

.quality-badge.is-low {
  background: #dcfce7;
  color: #166534;
}

.quality-issue-list {
  min-width: 240px;
  white-space: normal;
}

.quality-issue-list .quality-badge {
  margin: 2px;
}

.admin-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-training-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
  margin: 18px 0;
  align-items: start;
}

.search-training-image-panel,
.search-training-form-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 14px;
}

.search-training-image-frame {
  aspect-ratio: 1 / 1;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-training-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.search-training-product-meta {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 16.9px;
  line-height: 1.45;
}

.search-training-product-meta strong {
  color: var(--primary);
  font-size: 20.8px;
  line-height: 1.35;
}

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

.search-training-prediction-grid div {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 11px 12px;
  display: grid;
  gap: 4px;
  min-width: 0;
}

.search-training-prediction-grid span {
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 700;
}

.search-training-prediction-grid strong {
  color: var(--primary);
  font-size: 18.2px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-training-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.search-training-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 700;
}

.search-training-form label:nth-last-of-type(-n + 2),
.search-training-form button {
  grid-column: 1 / -1;
}

.search-training-form select,
.search-training-form input,
.search-training-form textarea {
  width: 100%;
  min-width: 0;
}

.search-training-batch-panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  margin: 18px 0;
  display: grid;
  gap: 14px;
}

.search-training-batch-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr)) repeat(3, max-content);
  gap: 10px;
  align-items: end;
}

.search-training-batch-toolbar label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
}

.search-training-batch-toolbar select {
  width: 100%;
  min-width: 0;
}

.search-training-batch-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.search-training-batch-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  display: grid;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  min-width: 0;
  color: var(--primary);
}

.search-training-batch-card:hover {
  border-color: rgba(0, 91, 255, 0.42);
  box-shadow: 0 10px 22px rgba(8, 25, 87, 0.08);
}

.search-training-batch-card.is-selected {
  border-color: #005bff;
  background: #eef5ff;
  box-shadow: 0 0 0 2px rgba(0, 91, 255, 0.16);
}

.search-training-batch-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  background: #f8fafc;
}

.search-training-batch-card strong,
.search-training-batch-card small,
.search-training-batch-card em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-training-batch-card strong {
  font-size: 15.6px;
  line-height: 1.25;
}

.search-training-batch-card small {
  color: var(--muted);
  font-size: 14.3px;
  font-weight: 700;
}

.search-training-batch-card em {
  color: #005bff;
  font-size: 14.3px;
  font-style: normal;
  font-weight: 800;
}

.search-training-batch-check {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  border-radius: 999px;
  background: rgba(8, 25, 87, 0.78);
  color: #fff;
  padding: 4px 7px;
  font-size: 13px;
  font-weight: 900;
}

.admin-flow-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.admin-flow-column {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  display: grid;
  gap: 12px;
  align-content: start;
}

.admin-flow-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-flow-header strong {
  font-size: 19.5px;
}

.admin-flow-header span {
  min-width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
  color: var(--primary);
  font-size: 15.6px;
  font-weight: 700;
}

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

.admin-flow-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 12px;
  display: grid;
  gap: 4px;
}

.admin-flow-card strong {
  font-size: 18.2px;
}

.admin-flow-card span {
  font-size: 15.6px;
  color: var(--muted);
  line-height: 1.45;
}

.compact-empty-state {
  min-height: 0;
  padding: 18px 12px;
  font-size: 16.9px;
}

.admin-table th,
.admin-table td {
  white-space: nowrap;
}

@media (max-width: 480px) {
  .app-shell {
    padding: 10px 10px 24px;
  }

  .topbar,
  .commerce-panel,
  .input-panel,
  .preview-panel,
  .hero-panel,
  .page-heading,
  .server-control-panel,
  .home-flow-section {
    padding: 14px;
  }

  .top-actions,
  .auth-actions,
  .auth-session,
  .server-control-actions,
  .hero-actions {
    grid-template-columns: 1fr;
  }

  .topbar h1 {
    font-size: 2.08rem;
    line-height: 1.15;
  }

  .page-heading h2,
  .panel-heading h2,
  .doc-brand h2,
  .cart-heading strong,
  .server-control-header h3,
  .section-header-inline h3,
  .catalog-toolbar-copy h3,
  .detail-spec-panel h3 {
    font-size: 26px;
  }

  .hero-panel h2 {
    font-size: 2.34rem;
  }

  .app-nav button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 16.9px;
  }

  .product-card,
  .proposal-item-card,
  .render-product-card,
  .detail-spec-grid,
  .cost-summary,
  .doc-summary {
    grid-template-columns: 1fr;
  }

  .product-list.product-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
    align-items: start;
  }

  .search-training-batch-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-training-batch-toolbar button {
    min-height: 40px;
  }

  .search-training-batch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .product-page-list .product-card {
    width: 100%;
    min-width: 0;
    padding: 8px;
    gap: 8px;
  }

  .product-page-list .product-name-button {
    font-size: 15.6px;
  }

  .product-page-list .product-card span {
    font-size: 13px;
    line-height: 1.4;
  }

  .product-page-list .product-card [data-add-product] {
    top: 8px;
    right: 8px;
    min-height: 22px;
    padding: 0 7px;
    font-size: 13px;
  }

  .product-thumb,
  .product-detail-trigger,
  .proposal-item-image,
  .proposal-image-button,
  .render-product-card img,
  .render-product-empty {
    width: 100%;
  }

  .product-thumb,
  .proposal-item-image,
  .render-product-card img,
  .render-product-empty {
    aspect-ratio: 4 / 3;
  }

  .proposal-render-surface-body {
    grid-template-columns: 1fr;
  }

  .proposal-render-surface-image {
    width: 100%;
    aspect-ratio: 4 / 3;
  }

  .cart-controls,
  .detail-gallery-grid {
    grid-template-columns: 1fr;
  }

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

  .document-view {
    padding: 16px;
  }

  .table-wrap table {
    min-width: 520px;
  }
}

@media (max-width: 1024px) {
  .admin-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-ops-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-ops-layout,
  .admin-launch-board,
  .quality-layout,
  .search-training-layout {
    grid-template-columns: 1fr;
  }

  .search-training-form,
  .search-training-prediction-grid {
    grid-template-columns: 1fr;
  }

  .admin-ops-table-grid {
    grid-template-columns: 1fr;
  }

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

  .proposal-template-preview-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .admin-summary-grid {
    grid-template-columns: 1fr;
  }

  .admin-flow-board {
    grid-template-columns: 1fr;
  }

  .admin-ops-hero {
    padding: 16px;
  }

  .admin-ops-hero h3 {
    font-size: 28.6px;
  }

  .admin-ops-actions,
  .admin-ops-actions .secondary-action {
    width: 100%;
  }

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

  .admin-launch-status,
  .admin-launch-todo {
    grid-template-columns: 1fr;
  }

  .admin-launch-todo-actions,
  .admin-launch-todo-actions button {
    width: 100%;
  }

  .proposal-template-card {
    padding: 16px 16px 16px 44px;
  }

  .proposal-template-preview-stage {
    min-height: 240px;
    padding: 14px;
  }

  .proposal-template-preview-cover {
    padding: 18px;
  }

  .proposal-template-preview-spread {
    grid-template-columns: 1fr;
  }
}

body.customer-experience-mode {
  background:
    linear-gradient(180deg, #eaf2ff 0%, #ffffff 100%);
  color: #081957;
}

body.customer-experience-mode .app-shell {
  max-width: 1180px;
  margin-inline: auto;
  padding-bottom: 132px;
}

body.customer-experience-mode .topbar,
body.customer-experience-mode .app-nav,
body.customer-experience-mode .customer-page {
  max-width: 1120px;
}

.global-home-banner {
  display: none;
}

body.customer-experience-mode .global-home-banner {
  display: none;
  width: min(100%, 1320px);
  max-width: 1320px;
  margin-inline: auto;
}

body.customer-experience-mode[data-page="homePage"] .global-home-banner {
  display: block;
}

body[data-page="proposalPage"] .global-home-banner {
  display: none !important;
}

body.customer-experience-mode .topbar {
  justify-content: flex-end;
  margin-bottom: 18px;
  padding: 22px 24px;
  border: 1px solid rgba(8, 25, 87, 0.12);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 60px rgba(8, 25, 87, 0.08);
}

body.customer-experience-mode .app-nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(8, 25, 87, 0.12);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 42px rgba(8, 25, 87, 0.1);
}

body.customer-experience-mode .app-nav button {
  flex: 1 1 0;
  display: grid;
  gap: 4px;
  justify-items: center;
  min-height: 66px;
  padding: 10px 12px;
  border-radius: 22px;
  color: #58617f;
}

body.customer-experience-mode .app-nav button.active {
  color: #fff;
  background: #081957;
  box-shadow: 0 10px 20px rgba(8, 25, 87, 0.16);
}

body.customer-experience-mode .nav-glyph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 34px;
  margin: 0;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 14.3px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

body.customer-experience-mode .app-nav button.active .nav-glyph {
  background: var(--blue);
  color: #fff;
}

body.customer-experience-mode .nav-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  color: inherit;
  background: transparent;
  font-size: 16.9px;
  font-weight: 900;
  line-height: 1.2;
}

body.customer-experience-mode .nav-copy span {
  margin: 0;
  padding: 3px 7px;
  color: var(--blue);
  background: var(--blue-soft);
}

body.customer-experience-mode .customer-page {
  gap: 22px;
}

body.customer-experience-mode .customer-top-banner {
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #05070b;
  box-shadow: none;
}

body.customer-experience-mode .customer-top-banner-slider {
  width: 100%;
  overflow: hidden;
}

body.customer-experience-mode .customer-top-banner-track {
  display: flex;
  width: 400%;
  animation: customer-home-banner-slide 8s infinite;
}

body.customer-experience-mode .customer-top-banner-slide {
  flex: 0 0 25%;
}

body.customer-experience-mode .customer-top-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

@keyframes customer-home-banner-slide {
  0%, 20% {
    transform: translateX(0);
  }
  25%, 45% {
    transform: translateX(-25%);
  }
  50%, 70% {
    transform: translateX(-50%);
  }
  75%, 95% {
    transform: translateX(-75%);
  }
  100% {
    transform: translateX(0);
  }
}

body.customer-experience-mode .hero-panel,
body.customer-experience-mode .page-heading,
body.customer-experience-mode .commerce-panel {
  border: 1px solid rgba(8, 25, 87, 0.1);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 22px 48px rgba(8, 25, 87, 0.08);
}

body.customer-experience-mode .customer-hero-panel {
  padding: 34px;
  background:
    linear-gradient(180deg, #eaf2ff 0%, rgba(255, 255, 255, 0.98) 100%);
}

body.customer-experience-mode .customer-home-entry {
  display: grid;
  gap: 22px;
}

body.customer-experience-mode .customer-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

body.customer-experience-mode .customer-entry-button {
  display: grid;
  grid-template-rows: minmax(120px, auto) auto;
  gap: 16px;
  align-content: start;
  justify-items: center;
  width: 100%;
  min-width: 0;
  padding: 22px;
  border: 1px solid rgba(8, 25, 87, 0.1);
  border-radius: 30px;
  background: #ffffff;
  text-align: center;
  box-shadow: 0 16px 36px rgba(8, 25, 87, 0.07);
}

body.customer-experience-mode .customer-entry-button--sample {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 260px) 1fr;
  grid-template-rows: auto;
  align-items: center;
  gap: 10px 18px;
  padding: 14px 22px;
}

body.customer-experience-mode .customer-entry-button--sample img {
  height: 72px;
}

body.customer-experience-mode .customer-entry-button--sample span {
  text-align: left;
}

body.customer-experience-mode .customer-entry-button img {
  width: 100%;
  max-width: 320px;
  height: 108px;
  object-fit: contain;
  align-self: center;
  justify-self: center;
}

body.customer-experience-mode .customer-entry-button span {
  color: #6b7280;
  font-size: 18.2px;
  font-weight: 800;
  line-height: 1.5;
}

body.customer-experience-mode .home-section {
  padding: 28px;
  border-radius: 32px;
}

body.customer-experience-mode .section-header-inline {
  align-items: start;
}

body.customer-experience-mode .section-header-inline h3 {
  font-size: clamp(2.34rem, 3.9vw, 3.38rem);
  line-height: 1.12;
  letter-spacing: -0.04em;
}

body.customer-experience-mode .customer-stat-grid,
body.customer-experience-mode .customer-review-strip {
  display: grid;
  gap: 16px;
}

body.customer-experience-mode .customer-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.customer-experience-mode .customer-review-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.customer-experience-mode .customer-stat-card,
body.customer-experience-mode .customer-review-card {
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(8, 25, 87, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf2ff 100%);
}

body.customer-experience-mode .customer-review-card {
  display: grid;
  gap: 10px;
}

body.customer-experience-mode .customer-review-card strong {
  font-size: 28.6px;
  line-height: 1.25;
}

body.customer-experience-mode .customer-review-card p {
  margin: 0;
  color: #58617f;
  line-height: 1.7;
}

body.customer-experience-mode .customer-category-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.customer-experience-mode .category-card {
  min-height: 240px;
  padding: 24px;
  border-radius: 30px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf2ff 100%);
}

body.customer-experience-mode .customer-admin-entry {
  background: linear-gradient(180deg, #eaf2ff 0%, #ffffff 100%);
}

body.customer-experience-mode .customer-admin-actions,
body.customer-experience-mode .customer-cart-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

body.customer-experience-mode .cart-render-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaf2ff;
}

body.customer-experience-mode .cart-render-entry div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

body.customer-experience-mode .cart-render-entry strong {
  color: var(--ink);
  font-size: 22.1px;
  line-height: 1.35;
}

body.customer-experience-mode .cart-render-entry span {
  color: var(--muted);
  font-size: 16.9px;
  font-weight: 800;
  line-height: 1.55;
}

body.customer-experience-mode .cart-render-entry .primary-action {
  flex: 0 0 auto;
}

body.customer-experience-mode .customer-page-heading {
  padding: 26px 28px;
}

body.customer-experience-mode .customer-page-heading h2 {
  font-size: clamp(2.47rem, 3.9vw, 3.64rem);
  letter-spacing: -0.04em;
}

body.customer-experience-mode .customer-catalog-panel,
body.customer-experience-mode .customer-cart-panel {
  padding: 28px;
}

body.customer-experience-mode .customer-catalog-hero {
  padding: 24px;
  border-radius: 28px;
  background: linear-gradient(180deg, #eaf2ff 0%, #ffffff 100%);
}

body.customer-experience-mode .customer-filter-shortcuts {
  margin-top: 2px;
}

body.customer-experience-mode .filter-grid {
  gap: 14px;
}

body.customer-experience-mode .filter-grid label {
  font-weight: 800;
}

body.customer-experience-mode input,
body.customer-experience-mode select,
body.customer-experience-mode textarea {
  min-height: 54px;
  border: 1px solid rgba(8, 25, 87, 0.14);
  border-radius: 18px;
  background: #ffffff;
}

body.customer-experience-mode .customer-list-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

body.customer-experience-mode .customer-list-header strong {
  font-size: 26px;
}

body.customer-experience-mode .customer-list-header span,
body.customer-experience-mode .product-pagination-toolbar label,
body.customer-experience-mode .taxonomy-sort-toolbar label,
body.customer-experience-mode .customer-cart-note {
  color: #58617f;
  font-size: 18.2px;
  line-height: 1.7;
}

body.customer-experience-mode #productListStatus {
  font-weight: 800;
}

body.customer-experience-mode .product-page-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.customer-experience-mode .product-card {
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  padding: 20px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf2ff 100%);
}

body.customer-experience-mode .product-thumb {
  aspect-ratio: 4 / 4.35;
  border-radius: 22px;
}

body.customer-experience-mode .product-name-button {
  font-size: 28.6px;
  letter-spacing: -0.03em;
}

body.customer-experience-mode .product-card > div:nth-child(2) {
  gap: 6px;
}

body.customer-experience-mode .product-card [data-add-product] {
  position: static;
  justify-self: start;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 12px 24px rgba(18, 104, 255, 0.22);
}

body.customer-experience-mode .customer-cart-panel {
  display: grid;
  gap: 18px;
}

body.customer-experience-mode .customer-cart-heading {
  align-items: end;
}

body.customer-experience-mode .cart-page-list {
  gap: 18px;
}

body.customer-experience-mode .cart-item {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border-radius: 28px;
}

body.customer-experience-mode .cart-item-main {
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
}

body.customer-experience-mode .cart-item-image {
  width: 96px;
  border-radius: 24px;
}

body.customer-experience-mode .cart-item strong {
  font-size: 28.6px;
  letter-spacing: -0.03em;
}

body.customer-experience-mode .cart-controls {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

body.customer-experience-mode .cart-controls label,
body.customer-experience-mode .cart-price-readout {
  min-height: 100%;
  padding: 10px 12px;
  border: 1px solid rgba(8, 25, 87, 0.12);
  border-radius: 18px;
  background: #ffffff;
}

body.customer-experience-mode .cart-controls label {
  display: grid;
  gap: 8px;
  align-content: start;
  color: #081957;
  font-size: 15.6px;
  font-weight: 900;
}

body.customer-experience-mode .cart-controls input {
  min-height: 42px;
}

body.customer-experience-mode .cart-tile-calculator {
  border-radius: 22px;
  background: linear-gradient(180deg, #f5f8ff 0%, #ffffff 100%);
}

body.customer-experience-mode .cart-tile-calculator-result {
  border-radius: 18px;
}

body.customer-experience-mode .cart-controls button {
  min-height: 58px;
  border-radius: 18px;
}

body.customer-experience-mode .cart-price-readout {
  background: linear-gradient(180deg, #eaf2ff 0%, #ffffff 100%);
}

body.customer-experience-mode .cost-summary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

body.customer-experience-mode .cost-summary div {
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #eaf2ff 100%);
}

body.customer-experience-mode .customer-cart-actions .primary-action,
body.customer-experience-mode .customer-admin-actions .secondary-action {
  min-height: 52px;
  border-radius: 18px;
}

@media (max-width: 1024px) {
  body.customer-experience-mode .customer-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.customer-experience-mode .customer-stat-grid,
  body.customer-experience-mode .customer-category-grid,
  body.customer-experience-mode .customer-review-strip,
  body.customer-experience-mode .product-page-list,
  body.customer-experience-mode .cost-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.customer-experience-mode .cart-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cart-tile-calculator,
  body.customer-experience-mode .cart-tile-calculator {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.customer-experience-mode .app-shell {
    padding: 16px 14px 150px;
  }

  body.customer-experience-mode .global-home-banner {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
  }

  body.customer-experience-mode .topbar {
    padding: 18px 18px 16px;
    border-radius: 28px;
  }

  body.customer-experience-mode .top-actions {
    justify-content: flex-start;
  }

  body.customer-experience-mode .app-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: 12px;
    top: auto;
    margin-bottom: 0;
    overflow-x: auto;
  }

  body.customer-experience-mode .app-nav button {
    min-width: 110px;
  }

  .member-board-head {
    align-items: stretch;
    flex-direction: column;
  }

  .member-board-grid {
    grid-template-columns: 1fr;
  }

  .member-board-card {
    min-height: 98px;
  }

  .manual-business-input-panel {
    grid-template-columns: 1fr;
  }

  body.customer-experience-mode .customer-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body.customer-experience-mode .customer-stat-grid,
  body.customer-experience-mode .customer-category-grid,
  body.customer-experience-mode .customer-review-strip,
  body.customer-experience-mode .product-page-list,
  body.customer-experience-mode .cost-summary {
    grid-template-columns: 1fr;
  }

  .cart-tile-calculator,
  body.customer-experience-mode .cart-tile-calculator {
    grid-template-columns: 1fr;
  }

  body.customer-experience-mode .customer-entry-button {
    gap: 8px;
    padding: 12px 8px;
    border-radius: 22px;
  }

  body.customer-experience-mode .customer-entry-button img {
    max-width: 100%;
    height: 62px;
  }

  body.customer-experience-mode .customer-entry-button span {
    font-size: 15.6px;
    line-height: 1.35;
    word-break: keep-all;
  }

  body.customer-experience-mode .customer-entry-button--sample {
    grid-template-columns: minmax(0, 140px) 1fr;
    gap: 8px 12px;
    padding: 12px 14px;
  }

  body.customer-experience-mode .customer-entry-button--sample img {
    height: 46px;
  }

  body.customer-experience-mode .home-section,
  body.customer-experience-mode .customer-catalog-panel,
  body.customer-experience-mode .customer-cart-panel,
  body.customer-experience-mode .customer-page-heading,
  body.customer-experience-mode .customer-hero-panel {
    padding: 22px 18px;
    border-radius: 28px;
  }

  body.customer-experience-mode .section-header-inline,
  body.customer-experience-mode .customer-list-header,
  body.customer-experience-mode .page-heading,
  body.customer-experience-mode .cart-heading {
    grid-template-columns: 1fr;
    display: grid;
  }

  body.customer-experience-mode .detail-actions,
  body.customer-experience-mode .customer-admin-actions,
  body.customer-experience-mode .customer-cart-actions {
    flex-direction: column;
  }

  body.customer-experience-mode .cart-render-entry {
    display: grid;
  }

  body.customer-experience-mode .cart-item-main {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  body.customer-experience-mode .cart-item-image {
    width: 80px;
  }

  body.customer-experience-mode .cart-controls {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .planner-layout {
    grid-template-columns: 1fr;
  }

  .planner-photo-shell {
    grid-template-columns: 1fr;
  }

  .planner-photo-result-panel {
    position: static;
  }

  .planner-plan-upload-field,
  .planner-plan-tool {
    display: none;
  }

  .planner-plan-mobile-note {
    display: block;
  }

  .planner-canvas-mount {
    min-height: 430px;
  }
}

@media (max-width: 640px) {
  .planner-field-grid,
  .planner-summary {
    grid-template-columns: 1fr;
  }

  body[data-page="plannerPage"] .planner-photo-heading {
    align-items: stretch;
  }

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

  .planner-photo-progress > div {
    min-height: 52px;
    padding: 0 12px;
    border-bottom: 1px solid #e8ebee;
  }

  .planner-photo-progress > div:nth-child(2n) {
    border-right: 0;
  }

  .planner-photo-section,
  .planner-photo-result-panel {
    padding: 18px;
  }

  .planner-photo-section-heading {
    align-items: flex-start;
  }

  .planner-photo-selection-grid,
  .planner-photo-controls .planner-cart-products {
    grid-template-columns: 1fr;
  }

  .planner-photo-selection-grid .wide {
    grid-column: auto;
  }

  body[data-page="plannerPage"] .planner-photo-result .render-before-after {
    min-height: 320px;
  }

  .planner-photo-result-actions .secondary-action {
    flex: 1 1 130px;
  }

  .planner-stage-toolbar {
    display: grid;
  }

  .planner-canvas-mount {
    min-height: 360px;
  }
}

/* Product page compact grid: 3 square cards per row on desktop and mobile. */
body.customer-experience-mode .product-page-list,
.product-list.product-page-list {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  align-items: stretch !important;
  touch-action: pan-y;
}

body.customer-experience-mode .product-page-list.is-sliding,
.product-list.product-page-list.is-sliding {
  display: block !important;
  overflow: hidden !important;
}

.product-page-slide-track {
  display: flex;
  width: 200%;
  transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.product-page-slide-track.is-dragging {
  transition: none;
}

.product-page-slide-panel {
  display: grid;
  flex: 0 0 50%;
  width: 50%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

body.customer-experience-mode .product-page-list .product-card,
.product-page-list .product-card {
  position: relative !important;
  aspect-ratio: auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  grid-template-columns: 1fr !important;
  grid-template-rows: auto auto !important;
  gap: 7px !important;
  padding: 9px !important;
  border-radius: 8px !important;
  background: #fff !important;
}

body.customer-experience-mode .product-page-list .product-thumb,
.product-page-list .product-thumb,
body.customer-experience-mode .product-page-list .product-detail-trigger,
.product-page-list .product-detail-trigger {
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 7px !important;
}

body.customer-experience-mode .product-page-list .product-card > div:nth-child(2),
.product-page-list .product-card > div:nth-child(2) {
  min-width: 0;
  overflow: hidden;
}

body.customer-experience-mode .product-page-list .product-name-button,
.product-page-list .product-name-button {
  display: -webkit-box !important;
  overflow: hidden !important;
  margin: 0 !important;
  font-size: clamp(13px, 1.3vw, 16.9px) !important;
  line-height: 1.2 !important;
  text-overflow: ellipsis !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body.customer-experience-mode .product-page-list .product-card span,
.product-page-list .product-card span,
body.customer-experience-mode .product-page-list .expert-product-reasons,
.product-page-list .expert-product-reasons,
body.customer-experience-mode .product-page-list .member-price-line,
.product-page-list .member-price-line,
body.customer-experience-mode .product-page-list .price-locked,
.product-page-list .price-locked {
  overflow: hidden !important;
  font-size: clamp(10.4px, 1.118vw, 14.3px) !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.expert-product-reasons {
  display: block;
  max-width: 100%;
  color: var(--accent-strong);
  font-weight: 900;
}

body.customer-experience-mode .product-page-list .product-code-badge,
.product-page-list .product-code-badge {
  max-width: 100%;
  min-height: 18px;
  padding: 0 5px;
  overflow: hidden;
  font-size: 11.7px !important;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.customer-experience-mode .product-page-list .product-card [data-add-product],
.product-page-list .product-card [data-add-product] {
  position: absolute !important;
  top: 7px !important;
  right: 7px !important;
  z-index: 2;
  min-height: 28px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  box-shadow: 0 8px 16px rgba(8, 25, 87, 0.18);
}

body.customer-experience-mode .product-pagination-toolbar label {
  display: none;
}

@media (max-width: 720px) {
  .expert-search-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .expert-search-grid {
    grid-template-columns: 1fr;
  }

  .product-result-origin-option {
    align-items: stretch;
    flex-direction: column;
  }

  .product-result-origin-option label {
    min-width: 0;
  }

  .expert-search-panel {
    padding: 12px;
  }

  body.customer-experience-mode .product-page-list,
  .product-list.product-page-list {
    gap: 7px !important;
  }

  .product-page-slide-panel {
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.customer-experience-mode .product-page-list .product-card,
  .product-page-list .product-card {
    padding: 5px !important;
    gap: 4px !important;
  }

  body.customer-experience-mode .product-page-list .product-card [data-add-product],
  .product-page-list .product-card [data-add-product] {
    top: 4px !important;
    right: 4px !important;
    min-height: 26px !important;
    padding: 0 6px !important;
    font-size: 11.7px !important;
  }
}

/* Clean split: customer storefront vs internal operator console. */
.topbar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.topbar-brand:focus-visible {
  outline: 3px solid #0b5cff;
  outline-offset: 3px;
}

.brand-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 54px;
  overflow: hidden;
  border-radius: 2px;
  background: #fff;
  color: #fff;
  font-size: 18.2px;
  font-weight: 900;
  letter-spacing: 0;
}

.brand-logo-mark::after {
  content: none;
}

.brand-logo-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.topbar-brand strong,
.topbar-brand small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-brand strong {
  font-size: 20.8px;
  line-height: 1.25;
}

.topbar-brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 15.6px;
  font-weight: 800;
}

.topbar-search {
  display: none;
}

.web-category-rail {
  display: none;
}

.web-storefront-hero {
  display: none;
}

.mobile-home-shell {
  display: none;
}

.web-banner-mosaic,
.web-mosaic-card {
  display: none;
}

.nav-section {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 6px;
}

.customer-nav-group {
  flex: 1 1 auto;
}

.admin-nav-group {
  flex: 0 0 auto;
  margin-left: auto;
  padding-left: 8px;
  border-left: 1px solid var(--line);
}

.nav-section-label {
  flex: 0 0 auto;
  padding: 0 8px;
  color: var(--muted);
  font-size: 14.3px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

body.customer-experience-mode {
  background: #f7f9fc;
}

body.customer-experience-mode .app-shell {
  max-width: 1240px;
  padding: 18px 20px 96px;
}

body.customer-experience-mode .topbar,
body.customer-experience-mode .app-nav,
body.customer-experience-mode .customer-page {
  max-width: 1180px;
}

body.customer-experience-mode .topbar {
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 12px 14px;
  border-color: #e1e7f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body.customer-experience-mode .top-actions {
  justify-content: flex-end;
}

body.customer-experience-mode .server-status-pill {
  display: none;
}

body.customer-experience-mode .app-nav {
  top: 10px;
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px;
  border-color: #e1e7f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body.customer-experience-mode .customer-nav-group {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
}

body.customer-experience-mode .admin-nav-group,
body.customer-experience-mode .nav-section-label {
  display: none !important;
}

body.customer-experience-mode:not(.admin-authenticated) .admin-only {
  display: none !important;
}

body.customer-experience-mode .app-nav button {
  display: inline-flex;
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 6px;
}

body.customer-experience-mode .nav-glyph {
  display: none;
}

body.customer-experience-mode .nav-copy {
  justify-content: center;
  font-size: 16.9px;
}

body.customer-experience-mode .app-nav button.active {
  background: #081957;
  box-shadow: none;
}

body.customer-experience-mode .customer-top-banner {
  border-radius: 8px;
}

body.customer-experience-mode[data-page="homePage"] .global-home-banner {
  display: none;
}

body.customer-experience-mode .hero-panel,
body.customer-experience-mode .page-heading,
body.customer-experience-mode .commerce-panel,
body.customer-experience-mode .home-section,
body.customer-experience-mode .customer-stat-card,
body.customer-experience-mode .customer-review-card,
body.customer-experience-mode .category-card,
body.customer-experience-mode .product-card,
body.customer-experience-mode .cart-item {
  border-color: #e1e7f0;
  border-radius: 8px !important;
  background: #fff;
  box-shadow: none;
}

body.customer-experience-mode .customer-hero-panel {
  padding: 22px;
  background: #fff;
}

.customer-home-intro {
  display: grid;
  max-width: 960px;
  gap: 8px;
}

.customer-home-intro h2 {
  margin: 0;
  color: #081957;
  font-size: clamp(2.145rem, 3.51vw, 3.25rem);
  line-height: 1.18;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.customer-home-intro p:last-child {
  margin: 0;
  color: #58617f;
  font-size: 19.5px;
  font-weight: 700;
  line-height: 1.65;
}

body.customer-experience-mode .customer-entry-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

body.customer-experience-mode .customer-entry-button {
  grid-template-rows: 96px auto;
  gap: 10px;
  padding: 16px;
  border-color: #e1e7f0;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body.customer-experience-mode .customer-entry-button--sample {
  grid-column: auto;
  grid-template-columns: 1fr;
  grid-template-rows: 96px auto;
  padding: 16px;
}

body.customer-experience-mode .customer-entry-button--sample span {
  text-align: center;
}

body.customer-experience-mode .customer-entry-button img,
body.customer-experience-mode .customer-entry-button--sample img {
  height: 90px;
}

body.customer-experience-mode .section-header-inline h3,
body.customer-experience-mode .customer-page-heading h2 {
  font-size: clamp(1.755rem, 2.86vw, 2.6rem);
  letter-spacing: 0;
}

body.customer-experience-mode input,
body.customer-experience-mode select,
body.customer-experience-mode textarea,
body.customer-experience-mode .cart-controls label,
body.customer-experience-mode .cart-price-readout,
body.customer-experience-mode .cart-tile-calculator,
body.customer-experience-mode .cart-tile-calculator-result,
body.customer-experience-mode .cost-summary div,
body.customer-experience-mode .customer-catalog-hero {
  border-radius: 8px;
  background: #fff;
}

body.admin-experience-mode {
  background: #f3f5f8;
}

body.admin-experience-mode .app-shell {
  padding: 16px 20px 48px;
}

body.admin-experience-mode .topbar,
body.admin-experience-mode .app-nav,
body.admin-experience-mode .page-panel,
body.admin-experience-mode .workspace {
  max-width: 1440px;
}

body.admin-experience-mode .topbar {
  margin-bottom: 10px;
  padding: 10px 12px;
  border-color: #d7dde7;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body.admin-experience-mode .brand-logo-mark {
  background: #1f2937;
}

body.admin-experience-mode .topbar-brand small::after {
  content: " · 내부 콘솔";
}

body.admin-experience-mode .app-nav {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 16px;
  border-color: #d7dde7;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
}

body.admin-experience-mode .nav-section {
  padding: 4px;
  border-radius: 8px;
}

body.admin-experience-mode .customer-nav-group {
  flex: 0 1 auto;
}

body.admin-experience-mode .admin-nav-group {
  flex: 1 1 auto;
  border-left-color: #d7dde7;
}

body.admin-experience-mode .app-nav button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 15.6px;
}

body.admin-experience-mode .app-nav button.active {
  background: #1f2937;
}

body.admin-experience-mode .nav-glyph {
  display: none;
}

body.admin-experience-mode .nav-copy {
  margin: 0;
  padding: 0;
  background: transparent;
  color: inherit;
}

body.admin-experience-mode .page-heading,
body.admin-experience-mode .commerce-panel,
body.admin-experience-mode .input-panel,
body.admin-experience-mode .preview-panel,
body.admin-experience-mode .admin-ops-panel,
body.admin-experience-mode .admin-summary-card,
body.admin-experience-mode .admin-flow-column {
  border-radius: 8px;
  box-shadow: none;
}

@media (max-width: 860px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-brand {
    width: 100%;
  }

  body.customer-experience-mode .top-actions,
  body.admin-experience-mode .top-actions {
    justify-content: flex-start;
  }

  body.customer-experience-mode .customer-nav-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.customer-experience-mode .customer-entry-grid {
    grid-template-columns: 1fr;
  }

  body.customer-experience-mode .customer-entry-button,
  body.customer-experience-mode .customer-entry-button--sample {
    grid-template-columns: 96px minmax(0, 1fr);
    grid-template-rows: auto;
    align-items: center;
    justify-items: start;
  }

  body.customer-experience-mode .customer-entry-button span,
  body.customer-experience-mode .customer-entry-button--sample span {
    text-align: left;
  }

  body.admin-experience-mode .app-nav {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  body.customer-experience-mode .app-shell {
    padding: 12px 12px 112px;
  }

  body.customer-experience-mode .topbar {
    border-radius: 8px;
  }

  body.customer-experience-mode .app-nav {
    left: 12px;
    right: 12px;
    bottom: 10px;
    border-radius: 8px;
  }

  body.customer-experience-mode .app-nav button {
    min-width: 0;
    min-height: 40px;
    padding: 0 6px;
  }

  body.customer-experience-mode .nav-copy {
    font-size: 15.6px;
  }
}

/* Size-based layout system
   Web: 861px and up. Mobile: 720px and down. 721-860px is a tablet buffer. */
@media (min-width: 861px) {
  body.customer-experience-mode {
    background: #fff;
    color: #111827;
  }

  body.customer-experience-mode .app-shell {
    max-width: none;
    padding: 0 32px 72px;
  }

  body.customer-experience-mode .topbar {
    display: grid;
    grid-template-columns: minmax(210px, 0.26fr) minmax(320px, 1fr) max-content;
    align-items: center;
    gap: 24px;
    flex-direction: row;
    max-width: 1480px;
    min-height: 82px;
    margin-bottom: 0;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    background: #fff;
  }

  body.customer-experience-mode .topbar-brand strong {
    color: #111827;
    font-size: 23.4px;
    font-weight: 900;
  }

  body.customer-experience-mode .topbar-brand small {
    color: #4b5563;
  }

  body.customer-experience-mode .brand-logo-mark {
    width: 190px;
    height: 56px;
    border-radius: 0;
    background: #fff;
    font-size: 19.5px;
  }

  body.customer-experience-mode .topbar-search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0 8px 0 20px;
    border: 0;
    border-radius: 999px;
    background: #f5f5f5;
    color: #111827;
    text-align: left;
    font-weight: 800;
  }

  body.customer-experience-mode .topbar-search span {
    overflow: hidden;
    color: #4b5563;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.customer-experience-mode .topbar-search strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 16.9px;
  }

  body.customer-experience-mode .top-actions {
    gap: 8px;
  }

  body.customer-experience-mode .top-actions .secondary-action,
  body.customer-experience-mode .top-actions .primary-action,
  body.customer-experience-mode .top-actions .icon-button,
  body.customer-experience-mode .auth-badge {
    min-height: 42px;
    border-color: transparent;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    box-shadow: none;
  }

  body.customer-experience-mode .top-actions .secondary-action:hover,
  body.customer-experience-mode .top-actions .icon-button:hover {
    background: #f3f4f6;
    box-shadow: none;
  }

  body.customer-experience-mode .app-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    max-width: 1480px;
    min-height: 52px;
    margin-bottom: 28px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  body.customer-experience-mode .customer-nav-group {
    display: flex;
    align-items: center;
    gap: 26px;
  }

  body.customer-experience-mode .app-nav button {
    position: relative;
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0;
    border-radius: 0;
    color: #111827;
    background: transparent;
    font-size: 18.2px;
    font-weight: 900;
  }

  body.customer-experience-mode .app-nav button.active {
    color: #111827;
    background: transparent;
  }

  body.customer-experience-mode .app-nav button.active::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: #111827;
    content: "";
  }

  body.customer-experience-mode .nav-copy {
    font-size: 18.2px;
  }

  body.customer-experience-mode .customer-page {
    max-width: 1480px;
  }

  body.customer-experience-mode .hero-panel,
  body.customer-experience-mode .page-heading,
  body.customer-experience-mode .commerce-panel,
  body.customer-experience-mode .home-section {
    border: 0;
    background: #fff;
  }

  body.customer-experience-mode .customer-hero-panel {
    padding: 0;
  }

  body.customer-experience-mode .customer-home-entry {
    gap: 26px;
  }

  body.customer-experience-mode .customer-home-intro {
    display: none;
  }

  body.customer-experience-mode .customer-home-intro .eyebrow {
    color: #0058a3;
  }

  body.customer-experience-mode .customer-home-intro h2 {
    max-width: 920px;
    color: #111827;
    font-size: clamp(3.12rem, 5.2vw, 5.72rem);
    line-height: 1.02;
  }

  body.customer-experience-mode .customer-home-intro p:last-child {
    max-width: 680px;
    color: #4b5563;
    font-size: 20.8px;
  }

  body.customer-experience-mode .web-category-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 2px 0 8px;
    scrollbar-width: none;
  }

  body.customer-experience-mode .web-category-rail::-webkit-scrollbar {
    display: none;
  }

  body.customer-experience-mode .web-category-rail button {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #f3f4f6;
    color: #111827;
    font-size: 16.9px;
    font-weight: 900;
  }

  body.customer-experience-mode .web-category-rail button:hover {
    background: #e5e7eb;
  }

  body.customer-experience-mode .web-storefront-hero {
    position: relative;
    display: grid;
    min-height: min(48vw, 560px);
    overflow: hidden;
    background: #f5f5f5;
  }

  body.customer-experience-mode .web-storefront-hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body.customer-experience-mode .web-storefront-hero::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 34%, rgba(255, 255, 255, 0.08) 66%);
    content: "";
  }

  body.customer-experience-mode .web-storefront-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    max-width: 660px;
    min-height: inherit;
    padding: 56px 64px;
  }

  body.customer-experience-mode .web-storefront-copy p {
    margin: 0 0 14px;
    color: #0058a3;
    font-size: 16.9px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  body.customer-experience-mode .web-storefront-copy h2 {
    margin: 0;
    color: #111827;
    font-size: clamp(3.51rem, 5.72vw, 6.37rem);
    line-height: 1.02;
    letter-spacing: 0;
    word-break: keep-all;
  }

  body.customer-experience-mode .web-storefront-copy span {
    max-width: 520px;
    margin-top: 22px;
    color: #374151;
    font-size: 22.1px;
    font-weight: 750;
    line-height: 1.7;
    word-break: keep-all;
  }

  body.customer-experience-mode .web-storefront-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
  }

  body.customer-experience-mode .web-storefront-actions button {
    min-height: 48px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 18.2px;
    font-weight: 900;
  }

  body.customer-experience-mode .web-storefront-actions button + button {
    background: #ffdb00;
    color: #111827;
  }

  body.customer-experience-mode .web-banner-mosaic {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(230px, 0.58fr) minmax(230px, 0.58fr);
    grid-template-rows: repeat(2, minmax(260px, 1fr));
    gap: 12px;
    min-height: min(50vw, 680px);
  }

  body.customer-experience-mode[data-page="homePage"] .web-legacy-banner.web-mosaic-main {
    display: block;
    grid-column: 1;
    grid-row: 1 / 3;
    width: 100%;
    max-width: none;
    height: 100%;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #f5f5f5;
    box-shadow: none;
  }

  body.customer-experience-mode .web-legacy-banner .customer-top-banner-slider {
    height: 100%;
    width: 100%;
  }

  body.customer-experience-mode .web-legacy-banner .customer-top-banner-track {
    display: flex;
    height: 100%;
    width: 500%;
    animation: web-main-banner-slide 16s infinite;
  }

  body.customer-experience-mode .web-legacy-banner .customer-top-banner-slide {
    flex: 0 0 20%;
    height: 100%;
  }

  body.customer-experience-mode .web-legacy-banner img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover;
    object-position: center;
    background: #061833;
  }

  @keyframes web-main-banner-slide {
    0%, 16% {
      transform: translateX(0);
    }
    20%, 36% {
      transform: translateX(-20%);
    }
    40%, 56% {
      transform: translateX(-40%);
    }
    60%, 76% {
      transform: translateX(-60%);
    }
    80%, 96% {
      transform: translateX(-80%);
    }
    100% {
      transform: translateX(0);
    }
  }

  body.customer-experience-mode .web-mosaic-card {
    position: relative;
    display: grid;
    align-items: end;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #f3f4f6;
    color: #fff;
    text-align: left;
  }

  body.customer-experience-mode .web-mosaic-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.25s ease;
  }

  body.customer-experience-mode .web-mosaic-card::after {
    position: absolute;
    inset: auto 0 0 0;
    height: 58%;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.74) 100%);
    content: "";
  }

  body.customer-experience-mode .web-mosaic-card span {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 22px;
    color: #fff;
    font-size: clamp(1.43rem, 1.95vw, 2.08rem);
    font-weight: 900;
    line-height: 1.22;
    word-break: keep-all;
  }

  body.customer-experience-mode .web-mosaic-card span::after {
    flex: 0 0 auto;
    color: #ffdb00;
    content: ">";
    font-size: 33.8px;
    line-height: 1;
  }

  body.customer-experience-mode .web-mosaic-card:hover img {
    transform: scale(1.04);
  }

  body.customer-experience-mode .web-mosaic-card--showroom {
    grid-column: 2;
    grid-row: 1;
  }

  body.customer-experience-mode .web-mosaic-card--sample {
    grid-column: 3;
    grid-row: 1;
  }

  body.customer-experience-mode .web-mosaic-card--material {
    grid-column: 2;
    grid-row: 2;
  }

  body.customer-experience-mode .web-mosaic-card--material img,
  body.customer-experience-mode .web-mosaic-card--bath img,
  body.customer-experience-mode .web-mosaic-card--sample img {
    object-fit: cover;
    padding: 0;
    background: linear-gradient(180deg, #f8fafc 0%, #e5e7eb 100%);
  }

  body.customer-experience-mode .web-mosaic-card--bath {
    grid-column: 3;
    grid-row: 2;
  }

  body.customer-experience-mode .customer-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px;
    align-items: stretch;
  }

  body.customer-experience-mode .customer-entry-button,
  body.customer-experience-mode .customer-entry-button--sample {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 180px auto;
    min-height: 254px;
    align-items: end;
    justify-items: stretch;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #f3f4f6;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
  }

  body.customer-experience-mode .customer-entry-button:hover,
  body.customer-experience-mode .customer-entry-button--sample:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(17, 24, 39, 0.13);
  }

  body.customer-experience-mode .customer-entry-button--sample {
    grid-column: auto;
  }

  body.customer-experience-mode .customer-entry-button img,
  body.customer-experience-mode .customer-entry-button--sample img {
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 180px;
    padding: 0;
    object-fit: cover;
    object-position: center;
    background: #fff;
  }

  body.customer-experience-mode .customer-entry-button span,
  body.customer-experience-mode .customer-entry-button--sample span {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 74px;
    padding: 0 22px;
    background: #111827;
    color: #fff;
    font-size: 23.4px;
    line-height: 1.35;
    text-align: left;
  }

  body.customer-experience-mode .customer-entry-button:nth-child(2) span {
    background: #0058a3;
  }

  body.customer-experience-mode .customer-entry-button:nth-child(3) span,
  body.customer-experience-mode .customer-entry-button--sample span {
    background: #ffdb00;
    color: #111827;
  }

  body.customer-experience-mode .customer-entry-button span::after,
  body.customer-experience-mode .customer-entry-button--sample span::after {
    flex: 0 0 auto;
    margin-left: 12px;
    color: #facc15;
    content: ">";
    font-size: 31.2px;
    font-weight: 900;
  }

  body.customer-experience-mode .customer-category-section {
    padding: 46px 0 0;
  }

  body.customer-experience-mode .customer-category-section .section-header-inline {
    margin-bottom: 18px;
  }

  body.customer-experience-mode .customer-category-section .eyebrow {
    display: none;
  }

  body.customer-experience-mode .customer-category-section h3 {
    color: #111827;
    font-size: clamp(2.34rem, 2.86vw, 3.12rem);
    line-height: 1.14;
  }

  body.customer-experience-mode .customer-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
  }

  body.customer-experience-mode .category-card {
    min-height: 210px;
    align-content: end;
    padding: 18px;
    border: 0;
    border-radius: 0 !important;
    background: #f3f4f6;
    color: #111827;
  }

  body.customer-experience-mode .category-card strong {
    font-size: 27.3px;
    line-height: 1.18;
  }

  body.customer-experience-mode .category-card > span:not(.category-kicker) {
    color: #4b5563;
    font-size: 16.9px;
    line-height: 1.45;
  }

  body.customer-experience-mode .category-kicker {
    color: #0058a3;
  }

  body.customer-experience-mode .filter-grid,
  body.customer-experience-mode .taxonomy-filter-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.customer-experience-mode .product-page-list,
  .product-list.product-page-list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }

  body.admin-experience-mode .admin-ops-layout,
  body.admin-experience-mode .admin-ops-table-grid,
  body.admin-experience-mode .quality-layout {
    align-items: start;
  }
}

@media (min-width: 721px) and (max-width: 860px) {
  body.customer-experience-mode .app-shell {
    padding: 16px 16px 88px;
  }

  body.customer-experience-mode .customer-nav-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.customer-experience-mode .customer-entry-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body.customer-experience-mode .product-page-list,
  .product-list.product-page-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body.customer-experience-mode {
    background: #f7f9fc;
  }

  body.customer-experience-mode .app-shell {
    padding: 10px 10px 118px;
  }

  body.customer-experience-mode .topbar {
    gap: 10px;
    padding: 10px;
  }

  body.customer-experience-mode .topbar-brand {
    gap: 10px;
  }

  body.customer-experience-mode .brand-logo-mark {
    width: 140px;
    height: 48px;
  }

  body.customer-experience-mode .topbar-brand strong {
    font-size: 18.2px;
  }

  body.customer-experience-mode .topbar-brand small {
    font-size: 14.3px;
  }

  body.customer-experience-mode .top-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, max-content));
    width: 100%;
  }

  body.customer-experience-mode .auth-actions,
  body.customer-experience-mode .auth-session {
    display: contents;
  }

  body.customer-experience-mode .top-actions .secondary-action,
  body.customer-experience-mode .top-actions .primary-action,
  body.customer-experience-mode .top-actions .icon-button {
    min-height: 38px;
  }

  body.customer-experience-mode .app-nav {
    position: fixed;
    left: 10px;
    right: 10px;
    bottom: 10px;
    top: auto;
    z-index: 50;
    padding: 6px;
  }

  body.customer-experience-mode .customer-nav-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 4px;
  }

  body.customer-experience-mode .app-nav button {
    min-width: 0;
    min-height: 38px;
    padding: 0 6px;
  }

  body.customer-experience-mode .nav-copy {
    font-size: 14.3px;
    line-height: 1.2;
  }

  body.customer-experience-mode .customer-hero-panel,
  body.customer-experience-mode .home-section,
  body.customer-experience-mode .customer-catalog-panel,
  body.customer-experience-mode .customer-cart-panel,
  body.customer-experience-mode .customer-page-heading {
    padding: 16px 14px;
  }

  body.customer-experience-mode .customer-home-intro h2 {
    font-size: 1.976rem;
    line-height: 1.22;
  }

  body.customer-experience-mode .customer-home-intro p:last-child {
    font-size: 16.9px;
  }

  body.customer-experience-mode .customer-entry-grid {
    grid-template-columns: 1fr !important;
    gap: 8px;
  }

  body.customer-experience-mode .customer-entry-button,
  body.customer-experience-mode .customer-entry-button--sample {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    grid-template-rows: auto;
    gap: 10px;
    min-height: 86px;
    padding: 12px;
    align-items: center;
    justify-items: start;
  }

  body.customer-experience-mode .customer-entry-button img,
  body.customer-experience-mode .customer-entry-button--sample img {
    width: 86px;
    height: 54px;
    object-fit: contain;
  }

  body.customer-experience-mode .customer-entry-button span,
  body.customer-experience-mode .customer-entry-button--sample span {
    text-align: left;
    font-size: 16.9px;
    line-height: 1.35;
  }

  body.customer-experience-mode .filter-grid,
  body.customer-experience-mode .taxonomy-filter-grid,
  body.customer-experience-mode .cart-controls,
  body.customer-experience-mode .cost-summary {
    grid-template-columns: 1fr !important;
  }

  body.customer-experience-mode .product-page-list,
  .product-list.product-page-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  body.admin-experience-mode .app-shell {
    padding: 10px;
  }

  body.admin-experience-mode .topbar {
    align-items: stretch;
    flex-direction: column;
  }

  body.admin-experience-mode .app-nav {
    overflow-x: auto;
  }
}

@media (max-width: 720px) {
  body.customer-experience-mode[data-page="homePage"] {
    background: #fff;
  }

  body.customer-experience-mode[data-page="homePage"] .app-shell {
    max-width: none;
    padding: 0 0 96px;
  }

  body.customer-experience-mode[data-page="homePage"] .topbar,
  body.customer-experience-mode[data-page="homePage"] .app-nav {
    display: none;
  }

  body.customer-experience-mode[data-page="homePage"] .customer-page {
    max-width: none;
  }

  body.customer-experience-mode[data-page="homePage"] .customer-hero-panel {
    padding: 0;
    border: 0;
    border-radius: 0 !important;
    background: #fff;
    box-shadow: none;
  }

  body.customer-experience-mode[data-page="homePage"] .customer-home-entry {
    display: block;
  }

  body.customer-experience-mode[data-page="homePage"] .customer-home-intro,
  body.customer-experience-mode[data-page="homePage"] .web-category-rail,
  body.customer-experience-mode[data-page="homePage"] .customer-entry-grid {
    display: none !important;
  }

  body.customer-experience-mode[data-page="homePage"] .mobile-home-shell {
    display: grid;
    gap: 0;
    color: #111827;
    background: #fff;
  }

  .mobile-home-shell button {
    border: 0;
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
  }

  .mobile-home-shell svg {
    display: block;
    width: 24px;
    height: 24px;
    fill: currentColor;
  }

  .mobile-utility-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    padding: 0 18px;
    background: #111;
    color: #fff;
    font-size: 16.9px;
    font-weight: 800;
  }

  .mobile-utility-bar button,
  .mobile-utility-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    white-space: nowrap;
  }

  .mobile-utility-bar button {
    min-height: 44px;
  }

  .mobile-utility-bar svg {
    width: 22px;
    height: 22px;
  }

  .mobile-brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 92px;
    padding: 18px 24px 14px;
    background: #fff;
  }

  .mobile-brand-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: 118px;
    height: 42px;
    overflow: hidden;
  }

  .mobile-brand-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  .mobile-icon-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 11px;
  }

  .mobile-icon-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 34px;
    color: #111;
  }

  .mobile-icon-actions svg {
    width: 24px;
    height: 24px;
  }

  .mobile-search-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    margin: 0 18px;
    padding: 0 18px;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    color: #111;
    font-size: 26px;
    font-weight: 700;
  }

  .mobile-search-pill span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    gap: 12px;
    color: #4b5563;
  }

  .mobile-search-pill svg {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
  }

  .mobile-chip-rail {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 18px 18px 16px;
    scrollbar-width: none;
  }

  .mobile-chip-rail::-webkit-scrollbar {
    display: none;
  }

  .mobile-chip-rail button {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-height: 54px;
    padding: 0 22px;
    border-radius: 999px !important;
    background: #f3f4f6 !important;
    color: #111;
    font-size: 19.5px;
    font-weight: 900;
    white-space: nowrap;
  }

  .mobile-promo-strip {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 74px;
    margin: 0 18px 34px;
    padding: 12px 18px;
    background: #f5f5f5;
    color: #4b5563;
    font-size: 19.5px;
    font-weight: 800;
    line-height: 1.45;
    word-break: keep-all;
  }

  .mobile-promo-strip svg {
    width: 38px;
    height: 38px;
    padding: 8px;
    border-radius: 999px;
    background: #fff;
    color: #111;
  }

  .mobile-main-banner {
    position: relative;
    min-height: 0;
    margin: 0 18px 18px;
    overflow: hidden;
    background: #f3f4f6;
  }

  .mobile-main-banner-slider {
    width: 100%;
    overflow: hidden;
  }

  .mobile-main-banner-track {
    display: flex;
    width: 500%;
    animation: mobile-main-banner-slide 18s infinite;
  }

  .mobile-main-banner-slide {
    flex: 0 0 20%;
  }

  .mobile-main-banner img {
    display: block;
    width: 100%;
    aspect-ratio: 1.18 / 1;
    object-fit: cover;
    object-position: center;
  }

  .mobile-main-banner::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 38%;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.62) 100%);
    content: "";
  }

  .mobile-main-banner > button {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 999px !important;
    background: rgba(17, 24, 39, 0.72) !important;
    color: #fff;
  }

  .mobile-main-banner strong {
    position: absolute;
    right: 20px;
    bottom: 22px;
    left: 20px;
    z-index: 2;
    color: #fff;
    font-size: 28.6px;
    font-weight: 900;
    line-height: 1.25;
    word-break: keep-all;
  }

  @keyframes mobile-main-banner-slide {
    0%, 16% {
      transform: translateX(0);
    }
    20%, 36% {
      transform: translateX(-20%);
    }
    40%, 56% {
      transform: translateX(-40%);
    }
    60%, 76% {
      transform: translateX(-60%);
    }
    80%, 96% {
      transform: translateX(-80%);
    }
    100% {
      transform: translateX(0);
    }
  }

  .mobile-mosaic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 0 18px 34px;
  }

  .mobile-mosaic-card {
    position: relative;
    display: grid;
    align-items: end;
    min-height: 178px;
    overflow: hidden;
    background: #f3f4f6 !important;
    color: #fff !important;
    text-align: left;
  }

  .mobile-mosaic-card--wide {
    grid-column: auto;
    min-height: 178px;
  }

  .mobile-mosaic-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .mobile-mosaic-card::after {
    position: absolute;
    inset: auto 0 0 0;
    height: 58%;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.72) 100%);
    content: "";
  }

  .mobile-mosaic-card span {
    position: relative;
    z-index: 1;
    display: block;
    padding: 18px;
    color: #fff;
    font-size: 26px;
    font-weight: 900;
    line-height: 1.2;
    word-break: keep-all;
  }

  body.customer-experience-mode[data-page="homePage"] .customer-category-section {
    padding: 0 18px 28px;
    border: 0;
    border-radius: 0 !important;
    background: #fff;
  }
}

/* Keep the split catalog navigation stable after legacy responsive rules. */
body.customer-experience-mode .customer-nav-group {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.filter-grid.bath-filter-grid {
  grid-template-columns: minmax(180px, 0.35fr) minmax(280px, 1fr);
}

@media (min-width: 721px) and (max-width: 860px) {
  body.customer-experience-mode .customer-nav-group {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body.customer-experience-mode .customer-nav-group {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .filter-grid.bath-filter-grid {
    grid-template-columns: 1fr;
  }
}

/* BathGO storefront: familiar marketplace flow in the JAJAEGO visual system. */
.bath-catalog-breadcrumb,
.detail-commerce-breadcrumb {
  margin: 0;
  color: #6b7280;
  font-size: 16.9px;
  font-weight: 700;
}

.bath-search-field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 16.9px;
  font-weight: 900;
}

.bath-search-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
}

.bath-search-control input {
  min-width: 0;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #cfd8e8;
  border-radius: 6px;
  color: #111827;
  background: #fff;
}

.bath-search-control input:focus {
  border-color: #1268ff;
  outline: 3px solid rgba(18, 104, 255, 0.12);
}

.bath-search-control button {
  min-height: 46px;
  border-radius: 6px;
}

.bath-result-header {
  align-items: end;
  padding: 16px 0 12px;
  border-bottom: 1px solid #dfe5ef;
}

.bath-result-header > div {
  display: grid;
  gap: 5px;
}

.bath-result-header > div > strong {
  color: #111827;
  font-size: 27.3px;
}

.bath-result-header > div > span {
  color: #6b7280;
  font-size: 16.9px;
  font-weight: 700;
}

.bath-sort-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 15.6px;
  font-weight: 800;
}

.bath-sort-field select {
  min-width: 132px;
  height: 40px;
  padding: 0 34px 0 12px;
  border: 1px solid #d5dbe6;
  border-radius: 6px;
  color: #1f2937;
  background: #fff;
}

body.customer-experience-mode .product-list.bath-product-list,
.product-list.bath-product-list {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 28px 16px !important;
  align-items: start !important;
  touch-action: pan-y;
}

body.customer-experience-mode .bath-product-list .bath-product-card,
.bath-product-list .bath-product-card {
  display: flex !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
  flex-direction: column;
  grid-template-columns: none !important;
  grid-template-rows: none !important;
  gap: 12px !important;
  padding: 0 0 14px !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.bath-product-card-link {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
}

.bath-product-card-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid #e1e6ef;
  border-radius: 6px;
  background: #f7f8fa;
}

body.customer-experience-mode .bath-product-list .product-thumb,
.bath-product-list .product-thumb {
  width: 100% !important;
  height: 100% !important;
  aspect-ratio: 1 !important;
  border: 0 !important;
  border-radius: 0 !important;
  object-fit: cover;
  transition: transform 180ms ease;
}

.bath-product-card-link:hover .product-thumb,
.bath-product-card-link:focus-visible .product-thumb {
  transform: scale(1.025);
}

.bath-product-card-link:focus-visible {
  border-radius: 6px;
  outline: 3px solid rgba(18, 104, 255, 0.2);
  outline-offset: 3px;
}

.bath-card-badge {
  position: absolute;
  top: 9px;
  left: 9px;
  display: inline-flex !important;
  min-height: 26px;
  align-items: center;
  padding: 0 8px;
  border-radius: 4px;
  color: #fff !important;
  background: #1268ff;
  font-size: 14.3px !important;
  font-weight: 900 !important;
}

.bath-product-card-copy {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.bath-product-category {
  overflow: hidden;
  color: #667085;
  font-size: 15.6px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bath-product-name {
  display: -webkit-box;
  min-height: 44px;
  overflow: hidden;
  color: #111827;
  font-size: 19.5px;
  font-weight: 800;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-all;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.bath-product-spec,
.bath-product-delivery {
  display: block;
  overflow: hidden;
  color: #737b8c;
  font-size: 15.6px;
  font-weight: 700;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bath-product-price {
  display: block;
  min-height: 25px;
}

.bath-product-price .member-price-line {
  color: #081957 !important;
  font-size: 22.1px !important;
  font-weight: 900 !important;
}

.bath-product-price .price-locked {
  color: #1268ff !important;
  font-size: 16.9px !important;
  font-weight: 900 !important;
}

body.customer-experience-mode .product-page-list .bath-product-card .bath-card-cart-button,
.product-list.product-page-list .bath-product-card .bath-card-cart-button {
  position: absolute !important;
  top: 8px !important;
  right: 8px !important;
  width: fit-content;
  min-height: 26px !important;
  padding: 0 8px !important;
  border: 1px solid #1268ff !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: #1268ff !important;
  font-size: 13px !important;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(8, 25, 87, 0.18) !important;
}

.bath-product-list .bath-card-cart-button:hover,
.bath-product-list .bath-card-cart-button:focus-visible {
  border-color: #1268ff !important;
  color: #fff !important;
  background: #1268ff !important;
}

.detail-commerce-breadcrumb {
  padding: 0 4px;
}

.bath-detail-mode .product-detail-layout {
  grid-template-columns: minmax(360px, 560px) minmax(360px, 1fr);
  gap: clamp(28px, 5vw, 68px);
  padding: clamp(20px, 3vw, 38px);
  border-top: 2px solid #111827;
  box-shadow: none;
}

.bath-detail-mode .detail-main-media {
  position: sticky;
  top: 18px;
  border-radius: 6px;
  background: #f7f8fa;
}

.bath-detail-mode .detail-spec-panel {
  display: grid;
  gap: 22px;
}

.detail-commerce-panel {
  display: grid;
  gap: 15px;
}

.detail-commerce-category,
.detail-commerce-model,
.detail-business-notice {
  margin: 0;
}

.detail-commerce-category {
  color: #1268ff;
  font-size: 16.9px;
  font-weight: 900;
}

.bath-detail-mode .detail-commerce-panel h3 {
  margin: 0;
  color: #111827;
  font-size: clamp(31.2px, 2.86vw, 44.2px);
  line-height: 1.3;
}

.detail-commerce-model {
  color: #687386;
  font-size: 18.2px;
  font-weight: 700;
}

.detail-commerce-price {
  min-height: 52px;
  padding: 18px 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.detail-commerce-price .member-price-line {
  color: #081957;
  font-size: 33.8px;
  font-weight: 900;
}

.detail-commerce-price .price-locked {
  color: #1268ff;
  font-size: 23.4px;
  font-weight: 900;
}

.detail-commerce-summary {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-commerce-summary > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.detail-commerce-summary dt {
  color: #6b7280;
  font-size: 16.9px;
  font-weight: 800;
}

.detail-commerce-summary dd {
  margin: 0;
  color: #253047;
  font-size: 16.9px;
  font-weight: 700;
  line-height: 1.6;
}

.detail-quantity-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 58px;
  padding: 10px 12px 10px 16px;
  border: 1px solid #e0e5ed;
  background: #f8fafc;
}

.detail-quantity-control > span {
  color: #27334a;
  font-size: 16.9px;
  font-weight: 900;
}

.detail-quantity-control > div {
  display: grid;
  grid-template-columns: 38px 54px 38px;
}

.detail-quantity-control button,
.detail-quantity-control input {
  width: 100%;
  height: 38px;
  padding: 0;
  border: 1px solid #cfd7e4;
  border-radius: 0;
  color: #111827;
  background: #fff;
  text-align: center;
  font-weight: 900;
}

.detail-quantity-control input {
  border-right: 0;
  border-left: 0;
  appearance: textfield;
}

.detail-purchase-actions {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 10px;
}

.detail-purchase-actions button {
  min-height: 54px;
  border-radius: 6px;
  font-size: 20.8px;
  font-weight: 900;
}

.detail-business-notice {
  color: #687386;
  font-size: 15.6px;
  font-weight: 700;
  line-height: 1.55;
}

.bath-detail-mode .detail-spec-heading {
  padding-top: 22px;
  border-top: 1px solid #e5e7eb;
}

.bath-detail-mode .detail-spec-heading h3 {
  margin-bottom: 12px;
  font-size: 24.7px;
}

.bath-detail-mode .detail-spec-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bath-detail-mode .detail-spec-grid div {
  min-height: 68px;
  padding: 12px;
  border-radius: 4px;
  background: #f8fafc;
}

.product-detail-tabs {
  position: sticky;
  z-index: 5;
  top: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #ccd5e4;
  border-bottom: 1px solid #ccd5e4;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.product-detail-tabs button {
  min-height: 54px;
  border: 0;
  border-right: 1px solid #e1e6ef;
  border-radius: 0;
  color: #3f4b60;
  background: transparent;
  font-weight: 900;
}

.product-detail-tabs button:last-child {
  border-right: 0;
}

.product-detail-tabs button:hover,
.product-detail-tabs button:focus-visible {
  color: #1268ff;
  background: #f3f7ff;
}

.detail-product-info-section > p {
  margin: 0;
  color: #5f6b7d;
  line-height: 1.8;
}

.detail-delivery-section dl {
  display: grid;
  margin: 0;
  border-top: 1px solid #dfe5ef;
}

.detail-delivery-section dl > div {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  border-bottom: 1px solid #e5e7eb;
}

.detail-delivery-section dt,
.detail-delivery-section dd {
  margin: 0;
  padding: 18px;
  line-height: 1.7;
}

.detail-delivery-section dt {
  color: #27334a;
  background: #f7f9fc;
  font-weight: 900;
}

.detail-delivery-section dd {
  color: #5f6b7d;
}

@media (max-width: 1040px) {
  body.customer-experience-mode .product-list.bath-product-list,
  .product-list.bath-product-list {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .bath-detail-mode .product-detail-layout {
    grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
    gap: 28px;
  }
}

@media (max-width: 720px) {
  .bath-products-page .customer-page-heading {
    padding-bottom: 14px;
  }

  .bath-catalog-panel {
    padding: 18px 14px !important;
    border-radius: 10px !important;
  }

  .bath-search-control {
    grid-template-columns: minmax(0, 1fr) 72px;
  }

  .bath-result-header {
    display: flex !important;
    align-items: end !important;
    justify-content: space-between;
    gap: 12px;
  }

  .bath-sort-field {
    display: grid;
    gap: 4px;
  }

  .bath-sort-field select {
    min-width: 112px;
    height: 38px;
  }

  body.customer-experience-mode .product-list.bath-product-list,
  .product-list.bath-product-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 10px !important;
  }

  body.customer-experience-mode .bath-product-list .bath-product-card,
  .bath-product-list .bath-product-card {
    gap: 9px !important;
    padding-bottom: 10px !important;
  }

  .bath-product-card-link {
    gap: 9px;
  }

  .bath-product-card-copy {
    gap: 4px;
  }

  .bath-product-name {
    min-height: 52px;
    font-size: 16.9px;
  }

  .bath-product-price .member-price-line {
    font-size: 19.5px !important;
  }

  .bath-product-delivery {
    display: -webkit-box;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .bath-detail-mode .product-detail-layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 14px;
    border-radius: 10px !important;
  }

  .bath-detail-mode .detail-main-media {
    position: static;
  }

  .bath-detail-mode .detail-commerce-panel h3 {
    font-size: 31.2px;
  }

  .detail-commerce-price .price-locked {
    font-size: 20.8px;
  }

  .detail-purchase-actions {
    grid-template-columns: 1fr 1fr;
  }

  .product-detail-tabs button {
    min-height: 48px;
    padding: 0 6px;
    font-size: 15.6px;
  }

  .detail-delivery-section dl > div {
    grid-template-columns: 1fr;
  }

  .detail-delivery-section dt,
  .detail-delivery-section dd {
    padding: 14px;
  }
}

/* Layout guards for the global 1.3x typography scale. */
.customer-catalog-hero {
  flex-wrap: wrap;
}

.customer-catalog-hero .catalog-toolbar-copy {
  flex: 1 1 560px;
}

.customer-catalog-hero .catalog-summary-card {
  flex: 1 1 420px;
  width: auto;
  max-width: 520px;
}

/* Square visual-tile home */
body[data-page="homePage"] {
  background: #ffffff;
}

body[data-page="homePage"] .customer-hero-panel {
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="homePage"] .customer-home-entry {
  display: block;
}

body[data-page="homePage"] .customer-home-entry > :not(.square-main-home),
body[data-page="homePage"] .customer-category-section {
  display: none !important;
}

body[data-page="homePage"] .customer-home-entry > .guest-home-gate:not(.hidden) {
  width: 100%;
  margin: 0;
  display: block !important;
  color: #111111;
  background: #ffffff;
}

.guest-promotion-hero {
  position: relative;
  width: min(1760px, calc(100% - 32px));
  min-height: min(670px, calc(100vh - 154px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #f4f3ef;
}

.guest-promotion-hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.guest-promotion-hero-copy {
  position: relative;
  z-index: 2;
  width: min(780px, 51%);
  min-height: inherit;
  padding: clamp(58px, 7vw, 112px) clamp(42px, 5.7vw, 90px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.guest-promotion-kicker {
  margin-bottom: 22px;
  padding: 10px 14px;
  border: 1px solid #101319;
  border-radius: 999px;
  color: #101319;
  font-size: 12px;
  font-weight: 850;
}

.guest-promotion-hero-copy h1 {
  margin: 0;
  color: #101319;
  font-size: clamp(50px, 4.8vw, 86px);
  line-height: 1.06;
  word-break: keep-all;
  text-wrap: balance;
}

.guest-promotion-hero-copy h1 strong {
  color: #125df5;
}

.guest-promotion-hero-copy > p {
  max-width: 640px;
  margin: 28px 0 0;
  color: #515966;
  font-size: 19px;
  line-height: 1.7;
  word-break: keep-all;
}

.guest-home-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.guest-home-actions button {
  min-width: 150px;
  min-height: 54px;
  padding: 0 26px;
  border: 1px solid #101319;
  border-radius: 999px;
  font: inherit;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
}

.guest-home-login {
  color: #ffffff;
  background: #101319;
}

.guest-home-signup {
  color: #101319;
  background: #ffffff;
}

.guest-promotion-scroll {
  margin-top: 24px;
  padding: 0;
  border: 0;
  color: #252b34;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
  cursor: pointer;
}

.guest-promotion-badge {
  position: absolute;
  z-index: 3;
  right: clamp(28px, 4vw, 66px);
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d7dbe0;
  border-radius: 999px;
  color: #101319;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(14, 23, 38, 0.12);
  font-size: 13px;
  font-weight: 850;
}

.guest-promotion-badge-top {
  top: 54px;
}

.guest-promotion-badge-bottom {
  bottom: 48px;
}

.guest-promotion-benefits {
  width: min(1760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 42px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #dfe3e8;
}

.guest-promotion-benefits div {
  min-width: 0;
  padding: 0 32px;
  display: grid;
  gap: 7px;
}

.guest-promotion-benefits div:first-child {
  padding-left: 0;
}

.guest-promotion-benefits div + div {
  border-left: 1px solid #dfe3e8;
}

.guest-promotion-benefits strong {
  color: #101319;
  font-size: 18px;
  font-weight: 900;
}

.guest-promotion-benefits span {
  min-width: 0;
  color: #6b7280;
  font-size: 14px;
  font-weight: 650;
  word-break: keep-all;
}

.guest-promotion-services {
  width: min(1760px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(76px, 9vw, 132px) 0;
}

.guest-promotion-section-heading {
  margin-bottom: 42px;
}

.guest-promotion-section-heading > span,
.guest-promotion-flow-copy > span,
.guest-promotion-cta > div > span {
  display: block;
  margin-bottom: 12px;
  color: #125df5;
  font-size: 12px;
  font-weight: 950;
}

.guest-promotion-section-heading h2,
.guest-promotion-flow h2,
.guest-promotion-cta h2 {
  margin: 0;
  color: #101319;
  font-size: clamp(40px, 4.3vw, 68px);
  line-height: 1.12;
  word-break: keep-all;
}

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

.guest-promotion-service {
  min-width: 0;
  min-height: 610px;
  padding: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 48%;
  overflow: hidden;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  color: #101319;
  background: #f6f7f8;
  text-align: left;
  cursor: pointer;
}

.guest-promotion-service-primary {
  border-color: #125df5;
  color: #ffffff;
  background: #125df5;
}

.guest-promotion-service-dark {
  border-color: #101319;
  color: #ffffff;
  background: #101319;
}

.guest-promotion-service-copy {
  padding: clamp(28px, 3vw, 46px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.guest-promotion-service-copy small {
  margin-bottom: 22px;
  color: currentColor;
  font-size: 11px;
  font-weight: 900;
  opacity: 0.72;
}

.guest-promotion-service-copy strong {
  color: currentColor;
  font-size: clamp(31px, 2.7vw, 46px);
  line-height: 1.18;
  word-break: keep-all;
}

.guest-promotion-service-copy > span {
  max-width: 390px;
  margin-top: 20px;
  color: currentColor;
  font-size: 16px;
  line-height: 1.65;
  opacity: 0.76;
  word-break: keep-all;
}

.guest-promotion-service-copy b {
  margin-top: auto;
  padding-top: 24px;
  color: currentColor;
  font-size: 13px;
  font-weight: 900;
}

.guest-promotion-service > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
}

.guest-promotion-flow {
  width: min(1760px, calc(100% - 32px));
  margin: 0 auto clamp(76px, 9vw, 132px);
  padding: clamp(58px, 6vw, 94px);
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.5fr);
  gap: clamp(46px, 6vw, 96px);
  border-radius: 8px;
  color: #ffffff;
  background: #101319;
}

.guest-promotion-flow h2 {
  color: #ffffff;
}

.guest-promotion-flow-copy p {
  max-width: 440px;
  margin: 24px 0 0;
  color: #adb6c5;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
}

.guest-promotion-flow ol {
  margin: 0;
  padding: 0;
  display: grid;
  list-style: none;
  border-top: 1px solid #3a424e;
}

.guest-promotion-flow li {
  min-width: 0;
  padding: 28px 0;
  display: grid;
  grid-template-columns: 48px 160px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  border-bottom: 1px solid #3a424e;
}

.guest-promotion-flow li b {
  color: #ffe500;
  font-size: 13px;
}

.guest-promotion-flow li strong {
  color: #ffffff;
  font-size: 19px;
}

.guest-promotion-flow li span {
  color: #adb6c5;
  font-size: 15px;
  line-height: 1.55;
  word-break: keep-all;
}

.guest-promotion-cta {
  width: min(1760px, calc(100% - 32px));
  margin: 0 auto 72px;
  padding: clamp(50px, 6vw, 86px);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  border-radius: 8px;
  background: #ffe500;
}

.guest-promotion-cta > div > span {
  color: #101319;
}

.guest-promotion-cta-actions {
  display: flex;
  gap: 10px;
}

.guest-promotion-cta-actions button {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid #101319;
  border-radius: 999px;
  color: #101319;
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.guest-promotion-cta-actions button:first-child {
  color: #ffffff;
  background: #101319;
}

.square-main-home {
  width: min(1460px, calc(100% - 56px));
  margin: 0 auto;
  padding-bottom: 70px;
  color: #141922;
}

.square-main-header {
  min-height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.square-main-header-mark {
  width: 62px;
  height: 12px;
  display: block;
  border-radius: 8px;
  background: #aebbc5;
}

.square-main-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.square-main-header-actions button {
  min-height: 42px;
  padding: 0 17px;
  border: 1px solid #dce2e7;
  border-radius: 8px;
  background: #ffffff;
  color: #141922;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.square-main-header-actions .square-main-header-primary {
  border-color: #141922;
  background: #141922;
  color: #ffffff;
}

.square-main-header-actions .home-member-page-button {
  min-height: 34px;
  padding: 0 13px;
  border-color: #141922;
  background: #141922;
  color: #ffffff;
  font-size: 12px;
}

.home-member-grade {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #dce2e7;
  border-radius: 8px;
  background: #ffffff;
  color: #141922;
  white-space: nowrap;
}

.home-member-grade small {
  color: #7a8491;
  font-size: 10px;
  font-weight: 750;
}

.home-member-grade strong {
  color: #081957;
  font-size: 12px;
  font-weight: 900;
}

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

.square-main-intro,
.square-main-tile {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 8px;
}

.square-main-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 2px 22px;
}

.square-main-intro > img {
  width: min(176px, 52%);
  height: auto;
  object-fit: contain;
}

.square-main-intro h1 {
  margin: 0 0 12px;
  color: #141922;
  font-size: clamp(39px, 4vw, 66px);
  line-height: 0.95;
  letter-spacing: 0;
}

.square-main-intro p {
  max-width: 320px;
  margin: 0 0 18px;
  color: #141922;
  font-size: clamp(18px, 1.5vw, 25px);
  font-weight: 800;
  line-height: 1.35;
}

.square-main-intro small {
  color: #67717c;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.65;
}

.square-main-tile {
  display: block;
  padding: 0;
  border: 0;
  background: #edf1f4;
  color: #ffffff;
  font: inherit;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}

.square-main-tile:focus-visible,
.square-main-header-actions button:focus-visible,
.square-main-mobile-nav button:focus-visible {
  outline: 3px solid #0b5cff;
  outline-offset: 3px;
}

.square-main-tile::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  border: 1px solid rgb(20 25 34 / 10%);
  border-radius: inherit;
  pointer-events: none;
}

.square-main-tile > img {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 280ms ease;
}

.square-main-photo::before {
  position: absolute;
  inset: 32% 0 0;
  z-index: -2;
  content: "";
  background: linear-gradient(180deg, transparent, rgb(9 13 19 / 78%));
  pointer-events: none;
}

.square-main-tile:hover > img {
  transform: scale(1.035);
}

.square-main-dark {
  background: #141922;
  color: #ffffff;
}

.square-main-blue {
  background: #0b5cff;
  color: #ffffff;
}

.square-main-white {
  background: #ffffff;
  color: #141922;
}

.square-main-symbol {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding-bottom: 46px;
}

.square-main-symbol strong {
  font-size: clamp(54px, 5vw, 88px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: 0;
}

.square-main-symbol small {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.square-main-symbol-bath strong {
  font-size: clamp(42px, 4.3vw, 70px);
}

.square-main-symbol-sample strong {
  color: #141922;
  font-size: clamp(33px, 3.6vw, 58px);
}

.square-main-symbol-sample small {
  color: #6f7882;
}

.square-main-symbol-my strong {
  font-size: clamp(58px, 5vw, 90px);
}

.square-main-label {
  position: absolute;
  right: 22px;
  bottom: 22px;
  left: 22px;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  color: #ffffff;
}

.square-main-label > span {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.square-main-label strong {
  overflow: hidden;
  font-size: clamp(18px, 1.5vw, 25px);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.square-main-label small {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.square-main-label > b {
  flex: 0 0 auto;
  font-size: 25px;
  line-height: 1;
}

.square-main-label-dark {
  color: #141922;
}

.square-main-search {
  padding: 30px;
  background: #eff3f6;
  color: #141922;
}

.square-main-search-copy {
  display: grid;
  gap: 8px;
}

.square-main-search-copy > small {
  color: #0b5cff;
  font-size: 11px;
  font-weight: 900;
}

.square-main-search-copy > strong {
  font-size: clamp(28px, 2.8vw, 48px);
  line-height: 1;
}

.square-main-search-copy > span {
  color: #67717c;
  font-size: 13px;
  font-weight: 700;
}

.square-main-search-line {
  min-height: 48px;
  margin-top: 24px;
  padding: 0 14px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #cfd8df;
  border-radius: 8px;
  background: #ffffff;
  color: #66707b;
  font-size: 13px;
  font-weight: 750;
}

.square-main-search-line b {
  color: #0b5cff;
  font-size: 24px;
}

.square-main-wide {
  grid-column: span 2;
  aspect-ratio: 2.05 / 1;
}

.square-main-delivery {
  position: absolute;
  top: 31px;
  left: 32px;
  display: grid;
  gap: 9px;
}

.square-main-delivery small {
  color: #729aff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.square-main-delivery strong {
  font-size: clamp(27px, 2.8vw, 46px);
  line-height: 1.05;
}

.square-main-delivery > span {
  max-width: 350px;
  color: #b9c0c9;
  font-size: 13px;
  font-weight: 650;
}

.square-main-delivery-number {
  position: absolute;
  top: 24px;
  right: 28px;
  color: rgb(255 255 255 / 8%);
  font-size: clamp(70px, 8vw, 125px);
  font-weight: 950;
  line-height: 1;
}

.square-main-mobile-nav {
  display: none;
}

@media (max-width: 980px) {
  .square-main-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .square-main-intro {
    grid-column: span 2;
    aspect-ratio: 2 / 1;
  }

  .square-main-wide {
    grid-column: span 2;
  }
}

@media (max-width: 720px) {
  body[data-page="homePage"] {
    padding-bottom: 98px;
  }

  body[data-page="homePage"] .app-shell {
    width: 100%;
    max-width: none;
  }

  body[data-page="homePage"] .customer-hero-panel {
    padding: 0 !important;
  }

  .square-main-home {
    width: calc(100% - 34px);
    padding-bottom: 26px;
  }

  .square-main-header {
    min-height: 82px;
  }

  .square-main-header-mark {
    width: 44px;
    height: 9px;
  }

  .square-main-header-actions {
    gap: 7px;
  }

  .square-main-header-actions button {
    min-height: 36px;
    padding: 0 11px;
    font-size: 11px;
  }

  .square-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .square-main-intro {
    grid-column: span 2;
    min-height: 226px;
    aspect-ratio: auto;
    padding: 4px 0 17px;
  }

  .square-main-intro > img {
    width: 128px;
  }

  .square-main-intro h1 {
    margin-bottom: 8px;
    font-size: 42px;
  }

  .square-main-intro p {
    max-width: 285px;
    margin-bottom: 10px;
    font-size: 18px;
  }

  .square-main-intro small {
    font-size: 11px;
    line-height: 1.5;
  }

  .square-main-tile {
    border-radius: 7px;
  }

  .square-main-symbol {
    gap: 8px;
    padding: 0 10px 34px;
  }

  .square-main-symbol strong {
    max-width: 100%;
    font-size: 38px;
  }

  .square-main-symbol-bath strong {
    font-size: 31px;
  }

  .square-main-symbol-sample strong {
    font-size: 23px;
  }

  .square-main-symbol-my strong {
    font-size: 43px;
  }

  .square-main-symbol small {
    max-width: 100%;
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .square-main-label {
    right: 12px;
    bottom: 12px;
    left: 12px;
    gap: 7px;
  }

  .square-main-label strong {
    font-size: 14px;
  }

  .square-main-label small {
    display: none;
  }

  .square-main-label > b {
    font-size: 17px;
  }

  .square-main-search {
    padding: 17px;
  }

  .square-main-search-copy {
    gap: 4px;
  }

  .square-main-search-copy > strong {
    font-size: 23px;
  }

  .square-main-search-copy > span {
    display: none;
  }

  .square-main-search-line {
    min-height: 35px;
    margin-top: 12px;
    padding: 0 9px;
    font-size: 9px;
  }

  .square-main-search-line b {
    font-size: 17px;
  }

  .square-main-wide {
    grid-column: span 2;
    min-height: 185px;
    aspect-ratio: auto;
  }

  .square-main-delivery {
    top: 20px;
    left: 20px;
    gap: 6px;
  }

  .square-main-delivery small {
    font-size: 8px;
  }

  .square-main-delivery strong {
    font-size: 24px;
  }

  .square-main-delivery > span {
    max-width: 230px;
    font-size: 10px;
  }

  .square-main-delivery-number {
    top: 18px;
    right: 15px;
    font-size: 52px;
  }

  .square-main-mobile-nav {
    position: fixed;
    right: 14px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 14px;
    z-index: 1600;
    min-height: 74px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid #dfe4e8;
    border-radius: 8px;
    background: rgb(255 255 255 / 96%);
    box-shadow: 0 12px 36px rgb(20 25 34 / 16%);
    backdrop-filter: blur(12px);
  }

  .square-main-mobile-nav button {
    min-width: 0;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: #66707b;
    font: inherit;
    cursor: pointer;
  }

  .square-main-mobile-nav button.active {
    background: #141922;
    color: #ffffff;
  }

  .square-main-mobile-nav b {
    font-size: 10px;
  }

  .square-main-mobile-nav span {
    max-width: 100%;
    overflow: hidden;
    font-size: 10px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* 2026-07-29: five-column commerce mosaic home */
body[data-page="homePage"] .square-main-home {
  width: min(1500px, calc(100% - 48px));
  padding-bottom: 76px;
}

body[data-page="homePage"] .square-main-header {
  min-height: 88px;
}

body[data-page="homePage"] .square-main-header-mark {
  width: 52px;
  height: 9px;
  background: #aeb8c1;
}

body[data-page="homePage"] .square-main-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

body[data-page="homePage"] .square-main-intro,
body[data-page="homePage"] .square-main-tile {
  aspect-ratio: 1;
  border-radius: 8px;
}

.square-main-empty {
  display: block;
  aspect-ratio: 1;
  visibility: hidden;
  pointer-events: none;
}

body[data-page="homePage"] .square-main-grid > .member-home-board {
  grid-column: span 3;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-grid {
  height: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-card {
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1;
  align-content: end;
  padding: 20px;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  background: #081957;
  box-shadow: none;
}

body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-card:nth-child(2) {
  background: #1464f4;
}

body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-card:nth-child(3) {
  color: #111111;
  background: #ffe500;
}

body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-card span,
body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-card small {
  color: inherit;
}

body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-card span {
  font-size: 13px;
}

body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-card strong {
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(20px, 1.9vw, 29px);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-card small {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page="homePage"] .square-main-intro {
  min-width: 0;
  padding: 24px 20px 22px;
  justify-content: space-between;
  border: 1px solid #e1e6ea;
  background: #ffffff;
}

body[data-page="homePage"] .square-main-intro > img {
  width: min(178px, 74%);
}

body[data-page="homePage"] .square-main-intro p {
  max-width: 250px;
  margin: 0 0 13px;
  font-size: clamp(17px, 1.25vw, 21px);
  line-height: 1.4;
}

body[data-page="homePage"] .square-main-intro small {
  font-size: 12px;
  line-height: 1.55;
}

body[data-page="homePage"] .square-main-tile {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

body[data-page="homePage"] .square-main-tile:hover {
  z-index: 3;
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgb(8 25 87 / 14%);
}

body[data-page="homePage"] .square-main-tile::after {
  border-color: rgb(8 25 87 / 12%);
}

body[data-page="homePage"] .square-main-intro,
body[data-page="homePage"] .mosaic-ai-tile::after {
  border: 0;
}

body[data-page="homePage"] .square-main-photo::before {
  inset: 44% 0 0;
  background: linear-gradient(180deg, transparent, rgb(7 16 37 / 82%));
}

body[data-page="homePage"] .square-main-label {
  right: 18px;
  bottom: 18px;
  left: 18px;
  gap: 12px;
}

body[data-page="homePage"] .square-main-label strong {
  font-size: clamp(16px, 1.35vw, 21px);
}

body[data-page="homePage"] .square-main-label small {
  font-size: 11px;
}

body[data-page="homePage"] .square-main-label > b {
  font-size: 21px;
}

.mosaic-icon-tile {
  color: #ffffff;
}

.mosaic-tile-blue {
  background: #1155d9;
}

.mosaic-tile-teal {
  background: #0db8ad;
}

.mosaic-tile-coral {
  background: #ff553d;
}

.mosaic-tile-navy {
  background: #081957;
}

.mosaic-tile-green {
  background: #087448;
}

.mosaic-tile-purple {
  background: #7754cf;
}

.mosaic-main-icon {
  position: absolute;
  top: 16%;
  right: 20%;
  left: 20%;
  display: grid;
  place-items: center;
}

.mosaic-main-icon svg {
  width: 100%;
  height: auto;
  max-width: 128px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.mosaic-filter-icon {
  top: 18%;
}

.mosaic-my-icon {
  right: 23%;
  left: 23%;
}

.mosaic-style-icon {
  top: 17%;
}

.mosaic-ai-tile > img {
  object-position: center;
}

.mosaic-bath-go-tile {
  background: #ffe500;
}

body[data-page="homePage"] .mosaic-bath-go-tile::before {
  display: none;
}

.mosaic-bath-go-tile .square-main-label {
  color: #081957;
}

.mosaic-ai-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  min-width: 38px;
  height: 30px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #ffffff;
  color: #081957;
  font-size: 12px;
  font-weight: 900;
}

.mosaic-bath-photo > img {
  object-position: center;
}

.mosaic-search-photo > img {
  object-position: center;
}

.mosaic-search-pill {
  position: absolute;
  top: 19px;
  left: 18px;
  min-height: 42px;
  padding: 0 17px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  background: #ffffff;
  color: #081957;
  box-shadow: 0 7px 22px rgb(8 25 87 / 13%);
  font-size: 13px;
  font-weight: 850;
}

.mosaic-search-pill svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.mosaic-sample-tile > img {
  object-position: center;
}

.mosaic-recommend-tile > img {
  object-position: center;
  filter: none;
}

.mosaic-category-icons {
  position: absolute;
  top: 16%;
  right: 15%;
  left: 15%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mosaic-category-icons svg {
  width: 100%;
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
}

body[data-page="homePage"] .mosaic-promo-tile {
  grid-column: span 2;
  aspect-ratio: 2.055 / 1;
  background: #081957;
}

.mosaic-promo-track {
  position: absolute;
  inset: 0;
  display: flex;
  width: 400%;
  animation: mosaic-promo-slide 20s infinite;
}

.mosaic-promo-slide {
  flex: 0 0 25%;
  min-width: 0;
}

.mosaic-promo-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.mosaic-promo-tile:hover .mosaic-promo-track,
.mosaic-promo-tile:focus-visible .mosaic-promo-track {
  animation-play-state: paused;
}

.mosaic-promo-dots {
  position: absolute;
  right: 16px;
  bottom: 14px;
  display: flex;
  gap: 6px;
}

.mosaic-promo-dots i {
  width: 19px;
  height: 3px;
  border-radius: 8px;
  background: rgb(255 255 255 / 45%);
}

.mosaic-promo-dots i:first-child {
  background: #ffffff;
}

@keyframes mosaic-promo-slide {
  0%,
  20% {
    transform: translateX(0);
  }
  25%,
  45% {
    transform: translateX(-25%);
  }
  50%,
  70% {
    transform: translateX(-50%);
  }
  75%,
  95% {
    transform: translateX(-75%);
  }
  100% {
    transform: translateX(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mosaic-promo-track {
    animation: none;
  }

  body[data-page="homePage"] .square-main-tile,
  body[data-page="homePage"] .square-main-tile > img {
    transition: none;
  }
}

@media (max-width: 1180px) {
  body[data-page="homePage"] .square-main-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-page="homePage"] .square-main-intro {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  .guest-promotion-hero {
    min-height: 660px;
  }

  .guest-promotion-hero-copy {
    width: 62%;
    padding: 54px 38px;
  }

  .guest-promotion-badge {
    display: none;
  }

  .guest-promotion-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 26px;
  }

  .guest-promotion-benefits div:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

  .guest-promotion-service-grid {
    grid-template-columns: 1fr;
  }

  .guest-promotion-service {
    min-height: 420px;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    grid-template-rows: none;
  }

  .guest-promotion-flow {
    grid-template-columns: 1fr;
  }

  .guest-promotion-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  body[data-page="homePage"] .square-main-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  body[data-page="homePage"] .customer-home-entry > .guest-home-gate:not(.hidden) {
    width: 100%;
    min-height: 0;
    margin: 0;
    padding: 0;
    background: #ffffff;
  }

  .guest-promotion-hero {
    width: calc(100% - 24px);
    min-height: min(650px, calc(100svh - 104px));
    margin-top: 8px;
  }

  .guest-promotion-hero::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(255, 255, 255, 0.82);
    content: "";
  }

  .guest-promotion-hero-image {
    object-position: 66% center;
  }

  .guest-promotion-hero-copy {
    width: 100%;
    min-height: inherit;
    padding: 42px 24px 36px;
    justify-content: flex-end;
  }

  .guest-promotion-kicker {
    margin-bottom: 17px;
    padding: 8px 11px;
    font-size: 10px;
  }

  .guest-promotion-hero-copy h1 {
    max-width: 420px;
    font-size: clamp(34px, 10.2vw, 44px);
  }

  .guest-promotion-hero-copy > p {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.6;
  }

  .guest-home-actions {
    width: 100%;
    margin-top: 26px;
    gap: 8px;
  }

  .guest-home-actions button {
    min-width: 0;
    min-height: 50px;
    padding: 0 14px;
    flex: 1;
    font-size: 13px;
  }

  .guest-promotion-scroll {
    margin-top: 18px;
  }

  .guest-promotion-benefits {
    width: calc(100% - 24px);
    padding: 28px 0 32px;
    gap: 22px 0;
  }

  .guest-promotion-benefits div {
    padding: 0 14px;
  }

  .guest-promotion-benefits strong {
    font-size: 13px;
  }

  .guest-promotion-benefits span {
    font-size: 11px;
    line-height: 1.45;
  }

  .guest-promotion-services {
    width: calc(100% - 24px);
    padding: 62px 0;
  }

  .guest-promotion-section-heading {
    margin-bottom: 28px;
  }

  .guest-promotion-section-heading h2,
  .guest-promotion-flow h2,
  .guest-promotion-cta h2 {
    font-size: clamp(30px, 9vw, 38px);
  }

  .guest-promotion-service-grid {
    gap: 12px;
  }

  .guest-promotion-service {
    min-height: 500px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) 45%;
  }

  .guest-promotion-service-copy {
    padding: 28px 24px;
  }

  .guest-promotion-service-copy strong {
    font-size: 27px;
  }

  .guest-promotion-service-copy > span {
    margin-top: 15px;
    font-size: 13px;
  }

  .guest-promotion-flow {
    width: calc(100% - 24px);
    margin-bottom: 62px;
    padding: 38px 24px;
    gap: 34px;
  }

  .guest-promotion-flow-copy p {
    margin-top: 18px;
    font-size: 13px;
  }

  .guest-promotion-flow li {
    padding: 22px 0;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px 12px;
  }

  .guest-promotion-flow li span {
    grid-column: 2;
    font-size: 12px;
  }

  .guest-promotion-flow li strong {
    font-size: 17px;
  }

  .guest-promotion-cta {
    width: calc(100% - 24px);
    margin-bottom: 34px;
    padding: 36px 24px;
    gap: 28px;
  }

  .guest-promotion-cta-actions {
    width: 100%;
  }

  .guest-promotion-cta-actions button {
    min-width: 0;
    padding: 0 16px;
    flex: 1;
    font-size: 12px;
  }

  body[data-page="homePage"] .square-main-home {
    width: calc(100% - 28px);
    padding-bottom: 30px;
  }

  body[data-page="homePage"] .square-main-header {
    min-height: 76px;
  }

  body[data-page="homePage"] .square-main-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }

  body[data-page="homePage"] .square-main-grid > .member-home-board {
    grid-column: span 2;
  }

  body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-grid {
    gap: 7px;
  }

  body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-card {
    padding: 10px;
  }

  body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-card span {
    font-size: 10px;
  }

  body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-card strong {
    font-size: 14px;
  }

  body[data-page="homePage"] .square-main-grid > .member-home-board .member-board-card small {
    font-size: 8px;
  }

  body[data-page="homePage"] .square-main-intro {
    grid-column: span 2;
    min-height: 166px;
    aspect-ratio: 2.08 / 1;
    padding: 18px;
  }

  body[data-page="homePage"] .square-main-intro > img {
    width: 125px;
  }

  body[data-page="homePage"] .square-main-intro p {
    max-width: 270px;
    margin-bottom: 7px;
    font-size: 16px;
  }

  body[data-page="homePage"] .square-main-intro small {
    font-size: 10px;
  }

  body[data-page="homePage"] .square-main-label {
    right: 11px;
    bottom: 11px;
    left: 11px;
  }

  body[data-page="homePage"] .square-main-label strong {
    font-size: 14px;
  }

  body[data-page="homePage"] .square-main-label small {
    display: none;
  }

  .mosaic-main-icon {
    top: 13%;
    right: 22%;
    left: 22%;
  }

  .mosaic-category-icons {
    top: 13%;
    right: 17%;
    left: 17%;
    gap: 8px;
  }

  .mosaic-ai-badge {
    top: 10px;
    left: 10px;
    min-width: 31px;
    height: 25px;
    padding: 0 8px;
    font-size: 10px;
  }

  .mosaic-search-pill {
    top: 10px;
    left: 10px;
    min-height: 32px;
    padding: 0 10px;
    gap: 6px;
    font-size: 10px;
  }

  .mosaic-search-pill svg {
    width: 14px;
    height: 14px;
  }

  body[data-page="homePage"] .mosaic-promo-tile {
    grid-column: span 2;
    min-height: 0;
    aspect-ratio: 2.055 / 1;
  }

  .mosaic-promo-dots {
    right: 10px;
    bottom: 9px;
    gap: 4px;
  }

  .mosaic-promo-dots i {
    width: 13px;
    height: 2px;
  }
}

/* TileGO: search-led catalog combined with a product-focused gallery. */
body[data-page="productsPage"],
body[data-page="bathProductsPage"] {
  background: #ffffff;
}

body[data-page="productsPage"] .customer-products-page,
body[data-page="bathProductsPage"] .bath-products-page {
  width: min(1480px, calc(100% - 42px));
  margin: 0 auto;
}

body[data-page="productsPage"] .customer-products-page .customer-page-heading,
body[data-page="bathProductsPage"] .bath-products-page .customer-page-heading {
  padding: 28px 0 20px;
  border: 0;
  border-bottom: 1px solid #e2e6ea;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

body[data-page="productsPage"] .customer-catalog-panel,
body[data-page="bathProductsPage"] .bath-catalog-panel {
  padding: 0 0 70px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.tile-search-stage {
  min-height: 310px;
  margin: 0 0 18px;
  padding: 46px;
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(420px, 1.2fr);
  align-items: center;
  gap: 58px;
  border-radius: 8px;
  color: #ffffff;
  background: #141922;
}

body.customer-experience-mode[data-page="productsPage"] .tile-search-stage {
  border: 0 !important;
  background: #141922 !important;
  box-shadow: none !important;
}

body.customer-experience-mode .tile-search-stage .catalog-toolbar-copy,
.tile-search-stage .catalog-toolbar-copy {
  max-width: 560px;
}

.tile-search-stage .eyebrow {
  color: #76a0ff;
}

.tile-search-stage .catalog-toolbar-copy h3 {
  margin: 6px 0 14px;
  color: #ffffff;
  font-size: 42px;
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: keep-all;
}

.tile-search-stage .catalog-toolbar-copy > p:last-child {
  margin: 0;
  color: #c1c8d0;
  font-size: 16px;
  line-height: 1.75;
}

.tile-search-natural {
  display: grid;
  gap: 10px;
}

.tile-search-natural > label {
  color: #ffffff;
  font-size: 14px;
  font-weight: 900;
}

.tile-search-natural > span {
  color: #aeb7c1;
  font-size: 12px;
  font-weight: 700;
}

.tile-search-control {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 88px;
  gap: 8px;
}

.tile-search-control input {
  min-width: 0;
  height: 58px;
  padding: 0 18px;
  border: 1px solid #ffffff;
  border-radius: 6px;
  color: #141922;
  background: #ffffff;
  font: inherit;
  font-size: 15px;
  font-weight: 750;
}

.tile-search-control input:focus {
  border-color: #6e9aff;
  outline: 3px solid rgb(68 124 255 / 30%);
}

.tile-search-submit {
  min-height: 58px;
  border: 1px solid #0b5cff;
  border-radius: 6px;
  color: #ffffff;
  background: #0b5cff;
  font: inherit;
  font-size: 15px;
  font-weight: 900;
}

.tile-catalog-links {
  margin: 0;
  padding: 10px 0 16px;
  border-bottom: 1px solid #e3e7eb;
}

.tile-catalog-links .customer-chip {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  color: #35404a;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 850;
}

.tile-catalog-links .customer-chip:hover,
.tile-catalog-links .customer-chip.is-active {
  border-color: #141922;
  color: #ffffff;
  background: #141922;
}

body[data-page="productsPage"] .tile-finder-panel--shortcut {
  min-height: 0;
  margin: 16px 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border: 0;
  background: transparent;
}

body[data-page="productsPage"] .filter-grid-catalog {
  margin: 0 0 18px;
  padding: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #ffffff;
}

body[data-page="productsPage"] .filter-grid-catalog label {
  min-width: 0;
  font-size: 13px;
}

body[data-page="productsPage"] .filter-grid-catalog select {
  min-width: 0;
  height: 46px;
  border-radius: 5px;
  background-color: #f7f9fa;
}

body[data-page="productsPage"] .expert-search-panel {
  margin: 0 0 24px;
  padding: 18px;
  border: 1px solid #dfe4e8;
  border-radius: 6px;
  background: #f8fafb;
  box-shadow: none;
}

body[data-page="productsPage"] .expert-search-grid {
  gap: 12px;
}

body[data-page="productsPage"] .customer-list-header {
  margin-top: 4px;
  padding: 20px 0 14px;
  border-top: 2px solid #141922;
  border-bottom: 1px solid #dfe4e8;
}

body[data-page="productsPage"] .customer-list-header > strong {
  color: #141922;
  font-size: 28px;
}

body.customer-experience-mode[data-page="productsPage"] .product-page-list,
body[data-page="productsPage"] .product-list.product-page-list {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 34px 18px !important;
  padding-top: 22px;
}

body[data-page="productsPage"] .product-page-slide-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
}

body.customer-experience-mode[data-page="productsPage"] .product-page-list .product-card,
body[data-page="productsPage"] .product-page-list .product-card {
  padding: 0 0 15px !important;
  gap: 10px !important;
  overflow: visible !important;
  border: 0 !important;
  border-bottom: 1px solid #e3e6e9 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}

body[data-page="productsPage"] .product-page-list .product-detail-trigger,
body[data-page="productsPage"] .product-page-list .product-thumb {
  border-radius: 6px !important;
}

body[data-page="productsPage"] .product-page-list .product-detail-trigger {
  overflow: hidden;
  background: #f1f3f5;
}

body[data-page="productsPage"] .product-page-list .product-thumb {
  transition: transform 220ms ease;
}

body[data-page="productsPage"] .product-page-list .product-card:hover .product-thumb {
  transform: scale(1.025);
}

body[data-page="productsPage"] .product-page-list .product-card > div:nth-child(2) {
  display: grid;
  gap: 5px;
}

body[data-page="productsPage"] .product-page-list .product-name-button {
  min-height: 42px;
  color: #141922;
  font-size: 17px !important;
  font-weight: 850;
  line-height: 1.3 !important;
}

body[data-page="productsPage"] .product-page-list .product-card span {
  color: #68727c;
  font-size: 12px !important;
}

body.customer-experience-mode[data-page="productsPage"] .product-page-list .product-card [data-add-product],
body[data-page="productsPage"] .product-page-list .product-card [data-add-product] {
  top: 8px !important;
  right: 8px !important;
  min-height: 30px !important;
  padding: 0 9px !important;
  border: 1px solid #0b5cff !important;
  border-radius: 6px !important;
  background: #0b5cff !important;
  color: #ffffff !important;
  font-size: 12px !important;
}

/* BathGO: editorial entry page combined with storefront search. */
.bath-editorial-hero {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: 8px;
  background: #141922;
  isolation: isolate;
}

.bath-editorial-hero::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgb(7 12 19 / 54%);
}

.bath-editorial-hero > img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
}

.bath-editorial-overlay {
  width: min(680px, 70%);
  min-height: 430px;
  padding: 46px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #ffffff;
}

.bath-editorial-overlay .eyebrow {
  color: #91b3ff;
}

.bath-editorial-overlay h3 {
  margin: 6px 0 14px;
  color: #ffffff;
  font-size: 50px;
  line-height: 1.08;
  letter-spacing: 0;
}

.bath-editorial-overlay > p:not(.eyebrow) {
  max-width: 580px;
  margin: 0 0 24px;
  color: #e0e5e9;
  font-size: 15px;
  line-height: 1.7;
}

.bath-editorial-search {
  width: min(590px, 100%);
}

.bath-editorial-search > label {
  color: #ffffff;
  font-size: 13px;
}

.bath-editorial-search .bath-search-control {
  grid-template-columns: minmax(0, 1fr) 86px;
}

.bath-editorial-search .bath-search-control input,
.bath-editorial-search .bath-search-control button {
  height: 54px;
  min-height: 54px;
}

.bath-editorial-categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid #dfe4e8;
  border-left: 1px solid #dfe4e8;
}

.bath-editorial-categories button {
  position: relative;
  min-height: 170px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  justify-items: start;
  gap: 7px;
  border: 0;
  border-top: 1px solid #dfe4e8;
  border-right: 1px solid #dfe4e8;
  border-radius: 0;
  color: #141922;
  background: #ffffff;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.bath-editorial-categories button:hover,
.bath-editorial-categories button.is-active {
  color: #ffffff;
  background: #0b5cff;
}

.bath-editorial-categories button > span {
  color: #7d8791;
  font-size: 11px;
  font-weight: 900;
}

.bath-editorial-categories button:hover > span,
.bath-editorial-categories button.is-active > span {
  color: #c9d8ff;
}

.bath-editorial-categories strong {
  align-self: end;
  font-size: 25px;
}

.bath-editorial-categories small {
  color: #727d87;
  font-size: 12px;
  font-weight: 700;
}

.bath-editorial-categories button:hover small,
.bath-editorial-categories button.is-active small {
  color: #ffffff;
}

.bath-editorial-categories b {
  position: absolute;
  right: 22px;
  bottom: 22px;
  font-size: 22px;
}

.bath-catalog-context {
  display: grid;
  gap: 14px;
  padding-top: 42px;
}

.bath-catalog-context .bath-catalog-heading {
  padding-bottom: 18px;
}

body[data-page="bathProductsPage"] .bath-filter-grid {
  margin: 0;
}

body[data-page="bathProductsPage"] .bath-filter-grid:empty {
  display: none;
}

body[data-page="bathProductsPage"] .bath-result-header {
  border-top: 2px solid #141922;
}

@media (max-width: 1100px) {
  .tile-search-stage {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  body[data-page="productsPage"] .filter-grid-catalog {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.customer-experience-mode[data-page="productsPage"] .product-page-list,
  body[data-page="productsPage"] .product-list.product-page-list,
  body[data-page="productsPage"] .product-page-slide-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 720px) {
  body[data-page="productsPage"] .customer-products-page,
  body[data-page="bathProductsPage"] .bath-products-page {
    width: 100%;
  }

  body[data-page="productsPage"] .customer-products-page .customer-page-heading,
  body[data-page="bathProductsPage"] .bath-products-page .customer-page-heading {
    display: none !important;
  }

  body[data-page="productsPage"] .customer-catalog-panel,
  body[data-page="bathProductsPage"] .bath-catalog-panel {
    padding: 0 14px 100px !important;
    border-radius: 0 !important;
  }

  .tile-search-stage {
    min-height: 0;
    margin-right: -14px;
    margin-left: -14px;
    padding: 28px 18px;
    gap: 22px;
    border-radius: 0;
  }

  .tile-search-stage .catalog-toolbar-copy h3 {
    font-size: 32px;
  }

  .tile-search-stage .catalog-toolbar-copy > p:last-child {
    font-size: 13px;
  }

  .tile-search-control {
    grid-template-columns: minmax(0, 1fr) 66px;
    gap: 6px;
  }

  .tile-search-control input,
  .tile-search-submit {
    height: 50px;
    min-height: 50px;
  }

  .tile-search-control input {
    padding: 0 12px;
    font-size: 12px;
  }

  .tile-search-submit {
    font-size: 12px;
  }

  .tile-catalog-links {
    overflow-x: auto;
    flex-wrap: nowrap;
  }

  body[data-page="productsPage"] .tile-finder-panel--shortcut {
    justify-content: stretch;
  }

  body[data-page="productsPage"] .tile-finder-panel--shortcut .primary-action {
    width: 100%;
  }

  body[data-page="productsPage"] .filter-grid-catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  body[data-page="productsPage"] .filter-grid-catalog label:last-child {
    grid-column: span 2;
  }

  body[data-page="productsPage"] .filter-grid-catalog select {
    height: 42px;
  }

  body[data-page="productsPage"] .expert-search-panel {
    padding: 12px;
  }

  body[data-page="productsPage"] .customer-list-header > strong {
    font-size: 21px;
  }

  body.customer-experience-mode[data-page="productsPage"] .product-page-list,
  body[data-page="productsPage"] .product-list.product-page-list,
  body[data-page="productsPage"] .product-page-slide-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 22px 10px !important;
  }

  body.customer-experience-mode[data-page="productsPage"] .product-page-list .product-card,
  body[data-page="productsPage"] .product-page-list .product-card {
    padding: 0 0 10px !important;
    gap: 7px !important;
  }

  body[data-page="productsPage"] .product-page-list .product-name-button {
    min-height: 38px;
    font-size: 14px !important;
  }

  body[data-page="productsPage"] .product-page-list .product-card span {
    font-size: 10px !important;
  }

  .bath-editorial-hero {
    min-height: 470px;
    margin-right: -14px;
    margin-left: -14px;
    border-radius: 0;
  }

  .bath-editorial-overlay {
    width: 100%;
    min-height: 470px;
    padding: 28px 18px;
    justify-content: flex-end;
  }

  .bath-editorial-overlay h3 {
    font-size: 34px;
  }

  .bath-editorial-overlay > p:not(.eyebrow) {
    font-size: 13px;
  }

  .bath-editorial-search .bath-search-control {
    grid-template-columns: minmax(0, 1fr) 68px;
  }

  .bath-editorial-search .bath-search-control input,
  .bath-editorial-search .bath-search-control button {
    height: 48px;
    min-height: 48px;
    font-size: 12px;
  }

  .bath-editorial-categories {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-right: -14px;
    margin-left: -14px;
  }

  .bath-editorial-categories button {
    min-height: 142px;
    padding: 18px;
  }

  .bath-editorial-categories strong {
    font-size: 20px;
  }

  .bath-editorial-categories small {
    max-width: calc(100% - 24px);
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .bath-editorial-categories b {
    right: 16px;
    bottom: 16px;
  }

  .bath-catalog-context {
    padding-top: 30px;
  }
}

/* Keep runtime site-studio choices authoritative over the base theme. */
body {
  color: var(--site-ink);
  font-family: var(--site-font-family);
  background: var(--site-page);
}

.square-main-home {
  max-width: var(--site-content-width);
}

.square-main-grid {
  gap: var(--site-home-gap);
}

.square-main-tile,
.bath-editorial-hero,
.tile-search-stage {
  border-radius: var(--site-radius);
}

.square-main-blue,
.tile-search-submit,
body.customer-experience-mode[data-page="productsPage"] .product-page-list .product-card [data-add-product],
body[data-page="productsPage"] .product-page-list .product-card [data-add-product],
.bath-editorial-categories button:hover,
.bath-editorial-categories button.is-active {
  border-color: var(--site-primary) !important;
  background: var(--site-primary) !important;
}

.tile-search-stage,
.square-main-dark {
  background: var(--site-ink) !important;
}

body[data-page="productsPage"] .customer-products-page,
body[data-page="bathProductsPage"] .bath-products-page {
  width: min(var(--site-content-width), calc(100% - 42px));
}

body.customer-experience-mode[data-page="productsPage"] .product-page-list,
body[data-page="productsPage"] .product-list.product-page-list,
body[data-page="productsPage"] .product-page-slide-panel {
  grid-template-columns: repeat(var(--site-product-columns-desktop), minmax(0, 1fr)) !important;
}

body.site-font-compact {
  font-size: 18px;
}

body.site-font-default {
  font-size: 20.8px;
}

body.site-font-large {
  font-size: 22px;
}

body.site-font-compact .tile-search-stage .catalog-toolbar-copy h3 {
  font-size: 37px;
}

body.site-font-large .tile-search-stage .catalog-toolbar-copy h3 {
  font-size: 47px;
}

body.site-font-compact .bath-editorial-overlay h3 {
  font-size: 44px;
}

body.site-font-large .bath-editorial-overlay h3 {
  font-size: 56px;
}

body.admin-authenticated .topbar {
  flex-wrap: wrap;
  grid-template-columns: auto minmax(260px, 1fr);
}

body.admin-authenticated .top-actions {
  grid-column: 1 / -1;
  min-width: 0;
  width: 100%;
  flex: 0 0 100%;
  justify-content: flex-end;
}

/* 2026-07-29: commerce-style customer header */
.commerce-utility-bar,
.desktop-header-nav {
  display: none;
}

.topbar-search-icon,
.topbar-camera-icon,
.commerce-utility-bar svg,
.header-action-button svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.header-action-button {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #111111;
  background: #ffffff;
}

.header-action-button:hover {
  background: #f2f2f2;
}

.header-action-button > span {
  position: absolute;
  top: 0;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: #1464f4;
  font-size: 10px;
  font-weight: 900;
}

.header-member-actions {
  display: flex;
  align-items: center;
}

@media (min-width: 861px) {
  body.customer-experience-mode .commerce-utility-bar {
    position: relative;
    width: calc(100% + 64px);
    margin-left: -32px;
    display: block;
    color: #101319;
    background: #ffe500;
  }

  body.customer-experience-mode .commerce-utility-inner {
    width: min(1760px, calc(100% - 48px));
    min-height: 42px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 28px;
    font-size: 12px;
    font-weight: 750;
  }

  .commerce-utility-language,
  .commerce-utility-notice,
  .commerce-utility-links,
  .commerce-utility-links > span {
    display: flex;
    align-items: center;
  }

  .commerce-utility-language {
    gap: 10px;
  }

  .commerce-utility-language span {
    padding-left: 10px;
    border-left: 1px solid rgb(16 19 25 / 32%);
  }

  .commerce-utility-notice {
    justify-content: center;
    gap: 9px;
  }

  .commerce-utility-links {
    justify-content: flex-end;
    gap: 24px;
  }

  .commerce-utility-links > span {
    gap: 8px;
    white-space: nowrap;
  }

  .commerce-utility-bar svg {
    width: 18px;
    height: 18px;
  }

  body.customer-experience-mode .header-reset-cart {
    display: none;
  }

  body.customer-experience-mode .top-actions {
    flex-wrap: nowrap;
    gap: 2px;
  }

  body.customer-experience-mode .auth-actions,
  body.customer-experience-mode .auth-session {
    gap: 2px;
  }

  body.customer-experience-mode .top-actions .secondary-action,
  body.customer-experience-mode .auth-badge {
    min-height: 40px;
    padding: 0 10px;
    border: 0;
    font-size: 12px;
    white-space: nowrap;
  }

  body.customer-experience-mode .top-actions .secondary-action:hover {
    background: #f2f2f2;
  }

  body.customer-experience-mode .topbar-search {
    grid-template-columns: 22px minmax(0, 1fr) 24px;
    gap: 12px;
    min-height: 48px;
    padding: 0 17px;
    border: 0;
    border-radius: 999px;
    background: #f3f3f3;
    color: #111111;
  }

  body.customer-experience-mode .topbar-search span {
    color: #5f5f5f;
    font-size: 13px;
    font-weight: 650;
  }

  body.customer-experience-mode .topbar-search svg {
    width: 21px;
    height: 21px;
  }
}

@media (min-width: 1180px) {
  body.customer-experience-mode .topbar,
  body.customer-experience-mode.admin-authenticated .topbar {
    grid-template-columns: 150px minmax(390px, auto) minmax(260px, 1fr) max-content;
    gap: 22px;
    max-width: 1760px;
    min-height: 88px;
    padding: 15px 0;
  }

  body.customer-experience-mode .brand-logo-mark {
    width: 146px;
    height: 48px;
  }

  body.customer-experience-mode .desktop-header-nav {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 22px;
  }

  body.customer-experience-mode .desktop-header-nav button {
    min-width: 0;
    padding: 0;
    border: 0;
    color: #4b4b4b;
    background: transparent;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    white-space: nowrap;
  }

  body.customer-experience-mode .desktop-header-nav button:hover,
  body.customer-experience-mode .desktop-header-nav button.active {
    color: #1464f4;
  }

  body.customer-experience-mode > .app-nav,
  body.customer-experience-mode .app-shell > .app-nav {
    display: none;
  }

  body.customer-experience-mode.admin-authenticated .top-actions {
    grid-column: auto;
    width: auto;
    flex: initial;
  }
}

@media (min-width: 1180px) and (max-width: 1320px) {
  body.customer-experience-mode .topbar,
  body.customer-experience-mode.admin-authenticated .topbar {
    grid-template-columns: 138px minmax(320px, auto) minmax(240px, 1fr) max-content;
    gap: 15px;
  }

  body.customer-experience-mode .brand-logo-mark {
    width: 134px;
  }

  body.customer-experience-mode .desktop-header-nav {
    gap: 15px;
  }

  body.customer-experience-mode .desktop-header-nav button:last-child {
    display: none;
  }
}

@media (max-width: 860px) {
  .commerce-utility-bar,
  .desktop-header-nav {
    display: none !important;
  }

  body.customer-experience-mode .header-reset-cart {
    display: none;
  }

  body.customer-experience-mode .top-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  body.customer-experience-mode .header-cart-button {
    margin-left: auto;
  }
}

@media (max-width: 760px) {
  body.customer-experience-mode[data-page="productsPage"] .product-page-list,
  body[data-page="productsPage"] .product-list.product-page-list,
  body[data-page="productsPage"] .product-page-slide-panel {
    grid-template-columns: repeat(var(--site-product-columns-mobile), minmax(0, 1fr)) !important;
  }

  body[data-page="siteStudioPage"] {
    overflow-x: hidden;
  }

  .site-studio-page,
  .site-studio-page > *,
  .site-studio-workspace,
  .site-studio-editor,
  .site-studio-heading,
  .site-studio-command,
  .site-studio-ops-summary,
  .site-studio-sidebar {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .site-studio-heading,
  .site-studio-command,
  .site-studio-ops-summary,
  .site-studio-sidebar {
    width: 100% !important;
  }

  .site-studio-heading .detail-actions {
    min-width: 0;
  }

  .site-studio-heading .detail-actions button,
  .site-studio-command-actions button {
    min-width: 0;
    padding-inline: 8px;
    font-size: 11px;
  }

  .site-studio-savebar,
  .site-studio-savebar > div,
  .site-studio-savebar .signup-status-bar {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .site-studio-savebar .signup-status-bar {
    width: 100%;
    white-space: normal;
  }

  .site-studio-sidebar {
    overflow-x: auto !important;
    overflow-y: hidden;
    contain: inline-size;
  }
}

/* Refined admin control center */
body[data-page="siteStudioPage"],
body[data-page="adminPage"] {
  background: #f2f4f7;
}

.site-studio-page,
.admin-console-page {
  width: min(1680px, calc(100% - 32px));
  max-width: none;
  margin-inline: auto;
}

.site-studio-heading,
.admin-console-heading {
  min-height: 142px;
  margin-bottom: 12px;
  padding: 26px 28px;
  align-items: center;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #ffffff;
}

.site-studio-title-meta {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-studio-title-meta span {
  min-height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #d8dee7;
  border-radius: 4px;
  color: #526070;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 800;
}

.site-studio-title-meta span:first-child {
  border-color: #bfd2ff;
  color: #0849bc;
  background: #edf4ff;
}

.site-studio-heading h2,
.admin-console-heading h2 {
  margin: 3px 0 7px;
  color: #101828;
  font-size: 34px;
  line-height: 1.16;
  letter-spacing: 0;
}

.site-studio-heading > div > p:last-child,
.admin-console-heading > div > p:last-child {
  margin: 0;
  color: #667085;
  font-size: 14px;
  line-height: 1.6;
}

.site-studio-heading .detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-studio-heading .detail-actions button {
  min-height: 42px;
}

.site-studio-history-button:disabled,
.site-studio-savebar button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.site-studio-controlbar {
  position: sticky;
  top: 8px;
  z-index: 35;
  min-height: 66px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #cfd7e3;
  border-radius: 8px;
  background: rgb(255 255 255 / 96%);
  box-shadow: 0 8px 24px rgb(16 24 40 / 9%);
  backdrop-filter: blur(14px);
}

.site-studio-controlbar > div:first-child {
  min-width: 190px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.site-studio-controlbar > div:first-child strong {
  color: #101828;
  font-size: 14px;
}

.site-studio-controlbar > div:first-child span:last-child {
  color: #667085;
  font-size: 11px;
  font-weight: 700;
}

.site-studio-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #12b76a;
  box-shadow: 0 0 0 4px #d1fadf;
}

.site-studio-controlbar-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.site-studio-controlbar-actions label {
  min-width: min(300px, 34vw);
  position: relative;
}

.site-studio-controlbar-actions label > span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-studio-controlbar-actions input {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: #101828;
  background: #f9fafb;
  font: inherit;
  font-size: 13px;
}

.site-studio-controlbar-actions button {
  min-height: 40px;
  padding-inline: 13px;
}

.site-studio-workspace {
  margin-top: 14px;
  grid-template-columns: 224px minmax(620px, 1fr) minmax(340px, 400px);
  gap: 14px;
}

.site-studio-sidebar {
  top: 86px;
  padding: 10px;
  gap: 14px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #ffffff;
}

.site-studio-sidebar-group {
  display: grid;
  gap: 3px;
}

.site-studio-sidebar-group > strong {
  padding: 9px 10px 7px;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-studio-sidebar button {
  min-height: 52px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-content: center;
  align-items: center;
  gap: 1px 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #475467;
  background: transparent;
}

.site-studio-sidebar button > span {
  grid-row: 1 / span 2;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 900;
}

.site-studio-sidebar button > b {
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-studio-sidebar button > small {
  overflow: hidden;
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-studio-sidebar button:hover {
  border-color: #d0d5dd;
  color: #101828;
  background: #f9fafb;
}

.site-studio-sidebar button.active {
  border-color: #b9cdfd;
  color: #0849bc;
  background: #edf4ff;
  box-shadow: inset 3px 0 #0b5cff;
}

.site-studio-sidebar button.active > span,
.site-studio-sidebar button.active > small {
  color: #3972cf;
}

.site-studio-sidebar-foot {
  padding: 12px 10px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eaecf0;
}

.site-studio-sidebar-foot span {
  color: #98a2b3;
  font-size: 10px;
  font-weight: 700;
}

.site-studio-sidebar-foot strong {
  color: #344054;
  font-size: 11px;
}

.site-studio-editor {
  min-height: 720px;
}

.site-studio-editor-section {
  display: none;
  min-height: 620px;
  padding: 26px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #ffffff;
}

.site-studio-editor-section.active {
  display: block;
}

#siteStudioOverviewSection {
  padding: 0;
  border: 0;
  background: transparent;
}

#siteStudioOverviewSection > header {
  margin-bottom: 12px;
  padding: 22px 24px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #ffffff;
}

.site-studio-editor-section > header {
  align-items: center;
}

.site-studio-editor-section h3,
.site-studio-preview-head h3 {
  color: #101828;
  font-size: 23px;
}

.site-studio-editor-section > header > p {
  color: #667085;
  font-size: 12px;
}

.site-studio-ops-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border: 0;
}

.site-studio-ops-summary article {
  min-height: 126px;
  padding: 18px;
  align-content: start;
  gap: 5px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}

.site-studio-ops-summary article:hover {
  border-color: #84adff;
  box-shadow: 0 10px 24px rgb(16 24 40 / 8%);
  transform: translateY(-2px);
}

.site-studio-ops-summary span {
  color: #667085;
  font-size: 11px;
}

.site-studio-ops-summary strong {
  margin-top: 2px;
  color: #101828;
  font-size: 28px;
}

.site-studio-ops-summary small {
  margin-top: auto;
  color: #0b5cff;
  font-size: 10px;
  font-weight: 800;
}

.site-studio-overview-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  gap: 10px;
}

.site-studio-overview-panel,
.site-studio-work-guide {
  padding: 22px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #ffffff;
}

.site-studio-panel-heading {
  margin-bottom: 16px;
}

.site-studio-panel-heading h4,
.site-studio-work-guide h4 {
  margin: 3px 0 0;
  color: #101828;
  font-size: 18px;
}

.site-studio-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid #eaecf0;
  border-left: 1px solid #eaecf0;
}

.site-studio-quick-actions button {
  min-height: 78px;
  padding: 13px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 0;
  border-right: 1px solid #eaecf0;
  border-bottom: 1px solid #eaecf0;
  color: #101828;
  background: #ffffff;
  text-align: left;
  font: inherit;
}

.site-studio-quick-actions button:hover {
  background: #f4f7ff;
}

.site-studio-quick-actions strong {
  font-size: 13px;
}

.site-studio-quick-actions span {
  color: #667085;
  font-size: 10px;
  line-height: 1.45;
}

.site-studio-status-list {
  display: grid;
  border-top: 1px solid #eaecf0;
}

.site-studio-status-list > div {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eaecf0;
}

.site-studio-status-list span {
  color: #475467;
  font-size: 12px;
  font-weight: 700;
}

.site-studio-status-list strong {
  padding: 4px 7px;
  border-radius: 4px;
  font-size: 10px;
}

.site-studio-status-list strong.is-good {
  color: #027a48;
  background: #ecfdf3;
}

.site-studio-work-guide {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #ffffff;
  background: #101828;
}

.site-studio-work-guide .eyebrow {
  color: #84adff;
}

.site-studio-work-guide h4 {
  color: #ffffff;
}

.site-studio-work-guide p:last-child {
  max-width: 680px;
  margin: 7px 0 0;
  color: #cbd5e1;
  font-size: 11px;
  line-height: 1.6;
}

.site-studio-preset-row,
.site-studio-text-toolbar {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.site-studio-preset-row {
  justify-content: flex-start;
}

.site-studio-preset-row button,
.site-studio-segmented button,
.site-studio-quiet-button,
.site-studio-text-control button {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  color: #475467;
  background: #ffffff;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
}

.site-studio-preset-row button:hover,
.site-studio-segmented button:hover,
.site-studio-quiet-button:hover,
.site-studio-text-control button:hover {
  border-color: #84adff;
  color: #0849bc;
  background: #f4f7ff;
}

.site-studio-segmented {
  display: inline-flex;
  padding: 3px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  background: #f2f4f7;
}

.site-studio-segmented button {
  border: 0;
  background: transparent;
}

.site-studio-segmented button.active {
  color: #ffffff;
  background: #101828;
  box-shadow: 0 1px 3px rgb(16 24 40 / 18%);
}

.site-studio-text-toolbar > input {
  width: min(260px, 42%);
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  color: #101828;
  background: #f9fafb;
  font: inherit;
  font-size: 12px;
}

.site-studio-text-field {
  grid-template-columns: 150px minmax(0, 1fr);
  padding: 12px 0;
  border-bottom: 1px solid #eaecf0;
}

.site-studio-text-field:first-child {
  border-top: 1px solid #eaecf0;
}

.site-studio-text-control {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px;
}

.site-studio-text-control textarea {
  grid-row: span 2;
}

.site-studio-text-control button {
  min-height: 40px;
}

.site-studio-empty-search {
  min-height: 180px;
  display: grid;
  place-items: center;
  color: #667085;
  font-size: 13px;
}

.site-studio-info-strip {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-left: 3px solid #0b5cff;
  color: #475467;
  background: #f4f7ff;
  font-size: 11px;
  line-height: 1.5;
}

.site-studio-image-row {
  grid-template-columns: 96px minmax(0, 1fr) 104px;
}

.site-studio-image-row > img {
  width: 96px;
  height: 78px;
}

.site-studio-image-actions {
  display: grid;
  gap: 6px;
}

.site-studio-image-actions .site-studio-file-button,
.site-studio-image-actions .site-studio-quiet-button {
  width: 100%;
  justify-content: center;
}

.site-studio-preview-panel {
  top: 86px;
  padding: 14px;
  border-color: #cfd7e3;
  box-shadow: 0 10px 28px rgb(16 24 40 / 7%);
}

.site-studio-preview-head {
  align-items: center;
}

.site-studio-preview-controls {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.site-studio-preview-controls select {
  min-width: 118px;
}

.site-studio-device-toggle button {
  min-width: 52px;
  min-height: 28px;
  font-size: 9px;
}

.site-studio-preview-stage {
  min-height: 524px;
  padding: 8px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  border: 1px solid #cfd7e3;
  border-radius: 6px;
  background: #e4e7ec;
  transition: padding 180ms ease;
}

.site-studio-live-preview {
  width: 100%;
  min-height: 500px;
  border: 0;
  background: transparent;
  transition: width 180ms ease;
}

.site-studio-preview-stage.is-mobile {
  padding: 8px 44px;
}

.site-studio-preview-stage.is-mobile .site-studio-live-preview {
  width: 260px;
  border: 5px solid #101828;
  border-radius: 16px;
  background: #ffffff;
}

.site-studio-preview-stage.is-mobile .site-studio-preview-shell {
  padding: 8px;
}

.site-studio-preview-stage.is-mobile .site-studio-preview-shell > nav {
  gap: 6px;
  font-size: 6px;
}

.site-studio-preview-stage.is-mobile .site-studio-preview-home article {
  min-height: 104px;
}

.site-studio-preview-stage.is-mobile .site-studio-preview-tile-hero {
  min-height: 190px;
  padding: 16px;
}

.site-studio-draft-state {
  font-size: 11px;
  line-height: 1.45;
}

.site-studio-savebar {
  bottom: 10px;
  border-color: #b8c2d0;
}

.site-studio-savebar button {
  min-height: 40px;
}

.site-studio-savebar .primary-action.has-unsaved,
.site-studio-heading .primary-action.has-unsaved {
  box-shadow: 0 0 0 3px rgb(11 92 255 / 18%);
}

.admin-console-page {
  padding-bottom: 80px;
}

.admin-console-page > .commerce-panel {
  border-color: #d8dee7;
  border-radius: 8px;
  box-shadow: none;
}

.admin-console-page .admin-toolbar {
  position: sticky;
  top: 8px;
  z-index: 25;
  padding: 5px;
  display: flex;
  overflow-x: auto;
  border: 1px solid #d0d5dd;
  border-radius: 7px;
  background: #f2f4f7;
}

.admin-console-page .admin-toolbar .tab {
  flex: 0 0 auto;
  min-height: 42px;
  border-radius: 5px;
  color: #475467;
  background: transparent;
}

.admin-console-page .admin-toolbar .tab.active {
  color: #ffffff;
  background: #101828;
  box-shadow: 0 2px 5px rgb(16 24 40 / 15%);
}

.admin-data-toolbar {
  margin: 18px 0;
  padding: 12px;
  display: grid;
  grid-template-columns: 170px minmax(240px, 1fr) 170px 180px auto auto;
  align-items: end;
  gap: 9px;
  border: 1px solid #d8dee7;
  border-radius: 8px;
  background: #f8fafc;
}

.admin-data-toolbar label {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.admin-data-toolbar label > span {
  color: #667085;
  font-size: 10px;
  font-weight: 850;
}

.admin-data-toolbar input,
.admin-data-toolbar select {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  color: #101828;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
}

.admin-data-toolbar > button {
  min-height: 40px;
}

.admin-data-toolbar > strong {
  min-height: 40px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  color: #0849bc;
  background: #edf4ff;
  font-size: 11px;
  white-space: nowrap;
}

.admin-order-toolbar {
  grid-template-columns: minmax(300px, 1fr) 180px auto auto;
}

.admin-console-page .admin-ops-hero {
  border-radius: 8px;
  background: #101828;
}

.admin-console-page .admin-summary-card,
.admin-console-page .admin-ops-panel,
.admin-console-page .quality-panel,
.admin-console-page .admin-flow-column {
  border-color: #d8dee7;
  border-radius: 8px;
  box-shadow: none;
}

.admin-console-page .table-wrap {
  max-height: 620px;
  border: 1px solid #d8dee7;
  border-radius: 7px;
}

.admin-console-page .admin-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  color: #344054;
  background: #f2f4f7;
}

.admin-console-page .admin-table tbody tr:hover {
  background: #f7f9fc;
}

@media (max-width: 1360px) {
  .site-studio-workspace {
    grid-template-columns: 210px minmax(560px, 1fr);
  }

  .site-studio-preview-panel {
    position: static;
    grid-column: 2;
  }

  .site-studio-preview-stage {
    min-height: 420px;
  }

  .site-studio-live-preview,
  .site-studio-preview-shell {
    min-height: 400px;
  }

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

  .admin-data-search {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .site-studio-page,
  .admin-console-page {
    width: 100%;
  }

  .site-studio-heading,
  .admin-console-heading {
    padding: 20px 16px;
    align-items: stretch;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .site-studio-heading h2,
  .admin-console-heading h2 {
    font-size: 28px;
  }

  .site-studio-heading .detail-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-studio-controlbar {
    top: 0;
    align-items: stretch;
    flex-direction: column;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .site-studio-controlbar-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
  }

  .site-studio-controlbar-actions label {
    min-width: 0;
  }

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

  .site-studio-sidebar {
    position: static;
    padding: 8px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .site-studio-sidebar-group {
    flex: 0 0 auto;
    display: flex;
    gap: 5px;
  }

  .site-studio-sidebar-group > strong,
  .site-studio-sidebar-foot {
    display: none;
  }

  .site-studio-sidebar button {
    flex: 0 0 auto;
    min-width: 94px;
    min-height: 42px;
    grid-template-columns: 1fr;
    padding: 7px 12px;
  }

  .site-studio-sidebar button > span,
  .site-studio-sidebar button > small {
    display: none;
  }

  .site-studio-editor-section {
    min-height: 0;
    padding: 18px 14px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  #siteStudioOverviewSection > header {
    border-right: 0;
    border-left: 0;
    border-radius: 0;
  }

  .site-studio-ops-summary {
    padding: 0 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-studio-overview-grid {
    padding: 0 10px;
    grid-template-columns: 1fr;
  }

  .site-studio-work-guide {
    margin-inline: 10px;
    align-items: stretch;
    flex-direction: column;
  }

  .site-studio-preview-panel {
    grid-column: 1;
    margin: 0 10px;
  }

  .site-studio-savebar {
    bottom: 84px;
  }

  .admin-data-toolbar,
  .admin-order-toolbar {
    margin-inline: -4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-data-search {
    grid-column: 1 / -1;
  }
}

@media (max-width: 620px) {
  .site-studio-title-meta {
    flex-wrap: wrap;
  }

  .site-studio-history-button {
    display: none;
  }

  .site-studio-controlbar-actions {
    grid-template-columns: 1fr 1fr;
  }

  .site-studio-controlbar-actions label {
    grid-column: 1 / -1;
  }

  .site-studio-text-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .site-studio-segmented {
    max-width: 100%;
    overflow-x: auto;
  }

  .site-studio-text-toolbar > input {
    width: 100%;
  }

  .site-studio-text-field {
    grid-template-columns: 1fr;
  }

  .site-studio-text-control {
    grid-template-columns: 1fr;
  }

  .site-studio-text-control textarea {
    grid-row: auto;
  }

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

  .site-studio-image-row > img {
    width: 76px;
    height: 68px;
  }

  .site-studio-image-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .site-studio-preview-stage.is-mobile {
    padding-inline: 16px;
  }

  .site-studio-savebar > div:last-child {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-studio-savebar {
    min-height: 58px;
    padding: 8px;
    display: block;
  }

  .site-studio-savebar > div:first-child,
  #siteStudioUndoBottomBtn,
  #siteStudioResetBtn {
    display: none;
  }

  .site-studio-savebar > div:last-child {
    display: grid;
  }

  .admin-data-toolbar,
  .admin-order-toolbar {
    grid-template-columns: 1fr;
  }

  .admin-data-search,
  .admin-data-toolbar > strong {
    grid-column: 1;
  }
}

/* Full-page admin editing */
.admin-page-edit-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #0b5cff;
  border-radius: 6px;
  color: #ffffff;
  background: #0b5cff;
  box-shadow: 0 10px 28px rgb(8 25 87 / 24%);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

body:not(.admin-authenticated) .admin-page-edit-fab,
body.admin-experience-mode .admin-page-edit-fab {
  display: none !important;
}

.site-page-editor-text {
  white-space: pre-line;
}

.app-page.site-page-designed {
  width: min(var(--site-page-content-width), calc(100% - 32px));
  max-width: none;
  margin-inline: auto;
  color: var(--site-page-text);
  background: var(--site-page-background);
  font-family: var(--site-page-font-family);
  font-size: calc(16px * var(--site-page-body-scale));
}

.app-page.site-page-designed > .page-heading,
.app-page.site-page-designed > .commerce-panel,
.app-page.site-page-designed .catalog-shell,
.app-page.site-page-designed .customer-catalog-panel,
.app-page.site-page-designed .bath-catalog-panel {
  padding: var(--site-page-content-padding);
  border: var(--site-page-border-width) solid var(--site-page-border);
  border-radius: var(--site-page-corner-radius);
  background-color: var(--site-page-surface);
}

.app-page.site-page-designed > .page-heading {
  text-align: var(--site-page-text-align);
}

.app-page.site-page-designed :where(h1, h2, h3, h4, h5, h6) {
  color: var(--site-page-text);
  font-family: inherit;
  font-weight: var(--site-page-heading-weight);
}

.app-page.site-page-designed :where(p, small, .muted, .helper-text, .detail-copy) {
  color: var(--site-page-muted);
}

.app-page.site-page-designed > .page-heading p {
  font-size: calc(14px * var(--site-page-body-scale));
}

.app-page.site-page-designed > .page-heading h1 {
  font-size: calc(48px * var(--site-page-heading-scale));
}

.app-page.site-page-designed > .page-heading h2 {
  font-size: calc(34px * var(--site-page-heading-scale));
}

.app-page.site-page-designed > .page-heading h3 {
  font-size: calc(28px * var(--site-page-heading-scale));
}

.app-page.site-page-designed > .page-heading .eyebrow,
.app-page.site-page-designed button.active {
  border-color: var(--site-page-accent);
  background-color: var(--site-page-accent);
}

.app-page.site-page-designed :where(
  .primary-action,
  .secondary-action,
  .detail-action,
  .catalog-action,
  .auth-action
) {
  border-width: var(--site-page-border-width);
  border-color: var(--site-page-button);
  border-radius: var(--site-page-corner-radius);
  color: var(--site-page-button-text);
  background: var(--site-page-button);
}

.app-page.site-page-designed[data-site-button-style="outline"] :where(
  .primary-action,
  .secondary-action,
  .detail-action,
  .catalog-action,
  .auth-action
) {
  color: var(--site-page-button);
  background: transparent;
}

.app-page.site-page-designed[data-site-button-style="minimal"] :where(
  .primary-action,
  .secondary-action,
  .detail-action,
  .catalog-action,
  .auth-action
) {
  border-color: transparent;
  color: var(--site-page-button);
  background: transparent;
  box-shadow: none;
}

.app-page.site-page-designed[data-site-card-style="flat"] :where(
  article,
  .commerce-panel,
  .catalog-shell,
  .customer-catalog-panel,
  .bath-catalog-panel
) {
  background-color: var(--site-page-surface);
  border-color: transparent;
  box-shadow: none;
}

.app-page.site-page-designed[data-site-card-style="bordered"] :where(
  article,
  .commerce-panel,
  .catalog-shell,
  .customer-catalog-panel,
  .bath-catalog-panel
) {
  background-color: var(--site-page-surface);
  border: var(--site-page-border-width) solid var(--site-page-border);
  border-radius: var(--site-page-corner-radius);
  box-shadow: none;
}

.app-page.site-page-designed[data-site-card-style="elevated"] :where(
  article,
  .commerce-panel,
  .catalog-shell,
  .customer-catalog-panel,
  .bath-catalog-panel
) {
  background-color: var(--site-page-surface);
  border-color: transparent;
  border-radius: var(--site-page-corner-radius);
  box-shadow: var(--site-page-shadow);
}

.app-page.site-page-designed > section + section {
  margin-top: var(--site-page-section-gap);
}

.site-page-managed-image {
  aspect-ratio: var(--site-page-image-ratio);
  object-fit: var(--site-page-image-fit);
  object-position: var(--site-page-image-position);
}

.app-page.site-page-image-enabled > .page-heading {
  position: relative;
  overflow: hidden;
  color: #ffffff;
  background-image: linear-gradient(90deg, rgb(8 25 87 / 88%), rgb(8 25 87 / 30%)), var(--site-page-hero-image);
  background-position: var(--site-page-image-position, center);
  background-size: var(--site-page-background-fit, cover);
}

.app-page.site-page-image-enabled > .page-heading h1,
.app-page.site-page-image-enabled > .page-heading h2,
.app-page.site-page-image-enabled > .page-heading h3,
.app-page.site-page-image-enabled > .page-heading p {
  color: inherit;
}

.site-studio-page-toolbar {
  margin: 18px 0 14px;
  padding: 12px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #d8dee7;
  border-radius: 6px;
  background: #f8fafc;
}

.site-studio-page-toolbar label {
  width: min(300px, 100%);
  display: grid;
  gap: 6px;
}

.site-studio-page-toolbar label > span,
.site-studio-page-toolbar > span {
  color: #667085;
  font-size: 10px;
  font-weight: 800;
}

.site-studio-page-toolbar select {
  width: 100%;
  min-height: 42px;
  padding: 0 10px;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  color: #101828;
  background: #ffffff;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.site-studio-page-editor-layout {
  min-width: 0;
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 14px;
}

.site-studio-page-list {
  max-height: 720px;
  padding: 5px;
  display: grid;
  align-content: start;
  gap: 3px;
  overflow-y: auto;
  border: 1px solid #d8dee7;
  border-radius: 6px;
  background: #f8fafc;
}

.site-studio-page-list button {
  min-width: 0;
  min-height: 46px;
  padding: 7px 9px;
  display: grid;
  gap: 2px;
  border: 1px solid transparent;
  border-radius: 5px;
  color: #475467;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.site-studio-page-list button:hover {
  border-color: #d0d5dd;
  background: #ffffff;
}

.site-studio-page-list button.active {
  border-color: #b9cdfd;
  color: #0849bc;
  background: #edf4ff;
  box-shadow: inset 3px 0 #0b5cff;
}

.site-studio-page-list button span {
  overflow: hidden;
  font-size: 11px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-studio-page-list button small {
  color: #98a2b3;
  font-size: 9px;
  font-weight: 750;
}

.site-studio-page-fields {
  min-width: 0;
  display: grid;
  gap: 10px;
}

.site-studio-page-editor-head {
  min-height: 54px;
  padding: 0 2px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid #eaecf0;
}

.site-studio-page-editor-head h4 {
  margin: 2px 0 0;
  color: #101828;
  font-size: 18px;
}

.site-studio-page-editor-actions {
  display: flex;
  gap: 6px;
}

.site-studio-page-setting-group {
  padding: 14px;
  border: 1px solid #d8dee7;
  border-radius: 6px;
  background: #ffffff;
}

.site-studio-page-setting-group > header {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.site-studio-page-setting-group > header > div {
  display: grid;
  gap: 2px;
}

.site-studio-page-setting-group > header strong {
  color: #101828;
  font-size: 13px;
}

.site-studio-page-setting-group > header small {
  color: #667085;
  font-size: 9px;
}

.site-studio-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #475467;
  font-size: 10px;
  font-weight: 850;
}

.site-studio-switch input {
  width: 34px;
  height: 18px;
  margin: 0;
  accent-color: #0b5cff;
}

.site-studio-page-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 9px;
}

.site-studio-page-copy-grid label,
.site-studio-page-image-editor label,
.site-studio-page-design-grid > label {
  min-width: 0;
  display: grid;
  gap: 6px;
  color: #475467;
  font-size: 10px;
  font-weight: 850;
}

.site-studio-page-copy-grid .is-wide {
  grid-column: 1 / -1;
}

.site-studio-page-copy-grid input,
.site-studio-page-copy-grid textarea,
.site-studio-page-image-editor input[type="text"] {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 9px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 5px;
  color: #101828;
  background: #ffffff;
  font: inherit;
  font-size: 11px;
  line-height: 1.5;
  resize: vertical;
}

.site-studio-page-image-editor {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 12px;
}

.site-studio-page-image-editor > div:last-child {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 8px;
}

.site-studio-page-image-preview {
  width: 116px;
  aspect-ratio: 1 / 0.72;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d8dee7;
  border-radius: 5px;
  color: #98a2b3;
  background: #f2f4f7;
  font-size: 9px;
}

.site-studio-page-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-studio-page-design-grid {
  margin-bottom: 12px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-studio-advanced-design {
  display: grid;
  gap: 8px;
}

.site-studio-advanced-design details {
  border: 1px solid #e4e7ec;
  border-radius: 6px;
  background: #f9fafb;
}

.site-studio-advanced-design summary {
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  color: #344054;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  user-select: none;
}

.site-studio-advanced-design details[open] summary {
  border-bottom: 1px solid #e4e7ec;
}

.site-studio-advanced-design details > :not(summary) {
  margin: 12px;
}

.site-studio-page-option-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.site-studio-page-range-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-studio-preview-page-shell {
  background: var(--preview-page-bg);
  font-family: var(--preview-page-font);
}

.site-studio-preview-page-card {
  min-height: 270px;
  padding: var(--preview-page-padding);
  display: flex;
  flex-direction: column;
  align-items: var(--preview-page-flex-align);
  justify-content: center;
  gap: 8px;
  border: var(--preview-page-border-width) solid var(--preview-page-border);
  border-radius: var(--preview-page-radius);
  color: var(--preview-page-text);
  background-color: var(--preview-page-surface);
  background-position: var(--preview-page-image-position);
  background-size: var(--preview-page-background-fit);
  text-align: var(--preview-page-text-align);
}

.site-studio-preview-page-card.has-image {
  color: #ffffff;
}

.site-studio-preview-page-card small {
  color: var(--preview-page-accent);
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.site-studio-preview-page-card h4 {
  margin: 0;
  color: inherit;
  font-size: calc(28px * var(--preview-page-heading-scale));
  font-weight: var(--preview-page-heading-weight);
  line-height: 1.1;
}

.site-studio-preview-page-card p {
  max-width: 420px;
  margin: 0;
  color: inherit;
  font-size: calc(10px * var(--preview-page-body-scale));
  line-height: 1.55;
}

.site-studio-preview-page-card button {
  min-height: 30px;
  margin-top: 8px;
  padding: 0 11px;
  border: var(--preview-page-border-width) solid var(--preview-page-button);
  border-radius: var(--preview-page-radius);
  color: var(--preview-page-button-text);
  background: var(--preview-page-button);
  font-size: 9px;
  font-weight: 900;
}

.site-studio-preview-page-shell[data-preview-button-style="outline"] .site-studio-preview-page-card button {
  color: var(--preview-page-button);
  background: transparent;
}

.site-studio-preview-page-shell[data-preview-button-style="minimal"] .site-studio-preview-page-card button {
  border-color: transparent;
  color: var(--preview-page-button);
  background: transparent;
}

.site-studio-preview-page-content {
  padding: var(--preview-page-gap);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.site-studio-preview-page-content article {
  min-height: 120px;
  padding: 12px;
  display: grid;
  align-content: end;
  gap: 4px;
  border: var(--preview-page-border-width) solid var(--preview-page-border);
  border-radius: var(--preview-page-radius);
  background: var(--preview-page-surface);
}

.site-studio-preview-page-shell[data-preview-card-style="flat"] .site-studio-preview-page-content article {
  border-color: transparent;
}

.site-studio-preview-page-shell[data-preview-card-style="elevated"] .site-studio-preview-page-content article {
  border-color: transparent;
  box-shadow: var(--preview-page-shadow);
}

.site-studio-preview-page-content i {
  width: 42px;
  height: 42px;
  align-self: start;
  border-radius: 4px;
  background: color-mix(in srgb, var(--preview-page-accent) 18%, white);
}

.site-studio-preview-page-content strong {
  color: var(--preview-page-text);
  font-size: 11px;
  font-weight: var(--preview-page-heading-weight);
}

.site-studio-preview-page-content small {
  color: var(--preview-page-muted);
  font-size: 8px;
}

@media (max-width: 860px) {
  .admin-page-edit-fab {
    right: 12px;
    bottom: 92px;
  }

  .site-studio-page-editor-layout {
    grid-template-columns: 1fr;
  }

  .site-studio-page-list {
    max-height: none;
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .site-studio-page-list button {
    flex: 0 0 112px;
  }
}

@media (max-width: 620px) {
  .app-page.site-page-designed > .page-heading h1 {
    font-size: calc(34px * var(--site-page-heading-scale));
  }

  .app-page.site-page-designed > .page-heading h2 {
    font-size: calc(28px * var(--site-page-heading-scale));
  }

  .app-page.site-page-designed > .page-heading h3 {
    font-size: calc(24px * var(--site-page-heading-scale));
  }

  .site-studio-page-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .site-studio-page-toolbar label {
    width: 100%;
  }

  .site-studio-page-editor-head {
    align-items: stretch;
    flex-direction: column;
  }

  .site-studio-page-editor-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .site-studio-page-copy-grid,
  .site-studio-page-design-grid,
  .site-studio-page-option-grid,
  .site-studio-page-range-grid {
    grid-template-columns: 1fr;
  }

  .site-studio-page-copy-grid .is-wide {
    grid-column: auto;
  }

  .site-studio-page-image-editor {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .site-studio-page-image-preview {
    width: 92px;
  }

  .site-studio-preview-page-card {
    min-height: 220px;
    padding: 18px;
  }

  .site-studio-preview-page-card h4 {
    font-size: calc(22px * var(--preview-page-heading-scale));
  }
}

/* Quantity calculator */
.quantity-calculator-page {
  --quantity-navy: #081957;
  --quantity-blue: #0b5cff;
  --quantity-line: #d9dfeb;
  --quantity-soft: #f4f7fb;
  color: #111827;
}

.quantity-calculator-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  align-items: start;
  gap: 24px;
  padding: 0 24px 32px;
}

.quantity-calculator-form,
.quantity-result-panel {
  border: 1px solid var(--quantity-line);
  border-radius: 8px;
  background: #fff;
}

.quantity-form-section {
  padding: 24px 28px;
  border-bottom: 1px solid var(--quantity-line);
}

.quantity-form-section:last-of-type {
  border-bottom: 0;
}

.quantity-section-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.quantity-section-heading > span {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--quantity-navy);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.quantity-section-heading h3 {
  margin: 0;
  color: var(--quantity-navy);
  font-size: 20px;
  line-height: 1.3;
}

.quantity-size-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px 46px;
}

.quantity-size-presets button {
  min-height: 40px;
  padding: 7px 8px;
  border: 1px solid var(--quantity-line);
  border-radius: 6px;
  background: #fff;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.quantity-size-presets button:hover,
.quantity-size-presets button.is-active {
  border-color: var(--quantity-navy);
  background: var(--quantity-navy);
  color: #fff;
}

.quantity-form-section--optional {
  padding: 0;
}

.quantity-form-section--optional > summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0;
  padding: 19px 28px;
  list-style: none;
  cursor: pointer;
}

.quantity-form-section--optional > summary::-webkit-details-marker {
  display: none;
}

.quantity-section-toggle > small {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.quantity-section-toggle > small::after {
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--quantity-navy);
  border-bottom: 2px solid var(--quantity-navy);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform 180ms ease;
}

.quantity-form-section--optional[open] .quantity-section-toggle > small::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.quantity-form-section--optional[open] > summary {
  border-bottom: 1px solid var(--quantity-line);
}

.quantity-section-body {
  padding: 20px 28px 24px;
}

.quantity-segmented {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  max-width: 420px;
  margin: 0 0 18px 46px;
  padding: 4px;
  border: 1px solid var(--quantity-line);
  border-radius: 8px;
  background: var(--quantity-soft);
}

.quantity-segmented label {
  min-width: 0;
  cursor: pointer;
}

.quantity-segmented input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  margin: 0;
  padding: 0;
  border: 0;
  opacity: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}

.quantity-segmented span {
  display: grid;
  min-height: 38px;
  place-items: center;
  padding: 6px 10px;
  border-radius: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
}

.quantity-segmented input:checked + span {
  background: var(--quantity-navy);
  color: #fff;
}

.quantity-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-left: 46px;
}

.quantity-field {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.quantity-field--wide {
  grid-column: 1 / -1;
}

.quantity-field input,
.quantity-field select {
  width: 100%;
  height: 46px;
  min-width: 0;
  margin: 0;
  padding: 0 13px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
}

.quantity-field input:focus,
.quantity-field select:focus {
  border-color: var(--quantity-blue);
  outline: 3px solid rgb(11 92 255 / 13%);
}

.quantity-input-unit {
  position: relative;
  display: block;
}

.quantity-input-unit input {
  padding-right: 48px;
}

.quantity-input-unit b {
  position: absolute;
  top: 50%;
  right: 13px;
  color: #64748b;
  font-size: 12px;
  pointer-events: none;
  transform: translateY(-50%);
}

.quantity-field-note {
  margin: 14px 0 0 46px;
  padding: 11px 13px;
  border-left: 3px solid var(--quantity-blue);
  background: var(--quantity-soft);
  color: #475569;
  font-size: 13px;
  line-height: 1.5;
}

.quantity-form-actions {
  display: flex;
  gap: 10px;
  padding: 20px 28px 28px 74px;
}

.quantity-form-actions .primary-action,
.quantity-form-actions .secondary-action {
  min-height: 46px;
}

.quantity-result-panel {
  position: sticky;
  top: 18px;
  overflow: hidden;
}

.quantity-result-heading {
  padding: 24px;
  background: var(--quantity-navy);
  color: #fff;
}

.quantity-result-heading > span {
  display: block;
  margin-bottom: 6px;
  color: #a9c3ff;
  font-size: 12px;
  font-weight: 800;
}

.quantity-result-heading > strong {
  display: block;
  font-size: 32px;
  line-height: 1.2;
}

.quantity-result-heading > small {
  display: block;
  min-height: 20px;
  margin-top: 8px;
  color: #dbe6ff;
  font-size: 12px;
  line-height: 1.5;
}

.quantity-result-heading > small.is-error {
  color: #ffd2d2;
}

.quantity-result-list {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.quantity-result-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  padding: 15px 14px;
  border: 1px solid var(--quantity-line);
  border-radius: 7px;
  background: var(--quantity-soft);
}

.quantity-result-list article > span {
  align-self: center;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.quantity-result-list article > strong {
  color: var(--quantity-navy);
  font-size: 20px;
}

.quantity-result-list article > small {
  grid-column: 1 / -1;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.quantity-result-summary {
  display: grid;
  gap: 0;
  margin: 0 18px 16px;
  border: 1px solid var(--quantity-line);
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.quantity-result-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--quantity-line);
  color: #64748b;
  font-size: 12px;
}

.quantity-result-summary > div:last-child {
  border-bottom: 0;
}

.quantity-result-summary strong {
  color: #0f172a;
}

.quantity-result-details {
  border-top: 1px solid var(--quantity-line);
}

.quantity-result-details > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 18px;
  color: var(--quantity-navy);
  font-size: 12px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}

.quantity-result-details > summary::-webkit-details-marker {
  display: none;
}

.quantity-result-details > summary::after {
  width: 8px;
  height: 8px;
  margin-right: 2px;
  border-right: 2px solid var(--quantity-navy);
  border-bottom: 2px solid var(--quantity-navy);
  content: "";
  transform: rotate(45deg);
}

.quantity-result-details[open] > summary::after {
  transform: rotate(225deg);
}

.quantity-copy-button {
  width: calc(100% - 36px);
  margin: 18px;
}

.quantity-caution {
  margin: 0;
  padding: 0 18px 18px;
  color: #64748b;
  font-size: 11px;
  line-height: 1.55;
}

.quantity-source-details {
  border-top: 1px solid var(--quantity-line);
  color: #475569;
  font-size: 12px;
}

.quantity-source-details summary {
  padding: 15px 18px;
  color: var(--quantity-navy);
  font-weight: 800;
  cursor: pointer;
}

.quantity-source-details ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0 18px 18px 34px;
  line-height: 1.5;
}

.quantity-source-details a {
  color: var(--quantity-blue);
  font-weight: 750;
}

@media (max-width: 900px) {
  .quantity-calculator-shell {
    grid-template-columns: 1fr;
  }

  .quantity-result-panel {
    position: static;
  }
}

@media (max-width: 640px) {
  .quantity-calculator-shell {
    gap: 14px;
    padding: 0 12px 112px;
  }

  .quantity-form-section {
    padding: 20px 16px;
  }

  .quantity-form-section--optional {
    padding: 0;
  }

  .quantity-form-section--optional > summary {
    padding: 17px 16px;
  }

  .quantity-section-body {
    padding: 16px;
  }

  .quantity-section-heading {
    gap: 10px;
  }

  .quantity-section-heading > span {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
    font-size: 11px;
  }

  .quantity-section-heading h3 {
    font-size: 18px;
  }

  .quantity-segmented,
  .quantity-size-presets,
  .quantity-field-grid,
  .quantity-field-note {
    margin-left: 0;
  }

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

  .quantity-field-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .quantity-field--wide {
    grid-column: auto;
  }

  .quantity-form-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 16px;
  }

  .quantity-result-heading > strong {
    font-size: 28px;
  }
}

/* Shoppable bathroom inspiration */
.bath-interior-page {
  width: min(var(--site-content-width), calc(100% - 42px));
  margin: 0 auto;
  padding-bottom: 64px;
  grid-template-columns: minmax(0, 1fr);
}

.bath-interior-heading {
  align-items: end;
  border-bottom: 1px solid #dfe4ec;
}

.bath-interior-heading > div:first-child > p:last-child {
  max-width: 620px;
  margin: 10px 0 0;
  color: #647084;
  font-size: 15px;
  line-height: 1.6;
}

.bath-interior-gallery-view {
  padding: 22px 0 0;
}

.bath-interior-gallery-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px 0 16px;
  background: #fff;
}

.bath-interior-gallery-search {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  background: #f2f3f3;
}

.bath-interior-gallery-search svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  margin-right: 10px;
  fill: #131925;
}

.bath-interior-gallery-search input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  color: #121825;
  background: transparent;
  font: inherit;
  font-size: 15px;
}

.bath-interior-gallery-search input::placeholder {
  color: #7a828e;
}

.bath-interior-gallery-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.bath-interior-gallery-filters::-webkit-scrollbar {
  display: none;
}

.bath-interior-gallery-filters button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid #dce1e8;
  border-radius: 999px;
  color: #4f5a6c;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.bath-interior-gallery-filters button:hover,
.bath-interior-gallery-filters button.is-active {
  border-color: #081957;
  color: #fff;
  background: #081957;
}

.bath-interior-gallery {
  column-count: 5;
  column-gap: 14px;
}

.bath-interior-gallery-card {
  position: relative;
  display: inline-grid;
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  overflow: hidden;
  break-inside: avoid;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: #e9edf2;
  text-align: left;
  box-shadow: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.bath-interior-gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(8, 25, 87, 0.14);
}

.bath-interior-gallery-card:focus-visible {
  outline: 3px solid #1268ff;
  outline-offset: 3px;
}

.bath-interior-gallery-card-media {
  display: block;
  width: 100%;
  overflow: hidden;
  background: #e9edf2;
}

.bath-interior-gallery-card-media.is-portrait {
  aspect-ratio: 4 / 5;
}

.bath-interior-gallery-card-media.is-standard {
  aspect-ratio: 1 / 1;
}

.bath-interior-gallery-card-media.is-wide {
  aspect-ratio: 4 / 3;
}

.bath-interior-gallery-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bath-interior-gallery-card-copy {
  display: grid;
  gap: 3px;
  padding: 13px 14px 14px;
  color: #151b28;
  background: #fff;
}

.bath-interior-gallery-card-copy small {
  color: #687487;
  font-size: 11px;
  font-weight: 750;
}

.bath-interior-gallery-card-copy strong {
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bath-interior-gallery-empty {
  display: grid;
  width: 100%;
  min-height: 240px;
  padding: 24px;
  place-content: center;
  break-inside: avoid;
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  color: #657084;
  background: #f6f7f9;
  text-align: center;
}

.bath-interior-gallery-empty strong {
  color: #081957;
  font-size: 17px;
}

.bath-interior-gallery-empty span {
  margin-top: 6px;
  font-size: 13px;
}

.bath-interior-gallery-status {
  margin: 10px 0 0;
  color: #788296;
  font-size: 12px;
  text-align: right;
}

.bath-interior-detail-view {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding-top: 18px;
}

.bath-interior-detail-toolbar {
  display: flex;
  justify-content: flex-start;
}

.bath-interior-gallery-back {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px 0 12px;
  border: 1px solid #dce1e8;
  border-radius: 6px;
  color: #081957;
  background: #fff;
  font-size: 13px;
  font-weight: 800;
}

.bath-interior-gallery-back svg {
  width: 19px;
  height: 19px;
  margin-right: 7px;
  fill: currentColor;
}

.bath-interior-gallery-back:hover {
  border-color: #081957;
  background: #f4f7ff;
}

.bath-interior-shell {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  padding: 26px 0 0;
}

.bath-interior-scene-tabs {
  display: flex;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  overflow-x: auto;
  margin-bottom: 18px;
  padding-bottom: 5px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.bath-interior-scene-tabs button {
  display: flex;
  flex: 0 0 210px;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 16px;
  border: 1px solid #d9dee8;
  border-radius: 6px;
  color: #637085;
  background: #fff;
  text-align: left;
  scroll-snap-align: start;
}

.bath-interior-scene-tabs button:hover,
.bath-interior-scene-tabs button.is-active {
  border-color: #081957;
  color: #fff;
  background: #081957;
}

.bath-interior-scene-tabs span {
  font-size: 11px;
  font-weight: 850;
}

.bath-interior-scene-tabs strong {
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bath-interior-layout {
  display: grid;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.75fr);
  gap: 28px;
  align-items: start;
}

.bath-interior-visual {
  min-width: 0;
}

.bath-interior-stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-width: 0;
  min-height: 0;
  aspect-ratio: 4 / 3;
  border-radius: 6px;
  background: #edf0f4;
}

.bath-interior-stage > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bath-interior-loading {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  place-items: center;
  color: #647084;
  font-size: 14px;
}

.bath-interior-hotspots {
  position: absolute;
  inset: 0;
}

.bath-interior-hotspot {
  position: absolute;
  left: var(--bath-hotspot-x);
  top: var(--bath-hotspot-y);
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  color: #081957;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(8, 25, 87, 0.2);
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.bath-interior-hotspot b {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: #081957;
  place-items: center;
  font-size: 13px;
}

.bath-interior-hotspot span {
  max-width: 0;
  overflow: hidden;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  transition: max-width 180ms ease, padding 180ms ease, opacity 180ms ease;
}

.bath-interior-hotspot:hover span,
.bath-interior-hotspot.is-active span {
  max-width: 86px;
  padding-right: 9px;
  opacity: 1;
}

.bath-interior-hotspot.is-active {
  outline: 3px solid rgba(18, 104, 255, 0.38);
}

.bath-interior-hotspot.is-active b {
  background: #1268ff;
}

.bath-interior-scene-copy {
  display: grid;
  grid-template-columns: minmax(210px, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: end;
  padding: 18px 2px 0;
}

.bath-interior-scene-copy span,
.bath-interior-products-head span,
.bath-interior-product-copy > span {
  color: #1268ff;
  font-size: 11px;
  font-weight: 850;
}

.bath-interior-scene-copy h3,
.bath-interior-products-head h3 {
  margin: 5px 0 0;
  color: #081957;
  font-size: 24px;
}

.bath-interior-scene-copy p {
  margin: 0;
  color: #667287;
  font-size: 14px;
  line-height: 1.65;
}

.bath-interior-products {
  position: sticky;
  top: 20px;
  min-width: 0;
}

.bath-interior-products-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 0 15px;
  border-bottom: 1px solid #dfe4ec;
}

.bath-interior-add-all {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid #081957;
  border-radius: 5px;
  color: #fff;
  background: #081957;
  font-size: 13px;
  font-weight: 800;
}

.bath-interior-add-all:disabled {
  opacity: 0.42;
}

.bath-interior-product-list {
  display: grid;
  gap: 0;
  max-height: min(720px, calc(100vh - 230px));
  overflow: auto;
}

.bath-interior-product {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid #e2e6ed;
  transition: background 160ms ease, padding 160ms ease;
}

.bath-interior-product.is-active {
  padding-right: 10px;
  padding-left: 10px;
  background: #f1f6ff;
}

.bath-interior-product-media {
  position: relative;
  overflow: hidden;
  width: 86px;
  height: 86px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  background: #eef1f5;
}

.bath-interior-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bath-interior-product-media > span {
  position: absolute;
  top: 5px;
  left: 5px;
  z-index: 1;
  display: grid;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #fff;
  background: #081957;
  place-items: center;
  font-size: 10px;
  font-weight: 850;
}

.bath-interior-product-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.bath-interior-product-copy strong {
  overflow: hidden;
  color: #121a2a;
  font-size: 15px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bath-interior-product-copy small {
  overflow: hidden;
  color: #69758a;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.bath-interior-product-price {
  min-height: 19px;
  color: #081957;
  font-size: 12px;
  font-weight: 750;
}

.bath-interior-product-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(48px, 1fr));
  gap: 5px;
}

.bath-interior-product-actions button {
  min-height: 38px;
  padding: 0 11px;
  border: 1px solid #d6dce7;
  border-radius: 5px;
  color: #081957;
  background: #fff;
  font-size: 12px;
  font-weight: 800;
}

.bath-interior-product-actions .primary-action {
  border-color: #1268ff;
  color: #fff;
  background: #1268ff;
}

.bath-interior-cart-status {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 5px;
  color: #536078;
  background: #f5f7fa;
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .bath-interior-gallery {
    column-count: 3;
  }

  .bath-interior-gallery-toolbar {
    grid-template-columns: 1fr;
  }

  .bath-interior-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bath-interior-stage {
    aspect-ratio: 16 / 10;
  }

  .bath-interior-products {
    position: static;
    padding-top: 20px;
    border-top: 1px solid #dfe4ec;
  }

  .bath-interior-product-list {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 720px) {
  .bath-interior-page {
    width: 100%;
    padding: 0 12px 112px;
  }

  .bath-interior-heading {
    align-items: start;
  }

  .bath-interior-heading .detail-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    min-width: 0;
    gap: 6px;
  }

  .bath-interior-heading .detail-actions button {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0 7px;
    font-size: 12px;
    white-space: nowrap;
  }

  .bath-interior-heading .detail-actions button:last-child {
    grid-column: auto;
  }

  .bath-interior-heading > div:first-child > p:last-child {
    font-size: 13px;
  }

  .bath-interior-gallery-view {
    padding-top: 10px;
  }

  .bath-interior-gallery-toolbar {
    position: static;
    gap: 9px;
    padding: 8px 0 12px;
  }

  .bath-interior-gallery-search {
    min-height: 46px;
    padding: 0 13px;
  }

  .bath-interior-gallery-search input {
    font-size: 14px;
  }

  .bath-interior-gallery-filters {
    margin-right: -12px;
    padding-right: 12px;
  }

  .bath-interior-gallery {
    column-count: 2;
    column-gap: 9px;
  }

  .bath-interior-gallery-card {
    margin-bottom: 9px;
  }

  .bath-interior-gallery-card-copy {
    padding: 10px 10px 11px;
  }

  .bath-interior-gallery-card-copy strong {
    font-size: 13px;
  }

  .bath-interior-gallery-card-copy small {
    font-size: 10px;
  }

  .bath-interior-detail-view {
    padding-top: 12px;
  }

  .bath-interior-shell {
    padding-top: 14px;
  }

  .bath-interior-scene-tabs {
    display: flex;
    overflow-x: auto;
    padding-bottom: 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .bath-interior-scene-tabs::-webkit-scrollbar {
    display: none;
  }

  .bath-interior-scene-tabs button {
    flex: 0 0 78%;
    scroll-snap-align: start;
  }

  .bath-interior-layout {
    gap: 18px;
  }

  .bath-interior-stage {
    min-height: 0;
    aspect-ratio: 4 / 5;
    border-radius: 5px;
  }

  .bath-interior-scene-copy {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-top: 14px;
  }

  .bath-interior-scene-copy h3,
  .bath-interior-products-head h3 {
    font-size: 20px;
  }

  .bath-interior-hotspot span,
  .bath-interior-hotspot:hover span {
    display: none;
  }

  .bath-interior-hotspot b {
    flex-basis: 31px;
    width: 31px;
    height: 31px;
  }

  .bath-interior-products-head {
    align-items: center;
  }

  .bath-interior-products {
    padding-top: 16px;
  }

  .bath-interior-product {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 11px;
    padding: 12px 0;
  }

  .bath-interior-product-media {
    width: 74px;
    height: 74px;
  }

  .bath-interior-product-actions {
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr;
  }

  .bath-interior-product-actions button {
    min-height: 42px;
  }
}

/* Guest landing: approved promotion design; the signed-in member workspace stays unchanged. */
.guest-home-gate[data-promo-source]:not(.promo-home-mounted):not(.promo-home-fallback) {
  min-height: 100vh;
  visibility: hidden;
}

body.guest-session[data-page="homePage"] {
  overflow-x: hidden;
  background: #ffffff;
}

body.guest-session[data-page="homePage"] .commerce-utility-bar,
body.guest-session[data-page="homePage"] .app-shell > .topbar,
body.guest-session[data-page="homePage"] .app-shell > .app-nav {
  display: none !important;
}

body.guest-session[data-page="homePage"] .app-shell {
  width: 100%;
  min-height: 100vh;
  padding: 0;
}

body.guest-session[data-page="homePage"] #homePage {
  width: 100%;
  max-width: none;
  margin: 0;
  display: block;
}

body.guest-session[data-page="homePage"] .customer-hero-panel,
body.guest-session[data-page="homePage"] .customer-home-entry,
body.guest-session[data-page="homePage"] #guestHomeGate {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.guest-session[data-page="homePage"] #guestHomeGate {
  color: var(--promo-ink);
  font-family: Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.5;
  background: var(--promo-white);
  -webkit-font-smoothing: antialiased;
}

body.guest-session[data-page="homePage"] #guestHomeGate .promo-main {
  display: block;
}

body.guest-session[data-page="homePage"] .tile-ai-assistant {
  display: none;
}
