/* ============================================================================
   소마 센터 관리(웹 CRM) — 컴포넌트 v1 (A단계 시안)
   tokens.css 다음에 싣는다. 여기에는 색·크기 '값'을 새로 쓰지 않고 토큰만 읽는다
   (예외: 투명도만 바꾼 잉크·흰색 rgba — 눌림·덮개·유리 층).
   이름은 BRIEF_v1 5-3 컴포넌트 목록과 1:1 로 맞췄다. DESIGN_SYSTEM.md 4절에 대응표가 있다.
   운영 복사(crm-v2): 시안 110d6fcfdc49 에서 갤러리 전용 .is-static 줄을 빼고, color-mix() 줄 앞에 단색 대체 선언을 더했다
   (범위 밖 브라우저도 단색으로 보이게 — IMPL_PLAN_B 7-3). :has() 는 여백 4px 한 줄뿐이라 그대로 둔다.
   ========================================================================== */

/* ── 0. 바탕 ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 400;
  word-break: keep-all; overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;   /* [사이트 body] 폰 폭에서 가로 스크롤 금지 — 넘치는 줄은 각자 안에서 가로 스크롤 */
}
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
:focus { outline: none; }
:focus-visible { outline: var(--focus); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* 숫자: 홀로 선 숫자만 SomaNum. 표·문장 안 숫자는 Pretendard tabular */
.num { font-family: var(--font-num); font-weight: 800; font-variant-numeric: tabular-nums; font-variation-settings: "wdth" var(--num-wdth); letter-spacing: -.01em; }
.num.is-narrow { font-variation-settings: "wdth" 100; }
.tnum { font-variant-numeric: tabular-nums; }

/* 선 아이콘 — 앱 *_line.svg 문법(24 격자 · 선 1.5 · 둥근 끝 · currentColor) */
.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico.is-20 { width: 20px; height: 20px; }
.ico.is-16 { width: 16px; height: 16px; }
.ico.is-12 { width: 12px; height: 12px; stroke-width: 2; }
.ico-fill { fill: currentColor; stroke: none; }

/* ── 1. 글자 역할 (역할당 하나 — DESIGN_SYSTEM.md 3절) ───────────────────── */
.t-screen  { font-size: var(--fs-24); line-height: var(--lh-24); font-weight: 700; letter-spacing: -.02em; }
.t-section { font-size: var(--fs-18); line-height: var(--lh-18); font-weight: 600; letter-spacing: -.01em; }
.t-sheet   { font-size: var(--fs-18); line-height: var(--lh-18); font-weight: 700; letter-spacing: -.01em; }
.t-value   { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 500; }
.t-name    { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 600; }
.t-label   { font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 700; }
.t-sub     { font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 400; color: var(--muted); }
.t-caption { font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; color: var(--muted); }
.t-desc    { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 400; color: var(--muted); }
.t-face    { font-size: var(--fs-36); line-height: var(--lh-36); font-weight: 700; letter-spacing: -.02em; }
.t-face-2  { font-size: var(--fs-30); line-height: var(--lh-30); font-weight: 700; letter-spacing: -.02em; }
.t-warn    { color: var(--stop); font-weight: 700; }
.kpi       { font-size: var(--fs-36); line-height: 44px; }
@media (max-width: 767px) {
  .t-screen  { font-size: var(--fs-20); line-height: var(--lh-20); }
  .t-section { font-size: var(--fs-16); line-height: var(--lh-16); }
  .kpi       { font-size: var(--fs-28); line-height: var(--lh-28); }
}

/* ── 2. 버튼 ─────────────────────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: var(--r-pill); white-space: nowrap; user-select: none; -webkit-user-select: none;
  transition: transform var(--t-micro) var(--ease-micro), background-color var(--t-micro) var(--ease-micro),
              border-color var(--t-micro) var(--ease-micro), opacity var(--t-micro) var(--ease-micro);
}
.btn:active:not(:disabled):not([aria-busy="true"]) { transform: scale(var(--press)); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .4; cursor: default; transform: none; }
.btn .ico { width: 20px; height: 20px; }

/* InkButton — 잉크 알약. 화면당 하나(전역 '판매'만 예외) */
.btn-ink { height: var(--cta); padding: 0 24px; background: var(--ink); color: var(--on-ink); font-size: var(--fs-16); line-height: var(--lh-16); font-weight: 700; letter-spacing: -.005em; }
.btn-ink:hover:not(:disabled) { background: var(--ink-hover); }
.btn-ink.is-sm { height: var(--btn); padding: 0 18px; font-size: var(--fs-14); }
.btn-ink.is-lg { height: var(--cta-lg); padding: 0 40px; font-size: var(--fs-20); line-height: var(--lh-20); }
.btn.is-block { width: 100%; }

/* GhostButton — 흰 + 1px 선 */
.btn-ghost { height: var(--btn); padding: 0 16px; background: var(--surface); border: 1px solid var(--line-input); color: var(--ink); font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 600; }
.btn-ghost:hover:not(:disabled) { border-color: var(--ink); }
.btn-ghost.is-sm { height: var(--btn-sm); padding: 0 12px; font-size: var(--fs-13); }
.btn-ghost.is-sm .ico { width: 16px; height: 16px; }
.btn-ghost.is-lg { height: var(--cta); padding: 0 24px; font-size: var(--fs-16); }
.btn-ghost.is-danger { color: var(--stop); }

/* ActionText / DangerText — 누르는 글자. 회색 글자 버튼 금지 */
.btn-text { min-height: 32px; padding: 0 4px; margin: 0 -4px; border-radius: 6px; color: var(--action); font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 700; gap: 2px; }
.btn-text:hover:not(:disabled) { text-decoration: underline; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.btn-text.is-sm { font-size: var(--fs-12); line-height: var(--lh-12); min-height: 24px; }
.btn-text.is-sm .ico { width: 14px; height: 14px; stroke-width: 2; }
.btn-text.is-danger { color: var(--stop); }

/* 아이콘 버튼 */
.btn-icon { width: 40px; height: 40px; border-radius: 50%; color: var(--ink); }
.btn-icon:hover:not(:disabled) { background: rgba(17,20,24,.06); }
.btn-icon.is-sm { width: 32px; height: 32px; }
.btn-icon.is-sm .ico { width: 18px; height: 18px; }

/* 처리 중 — 글자를 감추고 물방울 로더 하나(앱 CtaButton isLoading) */
.btn[aria-busy="true"] { cursor: progress; color: transparent !important; }
.btn[aria-busy="true"] > :not(.drop-loader) { visibility: hidden; }
.btn > .drop-loader { position: absolute; inset: 0; margin: auto; display: none; }
.btn[aria-busy="true"] > .drop-loader { display: block; }

/* ── 3. 칩 · 태그 · 배지 ─────────────────────────────────────────────────── */
/* SignalChip(V1) — 잉크 알약 + 색 점 + 글자. 점만 있는 칩 금지 */
.signal {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  height: var(--chip); padding: 0 8px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--on-ink);
  font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; white-space: nowrap;
}
.signal::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--go); flex: none; }
.signal.is-stop::before { background: var(--stop); }
.signal.is-lg { height: 26px; padding: 0 10px; gap: 6px; font-size: var(--fs-13); }
.signal.is-lg::before { width: 7px; height: 7px; }
.signal:has(.capsule) { padding-right: 4px; }
/* EntryCapsule(V2) — 지금 센터 안. 칩 안 오른쪽 흰 캡슐 + 방법 기호 */
.capsule {
  display: inline-flex; align-items: center; gap: 2px; height: 14px; padding: 0 4px 0 5px; margin-left: 1px;
  border-radius: var(--r-pill); background: var(--capsule); color: var(--ink);
  font-size: var(--fs-10); line-height: var(--lh-10); font-weight: 700;
}
.capsule .ico { width: 10px; height: 10px; stroke-width: 2.2; }
.signal.is-lg .capsule { height: 18px; font-size: var(--fs-11); padding: 0 6px 0 7px; }
.signal.is-lg .capsule .ico { width: 12px; height: 12px; }
.signal.is-pulse { animation: sig-pulse 900ms var(--ease-set) 1; }
@keyframes sig-pulse { 0% { box-shadow: 0 0 0 0 rgba(18,146,74,.45); } 100% { box-shadow: 0 0 0 10px rgba(18,146,74,0); } }

