:root { color-scheme: dark; --bg: #101114; --surface: #191b20; --surface-soft: #202228; --border: #30333a; --text: #f0eee9; --muted: #a8abb3; --primary: #d6bd88; --primary-hover: #e8d2a5; --accent-soft: #302b22; --success: #9fd2b0; --radius: 14px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; background: radial-gradient(ellipse at 80% 0%, #24231c55, transparent 45%), var(--bg); color: var(--text); font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif; font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button, a, input, select, summary { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
button, input, select { transition: background .16s, border-color .16s, box-shadow .16s; }
button:disabled { opacity: .42; cursor: default; }
:focus-visible { outline: 3px solid #d6bd88; outline-offset: 3px; }
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { color: var(--text); position: fixed; top: -70px; left: 18px; padding: 12px 18px; z-index: 100; background: var(--surface); border-radius: 8px; }
.skip-link:focus { top: 12px; }
.app-header { height: 82px; padding: 0 40px; display: flex; align-items: center; gap: 64px; background: var(--surface); border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 27px; font-weight: 750; letter-spacing: -1.15px; flex-shrink: 0; }
.brand-light { font-weight: 450; }
.brand-period { color: #d6bd88; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; background: var(--primary); color: #171717; border-radius: 10px; }
.brand-mark .icon { width: 26px; height: 26px; stroke-width: 2.8; }
.app-nav { align-self: stretch; display: flex; }
.app-nav a { display: flex; align-items: center; gap: 9px; border-bottom: 2px solid var(--primary); padding: 2px 3px 0; font-size: 14px; font-weight: 600; color: var(--primary); }
.app-nav .icon { width: 16px; height: 16px; }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 22px; color: var(--muted); font-size: 14px; }
.sport-label { display: flex; align-items: center; gap: 8px; }
.sport-dot { width: 6px; height: 6px; border-radius: 50%; background: #d6bd88; }
.header-divider { height: 20px; width: 1px; background: var(--border); }
.help-button { display: inline-flex; min-width: 40px; align-items: center; gap: 8px; padding: 9px 0; border: 0; background: none; color: var(--muted); }
.help-button:hover { color: var(--primary); }
.main-content { max-width: 1920px; margin: auto; padding: 32px 36px 24px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
.eyebrow { font-size: 12px; letter-spacing: 1.8px; font-weight: 650; color: var(--muted); margin: 0 0 10px; }
h1 { margin: 0; font-size: clamp(34px, 3vw, 42px); font-weight: 600; letter-spacing: -1.25px; line-height: 1.2; }
h1 > span { color: #d6bd88; }
.subtitle { margin: 10px 0 0; color: var(--muted); font-size: 15px; }
.topbar-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.connection-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 13px; }
.status-dot { width: 6px; height: 6px; background: #9fd2b0; border-radius: 50%; }
.status-dot[data-state="loading"] { background: #e5ba70; }
.status-dot[data-state="error"] { background: #ed9f91; }
.btn { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 9px 14px; border: 1px solid transparent; border-radius: 7px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn .icon { width: 16px; height: 16px; }
.btn-primary { color: #181715; background: var(--primary); box-shadow: 0 2px 2px #00000030; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-secondary { background: var(--surface); border-color: #3b3e46; }
.btn-secondary:hover:not(:disabled) { background: #26292f; border-color: #70654f; }
#refreshBtn:disabled .icon { animation: spin 1.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr) 1.2fr; gap: 14px; margin-bottom: 27px; }
.stat-card { padding: 19px 22px 20px; box-shadow: 0 4px 16px #00000012; border: 1px solid var(--border); background: var(--surface); border-radius: var(--radius); }
.stat-label { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.stat-label .icon { color: #a39c8a; width: 17px; height: 17px; }
.stat-value { display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px; margin-top: 8px; }
.stat-value strong { font-size: 36px; font-weight: 550; letter-spacing: -1px; line-height: 1.2; font-variant-numeric: tabular-nums; }
.stat-value > span { color: #a8abb3; font-size: 13px; }
.sync-card { background: linear-gradient(125deg, #2a2821, #20221f); border-color: #464031; }
.sync-card > strong { display: block; font-size: 20px; font-weight: 550; margin-top: 9px; color: var(--primary); }
.sync-card small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.sync-card[data-state="error"] { background: #30231f; border-color: #63463a; }
.sync-card[data-state="error"] > strong { color: #efb69b; }
.sync-card[data-state="cached"] { background: #28261f; border-color: #5b5137; }
.sync-card[data-state="cached"] > strong { color: #e4cd9c; }
.workspace-controls { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 18px 20px; }
.controls-primary { display: grid; grid-template-columns: minmax(240px, .9fr) minmax(240px, 1.5fr) auto; align-items: end; gap: 20px; }
.field { min-width: 0; }
.field label { display: block; color: #b6b8bf; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
input:not([type="checkbox"]), select { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid #3b3e46; border-radius: 6px; background: var(--surface); color: var(--text); font-size: 14px; }
input::placeholder { color: #9398a3; opacity: 1; }
input:hover, select:hover { border-color: #786b50; }
input:focus, select:focus { border-color: #d6bd88; box-shadow: 0 0 0 3px #d6bd881a; }
select { appearance: none; padding-right: 31px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23717a72' stroke-width='1.7'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; text-overflow: ellipsis; }
select:disabled { color: var(--muted); background-color: var(--surface-soft); }
.market-control select { font-weight: 600; background-color: #202228; }
.search-wrap { position: relative; }
.search-wrap > .icon { position: absolute; top: 15px; left: 13px; width: 16px; height: 16px; color: #a8abb3; pointer-events: none; }
.search-wrap input { padding-left: 37px; padding-right: 42px; }
kbd { font-family: inherit; font-size: 12px; font-weight: 400; background: #26292f; border: 1px solid #30333a; border-radius: 4px; padding: 1px 6px; color: #b5b6bb; }
.search-wrap kbd { position: absolute; right: 12px; top: 13px; pointer-events: none; }
.search-wrap:focus-within kbd, .search-wrap:has(input:not(:placeholder-shown)) kbd { display: none; }
.filter-toggle { min-width: 154px; }
.filter-toggle[aria-expanded="true"] { background: #302b22; border-color: #746143; color: var(--primary); }
.count-badge { font-size: 12px; min-width: 19px; height: 19px; display: inline-grid; place-items: center; background: var(--primary); color: #181715; border-radius: 5px; padding: 0 4px; }
.controls-secondary { display: grid; grid-template-columns: 1fr 1.2fr 1fr auto; gap: 14px; align-items: end; margin-top: 16px; padding-top: 16px; border-top: 1px solid #292c32; }
.controls-secondary .field { display: block; }
.controls-secondary label { margin: 0 0 7px; }
.controls-secondary select { min-height: 44px; padding-top: 7px; padding-bottom: 7px; border-color: var(--border); background-color: var(--surface-soft); font-size: 13px; }
.text-button { border: 0; background: none; padding: 3px 0; color: var(--primary); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.text-button:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-button .icon { width: 13px; height: 13px; }
.text-button.muted { color: var(--muted); font-weight: 400; }
.reset-all { min-height: 44px; margin-left: 8px; }
.filter-status { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; min-height: 49px; padding: 10px 2px; }
.filter-status > p { font-size: 13px; color: var(--muted); margin: 0; }
.auto-update { margin-left: auto; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.auto-update > span { width: 5px; height: 5px; border-radius: 50%; background: #cbb582; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { display: inline-flex; align-items: center; gap: 6px; max-width: 250px; border: 1px solid #665a40; background: #302b22; color: #e3cfa6; border-radius: 5px; font-size: 12px; padding: 3px 7px; }
.filter-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.filter-chip .icon { width: 11px; height: 11px; }
.filter-chip:hover { background: #3c3528; }
.comparison-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.comparison-layout.filters-closed { grid-template-columns: minmax(0, 1fr); }
.table-card, .filters-card { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.table-card { overflow: hidden; box-shadow: 0 8px 30px #00000018; }
.table-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 20px; }
h2 { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.2px; }
.table-title p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.table-view-tools { display: flex; margin-left: auto; align-items: center; gap: 12px; }
.sort-control { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--muted); }
.sort-control > span { white-space: nowrap; }
.sort-control select { width: 196px; min-height: 40px; font-size: 12px; padding: 7px 26px 7px 9px; background-color: var(--surface-soft); }
.density-control { display: flex; padding: 3px; border: 1px solid var(--border); border-radius: 6px; gap: 2px; }
.icon-button { display: inline-grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 4px; background: transparent; color: #a8abb3; }
.icon-button .icon { width: 15px; height: 15px; }
.icon-button:hover { background: #292a2c; color: var(--primary); }
.icon-button[aria-pressed="true"] { background: #393225; color: var(--primary); }
.table-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 20px 14px; }
#resultsText { font-size: 12px; color: var(--muted); margin: 0; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.legend-dot { width: 8px; height: 8px; border-radius: 2px; background: #345b46; border: 1px solid #5a8869; }
.table-responsive { overflow: auto; max-height: 640px; scrollbar-width: thin; scrollbar-color: #494d56 transparent; }
.table-responsive.is-empty thead { display: none; }
.table-responsive.is-empty { border-top: 1px solid var(--border); }
.table-responsive.is-empty table { table-layout: fixed; white-space: normal; }
.odds-table { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.odds-table th { position: sticky; top: 0; z-index: 2; background: #202228; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: #aeb1ba; height: 48px; padding: 10px 13px; font-size: 12px; font-weight: 600; letter-spacing: .45px; text-transform: uppercase; text-align: center; }
.odds-table th:first-child { left: 0; z-index: 3; text-align: left; padding-left: 20px; }
.odds-table th.book-heading { color: #dfdfdf; text-transform: none; font-size: 13px; letter-spacing: 0; }
.odds-table th.best-heading { color: var(--primary); background: #2b2921; }
.odds-table td { border-bottom: 1px solid #292c32; height: 78px; padding: 12px 13px; text-align: center; background: var(--surface); }
.odds-table tbody tr:last-child td { border-bottom: 0; }
.odds-table tbody tr:hover td { background: #22252a; }
.odds-table td.event-cell { position: sticky; left: 0; z-index: 1; padding-left: 20px; min-width: 200px; max-width: 280px; text-align: left; }
.player-identity { display: flex; align-items: center; gap: 10px; }
.player-avatar { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #3a3d43; border-radius: 50%; background: #26292e; color: #c0baa9; font-size: 12px; letter-spacing: .3px; font-weight: 600; flex-shrink: 0; }
.player-copy { min-width: 0; flex: 1; }
.copy-player { width: 32px; height: 32px; display:grid; place-items:center; flex-shrink:0; border:1px solid transparent; border-radius:7px; background:transparent; color:#8f949e; opacity:.72; }
.copy-player .icon { width:15px; height:15px; }
.copy-player:hover, .copy-player:focus-visible { opacity:1; color:var(--primary); background:#2a2b2d; border-color:#454238; }
.copy-player.is-copied { opacity:1; color:#b4e4bf; background:#20392c; border-color:#3a5d45; }
.copy-player.copy-error { opacity:1; color:#ef9a9a; border-color:#7d3f3f; }
.odds-table tbody tr:hover .copy-player { opacity:1; }
.mobile-row-meta { display: none; }
.event-main { font-weight: 600; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.event-meta { color: #a6abb3; font-size: 12px; margin-top: 4px; white-space: normal; overflow-wrap: anywhere; }
.league-label { display: inline-block; font-size: 12px; color: #aeb1ba; max-width: 100px; white-space: normal; }
.outcome-badge { display: inline-block; padding: 3px 7px; font-size: 12px; font-weight: 600; background: #292c32; border: 1px solid #3b3f47; color: #c4c7ce; border-radius: 4px; }
.odd { display: inline-block; min-width: 46px; padding: 6px 8px; font-size: 14px; }
.odd.best { background: #20392c; color: #b4e4bf; border-radius: 5px; font-weight: 650; box-shadow: inset 0 0 0 1px #3a5d45; }
.odds-table td.best-cell { background: #21231f; }
.best-cell strong { font-size: 15px; font-weight: 650; color: var(--primary); }
.best-cell .event-meta { color: #c8bb9d; }
.difference { color: #a5d8b4; font-weight: 600; }
.diff-value { color: #c0c3cb; }
.compact .odds-table td { height: 60px; padding-top: 7px; padding-bottom: 7px; }
.compact .player-avatar { display: none; }
.compact .copy-player { width:28px; height:28px; }
.compact .odd { padding-top: 4px; padding-bottom: 4px; }
.compact .event-meta { margin-top: 2px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; }
.pagination > div { display: flex; gap: 7px; }
.pagination .btn { min-height: 40px; font-size: 12px; padding: 6px 10px; }
.pagination .icon { width: 12px; height: 12px; }
.arrow-left { transform: rotate(180deg); }
.empty-state { padding: 65px 24px !important; white-space: normal; }
.empty-content { display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: 380px; margin: auto; }
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; background: #302b22; color: #d6bd88; border-radius: 13px; margin-bottom: 5px; }
.empty-content strong { font-size: 18px; font-weight: 550; }
.empty-content p { margin: 0; font-size: 14px; color: var(--muted); }
.empty-content .btn { margin-top: 5px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; padding: 16px 17px; border-bottom: 1px solid var(--border); }
.panel-heading > div { display: flex; align-items: center; gap: 8px; }
.panel-heading > div > .icon { width: 15px; height: 15px; color: #b6a682; }
.panel-heading h2 { font-size: 14px; letter-spacing: 0; }
.panel-scroll { padding: 0 18px; }
@media (min-width: 1001px) {
  .filters-card { position: sticky; top: 16px; display: flex; flex-direction: column; max-height: min(810px, calc(100dvh - 32px)); }
  .panel-heading, .filter-footer { flex-shrink: 0; }
  .panel-scroll { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #494d56 transparent; }
}
.filter-section { border-bottom: 1px solid var(--border); padding: 17px 0; }
.filter-section summary { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; list-style: none; }
.filter-section summary::-webkit-details-marker { display: none; }
.filter-section summary::after { content: ""; width: 5px; height: 5px; margin-left: auto; margin-right: 3px; border-right: 1px solid #aaa18b; border-bottom: 1px solid #aaa18b; transform: rotate(45deg); }
.filter-section[open] summary::after { transform: rotate(225deg); }
.section-count { font-size: 12px; font-weight: 400; background: #2e2d27; border-radius: 4px; padding: 1px 5px; color: #c9bb9e; }
fieldset { min-width: 0; padding: 0; margin: 0; border: 0; }
.book-actions { display: flex; justify-content: space-between; margin: 12px 0 8px; }
.book-actions .text-button { font-size: 12px; }
.book-checkboxes { display: grid; gap: 6px; }
.check-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #d8dadd; }
.book-checkboxes .check-label { padding: 8px 9px; border: 1px solid var(--border); border-radius: 6px; }
.book-checkboxes .check-label:has(input:checked) { background: #252620; border-color: #4d4938; }
input[type="checkbox"] { width: 17px; height: 17px; flex-shrink: 0; margin: 0; accent-color: var(--primary); cursor: pointer; }
.book-monogram { font-size: 12px; font-weight: 650; color: #c8b88e; margin-left: auto; background: #383427; border-radius: 3px; min-width: 20px; text-align: center; padding: 1px 4px; }
.require-all { align-items: flex-start; margin-top: 14px; font-size: 12px; line-height: 1.6; }
.require-all input { margin-top: 2px; }
.section-hint { font-size: 13px; color: #a8abb3; line-height: 1.65; margin: 10px 0; }
.book-selection > .section-hint { margin-bottom: 0; }
.range-card { margin-top: 12px; }
.range-card legend { padding: 0; font-size: 12px; font-weight: 600; color: #c7c5bd; }
.range-card > .section-hint { margin-top: 4px; }
.range-inputs { display: grid; grid-template-columns: minmax(0, 1fr) 8px minmax(0, 1fr); align-items: end; gap: 7px; }
.range-inputs input { min-height: 44px; padding: 8px 9px; font-size: 13px; }
.range-inputs label { font-weight: 400; font-size: 12px; margin-bottom: 5px; }
.range-separator { color: #92969e; padding-bottom: 8px; }
.quota-mode { margin-top: 13px; }
.quota-mode label { font-weight: 400; font-size: 12px; }
.quota-mode select { min-height: 42px; font-size: 12px; padding-left: 8px; }
.percent-range { margin-top: 18px; }
.range-help { color: #a8abb3; font-size: 12px; line-height: 1.6; padding: 4px 0; }
.filter-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 5px; padding: 12px 10px; border-top: 1px solid var(--border); background: #20221f; border-radius: 0 0 var(--radius) var(--radius); color: #c2b38d; font-size: 12px; }
.filter-footer > .icon { width: 12px; height: 12px; }
#showResultsBtn { display: none; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 19px; color: #a0a5af; font-size: 12px; }
.workspace-footer > span { display: flex; align-items: center; gap: 7px; }
.workspace-footer .icon { width: 13px; height: 13px; }
.message { background: #30231f; color: #efb69b; border: 1px solid #63463a; font-size: 14px; line-height: 1.7; padding: 13px 17px; border-radius: 8px; }
#filterError { padding: 10px; font-size: 12px; }
[aria-invalid="true"] { border-color: #dc9580 !important; background: #30231f !important; }
.filter-backdrop { position: fixed; inset: 0; z-index: 20; background: #00000099; backdrop-filter: blur(2px); }
.help-dialog { width: min(590px, calc(100% - 32px)); max-height: calc(100dvh - 48px); border: 1px solid var(--border); border-radius: 18px; padding: 30px; background: var(--surface); color: var(--text); box-shadow: 0 24px 100px #00000080; }
.help-dialog::backdrop { background: #000000aa; backdrop-filter: blur(3px); }
.dialog-heading { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; }
.dialog-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--primary); background: var(--accent-soft); }
.dialog-heading .icon-button { width: 32px; height: 32px; }
.help-dialog h2 { font-size: 30px; letter-spacing: -.8px; font-weight: 550; }
.help-steps { list-style: none; counter-reset: steps; padding: 0; margin: 24px 0; display: grid; gap: 18px; }
.help-steps li { display: flex; gap: 12px; counter-increment: steps; }
.help-steps li::before { content: counter(steps, decimal-leading-zero); flex-shrink: 0; font-size: 13px; font-weight: 600; color: #d6bd88; padding-top: 2px; }
.help-steps h3 { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.help-steps p, .help-note p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }
.help-note { display: flex; gap: 10px; padding: 14px; background: #252620; border-radius: 8px; }
.help-note .icon { margin-top: 3px; width: 15px; height: 15px; color: #c2b38d; }
.keyboard-tip { display: flex; align-items: center; gap: 8px; margin: 20px 0 0; font-size: 12px; color: var(--muted); }
@media (min-width: 1600px) { .comparison-layout { grid-template-columns: minmax(0, 1fr) 340px; } .odds-table td { padding-left: 20px; padding-right: 20px; } }
@media (max-width: 1200px) {
.app-header { padding: 0 26px; gap: 40px; } .main-content { padding: 28px 26px 18px; }
.controls-secondary .field { display: block; } .controls-secondary label { margin-bottom: 6px; }
.sort-control > span { display: none; } .table-head { padding: 17px; }
.comparison-layout { gap: 14px; grid-template-columns: minmax(0, 1fr) 300px; }
.stat-value { gap: 8px; } .stat-value > span { font-size: 12px; }
}
@media (max-width: 1000px) {
.comparison-layout { display: block; }
.filters-card { position: fixed; right: 0; top: 0; bottom: 0; z-index: 30; width: min(400px, calc(100% - 16px)); border-radius: 14px 0 0 14px; display: flex; flex-direction: column; box-shadow: -15px 0 60px #00000055; }
.panel-heading { padding: 19px 20px; flex-shrink: 0; } .panel-heading h2 { font-size: 16px; }
.panel-heading .icon-button, .help-dialog .icon-button { width: 40px; height: 40px; }
.filter-section summary { min-height: 26px; }
.book-checkboxes .check-label { min-height: 46px; }
.book-actions .text-button { min-height: 30px; }
.range-inputs input, .quota-mode select { min-height: 46px; font-size: 14px; }
.panel-scroll { overflow-y: auto; flex: 1; padding: 0 22px; }
.filter-footer { padding: 15px 20px; border-radius: 0; flex-shrink: 0; justify-content: space-between; }
.filter-footer > .icon { display: none; } #showResultsBtn { display: inline-flex; }
body.filters-modal-open { overflow: hidden; }
.controls-primary { gap: 14px; grid-template-columns: minmax(200px, 1fr) minmax(180px, 1.2fr) auto; }
.filter-toggle { min-width: auto; } .stats-grid { gap: 10px; } .stat-card { padding: 15px; }
.stat-value { flex-wrap: wrap; gap: 3px 7px; } .auto-update { display: none; }
}
@media (max-width: 720px) {
.app-header { height: 65px; padding: 0 20px; } .brand { font-size: 26px; } .app-nav { display: none; }
.header-end { gap: 12px; } .header-divider, .sport-label { display: none; }
.main-content { padding: 25px 20px 18px; } .page-heading { align-items: flex-start; margin-bottom: 23px; }
.eyebrow { font-size: 11px; letter-spacing: 1.3px; } h1 { font-size: 32px; max-width: 270px; }
.subtitle { font-size: 13px; max-width: 260px; line-height: 1.7; }
.topbar-actions { gap: 8px; padding-top: 25px; } .connection-status { font-size: 12px; }
#refreshBtn { font-size: 12px; min-height: 44px; padding: 8px 10px; }
.stats-grid { grid-template-columns: 1fr 1fr; margin-bottom: 20px; } .stat-card { padding: 14px 16px; }
.stat-value strong { font-size: 32px; } .sync-card > strong { font-size: 18px; margin-top: 5px; } .sync-card small { font-size: 12px; }
.workspace-controls { padding: 15px; } .controls-primary { grid-template-columns: 1fr auto; gap: 13px; }
.market-control { grid-column: 1 / -1; } .field-search label { display: none; }
.filter-toggle { padding: 9px 11px; font-size: 13px; }
.controls-secondary { grid-template-columns: 1fr 1fr; gap: 12px; } .reset-all { justify-self: end; margin-right: 4px; }
.table-head { flex-wrap: wrap; gap: 16px; padding: 17px 15px; } .table-title h2 { font-size: 16px; }
.table-view-tools { margin-left: auto; gap: 8px; } .sort-control select { width: 180px; }
.table-context { padding: 0 15px 13px; } .workspace-footer { align-items: flex-start; flex-direction: column; gap: 8px; font-size: 12px; }
.workspace-footer .text-button { font-size: 12px; } .table-responsive { max-height: 65vh; }
.odds-table th:nth-child(2), .odds-table th:nth-child(3), .odds-table td:nth-child(2), .odds-table td:nth-child(3) { display: none; }
.mobile-row-meta { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12px; color: #a6abb3; white-space: normal; }
.mobile-row-meta .outcome-badge { font-size: 11px; padding: 1px 4px; }
.odds-table td.event-cell { box-shadow: 2px 0 4px #00000025; }
}
@media (max-width: 450px) {
html { scrollbar-gutter: auto; } .app-header { padding: 0 15px; } .header-end .help-button span { display: none; }
.help-button { padding: 10px; } .main-content { padding: 23px 14px 16px; }
.page-heading { flex-wrap: wrap; gap: 16px; } .page-heading h1 { max-width: none; font-size: clamp(28px, 7.7vw, 34px); } .subtitle { max-width: none; }
.topbar-actions { flex-direction: row-reverse; justify-content: space-between; width: 100%; align-items: center; padding: 0; }
.connection-status { font-size: 11px; } .stat-card { padding: 13px; } .stat-label { font-size: 12px; }
.stat-value > span { font-size: 12px; } .stat-label .icon { width: 15px; height: 15px; }
.stat-value strong { font-size: 30px; } .sync-card > strong { font-size: 16px; }
.controls-primary { gap: 12px 8px; }
.filter-toggle > span:not(.count-badge) { font-size: 0; }
.filter-toggle > span:not(.count-badge)::after { content: "Filtri"; font-size: 14px; }
.search-wrap input { font-size: 16px; padding-right: 10px; } .search-wrap kbd { display: none; }
.table-view-tools { width: 100%; justify-content: space-between; flex-wrap: wrap; } .sort-control > span { display: none; }
.table-context { gap: 8px; } #resultsText, .legend { font-size: 12px; }
.odds-table td.event-cell { min-width: 156px; max-width: 190px; padding-left: 12px; }
.odds-table th:first-child { padding-left: 12px; } .player-avatar { display: none; }
.pagination { padding: 12px; gap: 6px; } .pagination .btn { padding: 6px 8px; gap: 4px; } .pagination > div { gap: 5px; }
.help-dialog { padding: 22px; } .help-dialog h2 { font-size: 26px; } .keyboard-tip { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, html { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }

@media (max-width: 720px) { input:not([type="checkbox"]), select, .controls-secondary select, .range-inputs input, .quota-mode select { font-size: 16px; } .sort-control select { font-size: 13px; } .table-context { flex-wrap: wrap; } .workspace-footer > span { align-items: flex-start; } .workspace-footer > span .icon { margin-top: 3px; } }
