/* Painted album hardware carries live labels; card faces and the reveal stage stay untouched. */
.workbench {
  --album-control: url('/cards/assets/controls/album-clasp-v1.webp');
  --album-paper: #f5e9cb;
  --album-ink: #25334b;
  --album-focus: #f2bd53;
  --album-skin: var(--album-control);
  --album-height: 56px;
  --album-slice: 0 85 0 190 fill;
}
.workbench.workbench :where(.collector-toolbar nav > button, #reveal-all, #flip, .pagination > button, .inspect-info .actions > button, #binder > .text-button, #club > .text-button, .collection-progress .progress-button, #arcade-link, .poker-handoff > a):not([hidden]) {
  --album-left: calc(var(--album-height) * .863636);
  --album-right: calc(var(--album-height) * .386364);
  --album-edges: 0 var(--album-right) 0 var(--album-left);
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  height: var(--album-height);
  padding: 0 calc(var(--album-right) + 6px) 5px calc(var(--album-left) + 7px);
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: var(--album-ink);
  font: 600 14px/1.2 Bricolage, system-ui, sans-serif;
  letter-spacing: 0;
  text-align: center;
  text-decoration: none;
  text-shadow: none;
  white-space: normal;
  overflow-wrap: normal;
  cursor: pointer;
  touch-action: manipulation;
  transition: none;
  transform: none;
}
.workbench.workbench :where(.collector-toolbar nav > button, #reveal-all, #flip, .pagination > button, .inspect-info .actions > button, #binder > .text-button, #club > .text-button, .collection-progress .progress-button, #arcade-link, .poker-handoff > a):not([hidden])::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 0 solid transparent;
  border-image: var(--album-skin) var(--album-slice);
  border-image-width: var(--album-edges);
  border-image-repeat: stretch;
  pointer-events: none;
}
.workbench.workbench :where(.collector-toolbar nav > button, #reveal-all, #flip, .pagination > button, .inspect-info .actions > button, #binder > .text-button, #club > .text-button, .collection-progress .progress-button, #arcade-link, .poker-handoff > a):not([hidden])::after { content: none; }
.workbench.workbench .collector-toolbar nav > button[aria-current=page] {
  color: #101a32;
  background: none;
  border: 0;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.workbench .collector-toolbar nav > button > span { display: inline-grid; place-items: center; flex: none; min-width: 20px; height: 20px; margin: 0; padding: 0 4px; border: 1px solid #a68c5c; border-radius: 3px; color: #25334b; background: #e4d5b3; font: 600 12px/1 Bricolage, sans-serif; font-variant-numeric: tabular-nums; }
.workbench .collector-toolbar nav { gap: 8px; }
.workbench.workbench :is(.pagination > button, #club > .text-button, #arcade-link) {
  --album-skin: var(--painted-secondary);
  --album-slice: 0 114 0 114 fill;
  --album-left: calc(var(--album-height) * .850746);
  --album-right: var(--album-left);
  --album-edges: 0 var(--album-right) 0 var(--album-left);
  padding-inline: calc(var(--album-left) + 5px);
  color: #fff0ca;
}
.workbench.workbench .collection-progress .progress-confirm {
  --album-skin: var(--painted-upgrade);
  --album-slice: 0 117 0 180 fill;
  --album-left: calc(var(--album-height) * 1.241379);
  --album-right: calc(var(--album-height) * .806897);
  --album-edges: 0 var(--album-right) 0 var(--album-left);
  color: #fff0ca;
  --album-height: 56px;
  padding: 0 calc(var(--album-right) + 5px) 4px calc(var(--album-left) + 5px);
  text-shadow: none;
}
.workbench .collection-progress .progress-tabs { gap: 4px; border: 0; }
.workbench.workbench .collection-progress .progress-tabs .progress-button { margin: 0; }
.workbench.workbench .collection-progress .progress-tabs .progress-button[aria-current=page] {
  color: var(--album-ink);
  background: none;
  border: 0;
  box-shadow: none;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.workbench.workbench :where(.collector-toolbar nav > button, #reveal-all, #flip, .pagination > button, .inspect-info .actions > button, #binder > .text-button, #club > .text-button, .collection-progress .progress-button, #arcade-link, .poker-handoff > a):focus-visible {
  outline: 3px solid var(--album-focus);
  outline-offset: 3px;
}
.workbench .collection-progress .progress-button:focus-visible { outline-color: #1b6d92; }
.workbench.workbench :where(.collector-toolbar nav > button, #reveal-all, #flip, .pagination > button, .inspect-info .actions > button, #binder > .text-button, #club > .text-button, .collection-progress .progress-button, #arcade-link, .poker-handoff > a):disabled {
  opacity: .62;
  filter: saturate(.2);
  cursor: default;
}
.workbench.workbench :where(.collector-toolbar nav > button, #reveal-all, #flip, .pagination > button, .inspect-info .actions > button, #binder > .text-button, #club > .text-button, .collection-progress .progress-button, #arcade-link, .poker-handoff > a):not(:disabled):active {
  translate: 0 1px;
  transform: none;
  filter: brightness(.9);
  box-shadow: none;
}
/* Filter controls are paper labels in the album, not decorative replacement widgets. */
.workbench .filters :is(input:not([type=checkbox]), select) { min-height: 44px; background: #f5e9cb; color: #25334b; border-color: #b29a6d; }
.workbench .filters input::placeholder { color: #596474; opacity: 1; }
.workbench .filters label { color: #e5d5b0; }
.workbench .filters .check { min-height: 44px; }
.workbench .pagination { gap: 8px; flex-wrap: wrap; }
.workbench .pagination > span { flex: 1; text-align: center; }
.workbench #arcade-link { min-height: 44px; font-size: 14px; }
@media (hover: hover) {
  .workbench.workbench :where(.collector-toolbar nav > button, #reveal-all, #flip, .pagination > button, .inspect-info .actions > button, #binder > .text-button, #club > .text-button, .collection-progress .progress-button, #arcade-link, .poker-handoff > a):not(:disabled):hover { background: none; box-shadow: none; filter: brightness(1.08); }
}
@media (max-width: 650px) {
  .workbench .collector-toolbar nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .workbench.workbench .collector-toolbar nav > button { font-size: 14px; --album-height: 48px; }
  .workbench .collector-toolbar nav > button:last-child { grid-column: 1 / -1; }
  .workbench.workbench .inspect-info .actions > button { flex: 1 1 190px; font-size: 14px; }
  .workbench.workbench .collection-progress .progress-tabs .progress-button { flex: 1 1 45%; font-size: 14px; }
  .workbench.workbench .pagination > button { --album-height: 44px; font-size: 14px; }
  .workbench .pagination > span { flex-basis: 100%; order: 3; }
  .workbench #arcade-link { width: 100%; --album-height: 48px; }
}
@media (prefers-reduced-motion: no-preference) {
  .workbench.workbench :where(.collector-toolbar nav > button, #reveal-all, #flip, .pagination > button, .inspect-info .actions > button, #binder > .text-button, #club > .text-button, .collection-progress .progress-button, #arcade-link, .poker-handoff > a) { transition: filter 100ms ease, translate 100ms ease; }
}
@media (forced-colors: active) {
  .workbench.workbench .collector-toolbar nav > button[aria-current=page] { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; box-shadow: none; }
  .workbench.workbench :where(.collector-toolbar nav > button, #reveal-all, #flip, .pagination > button, .inspect-info .actions > button, #binder > .text-button, #club > .text-button, .collection-progress .progress-button, #arcade-link, .poker-handoff > a):not([hidden]) { border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; filter: none; text-shadow: none; }
  .workbench.workbench :where(.collector-toolbar nav > button, #reveal-all, #flip, .pagination > button, .inspect-info .actions > button, #binder > .text-button, #club > .text-button, .collection-progress .progress-button, #arcade-link, .poker-handoff > a):not([hidden])::before { content: none; }
}

/* Icons and counts fit the painted parchment instead of becoming extra headings. */
.workbench.workbench .inspect-info .actions > button { font-weight: 600; font-size: 14px; gap: 6px; }
.workbench.workbench :is(.inspect-info .actions, .pagination) .ui-icon { width: 16px; height: 16px; flex: none; }
.workbench.workbench .collector-toolbar nav > button { min-width: 170px; }
@media(max-width:480px){
 .workbench .collector-toolbar nav { grid-template-columns: minmax(0,1fr); gap: 4px; }
 .workbench.workbench .collector-toolbar nav > button { width:100%;min-width:0;--album-height:44px; }
 .workbench.workbench .inspect-info .actions > button { flex-basis:100%;--album-height:48px; }
 .workbench.workbench .collection-progress .progress-tabs .progress-button { flex-basis:100%; }
}

/* The poker invitation is a real action with the same album hardware. */
.workbench.workbench .poker-handoff > a {
 display:flex; width:min(100%,380px); --album-height:48px; margin-block:10px 18px;
}
