/* 고객용 상담 화면 — B안 '음성형'
   목소리가 주인공인 상담. 상담사의 말은 말풍선 없이 큰 글씨로, 확인이 필요한 순간만 빛난다.
   애니메이션 목록은 docs/ui/motion-catalog.html 에서 하나씩 재생해 볼 수 있다. */
:root {
  /* 색 */
  --ink: #2b2320;          /* 먹 */
  --ink-2: #5f534d;
  --muted: #84766e;
  --faint: #ab9d94;
  --line: #f0e2d5;
  --line-2: #e6d4c4;
  --paper: #ffffff;
  --ground: #fff7ef;       /* 바탕 */
  --wash: #fbf0e6;         /* 옅은 채움 */
  --glow: #f6c6a0;         /* 살구 */
  --glow-2: #fce5d2;       /* 볕 */
  --glow-deep: #e99668;
  --brand: #1c6763;        /* 청록: 실행·진행 */
  --brand-2: #2a857f;
  --brand-ink: #ffffff;
  --mint: #e2efed;
  --mint-2: #f1f7f6;
  --amber: #a65a0c;
  --amber-soft: #fff0dc;
  --red: #b23a2e;
  --red-soft: #fcebe8;
  --violet: #57479f;
  --violet-soft: #efecfa;
  --blue: #2f5fa8;
  --blue-soft: #e9eff9;
  /* 모양 */
  --r-xl: 26px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-app: 0 40px 90px -30px rgba(120, 64, 30, 0.28), 0 10px 30px -12px rgba(120, 64, 30, 0.14);
  --shadow-card: 0 1px 0 var(--line), 0 14px 30px -18px rgba(120, 70, 40, 0.32);
  /* 글꼴 */
  --font: 'Pretendard Variable', Pretendard, 'Noto Sans KR', 'Apple SD Gothic Neo', 'Malgun Gothic', system-ui, sans-serif;
  --font-say: 'Gowun Dodum', 'Pretendard Variable', Pretendard, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  /* 움직임 */
  --ease-out: cubic-bezier(.16, 1, .3, 1);       /* 길게 미끄러지며 멈춤 */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1); /* 살짝 넘쳤다 돌아옴 */
  --ease-soft: cubic-bezier(.45, 0, .2, 1);
  /* 상징: 숨 (살구빛 덩어리 + 듣고 있음을 뜻하는 청록 점) */
  --emblem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cdefs%3E%3CradialGradient id='g' cx='38%25' cy='32%25' r='78%25'%3E%3Cstop offset='0' stop-color='%23FFEEDF'/%3E%3Cstop offset='.5' stop-color='%23F6C6A0'/%3E%3Cstop offset='1' stop-color='%23E58F60'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M33.5 5.5c13.6 0 24.5 9.6 24.5 24.6 0 15.6-11.4 28.4-26.4 28.4C16.9 58.5 6 47.7 6 33.4 6 18.3 18.8 5.5 33.5 5.5z'/%3E%3Cpath fill='%23fff' fill-opacity='.6' d='M19.5 22.5c3.6-5.4 10.6-8 16-6.4-7 .9-12.6 5.6-14.6 11.2-1.9-1.2-2.6-3-1.4-4.8z'/%3E%3Ccircle cx='50' cy='50' r='6.5' fill='%231C6763' stroke='%23fff' stroke-width='3'/%3E%3C/svg%3E");
}

@property --sheen { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font); color: var(--ink); font-size: 15.5px; line-height: 1.55; letter-spacing: -0.012em;
  background: var(--ground); -webkit-font-smoothing: antialiased;
  display: flex; justify-content: center; align-items: center; position: relative; overflow: hidden;
}
/* 배경 빛: 아주 천천히 흐르는 두 줄기 볕 */
body::before, body::after {
  content: ''; position: fixed; z-index: 0; border-radius: 50%; pointer-events: none; filter: blur(40px);
}
body::before { width: 720px; height: 620px; left: -220px; top: -260px; background: radial-gradient(closest-side, rgba(246, 198, 160, 0.55), transparent); animation: drift-a 26s var(--ease-soft) infinite alternate; }
body::after { width: 680px; height: 560px; right: -240px; bottom: -240px; background: radial-gradient(closest-side, rgba(42, 133, 127, 0.16), transparent); animation: drift-b 32s var(--ease-soft) infinite alternate; }
@keyframes drift-a { to { transform: translate(120px, 80px) scale(1.12); } }
@keyframes drift-b { to { transform: translate(-90px, -60px) scale(1.08); } }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; padding: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(28, 103, 99, 0.45); outline-offset: 2px; }
svg { display: block; }

