/* Set Builder and Super Collector: the board, the wall and a card's sheet (chase/board.js, wall.js, slot.js), and the
   board's own drawing of the sample on the signed-out pages. Site tokens only, both stocks, no new font. Every tile,
   pocket, page and photo has square corners (they stand for cards); radius only on controls. Every press target is
   at least 48 px. Have, need and on the way differ by shape and words, never by a color alone. Nothing moves under
   prefers-reduced-motion. Prefix ch-bd (board), ch-wl / ch-t / ch-pg / ch-sec / ch-ls (wall), ch-sl (sheet),
   ch-menu / ch-sw (the menu and its switches). */

/* =====================================================================================================================
   The board's header
   ===================================================================================================================== */
.ch-bd__head {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "ring id acts" "ring id blocked";
  align-items: center; gap: 14px clamp(20px, 3vw, 40px); margin-top: 26px; padding: clamp(18px, 2.6vw, 28px);
  border: 1.5px solid var(--line-2); border-radius: 18px; background: var(--stock-2);
}
.ch-bd__ringbox { grid-area: ring; position: relative; }
.ch-bd__id { grid-area: id; min-width: 0; }
.ch-bd__acts { grid-area: acts; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.ch-bd__blocked { grid-area: blocked; margin: 0; color: var(--ink-2); font-weight: 600; max-width: 32em; justify-self: end; text-align: right; }
.ch-bd__try { grid-area: blocked; margin: 0; padding-left: 12px; border-left: 3px solid var(--teal); color: var(--ink-2); font-weight: 600; max-width: 40em; justify-self: start; }   /* signed out, looking through a set: what keeping it does */
.ch-bd__kind { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font: 800 .66rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.ch-bd__name {
  margin: 6px 0 0; font: 700 clamp(1.6rem, calc(1rem + 2vw), 2.5rem)/1.08 var(--display); letter-spacing: -.01em; outline: none;
  overflow-wrap: anywhere; text-wrap: balance; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.ch-bd__name.ch-h { margin-top: 6px; }
.ch-bd__count { margin: 6px 0 0; color: var(--ink-2); font-size: 1.05rem; }
.ch-bd__count b { font: 700 1.5rem/1 var(--display); color: var(--ink); }
.ch-bd__nums { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 12px 0 0; }
.ch-bd__num { min-width: 0; }
.ch-bd__num dt { font: 800 .6rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ch-bd__num dd { margin: 2px 0 0; font: 700 1.2rem/1.1 var(--display); color: var(--ink-2); }
.ch-bd__more { display: inline-flex; align-items: center; gap: 10px; }
.ch-bd__dots { display: inline-flex; gap: 3px; }
.ch-bd__dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.ch-bd__status:empty { display: none; }
.ch-bd__fail { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 14px; padding: 12px 16px; border: 1.5px dashed var(--line-2); border-radius: 12px; }
.ch-bd__fail .ch-note { margin: 0; flex: 1 1 18em; }
.ch-bd__tabs { position: relative; margin-top: 22px; }
.ch-bd__wait { margin-top: 30px; }
.ch-bd__form .ch-acts { margin-top: 16px; }

/* the milestone stamp over the ring: a moment, then gone */
.ch-bd__stamp {
  position: absolute; left: 50%; top: 50%; z-index: 2; padding: 6px 12px; border: 3px double var(--teal); background: var(--stock);
  color: var(--ink); font: 800 .78rem/1.1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-wrap: nowrap;
  transform: translate(-50%, -50%) rotate(-8deg); pointer-events: none;
}
.ch-bd__stamp.is-on { animation: ch-stamp 3.2s var(--ease-out) both; }
@keyframes ch-stamp { 0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(1.8); } 10% { opacity: 1; transform: translate(-50%, -50%) rotate(-8deg) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .ch-bd__head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ring id" "acts acts" "blocked blocked"; }
  .ch-bd__acts { justify-content: flex-start; }
  .ch-bd__blocked { justify-self: start; text-align: left; }
}
@media (max-width: 560px) {
  .ch-bd__head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ring id" "acts acts" "blocked blocked"; align-items: start; gap: 14px; margin-top: 18px; padding: 18px 16px; }
  .ch-bd__head .ch-ring--lg { width: 92px; }
  .ch-bd__head .ch-ring--lg .ch-ring__in { font-size: 1.6rem; }
  .ch-bd__name.ch-h { font-size: 1.5rem; }
  .ch-bd__tabs .ch-tab { padding: 0 10px; letter-spacing: .1em; }
  .ch-bd__acts > .btn { flex: 1 1 auto; }
  .ch-bd__nums { gap: 8px 20px; }
}

/* the menu: plain rows that do one thing; switches say on and off by shape too */
.ch-menu__list { display: grid; gap: 4px; margin: 0 -6px; }
.ch-menu__b { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px; padding: 8px 12px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 700 1.02rem/1.3 var(--sans); text-align: left; cursor: pointer; }
.ch-menu__b:hover { background: var(--stock-3); }
.ch-menu__b:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.ch-menu__b--danger { margin-top: 8px; border: 1.5px dashed var(--line-2); }
a.ch-menu__b { text-decoration: none; flex-wrap: wrap; row-gap: 2px; }   /* a link among the menu's buttons: the set's binder */
.ch-menu__s { flex: 1 1 100%; color: var(--ink-2); font: 600 .9rem/1.3 var(--sans); }
.ch-menu__row { padding: 8px 12px 12px; }
.ch-menu__l { margin: 0 0 8px; font-weight: 700; }
.ch-sw { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 6px 10px; border: 0; border-radius: 12px; background: none; color: var(--ink); font: 700 1rem/1.3 var(--sans); text-align: left; cursor: pointer; }
.ch-sw:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ch-sw__t { display: grid; gap: 2px; min-width: 0; }
.ch-sw__t small { font: 500 .88rem/1.35 var(--sans); color: var(--ink-2); }
.ch-sw__k { position: relative; flex: none; width: 46px; height: 28px; border: 2px solid var(--ink-3); border-radius: 99px; background: var(--stock); transition: background .18s var(--ease-out), border-color .18s; }
.ch-sw__k::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-3); transition: transform .18s var(--ease-out); }
.ch-sw[aria-checked="true"] .ch-sw__k { background: var(--teal); border-color: var(--teal); }
.ch-sw[aria-checked="true"] .ch-sw__k::after { transform: translateX(18px); background: var(--carbon); }
.ch-sw[aria-checked="true"] .ch-sw__k::before { content: ""; position: absolute; left: 7px; top: 9px; width: 6px; height: 3px; border-left: 2px solid var(--carbon); border-bottom: 2px solid var(--carbon); transform: rotate(-45deg); }
.ch-sw[disabled] { opacity: .5; cursor: default; }

/* =====================================================================================================================
   The wall: controls
   ===================================================================================================================== */
.ch-wl { container-type: inline-size; container-name: wall; --ch-gap: 8px; }
.ch-wl__ctl { display: grid; gap: 12px; }
.ch-wl__opts { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 18px; }
.ch-wl__grp { display: grid; gap: 6px; min-width: 0; max-width: 100%; }
.ch-wl__l { margin: 0; font: 800 .62rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ch-wl__sort { min-width: 12em; }
.ch-wl__sort > label { font: 800 .62rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ch-wl__show .ch-seg__o { padding: 0 12px; }
.ch-wl[data-view="list"] .ch-wl__size, .ch-wl[data-view="list"] .ch-wl__grp:has(.ch-wl__size) { display: none; }
.ch-wl__find { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 0; background: var(--stock); border-bottom: 1px solid var(--line); }
.ch-wl__search { position: relative; flex: 1 1 9em; min-width: 0; max-width: 34em; }
.ch .ch-wl__q { width: 100%; padding-right: 54px; }
.ch-wl__q::-webkit-search-cancel-button { display: none; }
.ch-wl__clear { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 8px; background: none; color: var(--ink); font: 400 1.6rem/1 var(--sans); cursor: pointer; }
.ch-wl__clear:hover { background: var(--stock-3); }
.ch-wl__quick { flex: none; padding: 6px 12px; border: 1.5px solid var(--line-2); }
.ch-wl.is-quick .ch-wl__quick { border-color: var(--teal); }
.ch-wl__found, .ch-wl__qline { flex-basis: 100%; margin: 0; color: var(--ink-2); font-weight: 600; }
.ch-wl__found:empty, .ch-wl__qline:empty { display: none; }
.ch-wl__save { flex-basis: 100%; margin: 0; }
.ch-wl__save:empty { display: none; }
/* the search row (with Quick check) stays in reach while the wall scrolls, under the view's own top bar */
.ch-wl__ctl { display: contents; }
.ch-wl__opts { margin: 16px 0 10px; }
.ch-wl__find { position: sticky; top: 61px; z-index: 6; margin: 0 calc(-1 * var(--ch-gut)); padding: 8px var(--ch-gut); }
.ch-bd--demo .ch-wl__find { position: static; }
@media (max-width: 760px) {
  .ch-wl__sort { min-width: 0; flex: 1 1 10em; }
  .ch-wl__show { width: 100%; }
}
.ch-wl--ro .ch-wl__find { display: none; }
.ch-wl__body { margin-top: 18px; }
.ch-wl__note, .ch-wl__also { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--teal); background: var(--stock-2); color: var(--ink-2); font-weight: 600; }
.ch-wl__none { margin: 18px 0; padding: 22px; border: 1.5px dashed var(--line-2); border-radius: 14px; color: var(--ink-2); }
.ch-wl__none p { margin: 0 0 12px; }
.ch-wl__gh { margin: 8px 0 12px; }

/* =====================================================================================================================
   The wall: tiles (card-shaped buttons, square corners)
   ===================================================================================================================== */
.ch-wl__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--ch-gap); }
.ch-wl__chunk {
  display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); gap: var(--ch-gap); margin: 0; padding: 0; list-style: none;
  content-visibility: auto;
}
.ch-wl__cell { min-width: 0; }
.ch-wl { --cols: 4; }
.ch-wl[data-size="s"] { --cols: 5; }
.ch-wl[data-size="l"] { --cols: 3; }
@container wall (min-width: 500px) { .ch-wl__chunk { --cols: 6; } .ch-wl[data-size="s"] .ch-wl__chunk { --cols: 8; } .ch-wl[data-size="l"] .ch-wl__chunk { --cols: 4; } }
@container wall (min-width: 800px) { .ch-wl__chunk { --cols: 10; } .ch-wl[data-size="s"] .ch-wl__chunk { --cols: 12; } .ch-wl[data-size="l"] .ch-wl__chunk { --cols: 6; } }
.ch-wl[data-size="s"] .ch-wl__chunk { --cols: 5; }
.ch-wl[data-size="l"] .ch-wl__chunk { --cols: 3; }
@container wall (min-width: 500px) { .ch-wl[data-size="s"] .ch-wl__chunk { --cols: 8; } .ch-wl[data-size="l"] .ch-wl__chunk { --cols: 4; } }
@container wall (min-width: 800px) { .ch-wl[data-size="s"] .ch-wl__chunk { --cols: 12; } .ch-wl[data-size="l"] .ch-wl__chunk { --cols: 6; } }

