:root {
  --ink: #17201d;
  --ink-soft: #4a5751;
  --line: #d8ded9;
  --bg: #f6f7f5;
  --card: #ffffff;
  --accent: #1f6f5c;
  --accent-soft: #e6f1ec;
  --warn: #a6531a;
  --danger: #a3312b;
  --radius: 14px;
}

* { box-sizing: border-box; -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Malgun Gothic", "Apple SD Gothic Neo",
               "Noto Sans KR", sans-serif;
  font-size: 18px;
  line-height: 1.6;
  overflow-wrap: break-word;
}

body { min-height: 100vh; padding-bottom: 128px; }
img, svg { max-width: 100%; }

.wrap { max-width: 720px; margin: 0 auto; padding: 16px; }
.wrap.wide { max-width: 1080px; }

h1 { font-size: 24px; margin: 0 0 4px; letter-spacing: -0.02em; }
h2 { font-size: 20px; margin: 24px 0 8px; }
h3 { font-size: 18px; margin: 18px 0 6px; }
p { margin: 8px 0; }
small, .small { font-size: 15px; color: var(--ink-soft); }

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
}
.topbar .grow { flex: 1; min-width: 0; }
.topbar strong { font-size: 18px; }
.topbar .sub { font-size: 14px; color: var(--ink-soft); }

