/* ============ layout (shared by every theme) ============ */
:root{
  --pad:32px; --leftw:228px; --pipw:330px; --topb:96px; --botb:96px;
  --kai:"STKaiti","KaiTi","楷体","Kaiti SC","Noto Serif SC",serif;
  --sans:"Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif;
  --din:"Bahnschrift","DIN Alternate","Roboto Condensed","Segoe UI",sans-serif;
  --mono:"Cascadia Mono","JetBrains Mono",Consolas,ui-monospace,monospace;
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%;overflow:hidden}
body{font-family:var(--sans);color:var(--fg);background:var(--bg);user-select:none;-webkit-user-select:none;transition:background .6s}
#deco{position:fixed;inset:0;z-index:0;pointer-events:none}
#deco .d{position:absolute;inset:0;width:100%;height:100%;opacity:0;transition:opacity .6s}
#gl{position:fixed;inset:0;width:100%;height:100%;z-index:1;display:block}
#leaders{position:fixed;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;overflow:visible}
#callouts{position:fixed;inset:0;z-index:3;pointer-events:none}
#top,#left,#tele,#pip,#bar,#credit{z-index:5;position:fixed}
/* scrims keep HUD text legible over the 3D scene */
body::before,body::after{content:"";position:fixed;left:0;right:0;z-index:4;pointer-events:none}
body::before{top:0;height:118px;background:linear-gradient(var(--bg) 0%,color-mix(in srgb,var(--bg) 70%,transparent) 55%,transparent)}
body::after{bottom:0;height:110px;background:linear-gradient(transparent,color-mix(in srgb,var(--bg) 78%,transparent) 50%,var(--bg))}
#left,#tele{background:color-mix(in srgb,var(--bg) 78%,transparent);backdrop-filter:blur(6px);-webkit-backdrop-filter:blur(6px);padding:12px 12px 10px;margin-left:-12px;border:1px solid var(--rule)}

#top{left:var(--pad);right:var(--pad);top:24px;display:flex;justify-content:space-between;align-items:flex-start;gap:24px;pointer-events:none}
#brand{min-width:0;flex:0 1 auto;overflow:hidden}
#brand .t1{font-size:26px;line-height:1.36;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#brand .t2{font-size:11px;line-height:1.5;letter-spacing:.18em;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--dim)}
#topr{display:flex;gap:10px;align-items:flex-start;flex:none;pointer-events:auto}
#styles{display:flex;gap:6px;pointer-events:auto;flex:none}
/* every button is the same plain rectangle in every look; only its colours follow the look */
#styles button,#langbtn,#homebtn{font:400 13px/1.3 var(--sans);letter-spacing:0;cursor:pointer;border:1px solid var(--rule);border-radius:0;background:var(--panel);color:var(--dim);padding:6px 11px;display:flex;gap:6px;align-items:center;white-space:nowrap;text-decoration:none;transition:color .25s,background .25s,border-color .25s}
#langbtn i{font-style:normal;opacity:.4}#langbtn span.on{color:var(--accent)}
/* English: Latin text set in a book face where the Chinese look uses KaiTi */
body[data-lang="en"]{--kai:"Palatino Linotype","Book Antiqua",Palatino,Georgia,serif}
body[data-lang="en"][data-theme="ink"] #brand .t1,body[data-lang="en"][data-theme="lacquer"] #brand .t1{letter-spacing:.02em}
body[data-lang="en"] #chapters .nm{letter-spacing:.02em!important}
body[data-lang="en"][data-theme="ink"] .co .h,body[data-lang="en"][data-theme="lacquer"] .co .h{letter-spacing:0;font-size:17px}
#styles button i{font-style:normal;font-family:var(--mono);font-size:10px;opacity:.6}
#styles button:hover,#langbtn:hover,#homebtn:hover{color:var(--fg)}
#styles button.on{color:var(--bg);background:var(--fg);border-color:var(--fg)}

