/* The kiosk's « work page » patterns (owner request 2026-12-01, public/app/work.js): breadcrumbs, the detail band, the blue
   « Continue » card, episode-like rows, chips, the lock chip, loading skeletons, pictures fading in. Tokens of base.css only. */

/* breadcrumbs: small, muted, links blue on hover */
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0 0 8px; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: '›'; margin: 0 8px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent-ink); text-decoration: none; }
.crumbs li[aria-current] { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* the detail band: pale sky tint fading to the page, the visual (3:4 card) and the text */
.wband { position: relative; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; align-items: start; margin: -24px -32px 22px; padding: 28px 32px 26px;
  background: linear-gradient(180deg, var(--accent-soft) 0%, var(--accent-soft) 55%, var(--bg) 100%); }
.wband.sm { margin: -22px -24px 16px; padding: 22px 24px 18px; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; }
.wcover { display: grid; place-items: center; align-content: center; gap: 10px; aspect-ratio: 3 / 4; border-radius: var(--radius); background: var(--accent); color: var(--on-accent);
  box-shadow: 0 18px 40px -22px #1f2647a6; animation: wfade .35s ease-out; }
.wcover svg { width: 44%; height: auto; }
.wcover span { font: 700 10.5px var(--display); letter-spacing: .08em; text-transform: uppercase; text-align: center; padding: 0 8px; }
.wband.sm .wcover span { display: none; }
.wband-tx { min-width: 0; }
.wband h1 { font-size: 34px; line-height: 1.12; }
.wband.sm h1 { font-size: 24px; }
.wsyn { margin: 8px 0 0; max-width: 64ch; color: var(--ink-2); font-size: 15px; }
.wstats { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.wstats span + span::before { content: '·'; margin: 0 9px; }
.wchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; }
.wacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.wacts .btn svg { width: 15px; height: 15px; }
@media (max-width: 782px) {
  .wband { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; margin: -16px -16px 16px; padding: 18px 16px; }
  .wband h1 { font-size: 24px; }
  .wcover span { display: none; }
}

/* chips: main = filled blue, tags = pale capsules, lock = pale capsule with a lock */
.chip-main, .chip-tag, .chip-lock { display: inline-flex; align-items: center; gap: 5px; padding: 2px 10px; border-radius: var(--pill); font: 700 10.5px/1.7 var(--display);
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.chip-main { background: var(--accent); color: var(--on-accent); }
.chip-tag { background: var(--accent-soft); color: var(--accent-ink); }
.chip-lock { background: var(--accent-soft); color: var(--accent-ink); }
.chip-lock svg { width: 12px; height: 12px; }
/* the small family label above a card's name (blue capitals) */
.cat { display: block; font: 700 10.5px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }

/* the blue « Continue » card: white title, white button with blue capitals */
.whero { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 18px 22px; margin: 0 0 16px; border-radius: var(--radius); background: var(--blue); color: var(--white); }
.whero-k { flex-basis: 100%; font: 700 11px var(--display); letter-spacing: .1em; text-transform: uppercase; color: color-mix(in srgb, var(--white) 85%, var(--blue)); }
.whero-t { flex: 1 1 220px; min-width: 0; font: 700 19px/1.25 var(--display); overflow-wrap: anywhere; }
.btn.whero-b { background: var(--white); box-shadow: none; color: var(--blue); }
.btn.whero-b:hover { background: color-mix(in srgb, var(--sky) 15%, var(--white)); }
.btn.whero-b svg { width: 13px; height: 13px; fill: currentColor; }
.agw.chef .agw-msgs > .whero, .agw.chef .agw-msgs > .chef-past { max-width: 560px; margin: 22px auto 0; text-align: left; }

/* rows like the kiosk's episode list */
.wrows { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; list-style: none; }
.wrow { display: flex; align-items: center; gap: 14px; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
a.wrow:hover { background: var(--hover); text-decoration: none; }
.wrow-th { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-ink); }
.wrow-th svg { width: 19px; height: 19px; }
.wrow-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wrow-l { font: 700 10.5px var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.wrow-tx b { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wrow-i { display: flex; align-items: center; gap: 10px; flex: none; color: var(--muted); font-size: 12.5px; }
.wrow-ok { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-ink); font-weight: 700; }
.wrow-ok svg { width: 14px; height: 14px; }
.wrow-go { flex: none; color: var(--accent-ink); }
.wrow-go svg { width: 16px; height: 16px; }
.wrow.done .wrow-tx { opacity: .72; }

/* loading skeletons: shimmer bars shaped like the content */
.sk-wrap { display: flex; flex-direction: column; gap: 10px; }
.sk { display: block; height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2) 25%, var(--hover) 50%, var(--surface-2) 75%) 0 0 / 200% 100%;
  animation: sk-shine 1.4s linear infinite; }
@keyframes sk-shine { to { background-position: -200% 0; } }
.sk-head { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.sk-title { height: 28px; width: min(320px, 70%); }
.sk-sub { width: min(520px, 90%); }
.sk-line { width: 100%; } .sk-short { width: 60%; }
.sk-h { height: 16px; width: 55%; margin-bottom: 6px; }
.sk-chip { height: 20px; width: 120px; border-radius: var(--pill); }
.sk-box { height: 120px; border-radius: var(--radius); max-width: 780px; width: 100%; margin: 12px auto 0; }
.sk-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.sk-card { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); min-height: 120px; }
.sk-stats { margin-bottom: 16px; } .sk-stats .sk-card { min-height: 80px; }
.sk-rows { display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); }
.sk-row { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 18px; padding: 16px; border-bottom: 1px solid var(--line-2); }
.sk-row:last-child { border-bottom: 0; }
.sk-band { display: grid; grid-template-columns: 150px 1fr; gap: 28px; padding: 6px 0 18px; }
.sk-band > div { display: flex; flex-direction: column; gap: 10px; }
.sk-cover { height: auto; aspect-ratio: 3 / 4; border-radius: var(--radius); }
.sk-chat { max-width: 780px; margin: 80px auto 0; align-items: center; }
.sk-chat .sk-line, .sk-chat .sk-short { max-width: 520px; }

/* pictures and drawn thumbnails appear when ready */
img.fade { opacity: 0; transition: opacity .35s ease-out; }
img.fade.in { opacity: 1; }
.vw-thumb canvas, .vp-slide canvas, .vw-page canvas { animation: wfade .35s ease-out; }
@keyframes wfade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
  img.fade { opacity: 1; transition: none; }
  .wcover, .vw-thumb canvas, .vp-slide canvas, .vw-page canvas { animation: none; }
}
.gl-drawer .wband { margin: 6px -24px 16px; }
.gl-top .cat + b { display: block; }
.agw.chef .agw-msgs > .chef-past { margin-top: 10px; }
.tc-cases > li.done > :not(.tc-h):not(.wrow-l) { opacity: .72; }
.tc-cases > li > .wrow-l, .tp-vers li > .wrow-l { display: block; margin-bottom: 2px; }
.subtabs a .chip-lock { margin-left: 6px; padding: 0 7px; background: var(--surface); }
.subtabs a.on .chip-lock { background: var(--white); color: var(--blue); }
.pbox > summary .chip-lock { align-self: center; }
