:root {
  --aboj-sidebar-width: 17rem;
  --aboj-bg: #67a8e7;
  --aboj-surface: rgba(58, 103, 153, 0.76);
  --aboj-surface-soft: rgba(255, 255, 255, 0.08);
  --aboj-surface-strong: rgba(255, 255, 255, 0.16);
  --aboj-header: rgba(118, 188, 230, 0.46);
  --aboj-border: rgba(230, 248, 255, 0.18);
  --aboj-text: rgba(255, 255, 255, 0.88);
  --aboj-muted: rgba(245, 251, 255, 0.68);
  --aboj-title: #ffffff;
  --aboj-accent: #9eefff;
  --aboj-accent-strong: #ffffff;
  --aboj-dark: #312450;
  --aboj-radius-lg: 1.45rem;
  --aboj-radius-md: 1rem;
  --aboj-radius-sm: 0.75rem;
  --aboj-shadow: 0 1.1rem 2.25rem rgba(68, 113, 159, 0.14);
}

html[data-page="homepage"] {
  --aboj-bg:
    radial-gradient(circle at 82% 12%, rgba(165, 232, 255, 0.34), transparent 22rem),
    radial-gradient(circle at 16% 84%, rgba(188, 246, 255, 0.22), transparent 20rem),
    #67a8e7;
  --aboj-surface: rgba(62, 109, 160, 0.78);
  --aboj-header: rgba(130, 199, 238, 0.42);
  --aboj-accent: #bdf4ff;
}

html[data-page="problem_main"],
html[data-page="problem_detail"] {
  --aboj-bg:
    radial-gradient(circle at 78% 12%, rgba(212, 255, 173, 0.28), transparent 22rem),
    radial-gradient(circle at 16% 82%, rgba(130, 224, 196, 0.24), transparent 20rem),
    #74a986;
  --aboj-surface: rgba(50, 96, 73, 0.84);
  --aboj-header: rgba(111, 172, 126, 0.48);
  --aboj-border: rgba(226, 250, 212, 0.2);
  --aboj-muted: rgba(243, 255, 235, 0.72);
  --aboj-accent: #d8f7a8;
  --aboj-shadow: 0 1.1rem 2.2rem rgba(45, 93, 67, 0.16);
}

html[data-page="contest_main"],
html[data-page="contest_detail"] {
  --aboj-bg: #b74e91;
  --aboj-surface: rgba(105, 55, 105, 0.82);
  --aboj-header: rgba(122, 62, 118, 0.62);
  --aboj-border: rgba(255, 219, 244, 0.18);
  --aboj-muted: rgba(255, 238, 250, 0.72);
  --aboj-accent: #ffd9ee;
  --aboj-shadow: 0 1rem 2rem rgba(126, 52, 104, 0.14);
}

html[data-page="discussion_main"],
html[data-page="discussion_detail"],
html[data-page="discussion_edit"],
html[data-page="discussion_create"],
html[data-aboj-discussion-form="ready"],
html[data-page="user_login"],
html[data-page="user_register"],
html[data-page="user_lostpass"],
html[data-page="user_sudo"],
html[data-aboj-page-family="workspace"],
html[data-aboj-page-family="identity"] {
  --aboj-bg:
    radial-gradient(circle at 82% 12%, rgba(255, 232, 176, 0.3), transparent 20rem),
    radial-gradient(circle at 12% 84%, rgba(255, 200, 133, 0.2), transparent 18rem),
    #eea066;
  --aboj-surface: rgba(168, 107, 58, 0.78);
  --aboj-header: rgba(239, 160, 90, 0.52);
  --aboj-border: rgba(255, 234, 202, 0.18);
  --aboj-muted: rgba(255, 246, 232, 0.74);
  --aboj-accent: #ffe1ab;
  --aboj-shadow: 0 1rem 2rem rgba(211, 131, 67, 0.12);
}

html[data-aboj-page-family="identity"],
html[data-aboj-page-family="workspace"],
html[data-page="record_main"],
html[data-page="ranking"],
html[data-page="training_main"],
html[data-page="status"] {
  --aboj-bg:
    radial-gradient(circle at 84% 10%, rgba(191, 231, 255, 0.34), transparent 22rem),
    radial-gradient(circle at 18% 84%, rgba(143, 201, 241, 0.22), transparent 20rem),
    #67a8e7;
  --aboj-surface: rgba(255, 255, 255, 0.84);
  --aboj-header: rgba(64, 137, 201, 0.16);
  --aboj-border: rgba(36, 96, 154, 0.16);
  --aboj-text: #183657;
  --aboj-muted: rgba(33, 69, 108, 0.66);
  --aboj-title: #102c4d;
  --aboj-accent: #1268b3;
  --aboj-accent-strong: #0b5ca3;
  --aboj-dark: #2f2551;
  --aboj-shadow: 0 1rem 2.2rem rgba(29, 82, 130, 0.12);
}

html[data-aboj-shell="ready"].theme--light,
html[data-aboj-shell="ready"].theme--dark {
  --primary-color: var(--aboj-accent-strong) !important;
  --primary-hover: rgba(255, 255, 255, 0.1) !important;
  --primary-active: var(--aboj-accent) !important;
  --header-bg: var(--aboj-header) !important;
  --body-bg: transparent !important;
  --card-bg: var(--aboj-surface) !important;
  --border-color: var(--aboj-border) !important;
  --text-color: var(--aboj-text) !important;
}

html[data-aboj-shell="ready"],
html[data-aboj-shell="ready"] body {
  min-width: 320px;
  background: var(--aboj-bg) !important;
}

html[data-aboj-shell="ready"] #panel {
  min-height: 100vh;
  background: var(--aboj-bg) !important;
}

html[data-aboj-shell="ready"] body {
  overflow-x: hidden;
  color: var(--aboj-text) !important;
  font-family: "Source Sans 3", "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif !important;
}

html[data-aboj-shell="ready"] body,
html[data-aboj-shell="ready"] button,
html[data-aboj-shell="ready"] input,
html[data-aboj-shell="ready"] select,
html[data-aboj-shell="ready"] textarea {
  font-family: inherit !important;
}

html[data-aboj-shell="ready"] #panel,
html[data-aboj-shell="ready"] .main,
html[data-aboj-shell="ready"] .footer,
html[data-aboj-shell="ready"] .nav,
html[data-aboj-shell="ready"] .header--mobile,
html[data-aboj-shell="ready"] .dialog {
  position: relative;
  z-index: 1;
}

html[data-aboj-shell="ready"] .row {
  max-width: none !important;
}

html[data-aboj-shell="ready"] .columns {
  box-sizing: border-box;
  padding-left: 14px !important;
  padding-right: 14px !important;
}

