#tool .zt-ux-presets button[aria-pressed="true"] { background: var(--go); }
.tally-panel { padding: 0; border: 0; }
.tally-pad {
  width: 100%;
  min-height: clamp(13rem, 43svh, 29rem);
  border: 1px solid var(--ws-line-strong);
  border-radius: 14px;
  padding: 16px;
  touch-action: manipulation;
  user-select: none;
}
.tally-pad:active { filter: brightness(.94); }
.tally-pad-content { display: grid; gap: 4px; place-items: center; }
#tally-name { font-size: 1rem; }
#tally-count {
  font: 700 clamp(2.75rem, 10vw, 7rem)/1.1 var(--font-prose);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
#tally-action { font-size: 1.125rem; }
.tally-options, .tally-actions { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.tally-options select { min-height: 44px; font-size: 1rem; }
.tally-actions button, .tally-panel .zt-next a { min-height: 44px; }
.tally-panel .zt-explain { margin: 8px 0 0; }
.tally-keyboard { margin: 2px 0 12px; }

.tally-rename { max-width: 12rem; }
.tally-rename input { width: 100%; min-height: 44px; }
#tally-name { max-width: 100%; overflow-wrap: anywhere; }
.tally-panel:is(:fullscreen, .zt-full-window) {
  background: var(--ws);
  padding: clamp(8px, 2vw, 24px);
  overflow: auto;
}
.tally-panel:is(:fullscreen, .zt-full-window) .tally-pad { min-height: max(9rem, calc(100dvh - 12rem)); }
.tally-panel:is(:fullscreen, .zt-full-window) .zt-next { display: none; }