/* TagChip(V5) — 시설 = 흰 + 선, 서비스 = 회색 채움. 락커 번호만 600 */
.tag {
  display: inline-flex; align-items: center; gap: 3px; flex: none;
  height: var(--chip); padding: 0 8px; border-radius: var(--r-pill);
  font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 500; color: var(--ink); white-space: nowrap;
}
.tag.is-facility { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-input); }
.tag.is-service  { background: var(--tag-fill); }
.tag b { font-weight: 600; font-variant-numeric: tabular-nums; }
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-width: 0; }
.tags .vr { width: 1px; height: 12px; margin: 0 4px; background: var(--line-input); flex: none; }

/* 거르기 칩 — 여럿 켬(켜짐 = 잉크). 하나만 고르는 탭과 모양을 다르게 둔다 */
.filter {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: var(--btn-sm); padding: 0 12px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--line-input); color: var(--ink);
  font-size: var(--fs-13); line-height: var(--lh-13); font-weight: 600; white-space: nowrap;
  transition: background-color var(--t-micro) var(--ease-micro), border-color var(--t-micro) var(--ease-micro);
}
.filter:hover { border-color: var(--ink); }
.filter .n { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; }
.filter .n.is-warn { color: var(--stop); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.filter[aria-pressed="true"] .n { color: var(--muted-on-ink); }
.filter .ico { width: 16px; height: 16px; }

/* 상태 배지(앱 PillBadge 20 · label10M) · 수업 유형 배지(앱 LessonBadge 16 · r8 · label10B) */
.badge { display: inline-flex; align-items: center; height: var(--badge); padding: 0 8px; border-radius: var(--r-pill); font-size: var(--fs-10); line-height: var(--lh-10); font-weight: 500; white-space: nowrap; flex: none; }
.badge.is-go   { background: var(--go-bg);   color: var(--go); }
.badge.is-mute { background: var(--mute-bg); color: var(--mute); }
.lesson-badge { display: inline-flex; align-items: center; height: var(--badge-type); padding: 0 5px; border-radius: var(--r-badge); font-size: var(--fs-10); line-height: var(--lh-10); font-weight: 700; white-space: nowrap; flex: none; }
.lesson-badge.is-single     { background: var(--lt-single-bg);     color: var(--lt-single); }
.lesson-badge.is-duet       { background: var(--lt-duet-bg);       color: var(--lt-duet); }
.lesson-badge.is-group      { background: var(--lt-group-bg);      color: var(--lt-group); }
.lesson-badge.is-consult    { background: var(--lt-consult-bg);    color: var(--lt-consult); }
.lesson-badge.is-trial      { background: var(--lt-trial-bg);      color: var(--lt-trial); }
.lesson-badge.is-membership { background: var(--lt-membership-bg); color: var(--lt-membership); }

/* 점 — 강사 12색·리포트 4색·신호등은 '점'으로만 */
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--c, var(--faint)); }
.dot.is-6 { width: 6px; height: 6px; }
.dot.is-go { --c: var(--go); } .dot.is-stop { --c: var(--stop); } .dot.is-warn { --c: var(--warn); }
.dot.rpt-status { --c: var(--rpt-status); } .dot.rpt-lesson { --c: var(--rpt-lesson); }
.dot.rpt-diet { --c: var(--rpt-diet); }     .dot.rpt-change { --c: var(--rpt-change); }

/* ── 4. 아바타 — 사진 없으면 하늘 원 + 성 한 글자 ─────────────────────────── */
.avatar {
  --size: 40px; position: relative; flex: none; display: inline-grid; place-items: center;
  width: var(--size); height: var(--size); border-radius: 50%; overflow: hidden;
  background: var(--avatar-bg); box-shadow: inset 0 0 0 1px var(--avatar-line);
  color: var(--avatar-ink); font-weight: 700; font-size: calc(var(--size) * .42); line-height: 1; letter-spacing: 0;
}
.avatar img, .avatar svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar.is-24 { --size: 24px; } .avatar.is-32 { --size: 32px; } .avatar.is-40 { --size: 40px; }
.avatar.is-64 { --size: 64px; } .avatar.is-96 { --size: 96px; }

/* ── 5. 패널 · 카드 ──────────────────────────────────────────────────────── */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px 0; }
.panel-head .t-section + .t-sub { margin-top: 2px; }
.panel-body { padding: 16px 24px 24px; }
.panel-body.is-flush { padding: 8px 0 0; }
a.panel:hover, button.panel:hover, .panel.is-link:hover { border-color: var(--line-input); }
@media (max-width: 767px) {
  .panel-head { padding: 16px 20px 0; }
  .panel-body { padding: 12px 20px 20px; }
}

/* StatStrip(V9 확장) — 칸 나눔 숫자 띠. 각 칸이 목록으로 가는 버튼 */
.stat-strip { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.stat {
  position: relative; display: flex; flex-direction: column; gap: 4px; min-width: 0;
  padding: 20px 48px 20px 24px; text-align: left; color: var(--ink);
  transition: background-color var(--t-micro) var(--ease-micro);
}
.stat + .stat { border-left: 1px solid var(--line); }
.stat:first-child { border-radius: var(--r-card) 0 0 var(--r-card); }
.stat:last-child  { border-radius: 0 var(--r-card) var(--r-card) 0; }
button.stat:hover { background: var(--paper); }
.stat-label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; color: var(--muted); }
.stat-value { display: flex; align-items: baseline; gap: 2px; }
.stat-value .unit { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: 600; color: var(--muted); }
.stat-value.is-stop .num { color: var(--stop); }
.stat-value.is-zero .num { color: var(--muted); }
.stat-sub { font-size: var(--fs-12); line-height: var(--lh-12); color: var(--muted); }
.stat > .ico { position: absolute; right: 20px; top: 50%; margin-top: -10px; width: 20px; height: 20px; color: var(--faint); }
@media (max-width: 767px) {
  .stat-strip.is-hero { grid-template-columns: 1fr 1fr; }
  .stat-strip.is-hero .stat:first-child { grid-column: 1 / -1; border-radius: var(--r-card) var(--r-card) 0 0; border-bottom: 1px solid var(--line); }
  .stat-strip.is-hero .stat:nth-child(2) { border-left: 0; border-radius: 0 0 0 var(--r-card); }
  .stat-strip.is-hero .stat:last-child { border-radius: 0 0 var(--r-card) 0; }
  .stat-strip.is-hero .stat:not(:first-child) .kpi { font-size: var(--fs-20); line-height: var(--lh-20); }
  .stat { padding: 16px 40px 16px 20px; }
}

/* DateRangeCard(V13) — 기간 결과 카드 */
.range-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 20px; }
.range-card .rc-when { display: flex; align-items: center; gap: 10px; font-size: var(--fs-15); line-height: var(--lh-15); font-weight: 700; }
.range-card .rc-num { display: flex; align-items: baseline; gap: 8px; }
.range-card .rc-num .num { font-size: var(--fs-28); line-height: var(--lh-28); }

/* ── 6. 진행 막대 — 회원권·락커권(V3) · 수강권(V4) ───────────────────────── */
.meter { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.meter-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.meter-top .t-label { color: var(--ink); }
.meter-top .warn { font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 700; color: var(--stop); }
.meter-row { display: flex; align-items: center; gap: 8px; }
.meter-foot { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-12); line-height: var(--lh-12); color: var(--muted); font-variant-numeric: tabular-nums; }
.meter-foot > :last-child { margin-left: auto; text-align: right; }
.meter-side { flex: none; min-width: 72px; text-align: right; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; color: var(--navy); }

