/* The admin page. Tokens and fonts come from /style.css. */
.admin { min-height: 100vh; }
.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: var(--accent-text); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 0.5rem; top: 0.5rem; }

.bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;
  padding: 0.6rem 1rem; background: var(--surface); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
}
.brand { text-decoration: none; color: var(--text); display: flex; align-items: baseline; gap: 0.4rem; }
.brand-name { font-family: var(--font-head); font-weight: 600; font-size: 1.25rem; }
.brand-tag { font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.tabs { display: flex; gap: 0.25rem; flex-wrap: wrap; }
.tabs a {
  text-decoration: none; color: var(--muted); padding: 0.35rem 0.75rem; border-radius: 999px; font-size: 0.95rem;
}
.tabs a:hover { background: var(--surface-2); color: var(--text); }
.tabs a[aria-current='page'] { background: var(--accent); color: var(--accent-text); }
.who { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; font-size: 0.85rem; color: var(--muted); min-width: 0; }
.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 22rem; }

main#main { max-width: 64rem; margin: 0 auto; padding: 1.25rem 1rem 4rem; }
main#main:focus { outline: none; }
main h1:focus, main h2:focus { outline: none; }
main h1 { font-size: clamp(1.5rem, 4.5vw, 2rem); }
main h2 { font-size: 1.15rem; }
main h3 { font-size: 1rem; font-family: var(--font-body); font-weight: 700; }
.loading, .empty { color: var(--muted); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.25rem; margin: 0 0 1rem; }
.panel.narrow { max-width: 30rem; margin: 3rem auto; }
.note { padding: 0.6rem 0.8rem; border-radius: 8px; }
.note.warn { background: var(--warn-bg); }
.note.bad { background: var(--bad-bg); color: var(--bad); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.35rem;
  font: inherit; font-size: 0.95rem; line-height: 1.2; min-height: 2.5rem; padding: 0.5rem 1rem;
  border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text);
  cursor: pointer; text-decoration: none;
}
.btn:hover:not(:disabled) { background: var(--surface-2); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.small { min-height: 2rem; padding: 0.25rem 0.7rem; font-size: 0.85rem; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); background: var(--accent); }
.btn.ok { background: var(--ok-bg); border-color: var(--ok); color: var(--ok); }
.btn.bad { background: var(--bad-bg); border-color: var(--bad); color: var(--bad); }

.list-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.list-head h1 { margin: 0; }
.segs { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg { font: inherit; font-size: 0.9rem; border: 0; background: var(--surface); color: var(--muted); padding: 0.4rem 0.9rem; cursor: pointer; min-height: 2.25rem; }
.seg + .seg { border-left: 1px solid var(--line); }
.seg[aria-pressed='true'] { background: var(--accent); color: var(--accent-text); }
.seg:disabled { opacity: 0.45; cursor: not-allowed; }

.digest { background: var(--warn-bg); border-radius: var(--radius); padding: 0.9rem 1.1rem; margin-bottom: 1rem; }
.digest h2 { margin-bottom: 0.3rem; }
.digest p { margin: 0 0 0.4rem; }
.digest ul { margin: 0; padding-left: 1.1rem; }
.digest li { margin: 0.15rem 0; }
.digest .chip { margin-left: 0.35rem; }

.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0.5rem 0; position: sticky; top: 3.4rem; background: var(--bg); z-index: 4; }
.check { display: inline-flex; align-items: center; gap: 0.5rem; margin-right: auto; min-height: 2.5rem; cursor: pointer; }
input[type='checkbox'] { width: 1.2rem; height: 1.2rem; accent-color: var(--accent); }

.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.item { display: flex; align-items: stretch; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.item.bug { border-left: 4px solid var(--bad); }
.item.feature { border-left: 4px solid var(--accent); }
.item.thanks { border-left: 4px solid var(--ok); }
.pick { display: flex; align-items: flex-start; padding: 0.9rem 0.25rem 0.9rem 0.8rem; cursor: pointer; }
.item-link { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.7rem 1rem 0.7rem 0.5rem; text-decoration: none; color: var(--text); border-radius: 0 var(--radius) var(--radius) 0; }
.item-link:hover { background: var(--surface-2); }
.item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; margin: 0; }
.item-title { font-weight: 700; overflow-wrap: anywhere; }
.item-summary { color: var(--text); font-size: 0.92rem; }
.item-meta { color: var(--muted); font-size: 0.85rem; }
.fbid { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.85rem; color: var(--muted); }

