/* ==========================================================================
   월계동 주민 민원 작성기 — style.css (v3)
   디자인 시스템
     컨테이너 1200px · 데스크톱 2열(1fr + 340px sticky rail) · 모바일 1열
     무채색 기조(#fff/#f5f5f7/#171717/#e5e5e5) + 네이비 #123f7a + 강조 파랑 1색
     제목 44~52px/800 · 섹션 제목은 주장하는 문장 · 영문 대문자 모노 라벨
     숫자는 모노 · 본문 최소 14.5px · 검정 밴드 섹션 1개
   ========================================================================== */

:root {
  --ink: #171717;
  --ink-2: #3d3d3d;
  --muted: #6b6b6b;
  --faint: #9a9a9a;
  --line: #e5e5e5;
  --line-2: #d4d4d4;
  --bg: #ffffff;
  --soft: #f5f5f7;
  --navy: #123f7a;
  --navy-deep: #0d2f5c;
  --accent: #1d4ed8;
  --accent-soft: #e8effc;
  --black: #000000;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04);
  --shadow-md: 0 12px 32px -18px rgba(0, 0, 0, .28);

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR",
          system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
          "Liberation Mono", "D2Coding", monospace;

  --shell: 1200px;
  --rail: 340px;
  --pad: 20px;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-anchor: none;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
img, svg { display: block; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: 14.5px; transition: top .15s ease;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 6px;
}

/* ============================================================== 상단바 == */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--navy);
  color: #fff;
}

.brand-text {
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-short { display: none; }

.topbar-right { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

.org {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}

.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
}
.topbar-btn:hover { background: var(--navy); }

/* ============================================================== 공통 == */
.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.mono-label::before {
  content: "";
  width: 16px; height: 1px;
  background: var(--line-2);
}

.section {
  padding: 76px 0 0;
  border-top: 1px solid var(--line);
  margin-top: 76px;
}
.section:first-of-type { border-top: 0; margin-top: 0; }

.section-title {
  font-size: clamp(25px, 3.4vw, 36px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.035em;
  color: var(--ink);
  max-width: 22ch;
}

.section-lead {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 56ch;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 0 22px;
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  transition: background .16s ease, transform .12s ease, box-shadow .16s ease;
  box-shadow: 0 10px 24px -16px rgba(18, 63, 122, .9);
}
.btn-primary:hover { background: var(--navy-deep); }
.btn-primary:active { transform: scale(.985); }
.btn-primary .arrow { transition: transform .18s ease; }
.btn-primary:hover .arrow { transform: translateX(4px); }

.btn-line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: #fff;
  color: var(--ink);
  font-size: 14.5px;
  font-weight: 700;
  transition: border-color .16s ease, background .16s ease, transform .12s ease;
}
.btn-line:hover { border-color: var(--ink); background: var(--soft); }
.btn-line:active { transform: scale(.985); }
.btn-line .arrow { transition: transform .18s ease; }
.btn-line:hover .arrow { transform: translateX(4px); }

.field-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  margin: 16px 0 6px;
}

.field-input {
  width: 100%;
  min-height: 48px;
  padding: 10px 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
}
.field-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18, 63, 122, .1); }

/* 말풍선 편집 */
.bubble-wrap { position: relative; }
.bubble-wrap::before {
  content: "";
  position: absolute;
  left: 18px; top: -6px;
  width: 12px; height: 12px;
  background: var(--soft);
  border-left: 1px solid var(--line-2);
  border-top: 1px solid var(--line-2);
  transform: rotate(45deg);
  border-radius: 3px 0 0 0;
}
.bubble {
  display: block;
  width: 100%;
  min-height: 180px;
  padding: 16px 16px 18px;
  background: var(--soft);
  border: 1px solid var(--line-2);
  border-radius: 6px 16px 16px 16px;
  font-size: 15px;
  line-height: 1.78;
  color: var(--ink);
  resize: vertical;
  transition: border-color .15s ease, box-shadow .15s ease, background .2s ease;
}
.bubble:focus {
  outline: none;
  background: #fff;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(18, 63, 122, .1);
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.meta-mono {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.reg-chip {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--navy);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.reg-chip.is-lms { color: #a8420f; background: #fdf0e8; }

/* 세그먼트 */
.seg {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  padding: 4px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.seg-3 { grid-template-columns: repeat(3, 1fr); }
.seg-4 { grid-template-columns: repeat(4, 1fr); }

.seg input {
  position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none;
}
.seg label {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 4px;
  border-radius: 9px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-2);
  cursor: pointer;
  text-align: center;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}
.seg-4 label { font-size: 13px; }
.seg input:checked + label {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .12);
}
.seg input:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 1px; }

/* 단계 목록 */
.step-list { display: grid; gap: 10px; }
.step-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
.step-no {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
}

/* 등장 애니메이션 */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .62s cubic-bezier(.22, .61, .36, 1),
              transform .62s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.82); }
}

/* ============================================================== 히어로 == */
.hero { padding-top: 40px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--accent);
  margin-bottom: 16px;
}

.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(29, 78, 216, .5);
  animation: blink 1.7s ease-in-out infinite;
}

.hero-title {
  font-size: clamp(32px, 6.4vw, 52px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.045em;
  color: var(--ink);
  max-width: 18ch;
}

.hero-lead {
  margin-top: 18px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--muted);
  max-width: 46ch;
}

/* 대표 카드 */
.feature {
  margin-top: 32px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.feature-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.feature-no {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--navy);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 4px 8px;
}