/* ---------- 앱 틀 ---------- */
.app {
  width: min(100%, 460px); height: min(100dvh - 40px, 920px); background: var(--ground); border-radius: 36px;
  box-shadow: var(--shadow-app), 0 0 0 1px rgba(230, 212, 196, 0.7);
  display: flex; flex-direction: column; overflow: hidden; position: relative; z-index: 1;
  animation: app-in 0.9s var(--ease-out) both;
}
@keyframes app-in { from { opacity: 0; transform: translateY(18px) scale(0.985); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) {
  body { display: block; }
  .app { width: 100%; height: 100dvh; border-radius: 0; box-shadow: none; }
}

/* ---------- 상단 ---------- */
.bar { display: flex; align-items: center; gap: 10px; padding: 16px 18px 10px; }
.mini-orb { width: 34px; height: 34px; flex: none; background: var(--emblem) center / contain no-repeat; animation: emblem-breathe 6s var(--ease-soft) infinite; }
@keyframes emblem-breathe { 0%, 100% { transform: scale(1) rotate(0deg); } 50% { transform: scale(1.06) rotate(-4deg); } }
.bar-title { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.bar-title b { font-family: var(--font-say); font-weight: 400; font-size: 20px; letter-spacing: -0.02em; }
.bar-title span { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .grow { flex: 1; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--ink-2); transition: background 0.2s, transform 0.5s var(--ease-out); }
.icon-btn:hover { background: var(--wash); }
.icon-btn:active svg { transform: rotate(-120deg); }
.icon-btn svg { width: 20px; height: 20px; transition: transform 0.5s var(--ease-out); }
.demo-ribbon {
  margin: 0 18px; padding: 5px 12px; border-radius: 999px; background: var(--glow-2); color: #8a4a1f;
  font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; align-self: flex-start;
}
.demo-ribbon svg { width: 13px; height: 13px; }
.auth-chip { display: none; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--mint); padding: 5px 10px; border-radius: 999px; white-space: nowrap; position: relative; overflow: hidden; }
.auth-chip.on { display: inline-flex; animation: chip-in 0.7s var(--ease-spring) both; }
.auth-chip.on::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.85) 50%, transparent 70%); transform: translateX(-120%); animation: shine 1.1s 0.35s var(--ease-soft) both; }
.auth-chip svg { width: 13px; height: 13px; }
@keyframes chip-in { from { opacity: 0; transform: translateY(-6px) scale(0.8); } to { opacity: 1; transform: none; } }
@keyframes shine { to { transform: translateX(120%); } }

