/* 一书两得 · Read once, learn twice — learning site styles.
   Six skins on <body data-skin="A–F"> via CSS variables. Typography is the design: Literata (reading), Fraunces (display),
   Inter (UI), Noto Serif SC / Noto Sans SC / LXGW WenKai (Chinese). Fonts are referenced as fonts/<file> from the site root;
   the build may subset and rename them — this @font-face block is the only place that names files. */

/* ---------------------------------------------------------------- fonts (OFL) */
@font-face { font-family: "YS Literata"; src: url("fonts/Literata.ttf") format("truetype"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "YS Literata"; src: url("fonts/Literata-Italic.ttf") format("truetype"); font-weight: 200 900; font-style: italic; font-display: swap; }
@font-face { font-family: "YS Fraunces"; src: url("fonts/Fraunces.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "YS Inter"; src: url("fonts/Inter.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "YS Serif SC"; src: url("fonts/NotoSerifSC.ttf") format("truetype"); font-weight: 200 900; font-style: normal; font-display: swap; }
@font-face { font-family: "YS Sans SC"; src: url("fonts/NotoSansSC.ttf") format("truetype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "YS Kai"; src: url("fonts/LXGWWenKai-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }

/* ---------------------------------------------------------------- skins */
:root {
  --hdh: 52px; --navh: 62px; --rail: 0px; --abh: 58px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
body {
  /* A · 纸本书房 Folio (default) */
  --bg: #f2ece0; --desk: #e6ddcb; --page: #f6f1e6; --card: #faf6ee;
  --ink: #2b2723; --ink2: #4d453d; --muted: #7b6f62; --rule: #cdbfa8; --rule2: #e2d8c6;
  --acc: #a4553a; --acc2: rgba(164, 85, 58, .08); --on-acc: #fbf6ee; --hl: rgba(164, 85, 58, .13); --ul: rgba(164, 85, 58, .6);
  --ok: #4f6b45; --shadow: 0 1px 1px rgba(60, 40, 20, .05), 0 12px 40px -12px rgba(60, 40, 20, .28);
  --f-read: "YS Literata", "YS Serif SC", Georgia, serif;
  --f-zh: "YS Serif SC", "YS Literata", "Songti SC", serif;
  --f-disp: "YS Fraunces", "YS Serif SC", Georgia, serif;
  --f-zdisp: "YS Serif SC", "YS Fraunces", serif;
  --f-ui: "YS Inter", "YS Sans SC", system-ui, -apple-system, sans-serif;
  --f-kai: "YS Kai", "YS Serif SC", serif;
  --disp-var: "opsz" 144, "SOFT" 100, "WONK" 0;
  --disp-w: 300; --zdisp-w: 600; --radius: 3px;
  --tex: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .32 0 0 0 0 .24 0 0 0 0 .16 0 0 0 .075 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body[data-skin="B"] { /* 手账 Journal */
  --bg: #fbf6ec; --desk: #efe6d6; --page: #fdf9f1; --card: #fffdf8;
  --ink: #3a3230; --ink2: #564b47; --muted: #8a7d76; --rule: #d9cfc0; --rule2: #ece4d6;
  --acc: #d9483b; --acc2: rgba(217, 72, 59, .07); --on-acc: #fffaf2; --hl: rgba(255, 214, 64, .5); --ul: #ffd640;
  --f-zh: "YS Kai", "YS Serif SC", serif; --f-zdisp: "YS Kai", serif; --zdisp-w: 400; --disp-var: "opsz" 144, "SOFT" 100, "WONK" 1; --disp-w: 500; --radius: 10px;
  --tex: radial-gradient(circle at 1px 1px, rgba(58, 50, 48, .2) 1px, transparent 1.4px) 0 0 / 18px 18px;
}
body[data-skin="C"] { /* 瑞士网格 Swiss */
  --bg: #f3f2ed; --desk: #e9e8e2; --page: #f7f6f2; --card: #fff;
  --ink: #111; --ink2: #2a2a2a; --muted: #5d5d5d; --rule: #111; --rule2: #cfcfca;
  --acc: #e63323; --acc2: rgba(230, 51, 35, .07); --on-acc: #fff; --hl: rgba(230, 51, 35, .12); --ul: #e63323;
  --f-read: "YS Inter", "YS Sans SC", sans-serif; --f-zh: "YS Sans SC", "YS Inter", sans-serif; --f-disp: "YS Inter", "YS Sans SC", sans-serif; --f-zdisp: "YS Sans SC", sans-serif;
  --disp-var: "opsz" 32; --disp-w: 800; --zdisp-w: 800; --radius: 0px; --tex: none;
}
body[data-skin="D"] { /* 孔版双色 Riso */
  --bg: #f0e8d6; --desk: #e5dbc5; --page: #f4ede0; --card: #f8f2e6;
  --ink: #0f63a8; --ink2: #1f6fb0; --muted: #4f86b5; --rule: #7aa7cf; --rule2: #c9d6df;
  --acc: #ff48b0; --acc2: rgba(255, 72, 176, .1); --on-acc: #fff; --hl: rgba(255, 72, 176, .2); --ul: #ff48b0;
  --f-zh: "YS Sans SC", "YS Literata", sans-serif; --f-zdisp: "YS Sans SC", sans-serif; --disp-w: 800; --zdisp-w: 900; --radius: 12px;
  --tex: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='1.2' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .06 0 0 0 0 .39 0 0 0 0 .66 0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body[data-skin="E"] { /* 东方 Ink */
  --bg: #eee5d0; --desk: #e2d7bd; --page: #f2eadb; --card: #f6f0e3;
  --ink: #1d1a17; --ink2: #3b342d; --muted: #6b4f36; --rule: #b9a585; --rule2: #d9ccb2;
  --acc: #b8322a; --acc2: rgba(184, 50, 42, .07); --on-acc: #f6eedf; --hl: rgba(184, 50, 42, .1); --ul: rgba(184, 50, 42, .6);
  --f-zh: "YS Kai", "YS Serif SC", serif; --f-zdisp: "YS Serif SC", serif; --zdisp-w: 900; --radius: 2px;
  --tex: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.012 .5' numOctaves='3' seed='4' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .18 0 0 0 .12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
body[data-skin="F"] { /* 蓝晒 Cyanotype */
  --bg: #16467f; --desk: #103866; --page: #1a4d89; --card: #1f5592;
  --ink: #eaf2ff; --ink2: rgba(234, 242, 255, .86); --muted: rgba(234, 242, 255, .62); --rule: rgba(234, 242, 255, .38); --rule2: rgba(234, 242, 255, .16);
  --acc: #a9d6ff; --acc2: rgba(169, 214, 255, .1); --on-acc: #0f3866; --hl: rgba(255, 255, 255, .14); --ul: rgba(169, 214, 255, .75);
  --ok: #b7e4a9; --shadow: 0 16px 50px -14px rgba(0, 10, 30, .6); --f-ui: "YS Inter", "YS Sans SC", sans-serif; --radius: 2px;
  --tex: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.65' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font: 400 15px/1.55 var(--f-ui);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  font-kerning: normal; min-height: 100vh; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0; background: var(--tex); pointer-events: none; z-index: 0; }
#app { position: relative; z-index: 1; }
h1, h2, h3, h4, p, ol, ul, dl, dd, blockquote, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }
::selection { background: var(--hl); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--ink); color: var(--bg); padding: 8px 12px; }
.skip:focus { left: 8px; }
.ic { width: 22px; height: 22px; flex: none; display: block; }
.ic.sm { width: 16px; height: 16px; }
.Ls { font-family: var(--f-read); }
.Ln { font-family: var(--f-zh); }
body.cjk-s .Ls { font-family: var(--f-zh); }
body:not(.cjk-n) .Ln { font-family: var(--f-read); }
.rn { font-family: var(--f-disp); font-variation-settings: "opsz" 24; font-weight: 500; letter-spacing: .06em; color: var(--acc); font-size: .86em; }
.lab, .kick { font: 600 10.5px/1.3 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.kick i { font-style: normal; opacity: .6; margin: 0 .3em; }
.note { color: var(--muted); font-size: 14px; padding: 12px 0; }
.hint { color: var(--muted); font-size: 12.5px; line-height: 1.6; margin-top: 14px; }
.pill { font: 600 10px/1 var(--f-ui); letter-spacing: .14em; color: var(--on-acc); background: var(--acc); padding: 5px 8px 4px; border-radius: 99px; white-space: nowrap; }
.tag { display: inline-block; font: 600 9.5px/1 var(--f-ui); letter-spacing: .08em; padding: 3px 5px 2px; border: 1px solid var(--rule); border-radius: 2px; color: var(--muted); text-transform: uppercase; margin-right: 4px; white-space: nowrap; }
.no { font-family: var(--f-disp); font-variation-settings: "opsz" 24; font-weight: 500; color: var(--acc); font-variant-numeric: tabular-nums; }
.orn { display: block; width: 132px; height: 15px; color: var(--acc); margin: 18px auto 0; opacity: .9; }
.lnk { color: var(--acc); font-size: 13.5px; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.lnk.danger { color: var(--muted); }

/* buttons + segmented controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 9px 16px; border-radius: var(--radius); font: 500 14px/1.2 var(--f-ui); letter-spacing: .04em; transition: background .2s, color .2s, border-color .2s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn.pri { background: var(--acc); color: var(--on-acc); }
.btn.pri:hover { filter: brightness(1.06); }
.btn.line { border: 1px solid var(--rule); color: var(--ink); }
.btn.line:hover { border-color: var(--ink); }
.btn.line.on { border-color: var(--acc); color: var(--acc); }
.btn.line.on .ic g { fill: currentColor; }
.btn.ghost { color: var(--ink2); padding-left: 4px; padding-right: 4px; border-bottom: 1px solid var(--rule); border-radius: 0; min-height: 0; }
.btn.big { min-height: 50px; padding: 13px 24px; font-size: 15.5px; letter-spacing: .14em; }
.btn.sm { min-height: 34px; padding: 6px 12px; font-size: 13px; }
.btn .ic { width: 18px; height: 18px; }
.ib { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink2); transition: background .2s, color .2s; }
.ib:hover { background: var(--acc2); color: var(--acc); }
.ib.big { width: 48px; height: 48px; border: 1px solid var(--rule); }
.seg { display: inline-flex; border: 1px solid var(--rule); border-radius: 99px; padding: 2px; gap: 2px; background: color-mix(in srgb, var(--page) 70%, transparent); }
.seg button { display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 99px; font: 500 12.5px/1.2 var(--f-ui); color: var(--muted); white-space: nowrap; transition: background .25s, color .25s; }
.seg button.on { background: var(--ink); color: var(--page); }
.seg.sm button { padding: 5px 10px; font-size: 12px; }

/* ---------------------------------------------------------------- shell */
#nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(var(--navh) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-top: 1px solid var(--rule2);
}
#nav .seal, #nav .nv-about { display: none; }
.nv { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font: 500 10.5px/1 var(--f-ui); letter-spacing: .1em; transition: color .2s; }
.nv .ic { width: 23px; height: 23px; }
.nv.on { color: var(--ink); }
.nv.on::before { content: ""; position: absolute; top: 0; left: 50%; width: 22px; height: 2px; margin-left: -11px; background: var(--acc); border-radius: 0 0 2px 2px; }
.nv.playing::after { content: ""; position: absolute; top: 10px; left: calc(50% + 10px); width: 6px; height: 6px; border-radius: 50%; background: var(--acc); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; } }
.seal { width: 48px; height: 48px; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--acc), inset 0 0 0 3.5px var(--on-acc); font: 700 13px/1.08 var(--f-zdisp); letter-spacing: .04em; text-align: center; transform: rotate(-2deg); }
#hd {
  position: fixed; top: 0; left: var(--rail); right: 0; z-index: 50; height: calc(var(--hdh) + var(--safe-t)); padding: var(--safe-t) 10px 0 16px;
  display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--rule2);
}
.hd-l { flex: none; }
.wm { font: 600 13px/1 var(--f-zdisp); letter-spacing: .32em; color: var(--acc); }
.hd-c { flex: 1; min-width: 0; display: flex; justify-content: center; }
.hd-r { flex: none; display: flex; align-items: center; gap: 4px; }
.hd-day { font: 500 11.5px/1 var(--f-ui); letter-spacing: .08em; color: var(--muted); display: none; }
.bk { display: flex; align-items: baseline; gap: 8px; min-width: 0; white-space: nowrap; overflow: hidden; }
.bk-t { font-style: italic; font-size: 16.5px; color: var(--ink); }
.bk-z { font-size: 13px; letter-spacing: .2em; color: var(--muted); }
.chbtn { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; padding: 6px 10px; border-radius: 99px; white-space: nowrap; transition: background .2s; }
.chbtn:hover { background: var(--acc2); }
.chbtn .cht { font-style: italic; font-size: 16px; overflow: hidden; text-overflow: ellipsis; }
.chbtn .chz { font-size: 13px; letter-spacing: .15em; color: var(--muted); }
.chbtn .ic { color: var(--muted); }
body[data-tab="read"] .hd-l { display: none; }
main { position: relative; padding-top: calc(var(--hdh) + var(--safe-t)); padding-bottom: calc(var(--navh) + var(--safe-b)); margin-left: var(--rail); outline: none; }
.pane { display: none; }
.pane.on { display: block; animation: paneIn .35s var(--ease); }
@keyframes paneIn { from { opacity: 0; } }

/* pages and spreads */
.spread { position: relative; }
.page { padding: 26px 22px 40px; }
.phead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid var(--ink); }
.ph-t { font: var(--zdisp-w) 24px/1.3 var(--f-zdisp); letter-spacing: .04em; margin-top: 6px; }
.ph-s { color: var(--muted); font-size: 13px; margin-top: 6px; }
.rhead { display: none; }

@media (min-width: 900px) {
  :root { --rail: 92px; --navh: 0px; --hdh: 56px; }
  body { background: var(--desk); }
  body::before { opacity: .9; }
  #nav { top: 0; bottom: 0; right: auto; width: var(--rail); height: auto; padding: 22px 0 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; border-top: 0; border-right: 1px solid var(--rule2); background: color-mix(in srgb, var(--desk) 82%, var(--bg)); }
  #nav .seal { display: grid; margin-bottom: 22px; }
  #nav .nv-about { display: flex; margin-top: auto; }
  .nv { width: 72px; height: 64px; border-radius: 10px; font-size: 11px; gap: 6px; }
  .nv:hover { color: var(--ink); background: var(--acc2); }
  .nv.on { background: var(--page); box-shadow: 0 1px 0 var(--rule2); }
  .nv.on::before { top: 50%; left: -10px; width: 2px; height: 26px; margin: -13px 0 0; border-radius: 0 2px 2px 0; }
  .nv.playing::after { top: 12px; left: auto; right: 14px; }
  #hd { padding: 0 22px 0 28px; background: color-mix(in srgb, var(--desk) 86%, transparent); }
  .hd-day { display: inline; margin-right: 6px; }
  .wm { font-size: 12px; }
  .spread { max-width: 780px; margin: 30px auto 70px; background: var(--page); box-shadow: var(--shadow); border-radius: 2px; }
  .spread::before { content: ""; position: absolute; inset: 0; background: var(--tex); opacity: .55; pointer-events: none; border-radius: inherit; }
  .page { position: relative; padding: 46px 56px 56px; }
  .phead { margin-bottom: 28px; }
  .ph-t { font-size: 28px; }
}
@media (min-width: 1100px) {
  .spread:not(.single) { display: grid; grid-template-columns: 1fr 1fr; max-width: 1240px; margin: 30px 40px 80px; }
  .spread:not(.single)::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 90px; margin-left: -45px; pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(40, 25, 10, .045) 38%, rgba(40, 25, 10, .11) 49.6%, rgba(255, 255, 255, .18) 50.4%, rgba(40, 25, 10, .04) 62%, transparent); }
  body[data-skin="F"] .spread:not(.single)::after { background: linear-gradient(90deg, transparent, rgba(0, 0, 0, .12) 45%, rgba(0, 0, 0, .25) 50%, rgba(0, 0, 0, .1) 55%, transparent); }
  .spread.single { max-width: 860px; }
  .page { padding: 52px 68px 64px; }
  .rhead { display: flex; justify-content: space-between; font: 600 10px/1 var(--f-ui); letter-spacing: .26em; text-transform: uppercase; color: var(--muted); padding-bottom: 14px; margin-bottom: 30px; border-bottom: 1px solid var(--rule2); }
  .rh2 { justify-content: flex-end; }
}
@media (min-width: 1400px) { .spread:not(.single) { margin-left: auto; margin-right: auto; } }

