:root {
  color-scheme: dark;
  font: 16px/1.45 system-ui, sans-serif;
  background: #101317;
  color: #e7e8ea;
  --panel: #171b21;
  --line: #303740;
  --muted: #a5afbd;
  --bid: #78b7ed;
  --ask: #efac71;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--bid); text-decoration: none; }
a:hover { text-decoration: underline; }
.top { display: flex; gap: 1rem; align-items: center; min-height: 60px; padding: .55rem max(1rem, calc((100% - 1200px) / 2)); border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { color: inherit; white-space: nowrap; }
.brand strong { color: var(--ask); }
#league { color: var(--muted); font-size: .875rem; }
.links { margin-left: auto; display: flex; gap: .85rem; align-items: center; white-space: nowrap; font-size: .875rem; }
main { max-width: 1232px; padding: 1rem; margin: auto; }
.filters { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: end; }
label, .label { display: block; font-size: .875rem; color: var(--muted); margin-bottom: .35rem; }
button, select, input { font: inherit; }
button, select, input:not([type=range]) { color: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 4px; min-height: 38px; padding: .35rem .65rem; }
button { cursor: pointer; }
button:hover { border-color: var(--muted); }
button[aria-pressed=true] { border-color: var(--ask); color: var(--ask); background: #29231f; }
:focus-visible { outline: 2px solid var(--bid); outline-offset: 2px; }
.ranges { display: flex; gap: .3rem; }
.picker { position: relative; width: min(100%, 25rem); }
.picker input { width: 100%; }
#results { position: absolute; z-index: 1; inset: 100% 0 auto; background: var(--panel); border: 1px solid var(--line); max-height: 17rem; overflow: auto; box-shadow: 0 8px 24px #0007; }
[role=option] { padding: .5rem .7rem; cursor: pointer; }
[role=option]:hover, [aria-selected=true] { background: #283543; }
#status, #summary { color: var(--muted); font-size: .875rem; }
#status:empty { display: none; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1rem; margin: 1rem 0 .5rem; }
h1 { margin: 0; font-size: 1.4rem; }
h2 { margin: 0 0 .5rem; font-size: 1rem; font-weight: 600; }
h2 span { color: var(--muted); font-size: .875rem; font-weight: 400; margin-left: .5rem; }
.panel, .details { background: var(--panel); border: 1px solid var(--line); border-radius: 5px; margin-bottom: .65rem; padding: .75rem; }
canvas { display: block; width: 100%; height: 176px; cursor: crosshair; }
#price { height: 220px; }
#observation { width: 100%; accent-color: var(--bid); margin: 0; }
dl { margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
dt { color: var(--muted); font-size: .875rem; }
dd { margin: 0; font: .875rem/1.6 ui-monospace, monospace; }
.bid { color: var(--bid); }
.ask { color: var(--ask); }
.signin { max-width: 28rem; margin-top: 6vh; }
.signin input { width: 100%; margin-bottom: .75rem; }
#error { color: #ff9690; }
@media (max-width: 540px) {
  .top { flex-wrap: wrap; gap: .25rem .65rem; }
  .picker { width: 100%; }
  canvas { height: 150px; }
  #price { height: 184px; }
}
