/* 소리성경: 한 줄 읽기 칼럼. 진도는 위에 고정, 읽기 버튼은 아래 받침대처럼 고정.
   쉬운 화면(2026-11): 한 화면에 할 일 하나, 큰 버튼 하나, 숫자 표 대신 문장 하나. */
:root {
  --paper: #f2f4f3;
  --surface: #ffffff;
  --ink: #1a211e;
  --ink2: #4a5650;
  --ink3: #6f7a75;
  --muted: #66716c;
  --line: #e6eae7;
  --fill: #eef1ef;
  --fill2: #e7ebe8;
  --now: #f3f6f4;
  --mark: #f1e38c;
  --read: #0e7f57;
  --accent: #0e7f57;
  --accent-ink: #ffffff;
  --accent-soft: #e4f3ec;
  --deep: #2c5a4d;
  --ok: #0e7f57;
  --warn: #a8620f;
  --amber-ink: #8a5a08;
  --red: #d04545;
  --rec: #c93a3a;
  --rec-soft: #fdeeee;
  --tab: #98a19d;
  --knob-off: #d3d9d6;
  --hm1: #bfe3d2;
  --hm2: #5fb592;
  --font-text: "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  --font-ui: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --text-size: 1.12rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #131715; --surface: #1b201d; --ink: #e5ebe7; --ink2: #b9c3bd; --ink3: #8f9993; --muted: #9ba59f; --line: #2c342f;
    --fill: #272e2a; --fill2: #232a26; --now: #232a26;
    --mark: #514a1c; --read: #72d6a6; --accent: #58c193; --accent-ink: #0c1a14; --accent-soft: #1c3329; --deep: #86c4ae;
    --ok: #6cc28f; --warn: #e2a457; --amber-ink: #e2a457; --red: #ff8a80;
    --rec: #ff8a80; --rec-soft: #3a2221;
    --tab: #6f7a74; --knob-off: #3a433e; --hm1: #24503f; --hm2: #3a8566;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font-ui); font-size: 16px; line-height: 1.5; letter-spacing: -.01em;
  padding-top: env(safe-area-inset-top, 0px);
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.num { font-variant-numeric: tabular-nums; }
svg.fi { fill: currentColor; }
svg.li { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

main#view { max-width: 720px; margin: 0 auto; padding-inline: 16px; padding-block: 8px 104px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
body.reading { padding-top: 0; background: var(--surface); }
body.reading main#view { padding-top: 0; padding-bottom: 0; gap: 12px; }

/* 맨 위 줄: 왼쪽에 이름(또는 뒤로), 오른쪽에 단추 하나 */
.top { height: 48px; display: flex; align-items: center; justify-content: space-between; padding-left: 8px; margin-right: -6px; }
.top.nav { padding-left: 0; margin-inline: -8px; }
.brand { font-family: var(--font-text); font-size: 19px; font-weight: 700; color: var(--deep); letter-spacing: -.02em; }
.ttl { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.03em; }
.iconbtn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--ink2); cursor: pointer; text-decoration: none; flex: none; padding: 0; }
.iconbtn svg { width: 24px; height: 24px; }
.textbtn { height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: none; font-size: 15.5px; font-weight: 500; color: var(--ink2); cursor: pointer; }
.iconbtn:active, .textbtn:active { background: var(--fill2); }

/* 화면마다 맨 위에 문장 하나 */
.hl { margin: 0 8px 10px; font-size: clamp(22px, 6.9vw, 26px); line-height: 1.4; font-weight: 700; letter-spacing: -.03em; word-break: keep-all; }
.hl em { font-style: normal; color: var(--accent); }
.hl.title { margin: -4px 8px 2px; }
.lead { margin: 0 8px; font-size: 14px; line-height: 1.5; color: var(--ink3); }
.lead:empty { display: none; }

.page-head { display: grid; gap: 4px; padding: 8px 8px 0; }
.page-head h1 { font-size: 24px; font-weight: 700; margin: 0; letter-spacing: -.03em; line-height: 1.35; text-wrap: balance; }
.page-head p { margin: 0; }
.back { text-decoration: none; color: var(--ink2); font-size: 15px; font-weight: 500; }
h2 { font-size: 16px; font-weight: 600; margin: 0 0 4px; }

