:root {
  --hq-accent: #c81920;
  --hq-accent-hover: #a91219;
  --hq-accent-soft: #fff1f1;
  --hq-nav: #180b0e;
  --hq-nav-hover: #2b1116;
  --hq-nav-selected: #82141b;
  --hq-bg: #f4f6f8;
  --hq-surface: #ffffff;
  --hq-border: #e1e5ea;
  --hq-border-strong: #cfd5dc;
  --hq-text: #171a1f;
  --hq-text-secondary: #68707c;
  --hq-shadow: 0 2px 10px rgba(20, 24, 32, 0.045);
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--hq-text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  background: var(--hq-bg);
  -webkit-font-smoothing: antialiased;
}

::selection {
  color: #fff;
  background: var(--hq-accent);
}

/* App shell */
.hq-admin-shell .ant-design-pro,
.hq-admin-shell .ant-pro-layout,
.hq-admin-shell .ant-layout {
  background: var(--hq-bg) !important;
}

.hq-admin-shell header.ant-pro-layout-header {
  height: 56px !important;
  line-height: 56px !important;
  background: var(--hq-surface) !important;
  border-bottom: 1px solid var(--hq-border) !important;
  box-shadow: none !important;
}

.hq-admin-shell .ant-pro-global-header {
  height: 56px !important;
  gap: 0;
  padding-inline: 0 16px !important;
  background: var(--hq-surface) !important;
}