button, .btn {
  font: inherit;
  font-size: 17px;
  min-height: 48px;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
button:disabled { opacity: 0.5; cursor: default; }
button.primary, .btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
button.ghost { background: transparent; }
button.small { min-height: 40px; font-size: 15px; padding: 6px 12px; }
button.danger { color: var(--danger); border-color: #e6c8c6; }

input, textarea, select {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
label { display: block; font-size: 15px; color: var(--ink-soft); margin: 12px 0 4px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
}
.card h3 { margin-top: 0; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.muted { color: var(--ink-soft); }
.tag {
  display: inline-block; font-size: 14px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); border: 1px solid #cfe4da;
}
.tag.warn { background: #fdf1e6; color: var(--warn); border-color: #f0d6bd; }
.tag.danger { background: #fdeceb; color: var(--danger); border-color: #f0cdca; }

.tabs {
  display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px;
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: var(--topbar-h, 61px); z-index: 15;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-behavior: smooth;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button { min-height: 44px; font-size: 16px; border-radius: 999px; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }

/* 390px(작은 휴대폰) — 탭·표·버튼이 깨지지 않게 */
@media (max-width: 480px) {
  .tabs { padding: 8px 12px; gap: 6px; }
  .tabs button { min-height: 48px; font-size: 15px; padding: 8px 14px; }
  .wrap { padding: 12px; }
  .msg { padding: 10px 12px; }
  .msg.user { margin-left: 8%; }
  .composer .inner { gap: 6px; }
  .composer button { min-width: 72px; padding: 10px 12px; }
}

/* 넓은 표는 가로로만 스크롤합니다(본문이 옆으로 밀리지 않게) */
.table-scroll { overflow-x: auto; margin: 8px 0; border: 1px solid var(--line); border-radius: 10px; }
.table-scroll .table { min-width: 320px; margin: 0; }
.table-scroll .table th, .table-scroll .table td { padding: 8px 10px; }
.between { flex-wrap: wrap; }
.card .between strong, .msg strong { overflow-wrap: anywhere; }
code { background: #eef1ef; padding: 1px 5px; border-radius: 6px; font-size: 0.95em; }

.msg { padding: 12px 14px; border-radius: 14px; margin: 10px 0; white-space: pre-wrap; word-break: break-word; }
.msg.user { background: var(--accent-soft); margin-left: 12%; }
.msg.assistant { background: var(--card); border: 1px solid var(--line); }
.msg .who { font-size: 14px; color: var(--ink-soft); margin-bottom: 4px; }

.composer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: var(--card); border-top: 1px solid var(--line);
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
}
.composer .inner { max-width: 720px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.composer .inner textarea { flex: 1 1 auto; min-width: 0; }
.composer textarea { min-height: 64px; max-height: 160px; font-size: 17px; }
.composer button { min-width: 88px; }

.ad-card {
  border: 1px dashed #c9d3cc; background: #fbfcfb; border-radius: var(--radius);
  padding: 12px 14px; margin: 10px 0 0;
}
.ad-card .label { font-size: 13px; color: var(--ink-soft); letter-spacing: 0.04em; }
.ad-card h4 { font-size: 17px; margin: 4px 0; }
.ad-card p { font-size: 15px; color: var(--ink-soft); margin: 4px 0 8px; }

.table { width: 100%; border-collapse: collapse; font-size: 15px; }
.table th, .table td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--ink-soft); font-weight: 600; }

.notice { padding: 10px 12px; border-radius: 10px; background: #fdf1e6; color: var(--warn); font-size: 15px; }
.error { padding: 10px 12px; border-radius: 10px; background: #fdeceb; color: var(--danger); font-size: 15px; }
.ok { padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-size: 15px; }

.hidden { display: none !important; }

.modal {
  position: fixed; inset: 0; background: rgba(12, 20, 16, 0.45); z-index: 60;
  display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.modal .sheet {
  background: var(--card); width: 100%; max-width: 720px; max-height: 88vh; overflow-y: auto;
  border-radius: 18px 18px 0 0; padding: 18px 16px calc(24px + env(safe-area-inset-bottom));
}
@media (min-width: 720px) {
  .modal { align-items: center; }
  .modal .sheet { border-radius: 18px; }
}

.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-plain li:last-child { border-bottom: 0; }

.login { max-width: 420px; margin: 8vh auto; padding: 0 16px; }
.login .logo { font-size: 15px; letter-spacing: 0.12em; color: var(--accent); }

.admin-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .admin-grid.two { grid-template-columns: 1.3fr 1fr; } }

.stat { display: flex; gap: 16px; flex-wrap: wrap; }
.stat div { min-width: 96px; }
.stat b { font-size: 22px; display: block; }

/* =========================================================================
   2026-11-30 — 파일 첨부 · 파일 카드 · 음성 대화 (390px 우선)
   ========================================================================= */
body { padding-bottom: 190px; }

.composer .inner { display: block; }
.composer-row { display: flex; gap: 8px; align-items: flex-end; }
.composer-row textarea { flex: 1 1 auto; min-width: 0; min-height: 56px; }

.icon-btn {
  flex: 0 0 auto; width: 56px; min-width: 56px; height: 56px; padding: 4px 0;
  flex-direction: column; gap: 0; font-size: 20px; line-height: 1.1; border-radius: 14px;
}
.icon-btn .icon-cap { font-size: 11px; color: var(--ink-soft); letter-spacing: -0.02em; }
.icon-btn.mic.recording {
  background: #fdeceb; border-color: var(--danger); color: var(--danger);
  animation: micPulse 1.2s ease-in-out infinite;
}
.icon-btn.mic.busy { background: var(--accent-soft); border-color: var(--accent); }
@keyframes micPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(163,49,43,0.35); } 50% { box-shadow: 0 0 0 8px rgba(163,49,43,0); } }

.composer .send { flex: 0 0 auto; min-width: 76px; height: 56px; }

.composer-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 6px; flex-wrap: wrap;
}
.voice-toggle { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--ink-soft); }
.voice-toggle input { width: 20px; min-height: 20px; margin: 0; }
.link-btn { background: none; border: 0; padding: 4px 2px; min-height: 0; font-size: 13px; color: var(--accent); text-decoration: underline; }

.voice-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 8px; padding: 8px 12px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent); font-size: 14px;
}
.voice-bar.speaking { background: #eaf1fb; color: #1d4f9c; }
.voice-bar.error { background: #fdeceb; color: var(--danger); }
.voice-bar button { min-height: 34px; font-size: 13px; padding: 2px 10px; }

/* 첨부 칩(보내기 전) */
.attach-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 8px; }
.attach-chip {
  position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  min-width: 0; max-width: 240px; padding: 6px 26px 6px 8px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
}
.attach-chip img { width: 38px; height: 38px; object-fit: cover; border-radius: 8px; }
.attach-chip .name { font-size: 13px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.attach-chip .meta { font-size: 11px; color: var(--ink-soft); }
.attach-chip .remove {
  position: absolute; top: 2px; right: 2px; width: 22px; min-width: 22px; height: 22px;
  min-height: 22px; padding: 0; border: 0; border-radius: 999px; font-size: 13px;
  background: #eef1ef; color: var(--ink-soft);
}
.attach-chip .bar { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 3px; background: #e6f1ec; border-radius: 999px; overflow: hidden; }
.attach-chip .bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.attach-chip.done .bar, .attach-chip.failed .bar { display: none; }
.attach-chip.failed { border-color: #e6c8c6; background: #fdeceb; }

/* 채팅 안 파일 카드 */
.file-card {
  display: flex; align-items: center; gap: 10px; margin: 8px 0; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 12px; background: #fbfcfb;
}
.file-card .ficon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.file-card .fbody { flex: 1 1 auto; min-width: 0; }
.file-card .fname { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card .fmeta { font-size: 12px; color: var(--ink-soft); }
.file-card .fbtn { flex: 0 0 auto; min-height: 38px; font-size: 13px; padding: 4px 12px; }
.msg .thumb { display: block; max-height: 220px; width: auto; max-width: 100%; border-radius: 10px; margin: 8px 0 0; border: 1px solid var(--line); }
.say-btn { background: none; border: 0; padding: 2px 6px; min-height: 28px; font-size: 13px; color: var(--ink-soft); }
.say-btn:hover { color: var(--accent); }
.msg-tools { display: flex; justify-content: flex-end; margin-top: 4px; }

/* 알림 토스트 */
.toast {
  position: fixed; left: 12px; right: 12px; bottom: 210px; z-index: 70;
  max-width: 640px; margin: 0 auto; padding: 12px 14px; border-radius: 12px;
  background: #2b3531; color: #fff; font-size: 15px; line-height: 1.45;
  box-shadow: 0 6px 24px rgba(0,0,0,0.18);
}

@media (max-width: 480px) {
  .composer { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .composer .inner { gap: 0; }
  .composer button { min-width: 0; }
  .icon-btn { width: 48px; min-width: 48px; height: 52px; font-size: 18px; }
  .icon-btn .icon-cap { font-size: 10px; }
  .composer .send { min-width: 64px; height: 52px; padding: 0 10px; font-size: 15px; }
  .composer-row { gap: 6px; }
  .toast { bottom: 200px; }
}

/* hidden 속성이 버튼의 display:inline-flex에 눌리지 않게 */
[hidden] { display: none !important; }

/* 390px에서 '말하기/그만' 글자가 두 줄로 접히지 않게 */
.icon-btn .icon-cap { white-space: nowrap; letter-spacing: -0.04em; }
.voice-bar button { white-space: nowrap; flex: 0 0 auto; }
.voice-toggle span { word-break: keep-all; }

/* 파일 카드 안 사진: 카드 폭을 밀지 않고 아래에 한 줄로 */
.file-card { flex-wrap: wrap; }
.file-card .thumb { flex: 0 0 100%; width: 100%; max-height: 260px; object-fit: contain; margin-top: 6px; }

/* 사진은 카드 밖에 한 블록으로 (flex 안에서 폭을 다투지 않게) */
.msg .thumb { display: block; width: 100%; max-width: 100%; max-height: 200px; cursor: zoom-in; object-fit: contain;
  margin: 6px 0 0; border: 1px solid var(--line); border-radius: 10px; background: #fbfcfb; }
.file-card .thumb { display: none; }

/* =========================================================================
   2026-11-30 — 회원 앱 '피클' 스타일 (부드러운 메신저 UI · 말로 대화 · 큰 글씨)
   관리자 콘솔·로그인 화면은 위의 기본 규칙을 그대로 씁니다(body.app 안에서만 적용).
   ========================================================================= */
body.app {
  --fs: 18px;
  --mint: #e7f7ef;
  --mint-deep: #d3f0e2;
  --accent-2: #2a8f74;
  --soft-line: #e4efe9;
  --bubble: #ffffff;
  font-size: var(--fs);
  background: #f2f7f4;
  background-image: radial-gradient(120% 60% at 50% 0%, #e9f7f0 0%, rgba(242,247,244,0) 60%);
  padding-bottom: 168px;
  min-height: 100dvh;
  -webkit-tap-highlight-color: transparent;
}
body.app.text-large { --fs: 21px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* 동료 캐릭터 애니메이션 — 숨쉬기 · 눈 깜빡임 */
.critter-body { transform-box: view-box; transform-origin: 50% 70%; animation: critterBreathe 4.2s ease-in-out infinite; }
.critter-eyes { transform-box: view-box; transform-origin: 50% 42%; animation: critterBlink 5.6s ease-in-out infinite; }
@keyframes critterBreathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1.2px) scale(1.035); }
}
@keyframes critterBlink {
  0%, 90%, 100% { transform: scaleY(1); }
  93%, 96% { transform: scaleY(0.08); }
}

/* 상단 헤더 */
.app .topbar {
  position: sticky; top: 0; z-index: 22;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 8px;
  background: rgba(243, 247, 245, 0.93);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 111, 92, 0.07);
}
.app .topbar .avatar {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 16px;
  background: linear-gradient(160deg, #ffffff, #e4f6ed);
  display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(31, 111, 92, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}
.app .topbar .avatar svg { width: 40px; height: 40px; display: block; }
.app .topbar .idbox { flex: 1 1 auto; min-width: 0; }
.app .nameline { display: flex; align-items: center; gap: 6px; }
.app .nameline strong { font-size: calc(var(--fs) + 1px); letter-spacing: -0.01em; }
.app .online {
  width: 8px; height: 8px; border-radius: 50%; background: #37b57e;
  box-shadow: 0 0 0 3px rgba(55, 181, 126, 0.16);
  animation: onlinePulse 2.6s ease-in-out infinite;
}
@keyframes onlinePulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(55,181,126,0.14); } 50% { box-shadow: 0 0 0 5px rgba(55,181,126,0.05); } }
.app .topbar .sub { font-size: 12.5px; color: var(--ink-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app .hbtn {
  flex: 0 0 auto; width: 42px; height: 42px; min-width: 42px; min-height: 42px;
  padding: 0; border-radius: 50%;
  background: #ffffff; color: var(--accent);
  border: 1px solid var(--soft-line);
  box-shadow: 0 1px 3px rgba(18, 46, 37, 0.06);
  display: grid; place-items: center;
}
.app .hbtn svg { width: 21px; height: 21px; }
.app .hbtn:active { transform: scale(0.96); }

/* 화면 고르기 — 얇은 아이콘 줄 */
.app .navrail {
  position: sticky; top: 64px; z-index: 21;
  display: flex; gap: 5px; padding: 6px 10px 4px;
  overflow-x: auto; scrollbar-width: none;
  background: rgba(243, 247, 245, 0.985);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.app .navrail::-webkit-scrollbar { display: none; }
.app .navrail button {
  flex: 0 0 auto; width: 54px; height: 50px; min-width: 54px; min-height: 0;
  padding: 4px 0; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  background: #ffffff; border: 1px solid var(--soft-line);
  color: var(--ink-soft); font-size: 11px; letter-spacing: -0.03em;
  box-shadow: 0 1px 2px rgba(18, 46, 37, 0.04);
}
.app .navrail button span { font-size: 16px; line-height: 1.15; }
.app .navrail button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 3px 10px rgba(31, 111, 92, 0.22); }

.app .wrap { max-width: 720px; margin: 0 auto; padding: 10px 12px 0; }
.app .view-head { display: flex; align-items: center; gap: 8px; margin: 4px 0 8px; }
.app .view-head h2 { margin: 0; font-size: calc(var(--fs) + 3px); }

/* 말풍선 */
.app .msg {
  padding: 0; margin: 3px 0; background: none; border: 0; border-radius: 0;
  display: flex; align-items: flex-end; gap: 7px; white-space: normal;
}
.app .msg .bubble {
  max-width: 84%; min-width: 0;
  padding: 10px 14px;
  border-radius: 20px;
  background: var(--bubble);
  color: var(--ink);
  font-size: var(--fs);
  line-height: 1.55;
  white-space: pre-wrap;
  box-shadow: 0 1px 2px rgba(18, 46, 37, 0.06), 0 0 0 1px rgba(228, 239, 233, 0.9);
  overflow-wrap: anywhere;
}
.app .msg.assistant .bubble { border-bottom-left-radius: 7px; }
.app .msg.user { justify-content: flex-end; padding-left: 0; }
.app .msg.user .bubble {
  background: linear-gradient(170deg, #2c8a70, #1f6f5c);
  color: #fff; border-bottom-right-radius: 7px;
  box-shadow: 0 2px 8px rgba(31, 111, 92, 0.22);
  white-space: pre-wrap;
}
.app .msg.user .bubble code { background: rgba(255, 255, 255, 0.18); color: #fff; }
.app .msg .mini-avatar {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 12px;
  background: linear-gradient(160deg, #ffffff, #e4f6ed);
  display: grid; place-items: center; align-self: flex-end;
  box-shadow: 0 1px 3px rgba(18, 46, 37, 0.1);
}
.app .msg .mini-avatar svg { width: 26px; height: 26px; }
.app .msg .bubble h3 { font-size: calc(var(--fs) - 1px); margin: 8px 0 4px; }
.app .msg .bubble .table-scroll { border-color: var(--soft-line); }
.app .msg .bubble .msgs-files { margin-top: 6px; }
.app .msg-tools { display: flex; justify-content: flex-end; margin-top: 2px; }
.app .say-btn {
  background: none; border: 0; min-height: 0; padding: 3px 8px;
  font-size: 12.5px; color: var(--ink-soft); border-radius: 999px;
}
.app .say-btn:active { background: var(--mint); }

/* 파일 카드 — 둥글고 가벼운 카드 */
.app .file-card {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0 2px; padding: 10px 12px;
  border: 1px solid var(--soft-line); border-radius: 16px;
  background: #ffffff; box-shadow: 0 1px 2px rgba(18, 46, 37, 0.05);
  flex-wrap: wrap;
}
.app .file-card .ficon {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 13px;
  background: var(--mint); color: var(--accent);
  display: grid; place-items: center; font-size: 18px;
}
.app .file-card .fbody { flex: 1 1 auto; min-width: 0; }
.app .file-card .fname { font-size: 14.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app .file-card .fmeta { font-size: 12px; color: var(--ink-soft); }
.app .file-card .fbtn {
  flex: 0 0 auto; min-height: 38px; font-size: 13px; padding: 4px 14px;
  border-radius: 999px; border: 1px solid var(--soft-line); background: #fff; color: var(--accent);
  text-decoration: none; display: inline-flex; align-items: center;
}
.app .msg .thumb { display: block; width: 100%; max-width: 100%; max-height: 200px; object-fit: contain;
  margin: 6px 0 0; border: 1px solid var(--soft-line); border-radius: 12px; background: #fbfcfb; cursor: zoom-in; }
.app .file-card .thumb { display: none; }

/* 시작 카드 (빈 화면) */
.app .quick-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  margin: 6px 0 10px;
}
.app .quick-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  min-height: 0; padding: 13px 13px 12px; text-align: left;
  background: #ffffff; border: 1px solid var(--soft-line); border-radius: 18px;
  box-shadow: 0 1px 2px rgba(18, 46, 37, 0.05);
}
.app .quick-card:active { transform: scale(0.985); background: #fbfefc; }
.app .quick-card .qc-emoji {
  width: 34px; height: 34px; border-radius: 12px; background: var(--mint);
  display: grid; place-items: center; font-size: 17px;
}
.app .quick-card .qc-title { font-size: 14.5px; font-weight: 700; line-height: 1.35; letter-spacing: -0.02em; }
.app .quick-card .qc-sub { font-size: 11.5px; color: var(--ink-soft); line-height: 1.4; }

/* 먼저 말 걸기 */
.app .nudge {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 4px 0 10px; padding: 12px 14px;
  border-radius: 18px;
  background: linear-gradient(165deg, #ffffff, #e9f7f0);
  box-shadow: 0 2px 10px rgba(31, 111, 92, 0.1), inset 0 0 0 1px rgba(211, 240, 226, 0.9);
}
.app .nudge .mini-avatar { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 12px; background: #fff; display: grid; place-items: center; box-shadow: 0 1px 3px rgba(18,46,37,.08); }
.app .nudge .mini-avatar svg { width: 28px; height: 28px; }
.app .nudge .n-text { flex: 1 1 auto; min-width: 0; font-size: 14.5px; line-height: 1.5; }
.app .nudge .n-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.app .nudge .n-actions button { min-height: 36px; font-size: 13px; padding: 4px 12px; border-radius: 999px; }
.app .nudge .n-actions .primary { background: var(--accent); border-color: var(--accent); color: #fff; }

/* 인사 카드 안의 경력ON 최신 공고 */
.app .nudge .n-jobs { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.app .nudge .n-job { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px;
  background: #ffffff; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line);
  text-decoration: none; color: inherit; }
.app .nudge .n-job b { font-size: 14px; line-height: 1.4; }
.app .nudge .n-job span { font-size: 12.5px; color: var(--muted, #6b7f77); }

/* 하단 입력 바 */
.app .composer {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(31, 111, 92, 0.08);
  padding: 8px 10px calc(6px + env(safe-area-inset-bottom));
}
.app .composer .inner { display: block; max-width: 720px; margin: 0 auto; }
.app .composer-row { display: flex; gap: 7px; align-items: flex-end; }
.app .circle-btn {
  flex: 0 0 auto; width: 46px; height: 46px; min-width: 46px; min-height: 46px;
  padding: 0; border-radius: 50%;
  display: grid; place-items: center;
  background: #ffffff; border: 1px solid var(--soft-line); color: var(--accent);
  box-shadow: 0 1px 3px rgba(18, 46, 37, 0.06);
}
.app .circle-btn svg { width: 22px; height: 22px; }
.app .circle-btn.plus { color: var(--ink-soft); }
.app .circle-btn.send { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 3px 10px rgba(31, 111, 92, 0.26); }
.app .circle-btn:disabled { opacity: 0.45; }
.app .pill {
  flex: 1 1 auto; min-width: 0; display: flex; align-items: flex-end; gap: 2px;
  background: #ffffff; border: 1px solid var(--soft-line); border-radius: 25px;
  min-height: 48px; padding: 3px 4px 3px 15px;
  box-shadow: inset 0 1px 2px rgba(18, 46, 37, 0.03);
}
.app .pill textarea {
  flex: 1 1 auto; min-width: 0; width: auto;
  border: 0; background: transparent; min-height: 46px; max-height: 120px;
  padding: 8px 0; font-size: var(--fs); line-height: 1.35; resize: none; outline: none;
  color: var(--ink);
}
.app .inline-mic {
  flex: 0 0 auto; width: 42px; height: 42px; min-width: 42px; min-height: 42px;
  padding: 0; border: 0; border-radius: 50%;
  background: var(--mint); color: var(--accent);
  display: grid; place-items: center;
}
.app .inline-mic svg { width: 20px; height: 20px; }
.app .inline-mic.recording { background: #fdeceb; color: var(--danger); animation: micPulse 1.2s ease-in-out infinite; }
.app .inline-mic.busy { background: var(--mint-deep); }
/* 2026-12-01: 🎤 하나로 말로 대화 — 지금 무엇을 하는지 단추 색과 모양으로도 보입니다. */
.app .inline-mic.reading { background: #e9f1fc; color: #1d4f9c; }
.app .inline-mic[data-state="listening"] { box-shadow: 0 0 0 3px rgba(210, 69, 63, 0.16); }
.app .inline-mic[data-state="speaking"] { box-shadow: 0 0 0 3px rgba(29, 79, 156, 0.14); }
.app .composer-foot .tiny.warn { color: #a3312b; font-weight: 600; }
.app .composer-foot { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 5px; min-height: 16px; }
.app .tiny { font-size: 11.5px; color: #8b9a93; }
.app .link-btn { background: none; border: 0; padding: 2px; min-height: 0; font-size: 12px; color: var(--accent); text-decoration: underline; }
.app .voice-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 7px; padding: 7px 12px; border-radius: 14px;
  background: var(--mint); color: var(--accent); font-size: 13.5px;
}
.app .voice-bar.speaking { background: #e9f1fc; color: #1d4f9c; }
.app .voice-bar.error { background: #fdeceb; color: var(--danger); }
.app .voice-bar button { min-height: 32px; font-size: 12.5px; padding: 2px 10px; border-radius: 999px; }

/* 첨부 칩 */
.app .attach-list { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 7px; }
.app .attach-chip {
  position: relative; flex: 0 0 auto; display: flex; align-items: center; gap: 8px;
  min-width: 0; max-width: 240px; padding: 6px 26px 6px 8px;
  border: 1px solid var(--soft-line); border-radius: 14px; background: #fff;
}
.app .attach-chip img { width: 38px; height: 38px; object-fit: cover; border-radius: 10px; }
.app .attach-chip .name { font-size: 12.5px; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.app .attach-chip .meta { font-size: 11px; color: var(--ink-soft); }
.app .attach-chip .remove {
  position: absolute; top: 2px; right: 2px; width: 22px; min-width: 22px; height: 22px;
  min-height: 22px; padding: 0; border: 0; border-radius: 999px; font-size: 12px;
  background: #eef4f1; color: var(--ink-soft);
}
.app .attach-chip .bar { position: absolute; left: 8px; right: 8px; bottom: 2px; height: 3px; background: #e6f1ec; border-radius: 999px; overflow: hidden; }
.app .attach-chip .bar > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .15s; }
.app .attach-chip.done .bar, .app .attach-chip.failed .bar { display: none; }
.app .attach-chip.failed { border-color: #e6c8c6; background: #fdeceb; }

/* 일정(할 일) */
.app .task-form { border-radius: 18px; border: 1px solid var(--soft-line); box-shadow: 0 1px 2px rgba(18,46,37,.05); }
.app .task-form label { margin-top: 0; }
.app .task-row { margin-top: 8px; display: grid; grid-template-columns: 1.1fr 0.8fr auto; gap: 7px; }
.app .task-row input, .app .task-row select { min-height: 46px; font-size: 15px; padding: 8px 10px; border-radius: 12px; }
.app .task-row button { min-height: 46px; padding: 6px 16px; border-radius: 12px; }
.app .task-item {
  display: flex; gap: 10px; align-items: flex-start;
  background: #fff; border-radius: 18px; padding: 12px 14px; margin: 8px 0;
  box-shadow: 0 1px 2px rgba(18, 46, 37, 0.05), 0 0 0 1px rgba(228, 239, 233, 0.8);
}
.app .task-item .check-box {
  flex: 0 0 auto; width: 28px; height: 28px; min-width: 28px; min-height: 28px;
  border-radius: 50%; border: 2px solid #cfe0d8; background: #fff;
  display: grid; place-items: center; font-size: 14px; color: transparent; padding: 0;
}
.app .task-item.done .check-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.app .task-item .t-body { flex: 1 1 auto; min-width: 0; }
.app .task-item .t-title { font-size: 15.5px; font-weight: 600; line-height: 1.4; }
.app .task-item.done .t-title { text-decoration: line-through; color: var(--ink-soft); font-weight: 500; }
.app .task-item .t-when { font-size: 12.5px; color: var(--accent-2); font-weight: 600; margin-top: 2px; }
.app .task-item.soon .t-when { color: #b4611f; }
.app .task-item.overdue .t-when { color: var(--danger); }
.app .task-item .t-meta { font-size: 12px; color: var(--ink-soft); margin-top: 2px; }
.app .task-item .t-del { flex: 0 0 auto; width: 34px; height: 34px; min-width: 34px; min-height: 34px; padding: 0; border: 0; background: none; color: #b6c4be; border-radius: 50%; }
.app .task-empty { text-align: center; color: var(--ink-soft); font-size: 14px; padding: 18px 8px; }

/* 큰 글씨 · 보기 설정 */
.app .card { border-radius: 18px; border: 1px solid var(--soft-line); box-shadow: 0 1px 2px rgba(18, 46, 37, 0.04); }
.app .card.soft { background: linear-gradient(170deg, #ffffff, #f3fbf7); }
.app .field-label { font-size: 14px; color: var(--ink-soft); margin-bottom: 6px; }
.app .segmented { display: inline-flex; background: #eef4f1; border-radius: 999px; padding: 3px; gap: 3px; }
.app .segmented button {
  min-height: 38px; border: 0; background: transparent; border-radius: 999px;
  padding: 6px 18px; font-size: 14.5px; color: var(--ink-soft);
}
.app .segmented button.active { background: #fff; color: var(--accent); font-weight: 700; box-shadow: 0 1px 3px rgba(18, 46, 37, 0.12); }
.app .row.check { margin: 0; font-size: 14.5px; color: var(--ink); align-items: center; }
.app .row.check input { width: 22px; min-height: 22px; flex: 0 0 auto; }

/* AI 목소리 고르기 */
.app .voice-list { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.app .voice-item {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--soft-line); border-radius: 14px; background: #fff; padding: 8px 10px;
}
.app .voice-item.active { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(31, 111, 92, 0.14); background: #f6fdfa; }
.app .voice-item .voice-pick {
  flex: 1; min-height: 44px; border: 0; background: none;
  display: flex; flex-direction: column; align-items: stretch; justify-content: center;
  gap: 2px; padding: 2px; text-align: left;
}
.app .voice-item .vname { display: block; width: 100%; font-size: 15px; font-weight: 700; color: var(--ink); text-align: left; }
.app .voice-item .vinfo { display: block; width: 100%; font-size: 12px; color: var(--ink-soft); line-height: 1.4; text-align: left; }
.app .voice-item .voice-preview { flex: 0 0 auto; min-height: 40px; padding: 6px 12px; white-space: nowrap; }
.app .voice-note { font-size: 12px; color: var(--ink-soft); line-height: 1.5; margin: 6px 0 0; }

/* 지금 단계 고르기 */
.app .stage-list { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.app .stage-list button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 50px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--soft-line); border-radius: 14px; background: #fff;
}
.app .stage-list button b { font-size: 15px; color: var(--ink); }
.app .stage-list button span { font-size: 12px; color: var(--ink-soft); }
.app .stage-list button.active { border-color: var(--accent); background: #f6fdfa; box-shadow: 0 0 0 2px rgba(31, 111, 92, 0.14); }
.app .stage-list button.active b { color: var(--accent); }

/* =========================================================================
   2026-12-01 — 대화 찾기 · 날짜 구분선 · 중요(별표)
   대화가 길어져도 지난 말을 찾을 수 있게. 누를 곳은 크고, 글자는 읽기 쉽게.
   ========================================================================= */
/* 대화 찾기 막대 — 대화 탭 위에 붙어 따라옵니다 */
.app .chat-search {
  position: sticky; top: 124px; z-index: 19;
  display: flex; justify-content: flex-end;
  /* 스크롤해도 말풍선 글자가 버튼 밑으로 비쳐 보이지 않게 얇은 띠를 깔아 둡니다. */
  margin: 0 -12px; padding: 4px 12px 5px;
  background: rgba(242, 247, 244, 0.94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  pointer-events: none;          /* 띠가 말풍선 터치를 가리지 않게 */
}
.app .chat-search > * { pointer-events: auto; }
.app .search-open {
  min-height: 40px; padding: 6px 14px; border-radius: 999px;
  background: #ffffff; border: 1px solid var(--soft-line);
  color: var(--accent); font-size: 14.5px; font-weight: 700;
  display: inline-flex; align-items: center; gap: 6px;
  box-shadow: 0 2px 8px rgba(18, 46, 37, 0.08);
}
.app .search-open[aria-expanded="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.app .search-panel { position: absolute; top: calc(100% + 4px); left: 0; right: 0; }
.app .search-card {
  background: #ffffff; border-radius: 18px; padding: 10px;
  box-shadow: 0 12px 30px rgba(18, 46, 37, 0.18), inset 0 0 0 1px var(--soft-line);
}
.app .search-row { display: flex; gap: 6px; align-items: center; }
.app .search-row input { flex: 1 1 auto; min-width: 0; min-height: 46px; font-size: 16px; border-radius: 12px; }
.app .search-row button { flex: 0 0 auto; }
.app .search-chips { display: flex; gap: 6px; align-items: center; margin-top: 8px; flex-wrap: wrap; }
.app .chip {
  min-height: 40px; padding: 5px 14px; border-radius: 999px;
  background: #f4f8f6; border: 1px solid var(--soft-line); color: var(--ink-soft);
  font-size: 14.5px; font-weight: 600;
}
.app .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.app .search-close { margin-left: auto; }
.app .search-results { margin-top: 8px; max-height: 56vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.app .sr-hint { margin: 6px 4px 8px; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.app .sr-hint.error { color: var(--danger); }
.app .sr-count { padding: 2px 6px 6px; font-size: 13px; font-weight: 700; color: var(--accent); }
.app .sr-item {
  display: flex; flex-direction: column; align-items: stretch; gap: 3px;
  width: 100%; min-height: 56px; margin-bottom: 6px; padding: 9px 12px;
  text-align: left; border-radius: 14px;
  background: #f7fbf9; border: 1px solid var(--soft-line);
}
.app .sr-item:active { background: var(--mint); }
.app .sr-top { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); }
.app .sr-who { font-weight: 700; color: var(--accent); }
.app .sr-star { font-size: 13px; color: #d69a12; }
.app .sr-date { margin-left: auto; }
.app .sr-text { font-size: 15px; line-height: 1.45; color: var(--ink); }

/* 지난 대화 목록 — 어느 앱에서 시작한 대화인지 이름표로 보여 줍니다 */
.app .chat-search { gap: 6px; }
.app .conv-head { display: flex; align-items: center; gap: 8px; padding: 2px 6px 4px; }
.app .conv-head b { font-size: 15px; color: var(--ink); }
.app .conv-item { min-height: var(--tap-min, 44px); }
.app .conv-item.here { background: var(--mint); }
.app .conv-app {
  flex: 0 0 auto; padding: 2px 8px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: -0.01em;
  background: #eef6f2; color: var(--accent); border: 1px solid var(--soft-line);
}
.app .conv-app.app-bohomang { background: #eef1fa; color: #2f4d8f; border-color: #d8dff2; }
.app .conv-here { font-size: 12px; font-weight: 700; color: var(--accent); }

/* 날짜 구분선 — 하루가 바뀔 때마다 한 줄 */
.app .day-sep { display: flex; align-items: center; gap: 10px; margin: 16px 2px 8px; }
.app .day-sep::before, .app .day-sep::after {
  content: ""; flex: 1 1 auto; height: 1px; background: rgba(31, 111, 92, 0.16);
}
.app .day-sep span {
  flex: 0 0 auto; padding: 3px 12px; border-radius: 999px;
  background: #eaf4ef; color: #48665c;
  font-size: 12.5px; font-weight: 700; letter-spacing: -0.01em;
}

/* 말풍선 아래 '중요' 별표 · 검색으로 찾아온 말 표시 · 위/아래 더 보기 */
.app .msg-tools { flex-wrap: wrap; gap: 4px; }
.app .msg .say-btn { min-height: 40px; padding: 4px 10px; }
.app .star-btn {
  min-height: 40px; min-width: 58px; padding: 4px 12px; border: 0; border-radius: 999px; background: none;
  font-size: 13.5px; color: var(--ink-soft);
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
}
.app .star-btn .star-glyph { font-size: 15px; line-height: 1; }
.app .star-btn[aria-pressed="true"] { background: #fff5da; color: #a8770a; font-weight: 700; }
.app .star-btn[aria-pressed="true"] .star-glyph { color: #e0a213; }
.app .msg.user .star-btn { color: rgba(255, 255, 255, 0.84); }
.app .msg.user .star-btn[aria-pressed="true"] { background: #ffe9a8; color: #3b2c00; }
.app .msg.jump .bubble { animation: jumpGlow 2.4s ease-out 1; }
@keyframes jumpGlow {
  0% { box-shadow: 0 0 0 3px rgba(230, 168, 23, 0.9); }
  70% { box-shadow: 0 0 0 3px rgba(230, 168, 23, 0.4); }
  100% { box-shadow: 0 1px 2px rgba(18, 46, 37, 0.06), 0 0 0 1px rgba(228, 239, 233, 0.9); }
}
.app .more-btn {
  display: block; width: 100%; min-height: 44px; margin: 6px 0 10px;
  border-radius: 999px; background: #ffffff; border: 1px dashed #bcd9cc;
  color: var(--accent); font-size: 14.5px; font-weight: 700;
}

/* 토스트 · 시트 */
.app .toast { bottom: 132px; border-radius: 16px; background: #23372f; }
.app .modal .sheet { border-radius: 24px 24px 0 0; }

/* 아주 좁은 화면 */
@media (max-width: 380px) {
  .app .navrail button { width: 50px; min-width: 50px; font-size: 10.5px; }
  .app .hbtn { width: 38px; height: 38px; min-width: 38px; min-height: 38px; }
  .app .topbar .avatar { width: 42px; height: 42px; }
  .app .call-card { padding: 14px 14px 16px; }
  .app .quick-card { padding: 11px; }
  .app .search-card { padding: 8px; }
  .app .search-row input { font-size: 15.5px; padding: 8px 10px; }
  .app .search-row .primary { padding: 6px 12px; }
}
@media (min-width: 720px) {
  .app .modal { align-items: center; }
  .app .modal .sheet { border-radius: 24px; }
}

/* =========================================================================
   2026-12-01 — 이미지·짧은 홍보 영상 (말풍선 안 미리보기 · 만들기 메뉴)
   ========================================================================= */
.media-wrap { margin: 8px 0; }
.media-card { margin: 8px 0 0; }
.media-card .media-img,
.media-card .media-video {
  display: block; width: 100%; max-width: 320px; max-height: 62vh;
  object-fit: contain; border-radius: 14px; background: #0b2622;
  border: 1px solid var(--soft-line, #e3ece7);
  box-shadow: 0 2px 10px rgba(18, 46, 37, 0.08);
}
.media-card .media-img { cursor: zoom-in; }
.media-card .media-video { background: #000; }
.media-card .media-foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  max-width: 320px; margin-top: 6px;
}
.media-card .media-name {
  flex: 1 1 100%; font-size: 12.5px; color: var(--ink-soft, #5d6f68);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.media-card .media-meta { flex: 1 1 auto; font-size: 12px; color: #8b9a93; }
.media-card .fbtn { min-height: 34px; font-size: 12.5px; padding: 3px 10px; border-radius: 999px; }
.media-card .fbtn.ghost { background: #fff; }

/* + 만들기 메뉴 */
.app .plus-menu {
  position: absolute; left: 10px; right: 10px; bottom: calc(100% + 8px);
  z-index: 40; display: flex; flex-direction: column; gap: 4px;
  max-width: 340px; padding: 8px; border-radius: 18px;
  background: #ffffff; border: 1px solid var(--soft-line, #e3ece7);
  box-shadow: 0 10px 30px rgba(18, 46, 37, 0.16);
}
.app .composer .inner { position: relative; }
.app .plus-menu .plus-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 0; padding: 9px 10px; text-align: left;
  background: none; border: 0; border-radius: 12px;
}
.app .plus-menu .plus-item:active { background: var(--mint, #e9f7f0); }
.app .plus-menu .pi-emoji {
  flex: 0 0 auto; width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center; font-size: 17px; background: var(--mint, #e9f7f0);
}
.app .plus-menu .pi-text {
  display: flex; flex-direction: column; gap: 1px;
  font-size: 14px; font-weight: 700; color: var(--ink, #1b2b25); letter-spacing: -0.02em;
}
.app .plus-menu .pi-text em {
  font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--ink-soft, #5d6f68);
}
@media (max-width: 390px) {
  .media-card .media-img, .media-card .media-video, .media-card .media-foot { max-width: 100%; }
}

/* 말로 대화가 막혔을 때의 안내 — 앱 안 브라우저에서 크롬으로 열 주소를 복사해 줍니다 */
.voice-guide {
  position: fixed; left: 12px; right: 12px; bottom: calc(150px + env(safe-area-inset-bottom));
  z-index: 90; max-width: 420px; margin: 0 auto;
  padding: 14px 16px; border-radius: 18px;
  background: #fff; color: var(--ink, #23372f);
  box-shadow: 0 14px 40px rgba(18, 46, 37, 0.22);
  border: 1px solid var(--soft-line, #dfe8e3);
}
.voice-guide b { display: block; font-size: 14.5px; margin: 0 0 6px; color: #122e25; }
.voice-guide p { margin: 0 0 10px; font-size: 14px; line-height: 1.55; word-break: keep-all; }
.voice-guide .vg-actions { display: flex; gap: 8px; justify-content: flex-end; }
.voice-guide button { min-height: 44px; font-size: 14px; padding: 8px 16px; border-radius: 999px; }
.app .voice-guide { bottom: calc(190px + env(safe-area-inset-bottom)); }

/* ==========================================================================
   2026-12-02 접근성 — 손가락으로 누르는 최소 크기
   화면마다 숫자를 적지 않고 변수 하나로 고정한다(390px 실측: 통화·설정 42,
   대화 찾기 40, 내려받기 34가 44px 미만이었다). 새 버튼도 --tap-min 을 쓴다.
   ========================================================================== */
:root { --tap-min: 44px; --tap-gap: 8px; }

.app .hbtn,
.app .search-open,
.app .chip,
.app .tabs button,
.app .navrail button,
.app .nudge .n-actions button,
button.small,
.file-card .fbtn,
.app .file-card .fbtn,
.media-card .fbtn,
.voice-bar button,
.app .say-btn,
.app .link-btn {
  min-height: var(--tap-min);
}
.app .hbtn,
.app .inline-mic {
  width: var(--tap-min); height: var(--tap-min);
  min-width: var(--tap-min); min-height: var(--tap-min);
}
.app .search-chips { gap: var(--tap-gap); }
.app .say-btn, .app .link-btn { padding-top: 6px; padding-bottom: 6px; }

/* 폰에서 본사 콘솔 상단 바 — 제목이 좁게 눌리지 않게 줄을 바꿉니다(열람 기록·케어 실행·로그아웃) */
@media (max-width: 640px) {
  .topbar { flex-wrap: wrap; row-gap: 6px; }
  .topbar .grow { flex: 1 1 100%; }
  .topbar > .btn, .topbar > button { flex: 0 0 auto; }
}

/* ==========================================================================
   2026-12-04 — 회원 목록 표가 390px 에서 눌려 글자가 겹치던 문제.
   좁은 화면에서는 표를 버리고 **한 명씩 카드**로 펼칩니다(옆으로 밀 필요 없음).
   열 이름은 각 칸의 data-label 로 붙입니다(admin.js).
   ========================================================================== */
.table.member-table { width: 100%; }
.table.member-table td .small { color: var(--ink-soft); margin-top: 2px; overflow-wrap: anywhere; }
.table.member-table td { overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .table.member-table thead { display: none; }
  .table.member-table, .table.member-table tbody, .table.member-table tr, .table.member-table td {
    display: block; width: 100%;
  }
  .table.member-table tr {
    border: 1px solid var(--line); border-radius: 12px; background: #fff;
    padding: 10px 12px; margin: 0 0 10px;
  }
  .table.member-table td { border: 0; padding: 3px 0; font-size: 15px; }
  .table.member-table td[data-label]::before {
    content: attr(data-label); display: inline-block; min-width: 42px;
    color: var(--ink-soft); font-size: 13px; font-weight: 600;
  }
  .table.member-table td[data-label="이름"]::before { display: none; }
  .table.member-table td:last-child { padding-top: 8px; }
  .table.member-table td:last-child button { width: 100%; }
}

/* 상담 접수 카드 — 390px 우선(이름·접수번호·연락처·메모가 세로로 쌓입니다) */
.lead-card {
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  padding: 12px 14px; margin: 10px 0;
}
.lead-card.done { background: #f7faf8; border-color: #d6e6dd; }
.lead-card .memo {
  margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: #f4f7f5;
  color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere;
}
.lead-card .lead-actions { margin-top: 10px; }
.lead-card .lead-actions button { flex: 1 1 auto; }

/* =========================================================================
   2026-12-04 — AI 동료 캐릭터 그림(ai-partner.webp) · 아주 느린 움직임
   기존 SVG #critter(숨쉬기·눈 깜빡임)는 그대로 두고, 그림에만 부드러운
   부양(9초, scale 1→1.03, translateY 0→-4px)을 더합니다.
   ========================================================================= */
.app .topbar .avatar { overflow: hidden; background: #eef8f3; }
.app .topbar .avatar img {
  width: 100%; height: 100%; display: block; object-fit: cover; object-position: 50% 40%;
  transform-origin: 50% 60%;
  animation: partnerFloat 9s ease-in-out infinite;
}

/* 대화가 비었을 때 보이는 환영 그림 */
.app .partner-hero {
  margin: 8px 0 12px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(170deg, #ffffff, #eaf7f0);
  box-shadow: 0 2px 12px rgba(31, 111, 92, 0.10), inset 0 0 0 1px rgba(211, 240, 226, 0.9);
}
.app .partner-hero .hero-figure {
  /* 그림 원본 비율(3:2)과 같게 두어 잘리지 않게 합니다. 넓은 화면에서는 가운데 430px까지만. */
  position: relative; width: 100%; max-width: 430px; margin: 0 auto;
  aspect-ratio: 3 / 2; overflow: hidden;
  background: #eef8f3;
}
.app .partner-hero .hero-figure img {
  display: block; width: 100%; height: 100%; max-width: 100%;
  object-fit: cover; object-position: 50% 42%;
  transform-origin: 50% 70%;
  animation: partnerFloat 9s ease-in-out infinite;
}
.app .partner-hero .hero-caption {
  display: flex; flex-direction: column; gap: 2px;
  padding: 10px 14px 12px; line-height: 1.45;
}
.app .partner-hero .hero-caption b { font-size: calc(var(--fs) - 1px); color: var(--accent); }
.app .partner-hero .hero-caption span { font-size: 12.5px; color: var(--ink-soft); }

/* 로그인 화면 — 제목 위에 같은 그림 */
.login .login-hero {
  margin: 0 0 16px; border-radius: 20px; overflow: hidden;
  background: #eef8f3; box-shadow: 0 3px 14px rgba(31, 111, 92, 0.12);
  aspect-ratio: 3 / 2; max-height: 200px;
}
.login .login-hero img {
  display: block; width: 100%; height: 100%; max-width: 100%;
  object-fit: cover; object-position: 50% 42%;
  transform-origin: 50% 70%;
  animation: partnerFloat 9s ease-in-out infinite;
}

@keyframes partnerFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-4px) scale(1.03); }
}

/* 움직임을 줄여 달라고 한 기기에서는 멈춥니다(막 움직이지 않게) */
@media (prefers-reduced-motion: reduce) {
  .app .topbar .avatar img,
  .app .partner-hero .hero-figure img,
  .login .login-hero img { animation: none; }
  .critter-body, .critter-eyes { animation: none; }
}

/* 상단바 아바타: 그림과 기존 SVG 가 같은 칸에 겹치게 해서(칸이 둘로 늘어나지 않게) */
.app .topbar .avatar { position: relative; }
.app .topbar .avatar img { position: absolute; inset: 0; }

/* =========================================================================
   2026-12-04 — AI 동료 체험(비회원, 로그인 없이) /trial
   체험 띠 하나 · 390px 우선 · 터치 44px 이상 · 가입 유도는 한도에 닿은 뒤에만
   ========================================================================= */
.trial { --fs: 17px; }
.trial-band {
  position: sticky; top: 66px; z-index: 19;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 14px;
  background: #e8f4ee; color: #175844;
  border-bottom: 1px solid #cfe6da;
  font-size: 13.5px; line-height: 1.35;
}
.trial-band span:first-child { font-weight: 700; letter-spacing: -0.01em; }
.trial-band .trial-count { color: #2c6b57; white-space: nowrap; }
.trial-band b { font-variant-numeric: tabular-nums; }
.trial .wrap { padding-top: 10px; }
.trial .topbar .trial-signup-top {
  width: auto; min-width: 56px; height: 44px; min-height: 44px;
  padding: 0 14px; border-radius: 999px;
  color: #ffffff; background: var(--accent); border-color: var(--accent);
  text-decoration: none; font-size: 15px; font-weight: 700; display: grid; place-items: center;
}

.trial-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 12px; }
.trial .chip {
  min-height: 44px; padding: 8px 14px; font-size: 14.5px;
  background: #ffffff; border: 1px solid var(--soft-line); border-radius: 999px;
  color: var(--ink); box-shadow: 0 1px 2px rgba(18, 46, 37, 0.05);
}
.trial .chip:active { transform: scale(0.98); }

.trial .msg + .msg { margin-top: 6px; }
.trial .msg .bubble { max-width: 88%; }

/* 한도에 닿으면 입력을 잠급니다(가입 안내만 남김) */
.trial-over .composer { display: none; }
.trial-over #trial-band { background: #f4ece2; border-bottom-color: #ead9c6; color: #7a4a1d; }

.trial .modal .sheet h2 { font-size: 21px; }
.trial .trial-end-btn {
  min-height: 48px; font-size: 17px; font-weight: 700; border-radius: 14px;
}
.trial .trial-end-btn.secondary {
  background: #ffffff; color: var(--accent); border: 1px solid var(--accent);
  display: block; text-align: center;
}
.trial .trial-end-btn.ghost-link { color: var(--ink-soft); font-weight: 500; font-size: 15px; }

.trial .composer-foot .tiny { font-size: 12px; color: var(--ink-soft); }
.trial .toast {
  position: fixed; left: 50%; bottom: 104px; transform: translateX(-50%);
  max-width: 90vw; padding: 10px 16px; border-radius: 12px;
  background: rgba(20, 36, 30, 0.92); color: #fff; font-size: 14px; z-index: 70;
}
