/* 민비서 M — 비서형 화면 (2026-09-30 21:35 개편, 21:50 Muse 참고 배치): 가운데 업무 피드 + 오른쪽 민이 프로필 패널 + 아래 둥근 입력창.
   app.css(토큰·공용 클래스) 뒤에 읽는다. 담백하게: 흰/아주 옅은 바탕, 그림자 최소, 얇은 선, 굵은 색은 버튼·체크에만. */
:root { --mini-bg: #EEF5FB; --side-w: 330px; --col-w: 760px; --feed-bg: #FAFBFE; --me-bubble: #E8EEFF; --choice-on: #2447E0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --feed-bg: #0B1230; --me-bubble: #22306E; --choice-on: #6F8CFF; } }
:root[data-theme="dark"] { --feed-bg: #0B1230; --me-bubble: #22306E; --choice-on: #6F8CFF; }
body { background: var(--feed-bg); }
.grow { flex: 1; min-width: 0; }
.nav, .toptabs, .tabbar { display: none !important; }

/* ───────── 뼈대 ───────── */
.app[data-layout] { display: block; background: none; min-height: calc(100vh - var(--band-h)); }
.app[data-layout="wide"], .app[data-layout="mid"] { padding-right: var(--side-w); }
.app[data-layout="mid"] { --side-w: 300px; }
.topbar { position: sticky; top: var(--band-h); z-index: 40; height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 20px; background: color-mix(in srgb, var(--feed-bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid transparent; }
.scrolled .topbar { border-bottom-color: var(--line-2); }
.topbar .brand-compact { display: inline-flex; }
.brand-mark { width: 30px; height: 30px; border-radius: 50%; background: var(--mini-bg); box-shadow: none; }
.brand-mark img { width: 30px; height: 30px; }
.brand-name { font-size: 16.5px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.who { display: none; align-items: center; gap: 8px; border: 0; background: none; padding: 4px 8px 4px 4px; border-radius: 99px; cursor: pointer; color: var(--ink); text-align: left; }
.who:hover { background: var(--card-2); }
.who b { font-size: 14.5px; display: block; line-height: 1.1; }
.who-status { font-size: 11.5px; color: var(--ink-3); display: flex; align-items: center; gap: 4px; line-height: 1.2; }
.top-gear { display: none; }
.main { padding: 4px 24px calc(118px + var(--safe-b)); }
.main > .view { max-width: var(--col-w); margin: 0 auto; }
.banners { padding: 8px 24px 0; }
.banner { max-width: var(--col-w); box-shadow: none; }

/* 좁은 폭(사이드패널·폰): 피드 전체 폭, 머리에 작은 민이 → 누르면 프로필 시트 */
.app[data-layout="phone"] .who, .app[data-layout="panel"] .who { display: inline-flex; }
.app[data-layout="phone"] .brand-compact, .app[data-layout="panel"] .brand-compact { display: none; }
.app[data-layout="phone"] .top-gear, .app[data-layout="panel"] .top-gear { display: inline-flex; }
.app[data-layout="phone"] .topbar, .app[data-layout="panel"] .topbar { padding: 0 8px 0 10px; height: 54px; }
.app[data-layout="phone"] .main, .app[data-layout="panel"] .main { padding: 2px 12px calc(96px + var(--safe-b)); }
.app[data-layout="phone"] .banners, .app[data-layout="panel"] .banners { padding: 8px 12px 0; }

/* ───────── 오른쪽 민이 프로필 패널 ───────── */
.side { position: fixed; z-index: 45; top: var(--band-h); right: 0; bottom: 0; width: var(--side-w); display: flex; flex-direction: column; background: var(--card); border-left: 1px solid var(--line); }
.app[data-layout="phone"] .side, .app[data-layout="panel"] .side { display: none; }
.app[data-layout="phone"].side-open .side, .app[data-layout="panel"].side-open .side {
  display: flex; z-index: 79; top: auto; left: 0; width: auto; height: min(84vh, 720px); border-left: 0; border-radius: 22px 22px 0 0; box-shadow: var(--shadow-3); animation: sheet-up 240ms var(--ease);
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.side-grip { display: none; width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 8px auto 0; flex: none; }
.side-open .side-grip { display: block; }
.side-top { display: flex; justify-content: flex-end; gap: 2px; padding: 8px 10px 0; flex: none; }
.side-close { display: none; }
.side-open .side-close { display: inline-flex; }
.side-profile { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 18px 12px; flex: none; }
.side-mini { display: block; border-radius: 50%; text-decoration: none !important; transition: transform 200ms var(--ease); }
.side-mini:hover { transform: translateY(-2px); }
.side-name { font-size: 19px; font-weight: 800; margin-top: 8px; color: var(--navy); }
.side-status { display: flex; align-items: center; gap: 5px; justify-content: center; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.side-status .dot { width: 8px; height: 8px; }
.side-rank { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none !important; }
.side-rank b { color: var(--blue); }
.side-rank .xpbar { width: 150px; margin: 0; height: 5px; }
.side-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 0 14px; padding: 3px; border-radius: 12px; background: var(--bg-2); flex: none; }
.side-tab { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; border: 0; background: none; border-radius: 10px; color: var(--ink-3); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.side-tab .ic { width: 20px; height: 20px; }
.side-tab.on { background: var(--card); color: var(--blue); box-shadow: var(--shadow-1); }
.side-tab .pill { position: absolute; top: 2px; right: 8px; transform: scale(.82); }
.side-body { flex: 1; overflow-y: auto; padding: 12px 16px 24px; overscroll-behavior: contain; }
.side-h { font-size: 12.5px; font-weight: 800; color: var(--ink-3); margin: 10px 0 8px; display: flex; align-items: center; gap: 6px; }
.side-h:first-child { margin-top: 2px; }
.side-empty { font-size: 13px; color: var(--ink-3); padding: 6px 0; }
.side-link { display: block; text-align: center; font-size: 12.5px; margin-top: 12px; }
/* 오늘 한 일 (체크 원 + 제목 + 한 줄 + 시각) */
.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log li { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line-2); align-items: start; }
.log li:last-child { border-bottom: 0; }
.log-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin-top: 1px; }
.log-ic .ic { width: 13px; height: 13px; stroke-width: 2.6; }
.log-night .log-ic { background: color-mix(in srgb, #22357F 14%, var(--card)); color: #3B4FA8; }
.log-title { font-size: 13.5px; font-weight: 700; line-height: 1.35; }
.log-sub { font-size: 12px; color: var(--ink-3); margin-top: 1px; line-height: 1.35; }
.log-at { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; margin-top: 2px; }
/* 맡긴 일 (진행 막대) */
.sjob { display: block; width: 100%; text-align: left; border: 1px solid var(--line-2); background: var(--card); border-radius: 12px; padding: 9px 11px 8px; margin-bottom: 8px; cursor: pointer; color: var(--ink); }
.sjob:hover { border-color: color-mix(in srgb, var(--blue-2) 50%, var(--line)); }
.sjob-top { display: flex; align-items: center; gap: 6px; font-size: 13.5px; }
.sjob-top b { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sjob-now { font-size: 11.5px; font-weight: 700; color: var(--ink-3); white-space: nowrap; }
.sjob-now.warn { color: var(--warn-ink); }
.sjob .pbar { margin: 7px 0 0; }
.sjob-blocked { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
/* 약속 수첩 */
.snote { display: flex; gap: 8px; align-items: flex-start; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line-2); background: none; padding: 8px 0; cursor: pointer; color: var(--ink); font-size: 13.5px; }
.snote:last-child { border-bottom: 0; }
.snote-main { flex: 1; min-width: 0; }
.snote-title { font-weight: 700; display: block; }
.snote-sub { font-size: 12px; color: var(--ink-3); display: block; }
.snote-when { font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--ink-3); }
.snote-when.bad { color: var(--bad); }
.team-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.team-list li { display: flex; gap: 8px; align-items: center; }
.team-dot { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--card-2); color: var(--ink-2); flex: none; }

/* ───────── 가운데 피드 ───────── */
.feed { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.feed-day { align-self: center; font-size: 12px; font-weight: 700; color: var(--ink-3); background: var(--card); border: 1px solid var(--line-2); padding: 3px 12px; border-radius: 99px; margin: 8px 0 4px; }
.feed-div { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--ink-3); font-weight: 700; margin: 14px 0 2px; }
.feed-div::before, .feed-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.msg { display: flex; flex-direction: column; gap: 6px; margin: 6px 0; max-width: 100%; }
.msg-who { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.msg-who b { font-weight: 800; color: var(--navy); }
.msg-at { font-size: 11.5px; color: var(--ink-3); }
.msg-text { font-size: 15px; line-height: 1.55; color: var(--ink); padding-left: 31px; }
.msg-body { padding-left: 31px; display: flex; flex-direction: column; gap: 8px; }
.msg-me { align-self: flex-end; max-width: 82%; background: var(--me-bubble); color: var(--ink); padding: 9px 14px; border-radius: 18px 18px 4px 18px; font-size: 15px; white-space: pre-wrap; margin: 10px 0 2px; max-height: 180px; overflow: hidden; position: relative; }
.msg-me.long::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 36px; background: linear-gradient(transparent, var(--me-bubble)); }
.fcard { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.fcard-h { font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--navy); }
.fcard-h .grow { font-weight: 600; font-size: 12px; color: var(--ink-3); text-align: right; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.checks li { display: flex; gap: 8px; align-items: flex-start; }
.ck { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--choice-on); color: #fff; margin-top: 1px; }
.ck .ic { width: 12px; height: 12px; stroke-width: 3; }
.checks .num { color: var(--blue); }
.advice { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--card-2); font-size: 13px; color: var(--ink-2); }
.advice ul { margin: 4px 0 0; padding-left: 18px; }
.home-alert { display: flex; gap: 8px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--bad-soft); color: var(--bad); font-weight: 700; font-size: 13.5px; text-decoration: none !important; }
.home-alert span { flex: 1; }
.more-row { align-self: flex-start; }
.home-foot { text-align: center; margin: 22px 0 6px; }

/* 지금 챙길 것 */
.care-list, .ask-list { display: flex; flex-direction: column; gap: 8px; }
.care { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 11px 14px 12px; transition: opacity .3s, transform .3s; }
.care-top { display: flex; align-items: center; gap: 8px; font-size: 13px; min-height: 26px; flex-wrap: wrap; }
.care-top .more-btn { margin: -4px -6px -4px auto; }
.care-tag { font-size: 11.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.care-tag-bad { background: var(--bad-soft); color: var(--bad); } .care-tag-warn { background: var(--warn-soft); color: var(--warn-ink); }
.care-tag-blue { background: var(--blue-softer); color: var(--blue); } .care-tag-ok { background: var(--ok-soft); color: var(--ok); } .care-tag-muted { background: var(--card-2); color: var(--ink-2); }
.care-title { font-size: 15.5px; font-weight: 800; margin-top: 3px; line-height: 1.4; }
.care-why { font-size: 13.5px; color: var(--ink-2); margin-top: 1px; }
.care-quote { font-size: 13px; color: var(--ink-3); margin-top: 7px; padding-left: 8px; border-left: 2px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.care-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.care-btns .btn { box-shadow: none; }
.leaving { opacity: 0 !important; transform: translateX(14px); transition: opacity .3s, transform .3s; }
.client-link { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--blue); cursor: pointer; text-decoration: underline dotted color-mix(in srgb, var(--blue) 45%, transparent); text-underline-offset: 3px; }
.client-link:hover { text-decoration-style: solid; }
.client-name { font-weight: 700; }

/* 민이의 질문 — 선택지 카드 (고르면 테두리 + 체크) */
.choice-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; transition: opacity .3s, transform .3s; }
.choice-top { display: flex; align-items: flex-start; gap: 8px; }
.choice-q { font-weight: 800; font-size: 15px; flex: 1; min-width: 0; line-height: 1.45; }
.choice-top .more-btn { margin: -4px -6px 0 0; }
.choice-detail { font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.choices { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.choice { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; padding: 10px 12px; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; transition: border-color var(--dur), background var(--dur); }
.choice:hover { border-color: color-mix(in srgb, var(--choice-on) 55%, var(--line)); }
.choice-label { flex: 1; min-width: 0; }
.choice-check { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line); flex: none; display: grid; place-items: center; color: #fff; }
.choice-check .ic { width: 12px; height: 12px; stroke-width: 3; opacity: 0; }
.choice.picked { border-color: var(--choice-on); background: color-mix(in srgb, var(--choice-on) 6%, var(--card)); }
.choice.picked .choice-check { background: var(--choice-on); border-color: var(--choice-on); }
.choice.picked .choice-check .ic { opacity: 1; }
.choice-ghost { border-style: dashed; color: var(--ink-2); font-weight: 600; }
.choice-foot { display: flex; justify-content: flex-end; margin-top: 4px; }
.choice-done { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding: 4px 2px; }
.choice-row { flex-direction: row; flex-wrap: wrap; }
.choice-row .choice { width: auto; flex: 1 1 140px; }

/* ───────── 아래 둥근 입력창 ───────── */
.composer-dock { position: fixed; z-index: 48; left: 0; right: var(--side-w); bottom: 0; padding: 10px 24px calc(14px + var(--safe-b)); background: linear-gradient(to top, var(--feed-bg) 64%, transparent); pointer-events: none; }
.composer-dock > * { pointer-events: auto; }
.app[data-layout="mid"] .composer-dock { right: 300px; }
.app[data-layout="phone"] .composer-dock, .app[data-layout="panel"] .composer-dock { right: 0; padding: 8px 10px calc(10px + var(--safe-b)); }
.composer { max-width: var(--col-w); margin: 0 auto; }
.composer-bar { display: flex; align-items: flex-end; gap: 4px; padding: 5px 6px 5px 5px; background: var(--card); border: 1px solid var(--line); border-radius: 26px; box-shadow: 0 4px 18px rgba(14, 26, 79, .07); transition: border-color var(--dur), box-shadow var(--dur); }
.composer-bar:focus-within { border-color: var(--blue-2); box-shadow: 0 0 0 4px var(--blue-softer); }
.composer-input { flex: 1; min-width: 0; border: 0; outline: 0; resize: none; background: transparent; color: var(--ink); font: inherit; font-size: 15px; line-height: 1.45; padding: 9px 4px; max-height: 132px; }
.composer-input::placeholder { color: var(--ink-3); }
.composer-attach, .composer-send { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.composer-attach { color: var(--ink-2); background: var(--card-2); }
.composer-attach .ic { width: 22px; height: 22px; }
.composer-out { margin-bottom: 8px; max-height: min(60vh, 560px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-2); padding: 14px 16px; }

/* 민이 답(부탁 결과) — 피드 안 카드 */
.reply { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.reply-head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.reply-line { font-weight: 800; font-size: 15.5px; line-height: 1.4; color: var(--navy); }
.reply-thinking { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink-2); }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--blue-2); animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.understood { display: grid; grid-template-columns: 58px 1fr; gap: 7px 10px; margin: 4px 0 6px; font-size: 14.5px; align-items: center; }
.understood dt { color: var(--ink-3); font-size: 13px; font-weight: 700; }
.understood dd { margin: 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-width: 0; }
.reply-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.reply-src { max-height: 240px; overflow: auto; white-space: pre-wrap; background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.75; }
.hl-legend { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 8px; }
.hl-legend .hl { padding: 0 6px; border-radius: 6px; font-weight: 700; }
.pv-list { display: flex; flex-direction: column; gap: 4px; }
.pay-list { display: flex; flex-direction: column; gap: 8px; }
.pay-item { padding: 10px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card-2); }
.pay-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font-size: 15px; }
.pay-amt { font-weight: 800; }
.pay-diff { color: var(--warn-ink); background: var(--hl-date); padding: 0 6px; border-radius: 6px; }
.pay-why { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; color: var(--ink-2); }
.pay-stages { margin: 10px 0 4px; }
.reply-done { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ask-inline { margin: 8px 0; padding: 10px 12px; border: 1px dashed color-mix(in srgb, var(--blue-2) 40%, transparent); background: color-mix(in srgb, var(--blue-soft) 26%, var(--card)); border-radius: 12px; }
.ask-inline .ask-q { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.ask-inline .ask-opts { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.ask-opts .btn.on { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ───────── 민이 그림 (ui/mini.js) ───────── */
.mini-art { position: relative; display: inline-block; flex: none; width: var(--mini-w); aspect-ratio: 3 / 4; border-radius: calc(var(--mini-w) * .2); background: var(--mini-bg); overflow: hidden; vertical-align: middle; }
.mini-art.mini-round { aspect-ratio: 1; border-radius: 50%; }
.mini-art-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; display: block; }
.mini-round .mini-art-img { height: 133%; }
.mini-face { display: inline-block; flex: none; border-radius: 50%; background: var(--mini-bg); object-fit: cover; }
.mini-new { object-fit: contain; background: var(--mini-bg); border-radius: 16px; }
.mini-new-face { object-fit: cover; border-radius: 50%; }
.mood-night::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 26, 79, .62), rgba(27, 42, 107, .38)); mix-blend-mode: multiply; pointer-events: none; }
.mini-moon { position: absolute; z-index: 2; top: 8%; left: 12%; width: 17%; aspect-ratio: 1; border-radius: 50%; box-shadow: inset -.45em -.1em 0 0 #FFE08A; font-size: calc(var(--mini-w) * .08); }
.mini-lamp { position: absolute; z-index: 2; right: -12%; bottom: 6%; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 214, 120, .55), rgba(255, 214, 120, 0) 66%); mix-blend-mode: screen; animation: lamp 3.2s ease-in-out infinite; }
@keyframes lamp { 50% { opacity: .7; } }
.mini-sweat { position: absolute; z-index: 2; top: 18%; right: 22%; width: 8%; aspect-ratio: 1; background: linear-gradient(135deg, #D6E4FF, #6F9BFF); border-radius: 0 50% 50% 50%; transform: rotate(45deg); animation: sweat 1.9s ease-in infinite; }
@keyframes sweat { 0% { opacity: 0; translate: 0 -4px; } 20% { opacity: 1; } 80% { opacity: 1; translate: 0 10px; } 100% { opacity: 0; translate: 0 14px; } }
.mini-zz { position: absolute; z-index: 2; top: 6%; right: 12%; font-weight: 900; color: var(--blue-2); font-size: calc(var(--mini-w) * .16); line-height: 1; }
.mini-zz i { display: inline-block; font-style: normal; animation: zz 2.4s ease-in-out infinite; }
.mini-zz i:nth-child(2) { font-size: .75em; animation-delay: .4s; } .mini-zz i:nth-child(3) { font-size: .55em; animation-delay: .8s; }
@keyframes zz { 0%, 100% { opacity: .2; transform: translateY(4px); } 50% { opacity: 1; transform: translateY(-3px); } }
.mini-confetti { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.mini-confetti i { position: absolute; top: -8%; width: 6px; height: 10px; border-radius: 2px; background: var(--blue-2); animation: confetti 1.7s ease-in infinite; }
.mini-confetti i:nth-child(3n) { background: #FFC94A; } .mini-confetti i:nth-child(3n+1) { background: #FF7FA0; } .mini-confetti i:nth-child(4n) { background: #3CC48E; }
.mini-confetti i:nth-child(1) { left: 6%; } .mini-confetti i:nth-child(2) { left: 16%; animation-delay: .5s; } .mini-confetti i:nth-child(3) { left: 26%; animation-delay: .2s; }
.mini-confetti i:nth-child(4) { left: 36%; animation-delay: .9s; } .mini-confetti i:nth-child(5) { left: 46%; animation-delay: .35s; } .mini-confetti i:nth-child(6) { left: 56%; animation-delay: .7s; }
.mini-confetti i:nth-child(7) { left: 66%; animation-delay: .1s; } .mini-confetti i:nth-child(8) { left: 76%; animation-delay: .6s; } .mini-confetti i:nth-child(9) { left: 86%; animation-delay: .25s; }
.mini-confetti i:nth-child(10) { left: 92%; animation-delay: .8s; } .mini-confetti i:nth-child(11) { left: 11%; animation-delay: 1.1s; } .mini-confetti i:nth-child(12) { left: 71%; animation-delay: 1.2s; }
@keyframes confetti { 0% { transform: translateY(0) rotate(0); opacity: 1; } 100% { transform: translateY(calc(var(--mini-w) * 1.4)) rotate(540deg); opacity: 0; } }
.mini-pop { position: fixed; left: 50%; top: 40%; z-index: 130; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 24px 14px; transform: translate(-50%, -50%); background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-3); pointer-events: none; animation: pop-in 360ms cubic-bezier(.2, 1.4, .4, 1); transition: opacity .35s, transform .35s; }
.mini-pop.out { opacity: 0; transform: translate(-50%, -58%); }
.mini-pop-line { font-weight: 800; font-size: 16px; color: var(--navy); text-align: center; }
.mini-pop-sub { font-size: 13px; color: var(--blue); font-weight: 700; }
@keyframes pop-in { from { opacity: 0; transform: translate(-50%, -40%) scale(.8); } }

/* ───────── 진행 막대 (6단계) ───────── */
.pbar { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.pbar-step { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.pbar-fill { height: 7px; border-radius: 99px; background: var(--line); }
.pbar-done .pbar-fill { background: var(--ok); }
.pbar-doing .pbar-fill { background: repeating-linear-gradient(-45deg, var(--blue-2) 0 6px, color-mix(in srgb, var(--blue-2) 55%, var(--card)) 6px 12px); background-size: 34px 8px; animation: pbar-run 1.2s linear infinite; }
@keyframes pbar-run { to { background-position: 34px 0; } }
.pbar-blocked .pbar-fill { background: var(--warn); }
.pbar-label { font-size: 11px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; font-weight: 600; }
.pbar-doing .pbar-label, .pbar-blocked .pbar-label { color: var(--ink); font-weight: 800; }
.pbar-compact .pbar-label { display: none; }
.pbar-compact .pbar-fill { height: 6px; }

/* ───────── 서랍 (ui/drawers.js) — 피드 위로 오른쪽에서 ───────── */
.detail { --detail-w: 460px; z-index: 80; }
.scrim { z-index: 78; }
.drawer { display: flex; flex-direction: column; gap: 14px; }
.drawer-hero { display: flex; gap: 12px; align-items: center; }
.drawer-kicker { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.drawer-line { font-size: 15px; margin-top: 2px; }
.mem-name { font-size: 18px; font-weight: 800; line-height: 1.35; }
.drawer-hero .row { margin-top: 5px; }
.drawer-sec h4 { font-size: 13.5px; font-weight: 800; margin-bottom: 7px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--navy); }
.src { background: var(--card-2); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 12px; margin-bottom: 6px; }
.src-meta { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.src-text { white-space: pre-wrap; font-size: 14px; line-height: 1.75; }
.table-tight th, .table-tight td { padding: 7px 8px; font-size: 13px; }
.tag-guess { font-size: 11px; color: var(--blue); background: var(--blue-softer); border-radius: 6px; padding: 0 5px; font-weight: 700; white-space: nowrap; }
.tag-new { font-size: 11px; color: var(--ok); background: var(--ok-soft); border-radius: 6px; padding: 0 5px; font-weight: 700; white-space: nowrap; }
.hl-change { background: var(--hl-date); color: inherit; padding: 0 3px; border-radius: 4px; }
.diff-list, .why-list { margin: 0; padding-left: 18px; font-size: 13.5px; display: flex; flex-direction: column; gap: 4px; }
.why { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.why:last-child { border-bottom: 0; }
.why-head { display: flex; gap: 8px; align-items: center; margin-bottom: 4px; }
.why-src { font-size: 11.5px; font-weight: 700; color: var(--ink-2); background: var(--card-2); border: 1px solid var(--line-2); border-radius: 6px; padding: 0 5px; margin-right: 4px; }
.drawer-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; position: sticky; bottom: -32px; margin: 0 -20px; padding: 12px 20px 14px; background: var(--card); border-top: 1px solid var(--line-2); }
.mem-list { display: flex; flex-direction: column; gap: 6px; }
.mem-item { display: flex; gap: 8px; align-items: center; width: 100%; text-align: left; padding: 9px 11px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); border-radius: 12px; cursor: pointer; font-size: 14px; }
.mem-item:hover { border-color: var(--blue-2); }
.phist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; }
.phist li { display: flex; gap: 10px; }
.phist-at { flex: none; width: 86px; color: var(--ink-3); font-size: 12.5px; }
.ask-q { margin: 0; }

/* 설정·민이 방도 가운데 폭 */
.main > .view > .page { max-width: var(--col-w); margin: 0 auto; }
@media print { .side, .composer-dock, .topbar { display: none !important; } .app[data-layout] { padding: 0 !important; } }

/* 다듬기 1 */
.thread { display: flex; flex-direction: column; gap: 6px; }
.thread > * { scroll-margin-top: 70px; scroll-margin-bottom: 140px; }
.msg .ic-xs, .side .ic-xs, .drawer .ic-xs, .reply .ic-xs, .fcard .ic-xs { display: inline-block; vertical-align: -2px; }
.app[data-layout="phone"] .topbar .brand-compact, .app[data-layout="panel"] .topbar .brand-compact { display: none; }
.app[data-layout="phone"] .who, .app[data-layout="panel"] .who { margin-right: auto; }
/* 민이 방 소품 (새 그림에는 옛 SVG 소품을 겹치지 않고 이름표로) */
.prop-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--card-2); color: var(--ink-3); margin: 4px auto 6px; }
.prop-ic.open { background: var(--mini-bg); color: #2447E0; }
.prop-ic .ic { width: 24px; height: 24px; }
.room-mini { box-shadow: 0 8px 24px rgba(36, 71, 224, .14); }
.mem-item .pbar { flex: 0 0 132px; margin: 0; }

/* 받은 메일·팩스 카드(피드) — 민데스크에서 나에게 온 것 */
.care.mf .mf-ic { font-size: 16px; line-height: 1; }
.care.mf .mf-from { font-weight: 800; color: var(--navy); max-width: 16em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.care.mf .care-btns a.btn { text-decoration: none; }

/* 민이의 생각하는 머리(Claude 답 카드) — ui/composer.js askCard */
.ask-answer .ask-text { line-height: 1.75; font-size: 15px; }
.ask-answer .ask-draft, .ask-answer .ask-promises { margin-top: 12px; }
.ask-sent { margin-top: 10px; }
.ask-sent summary, .ask-ev summary { cursor: pointer; }
.ask-ctx { font-size: 12px; line-height: 1.6; max-height: 200px; margin: 6px 0 0; font-family: inherit; }
.ask-ev .ask-opts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ═════════ 2026-09-30 23시 마무리: 글꼴(비서=명조·UI=Pretendard)·강조색·이름 카드·설정 모달·반응·추천 칩·짧은 카드 ═════════ */
/* 글꼴은 :root 의 두 변수만 바꾸면 된다(2026-09-30 22:55 사용자 요청으로 명조 롤백 → 모두 Pretendard, 실패 시 맑은 고딕·시스템 서체) */
:root {
  --font-ui: "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --font-assistant: var(--font-ui);
  --font: var(--font-ui);
  --say-size: 15.5px; --say-lh: 1.6;
}
.msg-text { font-size: var(--say-size); line-height: var(--say-lh); }
.care-title { font-size: 16.5px; font-weight: 700; line-height: 1.45; }
.choice-q { font-size: 16px; font-weight: 700; line-height: 1.5; }
.fcard .checks li { line-height: 1.6; }
.num, .won, .pill, .care-tag, .msg-at, td.num, .tabular { font-variant-numeric: tabular-nums; }

/* 강조색 — look.js 가 --accent(밝게)·--accent-d(어둡게)를 넣으면 파랑 계열이 모두 따라간다 */
:root[data-accent] { --blue: var(--accent); --blue-2: color-mix(in srgb, var(--accent) 82%, #fff); --blue-deep: color-mix(in srgb, var(--accent) 82%, #000); --blue-soft: color-mix(in srgb, var(--accent) 16%, #fff); --blue-softer: color-mix(in srgb, var(--accent) 7%, #fff); --choice-on: var(--accent); --me-bubble: color-mix(in srgb, var(--accent) 10%, #fff); }
@media (prefers-color-scheme: dark) { :root[data-accent]:not([data-theme="light"]) { --blue: var(--accent-d); --blue-2: color-mix(in srgb, var(--accent-d) 85%, #fff); --blue-deep: var(--accent-d); --blue-soft: color-mix(in srgb, var(--accent-d) 26%, #0B1230); --blue-softer: color-mix(in srgb, var(--accent-d) 14%, #0B1230); --choice-on: var(--accent-d); --me-bubble: color-mix(in srgb, var(--accent-d) 24%, #0B1230); } }
:root[data-accent][data-theme="dark"] { --blue: var(--accent-d); --blue-2: color-mix(in srgb, var(--accent-d) 85%, #fff); --blue-deep: var(--accent-d); --blue-soft: color-mix(in srgb, var(--accent-d) 26%, #0B1230); --blue-softer: color-mix(in srgb, var(--accent-d) 14%, #0B1230); --choice-on: var(--accent-d); --me-bubble: color-mix(in srgb, var(--accent-d) 24%, #0B1230); }
:root[data-accent="black"][data-theme="dark"] .btn-primary, :root[data-accent="gray"][data-theme="dark"] .btn-primary { color: #0B1230; }

/* 짧은 카드 — 이유·원문은 기본 접힘("왜?"를 누르면 펼침), 반복 안내는 설정 > 도움말로 */
.care .care-why, .care .care-quote { display: none; }
.care.open .care-why, .care.open .care-quote { display: block; }
.care-whybtn { border: 0; background: none; padding: 0 2px; font: inherit; font-size: 12.5px; color: var(--ink-3); cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.care-whybtn:hover { color: var(--blue); }
.care-btns { margin-top: 8px; }
.fcard > p.tiny.muted, .home-foot { display: none; }
.advice ul li:nth-child(n+2) { display: none; }
.advice.open ul li { display: list-item; }
.advice-more { border: 0; background: none; padding: 0; font: inherit; font-size: 12.5px; color: var(--blue); cursor: pointer; margin-top: 2px; }
.feed-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 0 8px; color: var(--ink-2); text-align: center; }
.feed-empty b { font-size: 17px; font-weight: 600; color: var(--ink); }
.feed-skel { display: flex; flex-direction: column; gap: 12px; padding-top: 18px; max-width: var(--col-w); margin: 0 auto; }
.feed-skel .skel-line { height: 14px; border-radius: 8px; width: 46%; }
.feed-skel .skel-bub { height: 22px; width: 70%; border-radius: 12px; margin-left: 31px; }
.feed-skel .skel-card { height: 96px; margin-left: 31px; border-radius: 16px; }
.feed-skel .skel-line, .feed-skel .skel-bub { background: linear-gradient(90deg, var(--card-2) 0%, var(--line-2) 50%, var(--card-2) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }

/* 이름 고르기 카드 (Muse 처럼) */
.name-card { border-color: color-mix(in srgb, var(--choice-on) 30%, var(--line)); margin: 6px 0 4px; }
.name-custom { display: flex; gap: 6px; margin-top: 8px; }
.name-custom .input { flex: 1; min-width: 0; }
.name-said { display: flex; align-items: center; gap: 8px; font-size: 16px; padding: 4px 2px; }
.name-card.bye { opacity: 0; transform: translateY(-6px); }

/* 카드 반응 👍 👎 — 마우스 올리면 보임(폰은 늘 작게) */
.has-react { position: relative; }
.react { position: absolute; right: 10px; bottom: 8px; display: flex; align-items: center; gap: 2px; opacity: 0; transition: opacity .18s; z-index: 2; }
.has-react:hover > .react, .has-react:focus-within > .react, .react.open, .react:has(.on) { opacity: 1; }
.react-btn { border: 1px solid transparent; background: var(--card); border-radius: 99px; width: 28px; height: 28px; font-size: 13px; line-height: 1; cursor: pointer; filter: grayscale(1); opacity: .7; transition: all .15s; }
.react-btn:hover, .react-btn.on { filter: none; opacity: 1; border-color: var(--line); background: var(--card-2); }
.react.open { position: static; opacity: 1; margin-top: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 6px; box-shadow: var(--shadow-2); flex-wrap: wrap; }
.react-ask { display: flex; gap: 6px; flex: 1 1 100%; }
.react-ask .input { flex: 1; min-width: 0; height: 34px; }
.fcard.has-react { padding-bottom: 16px; }
@media (hover: none) { .react { opacity: .75; } .react-btn { width: 26px; height: 26px; font-size: 12px; } }

/* 입력창 위 추천 부탁 칩 */
.suggest { max-width: var(--col-w); margin: 0 auto 8px; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.suggest::-webkit-scrollbar { display: none; }
.suggest-chip { flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 99px; padding: 6px 12px; font-size: 13px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow-1); transition: border-color .15s, color .15s; }
.suggest-chip:hover { border-color: var(--blue); color: var(--blue); }
.composer-dock.typing .suggest { display: none; }

/* ───────── 설정 = 가운데 큰 모달 (왼쪽 항목 · 오른쪽 둥근 카드 묶음) ───────── */
.set-host { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 24px; background: rgba(10, 16, 40, .38); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade-in 160ms; }
body.set-open { overflow: hidden; }
.set-host > .view { width: min(980px, 100%); height: min(720px, calc(100vh - 48px)); max-width: none; margin: 0; }
.set-modal { position: relative; display: grid; grid-template-columns: 232px 1fr; height: 100%; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-3); border: 1px solid var(--line); overflow: hidden; animation: modal-in 220ms var(--ease); }
.set-nav { display: flex; flex-direction: column; gap: 2px; padding: 18px 12px; background: var(--card-2); border-right: 1px solid var(--line-2); overflow-y: auto; }
.set-nav h2 { font-size: 20px; font-weight: 800; padding: 4px 10px 14px; }
.set-nav-item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 12px; color: var(--ink); font-size: 14.5px; font-weight: 600; text-decoration: none !important; border: 0; background: none; cursor: pointer; text-align: left; width: 100%; }
.set-nav-item .ic, .set-nav-item svg { width: 19px; height: 19px; color: var(--ink-2); flex: none; }
.set-nav-item:hover { background: color-mix(in srgb, var(--ink) 6%, transparent); }
.set-nav-item.on { background: var(--card); box-shadow: var(--shadow-1); }
.set-nav-item.on .ic, .set-nav-item.on svg { color: var(--blue); }
.set-nav .grow { flex: 1; }
.set-logout, .set-logout .ic { color: var(--bad) !important; }
.set-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.set-head { display: flex; align-items: center; gap: 8px; padding: 18px 20px 10px 26px; }
.set-head h3 { font-size: 19px; font-weight: 800; flex: 1; display: flex; align-items: center; gap: 6px; min-width: 0; }
.set-head .set-crumb { color: var(--ink-3); font-weight: 700; text-decoration: none !important; display: inline-flex; align-items: center; gap: 2px; }
.set-x { width: 36px; height: 36px; border-radius: 50%; }
.set-content { flex: 1; overflow-y: auto; padding: 4px 26px 28px; display: flex; flex-direction: column; gap: 18px; }
.set-content .page, .set-content .settings-page { padding: 0; max-width: none; }
.set-gtitle { font-size: 13px; font-weight: 800; color: var(--ink-3); margin: 0 4px -8px; }
.set-group { background: var(--card-2); border-radius: 16px; overflow: hidden; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 60px; color: var(--ink); text-decoration: none !important; width: 100%; border: 0; background: none; font: inherit; text-align: left; }
.set-row + .set-row { border-top: 1px solid var(--line-2); }
a.set-row:hover, button.set-row:hover { background: color-mix(in srgb, var(--ink) 4%, transparent); cursor: pointer; }
.set-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.set-row-text b { font-size: 15px; font-weight: 700; }
.set-row-text > span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.set-row-end { display: flex; align-items: center; gap: 8px; flex: none; color: var(--ink-3); font-size: 13.5px; }
.set-row-end .ic { width: 16px; height: 16px; }
.set-row.stack-row { flex-direction: column; align-items: stretch; gap: 10px; }
.set-seg { display: inline-flex; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 2px; }
.set-seg button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 7px 12px; border-radius: 9px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.set-seg button svg { width: 17px; height: 17px; }
.set-seg button.on { background: var(--blue-softer); color: var(--blue); box-shadow: inset 0 0 0 1.5px var(--blue); }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 0; cursor: pointer; position: relative; background: var(--swatch); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatch.on { box-shadow: 0 0 0 2px var(--card-2), 0 0 0 4px var(--swatch); }
.swatch.on::after { content: ""; position: absolute; left: 10px; top: 8px; width: 9px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: rotate(-45deg); }
.font-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.font-pick button { flex: 1 1 130px; text-align: left; border: 1.5px solid var(--line); background: var(--card); border-radius: 12px; padding: 10px 12px; cursor: pointer; color: var(--ink); }
.font-pick button.on { border-color: var(--choice-on); background: color-mix(in srgb, var(--choice-on) 6%, var(--card)); }
.font-pick .fp-name { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; font-family: var(--font-ui); }
.set-name-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.set-name-row .input { width: 150px; }
.set-note { font-size: 13.5px; color: var(--ink-2); line-height: 1.65; padding: 14px 16px; }
.set-note ul { margin: 6px 0 0; padding-left: 18px; }
.set-list { padding: 4px 16px 14px; display: flex; flex-direction: column; gap: 6px; }
.set-list-item { display: flex; gap: 8px; align-items: baseline; font-size: 13.5px; }
.set-list-item .tiny { margin-left: auto; white-space: nowrap; }
.kbd { display: inline-block; min-width: 22px; padding: 1px 7px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--card); font-size: 12px; font-weight: 700; text-align: center; font-family: var(--font-ui); }
@media (max-width: 760px) {
  .set-host { padding: 0; place-items: stretch; }
  .set-host > .view { width: 100%; height: 100%; }
  .set-modal { grid-template-columns: 1fr; grid-template-rows: auto 1fr; border-radius: 0; border: 0; }
  .set-nav { flex-direction: row; overflow-x: auto; padding: 10px 52px 8px 10px; border-right: 0; border-bottom: 1px solid var(--line-2); gap: 4px; scrollbar-width: none; }
  .set-nav h2, .set-nav .grow { display: none; }
  .set-nav-item { width: auto; flex: none; padding: 8px 12px; font-size: 13.5px; white-space: nowrap; }
  .set-head { padding: 12px 12px 6px 16px; }
  .set-content { padding: 4px 14px calc(24px + var(--safe-b)); }
  .set-row { flex-wrap: wrap; }
  .set-row-end { max-width: 100%; }
  .set-x { position: absolute; top: 8px; right: 8px; z-index: 3; background: var(--card); }
}

.set-content > * { flex-shrink: 0; }
.set-content .card { background: var(--card-2); border-color: transparent; box-shadow: none; border-radius: 16px; }
.set-name-row .chip { border: 1px solid var(--line); padding: 6px 14px; font-size: 13.5px; font-weight: 700; cursor: pointer; border-radius: 99px; }
.set-name-row .chip-blue { border-color: var(--blue); }
.care.pending-done { opacity: .42; filter: grayscale(.7); pointer-events: none; transform: scale(.985); transition: opacity .3s, transform .3s, filter .3s; }
.care.pending-done .care-title { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink) 40%, transparent); }
/* 토스트는 입력창 위에 (가리지 않게) */
body .toast-box { bottom: calc(132px + var(--safe-b)); }
body.layout-phone .toast-box { bottom: calc(124px + var(--safe-b)); }
body.set-open .toast-box { bottom: calc(24px + var(--safe-b)); }
.set-content .list, .set-content .table-wrap { border-color: transparent; background: var(--card-2); border-radius: 16px; box-shadow: none; }
.set-host.shown { animation: none; }
.set-host.shown .set-modal { animation: none; }
.swatch { --swatch: var(--sw-l); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .swatch { --swatch: var(--sw-d); } }
:root[data-theme="dark"] .swatch { --swatch: var(--sw-d); }
:root[data-theme="dark"] .swatch[data-v="black"].on::after, :root[data-theme="dark"] .swatch[data-v="gray"].on::after { border-color: #0B1230; }
@media (max-width: 760px) { .set-row:not(.stack-row) .set-row-text { flex: 1 1 210px; } .font-pick button { flex-basis: 100%; } }

/* ── 23:00 이름 연필(✎) · 보고 알약 · 민이의 보고 카드 ── */
.side-mini-wrap { position: relative; display: inline-block; }
.name-pencil { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); box-shadow: var(--shadow-2); font-size: 15px; line-height: 1; cursor: pointer; display: inline-grid; place-items: center; padding: 0; }
.name-pencil:hover { color: var(--blue); border-color: var(--blue); }
.side-mini-wrap .name-pencil { position: absolute; right: -2px; bottom: 4px; }
.head-pencil { display: none; width: 26px; height: 26px; font-size: 13px; box-shadow: var(--shadow-1); margin-left: -4px; }
.app[data-layout="phone"] .head-pencil, .app[data-layout="panel"] .head-pencil { display: inline-grid; margin-right: auto; }
.app[data-layout="phone"] .who, .app[data-layout="panel"] .who { margin-right: 0; }
.rename-pop { position: fixed; z-index: 260; width: 248px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-3); padding: 12px; display: flex; flex-direction: column; gap: 8px; animation: modal-in 160ms var(--ease); }
.rename-quick { display: flex; gap: 6px; }
.rename-quick .chip { border: 1px solid var(--line); cursor: pointer; padding: 5px 12px; border-radius: 99px; font-weight: 700; }
.rename-btns { display: flex; justify-content: flex-end; gap: 6px; }
.report-pill { margin: 6px auto 0; display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); border-radius: 99px; padding: 5px 12px; font-size: 13px; font-weight: 700; cursor: pointer; }
.report-pill.new { border-color: var(--blue); color: var(--blue); background: var(--blue-softer); }
.report-pill.new b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 99px; background: var(--blue); color: #fff; font-size: 11.5px; padding: 0 5px; }
.report-wrap { margin: 6px 0 8px; scroll-margin-top: 100px; }
.report-card { position: relative; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: 16px; padding: 14px 16px 12px; box-shadow: var(--shadow-1); }
.report-card.flash { animation: report-flash 1.6s var(--ease); }
@keyframes report-flash { 0%, 40% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 30%, transparent); } }
.report-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.report-badge { font-weight: 800; color: var(--blue); background: var(--blue-softer); padding: 2px 9px; border-radius: 99px; }
.report-at { color: var(--ink-3); font-weight: 600; }
.report-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px var(--blue-softer); }
.report-title { font-size: 17px; font-weight: 800; margin: 8px 0 10px; line-height: 1.4; }
.report-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.report-nums > div { background: var(--card-2); border-radius: 12px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; }
.report-nums span { font-size: 12px; color: var(--ink-2); font-weight: 600; }
.report-nums b { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--navy); line-height: 1.2; }
.report-body { display: none; margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.report-card.open .report-body { display: block; }
.report-body ul { margin: 2px 0 8px; padding-left: 18px; }
.report-sub { font-size: 12.5px; font-weight: 800; color: var(--ink-3); margin-top: 6px; }
.report-toggle { border: 0; background: none; padding: 6px 0 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--blue); cursor: pointer; }
