/* ═══════════════════════════════════════════════════════════════
 * layouts/wl-pick.css — AI 비서 «업무수행일지 — 수급자 고르기» 카드 옷 한 벌 (2026-11-01, 세 사이트 공통)
 *
 *  사장님 11-01 «"업무수행일지 작성해줘" 라고 하면 수급자를 정해 달라고 안내하면서 버튼 2개 [내 담당 수급자] / [모든 수급자] …
 *   김삼호를 클릭하면 "김삼호님의 업무수행일지를 작성합니다"».
 *  카드를 그리는 손은 사이트마다 따로(파일 · 창구를 같이 쓰지 않는다): 방문요양 home/ai-desk.js cvlPick · 요양원 daycare-home/ai-worklog.js choose
 *   · 주야간 daynight-ai/chat.js wlPick. 이 파일은 옷만 — 손이 처음 카드를 그릴 때 <link data-wlp-css> 로 싣는다(화면 머리를 안 건드린다).
 *  강조색 = 요양원 · 주야간 #0d9488 / #0f766e(기본) · 방문요양 #1f9a84(.wlp--visit). 연령층이 높아 글자는 검정 · 15~16px · 누를 곳 48px 이상.
 * ═══════════════════════════════════════════════════════════════ */
.wlp {
	--wlp-ac: #0d9488; --wlp-ac2: #0f766e; --wlp-soft: #f0fdfa; --wlp-line: #e2e8f0;
	box-sizing: border-box; width: 100%; max-width: 680px; margin: 8px 0 2px;
	border: 1px solid var(--wlp-line); border-radius: 14px; background: #fff; box-shadow: 0 1px 3px rgba(15, 23, 42, .07);
	color: #0f172a; font-size: 15px; line-height: 1.45; text-align: left; overflow: hidden;
}
.wlp--visit { --wlp-ac: #1f9a84; --wlp-ac2: #17806d; }
.wlp *, .wlp *::before, .wlp *::after { box-sizing: border-box; }
.wlp [hidden] { display: none !important; }

/* 머리 띠 — 아이콘 칩 · 제목 · 오른쪽 알약 */
.wlp__h { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid #eef2f6; }
.wlp__ic { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--wlp-soft); color: var(--wlp-ac2); font-size: 14px; }
.wlp__h b { font-size: 16px; font-weight: 800; color: #0f172a; }
.wlp__h em { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: #f1f5f9; color: #475569; font-size: 13px; font-weight: 700; font-style: normal; white-space: nowrap; }

/* 단추 둘 — [내 담당 수급자] [모든 수급자] */
.wlp__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 14px; }
.wlp__tab {
	min-height: 50px; padding: 8px 10px; border: 1.5px solid #cbd5e1; border-radius: 12px; background: #fff; color: #0f172a;
	display: flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 16px; font-weight: 750; cursor: pointer;
	transition: background .15s, border-color .15s, color .15s;
}
.wlp__tab i { color: var(--wlp-ac); font-size: 15px; }
.wlp__tab:hover { border-color: var(--wlp-ac); background: var(--wlp-soft); }
.wlp__tab.is-on { border-color: var(--wlp-ac); background: var(--wlp-ac); color: #fff; }
.wlp__tab.is-on i { color: #fff; }

/* 목록 */
.wlp__body { padding: 0 14px 14px; }
.wlp__bar { display: flex; align-items: center; gap: 10px; margin: 2px 0 10px; }
.wlp__bar b { flex: 0 0 auto; font-size: 15px; font-weight: 800; color: #0f172a; white-space: nowrap; }
.wlp__bar b span { color: var(--wlp-ac2); }
.wlp__find {
	margin-left: auto; flex: 0 1 260px; min-width: 0; height: 42px; padding: 0 12px; display: flex; align-items: center; gap: 8px;
	border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; color: #475569; cursor: text;
}
.wlp__find:focus-within { border-color: var(--wlp-ac); box-shadow: 0 0 0 3px rgba(13, 148, 136, .15); }
.wlp__find input { flex: 1 1 auto; min-width: 0; height: 40px; border: 0; outline: 0; background: transparent; color: #0f172a; font: inherit; font-size: 16px; }
.wlp__find input::placeholder { color: #64748b; }
.wlp__list {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 8px;
	max-height: 360px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 2px 2px 0;
}
.wlp__it {
	min-height: 54px; padding: 8px 12px; border: 1px solid var(--wlp-line); border-radius: 12px; background: #fff; color: #0f172a;
	display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1px; text-align: left; font: inherit; cursor: pointer;
	transition: background .15s, border-color .15s;
}
.wlp__it b { font-size: 16px; font-weight: 800; color: #0f172a; word-break: keep-all; }
.wlp__it small { font-size: 13.5px; font-weight: 600; color: #475569; word-break: keep-all; }
.wlp__it:hover { border-color: var(--wlp-ac); background: var(--wlp-soft); }
.wlp__it.is-on { border-color: var(--wlp-ac); background: var(--wlp-ac); }
.wlp__it.is-on b, .wlp__it.is-on small { color: #fff; }
.wlp button:focus-visible { outline: 3px solid var(--wlp-ac); outline-offset: 2px; }

/* 안내 · 빈 목록 · 오류 */
.wlp__msg { margin: 6px 0 0; padding: 12px; text-align: center; color: #475569; font-size: 15px; }
.wlp__msg.is-err { color: #b91c1c; }
.wlp__acts { display: flex; justify-content: center; padding-top: 4px; }
.wlp__empty { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px; border: 1px dashed #cbd5e1; border-radius: 12px; background: #f8fafc; }
.wlp__empty > i { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: #475569; border: 1px solid var(--wlp-line); }
.wlp__empty p { flex: 1 1 200px; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.wlp__empty p b { font-size: 16px; font-weight: 800; color: #0f172a; }
.wlp__empty p span { font-size: 14.5px; color: #475569; }
.wlp__go {
	min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--wlp-ac); color: #fff;
	display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 15px; font-weight: 750; cursor: pointer; white-space: nowrap;
}
.wlp__go:hover { background: var(--wlp-ac2); }

/* 고른 뒤 — 고른 분만 진하게, 나머지는 못 누름 */
.wlp.is-done .wlp__tab:not(.is-on), .wlp.is-done .wlp__it:not(.is-on), .wlp.is-done .wlp__go, .wlp.is-done .wlp__find { opacity: .5; }
.wlp button:disabled, .wlp input:disabled { cursor: default; }
.wlp.is-done .wlp__tab:hover:not(.is-on), .wlp.is-done .wlp__it:hover:not(.is-on) { background: #fff; border-color: var(--wlp-line); }

/* 폰 — 두 칸 목록 · 찾기 칸은 한 줄 전체 · 목록 높이는 화면 반 */
@media screen and (max-width: 1024px), print and (max-width: 768px) {
	.wlp { max-width: none; }
	.wlp__h { padding: 10px 12px; }
	.wlp__seg { padding: 10px 12px; }
	.wlp__tab { font-size: 15.5px; gap: 6px; padding: 8px 6px; }
	.wlp__body { padding: 0 12px 12px; }
	.wlp__bar { flex-wrap: wrap; }
	.wlp__find { flex: 1 1 100%; margin-left: 0; }
	.wlp__list { grid-template-columns: 1fr 1fr; max-height: 52dvh; }
}
@media (prefers-reduced-motion: reduce) { .wlp__tab, .wlp__it { transition: none; } }
