    :root {
      --primary: #176bff;
      --primary-weak: #eaf2ff;
      --primary-line: #b8d2ff;
      --success: #17b26a;
      --success-weak: #eaf8f0;
      --warning: #f79009;
      --warning-weak: #fff3e3;
      --danger: #f04438;
      --danger-weak: #fff1f0;
      --purple: #7c3aed;
      --purple-weak: #f1eaff;
      --neutral: #667085;
      --neutral-weak: #f2f4f7;
      --text: #1f2a44;
      --text-soft: #475467;
      --muted: #667085;
      --line: #e4eaf3;
      --line-strong: #d8e0ed;
      --bg: #f8fafd;
      --panel: #ffffff;
      --shadow: 0 16px 44px rgba(31, 42, 68, .15);
      --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "HarmonyOS Sans SC", sans-serif;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      color: var(--text);
      font-family: var(--font);
      background: var(--bg);
    }

    button, input, select { font: inherit; }
    button { cursor: pointer; }

    .app-shell {
      min-height: 100vh;
      display: grid;
      grid-template-columns: 236px minmax(0, 1fr);
      background:
        linear-gradient(180deg, rgba(255,255,255,.94), rgba(246,249,253,.96)),
        var(--bg);
      filter: saturate(.88);
    }

    .sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      border-right: 1px solid var(--line);
      background: rgba(255,255,255,.92);
      padding: 22px 14px;
      overflow: auto;
    }

    .brand {
      height: 42px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 10px 24px;
      color: var(--primary);
      font-size: 20px;
      font-weight: 780;
      letter-spacing: 0;
      white-space: nowrap;
    }

    .brand-mark {
      width: 28px;
      height: 28px;
      border: 2px solid var(--primary);
      border-radius: 8px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
    }

    .brand-mark svg {
      width: 18px;
      height: 18px;
      stroke-width: 2.4;
    }

    .nav-group { margin: 8px 0; }

    .nav-title,
    .nav-item {
      height: 38px;
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 0 12px;
      border-radius: 8px;
      color: #344054;
      font-size: 14px;
      white-space: nowrap;
    }

    .nav-title svg {
      width: 16px;
      height: 16px;
      stroke: #667085;
      flex: 0 0 auto;
    }

    .nav-title.active {
      color: var(--primary);
      background: var(--primary-weak);
      font-weight: 650;
    }

    .nav-title.active svg { stroke: var(--primary); }

    .nav-item {
      margin-left: 26px;
      color: #667085;
    }

    .nav-item.selected {
      color: var(--primary);
      background: var(--primary-weak);
      font-weight: 650;
    }

    .main {
      min-width: 0;
      display: flex;
      flex-direction: column;
    }

    .topbar {
      height: 64px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 0 30px;
      border-bottom: 1px solid var(--line);
      background: rgba(255,255,255,.9);
      backdrop-filter: blur(8px);
    }

    .crumb {
      color: var(--muted);
      font-size: 13px;
      font-weight: 620;
    }

    .top-actions {
      display: flex;
      align-items: center;
      gap: 14px;
    }

    .account {
      display: grid;
      gap: 2px;
      text-align: right;
      color: var(--muted);
      font-size: 12px;
      line-height: 1.25;
    }

    .account strong {
      color: var(--text);
      font-size: 14px;
      font-weight: 760;
    }

    .avatar {
      width: 34px;
      height: 34px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      color: #fff;
      background: #27456f;
      font-size: 13px;
      font-weight: 800;
    }

    .content {
      min-width: 0;
      padding: 30px;
    }

    .metrics {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
      gap: 16px;
      margin-bottom: 18px;
    }

    .metric-card {
      height: 104px;
      border: 1px solid var(--line);
      border-radius: 8px;
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 0 20px;
      box-shadow: 0 4px 14px rgba(31, 42, 68, .035);
      min-width: 0;
    }

    .metric-copy {
      min-width: 0;
    }

    .metric-icon {
      width: 52px;
      height: 52px;
      border-radius: 50%;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      opacity: .84;
    }

    .metric-icon svg {
      width: 25px;
      height: 25px;
      stroke-width: 2.4;
    }

    .metric-icon.blue { color: var(--primary); background: var(--primary-weak); }
    .metric-icon.green { color: var(--success); background: var(--success-weak); }
    .metric-icon.orange { color: var(--warning); background: var(--warning-weak); }
    .metric-icon.purple { color: var(--purple); background: var(--purple-weak); }

    .metric-label {
      margin-bottom: 8px;
      color: #475467;
      font-size: 13px;
      font-weight: 700;
      white-space: nowrap;
    }

    .metric-value {
      color: #101828;
      font-size: 25px;
      line-height: 1;
      font-weight: 800;
      letter-spacing: 0;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .metric-extra {
      margin-top: 7px;
      color: var(--muted);
      font-size: 12px;
      white-space: nowrap;
    }

    .panel {
      border: 1px solid var(--line);
      border-radius: 8px;
      background: var(--panel);
      box-shadow: 0 4px 14px rgba(31, 42, 68, .035);
    }

    .filter {
      padding: 20px 22px;
      margin-bottom: 18px;
    }

    .filter-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 16px 16px;
      align-items: end;
    }

    .field {
      display: grid;
      gap: 8px;
      min-width: 0;
    }

    .field label {
      color: #344054;
      font-size: 14px;
      font-weight: 700;
    }

    .control {
      height: 38px;
      min-width: 0;
      border: 1px solid var(--line-strong);
      border-radius: 7px;
      background: #fff;
      color: #344054;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      padding: 0 12px;
      font-size: 13px;
      box-shadow: inset 0 1px 2px rgba(31, 42, 68, .025);
    }

    .control.placeholder { color: #98a2b3; }
    .control svg { width: 15px; height: 15px; stroke: #7a8699; flex: 0 0 auto; }

    .filter-actions {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 14px;
      height: 40px;
    }

    .btn {
      height: 40px;
      min-width: 108px;
      border: 1px solid var(--line-strong);
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 0 14px;
      color: #344054;
      background: #fff;
      font-size: 14px;
      font-weight: 700;
      white-space: nowrap;
    }

    .btn.primary {
      border-color: var(--primary);
      color: #fff;
      background: var(--primary);
      box-shadow: 0 8px 18px rgba(23, 107, 255, .22);
    }

    .btn svg {
      width: 16px;
      height: 16px;
      stroke-width: 2.4;
    }

    .table-shell {
      overflow: hidden;
    }

    .table-head {
      min-height: 54px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding: 0 18px;
      border-bottom: 1px solid var(--line);
      background: #fff;
    }

    .table-title {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #1d2939;
      font-size: 16px;
      font-weight: 760;
    }

    .table-title::before {
      content: "";
      width: 4px;
      height: 16px;
      border-radius: 8px;
      background: var(--primary);
    }

    .table-meta {
      color: var(--muted);
      font-size: 13px;
    }

    .table-scroll {
      width: 100%;
      overflow: auto;
    }

    table {
      width: 100%;
      min-width: 1180px;
      border-collapse: collapse;
      table-layout: fixed;
      font-size: 13px;
    }

    thead th {
      height: 46px;
      padding: 0 12px;
      background: #f8fafd;
      color: #344054;
      font-weight: 760;
      text-align: left;
      border-bottom: 1px solid var(--line);
      white-space: nowrap;
    }

    tbody td {
      height: 68px;
      padding: 10px 12px;
      color: #344054;
      border-bottom: 1px solid var(--line);
      vertical-align: middle;
      line-height: 1.5;
    }

    tbody tr:hover td { background: #fbfdff; }
    tbody tr:last-child td { border-bottom: 0; }

    th:nth-child(1), td:nth-child(1) { width: 130px; padding-left: 18px; }
    th:nth-child(2), td:nth-child(2) { width: 100px; }
    th:nth-child(3), td:nth-child(3) { width: 142px; }
    th:nth-child(4), td:nth-child(4) { width: 142px; }
    th:nth-child(5), td:nth-child(5) { width: 104px; }
    th:nth-child(6), td:nth-child(6) { width: 82px; }
    th:nth-child(7), td:nth-child(7) { width: 98px; }
    th:nth-child(8), td:nth-child(8) { width: 122px; text-align: right; padding-right: 18px; }
    th:last-child, td:last-child { width: 122px; text-align: right; padding-right: 18px; }
    th.status-col,
    td.status-col { width: 76px; text-align: center; padding-right: 12px; }

    .leader-cell {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .leader-name {
      color: #1f2a44;
      font-weight: 780;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .leader-id,
    .sub-text {
      color: var(--muted);
      font-size: 12px;
      font-weight: 600;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .phone {
      color: #1d2939;
      font-weight: 730;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .copy-code {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      max-width: 100%;
    }

    .copy-btn {
      width: 18px;
      height: 18px;
      border: 0;
      background: transparent;
      color: #667085;
      padding: 0;
      display: inline-grid;
      place-items: center;
      flex: 0 0 auto;
    }

    .copy-btn svg {
      width: 15px;
      height: 15px;
      stroke-width: 2.2;
    }

    .partner-chain {
      display: grid;
      gap: 4px;
      min-width: 0;
    }

    .partner-chain strong {
      color: #263247;
      font-weight: 720;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .percent {
      color: var(--primary);
      font-size: 15px;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .money {
      color: #101828;
      font-weight: 800;
      font-variant-numeric: tabular-nums;
      white-space: nowrap;
    }

    .tag {
      min-width: 54px;
      height: 26px;
      border-radius: 6px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 10px;
      font-size: 13px;
      font-weight: 740;
      white-space: nowrap;
    }

    .tag.success { color: var(--success); background: var(--success-weak); }
    .tag.warning { color: var(--warning); background: var(--warning-weak); }
    .tag.gray { color: #667085; background: var(--neutral-weak); }
    .tag.blue { color: var(--primary); background: var(--primary-weak); }
    .tag.red { color: var(--danger); background: var(--danger-weak); }
    .tag.purple { color: var(--purple); background: var(--purple-weak); }

    .actions {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 9px;
      width: 100%;
      white-space: nowrap;
    }

    .link {
      border: 0;
      background: transparent;
      padding: 0;
      color: var(--primary);
      font-size: 13px;
      font-weight: 800;
    }

    .link.danger { color: var(--danger); }

    .pagination {
      height: 60px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 18px;
      border-top: 1px solid var(--line);
      color: var(--muted);
      font-size: 13px;
      background: #fff;
    }

    .page-controls {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .page-size,
    .page-arrow,
    .page-current,
    .page-num {
      height: 34px;
      border: 1px solid var(--line-strong);
      border-radius: 7px;
      background: #fff;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      color: #344054;
      font-weight: 700;
    }

    .page-size {
      width: 106px;
      gap: 8px;
    }

    .page-arrow,
    .page-current,
    .page-num {
      width: 34px;
    }

    .page-current {
      border-color: var(--primary);
      background: var(--primary);
      color: #fff;
    }

    .drawer-mask {
      position: fixed;
      inset: 0;
      z-index: 20;
      background: rgba(15, 23, 42, .28);
      backdrop-filter: blur(1px);
      opacity: 0;
      pointer-events: none;
      transition: opacity .18s ease;
    }

    .drawer {
      position: fixed;
      z-index: 21;
      inset: 0 0 0 auto;
      width: min(760px, calc(100vw - 72px));
      display: grid;
      grid-template-rows: 76px 1fr 68px;
      background: #fff;
      box-shadow: var(--shadow);
      transform: translateX(102%);
      transition: transform .2s ease;
    }

    body.drawer-open .drawer-mask {
      opacity: 1;
      pointer-events: auto;
    }

    body.drawer-open .drawer {
      transform: translateX(0);
    }

    .drawer-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 28px;
      border-bottom: 1px solid #edf1f7;
    }

    .drawer-title {
      margin: 0;
      color: #101828;
      font-size: 22px;
      font-weight: 780;
      letter-spacing: 0;
    }

    .icon-btn {
      width: 36px;
      height: 36px;
      border: 0;
      border-radius: 7px;
      background: transparent;
      color: #667085;
      display: grid;
      place-items: center;
    }

    .icon-btn:hover { background: #f2f4f7; }

    .icon-btn svg {
      width: 20px;
      height: 20px;
      stroke-width: 2.3;
    }

    .drawer-body {
      overflow: auto;
      padding: 22px 28px;
    }

    .tabs {
      display: flex;
      gap: 22px;
      height: 42px;
      border-bottom: 1px solid var(--line);
      margin-bottom: 20px;
    }

    .tab {
      height: 42px;
      border: 0;
      background: transparent;
      color: #667085;
      font-size: 14px;
      font-weight: 760;
      padding: 0;
      position: relative;
    }

    .tab.active {
      color: var(--primary);
    }

    .tab.active::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -1px;
      height: 2px;
      border-radius: 4px;
      background: var(--primary);
    }

    .section {
      border: 1px solid var(--line);
      border-radius: 8px;
      margin-bottom: 16px;
      overflow: hidden;
      background: #fff;
    }

    .section-title {
      min-height: 44px;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      gap: 8px;
      padding: 0 16px;
      border-bottom: 1px solid var(--line);
      background: #fbfcfe;
      color: #1d2939;
      font-size: 15px;
      font-weight: 780;
    }

    .section-title .tag {
      margin-left: auto;
    }

    .section-body {
      padding: 16px;
    }

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

    .info-item {
      display: grid;
      gap: 6px;
      min-width: 0;
    }

    .info-label {
      color: #667085;
      font-size: 12px;
      font-weight: 700;
    }

    .info-value {
      color: #1f2a44;
      font-size: 14px;
      font-weight: 720;
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .info-value.status-value {
      display: inline-flex;
      align-items: center;
      overflow: visible;
    }

    .info-value.status-value .tag {
      height: 24px;
      min-width: 48px;
      font-size: 12px;
    }

    .wide { grid-column: 1 / -1; }

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

    .form-item {
      display: grid;
      gap: 8px;
      min-width: 0;
    }

    .form-label {
      color: #344054;
      font-size: 14px;
      font-weight: 700;
    }

    .input,
    .select-box {
      width: 100%;
      border: 1px solid var(--line-strong);
      border-radius: 7px;
      background: #fff;
      color: #344054;
      font-size: 14px;
    }

    .input,
    .select-box {
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      padding: 0 12px;
      min-width: 0;
      overflow: hidden;
      white-space: nowrap;
    }

    input.input {
      outline: 0;
      font: inherit;
      line-height: normal;
    }

    input.input:focus {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(23, 107, 255, .12);
    }

    input.input::placeholder {
      color: #98a2b3;
      font-weight: 400;
    }

    .control-value {
      min-width: 0;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .select-box svg {
      width: 16px;
      height: 16px;
      flex: 0 0 16px;
      stroke-width: 2.2;
    }

    .search-select {
      position: relative;
      width: 100%;
      height: 40px;
      border: 1px solid var(--line-strong);
      border-radius: 7px;
      background: #fff;
      display: flex;
      align-items: center;
      gap: 8px;
      padding: 0 12px;
      color: #344054;
      min-width: 0;
    }

    .search-select:focus-within {
      border-color: var(--primary);
      box-shadow: 0 0 0 3px rgba(23, 107, 255, .12);
    }

    .search-select input {
      flex: 1;
      min-width: 0;
      border: 0;
      outline: 0;
      background: transparent;
      color: #344054;
      font-size: 14px;
      font: inherit;
    }

    .search-select input::placeholder {
      color: #98a2b3;
      font-weight: 400;
    }

    .search-select svg {
      width: 16px;
      height: 16px;
      flex: 0 0 16px;
      stroke-width: 2.2;
      color: #7a8699;
    }

    .search-select .search-select-icon {
      color: #98a2b3;
    }

    .search-select-options {
      position: absolute;
      left: 0;
      right: 0;
      top: calc(100% + 6px);
      z-index: 3;
      display: none;
      max-height: 176px;
      overflow: auto;
      padding: 6px;
      border: 1px solid var(--line-strong);
      border-radius: 8px;
      background: #fff;
      box-shadow: 0 12px 28px rgba(31, 42, 68, .14);
    }

    .search-select.open .search-select-options {
      display: grid;
      gap: 4px;
    }

    .search-select-option {
      min-height: 34px;
      width: 100%;
      border: 0;
      border-radius: 6px;
      background: transparent;
      color: #344054;
      font: inherit;
      font-size: 13px;
      font-weight: 680;
      text-align: left;
      padding: 0 10px;
      cursor: pointer;
    }

    .search-select-option:hover {
      background: #f2f6ff;
      color: var(--primary);
    }

    .input.locked,
    .select-box.locked,
    .search-select.locked {
      color: #667085;
      background: #f8fafc;
    }

    input.input.locked,
    input.input:disabled {
      cursor: not-allowed;
      color: #667085;
      background: #f8fafc;
      -webkit-text-fill-color: #667085;
    }

    .search-select.locked input {
      color: #667085;
    }

    .share-input {
      position: relative;
    }

    .share-input .input {
      padding-right: 42px;
      font-weight: 760;
      color: var(--primary);
      font-variant-numeric: tabular-nums;
    }

    .share-input input.input:disabled {
      color: #667085;
      background: #f8fafc;
      -webkit-text-fill-color: #667085;
    }

    .unit {
      position: absolute;
      right: 13px;
      top: 50%;
      transform: translateY(-50%);
      color: #667085;
      font-size: 13px;
      font-weight: 740;
    }

    .drawer-foot {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 12px;
      padding: 0 28px;
      border-top: 1px solid #edf1f7;
      background: #fff;
    }

    .hidden { display: none !important; }

    @media (max-width: 1240px) {
      .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    }

    @media (max-width: 900px) {
      .app-shell { grid-template-columns: 1fr; }
      .sidebar { display: none; }
      .content { padding: 22px 16px; }
      .topbar { padding: 0 16px; }
      .metrics { grid-template-columns: 1fr; }
      .filter-grid { grid-template-columns: 1fr; }
      .filter-actions { justify-content: flex-start; }
      .drawer { width: 100vw; }
      .info-grid,
      .form-grid { grid-template-columns: 1fr; }
    }
