:root {
    --bg: #14121d;
    --panel: #211c30;
    --panel-2: #2a2440;
    --panel-line: #3a3354;
    --text: #e9e6f5;
    --muted: #9b94b8;
    --accent: #b98bff;
    --won: #5bd66f;
    --lost: #ff5d6c;
    --hp: #e5413f;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Segoe UI", system-ui, sans-serif;
    margin: 0;
}

a { color: var(--accent); }

/* WASM boot splash shown until the app downloads + starts. */
.brt-boot {
    display: flex; align-items: center; justify-content: center;
    height: 100vh; color: var(--muted);
    font-family: "Segoe UI", system-ui, sans-serif; font-size: 1rem;
}

.brt-page {
    max-width: 1180px;
    margin: 0 auto;
    padding: 18px 22px 60px;
}

/* The run detail view should use most of the screen. */
.brt-page--run {
    max-width: min(1700px, 96vw);
}

.brt-page h1 {
    font-size: 1.7rem;
    margin: 6px 0 18px;
}

/* ---------- Filters / list ---------- */
.brt-filters {
    display: flex;
    gap: 18px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.brt-filters label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: .8rem;
    color: var(--muted);
}

.brt-filters select {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--panel-line);
    border-radius: 6px;
    padding: 7px 10px;
    min-width: 180px;
    font-size: .95rem;
}

.brt-btn, .brt-back {
    background: var(--panel-2);
    color: var(--text);
    border: 1px solid var(--panel-line);
    border-radius: 6px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: .9rem;
    text-decoration: none;
    display: inline-block;
}

.brt-btn:hover, .brt-back:hover { background: var(--panel-line); }
.brt-back { margin-bottom: 14px; }

.brt-count { color: var(--muted); font-size: .85rem; margin: 6px 0; }

.brt-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--panel);
    border-radius: 10px;
    overflow: hidden;
}

.brt-table th, .brt-table td {
    text-align: left;
    padding: 9px 12px;
    font-size: .9rem;
}

.brt-table thead th {
    background: var(--panel-2);
    color: var(--muted);
    font-weight: 600;
    border-bottom: 1px solid var(--panel-line);
}

.brt-table tbody tr { border-bottom: 1px solid var(--panel-line); }
.brt-run-row { cursor: pointer; }
.brt-run-row:hover { background: var(--panel-2); }

