:root {
  color-scheme: light;
  --bg: #f5f5f5;
  --surface: #fff;
  --text: rgba(0, 0, 0, 0.88);
  --muted: rgba(0, 0, 0, 0.45);
  --line: #f0f0f0;
  --border: #d9d9d9;
  --primary: #1677ff;
  --primary-hover: #4096ff;
  --primary-active: #0958d9;
  --primary-bg: #e6f4ff;
  --success: #52c41a;
  --danger: #ff4d4f;
  --warning: #faad14;
  --shadow-card: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
  --shadow-pop: 0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 3px 6px -4px rgba(0, 0, 0, 0.12), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 320px;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
  line-height: 1.5715;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

button,
input {
  font: inherit;
}

button {
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 15px;
  color: var(--text);
  background: #fff;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.02);
  cursor: pointer;
  user-select: none;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s, opacity 0.2s;
}

button:hover {
  border-color: var(--primary-hover);
  color: var(--primary-hover);
}

button:active {
  border-color: var(--primary-active);
  color: var(--primary-active);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.primary {
  border-color: var(--primary);
  color: #fff;
  background: var(--primary);
  box-shadow: 0 2px 0 rgba(5, 145, 255, 0.1);
}

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

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

.danger {
  border-color: #ffccc7;
  color: var(--danger);
}

.danger:hover {
  border-color: #ffa39e;
  color: #ff7875;
}

.hidden {
  display: none !important;
}

h1,
h2,
p {
  margin: 0;
  letter-spacing: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 11px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input,
select {
  height: 32px;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--primary-hover);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
}

.plain-select {
  width: auto;
  min-width: 180px;
}

.jury-auto-time {
  width: 100%;
  min-width: 180px;
}

.time-picker-field {
  position: relative;
  cursor: pointer;
}

.time-picker-field.disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.time-picker-selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.time-picker-selects .plain-select {
  min-width: 0;
  width: 100%;
}

label {
  display: grid;
  gap: 8px;
}

label span,
.secret-line span {
  color: var(--muted);
  font-size: 14px;
}

.login-page {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(170deg, #edf7ff 0%, #f7fbff 45%, #fff 100%);
}

.login-shell {
  position: relative;
  z-index: 1;
  width: 860px;
  max-width: 100%;
  min-height: 520px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid rgba(157, 209, 255, 0.6);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(56, 125, 188, 0.16);
  backdrop-filter: blur(16px);
}

.brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  color: #0f3b63;
  background: linear-gradient(145deg, rgba(136, 198, 255, 0.34), rgba(198, 230, 255, 0.18));
}

.brand-logo {
  width: 104px;
  height: 104px;
  margin-bottom: 18px;
  object-fit: contain;
}

.brand-panel h1 {
  font-size: 34px;
  letter-spacing: 0.5px;
}

.brand-panel p {
  margin: 8px 0 0;
  color: #2f628f;
  font-size: 15px;
}

.brand-panel span {
  width: fit-content;
  margin-top: 18px;
  border-radius: 999px;
  padding: 7px 12px;
  color: #43739b;
  background: rgba(255, 255, 255, 0.74);
  font-size: 13px;
}

.login-form {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 48px 42px 36px;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 4px;
}

.auth-tab {
  min-width: 0;
  height: 40px;
  border-radius: 10px;
}

.auth-tab.active {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-bg);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form input {
  height: 40px;
  border-color: #c8e5ff;
  border-radius: 12px;
}

.auth-form input:hover {
  border-color: #85c8ff;
}

.auth-form input:focus {
  border-color: #5aaeff;
  box-shadow: 0 0 0 3px rgba(90, 174, 255, 0.16);
}

.auth-form .primary {
  height: 40px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #6bbcff, #4eaaf9);
  box-shadow: 0 8px 20px rgba(78, 170, 249, 0.3);
}

.login-form h2 {
  color: #0f3b63;
  font-size: 26px;
}

.check-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.check-line input {
  width: 16px;
  height: 16px;
}

.form-link-line {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.text-link {
  height: auto;
  min-height: 0;
  border: 0;
  border-radius: 0;
  padding: 0;
  color: var(--primary);
  background: transparent;
  box-shadow: none;
}

.text-link:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

.admin-layout {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.header {
  height: 64px;
  flex: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
  z-index: 5;
}

.header-left,
.header-right,
.button-row,
.panel-head,
.secret-line,
.page-head {
  display: flex;
  align-items: center;
}

.header-left {
  gap: 16px;
}

.header-left strong {
  font-size: 18px;
  font-weight: 800;
  background: linear-gradient(135deg, #1677ff 0%, #722ed1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(22, 119, 255, 0.3));
  letter-spacing: 1px;
}

.app-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.header-right {
  position: relative;
}

.user-dropdown-wrap {
  position: relative;
}

.user-btn {
  height: 32px;
  min-width: 110px;
  justify-content: flex-start;
  gap: 8px;
  border: none !important;
  padding: 0 10px;
  background: transparent;
  box-shadow: none !important;
}

.user-btn:hover {
  color: var(--primary);
  background: transparent;
}

.user-avatar {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
}

.user-avatar svg {
  width: 15px;
  height: 15px;
}

.user-avatar .anticon {
  width: 15px;
  height: 15px;
  font-size: 15px;
}

.user-btn-text {
  flex: 1;
  overflow: hidden;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 110px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-pop);
  z-index: 20;
}

.dropdown-item {
  width: 100%;
  height: 32px;
  justify-content: flex-start;
  border: 0;
  padding: 5px 12px;
  box-shadow: none;
}

.dropdown-item:hover {
  color: var(--primary);
  background: #f5f5f5;
}

.dropdown-icon,
.stat-icon svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dropdown-icon {
  width: 14px;
  height: 14px;
  display: inline-grid;
  place-items: center;
}

.dropdown-icon svg {
  width: 14px;
  height: 14px;
}

.dropdown-icon .anticon {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.dropdown-icon .anticon svg,
.user-avatar .anticon svg {
  fill: currentColor;
  stroke: none;
}

.main-body {
  min-height: 0;
  flex: 1;
  display: flex;
  overflow: hidden;
}

.sider {
  width: 220px;
  flex: 0 0 220px;
  border-right: 1px solid var(--line);
  background: #fff;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.02);
}

.menu-block {
  padding: 4px 0;
}

.menu-group-title,
.menu-item {
  width: calc(100% - 8px);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  margin: 4px;
  border: 0;
  border-radius: 8px;
  padding: 0 24px;
  color: var(--text);
  font-size: 14px;
  font-weight: 400;
  line-height: 40px;
  background: transparent;
  box-shadow: none;
  text-align: left;
  transition: color 0.2s, background 0.2s;
}

.menu-group-title {
  cursor: default;
}

.menu-item:hover,
.menu-group-title:hover {
  color: var(--primary);
  background: #f5f5f5;
}

.menu-item.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.menu-item.active:hover {
  background: var(--primary-bg);
}

.menu-children {
  padding: 4px 0 8px;
  background: #fafafa;
}

.menu-item.child {
  padding-left: 52px;
}

.menu-item.child:hover {
  color: var(--text);
  background: #eee;
}

.menu-item.child.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.menu-icon,
.menu-caret {
  display: inline-grid;
  place-items: center;
  color: currentColor;
}

.menu-icon {
  width: 14px;
  height: 40px;
  flex: 0 0 14px;
  margin-inline-end: 10px;
}

.menu-caret {
  width: 12px;
  height: 12px;
  margin-left: auto;
  color: var(--text);
}

.anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.menu-icon .anticon {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.menu-caret .anticon {
  width: 12px;
  height: 12px;
  font-size: 12px;
}

.content {
  min-width: 0;
  flex: 1;
  overflow: auto;
  margin: 24px;
}

.view {
  max-width: none;
}

.page-head {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.page-title-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 24px;
  background: var(--surface);
}

.page-head h1 {
  font-size: 20px;
  font-weight: 600;
}

.page-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.stat-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

.stat-card {
  min-height: 148px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.stat-card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-card);
}

.stat-card span {
  color: #999;
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin: 8px 0;
  color: rgba(0, 0, 0, 0.88);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--success);
  font-size: 12px;
}

.stat-trend.down {
  color: var(--danger);
}

.stat-icon {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 24px;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
}

.stat-icon.users,
.stat-icon.accounts {
  color: var(--primary);
  background: var(--primary-bg);
}

.stat-icon.push {
  color: var(--success);
  background: #f6ffed;
}

.panel {
  overflow: hidden;
}

.panel:hover {
  box-shadow: none;
}

.panel-head {
  justify-content: space-between;
  min-height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2 {
  font-size: 16px;
  font-weight: 600;
}

.content-card-head {
  min-height: 72px;
  gap: 16px;
  padding: 16px 24px;
  background: #fff;
}

.content-card-head h2 {
  margin: 0;
}

.content-card-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.card-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 16px 24px;
}

.toolbar-left,
.toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.batch-dropdown-wrap {
  position: relative;
}

.batch-menu {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  min-width: 126px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-pop);
  z-index: 10;
}

.batch-menu-item {
  width: 100%;
  height: 32px;
  justify-content: flex-start;
  border: 0;
  padding: 5px 12px;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.batch-menu-item:hover {
  background: #f5f5f5;
}

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

.danger-text:hover {
  color: #ff7875;
}

.caret-down {
  color: rgba(0, 0, 0, 0.45);
  font-size: 12px;
}

.search-field {
  position: relative;
  display: block;
  width: 240px;
}

.search-field input {
  padding-left: 30px;
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  width: 14px;
  height: 14px;
  color: rgba(0, 0, 0, 0.45);
  transform: translateY(-50%);
  z-index: 1;
}

.search-icon svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.accounts-grid {
  display: block;
}

.jury-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 16px;
  margin-bottom: 16px;
}

.hardcore-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  margin-bottom: 16px;
}

.theme-rush-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
  gap: 16px;
  margin-bottom: 16px;
}

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

.theme-rush-form .checkbox-line {
  align-self: end;
  display: flex;
  min-height: 32px;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 11px;
  background: #fff;
}

.theme-rush-form .checkbox-line input[type="checkbox"] {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  padding: 0;
  accent-color: var(--primary);
}

.theme-rush-form .checkbox-line span {
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
}

.theme-rush-form .checkbox-line small {
  margin-left: auto;
  text-align: right;
}

.theme-rush-form .checkbox-line.hidden {
  display: none;
}

.theme-rush-time-field {
  gap: 8px;
}

.theme-rush-time-picker {
  display: grid;
  grid-template-columns: minmax(96px, 1.05fr) repeat(5, minmax(72px, 0.75fr));
  gap: 8px;
}

.theme-rush-time-picker select {
  min-width: 0;
  height: 36px;
}

.theme-presale-panel {
  overflow: auto;
}

.theme-presale-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-presale-actions .plain-select {
  width: 120px;
}

.theme-presale-table {
  min-width: 960px;
}

.theme-presale-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.theme-presale-item img,
.theme-presale-cover {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border-radius: 6px;
  object-fit: cover;
  background: #f1f5f9;
}

.theme-presale-cover {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 13px;
}

.theme-presale-item .name-line {
  max-width: 360px;
  overflow-wrap: anywhere;
}

.theme-detail-box {
  min-height: 128px;
  margin: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  background: #f8fafc;
  overflow-wrap: anywhere;
}

.theme-detail-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 700;
}