.hq-admin-shell .ant-pro-global-header-logo {
  align-self: stretch;
  width: 256px !important;
  min-width: 256px !important;
  margin-inline-start: -16px !important;
  background: var(--hq-nav);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.hq-admin-shell .ant-pro-global-header-logo > a {
  position: relative;
  display: flex !important;
  gap: 12px;
  align-items: center;
  width: 100%;
  height: 100%;
  padding-inline: 22px;
  box-sizing: border-box;
}

.hq-admin-shell .ant-pro-global-header-logo > a::before {
  width: 34px;
  height: 34px;
  content: "";
  flex: 0 0 auto;
  border-radius: 8px;
  background: url("/icons/icon-128x128.png") center / contain no-repeat;
}

.hq-admin-shell .ant-pro-global-header-logo img {
  display: none !important;
}

.hq-admin-shell .ant-pro-global-header-logo h1 {
  margin: 0 !important;
  overflow: hidden;
  color: #fff !important;
  font-size: 17px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  letter-spacing: 0.02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hq-admin-shell:has(.ant-pro-sider-collapsed) .ant-pro-global-header-logo {
  width: 64px !important;
  min-width: 64px !important;
}

.hq-admin-shell:has(.ant-pro-sider-collapsed) .ant-pro-global-header-logo > a {
  justify-content: center;
  padding-inline: 0;
}

.hq-admin-shell:has(.ant-pro-sider-collapsed) .ant-pro-global-header-logo h1 {
  display: none !important;
}

.hq-admin-shell:has(.ant-pro-sider-collapsed) .ant-pro-global-header-logo > a::before {
  display: block;
}

.hq-admin-shell .hq-header-context {
  display: flex;
  gap: 12px;
  align-items: center;
  align-self: stretch;
  min-width: 180px;
  padding: 0 22px;
}

.hq-admin-shell .hq-header-context-marker {
  width: 3px;
  height: 26px;
  flex: 0 0 auto;
  background: var(--hq-accent);
  border-radius: 1px;
}

.hq-admin-shell .hq-header-context-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
  line-height: 1.2;
}

.hq-admin-shell .hq-header-context-label {
  color: #8a919b;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.hq-admin-shell .hq-header-context-title {
  overflow: hidden;
  color: var(--hq-text);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hq-admin-shell .ant-pro-global-header-right-content {
  min-width: 0 !important;
}

.hq-admin-shell .ant-pro-global-header-header-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.hq-admin-shell .ant-pro-global-header-header-actions-item {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  color: #4d5560 !important;
  border: 1px solid transparent;
  border-radius: 8px !important;
  box-sizing: border-box;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease !important;
}

.hq-admin-shell .ant-pro-global-header-header-actions-item:hover {
  color: var(--hq-accent) !important;
  background: var(--hq-accent-soft) !important;
  border-color: #f3d4d5;
}

.hq-admin-shell .ant-pro-global-header-header-actions-item:empty {
  display: none;
}

.hq-admin-shell .hq-language-action:focus-visible {
  color: var(--hq-accent) !important;
  background: var(--hq-accent-soft) !important;
  outline: 2px solid rgba(200, 25, 32, 0.24);
  outline-offset: 2px;
}

.hq-admin-shell .ant-pro-global-header-header-actions-avatar {
  height: 36px;
  margin-inline-start: 6px;
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--hq-border);
}

.hq-admin-shell .ant-pro-global-header-header-actions-avatar > .ant-dropdown-trigger {
  display: flex;
  gap: 10px;
  align-items: center;
  height: 36px;
  padding: 0 10px 0 6px;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background-color 160ms ease, border-color 160ms ease !important;
}

.hq-admin-shell .ant-pro-global-header-header-actions-avatar > .ant-dropdown-trigger:hover {
  background: #f7f8fa;
  border-color: var(--hq-border);
}

.hq-admin-shell .ant-pro-global-header-header-actions-avatar > .ant-dropdown-trigger:focus-visible {
  outline: 2px solid rgba(200, 25, 32, 0.24);
  outline-offset: 2px;
}

.hq-admin-shell .ant-pro-global-header-header-actions-avatar .ant-avatar:has(img[src="/icons/icon.png"]) {
  color: #fff !important;
  background: var(--hq-accent) !important;
  box-shadow: 0 0 0 3px var(--hq-accent-soft);
}

.hq-admin-shell .ant-pro-global-header-header-actions-avatar .ant-avatar:has(img[src="/icons/icon.png"]) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hq-admin-shell .ant-pro-global-header-header-actions-avatar .ant-avatar:has(img[src="/icons/icon.png"])::before {
  display: none;
  content: "";
}

.hq-admin-shell .hq-account-copy {
  display: grid;
  gap: 1px;
  min-width: 62px;
  line-height: 1.15;
}

.hq-admin-shell .hq-account-name {
  color: #30353c;
  font-size: 13px;
  font-weight: 650;
}

.hq-admin-shell .hq-account-meta {
  color: #8a919b;
  font-size: 11px;
  font-weight: 400;
}

.hq-admin-shell .hq-account-chevron {
  width: 6px;
  height: 6px;
  margin-inline-start: 2px;
  border-right: 1.5px solid #89909a;
  border-bottom: 1.5px solid #89909a;
  transform: rotate(45deg) translateY(-2px);
}

.hq-admin-shell .ant-pro-sider,
.hq-admin-shell .ant-pro-sider .ant-layout-sider-children,
.hq-admin-shell .ant-pro-sider-menu,
.hq-admin-shell .ant-pro-sider .ant-menu,
.hq-admin-shell .ant-pro-sider .ant-menu-sub {
  background: var(--hq-nav) !important;
}

.hq-admin-shell .ant-pro-sider {
  z-index: 101 !important;
  box-shadow: none !important;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.hq-admin-shell .ant-pro-sider-collapsed-button {
  top: 12px !important;
  right: auto !important;
  left: 212px !important;
  z-index: 1001;
  position: fixed !important;
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  box-sizing: border-box;
  color: rgba(255, 255, 255, 0.72) !important;
  cursor: pointer;
  background: transparent !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease !important;
}

.hq-admin-shell .ant-pro-sider-collapsed-button:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.hq-admin-shell .ant-pro-sider-collapsed-button:focus-visible {
  outline: 2px solid #ef3b42;
  outline-offset: 2px;
}

.hq-admin-shell .ant-pro-sider-collapsed-button svg {
  width: 14px;
  height: 14px;
}

.hq-admin-shell:has(.ant-pro-sider-collapsed) .ant-pro-sider-collapsed-button {
  left: 16px !important;
}

.hq-admin-shell .ant-pro-sider .ant-layout-sider-children > div {
  padding: 10px 0 24px;
  scrollbar-color: #5e2429 transparent;
  scrollbar-width: thin;
}

.hq-admin-shell .ant-pro-sider .ant-menu-item,
.hq-admin-shell .ant-pro-sider .ant-menu-submenu-title {
  min-height: 42px;
  margin: 2px 10px !important;
  width: calc(100% - 20px) !important;
  color: rgba(255, 255, 255, 0.72) !important;
  border-radius: 6px !important;
  transition: color 160ms ease, background-color 160ms ease !important;
}

.hq-admin-shell .ant-pro-sider .ant-menu-item a,
.hq-admin-shell .ant-pro-sider .ant-menu-item .anticon,
.hq-admin-shell .ant-pro-sider .ant-menu-submenu-title .anticon,
.hq-admin-shell .ant-pro-sider .ant-menu-submenu-arrow,
.hq-admin-shell .ant-pro-sider .ant-menu-title-content {
  color: inherit !important;
}

.hq-admin-shell .ant-pro-sider .ant-menu-item:hover,
.hq-admin-shell .ant-pro-sider .ant-menu-submenu-title:hover {
  color: #fff !important;
  background: var(--hq-nav-hover) !important;
}

.hq-admin-shell .ant-pro-sider .ant-menu-item-selected {
  color: #fff !important;
  font-weight: 600;
  background: var(--hq-nav-selected) !important;
  box-shadow: inset 3px 0 0 #ef3b42;
}

.hq-admin-shell .ant-pro-sider .ant-menu-submenu-selected > .ant-menu-submenu-title {
  color: #fff !important;
}

.hq-admin-shell .ant-pro-sider .ant-pro-base-menu-inline-item-icon {
  font-size: 16px !important;
}

.hq-admin-shell .ant-pro-sider .ant-menu-submenu-arrow::before,
.hq-admin-shell .ant-pro-sider .ant-menu-submenu-arrow::after {
  background: currentColor !important;
}

/* Keep short pages and the footer inside one viewport while allowing long pages to grow naturally. */
.hq-admin-shell .ant-pro-layout-container {
  min-height: 100vh;
  min-height: 100dvh;
}

.hq-admin-shell main.ant-pro-layout-content {
  color: var(--hq-text);
  background: var(--hq-bg) !important;
}

.hq-admin-shell .ant-pro-page-container {
  background: transparent !important;
}

.hq-admin-shell .ant-pro-page-container-warp-page-header {
  padding: 22px 28px 14px !important;
  background: transparent !important;
}

.hq-admin-shell .ant-page-header-heading {
  margin-top: 8px !important;
}

.hq-admin-shell .ant-page-header-heading-title {
  color: var(--hq-text) !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em;
}

.hq-admin-shell .ant-breadcrumb,
.hq-admin-shell .ant-breadcrumb a,
.hq-admin-shell .ant-breadcrumb-link {
  color: var(--hq-text-secondary) !important;
}

.hq-admin-shell .ant-breadcrumb li:last-child,
.hq-admin-shell .ant-breadcrumb li:last-child .ant-breadcrumb-link {
  color: #30353c !important;
}

.hq-admin-shell .ant-pro-page-container-children-container {
  padding: 0 28px 28px !important;
}

/* Dashboard fills the content area; the generic page padding otherwise creates a false scrollbar. */
.hq-admin-shell .dashboard-page .ant-pro-page-container-children-container {
  padding: 0 !important;
}

.hq-admin-shell .dashboard-page iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.hq-dashboard-host {
  position: relative;
  overflow: hidden;
  background: var(--hq-bg);
}

.hq-dashboard-frame-hidden {
  visibility: hidden;
}

.hq-dashboard-status {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--hq-bg);
  box-sizing: border-box;
}

.hq-dashboard-status[hidden] {
  display: none !important;
}

.hq-admin-shell:has(.hq-dashboard-status:not([hidden])) .ant-float-btn {
  display: none !important;
}

.hq-dashboard-status-panel {
  width: min(420px, 100%);
  padding: 34px 30px;
  text-align: center;
  background: var(--hq-surface);
  border: 1px solid var(--hq-border);
  border-radius: 8px;
  box-sizing: border-box;
}

.hq-dashboard-status-title {
  margin: 0 0 10px;
  color: var(--hq-text);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

.hq-dashboard-status-description {
  margin: 0;
  color: var(--hq-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.hq-dashboard-status-retry {
  min-width: 96px;
  min-height: 36px;
  margin-top: 22px;
  padding: 6px 18px;
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  background: var(--hq-accent);
  border: 1px solid var(--hq-accent);
  border-radius: 6px;
}

.hq-dashboard-status-retry:hover,
.hq-dashboard-status-retry:focus-visible {
  background: var(--hq-accent-hover);
  border-color: var(--hq-accent-hover);
}

.hq-dashboard-status-retry:focus-visible {
  outline: 2px solid rgba(200, 25, 32, 0.28);
  outline-offset: 2px;
}

.hq-dashboard-status-retry[aria-disabled="true"],
.hq-dashboard-status-retry[aria-disabled="true"]:hover {
  cursor: wait;
  background: var(--hq-accent);
  border-color: var(--hq-accent);
  opacity: 0.64;
}

.hq-admin-shell .ant-pro-card,
.hq-admin-shell .ant-card {
  background: var(--hq-surface) !important;
  border: 1px solid var(--hq-border) !important;
  border-radius: 8px !important;
  box-shadow: var(--hq-shadow) !important;
}

.hq-admin-shell .ant-pro-table-search {
  margin-bottom: 16px !important;
}

.hq-admin-shell .ant-pro-table-list-toolbar-container {
  min-height: 56px;
  padding: 12px 20px !important;
}

.hq-admin-shell .ant-pro-card-body,
.hq-admin-shell .ant-card-body {
  color: var(--hq-text);
}

.hq-admin-shell .ant-pro-layout-watermark {
  display: none !important;
}

/* Forms and command surfaces */
.ant-input-outlined,
.ant-input-affix-wrapper,
.ant-input-number,
.ant-picker,
.ant-select-selector,
.ant-cascader-picker,
.ant-mentions,
.ant-upload-drag {
  border-color: var(--hq-border-strong) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.ant-input-outlined:hover,
.ant-input-affix-wrapper:hover,
.ant-input-number:hover,
.ant-picker:hover,
.ant-select:not(.ant-select-disabled):hover .ant-select-selector {
  border-color: #aeb6c0 !important;
}

.ant-input-outlined:focus,
.ant-input-affix-wrapper-focused,
.ant-input-number-focused,
.ant-picker-focused,
.ant-select-focused:not(.ant-select-disabled) .ant-select-selector {
  border-color: var(--hq-accent) !important;
  box-shadow: 0 0 0 2px rgba(200, 25, 32, 0.1) !important;
}

.ant-form-item-label > label {
  color: #343a43 !important;
  font-weight: 500;
}

.ant-form-item-explain-error,
.ant-form-item-required::before {
  color: var(--hq-accent) !important;
}

.ant-btn {
  min-height: 34px;
  border-radius: 6px !important;
  font-weight: 500;
  box-shadow: none !important;
}

.ant-btn-default {
  color: #343a43 !important;
  border-color: var(--hq-border-strong) !important;
  background: #fff !important;
}

.ant-btn-default:hover,
.ant-btn-default:focus-visible {
  color: var(--hq-accent) !important;
  border-color: var(--hq-accent) !important;
  background: #fff !important;
}

.ant-btn-primary {
  color: #fff !important;
  border-color: var(--hq-accent) !important;
  background: var(--hq-accent) !important;
}

.ant-btn-primary:hover,
.ant-btn-primary:focus-visible {
  color: #fff !important;
  border-color: var(--hq-accent-hover) !important;
  background: var(--hq-accent-hover) !important;
}

.ant-btn-primary:focus-visible,
.ant-btn-default:focus-visible,
.ant-checkbox-input:focus-visible + .ant-checkbox-inner,
.ant-radio-input:focus-visible + .ant-radio-inner {
  outline: 2px solid rgba(200, 25, 32, 0.26);
  outline-offset: 2px;
}

a,
.ant-btn-link {
  color: var(--hq-accent);
}

a:hover,
.ant-btn-link:hover {
  color: var(--hq-accent-hover);
}

.ant-checkbox-checked .ant-checkbox-inner,
.ant-radio-checked .ant-radio-inner,
.ant-switch.ant-switch-checked {
  border-color: var(--hq-accent) !important;
  background: var(--hq-accent) !important;
}

.ant-radio-checked .ant-radio-inner::after {
  background: #fff !important;
}

.ant-tabs .ant-tabs-tab.ant-tabs-tab-active .ant-tabs-tab-btn,
.ant-tabs .ant-tabs-tab:hover {
  color: var(--hq-accent) !important;
}

.ant-tabs .ant-tabs-ink-bar {
  background: var(--hq-accent) !important;
}

/* Tables, lists, and state surfaces */
.hq-admin-shell .ant-table-wrapper {
  color: var(--hq-text);
}

.hq-admin-shell .ant-table-container {
  border-color: var(--hq-border) !important;
  border-radius: 7px !important;
}

.hq-admin-shell .ant-table-thead > tr > th,
.hq-admin-shell .ant-table-thead > tr > td {
  color: #2e343c !important;
  font-weight: 650 !important;
  background: #f6f7f9 !important;
  border-bottom: 1px solid var(--hq-border) !important;
}

.hq-admin-shell .ant-table-tbody > tr > td {
  border-bottom-color: #edf0f3 !important;
}

/* 群主等受保护成员的操作仍保留可读性，并明确表达不可操作状态。 */
.hq-admin-shell .ant-table a[class*="bba8a883"] {
  color: #75666a !important;
  cursor: not-allowed !important;
}

.hq-admin-shell .ant-table-tbody > tr.ant-table-row:hover > td,
.hq-admin-shell .ant-table-tbody > tr > td.ant-table-cell-row-hover {
  background: #fff8f8 !important;
}

.hq-admin-shell .ant-table-cell-fix-left,
.hq-admin-shell .ant-table-cell-fix-right {
  background: var(--hq-surface);
}

.hq-admin-shell .ant-pagination-item {
  border-color: var(--hq-border-strong) !important;
  border-radius: 5px !important;
}

.hq-admin-shell .ant-pagination-item-active {
  border-color: var(--hq-accent) !important;
}

.hq-admin-shell .ant-pagination-item-active a,
.hq-admin-shell .ant-pagination-item:hover a {
  color: var(--hq-accent) !important;
}

.hq-admin-shell .ant-empty-description,
.hq-admin-shell .ant-table-placeholder,
.hq-admin-shell .ant-typography-secondary {
  color: var(--hq-text-secondary) !important;
}

.ant-tag {
  border-radius: 4px !important;
}

.ant-alert,
.ant-result,
.ant-descriptions-bordered,
.ant-list-bordered {
  border-radius: 8px !important;
}

.ant-spin-dot-item {
  background: var(--hq-accent) !important;
}

/* Floating layers */
.ant-modal-content,
.ant-drawer-content,
.ant-popover-inner,
.ant-dropdown-menu {
  border: 1px solid var(--hq-border) !important;
  border-radius: 9px !important;
  box-shadow: 0 14px 36px rgba(24, 11, 14, 0.14) !important;
}

.ant-modal-header,
.ant-drawer-header {
  border-bottom-color: var(--hq-border) !important;
}

/* Keep shared user pickers readable on wide screens and usable on short screens. */
.hq-admin-shell .ant-modal[style*="width: 80%"] {
  width: min(80%, 1200px) !important;
  max-width: calc(100vw - 32px);
}

.hq-admin-shell .ant-modal[style*="width: 80%"] .ant-modal-body,
.hq-admin-shell .ant-modal[style*="width: 1068px"] .ant-modal-body {
  max-height: calc(100dvh - 140px);
  overflow-y: auto;
}

.hq-admin-shell .ant-modal[style*="width: 1068px"] {
  top: 24px;
  width: min(1068px, calc(100vw - 32px)) !important;
  padding-bottom: 24px;
}

.hq-admin-shell .w-\[360px\] {
  max-width: 100%;
}

.hq-drawer-close {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-inline-start: auto;
  padding: 0;
  color: var(--hq-text-secondary);
  font: 400 24px/1 Arial, sans-serif;
  cursor: pointer;
  background: transparent;
  border: 0;
  border-radius: 6px;
}

.hq-drawer-close:hover,
.hq-drawer-close:focus-visible {
  color: var(--hq-text);
  background: #f1f3f5;
}

.hq-drawer-close:focus-visible {
  outline: 2px solid rgba(200, 25, 32, 0.24);
  outline-offset: 1px;
}

.ant-modal-title,
.ant-drawer-title {
  color: var(--hq-text) !important;
  font-weight: 650 !important;
}

.ant-dropdown-menu-item-selected,
.ant-dropdown-menu-item:hover,
.ant-select-item-option-selected:not(.ant-select-item-option-disabled),
.ant-select-item-option-active:not(.ant-select-item-option-disabled) {
  color: var(--hq-text) !important;
  background: var(--hq-accent-soft) !important;
}

.ant-message-notice-content,
.ant-notification-notice {
  border: 1px solid var(--hq-border) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 28px rgba(24, 11, 14, 0.12) !important;
}

/* Login */
.hq-admin-login,
.hq-admin-login body,
.hq-admin-login #root {
  width: 100%;
  min-width: 320px;
  height: 100%;
  overflow: hidden;
  background: #fff;
}

.hq-admin-login #root > .w-screen.h-screen {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
}

.hq-admin-login #root > .w-screen.h-screen > .flex {
  position: relative;
  display: grid !important;
  grid-template-columns: minmax(520px, 52%) minmax(440px, 48%);
  align-items: stretch !important;
  justify-content: stretch !important;
  width: 100% !important;
  height: 100% !important;
  background: #fff;
}

.hq-admin-login #root > .w-screen.h-screen > .flex::before {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 76px;
  color: #fff;
  content: "追逐梦管理后台";
  font-size: 22px;
  font-weight: 650;
  line-height: 30px;
  letter-spacing: 0.03em;
}

.hq-admin-login #root > .w-screen.h-screen > .flex::after {
  position: absolute;
  z-index: 2;
  top: 31px;
  left: 36px;
  width: 32px;
  height: 32px;
  content: "";
  border-radius: 8px;
  background: url("/icons/icon-128x128.png?v=20260809") center / contain no-repeat;
}

