/* dadjob — 당직 관제탑. Pretendard, 화이트 단일 테마, 4px 그리드, 터치 44px+. */

/* ── 토큰 (hex·rgba는 여기에만) ── */
:root {
  --ink: #191F28;
  --ink-secondary: #5C6775;
  --brand: #2B5BD7;
  --brand-strong: #1E47A8;
  --brand-wash: #EEF3FF;
  --brand-tint: #F5F8FF;
  --on-brand: #FFFFFF;
  --green: #1E8A5B;
  --green-strong: #176E48;
  --green-wash: #E6F4EC;
  --gold: #876013;
  --gold-bright: #C4930D;
  --gold-wash: #F6ECD2;
  --red: #C5332A;
  --surface: #F4F6F8;
  --border: #E5E8EB;
  --page: #F5F6F8;
  --bg: #FFFFFF;
  --lock: #AEB6C0;
  --kakao: #FEE500;
  --on-kakao: #191919;

  --shadow-card: 0 0 0 1px #E5E8EB, 0 2px 4px rgba(25, 31, 40, 0.04);
  --shadow-tab: 0 1px 2px rgba(25, 31, 40, 0.06);
  --scrim: rgba(25, 31, 40, 0.45);

  --font: "Pretendard Variable", Pretendard, "Apple SD Gothic Neo", system-ui, sans-serif;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-full: 9999px;
  --gut: 20px;

  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --ease-decelerate: cubic-bezier(0.05, 0.7, 0.1, 1);
  --ease-accelerate: cubic-bezier(0.3, 0, 0.8, 0.15);
}

/* ── 리셋 ── */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font); font-size: 15px; font-weight: 400;
  line-height: 1.5; font-variant-numeric: tabular-nums;
  word-break: keep-all; letter-spacing: -0.01em;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
input, select, textarea { font-size: 16px; } /* iOS Safari 포커스 자동 확대 방지: 16px 미만 금지 */
button { cursor: pointer; background: none; border: 0; padding: 0; text-align: left; }
a { color: var(--brand); text-decoration: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, p, ul, dl { margin: 0; }
h1, h2 { font-weight: 600; }
ul { padding: 0; list-style: none; }
svg { display: block; }
b { font-weight: 600; }

/* ── 앱 셸 ── */
.app { max-width: 430px; margin: 0 auto; min-height: 100vh; position: relative; }
#screen-onb { background: var(--bg); min-height: 100vh; }
.link { font-size: 13px; font-weight: 500; color: var(--ink-secondary); min-height: 44px; min-width: 44px; padding: 0 8px; display: inline-flex; align-items: center; justify-content: center; }
.link--brand, .link--strong { color: var(--brand); }

/* ── 헤더 ── */
.hdr { padding: 16px var(--gut) 0; }
.hdr__top { display: flex; align-items: center; justify-content: space-between; height: 24px; }
.hdr__brand { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-secondary); }
.hdr__user { display: flex; align-items: center; gap: 12px; }
.hdr__name { font-size: 13px; font-weight: 500; color: var(--ink-secondary); }
.dday { display: flex; flex-direction: column; gap: 4px; margin-top: 20px; }
.dday__value { font-size: 40px; font-weight: 600; line-height: 1; color: var(--ink); letter-spacing: -0.04em; }
.dday__meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-secondary); }
.prog { margin-top: 20px; }
.prog__bar { height: 6px; background: var(--surface); border-radius: var(--r-full); overflow: hidden; }
.prog__fill { height: 100%; background: var(--brand); border-radius: var(--r-full); transition: width 600ms var(--ease-standard); }
.prog__fill--gold { background: var(--gold-bright); }
.prog__txt { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: var(--ink-secondary); }
.prog__txt b { color: var(--ink); }
.sync { font-size: 13px; color: var(--ink-secondary); }
.sync--on { color: var(--brand); }

/* ── 게이트 배너 ── */
.gate {
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  margin: 16px var(--gut) 0; padding: 12px 16px;
  border-radius: var(--r-sm); background: var(--bg);
  box-shadow: var(--shadow-card); font-size: 13px; color: var(--ink-secondary);
}
.gate__btn {
  flex: 0 0 auto; min-height: 44px; padding: 0 16px;
  border-radius: var(--r-sm); background: var(--brand); color: var(--on-brand);
  font-size: 13px; font-weight: 600; display: inline-flex; align-items: center;
}

/* ── 탭 ── */
.tabs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  margin: 20px var(--gut) 0; padding: 4px;
  background: var(--surface); border-radius: var(--r-sm);
}
.tab {
  min-height: 44px; border-radius: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink-secondary); text-align: center;
  display: flex; align-items: center; justify-content: center;
  transition: background 150ms;
}
.tab[aria-pressed="true"] {
  background: var(--bg); color: var(--ink); font-weight: 600;
  box-shadow: var(--shadow-tab);
}

