/* V3 final cascade layer. Loaded after the preserved V2 styles. */
.is-moodboard-embed,
.is-moodboard-embed body {
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  background: transparent;
}

.is-moodboard-embed body > *:not(#favorites-dialog):not(#moodboard-contact-dialog):not(#favorites-toast):not(script) {
  display: none !important;
}

.is-moodboard-embed #favorites-dialog,
.is-moodboard-embed #favorites-dialog.is-comparing {
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-width: none;
  max-height: 100dvh;
  margin: 0;
  border-radius: 0;
  box-shadow: none;
}

.is-moodboard-embed #favorites-dialog::backdrop,
.is-moodboard-embed #moodboard-contact-dialog::backdrop {
  background: transparent;
  backdrop-filter: none;
}

.is-moodboard-embed #moodboard-dock-trigger { display: none; }

.favorites-dialog.is-comparing { width: min(1120px, calc(100vw - 24px)); }
.favorites-compare-grid { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }

.favorite-pin,
:is(
  body[data-base-material="mesh"] .inspiration-save,
  body[data-base-material="copper"] .inspiration-save,
  body[data-base-material="crystal"] .inspiration-save,
  body[data-base-material="stainless"] .sample-save,
  body[data-base-material="aluminum"] .sample-save,
  body[data-base-material="copper"] .sample-save
) {
  opacity: .82;
  pointer-events: auto;
  transform: none;
}

.favorite-pin:hover,
.favorite-pin:focus-visible,
.favorite-pin.is-saved { opacity: 1; }

.reference-library-title.inspiration-heading h2,
.reference-library-title.glass-gallery-title h2,
.reference-library-title.crystal-products-title h2 { max-width: 15ch; text-wrap: balance; }

.reference-library-intro.inspiration-intro span,
.reference-library-intro.glass-gallery-intro span,
.reference-library-intro.crystal-products-intro span { font-size: 11px; }

.surface-tab small,
.surface-tab.is-active small,
.hairline-filter small,
.hairline-filter.is-active small,
.embossed-filter small,
.embossed-filter.is-active small,
.special-filter small,
.special-filter.is-active small,
.copper-view-tab > small,
.copper-view-tab.is-active > small { font-size: 8px; }

@media (max-width: 680px) {
  .base-material-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    padding: 0;
    scroll-snap-type: none;
  }

  .base-material-card,
  .base-material-card.is-active {
    width: auto;
    min-width: 0;
    grid-template-rows: auto 44px;
    order: initial;
    flex: none;
    padding: 0;
  }

  .base-material-card.is-active .base-material-media,
  .base-material-media { aspect-ratio: 1.18 / 1; }

  .base-material-caption,
  .base-material-card.is-active .base-material-caption {
    min-width: 0;
    justify-items: center;
    padding: 6px 4px;
    text-align: center;
  }

  .base-material-caption strong,
  .base-material-card.is-active .base-material-caption strong { max-width: 100%; font-size: 11px; line-height: 1.15; }

  .base-material-caption small,
  .base-material-card.is-active .base-material-caption small { display: block; max-width: 100%; font-size: 9px; line-height: 1.1; }

  .surface-selector-row,
  .filter-group-row,
  .hairline-filters,
  .embossed-filters,
  .special-filters,
  body[data-base-material="aluminum"] #ral-family-filters:not([hidden]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    flex-wrap: initial;
  }

  .surface-selector-row > .selector-label,
  .filter-group-row > .selector-label,
  .hairline-filters > .subgroup-label,
  .embossed-filters > .subgroup-label,
  .special-filters > .subgroup-label,
  body[data-base-material="aluminum"] #ral-family-filters > .subgroup-label {
    grid-column: 1 / -1;
    width: 100%;
  }

  .surface-tabs,
  .copper-view-tabs,
  .filter-group-row .crystal-filters {
    grid-column: 1 / -1;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
    flex: none;
  }

  .surface-tab,
  .hairline-filter,
  .embossed-filter,
  .special-filter,
  .copper-view-tab,
  .filter-group-row .crystal-filter,
  body[data-base-material="aluminum"] #ral-family-filters > button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    flex: none;
    padding: 7px 10px 7px 24px;
  }

  .copper-view-tab > strong,
  .copper-view-tab > small { overflow: visible; text-overflow: clip; white-space: normal; }
  .copper-view-tab > strong { font-size: 11px; }
  .copper-view-tab > small { font-size: 9px; }

  .surface-tab small,
  .surface-tab.is-active small,
  .hairline-filter small,
  .hairline-filter.is-active small,
  .embossed-filter small,
  .embossed-filter.is-active small,
  .special-filter small,
  .special-filter.is-active small,
  .filter-group-row .crystal-filter small { font-size: 9px; }

  .reference-library-title.inspiration-heading h2,
  .reference-library-title.glass-gallery-title h2,
  .reference-library-title.crystal-products-title h2 { max-width: 100%; font-size: 30px; }

  html[lang="en"] body[data-base-material="copper"] .reference-library-title.inspiration-heading h2,
  html[lang="en"] body[data-base-material="mesh"] .reference-library-title.inspiration-heading h2 { font-size: 27px; line-height: 1.08; }

  .reference-library-intro.inspiration-intro span,
  .reference-library-intro.glass-gallery-intro span,
  .reference-library-intro.crystal-products-intro span,
  .reference-library-bar.inspiration-meta > small { font-size: 10px; }

  .favorites-dialog.is-comparing { height: 94dvh; max-height: 94dvh; }
  .favorites-compare-grid { min-width: 0; grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .favorites-compare-scroll { overflow-x: hidden; scroll-snap-type: none; }
  .favorites-floating { display: grid; }
}

