:root {
  --bg: #f8fafc;
  --bg-gradient: radial-gradient(circle at 85% -10%, rgb(37 99 235 / 7%), transparent 30rem),
                 radial-gradient(circle at 10% 25%, rgb(99 102 241 / 5%), transparent 26rem),
                 #f8fafc;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --surface-3: #e2e8f0;
  --line: #e2e8f0;
  --line-soft: #f1f5f9;
  --text: #0f172a;
  --text-secondary: #334155;
  --muted: #475569;
  --muted-2: #64748b;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-light: #eff6ff;
  --accent-border: #bfdbfe;
  --coral: #ea580c;
  --coral-light: #fff7ed;
  --green: #16a34a;
  --green-light: #f0fdf4;
  --red: #dc2626;
  --red-light: #fef2f2;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.06), 0 2px 4px -2px rgb(0 0 0 / 0.06);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.03);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.04);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

:root[data-site="tk1971"] {
  --provider-art-background: #002656;
  --provider-art-text: #ffffff;
}

:root[data-site="tk999"],
:root[data-site="cv666"],
:root[data-site="ck33"] {
  --provider-art-background: linear-gradient(#0f727c, #004e56);
  --provider-art-text: #ffffff;
}

:root[data-site="ba99"] {
  --provider-art-background: linear-gradient(#4c557c, #353b53);
  --provider-art-text: #ffffff;
}

:root[data-site="bd222"] {
  --provider-art-background: #2a2827;
  --provider-art-text: #ffffff;
}

:root[data-site="t988"] {
  --provider-art-background: #ff829b;
}

:root[data-site="bdgo"] {
  --provider-art-background: #00412c;
}

:root[data-site="111jl"] {
  --provider-art-background: linear-gradient(#af959533, #af959533), #270001;
}

:root[data-site="bet160"] {
  --provider-art-background: #414045;
  --provider-art-text: #ffffff;
}

:root[data-site="whq77"] {
  --provider-art-background: linear-gradient(#5c3f6f 10%, #3c2855 89%, #553a7a);
  --provider-art-text: #ffffff;
}

:root[data-site="haha777"] {
  --provider-art-background: #5e5e5e;
  --provider-art-text: #ffffff;
}

:root[data-site="bajibagh"] {
  --provider-art-background: linear-gradient(#032930 30%, #185c0e);
  --provider-art-text: #ffffff;
}

:root[data-site="786bet"] {
  --provider-art-background: linear-gradient(#272727, #4a4a4a);
  --provider-art-text: #ffffff;
}

:root[data-site="wwibet"] {
  --provider-art-background: color(srgb 0.270047 0.297082 0.31811);
  --provider-art-text: #ffffff;
}

:root[data-site="52win"] {
  --provider-art-background: #1a2236;
  --provider-art-text: #ffffff;
}

:root[data-site="slotsgo"] {
  --provider-art-background: #010928;
  --provider-art-text: #ffffff;
}

:root[data-site="gamesph"] {
  --provider-art-background: #191e32;
  --provider-art-text: #ffffff;
}

:root[data-site="gamesph"] .provider-art:has(img[src*="-BLACK."]) {
  background: #8430db;
}

:root[data-site="slotbaji"] {
  --provider-art-background: #004b50;
  --provider-art-text: #ffffff;
}

:root[data-site="slotbaji"] .game-thumb[src*="/assets/images/brand/white/"],
:root[data-site="slotbaji"] .game-thumb[src*="/assets/images/icon-set/sports-icon/"] {
  background: #004b50;
}

:root[data-site="ezcasino"] {
  --provider-art-background: #151515;
  --provider-art-text: #ffffff;
}

:root[data-site="ezcasino"] .game-thumb { background: #151515; }

* { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  min-width: 320px;
  background: var(--bg);
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-gradient);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
}

button, input, select { font: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }

.noise { display: none; }

.app-shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 0 40px;
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.site-header-inner {
  width: min(2048px, 100%);
  min-height: 80px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-header .brand { flex-shrink: 0; white-space: nowrap; }
.site-nav { display: flex; align-self: stretch; gap: 28px; }
.site-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 650;
  white-space: nowrap;
}
.site-nav-link:hover,
.site-nav-link[aria-current="page"] { color: var(--accent); }
.site-nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 4px -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}
.site-header :is(.brand, .site-nav-link):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

.topbar {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -.03em;
  color: var(--text);
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: end;
  gap: 3px;
  transform: skew(-8deg);
}
.brand-mark span {
  display: block;
  width: 6px;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
}
.brand-mark span:nth-child(1) { height: 11px; opacity: .5; }
.brand-mark span:nth-child(2) { height: 19px; opacity: .78; }
.brand-mark span:nth-child(3) { height: 27px; }

.topbar-meta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.site-picker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  min-width: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.site-picker select {
  min-width: 140px;
  max-width: 240px;
  min-height: 40px;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font: inherit;
  font-size: 14px;
}
.site-picker select:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
.source-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-secondary);
  background: var(--surface);
  font-size: 13px;
  font-weight: 550;
  box-shadow: var(--shadow-sm);
  transition: all .18s ease;
}
.source-link:hover {
  border-color: var(--accent-border);
  color: var(--accent);
  background: var(--accent-light);
}

.icon-button {
  width: 40px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: all .18s ease;
}
.icon-button:hover {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-light);
}
.icon-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

main {
  padding-top: 28px;
}

.topbar-meta .button {
  min-height: 40px;
  padding: 0 16px;
  font-size: 13.5px;
}

.eyebrow {
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow span { width: 22px; height: 2px; border-radius: 2px; background: var(--accent); }

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: none; }
.button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button-primary {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
}
.button-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.button-secondary {
  color: var(--text);
  background: var(--surface);
  border-color: var(--line);
}
.button-secondary:hover {
  border-color: #cbd5e1;
  background: var(--surface-2);
}
.button-danger { color: #fff; background: var(--red); border-color: var(--red); }
.button-danger:hover { background: #b91c1c; border-color: #b91c1c; }

.crawl-progress {
  margin: 0 0 28px;
  padding: 16px 22px;
  display: grid;
  grid-template-columns: 1fr minmax(180px, 32%);
  align-items: center;
  gap: 24px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.crawl-progress[hidden] { display: none; }
.crawl-progress-copy { display: flex; align-items: center; gap: 14px; }
.crawl-progress-copy div { display: grid; gap: 3px; }
.crawl-progress-copy strong { font-size: 14px; font-weight: 650; color: var(--text); }
.crawl-progress-copy span:not(.spinner) { color: var(--muted); font-size: 13px; }
.spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgb(37 99 235 / 20%);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
.progress-track {
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: #dbeafe;
}
.progress-track span {
  display: block;
  width: 4%;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
  transition: width .35s ease;
}
@keyframes spin { to { transform: rotate(360deg); } }

.workspace { margin-top: 0; border-top: 1px solid var(--line); }
.workspace-head {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
}
.tabs {
  min-width: 0;
  flex: 1;
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  font-size: 15px;
  font-weight: 650;
  transition: color .15s ease, background .15s ease;
}
.tab + .tab { border-left: 1px solid var(--line); }
.tab:hover:not(:disabled):not(.active) { color: var(--text); background: var(--surface-2); }
.tab.active { color: #ffffff; background: var(--accent); }
.tab:disabled {
  cursor: not-allowed;
  color: #94a3b8;
  opacity: .62;
}
.tab span {
  margin-left: 8px;
  padding: 2px 8px;
  color: var(--muted);
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tab.active span {
  color: #ffffff;
  background: rgb(255 255 255 / 16%);
  border-color: rgb(255 255 255 / 32%);
}

.snapshot-control { display: grid; gap: 5px; min-width: 0; color: var(--muted); font-size: 12px; font-weight: 550; }
.snapshot-control > span:first-child { display: flex; justify-content: space-between; gap: 12px; }
.snapshot-control small { color: var(--muted-2); font-size: 11px; font-weight: 400; }
.snapshot-select-field { position: relative; display: block; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); box-shadow: var(--shadow-sm); transition: border-color .15s, box-shadow .15s; }
.snapshot-select-field:hover { border-color: var(--accent-border); }
.snapshot-select-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgb(37 99 235 / 12%); }
.snapshot-control select, .snapshot-picker-trigger { appearance: none; width: 100%; min-width: 0; height: 42px; padding: 0 34px 0 38px; border: 0; border-radius: inherit; outline: 0; background: transparent; color: var(--text-secondary); font-size: 13px; font-weight: 550; text-overflow: ellipsis; }
.snapshot-picker-trigger { display: block; overflow: hidden; text-align: left; white-space: nowrap; }
.snapshot-select-field svg { position: absolute; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; pointer-events: none; }
.snapshot-calendar { left: 12px; color: var(--accent); }
.snapshot-chevron { right: 10px; color: var(--muted-2); }
.snapshot-control select:disabled, .snapshot-picker-trigger:disabled { color: var(--muted-2); cursor: not-allowed; }
.ranking-snapshot-picker { display: flex; align-items: end; gap: 8px; margin-left: auto; min-width: 0; flex: 0 1 370px; }
.snapshot-picker { flex: 1; min-width: 240px; }
.snapshot-reset { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 12px; border: 1px solid var(--accent-border); border-radius: 9px; color: var(--accent); background: var(--accent-light); font-size: 12px; font-weight: 650; }
.snapshot-reset:hover { border-color: var(--accent); }
.snapshot-reset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.filters {
  min-height: 92px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.search-box {
  width: min(380px, 100%);
  height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 14%);
}
.search-box svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}
.search-box input {
  width: 100%;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}
.search-box input::placeholder { color: #94a3b8; }
.search-box kbd {
  padding: 2px 6px;
  color: var(--muted-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  font-family: ui-monospace, monospace;
}
.select-wrap {
  min-width: 210px;
  height: 44px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s;
}
.select-wrap:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 14%);
}
.select-wrap select {
  width: 100%;
  height: 100%;
  padding: 0 36px 0 14px;
  appearance: none;
  color: var(--text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
  font-weight: 500;
}
.select-wrap select:disabled { cursor: not-allowed; color: var(--muted-2); }
.select-wrap svg {
  position: absolute;
  right: 12px;
  width: 16px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
  pointer-events: none;
}

.tab-panel { display: none; min-height: 400px; }
.tab-panel.active { display: block; }
.games-list-head {
  margin-top: 18px;
  padding: 13px 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.games-list-copy { min-width: 0; display: grid; gap: 2px; }
.games-list-copy span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.games-list-copy strong {
  overflow: hidden;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.button-excel {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 14px;
  color: #15803d;
  background: #f0fdf4;
  border-color: #bbf7d0;
  font-size: 13px;
}
.button-excel:hover {
  color: #ffffff;
  background: #15803d;
  border-color: #15803d;
}
.games-list-head:not([hidden]) + .table-wrap { margin-top: 12px; }
.table-wrap {
  width: 100%;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 18px;
  box-shadow: var(--shadow-sm);
}
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
thead { background: var(--surface-2); }
th {
  height: 48px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-align: left;
  text-transform: uppercase;
}
td {
  height: 74px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
}
tbody tr { transition: background .12s ease; }
tbody tr:hover { background: #f8fafc; }
tbody tr:last-child td { border-bottom: 0; }

th:nth-child(1), td:nth-child(1) { width: 85px; padding-left: 20px; }
th:nth-child(2), td:nth-child(2) { width: 45%; }
th:nth-child(3), td:nth-child(3) { width: 25%; }
th:nth-child(4), td:nth-child(4) { width: 105px; text-align: center; }
th:nth-child(5), td:nth-child(5) { width: 130px; text-align: right; padding-right: 20px; }

.rank-number {
  color: var(--text);
  font-size: 16px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
}
.rank-number::before {
  content: "#";
  margin-right: 2px;
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 600;
}
.game-cell { display: flex; align-items: center; gap: 14px; min-width: 0; }
.game-thumb {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
}
.game-name { min-width: 0; }
.game-name strong {
  overflow: hidden;
  color: var(--text);
  font-size: 15px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.category-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 8px;
  color: var(--muted);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.tag-hot {
  color: var(--coral);
  background: var(--coral-light);
  border-color: rgb(234 88 12 / 25%);
  font-weight: 700;
}

.delta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 50px;
  padding: 5px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.delta-up {
  color: var(--green);
  background: var(--green-light);
  border: 1px solid rgb(22 163 74 / 20%);
}
.delta-down {
  color: var(--red);
  background: var(--red-light);
  border: 1px solid rgb(220 38 38 / 20%);
}
.delta-flat {
  color: var(--muted-2);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.delta-new {
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  font-size: 11px;
  letter-spacing: .05em;
}

.rank-sparkline {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  vertical-align: middle;
  cursor: default;
  min-height: 28px;
}
.sparkline-svg {
  width: 92px;
  height: 26px;
  display: block;
  overflow: visible;
  transition: transform .15s ease;
}
.rank-sparkline:hover .sparkline-svg {
  transform: scale(1.05);
}
.trend-up .sparkline-svg {
  filter: drop-shadow(0 2px 4px rgb(22 163 74 / 15%));
}
.trend-down .sparkline-svg {
  filter: drop-shadow(0 2px 4px rgb(220 38 38 / 15%));
}
.trend-flat .sparkline-svg {
  filter: drop-shadow(0 2px 4px rgb(59 130 246 / 12%));
}
.sparkline-empty {
  color: var(--muted-2);
  font-size: 14px;
}

.pagination {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  padding: 0 4px;
}
.pagination > div { display: flex; align-items: center; gap: 12px; }
.page-button {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 600;
  transition: all .15s;
}
.page-button:hover:not(:disabled) {
  color: var(--accent);
  border-color: var(--accent-border);
  background: var(--accent-light);
}
.page-button:disabled { cursor: not-allowed; opacity: .4; box-shadow: none; }
#page-label {
  min-width: 54px;
  color: var(--muted);
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 600;
}

.rank-gate {
  min-height: 400px;
  margin-top: 18px;
  padding: 64px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--accent-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.rank-gate-step {
  margin-bottom: 16px;
  padding: 5px 10px;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .05em;
}
.rank-gate strong { color: var(--text); font-size: 20px; }
.rank-gate p { max-width: 560px; margin: 10px 0 24px; color: var(--muted); }

.provider-browser {
  padding: 20px 0 45px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}
.category-rail {
  max-height: calc(100vh - 24px);
  position: sticky;
  top: 12px;
  display: grid;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.category-loading { padding: 18px 8px; color: var(--muted); font-size: 12px; }
.category-button {
  min-height: 86px;
  position: relative;
  padding: 10px 8px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, color .15s ease, border-color .15s ease, background .15s ease;
}
.category-button:hover {
  transform: translateY(-1px);
  color: var(--text);
  border-color: var(--accent-border);
}
.category-button.active {
  color: var(--accent);
  background: var(--accent-light);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgb(37 99 235 / 10%);
}
.category-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.category-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .72;
}
.category-button.active .category-icon img { filter: none; opacity: 1; }
.category-copy { display: grid; line-height: 1.15; text-align: center; }
.category-copy strong { font-size: 11px; font-weight: 700; }
.category-copy small { margin-top: 2px; color: var(--muted-2); font-size: 10px; font-weight: 500; }
.category-button em {
  position: absolute;
  right: 7px;
  top: 6px;
  color: var(--muted-2);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  font-style: normal;
}
.provider-results { min-width: 0; }

.provider-grid {
  padding: 18px 0 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}
.provider-card {
  position: relative;
  overflow: hidden;
  display: block;
  text-align: left;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.provider-select {
  width: 100%;
  padding: 0;
  display: block;
  color: inherit;
  background: transparent;
  border: 0;
  text-align: left;
}
.provider-select:focus-visible {
  outline: 3px solid var(--accent-border);
  outline-offset: -3px;
}
.provider-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md);
}
.provider-art {
  width: 100%;
  aspect-ratio: 442 / 530;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--provider-art-background, var(--surface-2));
  border-bottom: 1px solid var(--line);
}
.provider-art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
:root[data-site="xbet100"] .provider-art { aspect-ratio: 3 / 2; }
:root[data-site="xbet100"] .provider-art img {
  position: static;
  width: auto;
  height: auto;
  max-width: 48px;
  max-height: 48px;
}
:root[data-site="altixblitz"] .provider-art {
  aspect-ratio: 3 / 2;
  background: linear-gradient(#444, #151515);
}
:root[data-site="winphgame"] .provider-art {
  aspect-ratio: 3 / 2;
  background: #09102b;
}
:root[data-site="hengheng65"] .provider-art {
  aspect-ratio: 3 / 2;
  background: #0e3974;
}
:root[data-site="altixblitz"] .provider-art img,
:root[data-site="hengheng65"] .provider-art img,
:root[data-site="winphgame"] .provider-art img {
  position: static;
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 48px;
}
:root[data-site="winphgame"] .provider-art img { max-height: 96px; }
:root[data-site="hengheng65"] .provider-art img { max-height: 80px; }
.provider-art span { color: var(--provider-art-text, var(--accent)); font-size: 26px; font-weight: 750; text-transform: uppercase; }
.provider-info { min-width: 0; padding: 12px 76px 13px 13px; display: grid; gap: 3px; }
.provider-info strong {
  overflow: hidden;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.provider-info small {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.provider-rank {
  position: absolute;
  left: 9px;
  top: 9px;
  padding: 4px 7px;
  color: var(--text-secondary);
  background: rgb(255 255 255 / 90%);
  border: 1px solid rgb(226 232 240 / 90%);
  border-radius: 7px;
  box-shadow: var(--shadow-sm);
  font-family: ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
}
.provider-rank.ranked { color: var(--accent); font-weight: 750; }
.provider-delta { position: absolute; right: 9px; top: 9px; }
.provider-delta .delta { min-width: 0; padding: 4px 7px; box-shadow: var(--shadow-sm); }
.provider-excel {
  min-height: 28px;
  position: absolute;
  right: 10px;
  bottom: 11px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0 8px;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: color .15s ease, background .15s ease, border-color .15s ease;
}
.provider-excel:hover {
  color: #ffffff;
  background: #15803d;
  border-color: #15803d;
}
.provider-excel:focus-visible { outline: 3px solid rgb(34 197 94 / 30%); outline-offset: 2px; }
.provider-excel svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state { padding: 80px 20px; color: var(--muted); text-align: center; }
.empty-state[hidden] { display: none; }
.empty-state .empty-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  font-size: 20px;
}
.empty-state strong { display: block; color: var(--text); font-size: 16px; font-weight: 700; }
.empty-state p { margin: 8px 0 0; font-size: 13px; color: var(--muted); }

.footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  border-top: 1px solid var(--line);
  font-size: 12px;
  font-weight: 500;
  font-family: ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.snapshot-dialog {
  width: min(520px, calc(100% - 32px));
  padding: 0;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}
.snapshot-dialog::backdrop {
  background: rgb(15 23 42 / 45%);
  backdrop-filter: blur(4px);
}
.snapshot-dialog form { padding: 28px; display: flex; flex-direction: column; max-height: calc(100dvh - 34px); }
.snapshot-dialog form > :not(.snapshot-list-picker) { flex-shrink: 0; }
.snapshot-list-picker { display: flex; flex-direction: column; min-height: 80px; margin-top: 20px; }
.snapshot-list-heading { display: flex; flex-shrink: 0; justify-content: space-between; gap: 12px; margin-bottom: 10px; color: var(--text-secondary); font-size: 12px; font-weight: 550; }
.snapshot-list-heading small { color: var(--muted); font-size: 11px; font-weight: 400; }
.snapshot-list { display: grid; gap: 8px; max-height: 310px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; padding: 3px; margin: -3px; }
.snapshot-option { display: flex; align-items: center; min-width: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); transition: background .15s, border-color .15s; }
.snapshot-option:hover { background: var(--surface-2); border-color: var(--accent-border); }
.snapshot-option:has(input:checked) { background: var(--accent-light); border-color: var(--accent); }
.snapshot-option:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; }
.snapshot-option:has(input:disabled) { opacity: .6; cursor: wait; }
.snapshot-option-select { display: flex; align-items: center; flex: 1; gap: 12px; min-width: 0; padding: 13px 0 13px 14px; cursor: pointer; }
.snapshot-option input { flex: 0 0 auto; width: 18px; height: 18px; margin: 0; accent-color: var(--accent); cursor: inherit; }
.snapshot-option-copy { display: grid; gap: 5px; flex: 1; min-width: 0; }
.snapshot-option-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; color: var(--text); font-size: 13px; font-weight: 650; line-height: 1.4; }
.snapshot-option-title time { font-variant-numeric: tabular-nums; }
.snapshot-option-counts { color: var(--muted); font-size: 12px; line-height: 1.4; }
.snapshot-latest { padding: 2px 7px; border-radius: 5px; color: var(--accent); background: var(--accent-light); font-size: 10px; font-weight: 650; }
.snapshot-remove { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 40px; height: 40px; margin: 0 8px; padding: 0; color: var(--red); background: transparent; border: 1px solid transparent; border-radius: 8px; }
.snapshot-remove svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.snapshot-remove:hover, .snapshot-remove[aria-pressed="true"] { background: var(--red-light); border-color: rgb(220 38 38 / 30%); }
.snapshot-remove:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.snapshot-remove:disabled { cursor: wait; }
.snapshot-list-empty { padding: 12px; color: var(--muted); font-size: 13px; }
.removal-summary { margin-top: 14px; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.removal-summary strong { display: block; color: var(--text); }
.removal-summary p { margin: 3px 0 0; }
.removal-warning { margin: 16px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.removal-warning strong { color: var(--text-secondary); font-weight: 550; }
.removal-error { margin: 16px 0 0; color: var(--red); font-size: 13px; line-height: 1.6; }
.dialog-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -.03em;
  color: var(--text);
}
.dialog-head p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.dialog-close { flex: 0 0 auto; font-size: 22px; }
.dialog-actions {
  margin-top: 26px;
  padding-top: 20px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  max-width: min(420px, calc(100% - 48px));
  padding: 14px 18px;
  color: var(--text);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 13px;
  font-weight: 550;
  transform: translateY(25px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error {
  color: var(--red);
  background: var(--red-light);
  border-color: rgb(220 38 38 / 30%);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.insights-heading, .insights-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.insights-heading { padding: 28px 0 24px; }
.insights-heading-copy { flex: 1; min-width: 0; }
.insights-snapshot-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin: 18px 0 12px; }
.insights-snapshot-controls .snapshot-control { flex: 1 1 275px; max-width: 350px; }
.snapshot-direction { align-self: end; padding: 10px 0; color: var(--muted-2); }
.insights-snapshot-controls .button { min-height: 44px; padding: 0 16px; font-size: 13px; }
.insights-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.insights-heading p, .insights-section-head p { margin: 6px 0 0; color: var(--muted); }
.insights-status, .insights-inline-empty { padding: 22px; color: var(--muted); }
.insights-status { border: 1px dashed var(--line); border-radius: var(--radius); }
#panel-insights[aria-busy="true"] #insights-content { opacity: .55; }
.insights-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.insight-highlight {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.insight-highlight > span { color: var(--muted); font-size: 12px; font-weight: 650; }
.insight-highlight > strong { display: block; margin-top: 10px; font-size: 22px; letter-spacing: -.025em; color: var(--accent); }
.insight-highlight > p { margin: 10px 0 0; color: var(--text-secondary); line-height: 1.65; font-size: 13px; }
.insights-section { margin-top: 32px; scroll-margin-top: 20px; }
.insights-section-head h3 { margin: 0; font-size: 18px; letter-spacing: -.015em; }
.insights-section-head p { font-size: 13px; }
.insights-filter { display: grid; gap: 5px; min-width: 220px; font-size: 12px; color: var(--muted); }
.insights-filter select { width: 100%; min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--text); background: var(--surface); }
.insights-filter select:focus-visible, .insights-list-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.insights-summary { margin: 16px 0; padding: 12px 16px; border-radius: 8px; background: var(--accent-light); color: var(--text-secondary); line-height: 1.7; font-size: 13px; }
.insights-table { min-width: 820px; table-layout: auto; }
.insights-table th, .insights-table td { width: auto; height: auto; padding: 13px 16px; text-align: left; font-size: 13px; }
.insights-table th { font-size: 11px; white-space: nowrap; }
.insights-table td:not(:first-child) { white-space: nowrap; font-variant-numeric: tabular-nums; }
.insights-table th:first-child, .insights-table td:first-child { width: 24%; }
.insights-list-link { padding: 0; border: 0; background: transparent; color: var(--accent); text-align: left; font-weight: 650; }
.insights-list-link:hover { text-decoration: underline; }
.insights-arrow { color: var(--muted-2); padding: 0 3px; }
.insights-up { color: #15803d; margin-right: 8px; }
.insights-down { color: #b91c1c; }
.insights-order { display: inline-block; padding: 3px 8px; border-radius: 5px; background: var(--surface-2); color: var(--muted); font-size: 11px; }
.insights-order.reordered { color: var(--accent); background: var(--accent-light); }
.insights-change-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.insight-change-card { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.insight-change-card > header { padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--line-soft); }
.insight-change-card h4 { margin: 0; font-size: 14px; }
.insight-change-card > header > span { min-width: 32px; padding: 3px 8px; text-align: center; border-radius: 6px; background: var(--surface-2); font-weight: 700; font-variant-numeric: tabular-nums; }
.change-up > header > span { color: #15803d; background: var(--green-light); }
.change-down > header > span, .change-removed > header > span { color: #b91c1c; background: var(--red-light); }
.change-new > header > span { color: var(--accent); background: var(--accent-light); }
.insight-change-card ul { list-style: none; padding: 0; margin: 0; }
.insight-change-card li { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 13px 18px; }
.insight-change-card li + li { border-top: 1px solid var(--line-soft); }
.insight-entry { min-width: 0; display: grid; gap: 3px; overflow-wrap: anywhere; }
.insight-entry strong { font-size: 13px; font-weight: 600; }
.insight-entry small { color: var(--muted); font-size: 11px; }
.insight-entry .insights-top-note { color: var(--accent); }
.insight-rank { flex-shrink: 0; display: grid; justify-items: end; gap: 5px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.insight-rank > span:first-child { white-space: nowrap; }
.insight-change-card > footer { padding: 10px 18px; color: var(--muted); background: var(--surface-2); font-size: 11px; }
.insight-change-card .insights-inline-empty { margin: 0; font-size: 13px; }
.insights-method { margin: 28px 0; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13px; }
.insights-method summary { cursor: pointer; font-weight: 650; color: var(--text-secondary); }
.insights-method p { margin: 12px 0 0; line-height: 1.7; }

@media (min-width: 1800px) {
  .insights-change-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .insight-highlight > p, .insights-section-head p, .insights-summary { font-size: 14px; }
  .app-shell { width: min(1900px, 100%); padding: 0 52px; }

  .topbar { min-height: 96px; }
  .brand { gap: 14px; font-size: 25px; }
  .brand-mark { width: 32px; height: 32px; gap: 4px; }
  .brand-mark span { width: 7px; }
  .brand-mark span:nth-child(1) { height: 13px; }
  .brand-mark span:nth-child(2) { height: 22px; }
  .brand-mark span:nth-child(3) { height: 31px; }
  .source-link { gap: 10px; padding: 10px 16px; font-size: 14px; }
  .icon-button { width: 46px; height: 46px; border-radius: 11px; }
  .icon-button svg { width: 20px; }

  .eyebrow { margin-bottom: 18px; font-size: 13px; }
  .topbar-meta .button { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .button { min-height: 48px; padding: 0 24px; border-radius: 11px; font-size: 15px; }
  .button svg { width: 19px; }

  .crawl-progress { padding: 18px 24px; }
  .crawl-progress-copy strong { font-size: 15px; }
  .crawl-progress-copy span:not(.spinner) { font-size: 14px; }

  .workspace-head { min-height: 84px; }
  .tab { font-size: 16px; }
  .tab span { margin-left: 9px; padding: 3px 9px; font-size: 13px; }
  .ranking-snapshot-picker { flex-basis: 400px; }
  .snapshot-control select, .snapshot-picker-trigger { height: 46px; font-size: 14px; }
  .snapshot-reset { height: 48px; }
  .insights-snapshot-controls .button { min-height: 48px; }

  .filters { min-height: 100px; gap: 14px; }
  .search-box { width: min(440px, 100%); height: 48px; gap: 12px; padding: 0 16px; border-radius: 11px; }
  .search-box svg { width: 20px; }
  .search-box input { font-size: 15px; }
  .search-box kbd { padding: 3px 7px; font-size: 12px; }
  .select-wrap { min-width: 235px; height: 48px; border-radius: 11px; }
  .select-wrap select { padding-left: 16px; font-size: 15px; }
  .select-wrap svg { right: 14px; width: 17px; }

  th { height: 54px; font-size: 13px; }
  td { height: 90px; font-size: 15px; }
  th:nth-child(1), td:nth-child(1) { width: 115px; padding-left: 24px; }
  th:nth-child(4), td:nth-child(4) { width: 120px; text-align: center; padding-right: 0; }
  th:nth-child(5), td:nth-child(5) { width: 150px; text-align: right; padding-right: 24px; }
  .rank-number { font-size: 19px; }
  .rank-number::before { font-size: 13px; }
  .game-cell { gap: 16px; }
  .game-thumb { width: 56px; height: 56px; border-radius: 11px; }
  .game-name { gap: 5px; }
  .game-name strong { font-size: 15px; }
  .category-tags { gap: 7px; }
  .tag { padding: 4px 9px; font-size: 12px; }
  .delta { min-width: 56px; padding: 6px 11px; font-size: 13px; }
  .delta-new { font-size: 11px; }

  .pagination { min-height: 80px; font-size: 14px; }
  .page-button { width: 40px; height: 40px; font-size: 15px; }
  #page-label { min-width: 64px; font-size: 14px; }

  .provider-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
  .provider-card { border-radius: 14px; }
  .provider-art span { font-size: 30px; }
  .provider-info { padding: 14px 15px 15px; gap: 4px; }
  .provider-info strong { font-size: 16px; }
  .provider-info small { font-size: 13px; }
  .provider-rank { font-size: 13px; }

  .empty-state { padding: 95px 24px; }
  .empty-state .empty-icon { width: 48px; height: 48px; font-size: 24px; }
  .empty-state strong { font-size: 18px; }
  .empty-state p { font-size: 14px; }
  .footer { min-height: 120px; font-size: 13px; }
}

@media (max-width: 1050px) {
  .insights-highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace-head { gap: 12px; }
  .filters { flex-wrap: wrap; padding: 14px 0; }
  .ranking-snapshot-picker { flex: 1 1 360px; }
  .tab { padding: 0 10px; font-size: 13px; }
  .provider-browser { grid-template-columns: 116px minmax(0, 1fr); gap: 16px; }
  .provider-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .insights-heading-copy { width: 100%; }
  .insights-snapshot-controls { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .insights-snapshot-controls .snapshot-control { width: 100%; max-width: none; }
  .snapshot-direction { display: none; }
  .ranking-snapshot-picker { flex-basis: 100%; width: 100%; display: grid; grid-template-columns: 1fr auto; }
  .snapshot-picker { grid-column: 1 / -1; min-width: 0; }
  .snapshot-reset { height: 36px; grid-column: 2; justify-self: end; }
  .insights-heading, .insights-section-head { align-items: start; flex-direction: column; gap: 14px; }
  .insights-filter { width: 100%; }
  .insights-change-grid { grid-template-columns: minmax(0, 1fr); }
  .tab { min-height: 72px; flex-wrap: wrap; align-content: center; padding: 10px 6px; gap: 4px; }
  .tab span { margin-left: 0; }
  .app-shell { padding: 0 20px; }
  .topbar { min-height: 68px; }
  main { padding-top: 20px; }
  .topbar-meta .button { min-height: 38px; padding: 0 12px; font-size: 13px; }
  .topbar-meta { flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
  .topbar { gap: 12px; padding-block: 14px; flex-wrap: wrap; }
  .site-picker { flex: 1; margin-left: 0; justify-content: flex-end; }
  .topbar-meta { width: 100%; justify-content: space-between; }
  .crawl-progress { grid-template-columns: 1fr; }
  .mi-stats { grid-template-columns: 1fr 1fr; }
  .workspace-head { align-items: stretch; flex-wrap: wrap; gap: 0; }
  .tabs { min-width: 0; flex-basis: 100%; }
  .filters { padding: 14px 0; flex-wrap: wrap; }
  .search-box { width: 100%; }
  .select-wrap { flex: 1; }
  table { min-width: 650px; }
  .provider-browser { display: block; }
  .category-rail {
    max-height: none;
    position: static;
    padding: 4px 0 14px;
    display: flex;
    overflow-x: auto;
  }
  .category-button { min-height: 82px; flex: 0 0 104px; }
  .provider-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { min-height: 90px; display: grid; justify-content: normal; align-content: center; gap: 8px; font-size: 11px; }
}

@media (max-width: 480px) {
  .topbar { align-items: flex-start; }
  .brand { padding-top: 5px; }
  .topbar-meta { display: flex; }
  .topbar-meta .source-link { justify-self: end; grid-column: 2; grid-row: 1; }
  .topbar-meta #crawl-now { grid-column: 1; grid-row: 1; }
  .snapshot-dialog form { padding: 22px; }
  .snapshot-dialog .dialog-actions .button { padding-inline: 14px; }
  .insights-highlights { grid-template-columns: minmax(0, 1fr); }
  .insight-highlight { padding: 18px; }
  .insights-heading h2 { font-size: 22px; }
  .mi-stats { grid-template-columns: 1fr; }
  .provider-browser { padding-top: 14px; }
  .provider-grid { gap: 10px; }
  .provider-info { padding: 10px 67px 10px 10px; }
  .provider-excel { right: 8px; bottom: 9px; padding: 0 7px; }
  .provider-excel svg { width: 13px; }
  .games-list-head { padding: 10px; gap: 10px; }
  .games-list-copy span { font-size: 9px; }
  .games-list-copy strong { font-size: 13px; }
  .button-excel { min-height: 34px; padding: 0 10px; font-size: 11px; }
  .provider-info strong { font-size: 13px; }
  .provider-info small { font-size: 10px; }
}
