/* =========================================================
   설교 노트 — Dark Glassmorphism (주황 강조) · 모바일 우선
   Notes.html(내 설교 노트) 와 주보 화면의 필기 창이 함께 씁니다. 모든 이름은 yn- 으로 시작합니다.
   가독성: 어두운 유리 위 글씨는 전부 밝은색 (대비 7:1 이상), 입력칸 글씨는 순백.
   ========================================================= */
:root {
  --yn-accent: #F26B21;
  --yn-accent-2: #FF8A4C;
  --yn-accent-soft: rgba(242,107,33,.18);
  --yn-ink: #FFFFFF;
  --yn-ink-2: #EDE9E3;
  --yn-ink-3: #CFC8BE;
  --yn-glass: rgba(24,22,21,.62);
  --yn-glass-2: rgba(255,255,255,.07);
  --yn-line: rgba(255,255,255,.16);
  --yn-line-2: rgba(255,255,255,.26);
  --yn-good: #7CE8B0;
  --yn-warn: #FFD27A;
  --yn-bad: #FF9E90;
  --yn-vh: 100dvh;      /* 키보드가 올라오면 editor.js 가 실제 보이는 높이로 바꿉니다 */
  --yn-vt: 0px;
  --yn-ease: cubic-bezier(.2,.8,.2,1);
}
.yn, .yn * { box-sizing: border-box; }
.yn { font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Segoe UI', sans-serif; color: var(--yn-ink); -webkit-text-size-adjust: 100%; }
.yn button { font-family: inherit; }
.yn :focus-visible { outline: 2px solid var(--yn-accent-2); outline-offset: 2px; }
.yn .yn-ta:focus-visible, .yn .yn-title:focus-visible, .yn .yn-chipin input:focus-visible, .yn .yn-search input:focus-visible { outline: 0; }

/* ---------- 글 쓰는 창 (에디터) ---------- */
/* .yn-ed 는 떠 있는 서식 막대(.yn-bar) · 팝업 · 시트의 "기준 틀"(화면에 보이는 높이만큼만) 입니다.
   그 안의 .yn-scroll 이 제목 · 날짜 · 탭 · 글을 함께 담아 스크롤하므로, 머리글이 길어도 글 쓰는 칸이 눌리지 않고
   제목 쪽이 스크롤로 자연스럽게 위로 올라갑니다. */
.yn-ed { position: relative; display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; height: 100%; overflow: hidden; }
.yn-scroll { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#ynDockEd { display: flex; flex-direction: column; }
.yn-ed-head { flex: none; padding: 4px 2px 0; }
.yn-title {
  display: block; width: 100%; background: transparent !important; border: 0 !important; outline: 0; padding: 6px 2px 2px;
  font: 800 26px/1.3 'Noto Sans KR', sans-serif; letter-spacing: -.02em; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF;
  caret-color: var(--yn-accent-2); border-radius: 8px;
}
.yn-title::placeholder { color: #B3ABA1 !important; -webkit-text-fill-color: #B3ABA1; opacity: 1; font-weight: 700; }
.yn-metarow { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.yn-chipin {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 0 12px; height: 38px; border-radius: 999px;
  background: var(--yn-glass-2); border: 1px solid var(--yn-line); transition: border-color .2s var(--yn-ease), background .2s var(--yn-ease);
}
.yn-chipin:focus-within { border-color: var(--yn-accent-2); background: rgba(255,255,255,.11); }
.yn-chipin > span { flex: none; font-size: 12.5px; font-weight: 700; color: var(--yn-ink-3); letter-spacing: .02em; }
.yn-chipin input {
  min-width: 0; width: 100%; background: transparent !important; border: 0 !important; outline: 0; padding: 0;
  font: 600 15px/1.2 'Noto Sans KR', sans-serif; color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF; caret-color: var(--yn-accent-2);
}
.yn-chipin input::placeholder { color: #B3ABA1 !important; -webkit-text-fill-color: #B3ABA1; opacity: 1; font-weight: 500; }
.yn-chipin input[type=date] { color-scheme: dark; min-width: 132px; }
.yn-chipin.date { flex: 0 0 auto; }
.yn-chipin.ref { flex: 1 1 150px; }
.yn-chipin.pr { flex: 1 1 130px; }
.yn-mini {
  display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 13px; border-radius: 999px; cursor: pointer;
  background: var(--yn-accent-soft); border: 1px solid rgba(242,107,33,.55); color: #FFE3D2; font: 700 13.5px/1 'Noto Sans KR', sans-serif;
  transition: background .2s var(--yn-ease), transform .15s var(--yn-ease); -webkit-tap-highlight-color: transparent;
}
.yn-mini:hover { background: rgba(242,107,33,.3); }
.yn-mini:active { transform: scale(.97); }
.yn-mini[disabled] { opacity: .55; cursor: default; }
.yn-mini.on { background: linear-gradient(135deg, var(--yn-accent), var(--yn-accent-end, #D2511F)); border-color: transparent; color: #FFFFFF; }
.yn-fixedmeta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; padding: 4px 2px 2px; }
.yn-fixedmeta b { font-size: 17px; font-weight: 800; color: #FFFFFF; letter-spacing: -.01em; }
.yn-fixedmeta span { font-size: 13.5px; color: var(--yn-ink-2); }

.yn-tabrow { flex: none; display: flex; align-items: center; gap: 8px; margin: 8px 0 0; }
.yn-tabs { flex: none; display: inline-flex; padding: 3px; gap: 2px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid var(--yn-line); }
.yn-tab {
  border: 0; background: transparent; color: var(--yn-ink-2); padding: 8px 15px; border-radius: 9px; cursor: pointer;
  font: 700 14px/1 'Noto Sans KR', sans-serif; transition: background .2s var(--yn-ease), color .2s var(--yn-ease); -webkit-tap-highlight-color: transparent;
}
.yn-tab[aria-selected=true] { background: linear-gradient(135deg, var(--yn-accent), var(--yn-accent-end, #D2511F)); color: #FFFFFF; }
#ynPillWrap { display: flex; min-width: 0; flex: 0 1 auto; }
.yn-tab { white-space: nowrap; }
.yn-count { margin-left: auto; flex: none; font-size: 12.5px; color: var(--yn-ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.yn-count.warn { color: var(--yn-warn); font-weight: 700; }
.yn-count.bad { color: var(--yn-bad); font-weight: 800; }

/* 저장 상태 — 글쓰기를 막지 않는 작은 알약 */
.yn-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 999px; max-width: 100%;
  background: rgba(255,255,255,.09); border: 1px solid var(--yn-line); color: var(--yn-ink-2);
  font: 700 12.5px/1 'Noto Sans KR', sans-serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: background .25s var(--yn-ease), color .25s var(--yn-ease), border-color .25s var(--yn-ease);
}
button.yn-pill { cursor: pointer; }
.yn-pill i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #8E877D; transition: background .25s; }
.yn-pill[data-s=saving] { color: #FFE3D2; } .yn-pill[data-s=saving] i { background: var(--yn-accent-2); animation: ynpulse 1s ease-in-out infinite; }
.yn-pill[data-s=saved] { color: #D8FBE8; border-color: rgba(124,232,176,.5); } .yn-pill[data-s=saved] i { background: var(--yn-good); }
.yn-pill[data-s=dirty] i { background: var(--yn-accent-2); }
.yn-pill[data-s=error], .yn-pill[data-s=fatal], .yn-pill[data-s=conflict], .yn-pill[data-s=toolong] { color: #FFE0DA; border-color: rgba(255,158,144,.6); background: rgba(255,120,100,.16); }
.yn-pill[data-s=error] i, .yn-pill[data-s=fatal] i, .yn-pill[data-s=conflict] i, .yn-pill[data-s=toolong] i { background: var(--yn-bad); }
.yn-pill[data-s=offline] { color: #FFF1CE; border-color: rgba(255,210,122,.55); background: rgba(255,210,122,.12); } .yn-pill[data-s=offline] i { background: var(--yn-warn); }
@keyframes ynpulse { 50% { opacity: .35; transform: scale(.8); } }

/* 본문 입력 */
.yn-area { position: relative; flex: 1 1 auto; min-height: 0; margin-top: 8px; }
.yn-ta {
  display: block; width: 100%; height: 100%; resize: none; border: 0 !important; outline: 0; margin: 0;
  background: transparent !important; color: #F8F5F0 !important; -webkit-text-fill-color: #F8F5F0; caret-color: var(--yn-accent-2);
  font: 400 17px/1.9 'Noto Sans KR', -apple-system, sans-serif; letter-spacing: -.005em; word-break: keep-all; overflow-wrap: anywhere;
  padding: 6px 4px 104px; border-radius: 10px; -webkit-overflow-scrolling: touch; tab-size: 2;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.3) transparent;
}
.yn-ta::placeholder { color: #B3ABA1 !important; -webkit-text-fill-color: #B3ABA1; opacity: 1; }
.yn-ta[hidden] { display: none; }
.yn-ta::selection, .yn-title::selection, .yn-chipin input::selection { background: rgba(242,107,33,.55); color: #FFFFFF; }
.yn-ta:disabled { opacity: .7; }

/* 내 노트(전체 화면, .yn-editcard) — 글 칸이 내용만큼 자라고(editor.js autosize), 제목 · 메타 · 탭과 함께
   .yn-scroll 안에서 스크롤됩니다. 떠 있는 서식 막대에 가려지지 않게 맨 아래에 여유를 둡니다.
   (주보 필기 창 · dock 모드는 그대로 칸 고정 + 자기 안 스크롤을 씁니다) */
.yn-editcard .yn-area { flex: none; min-height: 0; }
.yn-editcard .yn-ta { height: auto; min-height: calc(var(--yn-vh, 100dvh) * .42); overflow: hidden; padding-bottom: 14px; }
.yn-editcard .yn-scroll { padding-bottom: 104px; }

/* 떠 있는 서식 막대 — 키보드 바로 위 (에디터 아래쪽에 붙어 있어 키보드와 같이 올라옵니다) */
.yn-bar {
  position: absolute; left: 6px; right: 6px; margin: 0 auto; width: fit-content; bottom: 10px; z-index: 3;
  display: flex; align-items: center; gap: 2px; padding: 5px; max-width: calc(100% - 12px);
  border-radius: 18px; background: rgba(30,27,25,.82); border: 1px solid var(--yn-line-2);
  -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 10px 34px rgba(0,0,0,.5), 0 1px 0 rgba(255,255,255,.08) inset;
  overflow-x: auto; scrollbar-width: none; touch-action: pan-x;
}
.yn-bar::-webkit-scrollbar { display: none; }
.yn-bar .sep { flex: none; width: 1px; height: 22px; background: var(--yn-line); margin: 0 3px; }
.yn-tb {
  flex: none; min-width: 40px; height: 42px; padding: 0 8px; border: 0; border-radius: 12px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  background: transparent; color: #FFFFFF; font: 800 15px/1 'Noto Sans KR', sans-serif;
  transition: background .15s var(--yn-ease), transform .12s var(--yn-ease); -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.yn-tb:hover { background: rgba(255,255,255,.12); }
.yn-tb:active { transform: scale(.92); background: rgba(255,255,255,.2); }
.yn-tb svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yn-tb.ai { background: linear-gradient(135deg, var(--yn-accent), var(--yn-accent-end, #D2511F)); padding: 0 14px 0 12px; font-size: 14px; }
.yn-tb.ai:hover { filter: brightness(1.1); }
.yn-tb[disabled] { opacity: .45; cursor: default; }
.yn-tb.busy svg { animation: ynspin .9s linear infinite; }
@keyframes ynspin { to { transform: rotate(360deg); } }

/* AI 메뉴 · 결과 창 · 충돌 창 (아래에서 올라오는 시트) */
.yn-pop {
  position: absolute; left: 50%; bottom: 66px; transform: translateX(-50%); z-index: 4; width: min(320px, calc(100% - 16px));
  padding: 8px; border-radius: 16px; background: rgba(30,27,25,.94); border: 1px solid var(--yn-line-2);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); box-shadow: 0 16px 44px rgba(0,0,0,.55);
  animation: ynrise .2s var(--yn-ease);
}
.yn-pop button { display: block; width: 100%; text-align: left; padding: 12px 13px; border: 0; border-radius: 11px; background: transparent; color: #FFFFFF; cursor: pointer; }
.yn-pop button:hover, .yn-pop button:focus-visible { background: rgba(255,255,255,.1); }
.yn-pop button b { display: block; font-size: 15px; font-weight: 800; }
.yn-pop button span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--yn-ink-3); line-height: 1.5; }
.yn-pop .hd { padding: 4px 13px 6px; font-size: 12px; font-weight: 800; color: var(--yn-accent-2); letter-spacing: .08em; }

.yn-scrim { position: absolute; inset: 0; z-index: 5; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.5); animation: ynfade .2s ease; border-radius: inherit; }
.yn-sheet {
  width: 100%; max-height: 88%; display: flex; flex-direction: column; padding: 16px 16px 14px; border-radius: 22px 22px 0 0;
  background: rgba(28,25,23,.97); border: 1px solid var(--yn-line-2); border-bottom: 0; box-shadow: 0 -12px 40px rgba(0,0,0,.5);
  animation: ynrise .26s var(--yn-ease);
}
.yn-sheet h3 { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: #FFFFFF; letter-spacing: -.01em; }
.yn-sheet p.sub { margin: 0 0 10px; font-size: 13.5px; line-height: 1.6; color: var(--yn-ink-2); }
.yn-sheet .warn { margin: 0 0 10px; padding: 9px 12px; border-radius: 11px; background: rgba(255,210,122,.14); border: 1px solid rgba(255,210,122,.45); color: #FFF1CE; font-size: 13px; line-height: 1.55; }
.yn-result {
  flex: 1 1 auto; min-height: 90px; overflow: auto; margin: 0 0 12px; padding: 13px 14px; border-radius: 13px; white-space: pre-wrap; word-break: keep-all; overflow-wrap: anywhere;
  background: rgba(255,255,255,.08); border: 1px solid var(--yn-line); color: #FFFFFF; font-size: 16px; line-height: 1.85; -webkit-overflow-scrolling: touch;
}
.yn-acts { flex: none; display: flex; flex-wrap: wrap; gap: 8px; }
.yn-btn {
  flex: 1 1 auto; min-height: 46px; padding: 0 16px; border-radius: 13px; cursor: pointer; text-align: center;
  border: 1px solid var(--yn-line-2); background: rgba(255,255,255,.1); color: #FFFFFF; font: 800 15px/1.2 'Noto Sans KR', sans-serif;
  transition: transform .12s var(--yn-ease), background .2s; -webkit-tap-highlight-color: transparent;
}
.yn-btn:hover { background: rgba(255,255,255,.16); } .yn-btn:active { transform: scale(.98); }
.yn-btn.pri { background: linear-gradient(135deg, var(--yn-accent), var(--yn-accent-end, #D2511F)); border-color: transparent; }
.yn-btn.danger { color: #FFB3A6; border-color: rgba(255,158,144,.5); }
.yn-btn[disabled] { opacity: .5; cursor: default; }

.yn-toast {
  position: absolute; left: 10px; right: 10px; margin: 0 auto; width: fit-content; bottom: 74px; z-index: 6; max-width: calc(100% - 20px);
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-radius: 14px;
  background: rgba(20,18,17,.96); border: 1px solid var(--yn-line-2); box-shadow: 0 12px 34px rgba(0,0,0,.5); color: #FFFFFF; font-size: 14px; font-weight: 600;
  animation: ynrise2 .22s var(--yn-ease);
}
@keyframes ynrise2 { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.yn-toast button { flex: none; border: 0; background: transparent; color: var(--yn-accent-2); font: 800 14px/1 'Noto Sans KR', sans-serif; padding: 8px 6px; cursor: pointer; }
@keyframes ynrise { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }
.yn-sheet { animation-name: ynsheet; }
@keyframes ynsheet { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes ynfade { from { opacity: 0; } to { opacity: 1; } }

.yn-spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: ynspin .7s linear infinite; vertical-align: -2px; }

/* ---------- 내 설교 노트 페이지 ---------- */
.yn-page { position: fixed; left: 0; right: 0; top: 0; height: var(--yn-vh); transform: translateY(var(--yn-vt)); display: flex; flex-direction: column; overflow: hidden;
  background: #0B0B0B url('/bulletin/toronto-dark-p.svg') center / cover; }
@media (orientation: landscape) { .yn-page { background: #0B0B0B url('/bulletin/toronto-dark-l.svg') center / cover; } }
.yn-page::before { content: ''; position: absolute; inset: 0; background: rgba(8,8,8,.62); pointer-events: none; }
/* 작은 화면에서 공간을 아끼도록 조금 더 납작하게 (v8.35) */
.yn-top { position: relative; z-index: 2; flex: none; display: flex; align-items: center; gap: 8px; padding: 7px 12px; padding-top: max(7px, env(safe-area-inset-top));
  background: rgba(20,18,17,.55); border-bottom: 1px solid var(--yn-line); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.yn-top h1 { margin: 0; font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; color: #FFFFFF; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.yn-icon { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--yn-line); background: rgba(255,255,255,.08); color: #FFFFFF; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background .15s, transform .12s; }
.yn-icon:hover { background: rgba(255,255,255,.15); } .yn-icon:active { transform: scale(.94); }
.yn-icon svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.yn-main { position: relative; z-index: 1; flex: 1 1 auto; min-height: 0; display: flex; }

.yn-listcol { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; min-height: 0; }
.yn-search { flex: none; padding: 12px 14px 6px; }
.yn-search input { width: 100%; height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--yn-line-2) !important; background: rgba(255,255,255,.1) !important;
  color: #FFFFFF !important; -webkit-text-fill-color: #FFFFFF; font: 500 16px/1 'Noto Sans KR', sans-serif; outline: 0; caret-color: var(--yn-accent-2); }
.yn-search input::placeholder { color: #B3ABA1 !important; -webkit-text-fill-color: #B3ABA1; opacity: 1; }
.yn-search input:focus { border-color: var(--yn-accent-2) !important; }
.yn-cards { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 6px 14px 96px; -webkit-overflow-scrolling: touch; }
.yn-card {
  display: block; width: 100%; text-align: left; margin: 0 0 10px; padding: 14px 15px; border-radius: 16px; cursor: pointer; color: #FFFFFF;
  background: var(--yn-glass); border: 1px solid var(--yn-line); -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  transition: transform .15s var(--yn-ease), border-color .2s, background .2s; -webkit-tap-highlight-color: transparent;
}
.yn-card:hover { border-color: var(--yn-line-2); background: rgba(40,36,34,.7); }
.yn-card:active { transform: scale(.992); }
.yn-card.sel { border-color: var(--yn-accent-2); background: rgba(242,107,33,.14); }
.yn-card .d { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--yn-accent-2); letter-spacing: .03em; }
.yn-card .t { margin: 5px 0 2px; font-size: 17px; font-weight: 800; letter-spacing: -.01em; color: #FFFFFF; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.yn-card .r { font-size: 13.5px; color: var(--yn-ink-2); }
.yn-card .s { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--yn-ink-3); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.yn-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: 0; }
.yn-badge.dev { background: rgba(124,232,176,.16); color: #D8FBE8; border: 1px solid rgba(124,232,176,.4); }
.yn-badge.sync { background: rgba(255,210,122,.14); color: #FFF1CE; border: 1px solid rgba(255,210,122,.45); }
.yn-empty { padding: 44px 20px; text-align: center; color: var(--yn-ink-2); font-size: 15px; line-height: 1.8; }
.yn-empty b { display: block; font-size: 17px; color: #FFFFFF; margin-bottom: 6px; }
.yn-fab { position: absolute; right: 18px; bottom: max(20px, env(safe-area-inset-bottom)); z-index: 3; height: 54px; padding: 0 22px 0 18px; border-radius: 999px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--yn-accent), var(--yn-accent-end, #D2511F)); color: #FFFFFF; font: 800 16px/1 'Noto Sans KR', sans-serif;
  box-shadow: 0 10px 28px rgba(242,107,33,.4), 0 2px 8px rgba(0,0,0,.4); transition: transform .15s var(--yn-ease); -webkit-tap-highlight-color: transparent; }
.yn-fab:active { transform: scale(.96); } .yn-fab svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.6; stroke-linecap: round; }

.yn-editcol { display: none; flex: 1 1 auto; min-width: 0; min-height: 0; flex-direction: column; }
.yn-editcard { flex: 1 1 auto; min-height: 0; margin: 0; padding: 10px 16px 0; display: flex; flex-direction: column; position: relative; }
.yn-editbar { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 12px 0; }
.yn-editbar .sp { flex: 1; }
.yn-menu { position: absolute; right: 12px; top: 52px; z-index: 8; min-width: 190px; padding: 6px; border-radius: 14px; background: rgba(28,25,23,.97); border: 1px solid var(--yn-line-2); box-shadow: 0 14px 40px rgba(0,0,0,.55); animation: ynfade .15s; }
.yn-menu button { display: block; width: 100%; text-align: left; padding: 12px 12px; border: 0; border-radius: 10px; background: transparent; color: #FFFFFF; font: 700 14.5px/1 'Noto Sans KR', sans-serif; cursor: pointer; }
.yn-menu button:hover { background: rgba(255,255,255,.1); } .yn-menu button.danger { color: #FFB3A6; }

/* 폰: 목록 → 편집 화면으로 넘어감 */
.yn-page[data-view=edit] .yn-listcol { display: none; }
.yn-page[data-view=edit] .yn-editcol { display: flex; }
.yn-page[data-view=list] .yn-editcol { display: none; }
.yn-page[data-view=list] .yn-editonly { display: none; }
.yn-page[data-view=edit] .yn-listonly { display: none; }
.yn-page[data-view=edit] .yn-fab { display: none; }

/* 태블릿·데스크톱: 왼쪽 목록 + 오른쪽 편집 */
@media (min-width: 900px) {
  .yn-listcol { flex: 0 0 360px; border-right: 1px solid var(--yn-line); background: rgba(10,10,10,.28); }
  .yn-editcol, .yn-page[data-view=list] .yn-editcol { display: flex; }
  .yn-page[data-view=edit] .yn-listcol { display: flex; }
  .yn-page[data-view=edit] .yn-listonly { display: revert; }
  .yn-page[data-view=list] .yn-editonly { display: revert; }
  .yn-page[data-view=edit] .yn-fab { display: inline-flex; }
  .yn-fab { position: absolute; left: 280px; right: auto; bottom: 22px; transform: translateX(-100%); }
  .yn-fab:active { transform: translateX(-100%) scale(.96); }
  .yn-editcard { padding: 14px 40px 0; max-width: 860px; width: 100%; margin: 0 auto; }
  .yn-title { font-size: 30px; }
  .yn-ta { font-size: 18px; }
  .yn-noedit { display: flex; flex: 1; align-items: center; justify-content: center; color: var(--yn-ink-2); font-size: 15px; }
}
.yn-noedit { display: none; }
@media (min-width: 900px) { .yn-page[data-view=list] .yn-noedit { display: flex; } }

/* ---------- 주보 화면의 필기 창 ---------- */
.yn-dockfab { position: fixed; right: 16px; bottom: max(18px, env(safe-area-inset-bottom)); z-index: 60; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(135deg, var(--yn-accent), var(--yn-accent-end, #D2511F)); color: #FFFFFF; font: 800 15.5px/1 'Noto Sans KR', sans-serif;
  box-shadow: 0 10px 28px rgba(242,107,33,.42), 0 2px 8px rgba(0,0,0,.45); -webkit-tap-highlight-color: transparent; transition: transform .15s var(--yn-ease), opacity .2s; }
.yn-dockfab:active { transform: scale(.96); }
.yn-dockfab svg { width: 20px; height: 20px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.yn-dockfab .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--yn-good); box-shadow: 0 0 0 3px rgba(124,232,176,.25); }
.yn-dockfab.hide { opacity: 0; pointer-events: none; }
.yn-dock { --dh: min(72dvh, calc(var(--yn-vh) - 12px)); position: fixed; z-index: 70; left: 0; right: 0; height: var(--dh); top: calc(var(--yn-vt) + var(--yn-vh) - var(--dh));
  display: flex; flex-direction: column; padding: 8px 14px 0; border-radius: 22px 22px 0 0;
  background: rgba(22,20,19,.985); border: 1px solid var(--yn-line-2); border-bottom: 0; box-shadow: 0 -16px 50px rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(26px) saturate(150%); backdrop-filter: blur(26px) saturate(150%); animation: ynsheet .28s var(--yn-ease); }
.yn-dock[hidden], .yn-dockfab[hidden] { display: none; }
.yn-dockhead { flex: none; display: flex; align-items: center; gap: 8px; padding: 2px 0 4px; }
.yn-dockhead .grab { position: absolute; left: 50%; top: 6px; width: 40px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.3); transform: translateX(-50%); }
.yn-dockhead .sp { flex: 1; }
.yn-dockhead h2 { margin: 6px 0 0; font-size: 15px; font-weight: 800; color: var(--yn-accent-2); letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.yn-dockhead .yn-mini { flex: none; white-space: nowrap; height: 36px; padding: 0 12px; }
.yn-dockbody { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
.yn-dock .yn-ta { font-size: 17px; }
.yn-docknote { flex: none; margin: 0 0 8px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid var(--yn-line); font-size: 13.5px; line-height: 1.6; color: var(--yn-ink-2); }
.yn-docknote a { color: #FFC9AB; font-weight: 700; }
@media (min-width: 900px) {
  .yn-dock { --dh: min(720px, calc(var(--yn-vh) - 36px)); left: auto; right: 18px; width: 430px; top: calc(var(--yn-vt) + var(--yn-vh) - var(--dh) - 18px); border-radius: 22px; border-bottom: 1px solid var(--yn-line-2); }
}

@media (prefers-reduced-motion: reduce) {
  .yn *, .yn-dock, .yn-dockfab { animation-duration: .001s !important; transition-duration: .001s !important; }
}
/* 인쇄 · 화면 밖 접근성 */
.yn-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Step 11 v2 — 내 노트: 모드 전환(설교 노트 | QT · 묵상 노트) · 성경 책 고르기 ---------- */
.yn-modes { display: flex; gap: 6px; padding: 0 14px 10px; }
.yn-modes button {
  flex: 1; min-height: 44px; border-radius: 12px; border: 1px solid var(--yn-line-2); background: var(--yn-glass-2);
  color: #FFFFFF; font: 800 14.5px 'Noto Sans KR', sans-serif; cursor: pointer; white-space: nowrap;
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); touch-action: manipulation; transition: background .15s, border-color .15s;
}
.yn-modes button:hover { background: rgba(255,255,255,.13); border-color: rgba(255,178,130,.9); }
.yn-modes button[aria-selected="true"] {
  background: linear-gradient(135deg, var(--yn-accent), var(--yn-accent-2)); border-color: rgba(255,255,255,.4);
  box-shadow: 0 6px 16px rgba(180,70,20,.35);
}
.yn-modes button:before { margin-right: 5px; }
.yn-modes button[data-m="sermon"]:before { content: "\1F4D6"; }
.yn-modes button[data-m="qt"]:before { content: "\1F33F"; }
.yn-chipin.book { flex: 0 1 auto; }
.yn-chipin select {
  border: 0; background: transparent; outline: 0; min-width: 96px; max-width: 150px; padding: 0;
  font: 600 15px/1.2 'Noto Sans KR', sans-serif; color: #FFFFFF; -webkit-text-fill-color: #FFFFFF; color-scheme: dark;
}
.yn-chipin select option { color: #111; background: #fff; }
.yn-card .yn-badge.qt { background: rgba(124,232,176,.18); color: #B8F5D3; }

/* =========================================================
   v7.0 — 라이트 모드 (html[data-theme="light"])
   어두운 유리 → 흰 유리. 글씨는 짙은 잉크, 주황 강조는 한 단계 진하게(대비 확보).
   주보 화면의 필기 창(.yn-dock)도 같은 규칙을 씁니다.
   ========================================================= */
html[data-theme="light"] {
  --yn-accent: #46BDC6;            /* v8.21 — 다른 페이지와 같은 밝은 화면 강조색(청록) */
  --yn-accent-end: #2FA3AD;
  --yn-accent-2: #0B6E77;
  --yn-accent-soft: rgba(70,189,198,.14);
  --yn-ink: #1A1917;
  --yn-ink-2: #35322D;
  --yn-ink-3: #5A554E;
  --yn-glass: rgba(255,255,255,.82);
  --yn-glass-2: rgba(255,255,255,.7);
  --yn-line: rgba(26,25,23,.14);
  --yn-line-2: rgba(26,25,23,.24);
  --yn-good: #1D7A56;
  --yn-warn: #8A5E12;
  --yn-bad: #A82F16;
}
html[data-theme="light"], html[data-theme="light"] body { background: #F4F2EE; color-scheme: light; }
html[data-theme="light"] .yn-title { color: #1A1917 !important; -webkit-text-fill-color: #1A1917; }
html[data-theme="light"] .yn-title::placeholder, html[data-theme="light"] .yn-chipin input::placeholder,
html[data-theme="light"] .yn-ta::placeholder, html[data-theme="light"] .yn-search input::placeholder { color: #8A847B !important; -webkit-text-fill-color: #8A847B; }
html[data-theme="light"] .yn-chipin:focus-within { background: #FFFFFF; }
html[data-theme="light"] .yn-chipin input, html[data-theme="light"] .yn-chipin select { color: #1A1917 !important; -webkit-text-fill-color: #1A1917; color-scheme: light; }
html[data-theme="light"] .yn-chipin input[type=date] { color-scheme: light; }
html[data-theme="light"] .yn-mini { color: #0B6E77; background: rgba(47,163,173,.10); border-color: rgba(47,163,173,.45); }
html[data-theme="light"] .yn-mini:hover { background: rgba(47,163,173,.18); }
html[data-theme="light"] .yn-mini.on { color: #FFFFFF; }
html[data-theme="light"] .yn-fixedmeta b { color: #1A1917; }
html[data-theme="light"] .yn-tabs { background: rgba(26,25,23,.06); }
html[data-theme="light"] .yn-tab[aria-selected=true] { color: #FFFFFF; }
html[data-theme="light"] .yn-pill { background: rgba(26,25,23,.06); color: var(--yn-ink-2); }
html[data-theme="light"] .yn-pill i { background: #9A948B; }
html[data-theme="light"] .yn-pill[data-s=saving] { color: #0B6E77; }
html[data-theme="light"] .yn-pill[data-s=saved] { color: #14573D; border-color: rgba(29,122,86,.5); background: #E6F2EC; }
html[data-theme="light"] .yn-pill[data-s=error], html[data-theme="light"] .yn-pill[data-s=fatal], html[data-theme="light"] .yn-pill[data-s=conflict], html[data-theme="light"] .yn-pill[data-s=toolong] { color: #8A2410; background: #FBEADF; border-color: rgba(168,47,22,.5); }
html[data-theme="light"] .yn-pill[data-s=offline] { color: #6B4709; background: #FBF2E1; border-color: rgba(138,94,18,.5); }
html[data-theme="light"] .yn-ta { color: #1A1917 !important; -webkit-text-fill-color: #1A1917; scrollbar-color: rgba(26,25,23,.3) transparent; }
html[data-theme="light"] .yn-ta::selection, html[data-theme="light"] .yn-title::selection, html[data-theme="light"] .yn-chipin input::selection { background: rgba(242,107,33,.35); color: #1A1917; }
html[data-theme="light"] .yn-bar { background: rgba(255,255,255,.92); box-shadow: 0 10px 30px rgba(26,25,23,.18), 0 1px 0 rgba(255,255,255,.9) inset; }
html[data-theme="light"] .yn-tb { color: #1A1917; }
html[data-theme="light"] .yn-tb:hover { background: rgba(26,25,23,.08); }
html[data-theme="light"] .yn-tb:active { background: rgba(26,25,23,.14); }
html[data-theme="light"] .yn-tb.ai { color: #FFFFFF; }
html[data-theme="light"] .yn-pop, html[data-theme="light"] .yn-menu { background: rgba(255,255,255,.98); box-shadow: 0 16px 40px rgba(26,25,23,.22); }
html[data-theme="light"] .yn-pop button, html[data-theme="light"] .yn-menu button { color: #1A1917; }
html[data-theme="light"] .yn-pop button:hover, html[data-theme="light"] .yn-pop button:focus-visible, html[data-theme="light"] .yn-menu button:hover { background: rgba(26,25,23,.07); }
html[data-theme="light"] .yn-menu button.danger, html[data-theme="light"] .yn-btn.danger { color: #A82F16; }
html[data-theme="light"] .yn-btn.danger { border-color: rgba(168,47,22,.45); }
html[data-theme="light"] .yn-scrim { background: rgba(26,25,23,.4); }
html[data-theme="light"] .yn-sheet { background: rgba(255,255,255,.99); box-shadow: 0 -12px 40px rgba(26,25,23,.25); }
html[data-theme="light"] .yn-sheet h3 { color: #1A1917; }
html[data-theme="light"] .yn-sheet .warn { background: #FBF2E1; border-color: rgba(138,94,18,.45); color: #6B4709; }
html[data-theme="light"] .yn-result { background: #F4F2EE; color: #1A1917; }
html[data-theme="light"] .yn-btn { background: #FFFFFF; color: #1A1917; }
html[data-theme="light"] .yn-btn:hover { background: #F4F2EE; }
html[data-theme="light"] .yn-btn.pri { color: #FFFFFF; background: linear-gradient(135deg, #46BDC6, #2FA3AD); }
html[data-theme="light"] .yn-toast { background: rgba(255,255,255,.98); color: #1A1917; box-shadow: 0 12px 30px rgba(26,25,23,.22); }
html[data-theme="light"] .yn-spin { border-color: rgba(26,25,23,.25); border-top-color: #2FA3AD; }

html[data-theme="light"] .yn-page { background: #F4F2EE url('/bulletin/toronto-light-p.svg') center / cover; }
@media (orientation: landscape) { html[data-theme="light"] .yn-page { background: #F4F2EE url('/bulletin/toronto-light-l.svg') center / cover; } }
html[data-theme="light"] .yn-page::before { background: rgba(244,242,238,.55); }
html[data-theme="light"] .yn-top { background: rgba(255,255,255,.72); }
html[data-theme="light"] .yn-top h1 { color: #1A1917; }
html[data-theme="light"] .yn-icon { background: rgba(255,255,255,.8); color: #1A1917; }
html[data-theme="light"] .yn-icon:hover { background: #FFFFFF; }
html[data-theme="light"] .yn-search input { background: rgba(255,255,255,.9) !important; color: #1A1917 !important; -webkit-text-fill-color: #1A1917; }
html[data-theme="light"] .yn-card { color: #1A1917; box-shadow: 0 1px 2px rgba(26,25,23,.05); }
html[data-theme="light"] .yn-card:hover { background: #FFFFFF; }
html[data-theme="light"] .yn-card.sel { background: rgba(47,163,173,.1); }
html[data-theme="light"] .yn-card .t { color: #1A1917; }
html[data-theme="light"] .yn-badge.dev { background: #E6F2EC; color: #14573D; border-color: rgba(29,122,86,.4); }
html[data-theme="light"] .yn-badge.sync { background: #FBF2E1; color: #6B4709; border-color: rgba(138,94,18,.4); }
html[data-theme="light"] .yn-card .yn-badge.qt { background: #E6F2EC; color: #14573D; }
html[data-theme="light"] .yn-empty b { color: #1A1917; }
html[data-theme="light"] .yn-fab, html[data-theme="light"] .yn-dockfab { color: #FFFFFF; box-shadow: 0 10px 26px rgba(47,163,173,.35), 0 2px 8px rgba(26,25,23,.2); }
html[data-theme="light"] .yn-modes button { color: #1A1917; }
html[data-theme="light"] .yn-modes button:hover { background: #FFFFFF; border-color: var(--yn-accent); }
html[data-theme="light"] .yn-modes button[aria-selected="true"] { color: #FFFFFF; border-color: transparent; box-shadow: 0 6px 16px rgba(47,163,173,.3); }
@media (min-width: 900px) { html[data-theme="light"] .yn-listcol { background: rgba(255,255,255,.45); } }

html[data-theme="light"] .yn-dock { background: rgba(255,255,255,.99); box-shadow: 0 -16px 50px rgba(26,25,23,.28); }
html[data-theme="light"] .yn-dockhead .grab { background: rgba(26,25,23,.28); }
html[data-theme="light"] .yn-docknote { background: rgba(26,25,23,.05); }
html[data-theme="light"] .yn-docknote a { color: #0B6E77; }

/* 테마 전환 단추 (내 노트 위쪽 막대) */
.yn-icon .yn-sun { display: none; }
html[data-theme="light"] .yn-icon .yn-sun { display: block; }
html[data-theme="light"] .yn-icon .yn-moon { display: none; }

/* ============================================================
   V847 — 글자 서식 (굵게 · 밑줄 · 형광펜). 입력칸 글자는 투명, 뒤 층(.yn-bd)이 같은 자리에 서식과 함께 그립니다.
   ============================================================ */
.yn-taw { position: relative; height: 100%; }
.yn-taw[hidden] { display: none; }
.yn-editcard .yn-taw { height: auto; }
.yn-bd { position: absolute; inset: 0; overflow: hidden; pointer-events: none; color: #F8F5F0; white-space: pre-wrap; z-index: 0; }
.yn-ta.yn-fmt { position: relative; z-index: 1; color: transparent !important; -webkit-text-fill-color: transparent !important; }
.yn-ta.yn-fmt::selection { color: transparent; -webkit-text-fill-color: transparent; background: rgba(242,107,33,.32); }
.yn-bd .yf-b { -webkit-text-stroke: .055em currentColor; paint-order: stroke fill; }
.yn-bd .yf-u { text-decoration: underline; text-decoration-color: var(--yn-accent-2, #FF9A55); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.yn-bd .yf-h1, .yn-bd .yf-h2, .yn-bd .yf-h3 { border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.yn-bd .yf-h1 { background: rgba(255, 122, 26, .38); }
.yn-bd .yf-h2 { background: rgba(70, 189, 198, .38); }
.yn-bd .yf-h3 { background: rgba(245, 200, 75, .42); }
html[data-theme="light"] .yn-bd { color: #1A1917; }
html[data-theme="light"] .yn-bd .yf-h1 { background: rgba(255, 122, 26, .28); }
html[data-theme="light"] .yn-bd .yf-h2 { background: rgba(70, 189, 198, .32); }
html[data-theme="light"] .yn-bd .yf-h3 { background: rgba(245, 200, 75, .45); }
html[data-theme="light"] .yn-ta.yn-fmt::selection { background: rgba(70, 189, 198, .35); }
.yn-tb.yn-fb[aria-pressed="true"] { background: rgba(255, 122, 26, .22); color: #FFB27A; }
html[data-theme="light"] .yn-tb.yn-fb[aria-pressed="true"] { background: rgba(70, 189, 198, .2); color: #0B6E77; }
.yn-tb.yn-fh { position: relative; }
.yn-fhsw { position: absolute; left: 9px; right: 9px; bottom: 5px; height: 3px; border-radius: 2px; background: rgba(255, 122, 26, .9); }
.yn-fhsw[data-c="h2"] { background: #46BDC6; } .yn-fhsw[data-c="h3"] { background: #F5C84B; }
.yn-hlpop { display: flex; flex-direction: column; gap: 2px; width: min(240px, calc(100% - 16px)); }
.yn-pop .yn-hlc { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 0; border-radius: 9px; background: transparent; color: inherit; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.yn-pop .yn-hlc:hover { background: rgba(255, 255, 255, .08); }
.yn-hlc i { width: 18px; height: 18px; border-radius: 5px; flex: none; border: 1px solid rgba(255,255,255,.25); }
.yn-hlc i[data-c="h1"] { background: rgba(255, 122, 26, .75); } .yn-hlc i[data-c="h2"] { background: rgba(70, 189, 198, .8); } .yn-hlc i[data-c="h3"] { background: rgba(245, 200, 75, .85); }
.yn-hlc i[data-c="hx"] { background: linear-gradient(135deg, transparent 45%, #E5484D 45%, #E5484D 55%, transparent 55%); }
.yn-hlc i[data-c="clear"] { background: transparent; border-style: dashed; }
html[data-theme="light"] .yn-hlc:hover { background: rgba(15, 23, 42, .06); }

/* ============================================================
   V847 — 손글씨 탭 (라이브 악보 필기 엔진). 종이는 두 테마 모두 밝은 종이 (굿노트처럼), 도구 막대는 유리.
   ============================================================ */
.yn-tab-ink { margin-left: 2px; }
.yn-inkmode .yn-bar, .yn-inkmode .yn-count { display: none !important; }
.yn-inkmode .yn-scroll { padding-bottom: 24px; }
.yn-inkhost[hidden] { display: none; }
.yn-ink { display: flex; flex-direction: column; gap: 12px; }
/* v9.14 — 흐림(backdrop-filter) 없이 거의 불투명한 막대: 필기 캔버스 위에 떠 있는 흐림은 펜을 긋는 프레임마다 다시 계산돼 펜 끝이 늦어집니다 */
.yn-ink-bar { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px; border-radius: 16px;
  background: rgb(28, 26, 24); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 28px rgba(0,0,0,.35); -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.yn-ink-g { display: flex; align-items: center; gap: 4px; padding-right: 8px; border-right: 1px solid rgba(255,255,255,.12); }
.yn-ink-g:last-of-type { border-right: 0; }
.yn-ink-t { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 11px; background: rgba(255,255,255,.07); color: #F4EFE9; cursor: pointer; }
.yn-ink-t svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.yn-ink-t.on { background: #FF7A1A; color: #1A0D02; }
.yn-ink-t:disabled { opacity: .35; cursor: default; }
.yn-ink-c { width: 28px; height: 28px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); background: var(--c); cursor: pointer; }
.yn-ink-c.on { box-shadow: 0 0 0 3px #FF7A1A; border-color: #fff; }
.yn-ink-s { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.06); cursor: pointer; }
.yn-ink-s i { width: var(--s); height: var(--s); border-radius: 50%; background: #F4EFE9; }
.yn-ink-s.on { border-color: #FF9A55; background: rgba(255,122,26,.22); }
.yn-ink-more select { height: 34px; border-radius: 9px; background: rgba(255,255,255,.08); color: #F4EFE9; border: 1px solid rgba(255,255,255,.18); padding: 0 8px; }
.yn-ink-po { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: #E8E2DA; white-space: nowrap; }
.yn-ink-szpop { flex: 1 0 100%; display: flex; align-items: center; gap: 10px; padding: 6px 4px 0; }
.yn-ink-szpop span { font-size: 12px; font-weight: 800; color: #CFC7BD; }
.yn-ink-szpop input { flex: 1; accent-color: #FF7A1A; }
.yn-ink-szpop button { height: 32px; padding: 0 12px; border: 0; border-radius: 9px; background: #FF7A1A; color: #1A0D02; font-weight: 800; }
.yn-ink-prev { width: var(--s); height: var(--s); border-radius: 50%; background: var(--c, #111); box-shadow: 0 0 0 1px rgba(255,255,255,.4); }
.yn-ink-pages { display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* 손글씨 종이 — 흰 종이 대신 반투명 유리(뒤가 흐리게 비침). 어두운 화면은 어두운 유리 · 밝은 화면은 밝은 유리.
   contain: paint 는 일부 갤럭시탭 · 안드로이드에서 큰 캔버스가 아예 안 그려지는 원인이 되어 뺐습니다(layout 만). */
.yn-ink-page { position: relative; border-radius: 14px; overflow: hidden; touch-action: pan-y; contain: layout; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
  color-scheme: dark; forced-color-adjust: none;
  background-color: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 10px 28px rgba(0,0,0,.26), inset 0 1px 0 rgba(255,255,255,.08);
  -webkit-backdrop-filter: blur(12px) saturate(115%); backdrop-filter: blur(12px) saturate(115%); }
.yn-ink-page.parked .yn-ink-cv { visibility: hidden; }
/* 안드로이드(갤럭시탭)는 큰 영역의 실시간 흐림이 무겁고 그리기 오류가 있어 — 흐림 없이 같은 느낌의 반투명 색으로 */
.yn-ink-android .yn-ink-page { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(44,41,38,.82); }
/* 종이 무늬 — 기본은 아주 은은한 점 모눈 (v9.17: 유리 · 무늬를 한 단계 더 옅게) */
.yn-ink-pages[data-bg="dots"] .yn-ink-page { background-image: radial-gradient(circle, rgba(255,255,255,.13) 1px, transparent 1.25px); background-size: var(--lh) var(--lh); background-position: calc(var(--lh) / 2) calc(var(--lh) / 2); }
.yn-ink-pages[data-bg="lines"] .yn-ink-page { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 1px), rgba(150,185,255,.12) calc(var(--lh) - 1px), rgba(150,185,255,.12) var(--lh)); background-position: 0 calc(var(--lh) * 2); }
.yn-ink-pages[data-bg="grid"] .yn-ink-page { background-image: linear-gradient(to right, rgba(150,185,255,.08) 1px, transparent 1px), linear-gradient(to bottom, rgba(150,185,255,.08) 1px, transparent 1px); background-size: var(--lh) var(--lh); }
html[data-theme="light"] .yn-ink-page { color-scheme: light; background-color: rgba(255,255,255,.5); border-color: rgba(15,23,42,.07); box-shadow: 0 8px 24px rgba(15,23,42,.07), inset 0 1px 0 rgba(255,255,255,.7); }
html[data-theme="light"] .yn-ink-android .yn-ink-page { background-color: rgba(255,255,255,.86); }
html[data-theme="light"] .yn-ink-pages[data-bg="dots"] .yn-ink-page { background-image: radial-gradient(circle, rgba(30,36,52,.14) 1px, transparent 1.25px); }
html[data-theme="light"] .yn-ink-pages[data-bg="lines"] .yn-ink-page { background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--lh) - 1px), rgba(70,120,190,.13) calc(var(--lh) - 1px), rgba(70,120,190,.13) var(--lh)); }
html[data-theme="light"] .yn-ink-pages[data-bg="grid"] .yn-ink-page { background-image: linear-gradient(to right, rgba(70,120,190,.09) 1px, transparent 1px), linear-gradient(to bottom, rgba(70,120,190,.09) 1px, transparent 1px); }
/* 확대 · 이동 — 쪽 틀(.yn-ink-vp)이 넘친 쪽을 잘라 보여 주고, 쪽 묶음(.yn-ink-pages)을 가로로 밀어 봄 */
.yn-ink-vp { position: relative; }
.yn-ink-vp.yn-ink-zoomed, .yn-ink-vp.yn-ink-pinching { overflow-x: hidden; overflow-x: clip; overflow-y: visible; }
.yn-ink-vp.yn-ink-zoomed .yn-ink-page { touch-action: none; }
.yn-ink-vp.yn-ink-pinching .yn-ink-pages { will-change: transform; }
.yn-ink-zoom { height: 30px; min-width: 52px; padding: 0 9px; margin-left: 2px; border: 1px solid rgba(255,154,85,.6); border-radius: 999px; background: rgba(255,122,26,.16); color: #FFD9BF; font: 800 12.5px/1 'Noto Sans KR', sans-serif; font-variant-numeric: tabular-nums; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.yn-ink-zoom[hidden] { display: none; }
html[data-theme="light"] .yn-ink-zoom { border-color: rgba(47,163,173,.6); background: rgba(70,189,198,.14); color: #0E5F66; }
/* 올가미 — 쪽 위의 투명 판 (올가미 도구일 때만 손가락 · 펜을 받음) */
.yn-ink-lz { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.yn-ink-lassoing .yn-ink-lz { pointer-events: auto; touch-action: none; cursor: crosshair; }
.yn-ink-lzsvg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.yn-ink-lzp { fill: none; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.yn-ink-lzp.a { stroke: rgba(10,10,14,.55); stroke-width: 3.2; }
.yn-ink-lzp.b { stroke: #FF9A55; stroke-width: 1.6; stroke-dasharray: 6 5; }
.yn-ink-lz.drawing .yn-ink-lzp.a { fill: rgba(255,122,26,.07); }
.yn-ink-selbox { position: absolute; border: 1.6px dashed #FF9A55; border-radius: 6px; background: rgba(255,122,26,.07); box-shadow: 0 0 0 1px rgba(10,10,14,.35); cursor: move; }
.yn-ink-selbox[hidden] { display: none; }
.yn-ink-hd { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; touch-action: none; }
.yn-ink-hd::after { content: ''; position: absolute; inset: 8px; border-radius: 50%; background: #FF7A1A; border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.yn-ink-hd[data-c="tl"] { left: 0; top: 0; cursor: nwse-resize; } .yn-ink-hd[data-c="tr"] { left: 100%; top: 0; cursor: nesw-resize; }
.yn-ink-hd[data-c="bl"] { left: 0; top: 100%; cursor: nesw-resize; } .yn-ink-hd[data-c="br"] { left: 100%; top: 100%; cursor: nwse-resize; }
.yn-ink-seldel { position: absolute; left: 50%; top: -46px; transform: translateX(-50%); width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 50%; background: #E5484D; color: #fff; box-shadow: 0 4px 14px rgba(0,0,0,.35); cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.yn-ink-selbox.low .yn-ink-seldel { top: auto; bottom: -46px; }
.yn-ink-seldel svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.yn-ink-seln { font-size: 13px; font-weight: 800; color: #FFD9BF; padding: 0 4px; white-space: nowrap; }
html[data-theme="light"] .yn-ink-seln { color: #0E5F66; }
html[data-theme="light"] .yn-ink-lzp.a { stroke: rgba(255,255,255,.85); }
html[data-theme="light"] .yn-ink-lzp.b, html[data-theme="light"] .yn-ink-selbox { stroke: #2FA3AD; border-color: #2FA3AD; }
html[data-theme="light"] .yn-ink-selbox { background: rgba(70,189,198,.08); box-shadow: 0 0 0 1px rgba(255,255,255,.8); }
html[data-theme="light"] .yn-ink-lz.drawing .yn-ink-lzp.a { fill: rgba(70,189,198,.08); }
html[data-theme="light"] .yn-ink-hd::after { background: #2FA3AD; }
.yn-ink-cv { position: absolute; left: 0; top: 0; }
.yn-ink-vc { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; }
.yn-ink-no { position: absolute; right: 12px; bottom: 7px; font-size: 11px; color: rgba(255,255,255,.4); pointer-events: none; }
html[data-theme="light"] .yn-ink-no { color: rgba(0,0,0,.35); }
.yn-ink-foot { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 0 12px; }
.yn-ink-add { display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 18px; border-radius: 999px; border: 1px dashed rgba(255,255,255,.35); background: rgba(255,255,255,.05); color: #F4EFE9; font-weight: 700; cursor: pointer; }
.yn-ink-add svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.yn-ink-st { font-size: 12.5px; color: #BDB5AB; }
.yn-ink-st[data-s="error"], .yn-ink-st[data-s="offline"] { color: #FFD27A; }
.yn-ink-err { padding: 20px; color: #FFD27A; }
html[data-theme="light"] .yn-ink-bar { background: #FFFFFF; border-color: rgba(15,23,42,.12); box-shadow: 0 8px 22px rgba(15,23,42,.1); }
html[data-theme="light"] .yn-ink-g { border-right-color: rgba(15,23,42,.1); }
html[data-theme="light"] .yn-ink-t { background: rgba(15,23,42,.05); color: #1F2937; }
html[data-theme="light"] .yn-ink-t.on { background: #46BDC6; color: #06363B; }
html[data-theme="light"] .yn-ink-c.on { box-shadow: 0 0 0 3px #46BDC6; }
html[data-theme="light"] .yn-ink-s i { background: #1F2937; }
html[data-theme="light"] .yn-ink-s.on { border-color: #2FA3AD; background: rgba(70,189,198,.18); }
html[data-theme="light"] .yn-ink-more select, html[data-theme="light"] .yn-ink-po { color: #1F2937; background: rgba(15,23,42,.04); border-color: rgba(15,23,42,.15); }
html[data-theme="light"] .yn-ink-add { color: #1F2937; border-color: rgba(15,23,42,.3); }
html[data-theme="light"] .yn-ink-page { box-shadow: 0 6px 18px rgba(15,23,42,.07), 0 0 0 1px rgba(15,23,42,.05); }
/* v9.14 — 손글씨: 색 줄 · 직접 고르는 색 · 글자 크기 · 글꼴 · 텍스트 상자 */
.yn-ink-cols { flex-wrap: wrap; max-width: 100%; gap: 6px; }
.yn-ink-cc { position: relative; overflow: hidden; background: conic-gradient(#ef4444, #f59e0b, #eab308, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #ef4444); }
.yn-ink-cc::after { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px rgba(255,255,255,.5); }
.yn-ink-cc input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0; cursor: pointer; }
.yn-ink-s b { font-weight: 700; line-height: 1; color: #F4EFE9; }
.yn-ink-f { height: 36px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: rgba(255,255,255,.06); color: #F4EFE9; font-size: 15px; cursor: pointer; white-space: nowrap; }
.yn-ink-f.on { border-color: #FF9A55; background: rgba(255,122,26,.22); }
/* v9.26 글꼴 12가지 — 한 줄로 두고 옆으로 밀어 고름 */
.yn-ink-fonts { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.yn-ink-fonts::-webkit-scrollbar { display: none; }
.yn-ink-fonts .yn-ink-f { flex: none; }
.yn-ink-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border: 0; border-radius: 10px; background: rgba(255,255,255,.08); color: #F4EFE9; font: 700 13.5px 'Noto Sans KR', sans-serif; cursor: pointer; white-space: nowrap; }
.yn-ink-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.yn-ink-btn.danger { color: #FFB4A8; }
.yn-ink-hint { font-size: 12.5px; color: #BDB5AB; border-right: 0; }
.yn-ink-prevt { font-weight: 700; line-height: 1; }
.yn-ink-t, .yn-ink-c, .yn-ink-s, .yn-ink-f, .yn-ink-btn { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.yn-ink-page .an-editor { position: absolute; z-index: 10; }
.yn-ink-page .an-input { min-width: 90px; padding: 2px 6px; border: 2px solid #FF7A1A; border-radius: 6px; background: rgba(255,255,255,.96); color: #111; font-weight: 600; outline: none; box-shadow: 0 6px 24px rgba(0,0,0,.3); -webkit-user-select: text; user-select: text; }
html[data-theme="light"] .yn-ink-s b, html[data-theme="light"] .yn-ink-f, html[data-theme="light"] .yn-ink-btn { color: #1F2937; }
html[data-theme="light"] .yn-ink-f, html[data-theme="light"] .yn-ink-btn { background: rgba(15,23,42,.05); }
html[data-theme="light"] .yn-ink-f.on { border-color: #2FA3AD; background: rgba(70,189,198,.18); }
html[data-theme="light"] .yn-ink-btn.danger { color: #C2410C; }
html[data-theme="light"] .yn-ink-hint { color: #5A554E; }
.yn-bd[hidden] { display: none; }

/* ---------- 노트 목록 숨기기 (넓은 화면 · 가로 태블릿) ---------- */
.yn-sidebtn { display: none; }
@media (min-width: 900px) {
  .yn-sidebtn { display: grid; place-items: center; }
  .yn-sidebtn[aria-pressed="true"] { background: rgba(242,107,33,.28); border-color: rgba(242,107,33,.6); }
  .yn-page.yn-listhide[data-view=edit] .yn-listcol { display: none; }
}

/* ---------- 성경 찾기 서랍 ---------- */
.yn-biblebtn { width: auto; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; font: 700 13.5px/1 'Noto Sans KR', sans-serif; }
.yn-biblebtn span { white-space: nowrap; }
.yn-bib { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; max-height: 78vh; display: flex; flex-direction: column; gap: 10px; padding: 14px 14px calc(14px + env(safe-area-inset-bottom));
  border-radius: 22px 22px 0 0; background: rgba(26,24,22,.97); border: 1px solid var(--yn-line-2); border-bottom: 0; box-shadow: 0 -14px 40px rgba(0,0,0,.5); color: #F8F5F0; animation: ynbibup .22s ease; }
@keyframes ynbibup { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 900px) {
  .yn-bib { left: auto; top: 64px; right: 14px; bottom: 14px; width: 390px; max-height: none; border-radius: 20px; border-bottom: 1px solid var(--yn-line-2); box-shadow: 0 18px 50px rgba(0,0,0,.5); }
  .yn-page:has(.yn-bib) .yn-editcol { padding-right: 404px; }
}
.yn-bib-hd { display: flex; align-items: center; gap: 8px; } .yn-bib-hd b { font-size: 16px; } .yn-bib-hd .sp { flex: 1; }
.yn-bib-q { display: flex; gap: 8px; }
.yn-bib-q input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--yn-line-2); background: rgba(255,255,255,.08); color: inherit; font: 500 16px/1 'Noto Sans KR', sans-serif; color-scheme: dark; }
.yn-bib-q .yn-btn { flex: none; height: 44px; padding: 0 16px; }
.yn-bib-chips { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
.yn-bib-chips button { flex: none; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--yn-line-2); background: rgba(255,255,255,.07); color: inherit; font: 700 13px/1 'Noto Sans KR', sans-serif; cursor: pointer; white-space: nowrap; }
.yn-bib-tr { display: inline-flex; align-self: flex-start; padding: 3px; gap: 2px; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid var(--yn-line); }
.yn-bib-tr button { border: 0; background: transparent; color: var(--yn-ink-2); padding: 7px 13px; border-radius: 9px; font: 700 13px/1 'Noto Sans KR', sans-serif; cursor: pointer; }
.yn-bib-tr button[aria-selected="true"] { background: linear-gradient(135deg, var(--yn-accent), var(--yn-accent-end, #D2511F)); color: #fff; }
.yn-bib-res { flex: 1 1 auto; min-height: 120px; overflow-y: auto; -webkit-overflow-scrolling: touch; display: flex; flex-direction: column; gap: 6px; }
.yn-bib-help { margin: 6px 2px; font-size: 13.5px; line-height: 1.7; color: var(--yn-ink-2); }
.yn-bib-warn { margin: 4px 2px; padding: 8px 10px; border-radius: 10px; background: rgba(255,210,122,.14); border: 1px solid rgba(255,210,122,.4); color: #FFF1CE; font-size: 12.5px; line-height: 1.55; }
.yn-bib-ref { display: flex; align-items: baseline; gap: 8px; padding: 2px 2px 4px; } .yn-bib-ref b { font-size: 15px; } .yn-bib-ref span { font-size: 12px; color: var(--yn-ink-3); }
.yn-bib-v { display: flex; gap: 9px; align-items: flex-start; width: 100%; text-align: left; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; background: rgba(255,255,255,.05); color: inherit; font: 400 14.5px/1.65 'Noto Sans KR', sans-serif; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.yn-bib-v i { flex: none; min-width: 22px; font-style: normal; font-weight: 800; font-size: 12px; color: var(--yn-accent-2, #FF9A55); padding-top: 3px; }
.yn-bib-v em { font-style: normal; color: var(--yn-ink-2); font-size: 13.5px; }
.yn-bib-v.on { border-color: rgba(242,107,33,.75); background: rgba(242,107,33,.16); }
.yn-bib-acts { display: flex; gap: 8px; } .yn-bib-acts .yn-btn { flex: 0 0 auto; height: 44px; padding: 0 14px; white-space: nowrap; } .yn-bib-acts .yn-btn.pri { flex: 1 1 auto; }
.yn-bib-acts .yn-btn:disabled { opacity: .45; }
html[data-theme="light"] .yn-bib { background: rgba(255,255,255,.98); color: #1A1917; border-color: rgba(15,23,42,.12); box-shadow: 0 -14px 40px rgba(15,23,42,.18); }
html[data-theme="light"] .yn-bib-q input { background: #FFFFFF; border-color: rgba(15,23,42,.16); color: #1A1917; color-scheme: light; }
html[data-theme="light"] .yn-bib-chips button, html[data-theme="light"] .yn-bib-tr { background: rgba(15,23,42,.05); border-color: rgba(15,23,42,.12); }
html[data-theme="light"] .yn-bib-v { background: rgba(15,23,42,.04); }
html[data-theme="light"] .yn-bib-v.on { background: rgba(242,107,33,.12); }
html[data-theme="light"] .yn-bib-warn { color: #7A5300; }
html[data-theme="light"] .yn-sidebtn[aria-pressed="true"] { background: rgba(242,107,33,.18); }

/* ---------- v9.2x — 내 분류 (셀모임 · 사역 · 개인 …) : 나만 보는 노트 묶음 ---------- */
.yn-modes { overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.yn-modes::-webkit-scrollbar { display: none; }
.yn-modes button { flex: 1 0 auto; padding: 0 14px; }
.yn-modes button[data-m^="c:"]:before { content: "\1F4C2"; }
.yn-modes button[data-m="manage"] { flex: 0 0 44px; padding: 0; font-size: 20px; line-height: 1; }
.yn-modes button[data-m="manage"]:before { content: none; }
.yn-cats { flex: 1 1 auto; min-height: 0; overflow: auto; margin: 0 0 10px; -webkit-overflow-scrolling: touch; }
.yn-catrow { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--yn-line-2); }
.yn-catrow .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; font-size: 15.5px; color: var(--yn-ink); }
.yn-catrow .ct { flex: none; font-size: 12.5px; color: var(--yn-ink-3); }
.yn-catrow .yn-btn { min-height: 38px; padding: 0 12px; font-size: 13px; }
.yn-catin, .yn-catadd input {
  flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--yn-line-2);
  background: var(--yn-glass-2); color: var(--yn-ink); font: 600 16px 'Noto Sans KR', sans-serif; outline: 0;
}
.yn-catin:focus, .yn-catadd input:focus { border-color: var(--yn-accent); }
.yn-catadd { display: flex; gap: 8px; margin: 0 0 8px; }
.yn-catnone { padding: 14px 2px; font-size: 14px; line-height: 1.6; color: var(--yn-ink-2); }
.yn-catchips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; }
.yn-catchips span { font-size: 12.5px; color: var(--yn-ink-3); }
.yn-catchips button { min-height: 32px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--yn-line-2); background: var(--yn-glass-2); color: var(--yn-ink); font: 700 13px 'Noto Sans KR', sans-serif; cursor: pointer; }
.yn-catmsg { min-height: 20px; margin: 0 0 8px; font-size: 13px; line-height: 1.5; color: #FFB3A6; }
html[data-theme="light"] .yn-catmsg { color: #B3392A; }
