/* BINDERS — fatia do styles.59caf61f.css usada só por binders.html, collection.html, detail.html, pastas.html, explore.html.
   GERADO por scripts/split-css.mjs; edite o styles.59caf61f.css e rode de novo.
   Carrega DEPOIS do styles.59caf61f.css: a ordem da cascata é preservada porque os
   seletores mistos vieram junto, na posição original (ver o script). */

.binder-nav {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0 auto 12px; max-width: var(--binder-w);
}

.binder-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--accent);
}

.binder-btn:disabled { opacity: 0.35; cursor: default; }

.binder-page-pick {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 6px;
  height: 40px; padding: 0 12px 0 14px; border-radius: 20px;
  border: 1px solid var(--line); background: var(--panel); color: var(--text); font-weight: 700;
}

.binder-page-pick svg { color: var(--accent); flex: none; }

.binder-page-pick select {
  width: auto; height: 38px; padding: 0 22px 0 2px; border: none; background-color: transparent;
  color: var(--text); font-weight: 800; font-size: 15px; box-shadow: none;
}

.binder-page-total { color: var(--muted); font-size: 13px; white-space: nowrap; }

.binder-rail {
  display: flex; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  margin: 0 auto; max-width: var(--binder-w);
  border-radius: 14px;
}

.binder-rail::-webkit-scrollbar { display: none; }

.binder-page {
  flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: grid; grid-template-columns: repeat(var(--binder-cols, 3), minmax(0, 1fr)); gap: 10px;
  padding: 12px; box-sizing: border-box;
  background: var(--panel-strong); border: 1px solid var(--line); border-radius: 14px;
}

.binder-page + .binder-page { margin-left: 10px; }

.binder-pocket { aspect-ratio: 63 / 88; border-radius: 8px; border: 1px dashed var(--line); min-width: 0; }

.binder-pocket.is-filled { border-style: solid; overflow: hidden; }

.binder-pocket .card-tile { height: 100%; border: none; box-shadow: none; background: transparent; }

.binder-pocket .card-tile.owned { box-shadow: 0 0 0 2px rgba(var(--accent-rgb), 0.7); }

.binder-pocket .card-tile .card-image { padding: 0; height: 100%; }

.binder-pocket .card-tile .image-open { height: 100%; }

.binder-pocket .card-tile .card-image img { height: 100%; width: 100%; object-fit: contain; }

.binder-pocket .tile-info, .binder-pocket .tile-actions, .binder-pocket .tile-qty { display: none; }

.binder-dots { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.binder-dot {
  width: 8px; height: 8px; min-width: 8px; min-height: 8px; padding: 0; border-radius: 50%;
  border: none; background: var(--line); cursor: pointer;
}

.binder-dot[aria-current="page"] { background: var(--accent); }



.binder-shared-info .tag-dot { display: inline-block; vertical-align: -1px; }




.binder-toolbar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: end;
  padding: 16px;
  margin-bottom: 22px;
  background: var(--panel);
  border: 1px solid var(--line);
}

.binder-toolbar input[type="text"] {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.binder-grid-label {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

.binder-grid-label select {
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 0 10px;
}




.binder-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin: 0 0 16px;
}

.binder-new-toggle { gap: 8px; min-height: 44px; padding: 0 18px; border: 0; }

.binder-new-toggle svg { width: 16px; height: 16px; flex: none; }

.binder-new-toggle[aria-expanded="true"] { background: var(--accent-dark); }

.binder-gallery-tools { display: flex; align-items: center; gap: 10px; }

.binder-view-toggle .view-toggle-btn { display: inline-flex; align-items: center; justify-content: center; }

.binder-view-toggle svg { width: 18px; height: 18px; }

.binder-sort-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.binder-sort-label select {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.binder-gallery.is-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}

.binder-gallery.is-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.binder-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: border-color 120ms ease, transform 120ms ease;
}

.binder-card:hover { border-color: var(--accent-dark); transform: translateY(-2px); }

.binder-card.has-color { border-left: 4px solid var(--binder-color, var(--accent)); }



