:root {
  --bg: #070a14; --bg-2: #0b1020; --panel: #0e1428; --panel-2: #121a33; --line: #1d2747; --line-2: #26325a;
  --text: #f4f6fb; --muted: #9aa6c3; --dim: #6b7696;
  --magenta: #e11d9b; --violet: #8b5cf6; --accent: #c026d3; --cyan: #22d3ee;
  --green: #22c55e; --green-bg: rgba(34,197,94,.12); --red: #f05252; --red-bg: rgba(240,82,82,.12);
  --amber: #f5a524; --amber-bg: rgba(245,165,36,.14); --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.45 "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }
a.link { color: #a78bfa; } a.link:hover { text-decoration: underline; }
.shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { background: linear-gradient(180deg, #0a0f1f, #070a14); border-right: 1px solid var(--line); padding: 20px 0; position: sticky; top: 0; height: 100vh; }
.brand { display: flex; gap: 10px; align-items: center; padding: 0 22px 26px; }
.brand svg { width: 34px; height: 34px; }
.brand b { display: block; font-size: 19px; letter-spacing: -.01em; }
.brand small { color: var(--muted); font-size: 12px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 22px; color: #c3cbe0; border-left: 3px solid transparent; }
.nav a svg { width: 18px; height: 18px; opacity: .85; }
.nav a:hover { background: rgba(255,255,255,.03); color: #fff; }
.nav a.on { background: linear-gradient(90deg, rgba(192,38,211,.28), rgba(139,92,246,.06)); border-left-color: var(--accent); color: #f0abfc; }
.nav .count { margin-left: auto; background: var(--magenta); color: #fff; border-radius: 999px; font-size: 11px; padding: 1px 7px; font-weight: 600; }
.side .who { position: absolute; bottom: 16px; left: 22px; right: 22px; color: var(--dim); font-size: 12px; }
.side .who button { background: none; border: 0; color: var(--muted); padding: 0; cursor: pointer; font: inherit; text-decoration: underline; }
main { padding: 22px 26px 40px; min-width: 0; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
h1 { font-size: 26px; margin: 0; letter-spacing: -.02em; }
.sub { color: var(--muted); margin-top: 2px; }
h2 { font-size: 16px; margin: 0 0 12px; }
.card { background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.kpi { display: flex; gap: 14px; align-items: center; }
.kpi .ic { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.kpi .ic svg { width: 22px; height: 22px; }
.kpi b { font-size: 26px; letter-spacing: -.02em; display: block; line-height: 1.1; }
.kpi span { color: var(--muted); font-size: 13px; }
.grid2 { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.stat-row { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--line); }
.stat-row:last-child { border-bottom: 0; }
.bar { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--violet), var(--magenta)); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 12px; margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.chart text { fill: var(--dim); font-size: 11px; }
.brief li { list-style: none; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.brief ul { margin: 0; padding: 0; }
.brief b { display: block; color: #c4b5fd; }
.brief p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.brief .dot { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; background: rgba(139,92,246,.15); color: #c4b5fd; font-weight: 700; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 200px; gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.mini { background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mini .top { display: flex; justify-content: space-between; padding: 6px 9px; font-size: 11px; color: var(--muted); }
.mini img { width: 100%; height: 150px; object-fit: cover; object-position: top; display: block; background: #050810; }
.mini .meta { padding: 8px 9px; font-size: 12px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 8px 10px; border-bottom: 1px solid rgba(29,39,71,.6); vertical-align: top; }
tr.playstar td { background: rgba(192,38,211,.12); color: #f0abfc; font-weight: 600; }
tr.playstar td:first-child { box-shadow: inset 3px 0 0 var(--magenta); }
.table-wrap { overflow-x: auto; }
.badge { display: inline-block; font-size: 10.5px; font-weight: 600; letter-spacing: .02em; padding: 3px 7px; border-radius: 5px; text-transform: uppercase; white-space: nowrap; }
.b-new { background: var(--magenta); color: #fff; }
.b-nj { background: var(--green-bg); color: #4ade80; border: 1px solid rgba(34,197,94,.35); }
.b-likely { background: rgba(34,211,238,.1); color: var(--cyan); border: 1px solid rgba(34,211,238,.3); }
.b-unc { background: rgba(154,166,195,.1); color: var(--muted); border: 1px solid var(--line-2); }
.b-not { background: var(--red-bg); color: #fca5a5; border: 1px solid rgba(240,82,82,.3); }
.b-review { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(245,165,36,.4); }
.b-dup { background: transparent; color: var(--muted); border: 1px solid var(--line-2); text-transform: none; }
.b-up { background: var(--green-bg); color: #4ade80; } .b-down { background: var(--red-bg); color: #fca5a5; }
.src { color: var(--muted); font-size: 12px; }
.src .m { color: #60a5fa; font-weight: 700; } .src .g { color: #fbbf24; font-weight: 700; }
form.filters { display: grid; gap: 10px; margin-bottom: 14px; }
.search { position: relative; }
.search input { width: 100%; padding: 12px 14px 12px 40px; }
.search svg { position: absolute; left: 13px; top: 12px; width: 18px; height: 18px; color: var(--muted); }
input, select, textarea { background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text); border-radius: 9px; padding: 9px 11px; font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(192,38,211,.5); outline-offset: 0; border-color: var(--accent); }
.fl { display: flex; flex-wrap: wrap; gap: 8px; }
.fl select { min-width: 130px; }
.btn { display: inline-flex; align-items: center; gap: 8px; border-radius: 9px; padding: 9px 14px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); cursor: pointer; font: inherit; font-weight: 500; }
.btn:hover { border-color: #3a4a7c; }
.btn.primary { background: linear-gradient(90deg, var(--violet), var(--accent)); border-color: transparent; }
.btn.ghost { background: transparent; color: #a78bfa; border-color: rgba(139,92,246,.45); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { border: 1px solid rgba(139,92,246,.55); color: #ddd6fe; border-radius: 999px; padding: 4px 10px; font-size: 12px; }
.chip a { margin-left: 6px; color: var(--muted); }
.lib { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.lib.open { grid-template-columns: minmax(0, 1fr) 420px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.tile:hover { border-color: #3b3f7a; }
.tile.sel { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 0 24px rgba(192,38,211,.25); }
.tile .img { position: relative; background: #050810; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; }
.tile .img img { width: 100%; height: 100%; object-fit: contain; }
.tile .img .badge { position: absolute; top: 8px; left: 8px; }
.tile .noimg { color: var(--dim); padding: 16px; font-size: 12px; text-align: center; }
.tile .body { padding: 10px 12px 12px; display: grid; gap: 6px; }
.tile .row { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.tile .op { font-weight: 600; }
.tile .offer { color: #e9d5ff; font-size: 12.5px; min-height: 18px; }
.tile .tags { display: flex; flex-wrap: wrap; gap: 5px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; }
.panel .nav2 { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--muted); }
.panel .nav2 .btn { padding: 6px 10px; }
.panel .nav2 .close { margin-left: auto; }
.panel .hero { background: #050810; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; margin-bottom: 12px; }
.panel .hero img { width: 100%; display: block; }
dl.kv { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: 7px 10px; margin: 0 0 12px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; word-break: break-word; }
.ocr { background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; font-size: 12px; color: #cbd5e1; max-height: 150px; overflow-y: auto; white-space: pre-wrap; }
.edit { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.edit label { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 18px; color: var(--muted); }
.note { color: var(--muted); font-size: 12.5px; }
.notice { border: 1px solid rgba(245,165,36,.4); background: var(--amber-bg); color: #fde68a; padding: 10px 12px; border-radius: 10px; margin-bottom: 14px; }
.ok { border-color: rgba(34,197,94,.4); background: var(--green-bg); color: #bbf7d0; }
.login { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(1200px 600px at 20% 0%, rgba(139,92,246,.18), transparent), radial-gradient(800px 500px at 100% 100%, rgba(225,29,155,.14), transparent), var(--bg); }
.login form { width: min(380px, 92vw); display: grid; gap: 12px; }
.login .err { color: #fca5a5; }
.headstats { display: flex; gap: 18px; color: var(--muted); }
.headstats b { color: var(--text); font-size: 20px; margin-right: 4px; }
.headstats b.m { color: #f472b6; } .headstats b.a { color: var(--amber); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid2 { grid-template-columns: 1fr; } .lib.open { grid-template-columns: 1fr; } .panel { position: static; max-height: none; } }
@media (max-width: 760px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; padding: 12px 0; }
  .side .who { position: static; padding: 8px 22px 0; }
  .brand { padding-bottom: 10px; }
  .nav { display: flex; overflow-x: auto; }
  .nav a { border-left: 0; border-bottom: 3px solid transparent; padding: 9px 12px; white-space: nowrap; }
  .nav a.on { border-bottom-color: var(--accent); }
  main { padding: 16px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .fl select { min-width: 0; flex: 1 1 140px; }
  dl.kv { grid-template-columns: 110px minmax(0, 1fr); }
}
.notice.ok { border-color: rgba(34,197,94,.45); background: rgba(34,197,94,.12); color: #bbf7d0; }
.notice.err { border-color: rgba(239,68,68,.5); background: rgba(239,68,68,.12); color: #fecaca; }

.kpis6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1200px) { .kpis6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.ok-t { color: #4ade80; } .bad-t { color: #fca5a5; } .warn-t { color: var(--amber); }
.v-casino { background: rgba(139,92,246,.18); color: #c4b5fd; border: 1px solid rgba(139,92,246,.45); }
.v-sportsbook { background: rgba(59,130,246,.16); color: #93c5fd; border: 1px solid rgba(59,130,246,.45); }
.v-mixed { background: rgba(20,184,166,.15); color: #5eead4; border: 1px solid rgba(20,184,166,.45); }
.v-other { background: rgba(154,166,195,.1); color: var(--muted); border: 1px solid var(--line-2); }
.v-need_review { background: var(--amber-bg); color: var(--amber); border: 1px solid rgba(245,165,36,.4); }
.panel h3 { font-size: 14px; margin: 16px 0 8px; }
.panel .edit label.inline { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.hist { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 12px; }
.wrap { word-break: break-all; }
.report .rsec { margin-bottom: 14px; }
.prov { display: inline-block; font-size: 10px; padding: 1px 5px; border-radius: 4px; text-transform: uppercase; letter-spacing: .03em; }
.p-confirmed { background: var(--green-bg); color: #4ade80; } .p-extracted { background: rgba(59,130,246,.16); color: #93c5fd; }
.p-inferred { background: var(--amber-bg); color: var(--amber); } .p-missing { background: rgba(154,166,195,.12); color: var(--muted); }
.shots { display: flex; gap: 12px; flex-wrap: wrap; } .shots figure { margin: 0; width: 180px; }
.shots img { width: 180px; height: 180px; object-fit: contain; background: #050810; border: 1px solid var(--line); border-radius: 8px; }
.shots figcaption { font-size: 11px; color: var(--muted); }
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side, .nav { min-width: 0; max-width: 100vw; }
  .kpis, .kpis6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fl select, .fl input, .fl label { min-width: 0; max-width: 100%; }
  .gallery { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .head { align-items: flex-start; }
}
