/* ── Self-hosted Geist fonts ── */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(fonts/geist-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(fonts/geist-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(fonts/geist-mono-latin.woff2) format('woff2');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-weight: 100 900;
  font-display: optional;
  src: url(fonts/geist-mono-latin-ext.woff2) format('woff2');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
    U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: 'Geist Fallback';
  src: local('Segoe UI'), local('system-ui'), local('Roboto'), local('Helvetica Neue');
  size-adjust: 100.4%;
  ascent-override: 99%;
  descent-override: 22%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Geist Mono Fallback';
  src: local('Cascadia Mono'), local('Consolas'), local('Menlo'), local('monospace');
  size-adjust: 100.9%;
  ascent-override: 99%;
  descent-override: 22%;
  line-gap-override: 0%;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
:root {
  color-scheme: dark;
  --bg: #0c0c0d;
  --bg2: #141415;
  --surface: #1a1a1c;
  --surface2: #222224;
  --border: #2a2a2d;
  --border2: #333336;
  --text: #ededed;
  --text2: #9ca3af;
  --text3: #8b8b93;
  --blue: #7eb6f6;
  --purple: #c982e0;
  --orange: #f2a93b;
  --green: #22c55e;
  --green2: #4ade80;
  --red: #ef4444;
  --red2: #f87171;
  --amber: #eab308;
}
html {
  scroll-behavior: smooth;
}
body {
  background: var(--bg);
  color: var(--text);
  font-family:
    'Geist',
    'Geist Fallback',
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.w,
main.w {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 12, 13, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 0 20px;
}
nav .inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
}
nav .brand {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: -0.02em;
}
nav .brand .brand-gauge {
  display: block;
  flex-shrink: 0;
}
nav .brand .hi {
  color: var(--blue);
}
nav .meta {
  font-size: 0.75rem;
  color: var(--text3);
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
}
nav .meta time {
  color: var(--blue);
}
.sync-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  background: var(--text3);
  transition: background 0.3s;
}
.sync-dot.sync-ok {
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}
.sync-dot.sync-warn {
  background: var(--orange);
  box-shadow: 0 0 6px var(--orange);
}
.sync-dot.sync-err {
  background: var(--red);
  box-shadow: 0 0 6px var(--red);
}

/* ── HERO ── */
.hero {
  padding: 40px 0 24px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 6px;
}
.hero .sub {
  color: var(--text2);
  font-size: 0.85rem;
}

/* ── STATS ROW ── */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--border);
  min-height: 230px;
}
.stat {
  padding: 20px 16px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child {
  border-right: none;
}
.stat .v {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.stat .v .u {
  font-size: 0.75rem;
  font-weight: 400;
  color: var(--text3);
  margin-left: 2px;
}
.stat .l {
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.stat .l-sub {
  font-size: 0.75rem;
  text-transform: none;
}
.stat.pi .v {
  color: var(--orange);
}
.stat.dl .v {
  color: var(--blue);
}
.stat.ul .v {
  color: var(--purple);
}

/* decile distribution chart */
.dcl-wrap {
  margin-top: 8px;
}
.dcl-svg {
  display: block;
  width: 100%;
  height: auto;
}
.dcl-svg text {
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
}
.stat-sum {
  font-size: 0.7rem;
  color: var(--text3);
  margin-top: 6px;
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
  letter-spacing: 0.02em;
}
.stat-last {
  font-size: 0.72rem;
  color: var(--text3);
  margin-top: 3px;
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
}
.stat-last strong {
  color: var(--text2);
  font-weight: 600;
}

/* quality dot */
.q-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: middle;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

/* quality tooltip */
.q-tip {
  display: none;
  position: fixed;
  transform: translateX(-50%);
  background: var(--surface2);
  color: var(--text);
  font-size: 0.72rem;
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  white-space: nowrap;
  z-index: 110;
  line-height: 1.5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.q-tip-title {
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.q-tip-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 2px 12px;
}
.q-tip-label {
  color: var(--text3);
}
.q-tip-val {
  text-align: right;
  font-weight: 600;
}
.q-tip-detail {
  grid-column: 1 / -1;
  color: var(--text3);
  font-size: 0.62rem;
  margin-bottom: 4px;
}

/* decile tooltip */
.dcl-tip {
  display: none;
  position: fixed;
  transform: translate(-50%, -100%);
  background: var(--surface2);
  color: var(--text);
  font-size: 0.72rem;
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--border2);
  pointer-events: none;
  white-space: nowrap;
  z-index: 100;
  text-align: center;
  line-height: 1.4;
}
.dcl-tip-sub {
  font-size: 0.62rem;
  color: var(--text3);
}
.dcl-hit {
  cursor: pointer;
}
.dcl-bar {
  opacity: 0.4;
  transition: opacity 0.15s;
}
.dcl-bar.dcl-p50 {
  opacity: 0.9;
}
.dcl-bar.dcl-sel {
  opacity: 1;
  filter: brightness(1.4) drop-shadow(0 0 4px currentColor);
}
.stat .pts {
  font-size: 0.75rem;
  color: var(--text3);
  margin-top: 6px;
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
}

/* ── ALERTS ── */
.alerts {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  min-height: 324px;
}
.stitle {
  font-size: 0.75rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  font-weight: 500;
}
.al-eval {
  font-size: 0.75rem;
  color: var(--text3);
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
  margin-bottom: 10px;
}
.al-eval time {
  color: var(--blue);
}
.al-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
}
.al-row:last-child {
  border-bottom: none;
}
.al-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}
.al-name {
  color: var(--text);
  font-weight: 600;
  min-width: 160px;
  font-size: 0.8rem;
}
.al-sum {
  color: var(--text2);
  flex: 1;
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
  font-size: 0.75rem;
}
.al-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.al-badge.ok {
  background: rgba(34, 197, 94, 0.08);
  color: var(--green2);
  border: 1px solid rgba(34, 197, 94, 0.15);
}
.al-badge.firing {
  background: rgba(239, 68, 68, 0.08);
  color: var(--red2);
  border: 1px solid rgba(239, 68, 68, 0.15);
}
.al-badge.pending {
  background: rgba(234, 179, 8, 0.08);
  color: var(--amber);
  border: 1px solid rgba(234, 179, 8, 0.15);
}

/* ── TIME PICKER ── */
.tp {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  padding: 16px 0;
  flex-wrap: wrap;
}
.tp .nb,
.tp .zb {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text3);
  width: 30px;
  height: 30px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.tp .nb:hover,
.tp .zb:hover {
  background: var(--surface2);
  color: var(--text);
}
.tp .rg {
  display: flex;
  gap: 1px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px;
}
.tp .rb {
  background: transparent;
  border: none;
  color: var(--text3);
  padding: 4px 10px;
  border-radius: 3px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all 0.15s;
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
}
.tp .rb:hover {
  color: var(--text);
  background: var(--surface2);
}
.tp .rb.on {
  background: var(--blue);
  color: var(--bg);
}
.tp .rl {
  font-size: 0.75rem;
  color: var(--text3);
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
  min-width: 180px;
  text-align: center;
}
.tp .rl-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 8px;
  transition: all 0.15s;
}
.tp .rl-btn:hover,
.tp .rl-btn.open {
  background: var(--surface2);
  color: var(--text);
  border-color: var(--border2);
}
.tp .rl-btn svg {
  transition: transform 0.15s;
}
.tp .rl-btn.open svg {
  transform: rotate(180deg);
}

