/* 현황 화면: 요약 카드, 달력, 기록, 리마인드 알림, 기록 내보내기 */

/* ---------- 기록 내보내기 ---------- */
.export { display: grid; gap: 10px; }
.export h2 { margin: 0; }
.export-range { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.export-range select { width: auto; }
.custom-range { display: inline-flex; gap: 6px; align-items: center; }
.custom-range input { width: auto; }
.godpia-card .btn { justify-self: start; }

/* ---------- 통독 하루 마감 ---------- */
.cutoff-card { display: grid; gap: 9px; }
.cutoff-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cutoff-head h3, .cutoff-head p { margin: 0; }
.cutoff-head > b { flex: none; color: var(--accent); font-size: 1rem; }
#reading-cutoff { width: 100%; accent-color: var(--accent); cursor: pointer; }
.cutoff-ticks { display: grid; grid-template-columns: repeat(6, 1fr); color: var(--muted); font-size: .7rem; text-align: center; }
.cutoff-ticks span:first-child { text-align: left; }
.cutoff-ticks span:last-child { text-align: right; }
.cutoff-card > p { margin: 0; }
.cutoff-advice { padding: 9px 11px; border-radius: 11px; background: var(--qt-soft); color: var(--ink); font-size: .84rem; line-height: 1.5; }

/* ---------- 리마인드 알림 ---------- */
.remind { display: grid; gap: 10px; }
.remind-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.remind-head h2 { margin: 0; }
.times { display: flex; gap: 4px; }
.time-chip { font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: 99px; background: var(--qt-soft); color: var(--qt); }
.remind-state { margin: 0; font-weight: 700; }
.remind-state.on { color: var(--accent); }
.remind .btn.primary { justify-self: start; }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: .9rem; }

