/* Layout fixes injected by optimize-home.py. Keep this file small.
   "Mobile" = phones in portrait (<=768px) or landscape (short + touch). */
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  /* Header: fully transparent and pinned; only the L mark + menu icon (ULIY too on About). */
  html body #header,
  html body #header.is-scrolled {
    position: fixed !important;
    background: transparent !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    border: 0 !important;
  }
  html body #header .brand-page-name { display: none !important; }

  /* No reading progress on phones (top bar + side rail). */
  html body .reading-progress,
  html body .reading-timeline { display: none !important; }

  /* Article TOC button sits directly above the back-to-top button (right side). */
  html body .reader-toc-toggle,
  html body #main .reader-toc-toggle {
    left: auto !important;
    right: 14px !important;
    top: auto !important;
    bottom: calc(max(17px, env(safe-area-inset-bottom)) + 56px) !important;
    border-radius: 50% !important;
  }
  /* Contents panel opens from the right, just above the TOC button. */
  html body #main :is(.source-toc, .article-toc) {
    left: auto !important;
    right: 14px !important;
    top: auto !important;
    bottom: calc(max(17px, env(safe-area-inset-bottom)) + 108px) !important;
    width: min(330px, calc(100vw - 28px)) !important;
    max-height: min(60dvh, 520px) !important;
    transform-origin: bottom right;
  }
  html body:has(.lr-mini:not([hidden])) #main :is(.source-toc, .article-toc) {
    bottom: calc(122px + env(safe-area-inset-bottom) + 108px) !important;
    max-height: min(48dvh, 420px) !important;
  }
  html body.reader-music-docked #main :is(.source-toc, .article-toc) {
    bottom: calc(var(--media-card-height, 150px) + 24px + 108px) !important;
    max-height: max(100px, calc(100dvh - var(--media-card-height, 150px) - 220px)) !important;
  }
  html body:has(.lr-mini:not([hidden])) .reader-toc-toggle,
  html body:has(.lr-mini:not([hidden])) #main .reader-toc-toggle {
    bottom: calc(122px + env(safe-area-inset-bottom) + 56px) !important;
  }
  html body.reader-music-docked .reader-toc-toggle,
  html body.reader-music-docked #main .reader-toc-toggle {
    bottom: calc(var(--media-card-height, 150px) + 24px + 56px) !important;
  }
}

/* ---- Quiet details (borrowed from the Ungetsu teardown) ---- */
/* Footer curtain far below the fold: hide the moon canvas so its render loop sleeps (home-fixes.js). */
#contact.luliy-far #footerMoon{display:none}

/* Page change: the old page lifts 2.5% and fades, the new one settles in. The study room keeps its own crossfade;
   the header and article-title morphs keep their own rules. */
@media(prefers-reduced-motion:no-preference){
  :root:not([data-vt-dir=study])::view-transition-old(root){animation:luliy-vt-lift var(--dur-base) var(--ease-soft) both}
  :root:not([data-vt-dir=study])::view-transition-new(root){animation:luliy-vt-settle calc(var(--dur-base) + 50ms) var(--ease) both}
}
@keyframes luliy-vt-lift{to{opacity:0;transform:translateY(-2.5%)}}
@keyframes luliy-vt-settle{from{opacity:0}}

/* Opening verse breathes in character by character (home-fixes.js adds .lv-breath / .lv-run). */
.library-home .opening-copy p.opening-verse.lv-breath{animation:none;opacity:1;transform:none}
.lv-breath .lv-c{display:inline-block;opacity:.16;transform:translateY(.16em)}
.lv-breath.lv-run .lv-c{animation:luliy-breathe 1150ms var(--ease-soft) calc(var(--lv-base,1150ms) + var(--d,0ms)) both}
@keyframes luliy-breathe{from{opacity:.16;transform:translateY(.16em)}to{opacity:1;transform:none}}
@media(prefers-reduced-motion:reduce){.lv-breath .lv-c{opacity:1;transform:none;animation:none}}

/* Hovering one card lets its siblings step back. Mouse and trackpad only. */
@media(hover:hover) and (pointer:fine){
  .article-list:has(>.study-entry:hover)>.study-entry:not(:hover),
  .project-exhibition-track:has(>.project-exhibit-item:hover)>.project-exhibit-item:not(:hover),
  .space-links:has(>.space-link:hover)>.space-link:not(:hover){opacity:.55}
}
/* Links get a site-wide 200ms !important transition; add opacity at 400ms without changing the existing parts. */
@media(hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference){
  html body .article-list>a.study-entry:not(.lr-record):not(.signature):not(.contact-signature){
    transition-property:color,background,opacity!important;
    transition-duration:var(--dur-fast),var(--dur-fast),var(--dur-base)!important;
    transition-timing-function:var(--ease),var(--ease),var(--ease-soft)!important}
  html body .space-links>a.space-link:not(.lr-record):not(.signature):not(.contact-signature){
    transition-property:rotate,opacity!important;
    transition-duration:var(--dur-fast),var(--dur-base)!important;
    transition-timing-function:var(--ease),var(--ease-soft)!important}
}

/* ---- Phones: articles first ---- */
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  /* Reading: header and floating buttons step aside while scrolling down (home-fixes.js). */
  html body #header { transition: opacity var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease), visibility 0s !important; }
  /* 2026-11-02: once faded, the header is also visibility: hidden, so nothing coloured stays fixed at the top edge and
     the status bar (time, battery) has no fill of its own: the page shows through it. */
  html body.luliy-chrome-hidden #header { opacity: 0 !important; transform: translateY(-24px) !important; pointer-events: none !important;
    visibility: hidden !important; transition: opacity var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease), visibility 0s linear var(--dur-base) !important; }
  html body.luliy-chrome-hidden #main :is(.reader-toc-toggle, .reader-back-top) {
    opacity: 0 !important; transform: translateY(16px) !important; pointer-events: none !important;
  }
  html body #main :is(.reader-toc-toggle, .reader-back-top) {
    transition: opacity var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease) !important;
  }
}
/* Touch: the section-link button keeps its small glyph but gets a finger-sized target. */
@media (pointer: coarse) {
  html body .reader-heading-link { padding: 12px; margin: -12px -12px -12px 0; }
}

/* ---- Phones: lighter reading chrome ---- */
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  /* Article header becomes one quiet line: ← date · length · reading time … share.
     Category, refresh and the blog link stay in the page, just not shown here. */
  html body #main .source-reading > .source-meta { flex-wrap: nowrap; gap: 0; padding: 4px 0 10px; white-space: nowrap; }
  html body #main .source-reading > .source-meta > :is(.source-category, .reader-refresh, a[target="_blank"]) { display: none; }
  html body #main .source-reading > .source-meta > :is(time, #sourceReadingTime) {
    padding: 0; min-height: 0; color: var(--muted); font-size: 12px; letter-spacing: .02em; white-space: nowrap;
  }
  html body #main .source-reading > .source-meta > :is(time, #sourceReadingTime)::before { display: none; }
  html body #main .source-reading > .source-meta > time:has(+ #sourceReadingTime:not(:empty))::after { content: "·"; margin-inline: .55em; }
  html body #main .source-reading > .source-meta > #sourceReadingTime { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  html body #main .source-reading > .source-meta > .reader-return { margin-inline: 0 4px; }
  html body #main .source-reading > .source-meta > .source-share { margin-inline-start: auto; flex: none; }
}
@media (max-width: 700px) {
  /* Wide photographs run edge to edge (home-fixes.js picks them: block images that fill the column). */
  html body #main :is(.source-body, .article-body) img.luliy-bleed {
    width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); border-radius: 0;
  }
  /* The contact curtain keeps signature, address, icons and the small print, without the empty band. */
  :root { --footer-h: min(380px, 85svh); }
  html body .contact-curtain .contact-inner { padding-top: 24px; }
  /* On article pages the floating TOC / back-to-top buttons sit at the bottom right; keep the small print clear of them. */
  html body.luliy-reading .contact-curtain .footer-bottom { padding-right: 60px; }
}
/* Article-list covers fade in when they arrive instead of popping. */
@media (prefers-reduced-motion: no-preference) {
  .article-list .study-entry.has-cover > .study-entry-cover { animation: luliy-cover-in var(--dur-slow) var(--ease-soft); }
}
@keyframes luliy-cover-in { from { opacity: 0; } }

/* ---- Touch devices: compatibility ---- */
/* Notches and rounded corners (viewport-fit=cover): keep text and controls inside the safe area, mostly in landscape. */
@supports (padding: env(safe-area-inset-left)) {
  html body .page-above { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
  html body #header { margin-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
  html body #main :is(.reader-toc-toggle, .reader-back-top),
  html body .lr-mini.lm-mini { margin-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
  html body .contact-curtain .contact-inner { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); }
  @media (max-width: 700px) { html body .lr-mini.lm-mini { bottom: max(12px, env(safe-area-inset-bottom)); } }
}
/* Landscape phones: the contact curtain is taller than its room, so the signature steps down in size. */
@media (pointer: coarse) and (max-height: 500px) {
  html body .contact-curtain .contact-signature { zoom: .62; }
  html body .contact-curtain .contact-inner { padding-top: 14px; padding-bottom: 14px; }
  html body .contact-curtain .contact-email { font-size: 20px; }
  html body .contact-curtain .contact-social { margin-top: 6px; }
  html body .contact-curtain .footer-bottom { padding-top: 8px; }
  html body.luliy-reading .contact-curtain .footer-bottom { padding-right: 64px; }
}
@media (pointer: coarse) {
  /* Blur behind moving glass costs every scroll frame on phones; a nearly solid fill reads the same. */
  html body .site-header::before { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg) 95%, transparent); }
  html body #main :is(.reader-toc-toggle, .reader-back-top) { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg) 96%, transparent); }
  html body .lr-mini.lm-mini { backdrop-filter: none; -webkit-backdrop-filter: none; }
  html body .study-panels-scrim { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(4, 4, 4, .62); }
  /* No grey flash on tap; a short press-down instead. The signature (long press) and the record player keep their own feedback. */
  html { -webkit-tap-highlight-color: transparent; }
  html body :is(#header, #main, #directory, .contact-social, .footer-bottom) :is(a, button, summary):not(.contact-signature):not([class*="lr-"]):not(.brand-mark):not(.directory-brand-mark):active,
  html body .contact-email:active { opacity: .6; transition-duration: 0s !important; }
  /* iOS zooms the page into any text field under 16px. */
  html body :is(input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]):not([type=color]):not([type=file]), textarea, select) { font-size: max(16px, 1em); }
}
/* Data saver: skip the large decorative photo behind the footer. */
html.luliy-save-data .footer-left-art { display: none; }
@media (prefers-reduced-data: reduce) { .footer-left-art { display: none; } }

/* ---- Phones: one header on every page (home-fixes.js block 4) ---- */
:root { --luliy-wash: var(--bg); }
:root[data-appearance=cc] { --luliy-wash: #1f1f38; }
:root[data-appearance=dark][data-palette] { --luliy-wash: var(--luliy-sky-top); }
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  /* Flush with the top edge; the notch inset becomes padding, so the wash reaches the very top of the screen. */
  html body #header { top: 0 !important; padding-top: calc(6px + env(safe-area-inset-top)) !important; }
  /* Once the page has moved, the header is frosted glass, as in iOS (2026-11-02; before: an 80% wash fading out
     downwards): the page colour at 68% over a saturated blur, a straight lower edge with a hairline. It reaches up
     under the status bar (the padding above), so time and battery sit on the same glass. The glass is .luliy-glass
     (home-fixes.js 4), a sibling just before the header: the header's own ::before cannot blur the page. */
  html body #header.luliy-washed { background: none !important; }
  html body #header.luliy-washed::before { display: none !important; }
  html.luliy-glass-on body .luliy-glass {
    display: block; position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: var(--luliy-glass-h, 78px); pointer-events: none;
    background: color-mix(in srgb, var(--luliy-wash) 68%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    box-shadow: inset 0 -.5px 0 color-mix(in srgb, var(--ink, #fff) 16%, transparent);
    transition: opacity var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease), visibility 0s;
  }
  html body.luliy-chrome-hidden .luliy-glass { opacity: 0; transform: translateY(-24px); visibility: hidden;
    transition: opacity var(--dur-base) var(--ease-soft), transform var(--dur-base) var(--ease), visibility 0s linear var(--dur-base); }
  html.lsw-on body.luliy-chrome-hidden .luliy-glass { opacity: 1; transform: none; visibility: visible; }
  html.luliy-cloth-open body .luliy-glass, html body.luliy-sheet-open .luliy-glass { opacity: 0; }
  html body.luliy-sheet-open #header { opacity: 0 !important; pointer-events: none !important; }
}
.luliy-glass { display: none; }
@media (prefers-reduced-motion: reduce) { .luliy-glass { transition: none !important; } }

/* ---- Phones: article list (home-fixes.js block 9) ---- */
#header .luliy-header-modes { display: none; }
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  /* 文章 / 編年史 as header tabs: the current one bold with a short gold bar. The Works page's
     網頁 · 真題區 · 照片牆 (block 17) are buttons with the same look. */
  html body #header .luliy-header-modes {
    display: flex; gap: 20px; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  }
  html body #header .luliy-header-modes :is(a, button) {
    position: relative; margin: 0; border: 0; background: none; cursor: pointer; padding: 12px 2px; color: var(--muted); font-family: var(--font-ui); font-size: 16px; font-weight: 500;
    line-height: 1; letter-spacing: .06em; text-decoration: none; white-space: nowrap;
  }
  html body #header .luliy-header-modes :is(a, button)[aria-current] { color: var(--ink); font-weight: 700; }
  html body #header .luliy-header-modes :is(a, button)[aria-current]::after {
    content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 2px; margin-left: -8px; border-radius: 2px; background: var(--accent);
  }
  html body #main .luliy-has-header-modes .article-modes,
  html body #main .article-browse-toolbar.luliy-emptied { display: none !important; }
  html body #main .luliy-has-header-modes > #chronicleBrowse { margin-top: 4px; }

  /* The filter sits on the first year's row, on the right. */
  html body #main .post-year.luliy-filter-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  html body #main .post-year.luliy-filter-row > h2 { grid-column: 1; grid-row: 1; }
  html body #main .post-year.luliy-filter-row > .article-filter-drawer { grid-column: 2; grid-row: 1; align-self: center; margin-bottom: 15px; }
  html body #main .post-year.luliy-filter-row > :not(h2):not(.article-filter-drawer) { grid-column: 1 / -1; }
  /* Mobile: tighten the gap between the first year heading row and its first article,
     so it matches the spacing between articles (was 15px heading margin + 25px row gap). */
  @media (max-width: 700px) {
    html body #main .post-year.luliy-filter-row { gap: 16px; }
    html body #main .post-year.luliy-filter-row > h2 { margin-bottom: 0; }
    html body #main .post-year.luliy-filter-row > .article-filter-drawer { margin-bottom: 0; }
  }
  html body #main .article-filter-drawer > summary { position: relative; min-height: 44px; }
  html body #main .article-filter-drawer > summary .article-filter-chevron { display: none; }
  html body #main .article-filter-drawer.luliy-filtered > summary::after {
    content: ""; position: absolute; top: 9px; right: -7px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  }

  /* Bottom sheet. */
  html.luliy-sheet-lock, html.luliy-sheet-lock body { overflow: hidden !important; }
  html body #main .article-filter-drawer[open] > summary::before {
    content: ""; position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .5); cursor: default;
    animation: luliy-dim-in var(--dur-base) var(--ease-soft) both;
  }
  html body #main .article-filter-drawer > .article-filter-panel {
    position: fixed !important; inset: auto 0 0 0 !important; z-index: 71; width: auto !important; max-width: none !important;
    max-height: 78vh; max-height: 78svh; margin: 0 auto !important; overflow-y: auto; overscroll-behavior: contain;
    padding: 26px 20px calc(22px + env(safe-area-inset-bottom)) !important;
    border: 0 !important; border-radius: 16px 16px 0 0 !important; background: var(--raised) !important;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, .28) !important; transform: none;
    animation: luliy-sheet-up 380ms var(--ease) backwards !important; transition: transform var(--dur-fast) var(--ease);
  }
  @media (min-width: 600px) { html body #main .article-filter-drawer > .article-filter-panel { max-width: 560px !important; } }
  html body #main .article-filter-drawer > .article-filter-panel::before {
    content: ""; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px;
    background: var(--line-strong); opacity: .55;
  }
  html body #main .article-filter-drawer.luliy-sheet-closing > .article-filter-panel { animation: luliy-sheet-down 230ms var(--ease-in-out) forwards !important; }
  html body #main .article-filter-drawer.luliy-sheet-closing > summary::before { animation: luliy-dim-out 230ms var(--ease-in-out) forwards; }
  html body #main .article-filter-panel .article-filter-heading { display: flex; align-items: center; gap: 14px; }
  html body #main .article-filter-panel .article-filter-heading > span { margin-right: auto; color: var(--ink); font-size: 17px; font-weight: 700; }
  html body #main .luliy-sheet-close {
    display: grid; place-items: center; flex: none; width: 34px; height: 34px; margin: -6px -4px -6px 0; padding: 0;
    border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink);
  }
  html body #main .luliy-sheet-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  /* 全部文章 · 23 篇, under the sheet title. */
  html body #main .article-filter-panel > .article-filter-current {
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 10px 0 2px; color: var(--muted); font-size: 13px;
  }
  html body #main .article-filter-panel > .article-filter-current > small::before { content: "·"; margin-right: 6px; }
}
@keyframes luliy-sheet-up { from { transform: translateY(100%); } }
@keyframes luliy-sheet-down { to { transform: translateY(100%); } }
@keyframes luliy-dim-in { from { opacity: 0; } }
@keyframes luliy-dim-out { to { opacity: 0; } }

/* ---- Phones: works in two columns ---- */
@media (max-width: 700px) {
  html body #main .project-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 24px 12px !important; }
  html body #main .project-gallery-grid .project-caption { margin-top: 10px; padding: 0; }
  html body #main .project-gallery-grid .project-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin: 0; }
  html body #main .project-gallery-grid .project-title .numeral { font-size: 12px; }
  html body #main .project-gallery-grid .project-title h3 { min-width: 0; margin: 0; font-size: 16px; line-height: 1.25; overflow-wrap: anywhere; }
  html body #main .project-gallery-grid .project-title .status { margin-left: auto; font-size: 11px; }
  html body #main .project-gallery-grid .project-caption p {
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    margin: 5px 0 0; font-size: 12.5px; line-height: 1.5;
  }
}

/* ---- Phones: record player (home-fixes.js block 10) ---- */
#main .lr-view-controls > .luliy-view-more { display: contents; }
#main .lr-view-controls > .luliy-view-toggle { display: none; }
@media (max-width: 700px) {
  /* Under the turntable: 進入展覽 and ⋯ on the right; the other view controls in a small panel above them. */
  html body #main .lr-standalone .lr-view-controls { left: auto !important; right: 0 !important; width: auto !important; justify-content: flex-end; gap: 4px; }
  html body #main .lr-standalone .lr-view-controls > .luliy-view-toggle { display: inline-flex; }
  html body #main .lr-standalone .luliy-view-toggle svg circle { fill: currentColor; stroke: none; }
  html body #main .lr-standalone .lr-view-controls > .luliy-view-more { display: none; }
  html body #main .lr-standalone .lr-view-controls.luliy-more-open > .luliy-view-more {
    display: grid; grid-template-columns: repeat(4, 44px); gap: 2px; position: absolute; right: 0; bottom: calc(100% + 8px); z-index: 6;
    padding: 6px; border: 1px solid var(--line); border-radius: 16px; background: var(--raised);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .3); animation: luliy-pop var(--dur-fast) var(--ease) both; transform-origin: bottom right;
  }
  html body #main .lr-standalone .luliy-view-more .lr-view-divider { display: none; }
  html body #main .lr-standalone .luliy-view-more .lr-detail-actions { display: contents; }
  html body #main .lr-standalone .lr-view-controls.luliy-more-open > .luliy-view-toggle { color: var(--accent); }

  /* Now playing, laid out like a phone music app: title, progress, then
     順序 · previous · play · next · 隨機, volume, and the small extras last. */
  html body #main .lr-standalone .lr-meta {
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center; column-gap: 0; row-gap: 0;
  }
  html body #main .lr-standalone .lr-meta :is(.lr-meta-top, .lr-listening-actions, .lr-track-progress, .lr-sound-row, .lr-play-modes, .lr-volume) { display: contents; }
  /* .lr-transport keeps a box: the player watches it (IntersectionObserver) to update the progress and hide the mini player. */
  html body #main .lr-standalone .lr-meta .lr-transport {
    display: grid; grid-area: 4 / 2 / 5 / 5; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; gap: 0; width: auto; margin: 0; padding: 0;
  }
  html body #main .lr-standalone .lr-meta .lr-title {
    grid-area: 1 / 1 / 2 / 5; margin: 0; overflow: hidden; font-size: 26px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap;
  }
  html body #main .lr-standalone .lr-meta [data-extra="favorite-current"] { grid-area: 1 / 5; justify-self: end; margin-right: -10px; }
  html body #main .lr-standalone .lr-meta .lr-seek { grid-area: 2 / 1 / 3 / 6; width: 100%; margin: 12px 0 0; }
  html body #main .lr-standalone .lr-meta .lr-elapsed { grid-area: 3 / 1 / 4 / 3; justify-self: start; font-size: 11px; }
  html body #main .lr-standalone .lr-meta .lr-duration { grid-area: 3 / 4 / 4 / 6; justify-self: end; font-size: 11px; }
  html body #main .lr-standalone .lr-meta [data-lr-action="sequence"] { grid-area: 4 / 1; justify-self: start; margin-left: -10px; }
  html body #main .lr-standalone .lr-meta [data-lr-action="previous"] { grid-area: 1 / 1; justify-self: center; }
  html body #main .lr-standalone .lr-meta .lr-primary {
    grid-area: 1 / 2; justify-self: center; display: grid; place-items: center; width: 64px; height: 64px; margin: 14px 0; padding: 0;
    border: 0; border-radius: 50%; background: var(--accent); color: var(--bg);
  }
  html body #main .lr-standalone .lr-meta .lr-primary svg { width: 24px; height: 24px; }
  html body #main .lr-standalone .lr-meta .lr-primary > span {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  html body #main .lr-standalone .lr-meta [data-lr-action="next"] { grid-area: 1 / 3; justify-self: center; }
  html body #main .lr-standalone .lr-meta [data-lr-action="shuffle"] { grid-area: 4 / 5; justify-self: end; margin-right: -10px; }
  html body #main .lr-standalone .lr-meta .lr-mute { grid-area: 5 / 1; justify-self: start; margin-left: -10px; }
  html body #main .lr-standalone .lr-meta .lr-volume-range { grid-area: 5 / 2 / 6 / 5; width: 100%; min-width: 0; margin: 0; }
  html body #main .lr-standalone .lr-meta .lr-volume-output { grid-area: 5 / 5; justify-self: end; }
  html body #main .lr-standalone .lr-meta .lr-counter { grid-area: 6 / 1; justify-self: start; margin: 0; white-space: nowrap; }
  html body #main .lr-standalone .lr-meta .lr-counter::before { display: none; }
  html body #main .lr-standalone .lr-meta .lr-sleep-label { grid-area: 6 / 2 / 7 / 4; justify-self: center; }
  html body #main .lr-standalone .lr-meta [data-extra="noise"] { grid-area: 6 / 4; justify-self: center; }
  html body #main .lr-standalone .lr-meta .lr-playlist-icon { grid-area: 6 / 5; justify-self: end; margin-right: -10px; }
  html body #main .lr-standalone .lr-meta :is(.lr-audio-status, .lr-listening-status) { grid-column: 1 / -1; }
  html body #main .lr-standalone .lr-meta .lr-audio-status { margin-top: 6px; }
}
@keyframes luliy-pop { from { opacity: 0; transform: scale(.94); } }

/* ---- Directory button: two thick bars (=) everywhere; closing is a round × ----
   Proportions of the GTA VI site: square-ended bars about 1/5 as thick as they are wide, the gap as thick as a bar. */
html body #header #studyGlobalOpen svg, html body #header #studyGlobalOpen .menu-line { stroke-width: 4.5; stroke-linecap: butt; }
html body #header #studyGlobalOpen .menu-line.line-top { transform: translateY(3.75px) scaleX(.84); }
html body #header #studyGlobalOpen .menu-line.line-middle { opacity: 0; }
html body #header #studyGlobalOpen .menu-line.line-bottom { transform: translateY(-3.75px) scaleX(.84); }
html body #directory .plain-close {
  display: grid; place-items: center; aspect-ratio: 1; padding: 0 !important; border-radius: 50% !important;
  background: transparent !important; transition: background-color var(--dur-fast) var(--ease-in-out);
}
/* The × is the header's = turning over: same bars, same thickness. Opening, the two bars first slide together into
   one line, then turn ±45° into the ×, and the round backing fades in (home-fixes.js block 13 adds .luliy-x once
   the = has been drawn). Closing runs it backwards within the directory's 180 ms exit. The slide is the transform,
   the turn the separate rotate property, so each has its own timing and the bars always cross at the centre.
   Both buttons get the same 32-unit mark from the page's directory-mark script, so the numbers match the header's. */
html body #directory .plain-close svg { width: 32px !important; height: 32px !important; overflow: visible; }
html body #directory .plain-close svg, html body #directory .plain-close .menu-line { stroke-width: 4.5; stroke-linecap: butt; }
html body #directory .plain-close .menu-line {
  transform-box: view-box; transform-origin: 16px 16px; scale: .84 1; rotate: 0deg;
  transition: rotate var(--dur-fast) var(--ease-in-out), transform var(--dur-fast) var(--ease-in-out) 60ms, opacity 0s;
}
html body #directory .plain-close .menu-line.line-top { transform: translateY(3.75px); }
html body #directory .plain-close .menu-line.line-middle { opacity: 0; }
html body #directory .plain-close .menu-line.line-bottom { transform: translateY(-3.75px); }
html body #directory.luliy-x .plain-close { background: color-mix(in srgb, currentColor 13%, transparent) !important; transition-duration: var(--dur-base); }
html body #directory.luliy-x .plain-close .menu-line {
  transition: transform var(--dur-fast) var(--ease-in-out), rotate var(--dur-base) var(--ease) 120ms, opacity 0s;
}
html body #directory.luliy-x .plain-close .menu-line.line-top { transform: translateY(8px); rotate: 45deg; }
html body #directory.luliy-x .plain-close .menu-line.line-bottom { transform: translateY(-8px); rotate: -45deg; }
html body #directory:focus, html body #directory:focus-visible { outline: none; }

/* ---- 動態效果 off (home-early.js, switch in the directory): like system reduced motion ---- */
html.luliy-calm {    scroll-behavior: auto; }
html.luliy-calm *, html.luliy-calm *::before, html.luliy-calm *::after {
  animation-duration: 1ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important;
  transition-duration: var(--dur-fast) !important; transition-delay: 0s !important; scroll-behavior: auto !important;
}
html.luliy-calm::view-transition-group(*), html.luliy-calm::view-transition-old(*), html.luliy-calm::view-transition-new(*) { animation: none !important; }
/* The 動態效果 switch only shows in the directory while motion is off, so it can be turned back on. */
html body #directory .luliy-motion-switch { display: none !important; }
html.luliy-calm body #directory .luliy-motion-switch {
  display: inline-flex !important; align-items: center; gap: 8px; width: auto !important; min-height: 44px; padding: 0 2px; border: 0; background: none;
  color: inherit; font-family: var(--font-ui); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer;
}
#directory .luliy-switch-track {
  position: relative; flex: none; width: 30px; height: 18px; border-radius: 9px;
  background: color-mix(in srgb, currentColor 26%, transparent); transition: background var(--dur-fast) var(--ease-soft);
}
#directory .luliy-switch-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: currentColor;
  transition: transform var(--dur-fast) var(--ease);
}
#directory .luliy-motion-switch[aria-checked="true"] .luliy-switch-track { background: var(--accent); }
#directory .luliy-motion-switch[aria-checked="true"] .luliy-switch-track::after { transform: translateX(12px); background: var(--bg); }

/* ---- CC: night-sky gradient (the GTA VI site's palette), every device ---- */
html:root[data-appearance=cc] { --luliy-sky-top: #1f1f38; --luliy-sky-end: #0c0d1b; --day-gradient: linear-gradient(189deg, #1f1f38 .55%, #18182d 30.38%, #111222 65.19%, #0c0d1b 100%); }
/* ---- Dark palettes (theme picker, home-fixes.js block 14): the same four-stop sky in their own colours.
   Surfaces are in design-tokens.css. The dark appearance paints body / page / directory flat, so they get the sky here. ---- */
html:root[data-palette=forest] { --luliy-sky-top: #1d2a25; --luliy-sky-end: #0b110f; --luliy-sky: linear-gradient(189deg, #1d2a25 .55%, #17221e 30.38%, #111a17 65.19%, #0b110f 100%); }
html:root[data-palette=espresso] { --luliy-sky-top: #2a231d; --luliy-sky-end: #0f0d0b; --luliy-sky: linear-gradient(189deg, #2a231d .55%, #211c17 30.38%, #181411 65.19%, #0f0d0b 100%); }
html:root[data-palette=midnight] { --luliy-sky-top: #1d212b; --luliy-sky-end: #0a0b0f; --luliy-sky: linear-gradient(189deg, #1d212b .55%, #171a22 30.38%, #111319 65.19%, #0a0b0f 100%); }
html:root[data-palette=oxblood] { --luliy-sky-top: #2b181b; --luliy-sky-end: #10090a; --luliy-sky: linear-gradient(189deg, #2b181b .55%, #221316 30.38%, #190e10 65.19%, #10090a 100%); }
html:root[data-appearance=dark][data-palette] { --day-gradient: var(--luliy-sky); }
html:root[data-appearance=dark][data-palette] body,
html:root[data-appearance=dark][data-palette] .page-above,
html:root[data-appearance=dark][data-palette] #directory { background: var(--day-gradient) fixed, var(--luliy-sky-end) !important; }
/* Touch screens ignore background-attachment: fixed, which would stretch the gradient over the whole page.
   A fixed layer clipped to the page (runtime-fixes.py adds .luliy-sky to .page-above) keeps it screen-sized. */
.luliy-sky { display: none; }
@media (pointer: coarse) {
  html:root[data-appearance=cc] .page-above { background: none; }
  html:root[data-appearance=dark][data-palette] .page-above { background: none !important; }
  html:root[data-appearance=cc] .luliy-sky,
  html:root[data-appearance=dark][data-palette] .luliy-sky { display: block; position: absolute; inset: 0; z-index: -1; clip-path: inset(0); pointer-events: none; }
  html:root[data-appearance=cc] .luliy-sky > i,
  html:root[data-appearance=dark][data-palette] .luliy-sky > i { position: fixed; top: 0; left: 0; width: 100%; height: 100lvh; background: var(--day-gradient); }
  html:root[data-appearance=dark][data-palette] #directory { background: var(--day-gradient) center top / 100% 100lvh no-repeat, var(--luliy-sky-end) !important; }
}
/* CC without its passe-partout frame (the thin border round the window): the page runs to the edges, as in the other appearances. */
html:root[data-appearance=cc] .cc-frame { display: none !important; }
/* The contact curtain shows the bottom of the same sky. */
html:root[data-appearance=cc] .contact-curtain,
html:root[data-appearance=dark][data-palette] .contact-curtain { background: var(--day-gradient) center bottom / 100% 100lvh no-repeat, var(--luliy-sky-end); }

/* ---- CC opening (moon -> 書房): about half as long. The section was 7.2 screens tall and the moon never faded:
   its 1.8 s arrival animation kept opacity 1 (fill-mode both), which beat the scroll-driven --cc-moon-opacity, so
   the middle of the scroll showed nothing new. runtime-fixes.py moves the steps closer to match. ---- */
html:root[data-appearance=cc] .cc-opening #heroMoon { animation-fill-mode: backwards; }
@media (prefers-reduced-motion: no-preference) {
  html:root[data-appearance=cc] body .library-home.cc-opening { height: max(420svh, 3600px) !important; }
  @media (max-width: 700px) { html:root[data-appearance=cc] body .library-home.cc-opening { height: max(380svh, 3000px) !important; } }
}

/* ---- Theme picker (home-fixes.js block 14): seven colour circles in a small window by the theme button ---- */
dialog.luliy-theme-picker {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: transparent; color: var(--ink); overflow: hidden; animation: none;
}
dialog.luliy-theme-picker::backdrop { background: transparent; animation: none; }
.luliy-tp-card {
  position: absolute; left: 50%; top: 50%; box-sizing: border-box; width: max-content; max-width: calc(100vw - 24px);
  padding: 16px 18px 14px; border-radius: 22px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--raised) 95%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.15); backdrop-filter: blur(24px) saturate(1.15);
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, .55), 0 2px 10px rgba(0, 0, 0, .16);
}
.luliy-tp-title { margin: 0 0 14px; font: 500 11px/1.4 var(--font-ui); letter-spacing: .18em; color: var(--muted); }
.luliy-tp-row { display: flex; gap: 10px; }
.luliy-tp-swatch {
  position: relative; flex: none; width: 34px; height: 34px; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, var(--tp-a), var(--tp-b) 58%, var(--tp-c));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease-soft);
}
.luliy-tp-swatch[data-pick=light] { box-shadow: inset 0 0 0 1px rgba(20, 20, 19, .18); }
/* A 44 px touch target around each 34 px circle. */
.luliy-tp-swatch::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; }
.luliy-tp-swatch[aria-pressed=true] { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), 0 0 0 2.5px var(--raised), 0 0 0 4px var(--accent); }
.luliy-tp-swatch[data-pick=light][aria-pressed=true] { box-shadow: inset 0 0 0 1px rgba(20, 20, 19, .18), 0 0 0 2.5px var(--raised), 0 0 0 4px var(--accent); }
@media (hover: hover) { .luliy-tp-swatch:hover { transform: scale(1.08); } }
.luliy-tp-swatch:active { transform: scale(.94); }
.luliy-tp-swatch:focus { outline: none; }
.luliy-tp-swatch:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 5px; }
.luliy-tp-name { margin: 12px 0 0; min-height: 1.5em; font: 13px/1.5 var(--font-ui); color: var(--text); }
.luliy-tp-name span { margin-left: 8px; font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
/* Changing theme cross-fades the whole page once (no slide, unlike route changes). The header keeps its own
   transition name for route changes; here it stays part of the page, or it would be drawn above the open directory. */
html[data-vt-dir="theme"] .site-header { view-transition-name: none !important; }
@media (prefers-reduced-motion: no-preference) {
  :root[data-vt-dir=theme]::view-transition-old(root) { animation: none; }
  :root[data-vt-dir=theme]::view-transition-new(root) { animation: luliy-theme-in var(--dur-base) var(--ease-soft) both; }
}
@keyframes luliy-theme-in { from { opacity: 0; } }

/* ---- Music player bar (home-fixes.js block 15; after the Rockstar GTA VI music page) ----
   The selectors start with html body .lr-mini.lm-mini.lm-bar (the mini player in bar mode) to outrank the old card rules. Colours come from the theme tokens, so every appearance and palette gets its
   own bar: the raised surface with a little accent, ink for text and the active state, a lighter row for lists. */
html.lm-bar-mode {
  --lm-bar-h: 69px;
  --lm-bar-gap: max(14px, env(safe-area-inset-bottom));
  --lm-bar-space: calc(var(--lm-bar-h) + var(--lm-bar-gap));
  /* The Drive script measures the old card into this; the reader's offsets read it. The bar has one height. */
  --media-card-height: var(--lm-bar-h) !important;
}
html body .lr-mini.lm-mini.lm-bar {
  --bar-bg: color-mix(in oklab, var(--raised) 84%, var(--accent));
  --bar-ink: var(--ink);
  --bar-muted: color-mix(in oklab, var(--ink) 64%, var(--bar-bg));
  --bar-hover: color-mix(in oklab, var(--ink) 11%, transparent);
  --bar-row: color-mix(in oklab, var(--ink) 7%, var(--bar-bg));
  --bar-row-hover: color-mix(in oklab, var(--ink) 13%, var(--bar-bg));
  --bar-track: color-mix(in oklab, var(--ink) 24%, transparent);
  --bar-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 8%, transparent), 0 14px 44px rgb(0 0 0 / .3);
  --lm-fill: var(--lm-seek, calc((1 - var(--lr-ring, 113.1) / 113.1) * 100%));
  position: fixed !important;
  inset: auto max(14px, env(safe-area-inset-right)) var(--lm-bar-gap) max(14px, env(safe-area-inset-left)) !important;
  width: auto !important; max-width: none !important; min-height: 0 !important; height: auto;
  margin: 0 !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  gap: 0 21.6px;
  padding: 7.5px;
  border: 0 !important;
  border-radius: 16px;
  background: var(--bar-bg);
  color: var(--bar-ink);
  box-shadow: var(--bar-shadow);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  font-family: var(--font-ui);
  cursor: default;
  z-index: 90;
  overflow: visible;
  animation: lm-bar-in .5s var(--ease) backwards; /* not `both`: a filled opacity animation would stop the panels' backdrop blur */
}
html body .lr-mini.lm-mini.lm-bar[hidden] { display: none !important; }
html body .lr-mini.lm-mini.lm-bar > :is(.lm-mini-head, .lm-mini-tools, .lm-bar-grip, .reader-music-collapse),
html body .lr-mini.lm-mini.lm-bar :is(.lm-volume-panel, .lr-mini-ring) { display: none !important; }
html body .lr-mini.lm-mini.lm-bar :is(button, a, input, [role="slider"]):focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
html body .lr-mini.lm-mini.lm-bar svg { display: block; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
html body .lr-mini.lm-mini.lm-bar svg.lm-fill { fill: currentColor; stroke: none; }

/* Left: cover, title, then a badge (playing / paused / loading) and the artist. Opens the records page. */
html body .lr-mini.lm-mini.lm-bar .lr-mini-open {
  display: flex !important; align-items: center; gap: 10.8px;
  width: 100% !important; min-width: 0 !important; flex: none !important;
  margin: 0; padding: 0; border: 0; border-radius: 12.6px; background: none; color: inherit;
  text-align: left; cursor: pointer; touch-action: manipulation; overflow: visible;
}
html body .lr-mini.lm-mini.lm-bar .lr-mini-cover {
  display: block; flex: 0 0 54px; width: 54px; height: 54px; overflow: hidden;
  border-radius: 12.6px; container-type: inline-size; transition: border-radius var(--dur-base) var(--ease);
}
html body .lr-mini.lm-mini.lm-bar .lr-mini-cover > :is(.lr-cover, img, .lr-private-artwork) { width: 100%; height: 100%; }
html body .lr-mini.lm-mini.lm-bar .lr-mini-copy {
  display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "t t" "b s";
  align-items: center; justify-items: start; gap: 6px 7px; min-width: 0; flex: 1 1 auto;
}
html body .lr-mini.lm-mini.lm-bar .lr-mini-title {
  grid-area: t; max-width: 100%; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 700 12.6px/1.25 var(--font-ui); letter-spacing: .02em; text-transform: uppercase; color: var(--bar-ink);
}
html body .lr-mini.lm-mini.lm-bar .lr-mini-caption {
  grid-area: b; position: static !important; width: auto !important; height: auto !important; clip-path: none !important;
  overflow: visible; white-space: nowrap; padding: 3px 5px 2px; border: 1px solid color-mix(in oklab, var(--bar-ink) 55%, transparent);
  border-radius: 4px; font: 700 9.5px/1.1 var(--font-ui); letter-spacing: .08em; text-transform: uppercase; color: var(--bar-ink);
}
html body .lr-mini.lm-mini.lm-bar .lm-mini-creator, html body .lr-mini.lm-mini.lm-bar .lr-mini-copy::after {
  grid-area: s; max-width: 100%; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 500 12.6px/1.25 var(--font-ui); color: var(--bar-muted);
}
html body .lr-mini.lm-mini.lm-bar .lr-mini-copy:has(> .lm-mini-creator[hidden])::after { content: "Luliy Records"; }

/* Centre: previous / play / next over the progress line. */
html body .lr-mini.lm-mini.lm-bar .lm-bar-center { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; width: 100%; }
html body .lr-mini.lm-mini.lm-bar .lr-mini-controls { display: flex !important; align-items: center; justify-content: center; gap: 9px; margin: 0 !important; padding: 0 !important; }
html body .lr-mini.lm-mini.lm-bar .lr-mini-controls button {
  display: grid; place-items: center; flex: none !important; width: 36px !important; height: 36px !important; min-height: 0; margin: 0; padding: 0 !important;
  border: 0; border-radius: 50%; background: transparent; color: var(--bar-ink) !important; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-in-out), color var(--dur-fast) var(--ease-in-out), scale var(--dur-fast) var(--ease);
}
@media (hover: hover) { html body .lr-mini.lm-mini.lm-bar .lr-mini-controls button:hover { background: var(--bar-hover); } }
html body .lr-mini.lm-mini.lm-bar .lr-mini-controls svg { width: 14px; height: 14px; fill: currentColor; stroke-width: 2; }
html body .lr-mini.lm-mini.lm-bar .lr-mini-controls .lr-mini-play { background: var(--bar-ink); color: var(--bar-bg) !important; }
@media (hover: hover) { html body .lr-mini.lm-mini.lm-bar .lr-mini-controls .lr-mini-play:hover { background: var(--bar-ink); scale: 1.06; } }
html body .lr-mini.lm-mini.lm-bar .lr-mini-controls .lr-mini-play svg { width: 13px; height: 13px; }
html body .lr-mini.lm-mini.lm-bar .lr-mini-controls .lr-mini-play.is-playing svg { stroke-width: 3.4; }
html body .lr-mini.lm-mini.lm-bar .lr-mini-progress {
  display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14.4px;
  width: 100% !important; margin: 0; padding: 0 !important; grid-column: auto !important;
  font: 700 10.8px/1 var(--font-ui); font-family: var(--font-ui) !important; letter-spacing: .075em; font-variant-numeric: tabular-nums; color: var(--bar-ink) !important;
}
html body .lr-mini.lm-mini.lm-bar :is(.lr-mini-elapsed, .lr-mini-duration) { min-width: 3.4em; }
html body .lr-mini.lm-mini.lm-bar .lr-mini-elapsed { text-align: right; }
html body .lr-mini.lm-mini.lm-bar .lr-mini-duration { text-align: left; }
html body .lr-mini.lm-mini.lm-bar .lr-mini-seek {
  -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; height: 16px !important; margin: 0;
  background: transparent; cursor: pointer; accent-color: var(--bar-ink);
}
html body .lr-mini.lm-mini.lm-bar .lr-mini-seek::-webkit-slider-runnable-track {
  height: 4px; border-radius: 99px;
  background: linear-gradient(var(--bar-ink), var(--bar-ink)) 0 0 / var(--lm-fill) 100% no-repeat, var(--bar-track);
}
html body .lr-mini.lm-mini.lm-bar .lr-mini-seek::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 12px !important; height: 12px !important; margin-top: -4px; border: 0; border-radius: 50%;
  background: var(--bar-ink); opacity: 0; transition: opacity var(--dur-fast) var(--ease-in-out);
}
html body .lr-mini.lm-mini.lm-bar .lr-mini-seek:is(:hover, :focus-visible, :active)::-webkit-slider-thumb { opacity: 1; }
html body .lr-mini.lm-mini.lm-bar .lr-mini-seek::-moz-range-track { height: 4px; border-radius: 99px; background: var(--bar-track); }
html body .lr-mini.lm-mini.lm-bar .lr-mini-seek::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--bar-ink); }
html body .lr-mini.lm-mini.lm-bar .lr-mini-seek::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--bar-ink); opacity: 0; }
html body .lr-mini.lm-mini.lm-bar .lr-mini-seek:is(:hover, :focus-visible, :active)::-moz-range-thumb { opacity: 1; }
html body .lr-mini.lm-mini.lm-bar .lr-mini-seek:disabled { opacity: .45; cursor: default; }

/* Right: volume, queue, share, close. Open popover = pale button. */
html body .lr-mini.lm-mini.lm-bar .lm-bar-right { display: flex; align-items: center; justify-content: flex-end; gap: 9px; min-width: 0; }
html body .lr-mini.lm-mini.lm-bar :is(.lm-bar-right, .lm-bar-vol) > button {
  display: grid; place-items: center; flex: none; width: 43px !important; height: 43px !important; min-height: 0; margin: 0 !important; padding: 0 !important;
  border: 0; border-radius: 16px; background: transparent; color: var(--bar-ink) !important; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-in-out), color var(--dur-fast) var(--ease-in-out);
}
@media (hover: hover) { html body .lr-mini.lm-mini.lm-bar :is(.lm-bar-right, .lm-bar-vol) > button:hover { background: var(--bar-hover); } }
html body .lr-mini.lm-mini.lm-bar :is(.lm-bar-right, .lm-bar-vol) > button[aria-expanded="true"],
html body .lr-mini.lm-mini.lm-bar .lm-bar-vol.is-open > button { background: var(--bar-ink); color: var(--bar-bg) !important; }
html body .lr-mini.lm-mini.lm-bar .lm-bar-right > .lr-mini-close { width: 50px !important; height: 50px !important; border-radius: 50%; }
html body .lr-mini.lm-mini.lm-bar .lm-bar-right > .lr-mini-close svg { width: 20px; height: 20px; }

/* Volume: a vertical pill above the button (hover, keyboard focus, or a tap on touch screens). */
html body .lr-mini.lm-mini.lm-bar .lm-bar-vol { position: relative; display: grid; }
html body .lr-mini.lm-mini.lm-bar .lm-bar-vol-pop {
  position: absolute; left: 50%; bottom: calc(100% + 18px); width: 47px; height: 173px; margin-left: -23.5px; box-sizing: border-box;
  padding: 21px 0; display: flex; justify-content: center; border-radius: 999px; background: var(--bar-bg); box-shadow: var(--bar-shadow);
  cursor: pointer; touch-action: none; outline-offset: 3px;
  opacity: 0; visibility: hidden; translate: 0 6px;
  transition: opacity var(--dur-fast) var(--ease-in-out), translate var(--dur-fast) var(--ease), visibility 0s linear var(--dur-fast);
}
html body .lr-mini.lm-mini.lm-bar .lm-bar-vol-pop::after { content: ""; position: absolute; left: -6px; right: -6px; top: 100%; height: 22px; }
@media (hover: hover) and (pointer: fine) { html body .lr-mini.lm-mini.lm-bar .lm-bar-vol:hover > .lm-bar-vol-pop { opacity: 1; visibility: visible; translate: none; transition-delay: 0s; } }
html body .lr-mini.lm-mini.lm-bar .lm-bar-vol:is(.is-open, .is-dragging, :has(:focus-visible)) > .lm-bar-vol-pop { opacity: 1; visibility: visible; translate: none; transition-delay: 0s; }
html body .lr-mini.lm-mini.lm-bar .lm-bar-vol-track { position: relative; width: 4px; height: 100%; border-radius: 99px; background: var(--bar-track); }
html body .lr-mini.lm-mini.lm-bar .lm-bar-vol-fill { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--lm-vol, 1) * 100%); border-radius: inherit; background: var(--bar-ink); }
html body .lr-mini.lm-mini.lm-bar .lm-bar-vol-fill::after { content: ""; position: absolute; left: 50%; top: 0; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--bar-ink); }

/* Popovers above the bar's right end: the queue (the Drive script's panel) and share. */
html body .lr-mini.lm-mini.lm-bar :is(.lm-mini-panel, .lm-bar-share) {
  position: absolute; z-index: 10; right: 0; bottom: calc(100% + 10px); box-sizing: border-box; margin: 0; border: 0 !important;
  border-radius: 24px; background: color-mix(in oklab, var(--bar-bg) 93%, transparent);
  -webkit-backdrop-filter: blur(45px) saturate(1.2); backdrop-filter: blur(45px) saturate(1.2);
  box-shadow: var(--bar-shadow); color: var(--bar-ink); cursor: default;
  animation: lm-pop-in var(--dur-fast) var(--ease-soft) backwards;
}
html body .lr-mini.lm-mini.lm-bar .lm-mini-panel {
  width: min(374px, calc(100vw - 28px)); max-height: min(497px, calc(100dvh - var(--lm-bar-space) - 26px)) !important;
  display: flex !important; flex-direction: column; gap: 0 !important; padding: 0 !important; overflow: hidden !important; grid-column: auto !important;
}
html body .lr-mini.lm-mini.lm-bar :is(.lm-mini-panel, .lm-bar-share)[hidden] { display: none !important; }
html body .lr-mini.lm-mini.lm-bar :is(.lm-bar-panel-head, .lm-bar-pop-head) { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: none; }
html body .lr-mini.lm-mini.lm-bar .lm-bar-panel-head { padding: 14px 10px 10px 21.6px; }
html body .lr-mini.lm-mini.lm-bar :is(.lm-bar-panel-head, .lm-bar-pop-head) h2 { margin: 0; font: 500 21.6px/1.2 var(--font-ui); letter-spacing: 0; color: var(--bar-ink); }
html body .lr-mini.lm-mini.lm-bar .lm-bar-x {
  display: grid; place-items: center; width: 50px; height: 50px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--bar-ink) !important; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-in-out);
}
@media (hover: hover) { html body .lr-mini.lm-mini.lm-bar .lm-bar-x:hover { background: var(--bar-hover); } }
html body .lr-mini.lm-mini.lm-bar .lm-mini-queue {
  display: grid !important; align-content: start; gap: 4px !important; flex: 1 1 auto; min-height: 0;
  padding: 0 21.6px 21.6px; overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
html body .lr-mini.lm-mini.lm-bar .lm-mini-queue[hidden] { display: none !important; }
html body .lr-mini.lm-mini.lm-bar .lm-mini-queue > * { min-width: 0; }
html body .lr-mini.lm-mini.lm-bar .lm-queue-track {
  display: flex !important; align-items: center; gap: 12px; width: 100%; min-height: 61px; box-sizing: border-box;
  padding: 10.8px 21.6px 10.8px 10.8px !important; border: 0; border-radius: 12px; background: var(--bar-row) !important;
  color: var(--bar-ink) !important; text-align: left; font: inherit; cursor: pointer;
  transition: background-color var(--dur-base) var(--ease-in-out), color var(--dur-base) var(--ease-in-out);
}
@media (hover: hover) { html body .lr-mini.lm-mini.lm-bar .lm-queue-track:hover { background: var(--bar-row-hover) !important; } }
html body .lr-mini.lm-mini.lm-bar .lm-queue-track[aria-current="true"] { background: var(--bar-ink) !important; color: var(--bar-bg) !important; }
html body .lr-mini.lm-mini.lm-bar .lm-queue-cover { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 4px; overflow: hidden; }
html body .lr-mini.lm-mini.lm-bar .lm-queue-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
html body .lr-mini.lm-mini.lm-bar .lm-queue-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 14.4px/1.3 var(--font-ui); }
html body .lr-mini.lm-mini.lm-bar .lm-queue-artist { display: block !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 12.6px/1.3 var(--font-ui); color: var(--bar-muted); }
html body .lr-mini.lm-mini.lm-bar .lm-queue-artist:empty::before { content: "Luliy Records"; }
html body .lr-mini.lm-mini.lm-bar .lm-queue-track[aria-current="true"] .lm-queue-artist { color: color-mix(in oklab, var(--bar-bg) 72%, var(--bar-ink)); }
/* The playing row gets a five-bar equalizer (moves while playing, rests when paused). */
html body .lr-mini.lm-mini.lm-bar .lm-queue-state { flex: none; font-size: 0 !important; width: 0; }
html body .lr-mini.lm-mini.lm-bar .lm-queue-track[aria-current="true"] .lm-queue-state {
  width: 19px; height: 16px; color: transparent;
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 3px 35% no-repeat,
    linear-gradient(currentColor, currentColor) 4px 100% / 3px 70% no-repeat,
    linear-gradient(currentColor, currentColor) 8px 100% / 3px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 12px 100% / 3px 55% no-repeat,
    linear-gradient(currentColor, currentColor) 16px 100% / 3px 25% no-repeat;
  color: var(--bar-bg);
  animation: lm-eq 1.1s var(--ease-in-out) infinite paused;
}
html body .lr-mini.lm-mini.lm-bar.lm-playing .lm-queue-track[aria-current="true"] .lm-queue-state { animation-play-state: running; }
html body .lr-mini.lm-mini.lm-bar[data-error="true"] .lm-queue-track[aria-current="true"] .lm-queue-state { background: none; animation: none; width: auto; font-size: 14px !important; color: inherit; }
@keyframes lm-eq {
  0%, 100% { background-size: 3px 35%, 3px 70%, 3px 100%, 3px 55%, 3px 25%; }
  20% { background-size: 3px 80%, 3px 40%, 3px 60%, 3px 95%, 3px 50%; }
  40% { background-size: 3px 50%, 3px 95%, 3px 30%, 3px 60%, 3px 85%; }
  60% { background-size: 3px 95%, 3px 55%, 3px 80%, 3px 30%, 3px 60%; }
  80% { background-size: 3px 30%, 3px 85%, 3px 50%, 3px 75%, 3px 35%; }
}
/* Playback settings (favourite, order, sleep timer) as the queue's footer. */
html body .lr-mini.lm-mini.lm-bar .lm-mini-panel > .lm-mini-settings {
  display: flex !important; flex-wrap: wrap; align-items: center; gap: 8px; flex: none; width: auto !important;
  padding: 12px 21.6px 18px; border-top: 1px solid color-mix(in oklab, var(--bar-ink) 10%, transparent);
}
html body .lr-mini.lm-mini.lm-bar .lm-mini-settings > :is(button, select) {
  width: auto !important; height: 32px; margin: 0; padding: 0 12px !important; border: 0 !important; border-radius: 999px !important;
  background-color: var(--bar-row) !important; color: var(--bar-ink) !important; font: 500 12.6px/1 var(--font-ui) !important;
  text-align: center; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-in-out), color var(--dur-fast) var(--ease-in-out);
}
@media (hover: hover) { html body .lr-mini.lm-mini.lm-bar .lm-mini-settings > :is(button, select):hover { background-color: var(--bar-row-hover) !important; } }
html body .lr-mini.lm-mini.lm-bar .lm-mini-settings > button[aria-pressed="true"] { background-color: var(--bar-ink) !important; color: var(--bar-bg) !important; }
html body .lr-mini.lm-mini.lm-bar .lm-mini-settings > button:disabled { opacity: .45; cursor: default; }
html body .lr-mini.lm-mini.lm-bar .lm-mini-settings > select {
  -webkit-appearance: none; appearance: none; padding-right: 28px !important;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%) !important;
  background-position: calc(100% - 16px) 54%, calc(100% - 11.5px) 54% !important; background-size: 4.5px 4.5px !important; background-repeat: no-repeat !important;
}
html body .lr-mini.lm-mini.lm-bar .lm-mini-settings option { background: var(--raised); color: var(--ink); }
html body .lr-mini.lm-mini.lm-bar .lm-timer-status { font: 500 11.5px/1.3 var(--font-ui); color: var(--bar-muted); }
html body .lr-mini.lm-mini.lm-bar .lm-timer-status:empty { display: none; }
/* Share: round buttons, then the link with a copy button. */
html body .lr-mini.lm-mini.lm-bar .lm-bar-share { box-sizing: border-box; width: min(320px, calc(100vw - 28px)); display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 21.6px 21.6px; }
html body .lr-mini.lm-mini.lm-bar .lm-bar-pop-head { padding: 14px 0 0; margin-right: -12px; }
html body .lr-mini.lm-mini.lm-bar .lm-bar-share-icons { display: flex; flex-wrap: wrap; gap: 10px; }
html body .lr-mini.lm-mini.lm-bar .lm-bar-share-icons > * {
  display: grid; place-items: center; width: 47px; height: 47px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  background: var(--bar-row); color: var(--bar-ink); text-decoration: none; cursor: pointer; transition: background-color var(--dur-fast) var(--ease-in-out);
}
@media (hover: hover) { html body .lr-mini.lm-mini.lm-bar .lm-bar-share-icons > *:hover { background: var(--bar-row-hover); } }
html body .lr-mini.lm-mini.lm-bar .lm-bar-share-url {
  display: flex; align-items: center; gap: 4px; height: 47px; padding: 0 5px 0 14px; border-radius: 12px;
  background: color-mix(in oklab, var(--bg) 45%, var(--bar-bg));
}
html body .lr-mini.lm-mini.lm-bar .lm-bar-share-url input {
  flex: 1 1 0; width: 0; min-width: 0; height: 100%; margin: 0; padding: 0; border: 0; background: none; outline: none;
  color: var(--bar-ink); font: 500 13px/1 var(--font-ui); text-overflow: ellipsis;
}
html body .lr-mini.lm-mini.lm-bar .lm-bar-copy {
  display: grid; place-items: center; flex: none; width: 38px; height: 38px; margin: 0; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--bar-ink); cursor: pointer; transition: background-color var(--dur-fast) var(--ease-in-out);
}
@media (hover: hover) { html body .lr-mini.lm-mini.lm-bar .lm-bar-copy:hover { background: var(--bar-hover); } }
html body .lr-mini.lm-mini.lm-bar .lm-bar-copy.is-done { background: var(--bar-hover); }
html body .lr-mini.lm-mini.lm-bar .lm-bar-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* A track that cannot play: a small note above the bar's left end. */
html body .lr-mini.lm-mini.lm-bar .lm-mini-error {
  position: absolute; left: 0; bottom: calc(100% + 10px); display: flex; align-items: center; gap: 6px;
  padding: 7px 7px 7px 14px; border-radius: 14px; background: var(--bar-bg); box-shadow: var(--bar-shadow);
  font: 500 12.6px/1.2 var(--font-ui); color: var(--bar-ink);
}
html body .lr-mini.lm-mini.lm-bar .lm-mini-error button { padding: 7px 11px; border: 0; border-radius: 999px; background: var(--bar-row); color: var(--bar-ink); font: inherit; cursor: pointer; }
@keyframes lm-bar-in { from { opacity: 0; translate: 0 16px; } }
@keyframes lm-pop-in { from { opacity: 0; translate: 0 6px; } }

/* The reader's floating buttons and the footer stay above the bar. */
html.lm-bar-mode body.lm-player-visible .contact-curtain .contact-inner { padding-bottom: calc(var(--lm-bar-space) + 8px); }
/* Phones: the short contact curtain grows by the bar, so its small print is not pushed under it. */
@media (max-width: 700px) { html.lm-bar-mode body.lm-player-visible { --footer-h: min(calc(388px + var(--lm-bar-space)), 92svh); } }
html.lm-bar-mode body.lm-player-visible #main .reader-back-top { bottom: calc(var(--lm-bar-space) + 14px) !important; }