@media (max-width: 359px) {
  .base-material-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* V3.1 — unified Project Moodboard and contact/share fallback. */
.favorites-dialog.is-comparing {
  inset: 16px;
  width: min(1500px, calc(100vw - 32px));
  height: min(920px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  margin: auto;
  border-radius: 4px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .32);
}

.moodboard-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  padding: 24px 30px 20px;
}
.moodboard-head > div { text-align: left; }
.moodboard-head h2 { font-size: 38px; }
.moodboard-head h2:focus { outline: 0; }
.moodboard-head p { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
#moodboard-board-id { color: var(--black); font-weight: 900; letter-spacing: .02em; }
.moodboard-head-actions {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.moodboard-head-actions > button {
  min-height: 50px;
  padding: 0 14px;
  line-height: 1.25;
}
.moodboard-head-actions > button small {
  display: block;
  margin-top: 3px;
  font-size: 6px;
  letter-spacing: .08em;
}
.moodboard-dock-trigger {
  border: 1px solid var(--gold-dark);
  border-radius: 3px;
  background: transparent;
  color: var(--gold-dark);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .06em;
  cursor: pointer;
}

.favorites-compare-scroll {
  padding: 0;
  background: #f7f6f2;
}
.moodboard-layout {
  min-height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(330px, .95fr);
  align-items: stretch;
}
.moodboard-references {
  min-width: 0;
  padding: 26px 28px 32px;
  border-right: 1px solid var(--line-light);
}
.moodboard-references > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}
.moodboard-references h3 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.moodboard-references h3 small { color: var(--gold-dark); font-size: 8px; letter-spacing: .07em; }
.moodboard-references p { margin: 6px 0 0; color: var(--gray); font-size: 9px; line-height: 1.5; }
.moodboard-references > header > button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid var(--gold-dark);
  border-radius: 3px;
  background: transparent;
  color: var(--gold-dark);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .045em;
  cursor: pointer;
}

