:root {
  --bg: #08090c;
  --panel: #101218;
  --panel-2: #14161d;
  --panel-3: #191c24;
  --line: #23262f;
  --line-2: #2c313c;
  --text: #e9ebf1;
  --muted: #868d9e;
  --muted-2: #626a7b;
  --accent: #5b8cff;
  --accent-soft: #1a2540;
  --warn: #f0a13c;
  --ok: #3ec98a;
  --radius: 12px;
  --font: "Pretendard", "Segoe UI", -apple-system, "Malgun Gothic", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; height: 100%;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 14px; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
}
body { display: flex; flex-direction: column; }

/* ---------- top bar ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 22px; border-bottom: 1px solid var(--line); background: var(--panel);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 14px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 15px; letter-spacing: .02em; }
.brand-sub { color: var(--muted-2); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; }
.topbar-right { display: flex; align-items: center; gap: 9px; }

.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--panel-2); color: var(--muted); font-size: 12px; white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.state-idle { color: var(--ok); border-color: #22493a; background: #0f1e18; }
.badge.state-planning,
.badge.state-acting { color: var(--accent); border-color: #2b3c66; background: #111a2e; }
.badge.state-acting .dot,
.badge.state-planning .dot { animation: pulse 1.1s ease-in-out infinite; }
.badge.state-handoff { color: var(--warn); border-color: #4a3620; background: #201a11; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.btn {
  border-radius: 9px; border: 1px solid var(--line-2); padding: 8px 15px;
  font-size: 13px; font-family: inherit; background: var(--panel-3); color: var(--text);
  cursor: pointer; transition: background .15s ease, border-color .15s ease, opacity .15s ease;
}
.btn:hover { background: #20242e; }
.btn.primary { background: var(--accent); border-color: #4a77e0; color: #fff; font-weight: 600; }
.btn.primary:hover { background: #6d99ff; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: .45; cursor: progress; }

/* ---------- toast ---------- */
.toast {
  position: fixed; top: 66px; left: 50%; transform: translateX(-50%) translateY(-8px);
  z-index: 60; padding: 9px 18px; border-radius: 999px;
  background: #1d2029; border: 1px solid var(--line-2); color: var(--text);
  font-size: 12.5px; box-shadow: 0 10px 30px rgba(0,0,0,.5);
  opacity: 1; transition: opacity .25s ease, transform .25s ease;
}
.toast.hidden { opacity: 0; transform: translateX(-50%) translateY(-16px); pointer-events: none; }

