/* WED-FEAT-001 — 화면 틀과 디자인 토큰. 색·글자·간격은 :root 토큰만 쓴다(DEV-17). 값의 원본은 기능명세 WED-FEAT-001 */
:root {
  --bg: #fff; --bg-band: #f6f6f8; --surface: #fff; --surface-2: #f4f5f7; --border: #ecedf0; --border-2: #d5d8de;
  --text-1: #222; --text-2: #666; --text-3: #999;
  --accent: #00aa49; --accent-soft: #e5f6ec; --blue: #3d7be5; --red: #f05164;
  --groom: #e8eefb; --groom-ink: #3a5ea8; --bride: #fbebef; --bride-ink: #b2486a;
  --viewer: #111111;
  --muted: #c7cbd3; --text-4: #c4c7cd; --shade: rgba(0,0,0,.06); --kakao: #fee500;
  --tabbar: 64px; --topbar: 56px;
  --font-body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-head: "Gowun Batang", AppleMyungjo, Batang, serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
}
/* WED-FEAT-001 — 제목 글꼴 고운바탕(SIL OFL 1.1, web/fonts/OFL.txt). KS X 1001 한글 2,350자·영문·숫자·문장부호만 남긴 서브셋 */
@font-face { font-family: "Gowun Batang"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/GowunBatang-Regular.woff2") format("woff2"); }
@font-face { font-family: "Gowun Batang"; font-weight: 700; font-style: normal; font-display: swap; src: url("fonts/GowunBatang-Bold.woff2") format("woff2"); }
* { box-sizing: border-box; }
html, body { margin: 0; }
/* WED-FEAT-001 — 글자 크기 세 단계. 글자는 모두 rem이라 html 크기만 바꾸면 글자만 커진다 */
html { font-size: 1rem; }
html[data-text="large"] { font-size: 1.15rem; }
html[data-text="xlarge"] { font-size: 1.3rem; }
body { background: var(--bg); color: var(--text-1); font: 1rem/1.55 var(--font-body); -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.ic { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-sm { width: 16px; height: 16px; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (hover: hover) and (pointer: fine) { .hov:hover { background: var(--surface-2); } }

/* 상단 바 */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 4px; height: var(--topbar); padding: 0 8px 0 16px; background: var(--bg); border-bottom: 1px solid var(--border); }
.topbar h1 { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar h1 small { font-size: 0.9375rem; font-weight: 600; color: var(--text-3); margin-left: 4px; }
.bar-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--text-1); flex: none; }
.back-btn { margin-left: -10px; }

/* 아바타 */
.av { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 0.9375rem; font-weight: 700; flex: none; }
.av.g { background: var(--groom); color: var(--groom-ink); }
.av.b { background: var(--bride); color: var(--bride-ink); }
.av.sm { width: 26px; height: 26px; font-size: 0.75rem; border: 2px solid var(--surface); }
.av.md { width: 32px; height: 32px; font-size: 0.8125rem; }
.faces { display: flex; }
.faces .av + .av { margin-left: -8px; }

/* 판과 띠 */
.panel { background: var(--surface); padding: 20px 16px; }
.panel + .panel { border-top: 8px solid var(--bg-band); }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; margin: -6px 0 8px; }
.panel-head h2 { font-size: 1rem; font-weight: 700; }
.more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-size: 0.875rem; color: var(--text-2); white-space: nowrap; }
.page-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; }
.note { font-size: 0.875rem; color: var(--text-2); }
.sample { font-size: 0.75rem; color: var(--text-3); margin-bottom: 4px; }