.ch-t {
  position: relative; display: flex; flex-direction: column; align-items: stretch; width: 100%; min-width: 48px; min-height: 48px; aspect-ratio: 5 / 7;
  margin: 0; padding: 9% 8% 8%; border: 1.5px solid transparent; border-radius: 0; overflow: hidden; container-type: inline-size;
  font: inherit; color: var(--ink); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.ch-t:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; z-index: 1; }
.ch-t__n { display: block; width: fit-content; max-width: 100%; font: 700 max(15px, 27cqw)/.95 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ch-t:has(.ch-t__tags) .ch-t__n { max-width: calc(100% - max(18px, 20cqw)); }
/* a long card number (US250, 101T, 84TC-24) is set smaller to stay on one line, never broken */
.ch-t__n[data-len="4"] { font-size: max(14px, 22cqw); }
.ch-t__n[data-len="5"] { font-size: max(13px, 18cqw); }
.ch-t__n[data-len="6"], .ch-t__n[data-len="7"] { font-size: max(12px, 14cqw); }
.ch-t__n[data-len="4"], .ch-t__n[data-len="5"], .ch-t__n[data-len="6"] { overflow-wrap: normal; white-space: nowrap; }
.ch-t__name { margin-top: auto; font: 700 max(10px, 11.5cqw)/1.15 var(--sans); overflow-wrap: anywhere; }
.ch-t__full, .ch-t__last { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.ch-t__last { display: none; }
.ch-t.no-n .ch-t__name { margin-top: 0; font-size: max(11px, 13cqw); }
.ch-t.no-n .ch-t__full, .ch-t.no-n .ch-t__last { -webkit-line-clamp: 5; line-clamp: 5; }
.ch-t__team { margin-top: 3px; font: 800 max(8px, 8.5cqw)/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; text-wrap: nowrap; }
.ch-t__tags { position: absolute; top: 6%; right: 6%; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.ch-t__tags .ch-tag { font-size: max(7px, 8cqw); padding: 1px 3px; }
.ch-t__qty { position: absolute; right: 0; bottom: 0; padding: 2px 6px; background: var(--ink); color: var(--stock); font: 800 max(9px, 11cqw)/1.2 var(--sans); }
@container (max-width: 76px) {
  .ch-t__full { display: none; }
  .ch-t__last { display: -webkit-box; }
  .ch-t__team, .ch-t__tags .ch-tag:nth-child(n+2) { display: none; }
}

/* have: solid, a check mark, the person's own photo when there is one */
.ch-t--have { background: var(--stock-4); border-color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--stock-2); }
.ch-t--have::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: max(14px, 18cqw); aspect-ratio: 1; background: var(--teal)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3L12.5 5' fill='none' stroke='%23080B0D' stroke-width='2.6' stroke-linecap='square'/%3E%3C/svg%3E") center / 78% no-repeat;
}
.ch-t--have { padding-bottom: max(18px, 24%); }
.ch-t__img { display: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ch-t.has-pic { padding: 0; border-color: transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); background: var(--stock-3); }
.ch-t.has-pic .ch-t__img { display: block; }
.ch-t.has-pic .ch-t__name, .ch-t.has-pic .ch-t__team, .ch-t.has-pic .ch-t__tags { display: none; }
/* a card with its photo shows the card itself: no number tag over it (owner, November 23, 2026); the small check and
   "x2" for copies stay. The number is still in the tile's spoken name and on the card's sheet. */
.ch-t.has-pic .ch-t__n { display: none; }
/* the photo already says "I have this card", so a photo tile has no check either; a plain tile keeps it */
.ch-t.has-pic.ch-t--have::after { content: none; }
.ch-t.has-pic.no-n::before { content: none; }
/* need: an outline, empty, the number lighter */
.ch-t--need { background: transparent; border: 1.5px dashed var(--line-2); }
.ch-t--need .ch-t__n { font-weight: 400; color: var(--ink-3); }
.ch-t--need .ch-t__name { color: var(--ink-2); font-weight: 600; }
.ch-t--need:hover { border-color: var(--ink-3); background: var(--stock-2); }
/* on the way: striped, with the words */
.ch-t--coming { border: 1.5px solid var(--ink-3); background: repeating-linear-gradient(135deg, var(--stock-3) 0 7px, var(--stock) 7px 14px); }
.ch-t--coming { padding-bottom: max(18px, 22%); }
.ch-t__way { position: absolute; left: 0; right: 0; bottom: 0; padding: 2px 4px; background: var(--ink); color: var(--stock); font: 800 max(7.5px, 8.5cqw)/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-align: center; text-wrap: nowrap; overflow: hidden; }
.ch-t--wait { display: block; border: 1.5px dashed var(--line); background: var(--stock-2); cursor: default; }
/* quick check: the wall says it is in a different mode */
.ch-wl.is-quick .ch-t--need { border-color: var(--ink-3); }
.ch-wl.is-quick .ch-wl__body { outline: 2px dashed var(--teal); outline-offset: 8px; }
.ch-t.is-new { animation: ch-fill .38s var(--ease-out) both; }
@keyframes ch-fill { 0% { transform: scale(.86); } 60% { transform: scale(1.05); } 100% { transform: none; } }
@media (hover: hover) { .ch-t--have:hover, .ch-t--coming:hover { box-shadow: 0 0 0 2px var(--ink-3); } }

/* =====================================================================================================================
   Pages of 9 (and 18, front and back), laid out like a binder
   ===================================================================================================================== */
.ch-pgs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.ch-pgs--18 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 560px), 1fr)); }
.ch-wl[data-size="s"] .ch-pgs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 172px), 1fr)); }
.ch-wl[data-size="s"] .ch-pgs--18 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.ch-wl[data-size="l"] .ch-pgs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
.ch-pg { min-width: 0; content-visibility: auto; contain-intrinsic-size: auto 440px; }
.ch-pg__h { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; font: 800 .66rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ch-pg__of { color: var(--ink-3); }
.ch-pg__stamp { padding: 2px 8px; border: 2px solid var(--teal); color: var(--ink); letter-spacing: .12em; transform: rotate(-3deg); }
.ch-pg__stamp.is-on { animation: ch-stampin .5s var(--ease-out) both; }
@keyframes ch-stampin { from { opacity: 0; transform: rotate(-3deg) scale(1.6); } }
.ch-pg__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 7px; list-style: none; border: 1.5px solid var(--line-2); background: var(--stock-2); }
.ch-pg.is-full .ch-pg__grid { border-color: var(--teal); box-shadow: inset 0 0 0 1px var(--teal); }
.ch-pg__empty { aspect-ratio: 5 / 7; background: repeating-linear-gradient(90deg, transparent 0 46%, var(--line) 46% 54%, transparent 54%); opacity: .35; }
.ch-pg__two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ch-pg__sl { margin: 0 0 4px; font: 800 .6rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
@media (max-width: 560px) { .ch-pg__two { grid-template-columns: minmax(0, 1fr); } }

/* =====================================================================================================================
   Sections (a master set's sets, a player's or a team's years)
   ===================================================================================================================== */
.ch-secs { display: grid; gap: 10px; }
.ch-sec { border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--stock); content-visibility: auto; contain-intrinsic-size: auto 72px; }
.ch-sec.is-open { content-visibility: visible; }
.ch-sec.is-done { border-color: var(--teal); }
.ch-sec__h { margin: 0; font: inherit; }
.ch-sec__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 16px; border: 0; border-radius: 14px 14px 0 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
.ch-sec__head:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.ch-sec__chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease-out); }
.ch-sec__head[aria-expanded="true"] .ch-sec__chev { transform: rotate(45deg); }
.ch-sec__name { font: 700 1.1rem/1.25 var(--display); overflow-wrap: anywhere; }
.ch-sec__count { color: var(--ink-2); font-weight: 700; font-variant-numeric: tabular-nums; text-wrap: nowrap; }
.ch-sec > .ch-meter { margin: 0 16px 12px; height: 6px; }
.ch-sec__body { padding: 4px 14px 16px; }
.ch-sec__body .ch-note { margin-top: 0; }

