/* ANPI — 고령자·가족용 밝고 큰 글씨 UI(본문 19px · 글자 대비 7:1 이상 · 터치 영역 48px 이상)
   색 대비(흰 바탕 기준): --ink #161616 ≈ 18:1 · --ink2 #383838 ≈ 11.6:1 · --brand #0b4f8a ≈ 8.4:1 · 상태 칩은 옅은 바탕 + 진한 글자(모두 7:1 이상) */
:root {
  --bg: #fbf9f4;
  --surface: #ffffff;
  --soft: #f3efe6;
  --ink: #161616;
  --ink2: #383838;
  --line: #cfc9bc;
  --brand: #0b4f8a;
  --brand-ink: #ffffff;
  --brand-soft: #e3eef8;
  --warm: #f6d9a8;
  --ok-bg: #d7f0dc; --ok-ink: #0d3b1c;
  --watch-bg: #fdecb8; --watch-ink: #3d2c00;
  --alert-bg: #fbd5d1; --alert-ink: #5c0b06;
  --missed-bg: #e2e2e2; --missed-ink: #1e1e1e;
  --pending-bg: #e3eef8; --pending-ink: #0a3358;
  --focus: #b45309;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 6px 18px rgba(0, 0, 0, .05);
  --font: 'BIZ UDPGothic', system-ui, -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP', 'Noto Sans', 'Segoe UI', 'Yu Gothic UI', Meiryo, sans-serif;
}
* { box-sizing: border-box; }
html { font-size: 19px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.75; min-height: 100vh; display: flex; flex-direction: column; }
/* 한국어는 낱말(어절) 단위로 줄바꿈(「켜 / 기」처럼 낱말 가운데서 끊지 않게) — 넘칠 때만 낱말 안에서 */
html:lang(ko) body { word-break: keep-all; overflow-wrap: break-word; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: 2rem; letter-spacing: .01em; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.muted { color: var(--ink2); }
.small { font-size: .9rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
[hidden] { display: none !important; }

/* ── 상단 ── */
.top { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 14px; min-height: 68px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand b { font-size: 1.3rem; letter-spacing: .06em; }
.brand .sub { font-size: .8rem; color: var(--ink2); line-height: 1.3; display: block; }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.nav a { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .92rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--brand-soft); color: var(--brand); }
.lang { display: inline-flex; align-items: center; gap: 6px; }
.lang select { font: inherit; font-size: .9rem; padding: 8px 10px; min-height: 44px; border: 2px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); max-width: 11em; }

/* ── 버튼 · 입력 ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: 1rem; padding: 12px 22px; min-height: 52px; border-radius: 12px; border: 2px solid var(--brand); background: var(--brand); color: var(--brand-ink); text-decoration: none; cursor: pointer; line-height: 1.3; text-align: center; }
.btn:hover { background: #083c6a; border-color: #083c6a; color: #fff; }
.btn.ghost { background: var(--surface); color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn.danger { background: var(--surface); color: #7a0d06; border-color: #7a0d06; }
.btn.danger:hover { background: var(--alert-bg); }
.btn.small { font-size: .9rem; padding: 8px 14px; min-height: 44px; }
.btn[disabled], .btn.is-soon { background: #e9e6df; border-color: #bdb7aa; color: #2c2c2c; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
label.field { display: block; margin: 0 0 16px; font-weight: 700; }
label.field > span { display: block; margin-bottom: 6px; }
.field small, .hint { display: block; font-weight: 400; color: var(--ink2); font-size: .88rem; margin-top: 4px; }
input[type="text"], input[type="email"], input[type="time"], select, textarea { font: inherit; font-size: 1rem; width: 100%; padding: 11px 14px; min-height: 52px; border: 2px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { border-color: var(--brand); outline: 3px solid rgba(11, 79, 138, .2); }
.check { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; min-height: 48px; }
.check input { width: 26px; height: 26px; accent-color: var(--brand); }
.days { display: flex; flex-wrap: wrap; gap: 8px; }
.days label { display: inline-flex; align-items: center; gap: 6px; border: 2px solid var(--line); border-radius: 10px; padding: 6px 12px; min-height: 48px; cursor: pointer; background: #fff; }
.days input { width: 22px; height: 22px; accent-color: var(--brand); }

/* ── 카드 · 섹션 ── */
main { flex: 1; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; }
.card + .card { margin-top: 20px; }
.card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid > * { min-width: 0; }
.notice { border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; background: var(--watch-bg); color: var(--watch-ink); border: 1px solid #e3c766; font-size: .95rem; }
.notice.info { background: var(--brand-soft); color: #0a3358; border-color: #9cc0e2; }
.notice.bad { background: var(--alert-bg); color: var(--alert-ink); border-color: #e7a19a; }
.notice.good { background: var(--ok-bg); color: var(--ok-ink); border-color: #91cf9e; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--soft); color: var(--ink); border: 1px solid var(--line); vertical-align: middle; line-height: 1.6; }
.badge.prem { background: #fff1d6; color: #4a2f00; border-color: #e0b866; }
.badge.soon { background: #ece9e2; color: #2c2c2c; }

/* ── 랜딩 ── */
.hero { background: linear-gradient(180deg, #fff7e8 0%, var(--bg) 100%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; gap: 32px; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero h1 { font-size: 2.2rem; }
.hero .lead { font-size: 1.12rem; color: var(--ink2); }
.chat { background: #8cabd9; border-radius: 22px; padding: 18px; box-shadow: var(--shadow); max-width: 420px; justify-self: center; width: 100%; }
.chat .head { color: #0c1d33; font-weight: 700; font-size: .85rem; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.chat .head img { width: 28px; height: 28px; border-radius: 50%; background: #fff; }
.bubble { background: #fff; color: #161616; border-radius: 18px; padding: 10px 14px; margin: 0 0 10px; max-width: 88%; font-size: .95rem; line-height: 1.6; }
.bubble.me { background: #a5e98d; color: #0f2a07; margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.chips span { background: #fff; color: #0a3358; border: 2px solid #0a3358; border-radius: 999px; padding: 4px 12px; font-size: .85rem; font-weight: 700; }
.band { padding: 56px 0; }
.band.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps { counter-reset: s; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; min-width: 0; }
.steps li::before { counter-increment: s; content: counter(s); display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; margin-bottom: 10px; }
.feat { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.feat > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; min-width: 0; }
.feat .ico { font-size: 1.6rem; line-height: 1; display: block; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .95rem; }
table.cmp th, table.cmp td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.cmp thead th { background: var(--soft); }
table.cmp th[scope="row"] { font-weight: 700; width: 34%; }
table.cmp tr:last-child th, table.cmp tr:last-child td { border-bottom: 0; }
.prices { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); margin: 24px 0; }
.price { background: var(--surface); border: 2px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.price.best { border-color: var(--brand); }
.price .amt { font-size: 1.9rem; font-weight: 700; line-height: 1.2; }
.price .per { font-size: 1rem; color: var(--ink2); font-weight: 400; }
.price .btn { margin-top: auto; }
.safety { border-left: 6px solid #b45309; background: #fff8ec; padding: 18px 22px; border-radius: 0 12px 12px 0; }
.safety ul { margin: 0; padding-left: 1.2em; }

/* ── 정적 SEO 본문 ── */
section.seo { padding: 48px 0 24px; }
section.seo .wrap { max-width: 860px; }
section.seo ol { padding-left: 1.4em; }
section.seo li { margin-bottom: .4em; }
.faq h3 { font-size: 1.05rem; margin: 1.3em 0 .3em; }
.faq p { color: var(--ink2); }

/* ── 대시보드 ── */
.dash-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin: 28px 0 18px; }
.dash-head h1 { margin: 0; font-size: 1.7rem; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.tabs button { font: inherit; font-weight: 700; padding: 10px 16px; min-height: 48px; border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { border-color: var(--brand); background: var(--brand-soft); color: #0a3358; }
.status-line { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; font-size: 1.05rem; }
.state { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; padding: 6px 14px; border-radius: 999px; }
.state.ok, .chip.ok { background: var(--ok-bg); color: var(--ok-ink); }
.state.watch, .chip.watch { background: var(--watch-bg); color: var(--watch-ink); }
.state.alert, .chip.alert { background: var(--alert-bg); color: var(--alert-ink); }
.state.missed, .chip.missed { background: var(--missed-bg); color: var(--missed-ink); }
.state.pending, .chip.pending { background: var(--pending-bg); color: var(--pending-ink); }
.chip { display: inline-block; padding: 1px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 12px 0 0; }
.kv dt { color: var(--ink2); }
.kv dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 10px 0 12px; }
.cal .d { border-radius: 10px; min-height: 58px; padding: 4px 6px; font-size: .78rem; line-height: 1.3; border: 1px solid var(--line); background: #fff; color: var(--ink); display: flex; flex-direction: column; min-width: 0; }
.cal .d b { font-size: .95rem; }
.cal .d .m { font-size: 1rem; font-weight: 700; margin-top: auto; }
.cal .d.ok { background: var(--ok-bg); color: var(--ok-ink); border-color: #91cf9e; }
.cal .d.watch { background: var(--watch-bg); color: var(--watch-ink); border-color: #e3c766; }
.cal .d.alert { background: var(--alert-bg); color: var(--alert-ink); border-color: #e7a19a; }
.cal .d.missed { background: var(--missed-bg); color: var(--missed-ink); border-color: #a9a9a9; }
.cal .d.pending { background: var(--pending-bg); color: var(--pending-ink); border-color: #9cc0e2; }
.cal .d.today { outline: 3px solid var(--brand); outline-offset: -1px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.list li:last-child { border-bottom: 0; }
.list .when { font-variant-numeric: tabular-nums; color: var(--ink2); min-width: 9.5em; }
.list .what { flex: 1 1 14em; min-width: 0; overflow-wrap: anywhere; }
.watcher { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 12px; background: #fff; }
.watcher.inactive { background: #f1efea; }
.watcher .row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.watcher .name { font-weight: 700; font-size: 1.05rem; }
.code { font-family: Consolas, Menlo, 'BIZ UDGothic', monospace; font-weight: 700; letter-spacing: .08em; background: var(--soft); padding: 2px 8px; border-radius: 8px; border: 1px solid var(--line); }
.invite { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.invite .big { font-size: 2.4rem; letter-spacing: .18em; font-weight: 700; font-family: Consolas, Menlo, monospace; }
.qr { width: 196px; height: 196px; background: #fff; padding: 8px; border: 1px solid var(--line); border-radius: 12px; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .85rem; color: var(--ink2); }
.qr canvas, .qr img { width: 180px !important; height: 180px !important; }
details.more { margin-top: 12px; }
details.more summary { cursor: pointer; font-weight: 700; color: var(--brand); min-height: 44px; display: flex; align-items: center; }
.form-grid { display: grid; gap: 0 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.form-grid > * { min-width: 0; }

/* ── 토스트 ── */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #161616; color: #fff; padding: 14px 22px; border-radius: 12px; font-weight: 700; z-index: 50; max-width: calc(100% - 32px); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .2s; }
.toast.on { opacity: 1; }

/* ── 푸터 ── */
.foot { background: #1d2a38; color: #f1f1f1; margin-top: 56px; padding: 32px 0 40px; font-size: .9rem; }
.foot a { color: #ffffff; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.foot nav a { min-height: 44px; display: inline-flex; align-items: center; }
.foot p { margin: 0 0 6px; color: #e2e2e2; }
.foot .warn { color: #ffe1b3; font-weight: 700; }

@media (max-width: 820px) {
  html { font-size: 18px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 32px; padding-bottom: 32px; }
  .hero h1 { font-size: 1.75rem; }
  h1 { font-size: 1.65rem; }
  .card { padding: 18px; }
  .invite { grid-template-columns: minmax(0, 1fr); }
  .nav { margin-left: 0; width: 100%; order: 3; gap: 2px; }
  .nav a { padding: 6px 10px; }
  .top .wrap { gap: 6px 10px; padding-top: 6px; padding-bottom: 6px; }
  .lang { margin-left: auto; }
  .brand { flex: 1 1 0; }
  .brand > span { min-width: 0; }
  .brand .sub { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lang select { max-width: 8.5em; font-size: .85rem; }
  .band { padding: 40px 0; }
  .cal .d { min-height: 50px; padding: 3px 4px; font-size: .72rem; }
  .cal .d b { font-size: .82rem; letter-spacing: -.02em; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .kv dd { margin-bottom: 8px; }
}

/* ── LINE 등록 안내(/line) · 랜딩 링크 · 대시보드 안내 링크 ── */
.how-more { margin: 22px 0 0; }
.how-more a { font-weight: 700; display: inline-flex; align-items: center; min-height: 48px; }
.inv-guide { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.inv-guide .field { margin: 12px 0 0; }
/* 러시아어 · 독일어의 긴 낱말(19px)이 390px 화면을 넘지 않게 — 넘칠 때만 낱말 안에서 줄바꿈 */
.ln { overflow-wrap: break-word; }
.ln-head { margin: 28px 0 20px; }
.ln .lead { font-size: 1.1rem; color: var(--ink2); }
.ln-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.ln-steps > .card + .card { margin-top: 0; }
.ln-step h2 { flex-wrap: nowrap; align-items: center; }
.ln-step h2 > span:last-child { min-width: 0; }
.ln-num { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 1.2rem; flex: none; }
.ln-row { display: grid; gap: 12px 28px; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.ln-row > * { min-width: 0; }
.ln-qr { margin: 0; text-align: center; width: 236px; }
.ln-qr img { display: block; width: 220px; height: 220px; margin: 0 auto 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.ln-qr .qr { margin: 0 auto 8px; }
.ln-qr figcaption { font-size: 1em; color: var(--ink2); line-height: 1.5; }
.btn.big { font-size: 1.15rem; min-height: 64px; padding: 14px 28px; min-width: min(100%, 15em); }
.ln-code-lbl { margin: 0; font-weight: 700; }
.ln-code { display: inline-block; margin: 4px 0 16px; padding: 8px 8px 8px 20px; font-family: Consolas, Menlo, 'BIZ UDGothic', monospace; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 3.2rem; letter-spacing: .2em; line-height: 1.15; color: var(--ink); background: var(--soft); border: 2px dashed #6f6858; border-radius: 14px; }
.ln-copybox { margin: 14px 0 0; max-width: 16em; }
.ln-copybox input { font-family: Consolas, Menlo, monospace; font-size: 1.3rem; letter-spacing: .12em; }
/* 이 페이지는 보조 문구도 본문과 같은 크기(19px 이상) — 색으로만 구분 */
.ln .hint, .ln .notice { font-size: 1em; }
.ln-step .btn-row { margin-bottom: 12px; }
/* ③ 응답 버튼은 LINE 대화 화면 그림 안에(랜딩 .chat 과 같은 모양) — 이 페이지의 버튼과 헷갈리지 않게 */
.ln-chat { margin: 4px 0 18px; max-width: 460px; box-shadow: none; }
.ln-chat .head, .ln-chat .bubble, .ln-chat figcaption { font-size: 1em; }
.ln-chat .bubble { margin-bottom: 8px; }
.ln-chat figcaption { color: #0c1d33; line-height: 1.5; }
.ln-chips { margin: 0 0 10px; }
.ln-chips span { font-size: 1em; padding: 4px 14px; cursor: default; }
.ln-help h3 { font-size: 1.1rem; margin: 1.1em 0 .3em; }
.ln-help h2 + div h3 { margin-top: .3em; }
.ln-howqr { padding-left: 1.4em; margin: 0 0 1em; }
.ln-howqr li { margin-bottom: .3em; }
.ln-help a { display: inline-flex; align-items: center; min-height: 48px; font-weight: 700; }
.print-only { display: none; }
.ln-print { margin-top: 20px; }
@media (max-width: 820px) {
  /* 전역 모바일 18px 대신 이 페이지 본문은 19px */
  .ln { font-size: 1.0556rem; }
  .ln .btn { font-size: 1em; }
  .ln .btn.big { font-size: 1.15em; }
  .ln-row { grid-template-columns: minmax(0, 1fr); }
  .ln-qr { width: auto; }
  .ln-code { font-size: 2.6rem; letter-spacing: .16em; padding-left: 16px; }
  .btn.big { width: 100%; }
  .ln-num { width: 40px; height: 40px; }
}

/* 인쇄: 단계 · 친구 추가 QR · 초대 코드(+ 코드 QR) · QR 읽는 법 · 서비스 주소와 문의 방법을 A4 한 장에 — 버튼 · 머리글 · 푸터 · 가족 안내는 뺀다
   글자는 모두 rem(= html 인쇄 크기) 기준. 언어마다 A4 한 장(본문 높이의 약 95% 이하)에 들어가는 가장 큰 값 —
   zh · th 14pt · ja 13.5pt · 기본 13pt · pt · nl 12.5pt · de 12pt(13개 언어 × 코드 있음/없음을 A4 인쇄 미리보기로 재서 정함) */
@media print {
  @page { size: A4; margin: 10mm 12mm; }
  html { font-size: 13pt; }
  html:lang(zh), html:lang(th) { font-size: 14pt; }
  html:lang(ja) { font-size: 13.5pt; }
  html:lang(pt), html:lang(nl) { font-size: 12.5pt; }
  html:lang(de) { font-size: 12pt; }
  /* BIZ UDPGothic 의 키릴 문자는 전각 폭이라 종이에서 줄이 크게 늘어난다 — 러시아어는 라틴 · 키릴 글꼴로 */
  html:lang(ru) body { font-family: 'Segoe UI', Roboto, 'Noto Sans', 'Helvetica Neue', Arial, sans-serif; }
  body { background: #fff; display: block; min-height: 0; line-height: 1.35; }
  .top, .foot, .toast, .lsg, .no-print, .ln .btn, .ln-chat .head { display: none !important; }
  .print-only { display: block; }
  main .wrap { max-width: none; padding: 0; }
  .ln { font-size: 1rem; }
  .ln-paper { margin: 0 0 2px !important; font-size: .9rem; color: #222; }
  .ln-paper b { font-size: 1.15rem; letter-spacing: .06em; }
  .ln-head { margin: 0 0 6px; }
  .ln-head h1 { font-size: 1.45rem; margin: 0 0 2px; }
  .ln .lead { font-size: 1rem; margin: 0 0 2px; color: #222; }
  .ln p { margin: 0 0 .25em; }
  .ln-steps { gap: 5px; }
  .ln .card { box-shadow: none; border: 1.5px solid #555; border-radius: 10px; padding: 5px 12px 6px; break-inside: avoid; }
  .ln-help { margin-top: 5px; }
  .ln-howqr { columns: 2; column-gap: 24px; margin: 0; }
  .ln-howqr li { margin: 0 0 .1em; break-inside: avoid; }
  .ln-step h2, .ln-help h2 { font-size: 1.2rem; margin-bottom: 1px; }
  .ln-help h3 { font-size: 1.05rem; margin: .35em 0 1px; }
  .ln-help h2 + div h3 { margin-top: 0; }
  .ln-num { width: 1.8rem; height: 1.8rem; font-size: 1.05rem; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ln-row { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; }
  .ln-qr { width: 38mm; }
  .ln-qr img { width: 31mm; height: 31mm; padding: 1mm; margin-bottom: 2px; }
  .ln-qr .qr { width: 31mm; height: 31mm; padding: 2mm; margin-bottom: 2px; }
  .ln-qr .qr canvas, .ln-qr .qr img { width: 27mm !important; height: 27mm !important; border: 0; padding: 0; margin: 0; }
  .ln-qr figcaption { font-size: .9rem; line-height: 1.3; color: #222; }
  /* ② 는 종이에서 코드 옆에 「코드 QR + 설명」을 나란히(세로 길이 절약) */
  #st2 .ln-row { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  #codeQrWrap { width: auto; display: grid; grid-template-columns: 31mm minmax(0, 1fr); gap: 10px; align-items: center; text-align: left; }
  #codeQrWrap .qr { margin: 0; }
  .ln-code { font-size: 2.1rem; margin: 2px 0 2px; padding: 0 4px 0 12px; }
  /* ③ 대화 그림: 종이에서는 누를 수 없으니 응답 버튼 글자만 한 줄로(그림 틀 · 말풍선 · 설명은 뺀다) */
  .ln-chat { background: none; border: 0; border-radius: 0; padding: 0; margin: 2px 0 4px; max-width: none; }
  .ln-chat .bubble, .ln-chat figcaption { display: none; }
  .ln-chips { margin: 0; gap: 6px; }
  .ln-chips span { font-size: 1rem; padding: 0 10px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .ln .hint { font-size: 1rem; margin-top: 0; }
  .ln a { color: inherit; text-decoration: none; }
  .ln-help a { min-height: 0; }
}

/* ── 카카오톡(/kakao 안내 · /k/consent 동의 · /k/reply 답장 · /k/result 결과 · 대시보드 연결 링크) ──
   카카오 버튼 = 카카오 노랑 #FEE500 + 글자 #191919(대비 ≈ 13.8:1) · 답장 버튼(초록 · 갈색 · 빨강)은 흰 글자 대비 7:1 이상 */
.btn.kakao { background: #fee500; border-color: #fee500; color: #191919; }
.btn.kakao:hover { background: #f2da00; border-color: #e0c900; color: #191919; }
.k-chat { background: #b2c7d9; }
.k-chat .k-tpl { background: #fff; border-radius: 16px; overflow: hidden; max-width: 340px; margin: 0 0 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.k-chat .k-tpl-txt { margin: 0; padding: 12px 16px; font-size: 1em; color: #161616; line-height: 1.6; }
.k-chat .k-tpl-btn { display: block; border-top: 1px solid #e3e3e3; padding: 10px 12px; text-align: center; font-weight: 700; color: #191919; cursor: default; }
.k-chat figcaption { color: #0c1d33; line-height: 1.5; }
.k-page .card h1 { font-size: 1.7rem; }
.k-big { font-size: 1.35rem; font-weight: 700; line-height: 1.55; }
.k-reply-txt { font-size: 1.25rem; line-height: 1.7; white-space: pre-line; margin: 0 0 18px; }
.kc-list { padding-left: 1.3em; margin: 0 0 18px; }
.kc-list li { margin-bottom: .7em; }
.ans-btns { display: grid; gap: 14px; margin: 18px 0 22px; }
.ans-btns .btn { width: 100%; min-height: 72px; font-size: 1.3rem; }
.ans-btns .btn.ok { background: #0d5c2c; border-color: #0d5c2c; color: #fff; }
.ans-btns .btn.tired { background: #6b4e00; border-color: #6b4e00; color: #fff; }
.ans-btns .btn.unwell { background: #7a0d06; border-color: #7a0d06; color: #fff; }
.ans-btns .btn.ok:hover, .ans-btns .btn.tired:hover, .ans-btns .btn.unwell:hover { filter: brightness(1.12); }
.ans-btns .btn.ghost { background: var(--surface); color: var(--brand); }
.btn.call119 { width: 100%; min-height: 76px; font-size: 1.45rem; background: #7a0d06; border-color: #7a0d06; color: #fff; }
.btn.call119:hover { background: #5c0904; border-color: #5c0904; color: #fff; }
.k-page textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.k-stop { margin: 30px 0 0; text-align: center; }
.k-stop button { background: none; border: 0; padding: 8px 12px; min-height: 48px; font: inherit; color: var(--ink2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.k-nick { font-weight: 700; }
.k-row { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
@media (max-width: 820px) {
  .k-page .card h1 { font-size: 1.5rem; }
  .k-big { font-size: 1.25rem; }
  .ans-btns .btn { font-size: 1.2rem; }
}
@media print {
  .k-chat { background: none; border: 0; padding: 0; margin: 2px 0 4px; max-width: none; }
  .k-chat .k-tpl, .k-chat figcaption { display: none; }
}