/* ---------- handoff banner ---------- */
.handoff {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 14px 22px; overflow: hidden;
  background: linear-gradient(90deg, #241a0e 0%, #17140f 62%);
  border-bottom: 1px solid #4a3620;
  animation: slideDown .32s cubic-bezier(.16,.84,.44,1);
}
.handoff.hidden { display: none; }
@keyframes slideDown {
  from { transform: translateY(-100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.handoff-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.handoff-tag {
  flex: none; padding: 5px 11px; border-radius: 6px; font-size: 11px; letter-spacing: .06em;
  background: var(--warn); color: #241a0e; font-weight: 700;
}
.handoff-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.handoff-text strong { color: #f6d9ab; font-size: 14px; }
.handoff-text span { color: #c0ab8c; font-size: 12.5px; }
.handoff-right { display: flex; align-items: center; gap: 14px; flex: none; }
.handoff-hint { color: #8d7b60; font-size: 12px; }

/* ---------- layout ---------- */
.layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(440px, 40%) 1fr; }

/* ---------- chat pane ---------- */
.chat-pane { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--panel); }
.timeline { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
/* 세로 flex 컨테이너에서 내용이 긴 자식(표 카드)이 찌그러지는 것 방지 */
.timeline > * { flex: 0 0 auto; }
.timeline::-webkit-scrollbar { width: 8px; }
.timeline::-webkit-scrollbar-thumb { background: #262a34; border-radius: 4px; }

/* hero */
.hero { padding: 26px 6px 10px; text-align: left; }
.hero.hidden { display: none; }
.hero-mark {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 19px; margin-bottom: 18px;
}
.hero h1 { margin: 0; font-size: 30px; letter-spacing: -0.02em; }
.hero-tagline { margin: 8px 0 0; font-size: 16px; color: var(--text); opacity: .9; }
.hero-sub { margin: 10px 0 22px; font-size: 13px; line-height: 1.7; color: var(--muted); }
.hero-chips { display: flex; flex-direction: column; gap: 8px; }
.hero-chip {
  text-align: left; padding: 13px 15px; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: var(--panel-2); cursor: pointer;
  font-family: inherit; color: var(--text); transition: border-color .15s ease, background .15s ease, transform .15s ease;
  display: flex; flex-direction: column; gap: 4px;
}
.hero-chip:hover { border-color: #3c5a9e; background: var(--panel-3); transform: translateY(-1px); }
.hero-chip strong { font-size: 13.5px; font-weight: 600; }
.hero-chip span { font-size: 12px; color: var(--muted); }

/* messages */
.msg { border-radius: var(--radius); padding: 12px 14px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.msg.user { background: var(--accent-soft); border: 1px solid #2b3c66; align-self: flex-end; max-width: 94%; }
.msg.agent { background: var(--panel-2); border: 1px solid var(--line); }
.msg.system { background: #0e141a; border: 1px solid #1b2732; color: #93a6b6; font-size: 12.5px; }
.msg .label { display: block; font-size: 10.5px; color: var(--muted-2); margin-bottom: 5px; letter-spacing: .1em; text-transform: uppercase; }

/* step cards */
.step {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px; border-radius: 10px;
  background: var(--panel-2); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted);
  animation: stepIn .22s ease;
}
@keyframes stepIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.step .step-mark { flex: none; width: 14px; height: 14px; margin-top: 2px; position: relative; }
.step .step-mark::before {
  content: ""; position: absolute; inset: 1px; border-radius: 50%;
  border: 1.5px solid var(--line-2);
}
.step.running { color: var(--text); border-color: #2b3c66; }
.step.running .step-mark::before {
  border-color: var(--accent); border-top-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.step.done .step-mark::before { border-color: #2a4a3c; }
.step.done .step-mark::after {
  content: ""; position: absolute; left: 4px; top: 3px; width: 4px; height: 8px;
  border: solid var(--ok); border-width: 0 1.5px 1.5px 0; transform: rotate(42deg);
}
.step-body { flex: 1; min-width: 0; }
.step-time { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); margin-left: 8px; }

/* typing indicator */
.typing { display: flex; gap: 4px; align-items: center; padding: 10px 14px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,60%,100% { opacity: .25; } 30% { opacity: 1; } }

/* result cards */
.card {
  border-radius: var(--radius); border: 1px solid var(--line-2);
  background: linear-gradient(180deg, var(--panel-3) 0%, var(--panel-2) 100%);
  overflow: hidden; animation: stepIn .25s ease;
}
.card-head { padding: 13px 15px 11px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.card-title { font-size: 13.5px; font-weight: 600; }
.card-sub { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.card-source {
  flex: none; font-size: 10px; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted-2); background: #12141a;
}
.card-source.cache { color: #b99a63; border-color: #3d3421; background: #1a1710; }
.card-body { padding: 4px 0 0; }
.card-foot { padding: 10px 15px 13px; font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }

table.card-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.card-table th {
  text-align: left; padding: 9px 14px; color: var(--muted-2); font-weight: 500;
  font-size: 11px; letter-spacing: .04em; border-bottom: 1px solid var(--line);
}
table.card-table td {
  padding: 9px 12px; border-bottom: 1px solid #1b1e26; vertical-align: top;
  word-break: keep-all; line-height: 1.5;   /* 한국어 단어가 중간에서 쪼개지지 않게 */
}
table.card-table tr:last-child td { border-bottom: none; }
table.card-table tr.highlight td { background: rgba(91,140,255,.09); color: #cfe0ff; font-weight: 600; }
table.card-table td:first-child { color: var(--muted); font-family: var(--mono); width: 34px; white-space: nowrap; }
/* 가격·리뷰처럼 짧은 수치 열은 줄바꿈 금지 */
table.card-table td:nth-child(n+4) { white-space: nowrap; }
.card-body { overflow-x: auto; }

.card-list { list-style: none; margin: 0; padding: 4px 0; }
.card-list li { padding: 11px 15px; border-bottom: 1px solid #1b1e26; }
.card-list li:last-child { border-bottom: none; }
.card-list .li-title { font-size: 13px; line-height: 1.5; }
.card-list .li-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.card-list .li-sub { font-size: 11px; color: var(--muted-2); margin-top: 2px; }

.kakao {
  margin: 14px 15px; padding: 13px 15px; border-radius: 10px;
  background: #171a21; border: 1px solid var(--line-2);
  white-space: pre-wrap; line-height: 1.65; font-size: 13px;
}
.card-actions { display: flex; gap: 8px; align-items: center; padding: 0 15px 13px; }
.btn.small { padding: 6px 12px; font-size: 12px; }

/* composer */
.composer { border-top: 1px solid var(--line); padding: 13px 14px; background: var(--panel-2); }
.composer textarea {
  width: 100%; resize: none; border-radius: 9px; padding: 10px 12px;
  background: #0c0e13; border: 1px solid var(--line-2); color: var(--text);
  font-family: inherit; font-size: 13.5px; line-height: 1.5;
}
.composer textarea:focus { outline: none; border-color: #33507f; }
.composer-row { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; gap: 10px; }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  border-radius: 999px; border: 1px solid var(--line-2); background: #0c0e13;
  color: var(--muted); font-size: 11.5px; padding: 5px 11px; cursor: pointer; font-family: inherit;
}
.chip:hover { color: var(--text); border-color: #3c5a9e; }

/* ---------- live view ---------- */
.view-pane { display: flex; flex-direction: column; min-height: 0; background: #0a0b0f; }
.view-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid var(--line); background: var(--panel); }
.view-url { font-size: 12px; color: var(--muted); font-family: var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 70%; }
.toggle { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { accent-color: var(--warn); width: 15px; height: 15px; }

.canvas-wrap { flex: 1; min-height: 0; display: grid; place-items: center; padding: 16px; }
.canvas-stage { position: relative; max-width: 100%; max-height: 100%; line-height: 0; }
canvas {
  max-width: 100%; max-height: 100%; border-radius: var(--radius);
  border: 1px solid var(--line-2); background: #05060a;
  box-shadow: 0 22px 60px rgba(0,0,0,.6);
}
canvas.controlled { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn), 0 22px 60px rgba(0,0,0,.6); }
.canvas-hint { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted-2); font-size: 13px; line-height: 1.6; }
.canvas-hint.hidden { display: none; }

/* agent cursor + ripple */
.agent-cursor {
  position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px;
  pointer-events: none; z-index: 5;
  transition: left .28s cubic-bezier(.22,.8,.3,1), top .28s cubic-bezier(.22,.8,.3,1);
}
.agent-cursor.hidden { display: none; }
.agent-cursor::before {
  content: ""; position: absolute; inset: 3px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(91,140,255,.25), 0 0 12px rgba(91,140,255,.6);
}
.agent-cursor.ripple::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 12px;
  margin: -6px 0 0 -6px; border-radius: 50%; border: 2px solid var(--accent);
  animation: ripple .6s ease-out forwards;
}
@keyframes ripple {
  from { transform: scale(1); opacity: .9; }
  to { transform: scale(5.5); opacity: 0; }
}

.view-foot { display: flex; justify-content: space-between; padding: 9px 18px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 11px; font-family: var(--mono); }

@media (max-width: 1040px) {
  .layout { grid-template-columns: 1fr; grid-template-rows: 46% 54%; }
  .chat-pane { border-right: none; border-bottom: 1px solid var(--line); }
}

/* =====================================================================
   M0.5 — 모바일 (카톡 링크 체험판)

   판정은 화면 폭이 아니라 입력 장치로 한다.
   min-width/max-width 로 PC 를 판정하면 폴드 펼침(600px+)이 PC 로 잡힌다.
   ===================================================================== */

/* 모바일 전용 요소는 기본적으로 존재하지 않는다 (데스크톱 회귀 방지) */
.mobile-only,
.fs-exit,
.a2hs,
.kakao-overlay { display: none; }
.touch-hint { display: none; }

@media (hover: none) and (pointer: coarse) {
  :root { --app-h: 100dvh; --vv-top: 0px; --safe-b: env(safe-area-inset-bottom, 0px); }

  /* iOS 키보드가 레이아웃을 밀어 올리는 문제:
     body 를 고정하고 높이를 visualViewport 에 맞춘다(값은 mobile.js 가 주입). */
  html { height: 100%; overflow: hidden; }
  body {
    position: fixed; left: 0; right: 0;
    top: var(--vv-top, 0px);
    height: var(--app-h, 100dvh);
    overflow: hidden;
    overscroll-behavior: none;
  }

  .mobile-only { display: inline-flex; }

  /* --- 상단바 압축 --- */
  .topbar { padding: 9px 12px; padding-top: calc(9px + env(safe-area-inset-top, 0px)); gap: 8px; }
  .brand-mark { width: 27px; height: 27px; border-radius: 8px; font-size: 12px; }
  .brand-sub { display: none; }
  .brand-text strong { font-size: 13.5px; }
  .topbar-right { gap: 6px; }
  .badge { padding: 5px 9px; font-size: 11px; }
  #mode-badge { display: none; }
  .topbar-right .btn { padding: 6px 10px; font-size: 12px; }

  .badge.quota { color: #cfe0ff; border-color: #2b3c66; background: #111a2e; }
  .badge.quota.empty { color: var(--warn); border-color: #4a3620; background: #201a11; }

  /* --- 세로 레이아웃: 위 라이브뷰 60% / 아래 채팅 40% --- */
  /* min-width:0 이 없으면 캔버스 고유 폭이 1fr 트랙의 자동 최소값이 되어
     레이아웃이 화면 밖으로 벌어진다(가로 스크롤 사고). */
  .layout { grid-template-columns: 1fr; grid-template-rows: 60% 40%; min-height: 0; }
  .view-pane { order: 1; min-height: 0; min-width: 0; }
  .chat-pane {
    order: 2; min-height: 0; min-width: 0;
    border-right: none; border-bottom: none; border-top: 1px solid var(--line);
  }
  .canvas-wrap { min-width: 0; }

  /* 키보드가 올라오면 채팅에 자리를 더 준다 */
  body.kb-open .layout { grid-template-rows: 34% 66%; }

  /* --- 라이브뷰: 가로 꽉 채우고 아래를 잘라 보여준다 (탭하면 전체화면) --- */
  /* 한 줄 안에 반드시 다 들어가야 한다 — 줄바꿈되면 라이브뷰 높이를 갉아먹는다 */
  .view-head { padding: 8px 12px; gap: 8px; flex-wrap: nowrap; }
  .view-url { font-size: 11px; max-width: 38%; flex: 0 1 auto; }
  .toggle { font-size: 11.5px; gap: 6px; white-space: nowrap; flex: none; }
  .view-head .btn { white-space: nowrap; flex: none; }
  .canvas-wrap { padding: 0; display: block; }
  .canvas-stage {
    position: relative; width: 100%; height: 100%;
    overflow: hidden; background: #05060a;
  }
  .canvas-stage canvas {
    display: block; width: 100%; height: auto;
    max-width: none; max-height: none;
    border-radius: 0; border: none; box-shadow: none;
  }
  /* 전체화면: 페이지 전체가 보이도록 맞춘다.
     절대배치 + margin:auto 는 퍼센트 최대치가 '확정된' 부모 크기로 풀리는 유일하게
     안전한 조합이다(grid/flex 자동 트랙에서 height:100% 는 auto 로 무너진다). */
  body.view-full .layout { grid-template-rows: 1fr; }
  body.view-full .chat-pane { display: none; }
  body.view-full .canvas-stage canvas {
    position: absolute; inset: 0; margin: auto;
    width: auto; height: auto;
    max-width: 100%; max-height: 100%;
  }
  body.view-full .view-foot { display: none; }

  canvas.controlled { box-shadow: inset 0 0 0 2px var(--warn); border: none; }

  .view-foot { padding: 6px 12px; font-size: 10px; }

  /* 터치 조작 안내 (핸드오프 중) */
  .touch-hint {
    display: block; position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%);
    z-index: 6; padding: 7px 14px; border-radius: 999px; white-space: nowrap;
    background: rgba(36, 26, 14, .92); border: 1px solid #4a3620; color: #f6d9ab;
    font-size: 11.5px; box-shadow: 0 8px 24px rgba(0,0,0,.5);
    animation: stepIn .25s ease;
  }
  .touch-hint.hidden { display: none; }
  /* 전체화면에서는 [채팅 열기] 버튼과 겹치지 않게 한 칸 위로 */
  body.view-full .touch-hint { bottom: 62px; }

  /* 전체화면 해제 버튼 */
  .fs-exit {
    display: block; position: fixed; z-index: 40;
    left: 50%; transform: translateX(-50%);
    bottom: calc(14px + var(--safe-b));
    padding: 10px 20px; border-radius: 999px;
    background: rgba(20, 22, 29, .94); border: 1px solid var(--line-2); color: var(--text);
    font-family: inherit; font-size: 13px; box-shadow: 0 10px 30px rgba(0,0,0,.55);
  }
  .fs-exit.hidden { display: none; }

  /* --- 채팅 --- */
  .timeline { padding: 12px; gap: 8px; -webkit-overflow-scrolling: touch; }
  .hero { padding: 12px 2px 4px; }
  .hero-mark { width: 36px; height: 36px; font-size: 16px; margin-bottom: 12px; }
  .hero h1 { font-size: 23px; }
  .hero-tagline { font-size: 14px; }
  .hero-sub { font-size: 12.5px; margin: 8px 0 14px; }
  .hero-chip { padding: 11px 13px; }
  .msg { padding: 10px 12px; font-size: 13px; }
  .card-body { -webkit-overflow-scrolling: touch; }
  table.card-table { font-size: 11.5px; }
  table.card-table th, table.card-table td { padding: 7px 9px; }

  .composer { padding: 10px 10px calc(10px + var(--safe-b)); }
  .composer textarea { font-size: 16px; }  /* 16px 미만이면 iOS 가 자동 확대한다 */
  .quick { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .quick::-webkit-scrollbar { display: none; }
  .chip { white-space: nowrap; padding: 7px 12px; font-size: 12px; }
  .composer-row { gap: 8px; }
  #btn-send { flex: none; padding: 9px 18px; }

  /* --- 핸드오프 배너: 세로 적층 --- */
  .handoff { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px; }
  .handoff-right { justify-content: space-between; }
  .handoff-hint { font-size: 11.5px; }
  .handoff-right .btn { flex: none; }

  .toast { top: auto; bottom: calc(84px + var(--safe-b)); font-size: 12px; }

  /* --- 홈 화면 추가 안내 --- (컴포저 위 흐름 안. 절대 입력창을 덮지 않는다) */
  .a2hs {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    flex: none; padding: 10px 12px;
    background: #161922; border-top: 1px solid var(--line-2);
    animation: slideUp .3s cubic-bezier(.16,.84,.44,1);
  }
  .a2hs.hidden { display: none; }
  @keyframes slideUp { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
  .a2hs-body { display: flex; align-items: center; gap: 10px; min-width: 0; }
  .a2hs-icon { border-radius: 9px; flex: none; }
  .a2hs-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .a2hs-text strong { font-size: 13px; }
  .a2hs-text span { font-size: 11.5px; color: var(--muted); line-height: 1.45; }
  .a2hs-actions { display: flex; gap: 6px; flex: none; }
  .a2hs-actions .btn.hidden { display: none; }
}

/* --- 카카오톡 인앱브라우저 안내 (UA 판정이므로 미디어쿼리 밖) --- */
.kakao-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(6, 7, 10, .96);
  padding: 24px; overflow-y: auto;
}
.kakao-overlay:not(.hidden) { display: grid; place-items: center; }
.kakao-card {
  width: 100%; max-width: 380px; text-align: center;
  padding: 26px 22px; border-radius: 18px;
  background: var(--panel); border: 1px solid var(--line-2);
  box-shadow: 0 24px 70px rgba(0,0,0,.7);
}
.kakao-mark {
  width: 46px; height: 46px; margin: 0 auto 16px; border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 700; font-size: 20px;
}
.kakao-card h2 { margin: 0 0 10px; font-size: 18px; letter-spacing: -0.02em; }
.kakao-card p { margin: 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.kakao-actions { display: flex; flex-direction: column; gap: 8px; margin: 20px 0 14px; }
.kakao-actions .btn { padding: 12px 16px; font-size: 14px; }
.kakao-note { font-size: 11.5px; color: var(--muted-2); line-height: 1.6; }
.kakao-dismiss {
  margin-top: 18px; background: none; border: none; padding: 6px;
  color: var(--muted-2); font-family: inherit; font-size: 12px;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
