/* =========================================================
   리센느 오늘의 할일 — 디자인 규칙 (새로 만들 때도 이 규칙을 따라요)

   색
   - 라벤더 보라(--accent, B안 '라벤더 데이' 2026-11-05)는 누르는 것(버튼 · 선택된 탭 · 오늘 표시)과 맨 위 요약 카드에만.
   - 오늘 요약 카드(.hero)만 보라 그라데이션 면(--hero-a → --hero-b) + 흰 글씨 + 진행률 원. 다크에선 밝은 보라 면 대신
     바탕보다 한 단계 밝은 남보라로 낮추고 보라는 숫자 · 원에만 (사용자 요청: 다크에서 대비가 세면 눈이 피곤).
   - 상 묶음 색(음방 · MAMA · MMA · 퍼스트브랜드 · 기타)은 src/00-core.js의 GROUPS 한 곳에서 정해요.
     점 · 막대 · 작은 라벨에만 쓰고 글 바탕을 칠하지 않아요. 같은 묶음의 부문은 같은 색.
   - 연합팀은 색 없이 이름으로 구분해요. 일정 종류 7가지(SCH_TYPES)와 음방 7개(MC_COLOR)는
     각자 화면 안의 범례로만 써요.
   - 상태: 초록 = 진행 · 완료, 빨강(--hot) = 곧 끝남, 노랑 = 협의 중, 회색 = 끝남.
   모양
   - 둥글기: 카드 20px(--r-card) · 안쪽 칸 12px(--r-inner) · 작은 칩 8px(--r-chip) · 알약 버튼 999px.
   - 그림자는 떠 있는 것(창 · 알림 · 휴대폰 하단 메뉴)에만. 그라데이션은 요약 카드 한 곳만. 이모지 · 왼쪽 색 줄 없음.
   - 글씨: 제목 800 · 줄 제목 700 · 본문 400~600. 보조 글씨는 --muted, 더 옅은 건 --faint.
   다크 모드
   - JS가 <html data-theme="light|dark">를 늘 붙여요. 다크 규칙은 :root[data-theme="dark"] 한 벌만.
   ========================================================= */