/* ── TIME RANGE PICKER PANEL ── */
.tr-picker {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  overflow: hidden;
  animation: trSlide 0.15s ease-out;
}
@keyframes trSlide {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.tr-left {
  flex: 1;
  padding: 16px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.tr-right {
  width: 180px;
  padding: 16px;
  flex-shrink: 0;
}
.tr-section-title {
  font-size: 0.75rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 10px;
}

/* Calendar */
.tr-cal {
  margin-bottom: 14px;
}
.tr-cal-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.tr-cal-hd span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
}
.tr-cal-hd button {
  background: none;
  border: none;
  color: var(--text3);
  cursor: pointer;
  font-size: 1rem;
  padding: 2px 6px;
  border-radius: 3px;
}
.tr-cal-hd button:hover {
  color: var(--text);
  background: var(--surface2);
}
.tr-cal table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
  font-size: 0.75rem;
}
.tr-cal th {
  color: var(--text3);
  font-weight: 500;
  padding: 3px;
  text-align: center;
  font-size: 0.75rem;
}
.tr-cal td {
  text-align: center;
  padding: 2px;
}
.tr-cal td button {
  width: 28px;
  height: 26px;
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--text2);
  cursor: pointer;
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
  font-size: 0.75rem;
  transition: all 0.1s;
}
.tr-cal td button:hover {
  background: var(--surface2);
  color: var(--text);
}
.tr-cal td button.today {
  border-color: var(--blue);
  color: var(--blue);
}
.tr-cal td button.in-range {
  background: rgba(126, 182, 246, 0.12);
}
.tr-cal td button.sel {
  background: var(--blue);
  color: #fff;
}
.tr-cal td button.other {
  color: var(--text3);
  opacity: 0.4;
}
.tr-cal td button.no-data {
  color: var(--text3);
  opacity: 0.2;
  cursor: default;
}