.chip { display: inline-block; font-size: 0.75rem; line-height: 1.4; padding: 0.05rem 0.5rem; border-radius: 999px; background: var(--surface-2); color: var(--text); white-space: nowrap; }
.bk-where { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; margin: 0.35rem 0 0; font-size: 1.15rem; }
.bk-where-machine, .bk-where-agent { font-weight: 700; }
.bk-where-model { font-size: 0.9rem; padding: 0.1rem 0.4rem; border-radius: 0.3rem; background: var(--surface-2); }
.bk-headroom-inline { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.bk-headroom-inline.tone-warn { color: var(--amber); }
.bk-headroom-inline.tone-bad { color: var(--bad); }
.bk-headroom { display: block; font-size: 0.72rem; font-weight: 600; line-height: 1.1; color: var(--muted); }
.bk-headroom.tone-warn { color: var(--amber); }
.bk-headroom.tone-bad { color: var(--bad); }
.chip.t-task { background: var(--run-bg); font-weight: 600; }
.chip.t-bug, .chip.s-blocks, .chip.st-rejected { background: var(--bad-bg); color: var(--bad); }
.chip.t-thanks, .chip.st-approved { background: var(--ok-bg); color: var(--ok); }
.chip.s-wrong, .chip.count, .chip.stage { background: var(--warn-bg); color: var(--text); }
.chip.st-new { background: var(--accent); color: var(--accent-text); }
.chip.st-merged { background: var(--surface-2); color: var(--muted); }
/* The app badge: an outline, so it never reads as a type or a status. */
.chip.app { background: transparent; border: 1px solid var(--line); color: var(--text); font-weight: 600; }
.chip.app-socal { border-color: var(--accent); color: var(--accent); }
/* Rows the owner marks Windows (the Windows runner builds them) and the Buildkit's Windows project. */
.chip.platform-windows { background: transparent; border: 1px dashed var(--accent); color: var(--accent); font-weight: 600; }
.check.inline { margin-right: 0; min-height: 2rem; gap: 0.35rem; }
.filters { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.gates { display: grid; gap: 0.5rem; margin-bottom: 1rem; }
.gates .gate { margin: 0; }
.layers { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }

.back { display: inline-block; margin-bottom: 0.75rem; }
.item-head h1 { margin: 0.35rem 0 0.25rem; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0.75rem 0 1rem; }
.prose { white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.plain { margin: 0; padding-left: 1.1rem; }
.meta { display: grid; grid-template-columns: minmax(8rem, max-content) 1fr; gap: 0.25rem 1rem; margin: 0; font-size: 0.92rem; }
.meta dt { color: var(--muted); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.82rem; padding-top: 0.1rem; }
.meta dd { margin: 0; overflow-wrap: anywhere; }
.notes { margin: 0; padding-left: 1.5rem; font-size: 0.9rem; }

.form .field { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.75rem; }
.form label { font-weight: 700; font-size: 0.9rem; }
.form input[type='text'], .form textarea, .form select {
  font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 8px;
  padding: 0.5rem 0.6rem; min-height: 2.5rem; width: 100%;
}
.form textarea { resize: vertical; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 0.75rem; }
.field-error { color: var(--bad); font-size: 0.85rem; margin: 0; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.charcount { margin-left: auto; color: var(--muted); font-size: 0.85rem; }

.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 1rem; }
.col { background: var(--surface-2); border-radius: var(--radius); padding: 0.75rem; min-width: 0; }
.col h2 { font-size: 1rem; display: flex; align-items: center; gap: 0.4rem; }
.col .n { font-family: var(--font-body); font-size: 0.8rem; background: var(--surface); border-radius: 999px; padding: 0 0.5rem; color: var(--muted); }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 0.6rem 0.7rem; }
.card p { margin: 0 0 0.25rem; }
.card-title { font-weight: 700; font-size: 0.92rem; overflow-wrap: anywhere; }

.toast {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translate(-50%, 200%); max-width: calc(100% - 2rem);
  background: var(--text); color: var(--bg); padding: 0.65rem 1rem; border-radius: 8px; font-size: 0.95rem;
  transition: transform 0.2s ease; z-index: 20;
}
.toast.show { transform: translate(-50%, 0); }
.toast[data-kind='error'] { background: var(--bad); color: #fff; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }

@media (max-width: 720px) {
  .pipeline { grid-template-columns: 1fr; }
  .row3 { grid-template-columns: 1fr; }
  .who { margin-left: 0; width: 100%; justify-content: space-between; }
  .who-name { max-width: 60vw; }
  .bar { position: relative; }   /* not sticky on a phone; relative so the bell's panel hangs under it */
  .bulk { top: 0; }
  .meta { grid-template-columns: 1fr; gap: 0 0; }
  .meta dd { margin-bottom: 0.4rem; }
}
.bulk.confirm { background: var(--warn-bg); border-radius: var(--radius); padding: 0.5rem 0.75rem; }
.confirm-text { font-weight: 700; margin-right: auto; }
.item-link:hover .chip:not([class*='t-']):not([class*='s-']):not(.count) { background: var(--surface); }
.panel > :last-child { margin-bottom: 0; }
.chip.dup { background: var(--surface-2); color: var(--muted); font-style: italic; }
.gate { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; padding: 0.6rem 0.9rem; border-radius: var(--radius); margin-bottom: 1rem; border: 1px solid var(--line); background: var(--surface); }
.gate p { margin: 0; flex: 1 1 18rem; }
.gate.is-closed { border-left: 4px solid var(--muted); }
.gate.is-open { border-left: 4px solid var(--ok); }
.gate.confirm { background: var(--warn-bg); }
.admin-foot { max-width: 64rem; margin: 0 auto; padding: 0 1rem 2rem; font-size: 0.85rem; color: var(--muted); }

/* The owner's build instructions: set apart from the player's words, so the two are never confused. */
.panel.instructions { border-left: 4px solid var(--accent); }
.instructions-field { border-left: 4px solid var(--accent); padding-left: 0.75rem; margin-bottom: 0.75rem; }
.instructions-field .item-meta { margin: 0 0 0.35rem; }
.quote { margin: 0 0 0.75rem; padding: 0.5rem 0.75rem; background: var(--surface-2); border-radius: 8px; max-height: 10rem; overflow: auto; font-size: 0.92rem; }
.card-instr { border-left: 3px solid var(--accent); padding-left: 0.5rem; margin: 0.35rem 0; font-size: 0.88rem; }
.card-label { font-weight: 700; font-size: 0.78rem; color: var(--muted); }
.card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.35rem; margin-top: 0.35rem; }
/* "Move back to approved" on an in-build card: the button, its reason when it is disabled, or the confirm. */
.card-back { margin-top: 0.4rem; }
.card-back-why { margin: 0.25rem 0 0; }
.card-back.confirm { background: var(--warn-bg); border-radius: var(--radius); padding: 0.5rem 0.6rem; }
.card-back.confirm .confirm-text { display: block; margin: 0 0 0.45rem; font-weight: 600; }
.card-back .actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.card.editing { padding: 0.75rem; }
.card .form .field { margin-bottom: 0.5rem; }

/* The screenshot: a thumbnail that opens the full image. */
.shot { display: block; width: min(100%, 24rem); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; line-height: 0; }
.shot img { display: block; width: 100%; height: auto; max-height: 16rem; object-fit: contain; background: var(--surface-2); }
.shot:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* The owner's own items: the "New item" button and form at the top of a list, and the "Added by you" badge (dashed, so it
   never reads as the app, a type or a status). */
.new-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0 0 1rem; }
.new-item { border-left: 4px solid var(--accent); }
.new-item h2 { margin-top: 0; }
.new-item .row3 { margin-top: 0.5rem; }
.new-item[aria-busy='true'] { opacity: 0.7; }
.bug-fields { border-left: 4px solid var(--bad); padding-left: 0.75rem; margin-bottom: 0.75rem; }
.chip.owner { background: transparent; border: 1px dashed var(--accent); color: var(--accent); font-weight: 600; }

