/* layouts/lp4-aiq.css — 랜딩 «AI 비서 · 세 서비스 공통» 구역(11-18) — 장면 덧옷(틀 lp4-aiq.php · 손 lp4-aiq.js · 바탕 옷은 요양원 장면 lp4-dcai.css .dca4 한 벌) + 구역 글 칸의 덧옷.
   장면 안 px 는 1280×720 한 장의 가상 px 다(판 크기로 통째로 줄인다). */

/* ── 구역 글 칸 — 이름 옆 «세 서비스 공통» 알약 ── */
.p4-sv__all { margin-left: 2px; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 34%, #fff);
	font-style: normal; font-size: 14.5px; font-weight: 800; letter-spacing: -.02em; color: color-mix(in srgb, var(--c) 78%, #0f172a); white-space: nowrap; }
@media (max-width: 769px) { .p4-sv__all { font-size: 13.5px; padding: 3px 9px; } }

/* ── 장면 ── */
/* 지금 어느 서비스의 AI 비서인지 — 오른쪽 위 덧판(장면 설명 위) */
.aiq-svc { position: absolute; right: 22px; top: 74px; z-index: 3; width: 290px; padding: 11px 12px 12px; border-radius: 16px; background: rgba(255, 255, 255, .96); box-shadow: 0 0 0 1px #e2e8f0, 0 16px 34px -18px rgba(15, 23, 42, .45); }
.aiq-svc small { display: block; margin: 0 2px 8px; font-size: 12.5px; font-weight: 700; color: #475569; }
.aiq-svc > span { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; padding: 4px; border-radius: 12px; background: #eef2f6; }
.aiq-svc b { display: grid; place-items: center; height: 32px; border-radius: 9px; font-size: 13.5px; font-weight: 800; letter-spacing: -.02em; color: #475569; white-space: nowrap; transition: background .35s, color .35s, box-shadow .35s; }
.aiq-svc b.is-on { background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .18); }
.aiq-svc b[data-s="visit"].is-on { color: #0f766e; box-shadow: 0 1px 3px rgba(15, 23, 42, .18), inset 0 -3px 0 #14b8a6; }
.aiq-svc b[data-s="daycare"].is-on { color: #4338ca; box-shadow: 0 1px 3px rgba(15, 23, 42, .18), inset 0 -3px 0 #6366f1; }
.aiq-svc b[data-s="daynight"].is-on { color: #c2410c; box-shadow: 0 1px 3px rgba(15, 23, 42, .18), inset 0 -3px 0 #f97316; }
.aiq4 .dca4-cap { top: 168px; }
.p4-player.is-mv .aiq-svc { display: none; }   /* 폰 보기 — 서비스 이름은 아래 큰 설명 글에 */

/* 왼쪽 목록 폭 고정 — 긴 대화 제목 · 기관 이름이 칸을 넓히지 않게 */
.aiq4 .dca4-side { width: 236px; min-width: 0; overflow: hidden; }
.aiq4 .dca4-nav span, .aiq4 .dca4-th span { flex: 1; min-width: 0; }
.aiq4 .dca4-th small, .aiq4 .dca4-me small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.aiq4 .dca4-me b { min-width: 0; }

/* 새 대화 머리 — 어느 서비스의 AI 비서인지 */
.aiq-new { display: flex; align-items: center; gap: 10px; margin: 6px 0 18px; font-size: 13px; font-weight: 700; color: #475569; animation: dca4In .4s ease both; }
.aiq-new::before, .aiq-new::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.aiq-new b { margin-right: -6px; font-weight: 800; color: #0f172a; }

/* 답의 근거 · 화면 버튼 */
.aiq-src { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 10px; padding: 5px 12px; border-radius: 999px; background: #f1f5f9; font-size: 12.5px; font-weight: 700; color: #334155; animation: dca4In .35s ease both; }
.aiq-src i { color: #0f9488; }
.aiq-go { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; animation: dca4In .35s ease both; }
.aiq-go span { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #99e0d6; font-size: 13.5px; font-weight: 800; color: #0f766e; }
.aiq-go i { font-size: 11.5px; }

/* 빠진 기록 카드 */
.aiq-gp, .aiq-vt { 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; }
.aiq-gp__hd { display: flex; align-items: center; gap: 8px; padding: 9px 14px; background: #f5f3ff; border-bottom: 1px solid #ede9fe; font-size: 12.5px; font-weight: 700; color: #4c1d95; }
.aiq-gp__r { display: grid; grid-template-columns: 22px 118px 74px 1fr; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-bottom: 1px solid #f1f5f9; font-size: 13.5px; opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .4s; }
.aiq-gp__r:last-child { border-bottom: 0; }
.aiq-gp__r.is-in { opacity: 1; transform: none; }
.aiq-gp__r > i { color: #6d28d9; text-align: center; }
.aiq-gp__r b { font-weight: 800; }
.aiq-gp__r em { justify-self: start; padding: 2px 10px; border-radius: 999px; background: #fee2e2; color: #b91c1c; font-style: normal; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.aiq-gp__r span { font-weight: 700; color: #1e293b; }
.aiq-gp__r.is-ok em { display: inline-flex; align-items: center; gap: 5px; background: #ecfdf5; color: #047857; }
.aiq-gp__r.is-ok em i { font-size: 10.5px; }
.aiq-gp__r.is-ok { grid-template-columns: 22px 118px 1fr 0; }

/* 활력징후 카드(주야간 바이탈 카드 꼴 — 칸 여섯 · 말한 값만 채움) */
.aiq-vt__hd { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fff7ed; border-bottom: 1px solid #ffedd5; }
.aiq-vt__hd > i { color: #ea580c; }
.aiq-vt__hd b { font-size: 14.5px; font-weight: 800; }
.aiq-vt__hd span { font-size: 12.5px; font-weight: 600; color: #475569; }
.aiq-vt__hd em { margin-left: auto; padding: 3px 11px; border-radius: 999px; background: #ea580c; color: #fff; font-style: normal; font-size: 12px; font-weight: 800; }
.aiq-vt__g { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px 14px; }
.aiq-vt__c { display: flex; flex-direction: column; gap: 2px; min-height: 62px; padding: 8px 12px; border-radius: 11px; background: #fff; box-shadow: inset 0 0 0 1px #e2e8f0; transition: box-shadow .35s, background .35s; }
.aiq-vt__c small { font-size: 12.5px; font-weight: 800; color: #334155; }
.aiq-vt__c small i { font-style: normal; font-weight: 600; color: #64748b; }
.aiq-vt__c b { min-height: 28px; font-size: 21px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; color: #0f172a; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .4s; }
.aiq-vt__c.is-in { background: #fff7ed; box-shadow: inset 0 0 0 1.5px #fdba74; }
.aiq-vt__c.is-in b { opacity: 1; transform: none; }
.aiq-vt__c.is-e { background: #f8fafc; }
.aiq-vt.is-saved { box-shadow: 0 0 0 1.5px #6ee7b7, 0 12px 28px -18px rgba(15, 23, 42, .35); transition: box-shadow .4s; }
.aiq-vt .dca4-rc__ft button { background: #ea580c; }
.aiq-vt .dca4-rc__ft button.is-done { background: #10b981; }

@media (prefers-reduced-motion: reduce) { .aiq-svc b, .aiq-gp__r, .aiq-vt__c, .aiq-vt__c b { transition: none; } }
