/* =========================================================
   화면별 스타일 — 토큰과 컴포넌트로 안 되는 것만 여기에.
   화면 이름 접두사: cal- / cam- / news- / dream- / mind- / gm- / com-
   ========================================================= */

/* ---------- 학사일정 ---------- */
.cal-school { display: flex; align-items: center; gap: var(--space-3); }
.cal-school__name { font-weight: 700; font-size: var(--fs-lg); color: var(--color-primary-text); }
.cal-results { margin-top: var(--space-2); max-height: 320px; overflow-y: auto; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); margin-bottom: var(--space-3); }
.cal-head__title { font-size: var(--fs-xl); font-weight: 700; color: var(--color-text-strong); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cal-week, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-week { margin-bottom: var(--space-1); text-align: center; font-size: var(--fs-xs); color: var(--color-text-muted); }
.cal-week .is-sun { color: var(--color-sun); }
.cal-week .is-sat { color: var(--color-sat); }
.cal-day {
  position: relative; display: flex; flex-direction: column; align-items: center;
  min-height: 60px; padding: 6px 2px 4px; border-radius: 14px;
  background: var(--color-surface-sunken); font-size: var(--fs-sm); color: var(--color-text);
  transition: background-color var(--dur-fast), transform var(--dur-fast);
}
.cal-day--blank { background: transparent; }
button.cal-day:hover { background: var(--blue-100); }
button.cal-day:active { transform: scale(.95); }
.cal-day.is-sun .cal-day__num, .cal-day.is-holiday .cal-day__num { color: var(--color-sun); }
.cal-day.is-sat .cal-day__num { color: var(--color-sat); }
.cal-day.is-today { box-shadow: inset 0 0 0 2px var(--blue-500); }
.cal-day.is-today .cal-day__num {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue-700); color: #fff !important;
}
.cal-day.has-event { background: var(--blue-50); }
.cal-day__ev {
  margin-top: 3px; width: 100%; padding: 0 2px;
  font-size: 11px; line-height: 1.25; color: var(--blue-700);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  text-align: center;
}
.cal-day__more { font-size: 10px; color: var(--color-text-muted); }
.cal-legend { display: flex; gap: var(--space-3); margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--color-text-muted); }
.cal-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: -1px; background: var(--blue-50); }
.cal-legend .is-holiday::before { background: none; box-shadow: inset 0 0 0 2px var(--color-sun); }
.cal-legend .is-today::before { background: var(--blue-700); border-radius: 50%; }
.cal-date-badge {
  display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0;
  width: 48px; height: 48px; border-radius: 14px; background: var(--color-surface-soft); color: var(--color-primary-text);
  font-weight: 700; line-height: 1;
}
.cal-date-badge b { font-weight: 800; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.cal-date-badge small { font-family: var(--font-body); font-size: 11px; margin-top: 2px; color: var(--color-text-muted); }
.cal-date-badge.is-past { opacity: .5; }

/* ---------- 스티커 카메라 ---------- */
.cam-stage {
  position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--grey-900); box-shadow: var(--shadow-md);
  touch-action: none; user-select: none;
}
.cam-stage video, .cam-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.cam-stage video { object-fit: cover; }
.cam-stage video.is-mirror { transform: scaleX(-1); }
.cam-stage__msg {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-3); padding: var(--space-6); text-align: center; color: #fff;
}
.cam-stage__msg > .i { --i-size: 48px; color: #fff; opacity: .9; }
.cam-flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash.is-on { animation: flash .35s ease-out; }
@keyframes flash { 0% { opacity: .9; } 100% { opacity: 0; } }
.cam-tools { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }
.cam-shutter {
  --i-size: 32px;
  width: 76px; height: 76px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff;
  background: var(--glass-tinted-bg);
  -webkit-backdrop-filter: var(--glass-filter); backdrop-filter: var(--glass-filter);
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 0 0 5px rgba(255, 255, 255, .85), inset 0 1px 0 rgba(255, 255, 255, .35), var(--shadow-blue);
  transition: transform var(--dur-fast);
}
.cam-shutter:active:not(:disabled) { transform: scale(.92); }
.cam-shutter:disabled { opacity: .4; cursor: not-allowed; }
.cam-stickers { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2); }
.cam-sticker {
  aspect-ratio: 1; border-radius: 14px; background: var(--color-surface-sunken);
  font-size: 26px; line-height: 1; display: grid; place-items: center;
  border: 2px solid transparent; transition: transform var(--dur-fast) var(--ease-bounce), border-color var(--dur-fast);
}
.cam-sticker[aria-pressed="true"] { border-color: var(--blue-500); background: var(--blue-50); transform: scale(1.06); }
.cam-frames .c-chip { gap: var(--space-2); }
.cam-swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex-shrink: 0; }
.cam-swatch--none { box-shadow: inset 0 0 0 1.5px var(--grey-500); }
.cam-swatch--white { background: #fff; box-shadow: inset 0 0 0 1.5px var(--grey-500); }
.cam-album { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.cam-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; background: var(--blue-50); }
.cam-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cam-viewer img { width: 100%; border-radius: var(--card-radius); }

/* ---------- 또래 뉴스 ---------- */
.news-vs { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: var(--space-2); }
.news-vs__opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-1);
  min-height: 112px; padding: var(--space-4) var(--space-3); border-radius: var(--card-radius);
  background: rgba(255, 255, 255, .8); border: 2px solid transparent; text-align: center;
  font-size: var(--fs-md); line-height: 1.4;
  transition: transform var(--dur-base) var(--ease-bounce), border-color var(--dur-fast), background-color var(--dur-fast);
}
.news-vs__opt:active { transform: scale(.97); }
.news-vs__opt[aria-pressed="true"] { border-color: var(--blue-600); background: #fff; box-shadow: var(--shadow-md); }
.news-vs__pct { font-size: var(--fs-xs); color: var(--color-accent); min-height: 1em; }
.news-vs__mid { align-self: center; font-weight: 700; font-size: var(--fs-lg); color: var(--blue-500); }
.news-lucky { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); text-align: center; }
.news-lucky__label { font-size: var(--fs-xs); color: var(--color-text-muted); }
.news-lucky__dot { width: 44px; height: 44px; border-radius: 50%; box-shadow: var(--shadow-glow); background: var(--blue-100); }
.news-lucky__value { font-weight: 700; font-size: var(--fs-lg); color: var(--color-text-strong); }
.news-lucky__num { font-weight: 700; font-size: 44px; line-height: 1.1; color: var(--color-primary-text); }
.news-cheer { font-family: var(--font-air); font-size: var(--fs-xl); line-height: 1.5; color: var(--grey-800); }

/* ---------- 드림스페이스 ---------- */
.dream-chat { height: 88dvh; }
.dream-chat .c-sheet__inner { height: 100%; }
.dream-chat__body { flex: 1; min-height: 0; overflow-y: auto; background: var(--color-surface-sunken); padding-top: var(--space-4); }
.dream-chat__form { align-items: flex-end; }
.dream-chat__form .c-textarea { min-height: 48px; max-height: 140px; resize: none; border-radius: 24px; padding-top: 12px; }
.dream-chat__form .c-btn { flex: 0 0 auto; width: 48px; min-height: 48px; }
.dream-chat__note { padding: 0 var(--space-5) calc(var(--space-3) + var(--safe-bottom)); font-size: var(--fs-xs); color: var(--color-text-muted); text-align: center; }
.dream-usage { --i-size: 18px; display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-primary-text); }
.dream-ai-rules { display: flex; flex-direction: column; gap: var(--space-3); }
.dream-ai-rules li { --i-size: 20px; display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--fs-sm); line-height: 1.55; color: var(--color-text); }
.dream-ai-rules .i { flex-shrink: 0; margin-top: 1px; color: var(--color-primary-text); }
.dream-chat__loading { align-self: center; font-size: var(--fs-xs); color: var(--color-text-muted); }
.dream-agent-count { margin-top: var(--space-1); }
button.c-feature { text-align: left; width: 100%; }
.dream-preview summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--color-accent); font-size: var(--fs-sm); }
.dream-preview pre {
  white-space: pre-wrap; font-family: var(--font-body); font-size: var(--fs-sm); line-height: 1.7;
  background: var(--color-surface-sunken); padding: var(--space-4); border-radius: var(--radius-md);
}

