/* c-deal · 신청 관리 · 신청 상세(거래 단계) · 결제 · 준비 자료 · 업무 보고서 · 안전인 stage 토큰 그대로(흰 바탕 · 보라 #4c00ff · Pretendard) */
.x-body .sw-view.dl-v { max-width: 1040px; padding-bottom: 48px; }
.x-body .dl-head { margin-bottom: 16px; }
.x-body .dl-head .sw-head-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.x-body .dl-head .sw-acts .ui-btn { gap: 4px; }
.x-body .dl-top { display: flex; align-items: center; gap: 6px; margin: 0 0 10px -8px; }
.x-body .dl-top-t { font: 600 15px/1.3 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-num { font-variant-numeric: tabular-nums; }
.x-body .dl-fl { display: block; object-fit: contain; }

/* 상태 칩(상태만) */
.dl-chip { flex: none; height: 26px; padding: 0 10px; border-radius: 999px; font: 700 13px/26px var(--ui-font, inherit); letter-spacing: -.01em; white-space: nowrap; }
.dl-chip.is-line { background: var(--ui-surface, #fff); box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink-2, #4e5968); }
.dl-chip.is-soon { background: var(--ui-brand, #4c00ff); color: #fff; }
.dl-chip.is-done { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
.dl-chip.is-late { background: var(--ui-ink, #191f28); color: #fff; }

/* 카드 */
.x-body .dl-card { display: block; padding: 18px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .dl-card-t { margin: 0 0 12px; font: 700 17px/1.4 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); }
.x-body .dl-cols { display: grid; gap: 16px; min-width: 0; }
.x-body .dl-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
@media (min-width: 900px) {
  .x-body .dl-cols { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .x-body .dl-side { position: sticky; top: calc(var(--sw-top, 64px) + 16px); }
}

/* ---------- 신청 관리 ---------- */
.x-body .dl-reqs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .x-body .dl-reqs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.x-body .dl-req { display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); animation: dl-up .45s cubic-bezier(.22, 1, .36, 1) backwards; }
.x-body .dl-req + .dl-req { animation-delay: .06s; }
.x-body .dl-req-main { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; text-decoration: none; border-radius: 14px; }
.x-body .dl-req-main > svg { flex: none; color: var(--ui-ink-3, #8b95a1); }
.x-body .dl-req-main:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 4px; }
.x-body .dl-req-ic, .x-body .dl-hero-ic { flex: none; display: flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 18px; background: #f4f5f7; }
.x-body .dl-req-ic.is-two span + span, .x-body .dl-hero-ic.is-two span + span { margin-left: -12px; }
.x-body .dl-req-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.x-body .dl-req-t { font: 700 17px/1.4 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .dl-req-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.x-body .dl-req-day { font: 500 14px/1.3 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); font-variant-numeric: tabular-nums; }
.x-body .dl-bar { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; }
.x-body .dl-bar i { height: 6px; border-radius: 3px; background: #e5e8eb; }
.x-body .dl-bar i.is-done { background: var(--ui-brand, #4c00ff); }
.x-body .dl-bar i.is-now { background: #c9b3ff; animation: dl-blink 1.6s ease-in-out infinite; }
.x-body .dl-req-next { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 16px; background: var(--ui-brand-tint, #f4f0ff); }
.x-body .dl-req-now { min-width: 0; font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-req-now b { color: var(--ui-brand, #4c00ff); font-variant-numeric: tabular-nums; }
.x-body .dl-req-next .ui-btn { flex: none; }

/* ---------- 신청 상세 ---------- */
.x-body .dl-hero { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; }
.x-body .dl-hero-txt { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.x-body .dl-h1 { margin: 0; font: 700 22px/1.35 var(--ui-font, inherit); letter-spacing: -.03em; color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .dl-steps { list-style: none; margin: 0; padding: 6px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .dl-st { border-radius: 18px; animation: dl-up .45s cubic-bezier(.22, 1, .36, 1) backwards; }
.x-body .dl-st:nth-child(2) { animation-delay: .03s; } .x-body .dl-st:nth-child(3) { animation-delay: .06s; } .x-body .dl-st:nth-child(4) { animation-delay: .09s; }
.x-body .dl-st:nth-child(5) { animation-delay: .12s; } .x-body .dl-st:nth-child(6) { animation-delay: .15s; } .x-body .dl-st:nth-child(7) { animation-delay: .18s; } .x-body .dl-st:nth-child(8) { animation-delay: .21s; }
.x-body .dl-st + .dl-st { margin-top: 2px; }
.x-body .dl-st-row { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 12px; color: inherit; text-decoration: none; border-radius: 18px; }
.x-body a.dl-st-row:hover { background: #f9fafb; }
.x-body a.dl-st-row:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: -2px; }
.x-body .dl-st-ic { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: #f4f5f7; }
.x-body .dl-st-ok { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ui-brand, #4c00ff); color: #fff; box-shadow: 0 0 0 2px #fff; }
.x-body .dl-st-ok svg { stroke-width: 3; }
.x-body .dl-st-main { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.x-body .dl-st-n { font: 700 13px/1 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); font-variant-numeric: tabular-nums; }
.x-body .dl-st-t { font: 700 16px/1.4 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); }
.x-body .dl-st-v { font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); font-variant-numeric: tabular-nums; word-break: keep-all; }
.x-body .dl-st-link { flex: none; display: inline-flex; align-items: center; gap: 2px; font: 600 14px/1 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-st.is-wait { opacity: .42; }
.x-body .dl-st.is-wait .dl-st-ic img { filter: grayscale(1); }
.x-body .dl-st.is-now { background: var(--ui-brand-tint, #f4f0ff); padding-bottom: 12px; }
.x-body .dl-st.is-now .dl-st-ic { background: #fff; animation: dl-nudge 3s ease-in-out infinite; }
.x-body .dl-st.is-now .dl-st-v { color: var(--ui-brand, #4c00ff); }
.x-body .dl-st-btn { display: flex; margin: 0 12px; height: 48px; font-size: 16px; }
.x-body .dl-st + .dl-st.is-now, .x-body .dl-st.is-now + .dl-st { margin-top: 6px; }
@media (min-width: 900px) {
  .x-body .dl-st.is-now { display: flex; align-items: center; padding-bottom: 0; }
  .x-body .dl-st.is-now .dl-st-row { flex: 1; min-width: 0; }
  .x-body .dl-st-btn { flex: none; margin: 0 12px 0 0; min-width: 148px; height: 44px; font-size: 15px; }
}
.x-body .dl-sum-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.x-body .dl-sum-list li { display: flex; align-items: center; gap: 10px; min-width: 0; }
.x-body .dl-sum-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #f4f5f7; }
.x-body .dl-sum-txt { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-sum-txt b { font-weight: 700; color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .dl-sum-list li > b { flex: none; font: 700 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-sum-total { display: flex; align-items: center; justify-content: space-between; margin-top: 14px; padding-top: 14px; box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-sum-total b { font: 700 19px/1.3 var(--ui-font, inherit); color: var(--ui-ink, #191f28); letter-spacing: -.02em; }
.x-body .dl-row-link { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 18px; color: var(--ui-ink, #191f28); text-decoration: none; font: 600 16px/1.4 var(--ui-font, inherit); }
.x-body .dl-row-link span { flex: 1; }
.x-body .dl-row-link > svg:last-child { color: var(--ui-ink-3, #8b95a1); }
.x-body .dl-help-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.x-body .dl-help-btns .ui-btn { gap: 6px; text-decoration: none; }
.x-body .dl-lock { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px 22px; }
.x-body .dl-lock-t { font: 700 18px/1.45 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .dl-lock .ui-btn { text-decoration: none; }

/* ---------- 결제 ---------- */
.x-body .dl-bill-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.x-body .dl-bill-period { font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-bls { list-style: none; margin: 4px 0 0; padding: 0; }
.x-body .dl-bl { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 0; }
.x-body .dl-bl + .dl-bl { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-body .dl-bl-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f4f5f7; }
.x-body .dl-bl-ic--fee { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); font: 800 13px/1 var(--ui-font, inherit); }
.x-body .dl-bl-txt { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-bl-txt b { font-weight: 700; color: var(--ui-ink, #191f28); }
.x-body .dl-bl-amt { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.x-body .dl-bl-amt > b { font: 700 16px/1.3 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-bl-vat { font: 500 13px/1.3 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-bl-amt .dl-chip { height: 22px; padding: 0 8px; font-size: 12px; line-height: 22px; }
.x-body .dl-bill-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 0; padding: 16px; border-radius: 16px; background: #f9fafb; font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-bill-total b { font: 800 24px/1.2 var(--ui-font, inherit); letter-spacing: -.03em; color: var(--ui-ink, #191f28); }
.x-body .dl-kvs { display: grid; gap: 4px; margin-top: 12px; }
.dl-kv { display: flex; align-items: center; gap: 10px; min-height: 36px; font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.dl-kv > span:first-child { flex: none; width: 76px; }
.dl-kv > b { font-weight: 700; color: var(--ui-ink, #191f28); }
.x-body .dl-opts { display: grid; gap: 8px; margin-bottom: 14px; }
.x-body .dl-opt { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink, #191f28); font: 600 15px/1.4 var(--ui-font, inherit); text-align: left; transition: box-shadow .15s ease, background-color .15s ease; }
.x-body .dl-opt[aria-checked=true] { background: var(--ui-brand-tint, #f4f0ff); box-shadow: inset 0 0 0 2px var(--ui-brand, #4c00ff); }
.x-body .dl-opt > svg:last-child { color: var(--ui-brand, #4c00ff); }
.x-body .dl-opt-ic { flex: none; display: grid; place-items: center; color: var(--ui-ink-2, #4e5968); }
.x-body .dl-opt-t { flex: 1; min-width: 0; }
.x-body .dl-opt:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .dl-pay-btn { height: 54px; font-size: 17px; } /* 결제 화면 할 일 단추 = 보라 하나(대표 10-20 "버튼은 검정이라 그런가? 안 보이네") */
.x-body .dl-paid { box-shadow: inset 0 0 0 2px #e4d9ff; }
.x-body .dl-paid-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.x-body .dl-next-list { list-style: none; margin: 0; padding: 0; }
.x-body .dl-next-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 44px; font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-next-list li + li { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-body .dl-next-list b { color: var(--ui-ink, #191f28); }

/* ---------- 준비 자료 ---------- */
.x-body .dl-meter { height: 6px; margin: -4px 0 16px; border-radius: 3px; background: #eceef1; overflow: hidden; }
.x-body .dl-meter i { display: block; height: 100%; border-radius: 3px; background: var(--ui-brand, #4c00ff); transition: width .35s cubic-bezier(.22, 1, .36, 1); }
.x-body .dl-docs-grid { display: grid; gap: 12px; align-items: start; }
@media (min-width: 900px) {
  .x-body .dl-docs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .x-body .dl-docs-grid > .dl-doc:first-child { grid-column: 1 / -1; }
  .x-body .dl-docs-grid > .dl-doc:first-child .dl-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .x-body .dl-docs-grid > .dl-doc:nth-last-child(-n+2) { grid-column: span 1; }
}
.x-body .dl-rep.is-wait { opacity: .7; }
.x-body .dl-doc { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); min-width: 0; }
.x-body .dl-doc-h { display: flex; align-items: center; gap: 10px; }
.x-body .dl-doc-h h2 { margin: 0; font: 700 17px/1.4 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); }
.x-body .dl-doc-ok { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #eceef1; color: #fff; transition: background-color .2s ease, transform .2s cubic-bezier(.34, 1.56, .64, 1); }
.x-body .dl-doc-ok svg { stroke-width: 3; }
.x-body .dl-doc-ok.is-on { background: var(--ui-brand, #4c00ff); transform: scale(1.06); }
.x-body .dl-fields { display: grid; gap: 10px; width: 100%; }
.x-body .dl-fields .ui-field { margin: 0; }
.x-body .dl-files { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; gap: 6px; }
.x-body .dl-files li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px 0 12px; border-radius: 12px; background: #f9fafb; font: 600 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-files li span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.x-body .dl-up { gap: 6px; cursor: pointer; }
.x-body .dl-up.is-off { opacity: .45; pointer-events: none; }
.x-body .dl-check { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); cursor: pointer; }
.x-body .dl-check input { width: 20px; height: 20px; accent-color: var(--ui-brand, #4c00ff); }
.x-body .dl-procs { margin: 0; padding: 0; list-style: none; width: 100%; display: grid; gap: 8px; counter-reset: p; }
.x-body .dl-procs li { display: flex; align-items: center; gap: 6px; counter-increment: p; }
.x-body .dl-procs li::before { content: counter(p); flex: none; width: 22px; font: 700 14px/1 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); text-align: center; font-variant-numeric: tabular-nums; }
.x-body .dl-procs .ui-input { flex: 1; min-width: 0; }
.x-body .dl-doc-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.x-body .dl-doc-btns .ui-btn { gap: 4px; }
.x-body .dl-doc-line { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-ta, .dl-ta { width: 100%; min-height: 88px; padding: 12px 14px; resize: vertical; box-sizing: border-box; font: 500 16px/1.5 var(--ui-font, inherit); }
.x-body .dl-foot { position: sticky; bottom: var(--x-tab-height, 0px); z-index: 5; margin-top: 16px; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255, 255, 255, 0), #fff 28%); }
.x-body .dl-docs-send { height: 54px; font-size: 17px; } /* 할 일 단추 = 보라 하나(10-21) */
.x-body .dl-docs-send:disabled { background: var(--ui-press, #f2f4f6); color: var(--ui-ink-3, #8b95a1); }
@media (min-width: 1101px) { .x-body .dl-foot { bottom: 0; } }

/* ---------- 업무 보고서 ---------- */
.x-body .dl-rep-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .x-body .dl-rep-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.x-body .dl-rep { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; animation: dl-up .45s cubic-bezier(.22, 1, .36, 1) backwards; }
.x-body .dl-rep-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: #f4f5f7; }
.x-body .dl-rep-txt { min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-rep-txt b { font: 700 16px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-rep-btns { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.x-body .dl-stars { font-size: 18px; letter-spacing: 1px; color: var(--ui-brand, #4c00ff); }
.x-body .dl-stars i { font-style: normal; color: #e5e8eb; }

/* 시트(본문 밖에 붙음) */
.dl-sheet { display: grid; gap: 8px; }
.dl-sheet-amt { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: #f9fafb; font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.dl-sheet-amt b { font: 800 26px/1.2 var(--ui-font, inherit); letter-spacing: -.03em; color: var(--ui-ink, #191f28); }
.dl-paper { padding: 22px 20px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: #191f28; }
.dl-paper h3 { margin: 0 0 14px; text-align: center; font: 700 19px/1.4 var(--ui-font, inherit); }
.dl-paper h4 { margin: 18px 0 10px; font: 700 15px/1.4 var(--ui-font, inherit); }
.dl-paper-kv { width: 100%; border-collapse: collapse; font: 500 14px/1.45 var(--ui-font, inherit); }
.dl-paper-kv th { width: 84px; padding: 8px 10px; background: #f6f7f9; text-align: left; font-weight: 600; color: #4e5968; border: 1px solid #eceef1; }
.dl-paper-kv td { padding: 8px 10px; border: 1px solid #eceef1; }
.dl-skel { display: grid; gap: 10px; }
.dl-skel i { display: block; height: 10px; border-radius: 5px; background: #eceef1; }
.dl-skel b { display: block; height: 6px; }
.dl-rate { display: grid; gap: 14px; }
.dl-rate-name { font: 700 18px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.dl-rate-stars { display: flex; gap: 6px; }
.dl-star { -webkit-appearance: none; appearance: none; border: 0; background: none; cursor: pointer; width: 44px; height: 44px; padding: 0; font-size: 34px; line-height: 44px; color: #e5e8eb; transition: color .15s ease, transform .15s cubic-bezier(.34, 1.56, .64, 1); }
.dl-star.is-on { color: var(--ui-brand, #4c00ff); transform: scale(1.06); }
.dl-star:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; border-radius: 10px; }

@keyframes dl-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dl-blink { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes dl-nudge { 0%, 80%, 100% { transform: none; } 86% { transform: translateY(-3px) rotate(-6deg); } 93% { transform: rotate(4deg); } }

/* 계약(약관으로 시작) · 신청 회사 확인 약관 동의 */
.x-body .ca-start-sum { display: grid; gap: 2px; width: 100%; }
.x-body .ca-start-sum .ca-kv { justify-content: flex-start; gap: 10px; }
.ca-terms-key, .hd-terms-key { margin: 0 0 16px; padding: 0; list-style: none; display: grid; gap: 10px; }
.ca-terms-key li, .hd-terms-key li { display: grid; gap: 4px; padding: 14px 16px; border-radius: 14px; background: #f7f5ff; font: 500 15px/1.5 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.ca-terms-key b, .hd-terms-key b { font-weight: 700; color: var(--ui-brand, #4c00ff); }
.x-body .hd-apg .hd-ap-terms { margin-top: 18px; padding: 14px 16px; border-radius: 16px; background: #f7f5ff; }
.x-body .hd-apg .hd-ap-terms .hd-ap-tlink { padding: 0; margin: 0; font: 700 15px/1.4 var(--ui-font, inherit); color: var(--ui-brand, #4c00ff); text-decoration: underline; text-underline-offset: 3px; }
/* 홈 최근 신청 = 신청 상세로 이어짐 */
.x-body a.hd-rc-t { text-decoration: none; }
.x-body a.hd-rc-t:hover { text-decoration: underline; text-underline-offset: 3px; }
.x-body a.hd-rc-go { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

/* 선임 신고 = 신고 서류 칸(체결하면 바로) */
.x-body .ca-fdocs { margin-bottom: 12px; padding: 20px; border-color: #e4d9ff; }
@media (max-width: 760px) { .x-body .ca-fdocs { padding: 18px 16px; } }
.x-body .ca-fdoc-list { list-style: none; margin: 4px 0 12px; padding: 0; }
.x-body .ca-fdoc-list li { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.x-body .ca-fdoc-list li + li { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-body .ca-fdoc-list b { flex: 1; min-width: 0; font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .ca-fdoc-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
.x-body .ca-pbtn svg { margin-right: 2px; }
.x-body .ca-sign.is-wait .sw-card-body { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }

/* ---------- 업체와 대화(연락처 대신 앱 대화) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.x-body .dl-sum-list li > .dl-sum-chat { flex: none; width: 36px; height: 36px; margin-left: 2px; border-radius: 12px; background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
.x-body .dl-chatv { max-width: 760px; }
.x-body .dl-chat-seg { display: flex; margin-bottom: 12px; }
.x-body .dl-chat-seg .ui-seg-btn { flex: 1; min-width: 0; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.x-body .dl-chat { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
.x-body .dl-msgs { list-style: none; margin: 0; padding: 4px 2px; display: flex; flex-direction: column; gap: 10px; min-height: 280px; max-height: 52vh; overflow-y: auto; }
.x-body .dl-msg { display: flex; align-items: flex-end; gap: 6px; max-width: 86%; animation: dl-up .3s cubic-bezier(.22, 1, .36, 1) backwards; }
.x-body .dl-msg.is-me { align-self: flex-end; flex-direction: row-reverse; }
.x-body .dl-msg-t { padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #f2f4f6; color: var(--ui-ink, #191f28); font: 500 15px/1.5 var(--ui-font, inherit); white-space: pre-wrap; overflow-wrap: anywhere; }
.x-body .dl-msg.is-me .dl-msg-t { border-radius: 18px 18px 6px 18px; background: var(--ui-brand, #4c00ff); color: #fff; }
.x-body .dl-msg time { flex: none; font: 500 12px/1.3 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); }
.x-body .dl-send { display: flex; align-items: flex-end; gap: 8px; }
.x-body .dl-send-in { flex: 1; min-width: 0; min-height: 48px; max-height: 140px; padding: 12px 14px; resize: none; box-sizing: border-box; font: 500 16px/1.45 var(--ui-font, inherit); }
.x-body .dl-send-btn { flex: none; width: 48px; height: 48px; padding: 0; border-radius: 14px; }
.x-body .dl-send-err { margin: -4px 0 0; padding: 10px 14px; border-radius: 12px; background: #fff1f1; color: #d22030; font: 600 14px/1.4 var(--ui-font, inherit); }
/* 선임 등 보고서 기관 전화 · 전자우편 = 화면엔 빈칸 · 제출본에만 */
.ca-pt td.ca-blank { height: 32px; }
.ca-only-submit { height: 22px; padding: 0 8px; font-size: 11px; line-height: 22px; }
/* 일정 관리 · 방문 장소 · 길찾기 */
.x-body .ca-place { margin-bottom: 12px; padding: 20px; }
@media (max-width: 760px) { .x-body .ca-place { padding: 18px 16px; } }
.x-body .ca-place-row { display: flex; align-items: center; gap: 10px; margin: 8px 0 12px; font: 600 16px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .ca-place-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.x-body .ca-place-btns .ui-btn { gap: 4px; text-decoration: none; }
/* 해지 문의 · 환불 상담 · 알림 설정 */
.x-body .ca-cancel { margin-top: 6px; color: var(--ui-ink-2, #4e5968); text-decoration: underline; text-underline-offset: 3px; }
.ca-cx { display: grid; gap: 12px; }
.ca-cx-q, .dl-q { margin: 0; font: 700 16px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.ca-cx-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ca-cx-opt { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; min-height: 44px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); font: 600 15px/1.3 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.ca-cx-opt[aria-checked=true] { background: var(--ui-brand-tint, #f4f0ff); box-shadow: inset 0 0 0 2px var(--ui-brand, #4c00ff); color: var(--ui-brand, #4c00ff); }
.ca-cx-calc { margin: 0; padding: 14px 16px; border-radius: 16px; background: #f9fafb; display: grid; gap: 8px; }
.ca-cx-calc div { display: flex; justify-content: space-between; gap: 12px; font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.ca-cx-calc dd { margin: 0; font-weight: 700; color: var(--ui-ink, #191f28); }
.ca-cx-calc .is-total { padding-top: 8px; box-shadow: inset 0 1px 0 #eceef1; }
.ca-cx-calc .is-total dd { color: var(--ui-brand, #4c00ff); font-size: 17px; }
.dl-form { display: grid; gap: 12px; }
.dl-form .dl-opts { display: grid; gap: 8px; }
.dl-form .dl-opt { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; display: flex; align-items: center; min-height: 52px; padding: 0 14px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); text-align: left; }
.dl-form .dl-opt[aria-checked=true] { background: var(--ui-brand-tint, #f4f0ff); box-shadow: inset 0 0 0 2px var(--ui-brand, #4c00ff); }
.x-body .dl-bl.is-free .dl-bl-amt b { color: var(--ui-brand, #4c00ff); font: 700 15px/1.3 var(--ui-font, inherit); }
.x-body .dl-swl { list-style: none; margin: 0; padding: 0; }
.x-body .dl-swl li { display: flex; align-items: center; gap: 10px; min-height: 56px; }
.x-body .dl-swl li + li { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-body .dl-swl-t { flex: 1; min-width: 0; font: 600 16px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-swl-v { font: 600 14px/1.3 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46%; }
.x-body .dl-sw { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; flex: none; position: relative; width: 52px; height: 32px; padding: 0; border-radius: 16px; background: #d1d6db; transition: background-color .2s ease; }
.x-body .dl-sw i { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
.x-body .dl-sw[aria-checked=true] { background: var(--ui-brand, #4c00ff); }
.x-body .dl-sw[aria-checked=true] i { transform: translateX(20px); }
.x-body .dl-sw:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }

/* ---------- 견적서 다시 짠 판(cs2 · 청구서와 같은 줄) ---------- */
.x-body .cs2-page .sw-head { margin-bottom: 16px; }
.x-body .cs2-main { display: grid; gap: 12px; min-width: 0; }
.x-body .cs2-lines .dl-bl-txt .dl-chip { height: 22px; padding: 0 8px; font-size: 12px; line-height: 22px; align-self: center; }
.x-body .cs2-lines .dl-bl.is-free .dl-bl-amt b { color: var(--ui-brand, #4c00ff); }
.x-body .cs2-sum { display: grid; gap: 14px; }
.x-body .cs2-total { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, #f7f4ff 0%, #eef2ff 100%); }
.x-body .cs2-total span { font: 600 15px/1.3 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .cs2-total b { font: 800 30px/1.15 var(--ui-font, inherit); letter-spacing: -.03em; color: var(--ui-ink, #191f28); }
.x-body .cs2-split { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .cs2-split b { color: var(--ui-ink, #191f28); font-weight: 700; }
.x-body .cs2-sum .dl-kvs { margin-top: 0; }
.x-body .cs2-sum .dl-kv .dl-chip { height: 24px; line-height: 24px; font-size: 12px; }
.x-body .cs2-acts { display: grid; gap: 8px; }
.x-body .cs2-acts .ui-btn { gap: 6px; }
.x-body .cs2-go { height: 54px; font-size: 17px; } /* 견적서 할 일 단추 = 보라 하나(10-21 · 결제 단추와 같은 규칙) */
.x-body .cs2-cmp { justify-self: center; color: var(--ui-ink-2, #4e5968); text-decoration: underline; text-underline-offset: 3px; }
.x-body .cs2-terms { padding: 0; }
.x-body .cs2-terms summary { display: flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 18px; cursor: pointer; list-style: none; font: 700 16px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .cs2-terms summary::-webkit-details-marker { display: none; }
.x-body .cs2-terms summary > svg { margin-left: auto; color: var(--ui-ink-3, #8b95a1); transition: transform .2s ease; }
.x-body .cs2-terms[open] summary > svg { transform: rotate(180deg); }
.x-body .cs2-terms p { margin: 0; padding: 0 18px 14px; display: grid; gap: 4px; font: 500 15px/1.5 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .cs2-terms p b { color: var(--ui-ink, #191f28); }
.x-body .cs2-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 28px 22px; }

/* ---------- 받은 견적 · 견적 비교 다시 짠 판(10-20 대표 "같은 스타일로" · 청구서 줄 문법 · 이용 중 업체) ---------- */
.x-body .cq-view .dl-top { margin-bottom: 6px; }
/* 숫자 칸 = 회색 타일 */
.x-body .cq-view .cq-stats, .x-body .cq-view .cq-avgs { gap: 8px; }
.x-body .cq-view .cq-stats .cq-pair, .x-body .cq-view .cq-avgs .cq-pair { padding: 14px 16px; border-radius: 16px; background: #f4f5f7; }
.x-body .cq-view .cq-stats .cq-pair + .cq-pair, .x-body .cq-view .cq-avgs .cq-pair + .cq-pair { border-left: 0; padding-left: 16px; }
.x-body .cq-view .cq-avgs { margin-top: 10px; }
/* 받은 견적 줄 = 카드 안 줄(아이콘 · 이름 · 최저 칩 · 금액 · 지금과 차이) */
.x-body .cq-view .cq-feed { margin: 10px 0 0; padding: 6px; border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .cq-view .cq-feed > li + li .cq-row { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); border-radius: 0 0 16px 16px; }
.x-body .cq-view .cq-feed > li + li .cq-row.is-hl, .x-body .cq-view .cq-feed > li + li .cq-row:active { border-radius: 16px; box-shadow: none; }
.x-body .cq-view .cq-row { min-height: 64px; padding: 10px; gap: 10px; }
.x-body .cq-ric { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f4f5f7; }
.x-body .cq-wic { display: block; object-fit: contain; }
.x-body .cq-view .cq-nm { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; }
.x-body .cq-view .cq-nm .sw-chip { flex: none; height: 22px; padding: 0 8px; font-size: 12px; line-height: 22px; }
.x-body .cq-view .cq-amt { flex-direction: column; align-items: flex-end; gap: 2px; }
.x-body .cq-amt-top { display: flex; align-items: baseline; gap: 6px; }
.x-body .cq-view .cq-amt b { font-size: 16px; }
.x-body .cq-cdiff { font-style: normal; font: 600 13px/1.3 var(--ui-font, inherit); white-space: nowrap; }
.x-body .cq-cdiff.is-down { color: var(--ui-brand, #4c00ff); }
.x-body .cq-cdiff.is-up, .x-body .cq-cdiff.is-same { color: var(--ui-ink-2, #4e5968); }
/* 지금 이용 중 줄(견적 아님 · 누를 수 없음) */
.x-body .cq-cur-li .is-current { cursor: default; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 10px; box-sizing: border-box; border-radius: 16px; background: #f9fafb; }
.x-body .cq-list .cq-cur-li .is-current { border-radius: 0; padding: 12px 16px 12px 20px; }
.x-body .cq-cur-li .cq-ric { background: #fff; }
.x-body .cq-cur-main { flex: 1; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.x-body .cq-cur-name { font: 700 16px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .cq-chip-cur { height: 22px; padding: 0 8px; font-size: 12px; line-height: 22px; background: var(--ui-ink, #191f28); color: #fff; }
.x-body .cq-cur-amt { flex: none; font: 700 16px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
/* 비교 목록 줄 */
.x-body .cq-crow { gap: 12px; padding-left: 14px; }
.x-body .cq-crow .cq-ric { width: 42px; height: 42px; }
.x-body .cq-crow-right { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
/* 비교 칸 '지금과 차이' */
.x-body .cq-tc.is-cur .cq-tv.is-down { color: var(--ui-brand, #4c00ff); font-weight: 700; }
.x-body .cq-tc.is-cur .cq-tv.is-up { color: var(--ui-ink-2, #4e5968); font-weight: 600; }
@media (max-width: 420px) {
  .x-body .cq-view .cq-nm { font-size: 15px; }
  .x-body .cq-cdiff { font-size: 12px; }
}

/* ---------- 고객사 이용약관 전문(c/terms) ---------- */
.x-body .dl-tkey { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 900px) { .x-body .dl-tkey { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.x-body .dl-tkey li { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--ui-brand-tint, #f4f0ff); min-width: 0; }
.x-body .dl-tkey span { font: 600 13px/1.35 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); word-break: keep-all; }
.x-body .dl-tkey b { font: 800 20px/1.25 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-brand, #4c00ff); word-break: keep-all; }
.x-body .dl-tdoc { padding: 8px 22px 18px; }
.x-body .dl-tart { padding: 16px 0; scroll-margin-top: 8px; } /* 스테이지 html scroll-padding 이 머리 높이를 이미 뺌(두 번 띄우던 것) */
.x-body .dl-tart + .dl-tart { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-body .dl-tart h2 { margin: 0 0 8px; font: 700 16px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-tart p { margin: 0 0 6px; font: 500 15px/1.65 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); word-break: keep-all; }
.x-body .dl-ttoc { display: none; }
@media (min-width: 900px) {
  .x-body .dl-ttoc { display: grid; padding: 10px; }
  .x-body .dl-ttoc a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 10px; border-radius: 10px; color: var(--ui-ink-2, #4e5968); text-decoration: none; font: 500 14px/1.3 var(--ui-font, inherit); }
  .x-body .dl-ttoc a:hover { background: #f9fafb; color: var(--ui-ink, #191f28); }
  .x-body .dl-ttoc a span { width: 20px; color: var(--ui-ink-3, #8b95a1); font-weight: 700; }
}
.x-body .dl-tagree .dl-kv { min-height: 0; }
.ca-terms-all, .hd-terms-all { margin-top: 4px; text-decoration: none; }
/* 결제 증빙 = 세금계산서 고르면 명의 두 줄(결제구조 정본 4절) */
.x-body .dl-proof-kvs{margin:4px 0 8px}

/* 통합 청구서 · 가상계좌 · 계산서(결제구조 정본 4절 (2) · (5) · 10-20) */
.x-body .dl-bill-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.x-body .dl-bill-acts .ui-btn { gap: 6px; }
.x-body .dl-acct { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; margin: 2px 0 8px; padding: 16px; border-radius: 16px; background: #f9fafb; }
.x-body .dl-acct-bank { grid-column: 1; font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-acct b { grid-column: 1; min-width: 0; white-space: nowrap; font: 800 20px/1.3 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); }
.x-body .dl-acct .ui-btn { grid-column: 2; grid-row: 1 / span 2; }
.x-body .dl-vb { box-shadow: inset 0 0 0 2px #e4d9ff; }
.x-body .dl-vb .dl-pay-btn { margin-top: 12px; }
.x-body .dl-inv-h { margin: 4px 0 2px; font: 700 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-invs { list-style: none; margin: 0 0 12px; padding: 0; }
.x-body .dl-invc .dl-invs { margin-bottom: 0; }
.x-body .dl-inv { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; min-height: 48px; padding: 8px 0; }
.x-body .dl-inv + .dl-inv { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-body .dl-inv-txt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; min-width: 0; font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-inv-txt b { font-weight: 700; color: var(--ui-ink, #191f28); }
.x-body .dl-inv-amt { font: 700 15px/1.3 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-inv-no { grid-column: 1 / -1; font: 500 13px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); overflow-wrap: anywhere; }
.x-sheet .dl-bp-cap { margin: 16px 0 6px; font-weight: 700; }
.x-sheet .dl-bp-t th { width: auto; }
.x-sheet .dl-bp-t td.n { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.x-sheet .dl-bp-t tr.is-sum td { background: #f6f7f9; font-weight: 800; }
@media (max-width: 560px) {
  .x-sheet .dl-bp-t td, .x-sheet .dl-bp-t th { padding: 6px 5px; font-size: 11.5px; }
}

/* 계약 시트(고를 때 결제 수단 · 세금계산서 · 첫 청구 · 대표 10-20) · 시트 안이라 .x-sheet 범위 */
.x-sheet .dl-ct { gap: 0; }
.x-sheet .dl-ct .dl-num { font-variant-numeric: tabular-nums; }
.x-sheet .dl-ct-lines { list-style: none; margin: 0; padding: 0; }
.x-sheet .dl-ct-lines li { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; }
.x-sheet .dl-ct-lines li + li { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-sheet .dl-ct-lines li > b { flex: none; font: 700 15px/1.3 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-sheet .dl-ct-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: #f4f5f7; }
.x-sheet .dl-ct-ic .dl-fl { display: block; object-fit: contain; }
.x-sheet .dl-ct-ic--fee { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); font: 800 12px/1 var(--ui-font, inherit); }
.x-sheet .dl-ct-t { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-sheet .dl-ct-t b { font: 700 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-sheet .dl-ct-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 10px; padding: 14px 16px; border-radius: 14px; background: #f9fafb; font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-sheet .dl-ct-total b { font: 800 22px/1.2 var(--ui-font, inherit); letter-spacing: -.03em; color: var(--ui-ink, #191f28); }
.x-sheet .dl-ct-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 0; }
.x-sheet .dl-ct-row + .dl-ct-row { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-sheet .dl-ct-k { flex: none; width: 84px; font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-sheet .dl-ct-v { flex: 1; min-width: 0; text-align: right; font: 700 15px/1.4 var(--ui-font, inherit); color: var(--ui-brand, #4c00ff); }
.x-sheet .dl-ct-seg { flex: 1; min-width: 0; display: flex; }
.x-sheet .dl-ct-seg .ui-seg-btn { flex: 1 1 0; min-width: 0; padding: 0 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.x-sheet .dl-ct-date { flex: 1; min-width: 0; height: 44px; }
.x-sheet .dl-ct-note { display: flex; align-items: center; gap: 10px; margin: 0 0 4px 94px; }
.x-sheet .dl-ct-note .ca-link, .x-sheet .dl-ct-sum .ca-link { color: var(--ui-brand, #4c00ff); font: 600 14px/1.4 var(--ui-font, inherit); text-decoration: underline; text-underline-offset: 3px; }
.x-sheet .dl-ct-sum { margin-top: 10px; padding: 10px 16px; border-radius: 14px; background: #f9fafb; }
.x-sheet .dl-sw { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; flex: none; position: relative; width: 52px; height: 32px; padding: 0; border-radius: 16px; background: #d1d6db; transition: background-color .2s ease; }
.x-sheet .dl-sw i { position: absolute; left: 3px; top: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .22s cubic-bezier(.22, 1, .36, 1); }
.x-sheet .dl-sw[aria-checked=true] { background: var(--ui-brand, #4c00ff); }
.x-sheet .dl-sw[aria-checked=true] i { transform: translateX(20px); }
.x-sheet .dl-sw:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .dl-reg .dl-kvs { margin-bottom: 8px; }
@media (max-width: 420px) {
  .x-sheet .dl-ct-k { width: 72px; font-size: 14px; }
  .x-sheet .dl-ct-note { margin-left: 82px; }
  .x-sheet .dl-ct-seg .ui-seg-btn { font-size: 13px; }
}

/* 견적 관리 = 신청 카드 + 받은 견적 줄(10-20 대표 "신청 관리랑 받은 견적은 합쳐도 될 듯") */
.x-body .dl-req-q { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 16px; background: #f9fafb; color: inherit; text-decoration: none; transition: background-color .15s ease; }
.x-body .dl-req-q:hover { background: #f2f4f6; }
.x-body .dl-req-q:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .dl-req-qh { display: flex; align-items: center; gap: 8px; font: 700 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-req-qh > svg { margin-left: auto; flex: none; color: var(--ui-ink-3, #8b95a1); }
.x-body .dl-req-qn { color: var(--ui-brand, #4c00ff); }
.x-body .dl-req-qws { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.x-body .dl-req-qw { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-req-qw b { font-weight: 700; color: var(--ui-ink, #191f28); }
.x-body .dl-req-qw .dl-fl { flex: none; }

/* 결제 금액 내역 = 플랫폼 이용료는 업체 줄이 아니라 내역 한 줄(10-20 대표 "수수료는 당연히 내는 거지 느낌으로 일반 플랫폼처럼") */
.x-sheet .dl-ct-pay { display: grid; gap: 4px; margin-top: 12px; padding: 14px 16px; border-radius: 16px; background: #f9fafb; }
.x-sheet .dl-ct-h { margin: 0 0 4px; font: 700 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-sheet .dl-ct-bill, .x-body .dl-bill-sum, .x-body .cs2-bill { margin: 0; display: grid; }
.x-sheet .dl-ct-bill > div, .x-body .dl-bill-sum > div, .x-body .cs2-bill > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 32px; }
.x-sheet .dl-ct-bill dt, .x-body .dl-bill-sum dt, .x-body .cs2-bill dt { font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-sheet .dl-ct-bill dd, .x-body .dl-bill-sum dd, .x-body .cs2-bill dd { margin: 0; font: 600 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); font-variant-numeric: tabular-nums; }
.x-sheet .dl-ct-bill .is-total { min-height: 48px; margin-top: 4px; box-shadow: inset 0 1px 0 var(--ui-line-strong, #e5e8eb); }
.x-sheet .dl-ct-bill .is-total dt { font-weight: 700; color: var(--ui-ink, #191f28); }
.x-sheet .dl-ct-bill .is-total dd { font: 800 20px/1.2 var(--ui-font, inherit); letter-spacing: -.02em; }
.x-sheet .dl-ct-pay .dl-ct-sum { margin-top: 6px; padding: 8px 0 0; border-radius: 0; background: none; box-shadow: inset 0 1px 0 var(--ui-line-strong, #e5e8eb); }
.x-body .dl-bill-sum { margin-top: 8px; padding: 4px 0; }
.x-body .cs2-bill { margin: 4px 0 8px; }

/* 계약 어시스트 c/sign · 결제 금액 내역(업무 금액 · 플랫폼 이용료 4% · 부가세 · 합계) · 10-20 */
.x-body .dl-sg-lines { list-style: none; margin: 0 0 12px; padding: 0; }
.x-body .dl-sg-lines li { display: flex; align-items: center; gap: 12px; min-height: 56px; }
.x-body .dl-sg-lines li + li { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-body .dl-sg-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f4f5f7; }
.x-body .dl-sg-ic .dl-fl { display: block; object-fit: contain; }
.x-body .dl-sg-t { flex: 1; min-width: 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-sg-t b { font: 700 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-sg-lines li > b { flex: none; font: 700 15px/1.3 var(--ui-font, inherit); color: var(--ui-ink, #191f28); font-variant-numeric: tabular-nums; }
.x-body .dl-pb { margin: 0; display: grid; padding: 6px 16px; border-radius: 16px; background: #f9fafb; }
.x-body .dl-bill .dl-pb { margin-top: 8px; }
.x-body .dl-pb > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.x-body .dl-pb dt { font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-pb dd { margin: 0; font: 600 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); font-variant-numeric: tabular-nums; }
.x-body .dl-pb .is-total { min-height: 50px; margin-top: 4px; box-shadow: inset 0 1px 0 var(--ui-line-strong, #e5e8eb); }
.x-body .dl-pb .is-total dt { font-weight: 700; color: var(--ui-ink, #191f28); }
.x-body .dl-pb .is-total dd { font: 800 20px/1.2 var(--ui-font, inherit); letter-spacing: -.02em; }
.x-body .dl-sg .hd-ap-check .hd-ap-link { margin: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.x-body .dl-sg .hd-apg-foot { display: grid; gap: 8px; }
/* 계약 어시스트 ④ 계약서 확인(대표 10-20 "계약 ui도 구현해야 돼") */
.x-body .dl-sg-doc { margin: 0 0 10px; padding: 14px 16px 6px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .dl-sg-doc header { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.x-body .dl-sg-doc header b { flex: 1; min-width: 0; font: 700 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .dl-sg-doc .dl-sg-ic { width: 36px; height: 36px; border-radius: 10px; }
.x-body .dl-sg-full { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; flex: none; padding: 8px 12px; border-radius: 10px; background: #f2f4f6; font: 600 13px/1 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); text-decoration: none; }
.x-body .dl-sg-full:hover { background: #e5e8eb; }
.x-body .dl-sg-dl { margin: 6px 0 0; display: grid; }
.x-body .dl-sg-dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.x-body .dl-sg-dl > div + div { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-body .dl-sg-dl dt { flex: none; font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-sg-dl dd { margin: 0; min-width: 0; text-align: right; font: 600 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .dl-sg-agree { margin-top: 4px; padding: 14px 16px; border-radius: 14px; background: var(--ui-brand-tint, #f4f0ff); font-weight: 600; }

/* ---------- 대화 = 고객 관점 메신저(대표 10-21 "고객사 관점에서 보는 건데 채팅도 저렇게가 맞아?" · "사진 첨부 대화") ---------- */
.x-body .dl-msgs { gap: 4px; }
.x-body .dl-day { list-style: none; display: flex; justify-content: center; margin: 12px 0 8px; }
.x-body .dl-day span { padding: 4px 12px; border-radius: 999px; background: #f2f4f6; color: var(--ui-ink-2, #4e5968); font: 600 12px/1.4 var(--ui-font, inherit); }
.x-body .dl-msg { max-width: 92%; align-items: flex-start; }
.x-body .dl-msg.is-first { margin-top: 8px; }
.x-body .dl-av { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 12px; background: #f4f5f7; }
.x-body .dl-msg:not(.is-first) .dl-av { background: none; }
.x-body .dl-msg-c { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.x-body .dl-msg-who { font: 600 13px/1.3 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-msg-row { display: flex; align-items: flex-end; gap: 6px; min-width: 0; }
.x-body .dl-msg.is-me .dl-msg-row { flex-direction: row-reverse; }
.x-body .dl-msg-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.x-body .dl-msg.is-me .dl-msg-b { align-items: flex-end; }
.x-body .dl-msg-img { -webkit-appearance: none; appearance: none; display: block; padding: 0; border: 0; border-radius: 16px; overflow: hidden; background: #f2f4f6; cursor: zoom-in; box-shadow: inset 0 0 0 1px rgba(0, 27, 55, .06); }
.x-body .dl-msg-img img { display: block; width: 200px; max-width: 100%; height: 150px; object-fit: cover; transition: width .2s ease, height .2s ease; }
.x-body .dl-msg-img.is-big { cursor: zoom-out; }
.x-body .dl-msg-img.is-big img { width: min(420px, 70vw); height: auto; }
.x-body .dl-msg-img:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .dl-attach { -webkit-appearance: none; appearance: none; flex: none; display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 14px; background: #f2f4f6; color: var(--ui-ink-2, #4e5968); cursor: pointer; }
.x-body .dl-attach:hover { background: #e8ebed; color: var(--ui-ink, #191f28); }
.x-body .dl-attach:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
/* 휴대폰 대화 화면 = 메시지가 채우고 입력칸은 아래(가운데 떠 있던 것) */
.x-body .ca-crm-talkv .dl-chat { display: flex; flex-direction: column; height: calc(100dvh - 80px - var(--x-tab-height, 72px) - 120px); min-height: 420px; padding: 12px; }
.x-body .ca-crm-talkv .dl-msgs { flex: 1; min-height: 0; max-height: none; }
.x-body .dl-chatv .dl-chat { display: flex; flex-direction: column; }

/* 메일 이력(대표 10-21 "bcc처럼") = 대화 칸 위 한 줄 + 주소 [복사] · 메일 말풍선 */
.x-body .dl-mailbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; background: #f9fafb; color: var(--ui-ink-2, #4e5968); }
.x-body .dl-mailbar > svg { flex: none; color: var(--ui-brand, #4c00ff); }
.x-body .dl-mailbar-t { flex: 1 1 auto; min-width: 0; font: 600 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .dl-mailbar-addr { -webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; height: 34px; padding: 0 6px 0 12px; border: 0; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink, #191f28); cursor: pointer; }
.x-body .dl-mailbar-addr span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1 var(--ui-font, inherit); }
.x-body .dl-mailbar-addr b { flex: none; height: 24px; padding: 0 8px; border-radius: 8px; background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); font: 700 12px/24px var(--ui-font, inherit); }
.x-body .dl-mailbar-addr.is-on b { background: var(--ui-brand, #4c00ff); color: #fff; }
.x-body .dl-mailbar-addr:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .dl-mail { display: flex; flex-direction: column; gap: 6px; max-width: 280px; padding: 12px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .dl-msg.is-me .dl-mail { background: var(--ui-brand-tint, #f4f0ff); box-shadow: none; }
.x-body .dl-mail-h { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--ui-ink, #191f28); }
.x-body .dl-mail-h svg { flex: none; color: var(--ui-brand, #4c00ff); }
.x-body .dl-mail-h b { flex: 1; min-width: 0; font: 700 14px/1.35 var(--ui-font, inherit); word-break: keep-all; }
.x-body .dl-mail-tag { flex: none; height: 20px; padding: 0 7px; font: 600 11px/20px var(--ui-font, inherit); background: #f2f4f6; color: var(--ui-ink-2, #4e5968); }
.x-body .dl-mail-t { font: 500 14px/1.5 var(--ui-font, inherit); color: var(--ui-ink-body, #333d4b); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.x-body .dl-mail-att { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; height: 28px; padding: 0 10px; border-radius: 8px; background: #f2f4f6; color: var(--ui-ink-2, #4e5968); font: 600 12px/1 var(--ui-font, inherit); }
.x-body .ca-crm-chat .dl-mailbar { margin: 0; border-radius: 0; background: #fafafb; box-shadow: inset 0 -1px 0 var(--ui-line, #f2f4f6); }

/* ---------- 대화 다듬기(대표 10-21 "대화 ui들이 조금 투박한데 · 세밀하게") ---------- */
.x-body .dl-msgs { gap: 2px; padding: 8px 2px 4px; }
.x-body .dl-msg { gap: 8px; max-width: 80%; }
.x-body .dl-msg.is-first { margin-top: 12px; }
.x-body .dl-av { width: 32px; height: 32px; border-radius: 50%; background: #f2f4f6; }
.x-body .dl-av img { width: 20px; height: 20px; }
.x-body .dl-msg-c { gap: 5px; }
.x-body .dl-msg-who { margin-left: 2px; font: 600 12.5px/1.2 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-msg-row { gap: 6px; }
.x-body .dl-msg-b { gap: 3px; }
.x-body .dl-msg-t { padding: 9px 13px; border-radius: 18px; background: #f2f4f6; font: 500 15px/1.5 var(--ui-font, inherit); letter-spacing: -.005em; }
.x-body .dl-msg.is-me .dl-msg-t { border-radius: 18px; background: var(--ui-brand, #4c00ff); color: #fff; }
.x-body .dl-msg.is-first:not(.is-me) .dl-msg-b > :first-child { border-top-left-radius: 6px; }
.x-body .dl-msg.is-first.is-me .dl-msg-b > :first-child { border-top-right-radius: 6px; }
.x-body .dl-msg time { margin-bottom: 1px; font: 500 11px/1 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); white-space: nowrap; }
/* 사진 = 제 비율(4:3) · 회색 틀 없음 */
.x-body .dl-msg-img { border-radius: 16px; background: #f2f4f6; box-shadow: none; }
.x-body .dl-msg-img img { width: 224px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.x-body .dl-msg-img.is-big img { width: min(420px, 68vw); aspect-ratio: auto; }
/* 날짜 = 가는 선 사이 글 · 일 기록 = 옅은 알약 */
.x-body .dl-day { align-items: center; gap: 12px; margin: 18px 6px 4px; }
.x-body .dl-day::before, .x-body .dl-day::after { content: ""; flex: 1; height: 1px; background: var(--ui-line, #eef0f3); }
.x-body .dl-day span { padding: 0; border-radius: 0; background: none; color: var(--ui-ink-3, #8b95a1); font: 600 12px/1 var(--ui-font, inherit); }
.x-body .dl-evt { margin: 12px 0 4px; }
.x-body .dl-evt span { padding: 6px 12px 6px 10px; background: #f6f7f9; box-shadow: none; color: var(--ui-ink-2, #4e5968); font: 600 12px/1.3 var(--ui-font, inherit); }
/* 입력칸 = 한 덩어리(사진 · 글 · 보내기 원) */
.x-body .dl-send { display: block; padding-top: 10px; }
.x-body .dl-compose { display: flex; align-items: flex-end; gap: 2px; padding: 5px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); transition: box-shadow .2s ease; }
.x-body .dl-compose:focus-within { box-shadow: inset 0 0 0 1.5px var(--ui-brand, #4c00ff), 0 0 0 4px rgba(76, 0, 255, .08); }
.x-body .dl-compose .dl-attach { width: 38px; height: 38px; border-radius: 50%; background: none; color: var(--ui-ink-3, #8b95a1); }
.x-body .dl-compose .dl-attach:hover { background: #f2f4f6; color: var(--ui-ink, #191f28); }
.x-body .dl-compose .dl-send-in { flex: 1; min-width: 0; min-height: 38px; max-height: 132px; padding: 8px 6px; border: 0; border-radius: 0; outline: 0; background: none; box-shadow: none; resize: none; font: 500 15px/1.47 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .dl-compose .dl-send-in::placeholder { color: #b0b8c1; }
.x-body .dl-compose .dl-send-btn { -webkit-appearance: none; appearance: none; flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 0; border-radius: 50%; background: var(--ui-brand, #4c00ff); color: #fff; cursor: pointer; transition: background-color .2s ease, transform .14s cubic-bezier(.22, 1, .36, 1); }
.x-body .dl-compose .dl-send-btn.is-empty { background: #e5e8eb; }
.x-body .dl-compose .dl-send-btn:active { transform: scale(.92); }
.x-body .dl-compose .dl-send-btn:focus-visible, .x-body .dl-compose .dl-attach:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
/* 시각 = 마지막 말풍선 바로 옆 · 사진은 제 폭(옆 글 폭으로 늘어나던 회색 틀 없앰) */
.x-body .dl-msg-line { display: flex; align-items: flex-end; gap: 6px; min-width: 0; }
.x-body .dl-msg.is-me .dl-msg-line { flex-direction: row-reverse; }
.x-body .dl-msg-b > .dl-msg-img { align-self: flex-start; }
.x-body .dl-msg.is-me .dl-msg-b > .dl-msg-img { align-self: flex-end; }
.x-body .dl-msg-line > .dl-msg-t, .x-body .dl-msg-line > .dl-msg-img { min-width: 0; }
.x-body .dl-msg.is-first:not(.is-me) .dl-msg-b > :first-child > .dl-msg-t, .x-body .dl-msg.is-first:not(.is-me) .dl-msg-b > :first-child > .dl-msg-img { border-top-left-radius: 6px; }
.x-body .dl-msg.is-first.is-me .dl-msg-b > :first-child > .dl-msg-t, .x-body .dl-msg.is-first.is-me .dl-msg-b > :first-child > .dl-msg-img { border-top-right-radius: 6px; }

/* ---------- 견적 관리 아래 '함께 보면 좋은 서비스'(OPS 고객 링크 LNB 칸 · 10-21) = 홈 큰 칸 문법 ---------- */
.x-body .dl-more { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.x-body .dl-more-h { margin: 0; font: 700 18px/1.35 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); }
.x-body .dl-more-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.x-body .dl-more-t { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; min-width: 0; min-height: 104px; padding: 16px 14px 14px; border-radius: 20px; background: #f4f5f7; color: var(--ui-ink, #191f28); text-decoration: none; transition: background-color .2s ease, transform .14s cubic-bezier(.22, 1, .36, 1); }
.x-body .dl-more-t:hover { background: #eceef1; }
.x-body .dl-more-t:active { transform: scale(.97); }
.x-body .dl-more-t:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .dl-more-ic img { display: block; width: 36px; height: 36px; }
.x-body .dl-more-t b { font: 700 15.5px/1.3 var(--ui-font, inherit); letter-spacing: -.02em; word-break: keep-all; }
.x-body .dl-more-t > svg { position: absolute; top: 14px; right: 12px; color: var(--ui-ink-3, #8b95a1); }
@media (max-width: 760px) { .x-body .dl-more-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .x-body .dl-more-t { min-height: 96px; } }

/* 청구서 아래 결제 · 청구일 · 결제 기한 = 글줄 대신 칸 셋(10-21 "텍스트만 덩그러니" 반려) */
.x-body .dl-bill > .dl-kvs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.x-body .dl-bill > .dl-kvs .dl-kv.is-wide { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; min-height: 52px; }
.x-body .dl-bill > .dl-kvs .dl-kv { flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; min-width: 0; min-height: 76px; padding: 12px 14px; border-radius: 16px; background: #f9fafb; }
.x-body .dl-bill > .dl-kvs .dl-kv > span:first-child { width: auto; font: 600 13px/1.2 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-bill > .dl-kvs .dl-kv > b { font: 700 15.5px/1.3 var(--ui-font, inherit); word-break: keep-all; overflow-wrap: anywhere; }
.x-body .dl-bill > .dl-kvs .dl-kv > .dl-chip { margin-top: -2px; }

/* ---------- 계약 어시스트(c/sign) 다듬기(10-21) = 고르는 칸 아이콘 · 끝 화면 짜임 ---------- */
.x-body .dl-sg-opt { justify-content: flex-start; gap: 12px; }
.x-body .dl-sg-opt > span:not(.dl-sg-oic) { flex: 1; min-width: 0; text-align: left; }
.x-body .dl-sg-oic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f4f0ff; color: var(--ui-brand, #4c00ff); }
.x-body .dl-sg-opt[aria-pressed=true] .dl-sg-oic { background: var(--ui-brand, #4c00ff); color: #fff; }
.x-body .hd-apg-top.is-done { display: none; }
.x-body .dl-sg-done { display: flex; align-items: center; gap: 12px; }
.x-body .dl-sg-done .hd-ap-q { margin: 0; }
.x-body .dl-sg-done-ic { flex: none; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 18px; background: linear-gradient(135deg, #f5f1ff 0%, #eef3ff 100%); }
.x-body .dl-sg-done-ic img { display: block; width: 40px; height: 40px; }
.x-body .dl-sg-days { margin-top: 16px !important; }
.x-body .dl-sg-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 10px 0 0; }
.x-body .dl-sg-tiles > div { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; min-height: 74px; padding: 12px 14px; border-radius: 16px; background: #f9fafb; }
.x-body .dl-sg-tiles dt { font: 600 13px/1.2 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .dl-sg-tiles dd { margin: 0; font: 700 15.5px/1.3 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; overflow-wrap: anywhere; }

/* ---------- 대화 파일 말풍선(수신처 #9-1 · 10-21) = 문서 아이콘(확장자) · 이름 · 크기 ---------- */
.x-body .dl-msg-file { -webkit-appearance: none; appearance: none; display: flex; align-items: center; gap: 10px; width: 260px; max-width: 100%; min-height: 60px; padding: 10px 14px 10px 10px; border: 0; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink, #191f28); text-align: left; cursor: pointer; }
.x-body .dl-msg.is-me .dl-msg-file { background: #f4f0ff; box-shadow: inset 0 0 0 1px #d9c9ff; }
.x-body .dl-msg-file:hover { background: #f9fafb; }
.x-body .dl-msg.is-me .dl-msg-file:hover { background: #ece4ff; }
.x-body .dl-msg-file:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .dl-file-ic { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
.x-body .dl-msg.is-me .dl-file-ic { background: #fff; }
.x-body .dl-file-ic i { position: absolute; right: -4px; bottom: -4px; padding: 1px 4px; border-radius: 5px; background: var(--ui-brand, #4c00ff); color: #fff; font: normal 800 9px/1.4 var(--ui-font, inherit); letter-spacing: .02em; }
.x-body .dl-file-n { flex: 1; min-width: 0; font: 700 14.5px/1.35 var(--ui-font, inherit); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-body .dl-file-sz { flex: none; font: 600 12.5px/1 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
@media (max-width: 420px) { .x-body .dl-msg-file { width: 232px; } }

/* ---------- 대화 파일 카드(10-21 대표 "채팅으로 파일 첨부할 수도 있으니까 사진 말고") = 형식 칸 · 이름 · 크기 · [열기][내려받기] ---------- */
.x-body .dl-msg-file.dl-fc { display: flex; align-items: center; gap: 10px; width: min(272px, calc(100vw - 128px)); max-width: 100%; min-height: 64px; padding: 10px 10px 10px 12px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); cursor: default; }
.x-body .dl-msg.is-me .dl-msg-file.dl-fc { background: #fff; box-shadow: inset 0 0 0 1.5px #c9b8ff; }
.x-body .dl-fc-ic { flex: none; display: grid; place-items: center; width: 40px; height: 44px; border-radius: 9px; font: 800 10.5px/1 var(--ui-font, inherit); letter-spacing: .02em; }
.x-body .dl-fc-ic.is-pdf { background: #fff0f0; color: #d22030; }
.x-body .dl-fc-ic.is-xls { background: #eef3ff; color: #1b64da; }
.x-body .dl-fc-ic.is-hwp { background: #e8f4ff; color: #0b6bcb; }
.x-body .dl-fc-ic.is-doc { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
.x-body .dl-fc-ic.is-etc { background: #f2f4f6; color: var(--ui-ink-2, #4e5968); }
.x-body .dl-fc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.x-body .dl-fc-t b { font: 700 14px/1.35 var(--ui-font, inherit); color: var(--ui-ink, #191f28); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-body .dl-fc-t span { font: 600 12.5px/1 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); white-space: nowrap; }
.x-body .dl-fc-acts { flex: none; display: flex; gap: 4px; }
.x-body .dl-fc-b { -webkit-appearance: none; appearance: none; display: inline-grid; place-items: center; height: 34px; min-width: 34px; padding: 0 10px; border: 0; border-radius: 10px; background: #f2f4f6; color: var(--ui-ink, #191f28); font: 700 13px/1 var(--ui-font, inherit); cursor: pointer; }
.x-body .dl-fc-b.is-ic { padding: 0; width: 34px; color: var(--ui-ink-2, #4e5968); }
.x-body .dl-fc-b:hover { background: #e8ebed; }
.x-body .dl-fc-b:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
/* 좁은 폭 = 카드 폭이 화면 폭을 따라감(360 에서 옆 시각이 잘리던 것) */

/* 360 대화 = 마지막 파일 카드 옆 시각이 칸 밖으로 잘리던 것 = 카드 폭을 화면 폭 기준(min(272px, 100vw - 128px))으로 둠(% 최대 폭은 줄 폭을 따라 순환해 첫 카드가 좁아짐) */

/* 대화(10-21) = 다시 그린 앞 말풍선은 안 떠오름(새 말풍선만 dl-up) */
.x-body .dl-msg.is-old { animation: none; }
