/* AYA — 폰 화면
 *
 * 읽기 위한 화면입니다. 대표님이 하루에 가장 많이 하시는 동작은 "읽는 것"입니다.
 * 그래서 모든 결정의 1순위는 가독성이고, 장식은 넣지 않습니다.
 *
 * 한글 조판에서 지킨 것 —
 *   ① word-break: keep-all  — 어절 중간에서 줄이 끊기지 않습니다.
 *      ("대표님이" 가 "대표" / "님이" 로 갈라지면 의미가 한 번 끊깁니다)
 *   ② 행간 1.72 — 한글은 라틴 문자보다 글자가 빽빽해서 줄 간격이 더 필요합니다.
 *   ③ 자간 -0.011em — 17px 한글은 아주 살짝 조여야 단어 덩어리가 잘 보입니다.
 *   ④ 문단 사이 여백 — 줄바꿈만으로는 문단이 구분되지 않습니다.
 */

:root {
  /* 바탕은 완전한 검정이 아닙니다. 검정 위 흰 글씨는 번져 보입니다(헤일레이션). */
  --bg: #131313;
  --surface: #1e1e1e;
  --surface-hi: #272727;
  /* 글자도 순백이 아닙니다. 살짝 따뜻하게 낮추면 밤에 눈이 덜 부십니다. */
  --fg: #ecebe7;
  --fg-dim: #b9b8b2;
  --muted: #8c8c86;
  --line: #2a2a2a;
  --accent: #8fe9d0;
  --danger: #ff5a52;

  --dock-pad: max(12px, env(safe-area-inset-bottom));
  /* 좌우 여백. 글이 화면 끝에 닿으면 읽는 속도가 떨어집니다. */
  --gut: 20px;
  --ease: cubic-bezier(.32, .72, 0, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; overscroll-behavior: none; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo",
               "SamsungOne", "One UI Sans KR", "Noto Sans KR", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.72;
  letter-spacing: -0.011em;
  /* 한글에 딱 맞는 숫자 모양 + 자동 커닝 */
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  display: flex; flex-direction: column;
  height: var(--app-h, 100dvh);
  transition: height .26s var(--ease);
  overflow: hidden;
  padding-top: env(safe-area-inset-top);
}

::selection { background: rgba(143, 233, 208, .26); }

svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
button { font: inherit; color: var(--fg); background: none; border: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
[hidden] { display: none !important; }

/* 손가락으로 확실히 눌리는 크기 — 44px는 사람 손끝 기준입니다 */
.icon { width: 44px; height: 44px; color: var(--muted); border-radius: 50%; transition: background .15s, color .15s; }
.icon:active { background: var(--line); color: var(--fg-dim); }

/* ── 상단 ──────────────────────────────────────────── */
#bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 8px; flex-shrink: 0; position: relative; z-index: 2;
}
/* 글이 위로 스크롤되어 상단 밑으로 지나갈 때만 실선이 생깁니다.
   가만히 있을 때는 선이 없어 화면이 더 넓어 보입니다. */
#bar::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--line); opacity: 0; transition: opacity .2s;
}
body.scrolled #bar::after { opacity: 1; }
.spacer { width: 44px; flex-shrink: 0; }
#home { padding: 6px 16px; border-radius: 14px; transition: opacity .15s; }
#home:active { opacity: .45; }
#logo { width: 56px; height: auto; opacity: .92; stroke-width: 11; }
#cam.on { color: var(--accent); }

/* ── 대화 ──────────────────────────────────────────── */
#log {
  flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  padding: 4px var(--gut) 8px;
  display: flex; flex-direction: column;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#log::-webkit-scrollbar { width: 0; }

.msg {
  max-width: 100%;
  word-break: keep-all;      /* 한글은 어절 단위로 줄바꿈 */
  overflow-wrap: anywhere;   /* 다만 끊을 데 없는 긴 주소는 끊습니다 */
  text-wrap: pretty;         /* 마지막 줄에 한 단어만 남는 것을 막습니다 */
}

/* 한 번의 주고받기가 한 덩어리로 보이도록 여백을 다르게 줍니다.
   AYA 답은 방금 한 질문에 바짝 붙고(14px), 다음 질문은 멀리 떨어집니다(32px). */
.msg.me { margin-top: 32px; }
.msg.aya { margin-top: 14px; }
#log > .msg:first-child { margin-top: 8px; }