.moodboard-references .favorites-compare-grid {
  --moodboard-columns: 4;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--moodboard-columns), minmax(0, 1fr));
  gap: 12px;
}
.moodboard-clear-selection {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line-light);
}
.moodboard-clear-selection > span {
  color: var(--gray);
  font-size: 8px;
  line-height: 1.45;
  text-align: right;
}
.moodboard-clear-selection > button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--red);
  border-radius: 3px;
  background: transparent;
  color: var(--red);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .045em;
  cursor: pointer;
}
.moodboard-clear-selection > button[data-confirming="true"] {
  background: var(--red);
  color: #fff;
}
.moodboard-reference-card {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(220px, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  background: #fff;
}
.moodboard-reference-card header {
  min-height: 112px;
  padding: 14px 13px 12px;
  border-bottom: 0;
}
.moodboard-reference-card header span {
  display: block;
  color: var(--gold-dark);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1.4;
}
.moodboard-reference-card header h3 {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.3;
}
.moodboard-reference-card header p {
  margin: 4px 0 0;
  font-size: 8px;
  line-height: 1.35;
}
.moodboard-reference-card figure {
  min-height: 220px;
  display: grid;
  place-items: center;
  margin: 0 12px;
  padding: 10px;
  overflow: hidden;
  background: #eeeae2;
}
.moodboard-reference-card.is-visual figure img {
  width: 100%;
  height: 220px;
  object-fit: contain;
}
.moodboard-reference-card.is-gallery figure { padding: 0; background: #111; }
.moodboard-reference-card.is-gallery figure img { height: 220px; object-fit: cover; }
.moodboard-reference-card.is-sample figure img {
  width: min(84%, 190px);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: contain;
}
.moodboard-reference-card footer {
  min-height: 62px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  margin: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-light);
}
.moodboard-reference-card footer strong { font-size: 18px; letter-spacing: -.03em; }
.moodboard-reference-card footer span { min-width: 0; color: var(--gray); font-size: 7px; line-height: 1.35; }
.moodboard-reference-card footer button {
  min-height: 38px;
  padding: 0 8px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  background: transparent;
  color: var(--gray);
  font-size: 7px;
  font-weight: 900;
  cursor: pointer;
}
.moodboard-reference-card footer button:hover { border-color: var(--red); color: var(--red); }

.moodboard-layout .project-selection-details {
  min-width: 0;
  margin: 0;
  padding: 28px;
  border: 0;
  border-radius: 0;
  background: #f7f6f2;
}
.moodboard-layout .project-selection-details > header {
  align-items: flex-start;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 18px;
}
.moodboard-layout .project-selection-details h3 { font-size: 23px; }
.moodboard-layout .project-selection-details > header > span { color: var(--gold-dark); }
.moodboard-help-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.moodboard-help-options button {
  position: relative;
  min-height: 52px;
  padding: 8px 30px 8px 10px;
  border: 1px solid #bbb7ae;
  border-radius: 3px;
  background: transparent;
  color: var(--black);
  font-size: 9px;
  font-weight: 800;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}
.moodboard-help-options button::after {
  position: absolute;
  top: 50%;
  right: 11px;
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}
.moodboard-help-options button[aria-pressed="true"] {
  border-color: var(--red);
  background: var(--red);
  color: #fff;
}
.moodboard-help-options button[aria-pressed="true"]::before {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 15px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  content: "";
  transform: translateY(-50%);
}
.moodboard-brief-field {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}
.moodboard-brief-field > span { font-size: 10px; font-weight: 900; line-height: 1.45; }
.moodboard-brief-field > span small { display: block; margin-top: 3px; color: var(--gold-dark); font-size: 7px; letter-spacing: .05em; }
.moodboard-brief-field textarea {
  width: 100%;
  min-height: 190px;
  padding: 14px;
  border: 1px solid #bbb7ae;
  border-radius: 3px;
  background: #fff;
  color: var(--black);
  font: inherit;
  font-size: 12px;
  line-height: 1.6;
  resize: vertical;
}
.moodboard-brief-field textarea:focus-visible { border-color: var(--red); outline: 2px solid rgba(155, 32, 36, .2); outline-offset: 1px; }
.moodboard-own-files {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 15px 0 0;
  border-top: 1px solid var(--line-light);
}
.moodboard-own-files strong { font-size: 10px; }
.moodboard-own-files span { color: var(--gray); font-size: 9px; line-height: 1.5; }

.moodboard-actions {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 16px 30px;
}
.moodboard-actions > p { max-width: 580px; font-size: 9px; }
.moodboard-actions > p button {
  margin-left: 8px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--gold-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.moodboard-actions .favorites-compare-export-actions { display: flex; gap: 10px; }
.moodboard-actions .favorites-compare-export-actions > button {
  min-width: 190px;
  min-height: 66px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3px 8px;
  padding: 9px 18px;
  border: 1px solid var(--black);
  border-radius: 3px;
  background: transparent;
  color: var(--black);
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}
.moodboard-actions .favorites-compare-export-actions > button small { width: 100%; font-size: 8px; letter-spacing: .07em; }
.moodboard-actions .favorites-compare-export-actions > button.is-primary { border-color: var(--red); background: var(--red); color: #fff; }
.moodboard-actions .favorites-compare-export-actions > button.is-quiet { min-width: 150px; border-color: transparent; }
.moodboard-actions .favorites-compare-export-actions > button.is-quiet img { width: 16px; height: 16px; margin-left: 6px; }

.moodboard-dock {
  position: fixed;
  z-index: 55;
  top: 78px;
  right: 18px;
  bottom: max(96px, calc(78px + env(safe-area-inset-bottom)));
  width: min(332px, calc(100vw - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #c9c5bc;
  border-radius: 4px;
  background: #f7f6f2;
  color: var(--black);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .24);
}
.moodboard-dock[hidden] { display: none; }
.moodboard-dock > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  padding: 18px;
  border-bottom: 1px solid var(--line-light);
  background: #fff;
}
.moodboard-dock > header p { margin: 0 0 6px; color: var(--red); font-size: 7px; font-weight: 900; letter-spacing: .11em; }
.moodboard-dock > header h2 { margin: 0; font-size: 21px; letter-spacing: -.035em; }
.moodboard-dock > header span { display: block; margin-top: 6px; color: var(--gray); font-size: 9px; }
.moodboard-dock > header button {
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--black);
  border-radius: 3px;
  background: transparent;
  color: var(--black);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .055em;
  cursor: pointer;
}
.moodboard-dock-list {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  overflow: auto;
  overscroll-behavior: contain;
}
.moodboard-dock-item {
  min-width: 0;
  display: grid;
  grid-template-columns: 66px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 8px;
  border: 1px solid var(--line-light);
  border-radius: 3px;
  background: #fff;
}
.moodboard-dock-item figure {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 5px;
  overflow: hidden;
  background: #eeeae2;
}
.moodboard-dock-item figure > img,
.moodboard-dock-item figure .favorite-disc-crop {
  width: 100%;
  height: 100%;
}
.moodboard-dock-item figure > img { object-fit: contain; }
.moodboard-dock-item.is-sample figure .favorite-disc-crop { display: block; overflow: hidden; border-radius: 50%; }
.moodboard-dock-item.is-sample figure .favorite-disc-crop img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: scale(var(--favorite-embedded-disc-scale));
}
.moodboard-dock-item-copy { min-width: 0; }
.moodboard-dock-item-copy strong { display: block; font-size: 11px; line-height: 1.3; }
.moodboard-dock-item-copy span { display: block; margin-top: 6px; color: var(--gray); font-size: 7px; line-height: 1.35; overflow-wrap: anywhere; }
.moodboard-dock-item-copy b { color: var(--red); font-size: 9px; }
.moodboard-dock > footer {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--line-light);
  background: #fff;
}
.moodboard-dock > footer button {
  min-height: 52px;
  border: 1px solid var(--red);
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}
.moodboard-dock > footer button small { display: block; margin-top: 3px; font-size: 7px; letter-spacing: .07em; }
.moodboard-dock > footer span { color: var(--gray); font-size: 8px; line-height: 1.45; }
body.has-moodboard-dock .favorites-floating { display: none; }