/* ---------- 마음 · 만보기 ---------- */
.mind-stats { text-align: center; }
.mind-stats > div { padding: var(--space-3) var(--space-1); border-radius: var(--radius-md); background: var(--color-surface-sunken); }
.mind-stats b { display: block; font-weight: 700; font-size: var(--fs-xl); color: var(--color-primary-text); }
.mind-stats span { font-size: var(--fs-xs); color: var(--color-text-muted); }
.mind-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: var(--space-2); align-items: end; }
.mind-bar { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.mind-bar__val { font-size: 11px; color: var(--color-text-muted); min-height: 14px; }
.mind-bar__track { position: relative; width: 100%; max-width: 28px; height: 110px; border-radius: 10px; background: var(--color-surface-soft); overflow: hidden; display: flex; align-items: flex-end; }
.mind-bar__track--dual { gap: 2px; max-width: 32px; background: transparent; }
.mind-bar__fill { width: 100%; border-radius: 10px; background: var(--gradient-primary); transition: height var(--dur-slow) var(--ease-out); }
.mind-bar__track--dual .mind-bar__fill { flex: 1; min-height: 3px; }
.mind-bar__fill.is-t { background: var(--petal-mind); }
.mind-bar__fill.is-e { background: var(--blue-300); }
.mind-bar__day { font-size: var(--fs-xs); color: var(--color-text-muted); }
.mind-bar.is-today .mind-bar__day { color: var(--color-primary-text); }
.mind-legend .is-t::before { background: var(--petal-mind); }
.mind-legend .is-e::before { background: var(--blue-300); }
.mind-moods { border: 0; }
.mind-moods legend { margin-bottom: var(--space-2); }
.mind-mood { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; min-width: 52px; }
.mind-mood input { position: absolute; opacity: 0; pointer-events: none; }
.mind-mood__emoji {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  font-size: 28px; background: var(--color-surface-sunken); border: 2px solid transparent;
  transition: transform var(--dur-base) var(--ease-bounce), border-color var(--dur-fast);
}
.mind-mood__text { font-size: var(--fs-xs); color: var(--color-text-muted); }
.mind-mood input:checked + .mind-mood__emoji { border-color: var(--blue-500); background: var(--blue-50); transform: scale(1.1); }
.mind-mood input:focus-visible + .mind-mood__emoji { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.mind-result__emoji { font-size: 40px; line-height: 1; }
.mind-tips { display: flex; flex-direction: column; gap: var(--space-2); }
.mind-tips li { position: relative; padding: var(--space-3) var(--space-4) var(--space-3) 36px; border-radius: var(--radius-md); background: rgba(255,255,255,.75); font-size: var(--fs-sm); }
.mind-tips li::before { content: "✦"; position: absolute; left: 14px; color: var(--blue-500); }

/* ---------- 아름드리 글마루 ---------- */
.gm-today { display: flex; flex-direction: column; gap: var(--space-3); }
.gm-today__date { font-size: var(--fs-sm); color: var(--color-text-muted); }
.gm-today__quote { padding-left: var(--space-6); padding-right: 0; }
.gm-prompt { font-weight: 700; font-size: var(--fs-lg); line-height: 1.5; color: var(--grey-800); }
.gm-paper {
  min-height: 220px; font-family: var(--font-body); font-size: var(--fs-md); line-height: 32px;
  background-color: #fffdfb;
  background-image: repeating-linear-gradient(transparent, transparent 31px, var(--blue-100) 31px, var(--blue-100) 32px);
  background-attachment: local; padding-top: 6px;
}
.gm-air { font-family: var(--font-air); }
.gm-sheet__prompt { font-weight: 700; color: var(--color-accent); font-size: var(--fs-sm); }
.gm-sheet__text { white-space: pre-wrap; font-size: var(--fs-md); line-height: 1.8; }

/* ---------- 커뮤니티 ---------- */
.com-post { display: flex; flex-direction: column; align-items: stretch; gap: var(--space-2); width: 100%; text-align: left; transition: transform var(--dur-fast), box-shadow var(--dur-fast); }
.com-post:hover { box-shadow: var(--shadow-md); }
.com-post:active { transform: scale(.99); }
.com-post__title { font-weight: 700; font-size: var(--fs-lg); line-height: 1.35; color: var(--color-text); }
.com-post__body { font-size: var(--fs-sm); color: var(--color-text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.com-post__foot { display: flex; justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--color-text-muted); }
.com-post__foot .l-row { gap: var(--space-3); }
.com-post__foot .is-on { color: var(--color-primary-text); }
.com-body { white-space: pre-wrap; line-height: 1.75; }
.com-like[aria-pressed="true"] { background: var(--blue-50); color: var(--color-primary-text); }
.com-comments { display: flex; flex-direction: column; gap: var(--space-3); }
.com-comment { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-surface-sunken); }
.com-comment__nick { font-size: var(--fs-sm); color: var(--color-primary-text); }
.com-comment__body { margin-top: var(--space-1); font-size: var(--fs-sm); white-space: pre-wrap; }
.com-reason, .c-reason { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: 0 var(--space-4); border-radius: var(--radius-md); background: var(--color-surface-sunken); cursor: pointer; }
.com-reason input, .c-reason input { accent-color: var(--blue-600); width: 18px; height: 18px; flex-shrink: 0; }
.c-reasons { border: 0; }
.c-reasons > .c-field__label { margin-bottom: var(--space-2); }
#post-sheet .c-sheet__body { flex: 1; min-height: 0; }

/* ---------- 시작하기 (온보딩) ---------- */
body[data-page="start"] .l-page { padding-bottom: calc(var(--space-8) + var(--safe-bottom)); }
.st-wrap { min-height: calc(100dvh - var(--space-10)); display: flex; flex-direction: column; }
.st-top { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; margin-bottom: var(--space-6); }
.st-top__count { font-size: var(--fs-xs); color: var(--color-text-muted); text-align: right; }
.st-step { display: flex; flex-direction: column; gap: var(--space-4); flex: 1; animation: rise var(--dur-slow) var(--ease-out) both; }
.st-hello { align-items: center; justify-content: center; text-align: center; padding-top: var(--space-6); }
.st-hello__flower { width: 168px; height: 168px; }
.st-hello__title { font-weight: 700; font-size: 44px; line-height: 1.05; letter-spacing: -1px; color: var(--color-text-strong); margin-top: var(--space-2); }
.st-hello__tagline { font-family: var(--font-air); font-size: var(--fs-lg); color: var(--color-text-muted); }
.st-values { width: 100%; display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); text-align: left; }
.st-values li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--card-radius); background: rgba(255, 255, 255, .78); box-shadow: var(--shadow-sm); }
.st-values b { display: block; font-weight: 700; color: var(--color-text-strong); }
.st-values small { font-size: var(--fs-xs); color: var(--color-text-muted); }
.st-actions { margin-top: auto; padding-top: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); width: 100%; }
.st-q { font-weight: 700; font-size: var(--fs-2xl); line-height: 1.3; color: var(--color-text-strong); }
.st-q:focus { outline: none; }
.st-sub { font-size: var(--fs-sm); color: var(--color-text-muted); margin-top: calc(-1 * var(--space-2)); }
.st-results { max-height: 46dvh; overflow-y: auto; }

/* ---------- 홈 ---------- */
.home-more { display: inline-flex; align-items: center; gap: 2px; min-height: 44px; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--color-accent); text-decoration: none; }
.home-bloom { display: flex; flex-direction: column; gap: var(--space-4); }
.home-bloom__top { display: flex; align-items: center; gap: var(--space-3); }
.home-bloom__hello { font-size: var(--fs-sm); color: var(--grey-800); }
.home-bloom__title { font-weight: 700; font-size: var(--fs-2xl); line-height: 1.2; color: var(--color-text-strong); }
.home-bloom__meta { margin-top: var(--space-1); font-size: var(--fs-xs); color: var(--color-text-muted); }
.home-bloom__flower { flex-shrink: 0; display: block; border-radius: 50%; transition: transform var(--dur-base) var(--ease-bounce); }
.home-bloom__flower:hover { transform: rotate(-8deg) scale(1.04); }
.home-petals { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.home-petal {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: var(--space-2) 1px;
  border-radius: var(--radius-md); background: rgba(255, 255, 255, .65); color: var(--color-text-muted);
  text-decoration: none; font-size: clamp(11px, 3.1vw, 12px); letter-spacing: -0.03em; text-align: center; line-height: 1.25; min-height: 72px;
  word-break: keep-all; overflow-wrap: anywhere;  /* '3,000걸음'이 '3,000걸/음'으로 쪼개지지 않게 */
  transition: background-color var(--dur-fast), transform var(--dur-fast);
}
.home-petal:active { transform: scale(.95); }
.home-petal__dot {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: #fff; color: var(--color-text-muted); font-size: 18px;
  box-shadow: inset 0 0 0 2px var(--petal);
}
.home-petal.is-on { background: #fff; color: var(--color-text); }
.home-petal.is-on .home-petal__dot { background: var(--petal); color: var(--grey-900); box-shadow: none; }
.home-noschool { display: flex; align-items: center; gap: var(--space-3); }
.home-tt { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.home-tt li { display: inline-flex; align-items: center; gap: var(--space-2); padding: 6px var(--space-3) 6px 6px; border-radius: var(--radius-pill); background: var(--color-surface-sunken); font-size: var(--fs-sm); }
.home-tt__no { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--blue-100); color: var(--grey-800); font-weight: 700; font-size: var(--fs-sm); }
.home-quote { font-family: var(--font-air); font-size: var(--fs-lg); line-height: 1.6; color: var(--grey-800); }

/* ---------- 웃음꽃 정원 ---------- */
.gd-today { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); padding-top: var(--space-6); text-align: center; }
.gd-today__title { font-weight: 700; font-size: var(--fs-xl); color: var(--color-text-strong); }
.gd-today__count { font-size: var(--fs-sm); color: var(--grey-800); }
.c-list__lead.gd-lead { background: #fff; color: var(--color-text-muted); box-shadow: inset 0 0 0 2px var(--petal); }
.c-list__lead.gd-lead.is-on { background: var(--petal); color: var(--grey-900); box-shadow: none; }
.gd-stats .c-card { padding: var(--space-4) var(--space-2); text-align: center; }
.gd-stats b { display: block; font-weight: 700; font-size: var(--fs-2xl); line-height: 1.1; color: var(--color-primary-text); }
.gd-stats span { font-size: var(--fs-xs); color: var(--color-text-muted); }
.gd-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.gd-day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; border-radius: 14px; background: var(--color-surface-sunken); }
.gd-day--blank { background: transparent; }
.gd-day.is-today { box-shadow: inset 0 0 0 2px var(--blue-500); }
.gd-day.is-future { opacity: .45; }
.gd-day__num { font-size: 11px; color: var(--color-text-muted); }
.gd-seed { width: 8px; height: 8px; margin: 13px 0; border-radius: 50%; background: var(--blue-100); }
.gd-why { display: flex; gap: var(--space-2); font-size: var(--fs-xs); color: var(--color-text-muted); }
.gd-why .i { color: var(--green-700); }

/* ---------- 우리 학교 ---------- */
.sc-me { display: flex; align-items: center; gap: var(--space-3); }
.sc-me__name { display: block; font-weight: 700; font-size: var(--fs-lg); color: var(--color-text-strong); }
.sc-week-title { font-size: var(--fs-lg); }
.sc-tt { display: grid; gap: 4px; }
.sc-tt__row { display: grid; grid-template-columns: 22px repeat(5, minmax(0, 1fr)); gap: 4px; }
.sc-tt__day { display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 10px; font-size: 11px; color: var(--color-text-muted); }
.sc-tt__day b { font-weight: 700; font-size: var(--fs-sm); color: var(--color-text); }
.sc-tt__day.is-today { background: var(--blue-700); color: rgba(255, 255, 255, .88); }
.sc-tt__day.is-today b { color: #fff; }
.sc-tt__period { display: grid; place-items: center; font-weight: 700; font-size: var(--fs-sm); color: var(--color-text-muted); }
.sc-tt__cell {
  display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 4px 3px;
  border-radius: 10px; background: var(--tone-bg, var(--color-surface-sunken)); color: var(--tone-ink, var(--color-text));
  font-size: 12px; line-height: 1.25; text-align: center; word-break: keep-all; overflow-wrap: anywhere;
}
.sc-tt__cell.is-empty { background: var(--color-surface-sunken); }
.sc-tt__cell.is-today { box-shadow: inset 0 0 0 2px var(--blue-500); }
.sc-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-2); }
.sc-day {
  display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 64px; padding: var(--space-2) 0;
  border-radius: var(--radius-md); border: 2px solid transparent; background: var(--color-surface-sunken);
  font-size: var(--fs-xs); color: var(--color-text-muted);
  transition: background-color var(--dur-fast), transform var(--dur-fast);
}
.sc-day:active { transform: scale(.95); }
.sc-day b { font-weight: 700; font-size: var(--fs-lg); line-height: 1.1; color: var(--color-text); }
.sc-day.is-today { border-color: var(--blue-200); }
.sc-day[aria-pressed="true"] { background: var(--blue-700); color: rgba(255, 255, 255, .88); }
.sc-day[aria-pressed="true"] b { color: #fff; }
.sc-day__dot { width: 5px; height: 5px; border-radius: 50%; }
.sc-day__dot.is-on { background: var(--petal-mind); }
.sc-allergy { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); }
.sc-allergy > .i { color: var(--color-danger); }