#left{left:var(--pad);top:calc(var(--topb) + 18px);width:var(--leftw);pointer-events:auto}
#chapters{list-style:none;display:flex;flex-direction:column;gap:12px}
#chapters li{cursor:pointer;display:grid;grid-template-columns:40px 1fr;column-gap:8px;align-items:baseline;opacity:.55;transition:opacity .3s}
#chapters li.on,#chapters li:hover{opacity:1}
#chapters .no{font-size:20px;line-height:1;color:var(--fg)}
#chapters .nm{font-size:15px;line-height:1.45;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#chapters .sb{grid-column:2;font-size:10.5px;line-height:1.5;color:var(--dim);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#chapters .pg{grid-column:1/3;height:1px;background:var(--rule);margin-top:8px;position:relative}
#chapters .pg u{position:absolute;left:0;top:0;height:100%;width:100%;background:var(--accent);transform-origin:left;transform:scaleX(0)}
#chapters li.on .no{color:var(--accent)}

#tele{left:var(--pad);bottom:calc(var(--botb) + 8px);width:var(--leftw);font-family:var(--mono);font-size:11px;line-height:1.7;color:var(--dim);pointer-events:none}
#tele .th{display:flex;justify-content:space-between;font-family:var(--sans);font-size:12px;color:var(--fg);border-bottom:1px solid var(--rule);padding-bottom:5px;margin-bottom:6px}
#tele .th span{font-family:var(--mono);font-size:9.5px;color:var(--accent);letter-spacing:.2em}
#tele .th b{font-weight:inherit;color:inherit}
#tele .tg{display:grid;grid-template-columns:1fr 1fr;column-gap:14px}
#tele .tg div,#tele .tr{display:flex;justify-content:space-between;white-space:nowrap}
#tele b{font-weight:400;color:var(--dim)}
#tele span{color:var(--fg);font-variant-numeric:tabular-nums}

#pip{right:var(--pad);top:calc(var(--topb) + 18px);width:var(--pipw);opacity:0;transition:opacity .4s;pointer-events:none}
#pip .ph{display:flex;justify-content:space-between;gap:10px;font-family:var(--mono);font-size:10.5px;color:var(--fg);padding:0 0 5px}
#pip .pm{color:var(--dim);line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pip .pv{position:relative;width:100%;aspect-ratio:16/9;border:1px solid var(--rule);background:#05070a;overflow:hidden}
#pip .pv img.feed{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:opacity .15s}
#pip .pf{font-family:var(--mono);font-size:10px;line-height:1.6;color:var(--dim);padding-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#pipsvg{position:absolute;inset:0;width:100%;height:100%;overflow:hidden}
#pipsvg rect{fill:none;stroke-width:1.2}
#pipsvg text{font-family:var(--mono);font-size:9.5px}

#bar{left:var(--pad);right:var(--pad);bottom:22px;height:54px;display:flex;align-items:flex-end;gap:20px}
#play{flex:none;width:40px;height:40px;border-radius:0;border:1px solid var(--fg);background:transparent;color:var(--fg);cursor:pointer;display:grid;place-items:center}
#play svg{width:14px;height:14px;fill:currentColor}
#play .i-play{display:none} body.paused #play .i-play{display:block} body.paused #play .i-pause{display:none}
#ruler{position:relative;flex:1;height:54px;cursor:ew-resize;touch-action:none;min-width:200px}
#ticks{position:absolute;left:0;right:0;bottom:2px;height:22px;display:flex;justify-content:space-between;align-items:flex-end}
.tk{width:1px;height:7px;background:var(--fg);opacity:.3}
.tk.ch{height:14px;opacity:.8}
.tk.on{background:var(--accent);opacity:1}
#rl{position:absolute;left:0;right:0;top:2px;height:20px}
#rl span{position:absolute;top:0;font-size:11.5px;line-height:1.6;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;pointer-events:auto;transform:translateX(0)}
#rl span b{font-weight:400;color:var(--accent);margin-right:5px;font-family:var(--mono);font-size:10px}
#head{position:absolute;bottom:0;width:1px;height:30px;background:var(--accent);left:0}
#time{flex:none;width:64px;text-align:right;font-family:var(--mono);font-size:12px;color:var(--fg);padding-bottom:12px;font-variant-numeric:tabular-nums}
#speed{flex:none;display:flex;gap:4px;padding-bottom:7px}
#speed button{font-family:var(--mono);font-size:11px;background:none;border:1px solid transparent;color:var(--dim);cursor:pointer;padding:3px 6px}
#speed button.on{color:var(--fg);border-color:var(--rule)}
#credit{left:50%;transform:translateX(-50%);bottom:4px;font-size:9.5px;color:var(--dim);opacity:.65;white-space:nowrap;pointer-events:none}