/* 표지 */
/* WED-FEAT-007 — 예식 표지: 작은 꼴(휴대폰 홈)·큰 꼴(PC 왼쪽 단) */
.cover h2 { font-family: var(--font-head); font-size: 1.125rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; margin-top: 4px; }
.cover .when { margin-top: 4px; font-size: 1rem; }
.cover .where { font-size: 0.875rem; color: var(--text-2); }
.members { white-space: nowrap; }
.nowrap { white-space: nowrap; }
.dday-big { font-family: var(--font-head); font-size: 1.875rem; font-weight: 700; line-height: 1.15; color: var(--accent); }
.dday-big.word { font-size: 1.125rem; }
.cover-small { display: flex; align-items: center; gap: 14px; border-radius: 16px; }
.cover-small .cover-photo { flex: none; width: 96px; height: 96px; border-radius: 12px; }
.cover-small .cover-text { min-width: 0; }
.cover-small .when { font-size: 1.0625rem; font-weight: 700; }
.cover-small .where { font-size: 0.9375rem; }
.cover-big .members { display: flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 0.8125rem; color: var(--text-3); }
/* WED-FEAT-007 — 홈: 다음 일정 판, 큰 타일 넷, 관리 줄 */
.next { border-radius: 16px; padding: 18px; }
.next-label { font-size: 0.9375rem; font-weight: 700; color: var(--text-2); }
.next-when { margin-top: 6px; font-size: 1.125rem; font-weight: 700; }
.next-title { margin-top: 2px; font-family: var(--font-head); font-size: 1.375rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.next-where { margin-top: 2px; font-size: 1rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.next-empty { text-align: left; padding: 8px 0 0; font-size: 1rem; }
.btn-line { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 52px; margin-top: 14px; border-radius: 12px; border: 1px solid var(--border-2); font-size: 1.0625rem; font-weight: 700; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px 16px; background: var(--bg-band); }
.tile { display: flex; flex-direction: column; gap: 10px; min-height: 150px; min-width: 0; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.tile-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; flex: none; }
.tile-ic .ic { width: 28px; height: 28px; }
.ic-groom { background: var(--groom); color: var(--groom-ink); }
.ic-accent { background: var(--accent-soft); color: var(--accent); }
.ic-bride { background: var(--bride); color: var(--bride-ink); }
.ic-gray { background: var(--surface-2); color: var(--text-1); }
.tile-name { font-family: var(--font-head); font-size: 1.375rem; font-weight: 700; line-height: 1.2; }
.tile-sub { font-size: 0.9375rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-sub.strong { color: var(--accent); font-weight: 700; }
.home-admin { display: flex; align-items: center; gap: 12px; min-height: 72px; border-radius: 16px; }
.home-admin .tile-ic { width: 44px; height: 44px; border-radius: 12px; }
.home-admin .admin-text { flex: 1; min-width: 0; }
.home-admin b { font-size: 1.125rem; font-weight: 800; }
.home-admin small { font-size: 0.9375rem; }
.members { font-size: 0.8125rem; color: var(--text-3); display: flex; align-items: center; gap: 6px; }

/* 시그니처: 준비 흐름 */
.timeline { padding: 4px 0 14px; border-bottom: 1px solid var(--border); }
.tl-months { display: grid; grid-template-columns: repeat(6, 1fr); }
.tl-m { text-align: center; font-size: 0.8125rem; color: var(--text-2); }
.tl-m b { display: block; font-weight: 600; height: 28px; line-height: 28px; }
.tl-m.now b { color: var(--surface); background: var(--accent); width: 28px; border-radius: 50%; margin: 0 auto; font-weight: 700; }
.tl-m.wed b { color: var(--accent); font-weight: 700; }
.tl-dots { display: flex; justify-content: center; gap: 3px; height: 6px; margin-top: 4px; }
.tl-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); }
.tl-dots i.on { background: var(--accent); }
.tl-note { margin-top: 8px; font-size: 0.9375rem; }

/* 일정 카드 */
.ev { border: 1px solid var(--border); border-radius: 12px; padding: 16px; }
.ev + .ev { margin-top: 12px; }
.ev-kind { font-size: 0.8125rem; color: var(--text-2); }
.ev-date { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.ev-date h3 { font-size: 1.0625rem; font-weight: 700; }
.ev-who { display: flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--text-3); white-space: nowrap; }
.ev-body { margin-top: 10px; }
.ev-title { font-size: 1rem; font-weight: 700; }
.ev-meta { margin-top: 2px; font-size: 0.875rem; color: var(--text-2); }
.ev-meta .soon { color: var(--blue); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.chip.gray { background: var(--surface-2); color: var(--text-2); }
.chip .ic-sm { width: 13px; height: 13px; }
.rsvp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.rsvp button { height: 44px; border-radius: 999px; font-size: 0.9375rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--border-2); color: var(--text-2); background: var(--surface); transition: background-color .1s, color .1s; }
.rsvp .yes { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.rsvp .yes .ic { display: none; }
.rsvp .yes[aria-pressed="true"] .ic { display: block; }
.rsvp.answered-no .yes { background: var(--surface); border-color: var(--border-2); color: var(--text-2); }
.rsvp button[aria-pressed="true"].no { background: var(--text-2); border-color: var(--text-2); color: var(--surface); }
.rsvp button:active { transform: scale(.97); }
.not-mine { margin-top: 12px; font-size: 0.875rem; color: var(--text-3); }
.tally { margin-top: 10px; min-height: 32px; padding: 6px 12px; box-sizing: border-box; text-align: center; border-radius: 999px; background: var(--surface-2); font-size: 0.8125rem; color: var(--text-2); }
.tally b { color: var(--accent); font-weight: 700; }
.ev-toggle { display: flex; align-items: center; justify-content: center; gap: 2px; width: 100%; min-height: 44px; margin-top: 6px; font-size: 0.875rem; color: var(--text-2); }
.ev-toggle .ic { width: 18px; height: 18px; transition: transform .15s var(--ease); }
.ev-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
.ev-detail { margin-top: 4px; padding-top: 12px; border-top: 1px solid var(--border); display: grid; grid-template-columns: 88px 1fr; gap: 8px 12px; font-size: 0.9375rem; }
.ev-detail dt { color: var(--text-3); font-size: 0.875rem; }
.ev-detail a.tel { color: var(--blue); }
.ev-detail .map { grid-column: 1 / -1; }
.ev-detail .pre { white-space: pre-line; }
.link-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-2); font-size: 0.875rem; font-weight: 600; color: var(--text-1); }

/* 공지 */
.notice { display: flex; align-items: center; gap: 10px; min-height: 52px; width: 100%; padding: 6px 0; border-bottom: 1px solid var(--border); text-align: left; }
.notice:last-child { border-bottom: 0; }
.tag { flex: none; height: 22px; padding: 0 7px; border-radius: 4px; font-size: 0.75rem; font-weight: 700; line-height: 22px; color: var(--accent); background: var(--accent-soft); }
.notice p { flex: 1; min-width: 0; font-size: 1rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notice small { flex: none; font-size: 0.8125rem; color: var(--text-3); }
/* WED-FEAT-013 — 공지 「새」 표시, 판 이름(제목 글꼴), 읽음 줄 */
.new-mark { flex: none; display: inline-flex; align-items: center; min-height: 18px; padding: 0 6px; border-radius: 999px; background: var(--red); color: var(--surface); font-size: 0.6875rem; font-weight: 800; }
.head-font { font-family: var(--font-head); }
.panel-head h2.head-font { font-size: 1.25rem; font-weight: 700; }
.read-line { margin-top: 16px; font-size: 0.8125rem; color: var(--text-2); }
.read-left { margin-top: 4px; font-size: 0.8125rem; color: var(--text-2); }

/* 게시글(공지 상세) */
.post-head { display: flex; align-items: center; gap: 10px; }
.post-head b { display: block; font-size: 0.9375rem; }
.post-head small { font-size: 0.8125rem; color: var(--text-3); }
.post h2 { font-size: 1.25rem; font-weight: 700; margin-top: 16px; }
.post p { margin-top: 10px; font-size: 1rem; }
.post p.pre { white-space: pre-line; }
.post .facts { margin-top: 14px; display: grid; grid-template-columns: 56px 1fr; gap: 8px 12px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); font-size: 0.9375rem; }
.post .facts dt { color: var(--text-3); font-size: 0.875rem; }
.post .actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.post-list { margin-top: 14px; border-top: 1px solid var(--border); }
.post-list li { padding: 12px 0; border-bottom: 1px solid var(--border); }
.post-list b { font-size: 1rem; }
.post-list span { display: block; font-size: 0.875rem; color: var(--text-2); }

