/* ============================================================
 * 상담소 화상 탭 (md2_video.js) — 시안 docs/202061118_renew_main/md-counsel.css · md-pay.jsx 를 옮긴 것 (색 덮어쓰기까지 반영)
 *  - 지금 바로 연결 줄 · 내 화상 상담 · 시트 속 내용 (.vc-*)
 *  - 시트 틀 · 여닫기 · 움직임은 공용 .md2-layer / .md2-over / .md2-sheet (md2_tokens.css · md2_pc.css · md2_ui.js)
 *     예약 · 예약 요청 · 결제 = .md2-over (모바일 오른쪽에서 · PC 오른쪽 패널)
 *     결제 완료 · 연결 기다림 = .md2-over.up.compact (모바일 아래에서 · PC 가운데 창)
 *     충전 = .md2-sheet (결제 위 바텀시트 · 태블릿부터 가운데 대화창)
 *  - 카드 · 거르기 줄은 md2_clinic.css (.vc-card · .vc-filters)
 * ============================================================ */

/* 내 화상 상담 — 다가오는 예약 + 상담방 들어가기 */
body.md2 .vm { margin: 14px var(--md2-gutter) 0; display: flex; flex-direction: column; gap: 8px; }
body.md2 .vm-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--seal); color: #fff; }
body.md2 .vm-ph { width: 48px; height: 48px; border-radius: 24px; }
body.md2 .vm-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.md2 .vm-t em { font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--green); }
body.md2 .vm-t b { font-size: 15px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.md2 .vm-t span { font-size: 12px; opacity: .75; }
body.md2 .vm-go { flex: none; height: 38px; padding: 0 14px; border-radius: 10px; background: var(--green); color: var(--ink); font-size: 13px; font-weight: 800; text-decoration: none; display: inline-flex; align-items: center; white-space: nowrap; }
body.md2 .vm-wait { flex: none; font-size: 12px; text-align: right; opacity: .8; line-height: 1.4; white-space: nowrap; }
body.md2 .vm-item.req { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
body.md2 .vm-item.req .vm-t em { color: var(--blue-ink); }
body.md2 .vm-item.req.end .vm-t em { color: var(--ink-3); }
body.md2 .vm-item.req .vm-t span { opacity: 1; color: var(--ink-3); }
body.md2 .vm-item.req.short .vm-t span { color: #C2133F; font-weight: 600; }
body.md2 .vm-item.req.short .vm-go { background: var(--seal); color: #fff; }
body.md2 .vm-x { flex: none; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink-3); font-size: 12.5px; font-weight: 700; }

/* 지금 바로 연결 (시안 .vc-live) */
body.md2 .vc-sec-h { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--md2-gutter); margin: 18px 0 12px; }
body.md2 .vc-sec-h > span { display: flex; align-items: center; gap: 7px; font-family: var(--title); font-weight: 700; font-size: 16px; white-space: nowrap; }
body.md2 .vc-sec-h em { font-style: normal; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
body.md2 .vc-bolt-ic { width: 22px; height: 22px; border-radius: 11px; background: var(--green); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; box-shadow: 0 0 0 4px rgba(112,255,24,.18); animation: vcBoltGlow 1.6s ease-in-out infinite; }
body.md2 .vc-bolt-ic.sm { width: 18px; height: 18px; margin-right: 6px; vertical-align: -3px; box-shadow: none; animation: none; }
@keyframes vcBoltGlow { 50% { box-shadow: 0 0 0 7px rgba(112,255,24,.08); } }
body.md2 .vc-live-row { display: flex; gap: 14px; padding: 0 var(--md2-gutter) 4px; overflow-x: auto; scrollbar-width: none; }
body.md2 .vc-live-row::-webkit-scrollbar { display: none; }
body.md2 .vc-live-item { display: flex; flex-direction: column; align-items: center; gap: 4px; flex-shrink: 0; width: 72px; }
body.md2 .vc-live-ring { position: relative; display: block; padding: 3px; border-radius: 50%; border: 2px solid var(--green); }
body.md2 .vc-live-ring .md2-ph { width: 64px; height: 64px; border-radius: 32px; }
body.md2 .vc-live-bolt { position: absolute; right: -2px; bottom: -2px; width: 22px; height: 22px; border-radius: 11px; background: var(--green); color: var(--ink); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2.5px var(--paper); }
body.md2 .vc-live-item b { font-size: 12.5px; font-weight: 700; white-space: nowrap; margin-top: 2px; }
body.md2 .vc-live-item em { font-style: normal; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ── 시트 속 공통 (시안 vc-over 안쪽) ── */
body.md2 .vc-cta { width: 100%; height: 54px; border-radius: 14px; background: var(--seal); color: #fff; font-weight: 700; font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; flex-shrink: 0; }
body.md2 .vc-cta:disabled, body.md2 .vc-cta.off { background: var(--paper-2); color: var(--ink-3); cursor: default; }
body.md2 .vc-cta.line { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
body.md2 .vc-cta-ghost { width: 100%; height: 48px; border-radius: 14px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
body.md2 .vc-h { font-family: var(--title); font-weight: 700; font-size: 15px; margin: 26px 0 10px; }
body.md2 .vc-h-sub { font-style: normal; font-weight: 500; font-size: 12px; color: var(--ink-3); margin-left: 4px; }

body.md2 .vc-book-who { display: flex; align-items: center; gap: 14px; padding: 14px; background: var(--card); border-radius: 16px; border: 1px solid var(--line); }
body.md2 .vc-book-who .md2-ph { width: 56px; height: 56px; border-radius: 28px; }
body.md2 .vc-book-who > div { flex: 1; min-width: 0; }
body.md2 .vc-book-who b { display: block; font-family: var(--title); font-weight: 800; font-size: 18px; }
body.md2 .vc-book-who span { font-size: 12.5px; color: var(--ink-3); }
body.md2 .vc-dur { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
body.md2 .vc-dur button { padding: 12px 4px; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color var(--md-select-dur), background-color var(--md-select-dur); }
body.md2 .vc-dur b { font-size: 15px; white-space: nowrap; }
body.md2 .vc-dur span { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
body.md2 .vc-dur .on { border-color: var(--blue); background: var(--blue-soft); }
body.md2 .vc-dur .on span { color: var(--blue-ink); font-weight: 600; }
body.md2 .vc-now { width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--line); text-align: left; margin-bottom: 8px; transition: border-color var(--md-select-dur); }
body.md2 .vc-now.on { border-color: var(--blue); }
body.md2 .vc-radio { width: 20px; height: 20px; border-radius: 10px; border: 1.5px solid var(--line); flex-shrink: 0; transition: border-width var(--md-select-dur), border-color var(--md-select-dur); }
body.md2 .vc-now.on .vc-radio { border: 6px solid var(--blue); }
body.md2 .vc-now.live.on, body.md2 .vc-now.live.on .vc-radio { border-color: #5BD80F; }
body.md2 .vc-now-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
body.md2 .vc-now-t b { font-size: 15px; white-space: nowrap; }
body.md2 .vc-now-t em { font-style: normal; font-size: 12px; color: var(--ink-3); }
body.md2 .vc-tag-y { font-style: normal; font-size: 10.5px; font-weight: 700; background: var(--accent); color: #fff; padding: 2px 6px; border-radius: 5px; margin-left: 4px; vertical-align: 1px; }
/* 날짜 — 시안 5칸, 실제는 7일이라 5칸 폭으로 가로 스크롤 */
body.md2 .vc-dates { display: flex; gap: 6px; margin-top: 6px; overflow-x: auto; scrollbar-width: none; padding: 6px 4px 2px 0; }
body.md2 .vc-dates::-webkit-scrollbar { display: none; }
body.md2 .vc-dates button { position: relative; flex: 0 0 calc((100% - 28px) / 5); min-width: 56px; padding: 9px 0; border-radius: 12px; background: var(--card); border: 1.5px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; transition: background-color var(--md-select-dur), border-color var(--md-select-dur), color var(--md-select-dur); }
body.md2 .vc-dates em { font-style: normal; font-size: 11px; color: var(--ink-3); }
body.md2 .vc-dates b { font-size: 13.5px; white-space: nowrap; }
body.md2 .vc-dates .on { background: var(--blue); border-color: var(--blue); color: #fff; }
body.md2 .vc-dates .on em { color: rgba(255,255,255,.7); }
body.md2 .vc-date-n { position: absolute; top: -5px; right: -3px; width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: #fff; font-style: normal; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
/* 날짜 — 한 달 달력 (KDES 예약 화면 cal-grid 꼴 · 명당 색) */
body.md2 .vc-cal { margin-top: 6px; padding: 14px 12px 12px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); }
body.md2 .vc-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
body.md2 .vc-cal-head b { font-size: 15px; font-weight: 700; }
body.md2 .vc-cal-nav { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink-2); font-size: 18px; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
body.md2 .vc-cal-nav:disabled { opacity: .35; cursor: default; }
body.md2 .vc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
body.md2 .vc-cal-wd { margin-bottom: 4px; }
body.md2 .vc-cal-wd span { text-align: center; font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 4px 0; }
body.md2 .vc-cal-wd span:first-child { color: #e5484d; }
body.md2 .vc-cal-cell { aspect-ratio: 1 / 1; min-height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color var(--md-select-dur), border-color var(--md-select-dur), color var(--md-select-dur); }
body.md2 .vc-cal-cell.empty { border-color: transparent; background: transparent; }
body.md2 .vc-cal-cell:disabled { opacity: .3; cursor: default; font-weight: 500; }
body.md2 .vc-cal-cell.today { border-color: var(--ink-3); }
body.md2 .vc-cal-cell.on { background: var(--blue); border-color: var(--blue); color: #fff; }
body.md2 .vc-times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
body.md2 .vc-times button { height: 42px; border-radius: 10px; background: var(--card); border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: border-color var(--md-select-dur), background-color var(--md-select-dur), color var(--md-select-dur); }
body.md2 .vc-times button:disabled { color: var(--ink-3); opacity: .45; text-decoration: line-through; cursor: default; }
body.md2 .vc-times .on { border-color: var(--blue); background: var(--blue-soft); color: var(--blue-ink); }
body.md2 .vc-toreq { display: block; width: 100%; margin-top: 12px; padding: 13px 0; border-radius: 12px; background: var(--paper-2); font-size: 13.5px; color: var(--ink-2); text-align: center; }
body.md2 .vc-toreq b { color: var(--blue-ink); font-weight: 700; }
body.md2 .vc-times-none { grid-column: 1 / -1; padding: 22px 0; text-align: center; font-size: 13px; color: var(--ink-3); }
body.md2 .vc-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; color: var(--ink-2); }
body.md2 .vc-sum span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body.md2 .vc-sum b { font-size: 19px; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
body.md2 .vc-err { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); color: #C2133F; font-size: 13px; font-weight: 600; line-height: 1.5; }

/* 결제 (시안 MdVcPay) */
body.md2 .vc-pay-order { display: flex; align-items: center; gap: 12px; }
body.md2 .vc-pay-order .md2-ph { width: 48px; height: 48px; border-radius: 12px; }
body.md2 .vc-pay-order b { display: block; font-size: 15px; font-weight: 700; }
body.md2 .vc-pay-order span { font-size: 12.5px; color: var(--ink-3); }
body.md2 .vc-wallet { margin-top: 18px; padding: 18px; border-radius: 18px; background: var(--seal); color: #fff; }
body.md2 .vc-wallet-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; opacity: .9; }
body.md2 .vc-wallet-top button { height: 30px; padding: 0 12px; border-radius: 99px; background: rgba(255,255,255,.16); color: #fff; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
body.md2 .vc-wallet-n { margin-top: 6px; display: flex; align-items: baseline; gap: 4px; }
body.md2 .vc-wallet-n b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
body.md2 .vc-wallet-n em { font-style: normal; font-size: 18px; font-weight: 700; opacity: .7; }
body.md2 .vc-wallet-bar { margin-top: 12px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.18); overflow: hidden; }
body.md2 .vc-wallet-bar i { display: block; height: 100%; background: #fff; border-radius: 3px; transition: width .4s; }
body.md2 .vc-wallet-bar i.over { background: var(--accent); }
body.md2 .vc-wallet-foot { margin-top: 8px; font-size: 12.5px; opacity: .9; }
body.md2 .vc-wallet-foot .warn { color: #FF8FA8; font-weight: 700; }
body.md2 .vc-receipt { background: var(--card); border-radius: 14px; border: 1px solid var(--line); padding: 4px 16px; }
body.md2 .vc-receipt > div { display: flex; justify-content: space-between; padding: 12px 0; font-size: 14px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
body.md2 .vc-receipt .tot { border-top: 1px solid var(--line); color: var(--ink); font-weight: 700; }
body.md2 .vc-receipt .tot b { font-size: 18px; }
body.md2 .vc-policy { margin-top: 18px; font-size: 12px; line-height: 1.75; color: var(--ink-3); }
body.md2 .vc-agree { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 14px; font-weight: 600; text-align: left; }
body.md2 .vc-check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: #fff; flex-shrink: 0; transition: background-color var(--md-select-dur), border-color var(--md-select-dur); }
body.md2 .on > .vc-check { background: var(--blue); border-color: var(--blue); }
body.md2 .vc-spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: md2Spin .7s linear infinite; }

/* 충전 시트 (시안 .vc-charge — 결제 위 바텀시트) */
body.md2 .vc-charge .md2-sheet-grab { margin: 12px auto 14px; }
body.md2 .vc-charge .md2-sheet-head { padding: 0 20px; }
body.md2 .vc-charge-h { font-family: var(--title); font-weight: 800; font-size: 20px; }
body.md2 .vc-charge .md2-sheet-body { padding: 0 20px; }
body.md2 .vc-charge .md2-sheet-foot { border-top: 0; padding-top: 0; }
body.md2 .vc-charge-s { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
body.md2 .vc-packs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
body.md2 .vc-pack { position: relative; padding: 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper); text-align: left; display: flex; flex-direction: column; gap: 2px; transition: border-color var(--md-select-dur), background-color var(--md-select-dur); }
body.md2 .vc-pack b { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
body.md2 .vc-pack em { font-style: normal; font-size: 12px; font-weight: 700; color: #3B9B00; }
body.md2 .vc-pack span { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
body.md2 .vc-pack small { font-size: 10.5px; color: var(--ink-3); opacity: .8; }
body.md2 .vc-pack-best { position: absolute; top: -8px; right: 10px; font-style: normal; font-size: 10.5px; font-weight: 700; background: var(--accent); color: #fff; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
body.md2 .vc-pack.on { border-color: var(--seal); background: var(--seal-soft); }
body.md2 .vc-charge-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 14px 0; }
body.md2 .vc-charge-methods button { height: 38px; border-radius: 10px; border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; transition: border-color var(--md-select-dur), color var(--md-select-dur); }
body.md2 .vc-charge-methods .on { border-color: var(--ink); color: var(--ink); }
body.md2 .vc-charge-methods button:disabled { opacity: .4; cursor: default; }

/* 완료 (시안 MdVcDone) · 예약 요청 보냄 · 연결 기다림 */
body.md2 .vc-done-in { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; padding: calc(56px + env(safe-area-inset-top, 0px)) 20px 20px; text-align: center; overflow-y: auto; }
body.md2 .vc-done-mark { width: 76px; height: 76px; border-radius: 38px; background: var(--seal); display: flex; align-items: center; justify-content: center; flex-shrink: 0; animation: md2Pop .5s var(--md-ease-bounce); }
body.md2 .vc-done-mark.req { background: var(--seal); }
body.md2 .vc-done-t { font-family: var(--title); font-weight: 800; font-size: 23px; margin-top: 20px; letter-spacing: -0.03em; }
body.md2 .vc-done-s { font-size: 14px; color: var(--ink-3); margin-top: 6px; line-height: 1.5; }
body.md2 .vc-done-card { width: 100%; margin-top: 28px; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; text-align: left; }
body.md2 .vc-done-who { display: flex; align-items: center; gap: 12px; }
body.md2 .vc-done-who:not(:last-child) { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
body.md2 .vc-done-who .md2-ph { width: 44px; height: 44px; border-radius: 22px; }
body.md2 .vc-done-who b { display: block; font-weight: 800; font-size: 16px; }
body.md2 .vc-done-who span { font-size: 12.5px; color: var(--ink-3); }
body.md2 .vc-done-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0 0; font-size: 14px; }
body.md2 .vc-done-rows span { color: var(--ink-3); white-space: nowrap; }
body.md2 .vc-done-rows b { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 예약 요청 (시안 MdVcRequest) */
body.md2 .vc-req-info { display: flex; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--blue-soft); color: var(--blue-ink); font-size: 12.5px; line-height: 1.55; }
body.md2 .vc-req-info svg { flex: none; margin-top: 3px; }
/* 예약 요청 — 보유 포인트 줄 (요청하려면 상담 금액만큼 있어야 함) */
body.md2 .vc-req-bal:empty { display: none; }
body.md2 .vc-req-bal { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 12.5px; color: var(--ink-2); }
body.md2 .vc-req-bal b { color: var(--ink); font-variant-numeric: tabular-nums; }
body.md2 .vc-req-bal .warn { color: #C2133F; font-weight: 700; flex: 1; text-align: right; }
body.md2 .vc-req-bal .ok { color: var(--ink-3); flex: 1; text-align: right; }
body.md2 .vc-req-bal button { flex: none; height: 30px; padding: 0 12px; border-radius: 8px; background: var(--seal); color: #fff; font-size: 12.5px; font-weight: 700; }
body.md2 .vc-req-info span { color: var(--ink-2); }
body.md2 .vc-req-info b { color: var(--blue-ink); }
body.md2 .vc-req-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
body.md2 .vc-req-row > span { width: 30px; font-size: 12px; font-weight: 700; color: var(--ink-3); flex-shrink: 0; }
body.md2 .vc-req-row > div { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
body.md2 .vc-req-row button { height: 40px; border-radius: 10px; background: var(--card); border: 1.5px solid var(--line); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background-color var(--md-select-dur), border-color var(--md-select-dur), color var(--md-select-dur); }
body.md2 .vc-req-row button.on { background: var(--blue); border-color: var(--blue); color: #fff; }
body.md2 .vc-req-row button:disabled { opacity: .4; cursor: default; }
body.md2 .vc-req-picks { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
body.md2 .vc-req-picks span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 6px 0 10px; border-radius: 99px; background: var(--blue-soft); color: var(--ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; animation: md2ChipIn .35s var(--md-ease) both; }
body.md2 .vc-req-picks:empty { display: none; }
body.md2 .vc-req-picks span.seen { animation: none; }
body.md2 .vc-req-picks em { font-style: normal; font-size: 10.5px; color: var(--blue-ink); }
body.md2 .vc-req-picks button { width: 20px; height: 20px; border-radius: 10px; font-size: 9px; color: var(--ink-3); }
body.md2 .vc-req-memo { width: 100%; height: 64px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); padding: 10px 12px; font: 14px/1.5 var(--sans); color: var(--ink); resize: none; outline: none; display: block; }
body.md2 .vc-req-memo:focus { border-color: var(--ink); }
body.md2 .vc-policy.req { margin-top: 10px; }

/* 지금 바로 연결 — 선생님을 부르는 중 (시안에 없는 화면 — 완료 화면 틀에 녹색 울림) */
body.md2 .vc-live-ph { position: relative; width: 96px; height: 96px; flex-shrink: 0; }
body.md2 .vc-live-ph .md2-ph { width: 96px; height: 96px; border-radius: 48px; }
body.md2 .vc-live-ph::before, body.md2 .vc-live-ph::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--green); animation: vcRing 1.8s ease-out infinite; }
body.md2 .vc-live-ph::after { animation-delay: .9s; }
body.md2 .vc-live-ph.off::before, body.md2 .vc-live-ph.off::after { display: none; }
@keyframes vcRing { from { transform: scale(1); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }
body.md2 .vc-live-n { font-family: var(--mono); font-weight: 600; font-size: 40px; margin-top: 14px; font-variant-numeric: tabular-nums; }
body.md2 .vc-live-n small { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }

/* PC — 가운데 창(.compact)에서는 위 여백을 줄인다 */
@media (min-width: 100000px) { /* PC 틀 꺼 둠 — 넓은 화면도 태블릿 틀(750 · 하단 탭바). 다시 켜려면 1024px */
    body.md2 .md2-over.compact .vc-done-in { padding-top: 40px; flex: 0 1 auto; }
    @media (hover: hover) {
        body.md2 .vc-dur button:not(.on):hover, body.md2 .vc-times button:not(.on):not(:disabled):hover,
        body.md2 .vc-dates button:not(.on):hover, body.md2 .vc-cal-cell:not(.on):not(:disabled):not(.empty):hover, body.md2 .vc-req-row button:not(.on):not(:disabled):hover,
        body.md2 .vc-now:not(.on):hover, body.md2 .vc-pack:not(.on):hover { border-color: #C9CED6; }
        body.md2 .vc-live-item:hover .vc-live-ring { box-shadow: 0 0 0 3px rgba(112,255,24,.25); }
        body.md2 .vc-cta:not(:disabled):not(.off):hover { filter: brightness(1.08); }
    }
}

/* '지금 가능' 토글 — 지금 바로 연결이 꺼져 있으면 숨김 (md2_clinic.css display:flex 를 이기게) */
body.md2 .vc-toggle[hidden] { display: none; }

/* 짧은 안내 — 시트 위 */
.vc-toast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); z-index: calc(var(--md-z-sheet, 1045) + 10); max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 12px; background: rgba(26,29,35,.92); color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.45; text-align: center; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .2s, transform .2s; }
.vc-toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
    .vc-toast { transition: none; }
    body.md2 .vc-bolt-ic, body.md2 .vc-live-ph::before, body.md2 .vc-live-ph::after, body.md2 .vc-done-mark, body.md2 .vc-req-picks span { animation: none; }
    body.md2 .vc-wallet-bar i { transition: none; }
}

/* 일정 변경 (md2_video.js openChange — KDES 일정 변경 요청과 같은 흐름) */
body.md2 .vm-chg { display: flex; align-items: center; gap: 10px; margin-top: -4px; padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
body.md2 .vm-chg span { flex: 1; min-width: 0; line-height: 1.45; }
body.md2 .vm-chg button { flex: none; height: 32px; padding: 0 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper-2); color: var(--ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
body.md2 .vm-chg.ask { background: var(--blue-soft); border-color: var(--blue); color: var(--blue-ink); font-weight: 600; }
body.md2 .vm-chg.ask button { background: var(--blue); border-color: var(--blue); color: #fff; }
body.md2 .vc-chg-cur { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 14px; background: var(--paper); }
body.md2 .vc-chg-cur span { font-size: 12px; color: var(--ink-3); }
body.md2 .vc-chg-cur b { font-size: 16px; font-variant-numeric: tabular-nums; }
body.md2 .vc-chg-cur em { font-style: normal; font-size: 12.5px; color: var(--ink-2); }
body.md2 .vc-chg-box { margin-top: 12px; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
body.md2 .vc-chg-box.ask { border-color: var(--blue); background: var(--blue-soft); }
body.md2 .vc-chg-box b { display: block; font-size: 15px; margin-bottom: 4px; }
body.md2 .vc-chg-box span { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
body.md2 .vc-chg-box p { margin: 8px 0 0; font-size: 13px; color: var(--ink); white-space: pre-line; }
body.md2 .vc-chg-opts { display: flex; flex-direction: column; gap: 6px; }
body.md2 .vc-chg-hint { margin-top: 8px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
body.md2 .vc-chg-hint.top { margin: 12px 0 0; font-size: 12.5px; color: var(--ink-2); }
body.md2 .vc-chg-times button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; height: 46px; }
body.md2 .vc-chg-times button small { font-size: 10px; font-weight: 500; text-decoration: none; }
body.md2 .vc-chg-custom { display: flex; gap: 6px; margin-top: 10px; }
body.md2 .vc-chg-custom select { flex: 1; height: 42px; padding: 0 10px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--card); font-size: 14px; color: var(--ink); }
body.md2 .vc-chg-custom button { flex: none; height: 42px; padding: 0 16px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 700; }
body.md2 .vc-chg-picks { display: flex; flex-wrap: wrap; gap: 6px; }
body.md2 .vc-chg-picks span { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 17px; background: var(--blue-soft); color: var(--blue-ink); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
body.md2 .vc-chg-picks button { font-size: 11px; color: var(--blue-ink); opacity: .7; }
body.md2 .vc-chg-ta { width: 100%; min-height: 84px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--card); font: inherit; font-size: 14px; color: var(--ink); resize: vertical; }
body.md2 .vc-chg-hist { display: flex; flex-direction: column; gap: 6px; }
body.md2 .vc-chg-hist div { padding: 10px 12px; border-radius: 12px; background: var(--paper); font-size: 12.5px; }
body.md2 .vc-chg-hist b { display: block; font-size: 12.5px; }
body.md2 .vc-chg-hist span { color: var(--ink-3); }
body.md2 .vc-chg-foot { display: flex; flex-direction: column; gap: 8px; }
body.md2 .vc-chg-refuse { color: #C2133F; font-size: 14px; }