.binder-card-cover {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  padding: 12px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--binder-color, #2b2f38) 88%, #fff), color-mix(in srgb, var(--binder-color, #2b2f38) 82%, #000));
  overflow: hidden;
}

.binder-mini-page {
  height: 100%; aspect-ratio: 63 / 88;
  display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 3), minmax(0, 1fr));
  gap: 3px; padding: 5px;
  border-radius: 4px; background: var(--panel);
}

.binder-mini-cell { min-width: 0; min-height: 0; overflow: hidden; border-radius: 2px; background: var(--panel-strong); }

.binder-mini-cell img { display: block; width: 100%; height: 100%; object-fit: cover; }

.binder-mini-cell.is-tpl img { object-fit: contain; opacity: 0.55; }

.binder-mini-cell.is-free { background: var(--line); }

.binder-card-acts {
  position: absolute; top: 8px; right: 8px;
  display: flex; gap: 6px;
  opacity: 0; transition: opacity 120ms ease;
}

.binder-card:hover .binder-card-acts,
.binder-card:focus-within .binder-card-acts { opacity: 1; }
@media (hover: none) {
 .binder-card-acts { opacity: 1; }
}


.binder-card-act {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; min-height: 32px; padding: 0;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel-strong);
  color: var(--text);
  cursor: pointer;
}

.binder-card-act svg { width: 16px; height: 16px; }
@media (pointer: coarse) {
 .binder-card-act { width: 44px; height: 44px; min-height: 44px; }
}


.binder-card-act.danger { color: #e7796f; }

.binder-card-body { padding: 10px 12px 12px; }

.binder-card-titlerow { display: flex; align-items: center; gap: 8px; justify-content: space-between; }

.binder-card-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1rem; font-weight: 800; color: var(--text); text-decoration: none; }

.binder-card-name:hover { text-decoration: underline; }

.binder-card-type {
  flex: none;
  font-size: 0.66rem; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  background: var(--surface); color: var(--subtle);
  border: 1px solid var(--line);
}

.binder-card-meta {
  display: flex; justify-content: space-between;
  font-size: 0.78rem; color: var(--muted);
  margin: 8px 0 6px;
}



.binder-gallery.is-list .binder-card {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
}

.binder-gallery.is-list .binder-card-cover { aspect-ratio: auto; height: 100%; min-height: 64px; padding: 6px; }

.binder-gallery.is-list .binder-card-body { padding: 10px 56px 10px 14px; }
@media (hover: none) {

  .binder-card-acts { position: static; opacity: 1; justify-content: flex-end; padding: 0 8px 8px; }
  .binder-gallery.is-list .binder-card-acts { grid-column: 1 / -1; }
  .binder-gallery.is-list .binder-card-body { padding-right: 14px; }
}

@media (max-width: 560px) {

  .binder-gallery.is-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .binder-card-cover { padding: 8px; }
  .binder-card-body { padding: 8px 10px 10px; }
  .binder-card-titlerow { flex-wrap: wrap; gap: 4px 6px; }
  .binder-card-meta { flex-direction: column; gap: 2px; margin: 6px 0; font-size: 0.74rem; }
  .binder-gallery-controls { gap: 10px; }
  .binder-new-toggle { flex: 1 1 100%; justify-content: center; }
  .binder-gallery-tools { flex: 1 1 100%; justify-content: space-between; }
  .binder-toolbar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .binder-toolbar input[type="text"],
  .binder-toolbar .binder-grid-label:first-of-type { grid-column: 1 / -1; }
  .binder-grid-label select { width: 100%; }
  .binder-toolbar .primary { grid-column: 1 / -1; }
}

@media (pointer: coarse) {

  .binder-toolbar input[type="text"],
  .binder-grid-label select,
  .binder-sort-label select { font-size: 16px; }
}




.binder-shared-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 16px;
  background: var(--accent-soft);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 10px;
}

.binder-shared-info { display: flex; flex-direction: column; gap: 2px; }

.binder-shared-info strong { font-size: 16px; }

.binder-shared-info span { color: var(--muted); font-size: 13px; }

.binder-shared-banner .primary { text-decoration: none; }