/* 준비 */
.prog { display: flex; align-items: center; gap: 10px; font-size: 0.875rem; color: var(--text-2); margin: 14px 0 2px; white-space: nowrap; }
.bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.task { display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 4px 6px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--border); }
.task:last-child { border-bottom: 0; }
.check { width: 44px; height: 44px; display: grid; place-items: center; margin: -6px 0 0 -11px; }
.check span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border-2); display: grid; place-items: center; transition: background-color .1s; }
.check[aria-pressed="true"] span { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.check .ic { width: 14px; height: 14px; stroke-width: 3; visibility: hidden; }
.check[aria-pressed="true"] .ic { visibility: visible; }
.task h3 { font-size: 1rem; font-weight: 600; padding-top: 3px; }
.task.done h3 { color: var(--text-3); text-decoration: line-through; }
.task p { font-size: 0.875rem; color: var(--text-2); margin-top: 2px; }
.task .meta { font-size: 0.8125rem; color: var(--text-3); }
.when-tag { font-size: 0.8125rem; color: var(--text-2); text-align: right; padding-top: 5px; max-width: 7.5em; }
.when-tag.fixed { color: var(--accent); font-weight: 700; }
.group-title { font-size: 0.875rem; font-weight: 700; color: var(--text-2); margin: 4px 0 2px; }
.empty { padding: 20px 0; text-align: center; font-size: 0.9375rem; color: var(--text-2); }
.empty .link-btn { margin-top: 10px; }

/* 일정 화면 */
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.seg button { min-height: 38px; padding: 0 14px; border-radius: 999px; font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text-1); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 14px 0 6px; }
.cal-nav { display: flex; align-items: center; gap: 2px; }
.cal-nav h3 { font-size: 1.0625rem; font-weight: 700; min-width: 112px; text-align: center; }
.today-btn { height: 32px; padding: 0 12px; border-radius: 999px; background: var(--surface-2); font-size: 0.8125rem; font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.cal .dow { font-size: 0.75rem; color: var(--text-3); padding: 4px 0 6px; }
.cal .dow.sun, .cal .sun > span { color: var(--red); }
.cal button { display: flex; flex-direction: column; align-items: center; height: 44px; padding-top: 4px; font-size: 0.9375rem; }
.cal button > span.num { width: 28px; height: 28px; line-height: 28px; border-radius: 50%; }
.cal button.out > span { color: var(--text-4); }
.cal button.today > span { background: var(--accent); color: var(--surface); font-weight: 700; }
.cal button[aria-pressed="true"]:not(.today) > span { background: var(--surface-2); font-weight: 700; }
.cal .dots { display: flex; gap: 2px; height: 4px; margin-top: 2px; }
.cal .dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.list-head { font-size: 0.875rem; font-weight: 700; color: var(--text-2); margin: 4px 0 10px; }
.who-select { height: 38px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface); padding: 0 12px; font-size: 0.875rem; }

