.site-meta {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 6px 16px;
  border-bottom: 1px solid var(--dark-border);
}

.preview { padding-top: env(safe-area-inset-top); }

.site-region, .site-socials {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 5px;
}

.site-region svg { flex: 0 0 16px; color: var(--accent); }

.site-region a, .site-region select, .site-socials a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--white);
  font-size: .78rem;
}

.site-region select {
  width: fit-content;
  max-width: 100%;
  padding: 3px 2px;
  border: 0;
  background: var(--dark-surface);
  font-size: 1rem;
  font-weight: 550;
  cursor: pointer;
}

.site-region .site-region-map { display: none; }

.site-socials a {
  padding-inline: 4px;
  color: var(--dark-muted);
  font-weight: 560;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.header-mobile-phone { display: none; }

.design-showcase { background: var(--accent-soft); }
.design-layout, .estimate-layout { display: grid; gap: 22px; }

.design-copy > p, .estimate-intro > p {
  max-width: 47ch;
  margin-top: 12px;
  color: var(--muted);
  font-size: .98rem;
}

.design-sequence { display: grid; margin: 14px 0 4px; }
.design-sequence > div {
  display: grid;
  gap: 3px 14px;
  padding-block: 10px;
  border-top: 1px solid color-mix(in srgb, var(--accent-deep) 30%, transparent);
}

.design-sequence dt { font-weight: 700; }
.design-sequence dd { margin: 0; color: var(--muted); font-size: .88rem; }

.design-sheet {
  min-width: 0;
  margin: 0 5px 5px 0;
  padding: 10px 10px 0;
  border: 1px solid var(--border);
  background: var(--white);
  box-shadow: 5px 5px 0 -1px var(--accent-soft), 5px 5px 0 var(--border);
}

.design-sheet figure img {
  width: 100%;
  aspect-ratio: 1.85;
  object-fit: cover;
}

.design-sheet figcaption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 3px 10px;
  padding-block: 8px;
}

.design-sheet figcaption span { color: var(--muted); font-size: .77rem; }

.design-sheet .architecture-plan {
  margin: 0;
  border-block: 1px solid var(--border);
}

.design-sheet .architecture-plan summary {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-weight: 640;
  cursor: pointer;
  list-style: none;
}

.design-sheet .architecture-plan summary::-webkit-details-marker { display: none; }
.design-sheet .architecture-plan summary::after {
  width: 8px;
  height: 8px;
  margin: -4px 5px 0 0;
  border-right: 1px solid;
  border-bottom: 1px solid;
  color: var(--accent-deep);
  transform: rotate(45deg);
  content: "";
}

.design-sheet .architecture-plan[open] summary::after { transform: rotate(225deg); }
.design-sheet .architecture-plan img { width: 100%; height: auto; }

.estimate { background: var(--paper); }
.estimate-intro .estimate-note { font-size: .83rem; }

.wizard {
  min-width: 0;
  position: relative;
  overflow: hidden;
  padding: clamp(14px, 3.2vw, 28px);
  border: 1px solid var(--border);
  background: var(--white);
}

.wizard-status, .wizard-actions, .wizard-summary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5px 12px;
}

.wizard-status > span { color: var(--accent-deep); font-size: .83rem; font-weight: 700; }
.wizard button { cursor: pointer; }
.wizard-example, .wizard-back {
  min-height: 44px;
  padding: 5px 0;
  border: 0;
  color: var(--accent-deep);
  background: none;
  font-size: .83rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.wizard-progress {
  display: block;
  width: 100%;
  height: 5px;
  margin: 0 0 16px;
  border: 0;
  color: var(--accent-deep);
  background: var(--accent-soft);
  accent-color: var(--accent-deep);
  appearance: none;
}

.wizard-progress::-webkit-progress-bar { background: var(--accent-soft); }
.wizard-progress::-webkit-progress-value { background: var(--accent-deep); }
.wizard-progress::-moz-progress-bar { background: var(--accent-deep); }

.wizard-body { min-height: 154px; }
.wizard-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.wizard-step legend {
  max-width: 100%;
  margin: 0 0 11px;
  padding: 0;
  color: var(--ink);
  font: 580 clamp(1.06rem, 5.1vw, 1.55rem)/1.22 var(--display);
  letter-spacing: -.035em;
}

.wizard-step p { margin-top: 7px; color: var(--muted); font-size: .83rem; }
.wizard-field { display: grid; gap: 4px; color: var(--muted); font-size: .82rem; }
.wizard-field + .wizard-field { margin-top: 9px; }

.wizard input:not([type="radio"]), .wizard select, .wizard textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--border);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper);
  font: inherit;
  font-size: 1rem;
}

