.uplot, .uplot *, .uplot *::before, .uplot *::after {box-sizing: border-box;}.uplot {font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";line-height: 1.5;width: min-content;}.u-title {text-align: center;font-size: 18px;font-weight: bold;}.u-wrap {position: relative;user-select: none;}.u-over, .u-under {position: absolute;}.u-under {overflow: hidden;}.uplot canvas {display: block;position: relative;width: 100%;height: 100%;}.u-axis {position: absolute;}.u-legend {font-size: 14px;margin: auto;text-align: center;}.u-inline {display: block;}.u-inline * {display: inline-block;}.u-inline tr {margin-right: 16px;}.u-legend th {font-weight: 600;}.u-legend th > * {vertical-align: middle;display: inline-block;}.u-legend .u-marker {width: 1em;height: 1em;margin-right: 4px;background-clip: padding-box !important;}.u-inline.u-live th::after {content: ":";vertical-align: middle;}.u-inline:not(.u-live) .u-value {display: none;}.u-series > * {padding: 4px;}.u-series th {cursor: pointer;}.u-legend .u-off > * {opacity: 0.3;}.u-select {background: rgba(0,0,0,0.07);position: absolute;pointer-events: none;}.u-cursor-x, .u-cursor-y {position: absolute;left: 0;top: 0;pointer-events: none;will-change: transform;}.u-hz .u-cursor-x, .u-vt .u-cursor-y {height: 100%;border-right: 1px dashed #607D8B;}.u-hz .u-cursor-y, .u-vt .u-cursor-x {width: 100%;border-bottom: 1px dashed #607D8B;}.u-cursor-pt {position: absolute;top: 0;left: 0;border-radius: 50%;border: 0 solid;pointer-events: none;will-change: transform;/*this has to be !important since we set inline "background" shorthand */background-clip: padding-box !important;}.u-axis.u-off, .u-select.u-off, .u-cursor-x.u-off, .u-cursor-y.u-off, .u-cursor-pt.u-off {display: none;}
:root {
  --background: hsl(0 0% 100%);
  --foreground: hsl(240 10% 3.9%);
  --card: hsl(0 0% 100%);
  --muted: hsl(240 4.8% 95.9%);
  --muted-foreground: hsl(240 3.8% 46.1%);
  --border: hsl(240 5.9% 90%);
  --input: hsl(240 5.9% 90%);
  --primary: hsl(240 5.9% 10%);
  --primary-foreground: hsl(0 0% 98%);
  --accent: hsl(240 4.8% 95.9%);
  --destructive: hsl(0 72% 51%);
  --success: hsl(142 71% 35%);
  --warning: hsl(38 92% 45%);
  --info: hsl(221 83% 53%);
  --ring: hsl(240 5% 64.9%);
  --radius: 0.5rem;
  --font:
    ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
}
a {
  color: inherit;
  text-decoration: none;
}
.mono {
  font-family: var(--mono);
  font-size: 12.5px;
}
.muted {
  color: var(--muted-foreground);
}
.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 10px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--background);
  z-index: 5;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}
