:root {
  color-scheme: light;

  /* Theme primitives: light palette */
  --bmg-lm-ink: #071b39;
  --bmg-lm-ink-soft: #25354a;
  --bmg-lm-muted: #657184;
  --bmg-lm-subtle: #9aa5b1;
  --bmg-lm-line: #dfe5ec;
  --bmg-lm-line-strong: #cfd8e3;
  --bmg-lm-paper: #ffffff;
  --bmg-lm-panel: #ffffff;
  --bmg-lm-panel-soft: #f5f8fb;
  --bmg-lm-fill-soft: #e8ecf1;
  --bmg-lm-navy: #06224a;
  --bmg-lm-primary: #2f8a5f;
  --bmg-lm-primary-strong: #1f704a;
  --bmg-lm-accent: #f6a617;
  --bmg-lm-accent-strong: #d78600;
  --bmg-lm-danger: #a53a2f;
  --bmg-lm-shadow: 0 18px 44px rgba(19, 37, 64, 0.1);
  --bmg-lm-soft-shadow: 0 8px 24px rgba(19, 37, 64, 0.08);
  --bmg-lm-icon-filter: brightness(0) saturate(100%) invert(13%) sepia(14%) saturate(802%) hue-rotate(175deg) brightness(93%) contrast(90%);
  --bmg-lm-icon-filter-soft: brightness(0) saturate(100%) invert(38%) sepia(8%) saturate(646%) hue-rotate(177deg) brightness(92%) contrast(89%);

  /* Theme primitives: dark palette */
  --bmg-dm-ink: #f3f4f4;
  --bmg-dm-ink-soft: #d7dbdc;
  --bmg-dm-muted: #9da4a6;
  --bmg-dm-subtle: #7f8789;
  --bmg-dm-line: #2d3234;
  --bmg-dm-line-strong: #3a4042;
  --bmg-dm-paper: #181818;
  --bmg-dm-panel: #1d2122;
  --bmg-dm-panel-soft: #232728;
  --bmg-dm-fill-soft: #2a3032;
  --bmg-dm-navy: #d7dbdc;
  --bmg-dm-primary: #3f8f68;
  --bmg-dm-primary-strong: #2f7151;
  --bmg-dm-accent: #cda766;
  --bmg-dm-accent-strong: #b28a4b;
  --bmg-dm-danger: #cf847d;
  --bmg-dm-shadow: 0 24px 56px rgba(0, 0, 0, 0.4);
  --bmg-dm-soft-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  --bmg-dm-icon-filter: brightness(0) saturate(100%) invert(95%) sepia(6%) saturate(73%) hue-rotate(154deg) brightness(96%) contrast(90%);
  --bmg-dm-icon-filter-soft: brightness(0) saturate(100%) invert(84%) sepia(7%) saturate(176%) hue-rotate(167deg) brightness(92%) contrast(88%);

  /* Semantic colours: canonical tokens */
  --bmg-ink: var(--bmg-lm-ink);
  --bmg-ink-soft: var(--bmg-lm-ink-soft);
  --bmg-muted: var(--bmg-lm-muted);
  --bmg-subtle: var(--bmg-lm-subtle);
  --bmg-line: var(--bmg-lm-line);
  --bmg-line-strong: var(--bmg-lm-line-strong);
  --bmg-paper: var(--bmg-lm-paper);
  --bmg-panel: var(--bmg-lm-panel);
  --bmg-panel-soft: var(--bmg-lm-panel-soft);
  --bmg-fill-soft: var(--bmg-lm-fill-soft);
  --bmg-navy: var(--bmg-lm-navy);
  --bmg-primary: var(--bmg-lm-primary);
  --bmg-primary-strong: var(--bmg-lm-primary-strong);
  --bmg-accent: var(--bmg-lm-accent);
  --bmg-accent-strong: var(--bmg-lm-accent-strong);
  --bmg-danger: var(--bmg-lm-danger);
  --bmg-shadow: 0 24px 60px rgba(6, 20, 38, 0.14);
  --bmg-soft-shadow: var(--bmg-lm-soft-shadow);
  --bmg-text: var(--bmg-ink);
  --bmg-border: var(--bmg-line);
  --bmg-surface: var(--bmg-panel);
  --bmg-surface-soft: var(--bmg-panel-soft);
  --bmg-icon-filter: var(--bmg-lm-icon-filter);
  --bmg-icon-filter-soft: var(--bmg-lm-icon-filter-soft);

  /* Semantic colours: legacy compatibility aliases */
  --bmg-green: var(--bmg-primary);
  --bmg-green-dark: var(--bmg-primary-strong);
  --bmg-primary-dark: var(--bmg-primary-strong);
  --bmg-orange: var(--bmg-accent);

  /* Typography: canonical scale */
  --bmg-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bmg-type-scale-factor: 1;
  --bmg-type-caption: calc(0.75rem * var(--bmg-type-scale-factor));
  --bmg-type-body: calc(0.8125rem * var(--bmg-type-scale-factor));
  --bmg-type-title: calc(0.9375rem * var(--bmg-type-scale-factor));
  --bmg-type-display: calc(1.5rem * var(--bmg-type-scale-factor));

  /* Typography: live compatibility aliases */
  --bmg-font-size-xs: var(--bmg-type-caption);
  --bmg-font-size-sm: var(--bmg-type-caption);
  --bmg-font-size-sm-alt: var(--bmg-type-body);
  --bmg-font-size-base: var(--bmg-type-body);
  --bmg-font-size-md: var(--bmg-type-title);
  --bmg-font-size-md-plus: var(--bmg-type-body);
  --bmg-font-size-lg: var(--bmg-type-body);
  --bmg-font-size-lg-alt: var(--bmg-type-title);
  --bmg-font-size-lg2: var(--bmg-type-title);
  --bmg-font-size-xl: var(--bmg-type-title);
  --bmg-font-size-xl-alt: var(--bmg-type-title);
  --bmg-font-size-2xl: var(--bmg-type-display);
  --bmg-font-size-title: var(--bmg-type-title);
  --bmg-font-size-title-large: var(--bmg-type-title);
  --bmg-font-size-hero: var(--bmg-type-display);
  --bmg-font-size-kpi: var(--bmg-type-display);
  --bmg-font-size-data-table: var(--bmg-type-body);
  --bmg-font-size-data-table-head: var(--bmg-type-caption);
  --bmg-hero-title-size: clamp(3.4rem, 6vw, 5.7rem);
  --bmg-hero-title-size-mobile: 3.25rem;
  --bmg-hero-title-size-mobile-tight: 2.8rem;
  --bmg-hero-copy-size: 1.36rem;
  --bmg-hero-copy-size-mobile: 1.15rem;
  --bmg-feature-list-size: 1.12rem;
  --bmg-trust-title-size: 1.1rem;
  --bmg-form-title-size: var(--bmg-type-display);

  /* Typography: weights */
  --bmg-font-weight-regular: 600;
  --bmg-font-weight-strong: 700;
  --bmg-font-weight-bold: var(--bmg-font-weight-strong);
  --bmg-font-weight-heavy: 800;
  --bmg-font-weight-extra: 900;
  --bmg-hero-copy-font-weight: 650;
  --bmg-feature-list-weight: 750;
  --bmg-micro-trust-font-weight: 650;
  --bmg-trust-body-font-weight: 550;

  /* Spacing */
  --bmg-space-1: 4px;
  --bmg-space-2: 8px;
  --bmg-space-3: 10px;
  --bmg-space-4: 12px;
  --bmg-space-5: 14px;
  --bmg-space-6: 16px;
  --bmg-space-7: 18px;
  --bmg-space-8: 24px;
  --bmg-space-9: 28px;

  /* Radius: canonical scale */
  --bmg-radius-xs: 4px;
  --bmg-radius-sm: 8px;
  --bmg-radius-md: 12px;
  --bmg-radius-lg: 18px;
  --bmg-radius-shell: 28px;
  --bmg-radius-pill: 999px;

  /* Radius: live compatibility aliases */
  --bmg-radius-card: var(--bmg-radius-sm);
  --bmg-radius-control: var(--bmg-radius-sm);
  --bmg-radius: var(--bmg-radius-md);

  /* Sizing */
  --bmg-icon-stroke: 2.2;
  --bmg-feature-icon-size: 31px;
  --bmg-feature-icon-glyph-size: 18px;
  --bmg-trust-icon-size: 52px;
  --bmg-micro-icon-size: 30px;
  --bmg-provider-artwork-size: 24px;
  --bmg-control-height-xs: 32px;
  --bmg-control-height-sm: 40px;
  --bmg-control-height-md: 44px;
  --bmg-control-height-lg: 52px;
  --bmg-control-height-xl: 56px;
  --bmg-sidebar-row-height: 36px;
  --bmg-sidebar-width: 290px;
  --bmg-shell-sidebar-width: var(--bmg-sidebar-width);
  --bmg-brand-logo-width: 266px;
  --bmg-header-row-height: 71px;
  --bmg-header-row-height-compact: 72px;
  --bmg-header-brand-region-width: 289px;
  --bmg-header-divider-height: 34px;
  --bmg-header-divider-height-compact: 28px;
  --bmg-hero-min-height: clamp(640px, 64vw, 760px);
  --bmg-hero-min-height-mobile: 760px;
  --bmg-hero-min-height-mobile-tight: 820px;
  --bmg-hero-content-width: min(500px, 42%);
  --bmg-hero-content-width-tablet: min(520px, 52%);
  --bmg-trust-item-min-height: 136px;
  --bmg-cta-min-width: 238px;
  --bmg-form-card-max-width: calc(var(--bmg-form-wrap-max-width) + (var(--bmg-space-9) * 4) + (var(--bmg-space-1) * 2));
  --bmg-form-card-min-height: 640px;
  --bmg-form-wrap-max-width: 440px;
  --bmg-provider-row-max-width: 300px;
  --bmg-stage-max-width: 1900px;
  --bmg-stepper-topbar-max-width: 900px;
  --bmg-status-ribbon-min-width: 174px;
  --bmg-sidebar-brand-height: var(--bmg-header-row-height);
  --bmg-shell-subheader-height: 60px;

  /* Borders and opacity */
  --bmg-border-width-thin: 1px;
  --bmg-stepper-line-size: 7px;
  --bmg-focus-ring: 0 0 0 3px rgba(47, 138, 95, 0.18);
  --bmg-header-divider-opacity: 85%;
  --bmg-header-border-opacity: 82%;
  --bmg-header-surface-opacity: 96%;
  --bmg-header-highlight-opacity: 92%;
  --bmg-header-hover-opacity: 98%;
  --bmg-action-link-secondary-border-opacity: 88%;
  --bmg-action-link-secondary-border-hover-opacity: 100%;
  --bmg-action-link-secondary-surface-opacity: 96%;
  --bmg-action-link-secondary-hover-opacity: 86%;
  --bmg-form-shell-border-opacity: 18%;
  --bmg-stage-border-opacity: 8%;
  --bmg-stage-surface-opacity: 100%;
  --bmg-toolbar-surface-opacity: 96%;
  --bmg-toolbar-border-opacity: 6%;

  /* Line heights */
  --bmg-line-height-tight: 1;
  --bmg-line-height-narrow: 1.05;
  --bmg-line-height-default: 1.1;
  --bmg-line-height-body: 1.2;
  --bmg-line-height-readable: 1.35;
  --bmg-action-link-line-height: 1;
  --bmg-hero-copy-line-height: 1.45;
  --bmg-trust-title-line-height: 1.2;
  --bmg-trust-body-line-height: 1.3;

  /* Layout */
  --bmg-header-brand-padding-x: 18px;
  --bmg-header-container-padding-right: 34px;
  --bmg-header-container-padding-right-compact: 24px;
  --bmg-header-container-padding-left-mobile: 12px;
  --bmg-header-container-padding-top-compact: 14px;
  --bmg-header-container-padding-bottom-compact: 14px;
  --bmg-header-container-padding-right-mobile: 16px;
  --bmg-header-container-padding-top-mobile: 14px;
  --bmg-header-container-padding-bottom-mobile: 16px;
  --bmg-header-nav-gap: 2px;
  --bmg-header-nav-padding-x: 9px;
  --bmg-header-action-gap: var(--bmg-space-2);
  --bmg-header-action-group-margin-left: var(--bmg-space-2);
  --bmg-header-action-padding-x-mobile: 14px;
  --bmg-header-brand-logo-scale-compact: 0.86;
  --bmg-action-link-padding-x: 11px;
  --bmg-hero-content-padding-y: 42px;
  --bmg-hero-content-padding-left: 94px;
  --bmg-hero-content-padding-left-tablet: 56px;
  --bmg-hero-content-padding-mobile: 38px 24px;
  --bmg-hero-copy-margin-bottom: 34px;
  --bmg-feature-list-margin-bottom: 38px;
  --bmg-micro-trust-margin-top: 34px;
  --bmg-trust-item-padding: 30px 46px;
  --bmg-trust-item-padding-mobile: 26px 28px;
  --bmg-page-padding: 28px;
  --bmg-divider-margin: 18px 0;
  --bmg-app-shell-gap: 20px;
  --bmg-app-shell-padding: 0 12px 0 0;
  --bmg-sidebar-brand-padding-x: var(--bmg-header-brand-padding-x);
  --bmg-sidebar-brand-margin-bottom: var(--bmg-space-5);
  --bmg-sidebar-padding: 0 6px 0 0;

  /* Geometry aliases used by admin and configurator */
  --bmg-geometry-gap-stack: var(--bmg-space-6);
  --bmg-geometry-gap-panel: var(--bmg-space-4);
  --bmg-geometry-gap-control: var(--bmg-space-2);
  --bmg-geometry-padding-panel: var(--bmg-space-6);
  --bmg-geometry-padding-inline: var(--bmg-space-5);
  --bmg-geometry-padding-inline-tight: var(--bmg-space-3);
  --bmg-geometry-radius-surface: var(--bmg-radius-card);
  --bmg-geometry-radius-control: var(--bmg-radius-control);
  --bmg-geometry-radius-pill: var(--bmg-radius-pill);
  --bmg-geometry-height-button: var(--bmg-control-height-md);
  --bmg-geometry-height-compact: var(--bmg-control-height-xs);
  --bmg-icon-stepcard-size: 92px;

  /* Controls */
  --bmg-header-nav-font-size: 0.84rem;
  --bmg-header-nav-font-size-mobile: 0.92rem;
  --bmg-action-link-font-size: 0.84rem;
  --bmg-action-link-font-weight: 500;
  --bmg-action-link-primary-ink: var(--bmg-panel);
  --bmg-action-link-primary-bg: var(--bmg-primary-strong);
  --bmg-action-link-primary-bg-hover: var(--bmg-primary);
  --bmg-input-border: var(--bmg-line);
  --bmg-input-placeholder: var(--bmg-muted);
  --bmg-provider-text: var(--bmg-text);
  --bmg-provider-bg: var(--bmg-panel);
  --bmg-provider-bg-hover: var(--bmg-panel-soft);
  --bmg-provider-border: var(--bmg-border);
  --bmg-provider-border-hover: var(--bmg-line-strong);
  --bmg-metric-accent: var(--bmg-ink);
  --bmg-lead-board-accent: var(--bmg-primary);

  /* Effects */
  --bmg-form-shell-shadow: 0 26px 72px rgba(7, 27, 57, 0.14);
  --bmg-provider-shadow: 0 3px 10px rgba(13, 27, 70, 0.04);
  --bmg-primary-action-shadow: none;
  --bmg-cta-shadow: 0 10px 24px rgba(5, 139, 79, 0.18);
  --bmg-stage-shadow: var(--bmg-shadow);
  --bmg-sidebar-surface-start: var(--bmg-panel-soft);
  --bmg-sidebar-surface-end: var(--bmg-paper);

  /* Motion */
  --bmg-duration-fast: 160ms;
}

html[data-theme-resolved="dark"] {
  color-scheme: dark;
  --bmg-ink: var(--bmg-dm-ink);
  --bmg-ink-soft: var(--bmg-dm-ink-soft);
  --bmg-muted: var(--bmg-dm-muted);
  --bmg-subtle: var(--bmg-dm-subtle);
  --bmg-line: var(--bmg-dm-line);
  --bmg-line-strong: var(--bmg-dm-line-strong);
  --bmg-paper: var(--bmg-dm-paper);
  --bmg-panel: var(--bmg-dm-panel);
  --bmg-panel-soft: var(--bmg-dm-panel-soft);
  --bmg-fill-soft: var(--bmg-dm-fill-soft);
  --bmg-navy: var(--bmg-dm-navy);
  --bmg-primary: var(--bmg-dm-primary);
  --bmg-primary-strong: var(--bmg-dm-primary-strong);
  --bmg-green: var(--bmg-primary);
  --bmg-green-dark: var(--bmg-primary-strong);
  --bmg-primary-dark: var(--bmg-primary-strong);
  --bmg-accent: var(--bmg-dm-accent);
  --bmg-accent-strong: var(--bmg-dm-accent-strong);
  --bmg-danger: var(--bmg-dm-danger);
  --bmg-shadow: var(--bmg-dm-shadow);
  --bmg-soft-shadow: var(--bmg-dm-soft-shadow);
  --bmg-text: var(--bmg-ink);
  --bmg-border: var(--bmg-line);
  --bmg-surface: rgba(29, 33, 34, 0.94);
  --bmg-surface-soft: var(--bmg-panel-soft);
  --bmg-fill-soft: var(--bmg-dm-fill-soft);
  --bmg-icon-filter: var(--bmg-dm-icon-filter);
  --bmg-icon-filter-soft: var(--bmg-dm-icon-filter-soft);
  --bmg-form-shell-border-opacity: 38%;
  --bmg-form-shell-shadow: 0 34px 78px rgba(0, 0, 0, 0.38);
  --bmg-input-border: var(--bmg-line-strong);
  --bmg-provider-shadow: 0 3px 10px rgba(0, 0, 0, 0.22);
  --bmg-primary-action-shadow: none;
  --bmg-stage-border-opacity: 24%;
  --bmg-toolbar-surface-opacity: 92%;
  --bmg-toolbar-border-opacity: 18%;
  --bmg-sidebar-surface-start: var(--bmg-panel);
  --bmg-sidebar-surface-end: var(--bmg-paper);
}


.admin-center-page[data-admin-font-scale="compact"] {
  --bmg-type-scale-factor: 0.92;
}

.admin-center-page[data-admin-font-scale="balanced"] {
  --bmg-type-scale-factor: 1;
}

.admin-center-page[data-admin-font-scale="large"] {
  --bmg-type-scale-factor: 1.08;
}

.admin-center-page.admin-font-scale-compact {
  --bmg-type-scale-factor: 0.92;
}

.admin-center-page.admin-font-scale-balanced {
  --bmg-type-scale-factor: 1;
}

.admin-center-page.admin-font-scale-large {
  --bmg-type-scale-factor: 1.08;
}

.admin-center-page {
  min-height: 100vh;
  background: var(--bmg-paper);
  padding: 0;
  color-scheme: light;
}

.admin-center-page[data-admin-theme-resolved="dark"] {
  color-scheme: dark;
}

.admin-shell-frame {
  width: 100%;
  max-width: none;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  font-size: var(--bmg-type-body);
  border-left: 1px solid var(--bmg-line);
  border-right: 1px solid var(--bmg-line);
  background: var(--bmg-panel);
  box-shadow: none;
}

.admin-shell-topbar {
  box-sizing: border-box;
  display: grid;
  gap: var(--bmg-space-5);
  width: 100%;
  padding: 0 !important;
  border-bottom: 1px solid var(--bmg-line);
  background: color-mix(in srgb, var(--bmg-panel) 96%, transparent);
  backdrop-filter: blur(12px);
}

.admin-shell-topbarPrimaryRow {
  width: 100%;
  height: 71px;
  min-height: 71px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--bmg-space-8);
  align-items: center;
  padding: 0 34px;
  box-sizing: border-box;
}