/* ── 세로 레일 트랙 ── */
.rail { margin: 24px 0 0; padding: 4px 0; }
.rail__node {
  position: relative; display: flex; align-items: center;
  height: 56px; padding-left: 56px; padding-right: var(--gut);
  width: 100%; gap: 4px;
}
.rail__node::before {
  content: ""; position: absolute;
  left: calc(var(--gut) + 12px); top: 0; bottom: 0;
  width: 2px; background: var(--border);
  transform: translateX(-50%);
}
.rail__node:first-child::before { top: 50%; }
.rail__node:last-child::before { bottom: 50%; }
.rail__node--done::before { background: var(--green); }
.rail__node--done + .rail__node--current::before { background: var(--green); }
.rail__dot {
  position: absolute; left: calc(var(--gut) + 12px); top: 50%;
  transform: translate(-50%, -50%); z-index: 1;
  width: 28px; height: 28px; border-radius: var(--r-full);
  display: grid; place-items: center;
  background: var(--bg); color: var(--ink-secondary);
  box-shadow: inset 0 0 0 2px var(--border);
  font-size: 13px; font-weight: 500;
}
.rail__dot svg { width: 16px; height: 16px; }
.rail__node--done .rail__dot {
  background: var(--green); color: var(--on-brand); box-shadow: none;
}
.rail__node--current .rail__dot {
  box-shadow: inset 0 0 0 2px var(--brand);
}
.rail__node--current .rail__dot i {
  width: 12px; height: 12px; border-radius: var(--r-full); background: var(--brand);
}
.rail__node--current .rail__dot::after {
  content: ""; position: absolute; inset: -6px; border-radius: var(--r-full);
  border: 2px solid var(--brand); opacity: 0.4;
}
@media (prefers-reduced-motion: no-preference) {
  .rail__node--current .rail__dot::after { animation: pulse 2s var(--ease-standard) infinite; }
}
@keyframes pulse { 0% { transform: scale(0.85); opacity: 0.5; } 70% { transform: scale(1.25); opacity: 0; } 100% { opacity: 0; } }
.rail__node--future .rail__dot {
  color: var(--lock); background: var(--surface); box-shadow: inset 0 0 0 2px var(--border);
}
.rail__node--reward .rail__dot {
  box-shadow: inset 0 0 0 2px var(--gold-bright);
}
.rail__node--sel .rail__dot { transform: translate(-50%, -50%) scale(1.08); }
.rail__body { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.rail__name {
  font-size: 15px; font-weight: 500; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rail__node--future .rail__name { color: var(--ink-secondary); }
.rail__node--sel .rail__name { color: var(--brand); font-weight: 600; }
.rail__sub { font-size: 13px; font-weight: 500; color: var(--gold); white-space: nowrap; }
.rail__node--future .rail__sub { color: var(--ink-secondary); }

/* ── 히어로 (현재 라운드 카드) ── */
.hero {
  margin: 16px var(--gut) 0; padding: 20px;
  border-radius: var(--r-md); background: var(--bg);
  box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.hero__eyebrow { font-size: 13px; font-weight: 500; color: var(--brand); }
.hero__eyebrow span { color: var(--ink-secondary); font-weight: 400; }
.hero--clear .hero__eyebrow { color: var(--green-strong); }
.hero__title {
  margin-top: 4px; font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.4;
}
.hero__desc { margin-top: 8px; font-size: 13px; color: var(--ink-secondary); line-height: 1.5; }
.hero__progress { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.hero__bar { flex: 1; height: 6px; background: var(--surface); border-radius: var(--r-full); overflow: hidden; }
.hero__fill { height: 100%; background: var(--brand); border-radius: var(--r-full); transition: width 300ms var(--ease-standard); }
.hero--clear .hero__fill { background: var(--green); }
.hero__count { font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.hero__action {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 52px; margin-top: 16px;
  border-radius: var(--r-sm); background: var(--brand); color: var(--on-brand);
  font-size: 15px; font-weight: 600; text-align: center;
  transition: background 120ms;
}
.hero__action:active { background: var(--brand-strong); }
.hero__action-sub { margin-top: 8px; font-size: 13px; color: var(--ink-secondary); text-align: center; }
.hero__lock {
  margin-top: 16px; display: flex; gap: 8px; align-items: center;
  font-size: 13px; color: var(--ink-secondary);
}
.hero__lock svg { width: 16px; height: 16px; flex: 0 0 auto; }
.hero__gate {
  margin-top: 16px; padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--surface); font-size: 13px; color: var(--ink-secondary); line-height: 1.5;
}
.hero__gate b { color: var(--ink); }
.hero__memo { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.memo-link {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; border-radius: var(--r-sm); background: var(--surface);
  font-size: 13px; font-weight: 500; color: var(--ink);
  min-height: 44px;
}
.memo-link span { color: var(--ink-secondary); font-size: 13px; font-weight: 400; }
.memo-link svg { width: 16px; height: 16px; margin-left: auto; color: var(--ink-secondary); }
.memo-link:active { background: var(--border); }

/* 히어로 클리어 */
.hero__stamp {
  position: absolute; top: 16px; right: 16px;
  width: 56px; height: 56px; border-radius: var(--r-full);
  background: var(--bg); color: var(--green);
  display: grid; place-items: center;
}
.hero__stamp svg { width: 24px; height: 24px; }
@media (prefers-reduced-motion: no-preference) {
  .hero__stamp--enter { animation: stamp-in 220ms var(--ease-decelerate) both; }
}
@keyframes stamp-in { from { transform: scale(1.15); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.hero__clear-row {
  margin-top: 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 16px;
  border-radius: var(--r-sm); background: var(--bg);
}
.hero__clear-label { font-size: 13px; font-weight: 500; color: var(--green-strong); }
.hero__next {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 44px; padding: 0 12px;
  border-radius: var(--r-sm); background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 500;
}
.hero__next svg { width: 16px; height: 16px; }

/* ── 섹션 헤딩 ── */
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.sec-h h2 { font-size: 17px; font-weight: 600; }
.sec-h span { font-size: 13px; color: var(--ink-secondary); font-weight: 400; }
.sec-h--lg { margin: 32px var(--gut) 16px; }

/* ── 과제 목록 (구분선 행) ── */
.tasklist { display: flex; flex-direction: column; margin: 0 var(--gut); }
.tasklist--opt { margin-top: 0; }
.task {
  display: flex; flex-direction: column;
  border-bottom: 1px solid var(--border);
  transition: opacity 300ms;
}
.task:last-child { border-bottom: none; }
.task--done { opacity: 0.5; }
.task--locked { opacity: 0.7; }
.task--open { opacity: 1; }
.task--next { background: var(--brand-tint); }
.task__row {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 8px 0;
}
.task__check {
  flex: 0 0 44px; height: 44px;
  display: grid; place-items: center;
}
.task__check-circle {
  width: 24px; height: 24px; border-radius: var(--r-full);
  border: 1.5px solid var(--border); display: grid; place-items: center;
  background: var(--bg); transition: all 200ms var(--ease-standard);
}
.task__check-circle svg { width: 16px; height: 16px; }
.task--done .task__check-circle {
  background: var(--green); border-color: var(--green); color: var(--on-brand);
}
@media (prefers-reduced-motion: no-preference) {
  .task--done .task__check-circle { animation: check-pop 200ms var(--ease-decelerate); }
}
@keyframes check-pop { 0% { transform: scale(0.8); } 60% { transform: scale(1.08); } 100% { transform: none; } }
.task--locked .task__check-circle {
  border-style: dashed; border-color: var(--lock); color: var(--lock); background: transparent;
}
.task__body-btn { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 2px; }
.task__title { font-size: 17px; font-weight: 500; line-height: 1.5; color: var(--ink); }
.task--done .task__title { color: var(--ink-secondary); text-decoration: line-through; }
.task--locked .task__title { color: var(--ink-secondary); }
.task__meta { font-size: 13px; color: var(--ink-secondary); line-height: 1.5; }
.task__meta-red { color: var(--red); font-weight: 500; }
.task__meta-lock { color: var(--ink-secondary); }
.task__right { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.task__reward { font-size: 15px; font-weight: 600; color: var(--gold); white-space: nowrap; }
.task--done .task__reward { color: var(--ink-secondary); }
.task__reward-label { font-size: 13px; color: var(--ink-secondary); }
.task__chevron { flex: 0 0 16px; color: var(--ink-secondary); }
.task__chevron svg { width: 16px; height: 16px; }

/* 과제 상세 펼침 */
.task__detail {
  display: none; padding: 0 0 16px 56px;
  font-size: 13px; color: var(--ink-secondary); line-height: 1.5;
}
.task--open .task__detail { display: block; }
@media (prefers-reduced-motion: no-preference) {
  .task--open .task__detail { animation: rise 250ms var(--ease-decelerate) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.task__detail p { margin-bottom: 8px; color: var(--ink); }
.task__detail dl {
  display: grid; grid-template-columns: 48px 1fr; gap: 4px 12px; margin-top: 8px;
}
.task__detail dt { font-size: 13px; font-weight: 500; color: var(--ink-secondary); }
.task__detail dd { margin: 0; color: var(--ink); }
.task__detail dd.muted { color: var(--ink-secondary); }
.task__income {
  display: block; margin-top: 12px; padding: 8px 12px;
  border-radius: var(--r-sm); font-size: 13px; font-weight: 500; line-height: 1.5;
}
.task__income--ok { background: var(--brand-wash); color: var(--brand); }
.task__income--no { background: var(--surface); color: var(--ink-secondary); }
.task__income--chk { background: var(--gold-wash); color: var(--gold); }
.task__links { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; }
.task__links a { font-size: 13px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.task__note {
  width: 100%; margin-top: 12px; padding: 12px;
  border: 0; border-radius: var(--r-sm); background: var(--surface);
  font-size: 16px; line-height: 1.5; resize: none; overflow: hidden;
  color: var(--ink); min-height: 44px;
}
.task__note::placeholder { color: var(--ink-secondary); }
.task__note:focus { outline: 2px solid var(--brand); }
.opt-toggle {
  display: block; margin: 8px var(--gut) 0; padding: 12px 0;
  font-size: 13px; font-weight: 500; color: var(--ink-secondary);
  min-height: 44px;
}

/* ── 보상 원장 ── */
.ledger { margin: 0 var(--gut); }
.ledger__bar {
  padding: 20px; border-radius: var(--r-md);
  background: var(--bg); box-shadow: var(--shadow-card);
}
.ledger__total {
  font-size: 30px; font-weight: 600; color: var(--gold);
  letter-spacing: -0.03em; line-height: 1.2;
}
.ledger__sub { font-size: 13px; color: var(--ink-secondary); margin-top: 4px; }
.ledger__bar .prog__bar { margin-top: 16px; }
.ledger__list { margin-top: 16px; display: flex; flex-direction: column; }
.ledger__row {
  display: flex; align-items: center; gap: 12px;
  height: 56px; border-bottom: 1px solid var(--border);
}
.ledger__row:last-child { border-bottom: none; }
.ledger__icon {
  flex: 0 0 36px; width: 36px; height: 36px;
  border-radius: var(--r-full); background: var(--gold-wash);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 600; color: var(--gold);
}
.ledger__icon svg { width: 16px; height: 16px; }
.ledger__row--pending .ledger__icon { background: var(--surface); color: var(--ink-secondary); }
.ledger__info { flex: 1; min-width: 0; }
.ledger__name { font-size: 15px; font-weight: 500; color: var(--ink); }
.ledger__note-text { font-size: 13px; color: var(--ink-secondary); }
.ledger__amt { flex: 0 0 auto; font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; }
.ledger__chip {
  flex: 0 0 auto; padding: 2px 8px; border-radius: var(--r-full);
  font-size: 13px; font-weight: 500;
}
.ledger__chip--unlocked { background: var(--gold-wash); color: var(--gold); }
.ledger__chip--pending { background: var(--surface); color: var(--ink-secondary); }
.ledger__footer {
  margin-top: 16px; font-size: 13px; color: var(--ink-secondary); line-height: 1.5;
}
.ledger__footer b { color: var(--ink); }

/* ── 출처 · 푸터 ── */
.src { margin: 32px var(--gut) 0; padding-top: 16px; border-top: 1px solid var(--border); }
.src h2 { font-size: 13px; font-weight: 600; }
.src p { margin: 4px 0 12px; font-size: 13px; color: var(--ink-secondary); }
.src ul { display: flex; flex-direction: column; }
.src li { font-size: 13px; display: flex; align-items: center; gap: 12px; min-height: 44px; border-bottom: 1px solid var(--surface); }
.src li:last-child { border-bottom: 0; }
.src li span { flex: 0 0 52px; color: var(--ink-secondary); white-space: nowrap; }
.src li a { flex: 1; min-height: 44px; display: inline-flex; align-items: center; }
.foot { margin: 24px var(--gut) 56px; font-size: 13px; color: var(--ink-secondary); line-height: 1.5; }

/* ── 기록: 타일 홈 ── */
.memo-intro { margin: 20px var(--gut) 0; font-size: 13px; color: var(--ink-secondary); }
.tiles {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  margin: 16px var(--gut) 0;
}
.tile {
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 16px; min-height: 112px; padding: 16px;
  border-radius: var(--r-md); background: var(--bg);
  box-shadow: var(--shadow-card); transition: transform 150ms var(--ease-standard);
}
.tile:active { transform: scale(0.98); }
.tile__h { display: flex; justify-content: space-between; align-items: baseline; }
.tile__name { font-size: 15px; font-weight: 600; }
.tile__n { font-size: 13px; font-weight: 500; color: var(--ink-secondary); }
.tile--on .tile__n { color: var(--brand); }
.tile__p { font-size: 13px; color: var(--ink-secondary); line-height: 1.4; }
.tile__p b { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile:nth-child(odd):last-child { grid-column: 1 / -1; }

/* ── 기록: 그룹 편집 ── */
.mg-ed { margin: 8px var(--gut) 0; }
.mg-ed__back { font-size: 13px; font-weight: 500; color: var(--brand); min-height: 44px; min-width: 44px; padding-right: 8px; display: inline-flex; align-items: center; gap: 4px; }
.mg-ed__back svg { width: 16px; height: 16px; }
.mg-ed h2 { margin-top: 4px; font-size: 22px; letter-spacing: -0.02em; }
.mg__desc { margin: 4px 0 16px; font-size: 13px; color: var(--ink-secondary); }
.mg__list { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.mf {
  display: grid; grid-template-columns: 1fr;
  min-height: 56px; padding: 12px 16px;
  background: var(--bg); border-radius: var(--r-sm);
  box-shadow: var(--shadow-card);
}
.mf--row { grid-template-columns: 1fr auto; align-items: center; gap: 12px; }
.mf__l { font-size: 13px; font-weight: 500; color: var(--ink-secondary); margin-bottom: 4px; }
.mf__l:empty { display: none; }
.mf input, .mf select, .mf textarea {
  width: 100%; border: 0; background: transparent;
  font-size: 17px; font-weight: 400; color: var(--ink); border-radius: 4px;
  min-height: 44px; padding: 8px 0;
}
.mf textarea { resize: vertical; line-height: 1.5; min-height: 52px; }
.mf input:focus, .mf select:focus, .mf textarea:focus { outline: none; box-shadow: inset 0 -2px 0 var(--brand); }
.mf input::placeholder, .mf textarea::placeholder { color: var(--ink-secondary); }
.mf select { appearance: none; -webkit-appearance: none; }
.mf--filled .mf__l { color: var(--ink); }
.mf__tel {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 16px;
  border-radius: var(--r-sm); background: var(--brand-wash); color: var(--brand);
  font-size: 13px; font-weight: 500;
}
.mf__fixed { font-size: 17px; font-weight: 500; }
.mf--saved .mf__l::after { content: " · 저장됨"; color: var(--brand); }

/* ── 로그인 시트 ── */
.sheet {
  position: fixed; inset: 0; z-index: 20;
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet__scrim { position: absolute; inset: 0; background: var(--scrim); }
@media (prefers-reduced-motion: no-preference) {
  .sheet__scrim { animation: fade 200ms both; }
  .sheet__panel { animation: sheet-up 300ms var(--ease-decelerate) both; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet__panel {
  position: relative; width: 100%; max-width: 430px;
  padding: 12px 20px calc(24px + env(safe-area-inset-bottom));
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--bg); display: flex; flex-direction: column; gap: 12px;
}
.sheet__handle {
  width: 36px; height: 4px; border-radius: var(--r-full);
  background: var(--border); margin: 0 auto 8px;
}
.sheet__panel h2 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.sheet__panel > p { font-size: 13px; color: var(--ink-secondary); line-height: 1.5; margin-bottom: 8px; }
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 52px; border-radius: var(--r-sm);
  font-size: 15px; font-weight: 600; text-align: center;
}
.btn:active { transform: scale(0.985); }
.btn--kakao { background: var(--kakao); color: var(--on-kakao); }
.btn__ico {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 6px;
  background: var(--on-kakao); color: var(--kakao);
  font-size: 13px; font-weight: 600;
}
.btn--test { background: var(--surface); color: var(--ink); }
.sheet__note { font-size: 13px; color: var(--ink-secondary); }
.sheet__later { align-self: center; min-height: 44px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; color: var(--ink-secondary); }
.sheet__err { font-size: 13px; color: var(--red); font-weight: 500; }
.sheet__err:empty { display: none; }

/* ── 온보딩 (Route Spine) ── */
.onb-nav { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 var(--gut); }
.onb-brand { font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--ink-secondary); }
.onb-back {
  width: 44px; height: 44px; margin-left: -12px; border-radius: var(--r-full);
  display: grid; place-items: center; color: var(--ink);
}
.onb-back svg { width: 20px; height: 20px; }
.onb-back:active { background: var(--surface); }
.onb-prog { font-size: 13px; font-weight: 500; color: var(--ink-secondary); }
.onb-flow { display: flex; flex-direction: column; padding: 4px var(--gut) 40px; min-height: calc(100vh - 56px); }
.onb-row {
  position: relative; display: flex; align-items: center; gap: 8px;
  width: 100%; padding-left: 48px; min-height: 48px;
}
.onb-row::before {
  content: ""; position: absolute; left: 20px; top: 0; bottom: 0;
  width: 4px; transform: translateX(-50%); background: var(--brand);
}
.onb-row:first-child::before { top: 50%; }
.onb-row--current:first-child::before { display: none; }
.onb-row--current::before { bottom: auto; height: 20px; }
.onb-row--todo::before { width: 0; background: none; border-left: 2px dashed var(--border); }
.onb-row--todo:last-child::before { bottom: 50%; }
.onb-row--end::before { height: 0; }
.onb-dot {
  position: absolute; left: 20px; top: 50%; transform: translate(-50%, -50%);
  border-radius: var(--r-full); display: inline-flex; align-items: center;
  justify-content: center; z-index: 1;
}
.onb-dot--done {
  width: 24px; height: 24px; background: var(--brand); color: var(--on-brand);
}
.onb-dot--done svg { width: 16px; height: 16px; }
.onb-dot--current {
  top: 20px; width: 32px; height: 32px;
  background: var(--bg); border: 3px solid var(--brand);
}
.onb-dot--current span { width: 12px; height: 12px; border-radius: var(--r-full); background: var(--brand); }
.onb-dot--todo { width: 12px; height: 12px; background: var(--bg); border: 2px solid var(--border); }
.onb-dot--terminal {
  top: 22px; width: 40px; height: 40px;
  background: var(--brand); color: var(--on-brand);
  font-size: 15px; font-weight: 600;
}
.onb-row__value { font-size: 15px; font-weight: 600; }
.onb-row__sub { font-size: 13px; font-weight: 400; color: var(--ink-secondary); }
.onb-row--current {
  align-items: flex-start; padding-top: 2px; padding-bottom: 24px; flex: 1 0 auto;
}
.onb-row__content { flex: 1; min-width: 0; }
.onb-step { display: flex; flex-direction: column; gap: 16px; }
@media (prefers-reduced-motion: no-preference) {
  .onb-step { animation: rise 300ms var(--ease-decelerate) both; }
}
.onb-q {
  margin-top: 4px; font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.4; text-wrap: balance;
}
.onb-hint { margin-top: -8px; font-size: 13px; color: var(--ink-secondary); }
.onb-choices { display: flex; flex-direction: column; gap: 8px; }
.onb-choice {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 56px; padding: 12px 16px;
  border-radius: var(--r-sm); background: var(--surface);
  transition: background 120ms, transform 80ms;
}
.onb-choice:active { background: var(--border); transform: scale(0.985); }
.onb-choice--selected { background: var(--brand-wash); }
.onb-choice--selected .onb-choice__name { color: var(--brand); }
.onb-choice__name { display: block; font-size: 15px; font-weight: 600; }
.onb-choice__sub { display: block; font-size: 13px; color: var(--ink-secondary); margin-top: 2px; }
.onb-choice__check { color: var(--brand); }
.onb-choice__check svg { width: 20px; height: 20px; }
.onb-input {
  display: flex; align-items: center; width: 100%; height: 56px;
  padding: 0 16px; border: 0; border-radius: var(--r-sm);
  background: var(--surface); font-size: 17px; font-weight: 500;
}
.onb-input--unit input {
  flex: 1; min-width: 0; border: 0; background: transparent;
  font-size: 20px; font-weight: 500; padding: 0;
}
.onb-input--unit input:focus { outline: none; }
.onb-input--unit span { font-size: 15px; font-weight: 500; color: var(--ink-secondary); }
.onb-input:focus-within { outline: 2px solid var(--brand); background: var(--bg); }
.onb-cta {
  width: 100%; height: 52px; border-radius: var(--r-sm);
  background: var(--brand); color: var(--on-brand);
  font-size: 15px; font-weight: 600; text-align: center;
  transition: background 120ms;
}
.onb-cta:active { background: var(--brand-strong); transform: scale(0.985); }
.onb-cta:disabled { background: var(--surface); color: var(--ink-secondary); }
.onb-skip {
  align-self: center; font-size: 13px; font-weight: 500; color: var(--ink-secondary);
  min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px;
}
.onb-result { display: flex; flex-direction: column; }
.onb-result div {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--border);
}
.onb-result div:first-child { border-top: 0; }
.onb-result dt { font-size: 13px; color: var(--ink-secondary); }
.onb-result dd { font-size: 15px; font-weight: 600; }
.onb-result div:first-child dd { color: var(--gold); font-size: 20px; }

/* ── 축소 모션 ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ── 연락처 디렉터리 ── */
.dir { margin-top: 24px; }
.dir__h { font-size: 13px; font-weight: 500; color: var(--ink-secondary); letter-spacing: 0.02em; margin: 0 0 4px; }
.dir__list { display: flex; flex-direction: column; }
.dir__row { display: grid; grid-template-columns: 1fr auto 44px; align-items: center; gap: 12px; min-height: 56px; padding: 8px 0; border-bottom: 1px solid var(--border); color: var(--ink); }
.dir__row:last-child { border-bottom: 0; }
.dir__row:active { background: var(--surface); }
.dir__txt { display: flex; flex-direction: column; min-width: 0; }
.dir__name { font-size: 15px; font-weight: 500; line-height: 22px; }
.dir__sub { font-size: 13px; color: var(--ink-secondary); line-height: 18px; }
.dir__num { font-size: 15px; font-weight: 400; color: var(--ink-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dir__ico { width: 44px; height: 44px; display: grid; place-items: center; color: var(--brand); border-radius: var(--r-full); }
.dir__ico svg { width: 20px; height: 20px; }
.dir__ico--off { color: var(--border); }
.dir__row--edit { grid-template-columns: 96px 1fr 44px; }
.dir__row--edit input { min-height: 44px; border: 0; background: transparent; font-size: 17px; color: var(--ink); padding: 0; width: 100%; }
.dir__row--edit input::placeholder { color: var(--border); }
.dir__row--edit input:focus { outline: none; box-shadow: inset 0 -2px 0 var(--brand); }
.dir__row--edit .dir__name { color: var(--ink-secondary); font-weight: 400; }

/* ── 라운드 탭 압축: 세그먼트·요약·접힘 ── */
.hdr__user .sync { margin-right: 4px; }
.hero__rounds { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; color: var(--ink-secondary); }
.hero__rounds svg { width: 16px; height: 16px; margin-left: auto; }
.segs { display: flex; gap: 3px; flex: 0 0 auto; }
.seg { display: block; width: 14px; height: 4px; border-radius: var(--r-full); background: var(--border); }
.seg--done { background: var(--green); }
.seg--cur { background: var(--brand); opacity: 0.45; }
.seg--sel { outline: 2px solid var(--brand-wash); outline-offset: 1px; }
.hero__roundtxt { font-size: 13px; font-weight: 500; color: var(--ink); }
.hero__roundtxt span { color: var(--ink-secondary); font-weight: 400; }
.hero__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.hero__count { font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero__count span { color: var(--ink-secondary); font-weight: 400; }
.hero__title { margin-top: 0; }
.tasklist { margin-top: 20px; }
.ledger { margin-top: 28px; }
.ledger__sum { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px; border-radius: 16px; background: var(--bg); box-shadow: var(--shadow-card); }
.ledger__sumtxt { display: flex; flex-direction: column; gap: 2px; }
.ledger__label { font-size: 13px; color: var(--ink-secondary); }
.ledger__sum .ledger__total { font-size: 22px; line-height: 1.2; font-weight: 600; color: var(--gold); font-variant-numeric: tabular-nums; }
.ledger__rest { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink-secondary); white-space: nowrap; }
.ledger__rest svg { width: 16px; height: 16px; transition: transform 200ms ease; }
.ledger__sum[aria-expanded="true"] .ledger__rest svg { transform: rotate(180deg); }
.ledger__list { margin-top: 8px; }
.ledger__row { gap: 12px; }
.ledger__name { flex: 1; min-width: 0; }
.src { margin-top: 24px; border-top: 0; padding-top: 0; }
.src__toggle { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-size: 13px; color: var(--ink-secondary); }
.src__toggle svg { width: 16px; height: 16px; }
.src__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.sheet__panel--tall { max-height: 85vh; overflow-y: auto; }
.sheet__panel--tall .rail { margin-top: 8px; }

/* ── 토스 문법: 가운데 pill·핵심어 강조 제목·밑줄형 입력·가운데 접힘 토글 ── */
.hero { text-align: center; padding: 28px 20px 24px; }
.pill { display: inline-flex; align-items: center; min-height: 32px; padding: 0 14px; border-radius: var(--r-full); background: var(--brand-wash); color: var(--brand); font-size: 15px; font-weight: 500; }
.pill span { color: var(--brand); opacity: 0.7; font-weight: 400; }
.hero__title { margin-top: 16px; font-size: 26px; line-height: 35px; font-weight: 700; letter-spacing: -0.03em; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--brand); }
.hero__desc { margin: 10px auto 0; max-width: 300px; font-size: 15px; line-height: 22px; color: var(--ink-secondary); }
.hero__meta { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.hero__count { font-size: 13px; }
.hero__action { margin-top: 24px; height: 56px; border-radius: 16px; font-size: 17px; }
.hero__action-sub { margin-top: 10px; }
.hero__clear-row { justify-content: center; }
.hero__stamp { position: static; display: inline-grid; margin: 16px auto 0; }
.stat { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0 0; text-align: center; }
.stat__label { font-size: 15px; color: var(--ink-secondary); }
.stat__value { font-size: 30px; line-height: 40px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.stat__sub { font-size: 13px; color: var(--ink-secondary); }
.fold { display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 48px; margin-top: 4px; font-size: 15px; font-weight: 500; color: var(--ink-secondary); }
.fold svg { width: 16px; height: 16px; transition: transform 200ms ease; }
.fold[aria-expanded="true"] svg { transform: rotate(180deg); }
.ledger__list { margin-top: 4px; }
.src { text-align: left; }
/* 밑줄형 입력 */
.mg__list { gap: 0; }
.mf { padding: 20px 0 12px; background: transparent; box-shadow: none; border-radius: 0; border-bottom: 1px solid var(--border); }
.mf--filled { box-shadow: none; }
.mf--row { gap: 12px; }
.mf__l { font-size: 15px; color: var(--ink-secondary); margin-bottom: 6px; }
.mf input, .mf select, .mf textarea { font-size: 22px; font-weight: 500; line-height: 31px; min-height: 44px; padding: 0; }
.mf input:focus, .mf select:focus, .mf textarea:focus { box-shadow: none; }
.mf:focus-within { border-bottom-color: var(--brand); }
.mf input::placeholder, .mf textarea::placeholder { color: var(--border); font-weight: 400; }
.mf__fixed { font-size: 22px; font-weight: 500; }
.mf textarea { font-size: 17px; line-height: 25px; }
.mg-ed h2 { margin-top: 8px; font-size: 26px; line-height: 35px; }

/* ── 스플래시 ── */
.splash { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; padding: 24px var(--gut) calc(24px + env(safe-area-inset-bottom)); background: var(--bg); }
.splash__body { padding-top: 15vh; }
.splash__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand); }
.splash__mark i { width: 20px; height: 20px; border-radius: var(--r-full); border: 4px solid var(--on-brand); }
.splash__brand { margin-top: 20px; font-size: 15px; font-weight: 500; color: var(--ink-secondary); letter-spacing: 0.04em; }
.splash__title { margin-top: 8px; font-size: 30px; line-height: 40px; font-weight: 600; letter-spacing: -0.03em; }
.splash__title em { font-style: normal; color: var(--brand); }
.splash__sub { margin-top: 16px; font-size: 15px; line-height: 22px; color: var(--ink-secondary); max-width: 320px; }
.splash__actions { display: flex; flex-direction: column; gap: 10px; }
.btn--primary { background: var(--brand); color: var(--on-brand); height: 56px; border-radius: 16px; font-size: 17px; }
.btn--primary:active { background: var(--brand-strong); }
.btn--ghost { background: transparent; color: var(--ink-secondary); height: 48px; font-size: 15px; font-weight: 500; }
.splash__note { min-height: 20px; text-align: center; font-size: 13px; color: var(--ink-secondary); }
/* ── 설정 ── */
#view-more { padding: 8px var(--gut) 48px; }
.set { padding: 24px 0 8px; border-bottom: 1px solid var(--border); }
.set:last-of-type { border-bottom: 0; }
.set__h { font-size: 13px; font-weight: 500; color: var(--ink-secondary); margin-bottom: 8px; letter-spacing: 0.02em; }
.set__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; min-height: 44px; padding: 10px 0; }
.set__k { font-size: 15px; color: var(--ink-secondary); }
.set__v { font-size: 15px; font-weight: 500; color: var(--ink); text-align: right; }
.set__v small { font-size: 13px; font-weight: 400; color: var(--ink-secondary); margin-left: 4px; }
.set__hint { font-size: 15px; line-height: 22px; color: var(--ink-secondary); padding: 4px 0 8px; }
.set__hint--danger { color: var(--red); }
.set__btn { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 48px; margin: 8px 0 12px; border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 500; color: var(--ink); }
.set__btn:active { background: var(--border); }
.set__btn--primary { background: var(--brand); color: var(--on-brand); }
.set__btn--danger { background: var(--red-wash, var(--surface)); color: var(--red); }
.set__twin { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.set__twin .set__btn { margin: 8px 0 12px; }
.set__ver { margin-top: 24px; text-align: center; font-size: 13px; color: var(--ink-secondary); }
#view-more .src { margin: 0; padding: 0; border: 0; }
/* ── 히어로 알림·완료 ── */
.hero__alert { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-top: 8px; font-size: 13px; font-weight: 500; color: var(--red); }
.hero__alert svg { width: 14px; height: 14px; }
.hero__final { margin-top: 12px; font-size: 15px; line-height: 22px; color: var(--ink-secondary); }

/* ── 라운드 이전/다음 ── */
.hero__nav { display: flex; align-items: center; justify-content: center; gap: 8px; }
.hero__arrow { width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--r-full); color: var(--ink-secondary); }
.hero__arrow svg { width: 20px; height: 20px; }
.hero__arrow:active { background: var(--surface); }
.hero__arrow:disabled { color: var(--border); cursor: default; }

/* ── 이름 한자 선택기 ── */
.mf--hj { border-bottom: 0; }
.hj__slots { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.hj__slot { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 8px; border-radius: 12px; background: var(--surface); }
.hj__slot--on { box-shadow: inset 0 0 0 2px var(--brand); background: var(--bg); }
.hj__l { font-size: 13px; color: var(--ink-secondary); }
.hj__in { width: 100%; border: 0; background: transparent; font-size: 26px; line-height: 35px; font-weight: 600; padding: 0; text-align: center; min-height: 44px; }
.hj__in:focus { outline: none; }
.hj__picked { display: flex; flex-direction: column; align-items: center; min-height: 40px; font-size: 22px; line-height: 26px; font-weight: 500; color: var(--brand); }
.hj__picked small { font-size: 12px; line-height: 14px; color: var(--ink-secondary); font-weight: 400; }
.hj__picked--empty { font-size: 13px; color: var(--ink-secondary); justify-content: center; }
.hj__result { display: flex; align-items: baseline; gap: 10px; min-height: 44px; margin-top: 12px; padding: 8px 4px; border-bottom: 1px solid var(--border); }
.hj__result b { font-size: 26px; line-height: 35px; font-weight: 600; letter-spacing: 0.08em; }
.hj__result span { font-size: 13px; color: var(--ink-secondary); }
.hj__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; max-height: 336px; overflow-y: auto; padding-bottom: 4px; }
.hj__c { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 6px 4px; border-radius: 12px; background: var(--surface); }
.hj__c b { font-size: 24px; line-height: 30px; font-weight: 500; }
.hj__c span { font-size: 11px; line-height: 14px; color: var(--ink-secondary); text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hj__c:active { background: var(--border); }
.hj__c--on { background: var(--brand-wash); box-shadow: inset 0 0 0 2px var(--brand); }
.hj__c--on b { color: var(--brand); }
.hj__hint { margin-top: 12px; font-size: 13px; color: var(--ink-secondary); }
.hj__src { margin-top: 12px; font-size: 12px; line-height: 18px; color: var(--ink-secondary); }

/* ── 라운드 완료 = 초록 ── */
.hero--clear { background: var(--green-wash); }
.hero--clear .pill { background: var(--bg); color: var(--green-strong); }
.hero--clear .pill span { color: var(--green-strong); }
.hero--clear .hero__title em { color: var(--green-strong); }
.hero--clear .hero__count { color: var(--green-strong); }
.hero--clear .hero__next { background: var(--green); color: var(--on-brand); }
/* ── 탭 스와이프 전환 ── */
@media (prefers-reduced-motion: no-preference) {
  .view--in-left { animation: view-in-left 260ms var(--ease-decelerate) both; }
  .view--in-right { animation: view-in-right 260ms var(--ease-decelerate) both; }
}
@keyframes view-in-left { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes view-in-right { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