.favorites-floating {
  width: min(320px, calc(100vw - 122px));
  min-height: 74px;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  right: 94px;
  bottom: 24px;
  padding: 9px 11px;
  border: 1px solid rgba(28, 26, 23, .18);
  border-radius: 12px;
  background: rgba(249, 247, 242, .98);
  color: var(--black);
  box-shadow: 0 13px 34px rgba(28, 24, 18, .17), 0 2px 8px rgba(28, 24, 18, .08);
  text-align: left;
  backdrop-filter: blur(10px);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.favorites-floating::before { content: none; }
.favorites-floating:hover {
  border-color: rgba(28, 26, 23, .42);
  background: rgba(249, 247, 242, .99);
  box-shadow: 0 16px 38px rgba(28, 24, 18, .2), 0 3px 10px rgba(28, 24, 18, .08);
  transform: translateY(-1px);
}
.favorites-floating:focus-visible { outline: 2px solid #b78b3f; outline-offset: 3px; }
.favorites-floating-preview {
  position: relative;
  width: 72px;
  height: 54px;
  display: block;
  flex: none;
}
.favorites-floating-preview-item {
  position: absolute;
  top: 1px;
  left: 0;
  width: 42px;
  height: 52px;
  display: block;
  overflow: hidden;
  border: 2px solid #fff;
  border-radius: 5px;
  background: #ece8df;
  box-shadow: 0 4px 12px rgba(16, 14, 12, .16);
}
.favorites-floating-preview-item:nth-child(1) { z-index: 3; }
.favorites-floating-preview-item:nth-child(2) { z-index: 2; left: 15px; top: 0; }
.favorites-floating-preview-item:nth-child(3) { z-index: 1; left: 30px; top: 2px; }
.favorites-floating-preview-item:only-child { width: 68px; }
.favorites-floating-preview-item > img,
.favorites-floating-preview-item > .favorite-disc-crop,
.favorites-floating-preview-item > .favorite-disc-crop > img {
  width: 100%;
  height: 100%;
  display: block;
}
.favorites-floating-preview-item > img { object-fit: cover; }
.favorites-floating-preview-item.is-sample > img { object-fit: contain; }
.favorites-floating-preview-item > .favorite-disc-crop { overflow: hidden; border-radius: 50%; }
.favorites-floating-preview-item > .favorite-disc-crop > img {
  object-fit: contain;
  transform: scale(var(--favorite-embedded-disc-scale));
}
.favorites-floating-preview.is-empty .favorites-floating-preview-item,
.favorites-floating-preview-item.is-empty {
  width: 68px;
  left: 0;
  border-color: #111;
  background: #111;
}
.favorites-floating-preview-item.is-empty > img { padding: 15px 7px; object-fit: contain; }
.favorites-floating-copy { min-width: 0; display: grid; gap: 3px; }
.favorites-floating-copy small {
  color: var(--red);
  font-size: 6px;
  font-weight: 900;
  letter-spacing: .13em;
  line-height: 1;
}
.favorites-floating-copy strong {
  overflow: hidden;
  color: var(--black);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: 1.18;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.favorites-floating-copy em {
  overflow: hidden;
  color: var(--gray);
  font-size: 6px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: .065em;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.favorites-floating-action {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 10px;
  border-left: 1px solid rgba(28, 26, 23, .12);
}
.favorites-floating .favorites-floating-action b {
  min-width: 30px;
  min-height: 30px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  box-shadow: none;
}
.favorites-floating-action > img { width: 14px; height: 14px; transition: transform 160ms ease; }
.favorites-floating:hover .favorites-floating-action > img { transform: translateX(2px); }

@media (prefers-reduced-motion: reduce) {
  .favorites-floating,
  .favorites-floating-action > img { transition: none; }
  .favorites-floating:hover,
  .favorites-floating:hover .favorites-floating-action > img { transform: none; }
}

.moodboard-contact-dialog {
  width: min(440px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 4px;
  background: #f7f6f2;
  color: var(--black);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .34);
}
.moodboard-contact-dialog::backdrop { background: rgba(0, 0, 0, .28); backdrop-filter: blur(2px); }
.moodboard-contact-shell { position: relative; padding: 30px; }
.moodboard-contact-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.moodboard-contact-close img { width: 18px; height: 18px; }
.moodboard-contact-shell > .eyebrow { margin: 0 0 8px; font-size: 8px; }
.moodboard-contact-shell h2 { max-width: 340px; margin: 0; font-size: 29px; letter-spacing: -.035em; }
.moodboard-contact-intro { margin: 14px 0 22px; color: var(--gray); font-size: 10px; line-height: 1.65; }
.moodboard-direct-share { display: grid; gap: 8px; }
.moodboard-direct-share[hidden] { display: none; }
.moodboard-direct-share button {
  min-height: 66px;
  border: 1px solid var(--red);
  border-radius: 3px;
  background: var(--red);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}
.moodboard-direct-share button small { display: block; margin-top: 4px; font-size: 8px; letter-spacing: .07em; }
.moodboard-direct-share > span { color: var(--gray); font-size: 8px; }
.moodboard-contact-divider { display: flex; align-items: center; gap: 10px; margin: 22px 0 18px; color: var(--gray); font-size: 8px; }
.moodboard-contact-divider::before,
.moodboard-contact-divider::after { height: 1px; flex: 1 1 auto; background: var(--line-light); content: ""; }
.moodboard-contact-step + .moodboard-contact-step { margin-top: 18px; }
.moodboard-contact-step h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 10px; font-size: 12px; }
.moodboard-contact-step h3 b { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-dark); color: #fff; font-size: 9px; }
.moodboard-file-row { min-height: 58px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 9px 8px 13px; border: 1px solid var(--line-light); background: #fff; }
.moodboard-file-row span { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.moodboard-file-row button { min-height: 40px; padding: 0 15px; border: 1px solid var(--black); border-radius: 3px; background: transparent; font-size: 9px; font-weight: 900; cursor: pointer; }
.moodboard-channel-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.moodboard-channel-actions a { min-height: 56px; display: grid; place-items: center; border: 1px solid var(--black); border-radius: 3px; color: var(--black); font-size: 11px; font-weight: 900; text-decoration: none; cursor: pointer; }
.moodboard-channel-actions a[aria-disabled="true"] { opacity: .38; cursor: not-allowed; }
.moodboard-download-status { margin: 20px 0 0; padding-top: 16px; border-top: 1px dotted var(--line-light); color: var(--gray); font-size: 9px; line-height: 1.6; }
.moodboard-download-status.is-ready { color: var(--gold-dark); font-weight: 800; }

@media (max-width: 1100px) {
  .favorites-dialog.is-comparing { inset: 10px; width: calc(100vw - 20px); height: calc(100dvh - 20px); }
  .moodboard-layout { grid-template-columns: minmax(0, 1fr); }
  .moodboard-references { border-right: 0; border-bottom: 1px solid var(--line-light); }
  .moodboard-layout .project-selection-details { padding: 26px 28px 34px; }
  .moodboard-references .favorites-compare-grid { --moodboard-columns: 3 !important; }
  .moodboard-actions { grid-template-columns: minmax(220px, 1fr) auto; }
  .moodboard-actions .favorites-compare-export-actions > button { min-width: 160px; }
}

@media (max-width: 820px) {
  .moodboard-actions { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .moodboard-actions > p { max-width: none; }
  .moodboard-actions .favorites-compare-export-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .moodboard-actions .favorites-compare-export-actions > button { min-width: 0; }
  .moodboard-actions .favorites-compare-export-actions > button.is-quiet { grid-column: 1 / -1; min-width: 0; }
}

@media (max-width: 680px) {
  .favorites-dialog.is-comparing {
    inset: auto 0 0;
    width: 100vw;
    height: 96dvh;
    max-height: 96dvh;
    margin: auto 0 0;
    border-radius: 14px 14px 0 0;
  }
  .moodboard-head {
    grid-template-areas: "title close";
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    padding: 14px;
  }
  .moodboard-head > div { grid-area: title; }
  .moodboard-head > .moodboard-head-actions { grid-area: close; }
  .moodboard-head-actions .moodboard-dock-trigger { display: none; }
  .moodboard-head h2 { font-size: 29px; }
  .moodboard-references { padding: 18px 14px 22px; }
  .moodboard-references > header { gap: 10px; }
  .moodboard-references > header > button { min-width: 90px; padding: 0 8px; }
  .moodboard-references .favorites-compare-grid { --moodboard-columns: 2 !important; gap: 9px; }
  .moodboard-clear-selection { align-items: stretch; flex-direction: column; gap: 9px; }
  .moodboard-clear-selection > span { text-align: left; }
  .moodboard-clear-selection > button { width: 100%; }
  .moodboard-reference-card { grid-template-rows: auto minmax(150px, 1fr) auto; }
  .moodboard-reference-card header { min-height: 98px; padding: 11px 9px 9px; }
  .moodboard-reference-card header h3 { font-size: 12px; }
  .moodboard-reference-card figure { min-height: 150px; margin: 0 8px; padding: 8px; }
  .moodboard-reference-card.is-visual figure img { height: 150px; }
  .moodboard-reference-card.is-gallery figure img { height: 150px; object-fit: cover; }
  .moodboard-reference-card.is-sample figure img { width: min(86%, 130px); }
  .moodboard-reference-card footer { grid-template-columns: auto minmax(0, 1fr); margin: 8px; }
  .moodboard-reference-card footer button { grid-column: 1 / -1; width: 100%; }
  .moodboard-layout .project-selection-details { padding: 22px 14px 28px; }
  .moodboard-help-options { grid-template-columns: minmax(0, 1fr); }
  .moodboard-brief-field textarea { min-height: 150px; font-size: 13px; }
  .moodboard-actions { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 12px 14px max(12px, env(safe-area-inset-bottom)); }
  .moodboard-actions > p { display: none; }
  .moodboard-actions .favorites-compare-export-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .moodboard-actions .favorites-compare-export-actions > button { min-width: 0; min-height: 54px; padding: 7px; font-size: 10px; }
  .moodboard-actions .favorites-compare-export-actions > button.is-quiet { grid-column: 1 / -1; min-width: 0; min-height: 44px; }
  .favorites-floating {
    width: 62px;
    height: 62px;
    min-height: 62px;
    grid-template-columns: minmax(0, 1fr);
    right: 78px;
    bottom: max(14px, env(safe-area-inset-bottom));
    padding: 6px;
    border-radius: 13px;
  }
  .favorites-floating::before { content: none; }
  .favorites-floating > .favorites-floating-preview {
    width: 48px;
    height: 48px;
    display: block;
  }
  .favorites-floating-preview-item,
  .favorites-floating-preview-item:only-child,
  .favorites-floating-preview.is-empty .favorites-floating-preview-item,
  .favorites-floating-preview-item.is-empty {
    width: 48px;
    height: 48px;
    top: 0;
    left: 0;
    border-radius: 9px;
  }
  .favorites-floating-preview-item:nth-child(n + 2),
  .favorites-floating > .favorites-floating-copy { display: none; }
  .favorites-floating > .favorites-floating-action {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
    border: 0;
    pointer-events: none;
  }
  .favorites-floating .favorites-floating-action b {
    position: absolute;
    top: -7px;
    right: -6px;
    min-width: 24px;
    min-height: 24px;
    border: 2px solid var(--cream);
    font-size: 8px;
  }
  .favorites-floating-action > img { display: none; }
  .moodboard-contact-dialog {
    width: 100vw;
    max-height: 92dvh;
    margin: auto 0 0;
    border-radius: 14px 14px 0 0;
  }
  .moodboard-contact-shell { padding: 26px 18px max(24px, env(safe-area-inset-bottom)); }
  .moodboard-contact-shell h2 { font-size: 27px; }
  .moodboard-dock { top: 70px; right: 10px; bottom: max(84px, calc(70px + env(safe-area-inset-bottom))); width: calc(100vw - 20px); }
}

/* Main-site Materials navigation. The Material Library release remains V3.3.0. */
.header-nav-item.has-materials-menu {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.materials-mega-menu {
  position: absolute;
  z-index: 110;
  top: 100%;
  right: 0;
  left: 0;
  padding: 12px 24px 24px;
  max-height: calc(100dvh - 64px);
  overflow: auto;
  background: transparent;
  color: var(--cream);
  overscroll-behavior: contain;
}

.materials-mega-menu[hidden] { display: none !important; }

.materials-mega-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(196, 162, 109, .32);
  border-radius: 6px;
  background: rgba(9, 9, 10, .985);
  box-shadow: none;
}

.materials-mega-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, 210px);
  gap: 12px;
}

.materials-mega-card {
  position: relative;
  height: 210px;
  min-width: 0;
  min-height: 210px;
  max-height: 210px;
  display: block;
  overflow: hidden;
  contain: layout paint;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 4px;
  background: #dedad1;
  color: var(--cream);
  text-decoration: none;
  transition: border-color .18s ease, transform .18s ease;
}

.materials-mega-card:hover,
.materials-mega-card:focus-visible {
  border-color: var(--gold);
  transform: translateY(-2px);
}

.materials-mega-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: #dedad1;
}

.materials-mega-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  transform: none;
}

.materials-mega-card:hover .materials-mega-media img,
.materials-mega-card:focus-visible .materials-mega-media img { transform: none; }

.materials-mega-copy {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  height: 84px;
  min-width: 0;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 22px 14px 13px;
  overflow: hidden;
  background: linear-gradient(to top, rgba(31, 31, 33, .9) 0%, rgba(48, 48, 50, .62) 56%, rgba(76, 76, 78, .2) 82%, rgba(76, 76, 78, 0) 100%);
}

.materials-mega-copy small {
  overflow: hidden;
  color: #ead5ad;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.materials-mega-copy strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.25; }
.materials-mega-foot {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 20px;
}

.materials-mega-foot a {
  border-bottom: 1px solid var(--gold);
  color: #ead5ad;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 1180px) and (min-width: 1001px) {
  .materials-mega-menu { padding-inline: 18px; }
  .materials-mega-inner { padding: 22px; }
}

@media (max-width: 1000px) {
  .site-header.is-menu-open .main-nav {
    max-height: calc(100dvh - 88px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .header-nav-item.has-materials-menu { justify-content: center; }
  .materials-mega-menu { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .materials-mega-card,
  .materials-mega-media img { transition: none; }
}

/* V12 main-site Products menu adapter for the current Materials route. */
.header-nav-item[data-products-link] { cursor: pointer; }

.products-mega {
  --menu-top: 76px;
  position: fixed;
  top: var(--menu-top);
  right: 0;
  left: 0;
  z-index: 95;
  padding: 12px 24px 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.products-mega.is-open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.products-mega-panel {
  max-width: var(--max);
  max-height: calc(100dvh - var(--menu-top) - 24px);
  margin: 0 auto;
  overflow: auto;
  padding: 28px;
  border: 1px solid rgba(196, 162, 109, .32);
  border-radius: 6px;
  background: rgba(9, 9, 10, .985);
  color: var(--cream);
  box-shadow: none;
  overscroll-behavior: contain;
}

.products-mega-carousel,
.products-mega-viewport,
.products-mega-slide { min-width: 0; }

.products-mega-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}

.products-mega-viewport::-webkit-scrollbar { display: none; }
.products-mega-track { display: flex; align-items: stretch; }
.products-mega-slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }

.products-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(2, 210px);
  align-items: start;
  gap: 12px;
}

.products-mega-card {
  position: relative;
  height: 210px;
  min-width: 0;
  min-height: 210px;
  max-height: 210px;
  display: block;
  align-self: start;
  overflow: hidden;
  contain: layout paint;
  border: 1px solid var(--line-dark);
  border-radius: 4px;
  background: #111214;
  color: var(--cream);
  transition: border-color 180ms ease, transform 180ms ease;
}

.products-mega-card:hover,
.products-mega-card:focus-visible { border-color: var(--gold); transform: translateY(-2px); }

.products-mega-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  display: block;
  padding: 0;
  overflow: hidden;
  background: #111214;
}

.products-mega-media > img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
}

.products-mega-card[data-products-mega-category$="-stainless-steel"] > .products-mega-media > img { object-fit: cover; }

.products-mega-card > span:not(.products-mega-media) {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  min-height: 84px;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 22px 14px 13px;
  overflow: hidden;
  background: linear-gradient(to top, rgba(31, 31, 33, .9) 0%, rgba(48, 48, 50, .62) 56%, rgba(76, 76, 78, .2) 82%, rgba(76, 76, 78, 0) 100%);
}

.products-mega-card small {
  overflow: hidden;
  color: #ead5ad;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.products-mega-card strong { overflow-wrap: anywhere; font-size: 14px; line-height: 1.25; }

.products-mega-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
}

.products-mega-controls > p {
  min-width: 0;
  margin: 0;
  color: var(--gray-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.products-mega-control-actions,
.products-mega-pagination { display: flex; align-items: center; }
.products-mega-control-actions { flex: 0 0 auto; gap: 2px; }

.products-mega-control-actions > button,
.products-mega-pagination button {
  width: 44px;
  height: 44px;
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.products-mega-control-actions > button { border: 1px solid rgba(255, 255, 255, .2); font-size: 18px; }
.products-mega-control-actions > button:hover,
.products-mega-control-actions > button:focus-visible { border-color: #ead5ad; background: rgba(196, 162, 109, .12); color: #ead5ad; }
.products-mega-control-actions > button:disabled { border-color: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .3); cursor: default; }
.products-mega-pagination { gap: 0; }

.products-mega-pagination button::after {
  width: 9px;
  height: 9px;
  display: block;
  content: "";
  border: 1px solid rgba(198, 158, 91, .68);
  border-radius: 999px;
  background: rgba(198, 158, 91, .18);
}

.products-mega-pagination button[aria-current="true"]::after { width: 26px; border-color: #ead5ad; background: var(--gold); }
.products-mega-pagination .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.products-mega-foot {
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  margin-top: 20px;
}

.products-mega-foot a {
  border-bottom: 1px solid var(--gold);
  color: #ead5ad;
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 1180px) and (min-width: 1001px) {
  .products-mega { padding-inline: 18px; }
  .products-mega-panel { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .products-mega,
  .products-mega-card,
  .products-mega-control-actions > button,
  .products-mega-pagination button::after { transition: none; }
  .products-mega-viewport { scroll-behavior: auto; }
}

/* Main-site shell actions remain interactive while V3.3.0 content stays frozen. */
.page-materials-v3 .header-nav-item,
.page-materials-v3 .mini-inquiry { cursor: pointer; }

@media print {
  html.is-printing-selection #favorites-dialog { background: #fff !important; }
  html.is-printing-selection .favorites-compare-head,
  html.is-printing-selection .moodboard-actions,
  html.is-printing-selection .moodboard-clear-selection,
  html.is-printing-selection .moodboard-references > header button,
  html.is-printing-selection .moodboard-reference-card footer button { display: none !important; }
  html.is-printing-selection .favorites-compare-view { display: block !important; height: auto !important; }
  html.is-printing-selection .favorites-compare-scroll { overflow: visible !important; background: #fff !important; }
  html.is-printing-selection .moodboard-layout { display: block !important; }
  html.is-printing-selection .moodboard-references,
  html.is-printing-selection .moodboard-layout .project-selection-details { padding: 8mm 0 !important; border: 0 !important; background: #fff !important; }
  html.is-printing-selection .moodboard-references .favorites-compare-grid { --moodboard-columns: 4 !important; }
  html.is-printing-selection .moodboard-reference-card { break-inside: avoid; }
  .moodboard-dock,
  .materials-mega-menu,
  .products-mega { display: none !important; }
}

.material-catalog-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.material-catalog-actions .series-action-button { min-width: 180px; flex: 1 1 180px; }

/* Narrow-screen selectors: concise labels, visible counts and a safe page gutter. */
#library :is(.material-filter-label-full, .material-filter-label-short) {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
}
#library .material-filter-label-full { display: inline; }
#library .material-filter-label-short { display: none; }

@media (max-width: 680px) {
  .reference-library-section.base-inspiration,
  body[data-base-material="copper"] .reference-library-section.base-inspiration,
  .reference-library-section.glass-gallery,
  .reference-library-section.crystal-products {
    padding-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right));
  }

  .catalogue-experience > :is(.surface-selector-row, .hairline-filters, .embossed-filters, .special-filters, .ral-family-filters),
  #library #ral-family-filters:not([hidden]) {
    width: auto;
    margin-inline: max(18px, env(safe-area-inset-left)) max(18px, env(safe-area-inset-right));
  }

  #library .material-filter-label-full { display: none; }
  #library .material-filter-label-short { display: inline; }

  #library :is(.surface-tab, .hairline-filter, .embossed-filter, .special-filter, .copper-view-tab, .crystal-filter, .ral-family-filter),
  #library #ral-family-filters > button {
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    gap: 6px;
    text-align: start;
    justify-items: start;
    align-items: center;
    transform: none;
  }

  #library :is(.surface-tab, .hairline-filter, .embossed-filter, .special-filter, .copper-view-tab, .crystal-filter, .ral-family-filter)::before,
  #library #ral-family-filters > button::before { content: none; }

  #library :is(.surface-tab, .hairline-filter, .embossed-filter, .special-filter, .copper-view-tab, .crystal-filter, .ral-family-filter) > small,
  #library :is(.selector-label, .subgroup-label) > small,
  #library #ral-family-filters > button > small,
  #library #ral-family-filters > .subgroup-label > small { display: none; }

  #library :is(.surface-tab, .hairline-filter, .embossed-filter, .special-filter, .copper-view-tab, .ral-family-filter) > strong,
  #library .crystal-filter > span,
  #library #ral-family-filters > button > strong {
    font-size: 13px;
    line-height: 1.3;
    white-space: normal;
    overflow-wrap: normal;
  }

  #library .copper-view-tab {
    grid-template-rows: auto;
    grid-template-areas: "title count";
  }
  #library .copper-view-tab > b,
  #library .crystal-filter > b {
    min-width: 0;
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    text-align: end;
  }
  #library .crystal-filter > b { grid-row: 1; }
  #library .crystal-filter .material-filter-label-short { font-size: inherit; line-height: inherit; }

  #library :is(.surface-selector-row, .filter-group-row) > .selector-label,
  #library :is(.hairline-filters, .embossed-filters, .special-filters, .ral-family-filters) > .subgroup-label,
  #library #ral-family-filters > .subgroup-label {
    min-height: 28px;
    padding: 0;
  }
}