.admin-shell-topbar-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bmg-space-4);
  width: 100%;
  justify-self: stretch;
  margin-left: auto;
  margin-right: 0 !important;
  padding-right: 0;
  text-align: right;
}

.admin-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 0;
  color: var(--bmg-ink);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  margin-right: var(--bmg-space-6);
  padding-right: var(--bmg-space-6);
}

.admin-brand-mark::after {
  position: absolute;
  top: 50%;
  right: 0;
  width: 1px;
  height: 34px;
  background: color-mix(in srgb, var(--bmg-line-strong) 85%, transparent);
  content: "";
  transform: translateY(-50%);
}

.admin-brand-icon {
  height: 32px;
  width: auto;
  object-fit: contain;
  display: block;
}

.admin-shell-routebar {
  display: inline-flex;
  flex: 0 1 auto;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: var(--bmg-space-1);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: auto hidden;
  min-height: var(--bmg-control-height-xs);
  height: var(--bmg-control-height-xs);
  white-space: nowrap;
}

.admin-shell-topbarMeta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--bmg-space-2);
  margin-left: auto;
  flex: 0 0 auto;
}

.admin-shell-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--bmg-control-height-xs);
  gap: var(--bmg-space-2);
  min-width: 0;
  border: 1px solid transparent;
  border-radius: var(--bmg-radius-sm);
  padding: 0 11px;
  appearance: none;
  cursor: pointer;
  color: var(--bmg-ink);
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.admin-shell-routeIndex {
  display: none;
}

.admin-shell-routeLabel {
  min-width: 0;
  color: currentColor;
  font-size: inherit;
  line-height: 1;
}

.admin-shell-route:hover {
  color: var(--bmg-ink);
  background: color-mix(in srgb, var(--bmg-panel-soft) 98%, transparent);
}

.admin-shell-route.is-active {
  background: color-mix(in srgb, var(--bmg-panel-soft) 92%, transparent);
  color: var(--bmg-ink);
  box-shadow: none;
}

.admin-shell-routebar + .admin-shell-status {
  margin: 0;
}

.admin-shell-frame--dashboard .admin-brand-mark {
  display: none;
}

.admin-shell-frame--dashboard .admin-shell-topbarPrimaryRow {
  grid-template-columns: 1fr;
}

.admin-shell-topbarWorkspace {
  display: grid;
  width: 100%;
  padding: 0 34px 12px;
  box-sizing: border-box;
}

.admin-shell-status {
  min-width: 200px;
}

.admin-shell-notificationLink,
.admin-shell-helpLink,
.admin-shell-chatToggle,
.admin-shell-themeToggle,
.admin-shell-topbarActionLink {
  align-self: center;
}

.admin-shell-notificationLink,
.admin-shell-helpLink {
  text-decoration: none;
}

.admin-shell-topbarActionIcon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  filter: var(--bmg-icon-filter);
}

.admin-shell-chatToggle .admin-shell-topbarActionIcon {
  width: 21.6px;
  height: 21.6px;
}

.admin-shell-themeToggle .admin-shell-topbarActionIcon {
  width: 22px;
  height: 22px;
}

.admin-shell-notificationLink .admin-shell-topbarActionIcon {
  width: 24px;
  height: 24px;
}

.admin-shell-statusLabel {
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-xs);
  line-height: 1.05;
  font-weight: var(--bmg-font-weight-heavy);
}

.admin-shell-accountLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--bmg-radius-pill);
  text-decoration: none;
  flex-shrink: 0;
}

.admin-shell-accountPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--bmg-line-strong) 88%, transparent);
  border-radius: var(--bmg-radius-sm);
  background: color-mix(in srgb, var(--bmg-panel) 96%, transparent);
  min-height: var(--bmg-control-height-xs);
  padding: 4px 13px 4px 10px;
  text-decoration: none;
  flex-shrink: 0;
  color: inherit;
  box-shadow: none;
}

.admin-shell-accountIcon {
  width: 42px;
  height: 42px;
  transform: translateX(-3px);
  transform-origin: center;
  object-fit: contain;
  display: block;
  filter: var(--bmg-icon-filter);
}

.admin-shell-accountText {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.admin-shell-accountLabel {
  color: var(--bmg-muted);
  font-size: var(--bmg-type-caption);
  line-height: 1.05;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-shell-accountName {
  color: var(--bmg-ink);
  font-size: var(--bmg-type-body);
  line-height: 1.05;
  font-weight: 900;
  white-space: nowrap;
}

.admin-shell-content {
  display: grid;
  gap: 0;
  padding: 0 var(--bmg-space-7) var(--bmg-space-9);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--bmg-primary) 8%, transparent), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--bmg-paper) 74%, var(--bmg-panel) 26%) 0%, color-mix(in srgb, var(--bmg-paper) 88%, var(--bmg-panel-soft) 12%) 100%);
}

.admin-shell-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--bmg-space-7);
  padding: 20px 0 18px;
  border-bottom: 1px solid var(--bmg-line);
}

.admin-shell-heading {
  display: grid;
  gap: var(--bmg-space-1);
}

.admin-shell-kicker {
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-sm);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.admin-shell-heading h1 {
  margin: 0;
  color: var(--bmg-ink);
  font-size: var(--bmg-font-size-hero);
  font-weight: var(--bmg-font-weight-extra);
  line-height: 1;
}

.admin-shell-heading p {
  margin: 0;
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-lg-alt);
  font-weight: 700;
}

.admin-shell-heroMeta {
  display: grid;
  justify-items: end;
  gap: 6px;
}

.admin-shell-heroMeta small {
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-sm);
  font-weight: 700;
}

.admin-shell-notice {
  margin: 18px 0 0;
  border: 1px solid color-mix(in srgb, var(--bmg-accent-strong) 30%, transparent);
  border-radius: var(--bmg-radius-xs);
  background: color-mix(in srgb, var(--bmg-accent) 12%, var(--bmg-panel));
  color: color-mix(in srgb, var(--bmg-accent-strong) 78%, var(--bmg-ink));
  padding: var(--bmg-space-4) var(--bmg-space-5);
  font-size: var(--bmg-font-size-md-plus);
  font-weight: 800;
}

.admin-shell-placeholderText {
  margin: 0;
  color: var(--bmg-muted);
  font-size: var(--bmg-type-body);
  font-weight: 780;
}

.admin-shell-body {
  padding: 24px 0 0;
  background: transparent;
}

.admin-shell-frame--dashboard .admin-shell-hero {
  display: none;
}

.admin-shell-frame--dashboard {
  width: 100%;
  max-width: none;
  margin: 0;
  --bmg-shell-subheader-height: 60px;
  --bmg-shell-sidebar-width: var(--bmg-sidebar-width);
  border-left: 0;
  border-right: 0;
}

.admin-shell-frame--dashboard .admin-shell-content {
  padding: 0;
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--bmg-primary) 8%, transparent), transparent 26%),
    linear-gradient(180deg, color-mix(in srgb, var(--bmg-paper) 74%, var(--bmg-panel) 26%) 0%, color-mix(in srgb, var(--bmg-paper) 90%, var(--bmg-panel-soft) 10%) 100%);
}

.admin-shell-frame--dashboard .admin-shell-body {
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}

.admin-shell-frame--dashboard .admin-shell-topbar {
  display: grid;
  gap: var(--bmg-space-4);
  width: calc(100% - var(--bmg-shell-sidebar-width));
  margin-left: var(--bmg-shell-sidebar-width);
  min-height: auto;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  padding-left: 0;
  padding-right: 0 !important;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 4;
  margin-top: 0;
  background: color-mix(in srgb, var(--bmg-panel) 97%, transparent);
}

.admin-shell-frame--dashboard .admin-dashboard-layout {
  margin-top: 0;
  min-height: 100vh;
  margin-left: 0;
}

.admin-shell-frame--dashboard .admin-dashboard-workspace {
  padding-top: 0;
}

.admin-detail-panel {
  display: grid;
  gap: var(--bmg-space-6);
}

.admin-detail-panelHeader {
  display: grid;
  gap: var(--bmg-space-2);
  padding-bottom: var(--bmg-space-5);
  border-bottom: 1px solid var(--bmg-line);
}

.admin-detail-panelEyebrow {
  color: var(--bmg-primary);
  font-size: var(--bmg-font-size-sm);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-detail-panelTitle {
  margin: 0;
  color: var(--bmg-ink);
  font-size: var(--bmg-font-size-2xl);
  line-height: 1.05;
}

.admin-detail-panelBody {
  display: grid;
  gap: var(--bmg-space-6);
}

.admin-data-table {
  overflow: auto;
  border: 1px solid color-mix(in srgb, var(--bmg-line) 92%, transparent);
  border-radius: var(--bmg-radius-xs);
  background: var(--bmg-panel);
  box-shadow: var(--bmg-soft-shadow);
}

.admin-data-table.is-compact {
  max-height: 340px;
}

.admin-data-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--bmg-font-size-data-table);
}

.admin-data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  width: var(--admin-data-table-column-width, auto);
  background: color-mix(in srgb, var(--bmg-panel-soft) 92%, var(--bmg-panel));
  color: var(--bmg-muted);
  border-bottom: 1px solid color-mix(in srgb, var(--bmg-line) 92%, transparent);
  padding: 11px 14px;
  font-size: var(--bmg-font-size-data-table-head);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-data-table-align-left {
  text-align: left;
}

.admin-data-table-align-center {
  text-align: center;
}

.admin-data-table-align-right {
  text-align: right;
}

.admin-data-table td {
  border-bottom: 1px solid color-mix(in srgb, var(--bmg-line) 62%, transparent);
  padding: 11px 14px;
  color: var(--bmg-ink);
  vertical-align: top;
}

.admin-data-table tbody tr:nth-child(even) td {
  background: color-mix(in srgb, var(--bmg-panel-soft) 42%, var(--bmg-panel));
}

.admin-data-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-data-table-empty {
  border: 1px dashed var(--bmg-line-strong);
  border-radius: var(--bmg-radius-xs);
  background: var(--bmg-panel-soft);
  padding: var(--bmg-space-5);
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-md-plus);
  font-weight: 780;
}

.admin-center-page button,
.admin-center-page input,
.admin-center-page select,
.admin-center-page textarea {
  font: inherit;
}

.admin-center-page input,
.admin-center-page select,
.admin-center-page textarea {
  width: 100%;
  min-height: var(--bmg-control-height-md);
  border: 1px solid var(--bmg-line-strong);
  border-radius: var(--bmg-radius-card);
  background: var(--bmg-panel);
  color: var(--bmg-ink);
  padding: 0 var(--bmg-space-5);
}

.admin-center-page textarea {
  min-height: 108px;
  padding: var(--bmg-space-4) var(--bmg-space-5);
}

.admin-center-page input::placeholder,
.admin-center-page textarea::placeholder {
  color: var(--bmg-subtle);
}

.admin-center-page input:focus,
.admin-center-page select:focus,
.admin-center-page textarea:focus,
.admin-shell-route:focus-visible,
.admin-brand-mark:focus-visible,
.admin-center-page button:focus-visible {
  outline: 0;
  box-shadow: var(--bmg-focus-ring);
}

.admin-center-page input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  padding: 0;
  accent-color: var(--bmg-green);
}

.admin-center-page input[type="file"] {
  width: auto;
  max-width: 100%;
  padding: 10px 12px;
}

.admin-center-page button:disabled,
.admin-center-page input:disabled,
.admin-center-page select:disabled,
.admin-center-page textarea:disabled {
  opacity: 0.58;
  cursor: not-allowed;
  box-shadow: none;
}

.legacy-app-shell {
  height: 100vh;
  min-height: 100vh;
}

.legacy-app-frame {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--bmg-paper);
}

.admin-quote-pageSection {
  display: grid;
  gap: 18px;
}

.admin-quote-sectionHeader {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

.admin-quote-sectionEyebrow {
  display: inline-block;
  margin-bottom: 6px;
  font-size: var(--bmg-type-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bmg-primary);
}

.admin-quote-sectionTitle {
  margin: 0;
  font-size: var(--bmg-type-display);
  line-height: 1.1;
}

.admin-quote-sectionCopy {
  margin: 8px 0 0;
  max-width: 760px;
  font-size: var(--bmg-type-body);
  line-height: 1.55;
  color: var(--bmg-ink-soft);
}

.admin-quote-headerMeta {
  display: grid;
  justify-items: end;
  gap: 8px;
  min-width: 160px;
}

.admin-quote-cellStack {
  display: grid;
  gap: 4px;
}

.admin-quote-cellStack small {
  font-size: var(--bmg-type-caption);
  color: var(--bmg-ink-soft);
}

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

.admin-quote-metaList {
  display: grid;
  gap: 12px;
  margin: 0;
}

.admin-quote-metaList div {
  display: grid;
  gap: 4px;
}

.admin-quote-metaList dt {
  font-size: var(--bmg-type-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bmg-ink-soft);
}

.admin-quote-metaList dd {
  margin: 0;
  font-size: var(--bmg-type-body);
  line-height: 1.5;
}

.admin-quote-longText {
  margin: 0;
  font-size: var(--bmg-type-body);
  line-height: 1.65;
  white-space: pre-wrap;
}

.admin-quote-formStack {
  display: grid;
  gap: 16px;
}

.admin-quote-formRow {
  display: grid;
  grid-template-columns: minmax(0, 220px) auto;
  gap: 16px;
  align-items: end;
}

.admin-quote-field {
  display: grid;
  gap: 6px;
}

.admin-quote-field span,
.admin-quote-liveStatus span {
  font-size: var(--bmg-type-caption);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--bmg-ink-soft);
}

.admin-quote-field select,
.admin-quote-field textarea {
  width: 100%;
  border: 1px solid var(--bmg-line-strong);
  border-radius: 4px;
  background: var(--bmg-panel);
  color: inherit;
  font: inherit;
}

.admin-quote-field select {
  min-height: 40px;
  padding: 0 12px;
}

.admin-quote-field textarea {
  padding: 12px;
  resize: vertical;
}

.admin-quote-liveStatus {
  display: grid;
  gap: 8px;
}

.admin-quote-actionRow {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-quote-primaryButton {
  min-height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: var(--bmg-primary);
  color: var(--bmg-panel);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-quote-primaryButton:disabled {
  opacity: 0.5;
  cursor: default;
}

.admin-quote-feedback {
  font-size: var(--bmg-type-body);
}

.admin-quote-feedback--saved {
  color: var(--bmg-primary);
}

.admin-quote-feedback--error {
  color: var(--bmg-danger);
}

@media (max-width: 1180px) {
  .admin-shell-topbarPrimaryRow {
    grid-template-columns: 1fr;
    min-height: 72px;
    gap: var(--bmg-space-7);
    padding: 14px 24px;
  }

  .admin-shell-topbar-controls {
    width: 100%;
    display: flex;
    gap: var(--bmg-space-3);
    justify-content: flex-start;
    align-items: stretch;
    margin-left: auto;
    margin-right: 0;
    justify-self: end;
  }

  .admin-shell-routebar {
    justify-content: flex-start;
    width: 100%;
    min-height: var(--bmg-control-height-xs);
    height: var(--bmg-control-height-xs);
  }

  .admin-shell-status {
    min-width: 0;
    min-height: var(--bmg-control-height-xs);
    height: var(--bmg-control-height-xs);
    width: auto;
  }

  .admin-shell-topbarMeta {
    margin-left: 0;
  }

  .admin-shell-topbarWorkspace {
    padding: 0 24px 12px;
  }

  .admin-shell-hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-shell-heroMeta {
    justify-items: start;
  }

  .admin-shell-frame--dashboard .admin-shell-topbar {
    --bmg-shell-sidebar-width: 0px;
    width: auto;
    margin-left: 0;
    padding-left: 0;
    padding-right: 0;
  }

  .admin-shell-frame--dashboard .admin-shell-body {
    padding-top: 0;
  }
}

@media (max-width: 980px) {
  .admin-quote-sectionHeader,
  .admin-quote-formRow,
  .admin-quote-detailGrid {
    grid-template-columns: 1fr;
  }

  .admin-quote-sectionHeader {
    display: grid;
  }

  .admin-quote-headerMeta {
    justify-items: start;
  }
}

@media (max-width: 720px) {
  .admin-center-page {
    padding: 0;
  }

  .admin-shell-frame {
    width: 100%;
    min-height: 100vh;
    border: 0;
  }

  .admin-shell-topbarPrimaryRow {
    gap: var(--bmg-space-6);
    padding: 14px 16px 16px;
  }

  .admin-brand-mark {
    margin-right: var(--bmg-space-4);
    padding-right: var(--bmg-space-4);
  }

  .admin-brand-mark::after {
    height: 28px;
  }

  .admin-shell-topbarWorkspace {
    padding: 0 16px 12px;
  }

  .admin-shell-content {
    padding-left: 14px;
    padding-right: 0;
  }

  .admin-shell-body {
    padding-top: 18px;
  }
}

@media (max-width: 460px) {
  .admin-brand-mark {
    margin-right: 0;
    padding-right: 0;
  }

  .admin-brand-mark::after {
    display: none;
  }
}



.configurator-shell {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

html:not([data-theme-resolved="dark"]) .configurator-shell,
html:not([data-theme-resolved="dark"]) .topbar,
html:not([data-theme-resolved="dark"]) .quote-panel,
html:not([data-theme-resolved="dark"]) .workspace {
  background: var(--bmg-panel);
}

.theme-logo {
  display: block;
}

.topbar {
  position: relative;
  top: 0;
  z-index: 20;
  height: var(--bmg-header-row-height);
  min-height: var(--bmg-header-row-height);
  max-height: var(--bmg-header-row-height);
  overflow: hidden;
}

.topbar .brand-mark {
  display: none;
}

.legacy-topbarPrimaryRow {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  height: var(--bmg-header-row-height);
  min-height: var(--bmg-header-row-height);
  max-height: var(--bmg-header-row-height);
  padding-left: var(--bmg-space-4);
  padding-right: var(--bmg-header-container-padding-right);
  box-sizing: border-box;
  overflow: hidden;
}

.legacy-topbarControls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bmg-space-4);
}

.legacy-step-routebar.quote-steps {
  --legacy-step-icon-size: var(--bmg-space-9);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  flex: 1 1 auto;
  flex-wrap: nowrap;
  justify-content: stretch;
  align-items: center;
  gap: 0;
  width: min(100%, var(--bmg-stepper-topbar-max-width));
  max-width: var(--bmg-stepper-topbar-max-width);
  margin: 0;
  min-height: calc(var(--legacy-step-icon-size) + var(--bmg-space-2) + 1em);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  pointer-events: none;
  position: relative;
  align-self: stretch;
  height: 100%;
}

.legacy-step-routebar.quote-steps::before,
.legacy-step-routebar.quote-steps::after {
  content: none;
}

.legacy-step-routebar .quote-step {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  align-content: center;
  width: 100%;
  max-width: none;
  min-height: calc(var(--legacy-step-icon-size) + var(--bmg-space-2) + 1em);
  height: 100%;
  gap: var(--bmg-space-2);
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--bmg-radius-md);
  color: var(--bmg-ink);
  font-size: var(--bmg-action-link-font-size);
  font-weight: var(--bmg-font-weight-strong);
  text-align: center;
  background: transparent;
  pointer-events: auto;
  z-index: 1;
}

.legacy-step-routebar .quote-step::before {
  display: none;
}

