/* Fensterbringer configurator: clear choices, calm surfaces, one shared editor.
   Loaded after the existing component styles. Functional opening and Flow-pill
   transforms deliberately remain with their original components. */

body:not(.is-home) #main {
  color: var(--fb-ink, #16354b);
}

body:not(.is-home) #main.picker {
  max-width: 1240px;
  padding-block: 32px 56px;
}

body:not(.is-home) #main .picker-head {
  margin-bottom: 24px;
}

body:not(.is-home) #main .picker-head h1 {
  max-width: 30ch;
  margin: 0 0 12px;
  color: var(--fb-ink, #16354b);
  font-size: 30px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.025em;
  text-wrap: balance;
}

body:not(.is-home) #main .picker-head p {
  max-width: 68ch;
  margin: 0;
  color: var(--fb-muted, #526777);
  font-size: 16px;
  line-height: 1.6;
}

body:not(.is-home) #main .picker-navigation {
  gap: 12px;
  margin-top: 20px;
}

body:not(.is-home) #main .source-picker-back {
  min-height: 44px;
  margin-bottom: 24px;
}

/* The photo is the comparison aid; the title and action stay in a fixed order. */
body:not(.is-home) #main :is(.cards.world, .cards.profile, .cards.layout, .cards.variant) {
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px;
  align-items: stretch;
}

body:not(.is-home) #main :is(.cards, .maker-tier-grid) .card {
  min-width: 0;
  border: 1px solid var(--fb-line, #d6e0dc);
  border-radius: 14px;
  background: var(--fb-surface, #fff);
  color: var(--fb-ink, #16354b);
  box-shadow: none;
  transition: border-color 160ms ease-out, background-color 160ms ease-out;
}

body:not(.is-home) #main :is(.cards, .maker-tier-grid) .card:hover {
  border-color: var(--fb-accent, #16754a);
  box-shadow: none;
  transform: none;
}

body:not(.is-home) #main :is(.cards, .maker-tier-grid) .card:active {
  background-color: #f1f7f3;
  transform: none;
}

body:not(.is-home) #main :is(.cards, .maker-tier-grid) .card[aria-pressed="true"] {
  border-color: var(--fb-accent, #16754a);
  box-shadow: inset 0 0 0 1px var(--fb-accent, #16754a);
}

body:not(.is-home) #main :is(.cards.world, .cards.layout) > .card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 0;
  overflow: hidden;
  text-align: left;
}

body:not(.is-home) #main :is(.cards.world, .cards.layout) > .card > .card-visual {
  position: relative;
  display: block;
  flex: none;
  width: 100%;
  height: 220px;
  min-height: 0;
  margin: 0;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #fff;
}

body:not(.is-home) #main :is(.cards.world, .cards.layout) > .card > .card-visual > img {
  object-fit: contain;
  padding: 18px;
}

body:not(.is-home) #main :is(.cards.world, .cards.layout) > .card > .card-body {
  width: 100%;
  padding: 18px 20px 20px;
  gap: 8px;
}

body:not(.is-home) #main .cards .card-title {
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -.015em;
  font-weight: 800;
  color: var(--fb-ink, #16354b);
  overflow-wrap: anywhere;
}

body:not(.is-home) #main .cards .card-sub {
  color: var(--fb-muted, #526777);
  font-size: 14px;
  line-height: 1.5;
  white-space: normal;
}

body:not(.is-home) #main .cards.layout > .card[data-flow] .fb-flow {
  height: 42px;
  margin: 0;
}

/* Maker groups remain useful comparison groups, with the same quiet treatment. */
body:not(.is-home) #main .maker-price-note {
  margin-bottom: 28px;
  color: var(--fb-muted, #526777);
  font-size: 14px;
  line-height: 1.6;
}

body:not(.is-home) #main .maker-tier {
  margin-bottom: 32px;
}

body:not(.is-home) #main .maker-tier-head {
  gap: 16px;
  margin-bottom: 14px;
}

body:not(.is-home) #main .maker-tier-head h2 {
  font-size: 22px;
  color: var(--fb-ink, #16354b);
  letter-spacing: -.015em;
}

body:not(.is-home) #main .maker-tier-head p {
  color: var(--fb-muted, #526777);
  font-size: 14px;
  line-height: 1.5;
}

body:not(.is-home) #main .maker-tier-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body:not(.is-home) #main .maker-tier-grid > .card {
  min-height: 190px;
  padding: 20px;
  gap: 16px;
}

body:not(.is-home) #main .maker-tier-grid .card-visual.logo {
  height: 72px !important;
}

/* Profiles show the same content without the tinted header and giant metric. */
body:not(.is-home) #main .cards.profile .pc-wrap {
  min-width: 0;
}

body:not(.is-home) #main .cards.profile .pc-wrap > .card.pcard,
body:not(.is-home) #main .cards.profile .card.pcard {
  gap: 16px;
  padding-bottom: 20px;
  border-radius: 14px;
}

body:not(.is-home) #main .cards.profile .card.pcard .card-title {
  padding: 22px 62px 0 20px;
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1.35;
}

body:not(.is-home) #main .cards.profile .card.pcard > .card-visual,
body:not(.is-home) #main .cards.profile .card.pcard:has(> .card-visual.photo) > .card-visual.photo {
  flex: none;
  width: calc(100% - 40px);
  height: 180px;
  min-height: 180px;
  margin-inline: 20px;
  border-radius: 0;
}

body:not(.is-home) #main .cards.profile .card.pcard .pc-facts {
  flex: 1;
  gap: 14px;
  margin-inline: 20px;
  padding-top: 16px;
  border-color: var(--fb-line, #d6e0dc);
}

body:not(.is-home) #main .cards.profile .card.pcard .card-sub {
  margin: 0 20px;
}

body:not(.is-home) #main .cards.profile .card.pcard .fb-flow {
  margin: 0 20px;
}

body:not(.is-home) #main .cards.profile .card.pcard .fb-flow-gap {
  display: none;
}

body:not(.is-home) #main .pc-uw b {
  color: var(--fb-ink, #16354b);
  font-size: 26px;
}

body:not(.is-home) #main .pc-uw small,
body:not(.is-home) #main .pc-list li,
body:not(.is-home) #main .pc-note {
  color: var(--fb-muted, #526777);
}

body:not(.is-home) #main .pc-list {
  gap: 6px;
}

body:not(.is-home) #main .pc-info {
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border-color: var(--fb-line, #d6e0dc);
  color: var(--fb-ink, #16354b);
}

body:not(.is-home) #main .pc-info:hover {
  color: #fff;
  background: var(--fb-ink, #16354b);
}

/* Art belongs to the configurator even though its incumbent wrapper is .home. */
body:not(.is-home) #main .home.art-step {
  display: block;
}

body:not(.is-home) #main .home.art-step .shop-category .cards.app {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 20px;
  max-width: none;
}

body:not(.is-home) #main .home.art-step .shop-category .cards.app .card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

body:not(.is-home) #main .home.art-step .shop-category .cards.app .card .card-visual {
  flex: none;
  width: 100%;
  height: 220px !important;
  border-radius: 0;
  background: #fff;
}

body:not(.is-home) #main .home.art-step .shop-category .cards.app .card .card-body {
  width: 100%;
  padding: 18px 20px 20px !important;
  align-self: stretch;
}

