    :root {
      color-scheme: light;
      --bg: #f5f7fb;
      --surface: #ffffff;
      --surface-2: #f0f4f8;
      --text: #172033;
      --muted: #637083;
      --line: #d8e0ea;
      --primary: #2563eb;
      --primary-soft: #e8f0ff;
      --green: #16825d;
      --green-soft: #e6f6ef;
      --amber: #9a5b00;
      --amber-soft: #fff3d6;
      --red: #b42318;
      --red-soft: #fee7e4;
      --cyan: #0e7490;
      --cyan-soft: #e5f7fb;
      --purple: #7048a8;
      --purple-soft: #f1eafb;
      --shadow: 0 16px 36px rgba(23, 32, 51, 0.08);
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      background: var(--bg);
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
        "Microsoft YaHei", Arial, sans-serif;
      letter-spacing: 0;
    }

    button,
    input,
    select {
      font: inherit;
    }

    button {
      cursor: pointer;
    }

    .app {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 248px minmax(0, 1fr);
    }

    .sidebar {
      background: #111827;
      color: #e8edf5;
      padding: 22px 16px;
      position: sticky;
      top: 0;
      height: 100vh;
      overflow: auto;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 4px 6px 22px;
      border-bottom: 1px solid rgba(255, 255, 255, 0.12);
      margin-bottom: 18px;
    }

    .brand-mark {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      display: grid;
      place-items: center;
      background: #f97316;
      color: #111827;
      font-weight: 800;
    }

    .brand strong {
      display: block;
      font-size: 15px;
      line-height: 1.25;
    }

    .brand span {
      display: block;
      color: #aab4c3;
      font-size: 12px;
      margin-top: 3px;
    }

    .nav-group {
      margin-top: 18px;
    }

    .nav-title {
      color: #8f9aac;
      font-size: 12px;
      padding: 0 8px 8px;
    }

    .nav-button {
      width: 100%;
      border: 0;
      color: #dbe4f0;
      background: transparent;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 11px 10px;
      border-radius: 8px;
      text-align: left;
      margin: 2px 0;
    }

    .nav-button:hover,
    .nav-button.active {
      color: #ffffff;
      background: rgba(255, 255, 255, 0.11);
    }

    .nav-dot {
      width: 8px;
      height: 8px;
      border-radius: 99px;
      background: #94a3b8;
      flex: 0 0 auto;
    }

    .nav-button.active .nav-dot {
      background: #f97316;
    }

    .main {
      min-width: 0;
      padding: 22px 28px 40px;
    }

    .topbar {
      min-height: 62px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      margin-bottom: 18px;
    }

    .topbar h1 {
      font-size: 24px;
      margin: 0;
      line-height: 1.25;
    }

    .topbar p {
      color: var(--muted);
      margin: 5px 0 0;
      line-height: 1.5;
    }

    .actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }

    .user-chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--surface);
      color: var(--muted);
      padding: 8px 10px;
      min-height: 38px;
      font-size: 13px;
    }

    .btn {
      border: 1px solid var(--line);
      background: var(--surface);
      color: var(--text);
      border-radius: 8px;
      padding: 9px 13px;
      min-height: 38px;
    }

    .btn.primary {
      border-color: var(--primary);
      background: var(--primary);
      color: #ffffff;
    }

    .layout {
      display: grid;
      gap: 18px;
    }

    .section {
      display: none;
    }

    .section.active {
      display: block;
    }

    .grid {
      display: grid;
      gap: 14px;
    }

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

    .two-col {
      grid-template-columns: minmax(0, 1.18fr) minmax(320px, 0.82fr);
    }

    .three-col {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .card {
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 8px;
      box-shadow: var(--shadow);
    }

    .card-body {
      padding: 18px;
    }

    .card-header {
      padding: 16px 18px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .card-header h2,
    .card-header h3 {
      margin: 0;
      font-size: 16px;
      line-height: 1.35;
    }

    .card-header span {
      color: var(--muted);
      font-size: 13px;
    }

    .stat {
      padding: 16px;
      min-height: 112px;
    }

    .stat-label {
      color: var(--muted);
      font-size: 13px;
    }

    .stat-value {
      font-size: 30px;
      line-height: 1.2;
      font-weight: 750;
      margin-top: 10px;
    }

    .stat-note {
      color: var(--muted);
      font-size: 13px;
      margin-top: 8px;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      border-radius: 999px;
      padding: 4px 9px;
      font-size: 12px;
      white-space: nowrap;
    }

    .pill.blue {
      background: var(--primary-soft);
      color: #174ea6;
    }

    .pill.green {
      background: var(--green-soft);
      color: var(--green);
    }

    .pill.amber {
      background: var(--amber-soft);
      color: var(--amber);
    }

    .pill.red {
      background: var(--red-soft);
      color: var(--red);
    }

    .pill.cyan {
      background: var(--cyan-soft);
      color: var(--cyan);
    }

    .table-wrap {
      overflow: auto;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 720px;
    }

    th,
    td {
      padding: 12px 14px;
      border-bottom: 1px solid var(--line);
      text-align: left;
      vertical-align: middle;
      font-size: 14px;
    }

    th {
      color: #435166;
      background: var(--surface-2);
      font-weight: 650;
    }

    tr:last-child td {
      border-bottom: 0;
    }

    .toolbar {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
      padding: 14px 18px;
      border-bottom: 1px solid var(--line);
    }

    .field {
      min-width: 160px;
      border: 1px solid var(--line);
      border-radius: 8px;
      min-height: 38px;
      padding: 8px 10px;
      background: #ffffff;
      color: var(--text);
    }

    textarea.field {
      min-height: 92px;
      resize: vertical;
      font-family: inherit;
    }

    .preline {
      white-space: pre-line;
    }

    .timeline {
      display: grid;
      gap: 12px;
    }

    .timeline-item {
      display: grid;
      grid-template-columns: 110px minmax(0, 1fr);
      gap: 12px;
      padding-bottom: 12px;
      border-bottom: 1px solid var(--line);
    }

    .timeline-item:last-child {
      border-bottom: 0;
      padding-bottom: 0;
    }

    .timeline-time {
      color: var(--muted);
      font-size: 13px;
    }

    .timeline-title {
      font-weight: 650;
      margin-bottom: 4px;
    }

    .timeline-desc {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .phase-list {
      display: grid;
      gap: 10px;
    }

    .phase-item {
      display: grid;
      grid-template-columns: 10px minmax(0, 1fr);
      gap: 10px;
      align-items: start;
    }

    .phase-dot {
      width: 10px;
      height: 10px;
      margin-top: 7px;
      border-radius: 999px;
      background: var(--green);
    }

    .phase-title {
      font-weight: 650;
      line-height: 1.45;
    }

    .phase-desc {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
      margin-top: 3px;
    }

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

    .monitor-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
      align-items: start;
    }

    .monitor-table {
      min-width: 0;
    }

    .monitor-table th,
    .monitor-table td {
      font-size: 14px;
    }

    .disk-bar {
      height: 20px;
      min-width: 180px;
      overflow: hidden;
      border-radius: 4px;
      background: var(--green);
      display: flex;
    }

    .disk-used {
      background: #d9534f;
      color: #ffffff;
      display: grid;
      place-items: center;
      font-size: 12px;
      min-width: 42px;
    }

    .disk-free {
      color: #ffffff;
      display: grid;
      place-items: center;
      font-size: 12px;
      min-width: 42px;
    }

    .server-card {
      padding: 16px;
      min-height: 132px;
      display: grid;
      align-content: space-between;
      gap: 12px;
    }

    .metric {
      display: flex;
      align-items: baseline;
      justify-content: space-between;
      gap: 12px;
    }

    .metric strong {
      font-size: 24px;
      line-height: 1.1;
    }

    .health-output {
      background: #101828;
      color: #e8edf5;
      border-radius: 8px;
      padding: 14px;
      min-height: 104px;
      overflow: auto;
      font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
      font-size: 13px;
      line-height: 1.55;
      white-space: pre-wrap;
    }

    .empty {
      color: var(--muted);
      padding: 16px;
      background: var(--surface-2);
      border-radius: 8px;
      line-height: 1.6;
    }

    dialog {
      width: min(680px, calc(100% - 28px));
      border: 1px solid var(--line);
      border-radius: 8px;
      padding: 0;
      box-shadow: var(--shadow);
    }

    dialog::backdrop {
      background: rgba(17, 24, 39, 0.45);
    }

    .dialog-header {
      padding: 16px 18px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .dialog-header h2 {
      font-size: 17px;
      margin: 0;
    }

    .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 14px;
      padding: 18px;
    }

    .form-field {
      display: grid;
      gap: 6px;
    }

    .form-field.full {
      grid-column: 1 / -1;
    }

    .form-field label {
      color: #435166;
      font-size: 13px;
      font-weight: 650;
    }

    .form-actions {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      padding: 0 18px 18px;
    }

    @media (max-width: 1100px) {
      .stats,
      .server-grid,
      .monitor-grid,
      .three-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .two-col {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 760px) {
      .app {
        grid-template-columns: 1fr;
      }

      .sidebar {
        position: static;
        height: auto;
      }

      .main {
        padding: 18px 14px 30px;
      }

      .topbar {
        align-items: flex-start;
        flex-direction: column;
      }

      .actions {
        justify-content: flex-start;
      }

      .stats,
      .server-grid,
      .monitor-grid,
      .three-col {
        grid-template-columns: 1fr;
      }

      .timeline-item {
        grid-template-columns: 1fr;
      }

      .form-grid {
        grid-template-columns: 1fr;
      }
    }