.legacy-step-routebar .quote-step::after {
  position: absolute;
  top: calc((var(--legacy-step-icon-size) / 2) - (var(--bmg-stepper-line-size) / 2));
  left: calc(50% + (var(--legacy-step-icon-size) / 2) - (var(--bmg-stepper-line-size) / 2));
  right: calc(-50% + (var(--legacy-step-icon-size) / 2) - (var(--bmg-stepper-line-size) / 2) - 5px);
  height: var(--bmg-stepper-line-size);
  border-radius: var(--bmg-radius-pill);
  background: color-mix(in srgb, var(--bmg-line-strong) 72%, transparent);
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8'%3E%3Crect x='0' y='1' width='12' height='6' rx='3' ry='3' fill='black'/%3E%3C/svg%3E");
  -webkit-mask-position: left center;
  -webkit-mask-size: 24px 100%;
  -webkit-mask-repeat: round;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 8'%3E%3Crect x='0' y='1' width='12' height='6' rx='3' ry='3' fill='black'/%3E%3C/svg%3E");
  mask-position: left center;
  mask-size: 24px 100%;
  mask-repeat: round;
  content: "";
  z-index: 0;
  pointer-events: none;
}

.legacy-step-routebar .quote-step:last-child::after {
  content: none;
}

.legacy-step-routebar .quote-step.is-complete::after {
  left: calc(50% + (var(--legacy-step-icon-size) / 2) - (var(--bmg-stepper-line-size) / 2) - 2px);
  background: color-mix(in srgb, var(--bmg-primary) 88%, transparent);
  -webkit-mask: none;
  mask: none;
}

.legacy-step-routebar .quote-step-icon {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: var(--legacy-step-icon-size);
  height: var(--legacy-step-icon-size);
  background-color: currentColor;
  color: var(--bmg-muted);
  font-size: 0;
  line-height: 1;
  -webkit-mask: url("/ui-assets/icons/filled/LensFilled.svg") center / contain no-repeat;
  mask: url("/ui-assets/icons/filled/LensFilled.svg") center / contain no-repeat;
}

.legacy-step-routebar .quote-step strong {
  position: relative;
  z-index: 1;
  max-width: none;
  min-height: 0;
  font-size: var(--bmg-action-link-font-size);
  font-weight: var(--bmg-font-weight-strong);
  line-height: var(--bmg-action-link-line-height);
  white-space: normal;
  justify-self: center;
  max-width: 100%;
}

.legacy-step-routebar .quote-step.is-complete {
  color: var(--bmg-primary);
}

.legacy-step-routebar .quote-step.is-complete .quote-step-icon {
  color: var(--bmg-primary);
  -webkit-mask: url("/ui-assets/icons/filled/CircleCheckedFilled.svg") center / contain no-repeat;
  mask: url("/ui-assets/icons/filled/CircleCheckedFilled.svg") center / contain no-repeat;
}

.legacy-step-routebar .quote-step.is-current,
.legacy-step-routebar .quote-step[aria-current="step"] {
  color: var(--bmg-ink);
}

.legacy-step-routebar .quote-step.is-current .quote-step-icon,
.legacy-step-routebar .quote-step[aria-current="step"] .quote-step-icon {
  color: var(--bmg-primary);
  background-color: currentColor;
  -webkit-mask: url("/ui-assets/icons/filled/ModeStandbyFilled.svg") center / contain no-repeat;
  mask: url("/ui-assets/icons/filled/ModeStandbyFilled.svg") center / contain no-repeat;
}

.legacy-step-routebar .quote-step.is-current strong,
.legacy-step-routebar .quote-step[aria-current="step"] strong {
  color: var(--bmg-ink);
}

.legacy-step-routebar .quote-step.is-upcoming {
  color: var(--bmg-subtle);
}

.top-price-ribbon {
  min-width: var(--bmg-status-ribbon-min-width);
  border-radius: var(--bmg-radius-card);
  white-space: nowrap;
}

.top-actions,
.legacy-topbarMeta {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--bmg-space-2);
  margin-left: auto;
  min-width: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.top-action-stack {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: var(--bmg-space-2);
  min-width: 0;
  flex: 0 0 auto;
}

.save-status {
  min-width: 0;
  min-height: 0;
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-xs);
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.save-project-button {
  flex: 0 0 auto;
}

.configurator-shell[data-auth-preview="logged-out"] .save-project-button {
  border-color: transparent;
  background: var(--bmg-action-link-primary-bg);
}

.configurator-shell[data-auth-preview="logged-out"] .save-project-button:hover {
  background: var(--bmg-action-link-primary-bg-hover);
}

.configurator-shell[data-auth-preview="logged-out"] .save-project-button .save-project-buttonIcon {
  filter: brightness(0) saturate(100%) invert(98%) sepia(1%) saturate(0%) hue-rotate(177deg) brightness(109%) contrast(100%);
}

.save-project-buttonIcon {
  width: var(--bmg-provider-artwork-size);
  height: var(--bmg-provider-artwork-size);
  object-fit: contain;
}

.save-project-buttonLabel {
  display: none;
}

.legacy-saveTooltip {
  z-index: 10031;
  width: min(492px, calc(100vw - (var(--bmg-space-5) * 2)));
}

.legacy-saveTooltip .bmg-tooltipCard {
  gap: var(--bmg-space-3);
  padding: var(--bmg-space-5);
}

.legacy-saveTooltip[data-prompt-source="save_project_button"] {
  width: min(528px, calc(100vw - (var(--bmg-space-5) * 2)));
}

.legacy-saveTooltip[data-prompt-source="save_project_button"] .bmg-tooltipCard {
  gap: var(--bmg-space-3);
  padding: var(--bmg-space-4) var(--bmg-space-5);
}

.legacy-saveTooltip .bmg-tooltipTitle {
  max-width: 12ch;
  font-size: clamp(1.12rem, 1.75vw, 1.58rem);
  line-height: 1.02;
}

.legacy-saveTooltip .bmg-tooltipEyebrow {
  color: var(--bmg-primary);
  letter-spacing: 0.06em;
}

.legacy-saveTooltip .bmg-tooltipBody {
  gap: var(--bmg-space-1);
  font-size: var(--bmg-font-size-sm-alt);
  max-width: 38ch;
}

.legacy-saveTooltip .bmg-tooltipIcon {
  width: 56px;
  height: 56px;
}

.legacy-saveTooltip[data-prompt-source="save_project_button"] .bmg-tooltipIcon {
  width: 50px;
  height: 50px;
}

.legacy-saveTooltip .bmg-tooltipIcon img {
  width: 30px;
  height: 30px;
}

.legacy-saveTooltip[data-prompt-source="save_project_button"] .bmg-tooltipIcon img {
  width: 26px;
  height: 26px;
}

.legacy-saveTooltip .bmg-tooltipHeader {
  gap: var(--bmg-space-3);
  align-items: start;
}

.legacy-saveTooltip[data-prompt-source="save_project_button"] .bmg-tooltipHeaderCopy {
  gap: 0;
}

.legacy-saveTooltip[data-prompt-source="save_project_button"] .bmg-tooltipEyebrow {
  display: none;
}

.legacy-saveTooltip[data-prompt-source="save_project_button"] .bmg-tooltipTitle {
  max-width: 15ch;
  font-size: clamp(0.98rem, 1.24vw, 1.24rem);
  line-height: 1.03;
}

.legacy-saveTooltip[data-prompt-source="save_project_button"] .bmg-tooltipBody {
  max-width: 43ch;
  margin-top: 0;
}

.legacy-saveTooltip .bmg-tooltipClose {
  width: 44px;
  height: 44px;
  min-height: 44px;
}

.legacy-saveTooltip[data-prompt-source="save_project_button"] .bmg-tooltipClose {
  width: 40px;
  height: 40px;
  min-height: 40px;
}

.legacy-saveTooltip .bmg-tooltipFooter,
.legacy-saveTooltip .bmg-tooltipActions {
  width: 100%;
}

.legacy-saveTooltip .bmg-tooltipActions {
  justify-content: flex-end;
  gap: var(--bmg-space-2);
}

.legacy-saveTooltip .bmg-tooltipActions > * {
  min-width: 148px;
  min-height: 42px;
}

.legacy-saveTooltip[data-prompt-source="save_project_button"] .bmg-tooltipActions > * {
  min-width: 132px;
  min-height: 40px;
}

.legacy-saveTooltip #saveAccountTooltipDismiss {
  color: var(--bmg-text);
}

.legacy-saveTooltip #saveAccountTooltipCreate {
  color: var(--bmg-action-link-primary-ink);
}

.signin-link {
  display: inline-flex;
  align-items: center;
  gap: var(--bmg-space-2);
  min-height: var(--bmg-control-height-xs);
  padding: 0 var(--bmg-action-link-padding-x);
  border-radius: var(--bmg-radius-sm);
  font-size: var(--bmg-header-nav-font-size);
  font-weight: var(--bmg-font-weight-strong);
  white-space: nowrap;
  flex: 0 0 auto;
}

.signin-link:hover {
  color: var(--bmg-primary);
}

.signin-linkIcon {
  position: relative;
  width: 24px;
  height: 24px;
  display: inline-block;
}

.signin-linkIcon::before {
  position: absolute;
  left: 7px;
  top: 2px;
  width: 8px;
  height: 8px;
  border: 3px solid currentColor;
  border-radius: 999px;
  content: "";
}

.signin-linkIcon::after {
  position: absolute;
  left: 3px;
  bottom: 1px;
  width: 16px;
  height: 10px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  content: "";
}

.project-picker {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.project-picker .shared-readonly-field--toolbar {
  min-width: 168px;
}

.legacy-authPreviewGroup {
  display: inline-flex;
  align-items: center;
  gap: var(--bmg-space-2);
  min-width: 0;
  white-space: nowrap;
}

.legacy-authPreviewGroup--logged-in {
  display: none;
}

.legacy-authPreviewGroup--logged-out .shared-action-link {
  flex: 0 0 auto;
}

.configurator-shell[data-auth-preview="logged-in"] .legacy-authPreviewGroup--logged-in {
  display: inline-flex;
}

.configurator-shell[data-auth-preview="logged-in"] .legacy-authPreviewGroup--logged-out {
  display: none;
}

.legacy-authLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--bmg-control-height-xs);
  padding: 0 var(--bmg-action-link-padding-x);
  border-radius: var(--bmg-radius-sm);
  font-size: var(--bmg-header-nav-font-size);
  font-weight: var(--bmg-font-weight-strong);
  line-height: 1;
  white-space: nowrap;
  flex: 0 0 auto;
}

.legacy-project-titleRow {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  margin: var(--bmg-space-2) 2px var(--bmg-space-4);
  padding: 0;
  border: 1px solid color-mix(in srgb, var(--bmg-line-strong) 88%, transparent);
  border-radius: var(--bmg-radius-card);
  background: color-mix(in srgb, var(--bmg-panel) 94%, transparent);
  box-shadow: var(--bmg-soft-shadow);
  text-decoration: none;
  transition:
    border-color var(--bmg-duration-fast) ease,
    background var(--bmg-duration-fast) ease,
    box-shadow var(--bmg-duration-fast) ease,
    transform var(--bmg-duration-fast) ease;
  z-index: 1;
}

.legacy-project-titleRow:hover {
  border-color: color-mix(in srgb, var(--bmg-primary) 58%, var(--bmg-line-strong));
  background: color-mix(in srgb, var(--bmg-panel-soft) 76%, var(--bmg-panel));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--bmg-primary) 18%, transparent),
    var(--bmg-soft-shadow);
}

.legacy-project-titleRow:focus-within {
  border-color: var(--bmg-primary);
  background: color-mix(in srgb, var(--bmg-panel-soft) 82%, var(--bmg-panel));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--bmg-primary) 24%, transparent),
    0 0 0 3px color-mix(in srgb, var(--bmg-primary) 15%, transparent),
    var(--bmg-soft-shadow);
}

.legacy-project-titleRow.is-tooltip-highlighted {
  border-color: var(--bmg-primary);
  background: color-mix(in srgb, var(--bmg-panel-soft) 82%, var(--bmg-panel));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--bmg-primary) 24%, transparent),
    0 0 0 3px color-mix(in srgb, var(--bmg-primary) 15%, transparent),
    var(--bmg-soft-shadow);
}

.legacy-project-titleRow input {
  width: 100%;
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  border-radius: var(--bmg-radius-sm);
  background: transparent;
  color: var(--bmg-ink);
  -webkit-text-fill-color: var(--bmg-ink);
  opacity: 1;
  caret-color: var(--bmg-primary);
  font: inherit;
  font-size: var(--bmg-font-size-title);
  font-weight: var(--bmg-font-weight-extra);
  line-height: 1.15;
  padding: 0 calc(var(--bmg-provider-artwork-size) + var(--bmg-space-4)) 0 var(--bmg-space-5);
  text-align: left;
  outline: 0;
}

.legacy-project-titleRow input::placeholder {
  color: color-mix(in srgb, var(--bmg-ink) 52%, transparent);
}

.legacy-project-titleRow input:focus-visible {
  box-shadow: none;
}

.legacy-project-titleRow input::selection {
  background: color-mix(in srgb, var(--bmg-primary) 24%, transparent);
  color: var(--bmg-ink);
  -webkit-text-fill-color: var(--bmg-ink);
}

.legacy-project-titleRow input:-webkit-autofill,
.legacy-project-titleRow input:-webkit-autofill:hover,
.legacy-project-titleRow input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--bmg-ink);
  caret-color: var(--bmg-primary);
  box-shadow: 0 0 0 1000px color-mix(in srgb, var(--bmg-panel) 98%, transparent) inset;
  transition: background-color 9999s ease-out 0s;
}

.legacy-project-titleIcon {
  position: absolute;
  right: calc((var(--bmg-sidebar-row-height) - var(--bmg-provider-artwork-size)) / 2);
  top: 50%;
  width: var(--bmg-provider-artwork-size);
  height: var(--bmg-provider-artwork-size);
  transform: translateY(-50%);
  filter: var(--bmg-icon-filter-soft);
  pointer-events: none;
  transition: filter var(--bmg-duration-fast) ease, opacity var(--bmg-duration-fast) ease;
  opacity: 0.9;
}

.legacy-project-titleRow:hover .legacy-project-titleIcon,
.legacy-project-titleRow:focus-within .legacy-project-titleIcon {
  filter: var(--bmg-icon-filter);
  opacity: 1;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--bmg-sidebar-width) minmax(0, 1fr);
  gap: var(--bmg-app-shell-gap);
  width: 100%;
  max-width: var(--bmg-stage-max-width);
  margin: 0 auto;
  min-height: calc(100vh - var(--bmg-header-row-height));
  padding: var(--bmg-app-shell-padding);
  overflow: hidden;
}

.quote-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: var(--bmg-sidebar-padding);
  border-right: 1px solid var(--bmg-line);
  background: linear-gradient(180deg, var(--bmg-sidebar-surface-start) 0%, var(--bmg-sidebar-surface-end) 100%);
  overflow: hidden;
}

html:not([data-theme-resolved="dark"]) .quote-panel {
  background: var(--bmg-panel);
}

.quote-panel > .live-card,
.quote-panel > .hidden-editor-card {
  display: none;
}

.sidebar-card,
.preview-card,
.finish-card,
.packages-card,
.review-card,
.summary-grid article,
.cost-ribbon {
  border: 1px solid var(--line);
  border-radius: var(--bmg-radius-card);
  background: color-mix(in srgb, var(--bmg-panel) 94%, transparent);
  box-shadow: var(--bmg-soft-shadow);
}

.sidebar-card {
  padding: var(--bmg-space-7) var(--bmg-space-6);
}

.legacy-rail-brand {
  justify-self: center;
  width: calc(100% + 14px);
  display: grid;
  place-items: center;
  margin: 0 -7px var(--bmg-sidebar-brand-margin-bottom);
  min-height: var(--bmg-sidebar-brand-height);
  height: var(--bmg-sidebar-brand-height);
  box-sizing: border-box;
  padding: 0 var(--bmg-sidebar-brand-padding-x);
  border-bottom: 1px solid color-mix(in srgb, var(--bmg-line-strong) 92%, transparent);
  text-align: center;
  text-decoration: none;
}

.legacy-rail-brandIcon {
  display: block;
  width: min(var(--bmg-brand-logo-width), 100%);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  margin-top: 0;
  margin-bottom: 0;
  margin-inline: auto;
  justify-self: center;
  align-self: center;
  filter: none;
}

.design-card {
  display: grid;
  grid-template-rows: auto;
  flex: 1 1 auto;
  gap: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  align-content: start;
}

.sidebar-card.design-card {
  display: grid;
  grid-template-rows: auto;
  flex: 1 1 auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  align-content: start;
}

.sidebar-card.design-card > .current-step-card {
  min-height: 0;
  height: 100%;
}

.sidebar-card.design-card > .current-step-card.has-nested-controls,
.sidebar-card.design-card > .current-step-card:has(.current-step-controls) {
  min-height: 0;
  height: 100%;
}

.sidebar-card.design-card > .current-step-card.has-nested-controls .current-step-controls,
.sidebar-card.design-card > .current-step-card:has(.current-step-controls) .current-step-controls {
  min-height: 0;
  overflow: auto;
}

.sidebar-card.design-card > .current-step-card .current-step-actions {
  margin-top: auto;
  padding-top: var(--bmg-space-3);
}

.current-step-controls .style-accordion {
  display: grid;
  gap: 10px;
}

.current-step-controls .style-accordion-item {
  overflow: hidden;
  border: 1px solid var(--bmg-border);
  border-radius: var(--bmg-radius-card);
  background: var(--bmg-surface);
}

.current-step-controls .style-accordion-item.is-open {
  box-shadow: var(--bmg-soft-shadow);
}

.current-step-card.is-tooltip-highlighted,
.current-step-controls .style-accordion-item.is-tooltip-highlighted,
.current-step-controls .dimension-field-label.is-tooltip-highlighted,
.current-step-controls .roof-card.is-tooltip-highlighted,
.current-step-controls .ridge-direction-field.is-tooltip-highlighted,
.current-step-controls .check-row.is-tooltip-highlighted,
.current-step-controls .palette-review > div.is-tooltip-highlighted,
.current-step-controls .color-swatch-grid.is-tooltip-highlighted,
.next-step-button.is-tooltip-highlighted {
  border-color: color-mix(in srgb, var(--bmg-primary) 58%, var(--bmg-line-strong));
  background: color-mix(in srgb, var(--bmg-panel-soft) 76%, var(--bmg-panel));
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--bmg-primary) 18%, transparent),
    var(--bmg-soft-shadow);
}

.current-step-card.is-tooltip-highlighted,
.next-step-button.is-tooltip-highlighted {
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--bmg-primary) 20%, transparent),
    0 0 0 3px color-mix(in srgb, var(--bmg-primary) 12%, transparent),
    var(--bmg-soft-shadow);
}

.current-step-controls .style-accordion-header {
  display: grid;
  grid-template-columns: 18px minmax(76px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.current-step-controls .style-accordion-header.shared-selectable {
  border: 0;
  border-radius: 0;
  background: var(--bmg-surface);
  box-shadow: none;
  color: var(--bmg-text);
  transform: none;
}

.current-step-controls .style-accordion-header.shared-selectable:hover {
  background: color-mix(in srgb, var(--bmg-surface-soft) 84%, var(--bmg-surface));
  box-shadow: none;
  transform: none;
}

.current-step-controls .style-accordion-header.shared-selectable.is-selected {
  background: var(--bmg-surface);
  box-shadow: none;
}

.current-step-controls .style-accordion-panel {
  display: grid;
  gap: 11px;
  padding: 0 12px 12px;
  border-top: 1px solid var(--bmg-border);
  background: var(--bmg-surface-soft);
}

.current-step-controls .style-accordion-panel[hidden] {
  display: none;
}

.current-step-controls .accordion-title {
  color: var(--bmg-text);
  font-size: 0.82rem;
  font-weight: 950;
}

.current-step-controls .accordion-summary {
  min-width: 0;
  color: var(--bmg-muted);
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.current-step-controls .accordion-state {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--bmg-border);
  border-radius: 999px;
  background: var(--bmg-paper);
}

.current-step-controls .accordion-state.is-complete,
.current-step-controls .accordion-state.is-current {
  border-color: var(--bmg-primary);
  background: var(--bmg-primary);
}

.current-step-controls .accordion-state.is-complete::before {
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--bmg-paper);
  border-bottom: 2px solid var(--bmg-paper);
  content: "";
  transform: rotate(-45deg);
}

.current-step-controls .accordion-state.is-current::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--bmg-paper);
  content: "";
}

