/* app.css — index.html 인라인 스타일 분리(2026-10-14 · 출시 게이트 임계) · 내용 변경 없음 */
  :root{
    --brand:#3F8F6B; --cream:#F4EFE6; --ink:#2C2A26; --muted:#6E6450; --line:#E5DDCC;
    --accent:#2F8B6A; --ok:#6B9E33; --err:#A32D2D; --r-card:12px; --r-btn:10px;
    --lv3:#BCD89E; --lv4:#97C459; --lv5:#7CB23E; --deep:#235341;
    --soft:#FBF6ED; --warnbox:#FBEFD6; --warnln:#E8D6A8; --warnink:#7A5B12; --infobox:#F3F7F4; --infoln:#D8E6DD;
    --vimg-quiz:clamp(112px, 34vw, 200px);   /* 어휘 퀴즈 그림 크기 — 기기별 적당(반응형) 기본 · 슬라이더(vimgSlide)로 조절·기억 */
  }
  *{box-sizing:border-box; -webkit-tap-highlight-color:transparent;}
  html,body{margin:0; background:#dcd6c8; font-family:'Pretendard',system-ui,'Malgun Gothic',sans-serif; font-size:16px; color:var(--ink);}
  .app{max-width:420px; min-height:100vh; min-height:100dvh; margin:0 auto; background:var(--cream); display:flex; flex-direction:column; position:relative;}
  .top{background:var(--accent); color:#fff; padding:14px 16px; display:flex; align-items:center; gap:9px;}
  .top .iconbtn{background:none; border:none; color:#fff; cursor:pointer; padding:4px; display:flex;}
  .top .iconbtn svg{width:22px; height:22px;}
  @font-face{font-family:'Poppins'; font-style:normal; font-weight:600; src:url('assets/fonts/poppins600-brand.woff2') format('woff2'); unicode-range:U+45,U+61,U+65,U+68,U+6E,U+72,U+75; font-display:block;}   /* 브랜드 전용 서브셋 7글자(Enharu+enh) · SIL OFL 1.1 · assets/fonts/POPPINS-OFL.txt */
  .logo{width:36px; height:36px; flex:none;}   /* 로고 = 자급식 SVG(스스로 네모를 그림) — 칩 스타일 불요 */
  .top .t{font-weight:600; font-size:15px;} .top .sub{margin-left:auto; font-size:12px; color:#CFE8DD;}
  .screen{flex:1; padding:16px; overflow-y:auto; overflow-x:hidden;}
  .card{background:#fff; border:1px solid var(--line); border-radius:var(--r-card); padding:14px; position:relative;} .card+.card{margin-top:12px;}
  .label{color:var(--muted); font-size:13px;} .h{font-weight:600; font-size:16px;} .big{font-size:26px; font-weight:600;}
  .btn{border:1px solid transparent; border-radius:var(--r-btn); padding:14px 0; font-family:inherit; font-size:16px; font-weight:600; cursor:pointer; width:100%; background:var(--accent); color:#fff;}
  .btn.ghost{background:#fff; color:var(--brand); border:1px solid var(--brand);} .rgrid{display:grid;grid-template-columns:1fr 1fr;gap:9px} .gcard{position:relative;border:1px solid var(--line);border-radius:12px;padding:10px 10px 26px;background:#fff;cursor:pointer} .gcard .gctop{display:flex;align-items:center;gap:8px} .gcard .pi{font-size:20px;flex:0 0 auto} .gcard .ti{font-weight:600;font-size:13px;color:var(--ink);line-height:1.2} .gcard .su{font-size:10px;color:var(--muted);margin-top:6px} .gcard .badge{position:absolute;right:9px;bottom:8px;font-size:10px;font-weight:700;padding:2px 8px;border-radius:10px} .badge.todo{background:var(--accent);color:#fff} .badge.done{background:#EDE7DB;color:#8A8067} .gcard.todo{background:#FFFDF6;border-color:#E7D9A8} .sfxsw{position:relative;width:44px;height:25px;flex:0 0 auto;cursor:pointer;display:inline-block} .sfxsw i{position:absolute;inset:0;background:var(--accent);border-radius:20px;transition:.2s} .sfxsw i::after{content:"";position:absolute;top:3px;left:22px;width:19px;height:19px;background:#fff;border-radius:50%;box-shadow:0 1px 2px rgba(0,0,0,.3);transition:.2s} .sfxsw.off i{background:#c9c2b4} .sfxsw.off i::after{left:3px}
  .row{display:flex; gap:8px; align-items:center;}
  .nav{display:flex; border-top:1px solid var(--line); background:var(--cream); padding-bottom:max(env(safe-area-inset-bottom,0px), 10px);}
  .nav button{flex:1; background:none; border:none; padding:9px 4px; color:var(--muted); font-family:inherit; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:2px; font-size:12px;}
  .nav button.on{color:var(--accent); font-weight:600;} .nav svg{width:22px; height:22px;}
  .set-row{display:flex; align-items:center; justify-content:space-between; padding:12px 2px; border-bottom:1px solid var(--line); font-size:15px; cursor:pointer;}
  .set-row:last-child{border-bottom:none;} .set-row .v{color:var(--muted); font-size:14px;}
  .note{background:#FBF6ED; border:1px solid var(--line); border-radius:10px; padding:10px 12px; font-size:13px; color:var(--muted); margin-top:8px;}
  .gbar{height:9px; border-radius:5px; background:var(--line); overflow:hidden; margin-top:8px;} .gbar > i{display:block; height:9px; background:var(--accent);}
  .pic{font-size:72px; text-align:center; padding:14px 0; line-height:1;}
  .vimg{object-fit:contain; vertical-align:middle;}
  .pic .vimg{ width:calc(var(--vimg-quiz) * var(--vmult-v,1)); height:calc(var(--vimg-quiz) * var(--vmult-v,1)); max-width:100%; display:inline-block; }
  .pic .vimg.scene{ width:calc(clamp(150px,44vw,260px) * var(--vmult-v,1)); height:calc(clamp(150px,44vw,260px) * var(--vmult-v,1)); }
  .vsz{margin:10px auto 16px; max-width:280px;}
  .vsz-top{display:flex; align-items:center; justify-content:space-between; margin-bottom:18px;}
  .vsz-lab{font-size:13px; color:var(--muted);}
  .vsz-right{display:flex; align-items:center; gap:10px;}
  .vsz-val{font-size:13px; color:var(--ink); min-width:40px; text-align:right;}
  .vsz-reset{font-size:12px; padding:4px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; color:var(--muted); cursor:pointer; font-family:inherit;}
  .vsz-row{display:flex; align-items:center; gap:10px; margin-top:2px;}
  .vsz-row input[type=range]{flex:1; min-width:0; margin:0; accent-color:var(--accent);}
  .vsz-row svg{flex:0 0 auto; color:var(--muted);}
  .vszL{position:fixed; left:3px; top:50%; transform:translateY(-50%); display:flex; flex-direction:column; align-items:center; gap:14px; padding:8px 5px; background:var(--soft,#f1efe9); border:1px solid var(--line); border-radius:12px; z-index:6;}
  .vszL-val{font-size:10px; color:var(--muted); min-width:24px; text-align:center;}
  .vszL-sld{writing-mode:vertical-lr; direction:rtl; -webkit-appearance:slider-vertical; width:26px; height:260px; accent-color:var(--accent); margin:2px 0;}
  .vszL-reset{font-size:10px; padding:3px 6px; border:1px solid var(--line); border-radius:7px; background:#fff; color:var(--muted); cursor:pointer; font-family:inherit;}
  .qko{text-align:center; margin-top:8px;}
  .qko .qmean{font-size:18px; font-weight:700; color:var(--ink);}
  .qko .qpos{font-size:13px; font-weight:600; color:var(--muted); margin-left:3px;}
  .qask{text-align:center; font-size:16px; font-weight:600; color:var(--ink); margin-top:12px; line-height:1.5;}
  .kobtn{position:absolute; top:12px; right:12px; z-index:2; background:none; border:1px solid var(--line); border-radius:9px; padding:7px 13px; font-family:inherit; font-size:13px; color:var(--accent); cursor:pointer; min-height:auto;}
  .opt{position:relative; width:100%; text-align:center; background:#fff; border:1px solid var(--line); border-radius:var(--r-btn); padding:14px 0; font-family:inherit; font-size:19px; font-weight:600; cursor:pointer; color:var(--ink);}
  .opt.emoji{font-size:40px;} .optword{font-size:22px; font-weight:500; color:var(--ink);} .opt.row{display:flex; align-items:center; justify-content:center; padding:12px;} .opt.row .imgcell{flex:0 0 calc(52px * var(--vmult-l,1)); display:inline-flex; align-items:center; justify-content:center;} .opt.row .emoji{font-size:34px;} .opt.row .vimg{width:calc(52px * var(--vmult-l,1)); height:calc(52px * var(--vmult-l,1));} .opt.row .optword{width:118px; text-align:left; margin-left:14px;} .opt .vimg{width:calc(clamp(84px,23vw,132px) * var(--vmult-l,1));height:calc(clamp(84px,23vw,132px) * var(--vmult-l,1));display:inline-block;}
  .opt .vimg.scene{width:calc(clamp(110px,30vw,176px) * var(--vmult-l,1));height:calc(clamp(110px,30vw,176px) * var(--vmult-l,1));} .opt + .opt{margin-top:10px;} .opt.ok{background:#EAF3DE; border-color:var(--ok); color:#2A5208;} .opt.no{background:#FBEDED; border-color:var(--err); color:var(--err);}
  .fb{text-align:center; border-radius:10px; padding:11px; font-size:15px; font-weight:600; margin:12px 0;}
  .fb.ok{background:#EAF3DE; color:#2A5208;} .fb.no{background:#FBEDED; color:var(--err);}
  .wcard{display:flex; align-items:center; gap:12px; padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:#fff;} .wcard+.wcard{margin-top:8px;}
  .wcard .emoji{font-size:30px; width:40px; text-align:center; line-height:1;}
  .wcard .emoji .vimg{ width:40px; height:40px; }   /* 단어목록 그림은 현행 40px 유지(범위 외 보호) */
  .wcard .meta{flex:1;} .wcard .en{font-size:18px; font-weight:600;} .wcard .ko{font-size:14px; color:var(--muted); margin-top:1px;}
  .wcard .emoji.fade .vimg{ filter:grayscale(.85) opacity(.55); }   /* fade2차: 정착 2~3 그림 흐림 */
  .pchip{ display:inline-block; min-width:26px; padding:4px 6px; border-radius:8px; color:#fff; font-size:14px; font-weight:800; text-align:center; line-height:1.1; }
  .pchip.n{background:#3F7CC0}.pchip.v{background:#3F9D6B}.pchip.a{background:#E0892F}.pchip.d{background:#8A6FC0}.pchip.num{background:#2E9C9C}.pchip.x{background:#8A7E68}   /* 텍스트UI 품사 색칩 */
  .wcard .emoji .pchip{ font-size:13px; min-width:24px; padding:4px 0; }
  .pic .pchip{ font-size:32px; min-width:64px; padding:16px 10px; border-radius:16px; }
  .lcz-phrase{ text-align:center; font-size:24px; font-weight:700; margin:14px 0; }
  .lcz-w{ color:var(--ink); }
  .lcz-blank{ display:inline-block; min-width:2.4em; padding:0 6px; border-bottom:2px solid var(--accent); color:var(--accent); filter:blur(7px); transition:filter .25s; user-select:none; }
  .lcz-blank.peek{ filter:none; }
  .lcz-blank.ok{ filter:none; color:#2f9d6b; border-color:#2f9d6b; }
  .lcz-blank.no{ filter:none; color:#c0392b; border-color:#c0392b; }
  .korev{display:inline-block; background:var(--soft); border:1px dashed var(--line); border-radius:8px; padding:3px 10px; font-size:14px; color:var(--accent); cursor:pointer; margin-top:1px;}
  .korev .korev-ko{display:none; color:var(--ink);} .korev.open .korev-ko{display:inline;} .korev.open .korev-cue{display:none;}   /* 정착 4~5: 뜻 가림→탭 인출 */
  .lcap{text-align:center; margin-top:8px; font-size:16px; font-weight:700; color:var(--muted); letter-spacing:.5px;}   /* fade2차 듣기 자막(저정착 힌트) */
  .wcard .wex{font-size:13px; color:var(--muted); margin-top:3px; line-height:1.45; font-style:italic;}   /* fade3차: 단어목록 예문(box>=2) */
  .cloze{text-align:center; font-size:20px; font-weight:600; color:var(--ink); margin:14px 0 4px; line-height:1.5;}   /* fade3차: 어휘 cloze 예문문장 */
  .cloze .clozeblank{display:inline-block; min-width:62px; border-bottom:2px solid var(--accent); color:var(--accent); font-weight:700;}
  .play{background:var(--accent); color:#fff; border:none; border-radius:50%; width:40px; height:40px; cursor:pointer; display:flex; align-items:center; justify-content:center;}
  .play svg{width:20px; height:20px;}
  .bigplay{background:var(--accent); color:#fff; border:none; border-radius:12px; padding:12px 16px; cursor:pointer; display:flex; align-items:center; justify-content:center; gap:8px; font-family:inherit; font-size:15px; font-weight:600; width:100%; margin-top:12px;}
  .bigplay svg{width:22px; height:22px;}
  .imgzoom{position:fixed; inset:0; background:rgba(0,0,0,.72); display:flex; align-items:center; justify-content:center; z-index:50; padding:16px;}
  .imgzoom-box{background:#fff; border-radius:16px; padding:16px; max-width:92vw; max-height:88vh; display:flex; flex-direction:column; align-items:center; gap:10px; box-sizing:border-box;}
  .imgzoom img{max-width:82vw; max-height:74vh; object-fit:contain; display:block;}
  .imgzoom-cap{font-size:13px; color:var(--muted);}
  .optzoom{position:absolute; top:2px; right:4px; font-size:21px; line-height:1; cursor:zoom-in; opacity:.9; padding:7px; border-radius:50%; background:rgba(255,255,255,.72);}
  .piczoom{cursor:zoom-in; display:block;}
  .srs{text-align:right;} .srsbar{display:flex; gap:3px; justify-content:flex-end;}
  .srsbar i{width:13px; height:9px; border-radius:2px; background:var(--line);} .srsbar i.f{background:var(--lv5);}
  .srslab{font-size:12px; color:var(--muted); margin-top:4px;}
  .metric{display:flex; gap:8px;} .metric .m{flex:1; text-align:center; background:#FBF6ED; border:1px solid var(--line); border-radius:10px; padding:10px 4px;}
  .metric .m .v{font-size:19px; font-weight:600;} .metric .m .k{font-size:12px; color:var(--muted); margin-top:2px;}
  .pass{display:flex; align-items:center; gap:10px; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fff; cursor:pointer;} .pass+.pass{margin-top:8px;}
  .pass .pi{font-size:24px; width:34px; text-align:center;} .pass .meta{flex:1;} .pass .ti{font-size:16px; font-weight:600;} .pass .su{font-size:13px; color:var(--muted); margin-top:1px;}
  .pass .badge{font-size:12px; color:var(--brand); border:1px solid var(--brand); border-radius:20px; padding:3px 9px;}
  .rtext{line-height:2.0; font-size:18px;} .rw{cursor:pointer; border-bottom:2px solid var(--accent); padding-bottom:1px;}
  .glossbar{position:sticky; bottom:0; background:var(--deep); color:#fff; border-radius:10px; padding:11px 13px; font-size:15px; margin-top:12px; display:flex; align-items:center; gap:8px;}
  .glossbar b{font-size:17px;} .glossbar .add{margin-left:auto; font-size:12px; color:#9FC4B2;}
  .intro{position:fixed; top:0; bottom:0; left:50%; transform:translateX(-50%); width:100%; max-width:420px; background:var(--intro-bg,#F4EFE6); color:#22403a; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:14px; z-index:10;}
  .introtree{position:relative; width:190px; height:190px; margin-bottom:2px;}
  .introtree img{position:absolute; inset:0; width:100%; height:100%; object-fit:contain; opacity:0; animation:introGrow .4s ease forwards; animation-delay:calc(var(--i) * var(--intro-step,0.14s));}
  @keyframes introGrow{to{opacity:1;}}
  .intro .logo{width:240px; height:80px;}   /* 가로 락업(아이콘+Enharu 워드마크) — 단독 아이콘 64px 대체 2026-07-15 */ .intro h1{font-size:22px; font-weight:700; margin:0; color:#1f5c48;} .intro p{color:#6b8a7c; font-size:13px; margin:0;}
  .intro .start{background:var(--brand); color:#fff; border:none; border-radius:10px; padding:10px 18px; font-family:inherit; font-weight:600; cursor:pointer;}
  .empty{color:var(--muted); text-align:center; padding:34px 0; font-size:14px;}
  .toast{position:fixed; left:50%; bottom:84px; transform:translateX(-50%); background:#2C2A26; color:#fff; padding:9px 16px; border-radius:20px; font-size:13px; z-index:50; opacity:0; transition:opacity .2s; pointer-events:none; max-width:80%;}
  .toast.show{opacity:.95;}
  .chips{display:flex; gap:8px; margin:12px 0;}
  .chip{flex:1; background:#fff; border:1px solid var(--line); border-radius:20px; padding:8px 0; font-family:inherit; font-size:14px; cursor:pointer; color:var(--muted);}
  .chip.on{background:var(--accent); color:#fff; border-color:var(--accent); font-weight:600;}
  .wchip{flex:1 1 auto; min-width:48px; min-height:48px; padding:10px 14px; font-size:17px; margin:4px;}   /* 쓰기 낱말 칩 터치 영역(48dp 기준 · 2026-10-10) */
  .usel{display:grid; grid-template-columns:repeat(auto-fill,minmax(46px,1fr)); gap:9px;}
  .tgrid{display:grid; grid-template-columns:repeat(2,1fr); gap:8px;}
  .tgrid .chip{width:100%; text-align:center; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
  @media(min-width:560px){ .tgrid{grid-template-columns:repeat(3,1fr);} }
  .utile{position:relative; aspect-ratio:1; min-height:46px; border:1px solid var(--line); border-radius:10px; background:#fff; color:var(--ink); font-family:inherit; font-size:17px; font-weight:700; display:flex; align-items:center; justify-content:center; padding:0; cursor:pointer;}
  .utile.on{background:var(--accent); color:#fff; border-color:var(--accent);}
  .utile.done{color:var(--accent); border-color:var(--lv4);}
  .utile.lock{opacity:.5; color:var(--muted); cursor:default;}
  .utile .b{position:absolute; top:2px; right:4px; font-size:10px; line-height:1;}
  .ustage{grid-template-columns:repeat(auto-fit,minmax(72px,1fr));}
  .utile.ust{aspect-ratio:auto; min-height:46px; font-size:14px; padding:8px 4px;}
  html.lgmode .utile.ust{font-size:16px; min-height:52px;}
  html[data-skin="dark"] .utile, html[data-skin="lgdark"] .utile{background:#1C232E; color:#E8EDF2;}
  html[data-skin="dark"] .utile.on, html[data-skin="lgdark"] .utile.on{background:var(--accent); color:#fff;}
  html.lgmode .utile{font-size:20px; min-height:54px;}
  .usum{display:flex; align-items:center; margin:0 0 9px;}
  .usum .m{font-size:13px; color:var(--muted);}
  .usum .m b{color:var(--accent); font-size:15px;}
  .usum .x{margin-left:auto; border:1px solid var(--line); background:#fff; border-radius:16px; padding:4px 12px; font-size:12.5px; color:var(--accent); font-weight:600; cursor:pointer; font-family:inherit;}
  .udots{display:flex; align-items:center; justify-content:center; color:var(--muted); font-size:14px; font-weight:700; letter-spacing:1px;}
  html[data-skin="dark"] .usum .x, html[data-skin="lgdark"] .usum .x{background:#1C232E;}
  .ssent{font-size:19px; line-height:1.6; font-weight:600; text-align:center; padding:16px 8px; color:var(--ink);}
  .btn.rec{background:var(--err);} .recdot{display:inline-block; width:9px; height:9px; border-radius:50%; background:#fff; margin-right:6px; animation:blink 1s infinite;}
  .aibox{background:#EFF5EE; border:1px solid #CFE3D6; border-radius:10px; padding:11px 12px; font-size:14px; line-height:1.65; margin-top:10px; white-space:pre-wrap; color:var(--ink);}
  .aibox.err{background:#FBEDED; border-color:#E6C9C9; color:var(--err);}
  .clist{display:flex; flex-direction:column; gap:8px; max-height:58vh; overflow:auto; padding:4px 2px;}
  .crow{display:flex;} .crow.u{justify-content:flex-end;}
  .cbub{max-width:82%; padding:10px 13px; border-radius:14px; font-size:16.5px; line-height:1.6; white-space:pre-wrap;}
  .cbub.a{background:#fff; border:1px solid var(--line); color:var(--ink); border-bottom-left-radius:4px;}
  .cbub.u{background:var(--accent); color:#fff; border-bottom-right-radius:4px;}
  .cbub.err{background:#FBEDED; border:1px solid #E6C9C9; color:var(--err);}
  .cin{display:flex; gap:8px; margin-top:10px;}
  .cin input,.cin textarea{flex:1; min-width:0; padding:11px; border:1px solid var(--line); border-radius:10px; font-family:inherit; font-size:16px;}
  .cin textarea{resize:none; line-height:1.4; max-height:120px; overflow-y:auto;}
  .cin button{border:none; border-radius:10px; padding:0 16px; background:var(--accent); color:#fff; font-family:inherit; font-weight:600; cursor:pointer;}
  @keyframes blink{50%{opacity:.3;}}

  /* === 사용자 선택 스킨(테마) — data-skin 오버레이. 기본(미설정)=현행 그린 === */
  html[data-skin="warm"]{ --accent:#E0892F; --brand:#C9772A; --cream:#FAF6EF; --ink:#473F34; --muted:#7A7060; --line:#E9E0CF; --ok:#3F9D6B; --soft:#FFF8EC; }
  html[data-skin="warm"] body{ background:#EFE9DD; }
  html[data-skin="warm"] .note, html[data-skin="warm"] .metric .m{ background:#FFF8EC; }
  html[data-skin="focus"]{ --accent:#3F7CC0; --brand:#3F7CC0; --cream:#EEF3F8; --ink:#1F2B25; --muted:#5F7268; --line:#D6E0EA; --ok:#2F8B6A; --soft:#EEF4FB; }
  html[data-skin="focus"] body{ background:#E3EBF4; }
  html[data-skin="focus"] .note, html[data-skin="focus"] .metric .m{ background:#EEF4FB; }
  html[data-skin="dark"]{ --accent:#3C9C84; --brand:#4FB39A; --cream:#1C232E; --ink:#E9EEF4; --muted:#9AA6B3; --line:#2D3641; --ok:#5BB98C; --soft:#232B37; --warnbox:#3A3320; --warnln:#5A4D2A; --warnink:#E5C77A; --infobox:#1E2A2E; --infoln:#2E4248; }
  html[data-skin="dark"] .top{ background:#1C232E; border-bottom:1px solid #2D3641; }
  html[data-skin="dark"] body{ background:#0D1016; }
  html[data-skin="dark"] .card, html[data-skin="dark"] .btn.ghost, html[data-skin="dark"] .wcard, html[data-skin="dark"] .pass, html[data-skin="dark"] .opt, html[data-skin="dark"] .chip, html[data-skin="dark"] .cbub.a{ background:#1C232E; }
  html[data-skin="dark"] .note, html[data-skin="dark"] .metric .m{ background:#232B37; }
  html[data-skin="dark"] .aibox{ background:#1B2A24; border-color:#2D4A3D; }
  html[data-skin="dark"] .vsz-reset, html[data-skin="dark"] .vszL-reset, html[data-skin="dark"] .domchip, html[data-skin="lgdark"] .vsz-reset, html[data-skin="lgdark"] .vszL-reset, html[data-skin="lgdark"] .domchip{ background:#1C232E; }
  html[data-skin="lglight"]{ --accent:#1F7A57; --brand:#1F7A57; --cream:#F2EFE7; --ink:#1A1A1A; --muted:#4A4A4A; --line:#C9C2B2; --ok:#2E7D32; --soft:#FBF8F0; }
  html[data-skin="lgdark"]{ --accent:#5BC0A8; --brand:#6FD0B8; --cream:#1C232E; --ink:#F5F7FA; --muted:#C0C8D2; --line:#2D3641; --ok:#5BB98C; --soft:#232B37; --warnbox:#3A3320; --warnln:#5A4D2A; --warnink:#E5C77A; --infobox:#1E2A2E; --infoln:#2E4248; }
  html[data-skin="lgdark"] body{ background:#0D1016; }
  html[data-skin="lgdark"] .card, html[data-skin="lgdark"] .btn.ghost, html[data-skin="lgdark"] .wcard, html[data-skin="lgdark"] .pass, html[data-skin="lgdark"] .opt, html[data-skin="lgdark"] .chip, html[data-skin="lgdark"] .cbub.a{ background:#1C232E; }
  html[data-skin="lgdark"] .note, html[data-skin="lgdark"] .metric .m{ background:#232B37; }
  html[data-skin="lgdark"] .top{ background:#1C232E; border-bottom:1px solid #2D3641; }
  html[data-skin="lgdark"] .aibox{ background:#1B2A24; border-color:#2D4A3D; }
  /* 큰글씨 모드(lglight/lgdark): 폭은 그대로, 글자·줄간만 확대 */
  html.lgmode body{ font-size:18px; }
  html.lgmode .h{ font-size:19px; } html.lgmode .big{ font-size:30px; }
  html.lgmode .label{ font-size:15px; line-height:1.6; } html.lgmode .note{ font-size:15px; line-height:1.7; } html.lgmode .qask{ font-size:18px; }
  html.lgmode .btn{ font-size:19px; } html.lgmode .opt{ font-size:22px; }
  html.lgmode .wcard .en{ font-size:21px; } html.lgmode .wcard .ko{ font-size:16px; }
  html.lgmode .set-row{ font-size:17px; } html.lgmode .set-row .v{ font-size:16px; }
  html.lgmode .pass .ti{ font-size:19px; } html.lgmode .pass .su{ font-size:15px; }
  html.lgmode .rtext{ font-size:21px; line-height:2.1; } html.lgmode .cbub{ font-size:19px; }
  html.lgmode .ssent{ font-size:22px; } html.lgmode .chip{ font-size:16px; } html.lgmode .nav button{ font-size:13px; }
  html.lgmode .wchip{ font-size:19px; }
.lib-entry{display:flex;align-items:center;gap:12px;cursor:pointer}
.lib-entry .le-emoji{font-size:30px;flex:0 0 auto}
.lib-today{background:var(--soft);border:1px solid var(--line);border-radius:var(--r-card);padding:13px;margin-top:12px;margin-bottom:14px;display:flex;gap:12px;align-items:center;cursor:pointer}
.lib-today .lt-cover{position:relative;width:54px;height:54px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:30px;flex:0 0 auto;overflow:hidden}
  .cover-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:12px}
.lib-today .lt-k{font-size:11px;color:var(--accent);font-weight:700}
.lib-today .lt-ti{font-weight:700;color:var(--ink);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lib-today .lt-su{font-size:12px;color:var(--muted);margin-top:1px}
.domchips{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:2px 0 12px}
.domchips::-webkit-scrollbar{display:none}
.domchip{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);background:#fff;color:var(--muted);border-radius:999px;padding:8px 6px;font-size:13px;font-weight:600;white-space:nowrap;cursor:pointer;overflow:hidden}
.domchip.on{background:var(--accent);border-color:var(--accent);color:#fff}
.domchip span{display:inline-flex;align-items:center;justify-content:center;width:18px;font-size:16px;line-height:1;margin-right:5px;flex:0 0 auto}
.shelf-head{display:flex;align-items:center;gap:7px;font-weight:700;color:var(--ink);margin:14px 2px 9px;font-size:15px}
.shelf-head .sh-cnt{font-size:12px;color:var(--muted);font-weight:500}
.sgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(90px,1fr));gap:13px 10px;padding:2px 0 4px}
.scard{border:none;background:none;padding:0;text-align:left;cursor:pointer;font-family:inherit}
.scard-cover{position:relative;width:100%;aspect-ratio:1.12;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:34px;border:1px solid var(--line)}
.scard-ti{font-size:12px;font-weight:600;color:var(--ink);margin-top:6px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:30px}
.scard-lv{font-size:11px;color:var(--muted);margin-top:1px}
.scard.locked{opacity:.5}
.scard-badge{position:absolute;top:5px;right:5px;font-size:12px;background:rgba(255,255,255,.92);border-radius:50%;width:20px;height:20px;display:flex;align-items:center;justify-content:center;line-height:1}
.lib-soon{color:var(--muted);font-size:13px;padding:4px 2px 8px}
  .lib-more{display:inline-block;background:none;border:none;color:var(--accent);font-weight:600;font-size:13px;padding:0 2px 12px;cursor:pointer;font-family:inherit}
#dailyPrint{display:none}
@media print{
  @page{margin:15mm}
  html,body{background:#fff !important;color:#000 !important}
  body > *:not(#dailyPrint){display:none !important}
  #dailyPrint{display:block !important;background:#fff !important;color:#000 !important;font-family:Arial,'Malgun Gothic',sans-serif;font-size:12pt;line-height:1.5}
  #dailyPrint header,#dailyPrint section,#dailyPrint footer{display:block}
  #dailyPrint .daily-print-brand{font-weight:700;font-size:14pt}
  #dailyPrint h1{font-size:18pt;line-height:1.3;margin:6mm 0 2mm}
  #dailyPrint .daily-print-story{font-weight:700}
  #dailyPrint .daily-print-notice{margin:4mm 0}
  #dailyPrint h2{font-size:14pt;margin:8mm 0 2mm}
  #dailyPrint p{margin:0 0 2mm}
  #dailyPrint b{font-weight:700}
  #dailyPrint footer{margin-top:10mm}
}