/* =====================================================================================================================
   The list view
   ===================================================================================================================== */
.ch-ls { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.ch-ls__li { content-visibility: auto; contain-intrinsic-size: auto 60px; border-bottom: 1px solid var(--line); }
.ch-ls__r {
  display: grid; grid-template-columns: 4.5em minmax(0, 1fr) 8.5em 6em 6.5em; align-items: center; gap: 4px 14px; width: 100%; min-height: 56px; padding: 6px 8px;
  border: 0; background: none; color: var(--ink); font: 500 1rem/1.3 var(--sans); text-align: left; cursor: pointer;
}
.ch-ls__r:hover { background: var(--stock-2); }
.ch-ls__r:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.ch-ls__n { font: 700 1.05rem/1.1 var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ch-ls__who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.ch-ls__name { font-weight: 700; overflow-wrap: anywhere; }
.ch-ls__team { color: var(--ink-3); font-size: .9rem; }
.ch-ls__tags { display: inline-flex; gap: 4px; }
.ch-ls__st { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink-2); }
.ch-ls__dot { flex: none; width: 14px; height: 14px; border-radius: 0; }
.ch-ls__r--have .ch-ls__dot { background: var(--teal); }
.ch-ls__r--need .ch-ls__dot { border: 1.5px dashed var(--ink-3); }
.ch-ls__r--coming .ch-ls__dot { border: 1.5px solid var(--ink-3); background: repeating-linear-gradient(135deg, var(--ink-3) 0 2px, transparent 2px 4px); }
.ch-ls__qty { padding: 0 5px; background: var(--ink); color: var(--stock); font-size: .8rem; }
.ch-ls__paid, .ch-ls__date { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 700px) {
  .ch-ls__r { grid-template-columns: 3.6em minmax(0, 1fr) auto; grid-template-areas: "n who st" "n who meta"; }
  .ch-ls__n { grid-area: n; } .ch-ls__who { grid-area: who; } .ch-ls__st { grid-area: st; justify-self: end; }
  .ch-ls__paid { grid-area: meta; justify-self: end; font-size: .85rem; }
  .ch-ls__date { display: none; }
}

/* =====================================================================================================================
   What sits above the wall: the four ways to add, everything in, the last 10; the off-checklist group
   ===================================================================================================================== */
.ch-wl__tops:empty { display: none; }
.ch-wl__tops { margin-top: 18px; }
.ch-ways { padding: clamp(18px, 3vw, 28px); border: 1.5px dashed var(--line-2); border-radius: 18px; background: var(--stock-2); }
.ch-ways .ch-lede { margin-top: 6px; }
.ch-ways__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.ch-way { display: grid; gap: 6px; align-content: start; width: 100%; height: 100%; min-height: 120px; padding: 18px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--stock); color: var(--ink); text-align: left; cursor: pointer; box-shadow: 4px 4px 0 var(--btn-shade-2); }
.ch-way:hover { border-color: var(--ink); }
.ch-way:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--btn-shade-2); }
.ch-way:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ch-way__t { font: 700 1.2rem/1.2 var(--display); }
.ch-way__d { color: var(--ink-2); line-height: 1.45; }
.ch-done { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; border: 2px solid var(--teal); border-radius: 14px; }
.ch-done__t { margin: 0; color: var(--ink-2); font-size: 1.08rem; }
.ch-done__t b { color: var(--ink); }
.ch-l10 { padding: clamp(16px, 2.6vw, 24px); border: 2px solid var(--teal); border-radius: 18px; background: var(--stock-2); }
.ch-l10__sub { margin: 4px 0 0; color: var(--ink-2); }
.ch-l10__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 8px 16px; margin: 14px 0 0; padding: 0; list-style: none; }
.ch-l10__i { display: flex; align-items: center; gap: 6px; min-width: 0; border-bottom: 1px solid var(--line); }
.ch-l10__card { flex: 1 1 auto; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; min-height: 52px; padding: 6px 4px; border: 0; background: none; color: var(--ink); font: 600 1rem/1.3 var(--sans); text-align: left; cursor: pointer; }
.ch-l10__card b { font: 700 1.1rem/1 var(--display); }
.ch-l10__card span { overflow-wrap: anywhere; }
.ch-l10__p { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ch-l10__card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ch-l10__find { flex: none; font-size: .66rem; }
.ch-off { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.ch-off .ch-h3 { margin-bottom: 12px; }
.ch-off__p { margin: 0 0 6px; color: var(--ink-2); }
.ch-off > .btn { margin-top: 16px; }
.ch-wl__form .ch-lede { margin: 0 0 16px; }

/* =====================================================================================================================
   A card's sheet
   ===================================================================================================================== */
.ch-sheet--card { width: min(620px, calc(100vw - 32px)); }
.ch-sl { display: grid; gap: 18px; }
.ch-sl__set { margin: -4px 0 0; color: var(--ink-2); line-height: 1.45; overflow-wrap: anywhere; }
.ch-sl__state { width: 100%; }
.ch-sl__state .ch-seg__o { min-height: 56px; font-size: 1rem; }
.ch-sl__hint { margin: 0; color: var(--ink-2); }
.ch-sl__copies { display: flex; align-items: center; gap: 16px; }
.ch-sl__l { margin: 0; font: 700 1rem/1.3 var(--sans); }
.ch-sl__fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.ch-sl__fields .ch-field + .ch-field { margin-top: 0; }
.ch-sl__fields .ch-field input, .ch-sl__fields .ch-field select, .ch-sl__fields .ch-field textarea { width: 100%; }
.ch-sl__wide { grid-column: 1 / -1; }
.ch-sl__linked { margin: 4px 0 0; }
.ch-sl__linked:empty { display: none; }
.ch-sl__a { justify-content: flex-start; text-transform: none; letter-spacing: .02em; font-size: .95rem; }
@media (max-width: 459px) { .ch-sl__fields { grid-template-columns: minmax(0, 1fr); } }
.ch-sl__place { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; padding: 12px 14px; border: 1.5px solid var(--line-2); background: var(--stock-2); }
.ch-sl__place b { font: 700 1.2rem/1.2 var(--display); }
.ch-sl__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.ch-sl__photo { display: grid; gap: 8px; }
.ch-sl__photorow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.ch-sl__photorow .ch-note { margin: 8px 0 0; flex-basis: 100%; }
.ch-sl__photoacts { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: center; }
.ch-sl__frame { position: relative; display: grid; place-items: center; width: 96px; aspect-ratio: 5 / 7; border: 1.5px dashed var(--line-2); border-radius: 0; background: var(--stock-2); overflow: hidden; }
.ch-sl__frame:has(img:not([hidden])) { border: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.ch-sl__pic { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ch-sl__pic[hidden] { display: none; }
.ch-sl__nopic { padding: 6px; font: 700 .7rem/1.3 var(--sans); text-align: center; color: var(--ink-3); }
.ch-sl__binder { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 12px 14px; border-left: 3px solid var(--teal); background: var(--stock-2); }
.ch-sl__binder p { margin: 0; color: var(--ink-2); }
.ch-sl__rb { display: grid; gap: 10px; }
.ch-sl__rb > .btn { justify-self: start; }
.ch-sl__rbsum { margin: 0; font-weight: 700; }
.ch-sl__rblist { display: grid; gap: 2px; margin: 6px 0 0; padding: 0; list-style: none; max-height: 340px; overflow: auto; border-top: 1px solid var(--line); }
.ch-sl__rbi { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.ch-sl__rbsw { flex: 1 1 auto; width: 100%; }
.ch-sl__rbname { overflow-wrap: anywhere; }
.ch-sl__rbmore { flex: none; }
.ch-sl__nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.ch-sl__pos { margin: 0; color: var(--ink-3); font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.ch-sl__status { margin: 0; }
.ch-sl__rowro { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 16px 22px; }
.ch-sl__rowro .ch-sl__pic { width: 150px; height: auto; aspect-ratio: 5 / 7; box-shadow: 0 0 0 1px rgba(0, 0, 0, .55); }
.ch-sl__ro { display: grid; gap: 10px; flex: 1 1 14em; margin: 0; }
.ch-sl__ro div { padding-top: 6px; border-top: 1px solid var(--line); }
.ch-sl__ro dt { font: 800 .62rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.ch-sl__ro dd { margin: 3px 0 0; font: 700 1.05rem/1.3 var(--sans); }
.ch-sl__sign { display: grid; gap: 12px; justify-items: start; padding: 16px; border: 1.5px dashed var(--line-2); border-radius: 14px; }
.ch-sl__sign p { margin: 0; color: var(--ink-2); }

/* =====================================================================================================================
   The sample on the signed-out pages (board.js demo): the same header and wall, in the page's sample frame
   ===================================================================================================================== */
.ch-bd--demo { display: grid; gap: 16px; }
.ch-bd--demo .ch-bd__head { margin: 0; padding: 0; border: 0; background: none; grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ring id" "acts acts"; gap: 14px 20px; }
.ch-bd--demo .ch-bd__name { font-size: clamp(1.25rem, 2vw, 1.6rem); -webkit-line-clamp: 2; line-clamp: 2; }
.ch-bd--demo .ch-ring--lg { width: 128px; }
.ch-bd--demo .ch-ring--lg .ch-ring__in { font-size: 2.2rem; }
.ch-bd--demo .ch-bd__acts { justify-content: flex-start; }
.ch-bd--demo .ch-wl__opts { gap: 8px; }
.ch-bd--demo .ch-wl__body { margin-top: 14px; }
.ch-bd--demo .ch-pgs { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 14px; }
.ch-bd--demo .ch-pg__grid { gap: 4px; padding: 5px; }
/* a phone: the sample's pages side by side, a binder to swipe through, the next page peeking in */
@media (max-width: 760px) {
  .ch-bd--demo .ch-pgs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; padding-bottom: 10px; scrollbar-width: thin; }
  .ch-bd--demo .ch-pg { scroll-snap-align: start; content-visibility: visible; }
}
@media (max-width: 459px) {
  .ch-bd--demo .ch-bd__head { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "ring id" "acts acts"; gap: 12px 14px; }
  .ch-bd--demo .ch-ring--lg { width: 92px; }
  .ch-bd--demo .ch-ring--lg .ch-ring__in { font-size: 1.6rem; }
  .ch-bd--demo .ch-bd__nums { gap: 6px 16px; }
  .ch-bd--demo .ch-bd__acts > .btn { flex: 1 1 auto; }
}

/* ---------- nothing moves when asked ---------- */
@media (prefers-reduced-motion: reduce) {
  .ch-bd__stamp.is-on, .ch-pg__stamp.is-on, .ch-t.is-new { animation: none; }
  .ch-sw__k, .ch-sw__k::after, .ch-sec__chev { transition: none; }
}