/* The Shipped tab's filter (search + build). */
.filters .ship-q, .filters #ship-build { font: inherit; padding: 0.35rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); min-width: 0; }
.filters .ship-q { width: 14rem; max-width: 100%; }
.confirm-inline { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }

/* --- Buildkit (bkpages.js): Plan batch, Builds, a spec, a job ---------------------------------------------------------- */
.plan-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; margin: 0.75rem 0 0; padding: 0.6rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.plan-bar.confirm { background: var(--warn-bg); }
.plan-goal { font: inherit; padding: 0.4rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); flex: 1 1 14rem; min-width: 0; }
.card .item-top input[type='checkbox'] { margin: 0 0.15rem 0 0; }
.card.picked { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }

.bk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.bk-row { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.55rem 0.7rem; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text); }
.bk-row:hover { background: var(--surface-2); }
.bk-state { font-weight: 600; font-size: 0.92rem; overflow-wrap: anywhere; }
.tone-run { color: var(--accent); }
.tone-wait { color: var(--text); }
.tone-bad { color: var(--bad); }
.tone-good { color: var(--ok); }
.tone-idle { color: var(--muted); }
.chip.sp-ready { background: var(--amber-bg); color: var(--amber); border: 1px solid var(--amber-line); }
.chip.sp-approved { background: var(--ok-bg); color: var(--ok); }
.chip.sp-withdrawn { background: var(--surface-2); color: var(--muted); text-decoration: line-through; }
.chip.bk-dl { background: var(--ok-bg); color: var(--ok); font-weight: 700; }
/* The job page's download: first under the state line, the link large. */
.bk-download { border-left: 6px solid var(--ok); }
.bk-download.expired { border-left-color: var(--line); }
.bk-dl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.25rem 0 0.4rem; }
.bk-spec-link { margin: 0.25rem 0 0.75rem; font-weight: 600; }
.bk-dl-go { font-size: 1.05rem; padding: 0.6rem 1.1rem; text-decoration: none; }
.chip.sp-drafting, .chip.sp-revising { background: var(--warn-bg); color: var(--text); }
.note.ok { background: var(--ok-bg); color: var(--text); }
.note p { margin: 0 0 0.35rem; }
.note > :last-child { margin-bottom: 0; }

.bk-stateline { display: flex; align-items: center; gap: 0.6rem; font-size: 1.15rem; font-weight: 700; margin: 0.25rem 0 0.25rem; overflow-wrap: anywhere; }
.bk-stateline .dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; background: currentColor; flex: none; }
.bk-stateline.tone-wait .dot { background: var(--warn-bg); border: 2px solid var(--text); }
.bk-stateline.tone-run .dot { animation: bk-pulse 1.6s ease-in-out infinite; }
@keyframes bk-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .bk-stateline.tone-run .dot { animation: none; } }