/* 채팅 */
.pin-bar { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 0 16px; background: var(--surface); border-bottom: 1px solid var(--border); text-align: left; font-size: 0.9375rem; }
.pin-bar span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pin-bar .ic { width: 18px; height: 18px; color: var(--text-3); }
.chat-body { background: var(--bg-band); padding: 12px 16px 16px; }
.day-sep { text-align: center; margin: 8px 0 12px; }
.day-sep span { display: inline-block; padding: 3px 12px; border-radius: 999px; background: var(--shade); font-size: 0.75rem; color: var(--text-2); }
.offline-bar { display: flex; align-items: center; justify-content: center; height: 32px; padding: 0 16px; background: var(--surface-2); font-size: 0.8125rem; color: var(--text-2); }
.offline-bar[hidden] { display: none; }
.chat-empty { padding: 40px 0; text-align: center; font-size: 0.8125rem; color: var(--text-3); }
.room-empty { background: var(--surface-2); color: var(--text-3); }
.muted-text { color: var(--text-3); }
.room-empty .ic { width: 22px; height: 22px; }
.msgs { display: grid; gap: 10px; }
.msg { display: flex; gap: 8px; align-items: flex-start; }
.msg .col { min-width: 0; max-width: 78%; }
.msg .name { font-size: 0.8125rem; color: var(--text-2); margin-bottom: 3px; }
.msg .line { display: flex; align-items: flex-end; gap: 6px; }
.bubble { min-width: 0; padding: 9px 12px; border-radius: 4px 16px 16px 16px; background: var(--surface); font-size: 1rem; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { font-size: 0.6875rem; color: var(--text-3); white-space: nowrap; }
.msg.mine { justify-content: flex-end; }
.msg.mine .line { flex-direction: row-reverse; }
.msg.mine .bubble { background: var(--accent-soft); border-radius: 16px 4px 16px 16px; }
.composer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; background: var(--surface); border-top: 1px solid var(--border); }
.composer input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border-2); background: var(--surface-2); font-size: 1rem; }
.composer .send-btn { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--accent); color: var(--surface); font-weight: 700; white-space: nowrap; }
.composer .send-btn:disabled { background: var(--muted); }
/* WED-FEAT-014 — 「+」 단추와 메뉴, 고치기 줄, 지운 글, 고침 표시, 글 메뉴 */
.plus-btn { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); font-size: 1.625rem; line-height: 1; color: var(--text-1); }
.plus-btn.open { background: var(--text-1); color: var(--surface); }
.plus-btn.open span { display: inline-block; transform: rotate(45deg); }
.plus-menu { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 12px; background: var(--surface); border-top: 1px solid var(--border); border-radius: 16px 16px 0 0; }
.plus-item { display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 76px; padding: 10px 4px; border-radius: 12px; background: var(--surface-2); font-size: 0.9375rem; font-weight: 700; }
.edit-bar { flex: 1 0 100%; display: flex; align-items: center; gap: 10px; padding: 2px 2px 4px; }
.edit-bar > .ic { color: var(--accent); }
.edit-text { flex: 1; min-width: 0; }
.edit-text b { display: block; font-size: 0.875rem; color: var(--accent); }
.edit-orig { display: block; font-size: 0.8125rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.edit-cancel { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); }
.composer.editing input { border: 2px solid var(--accent); }
.bubble.deleted, .msg.mine .bubble.deleted { background: var(--surface-2); color: var(--text-2); font-size: 0.9375rem; }
.edited { color: var(--text-3); }
.msg.pressed .bubble, .msg.pressed .kind-box { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.msg-menu { display: flex; flex-direction: column; gap: 8px; }
.menu-btn { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 16px; border-radius: 12px; background: var(--surface-2); font-size: 1.0625rem; font-weight: 700; text-align: left; }
.menu-btn.danger { background: var(--bride); color: var(--red); }
.menu-close { min-height: 52px; border: 1px solid var(--border-2); border-radius: 12px; font-size: 1rem; font-weight: 700; }
.room { display: flex; align-items: center; gap: 12px; min-height: 64px; width: 100%; text-align: left; }
.room .av { width: 44px; height: 44px; }
.room-main { flex: 1; min-width: 0; }
.room-main h3 { font-size: 1rem; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.room-main h3 small { font-size: 0.75rem; font-weight: 400; color: var(--text-3); }
.room-main p { display: flex; justify-content: space-between; gap: 8px; font-size: 0.9375rem; margin-top: 2px; }
.room-main p span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unread { flex: none; min-width: 22px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: var(--surface); font-size: 0.75rem; font-weight: 700; line-height: 20px; text-align: center; }

/* 하단 탭 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); min-height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--surface); border-top: 1px solid var(--border); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: var(--tabbar); padding: 6px 2px; font-size: 0.8125rem; font-weight: 600; line-height: 1.2; color: var(--text-2); text-align: center; }
.tabbar a span { max-width: 100%; overflow-wrap: anywhere; }
.tabbar a[aria-current="page"] { color: var(--accent); font-weight: 800; }
.badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--red); color: var(--surface); font-size: 0.625rem; font-weight: 700; line-height: 17px; text-align: center; }

/* 가족 고르기 시트 */
.sheet-wrap { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.4); display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 480px; max-height: 85vh; overflow: auto; background: var(--surface); border-radius: 16px 16px 0 0; padding: 20px 16px calc(16px + env(safe-area-inset-bottom)); animation: up .25s cubic-bezier(0.32, 0.72, 0, 1); }
.sheet h2 { font-size: 1.125rem; font-weight: 700; }
.sheet .note { margin-top: 4px; }
.sheet h3 { font-size: 0.8125rem; color: var(--text-3); font-weight: 600; margin: 14px 0 4px; }
.person { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; text-align: left; font-size: 1rem; }
.person small { color: var(--text-3); font-size: 0.8125rem; margin-left: 2px; }
.person .ic { margin-left: auto; color: var(--accent); }
@keyframes up { from { transform: translateY(24px); } to { transform: none; } }

/* 배치 — 높이는 100vh 다음에 100dvh(보이는 화면 높이). 안드로이드 Chrome의 100vh는 주소창만큼 길다(#22) */
.layout { min-height: calc(100vh - var(--topbar)); min-height: calc(100dvh - var(--topbar)); }
.side-l, .side-r { display: none; }
main { padding-bottom: calc(var(--tabbar) + env(safe-area-inset-bottom) + 8px); }
body.chat-open main { padding-bottom: 0; }
body.chat-open .tabbar { display: none; }
body.chat-open .composer { position: sticky; bottom: 0; padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
body.chat-open .chat-body { min-height: calc(100vh - var(--topbar) - 48px - 61px); min-height: calc(100dvh - var(--topbar) - 48px - 61px); }
.pc-only, .pc-inline { display: none; }

@media (min-width: 1024px) {
  .pc-inline { display: inline; }
  body { background: var(--bg-band); }
  .topbar { height: 60px; padding: 0 max(24px, calc((100vw - 1216px) / 2)); }
  .tabbar, .mo-only, .back-btn { display: none !important; }
  .pc-only { display: block; }
  .layout { display: grid; grid-template-columns: 256px minmax(0, 620px) 300px; gap: 20px; justify-content: center; padding: 20px 24px 40px; align-items: start; }
  main { padding-bottom: 0 !important; }
  .panel { border-radius: 8px; border: 1px solid var(--border); }
  .panel + .panel { border-top: 1px solid var(--border); margin-top: 12px; }
  .side-l, .side-r { display: block; position: sticky; top: 80px; }
  .nav a { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 12px; border-radius: 6px; font-size: 0.9375rem; font-weight: 600; color: var(--text-2); }
  .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
  .nav a .ic { width: 20px; height: 20px; }
  .mini-ev { display: grid; grid-template-columns: 44px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); width: 100%; text-align: left; }
  .mini-ev:last-child { border-bottom: 0; }
  .mini-ev .d { text-align: center; }
  .mini-ev .d b { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
  .mini-ev .d small { font-size: 0.75rem; color: var(--text-3); }
  .mini-ev h3 { font-size: 0.9375rem; font-weight: 700; }
  .mini-ev p { font-size: 0.8125rem; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mini-ev > div { min-width: 0; }
  .chat-panel { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: calc(100vh - 100px); height: calc(100dvh - 100px); }
  .chat-panel .chat-body { flex: 1; overflow: auto; min-height: 0 !important; }
  .chat-panel .composer { position: static !important; }
  .chat-title { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 1.0625rem; font-weight: 700; }
  .chat-title small { color: var(--text-3); font-weight: 600; margin-left: 4px; }
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 16px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* 로그인·가입·알림·설정·관리 */
body.mode-bare .topbar, body.mode-bare .tabbar, body.mode-bare .side-l, body.mode-bare .side-r,
body.mode-flow .tabbar, body.mode-flow .side-l, body.mode-flow .side-r { display: none !important; }
body.mode-bare .layout, body.mode-flow .layout { display: block !important; padding: 0 !important; }
body.mode-bare main, body.mode-flow main { padding-bottom: 0; max-width: 480px; margin: 0 auto; }
body.no-tab .tabbar { display: none; }
body.no-tab main { padding-bottom: 24px; }
body.no-tab.chat-open main { padding-bottom: 0; }

.photo { position: relative; overflow: hidden; background: var(--surface-2); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; }
/* #79 — 판 끝까지 채우는 3:2 사진은 큰 꼴(PC 왼쪽 단)만. 작은 꼴은 판 안 96×96(위 .cover-small) */
.cover-big .cover-photo { aspect-ratio: 3 / 2; margin: -20px -16px 14px; }
.photo .photo-empty { display: none; }
.photo.empty img { display: none; }
.photo.empty .photo-empty { display: grid; place-items: center; position: absolute; inset: 0; font-size: 0.875rem; color: var(--text-3); border: 1px dashed var(--border-2); }

.login { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: var(--bg); }
.login-photo { height: 52vh; min-height: 280px; max-height: 520px; }
.login-body { padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
.login-body h1 { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.login-body > p.num { margin-top: 4px; font-size: 1rem; color: var(--text-2); }
.login-body .note { margin-top: 16px; }
.kakao-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 52px; margin-top: 12px; border-radius: 12px; background: var(--kakao); color: rgba(0, 0, 0, .85); font-size: 1rem; font-weight: 600; }
.kakao-btn .kakao-sym { width: 20px; height: 20px; }
.login-foot { margin-top: 14px; font-size: 0.9375rem; color: var(--text-2); text-align: center; }

.flow { padding: 24px 20px 32px; }
.flow h1 { font-family: var(--font-head); font-size: 1.375rem; font-weight: 700; letter-spacing: -.02em; margin-top: 4px; }
.flow > .note { margin-top: 6px; font-size: 0.9375rem; }
.step { font-size: 0.8125rem; font-weight: 700; color: var(--accent); }
.field-label { display: block; margin-top: 16px; font-size: 0.875rem; font-weight: 600; color: var(--text-2); }
.field-err { margin-top: 6px; font-size: 0.875rem; color: var(--red); }
.field-err:empty { display: none; }
.code-in { width: 100%; height: 56px; margin-top: 6px; padding: 0 16px; border: 1px solid var(--border); background: var(--surface-2); border-radius: 12px; font-size: 1.625rem; font-weight: 700; letter-spacing: .5em; text-align: center; }
.code-in[aria-invalid="true"], .code-in[aria-invalid="true"]:focus { border-color: var(--red); outline-color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--surface)); }
.input { width: 100%; min-height: 48px; margin-top: 6px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; background: var(--surface-2); color: var(--text-1); }
.input::-webkit-calendar-picker-indicator { opacity: .45; }
textarea.input { resize: vertical; line-height: 1.5; }
.input[aria-invalid="true"] { border-color: var(--red); }
.input:focus, .code-in:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.primary-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 12px; border-radius: 999px; background: var(--accent); color: var(--surface); font-size: 1rem; font-weight: 700; }
.primary-btn:disabled { background: var(--muted); cursor: default; }
.primary-btn:active:not(:disabled), .ghost-btn:active, .kakao-btn:active { transform: scale(.98); }
.ghost-btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin-top: 8px; border-radius: 999px; color: var(--text-2); font-size: 0.9375rem; font-weight: 600; }
.ghost-btn.danger, .row.danger { color: var(--red); }
.danger-fill { background: var(--red); }
.flow-foot { margin-top: 16px; font-size: 0.875rem; color: var(--text-2); text-align: center; }

.side-h { font-size: 0.8125rem; color: var(--text-3); font-weight: 600; margin: 16px 0 2px; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.who { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 6px 4px; border-bottom: 1px solid var(--border); cursor: pointer; position: relative; }
.who input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.who > span:not(.av) { flex: 1; min-width: 0; }
.who b { font-size: 1rem; font-weight: 600; }
.who small { display: block; font-size: 0.8125rem; color: var(--text-3); }
.who .radio { width: 24px; height: 24px; flex: none; color: transparent; }
.who:has(input:checked) { background: var(--accent-soft); border-radius: 12px; border-bottom-color: transparent; }
.who:has(input:checked) .radio { color: var(--accent); }
.who:has(input:checked) b { color: var(--accent); }
.who:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 8px; }
.who.taken { cursor: default; }
.who.taken .av { opacity: .5; }
.who.taken b { color: var(--text-3); }
.who em { font-style: normal; font-size: 0.8125rem; color: var(--text-2); background: var(--surface-2); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.sticky-btn { position: sticky; bottom: calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 0 0 12px var(--surface), 0 -24px 16px -4px rgba(255, 255, 255, .95); }

.notify-list { margin: 18px 0 6px; padding: 14px 16px; border-radius: 12px; background: var(--surface-2); }
.notify-list li { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 1rem; }
.notify-list .ic { width: 20px; height: 20px; color: var(--accent); }
.guide { margin-top: 24px; padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.guide h2 { font-size: 1rem; font-weight: 700; }
.guide ol { margin-top: 10px; display: grid; gap: 10px; }
.guide li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; }
.guide .share-ic { width: 18px; height: 18px; color: var(--blue); vertical-align: -3px; }
.guide .n { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 0.8125rem; font-weight: 700; display: grid; place-items: center; }
.sheet .guide { margin-top: 0; border: 0; padding: 0; }
.push-note { margin-top: 12px; font-size: 0.875rem; color: var(--text-2); }
.panel .push-note { margin: 4px 0 8px; }
.field-err[hidden] { display: none; }

.profile { display: flex; align-items: center; gap: 12px; }
.profile .av { width: 56px; height: 56px; font-size: 1.25rem; }
.profile b { display: block; font-size: 1.1875rem; font-weight: 800; }
.profile small { font-size: 0.9375rem; color: var(--text-2); }
/* WED-FEAT-004 — 관리 줄(2.5)·글자 크기 판(2.14~2.17)·로그아웃 줄 높이 */
.panel.row.admin-row { min-height: 60px; padding: 12px 16px; border-bottom: 0; }
.admin-row b { display: block; font-size: 1.0625rem; font-weight: 700; }
.admin-row small { display: block; font-size: 0.875rem; color: var(--text-2); }
.group-title.big { font-size: 1.125rem; font-weight: 800; color: var(--text-1); margin: 0 0 12px; }
.size-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); }
.size-btn { min-height: 52px; padding: 4px 2px; border-radius: 10px; color: var(--text-2); font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.size-btn.size-normal { font-size: 0.9375rem; }
.size-btn.size-large { font-size: 1.0625rem; }
.size-btn.size-xlarge { font-size: 1.1875rem; }
.size-btn[aria-pressed="true"] { background: var(--surface); color: var(--accent); font-weight: 800; }
.text-preview { margin-top: 14px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 1.0625rem; }
.row.danger[data-logout] { min-height: 60px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 1rem; text-align: left; }
.row:last-of-type { border-bottom: 0; }
.row .ic { color: var(--text-3); }
.sw-row span small { display: block; font-size: 0.8125rem; color: var(--text-3); }
.sw-row.off span { color: var(--text-3); }
.switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 50px; height: 30px; margin: 0; border-radius: 999px; background: var(--border-2); cursor: pointer; transition: background-color .15s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform .15s var(--ease); }
.switch:checked { background: var(--accent); }
.switch:checked::after { transform: translateX(20px); }
.switch:disabled { opacity: .45; cursor: default; }
.fam { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.fam:last-child { border-bottom: 0; }
.fam > div { flex: 1; min-width: 0; }
.fam b { font-size: 1rem; font-weight: 600; }
.fam small { font-size: 0.8125rem; color: var(--text-3); }
.fam p { font-size: 0.875rem; color: var(--text-2); }
.small-btn { flex: none; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--border-2); font-size: 0.8125rem; font-weight: 600; color: var(--text-2); }
.confirm { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.confirm .ghost-btn, .confirm .primary-btn { margin-top: 0; height: 48px; }
.confirm .ghost-btn { border: 1px solid var(--border-2); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.two > div { min-width: 0; }
.pchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pchip { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid var(--border-2); font-size: 0.875rem; cursor: pointer; }
.pchip.all { padding-left: 12px; }
.pchip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pchip:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.pchip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pchip .av.sm { width: 26px; height: 26px; border: 0; }
.req { margin-left: 4px; font-size: 0.75rem; font-weight: 700; color: var(--accent); }
@media (max-width: 1023px) { .page-title.dup { display: none; } }
.add-btn { display: inline-flex; align-items: center; gap: 2px; height: 32px; margin-left: 8px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 0.8125rem; font-weight: 700; vertical-align: middle; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar) + 16px + env(safe-area-inset-bottom)); z-index: 50; transform: translate(-50%, 8px); max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 12px; background: rgba(34, 34, 34, .92); color: var(--surface); font-size: 0.9375rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1024px) {
  body.mode-bare { background: var(--bg-band); }
  body.mode-bare main { max-width: 880px; padding: 40px 24px !important; box-sizing: border-box; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; }
  .login { min-height: auto; flex-direction: row; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); }
  .login-photo { width: 50%; height: auto; min-height: 560px; max-height: none; }
  .login-body { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 40px; }
  .login .login-foot { text-align: left; }
  body.mode-flow { background: var(--bg-band); }
  body.mode-flow main { margin-top: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; }
  .toast { bottom: 24px; }
  .sticky-btn { position: static; }
}

