/* c-after · 계약 · 선임 신고 · 방문 일정(views/c-after.js)
   - 화면 = .x-body .ca-* · 시트(틀이 body 에 붙임) = .x-sheet .ca-*
   - 색 = 스테이지 변수만(--ui-brand 보라 · 먹색 · 회색) · 초록 없음 */

/* ---------- 공통 ---------- */
.x-body .ca-v { display: flex; flex-direction: column; gap: 16px; }
.x-body .ca-v > .sw-head { margin-bottom: 8px; }
.x-body .ca-head { flex-wrap: wrap; row-gap: 10px; }
.x-body .ca-head .sw-head-main { flex-wrap: wrap; row-gap: 8px; }
.x-body .ca-head .sw-acts .ui-btn > svg { width: 18px; height: 18px; }
.x-body .ca-num, .x-sheet .ca-num { font-variant-numeric: tabular-nums; }
.x-body .ca-sp { flex: 1; }

/* 상태 칩(상태만) · line = 회색 테두리 · wait = 보라 테두리 · done = 보라 연한 판 · soon = 보라 판 · solid · late = 먹색 판 */
.x-body .ca-st, .x-sheet .ca-st { flex: none; height: 28px; padding: 0 12px; font: var(--ui-t-secondary-medium); font-size: .875rem; }
.x-body .ca-st.is-line { background: var(--ui-surface); box-shadow: inset 0 0 0 1px var(--ui-line-strong); color: var(--ui-ink-2); }
.x-body .ca-st.is-wait { background: var(--ui-surface); box-shadow: inset 0 0 0 1px #cbb8ff; color: var(--ui-brand); }
.x-body .ca-st.is-done { background: var(--ui-brand-tint); color: var(--ui-brand); }
.x-body .ca-st.is-soon { background: var(--ui-brand); color: #fff; }
.x-body .ca-st.is-solid, .x-body .ca-st.is-late { background: var(--ui-ink); color: #fff; }

/* 블록 머리(제목 한 줄 + 상태 칩) */
.x-body .ca-bh { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; margin: 0 0 14px; }
.x-body .ca-bh-t { flex: 1 1 auto; min-width: 0; margin: 0; font: var(--ui-t-body-bold); font-size: 1.125rem; letter-spacing: -.01em; color: var(--ui-ink); word-break: keep-all; }
.x-body .ca-bh-w { color: var(--ui-ink-body); font-weight: 500; }

/* 이름 · 값 줄 */
.x-body .ca-kv, .x-sheet .ca-kv { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; min-width: 0; }
.x-body .ca-kv-k, .x-sheet .ca-kv-k { flex: none; color: var(--ui-ink-2); font: var(--ui-t-secondary-medium); }
.x-body .ca-kv-v, .x-sheet .ca-kv-v { min-width: 0; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; color: var(--ui-ink); font: var(--ui-t-body-medium); }
.x-body .ca-kvs { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.x-body .ca-kvs .ca-kv { justify-content: flex-start; min-height: 32px; }

.x-body .ca-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.x-body .ca-acts .ui-btn > svg { width: 18px; height: 18px; }

/* 날짜 한 줄(신고한 날 · 방문 날 · 잠김) */
.x-body .ca-date { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 16px; border-radius: 14px; background: var(--ui-fill); color: var(--ui-ink); font: var(--ui-t-body-medium); }
.x-body .ca-date b { font: var(--ui-t-body-bold); }
.x-body .ca-date.on { background: var(--ui-brand-tint); color: var(--ui-brand); }
.x-body .ca-date.wait { color: var(--ui-ink-body); font: var(--ui-t-secondary-medium); padding: 12px 16px; }
.x-body .ca-cal-ic { flex: none; display: grid; place-items: center; color: inherit; }
.x-body .ca-cal-ic svg { width: 18px; height: 18px; }
.x-body .ca-ok { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ui-brand); color: #fff; }
.x-body .ca-ok svg { width: 15px; height: 15px; stroke-width: 3; }

/* 잠김(한 줄 + 할 일 버튼) */
.x-body .ca-lock-in { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; padding: 24px; }
.x-body .ca-lock-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--ui-brand-tint); color: var(--ui-brand); }
.x-body .ca-lock-t { flex: 1 1 260px; min-width: 0; font: var(--ui-t-body-bold); color: var(--ui-ink); word-break: keep-all; }

/* 두 덩어리 나란히(안전 · 보건) */
.x-body .ca-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.x-body .ca-fb, .x-body .ca-vb, .x-body .ca-guide { padding: 20px; }
.x-body .ca-fb.is-done, .x-body .ca-vb.is-done { border-color: #e4d9ff; }

/* ---------- c/contract ---------- */
.x-body .ca-cols { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.x-body .ca-cts .sw-card-head .sw-chip { flex: none; }
.x-body .ca-ct-head, .x-body .ca-ct { display: grid; grid-template-columns: 130px minmax(0, 1fr) 150px 70px 70px 120px 112px; align-items: center; column-gap: 16px; padding: 0 20px; }
.x-body .ca-ct-head { min-height: 40px; margin-top: 8px; border-bottom: 1px solid var(--ui-line); color: var(--ui-ink-3); font: var(--ui-t-caption); }
.x-body .ca-ct-list { list-style: none; margin: 0 0 8px; padding: 0; }
.x-body .ca-ct { min-height: 72px; }
.x-body .ca-ct + .ca-ct { border-top: 1px solid var(--ui-line); }
.x-body .ca-ct-work { color: var(--ui-ink-body); font: var(--ui-t-secondary-medium); }
.x-body .ca-ct-agency { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ui-ink); font: var(--ui-t-body-bold); }
.x-body .ca-ct-money { display: contents; }
.x-body .ca-ct-amt { color: var(--ui-ink); font: var(--ui-t-body-bold); white-space: nowrap; }
.x-body .ca-ct-vat, .x-body .ca-ct-term { color: var(--ui-ink-body); font: var(--ui-t-secondary); white-space: nowrap; }
.x-body .ca-ct-st { display: flex; }
.x-body .ca-ct-btn { justify-self: end; }

.x-body .ca-sign .sw-card-head .sw-chip, .x-body .ca-sign .sw-card-head .ca-st { flex: none; }
.x-body .ca-sign:not(.is-done) .sw-card-body { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.x-body .ca-consent { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; color: var(--ui-ink); font: var(--ui-t-body-medium); word-break: keep-all; }
.x-body .ca-link { appearance: none; border: 0; padding: 0; background: none; color: var(--ui-brand); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.x-body .ca-sign .ui-esign-error { flex-basis: 100%; order: 3; margin: -4px 0 0; }
.x-body .ca-sign-btn { flex: 0 0 260px; }
.x-body .ca-sign.is-done .sw-card-body { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; }
.x-body .ca-sign.is-done .ca-kv { justify-content: flex-start; }
.x-body .ca-next { flex: 1 1 360px; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 16px; }
.x-body .ca-next-btn { flex: 0 0 220px; }

/* ---------- c/filing · 신고 방법 ---------- */
.x-body .ca-disc { appearance: none; flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; color: var(--ui-ink); }
.x-body .ca-disc .ca-bh-t { flex: none; }
.x-body .ca-chev { display: grid; place-items: center; color: var(--ui-ink-3); transition: transform var(--ui-dur-fast) var(--ui-ease); transform: rotate(-90deg); }
.x-body .ca-guide.is-open .ca-chev { transform: none; }
.x-body .ca-guide:not(.is-open) .ca-bh { margin-bottom: 0; }
.x-body .ca-seg { flex: none; }
.x-body .ca-steps { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; }
.x-body .ca-steps > li { display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--ui-line); }
.x-body .ca-n { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ui-brand-tint); color: var(--ui-brand); font: var(--ui-t-caption); font-weight: 700; }
.x-body .ca-st-t { min-width: 0; color: var(--ui-ink); font: var(--ui-t-body-medium); word-break: keep-all; }
.x-body .ca-st-x { grid-column: 2; margin-top: 10px; min-width: 0; }
.x-body .ca-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.x-body .ca-copies { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px; }
.x-body .ca-copy { appearance: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 0; max-width: 100%; padding: 0 14px; border: 0; border-radius: 12px; background: var(--ui-fill); color: var(--ui-ink); font: var(--ui-t-secondary); cursor: pointer; text-align: left; transition: background-color var(--ui-dur-fast) var(--ui-ease); }
.x-body .ca-copy:hover { background: var(--ui-fill-press); }
.x-body .ca-copy:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 2px; }
.x-body .ca-copy-k { flex: none; color: var(--ui-ink-2); font: var(--ui-t-caption); }
.x-body .ca-copy b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: var(--ui-t-secondary-medium); font-weight: 700; }
.x-body .ca-copy-c { flex: none; min-width: 3.2em; margin-left: auto; padding-left: 6px; color: var(--ui-brand); font: var(--ui-t-caption); font-weight: 600; text-align: right; }
.x-body .ca-copy.on { background: var(--ui-brand-tint); }

/* ---------- c/visit ---------- */
.x-body .ca-plan { margin-top: 18px; border-top: 1px solid var(--ui-line); }
.x-body .ca-plan > :last-child { border-bottom: 0; padding-bottom: 0; }
.x-body .ca-prow { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 8px 10px; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--ui-line); }
.x-body .ca-pv { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; color: var(--ui-ink); font: var(--ui-t-body-medium); }
.x-body .ca-pv.is-wide { grid-column: 2 / -1; }
.x-body .ca-pv b { font: var(--ui-t-body-medium); color: var(--ui-ink); }
.x-body .ca-nw { white-space: nowrap; }
.x-body .ca-prow .sw-chip { flex: none; }
.x-body .ca-nexts { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 12px 82px; border-bottom: 1px solid var(--ui-line); }
.x-body .ca-nd { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--ui-fill); color: var(--ui-ink-body); font: var(--ui-t-caption); font-size: .875rem; }
.x-body .ca-pf { padding: 14px 0; border-bottom: 1px solid var(--ui-line); }
.x-body .ca-pf-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.x-body .ca-pf .ui-esign-error { margin: 10px 0 0; }
.x-body .ca-pf .ca-acts { margin-top: 12px; }

/* 달력(화면 · 시트 같은 모양 · OPS VisitSection 달력) */
.x-body .ca-cal, .x-sheet .ca-cal { width: 100%; max-width: 460px; margin: 4px auto 0; }
.x-body .ca-mon, .x-sheet .ca-mon { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.x-body .ca-mon b, .x-sheet .ca-mon b { font: var(--ui-t-body-bold); color: var(--ui-ink); }
.x-body .ca-grid, .x-sheet .ca-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.x-body .ca-wd span, .x-sheet .ca-wd span { display: grid; place-items: center; height: 28px; color: var(--ui-ink-2); font: var(--ui-t-caption); }
.x-body .ca-wd span.off, .x-sheet .ca-wd span.off { color: var(--ui-ink-3); }
.x-body .ca-day, .x-sheet .ca-day { appearance: none; display: grid; place-items: center; justify-self: center; width: 100%; max-width: 56px; height: 44px; min-width: 0; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--ui-ink); font: var(--ui-t-body-medium); cursor: pointer; transition: background-color var(--ui-dur-fast) var(--ui-ease); }
.x-body .ca-day:hover:not(:disabled):not(.sel):not(.blank), .x-sheet .ca-day:hover:not(:disabled):not(.sel):not(.blank) { background: var(--ui-press); }
.x-body .ca-day:focus-visible, .x-sheet .ca-day:focus-visible { outline: 2px solid var(--ui-focus); outline-offset: 1px; }
.x-body .ca-day.off, .x-sheet .ca-day.off { color: var(--ui-ink-3); }
.x-body .ca-day.no, .x-sheet .ca-day.no { color: var(--ui-ink-4); cursor: default; }
.x-body .ca-day.today, .x-sheet .ca-day.today { text-decoration: underline; text-underline-offset: 4px; }
.x-body .ca-day.was, .x-sheet .ca-day.was { box-shadow: inset 0 0 0 2px var(--ui-brand); color: var(--ui-brand); }
.x-body .ca-day.sel, .x-sheet .ca-day.sel { background: var(--ui-brand); color: #fff; box-shadow: none; }
.x-body .ca-day.blank, .x-sheet .ca-day.blank { cursor: default; }
.x-body .ca-nav:disabled, .x-sheet .ca-nav:disabled { opacity: .35; }

/* ---------- 시트 ---------- */
.x-sheet .ca-sheet { display: grid; gap: 14px; min-width: 0; }
.x-sheet .ca-fs-who { border-bottom: 1px solid var(--ui-line); }
.x-sheet .ca-sign-list { list-style: none; margin: 0; padding: 4px 16px; border-radius: 16px; background: var(--ui-fill); }
.x-sheet .ca-sign-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 48px; color: var(--ui-ink-body); font: var(--ui-t-secondary-medium); }
.x-sheet .ca-sign-list li + li { border-top: 1px solid var(--ui-line-strong); }
.x-sheet .ca-sign-list b { color: var(--ui-ink); font: var(--ui-t-body-bold); }
.x-sheet .ca-esign { padding-top: 4px; }
.x-sheet .ca-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.x-sheet .ca-chips .ui-badge { height: 30px; padding: 0 12px; font-size: .875rem; }
.x-sheet .ca-open { justify-self: start; color: var(--ui-brand); }
.x-sheet .ca-cal-opts { display: flex; flex-direction: column; }
.x-sheet .ca-cal-opts .ui-listrow-icon { color: var(--ui-brand); }

