:root { color-scheme: light; }
* { box-sizing: border-box; }
body {
  margin: 0; background: #f6f7f9; color: #1c2024;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 14px; line-height: 1.45;
}
.wrap { max-width: 1180px; margin: 0 auto; padding: 20px; }
header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
h1 { font-size: 20px; margin: 0; font-weight: 650; }
.sub { color: #6b7280; font-size: 12.5px; margin-top: 2px; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #15803d; text-transform: uppercase; letter-spacing: .04em; }
.live .dot { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 0 rgba(22,163,74,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(22,163,74,.5);} 70% { box-shadow: 0 0 0 7px rgba(22,163,74,0);} 100% { box-shadow: 0 0 0 0 rgba(22,163,74,0);} }
.actions { display: flex; align-items: center; gap: 12px; }
.refreshed { font-size: 11.5px; color: #6b7280; }
.snaplink { font-size: 12.5px; font-weight: 600; color: #2563eb; text-decoration: none; white-space: nowrap; }
.snaplink:hover { text-decoration: underline; }
button.refresh {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  background: #2563eb; color: #fff; border: none; font-size: 13px; font-weight: 600;
  padding: 9px 16px; border-radius: 8px; box-shadow: 0 1px 2px rgba(16,24,40,.08);
}
button.refresh:hover { background: #1d4ed8; }
button.refresh:disabled { opacity: .6; cursor: default; }
button.refresh .ico { display: inline-block; }
button.refresh.loading .ico { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scope { margin: 6px 0 18px; color: #4b5563; font-size: 12.5px; }
.scope b { color: #1c2024; font-weight: 600; }
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 900px){ .cards { grid-template-columns: repeat(3,1fr);} }
@media (max-width: 560px){ .cards { grid-template-columns: repeat(2,1fr);} }
.card { background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; padding: 14px; box-shadow: 0 1px 2px rgba(16,24,40,.04); }
.card .label { font-size: 11.5px; color: #6b7280; text-transform: uppercase; letter-spacing: .03em; font-weight: 600; }
.card .value { font-size: 26px; font-weight: 680; margin-top: 4px; letter-spacing: -.01em; }
.card .unit { font-size: 13px; color: #6b7280; font-weight: 500; }
.card .meta { font-size: 11.5px; color: #6b7280; margin-top: 5px; }
.card.accent-blue { border-top: 3px solid #2563eb; }
.card.accent-teal { border-top: 3px solid #0d9488; }
.card.accent-violet { border-top: 3px solid #7c3aed; }
.card.accent-amber { border-top: 3px solid #d97706; }
.card.accent-red { border-top: 3px solid #dc2626; }
.card.accent-green { border-top: 3px solid #16a34a; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 16px; }
@media (max-width: 820px){ .grid2 { grid-template-columns: 1fr; } }
.panel { background: #fff; border: 1px solid #e6e8eb; border-radius: 12px; padding: 14px 16px 16px; }
.panel h2 { font-size: 13.5px; margin: 0 0 2px; font-weight: 650; }
.panel .hint { font-size: 11.5px; color: #6b7280; margin: 0 0 12px; }
.bars { display: flex; flex-direction: column; gap: 10px; }
.bar { display: grid; grid-template-columns: 170px 1fr 32px; gap: 10px; align-items: center; }
.bar .name { font-size: 12.5px; }
.bar .track { background: #f1f3f5; border-radius: 6px; height: 20px; overflow: hidden; }
.bar .fill { height: 100%; border-radius: 6px; min-width: 2px; }
.bar .cnt { font-weight: 680; font-size: 14px; text-align: right; }
.tbar { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.tbar .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; }
.tbar .col .b { width: 60%; max-width: 42px; background: #16a34a; border-radius: 4px 4px 0 0; min-height: 2px; }
.tbar .col.cur .b { background: #86efac; }
.tbar .col .n { font-size: 11px; font-weight: 650; color: #4b5563; }
.tbar .col .l { font-size: 10.5px; color: #9ca3af; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
th, td { text-align: left; padding: 7px 8px; border-bottom: 1px solid #eef0f2; vertical-align: top; }
th { color: #6b7280; font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
td a { color: #2563eb; text-decoration: none; font-weight: 600; }
td a:hover { text-decoration: underline; }
.pill { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #f1f3f5; color: #495057; }
.muted { color: #9aa0a6; }
.err { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; margin-bottom: 14px; }
.loading { text-align: center; color: #6b7280; padding: 60px; font-size: 13px; }
.scroll { overflow: auto; max-height: 320px; }
.full { grid-column: 1 / -1; }
.right { text-align: right; }
.pill.gray { background: #f1f3f5; color: #495057; }
.pill.amber { background: #fef3c7; color: #92400e; }
.ministats { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 16px; }
.ministat { background: #fff; border: 1px solid #e6e8eb; border-radius: 10px; padding: 8px 14px; min-width: 120px; }
.ministat .ml { display: block; font-size: 11px; color: #6b7280; font-weight: 600; }
.ministat .mv { display: block; font-size: 20px; font-weight: 680; margin-top: 2px; }
.mrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 820px){ .mrow { grid-template-columns: 1fr; } }
.mhdr { font-size: 12.5px; font-weight: 650; margin: 0 0 6px; }
.keys { margin-top: 14px; padding-top: 12px; border-top: 1px solid #eef0f2; display: flex; flex-direction: column; gap: 8px; }
.krow { display: grid; grid-template-columns: 150px 1fr; gap: 10px; font-size: 11.5px; align-items: start; }
.klbl { font-weight: 600; color: #1c2024; display: flex; align-items: center; gap: 6px; }
.kdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.kk { color: #6b7280; }
.kk a { color: #6b7280; text-decoration: none; }
.kk a:hover { color: #2563eb; text-decoration: underline; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.srow { display: grid; grid-template-columns: 110px 1fr 40px; gap: 10px; align-items: center; }
.sk { font-size: 12px; font-weight: 600; }
.sbar { display: flex; height: 22px; border-radius: 5px; overflow: hidden; background: #f1f3f5; min-width: 2px; }
.seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: 10.5px; font-weight: 650; overflow: hidden; }
.stot { text-align: right; font-weight: 680; font-size: 13px; }
.legend { display: flex; gap: 16px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #eef0f2; }
.lg { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #4b5563; }
.lgdot { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