.current-step-controls .wide-action.shared-action-button,
.current-step-controls .secondary-action.shared-action-button {
  width: 100%;
}

.current-step-controls .wide-action.shared-action-button {
  display: inline-flex;
  gap: var(--bmg-space-3);
  justify-content: center;
}

.current-step-controls .ridge-direction-options {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bmg-space-2);
}

.current-step-controls .ridge-direction-option.shared-selectable {
  min-height: 34px;
  padding: 0 var(--bmg-space-4);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
}

.current-step-controls .preview-add-opening-button.shared-action-button {
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  font-size: var(--bmg-font-size-md);
  font-weight: var(--bmg-font-weight-extra);
}

html[data-theme-resolved="dark"] .configurator-shell {
  --bmg-stage-surface-opacity: 94%;
  --bmg-stage-border-opacity: 24%;
}

html[data-theme-resolved="dark"] .topbar {
  --bmg-toolbar-surface-opacity: 92%;
  --bmg-toolbar-border-opacity: 18%;
}

html[data-theme-resolved="dark"] .quote-step.is-complete {
  color: var(--bmg-ink);
}

html[data-theme-resolved="dark"] .quote-panel {
  background: linear-gradient(180deg, var(--bmg-panel) 0%, var(--bmg-paper) 100%);
}

html[data-theme-resolved="dark"] .legacy-project-titleRow input {
  color: var(--bmg-ink);
  -webkit-text-fill-color: var(--bmg-ink);
}

html[data-theme-resolved="dark"] .legacy-project-titleRow input::placeholder {
  color: color-mix(in srgb, var(--bmg-ink-soft) 72%, transparent);
}

html[data-theme-resolved="dark"] .legacy-project-titleRow input::selection {
  color: var(--bmg-ink);
  -webkit-text-fill-color: var(--bmg-ink);
}

html[data-theme-resolved="dark"] .legacy-project-titleRow input:-webkit-autofill,
html[data-theme-resolved="dark"] .legacy-project-titleRow input:-webkit-autofill:hover,
html[data-theme-resolved="dark"] .legacy-project-titleRow input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--bmg-ink);
  box-shadow: 0 0 0 1000px color-mix(in srgb, var(--bmg-panel) 96%, transparent) inset;
}

@media (max-width: 920px) {
  .configurator-shell {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }

  .app-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .quote-panel {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
  }

  .sidebar-card.design-card,
  .sidebar-card.design-card > .current-step-card,
  .sidebar-card.design-card > .current-step-card.has-nested-controls,
  .sidebar-card.design-card > .current-step-card:has(.current-step-controls) {
    flex: 1 1 auto;
  }
}

@media (min-width: 921px) {
  .configurator-shell {
    display: grid;
    grid-template-columns: var(--bmg-sidebar-width) minmax(0, 1fr);
    grid-template-rows: var(--bmg-header-row-height) minmax(0, 1fr);
    align-items: stretch;
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
  }

  .topbar {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .legacy-topbarPrimaryRow {
    padding-left: var(--bmg-header-container-padding-right);
  }

  .app-shell {
    display: contents;
  }

  .quote-panel {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
    min-height: 0;
    height: 100vh;
    max-height: 100vh;
    gap: var(--bmg-space-4);
    padding: 0;
  }

  .legacy-rail-brand {
    width: calc(100% + 14px);
    margin: 0 -7px var(--bmg-sidebar-brand-margin-bottom);
  }

  .workspace {
    grid-column: 2;
    grid-row: 2;
    min-width: 0;
    padding: 0 12px 0 0;
  }
}


.shared-action-link,
.shared-action-button {
  min-height: var(--bmg-control-height-xs);
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--bmg-border-width-thin) solid transparent;
  border-radius: var(--bmg-radius-sm);
  padding: 0 var(--bmg-action-link-padding-x);
  text-decoration: none;
  font-size: var(--bmg-action-link-font-size);
  font-weight: var(--bmg-action-link-font-weight);
  line-height: var(--bmg-action-link-line-height);
  white-space: nowrap;
  transition:
    background-color var(--bmg-duration-fast) ease,
    color var(--bmg-duration-fast) ease,
    border-color var(--bmg-duration-fast) ease,
    box-shadow var(--bmg-duration-fast) ease;
}

.shared-action-button {
  cursor: pointer;
  font-family: inherit;
}

.shared-action-link--primary,
.shared-action-button--primary {
  color: var(--bmg-action-link-primary-ink);
  background: var(--bmg-action-link-primary-bg);
}

.shared-action-link--primary:hover,
.shared-action-button--primary:hover {
  background: var(--bmg-action-link-primary-bg-hover);
}

.shared-action-link--secondary,
.shared-action-button--secondary {
  color: var(--bmg-ink);
  border-color: color-mix(in srgb, var(--bmg-line-strong) var(--bmg-action-link-secondary-border-opacity), transparent);
  background: color-mix(in srgb, var(--bmg-panel) var(--bmg-action-link-secondary-surface-opacity), transparent);
}

.shared-action-link--secondary:hover,
.shared-action-button--secondary:hover {
  color: var(--bmg-ink);
  border-color: color-mix(in srgb, var(--bmg-line-strong) var(--bmg-action-link-secondary-border-hover-opacity), transparent);
  background: color-mix(in srgb, var(--bmg-panel-soft) var(--bmg-action-link-secondary-hover-opacity), transparent);
}


.shared-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--bmg-control-height-xs);
  height: var(--bmg-control-height-xs);
  padding: 0;
  margin: 0;
  border: 1px solid color-mix(in srgb, var(--bmg-line-strong) var(--bmg-action-link-secondary-border-opacity), transparent);
  border-radius: var(--bmg-radius-sm);
  background: color-mix(in srgb, var(--bmg-panel) var(--bmg-action-link-secondary-surface-opacity), transparent);
  box-shadow: none;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  font: inherit;
}

.shared-icon-button:focus-visible {
  outline: 2px solid var(--bmg-ink);
  outline-offset: 2px;
}

.shared-icon-button:focus {
  outline: none;
}

.shared-icon-button-icon {
  width: var(--bmg-provider-artwork-size);
  height: var(--bmg-provider-artwork-size);
  object-fit: contain;
  display: block;
  filter: var(--bmg-icon-filter);
}


.bmg-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: clamp(var(--bmg-space-6), 3vw, 32px);
}

.bmg-modalBackdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--bmg-navy) 38%, transparent);
  backdrop-filter: blur(3px);
}

.bmg-modalDialog {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--bmg-space-6);
  width: min(900px, 100%);
  max-height: min(94vh, 900px);
  padding: clamp(18px, 1.6vw, 28px);
  border: 1px solid color-mix(in srgb, var(--bmg-border) 86%, transparent);
  border-radius: var(--bmg-radius-shell);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--bmg-panel-soft) 92%, transparent) 0%, transparent 38%),
    linear-gradient(180deg, color-mix(in srgb, var(--bmg-panel) 98%, transparent), color-mix(in srgb, var(--bmg-panel-soft) 94%, transparent));
  box-shadow: var(--bmg-stage-shadow);
  overflow: auto;
}

.bmg-modalDialog:focus-visible {
  outline: none;
  box-shadow: var(--bmg-stage-shadow), var(--bmg-focus-ring);
}

.bmg-modalDialog--welcome {
  width: min(1180px, 100%);
}

.bmg-modalDialog--baseSelection {
  width: min(1360px, 100%);
}

.bmg-modalDialog--baseSelectionTier {
  width: min(1120px, 100%);
}

.bmg-modalDialog--reviewSave {
  width: min(1260px, 100%);
}

.bmg-modalClose {
  position: absolute;
  top: clamp(18px, 2vw, 26px);
  right: clamp(18px, 2vw, 26px);
  display: inline-grid;
  place-items: center;
  width: var(--bmg-control-height-xl);
  height: var(--bmg-control-height-xl);
  border: 1px solid var(--bmg-border);
  border-radius: var(--bmg-radius-pill);
  background: color-mix(in srgb, var(--bmg-panel) 92%, transparent);
  box-shadow: var(--bmg-soft-shadow);
  cursor: pointer;
  transition:
    background var(--bmg-duration-fast) ease,
    border-color var(--bmg-duration-fast) ease,
    transform var(--bmg-duration-fast) ease;
}

.bmg-modalClose:hover {
  background: var(--bmg-surface-soft);
  border-color: var(--bmg-line-strong);
  transform: translateY(-1px);
}

.bmg-modalClose img {
  width: 22px;
  height: 22px;
  filter: var(--bmg-icon-filter);
}

.bmg-modalHeader {
  display: grid;
  gap: var(--bmg-space-3);
  padding-right: calc(var(--bmg-control-height-xl) + var(--bmg-space-3));
}

.bmg-modalTitle {
  margin: 0;
  color: var(--bmg-text);
  font-size: clamp(1.9rem, 3.4vw, 2.85rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.bmg-modalDescription {
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-sm-alt);
  line-height: 1.28;
}

.bmg-modalBody {
  min-width: 0;
}

.bmg-modalActions {
  display: flex;
  justify-content: flex-end;
  gap: var(--bmg-space-4);
}

.bmg-modalAction {
  min-width: 168px;
  min-height: 46px;
  padding: 0 18px;
  font-size: var(--bmg-font-size-sm-alt);
  font-weight: var(--bmg-font-weight-heavy);
  transition:
    transform var(--bmg-duration-fast) ease;
}

.bmg-modalAction:hover {
  transform: translateY(-1px);
}

.bmg-tooltipLayer {
  position: fixed;
  inset: 0;
  z-index: 10030;
  pointer-events: none;
}

.bmg-tooltipOverlay {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
}

.bmg-tooltipOverlay--light {
  background: color-mix(in srgb, var(--bmg-navy) 14%, transparent);
  backdrop-filter: blur(1px);
}

.bmg-tooltipOverlay--medium {
  background: color-mix(in srgb, var(--bmg-navy) 22%, transparent);
  backdrop-filter: blur(2px);
}

.bmg-tooltipOverlay--heavy {
  background: color-mix(in srgb, var(--bmg-navy) 32%, transparent);
  backdrop-filter: blur(3px);
}

.bmg-tooltip {
  position: fixed;
  z-index: 1;
  width: min(420px, calc(100vw - (var(--bmg-space-6) * 2)));
  pointer-events: auto;
  outline: none;
  isolation: isolate;
}

.bmg-tooltip--hover {
  z-index: 10035;
  width: min(240px, calc(100vw - (var(--bmg-space-6) * 2)));
  pointer-events: none;
}

.bmg-tooltip[hidden] {
  display: none;
}

.bmg-tooltipCard {
  position: relative;
  display: grid;
  gap: var(--bmg-space-5);
  padding: var(--bmg-space-6);
  border: 1px solid color-mix(in srgb, var(--bmg-border) 86%, transparent);
  border-radius: var(--bmg-radius-shell);
  background:
    radial-gradient(circle at top left, color-mix(in srgb, var(--bmg-panel-soft) 88%, transparent) 0%, transparent 34%),
    linear-gradient(180deg, color-mix(in srgb, var(--bmg-panel) 97%, transparent), color-mix(in srgb, var(--bmg-panel-soft) 94%, transparent));
  box-shadow: var(--bmg-shadow);
  z-index: 2;
  overflow: visible;
}

.bmg-tooltipCard::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--bmg-panel-soft) 26%, transparent);
  content: "";
  pointer-events: none;
}

.bmg-tooltipCard--compact {
  gap: var(--bmg-space-4);
  padding: var(--bmg-space-5);
}

.bmg-tooltipCard--hover {
  gap: var(--bmg-space-2);
  padding: var(--bmg-space-3) var(--bmg-space-4);
  border-radius: var(--bmg-radius-control);
  box-shadow: var(--bmg-soft-shadow);
}

.bmg-tooltipArrow {
  position: absolute;
  display: block;
  width: 22px;
  height: 22px;
  border-top: 1px solid color-mix(in srgb, var(--bmg-border) 86%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--bmg-border) 86%, transparent);
  background: color-mix(in srgb, var(--bmg-panel-soft) 95%, var(--bmg-panel));
  box-shadow:
    var(--bmg-soft-shadow),
    inset 0 1px 0 color-mix(in srgb, var(--bmg-panel-soft) 20%, transparent);
  z-index: 1;
}

.bmg-tooltipBridge {
  position: absolute;
  display: block;
  width: 26px;
  height: 10px;
  background: color-mix(in srgb, var(--bmg-panel-soft) 95%, var(--bmg-panel));
  z-index: 1;
}

.bmg-tooltipArrow--top {
  left: calc(50% - 11px);
  bottom: -9px;
  transform: rotate(-135deg);
}

.bmg-tooltipArrow--bottom {
  left: calc(50% - 11px);
  top: -9px;
  transform: rotate(45deg);
}

.bmg-tooltipArrow--left {
  top: calc(50% - 11px);
  right: -9px;
  transform: rotate(135deg);
}

.bmg-tooltipArrow--right {
  top: calc(50% - 11px);
  left: -9px;
  transform: rotate(-45deg);
}

.bmg-tooltipBridge--top {
  bottom: 0;
}

.bmg-tooltipBridge--bottom {
  top: 0;
}

.bmg-tooltipBridge--left,
.bmg-tooltipBridge--right {
  display: none;
}

.bmg-tooltipHeader {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--bmg-space-4);
  align-items: center;
}

.bmg-tooltipHeaderIcon {
  display: grid;
  align-items: start;
}

.bmg-tooltipHeaderCopy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.bmg-tooltipEyebrow {
  color: var(--bmg-primary);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
  line-height: 1.1;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bmg-tooltipTitle {
  margin: 0;
  color: var(--bmg-text);
  font-size: var(--bmg-font-size-xl);
  font-weight: var(--bmg-font-weight-heavy);
  line-height: 1.08;
}

.bmg-tooltipIcon {
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: var(--bmg-radius-pill);
  background: color-mix(in srgb, var(--bmg-primary) 16%, var(--bmg-panel));
  box-shadow: var(--bmg-soft-shadow);
}

.bmg-tooltipIcon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: var(--bmg-icon-filter);
}

.bmg-tooltipClose {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-color: color-mix(in srgb, var(--bmg-line-strong) 78%, transparent);
  border-radius: var(--bmg-radius-pill);
  background: color-mix(in srgb, var(--bmg-panel) 82%, transparent);
}

.bmg-tooltipClose:hover {
  border-color: color-mix(in srgb, var(--bmg-line-strong) 92%, transparent);
  background: color-mix(in srgb, var(--bmg-panel-soft) 88%, transparent);
}

.bmg-tooltipBody {
  display: grid;
  gap: var(--bmg-space-3);
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-sm-alt);
  line-height: 1.3;
}

.bmg-tooltipBody p {
  margin: 0;
  text-wrap: balance;
}

.bmg-tooltipBody--hover {
  color: var(--bmg-text);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-strong);
  line-height: 1.2;
}

.bmg-tooltipBody--hover p {
  text-wrap: pretty;
}

.bmg-tooltipTrigger {
  display: inline-flex;
  max-width: 100%;
}

.bmg-tooltipTrigger--block {
  display: block;
  width: 100%;
}

.bmg-tooltipFooter {
  display: flex;
  justify-content: flex-end;
}

.bmg-tooltipActions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--bmg-space-3);
}

.bmg-coachMarkSpotlight {
  position: fixed;
  z-index: 1;
  border: 2px solid color-mix(in srgb, var(--bmg-primary) 90%, transparent);
  border-radius: var(--bmg-radius-card);
  box-shadow: var(--bmg-shadow);
  pointer-events: none;
}

.bmg-coachMarkSpotlight.is-pulsing {
  animation: bmg-coachMarkPulse 1800ms ease-in-out infinite;
}

@keyframes bmg-coachMarkPulse {
  0%,
  100% {
    opacity: 0.76;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.018);
  }
}

.bmg-welcomeModal {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(18px, 2.2vw, 30px);
  align-items: start;
}

.bmg-welcomeModalSection {
  display: grid;
  gap: var(--bmg-space-5);
  min-width: 0;
}

.bmg-welcomeModalSection--lead {
  padding-right: clamp(0px, 1vw, 10px);
}

.bmg-welcomeModalSection--guide {
  padding-left: clamp(0px, 1vw, 10px);
  border-left: 1px solid color-mix(in srgb, var(--bmg-border) 88%, transparent);
}

.bmg-welcomeModalBrand {
  width: min(240px, 100%);
}

.bmg-welcomeModalBrand img {
  display: block;
  width: 100%;
  height: auto;
}

.bmg-welcomeModalPreview,
.bmg-welcomeModalCallout,
.bmg-welcomeModalNote {
  display: grid;
  gap: var(--bmg-space-6);
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--bmg-border) 82%, transparent);
  border-radius: var(--bmg-radius-lg);
  background: color-mix(in srgb, var(--bmg-panel) 92%, transparent);
  box-shadow: var(--bmg-soft-shadow);
}

.bmg-welcomeModalPreview {
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 16px 18px;
}

.bmg-welcomeModalPreviewIcon {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: var(--bmg-radius-lg);
  background: var(--bmg-surface-soft);
  padding: var(--bmg-space-2);
}

.bmg-welcomeModalPreviewCopy strong,
.bmg-welcomeModalGuideHeader strong,
.bmg-welcomeModalCallout strong,
.bmg-welcomeModalNote strong,
.bmg-welcomeModalSteps strong,
.bmg-welcomeModalBenefits strong {
  display: block;
  margin: 0 0 4px;
  color: var(--bmg-text);
  font-size: var(--bmg-font-size-md);
  line-height: var(--bmg-line-height-body);
}

.bmg-welcomeModalPreviewCopy span,
.bmg-welcomeModalGuideHeader p,
.bmg-welcomeModalCallout p,
.bmg-welcomeModalNote p,
.bmg-welcomeModalSteps p,
.bmg-welcomeModalBenefits p {
  margin: 0;
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-sm-alt);
  line-height: 1.28;
}

.bmg-welcomeModalCallout,
.bmg-welcomeModalNote,
.bmg-welcomeModalGuideHeader {
  grid-template-columns: auto minmax(0, 1fr);
  padding: var(--bmg-space-5);
}

.bmg-welcomeModalGuideHeader {
  border: 0;
  padding: 0 0 6px;
  background: transparent;
  box-shadow: none;
}

.bmg-welcomeModalCallout img,
.bmg-welcomeModalNote img,
.bmg-welcomeModalGuideHeader img,
.bmg-welcomeModalBenefits img {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--bmg-radius-pill);
  background: color-mix(in srgb, var(--bmg-primary) 15%, var(--bmg-panel));
  object-fit: contain;
}

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

.bmg-welcomeModalBenefits article {
  display: grid;
  justify-items: start;
  gap: var(--bmg-space-2);
  padding: var(--bmg-space-3);
  border-left: 1px solid color-mix(in srgb, var(--bmg-border) 76%, transparent);
}

.bmg-welcomeModalBenefits article:first-child {
  border-left: 0;
  padding-left: 0;
}

.bmg-welcomeModalBenefits article:last-child {
  padding-right: 0;
}

.bmg-welcomeModalSteps {
  display: grid;
  gap: var(--bmg-space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.bmg-welcomeModalSteps li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--bmg-space-4);
  align-items: start;
}

.bmg-welcomeModalSteps li > span {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--bmg-radius-pill);
  background: var(--bmg-primary);
  color: var(--bmg-panel);
  font-size: var(--bmg-font-size-sm-alt);
  font-weight: var(--bmg-font-weight-heavy);
}

.bmg-baseSelectionModal,
.bmg-tierSelectionPanel,
.bmg-reviewSaveModal {
  display: grid;
  gap: var(--bmg-space-6);
  min-width: 0;
}

.bmg-baseSelectionSteps {
  display: flex;
  justify-content: flex-end;
  gap: var(--bmg-space-5);
}

