/* 第39轮：全站内容宽度 80vw + 下拉框深色对比度 */
:root{ --page-width: 80vw; }

@media (min-width: 901px) {
  html body .container,
  html body .dash-shell,
  html body.admin-body .container,
  html body .login-shell {
    width: var(--page-width) !important;
    max-width: var(--page-width) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  html body .dash-top,
  html body.admin-body .header.topbar {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 10vw !important;
    padding-right: 10vw !important;
    box-sizing: border-box !important;
  }
  html body .site-nav .container,
  html body .footer .container {
    width: var(--page-width) !important;
    max-width: var(--page-width) !important;
  }
}

@media (max-width: 900px) {
  html body .container,
  html body .dash-shell,
  html body.admin-body .container,
  html body .login-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }
  html body .container {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  html body .dash-top,
  html body.admin-body .header.topbar {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    box-sizing: border-box !important;
  }
  html body .login-shell {
    max-width: 520px !important;
  }
}

html body select,
html body .select,
html body .filter-select,
html body.admin-body select,
html body .dash-body select,
html body .modal select,
html body .login-card select {
  background-color: #0b1120 !important;
  color: #eef2ff !important;
  border: 1px solid rgba(255,255,255,.22) !important;
  color-scheme: dark !important;
  -webkit-text-fill-color: #eef2ff !important;
  caret-color: #eef2ff !important;
  opacity: 1 !important;
}
html body select option,
html body select optgroup,
html body .select option,
html body .filter-select option {
  background-color: #0b1120 !important;
  color: #eef2ff !important;
}
html body select option:checked,
html body select option:hover,
html body select option:focus {
  background: #1e2a4a !important;
  color: #ffffff !important;
}
html body select:hover,
html body .select:hover,
html body .filter-select:hover {
  border-color: rgba(139,156,255,.65) !important;
}
html body select:focus,
html body .select:focus,
html body .filter-select:focus {
  outline: none !important;
  border-color: rgba(139,156,255,.8) !important;
  box-shadow: 0 0 0 3px rgba(99,102,241,.18) !important;
}
html body select:disabled,
html body select[disabled] {
  background-color: #111827 !important;
  color: #8b95ad !important;
  border-color: rgba(255,255,255,.12) !important;
  opacity: 1 !important;
}
html body select option:disabled {
  color: #6b7690 !important;
  background-color: #111827 !important;
}
html body .dropdown-menu,
html body .select-menu,
html body [role="listbox"] {
  background: #0b1120 !important;
  color: #eef2ff !important;
  border: 1px solid rgba(255,255,255,.18) !important;
}
html body .dropdown-menu a,
html body .dropdown-menu .item,
html body [role="option"] {
  color: #eef2ff !important;
}
html body [role="option"]:hover,
html body .dropdown-menu a:hover,
html body .dropdown-menu .item:hover {
  background: #1e2a4a !important;
  color: #fff !important;
}
html body .container,
html body .dash-shell,
html body.admin-body .container {
  min-width: 0 !important;
}

@media (min-width: 901px) {
  html body.admin-body .main .users-table th:last-child,
  html body.admin-body .main .users-table td:last-child {
    position: sticky !important;
    right: 0 !important;
    background: #0b1120 !important;
    z-index: 3 !important;
    box-shadow: -10px 0 14px rgba(2,6,23,.55) !important;
  }
}

/* 第41轮：全站 Key 显示统一大写 + 等宽（仅显示层） */
html body .key-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Courier New", monospace !important;
  text-transform: uppercase !important;
  letter-spacing: .01em !important;
}