html[data-aboj-shell="ready"] .main {
  width: min(82rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

html[data-aboj-shell="ready"] .main > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html[data-aboj-shell="ready"] a,
html[data-aboj-shell="ready"] .typo a,
html[data-aboj-shell="ready"] .link,
html[data-aboj-shell="ready"] .menu__link {
  color: var(--aboj-accent) !important;
  transition: color 180ms ease, opacity 180ms ease, transform 180ms ease;
}

html[data-aboj-shell="ready"] a:hover,
html[data-aboj-shell="ready"] .link:hover,
html[data-aboj-shell="ready"] .menu__link:hover {
  color: inherit !important;
}

html[data-aboj-shell="ready"] .menu__link:hover,
html[data-aboj-shell="ready"] .section__tab:hover,
html[data-aboj-shell="ready"] .tab__item:hover,
html[data-aboj-shell="ready"] .profile-header__contact-item:hover {
  color: inherit !important;
  background: inherit !important;
}

html[data-aboj-shell="ready"] .section,
html[data-aboj-shell="ready"] .immersive--content,
html[data-aboj-shell="ready"] .dialog__content {
  position: relative;
  opacity: 1 !important;
  transform: none !important;
  overflow: hidden;
  border: 1px solid var(--aboj-border) !important;
  border-radius: var(--aboj-radius-lg) !important;
  background: var(--aboj-surface) !important;
  box-shadow: var(--aboj-shadow) !important;
  color: var(--aboj-text) !important;
  backdrop-filter: blur(10px);
}

html[data-aboj-page-family="identity"] .section,
html[data-aboj-page-family="identity"] .immersive--content,
html[data-aboj-page-family="identity"] .dialog__content {
  overflow: visible;
}

html[data-aboj-shell="ready"] .section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  background: var(--aboj-header) !important;
}

html[data-aboj-shell="ready"] .section__body {
  color: var(--aboj-text) !important;
}

html[data-aboj-shell="ready"] .section__title,
html[data-aboj-shell="ready"] .contest__title,
html[data-aboj-shell="ready"] .discussion__title,
html[data-aboj-shell="ready"] .status_title,
html[data-aboj-shell="ready"] h1,
html[data-aboj-shell="ready"] h2,
html[data-aboj-shell="ready"] h3 {
  color: var(--aboj-title) !important;
  letter-spacing: 0 !important;
}

html[data-aboj-shell="ready"] .section__title {
  margin: 0;
  font-size: 1rem !important;
  line-height: 1.2 !important;
  font-weight: 800 !important;
  text-transform: none !important;
}

html[data-aboj-shell="ready"] .supplementary,
html[data-aboj-shell="ready"] .time,
html[data-aboj-shell="ready"] .numbox__text,
html[data-aboj-shell="ready"] .contest__date .numbox__text,
html[data-aboj-shell="ready"] .typo .supplementary {
  color: var(--aboj-muted) !important;
}

html[data-aboj-shell="ready"] .numbox__num,
html[data-aboj-shell="ready"] .contest__date .large,
html[data-aboj-shell="ready"] .discussion__replies .large {
  color: #ffffff !important;
}

html[data-aboj-shell="ready"] .button,
html[data-aboj-shell="ready"] button,
html[data-aboj-shell="ready"] input[type="submit"],
html[data-aboj-shell="ready"] .nav__item--round,
html[data-aboj-shell="ready"] .detail-button {
  min-height: 2.6rem;
  border: 1px solid var(--aboj-border) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

html[data-aboj-shell="ready"] .button.primary,
html[data-aboj-shell="ready"] input[type="submit"].primary,
html[data-aboj-shell="ready"] .detail-button,
html[data-aboj-shell="ready"] .button.inverse.primary {
  border-color: rgba(255, 255, 255, 0.4) !important;
  background: #ffffff !important;
  color: var(--aboj-dark) !important;
  font-weight: 800;
}

html[data-aboj-shell="ready"] .button:hover,
html[data-aboj-shell="ready"] button:hover,
html[data-aboj-shell="ready"] input[type="submit"]:hover,
html[data-aboj-shell="ready"] .detail-button:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.62) !important;
  box-shadow: 0 0.72rem 1.35rem rgba(0, 0, 0, 0.12) !important;
}

html[data-aboj-shell="ready"] .textbox,
html[data-aboj-shell="ready"] .select,
html[data-aboj-shell="ready"] .search input,
html[data-aboj-shell="ready"] .search-sort,
html[data-aboj-shell="ready"] input[type="text"],
html[data-aboj-shell="ready"] input[type="password"],
html[data-aboj-shell="ready"] input[type="email"],
html[data-aboj-shell="ready"] select,
html[data-aboj-shell="ready"] textarea {
  border: 1px solid var(--aboj-border) !important;
  border-radius: var(--aboj-radius-sm) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

html[data-aboj-shell="ready"] input::placeholder,
html[data-aboj-shell="ready"] textarea::placeholder {
  color: rgba(255, 255, 255, 0.58) !important;
}

html[data-aboj-shell="ready"] .data-table {
  width: 100%;
  color: var(--aboj-text) !important;
}

html[data-aboj-shell="ready"] .data-table th {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
}

html[data-aboj-shell="ready"] .data-table td,
html[data-aboj-shell="ready"] .data-table th {
  border-color: rgba(255, 255, 255, 0.07) !important;
}

html[data-aboj-shell="ready"] .data-table tbody tr {
  background: rgba(255, 255, 255, 0.05);
}

html[data-aboj-shell="ready"] .data-table tbody tr:nth-child(2n) {
  background: rgba(255, 255, 255, 0.09);
}

html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) label,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .form__item,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .form__item > span,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .form__help,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .help,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .hint,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .typo,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .typo p,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .typo li,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .typo dt,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .typo dd,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .checkbox {
  color: rgba(255, 255, 255, 0.92) !important;
  opacity: 1 !important;
}

html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .supplementary,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .typo .supplementary,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) .time,
html[data-aboj-shell="ready"]:not([data-aboj-page-family="workspace"]):not([data-aboj-page-family="identity"]) small {
  color: rgba(255, 255, 255, 0.78) !important;
  opacity: 1 !important;
}

html[data-aboj-shell="ready"] label.checkbox {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  width: auto !important;
  min-height: 1.9rem;
  margin: 0 0.75rem 0.9rem 0 !important;
  cursor: pointer;
  line-height: 1.25 !important;
}

html[data-aboj-shell="ready"] input[type="checkbox"].checkbox {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: inline-grid !important;
  place-content: center;
  flex: 0 0 auto;
  width: 1.1rem !important;
  height: 1.1rem !important;
  min-width: 1.1rem;
  min-height: 1.1rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid rgba(255, 255, 255, 0.76) !important;
  border-radius: 0.32rem !important;
  background: rgba(255, 255, 255, 0.14) !important;
  cursor: pointer;
  vertical-align: -0.15rem;
}

html[data-aboj-shell="ready"] input[type="checkbox"].checkbox:checked {
  border-color: #ffffff !important;
  background: #ffffff !important;
}

html[data-aboj-shell="ready"] input[type="checkbox"].checkbox:checked::after {
  width: 0.34rem;
  height: 0.64rem;
  border: solid var(--aboj-dark);
  border-width: 0 2px 2px 0;
  content: "";
  transform: rotate(45deg) translateY(-1px);
}