/* Phones: a compact bar (cover with play/pause, title, ×) with the progress along its top edge. */
/* Touch screens: like the rest of the site, no backdrop blur here (it stutters while scrolling); a solid surface instead. */
@media (pointer: coarse) {
  html body .lr-mini.lm-mini.lm-bar :is(.lm-mini-panel, .lm-bar-share) { background: var(--bar-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  html.lm-bar-mode { --lm-bar-h: 71px; --lm-bar-gap: max(10px, env(safe-area-inset-bottom)); }
  html body .lr-mini.lm-mini.lm-bar:not(.lm-expanded) {
    inset: auto max(10px, env(safe-area-inset-right)) var(--lm-bar-gap) max(10px, env(safe-area-inset-left)) !important;
    grid-template-columns: minmax(0, 1fr) auto; gap: 0 6px; padding: 8px;
  }
  html body .lr-mini.lm-mini.lm-bar:not(.lm-expanded)::before {
    content: ""; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 0 0 3px 3px; pointer-events: none;
    background: linear-gradient(var(--bar-ink), var(--bar-ink)) 0 0 / var(--lm-fill) 100% no-repeat, var(--bar-track);
  }
  html body .lr-mini.lm-mini.lm-bar:not(.lm-expanded) .lr-mini-cover { flex-basis: 55px; width: 55px; height: 55px; border-radius: 11.7px; }
  html body .lr-mini.lm-mini.lm-bar:not(.lm-expanded) .lr-mini-open { padding-right: 4px; }
  html body .lr-mini.lm-mini.lm-bar:not(.lm-expanded) .lr-mini-title { font-size: 13.5px; }
  html body .lr-mini.lm-mini.lm-bar:not(.lm-expanded) .lm-mini-creator, html body .lr-mini.lm-mini.lm-bar:not(.lm-expanded) .lr-mini-copy::after { font-size: 13px; }
  html body .lr-mini.lm-mini.lm-bar:not(.lm-expanded) :is(.lm-bar-center, .lr-mini-controls, .lm-bar-right) { display: contents !important; }
  html body .lr-mini.lm-mini.lm-bar:not(.lm-expanded) :is(.lr-mini-skip, .lr-mini-progress, .lm-bar-vol, .lm-bar-right > [data-lm-list], .lm-bar-share-btn, .lm-mini-panel, .lm-bar-share) { display: none !important; }
  html body .lr-mini.lm-mini.lm-bar:not(.lm-expanded) .lr-mini-controls .lr-mini-play {
    position: absolute; left: 8px; top: 8px; z-index: 1; width: 55px !important; height: 55px !important; border-radius: 11.7px;
    background: rgb(0 0 0 / .28); color: #fff !important; scale: none;
  }
  html body .lr-mini.lm-mini.lm-bar:not(.lm-expanded) .lr-mini-controls .lr-mini-play svg { width: 20px; height: 20px; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .35)); }
  html body .lr-mini.lm-mini.lm-bar:not(.lm-expanded) .lm-bar-right > .lr-mini-close { width: 55px !important; height: 55px !important; }
  html body .lr-mini.lm-mini.lm-bar .lm-mini-error { left: 0; right: 0; bottom: calc(100% + 8px); }

  /* The sheet. */
  html body .lr-mini.lm-mini.lm-bar.lm-expanded {
    inset: max(44px, calc(env(safe-area-inset-top) + 28px)) 0 0 0 !important;
    z-index: 1001; display: flex !important; flex-direction: column; justify-content: flex-end; gap: 0;
    padding: 34px 24px calc(18px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0;
    overflow: hidden auto; overscroll-behavior: contain; animation: none;
    box-shadow: 0 -10px 50px rgb(0 0 0 / .35);
  }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded > .lm-bar-grip {
    display: block !important; position: absolute; top: 0; left: 50%; width: 96px; height: 30px; margin: 0 0 0 -48px; padding: 0;
    border: 0; background: none; cursor: pointer;
  }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded > .lm-bar-grip::before {
    content: ""; position: absolute; left: 50%; top: 12px; width: 38px; height: 4px; margin-left: -19px; border-radius: 99px;
    background: color-mix(in oklab, var(--bar-ink) 34%, transparent);
  }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-open { flex: 1 1 auto; flex-direction: column; justify-content: center; gap: 24px; min-height: 0; text-align: center; border-radius: 16px; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-cover { flex: none; width: min(100%, 42dvh, 380px); height: auto; aspect-ratio: 1; border-radius: 16px; box-shadow: 0 18px 40px rgb(0 0 0 / .28); }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-copy { flex: none; width: 100%; grid-template-columns: auto auto; justify-content: center; justify-items: center; gap: 10px 8px; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-title { justify-self: center; font-size: 17px; letter-spacing: .03em; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-caption { font-size: 10px; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-mini-creator, html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-copy::after { font-size: 15px; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-bar-center { gap: 18px; margin-top: 26px; flex: none; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-progress { order: -1; gap: 16px; font-size: 13px; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-controls { gap: 22px; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-controls .lr-mini-skip { width: 64px !important; height: 64px !important; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-controls .lr-mini-skip svg { width: 24px; height: 24px; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-controls .lr-mini-play { width: 76px !important; height: 76px !important; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-controls .lr-mini-play svg { width: 26px; height: 26px; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-bar-right { justify-content: space-around; margin-top: 20px; flex: none; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded :is(.lm-bar-right, .lm-bar-vol) > button { width: 47px !important; height: 47px !important; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-bar-right > .lr-mini-close { display: none !important; }
  /* Over the sheet's own controls a see-through layer only muddles them: these are solid. */
  html body .lr-mini.lm-mini.lm-bar.lm-expanded :is(.lm-mini-panel, .lm-bar-share) { background: var(--bar-bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-mini-panel { inset: 0; width: auto; max-height: none !important; border-radius: 24px 24px 0 0; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-mini-panel > .lm-mini-settings { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-bar-share { left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); width: auto; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-bar-vol-pop { bottom: calc(100% + 12px); }
  .lm-bar-scrim { position: fixed; inset: 0; z-index: 1000; background: rgb(0 0 0 / .5); }
  html.lm-sheet-open, html.lm-sheet-open body { overflow: hidden !important; overscroll-behavior: none; }

  /* Reader buttons step up to sit above the compact bar. */
  html.lm-bar-mode body.lm-player-visible #main .reader-back-top { bottom: calc(var(--lm-bar-space) + 12px) !important; }
  html.lm-bar-mode body.lm-player-visible :is(.reader-toc-toggle, #main .reader-toc-toggle) { bottom: calc(var(--lm-bar-space) + 12px + 56px) !important; }
  html.lm-bar-mode body.lm-player-visible #main :is(.source-toc, .article-toc) {
    bottom: calc(var(--lm-bar-space) + 12px + 108px) !important;
    max-height: max(100px, calc(100dvh - var(--lm-bar-space) - 200px)) !important;
  }
}
@media (pointer: coarse) and (max-height: 500px) {
  html body .lr-mini.lm-mini.lm-bar.lm-expanded { padding-top: 26px; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-open { gap: 12px; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-cover { width: min(100%, 30dvh); }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-bar-center { margin-top: 12px; gap: 8px; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-controls .lr-mini-skip { width: 52px !important; height: 52px !important; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-controls .lr-mini-play { width: 60px !important; height: 60px !important; }
  html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-bar-right { margin-top: 8px; }
}
.lm-bar-scrim[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  html body .lr-mini.lm-mini.lm-bar, html body .lr-mini.lm-mini.lm-bar * { animation: none !important; transition: none !important; }
}

/* ---------------------------------------------------------------------------------------------
   Directory tidy (2026-10)
   - About portrait: a transparent cut-out (runtime-fixes.py), so each appearance shows its own
     colour behind it. It is placed absolutely: as a grid item next to the hidden "LULIY" label its
     percentage height resolved differently per browser, which on iPhones left the figure small and
     low. Phones show head and shoulders from the top of the picture; larger screens keep the earlier
     framing. The fade sits where the picture is cut off.
   - The small caption under the picture (THE STUDY · 01 / 05 …) is gone on every screen.
   - The vertical verse is outlined in the text colour (it relied on the black photo behind it).
   - Other: the RSS item's label was hidden together with the external-link arrows, leaving an empty row.
   - Works: the four newest titles (runtime-fixes.py) stay on one line each.
   --------------------------------------------------------------------------------------------- */
#directory .preview-about > span { display: none; }
#directory .preview-about #directoryPortrait {
  position: absolute; left: 5%; top: 8%; width: 90%; height: 99%; margin: 0;
  object-fit: contain; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(#000 78%, transparent 92%); mask-image: linear-gradient(#000 78%, transparent 92%);
}
@media (max-width: 700px) {
  #directory .preview-about #directoryPortrait {
    left: 0; top: 4%; width: 100%; height: 190%;
    -webkit-mask-image: linear-gradient(#000 36%, transparent 50%); mask-image: linear-gradient(#000 36%, transparent 50%);
  }
}
/* The verse beside the portrait was outlined in cream on the black photo; with no box behind it the outline
   follows the text colour, so it also reads on the light appearance. */
#directory .preview-about .about-traditional-verse {
  -webkit-text-stroke-color: var(--ink);
  text-shadow: 1px 0 var(--ink), -1px 0 var(--ink), 0 1px var(--ink), 0 -1px var(--ink);
}
#directory #directoryCaption { display: none; }
#directory .directory-other-options a.directory-rss > span[data-rss-label] { display: inline; font-size: inherit; color: inherit; }
#directory .directory-other-options > .directory-other-divider:last-child { display: none; }
#directory .preview-projects .preview-project-list { white-space: nowrap; }
@media (min-width: 701px) {
  /* The list takes the big italic label size (5vw); a little smaller so the longest title fits beside the portrait. */
  #directory .preview-projects .preview-project-list { font-size: clamp(28px, 4.2vw, 64px); }
}

/* Brand mark (the L of LULIY): a pensive figure in gold. Leaves drift off her back, sparkles twinkle,
   the light behind her head breathes, and a sheen crosses the figure every 8 s. Still with reduced motion or calm mode. */
.ll .ll-lf,.ll .ll-sp,.ll .ll-dt,.ll .ll-hl{transform-box:fill-box;transform-origin:center}
.ll .ll-sp{fill:#fbeac0}.ll .ll-dt{fill:#f8e4b0}
.ll .ll-lf{opacity:0;animation:ll-drift 8s var(--ease-in-out) infinite}
.ll .ll-l1{--sx:4px;--sy:-3px;--ex:-5px;--ey:4px;--r0:25deg;--r1:-40deg}
.ll .ll-l2{--sx:4px;--sy:-4px;--ex:-6px;--ey:5px;--r0:30deg;--r1:-50deg;animation-delay:-2.6s}
.ll .ll-l3{--sx:5px;--sy:-5px;--ex:-5px;--ey:4px;--r0:35deg;--r1:-35deg;animation-delay:-5.2s}
.ll .ll-l4{--sx:3px;--sy:-3px;--ex:-5px;--ey:5px;--r0:20deg;--r1:-70deg;animation-delay:-1.3s}
.ll .ll-l5{--sx:4px;--sy:-5px;--ex:-4px;--ey:4px;--r0:30deg;--r1:-45deg;animation-delay:-6.4s}
.ll .ll-sp{animation:ll-twinkle 4s var(--ease-in-out) infinite}
.ll .ll-s2{animation-delay:-1.4s}.ll .ll-s3{animation-delay:-2.7s}
.ll .ll-dt{animation:ll-mote 8s var(--ease-in-out) infinite}
.ll .ll-d2{animation-delay:-1.1s}.ll .ll-d3{animation-delay:-2.3s}.ll .ll-d4{animation-delay:-3.6s}.ll .ll-d5{animation-delay:-4.8s}.ll .ll-d6{animation-delay:-6.1s}
.ll .ll-hl{animation:ll-halo 4s var(--ease-in-out) infinite}
.ll .ll-sh{transform:translateX(-24px);animation:ll-sheen 8s cubic-bezier(.45,.05,.35,1) infinite}
@keyframes ll-drift{0%{opacity:0;transform:translate(var(--sx),var(--sy)) rotate(var(--r0))}18%,62%{opacity:1}100%{opacity:0;transform:translate(var(--ex),var(--ey)) rotate(var(--r1))}}
@keyframes ll-twinkle{0%,100%{opacity:.2;transform:scale(.35) rotate(-15deg)}50%{opacity:1;transform:scale(1) rotate(15deg)}}
@keyframes ll-mote{0%{opacity:0;transform:translate(1.5px,-1px)}30%,55%{opacity:1}100%{opacity:0;transform:translate(-2.5px,2px)}}
@keyframes ll-halo{0%,100%{opacity:.65;transform:scale(.94)}50%{opacity:1;transform:scale(1.04)}}
@keyframes ll-sheen{0%{transform:translateX(-24px)}38%,100%{transform:translateX(70px)}}
@media (prefers-reduced-motion:reduce){.ll *{animation:none!important}.ll .ll-l1,.ll .ll-l2{opacity:1}}
html.luliy-calm .ll *{animation:none!important}html.luliy-calm .ll .ll-l1,html.luliy-calm .ll .ll-l2{opacity:1}
/* Light appearance: deeper gold so the head stays visible on paper; no glow. */
html[data-appearance=light] #luliy-brand-defs #ll-g stop:nth-child(1){stop-color:#d9b874}
html[data-appearance=light] #luliy-brand-defs #ll-g stop:nth-child(2){stop-color:#c39a55}
html[data-appearance=light] #luliy-brand-defs #ll-g stop:nth-child(3){stop-color:#a8803f}
html[data-appearance=light] #luliy-brand-defs #ll-g stop:nth-child(4){stop-color:#8a6630}
html[data-appearance=light] .ll .ll-b{filter:none}html[data-appearance=light] .ll .ll-hl{display:none}
html[data-appearance=light] .ll .ll-sp,html[data-appearance=light] .ll .ll-dt{fill:#b48d4c}
/* Brand on phones (home-fixes.js block 16). Computers keep L mark + ULIY (+ page name) in the header and directory.
   Phones keep L mark + ULIY, with the computer's links, in the directory and in the header on About
   (html.luliy-route-about, home-early.js); elsewhere the phone header shows only the L mark (.luliy-takes):
   a tap goes home, holding it opens GitHub Issues: it shrinks while held and springs back when the half second
   is up; no system long-press menu, selection or drag. While ULIY is hidden its star sits on the mark. */
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  html:not(.luliy-route-about) body #header .brand-group > a.brand { display: none !important; }
  #header .brand-mark.luliy-takes{-webkit-touch-callout:none;-webkit-user-select:none;user-select:none;-webkit-user-drag:none}
  #header .brand-mark.luliy-takes svg{transform-origin:50% 70%;transition:transform var(--dur-fast) var(--ease)}
  #header .brand-mark.luliy-takes.luliy-pressing svg{transform:scale(.88);transition:transform var(--dur-base) linear}
  #header .brand-mark.luliy-takes.luliy-held svg{transform:scale(1.06);transition:transform var(--dur-fast) var(--ease)}
}

/* ---- Phones, study page #/books (home-fixes.js block 18) ----
   The 3D room fills the whole screen (no bands above and below) behind the transparent header, which holds the
   L mark, a "···" in the middle and the directory button. The tools drop down from the header. The music controls
   float at the bottom like the site's music bar: the same theme colours (raised surface with a little accent, ink),
   the same inset and rounded corners, clear of the iPhone home indicator; the room shows around them. */
#header .luliy-header-dots { display: none; }
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  html body.study-single-page #studyRoom { background: transparent; }
  html body.study-single-page #studyRoom::after { display: none !important; }   /* the shade over the old bottom band */
  html body.study-single-page .study-room-stage,
  html body.study-single-page.study-room-immersive .study-room-stage { position: absolute !important; inset: 0 !important; }
  html body.study-single-page #studyRoom .study-room-tools-toggle { display: none !important; }

  html body.study-single-page #header .luliy-header-dots {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: grid; place-items: center;
    width: 48px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 22px; background: transparent; color: var(--ink); cursor: pointer;
    transition: background-color var(--dur-fast) var(--ease-in-out);
  }
  html body.study-single-page #header .luliy-header-dots svg { width: 24px; height: 24px; fill: currentColor; filter: drop-shadow(0 1px 2px rgb(0 0 0 / .35)); }
  html body.study-single-page #header .luliy-header-dots[aria-expanded="true"] { background: color-mix(in oklab, var(--raised) 84%, var(--accent)); }
  html body.study-single-page #header .luliy-header-dots:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
  /* CC draws the room in daylight (it sits on the light theme) under its pale ink: over the room the header's
     icons take a dark ink. The tools and the music bar keep CC's own colours. */
  html[data-appearance=cc] body.study-single-page #header :is(#studyGlobalOpen, .luliy-header-dots) { color: #2b2a40 !important; }
  html[data-appearance=cc] body.study-single-page #header #studyGlobalOpen svg :is(line, path, .menu-line) { stroke: currentColor !important; }
  html[data-appearance=cc] body.study-single-page #header .luliy-header-dots svg { filter: none; }
  html[data-appearance=cc] body.study-single-page #header .luliy-header-dots[aria-expanded="true"] { background: rgb(43 42 64 / .1); }

  html body.study-single-page #studyRoom {
    --bar-bg: color-mix(in oklab, var(--raised) 84%, var(--accent));
    --bar-ink: var(--ink);
    --bar-muted: color-mix(in oklab, var(--ink) 64%, var(--bar-bg));
    --bar-hover: color-mix(in oklab, var(--ink) 11%, transparent);
    --bar-track: color-mix(in oklab, var(--ink) 24%, transparent);
    --bar-shadow: 0 0 0 1px color-mix(in oklab, var(--ink) 8%, transparent), 0 14px 44px rgb(0 0 0 / .3);
  }
  /* The tools, dropped down from the header. */
  html body.study-single-page #studyRoom .study-room-tools {
    position: fixed !important; top: calc(var(--luliy-drop-top, 72px) + 2px) !important; bottom: auto !important; left: 50% !important; right: auto !important;
    translate: -50% 0; transform: none; z-index: 5;
    display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 2px !important;
    width: min(360px, calc(100vw - 20px)) !important; max-height: calc(100dvh - var(--luliy-drop-top, 72px) - 120px); overflow: auto;
    margin: 0 !important; padding: 8px !important; border: 0 !important; border-radius: 16px !important;
    background: var(--bar-bg) !important; color: var(--bar-ink) !important; box-shadow: var(--bar-shadow) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
    transform-origin: 50% 0; animation: luliy-drop var(--dur-fast) var(--ease) both;
  }
  html body.study-single-page #studyRoom .study-room-tools[hidden] { display: none !important; }
  html body.study-single-page #studyRoom .study-room-tools button {
    width: 100% !important; height: 56px !important; min-height: 0 !important; margin: 0 !important; padding: 6px 2px !important;
    border: 0 !important; border-radius: 12px !important; background: transparent !important; color: var(--bar-ink) !important; box-shadow: none !important;
  }
  html body.study-single-page #studyRoom .study-room-tools button:not(.study-room-more) { display: flex !important; }
  html body.study-single-page #studyRoom .study-room-tools button::after { color: var(--bar-ink) !important; opacity: .86; }
  html body.study-single-page #studyRoom .study-room-tools button:is(:active, [aria-pressed="true"]) { background: var(--bar-hover) !important; }
  @media (hover: hover) { html body.study-single-page #studyRoom .study-room-tools button:hover { background: var(--bar-hover) !important; } }

  /* The music controls: a floating bar. */
  html body.study-single-page #studyRoom .study-room-dock {
    top: auto !important; left: max(10px, env(safe-area-inset-left)) !important; right: max(10px, env(safe-area-inset-right)) !important;
    bottom: max(10px, env(safe-area-inset-bottom)) !important; width: auto !important; max-height: none !important; overflow: visible !important;
    display: block !important; margin: 0 !important; padding: 8px 12px 4px !important; border: 0 !important; border-radius: 16px !important;
    background: var(--bar-bg) !important; color: var(--bar-ink) !important; box-shadow: var(--bar-shadow) !important;
    -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  }
  html body.study-single-page #studyRoom .study-room-player {
    display: grid !important; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "track actions volume" "seek seek seek";
    align-items: center; gap: 0 10px; width: 100% !important; margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important;
  }
  html body.study-single-page #studyRoom .study-room-track { grid-area: track; min-width: 0; max-width: none !important; text-align: left; }
  html body.study-single-page #studyRoom .study-room-track strong {
    display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--bar-ink) !important; font: 600 13.5px/1.3 var(--font-ui) !important; letter-spacing: .02em;
  }
  html body.study-single-page #studyRoom .study-room-track small { display: block; color: var(--bar-muted) !important; font: 500 11.5px/1.3 var(--font-ui) !important; letter-spacing: .04em; }
  html body.study-single-page #studyRoom .study-room-player-actions { grid-area: actions; display: flex !important; align-items: center; gap: 4px !important; }
  html body.study-single-page #studyRoom .study-room-player-actions button {
    display: grid !important; place-items: center; width: 36px !important; height: 36px !important; min-height: 0 !important; padding: 0 !important;
    border: 0 !important; border-radius: 50% !important; background: transparent !important; color: var(--bar-ink) !important; box-shadow: none !important;
  }
  html body.study-single-page #studyRoom .study-room-player-actions button svg { width: 16px; height: 16px; }
  html body.study-single-page #studyRoom .study-room-player-actions .study-room-play { width: 40px !important; height: 40px !important; background: var(--bar-ink) !important; color: var(--bar-bg) !important; }
  html body.study-single-page #studyRoom :is(.study-room-seek, .study-room-volume) {
    -webkit-appearance: none; appearance: none; display: block; min-width: 0; height: 22px !important; min-height: 0 !important; margin: 0 !important; padding: 0 !important;
    background: transparent !important; border: 0 !important; cursor: pointer; accent-color: var(--bar-ink);
  }
  html body.study-single-page #studyRoom .study-room-seek { grid-area: seek; width: 100% !important; order: 0 !important; }
  html body.study-single-page #studyRoom .study-room-volume { grid-area: volume; width: 60px !important; }
  html body.study-single-page #studyRoom :is(.study-room-seek, .study-room-volume)::-webkit-slider-runnable-track {
    height: 4px; border: 0; border-radius: 99px; background: linear-gradient(var(--bar-ink), var(--bar-ink)) 0 0 / var(--fill, 0%) 100% no-repeat, var(--bar-track);
  }
  html body.study-single-page #studyRoom :is(.study-room-seek, .study-room-volume)::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 12px; height: 12px; margin-top: -4px; border: 0; border-radius: 50%; background: var(--bar-ink); box-shadow: none;
  }
  html body.study-single-page #studyRoom :is(.study-room-seek, .study-room-volume)::-moz-range-track { height: 4px; border-radius: 99px; background: var(--bar-track); }
  html body.study-single-page #studyRoom :is(.study-room-seek, .study-room-volume)::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--bar-ink); }
  html body.study-single-page #studyRoom :is(.study-room-seek, .study-room-volume)::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--bar-ink); }
  html body.study-single-page #studyRoom .study-room-seek:disabled { opacity: .45; cursor: default; }
}
@keyframes luliy-drop { from { opacity: 0; transform: translateY(-10px) scaleY(.96); } }
@media (prefers-reduced-motion: reduce) { html body.study-single-page #studyRoom .study-room-tools { animation-name: luliy-fade; } }
@keyframes luliy-fade { from { opacity: 0; } }

/* ---- Phones, records page #/music (home-fixes.js block 19; runtime-fixes.py shows two covers on each side) ----
   The cover playing keeps its size; the two on each side come forward and turn less, so more of each shows. */
@media (max-width: 520px) {
  html body .music-page .lr-standalone .lr-arc-shelf .lr-record {
    --lr-x: calc(var(--lr-arc) * .76); --lr-z: calc(var(--lr-depth) * -390px); --lr-turn: calc(var(--lr-arc) * -7deg);
    transform: translate3d(calc(-50% + var(--lr-x) * var(--lr-card)), calc(var(--lr-depth) * -3px), var(--lr-z)) rotateY(var(--lr-turn));
  }
  html body .music-page .lr-standalone .lr-arc-shelf .lr-record[data-arc-offset="1"] { --lr-x: .63; --lr-z: -330px; --lr-turn: -8deg; }
  html body .music-page .lr-standalone .lr-arc-shelf .lr-record[data-arc-offset="-1"] { --lr-x: -.63; --lr-z: -330px; --lr-turn: 8deg; }
  html body .music-page .lr-standalone .lr-arc-shelf .lr-record[data-arc-offset="2"] { --lr-x: 1.49; --lr-z: -770px; --lr-turn: -13deg; }
  html body .music-page .lr-standalone .lr-arc-shelf .lr-record[data-arc-offset="-2"] { --lr-x: -1.49; --lr-z: -770px; --lr-turn: 13deg; }
  /* Only the cover in the middle keeps its name; the others would run under it. */
  html body .music-page .lr-standalone .lr-arc-shelf .lr-record:not([data-arc-offset="0"]) :is(.lr-record-name, .lr-record-info) { opacity: 0; transition: opacity var(--dur-fast) var(--ease-soft); }
}
.lr-standalone .luliy-sleep-badge { display: none; }   /* computers keep the select's own text */
@media (max-width: 700px) {
  /* The sleep timer: the clock only (the select lies over it, invisible), under 上一首; a badge while it runs. */
  html body #main .lr-standalone .lr-meta .lr-sleep-label {
    grid-area: 6 / 2; justify-self: center; position: relative; display: grid; place-items: center; width: 44px; height: 44px; gap: 0; color: var(--muted);
  }
  html body #main .lr-standalone .lr-meta .lr-sleep-label > svg { width: 20px; height: 20px; }
  html body #main .lr-standalone .lr-meta .lr-sleep-label .lr-sleep {
    position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; font-size: 16px; cursor: pointer; -webkit-appearance: none; appearance: none;
  }
  html body #main .lr-standalone .lr-meta .lr-sleep-label.luliy-sleep-on { color: var(--accent); }
  html body #main .lr-standalone .lr-meta .lr-sleep-label:has(.lr-sleep:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: -2px; border-radius: 50%; }
  html body #main .lr-standalone .lr-meta .luliy-sleep-badge {
    display: block; position: absolute; top: 3px; left: calc(50% + 5px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; pointer-events: none;
    background: var(--accent); color: var(--bg); font: 700 10px/17px var(--font-ui); letter-spacing: 0; text-align: center; font-variant-numeric: tabular-nums;
  }
  html body #main .lr-standalone .lr-meta .luliy-sleep-badge:empty { display: none; }
}

/* 唱片 in the header and the cloth it lets down. */
#header .luliy-header-records, #header .luliy-header-articles, .luliy-cloth { display: none; }
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  html body.record-single-page #header .luliy-header-records {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 2px;
    margin: 0; padding: 12px 6px 12px 10px; border: 0; background: none; color: var(--ink); cursor: pointer;
    font: 700 16px/1 var(--font-ui); letter-spacing: .06em; white-space: nowrap;
  }
  html body.record-single-page #header .luliy-header-records svg {
    width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    transition: rotate var(--dur-base) var(--ease);
  }
  html body.record-single-page #header .luliy-header-records[aria-expanded="true"] svg { rotate: 180deg; stroke: var(--accent); }
  html body.record-single-page #header .luliy-header-records:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 10px; }
  /* 文章 in the header (reading page only, home-fixes.js block 20): same button as 唱片. */
  html body.luliy-reading #header .luliy-header-articles {
    position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 2px;
    margin: 0; padding: 12px 6px 12px 10px; border: 0; background: none; color: var(--ink); cursor: pointer;
    font: 700 16px/1 var(--font-ui); letter-spacing: .06em; white-space: nowrap;
  }
  html body.luliy-reading #header .luliy-header-articles svg {
    width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
    transition: rotate var(--dur-base) var(--ease);
  }
  html body.luliy-reading #header .luliy-header-articles[aria-expanded="true"] svg { rotate: 180deg; stroke: var(--accent); }
  html body.luliy-reading #header .luliy-header-articles:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: 2px; border-radius: 10px; }
  /* Records volume: the slider cannot change loudness on a phone (hardware keys only),
     so the whole volume row is hidden on phones. Desktop keeps it. */
  html body #main .lr-volume { display: none !important; }
  html.luliy-cloth-open, html.luliy-cloth-open body { overflow: hidden !important; }
  html.luliy-cloth-open body #header.luliy-washed::before { opacity: 0 !important; }

  html body .luliy-cloth { display: block; position: fixed; inset: 0; z-index: 59; }
  html body .luliy-cloth[hidden] { display: none; }
  html body .luliy-cloth-shade {
    position: absolute; inset: 0; background: rgb(0 0 0 / .42); opacity: 0; transition: opacity var(--dur-base) var(--ease-soft);
  }
  html body .luliy-cloth.is-open .luliy-cloth-shade { opacity: 1; }
  /* The cloth hangs from above the screen (room for the settle), behind the header; the hem is a mask on the
     fabric, so the shadow (on the part that moves) follows the waves. */
  html body .luliy-cloth-hang {
    position: absolute; left: 0; right: 0; top: -40px; filter: drop-shadow(0 8px 12px rgb(0 0 0 / .3));
    transform: translateY(calc(-100% - 24px)); transition: transform var(--dur-base) cubic-bezier(.55, 0, .75, .3);
  }
  html body .luliy-cloth.is-open .luliy-cloth-hang { transform: none; transition: transform var(--dur-slow) cubic-bezier(.2, 1.18, .4, 1); }
  html body .luliy-cloth-fabric {
    --cloth: color-mix(in oklab, var(--raised) 84%, var(--accent));
    --hem: 16px;
    position: relative; display: flex; flex-direction: column;
    height: min(calc(40px + 84dvh), calc(40px + var(--luliy-drop-top, 72px) + 760px));
    padding: calc(40px + var(--luliy-drop-top, 72px)) 0 calc(var(--hem) + 18px);
    background:
      repeating-linear-gradient(90deg, rgb(255 255 255 / .028) 0 1px, transparent 1px 3px),
      repeating-linear-gradient(0deg, rgb(0 0 0 / .03) 0 1px, transparent 1px 3px),
      linear-gradient(90deg, rgb(0 0 0 / .10), rgb(255 255 255 / .05) 14%, rgb(0 0 0 / .05) 30%, rgb(255 255 255 / .06) 49%, rgb(0 0 0 / .06) 67%, rgb(255 255 255 / .05) 84%, rgb(0 0 0 / .10)),
      linear-gradient(transparent 70%, rgb(0 0 0 / .14)),
      var(--cloth);
    color: var(--ink);
    -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--hem) + 1px) no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='16' viewBox='0 0 96 16'%3E%3Cpath d='M0 0H96V3C84 3 84 15 72 15S60 3 48 3 36 15 24 15 12 3 0 3Z'/%3E%3C/svg%3E") var(--hem-x, 0px) 100% / 96px var(--hem) repeat-x;
    mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--hem) + 1px) no-repeat,
      url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='16' viewBox='0 0 96 16'%3E%3Cpath d='M0 0H96V3C84 3 84 15 72 15S60 3 48 3 36 15 24 15 12 3 0 3Z'/%3E%3C/svg%3E") var(--hem-x, 0px) 100% / 96px var(--hem) repeat-x;
  }
  html body .luliy-cloth.is-open .luliy-cloth-fabric { animation: luliy-hem .9s var(--ease) both; }
  html body .luliy-cloth-scroll {
    position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 6px max(18px, env(safe-area-inset-right)) 8px max(18px, env(safe-area-inset-left));
    scrollbar-width: none;
  }
  html body .luliy-cloth-scroll::-webkit-scrollbar { display: none; }
  html body .luliy-cloth-count { margin: 0 2px 14px; color: var(--muted); font: 500 11px/1.4 var(--font-ui); letter-spacing: .12em; }
  html body .luliy-cloth-grid {
    --cols: 3;
    display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 18px 16px; margin: 0; padding: 0; list-style: none;
  }
  @media (min-width: 480px) { html body .luliy-cloth-grid { --cols: 4; } }
  @media (min-width: 600px) { html body .luliy-cloth-grid { --cols: 5; } }
  @media (min-width: 720px) { html body .luliy-cloth-grid { --cols: 6; } }
  @media (min-width: 700px) and (max-height: 500px) { html body .luliy-cloth-grid { --cols: 8; } }   /* phones on their side */
  /* An article row in the cloth: list number + title, no date. The article being read is marked. */
  html body .luliy-cloth-articles { margin: 0; padding: 0; list-style: none; }
  html body .luliy-cloth-articles > li { margin: 0; padding: 0; }
  html body .luliy-article-row {
    display: flex; align-items: baseline; gap: 14px; width: 100%; margin: 0; padding: 13px 2px;
    border: 0; border-bottom: 1px solid color-mix(in oklab, var(--ink) 9%, transparent); background: none;
    color: var(--ink); cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent;
  }
  html body .luliy-article-row .luliy-article-no {
    flex: none; min-width: 2ch; white-space: nowrap; color: var(--muted);
    font: 600 12px/1.4 var(--font-ui); font-variant-numeric: tabular-nums; letter-spacing: .08em;
  }
  html body .luliy-article-row .luliy-article-title {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font: 600 17px/1.4 var(--font-ui);
  }
  html body .luliy-article-row[aria-current="true"] .luliy-article-no,
  html body .luliy-article-row[aria-current="true"] .luliy-article-title { color: var(--accent); }
  html body .luliy-cloth-note { margin: 0; padding: 18px 2px; color: var(--muted); font: 500 13px/1.5 var(--font-ui); }
  html body .luliy-cloth-grid > li { min-width: 0; margin: 0; padding: 0; }
  html body .luliy-cloth-grip {
    position: absolute; left: 50%; bottom: calc(var(--hem) + 7px); width: 36px; height: 4px; margin-left: -18px; border-radius: 2px;
    background: color-mix(in oklab, var(--ink) 26%, transparent);
  }
  /* A record: the vinyl of the study's middle drawer. Grooves at .63, .77, .9 and .98 of the radius; the cover
     is the centre label (.386 of the diameter); the sheen stays still while the record playing turns. */
  html body .luliy-disc {
    display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 0; border: 0; background: none;
    color: var(--muted); cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: center;
  }
  html body .luliy-disc-art { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 7px 16px rgb(0 0 0 / .34); transition: scale var(--dur-fast) var(--ease), box-shadow var(--dur-base) var(--ease); }
  html body .luliy-disc-art::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background: conic-gradient(from 20deg, transparent 0 6%, rgb(255 255 255 / .11) 11%, transparent 17% 50%, rgb(255 255 255 / .08) 61%, transparent 67%);
  }
  html body .luliy-disc-vinyl {
    position: absolute; inset: 0; border-radius: 50%;
    background:
      radial-gradient(circle closest-side, transparent 62%, rgb(255 255 255 / .08) 62.6% 63.6%, transparent 64.2% 76.4%, rgb(255 255 255 / .08) 77% 78%, transparent 78.6% 89.4%, rgb(255 255 255 / .07) 90% 91%, transparent 91.6% 97.4%, rgb(255 255 255 / .1) 98% 99%, transparent 99.6%),
      repeating-radial-gradient(circle closest-side, rgb(255 255 255 / .03) 0 1px, transparent 1px 3px),
      #080909;
  }
  html body .luliy-disc-label {
    position: absolute; inset: 30.7%; border-radius: 50%; background: #ded3bb center / cover no-repeat; box-shadow: 0 0 0 1px rgb(0 0 0 / .45);
  }
  html body .luliy-disc-label.luliy-disc-blank { display: grid; place-items: center; color: #39382f; font: 600 13px/1 var(--font-ui); }
  html body .luliy-disc-label::after {
    content: ""; position: absolute; left: 50%; top: 50%; width: 9%; min-width: 3px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
    background: #0b0b0c; box-shadow: 0 0 0 1px rgb(255 255 255 / .25);
  }
  html body .luliy-disc-name {
    display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 12px/1.3 var(--font-ui); letter-spacing: .03em;
  }
  html body .luliy-disc:active .luliy-disc-art { scale: .96; }
  html body .luliy-disc:focus-visible { outline: none; }
  html body .luliy-disc:focus-visible .luliy-disc-art { outline: 2px solid var(--focus-ring); outline-offset: 3px; }
  html body .luliy-disc[aria-current] { color: var(--ink); }
  html body .luliy-disc[aria-current] .luliy-disc-name { font-weight: 700; }
  html body .luliy-disc[aria-current] .luliy-disc-art {
    box-shadow: 0 0 0 2px var(--accent), 0 0 22px color-mix(in oklab, var(--accent) 55%, transparent), 0 7px 16px rgb(0 0 0 / .34);
  }
  html body .luliy-disc[aria-current] .luliy-disc-vinyl { animation: luliy-spin 9s linear infinite paused; }
  html body .luliy-cloth[data-playing="true"] .luliy-disc[aria-current] .luliy-disc-vinyl { animation-play-state: running; }
}
@keyframes luliy-spin { to { rotate: 360deg; } }
@keyframes luliy-hem { from { --hem-x: -48px; } }
@property --hem-x { syntax: "<length>"; inherits: false; initial-value: 0px; }
@media (prefers-reduced-motion: reduce) {
  html body .luliy-cloth-hang, html body .luliy-cloth.is-open .luliy-cloth-hang { transform: none; opacity: 0; transition: opacity var(--dur-fast) linear; }
  html body .luliy-cloth.is-open .luliy-cloth-hang { opacity: 1; }
  html body .luliy-cloth.is-open .luliy-cloth-fabric { animation: none; }
  html body .luliy-disc[aria-current] .luliy-disc-vinyl { animation: none; }
}

/* Records player: a real cover photo (Hot Together) sits over the generated card;
   if the photo fails to load it is removed and the card underneath shows. */
.lr-cover.lr-public-artwork img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:2}
.lr-cover.lr-public-artwork .lr-cover-art,
.lr-cover.lr-public-artwork .lr-cover-top,
.lr-cover.lr-public-artwork .lr-cover-number,
.lr-cover.lr-public-artwork .lr-cover-title,
.lr-cover.lr-public-artwork .lr-cover-bottom{display:none}
.lr-cover.lr-public-artwork.lr-cover-failed .lr-cover-art,
.lr-cover.lr-public-artwork.lr-cover-failed .lr-cover-top,
.lr-cover.lr-public-artwork.lr-cover-failed .lr-cover-number,
.lr-cover.lr-public-artwork.lr-cover-failed .lr-cover-title,
.lr-cover.lr-public-artwork.lr-cover-failed .lr-cover-bottom{display:block}

/* Study room: the "Luliy的房间" title screen is gone (home-fixes.js block 21);
   the site loader holds the entry instead, until the room is actually entering. */
html body #main .study-room-intro { display: none !important; }

/* Homepage Records section, desktop only (min-width:1101px) — new layout, centred 1760px, 1.3x
   (2026-10-26, records-new-layout; 2026-10-27, gap fix; 2026-10-27, Scheme A centre:
   body widened 1360px -> 1760px centred, grid fills it instead of breaking out
   full-bleed, section fills the viewport and centres header+body vertically;
   the track list below is untouched):
   Portrait uses the user's own flipped photo (listen2.png, swapped in by home-fixes.js
   block 22), so no CSS flip is needed here. Portrait, track info and turntable are all
   1.3x. Track info sits left-aligned next to the portrait (3-column grid: portrait /
   624px info / flexible), so the gap between portrait and controls is ~48px, not ~350px.
   Turntable sits at the bottom-right of the progress bar (its right edge aligned with
   the track info's right edge). Portrait and track info stay vertically centred. */
@media (min-width: 1101px) {
  html body #recordsHome .record-mount .lr-layout {
    display: grid;
    grid-template-columns: min(40%, 710px) minmax(0, 624px) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    padding-top: 24px;
    min-height: 700px;
    gap: 0 clamp(24px, 3vw, 48px);
    --lr-control-clearance: 0px;
  }
  /* Scheme A centre (2026-10-27): the body was capped at 1360px in main CSS
     while the grid broke out full-bleed (100vw), so the content only reached
     ~1450px and left ~470px empty on the right, top-aligned with blank below.
     Body is now 1760px centred; the section fills the viewport and centres
     header+body vertically, so the blank is split evenly top/bottom. */
  html body #recordsHome .record-feature-body {
    width: min(1760px, 100%);
  }
  html body #recordsHome {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  /* Records lands at viewport y=0 (not y~110): html{scroll-padding-top:110px}
     in main css pushes every scroll landing down 110px. At desktop width
     there is no tall fixed header needing that clearance, and article
     headings keep their own scroll-margin-top:120-125px, so clearing it
     here is safe. (push26 tried scroll-margin-top:-110px on the section;
     it had no effect, so it is removed.) */
  html {
    scroll-padding-top: 0;
  }
  html body #recordsHome .home-player-group {
    display: contents;
  }
  html body #recordsHome .home-corner-image {
    grid-column: 1;
    grid-row: 1 / 3;
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    height: auto;
    align-self: stretch;
    object-fit: contain;
    object-position: left bottom;
    transform: none;
    opacity: 1;
    mask-image: linear-gradient(to top, transparent, #000 15%, #000 85%, transparent), linear-gradient(to right, #000 70%, transparent);
    mask-composite: intersect;
    -webkit-mask-image: linear-gradient(to top, transparent, #000 15%, #000 85%, transparent), linear-gradient(to right, #000 70%, transparent);
    -webkit-mask-composite: source-in;
  }
  html body #recordsHome .record-mount .lr-meta {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    justify-self: stretch;
    min-width: 0;
    max-width: 624px;
    width: 100%;
    padding: 0;
    gap: 18px;
  }
  html body #recordsHome .record-mount .lr-scene {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    align-self: end;
    width: 390px;
    height: 312px;
    margin-left: 0;
    margin-right: 0;
  }
  html body #recordsHome .record-mount .lr-title {
    font-size: clamp(34px, 3.4vw, 49px);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
  }
  html body #recordsHome .record-mount .lr-counter {
    font-size: 13px;
    gap: 14px;
  }
  html body #recordsHome .record-mount .lr-counter::before {
    width: 31px;
  }
  html body #recordsHome .record-mount .lr-transport {
    gap: 10px;
  }
  html body #recordsHome .record-mount .lr-icon-button {
    width: 57px;
    height: 57px;
  }
  html body #recordsHome .record-mount .lr-icon-button svg {
    width: 23px;
    height: 23px;
  }
  html body #recordsHome .record-mount .lr-track-progress {
    font-size: 13px;
    gap: 13px;
  }
  html body #recordsHome .record-mount .lr-volume {
    font-size: 13px;
    gap: 10px;
  }
  html body #recordsHome .record-mount .lr-volume svg {
    width: 20px;
    height: 20px;
  }
  html body #recordsHome .record-mount .lr-volume input {
    width: 110px;
    height: 34px;
  }
  html body #recordsHome .record-mount .lr-volume-output {
    width: 39px;
  }
}

/* Homepage Records section, desktop wide only (min-width:1600px) — vinyl track list
   (2026-10-27, push22; replaces push21, which targeted .lr-gallery).
   Why this shape: on the home page the player mounts with layout 'home', so the
   chunk never wraps the shelf in .lr-gallery (that only happens on the standalone
   #/music page). .lr-shelf is a direct child of .lr-room, a sibling of .lr-layout,
   and pure CSS cannot put a sibling into .lr-layout's grid — so home-fixes.js
   block 23 moves .lr-shelf into .lr-layout at >=1600px (and back below it).
   Once inside, this block puts the shelf in grid column 3, right of the track
   info, as a vertical column showing 5 vinyl-disc rows (scrollable for all 20).
   The shelf heading ("我的唱片" + prev/next) and the album trigger ("目前播放列表 /
   20 首曲目" + "+") are hidden here — the vinyl column IS the playlist, no title,
   no "+". Below 1600px everything stays as-is (horizontal list below).
   Disc look reuses the mobile cloth vinyl (.luliy-disc-vinyl): black grooved disc,
   cover photo as centre label when present, beige label otherwise, spindle hole.
   CSS-only except for the shelf move in home-fixes.js block 23; the chunk's click
   handlers on .lr-record keep working (moving the node keeps its listeners). */
@media (min-width: 1600px) {
  html body #recordsHome .record-mount .lr-shelf {
    grid-column: 3;
    grid-row: 1 / 3;
    min-width: 0;
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scroll-snap-type: none;
    padding: 0;
    margin: 0;
    height: 700px;
    cursor: default;
  }
  html body #recordsHome .record-mount .lr-layout {
    grid-template-rows: minmax(0, 1fr) auto;
  }
  html body #recordsHome .record-mount .lr-shelf-heading {
    display: none;
  }
  html body #recordsHome .lr-album-trigger {
    display: none !important;
  }
  html body #recordsHome .record-mount .lr-shelf::-webkit-scrollbar {
    display: block;
    width: 6px;
  }
  html body #recordsHome .record-mount .lr-shelf::-webkit-scrollbar-thumb {
    background: rgb(255 255 255 / .18);
    border-radius: 3px;
  }
  html body #recordsHome .record-mount .lr-record {
    flex: 0 0 auto;
    height: 128px;
    min-width: 0;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    align-items: center;
    text-align: left;
    padding: 0;
  }
  html body #recordsHome .record-mount .lr-record .lr-cover {
    grid-column: 1;
    grid-row: 1 / 3;
    flex: none;
    width: 104px;
    height: 104px;
    border-radius: 50%;
    position: relative;
    overflow: hidden;
    transform: none;
    background:
      radial-gradient(circle closest-side, #ded3bb 0 38%, rgb(0 0 0 / .45) 38.6%, transparent 39%),
      radial-gradient(circle closest-side, transparent 62%, rgb(255 255 255 / .08) 62.6% 63.6%, transparent 64.2% 76.4%, rgb(255 255 255 / .08) 77% 78%, transparent 78.6% 89.4%, rgb(255 255 255 / .07) 90% 91%, transparent 91.6% 97.4%, rgb(255 255 255 / .1) 98% 99%, transparent 99.6%),
      repeating-radial-gradient(circle closest-side, rgb(255 255 255 / .03) 0 1px, transparent 1px 3px),
      #080909;
    box-shadow: 0 7px 16px rgb(0 0 0 / .34);
  }
  html body #recordsHome .record-mount .lr-record .lr-cover::before {
    display: none;
  }
  html body #recordsHome .record-mount .lr-record .lr-cover::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: 3.5%;
    min-width: 3px;
    aspect-ratio: 1;
    translate: -50% -50%;
    border-radius: 50%;
    background: #0b0b0c;
    box-shadow: 0 0 0 1px rgb(255 255 255 / .25);
    z-index: 3;
  }
  html body #recordsHome .record-mount .lr-record .lr-cover .lr-cover-art,
  html body #recordsHome .record-mount .lr-record .lr-cover .lr-cover-top,
  html body #recordsHome .record-mount .lr-record .lr-cover .lr-cover-number,
  html body #recordsHome .record-mount .lr-record .lr-cover .lr-cover-title,
  html body #recordsHome .record-mount .lr-record .lr-cover .lr-cover-bottom {
    display: none;
  }
  html body #recordsHome .record-mount .lr-record .lr-cover img {
    position: absolute;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    width: 38.6%;
    height: 38.6%;
    translate: -50% -50%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 2;
  }
  html body #recordsHome .record-mount .lr-record .lr-record-name {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html body #recordsHome .record-mount .lr-record .lr-record-info {
    grid-column: 2;
    grid-row: 2;
    margin-top: 3px;
    font-size: 11px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  html body #recordsHome .record-mount .lr-record .lr-record-state {
    display: none;
  }
  html body #recordsHome .record-mount .lr-record:hover .lr-cover {
    transform: none;
  }
  html body #recordsHome .record-mount .lr-record[aria-current="true"] .lr-cover {
    outline: none;
    box-shadow: 0 0 0 2px var(--accent), 0 0 22px color-mix(in oklab, var(--accent) 55%, transparent), 0 7px 16px rgb(0 0 0 / .34);
  }
  html body #recordsHome .record-mount .lr-record[aria-current="true"] .lr-record-name {
    font-weight: 700;
  }
}

/* Records: remove the divider line above "目前播放列表" (2026-10-27).
   The line is .lr-collection's border-top. User asked to delete it.
   Removed at all widths (at >=1600px the trigger is hidden, so the line
   would otherwise sit there alone with nothing under it). */
html body #recordsHome .lr-collection {
  border-top: none;
}

/* 24. Article reading page (2026-10-30 rework). See home-fixes.js section 24. */

/* The reading-progress rail is removed on the main site (belt and braces: reading-timeline.js also no longer creates it). */
html body .reading-timeline { display: none !important; }

/* a) No footer on reading pages: hide the curtain and the space reserved for it. */
html.luliy-reading #contact,
html.luliy-reading .contact-curtain { display: none !important; }
html.luliy-reading body .page-above,
html.luliy-reading .page-above { margin-bottom: 0 !important; }

