:root { color-scheme:dark; --bg:#141414; --panel:#1a1a1a; --text:#e9e9e9; --muted:#a0a0a0; --border:#353535; --accent:#dc9d68; font:14px/1.5 ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--text); }
button,input,select { font:inherit; }
button { cursor:pointer; background:none; border:0; color:inherit; }
button:disabled { opacity:.4; cursor:not-allowed; }
a { color:inherit; text-decoration:none; }
a:hover { text-decoration:underline; text-underline-offset:3px; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible { outline:2px solid var(--accent); outline-offset:3px; }
h1,h2,h3,p { margin:0; }
h2 { font-size:15px; font-weight:600; }
[hidden] { display:none!important; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.skip { position:absolute; top:-80px; left:20px; padding:10px; background:var(--text); color:var(--bg); z-index:10; }
.skip:focus { top:10px; }
.topbar { border-bottom:1px solid var(--border); }
.topbar-inner,.container { max-width:1400px; margin:auto; padding:0 28px; }
.topbar-inner { display:flex; align-items:center; height:62px; gap:36px; }
.brand { display:flex; align-items:center; gap:10px; font-size:15px; font-weight:550; }
.brand img { width:26px; height:26px; }
.brand strong { font-weight:550; }
nav { font-size:13px; color:var(--muted); }
.event-label { margin-left:auto; font-size:12px; color:var(--muted); }
.intro { padding:27px 0 18px; }
h1 { font-size:25px; font-weight:600; letter-spacing:-.5px; margin-bottom:4px; }
.intro p { color:var(--muted); font-size:13px; }
.intro .byline { margin-top:6px; font-size:12px; }
.byline a { text-decoration:underline; text-underline-offset:3px; }
.stats { display:flex; flex-wrap:wrap; gap:12px 28px; padding:0 0 21px; font-size:12px; color:var(--muted); }
.stats strong { color:var(--text); font-weight:600; margin-left:5px; font-variant-numeric:tabular-nums; }
.stats small { font-size:11px; margin-left:5px; }
.card { border:1px solid var(--border); border-radius:5px; background:var(--panel); }
.api-terms { overflow:hidden; margin-bottom:20px; }
.terms-heading { padding:11px 16px; }
.terms-heading h2 { font-size:12px; color:#b5b5b5; }
.terms-scroll,.table-scroll { overflow-x:auto; }
table { width:100%; border-collapse:collapse; text-align:left; white-space:nowrap; font-size:13px; }
th { height:38px; padding:0 16px; color:var(--muted); background:#181818; border-bottom:1px solid var(--border); font-size:12px; font-weight:500; }
th button { padding:0; font-size:inherit; color:inherit; }
th button span { margin-left:6px; color:#858585; }
td { height:52px; padding:8px 16px; border-bottom:1px solid #2b2b2b; }
tbody tr:last-child td { border-bottom:0; }
tbody tr:hover { background:#202020; }
.terms-table { min-width:620px; }
.terms-table th,.terms-table td { height:auto; padding:7px 16px; font-size:11px; border-right:1px solid #2c2c2c; }
.terms-table th:last-child,.terms-table td:last-child { border-right:0; }
.api-terms>p { padding:9px 16px; border-top:1px solid #2c2c2c; font-size:11px; color:var(--muted); }
.api-terms a { text-decoration:underline; text-underline-offset:2px; }
.workspace { display:grid; grid-template-columns:276px minmax(0,1fr); gap:20px; align-items:start; }
.sidebar { display:flex; flex-direction:column; gap:14px; }
.connection,.filters { padding:17px; }
.card-heading { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.card-subtitle { color:var(--muted); font-size:12px; margin:5px 0 15px; }
.sidebar label { display:flex; justify-content:space-between; align-items:center; font-size:12px; margin:15px 0 7px; }
.sidebar label a { color:var(--muted); }
input,select { min-width:0; width:100%; height:35px; border:1px solid #414141; border-radius:4px; background:#151515; color:var(--text); padding:0 10px; }
input::placeholder { color:#858585; font-size:12px; }
select { padding-right:24px; font-size:12px; }
.key-input { position:relative; }
.key-input input { padding-right:45px; font-size:12px; }
.key-input button { position:absolute; right:9px; top:9px; font-size:11px; padding:0; color:var(--muted); }
.sidebar small { display:block; color:var(--muted); font-size:11px; margin-top:6px; }
.sidebar small a { text-decoration:underline; text-underline-offset:2px; }
.privacy-note { font-size:11px; color:var(--muted); margin:16px 0 12px; }
.text-button { color:var(--muted); padding:0; font-size:11px; }
.text-button:hover { text-decoration:underline; }
.range-inputs { display:flex; align-items:center; gap:9px; }
.range-inputs>div { flex:1; position:relative; min-width:0; }
.range-inputs>div>span { position:absolute; left:10px; top:6px; font-size:9px; color:var(--muted); text-transform:lowercase; }
.range-inputs input { height:52px; padding-top:17px; font-size:18px; font-variant-numeric:tabular-nums; }
.range-dash { color:#777; }
.presets { display:flex; gap:6px; margin-top:8px; }
.presets button { flex:1; padding:5px 2px; border:1px solid #3d3d3d; border-radius:3px; font-size:11px; color:var(--muted); }
.presets button.selected { border-color:#8b6d53; color:#e3bc99; }
input[type=range] { padding:0; height:19px; accent-color:#b8b8b8; border:0; background:transparent; }
.rate-ticks { display:flex; justify-content:space-between; font-size:10px; color:var(--muted); margin:2px 0 9px; }
.small-note { font-size:11px; color:var(--muted); }
.primary-button { width:100%; margin-top:18px; padding:9px 12px; border:1px solid #d0d0d0; background:#e3e3e3; color:#151515; border-radius:4px; font-size:13px; font-weight:550; }
.primary-button:hover { background:#fff; }
.outline-button { display:inline-flex; align-items:center; justify-content:center; gap:6px; padding:7px 10px; border:1px solid #484848; border-radius:4px; background:#222; font-size:12px; white-space:nowrap; }
.outline-button:hover:not(:disabled) { background:#2d2d2d; }
#stop-btn { width:100%; margin-top:8px; }
.results { overflow:hidden; scroll-margin-top:16px; }
.results-header { padding:17px 18px; display:flex; justify-content:space-between; gap:12px; align-items:center; }
.results-header h2 { font-size:16px; }
.mini-badge { color:var(--muted); font-size:12px; font-weight:400; margin-left:6px; }
.results-header p { font-size:12px; color:var(--muted); margin-top:3px; }
.refresh-info { display:flex; align-items:center; gap:12px; }
#refreshed-at { font-size:11px; color:var(--muted); white-space:nowrap; font-variant-numeric:tabular-nums; }
.table-tools { display:flex; align-items:center; gap:10px; padding:0 18px 16px; }
.search-input { flex:1; }
.table-tools select { width:170px; }
.notice { padding:10px 18px; font-size:12px; color:#b4b4b4; background:#181818; border-top:1px solid #2b2b2b; border-bottom:1px solid var(--border); }
.notice.error { color:#e9b3af; background:#2a1d1d; }
.notice.success { color:#b5c4b9; }
.progress-panel { padding:10px 18px; border-top:1px solid var(--border); }
.progress-panel>div { display:flex; justify-content:space-between; gap:10px; font-size:12px; color:var(--muted); margin-bottom:8px; }
progress { display:block; width:100%; height:4px; appearance:none; border:0; background:#333; }
progress::-webkit-progress-bar { background:#333; }
progress::-webkit-progress-value { background:#b8b8b8; }
progress::-moz-progress-bar { background:#b8b8b8; }
.player-name { display:block; max-width:230px; overflow:hidden; text-overflow:ellipsis; font-weight:500; }
.player-id { display:block; color:#999; font-size:11px; font-variant-numeric:tabular-nums; }
.team-label { color:#b7b7b7; font-size:12px; }
.ff-value { font-variant-numeric:tabular-nums; }
.level-value,.hp-value { font-variant-numeric:tabular-nums; }
.hp-value { font-size:12px; }
.unknown { color:#929292; font-size:12px; }
.status-pill { font-size:12px; color:#b3b3b3; }
.status-pill.okay { color:#a6c3af; }
.status-pill.hospital { color:#d2a49f; }
.status-pill.traveling,.status-pill.abroad { color:#a8bacb; }
.status-pill.jail { color:#c2b48f; }
.status-pill.stale { color:#8a8a8a; }
.status-pill.stale::after { content:' · stale'; font-size:10px; }
.action-col,.action-cell { text-align:right; }
.row-refresh { margin-left:8px; padding:5px; font-size:16px; color:var(--muted); }
.attack-link { font-size:12px; color:#e0b58f; }
.empty-state { padding:55px 20px; text-align:center; }
.empty-state h3 { font-size:15px; margin-bottom:7px; }
.empty-state p { font-size:12px; color:var(--muted); }
.pagination { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:12px 18px; border-top:1px solid var(--border); font-size:12px; color:var(--muted); }
.pagination>div { display:flex; align-items:center; gap:10px; }
.pagination select { height:29px; width:98px; font-size:11px; }
.square-button { width:28px; height:28px; border:1px solid #404040; border-radius:3px; font-size:18px; }
.results-footnote { display:flex; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:10px 18px; border-top:1px solid #2d2d2d; font-size:11px; color:#929292; }
footer { margin-top:24px; padding:19px 0; display:flex; justify-content:space-between; flex-wrap:wrap; gap:12px; font-size:11px; color:var(--muted); }
footer>span { display:flex; align-items:center; gap:8px; }
footer img { display:none; }
.footer-divider { color:#666; margin:0 2px; }
@media(max-width:1100px) {
  .topbar-inner,.container { padding-left:20px; padding-right:20px; }
  .workspace { grid-template-columns:250px minmax(0,1fr); gap:16px; }
  .results-header { flex-wrap:wrap; }
  .refresh-info { margin-left:auto; }
}
@media(max-width:800px) {
  .workspace { grid-template-columns:1fr; }
  .sidebar { display:grid; grid-template-columns:1fr 1fr; align-items:start; }
  .stats { gap:10px 20px; }
  #match-note { display:none; }
}
@media(max-width:560px) {
  .topbar-inner,.container { padding-left:14px; padding-right:14px; }
  .topbar-inner { height:56px; gap:15px; }
  .brand { gap:7px; font-size:13px; }
  .brand img { width:22px; height:22px; }
  nav { display:none; }
  .event-label { font-size:10px; }
  h1 { font-size:23px; }
  .intro { padding-top:22px; }
  .sidebar { grid-template-columns:1fr; }
  .results-header { padding:15px; }
  .refresh-info { margin-left:0; justify-content:space-between; width:100%; }
  .table-tools { padding:0 15px 15px; flex-wrap:wrap; }
  .search-input { min-width:145px; }
  .table-tools select { width:143px; }
  .table-scroll table { min-width:790px; }
  .pagination { padding:12px 15px; flex-wrap:wrap; }
  .pagination>div { margin-left:auto; }
  .terms-table { min-width:600px; }
  footer { flex-direction:column; font-size:10px; }
}