.page-head.binder-headbar { margin-bottom: 18px; }
@media (max-width: 600px) {
 .page-head.binder-headbar { margin-bottom: 10px; }
}


.binder-headbar .lst-title { max-width: 640px; }
@media (pointer: coarse), (max-width: 700px) {

  .binder-headbar h1 input.lst-title { font-size: inherit !important; }
}


.binder-head-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) {

  .binder-head-actions { width: 100%; }
  .binder-head-actions > button { flex: 1 1 0; }
}




.binder-subtitle-input {
  display: block; width: 100%; max-width: 460px; height: auto; min-height: 0;
  margin: 2px 0 4px; padding: 3px 6px;
  font-size: 0.9rem; color: var(--muted);
  background: transparent; border: 1px solid transparent;
}

.binder-subtitle-input:hover,
.binder-subtitle-input:focus { border-color: var(--line); background: var(--panel); outline: none; }


.binder-insights { margin-top: 4px; }

.set-insights-rail .binder-hero { gap: 12px; }

.binder-hero .dash-profile { border: 0; padding: 0; margin: 0; }

.binder-avatar { background: var(--lc, var(--accent)); }

.binder-avatar .dash-avatar-in { width: 44px; height: 44px; color: var(--lc, var(--accent)); }

.binder-avatar .dash-avatar-in svg { width: 24px; height: 24px; }

.binder-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; min-height: 22px; font-size: 13px; color: var(--muted); }

.binder-hero-desc {
  font-size: 13px; color: var(--muted);
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}

.binder-hero .dash-stat-money { margin: 0; padding: 0; border: 0; }

.binder-hero .dash-stat-money .dash-stat-txt { flex: 1 1 auto; min-width: 0; }

.binder-hero .dash-stat-val { font-size: 22px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }



.binder-hero .collection-toolbar-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin: auto 0 0; width: auto; }

.binder-hero .binder-export-img { padding: 0 14px; }

.binder-del-btn:hover { border-color: var(--accent); color: var(--accent); }
@media (max-width: 720px) {

  

  .binder-hero .collection-toolbar-actions .binder-export-img { flex: 1 1 100%; justify-content: center; }
}




.binder-values,
.binder-overview.is-sale { grid-template-columns: minmax(0, 1fr); }




.binder-panel { margin: 0 0 18px; padding: 14px 16px 16px; border: 1px solid var(--line); background: var(--panel); }

.binder-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

.binder-panel-head h2 { margin: 0; font-size: 16px; }

.binder-panel-head .icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 42px; min-width: 42px; padding: 0; }

.binder-panel-head .icon-btn svg { width: 18px; height: 18px; }

.binder-panel .binder-settings { margin: 0; padding: 0; border: 0; background: none; }




.binder-settings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.binder-settings-section h4 {
  margin: 0 0 10px;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--subtle);
}

.binder-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
}

.binder-field input[type="text"],
.binder-field input[type="number"],
.binder-field select {
  min-height: 38px;
  padding: 0 10px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
}

.binder-field input[type="color"] {
  width: 100%;
  min-height: 38px;
  padding: 2px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.binder-field-row {
  display: flex;
  gap: 8px;
  align-items: end;
  flex-wrap: wrap;
}

.binder-field-narrow { flex: 1 1 90px; margin-bottom: 0; }



.binder-print-settings { display: block; }

.binder-print {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.binder-print h4 { margin: 0; }

.binder-print-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}

.binder-print-label {
  flex: 0 0 auto;
  min-width: 62px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--subtle);
}

.binder-print-layouts,
.binder-print-opts {
  display: flex;
  flex-flow: row wrap;
  gap: 8px 16px;
  margin: 0;
}

.binder-print-opt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}



.binder-print-opt input[type="radio"],
.binder-print-opt input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  flex: none;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.binder-print-go { align-self: flex-start; }


.binder-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 10px;
}



.binder-book { margin-top: 6px; }

.binder-book-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }

.binder-book-bar .binder-page-pick { margin: 0; }

.binder-book-bar .binder-page-pick svg { width: 16px; height: 16px; }