.msg.me {
  align-self: flex-end;
  background: var(--surface);
  padding: 11px 16px;
  border-radius: 20px 20px 6px 20px;
  max-width: 84%;
  white-space: pre-wrap;
  color: var(--fg);
}
.msg.aya { align-self: stretch; }

/* 방금 도착한 답이 아래에서 살짝 올라옵니다 — 눈이 새 글을 바로 찾습니다 */
.msg { animation: rise .32s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── AYA 답 안의 글 구조 ─────────────────────────────── */
/* 문단 · 목록 · 소제목을 실제 구조로 그립니다. 줄글 덩어리는 폰에서 읽히지 않습니다. */
.msg.aya p { margin: 0; }
.msg.aya p + p,
.msg.aya p + ul, .msg.aya p + ol,
.msg.aya ul + p, .msg.aya ol + p,
.msg.aya * + .a-h, .msg.aya * + pre, .msg.aya * + blockquote, .msg.aya * + .a-table { margin-top: .92em; }

.msg.aya .a-h {
  margin: 1.35em 0 .1em; font-size: 16px; font-weight: 650;
  letter-spacing: -0.015em; color: #fff;
}
.msg.aya .a-body > .a-h:first-child { margin-top: 0; }

.msg.aya ul, .msg.aya ol { margin: 0; padding-left: 1.15em; }
.msg.aya li { margin: .22em 0; padding-left: .12em; }
.msg.aya li::marker { color: var(--muted); }
.msg.aya ul { list-style: none; padding-left: .1em; }
.msg.aya ul > li { position: relative; padding-left: .95em; }
.msg.aya ul > li::before {
  content: ""; position: absolute; left: .05em; top: .72em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--muted);
}

.msg.aya b { font-weight: 650; color: #fff; }
.msg.aya code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: .87em; letter-spacing: 0;
  background: var(--surface-hi); border-radius: 6px; padding: .1em .38em;
}
.msg.aya pre {
  margin: 0; background: var(--surface); border-radius: 12px;
  padding: 13px 15px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.msg.aya pre code { background: none; padding: 0; font-size: 13.5px; line-height: 1.6; }
.msg.aya blockquote {
  margin: 0; padding-left: 14px; border-left: 2px solid var(--line); color: var(--fg-dim);
}
.msg.aya hr { border: none; border-top: 1px solid var(--line); margin: 1.5em 0; }

/* 표는 폰에서 옆으로 넘겨 봅니다 — 화면 밖으로 밀려나 글이 깨지지 않게 */
.a-table { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-left: -2px; }
.a-table table { border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.a-table th, .a-table td { padding: 8px 14px 8px 2px; text-align: left; white-space: nowrap; vertical-align: top; }
.a-table th { color: var(--muted); font-weight: 500; font-size: 13px; }
.a-table tbody tr { border-top: 1px solid var(--line); }

/* 답을 쓰는 중 — 기다리는 침묵을 없앱니다 */
.typing { display: inline-flex; gap: 4px; align-items: center; height: 24px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.3s infinite; }
.typing i:nth-child(2) { animation-delay: .18s; }
.typing i:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%,60%,100% { opacity: .22; } 30% { opacity: 1; } }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--muted); margin-left: 2px; vertical-align: -2px; animation: blink 1s infinite; }

/* 길이 상한에 걸려 말하다 만 경우에만 */
.more { margin-top: 14px; font-size: 14px; color: var(--fg); background: var(--surface); border-radius: 999px; padding: 9px 18px; }
.more:active { background: var(--surface-hi); }

/* 무엇을 하고 있는지 · 무엇을 했는지 */
.tool-hint { margin-top: 10px; font-size: 13.5px; color: var(--muted); letter-spacing: -0.005em; }
.tool-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); opacity: .72; }