/* ---------------------------------------------------------------- 今日 / plan */
.mast { text-align: center; padding: 8px 0 6px; }
.btitle { font: var(--disp-w) 50px/1.02 var(--f-disp); font-variation-settings: var(--disp-var); letter-spacing: -.012em; margin-top: 16px; color: var(--ink); }
body.cjk-s .btitle { font-family: var(--f-zdisp); font-weight: var(--zdisp-w); letter-spacing: .1em; }
.bsub { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; margin-top: 12px; font-size: 15px; color: var(--ink2); }
.bsub .Ln { letter-spacing: .18em; }
.bsub > span + span::before { content: "·"; margin-right: 14px; color: var(--rule); }
.oneline { max-width: 26em; margin: 16px auto 0; color: var(--ink2); font-size: 14.5px; line-height: 1.85; letter-spacing: .02em; }
.day { position: relative; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--ink); }
.day::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 1px solid var(--rule); }
.day-top { display: flex; align-items: center; gap: 14px; }
.dno { font: var(--disp-w) 58px/.86 var(--f-disp); font-variation-settings: var(--disp-var); color: var(--acc); font-variant-numeric: lining-nums; letter-spacing: -.02em; }
.dno small { display: block; font: 600 9.5px/1 var(--f-ui); letter-spacing: .34em; color: var(--muted); margin-bottom: 7px; }
.dmeta { display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--muted); flex: 1; }
.dmeta b { font: 500 14px/1.2 var(--f-zh); color: var(--ink); letter-spacing: .06em; }
.stamp { font: 700 15px/1 var(--f-zdisp); color: var(--acc); border: 2px solid var(--acc); padding: 8px 9px; border-radius: 3px; letter-spacing: .2em; transform: rotate(-8deg); opacity: .85; box-shadow: inset 0 0 0 2px var(--page), inset 0 0 0 3px var(--acc); }
.day-t { font: var(--zdisp-w) 27px/1.3 var(--f-zdisp); letter-spacing: .06em; margin-top: 18px; }
.day-f { margin-top: 10px; color: var(--ink2); font-size: 15px; line-height: 1.85; }
.day-m { margin-top: 20px; border-top: 1px solid var(--rule2); }
.day-m > div { display: grid; grid-template-columns: 3.6em 1fr; gap: 12px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--rule2); }
.day-m dt { font: 600 10.5px/1.6 var(--f-ui); letter-spacing: .22em; color: var(--muted); }
.day-m dd { font-size: 14.5px; color: var(--ink); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.chref { display: inline-flex; gap: 6px; align-items: baseline; border-bottom: 1px solid transparent; transition: border-color .2s; }
.chref:hover { border-color: var(--acc); }
.chref .Ls { font-style: italic; font-size: 15.5px; }
.chref .z { color: var(--muted); font-size: 13px; letter-spacing: .1em; }
.mixdots { display: inline-flex; gap: 3px; margin-right: 4px; transform: translateY(-1px); }
.mixdots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--acc); }
.mixdots i.on { background: var(--acc); }
.dsec { margin-top: 24px; }
.dsec .lab { margin-bottom: 8px; }
.dpts li + li { border-top: 1px solid var(--rule2); }
.dpts button { width: 100%; display: grid; grid-template-columns: 2.1em 1fr; gap: 2px 8px; padding: 10px 0; text-align: left; }
.dpts .no { grid-row: span 2; font-size: 17px; }
.pt-t { font-size: 16px; color: var(--ink); letter-spacing: .03em; }
.pt-q { font-style: italic; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dpts button:hover .pt-t { color: var(--acc); }
.wchips { display: flex; flex-wrap: wrap; gap: 7px; }
.wchip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 11px 6px; border: 1px solid var(--rule); border-radius: 99px; transition: border-color .2s, background .2s; }
.wchip:hover { border-color: var(--acc); background: var(--acc2); }
.wchip b { font-weight: 600; font-size: 14.5px; }
.wchip span { font-size: 12px; color: var(--muted); }
.wchip.kn { opacity: .5; }
.wchip.kn b { text-decoration: line-through; text-decoration-color: var(--acc); }
.task p { font-family: var(--f-kai); font-size: 17px; line-height: 1.8; padding: 4px 0 4px 16px; border-left: 2px solid var(--acc); color: var(--ink); }
.day-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.day-cta .btn.pri { min-width: 11em; }
.chk { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 16px; margin-top: 24px; padding-top: 14px; border-top: 1px dashed var(--rule); }
.chk button { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: 13px; color: var(--ink2); text-align: left; line-height: 1.35; }
.chk i { flex: none; width: 17px; height: 17px; border: 1px solid var(--muted); border-radius: 2px; display: grid; place-items: center; color: transparent; transition: background .2s, border-color .2s; }
.chk i .ic { width: 13px; height: 13px; }
.chk button.on { color: var(--muted); }
.chk button.on i { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.day-done { margin-top: 18px; display: flex; align-items: center; gap: 14px; }
.okline { display: inline-flex; align-items: center; gap: 6px; color: var(--acc); font-size: 14px; }
.okline .ic { width: 18px; height: 18px; }
.prog .lab, .dlist .lab { margin-bottom: 14px; }
.prog-row { display: flex; align-items: center; gap: 22px; }
.ring { width: 118px; height: 118px; flex: none; }
.ring .r0 { fill: none; stroke: var(--rule2); stroke-width: 3; }
.ring .r1 { fill: none; stroke: var(--acc); stroke-width: 3; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 60px 60px; transition: stroke-dashoffset 1s var(--ease); }
.ring .rt { font: var(--disp-w) 34px/1 var(--f-disp); font-variation-settings: var(--disp-var); fill: var(--ink); text-anchor: middle; }
.ring .rs { font-size: 16px; fill: var(--muted); }
.ring .rl { font: 600 8px var(--f-ui); letter-spacing: .2em; fill: var(--muted); text-anchor: middle; text-transform: uppercase; }
.stats { flex: 1; display: grid; gap: 0; }
.stats > div { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--rule2); }
.stats dt { font-size: 12.5px; color: var(--muted); letter-spacing: .06em; }
.stats dd { font: 400 22px/1 var(--f-disp); font-variation-settings: "opsz" 48; color: var(--ink); font-variant-numeric: tabular-nums; }
.stats small { font: 400 12px var(--f-ui); color: var(--muted); }
.cells { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 22px; }
.cell { aspect-ratio: 1 / 1.08; border: 1px solid var(--rule); border-radius: 2px; display: flex; flex-direction: column; justify-content: space-between; padding: 5px 6px; transition: background .25s, border-color .25s; }
.cell b { font: 500 13px/1 var(--f-disp); font-variation-settings: "opsz" 24; color: var(--ink2); }
.cell small { font: 500 9px/1 var(--f-ui); color: var(--muted); align-self: flex-end; letter-spacing: .04em; }
.cell.on { background: var(--acc); border-color: var(--acc); }
.cell.on b, .cell.on small { color: var(--on-acc); }
.cell.now { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.cell.sel:not(.now) { border-color: var(--ink); }
.cell:hover { border-color: var(--ink); }
.dlist { margin-top: 34px; }
.dlist ol { border-top: 1px solid var(--ink); }
.dl { width: 100%; display: grid; grid-template-columns: 2.4em 1fr auto 22px; align-items: center; gap: 10px; padding: 11px 4px 11px 0; border-bottom: 1px solid var(--rule2); text-align: left; transition: background .2s; }
.dl:hover { background: var(--acc2); }
.dl-n { font: var(--disp-w) 21px/1 var(--f-disp); font-variation-settings: var(--disp-var); color: var(--muted); font-variant-numeric: lining-nums tabular-nums; }
.dl-t { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.dl-t b { font-weight: 500; font-size: 15px; letter-spacing: .04em; }
.dl-t small { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-style: italic; font-family: var(--f-read); }
.dl-t small .rn { font-style: normal; margin-right: 4px; }
.dl-m { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dl-s { color: var(--acc); display: grid; place-items: center; }
.dl-s .ic { width: 17px; height: 17px; }
.dl-s .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px var(--acc2); }
.dl.done .dl-n { color: var(--acc); }
.dl.now .dl-t b { color: var(--acc); }
.dl.sel { background: var(--acc2); }
.certlink { width: 100%; display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius); text-align: left; transition: border-color .2s; }
.certlink:hover { border-color: var(--acc); }
.certlink > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.certlink b { font: 600 15px/1.2 var(--f-zdisp); letter-spacing: .14em; }
.certlink small { color: var(--muted); font-size: 12px; }
.cl-seal { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--acc); color: var(--acc); display: grid; place-items: center; }
.cl-seal .ic { width: 18px; height: 18px; }
.certlink.ready .cl-seal { background: var(--acc); color: var(--on-acc); }
.toc { margin-top: 26px; border-top: 1px solid var(--ink); }
.toc button { width: 100%; display: grid; grid-template-columns: 3em 1fr auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--rule2); align-items: baseline; text-align: left; }
.toc .Ls { font-style: italic; }
.toc .z { color: var(--muted); font-size: 13px; }
@media (min-width: 1100px) {
  .plan .pl { padding-top: 58px; }
  .plan .pr { padding-top: 70px; }
  .btitle { font-size: 66px; }
}