.brand-mark {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--primary);
  display: inline-block;
}
.tabs {
  display: flex;
  gap: 4px;
  background: var(--muted);
  padding: 3px;
  border-radius: var(--radius);
}
.tab {
  padding: 5px 12px;
  border-radius: calc(var(--radius) - 2px);
  color: var(--muted-foreground);
  font-weight: 500;
}
.tab.active {
  background: var(--background);
  color: var(--foreground);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.view {
  padding: 20px;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
}
.footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
}
.grid {
  display: grid;
  gap: 14px;
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 1100px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .grid-4,
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  min-width: 0;
}
.card h3 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted-foreground);
  letter-spacing: 0.01em;
}
.card .value {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.card .sub {
  font-size: 12px;
  color: var(--muted-foreground);
  margin-top: 2px;
}
.section {
  margin-top: 18px;
}
.section-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 10px;
}
.section-title h2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-muted {
  background: var(--muted);
  color: var(--muted-foreground);
}
.badge-ok {
  background: hsl(142 76% 94%);
  color: var(--success);
}
.badge-warn {
  background: hsl(38 100% 93%);
  color: var(--warning);
}
.badge-bad {
  background: hsl(0 86% 95%);
  color: var(--destructive);
}
.badge-info {
  background: hsl(221 100% 95%);
  color: var(--info);
}
.badge-outline {
  border-color: var(--border);
  background: transparent;
  color: var(--foreground);
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--background);
  color: var(--foreground);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.btn:hover {
  background: var(--accent);
}
.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  border-color: var(--primary);
}
.btn-primary:hover {
  background: hsl(240 5.9% 20%);
}
.btn-sm {
  padding: 3px 9px;
  font-size: 12.5px;
}
.btn[disabled] {
  opacity: 0.5;
  cursor: default;
}
input,
select,
textarea {
  font: inherit;
  padding: 6px 9px;
  border: 1px solid var(--input);
  border-radius: var(--radius);
  background: var(--background);
  color: var(--foreground);
  min-width: 0;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--ring);
  outline-offset: 1px;
}
input[type="checkbox"] {
  width: auto;
}
label {
  display: block;
  font-size: 12px;
  color: var(--muted-foreground);
  margin-bottom: 3px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.field .help {
  font-size: 11px;
  color: var(--muted-foreground);
}
.field-row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 14px;
}
@media (max-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: end;
  margin-bottom: 12px;
}
.toolbar .field {
  min-width: 160px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
th,
td {
  text-align: left;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
th {
  font-weight: 500;
  color: var(--muted-foreground);
  font-size: 12px;
  white-space: nowrap;
}
td.num,
th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover {
  background: var(--accent);
}
tr.selected {
  background: hsl(221 100% 97%);
}
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.empty {
  padding: 28px;
  text-align: center;
  color: var(--muted-foreground);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}
.chart {
  width: 100%;
  height: 240px;
}
.chart-card .u-legend {
  font-size: 12px;
}
.bars {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  align-items: end;
  height: 70px;
  margin-top: 8px;
}
.bar {
  background: var(--primary);
  border-radius: 2px 2px 0 0;
  min-height: 1px;
  position: relative;
}
.bar.provisional {
  background: var(--info);
  opacity: 0.7;
}
.bar-labels {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 3px;
  font-size: 10px;
  color: var(--muted-foreground);
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(720px, 100%);
  height: 100vh;
  background: var(--background);
  border-left: 1px solid var(--border);
  box-shadow: -8px 0 24px rgba(0, 0, 0, 0.08);
  overflow: auto;
  padding: 18px 20px;
  z-index: 10;
}
.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.kv {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 4px 12px;
  font-size: 13px;
}
.kv dt {
  color: var(--muted-foreground);
}
.kv dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}
pre {
  background: var(--muted);
  padding: 10px;
  border-radius: var(--radius);
  overflow: auto;
  font-size: 12px;
  margin: 6px 0;
  max-height: 320px;
}
.note {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--muted);
  font-size: 12.5px;
}
.note-warn {
  background: hsl(38 100% 95%);
}
.note-synthetic {
  background: hsl(280 60% 96%);
  border: 1px dashed hsl(280 40% 70%);
}
.flags {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.prov {
  font-size: 10.5px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--muted);
  color: var(--muted-foreground);
  margin-left: 6px;
}
.prov-measured {
  background: hsl(142 76% 92%);
  color: var(--success);
}
.prov-imported {
  background: hsl(221 100% 94%);
  color: var(--info);
}
.prov-assumed {
  background: hsl(38 100% 92%);
  color: var(--warning);
}
.prov-unverified {
  background: hsl(0 86% 95%);
  color: var(--destructive);
}
.prov-synthetic {
  background: hsl(280 60% 94%);
  color: hsl(280 50% 40%);
}
details summary {
  cursor: pointer;
  color: var(--muted-foreground);
  font-size: 12.5px;
}
.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
}
.spacer {
  flex: 1;
}
.btn-block {
  width: 100%;
  justify-content: center;
  padding: 9px 12px;
}
.alert {
  padding: 9px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  border: 1px solid var(--border);
}
.alert-destructive {
  border-color: hsl(0 72% 85%);
  background: hsl(0 86% 97%);
  color: var(--destructive);
}
.auth-body {
  background: var(--muted);
}
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  padding: 28px 28px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.04),
    0 8px 24px rgba(0, 0, 0, 0.06);
}
.auth-brand {
  justify-content: center;
  margin-bottom: 4px;
}
.auth-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-align: center;
}
.auth-subtitle {
  margin: -8px 0 6px;
  text-align: center;
  color: var(--muted-foreground);
  font-size: 13px;
}
.auth-card .field label {
  font-size: 13px;
  color: var(--foreground);
  font-weight: 500;
}
.auth-card input {
  padding: 9px 11px;
}
.auth-footnote {
  margin: 4px 0 0;
  font-size: 11.5px;
  text-align: center;
  line-height: 1.4;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted-foreground);
}