.bar { position: relative; flex: 1; min-width: 0; height: var(--bar-h); border-radius: var(--r-pill); background: var(--bar-track); box-shadow: inset 0 0 0 1px var(--line-input); overflow: hidden; }
.bar.is-lg { height: var(--bar-h-lg); }
.bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: clamp(24px, calc(var(--p, 0) * 1%), 100%);
  display: flex; align-items: center; justify-content: flex-end; padding: 0 5px;
  border-radius: var(--r-pill); background: var(--bar-period);
  transition: width var(--t-set) var(--ease-set);
}
.bar-fill b { font-family: var(--font-num); font-size: var(--fs-10); line-height: 1; font-weight: 800; color: var(--on-brand); font-variant-numeric: tabular-nums; font-variation-settings: "wdth" 100; }
.bar.is-lg .bar-fill b { font-size: var(--fs-11); }
.bar.is-count .bar-fill { background: var(--bar-count); }
.bar.is-expired .bar-fill { width: 100%; background: var(--bar-expired); }
.bar.is-expired .bar-fill b { color: var(--muted); }
.bar.is-empty .bar-fill { display: none; }
/* 수강 기간: '최적 주'까지 하늘, 넘긴 구간은 tertiary(앱 _PassPeriodProgressSection) */
.bar .bar-best { position: absolute; top: 0; bottom: 0; left: calc(var(--best) * 1%); width: 1px; background: var(--line-input); }
.bar .bar-over { position: absolute; top: 0; bottom: 0; left: calc(var(--best) * 1% - 6px); width: calc((var(--p) - var(--best)) * 1% + 6px); border-radius: 0 var(--r-pill) var(--r-pill) 0; background: var(--bar-extend); display: flex; align-items: center; justify-content: flex-end; padding: 0 5px; }
.bar .bar-over b { font-family: var(--font-num); font-size: var(--fs-10); line-height: 1; font-weight: 800; color: var(--on-brand); font-variation-settings: "wdth" 100; }

/* ── 7. 회원권·수강권 카드(PassCard) — 같은 머리·같은 막대·같은 접힘 줄 ─────── */
.pass { display: flex; flex-direction: column; gap: 16px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; }
.pass-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.pass-title { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-16); line-height: var(--lh-16); font-weight: 700; }
.pass-title .sub { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pass-meters { display: flex; flex-direction: column; gap: 14px; }
.pass.is-dim .pass-title { color: var(--muted); }
/* 휴회 띠(피그마 A22 정지 띠) */
.pause-band { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 8px 12px; border-radius: var(--r-input); background: var(--stop-bg); color: var(--ink); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 700; }
.pause-band .ico { width: 16px; height: 16px; color: var(--stop); }   /* 글자는 잉크(stop/stop-bg 3.9 라 작은 글자 AA 미달), 기호만 빨강 */
/* 접힘 회색 줄(V10) */
.fold { border-radius: var(--r-input); background: var(--mute-bg); }
.fold > summary { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; list-style: none; cursor: pointer; font-size: var(--fs-13); line-height: var(--lh-13); font-weight: 500; border-radius: var(--r-input); }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary > span:not(.signal) { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fold > summary .ico { margin-left: auto; width: 18px; height: 18px; color: var(--faint); transition: transform var(--t-micro) var(--ease-micro); }
.fold[open] > summary .ico { transform: rotate(180deg); }
.fold-body { display: grid; gap: 10px; padding: 2px 12px 14px; }
.fold-line { display: grid; grid-template-columns: 64px 1fr; align-items: center; gap: 8px; }
.fold-line > .t-label { color: var(--ink); }
/* 폰 카드 넘김 점(피그마 캐러셀) */
.dots { display: flex; justify-content: center; gap: 6px; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--line-input); }
.dots i.is-on { background: var(--action); }

/* ── 8. 탭 · 세그먼트 ───────────────────────────────────────────────────── */
/* PillTabs(V8) — 하나만 고름. 선택 = 브랜드 그라데이션 + 흰 글자 */
.pill-tabs { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.pill-tabs::-webkit-scrollbar { display: none; }
.pill-tab {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: var(--pill-tab); padding: 0 16px;
  border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line-input);
  color: var(--muted); font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 600; white-space: nowrap;
  transition: transform var(--t-micro) var(--ease-micro), color var(--t-micro) var(--ease-micro);
}
.pill-tab:hover { color: var(--ink); }
.pill-tab:active { transform: scale(var(--press-pill)); }
.pill-tab .num { font-size: var(--fs-14); font-variation-settings: "wdth" 100; color: var(--ink); }
.pill-tab[aria-selected="true"] { background: var(--brand-grad); border-color: transparent; color: var(--on-brand); }
.pill-tab[aria-selected="true"] .num { color: var(--on-brand); }
.pill-tabs.is-sm .pill-tab { height: var(--btn-sm); padding: 0 12px; font-size: var(--fs-12); font-weight: 700; }

/* Segmented — 보기 밀도처럼 둘·셋 중 하나(앱 CardSegmentedControl) */
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: var(--r-input); background: var(--mute-bg); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { height: 30px; padding: 0 14px; border-radius: 8px; font-size: var(--fs-13); font-weight: 600; color: var(--muted); transition: background-color var(--t-micro) var(--ease-micro); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 0 0 1px var(--line); }

/* ── 9. 검색 · 입력 ──────────────────────────────────────────────────────── */
.search {
  position: relative; display: flex; align-items: center; gap: 8px; height: var(--input); padding: 0 10px 0 40px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line-input); border-radius: var(--r-input);
  transition: border-color var(--t-micro) var(--ease-micro), box-shadow var(--t-micro) var(--ease-micro);
}
.search > .ico { position: absolute; left: 12px; top: 50%; margin-top: -10px; width: 20px; height: 20px; color: var(--faint); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font-size: var(--fs-14); font-weight: 500; color: var(--ink); }
.search input::placeholder { color: var(--faint); font-weight: 500; }
.search input::-webkit-search-cancel-button { display: none; }
.search:focus-within, .search.is-focus { border-color: var(--drop-deep); box-shadow: var(--focus-input); }
.search kbd { flex: none; display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; border: 1px solid var(--line-input); background: var(--paper); color: var(--muted); font: 600 var(--fs-12)/1 var(--font); }
.search.is-head { height: var(--btn); width: 100%; max-width: 480px; }
.search .clear { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--faint); }
.search .clear .ico { width: 16px; height: 16px; }

