/* Staff panel. Colors come from the game's reset.css tokens. */

body { min-height: 100vh; background: radial-gradient(ellipse at top, #16243f, var(--bg) 70%); color: var(--text); font-family: 'Inter', system-ui, sans-serif; }

/* ---------------------------------------------------------------- shell */
.adm-top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line);
}
.adm-logo { font-family: var(--pixel); font-size: 1.3rem; font-weight: 700; color: var(--text); text-decoration: none; }
.adm-logo span { color: #a86bff; }
.adm-logo small { font-size: 0.8rem; color: var(--muted); margin-left: 6px; }
.adm-me { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; }

.adm-nav {
  display: flex; gap: 4px; padding: 8px 20px; overflow-x: auto;
  background: #101a2e; border-bottom: 1px solid var(--line);
}
.adm-nav a {
  flex: none; padding: 7px 14px; border-radius: 8px; border: 1px solid transparent;
  font-family: var(--pixel); font-size: 0.85rem; color: var(--muted); text-decoration: none;
}
.adm-nav a:hover { background: var(--card); color: var(--text); }
.adm-nav a.active { background: #1f3460; border-color: var(--line); color: var(--accent); }

.adm-main { max-width: 1280px; margin: 0 auto; padding: 20px; }
.adm-head { margin-bottom: 16px; }
.adm-head h1 { font-family: var(--pixel); font-size: 1.6rem; }
.adm-main h2 { font-family: var(--pixel); font-size: 1.15rem; margin: 20px 0 10px; }
.adm-main h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin: 16px 0 6px; }
.adm-card h2:first-child { margin-top: 0; }

.adm-gate { max-width: 420px; margin: 80px auto; text-align: center; display: grid; gap: 14px; justify-items: center; }
.adm-gate h1 { font-family: var(--pixel); font-size: 1.8rem; }

/* ---------------------------------------------------------------- building blocks */
.adm-muted { color: var(--muted); font-size: 0.85rem; }
.adm-error { color: #ff7a8a; }
.pos { color: var(--green); }
.neg { color: #ff7a8a; }

.adm-card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin-top: 12px; }

.adm-row { display: flex; align-items: center; gap: 8px; }
.adm-row.wrap { flex-wrap: wrap; }
.adm-row.between { justify-content: space-between; }

.adm-btn {
  padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card-2); color: var(--text); font: 600 0.85rem 'Inter', sans-serif; cursor: pointer; text-decoration: none;
}
.adm-btn:hover:not(:disabled) { filter: brightness(1.15); }
.adm-btn:disabled { opacity: 0.45; cursor: default; }
.adm-btn.primary { background: #d93a52; border-color: #8e1d30; color: #fff; }
.adm-btn.danger { background: #3a1c2a; border-color: #6b2b40; color: #ffb3c0; }
.adm-btn.warn { background: #3a2f12; border-color: #7a5d16; color: #ffe08a; }
.adm-btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.adm-btn.tiny { padding: 2px 6px; font-size: 0.8rem; }

.adm-input {
  background: #0b1424; border: 1px solid var(--line); border-radius: 8px;
  color: var(--text); padding: 7px 10px; font: inherit; font-size: 0.9rem; min-width: 220px;
}
textarea.adm-input { width: 100%; resize: vertical; }
.adm-input.small { min-width: 0; width: 110px; }
select.adm-input.small { width: auto; }
.adm-input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.adm-input.bad { border-color: var(--red); }
.adm-check { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; cursor: pointer; }

.adm-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.adm-chip { padding: 5px 12px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; cursor: pointer; }
.adm-chip.active { background: var(--red); border-color: var(--red); color: #fff; }

.adm-role { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; vertical-align: middle; background: #2a3550; color: var(--muted); }
.adm-role.tutor { background: #163a2a; color: #6dff8b; }
.adm-role.admin { background: #3a1c2a; color: #ff8fa3; }

.adm-tags { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.adm-tag { padding: 1px 7px; border-radius: 6px; font-size: 0.72rem; font-weight: 700; }
.adm-tag.bad { background: #4a1a26; color: #ff8fa3; }
.adm-tag.warn { background: #3a2f12; color: #ffe08a; }
.adm-tag.gold { background: #3d3210; color: var(--accent); }

/* ---------------------------------------------------------------- tiles */
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.adm-tile { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; display: grid; gap: 4px; }
.adm-tile span { color: var(--muted); font-size: 0.8rem; }
.adm-tile b { font-family: var(--pixel); font-size: 1.5rem; }
.adm-tile.good b { color: var(--green); }
.adm-tile.gold b { color: var(--accent); }
.adm-tile.bad b { color: #ff7a8a; }
.adm-tile.warn b { color: #ffb84a; }

/* ---------------------------------------------------------------- tables */
.adm-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.adm-table th { text-align: left; padding: 8px 10px; background: #101a2e; color: var(--muted); font-weight: 600; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
.adm-table td { padding: 8px 10px; border-top: 1px solid #22355a; vertical-align: middle; }
.adm-table tr.clickable { cursor: pointer; }
.adm-table tr.clickable:hover td { background: #1f3460; }
.adm-table.compact td, .adm-table.compact th { padding: 4px 6px; }
.adm-table.compact .adm-input.small { width: 90px; }

.adm-bar { position: relative; width: 160px; height: 16px; background: #0b1424; border-radius: 4px; overflow: hidden; }
.adm-bar i { position: absolute; inset: 0 auto 0 0; background: #a86bff; }
.adm-bar span { position: relative; font-size: 0.7rem; padding-left: 6px; }

.adm-pre { max-width: 520px; max-height: 300px; overflow: auto; background: #0b1424; padding: 8px; border-radius: 6px; font-size: 0.75rem; }

/* ---------------------------------------------------------------- players */
.adm-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 12px; }
.adm-split:has(.adm-drawer:not([hidden])) { grid-template-columns: minmax(0, 1fr) 440px; }
.adm-drawer { background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 16px; align-self: start; position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; }
.adm-drawer h2 { margin: 0; }
.adm-facts { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 0.85rem; margin: 10px 0; }
.adm-facts dt { color: var(--muted); }
.adm-team { display: flex; flex-wrap: wrap; gap: 6px; }
.adm-mon { padding: 3px 8px; border-radius: 6px; background: #0b1424; font-size: 0.78rem; }
.adm-mon.shiny { color: var(--accent); }
.adm-log { list-style: none; display: grid; gap: 4px; font-size: 0.8rem; }

/* ---------------------------------------------------------------- items */
.adm-items { display: grid; gap: 6px; margin: 12px 0; }
.adm-item { display: grid; grid-template-columns: 36px 1fr auto auto auto; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; }
.adm-item img { width: 32px; height: 32px; image-rendering: pixelated; object-fit: contain; }
.adm-item-name { display: grid; }

/* ---------------------------------------------------------------- balance */
.adm-sticky { position: sticky; top: 0; z-index: 2; background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.adm-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.adm-field { display: grid; gap: 4px; align-content: start; padding: 10px; border-radius: 8px; border: 1px solid #22355a; background: #15233d; }
.adm-field.changed { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.adm-field-head { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 0.88rem; }
.adm-field:has(table) { grid-column: 1 / -1; }
.adm-map { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-map label { display: grid; gap: 2px; font-size: 0.75rem; color: var(--muted); }
.adm-map .adm-input.small { width: 96px; }

/* ---------------------------------------------------------------- grants (player drawer) */
.adm-grants { display: grid; gap: 8px; }
.adm-grants h2 { margin: 0; }
.adm-grants h3 { margin: 8px 0 0; }
.adm-grants .adm-input:not(.small) { min-width: 0; flex: 1; }
.adm-mons-edit { display: grid; gap: 4px; max-height: 260px; overflow-y: auto; }
.adm-mons-edit .adm-mon { flex: 1; }
.adm-mons-edit .adm-input.small { width: 80px; }

/* ---------------------------------------------------------------- pokemon */
.adm-mons td { white-space: nowrap; }
.adm-mons td:first-child { width: 44px; }
.adm-mon-head { gap: 16px; margin: 12px 0; }
.adm-mon-head h1 { font-family: var(--pixel); font-size: 1.6rem; }
.adm-tag-inline { margin-left: 8px; vertical-align: middle; font-family: 'Inter', sans-serif; }
.adm-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.adm-stat { display: grid; gap: 3px; padding: 8px 10px; border-radius: 8px; border: 1px solid #22355a; background: #15233d; font-size: 0.8rem; color: var(--muted); }
.adm-stat .adm-input.small { width: 100px; }
.adm-stat.changed { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.adm-moves .adm-input:not(.small), .adm-loot .adm-input:not(.small) { min-width: 180px; }
.adm-moves select.adm-input.small { min-width: 116px; }
.adm-gap { margin-top: 10px; }
.adm-gap > .adm-btn { flex: none; white-space: nowrap; }

/* ---------------------------------------------------------------- toast */
.adm-toast {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 50;
  background: #163a2a; border: 1px solid #2f7a4f; color: #c9ffd8; padding: 10px 18px; border-radius: 10px; font-size: 0.9rem;
}
.adm-toast.bad { background: #3a1c2a; border-color: #6b2b40; color: #ffc2cc; }

@media (max-width: 900px) {
  .adm-split:has(.adm-drawer:not([hidden])) { grid-template-columns: minmax(0, 1fr); }
  .adm-item { grid-template-columns: 32px 1fr auto; }
  .adm-input { min-width: 0; }
}

/* rarity tint on item rows (colors in /static/css/rarity.css) */
.adm-item[class*='rar-'] { border-left: 4px solid var(--rar); background: linear-gradient(90deg, var(--rar-glow), var(--card) 40%); }
.adm-item .rar-text { color: var(--rar); }
.adm-chips .rar-tag { font-size: 0.75rem; padding: 3px 10px; }

/* player sheet and security (views/player-sheet.js, views/security.js) */
.adm-sheet-facts { grid-template-columns: repeat(auto-fill, minmax(110px, 150px) minmax(170px, 1fr)); }
.adm-pks { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-pk { display: flex; align-items: center; gap: 8px; padding: 6px 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; min-width: 200px; }
.adm-pk.shiny { border-color: var(--accent); }
.adm-sumgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-bottom: 12px; }
.adm-sumgrid h3 { margin: 0 0 6px; }
.adm-alert { border-color: #ff7a8a; }
.adm-link { cursor: pointer; text-decoration: underline dotted; }
.small { font-size: 0.8rem; }
.adm-check-ok { margin: 4px 0 12px; }
.adm-chatline { white-space: pre-wrap; word-break: break-word; }
.adm-around td { background: rgba(255,255,255,0.03); }
.adm-hl { background: rgba(255, 210, 80, 0.12); border-radius: 4px; }
.adm-barcell { position: relative; display: inline-flex; align-items: center; min-width: 120px; gap: 6px; }
.adm-bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--accent); min-width: 2px; max-width: 80px; }
/* pokémon in logs and lists: sprite + name (species.js monChip) */
.adm-monchip { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.adm-monchip > :first-child { flex: none; }
.adm-monchip.shiny b { color: #ffd75e; }
.adm-mon-noart { display: inline-block; width: 24px; height: 24px; border-radius: 50%; background: #1b2a48; }
/* the player's pokémon (player-sheet.js) */
.adm-pks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin-top: 8px; }
.adm-pk { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; align-items: center; padding: 8px 10px; min-width: 0; }
.adm-pk.down { opacity: 0.65; }
.adm-pk-art { display: flex; align-items: center; justify-content: center; height: 64px; border-radius: 10px; background: radial-gradient(circle at 50% 70%, #2a4170, #0b1424 70%); }
.adm-pk.shiny .adm-pk-art { background: radial-gradient(circle at 50% 70%, #6b5520, #0b1424 70%); }
.adm-pk-info { display: grid; gap: 3px; min-width: 0; }
.adm-pk-info > b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-pk-slot { position: absolute; top: 6px; left: 6px; z-index: 1; min-width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; font-size: 0.7rem; font-weight: 800; background: var(--red, #d93a52); color: #fff; }
.adm-tags .tag { font-size: 0.6rem; padding: 1px 5px; border-radius: 4px; color: #fff; }
/* pokémon type colors (the same as the game, css/layout.css) */
.tag-level { background: var(--red); font-family: var(--pixel); font-size: 0.8rem; }
.tag-fire { background: #e25822; }
.tag-water { background: #3b82f6; }
.tag-grass { background: #22a24a; }
.tag-electric { background: #eab308; color: #000; text-shadow: none; }
.tag-normal { background: #6b7280; }
.tag-fighting { background: #b91c1c; }
.tag-poison { background: #7c3aed; }
.tag-ground { background: #92400e; }
.tag-flying { background: #60a5fa; }
.tag-psychic { background: #ec4899; }
.tag-bug { background: #65a30d; }
.tag-rock { background: #78716c; }
.tag-ghost { background: #581c87; }
.tag-dragon { background: #4f46e5; }
.tag-dark { background: #3f3a36; }
.tag-steel { background: #64748b; }
.tag-ice { background: #22b8cf; }
.tag-fairy { background: #e879b9; }
.tag-neutral { background: #9ca3af; }
.tag-common { background: #6b7280; }
.tag-uncommon { background: #22a24a; }
.tag-rare { background: #3b82f6; }
.tag-epic { background: #7c3aed; }
.tag-legendary { background: #eab308; color: #000; text-shadow: none; }
.tag-mythic { background: var(--red); }
/* account log summary: in/out by source (views/account-log.js) */
.adm-flows { display: grid; grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); gap: 12px; }
.adm-flows h3 { margin: 0 0 6px; }
.adm-flows h4 { margin: 10px 0 4px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.adm-table.compact td, .adm-table.compact th { padding: 4px 8px; }
.adm-total td { font-weight: 700; border-top: 1px solid var(--line); }
.adm-flowparts { display: flex; flex-wrap: wrap; gap: 4px; }
.adm-tag-inline { display: inline-flex; gap: 4px; align-items: center; padding: 1px 7px; border-radius: 6px; background: #0b1424; border: 1px solid var(--line); font-size: 0.8rem; }
/* the bag in the player sheet: pockets of item slots (player-sheet.js) */
button.adm-pk { font: inherit; color: inherit; text-align: left; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
button.adm-pk:hover { border-color: #4a6fb5; }
.adm-pk.traded { box-shadow: inset 3px 0 0 #4aa3ff; }
.adm-bag { display: grid; gap: 12px; }
.adm-pocket { padding: 10px 12px; border-radius: 12px; background: linear-gradient(180deg, #13213d, #0b1424); border: 1px solid var(--line); }
.adm-pocket h4 { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 0.85rem; }
.adm-pocket h4 img { width: 20px; height: 20px; image-rendering: pixelated; object-fit: contain; }
.adm-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.adm-slot {
  position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 4px 4px; border-radius: 10px; cursor: pointer;
  font: inherit; color: inherit; background: radial-gradient(circle at 50% 35%, var(--rar-glow, #ffffff10), #070e1b 75%);
  border: 1px solid color-mix(in srgb, var(--rar, #a3adbf) 45%, transparent);
}
.adm-slot:hover { border-color: var(--rar, #a3adbf); transform: translateY(-1px); }
.adm-slot img { width: 36px; height: 36px; image-rendering: pixelated; object-fit: contain; }
.adm-slot-noicon { width: 36px; height: 36px; border-radius: 50%; background: #1b2a48; }
.adm-slot-n { position: absolute; top: 4px; right: 6px; font-size: 0.7rem; font-weight: 800; text-shadow: 0 1px 2px #000; }
.adm-slot-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.68rem; color: var(--rar, #c9d3e8); }
/* the trace side panel (trace.js) */
.adm-trace-layer { position: fixed; inset: 0; z-index: 50; background: #050a149c; display: flex; justify-content: flex-end; }
.adm-trace { width: min(560px, 100%); height: 100%; overflow-y: auto; padding: 16px 18px; background: var(--bg, #0b1220); border-left: 1px solid var(--line); box-shadow: -20px 0 50px #000a; }
.adm-trace h2 { margin: 0; }
.adm-trace h4 { margin: 14px 0 6px; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
.adm-trace-head { display: flex; gap: 12px; align-items: center; margin: 10px 0; }
.adm-trace-head h3 { margin: 0; }
.adm-origin p { margin: 0; }
.adm-timeline { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.adm-timeline li { position: relative; display: grid; gap: 2px; font-size: 0.88rem; }
.adm-timeline li::before { content: ''; position: absolute; left: -21px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: #4a6fb5; }
.adm-timeline li.ev-in::before { background: #4ade80; }
.adm-timeline li.ev-out::before { background: #ff7a8a; }
.adm-timeline li.ev-evolve::before { background: #c08bff; }
.adm-linkbtn { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
/* sub-tabs (dom.js subTabs): a quieter row than the main chips */
.adm-subwrap { display: grid; gap: 10px; margin-top: 4px; }
.adm-subtabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); }
.adm-subtab {
  padding: 7px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none;
  color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer;
}
.adm-subtab:hover { color: var(--text, #e8eefc); }
.adm-subtab.active { color: var(--text, #e8eefc); border-bottom-color: var(--red, #d93a52); font-weight: 600; }
.adm-subbody > div > h2:first-child { margin-top: 0; }
.adm-inout { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.adm-inout > .adm-card { margin-top: 0; }
.adm-pocket-tab { display: inline-flex; align-items: center; gap: 5px; }
.adm-pocket-tab img { width: 18px; height: 18px; image-rendering: pixelated; object-fit: contain; }
/* the menu on the side on a computer (on a phone it stays a scrolling row at the top) */
.adm-nav a { display: inline-flex; align-items: center; gap: 8px; }
.adm-nav a img { width: 20px; height: 20px; object-fit: contain; image-rendering: pixelated; flex: none; }
@media (min-width: 901px) {
  body { display: grid; grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .adm-top { grid-column: 1 / -1; }
  .adm-nav {
    flex-direction: column; gap: 2px; padding: 12px 10px; overflow: visible;
    border-bottom: 0; border-right: 1px solid var(--line);
    position: sticky; top: 0; align-self: start; height: calc(100vh - 57px); overflow-y: auto;
  }
  .adm-nav a { padding: 9px 12px; font-size: 0.82rem; }
  .adm-nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
  .adm-main { max-width: 1400px; width: 100%; margin: 0; padding: 20px 28px; }
}
/* catalogs to pick from (catalog.js) */
.adm-cat-layer { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: #050a14b8; }
.adm-cat { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 10px; width: min(1100px, 100%); height: min(86vh, 900px); padding: 16px 18px; border-radius: 14px; background: var(--bg, #0b1220); border: 1px solid var(--line); box-shadow: 0 28px 70px #000e; }
.adm-cat h2 { margin: 0; }
.adm-cat-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-cat-chips { margin: 0; }
.adm-cat-scroll { overflow-y: auto; min-height: 0; padding-right: 4px; }
.adm-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.adm-cat-grid.moves { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.adm-cat-card {
  display: grid; justify-items: center; gap: 3px; padding: 10px 6px; border-radius: 12px; cursor: pointer; text-align: center;
  font: inherit; color: inherit; background: linear-gradient(180deg, #13213d, #0b1424); border: 1px solid color-mix(in srgb, var(--rar, #3d5d9e) 45%, #22355c);
}
.adm-cat-card:hover { border-color: var(--accent, #ffd75e); transform: translateY(-1px); }
.adm-cat-card b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.85rem; }
.adm-cat-rar { color: var(--rar, inherit); }
.adm-cat-art { display: flex; align-items: center; justify-content: center; height: 64px; }
.adm-cat-art img { width: 40px; height: 40px; image-rendering: pixelated; object-fit: contain; }
.adm-cat-move { grid-template-columns: 72px minmax(0, 1fr); justify-items: start; text-align: left; align-items: center; }
.adm-cat-move .adm-cat-art { width: 72px; height: 72px; border-radius: 10px; background: #050b16; }
.adm-cat-move-info { display: grid; gap: 3px; min-width: 0; }
.adm-cat-more { justify-self: center; margin: 10px auto; display: block; }
.adm-fx { image-rendering: pixelated; }
.adm-fx-cell { width: 48px; background: #050b16; }
.adm-chosen { display: inline-flex; align-items: center; gap: 6px; }
.adm-chosen img { width: 28px; height: 28px; image-rendering: pixelated; }

/* ---------------------------------------------------------------- funnel (views/funnel.js) */
.fn-controls { display: grid; gap: 2px; }
.fn-controls .adm-chips { margin-bottom: 4px; }
.fn-tabs { margin: 10px 0 0; padding-top: 10px; border-top: 1px solid var(--line); }
.fn-label { min-width: 64px; font-family: var(--pixel); font-size: 0.85rem; color: var(--muted); margin-right: 6px; align-self: center; }
.fn { display: grid; gap: 6px; }
.fn h2 { margin: 0 0 4px; }
.fn-alert { color: var(--accent); font-size: 0.88rem; margin-bottom: 4px; }
.fn-row {
  display: grid; grid-template-columns: minmax(150px, 1.3fr) minmax(90px, 1.5fr) minmax(96px, auto); align-items: center; gap: 12px;
  padding: 7px 10px; border-radius: 8px; background: #0e1830; border: 1px solid transparent;
}
.fn-name { display: grid; font-size: 0.9rem; }
.fn-name small { color: #ffd23f; font-size: 0.75rem; font-weight: 700; }
.fn-track { height: 14px; border-radius: 4px; background: #0b1424; overflow: hidden; }
.fn-fill { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #2f6fe0, #4a8cff); }
.fn-num { text-align: right; font-size: 0.85rem; color: var(--muted); white-space: nowrap; }
.fn-num b { color: var(--text); font: 700 0.95rem 'Inter', system-ui, sans-serif; }
.fn-row.worst { background: #5a1722; border-color: var(--red); }
.fn-row.worst .fn-track { background: #3a0f17; }
.fn-row.worst .fn-fill { background: #ff5a6e; }
.fn-foot { color: #e6b800; margin-top: 10px; }
@media (max-width: 640px) {
  .fn-row { grid-template-columns: 1fr auto; }
  .fn-track { grid-column: 1 / -1; grid-row: 2; }
}