:root {
  --ground: #f3f1fb;
  --surface: #ffffff;
  --raised: #efecfa;
  --active: #e4e0f6;
  --border: #e6e2f5;
  --rule: #efecfa;
  --control: #cdc6ea;
  --text: #1d1a33;
  --text-2: #34304f;
  --muted: #57527a;
  --faint: #6c6690;
  --accent: #6a55d6;
  --accent-hover: #5843c4;
  --accent-soft: #efebff;
  --accent-track: #d8d0fb;
  --accent-ink: #4a37b0;
  --on-accent: #ffffff;
  --positive: #1b7a4a;
  --negative: #d22030;
  --pill-positive-bg: #e3f6ea;
  --pill-positive-ink: #105c35;
  --pill-negative-bg: #ffeceb;
  --pill-negative-ink: #a3161f;
  --pill-warning-bg: #fff3d6;
  --pill-warning-ink: #7a3c00;
  --pill-neutral-bg: #efecfa;
  --pill-neutral-ink: #34304f;
  --hot: #d22030;
  --toast-bg: #1d1a33;
  --toast-ink: #ffffff;
  --ink-base: #000000;
  --ink-mix: 72%;
  --tint: 14%;
  --r-card: 20px;
  --r-inner: 12px;
  --r-chip: 8px;
  --tabbar-h: 62px;
  --sidebar: 232px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  /* 오늘 요약 카드 면 (흰 글씨 대비 4.6:1 이상) */
  --hero-a: #5b46cc;
  --hero-b: #7462dc;
  --on-hero: #ffffff;
  color-scheme: light;
}
:root[data-theme="dark"] {
  /* 다크 색 기준 (v151): GitHub 'dimmed' · Material 다크 가이드처럼
     바탕은 완전 검정보다 한 단계 밝게, 글씨는 순백 대신 옅은 회백색, 포인트 색은 채도를 낮춰 형광 느낌을 없앰.
     글씨 대비는 본문 13:1 · 보조 6.5:1 · 포인트 4.7:1 이상 (WCAG AA) */
  --ground: #15141d;
  --surface: #1f1d2b;
  --raised: #282636;
  --active: #312f42;
  --border: #2e2c3e;
  --rule: #282636;
  --control: #4a4763;
  --text: #e9e7f3;
  --text-2: #cbc8de;
  --muted: #a5a1bf;
  --faint: #8d89a8;
  --accent: #9f8ff0;
  --accent-hover: #b0a2f4;
  --accent-soft: #262238;
  --accent-track: #362f55;
  --accent-ink: #c4b9fa;
  --on-accent: #140e33;
  --positive: #6cc191;
  --negative: #ee8b86;
  --pill-positive-bg: #1c2e24;
  --pill-positive-ink: #95d3ae;
  --pill-negative-bg: #35211f;
  --pill-negative-ink: #f2b3ae;
  --pill-warning-bg: #332a19;
  --pill-warning-ink: #e9c98a;
  --pill-neutral-bg: #282636;
  --pill-neutral-ink: #cbc8de;
  --hot: #ee8b86;
  --toast-bg: #e9e7f3;
  --toast-ink: #191f28;
  --ink-base: #ffffff;
  --ink-mix: 55%;
  --tint: 22%;
  /* 다크는 밝은 보라 면 대신 바탕보다 한 단계 밝은 남보라 (눈부심 줄이기) */
  --hero-a: #2a2640;
  --hero-b: #221f34;
  --on-hero: #e9e7f3;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 28px);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--accent-ink); }
button { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.container { max-width: 720px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); font-size: 14px; }
.sep { font-style: normal; margin: 0 6px; color: var(--control); }
/* ---------- 상단 ---------- */
.topbar { position: sticky; top: 0; z-index: 10; background: var(--ground); }
.topbar-inner {
  max-width: 720px;
  margin: 0 auto;
  height: 52px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.mark { width: 26px; height: 26px; border-radius: 8px; flex: none; display: block; }
/* 폭이 좁거나 글씨를 키우면 이름을 줄여서 오른쪽 버튼이 잘리지 않게 */
.brand { min-width: 0; }
#siteTitle { overflow: hidden; text-overflow: ellipsis; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.icon-btn {
  min-width: 44px;
  height: 44px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { color: var(--text); background: var(--active); }
}
.icon-btn.spin svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.notice {
  max-width: 720px;
  margin: 8px auto 0;
  padding: 12px 16px;
  font-size: 14px;
  border-radius: var(--r-inner);
  background: var(--pill-warning-bg);
  color: var(--pill-warning-ink);
  width: calc(100% - 32px);
}
/* 공지: 화면을 막지 않는 제목 한 줄. 제목 = 내용 열기, × = 그 공지 그만 보기 */
.notice-bar { max-width: 720px; width: calc(100% - 32px); margin: 8px auto 0; display: grid; gap: 6px; }
.notice-line { display: flex; align-items: center; border-radius: var(--r-inner); background: var(--accent-soft); color: var(--accent-ink); }
.notice-open { flex: 1; min-width: 0; min-height: 44px; padding: 0 4px 0 14px; border: 0; background: none; color: inherit; font: inherit; font-size: 14px; font-weight: 700; text-align: start; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.notice-x { flex: none; width: 44px; height: 44px; border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
/* ---------- 하단 메뉴 (휴대폰) ---------- */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.tabbar svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.tabbar a.active { color: var(--text); }
.tabbar a.active svg { stroke: var(--accent); }
.tabbar a.active { font-weight: 700; }
/* ---------- 데스크톱: 왼쪽 메뉴 고정, 내용은 남은 공간 가운데 ---------- */
@media (min-width: 1024px) {
  :root { --content: 1080px; --side-gap: max(40px, calc((100vw - var(--sidebar) - var(--content)) / 2)); }
  body { padding-bottom: 48px; }
  .topbar { position: fixed; left: 0; top: 0; width: var(--sidebar); }
  /* 메뉴 폭(232px)에 이름 + 버튼 3개가 한 줄로 안 들어가서, 버튼은 이름 아래 줄로 */
  .topbar-inner { height: 112px; padding: 0 12px 0 22px; flex-wrap: wrap; align-content: center; justify-content: flex-start; row-gap: 14px; }
  .top-actions { margin-left: -6px; }
  .brand { font-size: 15px; }
  .topbar .icon-btn { min-width: 34px; height: 34px; padding: 0; }
  .tabbar {
    top: 112px;
    bottom: auto;
    right: auto;
    width: var(--sidebar);
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    background: var(--ground);
    border-top: 0;
  }
  .tabbar a {
    flex-direction: row;
    justify-content: flex-start;
    gap: 10px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--r-inner);
    font-size: 15px;
    font-weight: 500;
  }
  .tabbar svg { width: 18px; height: 18px; }
  .tabbar a:hover { color: var(--text); }
  .tabbar a.active { background: var(--surface); color: var(--text); font-weight: 600; }
  .container, .notice, .notice-bar { max-width: none; width: auto; padding: 0; margin-left: calc(var(--sidebar) + var(--side-gap)); margin-right: var(--side-gap); }
  .notice, .notice-bar { margin-top: 24px; }
}
/* ---------- 공통 ---------- */
.card { background: var(--surface); border-radius: var(--r-card); }
.page-head { padding: 6px 4px 8px; }
.page-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.page-head p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }
.section-title { display: flex; align-items: center; gap: 8px; font-size: 20px; margin: 28px 4px 12px; letter-spacing: -.01em; }
.empty { text-align: center; color: var(--muted); padding: 28px 16px; font-size: 15px; }
.empty strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.loading { color: var(--muted); padding: 40px 0; text-align: center; }
@media (min-width: 1024px) {
  .page-head { padding-top: 22px; }
  .page-head h1 { font-size: 28px; }
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--pill-neutral-ink);
  background: var(--pill-neutral-bg);
  padding: 3px 9px;
  border-radius: var(--r-chip);
  white-space: nowrap;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--accent)); flex: none; display: inline-block; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  border: 0;
  background: var(--raised);
  color: var(--text);
  transition: background-color .12s, transform .08s;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--active); }
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--accent); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) {
  .btn.primary:hover { background: var(--accent-hover); }
}
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.proof { background: var(--surface); outline: 1px solid var(--control); outline-offset: -1px; }
@media (hover: hover) and (pointer: fine) {
  .btn.proof:hover { background: var(--raised); }
}
.btn.proof.tw { background: var(--text); color: var(--surface); outline: 0; }
/* ---------- 오늘: 요약 카드 ---------- */
.hero-date { margin: 0; font-weight: 600; color: var(--muted); }
.hero-title { margin: 4px 0 0; font-weight: 700; letter-spacing: -.02em; line-height: 1.35; }
.hero-title b { font-weight: 700; color: var(--accent-ink); margin: 0 1px; letter-spacing: -.02em; }
.next-task { border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-align: start; padding: 0; min-height: 44px; cursor: pointer; }
.next-task span { font-size: .8em; }
.next-task:focus-visible { outline-color: currentColor; }
.hero-find { margin: 14px 0 0; border-top: 1px solid var(--rule); }
.hero-find { display: flex; color: var(--text-2); }
.hero-find b { color: var(--hot); font-weight: 700; display: inline-block; }
.find-k { font-weight: 700; color: var(--muted); }
.find-i { font-weight: 600; }
/* 도구 */
.tools { margin-top: 12px; }
/* MAMA / MMA / 기타 타일 (옅은 색 + 같은 색의 진한 글자) */
/* 줄 것 / 받을 것 전환 */
.seg {
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  background: var(--active);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 12px;
}
.seg button {
  border: 0;
  background: transparent;
  height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.seg button.on { background: var(--surface); color: var(--text); }
@media (max-width: 560px) {
  .seg { display: grid; }
}
.kind-seg { position: sticky; top: 56px; z-index: 5; margin: 20px 0 4px; box-shadow: 0 0 0 6px var(--ground); }
/* taste-skill-ignore: 붙어 있는 막대 뒤 바탕 가림 */
.seg-n {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  min-width: 22px;
  height: 22px;
  line-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.kind-seg button.give.on .seg-n { background: var(--accent-soft); color: var(--accent-ink); }
/* 좁은 화면에서만 줄 것/받을 것 중 하나를 보여 줌 (넓으면 두 칸 다) */
@media (max-width: 1099.98px) {
  .day-cols.show-give .day-col.get, .day-cols.show-get .day-col.give { display: none; }
}
.col-title { display: none; }
@media (min-width: 1100px) {
  .kind-seg:has(+ .day-cols), .kind-seg:has(~ .ally) { display: none; }
  .day-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 24px; align-items: start; margin-top: 8px; }
  .col-title {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 24px 4px 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.01em;
  }
  .col-title .num { color: var(--muted); font-weight: 600; font-size: 15px; }
  .col-title small { flex-basis: 100%; font-size: 14px; font-weight: 500; color: var(--muted); }
}
/* ---------- 묶음별 목록 (흰 카드 안의 줄) ---------- */
.group-head { display: flex; align-items: center; justify-content: space-between; margin: 0 4px 8px; }
.gname { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.01em; }
.gname::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cc); }
.gcount { font-size: 14px; font-weight: 600; color: var(--muted); }
.rows { list-style: none; margin: 0; padding: 4px 0; background: var(--surface); border-radius: var(--r-card); }
.row + .row { border-top: 1px solid var(--rule); }
.row-main { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; }
.check {
  position: relative;
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  border: 2px solid var(--control);
  background: var(--surface);
  display: grid;
  place-items: center;
  transition: background-color .15s, border-color .15s, transform .1s;
}
.check::before { content: ''; position: absolute; width: 44px; height: 44px; top: 50%; left: 50%; transform: translate(-50%, -50%); }
@media (hover: hover) and (pointer: fine) {
  .check:hover { border-color: var(--accent); }
}
.check:active { transform: scale(.9); }
.check svg { width: 15px; height: 15px; stroke: var(--on-accent); stroke-width: 3.2; fill: none; opacity: 0; }
.row.done .check { background: var(--accent); border-color: var(--accent); }
.row.done .check svg { opacity: 1; }
.row-head {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  padding: 4px 0;
  text-align: left;
  cursor: pointer;
}
.row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-title { font-size: 16px; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.row-sub { display: flex; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); line-height: 1.45; }
.row-sub .dot { margin-right: 6px; width: 7px; height: 7px; }
.row.done .row-title { color: var(--muted); text-decoration: line-through; }
.row-end { flex: none; font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.row-end b { margin-right: 1px; }
.row-end.hot, .row-end.hot b { color: var(--hot); font-weight: 700; }
.row-end.new { color: var(--accent-ink); font-weight: 700; }
.chev { flex: none; width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.row.open .chev { transform: rotate(180deg); }
.row-more { padding: 0 16px 16px 56px; }
.row.get .row-more { padding-left: 60px; }
.avatar {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--raised);
  color: var(--muted);
}
/* 펼친 내용 */
.chips-row { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  line-height: 1.6;
}
.task-memo { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.hashtags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.hashtag {
  border: 0;
  background: var(--raised);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--r-chip);
  cursor: pointer;
}
@media (hover: hover) and (pointer: fine) {
  .hashtag:hover { background: var(--active); }
}
.task-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.proof-block { margin-top: 14px; padding: 14px; border-radius: var(--r-inner); background: var(--raised); }
.proof-block p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.proof-block p b { color: var(--text); margin-right: 6px; }
.proof-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.proof-block .proof-alt { margin: 12px 0 0; font-size: 13px; font-weight: 600; }
/* 투표 종류 배지 (기간표·연합·가이드) */
.camp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--r-chip);
  color: var(--text-2);
  background: var(--raised);
}
.camp.sm { font-size: 12px; padding: 2px 7px; }
.camp-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cc); flex: none; }
.kind {
  display: inline-flex;
  align-items: center;
  flex: none;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--r-chip);
  white-space: nowrap;
}
.kind.give { background: var(--accent-soft); color: var(--accent-ink); }
.kind.get { background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }
.kind.self { background: var(--raised); color: var(--muted); }
/* 다가오는 일정 */
.card.list { padding: 4px 16px; }
.list-row { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 0; font-size: 15px; }
.list-row + .list-row { border-top: 1px solid var(--rule); }
.list-date { flex: none; min-width: 58px; white-space: nowrap; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.list-body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.4; }
.list-body small { font-size: 13px; color: var(--muted); }
.status { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: var(--r-chip); white-space: nowrap; flex: none; }
.status.live { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.status.soon { background: var(--accent-soft); color: var(--accent-ink); }
.status.end { background: var(--pill-neutral-bg); color: var(--muted); }
.status.tbd { background: var(--pill-warning-bg); color: var(--pill-warning-ink); }
/* ---------- 달력·기간표 ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 4px 12px; }
.cal-head h1 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
@media (min-width: 1024px) {
  .cal-head { padding-top: 22px; }
  .cal-head h1 { font-size: 28px; }
}
.cal-nav { display: flex; gap: 6px; }
.cal-nav .btn { background: var(--surface); }
/* ---------- 연합 ---------- */
.ally + .ally { margin-top: 12px; }
/* ---------- 가이드 ---------- */
.filter { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; margin: 16px 0 12px; scrollbar-width: none; }
.filter button {
  flex: none;
  height: 36px;
  border: 0;
  background: var(--surface);
  border-radius: 999px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  color: var(--muted);
}
.filter button.on { background: var(--text); color: var(--surface); }
.guides .guide + .guide { margin-top: 12px; }
@media (min-width: 1100px) {
  .guides { columns: 2; column-gap: 12px; }
  .guides .guide { break-inside: avoid; margin: 0 0 12px; }
  .guides .guide + .guide { margin-top: 0; }
}
.guide { padding: 20px; scroll-margin-top: 72px; }
.guide.flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { outline: 3px solid var(--accent); } 100% { outline: 3px solid transparent; } }
.guide h2 { margin: 0; font-size: 20px; font-weight: 700; }
.guide .where { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.guide h3 { font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 32px; margin-bottom: 9px; font-size: 15px; line-height: 1.55; }
.steps li::before {
  content: counter(s);
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}
.caution { margin-top: 12px; font-size: 14px; color: var(--pill-warning-ink); }
.caution::before { content: "주의 · "; font-weight: 700; }
.using { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.using li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 5px 0; }
.updated { text-align: center; font-size: 13px; color: var(--muted); margin: 36px 0 4px; }
.disclaimer { text-align: center; font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0 0 12px; }
/* ---------- 떠 있는 것: 알림·창 ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
  transform: translate(-50%, 8px);
  opacity: 0;
  pointer-events: none;
  transition: .18s;
  background: var(--toast-bg);
  color: var(--toast-ink);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  z-index: 30;
  max-width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 1024px) {
  .toast { bottom: 32px; left: calc(var(--sidebar) + (100vw - var(--sidebar)) / 2); }
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(12, 8, 10, .45);
}
.modal.show { display: flex; }
.modal-box {
  width: 100%;
  max-width: 520px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: 24px 24px 0 0;
  padding: 20px 20px calc(24px + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 32px rgba(0, 0, 0, .2);
}
@media (min-width: 760px) {
  .modal { align-items: center; }
  .modal-box { border-radius: 24px; }
}
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.modal-head h2 { margin: 0; font-size: 20px; font-weight: 700; }
.modal-head .icon-btn { background: var(--raised); }
.modal-box > .muted { margin: 8px 0 16px; display: block; }
.sban-body { margin-top: 12px; font-size: 15px; color: var(--muted); line-height: 1.6; }
.sban-body p { margin: 0 0 10px; }
.sban-body ul { margin: 0 0 12px; padding-left: 18px; color: var(--text); }
.sban-body .btn { margin-top: 6px; }
.install-body { margin-top: 14px; }
.install-body img { border-radius: 14px; display: block; margin-bottom: 14px; }
.install-body p { font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.field input {
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  height: 46px;
  padding: 0 14px;
  border-radius: var(--r-inner);
  border: 1px solid var(--control);
  background: var(--surface);
  color: var(--text);
}
.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  padding: 20px 12px;
  border: 1px dashed var(--control);
  border-radius: 16px;
  cursor: pointer;
  text-align: center;
}
@media (hover: hover) and (pointer: fine) {
  .drop:hover { background: var(--raised); }
}
.drop span { font-weight: 700; color: var(--accent-ink); }
.drop small { font-size: 13px; color: var(--muted); }
.wm-out { margin-top: 14px; }
.wm-out img { display: block; width: 100%; border-radius: var(--r-inner); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* 서치밴 확인 창 */
.sban-h { margin: 18px 0 8px; font-size: 15px; font-weight: 700; color: var(--text); }
.handle-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.handle-field {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 4px;
  height: 46px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--control);
  background: var(--surface);
}
.handle-field span { color: var(--muted); font-weight: 700; }
.handle-field input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  color: var(--text);
}
.handle-field:focus-within { border-color: var(--accent); }
.handle-row .btn { height: 46px; }
.sban-body .handle-help { margin: 8px 4px 0; font-size: 13px; color: var(--muted); }
.sban-body .handle-help.err { color: var(--negative); font-weight: 600; }
.proof-block .btn:not(.tw):not(.proof) { background: var(--surface); }
@media (hover: hover) and (pointer: fine) {
  .proof-block .btn:not(.tw):not(.proof):hover { background: var(--active); }
}
/* 화면 모드 버튼: 지금 모드의 그림만 */
.theme-btn svg { display: none; }
.theme-btn[data-mode="auto"] .i-auto, .theme-btn[data-mode="light"] .i-light, .theme-btn[data-mode="dark"] .i-dark { display: block; }
@media (min-width: 1024px) {
  .top-actions { gap: 4px; }
}
/* ---------- 기간표: 한 줄 간트 (막대 색 = MAMA / MMA / 기타) ---------- */
.tl { padding: 14px 14px 8px; }
@media (min-width: 1024px) {
  .tl { padding: 20px 24px 12px; }
}
.tl-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 12px; margin: 0 2px 10px; }
.tl-count { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); }
.tl-count b { color: var(--text); font-size: 15px; }
.tl-legend {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 13px;
  color: var(--text-2);
  font-weight: 600;
}
.tl-legend span { display: inline-flex; align-items: center; gap: 5px; }
.tl-legend i { width: 16px; height: 9px; border-radius: 3px; background: var(--g); }
.tl-scale { display: grid; grid-template-columns: var(--lab) 1fr; }
.tl-ticks { position: relative; height: 18px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tl-ticks span { position: absolute; top: 0; white-space: nowrap; }
.tl-body { position: relative; }
.tl-guide { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--rule); }
.tl-today {
  position: absolute;
  top: -6px;
  bottom: 0;
  width: 2px;
  margin-left: -1px;
  background: var(--text);
  z-index: 2;
  border-radius: 1px;
}
.tl-row { position: relative; display: grid; grid-template-columns: var(--lab) 1fr; align-items: center; }
.tl-row + .tl-row { border-top: 1px solid var(--rule); }
.tl-label { min-width: 0; padding-right: 10px; display: flex; flex-direction: column; }
.tl-label b {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-label b .dot { width: 7px; height: 7px; }
.tl-label span { padding-left: 13px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-title { font-style: normal; display: none; }
@media (min-width: 1024px) {
  .tl-title { display: inline; }
  .tl-label b { font-size: 15px; }
  .tl-label span { font-size: 13px; }
}
.tl-lane { position: relative; height: 24px; }
.tl-bar { position: absolute; top: 0; height: 24px; border-radius: 6px; background: var(--g); z-index: 1; }
.tl-bar.open-l { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.tl-bar.open-r { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.st-soon .tl-bar { background: color-mix(in srgb, var(--g) 25%, var(--surface)); }
.st-end .tl-bar { opacity: .35; }
.st-end .tl-label { opacity: .6; }
.tl-per { top: 0; z-index: 3; font-variant-numeric: tabular-nums; }
.tl-per.in { color: #fff; padding: 0 7px; overflow: hidden; text-overflow: ellipsis; }
.st-soon .tl-per.in { color: var(--text); }
/* 기간표 위 조작 한 줄 */
.cal-controls { display: grid; grid-template-columns: auto 1fr; gap: 8px; margin: 0 0 12px; align-items: center; }
.cal-controls .seg { margin: 0; }
.cal-controls .kind-seg { position: static; box-shadow: none; display: grid; }
.cal-controls .seg button { padding: 0 12px; height: 36px; font-size: 14px; }
@media (max-width: 560px) {
  .cal-controls .seg-long { display: none; }
}
@media (min-width: 1100px) {
  .cal-controls { grid-template-columns: auto auto; justify-content: start; }
  .cal-controls .kind-seg { display: inline-grid; }
}
/* 시작 전 = 점선 테두리 + 옅은 면, 끝남 = 흐리게 */
.st-soon .tl-bar { background: color-mix(in srgb, var(--g) 16%, var(--surface)); border: 1.5px dashed var(--g); }
.tl-legend i.lg-soon { background: var(--surface); border: 1.5px dashed var(--g); }
.tl-legend i.lg-end { background: var(--g); opacity: .3; }
/* 눈금 글자: 가운데 맞춤, 첫 칸은 왼쪽, 마지막은 오른쪽으로 */
.tl-ticks span { transform: translateX(-50%); }
.tl-ticks span:first-child { transform: none; }
.tl-ticks span:last-child { transform: translateX(-85%); }
/* 줄 높이 조금 줄임 */
.tl-row { min-height: 44px; padding: 3px 0; }
.tl-label { line-height: 1.25; }
/* 기간표: 날짜는 늘 오른쪽 고정 칸, 자체는 아래 따로 */
.tl { --lab: 100px; --per: 70px; }
@media (min-width: 1024px) {
  .tl { --lab: 300px; --per: 104px; }
}
.tl-scale, .tl-row { grid-template-columns: var(--lab) 1fr var(--per); }
.tl-per {
  position: static;
  height: auto;
  line-height: 1.3;
  padding-left: 8px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
}
.tl-per-h { text-align: right; font-size: 12px; color: var(--muted); }
@media (min-width: 1024px) {
  .tl-per { font-size: 13px; }
}
.st-end .tl-per { opacity: .6; }
.tl-sub {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 14px 2px 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}
.tl-sub .num { color: var(--muted); font-weight: 600; }
@media (max-width: 1023px) {
  .tl { --lab: 94px; --per: 76px; padding: 14px 12px 8px; }
  .tl-per { font-size: 12px; padding-left: 6px; }
}
/* =========================================================
   점검 1~4 반영: 휴대폰 첫 화면 압축, 오른쪽에 하루 양, 칩
   ========================================================= */
/* 요약 카드 작게 */
.hero { padding: 16px 18px; margin-top: 4px; }
.hero-date { font-size: 13px; }
.hero-title { font-size: 20px; margin-top: 2px; }
.hero-title b { font-size: 28px; }
.hero-find {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  margin-top: 10px;
  padding-top: 10px;
  font-size: 14px;
}
.find-k { font-size: 13px; }
.find-i { font-size: 14px; }
.hero-find b { min-width: 0; margin-right: 4px; }
@media (min-width: 1024px) {
  .hero { padding: 22px 26px; margin-top: 22px; }
  .hero-title { font-size: 22px; }
  .hero-title b { font-size: 30px; }
}
/* 도구·필터: 한 줄 칩, 넘치면 옆으로 밀기 */
.filter-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; margin-top: 10px; }
.filter-chips::-webkit-scrollbar { display: none; }
.fchip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color .12s;
  position: relative;
}
/* 보이는 높이는 36px 그대로, 누르는 영역만 44px */
.fchip::after, .filter button::after { content: ""; position: absolute; inset: -4px 0; }
.filter button { position: relative; }
@media (hover: hover) and (pointer: fine) {
  .fchip:hover { background: var(--active); }
}
.fchip.on { background: var(--text); color: var(--surface); }
.fchip.on .dot { box-shadow: 0 0 0 2px var(--surface); }
/* taste-skill-ignore: 점 테두리 */
.filter-chips { margin-top: 14px; }
.kind-seg { margin-top: 12px; }
.group { margin-top: 14px; }
.group-head { margin-bottom: 6px; }
.gname { font-size: 16px; }
/* 목록 오른쪽: 하루 양 + 곧 끝남 표시 */
.row-end { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; line-height: 1.25; }
.row-end b { font-size: 14px; font-weight: 700; color: var(--text-2); margin: 0; }
.flag { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.flag.hot { color: var(--hot); }
.flag.new { color: var(--accent-ink); }
/* 체크 버튼이 다른 줄 높이를 밀지 않게 */
.row-main { padding-top: 10px; padding-bottom: 10px; }
/* =========================================================
   점검 6~10 반영
   ========================================================= */
/* 7. 정보 기준일 */
.hero-date { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.upd { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--raised); padding: 2px 8px; border-radius: 8px; }
/* 8. 연합: 접힌 카드 */
.ally { padding: 0; overflow: hidden; }
.ally.open .chev { transform: rotate(180deg); }
.fchip .num { font-weight: 700; opacity: .7; }
/* 9. 가이드: 캡처 체크리스트 */
/* 연합 펼친 내용: 회색 칸 없이 흰 바탕, 줄 것/받을 것은 구분선으로 */
/* 눌렀을 때 잠깐 생기는 회색 하이라이트 없애기 */
.row-head, .check, .fchip, .btn, .hashtag { -webkit-tap-highlight-color: transparent; }
/* ---------- 스케줄 (Mnet Plus + blip) ---------- */
.sch-head { padding-bottom: 8px; }
.sch-title {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  border: 0;
  background: none;
  padding: 4px 6px 4px 0;
  color: var(--text);
  cursor: pointer;
  border-radius: var(--r-inner);
  font: inherit;
}
.sch-title h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.sch-year { font-size: 15px; font-weight: 600; color: var(--muted); }
.sch-title svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  align-self: center;
  transition: transform .15s;
}
.sch-title[aria-expanded="true"] svg { transform: rotate(180deg); }
.sch-pick { background: var(--surface); border-radius: var(--r-card); padding: 14px; margin: 0 0 12px; max-width: 380px; border: 1px solid var(--border); }
.sch-pick-y { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sch-pick-y b { font-size: 16px; }
.sch-pick-m { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.sch-pick-m button {
  height: 40px;
  border: 0;
  border-radius: var(--r-inner);
  background: var(--raised);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.sch-pick-m button.now { box-shadow: inset 0 0 0 1.5px var(--accent); }
.sch-pick-m button.on { background: var(--text); color: var(--surface); }
.sch-tools { display: grid; gap: 8px; align-items: center; margin: 0 0 10px; }
.sch-search { position: relative; display: block; }
.sch-search svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  pointer-events: none;
}
.sch-search input {
  width: 100%;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  padding: 0 16px 0 40px;
}
.sch-search input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
@media (max-width: 560px) {
  .sch-tools { grid-template-columns: 1fr 1fr; }
  .sch-search { grid-column: 1 / -1; }
}
.sch-filters { display: grid; gap: 8px; margin: 0 0 12px; }
.sch-filters .sch-chips { margin: 0; }
.sch-wrap { display: grid; gap: 14px; }
@media (min-width: 1100px) {
  .sch-wrap { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
  .sch-side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
}
.sch-side { display: grid; gap: 10px; align-content: start; scroll-margin-top: 12px; }
.sch-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 0; }
.sch-side-head h2 { margin: 0; font-size: 18px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.sch-side-head .btn { background: var(--surface); }
.sch-date { background: var(--surface); border-radius: var(--r-card); padding: 14px 16px 4px; }
.sch-date.past { opacity: .65; }
.sch-date h3 {
  margin: 0 0 2px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  display: flex;
  gap: 8px;
  align-items: center;
}
.sch-jump {
  margin-left: auto;
  border: 0;
  background: none;
  color: var(--accent-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 0;
}
.sch-share {
  margin-left: auto;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: none;
  color: var(--faint);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sch-share svg { width: 18px; height: 18px; }
.sch-share:active { background: var(--raised); }
.sch-date ul { list-style: none; margin: 0; padding: 0; }
.sch-row { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--rule); }
.sch-row:first-child { border-top: 0; }
.sch-time { font-size: 14px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.sch-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sch-name {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text);
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.sch-ext { margin-left: 4px; font-size: 13px; font-weight: 600; color: var(--faint); }
.sch-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; min-height: 28px; }
.sch-kind { flex: 1; min-width: 0; font-size: 13px; font-weight: 600; line-height: 1.5; color: var(--muted); }
.sch-k { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sch-kind .dot { width: 7px; height: 7px; }
.sch-kind .sep { margin: 0 5px; color: var(--faint); font-style: normal; }
.sch-from { color: var(--faint); font-weight: 500; white-space: nowrap; }
.sch-body mark { background: var(--pill-warning-bg); color: inherit; border-radius: 3px; padding: 0 1px; }
.sch-meta { font-size: 13px; color: var(--muted); line-height: 1.45; }
.sch-acts { display: flex; flex: none; gap: 2px; }
.sch-act {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: var(--r-chip);
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.sch-act:active { background: var(--raised); }
@media (hover: hover) and (pointer: fine) {
  .sch-act:hover { background: var(--raised); }
}
.sch-src { margin: 14px 4px 0; font-size: 13px; color: var(--muted); line-height: 1.7; }
.sch-src .warn { color: var(--pill-warning-ink); }
.sch-src a { color: var(--accent-ink); font-weight: 600; }
.sub-btns { display: grid; gap: 8px; margin: 4px 0 12px; }
.sub-btns .btn { justify-content: center; height: 46px; }
.muted.small { font-size: 13px; line-height: 1.6; word-break: break-all; }
.sch-next {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--r-inner);
  background: var(--raised);
  text-decoration: none;
  color: var(--text);
}
.sch-next-k { font-size: 13px; font-weight: 800; color: var(--accent-ink); }
.sch-next-t { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sch-next-d { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) {
  .sch-next:hover { background: var(--active); }
}
/* ---------- 연합 카드: 줄 것 | 받을 것 나란히 ---------- */
.ally2-list { display: grid; gap: 12px; margin-top: 12px; }
@media (min-width: 1100px) {
  .ally2-list { grid-template-columns: 1fr 1fr; align-items: start; }
}
.ally2 { padding: 18px 16px 14px; }
.ally2.st-end { opacity: .6; }
.ally2-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.ally2-head h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.ally2-head p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.ex-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ex-col { background: var(--raised); border-radius: var(--r-inner); padding: 10px 10px 4px; min-width: 0; }
.ex-col h3 { margin: 0 0 6px; font-size: 13px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.ex-col.give h3 { color: var(--accent-ink); }
.ex-col.get h3 { color: var(--text-2); }
.ex-col h3 i { font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.ex-col ul { list-style: none; margin: 0; padding: 0; }
.ex { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--border); min-width: 0; }
.ex:first-child { border-top: 0; padding-top: 2px; }
.ex-camp { font-size: 12px; font-weight: 800; color: color-mix(in srgb, var(--c) 80%, var(--text)); letter-spacing: -.01em; }
.ex-title { font-size: 15px; font-weight: 700; line-height: 1.35; word-break: keep-all; overflow-wrap: anywhere; }
.ex-sub { font-size: 13px; color: var(--muted); }
.ex.is-end { opacity: .5; }
.ex.is-end .ex-title { text-decoration: line-through; }
.ex-none { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.ally2-foot { margin-top: 10px; font-size: 13px; color: var(--muted); line-height: 1.6; }
.ally2-foot a { color: var(--muted); font-weight: 600; }
/* =========================================================
   디자인 다듬기 (v46)
   - 첫 화면 요약 카드에 브랜드 색 면 → 어디부터 볼지 분명하게
   - 하단 메뉴: 지금 탭에 알약 표시
   - 제목 굵기 통일, 위쪽 막대 반투명
   - 스케줄: 휴대폰 달력은 점, 출처 칩, 캘린더 넣기는 아래 카드
   ========================================================= */
/* 위쪽 막대: 스크롤할 때 내용이 살짝 비치게 */
.topbar { background: color-mix(in srgb, var(--ground) 88%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
/* 제목 굵기 통일 */
.page-head h1, .cal-head h1, .sch-title h1 { font-weight: 800; letter-spacing: -.025em; }
.section-title { font-weight: 800; }
/* 하단 메뉴: 지금 탭은 아이콘 뒤에 옅은 알약 */
@media (max-width: 1023px) {
  .tabbar { background: color-mix(in srgb, var(--surface) 92%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); }
  .tabbar svg { box-sizing: content-box; padding: 3px 14px; border-radius: 999px; transition: background-color .15s; }
  .tabbar a { gap: 2px; font-size: 12px; }
  .tabbar a.active svg { background: var(--accent-soft); }
  .tabbar a.active { color: var(--accent-ink); }
}
/* 오늘: 요약 카드 = 보라 그라데이션 면 + 흰 글씨 + 진행률 원 (B안 라벤더 데이, 2026-11-05)
   안쪽 칸(다음 일정 · 음방 · 뮤직웨이브)은 흰 카드 그대로 */
.hero { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-card); background: linear-gradient(135deg, var(--hero-a), var(--hero-b)); color: var(--on-hero); }
.hero::before, .hero::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgb(255 255 255 / .1); pointer-events: none; }
.hero::before { width: 200px; height: 200px; right: -56px; top: -80px; }
.hero::after { width: 130px; height: 130px; right: 64px; top: 70px; background: rgb(255 255 255 / .06); }
.hero-main { display: flex; align-items: center; gap: 14px; }
.hero .hero-title { flex: 1; min-width: 0; color: var(--on-hero); }
.hero .hero-title b { color: var(--on-hero); }
.hero .day-label, .hero .day-btn { color: var(--on-hero); }
.hero .day-rel { color: rgb(255 255 255 / .8); }
.hero .day-rel.away { color: var(--on-hero); }
.hero .day-btn:hover { background: rgb(255 255 255 / .16); }
.hero .day-today { background: var(--on-hero); color: var(--hero-a); }
.hero .upd { background: rgb(255 255 255 / .18); color: var(--on-hero); }
.hero .day-note { color: rgb(255 255 255 / .9); }
.hero .hero-find { border-top-color: rgb(255 255 255 / .22); color: var(--on-hero); }
.hero .find-k { color: rgb(255 255 255 / .8); }
.hero .hero-find b { padding: 0 7px; border-radius: 999px; background: #fff; color: #c8203a; }
.ring { flex: none; position: relative; display: grid; place-items: center; width: 76px; height: 76px; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(var(--on-hero) calc(var(--p) * 1%), rgb(255 255 255 / .25) 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); mask: radial-gradient(farthest-side, transparent calc(100% - 9px), #000 calc(100% - 8px)); }
.ring b { position: relative; font-size: 15px; font-weight: 800; letter-spacing: -.02em; }
.hero.is-done .ring::before { background: #8ee6b4; }
.hero .done-stats p { background: rgb(255 255 255 / .16); }
.hero .done-stats span { color: rgb(255 255 255 / .82); }
.hero .done-stats b { color: var(--on-hero); }
.hero .sch-next { background: var(--surface); color: var(--text); }
@media (hover: hover) and (pointer: fine) {
  .hero .sch-next:hover { background: var(--raised); }
}
/* 오늘: 종류별 카드 (누르면 그 종류만 보기 · 다시 누르면 전체) */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 14px; }
.ccard { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; padding: 11px 12px 12px; border: 0; border-radius: 18px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .12s, background-color .12s; }
.ccard b { display: flex; align-items: center; gap: 6px; max-width: 100%; font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ccard small { font-size: 12px; font-weight: 600; color: var(--muted); }
.cbar { align-self: stretch; height: 5px; margin-top: 6px; border-radius: 999px; background: var(--raised); overflow: hidden; }
.cbar i { display: block; height: 100%; border-radius: inherit; background: var(--cc); }
.ccard.on { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
@media (hover: hover) and (pointer: fine) {
  .ccard:hover { background: var(--active); }
  .ccard.on:hover { background: var(--accent-soft); }
}
/* 오늘 배치 (B안): 휴대폰은 한 줄로 순서만 정하고, 컴퓨터(1100px~)는 왼쪽 본문 · 오른쪽 옆 칸 */
.t-grid { display: flex; flex-direction: column; }
.t-main, .t-side { display: contents; }
.t-quick { order: 2; margin-top: 10px; overflow: hidden; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--surface); }
.t-ev { order: 3; }
.t-grid .cat-grid { order: 4; }
.t-grid .day-col.give { order: 5; }
.t-grid .day-col.get { order: 6; }
.t-up { order: 7; }
.t-quick .wave-links { margin: 0; gap: 1px; background: var(--rule); }
.t-quick .wave { border-radius: 0; }
.t-quick .tool-tiles { margin: 0; gap: 4px; padding: 4px; background: var(--surface); }
.t-quick .wave-links + .tool-tiles { border-top: 1px solid var(--border); }
.t-quick :is(.wave, .ttile):focus-visible { outline-offset: -3px; }
.t-quick .tool-tiles .ttile:active { background: var(--accent-track); }
@media (hover: hover) and (pointer: fine) {
  .t-quick .tool-tiles .ttile:hover { background: var(--accent-track); }
}
.side-title { margin: 20px 4px 8px; font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.t-ev .sch-next { margin-top: 0; background: var(--surface); border-radius: 16px; padding: 12px 14px; }
.t-ev .sch-next + .sch-next { margin-top: 8px; }
@media (hover: hover) and (pointer: fine) {
  .t-ev .sch-next:hover { background: var(--active); }
}
@media (min-width: 1100px) {
  .t-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
  .t-grid.solo { grid-template-columns: minmax(0, 1fr); }
  .t-main, .t-side { display: block; min-width: 0; }
  .t-side { margin-top: 14px; }
  .t-quick { margin-top: 0; }
  .t-side .day-col.get { margin-top: 22px; }
  .t-side .t-up .section-title { margin-top: 26px; }
  /* 일정·음방의 날짜 라벨과 제목을 같은 열에 정렬한다. */
  .t-side .sch-next { grid-template-columns: 4.5em minmax(0, 1fr) 16px; row-gap: 2px; }
  .t-side .sch-next-k { grid-row: 1 / 3; }
  .t-side .sch-next-t { grid-column: 2; grid-row: 1; }
  .t-side .sch-next-d { grid-column: 2; grid-row: 2; }
  .t-side .mus-go { grid-column: 3; grid-row: 1 / 3; }
}
/* 다크: 요약 카드 안 강조를 옅게 (흰 알약 · 흰 원 대신 보라 · 어두운 빨강) */
:root[data-theme="dark"] .hero { border: 1px solid var(--border); }
:root[data-theme="dark"] .hero::before { background: rgb(159 143 240 / .07); }
:root[data-theme="dark"] .hero::after { background: rgb(159 143 240 / .04); }
:root[data-theme="dark"] .ring::before { background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgb(255 255 255 / .09) 0); }
:root[data-theme="dark"] .hero.is-done .ring::before { background: var(--positive); }
:root[data-theme="dark"] .hero .hero-title b { color: var(--accent-ink); }
:root[data-theme="dark"] .hero .hero-find b { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
:root[data-theme="dark"] .hero .upd { background: rgb(255 255 255 / .07); color: var(--text-2); }
:root[data-theme="dark"] .hero .day-rel, :root[data-theme="dark"] .hero .find-k { color: var(--muted); }
:root[data-theme="dark"] .hero .day-today { background: var(--accent-track); color: var(--accent-ink); }
:root[data-theme="dark"] .hero .done-stats p { background: rgb(255 255 255 / .06); }
:root[data-theme="dark"] .hero .done-stats span { color: var(--muted); }
:root[data-theme="dark"] .hero-find { border-top-color: var(--border); }
:root[data-theme="dark"] .ccard.on { box-shadow: inset 0 0 0 1.5px var(--accent-track); }
/* 휴대폰 하단 메뉴: 떠 있는 둥근 막대, 지금 탭은 보라 동그라미 */
@media (max-width: 1023px) {
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 40px); }
  .tabbar { left: 10px; right: 10px; bottom: calc(8px + env(safe-area-inset-bottom)); height: var(--tabbar-h); padding-bottom: 0; border: 1px solid var(--border); border-radius: 24px; box-shadow: 0 8px 24px rgb(29 26 51 / .12); }
  .tabbar a.active svg { background: var(--accent); stroke: var(--on-accent); }
  :root[data-theme="dark"] .tabbar a.active svg { background: var(--accent-track); stroke: var(--accent-ink); }
  :root[data-theme="dark"] .tabbar { box-shadow: 0 8px 24px rgb(0 0 0 / .35); }
}
/* 요약 카드 맨 아래: 멜론 뮤직웨이브 두 칸 (왼쪽 음총팀 · 오른쪽 공식) */
.wave-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.sch-next + .wave-links { margin-top: 6px; }
.wave {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 10px 12px;
  border-radius: var(--r-inner);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s;
}
.wave img { grid-row: 1 / 3; width: 30px; height: 30px; border-radius: 8px; }
.wave b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wave small { font-size: 12px; color: var(--muted); white-space: nowrap; }
.wave:active { background: var(--raised); }
.streaming-card { grid-template-columns: 30px minmax(0, 1fr); column-gap: 7px; }
.streaming-card small { white-space: normal; word-break: keep-all; }
@media (hover: hover) and (pointer: fine) {
  .wave:hover { background: var(--raised); }
}
/* 인증 도구: 목록 아래 묶음 */
/* 스케줄: 검색만 한 줄 */
.sch-tools { grid-template-columns: 1fr; }
/* 일정 줄의 작은 버튼: 손가락 크기 */
/* 내 캘린더에 넣기 */
.sch-sync {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  flex-wrap: wrap;
  margin-top: 16px;
  padding: 16px 18px;
}
.sch-sync h2 { margin: 0; font-size: 16px; font-weight: 800; }
.sch-sync p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.sch-sync-btns { display: flex; gap: 8px; }
.sch-sync-btns .btn:not(.primary) { background: var(--raised); }
@media (max-width: 560px) {
  .sch-sync-btns { width: 100%; }
  .sch-sync-btns .btn { flex: 1; height: 42px; }
}
/* 홈 화면 앱: 당겨서 새로고침 */
.is-app body { overscroll-behavior-y: contain; }
.ptr {
  position: fixed;
  top: calc(env(safe-area-inset-top) - 44px);
  left: 50%;
  z-index: 50;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .16);
  transform: translate(-50%, 0);
  opacity: 0;
  pointer-events: none;
}
.ptr.pulling { opacity: 1; }
.ptr:not(.pulling) { transition: transform .2s, opacity .2s; }
.ptr svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ptr.ready { background: var(--accent); }
.ptr.ready svg { stroke: var(--on-accent); }
/* =========================================================
   오늘 음방 줄 + 요일별 시간표 (v53)
   ========================================================= */
button.sch-next { width: 100%; border: 0; font: inherit; text-align: left; cursor: pointer; }
.sch-next + .mus-line { margin-top: 6px; }
.mus-live {
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: var(--accent);
  padding: 2px 7px;
  border-radius: 999px;
  margin-left: 4px;
  vertical-align: 1px;
}
.mus-table { display: grid; gap: 4px; margin: 4px 0 12px; }
.mus-row {
  display: grid;
  grid-template-columns: 40px 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 11px 12px;
  border-radius: var(--r-inner);
  background: var(--raised);
  font-size: 15px;
}
.mus-row.on { background: var(--accent-soft); }
.mus-d { font-weight: 800; display: flex; flex-direction: column; line-height: 1.15; }
.mus-d small { font-size: 12px; color: var(--accent-ink); font-weight: 800; }
.mus-n { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mus-n i { font-style: normal; color: var(--faint); font-weight: 500; }
.mus-t { font-weight: 700; }
.mus-c { color: var(--muted); font-size: 13px; min-width: 70px; text-align: right; }
/* 음방 줄: 누르면 시간표가 열린다는 화살표 */
.mus-line { grid-template-columns: auto 1fr auto 16px; }
.mus-go { color: var(--accent-ink); transition: transform .15s; }
.mus-line:active .mus-go { transform: translateX(2px); }
@media (hover: hover) and (pointer: fine) {
  .mus-line:hover .mus-go { transform: translateX(2px); }
}
/* 휴대폰: 이름 한 줄, 시간·채널은 그 아래 */
@media (max-width: 560px) {
  .mus-line { grid-template-columns: auto 1fr 16px; row-gap: 1px; }
  .mus-line .sch-next-k { grid-row: 1 / 3; }
  .mus-line .sch-next-t { grid-column: 2; grid-row: 1; }
  .mus-line .sch-next-d { grid-column: 2; grid-row: 2; }
  .mus-line .mus-go { grid-column: 3; grid-row: 1 / 3; }
}
/* =========================================================
   처음 온 사람도 알아보게 (v56)
   ========================================================= */
/* 도구 타일: 아이콘 + 이름 + 한 줄 설명 */
.tool-tiles { display: grid; gap: 8px; margin: 12px 0 0; }
.is-app .ttile[data-install] { display: none; }
.ttile {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  text-align: left;
  min-width: 0;
  padding: 12px 12px;
  border: 0;
  border-radius: var(--r-inner);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .15s;
}
.ttile svg {
  grid-row: 1 / 3;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ttile b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttile small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ttile:active { background: var(--raised); }
@media (hover: hover) and (pointer: fine) {
  .ttile:hover { background: var(--raised); }
}
/* 휴대폰: 세 칸이 좁아 아이콘 자리가 없어서 글씨 두 줄만. 높이는 위 뮤직웨이브 칸(.wave)과 같게 (앱으로 연 두 칸은 넓어서 아이콘 그대로) */
@media (max-width: 420px) {
  .tool-tiles:not(.two) .ttile { grid-template-columns: 1fr; row-gap: 0; padding: 10px 12px; min-height: 59px; }
  .tool-tiles:not(.two) .ttile svg { display: none; }
}
.page-head + .tool-tiles { margin: 4px 0 4px; }
/* 사용법 카드 */
/* 할 일 / 받을 것 뜻 */
/* 스케줄: 날짜 누르기 안내 */
.sch-side-head { flex-wrap: wrap; }
.sch-hint { flex-basis: 100%; margin: 2px 0 0; font-size: 13px; color: var(--muted); }
/* 기간표: 오늘 선 이름표 */
.tl-today em {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  white-space: nowrap;
}
.tl-body { margin-top: 18px; }
/* 연합: X 계정 링크 */
.xlink { display: inline-flex; align-items: center; gap: 6px; }
.xlink i {
  font-style: normal;
  font-size: 12px;
  font-weight: 900;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  background: var(--text);
  color: var(--surface);
}
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tl-ticks span.near { visibility: hidden; }
.tl-sub + .tl-body .tl-today em { display: none; }
.tl-sub + .tl-body { margin-top: 0; }
/* =========================================================
   음방 투표 (v57)
   ========================================================= */
/* 스케줄 위 한 줄 묶음 */
.mv-strip { margin: 4px 0 12px; padding: 14px 16px; border-radius: var(--r-card); background: var(--surface); }
.mv-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mv-head h2 { margin: 0; font-size: 15px; font-weight: 800; }
.mv-strip ul { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.mv-strip li button {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  border: 0;
  border-radius: var(--r-inner);
  background: var(--raised);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.mv-strip li b { font-size: 14px; font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mv-k { font-size: 12px; font-weight: 800; color: var(--muted); white-space: nowrap; }
.mv-k.hot { color: var(--accent-ink); }
.mv-d { font-size: 13px; color: var(--muted); white-space: nowrap; }
.mv-none { margin: 6px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
/* 일정 줄 안 투표 한 줄 */
.sch-vote {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-ink);
  cursor: pointer;
  text-align: left;
}
.sch-vote span { font-size: 15px; line-height: 1; }
/* 시간표 창 */
.mus-n small {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mus-guide { width: 100%; height: 42px; margin-top: 10px; }
/* 가이드: 음방 */
.mg-section { margin-top: 8px; }
.mg-table { padding: 6px; margin-bottom: 14px; }
.mg-tr {
  width: 100%;
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 10px;
  padding: 10px 10px;
  border: 0;
  border-radius: var(--r-inner);
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 14px;
  text-align: left;
}
button.mg-tr { cursor: pointer; }
button.mg-tr:nth-of-type(odd) { background: var(--raised); }
@media (hover: hover) and (pointer: fine) {
  button.mg-tr:hover { background: var(--active); }
}
.mg-tr b { font-weight: 700; }
.mg-tr small { display: block; font-size: 12px; color: var(--muted); }
.mg-tr i { font-style: normal; color: var(--faint); }
.mg-th { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 6px; padding-bottom: 6px; }
.mg-grid { display: grid; gap: 8px; margin: 10px 0 4px; }
@media (min-width: 700px) {
  .mg-grid { grid-template-columns: 1fr 1fr; }
}
.mg-box { padding: 12px 14px; border-radius: var(--r-inner); background: var(--raised); }
.mg-box.live { background: var(--accent-soft); }
.mg-box h3 { margin: 0 0 8px; font-size: 14px; font-weight: 800; }
.mg-box dl { margin: 0; display: grid; grid-template-columns: 56px 1fr; gap: 6px 10px; font-size: 14px; line-height: 1.5; }
.mg-box dt { color: var(--muted); font-weight: 600; }
.mg-box dd { margin: 0; }
.mg-none { margin: 0; font-size: 14px; color: var(--muted); }
.mv-more summary {
  list-style: none;
  margin-top: 6px;
  padding: 6px 2px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}
.mv-more summary::-webkit-details-marker { display: none; }
.mv-more summary::after { content: ' ›'; }
.mv-more[open] summary { display: none; }
.mv-more ul { margin-top: 4px; }
@media (min-width: 900px) {
  .mv-strip ul { grid-template-columns: 1fr 1fr; }
}
/* =========================================================
   음방 투표 가이드 v59: 카드 간격 · 요일 · 방송사 · 앱 버튼
   ========================================================= */
.mg-cards { display: grid; gap: 12px; }
@media (min-width: 1100px) {
  .mg-cards .guide { padding: 24px 28px; }
}
.mg-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.mg-day {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 22px;
  font-weight: 800;
}
.mg-title { min-width: 0; }
.mg-title h2 { margin: 0; font-size: 20px; font-weight: 800; line-height: 1.2; }
.mg-title small { display: block; margin-top: 2px; font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--faint); }
.mg-air { text-align: right; line-height: 1.15; }
.mg-air b { display: block; font-size: 22px; font-weight: 800; color: var(--accent-ink); letter-spacing: -.02em; }
.mg-air span {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--raised);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.mg-chart { margin: 14px 0 0; font-size: 14px; line-height: 1.55; color: var(--muted); }
.mg-chart span { margin-right: 6px; font-weight: 700; color: var(--text); }
.mg-box-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.mg-box-h h3 { margin: 0; }
.mg-box-h span { font-size: 13px; font-weight: 700; color: var(--muted); text-align: right; }
.mg-period {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--surface);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
  color: var(--text);
}
.mg-period span { display: block; font-size: 12px; font-weight: 700; color: var(--accent-ink); margin-bottom: 1px; }
.mg-steps { margin: 0 0 10px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 6px; }
.mg-steps li { counter-increment: st; position: relative; padding-left: 26px; font-size: 14px; line-height: 1.45; }
.mg-steps li::before {
  content: counter(st);
  position: absolute;
  left: 0;
  top: 0;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--text);
  color: var(--surface);
  font-size: 12px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.mg-app { display: grid; gap: 6px; }
.mg-app .btn { width: 100%; height: 44px; justify-content: center; }
.mg-sms { width: 100%; height: 44px; margin-top: 6px; justify-content: center; }
.mg-tr small em { font-style: normal; font-weight: 800; color: var(--accent-ink); }
.mg-none { line-height: 1.6; }
/* 음방 가이드가 맨 위: 아래 가이드와 간격 */
.mg-section { margin: 8px 0 28px; }
.mg-section > .section-title:first-child { margin-top: 4px; }
/* 사전투표 · 실시간 투표 버튼을 같은 높이에 (칸 아래쪽에 붙임) */
.mg-box { display: flex; flex-direction: column; }
.mg-app { margin-top: auto; padding-top: 12px; }
.mg-btns { display: flex; gap: 6px; }
.mg-btns .btn { flex: 1 1 0; min-width: 0; height: 44px; margin: 0; justify-content: center; white-space: nowrap; }
.mg-btns .mg-sms { flex: 0 0 auto; padding: 0 14px; }
.mg-btns .btn { width: auto; }
.mg-btns .mg-sms { margin-top: 0; }
/* 앱이 2개 이상일 때 (음악중심) + 공식 안내 링크 */
.mg-btns.many { flex-wrap: wrap; }
.mg-btns.many .btn { flex: 1 1 96px; padding: 0 10px; }
.mg-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.mg-links span { width: 100%; font-size: 13px; font-weight: 700; color: var(--muted); }
.mg-links .btn { margin: 0; }
/* 문자 투표 버튼: 배경(연회색·연분홍 칸)과 확실히 구분되게 진한 색 */
.btn.sms { background: var(--text); color: var(--surface); }
@media (hover: hover) and (pointer: fine) {
  .btn.sms:hover { background: var(--text); opacity: .86; }
}
/* 홈 화면 웹앱: 페이지 전체가 고무줄처럼 튕기면 아이폰에서 아래 탭이 같이 끌려가서, 내용만 안쪽 칸에서 스크롤 */
.is-app, .is-app body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.is-app body { padding-bottom: 0; }
.is-app #scroll { position: fixed; inset: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 28px); }
@media (min-width: 1024px) {
  .is-app #scroll { padding-bottom: 48px; }
}
/* 음방 가이드: 점수 항목 · 집계 기간 */
.mg-parts { margin-top: 10px; border-radius: var(--r-inner); background: var(--raised); }
.mg-parts summary { padding: 10px 14px; font-size: 14px; font-weight: 700; cursor: pointer; }
.mg-parts dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 6px 12px;
  margin: 0;
  padding: 0 14px 10px;
  font-size: 14px;
  line-height: 1.5;
}
.mg-parts dt { font-weight: 700; }
.mg-parts dd { margin: 0; color: var(--muted); }
.mg-parts small { display: block; padding: 0 14px 12px; font-size: 12px; color: var(--faint); }
@media (max-width: 420px) {
  .mg-parts dl { grid-template-columns: 1fr; gap: 2px; }
  .mg-parts dd { margin-bottom: 6px; }
}
/* ---------- 음방 가이드 v80: 처음 안내 · 투표 순서 · 1위 점수 막대 ---------- */
.mg-intro { padding: 18px 18px 16px; margin-bottom: 12px; }
.mg-intro h3 { margin: 0 0 12px; font-size: 16px; font-weight: 800; }
.mg-intro ol { margin: 0; padding: 0; list-style: none; counter-reset: it; display: grid; gap: 10px; }
.mg-intro li { counter-increment: it; position: relative; padding-left: 34px; font-size: 14px; line-height: 1.5; }
.mg-intro li::before {
  content: counter(it);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.mg-intro li b { display: block; font-weight: 800; }
.mg-intro li span { color: var(--muted); }
.mg-intro p { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; line-height: 1.55; color: var(--muted); }
@media (min-width: 700px) {
  .mg-intro ol { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
.mg .mg-grid { margin-top: 14px; }
.mg-box-h h3 { display: flex; align-items: center; gap: 7px; }
.mg-box-h h3 em { display: grid; place-items: center; background: var(--text); color: var(--surface); font-weight: 800; font-style: normal; }
.mg-box.live .mg-box-h h3 em { background: var(--accent); color: var(--on-accent); }
.mg-box-h .mg-pct { padding: 2px 8px; border-radius: 999px; background: var(--surface); font-size: 12px; font-weight: 800; color: var(--text); }
.mg-box.none { justify-content: flex-start; }
.mg-score { margin-top: 12px; padding: 14px 14px 4px; border-radius: var(--r-inner); border: 1px solid var(--border); }
.mg-score-h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mg-score-h h3 { margin: 0; font-size: 14px; font-weight: 800; }
.mg-fan { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.mg-fan b { color: var(--accent-ink); font-size: 14px; }
.mg-how { margin: 4px 0 10px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.mg-bar { display: flex; gap: 2px; height: 14px; border-radius: 999px; overflow: hidden; }
.mg-bar i, .mg-legend i { display: block; min-width: 4px; }
.g0 { background: #8b95a1; }
.g1 { background: #b0b8c1; }
.g2 { background: #c9cfd6; }
.g3 { background: #dde1e6; }
.vp { background: var(--accent); }
.vl { background: #e0789f; }
.mg-legend {
  margin: 10px 0 8px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 13px;
  color: var(--muted);
}
.mg-legend li { display: inline-flex; align-items: center; gap: 5px; }
.mg-legend li i { width: 9px; height: 9px; border-radius: 3px; }
.mg-legend li b { color: var(--text); font-weight: 800; }
.mg-legend li.vote { color: var(--accent-ink); font-weight: 700; }
.mg-score .mg-parts { margin: 0 -14px; border-radius: 0 0 var(--r-inner) var(--r-inner); border-top: 1px solid var(--border); background: none; }
.mg-notes { margin-top: 12px; }
.mg-notes h3 { margin: 0 0 6px; font-size: 14px; font-weight: 800; }
.mg-notes ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.mg-notes li.after b { display: block; color: var(--text); font-weight: 700; }
.mg-links { border-top: 0; padding-top: 0; margin-top: 12px; }
:root[data-theme="dark"] .g0 { background: #6b7684; }
:root[data-theme="dark"] .g1 { background: #565f6b; }
:root[data-theme="dark"] .g2 { background: #444b55; }
:root[data-theme="dark"] .g3 { background: #363c44; }
.mg-box-h h3 em { width: auto; height: auto; padding: 2px 7px; border-radius: 999px; font-size: 12px; }
/* 음방 가이드: 음방 탭 하나씩 + 긴 내용 접기 (v84) */
.mg-fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.mg-fold > summary::-webkit-details-marker { display: none; }
.mg-fold > summary::after {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translateY(-2px) rotate(45deg);
  transition: transform .2s;
}
.mg-fold[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
.mg-fold > summary h3 { margin: 0; }
.mg-intro.mg-fold { padding: 14px 18px; }
.mg-intro[open] > summary { margin-bottom: 12px; }
.mg-table.mg-fold { padding: 6px; }
.mg-table > summary { padding: 8px 12px; }
.mg-table > summary h3 { font-size: 16px; font-weight: 800; }
.mg-table[open] > summary { margin-bottom: 4px; }
.mg-pick { scroll-margin-top: 12px; }
.mg-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 10px; }
@media (min-width: 640px) {
  .mg-tabs { grid-template-columns: repeat(7, 1fr); }
}
.mg-tab { position: relative; display: grid; justify-items: center; color: var(--text); font: inherit; cursor: pointer; }
.mg-tab b { white-space: nowrap; }
.mg-tab i { position: absolute; border-radius: 50%; background: var(--accent); }
.mg-tab[aria-selected="true"] { border-color: var(--accent); color: var(--on-accent); }
.mg-tab[aria-selected="true"] small { color: var(--on-accent); opacity: .85; }
.mg-tab[aria-selected="true"] i { background: var(--on-accent); }
.mg-score.mg-fold { padding: 14px; }
.mg-score[open] { padding-bottom: 4px; }
.mg-score > summary::after { margin-left: 4px; }
.mg-score[open] > summary { margin-bottom: 8px; }
.mg-notes.mg-fold { padding: 12px 14px; border-radius: var(--r-inner); border: 1px solid var(--border); }
.mg-notes > summary .mg-cnt { font-size: 13px; color: var(--muted); }
.mg-notes[open] > summary { margin-bottom: 8px; }
/* 음방 가이드: 차트 결과 예측 X 계정 링크 (작은 버튼) */
.mg-pred {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px 6px 6px;
  margin: 0 0 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.mg-pred-x {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--text);
  display: grid;
  place-items: center;
}
.mg-pred-x svg { width: 12px; height: 12px; fill: var(--surface); }
.mg-pred-go { font-size: 12px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) {
  .mg-pred:hover { background: var(--raised); }
}
/* 폰: 상자 안의 상자를 펴서 글 폭을 넓게 (v88) */
@media (max-width: 600px) {
  .mg.guide { padding: 18px 16px 8px; }
  .mg .mg-grid { gap: 0; margin-top: 8px; }
  .mg-box, .mg-box.live { padding: 16px 0; border-radius: 0; background: none; border-top: 1px solid var(--border); }
  .mg-box .mg-app { padding-top: 14px; }
  .mg-period { background: var(--raised); }
  .mg-box.live .mg-period { background: var(--accent-soft); }
  .mg-box dl { grid-template-columns: 1fr; gap: 0; font-size: 15px; }
  .mg-box dt { font-size: 12px; margin-top: 8px; }
  .mg-box dt:first-child { margin-top: 0; }
  .mg-steps li { font-size: 15px; }
  .mg-score, .mg-notes.mg-fold { margin-top: 0; padding: 16px 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
  .mg-score .mg-parts { margin: 8px 0 0; border-radius: var(--r-inner); border: 0; background: var(--raised); }
}
/* 결방 (v90) */
.mg-off { margin: 4px 0 14px; padding: 12px 14px; border-radius: var(--r-inner); background: var(--raised); }
.mg-off b { display: block; font-size: 15px; font-weight: 800; }
.mg-off p { margin: 4px 0 0; font-size: 14px; line-height: 1.55; }
.mg-off a { display: inline-block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.mg-tab-off { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); }
.mg-tab[aria-selected="true"] .mg-tab-off { color: var(--on-accent); }
.mg-offtag {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-style: normal;
  font-size: 12px;
  font-weight: 800;
  background: var(--raised);
  color: var(--muted);
}
.mus-row.off .mus-t, .mus-row.off .mus-c { color: var(--muted); text-decoration: line-through; }
.mus-row.off .mus-n { color: var(--muted); }
.mus-row.off .mus-n small.mus-off { color: var(--muted); font-weight: 700; }
/* 편성표에서 방송 시간이 평소와 달라진 날 (data/onair.json) */
.mus-n small.mus-moved, .sch-air { color: var(--text); font-weight: 700; }
/* 음방 탭: 한 줄 주간 띠 (v92) */
.mg-tabs, .mg-tabs { grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 4px; margin-bottom: 12px; background: var(--raised); border-radius: 16px; }
.mg-tab { min-height: 58px; padding: 9px 0 8px; gap: 3px; border: 0; border-radius: 12px; background: none; }
.mg-tab small { font-size: 16px; font-weight: 800; color: var(--text); line-height: 1.1; }
.mg-tab b { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: -0.02em; }
.mg-tab.today small { color: var(--accent); }
.mg-tab.today::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--accent);
}
.mg-tab[aria-selected="true"] { background: var(--accent); box-shadow: 0 2px 8px rgb(0 0 0 / .12); }
.mg-tab[aria-selected="true"] small, .mg-tab[aria-selected="true"] b { color: var(--on-accent); opacity: 1; }
.mg-tab[aria-selected="true"].today::after { background: var(--on-accent); }
.mg-tab i { top: 5px; right: 5px; width: 6px; height: 6px; }
.mg-tab-off { display: none; }
.mg-tab.off:not([aria-selected="true"]) small { color: var(--muted); }
@media (min-width: 640px) {
  .mg-tab { min-height: 62px; }
  .mg-tab b { font-size: 13px; }
}
.mg-tabs { background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.mg-tab.off:not([aria-selected="true"]) b { text-decoration: line-through; text-decoration-thickness: 1.5px; color: var(--muted); opacity: .7; }
/* 리센느 이번 주 음방: 투표 가이드로 옮김 (v96) */
.mg-section .mv-strip { margin: 0 0 12px; }
.mv-head small { font-size: 13px; color: var(--muted); font-weight: 600; }
/* 연합&기타: 아래 투표 · 스밍 가이드 (v97) */
.og-section { scroll-margin-top: 12px; }
/* v98: 도구는 오늘 맨 아래 작은 줄 */
/* v98: 연합 | 가이드 고르기 */
.ally-seg { margin: 4px 0 14px; }
.og-section { margin-top: 0; padding-top: 0; border-top: 0; }
/* v98: 스케줄 목록 버튼 한 줄, 덜 무겁게 */
@media (max-width: 600px) {
  .ally-seg { display: grid; }
}
/* v98: 스케줄 목록은 오늘부터, 지난 일정은 접기 */
.sch-past { margin-bottom: 12px; }
.sch-past > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: var(--r-inner);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.sch-past > summary::-webkit-details-marker { display: none; }
.sch-past > summary::after {
  content: '';
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.sch-past[open] > summary { margin-bottom: 10px; }
.sch-past[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
/* v99: 도구는 오늘 요약 카드 바로 아래 한 줄 (3칸) */
/* v101: 재화 모으는 법 */
.mg-earn { margin: 0; padding-left: 1.1em; }
.mg-earn li + li { margin-top: 3px; }
/* v103: 비교 표 재화 한 줄 */
.mg-tr { align-items: start; }
.mg-cost {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
/* v104: 할 일 제목은 낱말 사이에서만 줄바꿈 */
.row-title { word-break: keep-all; overflow-wrap: anywhere; }
/* v109: 오늘 도구는 아이콘 + 이름 + 한 줄 설명. 웹앱에서는 두 칸을 넓게 */
.tool-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tool-tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tool-tiles.two .ttile { grid-template-columns: auto 1fr; row-gap: 2px; padding: 14px 14px; }
.tool-tiles.two .ttile svg { grid-row: 1 / 3; margin: 0 4px 0 0; width: 26px; height: 26px; }
@media (max-width: 420px) { .tool-tiles.two .ttile { row-gap: 0; padding: 10px 12px; min-height: 59px; } }
.is-app .tool-tiles:not(.two) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* 연합&기타 > 기타: 음총팀 가이드 링크. 위 도구 칸과 띄움 */
.tool-tiles + .guides { margin-top: 16px; }
.guide.gl { padding: 16px 18px; }
.guides .guide.gl + .guide.gl { margin-top: 10px; }
.gl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.gl-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.gl-sub { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.gl-head .btn { flex: none; }
.guide.gl h3 { margin: 14px 0 6px; font-size: 13px; color: var(--muted); }
.gl-none { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
/* =========================================================
   v150: 받을 것 접기 · 오늘 다 끝냄 · 기록 옮기기 · 달력 글자
   ========================================================= */
/* 오늘: 할 일 먼저, 받을 것은 접힌 한 줄 (넓은 화면에선 오른쪽 칸 맨 위) */
.day-cols { display: block; }
.day-col.get { margin-top: 22px; }
.get-fold {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 4px 12px;
  width: 100%;
  padding: 14px 16px;
  border: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gf-title { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.gf-sum { display: flex; flex-wrap: wrap; gap: 2px 12px; min-width: 0; font-size: 13px; color: var(--muted); }
.gf-sum span { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.gf-sum .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.gf-sum b { font-weight: 700; color: var(--text-2); }
.day-col.get.open .get-fold .chev { transform: rotate(180deg); }
.day-col.get.open .get-fold { border-radius: var(--r-card) var(--r-card) var(--r-inner) var(--r-inner); }
@media (hover: hover) and (pointer: fine) {
  .get-fold:hover { background: var(--raised); }
}
@media (max-width: 420px) {
  .get-fold { grid-template-columns: 1fr auto; }
  .gf-sum { grid-column: 1; grid-row: 2; }
  .get-fold .chev { grid-column: 2; grid-row: 1 / span 2; }
}
@media (min-width: 1100px) {
  .day-cols { display: grid; }
  .day-cols.solo { grid-template-columns: minmax(0, 1fr); }
  .day-col.get { margin-top: 70px; }
  .get-fold { grid-template-columns: 1fr auto; }
  .gf-sum { grid-column: 1; grid-row: 2; }
  .get-fold .chev { grid-column: 2; grid-row: 1 / span 2; }
}
/* 오늘 할 일을 다 끝냈을 때: 막대는 초록(완료 색), 아래에 연속 완료 · 내일 할 일 */
.hero.is-done .hero-title { display: flex; align-items: center; gap: 8px; }
.done-mark { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--positive); }
.done-mark svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.hero.just .done-mark { animation: done-pop .4s cubic-bezier(.22, 1, .36, 1) both; }
@keyframes done-pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.done-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.done-stats p { margin: 0; padding: 10px 12px; border-radius: var(--r-inner); background: var(--surface); display: flex; flex-direction: column; gap: 2px; }
.done-stats span { font-size: 13px; font-weight: 600; color: var(--muted); }
.done-stats b { font-size: 18px; font-weight: 800; letter-spacing: -.01em; color: var(--text); }
/* 체크 기록 옮기기 */
.xfer-link { margin: 28px 0 0; text-align: center; }
.link-btn { border: 0; background: none; padding: 8px 10px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.xfer-link + .updated { margin-top: 8px; }
.xfer-step { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.xfer-step h3 { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.xfer-step textarea {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: var(--r-inner);
  border: 1px solid var(--control);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  word-break: break-all;
  resize: vertical;
}
.xfer-info { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.xfer-info.err { color: var(--hot); font-weight: 600; }
.install-body .btn { margin-top: 4px; }
/* 기간표 눈금: 휴대폰에선 숫자만, '오늘' 이름표와 조금 더 떨어진 것도 숨김 */
@media (max-width: 599.98px) {
  .tl-u { display: none; }
  .tl-ticks span.near-m { visibility: hidden; }
  .tl-ticks span:last-child { transform: translateX(-50%); }
}
.tl-u { font-style: normal; }
/* =========================================================
   리센느 일정 달력 (v160)
   - 칸마다 날짜 + 짧은 이름 막대(옅은 같은 색 바탕 + 진한 글씨). 3개 넘으면 2개 + "+N".
   - 여러 날 일정은 시작일 · 종료일에만 (종료일은 이름 앞에 ~).
   - 고른 날(휴대폰은 처음에 오늘) 일정은 달력 바로 아래, 컴퓨터(1100px~)는 오른쪽 칸.
   ========================================================= */
.sch-cal { padding: 0; overflow: hidden; }
.sc-dow, .sc-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.sc-dow { padding: 10px 0 8px; border-bottom: 1px solid var(--border); }
.sc-dow span { text-align: center; font-size: 12px; font-weight: 600; color: var(--faint); }
.sc-dow .sun, .sc-day.sun .sc-num { color: #d22030; }
.sc-dow .sat, .sc-day.sat .sc-num { color: #1f63c6; }
.sc-week { border-bottom: 1px solid var(--border); }
.sc-week:last-child { border-bottom: 0; }
.sc-day {
  min-width: 0;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  padding: 5px 2px 6px;
  border: 0;
  border-right: 1px solid var(--rule);
  background: none;
  font: inherit;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
.sc-day:last-child { border-right: 0; }
.sc-day.out { background: color-mix(in srgb, var(--ground) 55%, var(--surface)); }
.sc-num { align-self: center; flex: none; width: 26px; height: 26px; line-height: 26px; margin-bottom: 2px; border-radius: 50%; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sc-day.out .sc-num { color: var(--faint); opacity: .55; }
.sc-day.today .sc-num { background: var(--accent); color: var(--on-accent); }
.sc-day.sel { background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.sc-day.sel:not(.today) .sc-num { box-shadow: inset 0 0 0 2px var(--text); }
.sc-pill {
  display: block;
  flex: none;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.55;
  padding: 0 3px;
  border-radius: 3px;
  letter-spacing: -.03em;
  /* 칸이 좁아서 한 줄이면 4~6글자만 보여요 → 두 줄까지 */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  overflow: hidden;
  background: color-mix(in srgb, var(--c) 15%, var(--surface));
  color: color-mix(in srgb, var(--c) 82%, #000);
}
.sc-day.past .sc-pill { opacity: .55; }
.sc-more { font-size: 9.5px; font-weight: 700; color: var(--muted); padding-left: 2px; line-height: 1.3; }
@media (min-width: 700px) {
  .sc-day { min-height: 118px; padding: 6px 5px; gap: 3px; border-right-color: var(--border); }
  .sc-num { align-self: flex-start; font-size: 14px; }
  .sc-pill { font-size: 12px; font-weight: 600; line-height: 1.45; padding: 2px 6px; border-radius: 5px; letter-spacing: 0; }
  .sc-more { font-size: 11.5px; padding-left: 4px; }
}
@media (hover: hover) and (pointer: fine) {
  .sc-day:not(.out):not(.sel):hover { background: var(--raised); }
}
:root[data-theme="dark"] .sc-dow .sun, :root[data-theme="dark"] .sc-day.sun .sc-num { color: #e5888d; }
:root[data-theme="dark"] .sc-dow .sat, :root[data-theme="dark"] .sc-day.sat .sc-num { color: #8aaee3; }
:root[data-theme="dark"] .sc-day.today .sc-num { color: var(--on-accent); }
:root[data-theme="dark"] .sc-pill { background: color-mix(in srgb, var(--c) 30%, var(--surface)); color: color-mix(in srgb, var(--c) 35%, var(--text)); }
/* 고른 날 (갤럭시 캘린더 아래 칸처럼): 큰 날짜 · 요일 · D-day + 전날 · 다음 날 · 닫기 */
.sc-dayhead { display: flex; align-items: center; gap: 12px; padding: 6px 4px 0; }
.sc-dnum { font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.sc-dayhead p { margin: 0; flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sc-dayhead strong { font-size: 15px; font-weight: 700; }
.sc-dayhead small { font-size: 13px; font-weight: 600; color: var(--muted); }
.sc-dayhead small i { font-style: normal; color: var(--accent-ink); }
.sc-dayhead small i.hot { color: var(--hot); }
.sc-nav { display: flex; gap: 4px; flex: none; }
.sc-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--surface); color: var(--text-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sc-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sc-btn:active { background: var(--active); }
@media (hover: hover) and (pointer: fine) { .sc-btn:hover { background: var(--active); } }
.sc-daylist { background: var(--surface); border-radius: var(--r-card); padding: 2px 16px; animation: sc-in .18s ease-out both; }
.sc-daylist ul { list-style: none; margin: 0; padding: 0; }
.sc-none { padding: 18px 16px; font-size: 14px; color: var(--muted); }
@keyframes sc-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* 리센느 일정 머리줄 · 거르기 (v159) */
.sch-head { gap: 8px; }
.sch-head .cal-nav { gap: 4px; flex: none; }
.sch-head .cal-nav .btn { min-width: 36px; padding: 0 10px; }
.sch-find { display: inline-grid; place-items: center; }
.sch-find svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.sch-head .cal-nav .sch-find.on { background: var(--text); color: var(--surface); }
.sch-tools[hidden] { display: none; }
.sch-title { white-space: nowrap; min-width: 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sch-tools { animation: sc-in .16s ease-out both; }
.sch-filters { margin-bottom: 10px; }
.sch-filters .sch-chips { margin: 0; align-items: center; }
.fchip-sep { flex: none; width: 1px; height: 20px; background: var(--control); margin: 0 2px; }
.fchip.src { color: var(--muted); }
.fchip.src.on { color: var(--surface); }
/* 맨 위로: 오른쪽 아래, 조금 내려갔을 때만 */
.to-top {
  position: fixed;
  right: 16px;
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 14px);
  z-index: 19;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-2);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  -webkit-tap-highlight-color: transparent;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
@media (hover: hover) and (pointer: fine) {
  .to-top:hover { background: var(--raised); color: var(--text); }
}
@media (min-width: 1024px) {
  .to-top { right: 28px; bottom: 28px; }
}
:root[data-theme="dark"] .to-top { box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }

/* 음방 주간 스케줄 (일반 안내 · 리센느 출연과 무관): 줄 = 음방, 칸 = 월~일 */
.wk { padding: 16px 10px 12px; margin: 0 0 12px; --lab: 50px; }
.wk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 0 4px; }
.wk-head h2 { margin: 0; font-size: 18px; font-weight: 800; }
.wk-badge { padding: 3px 8px; border-radius: 999px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--border); font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.wk-lead { margin: 6px 4px 0; font-size: 13px; line-height: 1.5; color: var(--muted); word-break: keep-all; }
.wk-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 4px 10px; padding: 0; list-style: none; font-size: 12px; font-weight: 600; color: var(--muted); }
.wk-key li { display: inline-flex; align-items: center; gap: 6px; }
.wk-key i { --c: var(--muted); width: 18px; height: 11px; border-radius: 4px; background: color-mix(in srgb, var(--c) 12%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent); }
.wk-key i.k-air { background: color-mix(in srgb, var(--c) 30%, var(--surface)); box-shadow: none; }
.wk-key i.k-jury { background: var(--surface); box-shadow: none; border: 1px dashed var(--c); }
.wk-grid { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.wk-row { display: grid; grid-template-columns: var(--lab) repeat(7, minmax(0, 1fr)); gap: 3px 0; padding: 4px 0; position: relative; }
.wk-row + .wk-row { border-top: 1px solid var(--border); }
/* 요일 칸 세로 점선 */
.wk-row:not(.wk-hd)::before { content: ''; position: absolute; inset: 0 0 0 var(--lab); pointer-events: none; background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), color-mix(in srgb, var(--border) 70%, transparent) calc(100% / 7 - 1px) calc(100% / 7)); }
.wk-hd { padding: 6px 0; background: var(--raised); }
.wk-hd span { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); }
.wk-hd .sat { color: #2f6fd6; }
.wk-hd .sun { color: #d0453b; }
.wk-hd .on { justify-self: center; min-width: 24px; border-radius: 999px; background: var(--accent); color: #fff; }
.wk-lab { grid-column: 1; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 2px 4px 2px 6px; }
.wk-lab b { font-size: 13px; font-weight: 800; line-height: 1.2; color: color-mix(in srgb, var(--c) 78%, #000); word-break: keep-all; }
.wk-lab small { font-size: 10.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.wk-l { display: none; }
.wk-air, .wk-span {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  min-width: 0;
  min-height: 46px;
  margin: 0 2px;
  padding: 5px 2px;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.wk-air { background: color-mix(in srgb, var(--c) 26%, var(--surface)); color: color-mix(in srgb, var(--c) 82%, #000); }
.wk-air b { font-size: 11.5px; font-weight: 800; }
.wk-air i { font-style: normal; font-weight: 700; white-space: nowrap; letter-spacing: -.03em; padding: 0 3px; border-radius: 4px; background: color-mix(in srgb, var(--c) 70%, #000); color: #fff; }
.wk-air small { display: none; }
.wk-span { background: color-mix(in srgb, var(--c) 10%, var(--surface)); color: color-mix(in srgb, var(--c) 78%, #000); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 24%, transparent); }
.wk-span b { font-size: 10.5px; font-weight: 800; }
.wk-span small { font-size: 9.5px; font-weight: 600; opacity: .85; }
.wk-span .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.wk-span.mini { padding: 5px 1px; }
.wk-span.mini .num { white-space: nowrap; font-size: 9.5px; letter-spacing: -.04em; }
.wk-span.jury { min-height: 36px; background: var(--surface); box-shadow: none; border: 1px dashed color-mix(in srgb, var(--c) 55%, transparent); }
.wk-span.cut-r { margin-right: 0; border-top-right-radius: 0; border-bottom-right-radius: 0; }
.wk-span.cut-l { margin-left: 0; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.wk-air:active, .wk-span:active { filter: brightness(.94); }
.wk-foot { margin: 10px 4px 0; font-size: 11.5px; line-height: 1.5; color: var(--muted); word-break: keep-all; }
/* 넓은 화면: 이름 전체 · 앱 이름 · 안내 글까지 */
@media (min-width: 600px) {
  .wk { padding: 20px 18px 16px; --lab: 88px; }
  .wk-s { display: none; }
  .wk-l { display: inline; }
  .wk-air, .wk-span { min-height: 58px; padding: 6px 4px; font-size: 11px; }
  .wk-air b { font-size: 13px; }
  .wk-span b { font-size: 12px; }
  .wk-air small { display: block; }
  .wk-air small { opacity: .85; }
  .wk-span small { font-size: 10.5px; }
}
:root[data-theme="dark"] .wk-lab b { color: color-mix(in srgb, var(--c) 45%, var(--text)); }
:root[data-theme="dark"] .wk-air { background: color-mix(in srgb, var(--c) 34%, var(--surface)); color: color-mix(in srgb, var(--c) 22%, var(--text)); }
:root[data-theme="dark"] .wk-air i { background: color-mix(in srgb, var(--c) 60%, var(--surface)); }
:root[data-theme="dark"] .wk-span { background: color-mix(in srgb, var(--c) 16%, var(--surface)); color: color-mix(in srgb, var(--c) 30%, var(--text)); }
:root[data-theme="dark"] .wk-span.jury { background: var(--surface); }
:root[data-theme="dark"] .wk-hd .sat { color: #8aaee3; }
:root[data-theme="dark"] .wk-hd .sun { color: #e5888d; }
/* 오늘 탭 날짜 넘겨 보기: ‹ 날짜 › · 오늘로 */
.hero-date { align-items: center; }
.day-nav { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 2px; margin-left: -6px; }
.day-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 999px; background: transparent; color: var(--text); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.day-btn svg { width: 18px; height: 18px; }
.day-btn:hover { background: var(--surface); }
.day-btn:active { transform: scale(.92); }
.day-btn:disabled { opacity: .3; cursor: default; background: transparent; transform: none; }
.day-label { color: var(--text); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.day-rel { margin-left: 5px; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.day-rel.away { color: var(--accent-ink); }
.day-today { margin-left: 4px; padding: 5px 11px; border: 0; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.day-note { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--text-2); word-break: keep-all; }
.check:disabled { opacity: .35; cursor: default; transform: none; }
/* 공지 팝업: 다른 창과 달리 휴대폰에서도 아래 시트가 아니라 가운데 창 */
.modal.notice-pop { align-items: center; padding: 16px; }
.notice-pop .modal-box { max-width: 400px; max-height: calc(100dvh - 32px); border-radius: var(--r-card); padding: 22px 20px 20px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22); }
.notice-body { margin-top: 12px; font-size: 15px; line-height: 1.6; }
.notice-body p { margin: 0 0 8px; }
.notice-actions { display: flex; gap: 8px; margin-top: 16px; }
.notice-actions .btn { flex: 1; }

/* 오늘: 다음 할 일을 원형 진행률과 함께 표시하고, 종류는 한 줄 필터로 둔다. */
.hero.has-priority { padding: 15px 19px 17px; }
.has-priority .hero-date { display: flex; justify-content: space-between; margin: 0; }
.has-priority .day-nav { gap: 2px; }
.has-priority .day-btn { width: 25px; height: 28px; }
.has-priority .upd { background: transparent; font-size: 12px; color: var(--on-hero); }
.priority { position: relative; margin-top: 12px; padding-top: 14px; border-top: 1px solid rgb(255 255 255 / .22); }
.priority header, .priority h1, .priority p { max-width: calc(100% - 84px); }
.priority header { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; min-height: 23px; font-size: 13px; font-weight: 650; }
.priority .deadline { border-radius: 14px; padding: 3px 9px; font-size: 12px; background: var(--surface); color: var(--muted); }
.priority .deadline.soon { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.priority h1 { font-size: 22px; letter-spacing: -.045em; margin: 7px 0 1px; line-height: 1.3; overflow-wrap: anywhere; }
.priority p { font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.priority .ring { position: absolute; top: 16px; right: 0; }
.priority footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.priority-count, .priority-detail { border: 0; font: inherit; cursor: pointer; }
.priority-count { background: transparent; color: inherit; font-size: 12px; padding: 7px 0; }
.priority-detail { background: var(--surface); color: var(--accent-ink); border-radius: 9px; padding: 8px 12px; font-size: 13px; font-weight: 750; }
.priority button:focus-visible { outline-color: currentColor; }
.t-grid .cat-grid { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; margin: 15px 0 0; min-width: 0; }
.t-grid .ccard { padding: 8px 10px; border-radius: 20px; background: transparent; box-shadow: none; flex: none; }
.t-grid .ccard.on { color: var(--accent-ink); background: var(--accent-soft); }
.t-grid .ccard b { font-size: 13px; }
.t-grid .ccard small, .t-grid .ccard .cbar, .t-grid .ccard .dot { display: none; }
.t-grid .group-head { margin-bottom: 6px; }
.division-title { margin: 10px 4px 5px; color: var(--muted); font-size: 14px; font-weight: 700; }
.t-grid .row-sub:empty { display: none; }
.t-ev { background: var(--surface); border-radius: var(--r-card); padding: 12px 14px 6px; margin-top: 12px; }
.t-ev .side-title { font-size: 14px; margin: 0 0 4px; }
.t-ev .sch-next { border-radius: 0; padding: 7px 0; min-height: 0; background: transparent; }
.t-ev .sch-next + .sch-next { margin-top: 0; border-top: 1px solid var(--rule); }
@media (max-width: 1099px) {
  .t-quick .wave { padding-top: 6px; padding-bottom: 6px; min-height: 44px; }
}
.t-quick .tool-tiles .ttile svg { display: block; flex: none; width: 15px; height: 15px; margin: 0; }
.t-quick .tool-tiles .ttile { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 4px; min-height: 44px; border-radius: 12px; color: var(--text-2); background: var(--accent-soft); }
.t-quick .ttile b { font-size: 12px; }
.t-quick .ttile small { display: none; }
.hourly-tasks { order: 5; min-width: 0; }
.hourly-tasks .row-more { padding-left: 16px; }
.hourly-tasks .task-memo { white-space: pre-line; overflow-wrap: anywhere; }
.t-main .row-more :is(.task-actions, .proof-actions) { gap: 5px; margin-top: 8px; }
.t-main .row-more :is(.task-actions, .proof-actions) .btn { height: 34px; padding-inline: 12px; font-size: 13px; }
@media (pointer: coarse) {
  .t-main .row-more :is(.task-actions, .proof-actions) .btn { min-height: 44px; }
}
.activity-switch { order: 4; display: inline-flex; align-self: flex-start; gap: 2px; margin: 16px 0 8px; padding: 3px; border-radius: var(--r-inner); background: var(--raised); }
.activity-switch button { min-height: 44px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.activity-switch button[aria-pressed="true"] { background: var(--surface); color: var(--accent-ink); }
/* 누르는 영역 44px: 보이는 크기는 그대로 두고 둘레만 넓혀요 (.check 와 같은 방식) */
.ccard, .day-btn, .priority-detail, .priority-count { position: relative; }
.ccard::after, .priority-detail::after { content: ""; position: absolute; inset: -4px 0; }
.priority-count::after { content: ""; position: absolute; inset: -6px 0; }
.day-btn::after { content: ""; position: absolute; inset: -8px -10px; }
.row-head { min-height: 44px; }
/* Admin editing tools: grouped fields, draft recovery and before/after review. */
.adm-fields { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; padding: 14px; margin: 0; border: 1px solid var(--rule); border-radius: 12px; min-width: 0; }
.adm-fields legend { font-weight: 700; padding: 0 6px; }
.adm-draft, .adm-review { padding: 14px; background: var(--surface); border-radius: 12px; margin: 12px 0; overflow-wrap: anywhere; }
.adm-draft .btn { margin: 8px 6px 0 0; }
.adm-review summary { cursor: pointer; font-weight: 700; }
.adm-review p { display: grid; gap: 4px; margin: 8px 0; }
.adm-review del, .adm-review ins { display: block; white-space: pre-wrap; text-decoration: none; padding: 6px; border-radius: 6px; }
.adm-review del { border-left: 3px solid #b8336a; }
.adm-review ins { border-left: 3px solid #1b7a4a; }
@media (max-width: 600px) { .adm-fields { grid-template-columns: minmax(0,1fr); padding: 10px; } }