/* 검색 결과 팝오버 — 행 = 압축 행 + [입장 처리] */
.popover { position: absolute; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--e1); padding: 8px 0; min-width: 240px; }
.pop-label { padding: 8px 16px 4px; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; color: var(--muted); }
.pop-item { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 12px 8px 16px; text-align: left; transition: background-color var(--t-micro) var(--ease-micro); }
.pop-item:hover, .pop-item.is-active { background: var(--paper); }
.pop-item .pi-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pop-item .pi-line { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.pop-item mark { background: var(--sky-1); color: inherit; border-radius: 3px; padding: 0 1px; }
.pop-empty { padding: 20px 16px; text-align: center; }
.pop-foot { margin-top: 4px; padding: 10px 16px 4px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; }

/* 입력칸 */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > .t-label { color: var(--ink); }
.input {
  width: 100%; height: var(--input); padding: 0 14px; border: 1px solid var(--line-input); border-radius: var(--r-input);
  background: var(--surface); font-size: var(--fs-14); font-weight: 500; color: var(--ink);
  transition: border-color var(--t-micro) var(--ease-micro), box-shadow var(--t-micro) var(--ease-micro);
}
textarea.input { height: auto; min-height: 96px; padding: 12px 14px; line-height: var(--lh-14); resize: vertical; }
.input::placeholder { color: var(--faint); }
.input:hover:not(:disabled) { border-color: var(--faint); }
.input:focus, .input.is-focus { border-color: var(--drop-deep); box-shadow: var(--focus-input); }
.input[aria-invalid="true"] { border-color: var(--stop); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(217,58,52,.18); }
.input:disabled { background: var(--mute-bg); color: var(--muted); cursor: not-allowed; }
.input-unit { position: relative; display: flex; align-items: center; }
.input-unit .input { padding-right: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.input-unit > span { position: absolute; right: 14px; font-size: var(--fs-14); font-weight: 500; color: var(--muted); pointer-events: none; }
.field-foot { display: flex; justify-content: space-between; gap: 8px; }
.field-help { font-size: var(--fs-12); line-height: var(--lh-12); color: var(--muted); }
.field-error { font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; color: var(--stop); }
.counter { margin-left: auto; font-size: var(--fs-12); line-height: var(--lh-12); color: var(--muted); font-variant-numeric: tabular-nums; }

/* 스위치 행 — 테두리 박스 없이 위쪽 선 하나 */
.switch-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.switch-row .sr-text { flex: 1 1 220px; }
.switch-row > .volume { flex: 1 1 200px; max-width: 280px; }
.switch-row .sr-text { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.switch-row .seg { align-self: flex-start; }
.switch-row .sr-title { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 600; }
.switch { position: relative; flex: none; width: 50px; height: 28px; border-radius: 14px; background: var(--switch-off); transition: background-color 200ms ease-in-out; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 4px rgba(0,0,0,.18); transition: transform 200ms ease-in-out; }
.switch[aria-checked="true"] { background: var(--switch-on); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.switch:disabled { opacity: .4; cursor: not-allowed; }
/* 스위치는 줄이 바뀌어도 늘 오른쪽 끝(10-22 검수: '위치로 입장' 스위치가 설명 아래 왼쪽으로 떨어짐) */
.switch-row > .switch { margin-left: auto; }
/* 아이콘으로 시작하는 설정 행(.is-lead) — 윗줄 [아이콘 | 글 1fr | 캡션 | 스위치]를 한 묶음으로 고정하고 펼침(.sr-more)만 아랫줄로.
   캡션은 줄바꿈 없는 짧은 줄을 위아래로 쌓는다(오늘 9회 / 동의 41명) */
.switch-row.is-lead { display: grid; grid-template-columns: 40px minmax(0,1fr) auto auto; column-gap: 16px; row-gap: 12px; }
.switch-row.is-lead > .sr-cap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; text-align: right; }
.switch-row.is-lead > .switch { grid-column: 4; grid-row: 1; margin-left: 0; }
.switch-row.is-lead > .sr-more { grid-column: 2 / -1; }
@media (max-width: 767px) {
  .switch-row.is-lead { grid-template-columns: 40px minmax(0,1fr) auto; column-gap: 12px; }
  .switch-row.is-lead > .switch { grid-column: 3; }
  .switch-row.is-lead > .sr-cap { grid-column: 2; grid-row: 2; flex-direction: row; align-items: center; gap: 6px; margin-top: -8px; }
  .switch-row.is-lead > .sr-cap > span + span::before { content: "· "; }
  .switch-row.is-lead > .sr-more { grid-column: 1 / -1; }
}

/* ── 10. 표(SpecTable) · 회원 행 ─────────────────────────────────────────── */
.table-wrap { position: relative; overflow-x: auto; padding: 0 24px; }   /* position: 안의 .sr(절대 위치)이 스크롤 상자 밖으로 새어 폰 화면 폭을 넓히지 않게 */
.table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.table th { text-align: left; white-space: nowrap; padding: 0 12px 10px; border-bottom: 1px solid var(--line-strong); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; letter-spacing: .02em; color: var(--muted); }
.table td { height: var(--row); padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 500; vertical-align: middle; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr.is-link { cursor: pointer; }
.table tbody tr.is-link:hover td { background: var(--paper); }
.table td { white-space: nowrap; }
.table td.is-wrap { white-space: normal; min-width: 160px; }
.table .is-num { text-align: right; }
.table .is-muted { color: var(--muted); }
.table .chev { width: 20px; color: var(--faint); }
.cell-person { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-two { display: flex; flex-direction: column; min-width: 0; }
.cell-two .t-sub { white-space: nowrap; }
.row-act { opacity: 0; transition: opacity var(--t-micro) var(--ease-micro); }
tr:hover .row-act, tr:focus-within .row-act { opacity: 1; }
@media (max-width: 767px) { .table-wrap { padding: 0 20px; } }

/* MemberRow(V6, 폰 3줄) · MemberRowCompact(V7, 폰 압축 2줄) */
.mrows { background: var(--surface); }
.mrow {
  display: grid; grid-template-columns: 40px minmax(0,1fr) 20px; column-gap: 12px; row-gap: 12px; align-items: center;
  width: 100%; min-height: var(--row-m); padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--line); background: var(--surface); transition: background-color var(--t-micro) var(--ease-micro);
}
.mrow:hover { background: var(--paper); }
.mrow > .avatar { grid-row: 1; }
.mrow-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mrow-head { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.mrow-name { font-size: var(--fs-16); line-height: var(--lh-16); font-weight: 600; white-space: nowrap; }
.mrow-phone { font-size: var(--fs-14); line-height: var(--lh-14); color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mrow-sum { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: var(--fs-12); line-height: var(--lh-12); color: var(--muted); font-variant-numeric: tabular-nums; }
.mrow-sum > span::before { content: "•"; margin-right: 4px; }
.mrow-sum .w { color: var(--stop); font-weight: 700; }
.mrow > .ico { grid-column: 3; grid-row: 1; width: 20px; height: 20px; color: var(--faint); }
.mrow-chips { grid-column: 1 / -1; display: flex; align-items: center; gap: 4px; min-width: 0; flex-wrap: wrap; }
.mrow-extra { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin-top: -4px; font-size: var(--fs-12); line-height: var(--lh-12); color: var(--muted); }
.mrow.is-compact { grid-template-columns: minmax(0,1fr) auto 20px; row-gap: 8px; padding: 12px 20px; }
.mrow.is-compact .mrow-name { font-size: var(--fs-15); line-height: var(--lh-15); }
.mrow.is-compact .mrow-phone { font-size: var(--fs-13); line-height: var(--lh-13); }
.mrow.is-compact .mrow-chips { grid-column: 1; grid-row: 2; }
.mrow.is-compact .mrow-cap { grid-column: 2; grid-row: 1 / span 2; }
.mrow.is-compact > .ico { grid-row: 1 / span 2; }

/* ── 11. 오늘 할 일 전광판(TaskBoard) — 앱 TodayManagedMembersBanner 문법 ───── */
.board { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-card); background: var(--brand-grad); color: var(--on-brand); box-shadow: var(--e-board); }
.board::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(55% 90% at 10% 105%, rgba(255,255,255,.14), rgba(255,255,255,0) 100%),
    radial-gradient(24% 40% at 58% 2%, rgba(255,255,255,.10), rgba(255,255,255,0) 100%); }
.board::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.06));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.board-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px 10px 20px; }
.board-title { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 700; }
.board-pages { margin-left: auto; display: flex; gap: 3px; }
.board-pages i { position: relative; width: 16px; height: 3px; border-radius: 1.5px; background: rgba(255,255,255,.35); overflow: hidden; }
.board-pages i.is-done { background: #fff; }
.board-pages i.is-now::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: board-page 5s linear infinite; }
@keyframes board-page { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.board-chips { position: relative; display: flex; gap: 6px; padding: 0 16px 12px 20px; overflow-x: auto; scrollbar-width: none; }
.board-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); color: var(--on-brand); font-size: var(--fs-12); font-weight: 600; white-space: nowrap; }
.board-chip b { font-weight: 800; font-variant-numeric: tabular-nums; }
.board-chip[aria-pressed="true"] { background: var(--surface); color: var(--navy); box-shadow: none; }
.board-body { margin: 0 8px 8px; border-radius: var(--r-input); background: rgba(255,255,255,.10); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); overflow: hidden; }
.board-row { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 10px 12px; }
.board-row + .board-row { border-top: 1px solid rgba(255,255,255,.12); }
.board-row .br-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.board-row .br-name { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 700; }
.board-row .br-why { font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 400; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-btn { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(255,255,255,.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); color: var(--on-brand); font-size: var(--fs-13); font-weight: 600; transition: background-color var(--t-micro) var(--ease-micro); }
.board-btn:hover { background: rgba(255,255,255,.24); }
.board-btn .ico { width: 16px; height: 16px; }
.board-foot { display: flex; justify-content: flex-end; padding: 0 16px 12px; }
.board-foot a, .board-foot button { color: var(--on-brand); font-size: var(--fs-13); font-weight: 700; text-decoration: underline; text-underline-offset: .22em; text-decoration-color: rgba(255,255,255,.5); }

/* ── 12. 앱 껍데기 — HeadBar · Rail · IconRail · TabBar ─────────────────────── */
.headbar {
  position: sticky; top: 0; z-index: 40; height: var(--head);
  display: grid; grid-template-columns: minmax(var(--rail), max-content) minmax(0,1fr) auto; align-items: center;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.hb-brand { display: flex; align-items: center; gap: 12px; height: 100%; padding: 0 16px 0 24px; min-width: 0; }
.wordmark { display: block; width: 76px; height: 28px; flex: none; }
.hb-brand .vr { width: 1px; height: 24px; background: var(--line-input); flex: none; }
.lockup { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.lockup-name { font-size: var(--fs-15); line-height: 18px; font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.lockup-center { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; color: var(--muted); white-space: nowrap; border-radius: 4px; }
.lockup-center span { overflow: hidden; text-overflow: ellipsis; }
.lockup-center .ico { width: 14px; height: 14px; stroke-width: 2; color: var(--faint); }
.lockup-center:hover { color: var(--ink); }
.hb-drop { display: none; width: 20px; height: 28px; color: var(--drop); flex: none; }
.hb-mid { position: relative; padding: 0 24px; min-width: 0; }
.hb-right { display: flex; align-items: center; gap: 12px; padding: 0 var(--gut) 0 0; }
.now-count { display: inline-flex; align-items: center; gap: 6px; height: var(--btn); padding: 0 12px; border-radius: var(--r-pill); color: var(--muted); font-size: var(--fs-13); font-weight: 600; white-space: nowrap; transition: background-color var(--t-micro) var(--ease-micro); }
.now-count:hover { background: rgba(17,20,24,.05); color: var(--ink); }
.now-count .dot { --c: var(--go); }
.now-count .num { font-size: var(--fs-20); line-height: 1; color: var(--ink); }
.now-count.is-beat .num { animation: beat 600ms var(--ease-set) 1; }
@keyframes beat { 0% { transform: scale(1); } 30% { transform: scale(1.18); color: var(--go); } 100% { transform: scale(1); } }
.now-count .num { display: inline-block; }
.hb-search-btn { display: none; }

.rail {
  position: fixed; z-index: 30; top: var(--head); bottom: 0; left: 0; width: var(--rail);
  display: flex; flex-direction: column; gap: 2px; padding: 16px 12px 16px;
  background: var(--paper); border-right: 1px solid var(--line); overflow-y: auto;
}
.rail-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-input); color: var(--muted); font-size: var(--fs-15); line-height: var(--lh-15); font-weight: 600; transition: background-color var(--t-micro) var(--ease-micro), color var(--t-micro) var(--ease-micro); }
.rail-item .ico { color: var(--nav-idle); transition: color var(--t-micro) var(--ease-micro); }
.rail-item:hover { background: rgba(17,20,24,.04); color: var(--ink); }
.rail-item[aria-current="page"] { background: var(--sky-1); color: var(--ink); font-weight: 700; }
.rail-item[aria-current="page"] .ico { color: var(--navy); }
.rail-item .rail-n { margin-left: auto; font-size: var(--fs-12); font-weight: 700; color: var(--stop); font-variant-numeric: tabular-nums; }
.rail-foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 16px 12px 4px; border-top: 1px solid var(--line); }
.rail-foot .btn-text { justify-content: flex-start; }
.rail-label { display: none; }

.tabbar {
  position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: none;
  grid-template-columns: repeat(6, minmax(0,1fr)); height: calc(var(--tabbar) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface); border-radius: var(--r-card) var(--r-card) 0 0; box-shadow: var(--e-tab);
}
.tab-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); font-size: var(--fs-11); line-height: var(--lh-11); font-weight: 600; }
.tab-item .ico { color: var(--nav-idle); }
.tab-item[aria-current="page"] { color: var(--navy); font-weight: 700; }
.tab-item[aria-current="page"] .ico { color: var(--navy); }