/* certificate */
.cert { padding: 6px 0 0; }
.cert-in { position: relative; overflow: hidden; text-align: center; padding: 44px 26px 36px; background: var(--card); border: 1px solid var(--acc); outline: 1px solid var(--acc); outline-offset: -9px; }
.cert-in::before { content: ""; position: absolute; inset: 0; background: var(--tex); opacity: .6; pointer-events: none; }
.cert-wm { position: absolute; left: 50%; top: 46%; transform: translate(-50%, -50%) rotate(-18deg); font: 900 92px/1 var(--f-zdisp); color: var(--acc); opacity: .06; letter-spacing: .3em; pointer-events: none; white-space: nowrap; }
.cert-k { font: 600 10px/1.4 var(--f-ui); letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.cert-t { font: 700 34px/1.2 var(--f-zdisp); letter-spacing: .5em; text-indent: .5em; margin-top: 22px; color: var(--ink); }
.cert-e { font: italic 400 17px/1.3 var(--f-read); color: var(--muted); margin-top: 6px; }
.cert-p { font-size: 13.5px; color: var(--muted); margin-top: 22px; letter-spacing: .1em; }
.cert-name { display: block; width: min(320px, 80%); margin: 10px auto 0; border: 0; border-bottom: 1px solid var(--ink); background: transparent; text-align: center; font: 400 28px/1.4 var(--f-kai); color: var(--ink); padding: 4px 0; outline: none; position: relative; }
.cert-name::placeholder { color: var(--rule); font-size: 18px; }
.cert-b { font: var(--disp-w) 46px/1.05 var(--f-disp); font-variation-settings: var(--disp-var); margin-top: 14px; }
.cert-bz { font-size: 16px; letter-spacing: .14em; color: var(--ink2); margin-top: 8px; }
.cert-s { font: 500 11.5px/1.5 var(--f-ui); letter-spacing: .12em; color: var(--muted); margin-top: 22px; }
.cert-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-top: 34px; text-align: left; position: relative; }
.cert-d { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink2); }
.cert-d i { display: block; width: 150px; border-top: 1px solid var(--ink); }
.cert-d small { color: var(--muted); font-size: 11.5px; letter-spacing: .06em; }
.sealbig { width: 78px; height: 78px; flex: none; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; border-radius: 4px; box-shadow: inset 0 0 0 3px var(--acc), inset 0 0 0 5px var(--on-acc); transform: rotate(-5deg); font: 800 20px/1.08 var(--f-zdisp); letter-spacing: .06em; text-align: center; mix-blend-mode: multiply; opacity: .92; }
body[data-skin="F"] .sealbig { mix-blend-mode: normal; }
.sealbig.sm { width: 52px; height: 52px; font-size: 14px; transform: rotate(-3deg); }
.cert-act { display: flex; justify-content: center; gap: 10px; margin-top: 16px; }