.bmg-baseSelectionStep {
  display: inline-flex;
  align-items: center;
  gap: var(--bmg-space-2);
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-sm-alt);
  font-weight: var(--bmg-font-weight-heavy);
}

.bmg-baseSelectionStep strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--bmg-border);
  border-radius: var(--bmg-radius-pill);
  color: var(--bmg-text);
}

.bmg-baseSelectionStep.is-current,
.bmg-baseSelectionStep.is-complete {
  color: var(--bmg-primary);
}

.bmg-baseSelectionStep.is-current strong,
.bmg-baseSelectionStep.is-complete strong {
  border-color: transparent;
  background: var(--bmg-primary);
  color: var(--bmg-panel);
}

.bmg-baseModelGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--bmg-space-6);
}

.bmg-baseModelCard,
.bmg-reviewActionCard {
  border: 1px solid color-mix(in srgb, var(--bmg-border) 86%, transparent);
  border-radius: var(--bmg-radius-card);
  background: color-mix(in srgb, var(--bmg-panel) 92%, transparent);
  color: var(--bmg-text);
  box-shadow: var(--bmg-soft-shadow);
}

.bmg-baseModelCard,
.bmg-tierCard,
.bmg-tierPricePill {
  --bmg-selectable-selected-shadow: var(--bmg-cta-shadow);
  color: var(--bmg-text);
  font: inherit;
}

.bmg-baseModelCard {
  position: relative;
  display: grid;
  gap: var(--bmg-space-4);
  min-height: 316px;
  padding: var(--bmg-space-7);
  text-align: left;
}

.bmg-baseModelBadge {
  position: absolute;
  top: var(--bmg-space-5);
  left: var(--bmg-space-5);
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--bmg-radius-pill);
  background: color-mix(in srgb, var(--bmg-primary) 15%, var(--bmg-panel));
}

.bmg-baseModelBadge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: var(--bmg-icon-filter);
}

.bmg-baseModelIllustration {
  display: grid;
  place-items: center;
  min-height: 118px;
  margin: 22px 0 2px;
  border-bottom: 1px solid color-mix(in srgb, var(--bmg-border) 70%, transparent);
}

.bmg-baseModelIllustration span {
  width: min(190px, 82%);
  height: 1px;
  background: var(--bmg-line-strong);
}

.bmg-baseModelIllustration img {
  width: 68px;
  height: 68px;
  margin-top: -72px;
  object-fit: contain;
  filter: var(--bmg-icon-filter);
  opacity: 0.82;
}

.bmg-baseModelCard strong,
.bmg-tierCard strong,
.bmg-reviewPanelHeader strong,
.bmg-reviewActionCard strong,
.bmg-reviewDocumentCard strong,
.bmg-reviewSaveNotice strong,
.bmg-tierPricingStrip strong,
.bmg-tierPricePill strong {
  color: var(--bmg-text);
  font-size: var(--bmg-font-size-md);
  line-height: var(--bmg-line-height-body);
}

.bmg-baseModelCard > small,
.bmg-tierCard > small,
.bmg-reviewPanelHeader p,
.bmg-reviewActionCard small,
.bmg-reviewDocumentCard small,
.bmg-reviewSaveNotice p,
.bmg-tierPricingStrip span,
.bmg-tierPricePill span {
  margin: 0;
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-sm-alt);
  line-height: 1.28;
}

.bmg-baseModelMeta {
  display: grid;
  gap: var(--bmg-space-2);
  margin-top: auto;
}

.bmg-baseModelMeta span {
  display: flex;
  justify-content: space-between;
  gap: var(--bmg-space-4);
  padding-top: var(--bmg-space-2);
  border-top: 1px solid color-mix(in srgb, var(--bmg-border) 68%, transparent);
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-sm-alt);
}

.bmg-baseModelMeta b {
  color: var(--bmg-text);
}

.bmg-baseSelectionNote {
  display: flex;
  align-items: center;
  gap: var(--bmg-space-3);
  width: fit-content;
  max-width: 720px;
  margin: 0;
  padding: var(--bmg-space-4) var(--bmg-space-5);
  border: 1px solid color-mix(in srgb, var(--bmg-border) 86%, transparent);
  border-radius: var(--bmg-radius-card);
  color: var(--bmg-muted);
  background: color-mix(in srgb, var(--bmg-panel) 88%, transparent);
  font-size: var(--bmg-font-size-sm-alt);
  line-height: 1.3;
}

.bmg-baseSelectionNote img {
  width: 18px;
  height: 18px;
  filter: var(--bmg-icon-filter-soft);
}

.bmg-tierCardGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--bmg-space-7);
}

.bmg-tierCard {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--bmg-space-3);
  min-height: 338px;
  padding: 28px 22px 24px;
  text-align: center;
}

.bmg-tierCard > img {
  width: 62px;
  height: 62px;
  padding: 16px;
  border-radius: var(--bmg-radius-pill);
  background: color-mix(in srgb, var(--bmg-primary) 18%, var(--bmg-panel));
  object-fit: contain;
}

.bmg-tierSelectedBadge {
  position: absolute;
  top: var(--bmg-space-5);
  left: var(--bmg-space-5);
  padding: 5px 10px;
  border-radius: var(--bmg-radius-pill);
  background: color-mix(in srgb, var(--bmg-primary) 18%, var(--bmg-panel));
  color: var(--bmg-primary);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
}

.bmg-tierDivider {
  width: 100%;
  height: 1px;
  margin: var(--bmg-space-2) 0;
  background: color-mix(in srgb, var(--bmg-border) 78%, transparent);
}

.bmg-tierIncludesLabel {
  justify-self: start;
  color: var(--bmg-text);
  font-size: var(--bmg-font-size-sm-alt);
  font-weight: var(--bmg-font-weight-heavy);
}

.bmg-tierIncludes {
  display: grid;
  gap: var(--bmg-space-3);
  justify-self: stretch;
  text-align: left;
}

.bmg-tierIncludes span {
  position: relative;
  padding-left: 24px;
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-sm-alt);
}

.bmg-tierIncludes span::before {
  position: absolute;
  left: 0;
  top: 1px;
  content: "";
  width: 15px;
  height: 15px;
  border-radius: var(--bmg-radius-pill);
  background: var(--bmg-primary);
}

.bmg-tierPricingStrip {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) repeat(3, minmax(0, 1fr));
  gap: var(--bmg-space-4);
  align-items: center;
  padding: var(--bmg-space-5);
  border: 1px solid color-mix(in srgb, var(--bmg-border) 86%, transparent);
  border-radius: var(--bmg-radius-card);
  background: color-mix(in srgb, var(--bmg-panel) 88%, transparent);
}

.bmg-tierPricingStrip > div {
  display: grid;
  gap: var(--bmg-space-1);
}

.bmg-tierPricePill {
  display: grid;
  gap: var(--bmg-space-1);
  min-height: 68px;
}

.bmg-reviewSaveModal {
  grid-template-columns: minmax(250px, 0.86fr) minmax(300px, 1.18fr) minmax(260px, 0.92fr);
  grid-template-areas:
    "summary preview next"
    "summary documents documents"
    "notice notice notice";
  align-items: start;
}

.bmg-reviewSummaryPanel,
.bmg-reviewPreviewPanel,
.bmg-reviewNextPanel,
.bmg-reviewDocumentsPanel,
.bmg-reviewSaveNotice {
  border: 1px solid color-mix(in srgb, var(--bmg-border) 86%, transparent);
  border-radius: var(--bmg-radius-card);
  background: color-mix(in srgb, var(--bmg-panel) 90%, transparent);
  box-shadow: var(--bmg-soft-shadow);
}

.bmg-reviewSummaryPanel {
  grid-area: summary;
  display: grid;
  gap: var(--bmg-space-4);
  padding: var(--bmg-space-5);
}

.bmg-reviewPreviewPanel {
  grid-area: preview;
  display: grid;
  gap: var(--bmg-space-4);
  padding: var(--bmg-space-5);
}

.bmg-reviewNextPanel {
  grid-area: next;
  display: grid;
  gap: var(--bmg-space-4);
  padding: var(--bmg-space-5);
}

.bmg-reviewDocumentsPanel {
  grid-area: documents;
  display: grid;
  gap: var(--bmg-space-4);
  padding: var(--bmg-space-5);
}

.bmg-reviewSaveNotice {
  grid-area: notice;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--bmg-space-4);
  align-items: center;
  padding: var(--bmg-space-5);
}

.bmg-reviewPanelHeader {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--bmg-space-4);
  align-items: center;
}

.bmg-reviewPanelHeader img,
.bmg-reviewSaveNotice img {
  width: 42px;
  height: 42px;
  padding: 10px;
  border-radius: var(--bmg-radius-pill);
  background: color-mix(in srgb, var(--bmg-primary) 16%, var(--bmg-panel));
  object-fit: contain;
}

.bmg-reviewSpecList {
  display: grid;
  margin: 0;
}

.bmg-reviewSpecList div {
  display: grid;
  grid-template-columns: minmax(86px, 0.76fr) minmax(0, 1fr);
  gap: var(--bmg-space-4);
  padding: var(--bmg-space-3) 0;
  border-top: 1px solid color-mix(in srgb, var(--bmg-border) 70%, transparent);
}

.bmg-reviewSpecList dt,
.bmg-reviewSpecList dd {
  margin: 0;
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-sm-alt);
  line-height: 1.28;
}

.bmg-reviewSpecList dd {
  color: var(--bmg-text);
  font-weight: var(--bmg-font-weight-strong);
}

.bmg-reviewPreviewFrame {
  display: grid;
  place-items: center;
  min-height: 292px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--bmg-border) 86%, transparent);
  border-radius: var(--bmg-radius-card);
  background: color-mix(in srgb, var(--bmg-fill-soft) 76%, transparent);
}

.bmg-reviewPreviewFrame > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bmg-reviewPreviewPlaceholder {
  display: grid;
  justify-items: center;
  gap: var(--bmg-space-4);
  padding: var(--bmg-space-7);
  color: var(--bmg-muted);
  text-align: center;
  font-size: var(--bmg-font-size-sm-alt);
}

.bmg-reviewPreviewPlaceholder img {
  width: 84px;
  height: 84px;
  object-fit: contain;
  opacity: 0.72;
}

.bmg-reviewActionCard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--bmg-space-4);
  align-items: center;
  padding: var(--bmg-space-5);
  text-align: left;
}

.bmg-reviewActionCardLabel,
.bmg-reviewDocumentPreview {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  min-height: 34px;
  padding: 0 var(--bmg-space-4);
  border: 1px solid transparent;
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-primary);
  color: var(--bmg-panel);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
}

.bmg-reviewActionCardLabel {
  border: 1px solid transparent;
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-primary);
  color: var(--bmg-panel);
}

.bmg-reviewActionCard:disabled,
.bmg-modalAction:disabled {
  cursor: not-allowed;
  opacity: 0.56;
  transform: none;
}

.bmg-reviewDocumentGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--bmg-space-4);
}

.bmg-reviewDocumentCard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: var(--bmg-space-3);
  align-items: center;
  min-width: 0;
  padding: var(--bmg-space-4);
  border: 1px solid color-mix(in srgb, var(--bmg-border) 82%, transparent);
  border-radius: var(--bmg-radius-card);
}

.bmg-reviewDocumentCard > img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: var(--bmg-icon-filter);
}

.bmg-reviewDocumentCard span,
.bmg-reviewActionCard span,
.bmg-reviewSaveNotice div {
  display: grid;
  min-width: 0;
  gap: var(--bmg-space-1);
}

.bmg-reviewDocumentPreview {
  text-decoration: none;
}

@media (max-width: 1080px) {
  .bmg-modalDialog {
    padding: 22px;
  }

  .bmg-welcomeModal {
    grid-template-columns: 1fr;
  }

  .bmg-welcomeModalSection--guide {
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--bmg-border) 88%, transparent);
    padding-top: var(--bmg-space-7);
  }

  .bmg-baseModelGrid,
  .bmg-tierCardGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .bmg-reviewSaveModal {
    grid-template-columns: 1fr;
    grid-template-areas:
      "summary"
      "preview"
      "next"
      "documents"
      "notice";
  }

  .bmg-reviewDocumentGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .bmg-modal {
    padding: 0;
  }

  .bmg-modalDialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    padding: 22px 18px 18px;
  }

  .bmg-modalHeader {
    padding-right: calc(var(--bmg-control-height-xl) + var(--bmg-space-2));
  }

  .bmg-modalActions {
    flex-direction: column-reverse;
  }

  .bmg-modalAction {
    width: 100%;
    min-width: 0;
  }

  .bmg-tooltip {
    width: min(100vw - (var(--bmg-space-5) * 2), 420px);
  }

  .bmg-tooltipCard {
    gap: var(--bmg-space-4);
    padding: var(--bmg-space-5);
  }

  .bmg-tooltipHeader {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .bmg-tooltipHeaderIcon {
    grid-column: 1 / -1;
  }

  .bmg-tooltipIcon {
    width: 52px;
    height: 52px;
  }

  .bmg-tooltipTitle {
    font-size: var(--bmg-font-size-xl);
  }

  .bmg-tooltipFooter,
  .bmg-tooltipActions {
    width: 100%;
  }

  .bmg-tooltipActions > * {
    flex: 1 1 100%;
  }

  .bmg-welcomeModalPreview {
    grid-template-columns: 1fr;
  }

  .bmg-welcomeModalBenefits {
    grid-template-columns: 1fr;
  }

  .bmg-welcomeModalBenefits article {
    border-left: 0;
    border-top: 1px solid color-mix(in srgb, var(--bmg-border) 76%, transparent);
    padding: var(--bmg-space-5) 0 0;
  }

  .bmg-welcomeModalBenefits article:first-child {
    border-top: 0;
    padding-top: 0;
  }

  .bmg-baseSelectionSteps {
    justify-content: flex-start;
  }

  .bmg-baseModelGrid,
  .bmg-tierCardGrid,
  .bmg-tierPricingStrip {
    grid-template-columns: 1fr;
  }

  .bmg-baseSelectionNote {
    width: auto;
  }

  .bmg-reviewActionCard,
  .bmg-reviewDocumentCard {
    grid-template-columns: 1fr;
  }

  .bmg-reviewActionCardLabel,
  .bmg-reviewDocumentPreview {
    width: 100%;
  }
}


* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--bmg-font);
  letter-spacing: 0;
}

body.dev-scroll-enabled {
  height: auto;
  overflow: auto;
}

body.dev-scroll-enabled .configurator-shell {
  height: auto;
  min-height: 100vh;
}

body.dev-scroll-enabled .app-shell {
  height: auto;
  min-height: calc(100vh - var(--header-height));
  overflow: visible;
}

body.configurator-modal-open {
  overflow: hidden;
}

.configurator-welcome-modal-frame[hidden] {
  display: none !important;
}

.configurator-welcome-modal-frame {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: block;
  width: 100vw;
  height: 100vh;
  border: 0;
  background: transparent;
}

button,
input,
select {
  font: inherit;
}

button {
  letter-spacing: 0;
}

a {
  color: inherit;
}

.sr-only,
.hidden-measure-inputs,
.hidden-selects {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.openings-card {
  display: grid;
  gap: 18px;
}

.current-step-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-content: start;
  gap: var(--bmg-space-5) var(--bmg-space-7);
  min-height: 0;
  height: 100%;
  box-sizing: border-box;
  padding: var(--bmg-space-7);
  border: 1px solid var(--bmg-border);
  border-radius: var(--bmg-radius-lg);
  background: var(--bmg-surface);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.current-step-icon {
  width: var(--bmg-icon-stepcard-size);
  height: var(--bmg-icon-stepcard-size);
  border-radius: var(--bmg-radius-md);
  object-fit: contain;
  background: var(--bmg-surface-soft);
  padding: var(--bmg-space-3);
}

.current-step-logo {
  object-fit: contain;
  padding: var(--bmg-space-2);
}

.current-step-copy {
  min-width: 0;
}

.current-step-copy span {
  display: block;
  color: var(--bmg-primary);
  font-size: var(--bmg-font-size-xs);
  font-weight: 950;
  letter-spacing: 0.08em;
}

.current-step-copy h1 {
  margin: 6px 0 6px;
  color: var(--bmg-text);
  font-size: 1.24rem;
  line-height: 1.08;
}

.current-step-copy p {
  margin: 0;
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-sm-alt);
  font-weight: 750;
  line-height: 1.35;
}

.current-step-divider {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--bmg-border);
}

.current-step-tasks {
  position: relative;
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.current-step-tasks::before {
  position: absolute;
  left: 13px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--bmg-border) 0 5px, transparent 5px 10px);
  content: "";
}

.current-step-tasks li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0 16px;
  min-height: 34px;
  align-items: start;
  min-width: 0;
  color: var(--bmg-text);
}

.current-step-tasks li > span {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  background-color: currentColor;
  color: var(--bmg-muted);
  -webkit-mask: url("/ui-assets/icons/filled/LensFilled.svg") center / contain no-repeat;
  mask: url("/ui-assets/icons/filled/LensFilled.svg") center / contain no-repeat;
}

.current-step-tasks strong,
.current-step-tasks small {
  grid-column: 2;
  display: block;
  min-width: 0;
}

.current-step-tasks strong {
  font-size: 0.9rem;
  line-height: 1.15;
}

.current-step-tasks small {
  margin-top: 2px;
  color: var(--bmg-muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
}

.current-step-tasks .is-complete > span,
.current-step-tasks .is-current > span {
  color: var(--bmg-primary);
}

.current-step-tasks .is-complete > span {
  background-color: currentColor;
  -webkit-mask: url("/ui-assets/icons/filled/CircleCheckedFilled.svg") center / contain no-repeat;
  mask: url("/ui-assets/icons/filled/CircleCheckedFilled.svg") center / contain no-repeat;
}

.current-step-tasks .is-complete > span::before {
  content: none;
}

.current-step-tasks .is-complete > span::before {
  content: none;
}

.current-step-tasks .is-current > span {
  background-color: currentColor;
  -webkit-mask: url("/ui-assets/icons/filled/ModeStandbyFilled.svg") center / contain no-repeat;
  mask: url("/ui-assets/icons/filled/ModeStandbyFilled.svg") center / contain no-repeat;
}

.current-step-tasks .is-current > span::before {
  content: none;
}

.current-step-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--bmg-border);
  color: var(--bmg-muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.current-step-footer span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 2px solid var(--bmg-primary);
  border-radius: 999px;
  color: var(--bmg-primary);
}

.current-step-footer span::before {
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-1px) rotate(-45deg);
}

.current-step-controls {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  min-height: 0;
  padding-top: 0;
  overflow: auto;
}

.current-step-actions {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--bmg-border);
}

.current-step-card.has-nested-controls .current-step-tasks,
.current-step-card.has-nested-controls .current-step-footer,
.current-step-card:has(.current-step-controls) .current-step-tasks,
.current-step-card:has(.current-step-controls) .current-step-footer {
  display: none;
}

.current-step-card.has-nested-controls .current-step-controls,
.current-step-card:has(.current-step-controls) .current-step-controls {
  position: relative;
  display: grid;
  align-content: start;
  min-height: 0;
  overflow: auto;
}

.design-card > .current-step-card.has-nested-controls,
.design-card > .current-step-card:has(.current-step-controls) {
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  min-height: 0;
  height: 100%;
  align-self: stretch;
}

.current-step-card.has-nested-controls .style-accordion,
.current-step-card:has(.current-step-controls) .style-accordion {
  position: relative;
  gap: 0;
  min-height: 0;
}

.current-step-card.has-nested-controls .style-accordion::before,
.current-step-card:has(.current-step-controls) .style-accordion::before {
  position: absolute;
  left: 13px;
  top: 18px;
  bottom: 18px;
  width: 2px;
  background: repeating-linear-gradient(to bottom, var(--bmg-border) 0 5px, transparent 5px 10px);
  content: "";
}

