@font-face {
    font-family: Roboto;
    src: url("/demo/roboto.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 800;
    font-display: swap;
}

:root {
    color-scheme: dark;
    font-family: Roboto, Arial, sans-serif;
    font-size: 16px;
    background: #000;
    --header-h: 61px;
    --bet-font-sans: Roboto, Arial, sans-serif;
    --bet-colors-primary-1: #ffffff;
    --bet-colors-primary-2: #000000;
    --bet-colors-secondary-1: #111111;
    --bet-colors-secondary-2: #212121;
    --bet-colors-secondary-3: #797979;
    --bet-colors-accent-1: #00ebaa;
    --bet-colors-accent-2: #f6262e;
    --bet-colors-accent-3: #fff500;
    --bet-text-button: #000000;
    --bet-text-primary: #ffffff;
    --bet-text-secondary: #bcbcbc;
    --bet-text-odd: #00ebaa;
    --bet-rounded-2: 2px;
    --bet-rounded-4: 4px;
    --bet-rounded-6: 6px;
    --bet-rounded-8: 8px;
    --bet-rounded-12: 12px;
    --bet-rounded-24: 24px;
    --bg: #000;
    --panel: #111;
    --raised: #212121;
    --header: #212121;
    --border: rgba(121, 121, 121, .18);
    --border-strong: rgba(121, 121, 121, .35);
    --text: #ffffff;
    --muted: #bcbcbc;
    --muted-2: #797979;
    --accent: #00ebaa;
    --on-accent: #000000;
    --danger: #f6262e;
    --warning: #fff500;
    --info: #0852ff;
    --success: #00eb81;
    --shadow: 0 12px 40px rgba(0, 0, 0, .6);
}

body {
    --accent: #00ebaa;
    --on-accent: #000000;
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    font-size: 14px;
    line-height: 1.25;
    overflow-x: hidden;
}
body[data-theme="mint"] {
    --bg: #000000;
    --panel: #111111;
    --raised: #212121;
    --header: #212121;
    --text: #ffffff;
    --muted: #bcbcbc;
    --muted-2: #797979;
    --accent: #00ebaa;
    --on-accent: #000000;
    --odd: #00ebaa;
    --danger: #f6262e;
    --success: #00EB81;
    --warning: #fff500;
    --cta: #00ebaa;
    --cta-text: #000000;
    --sport-color: #bcbcbc;
    --neutral-rgb: 121, 121, 121;
    --hover: color-mix(in srgb, var(--panel), var(--text) 5%);
    --border: rgba(var(--neutral-rgb), .15);
    --border-strong: rgba(var(--neutral-rgb), .3);
    color-scheme: dark;
}
body[data-theme="violet"] {
    --bg: #000000;
    --panel: #17171c;
    --raised: #2a2a32;
    --header: #2a2a32;
    --text: #ffffff;
    --muted: #bac1db;
    --muted-2: #87879e;
    --accent: #ab47ff;
    --on-accent: #ffffff;
    --odd: #ffffff;
    --danger: #f6262e;
    --success: #00EB81;
    --warning: #fff500;
    --cta: #ab47ff;
    --cta-text: #ffffff;
    --sport-color: #ffffff;
    --neutral-rgb: 135, 135, 158;
    --hover: color-mix(in srgb, var(--panel), var(--text) 5%);
    --border: rgba(var(--neutral-rgb), .15);
    --border-strong: rgba(var(--neutral-rgb), .3);
    color-scheme: dark;
}
body[data-theme="gold"] {
    --bg: #000000;
    --panel: #17171c;
    --raised: #2a2a32;
    --header: #2a2a32;
    --text: #ffffff;
    --muted: #bac1db;
    --muted-2: #87879e;
    --accent: #ffd600;
    --on-accent: #17171c;
    --odd: #ffd600;
    --danger: #f6262e;
    --success: #00EB81;
    --warning: #fff500;
    --cta: #ffd600;
    --cta-text: #000000;
    --sport-color: #ffd600;
    --neutral-rgb: 135, 135, 158;
    --hover: color-mix(in srgb, var(--panel), var(--text) 5%);
    --border: rgba(var(--neutral-rgb), .15);
    --border-strong: rgba(var(--neutral-rgb), .3);
    color-scheme: dark;
}
body[data-theme="sky"] {
    --bg: #070e1f;
    --panel: #141e34;
    --raised: #202b44;
    --header: #202b44;
    --text: #ffffff;
    --muted: #b9bed3;
    --muted-2: #5c6681;
    --accent: #3bb8f7;
    --on-accent: #000000;
    --odd: #ffe500;
    --danger: #f6262e;
    --success: #00EB81;
    --warning: #fff500;
    --cta: #3bb9f8;
    --cta-text: #000000;
    --sport-color: #ffe500;
    --neutral-rgb: 92, 102, 129;
    --hover: color-mix(in srgb, var(--panel), var(--text) 5%);
    --border: rgba(var(--neutral-rgb), .15);
    --border-strong: rgba(var(--neutral-rgb), .3);
    color-scheme: dark;
}
body[data-theme="blue"] {
    --bg: #ffffff;
    --panel: #eeeef2;
    --raised: #d3d5d9;
    --header: #d3d5d9;
    --text: #000000;
    --muted: #5d6574;
    --muted-2: #898d94;
    --accent: #3d87ff;
    --on-accent: #ffffff;
    --odd: #3d87ff;
    --danger: #FF3E33;
    --success: #43AD5E;
    --warning: #FFA800;
    --cta: #3d87ff;
    --cta-text: #ffffff;
    --sport-color: #5d6574;
    --neutral-rgb: 137, 141, 148;
    --hover: color-mix(in srgb, var(--panel), var(--text) 5%);
    --border: rgba(var(--neutral-rgb), .15);
    --border-strong: rgba(var(--neutral-rgb), .3);
    color-scheme: light;
}
body[data-theme="orange"] {
    --bg: #ffffff;
    --panel: #f3f3f3;
    --raised: #e3e3e3;
    --header: #e3e3e3;
    --text: #000000;
    --muted: #656565;
    --muted-2: #9999a1;
    --accent: #ff6b00;
    --on-accent: #ffffff;
    --odd: #ff6b00;
    --danger: #ff3e33;
    --success: #05BC0B;
    --warning: #ff9000;
    --cta: #ff6b00;
    --cta-text: #ffffff;
    --sport-color: #656565;
    --neutral-rgb: 153, 153, 161;
    --hover: color-mix(in srgb, var(--panel), var(--text) 5%);
    --border: rgba(var(--neutral-rgb), .15);
    --border-strong: rgba(var(--neutral-rgb), .3);
    color-scheme: light;
}
body[data-theme="green"] {
    --bg: #ffffff;
    --panel: #f7f7fa;
    --raised: #e5e5ea;
    --header: #e5e5ea;
    --text: #000000;
    --muted: #656565;
    --muted-2: #9999a1;
    --accent: #3abc29;
    --on-accent: #ffffff;
    --odd: #3abc29;
    --danger: #ff3e33;
    --success: #32a44f;
    --warning: #ffa800;
    --cta: #3abc29;
    --cta-text: #ffffff;
    --sport-color: #656565;
    --neutral-rgb: 153, 153, 161;
    --hover: color-mix(in srgb, var(--panel), var(--text) 5%);
    --border: rgba(var(--neutral-rgb), .15);
    --border-strong: rgba(var(--neutral-rgb), .3);
    color-scheme: light;
}
body[data-theme="purple"] {
    --bg: #ffffff;
    --panel: #f7f7fa;
    --raised: #e5e5ea;
    --header: #e5e5ea;
    --text: #000000;
    --muted: #656565;
    --muted-2: #9999a1;
    --accent: #6e00ff;
    --on-accent: #ffffff;
    --odd: #6e00ff;
    --danger: #ff3e33;
    --success: #32a44f;
    --warning: #ffa800;
    --cta: #6e00ff;
    --cta-text: #ffffff;
    --sport-color: #656565;
    --neutral-rgb: 153, 153, 161;
    --hover: color-mix(in srgb, var(--panel), var(--text) 5%);
    --border: rgba(var(--neutral-rgb), .15);
    --border-strong: rgba(var(--neutral-rgb), .3);
    color-scheme: light;
}
body[data-theme="navy"] {
    --bg: #FFFFFF;
    --panel: #F3F4F5;
    --raised: #DEDFE3;
    --header: #DEDFE3;
    --text: #0A1023;
    --muted: #4A4E5D;
    --muted-2: #626677;
    --accent: #191970;
    --on-accent: #FFFFFF;
    --odd: #0A1023;
    --danger: #FF3E33;
    --success: #00A965;
    --warning: #EA8400;
    --cta: #191970;
    --cta-text: #FFFFFF;
    --sport-color: #4A4E5D;
    --neutral-rgb: 98, 102, 119;
    --hover: color-mix(in srgb, var(--panel), var(--text) 5%);
    --border: rgba(var(--neutral-rgb), .15);
    --border-strong: rgba(var(--neutral-rgb), .3);
    color-scheme: light;
}

* { box-sizing: border-box; }
h1, h2, h3, h4, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.ui-icon { width: 16px; height: 16px; flex: none; fill: currentColor; }
.icon-button {
    display: inline-grid; place-items: center; width: 32px; height: 32px;
    border-radius: var(--bet-rounded-8); color: var(--muted);
}
.icon-button:hover { background: rgba(var(--neutral-rgb), .3); color: var(--text); }
.link-button { color: var(--accent); font-size: 12px; font-weight: 600; }
.link-button:hover { text-decoration: underline; }

/* ---------------- Cabeçalho ---------------- */
.topbar {
    position: sticky; top: 0; z-index: 60; height: var(--header-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 16px; background: var(--header);
    border-bottom: 1px solid rgba(var(--neutral-rgb), .15);
}
.brand { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; flex: none; line-height: 1; }
.brand-mark {
    display: inline-flex; align-items: center; justify-content: center;
    height: 14px; padding: 0 6px; border-radius: 4px;
    background: var(--accent); color: var(--bg);
    font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.brand-word { font-size: 22px; font-weight: 900; letter-spacing: -.04em; line-height: .95; white-space: nowrap; color: var(--text); }
.brand-word span { color: var(--accent); }

.appearance-trigger {
    position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 32px; min-width: 32px; padding: 0 8px;
    border-radius: 8px; background: rgba(var(--neutral-rgb), .3);
    color: var(--text); font-size: 12px; font-weight: 400; white-space: nowrap;
}
.appearance-trigger:hover { background: rgba(var(--neutral-rgb), .4); }
.appearance-trigger .ui-icon { width: 16px; height: 16px; flex: none; }

.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.locale { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 12px; text-transform: capitalize; }
.locale .ui-icon { width: 18px; height: 18px; }
.enter {
    display: inline-flex; align-items: center; justify-content: center;
    height: 32px; padding: 0 16px; border-radius: var(--bet-rounded-8);
    background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 700;
}
.enter:hover { filter: brightness(1.08); }
.account-menu { position: relative; }
.account-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-weight: 800; cursor: pointer; overflow: hidden; }
.account-avatar img { width: 100%; height: 100%; object-fit: cover; }
.account-options {
    position: absolute; right: 0; top: 40px; width: 220px; padding: 12px;
    border-radius: var(--bet-rounded-8); background: var(--panel); border: 1px solid var(--border);
    box-shadow: var(--shadow); display: grid; gap: 8px; z-index: 70;
}
.account-options strong { padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.account-options a, .account-options button {
    padding: 8px; border-radius: var(--bet-rounded-6); background: var(--raised);
    font-size: 12px; text-align: left; color: var(--text);
}
.account-options a:hover, .account-options button:hover { background: rgba(255,255,255,.1); }

/* ---------------- Layout ---------------- */
.workspace {
    display: grid; grid-template-columns: 320px minmax(0, 1fr) 320px;
    gap: 16px; padding: 16px; align-items: start;
}
body[data-ticket-open="false"] .workspace { grid-template-columns: 320px minmax(0, 1fr); }
body[data-layout="classic"] .workspace { grid-template-columns: 280px minmax(0, 1fr) 320px; }
body[data-layout="floating"] .workspace { grid-template-columns: 320px minmax(0, 1fr); }
body[data-layout="cards"] .workspace { grid-template-columns: 280px minmax(0, 1fr); }

.categories, .events, .ticket { min-width: 0; }
.categories {
    position: sticky; top: calc(var(--header-h) + 16px);
    display: flex; flex-direction: column; gap: 2px;
    height: calc(100vh - var(--header-h) - 42px);
    background: var(--panel); border-radius: var(--bet-rounded-12); overflow: hidden;
}
.sidebar-panel {
    flex: 1; min-height: 0; overflow-y: auto;
    padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 12px;
    scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
    border-bottom-left-radius: var(--bet-rounded-12); border-bottom-right-radius: var(--bet-rounded-12);
}
.events { min-width: 0; padding-bottom: 24px; }
#list-view, #detail-view { display: flex; flex-direction: column; min-height: 100%; }

/* ---------------- Tabs do topo / categorizador ---------------- */
.top-tabs {
    display: flex; align-items: stretch; gap: 2px; flex: none; height: 40px;
    padding: 0; background: var(--panel); overflow: hidden;
    border-top-left-radius: var(--bet-rounded-12); border-top-right-radius: var(--bet-rounded-12);
}
.top-tabs button {
    position: relative; display: flex; align-items: center; justify-content: center;
    gap: 8px; flex: 1 1 0; min-width: 0; height: 40px; padding: 0 8px;
    background: var(--panel); color: var(--muted); font-size: 14px; font-weight: 500;
    white-space: nowrap;
}
.top-tabs button .ui-icon { width: 18px; height: 18px; flex: none; }
.top-tabs button[aria-pressed="true"] { flex: 0 0 159px; color: var(--text); }
.top-tabs button[aria-pressed="false"] span { display: none; }
.top-tabs button:hover { color: var(--accent); }
.top-tabs button[aria-pressed="true"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
}
.top-tabs button[data-view="mybets"] { display: none; }
.period-tabs { display: none; }
.sport-cards { display: none; }

/* ---------------- Navegação lateral ---------------- */
.category-controls { display: grid; gap: 8px; }
.search {
    display: flex; align-items: center; gap: 16px; height: 32px; padding: 0 16px;
    border: 1px solid rgba(var(--neutral-rgb), .3); border-radius: var(--bet-rounded-8);
    background: rgba(var(--neutral-rgb), .2); color: var(--muted);
}
.search:focus-within { border-color: var(--accent); }
.search .ui-icon { width: 18px; height: 18px; color: var(--muted-2); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--muted); font-size: 14px; }
.search input::placeholder { color: var(--muted-2); }
.period-switch {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 2px;
    border-radius: var(--bet-rounded-8); background: var(--panel);
}
.period-switch button { padding: 7px 4px; border-radius: var(--bet-rounded-6); color: var(--muted); font-size: 12px; }
.period-switch button:hover { color: var(--text); background: var(--raised); }
.period-switch button[aria-pressed="true"] { background: var(--raised); color: var(--text); font-weight: 700; }

.category-list { display: grid; gap: 2px; margin: 0 -12px; }
.category-list button, .league-link {
    display: flex; align-items: center; gap: 10px; width: 100%; min-height: 50px; padding: 0 16px;
    border-radius: 0; background: var(--bg); color: var(--muted);
    text-align: left; font-size: 12px; font-weight: 500;
}
.category-list button:hover, .league-link:hover { color: var(--text); background: var(--hover); }
.category-list button[aria-pressed="true"] { color: var(--text); background: var(--hover); font-weight: 700; }
.category-list button[aria-pressed="true"] .ui-icon { color: var(--accent); }
.category-list .ui-icon { width: 18px; height: 18px; color: var(--muted-2); }
.category-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.category-list small { color: var(--muted-2); font-size: 10px; }
.category-shortcuts { margin-top: 2px; }
.sidebar-section h2 {
    margin: 4px 12px 6px; color: var(--muted-2); font-size: 10px;
    text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
}
.sidebar-section #featured-leagues { display: grid; gap: 2px; }
.league-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
    display: inline-grid; place-items: center; width: 20px; height: 20px; flex: none;
    border-radius: var(--bet-rounded-4); background: var(--raised); color: var(--muted-2);
    font-size: 9px; font-weight: 700; overflow: hidden;
}
.avatar img { width: 100%; height: 100%; object-fit: contain; }
.product-switch { display: none; }
.cards-nav { display: none; }

/* ---------------- Barra de competições ---------------- */
#league-pills {
    position: sticky; top: var(--header-h); z-index: 12; display: flex; gap: 6px;
    padding: 8px 0 12px; overflow-x: auto; scrollbar-width: none;
}
#league-pills::-webkit-scrollbar { display: none; }
#league-pills button {
    display: flex; align-items: center; gap: 6px; flex: none; padding: 6px 12px;
    border-radius: var(--bet-rounded-24); background: var(--raised); color: var(--muted); font-size: 12px;
}
#league-pills button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 700; }
#league-pills .avatar { width: 16px; height: 16px; }
.events-toolbar {
    display: flex; align-items: center; gap: 12px; padding: 4px 0 12px;
}
.events-toolbar h1 { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; margin-right: auto; }
.events-toolbar h1 span { color: var(--accent); font-size: 14px; }
.events-toolbar select {
    padding: 7px 10px; border-radius: var(--bet-rounded-8); border: 1px solid var(--border);
    background: var(--panel); font-size: 12px; color: var(--text);
}
.feed-status {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin-top: 20px; padding: 14px 0; color: var(--muted-2);
    border-top: 1px solid var(--border); font-size: 11px;
}
.empty { margin: 16px 0; padding: 22px; border-radius: var(--bet-rounded-8); background: var(--panel); color: var(--muted); text-align: center; }
.show-all {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 32px;
    margin-top: 4px; border-radius: var(--bet-rounded-8); background: rgba(var(--neutral-rgb), .3);
    color: var(--muted); font-size: 14px; font-weight: 500; transition: color .12s, background .12s;
}
.show-all:hover { color: var(--accent); background: rgba(var(--neutral-rgb), .4); }