/* ---------- 현황 ---------- */
.hero-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.hero { display: grid; gap: 14px; align-content: start; }
.hero header { display: flex; justify-content: space-between; align-items: center; }
.hero .link { font-size: .86rem; font-weight: 650; text-decoration: none; }
.hero.read .tag { color: var(--accent); }
.hero.qt .tag, .hero.qt .link { color: var(--qt); }
.hero.empty { justify-items: start; }
.hero-main { display: flex; align-items: center; gap: 16px; }
.hero-main p { margin: 0; }
.hero-status { font-size: 1.08rem; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 2px !important; }
.ring-wrap { position: relative; width: 80px; height: 80px; flex: none; }
.ring { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: var(--surface-2); }
.ring-fg { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .5s; }
.ring-wrap > span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 1px; font-size: .8rem; color: var(--muted); }
.ring-wrap b { font-size: 1.3rem; color: var(--ink); letter-spacing: -0.04em; }
.qt-today {
  width: 80px; height: 80px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-2); font-size: 1.8rem; border: 3px dashed var(--line);
}
.qt-today.done { background: var(--qt); color: #fff; border: 0; }
.qt-today svg { width: 38px; height: 38px; stroke-width: 3; }
.mini { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mini li { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; display: grid; }
.mini b { font-size: 1rem; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.mini span { font-size: .74rem; color: var(--muted); }

.cal-head { max-width: 520px; margin-left: auto; margin-right: auto; display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head h2 { margin: 0; }
.cal-head .icon-btn { width: 34px; height: 34px; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; max-width: 520px; margin: 0 auto; }
.wk { text-align: center; font-size: .74rem; color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.wk:first-child { color: var(--warn); }
.cell {
  aspect-ratio: 1 / 1.05; border-radius: 10px; background: var(--surface-2);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-width: 0;
}
.cell.blank { background: transparent; }
.cell.future { opacity: .45; }
.cell.today { box-shadow: inset 0 0 0 2px var(--ink); }
.cell .d { font-size: .84rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.marks { display: flex; gap: 3px; align-items: center; height: 8px; }
.m-read { width: 14px; height: 6px; border-radius: 3px; background: transparent; display: inline-block; }
.m-read.full { background: var(--accent); }
.m-read.part { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.m-qt { width: 6px; height: 6px; border-radius: 50%; background: transparent; display: inline-block; }
.m-qt.on { background: var(--qt); }
.cal-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.legend { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); }
.legend i:not(:first-child) { margin-left: 8px; }

.timeline { list-style: none; margin: 4px 0 0; padding: 0; }
.timeline li { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.timeline li:first-child { border-top: 0; }
.tl-date { font-weight: 700; font-size: .9rem; color: var(--ink); text-decoration: none; }
.tl-row { margin: 0; display: flex; align-items: center; gap: 6px; font-size: .92rem; }
.tag.sm { font-size: .8rem; }
.note {
  margin: 0; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft);
  color: var(--ink); font-size: .88rem; white-space: pre-wrap;
}
.note.qt { background: var(--qt-soft); }

details summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "펼치기"; font-size: .8rem; color: var(--muted); }
details[open] summary::after { content: "접기"; }
details summary h2 { margin: 0; }
.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 6px; margin-top: 12px; }
.book { background: var(--surface-2); border-radius: 10px; padding: 7px 10px; font-size: .84rem; display: grid; grid-template-columns: 1fr auto; }
.book em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.book .bar { grid-column: 1 / -1; background: var(--line); }
.book.full { background: var(--accent-soft); }

@media (max-width: 560px) {
  .cell { border-radius: 8px; gap: 3px; }
  .cell .d { font-size: .76rem; }
  .m-read { width: 10px; height: 5px; }
  .m-qt { width: 5px; height: 5px; }
}

/* 계정 · 여러 기기 */
.acct-form { display: grid; gap: 8px; max-width: 360px; }
.acct-form input, .acct-more input { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); font: inherit; }
.acct-more { margin-top: 10px; }
.acct-more summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.acct-more .inline { margin-top: 8px; }
.acct-who { margin: 0 0 10px; }
.acct-qr { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.acct-qr-img { width: 160px; height: 160px; background: #fff; border-radius: 10px; padding: 6px; }
.acct-qr-img svg { width: 100%; height: 100%; display: block; }
.acct-qr p { margin: 0 0 6px; }
.acct-code { font-size: 1.6rem; font-weight: 800; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--accent); }

/* 달력 날짜 누르면 그날 기록 */
button.cell { border: 0; font: inherit; color: inherit; cursor: pointer; }
button.cell:disabled { cursor: default; }
.cell.sel { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.day-detail { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.day-detail h3 { margin: 0; font-size: 1rem; }
.day-detail .note { white-space: pre-wrap; margin: 0; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; font-size: .9rem; max-height: 220px; overflow-y: auto; }
.day-detail .note.qt { background: var(--qt-soft); }
.day-detail .tl-row { margin: 0; overflow-wrap: anywhere; }

/* 관리 안의 통독표 */
.ptable-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ptable-head h2 { margin: 0; }
#ptable-card .bar { margin: 8px 0 10px; }
#ptable { max-height: 52vh; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; position: relative; }

/* 권별 진행: 누르면 자세히 */
button.book { border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.book.sel { box-shadow: inset 0 0 0 2px var(--accent); background: var(--accent-soft); }
.book-detail { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 10px; }
.book-detail h3 { margin: 0; }
.book-detail h4 { margin: 4px 0 0; font-size: .92rem; }
.bd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.bd-grid > div { display: grid; gap: 3px; background: var(--surface-2); border-radius: 10px; padding: 10px; }
.bd-list { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; font-size: .9rem; overflow-wrap: anywhere; }
.bd-list b { margin-right: 4px; }

/* 통독 현황 한눈에 보기 */
.glance { padding: 0; overflow: hidden; }
.glance-head { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.glance-head > span { display: grid; gap: 2px; min-width: 0; }
.glance-head b { font-size: 1.02rem; }
.glance-head small { color: var(--muted); font-size: .84rem; }
.glance-head small b { font-size: inherit; color: var(--accent); }
.glance-head svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.glance-head[aria-expanded="true"] svg { transform: rotate(180deg); }
.glance-body { padding: 4px 16px 16px; display: grid; gap: 12px; border-top: 1px solid var(--line); }
.glance-top { display: flex; align-items: center; gap: 16px; padding-top: 12px; flex-wrap: wrap; }
.gring-wrap { flex: none; width: 140px; height: 140px; }
.gring { width: 100%; height: 100%; }
.gring circle { fill: none; stroke-width: 14; transform: rotate(-90deg); transform-origin: 70px 70px; }
.gring-bg { stroke: var(--surface-2); }
.gring-ot { stroke: var(--accent); }
.gring-nt { stroke: var(--qt); }
.gring-pct { font-size: 28px; font-weight: 800; fill: var(--ink); letter-spacing: -0.04em; }
.gring-sub { font-size: 11px; fill: var(--muted); }
.gring-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; flex: 1; min-width: 160px; }
.gring-legend li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; font-size: .88rem; }
.gring-legend i { width: 12px; height: 12px; border-radius: 4px; }
.gring-legend i.ot { background: var(--accent); }
.gring-legend i.nt { background: var(--qt); }
.gring-legend i.rest { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.gring-legend em { font-style: normal; font-weight: 700; font-variant-numeric: tabular-nums; }
.gl-group { margin: 6px 0 0; font-size: .98rem; }
.gl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.gl-row { display: grid; gap: 4px; }
.gl-top { display: flex; align-items: baseline; gap: 6px; }
.gl-top b { font-size: .92rem; }
.gl-top em { margin-left: auto; font-style: normal; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gl-done { font-size: .7rem; font-weight: 700; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.gl-strip { display: flex; gap: 1px; height: 12px; }
.gl-strip i { flex: 1 1 0; min-width: 0; border-radius: 2px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.gl-strip i.on { background: var(--accent); box-shadow: none; }
.gl-row.full .gl-strip i.on { background: var(--accent); }
.gl-period { font-size: .78rem; color: var(--muted); }
.gl-row.none .gl-top b { color: var(--muted); font-weight: 600; }

/* 관계도 자세한 정도(주요 인물 / 전체 인물) */
.rg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.rg-head .label { margin: 0; }
.rg-detail-seg button { padding: 4px 10px; font-size: 12.5px; }

/* 업데이트 기록 */
.cl-pop { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; background: rgb(0 0 0 / .35); padding: 16px; }
.cl-card { width: min(440px, 100%); max-height: 82vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; box-shadow: 0 12px 40px rgb(0 0 0 / .25); overflow: hidden; }
.cl-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px 8px; }
.cl-head h3 { margin: 0; font-size: 17px; } .cl-head small { font-weight: 500; color: var(--muted); margin-left: 6px; }
.cl-body { overflow-y: auto; padding: 0 16px 16px; display: grid; gap: 10px; }
.cl-entry { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.cl-entry.major { box-shadow: inset 3px 0 0 var(--primary, #2f6f55); }
.cl-entry h4 { margin: 0 0 6px; display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; }
.cl-entry h4 b { color: var(--primary, #2f6f55); } .cl-entry h4 span { flex: 1; } .cl-entry h4 time { font-size: 12px; color: var(--muted); font-weight: 500; }
.cl-entry ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; font-size: 13.5px; line-height: 1.45; }
.cl-body details summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: var(--muted); padding: 6px 2px; }
.cl-body details[open] > summary { margin-bottom: 8px; }
.cl-body details > .cl-entry { margin-bottom: 8px; }

/* 업데이트 기록 · 벅수의 계획 */
.cl-row { display: flex; flex-wrap: wrap; gap: 8px; }
.cl-row .btn { flex: 1; min-width: 150px; }
.plan-card { width: min(560px, 100%); }
.plan-time { font-weight: 500; color: var(--muted); font-size: 12px; margin-left: 6px; }
.plan-body { gap: 8px; }
.plan-text { white-space: pre-wrap; line-height: 1.6; font-size: 14px; }
.plan-edit { width: 100%; min-height: 260px; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font: inherit; font-size: 14px; line-height: 1.55; background: var(--surface-2); color: var(--ink); resize: vertical; box-sizing: border-box; }
.plan-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* 업데이트 기록 · 벅수의 계획 버튼 글자가 칸을 넘지 않게 */
.cl-row .btn { white-space: normal; line-height: 1.3; text-align: center; padding: 10px 8px; }
.cl-row .btn small { display: block; font-size: 11.5px; margin-top: 2px; }

/* 관계도: 장별로 보기 */
.rg-chap { margin: 2px 0 6px; display: flex; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.rg-chap::-webkit-scrollbar { display: none; }
.rg-chap button { white-space: nowrap; flex: none; }

/* 관계도 분류 선택: 짧은 버튼으로 한 줄에 배치 */
.seg.wide.kin-seg { width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 2px; gap: 1px; border-radius: 10px; }
.kin-seg::-webkit-scrollbar { display: none; }
.seg.wide.kin-seg button { flex: 0 0 auto; white-space: nowrap; padding: 5px 9px; border-radius: 8px; font-size: 12px; line-height: 1.2; }
.kin-empty { margin: 10px 2px; }

/* 뒤로가기 종료 확인 (양이 울상) */
.exit-pop { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: rgb(0 0 0 / .4); padding: 18px; animation: cheer-in .3s ease-out; }
.exit-pop.bye { animation: cheer-out .3s ease-in forwards; }
.exit-card { position: relative; width: min(380px, 100%); background: var(--surface); border-radius: 22px; padding: 18px 16px 16px; box-shadow: 0 14px 40px rgb(0 0 0 / .3); text-align: center; }
.exit-x { position: absolute; top: 8px; right: 8px; }
.exit-art { width: 100%; aspect-ratio: 2 / 1; display: grid; place-items: center; }
.exit-msg { margin: 6px 0 0; font-size: 14.5px; line-height: 1.5; }
.exit-fallback { font-size: 40px; margin: 0; }

/* QT 관계도 · 관계마다 나의 묵상 */
.qt-rels .qt-rel { border-top: 1px solid var(--line); padding: 10px 0 2px; display: grid; gap: 4px; }
.qt-rels .qt-rel b { font-size: .95rem; line-height: 1.4; }
.qt-rels .qt-rel b em { font-style: normal; color: var(--muted); font-weight: 500; margin-left: 4px; }
.qt-rels .qt-rel small { color: var(--muted); font-size: .76rem; }
.qt-rels .qt-rel-note { margin: 0; font-size: .86rem; line-height: 1.55; }
.qt-rel-mine { width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; font: inherit; font-size: .9rem; line-height: 1.5; background: var(--surface-2); color: var(--ink); resize: vertical; }

/* 통독표: 7일씩 넘겨 보기. 날짜를 크게, 칸 하나가 한 장 */
.tweek-nav { display: flex; align-items: center; justify-content: space-between; margin: 12px 0 8px; font-variant-numeric: tabular-nums; }
.tweek-nav b { font-size: .92rem; }
.tday { display: flex; gap: 12px; width: 100%; align-items: stretch; text-align: left; border: 0; background: var(--surface-2); color: inherit; font: inherit; border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; }
.tday.current { outline: 2px solid var(--accent); outline-offset: 1px; }
.tday.late .td-top em { color: var(--warn); }
.td-left { flex: 0 0 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; background: var(--surface); border-radius: 10px; padding: 6px 0; }
.td-dow { font-size: .72rem; color: var(--muted); }
.td-date { font-size: 1.2rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.tday.done .td-date { color: var(--accent); }
.td-main { flex: 1; min-width: 0; display: grid; gap: 6px; align-content: center; }
.td-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.td-top em { font-style: normal; font-size: .78rem; color: var(--muted); }
.td-cells { display: flex; flex-wrap: wrap; gap: 3px; }
.td-cells i { width: 14px; height: 10px; border-radius: 3px; background: var(--line); }
.td-cells i.on { background: var(--accent); }
.tday.part .td-cells i.on { background: var(--qt); }
.td-range { font-size: .82rem; color: var(--muted); line-height: 1.4; }
.td-range small { margin-left: 4px; font-size: .74rem; }

/* 통독표는 7일씩 넘겨 보므로 안쪽 스크롤을 두지 않음 */
#ptable { max-height: none; overflow: visible; }

/* 통독·QT 카드는 항상 두 열 (좁은 화면은 글자와 간격만 줄임) */
.hero-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 480px) {
  .hero-main { gap: 10px; }
  .hero-status { font-size: .92rem; }
  .hero-main p { font-size: .78rem; }
  .hero { padding: 14px; }
}

/* 통독 현황 숫자 카드: 아이콘 + 큰 숫자 + 설명 */
.kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.kpis li { background: var(--surface-2); border-radius: 12px; padding: 9px 6px; display: grid; justify-items: center; text-align: center; gap: 1px; }
.kpis i { font-style: normal; font-size: 1.15rem; line-height: 1.2; }
.kpis b { font-size: .92rem; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.kpis span { font-size: .7rem; color: var(--muted); line-height: 1.3; }
.kpi-plan.behind b { color: var(--warn); }
.kpi-plan.ahead b { color: var(--accent); }
.pbar { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; margin-top: 2px; }
.pbar span { display: block; height: 100%; background: var(--accent); border-radius: 6px; transition: width .4s ease; }

/* 통독표 지도: Day를 칸으로 늘어놓음. 칸 색이 상태, 칸을 누르면 아래에 그 날 */
.tlegend { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .74rem; color: var(--muted); margin: 8px 0 10px; }
.tlegend span { display: inline-flex; align-items: center; gap: 5px; }
.tlegend i, .tcell { display: inline-block; }
.tlegend i { width: 12px; height: 12px; border-radius: 4px; background: var(--line); }
.tlegend i.done { background: var(--accent); }
.tlegend i.part { background: var(--qt); }
.tlegend i.late { background: var(--warn); }
.tlegend i.today { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); gap: 6px; }
.tcell { aspect-ratio: 1; border: 0; border-radius: 10px; background: var(--surface-2); color: var(--muted); font: inherit; font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; padding: 0; }
.tcell.done { background: var(--accent); color: var(--accent-ink); }
.tcell.part { background: var(--qt-soft); color: var(--qt); }
.tcell.late { background: var(--warn-soft); color: var(--warn); }
.tcell.today { box-shadow: inset 0 0 0 2px var(--accent); color: var(--ink); }
.tcell.sel { outline: 2px solid var(--ink); outline-offset: 2px; }
.tdetail { margin-top: 12px; background: var(--surface-2); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; justify-items: start; }
.td-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.td-head b { font-size: 1rem; }
.td-head em { font-style: normal; margin-left: auto; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.td-range { margin: 0; font-size: .9rem; line-height: 1.5; }
.tgrid { grid-template-columns: repeat(auto-fill, minmax(30px, 1fr)); gap: 5px; }
.tcell { font-size: .72rem; border-radius: 8px; }

/* 종료 확인: X는 크게 강조, 종료 버튼은 화면 어디든 랜덤 위치, 양이 ✕ 를 가리킴 */
.exit-x { position: absolute; top: 10px; right: 10px; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-size: 26px; font-weight: 800; line-height: 1; box-shadow: 0 6px 18px rgb(0 0 0 / .25); cursor: pointer; padding: 0; }
.exit-finger { position: absolute; top: 16px; right: 72px; font-size: 34px; line-height: 1; pointer-events: none; animation: exit-poke .9s ease-in-out infinite; }
@keyframes exit-poke { 0%, 100% { transform: translateX(0) rotate(-12deg); } 50% { transform: translateX(-9px) rotate(-12deg); } }
.exit-quit { position: absolute; min-width: 110px; padding: 12px 18px; border: 0; border-radius: 14px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 800; font-size: 1rem; box-shadow: 0 6px 18px rgb(0 0 0 / .3); cursor: pointer; z-index: 1; }
.exit-card { padding-top: 26px; }
.exit-closing { position: fixed; inset: 0; z-index: 90; display: grid; place-content: center; gap: 8px; text-align: center; background: var(--bg); font-size: 1.05rem; font-weight: 700; }

/* 관리 화면의 통독·QT 숫자: 박스 없이 한 줄 가로 글 (예: 🔥 27일 연속 · ✅ 계획대로 · 🏁 4월 18일) */
.mini, .kpis { display: block; line-height: 1.8; }
.mini li, .kpis li { display: inline; background: none; border-radius: 0; padding: 0; text-align: left; }
.mini li + li::before, .kpis li + li::before { content: " · "; color: var(--muted); }
.mini li b, .kpis li b { font-size: .95rem; margin-right: 3px; }
.mini li span, .kpis li span { font-size: .8rem; color: var(--muted); }
.kpis li i { font-style: normal; margin-right: 3px; }
.kpi-plan.behind b { color: var(--warn); }
.kpi-plan.ahead b { color: var(--accent); }

/* 종료 버튼 비활성화 상태 (EXIT_QUIT_ENABLED=false) */
.exit-quit:disabled { opacity: .4; cursor: default; }

/* 업데이트 기록: 메이저 묶음(접힘) > 마이너 > 소단위 */
.cl-major { border-radius: 12px; background: var(--surface-2); padding: 8px 12px; }
.cl-major > summary { cursor: pointer; font-weight: 700; font-size: 14.5px; list-style: none; }
.cl-major > summary::-webkit-details-marker { display: none; }
.cl-major > summary::before { content: "▸ "; color: var(--muted); }
.cl-major[open] > summary::before { content: "▾ "; }
.cl-major > summary small { font-weight: 500; color: var(--muted); font-size: 12.5px; margin-left: 6px; }
.cl-major[open] > summary { margin-bottom: 8px; }
.cl-major > .cl-entry { background: var(--surface); margin-bottom: 8px; }
.cl-subs { margin: -2px 0 8px 14px; display: grid; gap: 6px; border-left: 2px solid var(--line); padding-left: 10px; }
.cl-subs .cl-entry { background: var(--surface); }

/* 복사한 절 칩 · 절 팝업 */
.cv-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 6px; }
.cv-chip { border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); border-radius: 99px; padding: 3px 10px; font: inherit; font-size: .8rem; cursor: pointer; }
.cv-card { width: min(420px, 100%); }
.cv-row { margin-bottom: 12px; }
.cv-row small { display: block; color: var(--muted); font-weight: 600; font-size: .78rem; }
.cv-row p { margin: 3px 0 0; line-height: 1.6; font-size: .95rem; }

/* 읽은 기록: 통독·QT 따로 보기 */
.read-mode { margin-bottom: 8px; }
.cal.mode-read .m-qt { display: none; }
.cal.mode-qt .m-read { display: none; }
.qt-ref { font-weight: 600; }