body:not(.is-home) #main .home.art-step .shop-category .cards.app .card .card-title {
  font-size: 20px;
}

body:not(.is-home) #main .home.art-step .shop-category .cards.app .card .card-sub {
  display: block;
  font-size: 14px;
  line-height: 1.5;
}

/* Opening geometry and motion are owned by shop-opening.css. */
body:not(.is-home) #main .cards.variant > .card[data-ow] .card-body {
  padding: 18px 20px 20px;
  gap: 8px;
}

body:not(.is-home) #main .cards.variant > .card[data-ow] .card-title {
  font-size: 18px;
  line-height: 1.4;
}

body:not(.is-home) #main .cards.variant > .card[data-ow] .ow-note {
  color: var(--fb-muted, #526777);
  font-size: 14px;
  line-height: 1.5;
}

body:not(.is-home) #main .opening-next {
  bottom: 16px;
  max-width: 820px;
  padding: 16px;
  border-color: var(--fb-line, #d6e0dc);
  border-radius: 2px;
  box-shadow: none;
}

/* Shared editor: preview and complete selection on the left, settings on right. */
body:not(.is-home) #main.layout.editor {
  max-width: 1360px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 36px;
  padding-block: 28px 48px;
  align-items: start;
}

body:not(.is-home) #main.layout.editor .stage {
  position: sticky;
  top: 94px;
  height: auto;
  min-height: 0;
  margin: 0;
  border: 1px solid var(--fb-line, #d6e0dc);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

body:not(.is-home) #main.layout.editor .stage-bar {
  flex-wrap: wrap !important;
  gap: 12px;
  padding: 16px;
  background: #fff;
}

body:not(.is-home) #main.layout.editor .canvas {
  flex: none;
  height: 370px;
  min-height: 300px;
  background: var(--fb-canvas, #f4f7f6);
}

body:not(.is-home) #main.layout.editor .canvas > svg {
  overflow: visible;
}

body:not(.is-home) #main.layout.editor .panel {
  min-width: 0;
  padding: 0;
  background: transparent;
}

body:not(.is-home) #main.layout.editor .panel-head {
  position: static;
  width: auto;
  height: auto;
  margin-bottom: 24px;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

body:not(.is-home) #main.layout.editor .panel-head h1 {
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -.025em;
  color: var(--fb-ink, #16354b);
}

body:not(.is-home) #main.layout.editor .panel-head p {
  margin-top: 8px;
  color: var(--fb-muted, #526777);
  font-size: 14px;
  line-height: 1.6;
}

body:not(.is-home) #main.layout.editor .wiz {
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding: 0;
  overflow: visible;
  mask-image: none;
  -webkit-mask-image: none;
}

body:not(.is-home) #main.layout.editor .wiz-step {
  min-height: 44px;
  padding: 10px 14px;
  border-color: var(--fb-line, #d6e0dc);
  border-radius: 10px;
  color: var(--fb-muted, #526777);
  font-size: 14px;
  white-space: normal;
  text-align: left;
  line-height: 1.4;
}

body:not(.is-home) #main.layout.editor .wiz-step.active {
  border-color: var(--fb-ink, #16354b);
  background: var(--fb-ink, #16354b);
  color: #fff;
}

body:not(.is-home) #main.layout.editor .sec {
  padding: 0;
  border: 0;
  background: transparent;
}

body:not(.is-home) #main.layout.editor .sec-head {
  margin-bottom: 20px;
}

body:not(.is-home) #main.layout.editor .sec-head h2 {
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 23px;
  line-height: 1.35;
  letter-spacing: -.02em;
}

body:not(.is-home) #main.layout.editor .sec-head h2 small {
  font-size: 13px;
  font-weight: 500;
  color: var(--fb-muted, #526777);
}

body:not(.is-home) #main.layout.editor .sec-head p {
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fb-muted, #526777);
}

body:not(.is-home) #main.layout.editor .sub-tabs {
  flex-wrap: wrap;
  gap: 8px;
  border: 0;
  background: transparent;
}

body:not(.is-home) #main.layout.editor .sub-tabs button {
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--fb-line, #d6e0dc);
  border-radius: 9px;
  background: #fff;
  color: var(--fb-ink, #16354b);
  font-size: 14px;
}

body:not(.is-home) #main.layout.editor .sub-tabs button[aria-pressed="true"] {
  border-color: var(--fb-accent, #16754a);
  background: #eaf5ee;
  color: var(--fb-accent, #16754a);
}

body:not(.is-home) #main.layout.editor .spec-wrap {
  display: block;
  flex: none;
  max-height: none;
  overflow: visible;
  border-top: 1px solid var(--fb-line, #d6e0dc);
  background: #fff;
}

body:not(.is-home) #main.layout.editor .spec-heading {
  margin: 0;
  padding: 20px 20px 12px;
  font-size: 16px;
  color: var(--fb-ink, #16354b);
}

body:not(.is-home) #main.layout.editor .spec-heading span {
  display: inline;
  color: var(--fb-muted, #526777);
  font-size: 12px;
  line-height: 1.4;
}

body:not(.is-home) #main.layout.editor .spec-wrap .spec {
  display: block;
  padding: 0 20px 20px;
  margin: 0;
}

body:not(.is-home) #main.layout.editor .spec div {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: 12px;
  padding: 9px 0;
  border-color: var(--fb-line, #d6e0dc);
  font-size: 13px;
  line-height: 1.5;
}

body:not(.is-home) #main.layout.editor .spec .on {
  margin-inline: -8px;
  padding-inline: 8px;
  border-radius: 8px;
  background: #eaf5ee;
  box-shadow: none;
}

body:not(.is-home) #main.layout.editor .spec .on dt {
  color: var(--fb-ink, #16354b);
  font-weight: 700;
}

body:not(.is-home) #main.layout.editor .spec dt {
  color: var(--fb-muted, #526777);
}

body:not(.is-home) #main.layout.editor .spec dd button {
  width: 100%;
  min-height: 44px;
  margin-block: -9px;
  padding-block: 9px;
  white-space: normal;
  text-overflow: clip;
  overflow: visible;
  text-align: left;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fb-ink, #16354b);
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

@media (hover: hover) {
  body:not(.is-home) #main.layout.editor .spec dd button:hover {
    color: var(--fb-accent, #16754a);
  }
}

body:not(.is-home) #main.layout.editor :is(.fields, .dims) {
  gap: 20px 16px;
}

body:not(.is-home) #main.layout.editor .field {
  min-width: 0;
  gap: 8px;
}

body:not(.is-home) #main.layout.editor :is(.field input, .field select, .sel select, .field textarea) {
  min-height: 48px;
  border-color: var(--fb-control-line, #71877b);
  border-radius: 9px;
  color: var(--fb-ink, #16354b);
  font-size: 16px;
  background: #fff;
}

body:not(.is-home) #main.layout.editor :is(.field small, .field-hint, .note, .source-preference-state) {
  color: var(--fb-muted, #526777);
  font-size: 13px;
  line-height: 1.6;
}

body:not(.is-home) #main.layout.editor .field.invalid :is(input, small) {
  border-color: var(--error, #a92f2f);
  color: var(--error, #a92f2f);
}

body:not(.is-home) #main.layout.editor .sec-body .choices {
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 165px), 1fr));
}