.bk-frames { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.6rem; }
.bk-frames li { display: flex; flex-direction: column; gap: 0.2rem; min-width: 0; }
.bk-frames .shot { width: 100%; }
.bk-frames .shot img { aspect-ratio: 16 / 9; max-height: none; object-fit: cover; }
.bk-frame-group + .bk-frame-group { margin-top: 1rem; }
.bk-frame-row { font-size: 0.95rem; margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; }
.bk-frames .item-meta { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.bk-timeline { list-style: none; margin: 0; padding: 0; }
.bk-timeline li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.5rem; padding: 0.35rem 0; border-top: 1px solid var(--line); }
.bk-timeline li:first-child { border-top: 0; }
.bk-timeline time { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.85rem; color: var(--muted); }
.ev-text { flex: 1 1 16rem; min-width: 0; overflow-wrap: anywhere; }
.chip.ev-chip-error, .chip.ev-chip-report { background: var(--bad-bg); color: var(--bad); }
.chip.ev-chip-commit, .chip.ev-chip-tests, .chip.ev-chip-notarise { background: var(--ok-bg); color: var(--ok); }
.chip.ev-chip-lock, .chip.ev-chip-state { background: var(--warn-bg); color: var(--text); }

/* The spec: rendered markdown, its comments, the diff. */
.bk-vbar { margin: 0.5rem 0 0.75rem; }
.bk-vbar select { font: inherit; padding: 0.35rem 0.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); max-width: 100%; }
.bk-rows summary { cursor: pointer; font-weight: 700; }
.bk-rows ul { margin-top: 0.6rem; }
.bk-rows li { margin: 0.35rem 0; }
.md { overflow-wrap: anywhere; line-height: 1.55; }
.md .md-h { margin: 1.4rem 0 0.5rem; font-family: var(--font-head); }
.md .md-h:first-child { margin-top: 0.25rem; }
.md .md-h1 { font-size: 1.45rem; }
.md .md-h2 { font-size: 1.2rem; border-bottom: 1px solid var(--line); padding-bottom: 0.2rem; }
.md .md-h3 { font-size: 1.05rem; }
.md .md-h4, .md .md-h5, .md .md-h6 { font-size: 0.98rem; font-family: var(--font-body); }
.md ul, .md ol { padding-left: 1.4rem; }
.md li { margin: 0.2rem 0; }
.md code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.88em; background: var(--surface-2); padding: 0.05rem 0.3rem; border-radius: 4px; }
.md-code { background: var(--surface-2); border-radius: 8px; padding: 0.7rem 0.85rem; overflow-x: auto; font-size: 0.85rem; line-height: 1.45; }
.md-code code { background: none; padding: 0; }
.md-quote { margin: 0.5rem 0; padding: 0.1rem 0.85rem; border-left: 4px solid var(--line); color: var(--muted); }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 1.2rem 0; }
.md-table { overflow-x: auto; margin: 0.6rem 0; }
.md-table table { border-collapse: collapse; font-size: 0.9rem; min-width: 60%; }
.md-table th, .md-table td { border: 1px solid var(--line); padding: 0.35rem 0.55rem; text-align: left; vertical-align: top; }
.md-table th { background: var(--surface-2); }
.md-table .al-right { text-align: right; }
.md-table .al-center { text-align: center; }

.bk-comment-area { margin: 0.4rem 0 1rem; padding-left: 0.75rem; border-left: 3px dashed var(--line); }
.bk-comment-area.open { border-left-color: var(--accent); }
.bk-comments { list-style: none; margin: 0 0 0.5rem; padding: 0; display: grid; gap: 0.4rem; }
.bk-comments li { background: var(--warn-bg); border-radius: 8px; padding: 0.4rem 0.6rem; }
.bk-comments .prose { margin: 0.15rem 0 0; }
.bk-comment-form textarea, .bk-decide textarea { width: 100%; font: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.bk-comment-form .actions { margin: 0.4rem 0 0; }
.bk-builder { border: 1px solid var(--line); border-radius: 8px; padding: 0.4rem 0.8rem 0.6rem; margin: 0 0 0.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.25rem; }
.bk-builder legend { font-weight: 700; padding: 0 0.3rem; }
.bk-builder .check { margin-right: 0; }
.bk-builder p { flex-basis: 100%; margin: 0.2rem 0 0; }
.bk-decide.confirm { background: var(--warn-bg); }
.bk-decide .confirm-text { display: block; margin: 0 0 0.5rem; }

.bk-diff { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.82rem; line-height: 1.45; border: 1px solid var(--line); border-radius: 8px; overflow-x: auto; }
.bk-diff .d { display: flex; min-width: min-content; }
.bk-diff .sign { flex: none; width: 1.6rem; text-align: center; color: var(--muted); user-select: none; }
.bk-diff .txt { white-space: pre-wrap; overflow-wrap: anywhere; padding-right: 0.6rem; flex: 1; }
.bk-diff .add { background: var(--ok-bg); }
.bk-diff .add .sign { color: var(--ok); }
.bk-diff .del { background: var(--bad-bg); }
.bk-diff .del .sign, .bk-diff .del .txt { color: var(--bad); }
.bk-diff .del .txt { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--bad) 45%, transparent); }
.bk-diff .gap { background: var(--surface-2); color: var(--muted); padding: 0.15rem 0.6rem; font-style: italic; }
@media (max-width: 720px) {
  .plan-bar .item-meta { flex-basis: 100%; }
  .bk-stateline { font-size: 1.02rem; }
}

