/* week-view.css — the web week view, Round 7 "Exhibition wall" (born dark:
   web_week_view). Spec: ~/lifenote/org/mockups/weekly-push-landing/round7.html.
   Two soft surfaces (the painting, 12 px; the sheet, 16 px), pills of one
   height, one 8-point rhythm, zero italics. Loaded only with the flag. */

.wkv {
    --serif: Palatino, "Palatino Linotype", "Book Antiqua", "Noto Serif TC", Georgia, serif;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang TC", "Inter", sans-serif;
    --tx: #333333; --title: #111111; --muted: #4B5563; --soft: #8a7a63; --sub: rgba(0,0,0,.07);
    --ground: #FBF9F4; --hair: rgba(120,92,50,.16); --gold: #b98d4f; --ink: #241a10; --cardx: #4a3f33;
    --rgold: #8a6418; --rgoldb: rgba(168,123,30,.55); --violet: #8b5cf6;
    --wall: #F5F2EB; --wall2: #EDE8DD; --sheetbg: #FFFDF9; --tilebg: rgba(120,92,50,.08); --tilebgh: rgba(185,141,79,.20);
    position: fixed; inset: 0; z-index: 9998;
    font-family: var(--serif); color: var(--tx); text-align: left; line-height: 1.5;
    animation: wkvIn .28s ease both;
}
body.dark .wkv {
    --tx: #EAE7F5; --title: #FFFFFF; --muted: #a39bb8; --soft: #A99F8C; --sub: rgba(255,255,255,.07);
    --ground: #1a1625; --hair: rgba(214,178,110,.16); --gold: #C9A15C; --ink: #F0EAD9; --cardx: #cfc7b6;
    --rgold: #D4B86E; --rgoldb: rgba(212,184,110,.65); --violet: #c4b5fd;
    --wall: #1f1a2a; --wall2: #17131f; --sheetbg: #2B2437; --tilebg: rgba(255,255,255,.06); --tilebgh: rgba(214,178,110,.18);
}
/* The wall's measures. The wall column is as wide as what hangs on it; the
   sheet takes what is left, from --sheetw up to --sheetmax (a 604 px reading
   measure: about 73 Latin characters or 33 CJK at 18 px). Past that the spare
   width goes to the margins and a little to the gap, so the painting, its
   label and the letter stay together in the middle of a wide window.
   On body too: the Listen player docks to the sheet from outside .wkv. */