/* ---------------------------------------------------------------- 地图 / map */
.mapv { padding: 22px 18px 40px; }
.mapv .phead { max-width: 1240px; margin-left: auto; margin-right: auto; }
.map-body { max-width: 1240px; margin: 0 auto; }
.map-svg { position: relative; margin: 0 -10px; }
.cmap { display: block; width: 100%; height: auto; color: var(--ink); overflow: hidden; }
.m-halo { opacity: .9; }
.m-orbit { fill: none; stroke: var(--rule); stroke-width: 1; }
.m-orbit2 { fill: none; stroke: var(--rule); stroke-width: .8; stroke-dasharray: 1 6; stroke-linecap: round; }
.m-arc { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; opacity: .75; }
.m-arc.empty { stroke: var(--rule); stroke-width: 1.6; opacity: 1; }
.m-arc.today { stroke: var(--acc); stroke-width: 4.5; opacity: 1; }
.m-rn { font: 500 15px var(--f-disp); font-variation-settings: "opsz" 24; fill: var(--muted); text-anchor: middle; dominant-baseline: central; letter-spacing: .04em; }
.m-e { fill: none; stroke: var(--ink); stroke-width: 1.1; opacity: .2; transition: opacity .3s, stroke .3s, stroke-width .3s; }
.m-e.hot { stroke: var(--acc); opacity: .95; stroke-width: 2; }
.m-n { cursor: pointer; transition: opacity .3s; outline: none; }
.m-hit { fill: transparent; }
.m-dot { fill: var(--page); stroke: var(--ink); stroke-width: 1.6; transition: fill .3s, stroke .3s; }
.m-n.seen .m-dot { fill: var(--acc2); }
.m-n.done .m-dot { fill: var(--ink); }
.m-n.today .m-dot { fill: var(--acc); stroke: var(--acc); }
.m-ring { fill: none; stroke: var(--acc); stroke-width: 1.5; opacity: 0; transition: opacity .3s; }
.m-n.sel .m-ring { opacity: 1; }
.m-n:hover .m-dot, .m-n:focus-visible .m-dot { stroke: var(--acc); }
.m-l { font-size: 16.5px; fill: var(--ink2); letter-spacing: .04em; transition: fill .3s; }
.m-l .ls { display: none; }
.m-n.sel .m-l, .m-n.today .m-l { fill: var(--acc); font-weight: 600; }
.cmap.focus .m-n:not(.sel):not(.nb) { opacity: .4; }
.cmap.focus .m-e:not(.hot) { opacity: .08; }
.mc-t { font: var(--disp-w) 40px var(--f-disp); font-variation-settings: var(--disp-var); fill: var(--ink); text-anchor: middle; }
body.cjk-s .mc-t { font-family: var(--f-zdisp); }
.mc-z { font-size: 21px; letter-spacing: .4em; fill: var(--muted); text-anchor: middle; }
.mc-n { font: 600 12px var(--f-ui); letter-spacing: .18em; fill: var(--muted); text-anchor: middle; }
.m-center2 { display: none; }
.mc-sel { font-size: 30px; font-weight: 600; fill: var(--ink); text-anchor: middle; letter-spacing: .04em; }
.mc-no { font: 500 18px var(--f-disp); fill: var(--acc); text-anchor: middle; letter-spacing: .1em; }
.map-r { display: none; }
.mtree { border-top: 1px solid var(--ink); }
.tr-ch { padding: 14px 0 10px; border-bottom: 1px solid var(--rule2); }
.tr-h { display: flex; gap: 10px; align-items: baseline; margin-bottom: 6px; }
.tr-h .Ls { font-style: italic; font-size: 16px; }
.tr-h .z { font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.tr-p { width: 100%; display: grid; grid-template-columns: 2.2em 1fr auto; gap: 8px; align-items: baseline; padding: 7px 8px 7px 22px; border-radius: var(--radius); text-align: left; font-size: 15.5px; transition: background .2s; }
.tr-p:hover, .tr-p.sel { background: var(--acc2); }
.tr-p.sel .Ln { color: var(--acc); }
.tr-l { font: 500 11px var(--f-ui); color: var(--muted); }
@media (max-width: 899px) {
  .m-l .lf { display: none; }
  .m-l .ls { display: inline; }
  .m-l { font-size: 25px; }
  .m-center { display: none; }
  .m-center2 { display: block; }
}
@media (min-width: 900px) {
  .mapv { padding: 30px 40px 60px; }
  .map-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); gap: 46px; align-items: start; }
  .map-r { display: block; position: sticky; top: calc(var(--hdh) + 26px); background: var(--page); box-shadow: var(--shadow); padding: 34px 34px 30px; border-radius: 2px; }
  .map-r::before { content: ""; position: absolute; inset: 0; background: var(--tex); opacity: .5; pointer-events: none; }
  .v-tree .map-l { background: var(--page); box-shadow: var(--shadow); padding: 30px 40px; }
  .cmap { max-height: calc(100vh - 210px); }
}

/* point card */
.pcard { position: relative; }
.pc-k { display: flex; flex-wrap: wrap; gap: 4px 14px; font: 500 11px/1.4 var(--f-ui); letter-spacing: .1em; color: var(--muted); }
.pc-k .Ls { font-style: italic; letter-spacing: 0; font-size: 12.5px; }
.pc-k .no { font-size: 13px; letter-spacing: .06em; }
.pc-t { font: var(--zdisp-w) 26px/1.32 var(--f-zdisp); letter-spacing: .05em; margin-top: 12px; }
.pc-q { margin: 18px 0 20px; padding: 2px 0 2px 18px; border-left: 2px solid var(--acc); }
.q-s { font-style: italic; font-size: 19px; line-height: 1.55; color: var(--ink); }
body.cjk-s .q-s { font-style: normal; }
.q-n { font-size: 14.5px; line-height: 1.8; color: var(--muted); margin-top: 8px; }
.pc-q.sm .q-s { font-size: 16px; }
.pc-d dt { color: var(--acc); margin-top: 14px; }
.pc-d dd { font-size: 15px; line-height: 1.85; color: var(--ink2); margin-top: 4px; }
.pc-rel { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin-top: 20px; padding-top: 14px; border-top: 1px dashed var(--rule); }
.pc-rel .lab { margin-right: 4px; }
.rchip { display: inline-flex; gap: 6px; align-items: baseline; padding: 5px 10px; border: 1px solid var(--rule); border-radius: 99px; font-size: 13px; transition: border-color .2s, background .2s; }
.rchip:hover { border-color: var(--acc); background: var(--acc2); }
.rchip .no { font-size: 12px; }
.pc-act { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* ---------------------------------------------------------------- 读 / read */
.rbar { position: sticky; top: calc(var(--hdh) + var(--safe-t)); z-index: 40; background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule2); }
.rbar-in { display: flex; align-items: center; gap: 14px; padding: 6px 14px 4px 18px; max-width: 1240px; margin: 0 auto; }
.mix { flex: 1; min-width: 0; }
.mix-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mix-top .lab { letter-spacing: .26em; }
.mix-v { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mix-n { font-weight: 500; color: var(--acc); font-size: 13px; margin-right: 6px; letter-spacing: .04em; }
.mix-p { font-variant-numeric: tabular-nums; }
.mix-tr { position: relative; height: 42px; }
.mix-fill { display: none; }
.mix-in { -webkit-appearance: none; appearance: none; position: absolute; left: 0; right: 0; top: 2px; width: 100%; height: 24px; margin: 0; background: transparent; cursor: pointer; z-index: 2; }
.mix-in::-webkit-slider-runnable-track { height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--acc) var(--mixp, 25%), var(--rule) var(--mixp, 25%)); }
.mix-in::-moz-range-track { height: 2px; border-radius: 2px; background: var(--rule); }
.mix-in::-moz-range-progress { height: 2px; background: var(--acc); }
.mix-in::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--acc); border: 0; box-shadow: inset 0 0 0 5px var(--page), inset 0 0 0 6.5px var(--acc), 0 2px 6px rgba(60, 30, 10, .28); transition: transform .15s; }
.mix-in::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--acc); border: 0; box-shadow: inset 0 0 0 5px var(--page), inset 0 0 0 6.5px var(--acc), 0 2px 6px rgba(60, 30, 10, .28); }
.mix-in:active::-webkit-slider-thumb { transform: scale(1.12); }
.mix-ticks { position: absolute; left: 11px; right: 11px; top: 0; bottom: 0; pointer-events: none; }
.mix-ticks button { position: absolute; top: 25px; transform: translateX(-50%); pointer-events: auto; padding: 1px 4px; font: 500 10.5px/1.2 var(--f-ui); letter-spacing: .06em; color: var(--muted); white-space: nowrap; transition: color .2s; }
.mix-ticks button:nth-child(1) { left: 0; } .mix-ticks button:nth-child(2) { left: 25%; } .mix-ticks button:nth-child(3) { left: 50%; } .mix-ticks button:nth-child(4) { left: 75%; } .mix-ticks button:nth-child(5) { left: 100%; }
.mix-ticks button i { position: absolute; left: 50%; top: -14px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--rule); pointer-events: none; z-index: 1; }
.mix-ticks button.on { color: var(--acc); font-weight: 600; }
.mix-ticks button:hover { color: var(--ink); }
.rmode { flex: none; }
.rmode button span { display: none; }
.rmode button { padding: 7px 9px; }
.par-note { display: none; flex: 1; font-size: 12.5px; color: var(--muted); letter-spacing: .04em; }
body.par .mix, body.notr .mix { display: none; }
body.par .par-note { display: block; }
body.notr .rmode { display: none; }

