/* Set Builder and Super Collector: adding cards (chase/add.js and its ways: add-photos, add-numbers, add-buy, add-binder,
   add-common's Added screen). Site tokens only, both stocks, no new font. Every press target is at least 48 px; nothing
   moves under prefers-reduced-motion. Cards, cut-outs, photos and pockets have square corners; radius only on controls.
   Have, not sure and not in this set differ by words and by shape (a solid edge, a dashed edge, a dotted one), never by
   color alone. Uses the shared pieces of chase.css as they are. */

.ch-add__body { margin-top: 22px; }
.ch-add .ch-h3 { margin-top: 0; }
.ch-add-check { display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 4px 2px; cursor: pointer; font-weight: 700; line-height: 1.3; }
.ch-add-check input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.ch-add-check:has(input:disabled) { cursor: default; color: var(--ink-3); }
.ch-add-more { display: grid; gap: 18px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.ch-add-more .ch-field + .ch-field { margin-top: 0; }
.ch-add-more input[type="date"] { max-width: 15rem; }
.ch-add-q__l { margin: 0 0 8px; font: 700 1rem/1.3 var(--sans); }
.ch-add-foot { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 26px calc(-1 * var(--ch-gut)) 0; padding: 12px var(--ch-gut) max(12px, env(safe-area-inset-bottom)); background: var(--stock); border-top: 1px solid var(--line-2); }
.ch-add-foot .ch-note { margin: 0; }
.ch-add-go { min-width: 12rem; }
@media (max-width: 760px) { .ch-add-go { flex: 1 1 100%; } }
.ch-add-warn { margin: 10px 0 0; padding-left: 12px; border-left: 3px solid var(--ink); font-weight: 700; }

/* ---------- the hub ---------- */
.ch-add-ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 26px 0 0; padding: 0; list-style: none; }
.ch-add-ways > li { min-width: 0; display: flex; }
.ch-add-way { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; width: 100%; min-height: 128px; padding: 20px 20px 18px; border: 1.5px solid var(--line-2); border-radius: 16px; background: var(--stock-2); color: var(--ink); text-align: left; font: inherit; cursor: pointer; }
.ch-add-way:hover { border-color: var(--ink-3); }
.ch-add-way:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ch-add-way:active { transform: translateY(1px); }
.ch-add-way__icon { display: grid; place-items: center; width: 56px; height: 56px; border: 1.5px solid var(--ink); border-radius: 12px; color: var(--ink); }
.ch-add-way__icon svg { width: 34px; height: 34px; }
.ch-add-way[data-how="photos"] .ch-add-way__icon { background: var(--ink); color: var(--stock); }
.ch-add-way__text { display: grid; gap: 6px; min-width: 0; }
.ch-add-way__t { font: 700 1.35rem/1.15 var(--display); }
.ch-add-way__l { color: var(--ink-2); line-height: 1.45; }
.ch-add-way__last { margin-top: 4px; font: 700 .9rem/1.35 var(--sans); color: var(--ink); }
.ch-add-way__last::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--teal); }
@media (max-width: 760px) { .ch-add-ways { grid-template-columns: minmax(0, 1fr); } .ch-add-way { min-height: 0; padding: 16px; } .ch-add-way__icon { width: 48px; height: 48px; } .ch-add-way__t { font-size: 1.2rem; } }

.ch-add-queue { margin-top: 22px; padding: 16px 18px; border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--stock-2); }
.ch-add-queue[hidden] { display: none; }
.ch-add-queue__list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ch-add-queue__row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 48px; }
.ch-add-queue__what { font-weight: 700; }
.ch-add-queue__say { color: var(--ink-2); }
.ch-add-queue__say[data-state="held"] { color: var(--ink); font-weight: 700; padding-left: 10px; border-left: 3px dashed var(--ink); }
.ch-add-queue__say[data-state="saved"]::before { content: "✓ "; color: var(--teal); font-weight: 800; }