.current-step-card.has-nested-controls .style-accordion-item,
.current-step-card:has(.current-step-controls) .style-accordion-item {
  position: relative;
  z-index: 1;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.current-step-card.has-nested-controls .style-accordion-item + .style-accordion-item,
.current-step-card:has(.current-step-controls) .style-accordion-item + .style-accordion-item {
  margin-top: 10px;
}

.current-step-card.has-nested-controls .style-accordion-header,
.current-step-card:has(.current-step-controls) .style-accordion-header {
  grid-template-columns: 28px max-content minmax(0, 1fr);
  gap: 0 8px;
  min-height: 34px;
  padding: 0;
  background: transparent;
}

.current-step-card.has-nested-controls .accordion-state,
.current-step-card:has(.current-step-controls) .accordion-state {
  width: 28px;
  height: 28px;
  border-width: 2px;
}

.current-step-card.has-nested-controls .accordion-state.is-current,
.current-step-card:has(.current-step-controls) .accordion-state.is-current {
  border-width: 3px;
  background: var(--bmg-surface);
}

.current-step-card.has-nested-controls .accordion-state.is-current::before,
.current-step-card:has(.current-step-controls) .accordion-state.is-current::before {
  width: 9px;
  height: 9px;
  background: var(--bmg-primary);
}

.current-step-card.has-nested-controls .accordion-title,
.current-step-card:has(.current-step-controls) .accordion-title {
  align-self: center;
  font-size: 0.9rem;
  line-height: 1.15;
}

.current-step-card.has-nested-controls .accordion-title::after,
.current-step-card:has(.current-step-controls) .accordion-title::after {
  content: ":";
}

.current-step-card.has-nested-controls .accordion-summary,
.current-step-card:has(.current-step-controls) .accordion-summary {
  grid-column: auto;
  align-self: center;
  min-width: 0;
  color: var(--bmg-muted);
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.current-step-card.has-nested-controls .style-accordion-panel,
.current-step-card:has(.current-step-controls) .style-accordion-panel {
  margin: 8px 0 0 44px;
  padding: 10px;
  border: 1px solid var(--bmg-border);
  border-radius: var(--bmg-radius-card);
  background: var(--bmg-surface-soft);
}

.current-step-card.has-nested-controls .style-accordion-panel .control-section,
.current-step-card:has(.current-step-controls) .style-accordion-panel .control-section {
  padding-top: 0;
}

.current-step-card:has(.current-step-controls) .opening-count-control {
  display: none;
}

.current-step-card:has(.current-step-controls) .opening-schedule-card {
  display: grid;
  gap: var(--bmg-space-2);
  padding: var(--bmg-space-3);
  border: var(--bmg-border-width-thin) solid var(--bmg-line);
  border-radius: var(--bmg-radius-card);
  background: var(--bmg-panel);
}

.current-step-card:has(.current-step-controls) .opening-schedule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--bmg-space-3);
  color: var(--bmg-primary);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-extra);
  letter-spacing: 0.08em;
}

.current-step-card:has(.current-step-controls) .opening-type-menu {
  display: grid;
  gap: var(--bmg-space-2);
  min-height: var(--bmg-control-height-lg);
}

.current-step-card:has(.current-step-controls) .opening-type-menu--unified {
  min-height: 0;
}

.current-step-card:has(.current-step-controls) .opening-schedule-menu {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--bmg-space-2);
  min-height: var(--bmg-control-height-sm);
}

.current-step-card:has(.current-step-controls) .opening-tool-button,
.current-step-card:has(.current-step-controls) .opening-schedule-chip {
  display: inline-grid;
  place-items: center;
  min-width: var(--bmg-control-height-sm);
  height: var(--bmg-control-height-sm);
  border: var(--bmg-border-width-thin) solid var(--bmg-line);
  border-radius: var(--bmg-radius-pill);
  background: var(--bmg-panel);
  color: var(--bmg-ink);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-extra);
  line-height: var(--bmg-line-height-tight);
  cursor: pointer;
}

.current-step-card:has(.current-step-controls) .opening-tool-button {
  grid-template-rows: auto auto;
  grid-template-columns: auto minmax(0, 1fr);
  place-items: center start;
  min-width: min(100%, 8.75rem);
  height: auto;
  min-height: var(--bmg-control-height-lg);
  padding: var(--bmg-space-2);
  gap: 0 var(--bmg-space-2);
  border-color: var(--bmg-primary);
  background: var(--bmg-fill-soft);
  color: var(--bmg-ink);
  text-align: left;
}

.current-step-card:has(.current-step-controls) .opening-tool-button img {
  grid-row: 1 / 3;
  width: var(--bmg-space-5);
  height: var(--bmg-space-5);
  filter: var(--bmg-icon-filter);
}

.current-step-card:has(.current-step-controls) .opening-tool-button span {
  min-width: 0;
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-extra);
  line-height: var(--bmg-line-height-tight);
}

.current-step-card:has(.current-step-controls) .opening-tool-button small {
  min-width: 0;
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
  line-height: var(--bmg-line-height-tight);
}

.current-step-card:has(.current-step-controls) .opening-schedule-chip {
  padding: 0 var(--bmg-space-3);
  letter-spacing: 0.03em;
}

.current-step-card:has(.current-step-controls) .opening-schedule-chip.is-selected {
  border-color: var(--bmg-primary);
  background: var(--bmg-fill-soft);
  color: var(--bmg-primary);
  box-shadow: inset 0 0 0 var(--bmg-border-width-thin) var(--bmg-primary);
}

.current-step-card:has(.current-step-controls) .opening-tool-button:hover,
.current-step-card:has(.current-step-controls) .opening-tool-button:focus-visible,
.current-step-card:has(.current-step-controls) .opening-schedule-chip:hover,
.current-step-card:has(.current-step-controls) .opening-schedule-chip:focus-visible {
  border-color: var(--bmg-primary);
  box-shadow: var(--bmg-focus-ring);
}

.current-step-card:has(.current-step-controls) .opening-type-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--bmg-space-3);
  min-height: var(--bmg-control-height-lg);
  padding: var(--bmg-space-2);
  border: var(--bmg-border-width-thin) solid var(--bmg-line);
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-panel);
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.current-step-card:has(.current-step-controls) .opening-type-row:has(.opening-type-add) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.current-step-card:has(.current-step-controls) .opening-type-row.is-selected {
  border-color: var(--bmg-primary);
  background: var(--bmg-fill-soft);
}

.current-step-card:has(.current-step-controls) .opening-type-code {
  display: inline-grid;
  place-items: center;
  min-width: var(--bmg-control-height-sm);
  height: var(--bmg-control-height-sm);
  border-radius: var(--bmg-radius-sm);
  background: var(--bmg-fill-soft);
  color: var(--bmg-primary);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-extra);
  letter-spacing: 0.04em;
}

.opening-editor-popover .opening-type-code {
  display: inline-grid;
  place-items: center;
  min-width: var(--bmg-control-height-sm);
  height: var(--bmg-control-height-sm);
  border-radius: var(--bmg-radius-sm);
  background: var(--bmg-fill-soft);
  color: var(--bmg-primary);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-extra);
  letter-spacing: 0.04em;
}

.current-step-card:has(.current-step-controls) .opening-type-copy {
  display: grid;
  min-width: 0;
  gap: var(--bmg-space-1);
}

.current-step-card:has(.current-step-controls) .opening-type-copy strong {
  color: var(--bmg-ink);
  font-size: var(--bmg-font-size-sm-alt);
  font-weight: var(--bmg-font-weight-extra);
  line-height: var(--bmg-line-height-default);
}

.current-step-card:has(.current-step-controls) .opening-type-copy small {
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
  line-height: var(--bmg-line-height-body);
}

.current-step-card:has(.current-step-controls) .opening-type-add {
  display: inline-grid;
  place-items: center;
  width: var(--bmg-control-height-sm);
  height: var(--bmg-control-height-sm);
  border: var(--bmg-border-width-thin) solid var(--bmg-primary);
  border-radius: var(--bmg-radius-pill);
  background: var(--bmg-primary);
  color: var(--bmg-panel);
  font-size: var(--bmg-font-size-lg-alt);
  font-weight: var(--bmg-font-weight-extra);
  line-height: var(--bmg-line-height-tight);
  cursor: pointer;
}

.current-step-card:has(.current-step-controls) .opening-type-add img {
  width: 22px;
  height: 22px;
  filter: var(--bmg-icon-filter);
}

.current-step-card:has(.current-step-controls) .opening-type-add:hover,
.current-step-card:has(.current-step-controls) .opening-type-add:focus-visible {
  background: var(--bmg-primary-strong);
  border-color: var(--bmg-primary-strong);
  box-shadow: var(--bmg-focus-ring);
}

.current-step-card:has(.current-step-controls) .opening-schedule-details {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: var(--bmg-space-2) var(--bmg-space-3);
  padding-top: var(--bmg-space-2);
  border-top: var(--bmg-border-width-thin) solid var(--bmg-line);
}

.opening-editor-popover {
  position: absolute;
  right: var(--bmg-space-8);
  bottom: var(--bmg-space-8);
  z-index: 9;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  width: min(36rem, calc(100% - var(--bmg-space-8)));
  max-height: calc(100% - var(--bmg-space-8));
  gap: var(--bmg-space-2) var(--bmg-space-3);
  padding: var(--bmg-space-4);
  overflow: auto;
  border: var(--bmg-border-width-thin) solid var(--bmg-primary);
  border-radius: var(--bmg-radius-card);
  background: var(--bmg-panel);
  box-shadow: var(--bmg-soft-shadow);
  pointer-events: auto;
}

.opening-editor-popover[hidden] {
  display: none;
}

.opening-context-menu {
  position: fixed;
  z-index: 10020;
  display: grid;
  min-width: min(16rem, calc(100vw - var(--bmg-space-8)));
  padding: var(--bmg-space-2);
  gap: var(--bmg-space-1);
  border: var(--bmg-border-width-thin) solid var(--bmg-line);
  border-radius: var(--bmg-radius-card);
  background: var(--bmg-panel);
  box-shadow: var(--bmg-soft-shadow);
}

.opening-context-menu[hidden] {
  display: none;
}

.opening-context-menu__title {
  display: block;
  padding: var(--bmg-space-1) var(--bmg-space-3);
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-extra);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.opening-context-menu button {
  display: flex;
  align-items: center;
  min-height: var(--bmg-control-height-sm);
  padding: 0 var(--bmg-space-3);
  border: var(--bmg-border-width-thin) solid transparent;
  border-radius: var(--bmg-radius-control);
  background: transparent;
  color: var(--bmg-ink);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-extra);
  text-align: left;
  cursor: pointer;
}

.opening-context-menu button:hover,
.opening-context-menu button:focus-visible {
  border-color: var(--bmg-primary);
  background: var(--bmg-fill-soft);
  box-shadow: var(--bmg-focus-ring);
}

.opening-context-menu button:disabled {
  color: var(--bmg-muted);
  cursor: not-allowed;
  opacity: 0.58;
}

.opening-context-menu button:disabled:hover,
.opening-context-menu button:disabled:focus-visible {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
}

.opening-editor-close {
  display: inline-grid;
  place-items: center;
  width: var(--bmg-control-height-sm);
  height: var(--bmg-control-height-sm);
  border: var(--bmg-border-width-thin) solid var(--bmg-line);
  border-radius: var(--bmg-radius-pill);
  background: var(--bmg-panel);
  color: var(--bmg-ink);
  font-size: var(--bmg-font-size-sm-alt);
  font-weight: var(--bmg-font-weight-extra);
  cursor: pointer;
}

.opening-editor-close:hover,
.opening-editor-close:focus-visible {
  border-color: var(--bmg-primary);
  box-shadow: var(--bmg-focus-ring);
}

.current-step-card:has(.current-step-controls) .opening-schedule-details strong {
  color: var(--bmg-ink);
  font-size: var(--bmg-font-size-sm-alt);
  font-weight: var(--bmg-font-weight-extra);
}

.opening-editor-popover strong,
.opening-editor-popover .opening-type-code {
  align-self: center;
}

.current-step-card:has(.current-step-controls) .opening-schedule-details small {
  grid-column: 1 / -1;
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
  line-height: var(--bmg-line-height-body);
}

.opening-editor-popover small {
  grid-column: 1 / -1;
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
  line-height: var(--bmg-line-height-body);
}

.current-step-card:has(.current-step-controls) .opening-schedule-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bmg-space-2);
}

.opening-editor-popover .opening-schedule-fields {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bmg-space-2);
}

.current-step-card:has(.current-step-controls) .opening-schedule-fields label {
  display: grid;
  gap: var(--bmg-space-1);
  color: var(--bmg-ink-soft);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
}

.opening-editor-popover .opening-schedule-fields label {
  display: grid;
  gap: var(--bmg-space-1);
  color: var(--bmg-ink-soft);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
}

.current-step-card:has(.current-step-controls) .opening-schedule-fields input,
.current-step-card:has(.current-step-controls) .opening-schedule-fields select {
  min-height: var(--bmg-control-height-sm);
}

.opening-editor-popover .opening-schedule-fields input,
.opening-editor-popover .opening-schedule-fields select {
  min-height: var(--bmg-control-height-sm);
}

.current-step-card:has(.current-step-controls) .opening-schedule-actions {
  grid-column: 1 / -1;
  display: grid;
  gap: var(--bmg-space-2);
}

.opening-editor-popover .opening-schedule-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--bmg-space-2);
}

.current-step-card:has(.current-step-controls) .opening-schedule-actions button {
  min-height: var(--bmg-control-height-sm);
  border: var(--bmg-border-width-thin) solid var(--bmg-line);
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-panel);
  color: var(--bmg-ink);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-extra);
  cursor: pointer;
}

.opening-editor-popover .opening-schedule-actions button {
  min-height: var(--bmg-control-height-sm);
  border: var(--bmg-border-width-thin) solid var(--bmg-line);
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-panel);
  color: var(--bmg-ink);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-extra);
  cursor: pointer;
}

.current-step-card:has(.current-step-controls) .opening-schedule-actions button:first-child {
  border-color: var(--bmg-primary);
  background: var(--bmg-primary);
  color: var(--bmg-panel);
}

.opening-editor-popover .opening-schedule-actions button:first-child {
  border-color: var(--bmg-primary);
  background: var(--bmg-primary);
  color: var(--bmg-panel);
}

.current-step-card:has(.current-step-controls) .opening-schedule-actions button:hover,
.current-step-card:has(.current-step-controls) .opening-schedule-actions button:focus-visible {
  border-color: var(--bmg-primary);
  box-shadow: var(--bmg-focus-ring);
}

.opening-editor-popover .opening-schedule-actions button:hover,
.opening-editor-popover .opening-schedule-actions button:focus-visible {
  border-color: var(--bmg-primary);
  box-shadow: var(--bmg-focus-ring);
}

.current-step-card:has(.current-step-controls) .opening-schedule-actions .opening-schedule-action--danger {
  border-color: var(--bmg-danger);
  background: var(--bmg-panel);
  color: var(--bmg-danger);
}

.opening-editor-popover .opening-schedule-actions .opening-schedule-action--danger {
  border-color: var(--bmg-danger);
  background: var(--bmg-panel);
  color: var(--bmg-danger);
}

.current-step-card:has(.current-step-controls) .opening-schedule-actions .opening-schedule-action--danger:hover,
.current-step-card:has(.current-step-controls) .opening-schedule-actions .opening-schedule-action--danger:focus-visible {
  border-color: var(--bmg-danger);
  box-shadow: var(--bmg-focus-ring);
}

.opening-editor-popover .opening-schedule-actions .opening-schedule-action--danger:hover,
.opening-editor-popover .opening-schedule-actions .opening-schedule-action--danger:focus-visible {
  border-color: var(--bmg-danger);
  box-shadow: var(--bmg-focus-ring);
}

.current-step-card:has(.current-step-controls) .opening-part-tracker {
  margin-top: var(--bmg-space-2);
}

.current-step-card:has(.current-step-controls) .opening-tracker-note {
  margin: 0;
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
  line-height: var(--bmg-line-height-body);
}

.left-panel-scroll {
  min-height: 0;
  overflow: auto;
  padding-right: 0;
}

.next-step-button {
  display: flex;
  align-items: center;
  justify-content: center;
  place-items: center;
  gap: 4px;
  min-height: 44px;
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-primary);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 950;
  text-decoration: none;
}

.next-step-button span {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: 0;
  line-height: 1;
  opacity: 1;
}

.next-step-button strong {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
}

.next-step-button:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(47, 138, 95, 0.22);
}

.design-step-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--bmg-radius-sm);
  background: var(--bmg-fill-soft);
}

.control-panel-label {
  margin-bottom: -10px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.design-step-tab {
  display: grid;
  place-items: center;
  min-height: 46px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}

.design-step-tab:last-child {
  border-right: 0;
}

.design-step-tab span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--bmg-fill-soft);
  color: var(--muted);
  font-size: var(--bmg-font-size-xs);
  font-weight: 950;
}

.design-step-tab.is-active {
  background: var(--bmg-paper);
  box-shadow: inset 0 -2px 0 var(--navy);
}

.design-step-tab.is-active span {
  background: var(--green);
  color: var(--bmg-paper);
}

.design-step-name {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 950;
  text-transform: uppercase;
}

.design-step-description {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.35;
}

.design-tab-panel {
  display: none;
  gap: 18px;
}

.design-tab-panel.is-active {
  display: grid;
}

.style-accordion {
  display: grid;
  gap: 10px;
}

.style-accordion-item {
  overflow: hidden;
  border: 1px solid var(--bmg-border);
  border-radius: var(--bmg-radius-card);
  background: var(--bmg-surface);
}

.style-accordion-item.is-open {
  box-shadow: 0 6px 18px rgba(19, 37, 64, 0.08);
}

.style-accordion-header {
  display: grid;
  grid-template-columns: 18px minmax(76px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  border: 0;
  background: var(--bmg-surface);
  color: var(--bmg-text);
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.style-accordion-header:focus-visible {
  border-color: transparent;
  box-shadow: inset 0 0 0 3px rgba(47, 138, 95, 0.18);
}

.accordion-state {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border: 1px solid var(--bmg-border);
  border-radius: 999px;
  background: var(--bmg-paper);
}

.accordion-state.is-complete,
.accordion-state.is-current {
  border-color: var(--bmg-primary);
  background: var(--bmg-primary);
}

.accordion-state.is-complete::before {
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--bmg-paper);
  border-bottom: 2px solid var(--bmg-paper);
  content: "";
  transform: rotate(-45deg);
}

.accordion-state.is-current::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--bmg-paper);
  content: "";
}

.accordion-title {
  color: var(--bmg-text);
  font-size: 0.82rem;
  font-weight: 950;
}

.accordion-summary {
  min-width: 0;
  color: var(--bmg-muted);
  font-size: 0.72rem;
  font-weight: 800;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

.style-accordion-panel {
  display: grid;
  gap: 11px;
  padding: 0 12px 12px;
  border-top: 1px solid var(--bmg-border);
  background: var(--bmg-surface-soft);
}

.style-accordion-panel[hidden] {
  display: none;
}

.style-accordion-panel .control-section {
  padding-top: 12px;
}

.palette-review {
  display: grid;
  gap: 9px;
  padding-top: 12px;
}

.palette-review div {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid var(--bmg-border);
  border-radius: var(--bmg-radius-control);
  background: #fff;
}

.palette-review span {
  color: var(--bmg-muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.palette-review strong {
  color: var(--bmg-text);
  font-size: 0.78rem;
  font-weight: 900;
}

.section-kicker {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 950;
  text-transform: uppercase;
}

.section-kicker span {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  font-size: 0.78rem;
}

.control-section {
  display: grid;
  gap: 11px;
}

.control-section h2,
.live-card h2,
.hidden-editor-card h2,
.section-heading h2,
.review-card h2,
.ribbon-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 850;
}

.is-hidden {
  display: none !important;
}

input,
select {
  width: 100%;
  min-height: var(--bmg-control-height-xs);
  border: var(--bmg-border-width-thin) solid var(--bmg-input-border);
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-panel);
  color: var(--bmg-text);
  padding: 0 var(--bmg-space-3);
  outline: none;
  font-size: var(--bmg-font-size-sm);
  line-height: var(--bmg-line-height-body);
}

input:focus,
select:focus,
button:focus-visible,
summary:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 138, 95, 0.15);
  outline: none;
}