.binder-book-tools { display: flex; flex-wrap: wrap; gap: 8px; }

.binder-book-tools button { display: inline-flex; align-items: center; gap: 7px; }

.binder-book-tools svg { width: 16px; height: 16px; flex: none; }



.binder-page-remove { color: #ff6b5e; }

[data-theme="light"] .binder-page-remove { color: #bb3a33; }

.binder-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "prev book next" ". dots .";
  align-items: center;
  gap: 16px 18px;
}

.binder-stage > .binder-spread { grid-area: book; justify-self: center; }

.binder-stage > .is-prev { grid-area: prev; }

.binder-stage > .is-next { grid-area: next; }

.binder-stage > .binder-dots { grid-area: dots; margin: 0; }

.binder-flip { width: 52px; min-width: 52px; height: 52px; min-height: 52px; }

.binder-flip svg { width: 24px; height: 24px; }

.binder-spread {
  --capa: var(--binder-color, #2b2f38);
  --bolso: clamp(92px, calc((100vh - 250px - (var(--rows, 3) - 1) * 10px) / var(--rows, 3) * 63 / 88), 250px);
  --folha: calc(var(--cols, 3) * var(--bolso) + (var(--cols, 3) - 1) * 10px + 30px);
  display: flex;
  max-width: 100%;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--capa) 88%, #fff), color-mix(in srgb, var(--capa) 82%, #000));
}

.binder-leaf {
  flex: 0 1 var(--folha);
  width: var(--folha);
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 14px 8px;
  border: 1px solid color-mix(in srgb, var(--capa) 40%, var(--line));
  border-radius: 6px;
  background: var(--panel);
}



.binder-leaf:first-child { background-image: linear-gradient(to left, rgba(0, 0, 0, 0.1), transparent 26px); }

.binder-leaf:last-child { background-image: linear-gradient(to right, rgba(0, 0, 0, 0.1), transparent 26px); }

.binder-leaf-num { font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--subtle); }

.binder-leaf:last-child .binder-leaf-num { text-align: right; }



.binder-leaf.is-blank { align-items: center; justify-content: center; background-color: var(--panel-strong); }

.binder-leaf-add {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 0 16px; border: 1px dashed var(--line); background: transparent;
  color: var(--muted); font-weight: 700;
}

.binder-leaf-add:hover { border-color: var(--accent); color: var(--accent); }

.binder-leaf-add svg { width: 18px; height: 18px; }



.binder-spine {
  flex: 0 0 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: space-evenly;
  background: color-mix(in srgb, var(--capa) 70%, #000);
}

.binder-spine span {
  width: 52px; height: 12px; border-radius: 6px;
  background: linear-gradient(#f1f3f6, #9aa2ad 55%, #d7dbe1);
  border: 1px solid rgba(0, 0, 0, 0.35);
}



.binder-book.is-shared { display: grid; justify-items: center; gap: 22px; }

.binder-shared-head .binder-shared-cta, .binder-shared-banner .binder-shared-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; text-decoration: none; }



.binder-book.is-fichario { margin-top: 6px; }

.binder-fichario .binder-pocket { border: 0; }

.binder-fichario .binder-pocket > .binder-slot { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 8px; }

.binder-fichario .binder-slot-actions,
.binder-fichario .binder-slot-want,
.binder-fichario .binder-slot-flag,
.binder-fichario .binder-slot-move { display: none; }



.binder-fichario .binder-slot-empty > span:not(.binder-slot-plus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.binder-fichario .binder-slot-price { padding: 4px 6px; font-size: 11px; }

.binder-fichario .binder-slot-tplname { font-size: 11px; }

.binder-book.is-fichario .binder-book-tools { justify-content: center; margin-top: 16px; }




.binder-sheet-wrap { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; }

.binder-sheet-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.5); }

.binder-sheet {
  position: relative; width: min(560px, 100%);
  max-height: 88vh; max-height: 88dvh; overflow-y: auto; overscroll-behavior: contain;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
  background: var(--panel); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 16px 16px 0 0; box-shadow: var(--shadow-pop);
}