/* 톡톡네컷 */
.cam-mode-hint { margin: var(--space-2) 0 var(--space-4); font-size: var(--fs-xs); text-align: center; }
.cam-count {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none;
  font-weight: 700; font-size: 140px; line-height: 1; color: #fff;
  text-shadow: 0 6px 30px rgba(25, 31, 40, .45);
}
.cam-count.is-pop { animation: count-pop 800ms var(--ease-bounce); }
@keyframes count-pop { 0% { transform: scale(.4); opacity: 0; } 30% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); opacity: .9; } }
.cam-cuts {
  position: absolute; top: var(--space-3); left: 50%; transform: translateX(-50%);
  padding: 4px var(--space-3); border-radius: var(--radius-pill);
  background: rgba(25, 31, 40, .55); color: #fff; font-size: var(--fs-sm); pointer-events: none;
}
.cam-shutter.is-running { background: var(--grey-900); animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px #fff, 0 0 0 12px rgba(255, 163, 177, .7), var(--shadow-2); } }

/* ---------- 전체 ---------- */
.more-me { display: grid; gap: var(--space-2); }
.more-me > div { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px dashed var(--color-border); font-size: var(--fs-sm); }
.more-me > div:last-child { border-bottom: 0; }
.more-me dt { color: var(--color-text-muted); flex-shrink: 0; }
.more-me dd { text-align: right; }

/* ---------- 기록 지키기 (계정) ---------- */
.acc-perks { display: flex; flex-direction: column; gap: var(--space-2); }
.acc-perks li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--fs-sm); }
.acc-perks .i { --i-size: 20px; box-sizing: content-box; padding: 7px; border-radius: var(--r-sm); background: var(--color-primary-soft); color: var(--color-primary-text); }
.acc-who { display: flex; align-items: center; gap: var(--space-3); }
.acc-who__logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 1px #dadce0; flex-shrink: 0; }
.acc-records { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-surface-sunken); }
.acc-records b { display: block; font-size: var(--fs-sm); color: var(--color-text-strong); }
.acc-records small { display: block; margin-top: 2px; font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ---------- 오류 · 오프라인 ---------- */
.err { min-height: calc(100dvh - 200px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-2); text-align: center; padding: var(--space-8) 0; }
.err__flower { width: 132px; height: 132px; margin-bottom: var(--space-2); }
.err__cloud { margin-bottom: var(--space-3); }
.err__code { font-weight: 700; font-size: var(--fs-sm); color: var(--blue-600); letter-spacing: .2em; }
.err__title { font-weight: 700; font-size: var(--fs-2xl); color: var(--color-text-strong); }
.err__desc { max-width: 320px; font-size: var(--fs-sm); color: var(--color-text-muted); }
.err__actions { width: min(100%, 320px); display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-5); }
body[data-page="offline"] .l-page { padding-bottom: var(--space-8); }

/* ---------- 개인정보 처리방침 ---------- */
.pv code { font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: .9em; padding: 0 4px; border-radius: 6px; background: var(--color-surface-soft); }
.pv-glance { display: flex; flex-direction: column; gap: var(--space-3); }
.pv-glance li { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3); border-radius: var(--radius-md); background: rgba(255, 255, 255, .78); }
.pv-glance b { display: block; font-weight: 700; color: var(--color-text-strong); }
.pv-glance p { margin-top: 2px; font-size: var(--fs-sm); color: var(--color-text-muted); }
.pv-items { display: flex; flex-direction: column; }
.pv-group { margin: var(--space-6) 0 var(--space-3); padding-bottom: var(--space-2); border-bottom: 2px solid var(--blue-100); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--color-primary-text); letter-spacing: -0.01em; }
.pv-group:first-of-type { margin-top: 0; }
.pv-glance b.pv-em { display: inline; color: var(--color-text-strong); }
.pv-item { padding: var(--space-4) 0; border-bottom: 1px dashed var(--color-border); }
.pv-item:first-child { padding-top: 0; }
.pv-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pv-item h3 { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: var(--fs-md); color: var(--color-text); }
.pv-item p { margin-top: var(--space-1); font-size: var(--fs-sm); color: var(--color-text-muted); }
.pv-keep { display: inline-flex; align-items: center; gap: 4px; margin-top: var(--space-2); padding: 2px var(--space-3); border-radius: var(--radius-pill); background: var(--color-surface-sunken); font-size: var(--fs-xs); color: var(--color-primary-text); }
.pv-keep::before { content: "⏱"; content: "⏱" / ""; }
.pv-list { display: flex; flex-direction: column; gap: var(--space-2); }
.pv-list li { position: relative; padding-left: 20px; font-size: var(--fs-sm); }
.pv-list li::before { content: ""; position: absolute; left: 4px; top: .65em; width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); }
.pv-text { font-size: var(--fs-sm); }
.pv-text + .pv-text { margin-top: var(--space-2); }
.pv-meta { margin-top: var(--space-3); font-size: var(--fs-xs); color: var(--color-text-muted); }

/* 처리방침 링크들 */
.acc-privacy { align-self: center; min-height: 44px; display: inline-flex; align-items: center; font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ---------- 로그인 화면 ---------- */
body[data-page="login"] .l-page { padding-bottom: calc(var(--space-8) + var(--safe-bottom)); }
.login { min-height: calc(100dvh - var(--space-10)); display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: var(--space-6); }
.login__flower { width: 150px; height: 150px; }
.login__title { font-weight: 700; font-size: 42px; line-height: 1.05; letter-spacing: -1px; color: var(--color-text-strong); margin-top: var(--space-3); }
.login__tagline { font-family: var(--font-air); font-size: var(--fs-lg); color: var(--color-text-muted); }
.login__perks { width: 100%; display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-6); text-align: left; }
.login__perks li { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--card-radius); background: rgba(255, 255, 255, .78); box-shadow: var(--shadow-sm); }
.login__perks b { display: block; font-weight: 700; color: var(--color-text-strong); }
.login__perks small { font-size: var(--fs-xs); color: var(--color-text-muted); }
.login__actions { margin-top: auto; padding-top: var(--space-8); width: 100%; display: flex; flex-direction: column; align-items: center; gap: var(--space-3); }
.login__actions .c-gbtn { width: 100%; min-height: 52px; font-size: 16px; }
.login__note { font-size: var(--fs-xs); color: var(--color-text-muted); line-height: 1.6; }

/* =========================================================
   우리 학교 광장 — 광장 · 투표 · 예측 · 관심사 방 · 씨앗 상점 · 운영
   ========================================================= */
/* 약속 카드 (광장·투표·방 공통) */
.sq-rules ul, .pl-rules ul, .rm-rules ul { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-3); }
.sq-rules li, .pl-rules li, .rm-rules li { position: relative; padding-left: 18px; font-size: var(--fs-sm); line-height: 1.6; color: var(--color-text); }
.sq-rules li::before, .pl-rules li::before, .rm-rules li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue-500); }
.sq-rules .c-card__title, .pl-rules .c-card__title, .rm-rules .c-card__title { --i-size: 22px; display: flex; align-items: center; gap: var(--space-2); color: var(--color-primary-text); }

/* ---------- 광장 ---------- */
.sq-hero { display: flex; flex-direction: column; gap: var(--space-4); }
.sq-hero__top { display: flex; align-items: center; gap: var(--space-3); }
.sq-hero__art { font-size: 44px; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .1)); }
.sq-hero__school { font-size: var(--fs-xl); font-weight: var(--fw-bold); color: var(--color-text-strong); letter-spacing: -0.02em; }
.sq-hero__members { font-size: var(--fs-sm); color: var(--color-text-muted); }
.sq-hero__big { font-size: var(--fs-2xl); line-height: 1.4; font-weight: var(--fw-semibold); color: var(--color-text-strong); letter-spacing: -0.02em; }
.sq-hero__big b { color: var(--color-primary-text); font-weight: var(--fw-heavy); font-variant-numeric: proportional-nums; }  /* 문장 속 숫자는 비례 숫자 ('1 1장'처럼 벌어지지 않게) */
.sq-hero__wait { display: block; font-size: var(--fs-md); font-weight: var(--fw-medium); color: var(--color-text-muted); line-height: 1.6; }
.sq-optin { padding: var(--space-3) var(--space-4); border-radius: var(--r-lg); background: rgba(255, 255, 255, .72); box-shadow: var(--glass-rim-thin); }

/* ---------- 톡톡 투표 ---------- */
.pl-card { display: flex; flex-direction: column; gap: var(--space-3); }
.pl-card[data-tone] { background: linear-gradient(180deg, var(--tone-bg), rgba(255, 255, 255, .96) 70%); }
.pl-card--detail { padding: 0; box-shadow: none; border: 0; background: transparent; }
.pl-card--detail[data-tone] { padding: var(--space-4); border-radius: var(--r-lg); }
.pl-card__top { min-height: 24px; }
.pl-card__q { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: 1.45; color: var(--color-text-strong); letter-spacing: -0.02em; }
.pl-card--detail .pl-card__q { font-size: var(--fs-xl); }
.pl-card__note { --i-size: 16px; display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--color-text-muted); }
.pl-card__foot { font-size: var(--fs-sm); color: var(--color-text-muted); }
.pl-opts { border: 0; }
.pl-opts__list { counter-reset: opt; }
.pl-opts__list li { counter-increment: opt; }
.pl-opts__list li::before { content: counter(opt); flex-shrink: 0; width: 24px; text-align: center; font-weight: var(--fw-bold); color: var(--color-text-faint); font-variant-numeric: tabular-nums; }
.pl-opts__list .c-input { min-height: 48px; }
.pl-cmt-title { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--color-text-strong); }
.pl-cmt-form { align-items: flex-end; }
.pl-cmt-fields > * + * { margin-top: var(--space-2); }
.pl-cmt-form .c-textarea { min-height: 48px; max-height: 140px; resize: none; border-radius: 24px; padding-top: 12px; }
.pl-cmt-form .c-input { min-height: 44px; border-radius: 22px; }
.pl-cmt-form > .c-btn { flex: 0 0 auto; width: 48px; min-height: 48px; }
.pl-skin-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--tone-strong); box-shadow: inset 0 0 0 1.5px rgba(0, 0, 0, .12); }

/* ---------- 예측 챌린지 ---------- */
.pd-how .c-card__title .emoji { font-size: 24px; }
.pd-steps { display: flex; flex-direction: column; gap: var(--space-3); margin-top: var(--space-4); }
.pd-steps li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--color-text-strong); }
.pd-steps li > b { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--color-primary); color: #fff; font-size: var(--fs-sm); }
.pd-steps small { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--color-text-muted); }
.pd-card { display: flex; flex-direction: column; gap: var(--space-3); }
.pd-card__top { display: flex; align-items: flex-start; gap: var(--space-3); }
.pd-card__art { display: grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--r-lg); background: var(--tone-bg); font-size: 32px; }
.pd-card__q { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: 1.45; color: var(--color-text-strong); letter-spacing: -0.02em; }
.pd-hint { --i-size: 16px; display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--color-text-muted); }
.pd-hint .i { color: var(--green-700, var(--color-success)); }
.pd-choices { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.pd-mine { --i-size: 20px; display: flex; align-items: center; gap: 6px; font-weight: var(--fw-bold); color: var(--color-primary-text); }
.pd-split__bar { display: flex; height: 12px; border-radius: var(--r-pill); overflow: hidden; background: var(--grey-200); }
.pd-split__bar .is-yes { background: var(--blue-500); }
.pd-split__bar .is-no { background: var(--grey-400); }
.pd-split__legend { margin-top: 6px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--grey-700); font-variant-numeric: tabular-nums; }
.pd-note { font-size: var(--fs-xs); color: var(--color-text-muted); }
.pd-result { --i-size: 18px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px 6px; padding: var(--space-3); border-radius: var(--r-md); background: var(--color-surface-sunken); font-size: var(--fs-sm); color: var(--color-text); }
.pd-result b { color: var(--color-text-strong); }
.pd-result.is-void { color: var(--color-text-muted); }
.pd-win { display: flex; align-items: center; gap: 6px; font-weight: var(--fw-bold); color: var(--color-success); }
.pd-lose { font-size: var(--fs-sm); color: var(--color-text-muted); }
.pd-privacy, .sh-promise, .ad-promise { --i-size: 20px; display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.6; }
.pd-privacy > .i, .sh-promise > .i, .ad-promise > .i { color: var(--color-primary-text); margin-top: 2px; }