/* ---------------- Destaques (Top picks) ---------------- */
.event-rail { margin-bottom: 16px; }
.rail-heading { display: flex; align-items: center; gap: 10px; height: 40px; margin-bottom: 2px; }
.rail-heading h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.rail-heading .ui-icon { width: 18px; height: 18px; color: var(--accent); }
.rail-controls { margin-left: auto; display: flex; gap: 4px; }
.rail-controls .ui-icon { width: 12px; height: 12px; transform: rotate(90deg); color: var(--muted); }
.rail-controls button[data-direction="previous"] .ui-icon { transform: rotate(-90deg); }
.rail-track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 322px;
    gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin;
}

.feature {
    position: relative; display: flex; flex-direction: column; gap: 12px; height: 216px;
    padding: 16px; border-radius: var(--bet-rounded-12); background: var(--panel);
    border: 0; transition: box-shadow .15s, background .15s;
}
.feature:hover { box-shadow: inset 0 0 0 1px var(--border-strong); }
.feature .event-copy { gap: 4px; }
.feature .league-name { font-size: 12px; }
.feature .event-meta { font-size: 11px; }
.feature .teams { display: flex; align-items: center; gap: 8px; }
.feature .team { flex: 1 1 0; min-width: 0; font-size: 14px; font-weight: 700; }
.feature .team .avatar { width: 40px; height: 40px; border-radius: var(--bet-rounded-4); }
.feature .score { font-size: 15px; }
.feature .market-grid { grid-template-columns: 1fr !important; justify-content: stretch; width: 100%; }
.feature .market-box { gap: 6px; }
.feature .market-label { display: none; }
.feature .odd-market { gap: 4px; }
.feature .odd {
    flex-direction: row; justify-content: space-between; gap: 8px;
    height: 50px; min-width: 0; padding: 0 12px;
    background: rgba(var(--neutral-rgb), .15); color: var(--muted);
}
.feature .odd strong { flex: none; font-size: 14px; color: var(--accent); font-weight: 400; }
.feature .odd-label {
    display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis;
    white-space: nowrap; font-size: 14px; color: var(--muted);
}
.feature .odd[aria-pressed="true"] .odd-label { color: var(--on-accent); }
.feature .favorite { position: absolute; top: 12px; right: 12px; margin: 0; }

/* ---------------- Lista de partidas ---------------- */
.sport-tabs {
    display: flex; gap: 2px; height: 40px; margin: 0 0 8px;
    overflow-x: auto; scrollbar-width: none;
}
.sport-tabs::-webkit-scrollbar { display: none; }
.sport-tab {
    display: flex; align-items: center; gap: 6px; flex: none; height: 40px; padding: 0 14px;
    border-radius: var(--bet-rounded-8); background: var(--panel); color: var(--muted);
    font-size: 12px; font-weight: 500; white-space: nowrap;
}
.sport-tab small { color: var(--muted-2); font-size: 10px; }
.sport-tab:hover { color: var(--text); background: var(--hover); }
.sport-tab[aria-pressed="true"] { color: var(--text); background: var(--hover); font-weight: 700; }
.sport-tab[aria-pressed="true"] small { color: var(--accent); }

.league-group { margin-bottom: 2px; }
.league-heading {
    display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 12px; height: 40px; padding: 0 16px;
    border-radius: var(--bet-rounded-8); background: var(--panel);
}
.league-trigger {
    display: flex; align-items: center; gap: 8px; min-width: 0;
    color: var(--text); font-size: 12px; font-weight: 700; text-align: left;
}
.league-trigger > .ui-icon:first-child { width: 16px; height: 16px; color: var(--accent); }
.league-trigger > .ui-icon:last-child { width: 12px; height: 12px; color: var(--muted-2); transform: rotate(180deg); transition: transform .15s; }
.league-trigger[aria-expanded="false"] > .ui-icon:last-child { transform: rotate(0); }
.league-heading:has(.league-trigger[aria-expanded="false"]) .market-head { visibility: hidden; }
.league-trigger .league-name { font-size: 12px; }
.market-head {
    display: grid; grid-template-columns: repeat(var(--market-columns, 3), 115px);
    gap: 2px; justify-content: end; min-width: 349px;
}
.market-head span {
    color: var(--muted-2); font-size: 10px; text-align: center;
    text-transform: uppercase; letter-spacing: .04em;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.league-matches { display: grid; gap: 2px; margin-top: 2px; }

.match {
    position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto;
    align-items: center; gap: 12px; min-height: 118px; padding: 8px 8px 8px 16px;
    border-radius: var(--bet-rounded-8); background: var(--panel);
    border: 1px solid transparent; transition: background .15s;
}
.match:hover { background: var(--hover); }
.event-copy { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding-top: 8px; }
.event-copy .team span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-meta { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font-size: 11px; }
.event-meta > span:first-child { flex: none; }
.live-tag {
    display: inline-flex; align-items: center; gap: 5px; color: var(--danger);
    font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.live-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--danger); box-shadow: 0 0 8px var(--danger); }
.league-name { display: inline-flex; align-items: center; gap: 6px; min-width: 0; color: var(--muted); font-size: 11px; }
.league-name > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.favorite { width: 24px; height: 24px; margin-left: auto; color: var(--muted); }
.favorite[aria-pressed="true"] { color: var(--warning); }
.teams { display: grid; gap: 4px; }
.team { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; font-weight: 500; color: var(--text); }
.team > span:not(.avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team .avatar { width: 24px; height: 24px; }
.score { margin-left: auto; color: var(--text); font-size: 13px; font-weight: 700; }

.market-grid {
    display: grid; grid-template-columns: repeat(var(--market-columns, 3), 115px);
    gap: 2px; justify-content: end;
}
.match .market-grid { grid-template-columns: repeat(3, 115px); }
.match .market-box, .match .odd-market { display: contents; }
.market-box { display: grid; gap: 4px; min-width: 0; }
.market-label {
    display: none; color: var(--muted-2); font-size: 10px; text-transform: uppercase;
    letter-spacing: .04em; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.odd-market { display: flex; gap: 2px; justify-content: stretch; }
.odd {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    flex: 1; min-width: 0; width: 100%; height: 102px; padding: 0 8px;
    border-radius: var(--bet-rounded-8); background: rgba(var(--neutral-rgb), .15); color: var(--muted);
    font-size: 12px; line-height: 1.1; transition: background .12s, color .12s, transform .12s;
}
.match .odd { width: 115px; height: 102px; flex: none; }
.odd:hover:not(:disabled) { background: rgba(var(--neutral-rgb), .3); transform: translateY(-1px); }
.odd strong { font-size: 12px; font-weight: 400; color: var(--accent); }
.odd-label { display: none; }
.odd[aria-pressed="true"] { background: var(--accent); }
.odd[aria-pressed="true"] strong { color: var(--on-accent); font-weight: 700; }
.odd:disabled, .odd.unavailable { background: rgba(var(--neutral-rgb), .08); color: var(--muted-2); }
.odd:disabled strong { color: var(--muted-2); }
.odd[data-changed="true"], .odd.changed strong { color: var(--warning); }

/* ---------------- Detalhe do evento ---------------- */
#detail-view { padding-bottom: 24px; }
.detail-header { padding: 16px; background: var(--panel); border-radius: var(--bet-rounded-12) var(--bet-rounded-12) 0 0; border-bottom: 1px solid var(--border); }
.back-button { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--muted); font-size: 12px; }
.back-button .ui-icon { width: 12px; height: 12px; transform: rotate(180deg); }
.back-button:hover { color: var(--accent); }
.detail-league { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.detail-league .avatar { width: 22px; height: 22px; }
.detail-status { margin-left: auto; color: var(--danger); font-weight: 700; }
.detail-teams { display: flex; align-items: center; gap: 18px; margin-top: 14px; }
.detail-team { display: flex; align-items: center; gap: 10px; font-size: 16px; }
.detail-team .avatar { width: 34px; height: 34px; }
.detail-score { margin-left: 6px; font-size: 20px; font-weight: 800; }
.detail-tabs {
    position: sticky; top: var(--header-h); z-index: 10; display: flex; gap: 3px;
    padding: 8px 12px; background: var(--panel); border-bottom: 1px solid var(--border);
    overflow-x: auto; scrollbar-width: none;
}
.detail-tabs::-webkit-scrollbar { display: none; }
.detail-tab { flex: none; padding: 8px 12px; border-radius: var(--bet-rounded-8); color: var(--muted); font-size: 12px; white-space: nowrap; }
.detail-tab:hover { background: var(--raised); color: var(--text); }
.detail-tab[aria-pressed="true"] { background: var(--raised); color: var(--accent); font-weight: 700; }
.detail-search {
    width: calc(100% - 32px); margin: 12px 16px 0; padding: 9px 12px;
    border: 1px solid var(--border); border-radius: var(--bet-rounded-8);
    background: var(--panel); color: var(--text); font-size: 12px;
}
.detail-search::placeholder { color: var(--muted-2); }
.detail-content { padding: 12px 16px 0; display: grid; gap: 10px; align-content: start; }
.detail-section-title { font-size: 14px; margin: 4px 0; }
.stat-row, .market-table {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 12px; border-radius: var(--bet-rounded-8); background: var(--panel);
    font-size: 12px; color: var(--muted);
}
.market-group { border: 1px solid var(--border); border-radius: var(--bet-rounded-8); background: var(--panel); overflow: hidden; }
.market-group > summary {
    padding: 11px 13px; font-size: 12px; font-weight: 700; cursor: pointer;
    list-style: none; display: flex; align-items: center; gap: 8px;
}
.market-group > summary::-webkit-details-marker { display: none; }
.market-group > summary::before {
    content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted);
    border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform .15s;
}
.market-group[open] > summary::before { transform: rotate(45deg); }
.market-group > summary:hover { background: var(--raised); }
.market-table { border-radius: 0; background: transparent; display: grid; gap: 8px; padding: 0 12px 12px; }
.market-table-title { display: none; }
.market-row { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; align-items: start; }
.market-row + .market-row { padding-top: 8px; border-top: 1px solid var(--border); }
.market-row-name { color: var(--muted); font-size: 11px; padding-top: 9px; }
.market-row-options { display: flex; flex-wrap: wrap; gap: 5px; }
.detail-odd { min-width: 78px; height: 36px; flex: 0 1 auto; }
.show-more { padding: 8px 12px; border-radius: var(--bet-rounded-4); background: var(--raised); color: var(--accent); font-size: 11px; }

/* ---------------- Boletim ---------------- */
@keyframes ticket-dock-in {
    from { opacity: 0; transform: translateY(-8px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes ticket-sheet-in {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
@keyframes ticket-sheet-out {
    from { transform: translateY(0); }
    to { transform: translateY(100%); }
}
@keyframes ticket-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ticket-backdrop-out { from { opacity: 1; } to { opacity: 0; } }
.ticket-backdrop { display: none; }
.sheet-handle { display: none; }
.ticket.is-closing { animation: ticket-sheet-out .24s cubic-bezier(.4, 0, 1, 1) forwards; }
.ticket-backdrop.is-closing { animation: ticket-backdrop-out .24s ease forwards; }
.ticket {
    position: sticky; top: calc(var(--header-h) + 16px);
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--panel); border-radius: var(--bet-rounded-12);
    max-height: calc(100vh - var(--header-h) - 32px);
    transform-origin: top right; animation: ticket-dock-in .2s ease-out;
}
body[data-ticket-open="false"] .ticket { display: none; }
.ticket-heading {
    position: relative; display: flex; align-items: center; height: 40px;
    padding: 0 8px; background: var(--panel); border-bottom: 1px solid var(--border); flex: none;
}
.ticket-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; flex: 1; height: 100%; }
.ticket-tabs button {
    display: flex; align-items: center; justify-content: center; gap: 4px; height: 40px;
    border-radius: var(--bet-rounded-8); color: var(--muted); font-size: 14px; font-weight: 500;
}
.ticket-tabs button[aria-pressed="true"] {
    position: relative; background: transparent; color: var(--text); font-weight: 500;
}
.ticket-tabs button[aria-pressed="true"]::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent);
}
.ticket-tabs small {
    display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px;
    border-radius: var(--bet-rounded-24); background: var(--accent); color: var(--on-accent); font-size: 10px;
}
.ticket-grip {
    width: 16px; height: 30px; margin: 0 4px; cursor: grab; flex: none;
    background: repeating-linear-gradient(to bottom, var(--muted-2) 0 1px, transparent 1px 4px);
    background-size: 8px 12px; background-position: center; background-repeat: repeat-y; opacity: .55;
}
.ticket-grip:active { cursor: grabbing; }
#ticket-content { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
#ticket-slip, #ticket-history { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.ticket-tools { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--border); }
.ticket-tools select {
    flex: 1; min-width: 0; height: 24px; padding: 0 8px; border-radius: var(--bet-rounded-6);
    border: 0; background: var(--panel); color: var(--text); font-size: 14px; font-weight: 500;
}
.ticket-tools .icon-button { width: 24px; height: 24px; flex: none; color: var(--text); }
.ticket-tools .icon-button .ui-icon { width: 18px; height: 18px; }
.slip-settings { padding: 0 12px 10px; border-bottom: 1px solid var(--border); }
.slip-settings summary { display: none; }
.slip-settings label { display: block; margin: 6px 0 4px; color: var(--muted); font-size: 14px; }
.slip-settings select { width: 100%; padding: 6px 8px; border-radius: var(--bet-rounded-4); background: var(--raised); border: 1px solid var(--border); color: var(--text); }
.slip-settings .remember { display: flex; align-items: center; gap: 7px; }
#odd-change {
    margin: 10px 12px 0; padding: 10px; border-radius: var(--bet-rounded-8);
    background: rgba(255,245,0,.1); border: 1px solid rgba(255,245,0,.35); color: var(--warning); font-size: 11px;
}
#odd-change p { margin: 5px 0 8px; color: var(--text); }
#odd-change div { display: flex; gap: 6px; }
#odd-change button { flex: 1; padding: 7px; border-radius: var(--bet-rounded-4); background: var(--warning); color: var(--bg); font-weight: 700; }
#odd-change button:last-child { background: var(--raised); color: var(--text); }
#ticket-items { flex: 1; min-height: 120px; overflow-y: auto; padding: 6px 12px 12px; scrollbar-width: thin; }
.empty-ticket {
    min-height: 466px; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 14px; color: var(--muted-2); font-weight: 500; text-align: center; font-size: 16px;
}
.empty-ticket .ui-icon { width: 60px; height: 60px; color: var(--muted-2); }
.ticket-item {
    margin: 4px 12px; padding: 10px; border-radius: var(--bet-rounded-8); background: var(--raised);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.ticket-row { display: flex; align-items: center; gap: 8px; }
.ticket-row strong { flex: 1; font-size: 12px; }
.ticket-item p { margin-top: 4px; color: var(--muted-2); font-size: 11px; }
.ticket-item p:first-of-type { color: var(--muted); }
.ticket-item .changed-odds { color: var(--warning); }
#ticket-message { margin: 0 12px 8px; padding: 8px; border-radius: var(--bet-rounded-4); background: rgba(0,235,129,.1); color: var(--success); font-size: 11px; }
#system-info { margin: 0 12px 8px; color: var(--muted); font-size: 11px; }
.ticket-summary {
    flex: none; padding: 12px; background: var(--panel); border-top: 1px solid var(--border); display: grid; gap: 8px;
}
.ticket-summary label { color: var(--muted); font-size: 11px; }
.ticket-summary .ticket-row { color: var(--muted); font-size: 12px; }
.ticket-summary .ticket-row strong { color: var(--text); flex: none; }
.amount-field {
    display: flex; align-items: center; gap: 6px; padding: 0 10px; height: 40px;
    border-radius: var(--bet-rounded-8); background: var(--raised); color: var(--muted);
    border: 1px solid rgba(var(--neutral-rgb), .3);
}
.amount-field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 14px; }
.quick-stakes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.quick-stakes button {
    height: 32px; border-radius: var(--bet-rounded-24); background: rgba(var(--neutral-rgb), .2);
    color: var(--muted); font-size: 14px; font-weight: 500;
}
.quick-stakes button[aria-pressed="true"] { background: transparent; color: var(--text); border: 1px solid rgba(var(--neutral-rgb), .3); }
.submit-ticket {
    height: 54px; border-radius: var(--bet-rounded-8); background: var(--cta);
    color: var(--cta-text); font-weight: 500; font-size: 16px;
}
.submit-ticket:hover:not(:disabled) { filter: brightness(1.08); }
.submit-ticket:disabled { background: var(--accent); color: var(--on-accent); }
.history-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.history-filters button { padding: 7px 4px; border-radius: var(--bet-rounded-4); color: var(--muted); font-size: 11px; }
.history-filters button[aria-pressed="true"] { background: var(--raised); color: var(--text); }
#ticket-records { flex: 1; overflow-y: auto; padding: 8px 12px 14px; scrollbar-width: thin; }
.history-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.history-item strong { font-size: 12px; }
.history-item p { margin-top: 4px; color: var(--muted-2); font-size: 11px; }
.history-item.cashout { opacity: .8; }
.cashout-button {
    margin-top: 8px; padding: 7px 10px; border-radius: var(--bet-rounded-4);
    background: var(--raised); color: var(--accent); font-size: 11px; font-weight: 700;
}
#ticket-shortcut {
    position: fixed; right: 16px; bottom: 18px; z-index: 55; display: none;
    align-items: center; gap: 8px; padding: 11px 16px; border-radius: var(--bet-rounded-24);
    background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 12px;
    box-shadow: var(--shadow);
}
#ticket-shortcut small { display: none; }
body[data-ticket-open="false"] #ticket-shortcut { display: flex; }

