:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --text: #1f2a37;
  --muted: #6b7280;
  --primary: #2563eb;
  --border: #e5e7eb;
  --success: #16a34a;
  --warning: #f59e0b;
  --gray: #6b7280;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.login-card h2 {
  margin: 0 0 8px;
}

.login-btn {
  width: 100%;
  margin-top: 10px;
}

.login-tips {
  margin: 10px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.5;
}

.captcha-row {
  display: grid;
  grid-template-columns: 1fr 110px;
  gap: 10px;
  align-items: end;
}

.captcha-input {
  margin-top: 0;
}

.captcha-code {
  height: 40px;
  border: 1px dashed #94a3b8;
  background: #f8fafc;
  border-radius: 8px;
  letter-spacing: 2px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
}

.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: #111827;
  color: #f9fafb;
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
}

.logo {
  margin: 0 0 20px;
  font-size: 18px;
}

.menu-item {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: #d1d5db;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 6px;
  cursor: pointer;
}

.menu-item:hover,
.menu-item.active {
  background: #1f2937;
  color: #fff;
}

.menu-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-arrow {
  transition: transform 0.2s ease;
  font-size: 12px;
}

.menu-arrow.expanded {
  transform: rotate(180deg);
}

.submenu-wrap {
  margin-bottom: 4px;
}

.menu-item-sub {
  width: calc(100% - 14px);
  margin-left: 14px;
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 14px;
}

.light-btn {
  width: 100%;
  color: #e5e7eb;
  background: #1f2937;
  border-color: #374151;
}

.content {
  padding: 24px;
}

.content-userbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

.userbar-right-cluster {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.system-notice-wrap {
  position: relative;
}

.notice-bell-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.notice-bell-btn:hover {
  background: #f8fafc;
}

.notice-bell-icon {
  font-size: 18px;
  line-height: 1;
}

.notice-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
}

.notice-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  width: min(380px, calc(100vw - 48px));
  max-height: min(420px, 70vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.12);
  z-index: 30;
}

.notice-dropdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.notice-clear-btn {
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
}

.notice-clear-btn:hover:not(:disabled) {
  color: #0f172a;
  background: #f1f5f9;
}

.notice-clear-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.notice-empty {
  padding: 20px 14px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

.notice-list {
  overflow-y: auto;
  max-height: min(360px, 60vh);
}

.notice-item {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.notice-item:last-child {
  border-bottom: none;
}

.notice-item-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 14px;
  margin-bottom: 4px;
}

.notice-item-time {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 6px;
}

.notice-item-body {
  font-size: 13px;
  color: #334155;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
}

.user-menu-wrap {
  position: relative;
}

.user-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.user-icon {
  font-size: 20px;
  line-height: 1;
}

.user-meta-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  min-width: 240px;
  position: absolute;
  top: 46px;
  right: 0;
  z-index: 10;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.user-meta-card p {
  margin: 4px 0;
  font-size: 13px;
  color: #374151;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.topbar h2 {
  margin: 0 0 4px;
}

.muted {
  color: var(--muted);
  margin: 0;
  font-size: 14px;
}

.primary-btn {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

.primary-btn:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.stat-card h3 {
  margin: 8px 0 0;
  font-size: 24px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
}

.entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.entry-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}

.entry-card h3 {
  margin: 0 0 8px;
}

.entry-card .primary-btn {
  margin-top: 14px;
}

.entry-secondary-btn {
  margin-top: 10px;
  width: 100%;
}

.notice-list {
  display: grid;
  gap: 8px;
}

.notice-item {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: #fafafa;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-grid label,
.block-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #374151;
}

.block-label {
  margin-top: 10px;
}

.apply-inline-panel h3 {
  margin: 0 0 8px;
}

.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}

.account-filters-toolbar {
  flex-wrap: wrap;
  align-items: flex-end;
}

.review-toolbar-right {
  margin-left: auto;
}

.launch-exam-table-wrap table {
  min-width: 640px;
}

.launch-account-list {
  max-height: 180px;
  overflow-y: auto;
  display: grid;
  gap: 6px;
}