.brt-pill {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 700;
}
.brt-pill.won { background: rgba(91,214,111,.15); color: var(--won); }
.brt-pill.lost { background: rgba(255,93,108,.15); color: var(--lost); }
/* "Modified" marker for runs with non-default enemy scaling. */
.brt-pill--mod { background: rgba(255,170,60,.18); color: #ffb347; font-size: .72rem; }
.brt-kv--mod span:last-child { color: #ffb347; font-weight: 700; }
/* "Modded content" marker for runs holding non-vanilla items/weapons/characters. */
.brt-pill--modded { background: rgba(255,93,108,.16); color: var(--lost); font-size: .72rem; }
.brt-kv--modded span:last-child { color: var(--lost); font-weight: 700; }
.brt-mods { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.brt-mod-chip {
    background: var(--panel-2); color: var(--muted);
    border: 1px solid var(--panel-line); border-radius: 6px;
    padding: 2px 8px; font-size: .72rem;
}
.brt-mod-chip--bad { color: var(--lost); border-color: rgba(255,93,108,.4); }

.brt-empty { color: var(--muted); font-style: italic; }
.brt-error { color: var(--lost); }

/* ---------- Wave selector ---------- */
.brt-wave-selector {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    margin-bottom: 14px;
    /* Long endless runs have many waves: keep them on a single line and scroll HORIZONTALLY
       rather than wrapping into several rows that push the screen down. */
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 8px;
    /* Firefox: thin scrollbar in the theme colors (thumb, track). */
    scrollbar-width: thin;
    scrollbar-color: var(--panel-line) var(--panel);
}
/* WebKit/Chromium: a slim, rounded scrollbar that matches the dark panels rather than the
   browser default. */
.brt-wave-selector::-webkit-scrollbar { height: 8px; }
.brt-wave-selector::-webkit-scrollbar-track { background: var(--panel); border-radius: 6px; }
.brt-wave-selector::-webkit-scrollbar-thumb {
    background: var(--panel-line);
    border-radius: 6px;
    border: 1px solid var(--panel);
}
.brt-wave-selector::-webkit-scrollbar-thumb:hover { background: var(--accent); }
.brt-wave-label { color: var(--muted); margin-right: 6px; flex: none; }
.brt-wave-btn {
    flex: none;
    display: inline-flex; flex-direction: column; align-items: center; gap: 2px;
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--panel-line);
    border-radius: 6px;
    padding: 4px 13px;
    cursor: pointer;
    min-width: 48px;
    font-size: .85rem;
}
.brt-wave-btn:hover { background: var(--panel-2); }
/* Wave-modifier icons drawn on the wave button (and a min-height so numberless
   rows still line up with rows that have icons). */
.brt-wave-mods { display: flex; gap: 2px; align-items: center; min-height: 18px; }
.brt-wave-mod { width: 18px; height: 18px; image-rendering: pixelated; }
.brt-wave-num { line-height: 1; }
.brt-wave-btn.active {
    background: var(--accent);
    color: #1a1326;
    border-color: var(--accent);
    font-weight: 700;
}
/* Replays of a wave (Broken Hourglass / retry) get a dashed amber outline. */
.brt-wave-btn.replay { border-color: #d0a042; border-style: dashed; }
.brt-wave-btn.replay.active { background: #d0a042; border-style: solid; }
/* A wave that was retried after dying (recorded once, with a retry count). */
.brt-wave-btn.retried { border-color: #ffcf5a; }
.brt-wave-btn.retried.active { background: #ffcf5a; }

/* ---------- Run-end screen ---------- */
.brotato-screen {
    background: #18152296;
    border: 1px solid var(--panel-line);
    border-radius: 12px;
    overflow: visible;
}

.brt-titlebar {
    background: linear-gradient(180deg, #2b2440, #20192f);
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--panel-line);
    font-size: 1.25rem;
}
.brt-outcome { font-weight: 800; }
.brt-outcome.won { color: var(--won); }
.brt-outcome.lost { color: var(--lost); }
.brt-sep { color: var(--muted); }
.brt-zone { color: #c9b8ff; font-weight: 600; }
.brt-character { font-weight: 600; }
.brt-title-right { margin-left: auto; color: var(--muted); }
/* Wave modifiers shown in the titlebar when viewing a specific wave. */
.brt-title-mods { display: inline-flex; align-items: center; gap: 6px; }
.brt-title-mod { width: 24px; height: 24px; image-rendering: pixelated; }
.brt-title-mod-label { font-size: .9rem; color: #e0b0ff; margin-right: 4px; }

.brt-body {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1fr;
    gap: 1px;
    background: var(--panel-line);
}

.brt-panel {
    background: var(--panel);
    padding: 18px 20px;
    min-height: 560px;
}
.brt-panel h2 {
    font-size: 1.3rem;
    margin: 2px 0 14px;
}
.brt-panel h3 {
    font-size: .9rem;
    color: var(--muted);
    margin: 18px 0 8px;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* Weapons/Items sort control */
.brt-loadout-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.brt-loadout-head h2 { margin-bottom: 8px; }
.brt-sort { display: flex; gap: 6px; }
.brt-sort-btn {
    background: var(--panel);
    color: var(--muted);
    border: 1px solid var(--panel-line);
    border-radius: 6px;
    padding: 4px 10px;
    cursor: pointer;
    font-size: .8rem;
}
.brt-sort-btn:hover { background: var(--panel-2); color: var(--text); }
.brt-sort-btn.active {
    background: var(--accent);
    color: #1a1326;
    border-color: var(--accent);
    font-weight: 700;
}

/* Stats */
.brt-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.brt-tab {
    background: transparent;
    color: var(--muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 5px 10px;
    cursor: pointer;
    font-size: .9rem;
}
.brt-tab.active { color: var(--text); border-bottom-color: var(--accent); font-weight: 700; }

.brt-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 2px;
    border-bottom: 1px solid #2c2640;
    font-size: .95rem;
    color: #d7d2ea;   /* default; an inline color (green/red/purple) overrides name+value */
}
/* Name and value inherit the row color so the whole row is tinted, like in-game. */
.brt-stat-name { display: flex; align-items: center; gap: 8px; color: inherit; }
.brt-stat-icon { width: 18px; height: 18px; image-rendering: pixelated; }
.brt-stat-bullet { color: var(--accent); }
.brt-stat-bullet.curse { color: #ff6fae; }
.brt-stat-val { font-variant-numeric: tabular-nums; font-weight: 600; color: inherit; }
.brt-scale-icon { width: 15px; height: 15px; image-rendering: pixelated; vertical-align: middle; margin-left: 3px; }

/* Weapons + items tiles */
.brt-tiles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}
.brt-tile {
    position: relative;
    z-index: 1;
    background: var(--panel-2);
    border: 2px solid var(--panel-line);
    border-radius: 8px;
    width: 76px;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 22px #00000040;
}
.brt-tile:hover { z-index: 30; }
.brt-tile.cursed { box-shadow: inset 0 0 16px #ff2b6b66, 0 0 6px #ff2b6b55; }
.brt-tile-img {
    width: 58px;
    height: 58px;
    object-fit: contain;
    image-rendering: pixelated;
}
.brt-tile-img.missing { display: none; }
.brt-tile-name {
    display: none;
    font-size: .68rem;
    line-height: 1.05;
    text-align: center;
    color: var(--text);
    padding: 3px;
}
.brt-tile-name.show { display: block; }
.brt-count-badge {
    position: absolute; top: 4px; right: 6px;
    font-size: .72rem; font-weight: 800; color: #fff;
    background: #00000080; border-radius: 4px; padding: 0 4px;
}
.brt-curse-badge {
    position: absolute; top: 2px; left: 2px;
    width: 16px; height: 16px;
    image-rendering: pixelated;
    filter: drop-shadow(0 1px 1px #000);
}
.brt-banned-title { margin-top: 14px; opacity: .85; }
.brt-tile--banned .brt-tile-img { filter: grayscale(1); opacity: .5; }
.brt-banned-mark {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 2rem; color: #ff5b5b; opacity: .8; pointer-events: none;
    text-shadow: 0 1px 2px #000;
}

/* Hover popover for weapon/item details */
.brt-pop {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    width: 170px;
    background: #15111fF2;
    border: 1px solid var(--panel-line);
    border-radius: 8px;
    padding: 8px 10px;
    box-shadow: 0 6px 18px #000a;
    z-index: 40;
    pointer-events: none;
    text-align: left;
}
.brt-tile:hover .brt-pop { display: block; }
.brt-pop-title { font-weight: 700; font-size: .82rem; line-height: 1.1; }
.brt-pop-sub { color: var(--muted); font-size: .72rem; margin-bottom: 5px; }
.brt-pop-row {
    display: flex; justify-content: space-between; gap: 10px;
    font-size: .76rem; padding: 1px 0;
}
.brt-pop-row span:first-child { color: var(--muted); }
.brt-pop-row.dmg span:last-child { color: #ffcf66; font-weight: 700; }
.brt-pop-row.gen span:last-child { color: var(--won); font-weight: 700; }
.brt-pop-row.curse span:last-child { color: #ca61ff; font-weight: 700; }
.brt-pop-empty { color: var(--muted); font-size: .72rem; font-style: italic; }
.brt-pop-desc {
    margin-top: 6px; padding-top: 6px;
    border-top: 1px solid rgba(255,255,255,.08);
    color: #d8d2c0; font-size: .74rem; line-height: 1.4; white-space: pre-line;
}
/* Inline stat icons embedded in item/weapon descriptions ([img] BBCode). */
.brt-desc-icon { width: 14px; height: 14px; image-rendering: pixelated; vertical-align: -2px; }

/* Elite / boss kill lists */
.brt-kill-list { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.brt-kill {
    position: relative;
    width: 44px; height: 44px;
    background: var(--panel-2);
    border: 1px solid var(--panel-line);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
}
.brt-kill img { width: 34px; height: 34px; object-fit: contain; image-rendering: pixelated; }
/* Level-up choices: tier/rarity-colored border (color set inline). */
.brt-kill--tier { border-width: 2px; border-style: solid; }
.brt-kill-count {
    position: absolute; bottom: 1px; right: 2px;
    font-size: .68rem; font-weight: 800; color: #fff;
    text-shadow: 0 1px 2px #000;
}

/* Killed-by */
.brt-killedby { display: flex; align-items: center; gap: 10px; }
.brt-killedby-img {
    width: 48px; height: 48px; object-fit: contain; image-rendering: pixelated;
    background: #2a1414; border: 1px solid #5a1f1f; border-radius: 8px; padding: 3px;
}
.brt-killedby span { color: var(--lost); font-weight: 700; }
/* Killed by a cursed enemy: purple text + an inline curse icon. */
.brt-killedby.cursed span { color: #ca61ff; }
.brt-killedby.cursed .brt-killedby-img { border-color: #6b2f8a; background: #211430; }
.brt-killedby .brt-curse-badge { position: static; width: 18px; height: 18px; }

/* Character shown as its own item tile (it can carry value stats, e.g. Lich). */
.brt-tile--character { box-shadow: inset 0 0 0 2px var(--accent); }
.brt-char-badge {
    position: absolute; top: 3px; left: 3px;
    font-size: .55rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
    color: #1a1326; background: var(--accent); border-radius: 4px; padding: 0 4px;
}

/* Expandable enemy-kill overview */
.brt-expander {
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    gap: 6px;
}
.brt-expander:hover { color: #fff; }
.brt-expander-arrow { color: var(--accent); font-size: .8rem; width: 12px; }
.brt-kill-rows {
    max-height: 260px;
    overflow-y: auto;
    border: 1px solid var(--panel-line);
    border-radius: 8px;
    padding: 4px;
    background: #181423;
}
.brt-kill-rows::-webkit-scrollbar { width: 8px; }
.brt-kill-rows::-webkit-scrollbar-thumb { background: var(--panel-line); border-radius: 4px; }
.brt-kill-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 6px;
    border-bottom: 1px solid #2c2640;
}
.brt-kill-row:last-child { border-bottom: none; }
.brt-kill-row img { width: 28px; height: 28px; object-fit: contain; image-rendering: pixelated; }
.brt-kill-row-name { flex: 1; font-size: .85rem; color: #d7d2ea; }
.brt-kill-row-count { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; }
/* Percentage-of-total column shown beside each breakdown row. */
.brt-kill-row-pct { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; min-width: 58px; text-align: right; }
/* Source category tag in the damage-by-source breakdown (Weapon / Item / Character / …). */
.brt-src-cat { color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; margin-left: 4px; }

/* Cursed enemies are tracked distinctly from their normal counterparts. */
.brt-kill-row.cursed .brt-kill-row-name { color: #ca61ff; }
.brt-kill-row.cursed img { outline: 1px solid rgba(202, 97, 255, .55); border-radius: 4px; }

/* Level-up choices header: heading + sort toggle on one row (matches .brt-loadout-head). */
.brt-levelup-head {
    display: flex; align-items: baseline; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}
.brt-levelup-head h3 { margin-bottom: 8px; }

/* Progress / summary */
.brt-hp { margin-bottom: 12px; }
.brt-hp-bar {
    position: relative;
    background: #3a1414;
    border: 1px solid #5a1f1f;
    border-radius: 6px;
    height: 22px;
    overflow: hidden;
}
.brt-hp-fill { background: var(--hp); height: 100%; }
.brt-hp-text {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 700; text-shadow: 0 1px 2px #000;
}
.brt-kv {
    display: flex; justify-content: space-between;
    padding: 4px 2px; font-size: .88rem;
    border-bottom: 1px solid #2c2640;
}
.brt-kv span:first-child { color: var(--muted); }
.brt-kv.set-active span:last-child { color: var(--won); font-weight: 700; }
.brt-kv.death span:last-child { color: var(--lost); }
.brt-kv--retry span:last-child { color: #ffcf5a; font-weight: 700; }

@media (max-width: 900px) {
    .brt-body { grid-template-columns: 1fr; }
}

/* ---------- Top navigation ---------- */
.brt-nav {
    display: flex; align-items: center; gap: 18px;
    padding: 10px 22px;
    background: var(--panel);
    border-bottom: 1px solid var(--panel-line);
}
.brt-nav-brand { font-weight: 700; color: var(--text); margin-right: 8px; letter-spacing: .02em; }
.brt-nav-link {
    color: var(--muted); text-decoration: none; font-size: .95rem;
    padding: 4px 2px; border-bottom: 2px solid transparent;
}
.brt-nav-link:hover { color: var(--text); }
.brt-nav-link.active { color: var(--text); border-bottom-color: var(--accent); }

/* ---------- Statistics page ---------- */
.brt-filters input[type="number"] {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--panel-line);
    border-radius: 6px;
    padding: 7px 10px;
    width: 110px;
    font-size: .95rem;
}

.brt-winloss-card {
    display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 18px;
}
.brt-winloss-main { text-align: center; min-width: 130px; }
.brt-winrate { font-size: 3rem; font-weight: 800; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.brt-winrate-pct { font-size: 1.4rem; margin-left: 2px; }
.brt-winrate-label { color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.brt-winloss-detail { flex: 1; min-width: 240px; }
.brt-wl-bar {
    display: flex; height: 14px; border-radius: 7px; overflow: hidden;
    background: var(--panel-2); border: 1px solid var(--panel-line);
}
.brt-wl-bar .won { background: var(--won); }
.brt-wl-bar .lost { background: var(--lost); }
.brt-wl-legend { display: flex; gap: 18px; margin-top: 8px; font-size: .9rem; font-weight: 600; }
.brt-wl-legend .won { color: var(--won); }
.brt-wl-legend .lost { color: var(--lost); }
.brt-wl-legend .muted { color: var(--muted); }
.brt-card-note { color: var(--muted); font-size: .75rem; font-style: italic; margin: 8px 0 0; }

.brt-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
    gap: 16px;
    /* Each card hugs its own content height instead of stretching to the tallest card in the
       row — so shorter cards (e.g. most common / most banned items) don't show empty space. */
    align-items: start;
}
.brt-stat-card {
    background: var(--panel);
    border: 1px solid var(--panel-line);
    border-radius: 12px;
    padding: 14px 16px;
}
.brt-stat-card h2 { font-size: 1.05rem; margin: 0 0 2px; }
.brt-card-sub { color: var(--muted); font-size: .76rem; margin: 0 0 10px; }
/* Card header with an inline per-card filter (e.g. the item filter on max value by item). */
.brt-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brt-card-filter {
    background: var(--panel-2); color: var(--text);
    border: 1px solid var(--panel-line); border-radius: 6px;
    padding: 4px 8px; font-size: .8rem; max-width: 55%;
}

.brt-srows { max-height: 360px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--panel-line) var(--panel); }
.brt-srows::-webkit-scrollbar { width: 8px; }
.brt-srows::-webkit-scrollbar-thumb { background: var(--panel-line); border-radius: 4px; }
.brt-srow {
    display: flex; align-items: center; gap: 8px;
    padding: 3px 4px; border-bottom: 1px solid #2c2640;
}
.brt-srow:last-child { border-bottom: none; }
.brt-srow img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; flex: none; }
.brt-srow-name { flex: 1; font-size: .85rem; color: #d7d2ea; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brt-srow-bar { flex: none; width: 84px; height: 7px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.brt-srow-fill { height: 100%; background: var(--accent); border-radius: 4px; }
.brt-srow-val { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 64px; text-align: right; font-size: .85rem; }
/* Cursed enemies are tracked distinctly from their normal counterparts. */
.brt-srow.cursed .brt-srow-name { color: #ca61ff; }
.brt-srow.cursed img { outline: 1px solid rgba(202, 97, 255, .55); border-radius: 4px; }

/* Rows that link to the run that reached a "max" value. */
.brt-row-link { cursor: pointer; }
.brt-row-link:hover { background: var(--panel-2); border-radius: 4px; }

/* Toggleable type filters (damage-by-source: weapon / item / character / burning / …). */
.brt-cat-toggles { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.brt-cat-toggle {
    background: var(--panel-2); color: var(--muted);
    border: 1px solid var(--panel-line); border-radius: 999px;
    padding: 2px 10px; font-size: .72rem; cursor: pointer;
    text-transform: uppercase; letter-spacing: .03em;
}
.brt-cat-toggle:hover { color: var(--text); }
.brt-cat-toggle.active { background: rgba(185, 139, 255, .18); color: var(--accent); border-color: var(--accent); }

/* Deaths-by-wave rows use a small wave-number chip in place of an icon. */
.brt-srow-wave {
    flex: none; width: 26px; height: 26px; display: flex; align-items: center; justify-content: center;
    background: var(--panel-2); border-radius: 6px; font-size: .72rem; font-weight: 700; color: var(--muted);
}

/* ---------- Pager ---------- */
.brt-pager {
    display: flex; align-items: center; gap: 8px;
    margin: 8px 0; flex-wrap: wrap;
}
.brt-pager-spacer { flex: 1; }
.brt-btn:disabled { opacity: .4; cursor: default; }
.brt-btn:disabled:hover { background: var(--panel-2); }

/* Endless-mode marker in the runs table. */
.brt-pill--mode {
    background: rgba(185, 139, 255, .15);
    color: var(--accent);
    margin-left: 6px;
}