.main { margin-left: var(--rail); padding: 24px var(--gut) 64px; min-width: 0; }
.main-in { max-width: var(--content-max); margin: 0 auto; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .ph-sub { margin-top: 4px; }

/* 본문 격자 — PC 12 · 태블릿 8 · 폰 4 */
.grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: var(--gap); align-items: start; }
.grid > * { min-width: 0; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; }
.c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c9 { grid-column: span 9; } .c12 { grid-column: 1 / -1; }
.stack { display: flex; flex-direction: column; gap: var(--gap); min-width: 0; }

/* 태블릿 768–1279: 아이콘 레일 72 */
@media (max-width: 1279px) {
  .headbar { grid-template-columns: auto minmax(0,1fr) auto; }
  .hb-brand { padding: 0 8px 0 24px; }
  .hb-brand .wordmark, .hb-brand .vr { display: none; }
  .hb-drop { display: block; }
  .rail { width: var(--rail-icon); padding: 12px 8px; align-items: stretch; }
  .rail-item { flex-direction: column; justify-content: center; gap: 2px; min-height: 60px; padding: 6px 0; font-size: var(--fs-11); line-height: var(--lh-11); }
  .rail-item .rail-n { display: none; }
  .rail-foot { padding: 12px 0 0; align-items: center; }
  .rail-foot .btn-text span, .rail-foot .t-caption { display: none; }
  .main { margin-left: var(--rail-icon); }
  .grid { grid-template-columns: repeat(8, minmax(0,1fr)); }
  .c3, .c4 { grid-column: span 4; } .c5 { grid-column: span 3; } .c6 { grid-column: span 4; }
  .c7 { grid-column: span 5; } .c8, .c9, .c12 { grid-column: 1 / -1; }
  .t-md-full { grid-column: 1 / -1; }
}
/* 폰 <768: 머리 줄 48 + 하단 탭 */
@media (max-width: 767px) {
  .headbar { height: var(--head-m); grid-template-columns: minmax(0,1fr) auto; }
  .hb-brand { padding: 0 0 0 var(--gut); gap: 8px; }
  .hb-brand .lockup-name { display: none; }
  .lockup-center { font-size: var(--fs-15); line-height: 20px; font-weight: 700; color: var(--ink); }
  .hb-mid { display: none; }
  .hb-right { gap: 4px; padding-right: 12px; }
  .hb-right .btn-ink, .hb-right .hb-account { display: none; }
  .hb-search-btn { display: inline-grid; place-items: center; }
  .now-count { padding: 0 8px; }
  .now-count .lbl { display: none; }
  .rail { display: none; }
  .tabbar { display: grid; }
  .main { margin-left: 0; padding: 16px var(--gut) calc(var(--tabbar) + env(safe-area-inset-bottom) + 32px); }
  .grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .grid > * { grid-column: 1 / -1 !important; }
  .stack { gap: 16px; }
  .hide-m { display: none !important; }
}
@media (min-width: 768px) { .only-m { display: none !important; } }

/* ── 13. 데스크 입장 배너 · 빈 상태 · 오류 · 오프라인 · 토스트 ───────────────── */
.desk-banner {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 56px;
  padding: 8px 8px 8px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); box-shadow: var(--e1);
}
.desk-banner::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--go); }
.desk-banner.is-stop { background: var(--stop-bg); border-color: var(--stop-bg); }
.desk-banner.is-stop::before { background: var(--stop); }
.desk-banner .db-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.desk-banner .db-line { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.desk-banner .db-why { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 700; color: var(--ink); }
.desk-banner .db-why::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--stop); }
.desk-dock { position: sticky; top: calc(var(--head) + 12px); z-index: 35; display: grid; gap: 8px; margin-bottom: 16px; }
.desk-dock .desk-banner { animation: drop-in var(--t-set) var(--ease-set) both; }
.desk-dock .desk-banner.is-leaving { animation: fold-out var(--t-set) var(--ease-set) both; }
@keyframes drop-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes fold-out { to { opacity: 0; transform: translateY(-8px); } }

.empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 40px 24px; }
.empty-art { width: 88px; height: 72px; margin-bottom: 10px; }
.empty-title { font-size: var(--fs-15); line-height: var(--lh-15); font-weight: 600; }
.empty .btn { margin-top: 14px; }

.error-note { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border-radius: var(--r-input); background: var(--mute-bg); }
.error-note > .ico { color: var(--stop); }
.error-note .en-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.error-note .en-title { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 600; }

