:root {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #19212b;
  background: #f4f6f8;
  font-size: 15px;
  line-height: 1.5;
  --border: #cbd2da;
  --muted: #536171;
  --blue: #175cd3;
}
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, .button { min-height: 38px; border: 1px solid var(--blue); border-radius: 4px; background: var(--blue); color: #fff; padding: 7px 14px; cursor: pointer; text-decoration: none; display: inline-flex; justify-content: center; align-items: center; gap: 6px; }
button:hover:not(:disabled), .button:hover { background: #104cae; }
button.secondary { background: #fff; border-color: #aeb8c4; color: #19212b; }
button.secondary:hover:not(:disabled) { background: #edf1f5; }
button.danger { background: #fff; border-color: #b42318; color: #a61b13; }
button.danger:hover:not(:disabled) { background: #fff1f0; }
button.link { background: none; border: none; min-height: 32px; padding: 2px 0; color: #175cd3; text-align: left; justify-content: start; text-decoration: underline; }
button:disabled, input:disabled, select:disabled { cursor: not-allowed; opacity: .6; }
:focus-visible { outline: 3px solid #528ff3; outline-offset: 3px; }
a { color: #175cd3; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: 24px; line-height: 1.25; margin-bottom: 8px; font-weight: 650; }
h2 { font-size: 17px; margin-bottom: 14px; font-weight: 650; }
h3 { font-size: 15px; margin-bottom: 10px; }
p { max-width: 80ch; margin-bottom: 14px; }
small, .muted { color: var(--muted); }
small { font-size: 13px; }
.startup { max-width: 520px; margin: 15vh auto; padding: 24px; }
.skip-link { position: fixed; left: 12px; top: -70px; z-index: 100; padding: 10px 14px; background: #fff; border: 1px solid var(--border); border-radius: 4px; }
.skip-link:focus { top: 12px; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.sidebar { background: #172330; color: #fff; padding: 25px 16px; display: flex; flex-direction: column; }
.brand { font-size: 21px; font-weight: 650; margin: 0 10px 26px; }
.sidebar nav { display: grid; gap: 4px; }
.sidebar nav a { color: #d6dfe8; text-decoration: none; padding: 10px 12px; border-radius: 4px; }
.sidebar nav a:hover { background: #273747; color: #fff; }
.sidebar nav a[aria-current="page"] { background: #32465a; color: #fff; }
.account { margin-top: auto; padding: 28px 10px 0; font-size: 13px; overflow-wrap: anywhere; }
.account p { margin-bottom: 7px; }
.account .muted { color: #c6d1dc; }
.account button { margin-top: 12px; background: transparent; color: #fff; border-color: #8292a3; }
.main { min-width: 0; width: 100%; max-width: 1540px; padding: 30px 34px 48px; }
.topbar, .page-heading, .row, .actions, .pagination { display: flex; align-items: center; gap: 12px; }
.topbar { justify-content: flex-end; margin-bottom: 24px; }
.topbar label { color: var(--muted); font-size: 13px; }
.topbar select { width: auto; min-width: 90px; }
.page-heading { justify-content: space-between; align-items: start; margin-bottom: 22px; flex-wrap: wrap; }
.page-heading p { margin-bottom: 0; color: var(--muted); }
.actions { flex-wrap: wrap; }
.actions select { width: auto; }
.row { flex-wrap: wrap; }
.section { border: 1px solid var(--border); background: #fff; border-radius: 4px; padding: 20px; margin-bottom: 22px; min-width: 0; }
.section > :last-child { margin-bottom: 0; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.section-heading h2 { margin: 0; }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 0; }
.summary > div { min-width: 0; padding: 8px 18px 10px 0; }
.summary dt { font-size: 13px; color: var(--muted); }
.summary dd { font-size: 24px; font-weight: 600; margin: 4px 0 0; overflow-wrap: anywhere; }
.summary .small-value { font-size: 17px; line-height: 1.7; }
.summary-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.message { background: #edf4ff; border: 1px solid #a8c8f8; border-radius: 4px; padding: 12px 14px; margin-bottom: 18px; overflow-wrap: anywhere; }
.message p { margin: 0; }
.message.error, .form-error { color: #912018; background: #fff2f0; border-color: #eda49d; }
.message.success { background: #eef8f1; color: #215b36; border-color: #a4d4b4; }
.form-error { border: 1px solid #eda49d; border-radius: 4px; padding: 10px 12px; margin-bottom: 16px; }
.empty { text-align: center; color: var(--muted); padding: 30px 16px; }
.empty p:last-child { margin-bottom: 0; }
.loading { padding: 25px 0; color: var(--muted); }
label { display: block; font-size: 13px; font-weight: 550; }
input:not([type="checkbox"]), select { width: 100%; min-width: 0; min-height: 38px; padding: 7px 9px; border: 1px solid #aeb8c4; border-radius: 4px; color: #19212b; background: #fff; }
input::placeholder { color: #707c89; }
.field { display: grid; gap: 5px; min-width: 0; }
.field small { font-weight: normal; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.filters { display: grid; grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(120px, 1fr)); gap: 14px; align-items: end; }
.filters .range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.filters .filter-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-note { margin-top: 13px; }
.table-wrap { overflow-x: auto; max-width: 100%; }
table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 14px; text-align: left; }
th { color: #465464; background: #f4f6f8; font-weight: 600; white-space: nowrap; }
th, td { padding: 11px 12px; border-bottom: 1px solid #dde2e8; vertical-align: middle; }
th:first-child, td:first-child { padding-left: 8px; min-width: 140px; }
td { overflow-wrap: anywhere; }
td.number, th.number { text-align: right; font-variant-numeric: tabular-nums; }
td.nowrap { white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.table-wrap:focus-visible { outline-offset: -3px; }
.pagination { justify-content: space-between; margin-top: 18px; flex-wrap: wrap; }
.pagination .actions { gap: 8px; }
.key-form { max-width: 500px; display: grid; gap: 16px; }
.key-secret { font-family: inherit; font-size: 17px; font-variant-numeric: tabular-nums; letter-spacing: .4px; }
.secret-panel { margin-bottom: 22px; border: 1px solid #a4d4b4; background: #eef8f1; border-radius: 4px; padding: 18px; }
.secret-panel .row { align-items: end; }
.secret-panel .field { flex: 1 1 330px; }
.check-label { display: flex; align-items: start; gap: 10px; font-size: 15px; font-weight: normal; }
.check-label input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--blue); flex: 0 0 auto; }
td input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--blue); }
.policy-fields { display: grid; gap: 18px; margin: 22px 0; }
.policy-fields .field { max-width: 300px; }
.auth { width: min(100% - 32px, 440px); margin: 8vh auto 40px; }
.auth > h1 { font-size: 26px; margin-bottom: 26px; }
.auth .section { padding: 24px; }
.auth-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--border); margin-bottom: 22px; }
.auth-tabs button { border: 0; border-radius: 0; background: none; color: var(--muted); padding: 0 0 12px; min-height: 36px; }
.auth-tabs button[aria-pressed="true"] { color: #175cd3; box-shadow: 0 2px #175cd3; }
.auth form { display: grid; gap: 17px; }
.auth .form-error { margin: 0; }
.auth-footer { font-size: 13px; color: var(--muted); margin-top: 16px; }
.challenge-status { font-size: 13px; color: var(--muted); margin: 8px 0; }
.challenge-widget { min-width: 0; }
.challenge button { padding: 2px 0; }
.chart-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; margin-bottom: 18px; }
.legend-key { display: inline-block; width: 12px; height: 12px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; background: #175cd3; }
.legend-key.mined { background: #6b7c8e; }
.chart { display: grid; gap: 9px; }
.chart-row { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 14px; font-size: 12px; }
.chart-date { color: var(--muted); white-space: nowrap; }
.chart-bars { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.chart-line { display: grid; grid-template-columns: minmax(0, 1fr) 42px; align-items: center; gap: 8px; }
.chart-track { background: #edf1f5; height: 10px; border-radius: 2px; overflow: hidden; }
.chart-svg { width: 100%; height: 100%; display: block; }
.chart-bar { fill: #175cd3; }
.chart-bar.mined { fill: #6b7c8e; }
.daily-values { margin-top: 18px; }
.account-search-field { flex: 1; max-width: 420px; }
.detail-divider { border: 0; border-top: 1px solid #dde2e8; margin: 24px 0; }
.chart-value { text-align: right; font-variant-numeric: tabular-nums; }
.notice { position: fixed; z-index: 200; bottom: 20px; right: 20px; max-width: min(440px, calc(100vw - 40px)); background: #172330; color: #fff; border-radius: 4px; padding: 12px 18px; box-shadow: 0 3px 12px #19212b20; overflow-wrap: anywhere; }
dialog { border: 1px solid #aeb8c4; border-radius: 4px; max-width: min(900px, calc(100vw - 32px)); width: 760px; max-height: calc(100vh - 48px); padding: 24px; color: #19212b; }
dialog::backdrop { background: #17233080; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-bottom: 18px; }
.dialog-heading h2 { font-size: 21px; margin: 0; }
.dialog-close { min-height: 32px; padding: 3px 10px; }
.detail-meta { margin: 14px 0; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.detail-list { padding-left: 20px; }
.detail-list li { margin-bottom: 9px; overflow-wrap: anywhere; }
.noscript { margin: 32px; color: #912018; }
@media (min-width: 1100px) { .filters { grid-template-columns: minmax(180px, 2fr) repeat(2, minmax(150px, 1fr)) minmax(130px, 1fr); } }
@media (max-width: 760px) {
  .layout { display: block; }
  .sidebar { padding: 15px 16px; gap: 13px; }
  .brand { margin: 0; font-size: 20px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 3px; }
  .sidebar nav a { padding: 8px 10px; }
  .account { padding: 0; margin: 0; display: flex; gap: 12px; justify-content: space-between; align-items: center; }
  .account p { margin: 0; }
  .account button { margin: 0; min-height: 32px; padding: 3px 9px; }
  .main { padding: 20px 16px 36px; }
  .topbar { margin-bottom: 19px; }
  .section { padding: 16px; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters > .field:first-child { grid-column: 1 / -1; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary dd { font-size: 21px; }
  .summary > div { padding-right: 10px; }
  .chart-bars { gap: 10px; }
  dialog { padding: 18px; }
}
@media (max-width: 420px) {
  .filters, .form-grid { grid-template-columns: 1fr; }
  .filters > .field:first-child { grid-column: auto; }
  .account { align-items: start; }
  .chart-row { grid-template-columns: 70px 1fr; gap: 8px; }
  .chart-line { grid-template-columns: 1fr 30px; gap: 4px; }
  .auth { width: calc(100% - 24px); margin-top: 30px; }
  .auth .section { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
