* { box-sizing: border-box; }
body { --accent: #b388ff; margin: 0; background: #101112; color: #f4f1e9; font: 14px system-ui, sans-serif; }
main { max-width: 1320px; margin: auto; padding: 48px 36px 24px; }
header { margin-bottom: 18px; }
.eyebrow { color: var(--accent); letter-spacing: 3px; font-size: 11px; font-weight: 800; }
h1 { font-size: 42px; letter-spacing: -2px; line-height: 1; margin: 12px 0; }
.accent { color: var(--accent); }
.bar { display: flex; align-items: center; justify-content: space-between; margin: 24px 0 12px; }
.bar strong { font-size: 12px; letter-spacing: 2px; }
.row { display: flex; min-height: 106px; border-bottom: 1px solid #3a3c3d; background: #1c1e20; }
.label { width: 86px; flex-shrink: 0; display: grid; place-items: center; color: #141414; font-size: 32px; font-weight: 850; cursor: pointer; }
.zone { flex: 1; display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; align-content: center; min-width: 0; }
.zone.over { background: var(--drop-highlight, #342a47); }
.empty { align-self: center; color: #62666a; margin-left: 12px; font-size: 12px; }
.empty[hidden] { display: none; }
.card { width: 144px; position: relative; cursor: grab; background: #111; border: 2px solid transparent; border-radius: 4px; overflow: hidden; user-select: none; }
.card.selected { border-color: var(--accent); }
.card.dragging { opacity: .65; }
.card img { width: 100%; height: 79px; object-fit: cover; display: block; }
.card .name { padding: 5px 6px; font-size: 11px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { position: absolute; right: 3px; top: 3px; max-width: calc(100% - 6px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: #111d; color: var(--accent); font-size: 8px; padding: 3px; }
.bank { min-height: 125px; background: #191b1c; border: 1px solid #323537; border-radius: 6px; }
button { font: inherit; cursor: pointer; border: 1px solid #333038; background: transparent; color: #aaa5b5; border-radius: 6px; }
button:hover:not(:disabled) { border-color: var(--accent); color: #f4f1e9; }
button:disabled { opacity: .4; cursor: default; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.tools { display: flex; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; gap: 6px; }
.tools button, .menu-heading button { font-size: 11px; padding: 6px 9px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.storage-error { color: #f7bd7a; font-size: 12px; text-align: right; }
dialog { width: min(480px, calc(100% - 32px)); max-height: 80vh; padding: 24px; border: 1px solid #443952; border-radius: 12px; background: #19171e; color: #f4f1e9; }
dialog::backdrop { background: #08060bce; }
.menu-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
h2 { margin: 0; font-size: 22px; letter-spacing: -.5px; }
h3 { color: var(--accent); font-size: 11px; letter-spacing: 2px; text-transform: uppercase; margin: 20px 0 10px; }
dialog p { color: #a4a0ac; font-size: 12px; line-height: 1.6; margin: 12px 0 20px; }
.set-link { display: flex; justify-content: space-between; align-items: center; gap: 16px; color: #f4f1e9; text-decoration: none; border: 1px solid #3b3545; border-radius: 6px; padding: 16px; margin-top: 8px; }
.set-link:hover, .set-link[aria-current] { border-color: var(--accent); background: #282131; }
.set-link small { color: var(--accent); white-space: nowrap; }
@media (max-width: 700px) {
  main { padding: 40px 12px 24px; }
  h1 { font-size: 36px; letter-spacing: -1.5px; }
  .label { width: 52px; }
  .card { width: 112px; }
  .card img { height: 63px; }
}
