html.page--contest_exam,
html.page--contest_exam body,
html.huawei-exam,
html.huawei-exam body {
  overflow: hidden !important;
  height: 100%;
}
html.huawei-exam .footer,
html.huawei-exam .nav,
html.huawei-exam .nav--shadow,
html.huawei-exam .nav--placeholder,
html.huawei-exam header.header,
html.huawei-exam .header,
html.huawei-exam #menu,
html.huawei-exam .slideout-menu,
html.huawei-exam .notification,
html.huawei-exam .noty_bar,
html.huawei-exam .noty_layout,
html.huawei-exam #notification,
html.huawei-exam .typo-announcement,
html.huawei-exam .header__hamburger,
html.huawei-exam .contest-timer,
html.huawei-exam #nprogress {
  display: none !important;
  pointer-events: none !important;
}
html.page--contest_exam .main,
html.huawei-exam .main {
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
}

html.huawei-exam .slideout-panel,
html.huawei-exam #panel,
html.huawei-exam .content-wrapper {
  padding-top: 0 !important;
  margin: 0 !important;
}

html.huawei-exam {
  --hx-paper: #ffffff;
  --hx-card: #ffffff;
  --hx-ink: #1f2937;
  --hx-muted: #6b7280;
  --hx-faint: #9ca3af;
  --hx-line: #eceff3;
  --hx-accent: #2f6bff;
  --hx-accent-soft: rgba(47, 107, 255, 0.08);
  --hx-answered: #2f6bff;
  --hx-empty: #c5cad3;
  --hx-ok: #16a34a;
  --hx-bad: #dc2626;
  --hx-shadow: none;
  --hx-top: 44px;
  --hx-sidebar-w: 228px;
  --hx-dock: 0px;
  --hx-radius: 4px;
  font-family: ui-sans-serif, system-ui, "PingFang SC", "Noto Sans SC", sans-serif;
  color: var(--hx-ink);
}
.theme--dark html.huawei-exam,
html.theme--dark.huawei-exam,
html.huawei-exam.theme--dark {
  --hx-paper: #12151b;
  --hx-card: #171a21;
  --hx-ink: #e5e7eb;
  --hx-muted: #9ca3af;
  --hx-faint: #6b7280;
  --hx-line: #2a303b;
  --hx-accent-soft: rgba(47, 107, 255, 0.16);
}

.hx-shell { color: var(--hx-ink); }

/* 首屏骨架屏：样式/脚本就绪前隐藏真实题干与机考壳，避免闪出原始文字 */
.hx-shell--boot .hx-topbar,
.hx-shell--boot .hx-sidebar,
.hx-shell--boot .hx-paper__meta,
.hx-shell--boot .hx-stem,
.hx-shell--boot .hx-options,
.hx-shell--boot .hx-solution,
.hx-shell--boot .hx-nav,
.hx-shell--boot .hx-paper__head,
.hx-shell--boot .hx-pay-gate,
.hx-shell--boot .hx-fs-gate,
.hx-shell--boot .hx-dialog {
  visibility: hidden !important;
}
.hx-paper { position: relative; }
.hx-paper-skel {
  display: none;
  position: absolute;
  inset: 16px 40px auto;
  z-index: 2;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  background: transparent;
  pointer-events: none;
}
.hx-shell--boot .hx-paper-skel { display: flex !important; }
.hx-paper-skel__line {
  display: block;
  height: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.06) 25%, rgba(15, 23, 42, 0.12) 37%, rgba(15, 23, 42, 0.06) 63%);
  background-size: 800px 100%;
  animation: hx-paper-skel-shimmer 1.4s ease-in-out infinite;
}
.hx-paper-skel__line--gap { margin-top: 10px; }
html.theme--dark .hx-paper-skel__line,
html[data-theme="dark"] .hx-paper-skel__line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.06) 25%, rgba(255, 255, 255, 0.14) 37%, rgba(255, 255, 255, 0.06) 63%);
  background-size: 800px 100%;
}
@keyframes hx-paper-skel-shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-paper-skel__line { animation: none; }
}
.hx-topbar {
  position: fixed; z-index: 620; top: 0; left: 0; right: 0; height: var(--hx-top);
  display: flex; align-items: center; gap: 16px;
  padding: 0 16px 0 20px;
  background: var(--hx-card);
  border-bottom: 1px solid var(--hx-line);
}
.hx-topbar__title {
  font-weight: 700; font-size: 14px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1;
}
.hx-topbar__meta {
  display: flex; align-items: center; gap: 18px; flex-shrink: 0;
  font-size: 12px; color: var(--hx-muted);
}
.hx-topbar__actions {
  display: inline-flex; align-items: center; gap: 12px; margin-left: 4px;
}
.hx-topbar__score, .hx-topbar__count { font-variant-numeric: tabular-nums; color: var(--hx-ink); }
.hx-countdown {
  display: inline-flex; align-items: center; gap: 5px;
  font-variant-numeric: tabular-nums; font-weight: 650; color: var(--hx-ink);
}
.hx-countdown__icon { width: 14px; height: 14px; flex: 0 0 auto; opacity: 0.75; }
.hx-countdown.is-urgent {
  color: #b45309;
  animation: hxPulse 1.2s ease-in-out infinite;
}
@keyframes hxPulse {
  50% { opacity: 0.55; }
}

