.exam-mode-switcher {
  display: flex;
  gap: 4px;
  align-items: center;
  width: fit-content;
  max-width: calc(100% - 32px);
  margin: 18px auto;
  padding: 4px;
  border: 1px solid #edd7df;
  border-radius: 12px;
  background: #fff;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
}
.exam-mode-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  min-height: 40px;
  padding: 8px 24px;
  border-radius: 8px;
  color: #806b65;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.exam-mode-switcher a:hover { background: #fff1f4; color: #99325c; }
.exam-mode-switcher a[aria-current="page"] { color: #fff; background: #b63d70; }
.exam-mode-switcher a:focus-visible, .admin-exam-switcher :focus-visible { outline: 2px solid #b63d70; outline-offset: 3px; }
.admin-exam-switcher { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.admin-exam-switcher [aria-current="page"] { background: #f9e8ef; color: #99325c; border-color: #edd7df; }
.header-links { flex-wrap: wrap; }
@media (max-width: 760px) {
  .workspace-header { height: auto; min-height: 62px; padding: 10px 16px; flex-wrap: wrap; gap: 10px; }
  .workspace-header .header-links { flex: 1 0 100%; justify-content: flex-end; }
  .exam-mode-switcher a { min-height: 44px; }
}
@media print { .exam-mode-switcher, .admin-exam-switcher { display: none !important; } }
