:root {
  --primary: #1677ff;
  --primary-hover: #4096ff;
  --primary-active: #0958d9;
  --primary-bg: #eaf3ff;
  --card-radius: 7px;
  --ncmm-ink: #172033;
  --ncmm-muted: #7f889a;
  --ncmm-line: #e6e9f0;
  --ncmm-coral: #ef4f5f;
  --bilibili-blue: #1677ff;
  --ncmm-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", sans-serif;
  --card-title-font: var(--ncmm-font);
}

html,
body,
.admin-layout,
.main-body {
  background: #f5f6fa;
}

body {
  color: var(--ncmm-ink);
  font-family: var(--ncmm-font);
}

button,
input,
select,
textarea,
dialog,
table {
  font-family: var(--ncmm-font);
}

.header {
  height: 62px;
  flex-basis: 62px;
  border-bottom: 1px solid var(--ncmm-line);
  padding-inline: 22px;
  background: rgba(255, 255, 255, 0.96);
}

.header-left strong {
  color: var(--ncmm-ink);
  font-family: var(--ncmm-font);
  font-size: 17px;
  font-weight: 760;
}

.sider {
  width: 240px;
  flex-basis: 240px;
  border-right: 1px solid var(--ncmm-line);
  padding-block: 12px 20px;
  background: #fff;
}

.platform-menu-block {
  margin: 0 10px 10px;
  padding: 0 0 8px;
  border: 1px solid transparent;
  border-radius: 7px;
}

.platform-menu-block .menu-group-title {
  height: 42px;
  margin: 0;
  padding-inline: 12px;
  color: var(--ncmm-ink);
  font-size: 14px;
  font-weight: 720;
  line-height: 42px;
}

.platform-menu-block[data-platform="netease"] .menu-group-title {
  color: #d83f4e;
  background: #fff4f5;
}

.platform-menu-block[data-platform="bilibili"] .menu-group-title {
  color: #1267d6;
  background: #eef6ff;
}

.platform-menu-block .menu-caret {
  opacity: 0.55;
}

.platform-menu-block .platform-brand-icon {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.platform-menu-block .menu-item.child {
  width: calc(100% - 12px);
  height: 38px;
  margin: 2px 6px;
  border-radius: 6px;
  padding-left: 42px;
  line-height: 38px;
}

.platform-menu-block[data-platform="netease"] .menu-item.active {
  color: #fff;
  background: var(--ncmm-coral);
}

.platform-menu-block[data-platform="bilibili"] .menu-item.active {
  color: #fff;
  background: var(--bilibili-blue);
}

.platform-menu-block[data-platform="netease"] .menu-item.active:hover {
  color: #fff;
  background: #df4351;
}

.platform-menu-block[data-platform="bilibili"] .menu-item.active:hover {
  color: #fff;
  background: #1267d6;
}

.content {
  min-width: 0;
  padding: 18px;
  background: #f5f6fa;
}

.page-title-card,
.stat-card,
.panel,
.config-card,
.log-card,
dialog,
.theme-detail-box {
  border-color: var(--ncmm-line);
  border-radius: 7px;
  box-shadow: 0 4px 16px rgba(39, 48, 68, 0.035);
}

.page-head h1,
.panel-head h2,
.content-card-head h2,
.config-card-head h3,
.log-card-head h3,
.stat-card,
.menu-group-title,
.menu-item {
  font-family: var(--ncmm-font);
}

/* Bilibili uses NCMM's glass-card hierarchy with a blue platform accent. */
[id^="user"][id$="View"]:not(#neteaseWorkspaceView) {
  --primary: var(--bilibili-blue);
  --primary-hover: #4096ff;
  --primary-active: #0958d9;
  --primary-bg: #eaf3ff;
  box-sizing: border-box;
  min-height: calc(100vh - 102px);
  overflow: hidden;
  padding: 0 20px 24px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(224, 239, 255, 0.88) 0%, rgba(247, 249, 253, 0.96) 46%, rgba(241, 246, 255, 0.9) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) > .page-title-card {
  min-height: 64px;
  margin: 0 -20px 18px;
  padding: 12px 22px;
  border: 0;
  border-bottom: 1px solid #dce4ef;
  border-radius: 0;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) > .page-title-card h1 {
  color: #111c32;
  font-size: 18px;
  font-weight: 760;
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) > .page-title-card p {
  margin-top: 2px;
  color: #66758c;
  font-size: 12px;
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .panel,
[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .stat-card,
[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .config-card,
[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .log-card,
[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .theme-detail-box {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px -28px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .panel-head,
[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .content-card-head {
  min-height: 64px;
  padding: 14px 20px;
  border-bottom-color: rgba(15, 23, 42, 0.08);
  background: transparent;
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .stats-grid {
  gap: 18px;
  margin-bottom: 20px;
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .stat-card {
  min-height: 124px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding: 18px 20px;
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .stat-card:hover {
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 20px 44px -28px rgba(22, 119, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .stat-card > div:first-child {
  width: 100%;
  min-width: 0;
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .stat-card > div:first-child > span {
  color: #56657b;
  font-size: 13px;
  font-weight: 650;
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .stat-card strong {
  margin: 8px 0 0;
  color: #111c32;
  font-size: 20px;
  font-weight: 760;
  line-height: 1.25;
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .stat-card .stat-trend {
  margin-top: 8px;
  color: #77869b;
  font-size: 12px;
  line-height: 1.5;
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .stat-icon {
  display: none;
}

.bili-dashboard-head {
  grid-template-columns: minmax(0, 1fr) auto !important;
}

.bili-icon-button {
  width: 36px;
  min-width: 36px !important;
  height: 36px !important;
  padding: 0 !important;
  display: inline-grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.bili-icon-button:hover {
  color: var(--bilibili-blue);
  background: rgba(255, 255, 255, 0.62);
}

.bili-icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.bili-dashboard-telemetry {
  min-height: 116px;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  padding: 16px 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 18px 42px -28px rgba(15, 23, 42, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.bili-dashboard-telemetry > .bili-official-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  object-fit: contain;
  image-rendering: auto;
}

.bili-telemetry-content {
  min-width: 0;
  display: grid;
  gap: 18px;
}

.bili-telemetry-line {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #66758c;
  font-size: 13px;
  line-height: 1.4;
}

.bili-telemetry-line > strong {
  color: #111c32;
  font-size: 15px;
  white-space: nowrap;
}

.bili-telemetry-line b,
.bili-telemetry-content > p strong {
  color: #111c32;
  font-weight: 720;
}

.bili-status-dot {
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  border-radius: 50%;
  background: #2aae67;
  box-shadow: 0 0 0 6px rgba(42, 174, 103, 0.12);
}

.bili-telemetry-divider {
  width: 1px;
  height: 18px;
  margin-inline: 4px;
  background: rgba(15, 23, 42, 0.16);
}

.bili-telemetry-content > p {
  margin: 0;
  color: #66758c;
  font-size: 13px;
}

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

.ncmm-stat-card .stat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ncmm-stat-card .stat-card-top > span {
  width: auto !important;
  min-width: 0;
}

.ncmm-stat-card > strong {
  margin: 0 !important;
}

.ncmm-stat-card > .stat-trend {
  margin-top: 0 !important;
}

.bili-metric-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 18px;
  white-space: nowrap;
}

.bili-metric-badge.blue {
  color: #1677c8 !important;
  background: rgba(14, 165, 233, 0.12);
}

.bili-metric-badge.green {
  color: #159957 !important;
  background: rgba(42, 174, 103, 0.12);
}

.bili-metric-badge.amber {
  color: #ad6800 !important;
  background: #fff4d6;
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) input:focus,
[id^="user"][id$="View"]:not(#neteaseWorkspaceView) select:focus,
[id^="user"][id$="View"]:not(#neteaseWorkspaceView) textarea:focus {
  border-color: #69a8ff;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
}

[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .mobile-empty-cell,
[id^="user"][id$="View"]:not(#neteaseWorkspaceView) .empty-cell {
  color: var(--ncmm-muted);
  background: #fff;
}

.table-panel {
  overflow: hidden;
}

.table-data-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-gutter: stable;
}

.table-data-scroll > table {
  margin: 0;
}

#themeRushTaskOrderText {
  display: block;
  max-width: 100%;
  overflow: hidden;
  font-size: 22px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.primary,
.page-action-button.primary {
  border-color: var(--bilibili-blue);
  background: var(--bilibili-blue);
  box-shadow: none;
}

.primary:hover,
.page-action-button.primary:hover {
  border-color: #1267d6;
  background: #1267d6;
}

/* Authentication stays neutral and uses one stable blue accent. */
.login-page {
  --primary: #1677ff;
  --primary-hover: #4096ff;
  --primary-active: #0958d9;
  --primary-bg: #eaf3ff;
  background: #f7f9fc;
}

.login-page .login-shell {
  border-color: #e1e7f0;
  background: #fff;
  box-shadow: 0 24px 60px rgba(31, 42, 68, 0.1);
}

.login-page .brand-panel {
  background: #f5f8fd;
}

.login-page .brand-panel::after {
  right: 22px;
  bottom: 20px;
  width: 250px;
  height: 250px;
  background-image: url("/static/brand/stickers/mengka-login-meme-head.png");
  background-size: contain;
}

.login-page .auth-tab.active {
  border-color: #91caff;
  color: #0958d9;
  background: #eaf3ff;
}

.login-page .auth-form .primary {
  border-color: #1677ff;
  background: #1677ff;
  box-shadow: none;
}

.login-page .auth-form .primary:hover {
  border-color: #1267d6;
  background: #1267d6;
}

/* At two-column widths the third metric should not leave a dead half-row. */
@media (min-width: 721px) and (max-width: 1040px) {
  #userThemeRushTasksView > .stats-grid .stat-card:last-child {
    grid-column: 1 / -1;
  }
}

.netease-workspace-view {
  width: 100%;
  height: calc(100vh - 98px);
  min-height: 620px;
  overflow: hidden;
  border: 1px solid var(--ncmm-line);
  border-radius: 7px;
  background: #fff;
}

.netease-workspace-view iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f7f8fc;
}

.admin-netease-view {
  min-width: 0;
}

.admin-netease-head {
  gap: 16px;
}

.admin-netease-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-netease-stats .stat-card {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding: 18px 20px;
}

.admin-netease-stats .stat-card-top {
  width: 100%;
}

.admin-netease-stats .stat-card > strong,
.admin-netease-stats .stat-card > .stat-trend {
  margin: 0;
}

.admin-netease-list-panel .table-data-scroll {
  min-width: 0;
}

.admin-netease-list-panel td {
  vertical-align: middle;
}

.admin-netease-user-name {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-netease-list-panel .row-actions button,
.admin-netease-detail-bar button {
  white-space: nowrap;
}

.admin-netease-detail-bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid var(--ncmm-line);
  border-radius: 7px;
  padding: 12px 14px;
  background: #fff;
}

.admin-netease-detail-bar > div {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.admin-netease-detail-bar strong,
.admin-netease-detail-bar span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-netease-detail-bar span {
  color: var(--muted);
  font-size: 12px;
}

.admin-netease-frame-shell {
  height: calc(100vh - 205px);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--ncmm-line);
  border-radius: 7px;
  background: #fff;
}

.admin-netease-frame-shell iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f7f8fc;
}

.admin-bili-view {
  min-width: 0;
  --primary: var(--bilibili-blue);
}

.admin-bili-head {
  gap: 16px;
}

.admin-bili-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.admin-bili-stats .stat-card {
  min-height: 124px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: 8px;
  padding: 18px 20px;
}

.admin-bili-overview-list {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-bili-account-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--ncmm-line);
  border-radius: 7px;
  background: #fff;
}

.admin-bili-account-main {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(130px, 0.45fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
}

.admin-bili-account-main .user-cell strong,
.admin-bili-account-main .user-cell span,
.admin-bili-owner span,
.admin-bili-owner strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bili-account-main .user-cell span,
.admin-bili-owner span {
  margin-top: 3px;
  color: var(--ncmm-muted);
  font-size: 12px;
}

.admin-bili-feature-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ncmm-line);
  background: #f8fbff;
}

.admin-bili-feature-strip > div {
  min-width: 0;
  display: grid;
  gap: 6px;
  padding: 12px 16px;
  border-right: 1px solid var(--ncmm-line);
}

.admin-bili-feature-strip > div:last-child {
  border-right: 0;
}

.admin-bili-feature-strip > div > span:first-child {
  color: var(--ncmm-muted);
  font-size: 12px;
  white-space: nowrap;
}

.admin-task-state {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #66758c;
  font-size: 13px;
  white-space: nowrap;
}

.admin-task-state i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #aab2c0;
}

.admin-task-state.running,
.admin-task-state.enabled {
  color: #137d49;
}

.admin-task-state.running i,
.admin-task-state.enabled i {
  background: #2aae67;
}

.admin-task-state.warning {
  color: #c2413a;
}

.admin-task-state.warning i {
  background: #ef4f5f;
}

.admin-bili-feature-strip small,
.admin-bili-task-table td small {
  min-width: 0;
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: var(--ncmm-muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bili-task-toolbar {
  gap: 16px;
}

.admin-bili-filters {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-bili-filters select,
.admin-bili-filters input {
  height: 36px;
  border: 1px solid var(--ncmm-line);
  border-radius: 7px;
  background: #fff;
  white-space: nowrap;
}

.admin-bili-filters select {
  width: 132px;
}

.admin-bili-filters input {
  width: 230px;
}

.admin-bili-task-table {
  width: 100%;
  table-layout: fixed;
}

.admin-bili-task-table th:first-child { width: 18%; }
.admin-bili-task-table th:nth-child(2) { width: 12%; }

.admin-bili-task-table td {
  min-width: 0;
  vertical-align: middle;
}

.admin-bili-task-table .admin-task-state span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-bili-empty {
  padding: 44px 18px;
  color: var(--ncmm-muted);
  text-align: center;
}

@media (max-width: 1100px) {
  .admin-bili-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .admin-bili-account-main {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .admin-bili-owner {
    display: none;
  }

  .admin-bili-feature-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-bili-feature-strip > div:nth-child(3) {
    border-right: 0;
  }

  .admin-bili-feature-strip > div:nth-child(n + 4) {
    border-top: 1px solid var(--ncmm-line);
  }

  .admin-bili-task-table,
  .admin-bili-task-table tbody {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .admin-bili-task-table thead {
    display: none;
  }

  .admin-bili-task-table tbody {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .admin-bili-task-table tbody tr {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
    border: 1px solid var(--ncmm-line);
    border-radius: 7px;
    padding: 14px;
    background: #fff;
  }

  .admin-bili-task-table td {
    width: auto;
    min-width: 0;
    display: grid;
    gap: 5px;
    border: 0;
    padding: 0;
  }

  .admin-bili-task-table td::before {
    color: var(--ncmm-muted);
    font-size: 11px;
    white-space: nowrap;
    content: attr(data-label);
  }

  .admin-bili-task-table .admin-primary-cell {
    grid-column: 1 / -1;
    border-bottom: 1px solid var(--ncmm-line);
    padding-bottom: 12px;
  }

  .admin-bili-task-table .admin-primary-cell::before,
  .admin-bili-task-table .admin-bili-empty::before {
    display: none;
  }

  .admin-bili-task-table .admin-bili-empty {
    grid-column: 1 / -1;
  }

  .admin-netease-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .admin-netease-list-panel {
    overflow: hidden;
  }

  .admin-netease-list-panel .table-data-scroll {
    overflow: visible;
  }

  .admin-netease-list-panel table,
  .admin-netease-list-panel tbody {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .admin-netease-list-panel thead {
    display: none;
  }

  .admin-netease-list-panel tbody {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .admin-netease-list-panel tbody tr {
    min-width: 0;
    display: grid;
    gap: 10px;
    border: 1px solid var(--ncmm-line);
    border-radius: 10px;
    padding: 14px;
    background: #fff;
  }

  .admin-netease-list-panel td {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 0;
    padding: 0;
  }

  .admin-netease-list-panel td::before {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    content: attr(data-label);
  }

  .admin-netease-list-panel .admin-primary-cell {
    display: block;
    border-bottom: 1px solid var(--ncmm-line);
    padding-bottom: 10px;
  }

  .admin-netease-list-panel .admin-primary-cell::before,
  .admin-netease-list-panel .admin-action-cell::before {
    display: none;
  }

  .admin-netease-list-panel .admin-action-cell,
  .admin-netease-list-panel .admin-action-cell .row-actions,
  .admin-netease-list-panel .admin-action-cell button {
    width: 100%;
  }
}

@media (max-width: 720px) {
  .header {
    height: 56px;
    flex-basis: 56px;
    padding-inline: 10px;
  }

  .header-left strong {
    font-size: 15px;
  }

  .sider {
    width: min(84vw, 300px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .content {
    padding: 10px;
  }

  .login-page .brand-panel::after {
    display: none;
  }

  .netease-workspace-view {
    height: calc(100dvh - 76px);
    min-height: 520px;
  }

  .admin-netease-head {
    align-items: stretch;
  }

  .admin-bili-head {
    align-items: stretch;
  }

  .admin-bili-head > button {
    width: 100%;
  }

  .admin-bili-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }

  .admin-bili-stats .stat-card {
    min-height: 116px;
    padding: 14px;
  }

  .admin-bili-overview-list {
    padding: 10px;
  }

  .admin-bili-account-main {
    gap: 10px;
    padding: 14px;
  }

  .admin-bili-feature-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-bili-feature-strip > div,
  .admin-bili-feature-strip > div:nth-child(3) {
    border-right: 1px solid var(--ncmm-line);
    border-top: 1px solid var(--ncmm-line);
  }

  .admin-bili-feature-strip > div:nth-child(odd) {
    border-right: 1px solid var(--ncmm-line);
  }

  .admin-bili-feature-strip > div:nth-child(even),
  .admin-bili-feature-strip > div:last-child {
    border-right: 0;
  }

  .admin-bili-feature-strip > div:nth-child(-n + 2) {
    border-top: 0;
  }

  .admin-bili-task-toolbar {
    align-items: stretch;
  }

  .admin-bili-filters {
    display: grid;
    grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr);
  }

  .admin-bili-filters select,
  .admin-bili-filters input {
    width: 100%;
    min-width: 0;
  }

  .admin-bili-task-table tbody tr {
    grid-template-columns: 1fr;
  }

  .admin-bili-task-table .admin-primary-cell,
  .admin-bili-task-table .admin-bili-empty {
    grid-column: auto;
  }

  .admin-netease-head > button {
    width: 100%;
  }

  .admin-netease-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 12px;
  }

  .admin-netease-stats .stat-card {
    min-height: 116px;
    padding: 14px;
  }

  .admin-netease-list-panel {
    overflow: hidden;
  }

  .admin-netease-list-panel .table-data-scroll {
    overflow: visible;
  }

  .admin-netease-list-panel table,
  .admin-netease-list-panel tbody {
    width: 100%;
    min-width: 0;
    display: block;
  }

  .admin-netease-list-panel thead {
    display: none;
  }

  .admin-netease-list-panel tbody {
    display: grid;
    gap: 10px;
    padding: 12px;
  }

  .admin-netease-list-panel tbody tr {
    min-width: 0;
    display: grid;
    gap: 10px;
    border: 1px solid var(--ncmm-line);
    border-radius: 10px;
    padding: 14px;
    background: #fff;
  }

  .admin-netease-list-panel td {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    border: 0;
    padding: 0;
  }

  .admin-netease-list-panel td::before {
    color: var(--muted);
    font-size: 12px;
    white-space: nowrap;
    content: attr(data-label);
  }

  .admin-netease-list-panel .admin-primary-cell {
    display: block;
    border-bottom: 1px solid var(--ncmm-line);
    padding-bottom: 10px;
  }

  .admin-netease-list-panel .admin-primary-cell::before,
  .admin-netease-list-panel .admin-action-cell::before {
    display: none;
  }

  .admin-netease-list-panel .admin-action-cell,
  .admin-netease-list-panel .admin-action-cell .row-actions,
  .admin-netease-list-panel .admin-action-cell button {
    width: 100%;
  }

  .admin-netease-detail-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
  }

  .admin-netease-detail-bar > div {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .admin-netease-detail-bar button {
    grid-row: 2;
  }

  .admin-netease-frame-shell {
    height: calc(100dvh - 230px);
    min-height: 480px;
  }

  [id^="user"][id$="View"]:not(#neteaseWorkspaceView) > .page-title-card {
    min-height: 58px;
    margin: 0 -12px 14px;
    padding: 12px 14px;
  }

  [id^="user"][id$="View"]:not(#neteaseWorkspaceView) .stat-card {
    min-height: 112px;
    padding: 16px;
  }

  [id^="user"][id$="View"]:not(#neteaseWorkspaceView) {
    min-height: calc(100dvh - 76px);
    padding: 0 12px 18px;
  }

  .bili-dashboard-telemetry {
    min-height: 0;
    align-items: flex-start;
    gap: 14px;
    padding: 16px;
  }

  .bili-dashboard-telemetry > .bili-official-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .bili-telemetry-content {
    gap: 12px;
  }

  .bili-telemetry-line {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .bili-telemetry-divider {
    display: none;
  }

  .bili-dashboard-stats {
    grid-template-columns: 1fr;
  }

  .table-data-scroll {
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .mobile-card-table .mobile-cell-value,
  .mobile-card-table .mobile-cell-stack > * {
    white-space: normal;
    overflow: visible;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  #userAccountsView tbody tr {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  #userAccountsView .account-cell {
    grid-column: 2;
  }

  #userAccountsView .action-cell {
    grid-column: 1 / -1;
    grid-row: auto;
    width: 100%;
    margin-top: 2px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  #userAccountsView .action-cell .row-actions {
    width: 100%;
    justify-content: flex-end;
  }

  #userAccountsView .state-cell,
  #userAccountsView .features-cell,
  #userAccountsView .channels-cell,
  #userAccountsView .listen-cell {
    grid-column: 1 / -1;
  }

  #userAccountsView .name-line {
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #themeRushTaskOrderText {
    font-size: 18px;
  }
}