body:not(.is-home) #main.layout.editor .choice {
  min-height: 48px;
  padding: 12px;
  border-color: var(--fb-line, #d6e0dc);
  border-radius: 10px;
  background: #fff;
  color: var(--fb-ink, #16354b);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: none;
}

body:not(.is-home) #main.layout.editor .choice:is([aria-pressed="true"], [aria-checked="true"]),
body:not(.is-home) #main.layout.editor .choice.radio:has(input:checked) {
  border-color: var(--fb-accent, #16754a);
  background: #eaf5ee;
  box-shadow: inset 0 0 0 1px var(--fb-accent, #16754a);
}

body:not(.is-home) #main.layout.editor .source-equipment-field {
  gap: 12px;
  margin: 0 0 28px;
}

body:not(.is-home) #main.layout.editor .source-equipment-field + .source-equipment-field {
  padding-top: 24px;
  border-top: 1px solid var(--fb-line, #d6e0dc);
}

body:not(.is-home) #main.layout.editor .source-option-grid {
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body:not(.is-home) #main.layout.editor .source-field-open {
  min-height: 44px;
  white-space: normal;
  line-height: 1.5;
}

body:not(.is-home) #main.layout.editor .supplier-switches {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--fb-line, #d6e0dc);
}

body:not(.is-home) #main.layout.editor .check {
  min-height: 44px;
  padding-block: 8px;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

body:not(.is-home) #main.layout.editor .check input {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: var(--fb-accent, #16754a);
}

/* Flügel editing is one setting group, with controls close to their labels. */
body:not(.is-home) #main.layout.editor .sash-editor {
  min-width: 0;
  margin: 28px 0;
  padding: 0;
  border: 0;
}

body:not(.is-home) #main.layout.editor .sash-editor legend {
  margin-bottom: 16px;
  padding: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 800;
  color: var(--fb-ink, #16354b);
}

body:not(.is-home) #main.layout.editor .sash-editor .sublabel {
  color: var(--fb-muted, #526777);
  font-size: 14px;
  line-height: 1.6;
}

body:not(.is-home) #main.layout.editor .sash-tabs {
  gap: 10px;
  margin-block: 14px 20px;
}

body:not(.is-home) #main.layout.editor .sash-tabs .btn {
  min-height: 64px;
  border-radius: 10px;
  border-color: var(--fb-line, #d6e0dc);
}

body:not(.is-home) #main.layout.editor .sash-tabs .btn[aria-pressed="true"] {
  border-color: var(--fb-accent, #16754a);
  background: #eaf5ee;
  box-shadow: inset 0 0 0 1px var(--fb-accent, #16754a);
}

/* A single action area, followed immediately by its real price status. */
body:not(.is-home) #main.layout.editor .buybar {
  position: static;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px 16px;
  margin: 24px 0 0;
  padding: 24px 0 0;
  border: 0;
  border-top: 1px solid var(--fb-line, #d6e0dc);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:not(.is-home) #main.layout.editor .buybar .buy-actions {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: stretch;
  width: 100%;
}

body:not(.is-home) #main.layout.editor .buybar .buy-actions .btn.go {
  width: 100%;
  min-height: 50px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  white-space: normal;
  line-height: 1.45;
}

body:not(.is-home) #main.layout.editor .buybar .workflow-back {
  grid-column: 1;
  grid-row: 1;
  min-height: 50px;
  border-radius: 10px;
}

body:not(.is-home) #main.layout.editor .buybar .price {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
  margin: 0;
  text-align: left;
}

body:not(.is-home) #main.layout.editor .buybar .price strong {
  color: var(--fb-ink, #16354b);
  font-size: 20px;
  line-height: 1.4;
}

body:not(.is-home) #main.layout.editor .buybar .price :is(.price-label, .price-unit) {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: var(--fb-muted, #526777);
}

body:not(.is-home) #main.layout.editor .buybar .price .linkish {
  display: inline-block;
  min-height: 44px;
  text-align: left;
}

/* Existing option dialogs retain native dialog focus and dismissal behavior. */
body:not(.is-home) :is(.source-equipment-dialog, .pc-dlg) {
  max-height: calc(100dvh - 32px);
  border: 1px solid var(--fb-line, #d6e0dc);
  border-radius: 16px;
  color: var(--fb-ink, #16354b);
  background: #fff;
}

body:not(.is-home) .pc-dlg-body h3 {
  font-size: 16px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fb-ink, #16354b);
}

body:not(.is-home) :is(.pc-note, .pc-tile span) {
  color: var(--fb-muted, #526777);
}

body:not(.is-home) :is(.pc-dlg, .source-equipment-dialog) :is(button, select, input) {
  min-height: 44px;
}

body:not(.is-home) #main :is(button, input, select, textarea):focus-visible,
body:not(.is-home) :is(.pc-dlg, .source-equipment-dialog) :is(button, input, select):focus-visible {
  outline: 3px solid var(--fb-accent, #16754a);
  outline-offset: 3px;
}

body:not(.is-home) #main :is(button, input, select):disabled {
  cursor: not-allowed;
}

@media (max-width: 1080px) {
  body:not(.is-home) #main :is(.cards.world, .cards.profile, .cards.layout, .cards.variant),
  body:not(.is-home) #main .home.art-step .shop-category .cards.app {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  body:not(.is-home) #main .maker-tier-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.is-home) #main.layout.editor {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  }
}

@media (max-width: 820px) {
  body:not(.is-home) #main.layout.editor {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  body:not(.is-home) #main.layout.editor .stage {
    position: static;
  }

  /* The responsive layout may place the same open summary after the panel. */
  body:not(.is-home) #main.layout.editor > .spec-wrap {
    border: 1px solid var(--fb-line, #d6e0dc);
    border-radius: 14px;
    background: #fff;
  }


  body:not(.is-home) #main.layout.editor .canvas {
    height: 340px;
    min-height: 280px;
  }
}

@media (max-width: 600px) {
  body:not(.is-home) #main.picker {
    padding-block: 24px 40px;
  }

  body:not(.is-home) #main .picker-head h1 {
    font-size: 26px;
  }

  body:not(.is-home) #main .picker-head p {
    font-size: 15px;
  }

  body:not(.is-home) #main :is(.cards.world, .cards.profile, .cards.layout, .cards.variant),
  body:not(.is-home) #main .home.art-step .shop-category .cards.app {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 16px;
  }

  body:not(.is-home) #main .cards.world > .card > .card-visual,
  body:not(.is-home) #main .cards.layout > .card > .card-visual,
  body:not(.is-home) #main .home.art-step .shop-category .cards.app .card .card-visual {
    height: 210px !important;
  }

  body:not(.is-home) #main .maker-tier-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  body:not(.is-home) #main .maker-tier-grid > .card {
    min-height: 190px;
    padding: 16px;
  }

  body:not(.is-home) #main .maker-tier-grid .card-title {
    font-size: 17px;
  }

  body:not(.is-home) #main .maker-tier-head {
    display: block;
  }

  body:not(.is-home) #main .maker-tier-head p {
    margin-top: 6px;
  }

  body:not(.is-home) #main .opening-next {
    bottom: 12px;
    flex-wrap: wrap;
    gap: 12px;
    margin-inline: 0;
    padding: 14px;
  }

  body:not(.is-home) #main .opening-next .btn {
    flex: 1;
    min-height: 46px;
  }

  body:not(.is-home) #main.layout.editor {
    padding-block: 20px 40px;
  }

  body:not(.is-home) #main.layout.editor .canvas {
    height: 300px;
    min-height: 260px;
  }

  body:not(.is-home) #main.layout.editor .stage-bar {
    padding: 12px;
  }

  body:not(.is-home) #main.layout.editor .stage-bar .btn {
    min-height: 44px;
  }

  body:not(.is-home) #main.layout.editor .stage-bar .seg button {
    min-height: 44px;
    padding-inline: 10px;
    font-size: 13px;
  }

  body:not(.is-home) #main.layout.editor .panel-head h1 {
    font-size: 24px;
  }

  body:not(.is-home) #main.layout.editor .spec-heading {
    padding: 16px 16px 10px;
  }

  body:not(.is-home) #main.layout.editor .spec-wrap .spec {
    padding: 0 16px 16px;
  }

  body:not(.is-home) #main.layout.editor .spec div {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 10px;
  }

  body:not(.is-home) #main.layout.editor .spec-heading span {
    max-width: 15ch;
    text-align: right;
  }

  body:not(.is-home) #main.layout.editor .dims {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:not(.is-home) #main.layout.editor .buybar {
    gap: 12px;
  }

  body:not(.is-home) #main.layout.editor .buybar .workflow-back {
    padding: 12px;
    font-size: 14px;
  }

  body:not(.is-home) #main.layout.editor .colour-summary-head {
    flex-wrap: wrap;
  }

  body:not(.is-home) #main.layout.editor .colour-summary-head h3 {
    flex: 1 1 calc(100% - 70px);
  }

  body:not(.is-home) #main.layout.editor .colour-summary-head .btn {
    margin-left: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.is-home) #main :is(.cards, .maker-tier-grid) .card {
    transition: none;
  }
}