/* Absolute inputs */
.tr-abs {
  display: flex;
  gap: 8px;
  align-items: flex-end;
  flex-wrap: wrap;
}
.tr-abs label {
  font-size: 0.75rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tr-abs input {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.15s;
}
.tr-abs input:focus {
  border-color: var(--blue);
}
.tr-abs input::-webkit-calendar-picker-indicator {
  filter: invert(0.6);
}
.tr-apply {
  background: var(--blue);
  border: none;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}
.tr-apply:hover {
  opacity: 0.85;
}

/* Recent ranges */
.tr-recent-section {
  margin-top: 14px;
}
.tr-recent {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.tr-recent button {
  background: none;
  border: none;
  color: var(--text2);
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
  font-size: 0.75rem;
  padding: 4px 6px;
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
  transition: all 0.1s;
}
.tr-recent button:hover {
  background: var(--surface2);
  color: var(--text);
}

/* Relative presets */
.tr-rel {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.tr-rel button {
  background: none;
  border: none;
  color: var(--text2);
  font-size: 0.75rem;
  padding: 5px 8px;
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
  transition: all 0.1s;
}
.tr-rel button:hover {
  background: var(--surface2);
  color: var(--text);
}
.tr-rel button.active {
  background: rgba(126, 182, 246, 0.12);
  color: var(--blue);
}

/* ── CHART PANELS ── */
#bwChart,
#piChart {
  cursor: crosshair;
}
.panel {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 12px;
}
.panel canvas {
  display: block;
  width: 100%;
}
#bwChart {
  aspect-ratio: 2.8;
}
#piChart {
  aspect-ratio: 4;
}
.panel .hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.panel .hd h2 {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.panel .lg {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--text2);
}
.panel .lg span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.panel .lg i {
  width: 14px;
  height: 3px;
  border-radius: 2px;
  display: inline-block;
  font-style: normal;
}
.no-data {
  text-align: center;
  padding: 48px;
  color: var(--text3);
  font-size: 0.9rem;
}