/* ---------- 관심사 방 ---------- */
.rm-rooms { align-items: stretch; }
.rm-room {
  display: flex; flex-direction: column; gap: 4px; height: 100%; min-height: 148px;
  padding: var(--space-4); border-radius: var(--r-xl); text-decoration: none; color: var(--color-text);
  background: linear-gradient(180deg, var(--tone-bg), rgba(255, 255, 255, .96) 85%);
  border: 1px solid rgba(255, 255, 255, .8); box-shadow: var(--glass-rim), var(--shadow-1);
  transition: transform var(--dur-base) var(--ease-spring), box-shadow var(--dur-base);
}
.rm-room:hover { transform: translateY(-2px); box-shadow: var(--glass-rim), var(--shadow-2); }
.rm-room:active { transform: scale(.98); }
.rm-room__art { font-size: 34px; margin-bottom: 2px; }
.rm-room__name { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--tone-ink); line-height: 1.35; }
.rm-room__desc { font-size: var(--fs-xs); color: var(--color-text-muted); line-height: 1.45; flex: 1; }
.rm-room__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--grey-700); }
.rm-chat-head { padding-bottom: var(--space-3); }
.rm-chat-head .c-back { font: inherit; font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.rm-chat-head__title { display: flex; align-items: center; gap: var(--space-2); }
.rm-chat-head__title .emoji { font-size: 28px; }
.rm-chat-head__desc { margin-top: 2px; font-size: var(--fs-sm); color: var(--color-text-muted); }
.rm-alias { --i-size: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 6px var(--space-3); border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue-700); font-size: var(--fs-sm); }
.rm-alias b { font-weight: var(--fw-bold); }
.rm-log { height: max(300px, calc(100dvh - 440px)); overflow-y: auto; padding: var(--space-4); background: var(--color-surface-sunken); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .04); overscroll-behavior: contain; }
.rm-msgs { display: flex; flex-direction: column; gap: var(--space-3); }
.rm-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.rm-msg.is-mine { align-items: flex-end; }
.rm-msg__alias { padding-left: 4px; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--grey-700); }
.rm-msg__row { display: flex; align-items: flex-end; gap: 6px; max-width: 92%; }
.rm-msg.is-mine .rm-msg__row { flex-direction: row-reverse; }
.rm-msg .c-bubble { max-width: 100%; margin: 0; }
.rm-msg__side { display: flex; flex-direction: column; align-items: center; gap: 2px; flex-shrink: 0; }
.rm-msg__time { font-size: 11px; color: var(--color-text-faint); white-space: nowrap; }
.rm-msg__act { --i-size: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--grey-600); }
.rm-msg__act:hover { background: rgba(0, 0, 0, .05); color: var(--grey-900); }
.rm-composer { position: sticky; bottom: calc(var(--nav-h) + var(--nav-gap) * 2 + var(--safe-bottom)); z-index: 2; display: flex; align-items: flex-end; gap: var(--space-2); padding: var(--space-2); border-radius: 28px; }
.rm-composer .c-textarea { min-height: 48px; max-height: 140px; resize: none; border-radius: 24px; padding-top: 12px; }
.rm-composer .c-btn { flex: 0 0 auto; width: 48px; min-height: 48px; }
.rm-emojis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); }
.rm-emoji-pick { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-md); background: var(--color-surface-sunken); border: 2px solid transparent; cursor: pointer; font-size: 26px; }
.rm-emoji-pick input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.rm-emoji-pick:has(input:checked) { border-color: var(--blue-500); background: var(--blue-50); }
.rm-emoji-pick:has(input:focus-visible) { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.rm-act-quote { padding: var(--space-3); border-radius: var(--r-md); background: var(--color-surface-sunken); font-size: var(--fs-sm); color: var(--color-text); }

/* ---------- 씨앗 상점 ---------- */
.sh-hero { display: flex; align-items: center; gap: var(--space-4); }
.sh-hero__flower { width: 150px; height: 150px; flex-shrink: 0; }
.sh-hero__info { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.sh-hero__label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-text-muted); }
.sh-hero__balance { display: flex; align-items: center; gap: 6px; font-size: 40px; line-height: 1; font-weight: var(--fw-heavy); color: var(--color-text-strong); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sh-hero__balance .emoji { font-size: 32px; }
.sh-items { align-items: stretch; }
.sh-item { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); height: 100%; text-align: center; }
.sh-item.is-equipped { box-shadow: inset 0 0 0 2px var(--blue-500), var(--shadow-1); }
.sh-item__emoji { display: grid; place-items: center; width: 72px; height: 72px; font-size: 44px; }
.sh-item__flower { display: grid; place-items: center; width: 72px; height: 72px; }
.sh-item__skin { --i-size: 20px; display: flex; align-items: center; justify-content: center; gap: 4px; width: 92px; height: 72px; border-radius: var(--r-md); background: linear-gradient(180deg, var(--tone-bg), #fff); color: var(--tone-ink); font-size: var(--fs-sm); font-weight: var(--fw-bold); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .05); }
.sh-item__name { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--color-text-strong); }
.sh-item__desc { flex: 1; font-size: var(--fs-xs); color: var(--color-text-muted); line-height: 1.45; }
.sh-item .c-btn { margin-top: auto; }
.sh-item__state { --i-size: 18px; display: flex; align-items: center; justify-content: center; gap: 4px; min-height: var(--btn-h-sm); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-text-muted); }
.sh-item__state.is-on { color: var(--color-primary-text); }
.sh-plus { color: var(--t-yellow-ink); font-variant-numeric: tabular-nums; }
.sh-amount { color: var(--color-success); font-variant-numeric: tabular-nums; }
.sh-amount.is-minus { color: var(--color-text-muted); }
.gd-shop { margin-top: var(--space-2); }

/* ---------- 운영 ---------- */
.ad-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-2); }
.ad-tile { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--space-3) var(--space-2); background: var(--tone-bg); border: 0; box-shadow: none; text-align: center; }
.ad-tile b { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); color: var(--tone-ink); font-variant-numeric: tabular-nums; }
.ad-tile span { font-size: 12px; color: var(--color-text-muted); }
.ad-item { display: flex; flex-direction: column; gap: var(--space-3); }
.ad-item.is-danger { box-shadow: inset 0 0 0 2px var(--color-danger), var(--shadow-1); }
.ad-item__top { gap: 6px; }
.ad-item__title { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--color-text-strong); }
.ad-item__body { padding: var(--space-3); border-radius: var(--r-md); background: var(--color-surface-sunken); font-size: var(--fs-sm); white-space: pre-wrap; }
.ad-reason { min-height: 32px; padding: 0 var(--space-3); font-size: var(--fs-xs); }
.ad-item__actions { gap: var(--space-2); }
.ad-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-danger); }
.ad-restrict { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: var(--space-2); margin-bottom: var(--space-2); }
@media (max-width: 400px) { .ad-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- 커뮤니티 '나도 그래' ---------- */
.com-metoo b { font-variant-numeric: tabular-nums; }
.com-metoo[aria-pressed="true"] { background: var(--t-green-bg); color: var(--t-green-ink); }

/* ---------- 마음 '같은 마음' ---------- */
.mind-same__lead { font-size: var(--fs-md); font-weight: var(--fw-semibold); color: var(--color-text-strong); line-height: 1.55; }
.mind-same__list { display: flex; flex-direction: column; gap: var(--space-2); }
.mind-same__row { display: grid; grid-template-columns: 9.5em minmax(0, 1fr) 4.6em; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); }
.mind-same__row.is-mine .mind-same__name { font-weight: var(--fw-bold); color: var(--color-primary-text); }
.mind-same__bar { height: 10px; border-radius: var(--r-pill); background: var(--grey-200); overflow: hidden; }
.mind-same__bar span { display: block; height: 100%; border-radius: inherit; background: var(--blue-400); }
.mind-same__row.is-mine .mind-same__bar span { background: var(--blue-600); }
.mind-same__n { text-align: right; font-variant-numeric: tabular-nums; color: var(--color-text-muted); }
.pd-credit { font-size: var(--fs-xs); color: var(--color-text-muted); text-align: center; }

/* ---------- 디자인 규칙 (/design-rule) — 이 문서도 규칙을 그대로 따른다 ---------- */
.dr > * + * { margin-top: var(--space-6); }
.dr code, .dr .dr-token, .dr .dr-path {
  font-family: var(--font-body); font-variant-numeric: tabular-nums; font-size: max(var(--fs-xs), .92em); font-weight: var(--fw-semibold);
  color: var(--grey-800); letter-spacing: 0; overflow-wrap: anywhere;
}
/* 코드 글자는 한 덩어리로 ('--font-' / 'brand'처럼 갈라지지 않게). 긴 값(그림자)만 .is-wrap */
.dr code { padding: 1px 6px; border-radius: 6px; background: var(--grey-100); white-space: nowrap; overflow-wrap: normal; }
.dr code.is-wrap { white-space: normal; overflow-wrap: anywhere; }
.dr-note { font-size: var(--fs-xs); line-height: 1.6; color: var(--color-text-muted); }

/* 표지 */
.dr-hero { display: flex; flex-direction: column; gap: var(--space-3); }
.dr-hero__kicker { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-text-muted); }
.dr-hero__title { font-size: var(--fs-2xl); line-height: 1.35; font-weight: var(--fw-heavy); letter-spacing: -0.03em; color: var(--color-text-strong); }
.dr-hero__title em { font-style: normal; color: var(--color-primary-text); }
.dr-hero__desc { font-size: var(--fs-sm); color: var(--color-text-muted); }
.dr-hero__desc code { background: rgba(255, 255, 255, .8); }
.dr-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); }
.dr-facts > div { min-width: 0; padding: var(--space-3); border-radius: var(--r-sm); background: rgba(255, 255, 255, .8); }
.dr-facts dt { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--color-text-muted); }
.dr-facts dd { margin-top: 2px; font-size: var(--fs-sm); font-weight: var(--fw-bold); line-height: 1.35; color: var(--color-text-strong); overflow-wrap: normal; }
.dr-dot { flex-shrink: 0; width: 14px; height: 14px; border-radius: var(--r-circle); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }

