:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f0f2f5; --line: #e2e5ea;
  --text: #1b1f24; --muted: #5d6673; --brand: #2456d6; --brand-ink: #ffffff;
  --pass: #157a43; --pass-bg: #e3f4ea; --fail: #b42318; --fail-bg: #fdeceb;
  --check: #9a6100; --check-bg: #fff4dc; --missing: #5d6673; --missing-bg: #eef0f3;
  --radius: 14px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --float: 0 12px 40px rgba(16,24,40,.18);
  color-scheme: light; /* 라이트 모드만 사용 */
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden;
  font: 15px/1.6 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", sans-serif; }
button { font: inherit; cursor: pointer; }
a { color: var(--brand); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.logo { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px;
  background: var(--brand); color: var(--brand-ink); font-weight: 800; flex: none; }
.logo.sm { width: 30px; height: 30px; font-size: 14px; }
.primary { background: var(--brand); color: var(--brand-ink); border: 0; border-radius: 12px; padding: 10px 18px; font-weight: 700; text-decoration: none; }
.ghost { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 7px 12px; text-decoration: none; }
.small { font-size: 13px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); border-radius: 8px; padding: 4px 8px; font-size: 14px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* ===== 앱 컬럼 (휴대폰 폭) ===== */
.app { height: 100dvh; width: min(480px, 100%); margin: 0 auto; display: flex; flex-direction: column; background: var(--surface); }
@media (min-width: 560px) { .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); } }
.topbar { padding: 12px 16px 6px; display: flex; flex-direction: column; gap: 8px; }
.brand { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.cats { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar, .tray::-webkit-scrollbar { display: none; }
.cat { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 3px 12px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.cat.on { background: var(--text); color: var(--surface); border-color: var(--text); }

/* ===== 스토리 트레이 ===== */
.tray { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 8px 16px 10px; border-bottom: 1px solid var(--line); }
.ring-item { flex: none; width: 68px; border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text); }
.ring-item small { width: 100%; font-size: 11px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ring { position: relative; width: 62px; height: 62px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 210deg, #2456d6, #7a5cff, #e0245e, #f6a03c, #2456d6); }
.ring.seen { background: var(--line); }
.ring.FAIL { opacity: .55; }
.ring-item.on .ring { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.avatar { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; font-size: 26px; border: 3px solid var(--surface); background: var(--surface-2); }
.avatar.sm { width: 34px; height: 34px; font-size: 17px; border-width: 2px; flex: none; }
.ring-item.me .plus { position: absolute; right: -1px; bottom: -1px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); color: #fff;
  border: 2px solid var(--surface); display: grid; place-items: center; font-size: 14px; font-weight: 800; line-height: 1; }

/* ===== 스토리 뷰어 ===== */
.viewer { position: relative; flex: 1; min-height: 0; margin: 10px 10px 12px; border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; padding: 12px 16px 12px; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.tone-home { background: linear-gradient(180deg, #cfdcff 0%, #eef2ff 60%, #ffffff 100%); }
.tone-save { background: linear-gradient(180deg, #c9eed9 0%, #ecf9f1 60%, #ffffff 100%); }
.tone-job  { background: linear-gradient(180deg, #ffdcb8 0%, #fff3e6 60%, #ffffff 100%); }
.tone-intro { background: linear-gradient(180deg, #e2dbff 0%, #f4f1ff 60%, #ffffff 100%); }
.loading { margin: auto; color: var(--muted); }
.bars { display: flex; gap: 4px; position: relative; z-index: 2; }
.bars span { flex: 1; height: 3px; border-radius: 2px; background: rgba(27,31,36,.18); overflow: hidden; }
.bars i { display: block; height: 100%; background: var(--text); }
.story-head { display: flex; align-items: center; gap: 8px; margin-top: 10px; position: relative; z-index: 2; }
.sh-text { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.sh-text b { font-size: 14px; } .sh-text small { font-size: 12px; color: var(--muted); }
.pause { color: var(--text); display: grid; place-items: center; }
.tap-zones { position: absolute; inset: 0; display: flex; z-index: 1; }
.tz { flex: 1; } .tz.next { flex: 2; }
.viewer.held .slide { opacity: .85; }

.slide { position: relative; z-index: 1; flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 8px 4px; pointer-events: none; }
.slide button { pointer-events: auto; }
.slide.cover { align-items: center; text-align: center; }
.big-emoji { font-size: 76px; line-height: 1; filter: drop-shadow(0 8px 16px rgba(0,0,0,.14)); }
.chip { font-size: 12px; font-weight: 700; background: var(--text); color: var(--surface); border-radius: 999px; padding: 2px 10px; }
.slide h2 { margin: 0; font-size: 26px; line-height: 1.3; word-break: keep-all; }
.slide .amount { margin: 0; font-size: clamp(20px, 5.5vw, 24px); font-weight: 800; color: var(--brand); word-break: keep-all; }
.pill { font-size: 13px; font-weight: 700; background: rgba(255,255,255,.88); border: 1px solid var(--line); border-radius: 999px; padding: 2px 12px; }
.eyebrow { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.why { background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 15px; }
.why b { display: block; font-size: 12px; color: var(--brand); }
.checks-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.checks-list li { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: rgba(255,255,255,.9); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; font-size: 14px; }
.who-line { margin: 0; font-size: 13px; color: var(--muted); }
.verdict-slide { align-items: stretch; }
.verdict-big { font-size: 26px; font-weight: 800; border-radius: 16px; padding: 14px 16px; text-align: center; }
.verdict-big.PASS { background: var(--pass-bg); color: var(--pass); } .verdict-big.FAIL { background: var(--fail-bg); color: var(--fail); }
.verdict-big.CHECK_REQUIRED { background: var(--check-bg); color: var(--check); } .verdict-big.MISSING { background: var(--missing-bg); color: var(--missing); }
.verdict-slide .reason { margin: 0; font-size: 15px; }
.slide-actions { display: flex; flex-direction: column; gap: 8px; }
.slide-actions .primary { padding: 12px; font-size: 15px; }
.slide.end { align-items: center; text-align: center; }
.slide.end p { margin: 0; color: var(--muted); }

.story-foot { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; padding-top: 8px; }
@media (max-width: 560px) { .story-foot { padding-right: 66px; } } /* 오른쪽 아래 챗봇 버튼 자리 */
.ask { flex: 1; text-align: left; border: 1px solid rgba(27,31,36,.25); background: rgba(255,255,255,.75); color: var(--text); border-radius: 999px; padding: 10px 14px; font-size: 14px; }
.foot-btn { font-size: 22px; color: var(--text); padding: 4px 6px; }
.foot-btn.saved { color: #e0245e; }

/* ===== 배지 / 공통 ===== */
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.badge.PASS { color: var(--pass); background: var(--pass-bg); }
.badge.FAIL { color: var(--fail); background: var(--fail-bg); }
.badge.CHECK_REQUIRED { color: var(--check); background: var(--check-bg); }
.badge.MISSING { color: var(--missing); background: var(--missing-bg); }
.sample { font-size: 11px; color: var(--check); border: 1px dashed var(--check); border-radius: 6px; padding: 0 6px; }
.section-title { font-size: 13px; font-weight: 700; color: var(--muted); margin: 0 0 10px; }

/* ===== 챗봇 런처 ===== */
.launcher { position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  border: 0; background: var(--brand); color: var(--brand-ink); box-shadow: var(--float); display: grid; place-items: center; transition: transform .2s; }
.launcher:hover { transform: scale(1.06); }
.launcher .ico-close { display: none; }
.launcher[aria-expanded="true"] .ico-chat { display: none; }
.launcher[aria-expanded="true"] .ico-close { display: block; }
.launcher-dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: #e0245e; border: 2px solid #fff; }

/* ===== 챗봇 패널 ===== */
.chat-panel { position: fixed; right: 20px; bottom: 92px; z-index: 50; width: 400px; height: min(680px, calc(100dvh - 120px));
  background: var(--surface); border-radius: 20px; box-shadow: var(--float); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; transform: translateY(24px) scale(.96); opacity: 0; visibility: hidden; pointer-events: none;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s, visibility 0s .28s; }
.chat-panel.open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s; }
@media (max-width: 560px) {
  .chat-panel { inset: 0; width: auto; height: auto; border-radius: 0; transform: translateY(100%); opacity: 1; }
  .chat-panel.open ~ .launcher, body.chat-open .launcher { display: none; }
}
.chat-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 12px 14px; border-bottom: 1px solid var(--line); }
.chat-title { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.chat-title small { color: var(--muted); font-size: 12px; }
.profile-pop { margin: 0; padding: 10px 16px; display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; font-size: 13px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.profile-pop dt { color: var(--muted); } .profile-pop dd { margin: 0; }
.log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font-size: 14px; }
.msg.bot { background: var(--surface-2); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--brand); color: var(--brand-ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.ai { background: #eef3ff; border: 1px solid #d5e0ff; }
.msg.typing { color: var(--muted); }
.msg.rich { white-space: normal; width: 88%; }
.msg.img { padding: 4px; background: var(--brand); }
.msg.img img { display: block; max-width: 180px; max-height: 240px; border-radius: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 8px; }
.chips:empty { display: none; }
.chip-btn { border: 1px solid var(--brand); color: var(--brand); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.chip-btn:hover { background: var(--brand); color: var(--brand-ink); }
.chip-btn.alt { border-color: var(--line); color: var(--muted); }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.composer textarea { flex: 1; resize: none; max-height: 120px; border: 1px solid var(--line); border-radius: 20px; padding: 9px 14px;
  background: var(--bg); color: var(--text); font: inherit; font-size: 14px; line-height: 1.45; }
.composer textarea:focus { outline: 2px solid var(--brand); border-color: transparent; }
.attach { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); cursor: pointer; flex: none; }
.attach:hover { background: var(--surface-2); color: var(--brand); }
.send { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; }

/* 채팅 안 결과 카드 */
.rlist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.rlist button { display: flex; justify-content: space-between; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); border-radius: 10px; padding: 8px 10px; font-size: 13px; font-weight: 600; }
.rlist button:hover { border-color: var(--brand); }
.vcard .vhead { font-weight: 800; padding: 8px 10px; border-radius: 10px; margin-bottom: 8px; }
.vhead.PASS { background: var(--pass-bg); color: var(--pass); } .vhead.FAIL { background: var(--fail-bg); color: var(--fail); }
.vhead.CHECK_REQUIRED { background: var(--check-bg); color: var(--check); } .vhead.MISSING { background: var(--missing-bg); color: var(--missing); }
.vclaims { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.vclaims li { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.vclaims .vrow { display: flex; justify-content: space-between; gap: 6px; font-weight: 700; }
.vclaims .vs { color: var(--muted); margin-top: 2px; }
.vclaims .vs b { color: var(--text); font-weight: 600; }
.vcard .primary { width: 100%; margin-top: 6px; font-size: 13px; }

/* ===== 상세 시트 ===== */
.sheet { position: fixed; inset: 0; z-index: 80; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(16,24,40,.38); animation: fade .2s; }
.sheet-panel { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); width: min(760px, 100%); max-height: 92dvh; overflow-y: auto;
  background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 22px 28px; animation: up .28s cubic-bezier(.2,.8,.2,1); }
.sheet-grip { width: 40px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 8px; }
.sheet-close { position: sticky; top: 0; float: right; background: var(--surface); }
@keyframes up { from { transform: translate(-50%, 100%); } }
@keyframes fade { from { opacity: 0; } }

/* 상세 내용 (조건 판정·신청 안내) */
.d-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: flex-start; }
.d-head h2 { margin: 0 0 2px; font-size: 22px; }
.d-head .agency { color: var(--muted); font-size: 13px; }
.block { margin-top: 20px; }
.callout { margin: 0 0 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.recipient { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 0; }
.recipient div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.recipient dt { font-size: 12px; color: var(--muted); } .recipient dd { margin: 2px 0 0; font-weight: 600; }
.conds { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cond { border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 10px 12px; }
.cond.PASS { border-left-color: var(--pass); } .cond.FAIL { border-left-color: var(--fail); }
.cond.CHECK_REQUIRED { border-left-color: var(--check); } .cond.MISSING { border-left-color: var(--missing); }
.cond-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.cond-top strong { font-size: 14px; }
.cond p { margin: 4px 0 0; font-size: 14px; }
.cond .how { color: var(--check); }
.src-btn { background: none; border: 0; padding: 0; margin-top: 4px; font-size: 12px; color: var(--brand); }
.undo-btn { margin-left: 14px; color: var(--muted); }
.src { margin: 6px 0 0; padding: 8px 10px; border-left: 3px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--muted); border-radius: 0 6px 6px 0; }
.confirm-btn { margin-top: 8px; border: 1px solid var(--pass); color: var(--pass); background: transparent; border-radius: 8px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.confirm-btn:hover { background: var(--pass); color: var(--surface); }
.total { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-weight: 700; }
.total.FAIL { background: var(--fail-bg); color: var(--fail); }
.total.PASS { background: var(--pass-bg); color: var(--pass); }
.total.CHECK_REQUIRED { background: var(--check-bg); color: var(--check); }
.total.MISSING { background: var(--missing-bg); color: var(--missing); }
.checks li { margin-bottom: 6px; }
ul.plain { margin: 0; padding-left: 18px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: 12px; }
.steps { padding-left: 0; list-style: none; counter-reset: s; margin: 0; }
.steps li { counter-increment: s; position: relative; padding: 6px 0 6px 38px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 6px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.apply { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 20px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.apply small { color: var(--muted); flex-basis: 100%; }
.alt-block { padding: 14px; border-radius: 12px; border: 1px solid var(--brand); }
.alt-title { margin: 0 0 10px; font-weight: 700; color: var(--brand); }
.alt-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.card { text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface); color: var(--text); display: flex; flex-direction: column; gap: 6px; }
.card:hover { border-color: var(--brand); }
.card h3 { margin: 0; font-size: 15px; }
.card .sum { color: var(--muted); font-size: 13px; margin: 0; }
.card .meta { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--muted); gap: 6px; }
.detail-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.fineprint { color: var(--muted); font-size: 12px; margin-top: 20px; }

/* 토스트 */
.toast { position: fixed; left: 50%; top: 96px; transform: translateX(-50%); z-index: 90; background: var(--text); color: var(--surface);
  padding: 8px 16px; border-radius: 999px; font-size: 13px; box-shadow: var(--float); animation: fade .2s; }


/* 고지 문구 · 결과 카드 */
.notice { margin: 4px 0 0; font-size: 12px; color: var(--muted); }
.slide .summary { margin: 0; font-size: 14px; color: var(--muted); max-width: 320px; }
.rlist .rcard { display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; border: 1px solid var(--line);
  border-left-width: 4px; background: var(--surface); color: var(--text); border-radius: 10px; padding: 9px 10px; font-weight: 400; }
.rcard.PASS { border-left-color: var(--pass); } .rcard.FAIL { border-left-color: var(--fail); }
.rcard.CHECK_REQUIRED { border-left-color: var(--check); } .rcard.MISSING { border-left-color: var(--missing); }
.rtop { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; }
.rconds { display: flex; flex-wrap: wrap; gap: 4px; }
.rc { font-size: 11px; border-radius: 6px; padding: 1px 6px; background: var(--surface-2); }
.rc.PASS { color: var(--pass); background: var(--pass-bg); } .rc.FAIL { color: var(--fail); background: var(--fail-bg); }
.rc.CHECK_REQUIRED { color: var(--check); background: var(--check-bg); } .rc.MISSING { color: var(--missing); background: var(--missing-bg); }
.rsrc { font-size: 11px; color: var(--muted); }

/* 세로로 긴 화면 — 위아래로 드래그(스크롤)해서 보기 */
html, body { height: auto; }
.app { position: relative; height: auto; min-height: 100dvh; }
.topbar { position: sticky; top: 0; z-index: 4; background: var(--surface); }
.viewer { flex: none; height: max(calc(100dvh - 100px), 820px); touch-action: pan-y; }
.side-nav { display: none; }
@media (min-width: 760px) {
  .side-nav { display: grid; place-items: center; position: fixed; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
    border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 26px; line-height: 1; box-shadow: var(--shadow); z-index: 5; }
  .side-nav.left { left: calc(50% - 240px - 64px); } .side-nav.right { right: calc(50% - 240px - 64px); }
  .side-nav:hover { border-color: var(--text); }
}

/* 가독성: 서버가 보낸 줄바꿈(\n)을 그대로 보여준다 */
.pre { white-space: pre-line; }
.msg { line-height: 1.65; }
.cond p.pre { margin: 6px 0; line-height: 1.6; }

/* 스토리 표지 위계: 혜택 이름 > 금액 > 설명 */
.slide h2 { font-size: 28px; font-weight: 800; line-height: 1.3; }
.slide .amount { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 16px; font-weight: 700; color: var(--brand); line-height: 1.45; }
.amount .a-line { display: block; }
.amount .a-note { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted); margin-bottom: 2px; }
.slide .summary { font-size: 14px; line-height: 1.6; }
.why { line-height: 1.6; }
.who-line { line-height: 1.55; }
.who-line b { font-size: 12px; }
/* 상세 시트: 수혜자 정보 한 줄씩 */
.recipient .wide { grid-column: 1 / -1; }
.recipient dd { line-height: 1.55; }
.amount-dd { display: flex; flex-direction: column; font-weight: 700; }
.amount-dd .a-note { margin-bottom: 4px; }
.recipient dd.pre { font-weight: 400; }
.amount-dd .a-note { font-size: 12.5px; font-weight: 400; color: var(--muted); }

/* 상단 계정 영역 (로그인 / OOO님 · 로그아웃) */
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.login-link { color: var(--surface); background: var(--text); border-radius: 999px; padding: 4px 12px; font-weight: 700; text-decoration: none; }
.account .me { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prov { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.prov.kakao { background: #FEE500; box-shadow: 0 0 0 1px rgba(0,0,0,.25); } .prov.google { background: #4285F4; }
.logout { border: 0; background: none; color: var(--muted); font-size: 13px; padding: 2px 4px; }
.logout:hover { color: var(--text); text-decoration: underline; }

/* 계정 저장: 동의 카드 · 내 정보 삭제 */
.consent-text { margin: 6px 0 10px; font-size: 13px; line-height: 1.6; color: var(--text); }
.consent-actions { display: flex; gap: 8px; }
.consent-actions .small { padding: 7px 14px; font-size: 13px; }
.consent-done { font-size: 13px; font-weight: 600; color: var(--pass); }
.pf-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.pf-actions button { border: 1px solid var(--fail); color: var(--fail); background: var(--surface); border-radius: 8px; padding: 3px 10px; font-size: 12px; }

/* 브랜드 아이콘 이미지 (benefigate) */
img.logo { background: none; object-fit: cover; border-radius: 9px; display: block; }
img.logo.sm { width: 30px; height: 30px; border-radius: 8px; }
