.configuration-panel.aq-config {
  --aq-ink: #12314b;
  --aq-blue: #1250ab;
  --aq-muted: #465e71;
  --aq-rule: #c6d8e5;
  border-top: 0;
  padding: 0;
  color: var(--aq-ink);
  min-width: 0;
  font-family: var(--font-ui, sans-serif);
}
.aq-config [hidden] { display: none !important; }
.aq-config .aq-config-head {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(12px, 3vw, 40px);
  padding: clamp(16px, 2vw, 28px) clamp(16px, 2.8vw, 40px);
  background: #eaf4fa;
  border-top: 3px solid var(--aq-blue);
  border-bottom: 1px solid var(--aq-rule);
}
.aq-config .aq-config-head::before {
  position: absolute; z-index: -1; inset: 0 0 0 38%; content: "";
  background: linear-gradient(90deg, #eaf4fa, #eaf4fa66 80%), url("assets/inner-water.webp") center 48% / cover;
  opacity: .3;
}
.aq-config .aq-config-brand { display: inline-flex; align-items: center; gap: 6px; color: var(--aq-blue); }
.aq-config .aq-config-brand img { width: 26px; height: 26px; object-fit: contain; }
.aq-config .aq-config-brand b { font: 700 1.02rem/1 Inter, Arial, sans-serif; letter-spacing: -.045em; }
#route-view .aq-config .aq-config-head h2 {
  margin: 6px 0 5px; color: var(--aq-ink);
  font: 500 clamp(1.9rem, 2.6vw, 2.65rem)/1.1 var(--equipment-title, sans-serif);
}
.aq-config .aq-config-head p { max-width: 64ch; margin: 0; line-height: 1.45; color: #38576c; }
.aq-config .aq-config-model {
  display: grid; grid-template-columns: auto auto; column-gap: 10px;
  align-items: center; justify-items: start; color: #284e69; font-variant-numeric: tabular-nums;
}
.aq-config .aq-config-model img {
  grid-row: 1 / 3; height: 76px; width: 76px; display: block;
  background: #fff; object-fit: contain; padding: 4px; border: 1px solid #c6d9e8;
}
.aq-config .aq-config-model strong { display:block; font: 600 1.35rem/1.1 var(--equipment-title,sans-serif); }
.aq-config .aq-config-model span { display:block; font-size: .875rem; margin-top: 3px; }
.aq-config .aq-config-grid {
  display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(245px, .9fr);
  gap: clamp(22px, 3.4vw, 54px); align-items: start; margin-top: clamp(22px, 3vw, 40px);
}
.aq-config :is(.aq-config-body,.aq-custom-groups,.aq-custom-group,.aq-custom-fields,.aq-custom-field,.aq-config-summary) { min-width: 0; }
.aq-config .aq-custom-groups { display: grid; gap: clamp(23px, 2.4vw, 34px); }
.aq-config .aq-custom-group { border: 0; padding: 0; margin: 0; }
.aq-config .aq-custom-intro { border-top: 1px solid #9ab8ce; padding-top: 10px; margin-bottom: 14px; }
.aq-config .aq-custom-group:first-child .aq-custom-intro { padding-top: 0; border-top: 0; }
#route-view .aq-config .aq-custom-intro h3 { font: 500 clamp(1.45rem, 1.65vw, 1.78rem)/1.15 var(--equipment-title,sans-serif); color: var(--aq-ink); margin: 0; }
.aq-config .aq-custom-intro p { margin: 3px 0 0; max-width: 72ch; color: var(--aq-muted); font-size: .95rem; line-height: 1.45; }
.aq-config .aq-custom-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 15px clamp(14px,2.2vw,28px); align-items: start; }
.aq-config .aq-custom-wide { grid-column: 1 / -1; }
.aq-config .aq-custom-field { display: grid; gap: 5px; }
.aq-config .aq-custom-field > span,.aq-config .option-set legend,.aq-config .aq-custom-methods legend,.aq-config .aq-config-body > label {
  font-size: .96rem; font-weight: 550; line-height: 1.35; color: #193c55;
}
.aq-config .aq-custom-field :is(input,select,textarea),.aq-config #model-detail {
  box-sizing: border-box; display: block; width: 100%; min-width: 0; max-width: none; min-height: 42px;
  padding: 8px 11px; border: 1px solid #99b0c3; border-radius: 4px; background: #fff; color: #173248;
  font: 400 1rem/1.35 var(--font-ui,sans-serif);
}
.aq-config .aq-custom-field :is(input,textarea)::placeholder,.aq-config #model-detail::placeholder { color: #607687; opacity: 1; }
.aq-config .aq-custom-field textarea,.aq-config #model-detail { resize: vertical; }
.aq-config .aq-custom-methods,.aq-config .option-set { min-width: 0; padding: 0; margin: 0; border: 0; }
.aq-config .aq-custom-methods legend,.aq-config .option-set legend { margin: 0 0 6px; padding: 0; }
.aq-config .choice-list,.aq-config .aq-custom-payments { display: flex; gap: 6px; flex-wrap: wrap; }
.aq-config .choice { align-items: stretch; }
.aq-config .choice span {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 6px; padding: 7px 10px; min-height: 35px; border-color: #aec2d1; border-radius: 4px;
  color: #264d69; background: white; font-size: .93rem; line-height: 1.25; text-align: center;
}
.aq-config .choice input:checked + span { color: #104590; font-weight: 550; background: #e5f0ff; border-color: #1859a7; box-shadow: inset 0 0 0 1px #1859a7; }
.aq-config .choice input:checked + span::before { content: "✓"; font-size: .84em; font-weight: 650; }
.aq-config .choice:hover span { border-color: #477ba4; }
.aq-config :is(button,a,input,select,textarea):focus-visible,.aq-config .choice input:focus-visible + span { outline: 2px solid #1268b8; outline-offset: 3px; }
.aq-config .choice input:focus-visible { outline: 0; }
.aq-config .aq-custom-layout {
  margin: 0; padding: 7px 10px; border-left: 2px solid #8dafcc; color: #365a70;
  font-size: .92rem; line-height: 1.42; background: #f4f8fb;
}
.aq-config .project-review { padding: 12px 16px; margin: 22px 0; border-color: #83aacf; background: #f1f6fa; }
.aq-config .project-review :is(h3,summary) { font-size: 1.05rem; font-weight: 550; color: #284961; }
.aq-config .project-review ul { font-size: .94rem; line-height: 1.45; }
.aq-config .aq-config-body > label { display: block; margin: 16px 0 6px; }
.aq-config #model-detail { min-height: 70px; }
.aq-config .aq-config-summary {
  position: sticky; top: calc(var(--nav-h,76px) + 14px);
  border-top: 3px solid var(--aq-blue); background: #eef5fa;
  padding: clamp(16px, 1.7vw, 23px); overflow-wrap: anywhere;
}
#route-view .aq-config .aq-config-summary h3 { font: 500 clamp(1.38rem,1.6vw,1.8rem)/1.13 var(--equipment-title,sans-serif); margin: 0 0 7px; color: var(--aq-ink); }
.aq-config .aq-config-summary p { margin: 7px 0; line-height: 1.4; color: #3c576b; font-size: .95rem; }
.aq-config .aq-summary-lines { margin: 13px 0; padding: 0; list-style: none; max-height: 42vh; overflow-y: auto; }
.aq-config .aq-summary-lines li { border-top: 1px solid #cddce6; padding: 6px 0; font-size: .91rem; line-height: 1.4; color: #244361; }
.aq-config .aq-summary-lines li:last-child { border-bottom: 1px solid #cddce6; }
.aq-config .aq-summary-lines li strong { display:block; color:#27465c; font-size:.86rem; font-weight:550; }
.aq-config .aq-summary-lines li span { display:block; margin-top:2px; color:#153851; }
.aq-config .aq-config-summary .model-ask { margin: 8px 0 0; border-radius: 5px; display: flex; justify-content: center; align-items: center; text-align: center; line-height: 1.25; min-height: 42px; padding: 10px 12px; gap: .45em; }
.aq-config .clear-options { display: block; margin: 12px 0 0; color: #355974; font-size: .9rem; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.aq-config .reset-option { color: #355974; font-size: .85rem; }
@media (max-width: 900px) {
  .aq-config .aq-config-grid { grid-template-columns: minmax(0,1fr); gap: 22px; }
  .aq-config .aq-config-summary { position: static; }
  .aq-config .aq-summary-lines { max-height: none; }
  .aq-config .aq-config-summary .model-ask { width: fit-content; }
}
@media (max-width: 600px) {
  .aq-config .aq-custom-fields,.aq-config .option-grid { grid-template-columns: minmax(0,1fr); }
  .aq-config .aq-config-head { grid-template-columns:minmax(0,1fr) auto; gap:6px 12px; }
  .aq-config .aq-config-head > div:first-child { display:contents; }
  .aq-config .aq-config-brand { grid-column:1; grid-row:1; align-self:end; }
  #route-view .aq-config .aq-config-head h2 { grid-column:1; grid-row:2; align-self:start; margin:0; }
  .aq-config .aq-config-head > div:first-child > p { grid-column:1 / -1; grid-row:3; }
  .aq-config .aq-config-model { grid-column:2; grid-row:1 / 3; display:flex; flex-direction:column; align-items:flex-end; gap:0; text-align:right; }
  .aq-config .aq-config-model img { width: 49px; height: 49px; margin-bottom: 2px; }
  .aq-config .aq-config-model strong,.aq-config .aq-config-model span { align-self: flex-end; }
  .aq-config .aq-config-model span { margin: 0; font-size: .8rem; white-space: nowrap; }
  .aq-config .choice span { min-height: 40px; }
}
@media (max-height: 560px) {
  .aq-config .aq-config-summary { position: static; }
}
.aq-model-code { white-space: nowrap; }

.aq-board-request {scroll-margin-top:7rem}
.aq-board-request p {max-width:62ch;margin:.65rem 0;color:#476076;font-size:.95rem}
.aq-board-request [data-board-field]{margin-top:.9rem}
.aq-board-request [hidden]{display:none}