.binder-sheet-head { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 14px; align-items: start; margin-bottom: 14px; }

.binder-sheet-thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 63 / 88; overflow: hidden; border-radius: 6px; background: var(--panel-strong); }

.binder-sheet-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }

.binder-sheet-thumb.not-owned img { filter: grayscale(1); opacity: 0.62; }

.binder-sheet-id { display: flex; flex-direction: column; gap: 5px; min-width: 0; padding-top: 2px; }

.binder-sheet-id strong { font-size: 17px; line-height: 1.2; overflow-wrap: anywhere; }

.binder-sheet-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

.binder-sheet-price { color: var(--text); font-weight: 800; }

.binder-sheet-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
}

.binder-sheet-x svg { width: 18px; height: 18px; }

.binder-sheet-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.binder-sheet:focus { outline: none; }

.binder-sheet-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 4px 10px; font-size: 14px; font-weight: 700; line-height: 1.15; }

.binder-sheet-btn svg { width: 18px; height: 18px; flex: none; }

.binder-sheet-btn span { min-width: 0; text-align: left; overflow-wrap: anywhere; }

.binder-sheet-btn:disabled { opacity: 0.4; }

.binder-sheet-own.is-on { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-soft); }

.binder-sheet-want.is-on { border-color: #e2445c; color: #e2445c; }

.binder-slot {
  position: relative;
  

  aspect-ratio: 63 / 88;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.binder-slot-empty {
  border-style: dashed;
  color: var(--subtle);
  gap: 6px;
  font-size: 0.85rem;
}



[data-theme="light"] .binder-slot-empty { background: #e3e6eb; }

.binder-slot-filled {
  cursor: grab;
}



.binder-slot.not-owned .binder-slot-media {
  filter: grayscale(1);
  opacity: 0.62;
}



.binder-slot-actions {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.binder-slot:hover .binder-slot-actions,
.binder-slot:focus-within .binder-slot-actions {
  opacity: 1;
  pointer-events: auto;
}



.binder-slot-move {
  display: none;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.binder-slot-move [data-slot-move] {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 44px;
  font-size: 22px;
  line-height: 1;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  opacity: 0.88;
}
@media (hover: none) {

  .binder-slot-actions {
    opacity: 1;
    pointer-events: auto;
  }
  

  .binder-slot .binder-slot-want,
  .binder-slot .binder-slot-flag {
    opacity: 1;
  }
  .binder-slot-move { display: flex; }
}


.binder-slot-own,
.binder-slot-info {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.binder-slot-own.owned {
  color: var(--accent);
  border-color: var(--accent-dark);
}

.binder-slot-own { display: inline-flex; align-items: center; gap: 5px; }

.binder-slot-own svg { width: 14px; height: 14px; flex: none; }

.binder-slot-move [data-slot-move] svg { width: 20px; height: 20px; }
@media (max-width: 560px) {

  .binder-slot-actions { bottom: 6px; gap: 4px; }
  .binder-slot-own, .binder-slot-info { padding: 7px 9px; font-size: 12px; }
  .binder-slot-own .binder-own-txt { display: none; }
}




.binder-slot-flag {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 3;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.binder-slot:hover .binder-slot-flag,
.binder-slot:focus-within .binder-slot-flag {
  opacity: 1;
}

.binder-slot-dragging {
  opacity: 0.4;
  cursor: grabbing;
}

.binder-slot-dragover {
  outline: 2px dashed var(--accent);
  outline-offset: -2px;
}

.binder-slot-plus {
  display: inline-flex;
  color: var(--accent);
}

.binder-slot-plus svg { width: 26px; height: 26px; }

.binder-slot-media {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f1116;
}

.binder-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 140ms ease;
}



.binder-slot:hover .binder-slot-img,
.binder-slot:focus-within .binder-slot-img {
  filter: brightness(0.8);
}

.binder-slot-free {
  padding: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}



.binder-slot-template {
  border-style: dashed;
  gap: 4px;
  padding: 8px;
  text-align: center;
}

.binder-slot-template:hover {
  border-color: var(--accent-dark);
  background: var(--panel);
}

.binder-slot-tplnum {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--subtle);
  letter-spacing: 0.03em;
}

.binder-slot-sprite {
  width: 72%;
  max-width: 110px;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  image-rendering: auto;
  filter: grayscale(0.25) opacity(0.92);
}

.binder-slot-template:hover .binder-slot-sprite { filter: none; }

.binder-slot-tplname {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.15;
}

.binder-slot-price {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 7px 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold);
  background: rgba(8, 10, 14, 0.82);
  text-align: left;
}




.binder-editor-panel {
  display: block;
  width: min(840px, 100%);
  

  max-height: calc(100vh - 56px);
  max-height: calc(100dvh - 56px);
  overflow: auto;
  overscroll-behavior: contain;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.binder-editor-body h2 {
  margin: 0 0 14px;
  font-size: 1.25rem;
}

.binder-editor-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.binder-editor-tabs .chip.active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.3);
}

.binder-editor-search,
.binder-editor-sale input,
.binder-editor-sale select,
.binder-editor-sort select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}



.binder-editor-searchbar {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.binder-editor-searchbar .binder-editor-search { flex: 1 1 220px; }

.binder-editor-sort {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 0 0 auto;
}

.binder-editor-sort > span {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--subtle);
}

.binder-editor-sort select { min-width: 190px; }

.binder-editor-game select { min-width: 170px; }
@media (max-width: 560px) {

  .binder-editor-searchbar .binder-editor-search { flex-basis: 100%; }
  .binder-editor-sort { flex: 1 1 0; min-width: 0; }
  .binder-editor-sort select { min-width: 0; width: 100%; }
}


.binder-editor-sale label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}



.binder-editor-count { margin: 10px 0 0; min-height: 1em; font-size: 0.78rem; color: var(--muted); }

.binder-editor-count:empty { display: none; }

.binder-editor-results {
  margin-top: 8px;
  max-height: 440px;
  overflow: auto;
  overscroll-behavior: contain;
}

.binder-editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 10px;
}