/* ---------- 진행 중인 일 ---------- */
.tray { margin: 10px 18px 0; border-radius: var(--r-md); background: var(--paper); box-shadow: 0 0 0 1px var(--line); overflow: hidden; animation: tray-in 0.6s var(--ease-out) both; }
@keyframes tray-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.tray[hidden] { display: none; }
.tray-head { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 14px; text-align: left; }
.tray-head b { font-size: 13.5px; }
.tray-head .count { font-size: 12px; font-weight: 700; color: var(--brand); background: var(--mint); border-radius: 999px; padding: 1px 8px; font-variant-numeric: tabular-nums; }
.tray-head .dots { display: flex; gap: 4px; flex: 1; }
.tray-head .dots i { width: 18px; height: 5px; border-radius: 3px; background: var(--line); transition: background 0.5s var(--ease-out); }
.tray-head .dots i.done { background: var(--brand); }
.tray-head .dots i.active { background: linear-gradient(90deg, var(--brand-2), var(--glow), var(--brand-2)); background-size: 200% 100%; animation: flow 1.8s linear infinite; }
@keyframes flow { to { background-position: -200% 0; } }
.tray-head svg { width: 16px; height: 16px; color: var(--muted); transition: transform 0.45s var(--ease-out); }
.tray.open .tray-head svg { transform: rotate(180deg); }
.tray-list { list-style: none; margin: 0; padding: 0 14px 10px; display: none; flex-direction: column; gap: 2px; }
.tray.open .tray-list { display: flex; }
.tray.open .task { animation: rise 0.5s var(--ease-out) both; }
.tray.open .task:nth-child(2) { animation-delay: 0.05s; } .tray.open .task:nth-child(3) { animation-delay: 0.1s; } .tray.open .task:nth-child(4) { animation-delay: 0.15s; } .tray.open .task:nth-child(n+5) { animation-delay: 0.2s; }
.task { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 14px; }
.task .ti { width: 20px; height: 20px; flex: none; display: grid; place-items: center; }
.task .ti svg { width: 18px; height: 18px; }
.task .tt { flex: 1; min-width: 0; }
.task .tt small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task .ts { font-size: 12px; color: var(--muted); white-space: nowrap; }
.task.done .ti { color: var(--brand); animation: pop 0.6s var(--ease-spring) both; }
.task.in_progress .ti { color: var(--brand-2); }
.task.needs_info .ti, .task.waiting_customer .ti { color: var(--amber); }
.task.waiting_customer .ti svg { animation: wave-hand 2.4s var(--ease-soft) infinite; transform-origin: 60% 90%; }
@keyframes wave-hand { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(14deg); } 80% { transform: rotate(-8deg); } 90% { transform: rotate(6deg); } }
.task.cancelled .tt { color: var(--faint); text-decoration: line-through; }
.task.cancelled .ti, .task.on_hold .ti { color: var(--faint); }
.spin { width: 15px; height: 15px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 25%, var(--brand-2)); -webkit-mask: radial-gradient(circle, transparent 4.5px, #000 5px); mask: radial-gradient(circle, transparent 4.5px, #000 5px); animation: rot 0.9s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- 대화 흐름 ---------- */
.stream { flex: 1; overflow-y: auto; padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.stream::-webkit-scrollbar { width: 0; }

/* 첫 화면: 숨 → 인사 → 예시가 차례로 */
.hero { margin: auto 0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 8px 2px 4px; }
.hero > * { animation: rise 0.9s var(--ease-out) both; }
.hero > :nth-child(2) { animation-delay: 0.12s; }
.hero > :nth-child(3) { animation-delay: 0.22s; }
.hero > :nth-child(4) { animation-delay: 0.32s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.orb {
  width: 128px; height: 128px; position: relative; margin: 10px 0 26px;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  background: radial-gradient(circle at 38% 32%, #ffeedf 0%, var(--glow) 52%, var(--glow-deep) 100%);
  box-shadow: 0 24px 50px -16px rgba(229, 143, 96, 0.6), inset 0 -10px 22px rgba(160, 70, 20, 0.12);
  animation: rise 0.9s var(--ease-out) both, breathe 5s var(--ease-soft) 0.9s infinite, morph 11s var(--ease-soft) infinite;
}
.orb::before, .orb::after { content: ''; position: absolute; inset: -16px; border-radius: inherit; background: radial-gradient(closest-side, rgba(246, 198, 160, 0.5), transparent); animation: breathe 5s var(--ease-soft) 0.4s infinite; z-index: -1; }
.orb::after { inset: -34px; opacity: 0.6; animation-delay: 0.9s; }
@keyframes breathe { 0%, 100% { transform: scale(0.96); } 50% { transform: scale(1.05); } }
@keyframes morph {
  0%, 100% { border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; }
  33% { border-radius: 54% 46% 44% 56% / 46% 54% 48% 52%; }
  66% { border-radius: 50% 50% 56% 44% / 56% 50% 50% 44%; }
}
.hero h1 { margin: 0; font-family: var(--font-say); font-weight: 400; font-size: 27px; letter-spacing: -0.035em; line-height: 1.38; text-wrap: balance; }
.hero p { margin: 10px 0 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.hero .when { margin-top: 6px; font-size: 12px; color: var(--faint); }
.suggest { width: 100%; display: flex; flex-direction: column; gap: 8px; margin-top: 26px; }
.sg {
  text-align: left; background: var(--paper); border-radius: 18px; padding: 12px 16px 12px 12px; position: relative; overflow: hidden;
  display: grid; grid-template-columns: 38px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  box-shadow: 0 0 0 1px var(--line); animation: rise 0.8s var(--ease-out) both;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.sg:nth-child(1) { animation-delay: 0.38s; } .sg:nth-child(2) { animation-delay: 0.46s; } .sg:nth-child(3) { animation-delay: 0.54s; } .sg:nth-child(4) { animation-delay: 0.62s; }
.sg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(252, 229, 210, 0.9) 50%, transparent 65%); transform: translateX(-110%); transition: transform 0.9s var(--ease-out); pointer-events: none; }
.sg:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line-2), 0 16px 30px -20px rgba(120, 70, 40, 0.45); }
.sg:hover::after { transform: translateX(110%); }
.sg:active { transform: scale(0.985); transition-duration: 0.12s; }
.sg .sg-ic { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; }
.sg .sg-ic svg { width: 19px; height: 19px; }
.sg b { font-size: 15.5px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; }
.sg span:not(.sg-ic) { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.tone-green .sg-ic { background: var(--mint); color: var(--brand); }
.tone-blue .sg-ic { background: var(--blue-soft); color: var(--blue); }
.tone-amber .sg-ic { background: var(--glow-2); color: #9a4e25; }
.tone-violet .sg-ic { background: var(--violet-soft); color: var(--violet); }

/* 고객의 말: 오른쪽에서 부드럽게 */
.row { display: flex; gap: 10px; align-items: flex-start; }
.row.me { justify-content: flex-end; animation: me-in 0.55s var(--ease-out) both; }
@keyframes me-in { from { opacity: 0; transform: translate(14px, 6px) scale(0.96); transform-origin: right bottom; } to { opacity: 1; transform: none; } }
/* 상담사(AI)의 말: 번진 글씨가 또렷해지듯 */
.row.ai { animation: ink-in 0.8s var(--ease-out) both; }
@keyframes ink-in { from { opacity: 0; filter: blur(6px); transform: translateY(6px); } to { opacity: 1; filter: none; transform: none; } }
.row.agent { animation: rise 0.6s var(--ease-out) both; }
.avatar { width: 30px; height: 30px; flex: none; margin-top: 2px; background: var(--emblem) center / contain no-repeat; animation: avatar-in 0.7s var(--ease-spring) both; }
@keyframes avatar-in { from { opacity: 0; transform: scale(0.5) rotate(-20deg); } to { opacity: 1; transform: none; } }
.avatar.agent { background: radial-gradient(circle at 34% 30%, #ece6ff 0%, #9a85e6 48%, var(--violet) 90%); border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--violet-soft); }
.bubble { max-width: 86%; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere; font-size: 15.5px; }
.row.ai .bubble { max-width: calc(100% - 40px); padding: 1px 0 0; font-family: var(--font-say); font-size: 18px; line-height: 1.6; letter-spacing: -0.025em; color: var(--ink); }
.row.ai .bubble b { font-family: var(--font); font-weight: 700; font-size: 16.5px; color: var(--ink); background: linear-gradient(transparent 62%, rgba(246, 198, 160, 0.55) 62%); padding: 0 2px; }
.row.me .bubble { padding: 10px 15px; border-radius: 20px 20px 6px 20px; background: var(--glow-2); color: var(--ink); }
.row.me .via { display: flex; gap: 8px; align-items: center; justify-content: flex-end; font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.row.me .via button { color: var(--brand); font-weight: 600; font-size: 11.5px; border-bottom: 1px solid currentColor; line-height: 1.3; }
.row.agent .bubble { padding: 11px 15px; border-radius: 6px 20px 20px 20px; background: var(--violet-soft); }
.row.agent .who { display: block; font-size: 11.5px; font-weight: 700; color: var(--violet); margin-bottom: 2px; }
.bubble b { font-weight: 700; }
.row.aborted .bubble { opacity: 0.4; transition: opacity 0.6s; }
.row.ai.cont { margin-top: -8px; }
.row.ai.cont .avatar { visibility: hidden; }

.note { align-self: flex-start; margin-left: 40px; font-size: 13.5px; color: var(--muted); display: flex; gap: 6px; align-items: flex-start; animation: rise 0.6s var(--ease-out) both; }
.note svg { width: 14px; height: 14px; margin-top: 3px; flex: none; color: var(--brand-2); }

/* 이벤트 칩: 튀어나온 뒤 빛이 한 번 지나감 */
.event {
  align-self: center; display: inline-flex; align-items: center; gap: 6px; position: relative; overflow: hidden;
  background: var(--mint); color: var(--brand); border-radius: 999px; padding: 5px 13px; font-size: 12.5px; font-weight: 600;
  animation: event-in 0.7s var(--ease-spring) both;
}
.event::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.9) 50%, transparent 70%); transform: translateX(-120%); animation: shine 1.2s 0.3s var(--ease-soft) both; }
.event svg { width: 13px; height: 13px; }
.event.warn { background: var(--amber-soft); color: var(--amber); animation: event-in 0.7s var(--ease-spring) both, nudge 0.5s 0.5s var(--ease-soft); }
@keyframes event-in { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { translate: 0; } 25% { translate: -3px; } 75% { translate: 3px; } }

/* 생각 중: 숨쉬는 세 점 + 글자 위로 지나가는 볕 */
.thinking { align-self: flex-start; margin-left: 40px; display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); animation: rise 0.5s var(--ease-out) both; }
.thinking .wave { display: flex; gap: 4px; }
.thinking .wave i { width: 7px; height: 7px; border-radius: 50%; background: var(--glow-deep); animation: hop 1.4s infinite var(--ease-soft); }
.thinking .wave i:nth-child(2) { animation-delay: 0.18s; background: var(--glow); } .thinking .wave i:nth-child(3) { animation-delay: 0.36s; background: var(--brand-2); }
@keyframes hop { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.35; } 40% { transform: scale(1.15); opacity: 1; } }
.shimmer { background: linear-gradient(90deg, var(--muted) 0%, var(--muted) 35%, var(--glow-deep) 50%, var(--muted) 65%, var(--muted) 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: sh 2.2s linear infinite; }
@keyframes sh { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* ---------- 카드 ---------- */
.card {
  margin-left: 40px; background: var(--paper); border-radius: var(--r-xl); box-shadow: var(--shadow-card), 0 0 0 1px var(--line);
  padding: 18px; display: flex; flex-direction: column; gap: 12px; position: relative;
  animation: card-rise 0.75s var(--ease-out) both;
}
@keyframes card-rise { from { opacity: 0; transform: translateY(18px) scale(0.97); clip-path: inset(0 0 30% 0 round 26px); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0 round 26px); } }
.card > * { animation: rise 0.6s var(--ease-out) both; }
.card > :nth-child(2) { animation-delay: 0.08s; } .card > :nth-child(3) { animation-delay: 0.14s; } .card > :nth-child(4) { animation-delay: 0.2s; } .card > :nth-child(5) { animation-delay: 0.26s; } .card > :nth-child(n+6) { animation-delay: 0.32s; }
/* 확인이 필요한 카드: 테두리를 따라 빛이 한 바퀴 돌고, 살구빛 후광이 남는다 */
.card.attn { box-shadow: var(--shadow-card), 0 0 0 1.5px var(--glow), 0 0 0 6px rgba(252, 229, 210, 0.7); animation: card-rise 0.75s var(--ease-out) both, halo 3.2s 0.9s var(--ease-soft) 2; }
.card.attn::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--sheen), transparent 0deg 250deg, var(--glow-deep) 300deg, #fff 330deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: sheen 1.8s 0.45s var(--ease-soft) both;
}
@keyframes sheen { from { --sheen: 0deg; opacity: 1; } 90% { opacity: 1; } to { --sheen: 360deg; opacity: 0; } }
@keyframes halo { 0%, 100% { box-shadow: var(--shadow-card), 0 0 0 1.5px var(--glow), 0 0 0 6px rgba(252, 229, 210, 0.7); } 50% { box-shadow: var(--shadow-card), 0 0 0 1.5px var(--glow), 0 0 0 11px rgba(252, 229, 210, 0.35); } }
.card.dim { opacity: 0.55; filter: saturate(0.35); transition: opacity 0.6s, filter 0.6s; }
.card.warn { background: var(--amber-soft); box-shadow: 0 0 0 1px #f2d5ae; animation: card-rise 0.75s var(--ease-out) both, nudge 0.5s 0.6s var(--ease-soft); }
.c-head { display: flex; align-items: center; gap: 12px; }
.c-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--mint); color: var(--brand); }
.c-ic svg { width: 20px; height: 20px; }
.card.attn .c-ic { background: var(--glow-2); color: #9a4e25; animation: avatar-in 0.7s 0.15s var(--ease-spring) both; }
.c-ic.amber { background: var(--amber-soft); color: var(--amber); }
.c-ic.violet { background: var(--violet-soft); color: var(--violet); }
.c-ic.blue { background: var(--blue-soft); color: var(--blue); }
.c-title { flex: 1; min-width: 0; }
.c-title small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.c-title b { font-size: 16.5px; letter-spacing: -0.02em; line-height: 1.4; }
.c-text { margin: 0; color: var(--ink-2); font-size: 14px; }
a.c-text { color: var(--brand); font-weight: 600; }
.c-foot { font-size: 12px; color: var(--faint); display: flex; gap: 6px; align-items: flex-start; }
.c-foot svg { width: 13px; height: 13px; margin-top: 2px; flex: none; }
.pill { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; background: var(--wash); color: var(--muted); }
.pill.green { background: var(--mint); color: var(--brand); }
.pill.amber { background: var(--amber-soft); color: var(--amber); }
.pill.red { background: var(--red-soft); color: var(--red); }
.pill.blue { background: var(--blue-soft); color: var(--blue); }

/* 버튼: 누르면 살짝 눌리고, 주요 버튼은 머금은 빛이 지나간다 */
.btn { height: 52px; border-radius: 17px; font-weight: 700; font-size: 15.5px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; overflow: hidden; transition: transform 0.25s var(--ease-spring), box-shadow 0.35s var(--ease-out), background 0.3s; }
.btn:active { transform: scale(0.97); transition-duration: 0.1s; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 10px 22px -12px rgba(28, 103, 99, 0.8); }
.btn.primary::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%); transform: translateX(-120%); transition: transform 0.9s var(--ease-out); }
.btn.primary:hover { box-shadow: 0 14px 28px -12px rgba(28, 103, 99, 0.85); }
.btn.primary:hover::after { transform: translateX(120%); }
.card.attn .btn.primary::after { animation: shine 1.4s 1.6s var(--ease-soft) both; }
.btn.ghost { background: var(--wash); color: var(--ink-2); }
.btn.ghost:hover { background: var(--glow-2); }
.btn.block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }
.btn:disabled::after { display: none; }
.btn-row { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; }
.link-btn { color: var(--brand); font-size: 13px; font-weight: 700; }