/* 갱신 실패 한 줄(staleNote) — 이전 값은 블록에 그대로, 그 위에 사유 + [다시 시도]. 오류 줄(error-note)과 같은 바탕·색, 왼쪽 빨간 띠(notice-line.is-warn 과 같은 띠) */
.stale-note { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 12px; border-radius: var(--r-input); background: var(--mute-bg); box-shadow: inset 3px 0 0 var(--stop); font-size: var(--fs-12); line-height: var(--lh-12); color: var(--ink); }
.stale-note > .ico { flex: none; color: var(--stop); }
.stale-note .sn-text { flex: 1; min-width: 0; }
.stale-note .sn-title { font-weight: 700; }
.stale-note > .btn { flex: none; }
.stale-wrap { padding: 12px 24px; }
@media (max-width: 767px) { .stale-wrap { padding: 12px 20px; } }

.offline-band { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px var(--gut); background: var(--line); color: var(--ink); font-size: var(--fs-13); line-height: var(--lh-13); font-weight: 600; text-align: center; }
.offline-band .ico { width: 18px; height: 18px; color: var(--muted); }

.toast-host { position: fixed; z-index: 90; left: 0; right: 0; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
@media (max-width: 767px) { .toast-host { bottom: calc(var(--tabbar) + 12px + env(safe-area-inset-bottom)); } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 10px; max-width: min(100%, 560px); min-height: 48px;
  padding: 12px 16px 12px 14px; border-radius: var(--r-card); background: var(--ink); color: var(--on-ink);
  font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 500; box-shadow: var(--e-lift);
  animation: toast-in var(--t-set) var(--ease-set) both;
}
.toast.is-leaving { animation: toast-out 200ms var(--ease-micro) both; }
.toast > .ico { width: 20px; height: 20px; }
.toast.is-ok > .ico { color: var(--drop); }
.toast.is-bad > .ico { color: var(--stop); }
.toast .t-act { margin-left: 6px; flex: none; color: var(--on-ink); font-weight: 700; text-decoration: underline; text-underline-offset: .22em; text-decoration-color: rgba(247,250,252,.5); }
.toast .t-sub { color: var(--muted-on-ink); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px); } }

/* ── 14. 시트 · 모달 ──────────────────────────────────────────────────────── */
.scrim { position: fixed; inset: 0; z-index: 80; background: var(--scrim); opacity: 0; pointer-events: none; transition: opacity var(--t-set) var(--ease-set); }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.side-sheet {
  position: fixed; z-index: 81; top: 0; right: 0; bottom: 0; width: min(520px, 100vw);
  display: flex; flex-direction: column; background: var(--surface); box-shadow: var(--e1);
  transform: translateX(104%); transition: transform var(--t-set) var(--ease-set); visibility: hidden;
}
.side-sheet.is-open { transform: none; visibility: visible; }
.sheet-head { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line); }
.sheet-body { flex: 1; overflow-y: auto; padding: 24px; display: flex; flex-direction: column; gap: 24px; }
.sheet-foot { flex: none; padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.sheet-sec { display: flex; flex-direction: column; gap: 12px; }
.sheet-sec + .sheet-sec { padding-top: 24px; border-top: 1px solid var(--line); }
.sheet-sec > .seg { align-self: flex-start; }
.bottom-sheet {
  position: fixed; z-index: 81; left: 0; right: 0; bottom: 0; max-height: 88vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-card) var(--r-card) 0 0; box-shadow: var(--e1);
  transform: translateY(104%); transition: transform var(--t-set) var(--ease-set); visibility: hidden;
}
.bottom-sheet.is-open { transform: none; visibility: visible; }
.sheet-grip { flex: none; width: 36px; height: 4px; margin: 8px auto 0; border-radius: 2px; background: var(--line-input); }
.bottom-sheet .sheet-head { border-bottom: 0; min-height: 56px; padding: 8px 12px 0 20px; }
.bottom-sheet .sheet-body { padding: 8px 20px 20px; gap: 16px; }
.bottom-sheet .sheet-foot { padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); }
.dialog {
  position: fixed; z-index: 82; left: 50%; top: 50%; width: min(400px, calc(100vw - 40px));
  padding: 24px; background: var(--surface); border-radius: var(--r-card); box-shadow: var(--e1);
  transform: translate(-50%, -46%); opacity: 0; visibility: hidden; transition: transform var(--t-set) var(--ease-set), opacity var(--t-set) var(--ease-set);
}
.dialog.is-open { transform: translate(-50%, -50%); opacity: 1; visibility: visible; }
.dialog .t-desc { margin-top: 8px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }

/* ── 15. 물방울 — 로고 · 로더 · 지금 선 · 입장 성공 ──────────────────────────── */
.droplet { display: block; color: var(--drop); }
.app-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 22%; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--e1); }
.app-icon .droplet { width: 40%; height: auto; }

/* DropletLoader — 아래에서 차오르는 물방울 1,600ms (앱 DropletLoader) */
.drop-loader { --dl: var(--action); display: inline-block; width: 14px; height: 20px; flex: none; }
.drop-loader svg { width: 100%; height: 100%; overflow: visible; }
.drop-loader .dl-line { fill: none; stroke: var(--dl); stroke-opacity: .7; stroke-width: 2.2; }
.drop-loader .dl-water { fill: var(--dl); animation: dl-rise var(--t-loader) var(--ease-micro) infinite; transform-box: view-box; }
.drop-loader.is-24 { width: 24px; height: 34px; } .drop-loader.is-24 .dl-line { stroke-width: 1.8; }
.drop-loader.is-40 { width: 40px; height: 56px; } .drop-loader.is-40 .dl-line { stroke-width: 1.4; }
.drop-loader.on-ink { --dl: var(--on-ink); }
@keyframes dl-rise {
  0%   { transform: translateY(36.3px); opacity: 1; }
  80%  { transform: translateY(7px);    opacity: 1; }
  100% { transform: translateY(7px);    opacity: 0; }
}
.page-loader { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 64px 0; }