.wizard-options { display: flex; flex-wrap: wrap; gap: 6px; }
.wizard-options label { position: relative; }
.wizard-options input {
  position: absolute;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.wizard-options span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 7px 11px;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: .86rem;
  cursor: pointer;
}

.wizard-options input:checked + span {
  border-color: var(--accent-deep);
  color: var(--ink);
  background: var(--accent-soft);
  font-weight: 650;
}

.wizard-options input:focus-visible + span { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.wizard-actions { margin-top: 10px; }
.wizard-next { margin-left: auto; min-width: 112px; }
.wizard-summary { margin: 0 0 9px; }
.wizard-summary > div {
  display: grid;
  grid-template-columns: minmax(72px, .65fr) minmax(0, 1.35fr);
  gap: 5px 8px;
  padding-block: 6px;
  border-top: 1px solid var(--border);
  font-size: .86rem;
}

.wizard-summary dt { color: var(--muted); }
.wizard-summary dd { margin: 0; overflow-wrap: anywhere; }
.wizard-copy-status:empty { display: none; }
.wizard textarea { margin-top: 7px; }
.footer-privacy { justify-content: start; color: var(--dark-muted); font-size: .76rem; }
.taskbar { display: none; }

@media (max-width: 849px) {
  body { padding-bottom: calc(91px + env(safe-area-inset-bottom)); background: var(--dark-surface); }
  html { scroll-padding-bottom: calc(90px + env(safe-area-inset-bottom)); }
  main { background: var(--paper); }
  .header-inner { gap: 10px; }
  .header-mobile-phone {
    display: grid;
    width: 44px;
    min-height: 44px;
    margin-left: auto;
    place-items: center;
    color: var(--accent);
  }
  .taskbar {
    position: fixed;
    z-index: 5;
    right: max(var(--gutter), env(safe-area-inset-right));
    bottom: calc(8px + env(safe-area-inset-bottom));
    left: max(var(--gutter), env(safe-area-inset-left));
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr;
    align-items: end;
    padding: 4px 5px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: var(--white);
    box-shadow: 0 7px 25px rgb(13 22 17 / 18%);
  }

  .taskbar a {
    display: flex;
    min-height: 49px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    border-radius: 14px;
    color: var(--ink);
    font-size: .75rem;
    font-weight: 660;
    line-height: 1.15;
    text-decoration: none;
  }

  .taskbar a[aria-current] { background: var(--accent-soft); }
  .taskbar svg { width: 20px; height: 20px; color: var(--accent-deep); }
  .taskbar .taskbar-estimate { min-height: 57px; padding-bottom: 3px; }
  .taskbar-emblem {
    display: grid;
    width: 40px;
    height: 40px;
    margin-top: -14px;
    place-items: center;
    border: 2px solid var(--white);
    border-radius: 50%;
    color: var(--ink);
    background: var(--accent);
  }
  .taskbar-emblem svg { color: inherit; }
  body:has(.wizard :is(input:not([type="radio"]), textarea):focus) .taskbar { display: none; }
}

@media (min-width: 640px) {
  .site-socials { gap: 14px; }
  .design-sequence > div { grid-template-columns: minmax(95px, .45fr) 1fr; }
}

@media (min-width: 850px) {
  .site-meta { min-height: 45px; }
  .site-region select { font-size: .86rem; }
  .site-region:has(select:not([hidden])) .site-region-map {
    display: inline-flex;
    margin-left: 11px;
    color: var(--dark-muted);
    text-underline-offset: 3px;
  }
  .site-socials a { font-size: .87rem; }
  .design-layout, .estimate-layout {
    grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(25px, 5vw, 76px);
  }
  .design-sheet { padding: 15px 15px 0; }
}