/* A continuous shop language from first choice to the completed configuration. */
body:not(.is-home) #main .picker-head {
  padding: 28px 32px;
  background: var(--fb-sky, #e5f0f4);
  border-radius: 16px;
}
body:not(.is-home) #main .picker-head h1 { font-size: 36px; font-weight: 750; }
body:not(.is-home) #main :is(.cards.world, .cards.layout) > .card > .card-body,
body:not(.is-home) #main .home.art-step .shop-category .cards.app .card .card-body {
  flex: 1;
  background: var(--fb-sky, #e5f0f4);
  border-top: 1px solid var(--fb-line);
  padding: 24px !important;
}
body:not(.is-home) #main .cards.variant > .card[data-ow] .card-body {
  background: var(--fb-sky, #e5f0f4);
  border-radius: 0 0 13px 13px;
}
body:not(.is-home) #main .cards .card-title { font-size: 20px; font-weight: 750; }
body:not(.is-home) #main .maker-tier-head {
  padding-block: 12px;
  border-bottom: 1px solid #c4d5d9;
}
body:not(.is-home) #main .maker-tier-grid > .card { gap: 20px; padding: 24px 20px; }
body:not(.is-home) #main .maker-tier-grid .card-title { font-size: 20px; }
body:not(.is-home) #main .cards.profile .card.pcard .card-title {
  width: 100%;
  min-height: 76px;
  padding: 20px 64px 20px 20px;
  background: var(--fb-sky, #e5f0f4);
  border-radius: 13px 13px 0 0;
  display: flex;
  align-items: center;
}
body:not(.is-home) #main .cards.profile .card.pcard .pc-facts { padding-top: 20px; }
body:not(.is-home) #main .cards.profile .card.pcard .pc-list li { line-height: 1.65; }
body:not(.is-home) #main .pc-info { background: white; }
body:not(.is-home) #main.layout.editor .panel {
  padding: 28px;
  border: 1px solid var(--fb-line);
  border-radius: 16px;
  background: #fff;
}
body:not(.is-home) #main.layout.editor .panel-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fb-line);
}
body:not(.is-home) #main.layout.editor .spec-heading {
  background: var(--fb-sky, #e5f0f4);
  padding-bottom: 16px;
  margin-bottom: 8px;
}
body:not(.is-home) #main.layout.editor .stage-bar { background: var(--fb-sky, #e5f0f4); border-radius: 13px 13px 0 0; }
body:not(.is-home) #main.layout.editor .wiz-step.active { background: var(--fb-accent); border-color: var(--fb-accent); }
body:not(.is-home) #main.layout.editor .colour-summary {
  background: var(--fb-sky, #e5f0f4);
  border: 0;
  padding: 20px;
}
body:not(.is-home) #main.layout.editor .colour-side-pair > div { background: #fff; }
body:not(.is-home) #main.layout.editor .buybar { background: var(--fb-leaf, #eaf5ee); border: 0; padding: 20px; border-radius: 12px; }
@media (max-width: 1080px) {
  body:not(.is-home) #main.layout.editor { gap: 24px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  body:not(.is-home) #main.layout.editor .panel { padding: 20px; }
}
@media (max-width: 820px) {
  body:not(.is-home) #main.layout.editor { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  body:not(.is-home) #main .picker-head { padding: 24px 20px; }
  body:not(.is-home) #main .picker-head h1 { font-size: 28px; }
  body:not(.is-home) #main.layout.editor .panel { padding: 20px 16px; }
  body:not(.is-home) #main.layout.editor .wiz-step { padding: 8px 10px; }
  body:not(.is-home) #main.layout.editor .buybar { padding: 16px 12px; gap: 12px; }
  body:not(.is-home) #main.layout.editor .colour-summary { padding: 16px; }
  body:not(.is-home) #main .cards.profile .card.pcard .card-title { min-height: 72px; }
}

/* Card Hover Effect pattern: highlight the available choice without moving photos
   or obscuring neighbouring products. The existing FlowButton owns its motion. */
body:not(.is-home) #main :is(.cards.world, .cards.layout, .cards.variant, .home.art-step .cards.app) .card > .card-body { position: relative; isolation: isolate; }
body:not(.is-home) #main :is(.cards.world, .cards.layout, .cards.variant, .home.art-step .cards.app) .card > .card-body::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: #cce5d6;
  opacity: 0;
  transition: opacity 180ms cubic-bezier(.23,1,.32,1);
}
@media (hover: hover) and (pointer: fine) {
  body:not(.is-home) #main :is(.cards.world, .cards.layout, .cards.variant, .home.art-step .cards.app) .card:hover > .card-body::before { opacity: .75; }
}
body:not(.is-home) #main :is(.cards.world, .cards.layout, .cards.variant, .home.art-step .cards.app) .card:focus-visible > .card-body::before { opacity: .75; transition: none; }
@media (prefers-reduced-motion: reduce) {
  body:not(.is-home) #main :is(.cards.world, .cards.layout, .cards.variant, .home.art-step .cards.app) .card > .card-body::before { transition: none; }
}

