.login-screen { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 18%, var(--bg)), var(--bg)); }
.login-card { width: min(400px, 100%); }

/* Dashboard: the page itself never scrolls — the menu and the main section scroll on their own. */
body:has(> .shell:not([hidden])) { height: 100vh; height: 100dvh; overflow: hidden; display: flex; flex-direction: column; }
.shell { display: grid; grid-template-columns: 240px 1fr; flex: 1; min-height: 0; }
.sidebar { min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 12px; padding: 16px 12px; background: var(--surface); border-right: 1px solid var(--border); }
.sb-brand { display: flex; gap: 10px; align-items: center; padding: 4px 8px 12px; border-bottom: 1px solid var(--border); }
.sb-brand .logo { font-size: 1.6rem; }
.sb-brand div { display: flex; flex-direction: column; min-width: 0; }
.sb-brand strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#side-nav { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; margin-right: -6px; padding-right: 6px; }
#side-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-weight: 600; }
#side-nav a:hover { background: var(--surface-2); }
#side-nav a.active { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); }
.count { margin-left: auto; background: var(--bad); color: #fff; border-radius: 99px; font-size: 0.72rem; padding: 0 7px; line-height: 1.6; }
.count:empty { display: none; }
.sb-foot { display: flex; flex-direction: column; gap: 6px; }
.live { font-size: 0.75rem; text-align: center; font-weight: 700; }
.live.on { color: var(--ok); } .live.off { color: var(--muted); }

.content { padding: 24px; min-width: 0; width: 100%; }
.page-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.filters input, .filters select { width: auto; min-width: 160px; }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
.receipt-img { max-width: 100%; border-radius: 8px; }

/* games */
.games { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.gcard { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.gcard .thumb { position: relative; aspect-ratio: 16 / 9; background-size: cover; background-position: center; display: flex; gap: 6px; align-items: center; justify-content: center; padding: 12px; }
.gcard .thumb img { width: 20%; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.5)); }
.gcard .info { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gcard .info .row { gap: 6px; }
.gcard.disabled .thumb { filter: grayscale(1) opacity(0.6); }

.template-pick { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 16px; }
.template-pick label { border: 2px solid var(--border); border-radius: 12px; padding: 12px; cursor: pointer; display: block; }
.template-pick label:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }
.template-pick input { width: auto; margin-right: 6px; }
.template-pick p { margin: 6px 0 0; font-size: 0.82rem; color: var(--muted); }
.colors { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.colors .field { margin-bottom: 0; }
.sym-table td { padding: 8px; }
.sym-prev { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; font-size: 2rem; background: var(--surface-2); overflow: hidden; }
.sym-prev img { width: 100%; height: 100%; object-fit: contain; }
.sym-table input[type="file"] { font-size: 0.8rem; padding: 6px; }
.bg-prev { width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: var(--surface-2) center / cover; border: 1px solid var(--border); margin-bottom: 8px; }
.logo-prev { height: 60px; display: flex; align-items: center; margin-bottom: 8px; }
.logo-prev img { max-height: 60px; }
.sticky-actions { position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; display: flex; gap: 8px; justify-content: flex-end; border-top: 1px solid var(--border); margin-top: 16px; }

@media (max-width: 860px) {
  body:has(> .shell:not([hidden])) { height: auto; overflow: visible; display: block; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { overflow: visible; }
  .main-col { overflow: visible; }
  #side-nav { flex-direction: row; flex-wrap: wrap; }
  .content { padding: 16px; }
}

.main-col { min-width: 0; min-height: 0; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 10px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar select { width: auto; min-width: 200px; padding: 6px 10px; }
.nav-section { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 12px 10px 4px; font-weight: 700; }
.sb-user { text-align: left; color: var(--muted); }
.sb-user:hover { color: var(--brand); }
.bets-row { display: grid; grid-template-columns: 110px 1fr 190px auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.bets-row:last-child { border-bottom: none; }
.bets-row input[type="text"] { font-family: ui-monospace, Consolas, monospace; font-size: 0.85rem; }
.bets-row.off input, .bets-row.off select, .bets-row.off .btn { opacity: 0.4; pointer-events: none; }
.bets-row .summary { grid-column: 2 / -1; font-size: 0.8rem; color: var(--muted); margin-top: -4px; }
/* jackpot pools per bet amount */
.bet-pools { grid-column: 2 / -1; display: grid; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2); }
.bets-row.off .bet-pools { opacity: 0.4; pointer-events: none; }
.bp-head { font-size: 0.85rem; }
.bp-head .muted { font-size: 0.78rem; }
.bp-table { display: grid; gap: 2px 6px; align-items: center; overflow-x: auto; }
.bp-th { font-size: 0.78rem; font-weight: 700; color: var(--muted); text-align: center; padding: 4px 6px; }
.bp-th:first-child { text-align: left; }
.bp-col { border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: 0.8rem; font-weight: 800; cursor: pointer; }
.bp-col:hover { border-color: #f5b301; }
.bp-bet { font-variant-numeric: tabular-nums; font-size: 0.85rem; font-weight: 600; padding: 4px 0; }
.bp-cell { display: flex; justify-content: center; margin: 0; padding: 4px 0; border-radius: 6px; cursor: pointer; }
.bp-cell:hover { background: var(--surface); }
.bp-cell input { width: 18px; height: 18px; accent-color: #f5b301; margin: 0; }
@media (max-width: 700px) { .bet-pools { grid-column: 1; } }
@media (max-width: 700px) { .bets-row { grid-template-columns: 1fr; } .bets-row .summary { grid-column: 1; } }
.brand-logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 900; overflow: hidden; flex: none; }
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0 10px; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.total-row td { border-top: 2px solid var(--border); font-weight: 700; background: var(--surface-2); }
.lbl { font-weight: 600; font-size: 0.85rem; display: block; margin-bottom: 6px; }
.card-grid .gcard { height: 100%; }
.sticky-actions .error-text { align-self: center; margin-right: auto; }

/* settings */
fieldset.plain { border: 0; padding: 0; margin: 0; min-width: 0; }
.logo-box { width: 72px; height: 72px; border-radius: 14px; border: 1px dashed var(--border); display: grid; place-items: center; overflow: hidden; background: var(--surface-2); font-size: 0.75rem; text-align: center; }
.logo-box img { width: 100%; height: 100%; object-fit: contain; }
.site-preview { width: 260px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); background: #0b0d16; color: #fff; margin: 0 0 14px 12px; font-size: 0.8rem; }
.site-preview .sp-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px; font-weight: 800; }
.site-preview .sp-btn { background: var(--sp1); padding: 2px 8px; border-radius: 6px; }
.site-preview .sp-hero { margin: 0 10px 10px; padding: 16px; border-radius: 10px; font-weight: 900; background: linear-gradient(120deg, var(--sp1), #3a0ca3); border-bottom: 3px solid var(--sp2); }
.steps-list { padding-left: 20px; line-height: 1.7; }
.pending-banner { margin: 0 0 16px; padding: 12px 16px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-weight: 600; border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); }

/* role permission matrix */
.perm-matrix th, .perm-matrix td { padding: 7px 10px; text-align: center; }
.perm-matrix th:first-child, .perm-matrix td.special { text-align: left; }
.perm-matrix tbody th { font-weight: 600; white-space: nowrap; }
.perm-matrix td.na { color: var(--muted); opacity: 0.5; }
.perm-matrix td.special .check { margin: 0 0 2px; font-size: 0.85rem; white-space: nowrap; }
.perm-matrix thead .link { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 700; }
.perm-matrix input[type="checkbox"] { width: 16px; height: 16px; }
.perm-matrix input:disabled { opacity: 0.35; }
.row-toggle { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.login-card .tabs { margin-top: 4px; }

/* game math editor */
.math-table th, .math-table td { padding: 6px 8px; vertical-align: middle; }
.math-table tbody th { font-weight: 600; white-space: nowrap; }
.math-table td { min-width: 84px; }
.math-table.narrow { width: auto; }
.math-table .mnum { width: 84px; padding: 5px 8px; font-variant-numeric: tabular-nums; }
.math-table small.p, .math-table td.p { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 2px; }
.math-table td.p { display: table-cell; }
.math-table tfoot th, .math-table tfoot td { font-weight: 700; border-top: 2px solid var(--border); }
.msym { display: inline-grid; place-items: center; width: 26px; height: 26px; vertical-align: middle; font-size: 1.1rem; }
.msym img { width: 26px; height: 26px; object-fit: contain; }
.grid-2.tight { gap: 24px; }
.sim-stats { margin: 16px 0 8px; }
.sim-stats .stat .value { font-size: 1.4rem; }
.rtp-ok .value, .rtp-text-ok { color: var(--ok); }
.rtp-warn .value, .rtp-text-warn { color: var(--warn); }
.rtp-bad .value, .rtp-text-bad { color: var(--bad); }
.sim-warn { padding: 10px 14px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-weight: 600; }
.dist { margin: 14px 0 0; }
.dist figcaption { margin-bottom: 8px; }
.chart-wrap { position: relative; max-width: 760px; }
.chart-wrap svg { width: 100%; height: auto; display: block; }
.chart-wrap .grid { stroke: var(--border); stroke-width: 1; }
.chart-wrap .axis { fill: var(--muted); font-size: 11px; }
.chart-wrap .mark { fill: var(--brand); }
.chart-wrap .hit { fill: transparent; }
.chart-wrap .bar.on .mark { fill: color-mix(in srgb, var(--brand) 75%, var(--text)); }
.chart-tip { position: absolute; pointer-events: none; padding: 6px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 0.82rem; white-space: nowrap; }
tr.sel td { background: color-mix(in srgb, var(--brand) 10%, transparent); }

/* billing */
.plans { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.plan { border: 1px solid var(--border); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.plan.current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan h3 { margin: 0; }
.plan .price { font-size: 1.6rem; font-weight: 800; }
.plan .price small { font-size: 0.85rem; color: var(--muted); font-weight: 500; }
.plan ul { margin: 4px 0 10px; padding-left: 18px; color: var(--muted); }
.plan ul.plan-features { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 3px; }
.plan-features li { display: flex; align-items: baseline; gap: 8px; }
.plan-features li.no { color: color-mix(in srgb, var(--muted) 75%, transparent); }
.plan > .btn, .plan > .chip { margin-top: auto; align-self: flex-start; }
.stat .usage { display: flex; gap: 14px; font-size: 1.15rem; }
.stat .usage small { font-size: 0.7rem; color: var(--muted); font-weight: 600; }
.bad-banner { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.bank-opt { display: block; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.bank-opt:has(input:checked) { border-color: var(--brand); }
.bank-opt input { width: auto; }
.impersonation-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: #b45309; color: #fff; font-size: 0.9rem; }
.impersonation-bar .btn { color: #111; background: #fff; border-color: #fff; }

/* sounds editor */
.sound-table td { vertical-align: middle; }
.sound-table select { width: auto; min-width: 170px; }
.sound-table input[type="file"] { width: auto; max-width: 260px; font-size: 0.8rem; padding: 6px; }
.usdt-note { padding: 10px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); margin-bottom: 12px; font-size: 0.9rem; }
.wallet-opt { display: flex; gap: 14px; align-items: center; padding: 12px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; cursor: pointer; }
.wallet-opt:has(input:checked) { border-color: var(--brand); }
.wallet-opt input { width: auto; }
.wallet-opt img { background: #fff; border-radius: 8px; padding: 4px; flex: none; }
.wallet-opt .addr { word-break: break-all; font-size: 0.85rem; }

/* reports */
.report-filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
/* Report sections are spaced evenly by the container, not by each block's own margins. */
#r-body { display: flex; flex-direction: column; gap: 16px; }
#r-body > * { margin: 0; }
.report-filters .filters { margin: 0; flex: 1 1 auto; align-items: center; }
.report-filters select, .report-filters input[type="search"] { width: auto; min-width: 150px; padding: 7px 10px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.seg button { border: 0; background: none; padding: 6px 12px; font: inherit; font-size: 0.85rem; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.active { background: color-mix(in srgb, var(--brand) 15%, transparent); color: var(--brand); }
.chart-wrap .zero { stroke: var(--muted); stroke-width: 1; }
.chart-wrap .bar.neg .mark { fill: color-mix(in srgb, var(--bad) 75%, var(--surface)); }
.card .chart-wrap { max-width: none; }
.replay-grid { width: auto; border-collapse: separate; border-spacing: 4px; }
.replay-grid td { padding: 0; border: 0; width: 56px; height: 56px; border-radius: 10px; background: var(--surface-2); text-align: center; }
.replay-grid td.hot { box-shadow: 0 0 0 2px var(--accent, #ffd23f); background: color-mix(in srgb, #ffd23f 18%, var(--surface-2)); }
.replay-grid img { width: 50px; height: 50px; object-fit: contain; display: block; margin: 3px auto; }
.replay-wins { margin: 6px 0 0; padding-left: 18px; font-size: 0.85rem; }

/* two math sets + profit/loss simulator */
.math-sets { margin-bottom: 14px; }
.math-sets button { padding: 8px 16px; font-size: 0.92rem; }
.sim-controls { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; margin-bottom: 6px; }
.sim-controls .field { margin: 0; }
.sim-controls select { width: auto; }
.sim-sub { margin: 22px 0 0; }
.chart-wrap .zero { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 4; }
.chart-wrap .line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; }
.chart-wrap .cross { stroke: var(--muted); stroke-width: 1; }
.chart-wrap .dot { fill: var(--brand); stroke: var(--surface); stroke-width: 2; }
.chart-wrap .hit-area { fill: transparent; }
/* demo game cover */
.gcard .thumb.cover { aspect-ratio: 4 / 3; }
.cover-edit { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.cover-prev { position: relative; width: 168px; aspect-ratio: 4 / 5; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; display: flex; align-items: flex-end; flex: none; }
.cover-prev span { width: 100%; padding: 8px 10px; font-weight: 800; font-size: 0.85rem; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.85)); }
/* third-level tabs inside a math set: small pills */
.subtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.card + .subtabs { margin-top: 16px; }
.subtabs button { padding: 6px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font: inherit; font-size: 0.86rem; font-weight: 700; cursor: pointer; }
.subtabs button:hover { color: var(--text); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.subtabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: var(--brand-ink, #fff); }
.llm-style { width: 100%; min-height: 96px; resize: vertical; font: inherit; line-height: 1.45; }
.llm-text { width: 100%; min-height: 420px; margin-top: 12px; font-size: 0.8rem; line-height: 1.45; white-space: pre-wrap; resize: vertical; }
/* LLM message: the update popup */
.zip-row { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; }
.zip-ok { color: var(--good, #2fbf71); font-weight: 900; }
.zip-h { margin: 16px 0 8px; }
.zip-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.zip-file { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: 10px; font-size: 0.86rem; word-break: break-all; }
.zip-file.warn { border-color: color-mix(in srgb, #f5a524 60%, var(--border)); }
.zip-thumb { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 8px; background: repeating-conic-gradient(rgba(127,127,127,.18) 0 25%, transparent 0 50%) 0 0 / 12px 12px; }
.zip-thumb img { max-width: 100%; max-height: 100%; }
.zip-progress { padding: 18px 4px; }
.zip-step { font-weight: 700; margin-bottom: 10px; }
.zip-note { margin-top: 8px; }
.progress { height: 10px; border-radius: 99px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.progress span { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width 0.25s ease; }
.progress.indeterminate span { background: linear-gradient(90deg, transparent, var(--brand), transparent); background-size: 40% 100%; background-repeat: no-repeat; animation: progress-slide 1.1s linear infinite; }
@keyframes progress-slide { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .progress.indeterminate span { animation: none; background: var(--brand); opacity: 0.6; } }
.zip-done { display: flex; gap: 14px; align-items: flex-start; padding: 6px 0; }
.zip-done-icon { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: var(--brand-ink, #fff); font-weight: 900; }
.llm-steps { margin: 10px 0 0; padding-left: 20px; font-size: 0.86rem; } .llm-steps li { margin: 3px 0; }
/* simulation result tabs (inside the Simulation card) */
.rtabs { display: flex; gap: 2px; margin: 14px 0 4px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.rtabs button { padding: 8px 14px; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; background: none; color: var(--muted); font: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
.rtabs button:hover { color: var(--text); }
.rtabs button[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.count-pill { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--surface-2); color: var(--muted); font-size: 0.72rem; line-height: 1.6; text-align: center; }
.sim-which { margin: 12px 0 0; font-size: 0.86rem; }
.sim-empty { margin: 16px 0 4px; }

/* lobby covers: two shapes */
.cover-slots { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cover-slot { display: flex; gap: 16px; align-items: flex-start; }
.cover-prev.square { aspect-ratio: 1; }

/* deposit proof */
.proof-prev img, .proof-thumb { display: block; max-width: 100%; max-height: 260px; border-radius: 10px; border: 1px solid var(--border); margin: 6px 0 12px; }
/* company profit statement */
.statement { width: 100%; }
.statement th { font-weight: 500; text-align: left; color: var(--text); }
.statement td, .statement th { padding: 9px 8px; border-bottom: 1px solid var(--border); }
.statement .total-row th, .statement .total-row td { border-top: 2px solid var(--border); border-bottom: 0; background: var(--surface-2); font-weight: 700; }
.statement th { text-transform: none; letter-spacing: normal; font-size: 0.95rem; }

/* Agent hierarchy tree */
ul.tree { list-style: none; margin: 6px 0 0; padding-left: 22px; border-left: 1px dashed var(--border); }
ul.tree.root { border-left: 0; padding-left: 0; margin: 0; }
ul.tree li { position: relative; padding: 5px 0; }
ul.tree ul.tree li::before { content: ''; position: absolute; left: -22px; top: 16px; width: 16px; border-top: 1px dashed var(--border); }
ul.tree .chip { margin-left: 6px; }
.hint.neg { color: var(--bad, #f87171); }

/* Radio cards (API wallet mode) */
.choice-list { display: grid; gap: 8px; margin-bottom: 12px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; }
.choice input[type=radio] { width: auto; flex: 0 0 auto; margin: 4px 0 0; }
.choice > span { flex: 1; min-width: 0; }
.choice:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, transparent); }

/* Category game picker */
.game-checks { max-height: 300px; overflow: auto; border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; }
.game-checks .check { margin-bottom: 6px; }

.cat-checks { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 12px; }
.cat-checks .check { margin-bottom: 4px; }