.launch-account-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.launch-account-dropdown {
  position: relative;
}

.launch-account-dropdown-panel {
  position: absolute;
  z-index: 30;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 8px;
}

.launch-account-search {
  width: 100%;
  margin-bottom: 8px;
}

.account-filter-date {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.account-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: var(--muted);
}

.account-filter-field input,
.account-filter-field select {
  min-width: 140px;
}

.account-filter-field-wide input {
  min-width: 180px;
}

.account-filter-date input {
  flex: 0 0 auto;
  width: auto;
  min-width: 140px;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

input {
  flex: 1;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.tag {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12px;
  line-height: 20px;
}

.tag-draft { background: #f3f4f6; color: #374151; }
.tag-published { background: #dbeafe; color: #1d4ed8; }
.tag-running { background: #dcfce7; color: #166534; }
.tag-finished { background: #fef3c7; color: #92400e; }
.tag-pending { background: #fef3c7; color: #92400e; }
.tag-approved { background: #dcfce7; color: #166534; }
.tag-rejected { background: #fee2e2; color: #991b1b; }
.tag-flow-pending { background: #fef3c7; color: #92400e; }
.tag-flow-approved { background: #dcfce7; color: #166534; }
.tag-flow-rejected { background: #fee2e2; color: #991b1b; }
.tag-flow-returned { background: #ede9fe; color: #6d28d9; }
.tag-flow-exam { background: #dbeafe; color: #1d4ed8; }
.tag-flow-effective { background: #fef3c7; color: #92400e; }

.actions {
  display: flex;
  gap: 6px;
}

.action-group {
  margin-top: 12px;
}

.group-title {
  margin: 0 0 8px;
  color: #374151;
  font-size: 14px;
  font-weight: 600;
}

.ghost-btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 4px 8px;
  color: #374151;
  cursor: pointer;
}

.ghost-btn-success {
  border-color: #86efac;
  color: #166534;
}

.ghost-btn-danger {
  border-color: #fca5a5;
  color: #991b1b;
}

.ghost-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.pagination button {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 6px;
  padding: 6px 10px;
}

textarea {
  margin-top: 12px;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  resize: vertical;
  font: inherit;
}

.inline-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.userbar-actions {
  margin-top: 8px;
}

.error-text {
  color: #dc2626;
  margin: 8px 0 0;
  font-size: 13px;
}

.success-text {
  color: #166534;
  margin: 8px 0 0;
  font-size: 13px;
}

.countdown-badge {
  display: inline-block;
  background: #111827;
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 13px;
}

.countdown-badge-warning {
  background: #dc2626;
  animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.06);
    opacity: 0.75;
  }
}

.question-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fcfcfd;
}

.question-item {
  margin-bottom: 10px;
}

.option-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.rich-editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.rich-editor {
  min-height: 120px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px;
  background: #fff;
  outline: none;
  overflow-y: auto;
}

.rich-editor:empty:before {
  content: attr(placeholder);
  color: #9ca3af;
}

.question-title-rich img,
.rich-editor img {
  max-width: 100%;
  height: auto;
}

/* 在线考试整页（顶栏 + 试卷区）全部左对齐 */
.topbar.exam-page {
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
}

.topbar.exam-page h2,
.topbar.exam-page .muted {
  text-align: left;
}

.panel.exam-page {
  text-align: left;
}

.panel.exam-page .question-block {
  text-align: left;
}

.panel.exam-page .question-block h3 {
  text-align: left;
}

.panel.exam-page .question-item {
  text-align: left;
}

.panel.exam-page .question-item > p {
  text-align: left;
}

.panel.exam-page .option-label {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  width: 100%;
  text-align: left;
  gap: 8px;
}

.panel.exam-page .option-label input[type="radio"] {
  flex-shrink: 0;
  margin: 0.2em 0 0 0;
}

.panel.exam-page .option-label span {
  flex: 1 1 auto;
  text-align: left;
}

.panel.exam-page textarea {
  text-align: left;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.panel.exam-page .error-text,
.panel.exam-page .success-text,
.panel.exam-page > .muted {
  text-align: left;
  width: 100%;
}

.panel.exam-page .inline-actions {
  justify-content: flex-start;
}

.answer-view p {
  margin: 0 0 6px;
  white-space: pre-wrap;
  word-break: break-word;
}

.score-info-box {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f9fafb;
}

.modal-mask {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 20;
}

.modal-panel {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  border: 1px solid var(--border);
}

.modal-close-btn {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
}

.modal-close-btn:hover {
  color: #0f172a;
}

.modal-panel h3 {
  margin: 0 0 10px;
}

.review-modal-panel {
  max-width: 920px;
  max-height: 88vh;
  overflow-y: auto;
}

.readonly-answer {
  background: #f8fafc;
  color: #334155;
}

.standard-answer-input {
  width: 100%;
  max-width: 520px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}

.standard-answer-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
}

.exam-type-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.exam-type-btn {
  padding: 10px 12px;
  border-radius: 8px;
}

.permission-tree {
  display: grid;
  gap: 8px;
}

.permission-node {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  background: #f8fafc;
}

.permission-page-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.permission-page {
  margin: 0;
  font-weight: 600;
  color: #1f2937;
}

.permission-buttons {
  margin: 0;
  color: #475569;
  font-size: 13px;
}

.permission-buttons-edit {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.permission-btn-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
}

@media (max-width: 960px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .entry-grid {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .exam-type-grid {
    grid-template-columns: 1fr;
  }
}

.apply-config-form {
  max-width: 720px;
}

.apply-config-reading-row {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.apply-config-row-label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #374151;
  font-weight: 500;
}

.apply-config-reading-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: end;
}

.apply-config-reading-row .block-label {
  margin-top: 0;
}

.apply-config-reading-minutes input {
  width: 100%;
}

.apply-config-reading-row .apply-config-hint {
  margin: 12px 0 18px;
}

@media (max-width: 640px) {
  .apply-config-reading-fields {
    grid-template-columns: 1fr;
  }
}

.multi-select-dropdown {
  position: relative;
}

.multi-select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font: inherit;
  color: var(--text);
}

.multi-select-arrow {
  color: var(--muted);
  flex-shrink: 0;
}

.multi-select-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 8px;
}

.multi-select-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  cursor: pointer;
}

.multi-select-option:hover {
  background: #f3f4f6;
}

.multi-select-empty {
  margin: 0;
  padding: 6px 8px;
  font-size: 13px;
}

.apply-config-hint {
  margin: -6px 0 10px;
  font-size: 13px;
}

.page-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}

.page-tab {
  border: none;
  background: transparent;
  padding: 8px 14px;
  border-radius: 8px 8px 0 0;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
}

.page-tab.active {
  color: var(--primary);
  background: #eff6ff;
  font-weight: 600;
}

.file-upload-btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.file-upload-btn input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.modal-panel-wide {
  max-width: 640px;
}

.modal-panel-reading {
  width: min(96vw, 1100px);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.reading-viewer-mask .modal-panel {
  padding-bottom: 16px;
}

.reading-viewer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.reading-viewer-body {
  flex: 1;
  min-height: 420px;
  max-height: calc(92vh - 120px);
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}

.reading-pdf-frame {
  width: 100%;
  height: min(70vh, 720px);
  border: none;
  background: #fff;
}

.reading-html-content {
  padding: 16px;
  background: #fff;
  min-height: 360px;
}

.reading-html-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.reading-html-content table td,
.reading-html-content table th {
  border: 1px solid var(--border);
  padding: 6px 8px;
}

.reading-unsupported {
  padding: 24px;
  text-align: center;
}

.reading-file-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
  margin: 12px 0;
}

.reading-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  font: inherit;
}

.reading-file-item:hover {
  border-color: var(--primary);
  background: #f8fbff;
}

.reading-file-item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.reading-file-item-meta {
  font-size: 13px;
  color: var(--primary);
  white-space: nowrap;
}

.reading-data-panel {
  margin-top: 0;
}

.reading-data-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.reading-data-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.reading-pdf-icon {
  margin-right: 6px;
}

.reading-open-btn {
  padding: 6px 12px;
  font-size: 13px;
}

.batch-row-password {
  width: 100%;
  min-width: 120px;
  box-sizing: border-box;
}

.review-exam-content-group {
  margin-top: 4px;
}

.review-exam-content-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.review-exam-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 14px;
}

.review-exam-radio input[type="radio"] {
  margin: 0;
}

.dept-child-row td {
  background: #f9fafb;
}

.dept-child-name {
  color: #4b5563;
}

.dept-tree-prefix {
  margin-right: 6px;
  color: #9ca3af;
}

.dept-path-hint {
  font-size: 12px;
  margin-left: 6px;
}

.stats-pass-rate-banner {
  margin-bottom: 16px;
  padding: 16px 18px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: linear-gradient(135deg, #eff6ff 0%, #f8fafc 100%);
}

.stats-pass-rate-main {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.stats-pass-rate-label {
  font-size: 14px;
  color: var(--muted);
}

.stats-pass-rate-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.1;
}

.stats-pass-rate-detail {
  margin: 8px 0 0;
  font-size: 13px;
}

.bank-universal-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 13px;
}

.exam-batch-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.02em;
  color: #1e40af;
  background: #eff6ff;
  padding: 2px 6px;
  border-radius: 4px;
}

.tag-exam-stat-approved {
  background: #dcfce7;
  color: #166534;
}

.tag-exam-stat-rejected {
  background: #fee2e2;
  color: #991b1b;
}

.tag-exam-stat-pending {
  background: #fef3c7;
  color: #92400e;
}

.tag-exam-stat-returned {
  background: #e0e7ff;
  color: #3730a3;
}

.tag-exam-stat-default {
  background: #f3f4f6;
  color: #4b5563;
}

.input-disabled,
input:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.account-enabled-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.account-enabled-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.account-enabled-slider {
  position: relative;
  flex-shrink: 0;
  width: 44px;
  height: 24px;
  background: #d1d5db;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.account-enabled-slider::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.account-enabled-switch input:checked + .account-enabled-slider {
  background: #2563eb;
}

.account-enabled-switch input:checked + .account-enabled-slider::after {
  transform: translateX(20px);
}

.account-enabled-text {
  font-size: 13px;
  color: #374151;
  min-width: 2em;
}

.account-enabled-switch.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.account-enabled-form-field .account-enabled-switch--form {
  margin-top: 6px;
}

.account-dept-row--single {
  grid-template-columns: 1fr;
}

.account-dept-row {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.account-dept-row label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: #374151;
}

.account-dept-row select:disabled {
  background: #f3f4f6;
  color: #6b7280;
  cursor: not-allowed;
}

.preface-article-block {
  margin: 16px 0;
  padding: 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}

.preface-article-toggle {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0 0 12px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.preface-article-toggle input[type="checkbox"] {
  flex-shrink: 0;
  margin: 0.15em 0 0;
}

.preface-article-toggle span {
  flex: 0 1 auto;
  line-height: 1.5;
  text-align: left;
}

.preface-article-editor-wrap {
  margin-top: 8px;
}

.preface-article-editor {
  min-height: 180px;
}

.preface-article-content {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  line-height: 1.7;
  max-height: min(60vh, 520px);
  overflow: auto;
}

.preface-article-content img {
  max-width: 100%;
  height: auto;
}

.link-btn {
  border: none;
  background: none;
  padding: 0;
  color: #2563eb;
  cursor: pointer;
  font-size: 13px;
  text-align: left;
  word-break: break-all;
}

.link-btn:hover {
  text-decoration: underline;
}

.exam-preface-section {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5e7eb;
}

.exam-preface-section--completed {
  margin-bottom: 24px;
}

.exam-preface-section h3 {
  margin-top: 0;
}

.exam-preface-actions {
  justify-content: flex-start;
}

.exam-reading-panel h3 {
  margin-top: 0;
}

.reading-image-preview {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
}
