/* Common shell base used by every configurator. */
:root {
  font-family: "Axiforma", "Avenir Next", "Segoe UI", Arial, sans-serif;
  --success: #25a244;
  --failure: #d93636;
  --shared-topbar-height: 47px;
}

.shared-ui-host {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--shared-topbar-height);
  font-family: "Axiforma", "Avenir Next", "Segoe UI", Arial, sans-serif;
  font-synthesis: auto;
  color: #172027;
}

.shared-ui-host *,
.shared-ui-host *::before,
.shared-ui-host *::after {
  box-sizing: border-box;
}

.shared-ui-host button,
.shared-ui-host input,
.shared-ui-host select {
  font: inherit;
}

.shared-ui-host .site-header,
.site-header {
  position: relative;
  z-index: 30;
  display: grid;
  grid-template-columns: minmax(110px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  width: 100%;
  min-height: var(--shared-topbar-height);
  height: var(--shared-topbar-height);
  padding: 0 14px;
  color: #172027;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(22, 32, 39, 0.08);
  box-shadow: 0 4px 18px rgba(22, 32, 39, 0.05);
}

.shared-ui-host .brand,
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  height: 34px;
}

.shared-ui-host .brand img,
.brand img {
  display: block;
  width: auto;
  height: 34px;
  max-width: 154px;
  object-fit: contain;
  object-position: left center;
}

.shared-ui-host .site-header__brand-cluster,
.site-header__brand-cluster {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 6px;
  min-width: 0;
}

.shared-ui-host .book-demo-button,
.book-demo-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 31px;
  padding: 0 12px;
  border: 1px solid #0878c9;
  border-radius: 9px;
  color: #fff;
  background: #0878c9;
  box-shadow: 0 4px 12px rgba(8, 120, 201, .2);
  cursor: pointer;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.shared-ui-host .book-demo-button:hover,
.shared-ui-host .book-demo-button:focus-visible,
.book-demo-button:hover,
.book-demo-button:focus-visible {
  border-color: #0067ad;
  background: #006fb8;
  box-shadow: 0 6px 16px rgba(8, 120, 201, .26);
}

.shared-ui-host .project-name-shell,
.project-name-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  max-width: min(560px, 50vw);
}