/* 관리 목록 */
.page-title.dup { margin-bottom: 16px; }
.chip-sm { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; margin-right: 6px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); font-size: 0.75rem; font-weight: 700; vertical-align: 1px; }
.row-sub { display: block; font-size: 0.8125rem; color: var(--text-3); margin-top: 2px; }
.ghost-btn.outline { border: 1px solid var(--border-2); color: var(--text-1); }
.input[aria-invalid="true"]:focus { outline-color: var(--red); border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--surface)); }

/* WED-FEAT-006 — 가족 연결의 「나」 표시 */
.me-tag { flex: none; font-size: 0.875rem; font-weight: 600; color: var(--text-3); padding: 0 8px; }

/* WED-FEAT-019 홈 화면 바로가기 */
.sheet.ins-wrap { border-radius: 20px 20px 0 0; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); }
.sheet.ins-wrap::before { content: ''; display: block; width: 40px; height: 4px; margin: 0 auto 18px; border-radius: 2px; background: var(--border-2); }
.ins-sheet { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ins-icon { display: block; width: 72px; height: 72px; border-radius: 18px; object-fit: cover; }
.sheet .ins-sheet h2 { margin-top: 14px; font-size: 1.375rem; font-weight: 800; }
.ins-sheet p { margin-top: 6px; font-size: 1.0625rem; color: var(--text-2); }
.ins-btn { height: 56px; margin-top: 20px; border-radius: 14px; font-size: 1.125rem; font-weight: 800; }
.ins-ghost { height: 52px; margin-top: 4px; font-size: 1.0625rem; font-weight: 700; }
.sheet.ios-card { position: relative; overflow: visible; width: calc(100% - 24px); margin: 0 12px calc(18px + env(safe-area-inset-bottom)); padding: 20px; border-radius: 20px; box-shadow: 0 8px 30px rgba(0,0,0,.2); }
.sheet.ios-card.pad { margin-bottom: 24px; }
.ios-head { display: flex; align-items: center; gap: 14px; }
.ios-head .ins-icon { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.sheet .ios-head h2 { font-size: 1.3125rem; font-weight: 800; line-height: 1.35; }
.ios-guide ol { margin-top: 16px; }
.ios-guide li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--border); font-size: 1.125rem; line-height: 1.5; }
.ios-guide .n { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 1rem; font-weight: 800; display: grid; place-items: center; }
.ins-chip { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; margin: 0 2px; border-radius: 8px; background: var(--surface-2); color: var(--text-1); vertical-align: -3px; }
.ins-chip svg { width: 22px; height: 22px; color: var(--blue); }
.ios-note { margin-top: 4px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 1rem; color: var(--text-2); }
.ios-guide .ins-btn { margin-top: 16px; }
.ios-tail { position: absolute; left: 50%; bottom: -14px; margin-left: -12px; width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 14px solid var(--surface); }