input[type="checkbox"] {
  min-height: 17px;
  width: 17px;
  accent-color: var(--green);
}

input[type="range"] {
  min-height: auto;
  padding: 0;
  accent-color: var(--orange);
}

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

.dimension-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--bmg-space-2);
}

.dimension-field-label {
  gap: var(--bmg-space-2);
}

.dimension-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  min-height: var(--bmg-control-height-xs);
  border: var(--bmg-border-width-thin) solid var(--bmg-input-border);
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-panel);
  overflow: hidden;
}

.input-with-unit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  min-width: 0;
}

.dimension-field .input-with-unit + .input-with-unit {
  border-left: var(--bmg-border-width-thin) solid var(--bmg-input-border);
}

.input-with-unit input,
.dimension-field .input-with-unit input {
  min-height: calc(var(--bmg-control-height-xs) - 2px);
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 0 var(--bmg-space-2) 0 var(--bmg-space-3);
  text-align: left;
}

.input-with-unit input:focus,
.dimension-field .input-with-unit input:focus {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bmg-primary) 46%, transparent);
}

.input-with-unit small {
  display: grid;
  place-items: center;
  min-height: calc(var(--bmg-control-height-xs) - 2px);
  border: 0;
  background: transparent;
  color: var(--bmg-muted);
  padding: 0 var(--bmg-space-3) 0 0;
  font-size: var(--bmg-font-size-xs);
  font-weight: 900;
}

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

.roof-card {
  position: relative;
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: var(--bmg-radius-sm);
  background: var(--bmg-paper);
  color: var(--ink);
  cursor: pointer;
}

.roof-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.roof-card:has(input:checked) {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy), 0 4px 14px rgba(6, 34, 74, 0.08);
}

.roof-card.is-disabled {
  opacity: 0.58;
}

.roof-card strong {
  font-size: 0.68rem;
  font-weight: 850;
}

.roof-icon {
  position: relative;
  display: block;
  width: 34px;
  height: 24px;
}

.roof-icon::before,
.roof-icon::after {
  position: absolute;
  content: "";
}

.roof-gable::before {
  left: 3px;
  bottom: 4px;
  width: 28px;
  height: 16px;
  border: 1.8px solid var(--ink-soft);
  border-top: 0;
}

.roof-gable::after {
  left: 4px;
  top: 2px;
  width: 24px;
  height: 24px;
  border-left: 1.8px solid var(--ink-soft);
  border-top: 1.8px solid var(--ink-soft);
  transform: rotate(45deg);
}

.roof-hip::before {
  left: 3px;
  bottom: 4px;
  width: 28px;
  height: 15px;
  border: 1.8px solid var(--ink-soft);
}

.roof-hip::after {
  left: 8px;
  top: 4px;
  width: 19px;
  border-top: 1.8px solid var(--ink-soft);
  transform: skewY(-22deg);
}

.roof-shed::before,
.roof-mono::before {
  left: 3px;
  bottom: 5px;
  width: 28px;
  height: 14px;
  border: 1.8px solid var(--ink-soft);
  transform: skewY(7deg);
}

.roof-mono::before {
  transform: skewY(-7deg);
}

.door-size-row {
  display: grid;
  grid-template-columns: 1fr 1fr 34px;
  gap: 10px;
}

.door-size-row span,
.door-size-row button,
.wide-action {
  display: grid;
  place-items: center;
  min-height: var(--bmg-control-height-xs);
  border: var(--bmg-border-width-thin) solid var(--bmg-input-border);
  border-radius: var(--bmg-radius-sm);
  background: var(--bmg-panel);
  color: var(--bmg-text);
  font-size: var(--bmg-font-size-sm);
  font-weight: 850;
}

.ridge-direction-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border: var(--bmg-border-width-thin) solid var(--bmg-input-border);
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-surface-soft);
}

.ridge-direction-option {
  min-height: calc(var(--bmg-control-height-xs) - 8px);
  border: 0;
  border-radius: var(--bmg-radius-xs);
  background: transparent;
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-xs);
  font-weight: 950;
  cursor: pointer;
}

.ridge-direction-option.is-active {
  background: var(--bmg-panel);
  color: var(--bmg-text);
  box-shadow: var(--bmg-provider-shadow);
}

.door-size-row button,
.wide-action,
.ghost-button,
.tab,
.tier-column,
.primary-review,
.tool-actions button,
.danger-button,
.secondary-action {
  cursor: pointer;
}

.wide-action {
  grid-template-columns: auto auto;
  gap: 9px;
  width: 100%;
}

.floor-plan-icon {
  width: 17px;
  height: 17px;
  border: 2px dashed var(--ink-soft);
  border-radius: 3px;
}

.advanced-drawer {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.advanced-drawer summary {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
}

.advanced-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 9px;
}

.live-card {
  display: grid;
  gap: 6px;
}

.live-card p,
.finish-card p,
.packages-card p,
.review-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.35;
}

.live-card strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.72rem;
  line-height: 1;
}

.live-card a,
.review-card a {
  margin-top: 8px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 850;
}

.hidden-editor-card {
  display: grid;
  gap: 12px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

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

.tool-actions button,
.danger-button,
.secondary-action {
  min-height: var(--bmg-control-height-xs);
  border: var(--bmg-border-width-thin) solid var(--bmg-input-border);
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-panel);
  color: var(--bmg-text);
  font-size: var(--bmg-font-size-sm);
  font-weight: 900;
}

.danger-button {
  color: var(--danger);
}

.danger-button:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

.tool-message {
  grid-column: 1 / -1;
  min-height: 1.2em;
  margin: 0;
  color: var(--danger);
  font-size: 0.75rem;
  font-weight: 900;
}

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

.editor-grid label:has(#trimColor) {
  display: none;
}

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

.opening-option-tabs,
.opening-choices {
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.opening-option-tab {
  min-width: 62px;
  min-height: var(--bmg-control-height-xs);
  border: var(--bmg-border-width-thin) solid var(--bmg-input-border);
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-panel);
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-sm);
  font-weight: 900;
}

.opening-option-tab.is-active {
  border-color: var(--bmg-accent);
  color: var(--bmg-text);
}

.opening-choice {
  min-width: 136px;
  border: var(--bmg-border-width-thin) solid var(--bmg-input-border);
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-panel);
  padding: var(--bmg-space-3);
  text-align: left;
}

.opening-choice.is-selected {
  border-color: var(--bmg-accent);
  box-shadow: 0 0 0 3px rgba(246, 166, 23, 0.14);
}

.opening-choice-code,
.opening-choice-main,
.opening-choice-meta {
  display: block;
}

.opening-choice-code {
  color: var(--orange-dark);
  font-weight: 950;
}

.opening-choice-main {
  margin-top: 2px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 900;
}

.opening-choice-meta {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.workspace {
  display: grid;
  gap: 20px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  align-content: stretch;
  justify-items: center;
  overflow: hidden;
}

.preview-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.workspace:not([data-view]) .preview-card,
.workspace[data-view="rendered"] .preview-card {
  max-width: 100%;
}

.workspace[data-view="plan"] .preview-card,
.workspace[data-view="elevations"] .preview-card,
.workspace[data-view="wallAssembly"] .preview-card {
  grid-template-rows: minmax(0, 1fr);
  max-width: 100%;
}

.workspace > .finish-card,
.workspace > .packages-card,
.workspace > .review-card,
.workspace > .cost-ribbon {
  display: none;
}

.view-tabs {
  position: absolute;
  left: 16px;
  top: 50%;
  z-index: 8;
  display: grid;
  grid-auto-rows: 48px;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(207, 216, 227, 0.82);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 24px rgba(19, 37, 64, 0.12);
  transform: translateY(-50%);
  pointer-events: auto;
}

.tab {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--bmg-muted);
  padding: 0;
  font-weight: 850;
}

.tab.is-active {
  border-color: var(--bmg-primary);
  background: #fff;
  color: var(--bmg-text);
  box-shadow: 0 0 0 3px rgba(47, 138, 95, 0.14);
}

.tab img {
  width: 27px;
  height: 27px;
  object-fit: contain;
  filter: var(--bmg-icon-filter-soft);
}

.tab.is-active img {
  filter: var(--bmg-icon-filter);
}

.tab span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.visual-stage {
  position: relative;
  width: 100%;
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
  background:
    linear-gradient(180deg, rgba(221, 235, 242, 0.95) 0 50%, rgba(169, 184, 153, 0.85) 50% 100%);
  overflow: hidden;
}

.workspace[data-view="plan"] .visual-stage,
.workspace[data-view="elevations"] .visual-stage,
.workspace[data-view="wallAssembly"] .visual-stage {
  aspect-ratio: auto;
  max-width: none;
  height: 100%;
  min-height: 0;
  background: #f8f9f7;
}

canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#renderCanvas {
  display: block;
  cursor: grab;
  touch-action: none;
}

#renderCanvas:active {
  cursor: grabbing;
}

.rendered-dimension-label-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
}

.visual-stage:not([data-view="rendered"]) .rendered-dimension-label-layer {
  display: none;
}

.rendered-dimension-label {
  position: absolute;
  display: inline-grid;
  place-items: center;
  min-width: calc(var(--bmg-space-6) * 2);
  padding: var(--bmg-space-1) var(--bmg-space-2);
  transform: translate(-50%, -50%);
  border: var(--bmg-border-width-thin) solid color-mix(in srgb, var(--bmg-primary) 44%, transparent);
  border-radius: var(--bmg-radius-sm);
  background: color-mix(in srgb, var(--bmg-ink) 88%, transparent);
  color: var(--bmg-paper);
  box-shadow: var(--bmg-shadow);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
  line-height: var(--bmg-line-height-tight);
  white-space: nowrap;
}

#planCanvas,
#elevationCanvas {
  opacity: 0;
  pointer-events: none;
}

.visual-stage[data-view="plan"] #renderCanvas,
.visual-stage[data-view="elevations"] #renderCanvas,
.visual-stage[data-view="wallAssembly"] #renderCanvas {
  opacity: 0;
}

.visual-stage[data-view="plan"] #planCanvas {
  opacity: 1;
  pointer-events: auto;
  cursor: crosshair;
}

.visual-stage[data-view="elevations"] #elevationCanvas,
.visual-stage[data-view="wallAssembly"] #elevationCanvas {
  opacity: 1;
  pointer-events: auto;
}

.elevation-opening-palette {
  display: grid;
  gap: var(--bmg-space-2);
  padding-bottom: var(--bmg-space-2);
  border-bottom: var(--bmg-border-width-thin) solid var(--bmg-line);
}

.opening-sidebar-palette {
  width: 100%;
}

.opening-sidebar-palette .elevation-opening-palette__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.opening-sidebar-palette .elevation-opening-palette__item {
  min-width: 0;
}

.opening-sidebar-palette .elevation-opening-palette__item--create {
  grid-template-columns: 1fr;
  place-items: center;
  align-content: center;
  min-height: calc(var(--bmg-control-height-xl) + var(--bmg-space-6));
  padding: var(--bmg-space-2);
  gap: var(--bmg-space-1);
  text-align: center;
}

.opening-sidebar-palette .elevation-opening-palette__item--create img {
  grid-row: auto;
  align-self: center;
  width: var(--bmg-control-height-sm);
  height: var(--bmg-control-height-sm);
}

.opening-sidebar-palette .elevation-opening-palette__item--create strong {
  display: none;
}

.opening-sidebar-palette .elevation-opening-palette__item--create small {
  display: none;
}

.visual-stage .elevation-opening-palette {
  display: none;
  position: absolute;
  z-index: 8;
  border: var(--bmg-border-width-thin) solid var(--bmg-line);
  border-radius: var(--bmg-radius-card);
  background: var(--bmg-panel);
  box-shadow: var(--bmg-soft-shadow);
}

.visual-stage[data-view="elevations"] .elevation-opening-palette {
  display: grid;
}

.visual-stage .elevation-opening-palette {
  top: var(--bmg-space-4);
  left: var(--bmg-space-4);
  width: min(240px, calc(100% - var(--bmg-space-8)));
  gap: var(--bmg-space-2);
  padding: var(--bmg-space-3);
}

.elevation-opening-palette__eyebrow {
  color: var(--bmg-primary);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-extra);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.elevation-opening-palette__list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--bmg-space-2);
}

.elevation-opening-palette__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  min-width: var(--bmg-control-height-xl);
  min-height: var(--bmg-control-height-sm);
  padding: var(--bmg-space-2) var(--bmg-space-3);
  gap: 0 var(--bmg-space-2);
  border: var(--bmg-border-width-thin) solid var(--bmg-line);
  border-radius: var(--bmg-radius-control);
  background: var(--bmg-panel);
  color: var(--bmg-ink);
  text-align: left;
  cursor: grab;
}

.elevation-opening-palette__item img {
  grid-row: 1 / 3;
  align-self: center;
  width: var(--bmg-space-5);
  height: var(--bmg-space-5);
  filter: var(--bmg-icon-filter);
}

.elevation-opening-palette__item:active {
  cursor: grabbing;
}

.elevation-opening-palette__item--create {
  border-color: var(--bmg-primary);
  background: var(--bmg-fill-soft);
}

.elevation-opening-palette__item strong {
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-extra);
  line-height: var(--bmg-line-height-tight);
}

.elevation-opening-palette__item small {
  color: var(--bmg-muted);
  font-size: var(--bmg-font-size-xs);
  font-weight: var(--bmg-font-weight-heavy);
  line-height: var(--bmg-line-height-tight);
}

.elevation-opening-palette__item:hover,
.elevation-opening-palette__item:focus-visible {
  border-color: var(--bmg-primary);
  box-shadow: var(--bmg-focus-ring);
}

.render-help {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 4;
  display: grid;
  gap: 2px;
  max-width: 270px;
  padding: 10px 12px;
  border: 1px solid rgba(207, 216, 227, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  pointer-events: none;
}

.render-help strong {
  color: var(--ink);
  font-size: 0.76rem;
}

.render-opacity-toggle,
.reset-camera-focus,
.framing-toggle,
.finishes-toggle,
.texture-mode-toggle,
.texture-pack-only-toggle {
  position: absolute;
  top: 14px;
  z-index: 4;
  min-width: 74px;
  height: 34px;
  border: 1px solid rgba(207, 216, 227, 0.82);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(19, 37, 64, 0.08);
}

.render-opacity-toggle {
  left: 16px;
}

.reset-camera-focus {
  left: 98px;
  min-width: 66px;
}

.framing-toggle {
  left: 172px;
  min-width: 82px;
}

.finishes-toggle {
  left: 262px;
  min-width: 86px;
}

.texture-mode-toggle {
  left: 356px;
  min-width: 92px;
}

.texture-pack-only-toggle {
  left: 456px;
  min-width: 88px;
}

.camera-presets {
  position: absolute;
  left: 16px;
  top: 54px;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: min(560px, calc(100% - 44px));
}

.camera-preset {
  height: 30px;
  border: 1px solid rgba(207, 216, 227, 0.82);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(19, 37, 64, 0.08);
}

.camera-preset.is-active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.render-opacity-toggle.is-active,
.framing-toggle.is-active,
.finishes-toggle.is-active,
.texture-mode-toggle.is-active,
.texture-pack-only-toggle.is-active {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.render-shadow-toggles {
  position: absolute;
  left: 22px;
  bottom: 104px;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  width: 138px;
}

.render-shadow-toggle {
  min-height: 34px;
  border: 1px solid rgba(207, 216, 227, 0.82);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
}

.render-shadow-toggle.is-active {
  border-color: var(--orange);
  color: var(--orange-dark);
}

.sun-dial {
  position: absolute;
  left: 22px;
  bottom: 16px;
  z-index: 4;
  display: grid;
  gap: 5px;
  justify-items: center;
  width: 74px;
  padding: 8px 8px 7px;
  border: 1px solid rgba(207, 216, 227, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(19, 37, 64, 0.08);
  cursor: grab;
  touch-action: none;
}

.time-dial {
  left: 104px;
}

.sun-dial-label {
  text-transform: uppercase;
}

.sun-dial-track {
  position: relative;
  width: 48px;
  height: 48px;
  border: 2px solid rgba(101, 113, 132, 0.45);
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.95) 0 4px, transparent 5px),
    linear-gradient(rgba(101, 113, 132, 0.28), rgba(101, 113, 132, 0.28)) 50% 4px / 1px 40px no-repeat,
    linear-gradient(90deg, rgba(101, 113, 132, 0.28), rgba(101, 113, 132, 0.28)) 4px 50% / 40px 1px no-repeat;
}

.sun-dial-ray {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2px;
  height: 19px;
  border-radius: 999px;
  background: #c76542;
  transform: translate(-50%, -100%) rotate(var(--sun-dial-angle, -40deg));
  transform-origin: 50% 100%;
}

.sun-dial-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c76542;
  box-shadow: 0 0 0 3px rgba(199, 101, 66, 0.18);
  transform: translate(calc(-50% + var(--sun-x, -12px)), calc(-50% + var(--sun-y, -15px)));
}

.visual-stage[data-view="plan"] .render-help,
.visual-stage[data-view="elevations"] .render-help,
.visual-stage[data-view="wallAssembly"] .render-help,
.visual-stage[data-view="plan"] .render-opacity-toggle,
.visual-stage[data-view="elevations"] .render-opacity-toggle,
.visual-stage[data-view="wallAssembly"] .render-opacity-toggle,
.visual-stage[data-view="plan"] .reset-camera-focus,
.visual-stage[data-view="elevations"] .reset-camera-focus,
.visual-stage[data-view="wallAssembly"] .reset-camera-focus,
.visual-stage[data-view="plan"] .framing-toggle,
.visual-stage[data-view="elevations"] .framing-toggle,
.visual-stage[data-view="wallAssembly"] .framing-toggle,
.visual-stage[data-view="plan"] .finishes-toggle,
.visual-stage[data-view="elevations"] .finishes-toggle,
.visual-stage[data-view="wallAssembly"] .finishes-toggle,
.visual-stage[data-view="plan"] .texture-mode-toggle,
.visual-stage[data-view="elevations"] .texture-mode-toggle,
.visual-stage[data-view="wallAssembly"] .texture-mode-toggle,
.visual-stage[data-view="plan"] .texture-pack-only-toggle,
.visual-stage[data-view="elevations"] .texture-pack-only-toggle,
.visual-stage[data-view="wallAssembly"] .texture-pack-only-toggle,
.visual-stage[data-view="plan"] .camera-presets,
.visual-stage[data-view="elevations"] .camera-presets,
.visual-stage[data-view="wallAssembly"] .camera-presets,
.visual-stage[data-view="plan"] .render-shadow-toggles,
.visual-stage[data-view="elevations"] .render-shadow-toggles,
.visual-stage[data-view="wallAssembly"] .render-shadow-toggles,
.visual-stage[data-view="plan"] .sun-dial,
.visual-stage[data-view="elevations"] .sun-dial,
.visual-stage[data-view="wallAssembly"] .sun-dial {
  display: none;
}

.preview-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  background: #fff;
}

.workspace[data-view="plan"] .preview-stats,
.workspace[data-view="elevations"] .preview-stats,
.workspace[data-view="wallAssembly"] .preview-stats {
  display: none;
}

.preview-stats article {
  display: grid;
  grid-template-columns: 36px auto;
  column-gap: 12px;
  align-items: center;
  min-height: 64px;
  padding: 10px 20px;
  border-right: 1px solid var(--line);
}

.preview-stats article:last-child {
  border-right: 0;
}