html[data-aboj-page-family="identity"] input[type="checkbox"].checkbox,
html[data-aboj-page-family="workspace"] input[type="checkbox"].checkbox {
  border-color: rgba(26, 91, 150, 0.34) !important;
  background: rgba(248, 252, 255, 0.94) !important;
}

html[data-aboj-page-family="identity"] input[type="checkbox"].checkbox:checked,
html[data-aboj-page-family="workspace"] input[type="checkbox"].checkbox:checked {
  border-color: #1268b3 !important;
  background: #1268b3 !important;
}

html[data-aboj-page-family="identity"] input[type="checkbox"].checkbox:checked::after,
html[data-aboj-page-family="workspace"] input[type="checkbox"].checkbox:checked::after {
  border-color: #ffffff;
}

html[data-aboj-shell="ready"] .pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 20px 0 !important;
}

html[data-aboj-shell="ready"] .pager__item {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.08);
  color: var(--aboj-text) !important;
  padding: 8px 14px !important;
}

html[data-aboj-shell="ready"] .pager__item.current {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}

html[data-aboj-shell="ready"] .problem__tag-link,
html[data-aboj-shell="ready"] .discussion-node-tag,
html[data-aboj-shell="ready"] .contest-type-tag,
html[data-aboj-shell="ready"] .chip-list__item a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff !important;
}

html[data-aboj-shell="ready"] .footer {
  display: none !important;
}

html[data-aboj-shell="ready"] .footer .row {
  border: 1px solid var(--aboj-border);
  border-radius: var(--aboj-radius-lg);
  background: rgba(49, 36, 80, 0.25);
}

html[data-aboj-shell="ready"] .footer[data-aboj-footer="trimmed"] .footer__extra-link {
  display: flex;
  justify-content: center;
  padding: 1rem 1.2rem !important;
}

html[data-aboj-shell="ready"] .footer[data-aboj-footer="trimmed"] .footer__extra-left {
  display: none !important;
}

html[data-aboj-shell="ready"] .aboj-topbar-shell {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(82rem, calc(100% - 4rem));
  margin: 0 auto;
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

html[data-page="homepage"] .aboj-topbar-shell {
  background: linear-gradient(90deg, rgba(96, 160, 226, 0.94), rgba(142, 220, 250, 0.58));
}

html[data-page="problem_main"] .aboj-topbar-shell,
html[data-page="problem_detail"] .aboj-topbar-shell {
  background: linear-gradient(90deg, rgba(98, 153, 113, 0.94), rgba(203, 242, 154, 0.48));
}

html[data-page="contest_main"] .aboj-topbar-shell,
html[data-page="contest_detail"] .aboj-topbar-shell {
  background: linear-gradient(90deg, rgba(178, 74, 144, 0.94), rgba(223, 112, 178, 0.48));
}

html[data-page="discussion_main"] .aboj-topbar-shell,
html[data-page="discussion_detail"] .aboj-topbar-shell,
html[data-page="discussion_edit"] .aboj-topbar-shell,
html[data-page="discussion_create"] .aboj-topbar-shell,
html[data-aboj-discussion-form="ready"] .aboj-topbar-shell,
html[data-page="user_login"] .aboj-topbar-shell,
html[data-page="user_register"] .aboj-topbar-shell {
  background: linear-gradient(90deg, rgba(235, 154, 86, 0.94), rgba(255, 222, 160, 0.48));
}

html[data-aboj-page-family="identity"] .aboj-topbar-shell,
html[data-aboj-page-family="workspace"] .aboj-topbar-shell,
html[data-page="record_main"] .aboj-topbar-shell,
html[data-page="ranking"] .aboj-topbar-shell,
html[data-page="training_main"] .aboj-topbar-shell,
html[data-page="status"] .aboj-topbar-shell {
  background: linear-gradient(90deg, rgba(91, 163, 226, 0.95), rgba(160, 215, 250, 0.54));
}

html[data-aboj-shell="ready"] .aboj-topbar-left,
html[data-aboj-shell="ready"] .aboj-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

html[data-aboj-shell="ready"] .aboj-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0 1rem;
  border: 1px solid var(--aboj-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.88rem;
  font-weight: 800;
  text-decoration: none !important;
}

html[data-aboj-shell="ready"] .aboj-pill--primary {
  background: #ffffff !important;
  color: var(--aboj-dark) !important;
}

html[data-aboj-shell="ready"] .aboj-pill--main-site {
  min-width: 4.55rem;
}

html[data-aboj-shell="ready"] .aboj-user-menu {
  position: relative;
}

html[data-aboj-shell="ready"] .aboj-user-menu summary {
  cursor: pointer;
  list-style: none;
}

html[data-aboj-shell="ready"] .aboj-user-menu summary::-webkit-details-marker {
  display: none;
}

html[data-aboj-shell="ready"] .aboj-menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  display: none;
  width: 16.5rem;
  max-height: min(28rem, calc(100vh - 6rem));
  overflow: auto;
  padding: 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 1rem;
  background: rgba(49, 36, 80, 0.96);
  box-shadow: 0 1rem 2rem rgba(35, 22, 65, 0.28);
}

html[data-aboj-shell="ready"] .aboj-user-menu[open] .aboj-menu-panel {
  display: grid;
  gap: 0.25rem;
}

html[data-aboj-shell="ready"] .aboj-menu-panel a {
  display: block;
  padding: 0.7rem 0.8rem;
  border-radius: 0.75rem;
  color: rgba(255, 255, 255, 0.86) !important;
  text-decoration: none !important;
}

html[data-aboj-shell="ready"] .aboj-menu-section {
  display: grid;
  gap: 0.2rem;
  padding: 0.25rem 0 0.55rem;
}

html[data-aboj-shell="ready"] .aboj-menu-section + .aboj-menu-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.55rem;
}

html[data-aboj-shell="ready"] .aboj-menu-section-title {
  padding: 0.3rem 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.72rem;
  font-weight: 900;
}

html[data-aboj-shell="ready"] .aboj-menu-section--admin a {
  color: #ffd9ee !important;
}

html[data-aboj-shell="ready"] .aboj-menu-panel a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86) !important;
}

html[data-page="homepage"] .main > .row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.82fr);
  gap: 1rem;
  align-items: start;
}

html[data-page="homepage"] .large-12.columns {
  grid-column: 1 / -1;
}

html[data-page="homepage"] .large-9.columns,
html[data-page="homepage"] .large-3.columns {
  width: auto !important;
  float: none !important;
}

html[data-page="homepage"] .large-9.columns {
  grid-column: 1;
}

html[data-page="homepage"] .large-3.columns {
  grid-column: 2;
  display: grid;
  gap: 1rem;
}

html[data-page="homepage"] .mySwiper {
  min-height: 22rem;
  border: 1px solid rgba(223, 244, 255, 0.22);
  border-radius: var(--aboj-radius-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--aboj-shadow);
  overflow: hidden;
}

html[data-page="homepage"] .mySwiper .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
}

html[data-page="homepage"] .mySwiper .swiper-slide img {
  width: 100% !important;
  height: 22rem !important;
  object-fit: cover;
  object-position: center center;
  border-radius: calc(var(--aboj-radius-lg) - 0.2rem);
}

