.floating-reference { position:fixed; right:max(10px,env(safe-area-inset-right)); bottom:max(10px,env(safe-area-inset-bottom)); z-index:60; width:min(390px,calc(100vw - 20px)); color:#294453; font-size:12px; }
.floating-reference [hidden] { display:none !important; }
.reference-panel { border:1px solid #b8cdd6; border-radius:14px; background:#fff; box-shadow:0 8px 34px #19334630; overflow:hidden; }
.reference-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:2px 12px; border-bottom:1px solid #dfE8ec; }
.reference-heading h2 { margin:0; color:#294453; font-size:14px; }
.reference-close,.reference-launcher { min-height:44px; border:0; font:inherit; font-weight:600; cursor:pointer; }
.reference-close { padding:0 8px; color:#466b80; background:none; }
.reference-launcher { display:block; margin-left:auto; padding:10px 18px; border:1px solid #a9c7ba; border-radius:24px; color:#fff; background:#28694f; box-shadow:0 4px 18px #234c3833; }
.reference-context { display:flex; flex-wrap:wrap; align-items:center; gap:4px 12px; padding:8px 12px; border-bottom:1px solid #dfe8ec; background:#f6f9fa; }
.reference-ban { padding:4px 8px; border:1px solid #d0b8aa; border-radius:6px; background:#fff8f2; color:#775545; font-size:13px; }
.reference-ban[data-state="known"] { border-color:#d99987; color:#a42f27; background:#ffece3; }
.reference-ban[data-state="unavailable"] { color:#526a7c; border-color:#b8c8d2; background:#edf3f7; }
.reference-status { flex:1; margin:0; color:#26704f; font-size:11px; line-height:1.5; }
.floating-reference[data-state="closed"] .reference-status { color:#a3493b; }
.floating-reference[data-state="waiting"] .reference-status { color:#6f8190; }
.reference-scroll { max-height:min(64dvh,460px); overflow:auto; overscroll-behavior:contain; }
.reference-table { width:100%; border-collapse:collapse; table-layout:fixed; font-size:12px; }
.reference-table thead th { padding:5px 10px; color:#70838e; font-size:11px; font-weight:500; text-align:right; }
.reference-table thead th:first-child { width:35%; text-align:left; }
.reference-table thead th:nth-child(2) { width:15%; }
.reference-table thead th:nth-child(3) { width:24%; }
.reference-table thead th:nth-child(4) { width:26%; }
.reference-table thead th,.reference-table td,.reference-table tbody th { padding-inline:6px; }
.reference-profit { font-weight:750; }
.reference-profit[data-tone="positive"] { color:#26704d; }
.reference-profit[data-tone="negative"] { color:#b4473c; }
.reference-table td,.reference-table tbody th { padding:7px 10px; border-top:1px solid #e7eef1; text-align:right; vertical-align:middle; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; white-space:normal; line-height:1.4; }
.reference-table tbody th { text-align:left; font-size:12px; font-weight:500; color:#294453; background:transparent; }
.reference-seat { display:inline-block; margin-right:5px; color:#8b9ca6; font-size:10px; }
.reference-stake { color:#236449; font-weight:750; }
.reference-table tr[data-choice="like"] { background:#edf8f1; }
.reference-table tr[data-choice="dislike"] { background:#fcf0f0; }
.reference-note { margin:0; padding:7px 12px 10px; color:#72838e; font-size:10px; line-height:1.5; overflow-wrap:anywhere; }
.floating-reference button:focus-visible { outline:3px solid #88b6cb; outline-offset:-3px; }
@media (max-width:400px) { .floating-reference { width:min(370px,calc(100vw - 20px)); } }