body[data-ticket-mode="floating"] .ticket, .ticket.dragging {
    position: fixed; z-index: 58; right: 16px; top: calc(var(--header-h) + 12px); bottom: 16px;
    width: min(360px, calc(100vw - 32px)); border: 1px solid var(--border-strong);
    border-radius: var(--bet-rounded-12); box-shadow: var(--shadow); overflow: hidden; max-height: none;
}
body[data-ticket-mode="floating"][data-ticket-open="false"] .ticket { display: none; }
.ticket[data-drag-position="true"] {
    right: auto; top: auto; bottom: auto; left: var(--ticket-x, 16px); top: var(--ticket-y, calc(var(--header-h) + 12px));
}

/* ---------------- Previsões / mercados ---------------- */
#predictions-panel { padding-top: 0; }
.predictions-heading { padding: 0 0 8px; }
.predictions-heading h1 {
    display: flex; align-items: center; gap: 8px;
    font-size: 20px; line-height: 24px; font-weight: 700; color: var(--text);
}
.predictions-heading .ui-icon { width: 24px; height: 24px; color: var(--text); }
.prediction-filters {
    display: flex; gap: 8px; margin: 0 0 8px; overflow-x: auto; scrollbar-width: none;
}
.prediction-filters::-webkit-scrollbar { display: none; }
.prediction-filters button {
    flex: none; height: 32px; padding: 0 16px; border-radius: 9999px;
    background: transparent; color: var(--muted); font-size: 12px; font-weight: 500;
    white-space: nowrap; border: 1px solid rgba(var(--neutral-rgb),.3);
}
.prediction-filters button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: transparent; font-weight: 700; }
#prediction-markets {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; align-items: stretch;
}
.prediction-card {
    min-width: 0; height: 228px; display: flex; flex-direction: column; gap: 2px;
    border-radius: 12px; background: var(--panel); overflow: hidden;
}
.prediction-card.is-market { height: 228px; }
.prediction-card:hover { background: #191919; }
.prediction-head {
    display: flex; align-items: center; gap: 16px; padding: 16px;
    background: linear-gradient(180deg, rgba(var(--neutral-rgb),.15), rgba(var(--neutral-rgb),0));
}
.prediction-thumb {
    width: 48px; height: 48px; flex: 0 0 48px; border-radius: 9999px; overflow: hidden;
    background: rgba(var(--neutral-rgb),.15); border: 1px solid rgba(var(--neutral-rgb),.3);
    display: grid; place-items: center; color: var(--text);
}
.prediction-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prediction-thumb .ui-icon { width: 22px; height: 22px; }
.prediction-title {
    margin: 0; color: var(--text); font-size: 14px; line-height: 20px; font-weight: 600;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.prediction-body {
    flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 8px;
    padding: 12px 16px 16px; background: rgba(var(--neutral-rgb),.1);
}
.prediction-bar-row { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.prediction-bar-label { width: 32px; flex: 0 0 32px; font-variant-numeric: tabular-nums; }
.prediction-bar-label.up { color: var(--text); }
.prediction-bar-label.down { color: var(--text); text-align: right; }
.prediction-bar-wrap {
    flex: 1; min-width: 0; height: 12px; padding: 4px; border-radius: 9999px;
    background: rgba(var(--neutral-rgb),.15); border: 1px solid rgba(var(--neutral-rgb),.3); box-sizing: border-box;
}
.prediction-bar {
    width: 100%; height: 100%; border-radius: 9999px; overflow: hidden;
    background: #f6262e; display: flex;
}
.prediction-bar-up { height: 100%; background: #00eb81; transition: width .7s ease-in-out; will-change: width; }
.prediction-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.prediction-options .odd {
    min-width: 0; width: 100%; height: 50px; padding: 0 8px;
    display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 8px;
    border-radius: 8px; background: rgba(var(--neutral-rgb),.15); color: var(--text); text-align: center;
}
.prediction-options .odd:hover { background: rgba(var(--neutral-rgb),.3); }
.prediction-options .odd .odd-label { display: inline !important; color: var(--muted); font-size: 14px; font-weight: 400; line-height: 1; }
.prediction-options .odd strong { font-size: 14px; font-weight: 500; color: #00eb81; line-height: 1; font-variant-numeric: tabular-nums; }
.prediction-options .odd.down strong { color: #f6262e; }
.prediction-options .odd[aria-pressed="true"] { background: rgba(0,235,170,.14); box-shadow: inset 0 0 0 1px rgba(0,235,170,.4); }
.prediction-meta {
    margin-top: auto; display: flex; align-items: center; justify-content: flex-end; gap: 8px;
    color: var(--text); font-size: 12px;
}
.prediction-live { display: inline-flex; align-items: center; gap: 4px; color: var(--text); }
.prediction-live .ui-icon { width: 16px; height: 10px; color: #f6262e; flex: none; }
.prediction-live-dot { display: none; }
.prediction-time {
    display: inline-flex; align-items: center; justify-content: center;
    height: 20px; min-width: 68px; padding: 0 8px; border-radius: 4px;
    border: 1px solid #f6262e; background: rgba(var(--neutral-rgb),.2);
    color: var(--text); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums;
}
@keyframes pulse-live { 0%,100%{ opacity: 1; } 50%{ opacity: .35; } }
.prediction-empty { grid-column: 1 / -1; padding: 32px; text-align: center; color: var(--muted); }
.category-card-count {
    display: inline-grid; place-items: center; min-width: 16px; height: 16px; padding: 0 4px;
    border-radius: 9999px; background: var(--muted-2); color: var(--panel);
    font-size: 10px; font-weight: 700; line-height: 1; box-sizing: border-box;
}
.sport-card .category-card-count { position: absolute; top: -1px; right: -4px; z-index: 2; width: auto; }
.sport-card[aria-pressed="true"] .category-card-count { background: var(--accent); color: var(--bg); }
.sport-card .sport-icon { position: relative; overflow: visible; }

/* ---------------- Configurações de aparência ---------------- */
dialog#appearance {
    position: fixed; inset: 80px auto auto 50%; transform: translateX(-50%);
    width: 344px; max-width: calc(100vw - 16px); max-height: calc(100vh - 96px);
    margin: 0; padding: 0; border: 0; border-radius: var(--bet-rounded-12);
    background: var(--raised); color: var(--text); overflow-y: auto; overflow-x: hidden;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .1), 0 8px 10px -6px rgba(0, 0, 0, .1);
}
dialog#appearance::backdrop { background: linear-gradient(to bottom, transparent var(--header-h), rgba(0, 0, 0, .5) var(--header-h)); animation: backdrop-in .2s ease-out; }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes appearance-in {
    from { opacity: 0; transform: translateX(-50%) scale(.95); }
    to { opacity: 1; transform: translateX(-50%) scale(1); }
}
dialog#appearance[open] { animation: appearance-in .2s ease-out; }
.appearance-close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    display: grid; place-items: center; width: 24px; height: 24px;
    border-radius: var(--bet-rounded-4); color: var(--text);
}
.appearance-close:hover { background: rgba(var(--neutral-rgb), .3); }
.appearance-close .ui-icon { width: 24px; height: 24px; }
.appearance-body { display: flex; flex-direction: column; align-items: center; }
.appearance-body h2 {
    width: 100%; padding: 16px 16px 0; margin-bottom: 16px;
    font-size: 14px; font-weight: 600; line-height: 16px; text-align: center;
}
.appearance-divider {
    width: 100%; height: 1px; margin-bottom: 16px;
    background: rgba(var(--neutral-rgb), .15);
}
.appearance-list, .theme-options, .device-options {
    border: 0; margin: 0 0 16px; min-width: 0; padding: 0 16px;
}
.appearance-list { width: 100%; display: flex; flex-direction: column; gap: 12px; }
.layout-choice {
    position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
    width: 100%; height: 68px; padding: 8px 12px;
    border: 2px solid transparent; border-radius: var(--bet-rounded-12);
    background: rgba(var(--neutral-rgb), .15); cursor: pointer; transition: background .15s, border-color .15s;
}
.layout-choice:hover { background: rgba(var(--neutral-rgb), .3); }
.layout-choice:has(input:checked) { border-color: var(--text); background: var(--panel); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.layout-choice[data-layout="floating"] { height: 84px; }
.layout-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.layout-copy { display: grid; gap: 0; min-width: 0; }
.layout-copy strong { font-size: 12px; font-weight: 500; line-height: 16px; color: var(--text); }
.layout-copy small { font-size: 10px; line-height: 16px; color: var(--muted); }
.layout-icon { width: 56px; height: 40px; flex: none; fill: currentColor; color: var(--muted-2); }
.layout-choice:has(input:checked) .layout-icon { color: var(--text); }
.theme-options { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0; width: 100%; }
.theme-choice {
    position: relative; display: grid; place-items: center; width: 28px; height: 28px;
    border: 2px solid transparent; border-radius: 50%; background: rgba(var(--neutral-rgb), .3); cursor: pointer;
}
.theme-choice:hover { background: rgba(var(--neutral-rgb), .5); }
.theme-choice:has(input:checked) { border-color: var(--text); background: var(--panel); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.theme-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.theme-choice span { position: relative; width: 20px; height: 20px; border-radius: 50%; overflow: hidden; background: var(--swatch-bg); }
.theme-choice span::before { content: ""; position: absolute; inset: 0 50% 0 0; background: var(--swatch-accent); border-radius: 100% 0 0 100%; }
.device-options {
    display: grid; grid-template-columns: repeat(3, 96px); justify-content: space-between; width: 100%;
    gap: 12px; padding: 0 16px 16px; margin-bottom: 0;
}
.device-choice {
    position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    width: 96px; min-height: 70px; padding: 12px 8px;
    border: 2px solid transparent; border-radius: var(--bet-rounded-12);
    background: rgba(var(--neutral-rgb), .15); color: var(--muted); cursor: pointer;
    font-size: 10px; line-height: 14px; white-space: nowrap;
}
.device-choice:hover { background: rgba(var(--neutral-rgb), .3); }
.device-choice:has(input:checked) { border-color: var(--text); background: var(--panel); color: var(--text); box-shadow: 0 2px 4px rgba(0, 0, 0, .2); }
.device-choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.device-icon { width: 24px; height: 24px; fill: var(--muted-2); }
.device-choice:has(input:checked) .device-icon { fill: var(--text); }

/* ---------------- Rodapé ---------------- */
footer {
    display: block; padding: 24px 16px 16px; background: var(--header);
    border-top: 1px solid var(--border); color: var(--muted); font-size: 12px;
}
.footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-columns section { display: grid; gap: 8px; align-content: start; border-left: 1px solid var(--border); padding-left: 24px; }
.footer-columns section:first-child { border-left: 0; padding-left: 0; }
.footer-columns h2 { color: var(--text); font-size: 13px; margin-bottom: 4px; }
.footer-brand { color: var(--text); font-size: 15px; letter-spacing: -.02em; }
.footer-bottom {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 11px;
}
.footer-bottom a:hover { color: var(--accent); }

/* ---------------- Variações de layout ---------------- */
body[data-layout="cards"] .workspace {
    grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 0 16px 16px;
}
body[data-layout="cards"] .events-toolbar { display: none; }
body[data-layout="cards"] #match-list {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(464px, 1fr));
    gap: 8px; align-content: start;
}
body[data-layout="cards"] .league-group { background: transparent; }
body[data-layout="cards"] .league-heading {
    grid-template-columns: 1fr; min-height: 40px; padding-bottom: 0; margin-bottom: 16px;
}
body[data-layout="cards"] .market-head { display: none; }
body[data-layout="cards"] .match {
    grid-template-columns: minmax(0, 1fr) auto; min-height: 218px; padding: 16px;
}
body[data-layout="cards"] .feature .market-grid { grid-template-columns: 1fr !important; }
body[data-layout="cards"] .categories {
    position: static; height: auto; display: grid; gap: 16px;
    background: transparent; border-radius: 0; overflow: visible;
}
body[data-layout="cards"] .top-tabs {
    border-radius: var(--bet-rounded-12); height: 40px; padding: 0;
}
body[data-layout="cards"] .top-tabs button { height: 40px; }
body[data-layout="cards"] .sidebar-panel {
    display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 68px;
    padding: 8px 12px; border-radius: var(--bet-rounded-12);
    border: 1px solid var(--border); overflow-x: auto; scrollbar-width: none;
}
body[data-layout="cards"] .sidebar-panel::-webkit-scrollbar { display: none; }
body[data-layout="cards"] .category-list, body[data-layout="cards"] .category-shortcuts,
body[data-layout="cards"] .sidebar-section { display: none; }
body[data-layout="cards"] .category-controls { display: none; }
body[data-layout="cards"] .categories .product-switch {
    display: flex; gap: 4px; margin-right: auto;
}
body[data-layout="cards"] .product-switch button {
    display: flex; align-items: center; gap: 6px; padding: 8px 12px; min-height: 36px;
    border-radius: var(--bet-rounded-8); background: var(--raised); color: var(--muted); font-size: 12px;
}
body[data-layout="cards"] .product-switch button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
body[data-layout="cards"] .product-switch #floating-bets { display: flex; }
body[data-layout="cards"] .cards-nav { display: flex; gap: 6px; }
body[data-layout="cards"] .cards-period, body[data-layout="cards"] .cards-tools { display: flex; gap: 4px; }
body[data-layout="cards"] .cards-nav button {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 8px 12px; border-radius: var(--bet-rounded-8); background: var(--raised);
    color: var(--muted); font-size: 11px;
}
body[data-layout="cards"] .cards-nav button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
body[data-layout="cards"] .categories.cards-search-open .category-controls {
    display: grid; position: absolute; left: 8px; right: 8px; top: calc(var(--header-h) + 72px); z-index: 20;
    background: var(--panel); padding: 8px; border-radius: var(--bet-rounded-8); border: 1px solid var(--border);
}
body[data-layout="classic"] #league-pills { display: none !important; }

/* ---------------- Tablet / mobile ---------------- */
body[data-preview="tablet"] .workspace { grid-template-columns: 240px minmax(0, 1fr); }
body[data-preview="tablet"] .top-tabs button span { display: none; }
body[data-preview="tablet"] .ticket { width: 320px; }
body[data-preview="mobile"] .workspace { grid-template-columns: minmax(0, 1fr); padding: 8px; gap: 12px; }
body[data-preview="mobile"] .categories { position: static; height: auto; }
body[data-preview="mobile"] .market-head { display: none; }
body[data-preview="mobile"] .detail-teams { flex-wrap: wrap; }
body[data-preview="mobile"] .market-row { grid-template-columns: minmax(0, 1fr); }
body[data-preview="mobile"] .footer-columns { grid-template-columns: minmax(0, 1fr); }

@media (max-width: 1180px) {
    .workspace { grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 12px; padding: 12px; }
    body[data-ticket-open="false"] .workspace { grid-template-columns: 280px minmax(0, 1fr); }
    .market-grid, .match .market-grid { grid-template-columns: repeat(3, 84px); }
    .match .odd { width: 84px; }
    .market-head { grid-template-columns: repeat(3, 84px); min-width: 256px; }
}
@media (max-width: 970px) {
    :root { --header-h: 57px; }
    .workspace, body[data-layout="classic"] .workspace, body[data-layout="classic"][data-ticket-open="false"] .workspace, body[data-layout="floating"] .workspace,
    body[data-layout="cards"] .workspace, body[data-ticket-open="false"] .workspace {
        grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 8px;
    }
    .categories { position: static; height: auto; }
    .sidebar-panel { overflow: visible; }
    .events { padding-bottom: 12px; }
    .top-tabs { position: static; }
    body { padding-bottom: 52px; }
    #ticket-shortcut {
        display: flex; right: 0; left: 0; bottom: 0; width: 100%;
        height: 52px; padding: 0 16px; border-radius: var(--bet-rounded-12) var(--bet-rounded-12) 0 0;
        gap: 10px; font-size: 14px; box-shadow: none;
    }
    #ticket-shortcut {
        left: 0; right: 0; bottom: 0; justify-content: flex-start; gap: 8px;
        height: 44px; padding: 0 16px; border-radius: var(--bet-rounded-12) var(--bet-rounded-12) 0 0;
        box-shadow: 0 -12px 27px rgba(0, 0, 0, 1); font-size: 14px; font-weight: 700;
    }
    #ticket-shortcut .ui-icon { width: 18px; height: 18px; }
    #ticket-shortcut small { display: inline; margin-left: auto; font-size: 10px; font-weight: 700; letter-spacing: .02em; opacity: .7; }
    .ticket {
        position: fixed; z-index: 58; left: 0; right: 0; top: auto; bottom: 0;
        width: 100%; max-height: 88vh; border: 0; border-top: 1px solid var(--border);
        border-radius: 16px 16px 0 0; box-shadow: 0 -10px 32px rgba(0, 0, 0, .4);
        animation: ticket-sheet-in .32s cubic-bezier(.16, 1, .3, 1);
    }
    .sheet-handle {
        display: block; position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
        z-index: 2; width: 36px; height: 4px; border-radius: 4px; background: var(--border-strong);
    }
    .ticket-heading { padding-top: 0; height: 44px; background: var(--accent); color: var(--bg); }
    .ticket-heading .ticket-tabs { height: 44px; }
    .ticket-heading .ticket-tabs button { color: rgba(0, 0, 0, .6); height: 44px; font-size: 14px; font-weight: 700; }
    .ticket-heading .ticket-tabs button[aria-pressed="true"] { color: var(--bg); }
    .ticket-heading .ticket-tabs button[aria-pressed="true"]::after { display: none; }
    .ticket-heading .ticket-tabs small { background: var(--panel); color: var(--text); }
    .ticket-heading #close-ticket { color: var(--bg); }
    .ticket-tools { justify-content: space-between; }
    .ticket-tools select { flex: none; min-width: 82px; }
    .ticket-summary .submit-ticket { height: 54px; }
    .ticket-backdrop {
        display: block; position: fixed; inset: 0; z-index: 57; background: rgba(0, 0, 0, .5);
        animation: ticket-backdrop-in .32s ease;
    }
    body[data-ticket-mode="floating"] .ticket, .ticket.dragging,
    body[data-ticket-mode="floating"] .ticket[data-drag-position="true"] {
        position: fixed; z-index: 58; left: 0; right: 0; top: auto; bottom: 0;
        width: 100%; max-height: 88vh; border: 0; border-top: 1px solid var(--border);
        border-radius: 16px 16px 0 0; box-shadow: 0 -10px 32px rgba(0, 0, 0, .4);
    }
    body[data-ticket-open="true"] #ticket-shortcut { display: none; }
    body[data-ticket-open="false"] .ticket,
    body[data-ticket-open="false"] .ticket-backdrop { display: none; }
    .top-tabs { position: static; border-radius: var(--bet-rounded-12) var(--bet-rounded-12) 0 0; }
    .top-tabs button { height: 40px; }
    .top-tabs button[data-view="mybets"] { display: flex; }
    body[data-product="sports"] .search, body[data-product="esports"] .search { display: none; }
    body[data-product="sports"] .sidebar-panel, body[data-product="esports"] .sidebar-panel { display: none; }
    .sidebar-panel { order: 2; }
    .sport-cards { order: 3; }
    .period-tabs {
        display: flex; gap: 0; padding: 0 6px; margin-top: 8px; flex: none;
    }
    body:not([data-product="sports"]):not([data-product="esports"]) .period-tabs { display: none; }
    .period-tabs button {
        flex: 1; height: 32px; border-radius: var(--bet-rounded-8);
        background: transparent; color: var(--muted); font-size: 14px; font-weight: 500;
    }
    .period-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--bg); font-weight: 700; }
    .sport-cards {
        display: flex; gap: 4px; flex: none; overflow-x: auto; padding: 8px 8px 12px;
        scrollbar-width: none; align-items: flex-start;
    }
    .sport-cards::-webkit-scrollbar { display: none; }
    .sport-card {
        flex: 0 0 66px; width: 66px; min-width: 66px; height: 68px; display: flex; flex-direction: column;
        align-items: center; justify-content: flex-start; gap: 4px; padding: 0;
        border-radius: 0; background: transparent; color: var(--muted); position: relative;
    }
    .sport-card[aria-pressed="true"] { background: transparent; color: var(--text); }
    .sport-card .sport-icon {
        position: relative; display: grid; place-items: center; width: 48px; height: 48px; flex: 0 0 48px;
        border-radius: 12px; border: 1px solid rgba(var(--neutral-rgb), .2); box-sizing: border-box;
    }
    .sport-card[aria-pressed="true"] .sport-icon { border-color: var(--accent); }
    .sport-card .sport-icon-inner {
        display: grid; place-items: center; width: 42px; height: 42px;
        border-radius: 10px; background: rgba(var(--neutral-rgb), .2);
    }
    .sport-card[aria-pressed="true"] .sport-icon-inner { background: rgba(var(--neutral-rgb), .2); }
    .sport-card .ui-icon { width: 20px; height: 20px; display: block; flex: none; color: var(--muted); }
    .sport-card[aria-pressed="true"] .ui-icon { color: var(--accent); }
    .sport-card span.sport-name { max-width: 66px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; line-height: 16px; text-align: center; color: var(--muted); }
    .sport-card[aria-pressed="true"] span.sport-name { color: var(--text); }
    .sport-card .category-card-count { top: -1px; right: -4px; z-index: 2; }
    .predictions-heading { display: none; }
    .prediction-filters { margin: 0 0 8px; gap: 8px; }
    .prediction-filters button { height: 32px; padding: 0 12px; font-size: 12px; }
    #prediction-markets { grid-template-columns: minmax(0, 1fr); }
    .prediction-card { height: 188px; border-radius: 8px; }
    .prediction-head { min-height: 60px; padding: 12px; gap: 12px; }
    .prediction-thumb { width: 36px; height: 36px; flex-basis: 36px; }
    .prediction-title { font-size: 14px; line-height: 18px; }
    .prediction-body { padding: 8px 12px 12px; gap: 8px; }
    .prediction-options .odd { height: 46px; padding: 0 10px; }
    .prediction-bar-label { width: 36px; flex-basis: 36px; font-size: 11px; }
    .sidebar-panel { border-radius: 0 0 var(--bet-rounded-12) var(--bet-rounded-12); padding: 12px; gap: 0; }
    .category-controls { width: 100%; }
    .search { height: 32px; }
    #sports-filter {
        display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none;
    }
    #sports-filter::-webkit-scrollbar { display: none; }
    #sports-filter button {
        flex: none; width: auto; min-height: 32px; padding: 0 10px; border-radius: var(--bet-rounded-24);
        background: var(--raised); font-size: 11px;
    }
    #sports-filter button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
    #sports-filter button[aria-pressed="true"] .ui-icon { color: var(--on-accent); }
    #sports-filter small { display: none; }
    .category-list, .category-shortcuts, .period-switch, .sidebar-section,
    .product-switch, .cards-nav { display: none !important; }
    body[data-layout="cards"] #match-list { grid-template-columns: minmax(0, 1fr); }
    .footer-columns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .footer-columns section { border-left: 0; border-top: 1px solid var(--border); padding: 16px 0 0; }
    .footer-columns section:first-child { border-top: 0; padding-top: 0; }
    .footer-bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
}
@media (max-width: 620px) {
    .topbar { padding: 0 8px; }
    .brand-word { font-size: 18px; }
    .locale { font-size: 0; gap: 0; }
    .locale .ui-icon { width: 18px; height: 18px; }
    .appearance-trigger {
        position: static; transform: none; width: 32px; height: 32px; padding: 0;
        background: rgba(var(--neutral-rgb), .3);
    }
    .appearance-trigger span { display: none; }
    dialog#appearance { top: 64px; width: calc(100vw - 16px); max-height: calc(100vh - 76px); }
    .appearance-divider { margin-bottom: 12px; }
    .appearance-divider-secondary, .device-options { display: none !important; }
    .appearance-body h2 { margin-bottom: 16px; }
    .appearance-list, .theme-options { margin-bottom: 12px; padding: 0 12px; }
    .layout-choice { height: 68px; }
    .layout-choice[data-layout="classic"] { height: 60px; }
    .layout-choice[data-layout="full"], .layout-choice[data-layout="floating"],
    .layout-choice[data-layout="cards"] { height: 68px; }
    .top-actions { gap: 4px; }
    .enter { height: 32px; padding: 0 12px; font-size: 11px; }
    .top-tabs { padding: 0; }
    .top-tabs button { height: 40px; font-size: 14px; gap: 8px; }
    .top-tabs button .ui-icon { width: 18px; height: 18px; }
    body[data-layout="cards"] .categories { min-width: 0; }
    body[data-layout="cards"] .top-tabs {
        max-width: 100%; overflow-x: auto; scrollbar-width: none;
    }
    body[data-layout="cards"] .top-tabs::-webkit-scrollbar { display: none; }
    body[data-layout="cards"] .top-tabs button {
        flex: 0 0 auto; width: auto; min-width: 88px; padding: 0 10px;
    }
    body[data-layout="cards"] .sidebar-panel { display: none; }
    .rail-track { grid-auto-columns: calc(100vw - 52px); gap: 8px; }
    .feature { height: 208px; padding: 12px; gap: 12px; }
    .events-toolbar { padding: 4px 0 10px; }
    .events-toolbar h1 { font-size: 16px; }
    .league-heading { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 0 4px 8px; }
    .market-head { display: none; }
    .match {
        grid-template-columns: minmax(0, 1fr) auto; align-items: center;
        min-height: 93px; gap: 6px; padding: 4px 8px;
    }
    .feature { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .feature .event-copy { gap: 12px; }
    .event-copy { padding-top: 0; }
    .match .market-grid {
        grid-template-columns: repeat(3, 58px) !important;
        gap: 1px; width: 176px; justify-content: end;
    }
    .market-box { min-width: 0; }
    .match .odd { width: 58px; height: 85px; padding: 0 4px; flex: none; }
    .detail-odd { min-width: 68px; height: 36px; }
    .feature .market-grid { grid-template-columns: 1fr !important; width: 100%; }
    .feature .odd { height: 50px; padding: 0 10px; }
    .feature .team .avatar { width: 32px; height: 32px; }
    .detail-header { padding: 12px; }
    .detail-content { padding: 12px 8px 0; }
    .detail-search { margin-left: 8px; width: calc(100% - 16px); }
    .detail-odd { min-width: 68px; }
    .footer-columns h2 { font-size: 12px; }
}

/* prediction market (Sim/Nao) cards */
.prediction-card.is-market .prediction-body { gap: 16px; }
.prediction-list { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow: auto; flex: 1; }
.prediction-row { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,6fr); gap: 8px; align-items: center; }
.prediction-row-left { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.prediction-row-name { color: var(--text); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 20px; }
.prediction-row-pct { color: var(--text); font-size: 14px; font-weight: 500; flex: none; font-variant-numeric: tabular-nums; line-height: 20px; }
.prediction-row-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.prediction-row-actions .odd { min-width:0; width:100%; height: 40px; border-radius: 8px; padding: 0 8px; background: rgba(var(--neutral-rgb),.15); display:flex; flex-direction:row; align-items:center; justify-content:center; gap:8px; }
.prediction-row-actions .odd:hover { background: rgba(var(--neutral-rgb),.3); }
.prediction-row-actions .odd .odd-label { display:inline !important; color:var(--muted); font-size:12px; font-weight:400; line-height:1; }
.prediction-row-actions .odd strong { font-size:14px; font-weight:500; color:#00eb81; font-variant-numeric: tabular-nums; line-height:1; }
.prediction-row-actions .odd:last-child strong, .prediction-row-actions .odd.down strong { color:#f6262e; }
.prediction-meta-market { justify-content: space-between; color: var(--muted-2); font-size: 12px; }
.prediction-vol, .prediction-close-at { color: var(--muted-2); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Visual alignment with the reference: shared surfaces, cards and responsive widgets. */
:root { --header-h: 61px; }
html { scrollbar-color: #797979 #111; }
body { --shadow: 0 12px 40px rgb(0 0 0 / 25%); }
body, .topbar, footer, #sports-stage { transition: background-color .18s, color .18s; }
.brand { flex-direction: row; align-items: flex-start; gap: 3px; }
.brand-word { font-size: 26px; letter-spacing: -.8px; }
.brand-mark { margin-top: -4px; }
.enter { min-width: 74px; }
.locale { font-size: 14px; color: var(--text); }
.locale .ui-icon { width: 20px; height: 20px; }
.top-actions { gap: 12px; }
.categories { height: calc(100dvh - var(--header-h) - 42px); gap: 0; }
.sidebar-panel { gap: 0; padding: 12px 12px 0; }
.category-controls { margin-bottom: 12px; }
.category-list { gap: 0; }
.category-list button { background: transparent; }
.category-list small { font-size: 12px; color: var(--muted); }
.category-list .ui-icon { color: var(--muted); }
.category-list button:hover, .category-list button[aria-pressed="true"] { background: rgba(var(--neutral-rgb), .15); }
body[data-product="home"]:not([data-view="predictions"]) #sports-filter > button:first-child { display: none; }
.category-shortcuts { margin-top: 0; }
.search { gap: 8px; }
.search input { color: var(--text); }
.search input::placeholder { color: var(--muted); }
.top-tabs { gap: 2px; background: var(--bg); }
.top-tabs button { color: var(--muted); }
.top-tabs button[aria-pressed="true"] { color: var(--text); background: linear-gradient(0deg, rgba(var(--neutral-rgb), .1), transparent), var(--panel); }
.top-tabs button .ui-icon { width: 20px; height: 20px; }
.new-label { position: absolute; right: 12px; top: 1px; padding: 0 2px; line-height: 9px; border-radius: 1px; background: var(--accent); color: var(--on-accent); font-size: 6px; font-weight: 700; }
body[data-product="sports"] .period-tabs, body[data-product="esports"] .period-tabs { display: flex; gap: 4px; padding: 8px 12px; background: var(--panel); }
.period-tabs button { flex: 1; height: 32px; border-radius: 8px; color: var(--muted); font-weight: 500; }
.period-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.rail-track { scrollbar-width: none; padding: 0; scroll-snap-type: x proximity; }
.rail-track::-webkit-scrollbar { display: none; }
.event-rail { margin-bottom: 16px; }
.rail-heading { margin-bottom: 2px; }
.rail-heading h2 { font-weight: 500; }
.rail-heading .ui-icon { color: var(--muted-2); width: 22px; height: 22px; }
.event-rail .rail-controls { opacity: 0; transition: opacity .15s; }
.event-rail:hover .rail-controls, .event-rail:focus-within .rail-controls { opacity: 1; }
.feature { scroll-snap-align: start; isolation: isolate; overflow: hidden; }
.feature .event-copy { gap: 12px; padding: 0; }
.feature .teams { display: grid; gap: 4px; }
.feature .team { font-size: 14px; font-weight: 400; }
.feature .team .avatar { width: 24px; height: 24px; background: transparent; border-radius: 0; }
.feature .score { font-size: 14px; font-weight: 500; }
.feature .event-meta { min-height: 16px; font-size: 12px; color: var(--muted); }
.feature .favorite { position: static; margin-left: auto; width: 16px; height: 16px; }
.favorite .ui-icon { width: 14px; height: 14px; }
.avatar { background: transparent; }
.avatar:has(img) { background: transparent; }
.pick-heading { display: flex; align-items: center; gap: 8px; min-height: 16px; }
.pick-heading .league-name { flex: 1; font-size: 14px; }
.pick-heading .league-name .avatar { width: 18px; height: 18px; }
.pick-heading .event-meta { gap: 8px; }
.pick-heading .event-meta > span { max-width: 78px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.pick-card .teams { display: flex; align-items: center; gap: 4px; min-height: 40px; padding-right: 0; }
.pick-card .team { display: contents; font-size: 14px; }
.pick-card .team .avatar { width: 40px; height: 40px; flex-shrink: 0; }
.pick-card .team > span:not(.avatar) { font-weight: 500; white-space: normal; line-height: 18px; }
.pick-card .team + .team::before { content: 'vs'; color: var(--muted); font-weight: 400; }
.pick-card .team + .team .avatar, .pick-card .score { display: none; }
.pick-card .team + .team > span:not(.avatar) { color: var(--muted); font-weight: 400; }
.pick-card .market-grid { margin-top: auto; }
.feature .market-box { gap: 4px; }
.feature .market-label { display: block; text-align: left; color: var(--muted); text-transform: none; font-size: 12px; letter-spacing: 0; }
.feature .odd { background: var(--raised); height: 50px; padding: 0 16px; }
.feature .odd strong, .odd strong { color: var(--odd); font-size: 14px; }
.event-card { height: 198px; justify-content: space-between; }
.event-card .event-copy { gap: 12px; }
.event-card .odd { padding: 0 8px; }
.event-card .odd-market { gap: 2px; }
.event-card .odd-market .odd { border-radius: 0; }
.event-card .odd-market .odd:first-child { border-radius: 8px 0 0 8px; }
.event-card .odd-label { flex: 1; font-size: 14px; }
.event-card .odd strong { font-weight: 400; }
.expand-markets { display: grid; place-items: center; flex: 0 0 48px; height: 50px; border-radius: 8px; background: var(--raised); color: var(--muted); }
.expand-markets:hover { background: var(--hover); }
.expand-markets .ui-icon { width: 18px; height: 18px; }
.card-watermark { position: absolute; bottom: -30px; right: -25px; width: 150px; height: 150px; color: var(--accent); opacity: .12; z-index: -1; }
.card-pixels { position: absolute; inset: 0; pointer-events: none; opacity: .1; z-index: -1; background: radial-gradient(ellipse at bottom right, var(--accent), transparent 70%); mask-image: repeating-conic-gradient(#000 0 25%, transparent 0 50%); mask-size: 24px 24px; }
.live-indicator { color: var(--danger); width: 16px; height: 16px; }
.widget-heading { display: flex; align-items: center; gap: 8px; height: 32px; margin-bottom: 6px; font-size: 16px; font-weight: 500; }
.widget-heading .ui-icon { width: 24px; height: 24px; color: var(--muted-2); }
.home-matches:has(.widget-heading use[href$="sport-live"]) .widget-heading .ui-icon { color: var(--danger); }
.home-matches { margin: 8px 0 16px; }
.sport-tabs { height: 32px; gap: 8px; margin-bottom: 8px; }
.sport-tab { height: 32px; padding: 0 14px; gap: 8px; border-radius: 24px; background: rgba(var(--neutral-rgb), .2); border: 1px solid transparent; color: var(--muted); font-size: 12px; font-weight: 400; }
.sport-tab .ui-icon { width: 18px; height: 18px; }
.sport-tab small { padding: 2px 6px; border-radius: 12px; background: rgba(var(--neutral-rgb), .25); color: var(--muted); font-size: 12px; }
.sport-tab[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: transparent; font-weight: 400; }
.sport-tab[aria-pressed="true"] .ui-icon { color: var(--accent); }
.sport-tab[aria-pressed="true"] small { background: var(--accent); color: var(--on-accent); }
.league-group { border-radius: 12px; overflow: hidden; background: var(--panel); margin-bottom: 2px; }
.league-heading { border-radius: 0; background: var(--raised); height: 40px; padding: 0 16px; gap: 12px; }
.league-trigger { font-size: 14px; font-weight: 400; gap: 8px; }
.league-trigger .league-name { font-size: 14px; }
.league-trigger > .ui-icon:last-child { width: 12px; height: 12px; transform: none; }
.league-trigger[aria-expanded="false"] > .ui-icon:last-child { transform: rotate(-90deg); }
.league-name .avatar { width: 18px; height: 18px; }
.market-head { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 348px; min-width: 0; }
.market-head span { font-size: 14px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.league-matches { margin: 2px 0 0; gap: 2px; background: var(--bg); }
.match { border: 0; border-radius: 0; padding: 8px 8px 8px 16px; min-height: 118px; gap: 16px; }
.match .event-meta { font-size: 12px; color: var(--muted); }
.match .team { font-size: 14px; font-weight: 400; }
.match .team .avatar { width: 24px; height: 24px; }
.match .score { border-radius: 3px; padding: 1px 4px; background: rgba(var(--neutral-rgb), .2); font-size: 14px; font-weight: 400; }
.match .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); width: 348px; }
.match .odd { width: auto; height: 102px; border-radius: 0; font-size: 14px; }
.match .odd strong { font-size: 14px; }
.match .market-box .odd:first-of-type { border-radius: 8px 0 0 8px; }
.match .market-box .odd:last-of-type { border-radius: 0 8px 8px 0; }
.odd:hover:not(:disabled) { transform: none; }
.odd[aria-pressed="true"] strong, .feature .odd[aria-pressed="true"] strong { color: var(--on-accent); }
.odd[aria-pressed="true"] { background: var(--accent); }
.show-all { font-size: 12px; color: var(--text); }
.ticket { top: calc(var(--header-h) + 16px); min-height: 630px; }
.ticket-heading { padding: 0; background: var(--bg); border-bottom: 0; }
.ticket-tabs { gap: 2px; }
.ticket-tabs button { border-radius: 0; background: var(--panel); color: var(--muted); }
.ticket-tabs button[aria-pressed="true"] { color: var(--text); background: var(--panel); }
.ticket-tabs .ui-icon { width: 18px; height: 18px; }
.ticket-grip, body[data-ticket-mode="docked"] #close-ticket { display: none; }
.ticket-tools { height: 42px; border-bottom: 2px solid var(--bg); gap: 16px; padding: 8px 12px; }
.ticket-tools select { padding: 0; color: var(--text); }
.ticket-tools .icon-button { width: 24px; height: 24px; color: var(--text); }
.ticket-tools #ticket-settings { margin-left: 0; }
.quickbet-toggle { width: 36px; height: 22px; flex-shrink: 0; border-radius: 12px; padding: 3px; background: rgba(var(--neutral-rgb), .4); display: flex; align-items: center; }
.quickbet-toggle .ui-icon { width: 16px; height: 16px; color: var(--muted); background: var(--panel); border-radius: 50%; }
.quickbet-toggle[aria-checked="true"] { background: var(--accent); justify-content: flex-end; }
#ticket-items { padding: 0 12px; }
.empty-ticket { min-height: 466px; gap: 24px; color: var(--muted); }
.empty-ticket .ui-icon { width: 66px; height: 66px; color: var(--muted-2); opacity: .5; }
.ticket-summary { padding: 12px; border-top: 2px solid var(--bg); }
.submit-ticket, .submit-ticket:disabled { background: var(--cta); color: var(--cta-text); }
.submit-ticket:disabled { opacity: 1; cursor: pointer; }
.ticket-item { animation: selection-in .2s ease-out; }
.slip-settings select, .slip-settings label { color: var(--text); }
.slip-settings:not([open]) > :not(summary) { display: none; }
.slip-settings:not([open]) { padding: 0; border: 0; }
body[data-ticket-mode="floating"] .ticket { top: auto; right: 16px; bottom: 16px; width: 360px; height: 630px; min-height: 0; max-height: calc(100dvh - 90px); }
body[data-ticket-mode="floating"] .ticket-grip { display: block; touch-action: none; }
body[data-ticket-mode="floating"] .ticket-tabs { min-width: 0; }
body[data-ticket-mode="floating"] .ticket-heading { padding-right: 8px; }
#ticket-shortcut { border-radius: 12px; min-width: 160px; height: 44px; }
#ticket-shortcut-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
footer { padding: 0 16px 24px; }
.footer-columns { gap: 0; }
.footer-columns section { min-height: 190px; padding: 24px; border-left: 1px solid var(--border); }
.footer-columns section:first-child { padding-left: 0; }
.footer-brand { font-size: 28px; font-weight: 900; }
.footer-columns h2 { margin-bottom: 24px; font-size: 16px; font-weight: 500; }
.footer-columns p { font-size: 14px; line-height: 16px; color: var(--muted); }
.footer-bottom { margin-top: 0; padding-top: 24px; font-size: 14px; }
body[data-layout="classic"] .workspace { grid-template-columns: 320px minmax(0, 1fr) 320px; }
body[data-layout="classic"][data-ticket-open="false"] .workspace { grid-template-columns: 320px minmax(0, 1fr); }
body[data-layout="floating"] .workspace { grid-template-columns: 320px minmax(0, 1fr); }
body[data-layout="cards"] .workspace { padding: 16px; gap: 16px; }
body[data-layout="cards"] #match-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 322px), 1fr)); gap: 8px; }
body[data-layout="cards"] #match-list .feature { width: 100%; height: 218px; }
body[data-layout="cards"] .categories { grid-template-columns: 1fr; gap: 8px; }
body[data-layout="cards"] .top-tabs { max-width: 520px; }
body[data-layout="cards"] .top-tabs button[aria-pressed="true"] { flex: 1 1 0; }
body[data-layout="cards"] .top-tabs button span { display: inline; }
body[data-layout="cards"] .sidebar-panel { min-height: 48px; border: 0; }
body[data-layout="cards"] .product-switch { display: none !important; }
body[data-layout="cards"] .cards-nav { width: 100%; justify-content: space-between; }
body[data-layout="cards"] .cards-nav button { font-size: 14px; }
#sports-stage { container: sportsbook / inline-size; }
#exit-preview { display: block; margin: 24px auto 16px; color: var(--text); font-size: 14px; font-weight: 500; }
body:not([data-preview="auto"]) #sports-stage { position: relative; margin: 0 auto 24px; max-width: calc(100vw - 16px); overflow: auto; overscroll-behavior: contain; transform: translateZ(0); border: 16px solid var(--raised); border-radius: 48px; background: var(--bg); scrollbar-width: none; }
body[data-preview="mobile"] #sports-stage { width: 408px; height: min(844px, calc(100dvh - 150px)); }
body[data-preview="tablet"] #sports-stage { width: 800px; height: min(1024px, calc(100dvh - 150px)); border-radius: 32px; }
body:not([data-preview="auto"]) .workspace { padding: 8px; }
html.sheet-open { overflow: hidden; }
@keyframes selection-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes odds-up { 0%, 25% { background: color-mix(in srgb, var(--success) 35%, var(--raised)); } 100% { background: rgba(var(--neutral-rgb), .15); } }
@keyframes odds-down { 0%, 25% { background: color-mix(in srgb, var(--danger) 35%, var(--raised)); } 100% { background: rgba(var(--neutral-rgb), .15); } }
.odd[data-trend="up"] { animation: odds-up 2s ease-out; }
.odd[data-trend="down"] { animation: odds-down 2s ease-out; }
.odd[data-trend]::after { content: ''; position: absolute; right: 4px; top: 4px; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; }
.odd[data-trend] { position: relative; }
.odd[data-trend="up"]::after { border-bottom: 5px solid var(--success); }
.odd[data-trend="down"]::after { border-top: 5px solid var(--danger); }
.score-changed { animation: odds-up 2s ease-out; }
@media (max-width: 1180px) and (min-width: 971px) {
    .workspace, body[data-layout="classic"] .workspace { grid-template-columns: 260px minmax(0, 1fr) 280px; gap: 12px; padding: 12px; }
    body[data-ticket-open="false"] .workspace, body[data-layout="classic"][data-ticket-open="false"] .workspace, body[data-layout="floating"] .workspace { grid-template-columns: 260px minmax(0, 1fr); }
    .top-tabs button[aria-pressed="true"] { flex-basis: 120px; }
    .match .market-grid, .market-head { width: 252px; }
}

@media (max-width: 970px) {
    .workspace, body[data-layout="classic"] .workspace, body[data-layout="classic"][data-ticket-open="false"] .workspace, body[data-layout="floating"] .workspace, body[data-layout="cards"] .workspace, body[data-ticket-open="false"] .workspace { grid-template-columns: minmax(0, 1fr); padding: 8px; gap: 2px; }
    .categories, body[data-layout="cards"] .categories { position: static; height: auto; display: flex; flex-direction: column; gap: 0; border-radius: 12px; background: transparent; }
    .top-tabs, body[data-layout="cards"] .top-tabs { position: static; max-width: none; border-radius: 12px 12px 0 0; height: 40px; overflow: hidden; }
    .top-tabs button, body[data-layout="cards"] .top-tabs button { height: 40px; min-width: 0; padding: 0 8px; flex: 1 1 0; }
    .top-tabs button[aria-pressed="true"], body[data-layout="cards"] .top-tabs button[aria-pressed="true"] { flex: 0 0 42%; }
    .top-tabs button[aria-pressed="false"] span, body[data-layout="cards"] .top-tabs button[aria-pressed="false"] span { display: none; }
    .top-tabs button[aria-pressed="true"] span, body[data-preview="tablet"] .top-tabs button[aria-pressed="true"] span { display: inline; }
    .top-tabs button[data-view="mybets"] { display: flex; }
    .top-tabs .new-label { right: 12px; }
    .sidebar-panel, body[data-layout="cards"] .sidebar-panel { display: flex; flex-direction: column; gap: 0; order: 2; padding: 12px; overflow: visible; background: var(--panel); border-radius: 0 0 12px 12px; min-height: 0; }
    .category-controls, body[data-layout="cards"] .category-controls { display: grid; margin: 0; width: 100%; }
    .category-list, #sports-filter, .category-shortcuts, .product-switch, .cards-nav { display: none !important; }
    .sport-cards { order: 3; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
    body[data-product="home"]:not([data-view="predictions"]) .sport-cards { display: none; }
    body[data-product="sports"] .period-tabs, body[data-product="esports"] .period-tabs { margin: 0; padding: 8px 6px; }
    .period-tabs button { height: 32px; }
    .sport-card { flex: 0 0 66px; width: 66px; min-width: 66px; height: 68px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: transparent; color: var(--muted); }
    .sport-card .sport-icon { display: grid; place-items: center; position: relative; width: 48px; height: 48px; border: 1px solid var(--border-strong); border-radius: 12px; }
    .sport-card .sport-icon-inner { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(var(--neutral-rgb), .15); }
    .sport-card .ui-icon { width: 20px; height: 20px; color: var(--sport-color); }
    .sport-card[aria-pressed="true"] .sport-icon { border-color: var(--accent); }
    .sport-card[aria-pressed="true"] .ui-icon { color: var(--accent); }
    .sport-card .sport-name { font-size: 11px; line-height: 16px; white-space: nowrap; max-width: 66px; overflow: hidden; text-overflow: ellipsis; }
    .events { padding-bottom: 56px; }
    .event-rail { margin-bottom: 12px; }
    .rail-heading h2 { font-size: 16px; }
    .rail-controls { display: none; }
    .rail-track { grid-auto-columns: calc(100% - 36px); gap: 8px; }
    .feature { padding: 12px; height: 190px; }
    .event-card { height: 198px; }
    .feature .event-copy { gap: 12px; }
    .feature .market-grid { width: 100%; }
    .feature .odd { height: 46px; padding: 0 8px; }
    .event-card .team .avatar { width: 24px; height: 24px; }
    .pick-card .team .avatar { width: 40px; height: 40px; }
    .feature .league-name { font-size: 12px; }
    .pick-heading .event-meta > span { max-width: 65px; font-size: 10px; }
    .market-head { width: min(46vw, 176px); min-width: 0; }
    .league-heading { grid-template-columns: minmax(0, 1fr) auto; padding: 0 8px; gap: 8px; }
    .league-trigger .league-name { font-size: 12px; }
    .match { min-height: 102px; padding: 4px 8px; gap: 8px; }
    .match .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; width: 176px; gap: 2px; }
    .match .odd { width: auto; height: 85px; padding: 0 4px; }
    .match .odd strong { font-size: 14px; }
    .match .team { font-size: 12px; }
    .match .team .avatar { width: 20px; height: 20px; }
    .match .event-meta { font-size: 10px; gap: 4px; }
    .match .score { padding: 0 2px; font-size: 12px; }
    .match .favorite { width: 16px; height: 16px; }
    .market-head span { font-size: 12px; }
    .events-toolbar { padding: 12px 0 8px; flex-wrap: wrap; gap: 8px; }
    .events-toolbar h1 { font-size: 16px; }
    .events-toolbar select { max-width: 150px; }
    body[data-layout="cards"] #match-list { grid-template-columns: minmax(0, 1fr); }
    body[data-layout="cards"] #match-list .feature { height: 198px; }
    body[data-layout="cards"] .events-toolbar { display: flex; }
    .detail-teams { flex-wrap: wrap; gap: 12px; }
    .detail-team { font-size: 14px; }
    .detail-team .avatar { width: 28px; height: 28px; }
    .market-row { grid-template-columns: minmax(0, 1fr); }
    #ticket-shortcut { position: fixed; display: flex; left: 0; right: 0; bottom: 0; width: 100%; min-width: 0; height: 44px; padding: 0 16px; border-radius: 12px 12px 0 0; box-shadow: 0 -8px 22px rgb(0 0 0 / 30%); font-size: 14px; font-weight: 500; }
    #ticket-shortcut small { display: inline; margin-left: auto; flex-shrink: 0; font-size: 9px; }
    #ticket-shortcut .ui-icon { width: 20px; height: 20px; }
    #ticket-shortcut.has-selections { animation: selection-in .2s ease-out; }
    body[data-ticket-open="true"] #ticket-shortcut { display: none; }
    .ticket, body[data-ticket-mode="floating"] .ticket, body[data-ticket-mode="floating"] .ticket[data-drag-position="true"] { position: fixed; z-index: 80; inset: auto 0 0; width: 100%; height: min(630px, 85dvh); min-height: 0; max-height: 85dvh; border: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgb(0 0 0 / 30%); animation: ticket-sheet-in .3s cubic-bezier(.16, 1, .3, 1); }
    body[data-ticket-open="false"] .ticket, body[data-ticket-open="false"] .ticket-backdrop { display: none; }
    .sheet-handle { display: none; }
    .ticket-heading, body[data-ticket-mode="floating"] .ticket-heading { height: 44px; background: var(--accent); color: var(--on-accent); padding: 0 8px; touch-action: none; cursor: grab; }
    .ticket-grip, body[data-ticket-mode="floating"] .ticket-grip { display: none; }
    .ticket-tabs { height: 44px; }
    .ticket-tabs button, .ticket-tabs button[aria-pressed="true"] { height: 44px; background: transparent; color: var(--on-accent); font-size: 14px; }
    .ticket-tabs button[aria-pressed="false"] { opacity: .6; }
    .ticket-tabs button[aria-pressed="true"]::after { display: none; }
    .ticket-tabs small { color: var(--accent); background: var(--on-accent); }
    .ticket-tabs .ui-icon { color: var(--on-accent); }
    #close-ticket { color: var(--on-accent); font-size: 24px; }
    .ticket-backdrop { display: block; position: fixed; inset: 0; z-index: 79; background: rgb(0 0 0 / 50%); animation: ticket-backdrop-in .3s ease; }
    .ticket.is-closing { animation: ticket-sheet-out .24s ease-in forwards; }
    .ticket-backdrop.is-closing { animation: ticket-backdrop-out .24s ease forwards; }
    .ticket.sheet-dragging { animation: none; transition: none; transform: translateY(var(--sheet-offset, 0px)); }
    .empty-ticket { min-height: 0; height: 100%; }
    #ticket-items { flex: 1; overflow-y: auto; }
    .ticket-summary { flex-shrink: 0; }
    .ticket-tools { flex-shrink: 0; }
    .prediction-card { height: 188px; }
    #prediction-markets { grid-template-columns: minmax(0, 1fr); }

}
@container sportsbook (max-width: 970px) {
    .workspace, body[data-layout="classic"] .workspace, body[data-layout="classic"][data-ticket-open="false"] .workspace, body[data-layout="floating"] .workspace, body[data-layout="cards"] .workspace, body[data-ticket-open="false"] .workspace { grid-template-columns: minmax(0, 1fr); padding: 8px; gap: 2px; }
    .categories, body[data-layout="cards"] .categories { position: static; height: auto; display: flex; flex-direction: column; gap: 0; border-radius: 12px; background: transparent; }
    .top-tabs, body[data-layout="cards"] .top-tabs { position: static; max-width: none; border-radius: 12px 12px 0 0; height: 40px; overflow: hidden; }
    .top-tabs button, body[data-layout="cards"] .top-tabs button { height: 40px; min-width: 0; padding: 0 8px; flex: 1 1 0; }
    .top-tabs button[aria-pressed="true"], body[data-layout="cards"] .top-tabs button[aria-pressed="true"] { flex: 0 0 42%; }
    .top-tabs button[aria-pressed="false"] span, body[data-layout="cards"] .top-tabs button[aria-pressed="false"] span { display: none; }
    .top-tabs button[aria-pressed="true"] span, body[data-preview="tablet"] .top-tabs button[aria-pressed="true"] span { display: inline; }
    .top-tabs button[data-view="mybets"] { display: flex; }
    .top-tabs .new-label { right: 12px; }
    .sidebar-panel, body[data-layout="cards"] .sidebar-panel { display: flex; flex-direction: column; gap: 0; order: 2; padding: 12px; overflow: visible; background: var(--panel); border-radius: 0 0 12px 12px; min-height: 0; }
    .category-controls, body[data-layout="cards"] .category-controls { display: grid; margin: 0; width: 100%; }
    .category-list, #sports-filter, .category-shortcuts, .product-switch, .cards-nav { display: none !important; }
    .sport-cards { order: 3; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 8px 0; }
    body[data-product="home"]:not([data-view="predictions"]) .sport-cards { display: none; }
    body[data-product="sports"] .period-tabs, body[data-product="esports"] .period-tabs { margin: 0; padding: 8px 6px; }
    .period-tabs button { height: 32px; }
    .sport-card { flex: 0 0 66px; width: 66px; min-width: 66px; height: 68px; display: flex; flex-direction: column; align-items: center; gap: 4px; background: transparent; color: var(--muted); }
    .sport-card .sport-icon { display: grid; place-items: center; position: relative; width: 48px; height: 48px; border: 1px solid var(--border-strong); border-radius: 12px; }
    .sport-card .sport-icon-inner { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 10px; background: rgba(var(--neutral-rgb), .15); }
    .sport-card .ui-icon { width: 20px; height: 20px; color: var(--sport-color); }
    .sport-card[aria-pressed="true"] .sport-icon { border-color: var(--accent); }
    .sport-card[aria-pressed="true"] .ui-icon { color: var(--accent); }
    .sport-card .sport-name { font-size: 11px; line-height: 16px; white-space: nowrap; max-width: 66px; overflow: hidden; text-overflow: ellipsis; }
    .events { padding-bottom: 56px; }
    .event-rail { margin-bottom: 12px; }
    .rail-heading h2 { font-size: 16px; }
    .rail-controls { display: none; }
    .rail-track { grid-auto-columns: calc(100% - 36px); gap: 8px; }
    .feature { padding: 12px; height: 190px; }
    .event-card { height: 198px; }
    .feature .event-copy { gap: 12px; }
    .feature .market-grid { width: 100%; }
    .feature .odd { height: 46px; padding: 0 8px; }
    .event-card .team .avatar { width: 24px; height: 24px; }
    .pick-card .team .avatar { width: 40px; height: 40px; }
    .feature .league-name { font-size: 12px; }
    .pick-heading .event-meta > span { max-width: 65px; font-size: 10px; }
    .market-head { width: min(46vw, 176px); min-width: 0; }
    .league-heading { grid-template-columns: minmax(0, 1fr) auto; padding: 0 8px; gap: 8px; }
    .league-trigger .league-name { font-size: 12px; }
    .match { min-height: 102px; padding: 4px 8px; gap: 8px; }
    .match .market-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; width: 176px; gap: 2px; }
    .match .odd { width: auto; height: 85px; padding: 0 4px; }
    .match .odd strong { font-size: 14px; }
    .match .team { font-size: 12px; }
    .match .team .avatar { width: 20px; height: 20px; }
    .match .event-meta { font-size: 10px; gap: 4px; }
    .match .score { padding: 0 2px; font-size: 12px; }
    .match .favorite { width: 16px; height: 16px; }
    .market-head span { font-size: 12px; }
    .events-toolbar { padding: 12px 0 8px; flex-wrap: wrap; gap: 8px; }
    .events-toolbar h1 { font-size: 16px; }
    .events-toolbar select { max-width: 150px; }
    body[data-layout="cards"] #match-list { grid-template-columns: minmax(0, 1fr); }
    body[data-layout="cards"] #match-list .feature { height: 198px; }
    body[data-layout="cards"] .events-toolbar { display: flex; }
    .detail-teams { flex-wrap: wrap; gap: 12px; }
    .detail-team { font-size: 14px; }
    .detail-team .avatar { width: 28px; height: 28px; }
    .market-row { grid-template-columns: minmax(0, 1fr); }
    #ticket-shortcut { position: fixed; display: flex; left: 0; right: 0; bottom: 0; width: 100%; min-width: 0; height: 44px; padding: 0 16px; border-radius: 12px 12px 0 0; box-shadow: 0 -8px 22px rgb(0 0 0 / 30%); font-size: 14px; font-weight: 500; }
    #ticket-shortcut small { display: inline; margin-left: auto; flex-shrink: 0; font-size: 9px; }
    #ticket-shortcut .ui-icon { width: 20px; height: 20px; }
    #ticket-shortcut.has-selections { animation: selection-in .2s ease-out; }
    body[data-ticket-open="true"] #ticket-shortcut { display: none; }
    .ticket, body[data-ticket-mode="floating"] .ticket, body[data-ticket-mode="floating"] .ticket[data-drag-position="true"] { position: fixed; z-index: 80; inset: auto 0 0; width: 100%; height: min(630px, 85dvh); min-height: 0; max-height: 85dvh; border: 0; border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgb(0 0 0 / 30%); animation: ticket-sheet-in .3s cubic-bezier(.16, 1, .3, 1); }
    body[data-ticket-open="false"] .ticket, body[data-ticket-open="false"] .ticket-backdrop { display: none; }
    .sheet-handle { display: none; }
    .ticket-heading, body[data-ticket-mode="floating"] .ticket-heading { height: 44px; background: var(--accent); color: var(--on-accent); padding: 0 8px; touch-action: none; cursor: grab; }
    .ticket-grip, body[data-ticket-mode="floating"] .ticket-grip { display: none; }
    .ticket-tabs { height: 44px; }
    .ticket-tabs button, .ticket-tabs button[aria-pressed="true"] { height: 44px; background: transparent; color: var(--on-accent); font-size: 14px; }
    .ticket-tabs button[aria-pressed="false"] { opacity: .6; }
    .ticket-tabs button[aria-pressed="true"]::after { display: none; }
    .ticket-tabs small { color: var(--accent); background: var(--on-accent); }
    .ticket-tabs .ui-icon { color: var(--on-accent); }
    #close-ticket { color: var(--on-accent); font-size: 24px; }
    .ticket-backdrop { display: block; position: fixed; inset: 0; z-index: 79; background: rgb(0 0 0 / 50%); animation: ticket-backdrop-in .3s ease; }
    .ticket.is-closing { animation: ticket-sheet-out .24s ease-in forwards; }
    .ticket-backdrop.is-closing { animation: ticket-backdrop-out .24s ease forwards; }
    .ticket.sheet-dragging { animation: none; transition: none; transform: translateY(var(--sheet-offset, 0px)); }
    .empty-ticket { min-height: 0; height: 100%; }
    #ticket-items { flex: 1; overflow-y: auto; }
    .ticket-summary { flex-shrink: 0; }
    .ticket-tools { flex-shrink: 0; }
    .prediction-card { height: 188px; }
    #prediction-markets { grid-template-columns: minmax(0, 1fr); }

}

@media (max-width: 620px) {
    :root { --header-h: 57px; }
    .brand { flex-direction: column-reverse; gap: 2px; }
    .brand-mark { margin-top: 0; font-size: 7px; height: 10px; padding: 0 4px; }
    .brand-word { font-size: 18px; line-height: 16px; }
    .topbar { gap: 8px; }
    .top-actions { gap: 8px; }
    .locale { font-size: 12px; gap: 4px; }
    .locale .ui-icon { width: 18px; height: 18px; }
    .appearance-trigger { margin-right: auto; }
    .enter { min-width: 74px; font-size: 12px; }
    #sports-stage { min-height: 70dvh; }
    .footer-columns section { min-height: 0; padding: 24px 0; }
    .footer-brand { font-size: 24px; }
    .footer-bottom { font-size: 12px; padding-bottom: 32px; }
}
@media (max-width: 359px) {
    .match .market-grid { width: 144px; }
    .market-head { width: 144px; }
    .locale { font-size: 0; }
    .top-tabs button[aria-pressed="true"] { flex-basis: 38%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
/* Final detail adjustments shared by all nine palettes. */
.layout-icon { fill: none; }
.pick-card .market-grid { margin-top: 0; }
.pick-card { gap: 12px; }
.pick-info { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12px; }
.pick-info .ui-icon { width: 16px; height: 16px; color: var(--accent); }
.expand-markets .ui-icon { transform: rotate(180deg); }
select { appearance: none; background-image: none !important; padding-right: 24px !important; }
.select-wrap { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.select-wrap::after { content: ''; position: absolute; right: 10px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-75%) rotate(45deg); pointer-events: none; }
.select-wrap select { width: 100%; }
.ticket-tools .select-wrap { flex: 1; }
.slip-settings .select-wrap { display: flex; width: 100%; }
.events-toolbar .select-wrap { max-width: 170px; }

.category-leagues { display: grid; padding-left: 20px; }
.category-leagues .league-link { min-height: 40px; background: transparent; }
.category-leagues .league-name { font-size: 12px; }
#featured-leagues { display: none; margin: 4px -12px 12px; }
#featured-leagues .league-link { background: transparent; }
body[data-layout="classic"] #featured-leagues { display: grid; }
body[data-layout="classic"] .top-tabs button[data-view="top"] { display: none; }
body[data-layout="classic"] .ticket { height: min(750px, calc(100dvh - 93px)); }
body[data-layout="floating"] .events-toolbar { display: none; }
body[data-layout="floating"] .match { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body[data-layout="floating"] .match .market-grid { width: 100%; }
body[data-layout="floating"] .league-heading { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
body[data-layout="floating"] .market-head { width: 100%; }
body[data-layout="floating"] #sport-tabs { display: none; }
body[data-layout="floating"] .top-tabs button[data-view="mybets"] { display: flex; }
body[data-layout="cards"] .top-tabs { display: none; }
body[data-layout="cards"] .sidebar-panel { order: 0; background: transparent; padding: 0 0 12px; border-radius: 0; border-bottom: 1px solid var(--border); }
body[data-layout="cards"] .cards-nav { height: 40px; }
body[data-layout="cards"] .cards-nav > button[data-view="predictions"] { margin-right: auto; }
body[data-layout="cards"] .cards-nav button { background: transparent; }
body[data-layout="cards"] .cards-nav button[aria-pressed="true"] { color: var(--text); background: transparent; border-bottom: 2px solid var(--accent); border-radius: 0; }
body[data-layout="cards"] .sport-cards { display: flex; order: 1; gap: 12px; padding: 8px 0; overflow-x: auto; scrollbar-width: none; }
body[data-layout="cards"] .sport-card { flex: 0 0 58px; min-width: 58px; display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--muted); }
body[data-layout="cards"] .sport-icon { display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid var(--border-strong); border-radius: 12px; }
body[data-layout="cards"] .sport-icon-inner { width: 42px; height: 42px; border-radius: 10px; display: grid; place-items: center; background: var(--panel); }
body[data-layout="cards"] .sport-card .ui-icon { width: 24px; height: 24px; }
body[data-layout="cards"] .sport-card[aria-pressed="true"] .sport-icon { border-color: var(--accent); color: var(--accent); }
body[data-layout="cards"] .sport-name { font-size: 11px; max-width: 66px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
body[data-layout="cards"] #match-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 400px), 1fr)); }
body[data-layout="cards"] #sport-tabs { display: none; }
.loading-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 8px; }
.loading-card { display: flex; flex-direction: column; gap: 16px; padding: 16px; height: 216px; background: var(--panel); border-radius: 12px; }
.skeleton-bar { display: block; height: 16px; border-radius: 8px; background: linear-gradient(100deg, rgba(var(--neutral-rgb), .1) 10%, rgba(var(--neutral-rgb), .25) 40%, rgba(var(--neutral-rgb), .1) 70%); background-size: 250% 100%; animation: shimmer 1.5s linear infinite; }
.skeleton-bar:nth-child(2) { width: 60%; height: 24px; }
.skeleton-bar:nth-child(3) { width: 40%; }
.skeleton-bar:last-child { margin-top: auto; height: 50px; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (max-width: 970px) {
    #featured-leagues, body[data-layout="classic"] #featured-leagues { display: none; }
    body[data-layout="cards"] .top-tabs { display: flex; }
    body[data-layout="cards"] .sidebar-panel { display: none; }
    body[data-layout="cards"] #match-list { grid-template-columns: minmax(0, 1fr); }
    body[data-layout="cards"] .categories { gap: 0; }
    body[data-layout="classic"] .top-tabs button[data-view="top"] { display: flex; }
    body[data-layout="floating"] .match { grid-template-columns: minmax(0, 1fr) auto; }
    body[data-layout="floating"] .match .market-grid { width: 176px; }
    body[data-layout="floating"] .market-head { width: 176px; }
    .pick-card { height: 200px; gap: 8px; }
    .pick-card .event-copy { gap: 8px; }
    .pick-info { font-size: 10px; }
}
@container sportsbook (max-width: 970px) {
    #featured-leagues, body[data-layout="classic"] #featured-leagues { display: none; }
    body[data-layout="cards"] .top-tabs { display: flex; }
    body[data-layout="cards"] .sidebar-panel { display: none; }
    body[data-layout="cards"] #match-list { grid-template-columns: minmax(0, 1fr); }
    body[data-layout="classic"] .top-tabs button[data-view="top"] { display: flex; }
    body[data-layout="floating"] .match { grid-template-columns: minmax(0, 1fr) auto; }
    body[data-layout="floating"] .match .market-grid { width: 176px; }
    body[data-layout="floating"] .market-head { width: 176px; }
    .pick-card { height: 200px; gap: 8px; }
    .pick-card .event-copy { gap: 8px; }
    .pick-info { font-size: 10px; }
}
@media (min-width: 971px) { body[data-layout="cards"] .categories > .period-tabs { display: none; } }
@container sportsbook (max-width: 970px) { body[data-layout="cards"] .categories > .period-tabs { display: flex; } }
.layout-choice:has(input:focus-visible), .theme-choice:has(input:focus-visible), .device-choice:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 970px) {
    #ticket-shortcut { height: calc(44px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); }
    .ticket-summary { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
}
.selection-toast { position: fixed; left: 50%; bottom: 64px; transform: translateX(-50%); z-index: 90; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 8px; border: 1px solid var(--success); background: var(--panel); box-shadow: var(--shadow); color: var(--text); font-size: 14px; text-align: center; }

/* Event detail and prediction screens, measured against the public reference. */
body[data-view="predictions"] .categories { height: auto; max-height: calc(100dvh - var(--header-h) - 32px); }
body[data-view="predictions"] .sidebar-panel { padding-bottom: 2px; }
body[data-view="predictions"] .category-shortcuts { display: none !important; }
body[data-view="predictions"] .category-list button[aria-pressed="true"] { color: var(--accent); background: transparent; font-weight: 400; }
body[data-view="predictions"] .category-list button[aria-pressed="true"] .ui-icon { color: var(--accent); }
.top-tabs button[data-view="predictions"] .new-label { left: 32px; right: auto; }
.predictions-heading { display: flex; align-items: center; height: 40px; padding: 0; }
.predictions-heading h1 { font-size: 16px; line-height: 24px; font-weight: 500; }
.prediction-filters button { font-size: 14px; font-weight: 400; }
.prediction-filters button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); font-weight: 500; }
#prediction-markets { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.prediction-card, .prediction-card:hover { background: var(--bg); }
.prediction-head { flex-shrink: 0; width: 100%; height: 80px; padding: 16px; text-align: left; background: linear-gradient(rgba(var(--neutral-rgb), .15), rgba(var(--neutral-rgb), .15)), var(--panel); }
.prediction-title { font-size: 16px; line-height: 20px; font-weight: 500; }
.prediction-head:hover .prediction-title { color: var(--accent); }
.prediction-thumb { flex-shrink: 0; }
.prediction-body, .prediction-card.is-market .prediction-body { gap: 16px; padding: 16px; background: rgba(var(--neutral-rgb), .2); }
.prediction-list { flex: 1; min-height: 0; gap: 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(var(--neutral-rgb), .45) transparent; }
.prediction-list:focus-visible { outline-offset: -2px; }
.prediction-row { flex-shrink: 0; min-height: 40px; }
.prediction-row-name { font-size: 14px; line-height: 20px; font-weight: 400; }
.prediction-row-pct { font-size: 14px; font-weight: 500; }
.prediction-row-actions { border-radius: 8px; overflow: hidden; }
.prediction-row-actions .odd { height: 40px; border-radius: 0; justify-content: space-between; }
.prediction-row-actions .odd .odd-label { font-size: 14px; font-weight: 400; }
.prediction-row-actions .odd strong, .prediction-options .odd strong { color: var(--success); font-weight: 400; }
.prediction-row-actions .odd:last-child strong, .prediction-options .odd.down strong { color: var(--danger); }
.prediction-row-actions .odd:disabled { opacity: .5; }
.prediction-row-actions .odd .ui-icon { color: var(--muted); width: 20px; height: 20px; }
.prediction-row-actions .odd.up[aria-pressed="true"] { background: var(--success); }
.prediction-row-actions .odd.down[aria-pressed="true"] { background: var(--danger); }
.prediction-row-actions .odd[aria-pressed="true"] strong, .prediction-row-actions .odd[aria-pressed="true"] .odd-label { color: var(--on-accent); }
.prediction-meta, .prediction-meta-market { height: 16px; flex-shrink: 0; color: var(--muted); }
.prediction-vol, .prediction-close-at { font-size: 12px; line-height: 16px; color: var(--muted); }
.prediction-close-at { display: inline-flex; align-items: center; gap: 4px; }
.prediction-close-at .ui-icon { width: 16px; height: 16px; color: var(--muted-2); }
.prediction-bar-wrap { height: 16px; }
.prediction-bar { min-height: 4px; }
.prediction-simulation { margin-right: auto; font-size: 12px; color: var(--muted); }
.prediction-options .odd { height: 44px; }
.prediction-detail-header { background: var(--panel); border-radius: 12px; overflow: hidden; }
.prediction-detail-header .detail-breadcrumb { padding: 0 12px; }
.prediction-detail-hero { display: flex; align-items: center; gap: 16px; padding: 24px; min-height: 120px; }
.prediction-detail-hero .prediction-thumb { width: 64px; height: 64px; flex-basis: 64px; }
.prediction-detail-hero h2 { font-size: 20px; line-height: 26px; font-weight: 500; }
.prediction-detail-meta { display: flex; justify-content: space-between; padding: 16px 24px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.prediction-detail-markets { margin-top: 12px; padding: 16px; border-radius: 12px; background: var(--panel); display: flex; flex-direction: column; gap: 8px; }
.prediction-detail-markets h2 { font-size: 16px; font-weight: 500; padding-bottom: 12px; }
.prediction-detail-markets .prediction-row { min-height: 50px; }
.prediction-detail-markets .prediction-row-actions .odd { height: 50px; }
.detail-header { position: relative; background: transparent; border: 0; border-radius: 0; padding: 0; }
.detail-breadcrumb { display: flex; align-items: center; gap: 8px; height: 40px; margin-bottom: 2px; min-width: 0; }
.detail-breadcrumb h1 { flex: 1; min-width: 0; font-size: 16px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.detail-breadcrumb > .ui-icon { width: 24px; height: 24px; color: var(--muted); }
.back-button { display: grid; place-items: center; width: 18px; height: 32px; flex-shrink: 0; margin: 0; color: var(--muted); }
.back-button .ui-icon { width: 20px; height: 20px; transform: rotate(-90deg); }
.detail-breadcrumb .event-switcher { margin-left: auto; border-radius: 8px; background: var(--panel); }
.detail-breadcrumb .favorite { margin: 0; }
.detail-event-chooser { position: absolute; top: 40px; right: 0; z-index: 15; width: min(400px, 100%); max-height: 320px; overflow-y: auto; padding: 8px; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--panel); box-shadow: var(--shadow); }
.detail-event-chooser button { display: block; padding: 12px; width: 100%; border-radius: 8px; font-size: 14px; text-align: left; }
.detail-event-chooser button:hover, .detail-event-chooser button[aria-pressed="true"] { background: var(--raised); color: var(--accent); }
.detail-scoreboard { display: flex; flex-direction: column; height: 320px; border-radius: 12px; background: var(--raised); overflow: hidden; }
.scoreboard-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); height: 32px; flex-shrink: 0; margin: 4px 24px 0; padding: 2px; border-radius: 12px; background: rgba(var(--neutral-rgb), .3); }
.scoreboard-tab { display: flex; justify-content: center; align-items: center; color: var(--muted); border-radius: 8px; font-size: 10px; font-weight: 500; }
.scoreboard-tab + .scoreboard-tab { border-left: 1px solid var(--border); }
.scoreboard-tab[aria-pressed="true"] { background: rgba(var(--neutral-rgb), .3); color: var(--text); }
.scoreboard-tab .ui-icon { width: 18px; height: 18px; }
.scoreboard-content { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.scoreboard-status { display: flex; justify-content: space-between; padding: 16px; color: var(--muted); font-size: 12px; }
.scoreboard-live { color: var(--danger); font-weight: 500; }
.detail-teams { flex: 1; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1fr); gap: 16px; align-items: center; padding: 8px 24px 24px; }
.detail-team { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; font-size: 14px; line-height: 20px; }
.detail-team strong { font-weight: 500; }
.detail-team .avatar { width: 56px; height: 56px; font-size: 26px; border-radius: 0; }
.scoreboard-center { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.scoreboard-center span { color: var(--muted); font-size: 12px; line-height: 16px; }
.scoreboard-result { font-size: 32px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.scoreboard-bottom { display: flex; justify-content: space-between; align-items: center; min-height: 60px; padding: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.scoreboard-statistics { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 12px 24px; }
.scoreboard-statistics > div { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.scoreboard-statistics > div strong { margin-left: auto; font-size: 24px; }
.scoreboard-statistics p, .scoreboard-empty { color: var(--muted); font-size: 14px; text-align: center; }
.scoreboard-empty { margin: auto; padding: 24px; }
.detail-market-navigation { position: sticky; top: var(--header-h); z-index: 14; height: 32px; display: flex; gap: 8px; margin: 8px 0; background: var(--bg); }
.detail-tabs { position: static; flex: 1; min-width: 0; padding: 0; border: 0; gap: 8px; height: 32px; background: transparent; }
.detail-tab { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; height: 32px; padding: 0 14px; border: 1px solid var(--border-strong); border-radius: 24px; font-size: 14px; font-weight: 400; color: var(--muted); }
.detail-tab:hover { color: var(--text); background: transparent; }
.detail-tab[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; font-weight: 500; }
.builder-badge { display: grid; place-items: center; height: 14px; min-width: 16px; border: 1px solid var(--accent); color: var(--accent); border-radius: 3px; font-size: 8px; line-height: 10px; font-weight: 700; }
.builder-tab[aria-pressed="true"] .builder-badge { color: var(--on-accent); border-color: var(--on-accent); }
.detail-tools { display: flex; gap: 2px; background: var(--bg); }
.detail-tools .icon-button { width: 28px; height: 32px; }
.detail-tools .collapse-markets .ui-icon { width: 12px; height: 12px; }
.detail-search-wrap { display: flex; align-items: center; border: 1px solid var(--border-strong); border-radius: 8px; margin-bottom: 8px; padding: 0 12px; height: 36px; gap: 8px; background: var(--panel); color: var(--muted); }
.detail-search { width: 100%; height: 34px; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 14px; }
.detail-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; gap: 12px; align-items: start; }
.market-column { display: flex; flex-direction: column; min-width: 0; gap: 12px; }
.market-group { border: 0; border-radius: 12px; background: var(--panel); overflow: hidden; }
.market-group > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: 44px; padding: 0 12px; border-bottom: 2px solid var(--bg); font-size: 16px; line-height: 20px; font-weight: 500; cursor: pointer; }
.market-group > summary::before { display: none; }
.market-group > summary .ui-icon { width: 16px; height: 16px; color: var(--muted); transition: transform .15s; }
.market-group:not([open]) > summary .ui-icon { transform: rotate(180deg); }
.market-group > summary:hover { background: var(--panel); }
.market-group:not([open]) > summary { border-bottom: 0; }
.market-table { display: flex; flex-direction: column; gap: 2px; padding: 8px; margin: 0; border: 0; }
.market-row, .market-row + .market-row { display: block; padding: 0; margin: 0; border: 0; }
.market-row-options { display: grid; grid-template-columns: repeat(var(--option-count, 2), minmax(0, 1fr)); gap: 2px; }
.market-row:first-child .market-row-options { border-radius: 8px 8px 0 0; overflow: hidden; }
.market-row:last-of-type .market-row-options { border-radius: 0 0 8px 8px; overflow: hidden; }
.market-row:only-of-type .market-row-options { border-radius: 8px; }
.market-row-options .detail-odd { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 8px; height: 50px; min-width: 0; width: 100%; padding: 0 16px; border-radius: 0; font-size: 14px; }
.market-row-options .detail-odd .odd-label { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; color: var(--muted); font-size: 14px; line-height: 16px; font-weight: 400; text-align: left; }
.market-row-options .detail-odd strong { flex-shrink: 0; color: var(--odd); font-size: 14px; line-height: 20px; font-weight: 400; }
.market-row-options .detail-odd[aria-pressed="true"] .odd-label, .market-row-options .detail-odd[aria-pressed="true"] strong { color: var(--on-accent); }
.market-more { height: 36px; font-size: 14px; color: var(--muted); }
.market-more:hover { color: var(--text); }
.builder-notice { padding: 12px; margin-bottom: 8px; border-radius: 8px; background: var(--panel); color: var(--muted); font-size: 14px; }

@media (max-width: 970px) {
    body[data-detail-open="true"] .categories { display: none !important; }
    .detail-scoreboard { height: 266px; }
    .detail-breadcrumb h1 { font-size: 16px; }
    .scoreboard-tabs { margin-left: 8px; margin-right: 8px; }
    .detail-teams { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); padding: 8px 12px 16px; gap: 8px; }
    .detail-team { font-size: 12px; line-height: 16px; }
    .detail-team .avatar { width: 48px; height: 48px; }
    .scoreboard-result { font-size: 28px; }
    .scoreboard-status, .scoreboard-center span, .scoreboard-bottom { font-size: 10px; }
    .scoreboard-status { padding: 12px; }
    .scoreboard-bottom { min-height: 48px; padding: 12px; }
    .detail-content { display: flex; flex-direction: column; gap: 8px; padding: 0; }
    .market-column { display: contents; }
    .market-group { width: 100%; }
    .market-group > summary { height: 40px; font-size: 14px; }
    .market-table { padding: 6px; }
    .market-row-options .detail-odd { padding: 0 12px; }
    .market-row-options .detail-odd .odd-label { font-size: 12px; }
    .detail-tab { font-size: 12px; padding: 0 12px; }
    .detail-tools { gap: 0; }
    .detail-tools .icon-button { width: 24px; }
    body[data-view="predictions"] .predictions-heading { display: none; }
    body[data-view="predictions"] .categories { max-height: none; height: auto; }
    body[data-view="predictions"] .sport-cards { padding: 8px 0 12px; }
    .prediction-filters { gap: 8px; margin-bottom: 8px; }
    .prediction-filters button { font-size: 12px; height: 32px; padding: 0 12px; }
    #prediction-markets { grid-template-columns: minmax(0, 1fr); }
    .prediction-card, .prediction-card.is-market { height: 188px; border-radius: 8px; }
    .prediction-head { height: 60px; min-height: 60px; padding: 12px; gap: 12px; }
    .prediction-thumb { width: 36px; height: 36px; flex-basis: 36px; }
    .prediction-title { font-size: 14px; line-height: 18px; }
    .prediction-body, .prediction-card.is-market .prediction-body { gap: 12px; padding: 12px; }
    .prediction-row { min-height: 36px; }
    .prediction-row-name, .prediction-row-pct { font-size: 12px; }
    .prediction-row-actions .odd { height: 36px; padding: 0 8px; gap: 4px; }
    .prediction-row-actions .odd .odd-label, .prediction-row-actions .odd strong { font-size: 12px; }
    .prediction-close-at, .prediction-vol { font-size: 12px; }
    .prediction-close-at .ui-icon { width: 14px; height: 14px; }
    .prediction-detail-hero { padding: 16px; }
    .prediction-detail-hero h2 { font-size: 18px; line-height: 24px; }
    .prediction-detail-markets { padding: 12px; }

}
@container sportsbook (max-width: 970px) {
    body[data-detail-open="true"] .categories { display: none !important; }
    .detail-scoreboard { height: 266px; }
    .detail-breadcrumb h1 { font-size: 16px; }
    .scoreboard-tabs { margin-left: 8px; margin-right: 8px; }
    .detail-teams { display: grid; grid-template-columns: minmax(0, 1fr) 84px minmax(0, 1fr); padding: 8px 12px 16px; gap: 8px; }
    .detail-team { font-size: 12px; line-height: 16px; }
    .detail-team .avatar { width: 48px; height: 48px; }
    .scoreboard-result { font-size: 28px; }
    .scoreboard-status, .scoreboard-center span, .scoreboard-bottom { font-size: 10px; }
    .scoreboard-status { padding: 12px; }
    .scoreboard-bottom { min-height: 48px; padding: 12px; }
    .detail-content { display: flex; flex-direction: column; gap: 8px; padding: 0; }
    .market-column { display: contents; }
    .market-group { width: 100%; }
    .market-group > summary { height: 40px; font-size: 14px; }
    .market-table { padding: 6px; }
    .market-row-options .detail-odd { padding: 0 12px; }
    .market-row-options .detail-odd .odd-label { font-size: 12px; }
    .detail-tab { font-size: 12px; padding: 0 12px; }
    .detail-tools { gap: 0; }
    .detail-tools .icon-button { width: 24px; }
    body[data-view="predictions"] .predictions-heading { display: none; }
    body[data-view="predictions"] .categories { max-height: none; height: auto; }
    body[data-view="predictions"] .sport-cards { padding: 8px 0 12px; }
    .prediction-filters { gap: 8px; margin-bottom: 8px; }
    .prediction-filters button { font-size: 12px; height: 32px; padding: 0 12px; }
    #prediction-markets { grid-template-columns: minmax(0, 1fr); }
    .prediction-card, .prediction-card.is-market { height: 188px; border-radius: 8px; }
    .prediction-head { height: 60px; min-height: 60px; padding: 12px; gap: 12px; }
    .prediction-thumb { width: 36px; height: 36px; flex-basis: 36px; }
    .prediction-title { font-size: 14px; line-height: 18px; }
    .prediction-body, .prediction-card.is-market .prediction-body { gap: 12px; padding: 12px; }
    .prediction-row { min-height: 36px; }
    .prediction-row-name, .prediction-row-pct { font-size: 12px; }
    .prediction-row-actions .odd { height: 36px; padding: 0 8px; gap: 4px; }
    .prediction-row-actions .odd .odd-label, .prediction-row-actions .odd strong { font-size: 12px; }
    .prediction-close-at, .prediction-vol { font-size: 12px; }
    .prediction-close-at .ui-icon { width: 14px; height: 14px; }
    .prediction-detail-hero { padding: 16px; }
    .prediction-detail-hero h2 { font-size: 18px; line-height: 24px; }
    .prediction-detail-markets { padding: 12px; }

}
body[data-view="predictions"] .categories { gap: 2px; }
.prediction-row-left { gap: 4px; }
.market-table { padding-top: 11px; }
.market-group > summary .ui-icon { width: 14px; height: 14px; }
.sidebar-panel > .period-tabs { padding: 0; margin: 0 0 12px; }
body[data-detail-open="true"][data-product="sports"] #featured-leagues, body[data-detail-open="true"][data-product="esports"] #featured-leagues { display: grid; }
body[data-detail-open="true"][data-product="sports"] #sports-filter > button:first-child, body[data-detail-open="true"][data-product="esports"] #sports-filter > button:first-child { display: none; }
body[data-layout="cards"] .sidebar-panel > .period-tabs { display: none; }
@media (max-width: 970px) {
    body[data-view="predictions"] .sidebar-panel { padding-bottom: 10px; }
    body[data-view="predictions"] .sport-cards { padding-bottom: 6px; }
    body[data-view="predictions"] #ticket-shortcut:not(.has-selections) { display: none; }
    .market-table { padding-top: 9px; }
}
@container sportsbook (max-width: 970px) {
    body[data-view="predictions"] .sidebar-panel { padding-bottom: 10px; }
    body[data-view="predictions"] .sport-cards { padding-bottom: 6px; }
    body[data-view="predictions"] #ticket-shortcut:not(.has-selections) { display: none; }
    .market-table { padding-top: 9px; }
}
.events { container: event-detail / inline-size; }
@container event-detail (max-width: 600px) {
    .detail-content { display: flex; flex-direction: column; gap: 8px; }
    .market-column { display: contents; }
    .market-group { width: 100%; }
}
.market-table { align-items: stretch; justify-content: flex-start; }
.market-row, .market-row-options { width: 100%; }
body[data-detail-open="true"] .categories { gap: 2px; }
body[data-product="sports"] .sidebar-panel > .period-tabs, body[data-product="esports"] .sidebar-panel > .period-tabs { padding: 0; margin: 0 0 12px; }

/* Native sportsbook symbols: fixed boxes without flex shrink or aspect distortion. */
.ui-icon { flex-shrink: 0; vertical-align: middle; overflow: hidden; }
.top-tabs button .ui-icon { width: 18px; height: 18px; }
.category-list button > .ui-icon { width: 18px; height: 18px; }
.ui-icon[data-icon="sport-live"] { aspect-ratio: 8 / 5; height: auto; }
.empty-ticket .ui-icon { width: 60px; height: 68px; }

.ticket-tools #ticket-settings .ui-icon { width: 14px; height: 14px; }
.ticket-tools #clear-ticket .ui-icon { width: 14px; height: 16px; }
.quickbet-toggle .ui-icon { width: 16px; height: 16px; padding: 4px; }
.empty-ticket .ui-icon { opacity: 1; }