/* 목차 — 떠 있는 층이라 유리. 내용 위에서도 읽히게 아래 메뉴만큼 불투명하게 */
.dr-toc { position: sticky; top: var(--space-2); z-index: 5; padding: 4px; border-radius: var(--r-pill); background: var(--glass-nav-bg); }
.dr-toc ol {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  /* 옆으로 더 있다는 걸 끝을 흐리게 해서 알려요 */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent);
}
.dr-toc ol::-webkit-scrollbar { display: none; }
.dr-toc a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-3); border-radius: var(--r-pill);
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-text-muted); text-decoration: none; white-space: nowrap;
  transition: background-color var(--dur-base) var(--ease-out), color var(--dur-fast), box-shadow var(--dur-base);
}
.dr-toc a:hover { color: var(--color-text-strong); }
.dr-toc a[aria-current="true"] { background: #fff; color: var(--blue-700); box-shadow: inset 0 0 0 2px var(--blue-500), var(--shadow-1); }

/* 장 */
.dr-sec { scroll-margin-top: 72px; }
.dr-sec > * + * { margin-top: var(--space-3); }
.dr-head { padding: var(--space-4) var(--space-1) var(--space-1); }
.dr-head__num { font-size: var(--fs-sm); font-weight: var(--fw-heavy); color: var(--color-primary-text); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.dr-head__title { margin-top: 2px; font-size: var(--fs-2xl); line-height: 1.3; font-weight: var(--fw-heavy); letter-spacing: -0.03em; color: var(--color-text-strong); }
.dr-head__lead { margin-top: var(--space-1); font-size: var(--fs-sm); color: var(--color-text-muted); }
.dr-sub { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); font-size: var(--fs-lg); font-weight: var(--fw-bold); letter-spacing: -0.02em; color: var(--color-text-strong); }
.dr-sub small { font-size: var(--fs-xs); font-weight: var(--fw-medium); letter-spacing: 0; color: var(--color-text-faint); text-align: right; }
.dr-callout { --i-size: 20px; display: flex; gap: var(--space-2); align-items: flex-start; padding: var(--space-3) var(--space-4); border-radius: var(--r-sm); background: var(--color-primary-soft); font-size: var(--fs-sm); line-height: 1.6; color: var(--grey-800); }
.dr-callout > .i { margin-top: 1px; color: var(--color-primary-text); }

/* 원칙 */
.dr-principles { display: flex; flex-direction: column; gap: var(--space-4); }
.dr-principles li { display: flex; gap: var(--space-3); align-items: flex-start; }
.dr-principles__n { flex-shrink: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: var(--r-circle); background: var(--color-primary); color: var(--color-text-on-primary); font-size: var(--fs-sm); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.dr-principles b { display: block; font-size: var(--fs-md); color: var(--color-text-strong); }
.dr-principles p { margin-top: 2px; font-size: var(--fs-sm); color: var(--color-text-muted); }

/* 색 */
.dr-ramp { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); height: 48px; border-radius: var(--r-sm); overflow: hidden; }
.dr-ramp__labels { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); margin-top: 6px; text-align: center; font-size: var(--fs-xs); color: var(--color-text-faint); font-variant-numeric: tabular-nums; }
.dr-swatches { display: flex; flex-direction: column; }
.dr-swatches li { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.dr-swatches li:last-child { border-bottom: 0; padding-bottom: 0; }
.dr-swatch, .dr-pair {
  flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-sm);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); font-size: var(--fs-lg); font-weight: var(--fw-bold);
}
.dr-swatch__body { flex: 1; min-width: 0; }
.dr-swatch__body b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--color-text-strong); }
.dr-swatch__body small { display: block; margin-top: 1px; font-size: var(--fs-xs); line-height: 1.45; color: var(--color-text-muted); }
.dr-swatch__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; }
.dr-tones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.dr-tone { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; padding: var(--space-4); border-radius: var(--r-sm); background: var(--tone-bg); }
.dr-tone__head { display: flex; align-items: center; gap: var(--space-2); }
.dr-tone__tile { --i-size: 20px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r-xs); background: #fff; color: var(--tone-ink); }
.dr-tone b { font-size: var(--fs-md); color: var(--tone-ink); }
.dr-tone small { font-size: var(--fs-xs); line-height: 1.45; color: var(--grey-800); }
.dr-tone__dots { display: flex; flex-direction: column; gap: 3px; }
.dr-tone__dots > span { display: flex; align-items: center; gap: 6px; }
.dr-tone__dots i { flex-shrink: 0; width: 12px; height: 12px; border-radius: var(--r-circle); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.dr-tone code { background: rgba(255, 255, 255, .7); font-size: var(--fs-xs); }
.dr-flower { display: flex; align-items: center; gap: var(--space-4); }
.dr-flower > [data-flower] { flex-shrink: 0; }
.dr-petals { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dr-petals li { display: flex; align-items: center; gap: var(--space-2); font-size: var(--fs-sm); }
.dr-petals b { flex: 1; min-width: 0; font-weight: var(--fw-semibold); color: var(--color-text-strong); }
.dr-bg { height: 96px; border-radius: var(--r-sm); background: var(--gradient-bg), var(--color-bg); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .04); }

/* 글꼴 */
.dr-families { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.dr-family { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--space-4); }
.dr-family--main { grid-column: 1 / -1; padding: var(--space-5); }
.dr-family__sample { min-height: 2.7em; font-size: var(--fs-xl); line-height: 1.35; letter-spacing: -0.02em; color: var(--color-text-strong); overflow-wrap: anywhere; }
.dr-family--main .dr-family__sample { min-height: 0; font-size: var(--fs-3xl); font-weight: var(--fw-bold); }
.dr-ff-body { font-family: var(--font-body); }
.dr-ff-brand { font-family: var(--font-brand); }
.dr-ff-air { font-family: var(--font-air); }
.dr-ff-emoji { font-family: var(--font-emoji); letter-spacing: .04em; }
.dr-family__strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-2); margin: var(--space-3) 0 var(--space-1); }
.dr-family__strip > span { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--space-2) 0; border-radius: var(--r-sm); background: var(--grey-50); }
.dr-family__strip b { font-size: var(--fs-2xl); font-weight: inherit; line-height: 1.1; color: var(--color-text-strong); }
.dr-family__strip small { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--color-text-faint); }
.dr-family__name { margin-top: var(--space-2); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--color-primary-text); }
.dr-family__use { font-size: var(--fs-xs); color: var(--color-text); }
.dr-family__meta { font-size: var(--fs-xs); line-height: 1.5; color: var(--color-text-faint); }
.dr-family__token { align-self: flex-start; margin-top: 6px; }
.dr-weight__sample { font-size: 44px; line-height: 1.2; letter-spacing: -0.02em; color: var(--color-text-strong); text-align: center; transition: font-weight var(--dur-fast) var(--ease-out); }
.dr-weight__out { display: flex; justify-content: space-between; font-size: var(--fs-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.dr-weight__out output { font-weight: var(--fw-bold); color: var(--color-primary-text); }
.dr-weight .c-chips { flex-wrap: wrap; overflow: visible; }
.dr-scale li { padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.dr-scale li:first-child { padding-top: 0; }
.dr-scale li:last-child { border-bottom: 0; padding-bottom: 0; }
.dr-scale__sample { color: var(--color-text-strong); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.dr-scale__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; font-size: var(--fs-xs); color: var(--color-text-muted); }
.dr-scale__meta b { font-weight: var(--fw-semibold); color: var(--color-text); }
.dr-rows { display: flex; flex-direction: column; }
.dr-row { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); }
.dr-row:first-child { padding-top: 0; }
.dr-row:last-child { border-bottom: 0; padding-bottom: 0; }
.dr-row__body { flex: 1; min-width: 0; }
.dr-row__body b { display: block; font-size: var(--fs-md); color: var(--color-text-strong); }
.dr-row__body span { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--color-text-muted); }

/* 모서리 */
.dr-radii { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
.dr-radii li { display: flex; align-items: flex-start; gap: var(--space-3); min-width: 0; }
.dr-radius { flex-shrink: 0; width: 52px; height: 52px; background: var(--blue-50); border: 2px solid var(--blue-500); }
.dr-radius.is-pill { width: 52px; height: 32px; margin: 10px 0; }
.dr-radii__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dr-radii__body b { font-size: var(--fs-md); color: var(--color-text-strong); }
.dr-radii__body code { align-self: flex-start; font-size: var(--fs-xs); }
.dr-radii__body small { font-size: var(--fs-xs); line-height: 1.45; color: var(--color-text-muted); }
.dr-cc-wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.dr-cc { display: flex; flex-direction: column; gap: var(--space-2); min-width: 0; }
.dr-cc__outer { padding: var(--space-4); border-radius: var(--r-xl); background: var(--blue-50); box-shadow: inset 0 0 0 1px var(--blue-100); }
.dr-cc__inner { display: grid; place-items: center; height: 64px; border-radius: var(--r-xs); background: #fff; box-shadow: var(--shadow-1); font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--color-primary-text); }
.dr-cc.is-bad .dr-cc__outer { background: var(--color-warn-bg); box-shadow: inset 0 0 0 1px var(--t-yellow-strong); }
.dr-cc.is-bad .dr-cc__inner { border-radius: var(--r-xl); color: var(--color-warn); }
.dr-cc figcaption { --i-size: 18px; display: flex; gap: 6px; align-items: flex-start; font-size: var(--fs-xs); line-height: 1.5; color: var(--color-text-muted); }
.dr-cc figcaption .i { margin-top: 1px; }
.dr-cc.is-good figcaption .i { color: var(--color-success); }
.dr-cc.is-bad figcaption .i { color: var(--color-warn); }
.dr-table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.dr-table th { padding: 0 6px 8px; white-space: nowrap; text-align: left; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--color-text-faint); border-bottom: 1px solid var(--color-border); }
.dr-table td { padding: 10px 6px; vertical-align: top; color: var(--color-text); border-bottom: 1px solid var(--color-border); }
.dr-table th:first-child, .dr-table td:first-child { padding-left: 0; }
.dr-table tr:last-child td { border-bottom: 0; }

/* 간격 */
.dr-space li { display: flex; align-items: center; gap: var(--space-3); padding: 6px 0; border-bottom: 1px solid var(--color-border); }
.dr-space li:first-child { padding-top: 0; }
.dr-space li:last-child { border-bottom: 0; padding-bottom: 0; }
.dr-space__box { flex-shrink: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--grey-50); box-shadow: inset 0 0 0 1px var(--color-border); }
.dr-space__box i { display: block; border-radius: 2px; background: var(--blue-400); }
.dr-space b { flex-shrink: 0; width: 28px; font-size: var(--fs-md); color: var(--color-text-strong); text-align: right; }
.dr-space__body { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dr-space__body code { align-self: flex-start; font-size: var(--fs-xs); }
.dr-space__body small { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* 유리 */
.dr-stage {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); padding: var(--space-4); border-radius: var(--r-lg);
  background: radial-gradient(60% 70% at 15% 20%, var(--blue-300), transparent 70%),
              radial-gradient(60% 70% at 85% 80%, var(--t-sky-strong), transparent 70%),
              radial-gradient(45% 55% at 75% 15%, var(--t-orange-strong), transparent 70%), var(--blue-50);
}
.dr-glass { display: flex; flex-direction: column; gap: 2px; min-width: 0; min-height: 104px; padding: var(--space-3); border-radius: var(--r-sm); color: var(--grey-900); }
.dr-glass b { font-size: var(--fs-md); }
.dr-glass small { flex: 1; font-size: var(--fs-xs); line-height: 1.45; color: var(--grey-900); }
.dr-glass__vals { display: flex; flex-wrap: wrap; gap: 4px; }
.dr-glass code { font-size: var(--fs-xs); background: rgba(255, 255, 255, .72); }
.dr-glass.g-tinted code { background: rgba(255, 255, 255, .9); }
.dr-glass.g-tinted b, .dr-glass.g-tinted small { align-self: flex-start; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .9); color: var(--grey-900); }
.dr-recipe > div { display: flex; justify-content: space-between; gap: var(--space-3); padding: 10px 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
.dr-recipe > div:first-child { padding-top: 0; }
.dr-recipe > div:last-child { border-bottom: 0; }
.dr-recipe dt { flex-shrink: 0; color: var(--color-text-muted); }
.dr-recipe dd { text-align: right; font-weight: var(--fw-semibold); color: var(--color-text-strong); }
.dr-useavoid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.dr-useavoid > div { min-width: 0; padding: var(--space-4); border-radius: var(--r-sm); background: var(--grey-50); }
.dr-useavoid h4 { --i-size: 18px; display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--color-text-strong); }
.dr-useavoid .is-yes .i { color: var(--color-success); }
.dr-useavoid .is-no .i { color: var(--color-warn); }
.dr-useavoid ul { display: flex; flex-direction: column; gap: 4px; margin-top: var(--space-2); font-size: var(--fs-xs); color: var(--color-text); }

/* 높이 */
.dr-shadows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); padding: var(--space-4); border-radius: var(--r-sm); background: var(--grey-100); }
.dr-shadow { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 112px; padding: var(--space-3); border-radius: var(--r-xs); background: #fff; }
.dr-shadow b { font-size: var(--fs-sm); color: var(--color-text-strong); overflow-wrap: anywhere; }
.dr-shadow small { flex: 1; font-size: var(--fs-xs); color: var(--color-text-muted); }
.dr-shadow code { font-size: var(--fs-xs); font-weight: var(--fw-medium); line-height: 1.4; }

/* 움직임 — 토큰 길이·곡선 그대로 (동작 줄이기면 0ms라 바로 옮겨 가요) */
.dr-track { position: relative; height: 32px; border-radius: var(--r-pill); background: var(--grey-100); }
.dr-track__dot { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: var(--r-circle); background: var(--blue-500); box-shadow: var(--shadow-blue); transition-property: left; }
.dr-motion.is-on .dr-track__dot { left: calc(100% - 28px); }
.dr-track__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 6px; font-size: var(--fs-xs); color: var(--color-text-muted); }
.dr-track__meta b { font-weight: var(--fw-semibold); color: var(--color-text); }
.dr-bullets { display: flex; flex-direction: column; gap: 6px; }
.dr-bullets li { position: relative; padding-left: 18px; font-size: var(--fs-sm); line-height: 1.6; color: var(--color-text); }
.dr-bullets li::before { content: ""; position: absolute; left: 3px; top: .7em; width: 6px; height: 6px; border-radius: var(--r-circle); background: var(--blue-300); }