/* 어떤 두뇌가 답했는지 — 이름만 조용히 */
.brain {
  margin-top: 12px; font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 6px; opacity: .7;
  letter-spacing: 0; font-variant-numeric: tabular-nums;
}
.brain-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--muted); }
.b-fable .brain-dot { background: #ff9d5c; }
.b-opus .brain-dot { background: #b98cff; }
.b-sonnet .brain-dot { background: #7aa2ff; }
.b-haiku .brain-dot { background: #8b8b86; }
.b-local .brain-dot { background: #5fd49b; }
.b-alt .brain-dot { background: #ffb35c; }

/* ── 알림 ──────────────────────────────────────────── */
#proactive { padding: 4px var(--gut) 0; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.pa-item {
  display: flex; align-items: center; gap: 12px;
  background: var(--surface); border-left: 2px solid var(--accent);
  border-radius: 12px; padding: 12px 14px;
}
.pa-text { flex: 1; font-size: 14.5px; line-height: 1.55; word-break: keep-all; }
.pa-when { color: var(--accent); font-weight: 550; }
.pa-done {
  font-size: 13px; color: var(--fg-dim); background: var(--surface-hi);
  border-radius: 999px; padding: 8px 15px; flex-shrink: 0;
}
.pa-done:active { background: var(--line); }
/* 기억 채우기 — 질문이 길어 버튼을 아래 줄로 내립니다 */
.seed-card { flex-direction: column; align-items: stretch; gap: 12px; }
.seed-why { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.seed-actions { display: flex; gap: 8px; }

/* ── 입력 바 ────────────────────────────────────────── */
#dock { flex-shrink: 0; padding: 6px 12px var(--dock-pad); }
#interim { min-height: 0; padding: 0 8px; color: var(--muted); font-size: 14px; text-align: center; }
#interim:not(:empty) { min-height: 26px; padding-bottom: 6px; }
#composer {
  display: flex; align-items: flex-end; gap: 4px;
  background: var(--surface); border-radius: 26px; padding: 5px 5px 5px 6px;
  box-shadow: 0 0 0 .5px rgba(255,255,255,.045);
  transition: background .26s var(--ease), box-shadow .26s var(--ease);
}
#composer:focus-within {
  background: var(--surface-hi);
  box-shadow: 0 0 0 .5px rgba(255,255,255,.1), 0 12px 32px -10px rgba(0,0,0,.65);
}
#input {
  flex: 1; background: none; border: none; outline: none; color: var(--fg);
  font: inherit; font-size: 17px; line-height: 1.5; letter-spacing: -0.011em;
  word-break: keep-all;
  resize: none; max-height: 136px; padding: 10px 0; overflow-y: auto;
  scrollbar-width: none;
}
#input::-webkit-scrollbar { width: 0; }
#input::placeholder { color: var(--muted); }
#composer button { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; color: var(--muted); }
#composer button:active { background: rgba(255,255,255,.06); }
#mic.live { background: var(--danger); color: #fff; animation: pulse 1.3s ease-in-out infinite; }
#send { background: var(--fg); color: var(--bg); }
#send:active { background: #fff; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(255,90,82,.4); } 50% { box-shadow: 0 0 0 10px rgba(255,90,82,0); } }

/* 첨부 미리보기 — 보내기 전에 무엇이 실렸는지 보입니다 */
#attach-preview { display: flex; gap: 8px; padding: 0 8px 8px; }
.att-chip {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface); border-radius: 12px; padding: 6px 10px 6px 6px;
  font-size: 13px; color: var(--fg-dim); max-width: 80%;
}
.att-chip img { width: 40px; height: 40px; object-fit: cover; border-radius: 8px; }
.att-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.att-chip button { color: var(--muted); width: 28px; height: 28px; }

/* ── 카메라 · 라이브 ─────────────────────────────────── */
/* 장면 위에 조작(끄기·LIVE)과 자막이 얹힙니다. 시선이 장면을 떠나지 않습니다. */
#camwrap {
  position: relative; flex-shrink: 0;
  margin: 4px var(--gut) 6px;
  border-radius: 20px; overflow: hidden;
  background: #000;
  box-shadow: 0 18px 44px -18px rgba(0,0,0,.8);
}
#video { display: block; width: 100%; max-height: 44vh; object-fit: cover; }

/* 아래쪽만 살짝 어둡게 — 자막이 어떤 장면 위에서도 읽히게 */
#cam-shade {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, transparent 22%, transparent 55%, rgba(0,0,0,.62) 100%);
}

#cam-close, #live {
  position: absolute; top: 10px; z-index: 2;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(20,20,20,.45);
  border-radius: 999px; color: #fff;
}
#cam-close { left: 10px; width: 38px; height: 38px; }
#cam-close svg { width: 18px; height: 18px; }

#live {
  right: 10px; height: 38px; padding: 0 14px;
  font-size: 12.5px; font-weight: 650; letter-spacing: .06em;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background .2s;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); }
#live.on { background: rgba(255,59,48,.92); }
#live.on .live-dot { background: #fff; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }

/* 자막 — AYA가 장면을 보고 하는 말이 장면 아래에 부드럽게 얹힙니다 */
#live-caption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 26px 66px 14px 16px; /* 오른쪽은 마이크 자리 */
  color: #fff; font-size: 15.5px; line-height: 1.6;
  word-break: keep-all; text-wrap: pretty;
  text-shadow: 0 1px 10px rgba(0,0,0,.55);
  animation: capfade .4s var(--ease) both;
}
@keyframes capfade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* 장면을 읽는 중 — 자막 자리에서 점 세 개가 조용히 숨쉽니다 */
#live-caption.reading { font-size: 0; }
#live-caption.reading::after {
  content: "● ● ●"; font-size: 9px; letter-spacing: 4px; color: rgba(255,255,255,.75);
  animation: blink 1.3s infinite;
}

/* 장면을 보면서 말하기 — 마이크가 장면 위에 있습니다. 손이 장면을 떠나지 않습니다. */
#cam-mic {
  position: absolute; right: 10px; bottom: 12px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(20,20,20,.45); color: #fff;
}
#cam-mic svg { width: 20px; height: 20px; }
#cam-mic.on { background: rgba(255,59,48,.92); animation: micring 1.4s ease-in-out infinite; }
@keyframes micring {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,59,48,.45); }
  50% { box-shadow: 0 0 0 12px rgba(255,59,48,0); }
}

/* ── + 선택판 — 사진 · 영상 · 갤러리 ───────────────────── */
#sheet-scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 70; }
#attach-sheet {
  position: fixed; left: 10px; right: 10px; z-index: 71;
  bottom: calc(10px + env(safe-area-inset-bottom));
  background: #232323; border-radius: 24px;
  display: flex; justify-content: space-around; gap: 4px;
  padding: 18px 10px 16px;
  transform: translateY(calc(100% + 30px)); transition: transform .28s var(--ease);
  box-shadow: 0 -10px 40px rgba(0,0,0,.5);
}
#attach-sheet.open { transform: none; }
#attach-sheet button {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: var(--fg); font-size: 13.5px; width: 88px; padding: 6px 0;
  border-radius: 16px;
}
#attach-sheet button:active { background: var(--surface-hi); }
#attach-sheet svg { width: 30px; height: 30px; stroke-width: 1.5; color: var(--fg-dim); }
/* 셋이 한눈에 다르게 — 색으로도 구분합니다 */
#attach-sheet button[data-pick="photo"] svg { color: #8fd0ff; }
#attach-sheet button[data-pick="video"] svg { color: #ff9d9d; }
#attach-sheet button[data-pick="gallery"] svg { color: #a8e6b8; }

/* ── 음성 대화 ──────────────────────────────────────── */
#voice { position: fixed; inset: 0; background: var(--bg); z-index: 40; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 40px; }
#voice-orb { display: flex; align-items: center; gap: 9px; height: 80px; }
#voice-orb span { width: 9px; border-radius: 6px; background: var(--fg); height: 20px; animation: wave 1.1s ease-in-out infinite; }
#voice-orb span:nth-child(2) { animation-delay: .16s; }
#voice-orb span:nth-child(3) { animation-delay: .32s; }
@keyframes wave { 0%,100% { height: 18px; opacity: .5; } 50% { height: 62px; opacity: 1; } }
#voice.speaking #voice-orb span { background: var(--accent); }
#voice-state { color: var(--muted); font-size: 15px; }
#voice-text { color: var(--fg); font-size: 19px; line-height: 1.66; text-align: center; max-width: 92%; min-height: 62px; word-break: keep-all; text-wrap: pretty; }
#voice-end { color: var(--fg-dim); background: var(--surface); border-radius: 999px; padding: 13px 28px; font-size: 15px; }