/* 차량 */
.plate { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1.5px solid var(--ink); border-radius: 6px; background: #fff; font-weight: 800; font-size: 14px; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.cars { display: flex; flex-direction: column; gap: 8px; }
.car { border-radius: var(--r-md); padding: 12px 14px; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.35s var(--ease-out), background 0.35s, transform 0.35s var(--ease-out); }
button.car:hover { box-shadow: 0 0 0 1.5px var(--brand-2); background: var(--mint-2); transform: translateX(2px); }
button.car:hover .go { transform: translateX(3px); }
.car .car-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--wash); display: grid; place-items: center; color: var(--ink-2); flex: none; }
.car .car-ic svg { width: 24px; height: 24px; }
.car .car-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.car .car-body b { font-size: 15.5px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; white-space: nowrap; }
.plate { white-space: nowrap; flex: none; }
.car .car-body small { color: var(--muted); font-size: 12.5px; }
.car .go { color: var(--brand); font-size: 13px; font-weight: 700; white-space: nowrap; transition: transform 0.35s var(--ease-out); }
.mini-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mini { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mini:last-child { border-bottom: none; }
.mini .m-body { flex: 1; min-width: 0; }
.mini .m-body b { font-size: 14.5px; display: block; }
.mini .m-body small { display: block; color: var(--muted); font-size: 12.5px; }

/* 확인(미리보기) */
.eyebrow { font-size: 12px; font-weight: 700; color: #9a4e25; letter-spacing: 0.02em; display: inline-flex; align-items: center; gap: 6px; }
.card.attn > .eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--glow-deep); animation: dot-pulse 1.8s var(--ease-soft) infinite; }
@keyframes dot-pulse { 0% { box-shadow: 0 0 0 0 rgba(233, 150, 104, 0.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(233, 150, 104, 0); } }
.change { display: grid; grid-template-columns: 1fr 22px 1fr; align-items: center; gap: 6px; background: var(--wash); border-radius: var(--r-sm); padding: 12px; }
.change .from, .change .to { font-size: 13.5px; line-height: 1.45; }
.change .from { color: var(--muted); }
.change .from small, .change .to small { display: block; font-size: 11px; font-weight: 700; color: var(--faint); margin-bottom: 2px; }
.change .to { font-weight: 700; color: var(--ink); }
.change .arrow { color: var(--glow-deep); animation: arrow-go 2.4s 0.8s var(--ease-soft) infinite; }
@keyframes arrow-go { 0%, 60%, 100% { transform: none; } 30% { transform: translateX(3px); } }
.change .arrow svg { width: 20px; height: 20px; }
.amount { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 2px 2px 0; }
.amount span { color: var(--muted); font-size: 13.5px; }
.amount b { font-size: 27px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; background: linear-gradient(var(--glow), var(--glow)) left 88% / 0% 7px no-repeat; animation: underline 0.9s 0.6s var(--ease-out) both; }
@keyframes underline { to { background-size: 100% 7px; } }
.amount small { display: block; text-align: right; font-size: 11.5px; color: var(--faint); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 7px 14px; margin: 0; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
/* 도장: 위에서 눌러 찍히듯 */
.stamp { position: relative; overflow: hidden; }
.stamp::after {
  content: attr(data-stamp); position: absolute; top: 16px; right: 16px; transform: rotate(-7deg);
  color: #7a5a48; border: 2px solid #b79a88; background: rgba(255, 255, 255, 0.8);
  font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 8px; letter-spacing: 0.02em;
  animation: stamp-drop 0.55s 0.35s var(--ease-spring) both;
}
@keyframes stamp-drop { from { opacity: 0; transform: rotate(-16deg) scale(1.9); } 70% { opacity: 1; } to { opacity: 1; transform: rotate(-7deg) scale(1); } }
.stamp .c-head .pill { visibility: hidden; }

/* 완료: 원이 튀어나오고 체크가 그려지며 링이 퍼진다 */
.done-mark { width: 54px; height: 54px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; position: relative; flex: none; animation: pop 0.6s var(--ease-spring) both; }
.done-mark::before, .done-mark::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--brand-2); animation: burst 1.1s 0.25s var(--ease-out) both; }
.done-mark::after { border-color: var(--glow); animation-delay: 0.4s; }
.done-mark svg { width: 27px; height: 27px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw 0.55s 0.3s var(--ease-out) forwards; }
@keyframes pop { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes burst { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-head { display: flex; align-items: center; gap: 14px; }
.done-head b { font-family: var(--font-say); font-weight: 400; font-size: 19px; letter-spacing: -0.02em; display: block; }
.done-head small { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }

/* 문서 */
.paper { position: relative; overflow: hidden; border-radius: 14px; background: linear-gradient(#fffefb, #fffaf3); box-shadow: 0 0 0 1px var(--line), 0 10px 20px -16px rgba(120, 70, 40, 0.4); padding: 16px 16px 14px; font-size: 13px; color: var(--ink-2); animation: paper-in 0.8s 0.2s var(--ease-out) both; transform-origin: top center; }
@keyframes paper-in { from { opacity: 0; transform: perspective(600px) rotateX(-14deg) translateY(-6px); } to { opacity: 1; transform: none; } }
.paper h5 { margin: 0 0 8px; font-size: 14.5px; color: var(--ink); }
.paper p { margin: 2px 0; }
.paper::after { content: '가상 문서 · 제안 데모'; position: absolute; right: -36px; bottom: 18px; transform: rotate(-18deg); font-size: 11px; font-weight: 800; color: rgba(166, 90, 12, 0.45); border: 2px solid rgba(166, 90, 12, 0.32); padding: 3px 44px; }

/* 청구 */
.claim { border-radius: var(--r-md); box-shadow: 0 0 0 1px var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.claim-top { display: flex; align-items: center; gap: 8px; }
.claim-top b { flex: 1; font-size: 15px; }
.claim small { color: var(--muted); font-size: 12.5px; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; animation: rise 0.5s var(--ease-out) both; }
.checks li:nth-child(2) { animation-delay: 0.07s; } .checks li:nth-child(3) { animation-delay: 0.14s; } .checks li:nth-child(n+4) { animation-delay: 0.21s; }
.checks li i { width: 18px; height: 18px; border-radius: 50%; flex: none; display: grid; place-items: center; margin-top: 1px; }
.checks li i svg { width: 11px; height: 11px; }
.checks li.ok i { background: var(--mint); color: var(--brand); }
.checks li.need i { background: var(--amber-soft); color: var(--amber); }
.checks li.bad i { background: var(--red-soft); color: var(--red); }
.checks li.todo i { border: 1.5px solid var(--line-2); }

/* 첨부 */
.files { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.file { position: relative; border-radius: 14px; box-shadow: 0 0 0 1.5px var(--line); padding: 12px 10px 10px; text-align: left; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; line-height: 1.35; color: var(--ink-2); transition: box-shadow 0.3s var(--ease-out), background 0.3s, transform 0.3s var(--ease-spring); }
.file:hover { transform: translateY(-2px); }
.file .f-ic { width: 30px; height: 36px; border-radius: 5px; background: linear-gradient(#fffaf4, #f6eadf); border: 1px solid var(--line); position: relative; }
.file .f-ic::before { content: ''; position: absolute; left: 6px; right: 6px; top: 9px; height: 2px; background: var(--line-2); box-shadow: 0 6px 0 var(--line-2), 0 12px 0 var(--line); }
.file.blurry .f-ic { filter: blur(1.2px); }
.file.sel { box-shadow: 0 0 0 2px var(--brand-2); background: var(--mint-2); }
.file .f-check { position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; background: #fff; transition: background 0.25s, border-color 0.25s; }
.file.sel .f-check { background: var(--brand); border-color: var(--brand); color: #fff; animation: pop 0.45s var(--ease-spring); }
.file .f-check svg { width: 11px; height: 11px; }

/* 보안 입력: 어두운 금고 */
.secure-box { background: #1f2a29; color: #eef5f3; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; animation: rise 0.6s var(--ease-out) both; }
.secure-box label { font-size: 12px; color: #a8bdb9; display: flex; flex-direction: column; gap: 6px; }
.secure-box select, .secure-box input { height: 46px; border-radius: 12px; border: 1px solid #344543; background: #263533; color: #fff; padding: 0 14px; outline: none; transition: border-color 0.25s, box-shadow 0.25s; }
.secure-box input { font-variant-numeric: tabular-nums; letter-spacing: 0.12em; }
.secure-box input:focus, .secure-box select:focus { border-color: var(--brand-2); box-shadow: 0 0 0 4px rgba(42, 133, 127, 0.25); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: #263533; border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { cursor: pointer; flex-direction: row; justify-content: center; align-items: center; height: 36px; border-radius: 9px; font-size: 13px; color: #cfe1dd; transition: background 0.25s; }
.seg input { display: none; }
.seg label:has(input:checked) { background: var(--brand-2); color: #fff; font-weight: 700; }
.secure-head { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #9fd6cf; font-weight: 700; }
.secure-head svg { width: 14px; height: 14px; }

/* ---------- 하단 입력 ---------- */
.dock { padding: 10px 14px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(rgba(255, 247, 239, 0), var(--ground) 30%); position: relative; }
.compose { display: flex; align-items: center; gap: 8px; }
.field { flex: 1; min-width: 0; height: 54px; border-radius: 27px; background: var(--paper); display: flex; align-items: center; padding: 0 6px 0 18px; box-shadow: 0 0 0 1px var(--line); transition: box-shadow 0.35s var(--ease-out); }
.field:focus-within { box-shadow: 0 0 0 1.5px var(--brand-2), 0 0 0 6px rgba(42, 133, 127, 0.12); }
.field input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 15.5px; }
.field input::placeholder { color: var(--faint); }
.send { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; animation: pop 0.4s var(--ease-spring); }
.send[hidden] { display: none; }
.send svg { width: 18px; height: 18px; }
.mic { width: 54px; height: 54px; flex: none; color: #7a3f1f; display: grid; place-items: center; position: relative;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: radial-gradient(circle at 38% 32%, #ffeedf, var(--glow) 55%, var(--glow-deep));
  box-shadow: 0 12px 24px -12px rgba(229, 143, 96, 0.9); animation: morph 9s var(--ease-soft) infinite; transition: transform 0.35s var(--ease-spring); }
.mic:hover { transform: scale(1.06); }
.mic svg { width: 23px; height: 23px; }

.voice { display: none; align-items: center; gap: 12px; min-height: 54px; background: var(--paper); border-radius: 27px; padding: 5px 7px 5px 6px; box-shadow: 0 0 0 1px var(--line), 0 14px 30px -20px rgba(120, 70, 40, 0.45); }
.dock.live .voice { display: flex; animation: rise 0.5s var(--ease-out) both; }
.dock.live .compose { display: none; }
.v-orb { width: 44px; height: 44px; flex: none; position: relative;
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%; background: radial-gradient(circle at 38% 32%, #ffeedf, var(--glow) 55%, var(--glow-deep));
  animation: morph 8s var(--ease-soft) infinite; transition: transform 0.2s; }
.v-orb::before, .v-orb::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--glow); opacity: 0; pointer-events: none; }
.v-orb.capturing::before, .v-orb.capturing::after { animation: ripple 1.6s var(--ease-out) infinite; }
.v-orb.capturing::after { animation-delay: 0.8s; }
@keyframes ripple { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.9); opacity: 0; } }
.v-orb.speaking { animation: morph 3s var(--ease-soft) infinite, talk 0.9s var(--ease-soft) infinite; }
@keyframes talk { 0%, 100% { scale: 1; } 30% { scale: 1.08; } 60% { scale: 0.97; } }
.v-orb.thinking { background: conic-gradient(from var(--sheen), var(--glow-deep), var(--glow-2), var(--brand-2), var(--glow-deep)); animation: morph 4s var(--ease-soft) infinite, think 2.2s linear infinite; }
@keyframes think { to { --sheen: 360deg; } }
.v-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.v-text b { font-size: 15px; white-space: nowrap; }
.v-text span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars { display: flex; align-items: center; gap: 3px; height: 26px; }
.bars i { width: 3px; border-radius: 3px; background: linear-gradient(var(--glow-deep), var(--brand-2)); height: 4px; transition: height 0.09s; }
.v-btn { height: 40px; padding: 0 14px; border-radius: 20px; background: var(--wash); font-size: 13px; font-weight: 700; color: var(--ink-2); white-space: nowrap; transition: background 0.25s; }
.v-btn:hover { background: var(--glow-2); }
.v-btn.end { background: var(--ink); color: #fff; width: 40px; padding: 0; border-radius: 50%; display: grid; place-items: center; flex: none; }
.v-btn.end svg { width: 16px; height: 16px; }
.v-btn svg { width: 14px; height: 14px; }
@media (max-width: 420px) { .bars i:nth-child(n+8) { display: none; } .v-orb { width: 42px; height: 42px; } .voice { gap: 10px; } }
.v-btn[hidden] { display: none; }

/* 토스트: 유리처럼 떠올라 스프링으로 멈춤 */
.toast {
  position: absolute; left: 50%; bottom: 100px; transform: translate(-50%, 14px) scale(0.94);
  background: rgba(43, 35, 32, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff;
  padding: 11px 18px; border-radius: 16px; font-size: 13.5px; opacity: 0; pointer-events: none; width: max-content; max-width: 86%; text-align: center; z-index: 5;
  transition: opacity 0.3s var(--ease-out), transform 0.5s var(--ease-spring);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- 루나 마이크 버튼 (button#vOrb) ----------
   루나 화면에서는 #vOrb가 버튼이다. 켜져 있으면 살구빛 숨이 쉬고 물결이 퍼지며, 꺼지면 잦아든다.
   기본 화면의 div#vOrb.v-orb에는 적용되지 않는다. */
button#vOrb {
  --mic-size: 38px;
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  width: auto; height: auto; min-width: 48px; min-height: 44px; padding: 0 2px; border: 0; border-radius: 14px;
  background: transparent; color: var(--ink); cursor: pointer; box-shadow: none; touch-action: manipulation; animation: none;
}
button#vOrb::before, button#vOrb::after { content: none; animation: none; }
button#vOrb .mic-face {
  display: grid; place-items: center; position: relative; width: var(--mic-size); height: var(--mic-size);
  border-radius: 50%; background: var(--wash); color: var(--muted); box-shadow: 0 0 0 1px var(--line-2);
  transition: background 0.6s var(--ease-out), color 0.4s, box-shadow 0.6s var(--ease-out), border-radius 0.8s var(--ease-out), transform 0.45s var(--ease-spring);
}
button#vOrb:hover .mic-face { transform: scale(1.05); }
button#vOrb:active .mic-face { transform: scale(0.94); transition-duration: 0.1s; }
button#vOrb svg { width: 48%; height: 48%; position: relative; z-index: 1; }
button#vOrb[aria-pressed="true"] .mic-face {
  color: #7a3f1f; box-shadow: 0 10px 22px -10px rgba(229, 143, 96, 0.85);
  background: radial-gradient(circle at 38% 32%, #ffeedf, var(--glow) 55%, var(--glow-deep));
  border-radius: 46% 54% 50% 50% / 52% 46% 54% 48%;
  animation: morph 8s var(--ease-soft) infinite, breathe 4.6s var(--ease-soft) infinite;
}
button#vOrb[aria-pressed="true"] .mic-face::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--glow); pointer-events: none;
  animation: ripple 2.4s var(--ease-out) infinite;
}
button#vOrb.capturing .mic-face::before { animation-duration: 1.1s; border-color: var(--brand-2); }
button#vOrb.speaking .mic-face { animation: morph 3s var(--ease-soft) infinite, talk 0.9s var(--ease-soft) infinite; }
button#vOrb.thinking .mic-face { background: conic-gradient(from var(--sheen), var(--glow-deep), var(--glow-2), var(--brand-2), var(--glow-deep)); animation: morph 4s var(--ease-soft) infinite, think 2.2s linear infinite; }
button#vOrb[aria-pressed="false"] .mic-face::after {
  content: ''; position: absolute; z-index: 2; width: 52%; height: max(2px, calc(var(--mic-size) * 0.034)); border-radius: 4px;
  background: currentColor; box-shadow: 0 -2px var(--wash); transform: rotate(45deg); animation: slash 0.4s var(--ease-out) both;
}
@keyframes slash { from { transform: rotate(45deg) scaleX(0); } to { transform: rotate(45deg) scaleX(1); } }
button#vOrb .mic-caption { display: inline-flex; align-items: center; font-size: 11px; font-weight: 600; line-height: 1.3; white-space: nowrap; color: var(--ink-2); }
button#vOrb .mic-state { display: none; }
button#vOrb:disabled { cursor: default; opacity: 0.6; }
button#vOrb[hidden] { display: none; }
/* 첫 화면 가운데의 큰 숨 */
.hero button#vOrb { --mic-size: clamp(96px, 16svh, 128px); gap: 16px; margin: 4px 0 22px; padding: 4px 8px; position: relative; }
.hero button#vOrb .mic-face { box-shadow: 0 0 0 10px rgba(252, 229, 210, 0.55), 0 0 0 1px var(--line-2); }
.hero button#vOrb[aria-pressed="true"] .mic-face { box-shadow: 0 24px 50px -16px rgba(229, 143, 96, 0.6), inset 0 -10px 22px rgba(160, 70, 20, 0.12); }
.hero button#vOrb[aria-pressed="true"] .mic-face::before { inset: -12px; border-width: 1.5px; }
.hero button#vOrb[aria-pressed="true"]::before {
  content: ''; position: absolute; z-index: -1; width: calc(var(--mic-size) + 70px); height: calc(var(--mic-size) + 70px);
  top: -31px; left: 50%; margin-left: calc((var(--mic-size) + 70px) / -2); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(246, 198, 160, 0.45), transparent); pointer-events: none;
  animation: breathe 5s var(--ease-soft) infinite;
}
.hero button#vOrb .mic-caption { font-size: 14px; padding: 5px 12px; border-radius: 999px; background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.hero button#vOrb[aria-pressed="true"] .mic-caption { color: var(--brand); background: var(--mint); box-shadow: none; }
.hero button#vOrb .mic-state { display: inline; font-weight: 700; }
.hero button#vOrb .mic-state::after { content: '·'; margin: 0 0.4em; }

/* Keyless consultation entry */
.work-picker { margin: 10px 18px 0; padding: 0 14px; border-radius: var(--r-md); background: var(--paper); box-shadow: 0 0 0 1px var(--line); }
.work-picker summary { cursor: pointer; font-size: 13px; color: var(--ink-2); padding: 9px 0; list-style-position: inside; }
.work-picker[open] > div { animation: rise 0.45s var(--ease-out) both; }
.work-picker > div { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 10px; align-items: end; }
.work-picker label { display: grid; gap: 4px; min-width: 0; flex: 1 1 145px; font-size: 12px; color: var(--muted); }
.work-picker select { width: 100%; min-width: 0; padding: 8px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); }
.work-picker .btn { height: 40px; border-radius: 12px; font-size: 13.5px; }
.work-picker small, .voice-note { display: block; font-size: 11px; line-height: 1.5; color: var(--muted); }
.work-picker small { padding-bottom: 10px; }
.voice-note { padding: 6px 3px 0; }

/* 동작 줄이기: 움직임과 반복은 멈추고, 새로 나타나는 것만 은은하게 페이드한다.
   시연할 때 주소에 ?motion=on 을 붙이면(html.motion-on) 설정과 관계없이 전부 재생한다. */
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  :root:not(.motion-on) *, :root:not(.motion-on) *::before, :root:not(.motion-on) *::after { animation: none !important; transition: none !important; }
  :root:not(.motion-on) :is(.app, .hero > *, .sg, .row, .note, .event, .thinking, .card, .tray, .auth-chip.on, .paper, .secure-box, .done-mark) { animation: fade 0.4s ease-out both !important; }
  :root:not(.motion-on) .done-mark svg { stroke-dashoffset: 0; }
  :root:not(.motion-on) .amount b { background-size: 100% 7px; }
  :root:not(.motion-on) .card.attn::before, :root:not(.motion-on) .stamp::after { opacity: 1; }
  :root:not(.motion-on) .card.attn::before { display: none; }
}