/* WED-FEAT-020 — 관리 홈(현황 요약, 더하기 셋, 관리 목록)과 가족 현황판 */
.status-card { display: block; }
.st-head { display: flex; align-items: center; justify-content: space-between; }
.st-head b { font-size: 1.0625rem; font-weight: 800; }
.st-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 12px; text-align: center; }
.st-nums > span { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.st-num { font-size: 1.375rem; font-weight: 800; line-height: 1.2; }
.st-num.ok { color: var(--accent); }
.st-num.warn { color: var(--red); }
.st-nums small { font-size: 0.8125rem; color: var(--text-2); }
.quick-add { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.quick { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 76px; padding: 8px 4px; border-radius: 12px; background: var(--accent-soft); text-align: center; }
.quick b { font-size: 1.375rem; font-weight: 800; color: var(--accent); line-height: 1; }
.quick span { font-size: 0.9375rem; font-weight: 700; }
.admin-list .row { min-height: 56px; font-size: 1.0625rem; font-weight: 700; }
.st-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.st-row:last-child { border-bottom: 0; }
.st-who { display: flex; align-items: center; gap: 10px; }
.st-who b { display: block; font-size: 1.0625rem; font-weight: 700; }
.st-who small { display: block; font-size: 0.875rem; color: var(--text-2); }
.st-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0 50px; }
.st-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 0 9px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; }
.st-pill.ok { background: var(--accent-soft); color: var(--accent); }
.st-pill.warn { background: var(--bride); color: var(--red); }
.st-pill.gray { background: var(--surface-2); color: var(--text-2); }