/* Configuration workspace: a clear product preview and a focused buying task. */
body:not(.is-home) #main.layout.editor {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 32px;
}
body:not(.is-home) #main.layout.editor .stage {
  border-color: #d5dfdf;
  border-radius: 16px;
  overflow: visible;
}
body:not(.is-home) #main.layout.editor .stage-bar {
  padding: 16px 20px;
  gap: 12px;
  background: #fff;
  border-bottom: 0;
}
body:not(.is-home) #main.layout.editor .stage-bar .seg { padding: 4px; border: 0; border-radius: 10px; background: #edf2f1; }
body:not(.is-home) #main.layout.editor .stage-bar .seg button { min-height: 40px; padding: 8px 14px; border: 0; border-radius: 7px; font-size: 14px; }
body:not(.is-home) #main.layout.editor .preview-dimension-summary {
  gap: 12px;
  padding: 4px 20px 16px;
  border: 0;
}
body:not(.is-home) #main.layout.editor .preview-dimension-summary button {
  display: grid;
  gap: 4px;
  padding: 12px 16px;
  border: 1px solid #bdccc5;
  border-radius: 10px;
  background: #f7faf8;
}
body:not(.is-home) #main.layout.editor .preview-dimension-summary strong { font-size: 20px; line-height: 1.3; font-variant-numeric: tabular-nums; }
body:not(.is-home) #main.layout.editor .preview-dimension-summary small { font-size: 13px; }
body:not(.is-home) #main.layout.editor .preview-part-tabs { margin: 0; padding: 0 20px 12px; }
body:not(.is-home) #main.layout.editor .preview-part-picker { align-items: center; font-size: 13px; }
body:not(.is-home) #main.layout.editor .preview-part-picker select { min-height: 44px; border-radius: 8px; border-color: #bdccc5; font-size: 14px; font-weight: 600; }
body:not(.is-home) #main.layout.editor .preview-instruction { margin: 0; padding: 0 20px 16px; color: var(--fb-muted); font-size: 13px; }
body:not(.is-home) #main.layout.editor .canvas {
  height: 440px;
  min-height: 340px;
  padding: 24px 16px;
  background: #eef2f0;
  border-block: 1px solid #e0e7e3;
}
body:not(.is-home) #main.layout.editor .canvas > svg.fb-refined-preview { overflow: visible; }
.fb-refined-preview .fb-preview-frame {
  stroke: #7e8c88;
  stroke-width: .65px;
  vector-effect: non-scaling-stroke;
}
.fb-refined-preview .preview-profile-miters { stroke: #a5afaa; stroke-width: .65px; vector-effect: non-scaling-stroke; }
.fb-refined-preview .preview-opening-symbol { stroke: #607e89; stroke-width: 1px; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.fb-refined-preview .preview-leaf-label { fill: #16354b; font-weight: 700; }
.fb-refined-preview .preview-leaf-code,
.fb-refined-preview .preview-leaf-code.fixed { fill: #395766; font-weight: 500; }
.fb-refined-preview .preview-field-size { fill: #395766; }
.fb-refined-preview .preview-part.selected .preview-hit { fill: #16754a0a; stroke: #16754a; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.fb-refined-preview .preview-part:is(:hover,:focus-visible) .preview-hit { fill: #16754a0a; stroke: #16754a; stroke-width: 1.5px; vector-effect: non-scaling-stroke; }
.fb-refined-preview .preview-dimension path { stroke: #859991; stroke-width: .75px; vector-effect: non-scaling-stroke; }
body:not(.is-home) #main.layout.editor .spec-heading { background: #fff; padding: 20px 20px 12px; font-size: 16px; }
body:not(.is-home) #main.layout.editor .panel { padding: 28px; border: 0; background: #fff; }
body:not(.is-home) #main.layout.editor .panel-head { margin-bottom: 24px; padding-bottom: 20px; }
body:not(.is-home) #main.layout.editor .panel-head h1 { font-size: 22px; line-height: 1.3; }
body:not(.is-home) #main.layout.editor .panel-head p { font-size: 13px; line-height: 1.6; }
body:not(.is-home) #main.layout.editor .sec-head h2 { font-size: 28px; line-height: 1.25; }
body:not(.is-home) #main.layout.editor .sash-editor { background: transparent; border-top: 1px solid var(--fb-line); padding-top: 24px; }
body:not(.is-home) #main.layout.editor .sash-tabs { display: grid; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); }
body:not(.is-home) #main.layout.editor .sash-tabs .btn { background: #fff; text-align: left; }
body:not(.is-home) #main.layout.editor .sash-tabs .btn[aria-pressed=true] { background: var(--fb-leaf); }
body:not(.is-home) #main.layout.editor .source-preference-state { background: transparent; }
@media (max-width: 1080px) {
  body:not(.is-home) #main.layout.editor { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; }
  body:not(.is-home) #main.layout.editor .panel { padding: 24px 20px; }
}
@media (max-width: 820px) {
  body:not(.is-home) #main.layout.editor { grid-template-columns: minmax(0,1fr); gap: 24px; }
}
@media (max-width: 600px) {
  body:not(.is-home) #main.layout.editor .stage-bar { padding: 12px; }
  body:not(.is-home) #main.layout.editor .stage-bar .seg button { padding: 8px 10px; font-size: 13px; }
  body:not(.is-home) #main.layout.editor .preview-dimension-summary { padding: 0 12px 12px; gap: 10px; }
  body:not(.is-home) #main.layout.editor .preview-dimension-summary button { padding: 10px 12px; }
  body:not(.is-home) #main.layout.editor .preview-part-tabs { padding: 0 12px 12px; }
  body:not(.is-home) #main.layout.editor .preview-instruction { padding: 0 12px 12px; font-size: 12px; }
  body:not(.is-home) #main.layout.editor .canvas { height: 320px; min-height: 280px; padding: 16px 8px; }
  body:not(.is-home) #main.layout.editor .panel { padding: 24px 16px; }
  body:not(.is-home) #main.layout.editor .sec-head h2 { font-size: 24px; }
  body:not(.is-home) #main.layout.editor .wiz { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  body:not(.is-home) #main.layout.editor .wiz-step { width: 100%; height: 100%; font-size: 13px; padding: 10px; }
}

body:not(.is-home) #main.layout.editor .canvas-wrap { margin-bottom: 16px; }
body:not(.is-home) #main.layout.editor .sash-editor { padding-top: 0; }
body:not(.is-home) #main.layout.editor .sash-editor .sublabel { margin-top: 0; }
@media (max-width: 600px) {
  body:not(.is-home) #main.layout.editor .canvas { height: 280px; min-height: 260px; }
}

/* Three price tiers side by side, manufacturers stacked within their tier. */
body:not(.is-home) #main .cards.maker{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;align-items:start}
body:not(.is-home) #main .cards.maker .maker-price-note{grid-column:1/-1;margin-bottom:0}
body:not(.is-home) #main .maker-tier{min-width:0;margin:0}
body:not(.is-home) #main .maker-tier-head{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-height:96px}
body:not(.is-home) #main .maker-tier-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:14px}
body:not(.is-home) #main .maker-tier-grid>.card{min-height:180px;padding:20px}
/* A compact opening overview, while preserving the actual sash animation. */
body:not(.is-home) #main .cards.variant{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:16px}
body:not(.is-home) #main .cards.variant>.card:only-child{max-width:300px}
body:not(.is-home) #main .cards.variant>.card[data-ow] .card-visual.ow-visual,
body:not(.is-home) #main .cards.variant>.card[data-ow] .ow{aspect-ratio:4/3;height:auto}
body:not(.is-home) #main .cards.variant>.card[data-ow] .card-body{padding:12px;gap:6px}
body:not(.is-home) #main .cards.variant>.card[data-ow] .card-title{font-size:16px;line-height:1.3}
body:not(.is-home) #main .cards.variant>.card[data-ow] .card-title .nb{white-space:normal}
body:not(.is-home) #main .cards.variant>.card[data-ow] .ow-note{font-size:13px}
@media(max-width:1050px){body:not(.is-home) #main .cards.variant{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){
 body:not(.is-home) #main .cards.maker{grid-template-columns:minmax(0,1fr)}
 body:not(.is-home) #main .maker-tier-head{min-height:0}
 body:not(.is-home) #main .cards.variant{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px}
 body:not(.is-home) #main .cards.variant .fb-flow{padding:10px;font-size:13px}
 body:not(.is-home) #main .cards.variant .ow-cap{font-size:11px;bottom:6px}
}
@media(max-width:360px){body:not(.is-home) #main .cards.variant{grid-template-columns:minmax(0,1fr)!important}}

/* Taste v2 builder: flat working surfaces and product-first hierarchy.
   No step, input, source option or configuration geometry changes. */
body:not(.is-home) #main .picker-head{background:none;border:0;border-radius:0;padding:8px 0 24px;margin-bottom:8px}
body:not(.is-home) #main .picker-head h1{font-size:30px;line-height:1.2;letter-spacing:-.025em;color:var(--fb-ink)}
body:not(.is-home) #main .picker-head p{max-width:65ch;color:var(--fb-muted)}
body:not(.is-home) #main .fb-striped-pattern,body:not(.is-home) #main .fb-shiny-action::before{display:none!important}
body:not(.is-home) #main .fb-shiny-heading{animation:none!important;background:none!important;color:var(--fb-ink)!important}
body:not(.is-home) #main button.card.fb-bento-card{background:#fff!important;border:1px solid #dce1dd!important;border-radius:12px!important;box-shadow:none!important}
body:not(.is-home) #main button.card.fb-bento-card>.card-body{background:#fff!important}
body:not(.is-home) #main button.card.fb-bento-card>.card-body::before{content:none}
body:not(.is-home) #main button.card.fb-bento-card:is(:hover,:focus-visible){border-color:#8caa99!important}
body:not(.is-home) #main button.card.fb-bento-card[aria-pressed=true]{border-color:var(--fb-accent)!important;box-shadow:inset 0 0 0 1px var(--fb-accent)!important}
body:not(.is-home) #main .card[data-flow] .fb-flow{border-radius:999px;background:#f2f5f1;border-color:transparent;color:var(--fb-ink)}
body:not(.is-home) #main .card[data-flow][aria-pressed=true] .fb-flow{background:var(--fb-accent);color:#fff}
body:not(.is-home) #main.layout.editor{max-width:1440px;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);gap:28px;padding-top:28px;align-items:start}
body:not(.is-home) #main.layout.editor .stage{background:#fff;border:1px solid #e0e4df;border-radius:12px;box-shadow:none}
body:not(.is-home) #main.layout.editor .canvas{background:#f4f5f1;border:0;height:460px;padding:24px}
body:not(.is-home) #main.layout.editor .stage-bar{padding:16px;gap:12px;background:#fff}
body:not(.is-home) #main.layout.editor .stage-bar .seg{background:#f0f2ef;border-radius:8px;padding:4px}
body:not(.is-home) #main.layout.editor .stage-bar .seg button{border-radius:6px;font-size:14px}
body:not(.is-home) #main.layout.editor .stage-bar .seg button.active{background:#202322;color:#fff;box-shadow:none}
body:not(.is-home) #main.layout.editor .preview-dimension-summary button{background:#f5f6f3;border:0;border-radius:8px;padding:12px 16px}
body:not(.is-home) #main.layout.editor .preview-dimension-summary strong{color:var(--fb-ink);font-size:20px}
body:not(.is-home) #main.layout.editor .panel{padding:24px;background:#fff;border:1px solid #e0e4df;border-radius:12px;box-shadow:none}
body:not(.is-home) #main.layout.editor .panel-head{margin:0 0 24px;padding:0 0 20px;border-bottom:1px solid #e6e9e5}
body:not(.is-home) #main.layout.editor .panel-head h1{font-size:22px;font-weight:750;line-height:1.3}
body:not(.is-home) #main.layout.editor .panel-head p{font-size:14px;line-height:1.5;margin-top:8px}
body:not(.is-home) #main.layout.editor .sec-head h2{font-size:24px;font-weight:750;line-height:1.3;letter-spacing:-.02em}
body:not(.is-home) #main.layout.editor:not(.fb-guided-host) :is(input:not([type=checkbox]):not([type=radio]),select){min-height:46px;border:1px solid #b2bcb5;border-radius:6px;box-shadow:none;color:var(--fb-ink);background-color:#fff;font-size:15px;font-variant-numeric:tabular-nums}
body:not(.is-home) #main.layout.editor:not(.fb-guided-host) :is(input,textarea)::placeholder{color:#626d67;opacity:1}
body:not(.is-home) #main.layout.editor .sash-tabs .btn{border-radius:8px;padding:12px;box-shadow:none}
body:not(.is-home) #main.layout.editor .spec-heading{padding:20px 20px 12px;font-size:16px;color:var(--fb-ink)}
body:not(.is-home) #main.layout.editor .buybar{background:#f2f5f1;border-radius:8px;padding:16px;gap:12px;box-shadow:none}
body:not(.is-home) #main.layout.editor .buybar .btn{min-height:46px;border-radius:8px}
body:not(.is-home) #main.layout.editor .source-preference-state{border:0;background:#f5f6f3;color:var(--fb-muted)}
body:not(.is-home) #main.layout.editor .preview-instruction{font-size:13px;color:var(--fb-muted)}
body:not(.is-home) #main.layout.editor .fb-refined-preview :is(.preview-leaf-label,.preview-leaf-code,.preview-field-size){fill:var(--fb-ink)}
@media(max-width:1080px){body:not(.is-home) #main.layout.editor{gap:20px;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}body:not(.is-home) #main.layout.editor .panel{padding:20px}}
@media(max-width:820px){body:not(.is-home) #main.layout.editor{grid-template-columns:minmax(0,1fr)}body:not(.is-home) #main.layout.editor .canvas{height:360px;padding:20px}}
@media(max-width:600px){
 body:not(.is-home) #main .picker-head{padding:4px 0 20px}
 body:not(.is-home) #main .picker-head h1{font-size:26px}
 body:not(.is-home) #main.layout.editor{padding-top:16px;gap:20px}
 body:not(.is-home) #main.layout.editor .panel{padding:20px 16px}
 body:not(.is-home) #main.layout.editor .canvas{height:300px;min-height:260px;padding:16px 8px}
 body:not(.is-home) #main.layout.editor .stage-bar{padding:12px;flex-wrap:wrap}
 body:not(.is-home) #main.layout.editor .sec-head h2{font-size:22px}
}


/* Taste v2 retail preview: the chosen product leads, technical annotations are
   opt-in. Native SVG geometry, outer measures and edit targets are unchanged.
   At 1440: inner width 1392 = 2 columns + 24px gap, ratio 1.12 : 1. */
body:not(.is-home) #main.layout.editor {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 24px;
  font-family: Manrope, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}
body:not(.is-home) #main.layout.editor :is(.panel-head h1, .sec-head h2) {
  font-size: 24px;
  font-weight: 650;
  letter-spacing: -.025em;
}
body:not(.is-home) #main.layout.editor :is(.field > span, .sublabel) {
  color: #4b5550;
  font-size: 14px;
  font-weight: 500;
}
body:not(.is-home) #main.layout.editor .panel-head p { font-size: 14px; max-width: 60ch; }
body:not(.is-home) #main.layout.editor .sec-head { align-items: baseline; gap: 12px; }
body:not(.is-home) #main.layout.editor:not(.fb-guided-host) :is(input:not([type=checkbox]):not([type=radio]),select) { font-size: 16px; }
body:not(.is-home) #main.layout.editor .stage-bar { flex-wrap: wrap; gap: 8px; padding: 16px; }
body:not(.is-home) #main.layout.editor .stage-bar .stage-name { display: none; }
body:not(.is-home) #main.layout.editor .stage-bar .preview-enlarge { margin-left: auto; }
body:not(.is-home) #main.layout.editor .stage-bar .seg { background: #f0f2ef; }
body:not(.is-home) #main.layout.editor .stage-bar .seg button[aria-pressed=true] { background: #fff; color: #202322; box-shadow: 0 1px 3px #0000000d; }
body:not(.is-home) #main.layout.editor .canvas { height: 460px; background: #f3f4f0; padding: 20px; }
body:not(.is-home) #main.layout.editor .canvas-wrap { margin-bottom: 0; }
.fb-shop-preview:not(.fb-preview-details) .fb-refined-preview :is(.preview-opening-symbol,.preview-leaf-label,.preview-leaf-code,.preview-field-size,.preview-dimension,.preview-part-height) { display: none; }
.fb-shop-preview .fb-preview-tools {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px; color: #515957; font-size: 12px;
}
.fb-shop-preview .fb-preview-detail-control {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: #202322; font-size: 14px; cursor: pointer; font-weight: 500;
}
.fb-shop-preview .fb-preview-detail-control input {
  appearance: auto; width: 18px; height: 18px; min-height: 0;
  margin: 0; accent-color: #16754a; cursor: pointer;
}
.fb-shop-preview .fb-preview-legend {
  display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr));
  list-style: none; padding: 0 20px 16px; margin: 0; gap: 12px;
}
.fb-shop-preview .fb-preview-legend li { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.45; }
.fb-shop-preview .fb-preview-legend strong { color: #202322; font-weight: 600; }
.fb-shop-preview .fb-preview-legend span { color: #515957; overflow-wrap: anywhere; }
body:not(.is-home) #main.layout.editor .preview-dimension-summary { gap: 12px; padding: 0 20px 16px; }
body:not(.is-home) #main.layout.editor .preview-dimension-summary button { background: #fff; border: 1px solid #dce1dd; border-radius: 6px; padding: 12px 16px; }
body:not(.is-home) #main.layout.editor .preview-dimension-summary strong { font-size: 22px; font-weight: 600; }
body:not(.is-home) #main.layout.editor .preview-dimension-summary span { font-size: 14px; color: #515957; }
body:not(.is-home) #main.layout.editor .preview-part-picker { font-size: 14px; }
body:not(.is-home) #main.layout.editor .preview-instruction { font-size: 13px; }
body:not(.is-home) #main.layout.editor .spec-heading { font-size: 18px; font-weight: 650; }
body:not(.is-home) #main.layout.editor .spec :is(dt,dd,button) { font-size: 14px; line-height: 1.5; }
body:not(.is-home) #main.layout.editor .sash-editor { margin-top: 24px; }
body:not(.is-home) #main.layout.editor .sash-editor legend { font-weight: 650; }
body:not(.is-home) #main.layout.editor .sash-tabs .btn { font-weight: 600; }
@media(max-width:1080px) {
 body:not(.is-home) #main.layout.editor { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 20px; }
 body:not(.is-home) #main.layout.editor .canvas { height: 380px; }
}
@media(max-width:820px) {
 body:not(.is-home) #main.layout.editor { grid-template-columns: minmax(0,1fr); }
 body:not(.is-home) #main.layout.editor .canvas { height: 360px; }
}
@media(max-width:600px) {
 body:not(.is-home) #main.layout.editor .canvas { height: 300px; padding: 16px 8px; }
 body:not(.is-home) #main.layout.editor :is(.panel-head h1,.sec-head h2) { font-size: 22px; }
 body:not(.is-home) #main.layout.editor .stage-bar { padding: 12px; }
 body:not(.is-home) #main.layout.editor .stage-bar .seg button { padding: 8px; font-size: 13px; }
 body:not(.is-home) #main.layout.editor .stage-bar .preview-enlarge { padding: 8px; font-size: 13px; }
 .fb-shop-preview .fb-preview-tools { padding: 8px 12px; gap: 8px; }
 .fb-shop-preview .fb-preview-tools > span { max-width: 12ch; text-align: right; }
 .fb-shop-preview .fb-preview-legend { padding: 0 12px 16px; }
 body:not(.is-home) #main.layout.editor .preview-dimension-summary { padding-inline: 12px; }
}

/* Both colour sides remain adjacent, including phones. Real combinations only. */
body:not(.is-home) #main.layout.editor .colour-summary { padding: 20px; background: #f5f6f3; border: 0; border-radius: 8px; }
body:not(.is-home) #main.layout.editor .colour-direct-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 16px 0 0; }
body:not(.is-home) #main.layout.editor .colour-direct-side { min-width: 0; margin: 0; }
body:not(.is-home) #main.layout.editor .colour-direct-side select { width: 100%; max-width: 100%; text-overflow: ellipsis; }
body:not(.is-home) #main.layout.editor .colour-all-options { display: block; margin-top: 12px; text-align: left; font-size: 14px; min-height: 44px; }
body:not(.is-home) #main.layout.editor .colour-direct-hint { margin: 16px 0 8px; font-size: 14px; }
@media(max-width:600px) {
 body:not(.is-home) #main.layout.editor .colour-summary { padding: 12px; }
 body:not(.is-home) #main.layout.editor .colour-direct-pair { gap: 8px; }
 body:not(.is-home) #main.layout.editor .colour-direct-side select { padding-inline: 8px 24px; font-size: 14px; }
}

/* Impeccable / restored shop: angular choices, direct side-by-side colour
   samples and the original glass photography. Source options stay unchanged. */
body:not(.is-home) #main.layout.editor .stage,
body:not(.is-home) #main.layout.editor .panel{border-radius:2px!important;box-shadow:none!important;border:1px solid #d8dfda;background:#fff}
body:not(.is-home) #main.layout.editor :is(.panel-head h1,.sec-head h2){font-size:24px;font-weight:650;letter-spacing:-.025em}
body:not(.is-home) #main.layout.editor .sec-head{flex-wrap:wrap}
body:not(.is-home) #main.layout.editor .colour-summary{padding:0 0 24px;margin:0 0 28px;border:0;border-bottom:1px solid #d8dfda;background:#fff;border-radius:0!important}
body:not(.is-home) #main.layout.editor .colour-summary-head{padding:0;gap:12px}
body:not(.is-home) #main.layout.editor .colour-summary-head h3{font-size:18px;font-weight:650}
body:not(.is-home) #main.layout.editor .colour-direct-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:0;background:none;margin:16px 0 0}
body:not(.is-home) #main.layout.editor .colour-direct-side{min-width:0;padding:0;background:none}
body:not(.is-home) #main.layout.editor .colour-direct-side h4{font-size:17px;line-height:1.3;font-weight:750;margin:0 0 4px;color:#202322}
body:not(.is-home) #main.layout.editor .colour-side-current{font-size:13px;line-height:1.45;min-height:38px;margin:0 0 8px;overflow-wrap:anywhere;color:#515957}
body:not(.is-home) #main.layout.editor .colour-palette-search{display:block;margin-bottom:12px}
body:not(.is-home) #main.layout.editor .colour-palette-search input{width:100%;max-width:100%;min-height:44px;padding:10px;font-size:14px}
body:not(.is-home) #main.layout.editor .colour-palette-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
body:not(.is-home) #main.layout.editor .colour-side-swatch{display:flex;align-items:center;gap:8px;min-width:0;min-height:52px;padding:8px;border:1px solid #d4dcd6;background:#fff;border-radius:2px!important;font-size:12px;font-weight:500;line-height:1.35;text-align:left;box-shadow:none!important}
body:not(.is-home) #main.layout.editor .colour-side-swatch[hidden]{display:none!important}
body:not(.is-home) #main.layout.editor .colour-side-swatch>span:last-child{min-width:0;overflow-wrap:anywhere}
body:not(.is-home) #main.layout.editor .colour-side-swatch .chip{width:24px;height:30px;border-radius:1px!important}
body:not(.is-home) #main.layout.editor .colour-side-swatch[aria-pressed=true]{border-color:#16754a;background:#edf5ef;outline:1px solid #16754a;outline-offset:-2px}
body:not(.is-home) #main.layout.editor .colour-side-swatch:hover{border-color:#16754a}
body:not(.is-home) #main.layout.editor .colour-sample-unavailable{display:none}
body:not(.is-home) #main.layout.editor .colour-palette-more{min-height:44px;padding:8px 0;font-size:13px;text-align:left}
body:not(.is-home) #main.layout.editor .colour-current{font-size:13px;color:#515957;line-height:1.5}
body:not(.is-home) #main.layout.editor .source-inline-options{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
body:not(.is-home) #main.layout.editor .source-inline-choice{padding:8px;gap:8px;font-size:14px;line-height:1.4;background:#fff;border:1px solid #d4dcd6;box-shadow:none;border-radius:2px!important}
body:not(.is-home) #main.layout.editor .source-option-photo{height:130px;min-height:0;aspect-ratio:auto;background:#f5f6f3;border-radius:0!important}
body:not(.is-home) #main.layout.editor .source-option-photo img{width:100%;height:100%;object-fit:contain;padding:0;border-radius:0!important}
body:not(.is-home) #main.layout.editor .buybar{background:#fff!important;border:0;border-top:1px solid #d8dfda;box-shadow:none!important;padding:20px 0 0;border-radius:0!important}
body:not(.is-home) #main.layout.editor .stage-bar .seg{border-radius:2px;background:#f1f3ef}
body:not(.is-home) #main.layout.editor .stage-bar .seg button{border-radius:2px!important}
body:not(.is-home) #main.layout.editor .canvas{background:#f7f8f5}
body:not(.is-home) #main.layout.editor .spec-wrap{background:#fff}
@media(max-width:1100px) and (min-width:821px){body:not(.is-home) #main.layout.editor .colour-palette-grid{grid-template-columns:1fr}}
@media(max-width:600px){
 body:not(.is-home) #main.layout.editor :is(.panel-head h1,.sec-head h2){font-size:22px}
 body:not(.is-home) #main.layout.editor .colour-direct-pair{gap:12px}
 body:not(.is-home) #main.layout.editor .colour-palette-grid{grid-template-columns:1fr}
 body:not(.is-home) #main.layout.editor .colour-side-swatch{min-height:52px;font-size:12px;padding:6px;gap:6px}
 body:not(.is-home) #main.layout.editor .colour-direct-side h4{font-size:16px}
 body:not(.is-home) #main.layout.editor .colour-palette-search input{font-size:16px;min-width:0}
 body:not(.is-home) #main.layout.editor .source-inline-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 body:not(.is-home) #main.layout.editor .source-option-photo{height:110px}
}

/* Match the highest-specificity old card rules, including the opening body. */
body:not(.is-home) #main button.card.fb-bento-card,
body:not(.is-home) #main button.card.fb-bento-card>.card-body,
body:not(.is-home) #main .cards.profile .card.pcard .card-title,
body:not(.is-home) #main.layout.editor div.on,
body:not(.is-home) #main.layout.editor .wiz-step,
body:not(.is-home) #main.layout.editor .sash-tabs .btn{border-radius:2px!important}
body:not(.is-home) #main .card[data-flow] .fb-flow{border-radius:2px!important}

.source-glass-decor{margin-top:24px}.source-glass-decor h3{font-size:18px;font-weight:650;line-height:1.3;margin:0 0 8px}.source-glass-decor p{font-size:14px;line-height:1.5;margin:0 0 16px;color:#515957}

/* The preview fits the fixed stage. The viewBox scales geometry, dimensions and
   hit areas together, so tall or multi-part elements never cover the controls. */
body:not(.is-home) #main.layout.editor .canvas{grid-template:minmax(0,1fr)/minmax(0,1fr)}
body:not(.is-home) #main.layout.editor .canvas>svg.technical-preview{width:100%;height:100%;min-width:0;min-height:0}
body:not(.is-home) #main .opening-next .btn{border-radius:2px!important;box-shadow:none}

/* Sinan 29.10.: clear side headings, inside left and outside right. */
body:not(.is-home) #main.layout.editor .colour-summary-head h3{font-size:20px;font-weight:650;line-height:1.3}
body:not(.is-home) #main.layout.editor .colour-direct-side h4{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 0 4px;padding-bottom:8px;border-bottom:2px solid var(--fb-ink,#202322);font-size:18px;font-weight:700;line-height:1.3;color:var(--fb-ink,#202322)}
body:not(.is-home) #main.layout.editor .colour-direct-side h4 span{font-size:13px;font-weight:500;color:var(--fb-muted,#515957)}
body:not(.is-home) #main.layout.editor .colour-side-current{font-size:14px;font-weight:600;color:var(--fb-ink,#202322)}
/* Glass cards: plain kind first, catalogue values below, exact build-up last. */
body:not(.is-home) #main.layout.editor .glass-card-text{display:grid;gap:2px;min-width:0;text-align:left}
body:not(.is-home) #main.layout.editor .glass-card-text strong{font-size:15px;font-weight:650;line-height:1.35;color:var(--fb-ink,#202322)}
body:not(.is-home) #main.layout.editor .glass-card-text span{font-size:13px;line-height:1.4;color:var(--fb-ink,#202322)}
body:not(.is-home) #main.layout.editor .glass-card-text small{font-size:12px;line-height:1.35;color:var(--fb-muted,#515957);overflow-wrap:anywhere}
@media(max-width:600px){body:not(.is-home) #main.layout.editor .colour-direct-side h4{flex-direction:column;gap:0;font-size:16px}}