.theme-detail-grid {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
}

.theme-detail-grid span {
  color: var(--muted);
}

.theme-detail-grid strong {
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.hardcore-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  padding: 16px 16px 0;
}

.hardcore-category {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.hardcore-captcha-row {
  display: grid;
  grid-template-columns: 160px minmax(120px, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 16px;
}

.hardcore-captcha-image {
  width: 160px;
  height: 72px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.hardcore-ai-box {
  margin: 0 16px 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7faff;
}

.hardcore-ai-box p {
  margin: 6px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.hardcore-actions {
  margin: 0 16px 16px;
}

.hardcore-auth-body {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
}

.hardcore-auth-dialog {
  width: min(360px, calc(100% - 28px));
}

.hardcore-auth-qr {
  display: block;
  width: 220px;
  height: 220px;
  max-width: 100%;
  object-fit: contain;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.hardcore-auth-body .sub-line {
  max-width: 280px;
  margin: 0;
  line-height: 1.6;
}

.jury-case-content {
  min-height: 300px;
  padding: 22px 24px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.jury-options {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.jury-option {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.jury-option:hover {
  border-color: var(--primary-hover);
  box-shadow: 0 2px 8px rgba(22, 119, 255, 0.08);
}

.jury-option.recommend {
  border-color: #ffe58f;
  background: #fffbe6;
}

.jury-option.selected {
  border-color: var(--primary);
  background: var(--primary-bg);
}

.jury-option-index {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 700;
}

.jury-option-title {
  font-weight: 600;
}

.jury-option-sub,
.jury-record-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.jury-option button {
  white-space: nowrap;
}

.jury-opinions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  padding: 16px 24px 20px;
}

.jury-opinion-card {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fff;
}

.jury-opinion-card strong {
  display: block;
  margin-bottom: 6px;
}

.jury-opinion-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.jury-vote-form {
  display: grid;
  gap: 16px;
}

.table-panel {
  margin-bottom: 16px;
  overflow: auto;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: separate;
  border-spacing: 0;
}

#userAccountsView table {
  min-width: 560px;
}

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

.selection-col {
  width: 42px;
  text-align: center;
}

.table-checkbox {
  position: relative;
  width: 16px !important;
  min-width: 16px;
  max-width: 16px;
  height: 16px !important;
  min-height: 16px;
  max-height: 16px;
  display: inline-block;
  margin: 0;
  padding: 0 !important;
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  box-shadow: none;
  cursor: pointer;
  line-height: 16px;
  vertical-align: middle;
  transition: all 0.2s;
}

.table-checkbox:hover {
  border-color: var(--primary);
}

.table-checkbox:checked {
  border-color: var(--primary);
  background: var(--primary);
}

.table-checkbox:checked::after {
  position: absolute;
  top: 1px;
  left: 4px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  content: "";
  transform: rotate(45deg);
}

.table-checkbox:indeterminate {
  border-color: var(--primary);
  background: var(--primary);
}

.table-checkbox:indeterminate::after {
  position: absolute;
  left: 3px;
  top: 6px;
  width: 8px;
  height: 2px;
  background: #fff;
  content: "";
}

.empty-cell {
  height: 160px;
  color: var(--muted);
  text-align: center;
}

th {
  color: var(--text);
  font-weight: 600;
  background: #fafafa;
}

tbody tr {
  transition: background 0.2s;
}

tbody tr:hover {
  background: #fafafa;
}

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

.avatar,
.avatar-fallback {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 50%;
}

.avatar {
  background: var(--primary-bg);
  object-fit: cover;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--primary);
  background: var(--primary-bg);
  font-size: 13px;
  font-weight: 700;
}

.name-line {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.sub-line {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.tag {
  display: inline-block;
  min-height: 22px;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  padding: 0 7px;
  color: rgba(0, 0, 0, 0.65);
  background: #fafafa;
  font-size: 12px;
  line-height: 20px;
}

.tag.running {
  border-color: #b7eb8f;
  color: #389e0d;
  background: #f6ffed;
}

.tag.stopped {
  border-color: #ffa39e;
  color: #cf1322;
  background: #fff1f0;
}

.tag.warning {
  border-color: #ffe58f;
  color: #d48806;
  background: #fffbe6;
}

.row-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.common-upgrade-auto-status {
  flex: 1 1 100%;
  margin-top: 2px;
  line-height: 1.5;
}

.common-upgrade-head {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto;
  align-items: start;
}

.common-upgrade-toolbar {
  display: grid;
  grid-template-columns: 180px 88px 116px 180px 88px;
  align-items: center;
  justify-content: end;
  width: max-content;
}

.common-upgrade-toolbar .plain-select,
.common-upgrade-toolbar button {
  width: 100%;
  min-width: 0;
}

.common-upgrade-toolbar #runCommonUpgradeBtn {
  min-width: 116px;
}

.common-upgrade-toolbar #commonUpgradeAutoBtn {
  min-width: 88px;
}

.common-upgrade-toolbar .common-upgrade-auto-status {
  grid-column: 1 / -1;
  min-width: 0;
  max-width: 660px;
  overflow-wrap: anywhere;
}

.common-upgrade-coin-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.common-upgrade-coin-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.common-upgrade-coin-switch .switch-track {
  position: relative;
  flex: 0 0 38px;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #d9d9d9;
  transition: background 0.16s ease;
}

.common-upgrade-coin-switch .switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease;
}

.common-upgrade-coin-switch input:checked + .switch-track {
  background: var(--success);
}

.common-upgrade-coin-switch input:checked + .switch-track::after {
  transform: translateX(16px);
}

.common-upgrade-coin-switch input:disabled + .switch-track {
  opacity: 0.55;
}

.table-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  color: var(--primary);
  background: #fff;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
}

.table-action-link:hover {
  color: #fff;
  background: var(--primary);
  text-decoration: none;
}

.action-icon-btn {
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  color: rgba(0, 0, 0, 0.88);
  background: transparent;
  box-shadow: none;
}

.action-icon-btn:hover {
  color: var(--primary);
  background: rgba(0, 0, 0, 0.04);
}

.action-icon-btn .anticon {
  width: 14px;
  height: 14px;
  font-size: 14px;
}

.account-dialog-head {
  align-items: flex-start;
  padding: 18px 24px;
}

.dialog-title-group h2 {
  margin: 0;
}

.dialog-title-group p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.dialog-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-form {
  padding: 20px 24px 0;
}

.account-config-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.82fr) minmax(320px, 1.18fr);
  gap: 16px;
}

.config-card,
.log-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.config-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 18px;
}