.stage-chip {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
}
.stage-sprout { color: #3f6b3f; background: #eef5ee; border-color: #d9e8d9; }
.stage-start { color: #1d4ed8; background: #eaf0fd; border-color: #d5e2fb; }
.stage-grow { color: #0f6b4f; background: #e8f5ef; border-color: #cfe9df; }
.stage-spread { color: #8a4b0f; background: #fdf1e3; border-color: #f5ddc2; }
.stage-fire { color: #fff; background: var(--navy); border-color: var(--navy); }

.feature-title {
  font-size: clamp(21px, 2.6vw, 26px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.3;
}

.feature-sub {
  margin-top: 4px;
  font-size: 14.5px;
  color: var(--muted);
}

.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.tune {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.tune-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--muted);
  margin-bottom: 8px;
}
.tune-body { display: grid; gap: 8px; }

/* ============================================================== 레일 == */
.rail { display: grid; gap: 12px; align-content: start; }

.rail-card {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.rail-submit .btn-primary { width: 100%; }

.rail-target {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
}

.rail-links { display: grid; gap: 2px; }
.rail-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
}
.rail-link:last-child { border-bottom: 0; }
.rail-link:hover { color: var(--navy); }
.rail-link-go { color: var(--faint); font-size: 13px; }

.rail-stat {
  font-size: 12.5px;
  color: var(--muted);
  padding: 0 2px;
}
.rail-stat b { color: var(--ink); }

/* ============================================================ 검정 밴드 == */
.band {
  margin-top: 76px;
  background: var(--black);
  color: #fff;
  padding: 56px 0;
}

.band-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}

.band-facts {
  display: grid;
  grid-template-columns: auto auto;
  gap: 12px 40px;
  align-items: end;
}

.band-item { display: grid; gap: 2px; }

.band-num {
  font-size: clamp(44px, 7vw, 68px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
  color: #fff;
}

.band-label {
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
  letter-spacing: .01em;
}

.band-note {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, .42);
}

.band-browser {
  border-top: 1px solid rgba(255, 255, 255, .18);
  padding-top: 14px;
}
.band-browser-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .45);
  margin-bottom: 6px;
}
.band-browser-line {
  font-size: 16px;
  color: #fff;
}
.band-browser-line b { font-size: 20px; font-weight: 700; }
.band-browser-note {
  margin-top: 4px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, .4);
}

/* ============================================================== 의제 == */
.topic-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
}

.topic-card { display: grid; }

.topic-btn {
  display: grid;
  gap: 6px;
  width: 100%;
  height: 100%;
  padding: 18px;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.topic-btn:hover {
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.topic-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.topic-icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--soft);
  color: var(--navy);
}
.topic-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.4;
  color: var(--ink);
}
.topic-sub { font-size: 14.5px; color: var(--muted); }
.topic-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.topic-count { color: var(--ink); font-weight: 700; }
.topic-channel { color: var(--faint); }

/* ============================================================== 퀵 패널 == */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.chip-btn:hover { border-color: var(--ink); }
.chip-btn.is-on {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.chip-no { font-size: 11px; opacity: .7; }

.quick-out {
  margin-top: 22px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.quick-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.quick-topic { font-size: 15px; font-weight: 800; letter-spacing: -.02em; }

.quick-channel {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--soft);
  border-radius: var(--radius-sm);
}
.quick-channel-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 10px;
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.empty-hint {
  margin-top: 20px;
  padding: 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--faint);
  text-align: center;
}

/* 여러 편 배치 */
.batch {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: #fff;
}
.batch-label {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  margin-bottom: 12px;
}

.batch-controls {
  display: grid;
  gap: 10px;
}
.batch-controls .field-label { margin: 0; }
.batch-controls .seg { max-width: 460px; }
.batch-controls .btn-line { justify-self: start; }

.batch-summary {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.6;
}
.batch-summary b { color: var(--ink); }
.warn-text { color: #a8420f; font-weight: 700; }

.batch-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 16px;
}
.batch-cards:empty { margin-top: 0; }

.batch-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
}
.batch-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.batch-no {
  display: grid;
  place-items: center;
  width: 22px; height: 22px;
  flex: 0 0 auto;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}
.chips-row { display: flex; flex-wrap: wrap; gap: 4px; }