/* --- What waits for the owner and what is building (the owner, 17 Nov 2026: "super obvious") ----------------------------
   Amber = waiting for the owner's decision; the accent with a moving dot = in progress; red = failed. The banner sits
   above every tab (#bk-banner), the Builds tab repeats it as its own top sections, and the spec pins its decision. */
:root { --amber: #9a5200; --amber-text: #ffffff; --amber-bg: #fcefd6; --amber-line: #e3ac57; --run-bg: #e3eff4; }
@media (prefers-color-scheme: dark) {
  :root { --amber: #ffbf66; --amber-text: #2a1800; --amber-bg: #33260f; --amber-line: #8a6326; --run-bg: #15303d; }
}
.bk-banner-wrap { max-width: 64rem; margin: 0 auto; padding: 0.75rem 1rem 0; }
.bk-banner-wrap + main#main { padding-top: 0.9rem; }
.bkb { display: grid; gap: 0.6rem; }
.bkb-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 0.55rem 0.6rem 0.6rem; margin: 0; }
.bkb-ready, .bkb-ask { background: var(--amber-bg); border-color: var(--amber-line); border-left: 6px solid var(--amber); }
.bkb-run { background: var(--run-bg); border-left: 6px solid var(--accent); }
.bkb-bad { background: var(--bad-bg); border-left: 6px solid var(--bad); }
.bkb-h { display: flex; align-items: center; gap: 0.45rem; margin: 0 0 0.45rem 0.15rem; font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.bkb-ready .bkb-h, .bkb-ask .bkb-h { color: var(--amber); }
.bkb-question { color: var(--text); font-weight: 600; }
.bkb-run .bkb-h { color: var(--accent); }
.bkb-bad .bkb-h { color: var(--bad); }
.bkb-mark { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; flex: none; }
/* "Needs attention" collapses to one red line: the heading is a button that opens the cards (bkpages.js attentionGroup). */
.bkb-collapsible:not(.open) { padding-top: 0.15rem; padding-bottom: 0.15rem; }
.bkb-collapsible:not(.open) .bkb-h { margin-bottom: 0; }
.bkb-toggle { display: flex; align-items: center; gap: 0.45rem; width: 100%; min-height: 2.75rem; padding: 0.2rem 0.1rem; margin: 0; background: none; border: 0; border-radius: 6px; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; text-align: left; cursor: pointer; }
.bkb-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bkb-toggle-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.bkb-chev { flex: none; font-size: 1.35rem; line-height: 1; transition: transform 0.15s; }
.bkb-toggle[aria-expanded='true'] .bkb-chev { transform: rotate(90deg); }
.bkb-list[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) { .bkb-chev { transition: none; } }
.bkb-run .bkb-mark { animation: bk-pulse 1.6s ease-in-out infinite; }
.bkb-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.bkb-card {
  display: flex; align-items: center; gap: 0.75rem; min-height: 3.25rem; padding: 0.65rem 0.8rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; color: var(--text);
}
.bkb-card:hover { background: var(--surface-2); }
.bkb-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bkb-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.bkb-title { font-weight: 700; overflow-wrap: anywhere; }
.bkb-line { font-weight: 600; font-size: 0.92rem; overflow-wrap: anywhere; }
.bkb-line.tone-wait { color: var(--text); }
.bkb-sub { font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.bkb-err { color: var(--bad); }
.bkb-cta { flex: none; font-weight: 700; font-size: 0.9rem; white-space: nowrap; padding: 0.45rem 0.85rem; border-radius: 999px; border: 1px solid currentColor; }
.bkb-ready .bkb-cta, .bkb-ask .bkb-cta { background: var(--amber); border-color: var(--amber); color: var(--amber-text); }
.bkb-run .bkb-cta { color: var(--accent); }
.bkb-bad .bkb-cta { color: var(--bad); }
.bkb-dl { background: var(--ok-bg); border-left: 6px solid var(--ok); }
.bkb-dl .bkb-h, .bkb-slim-part.dl { color: var(--ok); }
.bkb-dl .bkb-cta { background: var(--ok); border-color: var(--ok); color: var(--surface); text-decoration: none; }
.bkb-dl .bkb-joblink { color: var(--text); text-decoration: none; }
.bkb-dl .bkb-joblink:focus-visible, .bkb-dl .bkb-cta:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bkb-dot { width: 0.85rem; height: 0.85rem; border-radius: 50%; background: var(--accent); flex: none; animation: bk-pulse 1.6s ease-in-out infinite; }
.bkb-dot.tone-wait { background: transparent; border: 3px solid var(--accent); animation-duration: 2.6s; }
.bkb-card.quiet .bkb-dot { animation: none; opacity: 0.55; }
.bkb-none { margin: 0; padding: 0.15rem 0.2rem; font-size: 0.85rem; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .bkb-dot, .bkb-run .bkb-mark { animation: none; } }
/* The Builds tab: the same groups as sections, then the history. */
#bk-now { margin: 0 0 1.25rem; }
.bkb-page .bkb-h { font-size: 1rem; letter-spacing: 0; text-transform: none; }
.bk-history-h { margin: 0 0 0.5rem; }
.panel h3:first-child { margin-top: 0; }

/* The Builds tab's count: specs waiting for approval + jobs building (amber while one waits for the owner). */
.tab-badge { display: inline-block; min-width: 1.3rem; margin-left: 0.35rem; padding: 0 0.4rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; line-height: 1.3rem; text-align: center; background: var(--accent); color: var(--accent-text); }
.tabs a[aria-current='page'] .tab-badge { background: var(--accent-text); color: var(--accent); }
.tab-badge.ready, .tabs a[aria-current='page'] .tab-badge.ready { background: var(--amber); color: var(--amber-text); }

/* The spec's decision, pinned under the header while the spec is ready. --bar-h is the header's height (app.js). */
.bk-decide-bar { background: var(--surface); border: 1px solid var(--amber-line); border-left: 6px solid var(--amber); border-radius: var(--radius); padding: 0.65rem 0.85rem; margin: 0 0 1rem; }
.bk-decide-bar.sticky { position: sticky; top: calc(var(--bar-h, 3.4rem) + 0.4rem); z-index: 4; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.45); }
.bk-decide-bar.confirm { background: var(--amber-bg); }
.bkd-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; }
.bkd-what { margin: 0; }
.bkd-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.5rem; margin-top: 0.6rem; }
.bkd-go { min-height: 2.75rem; font-size: 1rem; font-weight: 700; padding: 0.55rem 1.2rem; }
.bkd-who { font-weight: 400; }
.bkd-launch { margin: 0.3rem 0 0; font-weight: 600; }
.bkd-rec { margin: 0.45rem 0 0; }
.bk-decide-bar .confirm-text { display: block; margin: 0; }
.bk-decide-bar .field { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.bk-decide-bar textarea { width: 100%; font: inherit; padding: 0.5rem 0.6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); }
.bkd-builders .seg { display: inline-flex; align-items: center; position: relative; }
.bkd-builder-groups { display: flex; flex-wrap: wrap; gap: 0.35rem 0.9rem; align-items: center; }
.bkd-builder-group { display: inline-flex; align-items: center; gap: 0.4rem; }
.bkd-agent { margin: 0; white-space: nowrap; }
.bkd-builders .seg:has(input:checked) { background: var(--accent); color: var(--accent-text); }
.bkd-builders .seg:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: -3px; }
/* Plan headroom on top of a builder chip (20 Nov 2026): the chip stacks; on the chosen chip the line takes its text colour. */
.bkd-builders .seg:has(.bk-headroom) { flex-direction: column; align-items: center; justify-content: center; gap: 0.1rem; padding-top: 0.25rem; padding-bottom: 0.3rem; }
.bkd-builders .seg:has(input:checked) .bk-headroom { color: inherit; opacity: 0.85; }