.preview-stats strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.05;
}

.preview-stats small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 750;
}

.stat-icon {
  grid-row: span 2;
  width: 30px;
  height: 30px;
  opacity: 0.8;
}

.stat-dimensions {
  border-left: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
}

.stat-height {
  border-left: 2px solid var(--muted);
  position: relative;
}

.stat-height::before,
.stat-height::after {
  position: absolute;
  left: -5px;
  width: 10px;
  border-top: 2px solid var(--muted);
  content: "";
}

.stat-height::before {
  top: 0;
}

.stat-height::after {
  bottom: 0;
}

.stat-roof {
  position: relative;
}

.stat-roof::before {
  position: absolute;
  left: 2px;
  top: 12px;
  width: 23px;
  height: 23px;
  border-left: 2px solid var(--muted);
  border-top: 2px solid var(--muted);
  content: "";
  transform: rotate(45deg);
}

.stat-door {
  border: 2px solid var(--muted);
  border-bottom-width: 5px;
}

.stat-service-door {
  position: relative;
  border: 2px solid var(--muted);
  border-radius: 1px;
}

.stat-service-door::before {
  position: absolute;
  right: 4px;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--muted);
  content: "";
  transform: translateY(-50%);
}

.stat-window {
  border: 2px solid var(--muted);
  background:
    linear-gradient(var(--muted), var(--muted)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(90deg, var(--muted), var(--muted)) 0 50% / 100% 2px no-repeat;
}

.finish-card,
.packages-card {
  display: grid;
  gap: 22px;
  padding: 24px;
}

.section-title-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 20px;
}

.section-title-row > div {
  display: grid;
  gap: 8px;
}

.difference-toggle {
  display: inline-flex;
  align-items: center;
  grid-template-columns: none;
  gap: 10px;
  white-space: nowrap;
}

.difference-toggle input {
  width: 36px;
  height: 20px;
  min-height: 20px;
  appearance: none;
  border-radius: 999px;
  background: var(--green);
  padding: 0;
}

.difference-toggle input::after {
  display: block;
  width: 14px;
  height: 14px;
  margin: 2px 2px 2px auto;
  border-radius: 999px;
  background: #fff;
  content: "";
}

.finish-table {
  display: grid;
  grid-template-columns: minmax(190px, 1fr) repeat(3, minmax(180px, 1.12fr));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.feature-list,
.tier-column {
  display: grid;
  grid-template-rows: 76px repeat(14, 32px) 72px;
  min-width: 0;
}

.feature-list {
  background: #fff;
}

.feature-list strong,
.feature-list span,
.tier-column > span,
.tier-column b {
  display: grid;
  align-items: center;
  min-width: 0;
  border-bottom: 1px solid var(--line);
  padding: 0 18px;
}

.feature-list strong {
  color: var(--ink);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.feature-list span {
  color: var(--ink-soft);
  font-size: 0.78rem;
  font-weight: 760;
}

.tier-column {
  position: relative;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 0;
  text-align: center;
}

.tier-column > strong,
.tier-column > small,
.tier-column > em {
  position: relative;
  z-index: 1;
  grid-row: 1;
}

.tier-column > strong {
  align-self: start;
  margin-top: 20px;
  font-size: 1rem;
  font-style: normal;
  font-weight: 950;
}

.tier-column > small {
  align-self: center;
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.73rem;
  font-weight: 750;
}

.tier-column > em {
  align-self: end;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 1.05rem;
  font-style: normal;
  font-weight: 950;
}

.tier-column > span {
  justify-content: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
}

.tier-column .check {
  color: transparent;
  position: relative;
}

.tier-column .check::after {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin: auto;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  content: "✓";
  font-size: 0.72rem;
  font-weight: 950;
}

.tier-column .dash {
  color: #8b95a4;
}

.tier-column b {
  align-self: center;
  justify-self: center;
  width: calc(100% - 36px);
  min-height: 42px;
  border: 1px solid var(--navy);
  border-radius: 7px;
  color: var(--navy);
  font-size: 0.8rem;
  font-weight: 950;
}

.tier-column.is-active b,
.tier-column[aria-pressed="true"] b {
  background: var(--navy);
  color: #fff;
}

.tier-column.is-featured {
  border-left-color: rgba(246, 166, 23, 0.8);
  box-shadow: inset 0 0 0 1px var(--orange);
}

.tier-column mark {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  transform: translate(-50%, -50%);
  border-radius: 5px;
  background: var(--orange);
  color: var(--ink);
  padding: 4px 10px;
  font-size: 0.62rem;
  font-weight: 950;
  text-transform: uppercase;
  white-space: nowrap;
}

.tier-totals {
  display: none;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(132px, 1fr));
  gap: 14px;
}

.package-card {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr auto;
  gap: 5px 12px;
  min-height: 148px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  cursor: pointer;
}

.package-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.package-card:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 138, 95, 0.12);
}

.package-icon {
  grid-row: 1 / 3;
  width: 28px;
  height: 30px;
  border: 2px solid var(--muted);
  border-radius: 4px;
}

.electric-icon {
  clip-path: polygon(48% 0, 80% 0, 58% 42%, 84% 42%, 35% 100%, 45% 56%, 20% 56%);
  border-radius: 0;
  background: var(--muted);
  border: 0;
}

.insulation-icon {
  border-radius: 50% 6px 50% 6px;
}

.heat-icon {
  border-radius: 999px 999px 4px 4px;
}

.loft-icon {
  border-top: 0;
  position: relative;
}

.loft-icon::before {
  position: absolute;
  left: -2px;
  top: -10px;
  width: 21px;
  height: 21px;
  border-left: 2px solid var(--muted);
  border-top: 2px solid var(--muted);
  content: "";
  transform: rotate(45deg);
}

.ev-icon {
  border-radius: 999px;
}

.package-card strong {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 950;
}

.package-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.32;
}

.package-card b {
  align-self: end;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 950;
}

.package-card em {
  justify-self: end;
  align-self: end;
  min-width: 54px;
  min-height: 36px;
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: var(--navy);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.package-card:has(input:checked) em {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.review-card {
  display: grid;
  grid-template-columns: 1.15fr 1.1fr 0.9fr 190px;
  gap: 0;
  overflow: hidden;
}

.review-card article,
.primary-review {
  padding: 22px 26px;
  border-right: 1px solid var(--line);
}

.review-card article {
  display: grid;
  align-content: start;
  gap: 9px;
}

.review-total strong {
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
}

.primary-review {
  align-self: center;
  justify-self: center;
  width: calc(100% - 34px);
  min-height: 58px;
  border: 0;
  border-radius: 7px;
  background: var(--navy);
  color: #fff;
  font-weight: 950;
}

.selected-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.selected-chips span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f6f8fb;
  padding: 6px 10px;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 850;
}

.summary-grid {
  display: none;
}

.cost-ribbon {
  display: none;
  padding: 18px;
}

.line-items {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.line-item {
  display: grid;
  gap: 5px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.line-item-name,
.line-item-price {
  font-weight: 900;
}

.line-item-detail {
  color: var(--muted);
  font-size: 0.74rem;
}

.swatches {
  display: none;
}

.siding-lap-control {
  display: grid;
  gap: 8px;
}

.siding-lap-control input {
  width: 100%;
  accent-color: var(--green);
}

.color-swatch-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(28px, 1fr));
  gap: 10px;
  align-items: center;
  margin-top: -2px;
}

.color-swatch-grid .swatch {
  position: relative;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
}

.color-swatch-grid .swatch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.color-swatch-grid .swatch span {
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(7, 27, 57, 0.14);
  border-radius: 999px;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.38);
}

.color-swatch-grid .swatch.is-selected {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 138, 95, 0.12);
}

.color-swatch-grid .swatch:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(47, 138, 95, 0.16);
}

@media (max-width: 1260px) {
  .top-actions {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
  }

  .topbar .quote-steps {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    transform: none;
  }

  .topbar {
    grid-template-columns: 1fr auto;
    gap: 20px;
  }

  .quote-steps {
    order: 3;
    grid-column: 1 / -1;
    max-width: none;
    grid-template-columns: repeat(5, 142px);
    min-width: 0;
    padding-bottom: 12px;
    overflow-x: auto;
  }

  .top-price-ribbon {
    order: 4;
    grid-column: 1 / -1;
    grid-template-columns: auto auto 1fr;
    align-items: baseline;
    min-height: 52px;
    gap: 10px;
  }

  .top-price-ribbon small {
    justify-self: end;
  }

  .app-shell {
    grid-template-columns: 300px minmax(0, 1fr);
  }

  .finish-table {
    grid-template-columns: minmax(170px, 0.8fr) repeat(3, minmax(150px, 1fr));
    overflow-x: auto;
  }

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

  .review-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .primary-review {
    grid-column: 1 / -1;
    width: calc(100% - 52px);
    margin: 22px 0;
  }
}

@media (max-width: 920px) {
  body {
    overflow: auto;
    padding: 0;
  }

  .configurator-shell {
    width: 100%;
    height: auto;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .topbar {
    position: static;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 22px;
  }

  .quote-steps {
    order: initial;
    grid-column: auto;
    grid-template-columns: repeat(5, 142px);
    min-width: 0;
  }

  .top-actions {
    justify-content: start;
  }

  .top-price-ribbon {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .top-price-ribbon small {
    justify-self: start;
  }

  .app-shell {
    grid-template-columns: 1fr;
    width: min(100vw - 24px, 760px);
    min-height: auto;
    padding-top: 12px;
  }

  .visual-stage,
  .workspace[data-view="plan"] .visual-stage,
  .workspace[data-view="elevations"] .visual-stage,
  .workspace[data-view="wallAssembly"] .visual-stage {
    aspect-ratio: 17 / 11;
    max-width: 100%;
    height: auto;
    min-height: 0;
  }

  .view-tabs {
    left: 10px;
    grid-auto-rows: 42px;
    padding: 6px;
  }

  .tab {
    width: 42px;
    height: 42px;
  }

  .tab img {
    width: 24px;
    height: 24px;
  }

  .render-opacity-toggle,
  .reset-camera-focus,
  .framing-toggle,
  .finishes-toggle,
  .texture-mode-toggle,
  .texture-pack-only-toggle {
    top: 124px;
  }

  .preview-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-stats article {
    border-bottom: 1px solid var(--line);
  }

  .finish-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .feature-list,
  .tier-column {
    display: inline-grid;
    width: 210px;
    vertical-align: top;
    white-space: normal;
  }

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

@media (max-width: 620px) {
  .brand-logo {
    height: 42px;
  }

  .quote-step strong {
    display: block;
    font-size: 0.72rem;
  }

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

  .top-price-ribbon {
    width: 100%;
  }

  .top-action-stack {
    width: 100%;
  }

  .save-project-button,
  .signin-link {
    width: 100%;
  }

  .project-picker input {
    max-width: none;
    text-align: left;
  }

  .roof-style-grid,
  .compact-grid.two,
  .editor-grid,
  .package-grid,
  .review-card {
    grid-template-columns: 1fr;
  }

  .preview-stats {
    grid-template-columns: 1fr;
  }

  .section-title-row {
    display: grid;
  }

  .review-card article,
  .primary-review {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

html[data-theme-resolved="dark"] body {
  background:
    radial-gradient(circle at top, rgba(63, 125, 240, 0.18) 0, transparent 34%),
    linear-gradient(180deg, #07111d 0%, #0a1422 100%);
}

html[data-theme-resolved="dark"] .configurator-shell {
  border-color: color-mix(in srgb, var(--bmg-line-strong) 42%, transparent);
  box-shadow: var(--bmg-shadow);
}

html[data-theme-resolved="dark"] .topbar {
  border-bottom-color: var(--bmg-line);
}

html[data-theme-resolved="dark"] .quote-steps,
html[data-theme-resolved="dark"] .sidebar-card,
html[data-theme-resolved="dark"] .preview-card,
html[data-theme-resolved="dark"] .finish-card,
html[data-theme-resolved="dark"] .packages-card,
html[data-theme-resolved="dark"] .review-card,
html[data-theme-resolved="dark"] .summary-grid article,
html[data-theme-resolved="dark"] .cost-ribbon,
html[data-theme-resolved="dark"] .style-accordion-item,
html[data-theme-resolved="dark"] .palette-review div,
html[data-theme-resolved="dark"] .feature-list,
html[data-theme-resolved="dark"] .tier-column,
html[data-theme-resolved="dark"] .package-card,
html[data-theme-resolved="dark"] .preview-stats,
html[data-theme-resolved="dark"] .roof-card,
html[data-theme-resolved="dark"] input:not([type="checkbox"]):not([type="range"]),
html[data-theme-resolved="dark"] select {
  background: var(--bmg-surface);
}

html[data-theme-resolved="dark"] .top-price-ribbon {
  border-color: var(--bmg-line);
  background: color-mix(in srgb, var(--bmg-panel) 96%, transparent);
  box-shadow: none;
}

html[data-theme-resolved="dark"] .top-price-ribbon strong {
  color: var(--bmg-primary);
}

html[data-theme-resolved="dark"] .legacy-step-routebar .quote-step.is-current .quote-step-icon,
html[data-theme-resolved="dark"] .legacy-step-routebar .quote-step[aria-current="step"] .quote-step-icon {
  background-color: currentColor;
}

html[data-theme-resolved="dark"] .quote-step.is-complete {
  color: #9fd9ba;
}

html[data-theme-resolved="dark"] .quote-step.is-upcoming,
html[data-theme-resolved="dark"] .tier-column .dash {
  color: var(--bmg-subtle);
}

html[data-theme-resolved="dark"] .current-step-tasks li > span {
  color: var(--bmg-subtle);
}

html[data-theme-resolved="dark"] .current-step-tasks .is-complete > span {
  color: var(--bmg-primary);
}

html[data-theme-resolved="dark"] .current-step-tasks .is-current > span {
  color: var(--bmg-primary);
}

html[data-theme-resolved="dark"] .ghost-button,
html[data-theme-resolved="dark"] .signin-link,
html[data-theme-resolved="dark"] .view-tabs,
html[data-theme-resolved="dark"] .render-help,
html[data-theme-resolved="dark"] .render-opacity-toggle,
html[data-theme-resolved="dark"] .reset-camera-focus,
html[data-theme-resolved="dark"] .framing-toggle,
html[data-theme-resolved="dark"] .finishes-toggle,
html[data-theme-resolved="dark"] .texture-mode-toggle,
html[data-theme-resolved="dark"] .texture-pack-only-toggle,
html[data-theme-resolved="dark"] .camera-preset,
html[data-theme-resolved="dark"] .render-shadow-toggle,
html[data-theme-resolved="dark"] .sun-dial,
html[data-theme-resolved="dark"] .input-with-unit small,
html[data-theme-resolved="dark"] .selected-chips span {
  border-color: rgba(149, 165, 187, 0.22);
  background: var(--bmg-surface-soft);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme-resolved="dark"] .signin-link {
  color: var(--ink);
  background: color-mix(in srgb, var(--bmg-panel) 96%, transparent);
}

html[data-theme-resolved="dark"] .signin-link:hover {
  color: #7dd9a8;
}

html[data-theme-resolved="dark"] .signin-link span::before,
html[data-theme-resolved="dark"] .signin-link span::after {
  border-color: currentColor;
}

html[data-theme-resolved="dark"] .project-picker input {
  background: transparent;
}

html[data-theme-resolved="dark"] .design-step-tabs,
html[data-theme-resolved="dark"] .style-accordion-panel,
html[data-theme-resolved="dark"] .current-step-card.has-nested-controls .style-accordion-panel {
  background: var(--bmg-surface-soft);
}

html[data-theme-resolved="dark"] .design-step-tab span,
html[data-theme-resolved="dark"] .accordion-state {
  background: var(--bmg-fill-soft);
}

html[data-theme-resolved="dark"] .design-step-tab.is-active {
  background: var(--bmg-surface);
}

html[data-theme-resolved="dark"] .tab.is-active {
  background: var(--bmg-surface);
  box-shadow: 0 0 0 3px rgba(69, 184, 124, 0.18);
}

html[data-theme-resolved="dark"] .render-shadow-toggle.is-active {
  background: rgba(255, 181, 61, 0.12);
  color: #ffc766;
}

html[data-theme-resolved="dark"] .sun-dial-track {
  border-color: rgba(149, 165, 187, 0.45);
  background:
    radial-gradient(circle at 50% 50%, rgba(231, 238, 248, 0.88) 0 4px, transparent 5px),
    linear-gradient(rgba(149, 165, 187, 0.32), rgba(149, 165, 187, 0.32)) 50% 4px / 1px 40px no-repeat,
    linear-gradient(90deg, rgba(149, 165, 187, 0.32), rgba(149, 165, 187, 0.32)) 4px 50% / 40px 1px no-repeat;
}

html[data-theme-resolved="dark"] .visual-stage {
  background: linear-gradient(180deg, rgba(31, 51, 79, 0.96) 0 50%, rgba(32, 45, 34, 0.94) 50% 100%);
}

html[data-theme-resolved="dark"] .workspace[data-view="plan"] .visual-stage,
html[data-theme-resolved="dark"] .workspace[data-view="elevations"] .visual-stage,
html[data-theme-resolved="dark"] .workspace[data-view="wallAssembly"] .visual-stage {
  background: #111a25;
}

html[data-theme-resolved="dark"] .tier-column mark {
  color: #2b1700;
}

.configurator-shell .quote-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.configurator-shell .sidebar-card.design-card {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
  height: auto;
  align-self: stretch;
}

.configurator-shell .sidebar-card.design-card > .current-step-card,
.configurator-shell .sidebar-card.design-card > .current-step-card.has-nested-controls,
.configurator-shell .sidebar-card.design-card > .current-step-card:has(.current-step-controls) {
  display: grid;
  flex: 1 1 auto;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  align-content: stretch;
  min-height: 0;
  height: 100%;
}

.configurator-shell .sidebar-card.design-card > .current-step-card .current-step-controls {
  min-height: 0;
  overflow: auto;
}

.configurator-shell .sidebar-card.design-card > .current-step-card .current-step-actions {
  align-self: end;
  margin-top: auto;
}

@media (max-width: 920px) {
  .configurator-shell {
    display: flex;
    flex-direction: column;
    min-height: 100svh;
  }

  .configurator-shell .app-shell {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .configurator-shell .quote-panel {
    flex: 1 1 auto;
    height: auto;
  }
}


.shared-unit-input {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.shared-unit-input input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

.shared-unit-input input[type="number"]::-webkit-outer-spin-button,
.shared-unit-input input[type="number"]::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.shared-unit-input small {
  padding-right: var(--bmg-space-2);
}

.shared-unit-input__stepper {
  display: grid;
  grid-template-rows: 1fr 1fr;
  align-self: stretch;
  width: 18px;
  min-height: calc(var(--bmg-control-height-xs) - 2px);
  border-left: var(--bmg-border-width-thin) solid var(--bmg-input-border);
  background: transparent;
  overflow: hidden;
}

.shared-unit-input__stepperButton {
  display: grid;
  place-items: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--bmg-muted);
  cursor: pointer;
  padding: 0;
}

.shared-unit-input__stepperButton + .shared-unit-input__stepperButton {
  border-top: var(--bmg-border-width-thin) solid var(--bmg-input-border);
}

.shared-unit-input__stepperButton:hover {
  background: color-mix(in srgb, var(--bmg-primary) 10%, transparent);
  color: var(--bmg-text);
}

.shared-unit-input__stepperButton:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--bmg-primary) 34%, transparent);
}

.shared-unit-input__stepperIcon {
  display: block;
  width: 18px;
  height: 12px;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
}

html[data-theme-resolved="dark"] .shared-unit-input__stepper {
  border-left-color: rgba(149, 165, 187, 0.22);
}

html[data-theme-resolved="dark"] .shared-unit-input__stepperButton + .shared-unit-input__stepperButton {
  border-top-color: rgba(149, 165, 187, 0.22);
}