.hq-admin-login #root > .w-screen.h-screen > .flex > img {
  width: 100% !important;
  height: 100% !important;
  padding: 110px 54px 58px !important;
  box-sizing: border-box;
  object-fit: contain;
  object-position: center;
  background: var(--hq-nav);
  filter: grayscale(1) sepia(1) saturate(5) hue-rotate(320deg) brightness(0.4) contrast(1.25);
}

.hq-admin-login #root > .w-screen.h-screen > .flex > .flex.flex-col {
  align-self: center;
  justify-self: center;
  width: min(420px, calc(100% - 64px)) !important;
  margin-left: 0 !important;
}

.hq-admin-login .text-2xl.font-medium {
  margin-bottom: 38px !important;
  color: var(--hq-text) !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.02em;
}

.hq-admin-login form.ant-form {
  width: 100% !important;
}

.hq-admin-login .ant-form-item {
  margin-bottom: 20px;
}

.hq-admin-login .ant-input-affix-wrapper-lg {
  min-height: 46px;
  padding-inline: 14px !important;
  border-color: var(--hq-border-strong) !important;
  border-radius: 8px !important;
}

.hq-admin-login .ant-input-prefix .anticon {
  color: #6d7580 !important;
}

.hq-admin-login .ant-btn-primary.ant-btn-lg {
  min-height: 46px;
  border-radius: 8px !important;
  font-size: 16px;
  font-weight: 650;
}