/* 아이콘 · 이모지 */
.dr-icons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-3) var(--space-2); }
.dr-icons li { --i-size: 28px; display: grid; place-items: center; height: 48px; border-radius: var(--r-sm); background: var(--grey-50); color: var(--grey-800); }
.dr-isizes { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-2); }
.dr-isizes li { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--color-accent); }
.dr-isizes b { font-size: var(--fs-sm); color: var(--color-text-strong); }
.dr-isizes code { font-size: var(--fs-xs); }
.dr-navdemo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px; padding: 6px; border-radius: var(--r-pill); background: var(--glass-nav-bg); box-shadow: var(--glass-rim), var(--shadow-2); }
.dr-navdemo__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px; border-radius: var(--r-pill); color: var(--grey-700); }
.dr-navdemo__item small { font-size: 11px; font-weight: var(--fw-semibold); }
.dr-navdemo__item.is-on { background: #fff; color: var(--blue-700); box-shadow: var(--shadow-2); }
.dr-navdemo__item.is-on .i { color: var(--blue-500); }
.dr-emoji { display: flex; flex-wrap: wrap; gap: var(--space-2); font-size: 34px; line-height: 1; }

/* 접근성 견본 */
.dr-a11y-demo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.dr-a11y-demo figure { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: var(--space-3); min-width: 0; text-align: center; }
.dr-a11y-demo figcaption { font-size: var(--fs-xs); color: var(--color-text-muted); }
.dr-focus { pointer-events: none; outline: 3px solid var(--color-focus); outline-offset: 2px; box-shadow: 0 0 0 1px #fff; }
.dr-hit { display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-circle); color: var(--color-primary-text); outline: 2px dashed var(--blue-300); outline-offset: -2px; background: var(--color-primary-soft); }

/* 하지 말 것 — 주의(노랑)로 표시해요 (빨강은 위험에만) */
.dr-donts { display: flex; flex-direction: column; }
.dr-donts li { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-md); color: var(--color-text); }
.dr-donts li:first-child { padding-top: 0; }
.dr-donts li:last-child { border-bottom: 0; padding-bottom: 0; }
.dr-donts__mark { --i-size: 18px; flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--r-circle); background: var(--color-warn-bg); color: var(--color-warn); }
.dr .dr-path { font-size: var(--fs-md); }

@media (prefers-reduced-motion: no-preference) {
  html:has(.dr) { scroll-behavior: smooth; }
}
/* 아주 좁은 폰(320px) — 두 칸 배치를 한 칸으로 */
@media (max-width: 359px) {
  .dr-facts, .dr-tones, .dr-families, .dr-radii, .dr-cc-wrap, .dr-stage, .dr-useavoid, .dr-shadows, .dr-a11y-demo { grid-template-columns: minmax(0, 1fr); }
  .dr-isizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; align-items: end; row-gap: var(--space-4); }
}
/* 투명도 줄이기·흐림을 못 쓰는 브라우저 → 목차도 불투명 */
@media (prefers-reduced-transparency: reduce) { .dr-toc { background: rgba(255, 255, 255, .96); } }
@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) { .dr-toc { background: rgba(255, 255, 255, .96); } }