.mini-chip {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
}
.sim-chip {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 2px 7px;
  white-space: nowrap;
  border: 1px solid transparent;
}
.sim-low { color: #0f6b4f; background: #e8f5ef; border-color: #cfe9df; }
.sim-mid { color: #8a4b0f; background: #fdf1e3; border-color: #f5ddc2; }
.sim-high { color: #fff; background: #b23c17; border-color: #b23c17; }

.batch-card .bubble { min-height: 150px; font-size: 14.5px; }
.batch-card-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.batch-actions { margin-top: 14px; }

/* ============================================================== 창구 == */
.channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 28px;
}

/* 창구가 홀수(5개)면 마지막 카드가 한 줄을 다 쓴다 — 마지막 줄에 혼자 남기지 않는다 */
.channel-card:last-child:nth-child(odd) { grid-column: 1 / -1; }

.channel-card {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.channel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.channel-name { font-size: 16.5px; font-weight: 800; letter-spacing: -.02em; }
.channel-go {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.channel-go:hover { text-decoration: underline; }
.channel-host {
  margin-top: 12px;
  font-size: 11px;
  color: var(--faint);
}

.target-map {
  margin-top: 28px;
  padding: 20px;
  background: var(--soft);
  border-radius: var(--radius);
}
.target-map-lead {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--muted);
}
.rec-list {
  display: grid;
  gap: 0;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.rec-item {
  display: grid;
  gap: 3px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.rec-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.rec-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.rec-no {
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy);
}
.rec-topic { font-size: 15px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.rec-first,
.rec-with {
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
}
.rec-first { margin-top: 4px; font-weight: 700; }
.rec-tag {
  flex: 0 0 auto;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  white-space: nowrap;
}
.rec-tag.is-alt { background: #fff; color: var(--navy); border: 1px solid rgba(18, 63, 122, .35); }
.rec-why {
  margin-top: 1px;
  padding-left: 3px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
}

/* ============================================================== 번들 == */
.bundle-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 24px;
}

.bundle-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.bundle-item:hover { border-color: var(--line-2); background: var(--soft); }
.bundle-item input {
  appearance: none; -webkit-appearance: none;
  width: 22px; height: 22px;
  margin: 0;
  border: 1.5px solid #8d8d8d;
  border-radius: 6px;
  background: #fff;
  position: relative;
  flex: 0 0 auto;
}
.bundle-item input:checked { background: var(--navy); border-color: var(--navy); }
.bundle-item input:checked::after {
  content: "";
  position: absolute;
  left: 7px; top: 3px;
  width: 5px; height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(42deg);
}
.bundle-no { font-size: 11.5px; color: var(--faint); }
.bundle-title { font-size: 14.5px; font-weight: 600; }

.bundle-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.bundle-out { margin-top: 20px; }
.inline-row { display: flex; gap: 8px; }
.inline-row .field-input { flex: 1; min-width: 0; font-size: 13px; }

.bundle-list { margin-top: 22px; display: grid; gap: 6px; }
.bundle-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  background: var(--soft);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
}
.bundle-row-actions { display: flex; gap: 6px; }
.mini {
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #fff;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-2);
}
.mini:hover { border-color: var(--ink); color: var(--ink); }

/* ============================================================== 기록 == */
.record-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.record-item {
  display: grid;
  gap: 4px;
  padding: 20px;
  background: var(--soft);
  border-radius: var(--radius);
}
.record-num {
  font-size: clamp(30px, 5vw, 44px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--ink);
}
.record-label { font-size: 14.5px; color: var(--muted); }

.badges {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 24px;
}

.badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--faint);
}
.badge.is-earned {
  border-color: var(--navy);
  color: var(--ink);
  background: var(--accent-soft);
}
.badge-mark { font-size: 10px; color: var(--line-2); }
.badge.is-earned .badge-mark { color: var(--navy); }
.badge-label { flex: 1; font-weight: 700; }
.badge-need { font-size: 11.5px; color: var(--faint); }

.record-next { margin-top: 16px; font-size: 14.5px; color: var(--ink-2); }
.record-note { margin-top: 6px; font-size: 12.5px; color: var(--faint); }

/* ============================================================ 문자 화면 == */
/* v3.1 — 숨은 모달을 없애고 독립 화면(#/sms)으로 승격.
   좌측: 단계별 선택(받는 사람 → 종류 → 주제 → 고급) / 우측: 폰 고정 + 큰 CTA */
/* .shell 과 같이 쓰이므로 좌우 여백은 .shell 에 맡긴다 */
.sms-page { padding-top: 36px; padding-bottom: 72px; }

.sms-head { margin-bottom: 28px; }
.sms-title {
  font-size: clamp(30px, 4.6vw, 44px);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.045em;
  color: var(--ink);
  max-width: 18ch;
}
.sms-lead {
  margin-top: 14px;
  max-width: 62ch;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--muted);
}

.sms-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}
.sms-steps { display: grid; gap: 16px; min-width: 0; }
.sms-steps > * { min-width: 0; }
.sms-side { min-width: 0; }
/* 폰 + 문체·분량 묶음 — 이 둘은 떨어지지 않는다.
   1열이 되는 폭에서는 폰 폭에 맞춰 가운데로 모은다. */
.sms-hold { min-width: 0; max-width: 470px; margin: 0 auto; }