html[data-page="homepage"] .swiper-button-next,
html[data-page="homepage"] .swiper-button-prev,
html[data-page="homepage"] .swiper-pagination {
  display: none !important;
}

html[data-page="homepage"] .page--contest_main .section__list,
html[data-page="homepage"] .page--discussion_main .section__list {
  max-height: 370px;
  overflow: auto;
  padding-right: 10px;
}

html[data-page="problem_main"] .main > .row,
html[data-page="discussion_main"] .main > .row,
html[data-page="problem_detail"] .main > .row,
html[data-page="discussion_detail"] .main > .row,
html[data-page="contest_detail"] .main > .row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
  gap: 1rem;
  align-items: start;
}

html[data-page="problem_main"] .medium-9.columns,
html[data-page="problem_main"] .medium-3.columns,
html[data-page="discussion_main"] .medium-9.columns,
html[data-page="discussion_main"] .medium-3.columns,
html[data-page="contest_main"] .medium-9.columns,
html[data-page="contest_main"] .medium-3.columns,
html[data-page="problem_detail"] .medium-9.columns,
html[data-page="problem_detail"] .medium-3.columns,
html[data-page="discussion_detail"] .medium-9.columns,
html[data-page="discussion_detail"] .medium-3.columns,
html[data-page="contest_detail"] .medium-9.columns,
html[data-page="contest_detail"] .medium-3.columns {
  width: auto !important;
  float: none !important;
  grid-column: auto !important;
}

html[data-page="problem_main"] .medium-9.columns,
html[data-page="discussion_main"] .medium-9.columns,
html[data-page="problem_detail"] .medium-9.columns,
html[data-page="discussion_detail"] .medium-9.columns,
html[data-page="contest_detail"] .medium-9.columns {
  grid-column: 1 !important;
  grid-row: 1 !important;
}

html[data-page="problem_main"] .medium-3.columns,
html[data-page="discussion_main"] .medium-3.columns,
html[data-page="problem_detail"] .medium-3.columns,
html[data-page="discussion_detail"] .medium-3.columns,
html[data-page="contest_detail"] .medium-3.columns {
  grid-column: 2 !important;
  grid-row: 1 !important;
}

html[data-page="contest_main"] .main > .row {
  display: block;
}

html[data-page="contest_main"] .medium-9.columns {
  display: block !important;
  width: 100% !important;
}

html[data-page="contest_main"] .medium-3.columns:empty {
  display: none !important;
}

html[data-page="problem_main"] [data-fragment-id="problem_list"],
html[data-page="discussion_main"] .discussion__list,
html[data-page="contest_main"] .contest__list {
  max-height: calc(100vh - 300px);
  overflow: auto;
  padding-right: 8px;
}

html[data-page="problem_main"] .data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
}

html[data-page="problem_main"] .main,
html[data-page="contest_main"] .main,
html[data-page="discussion_main"] .main {
  padding-top: 1.2rem;
  padding-bottom: 1.1rem;
}

html[data-page="problem_main"] .section__header,
html[data-page="contest_main"] .section__header,
html[data-page="discussion_main"] .section__header {
  padding-top: 0.72rem !important;
  padding-bottom: 0.72rem !important;
}

html[data-page="problem_main"] .section,
html[data-page="contest_main"] .section,
html[data-page="discussion_main"] .section {
  border-radius: 1.15rem !important;
}

html[data-page="problem_main"] [data-fragment-id="problem_list"],
html[data-page="discussion_main"] .discussion__list,
html[data-page="contest_main"] .contest__list {
  max-height: none;
  overflow: visible;
}

html[data-page="problem_main"] .data-table th,
html[data-page="problem_main"] .data-table td {
  padding-top: 0.42rem !important;
  padding-bottom: 0.42rem !important;
}

html[data-page="problem_main"] .pager {
  padding-top: 0.72rem !important;
}

html[data-page="contest_main"] .section--contest[data-aboj-contest-hero="ready"] {
  padding: 0.85rem;
}

html[data-page="contest_main"] .aboj-contest-banner {
  min-height: 15.2rem;
  padding: 1.55rem;
}

