/* Reserve space before any match event; only explicit expansion covers content. */
body.has-betting-dock[data-bet-dock-layout="rail"] { padding-right: 56px; }
body.has-betting-dock[data-bet-dock-layout="bottom"] { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
#bettingDock { --dock-accent: #5cebd2; --dock-other: #ff6486; position: fixed; z-index: 45; right: 12px; top: 186px; width: 288px; color: var(--paper, #f2f0ea); font-family: var(--body-type, 'Barlow', sans-serif); }
#bettingDock * { box-sizing: border-box; }
#bettingDock [hidden] { display: none !important; }
#bettingDock button { cursor: pointer; font: inherit; text-transform: none; letter-spacing: 0; min-height: 40px; border-radius: 0; }
#bettingDock button:disabled { opacity: .45; cursor: default; }
#bettingDock :is(button, input):focus-visible { outline: 2px solid var(--dock-accent); outline-offset: 3px; }
#dockLauncher { display: flex; flex-direction: column; gap: 7px; padding: 16px; width: 100%; text-align: left; background: #181e22; border: 1px solid #384346; border-top: 2px solid var(--dock-accent); color: #f2f0ea; box-shadow: 0 8px 28px #0004; }
#dockLauncher strong { font: 600 25px/1.1 'Barlow Condensed', sans-serif; overflow-wrap: anywhere; }
.dock-kicker { color: var(--dock-accent); font-size: 10px; font-weight: 700; letter-spacing: .09em; }
#dockStatus, #dockPlanBrief, #dockTournamentBrief { font-size: 12px; line-height: 1.35; }
#dockPlanBrief:empty, #dockTournamentBrief:empty { display: none; }
#dockTournamentBrief { color: #e9bf72; }
.dock-launch-action { color: var(--dock-accent); font-size: 11px; margin-top: 3px; }
#dockPanel { padding: 16px; background: #181e22; border: 1px solid #384346; border-top: 2px solid var(--dock-accent); box-shadow: 0 18px 45px #0007; max-height: calc(100dvh - 210px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
#dockPanel header { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
#dockPanel h2 { font: 600 30px/1.1 'Barlow Condensed', sans-serif; margin: 5px 0 0; }
#dockCollapse { color: #b4bfc2; background: transparent; border: 1px solid #3b4649; padding: 0 9px; font-size: 12px !important; }
.dock-match { display: grid; gap: 5px; padding-bottom: 12px; border-bottom: 1px solid #354044; }
.dock-match > div { display: flex; gap: 9px; align-items: baseline; color: var(--dock-accent); min-width: 0; }
.dock-match > div:last-child { color: var(--dock-other); }
.dock-match > div > span { font-size: 10px; flex-shrink: 0; }
.dock-match strong { font: 600 24px/1.1 'Barlow Condensed', sans-serif; overflow-wrap: anywhere; }
.dock-versus { color: #9ba7ac; font-size: 10px; margin-left: 24px; }
.dock-match-status { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; padding: 10px 0; color: #c0c9cb; font-variant-numeric: tabular-nums; }
.dock-ticket, .dock-plan { border-top: 1px solid #354044; padding: 12px 0; font-size: 12px; line-height: 1.5; margin: 0; }
.dock-plan > strong { font-size: 14px; }
.dock-plan p { margin: 6px 0; color: #c0c9cb; }
#dockPlanLegs { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 5px 10px; font-size: 11px; }
#dockCancel { background: transparent; color: #f2f0ea; border: 1px solid #6e555d; width: 100%; font-size: 12px !important; }
.dock-modes { display: flex; border-bottom: 1px solid #354044; margin: 5px 0 15px; }
.dock-modes button { flex: 1; background: transparent; color: #a9b4b7; border: 0; border-bottom: 2px solid transparent; font-size: 12px !important; padding: 0 4px; }
.dock-modes button[aria-pressed="true"] { color: var(--dock-accent); border-bottom-color: var(--dock-accent); }
.dock-form-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.dock-form-top span { color: #a9b4b7; font-size: 11px; }
#dockForm label { font-size: 12px; color: #f2f0ea; }
#dockForm input { width: 100%; min-width: 0; height: 42px; border: 1px solid #526066; border-radius: 0; background: #0e1417; color: #f2f0ea; padding: 8px 10px; font: 600 18px 'Barlow Condensed', sans-serif; }
.dock-shortcuts, .dock-sides { display: flex; gap: 6px; margin: 8px 0 12px; }
.dock-shortcuts button, .dock-sides button, .dock-leg button { flex: 1; background: #222c30; border: 1px solid #3e4b50; color: #f2f0ea; font-size: 12px !important; padding: 5px; }
.dock-sides button[aria-pressed="true"], .dock-leg button[aria-pressed="true"] { border-color: var(--dock-accent); color: var(--dock-accent); background: #203831; }
.dock-sides button[data-side="right"][aria-pressed="true"] { border-color: var(--dock-other); color: var(--dock-other); background: #35262c; }
#dockCount { margin-top: 7px; }
.dock-leg { display: grid; grid-template-columns: 1fr 52px 52px; align-items: center; gap: 6px; margin: 6px 0; font-size: 12px; }
.dock-note { color: #b2bec1; font-size: 11px; line-height: 1.5; margin: 10px 0; }
#dockSubmit, #dockSignIn { width: 100%; padding: 10px; color: #10181a; background: var(--dock-accent); border: 0; font-size: 13px !important; font-weight: 700 !important; }
#dockMessage { font-size: 12px; color: var(--dock-accent); line-height: 1.4; margin: 10px 0 0; }
#dockMessage:empty { display: none; }
#dockMessage.error { color: #ff9cb0; }
.dock-tournament { width: 100%; background: transparent; color: #e9bf72; font-size: 11px !important; border: 1px solid #685d48; margin-top: 14px; padding: 8px; }
#bettingDock.expanded #dockLauncher { display: none; }
body[data-bet-dock-layout="rail"] #bettingDock { top: auto; bottom: 16px; right: 6px; width: 44px; }
body[data-bet-dock-layout="rail"] #dockLauncher { flex-direction: row; align-items: center; padding: 12px 10px; gap: 12px; writing-mode: vertical-rl; max-height: calc(100dvh - 32px); box-shadow: none; }
body[data-bet-dock-layout="rail"] #dockLauncher strong { font: 600 17px/1.1 'Barlow Condensed', sans-serif; }
body[data-bet-dock-layout="rail"] #dockLauncher .dock-kicker, body[data-bet-dock-layout="rail"] .dock-launch-action, body[data-bet-dock-layout="rail"] #dockPlanBrief { display: none; }
body[data-bet-dock-layout="rail"] #bettingDock.expanded { width: 300px; }
body[data-bet-dock-layout="rail"] #dockPanel { max-height: calc(100dvh - 32px); }
body[data-bet-dock-layout="bottom"] #bettingDock { top: auto; bottom: 0; right: 0; width: 100%; }
body[data-bet-dock-layout="bottom"] #dockLauncher { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); min-height: 72px; }
body[data-bet-dock-layout="bottom"] #dockLauncher .dock-kicker, body[data-bet-dock-layout="bottom"] .dock-launch-action, body[data-bet-dock-layout="bottom"] #dockPlanBrief { display: none; }
body[data-bet-dock-layout="bottom"] #dockLauncher strong { font-size: 21px; }
body[data-bet-dock-layout="bottom"] #dockStatus { text-align: right; }
body[data-bet-dock-layout="bottom"] #dockTournamentBrief { grid-column: 1 / -1; }
body[data-bet-dock-layout="bottom"] #dockPanel { max-height: min(80dvh, 680px); padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
body[data-bet-dock-layout="bottom"] #bettingDock.expanded #dockLauncher { display: none; }
@media (max-height: 650px) { body[data-bet-dock-layout="wide"] #bettingDock { top: 12px; } body[data-bet-dock-layout="wide"] #dockPanel { max-height: calc(100dvh - 24px); } }
@media (prefers-reduced-motion: reduce) { #bettingDock *, #bettingDock *::before, #bettingDock *::after { animation: none !important; transition: none !important; } }