.binder-editor-results .load-more { margin: 12px auto 4px; }

.binder-result {
  flex-direction: column;
  padding: 6px;
  height: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  gap: 4px;
}

.binder-result.selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent);
}

.binder-result-media {
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 7;
  display: block;
  border-radius: 5px;
  overflow: hidden;
}

.binder-result-badge {
  position: absolute;
  top: 4px;
  left: 4px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.binder-pick-info {
  align-self: center;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
}

.binder-result-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.binder-result-label {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--muted);
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}



.binder-result-flag {
  position: absolute;
  top: 4px;
  right: 4px;
  display: inline-flex;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.35);
}

.binder-result-flag .card-flag {
  width: 22px;
  height: 15px;
}



.binder-result-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 16px;
}

.binder-result-price {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--money);
}

.binder-result-price-none {
  color: var(--subtle);
  font-weight: 600;
}

.binder-editor-hint {
  grid-column: 1 / -1;
  font-size: 0.8rem;
  color: var(--subtle);
  margin: 6px 0;
}

.binder-editor-selected {
  margin: 12px 0 0;
  padding: 8px 10px;
  background: var(--accent-soft);
  border-radius: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.binder-editor-sale {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

.binder-editor-note {
  grid-column: 1 / -1;
}

.binder-editor-footer {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
@media (max-width: 560px) {

  .binder-editor-sale {
    grid-template-columns: 1fr;
  }
}





.binder-slot-want {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.binder-slot:hover .binder-slot-want,
.binder-slot-want.wanted {
  opacity: 1;
}

.binder-slot-want.wanted {
  color: #ff5d73;
}
@media (max-width: 600px) {

  

  .binder-nav { gap: 6px; }
  .binder-btn { width: 36px; min-width: 36px; height: 36px; min-height: 36px; }
  .binder-page-pick { margin: 0 2px; padding: 0 8px 0 10px; height: 36px; }
  .binder-page-pick select { height: 34px; font-size: 14px; padding-right: 20px; }
  .binder-page { padding: 8px; gap: 6px; }
}