/* ── STATUS BARS (GitHub-style uptime) ── */
.sb-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.sb-section .stitle {
  margin-bottom: 16px;
}
.sb-row {
  margin-bottom: 10px;
}
.sb-row:last-child {
  margin-bottom: 0;
}
.sb-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.sb-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.sb-pct {
  font-size: 0.7rem;
  color: var(--text3);
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
}
.sb-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.sb-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.sb-badge-ok {
  background: rgba(34, 197, 94, 0.15);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.3);
}
.sb-badge-warn {
  background: rgba(234, 179, 8, 0.15);
  color: var(--amber);
  border: 1px solid rgba(234, 179, 8, 0.3);
}
.sb-badge-bad {
  background: rgba(239, 68, 68, 0.15);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}
.sb-badge-none {
  background: var(--surface);
  color: var(--text3);
  border: 1px solid var(--border);
}
.sb-bars {
  display: flex;
  gap: 1px;
  height: 28px;
  align-items: stretch;
}
.sb-bar {
  flex: 1;
  border-radius: 2px;
  cursor: pointer;
  transition:
    filter 0.15s,
    transform 0.1s;
  min-width: 0;
}
.sb-bar:hover {
  filter: brightness(1.8) saturate(1.6);
  transform: scaleY(1.12);
}
.sb-active {
  outline: 2px solid var(--text2);
  outline-offset: -1px;
}
.sb-footer {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--text3);
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
}
.sb-tip {
  display: none;
  position: fixed;
  background: var(--surface2);
  color: var(--text);
  font-size: 0.72rem;
  font-family: 'Geist Mono', 'Geist Mono Fallback', monospace;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border2);
  pointer-events: none;
  white-space: nowrap;
  z-index: 120;
  line-height: 1.5;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}
.sb-tip-above {
  transform: translate(-50%, -100%);
}
.sb-tip-below {
  transform: translateX(-50%);
}
.sb-tip-label {
  font-weight: 700;
  font-size: 0.78rem;
}
.sb-tip-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: 1px 10px;
  margin-top: 4px;
}
.sb-tip-k {
  color: var(--text3);
}
.sb-tip-v {
  text-align: right;
  font-weight: 600;
}
.sb-tip-dim {
  color: var(--text3);
  font-weight: 400;
  font-size: 0.65rem;
}
.sb-tip-pts {
  display: block;
  margin-top: 3px;
  color: var(--text3);
  font-size: 0.65rem;
}
.sb-badge {
  cursor: help;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}
footer p {
  font-size: 0.75rem;
  color: var(--text3);
}
footer a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
footer a:hover {
  text-decoration: underline;
}

/* ── RESPONSIVE ── */
@media (max-width: 640px) {
  .hero {
    padding: 28px 0 16px;
  }
  .hero h1 {
    font-size: 1.3rem;
  }
  .stat .v {
    font-size: 1.6rem;
  }
  .stat {
    padding: 16px 10px;
  }
  .stat .sg {
    grid-template-columns: repeat(2, 1fr);
    gap: 1px 8px;
  }
  .stat .sg dd {
    font-size: 0.75rem;
  }
  .stats {
    min-height: 243px;
  }
  .panel {
    padding: 14px;
  }
  #bwChart,
  #piChart {
    aspect-ratio: 1.5;
  }
  .al-row {
    flex-wrap: wrap;
    gap: 4px;
  }
  .al-name {
    min-width: auto;
  }
  .al-sum {
    display: none;
  }
  .tp .rb {
    padding: 3px 7px;
    font-size: 0.75rem;
  }
  .tp .rl {
    min-width: 130px;
    font-size: 0.75rem;
  }
  .tr-picker {
    flex-direction: column;
  }
  .tr-left {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .tr-right {
    width: auto;
  }
  .tr-rel {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2px;
  }
  nav .meta {
    font-size: 0.75rem;
  }
}
@media (max-width: 380px) {
  .stats {
    grid-template-columns: 1fr;
    min-height: 446px;
  }
  .stat {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 14px 10px;
  }
  .stat:last-child {
    border-bottom: none;
  }
  .stat .sg {
    grid-template-columns: repeat(4, 1fr);
  }
}
