.gs-fields {
  --field-line: var(--line, #dbe0e2);
  --field-accent: var(--accent, #16618a);
  --field-soft: #eaf2f7;
  container: garage-fields / inline-size;
  display: grid;
  gap: 19px;
  min-width: 0;
}
.gs-fields * { box-sizing: border-box }
.gs-fields :is(button, input, select, textarea) { font-family: inherit }
.gs-fields button { color: var(--ink, #222b32); cursor: pointer }
.gs-fields button:focus-visible, .gs-fields :is(input, select, textarea):focus-visible {
  outline: 2px solid #145679; outline-offset: 3px;
}
.gs-fields [hidden] { display: none }
.gs-fields .gs-group {
  display: grid; gap: 8px; min-inline-size: 0; margin: 0; padding: 0; border: 0;
}
.gs-fields .gs-legend {
  width: 100%; margin: 0 0 8px; padding: 0; color: var(--ink, #222b32);
  font-size: 13px; font-weight: 650; line-height: 1.35;
}
.gs-fields .gs-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px }
.gs-fields .kind-card {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; align-items: stretch;
  border: 1px solid var(--field-line); background: #fff; border-radius: 10px; padding: 0; text-align: left;
}
.gs-fields .kind-card:hover, .gs-fields .gs-choice:hover, .gs-fields .gs-color:hover, .gs-fields .gs-preset:hover {
  border-color: #7491a2;
}
.gs-fields .kind-card[aria-pressed=true] {
  border-color: var(--field-accent); background: #f1f7fa;
  box-shadow: inset 0 0 0 1px var(--field-accent);
}
.gs-fields .gs-kind-image {
  width: 100%; height: clamp(57px, 17cqi, 86px);
  background: radial-gradient(ellipse at 45% 26%, #f6f6f6 8%, #ebebeb 76%, #e2e2e2);
}
.gs-fields .kind-thumb {
  width: 100%; height: 100%; display: block; background: transparent; pointer-events: none;
}
.gs-fields .gs-kind-copy {
  display: flex; flex-direction: column; gap: 3px;
  padding: 9px 10px 11px; line-height: 1.22;
}
.gs-fields .gs-kind-copy strong { font-size: 13px; font-weight: 680; letter-spacing: -.013em; overflow-wrap: break-word }
.gs-fields .gs-kind-copy small { font-size: 11.5px; line-height: 1.36; color: var(--muted, #59656d) }
.gs-fields .gs-kind-mark {
  position: absolute; top: 7px; right: 7px; width: 16px; height: 16px;
  border-radius: 50%; border: 1px solid #89949a; background: #fffc;
}
.gs-fields .kind-card[aria-pressed=true] .gs-kind-mark {
  background: var(--field-accent); border-color: var(--field-accent);
}
.gs-fields .kind-card[aria-pressed=true] .gs-kind-mark::after {
  content: ''; position: absolute; width: 7px; height: 4px; left: 3px; top: 4px;
  border-left: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(-45deg);
}

.gs-fields .gs-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(98px, 100%), 1fr)); gap: 7px }
.gs-fields .gs-choice, .gs-fields .gs-color, .gs-fields .gs-preset {
  border: 1px solid var(--field-line); background: #fff; border-radius: 8px;
}
.gs-fields .gs-choice { position: relative; padding: 10px 9px; min-height: 41px; text-align: center }
.gs-fields .gs-choice[aria-pressed=true], .gs-fields .gs-color[aria-pressed=true], .gs-fields .gs-preset[aria-pressed=true] {
  background: var(--field-soft); color: var(--field-accent); border-color: #47799a;
}
.gs-fields .gs-choice-text { display: grid; gap: 4px }
.gs-fields .gs-choice-text strong { font-size: 13px; font-weight: 630; line-height: 1.25 }
.gs-fields .gs-choice-text small { font-size: 12px; color: var(--muted, #59656d); font-weight: 430; line-height: 1.35 }
.gs-fields .gs-stacked { grid-template-columns: minmax(0, 1fr) }
.gs-fields .gs-stacked .gs-choice { text-align: left; padding: 10px 38px 10px 12px }
.gs-fields .gs-stacked .gs-choice::after {
  content: ''; width: 15px; height: 15px; box-sizing: border-box; border: 1px solid #87939a;
  position: absolute; top: 50%; right: 12px; transform: translateY(-50%); border-radius: 50%; background: white;
}
.gs-fields .gs-stacked .gs-choice[aria-pressed=true]::after { border: 5px solid var(--field-accent) }
.gs-fields .gs-profiles { grid-template-columns: repeat(2, minmax(0, 1fr)) }
.gs-fields .gs-profiles .gs-choice { display: grid; place-items: center; gap: 5px }
.gs-fields .gs-roof-profile {
  width: 32px; height: 17px; display: block; position: relative; border: 1.5px solid currentColor;
  border-top: 0; margin-top: 5px; transform: scale(.84); transform-origin: center;
}
.gs-fields .gs-roof-profile::before, .gs-fields .gs-gable::after {
  content: ''; position: absolute; background: currentColor; height: 1.5px; left: -2px; right: -2px; top: 0;
}
.gs-fields .gs-gable::before, .gs-fields .gs-gable::after { width: 21px; right: auto; transform-origin: left; transform: rotate(-28deg) }
.gs-fields .gs-gable::after { left: auto; right: -2px; transform-origin: right; transform: rotate(28deg) }
.gs-fields .gs-lean { border-right: 0; height: 15px; margin-top: 7px }
.gs-fields .gs-lean::before { top: -3px; transform: rotate(-12deg) }
.gs-fields .gs-lean::after { content: ''; position: absolute; right: 0; bottom: 0; height: 21px; width: 1.5px; background: currentColor }
.gs-fields .gs-parapet::before { top: -3px; height: 5px; border: 1.5px solid currentColor; background: transparent; box-sizing: border-box }
.gs-fields .gs-swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px }
.gs-fields .gs-color {
  display: flex; align-items: center; justify-content: flex-start; gap: 7px; padding: 7px 8px;
  min-width: 0; min-height: 37px; font-size: 12px; font-weight: 530;
}
.gs-fields .gs-color-sample {
  display: block; flex: 0 0 19px; width: 19px; height: 19px; border-radius: 50%; border: 1px solid #0002;
}
.gs-fields .gs-color[data-value="#a16c42"] { grid-column: 1 / -1; justify-content: flex-start }
.gs-fields .gs-color[data-value="#a16c42"] .gs-color-sample {
  background-image: repeating-linear-gradient(8deg, transparent 0 3px, #63391d80 3px 4px, transparent 4px 6px),
    repeating-linear-gradient(-5deg, transparent 0 5px, #e0ac7780 5px 6px, transparent 6px 9px);
}
.gs-fields .gs-presets { display: flex; flex-wrap: wrap; gap: 6px }
.gs-fields .gs-preset { padding: 7px 10px; font-size: 12px; font-weight: 600 }
.gs-fields .gs-measure-row + .gs-measure-row { margin-top: 2px }
.gs-fields .gs-measure-head { display: flex; align-items: center; justify-content: space-between; gap: 8px }
.gs-fields .gs-measure-head label { font-size: 13px; font-weight: 530 }
.gs-fields .gs-number-box {
  display: flex; align-items: baseline; padding: 3px 7px;
  border: 1px solid var(--field-line); border-radius: 6px; font-size: 12px; line-height: 1.4;
}
.gs-fields .gs-number-box span { color: var(--muted, #59656d); margin-left: 4px }
.gs-fields input.gs-number {
  width: 37px; padding: 0; border: 0; outline-offset: 1px; font-size: 13px;
  background: transparent; font-variant-numeric: tabular-nums; text-align: right; appearance: textfield;
}
.gs-fields .gs-number::-webkit-inner-spin-button, .gs-fields .gs-number::-webkit-outer-spin-button { appearance: none }
.gs-fields input.gs-range { width: 100%; height: 21px; margin: 0; appearance: none; background: transparent; accent-color: var(--field-accent) }
.gs-fields input.gs-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px; background: linear-gradient(to right, #16618a var(--fill), #dfe5e8 var(--fill));
}
.gs-fields input.gs-range::-webkit-slider-thumb {
  appearance: none; width: 16px; height: 16px; margin-top: -6px; border-radius: 50%;
  background: white; border: 4px solid #16618a;
}
.gs-fields input.gs-range::-moz-range-track { height: 4px; background: #dfe5e8; border-radius: 4px }
.gs-fields input.gs-range::-moz-range-progress { height: 4px; background: #16618a }
.gs-fields input.gs-range::-moz-range-thumb { width: 8px; height: 8px; border-radius: 50%; background: white; border: 4px solid #16618a }
.gs-fields .gs-limits { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--muted, #59656d) }
.gs-fields .gs-switch, .gs-fields .gs-window-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px; border: 1px solid var(--field-line); border-radius: 8px; cursor: pointer;
}
.gs-fields .gs-switch + .gs-switch { margin-top: -10px }
.gs-fields .gs-switch input {
  margin: 0; appearance: none; position: relative; flex: 0 0 34px;
  height: 20px; border: 0; border-radius: 10px; background: #899399; cursor: pointer;
}
.gs-fields .gs-switch input:checked { background: var(--field-accent) }
.gs-fields .gs-switch input::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff;
}
.gs-fields .gs-switch input:checked::before { left: 17px }
.gs-fields .gs-window-row { cursor: default }
.gs-fields .gs-counter { display: inline-flex; flex: none; align-items: center; padding: 2px; border: 1px solid var(--field-line); border-radius: 8px; }
.gs-fields .gs-counter button {
  display: grid; place-items: center; width: 33px; min-height: 33px; border: 0; border-radius: 5px;
  color: var(--field-accent); background: #eef3f6; font-size: 19px; line-height: 1;
}
.gs-fields .gs-counter button:disabled { opacity: .38; cursor: default }
.gs-fields .gs-counter input {
  width: 34px; min-height: 33px; padding: 0; border: 0; background: transparent; text-align: center;
  font-size: 16px; font-variant-numeric: tabular-nums; appearance: textfield;
}
.gs-fields .gs-counter input::-webkit-inner-spin-button, .gs-fields .gs-counter input::-webkit-outer-spin-button { appearance: none }
.gs-fields .gs-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px }
.gs-fields .gs-input-wrap { min-width: 0; display: grid; gap: 6px; font-size: 12px; font-weight: 610 }
.gs-fields .gs-input-wrap[data-contact-field=note], .gs-fields .gs-input-wrap[data-contact-field=timing] { grid-column: 1 / -1 }
.gs-fields .gs-input-wrap[data-contact-field=city] { grid-column: 1 / -1 }
.gs-fields .gs-input-wrap :is(input, select, textarea) {
  width: 100%; min-width: 0; min-height: 40px; border-radius: 7px; border: 1px solid var(--field-line);
  color: var(--ink, #222b32); padding: 8px 9px; background: white; font: inherit; font-size: 14px; font-weight: 450;
}
.gs-fields .gs-input-wrap textarea { resize: vertical; min-height: 55px }
@container garage-fields (max-width: 305px) {
  .gs-fields .gs-color { justify-content: center; gap: 5px; padding-inline: 4px; font-size: 11px }
  .gs-fields .gs-color-sample { flex-basis: 15px; width: 15px; height: 15px }
  .gs-fields .gs-kind-copy { padding-inline: 8px }
  .gs-fields .gs-kind-copy strong { font-size: 12px }
  .gs-fields .gs-kind-copy small { font-size: 11px }
}
@media (max-width: 650px) {
  .gs-fields .gs-input-wrap :is(input,select,textarea), .gs-fields input.gs-number { font-size: 16px }
}