body.wkv-open, .wkv {
    --sheetw: 500px; --sheetmax: 700px; --labw: 340px;
    --pw: clamp(180px, min(calc((100vh - 305px) / 1.5), calc(100vw - var(--sheetw) - var(--labw) - 104px)), 420px);
    --wallw: max(640px, calc(var(--pw) + var(--labw) + 104px));
    --sheetcol: clamp(var(--sheetw), calc(100vw - var(--wallw)), var(--sheetmax));
    --spare: max(0px, calc(100vw - var(--wallw) - var(--sheetcol)));
    --gapx: min(calc(var(--spare) / 3), 48px);
    --side: calc((var(--spare) - var(--gapx)) / 2);
}
@media (max-width: 1279px) { body.wkv-open, .wkv { --sheetw: 460px; --labw: 300px; } }
body.wkv-open { overflow: hidden; }
.wkv, .wkv *, .wkv *::before, .wkv *::after { font-style: normal !important; box-sizing: border-box; }
@keyframes wkvIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes wkvTIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.wkv-scene { position: absolute; inset: 0; overflow: hidden; }
.wkv button { font-family: inherit; }
.wkv-dt { font: 600 11.5px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.wkv-cjk .wkv-dt { letter-spacing: .08em; }
.wkv-wt { text-wrap: balance; font: 400 27px/1.25 var(--serif); color: var(--title); margin: 6px 0 0; }
.wkv-cjk .wkv-wt { line-height: 1.4; }
.wkv-wt.swap { animation: wkvTIn .6s ease; }

/* ---------- the wall ---------- */
.wkv-W { background: radial-gradient(ellipse 60% 70% at 28% 6%, rgba(255,253,248,.95), transparent 70%), linear-gradient(180deg, var(--wall), var(--wall2)); }
body.dark .wkv-W { background: radial-gradient(ellipse 50% 70% at 28% 6%, rgba(255,226,170,.07), transparent 70%), linear-gradient(180deg, var(--wall), var(--wall2)); }
.wkv-W .wkv-body { position: absolute; inset: 0; display: grid; grid-template-columns: var(--wallw) var(--sheetcol); column-gap: var(--gapx); justify-content: center; }
.wkv-wall { position: relative; padding: 24px 0 0 40px; z-index: 3; min-width: 0; }
.wkv-whead { max-width: 600px; padding-right: 160px; transition: filter 2s ease 1s; }
.wkv-exh { display: flex; gap: 32px; align-items: flex-start; margin-top: 24px; }
.wkv-pcol { flex: none; display: flex; flex-direction: column; transition: filter 1.4s ease; }
.wkv-frame { position: relative; cursor: zoom-in; width: var(--pw); height: calc(var(--pw) * 1.5); border-radius: 12px; overflow: hidden;
    box-shadow: 0 1px 2px rgba(30,18,6,.10), 0 10px 24px rgba(30,18,6,.14), 0 34px 60px -24px rgba(30,18,6,.30); }
body.dark .wkv-frame { box-shadow: 0 0 0 1px rgba(255,255,255,.07), 0 14px 34px rgba(0,0,0,.55), 0 0 80px rgba(255,226,170,.05); }
.wkv-pimg { display: block; width: 100%; height: 100%; object-fit: cover; }

/* the label: lettered on the wall, no card */
.wkv-lab { width: var(--labw); max-height: calc(100vh - 200px); overflow-y: auto; scrollbar-width: none; padding: 0 2px 24px 0; transition: filter 2s ease 1s; }
.wkv-lab::-webkit-scrollbar { display: none; }
.wkv-lab.long { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 40px), transparent); }
.wkv-nm { font: 600 17px/1.35 var(--serif); color: var(--title); margin: 0; }
.wkv-ex { font: 13.5px/1.6 var(--serif); color: var(--cardx); margin: 8px 0 0; }
.wkv-cjk .wkv-ex { line-height: 1.8; }
.wkv-acts { display: flex; gap: 8px; margin-top: 16px; }
.wkv-acts button { flex: 1; min-width: 0; height: 36px; padding: 0 8px; border-radius: 999px; font: 600 12.5px var(--serif); letter-spacing: .2px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; }
.wkv-s1 { border: none; background: #2a2118; color: #FBF6EC; }
body.dark .wkv-s1 { background: #F4EFE6; color: #1F2937; }
.wkv-s2 { border: 1px solid rgba(42,33,24,.28); background: transparent; color: var(--ink); }
body.dark .wkv-s2 { border-color: rgba(255,255,255,.35); color: #fff; }
.wkv-s2.is-locked { opacity: .6; }
.wkv-lock { width: 12px; height: 12px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 2.5; }
.wkv-rrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.wkv-rrow > div > div { margin-top: 0 !important; }

/* Reimagine (soul_art_reimagine.js) on the light wall: the same button, a pill of the row's height */
.wkv-W .pr-entry { height: 36px; margin-top: 0 !important; padding: 0 16px !important; border-radius: 999px !important;
    border: 1px solid var(--rgoldb) !important; color: var(--rgold) !important; font-size: 12.5px !important; }
.wkv-W .pr-entry.is-spent { border-color: rgba(120,100,80,.25) !important; color: var(--soft) !important; }
.wkv-W .wkv-reim [style*="rgba(255,180,150"] { color: #b4532f !important; }
/* thumbs (ai_feedback.js): the chip sheet loses its box on the wall */
.wkv .wkv-pfb-sheet .ai-feedback-sheet, .wkv .wkv-lfb-sheet .ai-feedback-sheet { background: none !important; border: none !important; padding: 8px 0 0 !important; margin: 0 !important; border-radius: 0 !important; }

.wkv-src { margin-top: 24px; }
.wkv-slab { font: 600 10.5px/1.2 var(--sans); letter-spacing: .14em; color: var(--soft); text-transform: uppercase; margin: 0 0 8px; }
.wkv-cjk .wkv-slab { letter-spacing: .06em; font-size: 11px; }
.wkv-d4s { display: flex; gap: 8px; flex-wrap: wrap; }
.wkv-d4c { width: 40px; height: 44px; border: none; border-radius: 10px; background: var(--tilebg); display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; padding: 0; line-height: 1; color: var(--title); transition: background .15s; }
.wkv-d4c:hover { background: var(--tilebgh); }
.wkv-dd { font: 15px var(--serif); }
.wkv-dw { margin-top: 4px; font: 8px var(--serif); letter-spacing: .6px; color: var(--muted); }
.wkv-cjk .wkv-dw { font-size: 9px; letter-spacing: 0; }

/* Versions hang under the painting (they are images of it) */
.wkv-vers:empty { display: none; }
.wkv-pcol .wkv-vers { margin-top: 24px; max-width: max(var(--pw), 220px); }
.wkv-W .pr-versions-label { font: 600 10.5px/1.2 var(--sans) !important; letter-spacing: .14em !important; color: var(--soft) !important; margin: 0 0 8px !important; text-transform: uppercase; }
.wkv-W .pr-ver > div { border-radius: 6px !important; border: none !important; box-shadow: 0 1px 2px rgba(30,18,6,.18); }
.wkv-W .pr-ver.is-displayed > div { box-shadow: 0 0 0 2px var(--wall), 0 0 0 3.5px #D4B86E; }
.wkv-W .pr-ver span { color: var(--soft) !important; font: 10px var(--sans) !important; letter-spacing: .04em !important; }
.wkv-W .pr-commit { height: 30px; padding: 0 14px !important; border-radius: 999px !important; border: 1px solid var(--rgoldb) !important; color: var(--rgold) !important; margin-top: 8px !important; }

/* the sheet: one soft surface; its header stays put while the letter scrolls */
.wkv-sheetbox { position: relative; padding: 68px 32px 32px 0; z-index: 1; perspective: 1600px; min-width: 0; }
.wkv-sheet { position: relative; height: 100%; background: var(--sheetbg); border-radius: 16px; box-shadow: 0 1px 2px rgba(30,18,6,.06), 0 16px 40px rgba(30,18,6,.12); transition: transform .32s ease-in; }
body.dark .wkv-sheet { box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 18px 40px rgba(0,0,0,.45); }
.wkv-sheet.turn { transform: rotateY(90deg); }
.wkv-face { position: absolute; inset: 0; border-radius: 16px; padding: 0 32px 24px; overflow-y: auto; scrollbar-width: thin; }
.wkv-back { display: none; }
.wkv-sheet.flip .wkv-back { display: block; }
.wkv-sheet.flip .wkv-front { display: none; }
.wkv-sheet.playing .wkv-face { bottom: 96px; padding-bottom: 16px; border-radius: 16px 16px 0 0; -webkit-mask-image: linear-gradient(to top, transparent 0, #000 24px); mask-image: linear-gradient(to top, transparent 0, #000 24px); }
.wkv-shead { position: sticky; top: 0; z-index: 2; background: var(--sheetbg); padding: 24px 0 16px; margin-bottom: 8px; }
.wkv-shead::after { content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 16px; background: linear-gradient(var(--sheetbg), transparent); pointer-events: none; }
.wkv-LE .wkv-shead { --sheetbg: var(--ground); }
.wkv-mrow { display: flex; align-items: center; gap: 12px; margin: 0; }
.wkv-mav { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; margin: 0 4px 0 0; flex: none; }
.wkv-mn { min-width: 0; }
.wkv-mrow h3 { font: 700 20px/1.35 var(--serif); margin: 0; color: var(--tx); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wkv-mrow p { font: 14px/1.4 var(--serif); margin: 0; color: var(--muted); }
.wkv-mrow .tts-listen-btn { width: 32px; height: 32px; flex: none; border-radius: 50%; border: 1px solid var(--hair); background: transparent; color: var(--muted); }
.wkv-mrow .tts-listen-btn:hover { color: var(--title); border-color: var(--gold); background: transparent; }
.wkv-mrow .tts-listen-btn svg { width: 15px; height: 15px; }
.wkv-turnp { margin-left: auto; height: 34px; padding: 0 14px 0 16px; border-radius: 999px; border: 1px solid var(--rgoldb); background: transparent; color: var(--rgold); font: 600 13.5px var(--serif); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; flex: none; }
.wkv-turnp:hover { background: rgba(185,141,79,.10); }
.wkv-turnp svg, .wkv-tb svg, .wkv-ra svg { stroke: currentColor; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wkv-turnp svg { width: 14px; height: 14px; stroke-width: 2; }
.wkv-turnl { display: inline-flex; align-items: center; gap: 6px; font: 600 15px var(--serif); color: var(--gold); cursor: pointer; padding: 8px 0 0; border: none; background: none; }
.wkv-letter { color: var(--tx); text-align: left; line-height: 1.6; }
.wkv-letter p { margin: 0 0 16px; color: var(--tx); }
.wkv-cjk .wkv-letter { line-height: 1.75; }
.wkv-lfb { padding: 0 0 4px; }
.wkv-orn { text-align: center; color: var(--gold); letter-spacing: .6em; font-size: 14px; margin: 30px 0 24px; }
.wkv-rs { padding: 0 0 6px; margin-bottom: 22px; }
.wkv-rs h3 { font: 700 calc(24px * var(--reading-scale, 1))/1.33 var(--serif); margin: 0 0 8px; color: var(--tx); display: flex; align-items: center; }
.wkv-rs p, .wkv-rs li { font: calc(18px * var(--reading-scale, 1))/1.556 var(--serif); margin: 0; color: var(--tx); }
.wkv-cjk .wkv-rs p, .wkv-cjk .wkv-rs li { line-height: 1.75; }
.wkv-rs ul { margin: 0; padding-left: 24px; list-style: disc; }
.wkv-rs li { margin-bottom: 6px; }

/* the reveal: the room is dark; the painting lights first, then the room */
.wkv-lights { position: absolute; inset: 0; background: rgba(6,5,8,.95); z-index: 4; pointer-events: none; transition: opacity 2s ease 1s; }
.wkv-W:not(.pre) .wkv-lights { opacity: 0; }
.wkv-W.pre .wkv-pcol, .wkv-W.pre .wkv-lab, .wkv-W.pre .wkv-whead, .wkv-W.pre .wkv-rail { filter: brightness(.12); }
.wkv-W.pre .wkv-tb { color: rgba(255,255,255,.6); }
.wkv-W.noart .wkv-body { grid-template-columns: 1fr; }
.wkv-W.noart .wkv-wall { position: absolute; left: 0; right: 0; top: 0; padding: 24px 0 0; text-align: center; }
.wkv-W.noart .wkv-whead { margin: 0 auto; padding: 0 160px; }
.wkv-W.noart .wkv-sheetbox { width: 620px; max-width: calc(100vw - 80px); margin: 0 auto; padding: 112px 0 80px; }
.wkv-W.noletter .wkv-body { grid-template-columns: 1fr; }
.wkv-W.noletter .wkv-wall { padding: 24px 0 0; display: flex; flex-direction: column; align-items: center; }
.wkv-W.noletter .wkv-whead { text-align: center; padding: 0; }
.wkv-W.noletter { --pw: clamp(180px, calc((100vh - 290px) / 1.5), 420px); }

/* ---------- the top controls: 36 px circles on one centre line ---------- */
.wkv-tools { position: absolute; top: 16px; right: 20px; height: 36px; display: flex; gap: 4px; z-index: 30; align-items: center; }
.wkv-tb { width: 36px; height: 36px; flex: none; border-radius: 50%; border: none; background: transparent; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.wkv-tb:hover { background: rgba(139,92,246,.08); color: var(--tx); }
.wkv-tb.on { background: rgba(139,92,246,.14); color: var(--title); }
.wkv-tb svg { width: 20px; height: 20px; display: block; stroke-width: 1.75; }
.wkv-tb[disabled] { opacity: .3; cursor: default; }
.wkv-div { width: 1px; height: 20px; background: var(--sub); margin: 0 4px; flex: none; }
.wkv-aa { display: flex; align-items: center; }
.wkv-aa .rsc-trigger { width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; border-radius: 50%; border: none; color: var(--muted); opacity: 1; font-family: var(--serif); }
.wkv-aa .rsc-trigger:hover { background: rgba(139,92,246,.08); color: var(--tx); }

/* ---------- the week strip: ‹ thumbnails › ---------- */
.wkv-rail { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; align-items: center; gap: 6px; z-index: 6; font-family: var(--sans); }
.wkv-W .wkv-rail { left: var(--side); right: auto; width: var(--wallw); }
.wkv-W.noart .wkv-rail, .wkv-W.noletter .wkv-rail { left: 0; right: 0; width: auto; }
.wkv-ra { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--hair); background: rgba(255,253,249,.7); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; margin: 0 6px; }
body.dark .wkv-ra { background: rgba(43,36,55,.75); }
.wkv-ra:hover { border-color: var(--gold); }
.wkv-ra[disabled] { opacity: .3; cursor: default; }
.wkv-ra svg { width: 16px; height: 16px; stroke-width: 2; }
.wkv-rt { position: relative; width: 22px; height: 33px; border: none; padding: 0; border-radius: 2px; cursor: pointer; background: center/cover; opacity: .62; box-shadow: 0 1px 2px rgba(30,18,6,.25); transition: opacity .2s, transform .2s; flex: none; }
.wkv-rt:hover { opacity: 1; transform: translateY(-2px); }
.wkv-rt.on { opacity: 1; width: 26px; height: 39px; box-shadow: 0 0 0 2px var(--ground), 0 0 0 3.5px var(--gold), 0 2px 6px rgba(30,18,6,.3); }
.wkv-rt.paper { background: linear-gradient(168deg, #f6edd9, #e6d4ad); border-left: 2px solid #b98d4f; }
body.dark .wkv-rt.paper { background: linear-gradient(168deg, #4a4058, #2e2738); }
.wkv-rl { font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); min-width: 92px; text-align: center; }
.wkv-rl.l { text-align: right; } .wkv-rl.r { text-align: left; }
.wkv-cjk .wkv-rl { letter-spacing: .04em; }

/* walking: the exhibit slides as one */
@keyframes wkvInR { from { opacity: 0; transform: translateX(34px); } to { opacity: 1; transform: none; } }
@keyframes wkvInL { from { opacity: 0; transform: translateX(-34px); } to { opacity: 1; transform: none; } }
.goR .wkv-mv { animation: wkvInR .34s cubic-bezier(.2,.7,.2,1) both; }
.goL .wkv-mv { animation: wkvInL .34s cubic-bezier(.2,.7,.2,1) both; }
.goR .wkv-mv.wkv-d2, .goL .wkv-mv.wkv-d2 { animation-delay: .05s; }

/* ---------- Art alone: the shipped lightbox slide, inside the week ---------- */
.wkv-AR { background: radial-gradient(ellipse 60% 60% at 50% 40%, #1d1922, #0b0a0e 75%); color: #fff; }
.wkv-stage { position: absolute; left: 0; right: 0; top: 30px; bottom: 112px; display: flex; align-items: center; justify-content: center; gap: 32px; }
.wkv-stage > img { height: 100%; max-height: 720px; aspect-ratio: 2 / 3; width: auto; object-fit: cover; border-radius: 12px; box-shadow: 0 8px 40px rgba(0,0,0,.5); cursor: zoom-out; }
.wkv-cap { position: absolute; left: 0; right: 0; bottom: 70px; text-align: center; }
.wkv-cap button { background: none; border: none; color: rgba(255,255,255,.72); font: 15px var(--serif); cursor: pointer; padding: 4px 10px; border-radius: 14px; }
.wkv-cap button:hover { color: #fff; background: rgba(255,255,255,.08); }
.wkv-cap button span { color: rgba(255,255,255,.45); font-size: 12px; margin-left: 8px; }
.wkv-AR.words .wkv-stage { bottom: 70px; }
.wkv-sai { width: 340px; max-height: 100%; overflow-y: auto; scrollbar-width: none; text-align: left; }
.wkv-sai h2 { font: 400 22px/1.3 var(--serif); color: #fff; margin: 0 0 6px; }
.wkv-sai .wkv-dr { font: 12px var(--sans); color: rgba(255,255,255,.45); margin: 0 0 20px; }
.wkv-sai .wkv-ex { font: 14px/1.7 var(--serif); color: rgba(255,255,255,.7); margin: 0; }
.wkv-cjk .wkv-sai .wkv-ex { line-height: 1.85; }
.wkv-sai .wkv-acts { margin-top: 24px; }
.wkv-sai .wkv-s1 { background: #fff; color: #1F2937; }
.wkv-sai .wkv-s2 { border-color: rgba(255,255,255,.6); color: #fff; }
.wkv-sai .wkv-slab { color: rgba(255,255,255,.4); }
.wkv-sai .wkv-d4c { color: #fff; background: rgba(255,255,255,.08); }
.wkv-sai .wkv-d4c:hover { background: rgba(255,255,255,.16); }
.wkv-sai .wkv-dw { color: rgba(255,255,255,.5); }
.wkv-sai .wkv-vers { margin-top: 16px; }
.wkv-AR .wkv-tb { color: rgba(255,255,255,.75); }
.wkv-AR .wkv-tb:hover, .wkv-AR .wkv-tb.on { background: rgba(255,255,255,.12); color: #fff; }
.wkv-AR .wkv-div { background: rgba(255,255,255,.15); }
.wkv-AR .wkv-ra { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #fff; }
.wkv-AR .wkv-rl { color: rgba(255,255,255,.5); }
.wkv-AR .wkv-rt.on { box-shadow: 0 0 0 2px #0b0a0e, 0 0 0 3.5px #D4B86E; }

/* ---------- Letter alone: one reading column ---------- */
.wkv-LE { background: var(--ground); }
.wkv-LE > .wkv-sc { position: absolute; inset: 0; overflow-y: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 56px); mask-image: linear-gradient(to bottom, transparent 0, #000 56px); }
.wkv-col { max-width: 640px; margin: 0 auto; padding: 64px 40px 110px; }
.wkv-col .wkv-wt { font-size: 32px; margin: 8px 0 24px; }
.wkv-LE .wkv-shead { position: relative; }
.wkv-LE .wkv-rail { padding: 18px 0 8px; bottom: 0; background: linear-gradient(to top, var(--ground) 72%, transparent); }

/* Listen: the player docks in the sheet's foot on the wall, mid-bottom elsewhere */
body.wkv-open .tts-mini-player { left: 50%; right: auto; transform: translateX(-50%); bottom: 72px; }
@media (min-width: 1100px) {
    body.wkv-open[data-wkv="wall"] .tts-mini-player { left: auto; right: 64px; transform: none; bottom: 48px; width: 404px; }
    body.wkv-open[data-wkv="wall"]:has(.wkv-W:not(.noart)) .tts-mini-player { right: calc(var(--side) + 64px); width: calc(var(--sheetcol) - 96px); }
}
@media (min-width: 1100px) and (max-width: 1279px) {
    body.wkv-open[data-wkv="wall"] .tts-mini-player { width: 364px; }
}

/* ---------- narrow (720–1099): one scroll, the strip pinned at the bottom ---------- */
@media (max-width: 1099px) {
    .wkv { --pw: 250px; }
    .wkv-W .wkv-body { display: block; overflow-y: auto; padding-bottom: 80px; }
    .wkv-W::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 68px; background: linear-gradient(var(--wall) 62%, transparent); z-index: 6; pointer-events: none; }
    .wkv-W.pre::before { display: none; }
    .wkv-wall { padding: 72px 0 0; display: flex; flex-direction: column; align-items: center; text-align: center; }
    .wkv-whead { padding: 0 64px; max-width: none; }
    .wkv-exh { flex-direction: column; align-items: center; gap: 24px; }
    .wkv-pcol { align-items: center; }
    .wkv-lab { width: min(452px, calc(100vw - 128px)); max-height: none; text-align: left; }
    .wkv-lab.long { -webkit-mask-image: none; mask-image: none; }
    .wkv-sheetbox { width: auto; padding: 24px 64px 40px; }
    .wkv-sheet { height: auto; }
    .wkv-face { position: relative; inset: auto; overflow: visible; }
    .wkv-sheet.playing .wkv-face { bottom: auto; padding-bottom: 24px; -webkit-mask-image: none; mask-image: none; }
    .wkv-shead { position: relative; }
    .wkv-W .wkv-rail, .wkv-W.noart .wkv-rail { left: 0; right: 0; width: auto; bottom: 0; padding: 10px 0 12px; background: linear-gradient(to top, var(--wall2) 55%, transparent); }
    .wkv-W.noart .wkv-wall { position: static; }
    .wkv-W.noart .wkv-whead { padding: 0 64px; }
    .wkv-W.noart .wkv-sheetbox { width: auto; max-width: none; padding-top: 24px; }
    .wkv-AR.words .wkv-stage { flex-direction: column; justify-content: flex-start; overflow-y: auto; padding: 10px 0 20px; gap: 16px; }
    .wkv-AR.words .wkv-stage > img { height: 380px; flex: none; }
    .wkv-AR.words .wkv-sai { width: auto; max-height: none; overflow: visible; text-align: center; padding: 0 70px; }
    .wkv-AR.words .wkv-acts, .wkv-AR.words .wkv-d4s, .wkv-AR.words .wkv-rrow { justify-content: center; }
    .wkv-rl { min-width: 0; display: none; }
}

/* ---------- the week in JOURNALS (sidebar), where Life places it ---------- */
#mySidebar .wkv-jrow { display: flex; align-items: center; gap: 10px; height: 35px; margin: 0 8px 0 0; padding: 0 10px 0 15px; border-radius: 0 10px 10px 0;
    font-size: 13.5px; color: var(--sidebar-text); cursor: pointer; white-space: nowrap; }
#mySidebar .wkv-jrow:hover { background-color: var(--wrb-hover, rgba(17,17,17,.05)); }
#mySidebar .wkv-jd4 { flex: none; width: 26px; display: flex; align-items: center; justify-content: center; }
#mySidebar .wkv-mk { display: block; flex: none; }
#mySidebar .wkv-mk.seal { width: 18px; height: 24px; border-radius: 3px; background: linear-gradient(168deg, #f6edd9, #e6d4ad); box-shadow: inset 2px 0 0 #b98d4f, 0 1px 2px rgba(30,18,6,.18); }
body.dark #mySidebar .wkv-mk.seal { background: linear-gradient(168deg, #3a3147, #2e2738); }
#mySidebar .wkv-mk.thumb { width: 18px; height: 26px; border-radius: 3px; background: center/cover; box-shadow: 0 0 0 1px rgba(0,0,0,.10), 0 1px 2px rgba(30,18,6,.18); }
#mySidebar .wkv-mk.icon svg { width: 20px; height: 20px; display: block; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
#mySidebar .wkv-mk.icon .wkv-gold { fill: #C9A15C; stroke: none; }
#mySidebar .wkv-jt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#mySidebar .wkv-jrow.sealed .wkv-jt { font-weight: 500; }
#mySidebar .wkv-jdates { flex: none; font-size: 11.5px; color: var(--wrb-faint, #7a7883); }
#mySidebar .wkv-gdot { width: 7px; height: 7px; border-radius: 50%; background: #C9A15C; box-shadow: 0 0 0 3px rgba(201,161,92,.18); flex: none; font-style: normal; }
