/* Constructor interaction layer. Keep this after the shared visual styles. */
body.constructor-page {
  --builder-surface: #172534;
  --builder-card: #20303f;
  --builder-card-selected: #2e3740;
  --builder-muted: #c4cdd6;
  --builder-border: #d9d0bf3d;
  -webkit-tap-highlight-color: transparent;
}
body.constructor-page .constructor-main {
  width: min(1320px, calc(100% - 48px));
  padding: 28px 0 64px;
  min-width: 0;
}
body.constructor-page .constructor-heading {
  align-items: center;
  gap: 32px;
  margin: 12px 0 24px;
}
body.constructor-page .constructor-heading h1 {
  font-size: clamp(32px, 3.7vw, 48px);
  line-height: 1.12;
  letter-spacing: -.04em;
  margin: 0;
}
body.constructor-page .constructor-heading h1 em {
  background: none;
  color: var(--accent, #ddd0b6);
  -webkit-text-fill-color: currentColor;
  margin: 0;
}
body.constructor-page .constructor-heading h1 br { display: block; }
body.constructor-page .constructor-heading p {
  max-width: 690px;
  font-size: 16px;
  line-height: 1.65;
  margin-top: 16px;
  color: #dbe1e7;
}
body.constructor-page .constructor-help { max-width: 230px; color: #f3efe7; }
body.constructor-page .constructor-help > span { color: var(--accent, #ddd0b6); }
.constructor-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  color: #dce1e6;
  font-size: 14px;
}
.constructor-steps li { display: flex; gap: 8px; align-items: center; }
.constructor-steps li > span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  color: var(--accent, #ddd0b6);
  border: 1px solid #d9d0bf55;
  border-radius: 50%;
  font-size: 12px;
}
body.constructor-page .constructor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 24px;
  min-height: 0;
  align-items: start;
}
body.constructor-page .constructor-workspace > * { min-width: 0; }
body.constructor-page .category-rail {
  overflow: visible;
  grid-column: 1 / -1;
  position: static;
  padding: 0;
  margin: 0;
  background: none;
  width: auto;
  min-width: 0;
}
.category-caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-bottom: 13px;
  color: #f4f1eb;
}
.category-caption strong { font-size: 17px; font-weight: 600; }
.category-caption > span { font-size: 14px; color: var(--builder-muted); }
body.constructor-page .category-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  width: 100%;
  min-width: 0;
  gap: 10px;
  padding: 0;
  overflow: visible;
}
body.constructor-page .category-tab {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  justify-content: start;
  gap: 8px 10px;
  min-width: 0;
  min-height: 80px;
  width: auto;
  padding: 15px 13px;
  border: 1px solid var(--builder-border);
  border-radius: 16px;
  background: #172534e8;
  color: #e9e7e1;
  box-shadow: inset 0 1px 0 #ffffff0a;
  text-align: left;
  font-size: 14px;
  line-height: 1.35;
  transition: border-color .16s ease;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  touch-action: manipulation;
}
body.constructor-page .category-tab > svg {
  display: block;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--accent, #ddd0b6);
}
body.constructor-page .category-tab:hover,
body.constructor-page .category-tab:active {
  background: #172534e8;
  color: #e9e7e1;
  border-color: #d9d0bf7a;
}
body.constructor-page .category-tab[aria-selected="true"] {
  background: #333a42ed;
  border-color: #dfd2b7;
  color: #fff7e7;
  box-shadow: inset 0 0 0 1px #dfd2b729;
}
body.constructor-page .category-tab[aria-selected="true"] > svg { color: #f0deba; }
body.constructor-page .category-tab::before,
body.constructor-page .category-tab::after { display: none; }
body.constructor-page .category-title { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
body.constructor-page .category-number { display: none; }
body.constructor-page .category-badge {
  position: absolute;
  top: -6px;
  right: 8px;
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #e4d4b5;
  background: #dfd2b7;
  color: #15212e;
  font-size: 12px;
  line-height: 1;
  font-weight: 650;
}
body.constructor-page .category-badge:empty { visibility: hidden; }
body.constructor-page .service-workbench {
  min-width: 0;
  min-height: 0;
  padding: 24px;
  overflow: visible;
  border-color: var(--builder-border);
  border-radius: 24px;
  background: #13212fec;
  scroll-margin-top: 108px;
}
body.constructor-page .service-workbench::before { display: none; }
.workbench-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
body.constructor-page .workbench-kicker {
  font-size: 12px;
  color: #d9ccb2;
  letter-spacing: .04em;
  white-space: nowrap;
}
body.constructor-page .workbench-heading {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-color: var(--builder-border);
}
body.constructor-page .workbench-heading h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.2;
  color: #f7f4ed;
}
body.constructor-page .workbench-heading p {
  max-width: 620px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--builder-muted);
}
body.constructor-page .builder-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
  min-height: 0;
}
/* Explicit states prevent inherited bright hover layers after a touch deselect. */
body.constructor-page .builder-service,
body.constructor-page .builder-service:hover,
body.constructor-page .builder-service:active,
body.constructor-page .builder-service:focus {
  display: flex;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 20px;
  text-align: left;
  background: var(--builder-card);
  color: #f4f3ee;
  border: 1px solid var(--builder-border);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 #ffffff08;
  transform: none !important;
  animation: none !important;
  transition: border-color .15s ease, box-shadow .15s ease;
  touch-action: manipulation;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  -webkit-tap-highlight-color: transparent;
}
body.constructor-page .builder-service[aria-pressed="true"],
body.constructor-page .builder-service[aria-pressed="true"]:hover,
body.constructor-page .builder-service[aria-pressed="true"]:active,
body.constructor-page .builder-service[aria-pressed="true"]:focus {
  background: var(--builder-card-selected);
  border-color: #dfd2b7;
  box-shadow: inset 0 0 0 1px #dfd2b72b;
}
body.constructor-page .builder-service::before,
body.constructor-page .builder-service::after { display: none; }
body.constructor-page .builder-service-top { gap: 8px; margin-bottom: 16px; }
body.constructor-page .builder-service-top > svg,
body.constructor-page .builder-service[aria-pressed="true"] .builder-service-top > svg { width: 23px; height: 23px; color: #d4c6ad; flex: 0 0 23px; }
.selection-state { display: flex; align-items: center; justify-content: flex-end; gap: 7px; min-width: 0; }
.selection-status { color: #c5cfd9; font-size: 11px; font-weight: 500; line-height: 1.35; }
body.constructor-page .selection-mark {
  width: 25px;
  height: 25px;
  min-width: 25px;
  border-radius: 50%;
  background: #152331;
  border-color: #d5c9b95c;
  color: #e7decd;
  transform: none !important;
  transition: none;
}
body.constructor-page .builder-service[aria-pressed="true"] .selection-mark {
  background: #dfd2b7;
  border-color: #dfd2b7;
  color: #162330;
  transform: none;
}
body.constructor-page .builder-service[aria-pressed="true"] .selection-status { color: #efe0c2; }
body.constructor-page .builder-service-title,
body.constructor-page .builder-service[aria-pressed="true"] .builder-service-title {
  color: #f8f5ef;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 650;
  margin-bottom: 10px;
  overflow-wrap: anywhere;
}
body.constructor-page .builder-service-text,
body.constructor-page .builder-service[aria-pressed="true"] .builder-service-text {
  font-size: 14px;
  line-height: 1.65;
  color: #cbd3dc;
}
body.constructor-page .service-price { display: block; margin-top: auto; padding-top: 20px; }
body.constructor-page .service-price > strong { color: #f4e8ce; font-size: 24px; font-weight: 650; line-height: 1.3; }
body.constructor-page .service-price > small { display: inline; margin-left: 7px; color: #d3d8dd; font-size: 12px; }
body.constructor-page .service-scope,
body.constructor-page .builder-service[aria-pressed="true"] .service-scope { display: block; margin-top: 7px; color: #b9c5d0; font-size: 12px; line-height: 1.55; }
body.constructor-page .workbench-footer {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-color: var(--builder-border);
}
body.constructor-page .next-category,
body.constructor-page .previous-category {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid #d5c9b956;
  border-radius: 12px;
  background: #ffffff05;
  color: #e9dcc2;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  touch-action: manipulation;
}
body.constructor-page .next-category { margin-left: auto; }
body.constructor-page .next-category > span { font-size: 19px; flex: 0 0 auto; }
body.constructor-page .next-category-top { font-size: 12px; padding: 8px 10px; border-color: transparent; background: none; }
body.constructor-page .previous-category[hidden] { display: none; }
.workbench-hint { color: #b9c5d0; font-size: 12px; line-height: 1.6; margin: 16px 0 0; }
body.constructor-page .plan-panel {
  position: sticky !important;
  top: 104px;
  min-height: 0;
  height: min(660px, calc(100dvh - 126px));
  padding: 22px 20px;
  background: #1b2a39f2;
  border-radius: 24px;
  border-color: var(--builder-border);
  overflow-anchor: none;
}
body.constructor-page .plan-top h2 { font-size: 25px; }
body.constructor-page .plan-top .eyebrow { font-size: 11px; }
body.constructor-page .plan-top { margin-bottom: 15px; }
body.constructor-page .plan-scroll { min-height: 40px; }
body.constructor-page .plan-empty { padding-top: 12px; }
body.constructor-page .plan-empty p { font-size: 13px; line-height: 1.65; }
body.constructor-page .plan-empty > span { color: #e2d2b3; }
body.constructor-page .plan-item { padding: 10px; gap: 8px; font-size: 13px; }
body.constructor-page .plan-item > button { width: 44px; height: 44px; min-width: 44px; }
body.constructor-page .plan-estimate { margin-top: 14px; padding-top: 12px; }
body.constructor-page .plan-estimate dl > div { font-size: 13px; }
body.constructor-page .estimate-main { padding-top: 11px; }
body.constructor-page .estimate-main > span { color: #cbd3dc; max-width: none; font-size: 12px; }
body.constructor-page .estimate-main > strong { color: #eee1c6; font-size: 29px; white-space: nowrap; }
body.constructor-page .plan-estimate > p { color: #bdc7d0; font-size: 12px; margin: 9px 0 15px; }
body.constructor-page .plan-submit { font-size: 14px; min-height: 48px; gap: 9px; padding-inline: 12px; }
body.constructor-page .plan-utilities { gap: 10px; }
body.constructor-page .plan-utilities button { font-size: 11px; min-height: 40px; }
body.constructor-page .builder-bottom-bar { display: none; }
body.constructor-page .plan-dialog {
  width: min(540px, calc(100% - 24px));
  max-width: 540px;
  max-height: min(760px, calc(100dvh - 32px));
  margin: auto;
  padding: 28px;
  border: 1px solid #d5c9b963;
  border-radius: 26px;
  background: #172534;
  color: #f4f1eb;
  overflow: hidden;
}
body.constructor-page .plan-dialog[open] { display: flex; flex-direction: column; animation: none; }
body.constructor-page .plan-dialog .eyebrow { font-size: 12px; color: #d8c9ac; margin-bottom: 9px; }
body.constructor-page .plan-dialog h2 { font-size: 27px; line-height: 1.2; margin: 0 32px 10px 0; }
body.constructor-page .plan-dialog .dialog-x { width: 44px; height: 44px; right: 10px; top: 10px; }
body.constructor-page .plan-dialog-intro { flex: 0 0 auto; margin: 0 0 16px; color: #c1ccd5; font-size: 13px; line-height: 1.5; }
body.constructor-page .plan-dialog [data-mobile-plan-items] {
  flex: 1 1 auto;
  min-height: 45px;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-gutter: stable;
  padding-right: 3px;
}
body.constructor-page .plan-dialog .plan-item { padding: 12px; background: #ffffff06; font-size: 14px; }
body.constructor-page .plan-dialog .plan-item strong { color: #eee1c6; }
body.constructor-page .plan-dialog .plan-item > button { color: #ece3d4; background: #ffffff0a; }
body.constructor-page .plan-dialog .plan-estimate { flex: 0 0 auto; }
body.constructor-page .plan-dialog .action-button { flex: 0 0 auto; min-height: 48px; margin-top: 0; font-size: 15px; }
body.constructor-page .plan-dialog .plan-next-step { flex: 0 0 auto; font-size: 12px; line-height: 1.5; color: #c3cdd5; margin: 11px 0 0; }
body.constructor-page .mobile-plan-empty { margin: 10px 0; color: #ccd3da; font-size: 14px; line-height: 1.6; }
body.constructor-page .constructor-price-context { max-width: none; margin-top: 24px; font-size: 13px; }
body.constructor-page :is(.category-tab, .builder-service, .next-category, .previous-category, [data-review-plan], [data-remove-service]):focus-visible {
  outline: 2px solid #efdfbe;
  outline-offset: 4px;
}
@media (hover: hover) and (pointer: fine) {
  body.constructor-page .builder-service:hover { border-color: #dfd2b799; }
  body.constructor-page .builder-service[aria-pressed="true"]:hover { border-color: #dfd2b7; }
  body.constructor-page .next-category:hover,
  body.constructor-page .previous-category:hover { border-color: #dfd2b7; color: #fff3d9; }
}
@media (max-width: 1050px) {
  body.constructor-page .constructor-workspace { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  body.constructor-page .plan-panel { display: none; }
  body.constructor-page .builder-bottom-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 190px);
    align-items: center;
    gap: 15px;
    position: fixed;
    z-index: 45;
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: auto;
    max-width: 620px;
    margin: 0 auto;
    padding: 12px 14px;
    border: 1px solid #d5c9b970;
    border-radius: 20px;
    background: #1b2a39f5;
    box-shadow: 0 8px 32px #0006;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform: none;
    animation: none;
  }
  body.constructor-page .mobile-plan-count { display: flex; flex-direction: column; align-items: start; gap: 1px; min-width: 0; color: #f1e5ce; }
  body.constructor-page .mobile-plan-count > small { color: #c1cbd4; font-size: 11px; line-height: 1.35; }
  body.constructor-page .mobile-plan-count > strong { font-size: 23px; font-weight: 650; line-height: 1.3; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
  body.constructor-page .builder-bottom-bar > .button {
    min-width: 0;
    min-height: 48px;
    width: 100%;
    padding: 11px 13px;
    font-size: 14px;
    line-height: 1.3;
    white-space: normal;
    text-align: left;
    gap: 9px;
    border-radius: 13px;
    background: #dfd2b7;
    color: #172534;
    box-shadow: none;
    transform: none;
  }
  body.constructor-page .site-footer { padding-bottom: calc(115px + env(safe-area-inset-bottom)); }
  body.constructor-page .footer-bottom { padding-bottom: 20px; }
  body.constructor-page .constructor-main { padding-bottom: 36px; }
  body.constructor-page.dialog-open .builder-bottom-bar { visibility: hidden; pointer-events: none; }
}
@media (max-width: 700px) {
  body.constructor-page .constructor-main { width: calc(100% - 28px); padding-top: 18px; }
  body.constructor-page .constructor-heading { display: block; margin: 12px 0 20px; }
  body.constructor-page .constructor-heading .eyebrow { font-size: 12px; margin-bottom: 12px; }
  body.constructor-page .constructor-heading h1 { font-size: clamp(30px, 8.4vw, 39px); line-height: 1.13; }
  body.constructor-page .constructor-heading p { margin-top: 14px; font-size: 15px; line-height: 1.6; max-width: 560px; }
  body.constructor-page .constructor-help { display: block; margin-top: 15px; font-size: 13px; max-width: none; }
  body.constructor-page .constructor-help > span { display: inline; margin-left: 6px; font-size: 13px; }
  .constructor-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 26px; font-size: 11px; line-height: 1.4; }
  .constructor-steps li { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .constructor-steps li > span { width: 23px; height: 23px; flex-basis: 23px; }
  .category-caption { display: block; margin-bottom: 13px; }
  .category-caption strong { display: block; font-size: 16px; }
  .category-caption > span { display: block; margin-top: 5px; font-size: 13px; }
  body.constructor-page .category-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; overflow: visible; }
  body.constructor-page .category-tab { grid-template-columns: 22px minmax(0, 1fr); min-height: 64px; padding: 12px; font-size: 13px; border-radius: 14px; }
  body.constructor-page .category-tab:last-child { grid-column: 1 / -1; min-height: 56px; }
  body.constructor-page .category-tab > svg { width: 21px; height: 21px; }
  body.constructor-page .constructor-workspace { gap: 18px; }
  body.constructor-page .service-workbench { padding: 18px 14px; border-radius: 20px; scroll-margin-top: 92px; }
  .workbench-navigation { gap: 9px; margin-bottom: 13px; }
  body.constructor-page .workbench-kicker { font-size: 11px; letter-spacing: 0; }
  body.constructor-page .next-category-top { font-size: 11px; padding: 7px 0 7px 8px; max-width: 65%; gap: 5px; }
  body.constructor-page .workbench-heading { padding-bottom: 16px; margin-bottom: 16px; }
  body.constructor-page .workbench-heading h2 { font-size: 25px; }
  body.constructor-page .workbench-heading p { font-size: 14px; line-height: 1.6; }
  body.constructor-page .builder-service-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  body.constructor-page .builder-service,
  body.constructor-page .builder-service:hover,
  body.constructor-page .builder-service:active,
  body.constructor-page .builder-service:focus { padding: 18px; border-radius: 16px; }
  body.constructor-page .builder-service-top { margin-bottom: 14px; }
  body.constructor-page .builder-service-title,
  body.constructor-page .builder-service[aria-pressed="true"] .builder-service-title { font-size: 18px; }
  body.constructor-page .builder-service-text,
  body.constructor-page .builder-service[aria-pressed="true"] .builder-service-text { font-size: 14px; line-height: 1.6; }
  body.constructor-page .service-price { padding-top: 17px; }
  body.constructor-page .service-price > strong { font-size: 24px; }
  body.constructor-page .service-scope { font-size: 12px; }
  body.constructor-page .next-category,
  body.constructor-page .previous-category { font-size: 12px; }
  body.constructor-page .next-category-top { font-size: 11px; }
  body.constructor-page .workbench-footer { gap: 8px; align-items: stretch; }
  body.constructor-page .workbench-footer .next-category { max-width: 75%; }
  body.constructor-page .builder-bottom-bar { grid-template-columns: minmax(0, 1fr) minmax(0, 172px); gap: 10px; padding: 11px 12px; }
  body.constructor-page .builder-bottom-bar > .button { font-size: 13px; padding: 11px 12px; min-height: 49px; }
  body.constructor-page .mobile-plan-count > strong { font-size: 22px; }
  body.constructor-page .mobile-plan-count > small { font-size: 10px; }
  body.constructor-page .plan-dialog { width: calc(100% - 20px); max-height: calc(100dvh - 28px); padding: 23px 19px; border-radius: 23px; }
  body.constructor-page .plan-dialog h2 { font-size: 24px; }
  body.constructor-page .plan-dialog .plan-estimate { margin-top: 12px; padding-top: 10px; }
  body.constructor-page .constructor-price-context { padding: 17px; font-size: 12px; line-height: 1.7; }
}
@media (max-width: 360px) {
  body.constructor-page .constructor-main { width: calc(100% - 24px); }
  body.constructor-page .category-tab { padding: 10px; gap: 8px; font-size: 12px; }
  body.constructor-page .service-workbench { padding-inline: 12px; }
  body.constructor-page .builder-service,
  body.constructor-page .builder-service:hover,
  body.constructor-page .builder-service:active,
  body.constructor-page .builder-service:focus { padding: 15px; }
  body.constructor-page .builder-bottom-bar { left: 8px; right: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 152px); gap: 8px; padding: 10px; }
  body.constructor-page .builder-bottom-bar > .button { font-size: 12px; padding: 10px; }
  body.constructor-page .mobile-plan-count > strong { font-size: 20px; }
  body.constructor-page .plan-dialog { padding: 22px 16px; }
  body.constructor-page .plan-dialog h2 { font-size: 22px; }
}
@media (max-height: 650px) and (min-width: 1051px) {
  body.constructor-page .plan-panel { position: static !important; height: auto; max-height: none; }
  body.constructor-page .plan-scroll { max-height: 230px; flex: auto; }
}
@media (max-height: 600px) {
  body.constructor-page .plan-dialog[open] { display: block; overflow-y: auto; }
  body.constructor-page .plan-dialog [data-mobile-plan-items] { max-height: none; overflow: visible; }
}
@media (prefers-reduced-motion: reduce) {
  body.constructor-page .category-tab,
  body.constructor-page .builder-service { transition: none; }
}
@media print {
  body.constructor-page .builder-bottom-bar { display: none; }
}