.config-card-head,
.log-card-head {
  display: grid;
  gap: 4px;
}

.config-card-head h3,
.log-card-head h3 {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.config-card-head p,
.log-card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.secret-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fafafa;
}

.secret-line div {
  min-width: 0;
}

.secret-line span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.secret-line strong {
  display: block;
  margin-top: 3px;
  color: rgba(0, 0, 0, 0.72);
  font-size: 13px;
  font-weight: 400;
  overflow-wrap: anywhere;
}

.account-action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding: 16px 0 18px;
}

.push-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 16px;
  margin-bottom: 16px;
}

.push-config-form {
  display: grid;
  gap: 16px;
  padding: 18px 24px 24px;
}

.push-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 24px 24px;
}

.records-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.records-controls .plain-select {
  min-width: 116px;
}

.pager-text {
  min-width: 82px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.logs {
  display: grid;
}

.log-card {
  margin: 0 24px 24px;
}

.log-card-head {
  border-bottom: 1px solid var(--line);
  padding: 14px 18px;
}

.account-logs {
  max-height: 220px;
  overflow: auto;
  padding: 0 18px;
}

.theme-rush-logs {
  max-height: 320px;
}

.log-item {
  display: grid;
  grid-template-columns: 142px 70px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}

.log-time,
.log-detail {
  color: var(--muted);
  font-size: 12px;
}

.log-level {
  width: fit-content;
  border-radius: 4px;
  padding: 0 7px;
  color: #fff;
  background: #8c8c8c;
  font-size: 12px;
  line-height: 20px;
}

.log-level.info {
  background: var(--primary);
}

.log-level.success {
  background: var(--success);
}

.log-level.error {
  background: var(--danger);
}

.log-level.warning {
  background: var(--warning);
}

.log-message {
  min-width: 0;
  overflow-wrap: anywhere;
}

.icon-btn {
  width: 32px;
  padding: 0;
  font-size: 18px;
}

.mobile-only {
  display: none;
}

dialog {
  width: min(420px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  color: var(--text);
  background: #fff;
  box-shadow: var(--shadow-pop);
}

.account-config-dialog {
  width: min(920px, calc(100% - 40px));
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.dialog-head {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
}

.dialog-head h2 {
  font-size: 16px;
  font-weight: 600;
}

.modal-body {
  padding: 24px 24px 8px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 10px 24px 24px;
}

.inline-actions {
  padding: 0;
}

.ai-config-panel {
  min-width: 0;
}

.ai-config-form {
  max-width: none;
}

.ai-config-form .plain-select {
  width: 100%;
  min-width: 0;
}

.ai-config-layout {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(360px, 1fr);
  gap: 16px;
}

.ai-base-preview {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #f8fafc;
}

.ai-base-preview span {
  color: var(--muted);
  font-size: 12px;
}

.ai-base-preview strong {
  overflow-wrap: anywhere;
  color: var(--primary);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  font-weight: 600;
}

.ai-doc-panel {
  min-width: 0;
}

.ai-doc-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.ai-doc-note {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.ai-doc-note span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--primary);
  font-size: 12px;
}

.ai-doc-note p {
  margin: 2px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.ai-doc-note code,
.ai-code-preview {
  font-family: Consolas, "Courier New", monospace;
}

.ai-code-preview {
  max-width: 100%;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 14px;
  color: #1f2937;
  background: #f8fafc;
  font-size: 12px;
  line-height: 1.65;
}

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

.ai-endpoint-grid span {
  overflow: hidden;
  border: 1px solid #e3e5e7;
  border-radius: 6px;
  padding: 8px 10px;
  color: #4b5563;
  background: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bili-login-dialog {
  width: min(820px, calc(100% - 32px));
  min-height: 464px;
  overflow: hidden;
  border-radius: 8px;
}

.bili-login-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 32px;
  height: 32px;
  border: 0;
  padding: 0;
  color: #18191c;
  background: transparent;
  box-shadow: none;
  font-size: 30px;
  font-weight: 300;
  line-height: 1;
  z-index: 2;
}

.bili-login-close:hover {
  color: var(--primary);
  background: transparent;
}

.bili-login-shell {
  display: grid;
  grid-template-columns: 250px 400px;
  gap: 45px;
  padding: 50px 62px 14px;
}

.bili-qr-panel {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
}

.bili-qr-panel::after {
  position: absolute;
  left: 50%;
  top: 218px;
  z-index: 0;
  width: 386px;
  height: 115px;
  background: url("https://s1.hdslb.com/bfs/static/jinkela/passport-pc/assets/2233pic.png") center / 100% 100% no-repeat;
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.bili-qr-panel h2,
.bili-form-panel h2 {
  margin: 0;
  color: #18191c;
  font-size: 18px;
  font-weight: 500;
}

.bili-qr-panel > * {
  position: relative;
  z-index: 1;
}

.bili-qr-card {
  position: relative;
  width: 174px;
  height: 174px;
  display: grid;
  place-items: center;
  margin-top: 28px;
  border: 1px solid #e3e5e7;
  border-radius: 6px;
  background: #fff;
  overflow: visible;
}

.bili-qr-card > img {
  width: 172px;
  height: 172px;
  image-rendering: crisp-edges;
}

.qr-official-scan-tip {
  position: absolute;
  left: -106px;
  top: -40px;
  z-index: 3;
  width: 386px;
  height: 202px;
  background: url("https://s1.hdslb.com/bfs/static/jinkela/passport-pc/assets/qr-tips.png") center / 100% 100% no-repeat;
  pointer-events: none;
}

.qr-app-download {
  position: relative;
  display: grid;
  place-items: center;
  width: 174px;
  height: 174px;
}

.qr-app-download img {
  width: 174px;
  height: 174px;
  image-rendering: crisp-edges;
  image-rendering: pixelated;
  object-fit: contain;
}

.qr-expired-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  border: 0;
  border-radius: 6px;
  padding: 0;
  color: #61666d;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: none;
  cursor: pointer;
}

.qr-expired-overlay span {
  width: 24px;
  height: 24px;
  border: 3px solid #e3f6ff;
  border-top-color: #00aeec;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.qr-expired-overlay strong,
.qr-expired-overlay em {
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
}

.qr-expired-overlay:hover {
  color: #18191c;
  background: rgba(255, 255, 255, 0.82);
}

.bili-qr-card.is-expired > #qrImage {
  opacity: 0.18;
}

.bili-qr-card.show-scan-tip,
.bili-qr-card.show-app-download {
  border-color: transparent;
}

.bili-qr-card:hover:not(.show-app-download):not(.is-expired) {
  border-color: transparent;
}

.bili-qr-card:hover:not(.show-app-download):not(.is-expired) > #qrImage:not(.hidden) {
  visibility: hidden;
}

.bili-qr-card:hover:not(.show-app-download):not(.is-expired) .qr-official-scan-tip {
  display: block;
}

.bili-qr-panel:has(#biliClientLink:hover) #qrPanelTitle {
  font-size: 0;
}

.bili-qr-panel:has(#biliClientLink:hover) #qrPanelTitle::after {
  color: #18191c;
  content: "扫码下载客户端";
  font-size: 18px;
  font-weight: 500;
}

.bili-qr-panel:has(#biliClientLink:hover) .bili-qr-card {
  border-color: transparent;
}

.bili-qr-panel:has(#biliClientLink:hover) #qrImage,
.bili-qr-panel:has(#biliClientLink:hover) #qrLoading,
.bili-qr-panel:has(#biliClientLink:hover) #qrOfficialScanTip {
  display: none !important;
}

.bili-qr-panel:has(#biliClientLink:hover) #qrAppDownload {
  display: grid !important;
}

.qr-loading {
  width: 172px;
  height: 172px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #9499a0;
  background: #fff;
}

.qr-loading span {
  width: 30px;
  height: 30px;
  border: 3px solid #e3f6ff;
  border-top-color: #00aeec;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.qr-loading p {
  font-size: 13px;
}

.qr-status {
  margin-top: 20px;
  color: #18191c;
  font-size: 14px;
}

.qr-tip {
  margin-top: 10px;
  color: #61666d;
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.qr-tip a {
  color: #00aeec;
  font-weight: 500;
  text-decoration: none;
}

.qr-tip a:hover {
  color: #00a1d6;
}

.bili-form-panel {
  position: relative;
  display: grid;
  align-content: start;
}

.bili-form-panel::before {
  position: absolute;
  left: -23px;
  top: 40px;
  width: 1px;
  height: 230px;
  background: #e3e5e7;
  content: "";
}

.bili-login-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.bili-login-tabs button {
  height: auto;
  min-height: 0;
  border: 0;
  padding: 0;
  color: #61666d;
  background: transparent;
  box-shadow: none;
  font-size: 18px;
}

.bili-login-tabs button.active {
  color: #00aeec;
}

.bili-login-tabs span {
  width: 1px;
  height: 20px;
  background: #e3e5e7;
}

.bili-login-form {
  display: grid;
  border: 0;
  border-radius: 0;
  overflow: hidden;
}

.bili-input-group {
  position: relative;
  display: grid;
  gap: 10px;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.bili-input-group .bili-input-row:first-child {
  border-radius: 8px;
}

.bili-input-group .bili-input-row:last-child {
  border-radius: 8px;
}

.bili-input-row {
  height: 44px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0;
  margin: 0;
  border: 1px solid #e3e5e7;
  border-radius: 8px;
  padding: 0 14px 0 20px;
  background: #fff;
}

.bili-input-row + .bili-input-row {
  border-top: 1px solid #e3e5e7;
}

.bili-input-row span {
  color: #18191c;
  font-size: 14px;
}

.bili-input-row input {
  height: 42px;
  border: 0;
  padding: 0;
  color: #9499a0;
  background: transparent;
  box-shadow: none;
}

.bili-input-row input:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.bili-input-row input:focus {
  outline: 0;
}

.bili-input-row a {
  color: #00aeec;
  font-size: 13px;
  white-space: nowrap;
}

.bili-input-row button {
  height: 30px;
  min-height: 0;
  border: 0;
  border-left: 1px solid #e3e5e7;
  border-radius: 0;
  padding: 0 0 0 20px;
  color: #9499a0;
  background: transparent;
  box-shadow: none;
  white-space: nowrap;
}

.sms-phone-row {
  grid-template-columns: 74px minmax(0, 1fr) 112px;
  padding-left: 0;
}

.sms-code-row {
  grid-template-columns: 74px minmax(0, 1fr);
  padding-left: 0;
}

.sms-code-row > span {
  display: inline-flex;
  justify-content: center;
}

.sms-country-code {
  width: 74px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-right: 0;
  padding: 0;
  color: #18191c;
  background: transparent;
  box-shadow: none;
  font-size: 14px;
}

.sms-caret {
  color: #9499a0;
  font-size: 16px;
  line-height: 1;
}

.sms-country-menu {
  position: absolute;
  left: -1px;
  top: 44px;
  z-index: 8;
  width: 220px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid #e3e5e7;
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
}

.sms-country-menu button {
  width: 100%;
  height: 32px;
  min-height: 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 0;
  padding: 0 12px;
  color: #18191c;
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  text-align: left;
}

.sms-country-menu button:hover,
.sms-country-menu button.active {
  color: #00aeec;
  background: #f6fbff;
}

.sms-country-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sms-country-dial {
  color: inherit;
}

.bili-login-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.bili-login-actions button {
  height: 40px;
  border-radius: 8px;
}

.bili-login-actions .primary {
  border-color: #7bd3f7;
  background: #7bd3f7;
}

.bili-login-actions.single {
  grid-template-columns: minmax(0, 194px);
  justify-content: center;
}

.bili-login-actions.single .primary {
  border-color: #00aeec;
  background: #00aeec;
}

.bili-login-actions button:disabled {
  opacity: 1;
  cursor: not-allowed;
}

.bili-login-status {
  min-height: 20px;
  margin: 12px 0 0;
  color: #9499a0;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.bili-login-status.error {
  color: #ff4d4f;
}

.bili-login-status.success {
  color: #00a870;
}

.bili-third-title {
  margin-top: 18px;
  color: #9499a0;
  font-size: 13px;
  text-align: center;
}

.bili-third-list {
  display: grid;
  grid-template-columns: repeat(3, auto);
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 12px;
  color: #9499a0;
  font-size: 13px;
}

.bili-third-item {
  height: 32px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  padding: 0;
  color: #9499a0;
  background: transparent;
  box-shadow: none;
}

.bili-third-item::before {
  width: 28px;
  height: 28px;
  display: inline-block;
  flex: 0 0 auto;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 28px 28px;
  content: "";
}

.bili-third-item:hover {
  color: #00aeec;
  background: transparent;
}

.bili-third-item[data-sns-platform="wechat"]::before {
  background-image: url("https://s1.hdslb.com/bfs/static/jinkela/passport-pc/assets/wechat.png");
}

.bili-third-item[data-sns-platform="weibo"]::before {
  background-image: url("https://s1.hdslb.com/bfs/static/jinkela/passport-pc/assets/weibo.png");
}

.bili-third-item[data-sns-platform="qq"]::before {
  background-image: url("https://s1.hdslb.com/bfs/static/jinkela/passport-pc/assets/qq.png");
}

.bili-login-policy {
  margin: 0;
  padding: 11px 24px 18px;
  color: #9499a0;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

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

.toast {
  position: fixed;
  top: 18px;
  left: 50%;
  max-width: min(420px, calc(100vw - 36px));
  border-radius: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--primary);
  box-shadow: var(--shadow-pop);
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

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

  .ai-config-layout {
    grid-template-columns: 1fr;
  }

  .account-config-grid {
    grid-template-columns: 1fr;
  }

  .jury-layout {
    grid-template-columns: 1fr;
  }

  .hardcore-layout {
    grid-template-columns: 1fr;
  }

  .theme-rush-layout {
    grid-template-columns: 1fr;
  }

  .push-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .login-page {
    padding: 0;
  }

  .login-shell {
    min-height: 100dvh;
    grid-template-columns: 1fr;
    border-radius: 0;
  }

  .brand-panel {
    display: none;
  }

  .login-form {
    padding: 36px 24px;
  }

  .mobile-only {
    display: inline-flex;
  }

  .header {
    padding: 0 12px;
  }

  .header-left strong,
  .app-logo {
    display: none;
  }

  .user-btn {
    min-width: 0;
  }

  .user-btn-text {
    max-width: 96px;
  }

  .sider {
    position: fixed;
    left: 0;
    top: 64px;
    bottom: 0;
    z-index: 4;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .sider.open {
    transform: translateX(0);
  }

  .content {
    margin: 16px 10px;
  }

  .bili-login-dialog {
    width: calc(100% - 20px);
  }

  .bili-login-shell {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 46px 24px 12px;
  }

  .bili-form-panel::before {
    display: none;
  }

  .bili-third-list {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 8px;
  }

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

  #userAccountsView .card-toolbar {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 14px;
  }

  #userAccountsView .toolbar-left,
  #userAccountsView .toolbar-right {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  #userAccountsView .toolbar-left button,
  #userAccountsView .batch-dropdown-wrap,
  #userAccountsView .search-field {
    width: 100%;
    min-width: 0;
  }

  #userAccountsView .card-toolbar button {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  #userAccountsView .batch-menu {
    width: 100%;
  }

  #userAccountsView.table-panel,
  #userAccountsView .table-panel {
    overflow: visible;
  }

  #userAccountsView table {
    min-width: 0;
    display: block;
  }

  #userAccountsView thead {
    display: none;
  }

  #userAccountsView tbody {
    display: grid;
    gap: 12px;
    padding: 0 12px 14px;
  }

  #userAccountsView tbody tr {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    background: #fff;
  }

  #userAccountsView tbody tr:hover {
    background: #fff;
  }

  #userAccountsView td {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 0;
    padding: 0;
    overflow-wrap: anywhere;
  }

  #userAccountsView td::before {
    flex: 0 0 52px;
    color: var(--muted);
    font-size: 12px;
    content: attr(data-label);
  }

  #userAccountsView .account-cell::before,
  #userAccountsView .action-cell::before,
  #userAccountsView .selection-col::before,
  #userAccountsView .empty-cell::before {
    display: none;
  }

  #userAccountsView .selection-col {
    width: auto;
    grid-column: 1;
    grid-row: 1;
    justify-content: center;
    padding-top: 10px;
  }

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

  #userAccountsView .action-cell {
    grid-column: 3;
    grid-row: 1;
    align-items: center;
    justify-content: flex-end;
  }

  #userAccountsView .state-cell,
  #userAccountsView .features-cell,
  #userAccountsView .channels-cell,
  #userAccountsView .listen-cell {
    grid-column: 2 / -1;
    align-items: center;
    border-top: 1px solid var(--line);
    padding-top: 10px;
  }

  #userAccountsView .user-cell {
    min-width: 0;
  }

  #userAccountsView .user-cell > div {
    min-width: 0;
  }

  #userAccountsView .empty-cell {
    grid-column: 1 / -1;
    min-height: 120px;
    justify-content: center;
    align-items: center;
  }

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

  .button-row,
  .button-row .plain-select {
    width: 100%;
  }

  .button-row button,
  .button-row .plain-select,
  .button-row .jury-auto-time {
    flex: 1 1 150px;
  }

  .common-upgrade-head {
    grid-template-columns: 1fr;
  }

  .common-upgrade-toolbar {
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .common-upgrade-toolbar .common-account-select,
  .common-upgrade-toolbar #runCommonUpgradeBtn,
  .common-upgrade-toolbar .common-upgrade-auto-status {
    grid-column: 1 / -1;
  }

  .common-upgrade-toolbar #refreshCommonUpgradeBtn,
  .common-upgrade-toolbar #commonUpgradeAutoTime {
    grid-column: auto;
  }

  .common-upgrade-toolbar #commonUpgradeAutoBtn {
    grid-column: auto;
  }

  .jury-case-content {
    min-height: 220px;
    padding: 18px;
  }

  .hardcore-captcha-row {
    grid-template-columns: 1fr;
  }

  .hardcore-captcha-image {
    width: 100%;
  }

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

  .theme-rush-time-picker {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .push-config-form,
  .push-actions {
    padding: 16px;
  }

  .push-actions button {
    width: 100%;
  }

  .records-controls {
    width: 100%;
    justify-content: stretch;
  }

  .records-controls .plain-select,
  .records-controls button {
    flex: 1 1 120px;
  }

  .pager-text {
    flex: 1 0 100%;
    order: 3;
    text-align: left;
  }

  .jury-option {
    grid-template-columns: 40px minmax(0, 1fr);
  }

  .jury-option button {
    grid-column: 1 / -1;
  }

  .log-item {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (min-width: 561px) and (max-width: 720px) {
  .bili-login-dialog {
    width: calc(100% - 20px);
    min-height: 464px;
  }

  .bili-login-shell {
    grid-template-columns: minmax(210px, 0.42fr) minmax(288px, 0.58fr);
    gap: 22px;
    padding: 50px 30px 14px;
  }

  .bili-form-panel::before {
    display: block;
    left: -11px;
    top: 40px;
    height: 230px;
  }

  .bili-third-list {
    grid-template-columns: repeat(3, auto);
    gap: 10px;
    font-size: 12px;
  }

  .bili-third-item {
    gap: 5px;
  }

  .bili-login-policy {
    padding-bottom: 24px;
  }
}