/* WED-FEAT-017 — 투표 카드, 만들기, 답하기, 결과 표, 관리 판, 정하기 시트 */
.poll-card { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 260px; padding: 14px 16px 0; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); overflow: hidden; }
.panel .poll-card { max-width: none; margin-top: 10px; }
.poll-card.gone { padding-bottom: 14px; }
.poll-kind { display: flex; align-items: center; gap: 4px; font-size: 0.8125rem; font-weight: 700; }
.poll-kind.date { color: var(--groom-ink); }
.poll-kind.choice { color: var(--accent); }
.poll-title { font-family: var(--font-head); font-size: 1.1875rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.poll-info, .poll-progress { font-size: 0.875rem; color: var(--text-2); }
.poll-info.strong { color: var(--accent); font-weight: 700; }
.poll-progress b { color: var(--accent); }
.poll-go { display: flex; align-items: center; justify-content: center; min-height: 48px; margin: 10px -16px 0; border-top: 1px solid var(--border); color: var(--accent); font-size: 1rem; font-weight: 700; }
.opt-row { display: flex; align-items: center; gap: 6px; margin-top: 8px; }
.opt-row .input { margin-top: 0; min-height: 52px; border-radius: 10px; }
.opt-date { flex: 1.4; min-width: 0; }
.opt-note { flex: 1; min-width: 0; }
.opt-time { flex: 1; min-width: 0; }
.opt-label { flex: 1; min-width: 0; }
.opt-drop { flex: none; width: 44px; height: 44px; border-radius: 50%; color: var(--text-3); font-size: 1.25rem; }
.opt-drop:disabled { opacity: .35; }
.opt-add { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; margin-top: 10px; border: 1px dashed var(--border-2); border-radius: 12px; color: var(--accent); font-size: 1rem; font-weight: 700; }
.input.big { min-height: 52px; font-size: 1.0625rem; }
.deadline { max-width: 60%; margin-top: 0; }
.poll-panel { border-radius: 16px; }
.poll-h { font-family: var(--font-head); font-size: 1.375rem; font-weight: 700; line-height: 1.3; }
.poll-panel .poll-info { margin-top: 4px; font-size: 0.9375rem; }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.seg2 button { min-height: 52px; border: 1px solid var(--border-2); border-radius: 12px; font-size: 1rem; font-weight: 700; }
.seg2 button[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.pick-guide { margin-top: 16px; font-size: 0.9375rem; font-weight: 700; }
.date-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.date-row.off { opacity: .45; }
.date-l { font-size: 1.0625rem; font-weight: 700; }
.date-l small { font-size: 0.875rem; font-weight: 400; color: var(--text-2); }
.marks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.mk { min-height: 48px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); font-size: 0.9375rem; font-weight: 700; }
.mk.good[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.mk.maybe[aria-pressed="true"] { background: var(--groom); border-color: var(--groom-ink); color: var(--groom-ink); }
.mk.no[aria-pressed="true"] { background: var(--bride); border-color: var(--bride-ink); color: var(--bride-ink); }
.choice-row { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; min-height: 60px; margin-top: 8px; padding: 0 14px; border: 1px solid var(--border-2); border-radius: 12px; overflow: hidden; text-align: left; }
.choice-row b { position: relative; z-index: 1; flex: 1; min-width: 0; font-size: 1.0625rem; }
.choice-row .cnt { position: relative; z-index: 1; color: var(--accent); font-weight: 700; }
.choice-row .bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); }
.choice-row .ck { position: relative; z-index: 1; flex: none; width: 20px; height: 20px; border: 2px solid var(--border-2); border-radius: 50%; }
.choice-row.multi .ck { border-radius: 4px; }
.choice-row[aria-pressed="true"] { border-color: var(--accent); }
.choice-row[aria-pressed="true"] .ck { background: var(--accent); border-color: var(--accent); }
.result-h { font-size: 1.25rem; font-weight: 700; }
.poll-count { margin-top: 6px; font-size: 0.9375rem; color: var(--text-2); }
.best { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 1rem; font-weight: 800; }
.result-grid { margin-top: 12px; overflow-x: auto; }
.result-grid table { border-collapse: collapse; min-width: 100%; font-size: 0.875rem; }
.result-grid th, .result-grid td { padding: 8px 6px; border-bottom: 1px solid var(--border); text-align: center; white-space: nowrap; }
.result-grid tbody th { text-align: left; font-weight: 600; }
.result-grid .yet { color: var(--text-3); font-weight: 400; }
.result-grid .memo { display: block; font-size: 0.8125rem; font-weight: 400; color: var(--text-2); white-space: normal; }
.mk-cell { font-size: 0.9375rem; font-weight: 800; }
.mk-cell.good { color: var(--accent); }
.mk-cell.maybe { color: var(--groom-ink); }
.mk-cell.no { color: var(--bride-ink); }
.result-grid .sum th, .result-grid .sum td { font-weight: 800; border-bottom: 0; }
.who-picked { margin-top: 10px; }
.who-picked h3 { font-size: 0.9375rem; font-weight: 700; margin-bottom: 4px; }
.who-picked p { padding: 6px 0; font-size: 0.9375rem; color: var(--text-2); }
.who-picked p b { color: var(--text-1); }
.poll-manage { display: flex; flex-direction: column; gap: 8px; }
.poll-manage .primary-btn { margin-top: 0; }
.primary-btn.dark { background: var(--text-1); }
.decide-row { display: flex; align-items: center; gap: 10px; min-height: 48px; border-bottom: 1px solid var(--border); font-size: 1rem; }
.decide-row small { margin-left: auto; color: var(--text-2); }
.plus-item .ic { width: 26px; height: 26px; }