.card { background: var(--surface); border-radius: 24px; padding: 22px; display: grid; gap: 10px; min-width: 0; }
.bar { height: 6px; background: var(--fill); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.notice { margin: 0; background: color-mix(in srgb, var(--warn) 9%, var(--surface)); padding: 12px 14px; border-radius: 14px; font-size: 14.5px; }
.btn { border: 0; background: var(--fill); border-radius: 12px; padding: 10px 14px; font-weight: 500; cursor: pointer; }
main#view > .btn, main#view > .row > .btn { background: var(--fill2); }
.btn.danger { color: var(--warn); }
.icon-btn { border: 0; background: var(--fill); border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.icon-btn[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cta { display: flex; justify-content: space-between; align-items: center; gap: 12px; text-decoration: none; background: var(--accent); color: var(--accent-ink); border-radius: 16px; padding: 15px 20px; font-weight: 600; }
.cta b { font-family: var(--font-text); font-size: 1.1rem; font-weight: 600; }
.cta.small { padding: 10px 14px; border-radius: 12px; }

/* 큰 버튼: 화면에 하나만 초록색 */
.bt { width: 100%; height: 56px; border: 0; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 16px; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer; }
.bt svg { width: 22px; height: 22px; flex: none; }
.bt.primary { background: var(--accent); color: var(--accent-ink); }
.bt.soft { background: var(--accent-soft); color: var(--accent); }
.bt.gray { background: var(--fill); color: var(--ink); }
.bt.text { height: 48px; background: none; color: var(--ink2); font-size: 16px; font-weight: 500; }
.bt:active { filter: brightness(.96); }
.bt:disabled { opacity: .6; cursor: default; }

/* 홈 */
.next { gap: 0; }
.next p { margin: 0; }
.next .nx-eye { font-size: 14px; font-weight: 500; color: var(--ink3); }
.next .nx-ref { margin: 4px 0 2px; font-family: var(--font-text); font-size: 28px; font-weight: 700; line-height: 1.3; letter-spacing: -.02em; }
.next .nx-sub { margin-bottom: 18px; font-size: 15px; color: var(--ink2); }
.wk { padding: 20px 18px; gap: 14px; }
.wk-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px; }
.wk-head b { font-size: 16px; font-weight: 600; }
.wk-head span { font-size: 14px; font-weight: 600; color: var(--accent); }
.wk-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.wk-days li { display: grid; justify-items: center; gap: 6px; font-size: 12.5px; color: var(--ink3); }
.wk-days i { width: 32px; height: 32px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; }
.wk-days i svg { width: 18px; height: 18px; stroke-width: 2.8; }
.wk-days .done i { background: var(--accent); color: var(--accent-ink); }
.wk-days .tdy { color: var(--ink); font-weight: 600; }
.wk-days .tdy:not(.done) i { background: var(--surface); box-shadow: inset 0 0 0 2px var(--accent); }
.demo { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; align-items: center; padding: 18px 20px; }
.demo .ic, .login .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.demo .ic svg, .login .ic svg { width: 22px; height: 22px; }
.demo p { margin: 0; font-family: var(--font-text); font-size: 17px; line-height: 1.5; word-break: keep-all; }
.demo p span { color: var(--read); font-weight: 600; }
.demo small { font-size: 13px; color: var(--ink3); }
/* 함께 읽는 중 (challenge.js homeCard) */
.today-top { display: flex; justify-content: space-between; gap: 12px; }
.today .big { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1.2; }
.today .right { text-align: right; }
.prow-top { display: flex; justify-content: space-between; gap: 8px; }

/* 한 줄씩: 왼쪽 이름, 오른쪽 지금 값 */
.menu { padding: 4px 0; gap: 0; }
.item { width: 100%; min-height: 56px; padding: 0 14px 0 22px; border: 0; background: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; font-weight: 500; text-align: left; text-decoration: none; color: inherit; cursor: pointer; }
div.item, label.item { cursor: default; }
.item-name { min-width: 0; padding-block: 8px; }
.item-name small { display: block; font-size: 13px; font-weight: 400; color: var(--ink3); line-height: 1.4; }
.item-val { display: inline-flex; align-items: center; gap: 2px; flex: none; max-width: 62%; font-size: 15px; font-weight: 400; color: var(--ink3); white-space: nowrap; }
.item-val svg { width: 20px; height: 20px; opacity: .75; flex: none; }
.item-val.go { color: var(--accent); font-weight: 500; }
.item-val.started { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.item.sw { padding-right: 20px; }
.item select, .item input[type="time"] { -webkit-appearance: none; appearance: none; border: 0; background: transparent; min-height: 44px; padding: 0; margin: 0; font-size: 15px; color: var(--ink3); text-align: right; text-align-last: right; cursor: pointer; max-width: 100%; }
.item input[type="time"]:disabled { opacity: .45; }
.item-note { margin: -6px 22px 12px; font-size: 13px; color: var(--ink3); }
.item-note:empty { display: none; }
/* 고르는 줄: 줄 전체가 select라서 어디를 눌러도 열린다 */
.item.pick { position: relative; cursor: pointer; }
.item.pick select { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; min-height: 0; opacity: 0; }
.item.pick:has(select:focus-visible) { outline: 2px solid var(--accent); outline-offset: -4px; border-radius: 14px; }
.mini { display: inline-block; width: 56px; height: 5px; margin-right: 8px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.mini i { display: block; height: 100%; background: var(--accent); }
.sec { margin: 6px 14px -4px; font-size: 13.5px; font-weight: 500; color: var(--ink3); }
input.toggle { -webkit-appearance: none; appearance: none; position: relative; flex: none; width: 50px; height: 30px; margin: 0; border: 0; border-radius: 15px; background: var(--knob-off); cursor: pointer; transition: background .2s; }
input.toggle::before { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .2s; }
input.toggle:checked { background: var(--accent); }
input.toggle:checked::before { transform: translateX(20px); }
input.toggle:disabled { opacity: .5; cursor: default; }

/* 성경 목록 */
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--fill2); width: max-content; max-width: 100%; }
.seg a, .seg button { border: 0; border-radius: 9px; background: transparent; padding: 7px 12px; font-size: 14px; font-weight: 500; color: var(--ink2); cursor: pointer; text-decoration: none; white-space: nowrap; }
.seg [aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(20, 30, 25, .12); }
.card .seg { background: var(--fill); }
.searchlink { height: 48px; padding: 0 14px; border-radius: 14px; background: var(--fill2); display: flex; align-items: center; gap: 8px; font-size: 15.5px; color: var(--ink3); text-decoration: none; }
.searchlink svg { width: 20px; height: 20px; flex: none; }
.books .item { min-height: 54px; }
.books .item-name { font-family: var(--font-text); font-size: 17px; font-weight: 600; }
.chgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.chgrid a { aspect-ratio: 1; max-width: 100%; display: grid; place-items: center; background: var(--surface); border-radius: 14px; text-decoration: none; font-size: 16px; font-weight: 500; font-variant-numeric: tabular-nums; }
.chgrid a.part { box-shadow: inset 0 0 0 2px var(--accent); }
.chgrid a.done { background: var(--accent); color: var(--accent-ink); }

/* 읽기 */
.readhead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: var(--surface); margin-inline: -16px; display: grid; }
/* 읽기 화면은 제목줄이 상태 표시줄 영역까지 덮는다 (스크롤한 본문이 시계·배터리 뒤로 비치거나 겹치지 않게) */
body.reading .readhead { top: 0; padding-top: env(safe-area-inset-top, 0px); }
.readbar { min-height: 52px; padding: 0 8px; display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 4px; align-items: center; }
.rtitle { display: grid; justify-items: center; text-align: center; min-width: 0; line-height: 1.3; }
.rtitle b { font-family: var(--font-text); font-size: 18px; font-weight: 700; }
.rtitle span { font-size: 12px; color: var(--ink3); }
.rtitle .rhint { color: var(--accent); }
.fontbtn { justify-self: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: var(--fill); font-family: var(--font-text); font-size: 17px; font-weight: 700; cursor: pointer; }
.readbar .icon-btn { justify-self: center; }
.readhead .bar { height: 3px; border-radius: 0; }
.switch { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; color: var(--muted); cursor: pointer; }
.switch input { accent-color: var(--accent); width: 18px; height: 18px; }

/* 본문은 화면 좌우 끝까지 넓게 (바깥 여백 16px 중 4px를 당겨 쓴다) */
ol.verses { list-style: none; margin: 0 -4px; padding: 0; display: grid; gap: 0; }
.verse { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 0 8px; align-items: baseline; padding: 4px 10px 4px 4px; border-radius: 14px; scroll-margin-top: 110px; scroll-margin-bottom: 190px; }
/* 지금 읽는 절은 옅은 바탕 */
.verse[data-state="now"] { margin: 6px 0; padding-block: 8px; background: var(--now); }
.verse.flash { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: var(--mark); } }
/* 절 번호: 동그라미 없이 숫자만. 읽은 절은 초록, 건너뛴 절은 주황, 읽는 중인 절은 진하게 */
.verse:not(.empty) { cursor: pointer; }
.vnum { border: 0; background: none; width: 100%; padding: 0; text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; cursor: pointer; color: var(--ink3); }
.verse.past .vnum { color: var(--read); }
.verse[data-state="done"] .vnum { color: var(--read); font-weight: 700; }
.verse[data-state="skip"] .vnum { color: var(--warn); font-weight: 700; }
.verse[data-state="now"] .vnum { color: var(--ink); font-weight: 700; }
.vtext { font-family: var(--font-text); font-size: var(--text-size); line-height: 1.85; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.verse.empty .vtext { font-family: var(--font-ui); font-size: .85rem; color: var(--muted); }
.vtext span.r, .vtext span.d { color: var(--read); font-weight: 600; transition: color .2s; }
.marks .vtext span.d { color: var(--warn); text-decoration: underline wavy var(--warn); text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.vtext span.cur { box-shadow: -2px 0 0 0 var(--accent); }
.vstate { grid-column: 2; font-size: .75rem; color: var(--muted); min-height: 0; }
/* '읽음', '읽는 중'은 번호 색으로 보이므로 화면에서는 숨기고 화면 읽기 프로그램에만 알린다. '건너뜀'만 보여 준다 */
.vstate:empty, .verse:not([data-state="skip"]) .vstate { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.verse[data-state="skip"] .vstate { color: var(--warn); }
.verse[data-state="done"] .vstate { color: var(--ok); }
.complete { background: var(--accent-soft); border-radius: 20px; padding: 18px; display: grid; gap: 10px; }
.complete p { margin: 0; }
.spacer { height: 210px; }

/* 아래 받침대: 지금 상태를 문장으로, 큰 버튼 하나 */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface); border-radius: 24px 24px 0 0; box-shadow: 0 -1px 0 var(--line), 0 -12px 30px rgba(20, 30, 25, .07); padding: 14px 16px max(14px, calc(8px + env(safe-area-inset-bottom, 0px))); }
.dock-in { max-width: 720px; margin: 0 auto; display: grid; gap: 12px; }
/* 앞 장을 다 읽고 넘어왔을 때 잠깐 보이는 소식 */
.arrived { margin: 0; padding: 10px 14px; background: var(--accent-soft); color: var(--ink); border-radius: 14px; font-size: 14px; animation: arrived 4.5s ease forwards; }
@keyframes arrived { 0%, 75% { opacity: 1; } 100% { opacity: 0; } }
.dstate { min-height: 26px; display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 15px; color: var(--ink2); text-align: center; word-break: keep-all; overflow-wrap: anywhere; }
.dstate b { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.dstate.ok b { color: var(--accent); }
.dstate.weak { display: grid; justify-items: center; gap: 2px; }
.dstate.weak b { color: var(--amber-ink); }
.dstate.weak span { font-size: 14px; }
/* 듣는 중을 알리는 막대 (소리 크기를 재는 것이 아니라, 듣고 있다는 표시) */
.lv { display: inline-flex; align-items: center; gap: 3px; height: 20px; }
.lv i { width: 4px; border-radius: 2px; background: currentColor; animation: lv 1.1s ease-in-out infinite; }
.lv i:nth-child(1) { height: 8px; animation-delay: -.9s; }
.lv i:nth-child(2) { height: 16px; animation-delay: -.2s; }
.lv i:nth-child(3) { height: 20px; animation-delay: -.6s; }
.lv i:nth-child(4) { height: 13px; animation-delay: -.4s; }
.lv i:nth-child(5) { height: 7px; animation-delay: -.75s; }
@keyframes lv { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.lv.low i { height: 5px; opacity: .55; animation: none; }
.lv.low i:nth-child(3) { height: 8px; }
.drow { display: flex; gap: 10px; }
.drow .bt { flex: 1; min-width: 0; }
.recbtn { flex: none; min-width: 78px; height: 56px; padding: 0 14px; border: 0; border-radius: 16px; background: var(--fill); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 15.5px; font-weight: 600; cursor: pointer; }
.recbtn .rdot { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); flex: none; }
.recbtn[aria-pressed="true"] { background: var(--rec-soft); color: var(--rec); }
.recbtn.live .rdot { animation: pulse 1.2s ease-in-out infinite; }
.recbtn .rtime { font-weight: 500; font-variant-numeric: tabular-nums; }
.recbtn .rtime:empty { display: none; }
@keyframes pulse { 50% { opacity: .3; } }
.typebox { display: grid; gap: 8px; }
.typebox textarea { width: 100%; background: var(--fill); border: 0; border-radius: 14px; padding: 12px 14px; resize: none; font-family: var(--font-text); font-size: 1rem; }
.hint { font-family: var(--font-text); color: var(--muted); font-size: .92rem; overflow-wrap: anywhere; }
.hint b { color: var(--ink); font-weight: 600; }

/* 아래에서 올라오는 창: 읽기 설정, 다 읽었을 때, 알아 두기 */
.dim { position: fixed; inset: 0; z-index: 40; background: rgba(14, 20, 17, .46); animation: dim .2s ease; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 720px; max-height: 90vh; margin: 0 auto; overflow-y: auto; background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px 20px max(18px, calc(8px + env(safe-area-inset-bottom, 0px))); animation: sheet .25s cubic-bezier(.2, .8, .2, 1); }
@keyframes dim { from { opacity: 0; } }
@keyframes sheet { from { transform: translateY(40%); opacity: 0; } }
.grab { width: 40px; height: 4px; margin: 0 auto 18px; border-radius: 2px; background: var(--knob-off); }
.sheet h3 { margin: 0 4px 18px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.field { margin: 0 4px 18px; }
.lab { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--ink3); }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sizes button { height: 52px; padding: 0; border: 0; border-radius: 14px; background: var(--fill); font-family: var(--font-text); font-weight: 600; cursor: pointer; }
.sizes button:nth-child(1) { font-size: 15px; }
.sizes button:nth-child(2) { font-size: 19px; }
.sizes button:nth-child(3) { font-size: 23px; }
.sizes button:nth-child(4) { font-size: 27px; }
.sizes .on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--fill); }
.seg2 > * { height: 44px; padding: 0; border: 0; border-radius: 11px; background: none; display: grid; place-items: center; font-size: 15.5px; font-weight: 500; color: var(--ink2); text-decoration: none; cursor: pointer; }
.seg2 > .on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(20, 30, 25, .12); }
.seg2.out { background: var(--fill2); }
.seg2.out > * { height: 40px; }
.sheet .item { padding: 0 0 0 4px; }
.sheet .item-note { margin: -6px 4px 12px; }
.sheet .bt.gray { margin-top: 12px; }
.sheet.center { text-align: center; }
.bigcheck { width: 68px; height: 68px; margin: 10px auto 16px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.bigcheck svg { width: 36px; height: 36px; stroke-width: 2.8; }
.sheet h2 { margin: 0; font-size: 23px; font-weight: 700; line-height: 1.35; letter-spacing: -.03em; word-break: keep-all; }
.sheet .msg { margin: 6px 0 0; font-size: 15.5px; color: var(--ink2); }
.three { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.three > div { display: grid; gap: 2px; font-size: 13px; color: var(--ink3); }
.three b { font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.sheet .three { margin: 20px 0 22px; padding: 14px 0; border-radius: 16px; background: var(--paper); }
.card.three { padding: 20px 0; gap: 0; }
.card.three b { font-size: 19px; }
.sheet .notes { display: grid; gap: 10px; margin: -6px 0 18px; text-align: left; }
.sheet .notes:empty { display: none; }
.sheet .notes p { margin: 0; }
/* 시트 안에 넣은 카드 (1독, 읽은 장) */
.sheet > .card { padding: 6px 4px 0; background: none; border-radius: 0; }
.sheet > .card h2 { font-size: 20px; }
.sheet > .card p { margin: 0; }
.aboutlist { margin: 0 4px 14px; padding-left: 1.2em; display: grid; gap: 8px; font-size: 14.5px; color: var(--ink2); }
.aboutlinks { margin: 0 4px 6px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14.5px; }
.aboutlinks a { color: var(--accent); }

/* 찾기 */
.searchbox { display: flex; gap: 8px; align-items: center; }
.searchbox input { flex: 1; min-width: 0; height: 48px; background: var(--fill2); border: 0; border-radius: 14px; padding: 0 14px; }
.searchbox .icon-btn { width: 48px; height: 48px; background: var(--fill2); }
.searchbox .icon-btn[aria-pressed="true"] { background: var(--accent); }
.results { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.results a { display: block; padding: 12px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.results p { margin: 4px 0 0; font-family: var(--font-text); line-height: 1.7; }
.tag { margin-left: 8px; font-size: .75rem; color: var(--warn); }
.tag.go { color: var(--accent); font-weight: 500; }

/* 기록 */
.hm-head { display: flex; justify-content: space-between; align-items: baseline; }
.hm-head b { font-size: 16px; font-weight: 600; }
.hm-head span { font-size: 13.5px; color: var(--ink3); }
.hm { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 15px); grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 4px; }
.hm i { border-radius: 4px; background: var(--fill); }
.hm .l1 { background: var(--hm1); }
.hm .l2 { background: var(--hm2); }
.hm .l3 { background: var(--accent); }
.hm .none { background: transparent; }
.hm-note { margin: 0; font-size: 13px; color: var(--ink3); }
.chnow { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.chnow b { font-size: 1.6rem; font-weight: 600; }
.chsub { margin: 0; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; height: 150px; }
.bars .b { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.bars .track { position: relative; flex: 1; width: 100%; }
.bars .track i { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: min(100%, 28px); height: max(3px, calc(var(--h) * (100% - 20px))); border-radius: 6px 6px 3px 3px; background: color-mix(in srgb, var(--accent) 40%, var(--fill)); }
.bars .n { position: absolute; left: 0; right: 0; bottom: calc(var(--h) * (100% - 20px) + 4px); text-align: center; font-size: .75rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bars .now i { background: var(--accent); }
.bars .zero i { background: var(--fill); }
.bars .now .n { color: var(--accent); font-weight: 700; }
.bars small { font-size: .72rem; color: var(--muted); white-space: nowrap; }
.bars .now small { color: var(--ink); font-weight: 600; }

/* 설정 */
.login { grid-template-columns: 44px minmax(0, 1fr) 20px; gap: 14px; align-items: center; padding: 16px 12px 16px 18px; border: 0; text-align: left; cursor: pointer; width: 100%; }
.login .ic { width: 44px; height: 44px; }
.login b { display: block; font-size: 16px; font-weight: 600; }
.login small { display: block; font-size: 13.5px; color: var(--ink3); }
.login > svg { width: 20px; height: 20px; color: var(--ink3); opacity: .75; }
.dangerlink { justify-self: center; height: 52px; padding: 0 16px; border: 0; background: none; color: var(--red); font-size: 15px; font-weight: 500; cursor: pointer; }

/* 아래 탭 */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--surface); border-top: 1px solid var(--line); display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar a { display: grid; justify-items: center; gap: 3px; padding: 9px 0 7px; text-decoration: none; color: var(--tab); font-size: 11.5px; font-weight: 500; }
.tabbar svg { width: 24px; height: 24px; fill: currentColor; }
.tabbar a[aria-current="page"] { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .bar i, input.toggle, input.toggle::before { transition: none; }
  .verse.flash, .arrived, .recbtn.live .rdot, .lv i, .dim, .sheet { animation: none; }
  .vtext span.r, .vtext span.d { transition: none; }
}

/* 역본 선택 */
.vpick { -webkit-appearance: none; appearance: none; background: var(--fill2); border: 0; border-radius: 999px; padding: 8px 12px; font-size: .85rem; max-width: 9em; }
.row.spread { justify-content: space-between; }
ol.verses[lang="en"] .vtext { word-break: normal; line-height: 1.75; }
button.cta { border: 0; cursor: pointer; font: inherit; font-weight: 600; }

/* 함께 읽기 (통독 챌린지) */
.tg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tg-list a, .tg-mini { display: grid; gap: 6px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.tg-mini { padding: 8px 0; border: 0; border-radius: 0; background: transparent; }
.tg-form { gap: 14px; }
.tg-form label, .tg-field { display: grid; gap: 6px; }
.tg-form label > span, .tg-field > span { font-size: .9rem; color: var(--muted); }
.tg-form input, .tg-form select, #joinCode { width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; min-width: 0; }
.tg-form .row select { width: auto; flex: 1; }
.tg-form .cta { justify-content: space-between; width: 100%; }
/* 폼 안의 체크 칸은 글자 앞에 한 줄로 (위의 label 칸 나누기를 따르지 않게) */
.tg-form label.switch { display: flex; gap: 8px; align-items: center; }
.tg-form label.switch.consent { align-items: flex-start; }
.tg-form label.switch input { width: 18px; height: 18px; flex: none; margin: 2px 0 0; padding: 0; }
#joinCode { text-transform: uppercase; letter-spacing: .2em; flex: 1; }
.tg-code { font-size: 2rem; font-weight: 600; letter-spacing: .25em; color: var(--accent); -webkit-user-select: all; user-select: all; }
/* 웹에서 초대 링크를 열면 먼저 보이는 '앱에서 참여' 안내 (challenge.js appFirst) */
.tg-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 14px; }
.tg-steps .row { margin-top: 8px; }
a.btn { color: inherit; text-decoration: none; display: inline-block; }
.card.highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.members { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.members li { display: grid; gap: 4px; }
.members li.me b { color: var(--accent); }
/* 참여자 줄: 왼쪽 프로필 동그라미 + 오른쪽 이름·진도 */
.members li.p { grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; align-items: center; }
.members li.p > .mbody { display: grid; gap: 4px; min-width: 0; }
.chip { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); margin-left: 6px; }
.chip:first-child { margin-left: 0; }
.chip.ok { border-color: var(--ok); color: var(--ok); }
.chip.warn { border-color: var(--warn); color: var(--warn); }

/* 계정 */
.account { gap: 12px; }
.acct-row { display: grid; gap: 2px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.google { width: 100%; padding: 12px; font-weight: 600; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; background: #fff; color: #1f1f1f; border-color: #747775; }
.btn.google svg { width: 18px; height: 18px; }
@media (prefers-color-scheme: dark) { .btn.google { background: #131314; color: #e3e3e3; border-color: #8e918f; } }
.btn:disabled { opacity: .6; cursor: default; }
.linkish { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 8px 4px; font-size: .85rem; }
.warnText { color: var(--warn); }

/* 계정 삭제 */
.delete-box { border-top: 1px solid var(--line); padding-top: 10px; }
.delete-box summary { cursor: pointer; color: var(--muted); font-size: .9rem; }
.delete-body { display: grid; gap: 10px; padding-top: 10px; }
.delete-body p, .delete-body ul { margin: 0; }
.delete-body .set { display: grid; gap: 6px; font-size: 14px; }
.delete-body ul { padding-left: 1.2em; display: grid; gap: 4px; }
.delete-body input[type="password"] { width: 100%; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.btn.danger-fill { background: var(--warn); color: var(--surface); border-color: var(--warn); justify-self: start; }
.consent { font-size: .85rem; align-items: flex-start; }
.consent a { color: var(--accent); }
.about a { color: var(--accent); }

.btn.kakao { width: 100%; padding: 12px; font-weight: 600; background: #FEE500; color: #191919; border-color: #FEE500; }
.btn.apple { width: 100%; padding: 12px; font-weight: 600; background: #000; color: #fff; border-color: #000; display: flex; align-items: center; justify-content: center; gap: 6px; }
.btn.apple svg { width: 16px; height: 16px; fill: currentColor; }
.btn.kakao, .btn.apple { min-height: 46px; }

/* 성경읽기대회 */
.page-head .chip, .tg-form > .chip { justify-self: start; }
.rank { display: inline-grid; place-items: center; min-width: 1.7em; height: 1.7em; padding: 0 5px; margin-right: 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; vertical-align: middle; }
.rank.r1 { background: #e8c55a; border-color: #e8c55a; color: #3a2c00; }
.rank.r2 { background: #c8d0d6; border-color: #c8d0d6; color: #22282d; }
.rank.r3 { background: #d8a679; border-color: #d8a679; color: #3a2210; }
.tg-team { display: flex; gap: 8px; align-items: center; justify-content: space-between; }
.tg-team select { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.overlay { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .55); display: grid; place-items: center; padding: calc(16px + env(safe-area-inset-top, 0px)) 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
.overlay-card { background: var(--surface); border-radius: 12px; padding: 12px; width: min(420px, 100%); max-height: 100%; overflow: auto; display: grid; gap: 10px; }
.cert-img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.overlay-card p { margin: 0; }
.overlay-card p:empty { display: none; }
/* 기록 카드 (기록 탭의 '기록 공유'): 미리 보기는 그림이 오기 전에도 같은 크기 */
.sharebtn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 999px; padding: 7px 14px; font-size: .9rem; font-weight: 600; cursor: pointer; }
.sharebtn svg { width: 17px; height: 17px; fill: currentColor; }
.share-img { aspect-ratio: 4 / 5; background: #2c5a4d; }
.share-opts { display: grid; gap: 8px; }
.share-opts .switch { color: var(--ink); }
.overlay-card .cta[disabled] { opacity: .6; cursor: default; }

/* 1독 배지와 전체 순위 */
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 8px 10px; border: 1px solid var(--ok); border-radius: 12px; background: color-mix(in srgb, var(--ok) 10%, var(--surface)); color: var(--ink); cursor: pointer; }
.badge b { color: var(--ok); font-size: 1.05rem; }
.badge small { color: var(--muted); font-size: .72rem; font-variant-numeric: tabular-nums; }
.cycle-done { display: grid; gap: 8px; padding: 12px; border-radius: 10px; background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.cycle-done .cta { justify-self: start; }

/* '함께' 갈래 버튼과 전체 순위 (시상대 + 목록) */
.tg-tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
.tg-tabs a { text-align: center; }
.arena { display: grid; gap: 14px; }
.ava { --hue: 160; position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: hsl(var(--hue) 42% 48%); color: #fff; font-weight: 700; font-size: 1.1rem; }
.ava.mid { width: 68px; height: 68px; font-size: 1.6rem; border: 3px solid var(--surface); box-shadow: 0 0 0 3px #c8d0d6; }
.ava.big { width: 88px; height: 88px; font-size: 2.1rem; border: 3px solid var(--surface); box-shadow: 0 0 0 3px #e8c55a; }
.pod.p3 .ava.mid { box-shadow: 0 0 0 3px #d8a679; }
.ava .medal { position: absolute; right: -6px; bottom: -6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 13px; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--line); border: 2px solid var(--surface); }
.ava .medal.r1 { background: #e8c55a; color: #3a2c00; }
.ava .medal.r2 { background: #c8d0d6; color: #22282d; }
.ava .medal.r3 { background: #d8a679; color: #3a2210; }
.podium { display: grid; grid-template-columns: 1fr 1.25fr 1fr; align-items: end; gap: 6px; text-align: center; padding: 14px 0 4px; }
.pod { position: relative; display: grid; justify-items: center; gap: 2px; min-width: 0; }
.pod.p1 { padding-bottom: 22px; }
.pod .pname { margin-top: 8px; max-width: 100%; overflow-wrap: anywhere; }
.pod .pval { color: var(--accent); font-weight: 700; }
.pod.p1 .pval { font-size: 1.15rem; }
.pod.me .pname { color: var(--accent); }
.rays { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); width: 200px; height: 110px; pointer-events: none; }
.rays line { stroke: #e8c55a; stroke-width: 5; stroke-linecap: round; }
.arena-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.arena-list li, .arena-me { display: grid; grid-template-columns: auto 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.arena-me { grid-template-columns: 44px minmax(0, 1fr) auto; }
.card > .arena-me { padding: 0; border: 0; background: none; }
.arena-list li.me { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.arena-list .rnum { min-width: 1.6em; text-align: center; color: var(--muted); font-weight: 600; }
.arena-me .who, .arena-list .who { display: grid; min-width: 0; }
.arena-me .who b, .arena-list .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arena-me .val, .arena-list .val { display: grid; justify-items: end; }
.arena-me .val b, .arena-list .val b { color: var(--accent); }
.arena .tap { cursor: pointer; }
.arena .tap:active { opacity: .7; }
.overlay-card.person { gap: 12px; }
/* 순위 별명 입력 (참여하기, 내 프로필의 별명 바꾸기) */
#rankNick, .nick-edit input { width: 100%; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.nick-edit { display: flex; gap: 8px; align-items: center; }
.nick-edit .btn { flex: none; }
.nick-edit + p { margin: 0; }
.overlay-card.person .arena-me { grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; padding: 0; border: 0; background: none; }
/* 순위 프로필 사진 */
.ava.photo { background: var(--line); }
.ava.sm { width: 40px; height: 40px; font-size: 1rem; }
.ava.two span { font-size: .82em; letter-spacing: -0.03em; } /* 이름 두 글자 (은혜) */
.ava img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ava-btn { position: relative; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; justify-self: start; }
.ava-edit { position: absolute; right: -4px; bottom: -4px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: .85rem; font-weight: 700; border: 2px solid var(--surface); }
.overlay-card.person .row .btn { flex: none; }

/* 녹음: 읽기 화면의 녹음 버튼 (켜 두면 읽는 동안 장마다 녹음) */
.rec { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 11px 16px; font-weight: 600; cursor: pointer; }
.rec .rdot { width: 11px; height: 11px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.rec[aria-pressed="true"] { border-color: var(--rec); color: var(--rec); background: var(--rec-soft); }
.rec[aria-pressed="true"] .rdot { background: var(--rec); border-color: var(--rec); }
.rec.live .rdot { animation: pulse 1.2s ease-in-out infinite; }
.rec .rtime { font-weight: 500; }
.rec .rtime:empty { display: none; }
.reclinks { display: flex; }
.reclink { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--accent); color: var(--accent); background: var(--surface); border-radius: 999px; padding: 6px 12px; font-size: .88rem; font-weight: 600; text-decoration: none; }
.reclink svg { width: 13px; height: 13px; fill: currentColor; }
a.more-link { color: var(--accent); font-size: .9rem; font-weight: 600; text-decoration: none; }

/* 내 녹음 목록 */
.recs { display: grid; gap: 8px; }
.daylabel { font-size: .8rem; color: var(--muted); margin: 6px 2px -2px; }
.reclist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reclist li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px 10px 12px; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.reclist .play { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.reclist .play svg { width: 16px; height: 16px; fill: currentColor; }
.reclist .rinfo { display: grid; min-width: 0; text-decoration: none; }
.reclist .rinfo b { font-family: var(--font-text); font-weight: 600; font-size: 1.02rem; }
.reclist .sub { font-size: .8rem; color: var(--muted); }
.reclist .more { border: 0; background: none; color: var(--muted); font-size: 1.25rem; line-height: 1; padding: 10px; cursor: pointer; }
.reclist .acts { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 2px; }

/* 다시 듣기: 지금 들리는 절을 칠한다 */
.readbar.pbar { grid-template-columns: auto 1fr auto; }
.pacts { padding-top: 2px; }
.verse.playing { background: color-mix(in srgb, var(--accent) 11%, var(--surface)); box-shadow: inset 3px 0 0 var(--accent); }
.verse.playing .vnum { color: var(--accent); font-weight: 700; }
.pdock .seek { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: .8rem; color: var(--muted); }
.pdock .seek input { width: 100%; min-width: 0; accent-color: var(--accent); margin: 0; }
.pdock .ctrl { display: grid; grid-template-columns: 1fr auto auto auto 1fr; gap: 14px; align-items: center; }
.pdock .big { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; cursor: pointer; padding: 0; }
.pdock .big svg { width: 24px; height: 24px; fill: currentColor; }
.pdock .skip { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: .78rem; font-weight: 600; cursor: pointer; padding: 0; }
.pdock .speed { justify-self: start; white-space: nowrap; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 6px 10px; font-size: .8rem; cursor: pointer; }
.pdock .hint2 { text-align: center; font-size: .8rem; color: var(--muted); }
.pdock button:disabled { opacity: .5; cursor: default; }

/* 처음 한 장을 다 읽었을 때 묻는 전체 순위 참여 (ranking.js askCard) */
.rank-ask { display: grid; gap: 8px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 8%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
.rank-ask p { margin: 0; }
.rank-ask .nickrow { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.rank-ask .nick { font-size: 1.05rem; }
.rank-ask .linkish { padding: 4px 2px; }
.rank-ask input { width: 100%; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.rank-ask .cta { justify-self: start; }

/* 쉬운 화면에 맞춘 고침: 위쪽(함께 읽기·계정·순위·녹음)의 테두리 상자를 흰 카드로 */
.tg-list a { border: 0; border-radius: 20px; padding: 16px 18px; }
.tg-form input, .tg-form select, #joinCode, .tg-team select, .delete-body input[type="password"], #rankNick, .nick-edit input, .rank-ask input { background: var(--fill); border-color: transparent; border-radius: 12px; }
.card.highlight { box-shadow: inset 0 0 0 2px var(--accent); }
.btn.google { border: 1px solid #747775; }
.btn.google, .btn.kakao, .btn.apple { min-height: 52px; border-radius: 14px; font-size: 16px; }
.btn.danger-fill { border: 0; }
.overlay-card { border-radius: 24px; padding: 18px; }
.arena-list li, .arena-me { border: 0; border-radius: 18px; }
.arena-list li.me { box-shadow: inset 0 0 0 2px var(--accent); }
.reclist li { border: 0; border-radius: 18px; padding: 12px 8px 12px 14px; }
.verse.playing { background: var(--accent-soft); box-shadow: none; }
.pdock .skip, .pdock .speed { border: 0; background: var(--fill); }
.account .delete-box { margin-top: 2px; }
.account > p { margin: 0; }
.account > p:empty { display: none; }
.account h2 { margin: 0; }

/* 의견 보내기·기능 요청 (1.5) */
.fb-box { display: contents; }
.fb-admin { display: grid; gap: 12px; }
.fb-write { gap: 12px; padding: 16px; }
.fb-write textarea, .fb-form input, .fb-form textarea, .fb-form select { width: 100%; min-width: 0; background: var(--fill); border: 0; border-radius: 12px; padding: 12px 14px; font-size: 16px; line-height: 1.5; resize: vertical; }
.fb-form { display: grid; gap: 4px; margin: 0 4px 12px; }
.fb-form .lab { margin: 10px 0 4px; }
.fb-form select { -webkit-appearance: none; appearance: none; }
.fb-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-row .bt { width: auto; height: 48px; padding: 0 26px; font-size: 16px; }
.fb-count { font-size: 13px; color: var(--ink3); font-variant-numeric: tabular-nums; }
.fb-note { margin: -4px 8px 0; }
.fb-wait, .fb-empty { margin: 4px 8px; font-size: 14.5px; }
.rq-list { list-style: none; margin: 0; padding: 4px 0; gap: 0; }
.rq { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; }
.rq + .rq { border-top: 1px solid var(--line); }
.rq-main { flex: 1; min-width: 0; display: grid; gap: 3px; }
.rq-main b { font-size: 16px; font-weight: 600; overflow-wrap: anywhere; }
.rq-main small { font-size: 13.5px; color: var(--ink3); line-height: 1.45; overflow-wrap: anywhere; }
.rq-st { justify-self: start; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--fill); color: var(--ink2); }
.rq-st.doing { background: color-mix(in srgb, var(--warn) 14%, var(--surface)); color: var(--amber-ink); }
.rq-st.done { background: var(--accent-soft); color: var(--accent); }
.vote { flex: none; width: 76px; min-height: 56px; border: 0; border-radius: 14px; background: var(--fill); color: var(--ink2); display: grid; place-items: center; align-content: center; padding: 6px 4px; font-size: 11.5px; font-weight: 500; line-height: 1.3; cursor: pointer; }
.vote b { font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.vote[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.vote[aria-pressed="true"] b { color: var(--accent-ink); }
.vote.done { background: none; cursor: default; }
.rq .btn { flex: none; }
.fb-mine { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.fb-mine > li { background: var(--surface); border-radius: 20px; padding: 16px 18px; display: grid; gap: 10px; }
.fb-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.55; }
.fb-quote { margin: 0 4px 12px; padding: 12px 14px; border-radius: 12px; background: var(--fill); font-size: 14.5px; max-height: 30vh; overflow: auto; }
.fb-meta { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--ink3); }
.fb-reply { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; display: grid; gap: 4px; }
.fb-reply b { font-size: 13px; font-weight: 600; color: var(--accent); }
.fb-reply p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.5; }
.fb-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.linkbtn { flex: none; border: 0; background: none; padding: 6px 0; color: var(--ink3); font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.fb-setup p { margin: 0; font-size: 14.5px; line-height: 1.55; }
.fb-setup .btn { justify-self: start; }
.fb-uid { display: block; padding: 10px 12px; border-radius: 10px; background: var(--fill); font-size: 14px; overflow-wrap: anywhere; user-select: all; }
.iconbtn.has-dot { position: relative; }
.iconbtn.has-dot::after { content: ""; position: absolute; top: 9px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px var(--paper); }
span.has-dot::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; vertical-align: 3px; border-radius: 50%; background: var(--red); }
.fb-admin .vote { width: 44px; padding-inline: 0; }
/* 여러 장을 이어 녹음한 것을 다시 들을 때 장 제목 (1.5) */
ol.verses > li.chhead { margin: 18px 4px 6px; font-size: 15px; font-weight: 700; color: var(--accent); }
ol.verses > li.chhead:first-child { margin-top: 4px; }

/* 매일 읽기 안내: 알림 켜기·바탕화면 위젯 (1.6) */
.setup-slot { display: contents; }
.card.setup { grid-template-columns: 76px 1fr; gap: 12px; align-items: start; padding: 18px 18px 14px; }
.card.setup.widget { grid-template-columns: 1fr; }
.setup-lamb { width: 76px; height: 76px; }
.setup-preview { width: 100%; max-width: 340px; justify-self: center; border-radius: 18px; box-shadow: 0 4px 14px rgba(20, 40, 30, .12); }
.setup-body { display: grid; gap: 6px; min-width: 0; }
.setup-body b { font-size: 16.5px; line-height: 1.4; letter-spacing: -.01em; }
.setup-body small { font-size: 13.5px; color: var(--ink3); line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { border: 0; border-radius: 999px; padding: 8px 12px; background: var(--fill); color: var(--ink2); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.setup-time { justify-self: start; border: 0; border-radius: 12px; background: var(--fill); padding: 8px 12px; font-size: 15px; }
.setup-note { margin: 0; font-size: 13px; color: var(--warn); }
.setup-note:empty { display: none; }
.setup-acts { display: flex; gap: 6px; align-items: center; margin-top: 4px; }
.setup-acts .bt { width: auto; height: 46px; padding: 0 20px; font-size: 15.5px; }
.setup-acts .bt.text { padding: 0 10px; }
/* 위젯 놓는 방법 그림 */
.gsteps { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 14px; max-height: 62vh; overflow: auto; }
.gsteps > li { display: grid; grid-template-columns: 1fr 120px; gap: 12px; align-items: center; background: var(--fill); border-radius: 18px; padding: 12px; }
.gtext { display: flex; gap: 10px; align-items: flex-start; }
.gtext b { display: block; font-size: 15px; line-height: 1.45; }
.gtext small { display: block; font-size: 12.5px; color: var(--ink3); line-height: 1.45; margin-top: 2px; }
.gnum { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.gphone { position: relative; width: 120px; height: 120px; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #c9dccf, #6f9a89); padding: 10px; }
.ggrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ggrid i { aspect-ratio: 1; border-radius: 6px; background: rgba(255, 255, 255, .55); }
.ggrid i.wob { animation: wob .5s ease-in-out infinite alternate; }
@keyframes wob { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.gtap { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); animation: tap 1.4s ease-out infinite; }
@keyframes tap { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
.gpill { position: absolute; top: 8px; left: 8px; border-radius: 999px; padding: 2px 8px; background: rgba(255, 255, 255, .7); font-size: 10.5px; font-weight: 600; color: #1a211e; }
.gmenu { position: absolute; left: 10px; right: 10px; top: 34px; display: grid; gap: 2px; background: rgba(255, 255, 255, .92); border-radius: 10px; padding: 6px; }
.gmenu span { font-size: 10.5px; padding: 3px 4px; border-radius: 6px; color: #1a211e; }
.gsearch { border-radius: 8px; background: rgba(255, 255, 255, .85); font-size: 9.5px; color: #6f7a75; padding: 4px 6px; margin-bottom: 6px; }
.glist { display: grid; gap: 4px; background: rgba(255, 255, 255, .92); border-radius: 10px; padding: 5px; }
.glist span { display: flex; align-items: center; gap: 5px; font-size: 10.5px; color: #1a211e; padding: 2px 3px; border-radius: 6px; }
.glist i, .glist img { width: 16px; height: 16px; border-radius: 4px; background: #d9e0dc; flex: none; }
.gprev { width: 100%; border-radius: 8px; margin-top: 8px; }
.gbtn { position: absolute; left: 12px; right: 12px; bottom: 10px; text-align: center; border-radius: 999px; padding: 4px 0; background: #1677ff; color: #fff; font-size: 10.5px; font-weight: 600; }
.gphone .hl { box-shadow: 0 0 0 2px #f1d27a; background-color: #fff6d8; }
.gphone .gbtn.hl { background: #1677ff; box-shadow: 0 0 0 2px #f1d27a; }
.gfoot { margin: 4px 4px 10px; }

/* 암송 탭 (memorize.js) */
.memo-card { gap: 14px; }
.memo-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 4px; margin: -6px -8px 0; }
.memo-step { font-size: 28px; line-height: 1; color: var(--ink2); background: none; border: 0; height: 44px; cursor: pointer; }
.memo-step:disabled { opacity: .3; cursor: default; }
.memo-ref { border: 0; background: var(--fill); border-radius: 999px; padding: 8px 14px; font-size: 16px; font-weight: 600; cursor: pointer; justify-self: center; }
.memo-ref::after { content: ' ▾'; color: var(--ink3); font-size: 12px; }
.memo-text { margin: 4px 2px; font-family: var(--font-text); font-size: calc(var(--text-size) * 1.18); line-height: 1.9; word-break: keep-all; }
.memo-text .mw { border-radius: 6px; transition: color .2s, background .2s; }
.memo-text .mw.r { color: var(--read); font-weight: 600; }
.memo-text .mw.hide { color: transparent; background: var(--fill2); box-shadow: inset 0 -2px 0 var(--knob-off); }
.memo-status { margin: -4px 2px 0; min-height: 1.5em; font-size: 14px; color: var(--accent); font-weight: 500; }
.memo-panel { display: grid; gap: 12px; }
.memo-go { margin-top: 2px; }
.memo-opt { display: grid; gap: 2px; }
.memo-opt-name { font-size: 13px; color: var(--ink3); font-weight: 500; }
.memo-opt .chips { margin-top: 0; }
.memo-dots { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.memo-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--fill2); box-shadow: inset 0 0 0 1.5px var(--knob-off); }
.memo-dots i.on { background: var(--accent); box-shadow: none; }
.memo-dots span { margin-left: 4px; font-size: 14px; color: var(--ink3); }
.memo-done { display: grid; gap: 10px; padding: 14px; border-radius: 16px; background: var(--accent-soft); }
.memo-done b { color: var(--accent); font-size: 16px; }
.memo-done-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.memo-done-acts .bt { height: 48px; font-size: 15.5px; }
.memo-hide { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink2); cursor: pointer; }
.memo-empty { margin: 0; padding: 14px; border-radius: 14px; background: var(--fill); font-size: 14.5px; color: var(--ink2); line-height: 1.6; }
.memo-pick { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; margin: 6px 0 14px; }
.memo-sel { border: 0; border-radius: 12px; background: var(--fill); padding: 12px 10px; font-size: 16px; min-width: 0; }
.item-val.ok { color: var(--ok); font-weight: 600; }
.memo-ref { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