/* The Pipeline: the spec a row is in. */
.card-spec { margin: 0.2rem 0 0.25rem; }
.chip.bk-inspec { text-decoration: none; white-space: normal; border: 1px solid var(--line); background: var(--surface-2); }
.chip.bk-inspec.sp-ready { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-line); font-weight: 700; }
.chip.bk-inspec.sp-building { background: var(--run-bg); color: var(--accent); border-color: var(--accent); font-weight: 700; }
.chip.bk-inspec.sp-failed { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }

@media (max-width: 720px) {
  .bk-decide-bar.sticky { top: 0.4rem; }
  .bk-decide-bar.sticky .bkd-rec { display: none; }
  .bkd-actions > .btn { flex: 1 1 auto; }
  .bkd-actions > .bkd-go { flex: 2 1 auto; }
}
/* On a spec or job page: one line of counts. */
.bkb-slim { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.9rem; padding: 0.45rem 0.75rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; font-size: 0.9rem; }
.bkb-slim:hover { background: var(--surface-2); }
.bkb-slim:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bkb-slim-also { color: var(--muted); }
.bkb-slim-part { display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 700; }
.bkb-slim-part.ready { color: var(--amber); }
.bkb-slim-part.run { color: var(--accent); }
.bkb-slim-part.run .bkb-mark { animation: bk-pulse 1.6s ease-in-out infinite; }
.bkb-slim-part.bad { color: var(--bad); }
.bkb-slim-go { margin-left: auto; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .bkb-slim-part.run .bkb-mark { animation: none; } }
@media (max-width: 520px) {
  .bkb-ready .bkb-card, .bkb-ask .bkb-card, .bkb-dl .bkb-card { flex-wrap: wrap; }
  .bkb-ready .bkb-cta, .bkb-ask .bkb-cta, .bkb-dl .bkb-cta { width: 100%; text-align: center; }
  /* A building or failed card is itself the link: a chevron instead of the word. */
  .bkb-run .bkb-cta, .bkb-bad .bkb-cta { display: none; }
  .bkb-run .bkb-card::after, .bkb-bad .bkb-card::after { content: '›'; flex: none; font-size: 1.6rem; line-height: 1; color: var(--muted); }
}