#loading{position:fixed;inset:0;z-index:20;display:grid;place-content:center;gap:14px;background:var(--bg);color:var(--fg);transition:opacity .6s}
#loading .lt{font-size:13px;letter-spacing:.3em;text-align:center}
#loading .lb{width:220px;height:1px;background:var(--rule)}
#loading .lb i{display:block;height:100%;width:0;background:var(--accent);transition:width .3s}
body.ready #loading{opacity:0;pointer-events:none}

/* ============ callouts ============ */
.co{position:absolute;left:0;top:0;max-width:280px;pointer-events:none;will-change:transform}
.co .h{font-size:14px;line-height:1.25;color:var(--fg);white-space:nowrap}
.co .e{font-family:var(--mono);font-size:9.5px;letter-spacing:.12em;color:var(--accent);margin-bottom:3px;white-space:nowrap}
.co .k{font-size:11px;line-height:1.55;color:var(--dim);white-space:nowrap}
.co .k b{font-weight:400;color:var(--fg);font-family:var(--din);font-size:12px}
.co .big{font-family:var(--din);font-size:26px;line-height:1.05;color:var(--accent);font-variant-numeric:tabular-nums;white-space:nowrap}
.co .big.rej{color:var(--g-rej,#d3123f)}
.co .ramp{display:inline-block;width:58px;height:6px;border-radius:3px;vertical-align:1px;margin:0 3px;background:linear-gradient(90deg,var(--g-lo),var(--g-mid),var(--g-hi))}
.co.small{max-width:200px}
.co.small .h{font-size:11.5px}
.co.small .e{margin:0;font-size:9px}
.co[data-side="L"]{text-align:right}
.lead{fill:none;stroke:var(--line);stroke-width:1;opacity:.9}
.lead.small{stroke-dasharray:2 2}
.dot{fill:var(--accent)}

/* ============ themes ============ */
/* --- 1 ink · 水墨武侠 --- */
body[data-theme="ink"]{--bg:#ebe4d6;--fg:#1d1b18;--dim:#6b6457;--accent:#b5362a;--rule:rgba(29,27,24,.22);--panel:rgba(235,228,214,.6);--line:#1d1b18;
  background:radial-gradient(120% 95% at 50% 38%,#f3ede2 0%,#ebe3d4 55%,#d9cdb6 100%)}
body[data-theme="ink"] .d-ink{opacity:1}
body[data-theme="ink"] #brand .t1{font-family:var(--kai);font-size:44px;letter-spacing:.06em}
body[data-theme="ink"] #brand .t2{font-family:var(--kai);font-size:14px;letter-spacing:.32em}
body[data-theme="ink"] #chapters .no,body[data-theme="ink"] #chapters .nm{font-family:var(--kai)}
body[data-theme="ink"] #chapters .no{font-size:26px}
body[data-theme="ink"] #chapters .nm{font-size:17px;letter-spacing:.3em}
body[data-theme="ink"] .co{padding:4px 10px 5px;border-left:2px solid var(--accent);background:linear-gradient(90deg,rgba(241,235,224,.92),rgba(241,235,224,.8))}
body[data-theme="ink"] .co[data-side="L"]{border-left:none;border-right:2px solid var(--accent)}
body[data-theme="ink"] .co .h{font-family:var(--kai);font-size:19px;letter-spacing:.06em}
body[data-theme="ink"] .co.small{border:none;padding:1px 6px;background:rgba(241,235,224,.88);box-shadow:0 0 0 1px rgba(29,27,24,.12)}
body[data-theme="ink"] .co.small .h{font-size:14px}
body[data-theme="ink"] #rl span{font-family:var(--kai)}
body[data-theme="ink"] #tele .th{font-family:var(--kai);letter-spacing:.3em}

/* --- 2 blueprint · 工程制图 --- */
body[data-theme="blueprint"]{--bg:#0f3d73;--fg:#eaf3ff;--dim:#9dc0e8;--accent:#ffd23f;--rule:rgba(234,243,255,.35);--panel:rgba(15,61,115,.7);--line:#eaf3ff;
  background-color:#0f3d73;background-image:linear-gradient(rgba(234,243,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(234,243,255,.07) 1px,transparent 1px),linear-gradient(rgba(234,243,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(234,243,255,.035) 1px,transparent 1px);
  background-size:100px 100px,100px 100px,20px 20px,20px 20px;font-family:var(--din)}
body[data-theme="blueprint"] .d-blueprint{opacity:1}
.d-blueprint .frame{position:absolute;inset:12px;border:1.5px solid rgba(234,243,255,.55);outline:1px solid rgba(234,243,255,.25);outline-offset:-6px}
.d-blueprint .tblock{position:absolute;right:calc(var(--pad) - 20px);bottom:86px;display:none}
body[data-theme="blueprint"] #brand .t1{font-family:var(--din);font-size:24px;letter-spacing:.06em;text-transform:uppercase}
body[data-theme="blueprint"] #brand .t2{font-family:var(--mono);font-size:10.5px}
body[data-theme="blueprint"] #chapters .no{font-family:var(--mono);font-size:13px;border:1px solid var(--rule);padding:3px 4px;text-align:center}
body[data-theme="blueprint"] #chapters .nm{font-family:var(--din);font-size:14px}
body[data-theme="blueprint"] .co{border:1px solid rgba(234,243,255,.7);padding:5px 9px 6px;background:rgba(15,61,115,.82)}
body[data-theme="blueprint"] .co .h{font-family:var(--din);font-size:13.5px}
body[data-theme="blueprint"] .co.small{padding:2px 6px}
body[data-theme="blueprint"] .lead{stroke-dasharray:6 3}
body[data-theme="blueprint"] .dot{fill:none;stroke:var(--accent);stroke-width:1.2}

/* --- 3 hologram · 赛博全息 --- */
body[data-theme="holo"]{--bg:#02060a;--fg:#d6fbff;--dim:#5fb7c9;--accent:#ff3d8b;--rule:rgba(70,232,255,.3);--panel:rgba(2,16,24,.7);--line:#46e8ff;
  background:radial-gradient(90% 80% at 55% 45%,#06202a 0%,#02080c 60%,#010305 100%);font-family:var(--din)}
body[data-theme="holo"] .d-holo{opacity:1}
.d-holo .scan{position:absolute;inset:0;background:repeating-linear-gradient(0deg,rgba(70,232,255,.035) 0 1px,transparent 1px 3px)}
.d-holo .cb{position:absolute;width:26px;height:26px;border:2px solid rgba(70,232,255,.6)}
.d-holo .tl{left:14px;top:14px;border-right:none;border-bottom:none}.d-holo .tr{right:14px;top:14px;border-left:none;border-bottom:none}
.d-holo .bl{left:14px;bottom:14px;border-right:none;border-top:none}.d-holo .br{right:14px;bottom:14px;border-left:none;border-top:none}
body[data-theme="holo"] #brand .t1{font-family:var(--din);font-size:24px;letter-spacing:.14em;color:#46e8ff;text-shadow:0 0 12px rgba(70,232,255,.6)}
body[data-theme="holo"] #chapters .no{font-family:var(--mono);font-size:12px;color:#46e8ff}
body[data-theme="holo"] #chapters .nm{font-family:var(--mono);font-size:13px;letter-spacing:.08em}
body[data-theme="holo"] .co{padding:5px 10px 6px;background:linear-gradient(90deg,rgba(4,26,34,.88),rgba(4,20,28,.7));border-top:1px solid rgba(70,232,255,.7);clip-path:polygon(0 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%)}
body[data-theme="holo"] .co .h{font-family:var(--din);letter-spacing:.04em;color:#d6fbff}
body[data-theme="holo"] .co .big{text-shadow:0 0 10px rgba(255,61,139,.6)}
body[data-theme="holo"] .lead{filter:drop-shadow(0 0 3px rgba(70,232,255,.8))}

/* --- 4 studio · 写实渲染 --- */
body[data-theme="studio"]{--bg:#e9eaec;--fg:#16191d;--dim:#6c737c;--accent:#ff6a00;--rule:rgba(22,25,29,.16);--panel:rgba(255,255,255,.7);--line:#16191d;
  background:radial-gradient(110% 90% at 50% 30%,#fbfbfc 0%,#eceef0 50%,#d4d7db 100%)}
body[data-theme="studio"] .d-studio{opacity:1}
body[data-theme="studio"] #brand .t1{font-weight:600;font-size:28px;letter-spacing:-.01em}
body[data-theme="studio"] #brand .t2{letter-spacing:.08em}
body[data-theme="studio"] #chapters .no{font-family:var(--din);font-size:13px;color:var(--dim)}
body[data-theme="studio"] #chapters .nm{font-weight:600;font-size:15px}
body[data-theme="studio"] .co{background:rgba(255,255,255,.88);padding:8px 12px 9px;border-radius:8px;box-shadow:0 6px 24px rgba(20,24,30,.12)}
body[data-theme="studio"] .co .h{font-weight:600;font-size:13.5px}
body[data-theme="studio"] .co.small{padding:3px 8px;border-radius:5px}
body[data-theme="studio"] #pip .pv{border-radius:8px;overflow:hidden}

/* --- 5 lacquer · 玄幻金漆 --- */
body[data-theme="lacquer"]{--bg:#0a0605;--fg:#f3d79a;--dim:#b08a55;--accent:#ff5a2a;--rule:rgba(240,196,108,.3);--panel:rgba(20,10,8,.7);--line:#f0c46c;
  background:radial-gradient(85% 75% at 50% 42%,#2a0f0b 0%,#120706 55%,#060303 100%)}
body[data-theme="lacquer"] .d-lacquer{opacity:1}
body[data-theme="lacquer"] #brand .t1{font-family:var(--kai);font-size:42px;letter-spacing:.12em;color:#f0c46c;text-shadow:0 0 18px rgba(240,180,80,.35)}
body[data-theme="lacquer"] #brand .t2{font-family:var(--kai);font-size:14px;letter-spacing:.3em}
body[data-theme="lacquer"] #chapters .no,body[data-theme="lacquer"] #chapters .nm{font-family:var(--kai)}
body[data-theme="lacquer"] #chapters .no{font-size:24px;color:#f0c46c}
body[data-theme="lacquer"] #chapters .nm{font-size:17px;letter-spacing:.25em}
body[data-theme="lacquer"] .co{padding:5px 12px 6px;border:1px solid rgba(240,196,108,.55);background:rgba(18,8,6,.78);box-shadow:inset 0 0 0 3px rgba(18,8,6,.78),inset 0 0 0 4px rgba(240,196,108,.25)}
body[data-theme="lacquer"] .co .h{font-family:var(--kai);font-size:18px;letter-spacing:.08em;color:#f3d79a}
body[data-theme="lacquer"] .co.small{padding:2px 8px;box-shadow:none}
body[data-theme="lacquer"] .co.small .h{font-size:14px}
body[data-theme="lacquer"] #rl span{font-family:var(--kai)}
body[data-theme="lacquer"] .lead{filter:drop-shadow(0 0 2px rgba(240,196,108,.7))}

/* --- 6 graphite · 卡通描线 --- */
body[data-theme="graphite"]{--bg:#252423;--fg:#ece6e0;--dim:#9b938c;--accent:#ff4b4b;--rule:rgba(236,230,224,.18);--panel:rgba(40,38,37,.85);--line:#ece6e0;
  background:#252423;font-family:var(--sans)}
body[data-theme="graphite"] .d-graphite{opacity:1;background:radial-gradient(80% 70% at 50% 45%,rgba(255,255,255,.04),transparent 70%)}
body[data-theme="graphite"] #brand .t1{font-weight:700;font-size:30px;letter-spacing:-.02em}
body[data-theme="graphite"] #brand .t2{font-family:var(--mono);font-size:10.5px;letter-spacing:.12em}
body[data-theme="graphite"] #chapters .no{font-family:var(--mono);font-size:11px;color:var(--dim)}
body[data-theme="graphite"] #chapters .nm{font-weight:700;font-size:15px}
body[data-theme="graphite"] .co{background:#1b1a19;padding:7px 11px 8px;border-radius:4px;border:1px solid rgba(236,230,224,.1)}
body[data-theme="graphite"] .co .h{font-weight:600;font-size:13px}
body[data-theme="graphite"] .co .e{color:#ff4b4b}
body[data-theme="graphite"] #ruler{background:#1b1a19;border-radius:6px;padding:0 12px}

/* ============ small screens ============ */
@media (max-width:1240px){ :root{--leftw:170px;--pipw:260px} #chapters .sb{display:none} }
@media (max-width:1180px){ #styles button i{display:none} #styles button,#langbtn,#homebtn{padding:5px 8px;font-size:12px} #styles{gap:4px} }
@media (max-width:980px){ :root{--leftw:56px;--pipw:220px} #chapters .nm,#tele{display:none} #brand .t1{font-size:20px!important} #brand .t2{display:none} }
@media (max-width:760px){ #top{flex-direction:column;gap:8px} #styles button,#langbtn,#homebtn{padding:4px 6px;font-size:11px} }
@media (max-height:860px){ #chapters .sb{display:none} #chapters{gap:7px} #chapters .pg{margin-top:5px} }
@media (max-height:700px){ #tele{display:none} }

/* ============ waiting for data / failed ============ */
#wait{position:fixed;z-index:6;left:50%;bottom:86px;transform:translateX(-50%);display:none;font-size:12px;line-height:1.4;padding:5px 12px;border:1px solid var(--rule);background:var(--panel);color:var(--fg);white-space:nowrap;pointer-events:none}
#wait .w2{display:none}
body.waiting #wait,body.failed #wait{display:block}
body.failed #wait .w1{display:none} body.failed #wait .w2{display:inline}

/* ============ embed (?embed=1): the scene alone; the page around it frames it and supplies the controls ============ */
html:has(body.embed){background:transparent}
body.embed #top,body.embed #left,body.embed #tele,body.embed #pip,body.embed #credit,body.embed #callouts,body.embed #leaders,body.embed #bar,
body.embed #wait,body.embed #loading,body.embed #deco .tblock,body.embed #deco .frame,body.embed .d-holo .cb,body.embed .d-lacquer{display:none!important}
body.embed::before,body.embed::after{display:none}
/* the look that matches the host page is drawn straight onto that page */
body.embed.host-match{background:transparent!important}
body.embed.host-match #deco{display:none}

/* ---- embed captions (body.embed.cards, set when the frame has room): no text below 16px ---- */
@font-face{font-family:"IBM Plex Sans";src:url("../../assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("../../assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"IBM Plex Sans";src:url("../../assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2");font-weight:600;font-display:swap}
body.embed{--sans:"IBM Plex Sans","Segoe UI","PingFang SC","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif}
body.embed.cards #callouts,body.embed.cards #leaders,body.embed.cards #pip{display:block!important}
body.embed .co{max-width:380px}
body.embed .co .e{font-family:var(--sans);font-weight:500;font-size:16px!important;line-height:1.3;letter-spacing:.05em;margin-bottom:2px}
body.embed .co .h{font-size:18px!important;line-height:1.3;letter-spacing:0!important}
body.embed .co .k{font-size:16px!important;line-height:1.45}
body.embed .co .k b{font-family:inherit;font-size:16px;font-weight:600}
body.embed .co .big{font-size:34px!important;line-height:1.12}
body.embed .co .ramp{width:64px;height:8px;border-radius:0;vertical-align:1px}
body.embed .co.small{max-width:none;padding:3px 9px 4px!important}
body.embed .co.small .h{font-size:16px!important}
body.embed .co.small .h i{font-style:normal;color:var(--accent);margin-right:8px}
/* cards queued in the rail: one width, text wraps, always read from the left */
body.embed .co.rail{max-width:none;text-align:left}
body.embed .co.rail .h,body.embed .co.rail .k{white-space:normal}
body.embed.cards #pip{position:fixed;right:auto;bottom:auto;z-index:5}
body.embed #pip .ph{font-family:var(--sans);font-size:16px;line-height:1.4;padding-bottom:6px}
body.embed #pip .pm{line-height:1.4}
body.embed #pip .pf{display:none}
/* chapter number and name at the head of the rail: plain type, no card */
body.embed .co.chapter{background:none!important;border:0!important;box-shadow:none!important;clip-path:none!important;padding:0 0 6px!important;white-space:nowrap;line-height:1.15;color:var(--fg);text-shadow:0 0 12px var(--bg),0 0 4px var(--bg)}
body.embed .co.chapter .cn{font-family:var(--din);font-size:40px;color:var(--accent);margin-right:14px;font-variant-numeric:tabular-nums}
body.embed .co.chapter .ct{font-size:24px;letter-spacing:.01em}
body.embed[data-theme="ink"] .co.chapter span,body.embed[data-theme="lacquer"] .co.chapter span{font-family:var(--kai)}