/* 입장 성공 물방울 낙하 — 입구 태블릿 1곳만(550ms 1번 + 물결) */
.drop-fall { position: relative; width: 80px; height: 56px; }
.drop-fall .droplet { position: absolute; left: 50%; bottom: 8px; width: 28px; height: 39px; margin-left: -14px; animation: drop-fall var(--t-drop) var(--ease-drop) both; transform-origin: 50% 100%; }
.drop-fall .ripple { position: absolute; left: 50%; bottom: 2px; width: 80px; height: 14px; margin-left: -40px; border-radius: 50%; border: 2px solid var(--drop); opacity: 0; animation: ripple 900ms ease-out calc(var(--t-drop) * .7) both; }
@keyframes drop-fall {   /* 떨어져 → 닿으며 찌그러졌다 → 제자리에 남는다(입장 화면의 브랜드 표식) */
  0%   { transform: translateY(-60px) scaleY(1); opacity: 0; }
  15%  { opacity: 1; }
  70%  { transform: translateY(0) scaleY(1.12); }
  84%  { transform: translateY(0) scale(1.3, .78); }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes ripple { 0% { opacity: .7; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }

/* ── 16. 입구 태블릿 — DigitSlots · Keypad · QrPanel · VolumeBar · EntryResult ── */
.face { background: var(--surface); background-image: var(--face-bg); }
.face-card { background: var(--surface); border-radius: var(--r-face); box-shadow: var(--e-face); }
.digits { display: flex; justify-content: center; gap: 12px; }
.digit { position: relative; display: grid; place-items: center; width: 64px; height: 72px; border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-input); font-family: var(--font-num); font-size: var(--fs-40); font-weight: 800; font-variation-settings: "wdth" 125; font-variant-numeric: tabular-nums; }
.digit.is-filled { box-shadow: inset 0 0 0 1px var(--ink); }
.digit.is-active { box-shadow: inset 0 0 0 2px var(--drop-deep), var(--focus-input); }
.digit.is-active::after { content: ""; width: 2px; height: 32px; background: var(--drop-deep); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.digit-hint { margin-top: 12px; text-align: center; }
.keypad { display: grid; grid-template-columns: repeat(3, var(--key-w)); gap: 12px; justify-content: center; }
.key {
  height: var(--key-h); border-radius: var(--r-card); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
  font-family: var(--font-num); font-size: 32px; font-weight: 700; font-variation-settings: "wdth" 100; color: var(--ink);
  display: grid; place-items: center; transition: transform var(--t-micro) var(--ease-micro), background-color var(--t-micro) var(--ease-micro);
}
.key:hover { background: var(--paper); }
.key:active { background: var(--sky-1); transform: scale(var(--press-pill)); }
.key:disabled { opacity: .4; }
.key .ico { width: 28px; height: 28px; }
.key.is-ok { background: var(--ink); color: var(--on-ink); box-shadow: none; font-family: var(--font); font-size: var(--fs-20); font-weight: 700; }
.key.is-ok:hover { background: var(--ink-hover); }
.keypad.is-m { grid-template-columns: repeat(3, var(--key-w)); --key-h: 64px; }

.qr-card { padding: 32px 32px 20px; text-align: center; width: 100%; max-width: 440px; }
.qr-center { font-size: var(--fs-18); line-height: var(--lh-18); font-weight: 600; color: var(--muted); }
.qr-title { margin-top: 8px; }
.qr-title em { font-style: normal; color: var(--action); }
.qr-frame { position: relative; width: 280px; height: 280px; margin: 24px auto 20px; padding: 22px; }
.qr-frame .qr-ring { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); }
.qr-frame .qr-ring rect { fill: none; stroke: var(--drop-deep); stroke-width: 2; stroke-linecap: round; }
.qr-frame .qr-ring .track { stroke: var(--line); }
.qr-frame .corner { position: absolute; width: 36px; height: 36px; border: 4px solid var(--action); }
.qr-frame .corner.tl { left: 0; top: 0; border-right: 0; border-bottom: 0; border-radius: 12px 0 0 0; }
.qr-frame .corner.tr { right: 0; top: 0; border-left: 0; border-bottom: 0; border-radius: 0 12px 0 0; }
.qr-frame .corner.bl { left: 0; bottom: 0; border-right: 0; border-top: 0; border-radius: 0 0 0 12px; }
.qr-frame .corner.br { right: 0; bottom: 0; border-left: 0; border-top: 0; border-radius: 0 0 12px 0; }
.qr-frame .qr-img { width: 100%; height: 100%; }
.qr-foot { padding-top: 16px; border-top: 1px solid var(--line); }

.volume { display: flex; align-items: center; gap: 12px; }
.volume > .ico { color: var(--muted); }
.volume input[type="range"] { -webkit-appearance: none; appearance: none; flex: 1; min-width: 0; width: 100%; height: 24px; background: transparent; cursor: pointer; --v: 60; }
.volume input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--action) 0 calc(var(--v) * 1%), var(--line) calc(var(--v) * 1%) 100%); }
.volume input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--action) 0 calc(var(--v) * 1%), var(--line) calc(var(--v) * 1%) 100%); }
.volume input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: -7px; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line-input), 0 1px 4px rgba(0,0,0,.18); }
.volume input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1px var(--line-input), 0 1px 4px rgba(0,0,0,.18); }
.volume .num { min-width: 36px; text-align: right; font-size: var(--fs-18); color: var(--action); font-variation-settings: "wdth" 100; }