/* 문서 미리보기(별지 제5호 · 제2호서식 · 약관) */
.x-sheet .ca-doc { padding: 4px 0 8px; }
.x-sheet .ca-paper { background: #fff; border: 1px solid var(--ui-line-strong); border-radius: 10px; padding: 28px 30px 30px; color: var(--ui-ink); font: 400 13px/1.65 var(--ui-font); box-shadow: 0 6px 24px rgba(2, 32, 71, .06); min-width: 0; }
.x-sheet .ca-paper-head { margin: 0 0 6px; color: var(--ui-ink-2); font-size: 11.5px; }
.x-sheet .ca-paper-title { margin: 0 0 16px; text-align: center; font: 800 19px/1.35 var(--ui-font); letter-spacing: -.01em; word-break: keep-all; }
.x-sheet .ca-pt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.x-sheet .ca-pt th, .x-sheet .ca-pt td { border: 1px solid #4e5968; padding: 8px 10px; vertical-align: middle; word-break: keep-all; overflow-wrap: anywhere; }
.x-sheet .ca-pt th { width: 84px; background: #f6f7f9; font-weight: 600; text-align: center; }
.x-sheet .ca-pt td.k { width: 128px; background: #fbfbfc; color: var(--ui-ink-2); }
.x-sheet .ca-pt-line { display: block; }
.x-sheet .ca-pt-line + .ca-pt-line { margin-top: 4px; }
.x-sheet .ca-paper-oath { margin: 16px 0 0; word-break: keep-all; }
.x-sheet .ca-paper-sign { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.x-sheet .ca-paper-sign.one { grid-template-columns: minmax(0, 1fr); }
.x-sheet .ca-paper-sign > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 12px 14px; border-radius: 10px; background: #f8f9fb; }
.x-sheet .ca-paper-sign span { color: var(--ui-ink-2); font-size: 12px; }
.x-sheet .ca-paper-sign b { flex: 1; min-width: 0; font-weight: 700; }
.x-sheet .ca-seal { flex: none; font-style: normal; padding: 3px 10px; border-radius: 6px; border: 1.5px dashed var(--ui-ink-4); color: var(--ui-ink-3); font-size: 12px; font-weight: 600; }
.x-sheet .ca-seal.on { border-style: solid; border-color: var(--ui-brand); color: var(--ui-brand); }
.x-sheet .ca-paper-to { margin: 18px 0 0; text-align: right; }
.x-sheet .ca-skel { margin-top: 8px; }
.x-sheet .ca-skel i { display: block; height: 10px; margin: 12px 0; border-radius: 5px; background: var(--ui-fill); }
.x-sheet .ca-skel b { display: block; height: 14px; }

/* ---------- 좁은 화면 ---------- */
@media (max-width: 1240px) {
  .x-body .ca-ct-head, .x-body .ca-ct { grid-template-columns: 112px minmax(0, 1fr) 140px 60px 60px 112px 104px; column-gap: 12px; }
}
@media (max-width: 960px) {
  .x-body .ca-pair { grid-template-columns: minmax(0, 1fr); }
  .x-body .ca-ct-head { display: none; }
  .x-body .ca-ct { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "work st" "agency agency" "money money" "btn btn"; row-gap: 6px; padding: 16px 20px; }
  .x-body .ca-ct-work { grid-area: work; }
  .x-body .ca-ct-st { grid-area: st; }
  .x-body .ca-ct-agency { grid-area: agency; white-space: normal; }
  .x-body .ca-ct-money { grid-area: money; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 0; }
  .x-body .ca-ct-vat::before { content: "\00a0 · 부가세 "; }
  .x-body .ca-ct-term::before { content: "\00a0 · "; }
  .x-body .ca-ct-term:empty { display: none; }
  .x-body .ca-ct-btn { grid-area: btn; justify-self: start; margin-top: 6px; }
}
@media (max-width: 760px) {
  .x-body .ca-v { gap: 12px; }
  .x-body .ca-fb, .x-body .ca-vb, .x-body .ca-guide { padding: 18px 16px; }
  .x-body .ca-sign-btn, .x-body .ca-next-btn { flex: 1 1 100%; }
  .x-body .ca-sign .ui-esign-error { order: 0; margin: -6px 0 0; }
  .x-body .ca-next { justify-content: flex-start; }
  .x-body .ca-acts > .ui-btn { flex: 1 1 auto; }
  .x-body .ca-acts > .ca-file { flex-basis: 100%; }
  .x-body .ca-guide .ca-bh { flex-wrap: wrap; }
  .x-body .ca-guide .ca-seg { flex: 1 1 100%; }
  .x-body .ca-guide .ca-seg .ui-seg-btn { flex: 1 1 0; }
  .x-body .ca-copies { grid-template-columns: minmax(0, 1fr); }
  .x-body .ca-copy { width: 100%; }
  .x-body .ca-st-x .ca-btns > .ui-btn { flex: 1 1 auto; }
  .x-body .ca-pf-in { grid-template-columns: minmax(0, 1fr); }
  .x-body .ca-nexts { padding-left: 82px; }
  .x-body .ca-prow { grid-template-columns: 72px minmax(0, 1fr); align-items: start; }
  .x-body .ca-prow > .ca-kv-k { line-height: 26px; }
  .x-body .ca-pv { min-height: 26px; }
  .x-body .ca-pbtn { grid-column: 2; justify-self: start; }
  .x-body .ca-cal { max-width: none; }
  .x-body .ca-lock-in { padding: 20px 16px; }
  .x-body .ca-lock-in .ui-btn { flex: 1 1 100%; }
  .x-sheet .ca-paper { padding: 18px 14px 20px; font-size: 12px; }
  .x-sheet .ca-paper-title { font-size: 16px; }
  .x-sheet .ca-pt th { width: 74px; padding: 6px 4px; font-size: 11px; }
  .x-sheet .ca-pt td { padding: 6px 8px; }
  .x-sheet .ca-pt td.k { width: 84px; }
  .x-sheet .ca-paper-sign { grid-template-columns: minmax(0, 1fr); }
}

/* 업무계약서 = 기관이 올린 양식(대표 10-20 "지정기관 양식으로 업로드되어야 함") */
.x-sheet .ca-af { display: grid; gap: 12px; }
.x-sheet .ca-af-file { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px 14px; border-radius: 12px; background: #f9fafb; color: var(--ui-ink-2); }
.x-sheet .ca-af-file b { flex: 1; min-width: 0; font: 700 14px/1.4 var(--ui-font); color: var(--ui-ink); overflow-wrap: anywhere; }
.x-sheet .ca-af-pdf { display: block; width: 100%; height: min(70vh, 720px); border: 1px solid var(--ui-line-strong); border-radius: 10px; background: #fff; }
.x-sheet .ca-af-none { margin: 0; padding: 28px 16px; border-radius: 12px; background: #f9fafb; text-align: center; font: 600 14px/1.4 var(--ui-font); color: var(--ui-ink-2); }
.x-sheet .ca-af-dl { margin: 0; display: grid; }
.x-sheet .ca-af-dl > div { display: flex; justify-content: space-between; gap: 12px; min-height: 36px; align-items: center; }
.x-sheet .ca-af-dl > div + div { border-top: 1px solid var(--ui-line); }
.x-sheet .ca-af-dl dt { font: 500 14px/1.4 var(--ui-font); color: var(--ui-ink-2); }
.x-sheet .ca-af-dl dd { margin: 0; font: 600 14px/1.4 var(--ui-font); color: var(--ui-ink); text-align: right; }
.x-sheet .ca-af-pages { display: grid; gap: 8px; max-height: min(62vh, 760px); overflow-y: auto; padding: 8px; border-radius: 10px; background: #f2f4f6; }
.x-sheet .ca-af-pages img { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }

/* ---------- 선임 신고 = 홈 문법(대표 10-20 "버튼만 보라색 이런 디자인 말고 홈 화면처럼") ---------- */
.x-body .ca-fv { gap: 28px; }
.x-body .ca-fv > .dl-top { margin-bottom: -14px; }
/* 큰 카드 = 홈 배너 1(연보라 그라데이션) + 흰 띠(홈 쿠폰 띠) */
.x-body .ca-fh { position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "copy art" "bar bar"; gap: 22px 16px; padding: 28px 28px 24px; border-radius: 24px; background: radial-gradient(90% 120% at 100% 0%, #dcd3ff 0%, rgba(220, 211, 255, 0) 60%), linear-gradient(135deg, #f1edff 0%, #e7eeff 55%, #f5f8ff 100%); color: var(--ui-ink, #191f28); }
.x-body .ca-fh-copy { grid-area: copy; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.x-body .ca-fh-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.x-body .ca-fh-badge { height: 26px; padding: 0 10px; border-radius: 999px; background: var(--ui-brand, #4c00ff); color: #fff; font: 700 13px/26px var(--ui-font, inherit); letter-spacing: -.01em; }
.x-body .ca-fh .sw-chip { background: rgba(255, 255, 255, .88); }
.x-body .ca-fh-t { margin: 0; font: 700 30px/1.32 var(--ui-font, inherit); letter-spacing: -.03em; color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .ca-fh-art { grid-area: art; position: relative; width: 176px; height: 132px; align-self: center; }
.x-body .ca-fh-art img { position: absolute; display: block; }
.x-body .ca-fh-a1 { right: 8px; top: 0; width: 116px; height: 116px; animation: ca-float 4.2s ease-in-out infinite; }
.x-body .ca-fh-a2 { left: 0; bottom: 0; width: 72px; height: 72px; filter: drop-shadow(0 8px 14px rgba(76, 0, 255, .18)); animation: ca-float 3.6s ease-in-out .6s infinite; }
@keyframes ca-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.x-body .ca-fh-bar { grid-area: bar; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 64px; margin: 0; padding: 10px 10px 10px 20px; border-radius: 18px; background: #fff; box-shadow: 0 10px 24px rgba(76, 0, 255, .08), 0 1px 2px rgba(46, 54, 120, .08); }
.x-body .ca-fh-bar-t { flex: 1; 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 .ca-fh-facts { padding: 10px 6px; }
.x-body .ca-fh-facts > div { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.x-body .ca-fh-facts > div + div { border-left: 1.5px dashed #d9ccff; }
.x-body .ca-fh-facts dt { font: 500 12px/1.3 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .ca-fh-facts dd { margin: 0; font: 700 16px/1.3 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* 단추 = 홈(주 단추 먹색 · 보조 흰 단추) · 보라 단추 없음 */
.x-body .ca-fbtn { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 48px; padding: 0 18px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink, #191f28); font: 700 15px/1 var(--ui-font, inherit); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: transform .14s cubic-bezier(.22, 1, .36, 1), background-color .2s ease; }
.x-body .ca-fbtn:hover { background: #f9fafb; }
.x-body .ca-fbtn:active { transform: scale(.97); }
.x-body .ca-fbtn.is-dark { background: #353839; box-shadow: none; color: #fff; }
.x-body .ca-fbtn.is-dark:hover { background: #2a2d2f; }
.x-body .ca-fbtn svg { flex: none; width: 18px; height: 18px; }
.x-body .ca-fbtn:focus-visible, .x-body .ca-ft-link:focus-visible, .x-body .ca-fq-q:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-ft-link { -webkit-appearance: none; appearance: none; border: 0; background: none; cursor: pointer; align-self: flex-start; padding: 6px 2px; border-radius: 6px; color: var(--ui-ink-2, #4e5968); font: 500 14px/1.3 var(--ui-font, inherit); text-decoration: underline; text-decoration-color: #c9cdd2; text-underline-offset: 3px; }
/* 섹션 머리 = 홈(카드 밖 굵은 제목) */
.x-body .ca-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 12px; }
.x-body .ca-sec-head h2 { margin: 0; font: 700 20px/1.4 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); }
.x-body .ca-fs-bar { display: grid; grid-template-columns: repeat(3, 28px); gap: 3px; }
.x-body .ca-fs-bar i { height: 5px; border-radius: 3px; background: #e5e8eb; }
.x-body .ca-fs-bar i.on { background: var(--ui-brand, #4c00ff); }
/* 단계 칸 = 홈 큰 칸(회색 · 지금 칸 연보라 · 끝난 칸 흰 칸) + 입체 아이콘 */
.x-body .ca-ft-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.x-body .ca-ft { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; gap: 6px 12px; min-width: 0; padding: 20px 18px 18px 20px; border-radius: 20px; background: #f4f5f7; box-shadow: inset 0 0 0 1px rgba(0, 27, 55, .04); }
.x-body .ca-ft.is-now { background: #efe9ff; }
.x-body .ca-ft.is-done { background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .ca-ft-top { grid-column: 1; display: flex; align-items: center; gap: 6px; min-height: 20px; }
.x-body .ca-ft-n { font: 600 13px/1.3 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .ca-ft.is-now .ca-ft-n { color: var(--ui-brand, #4c00ff); }
.x-body .ca-ft-ok { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ui-brand, #4c00ff); color: #fff; }
.x-body .ca-ft-ok svg { width: 12px; height: 12px; stroke-width: 3.2; }
.x-body .ca-ft-t { grid-column: 1; margin: 0; font: 700 18px/1.36 var(--ui-font, inherit); letter-spacing: -.03em; color: var(--ui-ink, #191f28); word-break: keep-all; text-wrap: balance; }
.x-body .ca-ft-ic { grid-column: 2; grid-row: 1 / span 2; align-self: start; width: 56px; height: 56px; }
.x-body .ca-ft-ic img { display: block; width: 56px; height: 56px; }
.x-body .ca-ft.is-now .ca-ft-ic img { animation: ca-float 3.8s ease-in-out infinite; }
.x-body .ca-ft-x { grid-column: 1 / -1; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; min-width: 0; margin-top: 12px; }
.x-body .ca-ft-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.x-body .ca-ft-btns .ca-fbtn { flex: 1 1 auto; }
.x-body .ca-ft .ca-copies { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.x-body .ca-ft .ca-copy { width: 100%; min-height: 42px; background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 27, 55, .06); }
.x-body .ca-ft .ca-copy:hover { background: #fafafb; }
.x-body .ca-ft .ca-copy-c { color: var(--ui-ink-2, #4e5968); }
.x-body .ca-ft .ca-copy.on .ca-copy-c { color: var(--ui-brand, #4c00ff); }
.x-body .ca-fd-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: -12px; }
/* 자주 묻는 질문 = 흰 칸 + 줄(홈 최근 신청 칸 테두리) */
.x-body .ca-fq-list { padding: 4px 20px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .ca-fq-item + .ca-fq-item { border-top: 1px solid var(--ui-line, #f2f4f6); }
.x-body .ca-fq-q { -webkit-appearance: none; appearance: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 58px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--ui-ink, #191f28); font: 600 16px/1.4 var(--ui-font, inherit); letter-spacing: -.01em; text-align: left; cursor: pointer; }
.x-body .ca-fq-q .ca-chev { flex: none; }
.x-body .ca-fq-item.is-open .ca-chev { transform: none; color: var(--ui-ink, #191f28); }
.x-body .ca-fq-a p { margin: 0 0 16px; padding: 14px 16px; border-radius: 14px; background: #f9fafb; color: var(--ui-ink-body, #333d4b); font: 400 15px/1.6 var(--ui-font, inherit); word-break: keep-all; }
/* 서류 시트 */
.x-sheet .ca-fs-whos { display: grid; gap: 6px; }
.x-sheet .ca-bundle { display: grid; gap: 16px; }
.x-sheet .ca-bd-part { display: grid; gap: 10px; }
.x-sheet .ca-bd-h { display: flex; align-items: center; gap: 8px; margin: 4px 0 0; font: var(--ui-t-body-bold); font-size: .9375rem; color: var(--ui-ink); }
.x-sheet .ca-bd-tag { padding: 2px 8px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ui-line-strong); font: var(--ui-t-caption); color: var(--ui-ink-2); }
/* 1단계 서류 미리보기(PC 세 칸일 때만) · 마친 뒤 줄 되돌리기 가운데 */
.x-body .ca-ft-doc { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; display: block; width: 100%; height: 148px; padding: 12px 14px 0; overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgba(76, 0, 255, .08), inset 0 0 0 1px rgba(0, 27, 55, .06); -webkit-mask-image: linear-gradient(#000 72%, transparent 100%); mask-image: linear-gradient(#000 72%, transparent 100%); transition: transform .14s cubic-bezier(.22, 1, .36, 1); }
.x-body .ca-ft-doc:hover { transform: translateY(-2px); }
.x-body .ca-ft-doc:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-ft-doc img { display: block; width: 100%; height: auto; }
.x-body .ca-fd-acts .ca-ft-link { align-self: center; }
@media (max-width: 1100px) {
  .x-body .ca-ft-doc { display: none; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .x-body .ca-ft-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .x-body .ca-fv { gap: 24px; }
  .x-body .ca-fh { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "bar"; gap: 18px; padding: 20px 18px 18px; }
  .x-body .ca-fh-tags { min-height: 48px; padding-right: 64px; align-content: flex-start; }
  .x-body .ca-fh-t { font-size: 22px; }
  .x-body .ca-fh-art { position: absolute; right: 14px; top: 12px; width: 60px; height: 60px; }
  .x-body .ca-fh-a1 { right: 0; top: 0; width: 60px; height: 60px; }
  .x-body .ca-fh-a2 { display: none; }
  .x-body .ca-fh-bar { flex-wrap: wrap; padding: 10px 10px 10px 16px; }
  .x-body .ca-fh-bar .ca-fbtn { flex: 1 1 100%; }
  .x-body .ca-fh-facts { flex-wrap: nowrap; padding: 10px 4px; }
  .x-body .ca-fh-facts dd { font-size: 15px; }
  .x-body .ca-ft-list { grid-template-columns: minmax(0, 1fr); }
  .x-body .ca-ft { padding: 18px 16px 16px 18px; }
  .x-body .ca-ft-ic, .x-body .ca-ft-ic img { width: 48px; height: 48px; }
  .x-body .ca-fq-list { padding: 2px 16px; }
  .x-body .ca-fd-acts .ca-fbtn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  .x-body .ca-fh-art img, .x-body .ca-ft-ic img { animation: none; }
}

/* ---------- 선임 신고 = 단계 끝내는 느낌(대표 10-20 "단계 1 2 3 완료되는 느낌 · 신청해야 되는 듯한 분위기") ---------- */
.x-body .ca-fv .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 .ca-fv-body { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.x-body .ca-ft-list { display: flex; flex-direction: column; gap: 16px; }
.x-body .ca-ft { position: relative; grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-rows: auto 1fr; gap: 0 12px; align-items: center; }
.x-body .ca-ft-top, .x-body .ca-ft-doc { display: none; }
.x-body .ca-ft-num { grid-column: 1; grid-row: 1; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #d1d6db; color: var(--ui-ink-2, #4e5968); font: 700 15px/1 var(--ui-font, inherit); font-variant-numeric: tabular-nums; }
.x-body .ca-ft.is-now .ca-ft-num { background: #353839; box-shadow: none; color: #fff; }
.x-body .ca-ft.is-done .ca-ft-num { background: var(--ui-brand, #4c00ff); box-shadow: none; color: #fff; }
.x-body .ca-ft-num svg { display: block; }
.x-body .ca-ft-t { grid-column: 2; grid-row: 1; }
.x-body .ca-ft-ic { grid-column: 3; grid-row: 1; align-self: center; }
.x-body .ca-ft-x { grid-column: 1 / -1; grid-row: 2; margin-top: 16px; }
.x-body .ca-ft.is-done .ca-ft-t { color: var(--ui-ink-2, #4e5968); }
/* 칸 사이 잇는 선(번호 동그라미 가운데 줄) · 앞 단계가 끝나면 보라 */
.x-body .ca-ft + .ca-ft::before { content: ""; position: absolute; left: 35px; top: -17px; width: 2px; height: 18px; border-radius: 1px; background: #d1d6db; transform-origin: top; }
.x-body .ca-ft.after-done::before { background: var(--ui-brand, #4c00ff); }
/* 끝내는 순간(방금 끝낸 단계만 한 번) */
.x-body .ca-ft.is-just .ca-ft-num { animation: ca-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; }
.x-body .ca-ft.is-just .ca-ft-num path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ca-draw .42s .16s ease-out forwards; }
.x-body .ca-ft.is-just { animation: ca-settle .45s ease-out both; }
.x-body .ca-ft.is-arrive::before { animation: ca-line .45s .2s ease-out both; }
.x-body .ca-ft.is-arrive { animation: ca-arrive .55s .3s cubic-bezier(.22, 1, .36, 1) both; }
.x-body .ca-fs-bar i.is-just { transform-origin: left; animation: ca-fill .5s .1s ease-out both; }
.x-body .ca-fh.is-arrive { animation: ca-rise .55s cubic-bezier(.22, 1, .36, 1) both; }
.x-body .ca-fh.is-arrive .ca-fh-a2 { animation: ca-pop .6s .25s cubic-bezier(.34, 1.56, .64, 1) both, ca-float 3.6s ease-in-out 1s infinite; }
@keyframes ca-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.15); } 100% { transform: scale(1); } }
@keyframes ca-draw { to { stroke-dashoffset: 0; } }
@keyframes ca-settle { from { background: #efe9ff; } to { background: #fff; } }
@keyframes ca-line { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes ca-arrive { from { background: #f4f5f7; transform: translateY(6px); } to { background: #efe9ff; transform: none; } }
@keyframes ca-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ca-rise { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
/* PC = 단계 세로(왼쪽) + 자주 묻는 질문(오른쪽 · 스크롤 따라옴) */
@media (min-width: 1101px) {
  .x-body .ca-fv-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, 1fr); gap: 0 36px; align-items: start; }
  .x-body .ca-fv-body > .ca-fq { position: sticky; top: calc(var(--sw-top, 66px) + 24px); }
}
@media (max-width: 760px) {
  .x-body .ca-ft { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 0 10px; }
  .x-body .ca-ft-num { width: 28px; height: 28px; font-size: 14px; }
  .x-body .ca-ft + .ca-ft::before { left: 31px; }
  .x-body .ca-ft-x { margin-top: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .x-body .ca-ft.is-just, .x-body .ca-ft.is-just .ca-ft-num, .x-body .ca-ft.is-arrive, .x-body .ca-ft.is-arrive::before, .x-body .ca-fs-bar i.is-just, .x-body .ca-fh.is-arrive, .x-body .ca-fh.is-arrive .ca-fh-a2 { animation: none; }
  .x-body .ca-ft.is-just .ca-ft-num path { animation: none; stroke-dashoffset: 0; }
}

/* 마친 띠 = 글과 단추를 붙임(대표 10-20 "이제 첫 방문 일정을 잡아요랑 일정 관리로 가기랑 너무 멀어") · PC = 내용만큼 폭 · 휴대폰 = 한 줄 가득 */
.x-body .ca-fh.is-done .ca-fh-bar { justify-self: start; width: auto; max-width: 100%; gap: 20px; padding-left: 22px; }
.x-body .ca-fh.is-done .ca-fh-bar-t { flex: 0 1 auto; }
@media (max-width: 760px) {
  .x-body .ca-fh.is-done .ca-fh-bar { justify-self: stretch; gap: 12px; padding-left: 16px; }
}

/* 마친 큰 카드 = 오른쪽 '3단계 모두 마쳤어요' 칸(대표 10-20 "우측이 너무 비어 있다") · 휴대폰 = 띠 아래 */
.x-body .ca-fh.is-done { grid-template-columns: minmax(0, 1fr) minmax(300px, 380px); grid-template-areas: "copy sum" "bar sum"; align-items: start; }
.x-body .ca-fh-sum { grid-area: sum; align-self: stretch; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px 20px 18px; border-radius: 20px; background: rgba(255, 255, 255, .78); box-shadow: 0 10px 24px rgba(76, 0, 255, .08), inset 0 0 0 1px rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.x-body .ca-fh-sum-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.x-body .ca-fh-sum-top b { font: 700 17px/1.35 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); }
.x-body .ca-fh-sum-art { flex: none; width: 52px; height: 52px; margin: -10px -4px -8px 0; }
.x-body .ca-fh-sum-art img { display: block; width: 52px; height: 52px; animation: ca-float 3.8s ease-in-out infinite; }
.x-body .ca-fh-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.x-body .ca-fh-steps li { display: flex; align-items: center; gap: 10px; min-width: 0; font: 600 15px/1.35 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .ca-fh-ck { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ui-brand, #4c00ff); color: #fff; }
.x-body .ca-fh-ck svg { width: 14px; height: 14px; }
.x-body .ca-fh-on { margin-left: auto; color: var(--ui-ink-2, #4e5968); font-weight: 500; }
.x-body .ca-fh-sum-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.x-body .ca-fh-sum-acts .ca-fbtn { flex: 1 1 auto; height: 42px; padding: 0 14px; font-size: 14px; }
.x-body .ca-fh-sum-acts .ca-ft-link { align-self: center; }
/* 방금 마쳤으면 체크가 차례로 톡 */
.x-body .ca-fh.is-arrive .ca-fh-ck { animation: ca-pop .5s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(.35s + var(--i) * .14s); }
.x-body .ca-fh.is-arrive .ca-fh-ck path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ca-draw .4s ease-out forwards; animation-delay: calc(.45s + var(--i) * .14s); }
@media (max-width: 1100px) and (min-width: 761px) {
  .x-body .ca-fh.is-done { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
}
@media (max-width: 760px) {
  .x-body .ca-fh.is-done { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "bar" "sum"; }
  .x-body .ca-fh.is-done .ca-fh-tags { padding-right: 0; min-height: 0; }
  .x-body .ca-fh-sum { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .x-body .ca-fh.is-arrive .ca-fh-ck, .x-body .ca-fh-sum-art img { animation: none; }
  .x-body .ca-fh.is-arrive .ca-fh-ck path { animation: none; stroke-dashoffset: 0; }
}

/* 주 단추 = 보라 · 화면마다 하나(대표 10-20 "버튼은 검정이라 그런가? 안 보이네" · 홈 쿠폰 [받기] 문법) · 보조 = 회색 바탕(흰 칸 위에서도 보이게) */
.x-body .ca-fbtn { background: #f2f4f6; box-shadow: none; }
.x-body .ca-fbtn:hover { background: #e8ebed; }
.x-body .ca-ft:not(.is-done) .ca-fbtn:not(.is-dark), .x-body .ca-ft .ca-copy { background: #fff; }
.x-body .ca-ft:not(.is-done) .ca-fbtn:not(.is-dark):hover { background: #f9fafb; }
.x-body .ca-fbtn.is-dark { background: var(--ui-brand, #4c00ff); color: #fff; box-shadow: 0 6px 16px rgba(76, 0, 255, .24); }
.x-body .ca-fbtn.is-dark:hover { background: #3d00cc; }
.x-body .ca-ft.is-now .ca-ft-num { background: var(--ui-brand, #4c00ff); }

/* ---------- 업체 관리 첫 화면 = 업체 카드(대표 10-20 "업체 카드가 먼저 · 그 업체에 따라서 일정 · 계약서 · 보고서") · 홈 문법 ---------- */
.x-body .ca-ag-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.x-body .ca-ag { display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 22px 22px 20px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .ca-ag-h { display: flex; align-items: center; gap: 12px; min-width: 0; }
.x-body .ca-ag-av { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 18px; background: #f4f5f7; }
.x-body .ca-ag-av img { display: block; width: 40px; height: 40px; }
.x-body .ca-ag-av img + img { width: 32px; height: 32px; margin-left: -14px; }
.x-body .ca-ag-t { flex: 1 1 auto; min-width: 0; margin: 0; font: 700 19px/1.35 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .ca-ag-w { font-weight: 500; color: var(--ui-ink-body, #333d4b); }
.x-body .ca-ag-h .sw-chip { flex: none; }
.x-body .ca-ag-kv { margin: 0; display: grid; padding: 6px 16px; border-radius: 16px; background: #f9fafb; }
.x-body .ca-ag-kv > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; }
.x-body .ca-ag-kv dt { font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .ca-ag-kv dd { margin: 0; font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); text-align: right; }
/* 네 칸 = 홈 작은 칸(입체 아이콘 + 글) */
.x-body .ca-ag-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.x-body .ca-ag-act { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 12px 4px 10px; border-radius: 18px; background: #f4f5f7; color: var(--ui-ink, #191f28); text-decoration: none; transition: transform .14s cubic-bezier(.22, 1, .36, 1), background-color .2s ease; }
.x-body .ca-ag-act:hover { background: #eceef1; }
.x-body .ca-ag-act:active { transform: scale(.96); }
.x-body .ca-ag-act:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-ag-act-ic img { display: block; width: 40px; height: 40px; }
.x-body .ca-ag-act-t { position: relative; font: 600 15px/1.2 var(--ui-font, inherit); letter-spacing: -.01em; }
.x-body .ca-ag-act-t .x-dot { position: absolute; top: -4px; right: -10px; margin: 0; }
.x-body .ca-ag-go { width: 100%; height: 52px; font-size: 16px; }
.x-body .ca-ag-row { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 18px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink, #191f28); text-decoration: none; }
.x-body .ca-ag-row:hover { background: #fafafb; }
.x-body .ca-ag-row b { flex: 1; font: 700 16px/1.4 var(--ui-font, inherit); }
.x-body .ca-ag-row > svg { color: var(--ui-ink-3, #8b95a1); }
.x-body .ca-ag-row-ic img { display: block; width: 32px; height: 32px; }
/* 일정 = 업체 카드에서 오면 그 업체 칸이 잠깐 빛남 */
.x-body .ca-vb.is-focus { animation: ca-focus 1.6s ease-out .2s both; }
@keyframes ca-focus { 0% { box-shadow: 0 0 0 0 rgba(76, 0, 255, 0); } 25% { box-shadow: 0 0 0 4px rgba(76, 0, 255, .28); } 100% { box-shadow: 0 0 0 0 rgba(76, 0, 255, 0); } }
@media (max-width: 760px) {
  .x-body .ca-ag-list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .x-body .ca-ag { padding: 18px 16px 16px; gap: 14px; }
  .x-body .ca-ag-h { flex-wrap: wrap; }
  .x-body .ca-ag-av { width: 48px; height: 48px; border-radius: 16px; }
  .x-body .ca-ag-av img { width: 34px; height: 34px; }
  .x-body .ca-ag-t { font-size: 17px; flex-basis: calc(100% - 60px); }
  .x-body .ca-ag-h .sw-chip { margin-left: 60px; }
  .x-body .ca-ag-act { padding: 10px 2px 8px; }
  .x-body .ca-ag-act-ic img { width: 34px; height: 34px; }
  .x-body .ca-ag-act-t { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .x-body .ca-vb.is-focus { animation: none; } }

/* ---------- 업체 관리 = CRM(대표 10-20 "업체 고르면 해당 기능 · CRM 느낌") ---------- */
.x-body .ca-crm { display: block; }
.x-body .ca-crm.is-pc { display: grid; grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); gap: 24px; align-items: start; }
.x-body .ca-crm-list { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.x-body .ca-crm.is-pc .ca-crm-list { position: sticky; top: calc(var(--sw-top, 66px) + 16px); }
.x-body .ca-crm-row { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 14px 14px 14px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink, #191f28); text-decoration: none; transition: background-color .2s ease, box-shadow .2s ease; }
.x-body .ca-crm-row:hover { background: #fafafb; }
.x-body .ca-crm-row.is-on { background: #efe9ff; box-shadow: inset 0 0 0 1.5px #c9b8ff; }
.x-body .ca-crm-row .ca-ag-av { width: 48px; height: 48px; border-radius: 16px; }
.x-body .ca-crm-row .ca-ag-av img { width: 34px; height: 34px; }
.x-body .ca-crm-row .ca-ag-av img + img { width: 28px; height: 28px; }
.x-body .ca-crm-row-t { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.x-body .ca-crm-row-t b { font: 700 16px/1.35 var(--ui-font, inherit); letter-spacing: -.02em; word-break: keep-all; }
.x-body .ca-crm-row > svg { flex: none; color: var(--ui-ink-3, #8b95a1); }
.x-body .ca-crm-row > .x-dot { position: absolute; top: 12px; right: 12px; margin: 0; }
.x-body .ca-crm-detail { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.x-body .ca-crm.is-pc .ca-crm-detail { padding: 24px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .ca-crm-dh { display: flex; align-items: center; gap: 12px; min-width: 0; flex-wrap: wrap; }
.x-body .ca-crm-dh .ca-ag-av { width: 56px; height: 56px; }
.x-body .ca-crm-t { flex: 1 1 auto; min-width: 0; 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 .ca-crm-kv { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.x-body .ca-crm-kv > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 12px 14px; border-radius: 16px; background: #f9fafb; }
.x-body .ca-crm-kv dt { font: 500 13px/1.3 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .ca-crm-kv dd { margin: 0; font: 700 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .ca-crm-go { align-self: flex-start; min-width: 220px; }
.x-body .ca-crm-tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 -1px 0 var(--ui-line-strong, #e5e8eb); }
.x-body .ca-crm-tabs::-webkit-scrollbar { display: none; }
.x-body .ca-crm-tab { position: relative; flex: none; display: inline-flex; align-items: center; height: 48px; padding: 0 2px; color: var(--ui-ink-3, #8b95a1); font: 600 16px/1 var(--ui-font, inherit); text-decoration: none; }
.x-body .ca-crm-tab:hover { color: var(--ui-ink, #191f28); }
.x-body .ca-crm-tab[aria-current=page] { color: var(--ui-ink, #191f28); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ui-ink, #191f28); }
.x-body .ca-crm-tab .x-dot { position: absolute; top: 10px; right: -8px; margin: 0; }
.x-body .ca-crm-tab:focus-visible, .x-body .ca-crm-row:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
/* 탭 안에 끼운 화면 = 그 화면 머리 · 돌아가기 · 업체 고르기 줄 숨김 */
.x-body .ca-crm-body > .sw-view { max-width: none; margin: 0; padding: 0; }
.x-body .ca-crm-body .dl-top, .x-body .ca-crm-body .sw-head-main, .x-body .ca-crm-body .dl-chat-seg { display: none; }
.x-body .ca-crm-body .sw-head { justify-content: flex-end; min-height: 0; margin: 0 0 4px; }
.x-body .ca-crm-body .sw-head:not(:has(.sw-acts)) { display: none; }
.x-body .ca-crm-body .ca-pair { grid-template-columns: minmax(0, 1fr); }
.x-body .ca-crm-doc { display: grid; gap: 12px; }
.x-body .ca-crm-doc .ca-af-pages { max-height: 520px; }
.x-body .ca-crm-doc-acts { display: flex; gap: 8px; }
@media (max-width: 1100px) {
  .x-body .ca-crm-kv { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .x-body .ca-crm-kv > div:last-child { grid-column: 1 / -1; }
  .x-body .ca-crm-go { align-self: stretch; }
  .x-body .ca-crm-t { font-size: 19px; }
  .x-body .ca-crm-tabs { gap: 20px; }
}
@media (max-width: 1100px) {
  .x-body .ca-crm-kv > div:last-child { grid-column: auto; }
  .x-body .ca-crm-kv > div:first-child { grid-column: 1 / -1; }
}

/* ---------- 업체 관리 다듬기(대표 10-21 "ui가 조금 불편해 보이긴 하네?") ---------- */
/* 계약서 미리보기 종이 = 시트와 같은 규칙(판 밖으로 넘치던 것) */
.x-body .ca-crm-doc .ca-paper { background: #fff; border: 1px solid var(--ui-line-strong); border-radius: 10px; padding: 28px 30px 30px; color: var(--ui-ink); font: 400 13px/1.65 var(--ui-font); box-shadow: 0 6px 24px rgba(2, 32, 71, .06); min-width: 0; }
.x-body .ca-crm-doc .ca-paper-head { margin: 0 0 6px; color: var(--ui-ink-2); font-size: 11.5px; }
.x-body .ca-crm-doc .ca-paper-title { margin: 0 0 16px; text-align: center; font: 800 19px/1.35 var(--ui-font); letter-spacing: -.01em; word-break: keep-all; }
.x-body .ca-crm-doc .ca-pt { width: 100%; border-collapse: collapse; table-layout: fixed; }
.x-body .ca-crm-doc .ca-pt th, .x-body .ca-crm-doc .ca-pt td { border: 1px solid #4e5968; padding: 8px 10px; vertical-align: middle; word-break: keep-all; overflow-wrap: anywhere; }
.x-body .ca-crm-doc .ca-pt th { width: 84px; background: #f6f7f9; font-weight: 600; text-align: center; }
.x-body .ca-crm-doc .ca-pt td.k { width: 128px; background: #fbfbfc; color: var(--ui-ink-2); }
.x-body .ca-crm-doc .ca-pt-line { display: block; }
.x-body .ca-crm-doc .ca-pt-line + .ca-pt-line { margin-top: 4px; }
.x-body .ca-crm-doc .ca-paper-oath { margin: 16px 0 0; word-break: keep-all; }
.x-body .ca-crm-doc .ca-paper-sign { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.x-body .ca-crm-doc .ca-paper-sign.one { grid-template-columns: minmax(0, 1fr); }
.x-body .ca-crm-doc .ca-paper-sign > div { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 12px 14px; border-radius: 10px; background: #f8f9fb; }
.x-body .ca-crm-doc .ca-paper-sign span { color: var(--ui-ink-2); font-size: 12px; }
.x-body .ca-crm-doc .ca-paper-sign b { flex: 1; min-width: 0; font-weight: 700; }
.x-body .ca-crm-doc .ca-paper-to { margin: 18px 0 0; text-align: right; }
.x-body .ca-crm-doc .ca-af-file { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px 14px; border-radius: 12px; background: #f9fafb; color: var(--ui-ink-2); }
.x-body .ca-crm-doc .ca-af-file b { flex: 1; min-width: 0; font: 700 14px/1.4 var(--ui-font); color: var(--ui-ink); overflow-wrap: anywhere; }
.x-body .ca-crm-doc .ca-af-pdf { display: block; width: 100%; height: min(70vh, 720px); border: 1px solid var(--ui-line-strong); border-radius: 10px; background: #fff; }
.x-body .ca-crm-doc .ca-af-none { margin: 0; padding: 28px 16px; border-radius: 12px; background: #f9fafb; text-align: center; font: 600 14px/1.4 var(--ui-font); color: var(--ui-ink-2); }
.x-body .ca-crm-doc .ca-af-dl { margin: 0; display: grid; }
.x-body .ca-crm-doc .ca-af-dl > div { display: flex; justify-content: space-between; gap: 12px; min-height: 36px; align-items: center; }
.x-body .ca-crm-doc .ca-af-dl > div + div { border-top: 1px solid var(--ui-line); }
.x-body .ca-crm-doc .ca-af-dl dt { font: 500 14px/1.4 var(--ui-font); color: var(--ui-ink-2); }
.x-body .ca-crm-doc .ca-af-dl dd { margin: 0; font: 600 14px/1.4 var(--ui-font); color: var(--ui-ink); text-align: right; }
.x-body .ca-crm-doc .ca-af-pages { display: grid; gap: 8px; max-height: min(62vh, 760px); overflow-y: auto; padding: 8px; border-radius: 10px; background: #f2f4f6; }
.x-body .ca-crm-doc .ca-af-pages img { display: block; width: 100%; height: auto; border-radius: 4px; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
@media (max-width: 760px) {
  .x-body .ca-crm-doc .ca-paper { padding: 18px 14px 20px; font-size: 12px; }
  .x-body .ca-crm-doc .ca-paper-title { font-size: 16px; }
  .x-body .ca-crm-doc .ca-pt th { width: 74px; padding: 6px 4px; font-size: 11px; }
  .x-body .ca-crm-doc .ca-pt td { padding: 6px 8px; }
  .x-body .ca-crm-doc .ca-pt td.k { width: 84px; }
  .x-body .ca-crm-doc .ca-paper-sign { grid-template-columns: minmax(0, 1fr); }
}
.x-body .ca-crm-doc { display: grid; gap: 12px; min-width: 0; }
.x-body .ca-crm-doc-top { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 10px 10px 10px 14px; border-radius: 16px; background: #f9fafb; }
.x-body .ca-crm-doc-top > svg { flex: none; color: var(--ui-ink-2, #4e5968); }
.x-body .ca-crm-doc-top b { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 15px/1.4 var(--ui-font, inherit); }
.x-body .ca-crm-prev { -webkit-appearance: none; appearance: none; display: block; width: 100%; max-height: 460px; overflow: hidden; padding: 0; border: 0; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); cursor: zoom-in; text-align: left; -webkit-mask-image: linear-gradient(#000 78%, transparent 100%); mask-image: linear-gradient(#000 78%, transparent 100%); }
.x-body .ca-crm-prev img { display: block; width: 100%; height: auto; }
.x-body .ca-crm-prev .ca-paper { border: 0; box-shadow: none; }
.x-body .ca-crm-prev:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
/* 작은 회색 단추 */
.x-body .ca-fbtn--sm { flex: none; height: 36px; padding: 0 12px; border-radius: 10px; font-size: 14px; }
/* PC 오른쪽 = 판 테두리 없음(상자 3겹 → 1겹) · 목록 꺾쇠 없음 */
.x-body .ca-crm.is-pc .ca-crm-detail { padding: 4px 0 0; border-radius: 0; background: none; box-shadow: none; }
.x-body .ca-crm.is-pc .ca-crm-row > svg { display: none; }
/* 상태 칩 = 업체 관리 안에선 연보라(보라 꽉 찬 칩이 많던 것) */
.x-body .ca-crm .ca-st.is-soon { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
/* 머리 · 요약 줄(계약일 · 다음 방문 · 월 금액 · 상자 없이 한 줄) */
.x-body .ca-crm-dh { flex-wrap: nowrap; }
.x-body .ca-crm-dh .ca-ag-av { width: 52px; height: 52px; }
.x-body .ca-crm-back { flex: none; margin-left: -8px; }
.x-body .ca-crm-sum { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 0; }
.x-body .ca-crm-sum > div { display: flex; align-items: baseline; gap: 8px; padding: 0 16px; }
.x-body .ca-crm-sum > div:first-child { padding-left: 0; }
.x-body .ca-crm-sum > div + div { box-shadow: inset 1px 0 0 var(--ui-line-strong, #e5e8eb); }
.x-body .ca-crm-sum dt { font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .ca-crm-sum dd { margin: 0; font: 700 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
/* 탭 안 = 한 겹 · 일정 칸 먼저 · 방문 장소 한 줄 */
.x-body .ca-emb { display: flex; flex-direction: column; gap: 12px; }
.x-body .ca-emb .ca-vb { padding: 20px; }
.x-body .ca-emb-line { margin: 0 0 4px; font: 600 16px/1.5 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .ca-place-line { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; padding: 4px 2px; }
.x-body .ca-place-pin { flex: none; display: grid; place-items: center; color: var(--ui-ink-2, #4e5968); }
.x-body .ca-place-line b { flex: 1 1 200px; min-width: 0; font: 500 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink-body, #333d4b); }
.x-body .ca-muted { color: var(--ui-ink-3, #8b95a1); font: 500 15px/1.4 var(--ui-font, inherit); }
.x-body .dl-rep-on { margin-left: 6px; font-weight: 500; color: var(--ui-ink-2, #4e5968); }
.x-body .ca-crm-body .dl-rep-list { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 1100px) {
  .x-body .ca-crm-tabs { position: sticky; top: 0; z-index: 5; background: #fff; }
  .x-body .ca-crm-sum > div { padding: 0 12px; }
}
@media (max-width: 760px) {
  .x-body .ca-crm-dh .ca-ag-av { width: 44px; height: 44px; border-radius: 14px; }
  .x-body .ca-crm-dh .ca-ag-av img { width: 30px; height: 30px; }
  .x-body .ca-crm-t { font-size: 18px; }
  .x-body .ca-crm-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; padding: 12px 0; border-radius: 16px; background: #f9fafb; }
  .x-body .ca-crm-sum > div { flex-direction: column; align-items: center; gap: 2px; padding: 0 6px; text-align: center; }
  .x-body .ca-crm-sum > div:first-child { padding-left: 6px; }
  .x-body .ca-crm-sum dd { font-size: 14px; word-break: keep-all; }
  /* 현장 담당 줄 = PC 처럼 한 줄(단추가 아래로 떨어지던 것) */
  .x-body .ca-prow { grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; }
  .x-body .ca-pbtn { grid-column: auto; justify-self: end; }
  .x-body .ca-crm-doc-top { flex-wrap: wrap; }
  .x-body .ca-crm-doc-top b { flex-basis: calc(100% - 30px); }
}
@media (max-width: 760px) {
  .x-body .ca-place-line b { flex: 1 1 calc(100% - 30px); }
}

/* ---------- 일정 후보 3일 · 대화 오른쪽 고정 · 캘린더 바로 연결(대표 10-21) ---------- */
.x-body .ca-cands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.x-body .ca-cand { -webkit-appearance: none; appearance: none; display: flex; align-items: center; gap: 8px; min-width: 0; height: 44px; padding: 0 10px 0 8px; border: 0; border-radius: 12px; background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-ink, #191f28); font: 600 14px/1 var(--ui-font, inherit); cursor: pointer; }
.x-body .ca-cand b { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ui-brand, #4c00ff); color: #fff; font: 700 12px/1 var(--ui-font, inherit); }
.x-body .ca-cand span:not(.ca-cand-x) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: left; }
.x-body .ca-cand-x { flex: none; display: grid; place-items: center; color: var(--ui-ink-3, #8b95a1); }
.x-body .ca-cand.is-empty { background: #fff; box-shadow: inset 0 0 0 1.5px #e0e3e7; cursor: default; }
.x-body .ca-cand.is-empty b { background: #e5e8eb; color: var(--ui-ink-3, #8b95a1); }
.x-body .ca-cand:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-cand-list { list-style: none; margin: 0; padding: 4px 0; display: grid; gap: 8px; }
.x-body .ca-cand-list li { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; background: #f9fafb; font: 600 15px/1.3 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .ca-cand-list b { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #e5e8eb; color: var(--ui-ink-2, #4e5968); font: 700 12px/1 var(--ui-font, inherit); }
.x-body .ca-send[disabled] { background: #e5e8eb; color: var(--ui-ink-3, #8b95a1); box-shadow: none; cursor: default; }
/* 캘린더 연결 = 바로 링크 단추 */
.x-body .ca-calc { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.x-body .ca-calc-k { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font: 600 14px/1 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .ca-calc-k svg { width: 16px; height: 16px; }
/* PC = 업체 목록 | 업체 | 대화(늘 보임) */
.x-body .ca-crm.is-pc { grid-template-columns: minmax(240px, 280px) minmax(0, 1fr) minmax(300px, 340px); }
.x-body .ca-crm-chat { position: sticky; top: calc(var(--sw-top, 66px) + 16px); display: flex; flex-direction: column; min-width: 0; height: min(640px, calc(100vh - 140px)); border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); overflow: hidden; }
.x-body .ca-crm-chat-h { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 16px; box-shadow: inset 0 -1px 0 var(--ui-line, #f2f4f6); color: var(--ui-ink, #191f28); }
.x-body .ca-crm-chat-h b { font: 700 16px/1 var(--ui-font, inherit); }
.x-body .ca-crm-chat-who { margin-left: auto; font: 500 13px/1 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); }
.x-body .ca-crm-chat-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.x-body .ca-crm-chat-body > .sw-view, .x-body .ca-crm-talkv > .sw-view { flex: 1; min-height: 0; display: flex; flex-direction: column; max-width: none; margin: 0; padding: 0; }
.x-body .ca-crm-chat-body .dl-top, .x-body .ca-crm-chat-body .sw-head, .x-body .ca-crm-chat-body .dl-chat-seg, .x-body .ca-crm-talkv .dl-top, .x-body .ca-crm-talkv .sw-head, .x-body .ca-crm-talkv .dl-chat-seg { display: none; }
.x-body .ca-crm-chat-body .dl-chat { flex: 1; min-height: 0; display: flex; flex-direction: column; margin: 0; padding: 12px; border-radius: 0; background: none; box-shadow: none; }
.x-body .ca-crm-chat-body .dl-msgs { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
.x-body .ca-crm-talk { margin-left: auto; }
.x-body .ca-crm-st { display: flex; }
.x-body .ca-crm-talkv .dl-chat { min-height: calc(100vh - 260px); }
@media (max-width: 1300px) and (min-width: 1101px) {
  .x-body .ca-crm.is-pc { grid-template-columns: minmax(220px, 250px) minmax(0, 1fr) minmax(280px, 300px); gap: 16px; }
}
@media (max-width: 760px) {
  .x-body .ca-cands { gap: 6px; }
  .x-body .ca-cand { height: 40px; padding: 0 6px; font-size: 13px; gap: 6px; }
  .x-body .ca-cand-x { display: none; }
  .x-body .ca-calc-k { width: 100%; }
}

/* 캘린더 연결 = 단추 하나 → 아이콘 펼침(대표 10-21 "눌렀으면 그냥 아이콘 뜨면서 연동") */
.x-body .ca-calc { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.x-body .ca-calc-btn[aria-expanded=true] { background: var(--ui-ink, #191f28); color: #fff; }
.x-body .ca-calc.is-linked .ca-calc-btn { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
.x-body .ca-calc-opts { display: none; align-items: center; gap: 6px; }
.x-body .ca-calc.is-open .ca-calc-opts { display: inline-flex; }
.x-body .ca-calc-ic { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb), 0 4px 12px rgba(25, 31, 40, .08); color: var(--ui-ink, #191f28); font: 700 14px/1 var(--ui-font, inherit); text-decoration: none; white-space: nowrap; }
.x-body .ca-calc-ic svg { width: 16px; height: 16px; color: var(--ui-brand, #4c00ff); }
.x-body .ca-calc-ic:hover { background: #f9fafb; }
.x-body .ca-calc-ic:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-calc.is-open .ca-calc-ic { animation: ca-calc-pop .32s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(var(--i) * 60ms); }
@keyframes ca-calc-pop { from { opacity: 0; transform: translateX(-6px) scale(.7); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  .x-body .ca-calc { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { .x-body .ca-calc.is-open .ca-calc-ic { animation: none; } }

/* 좁은 폭에선 PC 세 칸이 안 되게(다시 그리기 전 잠깐도 깨지지 않게 · 10-21 대표 "모바일 ui는...;") */
@media (max-width: 1100px) {
  .x-body .ca-crm.is-pc { display: flex; flex-direction: column; gap: 16px; }
  .x-body .ca-crm.is-pc .ca-crm-list { position: static; }
  .x-body .ca-crm.is-pc .ca-crm-chat { position: static; height: 420px; }
}

/* 방문 담당 = 이름 · 전화 · 이메일(대표 10-21) */
.x-body .ca-staff .ca-pv { gap: 6px 12px; }
.x-body .ca-staff-c { display: inline-flex; align-items: center; gap: 4px; color: var(--ui-ink-body, #333d4b); font: 500 15px/1.4 var(--ui-font, inherit); text-decoration: none; }
.x-body .ca-staff-c svg { color: var(--ui-ink-3, #8b95a1); }
.x-body .ca-staff-c:hover { color: var(--ui-brand, #4c00ff); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 업체 한 장(대표 10-21 "편의 기능들이 여기 한 장에 다 들어가고 · 메일 내역도 여기서 로그") ---------- */
.x-body .ca-rec { gap: 18px; }
.x-body .ca-rec-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.x-body .ca-rec-act { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border-radius: 14px; background: #f4f5f7; color: var(--ui-ink, #191f28); font: 700 15px/1 var(--ui-font, inherit); text-decoration: none; transition: background-color .2s ease, transform .14s cubic-bezier(.22, 1, .36, 1); }
.x-body .ca-rec-act svg { flex: none; color: var(--ui-brand, #4c00ff); }
.x-body .ca-rec-act:hover { background: #eceef1; }
.x-body .ca-rec-act:active { transform: scale(.97); }
.x-body .ca-rec-act:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-rec-sec { display: flex; flex-direction: column; gap: 10px; min-width: 0; scroll-margin-top: 90px; }
.x-body .ca-rec-h { position: relative; display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 0; font: 700 19px/1.4 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); }
.x-body .ca-rec-h .x-dot { position: relative; top: -8px; margin: 0; }
.x-body .ca-rec-b { min-width: 0; }
.x-body .ca-rec-b > .sw-view { max-width: none; margin: 0; padding: 0; }
.x-body .ca-rec-b .dl-top, .x-body .ca-rec-b .sw-head, .x-body .ca-rec-b .dl-chat-seg { display: none; }
.x-body .ca-rec-b .dl-rep-list { margin: 0; }
.x-body .ca-rec-empty { margin: 0; padding: 14px 16px; border-radius: 16px; background: #f9fafb; }
.x-body .ca-rec-dl { margin: 0 0 10px; display: grid; padding: 4px 16px; border-radius: 16px; background: #f9fafb; }
.x-body .ca-rec-dl > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.x-body .ca-rec-dl dt { font: 500 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .ca-rec-dl dd { margin: 0; font: 600 15px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); text-align: right; word-break: keep-all; }
.x-body .ca-rec-doc { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 10px 10px 14px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .ca-rec-doc > svg { flex: none; color: var(--ui-ink-2, #4e5968); }
.x-body .ca-rec-doc b { flex: 1 1 160px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 15px/1.4 var(--ui-font, inherit); }
/* 활동 기록 = 일 기록 줄(가운데 · 작은 아이콘) */
.x-body .dl-evt { list-style: none; display: flex; justify-content: center; margin: 6px 0; }
.x-body .dl-evt span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink-2, #4e5968); font: 600 12px/1.3 var(--ui-font, inherit); }
.x-body .dl-evt svg { color: var(--ui-brand, #4c00ff); }
/* 휴대폰 활동 기록 = 한 장 맨 아래 대화 칸(입력칸 포함) */
.x-body .ca-rec-log .dl-chat { display: flex; flex-direction: column; height: min(70vh, 640px); margin: 0; padding: 12px; }
.x-body .ca-rec-log .dl-msgs { flex: 1; min-height: 0; max-height: none; }
@media (max-width: 760px) {
  .x-body .ca-rec-acts { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
  .x-body .ca-rec-act { flex-direction: column; justify-content: center; gap: 4px; height: 64px; padding: 0 4px; font-size: 13px; }
  .x-body .ca-rec-act svg { width: 20px; height: 20px; }
}
.x-body .ca-rec-b .dl-rep-list { grid-template-columns: minmax(0, 1fr); }

/* ---------- 업체 관리 한 줄 쌓기(대표 10-21 "지금 구조 바꿔야 한다고 · 지금 이게 뭔가 그냥 엉망임") ----------
   업체 타일 → 큰 카드(선임 신고와 같은 연보라 판) → 같은 모양 카드 넷(일정 · 보고서 · 계약 · 활동 기록) · PC · 휴대폰 같은 차례 */
.x-body .sw-view.ca-ag2 { max-width: 920px; display: flex; flex-direction: column; gap: 16px; padding-bottom: 56px; }
.x-body .ca-ag2 > .sw-head { margin: 0; }
/* ① 업체 타일 */
.x-body .ca-agts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; }
.x-body .ca-agt { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px 18px 14px 14px; border-radius: 20px; background: #f4f5f7; color: var(--ui-ink, #191f28); text-decoration: none; transition: background-color .2s ease, box-shadow .2s ease, transform .14s cubic-bezier(.22, 1, .36, 1); }
.x-body .ca-agt:hover { background: #eceef1; }
.x-body .ca-agt:active { transform: scale(.98); }
.x-body .ca-agt.is-on { background: #fff; box-shadow: inset 0 0 0 2px var(--ui-brand, #4c00ff), 0 8px 20px rgba(76, 0, 255, .08); }
.x-body .ca-agt:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-agt-ic { flex: none; display: inline-flex; align-items: center; }
.x-body .ca-agt-ic img { display: block; width: 40px; height: 40px; }
.x-body .ca-agt-ic img + img { margin-left: -12px; }
.x-body .ca-agt-t { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.x-body .ca-agt-t b { min-width: 0; font: 700 16px/1.35 var(--ui-font, inherit); letter-spacing: -.02em; word-break: keep-all; }
.x-body .ca-agt .ca-ag-w { font-weight: 500; color: var(--ui-ink-2, #4e5968); }
.x-body .ca-agt > .x-dot { position: absolute; top: 12px; right: 12px; margin: 0; }
.x-body .ca-ag2 .ca-st.is-soon { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
/* ② 큰 카드 = .ca-fh 문법 + 바로 쓰는 단추 넷 */
.x-body .ca-ah .ca-fh-copy { gap: 12px; }
.x-body .ca-ah-t { font-size: 28px; }
.x-body .ca-ah-todo { display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 6px 0 10px; border-radius: 999px; background: #fff; color: var(--ui-brand, #4c00ff); font: 700 13px/26px var(--ui-font, inherit); letter-spacing: -.01em; text-decoration: none; box-shadow: 0 2px 8px rgba(76, 0, 255, .12); }
.x-body .ca-ah-todo.is-wait { color: var(--ui-ink, #191f28); }
.x-body .ca-ah-todo svg { width: 16px; height: 16px; }
.x-body .ca-ah-todo:hover { background: #f8f6ff; }
.x-body .ca-ah-todo:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-ah-acts { display: flex; gap: 8px; margin-top: 4px; }
.x-body .ca-aha { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; width: 76px; height: 72px; padding: 0; border-radius: 18px; background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px rgba(76, 0, 255, .07), 0 1px 2px rgba(46, 54, 120, .06); color: var(--ui-ink, #191f28); text-decoration: none; transition: transform .14s cubic-bezier(.22, 1, .36, 1), background-color .2s ease; }
.x-body .ca-aha:hover { background: #fff; }
.x-body .ca-aha:active { transform: scale(.95); }
.x-body .ca-aha:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-aha-ic { display: grid; place-items: center; color: var(--ui-brand, #4c00ff); }
.x-body .ca-aha-t { font: 700 13px/1 var(--ui-font, inherit); letter-spacing: -.01em; }
.x-body .ca-aha.is-off { background: rgba(255, 255, 255, .55); box-shadow: none; color: var(--ui-ink-3, #8b95a1); cursor: default; }
.x-body .ca-aha.is-off .ca-aha-ic { color: var(--ui-ink-3, #8b95a1); }
/* ③ 같은 모양 카드 */
.x-body .ca-rc { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 20px 24px 24px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); scroll-margin-top: 88px; }
.x-body .ca-rc-h { display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 40px; }
.x-body .ca-rc-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f4f5f7; }
.x-body .ca-rc-ic img { display: block; width: 28px; height: 28px; }
.x-body .ca-rc-t { margin: 0; font: 700 19px/1.3 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); }
.x-body .ca-rc-h > .x-dot { align-self: flex-start; margin: 6px 0 0 -6px; }
.x-body .ca-rc-side { margin-left: auto; min-width: 0; }
.x-body .ca-rc-b { min-width: 0; }
/* 끼운 화면 = 겉 상자 벗김(상자 한 겹) */
.x-body .ca-rc .ca-emb { gap: 10px; }
.x-body .ca-rc .ca-vb { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.x-body .ca-rc .ca-cal { max-width: 420px; }
.x-body .ca-rc .ca-cands { max-width: 420px; }
.x-body .ca-rc .ca-place-line { padding: 10px 2px 0; box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-body .ca-rc .dl-rep-list { grid-template-columns: minmax(0, 1fr); }
.x-body .ca-rc .ca-rec-log .dl-chat { height: min(62vh, 560px); padding: 0; border-radius: 0; background: none; box-shadow: none; }
.x-body .ca-rc .ca-rec-log .dl-mailbar { margin: 0 0 4px; }
@media (max-width: 760px) {
  .x-body .sw-view.ca-ag2 { gap: 12px; }
  .x-body .ca-agts { gap: 8px; }
  .x-body .ca-agt { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .x-body .ca-agt-ic img { width: 36px; height: 36px; }
  .x-body .ca-agt-t { flex-direction: column; align-items: flex-start; gap: 6px; }
  .x-body .ca-agt-t b { font-size: 15px; }
  .x-body .ca-ah-t { font-size: 22px; }
  .x-body .ca-ah-acts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .x-body .ca-aha { width: auto; height: 66px; }
  .x-body .ca-rc { gap: 12px; padding: 16px 16px 18px; border-radius: 20px; }
  .x-body .ca-rc-h { flex-wrap: wrap; }
  .x-body .ca-rc .ca-cal, .x-body .ca-rc .ca-cands { max-width: none; }
}
/* 끼운 화면 아래 빈 칸(보고서 화면 아래 여백 48) · 보고서 줄 = 회색 판(상자 안 상자 X) · 휴대폰 큰 카드 그림 하나 */
.x-body .ca-rc .ca-rec-b > .sw-view { max-width: none; margin: 0; padding: 0; }
.x-body .ca-rc .dl-rep { background: #f9fafb; box-shadow: none; border: 0; }
@media (max-width: 760px) {
  .x-body .ca-ah .ca-fh-art img.ca-fh-a2 { display: none; }
  .x-body .ca-agt .ca-ag-w { display: inline; }
}
/* 일정 고르기(PC) = 왼쪽 달력 · 오른쪽 안내 한 줄 + 고른 날 1 · 2 · 3 + 요청 단추(달력만 가운데 떠 있던 것) */
@media (min-width: 761px) {
  .x-body .ca-rc .ca-vb:has(> .ca-cal) { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); grid-template-rows: auto auto 1fr; column-gap: 32px; row-gap: 12px; align-items: start; }
  .x-body .ca-rc .ca-vb > .ca-cal { grid-column: 1; grid-row: 1 / span 3; max-width: none; margin: 0; }
  .x-body .ca-rc .ca-vb:has(> .ca-cal) > .ca-emb-line { grid-column: 2; grid-row: 1; margin: 6px 0 0; }
  .x-body .ca-rc .ca-vb:has(> .ca-cal) > .ca-cands { grid-column: 2; grid-row: 2; grid-template-columns: minmax(0, 1fr); max-width: 320px; margin: 0; }
  .x-body .ca-rc .ca-vb:has(> .ca-cal) > .ca-acts { grid-column: 2; grid-row: 3; margin: 0; }
}

/* ---------- 업체 → 기능 줄 → 오른쪽 강조(대표 10-21 "대화창을 밑으로 내리게끔 하지 말고 · 왼쪽 업체 누르면 우측에 기능 퍼널 · 누르면 우측에 하이라이트") ---------- */
.x-body .sw-view.ca-ag3 { max-width: 1240px; padding-bottom: 40px; }
.x-body .ca-ag3-head { margin-bottom: 16px; }
.x-body .ca-ag3-grid { display: grid; grid-template-columns: minmax(220px, 250px) minmax(260px, 300px) minmax(0, 1fr); grid-template-areas: "list fns dt"; gap: 16px; align-items: start; }
.x-body .ca-agl { grid-area: list; display: flex; flex-direction: column; gap: 8px; min-width: 0; position: sticky; top: calc(var(--sw-top, 66px) + 16px); }
.x-body .ca-agl .ca-agt { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
.x-body .ca-agl .ca-agt-t { flex-direction: column; align-items: flex-start; gap: 6px; }
.x-body .ca-agl .ca-agt.is-on { box-shadow: inset 0 0 0 2px var(--ui-brand, #4c00ff), 0 8px 20px rgba(76, 0, 255, .08); }
/* 기능 줄 */
.x-body .ca-fns { grid-area: fns; position: sticky; top: calc(var(--sw-top, 66px) + 16px); display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 16px 12px 12px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .ca-fns-h { display: flex; flex-direction: column; gap: 10px; padding: 0 4px 4px; }
.x-body .ca-fns-t { margin: 0; font: 700 19px/1.3 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .ca-qas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.x-body .ca-qa { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-width: 0; height: 58px; padding: 0 4px; border-radius: 14px; background: #f4f5f7; color: var(--ui-ink, #191f28); font: 700 12.5px/1 var(--ui-font, inherit); letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: background-color .2s ease, transform .14s cubic-bezier(.22, 1, .36, 1); }
.x-body .ca-qa svg { color: var(--ui-brand, #4c00ff); }
.x-body .ca-qa:hover { background: #eceef1; }
.x-body .ca-qa:active { transform: scale(.96); }
.x-body .ca-qa:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-qa.is-off, .x-body .ca-fbtn.is-off { background: #f9fafb; color: var(--ui-ink-3, #8b95a1); box-shadow: none; cursor: default; }
.x-body .ca-qa.is-off svg, .x-body .ca-fbtn.is-off svg { color: var(--ui-ink-3, #8b95a1); }
.x-body .ca-fn-steps, .x-body .ca-fn-more { display: flex; flex-direction: column; gap: 2px; }
.x-body .ca-fn-more { padding-top: 8px; box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-body .ca-fn { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; min-height: 56px; padding: 8px 10px 8px 8px; border-radius: 16px; color: var(--ui-ink, #191f28); text-decoration: none; transition: background-color .2s ease, box-shadow .2s ease; }
.x-body .ca-fn:hover { background: #f6f7f9; }
.x-body .ca-fn:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-fn-ic { position: relative; flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #f4f5f7; }
.x-body .ca-fn-ic img { display: block; width: 26px; height: 26px; }
.x-body .ca-fn-ck { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--ui-brand, #4c00ff); color: #fff; box-shadow: 0 0 0 2px #fff; }
/* 차례(선임 신고 → 일정 → 보고서) = 아이콘을 잇는 선 · 끝난 칸까지 보라 */
.x-body .ca-fn.is-step:not(:last-child)::before { content: ""; position: absolute; left: 27px; top: 48px; bottom: -10px; width: 2px; border-radius: 2px; background: #e5e8eb; }
.x-body .ca-fn.is-step.is-done:not(:last-child)::before { background: #c9b8ff; }
.x-body .ca-fn-t { flex: 1 1 auto; min-width: 0; font: 700 16px/1.3 var(--ui-font, inherit); letter-spacing: -.02em; }
.x-body .ca-fn > .x-dot { position: static; flex: none; margin: 0 0 0 -6px; align-self: flex-start; margin-top: 12px; }
.x-body .ca-fn-v { flex: none; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13.5px/1.3 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); font-variant-numeric: tabular-nums; }
.x-body .ca-fn-v.is-todo { color: var(--ui-brand, #4c00ff); font-weight: 700; }
.x-body .ca-fn > svg { flex: none; color: var(--ui-ink-3, #8b95a1); margin-right: -4px; }
.x-body .ca-fn.is-on { background: var(--ui-brand-tint, #f4f0ff); box-shadow: inset 0 0 0 1.5px #c9b8ff; }
.x-body .ca-fn.is-on .ca-fn-ic { background: #fff; }
.x-body .ca-fn.is-on > svg { color: var(--ui-brand, #4c00ff); }
/* 오른쪽 판 = 강조 */
.x-body .ca-dt { grid-area: dt; box-shadow: inset 0 0 0 1.5px #c9b8ff, 0 12px 32px rgba(76, 0, 255, .07); scroll-margin-top: 8px; }
.x-body .ca-dt.is-flash { animation: ca-dt-flash .9s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes ca-dt-flash { 0% { box-shadow: inset 0 0 0 3px var(--ui-brand, #4c00ff), 0 0 0 6px rgba(76, 0, 255, .14); transform: translateX(-6px); opacity: .6; } 60% { transform: none; opacity: 1; } 100% { box-shadow: inset 0 0 0 1.5px #c9b8ff, 0 12px 32px rgba(76, 0, 255, .07); } }
@media (prefers-reduced-motion: reduce) { .x-body .ca-dt.is-flash { animation: none; } }
.x-body .ca-dt-back { display: none; flex: none; margin-left: -8px; }
/* 대화 = 오른쪽 판 화면 높이 그대로(입력칸 늘 보임) */
.x-body .ca-dt.is-chat { height: calc(100vh - var(--sw-top, 66px) - 120px); min-height: 520px; }
.x-body .ca-dt.is-chat > .ca-rec-b { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.x-body .ca-dt.is-chat > .ca-rec-b > .sw-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.x-body .ca-dt.is-chat .dl-chat { flex: 1; min-height: 0; height: auto; display: flex; flex-direction: column; margin: 0; padding: 0; border-radius: 0; background: none; box-shadow: none; }
.x-body .ca-dt.is-chat .dl-msgs { flex: 1; min-height: 0; max-height: none; overflow-y: auto; }
/* 선임 신고 판 */
.x-body .ca-fp { display: flex; flex-direction: column; gap: 4px; }
.x-body .ca-fp-line { display: flex; align-items: center; gap: 8px; margin: 0; font: 600 17px/1.5 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .ca-fp-ck { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ui-brand, #4c00ff); color: #fff; }
.x-body .ca-fp-ck svg { width: 14px; height: 14px; }
/* 계약 판 = 표 + 계약서 첫 쪽 */
.x-body .ca-doc-card { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; display: flex; flex-direction: column; gap: 0; width: 100%; max-width: 420px; padding: 0; border-radius: 18px; background: #f2f4f6; overflow: hidden; text-align: left; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); transition: transform .14s cubic-bezier(.22, 1, .36, 1); }
.x-body .ca-doc-card:active { transform: scale(.99); }
.x-body .ca-doc-card:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-doc-card img { display: block; width: calc(100% - 32px); max-height: 300px; margin: 16px 16px 0; object-fit: cover; object-position: top; border-radius: 6px 6px 0 0; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.x-body .ca-doc-ph { display: grid; place-items: center; height: 140px; }
.x-body .ca-doc-name { display: flex; align-items: center; gap: 8px; min-width: 0; padding: 12px 14px; background: #fff; color: var(--ui-ink-2, #4e5968); }
.x-body .ca-doc-name b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .ca-doc-go { flex: none; font: 700 13px/1 var(--ui-font, inherit); color: var(--ui-brand, #4c00ff); }
.x-body .ca-dt.is-contract .ca-rec-dl { margin: 0; }
/* 최근 대화 나눈 메일 */
.x-body .ca-mailbar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 10px 10px 10px 14px; border-radius: 14px; background: #f9fafb; }
.x-body .ca-mailbar-t { flex: 1 1 auto; display: inline-flex; align-items: center; gap: 6px; min-width: 0; font: 600 14px/1.4 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .ca-mailbar-t svg { flex: none; color: var(--ui-brand, #4c00ff); }
.x-body .ca-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 .ca-mailbar-addr span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 13px/1 var(--ui-font, inherit); }
.x-body .ca-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 .ca-mailbar-addr.is-on b { background: var(--ui-brand, #4c00ff); color: #fff; }
.x-body .ca-mailbar-addr:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-ml { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.x-body .ca-ml-i + .ca-ml-i { box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-body .ca-ml-row { -webkit-appearance: none; appearance: none; border: 0; background: none; cursor: pointer; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 4px; color: var(--ui-ink, #191f28); text-align: left; border-radius: 12px; }
.x-body .ca-ml-row:hover { background: #f9fafb; }
.x-body .ca-ml-row:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-ml-who { flex: none; min-width: 52px; height: 26px; padding: 0 10px; border-radius: 999px; background: #f2f4f6; color: var(--ui-ink-2, #4e5968); font: 700 12.5px/26px var(--ui-font, inherit); text-align: center; }
.x-body .ca-ml-who.is-me { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
.x-body .ca-ml-s { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 15px/1.4 var(--ui-font, inherit); }
.x-body .ca-ml-att { flex: none; display: grid; place-items: center; color: var(--ui-ink-3, #8b95a1); }
.x-body .ca-ml-d { flex: none; font: 500 13px/1 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); }
.x-body .ca-ml-row > svg { flex: none; color: var(--ui-ink-3, #8b95a1); transition: transform .2s ease; }
.x-body .ca-ml-i.is-open .ca-ml-row > svg { transform: rotate(180deg); }
.x-body .ca-ml-body { display: none; flex-direction: column; align-items: flex-start; gap: 8px; margin: 0 4px 12px; padding: 12px 14px; border-radius: 14px; background: #f9fafb; }
.x-body .ca-ml-i.is-open .ca-ml-body { display: flex; }
.x-body .ca-ml-body p { margin: 0; font: 500 15px/1.6 var(--ui-font, inherit); color: var(--ui-ink-body, #333d4b); word-break: keep-all; }
.x-body .ca-ml-file { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); font: 600 13px/1 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
/* 태블릿 = 왼쪽 업체 + 기능 줄 · 오른쪽 판 */
@media (max-width: 1100px) and (min-width: 761px) {
  .x-body .ca-ag3-grid { grid-template-columns: minmax(250px, 290px) minmax(0, 1fr); grid-template-areas: "list dt" "fns dt"; grid-template-rows: auto 1fr; }
  .x-body .ca-agl, .x-body .ca-fns { position: static; }
  .x-body .ca-agl { flex-direction: row; }
  .x-body .ca-agl .ca-agt { flex: 1 1 0; min-width: 0; padding: 12px; }
  .x-body .ca-agl .ca-agt-ic img { width: 32px; height: 32px; }
  .x-body .ca-agl .ca-agt-t b { font-size: 14px; }
}
/* 휴대폰 = 업체 타일 + 기능 줄 → 누르면 그 기능 한 화면 */
@media (max-width: 760px) {
  .x-body .ca-ag3-grid { display: flex; flex-direction: column; gap: 12px; }
  .x-body .ca-agl, .x-body .ca-fns { position: static; }
  .x-body .ca-agl { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; }
  .x-body .ca-agl .ca-agt { padding: 14px; }
  .x-body .ca-agl .ca-agt-ic img { width: 36px; height: 36px; }
  .x-body .ca-agl .ca-agt-t b { font-size: 15px; }
  .x-body .ca-fns { padding: 16px 10px 10px; border-radius: 20px; }
  .x-body .ca-fn { min-height: 60px; }
  .x-body .ca-ag3:not(.has-fn) .ca-dt { display: none; }
  .x-body .ca-ag3.has-fn .ca-agl, .x-body .ca-ag3.has-fn .ca-fns, .x-body .ca-ag3.has-fn .ca-ag3-head { display: none; }
  .x-body .ca-ag3.has-fn .ca-dt { padding: 12px 16px 16px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
  .x-body .ca-ag3.has-fn .ca-dt.is-flash { animation: none; }
  .x-body .ca-dt-back { display: inline-grid; }
  .x-body .ca-dt.is-chat { height: calc(100dvh - var(--sw-top, 60px) - var(--x-tab-height, 72px) - 56px - env(safe-area-inset-bottom, 0px)); min-height: 420px; }
  .x-body .ca-mailbar-addr { width: 100%; }
  .x-body .ca-mailbar-addr span { flex: 1; text-align: left; }
  .x-body .ca-ml-who { min-width: 0; padding: 0 8px; }
}
/* 다듬기 = 상태 칩 연보라 · 일정 고르기(판이 좁음) = 달력 넓게 + 오른쪽 210 · 태블릿 대화 = 아래 탭 높이 빼기 · 휴대폰 = 칸 꽉 채움 · 고른 기능 없을 땐 줄 강조 없음 */
.x-body .ca-ag3 .ca-st.is-soon { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
@media (min-width: 761px) {
  .x-body .ca-dt .ca-vb:has(> .ca-cal) { grid-template-columns: minmax(0, 1fr) minmax(190px, 210px); column-gap: 24px; }
  .x-body .ca-dt .ca-vb:has(> .ca-cal) > .ca-cands { max-width: none; }
  .x-body .ca-dt .ca-vb:has(> .ca-cal) > .ca-acts .ca-fbtn { width: 100%; }
}
@media (max-width: 1100px) and (min-width: 761px) {
  .x-body .ca-dt.is-chat { height: calc(100dvh - var(--sw-top, 66px) - var(--x-tab-height, 72px) - 150px); min-height: 460px; }
}
@media (max-width: 760px) {
  .x-body .ca-ag3-grid { align-items: stretch; }
  .x-body .ca-ag3:not(.has-fn) .ca-fn.is-on { background: none; box-shadow: none; }
  .x-body .ca-ag3:not(.has-fn) .ca-fn.is-on .ca-fn-ic { background: #f4f5f7; }
  .x-body .ca-ag3:not(.has-fn) .ca-fn.is-on > svg { color: var(--ui-ink-3, #8b95a1); }
}

/* ---------- 다듬기(대표 10-21 "흐름 그리고 대화 ui들이 조금 투박한데 · 디자인이 이제 세밀하게") ---------- */
/* 업체 목록 = 흰 줄 · 고른 업체만 보라 테두리 */
.x-body .ca-agl .ca-agt { flex-direction: row; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .ca-agl .ca-agt:hover { background: #fafafb; }
.x-body .ca-agl .ca-agt.is-on { background: #fff; box-shadow: inset 0 0 0 1.5px var(--ui-brand, #4c00ff), 0 6px 18px rgba(76, 0, 255, .08); }
.x-body .ca-agl .ca-agt-ic { flex: none; justify-content: center; width: 44px; height: 44px; border-radius: 14px; background: #f6f7f9; }
.x-body .ca-agl .ca-agt-ic img { width: 30px; height: 30px; }
.x-body .ca-agl .ca-agt-ic img + img { margin-left: -10px; }
.x-body .ca-agl .ca-agt-t { flex-direction: column; align-items: flex-start; gap: 5px; }
.x-body .ca-agl .ca-agt-t b { font-size: 15px; line-height: 1.35; }
.x-body .ca-agl .sw-chip { height: 22px; padding: 0 8px; font-size: 12px; line-height: 22px; }
.x-body .ca-agl .ca-agt > .x-dot { top: 10px; right: 10px; }
/* 흐름 카드 */
.x-body .ca-fns { gap: 14px; padding: 18px 12px 12px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .ca-fns-h { gap: 14px; padding: 0 6px; }
.x-body .ca-fns-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.x-body .ca-fns-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 13px; background: #f6f7f9; }
.x-body .ca-fns-av img { display: block; width: 28px; height: 28px; }
.x-body .ca-fns-av img + img { margin-left: -10px; }
.x-body .ca-fns-t { flex: 1; min-width: 0; font-size: 18px; }
.x-body .ca-qa { flex-direction: row; gap: 5px; height: 38px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); font: 600 13px/1 var(--ui-font, inherit); }
.x-body .ca-qa svg { width: 16px; height: 16px; }
.x-body .ca-qa:hover { background: #f9fafb; }
.x-body .ca-qa.is-off { background: #fafafb; box-shadow: inset 0 0 0 1px var(--ui-line, #f2f4f6); color: #b0b8c1; }
.x-body .ca-qa.is-off svg { color: #c5cbd2; }
/* 흐름 줄 = 번호 원 · 잇는 선 · 미끄러지는 강조 */
.x-body .ca-fn-list { position: relative; display: flex; flex-direction: column; }
.x-body .ca-fn-steps, .x-body .ca-fn-more { gap: 0; }
.x-body .ca-fn-more { margin-top: 6px; padding-top: 6px; box-shadow: inset 0 1px 0 var(--ui-line, #f2f4f6); }
.x-body .ca-fn-hl { position: absolute; left: 0; right: 0; top: 0; height: 0; border-radius: 14px; background: var(--ui-brand-tint, #f4f0ff); box-shadow: inset 0 0 0 1px #e1d7ff; opacity: 0; pointer-events: none; transition: transform .42s cubic-bezier(.22, 1, .36, 1), height .42s cubic-bezier(.22, 1, .36, 1); }
.x-body .ca-fn-hl.is-ready { opacity: 1; }
.x-body .ca-fn { z-index: 1; gap: 12px; min-height: 52px; padding: 8px 10px; border-radius: 14px; background: none; }
.x-body .ca-fn:not(.is-on):hover { background: rgba(25, 31, 40, .03); }
.x-body .ca-fn.is-on { background: none; box-shadow: none; }
.x-body .ca-fn-node { position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #d1d6db; color: var(--ui-ink-3, #8b95a1); }
.x-body .ca-fn-node b { font: 700 13px/1 var(--ui-font, inherit); }
.x-body .ca-fn-node.is-done { background: var(--ui-brand, #4c00ff); box-shadow: none; color: #fff; }
.x-body .ca-fn-node.is-cur { box-shadow: inset 0 0 0 2px var(--ui-brand, #4c00ff); color: var(--ui-brand, #4c00ff); }
.x-body .ca-fn-node.is-cur::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(76, 0, 255, .18); animation: ca-node-pulse 2.2s ease-out infinite; }
@keyframes ca-node-pulse { 0% { opacity: 1; transform: scale(.86); } 70%, 100% { opacity: 0; transform: scale(1.25); } }
.x-body .ca-fn-node.is-ic { border-radius: 0; background: none; box-shadow: none; }
.x-body .ca-fn-node.is-ic img { display: block; width: 24px; height: 24px; }
.x-body .ca-fn.is-step:not(:last-child)::before { left: 23px; top: calc(50% + 14px); bottom: auto; height: calc(100% - 28px); width: 2px; border-radius: 0; background: #e5e8eb; }
.x-body .ca-fn.is-step.is-done:not(:last-child)::before { background: var(--ui-brand, #4c00ff); }
.x-body .ca-fn-t { font: 600 15.5px/1.3 var(--ui-font, inherit); letter-spacing: -.015em; }
.x-body .ca-fn.is-on .ca-fn-t { font-weight: 700; }
.x-body .ca-fn > .x-dot { margin: 0 0 0 -6px; margin-top: 10px; }
.x-body .ca-fn-v { font: 500 13px/1.3 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); }
.x-body .ca-fn-v.is-todo { color: var(--ui-brand, #4c00ff); font-weight: 700; }
.x-body .ca-fn > svg { color: #c5cbd2; margin-right: -2px; transition: transform .2s ease, color .2s ease; }
.x-body .ca-fn:hover > svg { color: var(--ui-ink-3, #8b95a1); transform: translateX(2px); }
.x-body .ca-fn.is-on > svg { color: var(--ui-brand, #4c00ff); }
@media (prefers-reduced-motion: reduce) { .x-body .ca-fn-hl { transition: none; } .x-body .ca-fn-node.is-cur::after { animation: none; } }
/* 오른쪽 판 = 가는 보라 테두리 · 머리 아래 가는 선 · 빛남은 잔잔하게 */
.x-body .ca-dt { padding: 22px 26px 26px; box-shadow: inset 0 0 0 1px #e1d7ff, 0 16px 40px rgba(76, 0, 255, .06); }
.x-body .ca-dt > .ca-rc-h { min-height: 36px; padding-bottom: 14px; box-shadow: inset 0 -1px 0 var(--ui-line, #f2f4f6); }
.x-body .ca-dt .ca-rc-ic { width: 36px; height: 36px; border-radius: 11px; background: #f6f7f9; }
.x-body .ca-dt .ca-rc-ic img { width: 24px; height: 24px; }
.x-body .ca-dt .ca-rc-t { font-size: 18px; }
@keyframes ca-dt-flash { 0% { box-shadow: inset 0 0 0 2px var(--ui-brand, #4c00ff), 0 0 0 5px rgba(76, 0, 255, .10); opacity: .82; } 100% { box-shadow: inset 0 0 0 1px #e1d7ff, 0 16px 40px rgba(76, 0, 255, .06); opacity: 1; } }
.x-body .ca-dt.is-flash { animation: ca-dt-flash .7s cubic-bezier(.22, 1, .36, 1) both; }
.x-body .ca-dt.is-chat { padding-bottom: 18px; }
/* 휴대폰 = 업체 타일(세로) · 흐름 줄 크게 */
@media (max-width: 760px) {
  .x-body .ca-agl .ca-agt { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
  .x-body .ca-agl .ca-agt-ic { width: 44px; height: 44px; }
  .x-body .ca-fns { padding: 16px 8px 8px; }
  .x-body .ca-fn { min-height: 56px; }
  .x-body .ca-ag3:not(.has-fn) .ca-fn-hl { display: none; }
  .x-body .ca-dt { padding: 12px 16px 16px; }
  .x-body .ca-dt > .ca-rc-h { padding-bottom: 10px; }
}

/* ---------- 점검 고침(10-21 네 갈래) ---------- */
/* 일정 고르기 = 판 폭으로 판단(태블릿 · 좁은 PC 판에서 달력이 눌리던 것) · 판 560 미만이면 달력 위 · 고른 날 셋 아래 */
.x-body .ca-dt { container-type: inline-size; container-name: dt; }
@container dt (max-width: 600px) {
  .x-body .ca-dt .ca-vb:has(> .ca-cal) { display: block; }
  .x-body .ca-dt .ca-vb:has(> .ca-cal) > .ca-emb-line { margin: 0 0 4px; }
  .x-body .ca-dt .ca-vb > .ca-cal { max-width: 460px; margin: 4px auto 0; }
  .x-body .ca-dt .ca-vb:has(> .ca-cal) > .ca-cands { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; margin-top: 12px; }
  .x-body .ca-dt .ca-vb:has(> .ca-cal) > .ca-acts { margin-top: 12px; }
  .x-body .ca-dt .ca-vb:has(> .ca-cal) > .ca-acts .ca-fbtn { width: auto; flex: 1 1 auto; }
}
/* 대화 판 높이 = 남은 화면 높이(노트북 높이 · 낮은 태블릿에서 입력칸이 밀리던 것) */
.x-body .ca-dt.is-chat { height: calc(100dvh - var(--sw-top, 66px) - 126px); min-height: 340px; } /* 판 위 제목 · 간격 85 + 아래 여백 40 = 페이지 스크롤 없음 */
@media (max-width: 1100px) and (min-width: 761px) {
  .x-body .ca-dt.is-chat { height: calc(100dvh - var(--sw-top, 66px) - var(--x-tab-height, 72px) - 150px); min-height: 300px; }
}
/* 칩은 상태만 = 메일 보낸 사람 · 다음 정기 방문 날짜는 글자로 */
.x-body .ca-ml-who { min-width: 56px; height: auto; padding: 0; border-radius: 0; background: none; color: var(--ui-ink-2, #4e5968); font: 700 13px/1.3 var(--ui-font, inherit); text-align: left; }
.x-body .ca-ml-who.is-me { background: none; color: var(--ui-brand, #4c00ff); }
.x-body .ca-nd { height: auto; padding: 0; border-radius: 0; background: none; color: var(--ui-ink-body, #333d4b); font: 600 14px/1.4 var(--ui-font, inherit); }
.x-body .ca-nd + .ca-nd::before { content: "·"; margin: 0 8px; color: #b0b8c1; font-weight: 700; }
/* 숨은 참조 주소 = 다 보이게(휴대폰 말줄임 없앰) */
.x-body .ca-mailbar-addr { height: auto; min-height: 34px; padding: 6px 6px 6px 12px; }
.x-body .ca-mailbar-addr span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; text-align: left; line-height: 1.35; }
/* 선임 신고 판 날짜 · 조사 붙임 */
.x-body .ca-fp-line > span { min-width: 0; }
/* 빈 상태 = 입체 아이콘 + 한 줄(회색 설명 대신) */
.x-body .ca-empty { display: flex; align-items: center; gap: 12px; padding: 18px 18px; border-radius: 16px; background: #f9fafb; }
.x-body .ca-empty img { flex: none; display: block; width: 40px; height: 40px; }
.x-body .ca-empty b { min-width: 0; font: 600 15px/1.45 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
/* 태블릿 업체 = 세로로 쌓은 줄(두 장 나란히면 이름 · 칩이 잘림) · 휴대폰 판 머리 = 한 줄(일정 판만 캘린더 아이콘이 펼쳐지니 줄바꿈 허용) */
@media (max-width: 1100px) and (min-width: 761px) {
  .x-body .ca-agl { flex-direction: column; }
  .x-body .ca-agl .ca-agt { flex: none; flex-direction: row; align-items: center; padding: 12px 14px; }
  .x-body .ca-agl .ca-agt-ic img { width: 30px; height: 30px; }
  .x-body .ca-agl .ca-agt-t b { font-size: 15px; }
}
@media (max-width: 760px) {
  .x-body .ca-dt:not(.is-visit) > .ca-rc-h { flex-wrap: nowrap; }
  .x-body .ca-dt > .ca-rc-h .ca-rc-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .x-body .ca-dt > .ca-rc-h .ca-rc-side { flex: none; }
}
/* 휴대폰 점검 고침 = 숨은 참조 주소 글자 그대로(x 가 ×로 바뀌던 것) · 360 고른 날 칸 · 요청 단추 그림자 · 휴대폰 캘린더 연결 = 단추 아래 작은 판(머리 줄이 튀지 않게) */
.x-body .ca-mailbar-addr span { font-variant-ligatures: none; font-feature-settings: "calt" 0, "liga" 0; }
.x-body .ca-rc .ca-vb { overflow: visible; }
@media (max-width: 380px) {
  .x-body .ca-cand { gap: 4px; padding: 0 4px; font-size: 12.5px; }
  .x-body .ca-cand b { width: 18px; height: 18px; font-size: 11px; }
}
@media (max-width: 760px) {
  .x-body .ca-dt > .ca-rc-h { flex-wrap: nowrap; }
  .x-body .ca-dt .ca-calc { position: relative; }
  .x-body .ca-dt .ca-calc-opts { position: absolute; top: calc(100% + 6px); right: 0; z-index: 6; flex-direction: column; align-items: stretch; gap: 4px; padding: 6px; border-radius: 16px; background: #fff; box-shadow: 0 0 0 1px var(--ui-line-strong, #e5e8eb), 0 12px 28px rgba(25, 31, 40, .14); }
  .x-body .ca-dt .ca-calc.is-open .ca-calc-opts { display: flex; }
  .x-body .ca-dt .ca-calc-ic { box-shadow: none; justify-content: flex-start; }
  .x-body .ca-dt .ca-calc-ic:hover { background: #f6f7f9; }
}

/* ---------- 판 안쪽 짜임(대표 10-21 "이런 ui들이 성의가 없다는 건데 · 텍스트만 덩그러니 · 구조도 없고 레이아웃도 없고") ----------
   방문 표(날짜 칸 + 상태 · 한 줄 · 단추) · 정기 방문 띠 · 방문 담당 카드 · 방문 장소 카드 · 진행 세 칸 · 보고서 표 */
.x-body .vx { display: flex; flex-direction: column; gap: 18px; container-type: inline-size; container-name: vx; }
.x-body .vx > .vx-block, .x-body .vx .vx-block.ca-vb { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible; }
.x-body .vx-card { position: relative; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 18px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .vx-line { margin: 0; font: 700 18px/1.4 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .vx-top { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.x-body .vx-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.x-body .vx-work { height: 24px; padding: 0 9px; border-radius: 999px; background: var(--ui-brand, #4c00ff); color: #fff; font: 700 12px/24px var(--ui-font, inherit); }
.x-body .vx-dday { height: 24px; padding: 0 8px; border-radius: 8px; background: rgba(76, 0, 255, .08); color: var(--ui-brand, #4c00ff); font: 800 12.5px/24px var(--ui-font, inherit); letter-spacing: -.01em; }
/* 날짜 칸 */
.x-body .vx-dt { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; width: 84px; min-height: 100px; border-radius: 16px; background: #fff; box-shadow: 0 6px 16px rgba(76, 0, 255, .08), 0 1px 2px rgba(46, 54, 120, .06); color: var(--ui-ink, #191f28); }
.x-body .vx-dt-m { font: 700 13px/1 var(--ui-font, inherit); color: var(--ui-brand, #4c00ff); }
.x-body .vx-dt-d { font: 800 34px/1 var(--ui-font, inherit); letter-spacing: -.04em; }
.x-body .vx-dt-w { font: 600 12.5px/1 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .vx-dt.is-brand { background: linear-gradient(160deg, #6b2bff 0%, #4c00ff 100%); color: #fff; box-shadow: 0 10px 24px rgba(76, 0, 255, .28); }
.x-body .vx-dt.is-brand .vx-dt-m, .x-body .vx-dt.is-brand .vx-dt-w { color: rgba(255, 255, 255, .82); }
.x-body .vx-dt.is-sm { width: 100%; min-height: 0; padding: 10px 0 9px; gap: 3px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .vx-dt.is-sm .vx-dt-d { font-size: 22px; }
.x-body .vx-dt.is-sm .vx-dt-m, .x-body .vx-dt.is-sm .vx-dt-w { font-size: 12px; }
/* 방문 표 = 연보라 판 + 날짜 칸 */
.x-body .vx-ticket { flex-direction: row; align-items: stretch; gap: 16px; padding: 14px; background: linear-gradient(135deg, #f5f1ff 0%, #eef3ff 100%); box-shadow: none; }
.x-body .vx-ticket.is-past, .x-body .vx-ticket.is-signed, .x-body .vx-ticket.is-wait { background: #f6f7f9; }
.x-body .vx-tk { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 2px 0; }
.x-body .vx-ticket .ca-st { background: rgba(255, 255, 255, .9); }
.x-body .vx-ticket .ca-st.is-solid { background: var(--ui-brand, #4c00ff); color: #fff; }
/* 잠금 · 빈 상태 */
.x-body .vx-card.is-lock { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px; background: #f9fafb; box-shadow: none; }
.x-body .vx-lock-ic img { display: block; width: 44px; height: 44px; }
.x-body .vx-lock-t { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.x-body .vx-card.is-lock .vx-line { font-size: 16px; }
/* 날짜 고르기 = 달력 + 고른 날 셋(판 넓으면 오른쪽 · 좁으면 아래) */
.x-body .vx-card.is-pick { gap: 14px; }
.x-body .vx-pick { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.x-body .vx-pick .ca-cal { width: 100%; max-width: 440px; margin: 0 auto; }
.x-body .vx-pick-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.x-body .vx-slots.ca-cands { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: none; margin: 0; }
.x-body .vx-slot.ca-cand { height: 46px; border-radius: 12px; }
.x-body .vx-slot.ca-cand.is-empty { background: #fff; box-shadow: none; border: 1.5px dashed #d1d6db; }
.x-body .vx-slot.ca-cand.is-empty span { color: #b0b8c1; font-weight: 600; }
.x-body .vx-pick-side .vx-acts .ca-fbtn { flex: 1 1 auto; }
@container vx (min-width: 600px) {
  .x-body .vx-pick { grid-template-columns: minmax(0, 1fr) 210px; align-items: start; }
  .x-body .vx-slots.ca-cands { grid-template-columns: minmax(0, 1fr); }
}
/* 확인 기다림 = 보낸 날 셋(번호 + 날짜 칸) · 기다리는 점 */
.x-body .vx-cands.ca-cand-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.x-body .vx-cands.ca-cand-list li { position: relative; display: block; min-height: 0; padding: 0; border-radius: 0; background: none; }
.x-body .vx-cands li > i { position: absolute; top: -7px; left: -7px; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ui-ink, #191f28); color: #fff; font: normal 700 12px/1 var(--ui-font, inherit); box-shadow: 0 0 0 2px #fff; }
.x-body .vx-dots { display: inline-flex; gap: 3px; margin-left: 2px; }
.x-body .vx-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ui-ink-3, #8b95a1); animation: vx-dot 1.2s ease-in-out infinite; }
.x-body .vx-dots i:nth-child(2) { animation-delay: .15s; } .x-body .vx-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes vx-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-2px); } }
/* 정기 방문 · 방문 담당 · 장소 */
.x-body .vx-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@container vx (min-width: 560px) { .x-body .vx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.x-body .vx-sec { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.x-body .vx-h { margin: 0; padding: 0 2px; font: 700 14px/1.3 var(--ui-font, inherit); letter-spacing: -.01em; color: var(--ui-ink-2, #4e5968); }
.x-body .vx-box { flex: 1; display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; border-radius: 18px; background: #f9fafb; }
.x-body .vx-rule { font: 700 16px/1.35 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .vx-strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.x-body .vx-strip .vx-dt.is-sm { background: #fff; }
.x-body .vx-strip li.is-next .vx-dt { box-shadow: inset 0 0 0 1.5px #b9a4ff; }
.x-body .vx-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.x-body .vx-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); font: 800 16px/1 var(--ui-font, inherit); }
.x-body .vx-who b { min-width: 0; font: 700 16px/1.3 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .vx-contact { display: flex; flex-direction: column; gap: 6px; }
.x-body .vx-pill { display: flex; align-items: center; gap: 8px; min-width: 0; height: 40px; padding: 0 12px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink, #191f28); font: 600 14px/1 var(--ui-font, inherit); text-decoration: none; transition: background-color .2s ease; }
.x-body .vx-pill svg { flex: none; color: var(--ui-brand, #4c00ff); }
.x-body .vx-pill span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.x-body .vx-pill:hover { background: #f6f7f9; }
.x-body .vx-pill:focus-visible, .x-body .vx-map:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .vx-place { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 12px; }
.x-body .vx-pin { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--ui-brand, #4c00ff); box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .vx-addr { flex: 1 1 200px; min-width: 0; font: 600 15px/1.45 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .vx-maps { display: flex; gap: 6px; }
.x-body .vx-map { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink, #191f28); font: 700 13.5px/1 var(--ui-font, inherit); text-decoration: none; white-space: nowrap; }
.x-body .vx-map svg { color: var(--ui-brand, #4c00ff); }
.x-body .vx-map:hover { background: #f6f7f9; }
@container vx (max-width: 460px) { .x-body .vx-maps { flex: 1 1 100%; } .x-body .vx-map { flex: 1 1 0; } }
/* 진행 세 칸 */
.x-body .vx-steps { list-style: none; margin: 0; padding: 4px 16px; border-radius: 18px; background: #f9fafb; display: flex; flex-direction: column; }
.x-body .vx-steps li { display: flex; align-items: center; gap: 12px; min-height: 50px; }
.x-body .vx-steps li + li { box-shadow: inset 0 1px 0 var(--ui-line, #eef0f3); }
.x-body .vx-steps i { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1.5px #d1d6db; color: var(--ui-ink-3, #8b95a1); font: normal 700 12.5px/1 var(--ui-font, inherit); }
.x-body .vx-steps li.is-done i { background: var(--ui-brand, #4c00ff); box-shadow: none; color: #fff; }
.x-body .vx-steps b { flex: 1; min-width: 0; font: 600 15px/1.3 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .vx-steps li:not(.is-done) b { color: var(--ui-ink-2, #4e5968); }
.x-body .vx-steps span { flex: none; font: 600 13px/1 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); }
/* 보고서 판 */
.x-body .vx-reps.dl-rep-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.x-body .vx-reps .dl-stars { margin-left: 4px; }
/* 휴대폰 */
@media (max-width: 760px) {
  .x-body .vx { gap: 16px; }
  .x-body .vx-ticket { gap: 14px; padding: 12px; }
  .x-body .vx-dt { width: 76px; min-height: 92px; }
  .x-body .vx-dt-d { font-size: 30px; }
  .x-body .vx-dt.is-sm .vx-dt-d { font-size: 20px; }
  .x-body .vx-line { font-size: 17px; }
}
/* 확인 기다림 날짜 칸 = 옛 목록 동그라미 글꼴이 날짜 숫자에 먹던 것 · 두 칸(정기 방문 | 방문 담당) = 판 520부터 */
.x-body .vx-cands .vx-dt-d { display: block; width: auto; height: auto; border-radius: 0; background: none; color: inherit; font: 800 22px/1 var(--ui-font, inherit); letter-spacing: -.04em; }
@container vx (min-width: 520px) { .x-body .vx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* 계약 판 숫자 셋 = 흰 막대(선임 신고 큰 카드 숫자 줄과 같은 결) */
.x-body .vx-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding: 14px 6px; border-radius: 18px; background: #f9fafb; }
.x-body .vx-stats > div { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 0 6px; }
.x-body .vx-stats > div + div { box-shadow: inset 1.5px 0 0 #e9e3ff; }
.x-body .vx-stats dt { font: 600 12.5px/1.2 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .vx-stats dd { margin: 0; font: 800 16px/1.25 var(--ui-font, inherit); letter-spacing: -.02em; color: var(--ui-ink, #191f28); text-align: center; word-break: keep-all; }
.x-body .vx .ca-doc-card { max-width: none; }
@container vx (min-width: 600px) { .x-body .vx .ca-doc-card { max-width: 420px; } }
/* 판 안쪽 점검 고침(10-21) */
/* 고른 날 칸 = 날짜 칸(번호 · 빼기 표시) · 빈 칸 = 점선 */
.x-body .vx-slots.ca-cands { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x-body .vx-slot.ca-cand { position: relative; display: block; height: auto; padding: 0; border: 0; border-radius: 14px; background: none; box-shadow: none; overflow: visible; }
.x-body .vx-slot.ca-cand .vx-dt.is-sm { width: 100%; background: var(--ui-brand-tint, #f4f0ff); box-shadow: inset 0 0 0 1.5px #c9b8ff; }
.x-body .vx-slot.ca-cand.is-empty { display: grid; place-items: center; min-height: 74px; border: 1.5px dashed #d1d6db; background: #fff; }
.x-body .vx-slot-e { font: 600 13px/1 var(--ui-font, inherit); color: #b0b8c1; }
.x-body .vx-slot-n { position: absolute; top: -7px; left: -7px; z-index: 1; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ui-brand, #4c00ff); color: #fff; font: normal 700 12px/1 var(--ui-font, inherit); box-shadow: 0 0 0 2px #fff; }
.x-body .vx-slot.is-empty .vx-slot-n { background: #e5e8eb; color: var(--ui-ink-3, #8b95a1); }
.x-body .vx-slot-x { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: rgba(25, 31, 40, .08); color: var(--ui-ink-2, #4e5968); }
.x-body .vx-slot.ca-cand:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
@container vx (min-width: 600px) { .x-body .vx-slots.ca-cands { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* 머리 = 업무 배지 줄 + 제목 */
.x-body .vx-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
/* 표 안 상태 칩 = 흰 알약(연보라 판에 묻히던 것) · 꽉 찬 칩은 그대로 */
.x-body .ca-ag3 .vx-ticket .ca-st { background: #fff; box-shadow: 0 1px 2px rgba(46, 54, 120, .08); }
.x-body .ca-ag3 .vx-ticket .ca-st.is-soon { color: var(--ui-brand, #4c00ff); }
.x-body .ca-ag3 .vx-ticket .ca-st.is-solid { background: var(--ui-brand, #4c00ff); color: #fff; box-shadow: none; }
.x-body .ca-ag3 .vx-ticket .ca-st.is-late { background: var(--ui-ink, #191f28); color: #fff; box-shadow: none; }
/* 같은 줄 단추 = 높이 · 모서리 · 글자 한 벌 */
.x-body .vx-acts > .ca-fbtn, .x-body .vx-acts > .ui-btn, .x-body .vx-acts > a.ca-fbtn { height: 40px; padding: 0 14px; border-radius: 12px; font: 700 14.5px/1 var(--ui-font, inherit); }
.x-body .vx-acts > .ca-fbtn svg { width: 16px; height: 16px; }
.x-body .vx-pick-side .vx-acts > .ca-fbtn { height: 46px; }
/* 업무 배지 = 상태 칩과 다른 모양(흰 네모 꼬리표) · D-day 배지 = 칩과 같은 높이 */
.x-body .vx-work { height: 28px; padding: 0 10px; border-radius: 8px; background: #fff; color: var(--ui-ink, #191f28); box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); font: 700 13px/28px var(--ui-font, inherit); }
.x-body .vx-dday { height: 28px; padding: 0 10px; border-radius: 999px; font: 800 13px/28px var(--ui-font, inherit); }
.x-body .vx-ticket.is-late .vx-dday { background: rgba(25, 31, 40, .08); color: var(--ui-ink, #191f28); }
/* 좁은 잠금 카드 = 아이콘 옆 글 · 단추 아래 꽉 */
.x-body .vx-lock-t { flex: 1 1 150px; }
@container vx (max-width: 420px) { .x-body .vx-card.is-lock > .ca-fbtn { flex: 1 1 100%; } }
/* 별점 = 단추와 같은 왼쪽 선(줄 바뀔 때) */
.x-body .vx-reps .dl-stars { margin-left: 0; }
/* 고른 날 칸 안 날짜 = 옛 칸 글꼴(동그라미 숫자 · 말줄임)이 먹던 것 되돌림 */
.x-body .vx-slot .vx-dt-d { display: block; width: auto; height: auto; border-radius: 0; background: none; color: var(--ui-ink, #191f28); font: 800 20px/1 var(--ui-font, inherit); letter-spacing: -.04em; }
.x-body .vx-slot .vx-dt > span { flex: none; overflow: visible; text-overflow: clip; white-space: nowrap; text-align: center; }

/* ---------- 업체가 고객사에 해 주는 일(대표 10-21 "위험성평가표 · 양식 업로드 · 다음 방문 미리 잡아 주고 · 지정기관 서류") ---------- */
.x-body .ra-list { list-style: none; margin: 0; padding: 4px 16px; border-radius: 18px; background: #f9fafb; display: flex; flex-direction: column; }
.x-body .ra-list li { display: flex; align-items: center; gap: 10px; min-height: 50px; min-width: 0; }
.x-body .ra-list li + li { border-top: 1px solid var(--ui-line, #eef0f3); }
.x-body .ra-lv { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font: 800 13px/1 var(--ui-font, inherit); }
.x-body .ra-lv.is-hi { background: var(--ui-brand, #4c00ff); color: #fff; }
.x-body .ra-lv.is-mid { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
.x-body .ra-lv.is-lo { background: #eceef1; color: var(--ui-ink-2, #4e5968); }
.x-body .ra-list b { flex: 1; min-width: 0; font: 700 15px/1.35 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .ra-place { flex: none; font: 600 13px/1 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-sheet .ra-table { width: 100%; border-collapse: collapse; font: 500 14px/1.45 var(--ui-font, inherit); }
.x-sheet .ra-table th, .x-sheet .ra-table td { padding: 10px 8px; border-bottom: 1px solid var(--ui-line, #eef0f3); text-align: left; vertical-align: middle; word-break: keep-all; }
.x-sheet .ra-table th { font-weight: 700; color: var(--ui-ink-2, #4e5968); font-size: 13px; }
.x-sheet .ra-lv { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 800 12.5px/1 var(--ui-font, inherit); }
.x-sheet .ra-lv.is-hi { background: var(--ui-brand, #4c00ff); color: #fff; } .x-sheet .ra-lv.is-mid { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); } .x-sheet .ra-lv.is-lo { background: #eceef1; color: var(--ui-ink-2, #4e5968); }
.x-body .dc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--ui-line-strong, #e5e8eb); border-radius: 18px; overflow: hidden; }
.x-body .dc-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; min-width: 0; padding: 12px 14px; background: #fff; }
.x-body .dc-row + .dc-row { border-top: 1px solid var(--ui-line, #f2f4f6); }
.x-body .dc-ic { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: #f6f7f9; color: var(--ui-ink-2, #4e5968); }
.x-body .dc-name { flex: 1 1 140px; min-width: 0; font: 700 15px/1.35 var(--ui-font, inherit); color: var(--ui-ink, #191f28); overflow-wrap: anywhere; }
.x-body .dc-acts { display: flex; gap: 6px; margin-left: auto; }
.x-body .dc-up { cursor: pointer; }
.x-body .dc-certs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.x-body .dc-cert { -webkit-appearance: none; appearance: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; min-height: 96px; padding: 14px 12px; border-radius: 16px; background: #f4f5f7; color: var(--ui-ink, #191f28); text-align: left; position: relative; }
.x-body .dc-cert:hover { background: #eceef1; }
.x-body .dc-cert b { font: 700 14px/1.3 var(--ui-font, inherit); word-break: keep-all; }
.x-body .dc-cert > svg { position: absolute; top: 14px; right: 10px; color: var(--ui-ink-3, #8b95a1); }
.x-body .dc-cert-ic img { display: block; width: 30px; height: 30px; }
.x-body .dc-cert:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }

/* ---------- 계약서 '계약을 맺었어요' 판 = 날짜 칸 둘 + 할 일 차례 + 약관 줄 + 단추(10-21 · 라벨 · 값 글줄 대신) ---------- */
.x-body .ca-sign.is-done .ca-sign-b { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.x-body .ca-sign-days { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.x-body .ca-sign-steps li > .sw-chip { flex: none; margin-left: auto; }
.x-body .ca-sign-steps i svg { width: 14px; height: 14px; }
.x-body .ca-terms-row { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 14px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink, #191f28); text-decoration: none; }
.x-body .ca-terms-row:hover { background: #fafafb; }
.x-body .ca-terms-row:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
.x-body .ca-terms-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: #f6f7f9; color: var(--ui-ink-2, #4e5968); }
.x-body .ca-terms-row > b { font: 700 15px/1.3 var(--ui-font, inherit); }
.x-body .ca-terms-go { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font: 600 14px/1 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .ca-sign-b .ca-next { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; padding: 0; border: 0; box-shadow: none; background: none; }
.x-body .ca-sign-b .ca-next-btn { flex: 1 1 200px; width: auto; }
.x-body .ca-sign-b .ca-cancel { flex: 0 0 auto; width: auto; min-width: 120px; font-weight: 700; }
@media (max-width: 420px) { .x-body .ca-sign-b .ca-cancel { flex: 1 1 100%; } }

/* ---------- 위험성평가 이행 판(대표 10-21 "자동으로 위험성평가표 만들어주고 이행되게끔") = 게이지 · 할 개선 카드 · 끝낸 개선 접힘 ---------- */
.x-body .ra-gauge { gap: 12px; padding: 18px 18px 16px; background: linear-gradient(135deg, #f5f1ff 0%, #eef3ff 100%); box-shadow: none; }
.x-body .ra-g-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.x-body .ra-g-n { font: 800 34px/1 var(--ui-font, inherit); letter-spacing: -.04em; color: var(--ui-ink, #191f28); }
.x-body .ra-g-n span { margin-left: 4px; font: 700 18px/1 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); letter-spacing: -.02em; }
.x-body .ra-g-bar { position: relative; height: 10px; border-radius: 999px; background: rgba(76, 0, 255, .1); overflow: hidden; }
.x-body .ra-g-bar i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--ui-brand, #4c00ff); transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.x-body .ra-g-acts { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.x-body .ra-g-pct { font: 800 15px/1 var(--ui-font, inherit); color: var(--ui-brand, #4c00ff); }
.x-body .ra-g-acts .ca-fbtn { background: #fff; }
.x-body .vx .ra-src, .x-body .vx .dl-msg-file.ra-src { width: 100%; max-width: none; }
.x-body .ra-dos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.x-body .ra-do { display: flex; flex-direction: column; gap: 8px; padding: 14px 14px 12px; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); }
.x-body .ra-do.is-late { box-shadow: inset 0 0 0 1.5px rgba(228, 41, 57, .45); }
.x-body .ra-do-h { display: flex; align-items: center; gap: 8px; min-width: 0; }
.x-body .ra-do-h > b { flex: 1; 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 .ra-due { flex: none; height: 26px; padding: 0 9px; border-radius: 999px; background: #f2f4f6; color: var(--ui-ink-2, #4e5968); font: 800 12.5px/26px var(--ui-font, inherit); font-variant-numeric: tabular-nums; }
.x-body .ra-due.is-today { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
.x-body .ra-due.is-late { background: #ffe9eb; color: var(--ui-danger, #e42939); }
.x-body .ra-do-k { display: flex; align-items: flex-start; gap: 8px; min-width: 0; font: 600 14.5px/1.45 var(--ui-font, inherit); color: var(--ui-ink, #191f28); word-break: keep-all; }
.x-body .ra-do-i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; margin-top: -1px; border-radius: 7px; background: #f6f7f9; color: var(--ui-ink-2, #4e5968); }
.x-body .ra-do-k.is-fix .ra-do-i { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
.x-body .ra-do-f { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding-top: 2px; }
.x-body .ra-do-f .ca-fbtn:not(.is-dark) { background: #fff; box-shadow: inset 0 0 0 1px var(--ui-line-strong, #e5e8eb); color: var(--ui-ink, #191f28); }
.x-body .ra-do-f .ca-fbtn svg { width: 16px; height: 16px; }
.x-body .ra-do-d { font: 600 13px/1 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); }
.x-body .ra-do.is-late .ra-do-d { color: var(--ui-danger, #e42939); }
.x-body .ra-dns { border-radius: 18px; background: #f9fafb; }
.x-body .ra-dns > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 52px; padding: 0 16px; list-style: none; cursor: pointer; font: 700 15px/1 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-body .ra-dns > summary::-webkit-details-marker { display: none; }
.x-body .ra-dns > summary svg { color: var(--ui-ink-3, #8b95a1); transition: transform .2s ease; }
.x-body .ra-dns[open] > summary svg { transform: rotate(180deg); }
.x-body .ra-dns > summary:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; border-radius: 18px; }
.x-body .ra-dns ul { list-style: none; margin: 0; padding: 0 16px 8px; }
.x-body .ra-dn { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.x-body .ra-dn + .ra-dn { border-top: 1px solid var(--ui-line, #eef0f3); }
.x-body .ra-dn-ok { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ui-brand, #4c00ff); color: #fff; }
.x-body .ra-dn > b { flex: 1; min-width: 0; font: 600 15px/1.35 var(--ui-font, inherit); color: var(--ui-ink-2, #4e5968); text-decoration: line-through; text-decoration-color: rgba(78, 89, 104, .35); word-break: keep-all; }
.x-body .ra-dn-ph { -webkit-appearance: none; appearance: none; flex: none; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: #eceef1; cursor: zoom-in; }
.x-body .ra-dn-ph img { display: block; width: 100%; height: 100%; object-fit: cover; }
.x-body .ra-dn-on { flex: none; font: 600 13px/1 var(--ui-font, inherit); color: var(--ui-ink-3, #8b95a1); }
/* [끝냈어요] 시트 = 줄 머리 · 개선 대책 · 사진 붙이기 칸(점선 · 붙이면 사진) */
.x-sheet .ra-fin { display: flex; flex-direction: column; gap: 12px; }
.x-sheet .ra-fin .ra-do-h { display: flex; align-items: center; gap: 8px; }
.x-sheet .ra-fin .ra-do-h > b { font: 700 17px/1.35 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-sheet .ra-fin .ra-lv { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font: 800 13px/1 var(--ui-font, inherit); }
.x-sheet .ra-fin .ra-lv.is-hi { background: var(--ui-brand, #4c00ff); color: #fff; } .x-sheet .ra-fin .ra-lv.is-mid { background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); } .x-sheet .ra-fin .ra-lv.is-lo { background: #eceef1; color: var(--ui-ink-2, #4e5968); }
.x-sheet .ra-fin .ra-do-k { display: flex; align-items: flex-start; gap: 8px; font: 600 15px/1.5 var(--ui-font, inherit); color: var(--ui-ink, #191f28); }
.x-sheet .ra-fin .ra-do-i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: var(--ui-brand-tint, #f4f0ff); color: var(--ui-brand, #4c00ff); }
.x-sheet .ra-ph { display: grid; place-items: center; min-height: 140px; border: 1.5px dashed #d1d6db; border-radius: 18px; background: #fafbfc; cursor: pointer; overflow: hidden; }
.x-sheet .ra-ph:hover { background: #f4f5f7; }
.x-sheet .ra-ph.is-on { border-style: solid; border-color: var(--ui-line-strong, #e5e8eb); }
.x-sheet .ra-ph-e { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--ui-ink-2, #4e5968); }
.x-sheet .ra-ph-e b { font: 700 15px/1 var(--ui-font, inherit); }
.x-sheet .ra-ph-e img { display: block; width: 100%; max-height: 260px; object-fit: cover; }
.x-sheet .ra-ph.is-on .ra-ph-e { width: 100%; }
.x-sheet .ra-ph-big { display: block; width: 100%; border-radius: 16px; }

/* 메일 판 제목(최근 대화 나눈 메일) = 좁은 휴대폰에서 두 줄까지(360 에서 잘리던 것) */
@media (max-width: 420px) { .x-body .ca-dt.is-mail > .ca-rc-h .ca-rc-t { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.3; } }
/* 휴대폰 업체 관리 대화 기능 화면 = 판 높이 = 화면 - 머리 - 아래 탭 - 위 · 아래 여백(60) · 페이지가 6px 더 굴러가던 것(10-21 재검증 · 위 전역 규칙이 아래 탭을 안 뺌) */
@media (max-width: 760px) { .x-body .ca-ag3.has-fn .ca-dt.is-chat { height: calc(100dvh - var(--sw-top, 80px) - var(--x-tab-height, 72px) - 60px); min-height: 360px; } }

/* 위험성평가 이행 2판(10-21) = 하는 중 단추 · 게이지 하는 중 칸 · 출처 파일 카드(대화 파일 카드와 한 벌) */
.x-body .ra-do-f .ca-fbtn.ra-step.is-on { background: var(--ui-brand-tint, #f4f0ff); box-shadow: inset 0 0 0 1.5px #c9b8ff; color: var(--ui-brand, #4c00ff); }
.x-body .ra-do.is-doing:not(.is-late) { box-shadow: inset 0 0 0 1.5px #c9b8ff; }
.x-body .ra-g-bar i:first-child { z-index: 1; }
.x-body .ra-g-bar i.is-doing { inset: 0 auto 0 auto; background: rgba(76, 0, 255, .28); }
.x-body .vx .dl-msg-file.dl-fc.ra-src { width: 100%; max-width: none; box-sizing: border-box; }

/* 위험성평가 3판(10-21) = 긴 장소 · 위험 요인 · 개선 대책 줄바꿈(360 · 400) · 확인 단계 끝냄 줄 · 사진 붙이기 단추 */
.x-body .ra-list b { flex: 1 1 0; min-width: 6em; overflow-wrap: anywhere; }
.x-body .ra-list .sw-chip { flex: none; }
.x-body .ra-list li.is-done b { color: var(--ui-ink-2, #4e5968); }
.x-body .ra-place { flex: 0 1 auto; max-width: 42%; min-width: 0; text-align: right; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.x-body .ra-do-h > b { overflow-wrap: anywhere; }
.x-body .ra-do-k > span:last-child, .x-sheet .ra-fin .ra-do-k > span:last-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.x-sheet .ra-ph { -webkit-appearance: none; appearance: none; width: 100%; padding: 0; font: inherit; color: inherit; }
.x-sheet .ra-ph:focus-visible { outline: 2px solid var(--ui-brand, #4c00ff); outline-offset: 2px; }
/* 움직임(10-21) = 하는 중 · 할 일로 바꾼 줄이 한 번 빛남(enter(row, 'ra-flash') · 움직임 줄이기 켠 기기 = 없음) */
@keyframes ra-flash { 0% { box-shadow: inset 0 0 0 1.5px #c9b8ff, 0 0 0 6px rgba(76, 0, 255, .16); } 100% { box-shadow: inset 0 0 0 1.5px #c9b8ff, 0 0 0 0 rgba(76, 0, 255, 0); } }
.x-body .ra-do.ra-flash { animation: ra-flash .6s cubic-bezier(.2, .8, .2, 1); }
