    :root {
      color-scheme: dark;
      --bg: #071018;
      --panel: rgba(12, 28, 42, .82);
      --panel-strong: rgba(13, 31, 47, .96);
      --line: rgba(149, 213, 255, .17);
      --line-strong: rgba(149, 213, 255, .32);
      --text: #eff8ff;
      --muted: #95aabd;
      --soft: #c2d4e0;
      --cyan: #40e0ff;
      --green: #19e58f;
      --amber: #ffb020;
      --pink: #ff4fa3;
      --red: #ff5454;
      --purple: #8d6cff;
      --shadow: 0 26px 70px rgba(0, 0, 0, .42);
      --radius: 8px;
      --font-ui: "Alibaba PuHuiTi 3.0", "HarmonyOS Sans SC", "MiSans", "PingFang SC", "Microsoft YaHei UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      --font-number: "DIN Alternate", "Avenir Next Condensed", "Segoe UI Variable Display", "SF Pro Display", "Arial Narrow", var(--font-ui);
      font-family: var(--font-ui);
    }

    * {
      box-sizing: border-box;
    }

    html {
      min-height: 100%;
      background: var(--bg);
    }

    body {
      min-height: 100vh;
      margin: 0;
      color: var(--text);
      font-family: var(--font-ui);
      font-weight: 450;
      -webkit-font-smoothing: antialiased;
      text-rendering: geometricPrecision;
      background:
        linear-gradient(135deg, #051019 0%, #0a1825 48%, #121724 100%),
        #071018;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(149, 213, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(149, 213, 255, .055) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .95), rgba(0, 0, 0, .16));
    }

    body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, .025) 0,
        rgba(255, 255, 255, .025) 1px,
        transparent 1px,
        transparent 4px
      );
      opacity: .34;
    }

    button,
    input {
      font: inherit;
    }

    .shell {
      width: min(1560px, calc(100% - 32px));
      margin: 0 auto;
      padding: 28px 0 38px;
      position: relative;
      z-index: 1;
    }

    .topbar {
      display: grid;
      grid-template-columns: 1fr 430px;
      gap: 18px;
      align-items: start;
      margin-bottom: 16px;
    }

    .brandline {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 13px;
      color: var(--muted);
      font-size: 13px;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .pulse {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 0 6px rgba(25, 229, 143, .12), 0 0 28px rgba(25, 229, 143, .8);
    }

    h1 {
      margin: 0;
      font-size: 58px;
      line-height: 1;
      letter-spacing: 0;
      font-weight: 780;
    }

    .subtitle {
      max-width: 860px;
      margin: 14px 0 0;
      color: #b8ccd9;
      font-size: 17px;
      line-height: 1.65;
    }

    .panel {
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--panel);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
      overflow: hidden;
    }

    .control-panel {
      padding: 16px;
    }

    .status-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .status-row {
      margin-bottom: 14px;
      color: var(--muted);
      font-size: 13px;
    }

    .status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      min-height: 24px;
      color: #d7f7ff;
    }

    .status-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--amber);
      box-shadow: 0 0 14px rgba(255, 176, 32, .75);
    }

    .status-dot.ok {
      background: var(--green);
      box-shadow: 0 0 14px rgba(25, 229, 143, .75);
    }

    .status-dot.fail {
      background: var(--red);
      box-shadow: 0 0 14px rgba(255, 84, 84, .75);
    }

    .meta-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin-top: 14px;
    }

    .meta {
      min-height: 68px;
      padding: 11px;
      border: 1px solid rgba(149, 213, 255, .13);
      border-radius: 6px;
      background: rgba(255, 255, 255, .035);
    }

    .meta span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-bottom: 7px;
    }

    .meta strong {
      display: block;
      font-size: 14px;
      line-height: 1.25;
      word-break: break-word;
    }

    .metrics {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-bottom: 16px;
    }

    .metric {
      min-height: 128px;
      padding: 18px 18px 17px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background:
        radial-gradient(circle at 84% 18%, rgba(64, 224, 255, .12), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .022)),
        rgba(10, 24, 37, .76);
      box-shadow: 0 18px 55px rgba(0, 0, 0, .22);
      position: relative;
      overflow: hidden;
    }

    .metric::after {
      content: "";
      position: absolute;
      inset: auto 14px 12px 14px;
      height: 3px;
      border-radius: 3px;
      background: linear-gradient(90deg, var(--cyan), var(--green), var(--amber));
      opacity: .66;
    }

    .metric-label {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      color: #9fb6c7;
      font-size: 13px;
      font-weight: 620;
      margin-bottom: 17px;
    }

    .metric-mark {
      width: 30px;
      height: 30px;
      border-radius: 6px;
      display: grid;
      place-items: center;
      color: #061018;
      background: var(--cyan);
      box-shadow: 0 0 26px rgba(64, 224, 255, .32);
      flex: 0 0 auto;
      font-family: var(--font-number);
      font-size: 12px;
      font-weight: 860;
      letter-spacing: .02em;
    }

    .metric-value {
      font-family: var(--font-number);
      font-size: 38px;
      line-height: .96;
      font-weight: 820;
      letter-spacing: 0;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
      color: #f3fbff;
      text-shadow: 0 0 22px rgba(149, 213, 255, .12);
    }

    .metric-sub {
      margin-top: 12px;
      color: #94adbf;
      font-size: 13px;
      font-weight: 520;
      min-height: 18px;
    }

    .panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 16px 18px;
      border-bottom: 1px solid rgba(149, 213, 255, .13);
      background: rgba(255, 255, 255, .032);
    }

    .panel-title {
      margin: 0;
      font-size: 17px;
      letter-spacing: 0;
    }

    .panel-caption {
      color: var(--muted);
      font-size: 13px;
      text-align: right;
    }

    .segmented {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      padding: 4px;
      border-radius: 8px;
      background: rgba(255, 255, 255, .055);
      border: 1px solid rgba(149, 213, 255, .12);
    }

    .segmented button {
      border: 0;
      border-radius: 6px;
      color: var(--muted);
      background: transparent;
      min-height: 32px;
      padding: 0 12px;
      cursor: pointer;
      font-weight: 720;
    }

    .segmented button.active {
      color: var(--text);
      background: rgba(149, 213, 255, .12);
      box-shadow: inset 0 0 0 1px rgba(149, 213, 255, .14);
    }

    .chart-panel {
      margin-bottom: 16px;
    }

    .recent-panel {
      width: min(1840px, calc(100vw - 20px));
      margin-left: 50%;
      margin-bottom: 16px;
      transform: translateX(-50%);
    }

    .chart-shell {
      padding: 14px 16px 12px;
      position: relative;
    }

    .chart-canvas {
      display: block;
      width: 100%;
      height: 310px;
    }

    .recent-chart-box {
      position: relative;
      height: 560px;
    }

    .recent-canvas {
      height: 100% !important;
    }

    .chart-placeholder {
      position: absolute;
      inset: 58px 22px 26px 72px;
      display: grid;
      place-items: center;
      text-align: center;
      color: #a9bfce;
      pointer-events: none;
    }

    .chart-placeholder strong {
      display: block;
      color: var(--text);
      font-size: 18px;
      margin-bottom: 9px;
    }

    .chart-placeholder span {
      display: block;
      max-width: 760px;
      line-height: 1.7;
      font-size: 13px;
    }

    .chart-tooltip {
      position: fixed;
      z-index: 20;
      min-width: 210px;
      max-width: min(320px, calc(100vw - 28px));
      padding: 12px 13px;
      border: 1px solid rgba(149, 213, 255, .26);
      border-radius: 8px;
      color: #dbeef8;
      background: rgba(6, 16, 26, .94);
      box-shadow: 0 18px 55px rgba(0, 0, 0, .42), 0 0 28px rgba(64, 224, 255, .12);
      backdrop-filter: blur(16px);
      pointer-events: none;
      opacity: 0;
      transform: translate3d(0, 8px, 0);
      transition: opacity .12s ease, transform .12s ease;
      font-size: 12px;
      line-height: 1.45;
    }

    .chart-tooltip.show {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }

    .chart-tooltip strong {
      display: block;
      color: var(--text);
      font-size: 14px;
      margin-bottom: 8px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .chart-tooltip .tip-grid {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 5px 14px;
    }

    .chart-tooltip span {
      color: var(--muted);
    }

    .chart-tooltip b {
      color: var(--green);
      font-weight: 820;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .legend {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 8px 14px;
      padding: 0 2px 4px;
      color: #c9d8e3;
      font-size: 12px;
    }

    .legend span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-width: 0;
      max-width: 190px;
    }

    .legend i {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      display: inline-block;
      flex: 0 0 auto;
      box-shadow: 0 0 12px currentColor;
    }

    .legend i.swatch-0 { color: #4285f4; background: #4285f4; }
    .legend i.swatch-1 { color: #12b886; background: #12b886; }
    .legend i.swatch-2 { color: #f59f00; background: #f59f00; }
    .legend i.swatch-3 { color: #ff4d4f; background: #ff4d4f; }
    .legend i.swatch-4 { color: #8d6cff; background: #8d6cff; }
    .legend i.swatch-5 { color: #ff4fa3; background: #ff4fa3; }
    .legend i.swatch-6 { color: #20c7c7; background: #20c7c7; }
    .legend i.swatch-7 { color: #ff7a1a; background: #ff7a1a; }
    .legend i.swatch-8 { color: #7c88ff; background: #7c88ff; }
    .legend i.swatch-9 { color: #74b816; background: #74b816; }
    .legend i.swatch-10 { color: #21c4d9; background: #21c4d9; }
    .legend i.swatch-11 { color: #9254de; background: #9254de; }
    .legend i.swatch-cyan { color: #40e0ff; background: #40e0ff; }
    .legend i.swatch-amber { color: #ffb020; background: #ffb020; }

    .legend b {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 650;
    }

    .content-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      align-items: start;
    }

    .consume-body {
      display: grid;
      grid-template-columns: 220px minmax(0, 1fr);
      gap: 20px;
      align-items: center;
      padding: 16px;
    }

    .donut-wrap {
      min-height: 210px;
      display: grid;
      place-items: center;
      position: relative;
    }

    .donut-canvas {
      width: 210px;
      height: 210px;
      display: block;
    }

    .scatter-body {
      padding: 14px 16px 12px;
    }

    .scatter-canvas {
      display: block;
      width: 100%;
      height: 300px;
    }

    .donut-center {
      position: absolute;
      inset: 50% auto auto 50%;
      transform: translate(-50%, -50%);
      text-align: center;
      pointer-events: none;
    }

    .donut-center strong {
      display: block;
      font-size: 23px;
      line-height: 1.1;
      color: var(--green);
      font-variant-numeric: tabular-nums;
    }

    .donut-center span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      margin-top: 5px;
    }

    .mini-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 0;
    }

    .mini-table th,
    .mini-table td {
      padding: 9px 6px;
      border-bottom: 1px solid rgba(149, 213, 255, .14);
      text-align: left;
      font-size: 13px;
    }

    .mini-table th {
      color: var(--muted);
      font-weight: 760;
    }

    .mini-table td {
      color: #d9eaf4;
    }

    .mini-table .user {
      max-width: 230px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
      font-weight: 760;
      color: var(--text);
    }

    .mini-table .money {
      text-align: right;
    }

    .table-wrap {
      overflow: auto;
      max-height: min(820px, calc(100vh - 280px));
    }

    .full-rank-panel {
      margin-top: 16px;
    }

    .full-rank-panel .table-wrap {
      max-height: none;
    }

    table.rank-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 930px;
    }

    .rank-table thead {
      position: sticky;
      top: 0;
      z-index: 2;
      background: rgba(10, 24, 38, .96);
      backdrop-filter: blur(16px);
    }

    .rank-table th,
    .rank-table td {
      padding: 13px 14px;
      border-bottom: 1px solid rgba(149, 213, 255, .105);
      text-align: left;
    }

    .rank-table th {
      color: #91a9bb;
      font-size: 12px;
      font-weight: 760;
      letter-spacing: .08em;
      text-transform: uppercase;
      white-space: nowrap;
    }

    .rank-table td {
      color: #d8ecf7;
      font-size: 14px;
      vertical-align: middle;
    }

    .rank-table tbody tr {
      transition: background .18s ease;
    }

    .rank-table tbody tr:hover {
      background: rgba(64, 224, 255, .055);
    }

    .rank-cell {
      width: 70px;
    }

    .rank-pill {
      min-width: 38px;
      height: 30px;
      border-radius: 6px;
      display: inline-grid;
      place-items: center;
      border: 1px solid rgba(149, 213, 255, .24);
      color: var(--cyan);
      background: rgba(64, 224, 255, .08);
      font-weight: 800;
      font-variant-numeric: tabular-nums;
    }

    .rank-pill.top {
      color: #071018;
      background: var(--amber);
      border-color: rgba(255, 176, 32, .7);
    }

    .user-cell {
      min-width: 170px;
      font-weight: 760;
      color: #f4fbff;
    }

    .money {
      color: var(--green);
      font-weight: 840;
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }

    .soft {
      color: var(--muted);
      white-space: nowrap;
    }

    .number {
      white-space: nowrap;
      font-variant-numeric: tabular-nums;
    }

    .empty,
    .error {
      padding: 36px 20px;
      color: var(--muted);
      text-align: center;
    }

    .error {
      color: #ffb5c9;
    }

    .footer {
      margin-top: 18px;
      color: #7d9aab;
      font-size: 12px;
      display: flex;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 1220px) {
      .topbar,
      .content-grid {
        grid-template-columns: 1fr;
      }

      .recent-panel {
        width: 100%;
        margin-left: 0;
        transform: none;
      }

      .metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .table-wrap {
        max-height: none;
      }
    }

    @media (max-width: 820px) {
      .shell {
        width: min(100% - 20px, 1560px);
        padding-top: 18px;
      }

      h1 {
        font-size: 36px;
      }

      .subtitle {
        font-size: 15px;
      }

      .metrics,
      .meta-grid,
      .consume-body {
        grid-template-columns: 1fr;
      }

      .metric {
        min-height: 116px;
      }

      .metric-value {
        font-size: 30px;
      }

      .panel-head,
      .status-row {
        align-items: flex-start;
        flex-direction: column;
      }

      .chart-canvas {
        height: 360px;
      }

      .recent-chart-box {
        height: 460px;
      }

      .scatter-canvas {
        height: 320px;
      }
    }
