      :root {
        color-scheme: dark;
        --page: #101414;
        --panel: #172020;
        --panel-raised: #202c2a;
        --border: #33403c;
        --border-soft: #293531;
        --text: #f1f0e9;
        --muted: #b3b9ae;
        --subtle: #929d94;
        --frost: #f2b19d;
        --accent: #ee765c;
        --cyan-strong: #92c8d5;
        --success: #9ed2b0;
        --notice: #e1c47e;
        --warning: #eea07d;
        --danger: #f08b88;
        --chart-grid: #2b3733;
        --mono: "SFMono-Regular", Menlo, Consolas, monospace;
        --sans: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
        --fs-xs: 12px;
        --fs-sm: 13px;
      }

      body[data-theme="midnight"] {
        --page: #202337;
        --panel: #292e45;
        --panel-raised: #313850;
        --border: #515d85;
        --border-soft: #3d4769;
        --text: #e4eaff;
        --muted: #a9b5d0;
        --subtle: #a1acc7;
        --frost: #a9c3ff;
        --accent: #a9c3ff;
        --cyan-strong: #88c0d0;
        --success: #a3be8c;
        --notice: #ebcb8b;
        --warning: #d08770;
        --danger: #f08b95;
        --chart-grid: #424c70;
      }

      * { box-sizing: border-box; }
      html { background: #101414; }
      body {
        min-width: 320px;
        min-height: 100vh;
        margin: 0;
        background: var(--page);
        color: var(--text);
        font-family: var(--sans);
        font-size: 14px;
        line-height: 1.45;
      }
      body[data-theme="graphite"] {
        background: radial-gradient(ellipse at 95% 0%, rgba(146, 200, 213, .07), transparent 50%), var(--page);
      }
      button, select { font: inherit; }
      button { color: inherit; }
      button:focus-visible, select:focus-visible { outline: 2px solid var(--cyan-strong); outline-offset: 2px; }
      .shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 40px; }
      .topbar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 20px;
        padding: 0 0 20px;
        border-bottom: 1px solid var(--border-soft);
      }
      .brand, .topbar-meta, .meta-row, .service-state, .section-heading, .quota-head, .card-head, .legend, .billing-row { display: flex; align-items: center; }
      .brand { min-width: 0; gap: 12px; }
      .brand-mark {
        display: grid;
        width: 30px;
        height: 30px;
        flex: 0 0 30px;
        place-items: center;
        border: 0;
        color: var(--accent);
        font-family: var(--mono);
        font-size: var(--fs-xs);
        font-weight: 700;
      }
      .brand-mark img { display: block; width: 30px; height: 30px; }
      .brand-name { color: var(--text); font: 500 14px var(--mono); letter-spacing: .04em; }
      .brand-name span { color: var(--muted); font: var(--fs-xs) var(--sans); letter-spacing: 0; }
      .topbar-meta { flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; color: var(--muted); font-size: var(--fs-xs); }
      .tag, .state-tag, .threshold-label, .source-new {
        display: inline-flex;
        align-items: center;
        width: fit-content;
        border: 1px solid var(--border-soft);
        color: var(--muted);
        font-size: var(--fs-xs);
        line-height: 1;
        white-space: nowrap;
      }
      .theme-switcher { display: flex; padding: 3px; gap: 3px; border: 1px solid var(--border-soft); border-radius: 4px; }
      .theme-option {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        min-height: 30px;
        padding: 5px 8px;
        border: 0;
        border-radius: 2px;
        background: transparent;
        color: var(--muted);
        cursor: pointer;
      }
      .theme-option:last-child { border-right: 0; }
      .theme-option[aria-pressed="true"] { background: var(--panel-raised); color: var(--text); }
      .theme-swatch { width: 8px; height: 8px; border: 1px solid currentColor; }
      .theme-option[data-theme="midnight"] .theme-swatch { background: #a9c3ff; }
      .theme-option[data-theme="graphite"] .theme-swatch { background: #ee765c; }
      .theme-toggle {
        position: relative;
        display: none;
        width: 32px;
        height: 32px;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        border: 1px solid var(--border-soft);
        border-radius: 4px;
        background: transparent;
        cursor: pointer;
      }
      .theme-toggle::before { position: absolute; inset: -6px; content: ""; }
      .theme-toggle .theme-swatch { width: 11px; height: 11px; border: 1px solid currentColor; }
      body[data-theme="graphite"] .theme-toggle .theme-swatch { background: #ee765c; }
      body[data-theme="midnight"] .theme-toggle .theme-swatch { background: #a9c3ff; }
      .page-head {
        display: grid;
        grid-template-areas: "eyebrow time" "title title" "summary summary";
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 5px 16px;
        padding: 16px 0 14px;
      }
      .eyebrow { grid-area: eyebrow; margin: 0; color: var(--frost); font-size: var(--fs-xs); }
      .refresh-state { grid-area: time; align-self: start; justify-self: end; color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; white-space: nowrap; }
      h1, h2, h3, p { margin: 0; }
      h1 { font-weight: 650; letter-spacing: -.035em; }
      #page-title { grid-area: title; font-size: 22px; line-height: 1.25; }
      .page-summary { grid-area: summary; margin-top: 0; color: var(--muted); font-size: var(--fs-sm); }
      .status-band, .panel, .node-card, .billing { border: 1px solid var(--border); border-radius: 4px; background: var(--panel); }
      .status-band { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(210px, 0.75fr); }
      .service-state { min-height: 74px; gap: 11px; padding: 15px 17px; border-right: 1px solid var(--border); }
      .status-dot { width: 9px; height: 9px; flex: 0 0 9px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 15%, transparent); }
      .service-copy { min-width: 0; }
      .service-copy strong { display: block; color: var(--text); font-size: 15px; font-weight: 500; }
      .service-copy span { color: var(--muted); font-size: var(--fs-xs); }
      .collector { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 15px 17px; color: var(--muted); font-size: var(--fs-xs); }
      .service-state { flex-wrap: wrap; align-content: flex-start; row-gap: 10px; }
      .service-live { display: flex; gap: 18px; margin: 0 0 0 auto; }
      .service-live > div { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
      .service-live dt { color: var(--subtle); font-size: var(--fs-xs); white-space: nowrap; cursor: help; }
      .service-live dt small { margin-left: 4px; font-size: 0.9em; }
      .service-live dd { margin: 0; color: var(--text); font: 500 20px/1 var(--mono); font-variant-numeric: tabular-nums; }
      .service-live[data-status="error"] dt, .service-live[data-status="stale"] dt { color: var(--warning); }
      .service-live[data-status="error"] dd, .service-live[data-status="stale"] dd,
      .service-live[data-status="warming_up"] dd, .service-live[data-status="disabled"] dd { opacity: .5; }
      .live-clients { position: relative; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline dotted color-mix(in srgb, var(--subtle) 70%, transparent); text-underline-offset: 5px; }
      .live-clients::after { position: absolute; inset: -8px -16px -16px; content: ""; }
      .live-clients:focus-visible { outline: 2px solid var(--cyan-strong); outline-offset: 3px; border-radius: 2px; }
      .live-clients[aria-expanded="true"] { color: var(--cyan-strong); }
      .live-ip-list { display: grid; flex: 1 0 calc(100% - 20px); gap: 7px; margin: 0 0 0 20px; padding: 10px 0 0; border-top: 1px dashed var(--border-soft); list-style: none; }
      .live-ip-list[hidden] { display: none; }
      .live-ip-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; color: var(--muted); font-size: var(--fs-xs); }
      .live-ip-list code { color: var(--text); font: var(--fs-xs) var(--mono); overflow-wrap: anywhere; }
      .live-ip-trust { padding: 0 5px; border: 1px solid var(--border); border-radius: 3px; font-size: var(--fs-xs); line-height: 16px; }
      .live-ip-list li.trusted .live-ip-trust { color: var(--success); }
      .live-ip-list li.untrusted .live-ip-trust { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 45%, transparent); }
      .live-ip-location { color: var(--subtle); overflow-wrap: anywhere; }
      .live-ip-empty { color: var(--subtle); }
      .collector strong { color: var(--text); font-size: 16px; font-weight: 500; }
      .dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.85fr); gap: 16px; margin-top: 16px; }
      .main-column, .side-column { display: grid; align-content: start; gap: 16px; }
      .side-column { align-self: stretch; align-content: stretch; min-height: 0; }
      .dashboard-history { display: grid; gap: 16px; margin-top: 16px; }
      #alert-summary-wrap { grid-column: 1 / -1; }
      .alert-summary {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-height: 53px;
        padding: 12px 15px;
        border: 1px solid color-mix(in srgb, var(--notice) 25%, var(--border));
        border-left: 2px solid var(--notice);
        border-radius: 3px;
        background: color-mix(in srgb, var(--notice) 7%, var(--panel));
        color: var(--text);
        text-align: left;
        text-decoration: none;
        cursor: pointer;
      }
      .alert-summary:hover { background: color-mix(in srgb, var(--notice) 12%, var(--panel)); }
      .alert-summary strong { color: var(--notice); font-size: var(--fs-sm); font-weight: 500; }
      .alert-summary span:last-child { color: var(--muted); font-size: var(--fs-xs); }
      .quota { padding: 16px; }
      .quota-head { justify-content: space-between; gap: 12px; }
      .quota-head h2, .section-heading h2, .card-head h2, .billing h2 { font-size: 14px; font-weight: 600; }
      .quota-values { display: flex; align-items: baseline; gap: 7px; margin-top: 14px; color: var(--muted); font: var(--fs-sm) var(--mono); }
      .quota-values strong { color: var(--text); font-size: 32px; font-weight: 500; letter-spacing: -.05em; }
      #quota-percent { margin-left: auto; color: var(--success); font-size: 17px; }
      .quota.notice #quota-percent { color: var(--notice); }
      .quota.warning #quota-percent { color: var(--warning); }
      .quota.danger #quota-percent { color: var(--danger); }
      .progress-track { height: 6px; margin-top: 14px; overflow: hidden; background: var(--border-soft); border-radius: 2px; }
      .progress-fill { width: 12.3%; height: 100%; background: var(--success); transition: width 180ms ease, background 180ms ease; }
      .quota.notice .progress-fill { background: var(--notice); }
      .quota.warning .progress-fill { background: var(--warning); }
      .quota.danger .progress-fill { background: var(--danger); }
      .quota-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 11px; }
      .quota-foot .info-note { margin-top: 0; }
      .quota-observed { display: block; margin-top: 10px; color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
      .threshold-label { padding: 4px 6px; color: var(--success); border-color: color-mix(in srgb, var(--success) 52%, transparent); }
      .quota.notice .threshold-label { color: var(--notice); border-color: color-mix(in srgb, var(--notice) 52%, transparent); }
      .quota.warning .threshold-label { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 52%, transparent); }
      .quota.danger .threshold-label { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 52%, transparent); }
      .quota-select { max-width: 132px; padding: 4px 22px 4px 6px; border: 1px solid var(--border-soft); border-radius: 0; background: var(--panel-raised); color: var(--muted); font-size: var(--fs-xs); }
      .node-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
      .node-card { padding: 16px; }
      .card-head { justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--border-soft); }
      .tag { padding: 4px 6px; color: var(--muted); border-color: var(--border-soft); font: var(--fs-xs) var(--mono); }
      .metric-lines { display: grid; gap: 8px; margin-top: 14px; }
      .metric-line { display: grid; grid-template-columns: 1fr auto; gap: 12px; color: var(--muted); font-size: var(--fs-xs); }
      .metric-line strong { color: var(--text); font: 500 14px var(--mono); }
      .metric-line .up { color: var(--cyan-strong); }
      .metric-line .down { color: var(--success); }
      .node-accounts { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
      .node-accounts-title { color: var(--subtle); font-size: var(--fs-xs); }
      .node-account { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 12px; align-items: baseline; margin-top: 6px; font-size: var(--fs-xs); color: var(--muted); }
      .node-account strong { color: var(--text); font-weight: 500; overflow-wrap: anywhere; }
      .node-account-traffic, .node-account-conn { font-family: var(--mono); font-variant-numeric: tabular-nums; }
      .panel { padding: 16px; }
      .section-heading { justify-content: space-between; gap: 12px; flex-wrap: wrap; }
      .chart-controls { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
      .range-tabs { display: flex; overflow: hidden; border: 1px solid var(--border-soft); border-radius: 3px; font: var(--fs-xs) var(--mono); }
      .range-tab { min-width: 39px; min-height: 28px; padding: 4px 7px; border: 0; border-right: 1px solid var(--border-soft); background: transparent; color: var(--muted); cursor: pointer; }
      .range-tab:last-child { border-right: 0; }
      .range-tab[aria-pressed="true"] { background: var(--text); color: var(--page); }
      .chart-wrap { position: relative; height: 260px; margin-top: 17px; }
      #traffic-chart { display: block; width: 100%; height: 100%; }
      .chart-guide { position: absolute; width: 1px; background: var(--subtle); opacity: .6; pointer-events: none; }
      .chart-tooltip {
        position: absolute;
        z-index: 2;
        padding: 8px 10px;
        border: 1px solid var(--border);
        border-radius: 4px;
        background: var(--panel-raised);
        color: var(--text);
        font-size: var(--fs-xs);
        white-space: nowrap;
        pointer-events: none;
        box-shadow: 0 8px 24px #0006;
      }
      .chart-tooltip-time { color: var(--muted); }
      .chart-tooltip-row { display: flex; align-items: center; gap: 6px; margin-top: 4px; }
      .chart-tooltip-swatch { width: 8px; height: 8px; border-radius: 1px; }
      .chart-tooltip-swatch.snell { background: var(--cyan-strong); }
      .chart-tooltip-swatch.hysteria { background: var(--accent); }
      .chart-tooltip-value { margin-left: auto; font-family: var(--mono); font-variant-numeric: tabular-nums; }
      .legend { flex-wrap: wrap; gap: 14px; margin-top: 9px; color: var(--muted); font-size: var(--fs-xs); }
      .legend span { display: inline-flex; align-items: center; gap: 6px; }
      .legend i { width: 18px; height: 2px; }
      .legend .snell { background: var(--cyan-strong); }
      .legend .hysteria { background: var(--accent); }
      .chart-table { margin-top: 9px; }
      .chart-table-scroll { max-height: 240px; overflow: auto; }
      .chart-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-xs); }
      .chart-table caption { padding-bottom: 4px; color: var(--muted); text-align: left; }
      .chart-table th, .chart-table td { padding: 5px 8px; text-align: left; }
      .chart-table th { color: var(--subtle); font-weight: 500; }
      .chart-table th:nth-child(2), .chart-table th:nth-child(3),
      .chart-table td:nth-child(2), .chart-table td:nth-child(3) { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
      .chart-table tbody tr { border-top: 1px solid var(--border-soft); }
      .info-note { margin-top: 9px; color: var(--subtle); font-size: var(--fs-xs); }
      .source-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; margin-top: 13px; align-content: start; max-height: 240px; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: var(--border) transparent; padding-right: 6px; }
      .source-list:focus-visible { outline: 2px solid var(--cyan-strong); outline-offset: 3px; }
      .source-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; color: var(--subtle); font-size: var(--fs-xs); }
      .source-footer[hidden], .source-footer button[hidden] { display: none; }
      .source-footer button { flex-shrink: 0; }
      .source-panel button:disabled { opacity: .55; cursor: wait; }
      .source-panel > .info-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); }
      .source-row { padding: 8px 0; border-top: 1px solid var(--border-soft); }
      .source-row:first-child { border-top: 0; padding-top: 0; }
      .source-row:last-child { padding-bottom: 0; }
      .source-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
      .source-ip { min-width: 0; overflow-wrap: anywhere; color: var(--text); font-family: var(--mono); }
      .source-online { display: inline-flex; align-items: center; gap: 4px; color: var(--success); font-size: var(--fs-xs); }
      .source-online[hidden] { display: none; }
      .source-online::before { width: 6px; height: 6px; border-radius: 50%; background: currentColor; content: ""; }
      .source-new { flex-shrink: 0; padding: 4px 6px; color: var(--notice); border-color: color-mix(in srgb, var(--notice) 55%, transparent); }
      .source-trusted { color: var(--success); border-color: color-mix(in srgb, var(--success) 45%, transparent); }
      .source-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
      .source-actions .link-button { min-height: 32px; white-space: nowrap; }
      .source-detail { margin: 4px 0 0; overflow: hidden; color: var(--muted); font-size: var(--fs-xs); text-overflow: ellipsis; white-space: nowrap; }
      .billing { padding: 14px 16px; }
      .billing-row { display: grid; grid-template-columns: 1fr auto; gap: 9px 12px; }
      .billing-summary { color: var(--muted); font-size: var(--fs-xs); }
      .billing-summary strong { color: var(--success); font: 500 16px var(--mono); }
      .billing-note { color: var(--subtle); font-size: var(--fs-xs); }
      .refresh-demo { min-height: 28px; padding: 4px 8px; border: 1px solid var(--border-soft); border-radius: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: var(--fs-xs); }
      .refresh-demo:hover { border-color: var(--frost); color: var(--text); }

      @media (min-width: 861px) {
        .source-panel { display: flex; flex-direction: column; min-height: 0; }
        .source-list { flex: 1; min-height: 0; max-height: none; contain: size; }
      }
      @media (max-width: 860px) {
        .status-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .collector { grid-column: 1 / -1; border-top: 1px solid var(--border); }
        .dashboard-grid { grid-template-columns: 1fr; }
      }
      @media (max-width: 640px) {
        :root { --fs-xs: 13px; --fs-sm: 14px; }
        .shell { width: min(100% - 24px, 1180px); padding-top: 15px; }
        .topbar { flex-wrap: nowrap; padding-bottom: 12px; }
        .page-head { padding: 12px 0 10px; }
        #page-title { font-size: 19px; }
        .theme-switcher { display: none; }
        .theme-toggle { display: inline-flex; }
        .status-band, .node-grid { grid-template-columns: 1fr; }
        .service-state { border-right: 0; border-bottom: 1px solid var(--border); }
        .collector { grid-column: auto; }
        .chart-wrap { height: 184px; }
        .quota-foot { align-items: flex-start; }
        .source-actions .link-button { min-height: 44px; }
        .collector { border-top: 0; }
        .source-detail { white-space: normal; }
        .node-account { grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; }
        .node-account > strong { grid-column: 1; grid-row: 1; }
        .node-account-conn { grid-column: 2; grid-row: 1; }
        .node-account-traffic { grid-column: 1 / -1; grid-row: 2; }
        .range-tab, .link-button {
          display: inline-flex;
          align-items: center;
          justify-content: center;
          min-height: 44px;
          min-width: 44px;
        }
      }
      @media (max-width: 360px) {
        .brand-name span { display: none; }
      }
      @media (prefers-reduced-motion: reduce) { .progress-fill { transition: none; } }

      .oci-metrics { display: grid; gap: 15px; margin-top: 20px; }
      .oci-explain { margin-top: 14px; }
      .oci-explain ul { margin: 0; padding: 0; }
      .oci-explain li { font-size: var(--fs-xs); color: var(--muted); line-height: 1.7; margin: 6px 0 0; padding-left: 16px; }
      @media (min-width: 861px) {
        .oci-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 28px; }
      }
      .oci-metric-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: var(--fs-xs); color: var(--muted); }
      .oci-metric-heading strong { color: var(--text); font-variant-numeric: tabular-nums; font-weight: 500; }
      .oci-progress { display: block; width: 100%; height: 4px; margin: 8px 0 6px; border: 0; border-radius: 3px; overflow: hidden; appearance: none; background: var(--border); }
      .oci-progress::-webkit-progress-bar { background: var(--border); }
      .oci-progress::-webkit-progress-value { background: var(--cyan-strong); }
      .oci-progress::-moz-progress-bar { background: var(--cyan-strong); }
      .oci-progress.danger::-webkit-progress-value { background: var(--accent); }
      .oci-progress.danger::-moz-progress-bar { background: var(--accent); }
      .oci-metric-note, .oci-inventory { margin: 0; font-size: var(--fs-xs); line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
      .oci-inventory:not(:empty) { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--border); }
      .billing .cost-danger { color: var(--accent); }

      /* ---- 真实页面补充样式（登录、提示、列表） ---- */
      .link-button {
        border: 1px solid var(--border-soft);
        border-radius: 3px;
        padding: 4px 10px;
        background: transparent;
        color: var(--muted);
        font-size: var(--fs-xs);
        cursor: pointer;
      }
      .link-button:hover { border-color: var(--accent); color: var(--text); }
      .link-button:disabled { opacity: .45; cursor: not-allowed; }
      .source-blocked, .block-button, .block-error { color: var(--accent); }
      .source-blocked { border-color: var(--accent); }
      .blocked-sources { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
      .blocked-sources h3 { margin: 0; font-size: 14px; }
      .blocked-list { max-height: 220px; overflow-y: auto; }
      .blocked-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border-soft); }
      .blocked-identity { display: grid; gap: 5px; min-width: 0; overflow-wrap: anywhere; }
      .blocked-item button { flex-shrink: 0; }
      .block-dialog { width: min(440px, calc(100vw - 32px)); box-sizing: border-box; padding: 28px; border: 1px solid var(--border); background: var(--panel); color: var(--text); box-shadow: 0 24px 90px #0008; }
      .block-dialog::backdrop { background: #071311b8; backdrop-filter: blur(4px); }
      .block-dialog h2 { font-size: 22px; margin: 8px 0 24px; }
      .block-target { font-family: monospace; font-size: 24px; overflow-wrap: anywhere; margin-bottom: 8px; }
      .block-dialog p { line-height: 1.65; }
      .block-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }
      .block-dialog-actions button { min-height: 44px; }
      .notice {
        margin-top: 14px;
        padding: 10px 14px;
        border: 1px solid var(--border);
        border-left: 3px solid var(--cyan-strong);
        border-radius: 3px;
        background: var(--panel);
        color: var(--muted);
        font-size: var(--fs-sm);
      }
      .notice.warning { border-left-color: var(--warning); color: var(--text); }
      .notice.error { border-left-color: var(--danger); color: var(--text); }
      .table-list { display: grid; gap: 8px; margin-top: 8px; }
      .table-row {
        padding: 10px 12px;
        border: 1px solid var(--border-soft);
        border-left: 3px solid var(--border);
        border-radius: 3px;
        background: var(--panel-raised);
      }
      .table-row.severity-critical, .table-row.severity-error { border-left-color: var(--danger); }
      .table-row.severity-warning { border-left-color: var(--warning); }
      .table-row.severity-info { border-left-color: var(--cyan-strong); }
      .table-row-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
      .table-row-note { margin-top: 4px; color: var(--muted); font-size: var(--fs-xs); word-break: break-word; }
      .table-row-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; color: var(--subtle); font-size: var(--fs-xs); }
      .alert-status { font: 500 var(--fs-xs) var(--sans); }
      .alert-status-pending { color: var(--warning); border-color: color-mix(in srgb, var(--warning) 55%, transparent); background: color-mix(in srgb, var(--warning) 12%, transparent); }
      .alert-status-ongoing { color: var(--notice); border-color: color-mix(in srgb, var(--notice) 55%, transparent); background: color-mix(in srgb, var(--notice) 8%, transparent); }
      #alerts-pending { scroll-margin-top: 16px; }
      @media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
      .alert-history { margin-top: 12px; border-top: 1px solid var(--border-soft); padding-top: 10px; }
      .alert-history summary, .oci-explain summary, .chart-table summary { display: flex; align-items: center; min-height: 32px; color: var(--muted); font-size: var(--fs-xs); cursor: pointer; list-style: none; }
      .alert-history summary::-webkit-details-marker, .oci-explain summary::-webkit-details-marker, .chart-table summary::-webkit-details-marker { display: none; }
      .alert-history summary::before, .oci-explain summary::before, .chart-table summary::before { width: 14px; content: "▸"; color: var(--subtle); }
      .alert-history[open] summary::before, .oci-explain[open] summary::before, .chart-table[open] summary::before { content: "▾"; }
      .alert-history summary:focus-visible, .oci-explain summary:focus-visible, .chart-table summary:focus-visible { outline: 2px solid var(--cyan-strong); outline-offset: 2px; }
      .alert-history summary span { margin-left: 6px; color: var(--subtle); }
      /* 须写在上面的通用 summary 规则之后，否则同优先级规则会把高度覆盖回 32px */
      @media (max-width: 640px) {
        .alert-history summary, .oci-explain summary, .chart-table summary { min-height: 44px; }
      }
      .alert-history-list { display: grid; margin: 8px 0 0; padding: 0; list-style: none; }
      .alert-history-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0 6px 10px; border-top: 1px solid var(--border-soft); border-left: 2px solid var(--border); color: var(--muted); font-size: var(--fs-xs); }
      .alert-history-row.severity-critical, .alert-history-row.severity-error { border-left-color: var(--danger); }
      .alert-history-row.severity-warning { border-left-color: var(--warning); }
      .alert-history-row.severity-info { border-left-color: var(--cyan-strong); }
      .alert-history-row time { color: var(--subtle); font: var(--fs-xs) var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
      .alert-history-row .tag { padding: 3px 5px; }
      .alert-history-summary { overflow: hidden; color: var(--text); text-overflow: ellipsis; white-space: nowrap; }
      .service-state[data-status="failed"] .status-dot,
      .service-state[data-status="error"] .status-dot { background: var(--danger); }
      .service-state[data-status="stopped"] .status-dot { background: var(--subtle); }
      .service-state[data-status="unknown"] .status-dot { background: transparent; border-color: var(--subtle); }
      .quota.notice .progress-fill { background: var(--notice); }
      .quota.warning .progress-fill { background: var(--warning); }
      .quota.danger .progress-fill { background: var(--danger); }
      .login-shell { display: grid; min-height: 100vh; place-items: center; padding: 24px; }
      .login-box {
        width: min(360px, 100%);
        padding: 26px;
        border: 1px solid var(--border);
        border-radius: 4px;
        background: var(--panel);
      }
      .login-box h1 { margin: 18px 0 14px; font-size: 20px; }
      .login-box form { display: grid; gap: 6px; }
      .login-box label { margin-top: 8px; color: var(--muted); font-size: var(--fs-xs); }
      .login-box input {
        padding: 9px 10px;
        border: 1px solid var(--border);
        border-radius: 3px;
        background: var(--page);
        color: var(--text);
        font: 14px var(--mono);
      }
      .login-box input:focus-visible { outline: 2px solid var(--cyan-strong); outline-offset: 1px; }
      .login-box button[type="submit"] {
        margin-top: 16px;
        padding: 10px;
        border: 0;
        border-radius: 3px;
        background: var(--accent);
        color: #17110f;
        font-weight: 650;
        cursor: pointer;
      }
      .login-box button[type="submit"]:disabled { opacity: .6; cursor: progress; }
      .login-error { margin-top: 12px; color: var(--danger); font-size: var(--fs-sm); }
      .login-box .info-note { margin-top: 12px; }
      .host-live { margin: 22px 0 26px; }
      .host-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
      .host-heading > div { display: flex; align-items: baseline; gap: 12px; }
      .host-heading h2 { margin: 0; font-size: 15px; font-weight: 600; }
      .host-eyebrow { color: var(--cyan-strong); font: var(--fs-xs) var(--mono); letter-spacing: .12em; }
      .host-live-state { display: inline-flex; align-items: center; gap: 7px; color: var(--subtle); font-size: var(--fs-xs); }
      .host-live-state i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
      .host-live-state[data-status="ok"] { color: var(--success); }
      .host-live-state[data-status="ok"] i { box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 10%, transparent); }
      .host-live-state[data-status="error"], .host-live-state[data-status="stale"] { color: var(--warning); }
      .host-grid { display: grid; grid-template-columns: 1.18fr 1fr 1fr 1fr; border: 1px solid var(--border); border-radius: 5px; overflow: hidden; background: var(--panel); }
      .host-card { --host-color: var(--cyan-strong); position: relative; min-width: 0; padding: 17px 20px 15px; }
      .host-card + .host-card { border-left: 1px solid var(--border-soft); }
      .host-card::before { position: absolute; inset: 0 20px auto; height: 2px; background: var(--host-color); opacity: .65; content: ""; }
      .host-cpu { --host-color: var(--frost); }
      .host-memory { --host-color: var(--success); }
      .host-disk { --host-color: var(--notice); }
      .host-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
      .host-card-head h3 { margin: 0; font-size: 13px; font-weight: 600; }
      .host-card-head > span { color: var(--subtle); font: var(--fs-xs) var(--mono); overflow-wrap: anywhere; }
      .host-card-head .host-reading-state { position: absolute; top: 5px; right: 9px; color: var(--warning); font: var(--fs-xs) var(--sans); }
      .host-speed { display: flex; align-items: baseline; gap: 8px; }
      .host-speed + .host-speed { margin-top: 6px; }
      .host-direction { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; color: var(--muted); font-size: var(--fs-xs); white-space: nowrap; }
      .host-direction b { color: var(--host-color); font-size: 17px; font-weight: 400; }
      .host-speed strong { font: 500 26px/1.15 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.06em; }
      .host-unit { min-width: 31px; color: var(--subtle); font: var(--fs-xs) var(--mono); }
      .host-value { display: flex; align-items: baseline; gap: 6px; margin: 0 0 13px; }
      .host-value strong { font: 500 34px/1 var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -.065em; }
      .host-value > span { color: var(--subtle); font: 13px var(--mono); }
      .host-meter { height: 4px; margin: 0 0 13px; overflow: hidden; background: var(--border-soft); border-radius: 2px; }
      .host-meter i { display: block; height: 100%; width: 0; background: var(--host-color); border-radius: inherit; transition: width .5s ease; }
      .host-load { display: flex; flex-direction: column; gap: 4px; }
      .host-load > span { color: var(--subtle); font-size: var(--fs-xs); }
      .host-load small { margin-left: 5px; font-size: 0.9em; }
      .host-load strong, .host-capacity { margin: 0; color: var(--muted); font: var(--fs-xs)/1.5 var(--mono); font-variant-numeric: tabular-nums; }
      .host-note { margin: 5px 0 0; color: var(--subtle); font-size: var(--fs-xs); line-height: 1.5; }
      .host-network .host-note { margin-top: 13px; }
      .host-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 14px; margin-top: 8px; color: var(--subtle); font-size: var(--fs-xs); }
      .host-card[data-status="error"]::before, .host-card[data-status="stale"]::before { background: var(--warning); }
      .host-card[data-status="error"] .host-value, .host-card[data-status="stale"] .host-value,
      .host-card[data-status="error"] .host-speed strong, .host-card[data-status="stale"] .host-speed strong { opacity: .5; }
      @media (max-width: 960px) {
        .host-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .host-card:nth-child(3) { border-left: 0; }
        .host-card:nth-child(n+3) { border-top: 1px solid var(--border-soft); }
      }
      @media (max-width: 420px) {
        .host-card { padding: 15px 13px 13px; }
        .host-card::before { left: 13px; right: 13px; }
        .host-heading > div { gap: 8px; }
        .host-heading h2 { font-size: 14px; }
        .host-speed { gap: 5px; }
        .host-speed strong { font-size: 22px; }
      }
      @media (prefers-reduced-motion: reduce) { .host-meter i { transition: none; } }