.chap { position: relative; --glo: 1; --glx: 0; }
.ch-open { text-align: center; padding: 26px 0 24px; }
.ch-no { font: 600 10.5px/1 var(--f-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.ch-no i { font-style: normal; opacity: .5; margin: 0 .4em; }
.ch-t { font: var(--disp-w) 42px/1.08 var(--f-disp); font-variation-settings: var(--disp-var); letter-spacing: -.01em; margin-top: 16px; }
body.cjk-s .ch-t { font-family: var(--f-zdisp); font-weight: var(--zdisp-w); letter-spacing: .12em; }
.ch-z { font-size: 18px; letter-spacing: .42em; text-indent: .42em; color: var(--ink2); margin-top: 12px; }
.ch-open .note { margin-top: 14px; }
.txtw { position: relative; }
.kmark { position: absolute; left: -13px; top: 0; width: 2px; height: 20px; background: var(--acc); border-radius: 2px; opacity: 0; transition: transform .5s var(--ease), height .5s var(--ease), opacity .3s; pointer-events: none; }
.kmark.on { opacity: 1; }
.txt { font-size: 19px; line-height: 1.65; color: var(--ink); hanging-punctuation: first; font-variant-ligatures: common-ligatures; }
p.para > .s.S::after { content: " "; }
body.cjk-s p.para > .s.S::after { content: none; }
body:not(.cjk-n) p.para > .s:not(.S)::after { content: " "; }
.an.on .an-s { line-height: 2.2; }
.s.S .stu .hw:not(.kn) { line-height: calc(1.65 + .6 * var(--glo)); }
.para { margin: 0 0 .8em; }
.s { border-radius: 3px; transition: background-color .45s var(--ease); -webkit-box-decoration-break: clone; box-decoration-break: clone; cursor: default; }
.s .stu { display: none; }
.s.S .stu { display: inline; }
.s.S .nat { display: none; }
.nat { font-size: .93em; letter-spacing: .015em; color: var(--ink); }
body:not(.cjk-n) .nat { font-size: 1em; letter-spacing: 0; }
.stu { font-size: 1em; }
body.cjk-s .stu { font-size: .93em; letter-spacing: .015em; }
.s.cur { background: var(--hl); }
.s.flash { animation: flash 2.2s var(--ease); }
@keyframes flash { 0%, 35% { background: var(--hl); box-shadow: 0 0 0 3px var(--hl); } 100% { background: transparent; box-shadow: none; } }
.an .an-s { display: none; }
.an.on .an-s { display: inline; }
.an.on .an-n { display: none; }
.an-s { font-style: italic; color: var(--acc); margin: 0 .2em; font-size: 1.07em; letter-spacing: 0; }
body.cjk-s .an-s { font-style: normal; margin: 0; font-size: 1em; }
.hw, .ax { position: relative; cursor: pointer; border-radius: 2px; transition: background .2s, text-decoration-color .3s; }
.hw { text-decoration: underline dotted var(--ul); text-decoration-thickness: 1.5px; text-underline-offset: .26em; }
.an-s.hw { text-decoration: none; }
.hw.kn { text-decoration-color: transparent; }
.hw:hover, .ax:hover { background: var(--acc2); }
.hw.act, .ax.act { background: var(--hl); }
.hw.hi { background: var(--hl); text-decoration: none; padding: 0 .1em; color: var(--ink); }
.gl { position: absolute; left: 50%; bottom: calc(100% - .12em); transform: translateX(-50%); font-size: 10.5px; line-height: 1; font-style: normal; font-weight: 500; white-space: nowrap; color: var(--acc); opacity: var(--glo); pointer-events: none; letter-spacing: .02em; text-decoration: none; transition: opacity .3s; }
.gl.hint { opacity: .85; font-size: 10px; color: var(--muted); }
.hw.kn .gl { display: none; }
.pm { display: inline; position: relative; top: -.42em; margin-left: .22em; padding: 1px 5px 1px 4.5px; border: 1px solid var(--acc); border-radius: 99px; font: 600 9.5px/1 var(--f-ui); color: var(--acc); font-style: normal; white-space: nowrap; cursor: pointer; transition: background .2s, color .2s; }
.pm:hover { background: var(--acc); color: var(--on-acc); }
.para.first.dc::first-letter, .para.il.first .s:first-child .ps::first-letter, .prow.first .pc-s::first-letter {
  float: left; font-family: var(--f-disp); font-variation-settings: "opsz" 144, "SOFT" 60; font-weight: 400; font-size: 3.55em; line-height: .84; padding: .05em .09em 0 0; margin-top: .02em; color: var(--acc);
}
.para.il .s { display: block; margin-bottom: 1.05em; padding: 2px 0; }
.ps { display: block; }
.pn { display: block; font-size: .84em; line-height: 1.75; color: var(--ink2); margin-top: .3em; letter-spacing: .02em; }
.pend { color: var(--muted); font-size: .85em; font-style: italic; }
.prow { display: grid; grid-template-columns: 1fr 1fr; column-gap: 140px; }
.pc { margin: 0 0 .85em; }
.pc-n { font-size: .92em; color: var(--ink2); line-height: 1.8; letter-spacing: .02em; }
.more { height: 2px; }
.ch-end { text-align: center; padding: 40px 0 30px; }
.ce-k { font: 600 10.5px/1 var(--f-ui); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); margin-top: 14px; }
.ce-pts { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-top: 22px; }
.ce-pts .lab { width: 100%; margin-bottom: 2px; }
.ce-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 34px; text-align: left; }
.ce-b { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--radius); max-width: 62%; transition: border-color .2s, background .2s; }
.ce-b:hover { border-color: var(--acc); background: var(--acc2); }
.ce-b > span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ce-b small { font: 600 10px/1 var(--f-ui); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ce-b b { font-weight: 400; font-style: italic; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ce-b em { font-style: normal; font-size: 12.5px; color: var(--muted); letter-spacing: .1em; }
.ce-b.nxt { margin-left: auto; text-align: right; }
.ce-b.nxt > span { align-items: flex-end; }
.ce-b.prev { opacity: .75; }
.spread.rd .page.rr { display: none; }
.spread.rd .page.rl { padding-bottom: calc(var(--abh) + 70px); }
.marg section + section { margin-top: 30px; }
.marg .lab { margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--rule2); }
.mg-pts li + li { margin-top: 2px; }
.mg-pts button { display: grid; grid-template-columns: 2em 1fr; gap: 2px 8px; padding: 9px 0; text-align: left; width: 100%; }
.mg-pts .no { grid-row: span 2; font-size: 15px; }
.mg-pts b { font-weight: 500; font-size: 15px; letter-spacing: .03em; }
.mg-pts .q { font-style: italic; font-size: 13px; color: var(--muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mg-pts button:hover b { color: var(--acc); }
.mg-w { columns: 2; column-gap: 22px; }
.mg-w li { break-inside: avoid; }
.mg-w button { display: flex; gap: 8px; align-items: baseline; padding: 4px 0; width: 100%; text-align: left; }
.mg-w b { font-weight: 500; font-size: 14.5px; }
.mg-w span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mg-w button:hover b { color: var(--acc); }
.mg-w button.kn b { text-decoration: line-through; text-decoration-color: var(--acc); opacity: .55; }
.mg-v p { font-size: 13px; color: var(--muted); line-height: 1.7; }
.abar {
  position: fixed; left: var(--rail); right: 0; bottom: calc(var(--navh) + var(--safe-b)); z-index: 45; height: var(--abh);
  display: none; align-items: center; gap: 10px; padding: 0 12px 0 10px; background: color-mix(in srgb, var(--page) 94%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--rule2);
}
body[data-tab="read"] .abar { display: flex; }
.ab-play { flex: none; width: 42px; height: 42px; border-radius: 50%; background: var(--acc); color: var(--on-acc); display: grid; place-items: center; box-shadow: 0 2px 8px -2px rgba(80, 30, 10, .4); transition: transform .15s; }
.ab-play:active { transform: scale(.94); }
.ab-play .ic { width: 20px; height: 20px; }
.ab-play.on { background: var(--ink); color: var(--page); }
.ab-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.ab-eng { display: flex; align-items: center; gap: 6px; font: 500 11px/1 var(--f-ui); color: var(--muted); letter-spacing: .06em; white-space: nowrap; padding-left: 4px; }
.ab-eng i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.ab-eng i.q { background: var(--acc); box-shadow: 0 0 0 3px var(--acc2); }
.ab-eng small { font-size: 10px; text-transform: capitalize; opacity: .8; }
.ab-pos { font-variant-numeric: tabular-nums; }
.ab-rate { flex: none; text-align: center; min-width: 46px; height: 34px; border: 1px solid var(--rule); border-radius: 99px; font: 600 12px/1 var(--f-ui); font-variant-numeric: tabular-nums; color: var(--ink2); }
.flypill { position: fixed; z-index: 55; transform: translate(-50%, 6px); opacity: 0; transition: opacity .2s, transform .2s; }
.flypill.in { opacity: 1; transform: translate(-50%, 0); }
.flypill button { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px 8px 11px; border-radius: 99px; background: var(--ink); color: var(--page); font: 500 12.5px/1 var(--f-ui); letter-spacing: .06em; box-shadow: 0 8px 22px -6px rgba(30, 20, 10, .45); }
.flypill .ic { width: 15px; height: 15px; }
@media (min-width: 560px) { .rmode button span { display: inline; } .rmode button { padding: 6px 12px; } }
@media (min-width: 900px) {
  .rbar { background: color-mix(in srgb, var(--desk) 90%, transparent); }
  .rbar-in { padding: 8px 40px 6px; gap: 30px; }
  .mix { max-width: 560px; margin: 0 auto; }
  .mix-ticks button { font-size: 12px; }
  .mix-v { font-size: 12.5px; }
  .abar { left: calc(var(--rail) + (100vw - var(--rail)) / 2); right: auto; bottom: 22px; width: min(560px, calc(100vw - var(--rail) - 40px)); transform: translateX(-50%); border: 1px solid var(--rule2); border-radius: 99px; padding: 0 10px 0 8px; box-shadow: var(--shadow); }
  .txt { font-size: 20px; }
  .ch-open { padding: 20px 0 30px; }
  .ch-t { font-size: 58px; }
  .kmark { left: -26px; }
}
@media (min-width: 1100px) {
  .spread.rd { grid-template-columns: 1.08fr .92fr; }
  .spread.rd .page.rr { display: block; }
  .spread.rd .page.rl { padding-left: 76px; padding-right: 72px; }
  .spread.rd .page.rr { padding-left: 72px; padding-right: 64px; }
  .marg { position: sticky; top: calc(var(--hdh) + 96px); max-height: calc(100vh - var(--hdh) - 200px); overflow: auto; scrollbar-width: none; }
  .spread.rd.par.wide { grid-template-columns: 1fr 1fr; }
  .spread.rd.par.wide .page.rl { grid-column: 1 / -1; padding-left: 68px; padding-right: 68px; }
  .spread.rd.par.wide .page.rr { display: none; }
  .spread.rd.par.wide .rhead { display: grid; grid-template-columns: 1fr 1fr; column-gap: 140px; }
}

/* ---------------------------------------------------------------- overlays */
.sh-wrap { position: fixed; inset: 0; z-index: 100; }
.sh-bg { position: absolute; inset: 0; background: rgba(28, 22, 16, .34); opacity: 0; transition: opacity .28s; }
.sh { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; overscroll-behavior: contain; background: var(--page); border-radius: 16px 16px 0 0; padding: 30px 22px calc(28px + var(--safe-b)); transform: translateY(102%); transition: transform .34s var(--ease); box-shadow: 0 -10px 40px -10px rgba(30, 20, 10, .3); }
.sh::before { content: ""; position: absolute; top: 9px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 4px; background: var(--rule); }
.sh-wrap.in .sh-bg { opacity: 1; }
.sh-wrap.in .sh { transform: none; }
.sh-x { position: absolute; top: 10px; right: 10px; z-index: 3; }
.full .sh { top: 0; max-height: none; border-radius: 0; padding-top: calc(50px + var(--safe-t)); }
.full .sh::before { display: none; }
@media (min-width: 900px) {
  .sh { left: 50%; top: 50%; bottom: auto; right: auto; width: min(580px, 92vw); max-height: 86vh; border-radius: 4px; transform: translate(-50%, -47%); opacity: 0; transition: transform .3s var(--ease), opacity .25s; padding: 40px 40px 34px; box-shadow: 0 30px 80px -20px rgba(30, 20, 10, .45); }
  .sh::before { display: none; }
  .sh-wrap.in .sh { transform: translate(-50%, -50%); opacity: 1; }
  .full .sh { top: 50%; width: min(760px, 92vw); max-height: 94vh; padding: 40px 44px 30px; border-radius: 4px; }
}
.pop { position: fixed; z-index: 90; width: 316px; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 18px 16px; box-shadow: 0 18px 50px -14px rgba(40, 25, 10, .38); opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s var(--ease); }
.pop.in { opacity: 1; transform: none; }
.pop::before { content: ""; position: absolute; top: -6px; left: var(--ax, 50%); width: 10px; height: 10px; margin-left: -5px; background: var(--card); border-left: 1px solid var(--rule); border-top: 1px solid var(--rule); transform: rotate(45deg); }
.pop.up::before { top: auto; bottom: -6px; transform: rotate(225deg); }
.pop.bottom { left: 10px; right: 10px; width: auto; bottom: calc(var(--navh) + var(--safe-b) + var(--abh) + 10px); transform: translateY(14px); }
body:not([data-tab="read"]) .pop.bottom { bottom: calc(var(--navh) + var(--safe-b) + 10px); }
.pop.bottom::before { display: none; }
.pop.bottom.in { transform: none; }
.pop-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pop-w { font-weight: 600; font-size: 26px; line-height: 1.15; letter-spacing: -.005em; }
.pop-h .spk { width: 38px; height: 38px; border: 1px solid var(--rule); color: var(--acc); }
.pop-i { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.ipa, .wr-i, .fc-i { font-family: "YS Inter", "Lucida Grande", "Segoe UI", sans-serif; letter-spacing: .02em; }
.lem { font-style: italic; }
.lv { font: 600 10px/1 var(--f-ui); letter-spacing: .1em; padding: 3px 5px 2px; background: var(--ink); color: var(--page); border-radius: 2px; }
.pop-g { font-size: 18px; line-height: 1.45; margin-top: 10px; color: var(--ink); }
.pop-x { font-size: 13px; color: var(--acc); margin-top: 4px; }
.pop-d { font-size: 12.5px; line-height: 1.65; color: var(--muted); margin-top: 10px; padding-top: 9px; border-top: 1px dashed var(--rule); }
.pop-d .lab { margin-right: 8px; font-size: 9.5px; }
.pop-t { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 10px; }
.pop-t .cnt { font-size: 11.5px; color: var(--muted); margin-left: auto; }
.pop-b { display: flex; gap: 8px; margin-top: 14px; }
.pop-b .btn { flex: 1; }
#toast { position: fixed; left: 50%; bottom: calc(var(--navh) + var(--safe-b) + 76px); z-index: 120; transform: translate(-50%, 10px); opacity: 0; pointer-events: none; background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 99px; font: 500 13px/1.2 var(--f-ui); letter-spacing: .04em; transition: opacity .25s, transform .25s var(--ease); white-space: nowrap; }
#toast.in { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { #toast { left: calc(var(--rail) + (100vw - var(--rail)) / 2); bottom: 100px; } }
.chlist .kick { margin-bottom: 12px; }
.chlist ol { border-top: 1px solid var(--ink); }
.chlist button { width: 100%; display: grid; grid-template-columns: 3.2em 1fr auto; gap: 10px; align-items: center; padding: 11px 6px 11px 0; border-bottom: 1px solid var(--rule2); text-align: left; transition: background .2s; }
.chlist button:hover { background: var(--acc2); }
.chlist button.sel { background: var(--acc2); }
.chlist .rn { text-align: right; padding-right: 4px; }
.cl-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.cl-t b { font-weight: 400; font-style: italic; font-size: 16.5px; }
.cl-t .Ln { font-size: 13px; color: var(--muted); letter-spacing: .1em; }
.cl-m { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.cl-m small { font-size: 11px; white-space: nowrap; }
.cl-m .ic { color: var(--acc); }
.qw { font: 600 9.5px/1 var(--f-ui); letter-spacing: .08em; color: var(--acc); border: 1px solid var(--acc); padding: 3px 4px 2px; border-radius: 2px; }

/* ---------------------------------------------------------------- 词 / words */
.wordsv { padding: 22px 18px 40px; max-width: 980px; margin: 0 auto; }
.w-ctl { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 759px) {
  .w-ctl { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; width: calc(100% + 36px); margin: 0 -18px; padding: 0 18px 2px; }
  .w-ctl::-webkit-scrollbar { display: none; }
  .w-ctl .seg { flex: none; }
}
.wlist { border-top: 1px solid var(--ink); }
.wr { border-bottom: 1px solid var(--rule2); }
.wr-h { display: flex; align-items: center; }
.wr-b { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "w i n" "g g g" "t t t"; gap: 3px 10px; align-items: baseline; padding: 12px 0 12px 2px; text-align: left; }
.wr-w { grid-area: w; font-size: 19px; font-weight: 600; letter-spacing: -.005em; }
.wr-i { grid-area: i; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wr-g { grid-area: g; font-size: 14.5px; color: var(--ink2); line-height: 1.5; }
.wr-t { grid-area: t; margin-top: 3px; }
.wr-n { grid-area: n; font: 500 12px/1 var(--f-ui); color: var(--muted); font-variant-numeric: tabular-nums; }
.wr .star { flex: none; color: var(--rule); }
.wr .star.on { color: var(--acc); }
.wr .star.on .ic g, .btn.on .ic g { fill: currentColor; }
.wr.kn .wr-w { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--acc); text-decoration-thickness: 1px; }
.wr.open { background: linear-gradient(var(--acc2), var(--acc2)); }
.wr-b:hover .wr-w { color: var(--acc); }
.wd { padding: 2px 14px 18px 2px; animation: paneIn .3s var(--ease); }
.wd-d { font-size: 13px; color: var(--muted); line-height: 1.7; }
.wd-d .lab { margin-right: 8px; }
.wd-ex { margin-top: 10px; }
.wd-ex li { padding: 10px 0; border-top: 1px dashed var(--rule); }
.ex-s { font-size: 16.5px; line-height: 1.6; }
.ex-n { font-size: 13.5px; color: var(--muted); line-height: 1.75; margin-top: 3px; }
.ex-a { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.ex-a .ib { width: 34px; height: 34px; margin-left: -8px; }
.ex-c { margin-left: auto; font-size: 12px; }
.wd-b { display: flex; gap: 8px; margin-top: 8px; }
.morew { display: flex; margin: 22px auto 0; }
@media (min-width: 760px) {
  .wr-b { grid-template-columns: 170px 150px minmax(0, 1fr) auto 44px; grid-template-areas: "w i g t n"; align-items: baseline; padding: 13px 0 13px 6px; }
  .wr-t { margin: 0; text-align: right; white-space: nowrap; }
  .wr-n { text-align: right; }
}
@media (min-width: 900px) {
  .wordsv { padding: 30px 40px 60px; }
  .wordsv:not(.cards) .wlist, .wordsv:not(.cards) .morew { background: var(--page); }
  .wordsv:not(.cards) .wlist { box-shadow: var(--shadow); padding: 8px 34px 20px; border-top: 3px double var(--ink); }
}
.fcw { max-width: 440px; margin: 8px auto 0; }
.fc-n { text-align: center; font: 500 12px/1 var(--f-ui); color: var(--muted); letter-spacing: .14em; margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.fc-n span { color: var(--acc); font-size: 15px; font-family: var(--f-disp); }
.fc { perspective: 1400px; height: clamp(330px, 50vh, 430px); cursor: pointer; outline: none; }
.fc-in { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.fc.flipped .fc-in { transform: rotateY(180deg); }
.fc-f, .fc-b { position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden; background: var(--card); border: 1px solid var(--rule); border-radius: 8px; box-shadow: var(--shadow); padding: 30px 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.fc-f::before { content: ""; position: absolute; left: 0; right: 0; top: 58px; border-top: 1px solid var(--acc); opacity: .35; }
.fc-f::after, .fc-b::after { content: ""; position: absolute; inset: 0; background: var(--tex); opacity: .45; pointer-events: none; }
.fc-b { transform: rotateY(180deg); }
.fc-tags { position: absolute; top: 22px; left: 0; right: 0; }
.fc-w { font: var(--disp-w) 54px/1.05 var(--f-disp); font-variation-settings: var(--disp-var); letter-spacing: -.015em; }
.fc-i { color: var(--muted); font-size: 15px; margin-top: 10px; }
.fc-s .hw:not(.hi), .ex-s .hw:not(.hi), .qctx .hw:not(.hi), .q-s .hw:not(.hi) { text-decoration: none; }
.fc-s { font-style: italic; font-size: 16px; line-height: 1.65; color: var(--ink2); margin-top: 26px; max-width: 22em; }
.fc-hint { position: absolute; bottom: 18px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 6px; font: 500 11px/1 var(--f-ui); letter-spacing: .14em; color: var(--muted); }
.fc-g { font: var(--zdisp-w) 28px/1.4 var(--f-zdisp); letter-spacing: .04em; color: var(--acc); }
.fc-d { font-size: 13.5px; line-height: 1.7; color: var(--muted); margin-top: 14px; max-width: 24em; }
.fc-tr { font-size: 14.5px; line-height: 1.8; color: var(--ink2); margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--rule); max-width: 24em; }
.fc-c { position: absolute; bottom: 18px; font: 500 11px/1 var(--f-ui); color: var(--muted); letter-spacing: .1em; }
.fc-act { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 22px; }
.fc-end { text-align: center; padding: 60px 0; display: flex; flex-direction: column; align-items: center; gap: 18px; font-size: 18px; }

/* ---------------------------------------------------------------- 测 / review */
.rev .page { padding-bottom: 50px; }
.due { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; margin: 4px 0 30px; }
.due-n { font: var(--disp-w) 112px/.9 var(--f-disp); font-variation-settings: var(--disp-var); color: var(--acc); font-variant-numeric: lining-nums; letter-spacing: -.03em; }
.boxes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.bx { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px 12px; border: 1px solid var(--rule); border-top-width: 3px; border-radius: 0 0 var(--radius) var(--radius); text-align: center; }
.bx.b4 { border-top-color: var(--acc); }
.bx-c { height: 34px; width: 100%; display: flex; flex-wrap: wrap-reverse; justify-content: center; align-content: flex-start; gap: 2px; overflow: hidden; }
.bx-c i { width: 9px; height: 6px; background: var(--rule); border-radius: 1px; }
.bx.b4 .bx-c i { background: var(--acc); }
.bx b { font: 400 26px/1 var(--f-disp); font-variation-settings: "opsz" 48; }
.bx span { font-size: 11px; color: var(--muted); letter-spacing: .04em; }
.hist { margin-top: 26px; }
.hbars { display: flex; align-items: flex-end; gap: 4px; height: 48px; margin-top: 8px; border-bottom: 1px solid var(--rule); }
.hbars i { flex: 1; max-width: 22px; height: max(3px, var(--h)); background: var(--acc); opacity: .75; border-radius: 1px 1px 0 0; }
.qbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.qprog { display: flex; gap: 4px; }
.qprog i { width: 14px; height: 3px; background: var(--rule); border-radius: 2px; }
.qprog i.ok { background: var(--acc); }
.qprog i.no { background: var(--ink); }
.qprog i.now { background: var(--ink2); width: 22px; }
.qq { font: var(--zdisp-w) 22px/1.5 var(--f-zdisp); letter-spacing: .03em; margin-top: 26px; }
.qctx { font-style: italic; font-size: 17px; line-height: 1.65; color: var(--ink2); margin-top: 14px; padding-left: 16px; border-left: 2px solid var(--rule); }
.qctx .hw { text-decoration: none; }
.qopts { margin-top: 22px; }
.qopts li + li { margin-top: 8px; }
.qo { width: 100%; display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--rule); border-radius: var(--radius); font-size: 16px; line-height: 1.45; text-align: left; transition: border-color .2s, background .2s, opacity .3s; }
.qo:not([disabled]):hover { border-color: var(--acc); background: var(--acc2); }
.ql { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--rule); display: grid; place-items: center; font: 500 13px/1 var(--f-disp); color: var(--muted); }
.qo > .Ln { flex: 1; }
.qo .ic { color: var(--acc); }
.qo.right { border-color: var(--acc); background: var(--acc2); }
.qo.right .ql { background: var(--acc); border-color: var(--acc); color: var(--on-acc); }
.qo.wrong { border-color: var(--ink); }
.qo.wrong .Ln { text-decoration: line-through; text-decoration-color: var(--ink); }
.qo.wrong .ql { background: var(--ink); color: var(--page); border-color: var(--ink); }
.qo.dim { opacity: .45; }
.qo[disabled] { cursor: default; }
.qfb { margin: 22px 0 22px; padding: 16px 18px; background: var(--acc2); border-left: 2px solid var(--acc); animation: paneIn .35s var(--ease); }
.qfb.no { border-left-color: var(--ink); }
.qfb > b { font: 600 15px/1.4 var(--f-zh); color: var(--acc); }
.qfb.no > b { color: var(--ink); }
.qfb > p { font-size: 14.5px; line-height: 1.75; color: var(--ink2); margin-top: 6px; }
.qfb .pc-q { margin: 14px 0 6px; }
.qfb-a { display: flex; align-items: center; gap: 12px; }
.res { text-align: center; }
.ring.big { width: 160px; height: 160px; margin: 20px auto 10px; display: block; }
.rwrong { text-align: left; margin-top: 22px; border-top: 1px solid var(--rule2); }
.rwrong li { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule2); font-size: 14.5px; }
.rwrong small { color: var(--muted); font-size: 12px; white-space: nowrap; }
.res-a { display: flex; justify-content: center; gap: 10px; margin-top: 26px; }

/* ---------------------------------------------------------------- about */
.about { max-width: 520px; margin: 0 auto; }
.ab-brand { display: flex; align-items: center; gap: 14px; }
.ab-n { font: 600 20px/1.2 var(--f-zdisp); letter-spacing: .24em; }
.ab-e { font: italic 15px/1.3 var(--f-read); color: var(--muted); margin-top: 3px; }
.receipt { position: relative; margin: 24px auto 0; max-width: 380px; padding: 22px 22px 30px; background: var(--card); color: var(--ink); font: 400 13px/1.5 var(--f-ui); font-variant-numeric: tabular-nums; box-shadow: 0 1px 0 var(--rule2), 0 10px 26px -14px rgba(40, 25, 10, .4);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / 12px 100%; }
.rc-h { text-align: center; font-size: 14.5px; line-height: 1.65; padding-bottom: 14px; border-bottom: 1px dashed var(--muted); letter-spacing: .02em; }
.receipt dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 8px 0; border-bottom: 1px dotted var(--rule); }
.receipt dt { color: var(--muted); letter-spacing: .08em; }
.receipt dd { text-align: right; }
.rc-f { display: flex; justify-content: space-between; margin-top: 14px; font-size: 11px; color: var(--muted); letter-spacing: .1em; }
.rc-f .Ls { font-style: italic; letter-spacing: 0; font-size: 12px; }
.svc { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 22px; padding: 14px 16px; border: 1px solid var(--acc); border-radius: var(--radius); color: var(--acc); font-size: 14.5px; letter-spacing: .04em; transition: background .2s; }
.svc:hover { background: var(--acc2); }
.ab-sec { margin-top: 26px; }
.ab-sec .lab { margin-bottom: 10px; }
.skins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sk { display: flex; flex-direction: column; gap: 6px; padding: 7px; border: 1px solid var(--rule); border-radius: 4px; font: 500 11.5px/1.2 var(--f-ui); color: var(--ink2); transition: border-color .2s; }
.sk.on { border-color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.sk i { display: block; height: 34px; border-radius: 2px; }
.sk-A i { background: linear-gradient(120deg, #f2ece0 0 58%, #a4553a 58% 72%, #2b2723 72%); }
.sk-B i { background: radial-gradient(circle at 1px 1px, rgba(58, 50, 48, .3) 1px, transparent 1.4px) 0 0 / 7px 7px, linear-gradient(120deg, #fbf6ec 0 58%, #ffd640 58% 72%, #d9483b 72%); }
.sk-C i { background: linear-gradient(120deg, #f3f2ed 0 58%, #e63323 58% 72%, #111 72%); }
.sk-D i { background: linear-gradient(120deg, #f0e8d6 0 58%, #ff48b0 58% 72%, #0f63a8 72%); }
.sk-E i { background: linear-gradient(120deg, #eee5d0 0 58%, #b8322a 58% 72%, #1d1a17 72%); }
.sk-F i { background: linear-gradient(120deg, #16467f 0 58%, #a9d6ff 58% 72%, #eaf2ff 72%); }
.cred > div { display: grid; grid-template-columns: 4.5em 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--rule2); font-size: 12.5px; line-height: 1.55; }
.cred dt { color: var(--muted); }
.about .lnk.danger { display: inline-block; margin-top: 22px; font-size: 12.5px; }

/* ---------------------------------------------------------------- skin touches (B–F lighter) */
body[data-skin="B"] .hw { text-decoration: none; background: linear-gradient(transparent 60%, rgba(255, 214, 64, .7) 60%, rgba(255, 214, 64, .7) 92%, transparent 92%); }
body[data-skin="B"] .hw.kn { background: none; }
body[data-skin="B"] .s.cur { background: linear-gradient(transparent 12%, rgba(255, 214, 64, .55) 12%, rgba(255, 214, 64, .55) 94%, transparent 94%); }
body[data-skin="B"] .day { border-top: 0; background: var(--card); padding: 26px 20px 22px; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 10px 26px -14px rgba(60, 40, 20, .35); transform: rotate(-.4deg); }
body[data-skin="B"] .day::before { left: 50%; right: auto; top: -11px; width: 110px; height: 24px; margin-left: -55px; border: 0; background: rgba(217, 72, 59, .28); transform: rotate(-3deg); }
body[data-skin="B"] .dno, body[data-skin="B"] .btitle, body[data-skin="B"] .ch-t { color: var(--acc); }
body[data-skin="B"] .task p { border-left: 0; background: linear-gradient(transparent 62%, rgba(255, 214, 64, .55) 62%); padding-left: 0; display: inline; }
body[data-skin="C"] .btitle, body[data-skin="C"] .ch-t, body[data-skin="C"] .dno, body[data-skin="C"] .fc-w, body[data-skin="C"] .cert-b, body[data-skin="C"] .due-n { letter-spacing: -.045em; }
body[data-skin="C"] .ch-t, body[data-skin="C"] .btitle { text-transform: none; }
body[data-skin="C"] .day, body[data-skin="C"] .phead, body[data-skin="C"] .dlist ol, body[data-skin="C"] .wlist { border-top-width: 3px; }
body[data-skin="C"] .day::before { display: none; }
body[data-skin="C"] .para.first.dc::first-letter { background: var(--acc); color: #fff; padding: .08em .14em; margin-right: .12em; line-height: .9; font-size: 3em; }
body[data-skin="C"] .mast, body[data-skin="C"] .ch-open { text-align: left; }
body[data-skin="C"] .bsub, body[data-skin="C"] .ce-pts { justify-content: flex-start; }
body[data-skin="C"] .orn { margin-left: 0; color: var(--ink); }
body[data-skin="C"] .oneline { margin-left: 0; }
body[data-skin="D"] .btitle, body[data-skin="D"] .ch-t, body[data-skin="D"] .day-t, body[data-skin="D"] .dno, body[data-skin="D"] .due-n, body[data-skin="D"] .fc-w { text-shadow: 3px 2px 0 rgba(255, 72, 176, .75); }
body[data-skin="D"] .dno, body[data-skin="D"] .due-n { color: var(--ink); }
body[data-skin="D"] .btn.pri, body[data-skin="D"] .ab-play { box-shadow: 3px 3px 0 var(--ink); }
body[data-skin="D"] .s.cur { background: rgba(255, 72, 176, .2); }
body[data-skin="E"] .ch-z, body[data-skin="E"] .bsub .Ln { font-family: var(--f-zdisp); font-weight: 700; }
body[data-skin="E"] .day::before { border-top: 3px double var(--muted); top: 4px; }
body[data-skin="E"] .orn { color: var(--acc); }
body[data-skin="E"] .spread { outline: 1px solid var(--rule); outline-offset: -14px; }
body[data-skin="F"] .btn.pri, body[data-skin="F"] .ab-play { color: var(--on-acc); }
body[data-skin="F"] .seal, body[data-skin="F"] .sealbig { color: var(--on-acc); }
body[data-skin="F"] .seg button.on { background: var(--ink); color: var(--bg); }
body[data-skin="F"] .m-n.today .m-dot { fill: var(--acc); }
body[data-skin="F"] .receipt { background: #eaf2ff; color: #0f3866; }
body[data-skin="F"] .receipt dt { color: #3b5d8a; }

/* ---------------------------------------------------------------- motion + print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  body { background: #fff; }
  body::before, #nav, #hd, .sh-bg, .sh-x, .cert-act, main { display: none !important; }
  .sh-wrap, .sh { position: static !important; transform: none !important; opacity: 1 !important; box-shadow: none !important; max-height: none !important; width: auto !important; padding: 0 !important; }
  .cert-in { margin: 20mm; }
}