/* --- The runners (the owner, 17 Nov 2026: "very clear indicators ... up, not connected, running a build") -------------
   One card per runner above the banner on every tab, and in full on the Builds tab. Each state has its colour, its own
   CSS-drawn mark (a turning ring, a tick, "!", a cross, "?": no emoji, which iOS would recolour) and its word. */
.rn-wrap { padding-bottom: 0; }
.rn-wrap + .bk-banner-wrap { padding-top: 0.6rem; }
.rn-strip { display: grid; gap: 0.35rem; }
.rn-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.rn-card {
  --rn: var(--muted); --rn-bg: var(--surface-2);
  display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 0.75rem; min-height: 3.6rem; box-sizing: border-box;
  border: 1px solid var(--line); border-left: 7px solid var(--rn); border-radius: var(--radius); background: var(--rn-bg);
  color: var(--text); text-decoration: none; height: 100%;
}
a.rn-card:hover { filter: brightness(0.97); }
a.rn-card:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.rn-building { --rn: var(--accent); --rn-bg: var(--run-bg); }
.rn-up { --rn: var(--ok); --rn-bg: var(--ok-bg); }
.rn-late { --rn: var(--amber); --rn-bg: var(--amber-bg); }
.rn-down { --rn: var(--bad); --rn-bg: var(--bad-bg); }
.rn-card.rn-problem { --rn: var(--bad); --rn-bg: var(--bad-bg); }
.rn-problem-text { font-size: 0.9rem; font-weight: 600; color: var(--bad); overflow-wrap: anywhere; word-break: break-word; }
.rn-unknown, .rn-loading { --rn: var(--muted); --rn-bg: var(--surface); border-style: dashed; border-left-style: solid; }
.rn-extra { opacity: 0.8; }
.rn-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.rn-name { font-weight: 700; font-size: 1.02rem; overflow-wrap: anywhere; }
.rn-line { font-size: 0.95rem; overflow-wrap: anywhere; }
.rn-state { color: var(--rn); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.rn-note { font-size: 0.85rem; font-weight: 700; color: var(--amber); }
.rn-hint { font-size: 0.85rem; color: var(--muted); overflow-wrap: anywhere; }
.rn-down .rn-hint, .rn-card.rn-problem .rn-hint { color: var(--text); }
.rn-go { flex: none; font-size: 1.6rem; line-height: 1; color: var(--rn); }
/* The marks: a 1.9 rem disc in the state's colour. */
.rn-icon { flex: none; position: relative; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: var(--rn); box-sizing: border-box; }
.rn-icon::before, .rn-icon::after { content: ''; position: absolute; box-sizing: border-box; }
/* building: a ring turning (the disc becomes a ring with one bright quarter) */
.rn-building .rn-icon { background: transparent; border: 4px solid color-mix(in srgb, var(--rn) 28%, transparent); border-top-color: var(--rn); animation: rn-spin 1.1s linear infinite; }
/* up: a tick */
.rn-up .rn-icon::before { left: 0.66rem; top: 0.38rem; width: 0.5rem; height: 0.9rem; border: solid var(--surface); border-width: 0 0.2rem 0.2rem 0; transform: rotate(45deg); }
/* late: "!" */
.rn-late .rn-icon::before { left: calc(50% - 0.1rem); top: 0.38rem; width: 0.2rem; height: 0.7rem; border-radius: 0.1rem; background: var(--surface); }
.rn-late .rn-icon::after { left: calc(50% - 0.12rem); top: 1.25rem; width: 0.24rem; height: 0.24rem; border-radius: 50%; background: var(--surface); }
/* not connected: a cross */
.rn-down .rn-icon::before, .rn-down .rn-icon::after { left: calc(50% - 0.1rem); top: 0.4rem; width: 0.2rem; height: 1.1rem; border-radius: 0.1rem; background: var(--surface); transform: rotate(45deg); }
.rn-down .rn-icon::after { transform: rotate(-45deg); }
.rn-card.rn-problem .rn-icon::before { left: calc(50% - 0.1rem); top: 0.38rem; width: 0.2rem; height: 0.7rem; border-radius: 0.1rem; background: var(--surface); }
.rn-card.rn-problem .rn-icon::after { left: calc(50% - 0.12rem); top: 1.25rem; width: 0.24rem; height: 0.24rem; border-radius: 50%; background: var(--surface); }
/* unavailable: "?" as text; loading: a still, hollow ring */
.rn-unknown .rn-icon::before { content: '?'; inset: 0; display: grid; place-items: center; color: var(--surface); font-weight: 800; font-size: 1.15rem; line-height: 1; }
.rn-loading .rn-icon { background: transparent; border: 4px solid var(--line); }
@keyframes rn-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .rn-building .rn-icon { animation: none; border-color: var(--rn); border-right-color: transparent; } }
.rn-foot { margin: 0; text-align: right; }
.linkish { font: inherit; font-size: 0.85rem; background: none; border: 0; padding: 0.35rem 0.2rem; color: var(--accent); text-decoration: underline; cursor: pointer; min-height: 2rem; }
.linkish:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
/* The Builds tab: each card with what the runner is. */
.rn-section { margin: 0 0 1.25rem; }
.rn-section h2 { margin: 0 0 0.5rem; }
.rn-full { grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr)); }
.rn-detail-item { display: flex; flex-direction: column; gap: 0.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 0.5rem; }
.rn-detail-item .rn-card { height: auto; }
.rn-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.2rem 0.75rem; margin: 0 0.25rem 0.15rem; font-size: 0.88rem; }
.rn-facts dt { color: var(--muted); }
.rn-facts dd { margin: 0; overflow-wrap: anywhere; }
.rn-caps { display: inline-flex; flex-wrap: wrap; gap: 0.25rem; }
@media (max-width: 520px) {
  .rn-list { gap: 0.4rem; }
  .rn-card { padding: 0.5rem 0.65rem; gap: 0.65rem; }
}