/* ---------- 단계 패널 ---------- */
.panel {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.panel-no {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.panel-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.3;
  color: var(--ink);
}
.panel-count {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.panel-hint {
  margin-left: auto;
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
}

/* 2단계 — 종류·주제 (한 패널) */
.kind-label { margin: 18px 0 8px; }

/* 문체·분량 — v3.5부터 오른쪽 폰 열, 말풍선 바로 아래에 붙는다 */
.sms-tune {
  margin-top: 12px;
  padding: 14px 16px 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.sms-tune-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.sms-tune-title {
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.sms-tune-meta { font-size: 11.5px; font-weight: 700; color: var(--navy); }
.sms-tune .field-label { margin: 10px 0 5px; }
.sms-tune .seg { background: #fff; }
.sms-tune .seg label { min-height: 40px; }
.sms-tune-hint {
  margin-top: 9px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--faint);
}

/* 받는 사람 호칭 안내 */
.rcard-hint {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- 단계 진행 표시 (v3.4) ---------- */
.steps-progress {
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.steps-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.steps-count {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.steps-count b {
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
}
.steps-chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.step-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  min-height: 38px;
  padding: 0 9px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}
.step-chip.is-done {
  background: var(--accent-soft);
  border-color: rgba(18, 63, 122, .28);
  color: var(--navy);
  font-weight: 700;
}
.step-chip-no {
  flex: 0 0 auto;
  font-size: 10.5px;
  color: var(--faint);
}
.step-chip.is-done .step-chip-no { color: var(--navy); }
.step-chip-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.step-chip-mark {
  flex: 0 0 auto;
  margin-left: auto;
  font-size: 11px;
  color: var(--faint);
}
.step-chip.is-done .step-chip-mark { color: var(--navy); }
.steps-hint {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
}
/* 좁은 화면에서 칩 이름이 잘리지 않게 — 표시를 줄여 글자 자리를 만든다 */
@media (max-width: 419px) {
  .step-chip { padding: 0 8px; gap: 5px; }
  .step-chip-mark { display: none; }
}
@media (max-width: 359px) {
  .step-chip { padding: 0 7px; font-size: 11.5px; }
  .step-chip-no { display: none; }
}

/* ---------- 접수처 출처 각주 (v3.4) ---------- */
.src-note {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--line-2);
  font-size: 12px;
  line-height: 1.6;
  color: var(--faint);
}

/* ---------- 이웃에게 알리기 · 초대 문구 (v3.4) ---------- */
.invite {
  margin-top: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.invite-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.invite-label {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.invite-copy {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px;
  font-size: 12.5px;
}
.invite-body {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.75;
  color: var(--ink-2);
  white-space: pre-line;
}
.invite-hint {
  margin-top: 8px;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--faint);
}

/* ---------- 5. 소식 — 진행 타임라인 (v3.4) ---------- */
.timeline { margin-top: 24px; }
.tl-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0;
}
.tl-item {
  position: relative;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 0 0 20px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 16px;
  bottom: 0;
  width: 1px;
  background: var(--line-2);
}
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }
.tl-dot {
  position: relative;
  z-index: 1;
  width: 11px; height: 11px;
  margin: 6px 0 0 5px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line-2);
}
.tl-item[data-state="done"] .tl-dot { background: var(--navy); border-color: var(--navy); }
.tl-item[data-state="doing"] .tl-dot { background: #fff; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18, 63, 122, .14); }
.tl-item[data-state="todo"] .tl-dot { background: #fff; border-color: var(--line-2); }
.tl-body { min-width: 0; }
.tl-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tl-state {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  background: var(--soft);
  border: 1px solid var(--line-2);
  color: var(--muted);
}
.tl-item[data-state="done"] .tl-state { background: var(--navy); border-color: var(--navy); color: #fff; }
.tl-item[data-state="doing"] .tl-state { background: var(--accent-soft); border-color: rgba(18, 63, 122, .28); color: var(--navy); }
.tl-date {
  font-size: 11.5px;
  color: var(--faint);
}
.tl-title {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.45;
  color: var(--ink);
}
.tl-desc {
  margin-top: 4px;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.pending-block { margin-top: 32px; }

/* ---------- 1단계 · 받는 사람 ---------- */
.rcard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}
.rcard {
  display: grid;
  justify-items: start;
  gap: 5px;
  min-width: 0;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.rcard:hover { border-color: var(--ink); }
.rcard.is-on {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 1px var(--navy);
  background: #fff;
}
.rcard-avatar {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 4px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--navy);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  transition: background .15s ease, color .15s ease;
}
.rcard.is-on .rcard-avatar { background: var(--navy); color: #fff; }
.rcard-name {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  max-width: 100%;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.025em;
  color: var(--ink);
}
.rcard-optional {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--faint);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 1px 6px;
  white-space: nowrap;
}
.rcard-role {
  max-width: 100%;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-2);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rcard-phone {
  font-size: 13px;
  letter-spacing: .01em;
  color: var(--muted);
}
.rcard-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 8px;
  width: 100%;
  margin-top: 5px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.rcard-sent {
  font-size: 11.5px;
  color: var(--faint);
  white-space: nowrap;
}
.rcard-sent b { font-weight: 700; color: var(--navy); }

.lead-badge {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 1px 7px;
  white-space: nowrap;
}
.lead-badge.is-off { background: var(--line); color: var(--faint); }

/* ---------- 2단계 · 문자 종류 ---------- */
.mode-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode-pill {
  min-height: 52px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -.02em;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.mode-pill:hover { border-color: var(--ink); }
.mode-pill.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.mode-pill:active { transform: scale(.99); }
.mode-hint {
  margin-top: 12px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  text-align: left;
}

/* ---------- 2단계 · 주제 카드 ---------- */
.tcard-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.tcard {
  position: relative;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  text-align: left;
  transition: background .16s ease, border-color .16s ease;
}
.tcard:hover { border-color: var(--ink); }
.tcard.is-on { background: var(--navy); border-color: var(--navy); }
.tcard-flag {
  position: absolute;
  left: 18px; top: -9px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .02em;
  color: #fff;
  background: var(--accent);
  border-radius: 999px;
  padding: 2px 9px;
}
.tcard-no {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--navy);
}
.tcard-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.42;
  letter-spacing: -.025em;
  color: var(--ink);
}
.tcard-sub { font-size: 14px; line-height: 1.6; color: var(--muted); }
.tcard-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 10px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--faint);
}
.tcard.is-on .tcard-no { color: #a9c6ec; }
.tcard.is-on .tcard-title { color: #fff; }
.tcard.is-on .tcard-sub { color: rgba(255, 255, 255, .78); }
.tcard.is-on .tcard-foot { color: rgba(255, 255, 255, .62); border-top-color: rgba(255, 255, 255, .22); }
.tcard.is-on .tcard-flag { background: #fff; color: var(--navy); }

/* ---------- 우측 · 폰 목업(인라인 열) ---------- */
/* 모달 전용이던 .phone 골격을 인라인 열 기준으로 다시 정의한다 */
.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 9px solid #111;
  border-radius: 40px;
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 118px; height: 24px;
  background: #111;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  padding: 12px 26px 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: #111;
}
.phone-status-right { font-size: 10px; letter-spacing: .08em; }

.phone-screen {
  flex: 1 1 auto;
  padding: 4px 18px 20px;
}

.phone-inline {
  width: 100%;
  max-width: 470px;
  max-height: none;
  margin: 0 auto;
  border-width: 10px;
  border-radius: 44px;
  box-shadow: 0 26px 54px -32px rgba(0, 0, 0, .55);
}

.p-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 6px 2px 12px;
  border-bottom: 1px solid var(--line);
}
.p-avatar {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}
.p-head-body { display: grid; gap: 1px; min-width: 0; }
.p-name {
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-role {
  font-size: 11.5px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-phone { font-size: 11.5px; color: var(--faint); }

.p-mode {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
}
.p-bubble {
  min-height: 240px;
  font-size: 15.5px;
  line-height: 1.78;
}
.p-meta {
  margin-top: 8px;
  font-size: 11px;
  color: var(--faint);
  text-align: right;
}
.p-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.p-again {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
}
.p-again:hover { border-color: var(--ink); }
.p-input {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  min-width: 0;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--soft);
  font-size: 12px;
  color: var(--faint);
}
.p-send {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}
.p-send:hover { background: var(--navy-deep); }

/* ---------- 우측 · CTA ---------- */
.sms-cta { display: grid; gap: 8px; margin-top: 16px; }
.btn-send {
  min-height: 56px;
  padding: 0 20px;
  border-radius: 16px;
  background: var(--navy);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  transition: background .16s ease, transform .12s ease;
}
.btn-send:hover { background: var(--navy-deep); }
.btn-send:active { transform: scale(.99); }
.btn-send-sm { min-height: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn-copy-line {
  min-height: 48px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  transition: border-color .16s ease, background .16s ease;
}
.btn-copy-line:hover { border-color: var(--ink); background: var(--soft); }
.sms-note { font-size: 13px; line-height: 1.65; color: var(--muted); }

/* ---------- 모바일 고정 바 ---------- */
.sms-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid var(--line);
}
.sms-bar-sum { font-size: 12px; color: var(--ink-2); }
.sms-bar .btn-send { flex: 0 0 auto; min-width: 148px; }
body.is-sms { padding-bottom: 78px; }

/* ---------- 홈 · 문자 안내 배너 ---------- */
.sms-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, var(--soft) 100%);
}
.sms-banner-title {
  font-size: clamp(21px, 2.6vw, 27px);
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--ink);
}
.sms-banner-lead {
  margin-top: 8px;
  max-width: 58ch;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}
.sms-banner-go { justify-self: start; white-space: nowrap; }

/* ---------- 히어로 · 문자로 보내기 ---------- */
.hero-sms {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 0 16px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  background: #fff;
  color: var(--navy);
  font-size: 14.5px;
  font-weight: 700;
  transition: border-color .16s ease, background .16s ease;
}
.hero-sms:hover { border-color: var(--navy); background: var(--accent-soft); }

/* ---------- 문자 화면 반응형 ---------- */
@media (min-width: 380px) {
  .rcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 720px) {
  .sms-page { padding-top: 48px; }
  .rcard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tcard.is-featured { grid-column: 1 / -1; }
  .sms-banner { grid-template-columns: minmax(0, 1fr) auto; }
  .sms-banner-go { justify-self: end; }
}

@media (min-width: 980px) {
  .sms-page { padding-top: 56px; padding-bottom: 96px; }
  .sms-grid { grid-template-columns: minmax(0, 1fr) 430px; gap: 28px; }
  /* 폰과 문체·분량만 붙박이. CTA·초대 문구는 따라 내려간다.
     세로가 짧아 한 화면에 다 들어가지 않으면 이 열 안에서만 스크롤한다. */
  .sms-hold {
    position: sticky;
    top: 84px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
  }
  .sms-side { position: static; }
  .sms-bar { display: none; }
  body.is-sms { padding-bottom: 0; }
  /* 2열 레이아웃에서는 좌측 열이 좁아지므로 카드를 2열로 되돌린다 */
  .rcard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1200px) {
  /* 좌측 열이 720px 이상 확보되면 다시 3열 */
  .rcard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sms-grid { grid-template-columns: minmax(0, 1fr) 470px; }
}


@media (max-width: 379px) {
  .sms-page { padding-top: 28px; padding-bottom: 64px; }
  .panel { padding: 18px; border-radius: 16px; }
  .rcard { padding: 14px; }
  .rcard-avatar { width: 38px; height: 38px; font-size: 13px; }
  .rcard-name { font-size: 15.5px; }
  .mode-pill { font-size: 14.5px; }
  .sms-bar .btn-send { min-width: 132px; }
}

/* ============================================================ 주민 모드 == */
.resident { padding: 48px 0 80px; max-width: 760px; }
.res-hero {
  font-size: clamp(28px, 5.6vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.04em;
}
.res-lead { margin-top: 14px; font-size: 16px; color: var(--muted); }

.res-list { display: grid; gap: 10px; margin-top: 28px; }
.res-card {
  display: grid;
  gap: 5px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.res-no { font-size: 11.5px; color: var(--navy); font-weight: 700; }
.res-title { font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.res-status { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.res-target { font-size: 12px; color: var(--faint); }

.res-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.res-out { display: grid; gap: 18px; margin-top: 28px; }
.res-msg { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.res-msg-topic { font-size: 11.5px; color: var(--navy); margin-bottom: 4px; }
.res-msg-title { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.res-note { margin-top: 32px; font-size: 12.5px; color: var(--faint); }

/* ============================================================== 푸터 == */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 44px;
  margin-top: 76px;
  background: var(--soft);
}
.site-footer p { font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.footer-strong { font-weight: 700; color: var(--ink) !important; font-size: 13px !important; margin-bottom: 4px; }

/* ============================================================== 토스트 == */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 200;
  transform: translate(-50%, 14px);
  max-width: min(92vw, 520px);
  padding: 13px 22px;
  border-radius: 999px;
  background: rgba(17, 17, 17, .95);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  box-shadow: var(--shadow-md);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

.empty { padding: 60px 0; text-align: center; color: var(--muted); }

/* ============================================================ 반응형 == */
/* 1) 아주 좁은 화면 */
@media (max-width: 379px) {
  :root { --pad: 16px; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .brand-text { font-size: 12.5px; }
  .brand { gap: 8px; }
  .topbar-in { gap: 6px; }
  .topbar-right { gap: 6px; }
  .topbar-btn { height: 34px; padding: 0 10px; font-size: 12.5px; }
  .org { display: none; }
  .hero-title { font-size: 29px; }
  .seg-4 label { font-size: 11.5px; }
  .record-grid { grid-template-columns: 1fr; }
  .band-facts { grid-template-columns: 1fr 1fr; gap: 10px 20px; }
}

/* 2) 작은 모바일 */
@media (min-width: 380px) and (max-width: 559px) {
  :root { --pad: 18px; }
  .topbar-in { gap: 6px; }
  .brand { gap: 8px; }
  .brand-full { display: none; }
  .brand-short { display: inline; }
  .brand-text { font-size: 12.5px; }
  .topbar-right { gap: 6px; }
  .org { font-size: 10.5px; padding: 2px 7px; }
  .topbar-btn { height: 34px; padding: 0 10px; font-size: 12.5px; }
}

/* 3) 큰 모바일 */
@media (min-width: 560px) {
  :root { --pad: 24px; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .bundle-grid { grid-template-columns: 1fr 1fr; }
  .badges { grid-template-columns: 1fr 1fr; }
  .band-inner { grid-template-columns: 1fr auto; }
  .band-browser { border-top: 0; padding-top: 0; text-align: right; }
}

/* 4) 태블릿 */
@media (min-width: 720px) {
  .hero { padding-top: 56px; }
  .section { padding-top: 88px; margin-top: 88px; }
  .band { margin-top: 88px; padding: 64px 0; }
  .feature { padding: 26px; }
  .quick-out { padding: 24px; }
}

/* 5) 데스크톱: 2열 + sticky rail */
@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr) var(--rail);
    gap: 44px;
    align-items: start;
  }
  .rail { position: sticky; top: 86px; }
  .topic-grid { grid-template-columns: repeat(3, 1fr); }
  .channel-grid { grid-template-columns: repeat(2, 1fr); }
  /* 창구가 홀수라 마지막 카드가 한 줄을 다 쓸 때 — 3단계를 가로로 펼쳐 빈 오른쪽을 없앤다 */
  .channel-card:last-child:nth-child(odd) .step-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px 20px;
    align-items: start;
  }
  .badges { grid-template-columns: repeat(5, 1fr); }
  .badge { flex-direction: column; align-items: flex-start; gap: 6px; border-radius: 14px; padding: 14px; }
  .badge-label { font-size: 14.5px; }
}

/* 6) 큰 데스크톱 */
@media (min-width: 1200px) {
  .hero-title { font-size: 52px; }
  .section-title { font-size: 36px; }
  .band-num { font-size: 68px; }
}

/* 7) 아주 큰 화면 */
@media (min-width: 1440px) {
  :root { --shell: 1200px; }
  .hero { padding-top: 72px; }
}

/* 접근성: 모션 최소화 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .live-dot { animation: none !important; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

/* ==========================================================================
   v3.2 — 6탭 구조 (홈 · 문자 · 민원 · 쓰기 · 소식 · 창구)
   참고 모델(dmc-minwon)의 정보 구조를 따르되, 서버가 있어야 하는 수치는 비운다.
   ========================================================================== */

/* ---------- 상단 탭 ---------- */
.tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.tabs::-webkit-scrollbar { display: none; }

.tab-btn {
  flex: 0 0 auto;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--muted);
  white-space: nowrap;
  transition: background .15s ease, color .15s ease;
}
.tab-btn:hover { background: var(--soft); color: var(--ink); }
.tab-btn.is-on { background: var(--navy); color: #fff; }
.tab-btn.is-on:hover { background: var(--navy-deep); color: #fff; }
.tab-btn .sm { display: none; }

/* ---------- 탭 페이지 공통 ---------- */
.tab-page { padding-top: 40px; padding-bottom: 88px; }

.tab-head { max-width: 720px; }
.tab-title {
  font-size: 32px;
  font-weight: 800;
  line-height: 1.24;
  letter-spacing: -.04em;
  color: var(--ink);
}
.tab-lead {
  margin-top: 12px;
  font-size: 15.5px;
  line-height: 1.72;
  color: var(--muted);
}

/* ---------- 3. 다른 민원 넣기 ---------- */
.issue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  margin-top: 32px;
}
.issue-list { display: grid; gap: 12px; min-width: 0; }

.issue-card {
  display: grid;
  gap: 7px;
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
.issue-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); }
.issue-card.is-on { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18, 63, 122, .1); }

.issue-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.issue-no {
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--faint);
}
.issue-title { font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.42; color: var(--ink); }
.issue-sub { font-size: 14.5px; color: var(--muted); }
.issue-status { font-size: 14.5px; color: var(--ink-2); }
.issue-target { font-size: 12px; color: var(--faint); line-height: 1.55; }
.issue-rec {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  padding: 5px 9px;
  background: var(--accent-soft);
  border-radius: 8px;
}
.issue-rec b { color: var(--navy); font-weight: 700; }
.issue-actions { display: flex; gap: 8px; margin-top: 6px; }
.issue-actions .btn-line { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 8px; font-size: 13.5px; }

.issue-side { min-width: 0; }
.issue-preview { scroll-margin-top: 96px; }
.issue-preview {
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.issue-preview-topic {
  font-size: 14.5px; font-weight: 700; color: var(--navy);
  margin-bottom: 2px; line-height: 1.5;
}
.issue-preview-actions { display: grid; gap: 8px; margin-top: 16px; }
.issue-note { margin-top: 12px; font-size: 12px; color: var(--faint); line-height: 1.6; }
.issue-note b { color: var(--ink-2); font-weight: 700; }

/* ---------- 4. 직접 민원 쓰기 ---------- */
.write-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  margin-top: 32px;
}
.write-form {
  min-width: 0;
  padding: 20px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.write-form .field-input,
.write-form .field-area { background: #fff; }

.field-area {
  width: 100%;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 15px;
  line-height: 1.66;
  color: var(--ink);
  resize: vertical;
}
.field-area:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(18, 63, 122, .1); }
.field-hint { font-size: 11.5px; font-weight: 600; color: var(--faint); margin-left: 4px; }

.write-gen { width: 100%; margin-top: 20px; }
.write-hint { margin-top: 10px; font-size: 12px; line-height: 1.62; color: var(--faint); }

.write-out { display: grid; gap: 14px; align-content: start; min-width: 0; }
.write-empty {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 30px 22px;
  border: 1px dashed var(--line-2);
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--faint);
  text-align: center;
}
.write-card {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.write-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 6px;
}
.write-card-head .mono { font-size: 11.5px; font-weight: 700; color: var(--faint); letter-spacing: .06em; }
.write-card-title { font-size: 16px; font-weight: 700; letter-spacing: -.02em; line-height: 1.45; margin-bottom: 10px; }
.write-card-body { min-height: 160px; }
.write-card-actions { display: flex; gap: 8px; margin-top: 12px; }
.write-card-actions .btn-line { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 8px; font-size: 13.5px; }

/* ---------- 5. 소식 — 준비 중 카드 ---------- */
.pending-card {
  margin-top: 16px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.pending-badge {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  border-radius: 999px;
  background: var(--soft);
  border: 1px solid var(--line-2);
  font-size: 11px; font-weight: 700; letter-spacing: .1em;
  color: var(--muted);
}
.pending-title {
  margin-top: 12px;
  font-size: 18px; font-weight: 700; letter-spacing: -.02em; line-height: 1.42;
  color: var(--ink);
}
.pending-body { margin-top: 10px; font-size: 14.5px; line-height: 1.72; color: var(--ink-2); }
.pending-body b { color: var(--ink); font-weight: 700; }
.pending-note {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line-2);
  font-size: 12px; color: var(--faint); line-height: 1.6;
}

/* ---------- 문자 화면 — PC 안내 분기 ---------- */
.sms-pc {
  margin-top: 12px;
  padding: 16px 18px;
  background: var(--soft);
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--navy);
  border-radius: var(--radius-sm);
}
.sms-pc[hidden] { display: none; }
.sms-pc-title { font-size: 14.5px; font-weight: 800; color: var(--ink); line-height: 1.5; }
.sms-pc-steps {
  margin-top: 8px;
  padding-left: 18px;
  list-style: decimal;
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--ink-2);
}
.sms-pc-steps li { margin-top: 2px; }
.sms-pc-nos {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  word-break: break-all;
}
.sms-pc .btn-line { width: 100%; margin-top: 12px; min-height: 44px; font-size: 13.5px; }

/* ---------- 홈 의제 카드 — 버튼 2개 ---------- */
.topic-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.topic-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.topic-btn {
  height: auto;
  padding: 18px 18px 14px;
  background: none;
  border: 0;
  border-radius: 0;
  cursor: default;
}
.topic-btn:hover { border-color: transparent; transform: none; box-shadow: none; }
.topic-title { margin: 0; }
.topic-sub { margin: 0; }
.topic-actions { display: flex; gap: 8px; padding: 0 18px 16px; }
.topic-actions .btn-line { flex: 1 1 0; min-width: 0; min-height: 44px; padding: 0 8px; font-size: 13px; }

/* ---------- 반응형 ---------- */
@media (max-width: 1099px) {
  .org { display: none; }
}

/* 좁은 화면에서는 상단바를 두 줄로 — 브랜드 줄 + 탭 줄.
   탭은 가로로 흐르고, 활성 탭이 잘리지 않도록 왼쪽 정렬한다. */
@media (max-width: 860px) {
  .topbar-in {
    flex-wrap: wrap;
    gap: 0;
    min-height: 0;
    padding-top: 6px;
    padding-bottom: 0;
  }
  .brand { flex: 1 1 auto; min-height: 44px; }
  .tabs {
    order: 3;
    flex: 1 1 100%;
    justify-content: flex-start;
    gap: 4px;
    margin: 0 calc(-1 * var(--pad));
    padding: 4px var(--pad) 6px;
    border-top: 1px solid var(--line);
  }
  .tab-btn { padding: 0 10px; font-size: 13px; }
  .tab-btn .lg { display: none; }
  .tab-btn .sm { display: inline; }
}

@media (min-width: 560px) {
  .issue-actions .btn-line,
  .topic-actions .btn-line,
  .write-card-actions .btn-line { font-size: 13.5px; }
}

@media (min-width: 861px) {
  .tab-btn { min-width: 52px; }
}

@media (min-width: 980px) {
  .tab-title { font-size: 38px; }
  .tab-page { padding-top: 52px; padding-bottom: 104px; }

  .issue-layout { grid-template-columns: minmax(0, 1fr) 400px; gap: 32px; align-items: start; }
  .issue-side { position: sticky; top: 84px; }

  .write-grid { grid-template-columns: 400px minmax(0, 1fr); gap: 32px; align-items: start; }
  .write-form { position: sticky; top: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  .tab-btn, .issue-card, .topic-card { transition: none !important; }
  .topic-card:hover { transform: none; }
}

/* ==========================================================================
   v4.0 — 오픈채팅방 카드 · 발송 집계 (서버 연결)
   ========================================================================== */

/* ---------------------------------------------------- 오픈채팅방 카드 ---- */
.room-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding: 22px 24px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.room-body { min-width: 0; }
.room-title {
  margin: 6px 0 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
}
.room-lead {
  margin-top: 5px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--muted);
}
.room-go { flex: 0 0 auto; text-decoration: none; }
.room-card-sm {
  margin-top: 14px;
  padding: 16px 18px;
  background: #fff;
}
.room-card-sm .room-title { font-size: 15px; }
.room-card-sm .room-lead { font-size: 12.5px; }

/* ------------------------------------------------- 문자 화면 집계 한 줄 ---- */
.site-stats {
  margin-top: 4px;
  padding: 16px 18px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.site-stats-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.site-stats-note { font-size: 11px; color: var(--faint); }
.site-stats-line {
  margin-top: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
}
.site-stats-line b { font-size: 19px; color: var(--navy); }
.stat-pending { color: var(--faint); font-weight: 500; font-size: 14px; }

/* ------------------------------------------------------ 소식 탭 집계 ---- */
.stats-block { margin-top: 28px; }
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.stat-cell {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 16px 18px;
  background: var(--soft);
  border-radius: var(--radius-sm);
}
.stat-num { font-size: 26px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-label { font-size: 12.5px; color: var(--muted); }

.stat-bars-wrap { margin-top: 22px; }
.stat-sub {
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 10px;
}
.stat-bars {
  display: grid;
  grid-template-columns: repeat(14, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  list-style: none;
  margin: 0;
  padding: 0;
}
.bar-item {
  display: grid;
  grid-template-rows: 16px 96px 16px;
  gap: 4px;
  justify-items: center;
  min-width: 0;
}
.bar-num { font-size: 10.5px; color: var(--muted); line-height: 1; }
.bar-track {
  display: flex;
  align-items: flex-end;
  width: 100%;
  max-width: 26px;
  height: 96px;
  background: var(--soft);
  border-radius: 6px;
  overflow: hidden;
}
.bar-fill {
  display: block;
  width: 100%;
  min-height: 0;
  background: var(--navy);
  border-radius: 6px 6px 0 0;
}
.bar-date { font-size: 9.5px; color: var(--faint); line-height: 1; white-space: nowrap; }
.stat-bars-pending {
  grid-column: 1 / -1;
  padding: 22px 0;
  font-size: 13.5px;
  color: var(--faint);
  list-style: none;
}

.stat-people-wrap { margin-top: 22px; }
.stat-people { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.stat-person {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.stat-person:last-child { border-bottom: 0; }
.stat-person-name { font-weight: 700; color: var(--ink); }
.stat-person-role { flex: 1 1 auto; min-width: 0; color: var(--muted); font-size: 12.5px; }
.stat-person-num { color: var(--navy); font-weight: 700; }

/* --------------------------------------------------- 발송 직후 안내 ---- */
.sent-block {
  margin-top: 16px;
  padding: 18px 18px 16px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}
.sent-block[hidden] { display: none; }
.sent-title { font-size: 14.5px; font-weight: 800; color: var(--ink); }
.sent-body { margin-top: 5px; font-size: 12.5px; line-height: 1.6; color: var(--muted); }

/* ------------------------------------------------------------ 좁은 폭 ---- */
@media (max-width: 600px) {
  .room-card { padding: 18px; gap: 12px; }
  .room-go { width: 100%; }
  .stat-grid { gap: 8px; }
  .stat-num { font-size: 22px; }
  .stat-bars { gap: 3px; }
  /* 390px에서 칸 폭이 22px 남짓이라 '10.16' 라벨이 칸을 넘는다.
     좁은 폭에서는 날짜 라벨을 아예 빼고, 범위는 위 '최근 14일 · 10.16 – 10.29' 한 줄로 보여 준다.
     (칸별 정확한 날짜·건수는 title 과 aria-label 에 남아 있다) */
  .bar-item { grid-template-rows: 14px 74px; }
  .bar-track { height: 74px; }
  .bar-date { display: none; }
}
