:root { --bg:#0e1117; --panel:#161b26; --panel2:#1c2230; --line:#283043; --fg:#e7eaf2; --mute:#97a0b8; --acc:#4f8cff; --ok:#38c98b; --warn:#f0b24a; --bad:#ef6464; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--fg); min-height: 100vh; display: flex; flex-direction: column; }
a { color: var(--acc); text-decoration: none; } a:hover { text-decoration: underline; }
header.top { padding: 22px 32px 18px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
header.top .brand { font-size: 24px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
header.top .brand .ico { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center; background: var(--acc); color: #fff; font-size: 20px; }
header.top .sub { color: var(--mute); flex: 1; min-width: 220px; }
main { flex: 1; width: 100%; max-width: 1240px; margin: 0 auto; padding: 22px 32px 32px; }
h2 { font-size: 16px; margin: 0 0 12px; letter-spacing: .2px; }
h3 { font-size: 15px; margin: 0 0 4px; }
.muted { color: var(--mute); } .small { font-size: 13px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cols { display: grid; gap: 18px; grid-template-columns: 2fr 1fr; align-items: start; }
.stack > * + * { margin-top: 18px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } main, header.top { padding-left: 16px; padding-right: 16px; } }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
input, select, textarea { padding: 9px 11px; background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; font: inherit; }
input:focus, select:focus { outline: 2px solid var(--acc); outline-offset: -1px; }
button { padding: 9px 16px; background: var(--acc); color: #fff; border: 0; border-radius: 8px; font: inherit; font-weight: 600; cursor: pointer; }
button.ghost { background: transparent; color: var(--fg); border: 1px solid var(--line); font-weight: 500; }
button.sm { padding: 5px 10px; font-size: 13px; }
button:disabled { opacity: .55; cursor: default; }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel2); color: var(--fg); font-size: 13px; cursor: pointer; }
.chip.on { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 22%, transparent); }
.tag { display: inline-block; padding: 1px 8px; border-radius: 6px; font-size: 12px; background: var(--panel2); color: var(--mute); border: 1px solid var(--line); }
.big { font-size: 44px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat { display: flex; flex-direction: column; } .stat b { font-size: 20px; font-variant-numeric: tabular-nums; } .stat span { color: var(--mute); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.stats { display: flex; gap: 26px; flex-wrap: wrap; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--mute); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; }
td.num, th.num { text-align: right; }
.list > div { padding: 9px 0; border-bottom: 1px solid var(--line); } .list > div:last-child { border-bottom: 0; }
.empty { color: var(--mute); padding: 14px 0; }
.up { color: var(--ok); } .down { color: var(--bad); }
footer.tiers { border-top: 1px solid var(--line); padding: 14px 24px; display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; background: #0b0e14; }
footer.tiers .tier { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; display: flex; flex-direction: column; min-width: 200px; }
footer.tiers .tier span { color: var(--mute); font-size: 11px; text-transform: uppercase; letter-spacing: .6px; }
footer.tiers .tier b { color: var(--ok); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; font-weight: 600; }
#toast { position: fixed; bottom: 80px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--ok); color: #06140d; padding: 10px 18px; border-radius: 8px; font-weight: 600; opacity: 0; transition: .25s; pointer-events: none; }
#toast.show { opacity: 1; transform: translateX(-50%); } #toast.bad { background: var(--bad); color: #fff; }
