/* GlowPass 화면 꾸밈 — 모바일 우선, 밝은 핑크 톤 */
:root {
  --bg: #fff7f8; --card: #ffffff; --ink: #2a2230; --muted: #7a6f80;
  --brand: #e2557a; --brand-soft: #fde4ea; --line: #f0dfe4; --warn: #c62828; --ok: #2e7d32;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "Apple SD Gothic Neo", "PingFang SC", "Hiragino Sans", "Noto Sans", sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55; }
.topbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px;
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 2; }
.brand { font-weight: 800; color: var(--brand); text-decoration: none; font-size: 20px; }
select, input, textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  width: 100%; background: #fff; color: var(--ink); }
#lang { width: auto; }
main { max-width: 520px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin-bottom: 14px; }
h1 { font-size: 24px; margin: 8px 0 6px; } h2 { font-size: 18px; margin: 0 0 10px; }
.muted { color: var(--muted); font-size: 14px; }
.btn { display: block; width: 100%; padding: 13px; border-radius: 12px; border: 0; background: var(--brand);
  color: #fff; font-weight: 700; font-size: 16px; cursor: pointer; text-align: center; text-decoration: none; margin-top: 10px; }
.btn.secondary { background: var(--brand-soft); color: var(--brand); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; font-size: 14px; font-weight: 600; margin: 12px 0 4px; }
.row { display: flex; gap: 8px; } .row > * { flex: 1; }
.langs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.langs button { padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: #fff; font-size: 16px; cursor: pointer; }
.langs button.on { border-color: var(--brand); background: var(--brand-soft); font-weight: 700; }
.item { border-top: 1px solid var(--line); padding: 10px 0; } .item:first-child { border-top: 0; }
.drug { background: var(--bg); border-radius: 12px; padding: 10px; margin-top: 8px; }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs button { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.tabs button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.steps li { margin: 6px 0; } .steps li.done { color: var(--ok); } .steps li.now { font-weight: 700; }
.bar { height: 8px; background: var(--brand-soft); border-radius: 8px; overflow: hidden; }
.bar > div { height: 100%; background: var(--brand); transition: width .4s; }
.notice { background: #fff3e0; border-radius: 12px; padding: 12px; font-size: 14px; }
.error { color: var(--warn); font-size: 14px; margin-top: 8px; min-height: 1em; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 18px 16px 28px; }
a { color: var(--brand); }
/* 챗봇 (FR-04) */
.chatlog { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; max-height: 55vh; overflow-y: auto; }
.msg { padding: 10px 12px; border-radius: 14px; max-width: 88%; white-space: pre-wrap; word-break: break-word; font-size: 15px; }
.msg.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.bot.emergency, .msg.bot.error { border-color: var(--warn); color: var(--warn); }
.msg.bot.blocked, .msg.bot.no_doc, .msg.bot.limit { background: #fff3e0; }
.chatform { display: flex; gap: 8px; align-items: flex-end; } .chatform .btn { width: auto; margin: 0; padding: 12px 16px; white-space: nowrap; }
.srcs { margin-top: 6px; font-size: 12px; color: var(--muted); } .srcs .badge { margin: 2px 4px 0 0; }
.small { font-size: 12px; }
.emergency { background: #ffebee; border: 2px solid var(--warn); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.emergency strong { color: var(--warn); font-size: 18px; }
.btn.danger { background: var(--warn); }
/* 👍/👎 피드백 */
.feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.feedback > button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; cursor: pointer; font-size: 16px; }
.feedback > button.on { border-color: var(--brand); background: var(--brand-soft); }
.feedback .reasons { display: flex; flex-wrap: wrap; gap: 6px; width: 100%; }
.feedback .reasons button { border: 1px solid var(--line); background: var(--bg); border-radius: 999px; padding: 4px 10px; font-size: 13px; cursor: pointer; }
/* 병원 문의 카드 */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 12px; font-size: 14px; cursor: pointer; }
.chip.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip.warn { border-color: #f3b4b4; }
.chip.warn.on { background: var(--warn); border-color: var(--warn); }
.staff-card { white-space: pre-wrap; word-break: keep-all; background: #fff; border: 2px solid var(--brand); border-radius: 12px;
  padding: 14px; font: inherit; font-size: 17px; line-height: 1.6; margin: 8px 0 0; }
.staff-card.mine { border-style: dashed; font-size: 14px; }
details summary { cursor: pointer; color: var(--brand); margin-top: 10px; }
.warn-box { border: 1px solid #f3b4b4; margin-bottom: 12px; }
.warn-box .btn { margin-top: 8px; }
.check { display: flex; align-items: center; gap: 6px; font-weight: 400; }
.check input { width: auto; }
/* 감수 전 데모 운영 띠 · 표시 */
.demo-banner { background: #fff3e0; color: #7a4a00; border-bottom: 1px solid #f5d29a; padding: 8px 16px; font-size: 13px; text-align: center; }
.badge-warn { background: #fff3e0; color: #7a4a00; }
/* 알림 토스트 (복약 알림 시각이 되면 화면 아래에 잠깐) */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 12px 18px; border-radius: 12px; font-size: 14px; z-index: 10; max-width: 90vw; box-shadow: 0 4px 16px rgba(0,0,0,.2); }
.item.urgent { border-left: 4px solid #c4553a; padding-left: 10px; }  /* 위험 신호에서 넘어온 요청 — 접수대에서 먼저 보이게 */
