/* rollcall.css — the page, the bin, the roll, a figure and the verifier. */

.rc { position: relative; }
.rc-head { padding-top: clamp(26px, 4.4vw, 56px); }
.rc-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-top: 14px; }
.rc-cap { font: 500 clamp(64px, 10.4vw, 148px)/.86 var(--sans); letter-spacing: -.055em; margin-left: -.04em; }
.rc-cap.is-empty { color: var(--graphite); display: flex; align-items: flex-end; gap: .06em; }
.rc-cap.is-empty i { display: inline-block; width: 2.4em; height: .5em; margin-bottom: .1em; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M2 14Q50 10 100 13T198 11' fill='none' stroke='%239a9a93' stroke-width='2.2' stroke-linecap='round'/%3E%3Cpath d='M6 17Q60 14 120 16T194 15' fill='none' stroke='%239a9a93' stroke-width='1' stroke-linecap='round' opacity='.6'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; }
.rc-cap-label { margin-top: 14px; font: 500 12.5px/1.2 var(--sans); color: var(--muted); letter-spacing: .01em; }
.rc-caption { margin: 0 0 8px; font: italic 400 clamp(21px, 2.2vw, 27px)/1.32 var(--serif); letter-spacing: 0; color: var(--ink); max-width: 30ch; justify-self: end; text-wrap: pretty; }
.rc-head .ca { margin-top: 10px; }
.rc-head-clock { display: none; margin: 12px 0 0; font: 500 13px/1.2 var(--sans); color: var(--ink-2); }
.rc-head-clock b { font-weight: 600; color: var(--ink); }
.rc-caption span { display: inline; }
.rc-tag { margin: 20px 0 0; padding: 12px 16px; border-radius: 12px; background: #bf3b280d; color: var(--ink-2); font: 400 14px/1.5 var(--sans); max-width: 78ch; box-shadow: inset 0 0 0 1px #bf3b2826; }
.rc-tag strong { color: var(--red); font-weight: 600; }
.rc-tag a { white-space: nowrap; }

.rc-stage { position: relative; margin-top: clamp(8px, 2vw, 20px); }
.rc-scene { width: 100%; height: 350px; overflow: visible; }
.rc-scene text { font-family: var(--hand); }
.rc-scene .h-sign { font: 400 13px var(--hand); }
.rc-hand-label { font: 400 15px var(--hand); fill: var(--ink-2); }
.rc-count-label { font: 400 20px var(--hand); fill: var(--red); }
.rc-hand-note { font: 400 16px var(--hand); fill: var(--ink-2); }
/* phone-sized drawing: the words that stay get bigger, the room labels go */
.rc-scene.is-compact .h-room-label { display: none; }
.rc-scene.is-compact .rc-hand-note { font-size: 26px; }
.rc-scene.is-compact .rc-count-label { font-size: 30px; }
.rc-boil { filter: url(#boil); }
.rc-visitor path, .rc-visitor ellipse { vector-effect: non-scaling-stroke; stroke-width: 1.15px; }
body.calm .rc-boil { filter: none; }
.rc-phil { transition: transform .5s var(--ease-out); }
.rc-phil .phil-zz { transform-origin: 80px 10px; }
@keyframes zz { 0%, 100% { opacity: .35; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }
.h-smoke { animation: smoke 5s ease-in-out infinite; transform-origin: 290px 50px; }
@keyframes smoke { 0%, 100% { transform: translateX(0) skewX(0deg); opacity: .8; } 50% { transform: translateX(2px) skewX(4deg); opacity: .5; } }

.rc-crowd { position: relative; margin-top: -2px; min-height: 180px; touch-action: manipulation; }
.rc-tile { position: absolute; left: 0; }
.rc-tile.pencil { pointer-events: none; }
.rc-fx { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.rc-tip {
  position: absolute; left: 0; top: 0; z-index: 5; pointer-events: none; white-space: nowrap;
  background: var(--ink); color: #fff; font: 500 12px/1 var(--sans); padding: 8px 10px; border-radius: 8px;
  box-shadow: 0 8px 20px -10px #1b1c1899;
}
.rc-tip b { font-weight: 600; margin-right: 4px; }
.rc-tip span { color: #c9c9c2; margin-left: 4px; }
.rc-empty { position: absolute; left: 50%; top: 40px; transform: translateX(-50%); text-align: center; width: min(420px, 90%); }
.rc-empty p { margin: 0; color: var(--muted); font: 400 17px/1.45 var(--serif); }
.rc-empty .rc-empty-hand { font: 400 26px/1.1 var(--hand); color: var(--ink-2); margin: 0 0 8px; }

/* the register strip, stuck to the bottom of the screen while the crowd scrolls */
.rc-bar { position: sticky; bottom: 0; z-index: 20; margin-top: 18px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--rule); }
.rc-bar-inner { display: flex; align-items: center; gap: 22px; min-height: 64px; padding-top: 8px; padding-bottom: 8px; }
.rc-counts { display: flex; gap: 20px; margin: 0; }
.rc-counts div { display: grid; gap: 2px; }
.rc-counts dt { display: flex; align-items: center; gap: 6px; font: 500 11px/1 var(--sans); color: var(--muted); letter-spacing: .04em; text-transform: uppercase; }
.rc-counts dd { margin: 0; font: 500 19px/1.1 var(--sans); letter-spacing: -.02em; }
.rc-counts i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.k-pencil { box-shadow: inset 0 0 0 1.5px var(--graphite); }
.k-ink { background: var(--ink); }
.k-left { background: #1b1c1855; }
.k-bin { background: #fff; box-shadow: inset 0 0 0 1.5px var(--red); border-radius: 30% !important; transform: rotate(20deg); }
.rc-clock { display: grid; gap: 3px; margin-left: auto; text-align: right; font: 500 13px/1.2 var(--sans); color: var(--ink-2); white-space: nowrap; }
.rc-clock b { font-weight: 600; color: var(--ink); }
.rc-clock small { font-size: 11.5px; color: var(--muted); }
/* auto 1fr: when the note under the pair is the widest thing, the spare width goes after the button,
   not between the box and the button */
.rc-find { display: grid; grid-template-columns: auto 1fr; gap: 3px 8px; align-items: center; }
.rc-find .input { width: 200px; height: 36px; border-radius: 999px; font-size: 13px; }
.rc-wave-note { grid-column: 1 / -1; justify-self: end; font: 500 11px/1.2 var(--sans); color: var(--muted); white-space: nowrap; }
.rc-find-open { display: none; width: 40px; height: 40px; border-radius: 50%; place-items: center; box-shadow: inset 0 0 0 1px var(--faint); color: var(--ink); margin-left: auto; }
.rc-find-open svg { width: 18px; height: 18px; }
.rc-find-open[aria-expanded='true'] { box-shadow: inset 0 0 0 1.6px var(--ink); }
/* the key, one line above the crowd */
.rc-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 10px 0 2px; font: 500 12px/1.3 var(--sans); color: var(--muted); }
.rc-key span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rc-key i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* below the crowd */
.rc-below { padding-top: 72px; }
.rc-legend .kicker { margin-bottom: 20px; }
.legend-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.legend-grid figure { margin: 0; }
.legend-art { height: 80px; display: flex; align-items: flex-end; }
.legend-grid figcaption { margin-top: 10px; font: 400 16px/1.42 var(--serif); color: var(--ink-2); }
.legend-grid figcaption b { display: block; font: 600 13px/1.2 var(--sans); color: var(--ink); margin-bottom: 4px; letter-spacing: .01em; }
.rc-more { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 64px; }
.more-card { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: var(--radius); box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow .2s, transform .2s var(--ease); min-height: 150px; }
.more-card:hover { box-shadow: inset 0 0 0 1px var(--ink); transform: translateY(-2px); }
.more-card b { font: 500 21px/1.15 var(--sans); letter-spacing: -.02em; }
.more-card span:last-child { font: 400 15.5px/1.4 var(--serif); color: var(--muted); text-wrap: pretty; }

/* a figure's card (dialog and page) */
.card-page { padding: 30px 28px 40px; }
.figure-page .card-page { max-width: 560px; margin: 40px auto 0; padding: 36px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--rule); }
.card-art { position: relative; display: grid; place-items: center; margin: 18px 0 10px; padding: 16px 0 4px; }
.card-art.is-bin { padding: 40px 0 26px; }
.card-stamp { position: absolute; right: 8px; top: 10px; transform: rotate(-7deg); font: 400 22px/1 var(--hand); padding: 5px 10px 3px; border-radius: 6px; border: 1.6px solid currentColor; }
.s-i, .s-l { color: var(--ink); }
.s-p { color: var(--graphite); }
.s-b { color: var(--red); }
.card-wallet { font-size: 22px; font-weight: 500; letter-spacing: -.02em; margin: 6px 0 0; }
.card-line { font: italic 400 19px/1.4 var(--serif); color: var(--ink-2); margin: 8px 0 20px; }
.card-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.card-facts div { background: #fff; padding: 12px 14px; display: grid; gap: 3px; }
.card-facts span { font: 500 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card-facts b { font: 500 19px/1.2 var(--sans); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.card-facts small { font-size: 12px; color: var(--muted); min-height: 1em; }
.card-sigs { margin-top: 18px; display: grid; gap: 8px; }
.card-row { display: flex; align-items: baseline; gap: 10px; font-size: 14px; }
.card-row > span { width: 78px; flex: none; color: var(--muted); font-size: 12.5px; }
.card-row small { color: var(--muted); margin-left: auto; font-size: 12px; }
.card-muted { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 6px 0 0; }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.card-pose { margin-top: 22px; }
.pose-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pose-btn { width: 44px; height: 54px; border-radius: 10px; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--rule); }
.pose-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }

/* the bin and the roll */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--rule); border-radius: 14px; overflow: hidden; box-shadow: 0 0 0 1px var(--rule); }
.stat-row > div { background: #fff; padding: 18px 20px; display: grid; gap: 8px; }
.stat-row b { font: 500 clamp(26px, 3vw, 36px)/1 var(--sans); letter-spacing: -.035em; }
.ball-grid { list-style: none; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.ball-grid button, .left-list button { width: 100%; display: grid; justify-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 12px; transition: background-color .2s; }
.ball-grid button:hover, .left-list button:hover { background: var(--wash); }
.ball-grid .mono, .left-list .mono { font-size: 12.5px; }
.ball-grid small, .left-list small { color: var(--muted); font-size: 12px; }
.left-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.front-row { display: flex; flex-wrap: wrap; gap: 2px; }
.front-row button { padding: 4px 2px; border-radius: 8px; }
.front-row button:hover { background: var(--wash); }
.table-wrap { margin-top: 48px; overflow-x: auto; }
.register { width: 100%; border-collapse: collapse; font-size: 14px; }
.register th { text-align: left; font: 500 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--rule); }
.register td { padding: 6px 12px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.register tr[data-w] { cursor: pointer; }
.register tr[data-w]:hover td { background: var(--wash); }
.register td svg { width: 22px; height: 28px; }
.roll-tools { display: flex; align-items: center; gap: 14px; margin-top: 48px; }
.roll-tools .input { max-width: 320px; }
.roll-count { font: 500 12.5px/1.2 var(--sans); color: var(--muted); white-space: nowrap; }
.roll-wrap { margin-top: 12px; }
.roll-table td { white-space: nowrap; }
.roll-more { margin: 18px 0 0; }
.roll-more [hidden] { display: none; }
.ball-grid .ball-again { color: var(--red); font-size: 11.5px; }
.ball-grid:not(.is-all) > li:nth-child(n + 61) { display: none; }
@media (max-width: 560px) {
  .ball-grid { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 4px; }
  .ball-grid button { padding: 10px 4px 9px; }
  .ball-grid button > svg { width: 42px; height: 42px; }
}
.tally-cell { color: var(--red); font: 400 18px/1 var(--hand); letter-spacing: 1px; }
.empty-note { display: grid; justify-items: center; text-align: center; padding: 60px 0 20px; }
.empty-note svg { width: 110px; }
.empty-note .note-hand { font-size: 24px; margin: 10px 0 4px; }
.empty-note p { margin: 0; color: var(--muted); font: 400 17px/1.45 var(--serif); max-width: 40ch; }

/* verify */
.verify-card { padding: 28px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--rule); max-width: 760px; }
.verify-bar { height: 4px; border-radius: 4px; background: var(--wash); margin: 22px 0 12px; overflow: hidden; }
.verify-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width .3s var(--ease); }
.verify-status { margin: 0; font-size: 15px; }
.verify-status b { font-weight: 600; }
.verify-status .bad { color: var(--red); }
.verify-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 18px 0 0; }
.verify-facts div { display: grid; gap: 2px; }
.verify-facts dt { font: 500 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.verify-facts dd { margin: 0; font-size: 15px; }
/* the three things checked: the garden chain, the house chain, the house's paper books */
.verify-parts { margin-top: 22px; border-top: 1px solid var(--rule); }
.verify-part { padding: 20px 0 22px; border-bottom: 1px solid var(--rule); }
.verify-part:last-child { border-bottom: 0; padding-bottom: 0; }
.verify-part-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 6px; font: 600 16px/1.3 var(--sans); letter-spacing: -.01em; }
.verify-part-head small { font: 400 13px/1.3 var(--sans); letter-spacing: 0; color: var(--muted); }
.verify-tag { margin-left: auto; font: 500 11px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); }
.verify-part[data-state="busy"] .verify-tag { color: var(--ink-2); }
.verify-part[data-state="ok"] .verify-tag { color: var(--ink); }
.verify-part[data-state="bad"] .verify-tag { color: var(--red); }
.verify-line { margin: 0; max-width: 64ch; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.verify-part[data-state="idle"] .verify-line { color: var(--muted); }
.verify-line b { font-weight: 600; color: var(--ink); }
.verify-line .bad { color: var(--red); }
.verify-more:empty { display: none; }
.verify-more .verify-facts { margin-top: 14px; }
.verify-books { width: 100%; max-width: 520px; margin: 16px 0 0; border-collapse: collapse; font-size: 14px; }
.verify-books th, .verify-books td { padding: 7px 14px 7px 0; border-bottom: 1px solid var(--rule); font-weight: 400; text-align: right; font-variant-numeric: tabular-nums; }
.verify-books th:first-child { text-align: left; color: var(--ink-2); }
.verify-books th:last-child, .verify-books td:last-child { padding-right: 0; }
.verify-books thead th { padding-bottom: 8px; font: 500 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.verify-books tr.is-off th, .verify-books tr.is-off td { color: var(--red); }
.verify-problems { margin: 14px 0 0; padding: 0 0 0 18px; font-size: 14px; line-height: 1.5; color: var(--red); }
.verify-problems li + li { margin-top: 3px; }
@media (max-width: 560px) {
  .verify-card { padding: 20px 18px; }
  .verify-facts { gap: 8px 20px; }
  .verify-books { font-size: 13px; }
  .verify-books th, .verify-books td { padding-right: 8px; }
}

@media (max-width: 1100px) {
  .rc-counts { gap: 14px; }
  .rc-counts .rc-under { display: none; }
  .rc-find .input { width: 150px; }
  .legend-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .rc-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rc-top { grid-template-columns: 1fr; gap: 14px; }
  .rc-wave-note { justify-self: start; white-space: normal; }
  .rc-caption { justify-self: start; }
  .rc-bar-inner { flex-wrap: wrap; gap: 10px 16px; min-height: 0; padding-top: 10px; padding-bottom: 10px; }
  .rc-counts { gap: 12px; width: 100%; justify-content: space-between; }
  .rc-counts dd { font-size: 16px; }
  .rc-counts dt { font-size: 10px; }
  .rc-clock { margin-left: 0; text-align: left; }
  .rc-find { margin-left: auto; }
  .rc-find .input { width: 124px; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .legend-grid { grid-template-columns: 1fr 1fr; }
  .rc-more { grid-template-columns: 1fr; }
  .more-card { min-height: 0; }
  .card-page { padding: 24px 20px 32px; }
  .figure-page .card-page { padding: 24px 18px; margin-top: 16px; }
}
@media (max-width: 560px) {
  /* the key above the crowd does this job on a phone */
  .rc-legend { display: none; }
  .rc-below { padding-top: 40px; }
  .rc-more { margin-top: 0; }
  .roll-table th, .roll-table td { padding: 6px 7px; font-size: 13px; }
  .roll-table .rg-fig { display: none; }
  .roll-tools { flex-wrap: wrap; gap: 8px 12px; }
}
@media (max-width: 420px) {
  /* the bar is one 44px row: four counts and a search icon that opens find and wave */
  .rc-bar-inner { flex-wrap: wrap; gap: 0 10px; min-height: 44px; padding-top: 2px; padding-bottom: 2px; }
  .rc-counts { width: auto; flex: 1; gap: 0; justify-content: space-between; }
  .rc-counts > div:first-child, .rc-counts .rc-under, .rc-counts i { display: none; }
  .rc-counts div { grid-auto-flow: column; align-items: baseline; gap: 5px; }
  .rc-counts dt { font-size: 9.5px; }
  .rc-counts dd { font-size: 15px; }
  .rc-clock { display: none; }
  .rc-find-open { display: grid; }
  .rc-find { display: none; width: 100%; grid-template-columns: minmax(0, 1fr) auto; padding: 6px 0 10px; }
  .rc-bar.is-finding .rc-find { display: grid; }
  .rc-find .input { width: 100%; }
  .rc-head-clock { display: block; }
  .rc-key { gap: 2px 12px; font-size: 11.5px; }
}
@media (max-width: 360px) {
  .roll-table th, .roll-table td { padding: 6px 5px; font-size: 12.5px; }
}
@media (max-width: 360px) {
  .roll-table th, .roll-table td { padding: 6px 4px; }
  .roll-table td.mono { font-size: 12px; }
}
/* the note under find and wave spans both columns; it must not stretch the button */
.rc-find .input, .rc-find .btn { justify-self: start; }
.rc-find .btn { padding: 0 16px; }

.garden-register{padding-block:30px 60px}.garden-register>label,.bin-search>label{display:block;margin-bottom:10px;font-size:13px}.garden-register input,.bin-search input{max-width:520px}.garden-register-list{margin-top:20px}.garden-register-list>button{display:grid;grid-template-columns:70px 1fr 100px 150px;align-items:center;gap:18px;min-height:52px;width:100%;padding:12px 8px;border:0;border-bottom:1px solid var(--rule);background:none;text-align:left;color:inherit;cursor:pointer}.garden-register-list>button:hover{background:#f7f7f5}.register-pager{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:22px}.register-pager span{font-size:13px}.card-progress{padding:18px 0;border-block:1px solid var(--rule);margin-top:20px;font-size:13px;line-height:1.5}.card-progress progress{width:100%;height:5px;accent-color:#777}.card-progress p{margin:10px 0}.bin-search{padding:0 0 24px;width:100%}.bin-search-results{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}.verify-controls{display:flex;flex-wrap:wrap;gap:14px}.verify-heads{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin:18px 0;font-size:13px}.verify-heads code{display:block;overflow-wrap:anywhere;font-size:11px;margin-top:7px}.verify-limit{font-size:13px;line-height:1.6;max-width:850px}.verify .verify-card{padding:24px}body:has(.verify) .page-head{padding-top:32px;padding-bottom:26px}body:has(.verify) .page-head h1{font-size:54px}body:has(.verify) .page-head .lede{font-size:17px;max-width:62ch}body:has(.verify) .page-head .head-art{max-width:130px}
@media(max-width:650px){.garden-register-list>button{grid-template-columns:40px 1fr;gap:8px;font-size:13px}.garden-register-list>button small{grid-column:2}.verify-heads{grid-template-columns:1fr;gap:12px}.verify .verify-card{padding:16px}.verify-controls .btn{font-size:13px}.verify-limit{font-size:12px}.register-pager .btn{padding:10px;font-size:12px}body:has(.verify) .page-head h1{font-size:40px}.card-art{max-height:150px}.card-art>svg{max-height:140px}}
