    :root {
      --bg-0: #0c1124;
      --bg-1: #111831;
      --bg-2: #0f172a;
      --card: rgba(255, 255, 255, 0.06);
      --border: rgba(255, 255, 255, 0.08);
      --accent: #34d399;
      --accent-2: #22d3ee;
      --warn: #fbbf24;
      --err: #ef4444;
      --text: #e5e7eb;
      --muted: #9ca3af;
      --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
    }

    [data-theme="light"] {
      --bg-0: #f6f7fb;
      --bg-1: #eef1f8;
      --bg-2: #e8edf7;
      --card: rgba(255, 255, 255, 0.9);
      --border: rgba(148, 163, 184, 0.5);
      --text: #0f172a;
      --muted: #475569;
      --shadow: 0 12px 32px rgba(15, 23, 42, 0.18);
    }

    * {
      box-sizing: border-box;
    }

    body {
      font-family: "Inter", "Segoe UI", "Helvetica Neue", sans-serif;
      background: radial-gradient(circle at 10% 10%, rgba(34, 211, 238, 0.08), transparent 28%), radial-gradient(circle at 82% 12%, rgba(52, 211, 153, 0.12), transparent 26%), linear-gradient(145deg, var(--bg-0), var(--bg-1));
      color: var(--text);
      margin: 0;
      min-height: 100vh;
    }

    header {
      padding: 18px 26px;
      border-bottom: 1px solid var(--border);
      backdrop-filter: blur(12px);
      position: sticky;
      top: 0;
      background: rgba(12, 17, 36, 0.8);
      display: flex;
      align-items: center;
      justify-content: space-between;
      z-index: 10;
    }

    h1 {
      margin: 0;
      font-size: 22px;
      letter-spacing: .3px;
    }

    main {
      padding: 22px 26px 32px;
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      font-size: 12px;
      font-weight: 700;
    }

    .pill.ok {
      background: rgba(52, 211, 153, 0.2);
      color: #34d399;
    }

    .pill.warn {
      background: rgba(251, 191, 36, 0.2);
      color: #fbbf24;
    }

    .pill.err {
      background: rgba(239, 68, 68, 0.18);
      color: #ef4444;
    }

    button,
    input,
    select,
    textarea {
      font: inherit;
      border-radius: 10px;
      border: 1px solid var(--border);
      background: rgba(255, 255, 255, 0.04);
      color: var(--text);
      padding: 10px 12px;
    }

    button {
      background: linear-gradient(110deg, var(--accent), var(--accent-2));
      font-weight: 700;
      cursor: pointer;
      border: none;
      transition: transform .08s ease, box-shadow .12s ease;
    }

    button:hover {
      transform: translateY(-1px);
      box-shadow: var(--shadow);
    }

    .ghost {
      background: transparent;
      border: 1px solid var(--border);
    }

    .actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 14px;
    }

    .switch {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      cursor: pointer;
    }

    .switch input {
      display: none;
    }

    .switch .slider {
      width: 42px;
      height: 22px;
      background: rgba(255, 255, 255, 0.15);
      border-radius: 999px;
      position: relative;
      transition: background .18s ease;
    }

    .switch .slider::after {
      content: '';
      width: 18px;
      height: 18px;
      border-radius: 50%;
      background: #fff;
      position: absolute;
      top: 2px;
      left: 2px;
      transition: transform .18s ease;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }

    .switch input:checked+.slider {
      background: linear-gradient(110deg, var(--accent), var(--accent-2));
    }

    .switch input:checked+.slider::after {
      transform: translateX(20px);
    }

    .card {
      background: var(--card);
      border: 1px solid var(--border);
      padding: 14px 16px;
      border-radius: 14px;
      box-shadow: var(--shadow);
    }

    .card h3 {
      margin: 0 0 8px;
      font-size: 14px;
      color: var(--muted);
      letter-spacing: .2px;
      text-transform: uppercase;
    }

    .card-value {
      font-size: 22px;
      font-weight: 700;
      margin: 0;
    }

    .nav {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .nav button {
      background: transparent;
      border: 1px solid var(--border);
      padding: 10px 14px;
    }

    .nav button.active {
      background: linear-gradient(120deg, var(--accent), var(--accent-2));
      color: #0b1222;
      border-color: transparent;
    }

    .panel {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 16px;
      box-shadow: var(--shadow);
      margin-top: 14px;
    }

    .panel h3 {
      margin: 0 0 10px;
    }

    .row {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      align-items: center;
    }

    table {
      width: 100%;
      border-collapse: collapse;
      margin-top: 10px;
    }

    th,
    td {
      padding: 10px 8px;
      border-bottom: 1px solid var(--border);
      font-size: 13px;
    }

    th {
      text-align: left;
      color: var(--muted);
      letter-spacing: .2px;
    }

    .pill-head {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 6px 12px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.06);
      color: var(--muted);
      font-weight: 700;
      font-size: 12px;
    }

    .hint-line {
      color: var(--muted);
      font-size: 12px;
      margin: 4px 0 0;
    }

    .card-ghost {
      border: 1px dashed var(--border);
      background: rgba(255, 255, 255, 0.02);
    }

    .split {
      display: flex;
      gap: 16px;
      flex-wrap: wrap;
      align-items: flex-start;
    }

    .form-card {
      flex: 1;
      min-width: 320px;
      max-width: 520px;
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 12px;
    }

    .list-card {
      flex: 2;
      min-width: 320px;
    }

    .form-row {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
      gap: 10px;
      align-items: flex-end;
    }

    .compact-label {
      display: block;
      font-size: 12px;
      color: var(--muted);
      margin: 6px 0 4px;
    }

    .section-label {
      font-size: 12px;
      color: var(--muted);
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: .3px;
    }

    .service-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
      gap: 12px;
    }

    .file-tree {
      background: rgba(255, 255, 255, 0.03);
      border: 1px solid var(--border);
      border-radius: 10px;
      padding: 8px 10px;
      max-height: 360px;
      overflow: auto;
    }

    .tree-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 4px 2px;
      border-radius: 6px;
      font-size: 13px;
    }

    .tree-row:hover {
      background: rgba(255, 255, 255, 0.04);
    }

    .tree-name {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .tree-indent {
      width: 12px;
      flex: 0 0 12px;
    }

    .tree-folder {
      color: var(--accent);
      font-weight: 600;
    }

    .tree-file {
      color: var(--text);
    }

    .download-breadcrumb {
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      align-items: center;
    }

    .crumb {
      color: var(--muted);
      font-size: 12px;
    }

    .download-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 6px 4px;
      border-radius: 8px;
      font-size: 13px;
    }

    .download-row:hover {
      background: rgba(255, 255, 255, 0.04);
    }

    .download-name {
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .download-meta {
      color: var(--muted);
      font-size: 12px;
      display: flex;
      gap: 8px;
      align-items: center;
    }

    .link-btn {
      background: transparent;
      border: none;
      color: inherit;
      padding: 0;
      cursor: pointer;
    }

    .link-btn:hover {
      text-decoration: underline;
    }

    .icon-folder,
    .icon-file {
      width: 14px;
      height: 12px;
      display: inline-block;
      border-radius: 2px;
      flex: 0 0 14px;
      position: relative;
    }

    .icon-folder {
      border: 1px solid var(--accent);
    }

    .icon-folder::before {
      content: '';
      position: absolute;
      top: -3px;
      left: 1px;
      width: 6px;
      height: 3px;
      border: 1px solid var(--accent);
      border-bottom: none;
      border-radius: 2px 2px 0 0;
    }

    .icon-file {
      border: 1px solid var(--muted);
    }

    .mono {
      font-family: "SFMono-Regular", Consolas, monospace;
    }

    .hidden {
      display: none !important;
    }

    #toast {
      position: fixed;
      top: 16px;
      right: 16px;
      display: flex;
      flex-direction: column;
      gap: 8px;
      z-index: 60;
    }

    .toast {
      padding: 10px 12px;
      border-radius: 10px;
      background: rgba(12, 17, 36, 0.95);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }

    #modal,
    #missingModal {
      position: fixed;
      inset: 0;
      background: rgba(0, 0, 0, 0.55);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 70;
    }

    .modal-card {
      background: var(--bg-2);
      border: 1px solid var(--border);
      padding: 18px;
      border-radius: 12px;
      width: 420px;
      max-width: 90vw;
      box-shadow: var(--shadow);
    }

    #progressBar {
      width: 100%;
      height: 8px;
      background: rgba(255, 255, 255, 0.06);
      border-radius: 999px;
      overflow: hidden;
    }

    #progressFill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      transition: width .25s ease;
    }

    .tag {
      display: inline-block;
      padding: 4px 8px;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.08);
    }

    .tag-full {
      background: rgba(22, 163, 74, 0.22);
      color: #16a34a;
      border: 1px solid rgba(22, 163, 74, 0.55);
    }

    .tag-incr {
      background: rgba(34, 211, 238, 0.18);
      color: #22d3ee;
      border: 1px solid rgba(34, 211, 238, 0.35);
    }

    .backup-row {
      transition: background-color .14s ease, box-shadow .14s ease;
      position: relative;
      --depth: 0;
    }

    .backup-row.row-full {
      background: linear-gradient(90deg, transparent calc(var(--depth) * 32px), rgba(22, 163, 74, 0.16) calc(var(--depth) * 32px));
      box-shadow: inset 3px 0 rgba(22, 163, 74, 0.75);
      border: 1px solid rgba(22, 163, 74, 0.5);
    }

    .backup-row.row-incr {
      background: linear-gradient(90deg, transparent calc(var(--depth) * 32px), rgba(34, 211, 238, 0.08) calc(var(--depth) * 32px));
      box-shadow: inset 3px 0 rgba(34, 211, 238, 0.6);
    }

    .backup-row.row-full:hover {
      background: linear-gradient(90deg, transparent calc(var(--depth) * 32px), rgba(22, 163, 74, 0.26) calc(var(--depth) * 32px));
    }

    .backup-row.row-incr:hover {
      background: linear-gradient(90deg, transparent calc(var(--depth) * 32px), rgba(34, 211, 238, 0.14) calc(var(--depth) * 32px));
    }

    .backup-row td:first-child {
      padding-left: calc(12px + var(--depth) * 32px);
    }

    .login-overlay {
      position: fixed;
      inset: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background: rgba(0, 0, 0, 0.45);
      z-index: 80;
    }

    .login-box {
      width: 380px;
      max-width: 90vw;
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 14px;
      padding: 18px 18px 14px;
      box-shadow: var(--shadow);
    }

    .login-box label {
      display: block;
      margin: 10px 0 6px;
      font-size: 12px;
      color: var(--muted);
    }

    .login-box .field {
      margin-bottom: 6px;
    }

    .mini-bar {
      width: 100%;
      height: 8px;
      background: rgba(255, 255, 255, 0.06);
      border-radius: 999px;
      overflow: hidden;
    }

    .mini-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--accent), var(--accent-2));
      transition: width .25s ease;
    }

    .quota-bar {
      width: 100%;
      height: 10px;
      background: rgba(255, 255, 255, 0.06);
      border-radius: 999px;
      overflow: hidden;
    }

    .quota-fill {
      height: 100%;
      width: 0%;
      background: linear-gradient(90deg, var(--accent-2), var(--accent));
    }

    .quota-text {
      font-size: 12px;
      color: var(--muted);
      margin-top: 6px;
    }

    .hint {
      color: var(--muted);
      font-size: 12px;
      margin-top: 4px;
    }

    .csp-inline-01 {
      background: linear-gradient(120deg, #ef4444, #f97316);
    }

    .csp-inline-02 {
      color: var(--muted);
      font-size: 12px;
      margin: 6px 0 0;
    }

    .csp-inline-03 {
      color: var(--muted);
      margin: 4px 0 0;
    }

    .csp-inline-04 {
      color: var(--muted);
      margin: 6px 0 12px;
    }

    .csp-inline-05 {
      display: flex;
      flex-direction: column;
      gap: 6px;
      margin-top: 10px;
      max-height: 140px;
      overflow: auto;
    }

    .csp-inline-06 {
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .csp-inline-07 {
      display: none;
    }

    .csp-inline-08 {
      font-size: 12px;
      color: var(--muted);
    }

    .csp-inline-09 {
      font-size: 13px;
      color: var(--muted);
      line-height: 1.5;
    }

    .csp-inline-10 {
      font-weight: 600;
    }

    .csp-inline-11 {
      gap: 10px;
    }

    .csp-inline-12 {
      gap: 6px;
    }

    .csp-inline-13 {
      gap: 8px;
    }

    .csp-inline-14 {
      grid-column: span 2;
    }

    .csp-inline-15 {
      justify-content: flex-end;
    }

    .csp-inline-16 {
      justify-content: flex-end;
      margin-top: 12px;
    }

    .csp-inline-17 {
      justify-content: flex-end;
      margin-top: 14px;
    }

    .csp-inline-18 {
      justify-content: space-between;
    }

    .csp-inline-19 {
      justify-content: space-between;
      align-items: center;
    }

    .csp-inline-20 {
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
    }

    .csp-inline-21 {
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      margin-top: 12px;
    }

    .csp-inline-22 {
      justify-content: space-between;
      align-items: center;
      margin: 6px 0;
    }

    .csp-inline-23 {
      justify-content: space-between;
      align-items: center;
      margin-top: 10px;
    }

    .csp-inline-24 {
      justify-content: space-between;
      align-items: center;
      margin-top: 8px;
    }

    .csp-inline-25 {
      justify-content: space-between;
      align-items: flex-start;
    }

    .csp-inline-26 {
      justify-content: space-between;
      align-items: flex-start;
      flex-wrap: wrap;
    }

    .csp-inline-27 {
      justify-content: space-between;
      flex-wrap: wrap;
    }

    .csp-inline-28 {
      justify-content: space-between;
      flex-wrap: wrap;
      align-items: center;
    }

    .csp-inline-29 {
      margin: 0 0 8px;
    }

    .csp-inline-30 {
      margin: 0;
    }

    .csp-inline-31 {
      margin: 0;
      overflow: auto;
    }

    .csp-inline-32 {
      margin: 2px 0 0;
    }

    .csp-inline-33 {
      margin: 2px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .csp-inline-34 {
      margin: 4px 0 0;
      color: var(--muted);
    }

    .csp-inline-35 {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 13px;
    }

    .csp-inline-36 {
      margin-left: 6px;
    }

    .csp-inline-37 {
      margin-top: 0;
    }

    .csp-inline-38 {
      margin-top: 10px;
    }

    .csp-inline-39 {
      margin-top: 10px;
      justify-content: flex-end;
    }

    .csp-inline-40 {
      margin-top: 12px;
    }

    .csp-inline-41 {
      margin-top: 12px;
      background: rgba(255, 255, 255, 0.02);
    }

    .csp-inline-42 {
      margin-top: 12px;
      width: 100%;
    }

    .csp-inline-43 {
      margin-top: 14px;
    }

    .csp-inline-44 {
      margin-top: 4px;
    }

    .csp-inline-45 {
      margin-top: 6px;
    }

    .csp-inline-46 {
      margin-top: 8px;
    }

    .csp-inline-47 {
      margin-top: 8px;
      color: var(--warn);
      min-height: 18px;
    }

    .csp-inline-48 {
      margin-top: 8px;
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .csp-inline-49 {
      max-width: 560px;
    }

    .csp-inline-50 {
      overflow: auto;
      min-height: 200px;
    }

    .csp-inline-51 {
      padding: 2px 8px;
      position: absolute;
      top: -8px;
      right: -10px;
    }

    .csp-inline-52 {
      position: fixed;
      right: 14px;
      top: 74px;
      width: 340px;
      max-height: 70vh;
      overflow: auto;
      z-index: 50;
      background: var(--bg-1);
      border: 1px solid var(--border);
      box-shadow: var(--shadow);
    }

    .csp-inline-53 {
      position: relative;
    }

    .csp-inline-54 {
      width: 420px;
      max-width: 90vw;
    }

    .csp-inline-55 {
      width: 520px;
      max-height: 75vh;
      overflow: auto;
    }

    .csp-inline-56 {
      width: 520px;
      max-width: 90vw;
    }