[hidden] { display: none !important; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  height: auto;
  min-height: 100%;
  min-height: 100vh;
  min-height: 640px;
  width: 100%;
  color-scheme: light;
  background: #e8f3ff;
}
body {
  height: auto;
  min-height: 100%;
  min-height: 100vh;
  min-height: 640px;
  width: 100%;
  overflow: auto;
  background: #f3f5f8;
  font-family: "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1f2329;
  -webkit-font-smoothing: antialiased;
  min-width: 0;
}
button, input, select { font-family: inherit; }
button { cursor: pointer; border: 0; background: none; }
.shell { min-height: 100%; display: flex; flex-direction: column; background: #f3f5f8; }

.titlebar {
  height: 52px; background: #fff; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; border-bottom: 1px solid #e8ebf0; flex-shrink: 0; gap: 16px;
}
.app-name { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 650; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #0089ff; display: inline-block; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab {
  font-size: 13px; padding: 6px 14px; border-radius: 6px;
  background: #f3f5f8; color: #3c434b; border: 1px solid #e5e8ee;
}
.tab.on { background: #0089ff; color: #fff; border-color: #0089ff; }
.actions { min-width: 120px; text-align: right; }
.who { font-size: 12px; color: #8a9199; }

.page { padding: 20px 24px 48px; max-width: 1280px; width: 100%; margin: 0 auto; }
.page-title { font-size: 22px; font-weight: 700; margin: 0 0 6px; }
.data-updated {
  margin: 0 0 10px;
  padding: 10px 14px;
  display: inline-block;
  background: #fff7e6;
  border: 1px solid #f5c36b;
  border-radius: 8px;
  color: #8a4b08;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.page-summary { font-size: 13px; color: #5b6573; line-height: 1.6; margin-bottom: 14px; }

.callout {
  background: #e8f4ff; border: 1px solid #cfe6ff; border-radius: 10px;
  padding: 12px 14px; font-size: 13px; line-height: 1.65; color: #1f2329; margin-bottom: 16px;
}
.callout strong { display: block; margin-bottom: 4px; color: #005bab; }

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.metric {
  background: #fff; border: 1px solid #e8ebf0; border-radius: 10px; padding: 12px 14px;
}
.metric .k { font-size: 12px; color: #8a9199; }
.metric .v { font-size: 22px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.metric .u { font-size: 12px; color: #5b6573; font-weight: 500; margin-left: 4px; }

.panel {
  background: #fff; border: 1px solid #e8ebf0; border-radius: 12px;
  padding: 18px 18px 12px; margin-bottom: 18px;
}
.panel-h { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-h h2 { font-size: 16px; font-weight: 700; }
.caption, .foot-note, .duration-note, .empty { font-size: 13px; color: #5b6573; line-height: 1.65; }
.duration-note { margin: 0 0 12px; }
.foot-note { margin: 10px 0 4px; }
.empty { padding: 24px 0; text-align: center; }

.seg { display: inline-flex; border: 1px solid #e5e8ee; border-radius: 6px; overflow: hidden; background: #f3f5f8; flex-shrink: 0; }
.seg .s { font-size: 12px; padding: 6px 12px; color: #3c434b; white-space: nowrap; }
.seg .s.on { background: #0089ff; color: #fff; font-weight: 650; }

.bars { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.bar-row { display: grid; grid-template-columns: minmax(88px, 180px) 1fr auto; gap: 10px; align-items: center; }
.bar-label { font-size: 13px; color: #1f2329; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 10px; background: #eef3f8; border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; background: #0089ff; border-radius: 99px; min-width: 0; }
.bar-val { font-size: 12px; color: #5b6573; white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 86px; text-align: right; }

.table-scroll { overflow: auto; border: 1px solid #eef1f5; border-radius: 8px; }
.grid { width: 100%; border-collapse: collapse; font-size: 13px; }
.grid th, .grid td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #eef1f5; white-space: nowrap; }
.grid th { background: #f8fafc; font-weight: 650; color: #5b6573; position: sticky; top: 0; }
.grid td.end, .grid th.end { text-align: right; }
.grid tbody tr:hover { background: #f8fbff; }
.pill {
  display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; font-weight: 650;
}
.pill.warn { background: #fff4e5; color: #b54708; }
.pill.up { background: #eaf8ef; color: #17663a; }
.pill.down { background: #fdecec; color: #b42318; }
.pill.muted { background: #f3f5f8; color: #5b6573; }

@media (max-width: 800px) {
  .titlebar { height: auto; flex-wrap: wrap; padding: 10px 12px; }
  .page { padding: 14px 12px 36px; }
  .bar-row { grid-template-columns: 1fr; gap: 4px; }
  .bar-val { text-align: left; }
}
