/* 값 출처: src/theme/index.tsx 의 rose(밝은 테마), type, spacing. ?theme · ?dark 는 아직 읽지 않는다. */
:root {
  --primary: #D6336C;
  --bg: #FCE8EE; /* 잔잔한 배경 bgCalm */
  --surface: #FFFFFF;
  --line: rgba(43, 31, 34, 0.08);
  --muted: #F9DDE3;
  --text: #2B1F22;
  --sub: #5E474D;
  --text-muted: #604B56;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/22px Pretendard, -apple-system, "Apple SD Gothic Neo", sans-serif;
  overflow-wrap: anywhere;
}
main { padding: 8px 20px 32px; }
h2 { font-weight: 600; font-size: 17px; line-height: 24px; margin: 32px 0 8px; }
p, ul, ol { margin: 0 0 12px; }
ul, ol { padding-left: 20px; }
li { margin-bottom: 4px; }
strong { font-weight: 600; }
a { color: var(--primary-text); }
code { font: inherit; background: var(--muted); border-radius: 4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; margin: 0 0 12px; background: var(--surface); border-radius: 16px; overflow: hidden; font-size: 14px; line-height: 20px; }
th, td { text-align: left; vertical-align: top; padding: 8px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--muted); font-weight: 500; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 640px) {
  thead { display: none; }
  tr, td { display: block; }
  tr { padding: 8px 0; border-bottom: 1px solid var(--line); }
  tr:last-child { border-bottom: 0; }
  td { border: 0; padding: 2px 12px; }
  td::before { content: attr(data-label); display: block; color: var(--text-muted); font-size: 12px; line-height: 16px; }
}

/* 공통: C1 스켈레톤(글자색 8%), 아이콘(선 1.75), 버튼(Figma Button Large 48 · Medium 40) */
:root { --primary-text: #AA2251; --sk: rgba(43, 31, 34, 0.08); --card: rgba(255, 255, 255, 0.92); --card-stroke: rgba(43, 31, 34, 0.1); }
.sk { display: block; max-width: 100%; border-radius: 4px; background: var(--sk); }
.icon { flex: none; fill: none; stroke: var(--sub); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.button {
  display: flex; align-items: center; justify-content: center; height: 48px; padding: 0 24px; border-radius: 10px;
  font: inherit; font-weight: 500; color: var(--text); text-decoration: none; cursor: pointer;
  background: var(--card); border: 1px solid var(--card-stroke);
}
.button.primary { background: var(--primary); color: #FFFFFF; border-color: transparent; }
.button.small { height: 40px; padding: 0 16px; margin: 12px 0 14px; }
.button.disabled { opacity: 0.4; pointer-events: none; }
.caption { margin: 0; color: var(--text-muted); font-size: 12px; line-height: 16px; }
[hidden] { display: none !important; }

/* 15 공지사항 · 문의(Figma 85:3389~85:3591). 헤더는 앱이 네이티브로 그린다. */
.list { padding: 24px 20px 32px; }
.section { margin: 0 0 8px; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--sub); }
#notices { margin-bottom: 8px; }
.notice-head {
  display: grid; grid-template-columns: 1fr 20px; column-gap: 12px; align-items: center; width: 100%;
  padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); background: none; font: inherit; color: inherit; text-align: left; cursor: pointer;
}
.notice-head .sk { grid-column: 1; }
.notice-title { grid-column: 1; }
.notice-date { grid-column: 1; margin-top: 2px; color: var(--text-muted); font-size: 12px; line-height: 16px; }
.notice-head .icon { grid-column: 2; grid-row: 1 / 3; transition: transform 0.2s; }
.notice-head[aria-expanded="true"] { border-bottom: 0; }
.notice-head[aria-expanded="true"] .icon { transform: rotate(180deg); }
.notice-body { margin: 0; padding: 0 0 14px; border-bottom: 1px solid var(--line); color: var(--sub); font-size: 14px; line-height: 20px; white-space: pre-line; }
.empty { margin: 0; padding: 14px 0; font-size: 14px; line-height: 20px; color: var(--sub); }
#notices .caption { margin-top: -10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
.row .value { color: var(--sub); font-size: 14px; line-height: 20px; }
@media (prefers-reduced-motion: reduce) { .notice-head .icon { transition: none; } }

/* 초대 받기(앱이 없을 때). 01-2의 배치를 잔잔한 배경으로. */
.invite { display: flex; flex-direction: column; align-items: center; gap: 20px; word-break: keep-all; min-height: 100vh; min-height: 100dvh; padding: 120px 20px max(24px, env(safe-area-inset-bottom)); text-align: center; }
.avatar { display: flex; align-items: center; justify-content: center; width: 88px; height: 88px; border-radius: 50%; background: var(--muted); }
.avatar svg { fill: none; stroke: var(--sub); stroke-width: 1.75; stroke-linecap: round; }
.invite h1 { margin: 0; font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -0.12px; }
.invite #desc { margin: 0; color: var(--sub); font-size: 14px; line-height: 20px; }
.invite .sk { margin: 0 auto; }
.invite .actions { display: flex; flex-direction: column; gap: 12px; align-self: stretch; margin-top: auto; }
