/* layouts/lp4-dcai.css — 요양원 카드 «AI 업무 체험 보기» 장면(틀 lp4-dcai.php · 손 lp4-dcai.js) · 11-07
   요양원 «AI로 업무 하기»(daycare-home/ai-work.php) 화면 꼴 — 왼쪽 대화 목록 · 위 머리 · 가운데 대화 · 아래 입력칸. 1280×720 한 장을 판 크기로 줄인다. */
.p4-dcai { position: absolute; inset: 0; overflow: hidden; background: radial-gradient(70% 90% at 50% 50%, #26354d, #0f172a); }
.dca4 { position: absolute; left: 0; top: 0; width: 1280px; height: 720px; display: flex; transform-origin: 0 0; background: #fff; color: #0f172a; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .6);
	font-family: 'Pretendard Variable', Pretendard, system-ui, sans-serif; font-size: 14px; line-height: 1.5; letter-spacing: -.01em; -webkit-font-smoothing: antialiased; pointer-events: none; }
.dca4 *, .dca4 *::before, .dca4 *::after { box-sizing: border-box; }

/* 왼쪽 대화 목록 */
.dca4-side { flex: 0 0 236px; display: flex; flex-direction: column; gap: 4px; padding: 14px 10px; background: #f8fafc; border-right: 1px solid #e8edf3; }
.dca4-brand { display: flex; align-items: center; gap: 9px; padding: 2px 6px 12px; }
.dca4-brand img { width: 26px; height: 26px; }
.dca4-brand b { font-size: 17px; font-weight: 800; }
.dca4-sw { margin-left: auto; display: flex; gap: 2px; padding: 3px; border-radius: 9px; background: #eef2f6; }
.dca4-sw i, .dca4-sw em { display: grid; place-items: center; width: 28px; height: 24px; border-radius: 7px; font-size: 12px; font-style: normal; font-weight: 800; color: #64748b; }
.dca4-sw em { background: #fff; color: #0f766e; box-shadow: 0 1px 2px rgba(15, 23, 42, .12); }
.dca4-nav, .dca4-th { display: flex; align-items: center; gap: 11px; padding: 9px 8px; border-radius: 11px; }
.dca4-nav > i, .dca4-th > i { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #e5eaf0; color: #334155; font-size: 15px; }
.dca4-nav span, .dca4-th span { display: flex; flex-direction: column; min-width: 0; }
.dca4-nav b, .dca4-th b { font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dca4-nav small, .dca4-th small { font-size: 12px; color: #475569; }
.dca4-today { margin: 10px 8px 2px; font-size: 12.5px; font-weight: 700; color: #475569; }
.dca4-th { opacity: .35; }
.dca4-th.is-on { opacity: 1; background: #e6f6f3; animation: dca4In .45s ease both; }
.dca4-th.is-on > i { background: #14b8a6; color: #fff; box-shadow: none; }
.dca4-me { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 8px; }
.dca4-me > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #1e293b; color: #fff; font-weight: 800; font-size: 13px; }
.dca4-me b { display: flex; flex-direction: column; font-size: 13.5px; font-weight: 800; }
.dca4-me small { font-size: 11.5px; font-weight: 600; color: #475569; }

/* 가운데 */
.dca4-main { position: relative; flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dca4-hd { display: flex; align-items: center; gap: 11px; height: 58px; padding: 0 18px; border-bottom: 1px solid #eef2f6; }
.dca4-hd img { width: 30px; height: 30px; padding: 4px; border-radius: 9px; box-shadow: 0 0 0 1px #e5eaf0; }
.dca4-hd > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dca4-hd b { display: flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 800; white-space: nowrap; overflow: hidden; }
.dca4-hd b em { font-style: normal; color: #0f9488; }
.dca4-hd b i { font-size: 11px; color: #94a3b8; }
.dca4-hd b span { overflow: hidden; text-overflow: ellipsis; }
.dca4-hd small { font-size: 12px; color: #475569; }
.dca4-hd button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid #e2e8f0; border-radius: 10px; background: #fff; font: inherit; font-size: 13px; font-weight: 700; color: #1e293b; }
.dca4-chat { position: relative; flex: 1; min-height: 0; overflow: hidden; }
.dca4-in { width: 620px; margin: 0 0 0 64px; padding: 18px 0 8px;   /* 오른쪽은 장면 설명 상자 자리 */ transition: transform .55s cubic-bezier(.2, .7, .2, 1); }

/* 첫 화면 */
.dca4-hi { padding-top: 120px; text-align: center; animation: dca4In .5s ease both; }
.dca4-hi h2 { margin: 0 0 8px; font-size: 27px; font-weight: 800; letter-spacing: -.03em; }
.dca4-hi p { margin: 0 0 22px; font-size: 14.5px; color: #475569; }
.dca4-q { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.dca4-q span { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px #e2e8f0; font-size: 13.5px; font-weight: 700; color: #1e293b; }
.dca4-q i { color: #0f9488; }

/* 말 · 답 */
.dca4-u { margin: 0 0 14px auto; max-width: 470px; padding: 12px 16px; border-radius: 16px 16px 4px 16px; background: #eef6f4; font-size: 14px; line-height: 1.6; color: #0f172a; animation: dca4In .4s ease both; }
.dca4-a { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: #0f172a; min-height: 23px; animation: dca4In .35s ease both; }
.dca4-a--ok { display: block; padding: 10px 14px; border-radius: 12px; background: #ecfdf5; color: #065f46; font-weight: 700; }
.dca4-a--ok i { margin-right: 6px; color: #10b981; }
.dca4-dots { display: flex; gap: 5px; margin: 4px 0 12px; }
.dca4-dots i { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; animation: dca4Dot 1s ease-in-out infinite; }
.dca4-dots i:nth-child(2) { animation-delay: .15s; } .dca4-dots i:nth-child(3) { animation-delay: .3s; }

/* 칸별 기록 카드 */
.dca4-rc, .dca4-fl { margin: 2px 0 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #e2e8f0, 0 12px 28px -18px rgba(15, 23, 42, .35); overflow: hidden; animation: dca4In .4s ease both; }
.dca4-rc__note { padding: 8px 14px; font-size: 12px; color: #475569; background: #fbfcfd; border-bottom: 1px solid #eef2f6; }
.dca4-rc__hd { padding: 9px 14px; font-size: 13.5px; background: #f5f3ff; border-bottom: 1px solid #ede9fe; }
.dca4-rc__hd b { font-size: 14.5px; font-weight: 800; }
.dca4-rc__hd small { margin-left: 6px; color: #475569; }
.dca4-rc__sec { display: none; padding: 8px 14px 6px; border-bottom: 1px solid #f1f5f9; }   /* 나오기 전엔 자리도 안 잡는다 */
.dca4-rc__sec.is-in { display: block; animation: dca4In .45s cubic-bezier(.2, .7, .2, 1) both; }
.dca4-rc__st { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-size: 12px; font-weight: 800; color: #6d28d9; }
.dca4-rc__row { display: grid; grid-template-columns: 22px 128px 1fr; align-items: center; gap: 8px; min-height: 30px; font-size: 13.5px; }
.dca4-rc__row .ck { display: grid; place-items: center; width: 19px; height: 19px; border-radius: 5px; background: #7c3aed; color: #fff; font-size: 10.5px; }
.dca4-rc__row b { font-weight: 700; }
.dca4-rc__row .v { color: #1e293b; }
.dca4-rc__row .ta { display: block; padding: 5px 9px; border-radius: 8px; box-shadow: 0 0 0 1px #e2e8f0; }
.dca4-rc__row .sel { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 7px; box-shadow: 0 0 0 1px #cbd5e1; font-size: 12.5px; }
.dca4-rc__row .ok { color: #15803d; font-weight: 700; }
.vt { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.vt > i { font-style: normal; padding: 3px 10px; border-radius: 999px; background: #7c3aed; color: #fff; font-size: 11.5px; font-weight: 800; }
.vt > span { display: flex; flex-direction: column; width: 84px; padding: 4px 8px; border-radius: 8px; box-shadow: 0 0 0 1px #e2e8f0; }
.vt small { font-size: 10.5px; font-weight: 700; color: #475569; }
.vt b { font-size: 14px; font-weight: 800; min-height: 20px; }
.vt .e { opacity: .7; }
.dca4-rc__ft { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 14px; background: #fbfcfd; font-size: 12px; color: #475569; }
.dca4-rc__ft button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 16px; border: 0; border-radius: 10px; background: #7c3aed; color: #fff; font: inherit; font-size: 13.5px; font-weight: 800; transition: background .3s; }
.dca4-rc__ft button.is-done { background: #10b981; }
.dca4-rc.is-saved, .dca4-fl.is-saved { box-shadow: 0 0 0 1.5px #6ee7b7, 0 12px 28px -18px rgba(15, 23, 42, .35); transition: box-shadow .4s; }

/* 고르기 단추 */
.dca4-ch { display: flex; gap: 8px; margin: 0 0 12px; animation: dca4In .35s ease both; }
.dca4-ch button { position: relative; height: 36px; padding: 0 16px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font: inherit; font-size: 13.5px; font-weight: 700; color: #1e293b; }
.dca4-ch button.is-pri { border-color: #0f9488; background: #0f9488; color: #fff; }
.dca4-ch.is-used button:not(.is-pri) { opacity: .4; }

/* 낙상위험도 */
.dca4-fl__hd { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff7ed; border-bottom: 1px solid #ffedd5; }
.dca4-fl__hd i { color: #ea580c; }
.dca4-fl__hd b { font-size: 14.5px; font-weight: 800; }
.dca4-fl__hd span { margin-left: auto; font-size: 12px; color: #475569; }
.dca4-fl__ls { padding: 4px 14px; }
.dca4-fl__r { display: grid; grid-template-columns: 116px 1fr 30px; align-items: center; min-height: 29px; font-size: 13.5px; border-bottom: 1px dashed #eef2f6; opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .4s; }
.dca4-fl__r.is-in { opacity: 1; transform: none; }
.dca4-fl__r b { font-weight: 700; }
.dca4-fl__r em { margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #fff7ed; color: #c2410c; font-style: normal; font-size: 11.5px; font-weight: 800; }
.dca4-fl__r .s { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.dca4-fl__sum { display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; opacity: 0; transition: opacity .4s; }
.dca4-fl__sum.is-in { opacity: 1; }
.dca4-fl__sum span { font-size: 13px; font-weight: 700; color: #475569; }
.dca4-fl__sum b { font-size: 18px; font-weight: 800; }
.dca4-fl__sum em { padding: 2px 9px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-style: normal; font-size: 12px; font-weight: 800; }
.dca4-fl__op { padding: 2px 14px 10px; }
.dca4-fl__op small { font-size: 12px; font-weight: 800; color: #475569; }
.dca4-fl__op p { margin: 4px 0 0; min-height: 44px; padding: 8px 10px; border-radius: 9px; background: #f8fafc; font-size: 13.5px; line-height: 1.6; }

/* 입력칸 */
.dca4-comp { position: relative; width: 620px; margin: 0 0 18px 64px; padding: 12px 14px 10px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 1px #e2e8f0, 0 10px 26px -18px rgba(15, 23, 42, .4); }
.dca4-tx { min-height: 24px; font-size: 14px; color: #0f172a; }
.dca4-tx .ph { color: #64748b; }
.dca4-tx .cur { display: inline-block; width: 2px; height: 16px; margin-left: 2px; vertical-align: -3px; background: #0f9488; animation: dca4Blink 1s steps(1) infinite; }
.dca4-cb { display: flex; justify-content: space-between; margin-top: 8px; }
.dca4-mic, .dca4-send { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 14px; }
.dca4-mic { background: #f1f5f9; color: #334155; }
.dca4-send { background: #0f172a; color: #fff; }
.dca4-comp.is-rec { box-shadow: 0 0 0 2px #14b8a6, 0 10px 26px -18px rgba(15, 23, 42, .4); }
.dca4-comp.is-rec .dca4-mic { background: #ef4444; color: #fff; animation: dca4Rec 1.2s ease-in-out infinite; }
.dca4-comp.is-rec::before { content: '듣고 있어요'; position: absolute; left: 14px; top: -30px; padding: 3px 11px; border-radius: 999px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 800; }

/* 누르는 모습 — 손가락 원이 퍼짐 */
.is-tap::after { content: ''; position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(20, 184, 166, .35); animation: dca4Tap .6s ease-out both; pointer-events: none; }

/* 장면 설명 — 오른쪽 위 */
.dca4-cap { position: absolute; right: 22px; top: 76px; z-index: 3; display: flex; gap: 12px; width: 290px; padding: 14px 16px; border-radius: 16px; background: rgba(15, 23, 42, .9); color: #fff;
	box-shadow: 0 18px 40px -16px rgba(15, 23, 42, .6); opacity: 0; transform: translateY(-8px); transition: opacity .35s, transform .35s; }
.dca4-cap.is-on { opacity: 1; transform: none; }
.dca4-cap > b { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: #14b8a6; font-size: 15px; font-weight: 800; }
.dca4-cap span { display: flex; flex-direction: column; gap: 3px; }
.dca4-cap strong { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.dca4-cap small { font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .85); word-break: keep-all; }

/* 끝 카드 */
.dca4-end { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(15, 23, 42, .55); opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.dca4-end.is-on { opacity: 1; visibility: visible; transition: opacity .5s; }
.dca4-end__in { width: 480px; padding: 30px 32px; border-radius: 22px; background: #fff; text-align: center; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.dca4-end__in img { display: block; width: 46px; height: 46px; margin: 0 auto; object-fit: contain; }   /* 11-18 가운데 — 영상 판의 그림 옷(lp4.css .p4-pl-slide img = block · 왼쪽 위)이 덮여 로고가 왼쪽에 붙던 것(AI 비서 장면 lp4-aiq 도 이 옷) */
.dca4-end__in h3 { margin: 10px 0 4px; font-size: 25px; font-weight: 800; letter-spacing: -.03em; }
.dca4-end__in p { margin: 0 0 16px; font-size: 14px; font-weight: 700; color: #0f9488; }
.dca4-end__in ul { margin: 0; padding: 0; list-style: none; text-align: left; display: grid; gap: 8px; }
.dca4-end__in li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #f1f5f9; font-size: 14.5px; font-weight: 700; }
.dca4-end__in li i { width: 18px; text-align: center; color: #0f9488; }

@keyframes dca4In { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dca4Dot { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
@keyframes dca4Blink { 50% { opacity: 0; } }
@keyframes dca4Rec { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .5); } 50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } }
@keyframes dca4Tap { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
	.dca4 *, .dca4 *::before, .dca4 *::after { animation: none !important; transition: none !important; }
}