.ch-add-came { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.ch-add-came[hidden] { display: none; }
.ch-add-came .ch-acts { margin-top: 12px; }
.ch-add-came__sheet .ch-lede { margin-top: 0; }
.ch-add-came__group { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line-2); }
.ch-add-came__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ch-add-came__head .ch-h3 { overflow-wrap: anywhere; }
.ch-add-came__cards { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ch-add-came__card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; min-height: 52px; overflow-wrap: anywhere; }
.ch-add-came__ok { font-weight: 700; color: var(--ink-2); }
.ch-add-came__ok::before { content: "✓ "; color: var(--teal); }

/* ---------- Type the numbers ---------- */
.ch-add-nums__box textarea { width: 100%; min-height: 9.5em; font: 600 1.25rem/1.45 var(--sans); letter-spacing: .02em; resize: vertical; }
.ch-add-nums__sum { display: grid; gap: 10px; margin-top: 16px; }
.ch-add-nums__line { margin: 0; line-height: 1.45; overflow-wrap: anywhere; }
.ch-add-nums__line b { font-weight: 800; }
.ch-add-nums__again { padding: 10px 14px; border-left: 3px solid var(--ink); background: var(--stock-2); }
.ch-add-nums__again p { margin: 0; }
.ch-add-nums__unknown, .ch-add-nums__twice { display: grid; gap: 8px; }
.ch-add-nums__unknown:empty, .ch-add-nums__twice:empty, .ch-add-nums__bad:empty { display: none; }
.ch-add-nums__twice .ch-field--row select { min-width: 0; max-width: 100%; flex: 1 1 16rem; }
.ch-add-nums__bad { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.ch-add-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-add-chip { min-width: 56px; min-height: 48px; padding: 0 14px; border: 1.5px dashed var(--line-2); border-radius: 10px; background: var(--stock); color: var(--ink); font: 700 1rem/1 var(--sans); cursor: pointer; font-variant-numeric: tabular-nums; }
.ch-add-chip[aria-pressed="true"] { border-style: solid; border-color: var(--ink); background: var(--ink); color: var(--stock); }
.ch-add-chip[aria-pressed="true"]::before { content: "+ "; }
.ch-add-chip:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* ---------- Snap a page ---------- */
.ch-add-choose__acts { margin-top: 0; }
.ch-add-choose.is-busy .ch-add-choose__acts { opacity: .5; }
.ch-add-strip { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.ch-add-strip[hidden] { display: none; }
.ch-add-strip__p { position: relative; flex: none; display: grid; gap: 4px; width: 132px; }
.ch-add-strip__p img, .ch-add-strip__none { display: grid; place-items: center; width: 132px; height: 99px; object-fit: cover; border-radius: 0; background: var(--stock-3); color: var(--ink-3); font-weight: 700; }
.ch-add-strip__n { font: 800 .64rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.ch-add-strip__s { font-size: .9rem; color: var(--ink-2); }
.ch-add-strip__p[data-state="reading"] img { outline: 3px solid var(--teal); outline-offset: -3px; }
.ch-add-strip__p[data-state="failed"] img, .ch-add-strip__p[data-state="skipped"] img { opacity: .45; }
.ch-add-strip__x { position: absolute; right: 0; top: 0; width: 48px; height: 48px; border: 0; border-radius: 0 0 0 12px; background: var(--ink); color: var(--stock); font: 400 1.6rem/1 var(--sans); cursor: pointer; }
.ch-add-strip__x:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ch-add-reads { margin: 16px 0 0; font-weight: 600; line-height: 1.45; max-width: 40em; }
.ch-add-reads:empty { display: none; }
.ch-add-private { margin: 18px 0 0; color: var(--ink-3); font-size: .95rem; }
.ch-add-reading { margin-top: 22px; padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: 14px; }
.ch-add-reading[hidden], .ch-add-review[hidden] { display: none; }
.ch-add-progress { margin: 0; font: 700 1.15rem/1.3 var(--display); }
.ch-add-reading .ch-acts { margin-top: 12px; }
.ch-add-review { margin-top: 10px; }
.ch-add-review .ch-h2 { outline: none; }
.ch-add-shots { display: grid; gap: 34px; margin-top: 20px; }
.ch-add-shot { content-visibility: auto; contain-intrinsic-size: auto 900px; min-width: 0; }
.ch-add-shot .ch-h3 { margin-bottom: 12px; }
.ch-add-shot__why { margin: 0; color: var(--ink-2); }
.ch-add-shot__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 22px; align-items: start; }
@media (max-width: 899px) { .ch-add-shot__grid { grid-template-columns: minmax(0, 1fr); } }
.ch-add-fig { position: sticky; top: 72px; margin: 0; }
@media (max-width: 899px) { .ch-add-fig { position: relative; top: 0; } }
.ch-add-fig__img { display: block; width: 100%; height: auto; border-radius: 0; }
.ch-add-fig__boxes { position: absolute; inset: 0; pointer-events: none; }
.ch-add-fig__box { position: absolute; border: 2px solid var(--teal); box-shadow: 0 0 0 1px rgba(8, 11, 13, .6); border-radius: 0; transition: border-width .12s; }
.ch-add-fig__box b { position: absolute; left: -2px; top: -2px; min-width: 24px; padding: 3px 6px; background: var(--teal); color: var(--carbon); font: 800 .8rem/1 var(--sans); text-align: center; }
.ch-add-fig__box.is-on { border-width: 4px; outline: 2px solid var(--ink); }
.ch-add-cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ch-add-card { display: grid; grid-template-columns: 28px 60px minmax(0, 1fr); grid-template-areas: "n pic what" "n pic acts"; gap: 4px 14px; padding: 12px 12px 10px; border: 1.5px solid var(--line-2); border-radius: 0; background: var(--stock); }
.ch-add-card[data-kind="sure"], .ch-add-card[data-kind="off"] { border-color: var(--ink-3); }
.ch-add-card[data-kind="sure"]:has(input[type="checkbox"]:checked), .ch-add-card[data-kind="off"]:has(input[type="checkbox"]:checked) { border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); }
.ch-add-card[data-kind="unsure"] { border-style: dashed; border-color: var(--ink); }
.ch-add-card[data-kind="stranger"] { border-style: dotted; }
.ch-add-card[data-kind="have"], .ch-add-card[data-kind="dup"] { background: var(--stock-2); }
.ch-add-card__n { grid-area: n; display: grid; place-items: center; width: 26px; height: 26px; background: var(--teal); color: var(--carbon); font: 800 .8rem/1 var(--sans); }
.ch-add-card__pic { grid-area: pic; display: block; width: 60px; aspect-ratio: 5 / 7; background: var(--stock-3); overflow: hidden; }
.ch-add-card__pic img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ch-add-card__what { grid-area: what; min-width: 0; }
.ch-add-card__t { margin: 0; font-size: 1.08rem; line-height: 1.3; overflow-wrap: anywhere; }
.ch-add-card__say { margin: 3px 0 0; color: var(--ink-2); font-size: .95rem; }
.ch-add-card[data-kind="unsure"] .ch-add-card__say { color: var(--ink); font-weight: 700; }
.ch-add-card__read { margin: 2px 0 0; color: var(--ink-3); font-size: .9rem; overflow-wrap: anywhere; }
.ch-add-card__acts { grid-area: acts; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 16px; min-width: 0; }
@media (max-width: 459px) { .ch-add-card { grid-template-columns: 26px 52px minmax(0, 1fr); grid-template-areas: "n pic what" "acts acts acts"; } .ch-add-card__pic { width: 52px; } }
.ch-add-opts { flex: 1 1 100%; display: grid; gap: 2px; margin: 4px 0 0; padding: 6px 0 0; border: 0; border-top: 1px dashed var(--line-2); min-width: 0; }
.ch-add-opts legend { padding: 0; font-weight: 800; }
.ch-add-opt { display: flex; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; overflow-wrap: anywhere; }
.ch-add-opt input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--teal); }
.ch-add-list { margin-top: 12px; }
.ch-add-list:empty { display: none; }