/* c) TOC header: icon buttons; copy-link is hidden (the meta row already has 分享). */
.source-toc .reader-tools [data-reader="share"] { display: none !important; }
.source-toc > p .luliy-ico, .article-toc > p .luliy-ico,
.reader-tools .luliy-ico { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; color: var(--muted); font-size: 0; line-height: 0; cursor: pointer; transition: color .15s, border-color .15s, background-color .15s; }
.luliy-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.luliy-ico:hover, .luliy-ico:focus-visible, .luliy-ico[aria-expanded="true"] { color: var(--accent, #d4af37); border-color: var(--line); background: color-mix(in srgb, var(--accent, #d4af37) 8%, transparent); }
.reader-toc-close.luliy-ico { width: 30px; height: 30px; padding: 0; font-size: 0; }
.reader-tools { gap: 2px; }

/* Background panel (collapsed until the background button is pressed). */
.luliy-bg-panel { margin: 0 0 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.luliy-bg-panel[hidden] { display: none; }
.luliy-bg-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.luliy-bg-thumbs button { position: relative; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: color-mix(in srgb, var(--ink, #fff) 4%, transparent); color: var(--muted); cursor: pointer; transition: border-color .15s, transform .15s; }
.luliy-bg-thumbs button:hover { border-color: var(--muted); transform: translateY(-1px); }
.luliy-bg-thumbs button img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 18% 50%; }
.luliy-bg-thumbs button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.luliy-bg-thumbs button[aria-pressed="true"] { border-color: var(--accent, #d4af37); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #d4af37) 55%, transparent); color: var(--ink, #fff); }
.luliy-bg-thumbs button.is-volatile { border-style: dashed; }
.luliy-bg-row { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.luliy-bg-dim { display: inline-grid; place-items: center; color: var(--muted); }
.luliy-bg-dim svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.luliy-bg-row input[type="range"] { flex: 1; min-width: 0; accent-color: var(--accent, #d4af37); }
.luliy-bg-reset { width: 28px; height: 28px; }
@media (max-width: 768px) {
  .luliy-bg-toggle, .luliy-bg-panel { display: none !important; }
}

/* b) Desktop article artwork. */
@media (min-width: 769px) {
  #luliy-article-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }
  #luliy-article-bg img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0; transition: opacity .35s ease; }
  /* Top gradient (header icons), soft shade pool behind the text column, faint overall veil.
     --luliy-bg-scrim (slider, default .30) scales the pool and the veil. */
  #luliy-article-bg .luliy-article-bg-scrim { position: absolute; inset: 0; background:
    linear-gradient(to bottom, rgba(5,6,12,calc(.5 + var(--luliy-bg-scrim, .3) * .5)) 0, rgba(5,6,12,0) 170px),
    radial-gradient(ellipse 38% 80% at 50% 48%, rgba(5,6,12,calc(var(--luliy-bg-scrim, .3) * 2.2)) 0%, rgba(5,6,12,calc(var(--luliy-bg-scrim, .3) * 1.5)) 55%, rgba(5,6,12,0) 100%),
    rgba(5,6,12,calc(var(--luliy-bg-scrim, .3) * .6)); }
  body.luliy-article-bg-on .article-cover { display: none; }

  /* Legibility over bright artwork: header, floating buttons, progress rail, body text. */
  body.luliy-article-bg-on #header a, body.luliy-article-bg-on #header button { text-shadow: 0 1px 3px rgba(0,0,0,.85); }
  body.luliy-article-bg-on #header img, body.luliy-article-bg-on #header svg { filter: drop-shadow(0 1px 3px rgba(0,0,0,.85)); }
  body.luliy-article-bg-on .reader-float button { background: rgba(8,10,18,.58); border: 1px solid rgba(255,255,255,.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; }
  body.luliy-article-bg-on :is(.article-body, #sourceArticleBody) { text-shadow: 0 1px 2px rgba(0,0,0,.85), 0 0 14px rgba(0,0,0,.6); }
  body.luliy-article-bg-on .source-end, body.luliy-article-bg-on .source-end * { text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 12px rgba(0,0,0,.85); }
}


/* 26. Accessibility follow-up (2026-10-30) */
/* Bottom links on reading pages: readable over any artwork, and real touch targets. */
html body .source-end a {
  display: inline-flex; align-items: center; min-height: 32px; padding: 4px 12px; font-size: 14px;
  color: #f2efe6; border-radius: 8px;
}
body.luliy-article-bg-on .source-end a { background: rgba(8, 10, 14, .62); }
html body .source-end a:hover, html body .source-end a:focus-visible { color: #fff; text-decoration: underline; }
/* Other small text links/buttons in the reading chrome: at least 24px tall. */
html body .source-top a, html body .source-top button, html body .article-top a,
html body #main .source-head a, html body #main .source-nav a, html body #main [data-refresh] {
  min-height: 24px; display: inline-flex; align-items: center;
}
/* Section-link glyph: a 24px+ hit area without moving the heading text. */
html body .reader-heading-link { min-width: 24px; min-height: 24px; padding: 0 6px; }
/* Header page-name button ("Articles"): 24px hit area without moving the layout. */
html body #header .brand-group button.brand-page-name { padding-block: 4px; margin-block: -4px; top: 2px; }


/* 27. Reading-page mascot (home-fixes.js block 27) */
.luliy-mascot { position: fixed; left: 14px; bottom: 10px; width: var(--lm-w, 190px); z-index: 30; perspective: 700px; user-select: none; -webkit-user-select: none; }
html.lm-bar-mode body.lm-player-visible .luliy-mascot { bottom: calc(var(--lm-bar-space, 0px) + 8px); }
.luliy-mascot[hidden], .luliy-mascot-hub[hidden] { display: none !important; }
.luliy-mascot-stage { position: relative; aspect-ratio: 320 / 262; cursor: pointer; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.luliy-mascot-stage::before { content: ""; position: absolute; inset: 14% 18% 4%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(226,194,126,.15), transparent 70%); animation: luliy-mascot-glow 5s ease-in-out infinite; }
@keyframes luliy-mascot-glow { 0%,100% { opacity: .5; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
.luliy-mascot-stage :is(img, canvas) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)); }
/* canvas mode: once the sheet is decoded the canvas draws everything and the still underneath is hidden */
.luliy-mascot-canvas { opacity: 0; }
.luliy-mascot.has-canvas .luliy-mascot-canvas { opacity: 1; }
.luliy-mascot.has-canvas .luliy-mascot-rest { opacity: 0; }
/* still mode (reduced motion / Save-Data): three poses cross-fade */
.luliy-mascot-pose { opacity: 0; transition: opacity .28s ease; }
.luliy-mascot-rest { transition: opacity .28s ease; }
.luliy-mascot-stage[data-pose="front"] .luliy-mascot-rest, .luliy-mascot-stage[data-pose="turn"] .luliy-mascot-rest { opacity: 0; }
.luliy-mascot-stage[data-pose="front"] .luliy-mascot-pose[data-pose="front"], .luliy-mascot-stage[data-pose="turn"] .luliy-mascot-pose[data-pose="turn"] { opacity: 1; }
.luliy-mascot-stage:focus-visible { outline: 2px solid var(--accent, #d4af37); outline-offset: 2px; border-radius: 12px; }
.luliy-mascot-bubble { position: absolute; left: 8px; width: 230px; bottom: calc(100% + 2px); padding: 10px 14px; border-radius: 12px;
  background: rgba(10,15,28,.94); border: 1px solid rgba(226,194,126,.34); color: #ece6d6; font-size: 13.5px; line-height: 1.6;
  box-shadow: 0 8px 28px rgba(0,0,0,.45); opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; pointer-events: none; }
.luliy-mascot-bubble.show { opacity: 1; transform: none; }
.luliy-mascot-bubble::after { content: ""; position: absolute; left: 60px; bottom: -6px; width: 10px; height: 10px; background: inherit;
  border-right: 1px solid rgba(226,194,126,.34); border-bottom: 1px solid rgba(226,194,126,.34); transform: rotate(45deg); }
.luliy-mascot-tools { position: absolute; right: -18px; bottom: 24px; display: flex; flex-direction: column; gap: 6px; opacity: 0; transition: opacity .3s; }
.luliy-mascot:hover .luliy-mascot-tools, .luliy-mascot:focus-within .luliy-mascot-tools { opacity: 1; }
.luliy-mascot-tools button { border: 1px solid rgba(226,194,126,.34); background: rgba(10,15,28,.86); color: #e2c27e; cursor: pointer; }
.luliy-mascot-tools button { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; padding: 0; }
.luliy-mascot-tools button:hover { background: rgba(226,194,126,.16); }
.luliy-mascot-tools svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) { .luliy-mascot-stage::before { animation: none; } .luliy-mascot-stage { transition: none; } }


/* 28. Reading page, desktop only (2026-10-30). Phones are not touched: every rule below sits behind min-width. */
@media (min-width: 769px) {
  /* Title: airy but not scattered, and no orphaned last character. */
  html body #main .source-reading > h1 { letter-spacing: .1em !important; text-wrap: balance; }

  /* Previous / next: same column as the article, quiet two-sided layout. */
  html body #main .source-reading > .reader-series { width: min(var(--reader-measure, 1600px), 100%); max-width: none; margin: 40px auto 0; padding: 26px 0 0;
    border-top: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); }
  html body #main .source-reading > .reader-series > div { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
  html body #main .source-reading > .reader-series a { display: grid; gap: 8px; align-content: start; padding: 6px 12px 14px; border: 0; }
  html body #main .source-reading > .reader-series > div > :nth-child(2) { text-align: right; }
  html body #main .source-reading > .reader-series a small { font-size: 12px; letter-spacing: .14em; color: color-mix(in srgb, var(--accent) 78%, var(--ink)); transition: transform var(--dur-fast, .18s) ease; }
  html body #main .source-reading > .reader-series a strong { font-size: 19px; line-height: 1.55; font-weight: 400; color: var(--ink); }
  html body #main .source-reading > .reader-series > div > :nth-child(1):hover small { transform: translateX(-4px); }
  html body #main .source-reading > .reader-series > div > :nth-child(2):hover small { transform: translateX(4px); }
  body.luliy-article-bg-on .reader-series small, body.luliy-article-bg-on .reader-series strong { text-shadow: 0 1px 3px rgba(0,0,0,.95), 0 0 12px rgba(0,0,0,.85); }
}

/* 29. Reading-page mascot carries the contents + back-to-top buttons (home-fixes.js block 27), wide screens only. */
@media (min-width: 1180px) and (pointer: fine) {
  html.luliy-mascot-on #main .reader-toc-toggle, html.luliy-mascot-on #main .reader-back-top { display: none !important; }
  /* the button column stays quietly visible, so the contents are always findable */
  /* Hidden until the pointer reaches her (or keyboard focus is inside); stays visible while the contents panel is open. */
  html.luliy-mascot-on .luliy-mascot .luliy-mascot-tools { opacity: 0; }
  html.luliy-mascot-on .luliy-mascot:is(:hover, :focus-within) .luliy-mascot-tools, html.luliy-toc-open .luliy-mascot .luliy-mascot-tools { opacity: 1; }
  .luliy-mascot-tools button[hidden] { display: none; }
  .luliy-mascot-tools button.is-active { background: rgba(226,194,126,.24); }
  /* the contents panel opens right above her instead of at the top-left */
  html.luliy-mascot-on #main :is(.source-toc, .article-toc) { left: 14px !important; top: auto !important; bottom: calc(var(--lm-w, 190px) * .8188 + 33px) !important;
    max-height: min(62dvh, calc(100dvh - 260px)) !important; transform-origin: 90px 100%; }
  html.lm-bar-mode.luliy-mascot-on body.lm-player-visible #main :is(.source-toc, .article-toc) { bottom: calc(var(--lm-bar-space, 0px) + var(--lm-w, 190px) * .8188 + 33px) !important; }
  html.luliy-toc-open .luliy-mascot-bubble { opacity: 0 !important; }
}

/* 30. Behind her the artwork is pressed down a little, so she reads as a figure and not as a sticker on a busy picture. */
body.luliy-article-bg-on .luliy-mascot::before { content: ""; position: absolute; inset: -16% -34% -10% -34%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(5,8,18,.76) 0%, rgba(5,8,18,.56) 52%, rgba(5,8,18,0) 100%); }


/* 31. Contents panel, redesigned (desktop, with the mascot): a larger version of her speech bubble.
   Header = title + count; middle = a timeline of sections (a gold dot marks where you are); footer = the tools. */
@media (min-width: 1180px) and (pointer: fine) {
  html.luliy-mascot-on #main .source-toc {
    --tc-bg: rgba(10,15,28,.95); --tc-line: rgba(226,194,126,.34); --tc-gold: #e2c27e; --tc-ink: #ece6d6; --tc-mute: rgba(236,230,214,.64);
    width: 312px !important; padding: 0 !important; overflow: visible !important;
    display: flex !important; flex-direction: column;
    background: var(--tc-bg) !important; border: 1px solid var(--tc-line) !important; border-radius: 16px !important;
    box-shadow: 0 18px 50px rgba(0,0,0,.55) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transform: translateY(10px) scale(.97); transition: opacity .22s ease, transform .26s cubic-bezier(.2,.8,.2,1), visibility .22s;
  }
  html.luliy-mascot-on #main .source-toc.is-open { transform: none; }
  /* the tail points down at her */
  html.luliy-mascot-on #main .source-toc::after { content: ""; position: absolute; left: 84px; bottom: -7px; width: 12px; height: 12px;
    background: var(--tc-bg); border-right: 1px solid var(--tc-line); border-bottom: 1px solid var(--tc-line); transform: rotate(45deg); }
  /* the old header row dissolves: title on top, tools at the bottom, close in the corner */
  html.luliy-mascot-on #main .source-toc > p { display: contents; border: 0; }
  html.luliy-mascot-on #main .source-toc > p > span:first-child { order: 0; display: flex; align-items: baseline; gap: 10px;
    padding: 16px 52px 10px 20px; font-size: 14px; letter-spacing: .14em; color: var(--tc-ink); }
  .luliy-toc-count { font-size: 11.5px; letter-spacing: .06em; color: var(--tc-mute); opacity: .8; font-weight: 400; }
  html.luliy-mascot-on #main .source-toc .reader-toc-close { position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; }
  /* list */
  html.luliy-mascot-on #main .source-toc nav { order: 5; flex: 1 1 auto; min-height: 90px; max-height: none !important; overflow: auto;
    padding: 4px 12px 10px 18px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 20px), transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12px, #000 calc(100% - 20px), transparent 100%); }
  html.luliy-mascot-on #main .source-toc .reader-toc-tree, html.luliy-mascot-on #main .source-toc .reader-toc-tree ul { list-style: none; margin: 0; padding: 0; }
  html.luliy-mascot-on #main .source-toc .reader-toc-tree { position: relative; }
  html.luliy-mascot-on #main .source-toc .reader-toc-tree::before { content: ""; position: absolute; left: 5px; top: 14px; bottom: 14px; width: 1px; background: rgba(255,255,255,.14); }
  html.luliy-mascot-on #main .source-toc .reader-toc-row { position: relative; display: flex; align-items: flex-start; padding-left: 20px; }
  html.luliy-mascot-on #main .source-toc .reader-toc-row::before { content: ""; position: absolute; left: 0; top: 13px; width: 11px; height: 11px; box-sizing: border-box;
    border-radius: 50%; background: var(--tc-bg); border: 1.5px solid rgba(255,255,255,.32); transition: background .2s, border-color .2s, box-shadow .2s; }
  html.luliy-mascot-on #main .source-toc .reader-toc-row:has(.level-h3, .level-h4, .level-h5, .level-h6)::before { left: 2.5px; top: 15px; width: 6px; height: 6px; border-width: 1px; }
  html.luliy-mascot-on #main .source-toc .reader-toc-row:has(.current)::before { background: var(--tc-gold); border-color: var(--tc-gold); box-shadow: 0 0 0 4px rgba(226,194,126,.18); }
  html.luliy-mascot-on #main .source-toc .reader-toc-item { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
    padding: 6px 8px; border: 0; border-radius: 8px; background: transparent; text-align: left; font-size: 13.5px; line-height: 1.55; color: var(--tc-mute); transition: color .18s, background .18s; }
  html.luliy-mascot-on #main .source-toc .reader-toc-item:hover { color: var(--tc-ink); background: rgba(255,255,255,.05); }
  html.luliy-mascot-on #main .source-toc .reader-toc-item.current { color: var(--tc-gold); background: transparent; font-weight: 500; }
  html.luliy-mascot-on #main .source-toc .reader-toc-item.level-h3, html.luliy-mascot-on #main .source-toc .reader-toc-item.level-h4,
  html.luliy-mascot-on #main .source-toc .reader-toc-item.level-h5, html.luliy-mascot-on #main .source-toc .reader-toc-item.level-h6 { padding-left: 16px; font-size: 12.5px; }
  html.luliy-mascot-on #main .source-toc .reader-toc-fold { order: 3; margin-left: auto; flex: none; align-self: flex-start; margin-top: 4px; }
  html.luliy-mascot-on #main .source-toc .reader-toc-empty { display: block; padding: 8px 4px; font-size: 13px; color: var(--tc-mute); }
  /* the panels the tools open sit just above the tools */
  html.luliy-mascot-on #main .source-toc .reader-tool-panels, html.luliy-mascot-on #main .source-toc .luliy-bg-panel { order: 8; margin: 0 14px 8px; }
  html.luliy-mascot-on #main .source-toc .luliy-bg-panel { padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); border-bottom: 0 !important; margin-bottom: 0; }
  /* tools: one quiet row at the bottom */
  html.luliy-mascot-on #main .source-toc .reader-tools { order: 9; display: flex; align-items: center; gap: 4px; padding: 8px 12px 10px; border-top: 1px solid rgba(255,255,255,.08); }
  html.luliy-mascot-on #main .source-toc .reader-tools button { border-radius: 8px; }
}

/* 32. Journal / 短札 tab (2026-10-30). Single-column timeline on the article page; markup is built by home-fixes.js
   section 32. Colours come from the site's own variables so every theme follows. */
.luliy-journal { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 0 64px; margin-top: 28px; align-items: start; }
.luliy-journal .lj-feed { display: block; min-width: 0; }
.lj-note { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 14px; padding: 20px 4px 22px; border-bottom: 1px solid var(--line, #2e323d); transition: background-color .25s ease; }
.lj-note:first-child { padding-top: 6px; }
@media (hover: hover) { .lj-note:hover { background: color-mix(in srgb, var(--text, #e8e3d9) 3%, transparent); } }
.lj-note:target { background: color-mix(in srgb, var(--accent, #b89a6a) 8%, transparent); }
.lj-avatar { display: block; width: 40px; height: 40px; object-fit: cover; border-radius: 8px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text, #e8e3d9) 14%, transparent); transition: transform .25s ease; }
.lj-avatar-link { align-self: start; display: block; width: 40px; height: 40px; border-radius: 8px; }
.lj-avatar-link:hover .lj-avatar, .lj-card-avatar-link:hover .lj-card-avatar { transform: scale(1.06); }
.lj-card-avatar-link { display: block; width: 84px; height: 84px; border-radius: 10px; }
.lj-avatar-link:focus-visible, .lj-card-avatar-link:focus-visible { outline: 2px solid var(--accent, #b89a6a); outline-offset: 3px; }
.lj-col { min-width: 0; }
.lj-head { display: flex; align-items: baseline; gap: 6px; font-size: 14px; line-height: 1.4; color: var(--muted, #a3a3a6); }
.lj-name { color: var(--text, #e8e3d9); font-size: 15px; letter-spacing: .04em; }
.lj-time { color: inherit; text-decoration: none; font-size: 13px; }
.lj-time:hover, .lj-time:focus-visible { color: var(--accent, #b89a6a); text-decoration: underline; text-underline-offset: 3px; }
.lj-pin { margin-left: auto; font-size: 12px; letter-spacing: .12em; color: var(--accent, #b89a6a); }
.lj-text { position: relative; margin-top: 6px; font-size: 17px; line-height: 1.8; color: var(--text, #e8e3d9); overflow-wrap: anywhere; }
.lj-text > :first-child { margin-top: 0; }
.lj-text > :last-child { margin-bottom: 0; }
.lj-text p, .lj-text ul, .lj-text ol, .lj-text blockquote, .lj-text pre { margin: 0 0 .5em; }
.lj-text ul, .lj-text ol { padding-left: 1.3em; }
.lj-text a { color: var(--accent, #b89a6a); text-underline-offset: 3px; }
.lj-text blockquote { padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--accent, #b89a6a) 55%, transparent); color: var(--muted, #a3a3a6); }
.lj-text code { font-size: .88em; padding: 1px 5px; border-radius: 4px; background: color-mix(in srgb, var(--text, #e8e3d9) 9%, transparent); }
.lj-text pre { overflow-x: auto; padding: 10px 12px; border-radius: 8px; background: color-mix(in srgb, var(--text, #e8e3d9) 8%, transparent); }
.lj-text pre code { padding: 0; background: none; }
.lj-text .lj-h { font-weight: 700; }
.lj-text.is-clamped { max-height: 190px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent); }
.lj-expand, .lj-retry, .lj-more { appearance: none; background: none; border: 0; padding: 4px 0; margin-top: 4px; font: inherit; font-size: 14px; color: var(--accent, #b89a6a); cursor: pointer; text-underline-offset: 3px; }
.lj-expand:hover, .lj-retry:hover, .lj-more:hover { text-decoration: underline; }
.lj-expand:focus-visible, .lj-retry:focus-visible, .lj-more:focus-visible, .lj-shot:focus-visible, .lj-tags a:focus-visible, .lj-tagnav a:focus-visible, .lj-back:focus-visible { outline: 2px solid var(--accent, #b89a6a); outline-offset: 3px; border-radius: 4px; }
.lj-more { display: block; margin: 18px auto 0; padding: 8px 18px; border: 1px solid var(--line, #2e323d); border-radius: 999px; }
.lj-skel { display: block; height: 12px; margin: 10px 0; border-radius: 6px; background: color-mix(in srgb, var(--text, #e8e3d9) 10%, transparent); animation: lj-pulse 1.4s ease-in-out infinite; }
.lj-skel-short { width: 55%; }
@keyframes lj-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .lj-skel { animation: none; } .lj-note, .lj-avatar, .lj-card-avatar { transition: none; } }
.lj-media { display: grid; gap: 4px; margin-top: 10px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line, #2e323d); }
.lj-media[hidden] { display: none; }
.lj-media[data-count="1"] { grid-template-columns: 1fr; }
.lj-media:not([data-count="1"]) { grid-template-columns: 1fr 1fr; }
.lj-shot { appearance: none; padding: 0; border: 0; background: #0b0c10; cursor: zoom-in; display: block; line-height: 0; }
.lj-media[data-count="1"] .lj-shot img { width: 100%; max-height: 460px; object-fit: cover; }
.lj-media:not([data-count="1"]) .lj-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.lj-media[data-count="3"] .lj-shot:first-child { grid-row: span 2; }
.lj-media[data-count="3"] .lj-shot:first-child img { height: 100%; aspect-ratio: auto; }
.lj-tags { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; font-size: 13px; }
.lj-tags a { color: var(--muted, #a3a3a6); text-decoration: none; }
.lj-tags a:hover { color: var(--accent, #b89a6a); }
.lj-back { display: inline-block; margin-bottom: 14px; color: var(--muted, #a3a3a6); font-size: 14px; text-decoration: none; }
.lj-back:hover { color: var(--accent, #b89a6a); }
.lj-empty { padding: 40px 4px; color: var(--muted, #a3a3a6); line-height: 1.8; }
.lj-empty p { margin: 0 0 8px; }
.lj-hint { font-size: 14px; }
.lj-side { position: sticky; top: 96px; padding-top: 8px; }
.lj-side-title { margin: 0 0 10px; font-size: 12px; font-weight: 400; letter-spacing: .18em; color: var(--muted, #a3a3a6); text-transform: uppercase; }
.lj-tagnav { display: flex; flex-direction: column; }
.lj-tagnav a { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; color: var(--muted, #a3a3a6); text-decoration: none; font-size: 15px; border-bottom: 1px solid color-mix(in srgb, var(--line, #2e323d) 60%, transparent); }
.lj-tagnav a span { font-size: 12px; opacity: .8; }
.lj-tagnav a:hover { color: var(--text, #e8e3d9); }
.lj-tagnav a[aria-current] { color: var(--accent, #b89a6a); }
.lj-viewer { max-width: 96vw; max-height: 96vh; padding: 0; border: 0; background: transparent; overflow: visible; }
.lj-viewer::backdrop { background: rgba(5, 7, 12, .88); }
.lj-viewer img { display: block; max-width: 94vw; max-height: 92vh; border-radius: 6px; }
.lj-viewer-close { position: absolute; top: -14px; right: -14px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line, #2e323d); background: #14161d; color: #e8e3d9; font-size: 22px; line-height: 1; cursor: pointer; }
body.lj-viewing { overflow: hidden; }
@media (max-width: 1000px) {
  .luliy-journal { grid-template-columns: minmax(0, 1fr); }
  .lj-side { position: static; order: -1; padding: 0 0 6px; }
  .lj-side-title { display: none; }
  .lj-tagnav { flex-direction: row; max-width: none; overflow-x: auto; gap: 18px; scrollbar-width: none; }
  .lj-tagnav a { border-bottom: 0; white-space: nowrap; gap: 6px; padding: 6px 0; }
}
@media (max-width: 768px) {
  .luliy-journal { margin-top: 12px; }
  .lj-note { grid-template-columns: 34px minmax(0, 1fr); gap: 0 10px; padding: 16px 0 18px; }
  .lj-avatar, .lj-avatar-link { width: 34px; height: 34px; }
  .lj-text { font-size: 16px; }
}

/* 32b. Journal side column: profile card, activity grid, search (2026-10-30). */
.lj-side { display: flex; flex-direction: column; gap: 26px; max-width: 260px; }
.lj-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 22px 16px 16px; border: 1px solid var(--line, #2e323d); border-radius: 14px; background: color-mix(in srgb, var(--text, #e8e3d9) 3%, transparent); }
.lj-card-avatar { display: block; width: 84px; height: 84px; object-fit: cover; border-radius: 12px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--text, #e8e3d9) 14%, transparent), 0 6px 16px rgba(0, 0, 0, .3); transition: transform .25s ease; }
.lj-card-name { margin-top: 12px; font-size: 19px; letter-spacing: .06em; color: var(--text, #e8e3d9); }
.lj-card-sub { margin-top: 6px; font-size: 13px; line-height: 1.6; letter-spacing: .04em; color: var(--muted, #a3a3a6); text-wrap: balance; }
.lj-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line, #2e323d); }
.lj-stats div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.lj-stats dt { font-size: 12px; letter-spacing: .12em; color: var(--muted, #a3a3a6); }
.lj-stats dd { margin: 0; font-size: 24px; line-height: 1.2; color: var(--text, #e8e3d9); font-variant-numeric: tabular-nums; }
.lj-social { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.lj-social a { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--muted, #a3a3a6); transition: color .2s ease, background-color .2s ease; }
.lj-social a:hover, .lj-social a:focus-visible { color: var(--accent, #b89a6a); background: color-mix(in srgb, var(--accent, #b89a6a) 12%, transparent); }
.lj-social a:focus-visible { outline: 2px solid var(--accent, #b89a6a); outline-offset: 2px; }
.lj-heat .lj-side-title { margin-bottom: 12px; }
.lj-heat-grid { display: grid; grid-template-rows: repeat(7, 1fr); grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; }
.lj-heat-grid i { aspect-ratio: 1; border-radius: 3px; background: color-mix(in srgb, var(--text, #e8e3d9) 9%, transparent); }
.lj-heat-grid i.is-future { background: none; }
.lj-heat-grid i[data-l="1"] { background: color-mix(in srgb, var(--accent, #b89a6a) 45%, transparent); }
.lj-heat-grid i[data-l="2"] { background: color-mix(in srgb, var(--accent, #b89a6a) 72%, transparent); }
.lj-heat-grid i[data-l="3"] { background: var(--accent, #b89a6a); }
.lj-search input { box-sizing: border-box; width: 100%; padding: 9px 14px; font: inherit; font-size: 14px; color: var(--text, #e8e3d9); background: transparent; border: 1px solid var(--line, #2e323d); border-radius: 999px; outline: none; transition: border-color .2s ease; }
.lj-search input::placeholder { color: var(--muted, #a3a3a6); }
.lj-search input:focus-visible { border-color: var(--accent, #b89a6a); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #b89a6a) 28%, transparent); }
.lj-result { margin: 0 0 6px; padding: 0 4px; font-size: 13px; color: var(--muted, #a3a3a6); }
@media (max-width: 1000px) {
  .lj-side { max-width: none; gap: 14px; }
  .lj-card, .lj-heat { display: none; }
  .lj-tagbox .lj-side-title { display: none; }
}
@media (min-width: 1001px) and (max-height: 860px) { .lj-side { position: static; } }
.lj-nowrap { white-space: nowrap; }

/* 33. Phones: the header tabs follow the finger (2026-11-02; home-fixes.js 33). A fixed layer under the header
   holds a copy of each tab side by side; while it moves the copies are rounded cards with a dark seam, and a
   gold bar travels under the header tabs in place of the current tab's own. */
.lsw-stage {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; contain: layout paint style;
  background: color-mix(in srgb, var(--lsw-page, var(--bg)) 40%, #000);
}
.lsw-track { display: flex; gap: 12px; height: 100%; will-change: transform; }
.lsw-page {
  position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; background: var(--lsw-page, var(--bg));
  border-radius: 0; transition: border-radius .2s ease;
}
.lsw-stage.lsw-round .lsw-page { border-radius: 24px; }
/* the copies show the end state of any entrance animation (rows fading in), never its first frame */
.lsw-page * { animation-delay: -60s !important; animation-play-state: paused !important; transition: none !important; }
.lsw-stage.lsw-out { opacity: 0; transition: opacity .14s ease; }
.lsw-bar { position: fixed; left: 0; width: 16px; height: 2px; border-radius: 2px; background: var(--accent); pointer-events: none; }
html.lsw-on #header .luliy-header-modes :is(a, button)[aria-current]::after { opacity: 0; }
/* the header (and its tabs) stays in view while the pages move, even if scrolling had tucked it away */
html.lsw-on body.luliy-chrome-hidden #header { opacity: 1 !important; transform: none !important; visibility: visible !important; }
/* a tab not seen yet: quiet placeholder rows in the list's place */
.lsw-skel { position: absolute; left: 20px; right: 20px; top: 132px; display: grid; gap: 30px; }
.lsw-skel i { display: block; height: 46px; border-radius: 8px; background: color-mix(in srgb, var(--ink, #fff) 6%, transparent); }
.lsw-skel i:nth-child(3n+2) { width: 82%; }
.lsw-skel i:nth-child(3n) { width: 64%; }

/* 34. Comments / 評論 (2026-10-30): Giscus under blog articles; sits in the body column of .source-layout. */
.luliy-comments { grid-column: 2; margin-top: 56px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, currentColor 16%, transparent); }
.luliy-comments > h2 { margin: 0 0 14px; font: 600 15px/1.4 var(--font-ui); letter-spacing: .08em; }
.luliy-comments .lc-note { margin: 0 0 12px; font-size: 13px; opacity: .6; }
.luliy-comments .lc-note[hidden] { display: none; }
.luliy-comments .giscus, .luliy-comments .giscus-frame { width: 100%; }
@media (max-width: 1000px) { .luliy-comments { grid-column: auto; margin-top: 40px; } }

/* 34b. Journal (短札) comments: a small button under each note; one thread open at a time. */
.lj-cbar { margin-top: 8px; }
.lj-cbtn { appearance: none; background: none; border: 0; padding: 2px 0; font: inherit; font-size: 13px; color: var(--muted, #a3a3a6); cursor: pointer; }
.lj-cbtn:hover, .lj-cbtn.is-open { color: var(--accent, #b89a6a); }
.lj-cbtn:focus-visible { outline: 2px solid var(--accent, #b89a6a); outline-offset: 3px; border-radius: 4px; }
.lj-comments { margin-top: 10px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, currentColor 14%, transparent); }
.lj-comments[hidden] { display: none; }
.lj-cbar[hidden] { display: none; }

/* 27b. Mascot particles (2026-10-30): the gold specks around her show only while she moves or talks. */
.luliy-mascot .lpf { z-index: 0; opacity: 0; transition: opacity .6s ease; }
.luliy-mascot.lm-moving .lpf { opacity: 1; }
.luliy-mascot:not(.lm-moving) .lpf > * { animation-play-state: paused; }
.luliy-mascot-stage :is(img, canvas) { z-index: 1; }

/* 27c. Talking face (2026-10-31): three stacked face layers (eyes closed / half / open) over frame F_FRONT. The closed
   layer fades (features appear and leave softly); half and open switch instantly, which reads as the lids moving. */
.luliy-mascot-stage .luliy-mascot-face { opacity: 0; transition: opacity .2s ease; filter: none; pointer-events: none; }
.luliy-mascot-stage .luliy-mascot-face:is([data-f="h"], [data-f="o"]) { transition: none; }
.luliy-mascot[data-face="c"] .luliy-mascot-face[data-f="c"],
.luliy-mascot[data-face="h"] .luliy-mascot-face:is([data-f="c"], [data-f="h"]),
.luliy-mascot[data-face="o"] .luliy-mascot-face { opacity: 1; }
.luliy-mascot.lm-press .luliy-mascot-stage :is(img, canvas) { filter: drop-shadow(0 6px 18px rgba(0,0,0,.5)) brightness(1.12); transition: filter .6s ease; }
.luliy-mascot.lm-press .luliy-mascot-stage .luliy-mascot-face { filter: brightness(1.12); }
/* Bubble: one sentence per line, balanced wrapping, width follows the text. */
.luliy-mascot-bubble { width: max-content; max-width: 260px; }
.luliy-mascot-bubble .lm-l { display: block; text-wrap: balance; }
/* 27d. Collapsed Loon (2026-10-31): a small tab stuck to the left edge, and the hub that opens from it (home-fixes.js 27).
   Normally only her resting pose (it reads as an "L"). Hover / focus opens .lm-open: the hand-drawn gold "oon" is written
   behind her, and four faint doors (书房 作品 文章 唱片) appear on an arc above her. Pointing at a door writes the English
   word behind her instead. One easing curve and 0.3-0.5 s for everything; only the word behind her ever moves.
   The hub is a zero-size fixed anchor at the tab's bottom-left corner; all children are placed from that corner, and her
   centre is at (30px, 23px) from it (GEO in the script): 8px padding + 44px picture, 1px border + 4px padding + 36px / 2. */
.luliy-mascot-hub { --lm-ease: cubic-bezier(.22,.61,.36,1); position: fixed; left: 0; bottom: 26px; width: 0; height: 0; z-index: 30; pointer-events: none; }
html.lm-bar-mode body.lm-player-visible .luliy-mascot-hub { bottom: calc(var(--lm-bar-space, 0px) + 12px); }
html.lm-hub-up .luliy-mascot-hub { bottom: 84px; } /* study page: lifted above the room's own 书房 button (bottom 26px, 40px high) */
html.lm-hub-up.lm-bar-mode body.lm-player-visible .luliy-mascot-hub { bottom: calc(var(--lm-bar-space, 0px) + 84px); }
.luliy-mascot-peek { position: absolute; left: 0; bottom: 0; pointer-events: auto; display: flex; align-items: flex-end; padding: 4px 12px 4px 8px;
  border: 1px solid rgba(226,194,126,.34); border-left: 0; border-radius: 0 999px 999px 0; background: rgba(10,15,28,.86); color: #e2c27e; cursor: pointer;
  transform: translateX(-4px); transition: transform .3s var(--lm-ease), background-color .3s var(--lm-ease); }
.luliy-mascot-hub.lm-open .luliy-mascot-peek { transform: none; background: rgba(16,22,38,.94); }
.luliy-mascot-peek:focus-visible, .lm-it:focus-visible { outline: none; }
.luliy-mascot-peek .lm-fig { display: block; width: 44px; height: auto; }
/* the word behind her: the box grows with the word, the word itself is written left to right with a soft mask */
.lm-w { position: relative; display: block; flex: none; width: 0; height: 34px; margin: 0 0 -2.7px; overflow: hidden;
  transition: width .4s var(--lm-ease), margin-left .4s var(--lm-ease); }
.lm-open .lm-w { margin-left: -3px; }
.lm-wd { position: absolute; left: 0; bottom: 0; max-width: none; opacity: 0; transition: opacity .15s ease;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 55%); mask-image: linear-gradient(90deg, #000 45%, transparent 55%);
  -webkit-mask-size: 240% 100%; mask-size: 240% 100%; -webkit-mask-position: 100% 0; mask-position: 100% 0; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.lm-wd.on { opacity: 1; animation: lm-write .5s var(--lm-ease) .08s both; }
@keyframes lm-write { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
/* keeps the pointer inside the hub while it moves between her and the doors */
.lm-zone { position: absolute; left: 0; bottom: 0; width: 150px; height: 150px; pointer-events: none; }
.lm-open .lm-zone { pointer-events: auto; }
.lm-arc { position: absolute; left: 0; bottom: 0; width: 200px; height: 200px; max-width: none; overflow: visible; pointer-events: none; } /* the site sets svg { max-width: 100% }: inside the zero-size hub that would hide it */
.lm-arc path { fill: none; stroke: rgba(226,194,126,.3); stroke-width: 1; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s var(--lm-ease); }
.lm-open .lm-arc path { stroke-dashoffset: 0; transition-delay: .05s; }
.lm-it { position: absolute; translate: -50% 50%; padding: 5px 4px; white-space: nowrap; text-decoration: none; pointer-events: none;
  font-family: "Noto Serif TC", "Songti TC", "Source Han Serif TC", "Noto Serif CJK TC", serif; font-size: 12px; line-height: 1.2; letter-spacing: .3em; text-indent: .3em;
  color: #e2c27e; opacity: 0; transition: opacity .3s var(--lm-ease); }
.lm-open .lm-it { opacity: .46; pointer-events: auto; }
.lm-open .lm-it:nth-of-type(2) { transition-delay: .05s; } .lm-open .lm-it:nth-of-type(3) { transition-delay: .1s; }
.lm-open .lm-it:nth-of-type(4) { transition-delay: .15s; } .lm-open .lm-it:nth-of-type(5) { transition-delay: .2s; }
.lm-open .lm-it.on { opacity: 1; transition-delay: 0s; }
/* the light appearance has a pale page behind the faint words: darker gold there */
html[data-appearance="light"] .lm-it { color: #7f5c26; }
html[data-appearance="light"] .lm-open .lm-it { opacity: .62; }
html[data-appearance="light"] .lm-arc path { stroke: rgba(127,92,38,.34); }
@media (prefers-reduced-motion: reduce) {
  .luliy-mascot-peek, .lm-w, .lm-wd, .lm-it, .lm-arc path { transition: none !important; animation: none !important; }
  .lm-wd.on { -webkit-mask: none; mask: none; }
}
/* 27e. Background hint (2026-10-31): her button column shows while she points at it. */
@media (min-width: 769px) { html.luliy-mascot-on .luliy-mascot.lm-hint .luliy-mascot-tools { opacity: 1; } }
/* 35. 文章 / 短札 / 編年史 tabs (2026-10-31): nothing moves or blinks when switching (home-fixes.js 32 / 35).
   a) Reserved scrollbar space, so a short tab never shifts sideways.
   b) 編年史 builds its tabs without the toolbar wrapper the other two use; give them the toolbar's exact box, so the
      three tabs stay at the same place and the content below starts at the same height on all three.
   c) No fade: the new tab is drawn at once. In 短札 only the note texts wait (≤ 0.3 s) for their first bodies, so the
      grey placeholders are not seen being replaced; avatar, time and comment bar show immediately. */
html:has(#main .post-archive) { scrollbar-gutter: stable; }
#main .post-archive > .article-modes { padding: 0 0 18px; margin: 0 0 30px; gap: clamp(24px, 4vw, 64px); align-items: flex-start; }
@media (min-width: 601px) {
  #main .post-archive > .article-modes, #main .article-browse-toolbar { min-height: 63px; box-sizing: border-box; }
}
@media (max-width: 600px) {
  #main .post-archive > .article-modes { padding-bottom: 14px; margin-bottom: 24px; gap: 22px; }
  #main .post-archive > .article-modes a { font-size: 18px; }
  #main .post-archive > .article-modes a[aria-current]:after { bottom: -15px; }
}
.luliy-journal .lj-feed.lj-settling .lj-note[aria-busy="true"] :is(.lj-text, .lj-media) { visibility: hidden; }

/* 36. Weekly / 周記 magazine layout (2026-10-31; home-fixes.js 36). Everything here is scoped to html.lk-weekly,
   which is only set on blog articles labelled `weekly`. Paper follows the site appearance: 白紙 for light, 夜間 otherwise.
   Fonts stay the site's own (--font-body, --font-mono). */
html.lk-weekly {
  --lk-bg: #121212; --lk-surface: #1b1b1a; --lk-ink: #cfcac0; --lk-soft: #a39e94; --lk-mute: #7d786f; --lk-rule: #2e2d2a; --lk-acc: #c98a62;
  --lk-fs: 19px; --lk-lh: 1.85;
}
html.lk-weekly[data-appearance="light"] {
  --lk-bg: #f5f2ea; --lk-surface: #ebe6dc; --lk-ink: #1d1b18; --lk-soft: #5d5850; --lk-mute: #8a8478; --lk-rule: #d9d3c5; --lk-acc: #8a2b1f;
}
@media (max-width: 700px) { html.lk-weekly { --lk-fs: 17.5px; --lk-lh: 1.9; } }

/* a) the page: paper, nothing behind the text */
/* beats html:root[data-appearance][data-palette] body (the palette sky) */
html.lk-weekly.lk-weekly:root[class], html.lk-weekly.lk-weekly:root[class] :is(body, .page-above) { background: var(--lk-bg) !important; background-image: none !important; }
html.lk-weekly :is(.subpage-stars, .click-stars, #luliy-article-bg),
html.lk-weekly #main :is(.source-toc, .reader-float, .source-meta, .reader-series) { display: none !important; }
html.lk-weekly #header { background: var(--lk-bg); box-shadow: 0 -14px 0 var(--lk-bg); }
html.lk-weekly body.luliy-article-bg-on :is(.article-body, #sourceArticleBody, .source-end, .source-end *) { text-shadow: none !important; }
html.lk-weekly #main { padding-bottom: 72px; }
html.lk-weekly #main .source-reading { max-width: 700px; margin-inline: auto; color: var(--lk-ink); }
html.lk-weekly #main .source-layout { display: block !important; }

/* c) masthead */
html.lk-weekly #main .lk-kick { margin: 0 0 14px; font: 600 11.5px/1 var(--font-mono); letter-spacing: .26em; color: var(--lk-acc); text-transform: uppercase; }
html.lk-weekly #main .source-reading > h1 { margin: 0 0 22px; font-family: var(--font-body); font-size: clamp(32px, 5vw, 46px); line-height: 1.2; font-weight: 700;
  letter-spacing: .01em; color: var(--lk-ink); text-shadow: none; text-align: left; }
html.lk-weekly #main .lk-by { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  margin: 0 0 2.2em; padding: 16px 0 12px; border-bottom: 1px solid var(--lk-rule); font: 11.5px/1.4 var(--font-mono); letter-spacing: .1em; color: var(--lk-mute); }
html.lk-weekly #main .lk-by::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-top: 3px solid var(--lk-ink); border-bottom: 1px solid var(--lk-ink); }
html.lk-weekly #main .lk-by b { color: var(--lk-ink); font-weight: 600; letter-spacing: .18em; }
html.lk-weekly #main .lk-by > span:last-child { display: flex; align-items: center; gap: 16px; }
html.lk-weekly #main .lk-share { font: inherit; letter-spacing: inherit; color: var(--lk-ink); background: none; border: 1px solid var(--lk-ink); padding: 4px 9px; cursor: pointer;
  transition: background-color .1s steps(2), color .1s steps(2); }
html.lk-weekly #main .lk-share:hover, html.lk-weekly #main .lk-share:focus-visible { background: var(--lk-ink); color: var(--lk-bg); outline: none; }

/* c) the text */
html.lk-weekly #main .source-body { width: auto !important; max-width: none !important; font-family: var(--font-body); font-size: var(--lk-fs) !important;
  line-height: var(--lk-lh) !important; color: var(--lk-ink) !important; text-align: justify; text-justify: inter-character; letter-spacing: .015em; }
html.lk-weekly #main .source-body :is(p, li, td, th, blockquote, figcaption) { color: inherit; }
html.lk-weekly #main .source-body p { margin: 0; }
html.lk-weekly #main .source-body p:where(:not(:has(img, video, iframe)):not(.lk-cap)) { text-indent: 2em; }
html.lk-weekly #main .source-body p + p { margin-top: .2em; }
html.lk-weekly #main .source-body :is(ul, ol, pre, table, figure, .markdown-alert, blockquote, hr) + p { margin-top: 1em; }
html.lk-weekly #main .source-body :is(td, th, li, blockquote, .markdown-alert, details) p { text-indent: 0; }
html.lk-weekly #main .source-body p.lk-first { text-indent: 0; }
html.lk-weekly #main .source-body p.lk-first::first-letter { float: left; margin: .1em .14em 0 0; font-size: 3.5em; line-height: .86; font-weight: 700; color: var(--lk-acc); }
html.lk-weekly #main .source-body :is(h1, h2, h3, h4) { color: var(--lk-ink); text-align: left; text-shadow: none; letter-spacing: .01em; break-after: avoid; }
html.lk-weekly #main .source-body h1 { margin: 2.2em 0 .7em; font-size: 1.36em; line-height: 1.35; font-weight: 700; }
html.lk-weekly #main .source-body h2 { margin: 1.9em 0 .6em; font-size: 1.16em; line-height: 1.4; font-weight: 700; }
html.lk-weekly #main .source-body :is(h3, h4) { margin: 1.6em 0 .5em; font-size: 1em; font-weight: 700; }
html.lk-weekly #main .source-body > :first-child, html.lk-weekly #main .source-body > .markdown-body > :first-child { margin-top: 0; }
html.lk-weekly #main .source-body a { color: var(--lk-ink); text-decoration: underline; text-decoration-color: var(--lk-acc); text-underline-offset: 4px; }
html.lk-weekly #main .source-body :is(ul, ol) { margin: .8em 0; padding-left: 1.6em; text-align: left; }
html.lk-weekly #main .source-body li { margin: .3em 0; }
html.lk-weekly #main .source-body li::marker { color: var(--lk-acc); }
html.lk-weekly #main .source-body blockquote { margin: 1.4em 0; padding: .1em 0 .1em 1.2em; border-left: 2px solid var(--lk-ink); color: var(--lk-soft); background: none; font-style: normal; }
html.lk-weekly #main .source-body blockquote.lk-pull { margin: 1.8em 0; padding: .9em 0 1em; border: 0; border-top: 2px solid var(--lk-ink); border-bottom: 1px solid var(--lk-rule);
  color: var(--lk-ink); font-size: 1.28em; line-height: 1.55; font-weight: 600; text-align: left; }
html.lk-weekly #main .source-body blockquote.lk-pull::before { content: "\201C"; display: block; height: .42em; font: 700 2.4em/.9 'Times New Roman', serif; color: var(--lk-acc); }
html.lk-weekly #main .source-body img { display: block; max-width: 100%; height: auto; margin: 1.6em auto 0; border-radius: 0; }
html.lk-weekly #main .source-body .lk-cap { display: block; margin: .6em 0 1.6em; text-align: left; text-indent: 0; font: 12.5px/1.6 var(--font-mono); letter-spacing: .04em; color: var(--lk-mute); }
html.lk-weekly #main .source-body hr { height: auto; margin: 2.4em 0; border: 0; background: none; text-align: center; }
html.lk-weekly #main .source-body hr::after { content: "\00B7\2003\00B7\2003\00B7"; color: var(--lk-mute); }
html.lk-weekly #main .source-body :is(pre, code) { font-family: var(--font-mono); text-align: left; }
html.lk-weekly #main .source-body :not(pre) > code { padding: .1em .35em; font-size: .86em; background: var(--lk-surface); color: var(--lk-ink); border-radius: 3px; }
html.lk-weekly #main .source-body pre { margin: 1.4em 0; padding: 14px 16px; font-size: 14px; line-height: 1.7; background: var(--lk-surface) !important; color: var(--lk-ink);
  border: 1px solid var(--lk-rule); border-radius: 2px; overflow: auto; }
html.lk-weekly #main .source-body table { display: table; width: 100%; margin: 1.4em 0; border-collapse: collapse; font-size: .9em; line-height: 1.6; text-align: left; }
html.lk-weekly #main .source-body :is(th, td) { padding: .55em .7em; border: 0; border-bottom: 1px solid var(--lk-rule); background: none; }
html.lk-weekly #main .source-body th { font: 600 11.5px/1.4 var(--font-mono); letter-spacing: .12em; color: var(--lk-mute); border-bottom-color: var(--lk-ink); }
html.lk-weekly #main .source-body .lk-end { display: inline-block; width: .55em; height: .55em; margin-left: .4em; vertical-align: .06em; background: var(--lk-acc); }
html.lk-weekly #main .source-body ::selection { background: var(--lk-ink); color: var(--lk-bg); }

/* c) after the text: 上一期 / 下一期, comments, end links */
html.lk-weekly #main .lk-pn { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 3em 0 0; }
html.lk-weekly #main .lk-pn a { display: block; padding: 12px 14px; border: 1px solid var(--lk-ink); color: var(--lk-ink); text-decoration: none;
  transition: background-color .1s steps(2), color .1s steps(2); }
html.lk-weekly #main .lk-pn a:hover, html.lk-weekly #main .lk-pn a:focus-visible { background: var(--lk-ink); color: var(--lk-bg); outline: none; }
html.lk-weekly #main .lk-pn small { display: block; margin-bottom: 4px; font: 10.5px/1.4 var(--font-mono); letter-spacing: .16em; color: var(--lk-mute); }
html.lk-weekly #main .lk-pn a:hover small, html.lk-weekly #main .lk-pn a:focus-visible small { color: inherit; }
html.lk-weekly #main .lk-pn b { font: 700 15px/1.45 var(--font-body); }
html.lk-weekly #main .lk-pn .nx { text-align: right; }
html.lk-weekly #main .luliy-comments { margin-top: 3em; padding-top: 1.4em; border-top: 1px solid var(--lk-rule); }
html.lk-weekly #main .luliy-comments > h2 { font: 600 11.5px/1 var(--font-mono); letter-spacing: .26em; color: var(--lk-acc); text-transform: uppercase; }
html.lk-weekly #main .source-end { border-color: var(--lk-rule); }
html.lk-weekly #main .source-end a { font: 12px var(--font-mono); letter-spacing: .08em; color: var(--lk-mute); background: none !important; text-shadow: none; }
html.lk-weekly #main .source-end a:hover { color: var(--lk-ink); }

/* d) status bar and contents drawer (outside #main; hidden on every other page) */
.lk-bar, .lk-drawer, .lk-dim { display: none; }
html.lk-weekly .lk-bar { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; max-width: calc(100vw - 20px); padding: 6px 8px;
  overflow-x: auto; scrollbar-width: none; background: color-mix(in srgb, var(--lk-bg) 92%, var(--lk-ink)); border: 1px solid var(--lk-rule); border-radius: 999px; box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
  font: 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--lk-mute); transition: transform var(--dur-base, .3s) var(--ease, ease), bottom var(--dur-base, .3s) var(--ease, ease); }
html.lk-weekly .lk-bar::-webkit-scrollbar { display: none; }
html.lk-weekly.lm-bar-mode .lk-bar { bottom: calc(var(--lm-bar-space, 80px) + 12px); }
html.lk-weekly .lk-no { padding: 8px 10px 8px 12px; font: 600 12px/1 var(--font-mono); letter-spacing: .14em; color: var(--lk-acc); white-space: nowrap; background: none; border: 0; border-radius: 999px; cursor: pointer; }
html.lk-weekly .lk-no:hover { background: color-mix(in srgb, var(--lk-acc) 14%, transparent); }
html.lk-weekly .lk-issues { position: fixed; z-index: 75; width: 320px; max-height: 50vh; margin: 0; padding: 6px; overflow: auto; list-style: none; background: var(--lk-bg); border: 1px solid var(--lk-rule); border-radius: 14px; box-shadow: 0 12px 32px rgba(0, 0, 0, .32); }
html.lk-weekly .lk-issues[hidden] { display: none; }
html.lk-weekly .lk-issues a { display: flex; gap: 12px; align-items: baseline; padding: 10px 12px; border-radius: 9px; color: var(--lk-ink); text-decoration: none; font: 14px/1.4 var(--font-body); }
html.lk-weekly .lk-issues a b { flex: none; font: 600 12px/1 var(--font-mono); letter-spacing: .12em; color: var(--lk-acc); }
html.lk-weekly .lk-issues a:hover { background: color-mix(in srgb, var(--lk-ink) 8%, transparent); }
html.lk-weekly .lk-issues a[aria-current] { background: color-mix(in srgb, var(--lk-acc) 16%, transparent); }
html.lk-weekly .lk-issues .lk-none { padding: 10px 12px; font: 13px var(--font-mono); color: var(--lk-mute); }
html:not(.lk-weekly) .lk-issues { display: none !important; }
html.lk-weekly .lk-chs { display: flex; align-items: center; gap: 4px; }
html.lk-weekly .lk-chs a { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; font-size: 13px; color: var(--lk-mute); text-decoration: none; white-space: nowrap; }
html.lk-weekly .lk-chs a:hover { color: var(--lk-ink); }
html.lk-weekly .lk-chs .lk-nm { display: none; }
html.lk-weekly .lk-chs a.act { background: var(--lk-acc); color: var(--lk-bg); }
html.lk-weekly .lk-chs a.act .lk-nm { display: inline; letter-spacing: .02em; font-family: var(--font-body); }
html.lk-weekly .lk-sub { display: none; padding-left: 8px; border-left: 1px solid color-mix(in srgb, var(--lk-bg) 45%, transparent); color: inherit; white-space: nowrap; font-family: var(--font-body); letter-spacing: .02em; }
html.lk-weekly .lk-sub.on { display: inline; }
html.lk-weekly .lk-sub.on::before { content: "› "; opacity: .7; }
html.lk-weekly .lk-cur { display: none; max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 8px 12px; font: 13px/1 var(--font-body); color: var(--lk-acc); background: none; border: 0; cursor: pointer; }
html.lk-weekly .lk-bar.lk-nochap .lk-chs { display: none; }
html.lk-weekly .lk-top { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; color: var(--lk-ink); background: none; border: 0; border-radius: 50%; cursor: pointer; }
html.lk-weekly .lk-top:hover { background: color-mix(in srgb, var(--lk-ink) 10%, transparent); }
html.lk-weekly .lk-top svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
html.lk-weekly :is(.lk-top, .lk-cur, .lk-chs a):focus-visible { outline: 2px solid var(--lk-acc); outline-offset: 1px; }
html.lk-weekly body.luliy-chrome-hidden .lk-bar { transform: translate(-50%, calc(100% + 60px + var(--lm-bar-space, 0px) + env(safe-area-inset-bottom))); opacity: 0; pointer-events: none; }
html.lk-weekly .lk-dim { position: fixed; inset: 0; z-index: 80; display: block; background: rgba(0, 0, 0, .22); opacity: 0; pointer-events: none; transition: opacity .25s; }
html.lk-weekly .lk-dim.open { opacity: 1; pointer-events: auto; }
html.lk-weekly .lk-drawer { position: fixed; top: 0; bottom: 0; left: 0; z-index: 81; display: flex; flex-direction: column; width: min(360px, 86vw);
  background: var(--lk-bg); color: var(--lk-ink); border-right: 1px solid var(--lk-rule); box-shadow: 12px 0 40px rgba(0, 0, 0, .16);
  transform: translateX(-102%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .7, .2, 1), visibility 0s .28s; outline: none; }
html.lk-weekly .lk-drawer.open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .7, .2, 1); }
html.lk-weekly .lk-drawer header { position: relative; padding: 26px 28px 18px; }
html.lk-weekly .lk-drawer header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; border-top: 3px solid var(--lk-ink); border-bottom: 1px solid var(--lk-ink); }
html.lk-weekly .lk-drawer header small { display: block; margin-bottom: 8px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .26em; color: var(--lk-acc); }
html.lk-weekly .lk-drawer header b { display: block; font: 700 21px/1.35 var(--font-body); }
html.lk-weekly .lk-drawer header span { display: block; margin-top: 6px; font: 11px/1.4 var(--font-mono); letter-spacing: .1em; color: var(--lk-mute); }
html.lk-weekly .lk-drawer ol { flex: 1; margin: 0; padding: 10px 0; list-style: none; overflow: auto; }
html.lk-weekly .lk-drawer a { display: block; padding: 12px 28px 12px 25px; border-left: 3px solid transparent; font: 16px/1.45 var(--font-body); color: var(--lk-ink); text-decoration: none; }
html.lk-weekly .lk-drawer a.l2 { padding-left: 45px; font-size: 14px; color: var(--lk-soft); }
html.lk-weekly .lk-drawer a:hover { background: color-mix(in srgb, var(--lk-ink) 6%, transparent); }
html.lk-weekly .lk-drawer a[aria-current] { border-left-color: var(--lk-acc); color: var(--lk-acc); }
html.lk-weekly .lk-drawer a:focus-visible { outline: 2px solid var(--lk-acc); outline-offset: -2px; }
html.lk-weekly .lk-drawer .lk-none { padding: 14px 28px; font: 13px var(--font-mono); color: var(--lk-mute); }
html.lk-weekly .lk-drawer footer { display: flex; justify-content: space-between; padding: 14px 28px 22px; border-top: 1px solid var(--lk-rule); font: 11.5px var(--font-mono); letter-spacing: .08em; color: var(--lk-mute); }
@media (max-width: 700px) {
  html.lk-weekly #main .lk-pn { grid-template-columns: 1fr; }
  html.lk-weekly #main .lk-pn .nx { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html.lk-weekly :is(.lk-drawer, .lk-dim, .lk-pn a, .lk-share) { transition: none !important; }
}
/* f) 2026-11-02. Loon stays on wider screens (phones still hide her on the paper page); the issue title keeps to one
   line (home-fixes.js fitTitle shrinks it); the byline date (2026年10月4日 / OCT 4, 2026) sits closer to its neighbours. */
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) { html.lk-weekly :is(.luliy-mascot, .luliy-mascot-hub) { display: none !important; } }
html.lk-weekly #main .source-reading > h1.lk-fit { white-space: nowrap; }
html.lk-weekly #main .lk-by > span:last-child { gap: 12px; letter-spacing: .04em; }
/* e) 2026-11-02. The phone header's frosted glass (section 'one header') takes the paper colour. */
html.lk-weekly.lk-weekly:root[class] { --luliy-wash: var(--lk-bg); }
/* e) 2026-11-02. Standfirst: an opening quote moves under the title (home-fixes.js 36 c). */
html.lk-weekly #main .source-body .lk-stand-src { display: none !important; }
html.lk-weekly #main .lk-stand { margin: -6px 0 22px; font: italic 400 clamp(17px, 2.2vw, 20px)/1.65 var(--font-body); letter-spacing: .02em; color: var(--lk-soft); text-wrap: pretty; }
/* Capsule contents bar (2026-11-02, replaces the status bar): see home-fixes.js 36 d. Phones: no issue label or chapter dots, just the current chapter (tap = the contents list) and ↑. */
@media (max-width: 680px) {
  html.lk-weekly .lk-no, html.lk-weekly .lk-chs, html.lk-weekly .lk-sub, html.lk-weekly .lk-sub.on { display: none; }
  html.lk-weekly .lk-cur { display: block; }
}
@media (prefers-reduced-motion: reduce) { html.lk-weekly .lk-bar { transition: none !important; } }

/* g) 2026-11-02. Paper backgrounds (home-fixes.js 36 e). The site's sky layer (.luliy-sky, phones) used to cover the
   paper colour on phones; it is hidden here, so the paper is the page everywhere. Four papers, html.lk-p-<id>:
   an 纸纹＋期号 (default) · a 纸纹＋暖光 · b 桌上的一本杂志 (desktop: the column is a sheet on a darker desk; phones as a)
   · c 版式栏线＋期号. Grain is an SVG noise tile; the issue number (data-lk-no on .source-reading) sits behind the title. */
html.lk-weekly .luliy-sky { display: none !important; }
html.lk-weekly { --lk-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 0.95 0 0 0 0 0.85 0 0 0 0.07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --lk-lamp: rgba(255, 228, 190, .06); --lk-desk: #0b0b0a; --lk-num: .045; }
html.lk-weekly[data-appearance="light"] { --lk-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.35 0 0 0 0 0.28 0 0 0 0 0.2 0 0 0 0.08 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); --lk-lamp: rgba(255, 252, 240, .7); --lk-desk: #ddd6c7; --lk-num: .06; }
html.lk-weekly.lk-weekly.lk-weekly:root[class]:is(.lk-p-an, .lk-p-a, .lk-p-b, .lk-p-c) :is(body, .page-above) { background-color: var(--lk-bg) !important; background-repeat: repeat, no-repeat !important;
  background-image: var(--lk-grain), radial-gradient(120% 60% at 50% -10%, var(--lk-lamp), transparent 60%) !important; }
html.lk-weekly.lk-weekly.lk-weekly:root[class].lk-p-c :is(body, .page-above) { background-image: var(--lk-grain),
  linear-gradient(90deg, transparent calc(50% - 351px), var(--lk-rule) calc(50% - 351px), var(--lk-rule) calc(50% - 350px), transparent calc(50% - 350px),
  transparent calc(50% + 350px), var(--lk-rule) calc(50% + 350px), var(--lk-rule) calc(50% + 351px), transparent calc(50% + 351px)) !important; }
html.lk-weekly #main .source-reading { position: relative; }
/* The issue number rests on the double rule under the title (the top of the byline), at the right, as tall as the block
   above the rule (home-fixes.js fitNumber), so the kicker / title / standfirst are vertically centred on it and read across it
   (2026-11-02; before: top right corner). */
html.lk-weekly:is(.lk-p-an, .lk-p-b) #main .lk-by[data-lk-no]::after { content: attr(data-lk-no); position: absolute; z-index: -1; right: -10px; bottom: calc(100% - .06em + var(--lk-num-up, 28px));
  font: 700 var(--lk-num-size, 210px)/.78 var(--font-body); letter-spacing: -.04em; color: var(--lk-ink); opacity: var(--lk-num); pointer-events: none; white-space: nowrap; }
@media (min-width: 769px) and (pointer: fine), (min-width: 1001px) {
  html.lk-weekly.lk-weekly.lk-weekly:root[class].lk-p-b :is(body, .page-above) { background-color: var(--lk-desk) !important; background-image: radial-gradient(90% 70% at 50% 0%, var(--lk-lamp), transparent 70%) !important; }
  html.lk-weekly.lk-p-b #main .source-reading::before { content: ""; position: absolute; z-index: -1; inset: -56px -64px -40px; border-radius: 2px;
    background: var(--lk-bg) var(--lk-grain); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 30px 80px rgba(0, 0, 0, .45), 0 2px 6px rgba(0, 0, 0, .3); }
  html.lk-weekly[data-appearance="light"].lk-p-b #main .source-reading::before { box-shadow: 0 24px 60px rgba(60, 45, 20, .18), 0 2px 6px rgba(60, 45, 20, .12); }
}
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  html.lk-weekly { --lk-num-size: 130px; --lk-num-up: 20px; }
  /* the music bar sits above the weekly bottom bar (第N期 / ↑) and drops back when that bar tucks away */
  html.lk-weekly.lm-bar-mode { --lm-bar-gap: 56px; }
  html.lk-weekly.lm-bar-mode:has(body.luliy-chrome-hidden) { --lm-bar-gap: max(10px, env(safe-area-inset-bottom)); }
  html.lk-weekly.lk-weekly.lk-weekly:root[class].lk-p-c :is(body, .page-above) { background-image: var(--lk-grain) !important; }
}

/* h) 2026-11-02. Desktop: a little less space under the text (the contents capsule floats). */
@media (min-width: 769px) and (pointer: fine), (min-width: 1001px) {
  html.lk-weekly #main { padding-bottom: 24px; }
}

/* 36 h) Cover (2026-11-06; home-fixes.js decorate). An opening image of the article becomes a full-width cover above
   the issue line (date moves into that line). Phones: the image's own proportions, cut flat. Desktop: capped height,
   fading into the paper. No opening image: no .lk-cover, no .lk-cov, nothing changes. */
html.lk-weekly .lk-cover { margin: 0 0 0 calc(50% - 50vw); width: 100vw; position: relative; overflow: hidden; z-index: 0; }
html.lk-weekly .lk-cover img { display: block; width: 100%; height: auto; max-height: 70svh; object-fit: cover; }
html.lk-weekly .lk-cover-src, html.lk-weekly .lk-cover-src + .lk-cap { display: none !important; }
html.lk-weekly #main .source-body a:has(> .lk-cover-src), html.lk-weekly #main .source-body a:has(> .lk-cover-src) + br { display: none !important; } /* 2026-11-07: the moved cover left two blank lines */
html.lk-weekly .lk-cov > .lk-by .lk-date { display: none; }
html.lk-weekly #main .source-reading.lk-cov { padding-top: 0 !important; }
html.lk-weekly .lk-cov > .lk-kick { padding-top: 30px !important; }
@media (min-width: 769px) and (pointer: fine), (min-width: 1001px) { html.lk-weekly .lk-cov > .lk-kick { padding-top: 52px !important; } }
@media (min-width: 769px) and (pointer: fine), (min-width: 1001px) {
  html.lk-weekly .lk-cover img { height: min(46vw, 640px); max-height: none; }
  html.lk-weekly .lk-cover::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; background: linear-gradient(transparent, var(--lk-desk, var(--lk-bg))); pointer-events: none; }
}

/* 36 i) The big issue numeral is the top layer (2026-11-06): same place as before (right, beside the title), now drawn
   over the title and standfirst instead of behind them. Still faint and click-through, so the text stays readable. */
html.lk-weekly:is(.lk-p-an, .lk-p-b) #main .lk-by[data-lk-no]::after { z-index: 5; }

/* 36 j) 封面光 (2026-11-06; home-fixes.js paper 'g', the default): paper b plus the cover, blurred and dimmed, lighting the desk
   on both sides of the sheet. Desktop only; phones and articles without a cover show plain paper b. */
html .lk-glow { display: none; }
@media (min-width: 769px) and (pointer: fine), (min-width: 1001px) {
  html.lk-weekly.lk-p-g .lk-glow { display: block; position: fixed; inset: -12%; z-index: -1; pointer-events: none;
    background: center / cover no-repeat; filter: blur(80px) saturate(1.2) brightness(.5); opacity: .85; }
  html.lk-weekly.lk-p-g .lk-cover::after { display: none; }
  html.lk-weekly.lk-p-g[data-appearance="light"] .lk-glow { filter: blur(80px) saturate(1.1) brightness(1.05); opacity: .4; }
}
@media (prefers-reduced-transparency: reduce) { html.lk-weekly.lk-p-g .lk-glow { opacity: .5; } }

/* 36 k) 2026-11-10. 姚說 issues: no byline (LULIY · date · time · 分享) under the title — the date is the line above the
   title (home-fixes.js decorate) — but the byline box stays, collapsed, as the anchor of the big numeral (its bottom is
   measured from the box's top, so it keeps its place) and gets a little relief. The standfirst is upright and lighter (no faux
   italic for Chinese). Desktop: the cover's lower edge fades into the page. The accent follows the cover (html.lk-cova). */
html.lk-weekly #main .source-reading[data-lk-no] > .lk-by { height: 0 !important; min-height: 0 !important; padding: 0 !important; border: 0 !important; margin-top: 0 !important; }
html.lk-weekly #main .source-reading[data-lk-no] > .lk-by > * { display: none !important; }
html.lk-weekly #main .source-reading[data-lk-no] > .lk-by::before { display: none !important; }
/* Relief on the big numeral and the soft top of the panel: desktop only (phones keep the flat numeral and no panel). */
@media (min-width: 769px) and (pointer: fine), (min-width: 1001px) {
  html.lk-weekly:is(.lk-p-an, .lk-p-b) #main .source-reading[data-lk-no] > .lk-by[data-lk-no]::after {
    opacity: 1; color: color-mix(in srgb, var(--lk-ink) 5.5%, transparent);
    text-shadow: -1px -1px 0 color-mix(in srgb, var(--lk-ink) 8%, transparent), 2px 2px 0 rgba(0, 0, 0, .16), 3px 6px 12px rgba(0, 0, 0, .16); }
  html.lk-weekly[data-appearance="light"]:is(.lk-p-an, .lk-p-b) #main .source-reading[data-lk-no] > .lk-by[data-lk-no]::after {
    color: color-mix(in srgb, var(--lk-ink) 6%, transparent); text-shadow: -1px -1px 0 rgba(255, 255, 255, .7), 2px 2px 0 rgba(60, 45, 20, .10), 4px 8px 14px rgba(60, 45, 20, .10); }
  /* an issue with a cover: the panel's top 150px fades in from nothing (no top edge over the cover), the cover fades out longer */
  /* the mask reaches 200px beyond the sheet on every side and is not clipped to it, so the sheet's shadow survives
     (2026-11-11: a plain mask cut the shadow off and the sheet turned into a hard-edged block) */
  html.lk-weekly.lk-p-b #main .source-reading.lk-cov::before {
    -webkit-mask: linear-gradient(to bottom, transparent 200px, rgba(0, 0, 0, .35) 260px, #000 350px) -200px -200px / calc(100% + 400px) calc(100% + 400px) no-repeat;
    mask: linear-gradient(to bottom, transparent 200px, rgba(0, 0, 0, .35) 260px, #000 350px) -200px -200px / calc(100% + 400px) calc(100% + 400px) no-repeat;
    -webkit-mask-clip: no-clip; mask-clip: no-clip; }
  /* the neighbouring issue paper fades in at the top like the sheet, along the whole reading length beside it;
     but in that fade zone only its outer strip (the 8px beside the sheet + 8px for the hover shift) is drawn,
     so it no longer shows through the faded sheet as a dark box right of the numeral. Below 140px it is whole.
     Not clipped, so its tab (outside the paper) stays */
  html.lk-weekly.lk-p-b #main .source-reading.lk-cov .lk-under.nx {
    -webkit-mask: linear-gradient(#000, #000) 0 140px / 100% 100% no-repeat, linear-gradient(to left, #000 216px, transparent 217px) -200px -200px / calc(100% + 400px) calc(100% + 400px) no-repeat, linear-gradient(to bottom, transparent 200px, rgba(0, 0, 0, .35) 252px, #000 342px) -200px -200px / calc(100% + 400px) calc(100% + 400px) no-repeat;
    -webkit-mask-composite: source-over, source-in;
    mask: linear-gradient(#000, #000) 0 140px / 100% 100% no-repeat, linear-gradient(to left, #000 216px, transparent 217px) -200px -200px / calc(100% + 400px) calc(100% + 400px) no-repeat, linear-gradient(to bottom, transparent 200px, rgba(0, 0, 0, .35) 252px, #000 342px) -200px -200px / calc(100% + 400px) calc(100% + 400px) no-repeat;
    mask-composite: add, intersect;
    -webkit-mask-clip: no-clip; mask-clip: no-clip; }
  html.lk-weekly.lk-p-b #main .source-reading.lk-cov .lk-under.pv {
    -webkit-mask: linear-gradient(#000, #000) 0 140px / 100% 100% no-repeat, linear-gradient(to right, #000 216px, transparent 217px) -200px -200px / calc(100% + 400px) calc(100% + 400px) no-repeat, linear-gradient(to bottom, transparent 200px, rgba(0, 0, 0, .35) 252px, #000 342px) -200px -200px / calc(100% + 400px) calc(100% + 400px) no-repeat;
    -webkit-mask-composite: source-over, source-in;
    mask: linear-gradient(#000, #000) 0 140px / 100% 100% no-repeat, linear-gradient(to right, #000 216px, transparent 217px) -200px -200px / calc(100% + 400px) calc(100% + 400px) no-repeat, linear-gradient(to bottom, transparent 200px, rgba(0, 0, 0, .35) 252px, #000 342px) -200px -200px / calc(100% + 400px) calc(100% + 400px) no-repeat;
    mask-composite: add, intersect;
    -webkit-mask-clip: no-clip; mask-clip: no-clip; }
  html.lk-weekly.lk-p-b #main .source-reading.lk-cov .lk-tab { top: 150px; }
  html.lk-weekly #main .lk-cover { -webkit-mask-image: linear-gradient(to bottom, #000 40%, rgba(0, 0, 0, .45) 75%, transparent); mask-image: linear-gradient(to bottom, #000 40%, rgba(0, 0, 0, .45) 75%, transparent); }
}
/* phones: the big numeral at half the size, in the top right corner of the title block (fitNumber sizes --lk-num-size from the block height, ~280px on a phone; digit height ≈ .72em) */
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) {
  html.lk-weekly:is(.lk-p-an, .lk-p-b) #main .lk-by[data-lk-no]::after { font-size: calc(var(--lk-num-size, 130px) * .5); right: 0;
    bottom: calc(100% - .06em + var(--lk-num-up, 20px) + var(--lk-num-size, 130px) * .24); } /* top right of the title block (its top = the date line) */
}
html.lk-weekly #main .lk-stand { font-style: normal; color: color-mix(in srgb, var(--lk-ink) 62%, transparent); }
html.lk-weekly.lk-cova { --lk-acc: var(--lk-cov-d); }
html.lk-weekly.lk-cova[data-appearance="light"] { --lk-acc: var(--lk-cov-l); }

/* 36 k) 往期 (2026-11-06; home-fixes.js stack(), series()).
   纸角: desk papers (b, g), desktop. The neighbouring issue lies under the sheet (.lk-under, behind the sheet's ::before):
   a thin edge shows along the side, and an index tab with its number sticks out near the top. */
html .lk-stack { display: none; }
@media (min-width: 1100px) and (pointer: fine) {
  html.lk-weekly.lk-p-b #main .lk-stack { display: block; }
  html.lk-weekly.lk-p-b #main .lk-under { position: absolute; z-index: -2; top: -48px; bottom: -32px; width: 120px; display: block; text-decoration: none; color: var(--lk-ink);
    background: var(--lk-bg) var(--lk-grain); filter: brightness(.84); box-shadow: 0 20px 50px rgba(0, 0, 0, .35); transition: transform .3s var(--ease-soft, ease), filter .25s; }
  html.lk-weekly.lk-p-b #main .lk-under.pv { left: -72px; }
  html.lk-weekly.lk-p-b #main .lk-under.nx { right: -72px; }
  html.lk-weekly.lk-p-b #main .lk-tab { position: absolute; top: 64px; width: 30px; height: 62px; display: grid; place-items: center; background: inherit; border-radius: 2px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .25); }
  html.lk-weekly.lk-p-b #main .pv .lk-tab { left: -26px; border-radius: 3px 0 0 3px; }
  html.lk-weekly.lk-p-b #main .nx .lk-tab { right: -26px; border-radius: 0 3px 3px 0; }
  html.lk-weekly.lk-p-b #main .lk-tab b { font: 600 11px/1 var(--font-mono); letter-spacing: .08em; color: var(--lk-acc); }
  html.lk-weekly.lk-p-b #main .lk-tip { position: absolute; top: 64px; display: block; width: max-content; max-width: 220px; padding: 9px 12px; font-size: 13px; line-height: 1.45;
    color: var(--lk-ink); background: var(--lk-bg) var(--lk-grain); box-shadow: 0 10px 28px rgba(0, 0, 0, .3); opacity: 0; pointer-events: none; transition: opacity .2s, transform .25s; }
  html.lk-weekly.lk-p-b #main .lk-tip small { display: block; margin-bottom: 2px; font: 10px/1.3 var(--font-mono); letter-spacing: .18em; color: var(--lk-mute); }
  html.lk-weekly.lk-p-b #main .pv .lk-tip { right: calc(100% + 34px); transform: translateX(8px); }
  html.lk-weekly.lk-p-b #main .nx .lk-tip { left: calc(100% + 34px); transform: translateX(-8px); }
  html.lk-weekly.lk-p-b #main .lk-under:is(:hover, :focus-visible) { filter: brightness(.95); outline: none; }
  html.lk-weekly.lk-p-b #main .lk-under.pv:is(:hover, :focus-visible) { transform: translateX(-8px); }
  html.lk-weekly.lk-p-b #main .lk-under.nx:is(:hover, :focus-visible) { transform: translateX(8px); }
  html.lk-weekly.lk-p-b #main .lk-under:is(:hover, :focus-visible) .lk-tip { opacity: 1; transform: none; }
  html.lk-weekly.lk-p-b #main .lk-under:focus-visible .lk-tab { outline: 2px solid var(--lk-acc); outline-offset: 2px; }
}
/* 下期预告: the next-issue link becomes a card with that issue's cover (when it has one). */
html.lk-weekly #main .lk-pn .nx.lk-has-img { position: relative; grid-column: 1 / -1; order: -1; min-height: 220px; padding: 0; overflow: hidden; border: 0; color: #fff; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; }
html.lk-weekly #main .lk-pn .nx.lk-has-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .6s var(--ease-soft, ease); }
html.lk-weekly #main .lk-pn .nx.lk-has-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 35%, rgba(0, 0, 0, .72)); }
html.lk-weekly #main .lk-pn .nx.lk-has-img :is(small, b) { position: relative; z-index: 1; padding: 0 20px; }
html.lk-weekly #main .lk-pn .nx.lk-has-img small { color: rgba(255, 255, 255, .8); }
html.lk-weekly #main .lk-pn .nx.lk-has-img b { padding-bottom: 18px; font-size: 22px; }
html.lk-weekly #main .lk-pn .nx.lk-has-img:is(:hover, :focus-visible) { background: none; color: #fff; }
html.lk-weekly #main .lk-pn .nx.lk-has-img:is(:hover, :focus-visible) img { transform: scale(1.03); }
html.lk-weekly #main .lk-pn .nx.lk-has-img:focus-visible { outline: 2px solid var(--lk-acc); outline-offset: 3px; }
html.lk-weekly #main .lk-pn:has(.nx.lk-has-img) > span:empty { display: none; }
@media (prefers-reduced-motion: reduce) { html.lk-weekly #main :is(.lk-under, .lk-tip, .lk-pn img) { transition: none !important; } }

/* 36 l) Loon's contents as ticks (2026-11-07; after Maggie Appleton's contents). Her bubble shows one short line per heading
   (sub-headings shorter, the one being read lit) over "02 章名 · 小节". Hover (or a click, which pins it) opens it
   upward: the headings fade in from a blur one after another; the issue switcher stays at the top. Replaces the ribbon. */
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .luliy-mascot .lk-card { width: auto; min-width: 0; max-width: var(--lk-card-w, 260px); padding: 0; border: 0; border-radius: 12px; overflow: visible;
  background: color-mix(in srgb, var(--lk-bg) 94%, transparent); color: var(--lk-ink); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); backdrop-filter: blur(8px); }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .luliy-mascot .lk-card::after { content: ""; display: block; position: absolute; left: 46px; bottom: -8px; width: 0; height: 0; border: 8px solid transparent; border-bottom: 0;
  border-top-color: color-mix(in srgb, var(--lk-bg) 94%, transparent); background: none; transform: none; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card-row { padding: 0; align-self: stretch; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card-line { flex: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 10px 14px 10px 12px; clip-path: none; background: none; filter: none;
  box-shadow: none; border-radius: 12px; color: var(--lk-ink); font: 13.5px/1.3 var(--font-body); }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card-line:hover { background: none; filter: none; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-tk { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; max-width: 200px; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-tk i { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--lk-mute); opacity: .5; transition: background .3s, opacity .3s; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-tk i.l2 { width: 9px; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-tk i.on { background: var(--lk-acc); opacity: 1; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-now { display: flex; align-items: baseline; gap: 8px; max-width: 100%; min-width: 0; white-space: nowrap; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-now b { flex: none; font: 600 11px/1 var(--font-mono); letter-spacing: .08em; color: var(--lk-acc); }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-now .lk-cl-ch { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--lk-ink); }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card.open .lk-tk { display: none; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card.open .lk-card-line { border-top: 1px solid color-mix(in srgb, var(--lk-ink) 12%, transparent); border-radius: 0 0 12px 12px; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card.open .lk-card-panel { width: var(--lk-card-w, 260px); margin: 0; padding: 8px 4px 4px; background: none; border: 0; box-shadow: none; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card-ib { background: transparent; border-bottom: 1px solid color-mix(in srgb, var(--lk-ink) 12%, transparent); }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card :is(.lk-card-iss, .lk-card-list) a { padding: 6px 10px; border-radius: 6px; font-size: 13.5px; color: var(--lk-mute); }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card .lk-card-list a.l2 { padding-left: 34px; font-size: 13px; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card .lk-card-list a[aria-current] { border-left: 0; padding-left: 10px; color: var(--lk-acc); font-weight: 600; background: none; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card .lk-card-list a.l2[aria-current] { padding-left: 34px; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card :is(.lk-card-iss, .lk-card-list) a:hover { color: var(--lk-ink); background: color-mix(in srgb, var(--lk-ink) 6%, transparent); }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card.open .lk-card-list li { animation: lk-tkin .35s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(min(var(--i, 0), 14) * 30ms); }
@keyframes lk-tkin { from { opacity: 0; filter: blur(8px); } to { opacity: 1; filter: none; } }
@media (prefers-reduced-motion: reduce) { html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-card.open .lk-card-list li { animation: none; } }

/* 36 m) Essays (2026-11-07): every article that is not AI / Study / Doc / Guidebook uses this page too; the issue parts stay
   away (no issue icon in the capsule, no issue switcher in Loon's contents). */
html.lk-essay .lk-bar .lk-no, html.lk-essay .lk-card .lk-card-ib, html.lk-essay .lk-card .lk-card-iss { display: none !important; }

/* 36 n) 學習 on the magazine page (2026-11-07). Study articles use the weekly page; section 37 keeps their notebook parts
   (GitHub alert boxes, bold as highlighter, 本篇要点 with review cards, footnotes in the margin) under html.lsm-study —
   the same rules as html.ls-study, without its framed squared-paper box. The kicker reads 學習. */
html.lk-weekly.lsm-study { --ls-gold: var(--lk-acc); --ls-gold2: color-mix(in srgb, var(--lk-acc) 75%, var(--lk-ink)); --ls-mono: var(--font-mono); }
html.lk-weekly.lsm-study #main .source-body :is(strong, b):not(.markdown-alert-title *) { font-weight: 600; background: linear-gradient(transparent 55%, color-mix(in srgb, var(--accent) 34%, transparent) 55% 92%, transparent 92%); padding: 0 .1em; }
html.lk-weekly.lsm-study #main .source-body .ls-box { margin: 1.5em 0; padding: .9em 1.1em; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-left-width: 1px; border-radius: 6px;
  background: color-mix(in srgb, var(--c) 9%, transparent); color: inherit; }
html.lk-weekly.lsm-study #main .source-body .ls-note { --c: #7fa6d6; }
html.lk-weekly.lsm-study #main .source-body .ls-important { --c: var(--accent); }
html.lk-weekly.lsm-study #main .source-body .ls-box > p { margin: 0; text-indent: 0; }
html.lk-weekly.lsm-study #main .source-body .ls-box > p + p { margin-top: .4em; }
html.lk-weekly.lsm-study #main .source-body .ls-box .ls-box-title { margin: 0 0 .35em; font: 600 11.5px/1 var(--ls-mono); letter-spacing: .2em; color: var(--c); }
html.lk-weekly.lsm-study #main .source-body .ls-keys { margin: 2.6em 0 0; padding: 22px 24px; border: 1px solid var(--accent); border-radius: 6px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
html.lk-weekly.lsm-study #main .source-body .ls-keys h3 { margin: 0 0 10px; font: 600 12px/1 var(--ls-mono); letter-spacing: .24em; color: var(--ls-gold); }
html.lk-weekly.lsm-study #main .source-body .ls-keys ol { margin: 0; padding-left: 1.4em; font-size: .92em; line-height: 1.85; }
html.lk-weekly.lsm-study #main .source-body .ls-keys li::marker { color: var(--ls-gold); font-family: var(--ls-mono); }
html.lk-weekly.lsm-study #main .source-body .ls-go { margin-top: 14px; font: 12.5px var(--ls-mono); color: var(--bg); background: var(--accent); border: 0; border-radius: 4px; padding: 7px 12px; cursor: pointer; }
html.lk-weekly.lsm-study #main .source-body .ls-fc { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--accent); border-radius: 6px; }
html.lk-weekly.lsm-study #main .source-body .ls-fc small { display: block; font: 11px var(--ls-mono); color: var(--muted); margin-bottom: 6px; }
html.lk-weekly.lsm-study #main .source-body .ls-fc p { margin: 0; }
html.lk-weekly.lsm-study #main .source-body .ls-fc .ls-q { color: var(--ls-gold2); }
html.lk-weekly.lsm-study #main .source-body .ls-row { display: flex; gap: 8px; margin-top: 10px; }
html.lk-weekly.lsm-study #main .source-body .ls-row button { flex: 1; font: 12.5px var(--font-ui); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 7px; cursor: pointer; }
html.lk-weekly.lsm-study #main .source-body .ls-row button:hover, html.lk-weekly.lsm-study #main .source-body .ls-row button:focus-visible { border-color: var(--accent); color: var(--ls-gold); outline: none; }
html.lk-weekly.lsm-study #main .source-body .ls-sn { position: absolute; left: calc(100% + 28px); width: 210px; padding-left: 12px; border-left: 1px solid var(--accent); font: 13px/1.65 var(--font-body); color: var(--muted); }
html.lk-weekly.lsm-study #main .source-body .ls-sn { display: none; } /* on the sheet, footnotes stay at the end */
html.lk-weekly.lsm-study #main .source-body { position: relative; }
html.lk-weekly.lsm-study #main .source-body .ls-sn b { margin-right: 6px; font: 600 11px var(--ls-mono); color: var(--ls-gold); }
html.lk-weekly.lsm-study #main .source-body .ls-tip { --c: #7fbf9a; }
html.lk-weekly.lsm-study #main .source-body :is(.ls-warning, .ls-caution) { --c: #e0956a; }

/* 37. Article styles by label (2026-11-01; home-fixes.js 37): 隨筆 / 成長 (夜讀手稿), 學習 (夜間筆記本), AI (提示詞工作台).
   Scoped to html.ls-on + ls-<style>. Colours come from the site theme (--ink, --muted, --line, --accent), so light
   appearance works too. Loon stays; the article artwork and the orange meta row do not. */
html.ls-on { --ls-gold: var(--accent); --ls-gold2: color-mix(in srgb, var(--accent) 70%, #fff3cf); --ls-mono: var(--font-mono); }
html.ls-on[data-appearance="light"] { --ls-gold2: color-mix(in srgb, var(--accent) 85%, #000); }
html.ls-on #main .source-meta { display: none !important; }
/* 2026-11-02: the artwork layer and the contents panel's 背景 button are no longer hidden on label pages; the default is
   still 无背景, and a picked background gets the usual scrim and text shadows. */
html.ls-on #main .ls-share { font: inherit; letter-spacing: inherit; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 11px; cursor: pointer; }
html.ls-on #main .ls-share:hover, html.ls-on #main .ls-share:focus-visible { color: var(--ls-gold); border-color: var(--ls-gold); outline: none; }

/* b) 隨筆 / 成長 */
html:is(.ls-musings, .ls-growth) .subpage-stars { opacity: .5; }
html:is(.ls-musings, .ls-growth):not([data-appearance="light"]) { --ls-shade: rgba(4, 5, 8, .35); }
html:is(.ls-musings, .ls-growth):not([data-appearance="light"]) .page-above::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: var(--ls-shade); }
html:is(.ls-musings, .ls-growth) #main .source-reading > :is(.ls-head, h1, .ls-meta) { text-align: center !important; margin-inline: auto !important; }
html:is(.ls-musings, .ls-growth) #main .ls-eyebrow { margin: 0 0 20px; font: 13px/1 var(--font-body); letter-spacing: .3em; color: var(--muted); }
html.ls-growth #main .ls-script { margin: 0 0 12px; font: 54px/1.25 var(--font-script); color: var(--ls-gold);
  background: linear-gradient(180deg, #f6e9c6, #e0c58d 45%, #b18a48); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
html.ls-growth[data-appearance="light"] #main .ls-script { background: linear-gradient(180deg, #b58a45, #8b6840); -webkit-background-clip: text; background-clip: text; }
html:is(.ls-musings, .ls-growth) #main .source-reading > h1 { margin: 0; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.3; text-shadow: none; }
html:is(.ls-musings, .ls-growth) #main .ls-uline { display: block; width: 220px; height: 16px; margin: 12px auto 16px; }
html:is(.ls-musings, .ls-growth) #main .ls-uline svg { display: block; width: 100%; height: 100%; max-width: none; }
html:is(.ls-musings, .ls-growth) #main .ls-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 52px; font: 13px/1.4 var(--font-body); letter-spacing: .12em; color: var(--muted); }
html:is(.ls-musings, .ls-growth) #main .source-body { line-height: 2.05 !important; }
html:is(.ls-musings, .ls-growth) #main .source-body :is(h1, h2) { text-align: center; letter-spacing: .1em; }
html:is(.ls-musings, .ls-growth) #main .source-body blockquote.ls-gq { margin: 2.2em 1em; padding: 0; border: 0; background: none; text-align: center; font-size: 1.3em; line-height: 1.7; color: var(--ls-gold2); }
html:is(.ls-musings, .ls-growth):not([data-appearance="light"]) #main .source-body blockquote.ls-gq { text-shadow: 0 0 18px rgba(240, 214, 143, .18); }
html:is(.ls-musings, .ls-growth) #main .source-body hr { display: none; }
html:is(.ls-musings, .ls-growth) #main .source-body .ls-leaf { display: block; width: 46px; height: 20px; margin: 2.6em auto; color: var(--ls-gold); }
html:is(.ls-musings, .ls-growth) #main .source-body .ls-leaf svg { display: block; width: 100%; height: 100%; max-width: none; }
html:is(.ls-musings, .ls-growth) #main .source-body .ls-sign { margin: 2em 0 0; text-align: center; text-indent: 0; font: 34px/1.3 var(--font-script); color: var(--ls-gold); }

/* c) 學習 */
html.ls-study #main .ls-eyebrow, html.ls-ai #main .ls-eyebrow { margin: 0 0 12px; font: 600 11.5px/1 var(--ls-mono); letter-spacing: .24em; color: var(--ls-gold); }
html.ls-ai #main .ls-eyebrow::before { content: "> "; color: var(--muted); }
html:is(.ls-study, .ls-ai) #main .source-reading > h1 { margin: 0 0 10px; text-shadow: none; }
html:is(.ls-study, .ls-ai) #main .ls-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 30px; font: 12px/1.4 var(--ls-mono); letter-spacing: .08em; color: var(--muted); }
html.ls-ai #main .ls-meta > span:not(:empty) { border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; }
html.ls-study #main .source-body { position: relative; padding: 40px 44px 44px 56px !important; border: 1px solid var(--line); border-radius: 6px;
  background: linear-gradient(color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px) 0 0 / 100% 28px,
              linear-gradient(90deg, color-mix(in srgb, var(--ink) 4%, transparent) 1px, transparent 1px) 0 0 / 28px 100%,
              color-mix(in srgb, var(--bg) 82%, transparent); box-sizing: border-box; }
html.ls-study #main .source-body::before { content: ""; position: absolute; left: 34px; top: 0; bottom: 0; width: 1px; background: rgba(216, 120, 110, .3); pointer-events: none; }
html.ls-study #main .source-body :is(strong, b):not(.markdown-alert-title *) { font-weight: 600; background: linear-gradient(transparent 55%, color-mix(in srgb, var(--accent) 34%, transparent) 55% 92%, transparent 92%); padding: 0 .1em; }
html.ls-study #main .source-body .ls-box { margin: 1.5em 0; padding: .9em 1.1em; border: 1px solid color-mix(in srgb, var(--c) 45%, transparent); border-left-width: 1px; border-radius: 6px;
  background: color-mix(in srgb, var(--c) 9%, transparent); color: inherit; }
html.ls-study #main .source-body .ls-note { --c: #7fa6d6; } html.ls-study #main .source-body .ls-tip { --c: #7fbf9a; }
html.ls-study #main .source-body .ls-important { --c: var(--accent); } html.ls-study #main .source-body :is(.ls-warning, .ls-caution) { --c: #e0956a; }
html.ls-study #main .source-body .ls-box > p { margin: 0; text-indent: 0; }
html.ls-study #main .source-body .ls-box > p + p { margin-top: .4em; }
html.ls-study #main .source-body .ls-box .ls-box-title { margin: 0 0 .35em; font: 600 11.5px/1 var(--ls-mono); letter-spacing: .2em; color: var(--c); }
html.ls-study #main .source-body .ls-keys { margin: 2.6em 0 0; padding: 22px 24px; border: 1px solid var(--accent); border-radius: 6px; background: color-mix(in srgb, var(--accent) 6%, transparent); }
html.ls-study #main .source-body .ls-keys h3 { margin: 0 0 10px; font: 600 12px/1 var(--ls-mono); letter-spacing: .24em; color: var(--ls-gold); }
html.ls-study #main .source-body .ls-keys ol { margin: 0; padding-left: 1.4em; font-size: .92em; line-height: 1.85; }
html.ls-study #main .source-body .ls-keys li::marker { color: var(--ls-gold); font-family: var(--ls-mono); }
html.ls-study #main .source-body .ls-go { margin-top: 14px; font: 12.5px var(--ls-mono); color: var(--bg); background: var(--accent); border: 0; border-radius: 4px; padding: 7px 12px; cursor: pointer; }
html.ls-study #main .source-body .ls-fc { margin-top: 14px; padding: 14px 16px; border: 1px dashed var(--accent); border-radius: 6px; }
html.ls-study #main .source-body .ls-fc small { display: block; font: 11px var(--ls-mono); color: var(--muted); margin-bottom: 6px; }
html.ls-study #main .source-body .ls-fc p { margin: 0; }
html.ls-study #main .source-body .ls-fc .ls-q { color: var(--ls-gold2); }
html.ls-study #main .source-body .ls-row { display: flex; gap: 8px; margin-top: 10px; }
html.ls-study #main .source-body .ls-row button { flex: 1; font: 12.5px var(--font-ui); color: var(--ink); background: none; border: 1px solid var(--line); border-radius: 6px; padding: 7px; cursor: pointer; }
html.ls-study #main .source-body .ls-row button:hover, html.ls-study #main .source-body .ls-row button:focus-visible { border-color: var(--accent); color: var(--ls-gold); outline: none; }
html.ls-study #main .source-body .ls-sn { position: absolute; left: calc(100% + 28px); width: 210px; padding-left: 12px; border-left: 1px solid var(--accent); font: 13px/1.65 var(--font-body); color: var(--muted); }
html.ls-study #main .source-body .ls-sn b { margin-right: 6px; font: 600 11px var(--ls-mono); color: var(--ls-gold); }
html.ls-study #main .source-body.ls-has-sn :is(section[data-footnotes], .footnotes, .ls-fn-hidden) { display: none; }
@media (max-width: 700px) { html.ls-study #main .source-body { padding: 26px 18px 30px 32px !important; } html.ls-study #main .source-body::before { left: 20px; } }

/* d) AI */
html.ls-ai #main .source-body h2 { font-family: var(--ls-mono); font-size: 15px; letter-spacing: .14em; color: var(--ls-gold); }
html.ls-ai #main .source-body h2::before { content: "## "; color: var(--muted); }
html.ls-ai #main .source-body .ls-pc { margin: 1.4em 0; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 8px; overflow: hidden;
  background: color-mix(in srgb, var(--bg) 90%, #000); }
html.ls-ai #main .ls-pc header, html.ls-ai #main .ls-pc footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 14px; font: 12px var(--ls-mono); color: var(--muted); }
html.ls-ai #main .ls-pc header { border-bottom: 1px solid var(--line); } html.ls-ai #main .ls-pc footer { border-top: 1px solid var(--line); }
html.ls-ai #main .ls-pc header b { color: var(--ink); font-weight: 600; letter-spacing: .04em; }
html.ls-ai #main .ls-pt { padding: 14px 16px; font: 14.5px/1.9 var(--ls-mono); color: var(--ink); white-space: pre-wrap; overflow-wrap: anywhere; }
html.ls-ai #main .ls-pt input { width: auto !important; min-width: 0 !important; height: auto; font: inherit; line-height: 1.5; color: #15130f; background: #f0d68f; border: 0; border-radius: 3px; padding: 0 6px; max-width: 100%; }
html.ls-ai #main .ls-pt input::placeholder { color: #6a5528; }
html.ls-ai #main .ls-pt input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
html.ls-ai #main .ls-pc footer button { font: inherit; color: var(--bg); background: var(--accent); border: 0; border-radius: 4px; padding: 6px 12px; cursor: pointer; }
html.ls-ai #main .ls-pc footer button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html.ls-on #main :is(.ls-share, .ls-go) { transition: none; } }
html:is(.ls-study, .ls-ai) #main .source-reading > :is(.ls-head, h1, .ls-meta) { box-sizing: border-box; width: min(820px, 100%); margin-inline: auto; }

/* 38. 工程手冊: Guidebook (教程) and Doc (說明書) (2026-11-01; home-fixes.js 38). Scoped to html.ls-guide / html.ls-doc. */
html:is(.ls-guide, .ls-doc) { --lg-mono: var(--font-mono); --lg-gold: var(--accent); --lg-panel: color-mix(in srgb, var(--bg) 80%, transparent); }
html:is(.ls-guide, .ls-doc) .page-above::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1.2px) 0 0 / 22px 22px; }
html:is(.ls-guide, .ls-doc) #main :is(.source-toc, .reader-float) { display: none !important; }
html:is(.ls-guide, .ls-doc) #main .source-body .reader-heading-link { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }
html:is(.ls-guide, .ls-doc) #main .source-body { max-width: 760px !important; }
html:is(.ls-guide, .ls-doc) #main .source-reading > :is(.lg-head, h1, .lg-chips) { box-sizing: border-box; width: min(760px, 100%); margin-inline: auto; }
html:is(.ls-guide, .ls-doc) #main .source-reading > h1 { margin: 0 0 14px; text-shadow: none; }
html:is(.ls-guide, .ls-doc):not(.lg-still) #main .source-reading > h1::after { content: "\258D"; margin-left: .06em; color: var(--lg-gold); font-weight: 400; animation: lg-blink 1.1s steps(1) infinite; }
@keyframes lg-blink { 50% { opacity: 0; } }
html:is(.ls-guide, .ls-doc) #main .lg-kick { margin: 0 0 12px; font: 600 11.5px/1 var(--lg-mono); letter-spacing: .22em; color: var(--lg-gold); }
html:is(.ls-guide, .ls-doc) #main .lg-kick::before { content: "~/ "; color: var(--muted); }
html:is(.ls-guide, .ls-doc) #main .lg-man { display: flex; justify-content: space-between; margin: 0 0 20px; padding: 8px 0; border-block: 1px solid var(--line); font: 12px/1 var(--lg-mono); letter-spacing: .12em; color: var(--muted); }
html:is(.ls-guide, .ls-doc) #main .lg-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 28px; font: 12px/1.4 var(--lg-mono); color: var(--muted); }
html:is(.ls-guide, .ls-doc) #main .lg-chips > span { padding: 3px 9px; border: 1px solid var(--line); border-radius: 4px; }
html:is(.ls-guide, .ls-doc) #main .lg-chips b { color: var(--lg-gold); font-weight: 600; }
html:is(.ls-guide, .ls-doc) #main .lg-share { font: inherit; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 4px; padding: 3px 9px; cursor: pointer; }
html:is(.ls-guide, .ls-doc) #main .lg-share:hover, html:is(.ls-guide, .ls-doc) #main .lg-share:focus-visible { color: var(--lg-gold); border-color: var(--lg-gold); outline: none; }
html:is(.ls-guide, .ls-doc) #main .source-body :is(h1, h2, h3, h4) { position: relative; scroll-margin-top: 96px; }
html:is(.ls-guide, .ls-doc) #main .source-body .lg-cb { margin: 1.3em 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--bg) 92%, #000); }
html:is(.ls-guide, .ls-doc) #main .source-body .lg-cbh { display: flex; justify-content: space-between; align-items: center; padding-left: 12px; border-bottom: 1px solid var(--line); font: 11.5px/1 var(--lg-mono); color: var(--muted); }
html:is(.ls-guide, .ls-doc) #main .source-body .lg-cbh span { padding: 8px 10px 6px; border-bottom: 2px solid var(--lg-gold); color: var(--ink); }
html:is(.ls-guide, .ls-doc) #main .source-body .lg-cbh button { font: inherit; color: var(--muted); background: none; border: 0; border-left: 1px solid var(--line); padding: 9px 12px; cursor: pointer; }
html:is(.ls-guide, .ls-doc) #main .source-body .lg-cbh button:hover, html:is(.ls-guide, .ls-doc) #main .source-body .lg-cbh button:focus-visible { color: var(--lg-gold); outline: none; }
html:is(.ls-guide, .ls-doc) #main .source-body .lg-cb pre { margin: 0 !important; border: 0 !important; border-radius: 0 !important; }
html:is(.ls-guide, .ls-doc) #main .source-body kbd { font: 600 .78em var(--lg-mono); padding: .12em .5em; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; }
html:is(.ls-guide, .ls-doc) #main .source-body table { width: 100%; border-collapse: collapse; font-size: .86em; line-height: 1.6; }
html:is(.ls-guide, .ls-doc) #main .source-body th { font: 600 11px/1.4 var(--lg-mono); letter-spacing: .1em; color: var(--lg-gold); text-align: left; padding: .7em .8em; border: 0; border-bottom: 1px solid var(--lg-gold); background: none; }
html:is(.ls-guide, .ls-doc) #main .source-body td { padding: .6em .8em; border: 0; border-bottom: 1px solid var(--line); vertical-align: top; background: none; }
html:is(.ls-guide, .ls-doc) #main .source-body tbody tr:nth-child(even) { background: color-mix(in srgb, var(--ink) 4%, transparent); }
html:is(.ls-guide, .ls-doc) #main .source-body td strong { font-family: var(--lg-mono); font-size: .94em; }
html:is(.ls-guide, .ls-doc) #main .source-body .lg-eof { margin: 3em 0 0; text-align: center; text-indent: 0; font: 12px/1 var(--lg-mono); letter-spacing: .3em; color: var(--muted); }
html:is(.ls-guide, .ls-doc) #main .source-body .lg-eof::before, html:is(.ls-guide, .ls-doc) #main .source-body .lg-eof::after { content: " \2500\2500 "; }
/* Doc */
html.ls-doc #main .source-body .lg-num { margin-right: .6em; font: 600 .78em var(--lg-mono); letter-spacing: .04em; color: var(--lg-gold); }
html.ls-doc #main .source-body .lg-anc { position: absolute; left: -1.5em; top: 0; padding: 0 .3em; font: 600 .8em var(--lg-mono); color: var(--muted); text-decoration: none; opacity: 0; }
html.ls-doc #main .source-body :is(h1, h2, h3, h4):hover .lg-anc, html.ls-doc #main .source-body .lg-anc:focus-visible { opacity: 1; }
html.ls-doc #main .source-body .lg-anc:hover { color: var(--lg-gold); }
html.ls-doc #main .source-body .lg-gone { display: none !important; }
::highlight(lg-hit) { background-color: color-mix(in srgb, var(--accent) 40%, transparent); color: inherit; }
/* Guidebook */
html.ls-guide #main .source-body .lg-mission { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0 0 2.2em; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 6px; background: var(--lg-panel); }
html.ls-guide #main .source-body .lg-mission > div { padding: 12px 16px; border-left: 1px solid var(--line); }
html.ls-guide #main .source-body .lg-mission > div:first-child { border-left: 0; }
html.ls-guide #main .source-body .lg-mission small { display: block; margin-bottom: 4px; font: 10.5px/1.4 var(--lg-mono); letter-spacing: .2em; color: var(--muted); }
html.ls-guide #main .source-body .lg-mission strong { font: 600 18px/1.3 var(--lg-mono); color: var(--lg-gold); }
html.ls-guide #main .source-body .lg-mission p { margin: 0; font-size: 13.5px; line-height: 1.6; text-indent: 0; color: var(--muted); }
html.ls-guide #main .source-body .lg-step { position: relative; padding: 0 0 .4em 44px; }
html.ls-guide #main .source-body .lg-plain { padding-left: 44px; }
html.ls-guide #main .source-body .lg-step::before { content: ""; position: absolute; left: 11px; top: 3.6em; bottom: -.5em; width: 2px; background: var(--line); }
html.ls-guide #main .source-body .lg-step.lg-done::before { background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 35%, transparent)); }
html.ls-guide #main .source-body .lg-step > .lg-sh { margin-top: 2em; }
html.ls-guide #main .source-body .lg-sl { display: block; margin-bottom: .35em; font: 600 11px/1 var(--lg-mono); letter-spacing: .24em; color: var(--lg-gold); }
html.ls-guide #main .source-body .lg-node { position: absolute; left: 0; top: 2.35em; width: 24px; height: 24px; border: 2px solid var(--lg-gold); border-radius: 50%; box-sizing: border-box;
  background: var(--bg); font: 700 11px/20px var(--lg-mono); text-align: center; color: var(--lg-gold); }
html.ls-guide #main .source-body .lg-done .lg-node { background: var(--lg-gold); color: var(--bg); }
html.ls-guide #main .source-body .lg-done > :not(.lg-sh, .lg-node, .lg-donebar) { opacity: .55; }
html.ls-guide #main .source-body .lg-donebar { display: flex; justify-content: flex-end; margin: .6em 0 0; }
html.ls-guide #main .source-body .lg-donebar button { font: 12px/1 var(--lg-mono); color: var(--muted); background: none; border: 1px dashed var(--line); border-radius: 4px; padding: 7px 12px; cursor: pointer; }
html.ls-guide #main .source-body .lg-donebar button:hover, html.ls-guide #main .source-body .lg-donebar button:focus-visible { color: var(--lg-gold); border-color: var(--lg-gold); outline: none; }
html.ls-guide #main .source-body .lg-done .lg-donebar button { border-style: solid; border-color: var(--lg-gold); color: var(--lg-gold); }
/* contents column / sheet / button / help (outside #main) */
.lg-toc, .lg-fab, .lg-help { display: none; }
html:is(.ls-guide, .ls-doc) .lg-toc.lg-side { position: fixed; top: 104px; z-index: 20; display: flex; flex-direction: column; max-height: calc(100dvh - 140px); border-left: 1px solid var(--line); font: 13px/1.5 var(--font-mono); }
html:is(.ls-guide, .ls-doc) .lg-toc.lg-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; flex-direction: column; max-height: 66dvh; padding: 18px 18px calc(22px + env(safe-area-inset-bottom)) 6px;
  border-top: 1px solid var(--accent); border-radius: 14px 14px 0 0; background: var(--bg); box-shadow: 0 -20px 50px rgba(0, 0, 0, .45); font: 13px/1.5 var(--font-mono); }
html:is(.ls-guide, .ls-doc):not(.lg-has-side) .lg-fab { position: fixed; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 85; display: block; width: 46px; height: 46px; border: 1px solid var(--accent); border-radius: 50%;
  background: var(--bg); color: var(--accent); font-size: 18px; cursor: pointer; }
.lg-toc h4 { margin: 0 0 6px 14px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .24em; color: var(--muted); }
.lg-toc .lg-find { display: flex; align-items: center; gap: 6px; margin: 4px 0 10px 14px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 4px; }
.lg-toc .lg-find input { flex: 1; min-width: 0; font: 12.5px var(--font-mono); color: var(--ink); background: none; border: 0; outline: none; }
.lg-toc .lg-find:focus-within { border-color: var(--accent); }
.lg-toc kbd { font: 10.5px var(--font-mono); color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: 0 5px; }
.lg-toc ol { margin: 0; padding: 0; list-style: none; overflow: auto; scrollbar-width: thin; }
.lg-toc li[hidden] { display: none; }
.lg-toc a { display: flex; gap: 8px; margin-left: -1px; padding: 5px 8px 5px 12px; border-left: 2px solid transparent; color: var(--ink); opacity: .8; text-decoration: none; }
.lg-toc a.lg-l2 { padding-left: 26px; font-size: 12px; opacity: .6; }
.lg-toc a .lg-n, .lg-toc a .lg-ck { flex: none; color: var(--muted); }
.lg-toc a:hover { opacity: 1; }
.lg-toc a.lg-on { opacity: 1; border-left-color: var(--accent); color: var(--accent); }
.lg-toc a.lg-on .lg-n { color: var(--accent); }
.lg-toc a.lg-dn .lg-ck { color: var(--accent); }
.lg-toc a.lg-dn .lg-tt { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.lg-toc a:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.lg-toc .lg-foot { margin: 10px 0 0 14px; font-size: 11.5px; color: var(--muted); }
.lg-toc .lg-bar { height: 2px; margin: 6px 0 0 14px; background: var(--line); }
.lg-toc .lg-bar i { display: block; height: 100%; background: var(--accent); }
html:is(.ls-guide, .ls-doc) .lg-help.open { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; background: rgba(5, 6, 9, .55); }
.lg-help > div { min-width: 290px; padding: 20px 24px; border: 1px solid var(--accent); border-radius: 8px; background: var(--bg); color: var(--ink); font: 13px/2 var(--font-mono); }
.lg-help h3 { margin: 0 0 8px; font: 600 11px/1 var(--font-mono); letter-spacing: .24em; color: var(--accent); }
.lg-help kbd { display: inline-block; min-width: 3.4em; margin-right: 10px; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 4px; text-align: center; }
@media (max-width: 700px) {
  html.ls-guide #main .source-body :is(.lg-step, .lg-plain) { padding-left: 32px; }
  html.ls-guide #main .source-body .lg-step::before { left: 9px; }
  html.ls-guide #main .source-body .lg-node { width: 20px; height: 20px; line-height: 16px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { html:is(.ls-guide, .ls-doc) #main .source-reading > h1::after { animation: none; } }

/* weekly: the "continue reading" link (negative margin, made for the plain article head) sits as its own quiet line under the byline instead of on the rules */
html.lk-weekly #main .reader-resume { display: block; width: 100%; max-width: 700px; margin: 8px auto 0; padding: 0; background: none; border: 0; cursor: pointer; font: 12px/1.4 var(--font-body); letter-spacing: .04em; color: var(--lk-accent, var(--accent)); text-align: left; }

/* weekly: less empty space between the top bar and "WEEKLY · 第 N 期" (was 150px on desktop, 105px on phones) */
html.lk-weekly #main .source-reading { padding-top: 108px !important; }
@media (max-width: 768px), (pointer: coarse) and (max-height: 500px) { html.lk-weekly #main .source-reading { padding-top: 92px !important; } }

/* 36 f) Contents card in Loon's bubble (2026-11-02, home-fixes.js 36 f). Weekly pages, desktop, only while Loon is on screen;
   otherwise the capsule (.lk-bar) stands in. Same look as her speech bubble. Closed: one line (↑ is in her button column); open: grows upwards
   (issue switcher, every heading), never past the top bar (--lk-card-max). While she talks the closed card fades out. */
.lk-card { display: none; }
html.lk-weekly .luliy-mascot .lk-card { position: absolute; left: 8px; bottom: calc(100% + 2px); z-index: 2; display: flex; flex-direction: column; width: var(--lk-card-w, 240px);
  border-radius: 12px; background: rgba(10,15,28,.94); border: 1px solid rgba(226,194,126,.34); color: #ece6d6; box-shadow: 0 8px 28px rgba(0,0,0,.45);
  font-size: 13.5px; line-height: 1.5; transition: opacity .3s, transform .3s; user-select: none; -webkit-user-select: none; }
html.lk-weekly .luliy-mascot .lk-card::after { content: ""; position: absolute; left: 60px; bottom: -6px; width: 10px; height: 10px; background: inherit;
  border-right: 1px solid rgba(226,194,126,.34); border-bottom: 1px solid rgba(226,194,126,.34); transform: rotate(45deg); }
html.lk-weekly .luliy-mascot:has(.luliy-mascot-bubble.show) .lk-card:not(.open) { opacity: 0; transform: translateY(6px); pointer-events: none; }
html.lk-weekly .luliy-mascot:has(.lk-card.open) .luliy-mascot-bubble { opacity: 0 !important; }
html.lk-weekly.luliy-mascot-on .lk-bar, html.lk-weekly.luliy-mascot-on .lk-issues { display: none !important; }
.lk-card-row { display: flex; align-items: center; padding: 3px; }
.lk-card-line { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; padding: 7px 8px 7px 12px; border: 0; border-radius: 9px; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.lk-card-line:hover { background: rgba(226,194,126,.1); }
.lk-card-line b { flex: none; font: 600 11.5px/1 var(--font-mono); letter-spacing: .12em; color: #e2c27e; }
.lk-card-line .lk-cl-ch { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-card-line i { flex: none; margin-left: auto; font-style: normal; color: #e2c27e; opacity: .8; transition: transform .25s; }
.lk-card.open .lk-card-line i { transform: rotate(180deg); }
.lk-card :is(button, a):focus-visible { outline: 2px solid #e2c27e; outline-offset: -2px; }
.lk-card-panel { display: none; }
.lk-card.open .lk-card-panel { display: flex; flex-direction: column; max-height: var(--lk-card-max, 60vh); overflow: auto; padding: 8px 6px 6px; border-bottom: 1px solid rgba(226,194,126,.18); overscroll-behavior: contain; scrollbar-width: thin; }
.lk-card-ib { align-self: flex-start; margin: 0 0 4px 4px; padding: 6px 10px; border: 1px solid rgba(226,194,126,.34); border-radius: 999px; background: none; color: #e2c27e; font: 600 11.5px/1 var(--font-mono); letter-spacing: .12em; cursor: pointer; }
.lk-card-ib:hover, .lk-card-ib[aria-expanded="true"] { background: rgba(226,194,126,.14); }
.lk-card-iss, .lk-card-list { margin: 0; padding: 0; list-style: none; }
.lk-card-iss[hidden] { display: none; }
.lk-card-iss { margin: 2px 0 6px; padding-bottom: 6px; border-bottom: 1px dashed rgba(226,194,126,.2); }
.lk-card :is(.lk-card-iss, .lk-card-list) a { display: flex; gap: 10px; align-items: baseline; padding: 7px 10px; border-radius: 8px; color: #ece6d6; text-decoration: none; }
.lk-card :is(.lk-card-iss, .lk-card-list) a:hover { background: rgba(226,194,126,.1); }
.lk-card :is(.lk-card-iss, .lk-card-list) a b { flex: none; font: 600 11.5px/1 var(--font-mono); letter-spacing: .1em; color: #e2c27e; }
.lk-card .lk-card-list a.l2 { padding-left: 38px; font-size: 12.5px; color: rgba(236,230,214,.72); }
.lk-card :is(.lk-card-iss, .lk-card-list) a[aria-current] { background: rgba(226,194,126,.18); color: #f3e3bb; }
.lk-card .lk-none { padding: 7px 10px; color: rgba(236,230,214,.6); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { .lk-card, .lk-card-line i { transition: none !important; } }
/* weekly adds a 5th button (纸张) to her column, which then rises above her head: bubble and card sit a little higher */
html.lk-weekly .luliy-mascot :is(.luliy-mascot-bubble, .lk-card) { bottom: calc(100% + 20px); }
html.lk-weekly .luliy-mascot-tools { gap: 4px; }
html.lk-weekly .luliy-mascot-tools button { width: 26px; height: 26px; }
/* issue icon (a magazine cover) instead of the "W 1" text, in the card, its issue button and the capsule */
.lk-ico { display: block; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.lk-card-ib { display: inline-flex; align-items: center; gap: 7px; font: 13px/1 var(--font-body); letter-spacing: .04em; }
.lk-card-ib i { font-style: normal; opacity: .8; }
html.lk-weekly .lk-no { display: grid; place-items: center; padding: 7px 10px; }
.lk-card .lk-card-iss a b.lk-in, html.lk-weekly .lk-issues a b.lk-in { min-width: 3.6em; font: 12px/1.4 var(--font-body); letter-spacing: .04em; opacity: .85; }
/* the chapter and the open sub-heading share one gold pill in her card (same idea as the capsule's coloured pill) */

/* weekly: comments are folded; click 評論 to open (home-fixes.js 36). The Giscus frame still loads in the background. */
html.lk-weekly #main .luliy-comments > h2 { display: flex; align-items: center; justify-content: space-between; margin: 0; cursor: pointer; user-select: none; }
html.lk-weekly #main .luliy-comments > h2::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform .25s; }
html.lk-weekly #main .luliy-comments.lc-open > h2 { margin-bottom: 14px; }
html.lk-weekly #main .luliy-comments.lc-open > h2::after { transform: rotate(-135deg) translateY(-2px); }
html.lk-weekly #main .luliy-comments:not(.lc-open) > :is(.lc-note, .lc-slot) { position: absolute; left: -9999px; width: 700px; height: 1px; overflow: hidden; visibility: hidden; }
html.lk-weekly #main .luliy-comments > h2:focus-visible { outline: 2px solid var(--lk-acc); outline-offset: 4px; }

/* 36 f2) Contents card, paper style (2026-11-02): a bookmark ribbon (closed) and a paper page (open) in the weekly paper tokens. */
html.lk-weekly.lk-weekly .luliy-mascot .lk-card { background: var(--lk-bg); color: var(--lk-ink); border: 1px solid var(--lk-rule); border-radius: 2px; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); font-family: var(--font-body); }
html.lk-weekly.lk-weekly .luliy-mascot .lk-card::after { display: none; }
html.lk-weekly.lk-weekly .lk-card .lk-card-panel { border-bottom: 0; padding: 4px 0 4px; }
html.lk-weekly.lk-weekly .lk-card-ib { border: 0; border-bottom: 1px solid var(--lk-ink); border-radius: 0; margin: 0 0 4px; padding: 8px 12px 7px; align-self: stretch; color: var(--lk-acc); font: 600 11px/1 var(--font-mono); letter-spacing: .16em; }
html.lk-weekly.lk-weekly .lk-card-ib:hover, html.lk-weekly.lk-weekly .lk-card-ib[aria-expanded="true"] { background: color-mix(in srgb, var(--lk-acc) 10%, transparent); }
html.lk-weekly.lk-weekly .lk-card :is(.lk-card-iss, .lk-card-list) a { color: var(--lk-ink); border-radius: 0; }
html.lk-weekly.lk-weekly .lk-card :is(.lk-card-iss, .lk-card-list) a:hover { background: color-mix(in srgb, var(--lk-ink) 7%, transparent); }
html.lk-weekly.lk-weekly .lk-card :is(.lk-card-iss, .lk-card-list) a b { color: var(--lk-acc); }
html.lk-weekly.lk-weekly .lk-card .lk-card-list a.l2 { color: var(--lk-soft); }
html.lk-weekly.lk-weekly .lk-card :is(.lk-card-iss, .lk-card-list) a[aria-current] { background: none; color: var(--lk-acc); font-weight: 700; }
html.lk-weekly.lk-weekly .lk-card .lk-card-iss { border-bottom: 1px solid var(--lk-rule); }
html.lk-weekly.lk-weekly .lk-card-line { color: var(--lk-ink); border-radius: 0; }
html.lk-weekly.lk-weekly .lk-card-line:hover { background: color-mix(in srgb, var(--lk-ink) 7%, transparent); }
html.lk-weekly.lk-weekly .lk-card-line i { color: var(--lk-acc); }
html.lk-weekly.lk-weekly .lk-card :is(button, a):focus-visible { outline-color: var(--lk-acc); }
/* a 欄目表 */
/* b 書籤絲帶: the closed line becomes a ribbon hanging under the page */
html.lk-weekly.lk-weekly .luliy-mascot .lk-card { background: none; border: 0; box-shadow: none; align-items: flex-start; width: auto; min-width: 150px; max-width: var(--lk-card-w, 240px); }
html.lk-weekly .lk-card.open .lk-card-panel { background: var(--lk-bg); border: 1px solid var(--lk-rule); width: var(--lk-card-w, 240px); margin-bottom: 4px; box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
html.lk-weekly .lk-card-row { padding: 0; }
html.lk-weekly .lk-card-line { background: var(--lk-acc); color: var(--lk-bg); padding: 9px 22px 17px 12px; clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 84%, 0 100%); box-shadow: 0 6px 14px rgba(0, 0, 0, .25); font-weight: 700; }
html.lk-weekly .lk-card-line:hover { background: var(--lk-acc); filter: brightness(1.08); }
html.lk-weekly .lk-card-line :is(.lk-cl-ico, i, .lk-cl-pill, .lk-cl-pill .lk-cl-sub) { color: var(--lk-bg); border-left-color: color-mix(in srgb, var(--lk-bg) 50%, transparent); }
html.lk-weekly .lk-card .lk-card-list a[aria-current] { border-left: 3px solid var(--lk-acc); padding-left: 7px; }
/* c 大號數字 */
/* d 側邊刻度 */
html.lk-weekly .luliy-mascot .lk-card { width: max-content; }
html.lk-weekly .lk-card-line { flex: none; max-width: var(--lk-card-w, 240px); }
html.lk-weekly.lk-weekly .lk-card-line:hover { background: var(--lk-acc); filter: brightness(1.08); }
/* ribbon: the sub-heading goes on its own small line under the chapter, so it never gets squeezed out on narrow margins;
   the issue button stays pinned at the top of the open page while the list scrolls */
html.lk-weekly.lk-weekly .lk-card-line { align-items: center; padding-bottom: 19px; }
html.lk-weekly.lk-weekly .lk-card-ib { position: sticky; top: 0; z-index: 1; background: var(--lk-bg); }
/* weekly: her speech bubble is clickable (opens the contents); the separate contents button is gone */
html.lk-weekly .luliy-mascot .luliy-mascot-bubble.show { pointer-events: auto; cursor: pointer; }
html.lk-weekly .luliy-mascot [data-m="toc"] { display: none !important; }
/* the ribbon is joined to Loon like a speech bubble: a flat bottom edge with a small tail pointing down at her */
html.lk-weekly.lk-weekly .lk-card-line { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 72px calc(100% - 10px), 62px 100%, 52px calc(100% - 10px), 0 calc(100% - 10px)); padding-bottom: 19px; }
/* no "›" before the sub-heading in the capsule */
html.lk-weekly .lk-sub.on::before { content: none; }

/* ---- Player sheets unified with the site's pages (2026-11-03) ----
   The expanded player sheet, the queue panel and the share popover used the
   bar's raised-mix surface and UI font, which read as a generic music app
   against the site's pages. They now use the pages' own tokens instead:
   page background, paper rows with a line border, display serif for the
   sheet titles, and the gold accent for everything active. Layout, sizes
   and behaviour are unchanged; the collapsed mini bar is untouched. */
html body .lr-mini.lm-mini.lm-bar.lm-expanded { background: var(--bg); }
html body .lr-mini.lm-mini.lm-bar :is(.lm-mini-panel, .lm-bar-share) { background: var(--bg); }
html body .lr-mini.lm-mini.lm-bar.lm-expanded :is(.lm-mini-panel, .lm-bar-share) { background: var(--bg); }
html body .lr-mini.lm-mini.lm-bar :is(.lm-bar-panel-head, .lm-bar-pop-head) h2 { font-family: var(--font-display); }
html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-title { font-family: var(--font-display); text-transform: none; }
html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-caption { border-color: var(--accent); color: var(--accent); }
html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-controls .lr-mini-play { background: var(--accent); color: var(--bg) !important; }
html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-seek::-webkit-slider-runnable-track { background: linear-gradient(var(--accent), var(--accent)) 0 0 / var(--lm-fill) 100% no-repeat, var(--bar-track); }
html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-seek::-webkit-slider-thumb { background: var(--accent); }
html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-seek::-moz-range-progress { background: var(--accent); }
html body .lr-mini.lm-mini.lm-bar.lm-expanded .lr-mini-seek::-moz-range-thumb { background: var(--accent); }
html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-bar-vol-fill { background: var(--accent); }
html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-bar-vol-fill::after { background: var(--accent); }
html body .lr-mini.lm-mini.lm-bar.lm-expanded .lm-bar-vol-pop { background: var(--bg); }
html body .lr-mini.lm-mini.lm-bar .lm-queue-track { background: var(--paper) !important; border: 1px solid var(--line) !important; }
@media (hover: hover) { html body .lr-mini.lm-mini.lm-bar .lm-queue-track:hover { background: var(--raised) !important; } }
html body .lr-mini.lm-mini.lm-bar .lm-queue-track[aria-current="true"] { background: var(--accent) !important; color: var(--bg) !important; }
html body .lr-mini.lm-mini.lm-bar .lm-queue-track[aria-current="true"] .lm-queue-artist { color: color-mix(in oklab, var(--bg) 70%, transparent); }
html body .lr-mini.lm-mini.lm-bar .lm-queue-track[aria-current="true"] .lm-queue-state { color: var(--bg); }
html body .lr-mini.lm-mini.lm-bar .lm-mini-settings > :is(button, select) { background-color: var(--paper) !important; border: 1px solid var(--line) !important; }
html body .lr-mini.lm-mini.lm-bar .lm-mini-settings > button[aria-pressed="true"] { background-color: var(--accent) !important; color: var(--bg) !important; }
html body .lr-mini.lm-mini.lm-bar .lm-bar-share-icons > * { background: var(--paper); border: 1px solid var(--line); }
@media (hover: hover) { html body .lr-mini.lm-mini.lm-bar .lm-bar-share-icons > *:hover { background: var(--raised); } }
html body .lr-mini.lm-mini.lm-bar .lm-bar-share-url { background: var(--paper); border: 1px solid var(--line); }

/* Room album popup unified with the phone queue panel (2026-11-03):
   the popup dialog lists the same lm-queue-track rows as the phone
   queue, but the popup's own rules kept them as plain hairline rows
   with a gold-text current row. They now use the phone queue's card
   rows, gold fill current row, equalizer state and display serif
   heading, so the two lists read as one. Scoped to :popover-open so
   the standalone page's static 3-column album grid is untouched. */
html body .lr-album-popup:popover-open { border-radius: 20px; }
html body .lr-album-popup:popover-open .lr-album-heading { font-family: var(--font-display); border-bottom: 0; padding-bottom: 12px; }
html body .lr-album-popup:popover-open ol { display: grid; gap: 4px; }
html body .lr-album-popup:popover-open li .lm-queue-track {
  display: flex !important; align-items: center; gap: 12px; width: 100%; min-height: 61px; box-sizing: border-box;
  padding: 10.8px 21.6px 10.8px 10.8px !important;
  border: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; border-radius: 12px;
  background: var(--paper) !important; color: var(--ink) !important; text-align: left; font: inherit; cursor: pointer;
}
@media (hover: hover) { html body .lr-album-popup:popover-open li .lm-queue-track:hover { background: var(--raised) !important; } }
html body .lr-album-popup:popover-open .lm-queue-cover { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 4px; overflow: hidden; }
html body .lr-album-popup:popover-open .lm-queue-copy { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
html body .lr-album-popup:popover-open .lm-queue-copy strong { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 14.4px/1.3 var(--font-ui); }
html body .lr-album-popup:popover-open .lm-queue-artist { display: block !important; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 12.6px/1.3 var(--font-ui); color: var(--muted); }
html body .lr-album-popup:popover-open .lm-queue-artist:empty::before { content: "Luliy Records"; }
html body .lr-album-popup:popover-open li .lm-queue-track[aria-current="true"] { background: var(--accent) !important; color: var(--bg) !important; }
html body .lr-album-popup:popover-open li .lm-queue-track[aria-current="true"] .lm-queue-artist { color: color-mix(in oklab, var(--bg) 70%, transparent); }
html body .lr-album-popup:popover-open .lm-queue-state { flex: none; font-size: 0 !important; width: 0; }
html body .lr-album-popup:popover-open li .lm-queue-track[aria-current="true"] .lm-queue-state {
  width: 19px; height: 16px; color: var(--bg);
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 3px 35% no-repeat,
    linear-gradient(currentColor, currentColor) 4px 100% / 3px 70% no-repeat,
    linear-gradient(currentColor, currentColor) 8px 100% / 3px 100% no-repeat,
    linear-gradient(currentColor, currentColor) 12px 100% / 3px 55% no-repeat,
    linear-gradient(currentColor, currentColor) 16px 100% / 3px 25% no-repeat;
}

/* Room album popup as the phone queue panel's bottom sheet (2026-11-03):
   the user chose the phone queue's card module for both lists. The rows
   already match; the panel itself was still a floating dialog, so it now
   uses the queue panel's sheet form: full-width, pinned to the bottom,
   rounded top corners only. The JS-set inline left/top are overridden
   with !important. The shuffle control stays (it is the popup's own
   function); the queue's footer pills are lm-bar settings and are not
   part of this panel. */
html body .lr-album-popup:popover-open {
  left: 0 !important; right: 0 !important; bottom: 0 !important; top: auto !important;
  width: auto !important; margin: 0 !important; max-height: 88dvh !important;
  border: 0 !important; border-radius: 24px 24px 0 0 !important;
  box-shadow: 0 -8px 40px #0006 !important;
  padding: 21.6px 21.6px calc(21.6px + env(safe-area-inset-bottom)) !important;
}

/* Room album popup leftovers vs the phone queue panel (2026-11-03):
   the current row is auto-focused on open, so the room's gold focus
   outline framed it, while the queue's current row is never focused;
   and the popup's own li small rule centered the artist line, while
   the queue's artist is left-aligned. Both now match the queue. */
html body .lr-album-popup:popover-open li .lm-queue-track:focus-visible { outline: none; }
html body .lr-album-popup:popover-open li .lm-queue-track:focus { outline: none; }
html body .lr-album-popup:popover-open .lm-queue-artist { align-self: flex-start; }

/* Room album popup sheet width (2026-11-03):
   measured on the phone, the sheet's cards ended ~42px short of the
   phone queue's cards on the right, which is why long titles truncated
   in the popup but not in the queue: a dialog width cap (100% - 2em)
   was shrinking the panel despite left/right 0. Pin it to the full
   viewport width with border-box sizing. */
html body .lr-album-popup:popover-open {
  width: 100% !important; max-width: none !important; box-sizing: border-box !important;
}

/* 36 o — writing pages (not an issue): no double rule over the byline; the contents list folds sub-sections under their chapter */
html.lk-essay #main .lk-by::before { display: none; }
html.lk-essay #main .lk-by { padding-top: 12px; }
.lk-card-list li { position: relative; }
.lk-card-list li.lk-child:not(.lk-show) { display: none; }
.lk-card .lk-twist { position: absolute; right: 4px; top: 3px; width: 26px; height: 26px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: none; color: inherit; opacity: .55; font: 14px/1 var(--font-ui); cursor: pointer; transition: transform .2s, opacity .2s; }
.lk-card .lk-twist:hover, .lk-card .lk-twist:focus-visible { opacity: 1; }
.lk-card li.lk-opened > .lk-twist { transform: rotate(180deg); }
.lk-card li.lk-has-sub > a { padding-right: 34px; }
/* the ladder (writing pages only; an issue keeps its own headings): h2 = chapter (big, a hairline above); h3 = section (an accent bar at its left); h4 = a run-in label */
html.lk-essay #main .source-body h1 { margin: 2.6em 0 .8em; font-size: 1.5em; line-height: 1.3; font-weight: 700; }
html.lk-essay #main .source-body h2 { margin: 2.2em 0 .7em; padding-top: .85em; border-top: 1px solid var(--lk-rule); font-size: 1.32em; line-height: 1.4; font-weight: 700; }
html.lk-essay #main .source-body h3 { margin: 1.9em 0 .55em; padding-left: .62em; border-left: 3px solid var(--lk-acc); font-size: 1.05em; line-height: 1.45; font-weight: 700; }
html.lk-essay #main .source-body h4 { margin: 1.5em 0 .4em; font-size: 1em; line-height: 1.5; font-weight: 600; color: var(--lk-soft); }
html.lk-essay #main .source-body :is(h2, h3):is(:first-child, .markdown-body > :first-child) { margin-top: 0; padding-top: 0; border-top: 0; }
/* contents: the closed bubble names only the heading being read, whole (it may wrap to two lines); the phone capsule too */
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-now { white-space: normal; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .lk-now .lk-cl-ch { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.45; text-align: left; text-wrap: balance; }
html.lk-weekly.lk-weekly.lk-weekly.lk-weekly .luliy-mascot .lk-card { width: max-content; } /* as wide as the name needs, up to --lk-card-w; it wraps only past that */
.lk-card .lk-card-list a span { white-space: normal; overflow-wrap: anywhere; }
html.lk-weekly.lk-weekly .lk-cur { width: max-content; max-width: 62vw; white-space: normal; text-wrap: balance; line-height: 1.3; text-align: left; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; padding-block: 6px; }
@media (min-width: 681px) { html.lk-weekly.lk-weekly .lk-cur { display: none; } }
@media (max-width: 680px) { html.lk-weekly.lk-weekly .lk-bar { width: max-content; } } /* it sits at left:50%, so without this it may only use half the screen and the name wraps early */

/* 40 — typesetting on every article (home-fixes.js 40): Chinese–Latin spacing, squeezed punctuation pairs, wide photos */
#main :is(.source-body, .source-reading > h1, .lk-stand) { text-autospace: normal; }
#main .source-body .lk-as.l { margin-left: .25em; }
#main .source-body .lk-as.r { margin-right: .25em; }
#main .source-body.lk-sq-on .lk-sq { letter-spacing: calc(-1 * var(--sq, .5em)); } /* .lk-sq-on: only while the marks are full width as rendered */
@media (min-width: 769px) and (pointer: fine), (min-width: 1001px) {
  html.lk-weekly #main .source-body img.lk-wide { width: calc(100% + 128px); max-width: none; margin-inline: -64px; }
}
@media (max-width: 680px) {
  html.lk-weekly #main .source-body img.lk-wide { width: 100vw; max-width: none; margin-inline: calc(50% - 50vw); }
}

/* 41 — 首頁（預設，home-fixes.js 41）: the old home stays in the page, hidden; .lh is the first screen */
html.lh-on .entrance, html.lh-on .home-wide-section, html.lh-on .project-exhibition { display: none !important; }
html.lh-on #header :is(.brand-mark, .brand) { visibility: hidden; } /* the one Luliy is beside the avatar */
.lh { display: none; }
html.lh-on .lh { --lh-ink: #ece6d6; --lh-soft: rgba(236, 230, 214, .72); --lh-mute: rgba(236, 230, 214, .5); --lh-rule: rgba(236, 230, 214, .14); --lh-acc: #e2c27e; --lh-paper: #161513; --lh-card: #e9e3d6;
  display: block; position: relative; z-index: 1; max-width: 880px; margin: 0 auto; padding: 120px 24px 96px; color: var(--lh-ink); font-family: var(--font-body); }
html[data-appearance="light"].lh-on .lh { --lh-ink: #23201a; --lh-soft: rgba(35, 32, 26, .74); --lh-mute: rgba(35, 32, 26, .52); --lh-rule: rgba(35, 32, 26, .14); --lh-acc: #93661e; --lh-paper: #fbf7ef; --lh-card: #ffffff; }
.lh a { color: inherit; text-decoration: none; }
.lh-top { display: flex; align-items: center; justify-content: center; gap: clamp(32px, 6vw, 88px);
  width: min(1180px, calc(100vw - 48px)); margin-left: 50%; transform: translateX(-50%); } /* wider than the column, centred on the page */
.lh-intro { display: flex; align-items: center; gap: 20px; min-width: 0; }
.lh-face { flex: none; height: 96px; width: auto; max-width: 120px; object-fit: contain; }
.lh-brand { display: inline-flex; align-items: center; gap: 2px; color: var(--lh-ink); }
.lh-mark { display: block; width: 40px; height: 44px; }
.lh-mark svg { display: block; width: 100%; height: 100%; }
.lh-word { font: 600 32px/1 var(--lh-brand-font, var(--font-body)); letter-spacing: .08em; transform: translateY(4px); }
.lh-who p { margin: 10px 0 0; font-size: 15.5px; line-height: 1.6; color: var(--lh-soft); }
.lh-stacks { flex: none; display: grid; grid-template-columns: repeat(5, 1fr); }
.lh-st { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 4px 20px; }
.lh-st + .lh-st { border-left: 1px solid var(--lh-rule); }
.lh-pile { position: relative; display: block; width: 84px; height: 62px; }
.lh-c { position: absolute; top: 4px; width: 40px; height: 54px; display: grid; place-items: center; overflow: hidden; background: var(--lh-card); border: 2px solid var(--lh-card); border-radius: 2px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35); transition: transform .3s cubic-bezier(.2, .8, .2, 1); font: 700 17px/1 var(--font-body); color: rgba(35, 32, 26, .6); }
.lh-c img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lh-c0 { left: 2px; transform: rotate(-10deg); z-index: 1; }
.lh-c1 { left: 22px; transform: translateY(-3px); z-index: 3; }
.lh-c2 { left: 42px; transform: rotate(9deg); z-index: 2; }
.lh-st:hover .lh-c0, .lh-st:focus-visible .lh-c0 { transform: translateX(-8px) rotate(-15deg); }
.lh-st:hover .lh-c1, .lh-st:focus-visible .lh-c1 { transform: translateY(-8px); }
.lh-st:hover .lh-c2, .lh-st:focus-visible .lh-c2 { transform: translateX(8px) rotate(14deg); }
.lh-sl { font-size: 14px; letter-spacing: .04em; color: var(--lh-soft); white-space: nowrap; transition: color .2s; }
.lh-st:hover .lh-sl, .lh-st:focus-visible .lh-sl { color: var(--lh-acc); }
.lh-st:focus-visible { outline: 2px solid var(--lh-acc); outline-offset: 2px; }
.lh-issue { display: block; margin: 44px 0 0; background: var(--lh-paper); border: 1px solid var(--lh-rule); box-shadow: 0 18px 44px rgba(0, 0, 0, .28); overflow: hidden; transition: transform .25s, box-shadow .25s; }
html[data-appearance="light"] .lh-issue { box-shadow: 0 18px 40px rgba(60, 45, 20, .14); }
.lh-issue:hover, .lh-issue:focus-visible { transform: translateY(-2px); outline: none; }
.lh-cover { display: block; aspect-ratio: 3 / 1; overflow: hidden; }
.lh-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lh-ib { position: relative; display: block; padding: 24px 28px 26px; }
.lh-ib[data-no]::after { content: attr(data-no); position: absolute; right: 24px; top: 14px; font: 700 92px/1 var(--font-body); color: var(--lh-ink); opacity: .1; pointer-events: none; }
.lh-kick { display: block; font: 600 11.5px/1 var(--font-mono); letter-spacing: .24em; color: var(--lh-acc); }
.lh-title { display: block; margin: 14px 0 0; font: 700 30px/1.25 var(--font-body); letter-spacing: .02em; }
.lh-sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin: 12px 0 0; font-size: 15.5px; line-height: 1.75; color: var(--lh-soft); }
.lh-go { display: inline-block; margin: 14px 0 0; font: 500 12.5px/1 var(--font-mono); letter-spacing: .14em; color: var(--lh-acc); }
.lh-recent { margin: 46px 0 0; }
.lh-rh { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px solid var(--lh-ink); }
.lh-rh h2 { margin: 0; font: 600 12px/1 var(--font-mono); letter-spacing: .26em; color: var(--lh-ink); }
.lh-rh a { font: 500 12px/1 var(--font-mono); letter-spacing: .12em; color: var(--lh-mute); }
.lh-rh a:hover { color: var(--lh-acc); }
.lh-recent ol { margin: 0; padding: 0; list-style: none; }
.lh-recent li a { display: grid; grid-template-columns: 96px 1fr auto; gap: 16px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--lh-rule); }
.lh-lab { font: 500 11px/1.4 var(--font-mono); letter-spacing: .12em; color: var(--lh-mute); text-transform: uppercase; }
.lh-t { font-size: 17px; line-height: 1.5; }
.lh-recent time { font: 12px/1 var(--font-mono); color: var(--lh-mute); }
.lh-recent li a:hover .lh-t, .lh-recent li a:focus-visible .lh-t { color: var(--lh-acc); }
/* 讀書: three spines */
.lh-shelf { display: flex; align-items: flex-end; justify-content: center; gap: 3px; padding-bottom: 2px; border-bottom: 2px solid var(--lh-rule); }
.lh-spine { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 7px 0; width: 15px; border-radius: 2px 2px 0 0; box-shadow: inset -2px 0 0 rgba(0, 0, 0, .18), 0 3px 8px rgba(0, 0, 0, .3); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.lh-spine i { display: block; height: 2px; margin: 0 3px; background: currentColor; opacity: .55; }
.lh-sp0 { height: 50px; background: #6b2f2a; color: #e2c27e; }
.lh-sp1 { height: 58px; width: 17px; background: var(--lh-card); color: #93661e; }
.lh-sp2 { height: 46px; background: #2c3a33; color: #e2c27e; transform-origin: bottom left; transform: rotate(8deg) translateX(2px); }
.lh-books:hover .lh-sp0, .lh-books:focus-visible .lh-sp0 { transform: translateY(-5px); }
.lh-books:hover .lh-sp1, .lh-books:focus-visible .lh-sp1 { transform: translateY(-9px); }
.lh-books:hover .lh-sp2, .lh-books:focus-visible .lh-sp2 { transform: rotate(14deg) translateX(4px); }
/* 短札 · 學習 · 教程: drawn objects in the same palette as the spines (paper, gold, oxblood, green) */
.lh-obj .lh-pile { display: block; }
.lh-obj .lh-pile > * { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.lh-slip { position: absolute; width: 44px; height: 34px; padding: 8px 6px 0; display: flex; flex-direction: column; gap: 5px; background: var(--lh-card); border-radius: 1px; box-shadow: 0 4px 10px rgba(0, 0, 0, .32); }
.lh-slip i { display: block; height: 1.5px; background: rgba(35, 32, 26, .35); }
.lh-slip i:last-child { width: 60%; }
.lh-slip0 { left: 6px; top: 20px; transform: rotate(-9deg); }
.lh-slip1 { left: 30px; top: 22px; transform: rotate(7deg); background: #efe2bf; }
.lh-slip2 { left: 18px; top: 4px; transform: rotate(-2deg); z-index: 2; }
.lh-slip2::before { content: ""; position: absolute; left: 14px; top: -4px; width: 16px; height: 7px; background: rgba(226, 194, 126, .75); transform: rotate(-4deg); }
.lh-k-notes:hover .lh-slip2, .lh-k-notes:focus-visible .lh-slip2 { transform: translateY(-6px) rotate(-4deg); }
.lh-k-notes:hover .lh-slip0, .lh-k-notes:focus-visible .lh-slip0 { transform: translateX(-4px) rotate(-13deg); }
.lh-k-notes:hover .lh-slip1, .lh-k-notes:focus-visible .lh-slip1 { transform: translateX(4px) rotate(11deg); }
.lh-page { position: absolute; left: 18px; top: 2px; width: 44px; height: 58px; border-radius: 1px 3px 3px 1px; box-shadow: inset 4px 0 0 #2c3a33, 0 4px 10px rgba(0, 0, 0, .32);
  background-color: var(--lh-card); background-image: repeating-linear-gradient(0deg, transparent 0 7px, rgba(60, 90, 120, .2) 7px 8px), repeating-linear-gradient(90deg, transparent 0 7px, rgba(60, 90, 120, .2) 7px 8px); }
.lh-margin { position: absolute; left: 12px; top: 0; bottom: 0; width: 1.5px; background: #b5473e; opacity: .8; }
.lh-pencil { position: absolute; left: 50px; top: 10px; width: 6px; height: 46px; border-radius: 1px; background: linear-gradient(180deg, #e2c27e 0 82%, #d9c3a0 82% 92%, #3a3328 92%); transform: rotate(16deg); box-shadow: 0 3px 6px rgba(0, 0, 0, .3); }
.lh-k-book:hover .lh-page, .lh-k-book:focus-visible .lh-page { transform: translateY(-5px) rotate(-3deg); }
.lh-k-book:hover .lh-pencil, .lh-k-book:focus-visible .lh-pencil { transform: translate(4px, -2px) rotate(24deg); }
.lh-binder { position: absolute; left: 16px; top: 2px; width: 46px; height: 58px; border-radius: 2px 4px 4px 2px; background: #6b2f2a; box-shadow: 0 4px 10px rgba(0, 0, 0, .35); }
.lh-rings { position: absolute; left: 5px; top: 9px; bottom: 9px; width: 5px; background: radial-gradient(circle, #e2c27e 0 2px, transparent 2.5px) 0 0 / 5px 14px repeat-y; }
.lh-label { position: absolute; left: 16px; right: 7px; top: 14px; height: 14px; background: var(--lh-card); border-radius: 1px; box-shadow: inset 0 -4px 0 rgba(35, 32, 26, .1); }
.lh-tab { position: absolute; left: 56px; width: 10px; height: 10px; border-radius: 0 2px 2px 0; }
.lh-tab0 { top: 10px; background: #e2c27e; }
.lh-tab1 { top: 25px; background: #2c3a33; }
.lh-tab2 { top: 40px; background: var(--lh-card); }
a.lh-k-binder:hover .lh-binder, a.lh-k-binder:focus-visible .lh-binder { transform: translateY(-5px) rotate(-2deg); }
a.lh-k-binder:hover .lh-tab, a.lh-k-binder:focus-visible .lh-tab { transform: translateX(3px); }
@media (max-width: 1100px) {
  .lh-top { flex-direction: column; align-items: stretch; gap: 26px; width: auto; margin-left: 0; transform: none; }
  .lh-stacks { grid-template-columns: repeat(5, 1fr); }
  .lh-st { padding: 4px 6px; }
}
@media (max-width: 680px) {
  html.lh-on .lh { padding: 88px 20px 72px; }
  .lh-face { height: 72px; }
  .lh-st { padding: 2px 0; gap: 6px; }
  .lh-pile { transform: scale(.74); margin: -8px -11px; }
  .lh-sl { font-size: 12px; letter-spacing: 0; }
  .lh-mark { width: 32px; height: 36px; }
  .lh-word { font-size: 26px; }
  .lh-title { font-size: 24px; }
  /* phones: the latest issue is not boxed in: no frame, the cover runs to the screen edges at its own shape */
  .lh-issue { margin-inline: -20px; background: none; border: 0; box-shadow: none; overflow: visible; }
  .lh-issue:hover, .lh-issue:focus-visible { transform: none; }
  .lh-cover { aspect-ratio: auto; max-height: 78vh; }
  .lh-cover img { height: auto; max-height: 78vh; }
  .lh-ib { padding: 18px 20px 4px; }
  .lh-ib[data-no]::after { font-size: 64px; top: 12px; right: 16px; }
  .lh-recent li a { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .lh-lab { grid-column: 1 / -1; }
}
@media (prefers-reduced-motion: reduce) { .lh-issue, .lh-c { transition: none; } }
/* 短札: the same avatar as the home page, without a frame */
.lj-avatar, .lj-card-avatar { border-radius: 0 !important; box-shadow: none !important; object-fit: contain !important; background: none !important; }
.lj-avatar-link, .lj-card-avatar-link { border-radius: 0 !important; }

/* 42 — archive: several tags at once (home-fixes.js 42) */
#main .post-archive :is(.study-entry, .post-year)[hidden] { display: none !important; }
#main .post-archive .lk-multi-hint { display: block; margin: 4px 0 0; white-space: nowrap; font-size: 11px; font-weight: 400; letter-spacing: .06em; opacity: .55; }
#main .post-archive .article-filter-section a.lk-multi[aria-current]::before { content: "✓ "; }

/* 43 — 讀書 (html.lk-read) and 學習 (html.lk-study) pages, home-fixes.js 43 */
html.lk-read.lk-has-book #main .lk-cover, html.lk-read #main .source-body .lk-bc-src, html.lk-read #main .source-body .lk-bc-used, html.lk-read #main .lk-stand.lk-bc-src { display: none !important; }
/* the big cover is not shown on 讀書, so the page keeps the usual top space (the cover mode had removed it) */
html.lk-weekly.lk-read.lk-has-book #main .source-reading.lk-cov { padding-top: 108px !important; }
html.lk-weekly.lk-read.lk-has-book .lk-cov > .lk-kick { padding-top: 0 !important; }
@media (max-width: 680px) { html.lk-weekly.lk-read.lk-has-book #main .source-reading.lk-cov { padding-top: 92px !important; } }
html.lk-read #main .lk-bookcard { display: flex; gap: 22px; align-items: center; margin: -1em 0 2.4em; padding: 18px 20px; background: color-mix(in srgb, var(--lk-ink) 4%, transparent); border: 1px solid var(--lk-rule); }
html.lk-read #main .lk-bc-cover { flex: none; width: 92px; aspect-ratio: 2 / 3; overflow: hidden; border-radius: 1px 3px 3px 1px; box-shadow: inset 3px 0 0 rgba(0, 0, 0, .25), 0 8px 18px rgba(0, 0, 0, .35); }
html.lk-read #main .lk-bc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; margin: 0; }
html.lk-read #main .lk-bc-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
html.lk-read #main .lk-bc-kick { font: 600 11px/1 var(--font-mono); letter-spacing: .22em; color: var(--lk-acc); }
html.lk-read #main .lk-bc-title { font: 700 22px/1.35 var(--font-body); color: var(--lk-ink); }
html.lk-read #main .lk-bc-author { font-size: 15px; color: var(--lk-soft); }
html.lk-read #main .lk-bc-row { display: flex; flex-wrap: wrap; gap: 14px; font: 12px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--lk-mute); }
html.lk-read #main .lk-bc-rate { color: var(--lk-acc); letter-spacing: .14em; }
html.lk-read #main .lk-bc-pub { font-size: 13px; color: var(--lk-mute); }
html.lk-read .lk-bc-db { color: inherit; text-decoration: none; border-bottom: 1px solid currentColor; opacity: .8; }
html.lk-read .lk-bc-db:hover { opacity: 1; color: var(--lk-acc, #e3b95a); }
/* 2026-11-09: reading notes drop the byline row (LULIY · 約 N 分鐘 · 分享 and its rule); kept in the DOM, the scripts anchor on it */
html.lk-read #main .lk-by { display: none !important; }
html.lk-read #main .lk-bookcard { margin-top: 1.2em; }
/* 豆瓣 blurb on the right of the book card (2026-11-09) */
html.lk-read #main .lk-bookcard.has-brief .lk-bc-text { flex: none; max-width: 300px; }
html.lk-read #main .lk-bc-brief { flex: 1; min-width: 0; align-self: center; margin: 0; padding-left: 24px; border-left: 1px solid var(--lk-rule); font-size: 13.5px; line-height: 1.75; color: var(--lk-soft); text-indent: 0; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 680px) { html.lk-read #main .lk-bookcard.has-brief { flex-wrap: wrap; } html.lk-read #main .lk-bookcard.has-brief .lk-bc-text { flex: 1; max-width: none; } html.lk-read #main .lk-bc-brief { flex-basis: 100%; padding: 12px 0 0; border-left: 0; border-top: 1px solid var(--lk-rule); } }
html.lk-read.lk-has-book #main .source-body p + p { margin-top: .45em; }
html.lk-read #main .source-body blockquote.lk-excerpt { position: relative; margin: 1.6em 0; padding: .9em 1.2em 1em 1.4em; border: 0; border-left: 2px solid var(--lk-acc); background: color-mix(in srgb, var(--lk-acc) 7%, transparent); color: var(--lk-ink); font-size: .97em; line-height: 1.85; }
html.lk-read #main .source-body blockquote.lk-excerpt { font-weight: 400; text-align: justify; }
html.lk-read #main .source-body blockquote.lk-rw > :not(.lk-qtext):not(.lk-pg) { display: none; }
html.lk-read #main .source-body blockquote.lk-star { font-size: 1.28em; } /* the ★ one stays the big pull quote */
html.lk-read #main .source-body blockquote.lk-star:not(.lk-pull) { margin: 1.8em 0; padding: .9em 0 1em; border: 0; border-top: 2px solid var(--lk-ink); border-bottom: 1px solid var(--lk-rule); background: none; font-weight: 600; line-height: 1.55; }
html.lk-read #main .source-body blockquote.lk-excerpt::before { content: none; display: none; } /* the weekly page pulls short quotes out; on 讀書 only ★ ones are */
html.lk-read #main .source-body .lk-pg { display: block; margin-top: .5em; text-align: right; font: 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--lk-mute); }
html.lk-read #main .source-body .lk-quotes { margin: 3.2em 0 0; padding-top: 1.2em; border-top: 2px solid var(--lk-ink); }
html.lk-read #main .source-body .lk-quotes h3 { margin: 0 0 .8em; padding: 0; border: 0; font: 600 12px/1 var(--font-mono); letter-spacing: .26em; color: var(--lk-ink); }
html.lk-read #main .source-body .lk-quotes ol { margin: 0; padding: 0; list-style: none; counter-reset: q; }
html.lk-read #main .source-body .lk-quotes li { counter-increment: q; display: grid; grid-template-columns: 2.2em 1fr auto; gap: 10px; padding: .7em 0; border-bottom: 1px solid var(--lk-rule); font-size: .92em; line-height: 1.7; color: var(--lk-soft); }
html.lk-read #main .source-body .lk-quotes li::before { content: counter(q, decimal-leading-zero); font: 12px/1.9 var(--font-mono); color: var(--lk-acc); }
html.lk-read #main .source-body .lk-quotes li small { font: 11.5px/1.9 var(--font-mono); color: var(--lk-mute); }
@media (max-width: 680px) { html.lk-read #main .lk-bookcard { gap: 16px; padding: 14px; } html.lk-read #main .lk-bc-cover { width: 72px; } html.lk-read #main .lk-bc-title { font-size: 19px; } }

html.lk-study #main .lk-studymeta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: -1.2em 0 2.2em; font: 12px/1.5 var(--font-mono); letter-spacing: .06em; color: var(--lk-mute); }
html.lk-study #main .lk-studymeta span + span::before { content: "·"; margin-right: 18px; opacity: .6; }
html.lk-study #main .lk-sm-prog { color: var(--lk-acc); }
html.lk-study #main .lk-sm-prog.all::after { content: " ✓"; }
html.lk-study #main .source-body .lk-done { display: inline-block; vertical-align: .08em; width: 16px; height: 16px; margin: 0 10px 0 -26px; padding: 0; border: 1.5px solid var(--lk-mute); border-radius: 50%; background: none; cursor: pointer; transition: background .2s, border-color .2s; }
html.lk-study #main .source-body .lk-done[aria-pressed="true"] { border-color: var(--lk-acc); background: var(--lk-acc) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%23111' stroke-width='2'/%3E%3C/svg%3E") center / 12px no-repeat; }
html.lk-study #main .source-body .lk-done:hover, html.lk-study #main .source-body .lk-done:focus-visible { border-color: var(--lk-acc); outline: none; }
@media (max-width: 760px) { html.lk-study #main .source-body .lk-done { margin: 0 8px 0 0; } }
html.lk-study #main .source-body .lk-maskbtn { display: block; margin: 1em 0 -.6em auto; padding: 5px 10px; font: 12px/1 var(--font-mono); letter-spacing: .08em; color: var(--lk-acc); background: none; border: 1px solid var(--lk-acc); border-radius: 3px; cursor: pointer; }
html.lk-study #main .source-body .lk-maskbtn[aria-pressed="true"] { background: var(--lk-acc); color: var(--lk-bg); }
html.lk-study #main .source-body table.lk-masked td.lk-mcol:not(.lk-peek) { color: transparent; background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--lk-acc) 22%, transparent) 0 6px, color-mix(in srgb, var(--lk-acc) 12%, transparent) 6px 12px) !important; cursor: pointer; user-select: none; }
html.lk-study #main .source-body table.lk-masked td.lk-mcol:not(.lk-peek) * { visibility: hidden; }
html.lk-study #main .source-body .lk-tw tbody tr:nth-child(even) > td { background-color: color-mix(in srgb, var(--lk-ink) 5%, transparent); } /* stripes kept; no sticky head, no sideways scroll */
html.lk-study #main .source-body pre { position: relative; }
html.lk-study #main .source-body .lk-copy { position: absolute; top: 8px; right: 8px; padding: 4px 8px; font: 11.5px/1 var(--font-mono); color: var(--lk-mute); background: var(--lk-bg); border: 1px solid var(--lk-rule); border-radius: 3px; cursor: pointer; opacity: 0; transition: opacity .2s; }
html.lk-study #main .source-body pre:hover .lk-copy, html.lk-study #main .source-body .lk-copy:focus-visible { opacity: 1; }
@media (hover: none) { html.lk-study #main .source-body .lk-copy { opacity: 1; } }

/* 42 b — 讀書 as a quiet reading-room shelf (?tags=Library alone; home-fixes.js 42): six open shelves on one page,
   a vertical label with the count in 冊, linen-coloured spines with vertical titles, a ribbon on the book being read */
#main .post-archive.lk-shelf-on .post-year { display: none !important; }
.lk-shelf { --sh-ink: #e9e2d2; --sh-soft: rgba(233, 226, 210, .62); --sh-mute: rgba(233, 226, 210, .38); --sh-rule: rgba(233, 226, 210, .12); --sh-board: #6b5a43; --sh-seal: #a8433a;
  margin: 10px 0 48px; color: var(--sh-ink); font-family: var(--font-body); }
html[data-appearance="light"] .lk-shelf { --sh-ink: #2a251d; --sh-soft: rgba(42, 37, 29, .66); --sh-mute: rgba(42, 37, 29, .42); --sh-rule: rgba(42, 37, 29, .14); --sh-board: #9c8461; }
.lk-sh-head { display: flex; align-items: baseline; gap: 18px; margin: 0 0 30px; padding-bottom: 14px; border-bottom: 1px solid var(--sh-rule); }
.lk-sh-head strong { font: 600 26px/1.2 var(--font-body); letter-spacing: .32em; }
.lk-sh-head span { font-size: 13.5px; letter-spacing: .12em; color: var(--sh-mute); }
.lk-sh-case { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 0; row-gap: 36px; }
.lk-sh-cell { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 0 22px; min-height: 172px; }
.lk-sh-cell + .lk-sh-cell:not(:nth-child(3n + 1)) { border-left: 1px solid var(--sh-rule); }
.lk-sh-label { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; }
.lk-sh-label b { writing-mode: vertical-rl; font: 600 17px/1 var(--font-body); letter-spacing: .4em; color: var(--sh-ink); }
.lk-sh-label small { writing-mode: vertical-rl; font-size: 12px; letter-spacing: .24em; color: var(--sh-mute); }
.lk-sh-label::before { content: ""; width: 7px; height: 7px; background: var(--sh-seal); border-radius: 1px; opacity: .85; } /* a small seal mark */
.lk-sh-books { display: flex; align-items: flex-end; gap: 3px; padding: 0 4px; border-bottom: 3px solid var(--sh-board); box-shadow: 0 6px 10px -8px rgba(0, 0, 0, .55); }
.lk-sh-empty { align-self: center; margin: auto; writing-mode: vertical-rl; font-size: 12.5px; letter-spacing: .5em; color: var(--sh-mute); }
.lk-spine { position: relative; display: flex; justify-content: center; width: var(--w); height: var(--h); padding: 14px 0 10px; color: var(--fg); text-decoration: none; border-radius: 1px 1px 0 0;
  background: var(--bg) repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px); background-color: var(--bg);
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 3px), linear-gradient(90deg, rgba(0, 0, 0, .18), transparent 30%, transparent 75%, rgba(0, 0, 0, .22));
  box-shadow: 0 3px 8px rgba(0, 0, 0, .3); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.lk-sp-title { writing-mode: vertical-rl; white-space: nowrap; font: 500 12.5px/1 var(--font-body); letter-spacing: .22em; overflow: hidden; text-overflow: ellipsis; max-height: 100%; }
.lk-spine.is-reading::after { content: ""; position: absolute; right: 5px; top: 100%; width: 4px; height: 16px; background: var(--sh-seal); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 78%, 0 100%); } /* a ribbon */
.lk-sp-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); z-index: 5; width: max-content; max-width: 220px; padding: 8px 12px; transform: translate(-50%, 4px); opacity: 0; pointer-events: none;
  background: #f3ecdd; color: #2a251d; border-radius: 1px; box-shadow: 0 8px 22px rgba(0, 0, 0, .35); transition: opacity .2s, transform .2s; text-align: left; }
.lk-sp-tip strong { display: block; font: 600 13.5px/1.45 var(--font-body); }
.lk-sp-tip small { display: block; margin-top: 2px; font-size: 11.5px; letter-spacing: .06em; color: rgba(42, 37, 29, .6); }
.lk-spine:hover, .lk-spine:focus-visible { transform: translateY(-9px); outline: none; z-index: 3; }
.lk-spine:hover .lk-sp-tip, .lk-spine:focus-visible .lk-sp-tip { opacity: 1; transform: translate(-50%, 0); }
.lk-sh-books { min-width: 0; }
.lk-sh-books.is-tight .lk-spine { width: calc(var(--w) * .78); }
.lk-sh-books.is-tight .lk-sp-title { font-size: 11px; letter-spacing: .12em; }
.lk-pile { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-left: auto; padding: 0 0 2px; background: none; border: 0; color: var(--sh-mute); cursor: pointer; font: inherit; }
.lk-pile-bars { display: flex; flex-direction: column; gap: 1px; }
.lk-pile-bars i { display: block; height: 11px; border-radius: 1px; box-shadow: 0 2px 4px rgba(0, 0, 0, .3); background-image: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 40%, rgba(0, 0, 0, .18)); }
.lk-pile-label { font-size: 11.5px; letter-spacing: .18em; white-space: nowrap; transition: color .2s; }
.lk-pile:hover .lk-pile-label, .lk-pile:focus-visible .lk-pile-label { color: var(--sh-ink); }
.lk-pile:focus-visible { outline: 1px solid var(--sh-mute); outline-offset: 3px; }
.lk-pile.is-open { align-self: flex-start; margin-top: 6px; }
/* an opened shelf takes the whole width and becomes several shelves */
.lk-sh-cell.is-open { grid-column: 1 / -1; border-left: 0 !important; }
.lk-sh-cell.is-open .lk-sh-books { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, max-content)); grid-auto-rows: 158px; align-items: end; gap: 0 4px; border-bottom: 0; box-shadow: none;
  background: repeating-linear-gradient(180deg, transparent 0 155px, var(--sh-board) 155px 158px); }
.lk-sh-cell.is-open .lk-pile { grid-column: -2 / -1; grid-row: 1; justify-self: end; }
@media (max-width: 900px) { .lk-sh-case { grid-template-columns: repeat(2, 1fr); } .lk-sh-case > .lk-sh-cell { border-left: 0 !important; } .lk-sh-case > .lk-sh-cell:nth-child(2n) { border-left: 1px solid var(--sh-rule) !important; } }
@media (max-width: 680px) {
  .lk-sh-head strong { font-size: 22px; }
  .lk-sh-case { row-gap: 26px; }
  .lk-sh-cell { grid-template-columns: 26px 1fr; gap: 6px; padding: 0 10px; min-height: 150px; }
  .lk-sh-label b { font-size: 15px; }
  .lk-spine { height: calc(var(--h) * .86); width: calc(var(--w) * .86); }
  .lk-sp-title { font-size: 11.5px; letter-spacing: .16em; }
}
@media (prefers-reduced-motion: reduce) { .lk-spine, .lk-sp-tip { transition: none; } }

/* 42 c — opening a book from the shelf (home-fixes.js 42): the spine grows to the whole screen, then fades over the article */
.lk-bookfly { position: fixed; z-index: 9000; display: grid; place-items: center; overflow: hidden; pointer-events: none; border-radius: 2px;
  background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .04) 0 1px, transparent 1px 3px); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lk-bookfly span { writing-mode: vertical-rl; white-space: nowrap; font: 600 14px/1 var(--font-body); letter-spacing: .3em; }

/* 44 — contents beside the text (home-fixes.js 44; 傳記 pages, or ?toc=v2): collapsed = short hairlines (one per heading, longer for
   higher levels, the one being read brighter); pointing at it opens a plain-text list indented by heading level */
.lt-toc { display: none; }
html.lt-on .lt-toc { --lt-ink: var(--lk-ink, #ece6d6); position: fixed; z-index: 60; top: 136px; left: calc(50% + 434px); display: block; width: 56px;
  font-family: var(--font-body); }
html.lt-on .luliy-mascot .lk-card { display: none !important; }
.lt-cap, .lt-mark { display: none !important; }
.lt-head { display: block; width: 44px; padding: 6px 0 10px; border: 0; background: none; color: var(--lt-ink); cursor: pointer; }
.lt-dots { display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.lt-dots i { display: block; height: 1px; background: currentColor; opacity: .32; transform-origin: left center;
  transition: opacity .2s ease, transform .28s cubic-bezier(.2, .7, .2, 1); }
.lt-dots .d0 { width: 26px; } .lt-dots .d1 { width: 17px; } .lt-dots .d2 { width: 10px; }
.lt-dots i.on, .lt-dots i.hov { opacity: .95; }
/* open: the hairlines stretch and fade while the titles slide in after them, one by one (2026-11-07, no display switch) */
.lt-toc.open .lt-dots i { opacity: 0; transform: scaleX(3); }
.lt-list { position: absolute; top: 0; left: 0; width: 240px; margin: 0; padding: 0; list-style: none; max-height: calc(100vh - 200px); overflow: auto; scrollbar-width: none;
  visibility: hidden; pointer-events: none; transition: visibility 0s linear .2s; }
.lt-toc.open .lt-list { visibility: visible; pointer-events: auto; transition: none; }
.lt-list li { opacity: 0; transform: translateX(-8px); transition: opacity .14s ease, transform .14s ease; }
.lt-toc.open .lt-list li { opacity: 1; transform: none; transition: opacity .26s ease calc(var(--i, 0) * 16ms), transform .32s cubic-bezier(.2, .7, .2, 1) calc(var(--i, 0) * 16ms); }
@media (prefers-reduced-motion: reduce) { .lt-dots i, .lt-list li, .lt-toc.open .lt-list li { transform: none !important; transition-duration: .01s !important; transition-delay: 0s !important; } }
.lt-list a { display: block; padding: 4px 0; color: color-mix(in srgb, var(--lt-ink) 48%, transparent); font-size: 13px; line-height: 1.5; text-decoration: none; transition: color .15s; }
.lt-list a b { display: none; }
.lt-list .lt-l1 a { padding-left: 14px; font-size: 12.5px; }
.lt-list .lt-l2 a { padding-left: 28px; font-size: 12px; }
.lt-list a:hover, .lt-list a:focus-visible { color: var(--lt-ink); outline: none; }
.lt-list a[aria-current] { color: var(--lt-ink); font-weight: 600; }
@media (max-width: 1339px) { html.lt-on .lt-toc { display: none; } html.lt-on .luliy-mascot .lk-card { display: none !important; } }
/* 43 b — 傳記 (Library + 传记), wide screens: the sheet stays where it is; the portrait fills the space to its left (fixed while
   scrolling); Loon steps aside for the aresluna-style contents (section 44); 標記 · 返回 · 頂部 buttons at the bottom right */
.lk-bio-side, .lk-bio-tools { display: none; }
@media (min-width: 1001px) {
  /* 2026-11-07: a wider sheet on 傳記 pages that grows to the right only: its left edge and the portrait stay where they were
     (700px of text centred, plus 64px of paper); the text widens into the empty space on the right, up to 820px */
  html.lk-bio { --bio-text: clamp(700px, calc(50vw + 6px), 820px); --bio-w: max(0px, calc((100vw - 828px) / 2)); --bio-rail: calc(50% + var(--bio-text) - 266px); }
  html.lk-weekly.lk-bio #main .source-reading { position: relative; left: calc((var(--bio-text) - 700px) / 2); max-width: var(--bio-text); }
  /* contents and the three buttons share one left edge, 20px right of the paper */
  html.lk-bio.lt-on .lt-toc { left: var(--bio-rail); width: 56px; }
  html.lk-bio .lt-list { width: min(240px, calc(50vw - var(--bio-text) + 246px)); }
  /* less empty space between parts: the · · · break and the headings sit closer to the text around them */
  html.lk-bio #main .source-body hr { display: none; } /* no · · · break on 傳記 pages */
  html.lk-essay.lk-bio #main .source-body h2 { margin-top: 1.6em; padding-top: 0; border-top: 0; } /* no rule above the big headings either */
  html.lk-essay.lk-bio #main .source-body h3 { margin-top: 1.2em; }
  html.lk-bio .lk-bio-side { position: fixed; z-index: 5; left: 0; top: 0; bottom: 0; display: block; width: var(--bio-w); overflow: hidden; background: #000; }
  html.lk-bio .lk-bio-side img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
  html.lk-bio .lk-bio-side::after { content: ""; position: absolute; inset: 0 0 auto; height: 120px; background: linear-gradient(rgba(0, 0, 0, .45), transparent); }
  html.lk-bio #main .lk-cover, html.lk-bio .lk-glow { display: none !important; }
  /* 觀點類 (Library + 成長／投資): same page as 傳記, the left panel holds the cover and the book's details instead of a portrait */
  html.lk-view .lk-bio-side { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 26px; padding: 0 clamp(24px, 3vw, 56px); box-sizing: border-box; background:
    radial-gradient(120% 70% at 50% 38%, color-mix(in srgb, var(--lk-acc, #c58a5c) 16%, #0b0b0b) 0%, #0b0b0b 70%); }
  html.lk-view .lk-bio-side::after { display: none; }
  html.lk-view .lk-bio-side img { width: min(100%, 240px); height: auto; aspect-ratio: 2 / 3; object-fit: cover; object-position: center; border-radius: 2px 5px 5px 2px;
    box-shadow: inset 4px 0 0 rgba(0, 0, 0, .28), 0 24px 50px rgba(0, 0, 0, .55), 0 3px 8px rgba(0, 0, 0, .4); }
  html.lk-view .lk-vs-cap { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; text-align: center; color: #e9e3d3; font-family: var(--font-body); }
  html.lk-view .lk-vs-cap .lk-bc-title { font: 700 20px/1.35 var(--font-body); }
  html.lk-view .lk-vs-cap .lk-bc-pub { font-size: 12.5px; color: rgba(233, 227, 211, .5); }
  html.lk-view .lk-vs-cap .lk-bc-author { font-size: 14px; color: rgba(233, 227, 211, .7); }
  html.lk-view .lk-vs-cap .lk-bc-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; font: 12px/1.4 var(--font-mono); letter-spacing: .06em; color: rgba(233, 227, 211, .5); }
  html.lk-view .lk-vs-cap .lk-bc-rate { color: var(--lk-acc, #c58a5c); letter-spacing: .14em; }
  html.lk-view #main .lk-bookcard { display: none; }
  /* 2026-11-09: a reading note without a book card — the title, large, in the left panel */
  html.lk-plain .lk-ps-cap { gap: 18px; padding: 0 8px; }
  html.lk-plain .lk-ps-kick { font: 600 11px/1 var(--font-mono); letter-spacing: .28em; color: var(--lk-acc, #c58a5c); text-transform: uppercase; }
  html.lk-plain .lk-ps-title { font: 700 clamp(30px, 2.6vw, 46px)/1.3 var(--font-display, var(--font-body)); letter-spacing: .08em; color: #ece6d6; text-wrap: balance; }
  /* the title lives on the left: the article's own h1 is hidden from sight (still read out by screen readers) */
  html.lk-plain #main .lk-kick { display: none !important; } /* the 「LIBRARY · 成長」 line too: the left panel says it */
  html.lk-plain #main .source-reading h1 { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; padding: 0; }
  html.lk-plain .lk-ps-rule { width: 36px; height: 1px; background: rgba(236, 230, 214, .35); }
  html.lk-weekly.lk-bio #main .source-reading.lk-cov { padding-top: 108px !important; }
  html.lk-weekly.lk-bio .lk-cov > .lk-kick { padding-top: 0 !important; }
  html.lk-bio .luliy-mascot { display: none !important; }
  html.lk-bio .lk-bio-tools { position: fixed; z-index: 40; left: var(--bio-rail); bottom: 26px; display: flex; flex-direction: column; gap: 10px; }
  /* black and white only: a dark square, a light line icon; marked = the colours swap */
  .lk-bt { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 10px; background: #161616; color: #ededed; cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .35); transition: background .2s, color .2s, transform .2s; }
  .lk-bt svg { width: 20px; height: 20px; }
  .lk-bt:hover, .lk-bt:focus-visible { background: #262626; outline: none; transform: translateY(-1px); }
  .lk-bt.on { background: #ededed; color: #111; border-color: #ededed; }
  .lk-bt-top { height: 50px; align-content: center; gap: 1px; }
  .lk-bt-top svg { width: 18px; height: 8px; }
  .lk-bt-top span { font: 500 15px/1 var(--font-body); letter-spacing: 0; } /* a serif 頂 under a hairline chevron */
  html[data-appearance="light"] .lk-bt { background: #fff; color: #111; border-color: rgba(0, 0, 0, .12); box-shadow: 0 4px 12px rgba(0, 0, 0, .1); }
  html[data-appearance="light"] .lk-bt:hover { background: #f2f2f2; }
  html[data-appearance="light"] .lk-bt.on { background: #111; color: #fff; border-color: #111; }
}

/* 45 — arriving on an article (home-fixes.js 45): the sheet and its side parts wait unseen until dressed, then fade in */
html.lk-veil #main .source-reading, html.lk-veil .lk-bio-side, html.lk-veil .lt-toc, html.lk-veil .lk-bio-tools { opacity: 0 !important; transition: none !important; }
html.lk-arrive #main .source-reading, html.lk-arrive .lk-bio-side, html.lk-arrive .lt-toc, html.lk-arrive .lk-bio-tools { animation: lk-arrive .26s ease both; }
@keyframes lk-arrive { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { html.lk-arrive #main .source-reading, html.lk-arrive .lk-bio-side, html.lk-arrive .lt-toc, html.lk-arrive .lk-bio-tools { animation: none; } }

/* 傳記 typesetting at every width (2026-11-08): no · · · break, no rule above headings, tighter gaps. Phones included, where the
   portrait panel is not shown; the desktop-only rules above hold the rest. */
html.lk-biog #main .source-body hr { display: none; }
html.lk-biog.lk-essay #main .source-body h2 { margin-top: 1.5em; margin-bottom: .5em; padding-top: 0; border-top: 0; }
html.lk-biog.lk-essay #main .source-body h3 { margin-top: 1.2em; margin-bottom: .4em; }
html.lk-biog #main .source-body p { margin-top: 0; margin-bottom: .7em; }
html.lk-biog #main .source-body p:empty, html.lk-biog #main .source-body br:only-child { display: none; }
html.lk-biog #main .source-body > br { display: none; }
@media (max-width: 700px) {
  html.lk-biog #main .source-body h2 { font-size: 1.35em; line-height: 1.4; }
  html.lk-biog #main .source-body { line-height: 1.85; }
}

/* 47 — home: a circled question mark at the right of 「教程」 that opens the Markdown cheat card (home-fixes.js 47) */
html.lh-on .lh-stacks { position: relative; z-index: 6; }
html.lh-on .lh-top { position: relative; z-index: 3; } /* the card opens over the issue card below */
.lk-howto { position: absolute; z-index: 30; font-family: var(--font-body); }
.lk-howto-btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted, #9a948a); cursor: pointer; transition: color .18s; }
.lk-howto-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.lk-howto-btn svg .dot { fill: currentColor; stroke: none; }
.lk-howto-btn:hover, .lk-howto-btn[aria-expanded="true"], .lk-howto-btn:focus-visible { color: var(--accent, #c9a86a); outline: none; }
.lk-howto-card { position: absolute; top: 40px; left: 0; width: min(380px, calc(100vw - 32px)); max-height: min(66vh, 600px); overflow: auto; scrollbar-width: thin;
  padding: 16px 18px 14px; box-sizing: border-box; border: 1px solid var(--line, rgba(255,255,255,.12)); border-radius: 8px;
  background: #141312; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); color: #e8e2d4;
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1), visibility 0s linear .22s; }
.lk-howto-card.on { opacity: 1; visibility: visible; transform: none; transition: opacity .18s ease, transform .22s cubic-bezier(.2,.7,.2,1), visibility 0s; }
.lk-howto-h { margin-bottom: 4px; font: 600 10.5px/1 var(--font-mono); letter-spacing: .24em; color: var(--muted, #9a948a); }
.lk-howto-g { margin: 12px 0 6px; font: 600 12px/1.4 var(--font-mono); color: var(--accent, #c9a86a); }
.lk-howto-card dl { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 6px 12px; margin: 0; }
.lk-howto-card dt { font: 11.5px/1.55 var(--font-mono); white-space: pre-wrap; word-break: break-word; color: var(--ink, #e8e2d4); }
.lk-howto-card dd { margin: 0; font-size: 12.5px; line-height: 1.55; color: color-mix(in srgb, var(--ink, #e8e2d4) 68%, transparent); }
.lk-howto-f { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line, rgba(255,255,255,.12)); font-size: 12px; color: var(--muted, #9a948a); }
html:not([data-appearance="dark"]):not([data-appearance="cc"]) .lk-howto-card { background: #fbf8f1; color: #24211c; box-shadow: 0 18px 40px rgba(0, 0, 0, .14); }
@media (max-width: 700px) { .lk-howto-btn { width: 24px; height: 24px; } .lk-howto-btn svg { width: 15px; height: 15px; } }
@media (prefers-reduced-motion: reduce) { .lk-howto-card, .lk-howto-card.on { transform: none; transition-duration: .01s; } }

/* 劃線 (2026-11-09): saved highlights in reading notes — 金 重點 · 藍 疑問 · 紅 反對; a dotted underline = has a note */
:root { --hl-gold: rgba(214, 170, 70, .34); --hl-blue: rgba(96, 150, 220, .34); --hl-red: rgba(214, 92, 80, .32); --hl-gold-s: #e3b95a; --hl-blue-s: #7aa9e6; --hl-red-s: #e07a6e; }
html[data-appearance="light"] { --hl-gold: rgba(240, 195, 70, .5); --hl-blue: rgba(110, 165, 235, .38); --hl-red: rgba(235, 110, 95, .34); --hl-gold-s: #b88a1c; --hl-blue-s: #2f6fbf; --hl-red-s: #c0473a; }
::highlight(lk-hl-gold), ::highlight(lk-hl-gold-n) { background-color: var(--hl-gold); }
::highlight(lk-hl-blue), ::highlight(lk-hl-blue-n) { background-color: var(--hl-blue); }
::highlight(lk-hl-red), ::highlight(lk-hl-red-n) { background-color: var(--hl-red); }
::highlight(lk-hl-gold-n) { text-decoration: underline dotted var(--hl-gold-s) 2px; text-underline-offset: 4px; }
::highlight(lk-hl-blue-n) { text-decoration: underline dotted var(--hl-blue-s) 2px; text-underline-offset: 4px; }
::highlight(lk-hl-red-n) { text-decoration: underline dotted var(--hl-red-s) 2px; text-underline-offset: 4px; }
::highlight(lk-hl-flash) { background-color: rgba(214, 170, 70, .8); }
.lk-hl-pop, .lk-hl-ed, .lk-hl-tip { position: fixed; z-index: 90; }
.lk-hl-pop[hidden], .lk-hl-panel[hidden], .lk-hl-ed[hidden], .lk-hl-tip[hidden] { display: none; }
.lk-hl-pop button { padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: #161616; color: #ededed; font: 500 14px/1 var(--font-body); box-shadow: 0 6px 18px rgba(0, 0, 0, .4); cursor: pointer; }
.lk-hl-pop button:hover { background: #262626; }
/* the panel beside the pen */
.lk-hl-panel { position: fixed; z-index: 41; left: calc(var(--bio-rail, 16px) + 54px); bottom: 26px; width: min(300px, calc(100vw - var(--bio-rail, 16px) - 70px)); max-height: 66vh; overflow: auto; padding: 4px 14px 12px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; background: #141414; color: #ededed; box-shadow: 0 10px 28px rgba(0, 0, 0, .45); }
.lk-hl-head { display: flex; align-items: center; gap: 8px; width: 100%; padding: 10px 0 8px; border: 0; background: none; color: inherit; font: 13px/1 var(--font-body); cursor: pointer; text-align: left; }
.lk-hl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hl-gold-s); box-shadow: 0 0 0 3px rgba(227, 185, 90, .2); animation: lk-hl-pulse 1.8s ease-in-out infinite; }
.lk-hl-dot-blue { background: var(--hl-blue-s); box-shadow: 0 0 0 3px rgba(122, 169, 230, .2); }
.lk-hl-dot-red { background: var(--hl-red-s); box-shadow: 0 0 0 3px rgba(224, 122, 110, .2); }
@keyframes lk-hl-pulse { 50% { box-shadow: 0 0 0 6px rgba(227, 185, 90, .05); } }
.lk-hl-n { color: rgba(237, 237, 237, .55); font-family: var(--font-mono); font-size: 12px; }
.lk-hl-car { margin-left: auto; font-size: 12px; color: rgba(237, 237, 237, .55); }
.lk-hl-head:hover .lk-hl-car { color: var(--hl-gold-s); }
.lk-hl-sw { display: flex; gap: 6px; padding-bottom: 10px; }
.lk-hl-c { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: none; color: inherit; font: 12px/1 var(--font-body); cursor: pointer; transition: background .2s, border-color .2s; }
.lk-hl-c i { width: 10px; height: 10px; border-radius: 50%; background: var(--hl-gold-s); }
.lk-hl-c-blue i { background: var(--hl-blue-s); }
.lk-hl-c-red i { background: var(--hl-red-s); }
.lk-hl-c:hover { background: rgba(255, 255, 255, .06); }
.lk-hl-c.on { border-color: currentColor; background: rgba(255, 255, 255, .08); }
.lk-hl-panel .lk-hl-empty { padding: 0 0 4px; font-size: 13px; }
.lk-hl-panel ul { list-style: none; margin: 0; padding: 0; }
.lk-hl-panel li { display: flex; gap: 6px; align-items: flex-start; padding: 8px 0 8px 10px; border-top: 1px solid rgba(255, 255, 255, .07); box-shadow: inset 2px 0 0 var(--hl-gold-s); }
.lk-hl-panel li.lk-hl-li-blue { box-shadow: inset 2px 0 0 var(--hl-blue-s); }
.lk-hl-panel li.lk-hl-li-red { box-shadow: inset 2px 0 0 var(--hl-red-s); }
.lk-hl-go { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; white-space: normal; text-align: left; padding: 0; border: 0; background: none; color: inherit; font: 14px/1.55 var(--font-body); cursor: pointer; }
.lk-hl-go:hover .lk-hl-q { color: var(--hl-gold-s); }
.lk-hl-note { font-size: 12.5px; line-height: 1.5; color: rgba(237, 237, 237, .6); }
.lk-hl-note::before { content: '— '; }
.lk-hl-x { border: 0; background: none; color: rgba(237, 237, 237, .45); font-size: 18px; line-height: 1; cursor: pointer; }
.lk-hl-x:hover { color: #fff; }
.lk-hl-copy { width: 100%; margin-top: 8px; padding: 8px 0; border: 1px dashed rgba(255, 255, 255, .18); border-radius: 8px; background: none; color: inherit; font: 13px/1 var(--font-body); cursor: pointer; }
.lk-hl-copy:hover { border-style: solid; background: rgba(255, 255, 255, .05); }
.lk-hl-empty { margin: 0; font-size: 14px; line-height: 1.6; color: rgba(237, 237, 237, .65); }
/* the editor and the note */
.lk-hl-ed { width: min(300px, calc(100vw - 16px)); padding: 12px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 12px; background: #161616; color: #ededed; box-shadow: 0 12px 30px rgba(0, 0, 0, .5); }
.lk-hl-ed textarea { display: block; box-sizing: border-box; width: 100%; resize: vertical; min-height: 56px; padding: 8px 10px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 8px; background: rgba(255, 255, 255, .04); color: inherit; font: 14px/1.55 var(--font-body); }
.lk-hl-ed textarea:focus { outline: none; border-color: var(--hl-gold-s); }
.lk-hl-ft { display: flex; justify-content: space-between; margin-top: 10px; }
.lk-hl-ft button { padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 999px; background: none; color: inherit; font: 13px/1 var(--font-body); cursor: pointer; }
.lk-hl-ft .lk-hl-del { color: var(--hl-red-s); border-color: transparent; padding-left: 0; }
.lk-hl-ft .lk-hl-ok { background: #ededed; color: #111; border-color: #ededed; }
.lk-hl-tip { max-width: min(280px, calc(100vw - 16px)); padding: 8px 12px; border-radius: 8px; background: #161616; color: #ededed; font: 13.5px/1.55 var(--font-body); box-shadow: 0 8px 22px rgba(0, 0, 0, .45); border-left: 3px solid var(--hl-gold-s); pointer-events: none; white-space: pre-wrap; }
.lk-hl-tip-blue { border-left-color: var(--hl-blue-s); }
.lk-hl-tip-red { border-left-color: var(--hl-red-s); }
/* the floating pen (phones, and reading notes without the side buttons) */
.lk-hl-fab { position: fixed; z-index: 40; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); /* above the chapter bar (.lk-bar) */ display: none; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; background: #161616; color: #ededed; box-shadow: 0 6px 16px rgba(0, 0, 0, .4); cursor: pointer; transition: background .2s, color .2s; }
.lk-hl-fab svg { width: 20px; height: 20px; }
.lk-hl-fab.on { background: #ededed; color: #111; border-color: #ededed; }
html.lk-read .lk-hl-fab { display: grid; }
@media (max-width: 1000px), (pointer: coarse) { html .lk-hl-fab, html .lk-hl-panel, html .lk-hl-pop, html .lk-hl-ed { display: none !important; } }
html.lk-read.lk-bio .lk-hl-fab { display: none; }
html.lk-read.lk-hl-mode:not(.lk-bio) .luliy-mascot { opacity: 0; pointer-events: none; }
@media (max-width: 1000px) { html.lk-read.lk-bio .lk-hl-fab { display: grid; } }
html:not(.lk-bio) .lk-hl-panel { left: auto; right: 16px; bottom: calc(130px + env(safe-area-inset-bottom)); width: min(320px, calc(100vw - 32px)); max-height: 50vh; }
@media (max-width: 1000px) { html.lk-bio .lk-hl-panel { left: auto; right: 16px; bottom: calc(130px + env(safe-area-inset-bottom)); width: min(320px, calc(100vw - 32px)); max-height: 50vh; } }
html.lk-hl-mode #main .source-body { cursor: text; }
html.lk-hl-mode #main .source-body ::selection { background: rgba(227, 185, 90, .45); }
html.lk-hl-mode #main .source-body.lk-hl-over { cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .lk-hl-dot { animation: none; } }
html[data-appearance="light"] .lk-hl-pop button, html[data-appearance="light"] .lk-hl-panel, html[data-appearance="light"] .lk-hl-ed, html[data-appearance="light"] .lk-hl-tip, html[data-appearance="light"] .lk-hl-fab { background: #fff; color: #111; border-color: rgba(0, 0, 0, .12); }
html[data-appearance="light"] .lk-hl-fab.on, html[data-appearance="light"] .lk-hl-ft .lk-hl-ok { background: #111; color: #fff; border-color: #111; }
html[data-appearance="light"] .lk-hl-panel li { border-top-color: rgba(0, 0, 0, .08); }
html[data-appearance="light"] .lk-hl-n, html[data-appearance="light"] .lk-hl-car, html[data-appearance="light"] .lk-hl-note, html[data-appearance="light"] .lk-hl-empty, html[data-appearance="light"] .lk-hl-x { color: rgba(0, 0, 0, .55); }
html[data-appearance="light"] .lk-hl-c, html[data-appearance="light"] .lk-hl-copy, html[data-appearance="light"] .lk-hl-ed textarea, html[data-appearance="light"] .lk-hl-ft button { border-color: rgba(0, 0, 0, .14); }
html[data-appearance="light"] .lk-hl-c.on { border-color: currentColor; background: rgba(0, 0, 0, .05); }
html[data-appearance="light"] .lk-hl-tip { border-left-color: var(--hl-gold-s); }
html[data-appearance="light"] .lk-hl-tip-blue { border-left-color: var(--hl-blue-s); }
html[data-appearance="light"] .lk-hl-tip-red { border-left-color: var(--hl-red-s); }

/* 48. 寫作檢查 (2026-11-10): the owner's pill, bottom left (only with localStorage lk-check) */
.lk-chk { position: fixed; z-index: 60; left: 16px; bottom: 16px; max-width: min(340px, calc(100vw - 32px)); border: 1px solid rgba(227, 185, 90, .45); border-radius: 12px; background: #141312; color: #ededed; font: 13px/1.55 var(--font-body); box-shadow: 0 10px 28px rgba(0, 0, 0, .45); overflow: hidden; }
.lk-chk.ok { border-color: rgba(255, 255, 255, .14); opacity: .75; }
.lk-chk-head { display: block; width: 100%; padding: 9px 14px; border: 0; background: none; color: #e3b95a; font: 600 12.5px/1.2 var(--font-body); letter-spacing: .04em; text-align: left; cursor: pointer; }
.lk-chk.ok .lk-chk-head { color: rgba(237, 237, 237, .7); cursor: default; }
.lk-chk ul, .lk-chk-off { display: none; }
.lk-chk.open ul { display: block; list-style: none; margin: 0; padding: 0 14px 6px; max-height: 50vh; overflow: auto; }
.lk-chk li { padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .08); }
.lk-chk li strong { display: block; font-weight: 600; }
.lk-chk li span { color: rgba(237, 237, 237, .68); }
.lk-chk.open .lk-chk-off { display: block; padding: 8px 14px 10px; color: rgba(237, 237, 237, .5); font-size: 12px; text-decoration: underline; }
html.lk-bio .lk-chk, html.luliy-mascot-on .lk-chk { left: auto; right: 16px; bottom: 16px; }
@media (min-width: 1001px) { html.lk-bio .lk-chk { right: auto; left: 16px; } }
@media print { .lk-chk { display: none; } }

/* 36 l) 2026-11-15  share button at the foot of issues and reading notes (their byline row, where 分享 used to be, is hidden) */
html.lk-weekly #main .lk-endshare { display: none; }
html.lk-weekly #main .source-reading[data-lk-no] > .lk-endshare,
html.lk-weekly.lk-read #main .source-reading > .lk-endshare {
  display: block; margin: 44px auto 26px; padding: 7px 16px; font: 500 12px/1.2 var(--font-mono); letter-spacing: .18em;
  color: color-mix(in srgb, var(--lk-ink) 70%, transparent); background: none;
  border: 1px solid color-mix(in srgb, var(--lk-ink) 28%, transparent); border-radius: 2px; cursor: pointer; }
html.lk-weekly #main .lk-endshare:hover, html.lk-weekly #main .lk-endshare:focus-visible {
  color: var(--lk-ink); border-color: var(--lk-ink); outline: none; }

/* 46) 2026-11-15  My databases (#/c/<id>): table, cards and timeline views of data/db/<id>.json */
#main .lc-page { max-width: 1040px; }
#main .lc-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
#main .lc-head h1 { margin: 0; }
#main .lc-count { margin: 0; font: 500 12px/1 var(--font-mono); letter-spacing: .14em; color: var(--muted); }
#main .lc-search { margin-left: auto; width: 200px; padding: 7px 11px; font: inherit; font-size: 14px; color: var(--text); background: none; border: 1px solid var(--line); border-radius: 6px; }
#main .lc-search:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#main .lc-state { color: var(--muted); }
#main .lc-link { color: var(--accent); text-decoration: none; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
#main .lc-link:hover { border-bottom-color: var(--accent); }
#main .lc-scroll { overflow-x: auto; }
#main .lc-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
#main .lc-table th { text-align: left; padding: 9px 14px 9px 0; font: 500 12px/1.4 var(--font-mono); letter-spacing: .12em; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
#main .lc-table td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text); line-height: 1.6; }
#main .lc-table td.lc-first { color: var(--ink); font-weight: 600; white-space: nowrap; }
#main .lc-table td img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; display: block; }
#main .lc-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
#main .lc-card { display: block; padding: 18px 18px 16px; color: var(--text); text-decoration: none; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; transition: border-color .2s ease, transform .2s ease; }
#main a.lc-card:hover, #main a.lc-card:focus-visible { border-color: var(--accent); transform: translateY(-2px); outline: none; }
#main .lc-card-img { margin: -18px -18px 14px; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 5px 5px 0 0; background: var(--line); }
#main .lc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
#main .lc-card h3 { margin: 0 0 6px; font-size: 18px; line-height: 1.4; color: var(--ink); }
#main .lc-card p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.65; color: var(--muted); overflow-wrap: anywhere; }
#main .lc-card .lc-host { font: 500 11.5px/1.4 var(--font-mono); letter-spacing: .06em; color: var(--accent); }
#main .lc-card .lc-k { font-size: 12px; opacity: .8; }
#main .lc-time { list-style: none; margin: 0; padding: 0 0 0 22px; border-left: 1px solid var(--line); }
#main .lc-year { margin: 30px 0 14px -22px; padding-left: 22px; font: 600 13px/1 var(--font-mono); letter-spacing: .2em; color: var(--accent); }
#main .lc-year:first-child { margin-top: 0; }
#main .lc-ev { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 14px; padding: 0 0 22px; }
#main .lc-ev::before { content: ''; position: absolute; left: -26px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
#main .lc-ev time { font: 500 12.5px/1.9 var(--font-mono); color: var(--muted); }
#main .lc-ev h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.5; color: var(--ink); }
#main .lc-ev p { margin: 0 0 4px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
#main .lc-ev img { max-width: 260px; border-radius: 4px; display: block; margin-top: 6px; }
@media (max-width: 768px) {
  #main .lc-search { margin-left: 0; width: 100%; }
  #main .lc-table thead { display: none; }
  #main .lc-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
  #main .lc-table td { display: block; padding: 2px 0; border: 0; white-space: normal !important; }
  #main .lc-table td:not(.lc-first):not(:empty)::before { content: attr(data-label) ' '; font: 500 11px/1 var(--font-mono); letter-spacing: .1em; color: var(--muted); }
  #main .lc-cards { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { #main .lc-card { transition: none; } }