.hq-admin-login .ant-checkbox-wrapper,
.hq-admin-login .ant-checkbox-wrapper a {
  font-size: 14px;
}

.hq-admin-login .text-\[\#4686fc\] {
  color: var(--hq-accent) !important;
}

/* Custom registration security page */
.hq-register-security-page {
  position: fixed;
  z-index: 100;
  right: 0;
  bottom: 0;
  overflow: auto;
  padding: 28px;
  color: var(--hq-text);
  background: var(--hq-bg);
  box-sizing: border-box;
}

.hq-settings-view {
  min-height: 420px;
}

.hq-settings-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.hq-settings-title {
  color: var(--hq-text);
  font-size: 22px;
  font-weight: 700;
}

.hq-settings-description {
  margin-top: 7px;
  color: var(--hq-text-secondary);
  font-size: 14px;
}

.hq-settings-card {
  max-width: 760px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--hq-border);
  border-radius: 8px;
  box-shadow: var(--hq-shadow);
}

.hq-settings-toggle {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #343a43;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.hq-settings-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--hq-accent);
}

.hq-settings-option + .hq-settings-option {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hq-border);
}

.hq-settings-help {
  margin: 12px 0 0 30px;
  color: var(--hq-text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.hq-settings-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
}

.hq-settings-save {
  min-height: 36px;
  padding: 7px 18px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  background: var(--hq-accent);
  border: 1px solid var(--hq-accent);
  border-radius: 6px;
}

.hq-settings-save:hover,
.hq-settings-save:focus-visible {
  background: var(--hq-accent-hover);
  border-color: var(--hq-accent-hover);
}

.hq-settings-save:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.hq-settings-status {
  color: var(--hq-text-secondary);
  font-size: 14px;
}

.hq-admin-shell footer,
.hq-admin-shell .ant-pro-global-footer {
  color: var(--hq-text-secondary) !important;
  background: transparent !important;
}

* {
  scrollbar-color: #b8bec7 transparent;
  scrollbar-width: thin;
}

*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-thumb {
  background: #b8bec7;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

@media (max-width: 960px) {
  .hq-admin-shell .hq-header-context {
    min-width: 0;
    padding-inline: 16px;
  }

  .hq-admin-shell .hq-header-context-label,
  .hq-admin-shell .hq-account-meta {
    display: none;
  }

  .hq-admin-shell .hq-header-context-copy {
    display: block;
  }

  .hq-admin-login #root > .w-screen.h-screen > .flex {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0;
    padding: 88px 24px 32px;
    box-sizing: border-box;
  }

  .hq-admin-login #root > .w-screen.h-screen > .flex > img {
    display: none;
  }

  .hq-admin-login #root > .w-screen.h-screen > .flex::before {
    top: 26px;
    left: 60px;
    color: var(--hq-text);
    font-size: 18px;
  }

  .hq-admin-login #root > .w-screen.h-screen > .flex::after {
    top: 26px;
    left: 26px;
  }

  .hq-admin-login #root > .w-screen.h-screen > .flex > .flex.flex-col {
    width: min(420px, 100%) !important;
  }
}

@media (max-width: 680px) {
  .hq-admin-shell .ant-pro-global-header-logo {
    width: 52px !important;
    min-width: 52px !important;
    margin-inline-start: 0 !important;
    background: var(--hq-surface) !important;
    border-right: 0;
  }

  .hq-admin-shell .ant-pro-global-header-logo > a {
    justify-content: center;
    padding-inline: 0;
  }

  .hq-admin-shell .ant-pro-global-header-logo > a::before {
    width: 20px;
    height: 24px;
  }

  .hq-admin-shell .ant-pro-global-header-logo h1 {
    display: none !important;
  }

  .hq-admin-shell .hq-header-context {
    display: none;
  }

  .hq-admin-shell .hq-account-copy,
  .hq-admin-shell .hq-account-chevron {
    display: none;
  }

  .hq-admin-shell .ant-pro-global-header-header-actions-avatar > .ant-dropdown-trigger {
    padding-inline: 4px;
  }

  .hq-admin-shell .ant-pro-global-header-header-actions-avatar {
    margin-inline-start: 2px;
    padding-inline-start: 8px;
  }
}

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