/* "Pick it myself" */
.ch-add-pick .ch-note { margin-top: 12px; }
.ch-add-pick__list { display: grid; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ch-add-pick__b, .ch-add-hit { display: grid; gap: 2px; width: 100%; min-height: 52px; padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: 10px; background: var(--stock); color: var(--ink); text-align: left; font: inherit; cursor: pointer; overflow-wrap: anywhere; }
.ch-add-pick__b:hover, .ch-add-hit:hover { border-color: var(--ink); }
.ch-add-pick__b:focus-visible, .ch-add-hit:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ch-add-pick__b span, .ch-add-hit__s { color: var(--ink-2); font-size: .92rem; }
.ch-add-hit__s:empty { display: none; }

/* ---------- Log a buy ---------- */
.ch-add-part { margin-top: 30px; }
.ch-add-part:first-child { margin-top: 0; }
.ch-add-part > .ch-h3 { margin-bottom: 14px; }
.ch-add-part .ch-field + .ch-note { margin-top: 10px; }
.ch-add-part .ch-note:empty { display: none; }
.ch-add-hits { display: grid; gap: 6px; margin: 8px 0 18px; padding: 0; list-style: none; }
.ch-add-hits:empty { display: none; }
.ch-add-hit { grid-template-columns: minmax(0, 1fr) auto; }
.ch-add-hit__t { font-weight: 700; }
.ch-add-hit__s { grid-column: 1; }
.ch-add-hit__do { grid-column: 2; grid-row: 1 / span 2; align-self: center; font: 800 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; }
.ch-add-lines__h { margin: 22px 0 8px; }
.ch-add-lines__none { margin: 0; color: var(--ink-3); }
.ch-add-lines { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; counter-reset: ln; }
.ch-add-line { counter-increment: ln; display: grid; gap: 4px; padding: 12px 14px; border: 1.5px solid var(--ink-3); border-radius: 0; }
.ch-add-line__t { margin: 0; overflow-wrap: anywhere; }
.ch-add-line__t::before { content: counter(ln) ". "; color: var(--ink-3); font-weight: 800; }
.ch-add-line__say { margin: 0; color: var(--ink-2); }
.ch-add-line__share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ch-add-line__share label { font-weight: 700; }
.ch-add-line__share input { width: 8.5rem; }
.ch-add-line__cur { font-weight: 700; color: var(--ink-2); }
.ch-add-line__x { justify-self: start; }
.ch-add-money__row { display: grid; grid-template-columns: repeat(2, minmax(0, 13rem)); gap: 16px; }
.ch-add-money__row .ch-field + .ch-field { margin-top: 0; }
.ch-add-money input { width: 100%; font-variant-numeric: tabular-nums; }
@media (max-width: 459px) { .ch-add-money__row { grid-template-columns: minmax(0, 1fr); } }
.ch-add-total { margin: 12px 0 0; font-weight: 700; }
.ch-add-total:empty { display: none; }
.ch-add .ch-field textarea { width: 100%; }
.ch-add .ch-field input[type="url"], .ch-add .ch-field input[type="search"], .ch-add .ch-field > input[type="text"], .ch-add .ch-field select { width: 100%; max-width: 40rem; }
.ch-add .ch-field[hidden] { display: none; }

/* ---------- From my binder ---------- */
.ch-add-found { margin: 0; font: 700 1.25rem/1.3 var(--display); }
.ch-add-binder { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.ch-add-binder__row { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: 0; content-visibility: auto; contain-intrinsic-size: auto 110px; }
.ch-add-binder__row:has(input:checked) { border-color: var(--teal); box-shadow: inset 4px 0 0 var(--teal); }
.ch-add-binder__pic { display: block; width: 60px; aspect-ratio: 5 / 7; background: var(--stock-3); overflow: hidden; }
.ch-add-binder__pic img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.ch-add-binder__what { min-width: 0; }
.ch-add-binder__t { margin: 0; overflow-wrap: anywhere; }
.ch-add-binder__s { margin: 2px 0 0; color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
@media (max-width: 559px) { .ch-add-binder__row { grid-template-columns: 52px minmax(0, 1fr); } .ch-add-binder__row .ch-add-check { grid-column: 1 / -1; } }

/* ---------- Added ---------- */
.ch-add-done__h { outline: none; }
.ch-add-done .ch-add-state { font-size: 1.05rem; }
.ch-add-state[data-state="held"] { padding-left: 10px; border-left: 3px dashed var(--ink); color: var(--ink); }
.ch-add-done__marks:empty { display: none; }
.ch-add-done__marks { margin-top: 26px; }
.ch-add-stamps { display: flex; flex-wrap: wrap; gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.ch-add-stamp { display: grid; gap: 4px; max-width: 20rem; padding: 12px 16px; border: 2.5px solid var(--teal); transform: rotate(-2deg); background: var(--stock); box-shadow: inset 0 0 0 3px var(--stock), inset 0 0 0 4.5px var(--teal); animation: ch-add-stamp .5s var(--ease-out) both; }
.ch-add-stamp b { font: 800 .82rem/1.25 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.ch-add-stamp span { color: var(--ink-2); font-size: .92rem; overflow-wrap: anywhere; }
.ch-add-stamp:nth-child(2) { animation-delay: .12s; }
.ch-add-stamp:nth-child(3) { animation-delay: .24s; }
@keyframes ch-add-stamp { from { opacity: 0; transform: rotate(-8deg) scale(1.35); } 70% { opacity: 1; transform: rotate(-1deg) scale(.97); } }
.ch-add-done__stand { display: flex; align-items: center; gap: 20px; margin-top: 26px; padding: 18px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.ch-add-done__count { margin: 0; color: var(--ink-2); }
.ch-add-done__count b { font: 700 1.9rem/1 var(--display); color: var(--ink); }
.ch-add-done__line { margin: 6px 0 0; color: var(--ink-2); }
.ch-add-where { margin-top: 6px; }
.ch-add-where[hidden] { display: none; }
.ch-add-where .ch-lede { margin-top: 4px; }
.ch-add-where__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 0 26px; margin: 16px 0 0; padding: 0; list-style: none; }
.ch-add-where__page { grid-column: 1 / -1; padding: 14px 0 4px; border-bottom: 1.5px solid var(--ink); font: 700 1.1rem/1.2 var(--display); }
.ch-add-where__row { display: grid; grid-template-columns: 6.4rem minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ch-add-where__pk { font: 800 .7rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ch-add-where__card { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  .ch-add-stamp { animation: none; }
  .ch-add-fig__box { transition: none; }
  .ch-add-way:active { transform: none; }
}

/* ---------- Upload a spreadsheet (add-sheet.js) ---------- */
.ch-add-ways > li:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* five ways: the last one has the row to itself */
.ch-add-sheet__tip { margin: 14px 0 0; color: var(--ink-2); max-width: 44em; }
.ch-add-sheet__tip summary { display: flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--ink); cursor: pointer; }
.ch-add-sheet__tip ul { display: grid; gap: 4px; margin: 0 0 6px; padding-left: 1.2em; line-height: 1.45; }
.ch-add-sheet__cols:empty, .ch-add-sheet__check:empty { display: none; }
.ch-add-sheet__cols .ch-st-cols { margin-top: 14px; }
.ch-add-sheet__part { margin-top: 24px; min-width: 0; }
.ch-add-sheet__part > .ch-h3 { margin-bottom: 12px; }
.ch-add-sheet__fold > summary { display: flex; align-items: center; min-height: 48px; margin-bottom: 8px; font: 700 1.15rem/1.25 var(--display); cursor: pointer; }
.ch-add-card--row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "n what" "n acts"; }
.ch-add-card--row .ch-add-card__n { width: auto; min-width: 36px; height: 26px; padding: 0 6px; background: var(--stock-3); color: var(--ink); font-variant-numeric: tabular-nums; }
.ch-add-card--row[data-on="true"] .ch-add-card__n { background: var(--teal); color: var(--carbon); }
@media (max-width: 459px) { .ch-add-card--row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "n what" "acts acts"; } }

/* ---------- the Added screen: the set's own binder ---------- */
.ch-add-bind { margin-top: 30px; padding: 18px 20px; border: 1.5px solid var(--line-2); border-left: 4px solid var(--teal); background: var(--stock-2); }
.ch-add-bind .ch-hint { max-width: 40em; }
.ch-add-bind .ch-acts { margin-top: 12px; }
.ch-add-sheet__sum { margin-top: 6px; }