html[data-page="contest_main"] .contest__item,
html[data-page="discussion_main"] .discussion__item {
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

html[data-page="contest_main"] .contest__item .media,
html[data-page="discussion_main"] .discussion__item .media {
  min-height: 4.25rem;
}

html[data-page="contest_main"] .pager,
html[data-page="discussion_main"] .pager {
  padding-top: 0.65rem !important;
}

html[data-aboj-shell="ready"] .discussion__item,
html[data-aboj-shell="ready"] .contest__item {
  display: block !important;
  width: auto !important;
  margin: 12px 14px !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--aboj-radius-md);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

html[data-aboj-shell="ready"] .discussion__item:hover,
html[data-aboj-shell="ready"] .contest__item:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

html[data-aboj-shell="ready"] .discussion__item .media,
html[data-aboj-shell="ready"] .contest__item .media {
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  width: 100%;
}

html[data-aboj-shell="ready"] .discussion__replies,
html[data-aboj-shell="ready"] .contest__date {
  min-width: 84px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 1rem !important;
  background: rgba(255, 255, 255, 0.11) !important;
}

html[data-page="contest_main"] .section--contest[data-aboj-contest-hero="ready"] {
  padding: 1rem;
  border-radius: var(--aboj-radius-lg) !important;
  background: rgba(96, 48, 95, 0.78) !important;
}

html[data-page="contest_main"] .section--contest[data-aboj-contest-hero="ready"] > .media {
  display: none !important;
}

html[data-page="contest_main"] .aboj-contest-banner {
  display: flex;
  align-items: center;
  min-height: 18.5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: calc(var(--aboj-radius-lg) - 0.35rem);
  background-image:
    linear-gradient(90deg, rgba(57, 58, 169, 0.98) 0%, rgba(57, 58, 169, 0.94) 35%, rgba(57, 58, 169, 0.34) 58%, rgba(57, 58, 169, 0.02) 78%),
    url("OJ2.png?v=20260508182932");
  background-position: left top, right center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, auto 100%;
  color: #ffffff !important;
  text-decoration: none !important;
}

html[data-page="contest_main"] .aboj-contest-copy {
  display: grid;
  width: clamp(20rem, 31vw, 23rem);
  max-width: 23rem;
  gap: 0.72rem;
}

html[data-page="contest_main"] .aboj-contest-kicker {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

html[data-page="contest_main"] .aboj-contest-kicker span {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 800;
}

html[data-page="contest_main"] .aboj-contest-line {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 250, 242, 0.96);
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 800;
  white-space: nowrap;
}

html[data-page="contest_main"] .aboj-contest-title {
  padding: 0;
  background: transparent;
  color: #ffffff;
  font-size: 1.02rem;
  line-height: 1.12;
}

html[data-page="contest_main"] form[name="filter-form"] {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  width: 100%;
}

html[data-page="contest_main"] form[name="filter-form"] .textbox,
html[data-page="contest_main"] form[name="filter-form"] .select,
html[data-page="contest_main"] form[name="filter-form"] button {
  min-height: 40px;
}

html[data-page="problem_detail"] .problem-content-container,
html[data-page="problem_detail"] .problem-content,
html[data-page="discussion_detail"] .topic__content {
  background: transparent !important;
}

html[data-page="problem_detail"] .section__body.typo,
html[data-page="problem_detail"] .section__body.typo p,
html[data-page="problem_detail"] .section__body.typo li,
html[data-page="problem_detail"] .section__body.typo strong,
html[data-page="problem_detail"] .section__body.typo blockquote,
html[data-page="discussion_detail"] .topic__content,
html[data-page="discussion_detail"] .topic__content p,
html[data-page="discussion_detail"] .topic__content li,
html[data-page="discussion_detail"] .topic__content strong {
  color: rgba(255, 255, 255, 0.9) !important;
  opacity: 1 !important;
}

html[data-page="problem_detail"] .section__body.typo pre,
html[data-page="problem_detail"] .section__body.typo code,
html[data-page="discussion_detail"] .topic__content pre,
html[data-page="discussion_detail"] .topic__content code {
  background: rgba(30, 24, 52, 0.72) !important;
  color: #f3fbff !important;
}

html[data-page="user_login"] .main,
html[data-page="user_register"] .main,
html[data-page="user_lostpass"] .main,
html[data-page="user_sudo"] .main,
html[data-aboj-page-family="identity"] .main {
  min-height: calc(100vh - 180px);
  display: grid;
  align-items: center;
}

html[data-page="user_login"] .immersive--content,
html[data-page="user_register"] .immersive--content,
html[data-page="user_lostpass"] .immersive--content,
html[data-page="user_sudo"] .immersive--content,
html[data-aboj-page-family="identity"] .immersive--content {
  max-width: 480px;
  margin: 0 auto;
  padding: 32px 34px 28px;
  border: 1px solid rgba(30, 86, 142, 0.14) !important;
  border-radius: 1.2rem !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: #183657 !important;
  box-shadow: 0 1rem 2.1rem rgba(32, 96, 152, 0.16) !important;
  backdrop-filter: blur(8px);
}

html[data-page="user_login"] .immersive--content h1,
html[data-page="user_register"] .immersive--content h1,
html[data-page="user_lostpass"] .immersive--content h1,
html[data-page="user_sudo"] .immersive--content h1,
html[data-aboj-page-family="identity"] .immersive--content h1 {
  text-align: center;
  color: #102c4d !important;
  font-size: 1.75rem !important;
}

html[data-aboj-page-family="identity"] .immersive--content label,
html[data-aboj-page-family="identity"] .immersive--content .checkbox,
html[data-aboj-page-family="identity"] .immersive--content p,
html[data-aboj-page-family="identity"] .immersive--content a {
  color: #183657 !important;
}

html[data-aboj-page-family="identity"] .immersive--content .material.textbox {
  display: block;
  min-height: auto;
  margin-bottom: 0.65rem;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #183657 !important;
}

html[data-aboj-page-family="identity"] .immersive--content .material.textbox > span,
html[data-aboj-page-family="identity"] .immersive--content .material.textbox > .textbox__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #183657 !important;
  font-weight: 800;
}

html[data-aboj-page-family="identity"] .immersive--content .textbox,
html[data-aboj-page-family="identity"] .immersive--content input[type="text"],
html[data-aboj-page-family="identity"] .immersive--content input[type="password"],
html[data-aboj-page-family="identity"] .immersive--content input[type="email"] {
  height: auto !important;
  min-height: 3rem;
  padding: 0.72rem 1rem !important;
  border-color: rgba(26, 91, 150, 0.22) !important;
  background: rgba(248, 252, 255, 0.94) !important;
  color: #102c4d !important;
}

html[data-aboj-page-family="identity"] .immersive--content .material.textbox input[type="text"],
html[data-aboj-page-family="identity"] .immersive--content .material.textbox input[type="password"],
html[data-aboj-page-family="identity"] .immersive--content .material.textbox input[type="email"] {
  display: block;
  width: 100%;
}

html[data-aboj-page-family="identity"] .immersive--content input[type="submit"],
html[data-aboj-page-family="identity"] .immersive--content .button.primary {
  width: 100%;
  background: #ffffff !important;
  color: #102c4d !important;
}

