/* ════════════════════════════════════════════════════════════════════════
   셀프 견적 창(공용) — /priceAnnounce · /priceMp3down [견적서 받기]
   넓은 화면: 왼쪽에서 고르고 오른쪽 견적서가 바로 바뀐다 · 휴대폰: [구성]/[미리보기] 탭.
   색·글꼴은 사이트 디자인 토큰(colors_and_type.css)을 쓰고, 견적서 종이는 언제나 흰 종이다.
   ⚠️ public 은 1년 캐시 — 이 파일을 고치면 주소의 ?v= 는 서버가 내용 지문으로 자동으로 바꾼다(routes/selfQuote.js assetUrls).
   ════════════════════════════════════════════════════════════════════════ */
.aq-root {
  --aq-accent: var(--w-blue-50, #4f37ff);
  --aq-accent-strong: #3b25e0;
  --aq-accent-soft: var(--bg-accent-subtle, #eeebff);
  --aq-ink: #181a1f;
  --aq-ink-2: #3a3c42;
  --aq-muted: #686b73;
  --aq-line: #e2e3e6;
  --aq-line-strong: #c2c4c8;
  --aq-surface: #ffffff;
  --aq-surface-2: #f4f4f6;
  --aq-warn: #9a5600;
  --aq-warn-soft: #fff1db;
  --aq-bad: #c8283f;
  --aq-good: #0c7a52;
  --aq-paper-ink: #1b1d22;
  --aq-paper-muted: #5d6068;
  --aq-paper-line: #e4e6ea;
  --aq-font: var(--font-sans, "Pretendard Variable", "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif);
  position: fixed;
  inset: 0;
  /* 우측 하단 상담 채팅 단추(99998)·창(99999)보다 위 — 휴대폰에서 단추가 [PDF 견적서 받기]를 가리지 않게 */
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(17, 18, 23, 0.46);
  font-family: var(--aq-font);
  color: var(--aq-ink);
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}
.aq-root[hidden] { display: none !important; }
.aq-root *, .aq-root *::before, .aq-root *::after { box-sizing: border-box; }
/* 부트스트랩·사이트 공통 CSS 의 요소 기본값(label 아래 여백, dd 여백, p 아래 여백)이 창 배치를 밀지 않게 */
.aq-root p, .aq-root dl, .aq-root dd { margin: 0; }
/* 사이트 공통 타이포(colors_and_type.css)가 h2·h4·li·small 에 글씨 크기까지 정한다(li = 본문 16px).
   그대로 두면 견적서 종이의 목록이 표 글씨보다 훨씬 커진다 — 창 안에서는 부모 글씨를 물려받게 한다.
   (아래 클래스 규칙이 같은 우선순위로 뒤에 오므로 크기를 따로 정한 곳은 그 값이 이긴다) */
.aq-root h2, .aq-root h4, .aq-root li, .aq-root small { font: inherit; letter-spacing: inherit; color: inherit; }
.aq-root button { font-family: inherit; }

.aq-dialog {
  position: relative;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  /* 오른쪽 견적서가 주인공 — 넓은 화면에서는 창을 조금 더 크게 */
  width: min(1240px, 100%);
  height: min(920px, 100%);
  border-radius: 16px;
  background: var(--aq-surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.aq-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--aq-line);
}
.aq-head h2 { margin: 0; font: 800 17px/1.3 var(--aq-font); letter-spacing: -0.01em; color: var(--aq-ink); }
.aq-from { font-size: 12.5px; color: var(--aq-muted); }
.aq-mode { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: 999px; background: var(--aq-surface-2); }
.aq-mode button { appearance: none; border: 0; background: transparent; border-radius: 999px; padding: 5px 12px; font: 700 12.5px/1.3 var(--aq-font); color: var(--aq-muted); cursor: pointer; }
.aq-mode button[aria-checked="true"] { background: var(--aq-surface); color: var(--aq-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.aq-close { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--aq-line); background: var(--aq-surface); color: var(--aq-muted); display: grid; place-items: center; cursor: pointer; }
.aq-close:hover { color: var(--aq-ink); border-color: var(--aq-line-strong); }

.aq-tabs { display: none; }
.aq-body { display: grid; grid-template-columns: minmax(0, 410px) minmax(0, 1fr); min-height: 0; }
.aq-cfg {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--aq-surface-2);
  border-right: 1px solid var(--aq-line);
}
.aq-pv { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.aq-blk { background: var(--aq-surface); border: 1px solid var(--aq-line); border-radius: 12px; padding: 13px 14px; display: flex; flex-direction: column; gap: 10px; }
.aq-blk-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.aq-blk-h b { font-size: 14px; color: var(--aq-ink); }
.aq-blk-h small { font-size: 12px; color: var(--aq-muted); text-align: right; }
.aq-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 3px; padding: 3px; border-radius: 10px; background: var(--aq-surface-2); }
.aq-seg button { appearance: none; border: 0; background: transparent; border-radius: 8px; padding: 7px 4px; font: 600 13px/1.3 var(--aq-font); color: var(--aq-ink-2); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; }
.aq-seg button small { font-size: 11px; font-weight: 500; color: var(--aq-muted); }
.aq-seg button[aria-checked="true"] { background: var(--aq-surface); color: var(--aq-accent-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.14); font-weight: 800; }
.aq-seg button[aria-checked="true"] small { color: var(--aq-accent-strong); }
.aq-seg button:disabled { color: var(--aq-line-strong); cursor: not-allowed; }
.aq-seg button:disabled small { color: var(--aq-line-strong); }
/* 요금제 4개(MP3) — 영문 요금제 이름이 길어 글씨를 한 단계 줄이고, 좁은 휴대폰에서는 2×2 로 */
.aq-seg.is-4 button { font-size: 12px; letter-spacing: -0.01em; }
/* 고르기 칩(분량으로 고르기) — 줄바꿈되는 알약 단추 */
.aq-seg.is-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; background: transparent; }
.aq-seg.is-chips button { flex: 0 0 auto; padding: 5px 11px; border: 1px solid var(--aq-line-strong); border-radius: 999px; background: var(--aq-surface); font-size: 12.5px; }
.aq-seg.is-chips button[aria-checked="true"] { border-color: var(--aq-accent); background: var(--aq-accent-soft); box-shadow: none; }
/* 숫자 입력 + 단위(필요한 글자 수) */
.aq-num { display: inline-flex; align-items: center; flex: 0 0 auto; height: 36px; border: 1px solid var(--aq-line-strong); border-radius: 9px; background: var(--aq-surface); overflow: hidden; }
.aq-num input { width: 104px; height: 100%; border: 0; padding: 0 4px 0 10px; text-align: right; font: 700 14px/1 var(--aq-font); font-variant-numeric: tabular-nums; color: var(--aq-ink); background: transparent; }
.aq-num input:focus { outline: none; }
.aq-num:focus-within { border-color: var(--aq-accent); box-shadow: 0 0 0 3px rgba(79, 55, 255, 0.14); }
.aq-num em { padding: 0 10px 0 2px; font-style: normal; font-size: 13px; color: var(--aq-muted); }
/* 더 싼 구성 귀띔 — 누르면 바로 바뀐다 */
.aq-tip { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 8px 7px 10px; border-radius: 8px; background: #e7f6ef; color: #0b5e40; font-size: 12px; line-height: 1.5; }
.aq-tip button { flex: 0 0 auto; appearance: none; border: 1px solid #0c7a52; border-radius: 7px; background: #fff; color: #0c7a52; padding: 5px 9px; font: 700 12px/1.2 var(--aq-font); cursor: pointer; }
.aq-tip button:hover { background: #0c7a52; color: #fff; }
.aq-why { font-size: 12px; line-height: 1.5; color: var(--aq-warn); background: var(--aq-warn-soft); border-radius: 8px; padding: 6px 9px; }
.aq-note { font-size: 12px; line-height: 1.55; color: var(--aq-muted); margin: 0; }
.aq-note a { color: var(--aq-accent-strong); }
.aq-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aq-lbl { display: flex; flex-direction: column; min-width: 0; margin: 0; }
/* 이름표(label)로 쓰는 줄 제목(MP3 필요한 글자 수) — 부트스트랩 label 아래 여백을 끊는다 */
label.aq-lbl { cursor: pointer; font-weight: inherit; }
.aq-lbl b { font-size: 13.5px; font-weight: 700; color: var(--aq-ink); }
.aq-lbl span { font-size: 12px; color: var(--aq-muted); }
.aq-step { display: inline-grid; grid-template-columns: 32px 36px 32px; align-items: center; flex: 0 0 auto; border: 1px solid var(--aq-line-strong); border-radius: 9px; overflow: hidden; }
.aq-step button { appearance: none; border: 0; background: var(--aq-surface); height: 32px; font: 700 17px/1 var(--aq-font); color: var(--aq-ink-2); cursor: pointer; }
.aq-step button:disabled { color: var(--aq-line-strong); cursor: not-allowed; }
.aq-step output { text-align: center; font: 700 14px/32px var(--aq-font); font-variant-numeric: tabular-nums; border-inline: 1px solid var(--aq-line); }
/* 숫자 대신 "6개월" 같은 글을 보여 주는 칸 */
.aq-step.is-wide { grid-template-columns: 32px 64px 32px; }
.aq-step.is-wide output { font-size: 13px; white-space: nowrap; }
.aq-row.is-toggle { cursor: pointer; margin: 0; }
.aq-sw { position: relative; display: block; width: 44px; height: 26px; flex: 0 0 auto; margin: 0; }
/* 입력칸을 맨 위에 — 모양(i)이 위에 덮이면 눌러도 켜지지 않는다(2026-10-14 실제로 그랬다) */
.aq-sw input { position: absolute; inset: 0; z-index: 1; opacity: 0; margin: 0; cursor: pointer; }
.aq-sw i { position: absolute; inset: 0; border-radius: 999px; background: var(--aq-line-strong); transition: background 0.15s; pointer-events: none; }
.aq-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25); transition: transform 0.15s; }
.aq-sw input:checked + i { background: var(--aq-accent); }
.aq-sw input:checked + i::after { transform: translateX(18px); }
.aq-caveat { border-left: 3px solid var(--aq-accent); background: var(--aq-accent-soft); border-radius: 0 8px 8px 0; padding: 7px 10px; font-size: 12px; line-height: 1.55; color: var(--aq-ink-2); }
.aq-caveat b { color: var(--aq-accent-strong); }
.aq-fld { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.aq-fld label { margin: 0; font-size: 12.5px; font-weight: 700; color: var(--aq-ink-2); }
.aq-fld label em { font-style: normal; color: var(--aq-bad); }
.aq-fld input { height: 40px; width: 100%; border: 1px solid var(--aq-line-strong); border-radius: 9px; padding: 0 11px; font: 500 14px/1 var(--aq-font); color: var(--aq-ink); background: var(--aq-surface); }
.aq-fld input:focus { outline: none; border-color: var(--aq-accent); box-shadow: 0 0 0 3px rgba(79, 55, 255, 0.14); }
.aq-fld input[aria-invalid="true"] { border-color: var(--aq-bad); }
.aq-err { font-size: 11.5px; color: var(--aq-bad); }
.aq-err:empty { display: none; }
.aq-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.aq-chk { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: var(--aq-ink-2); cursor: pointer; margin: 0; font-weight: 500; }
.aq-chk input { margin-top: 3px; width: 15px; height: 15px; flex: 0 0 auto; accent-color: var(--aq-accent); }
.aq-chk.is-err { color: var(--aq-bad); }
.aq-chk a { color: inherit; text-decoration: underline; }
.aq-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.aq-reasons { margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--aq-warn-soft); color: var(--aq-warn); font-size: 12.5px; line-height: 1.6; list-style: none; }
.aq-reasons li::before { content: "· "; }
.aq-pv-cap { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--aq-muted); }

.aq-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--aq-line); background: var(--aq-surface); }
.aq-tot { display: flex; flex-direction: column; line-height: 1.3; margin-right: auto; min-width: 0; }
.aq-tot span { font-size: 12px; color: var(--aq-muted); }
.aq-tot b { font-size: 21px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--aq-ink); }
.aq-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.aq-btn { appearance: none; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--aq-line-strong); border-radius: 10px; background: var(--aq-surface); color: var(--aq-ink); padding: 11px 16px; font: 700 14px/1.2 var(--aq-font); cursor: pointer; text-decoration: none; }
.aq-btn:hover { border-color: var(--aq-ink-2); color: var(--aq-ink); text-decoration: none; }
.aq-btn.is-pri { background: var(--aq-accent); border-color: var(--aq-accent); color: #fff; }
.aq-btn.is-pri:hover { background: var(--aq-accent-strong); border-color: var(--aq-accent-strong); color: #fff; }
.aq-btn[disabled] { opacity: 0.6; cursor: progress; }
.aq-toast { margin: 0 16px 12px; padding: 10px 12px; border-radius: 10px; background: var(--aq-ink); color: #fff; font-size: 13px; line-height: 1.55; }
.aq-toast.is-err { background: var(--aq-bad); }
.aq-toast[hidden] { display: none !important; }
.aq-done { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; border: 1.5px solid var(--aq-accent); background: var(--aq-accent-soft); }
.aq-done b { font-size: 15px; color: var(--aq-ink); }
.aq-done p { margin: 0; font-size: 13px; line-height: 1.55; color: var(--aq-ink-2); }
.aq-done .aq-btns { margin-top: 2px; }

.aq-root :focus-visible { outline: 2px solid var(--aq-accent); outline-offset: 2px; }

/* ── 견적서 종이(PDF 와 같은 배치) — 폭에 비례해 글자가 줄어든다 ── */
.aq-sheet-wrap { container-type: inline-size; padding: 10px; border-radius: 8px; background: var(--aq-surface-2); }
.aq-sheet {
  position: relative;
  width: 100%;
  aspect-ratio: 210 / 297;
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  padding: 5em 5em 4.6em;
  background: #fff;
  color: var(--aq-paper-ink);
  font-size: 10px;
  font-size: clamp(7px, 1.72cqw, 12.5px);
  line-height: 1.5;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.16), 0 10px 28px rgba(0, 0, 0, 0.08);
}
.aq-sh-top { display: flex; justify-content: space-between; align-items: flex-end; padding-bottom: 0.9em; border-bottom: 0.2em solid #2563eb; }
.aq-sh-logo { font-weight: 900; font-size: 1.45em; letter-spacing: 0.02em; }
.aq-sh-title { font-size: 2.5em; font-weight: 800; letter-spacing: 0.55em; margin-right: -0.55em; line-height: 1; }
.aq-sh-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.3em 2em; font-size: 0.95em; }
.aq-sh-meta span { color: var(--aq-paper-muted); margin-right: 0.5em; font-weight: 700; }
.aq-sh-meta b { font-weight: 500; font-variant-numeric: tabular-nums; }
.aq-sh-meta .is-due b { color: #dc2626; font-weight: 700; }
.aq-sh-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4em; }
.aq-sh-box { position: relative; min-width: 0; padding: 0.9em 1.1em; border: 1px solid var(--aq-paper-line); border-radius: 0.3em; }
.aq-sh-box .k { margin-bottom: 0.45em; padding-bottom: 0.4em; border-bottom: 1px solid var(--aq-paper-line); font-size: 0.85em; font-weight: 700; letter-spacing: 0.4em; color: #2563eb; }
.aq-sh-box .co { margin-bottom: 0.35em; font-size: 1.3em; font-weight: 800; overflow-wrap: anywhere; }
.aq-sh-box .co.is-ph { color: #a3a6ad; font-weight: 600; }
.aq-sh-box dl { display: grid; grid-template-columns: 5em minmax(0, 1fr); gap: 0.2em 0.6em; margin: 0; font-size: 0.9em; }
.aq-sh-box dt { font-weight: 700; color: var(--aq-paper-ink); }
.aq-sh-box dd { margin: 0; color: var(--aq-paper-muted); overflow-wrap: anywhere; }
.aq-sh-seal { position: absolute; right: 1em; top: 2.6em; width: 4.2em; height: 4.2em; display: grid; place-items: center; border: 1.5px dashed #d0828f; border-radius: 50%; color: #c0475a; font-size: 0.78em; font-weight: 700; text-align: center; line-height: 1.25; }
/* 요약 카드 2칸(지금 결제 · 할인) — PDF 와 같다 */
.aq-sh-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6em; }
.aq-sh-card { min-width: 0; padding: 0.75em 0.9em; border: 1px solid var(--aq-paper-line); border-radius: 0.35em; background: #f8fafc; }
.aq-sh-card .k { font-size: 0.82em; font-weight: 700; color: var(--aq-paper-muted); }
.aq-sh-card .v { font-size: 1.3em; font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; font-variant-numeric: tabular-nums; }
.aq-sh-card .s { font-size: 0.78em; color: var(--aq-paper-muted); }
.aq-sh-card.is-dark { background: #1a2a3a; border-color: #1a2a3a; color: #fff; }
.aq-sh-card.is-dark .k { color: #c7d5e6; }
.aq-sh-card.is-dark .s { color: #91a5bd; }
.aq-sh-card.is-good .v { color: #0c7a52; }
.aq-sh-h { margin-top: 0.1em; font-size: 0.82em; font-weight: 700; letter-spacing: 0.4em; color: #94a3b8; }
.aq-sh-sec { border: 1px solid var(--aq-paper-line); border-radius: 0.35em; overflow: hidden; }
.aq-sh-band { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; padding: 0.45em 0.9em; background: #2563eb; color: #fff; font-weight: 800; }
.aq-sh-band small { font-weight: 500; color: #e8eef7; font-size: 0.85em; }
.aq-sh-band.is-once { background: #1a2a3a; }
/* 필요한 달에만 내는 예상 금액(MP3 글자수 충전) — PDF 의 띠 색(#64748B)과 같다 */
.aq-sh-band.is-est { background: #64748b; }
.aq-sh-t { width: 100%; border-collapse: collapse; font-size: 0.88em; }
.aq-sh-t th { padding: 0.45em 0.5em; background: #f1f5f9; color: var(--aq-paper-muted); font-weight: 700; text-align: right; white-space: nowrap; font-size: 0.9em; border: 0; }
.aq-sh-t th:first-child, .aq-sh-t td:first-child { text-align: left; padding-left: 0.9em; }
.aq-sh-t th:last-child, .aq-sh-t td:last-child { padding-right: 0.9em; }
.aq-sh-t td { padding: 0.5em; border-top: 1px solid var(--aq-paper-line); text-align: right; vertical-align: top; font-variant-numeric: tabular-nums; }
.aq-sh-t td small { display: block; font-size: 0.86em; color: var(--aq-paper-muted); }
.aq-sh-cs { display: inline-block; margin-left: 0.4em; padding: 0 0.35em; border-radius: 0.25em; background: #fff1db; color: #9a5600; font-size: 0.82em; font-weight: 800; vertical-align: 0.1em; }
.aq-sh-sub { display: flex; justify-content: flex-end; gap: 1.4em; padding: 0.45em 0.9em; background: #f8fafc; border-top: 1px solid var(--aq-paper-line); font-weight: 800; font-variant-numeric: tabular-nums; }
.aq-sh-sub span { font-weight: 500; color: var(--aq-paper-muted); }
.aq-sh-grand { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.3em 1.5em; padding-top: 0.6em; border-top: 1px solid #cbd5e1; font-size: 0.95em; font-variant-numeric: tabular-nums; }
.aq-sh-grand span { margin-right: 0.5em; color: var(--aq-paper-muted); }
.aq-sh-grand b { font-weight: 800; }
.aq-sh-box2 h4 { margin: 0 0 0.45em; padding-bottom: 0.3em; border-bottom: 1px solid var(--aq-paper-line); font: 800 0.95em/1.4 var(--aq-font); letter-spacing: 0; color: #1a2a3a; }
.aq-sh-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 0.25em 1.4em; margin: 0; padding: 0; list-style: none; font-size: 0.88em; }
.aq-sh-feat li { position: relative; padding-left: 1em; }
.aq-sh-feat li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 0.4em; height: 0.4em; border-radius: 50%; background: #2563eb; }
.aq-sh-feat li.is-off { color: var(--aq-paper-muted); }
.aq-sh-feat li.is-off::before { background: #cbd5e1; }
.aq-sh-notes { margin: 0; padding-left: 1.1em; font-size: 0.86em; color: var(--aq-paper-muted); }
/* 사이트 공통 CSS(styles.css)가 ul > li 의 글머리표를 지운다 — 견적서 안내 목록은 점을 되살린다 */
.aq-sh-notes li { list-style: disc; }
.aq-sh-foot { margin-top: auto; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1em; padding-top: 0.6em; border-top: 1px solid var(--aq-paper-line); font-size: 0.8em; color: var(--aq-paper-muted); }

/* ── 휴대폰·좁은 화면: 전체 화면 + [구성]/[미리보기] 탭 ── */
@media (max-width: 980px) {
  .aq-root { padding: 0; align-items: stretch; }
  .aq-dialog { width: 100%; height: 100%; border-radius: 0; }
  .aq-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--aq-line); }
  .aq-tabs button { appearance: none; border: 0; border-bottom: 2px solid transparent; background: var(--aq-surface); padding: 10px; font: 700 14px/1.4 var(--aq-font); color: var(--aq-muted); cursor: pointer; }
  .aq-tabs button[aria-selected="true"] { color: var(--aq-accent-strong); border-bottom-color: var(--aq-accent); }
  .aq-body { grid-template-columns: minmax(0, 1fr); }
  .aq-cfg { border-right: 0; }
  .aq-root[data-tab="build"] .aq-pv { display: none; }
  .aq-root[data-tab="preview"] .aq-cfg { display: none; }
}
@media (max-width: 420px) {
  .aq-grid2 { grid-template-columns: minmax(0, 1fr); }
  .aq-btn { padding: 10px 13px; }
  .aq-seg.is-4 { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aq-num input { width: 88px; }
}
@media (prefers-reduced-motion: reduce) {
  .aq-sw i, .aq-sw i::after { transition: none; }
}
body.aq-lock { overflow: hidden; }