/* 라이프네비게이터: 기록 → 근거 → 동등한 세 경로. 모든 개인 내용은 탭 안에서만. */
.nav-page { overflow-wrap: anywhere; }
.nav-page [hidden] { display: none !important; }
.nav-page p { line-height: 1.65; }
.nav-page h2, .nav-page h3 { color: var(--color-text-strong); letter-spacing: -.025em; }
.nav-small { color: var(--color-text-muted); font-size: var(--fs-sm); line-height: 1.6; }
.nav-eyebrow { color: var(--color-primary-text); font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: .02em; }
.nav-hero { padding: var(--space-8) var(--space-6); background: var(--gradient-hero); border-radius: var(--r-2xl); }
.nav-hero h2 { margin: var(--space-3) 0 var(--space-4); font-size: clamp(26px, 7vw, 34px); font-weight: var(--fw-heavy); line-height: 1.3; }
.nav-hero > p { color: var(--color-text-muted); }
.nav-hero > .c-btn { margin-top: var(--space-6); }
.nav-hero > .nav-small { margin-top: var(--space-3); text-align: center; }
.nav-journey { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-6); }
.nav-journey span { display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--r-pill); background: var(--color-surface); color: var(--color-primary-text); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.nav-journey .i { --i-size: 20px; }
.nav-journey i { flex: 1; height: 1px; background: var(--color-border-strong); }
.nav-samples { display: grid; gap: var(--space-3); }
.nav-sample { width: 100%; display: flex; align-items: center; text-align: left; gap: var(--space-4); border: 1px solid var(--color-border); transition: border-color var(--dur-fast), transform var(--dur-fast); }
.nav-sample:hover { border-color: var(--tone-ink); }
.nav-sample:active { transform: scale(.985); }
.nav-sample__number { flex: 0 0 44px; width: 44px; height: 52px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--tone-bg); color: var(--tone-ink); font-size: var(--fs-xl); font-weight: var(--fw-heavy); }
.nav-sample__body { flex: 1; min-width: 0; display: grid; gap: var(--space-1); }
.nav-sample__body b { font-size: var(--fs-lg); color: var(--color-text-strong); }
.nav-sample__body > span { font-size: var(--fs-sm); line-height: 1.5; color: var(--color-text-muted); }
.nav-sample > .i { flex-shrink: 0; color: var(--color-text-muted); }
.nav-page .c-textarea { margin-top: var(--space-3); }
.nav-page .c-field__label { display: block; font-weight: var(--fw-semibold); }
.nav-page .c-segment__btn { padding-left: var(--space-2); padding-right: var(--space-2); min-width: 0; white-space: normal; }
.nav-questions-input { display: grid; gap: var(--space-3); margin-top: var(--space-4); }
.nav-question-card { padding: var(--space-3); border-radius: var(--r-md); border: 1px solid var(--color-border); background: var(--color-surface-sunken); }
.nav-question-card summary { font-size: var(--fs-md); font-weight: var(--fw-semibold); line-height: 1.6; cursor: pointer; padding: var(--space-1) 0; min-height: 40px; }
.nav-question-number { color: var(--color-primary-text); margin-right: var(--space-2); font-variant-numeric: tabular-nums; }
.nav-answered { margin-top: var(--space-2); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-primary-text); }
.nav-preview { border-top: 1px solid var(--color-border); padding-top: var(--space-3); }
.nav-preview summary { min-height: 40px; cursor: pointer; font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1.6; padding: var(--space-2) 0; }
.nav-preview summary > span { display: block; color: var(--color-text-muted); font-size: var(--fs-xs); font-weight: var(--fw-regular); }
.nav-preview pre, .nav-source { margin-top: var(--space-3); white-space: pre-wrap; max-height: 300px; overflow-y: auto; padding: var(--space-4); background: var(--color-surface-sunken); border-radius: var(--r-sm); font-size: var(--fs-sm); line-height: 1.8; overflow-wrap: anywhere; }
.nav-preview .is-over { color: var(--color-danger); font-weight: var(--fw-bold); }
.nav-privacy { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--fs-xs); color: var(--color-text-muted); background: var(--color-primary-soft); padding: var(--space-3); border-radius: var(--r-sm); }
.nav-privacy .i { flex-shrink: 0; color: var(--color-primary-text); }
.nav-check { display: flex; gap: var(--space-3); align-items: flex-start; cursor: pointer; font-size: var(--fs-sm); line-height: 1.6; padding: var(--space-2) 0; }
.nav-check input { width: 22px; height: 22px; flex: 0 0 22px; margin-top: 2px; accent-color: var(--color-primary); }
.nav-check small { display: block; color: var(--color-text-muted); }
.nav-status { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-primary-text); }
.nav-status:empty { display: none; }
.nav-error { color: var(--color-danger); background: var(--color-danger-bg); }
.nav-result-heading h2 { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); line-height: 1.4; margin: var(--space-2) 0 var(--space-3); }
.nav-result-heading h2:focus, #nav-safety-title:focus { outline-offset: 6px; scroll-margin-top: var(--space-5); }
.nav-retry { border-left: 3px solid var(--color-warn); padding: var(--space-4); background: var(--color-warn-bg); color: var(--color-warn); border-radius: var(--r-sm); font-size: var(--fs-sm); }
.nav-retry > button { margin-top: var(--space-3); }
.nav-strengths { display: grid; gap: var(--space-2); }
.nav-strength { border: 1px solid var(--color-border); border-radius: var(--r-md); overflow: hidden; }
.nav-strength summary { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); cursor: pointer; min-height: 58px; }
.nav-strength summary::after { content: "+"; color: var(--color-primary-text); font-size: var(--fs-xl); }
.nav-strength[open] summary::after { content: "−"; }
.nav-strength summary strong { flex: 1; font-size: var(--fs-md); }
.nav-strength__index { font-size: var(--fs-xs); color: var(--color-primary-text); font-weight: var(--fw-bold); font-variant-numeric: tabular-nums; }
.nav-strength__evidence { padding: 0 var(--space-4) var(--space-4); display: grid; gap: var(--space-3); font-size: var(--fs-sm); line-height: 1.8; }
.nav-strength__evidence blockquote { margin: 0; padding-left: var(--space-3); border-left: 2px solid var(--color-primary); }
.nav-page mark { color: var(--color-primary-text); background: var(--color-primary-soft); padding: 1px 2px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.nav-tag-group h3 { font-size: var(--fs-sm); font-weight: var(--fw-semibold); margin-bottom: var(--space-2); }
.nav-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; }
.nav-tags li { padding: var(--space-2) var(--space-3); border-radius: var(--r-pill); background: var(--color-surface-sunken); color: var(--color-text); font-size: var(--fs-xs); border: 1px solid var(--color-border); }
.nav-reflection { background: var(--color-primary-soft); }
.nav-reflection ol { margin-top: var(--space-4); display: grid; gap: var(--space-4); padding-left: var(--space-5); list-style: decimal; line-height: 1.65; }
.nav-reflection li::marker { color: var(--color-primary-text); font-weight: var(--fw-bold); }
/* 경로 막대: 방향(03)·타임라인(04)을 내려 보는 동안 위에 붙어 있는 떠 있는 층 → 유리 */
.nav-paths {
  position: sticky; top: var(--space-2); z-index: 5;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-1);
  padding: 4px; border-radius: var(--r-pill);
  background: var(--glass-thick-bg); -webkit-backdrop-filter: var(--glass-filter-thick); backdrop-filter: var(--glass-filter-thick);
  border: var(--glass-border); box-shadow: var(--glass-rim), var(--shadow-2);
}
.nav-paths .c-btn { --i-size: 18px; min-width: 0; min-height: 44px; padding: 0 var(--space-2); border: 2px solid transparent; background: transparent; color: var(--color-text-muted); box-shadow: none; }
.nav-paths .c-btn[aria-pressed="true"] { background: var(--tone-bg); border-color: var(--tone-ink); color: var(--tone-ink); }
@media (prefers-reduced-transparency: reduce) { .nav-paths { background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.nav-direction h3 { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin: var(--space-2) 0 var(--space-3); }
.nav-direction > .nav-eyebrow { color: var(--tone-ink); }
.nav-roadmap { display: grid; gap: var(--space-4); margin: var(--space-5) 0; padding-left: 0; list-style: none; }
.nav-roadmap > li { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: var(--space-3); }
.nav-roadmap > li > b { color: var(--tone-ink); font-size: var(--fs-sm); }
.nav-roadmap ul { list-style: disc; padding-left: var(--space-4); font-size: var(--fs-sm); line-height: 1.7; }
.nav-path-note { padding: var(--space-4); background: var(--tone-bg); border-radius: var(--r-sm); font-size: var(--fs-sm); transition: background-color var(--dur-base); }
.nav-path-note b { color: var(--tone-ink); }
.nav-path-note p { margin-top: var(--space-2); }
/* 갈래 타임라인 (1:1 화소, 좁으면 옆으로 밀기). 고른 가지는 그려지고(stroke-dashoffset), 다른 가지는 점선으로 남는다 */
.nav-timeline { overflow-x: auto; margin: 0 calc(var(--card-pad) * -1); padding: var(--space-2) var(--card-pad); scrollbar-width: thin; }
.nav-tl { display: block; overflow: visible; }
.nav-tl__trunk { fill: none; stroke: var(--color-primary); stroke-width: 4; stroke-linecap: round; }
.nav-tl__rail { fill: none; stroke: var(--grey-300); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2 7; }
.nav-tl__draw { fill: none; stroke: var(--tone-ink); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset calc(var(--dur-slow) * 2) var(--ease-out); }
.nav-tl__row.is-on .nav-tl__draw { stroke-dashoffset: 0; }
.nav-tl__dot { fill: var(--color-surface); stroke: var(--grey-400); stroke-width: 3; transform-box: fill-box; transform-origin: center; transform: scale(.82);
  transition: fill var(--dur-slow), stroke var(--dur-slow), transform var(--dur-slow) var(--ease-spring); }
.nav-tl__row.is-on .nav-tl__dot { fill: var(--tone-ink); stroke: var(--color-surface); transform: scale(1); }
.nav-tl__row.is-on .nav-tl__dot--common { fill: var(--color-primary); }
.nav-tl__dot--trunk { fill: var(--color-primary); stroke: var(--color-surface); stroke-width: 3; }
.nav-tl__label { font-size: 12px; font-weight: var(--fw-semibold); fill: var(--color-text-muted); transition: fill var(--dur-slow); }
.nav-tl__label--trunk, .nav-tl__row.is-on .nav-tl__label { fill: var(--color-text-strong); }
.nav-tl__name { font-size: 12px; font-weight: var(--fw-bold); fill: var(--tone-ink); }
.nav-tl-kind { display: inline-block; margin-right: var(--space-2); padding: 1px var(--space-2); border-radius: var(--r-pill); background: var(--tone-bg); color: var(--tone-ink); font-size: var(--fs-xs); font-weight: var(--fw-bold); vertical-align: 1px; }
.nav-timeline-list { list-style: decimal; padding-left: var(--space-5); display: grid; gap: var(--space-4); }
.nav-timeline-list li { padding-left: var(--space-2); font-size: var(--fs-sm); line-height: 1.65; }
.nav-timeline-list li::marker { color: var(--color-primary-text); font-weight: var(--fw-bold); }
.nav-timeline-list b, .nav-timeline-list li > span { display: block; }
.nav-timeline-list b { color: var(--color-text-strong); margin-bottom: var(--space-1); }
.nav-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nav-qr { margin: 0 auto; max-width: 100%; background: var(--color-surface); border-radius: var(--r-sm); }
.nav-moment-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
.nav-moment-chips .c-chip { min-width: 0; min-height: 48px; padding: var(--space-2) var(--space-3); border-radius: var(--r-md); white-space: normal; text-align: left; line-height: 1.35; }
.nav-moments-list { display: grid; gap: var(--space-2); list-style: none; }
.nav-moments-list li { display: flex; gap: var(--space-2); align-items: center; border-bottom: 1px solid var(--color-border); padding-bottom: var(--space-2); }
.nav-moments-list li > span { flex: 1; font-size: var(--fs-sm); }
.nav-moments-list button { flex-shrink: 0; }
/* 분석 연출 카드 */
.nav-analyzing { display: grid; gap: var(--space-4); }
.nav-analyzing__head { display: flex; align-items: center; gap: var(--space-3); }
.nav-analyzing__head h2 { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--color-text-strong); }
.nav-analyzing__orb { --i-size: 22px; flex-shrink: 0; display: grid; place-items: center; width: 48px; height: 48px; border-radius: var(--r-circle); background: var(--color-primary-soft); color: var(--color-primary-text); }
.nav-steps { list-style: none; display: grid; gap: var(--space-2); }
.nav-steps li { display: flex; align-items: center; gap: var(--space-3); min-height: 32px; font-size: var(--fs-sm); color: var(--color-text-muted); }
.nav-step__mark { --i-size: 14px; flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-circle); border: 2px solid var(--grey-300); color: transparent;
  transition: background-color var(--dur-base), border-color var(--dur-base), color var(--dur-base); }
.nav-steps li[data-state="doing"] { color: var(--color-text-strong); font-weight: var(--fw-semibold); }
.nav-steps li[data-state="doing"] .nav-step__mark { border-color: var(--color-primary); border-right-color: transparent; }
.nav-steps li[data-state="done"] { color: var(--color-text); }
.nav-steps li[data-state="done"] .nav-step__mark { background: var(--color-primary); border-color: var(--color-primary); color: var(--white); }
.nav-analyzing__quote { min-height: 3.4em; padding: var(--space-3) var(--space-4); border-radius: var(--r-sm); background: var(--color-surface-sunken); font-size: var(--fs-sm); line-height: 1.6; }
.nav-analyzing > .c-btn { justify-self: start; }