.hx-sidebar {
  position: fixed; z-index: 580;
  top: var(--hx-top); left: 0; bottom: 0;
  width: var(--hx-sidebar-w);
  display: flex; flex-direction: column;
  background: var(--hx-card);
  border-right: 1px solid var(--hx-line);
  transition: width 160ms ease;
}
.hx-sidebar__inner {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0; min-width: 0; overflow: hidden;
}
.hx-sidebar__toggle {
  position: fixed; z-index: 630;
  top: 50%;
  left: calc(var(--hx-sidebar-w) - 12px);
  margin: -24px 0 0;
  width: 24px; height: 48px; padding: 0;
  border: 1px solid var(--hx-line); border-left-color: var(--hx-card);
  border-radius: 0 6px 6px 0;
  background: var(--hx-card); color: var(--hx-muted);
  cursor: pointer; font-size: 16px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
  transform: none !important;
  transition: left 160ms ease, color 120ms ease;
}
.hx-sidebar__toggle:hover,
.hx-sidebar__toggle:focus,
.hx-sidebar__toggle:active {
  color: var(--hx-accent);
  transform: none !important;
  top: 50%;
  margin-top: -24px;
}
html.hx-sidebar-collapsed {
  --hx-sidebar-w: 0px;
}
html.hx-sidebar-collapsed .hx-sidebar {
  width: 0; border-right: 0;
}
html.hx-sidebar-collapsed .hx-sidebar__inner { opacity: 0; pointer-events: none; }
html.hx-sidebar-collapsed .hx-sidebar__toggle {
  left: 0; border-left-color: var(--hx-line);
}
html.hx-sidebar-collapsed .hx-sidebar__toggle span { display: inline-block; transform: rotate(180deg); }
.hx-sidebar__meta {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--hx-line);
}
.hx-sidebar__profile { display: flex; align-items: center; gap: 10px; }
.hx-sidebar__avatar {
  width: 36px; height: 36px; border-radius: 50%; object-fit: cover;
  background: #e8edf5; flex: 0 0 auto;
}
.hx-sidebar__avatar--fallback {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: var(--hx-accent);
}
.hx-sidebar__user { font-weight: 650; font-size: 13px; line-height: 1.3; }
.hx-sidebar__uid { margin-top: 2px; color: var(--hx-muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.hx-sidebar__lock { margin-top: 8px; color: #b45309; font-size: 12px; font-weight: 600; }
.hx-sidebar__score { margin-top: 6px; font-size: 12px; color: var(--hx-muted); }
.hx-sidebar__list { flex: 1; overflow: auto; padding: 8px 0 12px; }
.hx-section__head {
  padding: 14px 16px 8px;
  color: #374151;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.hx-item {
  display: flex; align-items: center; gap: 10px;
  margin: 2px 8px;
  padding: 10px 12px;
  color: var(--hx-ink);
  text-decoration: none !important;
  font-size: 13px; line-height: 1.45;
  border-radius: 6px;
}
.hx-item:hover,
.hx-item:focus,
.hx-item:active,
.hx-item:visited {
  text-decoration: none !important;
  color: var(--hx-ink);
}
.hx-item:hover { background: #f3f4f6; }
.hx-item.is-current {
  color: var(--hx-accent); font-weight: 650;
  background: var(--hx-accent-soft);
  text-decoration: none !important;
}
.hx-item.is-current:hover,
.hx-item.is-current:focus,
.hx-item.is-current:visited {
  color: var(--hx-accent);
}
.hx-item__text { flex: 1; min-width: 0; }
.hx-item__dot {
  width: 8px; height: 8px; border-radius: 1px; flex: 0 0 auto;
  border: 1px solid var(--hx-empty); background: transparent;
}
.hx-item.is-answered .hx-item__dot { background: var(--hx-answered); border-color: var(--hx-answered); }
.hx-item.is-correct .hx-item__dot { background: var(--hx-ok); border-color: var(--hx-ok); }
.hx-item.is-wrong .hx-item__dot { background: var(--hx-bad); border-color: var(--hx-bad); }
.hx-sidebar__foot {
  padding: 12px 16px 14px;
  border-top: 1px solid var(--hx-line);
  font-size: 12px; color: var(--hx-muted);
}
.hx-auto {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-bottom: 10px; color: var(--hx-ink); cursor: pointer; font-size: 12px;
}
.hx-auto input {
  appearance: none; width: 40px; height: 22px; border-radius: 11px; flex: 0 0 auto;
  background: #e5e7eb; border: 1px solid #d1d5db; position: relative; cursor: pointer;
  transition: background 120ms, border-color 120ms;
}
.hx-auto input::after {
  content: ""; position: absolute; top: 1px; left: 1px;
  width: 18px; height: 18px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.18);
  transition: transform 120ms;
}
.hx-auto input:checked { background: var(--hx-accent); border-color: var(--hx-accent); }
.hx-auto input:checked::after { transform: translateX(18px); }
.hx-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.hx-legend b { font-weight: 650; color: var(--hx-ink); }

.hx-btn {
  height: 32px; padding: 0 14px;
  border: 1px solid #d0d5dd; border-radius: 4px;
  background: var(--hx-card); color: var(--hx-accent);
  cursor: pointer; font-weight: 650; font-size: 13px;
}
.hx-btn:hover { border-color: var(--hx-accent); }
.hx-btn:disabled { opacity: 0.38; cursor: not-allowed; }
.hx-btn--next, .hx-btn--submit, .hx-btn--primary {
  background: var(--hx-accent); border-color: var(--hx-accent); color: #fff;
}
#huaweiExamSubmit {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}
.hx-btn--next:hover, .hx-btn--submit:hover, .hx-btn--primary:hover { filter: brightness(1.05); color: #fff; }

.hx-nav {
  display: flex; align-items: center; gap: 8px;
  margin-top: 28px;
}
html.huawei-exam .problem-ide-left__main > .hx-nav {
  margin: 0; padding: 10px 16px 12px;
  border-top: 1px solid var(--hx-line);
  background: var(--hx-card); flex: 0 0 auto;
}

.hx-main {
  position: fixed;
  top: var(--hx-top); left: var(--hx-sidebar-w); right: 0; bottom: 0;
  overflow: auto; background: var(--hx-paper);
  transition: left 160ms ease;
}
.hx-paper__meta {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; width: 100%; box-sizing: border-box;
  padding: 18px 40px 0;
  color: var(--hx-muted); font-size: 13px;
}
.hx-paper__meta-left {
  display: inline-flex; align-items: baseline; gap: 16px; min-width: 0;
}
.hx-paper__type { font-weight: 650; color: #4b5563; }
.hx-paper__index { font-variant-numeric: tabular-nums; color: #6b7280; }
.hx-shortcut-wrap { position: relative; margin-left: auto; flex: 0 0 auto; }
.hx-paper__shortcut {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0; padding: 0; border: 0; background: transparent;
  color: #6b7280; font-size: 12px; cursor: pointer;
}
.hx-paper__shortcut:hover { color: var(--hx-accent); }
.hx-paper__shortcut svg { width: 14px; height: 14px; flex: 0 0 auto; }
.hx-paper {
  max-width: 760px;
  margin: 0;
  padding: 16px 40px 48px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  transition: opacity 120ms ease, transform 120ms ease;
}
.hx-paper.is-leave { opacity: 0; transform: translateY(4px); }
.hx-paper.is-enter { opacity: 1; transform: none; }
.hx-paper__head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 14px; color: var(--hx-muted); font-size: 12px;
}
.hx-paper__head[hidden] { display: none !important; }
.hx-badge { font-size: 12px; font-weight: 700; }
.hx-badge--ok { color: var(--hx-ok); }
.hx-badge--bad { color: var(--hx-bad); }
.hx-stem {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 20px;
  line-height: 1.8;
  font-size: 15.5px;
  font-weight: 550;
  color: #111827;
}
.hx-stem__no {
  flex: 0 0 auto;
  font-weight: 700;
  color: #111827;
  line-height: 1.8;
}
.hx-stem__body { flex: 1; min-width: 0; }
.hx-stem__body p,
.hx-stem p { margin: 0 0 0.6em; }
.hx-stem__body p:last-child,
.hx-stem p:last-child { margin-bottom: 0; }
.hx-options { display: flex; flex-direction: column; gap: 10px; }
.hx-option {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  gap: 8px;
  width: 100%;
  padding: 8px 4px;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  background: transparent;
  box-shadow: none;
  transform: none;
  color: #4b5563;
  font-size: 14px;
}
.hx-option:hover { transform: none; box-shadow: none; background: transparent; }
.hx-option.is-checked { border: 0; background: transparent; box-shadow: none; color: var(--hx-ink); }
html.huawei-exam.hx-reveal .hx-option.is-key { border: 0; color: var(--hx-ok); }
.hx-option > input {
  flex: 0 0 auto !important;
  width: 16px !important;
  height: 16px !important;
  margin: 0.3em 0 0 !important;
  accent-color: var(--hx-accent);
  display: inline-block !important;
}
.hx-option__key {
  flex: 0 0 auto !important;
  width: auto !important;
  height: auto !important;
  min-width: 1.25em;
  margin: 0;
  padding: 0;
  border-radius: 0;
  display: inline-block !important;
  font-weight: 650;
  background: transparent;
  color: inherit;
  line-height: 1.7;
  white-space: nowrap;
}
.hx-option.is-checked .hx-option__key { background: transparent; color: inherit; }
.hx-option__body {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  color: inherit;
  font-size: inherit;
  line-height: 1.7;
  display: block;
}
.hx-option__body.markdown-body {
  width: auto !important;
  max-width: none !important;
}
.hx-option__body > *:first-child { margin-top: 0 !important; }
.hx-option__body > *:last-child { margin-bottom: 0 !important; }
.hx-option__body p { margin: 0 !important; display: block; }
.hx-skeleton { min-height: 240px; }

.hx-dialog {
  position: fixed; inset: 0; z-index: 800;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.45);
}
.hx-dialog.open { display: flex; }
.hx-fs-gate {
  position: fixed; inset: 0; z-index: 900;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.55);
}
.hx-fs-gate.open { display: flex; }
.hx-fs-gate__panel {
  width: min(420px, calc(100% - 32px));
  background: #fff; color: var(--hx-ink);
  border: 1px solid var(--hx-line);
  border-radius: 12px; padding: 24px 22px 20px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}
.hx-fs-gate__panel h2 { margin: 0 0 8px; font-size: 18px; }
.hx-fs-gate__panel p { margin: 0 0 18px; color: var(--hx-muted); font-size: 13px; line-height: 1.6; }
.hx-fs-gate__panel kbd {
  display: inline-block; min-width: 18px; padding: 0 5px;
  border: 1px solid var(--hx-line); border-radius: 4px; text-align: center;
}
.hx-fs-gate__panel .hx-btn { min-width: 140px; }
.hx-dialog__panel {
  width: min(440px, calc(100% - 32px));
  background: var(--hx-card); color: var(--hx-ink);
  border-radius: 10px; padding: 22px 22px 16px;
}
.hx-dialog__panel h2 { margin: 0 0 8px; font-size: 18px; }
.hx-dialog__panel p { margin: 0 0 12px; color: var(--hx-muted); font-size: 13px; }
.hx-dialog__list { max-height: 160px; overflow: auto; margin: 0 0 14px; padding-left: 18px; font-size: 13px; }
.hx-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; }
.hx-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 0 14px;
    border-radius: var(--hx-radius, 4px);
    font-size: 13px;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    box-sizing: border-box;
}
.hx-review-btn--exit {
    background: #fff;
    border: 1px solid var(--hx-accent, #2f6bff);
    color: var(--hx-accent, #2f6bff);
}
.hx-review-btn--exit:hover {
    background: #f0f5ff;
    border-color: var(--hx-accent, #2f6bff);
    color: var(--hx-accent, #2f6bff);
}
.hx-review-btn--retake {
    background: var(--hx-accent, #2f6bff);
    border: 1px solid var(--hx-accent, #2f6bff);
    color: #fff;
}
.hx-review-btn--retake:hover {
    background: #1f5bef;
    border-color: #1f5bef;
    color: #fff;
}
.hx-score-dialog { background: rgba(15, 23, 42, 0.48); }
.hx-score-panel {
    width: min(360px, calc(100% - 40px));
    padding: 28px 28px 22px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid var(--hx-line, #eceff3);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
    text-align: center;
}
.hx-score-kicker {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--hx-muted, #667085);
}
.hx-score-result {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 8px;
    margin: 10px 0 6px;
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    color: var(--hx-accent, #2f6bff);
}
.hx-score-of {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0;
    color: var(--hx-muted, #98a2b3);
}
.hx-score-note {
    margin: 0 0 18px;
    font-size: 13px;
    color: var(--hx-muted, #667085);
}
.hx-score-ok {
    width: 100%;
    height: 40px;
    border: 0;
    border-radius: 4px;
    background: var(--hx-accent, #2f6bff);
    color: #fff;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}
.hx-score-ok:hover { background: #1f5bef; }
.hx-solution {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--hx-line, #f0f0f0);
}
.hx-solution h3 { margin: 0 0 10px; font-size: 15px; }
.hx-topbar__actions .hx-btn { text-decoration: none; }
.hx-help {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: 0;
  background: var(--hx-card); border: 1px solid var(--hx-line);
  border-radius: 8px; padding: 12px 14px; display: none;
  font-size: 12px; min-width: 220px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  white-space: nowrap;
}
.hx-help.open { display: block; }
.hx-help kbd {
  display: inline-block; min-width: 18px; padding: 0 4px;
  border: 1px solid var(--hx-line); border-radius: 4px; text-align: center;
}

html.page--problem_ide.huawei-exam .problem-ide-root,
html.huawei-exam .problem-ide-root,
html.huawei-exam #problemIdeRoot.problem-ide-root--boot,
html.huawei-exam #problemIdeRoot.problem-ide-root--ready {
  top: var(--hx-top) !important;
  left: var(--hx-sidebar-w) !important;
  bottom: 0 !important;
  height: auto !important;
  transition: left 160ms ease;
}
html.huawei-exam #problemIdePageLoader,
html.huawei-exam .problem-ide-page-loader {
  top: var(--hx-top) !important;
  left: var(--hx-sidebar-w) !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 50 !important;
}
html.huawei-exam .contest-problem-nav,
html.huawei-exam .problem-ide-pset-header,
html.huawei-exam .problem-ide-pset-overlay,
html.huawei-exam .problem-ide-pset-drawer-trigger,
html.huawei-exam .problem-ide-section-switcher,
html.huawei-exam .problem-ide-sprint-promo,
html.huawei-exam .exam-countdown,
html.huawei-exam [data-type="aiAnalysis"],
html.huawei-exam [data-type="myNote"],
html.huawei-exam:not(.hx-chapter-review) [data-type="textSol"],
html.huawei-exam [data-type="videoSol"],
html.huawei-exam #problemIdeTimerWrap,
html.huawei-exam #problemIdePsetOverlay { display: none !important; }

.contest-exam-edit {
  margin: 8px 0 16px; padding: 16px 16px 14px;
  border: 1px solid var(--section-border-color, #e5e7eb);
  border-radius: 12px; background: #f8fafc;
  max-width: 100%;
}
.contest-exam-edit__row { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.contest-exam-edit__scores { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hx-picker { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, 1fr); gap: 12px; margin-top: 10px; }
.hx-picker-pane {
  border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; padding: 10px;
  min-height: 320px; max-height: 460px; display: flex; flex-direction: column; min-width: 0;
}
.hx-picker-pane h3 { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
.hx-picker-tools { display: grid; grid-template-columns: 1.1fr 0.8fr 0.7fr auto; gap: 6px; margin-bottom: 8px; }
.hx-picker-tools input, .hx-picker-tools select { min-width: 0; }
.hx-picker-actions { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.hx-picker-actions .hx-btn { height: 30px; font-size: 12px; padding: 0 10px; }
.hx-picker-list { overflow: auto; flex: 1; font-size: 13px; }
.hx-picker-row {
  display: grid; grid-template-columns: 22px 58px 48px 1fr; gap: 6px;
  align-items: center; padding: 7px 4px; border-bottom: 1px dashed #eee;
}
.hx-picker-row small { color: #6b7280; }
.hx-picked-item {
  display: flex; align-items: center; gap: 8px; padding: 7px 4px;
  border-bottom: 1px dashed #eee; cursor: grab;
}
.hx-picked-item.is-dragging { opacity: 0.45; }
.hx-picked-item button { margin-left: auto; }
.hx-picker-meta { font-size: 12px; color: #6b7280; margin-top: 8px; }
.hx-picker-pager { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 12px; }
.contest-exam-edit details.hx-advanced { margin-top: 10px; }
.contest-exam-edit textarea.hx-advanced { width: 100%; min-height: 64px; margin-top: 6px; }
.contest-exam-edit .help-text { margin: 4px 0 10px; color: #6b7280; font-size: 13px; }

@media (max-width: 768px) {
  html.huawei-exam { --hx-sidebar-w: 100%; }
  .hx-sidebar { height: 34vh; bottom: auto; border-right: 0; border-bottom: 1px solid var(--hx-line); }
  .hx-main, html.huawei-exam .problem-ide-root {
    left: 0 !important; top: calc(var(--hx-top) + 34vh) !important;
  }
  html.huawei-exam #problemIdePageLoader,
  html.huawei-exam .problem-ide-page-loader {
    left: 0 !important; top: calc(var(--hx-top) + 34vh) !important;
  }
  .hx-paper { padding: 12px 16px 32px; }
  .hx-paper__meta { padding: 14px 16px 0; }
  .hx-picker { grid-template-columns: 1fr; }
}

.hx-pay-gate {
  position: fixed; inset: 0; z-index: 920;
  display: none; align-items: center; justify-content: center;
  background: rgba(15, 23, 42, 0.55);
}
.hx-pay-gate.open { display: flex; }
.hx-pay-gate__panel {
  width: min(420px, calc(100% - 32px));
  background: #fff; color: var(--hx-ink);
  border: 1px solid var(--hx-line);
  border-radius: 12px; padding: 24px 22px 20px;
  text-align: center;
}
.hx-pay-gate__panel h2 { margin: 0 0 8px; font-size: 18px; }
.hx-pay-gate__panel p { margin: 0 0 18px; color: var(--hx-muted); font-size: 13px; line-height: 1.6; }
.hx-pay-gate__actions {
  display: flex; justify-content: center; gap: 8px; flex-wrap: wrap;
}
.hx-pay-gate__actions .hx-btn {
  min-width: 120px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  box-sizing: border-box;
}
a.hx-pay-gate__vip,
a.hx-pay-gate__vip:link,
a.hx-pay-gate__vip:visited,
a.hx-pay-gate__vip:hover,
a.hx-pay-gate__vip:active {
  color: var(--hx-accent, #2f6bff) !important;
  text-decoration: none;
}
a.hx-pay-gate__back,
a.hx-pay-gate__back:link,
a.hx-pay-gate__back:visited {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--hx-muted, #667085) !important;
  text-decoration: none;
}
a.hx-pay-gate__back:hover,
a.hx-pay-gate__back:active {
  color: var(--hx-accent, #2f6bff) !important;
}
.hx-shell--paywall .hx-main {
  visibility: hidden;
}