html[data-aboj-page-family="identity"] .immersive--content .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html[data-aboj-page-family="identity"] .immersive--content .columns {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

html[data-aboj-page-family="identity"] .aboj-friendly-error {
  display: grid;
  gap: 1rem;
  padding: 0.5rem 0;
  text-align: center;
}

html[data-aboj-page-family="identity"] .aboj-friendly-error p {
  margin: 0;
  line-height: 1.7;
  color: rgba(24, 54, 87, 0.72) !important;
}

html[data-aboj-page-family="identity"] .section .section__body,
html[data-aboj-page-family="identity"] .section__body.typo,
html[data-aboj-page-family="identity"] .section__body.typo p,
html[data-aboj-page-family="identity"] .section__body.typo li,
html[data-aboj-page-family="identity"] .dialog__content,
html[data-aboj-page-family="identity"] .dialog__content p {
  color: #183657 !important;
  line-height: 1.7;
}

html[data-aboj-page-family="workspace"] .main,
html[data-page="record_main"] .main,
html[data-page="ranking"] .main,
html[data-page="training_main"] .main,
html[data-page="status"] .main {
  width: min(78rem, calc(100% - 4rem));
}

html[data-aboj-page-family="workspace"] .section,
html[data-page="record_main"] .section,
html[data-page="ranking"] .section,
html[data-page="training_main"] .section,
html[data-page="status"] .section {
  background: rgba(255, 255, 255, 0.86) !important;
  color: #183657 !important;
}

html[data-aboj-page-family="workspace"] .section__header,
html[data-page="record_main"] .section__header,
html[data-page="ranking"] .section__header,
html[data-page="training_main"] .section__header,
html[data-page="status"] .section__header {
  background: rgba(72, 146, 211, 0.16) !important;
  color: #102c4d !important;
}

html[data-aboj-page-family="workspace"] .section__body,
html[data-aboj-page-family="workspace"] label,
html[data-aboj-page-family="workspace"] .typo,
html[data-aboj-page-family="workspace"] .typo p,
html[data-page="record_main"] label,
html[data-page="ranking"] .data-table,
html[data-page="training_main"] .section__body,
html[data-page="status"] .section__body {
  color: #183657 !important;
}

html[data-aboj-page-family="workspace"] .supplementary,
html[data-aboj-page-family="workspace"] .typo .supplementary,
html[data-page="record_main"] .supplementary,
html[data-page="training_main"] .supplementary {
  color: rgba(33, 69, 108, 0.68) !important;
}

html[data-aboj-page-family="workspace"] .textbox,
html[data-aboj-page-family="workspace"] .select,
html[data-aboj-page-family="workspace"] input[type="text"],
html[data-aboj-page-family="workspace"] input[type="password"],
html[data-aboj-page-family="workspace"] select,
html[data-aboj-page-family="workspace"] textarea,
html[data-page="record_main"] .textbox,
html[data-page="record_main"] .select,
html[data-page="record_main"] input[type="text"],
html[data-page="record_main"] select {
  border-color: rgba(26, 91, 150, 0.18) !important;
  background: rgba(248, 252, 255, 0.94) !important;
  color: #102c4d !important;
}

html[data-aboj-page-family="workspace"] input::placeholder,
html[data-aboj-page-family="workspace"] textarea::placeholder {
  color: rgba(24, 54, 87, 0.46) !important;
}

html[data-aboj-page-family="workspace"] .button,
html[data-aboj-page-family="workspace"] button,
html[data-aboj-page-family="workspace"] input[type="submit"],
html[data-page="record_main"] .button,
html[data-page="record_main"] button,
html[data-page="record_main"] input[type="submit"] {
  border-color: rgba(26, 91, 150, 0.2) !important;
  background: rgba(255, 255, 255, 0.82) !important;
  color: #102c4d !important;
}

html[data-aboj-page-family="workspace"] .button.primary,
html[data-aboj-page-family="workspace"] input[type="submit"].primary,
html[data-page="record_main"] .button.primary {
  background: #ffffff !important;
  color: #102c4d !important;
}

html[data-aboj-page-family="workspace"] .menu,
html[data-aboj-page-family="workspace"] .menu__link {
  color: #183657 !important;
}

html[data-aboj-page-family="workspace"] .menu {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(26, 91, 150, 0.14) !important;
  border-radius: 1rem;
  overflow: hidden;
}

html[data-aboj-page-family="workspace"] .menu__link:hover {
  color: #183657 !important;
  background: rgba(18, 104, 179, 0.08) !important;
}

html[data-aboj-page-family="workspace"] .menu__link.active {
  background: rgba(18, 104, 179, 0.82) !important;
  color: #ffffff !important;
}

html[data-page="home_messages"] .messagepad,
html[data-page="home_messages"] .messagepad__main,
html[data-page="home_messages"] .messagepad__aside {
  background: rgba(255, 255, 255, 0.86) !important;
  color: #183657 !important;
}

html[data-page="home_messages"] .messagepad__aside {
  border-right-color: rgba(26, 91, 150, 0.16) !important;
}

html[data-aboj-shell="ready"] .aboj-empty-state {
  display: grid;
  place-items: center;
  min-height: 16rem;
  gap: 0.45rem;
  color: rgba(24, 54, 87, 0.66);
  text-align: center;
}

html[data-aboj-shell="ready"] .aboj-empty-state strong {
  color: #102c4d;
  font-size: 1.15rem;
}

html[data-page="record_main"] .section .media,
html[data-page="record_main"] .section__body {
  color: #183657 !important;
}

html[data-page="ranking"] .data-table th,
html[data-page="ranking"] .data-table td,
html[data-page="record_main"] .data-table th,
html[data-page="record_main"] .data-table td,
html[data-page="home_files"] .data-table th,
html[data-page="home_files"] .data-table td {
  color: #183657 !important;
  border-color: rgba(26, 91, 150, 0.11) !important;
}

html[data-page="ranking"] .data-table th,
html[data-page="record_main"] .data-table th,
html[data-page="home_files"] .data-table th {
  background: rgba(72, 146, 211, 0.16) !important;
  color: #102c4d !important;
}

html[data-page="ranking"] .data-table tbody tr,
html[data-page="record_main"] .data-table tbody tr,
html[data-page="home_files"] .data-table tbody tr {
  background: rgba(255, 255, 255, 0.58) !important;
}

html[data-page="ranking"] .data-table tbody tr:nth-child(2n),
html[data-page="record_main"] .data-table tbody tr:nth-child(2n),
html[data-page="home_files"] .data-table tbody tr:nth-child(2n) {
  background: rgba(229, 243, 255, 0.78) !important;
}

html[data-page="home_preference"] .section__body {
  max-height: calc(100vh - 11.5rem);
  overflow: auto;
}

html[data-page="home_preference"] [data-aboj-pref-hidden="true"] {
  display: none !important;
}

html[data-page="home_preference"] select[name="timeZone"] {
  max-height: 3rem;
}

html[data-page="home_preference"] option {
  color: #102c4d;
  background: #ffffff;
}

html[data-aboj-shell="ready"] .slideout-overlay {
  display: none !important;
}

html[data-aboj-shell="ready"] .page-loader {
  display: none !important;
}

@media (min-width: 1100px) {
  html[data-aboj-shell="ready"] body .nav,
  html[data-aboj-shell="ready"] body .nav.slideout-menu {
    position: fixed !important;
    inset: 0 auto 0 0;
    width: var(--aboj-sidebar-width) !important;
    min-width: var(--aboj-sidebar-width) !important;
    max-width: var(--aboj-sidebar-width) !important;
    height: 100vh;
    padding: 2.4rem 2.2rem;
    border-right: 0;
    border-bottom: 0 !important;
    background: var(--aboj-dark) !important;
    box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.05);
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  html[data-aboj-shell="ready"] body .nav > .row {
    display: none !important;
  }

  html[data-aboj-shell="ready"] body #panel {
    margin-left: var(--aboj-sidebar-width) !important;
  }

  html[data-aboj-shell="ready"] body .header--mobile,
  html[data-aboj-shell="ready"] body .header__hamburger,
  html[data-aboj-shell="ready"] body .nav--shadow {
    display: none !important;
  }

  html[data-aboj-shell="ready"] .aboj-sidebar-shell {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    justify-content: center;
  }

  html[data-aboj-shell="ready"] .aboj-sidebar-brand {
    display: block;
    margin-bottom: 2rem;
    color: #ffffff !important;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0 !important;
    text-decoration: none !important;
  }

  html[data-aboj-shell="ready"] .aboj-sidebar-main {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
  }

  html[data-aboj-shell="ready"] .aboj-sidebar-link {
    position: relative;
    display: block;
    padding: 1rem 0;
    color: rgba(255, 255, 255, 0.38) !important;
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0 !important;
    text-decoration: none !important;
  }

  html[data-aboj-shell="ready"] .aboj-sidebar-link::before,
  html[data-aboj-shell="ready"] .aboj-sidebar-link::after {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 0.2rem;
    border-radius: 999px;
    content: "";
  }

  html[data-aboj-shell="ready"] .aboj-sidebar-link::before {
    background: #3c2c62;
  }

  html[data-aboj-shell="ready"] .aboj-sidebar-link::after {
    max-width: 0;
    background-image: linear-gradient(to right, #5e42a6, #b74e91);
    transition: max-width 0.2s ease;
  }

  html[data-aboj-shell="ready"] .aboj-sidebar-link:hover,
  html[data-aboj-shell="ready"] .aboj-sidebar-link.is-active {
    color: #ffffff !important;
  }

  html[data-aboj-shell="ready"] .aboj-sidebar-link.is-active::after {
    max-width: 100%;
  }
}

@media (max-width: 1099px) {
  html[data-aboj-shell="ready"] .aboj-sidebar-shell {
    display: none !important;
  }

  html[data-aboj-shell="ready"] .main,
  html[data-aboj-shell="ready"] .footer,
  html[data-aboj-shell="ready"] .aboj-topbar-shell {
    width: min(100%, calc(100% - 2rem));
  }

  html[data-aboj-shell="ready"] .main {
    padding-top: 1.2rem;
  }

  html[data-page="homepage"] .main > .row,
  html[data-page="problem_main"] .main > .row,
  html[data-page="discussion_main"] .main > .row,
  html[data-page="problem_detail"] .main > .row,
  html[data-page="discussion_detail"] .main > .row,
  html[data-page="contest_detail"] .main > .row {
    display: block;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"],
  html[data-page="discussion_main"] .discussion__list,
  html[data-page="contest_main"] .contest__list,
  html[data-page="homepage"] .page--contest_main .section__list,
  html[data-page="homepage"] .page--discussion_main .section__list {
    max-height: none;
    overflow: visible;
  }

  html[data-page="homepage"] .mySwiper,
  html[data-page="homepage"] .mySwiper .swiper-slide img {
    min-height: 16rem;
    height: 16rem !important;
  }

  html[data-page="contest_main"] .aboj-contest-banner {
    min-height: 15rem;
    padding: 1.25rem;
    background-position: left top, right center;
  }

  html[data-page="contest_main"] .aboj-contest-copy {
    width: clamp(13rem, 48vw, 18rem);
  }

  html[data-page="contest_main"] .aboj-contest-line {
    font-size: 0.7rem;
    padding: 0.58rem 0.68rem;
  }

  html[data-page="contest_main"] .aboj-contest-title {
    font-size: 0.82rem;
  }
}

@media (max-width: 736px) {
  html[data-aboj-shell="ready"] body {
    font-size: 16px;
  }

  html[data-aboj-shell="ready"] .aboj-topbar-shell {
    align-items: flex-start;
    flex-direction: column;
  }

  html[data-aboj-shell="ready"] .discussion__item .media,
  html[data-aboj-shell="ready"] .contest__item .media {
    grid-template-columns: 1fr;
  }

  html[data-page="contest_main"] .aboj-contest-banner {
    min-height: 13.5rem;
    padding: 1rem;
    background-position: left top, right center;
  }

  html[data-page="contest_main"] .aboj-contest-copy {
    width: 10.5rem;
    max-width: 10.5rem;
    gap: 0.52rem;
  }

  html[data-page="contest_main"] .aboj-contest-kicker {
    gap: 0.4rem;
  }

  html[data-page="contest_main"] .aboj-contest-kicker span {
    min-height: 1.58rem;
    padding: 0 0.55rem;
    font-size: 0.6rem;
  }

  html[data-page="contest_main"] .aboj-contest-line {
    padding: 0.48rem 0.55rem;
    font-size: 0.56rem;
  }

  html[data-page="contest_main"] .aboj-contest-title {
    font-size: 0.64rem;
  }
}

@media (min-width: 1100px) {
  html[data-page="problem_main"] .main,
  html[data-page="contest_main"] .main,
  html[data-page="discussion_main"] .main {
    padding-top: 0.72rem;
    padding-bottom: 0.72rem;
  }

  html[data-page="problem_main"] .aboj-topbar-shell,
  html[data-page="contest_main"] .aboj-topbar-shell,
  html[data-page="discussion_main"] .aboj-topbar-shell {
    padding-top: 0.62rem;
    padding-bottom: 0.62rem;
  }

  html[data-page="problem_main"] .aboj-pill,
  html[data-page="contest_main"] .aboj-pill,
  html[data-page="discussion_main"] .aboj-pill {
    min-height: 2.25rem;
  }

  html[data-page="problem_main"] .section__header,
  html[data-page="contest_main"] .section__header,
  html[data-page="discussion_main"] .section__header {
    padding-top: 0.72rem !important;
    padding-bottom: 0.72rem !important;
  }

  html[data-page="problem_main"] .section,
  html[data-page="contest_main"] .section,
  html[data-page="discussion_main"] .section {
    border-radius: 1.15rem !important;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"],
  html[data-page="discussion_main"] .discussion__list,
  html[data-page="contest_main"] .contest__list {
    max-height: calc(100vh - 13.4rem);
    overflow: auto;
  }

  html[data-page="problem_main"] .medium-3.columns .section__body {
    height: calc(100% - 2.8rem);
    max-height: none;
    overflow: auto;
  }

  html[data-page="problem_main"] .medium-3.columns .section {
    height: calc(100vh - 8rem);
    max-height: calc(100vh - 8rem);
  }

  html[data-page="discussion_main"] .discussion__list {
    max-height: calc(100vh - 11.8rem);
  }

  html[data-page="problem_main"] .data-table th,
  html[data-page="problem_main"] .data-table td {
    padding-top: 0.42rem !important;
    padding-bottom: 0.42rem !important;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] > div[style*="height: 0px"] {
    display: none !important;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 14 !important;
    margin: 0 !important;
    box-shadow: 0 12px 28px rgba(23, 58, 28, 0.18);
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-header .data-table {
    width: 100% !important;
    border-radius: 0.95rem 0.95rem 0 0 !important;
    overflow: hidden;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-header th {
    background: rgba(47, 89, 54, 0.96) !important;
    color: #ffffff !important;
    border-color: rgba(222, 244, 223, 0.14) !important;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-container col.col--status,
  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-header col.col--status {
    width: 3.35rem !important;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-container td.col--status,
  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-header th.col--status {
    width: 3.35rem !important;
    min-width: 3.35rem !important;
    max-width: 3.35rem !important;
    padding-left: 0.55rem !important;
    padding-right: 0.35rem !important;
    white-space: nowrap;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] > .data-table thead th.col--status,
  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-header th.col--status {
    overflow: visible !important;
    text-overflow: clip !important;
    text-align: center !important;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] > .data-table thead th.col--name,
  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-header th.col--name {
    position: relative;
    padding-right: 10.6rem !important;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] > .data-table thead th.col--name .toggle-tag,
  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-header th.col--name .toggle-tag {
    position: absolute;
    top: 50%;
    right: 0.65rem;
    width: 9.75rem;
    margin: 0 !important;
    transform: translateY(-50%);
    text-align: left;
    white-space: nowrap;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] > .data-table thead th.col--name .toggle-tag.notag--hide,
  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-header th.col--name .toggle-tag.notag--hide {
    display: none !important;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] > .data-table thead th.col--name .toggle-tag.tag--hide,
  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-header th.col--name .toggle-tag.tag--hide {
    pointer-events: none;
    cursor: default;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-container td.col--name.col--problem-name {
    position: relative;
    padding-left: 1.8rem !important;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-container td.col--name.col--problem-name > .star-form {
    position: absolute;
    left: 0.3rem;
    top: 50%;
    margin: 0 !important;
    transform: translateY(-50%);
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] .section__table-container td.col--status {
    text-align: center !important;
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] .aboj-problem-order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.7rem;
    font-weight: 700;
    color: rgba(244, 255, 234, 0.9);
  }

  html[data-page="problem_main"] [data-fragment-id="problem_list"] table.data-table[data-aboj-tags-visible="true"] .problem__tags {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.28rem;
    margin-top: 0.14rem;
  }

  html[data-page="problem_main"] .pager,
  html[data-page="contest_main"] .pager,
  html[data-page="discussion_main"] .pager {
    padding-top: 0.65rem !important;
  }

  html[data-page="contest_main"] .section--contest[data-aboj-contest-hero="ready"] {
    padding: 0.85rem !important;
  }

  html[data-page="contest_main"] .aboj-contest-banner {
    min-height: 15.2rem;
    padding: 1.55rem;
  }

  html[data-page="contest_main"] .contest__item,
  html[data-page="discussion_main"] .discussion__item {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
  }

  html[data-page="contest_main"] .contest__item .media,
  html[data-page="discussion_main"] .discussion__item .media {
    min-height: 4.25rem;
  }
}

/* 修复阿里云验证码图标 */
@font-face {
    font-family: "aliyun-captcha-iconfont";
    src: url("data:application/font-woff2;base64,d09GMgABAAAAAALkAAsAAAAABsQAAAKWAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACCcAqBPIFbATYCJAMICwYABCAFhGcHNBsbBsguIScbXkQAFdTQssL1nfvZdRAAEA9P++M7d2Y+gEQ2KYPpNy9CW0eo1U19I5Q3v8tly9PaeNQqTnVHKyWf21zpydI0kkEJjMNhS1NgcS8c7mDGGbqsy2VfE8ZVW6+51wjbM68AJtNv0/z/v3f8G0Ab5B7Pbc1Fa+MD66RR1gdqrGURdvLQUxFvOehefkWg0ZIxTQdzKzus7ymnnPVr4TQHeWY8jQLOOmSfoiBZL9RSVxbxRQ3pbSp8jj8f/6xEPUlN5uQc38367GnumPy6ek3+5vVyNTgvoQYZc5hCnPfHDjWLNkqzRluLEVQWwU9VFRrEobVC+uuc9GYwDN4z8X3Bo7ImUOjOGubxpF7kgZ6eZ/eY8Zi2082MvV2m799Z8I5rGtvt0OS+ofE94xac7Oxu7O1s7e9t70Lz6wcxjgceOuPsxWNH7IxdbH1mvLT0DBaucVgMDophbHjsqLMYxOFGLX/o3cuQE7AhFo/fDobqdaH85gf/xuoXr20b/+ubCvjeT4aA5qD+DmzB75RfEZHF9JNKG19OJWua71DS6AapOK5Ov1NVXbedCvW6bt5RZyiHrN4IVsgzUKPJCtSqtwmNZs2ub9Kl1CxKAybcMQjtHiFp9RWyds9YIX9DjV5/UKvdPzS6jJbdmkzE9bRCTuhD/RYiUeTSU1KMdwuDy5SrpvAeKh0hCK7lVJPzmKOaY46+CjwiCVIVGcyJ52GaFlCqIkZBVkhUDtm2bHuLJYqMTVMQR5AP1N0CEaGQkyGayt+3BQUupThFxPZiihYBP3BZHAI2L8tJDQ+yj3Yl4CFEApJiiQyYk4ehVKoAyvZhMSQQSzghUhpiuyhJlVnbK7Jf2waNHHUKd1HWeJ0WGs00ypExAAA=") format("woff2");
}

/* 确保验证按钮可见 */
#verify-btn {
    color: #fff !important;
    background: #5dade2 !important;
}




/* 首页轮播图高度自适应 */
.swiper.mySwiper,
.swiper.mySwiper .swiper-wrapper {
    height: auto !important;
}
.aboj-hero-slide img,
.swiper-slide img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
}


/* 修复 sticky 表头位置 */
.section__table-header.is_stuck {
    top: 0 !important;
}

/* 修复弹窗定位（仅可见时） */
.dialog[style*="display: flex"], .dialog[style*="display:flex"] {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    align-items: center !important;
    justify-content: center !important;
}

/* flea 表头黑色 */
.flea-table thead th,
.page--flea_my .data-table thead th {
  background: #333 !important;
  color: #fff !important;
}

/* openapi 表头深色 */
.page--openapi_admin .data-table thead th {
  background: #333 !important;
  color: #fff !important;
}

/* ========== OpenAPI 测试页面黑色框+白字 ========== */
.page--openapi_test input,
.page--openapi_test select,
.page--openapi_test textarea {
    background-color: #1a1a2e !important;
    border: 1px solid #333 !important;
    color: #ffffff !important;
    border-radius: 6px !important;
}

.page--openapi_test input:focus,
.page--openapi_test select:focus,
.page--openapi_test textarea:focus {
    border-color: #e94560 !important;
    outline: none !important;
}

.page--openapi_test input::placeholder,
.page--openapi_test textarea::placeholder {
    color: #888 !important;
}

.page--openapi_test .result {
    background-color: #1a1a2e !important;
    border: 1px solid #333 !important;
    color: #00ff00 !important;
}

.page--openapi_test button {
    background: #e94560 !important;
    border: none !important;
    color: white !important;
}

.page--openapi_test button:hover {
    background: #c73a52 !important;
}

.page--openapi_test .card {
    background: #0f0f1a !important;
    border: 1px solid #333 !important;
}

.page--openapi_test h2 {
    color: #e94560 !important;
}

.page--openapi_test label {
    color: #ccc !important;
}

/* OpenAPI 管理页面表头深色 */
.page--openapi_admin .data-table thead th {
    background: #333 !important;
    color: #fff !important;
}

/* OpenAPI 测试页面容器 */
.page--openapi_test .container {
    background: transparent !important;
}

/* OpenAPI 管理页面输入框黑色背景+白色文字 */
.page--openapi_admin input.textbox,
.page--openapi_admin input[type="text"],
.page--openapi_admin input[type="number"],
.page--openapi_admin select {
    background-color: #1a1a2e !important;
    border: 1px solid #555 !important;
    color: #ffffff !important;
    border-radius: 4px !important;
}

.page--openapi_admin input.textbox:focus,
.page--openapi_admin input:focus,
.page--openapi_admin select:focus {
    border-color: #e94560 !important;
    outline: none !important;
}

.page--openapi_admin input::placeholder {
    color: #888 !important;
}

/* 表格内的输入框 */
.page--openapi_admin .data-table input[type="number"] {
    background-color: #1a1a2e !important;
    border: 1px solid #555 !important;
    color: #ffffff !important;
}

/* 按钮保持原有颜色，但文字清晰 */
.page--openapi_admin .button {
    color: #fff !important;
}

/* 表格深色背景优化 */
.page--openapi_admin .data-table {
    background-color: #0f0f1a !important;
}

.page--openapi_admin .data-table td {
    color: #ccc !important;
    border-color: #333 !important;
}

.page--openapi_admin .data-table th {
    background-color: #2a2a3e !important;
    color: #fff !important;
}

/* 配额显示数字可读 */
.page--openapi_admin .data-table td:nth-child(4) {
    color: #00ff00 !important;
    font-weight: bold !important;
}