.entry-result { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.entry-mini { width: 100%; max-width: 420px; padding: 20px 24px; text-align: left; display: flex; flex-direction: column; gap: 14px; }
.entry-timer { width: 100%; max-width: 420px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
.entry-timer i { display: block; height: 100%; background: var(--drop-deep); transform-origin: left; animation: entry-timer 10s linear both; }
@keyframes entry-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.entry-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── 17. 캘린더 — TimelineGrid · LessonBlock · NowLine · HeatGrid ─────────── */
.tl { --tl-col: 200px; --tl-hour: 157px; --tl-row: 56px; --tl-from: 6; --tl-hours: 17;
  position: relative; display: grid; grid-template-columns: var(--tl-col) minmax(0,1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.tl.is-dense { --tl-row: 36px; }
.tl-names { position: relative; z-index: 2; border-right: 1px solid var(--line); background: var(--surface); }
.tl-corner { height: 40px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 16px; }
.tl-name { height: var(--tl-row); display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.tl-name .tn-main { min-width: 0; display: flex; flex-direction: column; }
.tl-name .tn-name { font-size: var(--fs-15); line-height: 18px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl.is-dense .tl-name .t-sub { display: none; }
.tl.is-dense .tl-name .tn-name { font-size: var(--fs-13); }
.tl-scroll { position: relative; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.tl-canvas { position: relative; width: calc(var(--tl-hours) * var(--tl-hour)); }
.tl-axis { position: relative; height: 40px; border-bottom: 1px solid var(--line); }
.tl-axis span.is-near { visibility: hidden; }
.tl-axis span { position: absolute; top: 0; height: 100%; padding: 12px 0 0 6px; border-left: 1px solid var(--line); font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; color: var(--muted); white-space: nowrap; }
.tl-row { position: relative; height: var(--tl-row); border-bottom: 1px solid var(--line);
  background-image:
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px var(--tl-hour)),
    repeating-linear-gradient(90deg, transparent 0 calc(var(--tl-hour) / 2), rgba(232,235,237,.6) calc(var(--tl-hour) / 2) calc(var(--tl-hour) / 2 + 1px), transparent calc(var(--tl-hour) / 2 + 1px) var(--tl-hour)); }
.tl-row:last-child, .tl-name:last-child { border-bottom: 0; }
.lesson {
  --lc: var(--lt-single-line); --lf: var(--lt-single-fill);
  position: absolute; top: 6px; bottom: 6px; left: calc((var(--s) - var(--tl-from)) * var(--tl-hour) + 2px); width: calc(var(--d) * var(--tl-hour) - 4px);
  display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 8px; overflow: hidden;
  border: 2px solid var(--lc); border-radius: 8px; background: var(--lf); background: color-mix(in srgb, var(--lf) 45%, var(--surface));
  font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; text-align: left; color: var(--ink);
  transition: transform var(--t-micro) var(--ease-micro), box-shadow var(--t-micro) var(--ease-micro);
}
.lesson:hover { box-shadow: var(--e1); z-index: 2; }
.lesson .ls-time { font-size: var(--fs-11); line-height: var(--lh-11); font-weight: 500; color: var(--muted); white-space: nowrap; }
.lesson .ls-main { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lesson .ls-main .ico { display: inline-block; width: 12px; height: 12px; margin-right: 3px; vertical-align: -1px; stroke-width: 2.4; }
.lesson .ls-time { overflow: hidden; text-overflow: ellipsis; }
.tl.is-dense .lesson { top: 4px; bottom: 4px; }
.tl.is-dense .lesson .ls-time { display: none; }
.lesson.is-duet { --lc: var(--lt-duet-line); --lf: var(--lt-duet-fill); }
.lesson.is-group { --lc: var(--lt-group-line); --lf: var(--lt-group-fill); }
.lesson.is-consult, .lesson.is-trial { --lc: var(--lt-consult-line); --lf: var(--lt-consult-fill); }
.lesson.is-membership { --lc: var(--lt-membership-line); --lf: var(--lt-membership-fill); }
.lesson.is-done { background: var(--lf); }
.lesson.is-unconfirmed::after { content: ""; position: absolute; top: 4px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.lesson.is-noshow { border-color: var(--stop); }
.lesson.is-noshow .ls-flag { color: var(--stop); font-weight: 700; }
.lesson.is-requested { border-style: dashed; background: var(--surface); }
.lesson.is-past { --lc: var(--line-input); --lf: var(--mute-bg); color: var(--muted); background: var(--mute-bg); }
.lesson.is-cancel { border-style: dotted; background: var(--surface); color: var(--muted); text-decoration: line-through; }
.now-line { position: absolute; z-index: 3; top: 0; bottom: 0; left: calc((var(--now) - var(--tl-from)) * var(--tl-hour)); width: 2px; margin-left: -1px; background: var(--drop-deep); pointer-events: none; }
.now-line .droplet { position: absolute; top: 10px; left: 50%; width: 14px; height: 20px; max-width: none; margin-left: -7px; color: var(--drop-deep); }
.now-line .now-time { position: absolute; top: 11px; left: 12px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 0 0 1px var(--drop-deep); font-size: var(--fs-11); line-height: var(--lh-11); font-weight: 700; color: var(--ink); white-space: nowrap; }
@media (max-width: 1279px) { .tl { --tl-col: 152px; --tl-hour: 184px; } }

.heat { display: grid; grid-template-columns: 132px repeat(7, minmax(44px, 1fr)); gap: 4px; align-items: center; min-width: 560px; }
.heat-wrap { position: relative; overflow-x: auto; }
.heat-h { font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; color: var(--muted); text-align: center; }
.heat-n { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: var(--fs-14); font-weight: 600; white-space: nowrap; overflow: hidden; }
.heat-c { height: 44px; border-radius: var(--r-badge); display: grid; place-items: center; background: var(--heat-0); font-family: var(--font-num); font-size: var(--fs-14); font-weight: 700; font-variation-settings: "wdth" 100; color: var(--ink); }
.heat-c[data-h="1"] { background: var(--heat-1); } .heat-c[data-h="2"] { background: var(--heat-2); }
.heat-c[data-h="3"] { background: var(--heat-3); } .heat-c[data-h="4"] { background: var(--heat-4); color: var(--on-brand); }
.heat-legend { display: flex; align-items: center; gap: 4px; }
.heat-legend i { width: 20px; height: 12px; border-radius: 3px; }

/* ── 18. 리포트 — ChapterBand · ReportIndexTabs · 리포트 행 (리포트 4색은 여기서만) ── */
.ch-1 { --c: var(--rpt-status); --c-deep: var(--rpt-status-deep); --c-page: var(--rpt-status-soft); }
.ch-2 { --c: var(--rpt-lesson); --c-deep: var(--rpt-lesson-deep); --c-page: var(--rpt-lesson-soft); --c-on: var(--rpt-on-lesson); }   /* 수업 장 색 위 글자만 흰색(6.62:1) */
.ch-3 { --c: var(--rpt-diet);   --c-deep: var(--rpt-diet-deep);   --c-page: var(--rpt-diet-soft); }
.ch-4 { --c: var(--rpt-change); --c-deep: var(--rpt-change-deep); --c-page: var(--rpt-change-soft); }
.chapter-band { display: flex; align-items: center; gap: 14px; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 700; letter-spacing: .08em; }
.chapter-band::before { content: ""; width: 8px; height: 8px; background: var(--c, var(--ink)); flex: none; }
.chapter-band::after { content: ""; flex: 1; height: 1px; background: var(--ink); opacity: .7; }
.index-tabs { display: flex; flex-direction: column; gap: 8px; }
.index-tab { position: relative; display: grid; grid-template-columns: 28px minmax(0,1fr) auto; align-items: center; gap: 4px 10px; min-height: 56px; padding: 10px 14px; border-radius: var(--r-input); border: 1px solid var(--c); background: var(--surface); text-align: left; color: var(--ink); transition: background-color var(--t-micro) var(--ease-micro); }
.index-tab .it-no { font-family: var(--font-num); font-size: var(--fs-12); font-weight: 800; font-variation-settings: "wdth" 125; }
.index-tab .it-name { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 700; }
.index-tab .it-date { font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; font-variant-numeric: tabular-nums; }
.index-tab.is-read { background: var(--surface); background: color-mix(in srgb, var(--c) 40%, var(--surface)); }
.index-tab.is-now { background: var(--c); color: var(--c-on, var(--ink)); }
.index-tab.is-missing { border-style: dashed; border-color: var(--line-input); color: var(--muted); }
.index-tab:not(.is-now):not(.is-missing):hover { background: var(--paper); background: color-mix(in srgb, var(--c) 18%, var(--surface)); }
.rpt-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 10px 0; border-top: 1px solid var(--line); text-align: left; }
.rpt-row:first-child { border-top: 0; }
.rpt-row .rr-name { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 600; }
.rpt-row .rr-meta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.rpt-row > .ico { width: 18px; height: 18px; color: var(--faint); }
.rpt-row.is-missing .rr-name { color: var(--muted); font-weight: 500; }
.notice-line { padding: 12px 16px; border-radius: var(--r-input); background: var(--mute-bg); font-size: var(--fs-12); line-height: 18px; color: var(--muted); }

/* ── 19. 센터 설정 — 입구 주소 카드 · 락커 번호판 ─────────────────────────── */
.entry-url { display: flex; align-items: center; gap: 20px; padding: 20px 24px; }
.entry-url .eu-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.entry-url .eu-url { font-size: var(--fs-18); line-height: var(--lh-18); font-weight: 700; letter-spacing: -.01em; word-break: break-all; }
.entry-url .eu-url b { color: var(--action); font-weight: 700; }
.entry-url .eu-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.entry-url .eu-qr { flex: none; width: 120px; height: 120px; padding: 8px; border-radius: var(--r-input); box-shadow: inset 0 0 0 1px var(--line); }
@media (max-width: 767px) { .entry-url { flex-direction: column-reverse; align-items: flex-start; padding: 16px 20px; } }
.lockers { display: grid; grid-template-columns: repeat(auto-fill, 56px); gap: 6px; }
.locker { width: 56px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; border-radius: var(--r-badge); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-input); transition: transform var(--t-micro) var(--ease-micro); }
.locker:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--ink); }
.locker .lk-no { font-family: var(--font-num); font-size: var(--fs-14); line-height: 1; font-weight: 800; font-variation-settings: "wdth" 100; }
.locker .lk-who { font-size: var(--fs-11); line-height: var(--lh-11); font-weight: 500; color: var(--muted); }
.locker.is-used { background: var(--sky-1); box-shadow: none; }
.locker.is-expired { background: var(--stop-bg); box-shadow: none; color: var(--stop); }
.locker.is-expired .lk-who { color: var(--stop); }
.locker.is-cleaning { background: var(--mute-bg); box-shadow: none; outline: 1px dashed var(--faint); outline-offset: -1px; }
.locker.is-off { background: repeating-linear-gradient(135deg, var(--mute-bg) 0 4px, var(--surface) 4px 8px); color: var(--faint); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.legend > span { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12); line-height: var(--lh-12); color: var(--muted); }
.legend i { width: 14px; height: 14px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-input); }

/* ── 21. 고르기 카드(판매 시트 상품 격자) · 일별 막대 차트 ───────────────────── */
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; align-content: start; }
.choice { position: relative; display: flex; flex-direction: column; gap: 2px; min-height: 76px; padding: 12px 14px; border-radius: var(--r-input); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-input); text-align: left; transition: box-shadow var(--t-micro) var(--ease-micro); }
.choice:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.choice[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }
.choice[aria-pressed="true"]::after { content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F7FAFC' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.choice .ch-name { font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 600; }
.choice .ch-price { margin-top: auto; font-size: var(--fs-14); line-height: var(--lh-14); font-weight: 700; font-variant-numeric: tabular-nums; }
/* 일별 막대 — 한 계열 · action, 오늘만 navy. 값은 마우스를 올리면 */
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); align-items: end; gap: 4px; height: 168px; padding-top: 24px; border-bottom: 1px solid var(--line-strong); }
.bars > span { position: relative; height: calc(var(--h) * 1%); min-height: 2px; border-radius: 3px 3px 0 0; background: var(--action); transition: opacity var(--t-micro) var(--ease-micro); }
.bars > span.is-today { background: var(--navy); }
.bars:hover > span:not(:hover) { opacity: .45; }
.bars > span:hover::after { content: attr(data-v); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: var(--ink); color: var(--on-ink); font-size: var(--fs-12); font-weight: 600; white-space: nowrap; pointer-events: none; z-index: 2; }
.bars-axis { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin-top: 6px; }
.bars-axis span { text-align: center; font-size: var(--fs-12); line-height: var(--lh-12); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ── 20. 움직임 줄이기 ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .drop-loader .dl-water { animation: none; transform: translateY(14.5px); }
  .board-pages i.is-now::after { animation: none; transform: none; }
}