/* 결과 01 한눈에 보기 */
.nav-summary__lead { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: 1.5; color: var(--color-text-strong); }
.nav-keywords { list-style: none; counter-reset: nav-kw; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nav-keywords li { counter-increment: nav-kw; display: inline-flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-radius: var(--r-pill); background: var(--color-primary-soft); color: var(--color-primary-text); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.nav-keywords li::before { content: counter(nav-kw, decimal-leading-zero); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.nav-summary__dirs { list-style: none; counter-reset: nav-dir; display: grid; gap: var(--space-2); }
.nav-summary__dirs li { counter-increment: nav-dir; }
.nav-summary__dirs a { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; padding: var(--space-2) var(--space-3); border-radius: var(--r-md); background: var(--color-surface-sunken); color: var(--color-text-strong); font-size: var(--fs-sm); font-weight: var(--fw-semibold); text-decoration: none; }
.nav-summary__dirs a::before { content: counter(nav-dir); flex-shrink: 0; display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-circle); background: var(--color-surface); color: var(--color-primary-text); font-size: var(--fs-xs); font-weight: var(--fw-bold); }
.nav-direction { scroll-margin-top: calc(var(--space-2) + 64px); }

/* 결과 06 공식 직업백과 (커리어넷) */
.nav-themes { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.nav-themes .c-chip { white-space: normal; text-align: left; }
.nav-more-themes > summary { display: flex; align-items: center; min-height: 44px; cursor: pointer; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-primary-text); }
.nav-more-themes > .nav-themes { margin-top: var(--space-2); }
.nav-careernet__status:empty { display: none; }
.nav-jobs { list-style: none; display: grid; gap: var(--space-2); }
.nav-jobs:empty { display: none; }
.nav-job { display: grid; gap: var(--space-1); padding: var(--space-3) var(--space-4); border-radius: var(--r-md); background: var(--color-surface-sunken); }
.nav-job > a { --i-size: 16px; display: inline-flex; align-items: center; gap: var(--space-1); min-height: 32px; color: var(--color-primary-text); text-underline-offset: 3px; }
.nav-job strong { font-size: var(--fs-md); font-weight: var(--fw-bold); }
.nav-job__group { font-size: var(--fs-xs); color: var(--color-text-muted); }
.nav-job p { font-size: var(--fs-sm); line-height: 1.6; }
.nav-job--official { background: var(--color-primary-soft); }

/* 결과 02 근거: 펼친 강점의 문장만 진하게 */
.nav-source-title { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-text-strong); }
.nav-source mark { border-radius: 3px; transition: background-color var(--dur-base), box-shadow var(--dur-base); }
.nav-source mark.is-active { color: var(--color-text-strong); background: var(--blue-100); box-shadow: inset 0 -2px 0 var(--color-primary); }

@media (prefers-reduced-motion: no-preference) {
  .nav-tl { animation: nav-timeline-reveal var(--dur-slow) var(--ease-out); }
  @keyframes nav-timeline-reveal { from { opacity: .25; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
  .nav-tl__row.is-on .nav-tl__draw { animation: nav-tl-draw calc(var(--dur-slow) * 2) var(--ease-out) both; }
  @keyframes nav-tl-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
  .nav-steps li[data-state="doing"] .nav-step__mark { animation: nav-spin .9s linear infinite; }
  @keyframes nav-spin { to { transform: rotate(1turn); } }
  .nav-analyzing__orb { animation: nav-breathe 1.6s ease-in-out infinite; }
  @keyframes nav-breathe { 50% { transform: scale(1.06); } }
  .nav-analyzing__quote > * { display: inline-block; animation: nav-quote-in var(--dur-slow) var(--ease-out); }
  @keyframes nav-quote-in { from { opacity: 0; transform: translateY(4px); } }
}
@media (max-width: 359px) {
  .nav-hero { padding: var(--space-6) var(--space-4); }
  .nav-journey { gap: var(--space-1); }
  .nav-journey span { gap: var(--space-1); padding: var(--space-2); }
  .nav-sample { gap: var(--space-2); padding: var(--space-4); }
  .nav-strength summary > .nav-small { display: none; }
  .nav-paths .c-btn { --i-size: 16px; gap: 4px; font-size: var(--fs-xs); }
}
/* 폰 폭에서는 단계 이름을 위에, 할 일을 아래에 (좁은 왼쪽 칸에서 세 줄로 꺾이지 않게) */
@media (max-width: 420px) {
  .nav-roadmap > li { grid-template-columns: minmax(0, 1fr); gap: var(--space-1); }
}

/* ---------- 미니앱 (목록 · 공통 틀 · 정보 시트) ---------- */
.mini-intro { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--fs-sm); line-height: 1.6; color: var(--color-text); }
.mini-intro > .i { flex-shrink: 0; color: var(--color-primary-text); }
.mini-grid { display: grid; gap: var(--space-3); list-style: none; }
.mini-hint { font-size: var(--fs-sm); line-height: 1.6; color: var(--color-text-muted); }
.mini-hint a { color: var(--color-primary-text); text-underline-offset: 3px; }
/* 내비게이션 바 (앱인토스처럼: 뒤로 · 앱 아이콘과 이름 · 더보기 — 아이콘은 모두 단색) */
.mini-bar { display: flex; align-items: center; gap: var(--space-2); min-height: 56px; padding: var(--space-2) 0; }
.mini-bar__back { --i-size: 26px; flex-shrink: 0; display: grid; place-items: center; width: 44px; height: 44px; margin-left: calc(var(--space-2) * -1);
  border-radius: var(--r-circle); color: var(--color-text-strong); }
.mini-bar__back:hover { background: rgba(0, 0, 0, .04); }
.mini-bar__icon { --i-size: 20px; flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm);
  background: var(--tone-bg); color: var(--tone-ink); box-shadow: var(--glass-rim-thin); }
.mini-bar__title { flex: 1; min-width: 0; font-size: var(--fs-xl); font-weight: var(--fw-heavy); letter-spacing: -.02em; color: var(--color-text-strong);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-bar__more { flex-shrink: 0; }
.mini-tagline { margin: 0 0 var(--space-3); }
/* 더보기 시트의 빠른 동작 (공유 · 홈 화면에 추가 · 문의) */
.mini-actions-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-2); list-style: none; }
.mini-action { --i-size: 24px; width: 100%; min-height: 76px; display: grid; justify-items: center; align-content: center; gap: var(--space-1);
  padding: var(--space-3) var(--space-2); border-radius: var(--r-md); background: var(--color-surface-sunken); color: var(--color-text-strong);
  font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-align: center; text-decoration: none; transition: background-color var(--dur-fast); }
.mini-action:hover { background: var(--blue-50); }
.mini-action .i { color: var(--color-primary-text); }
.mini-install-help { padding: var(--space-3); border-radius: var(--r-sm); background: var(--color-primary-soft); color: var(--color-text); }
/* 최근 연 미니앱 (이 기기에만) */
.mini-recent__list { display: flex; gap: var(--space-2); overflow-x: auto; list-style: none; padding: 2px 2px var(--space-1); scrollbar-width: none; }
.mini-recent__list::-webkit-scrollbar { display: none; }
.mini-recent__item { width: 108px; display: grid; justify-items: center; gap: var(--space-1); padding: var(--space-2) var(--space-1);
  border-radius: var(--r-md); color: var(--color-text-strong); text-decoration: none; font-size: var(--fs-xs); font-weight: var(--fw-semibold); text-align: center; }
.mini-recent__item:hover { background: rgba(0, 0, 0, .03); }
.mini-recent__icon { --i-size: 26px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-lg);
  background: var(--tone-bg); color: var(--tone-ink); box-shadow: var(--glass-rim-thin), var(--shadow-1); }
.mini-recent__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; word-break: keep-all; }
.mini-recent .l-row .c-section-title { margin: 0; }
.mini-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); list-style: none; margin-bottom: var(--space-5); }
.mini-badges .c-badge { white-space: normal; }
.mini-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.mini-sheet { display: grid; gap: var(--space-6); }
.mini-sheet h3 { display: flex; align-items: baseline; gap: var(--space-2); margin-bottom: var(--space-3); font-size: var(--fs-sm); font-weight: var(--fw-bold); color: var(--color-text-strong); }
.mini-sheet h3 small { font-size: var(--fs-xs); font-weight: var(--fw-regular); color: var(--color-text-muted); }
.mini-sheet .mini-hint { margin-bottom: var(--space-3); }
.mini-version { font-size: var(--fs-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
button.mini-version { min-height: 32px; padding: 0; text-align: left; border-radius: var(--r-sm); }
.mini-secret:empty { display: none; }
.mini-secret { display: grid; gap: var(--space-2); }
.mini-promises { display: grid; gap: var(--space-3); list-style: none; }
.mini-promises li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--fs-sm); line-height: 1.6; }
.mini-promises .i { --i-size: 18px; flex-shrink: 0; margin-top: 3px; color: var(--color-primary-text); }

/* ---------- 미니앱: 오늘의 하늘 (sky-) ---------- */
.sky-region { display: grid; gap: var(--space-2); }
.sky-region__select { appearance: auto; min-height: 48px; }
.sky-hero { display: grid; gap: var(--space-3); }
.sky-hero__where { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-primary-text); }
.sky-hero__main { display: flex; align-items: center; gap: var(--space-4); }
.sky-hero__icon { --i-size: 44px; flex-shrink: 0; display: grid; place-items: center; width: 72px; height: 72px; border-radius: var(--r-xl);
  background: rgba(255, 255, 255, .78); color: var(--color-primary-text); box-shadow: var(--glass-rim-thin), var(--shadow-1); }
.sky-hero__label { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); color: var(--color-text-strong); }
.sky-hero__temps { font-size: var(--fs-lg); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.sky-hero__temps b { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); color: var(--color-text-strong); }
.sky-hero__now { font-size: var(--fs-sm); color: var(--color-text); }
.sky-commute, .sky-air { display: grid; gap: var(--space-2); list-style: none; }
.sky-commute li { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 var(--space-4);
  border-radius: var(--r-md); background: var(--color-surface-sunken); }
.sky-commute__when { font-size: var(--fs-sm); color: var(--color-text); }
.sky-commute b { font-size: var(--fs-lg); font-variant-numeric: tabular-nums; color: var(--color-text-strong); }
.sky-air li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name grade" "name value"; align-items: center;
  gap: 0 var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--r-md); background: var(--tone-bg); }
.sky-air__name { grid-area: name; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-text-strong); }
.sky-air__grade { grid-area: grade; text-align: right; font-size: var(--fs-md); font-weight: var(--fw-heavy); color: var(--tone-ink); }
.sky-air__value { grid-area: value; text-align: right; font-size: var(--fs-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.sky-tips { display: grid; gap: var(--space-3); list-style: none; }
.sky-tips li { --i-size: 22px; display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--fs-sm); line-height: 1.6; }
.sky-tips .i { flex-shrink: 0; color: var(--color-primary-text); }
.sky-source a { color: var(--color-primary-text); }

/* ---------- 미니앱: 시험 D-day (dday-) ---------- */
.dday-hero { display: grid; gap: var(--space-2); }
.dday-hero__eyebrow { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-primary-text); }
.dday-hero__next { font-size: var(--fs-2xl); font-weight: var(--fw-heavy); line-height: 1.35; color: var(--color-text-strong); }
.dday-list { display: grid; gap: var(--space-2); list-style: none; }
.dday-item { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  border-radius: var(--r-lg); background: var(--color-surface); box-shadow: var(--shadow-1); }
.dday-item__badge { flex-shrink: 0; min-width: 76px; padding: var(--space-2) var(--space-3); border-radius: var(--r-pill); text-align: center;
  background: var(--blue-50); color: var(--blue-700); font-size: var(--fs-sm); font-weight: var(--fw-heavy); font-variant-numeric: tabular-nums; }
.dday-item.is-soon .dday-item__badge { background: var(--t-orange-bg); color: var(--t-orange-ink); }
.dday-item.is-past { opacity: .72; }
.dday-item.is-past .dday-item__badge { background: var(--color-surface-sunken); color: var(--color-text-muted); }
.dday-item__body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.dday-item__body b { font-size: var(--fs-md); color: var(--color-text-strong); overflow-wrap: anywhere; }
.dday-item__body span { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ---------- 미니앱: 집중 타이머 (focus-) ---------- */
.focus-card { justify-items: center; text-align: center; }
.focus-presets { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.focus-ring {
  --done: 0; --ring: var(--t-orange-strong);
  width: min(240px, 70vw); aspect-ratio: 1; border-radius: var(--r-circle); display: grid; place-items: center;
  background: conic-gradient(var(--ring) calc(var(--done) * 360deg), var(--grey-200) 0);
  transition: background var(--dur-slow) linear;
}
.focus-ring[data-phase="rest"] { --ring: var(--t-green-strong); }
.focus-ring__inner { width: calc(100% - 22px); aspect-ratio: 1; border-radius: var(--r-circle); display: grid; place-content: center; gap: var(--space-1);
  background: var(--color-surface); box-shadow: inset 0 2px 8px rgba(0, 0, 0, .05); }
.focus-ring__phase { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-text-muted); }
.focus-ring__time { font-size: clamp(40px, 13vw, 56px); font-weight: var(--fw-heavy); letter-spacing: -.02em; color: var(--color-text-strong);
  font-variant-numeric: tabular-nums; }
.focus-status:empty { display: none; }
.focus-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.focus-actions .c-btn { min-width: 120px; }
.focus-card .nav-check { text-align: left; }
.focus-today { font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--color-text-strong); }
.focus-rest { display: grid; gap: var(--space-3); list-style: none; }
.focus-rest li { --i-size: 22px; display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--fs-sm); line-height: 1.6; }
.focus-rest .i { flex-shrink: 0; color: var(--color-primary-text); }
.focus-rest a { color: var(--color-primary-text); }