/* WED-FEAT-018 — 사진 묶음, 보내는 중 줄, 크게 보기 */
.photo-grid { display: grid; grid-template-columns: repeat(2, 110px); gap: 4px; border-radius: 14px; overflow: hidden; }
.photo-grid.one { display: block; max-width: 220px; }
.ph-cell { position: relative; display: block; width: 110px; height: 110px; padding: 0; background: var(--surface-2); overflow: hidden; }
.photo-grid.one .ph-cell { width: 100%; height: 100%; }
.ph-cell img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); color: var(--surface); font-size: 1.25rem; font-weight: 800; }
.photo-sending { display: flex; flex-direction: column; gap: 6px; min-width: 180px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); font-size: 0.875rem; }
.photo-sending progress { width: 100%; height: 6px; accent-color: var(--accent); }
.ps-retry { color: var(--accent); font-weight: 700; min-height: 44px; }
.viewer { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; background: var(--viewer); color: var(--surface); }
.vw-count { position: absolute; top: 14px; left: 16px; font-size: 1rem; font-weight: 700; }
.vw-close { position: absolute; top: 4px; right: 4px; width: 48px; height: 48px; color: var(--surface); font-size: 1.875rem; z-index: 2; }
.vw-stage { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; padding: 56px 0 96px; touch-action: pan-y; }
.vw-stage img { grid-area: 1 / 1; max-width: 100%; max-height: 100%; object-fit: contain; }
.vw-thumb { filter: blur(6px); opacity: .5; }
.vw-gone { grid-area: 1 / 1; color: var(--text-4); }
.vw-nav { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border-radius: 50%; background: rgba(255, 255, 255, .15); color: var(--surface); font-size: 1.5rem; }
.vw-nav.prev { left: 8px; }
.vw-nav.next { right: 8px; }
.vw-who { position: absolute; left: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); max-width: 55%; font-size: 0.875rem; color: var(--text-4); }
.vw-who b { display: block; font-size: 1rem; color: var(--surface); }
.vw-save { position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px; border-radius: 999px; background: var(--surface); color: var(--text-1); font-size: 1rem; font-weight: 800; }

/* WED-FEAT-011 — 시기 꼬리표 조각(날짜·시각 안에서 끊지 않는다), 준비 줄의 고치기 */
.when-tag .nw { white-space: nowrap; }
.link-btn.sm { min-height: 32px; margin-top: 6px; padding: 0 12px; font-size: 0.8125rem; position: relative; }
.link-btn.sm::after { content: ""; position: absolute; inset: -6px 0; }