/* A build's question (state asking): amber like "Waiting for you", the question large. */
.bk-question { border-left: 6px solid var(--amber); background: var(--amber-bg); }
.bk-q-text { font-size: 1.1rem; font-weight: 600; margin: 0.25rem 0 0.4rem; white-space: pre-wrap; }
.bk-question textarea { width: 100%; box-sizing: border-box; margin: 0.5rem 0; font: inherit; }
.bk-q-detail pre { white-space: pre-wrap; word-break: break-word; max-height: 18rem; overflow: auto; font-size: 0.8rem; background: var(--surface-2); padding: 0.5rem; border-radius: var(--radius); }
.bk-q-picks { flex-wrap: wrap; }
.bkb-slim-part.ask { color: var(--amber); }

/* Notifications on this device (js/notify.js): one panel on the Builds tab. */
.bk-notify .bk-notify-state { font-weight: 600; margin: 0.2rem 0; }
.bk-notify ol { margin: 0.3rem 0 0.2rem 1.2rem; padding: 0; }
.bk-notify-others ul { list-style: none; margin: 0.2rem 0 0; padding: 0; display: grid; gap: 0.3rem; }
.bk-notify-others li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }

/* The runners strip at the top: one compact line per runner (the owner, 19 Nov 2026: "make the runners smaller"). The
   Builds tab's Runners section keeps the full cards. The card's tooltip carries the full text. */
.rn-compact .rn-list { gap: 0.35rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.rn-compact .rn-card { min-height: 0; padding: 0.25rem 0.5rem; gap: 0.45rem; border-left-width: 4px; }
.rn-compact .rn-icon { width: 0.95rem; height: 0.95rem; }
.rn-compact .rn-building .rn-icon { border-width: 2px; }
.rn-compact .rn-icon::before, .rn-compact .rn-icon::after { display: none; }
.rn-compact .rn-unknown .rn-icon::before { display: none; }
.rn-compact .rn-body { flex-direction: row; align-items: baseline; gap: 0.4rem; white-space: nowrap; overflow: hidden; }
.rn-compact .rn-name { font-size: 0.85rem; flex: none; }
.rn-compact .rn-line { font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; }
.rn-compact .rn-state { letter-spacing: 0.02em; }
.rn-compact .rn-hint, .rn-compact .rn-note { display: none; }
.rn-compact .rn-problem-text { font-size: 0.8rem; overflow: hidden; text-overflow: ellipsis; }
.rn-compact .rn-go { font-size: 1.1rem; }
.rn-compact .rn-foot { font-size: 0.8rem; }

/* The notifications bell in the header, and its panel under it. */
.bell { position: relative; display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--muted); cursor: pointer; flex: none; }
.bell:hover, .bell[aria-expanded='true'] { color: var(--text); background: var(--surface-2); }
.bell:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.bell.on { color: var(--accent); }
.bell.on::after { content: ''; position: absolute; top: 0.25rem; right: 0.25rem; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--ok); border: 2px solid var(--surface); }
.bell-pop { position: absolute; top: 100%; right: 1rem; width: min(26rem, calc(100vw - 2rem)); max-height: 70vh; overflow: auto; z-index: 6; box-shadow: 0 8px 24px rgb(0 0 0 / 0.3); border-radius: var(--radius); }
.bell-pop .panel { margin: 0; }

/* Reference images on a request (js/attach.js): a drop zone, then the thumbnails. */
.att-drop { border: 2px dashed var(--line); border-radius: var(--radius); padding: 1rem; text-align: center; color: var(--muted, var(--text)); font-size: 0.92rem; }
.att.dragging .att-drop { border-color: var(--accent); background: var(--surface-2); }
.att-grid { list-style: none; margin: 0.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr)); gap: 0.6rem; }
.att-grid li { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.att-grid .shot img { aspect-ratio: 4 / 3; max-height: none; object-fit: cover; border-radius: 6px; }
.att-name { overflow-wrap: anywhere; }
.att-pdf { display: grid; place-items: center; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: 6px; font-weight: 600; }
.att-confirm { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.att-err { white-space: pre-line; }
.att-new { margin: 0.25rem 0 0.75rem; }
.att-new .list-head { margin-bottom: 0.4rem; }
.att-picked { margin: 0.5rem 0 0; display: grid; gap: 0.3rem; }
.att-picked li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem; overflow-wrap: anywhere; }
