/* c-quotes · 받은 견적(지도) · 견적 비교
   OPS app/q/[token]/customer-live.css · compare.css · ask.css 의 크기 · 간격을 스테이지 변수(--ui-*)로 옮김 · 보라 하나 · 먹 · 회색만
   범위 = .x-body .cq-* (시트 안 글 = .x-sheet .cq-* · 아래 고정 줄이 있을 때 알림 위치 · 폭만 body:has) */

/* ---------- 공통 ---------- */
.x-body .cq-view { --cq-p: var(--ui-brand, #4c00ff); --cq-tint: var(--ui-brand-tint, #f4f0ff); --cq-soft: #8c6bff; --cq-ease: var(--ui-ease, cubic-bezier(.22, 1, .36, 1)); --cq-top: calc(var(--sw-top, 76px) + 16px); min-width: 0; }
.x-body .cq-view .sw-head-main { min-width: 0; }
.x-body .cq-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }
.x-body .cq-view .sw-chip.cq-chip-p, .x-sheet .sw-chip.cq-chip-p { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); font-weight: 600; }
.x-body .cq-view .sw-chip.cq-chip-line { background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink-2, #4e5968); }
.x-body .cq-empty { padding: 48px 0; text-align: center; color: var(--ui-ink-3, #8b95a1); font: 500 15px/1.5 var(--ui-font, inherit); }

/* 상태 칩(받는 중 = 보라 점 맥박 · 그 밖 = 회색) */
.x-body .cq-state { flex: none; gap: 6px; }
.x-body .cq-state i { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--ui-ink-4, #b0b8c1); }
.x-body .cq-state.is-live { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); font-weight: 600; }
.x-body .cq-state.is-live i { background: var(--ui-brand, #4c00ff); }
.x-body .cq-state.is-live i::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--ui-brand, #4c00ff); animation: cq-ping 1.8s var(--cq-ease) infinite; }
@keyframes cq-ping { 0% { transform: scale(1); opacity: .5; } 100% { transform: scale(2.8); opacity: 0; } }

/* 업무 탭(스테이지 ui-seg) · 곳 수 · 고른 업무 = 체크 */
.x-body .cq-view .ui-seg-btn { gap: 6px; }
.x-body .cq-tab-n { font: 500 13px/1 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); }
.x-body .cq-view .ui-seg-btn[aria-pressed=true] .cq-tab-n { color: var(--ui-ink-2, #4e5968); }
.x-body .cq-ck { flex: none; color: var(--ui-brand, #4c00ff); }

/* 라벨 · 숫자 짝(OPS .pairs) */
.x-body .cq-pairs { display: grid; grid-template-columns: 1fr 1fr; }
.x-body .cq-pair { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.x-body .cq-pair + .cq-pair { padding-left: 20px; border-left: 1px solid var(--ui-line, #f2f4f6); }
.x-body .cq-lab { display: flex; align-items: center; gap: 6px; min-height: 20px; font: 400 13px/1.5 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); white-space: nowrap; }
.x-body .cq-lab .sw-chip { height: 20px; padding: 0 6px; }

/* ---------- c/quotes · 지도 + 정보 ---------- */
.x-body .cq-live { padding-bottom: 0; }
.x-body .cq-app { display: grid; gap: 16px; min-width: 0; }
.x-body .cq-panel { display: flex; flex-direction: column; min-width: 0; }
.x-body .cq-panel-body { min-width: 0; padding-top: 8px; }
.x-body .cq-stats .cq-pair { gap: 4px; }
.x-body .cq-clock { font: 700 24px/1.3 var(--ui-font, inherit); letter-spacing: 0; color: var(--ui-ink, #191f28); white-space: nowrap; }
.x-body .cq-cnt { display: flex; align-items: baseline; gap: 4px; line-height: 1.3; white-space: nowrap; }
.x-body .cq-cnt b { display: inline-block; font: 700 24px/1.3 var(--ui-font, inherit); color: var(--ui-brand, #4c00ff); }
.x-body .cq-cnt b.is-bump { animation: cq-bump .36s var(--cq-ease); }
.x-body .cq-cnt span { font: 500 15px/1.3 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); }
@keyframes cq-bump { 0% { transform: scale(1); } 40% { transform: scale(1.14); } 100% { transform: scale(1); } }
.x-body .cq-sec { margin-top: 32px; }
.x-body .cq-sec h2 { margin: 0; font: 700 17px/1.4 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); }
.x-body .cq-feed-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.x-body .cq-feed { list-style: none; margin: 8px -12px 0; padding: 0; }
.x-body .cq-row { -webkit-appearance: none; appearance: none; box-sizing: border-box; border: 0; background: transparent; font: inherit; color: inherit; text-align: left; cursor: pointer;
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 14px 12px; border-radius: 16px; transition: background-color .2s var(--cq-ease), transform .16s var(--cq-ease); }
.x-body .cq-row.is-wait { cursor: default; }
.x-body .cq-row:not(.is-wait):active { background: var(--ui-press, rgba(2, 32, 71, .05)); transform: scale(.98); }
.x-body .cq-row.is-hl { background: var(--ui-press, rgba(2, 32, 71, .05)); }
.x-body .cq-row.is-fresh { animation: cq-fresh 1.6s var(--cq-ease); }
@keyframes cq-fresh { 0% { background: var(--ui-brand-tint, #f4f0ff); } 100% { background: rgba(244, 240, 255, 0); } }
.x-body .cq-feed.is-nudge .cq-row[data-open] { animation: cq-nudge .9s var(--cq-ease); }
@keyframes cq-nudge { 0%, 100% { background: rgba(244, 240, 255, 0); } 35% { background: var(--ui-brand-tint, #f4f0ff); } }
.x-body .cq-nm { flex: 1; min-width: 0; font: 500 15px/1.5 var(--ui-font, inherit); color: var(--ui-ink, #191f28); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-body .cq-nm.is-mute { color: var(--ui-ink-3, #8b95a1); }
.x-body .cq-row.is-on .cq-nm { color: var(--ui-brand, #4c00ff); font-weight: 700; }
.x-body .cq-amt { flex: none; display: flex; align-items: baseline; gap: 6px; white-space: nowrap; }
.x-body .cq-amt i { font-style: normal; font: 500 12px/1.5 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); }
.x-body .cq-amt b { font: 700 15px/1.5 var(--ui-font, inherit); color: var(--ui-ink, #191f28); transition: color .2s var(--cq-ease); }
.x-body .cq-amt.is-low b, .x-body .cq-amt.is-pk b { color: var(--ui-brand, #4c00ff); }
.x-body .cq-feed.has-pick .cq-amt.is-low:not(.is-pk) b { color: var(--ui-ink, #191f28); }
.x-body .cq-avgs { margin-top: 12px; }
.x-body .cq-avgs b { font: 700 16px/1.5 var(--ui-font, inherit); color: var(--ui-ink, #191f28); white-space: nowrap; }

/* 아래 고정 줄 = 합계 + 다음 할 일(휴대폰 = 화면 아래 · 두 칸 = 오른쪽 칸 아래) */
.x-body .cq-bar { position: sticky; bottom: 0; z-index: 6; display: flex; align-items: center; gap: 16px; margin: 24px calc(var(--ui-gutter, 20px) * -1) 0;
  padding: 12px var(--ui-gutter, 20px) calc(12px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -8px 24px rgba(0, 27, 55, .06); }
.x-body .cq-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.x-body .cq-sum-v { font: 700 17px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); white-space: nowrap; }
.x-body .cq-next { flex: none; min-width: 164px; }
.x-body .cq-next:disabled { cursor: default; }

/* 지도(CustomerLiveMap) */
.x-body .cq-map { position: relative; height: clamp(300px, 46svh, 420px); overflow: hidden; border-radius: var(--ui-radius-card, 20px); border: 1px solid var(--ui-line, #f2f4f6);
  background: #fff radial-gradient(ellipse 120% 70% at 50% -12%, rgba(110, 88, 255, .07), rgba(110, 88, 255, 0) 70%) no-repeat; }
.x-body .cq-geo, .x-body .cq-rt, .x-body .cq-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.x-body .cq-geo { opacity: 0; transition: opacity .5s var(--cq-ease); }
.x-body .cq-map.ready .cq-geo { opacity: 1; }
.x-body .cq-layer { pointer-events: none; }
.x-body .cq-layer > * { pointer-events: auto; }
.x-body .cq-site { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; pointer-events: none; }
.x-body .cq-site .cq-core { position: absolute; inset: 4px; border-radius: 50%; background: var(--ui-brand, #4c00ff); border: 3px solid #fff; box-shadow: 0 6px 16px rgba(76, 0, 255, .28);
  display: grid; place-items: center; transform: scale(.6); opacity: 0; transition: transform .4s var(--cq-ease), opacity .26s var(--cq-ease); }
.x-body .cq-map.ready .cq-site .cq-core { transform: scale(1); opacity: 1; }
.x-body .cq-site .cq-core svg { width: 14px; height: 14px; display: block; }
.x-body .cq-site .cq-ring { position: absolute; inset: 4px; border-radius: 50%; background: rgba(76, 0, 255, .16); animation: cq-ring 2.6s var(--cq-ease) infinite; }
.x-body .cq-site .cq-ring.is-r2 { animation-delay: 1.3s; }
@keyframes cq-ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(3); opacity: 0; } }
.x-body .cq-site.bump .cq-core { animation: cq-bump .36s var(--cq-ease); }
.x-body .cq-tag { position: absolute; left: 0; top: 0; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--ui-ink, #191f28); color: #fff; font: 700 12px/1 var(--ui-font, inherit);
  display: flex; align-items: center; gap: 4px; white-space: nowrap; box-shadow: 0 6px 16px rgba(25, 31, 40, .16); pointer-events: none; opacity: 0; transition: opacity .26s var(--cq-ease) .1s; }
.x-body .cq-tag em { font-style: normal; font-weight: 500; color: rgba(255, 255, 255, .66); }
.x-body .cq-map.ready .cq-tag { opacity: 1; }
.x-body .cq-dot { position: absolute; left: 0; top: 0; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: #fff; border: 3px solid var(--cq-soft);
  box-shadow: 0 2px 8px rgba(76, 0, 255, .18); opacity: 0; transform: scale(.5); transition: transform .3s var(--cq-ease), opacity .2s var(--cq-ease); pointer-events: none; box-sizing: border-box; }
.x-body .cq-dot.in { opacity: 1; }
.x-body .cq-bub { -webkit-appearance: none; appearance: none; position: absolute; left: 0; top: 0; min-height: 36px; max-width: 168px; padding: 8px 12px; border-radius: 999px; text-align: left; cursor: pointer;
  font: inherit; color: inherit; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px) saturate(1.6); backdrop-filter: blur(12px) saturate(1.6);
  border: 1px solid rgba(229, 232, 235, .9); box-shadow: 0 6px 20px rgba(0, 27, 55, .08); display: flex; flex-direction: column; justify-content: center; box-sizing: border-box;
  opacity: 0; translate: 0 6px; transition: opacity .26s var(--cq-ease), translate .26s var(--cq-ease), scale .16s var(--cq-ease), box-shadow .2s var(--cq-ease), border-color .2s var(--cq-ease); }
.x-body .cq-bub.in { opacity: 1; translate: 0 0; }
.x-body .cq-bub:active { scale: .96; }
.x-body .cq-bub-nm { font: 700 13px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-body .cq-bub.hl { box-shadow: 0 8px 24px rgba(76, 0, 255, .16); border-color: rgba(140, 107, 255, .5); }
.x-body .cq-bub.on { border-color: var(--ui-brand, #4c00ff); box-shadow: 0 8px 24px rgba(76, 0, 255, .18); }
.x-body .cq-bub.on .cq-bub-nm { color: var(--ui-brand, #4c00ff); }
.x-body .cq-map.is-focus .cq-bub.in:not(.hl) { opacity: .4; }
.x-body .cq-rt path.cq-base { fill: none; stroke-width: 2; stroke-linecap: round; }
.x-body .cq-rt path.cq-flow { fill: none; stroke: var(--cq-soft); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 0 8; opacity: 0; transition: opacity .3s var(--cq-ease); }
.x-body .cq-rt g.on path.cq-flow { opacity: .7; animation: cq-flow 1s linear 4; }
.x-body .cq-rt g.on.hl path.cq-flow { animation: cq-flow2 1s linear 3; }
@keyframes cq-flow { to { stroke-dashoffset: -8; } }
@keyframes cq-flow2 { to { stroke-dashoffset: -8; } }
.x-body .cq-rt .cq-comet { fill: var(--cq-soft); filter: drop-shadow(0 0 5px rgba(110, 88, 255, .6)); }
.x-body .cq-rt line.cq-stem { stroke: #d9dde3; stroke-width: 1; }
.x-body .cq-rt g.cq-rte { transition: opacity .2s var(--cq-ease); }
.x-body .cq-map.is-focus .cq-rt g.cq-rte:not(.hl) { opacity: .2; }

/* 720 이상 = 왼쪽 지도(붙어 있음) · 오른쪽 정보(아래 줄 = 칸 아래 붙음) · OPS 10-19 */
@media (min-width: 720px) {
  .x-body .cq-live { padding-bottom: 24px; }
  .x-body .cq-app { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
  .x-body .cq-map { position: sticky; top: var(--cq-top); height: calc(100dvh - var(--sw-top, 76px) - 120px); min-height: 420px; border-radius: 24px; }
  .x-body .cq-panel { min-height: calc(100dvh - var(--sw-top, 76px) - 120px); }
  .x-body .cq-panel-body { padding-top: 4px; }
  .x-body .cq-bar { margin: auto 0 0; padding: 16px 0 4px; box-shadow: 0 -12px 24px -12px rgba(0, 27, 55, .08); }
}
@media (min-width: 720px) and (max-width: 1100px) {
  .x-body .cq-view { --cq-top: calc(var(--sw-top, 76px) + 72px); }
  .x-body .cq-map, .x-body .cq-panel { height: auto; }
  .x-body .cq-map { height: calc(100dvh - var(--sw-top, 76px) - 176px); }
  .x-body .cq-panel { min-height: calc(100dvh - var(--sw-top, 76px) - 176px); }
}
@media (min-width: 1280px) {
  .x-body .cq-app { grid-template-columns: minmax(0, 1fr) 400px; }
}
@media (min-width: 720px) and (max-height: 820px) {
  .x-body .cq-sec { margin-top: 24px; }
  .x-body .cq-row { min-height: 52px; padding: 12px; }
}
@media (hover: hover) and (pointer: fine) {
  .x-body .cq-row[data-open]:hover { background: var(--ui-press, rgba(2, 32, 71, .05)); }
  .x-body .cq-bub:hover { box-shadow: 0 8px 24px rgba(76, 0, 255, .14); }
}

/* ---------- c/compare · 업체 비교 ---------- */
.x-body .cq-cmp-head { flex-wrap: wrap; row-gap: 12px; }
.x-body .cq-back { margin-left: -10px; color: var(--ui-ink, #191f28); }
.x-body .cq-dl { flex: none; margin-left: auto; }
.x-body .cq-dl svg { flex: none; }
.x-body .cq-cmp-body { display: grid; gap: 20px; align-content: start; min-width: 0; }
.x-body .cq-cmp-body > .cq-tabs { justify-self: start; }
.x-body .cq-cmp-h2 { margin: 0; font: 700 20px/1.4 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); }
.x-body .cq-cmp-sec { display: grid; gap: 12px; min-width: 0; }
.x-body .cq-cmp { display: flex; flex-direction: column; min-height: calc(100dvh - var(--sw-top, 76px) - var(--x-tab-height, 0px)); padding-bottom: 0; }
.x-body .cq-cmp > .cq-cmp-body { flex: 1 0 auto; }

/* 차이 한 줄 · 공통 특이사항 */
.x-body .cq-diff { display: flex; align-items: flex-start; gap: 14px; min-width: 0; padding: 14px 18px; border-radius: 16px; background: #f9fafb; box-shadow: inset 0 0 0 1px var(--ui-line, #f2f4f6); animation: cq-rise .22s var(--cq-ease) both; }
.x-body .cq-diff-lbl { flex: none; font: 700 15px/22px var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .cq-diff-lines { display: grid; gap: 4px; min-width: 0; }
.x-body .cq-diff-lines p { margin: 0; font: 500 15px/22px var(--ui-font, inherit); color: var(--ui-ink-body, #333d4b); overflow-wrap: anywhere; }
.x-body .cq-diff-lines b { font-weight: 700; color: var(--ui-ink, #191f28); }
@keyframes cq-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* 비교 칸 · 왼쪽 줄 이름 + 담은 곳마다 한 칸(subgrid 로 줄 높이 맞춤) */
.x-body .cq-tray-wrap { min-width: 0; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; margin: 0 -2px; padding: 2px 2px 6px; }
.x-body .cq-tray { display: grid; grid-template-columns: 92px repeat(3, minmax(200px, 1fr)); grid-template-rows: repeat(var(--n), auto); column-gap: 10px; min-width: 0; }
.x-body .cq-tlabels, .x-body .cq-tcol { display: grid; grid-row: 1 / span var(--n); grid-template-rows: subgrid; min-width: 0; }
.x-body .cq-tl { display: flex; align-items: center; padding: 0 2px; font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); border-top: 1px solid var(--ui-line, #f2f4f6); }
.x-body .cq-tl.is-head, .x-body .cq-tl.is-act { border-top: 0; }
.x-body .cq-tcol { position: relative; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb), var(--ui-shadow-card, 0 10px 34px rgba(23, 92, 211, .07)); overflow: hidden; }
.x-body .cq-tcol.is-new { animation: cq-col-in .28s var(--cq-ease) both; } /* 처음 담은 칸만 떠오름(골라도 칸이 다시 들썩이지 않게) */
@keyframes cq-col-in { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.x-body .cq-tcol.is-on { background: linear-gradient(180deg, var(--ui-brand-tint, #f4f0ff) 0, #fff 120px); box-shadow: inset 0 0 0 2px var(--ui-brand, #4c00ff), 0 12px 32px rgba(76, 0, 255, .1); }
.x-body .cq-tcol.is-nudge, .x-body .cq-list.is-nudge { animation: cq-outline .9s var(--cq-ease) both; }
@keyframes cq-outline { 0% { outline: 2px solid rgba(76, 0, 255, 0); outline-offset: 4px; } 25% { outline: 2px solid rgba(76, 0, 255, .9); outline-offset: 2px; } 100% { outline: 2px solid rgba(76, 0, 255, 0); outline-offset: 2px; } }
.x-body .cq-tc { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-height: 44px; padding: 8px 14px; border-top: 1px solid var(--ui-line, #f2f4f6); min-width: 0; }
.x-body .cq-tc.is-head { position: relative; flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 40px 12px 14px; border-top: 0; min-height: 72px; }
.x-body .cq-tname { font: 700 16px/22px var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); overflow-wrap: anywhere; }
.x-body .cq-tbadges { display: flex; flex-wrap: wrap; gap: 4px; }
.x-body .cq-tx { -webkit-appearance: none; appearance: none; border: 0; background: transparent; padding: 0; position: absolute; top: 10px; right: 10px; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--ui-ink-2, #4e5968); cursor: pointer; transition: background-color .14s var(--cq-ease); }
.x-body .cq-tx:hover { background: var(--ui-fill, #f2f4f6); }
.x-body .cq-tc.is-amt b { font: 700 20px/28px var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); white-space: nowrap; }
.x-body .cq-tk { display: none; font: 500 13px/1.4 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); }
.x-body .cq-tv { font: 500 15px/22px var(--ui-font, inherit); color: var(--ui-ink-body, #333d4b); min-width: 0; overflow-wrap: anywhere; }
.x-body .cq-tv.is-none { color: var(--ui-ink-4, #b0b8c1); }
.x-body .cq-tc.is-note { align-items: flex-start; }
.x-body .cq-tc.is-memo .cq-tv { font-size: 14px; line-height: 21px; white-space: pre-line; }
.x-body .cq-tc:not(.is-head):not(.is-amt):not(.is-act) .cq-tv { flex: 1 1 0; }
.x-body .cq-vat { font: 500 13px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); white-space: nowrap; }
.x-body .cq-tc.is-best .cq-tv, .x-body .cq-tc.is-amt.is-best b { color: var(--ui-brand, #4c00ff); font-weight: 700; }
.x-body .cq-tc.is-best::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--ui-brand, #4c00ff); }
.x-body .cq-tc.is-act { border-top: 0; padding: 8px 12px 14px; }
.x-body .cq-pick { gap: 6px; }
.x-body .cq-pick.is-on { box-shadow: inset 0 0 0 1px #c9b3ff; }
.x-body .cq-pick.is-on .cq-ck { color: var(--ui-brand, #4c00ff); }
.x-body .cq-tempty { grid-row: 1 / span var(--n); display: grid; place-items: center; min-height: 200px; border-radius: 20px; background: #f9fafb; color: var(--ui-ink-4, #b0b8c1); }
.x-body .cq-tplus { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--ui-ink-4, #b0b8c1); box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }

/* 견적 낸 곳 한 판 목록(이름 · 칩 | 금액 | +) */
.x-body .cq-list { list-style: none; margin: 0; padding: 0; display: grid; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); overflow: hidden; }
.x-body .cq-list > li { display: flex; min-width: 0; }
.x-body .cq-list > li + li { border-top: 1px solid var(--ui-line, #f2f4f6); }
.x-body .cq-crow { -webkit-appearance: none; appearance: none; border: 0; font: inherit; color: inherit; box-sizing: border-box; display: flex; align-items: center; gap: 16px; width: 100%; min-width: 0; min-height: 64px;
  padding: 12px 16px 12px 20px; background: #fff; text-align: left; cursor: pointer; transition: background-color .16s var(--cq-ease); }
.x-body .cq-crow-main { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; flex: 1 1 auto; min-width: 0; }
.x-body .cq-crow-name { min-width: 0; font: 700 16px/24px var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); overflow-wrap: anywhere; }
.x-body .cq-crow-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.x-body .cq-crow-amt { flex: none; font: 700 17px/24px var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); white-space: nowrap; }
.x-body .cq-crow-add { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ui-fill, #f2f4f6); color: var(--ui-ink-2, #4e5968); transition: background-color .16s var(--cq-ease), color .16s var(--cq-ease); }
.x-body .cq-crow:not(:disabled):active { background: #f9fafb; }
.x-body .cq-crow:not(:disabled):active .cq-crow-add { background: var(--ui-brand, #4c00ff); color: #fff; }
/* 비교 칸이 다 참 = + 만 흐림(스테이지 전역 button:disabled 흐림 끔 · OPS 와 같게) */
.x-body .cq-crow:disabled { cursor: default; opacity: 1; }
.x-body .cq-crow:disabled .cq-crow-add { opacity: .4; }
@media (hover: hover) and (pointer: fine) {
  .x-body .cq-crow:not(:disabled):hover { background: #f9fafb; }
  .x-body .cq-crow:not(:disabled):hover .cq-crow-add { background: var(--ui-brand, #4c00ff); color: #fff; }
}

/* 클린미션에 요청(CTA 둘 · 글 길이만큼 · 폰 = 한 줄에 하나) */
.x-body .cq-ctas { display: grid; grid-auto-flow: column; grid-auto-columns: max-content; justify-content: start; gap: 8px; }
.x-body .cq-cta { gap: 8px; min-height: 52px; border-radius: 14px; font-weight: 700; }
.x-body .cq-cta-chip { background: #fff; }

/* 비교 화면 아래 줄 = 본문 칸 아래 붙음 */
.x-body .cq-bar-cmp { display: block; margin: 24px -32px 0; padding: 12px 32px calc(12px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.x-body .cq-bar-in { display: flex; align-items: center; gap: 16px; }
.x-body .cq-bar-cmp .cq-next { min-width: 220px; }

@media (max-width: 1100px) {
  /* LNB 숨는 폭 = 스테이지 sw-view 옆 여백이 --ui-gutter(24 · 20) · 아래 줄도 그만큼만 밖으로 */
  .x-body .cq-bar-cmp { margin: 24px calc(var(--ui-gutter, 20px) * -1) 0; padding: 12px var(--ui-gutter, 20px) calc(12px + env(safe-area-inset-bottom)); }
}
@media (max-width: 760px) {
  .x-body .cq-bar-cmp .cq-next, .x-body .cq-next { min-width: 0; flex: 1 1 auto; }
  .x-body .cq-sum { flex: 0 1 auto; }
  .x-body .cq-cmp-body > .cq-tabs { justify-self: stretch; display: flex; }
  .x-body .cq-cmp-body > .cq-tabs .ui-seg-btn { flex: 1 1 0; }
  /* 휴대폰 = 비교 2칸이 한 화면에 다 들어감(옆으로 넘쳐 왼쪽 이름 칸 밑으로 겹치던 것 없앰 · 10-20 대표 "여기 ui 겹친다") */
  .x-body .cq-tray-wrap { overflow-x: visible; margin: 0; padding: 2px 0 6px; }
  .x-body .cq-tray { grid-template-columns: 60px repeat(2, minmax(0, 1fr)); column-gap: 6px; }
  .x-body .cq-tray.is-n1 { grid-template-columns: 60px minmax(0, 1fr) 64px; }
  .x-body .cq-tlabels { position: static; background: none; }
  .x-body .cq-tl { font-size: 13px; line-height: 1.35; word-break: keep-all; }
  .x-body .cq-tempty { min-height: 0; border-radius: 16px; }
  .x-body .cq-tempty.is-more { display: none; }
  .x-body .cq-tcol { border-radius: 16px; }
  .x-body .cq-tc { padding: 8px 10px; }
  .x-body .cq-tc.is-head { padding: 14px 30px 10px 10px; }
  .x-body .cq-tname { word-break: keep-all; }
  .x-body .cq-tc.is-amt b { font-size: 16px; }
  .x-body .cq-tc.is-act { padding: 8px 8px 12px; }
  .x-body .cq-tc.is-act .ui-btn { padding: 0 6px; white-space: nowrap; }
  /* 가장 좋은 값 = 휴대폰은 보라 굵은 글만(좁은 칸에서 점이 한 줄로 떨어지거나 칸 테두리에 붙던 것) */
  .x-body .cq-tc.is-best::before { display: none; }
  .x-body .cq-tname { font-size: 15px; }
  .x-body .cq-tv { font-size: 14px; }
  .x-body .cq-crow { gap: 12px; padding: 12px 12px 12px 16px; }
  .x-body .cq-crow-main { flex-direction: column; align-items: flex-start; gap: 4px; }
  .x-body .cq-crow-name { font-size: 15px; line-height: 22px; }
  .x-body .cq-crow-amt { font-size: 16px; }
  .x-body .cq-diff { flex-direction: column; gap: 6px; padding: 12px 14px; }
  .x-body .cq-diff-lines p { font-size: 14px; }
  .x-body .cq-ctas { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); justify-content: stretch; }
  .x-body .cq-cta { justify-content: space-between; }
}
@media (max-width: 560px) {
  .x-body .cq-cmp-head .sw-head-main { flex: 1 1 100%; }
  .x-body .cq-dl { margin-left: 0; }
}
@media (max-width: 420px) {
  .x-body .cq-pair + .cq-pair { padding-left: 16px; }
  .x-body .cq-sum-v { font-size: 16px; }
}

/* ---------- 시트 안(기관 정보 · 클린미션에 요청) ---------- */
.x-sheet .cq-sh-dl { margin: 6px 0 0; }
.x-sheet .cq-sh-dl > div { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 10px 0; }
.x-sheet .cq-sh-dl > div + div { border-top: 1px solid var(--ui-line, #f2f4f6); }
.x-sheet .cq-sh-dl dt { flex: none; font: 400 14px/24px var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); }
.x-sheet .cq-sh-dl dd { flex: 1; min-width: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 6px; font: 500 15px/24px var(--ui-font, inherit); color: var(--ui-ink, #191f28); text-align: right; }
.x-sheet .cq-sh-dl dd b { font-weight: 700; }
.x-sheet .cq-sh-amt { font-size: 17px; }
.x-sheet .cq-sh-amt.is-pk { color: var(--ui-brand, #4c00ff); }
.x-sheet .x-sheet-foot > .cq-sh-main { flex: 2; }
.x-sheet .cq-ask { display: grid; gap: 8px; padding-top: 8px; }
.x-sheet .cq-ask-seg { display: flex; width: 100%; margin-bottom: 12px; }
.x-sheet .cq-ask-seg .ui-seg-btn { flex: 1 1 0; }
.x-sheet .cq-ask-lab { font: 500 14px/1.5 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }

/* 아래 고정 줄이 있는 화면 = 알림을 줄 위로 */
body:has(.x-body .cq-bar) .x-toast { bottom: calc(100px + env(safe-area-inset-bottom)); width: max-content; max-width: calc(100vw - 32px); box-sizing: border-box; text-align: center; }

@media (prefers-reduced-motion: reduce) {
  .x-body .cq-view *, .x-body .cq-view *::before, .x-body .cq-view *::after { animation: none !important; transition: none !important; }
}

/* ================= 휴대폰 견적 비교 = 숨고식 목록 + 견적 상세(10-20 대표 "클릭하면 내역이라도 · 숨고처럼") ================= */
.x-body .cqm { min-width: 0; margin: 4px 0 0; }
.x-body .cqm-now, .x-sheet .cqm-now { background: var(--ui-ink, #191f28); color: #fff; }
/* 머리 마감 칩 · 아래 '선정 합계' 글 = 휴대폰에선 뺌 */
.x-body .cq-cmp.is-m .cq-cmp-head .sw-head-main .sw-chip { display: none; }
.x-body .cq-cmp.is-m .cq-bar-cmp .cq-lab { display: none; }
.cqs-av { flex: none; display: grid; place-items: center; width: var(--s, 48px); height: var(--s, 48px); border-radius: 50%; background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); font: 800 calc(var(--s, 48px) * .4)/1 var(--ui-font, inherit); overflow: hidden; }
.cqs-av.is-logo { background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.cqs-av img { width: 78%; height: 78%; object-fit: contain; }
.x-body .cqs-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.x-body .cqs-card { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; width: 100%; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 16px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); font: inherit; color: inherit; text-align: left; transition: box-shadow .15s ease, background-color .15s ease, transform .15s ease; }
.x-body .cqs-card:active { transform: scale(.99); background: #f9fafb; }
.x-body .cqs-card.is-on { background: var(--ui-brand-tint, #f4f0ff); box-shadow: inset 0 0 0 2px var(--ui-brand, #4c00ff); }
.x-body .cqs-card:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .cqs-card.is-nudge { animation: cq-outline .9s var(--cq-ease) both; }
.x-body .cqs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.x-body .cqs-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.x-body .cqs-nm { min-width: 0; font: 700 16px/1.35 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .cqs-picked { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; font-size: 12px; }
.x-body .cqm-toks { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.x-body .cqm-t { display: inline-flex; align-items: center; gap: 3px; font: 600 13px/1.3 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); font-variant-numeric: tabular-nums; }
.x-body .cqm-t svg { flex: none; }
.x-body .cqm-t.is-best { color: var(--ui-brand, #4c00ff); }
.x-body .cqs-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.x-body .cqs-amt { font: 800 18px/1.3 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); }
.x-body .cqs-amt.is-low { color: var(--ui-brand, #4c00ff); }
.x-body .cqs-right .sw-chip { height: 22px; padding: 0 8px; font-size: 12px; line-height: 22px; }
.x-body .cqs-cur { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 0 16px; border-radius: 18px; background: #f4f5f7; }
.x-body .cqs-cur .cqs-av { background: #e5e8eb; color: var(--ui-ink-2, #4e5968); }
.x-body .cqs-cur .cqs-nm { font-size: 15px; color: var(--ui-ink-2, #4e5968); }
.x-body .cqs-cur b { margin-left: auto; font: 700 16px/1.3 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
/* PC 비교 칸 이름 = 누르면 견적 상세 */
.x-body .cq-tname-btn { -webkit-appearance: none; appearance: none; border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: inherit; text-align: left; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: text-decoration-color .15s ease; }
.x-body .cq-tname-btn:hover { text-decoration-color: currentColor; }

/* 견적 상세 시트 */
.x-sheet .cqs-d { display: grid; gap: 16px; padding-bottom: 8px; }
.x-sheet .cqs-d-head { display: flex; align-items: center; gap: 14px; }
.x-sheet .cqs-d-hm { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.x-sheet .cqs-d-nm { font: 800 20px/1.3 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-sheet .cqs-d-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.x-sheet .cqs-chip { background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink-2, #4e5968); }
.x-sheet .cqs-d-price { display: grid; gap: 10px; padding: 18px; border-radius: 18px; background: #f9fafb; }
.x-sheet .cqs-d-price > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.x-sheet .cqs-d-price b { font: 800 28px/1.2 var(--ui-font, inherit); letter-spacing: -.03em; color: var(--ui-ink, #191f28); }
.x-sheet .cqs-d-price span { font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-sheet .cqs-d-cur { justify-self: start; padding: 6px 10px; border-radius: 10px; background: #e5e8eb; font: 700 14px/1.3 var(--ui-font, inherit) !important; color: var(--ui-ink-2, #4e5968) !important; }
.x-sheet .cqs-d-cur.is-down { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff) !important; }
.x-sheet .cqs-d-sec { display: grid; gap: 10px; }
.x-sheet .cqs-d-sec h3 { margin: 4px 0 0; font: 700 16px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-sheet .cqs-d-bill, .x-sheet .cqs-d-dl { margin: 0; display: grid; }
.x-sheet .cqs-d-bill > div, .x-sheet .cqs-d-dl > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.x-sheet .cqs-d-bill > div + div, .x-sheet .cqs-d-dl > div + div { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-sheet .cqs-d-bill dt, .x-sheet .cqs-d-dl dt { flex: none; font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-sheet .cqs-d-bill dd, .x-sheet .cqs-d-dl dd { margin: 0; min-width: 0; text-align: right; font: 700 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; font-variant-numeric: tabular-nums; }
.x-sheet .cqs-d-bill .is-total dt { font-weight: 700; color: var(--ui-ink, #191f28); }
.x-sheet .cqs-d-bill .is-total dd { font: 800 18px/1.3 var(--ui-font, inherit); color: var(--ui-brand, #4c00ff); }
.x-sheet .cqs-d-note { display: flex; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 14px; background: #f9fafb; font: 500 14px/1.5 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-sheet .cqs-d-note b { flex: none; color: var(--ui-ink, #191f28); }
.x-sheet .cqs-d-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.x-sheet .cqs-d-tiles > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: #f9fafb; }
.x-sheet .cqs-ti { grid-row: 1 / span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #fff; color: var(--ui-brand, #4c00ff); }
.x-sheet .cqs-d-tiles b { font: 800 17px/1.3 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-sheet .cqs-d-tiles span:last-child { font: 500 12px/1.3 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); }
@media (max-width: 760px) {
  /* 견적서 내려받기 = 그림 단추만(제목 줄 오른쪽) */
  .x-body .cq-cmp-head { flex-wrap: nowrap; }
  .x-body .cq-cmp-head .sw-head-main { flex: 1 1 auto; min-width: 0; }
  .x-body .cq-dl { margin-left: auto; width: 40px; height: 40px; padding: 0; justify-content: center; }
  .x-body .cq-dl span { display: none; }
}
@media (min-width: 761px) { .x-body .cqm { max-width: 520px; } }
/* 추천 뱃지(알아서 · 10-20) */
.x-body .cqs-badge, .x-sheet .cqs-badge { height: 22px; padding: 0 8px; font-size: 12px; line-height: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink-2, #4e5968); }
.x-body .cqs-badge.is-rec, .x-sheet .cqs-badge.is-rec { background: var(--ui-brand, #4c00ff); box-shadow: none; color: #fff; font-weight: 700; }
.x-sheet .cqs-d-chips .cqs-badge { height: 26px; line-height: 26px; padding: 0 10px; font-size: 13px; }
/* PC 비교 칸 = 칸 자체로 고르기(대표 10-20 "카드 자체를 고르게끔 · 위에 버튼을 없애") */
.x-body .cq-tcol.is-pickable { cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.x-body .cq-tcol.is-pickable:not(.is-on):hover { box-shadow: inset 0 0 0 2px #c9b3ff, var(--ui-shadow-card, 0 10px 34px rgba(23, 92, 211, .07)); }
.x-body .cq-tcol.is-pickable:active { transform: scale(.995); }
.x-body .cq-tcol.is-pickable:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 3px; }
.x-body .cq-tck { position: absolute; top: 14px; right: 12px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ui-brand, #4c00ff); }
.x-body .cq-tck .cq-ck { width: 14px; height: 14px; color: #fff; }
/* 아래 바 [견적 다시 요청] = 누르면 긴급 · 일반(대표 10-20) */
.x-body .cq-re { position: relative; flex: none; }
.x-body .cq-re-btn { white-space: nowrap; }
.x-body .cq-re-btn[aria-expanded=true] { box-shadow: inset 0 0 0 2px var(--ui-ink-3, #8b95a1); }
.x-body .cq-re-pop { position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 7; display: grid; gap: 6px; min-width: 100%; padding: 8px; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(2, 32, 71, .16), inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); animation: cq-re-in .16s ease both; }
.x-body .cq-re-pop .ui-btn { justify-content: space-between; gap: 8px; white-space: nowrap; }
@keyframes cq-re-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.x-body .cq-bar-cmp .cq-bar-in .cq-sum { margin-right: auto; }
@media (max-width: 760px) { .x-body .cq-bar-cmp .cq-bar-in { gap: 8px; } .x-body .cq-re-btn { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .x-body .cq-re-pop { animation: none; } }
/* 아주 좁은 휴대폰(380 아래) = 금액은 위 줄 · 단추 둘은 아래 줄(겹치지 않게) */
@media (max-width: 440px) {
  .x-body .cq-bar-cmp .cq-bar-in { flex-wrap: wrap; row-gap: 6px; }
  .x-body .cq-bar-cmp .cq-bar-in .cq-sum { flex: 1 1 100%; margin-right: 0; }
  .x-body .cq-bar-cmp .cq-re { flex: 0 0 auto; }
  .x-body .cq-bar-cmp .cq-next { flex: 1 1 0; }
}
/* 아래 바 = 두 판 옆으로 밀기(대표 10-20 "밑에 배너가 왼쪽으로 이동하면서 긴급 · 일반") */
.x-body .cq-bar-in.cq-slide { display: block; overflow: hidden; margin: -6px; padding: 6px; }
.x-body .cq-slide-track { display: flex; width: 200%; align-items: center; transition: transform .42s cubic-bezier(.22, 1, .36, 1); will-change: transform; }
.x-body .cq-slide.is-re .cq-slide-track { transform: translateX(-50%); }
.x-body .cq-slide-pane { flex: 0 0 50%; min-width: 0; display: flex; align-items: center; gap: 12px; transition: opacity .3s ease; }
.x-body .cq-slide-pane.is-main .cq-sum { margin-right: auto; min-width: 0; }
.x-body .cq-slide-pane.is-main .cq-re-btn { flex: none; white-space: nowrap; }
.x-body .cq-slide.is-re .cq-slide-pane.is-main, .x-body .cq-slide:not(.is-re) .cq-slide-pane.is-re { opacity: 0; }
.x-body .cq-re-back { flex: none; width: 48px; height: 48px; border-radius: 14px; background: #f2f4f6; color: var(--ui-ink-2, #4e5968); }
.x-body .cq-re-urgent, .x-body .cq-re-normal { flex: 1 1 0; min-width: 0; gap: 8px; min-height: 52px; border-radius: 14px; font-weight: 700; white-space: nowrap; }
.x-body .cq-re-urgent { border: 0; background: linear-gradient(135deg, #f6f1ff 0%, #ebe1ff 100%); box-shadow: inset 0 0 0 1px #d9c9ff; color: var(--ui-brand, #4c00ff); }
.x-body .cq-re-urgent:hover { background: linear-gradient(135deg, #efe6ff 0%, #e1d2ff 100%); box-shadow: inset 0 0 0 1.5px #b99bff; }
.x-body .cq-re-urgent .cq-cta-chip, .x-body .cq-re-normal .cq-cta-chip { background: #fff; }
.x-body .cq-bolt { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; }
.x-body .cq-bolt svg { display: block; filter: drop-shadow(0 1px 1.5px rgba(76, 0, 255, .35)); }
.x-body .cq-bolt::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: radial-gradient(circle, rgba(124, 77, 255, .35) 0, rgba(124, 77, 255, 0) 70%); opacity: 0; pointer-events: none; }
/* 열릴 때 번개 한 번 반짝 · 올리면 살짝 흔들 */
.x-body .cq-slide.is-re .cq-bolt svg { animation: cq-bolt-pop .55s .18s cubic-bezier(.34, 1.56, .64, 1) both; }
.x-body .cq-slide.is-re .cq-bolt::after { animation: cq-bolt-glow .9s .22s ease-out both; }
.x-body .cq-re-urgent:hover .cq-bolt svg { animation: cq-bolt-zap .5s ease both; }
@keyframes cq-bolt-pop { 0% { transform: scale(.55) rotate(-14deg); opacity: 0; } 60% { transform: scale(1.18) rotate(6deg); opacity: 1; } 100% { transform: none; } }
@keyframes cq-bolt-glow { 0% { opacity: 0; transform: scale(.6); } 40% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes cq-bolt-zap { 0%, 100% { transform: none; } 25% { transform: rotate(-10deg) scale(1.08); } 55% { transform: rotate(8deg) scale(1.08); } }
@media (max-width: 440px) { /* 휴대폰 400 = 금액 위 줄 · 단추 둘 아래 줄(10-21 · 400에서 다음 단추 글이 화면 밖으로 넘치던 것) */
  .x-body .cq-slide-pane.is-main { flex-wrap: wrap; row-gap: 6px; }
  .x-body .cq-slide-pane.is-main .cq-sum { flex-direction: row; align-items: baseline; gap: 8px; }
  .x-body .cq-slide-pane.is-main .cq-sum { flex: 1 1 100%; margin-right: 0; }
  .x-body .cq-slide-pane.is-main .cq-next { flex: 1 1 0; }
}
@media (max-width: 760px) { .x-body .cq-slide-pane { gap: 8px; } .x-body .cq-slide-pane.is-main .cq-re-btn { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .x-body .cq-slide-track, .x-body .cq-slide-pane { transition: none; } .x-body .cq-slide .cq-bolt svg, .x-body .cq-slide .cq-bolt::after, .x-body .cq-re-urgent:hover .cq-bolt svg { animation: none; } }
/* 긴급 단추 = 기본 단추 hover · active(짙은 보라)보다 우선 · 휴대폰 탭 뒤 hover 가 남아도 밝게 */
.x-body .cq-slide .cq-re-urgent.ui-btn, .x-body .cq-slide .cq-re-urgent.ui-btn:focus { background: linear-gradient(135deg, #f6f1ff 0%, #ebe1ff 100%); color: var(--ui-brand, #4c00ff); box-shadow: inset 0 0 0 1px #d9c9ff; }
.x-body .cq-slide .cq-re-urgent.ui-btn:hover:not(:disabled), .x-body .cq-slide .cq-re-urgent.ui-btn:active:not(:disabled) { background: linear-gradient(135deg, #efe6ff 0%, #e1d2ff 100%); color: var(--ui-brand, #4c00ff); box-shadow: inset 0 0 0 1.5px #b99bff; }
.x-body .cq-slide .cq-re-urgent.ui-btn:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