/* ── 대화 기록 서랍 ─────────────────────────────────── */
#drawer {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(84vw, 330px); z-index: 60;
  background: #1a1a1a; transform: translateX(-100%); transition: transform .26s var(--ease);
  display: flex; flex-direction: column;
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}
#drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 8px 8px 20px; font-size: 14px; color: var(--muted); }
.new-chat { margin: 4px 14px 12px; padding: 13px 15px; border-radius: 13px; background: var(--surface-hi); color: var(--fg); font-size: 15px; gap: 9px; justify-content: flex-start; }
.new-chat:active { background: var(--line); }
#hist-search {
  margin: 0 14px 10px; padding: 10px 14px; border: none; outline: none;
  border-radius: 11px; background: var(--surface-hi); color: var(--fg);
  font: inherit; font-size: 14.5px;
}
#hist-search::placeholder { color: var(--muted); }
.drawer-tabs { display: flex; gap: 6px; padding: 0 14px 10px; }
.drawer-tabs button { flex: 1; padding: 9px 0; border-radius: 10px; font-size: 14px; color: var(--muted); background: none; }
.drawer-tabs button.on { background: var(--surface-hi); color: var(--fg); }
#history, #notice-log { flex: 1; overflow-y: auto; padding: 0 10px 16px; scrollbar-width: none; }
#history::-webkit-scrollbar, #notice-log::-webkit-scrollbar { width: 0; }
/* 알림 보관함 — 확인을 눌러 지운 것도 여기서 다시 읽습니다 */
.nt { padding: 12px; border-radius: 11px; font-size: 14px; line-height: 1.55; color: var(--fg); word-break: keep-all; }
.nt time { display: block; color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.nt.done { color: var(--fg-dim); }
.hist-day { color: var(--muted); font-size: 12px; padding: 16px 10px 6px; letter-spacing: .01em; }
.hist { display: flex; align-items: center; border-radius: 11px; }
.hist-open { flex: 1; display: block; text-align: left; padding: 11px 4px 11px 12px; color: var(--fg); font-size: 14.5px; line-height: 1.45; word-break: keep-all; min-width: 0; }
/* 제목은 두 줄까지만 — 목록이 들쭉날쭉하면 훑어보기 어렵습니다 */
.hist b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: inherit; }
.hist:active, .hist.on { background: var(--surface-hi); }
.hist span { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
/* 목록에서 지우기 — 평소엔 흐리게, 누르면 그 자리에서 한 번 더 묻습니다 */
.hist-x { width: 38px; height: 38px; border-radius: 50%; color: var(--muted); font-size: 13px; flex-shrink: 0; opacity: .55; }
.hist-x:active { background: var(--line); }
.hist-confirm { display: flex; gap: 6px; padding-right: 6px; flex-shrink: 0; }
.hist-confirm button { font-size: 12.5px; border-radius: 999px; padding: 7px 12px; background: var(--surface-hi); color: var(--fg); }
.hist-confirm button:first-child { background: #5a2321; color: #ffb4ae; }
#scrim { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 50; }

/* 움직임을 줄이도록 설정하신 경우 애니메이션을 끕니다 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 아주 작은 화면에서는 여백을 조금 줄입니다 */
@media (max-width: 360px) {
  :root { --gut: 16px; }
  body { font-size: 16.5px; }
}

/* ── 나만보기 ────────────────────────────────────────────────
   켜져 있는지가 한눈에 보여야 합니다. 헷갈리면 결국 안 쓰게 됩니다.
   그래서 버튼만 바꾸지 않고 화면 위쪽에 띠를 하나 얹습니다. */
#priv[aria-pressed="true"] { color: #e5b567; background: rgba(229,181,103,.14); }
body.priv #bar { box-shadow: inset 0 3px 0 #e5b567; }
#privbar {
  position: sticky; top: 0; z-index: 5;
  padding: 6px 14px; font-size: 13px; line-height: 1.5;
  color: #e5b567; background: rgba(229,181,103,.10);
  border-bottom: 1px solid rgba(229,181,103,.25);
  text-align: center; letter-spacing: -.01em;
}
#privbar[hidden] { display: none; }

/* ── 가림막 표시 ─────────────────────────────────────────────
   가려서 나갔다는 것을 대표님이 보실 수 있어야 합니다.
   안 보이면 "진짜 안 나간 게 맞나" 하고 못 믿으시고, 못 믿으면 안 쓰시게 됩니다. */
.maskedbadge {
  font-size: 12.5px; line-height: 1.5;
  color: #7fb069; background: rgba(127,176,105,.10);
  border: 1px solid rgba(127,176,105,.22); border-radius: 8px;
  padding: 5px 10px; margin: 2px 0 8px; display: inline-block;
  letter-spacing: -.01em; cursor: help;
}

/* 눌러서 "실제로 나간 말"을 펼쳐 봅니다 */
.maskedbadge { border: 1px solid rgba(127,176,105,.22); cursor: pointer; font-family: inherit; }
.maskedbadge:active { background: rgba(127,176,105,.18); }
.maskedbadge.open { background: rgba(127,176,105,.18); }
.maskedsent {
  font-size: 13px; line-height: 1.65; color: var(--fg-dim);
  background: rgba(127,176,105,.06); border-left: 2px solid rgba(127,176,105,.35);
  padding: 8px 12px; margin: 0 0 10px; border-radius: 0 8px 8px 0;
  white-space: pre-wrap; word-break: keep-all;
}
.maskedsent[hidden] { display: none; }
