
* { box-sizing: border-box; }
:root {
  color-scheme: dark;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --base: #131020;
  --panel: #201a31;
  --edge: #3e3450;
  --text: #f6f2fb;
  --muted: #c2b8d0;
  --green: #c6f481;
  --accent: #b9a1ff;
  background: var(--base);
  color: var(--text);
}
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse at top right, #2c2044, transparent 55%); }
[hidden] { display: none !important; }
.shell { width: min(1080px, 100% - 48px); margin: 0 auto; }
.header { border-bottom: 1px solid var(--edge); background: #151022; }
.header-inner { display: flex; justify-content: space-between; align-items: center; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 750; text-decoration: none; color: var(--text); }
.brand img { border-radius: 8px; }
.brand small { display: block; font-size: 0.76rem; font-weight: 600; color: var(--muted); }
main.shell { padding-block: 36px 52px; }
.intro { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(1.8rem, 4.5vw, 2.75rem); line-height: 1.13; letter-spacing: -.045em; margin-bottom: 7px; }
h2 { font-size: 1.1rem; letter-spacing: -.015em; }
.muted, .metric p, .note, .refresh-status { color: var(--muted); }
.refresh-status, .note { font-size: .82rem; }
.refresh-status { text-align: right; }
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.panel { border: 1px solid var(--edge); border-radius: 17px; background: var(--panel); }
.metric { padding: 18px 20px; }
.metric h2 { color: var(--muted); font-size: .89rem; font-weight: 650; }
.metric strong { display: block; font-size: clamp(2.1rem, 6vw, 3.2rem); line-height: 1.1; margin: 8px 0 4px; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.metric:first-child strong { color: var(--green); }
.metric p { font-size: .82rem; }
.dot { width: 8px; height: 8px; background: var(--green); display: inline-block; border-radius: 50%; margin-right: 5px; }
.section { margin-top: 16px; padding: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 18px; }
.section-header p { font-size: .88rem; margin-top: 5px; }
.tabs { display: flex; gap: 2px; background: #151022; border: 1px solid var(--edge); border-radius: 10px; padding: 3px; flex: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.button, .tabs button { border-radius: 8px; padding: 7px 11px; font-size: .83rem; font-weight: 650; background: transparent; }
.button { border: 1px solid var(--edge); }
.tabs button { border: 0; color: var(--muted); }
.tabs button[aria-pressed="true"] { background: #463560; color: var(--text); }
button:hover { filter: brightness(1.22); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.chart { height: 134px; display: flex; gap: clamp(2px, 1vw, 9px); align-items: end; border-bottom: 1px solid var(--edge); background: repeating-linear-gradient(to top, transparent 0 32px, #392d47 32px 33px); padding-inline: 3px; }
.bar { flex: 1; height: 100%; min-width: 0; display: flex; align-items: end; justify-content: center; position: relative; }
.bar-fill { width: 100%; max-width: 52px; height: var(--percentage, 0%); background: var(--accent); border-radius: 5px 5px 0 0; }
.bar:last-child .bar-fill { background: var(--green); }
.bar.unavailable .bar-fill { background: #514363; }
.bar:not(.unavailable):is(:hover, :focus-visible)::before {
  content: attr(data-title); position: absolute; inset-block-end: calc(var(--percentage) + 5px);
  z-index: 1; background: #130d20; border: 1px solid var(--edge); border-radius: 6px;
  padding: 4px 6px; white-space: nowrap; font-size: .75rem;
}
.bar:first-child::before { inset-inline-start: 0; }
.bar:last-child::before { inset-inline-end: 0; }
.chart-dates { display: flex; justify-content: space-between; color: var(--muted); font-size: .78rem; padding-top: 8px; }
.note { margin-top: 10px; }
.empty { color: var(--muted); padding: 20px 12px; border: 1px dashed var(--edge); border-radius: 10px; text-align: center; }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 410px; font-size: .87rem; }
th, td { padding: 11px 10px; border-bottom: 1px solid var(--edge); text-align: left; }
th { color: var(--muted); font-size: .78rem; font-weight: 650; }
td:first-child { font-weight: 650; }
td:last-child { color: var(--muted); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.login-frame { width: min(420px, 100% - 36px); margin: clamp(38px, 13vh, 130px) auto; }
.login { margin-top: 22px; padding: 26px; }
.login form { display: grid; gap: 10px; margin-top: 24px; font-size: .9rem; font-weight: 650; }
input { width: 100%; color: var(--text); background: #151022; border: 1px solid #67577d; border-radius: 8px; padding: 11px; font: inherit; }
.primary { border: 0; border-radius: 8px; padding: 11px; margin-top: 3px; background: var(--green); color: #172515; font-weight: 750; }
.error { color: #ffb6c8; margin-top: 12px; }
@media (max-width: 650px) {
  .shell { width: calc(100% - 28px); }
  .intro { display: block; }
  .refresh-status { text-align: left; margin-top: 9px; }
  .metrics { gap: 6px; }
  .metric { padding: 12px 9px; }
  .metric h2, .metric p { font-size: .73rem; }
  .section { padding: 14px; }
}