.shared-ui-host .project-name-measure,
.project-name-measure {
  position: fixed;
  left: -10000px;
  top: -10000px;
  visibility: hidden;
  white-space: pre;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.shared-ui-host .project-name-input,
.project-name-input {
  flex: 0 0 auto;
  min-width: 96px;
  max-width: min(520px, 44vw);
  height: 34px;
  padding: 3px 9px 2px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: #111820;
  background: transparent;
  outline: none;
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: background 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.shared-ui-host .project-name-input:hover,
.project-name-input:hover {
  background: #f3f5f6;
  border-color: #d8dde0;
}

.shared-ui-host .project-name-input:focus,
.project-name-input:focus {
  background: #fff;
  border-color: #8ebfe2;
  box-shadow: 0 0 0 3px rgba(8, 120, 201, 0.14);
}

.shared-ui-host .project-dirty-indicator,
.project-dirty-indicator {
  position: static;
  flex: 0 0 auto;
  margin-left: 4px;
  color: #111820;
  font-size: 17px;
  font-weight: 800;
  line-height: 1;
}

.shared-ui-host .project-dirty-indicator.is-hidden,
.project-dirty-indicator.is-hidden {
  display: none;
}

.shared-ui-host .site-header__actions,
.site-header__actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 2px;
}

.shared-ui-host .topbar-icon-button,
.topbar-icon-button {
  position: relative;
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #111820;
  background: transparent;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.shared-ui-host .topbar-icon-button:hover:not(:disabled),
.shared-ui-host .topbar-icon-button:focus-visible:not(:disabled),
.topbar-icon-button:hover:not(:disabled),
.topbar-icon-button:focus-visible:not(:disabled) {
  background: #e9ecee;
}

.shared-ui-host .topbar-icon-button:active:not(:disabled),
.topbar-icon-button:active:not(:disabled) {
  transform: scale(0.94);
}

.shared-ui-host .topbar-icon-button:disabled,
.topbar-icon-button:disabled {
  color: #aeb5ba;
  cursor: default;
}

.shared-ui-host .topbar-icon-button > svg,
.shared-ui-host .topbar-icon-button .save-icon svg,
.shared-ui-host .topbar-icon-button .cart-icon svg,
.topbar-icon-button > svg,
.topbar-icon-button .save-icon svg,
.topbar-icon-button .cart-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shared-ui-host .topbar-icon-button[data-tooltip]::after,
.topbar-icon-button[data-tooltip]::after {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  z-index: 50;
  padding: 6px 9px;
  border-radius: 7px;
  color: #fff;
  background: rgba(14, 18, 22, 0.94);
  content: attr(data-tooltip);
  font-size: 10px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -4px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.shared-ui-host .topbar-icon-button[data-tooltip]:hover::after,
.shared-ui-host .topbar-icon-button[data-tooltip]:focus-visible::after,
.topbar-icon-button[data-tooltip]:hover::after,
.topbar-icon-button[data-tooltip]:focus-visible::after {
  opacity: 1;
  transform: translate(-50%, 0);
}

.shared-ui-host .save-preview-button .save-icon,
.save-preview-button .save-icon {
  position: absolute;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.7) rotate(-8deg);
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.shared-ui-host .save-preview-button .save-icon--cloud,
.save-preview-button .save-icon--cloud {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.shared-ui-host .save-preview-button.is-success,
.save-preview-button.is-success {
  color: var(--success);
}

.shared-ui-host .save-preview-button.is-success .save-icon--cloud,
.save-preview-button.is-success .save-icon--cloud {
  opacity: 0;
  transform: scale(0.65) rotate(8deg);
}

.shared-ui-host .save-preview-button.is-success .save-icon--success,
.save-preview-button.is-success .save-icon--success {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.shared-ui-host .save-feedback,
.save-feedback {
  position: fixed;
  left: 50%;
  bottom: 0;
  z-index: 1100;
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-width: 190px;
  min-height: 50px;
  padding: 10px 46px;
  border: 2px solid var(--success);
  border-radius: 999px;
  color: #172027;
  background: #eef0f1;
  box-shadow: 0 12px 32px rgba(16, 24, 32, 0.22);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, calc(100% + 28px));
}

.shared-ui-host .save-feedback.is-animating,
.save-feedback.is-animating {
  animation: shared-save-feedback-cycle 1.05s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.shared-ui-host .save-feedback__icon,
.save-feedback__icon {
  position: absolute;
  left: 14px;
  display: none;
  width: 26px;
  height: 26px;
}

.shared-ui-host .save-feedback__icon svg,
.save-feedback__icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shared-ui-host .save-feedback.is-success .save-feedback__icon--success,
.save-feedback.is-success .save-feedback__icon--success {
  display: block;
  color: var(--success);
}

.shared-ui-host .save-feedback.is-error,
.save-feedback.is-error {
  border-color: #d9363e;
  color: #8b1e24;
  background: #fff1f2;
}

.shared-ui-host .save-feedback.is-error .save-feedback__icon--failure,
.save-feedback.is-error .save-feedback__icon--failure {
  display: block;
  color: #d9363e;
}

@keyframes shared-save-feedback-cycle {
  0% { opacity: 0; transform: translate(-50%, calc(100% + 28px)); }
  20%, 70% { opacity: 1; transform: translate(-50%, -18px); }
  100% { opacity: 0; transform: translate(-50%, calc(100% + 28px)); }
}

@media (max-width: 760px) {
  .shared-ui-host .site-header,
  .site-header {
    grid-template-columns: 190px minmax(90px, 1fr) auto;
    padding: 0 7px;
  }

  .shared-ui-host .brand img,
  .brand img { width: auto; height: 29px; max-width: 83px; }
  .shared-ui-host .project-name-input,
  .shared-ui-host .project-name-measure,
  .project-name-input,
  .project-name-measure { font-size: 14px; }
  .shared-ui-host .topbar-icon-button,
  .topbar-icon-button { width: 29px; height: 29px; }
}

/* Shared 360 Configurator UI layer. Product configurators may define their own
   scene and product-control styles, while this file owns the common shell. */
:root {
  --blue-900: #003f73;
  --blue-800: #005a9f;
  --blue-700: #0878c9;
  --blue-600: #1494de;
  --blue-100: #e9f5fd;
  --ink: #172027;
  --muted: #778087;
  --border: #dfe4e6;
  --panel: #ffffff;
  --soft: #f5f7f7;
  --shadow: 0 18px 48px rgba(24, 39, 47, 0.14);
}
/* v1.3.7 shared light-mode refinements */
.app-shell {
  grid-template-rows: 47px minmax(0, 1fr);
}

.site-header {
  min-height: 47px;
  padding: 0 14px;
}

.brand {
  height: 34px;
}

.brand img {
  width: auto;
  height: 34px;
  max-width: 154px;
}

.project-name-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: min(560px, 50vw);
}

.project-name-measure {
  position: fixed;
  left: -10000px;
  top: -10000px;
  visibility: hidden;
  white-space: pre;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-name-input {
  flex: 0 0 auto;
  min-width: 96px;
  max-width: min(520px, 44vw);
  height: 34px;
  padding: 3px 9px 2px;
  font-size: 17px;
}

.project-dirty-indicator {
  position: static;
  flex: 0 0 auto;
  margin-left: 4px;
  color: #111820;
  font-size: 17px;
  line-height: 1;
}

.project-dirty-indicator.is-hidden {
  display: none;
}

.site-header__actions {
  gap: 2px;
}

.topbar-icon-button {
  width: 32px;
  height: 32px;
}

.topbar-icon-button > svg,
.topbar-icon-button .save-icon svg {
  width: 20px;
  height: 20px;
}

/* Keep the window-configurator panel geometry, but use the shared light mode. */
.configurator-sidebar {
  --ink: #172027;
  --muted: #778087;
  --border: #dfe4e6;
  --panel: #ffffff;
  --soft: #f5f7f7;
  color: #172027;
  background: rgba(255, 255, 255, 0.98);
  border-color: #dfe4e6;
  box-shadow: 0 14px 38px rgba(24, 39, 47, 0.18);
  backdrop-filter: blur(10px);
}

.sidebar-footer {
  color: #172027;
  background: rgba(255, 255, 255, 0.99);
  border-top-color: #e6eaec;
  box-shadow: 0 -8px 24px rgba(24, 39, 47, 0.07);
}

.sidebar-collapse-handle {
  color: #273746;
  background: rgba(255, 255, 255, 0.98);
  border-color: #dfe4e6;
  box-shadow: -8px 0 22px rgba(24, 39, 47, 0.14);
  backdrop-filter: blur(10px);
}

.sidebar-collapse-handle:hover {
  color: var(--blue-800);
  background: #f4f7f8;
}

.configurator-sidebar .accordion-toggle {
  color: #24313a;
  background: #f7f9fa;
  border-color: #dfe4e6;
}

.configurator-sidebar .accordion-section.is-open .accordion-toggle {
  color: #153b59;
  background: #eaf4fb;
  border-color: #8fc2e6;
}

.accordion-toggle__arrow {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 160ms ease;
}

.accordion-section.is-open .accordion-toggle__arrow {
  transform: rotate(180deg);
}

.configurator-sidebar .form-section {
  border-bottom-color: #e8ecee;
}

.configurator-sidebar .section-heading h2,
.configurator-sidebar .detail-heading h2,
.configurator-sidebar .field-label,
.configurator-sidebar .form-field > span,
.configurator-sidebar .subsection > strong,
.configurator-sidebar .accessory-card strong,
.configurator-sidebar .option-card strong,
.configurator-sidebar .switch-pole-row strong,
.configurator-sidebar .outlet-face-row strong {
  color: #172027;
}

.configurator-sidebar .section-heading p,
.configurator-sidebar .detail-heading p,
.configurator-sidebar small,
.configurator-sidebar .info-banner,
.configurator-sidebar .range-labels,
.configurator-sidebar .footer-price small {
  color: #778087;
}

.configurator-sidebar .option-card,
.configurator-sidebar .accessory-card,
.configurator-sidebar .subsection,
.configurator-sidebar .automation-mount-panel,
.configurator-sidebar .accessory-detail-panel,
.configurator-sidebar .switch-pole-row,
.configurator-sidebar .outlet-face-row,
.configurator-sidebar .mount-height-control,
.configurator-sidebar .quote-form,
.configurator-sidebar .summary-hero,
.configurator-sidebar .configuration-overview,
.configurator-sidebar .price-breakdown,
.configurator-sidebar .sensor-position-grid {
  color: #172027;
  background: #ffffff;
  border-color: #dfe4e6;
}

.configurator-sidebar .option-card.is-selected,
.configurator-sidebar .accessory-card.is-selected,
.configurator-sidebar .switch-pole-row.is-selected,
.configurator-sidebar .outlet-face-row.is-selected {
  border-color: #2f93d3;
  box-shadow: inset 0 0 0 1px rgba(47, 147, 211, 0.2);
}

.configurator-sidebar input,
.configurator-sidebar textarea,
.configurator-sidebar select,
.configurator-sidebar .number-input,
.configurator-sidebar .segmented-control,
.configurator-sidebar .mini-segmented {
  color: #172027;
  background: #f1f4f6;
  border-color: #dfe4e6;
}

.configurator-sidebar .segmented-control__item,
.configurator-sidebar .mini-segmented button {
  color: #65717a;
}

.configurator-sidebar .segmented-control__item.is-selected,
.configurator-sidebar .mini-segmented button.is-selected {
  color: #ffffff;
  background: #267fbd;
}

.configurator-sidebar .secondary-button {
  color: #155b8c;
  background: #f5f9fc;
  border-color: #9bc8e6;
}

/* The tools are individual controls; there is no shared panel behind them. */
.tools-toolbar,
.tools-toolbar__panel,
.tools-toolbar__panel::before,
.tools-toolbar__panel::after {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}

.tools-toolbar__panel {
  padding: 0 !important;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 84px minmax(116px, 1fr) auto;
    padding: 0 7px;
  }

  .brand img {
    width: auto;
    height: 29px;
    max-width: 83px;
  }

  .project-name-input,
  .project-name-measure {
    font-size: 14px;
  }

  .project-name-input {
    height: 31px;
    padding-inline: 7px;
  }

  .project-dirty-indicator {
    margin-left: 2px;
    font-size: 14px;
  }

  .topbar-icon-button {
    width: 29px;
    height: 29px;
  }
}

/* v1.3.8 account, sharing and language menus */
html,
body,
#app,
.app-shell {
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
}

body,
#app {
  position: fixed;
  inset: 0;
  background: #eef1f2;
}

.app-shell {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.configurator-layout,
.viewport {
  min-height: 0;
  height: 100%;
}

.share-preview-button .share-icon {
  position: absolute;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: scale(0.7) rotate(-8deg);
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease;
}

.share-preview-button .share-icon--default {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.share-preview-button.is-success {
  color: var(--success);
}

.share-preview-button.is-success .share-icon--default {
  opacity: 0;
  transform: scale(0.65) rotate(8deg);
}

.share-preview-button.is-success .share-icon--success {
  opacity: 1;
  transform: scale(1) rotate(0);
}

.share-preview-button .share-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-button .cart-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}


.cart-button .cart-icon {
  display: grid;
  place-items: center;
  transform-origin: 50% 64%;
}
.cart-button .cart-count-badge {
  position: absolute;
  top: -5px;
  right: -6px;
  display: grid;
  min-width: 17px;
  height: 17px;
  place-items: center;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  background: var(--blue-700);
  font-size: 9px;
  font-weight: 850;
  line-height: 1;
  pointer-events: none;
  animation: shared-cart-badge-pop 220ms cubic-bezier(.2,.8,.3,1.2);
}
.cart-button .cart-count-badge[hidden] { display: none; }
@keyframes shared-cart-badge-pop {
  0% { opacity: 0; transform: scale(.55); }
  100% { opacity: 1; transform: scale(1); }
}
@media (hover: hover) and (pointer: fine) {
  .cart-button:hover:not(:disabled) .cart-icon {
    animation: shared-cart-hover 560ms cubic-bezier(.2,.78,.24,1);
  }
}
.cart-button:focus-visible:not(:disabled) .cart-icon {
  animation: shared-cart-hover 560ms cubic-bezier(.2,.78,.24,1);
}
@keyframes shared-cart-hover {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  28% { transform: translateX(2px) rotate(-7deg); }
  54% { transform: translateX(-1px) rotate(4deg); }
  78% { transform: translateX(1px) rotate(-2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cart-button:hover:not(:disabled) .cart-icon,
  .cart-button:focus-visible:not(:disabled) .cart-icon { animation: none; }
}

.language-button {
  font-size: 19px;
  line-height: 1;
}

.language-flag {
  display: block;
  transform: translateY(-1px);
}

.account-menu,
.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 44px;
  z-index: 80;
  width: 270px;
  padding: 12px;
  border: 1px solid rgba(21, 32, 39, 0.1);
  border-radius: 14px;
  color: #172027;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 18px 48px rgba(18, 28, 34, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.account-menu.is-open,
.language-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.account-menu__profile {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 10px 8px 15px;
  border-bottom: 1px solid #e8ecee;
  text-align: center;
}

.account-menu__avatar {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid #dce2e5;
  border-radius: 50%;
  color: #172027;
  background: #f4f6f7;
}

.account-menu__avatar svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-menu__profile strong {
  font-size: 14px;
  font-weight: 750;
}

.account-menu__login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  margin-top: 2px;
  padding: 8px 13px;
  border: 1px solid #d7dde1;
  border-radius: 9px;
  color: #172027;
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.account-menu__login:hover { background: #f0f3f5; }
.account-menu__login:disabled { opacity: .58; cursor: wait; }
.account-menu__login svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.account-menu__login strong { font-size: 12px; font-weight: 750; }
.account-menu__login[hidden],
[data-action="account-signout"][hidden] { display: none !important; }

.account-menu__items {
  display: grid;
  gap: 4px;
  padding-top: 9px;
}

.account-menu__items > button,
.account-settings button,
.account-domain button,
.language-list button {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  color: #253039;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.account-menu__items > button:hover,
.account-settings button:hover,
.account-domain button:hover,
.language-list button:hover {
  background: #f0f3f5;
}

.account-menu__items > button > span:first-child {
  display: grid;
  place-items: center;
}

.account-menu__items > button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.account-menu__help-icon {
  display: grid;
  place-items: center;
}

.account-help {
  display: grid;
  gap: 6px;
  max-height: 0;
  margin-left: 34px;
  overflow: hidden;
  opacity: 0;
  transition: max-height 170ms ease, opacity 150ms ease, padding 170ms ease;
}

.account-help.is-open {
  max-height: 112px;
  padding: 2px 10px 9px;
  opacity: 1;
}

.account-help__prompt {
  color: #69767e;
  font-size: 10.5px;
  font-weight: 550;
  line-height: 1.35;
}

.account-help__email {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  padding: 5px 7px;
  border: 0;
  border-radius: 8px;
  color: #0077b8;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.account-help__email:hover {
  background: #eaf5fc;
  color: #00669e;
}

.account-help__email:disabled {
  opacity: .58;
  cursor: wait;
}

.account-help__email strong {
  font-size: 10.7px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.account-help__mail-icon {
  display: grid;
  place-items: center;
}

.account-help__mail-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  overflow: visible;
}

.account-help__email { --support-mail-envelope-fill: #fff; }
.account-help__email:hover { --support-mail-envelope-fill: #eaf5fc; }

.support-mail-svg__paper {
  transform: translateY(2.2px);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 220ms cubic-bezier(.2,.75,.25,1);
}

.support-mail-svg__paper rect { fill: #fff; }
.support-mail-svg__front { fill: var(--support-mail-envelope-fill); transition: fill 140ms ease; }

.account-help__email:hover .support-mail-svg__paper,
.account-help__email:focus-visible .support-mail-svg__paper {
  transform: translateY(-2.6px);
}

.account-menu__items strong,
.language-list strong {
  font-size: 12px;
  font-weight: 700;
}

.account-menu__chevron {
  font-size: 21px;
  line-height: 1;
  transition: transform 150ms ease;
}

[data-action="toggle-account-settings"][aria-expanded="true"] .account-menu__chevron,
[data-action="toggle-domain-menu"][aria-expanded="true"] .account-menu__chevron,
[data-action="toggle-account-help"][aria-expanded="true"] .account-menu__chevron {
  transform: rotate(90deg);
}


.account-menu__domain-icon { font-size: 18px; line-height: 1; }
.account-menu__items--guest { padding-top: 9px; }
.account-domain {
  display: grid;
  max-height: 0;
  margin-left: 34px;
  overflow: hidden;
  opacity: 0;
  transition: max-height 170ms ease, opacity 150ms ease;
}
.account-domain.is-open { max-height: 150px; opacity: 1; padding-bottom: 5px; }
.account-domain button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 18px;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 36px;
  padding: 7px 10px;
  border: 0;
  border-radius: 9px;
  color: #55616a;
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.account-domain button.is-selected { color: var(--blue-800); background: #eaf5fc; }
.account-domain button:disabled { cursor: wait; opacity: .65; }
.account-domain__flag { font-size: 19px; }
.account-domain__check { justify-self: end; color: var(--blue-700); font-weight: 900; }

.account-settings {
  display: grid;
  max-height: 0;
  margin-left: 34px;
  overflow: hidden;
  opacity: 0;
  transition: max-height 170ms ease, opacity 150ms ease;
}

.account-settings.is-open {
  max-height: 80px;
  opacity: 1;
}

.account-settings button {
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 38px;
  color: #55616a;
}

.account-settings button strong {
  color: #172027;
}

.language-menu {
  right: 8px;
  width: 255px;
}

.cart-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 78px;
  z-index: 82;
  width: 320px;
  max-height: calc(100dvh - 64px);
  overflow: hidden;
  padding: 10px;
  border: 1px solid rgba(21, 32, 39, 0.1);
  border-radius: 14px;
  color: #172027;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: 0 18px 48px rgba(18, 28, 34, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}
.cart-menu.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}
.cart-menu__header { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:36px; padding:2px 5px 9px; border-bottom:1px solid #e8ecee; }
.cart-menu__header strong { font-size:13px; }
.cart-menu__header-actions { display:inline-flex; align-items:center; gap:7px; }
.cart-menu__empty-button { min-height:26px; padding:4px 8px; border:1px solid #efb4b8; border-radius:8px; color:#b4232b; background:#fff3f4; font:inherit; font-size:10px; font-weight:800; cursor:pointer; transition:color 140ms ease, background 140ms ease, border-color 140ms ease, opacity 140ms ease; }
.cart-menu__empty-button:hover:not(:disabled), .cart-menu__empty-button:focus-visible:not(:disabled) { color:#8f141b; background:#ffe3e5; border-color:#df7077; }
.cart-menu__empty-button:disabled { opacity:.45; cursor:default; }
.cart-menu__count { display:grid; min-width:22px; height:22px; place-items:center; padding:0 6px; border-radius:999px; color:var(--blue-800); background:var(--blue-100); font-size:10px; font-weight:850; }
.cart-menu__items { display:grid; max-height:min(350px, calc(100dvh - 178px)); overflow-y:auto; padding-top:6px; scrollbar-width:thin; }
.cart-menu__empty { margin:0; padding:22px 10px; color:#778087; text-align:center; font-size:11px; }
.cart-menu__item { display:grid; grid-template-columns:minmax(0,1fr) 38px; align-items:center; gap:10px; min-height:58px; padding:8px 5px 8px 9px; border-bottom:1px solid #edf0f2; transform-origin:top center; transition:opacity 180ms ease, transform 220ms ease, max-height 220ms ease, padding 220ms ease, min-height 220ms ease; }
.cart-menu__item:last-child { border-bottom:0; }
.cart-menu__item.is-removing { min-height:0; max-height:0; padding-top:0; padding-bottom:0; overflow:hidden; opacity:0; transform:translateX(18px) scale(.97); }
.cart-menu__item-copy { display:grid; min-width:0; gap:3px; }
.cart-menu__item-copy strong { overflow:hidden; color:#253039; font-size:11px; font-weight:780; text-overflow:ellipsis; white-space:nowrap; }
.cart-menu__item-copy span { color:#52616a; font-size:12px; font-weight:800; }
.cart-menu__remove { display:grid; width:34px; height:34px; place-items:center; padding:0; border:0; border-radius:9px; color:#69767e; background:transparent; cursor:pointer; }
.cart-menu__remove:hover:not(:disabled), .cart-menu__remove:focus-visible:not(:disabled) { color:#b72a32; background:#fff0f1; }
.cart-menu__remove svg { display:block; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
@media (hover:hover) and (pointer:fine) { .cart-menu__remove:hover:not(:disabled) .cart-menu__trash-icon { animation:shared-cart-trash-hover 380ms ease; } }
@keyframes shared-cart-trash-hover { 0%,100%{transform:rotate(0deg)} 30%{transform:rotate(-10deg) translateY(-1px)} 65%{transform:rotate(8deg) translateY(-1px)} }
.cart-menu__total { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:42px; margin-top:5px; padding:9px 5px 2px; border-top:1px solid #e8ecee; }
.cart-menu__total span { color:#66737c; font-size:10px; font-weight:700; }
.cart-menu__total strong { min-width:0; color:#172027; font-size:13px; font-weight:850; text-align:right; overflow-wrap:anywhere; }

.cart-menu__item { grid-template-columns:minmax(0,1fr) auto; }
.cart-menu__item-actions { display:flex; align-items:center; gap:2px; }
.cart-menu__edit,
.cart-menu__remove { display:grid; width:34px; height:34px; place-items:center; padding:0; border:0; border-radius:9px; color:#69767e; background:transparent; cursor:pointer; transition:color 140ms ease, background 140ms ease, transform 140ms ease; }
.cart-menu__edit:hover:not(:disabled),
.cart-menu__edit:focus-visible:not(:disabled) { color:var(--blue-800); background:var(--blue-100); }
.cart-menu__edit svg,
.cart-menu__remove svg { display:block; width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
@media (hover:hover) and (pointer:fine) { .cart-menu__edit:hover:not(:disabled) .cart-menu__edit-icon { animation:shared-cart-edit-hover 360ms ease; } }
@keyframes shared-cart-edit-hover { 0%,100%{transform:translate(0,0) rotate(0)} 45%{transform:translate(1px,-2px) rotate(-8deg)} 75%{transform:translate(-1px,0) rotate(4deg)} }
.cart-menu__footer { display:grid; }
.cart-menu__quote { display:flex; width:calc(100% - 10px); min-height:38px; align-items:center; justify-content:center; gap:8px; margin:6px 5px 2px; padding:0 14px; border:1px solid var(--blue-700); border-radius:10px; color:#fff; background:var(--blue-700); font:inherit; font-size:11px; font-weight:850; cursor:pointer; transition:background 140ms ease, border-color 140ms ease, transform 140ms ease; }
.cart-menu__quote:hover,
.cart-menu__quote:focus-visible { background:var(--blue-800); border-color:var(--blue-800); transform:translateY(-1px); }
.cart-menu__quote-icon { position:relative; display:grid; width:18px; height:18px; flex:0 0 18px; place-items:center; }
.cart-menu__quote-mail { display:grid; place-items:center; transition:opacity 120ms ease, transform 120ms ease; }
.cart-menu__quote svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.cart-menu__quote-loader { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; gap:2.5px; opacity:0; pointer-events:none; }
.cart-menu__quote-loader i { display:block; width:3.5px; height:3.5px; border-radius:50%; background:currentColor; transform:translateY(0); }
.cart-menu__quote[aria-busy="true"] { cursor:wait; }
.cart-menu__quote[aria-busy="true"] .cart-menu__quote-mail { opacity:0; transform:scale(.75); }
.cart-menu__quote[aria-busy="true"] .cart-menu__quote-loader { opacity:1; }
.cart-menu__quote[aria-busy="true"] .cart-menu__quote-loader i { animation:quotation-dot 720ms ease-in-out infinite; }
.cart-menu__quote[aria-busy="true"] .cart-menu__quote-loader i:nth-child(2) { animation-delay:120ms; }
.cart-menu__quote[aria-busy="true"] .cart-menu__quote-loader i:nth-child(3) { animation-delay:240ms; }
@keyframes quotation-dot { 0%,60%,100% { transform:translateY(0); opacity:.72; } 30% { transform:translateY(-4px); opacity:1; } }

.language-menu__current {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 5px 8px 10px;
  border-bottom: 1px solid #e8ecee;
}

.language-menu__current span,
.language-list button span {
  font-size: 21px;
}

.language-menu__current strong {
  font-size: 12px;
}

.language-search {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  margin: 10px 0 7px;
  padding: 0 10px;
  border: 1px solid #dce2e5;
  border-radius: 9px;
  background: #f5f7f8;
}

.language-search input {
  width: 100%;
  height: 36px;
  padding: 0;
  border: 0;
  outline: 0;
  color: #172027;
  background: transparent;
  font-size: 12px;
}

.language-list {
  display: grid;
  gap: 3px;
}

.language-list button {
  grid-template-columns: 28px minmax(0, 1fr);
}

.save-feedback {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  min-width: 190px;
  min-height: 50px;
  padding: 10px 46px;
  text-align: center;
}

.save-feedback__icon {
  position: absolute;
  left: 14px;
}

.save-feedback strong {
  width: 100%;
  text-align: center;
}

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

.saved-project-list article {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid #e1e6e8;
  border-radius: 9px;
  background: #f7f9f9;
}

.saved-project-list article strong {
  font-size: 13px;
}

.saved-project-list article small {
  color: #778087;
  font-size: 10px;
}

@media (max-width: 760px) {
  .account-menu,
  .language-menu,
  .cart-menu {
    right: 6px;
    width: min(320px, calc(100vw - 12px));
  }
}

/* v1.3.9 locale, units and currency settings */
.account-settings.is-open {
  max-height: 260px;
}

.account-settings__field {
  display: grid;
  gap: 6px;
  padding: 7px 10px;
  color: #55616a;
}

.account-settings__field > span {
  font-size: 11px;
  font-weight: 700;
}

.account-settings__field select {
  width: 100%;
  height: 36px;
  padding: 0 34px 0 10px;
  border: 1px solid #dce2e5;
  border-radius: 9px;
  color: #172027;
  background-color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 11px;
  font-weight: 650;
}

.account-settings__field select:hover {
  border-color: #9fc6df;
  background-color: #f8fbfd;
}

.account-settings__field select:focus {
  border-color: var(--blue-700);
  outline: 3px solid rgba(8, 120, 201, 0.14);
}

.language-list button.is-selected {
  color: var(--blue-800);
  background: #eaf5fc;
}

.language-list button.is-selected::after {
  content: '✓';
  justify-self: end;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
}

/* v1.4.0 account/settings and positioning refinements */
.configurator-sidebar {
  top: 15px;
}

.viewport-toolbar--left {
  top: 12px;
  left: 12px;
}

.account-menu {
  width: 292px;
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.account-settings {
  margin-left: 0;
  padding-left: 34px;
}

.account-settings.is-open {
  max-height: 470px;
  padding-bottom: 7px;
}

.account-settings__toggle,
.account-settings__cookies {
  grid-template-columns: minmax(0, 1fr) auto !important;
  min-height: 44px !important;
  padding: 8px 10px !important;
}

.settings-switch {
  position: relative;
  display: inline-flex;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
  border: 1px solid #c8d0d5;
  border-radius: 999px;
  background: #dfe4e7;
  transition: border-color 150ms ease, background 150ms ease;
}

.settings-switch > span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(17, 29, 35, 0.24);
  transition: transform 150ms ease;
}

.settings-switch.is-on {
  border-color: var(--blue-700);
  background: var(--blue-700);
}

.settings-switch.is-on > span {
  transform: translateX(16px);
}

.account-settings__cookies strong {
  color: var(--blue-800);
  font-size: 11px;
}

/* UI-only dark mode. The 3D environment remains controlled separately. */
.app-shell.is-dark-mode {
  --ink: #f3f6f8;
  --muted: #9aa8b4;
  --border: rgba(255, 255, 255, 0.11);
  --panel: #172231;
  --soft: #223044;
  color: #f3f6f8;
  background: #101722;
}

.app-shell.is-dark-mode .site-header {
  color: #f3f6f8;
  background: rgba(18, 27, 39, 0.98);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.24);
}

.app-shell.is-dark-mode .project-name-input,
.app-shell.is-dark-mode .project-dirty-indicator,
.app-shell.is-dark-mode .topbar-icon-button {
  color: #f3f6f8;
}

.app-shell.is-dark-mode .project-name-input:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.app-shell.is-dark-mode .project-name-input:focus {
  background: rgba(8, 18, 30, 0.96);
  border-color: #5ca5d7;
}

.app-shell.is-dark-mode .topbar-icon-button:hover:not(:disabled),
.app-shell.is-dark-mode .topbar-icon-button:focus-visible:not(:disabled) {
  background: rgba(255, 255, 255, 0.11);
}

.app-shell.is-dark-mode .account-menu,
.app-shell.is-dark-mode .language-menu,
.app-shell.is-dark-mode .cart-menu,
.app-shell.is-dark-mode .environment-panel {
  color: #edf3f7;
  background: rgba(20, 31, 45, 0.985);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.38);
}

.app-shell.is-dark-mode .account-menu__profile,
.app-shell.is-dark-mode .language-menu__current {
  border-color: rgba(255, 255, 255, 0.1);
}
.app-shell.is-dark-mode .cart-menu__header { border-color: rgba(255,255,255,.1); }
.app-shell.is-dark-mode .cart-menu__total { border-color:rgba(255,255,255,.1); }
.app-shell.is-dark-mode .cart-menu__total span { color:#aebdca; }
.app-shell.is-dark-mode .cart-menu__total strong { color:#e7eef3; }
.app-shell.is-dark-mode .cart-menu__empty-button { color:#ff9ca3; background:rgba(217,54,62,.12); border-color:rgba(255,156,163,.35); }
.app-shell.is-dark-mode .cart-menu__empty-button:hover:not(:disabled) { color:#ffd4d7; background:rgba(217,54,62,.22); border-color:rgba(255,156,163,.55); }
.app-shell.is-dark-mode .cart-menu__item { border-color: rgba(255,255,255,.08); }
.app-shell.is-dark-mode .cart-menu__item-copy strong { color:#e7eef3; }
.app-shell.is-dark-mode .cart-menu__item-copy span,
.app-shell.is-dark-mode .cart-menu__empty { color:#aebdca; }
.app-shell.is-dark-mode .cart-menu__edit,
.app-shell.is-dark-mode .cart-menu__remove { color:#aebdca; }
.app-shell.is-dark-mode .cart-menu__edit:hover:not(:disabled) { color:#9ccfff; background:rgba(31,132,204,.16); }
.app-shell.is-dark-mode .cart-menu__remove:hover:not(:disabled) { color:#ff9ca3; background:rgba(217,54,62,.14); }
.app-shell.is-dark-mode .cart-button .cart-count-badge { border-color:#0f172a; }

.app-shell.is-dark-mode .account-menu__avatar,
.app-shell.is-dark-mode .language-search,
.app-shell.is-dark-mode .account-settings__field select {
  color: #edf3f7;
  background: #263548;
  border-color: rgba(255, 255, 255, 0.12);
}

.app-shell.is-dark-mode .language-search input,
.app-shell.is-dark-mode .account-menu__items > button,
.app-shell.is-dark-mode .account-settings button,
.app-shell.is-dark-mode .account-domain button,
.app-shell.is-dark-mode .language-list button,
.app-shell.is-dark-mode .account-settings__field,
.app-shell.is-dark-mode .account-settings__field select {
  color: #dfe9ef;
}

.app-shell.is-dark-mode .account-help__prompt { color: #aebdca; }
.app-shell.is-dark-mode .account-help__email { color: #5cc7ff; }
.app-shell.is-dark-mode .account-help__email:hover { color: #8ad8ff; background: rgba(20,148,222,.14); }
.app-shell.is-dark-mode .account-help__email { --support-mail-envelope-fill: #1e293b; }
.app-shell.is-dark-mode .account-help__email:hover { --support-mail-envelope-fill: #20384a; }
.app-shell.is-dark-mode .support-mail-svg__paper rect { fill: #f8fafc; }

.app-shell.is-dark-mode .account-menu__items > button:hover,
.app-shell.is-dark-mode .account-settings button:hover,
.app-shell.is-dark-mode .account-domain button:hover,
.app-shell.is-dark-mode .language-list button:hover {
  background: rgba(255, 255, 255, 0.08);
}

.app-shell.is-dark-mode .configurator-sidebar {
  --ink: #f3f4f6;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.1);
  --panel: rgba(30, 41, 59, 0.78);
  --soft: rgba(30, 41, 59, 0.72);
  color: #f3f4f6;
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34);
}

.app-shell.is-dark-mode .sidebar-footer {
  color: #f3f4f6;
  background: rgba(15, 23, 42, 0.97);
  border-top-color: rgba(255, 255, 255, 0.09);
}

.app-shell.is-dark-mode .sidebar-collapse-handle {
  color: #d6e0e8;
  background: rgba(15, 23, 42, 0.96);
  border-color: rgba(255, 255, 255, 0.12);
}

.app-shell.is-dark-mode .configurator-sidebar .accordion-toggle {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.86);
  border-color: rgba(255, 255, 255, 0.1);
}

.app-shell.is-dark-mode .configurator-sidebar .accordion-section.is-open .accordion-toggle {
  color: #fff;
  background: rgba(37, 55, 84, 0.96);
  border-color: rgba(96, 165, 250, 0.48);
}

.app-shell.is-dark-mode .configurator-sidebar .section-heading h2,
.app-shell.is-dark-mode .configurator-sidebar .detail-heading h2,
.app-shell.is-dark-mode .configurator-sidebar .field-label,
.app-shell.is-dark-mode .configurator-sidebar .form-field > span,
.app-shell.is-dark-mode .configurator-sidebar .subsection > strong,
.app-shell.is-dark-mode .configurator-sidebar .accessory-card strong,
.app-shell.is-dark-mode .configurator-sidebar .option-card strong,
.app-shell.is-dark-mode .configurator-sidebar .switch-pole-row strong,
.app-shell.is-dark-mode .configurator-sidebar .outlet-face-row strong {
  color: #e2e8f0;
}

.app-shell.is-dark-mode .configurator-sidebar .section-heading p,
.app-shell.is-dark-mode .configurator-sidebar .detail-heading p,
.app-shell.is-dark-mode .configurator-sidebar small,
.app-shell.is-dark-mode .configurator-sidebar .info-banner,
.app-shell.is-dark-mode .configurator-sidebar .range-labels,
.app-shell.is-dark-mode .configurator-sidebar .footer-price small {
  color: #94a3b8;
}

.app-shell.is-dark-mode .configurator-sidebar .option-card,
.app-shell.is-dark-mode .configurator-sidebar .accessory-card,
.app-shell.is-dark-mode .configurator-sidebar .subsection,
.app-shell.is-dark-mode .configurator-sidebar .automation-mount-panel,
.app-shell.is-dark-mode .configurator-sidebar .accessory-detail-panel,
.app-shell.is-dark-mode .configurator-sidebar .switch-pole-row,
.app-shell.is-dark-mode .configurator-sidebar .outlet-face-row,
.app-shell.is-dark-mode .configurator-sidebar .mount-height-control,
.app-shell.is-dark-mode .configurator-sidebar .quote-form,
.app-shell.is-dark-mode .configurator-sidebar .summary-hero,
.app-shell.is-dark-mode .configurator-sidebar .configuration-overview,
.app-shell.is-dark-mode .configurator-sidebar .price-breakdown,
.app-shell.is-dark-mode .configurator-sidebar .sensor-position-grid {
  color: #e2e8f0;
  background: rgba(30, 41, 59, 0.72);
  border-color: rgba(255, 255, 255, 0.1);
}

.app-shell.is-dark-mode .configurator-sidebar input,
.app-shell.is-dark-mode .configurator-sidebar textarea,
.app-shell.is-dark-mode .configurator-sidebar select,
.app-shell.is-dark-mode .configurator-sidebar .number-input,
.app-shell.is-dark-mode .configurator-sidebar .segmented-control,
.app-shell.is-dark-mode .configurator-sidebar .mini-segmented {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(255, 255, 255, 0.1);
}

/* Shared Tools icons used by embedded configurators such as Pergola.
   Standalone configurators already receive equivalent rules from standalone.css. */
.round-tool > span {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  pointer-events: none;
}

.round-tool svg {
  display: block;
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-shell.is-dark-mode .tool-launcher,
.app-shell.is-dark-mode .round-tool {
  color: #e7eef3;
  background: rgba(20, 31, 45, 0.94);
  border-color: rgba(255, 255, 255, 0.11);
}

.app-shell.is-dark-mode .round-tool.is-active,
.app-shell.is-dark-mode .tool-launcher.is-active {
  color: #fff;
  background: var(--blue-700);
}

@media (max-width: 760px) {
  .configurator-sidebar {
    top: 10px;
  }

  .viewport-toolbar--left {
    top: 9px;
    left: 9px;
  }
}

.settings-toggle-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.settings-toggle-value strong {
  min-width: 20px;
  color: #55616a;
  font-size: 10px;
  text-align: right;
}

.app-shell.is-dark-mode .settings-toggle-value strong {
  color: #b7c4ce;
}

/* Language selection: the checkmark stays next to the name on the same row. */
.language-list button {
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
}

.language-list button .language-list__check {
  display: none;
  justify-self: end;
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 900;
}

.language-list button.is-selected {
  color: inherit;
  background: #eef3f6;
}

.language-list button.is-selected::after {
  content: none;
}

.language-list button.is-selected .language-list__check {
  display: inline-flex;
}

.app-shell.is-dark-mode .language-list button.is-selected {
  color: #edf3f7;
  background: rgba(255, 255, 255, 0.08);
}

/* Shared product-settings panel geometry. Product styles own the controls inside. */
.shared-settings-panel {
  position: fixed !important;
  top: calc(var(--shared-topbar-height, 47px) + 20px) !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
  z-index: 25;
  width: 360px !important;
  max-width: calc(100vw - 60px);
  max-height: none !important;
  overflow: auto;
  box-sizing: border-box;
  border-radius: 18px !important;
  font-family: "Axiforma", "Avenir Next", "Segoe UI", Arial, sans-serif;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: transform;
}

.shared-settings-panel.sidebar-collapsed,
.shared-settings-panel.is-collapsed {
  transform: translateX(calc(100% + 20px)) !important;
}

.shared-settings-panel--light {
  color: #172027;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid rgba(20, 27, 35, 0.1) !important;
  box-shadow: 0 14px 38px rgba(24, 39, 47, 0.18) !important;
}

.shared-settings-panel--dark {
  color: #f3f4f6;
  background: rgba(15, 23, 42, 0.9) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.34) !important;
  backdrop-filter: blur(12px);
}

.shared-settings-toggle {
  position: fixed !important;
  top: calc(var(--shared-topbar-height, 47px) + 34px) !important;
  right: 380px !important;
  left: auto !important;
  z-index: 28;
  display: inline-flex !important;
  width: 34px !important;
  height: 42px !important;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border-radius: 10px 0 0 10px !important;
  cursor: pointer;
  transition:
    right 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.15s ease,
    color 0.15s ease !important;
}

.shared-settings-toggle--light {
  color: #273746 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  border: 1px solid #dfe4e6 !important;
  border-right: 0 !important;
  box-shadow: -8px 0 22px rgba(24, 39, 47, 0.14) !important;
}
.shared-settings-toggle--dark {
  color: #cbd5e1 !important;
  background: rgba(15, 23, 42, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-right: 0 !important;
  box-shadow: -8px 0 22px rgba(0, 0, 0, 0.22) !important;
  backdrop-filter: blur(12px);
}

body.sidebar-is-collapsed .shared-settings-toggle,
body.roof-sidebar-collapsed .shared-settings-toggle {
  right: 0 !important;
}

@media (max-width: 760px) {
  .shared-settings-panel {
    top: calc(var(--shared-topbar-height, 47px) + 12px) !important;
    right: 12px !important;
    bottom: 12px !important;
    width: min(340px, calc(100vw - 56px)) !important;
  }

  .shared-settings-toggle {
    top: calc(var(--shared-topbar-height, 47px) + 26px) !important;
    right: min(352px, calc(100vw - 44px)) !important;
  }

  body.sidebar-is-collapsed .shared-settings-toggle,
  body.roof-sidebar-collapsed .shared-settings-toggle {
    right: 0 !important;
  }
}

.app-shell.is-dark-mode .account-menu__login { color: #e7eef3; background: rgba(30,41,59,.9); border-color: rgba(255,255,255,.1); }
.app-shell.is-dark-mode .account-menu__login:hover { background: rgba(51,65,85,.95); }


/* Saved configurations ---------------------------------------------------- */
.saved-configurations {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 80px 24px 24px;
}

.saved-configurations.is-open { display: flex; }

.saved-configurations__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, .34);
  backdrop-filter: blur(3px);
  cursor: default;
}

.saved-configurations__dialog {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  max-height: min(720px, calc(100vh - 110px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #dbe3ea;
  border-radius: 24px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 28px 72px rgba(15, 23, 42, .25);
  color: #17212b;
}

.saved-configurations__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid #e5eaf0;
}

.saved-configurations__eyebrow {
  display: block;
  margin-bottom: 3px;
  color: #637083;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.saved-configurations__header h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.15;
}

.saved-configurations__close {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border: 1px solid #dbe3ea;
  border-radius: 50%;
  background: #fff;
  color: #1f2a35;
  font-size: 25px;
  line-height: 32px;
  cursor: pointer;
}

.saved-configurations__list {
  overflow: auto;
  padding: 8px 14px 16px;
}

.saved-configurations__item {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 12px;
  border-bottom: 1px solid #edf1f5;
}

.saved-configurations__item:last-child { border-bottom: 0; }

.saved-configurations__item-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f2f5f8;
}

.saved-configurations__item-icon svg,
.saved-configurations__delete svg {
  width: 19px;
  height: 19px;
}

.saved-configurations__item-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.saved-configurations__item-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 15px;
}

.saved-configurations__item-copy span {
  color: #6b7787;
  font-size: 12px;
}

.saved-configurations__item-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.saved-configurations__open,
.saved-configurations__delete {
  border: 1px solid #d8e0e8;
  background: #fff;
  color: #1c2732;
  cursor: pointer;
}

.saved-configurations__open {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}

.saved-configurations__delete {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.saved-configurations__delete:hover {
  border-color: #ef4444;
  color: #dc2626;
}

.saved-configurations__state {
  padding: 46px 28px 52px;
  text-align: center;
  color: #677386;
}

.saved-configurations__state--error { color: #b42318; }

.shared-ui-host.is-dark-mode .saved-configurations__dialog {
  border-color: #334152;
  background: rgba(22, 29, 38, .98);
  color: #f2f5f7;
}
.shared-ui-host.is-dark-mode .saved-configurations__header,
.shared-ui-host.is-dark-mode .saved-configurations__item { border-color: #344151; }
.shared-ui-host.is-dark-mode .saved-configurations__item-icon,
.shared-ui-host.is-dark-mode .saved-configurations__close,
.shared-ui-host.is-dark-mode .saved-configurations__open,
.shared-ui-host.is-dark-mode .saved-configurations__delete {
  border-color: #3a4859;
  background: #242f3b;
  color: #f2f5f7;
}
.shared-ui-host.is-dark-mode .saved-configurations__item-copy span,
.shared-ui-host.is-dark-mode .saved-configurations__state,
.shared-ui-host.is-dark-mode .saved-configurations__eyebrow { color: #aeb8c5; }

@media (max-width: 620px) {
  .saved-configurations { padding: 70px 12px 12px; }
  .saved-configurations__dialog { width: 100%; max-height: calc(100vh - 82px); border-radius: 18px; }
  .saved-configurations__item { grid-template-columns: 38px minmax(0, 1fr); }
  .saved-configurations__item-actions { grid-column: 2; justify-content: flex-start; }
}

/* Shared top bar responsiveness for phone-sized standalone configurators. */
@media (max-width: 760px) {
  .shared-ui-host .topbar-icon-button:disabled {
    display: none;
  }

  .shared-ui-host .site-header__actions {
    min-width: 0;
    gap: 1px;
  }

  .shared-ui-host .topbar-icon-button {
    touch-action: manipulation;
  }
}

@media (max-width: 480px) {
  .shared-ui-host .site-header {
    grid-template-columns: minmax(72px, 1fr) auto;
    column-gap: 4px;
    padding: 0 6px;
  }

  .shared-ui-host .site-header__brand-cluster { gap: 5px; }
  .shared-ui-host .book-demo-button { min-width: 78px; height: 29px; padding: 0 9px; font-size: 10px; }

  .shared-ui-host .project-name-shell {
    display: none;
  }

  .shared-ui-host .brand img {
    width: auto;
    height: 29px;
    max-width: 78px;
  }

  .shared-ui-host .topbar-icon-button {
    width: 29px;
    height: 29px;
  }
}

@media (max-width: 360px) {
  .shared-ui-host .book-demo-button { display: none; }
  .shared-ui-host .site-header {
    grid-template-columns: minmax(60px, 1fr) auto;
    column-gap: 2px;
    padding: 0 4px;
  }

  .shared-ui-host .brand img {
    width: auto;
    height: 26px;
    max-width: 60px;
  }

  .shared-ui-host .topbar-icon-button {
    width: 26px;
    height: 26px;
  }

  .shared-ui-host .topbar-icon-button > svg,
  .shared-ui-host .topbar-icon-button .save-icon svg,
  .shared-ui-host .topbar-icon-button .share-icon svg,
  .shared-ui-host .topbar-icon-button .cart-icon svg {
    width: 17px;
    height: 17px;
  }
}

/* Unified language-switch loading state. The shell raises its own stacking
   context while visible so this blocks configurator-specific dialogs too. */
.shared-ui-host.is-language-switching { z-index: 6000; }
.shared-ui-host .language-switch-loading {
  position: fixed;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  color: #233a46;
  background: rgba(237, 243, 246, .72);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity .12s ease, visibility .12s ease;
}
.shared-ui-host .language-switch-loading.is-visible {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}
.shared-ui-host .language-switch-loading__card {
  width: min(330px, calc(100vw - 48px));
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 17px 20px;
  border: 1px solid rgba(32, 69, 88, .14);
  border-radius: 15px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 20px 60px rgba(30, 53, 65, .18);
}
.shared-ui-host .language-switch-loading__spinner {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border: 3px solid rgba(22, 142, 212, .20);
  border-top-color: var(--blue-700, #0878c9);
  border-radius: 50%;
  animation: shared-language-switch-spin .72s linear infinite;
}
.shared-ui-host .language-switch-loading__copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}
.shared-ui-host .language-switch-loading__copy strong {
  font-size: 13px;
  line-height: 1.3;
}
.shared-ui-host .language-switch-loading__copy span {
  color: #6c7e88;
  font-size: 10px;
  line-height: 1.4;
}
.shared-ui-host.is-dark-mode .language-switch-loading {
  color: #edf5fa;
  background: rgba(10, 18, 29, .72);
}
.shared-ui-host.is-dark-mode .language-switch-loading__card {
  background: rgba(22, 34, 51, .98);
  border-color: rgba(142, 194, 224, .20);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.shared-ui-host.is-dark-mode .language-switch-loading__copy span { color: #a9bac7; }
.shared-ui-host.is-dark-mode .language-switch-loading__spinner {
  border-color: rgba(131, 207, 255, .20);
  border-top-color: #83cfff;
}
@keyframes shared-language-switch-spin { to { transform: rotate(360deg); } }

@media (max-width: 420px) {
  .shared-ui-host .language-switch-loading { padding: 18px; }
  .shared-ui-host .language-switch-loading__card {
    width: min(330px, calc(100vw - 36px));
    min-height: 78px;
    padding: 15px 17px;
  }
}

/* Read-only presentation used by MCP Apps/ChatGPT. The normal share URL keeps
   the complete configurator; ?embed=preview removes editor chrome while leaving
   the existing WebGL canvas and orbit controls intact. */
body.configurator-embed-preview {
  --shared-topbar-height: 0px;
  overflow: hidden !important;
}
body.configurator-embed-preview .shared-ui-host,
body.configurator-embed-preview .sidebar,
body.configurator-embed-preview .configurator-sidebar,
body.configurator-embed-preview #controls,
body.configurator-embed-preview #sidebar-toggle,
body.configurator-embed-preview [id$="SidebarToggle"],
body.configurator-embed-preview .sidebar-collapse-handle,
body.configurator-embed-preview .viewer-header,
body.configurator-embed-preview .metrics-bar,
body.configurator-embed-preview .tools-toolbar,
body.configurator-embed-preview .environment-panel,
body.configurator-embed-preview [class$="environment-panel"],
body.configurator-embed-preview dialog,
body.configurator-embed-preview [data-modal-root] {
  display: none !important;
}
body.configurator-embed-preview .app-shell {
  position: fixed !important;
  inset: 0 !important;
  display: block !important;
  width: 100vw !important;
  height: 100dvh !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
body.configurator-embed-preview .configurator-layout {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}
body.configurator-embed-preview .viewer-panel,
body.configurator-embed-preview .viewer-stage,
body.configurator-embed-preview .viewport,
body.configurator-embed-preview #canvasHost,
body.configurator-embed-preview #canvas-container {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
}

/* Shared configurator settings frame + quote footer ----------------------- */
.shared-configurator-panel {
  position: relative;
  border-radius: 18px !important;
}

.shared-configurator-panel[data-shared-panel-layout="managed"] {
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  overflow: hidden !important;
}

/* Native panels can position their own collapse handle just outside the panel.
   Do not clip that handle when the common footer is attached. */
.shared-configurator-panel[data-shared-panel-layout="native"] {
  overflow: visible !important;
}

/* Common floating settings geometry. Products that opt into this geometry get
   the same 360 px panel, 20 px viewport gap and collapse-handle placement as
   the Window/Roof/Solar configurators. */
.shared-configurator-panel-host--floating-right {
  display: block !important;
}

.shared-configurator-panel-host--floating-right > .viewer-panel {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.shared-configurator-panel[data-shared-panel-geometry="floating-right"] {
  position: fixed !important;
  top: calc(var(--shared-topbar-height, 47px) + 20px) !important;
  right: 20px !important;
  bottom: 20px !important;
  left: auto !important;
  width: 360px !important;
  max-width: calc(100vw - 74px) !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 !important;
  border: 1px solid rgba(20, 31, 39, 0.1) !important;
  border-radius: 18px !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: 0 14px 38px rgba(24, 39, 47, 0.18) !important;
}

.shared-configurator-panel[data-shared-panel-geometry="floating-right"].is-collapsed {
  transform: translateX(calc(100% + 20px)) !important;
}

.shared-configurator-panel__toggle--floating-right {
  position: fixed !important;
  top: calc(var(--shared-topbar-height, 47px) + 34px) !important;
  right: 380px !important;
  left: auto !important;
  display: grid !important;
  width: 34px !important;
  height: 42px !important;
  place-items: center !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  border: 1px solid #dfe4e6 !important;
  border-right: 0 !important;
  border-radius: 10px 0 0 10px !important;
  color: #273746 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  box-shadow: -8px 0 22px rgba(24, 39, 47, 0.14) !important;
}
.shared-configurator-panel__toggle--floating-right > svg,
.shared-configurator-panel__toggle--floating-right svg {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 0 !important;
}

body.shared-ui-dark-mode .shared-configurator-panel[data-shared-panel-geometry="floating-right"] {
  color: #edf4f7;
  background: rgba(20, 31, 45, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.shared-ui-dark-mode .shared-configurator-panel__toggle--floating-right {
  color: #e7eef3 !important;
  background: rgba(20, 31, 45, 0.98) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

.shared-configurator-panel__body {
  min-width: 0;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}

.shared-configurator-panel > .shared-configurator-panel__footer {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-height: 72px;
  gap: 14px;
  padding: 11px 18px;
  color: #172027;
  background: rgba(255, 255, 255, 0.99);
  border-top: 1px solid #e6eaec;
  box-shadow: 0 -8px 24px rgba(24, 39, 47, 0.07);
}

.shared-configurator-panel__price {
  display: grid;
  min-width: 0;
  gap: 2px;
}
.shared-configurator-panel__price small {
  overflow: hidden;
  color: #778087;
  font-size: 10px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shared-configurator-panel__price strong {
  overflow: hidden;
  color: #172027;
  font-size: 20px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.shared-configurator-panel__add-button {
  min-width: 142px;
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid #0878c9;
  border-radius: 10px;
  color: #fff;
  background: #0878c9;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  transition: background 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.shared-configurator-panel__add-button:hover:not(:disabled) {
  background: #066cad;
  border-color: #066cad;
  box-shadow: 0 6px 16px rgba(8, 120, 201, 0.2);
  transform: translateY(-1px);
}
.shared-configurator-panel__add-button:active:not(:disabled) { transform: translateY(0); }
.shared-configurator-panel__add-button:disabled {
  color: #aeb5ba;
  background: #eef0f1;
  border-color: #d9dfe2;
  box-shadow: none;
  cursor: default;
  transform: none;
}
.shared-configurator-panel__add-button:focus-visible {
  outline: 3px solid rgba(8, 120, 201, 0.22);
  outline-offset: 2px;
}
.app-shell.is-dark-mode .shared-configurator-panel > .shared-configurator-panel__footer,
body.shared-ui-dark-mode .shared-configurator-panel > .shared-configurator-panel__footer {
  color: #edf4f7;
  background: rgba(23, 34, 53, 0.99);
  border-top-color: #2a3a51;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.16);
}
.app-shell.is-dark-mode .shared-configurator-panel__price small,
body.shared-ui-dark-mode .shared-configurator-panel__price small { color: #aebdca; }
.app-shell.is-dark-mode .shared-configurator-panel__price strong,
body.shared-ui-dark-mode .shared-configurator-panel__price strong { color: #edf4f7; }

@media (max-width: 760px) {
  .shared-configurator-panel[data-shared-panel-geometry="floating-right"] {
    top: calc(var(--shared-topbar-height, 47px) + 12px) !important;
    right: 12px !important;
    bottom: 12px !important;
    width: min(340px, calc(100vw - 56px)) !important;
    max-width: calc(100vw - 56px) !important;
  }

  .shared-configurator-panel[data-shared-panel-geometry="floating-right"].is-collapsed {
    transform: translateX(calc(100% + 12px)) !important;
  }

  .shared-configurator-panel__toggle--floating-right {
    top: calc(var(--shared-topbar-height, 47px) + 26px) !important;
    right: min(352px, calc(100vw - 44px)) !important;
  }
}

@media (max-width: 420px) {
  .shared-configurator-panel > .shared-configurator-panel__footer {
    min-height: 68px;
    gap: 10px;
    padding: 9px 12px;
  }
  .shared-configurator-panel__add-button {
    min-width: 126px;
    min-height: 44px;
    padding-inline: 12px;
  }
  .shared-configurator-panel__price strong { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .shared-ui-host .support-mail-svg__paper,
  .support-mail-svg__paper { transition: none; }
}

/* Account profile */
.shared-ui-host .account-menu__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}
.shared-ui-host .account-menu__avatar-initials {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  color: #15212a;
}

.shared-ui-host .profile-dialog {
  position: fixed;
  inset: 0;
  z-index: 12050;
  display: none;
  padding: 72px 20px 20px;
  align-items: flex-start;
  justify-content: center;
}
.shared-ui-host .profile-dialog.is-open { display: flex; }
.shared-ui-host .profile-dialog__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, .48);
  backdrop-filter: blur(7px);
  cursor: default;
}
.shared-ui-host .profile-dialog__panel {
  position: relative;
  width: min(980px, 100%);
  max-height: calc(100vh - 92px);
  overflow: auto;
  border: 1px solid #dfe5e9;
  border-radius: 24px;
  background: #f7f9fa;
  box-shadow: 0 28px 80px rgba(15, 23, 42, .26);
  color: #12181d;
}
.shared-ui-host .profile-dialog__header {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 26px 18px;
  border-bottom: 1px solid #e2e7ea;
  background: rgba(247, 249, 250, .96);
  backdrop-filter: blur(12px);
}
.shared-ui-host .profile-dialog__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #68747d;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.shared-ui-host .profile-dialog__header h2 {
  margin: 0;
  font-size: 25px;
  line-height: 1.15;
}
.shared-ui-host .profile-dialog__close {
  width: 38px;
  height: 38px;
  border: 1px solid #d9e0e4;
  border-radius: 50%;
  background: #fff;
  color: #27313a;
  font-size: 25px;
  line-height: 1;
  cursor: pointer;
}
.shared-ui-host .profile-dialog__loading {
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #65727c;
  font-weight: 700;
}
.shared-ui-host .profile-dialog__loading span {
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5dc;
  border-top-color: #0b84d8;
  border-radius: 50%;
  animation: profile-spin .7s linear infinite;
}
@keyframes profile-spin { to { transform: rotate(360deg); } }
.shared-ui-host .profile-dialog__error {
  margin: 18px 24px 0;
  padding: 11px 14px;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fff1f2;
  color: #b42318;
  font-size: 13px;
  font-weight: 700;
}
.shared-ui-host .profile-form {
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
}
.shared-ui-host .profile-card {
  padding: 20px;
  border: 1px solid #e0e6e9;
  border-radius: 18px;
  background: #fff;
}
.shared-ui-host .profile-card--identity { padding-top: 18px; }
.shared-ui-host .profile-card__heading { margin-bottom: 16px; }
.shared-ui-host .profile-card__heading--row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.shared-ui-host .profile-card__heading h3,
.shared-ui-host .profile-avatar-editor__copy h3 {
  margin: 0 0 4px;
  font-size: 16px;
}
.shared-ui-host .profile-card__heading p,
.shared-ui-host .profile-avatar-editor__copy p {
  margin: 0;
  color: #697680;
  font-size: 12px;
  line-height: 1.5;
}
.shared-ui-host .profile-avatar-editor {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid #edf0f2;
}
.shared-ui-host .profile-avatar-preview {
  flex: 0 0 auto;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #d7dfe4;
  border-radius: 50%;
  background: linear-gradient(145deg, #eef5f9, #fff);
  color: #0f6da9;
  font-size: 22px;
  font-weight: 850;
  letter-spacing: .03em;
}
.shared-ui-host .profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.shared-ui-host .profile-avatar-editor__copy { min-width: 0; }
.shared-ui-host .profile-avatar-editor__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.shared-ui-host .profile-avatar-editor__actions button,
.shared-ui-host .profile-secondary-button,
.shared-ui-host .profile-danger-button,
.shared-ui-host .profile-primary-button,
.shared-ui-host .profile-delete-confirm__actions > button {
  min-height: 36px;
  padding: 8px 13px;
  border: 1px solid #d5dde2;
  border-radius: 10px;
  background: #fff;
  color: #17212a;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}
.shared-ui-host .profile-avatar-editor__actions button:hover,
.shared-ui-host .profile-secondary-button:hover { background: #f3f6f8; }
.shared-ui-host .profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px 16px;
}
.shared-ui-host .profile-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.shared-ui-host .profile-field {
  display: grid;
  gap: 7px;
  min-width: 0;
}
.shared-ui-host .profile-field > span {
  color: #29343c;
  font-size: 12px;
  font-weight: 780;
}
.shared-ui-host .profile-field em {
  color: #087ac5;
  font-style: normal;
}
.shared-ui-host .profile-field input,
.shared-ui-host .profile-field select {
  width: 100%;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #d9e0e4;
  border-radius: 11px;
  outline: 0;
  background: #fff;
  color: #17212a;
  font: inherit;
  font-size: 13px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.shared-ui-host .profile-field input:focus,
.shared-ui-host .profile-field select:focus {
  border-color: #1889d3;
  box-shadow: 0 0 0 3px rgba(24, 137, 211, .12);
}
.shared-ui-host .profile-field input.is-invalid {
  border-color: #d92d20;
  box-shadow: 0 0 0 3px rgba(217, 45, 32, .1);
}
.shared-ui-host .profile-field input[readonly] {
  background: #f4f6f7;
  color: #66727b;
}
.shared-ui-host .profile-field small {
  margin-top: -2px;
  color: #84909a;
  font-size: 10px;
  line-height: 1.4;
}
.shared-ui-host .profile-history-count {
  min-width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #e8f5fd;
  color: #0974bb;
  font-size: 11px;
  font-weight: 850;
}
.shared-ui-host .profile-quotation-list {
  overflow: hidden;
  border: 1px solid #e4e9ec;
  border-radius: 12px;
}
.shared-ui-host .profile-quotation-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border-bottom: 1px solid #edf0f2;
}
.shared-ui-host .profile-quotation-row:last-child { border-bottom: 0; }
.shared-ui-host .profile-quotation-row__main,
.shared-ui-host .profile-quotation-row__meta { display: flex; align-items: center; gap: 10px; }
.shared-ui-host .profile-quotation-row__main strong { font-size: 13px; }
.shared-ui-host .profile-quotation-row__main span,
.shared-ui-host .profile-quotation-row__meta > span:first-child { color: #76828b; font-size: 11px; }
.shared-ui-host .profile-status {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef2f4;
  color: #53606a;
  font-size: 10px;
  font-weight: 800;
  text-transform: capitalize;
}
.shared-ui-host .profile-status--sent { background: #e9f8ef; color: #187541; }
.shared-ui-host .profile-status--sending { background: #fff7df; color: #8a6200; }
.shared-ui-host .profile-status--failed,
.shared-ui-host .profile-status--email_failed { background: #fff0ef; color: #b42318; }
.shared-ui-host .profile-empty-state {
  margin: 0;
  padding: 18px;
  border: 1px dashed #d9e0e4;
  border-radius: 12px;
  color: #78858e;
  font-size: 12px;
  text-align: center;
}
.shared-ui-host .profile-provider-list { display: grid; gap: 9px; }
.shared-ui-host .profile-provider {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border: 1px solid #e3e8eb;
  border-radius: 12px;
  background: #fbfcfd;
}
.shared-ui-host .profile-provider__mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #dce3e7;
  color: #1c6fa4;
  font-weight: 850;
}
.shared-ui-host .profile-provider > div { display: grid; gap: 2px; }
.shared-ui-host .profile-provider strong { font-size: 12px; }
.shared-ui-host .profile-provider > div span { color: #77838d; font-size: 11px; }
.shared-ui-host .profile-provider__connected { color: #24784a; font-size: 10px; font-weight: 800; }
.shared-ui-host .profile-privacy-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.shared-ui-host .profile-danger-button {
  border-color: #efb7b3;
  background: #fff7f6;
  color: #b42318;
}
.shared-ui-host .profile-danger-button:hover { background: #fff0ee; }
.shared-ui-host .profile-primary-button {
  border-color: #0b80ca;
  background: #0b80ca;
  color: #fff;
}
.shared-ui-host .profile-primary-button:hover { background: #086eaf; }
.shared-ui-host .profile-primary-button:disabled,
.shared-ui-host .profile-secondary-button:disabled,
.shared-ui-host .profile-danger-button:disabled { opacity: .55; cursor: wait; }
.shared-ui-host .profile-delete-confirm {
  display: grid;
  gap: 12px;
  margin-top: 15px;
  padding: 15px;
  border: 1px solid #f0b7b3;
  border-radius: 13px;
  background: #fff8f7;
}
.shared-ui-host .profile-delete-confirm > strong { color: #9f251d; font-size: 13px; }
.shared-ui-host .profile-delete-confirm > p { margin: 0; color: #754843; font-size: 11px; line-height: 1.5; }
.shared-ui-host .profile-delete-confirm__actions { display: flex; justify-content: flex-end; gap: 8px; }
.shared-ui-host .profile-dialog__footer {
  position: sticky;
  bottom: -24px;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin: 0 -24px -24px;
  padding: 15px 24px;
  border-top: 1px solid #e1e6e9;
  background: rgba(247, 249, 250, .96);
  backdrop-filter: blur(12px);
}

.shared-ui-host.is-dark-mode .profile-dialog__panel,
.shared-ui-host.is-dark-mode .profile-dialog__header,
.shared-ui-host.is-dark-mode .profile-dialog__footer { background: rgba(20, 27, 35, .97); color: #edf2f6; border-color: #34414b; }
.shared-ui-host.is-dark-mode .profile-card { background: #18222c; border-color: #33414c; }
.shared-ui-host.is-dark-mode .profile-avatar-editor { border-color: #303e49; }
.shared-ui-host.is-dark-mode .profile-card__heading p,
.shared-ui-host.is-dark-mode .profile-avatar-editor__copy p,
.shared-ui-host.is-dark-mode .profile-field small,
.shared-ui-host.is-dark-mode .profile-quotation-row__main span,
.shared-ui-host.is-dark-mode .profile-quotation-row__meta > span:first-child { color: #a6b0b9; }
.shared-ui-host.is-dark-mode .profile-field > span { color: #dce5eb; }
.shared-ui-host.is-dark-mode .profile-field input,
.shared-ui-host.is-dark-mode .profile-field select,
.shared-ui-host.is-dark-mode .profile-dialog__close,
.shared-ui-host.is-dark-mode .profile-secondary-button,
.shared-ui-host.is-dark-mode .profile-avatar-editor__actions button { background: #111a22; border-color: #3b4853; color: #ecf2f6; }
.shared-ui-host.is-dark-mode .profile-field input[readonly] { background: #202a33; color: #aab5bd; }
.shared-ui-host.is-dark-mode .profile-quotation-list,
.shared-ui-host.is-dark-mode .profile-quotation-row,
.shared-ui-host.is-dark-mode .profile-provider { border-color: #34424d; }
.shared-ui-host.is-dark-mode .profile-provider { background: #141e27; }
.shared-ui-host.is-dark-mode .profile-empty-state { border-color: #41505c; color: #a5b0b8; }

@media (max-width: 760px) {
  .shared-ui-host .profile-dialog { padding: 58px 8px 8px; }
  .shared-ui-host .profile-dialog__panel { max-height: calc(100vh - 66px); border-radius: 18px; }
  .shared-ui-host .profile-dialog__header { padding: 17px 16px 14px; }
  .shared-ui-host .profile-form { padding: 14px; gap: 12px; }
  .shared-ui-host .profile-card { padding: 15px; border-radius: 14px; }
  .shared-ui-host .profile-grid,
  .shared-ui-host .profile-grid--three { grid-template-columns: 1fr; }
  .shared-ui-host .profile-avatar-editor { align-items: flex-start; }
  .shared-ui-host .profile-avatar-preview { width: 64px; height: 64px; }
  .shared-ui-host .profile-quotation-row { align-items: flex-start; flex-direction: column; gap: 7px; }
  .shared-ui-host .profile-quotation-row__meta { width: 100%; justify-content: space-between; }
  .shared-ui-host .profile-provider { grid-template-columns: 34px minmax(0, 1fr); }
  .shared-ui-host .profile-provider__connected { grid-column: 2; justify-self: start; }
  .shared-ui-host .profile-dialog__footer { margin: 0 -14px -14px; padding: 12px 14px; }
}

/* Phone layout: keep the primary navigation clear by taking Book a demo out
   of the top-bar brand cluster and exposing it as a floating CTA instead. */
@media (max-width: 760px) {
  .shared-ui-host .book-demo-button {
    position: fixed;
    left: calc(12px + env(safe-area-inset-left, 0px));
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    z-index: 35;
    display: inline-flex;
    min-width: 108px;
    height: 40px;
    padding: 0 15px;
    border-radius: 11px;
    font-size: 11px;
    box-shadow: 0 8px 22px rgba(8,120,201,.26);
  }
}
