/* The desktop layout for the screens other than the shell: start screen, review room, Sprint, grids, settings, Today with
   Akane, Talk, the case, the wrap-up (docs/54 sections 4 and 12). Every rule hangs off html.wide (1280 px and up) or html.two
   (900 to 1279 px), so a phone sees none of it. The shell (desktop.css) draws the grid; a screen opts in with
   app.layout("stage" | "full" | "column"). Sections: the start screen, the grids (grades, kana pages, parts), a kanji and a
   part, Settings, the Sprint, the memory room, Today, Talk, the case, the wrap-up and the notebook page. */

/* ------------------------------------------------------------------ the start screen (js/ui/dash.js) */
html:is(.wide, .two) #app[data-layout="full"] .view.dashview { padding: 0 0 22px; overflow-y: auto; }
html:is(.wide, .two) .dash { --dash-h: var(--art-h); display: grid; gap: 22px; align-items: start; grid-template-areas: "story mid side"; }
html.wide .dash { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
html.two .dash { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); grid-template-areas: "story mid" "story side"; }
html:is(.wide, .two) .dash-story { grid-area: story; } html:is(.wide, .two) .dash-mid { grid-area: mid; } html:is(.wide, .two) .dash-side { grid-area: side; }
html:is(.wide, .two) .view.dashview:has(> .awu-banner:not(.hidden)) .dash { --dash-h: calc(var(--art-h) - 114px); }   /* the update banner above it takes its room */
html:is(.wide, .two) .dash-mid, html:is(.wide, .two) .dash-side { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
html.wide .dash-side { min-height: var(--dash-h); gap: 12px; }
html.wide .dash-device, html.two .dash-device { margin-top: auto; }
html.two .dash-device { margin-top: 6px; }

html:is(.wide, .two) .dcard { position: relative; padding: 18px 20px; border-radius: 18px; background: #14171c; border: 1px solid var(--line); color: var(--text); }
html:is(.wide, .two) a.dcard:hover { border-color: var(--crema); }
html:is(.wide, .two) .dkick { font: 700 11.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent2); }

/* the story card: the next lesson's place as the picture, the words over its lower half */
html:is(.wide, .two) .dash-story { position: sticky; top: 0; height: var(--dash-h); min-height: 440px; padding: 0; overflow: hidden; border-color: #c8a27a66; box-shadow: 0 24px 70px #0009; }
html:is(.wide, .two) .ds-pic { position: absolute; inset: 0; background: linear-gradient(160deg, #2a2420, #14110f) 50% 38% / cover no-repeat; }
html:is(.wide, .two) .ds-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0a080600 0%, #0a080600 34%, #0a0806c4 66%, #0a0806f2 100%); }
html:is(.wide, .two) .ds-hit { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
html:is(.wide, .two) .ds-hit:focus-visible { outline-offset: -4px; }
html:is(.wide, .two) .ds-tag { position: absolute; z-index: 2; left: 18px; top: 16px; padding: 4px 11px; border-radius: 999px; background: #0a0806a6; border: 1px solid #ffffff33; font: 700 11.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; }
html:is(.wide, .two) .ds-info { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 0 26px 24px; pointer-events: none; }
html:is(.wide, .two) .ds-info a { pointer-events: auto; }
html:is(.wide, .two) .ds-info .ds-title { margin: 6px 0 8px; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.15; }
html:is(.wide, .two) .ds-about { margin: 0 0 14px; font-size: 16.5px; line-height: 1.5; color: #ece7df; text-shadow: 0 1px 8px #000a; }
html:is(.wide, .two) .ds-strip { display: flex; gap: 5px; margin: 0 0 18px; pointer-events: auto; }
html:is(.wide, .two) .ds-seg { position: relative; flex: 1 1 0; height: 8px; border-radius: 4px; background: #ffffff33; }
html:is(.wide, .two) .ds-seg::after { content: ""; position: absolute; inset: -9px 0; }
html:is(.wide, .two) .ds-seg.done { background: var(--ok); }
html:is(.wide, .two) .ds-seg.now { background: var(--accent2); }
html:is(.wide, .two) .ds-seg:hover { filter: brightness(1.4); }
html:is(.wide, .two) .ds-act { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; }
html:is(.wide, .two) body.app .ds-go { min-height: 52px; padding: 0 28px; font-size: 17px; }
html:is(.wide, .two) .ds-sub { font-size: 14px; color: #d4cec4; text-shadow: 0 1px 6px #000a; }

/* the middle: reviews, Today, the Sprint */
html:is(.wide, .two) .dash-reviews { padding-bottom: 20px; }
html:is(.wide, .two) .dr-due { margin: 10px 0 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
html:is(.wide, .two) .dr-due b { font-size: 40px; line-height: 1.1; font-weight: 700; }
html:is(.wide, .two) .dr-due.none b { font-size: 24px; }
html:is(.wide, .two) .dr-due span { color: var(--muted); font-size: 15px; }
html:is(.wide, .two) .dr-bars { display: flex; align-items: flex-end; gap: 6px; height: 58px; margin: 14px 0 6px; }
html:is(.wide, .two) .dr-bars i { flex: 1 1 0; min-height: 3px; border-radius: 4px 4px 2px 2px; background: #2b4468; }
html:is(.wide, .two) .dr-bars i.now { background: var(--blue); }
html:is(.wide, .two) .dr-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; }
html:is(.wide, .two) body.app .dr-go { margin-top: 16px; min-height: 48px; padding: 0 28px; font-size: 16px; }
html:is(.wide, .two) .dash .today-card { min-height: 150px; border-radius: 18px; }
html:is(.wide, .two) .dash .today-kicker { font: 700 11.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent2); }
html:is(.wide, .two) .dash .today-plan { font-size: 21px; font-weight: 750; line-height: 1.25; opacity: 1; }
html:is(.wide, .two) .dash .today-go { top: 12px; right: 12px; }
html:is(.wide, .two) .dash-sprint { display: block; }
html:is(.wide, .two) .dsp-count { margin: 10px 0 14px; display: flex; align-items: baseline; gap: 8px; }
html:is(.wide, .two) .dsp-count b { font-size: 36px; line-height: 1.1; font-weight: 700; }
html:is(.wide, .two) .dsp-count span { color: var(--muted); font-size: 15px; }
html:is(.wide, .two) .dsp-cells { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 5px; }
html:is(.wide, .two) .dsp-cells i { display: grid; place-items: center; aspect-ratio: 1.12; border-radius: 7px; font-style: normal; font-size: clamp(13px, 1.15vw, 17px); line-height: 1; background: #1c2027; color: #5c626b; border: 1px solid transparent; }
html:is(.wide, .two) .dsp-cells i.met { border-color: #c8a27a88; color: var(--accent2); background: transparent; }
html:is(.wide, .two) .dsp-cells i.fast { background: #173226; border-color: #2a5c40; color: #86e6ae; }

/* the right: side quests, and this device */
html:is(.wide, .two) .dash-side > .dkick { margin: 2px 2px 0; }
html:is(.wide, .two) .dq-list { display: flex; flex-direction: column; gap: 12px; }
html:is(.wide, .two) .dq { display: grid; grid-template-columns: 62px minmax(0, 1fr) 22px; align-items: center; gap: 14px; padding: 14px 18px 14px 14px; min-height: 84px; border-radius: 16px; background: #14171c; border: 1px solid var(--line); color: var(--text); cursor: pointer; list-style: none; }
html:is(.wide, .two) .dq:hover { border-color: var(--crema); }
html:is(.wide, .two) .dq.rec { border-color: #c8a27a77; }
html:is(.wide, .two) .dq-ja { text-align: center; white-space: nowrap; font-size: 18px; line-height: 1.3; color: var(--accent2); }
html:is(.wide, .two) .dq-ja.big { font-size: 30px; }
html:is(.wide, .two) .dq-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
html:is(.wide, .two) .dq-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
html:is(.wide, .two) .dq-top b { font-size: 17px; line-height: 1.3; }
html:is(.wide, .two) .dq-tag { flex: none; font-size: 11.5px; font-weight: 700; color: var(--muted); }
html:is(.wide, .two) .dq.rec .dq-tag { color: var(--amber); }
html:is(.wide, .two) .dq-line { font-size: 14px; line-height: 1.35; color: var(--muted); }
html:is(.wide, .two) .dq-meter { display: flex; align-items: center; gap: 10px; margin-top: 7px; }
html:is(.wide, .two) .dq-bar { flex: 1 1 auto; height: 6px; border-radius: 3px; overflow: hidden; background: #ffffff14; }
html:is(.wide, .two) .dq-bar i { display: block; height: 100%; background: var(--accent2); border-radius: 3px; }
html:is(.wide, .two) .dq-prog { flex: none; font: 12px var(--mono); color: var(--dim); }
html:is(.wide, .two) .dq-go { display: grid; place-items: center; color: var(--crema); }
html:is(.wide, .two) .dq-go svg { width: 18px; height: 18px; transition: transform .15s var(--ease); }
html:is(.wide, .two) .dq-fold > summary::-webkit-details-marker { display: none; }
html:is(.wide, .two) .dq-fold[open] > summary .dq-go svg { transform: rotate(90deg); }
html:is(.wide, .two) .dq-fold > .stops { margin-top: 8px; }
html:is(.wide, .two) .dash-side .sq-back { margin: 2px 4px; }
html:is(.wide, .two) .dash-device { padding: 16px 20px 14px; }
html:is(.wide, .two) .dd-body { margin-top: 10px; font-size: 14.5px; }
html:is(.wide, .two) .dd-body .awu { gap: 8px; }
html:is(.wide, .two) .dd-body .awu > .awu-act { display: none; }
html:is(.wide, .two) .dd-links { display: flex; gap: 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13.5px; }
html:is(.wide, .two) .dd-links a { color: var(--muted); }
html:is(.wide, .two) .dd-links a:hover { color: var(--text); }
html:is(.wide, .two) .dash .awu-banner { margin: 0 0 14px; }

/* ------------------------------------------------------------------ the pages that use the width: grade and kana pages, the parts map */
/* The lesson lists (a grade, hiragana, katakana): the page's own card on the left, the lessons in columns on the right. */
html:is(.wide, .two) #app[data-layout="full"] .view.home:not(.dashview) { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); column-gap: 32px; align-content: start; padding: 6px 0 36px; width: 100%; max-width: 1320px; margin-inline: auto; }
html:is(.wide, .two) #app[data-layout="full"] .view.home:not(.dashview) > * { grid-column: 2; min-width: 0; }
html:is(.wide, .two) #app[data-layout="full"] .view.home:not(.dashview) > .home-hero { grid-column: 1; grid-row: 1 / span 40; position: sticky; top: 0; align-self: start; margin: 4px 0 0; padding: 22px 22px 24px; }
html:is(.wide, .two) #app[data-layout="full"] .view.home:not(.dashview) > h2 { margin: 6px 0 4px; }
html:is(.wide, .two) #app[data-layout="full"] .view.home:not(.dashview) .stops { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 8px 12px; }
html:is(.wide, .two) #app[data-layout="full"] .view.home:not(.dashview) .stops.grades { grid-template-columns: 1fr; }
html:is(.wide, .two) #app[data-layout="full"] .view.home:not(.dashview) .stops-section { margin-bottom: 8px; }
html:is(.wide, .two) #app[data-layout="full"] .view.home:not(.dashview) .stops-section > summary { padding: 8px 2px; }
html:is(.wide, .two) #app[data-layout="full"] .view.home:not(.dashview) .sprint-card { margin: 4px 0 6px; }
html:is(.wide, .two) #app[data-layout="full"] .view.home:not(.dashview) .home-links { margin: 18px 0 0; }
@media (hover: hover) {
 html:is(.wide, .two) .view.home:not(.dashview) .stop:hover, html:is(.wide, .two) .view.home:not(.dashview) .sprint-card:hover { border-color: var(--crema); } 
}
html.two #app[data-layout="full"] .view.home:not(.dashview) { grid-template-columns: minmax(260px, 320px) minmax(0, 1fr); column-gap: 24px; }

/* The parts map: tiles across the whole width. */
html:is(.wide, .two) #app[data-layout="full"] .view.parts { padding: 6px 0 36px; }
html:is(.wide, .two) #app[data-layout="full"] .view.parts > .how { max-width: 760px; }
html:is(.wide, .two) #app[data-layout="full"] .view.parts .part-grid { grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 10px; }
html:is(.wide, .two) #app[data-layout="full"] .view.parts .part-tile { padding: 14px 8px 10px; border-radius: 16px; }
html:is(.wide, .two) #app[data-layout="full"] .view.parts .part-tile .pg { font-size: 44px; }
@media (hover: hover) {
 html:is(.wide, .two) .view.parts .part-tile:hover { border-color: var(--crema); } 
}

/* A part: its big glyph on the left, what it is and its kanji on the right. */
html:is(.wide, .two) #app[data-layout="full"] .view.part { display: grid; grid-template-columns: minmax(220px, 340px) minmax(0, 1fr); column-gap: 48px; align-content: start; width: 100%; max-width: 1100px; margin-inline: auto; padding: 14px 0 36px; }
html:is(.wide, .two) #app[data-layout="full"] .view.part > * { grid-column: 2; min-width: 0; }
html:is(.wide, .two) #app[data-layout="full"] .view.part > .part-big { grid-column: 1; grid-row: 1 / span 12; align-self: start; margin: 0; padding: 36px 0; font-size: 190px; border-radius: 22px; border: 1px solid var(--line); background: #14171c; }
html:is(.wide, .two) #app[data-layout="full"] .view.part .chips { gap: 10px; }

/* A kanji: its picture (stroke by stroke) on the left, its facts on the right. */
html:is(.wide, .two) #app[data-layout="full"] .view.kanji-page { display: grid; grid-template-columns: minmax(280px, 420px) minmax(0, 1fr); column-gap: 52px; align-content: start; width: 100%; max-width: 1180px; margin-inline: auto; padding: 14px 0 36px; }
html:is(.wide, .two) #app[data-layout="full"] .view.kanji-page > * { grid-column: 2; min-width: 0; }
html:is(.wide, .two) #app[data-layout="full"] .view.kanji-page > .kbox-wrap { grid-column: 1; grid-row: 1 / span 14; align-self: start; justify-content: center; position: sticky; top: 8px; margin: 4px 0 0; }
html:is(.wide, .two) #app[data-layout="full"] .view.kanji-page .readings, html:is(.wide, .two) #app[data-layout="full"] .view.kanji-page .words { max-width: 680px; }

/* Settings: the update panel across the top, then two columns of cards. */
html:is(.wide, .two) #app[data-layout="full"] .view.settings { width: 100%; max-width: 1160px; margin-inline: auto; padding: 8px 0 40px; }
html:is(.wide, .two) #app[data-layout="full"] .view.settings .device { max-width: 760px; }
html:is(.wide, .two) #app[data-layout="full"] .view.settings .set-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; align-items: start; }
html:is(.wide, .two) #app[data-layout="full"] .view.settings .set-col > .settings-group { text-transform: none; letter-spacing: .04em; font: 650 15px var(--font-ui, inherit); color: var(--muted); margin: 22px 0 10px; }

/* ------------------------------------------------------------------ the Sprint (js/ui/sprint.js): the round in the middle, its chart beside it */
html:is(.wide, .two) #app[data-layout="full"] .view.sprint { padding: 4px 0 30px; }
html:is(.wide, .two) .sp:not(.sp-layer) { display: grid; grid-template-columns: var(--mid) minmax(280px, 380px); column-gap: var(--gap); justify-content: center; align-items: start; }
html:is(.wide, .two) .sp:not(.sp-layer) > .sp-body { grid-column: 1; min-height: 0; padding: 24px 28px 28px; border-radius: 22px; border: 1px solid var(--line); background: #12151af2; box-shadow: 0 30px 80px #000a; }
html:is(.wide, .two) .sp:not(.sp-layer) > .sp-aside { grid-column: 2; position: sticky; top: 0; padding: 16px 18px 18px; border-radius: 18px; background: #14171c; border: 1px solid var(--line); }
html:is(.wide, .two) .sp:not(.sp-layer) > .sp-body .sp-chartwrap { display: none; }
html:is(.wide, .two) .sp-aside .sp-chartwrap h2 { margin: 0 0 10px; font-size: 15px; }
html:is(.wide, .two) .sp-aside .sp-chart { gap: 5px; }
html:is(.wide, .two) .sp-aside .sp-cell { height: 46px; font-size: 22px; }
html:is(.wide, .two) .sp-aside .sp-legend { margin-top: 12px; }
/* the choices show the key that taps them */
html:is(.wide, .two) .sp .sp-opts:not(.sp-sounds) { counter-reset: spo; }
html:is(.wide, .two) .sp .sp-opts:not(.sp-sounds) > .sp-opt { position: relative; }
html:is(.wide, .two) .sp .sp-opts:not(.sp-sounds) > .sp-opt::before { counter-increment: spo; content: counter(spo); position: absolute; left: 10px; top: 7px; font: 600 11px var(--mono); color: var(--dim); }
@media (hover: hover) {
 html:is(.wide, .two) .sp .sp-rbtn:hover:not(:disabled),
html:is(.wide, .two) .sp .sp-tab:hover,
html:is(.wide, .two) .sp .sp-opt:hover,
html:is(.wide, .two) .sp .sp-cell:hover { border-color: var(--crema); } 
}
html.two .sp:not(.sp-layer) { grid-template-columns: var(--mid) minmax(240px, 340px); column-gap: 22px; }
/* over a lesson (the Sprint's layer) it is a dialog in the middle, the rest of the screen dimmed behind it */
html:is(.wide, .two) .sp-layer { top: calc(var(--app-top, 0px) + 22px); height: calc(var(--app-h, 100%) - 44px); max-width: 760px; padding: 18px 26px 22px; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 0 0 100vmax #000b, 0 30px 80px #000c; }

/* ------------------------------------------------------------------ the memory room (srs/review.js, js/ui/review-desk.js): the room in the middle, two panels beside it */
html:is(.wide, .two) #app[data-layout="full"] .view.review { padding: 0 0 24px; }
html:is(.wide, .two) .view.review.rvd { display: grid; grid-template-columns: minmax(0, 1fr) var(--mid) minmax(0, 1fr); column-gap: var(--gap); align-items: start; }
html:is(.wide, .two) .rvd-info { display: contents; }
html:is(.wide, .two) .rvd-mid { grid-column: 2; grid-row: 1; min-width: 0; }
html:is(.wide, .two) .rvd-card { width: 100%; max-width: 380px; position: sticky; top: 0; padding: 18px 20px 20px; }
html:is(.wide, .two) .rvd-sit { grid-column: 1; grid-row: 1; justify-self: end; }
html:is(.wide, .two) .rvd-next { grid-column: 3; grid-row: 1; justify-self: start; }
html:is(.wide, .two) .rvd-mid .aw-room { min-height: var(--art-h); max-width: none; margin: 0; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 30px 80px #000a; }
html:is(.wide, .two) .rvd-big { margin: 8px 0 8px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; }
html:is(.wide, .two) .rvd-big b { font-size: 36px; line-height: 1.1; font-weight: 700; }
html:is(.wide, .two) .rvd-big b.none { font-size: 22px; color: var(--muted); font-weight: 650; }
html:is(.wide, .two) .rvd-big span { color: var(--muted); font-size: 15px; }
html:is(.wide, .two) .rvd-bar { height: 6px; border-radius: 3px; overflow: hidden; background: #ffffff14; }
html:is(.wide, .two) .rvd-bar i { display: block; width: 0; height: 100%; border-radius: 3px; background: var(--ok); transition: width .3s var(--ease); }
html:is(.wide, .two) .rvd-note { margin: 8px 0 0; color: var(--muted); font-size: 13.5px; }
html:is(.wide, .two) .rvd-tally { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; }
html:is(.wide, .two) .rvd-tally li::before { content: "\2022"; color: var(--accent2); margin-right: 8px; }
html:is(.wide, .two) .rvd-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
html:is(.wide, .two) .rvd-chip { padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: #ffffff08; font-size: 12.5px; color: var(--muted); }
html:is(.wide, .two) .rvd-chip b { color: var(--text); margin-left: 2px; }
html:is(.wide, .two) .rvd-kinds.rows { display: grid; gap: 0; margin-top: 10px; }
html:is(.wide, .two) .rvd-row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
html:is(.wide, .two) .rvd-row:last-child { border-bottom: 0; }
html:is(.wide, .two) .rvd-faces { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
html:is(.wide, .two) .rvd-faces i { min-width: 34px; height: 34px; padding: 0 6px; display: grid; place-items: center; border-radius: 8px; font-style: normal; font-size: 18px; line-height: 1; background: #173226; border: 1px solid #2a5c40; color: #d8f3e3; }
html:is(.wide, .two) .rvd-faces i.again { background: #c98a7c22; border-color: #c98a7c88; color: var(--text); }
html:is(.wide, .two) .rvd-faces i.practice { opacity: .6; border-style: dashed; }
html:is(.wide, .two) .rvd-foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; }
html:is(.wide, .two) .rvd-next .dr-bars { margin-top: 16px; }
html.two .view.review.rvd { grid-template-columns: var(--mid) minmax(240px, 340px); grid-template-rows: auto 1fr; column-gap: 22px; justify-content: center; }
html.two .rvd-mid { grid-column: 1; grid-row: 1 / span 2; }
html.two .rvd-card { grid-column: 2; justify-self: stretch; max-width: none; position: static; align-self: start; }
html.two .rvd-sit { grid-row: 1; }
html.two .rvd-next { grid-row: 2; margin-top: 14px; }

/* ------------------------------------------------------------------ Today with Akane (js/ui/day.js): Akane, or the round's host, in the left column */
html:is(.wide, .two) .view.day .day-host { display: none; }
html:is(.wide, .two) .view.day .day-morning .day-akane { display: none; }
html:is(.wide, .two) .view.day .day-morning { padding: 12px 14px; }
html:is(.wide, .two) .view.day .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ------------------------------------------------------------------ Talk with Akane (js/ui/talk.js): the veranda whole in the middle, the chat under her line */
html:is(.wide, .two) .view.talk .tk-box:empty { display: none; }
html:is(.wide, .two) #app:has(> #view.talk) #talker .tk-acts { display: none; }
html:is(.wide, .two) .tk-chat { display: flex !important; flex-direction: column; gap: 10px; }
html:is(.wide, .two) .tk-chat .tk-log { max-height: 26vh; }
html:is(.wide, .two) .tk-chat .tk-now { padding-top: 0; }
html:is(.wide, .two) .tk-chat .tk-now > .vn-name, html:is(.wide, .two) .tk-chat .tk-now > .gline, html:is(.wide, .two) .tk-chat .tk-now > .tk-en { display: none; }
html:is(.wide, .two) .tk-chat .tk-tools { margin: 0; }
html:is(.wide, .two) .tk-chat .tk-bar { margin-top: 2px; }
html:is(.wide, .two) .tk-chat .tk-end { margin-top: 2px; }

/* ------------------------------------------------------------------ the case (js/case/stage.js): the picture whole beside the puzzle, the person in the speaker's column */
/* The middle is wider for the case (up to 720 px); the picture takes a strip of it at its own shape, and the puzzle keeps about
   a phone's width (346 px) beside it, so every puzzle fits as it does on a phone. The two-column size keeps the picture behind. */
html.wide { --cs-mid: clamp(580px, calc(100vw - 2 * var(--gutter) - 600px - 56px), 800px); --cs-art: clamp(0px, min(calc(var(--cs-mid) - 390px), var(--art-w)), 430px); }
html.wide #app[data-layout="stage"]:has(> #view.step-case) { --mid: var(--cs-mid); }
html:is(.wide, .two) #app[data-layout="stage"] .view.step-case { padding: 0; background: #0b0e1c; }
html:is(.wide, .two) .view.step-case .aw-case { min-height: var(--art-h); max-width: none; margin: 0; border-radius: 0; }
html:is(.wide, .two) .aw-case .rv-stage { display: none; }
html.wide .aw-case { padding-left: calc(var(--cs-art) + 28px); }
html.wide .aw-case .rv-bg { inset: 14px auto auto 14px; width: var(--cs-art); aspect-ratio: 841 / 1870; border-radius: 14px; background-size: cover; background-position: 50% 50%; box-shadow: 0 0 0 1px #ffffff22, 0 18px 50px #000a; }
html.wide .aw-case .rv-bg.has-bg::after { display: none; }

/* ------------------------------------------------------------------ the wrap-up (js/ui/wrapup.js) and the notebook page: a little more room */
html.wide { --page-mid: clamp(560px, calc(100vw - 2 * var(--gutter) - 600px - 56px), 660px); }
html.wide #app[data-layout="stage"]:has(> #view:is(.step-gread, .step-gwrapup, .step-wrapup)) { --mid: var(--page-mid); }
html:is(.wide, .two) .view.step-wrapup .pins { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }

