:root {
  --page: #f5f6fa;
  --surface: #ffffff;
  --surface-soft: #f8f9fc;
  --ink: #171a2b;
  --muted: #6c7287;
  --muted-strong: #4e556c;
  --line: #e6e8f0;
  --line-strong: #d9dce7;
  --brand: #5b5bd6;
  --brand-dark: #4848b8;
  --brand-soft: #eeeeff;
  --blue: #2f80ed;
  --blue-soft: #eaf3ff;
  --green: #1f9d68;
  --green-soft: #e9f8f1;
  --amber: #c47b13;
  --amber-soft: #fff5e5;
  --red: #d04444;
  --red-soft: #fff0f0;
  --shadow-sm: 0 1px 2px rgba(18, 23, 43, 0.04), 0 5px 16px rgba(18, 23, 43, 0.04);
  --shadow-lg: 0 30px 80px rgba(20, 24, 50, 0.22);
  --radius: 14px;
  --radius-sm: 9px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--page);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
}

svg {
  display: block;
  width: 1em;
  height: 1em;
  fill: currentColor;
}

[hidden] {
  display: none !important;
}

.boot-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  color: var(--muted);
  background: var(--page);
}

.boot-screen p {
  margin: 0;
  font-weight: 600;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #dedff0;
  border-top-color: var(--brand);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.eyebrow {
  display: block;
  margin-bottom: 9px;
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.68);
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #6c6ce6, #4b4bc4);
  box-shadow: 0 6px 16px rgba(91, 91, 214, 0.25);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.brand-mark-light {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 8px 25px rgba(24, 20, 84, 0.18);
}

.button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 0 16px;
  cursor: pointer;
  font-weight: 750;
  line-height: 1;
  transition: background 150ms ease, border-color 150ms ease, color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.button svg {
  width: 17px;
  height: 17px;
}

.button:not(:disabled):active {
  transform: translateY(1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button-primary {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 5px 12px rgba(91, 91, 214, 0.18);
}

.button-primary:not(:disabled):hover {
  background: var(--brand-dark);
  box-shadow: 0 7px 18px rgba(91, 91, 214, 0.25);
}

.button-secondary {
  border-color: #dadaf2;
  color: var(--brand-dark);
  background: #fff;
}

.button-secondary:not(:disabled):hover {
  border-color: #bfc0eb;
  background: var(--brand-soft);
}

.button-quiet {
  border-color: var(--line);
  color: var(--muted-strong);
  background: #fff;
}

.button-quiet:not(:disabled):hover {
  border-color: var(--line-strong);
  color: var(--ink);
  background: var(--surface-soft);
}

.button-danger {
  color: #fff;
  background: var(--red);
}

.button-danger:not(:disabled):hover {
  background: #b93636;
}

.button-full {
  width: 100%;
  min-height: 46px;
}

.button-compact {
  min-height: 36px;
  padding: 0 12px;
  font-size: 13px;
}

.button.loading span,
.icon-button.loading svg {
  opacity: 0.45;
}

.button.loading::before,
.icon-button.loading::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 15% 15%, rgba(91, 91, 214, 0.12), transparent 30%),
    radial-gradient(circle at 85% 80%, rgba(47, 128, 237, 0.08), transparent 28%),
    #f6f7fb;
}

.login-shell {
  width: min(980px, 100%);
  min-height: 590px;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  overflow: hidden;
  border: 1px solid rgba(220, 222, 235, 0.85);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 100px rgba(34, 36, 70, 0.15);
}

.login-intro {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 42px 46px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.2), transparent 24%),
    radial-gradient(circle at 20% 85%, rgba(108, 150, 255, 0.38), transparent 32%),
    linear-gradient(145deg, #25235f, #4947ba 62%, #5658cf);
}

.login-intro::before,
.login-intro::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.login-intro::before {
  width: 330px;
  height: 330px;
  right: -175px;
  top: 75px;
}

.login-intro::after {
  width: 190px;
  height: 190px;
  right: -80px;
  top: 145px;
}

.intro-brand,
.mobile-brand {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15px;
  font-weight: 800;
}

.intro-copy {
  position: relative;
  z-index: 1;
  max-width: 390px;
}

.intro-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.intro-copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  line-height: 1.8;
}

.intro-features {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
}

.intro-features span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  font-weight: 650;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 56px;
}

.mobile-brand {
  display: none;
  margin-bottom: 48px;
}

.login-heading {
  margin-bottom: 32px;
}

.login-heading h2 {
  margin: 0 0 10px;
  font-size: 30px;
  letter-spacing: -0.035em;
}

.login-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.field {
  display: block;
  margin-bottom: 20px;
}

.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 750;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.required-tag {
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 10px;
  letter-spacing: 0.03em;
}

.field input,
.field select,
.group-filter select,
.group-manager-name input,
.search-box input {
  width: 100%;
  min-width: 0;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0 13px;
  color: var(--ink);
  background: #fff;
  outline: 0;
  transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.field select,
.group-filter select {
  appearance: none;
  padding-right: 38px;
  background-image: linear-gradient(45deg, transparent 50%, #80869a 50%), linear-gradient(135deg, #80869a 50%, transparent 50%);
  background-position: calc(100% - 18px) 19px, calc(100% - 13px) 19px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.field input::placeholder,
.search-box input::placeholder {
  color: #a6aaba;
}

.field input:focus,
.field select:focus,
.group-filter select:focus,
.group-manager-name input:focus,
.search-box:focus-within {
  border-color: rgba(91, 91, 214, 0.68);
  box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.1);
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 62px;
}

.input-action {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 30px;
  border-radius: 6px;
  padding: 0 8px;
  color: var(--brand);
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 750;
  transform: translateY(-50%);
}

.input-action:hover {
  background: var(--brand-soft);
}

.field-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.55;
}

.form-error {
  margin: -4px 0 16px;
  border: 1px solid #ffd2d2;
  border-radius: 8px;
  padding: 10px 12px;
  color: #a62f2f;
  background: var(--red-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.session-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 12px;
}

.session-note svg {
  width: 14px;
  height: 14px;
  color: var(--green);
}

.dashboard-view {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: 98%;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 14px;
  letter-spacing: -0.01em;
}

.brand-copy small {
  color: var(--muted);
  font-size: 10px;
}

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

.workspace-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  background: var(--surface-soft);
}

.workspace-nav a {
  border-radius: 7px;
  padding: 8px 13px;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.workspace-nav a:hover {
  color: var(--ink);
}

.workspace-nav a.active {
  color: var(--brand-dark);
  background: #fff;
  box-shadow: 0 2px 7px rgba(18, 23, 43, 0.08);
}

.system-state {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.system-state i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

.dashboard {
  width: 98%;
  margin: 0 auto;
  padding: 28px 0 56px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.page-heading h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.04em;
}

.page-heading p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

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

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.summary-card {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.summary-icon {
  width: 40px;
  height: 40px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 12px;
}

.summary-icon svg {
  width: 21px;
  height: 21px;
}

.summary-icon-indigo { color: var(--brand); background: var(--brand-soft); }
.summary-icon-blue { color: var(--blue); background: var(--blue-soft); }
.summary-icon-green { color: var(--green); background: var(--green-soft); }
.summary-icon-amber { color: var(--amber); background: var(--amber-soft); }
.summary-icon-red { color: var(--red); background: var(--red-soft); }

.summary-card div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.summary-card strong {
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.summary-card div span {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
}

#totalPointsLabel {
  overflow: visible;
  line-height: 1.3;
  white-space: pre-line;
}

.accounts-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.proxy-summary-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.proxy-heading-actions {
  align-items: center;
}

.freshness-note {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.overview-alert {
  margin-bottom: 18px;
  border: 1px solid #ffd2d2;
  border-radius: 10px;
  padding: 11px 14px;
  color: #a62f2f;
  background: var(--red-soft);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.overview-warning {
  border-color: #f4d6a4;
  color: #8a5a0c;
  background: var(--amber-soft);
}

.proxy-health-panel {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(220px, 1fr) minmax(280px, 1.35fr);
  align-items: center;
  gap: 24px;
  margin-bottom: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 20px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.proxy-health-panel > div:first-child {
  display: grid;
  gap: 4px;
}

.proxy-health-panel span,
.proxy-health-panel p {
  color: var(--muted);
  font-size: 12px;
}

.proxy-health-panel strong {
  font-size: 15px;
}

.proxy-health-panel p {
  margin: 0;
  line-height: 1.55;
}

.health-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #eceef4;
}

.health-track i {
  width: 0;
  height: 100%;
  display: block;
  border-radius: inherit;
  background: linear-gradient(90deg, #27ad76, #5b5bd6);
  transition: width 220ms ease;
}

.proxy-panel-heading {
  align-items: flex-end;
}

.proxy-filters {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.proxy-filters select {
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 30px 0 10px;
  color: var(--muted-strong);
  background: #fff;
  outline: 0;
  font-size: 12px;
}

.proxy-filters select:focus {
  border-color: rgba(91, 91, 214, 0.68);
  box-shadow: 0 0 0 3px rgba(91, 91, 214, 0.1);
}

.proxy-filters .search-box {
  width: 220px;
}

.proxy-table {
  min-width: 900px;
}

.proxy-table th:nth-child(1) { width: 25%; }
.proxy-table th:nth-child(2) { width: 18%; }
.proxy-table th:nth-child(3) { width: 17%; }
.proxy-table th:nth-child(4) { width: 24%; }
.proxy-table th:nth-child(5) { width: 16%; }

.proxy-identity,
.proxy-server-meta,
.proxy-owner,
.proxy-check-time {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.proxy-identity strong,
.proxy-server-meta strong,
.proxy-owner strong,
.proxy-check-time strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proxy-identity span,
.proxy-server-meta span,
.proxy-owner span,
.proxy-check-time span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proxy-status-stack {
  display: grid;
  gap: 5px;
}

.proxy-status-stack small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.panel-heading {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 15px 20px;
}

.panel-heading h2 {
  margin: 0 0 5px;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

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

.bulk-schedule-tools {
  min-height: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 5px 0 11px;
  color: var(--muted-strong);
  background: var(--surface-soft);
  font-size: 11px;
  white-space: nowrap;
}

.bulk-schedule-tools strong {
  color: var(--primary);
  font-size: 13px;
}

.bulk-schedule-tools .button {
  min-height: 28px;
  padding: 0 9px;
}

.group-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px 16px;
  border-bottom: 1px solid var(--line);
  padding: 10px 20px;
  background: var(--surface-soft);
}

.group-filter,
.group-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.group-filter > span {
  flex-shrink: 0;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 700;
}

.group-filter select {
  width: 230px;
  min-width: 0;
  height: 38px;
  min-height: 38px;
}

.group-account-count,
.group-scope-note {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.group-scope-note {
  flex-basis: 100%;
  margin: 0;
}

.group-create-form {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.group-create-form .field {
  flex: 1;
  min-width: 160px;
  margin-bottom: 0;
}

.group-manager-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.group-manager-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: start;
  gap: 8px;
}

.group-manager-name {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.group-manager-name input {
  min-width: 0;
  height: 40px;
}

.group-manager-name small {
  color: var(--muted);
  font-size: 11px;
}

.group-manager-row .row-button {
  min-height: 40px;
}

.search-box {
  width: 240px;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  color: #969bad;
  background: var(--surface-soft);
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.search-box svg {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.search-box input {
  height: 36px;
  border: 0;
  padding: 0;
  background: transparent;
  box-shadow: none !important;
  font-size: 12px;
}

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

table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

th,
td {
  padding: 15px 18px;
  text-align: left;
  vertical-align: middle;
}

th {
  height: 44px;
  padding-top: 0;
  padding-bottom: 0;
  color: #888ea1;
  background: #fbfbfd;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

#accountsWorkspace table { min-width: 1320px; }
#accountsWorkspace th,
#accountsWorkspace td { padding-right: 12px; padding-left: 12px; }
#accountsWorkspace td { padding-top: 12px; padding-bottom: 12px; }
#accountsWorkspace th:nth-child(1) { width: 18%; }
#accountsWorkspace th:nth-child(2) { width: 8%; }
#accountsWorkspace th:nth-child(3) { width: 14%; }
#accountsWorkspace th:nth-child(4) { width: 11%; }
#accountsWorkspace th:nth-child(5) { width: 8%; }
#accountsWorkspace th:nth-child(6) { width: 9%; }
#accountsWorkspace th:nth-child(7) { width: 8%; }
#accountsWorkspace th:nth-child(8) { width: 6%; }
#accountsWorkspace th:nth-child(9) { width: 18%; }

.table-select-all,
.account-selector {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.table-select-all input,
.account-selector input {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--primary);
  cursor: pointer;
}

tbody tr {
  border-top: 1px solid var(--line);
  transition: background 120ms ease;
}

tbody tr:hover {
  background: #fcfcfe;
}

tbody tr.account-selected {
  background: #f7f7ff;
}

.align-right {
  text-align: right;
}

.account-cell {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.account-avatar {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 13px;
  font-weight: 850;
}

.account-meta,
.joined-date-meta,
.proxy-meta,
.schedule-meta,
.time-meta,
.stats-meta {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.account-meta strong,
.proxy-meta strong {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.joined-date-meta strong {
  overflow: hidden;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-meta span,
.proxy-meta span,
.time-meta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-meta strong {
  overflow: hidden;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-meta .account-group-badge {
  width: fit-content;
  max-width: 100%;
  border-radius: 5px;
  padding: 2px 6px;
  color: var(--brand-dark);
  background: var(--brand-soft);
  font-size: 10px;
}

.stats-meta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stats-meta .stats-error {
  color: var(--red);
}

.proxy-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.schedule-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.schedule-line strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-meta span {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.schedule-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 3px var(--amber-soft);
}

.schedule-dot.offline {
  background: #a7abbb;
  box-shadow: 0 0 0 3px #f0f1f5;
}

.proxy-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.proxy-dot.offline {
  background: #a7abbb;
  box-shadow: 0 0 0 3px #f0f1f5;
}

.status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
}

.status-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.status-neutral { color: #747a8f; background: #f0f1f5; }
.status-queued { color: #95620f; background: var(--amber-soft); }
.status-running { color: #286fca; background: var(--blue-soft); }
.status-success { color: #147a50; background: var(--green-soft); }
.status-failed { color: #b53737; background: var(--red-soft); }

.status-running::before {
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  50% { opacity: 0.32; transform: scale(0.75); }
}

.time-meta strong {
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.points-value {
  display: block;
  overflow: hidden;
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.points-value.empty {
  color: #a5a9b8;
  font-weight: 500;
}

.row-actions {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
}

.account-more {
  min-width: 0;
}

.account-more[open] {
  flex-basis: 100%;
}

.account-more-toggle {
  display: flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-left: auto;
  list-style: none;
}

.account-more-toggle::-webkit-details-marker {
  display: none;
}

.account-more-toggle::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.account-more[open] > .account-more-toggle::after {
  transform: translateY(2px) rotate(225deg);
}

.account-secondary-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px;
  background: var(--surface-soft);
}

.account-secondary-actions .row-button {
  min-width: 0;
  width: 100%;
}

.account-secondary-actions .row-button.danger {
  grid-column: 1 / -1;
  color: var(--red);
}

.account-more-toggle:focus-visible,
.row-button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.row-button {
  min-height: 32px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 9px;
  color: var(--muted-strong);
  background: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.row-button:hover {
  border-color: #cfd1e0;
  color: var(--ink);
  background: var(--surface-soft);
}

.row-button.primary {
  border-color: var(--brand);
  color: #fff;
  background: var(--brand);
}

.row-button.primary:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
}

.row-button.danger:hover {
  border-color: #f1c3c3;
  color: var(--red);
  background: var(--red-soft);
}

.row-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.empty-state {
  display: grid;
  min-height: 370px;
  place-items: center;
  align-content: center;
  padding: 40px 20px;
  text-align: center;
}

.empty-illustration {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--brand);
  background: var(--brand-soft);
}

.empty-illustration svg {
  width: 38px;
  height: 38px;
}

.empty-state h3 {
  margin: 18px 0 7px;
  font-size: 17px;
}

.empty-state p {
  max-width: 400px;
  margin: 0 0 20px;
  color: var(--muted);
  line-height: 1.65;
}

.modal {
  max-width: none;
  max-height: none;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
}

.modal::backdrop {
  background: rgba(19, 21, 39, 0.56);
  backdrop-filter: blur(4px);
}

.modal[open] {
  animation: modal-in 160ms ease-out;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); }
}

.modal-card {
  width: min(610px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 22px 24px 18px;
}

.modal-header h2 {
  margin: 0 0 5px;
  font-size: 20px;
  letter-spacing: -0.025em;
}

.modal-header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 8px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--ink);
  background: var(--surface-soft);
}

.icon-button svg {
  width: 18px;
  height: 18px;
}

.modal-body {
  max-height: min(62vh, 610px);
  overflow: auto;
  padding: 22px 24px 5px;
}

.account-modal .modal-body {
  max-height: min(72vh, 720px);
}

.form-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
}

.current-proxy {
  margin: -8px 0 19px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--muted-strong);
  background: var(--surface-soft);
  font-size: 12px;
  line-height: 1.5;
}

.schedule-settings {
  margin: 0 0 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: #fbfbfd;
}

.schedule-switch-row {
  width: fit-content;
}

.schedule-controls {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 12px;
  margin-top: 15px;
  transition: opacity 150ms ease;
}

.schedule-controls.disabled {
  opacity: 0.48;
}

.schedule-controls .field {
  margin-bottom: 0;
}

.daily-random-switch {
  margin-top: 14px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.random-window-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
  transition: opacity 150ms ease;
}

.random-window-controls.disabled {
  opacity: 0.48;
}

.random-window-controls .field {
  margin-bottom: 0;
}

.schedule-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 2px 0 18px;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 11px;
  cursor: pointer;
}

.switch-row > span:last-child {
  display: grid;
  gap: 3px;
}

.switch-row strong {
  font-size: 12px;
}

.switch-row small {
  color: var(--muted);
  font-size: 10px;
}

.switch {
  position: relative;
  width: 38px;
  height: 22px;
  flex: 0 0 auto;
}

.switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.switch i {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #ced1dc;
  transition: background 150ms ease;
}

.switch i::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(17, 20, 40, 0.25);
  transition: transform 150ms ease;
}

.switch input:checked + i {
  background: var(--brand);
}

.switch input:checked + i::after {
  transform: translateX(16px);
}

.switch input:focus-visible + i {
  box-shadow: 0 0 0 3px var(--brand-soft);
}

.inline-result {
  margin: -6px 0 18px;
  border-radius: 8px;
  padding: 10px 12px;
  color: #147a50;
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 650;
}

.inline-result.error {
  color: #ad3535;
  background: var(--red-soft);
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding: 15px 24px;
  background: #fbfbfd;
}

.random-schedule-modal .modal-card {
  width: min(540px, calc(100vw - 28px));
}

.random-range-grid {
  grid-template-columns: 1fr 1fr;
}

.random-daily-option {
  margin: 4px 0 18px;
}

.random-schedule-note {
  display: grid;
  gap: 4px;
  margin: 0 0 18px;
  border: 1px solid #dcdafa;
  border-radius: 10px;
  padding: 12px 14px;
  color: #504d82;
  background: #f7f6ff;
  font-size: 11px;
  line-height: 1.55;
}

.random-schedule-note strong {
  font-size: 12px;
}

.random-schedule-note p {
  margin: 0;
}

.run-modal {
  margin-right: 0;
  height: 100vh;
}

.run-modal[open] {
  animation: drawer-in 200ms ease-out;
}

@keyframes drawer-in {
  from { opacity: 0; transform: translateX(28px); }
}

.run-card {
  width: min(720px, calc(100vw - 20px));
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-radius: 18px 0 0 18px;
}

.run-header {
  align-items: center;
}

.run-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.run-metrics {
  display: grid;
  grid-template-columns: 1.1fr 0.6fr 0.7fr 1.2fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 16px 22px;
  background: #fbfbfd;
}

.run-metrics div {
  min-width: 0;
  display: grid;
  gap: 5px;
}

.run-metrics span,
.run-metrics a {
  color: var(--muted);
  font-size: 10px;
  font-weight: 650;
}

.run-metrics strong,
.run-metrics a {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-metrics strong {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.run-metrics a {
  color: var(--brand);
  font-size: 12px;
  text-decoration: none;
}

.run-metrics .run-pdf-metric {
  grid-column: 1 / -1;
  grid-template-columns: minmax(72px, 0.42fr) minmax(0, 2.58fr);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.run-metrics .run-pdf-controls {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.run-metrics .run-pdf-button {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 12px;
  font-weight: 750;
}

.run-metrics .run-pdf-controls small {
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.run-error {
  margin: 14px 20px 0;
  border: 1px solid #f4cccc;
  border-radius: 8px;
  padding: 10px 12px;
  color: #a83333;
  background: var(--red-soft);
  font-size: 12px;
  line-height: 1.55;
}

.log-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 11px;
}

.log-heading > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 12px;
  font-weight: 750;
}

.log-heading i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

.text-button {
  padding: 3px 0;
  color: var(--brand);
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}

.run-logs {
  min-height: 0;
  flex: 1;
  margin: 0 20px 20px;
  overflow: auto;
  border: 1px solid #242940;
  border-radius: 11px;
  padding: 16px;
  color: #d8deef;
  background: #141827;
  font: 12px/1.65 "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.confirm-card {
  width: min(410px, calc(100vw - 28px));
  padding: 28px;
  text-align: center;
}

.confirm-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 16px;
  color: var(--red);
  background: var(--red-soft);
}

.confirm-icon svg {
  width: 25px;
  height: 25px;
}

.confirm-card h2 {
  margin: 18px 0 8px;
  font-size: 20px;
}

.confirm-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 24px;
}

.toast-region {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1000;
  display: grid;
  gap: 9px;
  pointer-events: none;
}

.toast {
  min-width: 270px;
  max-width: min(390px, calc(100vw - 32px));
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--muted-strong);
  background: #fff;
  box-shadow: 0 16px 40px rgba(25, 28, 54, 0.16);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
  animation: toast-in 180ms ease-out;
}

.toast.error {
  border-left-color: var(--red);
}

.toast.info {
  border-left-color: var(--blue);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(8px); }
}

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

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

  .proxy-health-panel {
    grid-template-columns: 0.65fr 1fr;
  }

  .proxy-health-panel p {
    grid-column: 1 / -1;
  }

  table {
    min-width: 1420px;
  }

  .login-shell {
    grid-template-columns: 1fr 0.92fr;
  }

  .login-intro,
  .login-card {
    padding-left: 36px;
    padding-right: 36px;
  }
}

@media (max-width: 760px) {
  .login-view {
    padding: 0;
    background: #fff;
  }

  .login-shell {
    min-height: 100vh;
    display: block;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .login-intro {
    display: none;
  }

  .login-card {
    min-height: 100vh;
    justify-content: center;
    padding: 36px 24px;
  }

  .mobile-brand {
    display: flex;
  }

  .header-inner,
  .dashboard {
    width: 98%;
  }

  .header-inner {
    height: 62px;
  }

  .brand-copy small,
  .system-state,
  #logoutButton span {
    display: none;
  }

  .brand-copy {
    display: none;
  }

  .workspace-nav {
    margin-right: auto;
  }

  .workspace-nav a {
    min-width: 52px;
    padding-right: 10px;
    padding-left: 10px;
    text-align: center;
    font-size: 0;
  }

  .workspace-nav a::after {
    content: attr(data-short);
    font-size: 11px;
  }

  #logoutButton {
    width: 38px;
    min-height: 38px;
    padding: 0;
  }

  .dashboard {
    padding-top: 20px;
  }

  .page-heading {
    display: block;
  }

  .page-heading h1 {
    font-size: 26px;
  }

  .heading-actions {
    margin-top: 14px;
  }

  .heading-actions .button {
    flex: 1;
  }

  .summary-grid {
    gap: 10px;
  }

  .summary-card {
    gap: 11px;
    padding: 12px;
  }

  .summary-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }

  .summary-card strong {
    font-size: 20px;
  }

  .panel-heading {
    display: block;
    padding: 14px;
  }

  .account-list-tools {
    align-items: stretch;
    flex-direction: column;
    margin-top: 14px;
  }

  .bulk-schedule-tools {
    width: 100%;
    justify-content: space-between;
  }

  .account-list-tools .search-box {
    margin-top: 0;
  }

  .group-toolbar {
    padding: 10px 14px;
  }

  .group-filter {
    width: 100%;
  }

  .group-filter select {
    flex: 1;
    width: auto;
  }

  .group-toolbar-actions {
    width: 100%;
    justify-content: space-between;
  }

  .proxy-panel-heading {
    display: block;
  }

  .proxy-filters {
    display: grid;
    grid-template-columns: 1fr 1fr;
    margin-top: 14px;
  }

  .proxy-filters .search-box {
    width: 100%;
    grid-column: 1 / -1;
    margin-top: 0;
  }

  .proxy-health-panel {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .proxy-health-panel p {
    grid-column: auto;
  }

  .search-box {
    width: 100%;
    margin-top: 14px;
  }

  .table-wrap {
    overflow: visible;
    padding: 0 14px 14px;
  }

  table,
  tbody,
  tr,
  td {
    display: block;
    width: 100%;
  }

  table {
    min-width: 0;
  }

  #accountsWorkspace table {
    min-width: 0;
  }

  #accountsWorkspace td {
    min-width: 0;
    padding: 0;
  }

  #accountsWorkspace tbody tr {
    grid-template-areas:
      "identity identity"
      "joined status"
      "connection connection"
      "schedule schedule"
      "time time"
      "counts points"
      "actions actions";
  }

  #accountsWorkspace td[data-label="账号"] { grid-area: identity; }
  #accountsWorkspace td[data-label="加入时间"] { grid-area: joined; }
  #accountsWorkspace td[data-label="连接方式"] { grid-area: connection; }
  #accountsWorkspace td[data-label="定时签到"] { grid-area: schedule; }
  #accountsWorkspace td[data-label="最近状态"] { grid-area: status; }
  #accountsWorkspace td[data-label="任务时间"] { grid-area: time; }
  #accountsWorkspace td[data-label="应助 / 求助"] { grid-area: counts; }
  #accountsWorkspace td[data-label="当前积分"] { grid-area: points; }
  #accountsWorkspace td[data-label="操作"] { grid-area: actions; }

  thead {
    display: none;
  }

  tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 3px 12px rgba(23, 26, 43, 0.035);
  }

  tbody tr:hover {
    background: #fff;
  }

  td {
    padding: 0;
  }

  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 7px;
    color: #969bad;
    font-size: 10px;
    font-weight: 750;
  }

  td:first-child,
  #accountsWorkspace td[data-label="连接方式"],
  #proxyWorkspace td[data-label="代理服务器"],
  td:last-child {
    grid-column: 1 / -1;
  }

  td:first-child::before {
    display: none;
  }

  td:last-child {
    border-top: 1px solid var(--line);
    padding-top: 13px;
  }

  .row-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-content: flex-start;
    gap: 8px;
  }

  .row-actions > .account-more[open] {
    grid-column: 1 / -1;
  }

  .row-actions > .row-button,
  .account-more-toggle,
  .account-secondary-actions .row-button {
    min-width: 0;
    min-height: 40px;
    padding-right: 6px;
    padding-left: 6px;
  }

  .account-more-toggle {
    width: 100%;
  }

  #accountsWorkspace td[data-label="定时签到"],
  #accountsWorkspace td[data-label="任务时间"] {
    grid-column: 1 / -1;
  }

  #accountsWorkspace td[data-label="操作"] {
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }

  .row-button {
    flex: 1;
  }

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

  .random-range-grid,
  .random-window-controls {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

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

  .schedule-controls {
    grid-template-columns: 1fr;
  }

  .modal-card {
    width: calc(100vw - 18px);
    border-radius: 15px;
  }

  .modal-header,
  .modal-body,
  .modal-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .run-card {
    width: 100vw;
    border-radius: 0;
  }

  .run-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .run-metrics div:nth-child(n + 3) {
    grid-column: 1 / -1;
  }

  .run-header-actions .status-badge {
    display: none;
  }

  .run-logs {
    margin-right: 12px;
    margin-left: 12px;
  }

  .toast-region {
    right: 16px;
    bottom: 16px;
    left: 16px;
  }

  .toast {
    min-width: 0;
    max-width: none;
  }
}

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

  #accountsWorkspace .summary-grid > .summary-card:last-child {
    grid-column: 1 / -1;
  }

  .summary-card {
    align-items: center;
    flex-direction: row;
  }

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

  #addAccountButton {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  #accountsWorkspace tbody tr {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 12px;
    padding: 14px;
  }

  #accountsWorkspace td[data-label="账号"],
  #accountsWorkspace td[data-label="连接方式"],
  #accountsWorkspace td[data-label="定时签到"],
  #accountsWorkspace td[data-label="任务时间"],
  #accountsWorkspace td[data-label="操作"] {
    grid-column: 1 / -1;
  }

  .row-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  tbody tr {
    grid-template-columns: 1fr;
  }

  td,
  td:first-child,
  #proxyWorkspace td[data-label="代理服务器"],
  td:last-child {
    grid-column: 1;
  }

  .row-button {
    min-width: calc(50% - 4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
