:root {
  color-scheme: light;
  --ink: #0f2f4d;
  --muted: #5b7288;
  --line: #d8e5f0;
  --paper: #ffffff;
  --canvas: #f4f9fc;
  --blue: #006ab7;
  --blue-strong: #005a9d;
  --blue-active: #004a82;
  --blue-dark: #063a63;
  --blue-tint: #e8f4fb;
  --blue-tint-strong: #c8e3f4;
  --teal: #0f8578;
  --amber: #b96b11;
  --knowledge-orange: #e66b18;
  --knowledge-orange-strong: #bf4f0d;
  --danger: #c8394a;
  --shadow: 0 20px 60px rgba(0, 82, 138, 0.14);
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", sans-serif;
}
#backupSection { padding-top: 0; display: flex; justify-content: center; }
#backupSection .primary-button { width: auto; min-width: 220px; }
.backup-actions { display:flex; gap:12px; justify-content:center; }
.danger-button { border:1px solid #d94b56; color:#b4232d; background:#fff; border-radius:8px; padding:10px 16px; font-weight:700; cursor:pointer; }
.admin-password-action { width: fit-content; margin: 4px 0 18px; }
.analysis-chart { margin: 14px 0 18px; padding: 12px; border-radius: 8px; background: #fff; }.analysis-chart h4 { margin: 0 0 10px; }.analysis-bar { display:grid; grid-template-columns:120px 1fr 34px; gap:8px; align-items:center; margin:7px 0; font-size:12px; }.analysis-bar i { height:8px; overflow:hidden; border-radius:99px; background:#d9e9f4; }.analysis-bar b { display:block; height:100%; background:#006ab7; border-radius:inherit; }.analysis-bar strong { text-align:right; }

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
}

body {
  background:
    linear-gradient(rgba(0, 106, 183, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 106, 183, 0.045) 1px, transparent 1px),
    var(--canvas);
  background-size: 32px 32px;
  color: var(--ink);
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
  letter-spacing: 0;
}

button {
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.portal-shell {
  min-height: 100vh;
}

.portal-header {
  height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 106, 183, 0.13);
  background: rgba(255, 255, 255, 0.88);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 42px;
  height: 42px;
}

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 17px;
}

.brand small,
.admin-identity small {
  color: var(--muted);
  font-size: 11px;
}

.network-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #3d5a73;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #20a36a;
  box-shadow: 0 0 0 4px rgba(32, 163, 106, 0.12);
}

.auth-layout {
  width: min(1060px, calc(100% - 40px));
  min-height: calc(100vh - 72px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  align-items: center;
  gap: clamp(50px, 9vw, 130px);
  padding: 56px 0 80px;
}

.auth-context {
  padding-left: clamp(0px, 4vw, 52px);
}

.context-label,
.eyebrow,
.panel-heading > span {
  display: block;
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-context h1 {
  margin: 18px 0 20px;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 1.08;
  font-weight: 760;
  color: #0b3a5c;
}

.auth-context p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.context-strip {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #48647e;
  font-size: 12px;
  font-weight: 600;
}

.context-strip i {
  width: 24px;
  height: 1px;
  background: #a9c3d8;
}

.auth-panel {
  width: 100%;
  padding: 38px;
  background: var(--paper);
  border: 1px solid rgba(0, 106, 183, 0.16);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-heading {
  margin-bottom: 28px;
}

.panel-heading h2,
.dialog-heading h2 {
  margin: 7px 0 0;
  font-size: 25px;
}

label {
  display: grid;
  gap: 7px;
  color: #3d5a73;
  font-size: 12px;
  font-weight: 650;
}

.auth-panel label + label {
  margin-top: 18px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #f7fbfe;
  border: 1px solid #c9dcea;
  border-radius: 6px;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 106, 183, 0.13);
}

textarea {
  resize: vertical;
  line-height: 1.6;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 44px;
  border-radius: 6px;
  font-weight: 700;
}

.primary-button {
  width: 100%;
  color: white;
  border: 1px solid var(--blue);
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(0, 106, 183, 0.22);
}

.primary-button:hover {
  background: var(--blue-strong);
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.primary-button.compact {
  width: auto;
  padding: 0 18px;
}

.secondary-button {
  padding: 0 18px;
  color: #3d5a73;
  background: #eef5fa;
  border: 1px solid var(--line);
}

.text-button {
  padding: 0 14px;
  color: var(--blue);
  background: white;
  border: 1px solid var(--line);
  white-space: nowrap;
  flex-shrink: 0;
}

.form-message {
  min-height: 20px;
  margin: 10px 0 8px;
  color: var(--danger);
  font-size: 12px;
}

.workspace {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0;
}

.workspace-title,
.admin-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.workspace-title h1,
.admin-toolbar h1 {
  margin: 7px 0 0;
  font-size: 30px;
}

.mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 34px;
}

.knowledge-option {
  color: white;
  border: none;
  background: var(--knowledge-orange, #e66b18);
}

.knowledge-option:hover {
  background: var(--knowledge-orange-strong, #bf4f0d);
}

.mode-option {
  position: relative;
  min-height: 280px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border-radius: 8px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.mode-option:hover {
  filter: brightness(1.06);
}

.practice-option {
  color: white;
  background: #006ab7;
  border: none;
}

.assessment-option {
  color: white;
  background: #0f8578;
  border: none;
}

.mode-code {
  font-size: 10px;
  font-weight: 800;
  opacity: 0.7;
}

.mode-option strong {
  margin-top: auto;
  font-size: 28px;
}

.mode-option small {
  margin-top: 6px;
  font-size: 13px;
  opacity: 0.82;
}

.mode-action {
  margin-top: 24px;
  padding-top: 14px;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  font-size: 12px;
  font-weight: 700;
}

.admin-layout {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.admin-sidebar {
  padding: 26px 16px 20px;
  background: #063a63;
  color: white;
  display: flex;
  flex-direction: column;
}

.admin-identity {
  padding: 0 8px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.admin-identity > span:last-child {
  display: grid;
}

.admin-identity small {
  color: rgba(255, 255, 255, 0.65);
}

.avatar-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #063a63;
  background: white;
  font-weight: 800;
}

.admin-sidebar nav {
  margin-top: 22px;
}

.nav-item,
.sidebar-actions button {
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  color: rgba(255, 255, 255, 0.76);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-size: 13px;
}

.nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.admin-section {
  min-width: 0;
}

.sidebar-actions {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 4px;
}

.sidebar-actions .logout-button {
  color: #ffd4d8;
}

.admin-content {
  padding: 34px clamp(22px, 4vw, 58px) 50px;
  min-width: 0;
}

.admin-toolbar p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.config-banner {
  margin-top: 22px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #7c4a0d;
  background: #fff5df;
  border: 1px solid #f0d5a3;
  border-radius: 7px;
  font-size: 12px;
}

.config-banner strong {
  flex-shrink: 0;
}

.ai-settings-panel {
  max-width: 720px;
  margin-top: 28px;
  padding: 24px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.ai-settings-panel label small {
  margin-top: -2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.ai-settings-note {
  margin-top: 20px;
  padding: 11px 12px;
  color: #33536e;
  background: #f2f8fc;
  border: 1px solid #d2e6f2;
  border-radius: 7px;
  font-size: 12px;
  line-height: 1.6;
}

.ai-settings-actions {
  display: flex;
  justify-content: flex-end;
}

.account-tools {
  margin-top: 28px;
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 10px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.account-tools input,
.account-tools select {
  min-height: 40px;
  background: white;
}

.table-wrap {
  overflow-x: auto;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
}

.result-table,
.retry-table {
  margin-top: 28px;
  border-radius: 8px;
}

.result-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.result-score-note {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.admin-list {
  margin-top: 28px;
  display: grid;
  gap: 9px;
}

.admin-task-item {
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 20px;
  align-items: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.admin-task-copy {
  min-width: 0;
}

.admin-task-copy strong {
  display: block;
  font-size: 14px;
}

.admin-task-copy p {
  margin: 5px 0 9px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.admin-task-meta span {
  padding: 3px 7px;
  color: #33536e;
  background: #eaf4fb;
  border-radius: 4px;
  font-size: 10px;
}

.admin-task-actions {
  display: flex;
  gap: 6px;
}

.admin-task-actions button {
  min-height: 34px;
  padding: 6px 10px;
  color: #33536e;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #e6eff6;
  white-space: nowrap;
}

th {
  color: #5b7288;
  background: #f7fbfe;
  font-size: 11px;
  font-weight: 750;
}

td {
  color: #24435e;
  font-size: 13px;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.user-cell {
  display: grid;
  gap: 2px;
}

.user-cell strong {
  color: var(--ink);
}

.user-cell small {
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 2px 8px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

.badge.practice {
  color: #0066b3;
  background: #e2f0fa;
}

.badge.assessment {
  color: #0f766e;
  background: #e2f8f5;
}

.badge.knowledge {
  color: oklch(45% 0.14 48);
  background: oklch(93% 0.06 70);
}

.badge.both {
  color: #9a5b08;
  background: #fff2d8;
}

.badge.active {
  color: #16734b;
  background: #e7f7ee;
}

.badge.disabled {
  color: #8a4350;
  background: #f9e9ec;
}

.row-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.row-actions button {
  min-height: 30px;
  padding: 4px 9px;
  color: #33536e;
  background: white;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
}

.row-actions .danger-text-button {
  color: var(--danger);
  background: #fff3f4;
  border-color: #f0d5da;
  font-weight: 700;
}

.empty-state {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}

dialog {
  width: min(600px, calc(100% - 30px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 90px rgba(8, 42, 74, 0.3);
}

dialog.wide-dialog {
  width: min(980px, calc(100% - 30px));
  max-width: none;
  max-height: 94vh;
}

dialog::backdrop {
  background: rgba(8, 30, 54, 0.42);
}

.dialog-form {
  padding: 26px;
}

.task-dialog-form,
.result-dialog-content {
  max-height: 94vh;
  overflow-y: auto;
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.dialog-close {
  width: 36px;
  height: 36px;
  color: #5b7288;
  background: #f2f7fa;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.full-field {
  grid-column: 1 / -1;
}

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

.dialog-copy {
  color: var(--muted);
  font-size: 13px;
}

.sticky-heading {
  position: sticky;
  top: -26px;
  z-index: 3;
  margin: -26px -26px 18px;
  padding: 24px 26px 16px;
  background: white;
  border-bottom: 1px solid var(--line);
}

.sticky-actions {
  position: sticky;
  bottom: -26px;
  z-index: 3;
  margin: 18px -26px -26px;
  padding: 14px 26px;
  background: white;
  border-top: 1px solid var(--line);
}

.form-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.form-section h3 {
  margin: 0 0 14px;
  color: #143c5e;
  font-size: 14px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading .small {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 11px;
}

.section-copy {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.task-world-book-summary {
  margin-top: 14px;
  min-height: 48px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #33536e;
  background: #f2f8fc;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12px;
}

.task-world-book-summary strong {
  color: var(--blue);
  white-space: nowrap;
}

.world-book-dialog {
  width: min(1120px, calc(100% - 30px));
  max-width: none;
  max-height: 94vh;
}

.world-book-dialog-content {
  max-height: 94vh;
  padding: 24px;
  overflow-y: auto;
  background: white;
}

.world-book-heading {
  margin-bottom: 16px;
}

.world-book-toolbar {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.world-book-toolbar label > span,
.world-book-fields label > span {
  display: block;
  margin-bottom: 6px;
  color: #33536e;
  font-size: 11px;
  font-weight: 700;
}

.world-book-toolbar-actions {
  display: flex;
  gap: 7px;
}

.world-book-layout {
  min-height: 480px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: 200px 240px minmax(0, 1fr);
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.world-book-books-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f6fafc;
  border-right: 1px solid var(--line);
}

.world-book-book-list {
  max-height: 54vh;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
}

.world-book-book-item {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  color: #2c4a66;
  background: white;
  border: 1px solid #d9e6f0;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.world-book-book-item.active {
  background: #e8f4fb;
  border-color: #5ea5d4;
  box-shadow: inset 3px 0 0 var(--blue);
}

.world-book-book-item .book-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

.world-book-book-item .book-delete-btn {
  border: none;
  background: none;
  color: #a0aec0;
  font-size: 14px;
  padding: 0 4px;
  line-height: 1;
  display: none;
}

.world-book-book-item:hover .book-delete-btn {
  display: block;
}

.world-book-book-item .book-delete-btn:hover {
  color: var(--danger);
}

.world-book-sidebar {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #f2f8fc;
  border-right: 1px solid var(--line);
}

.world-book-sidebar-title {
  min-height: 48px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #33536e;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.world-book-sidebar-title span {
  min-width: 24px;
  padding: 2px 6px;
  text-align: center;
  color: var(--blue);
  background: white;
  border: 1px solid #d2e6f2;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.world-book-entry-list {
  max-height: 54vh;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 6px;
  overflow-y: auto;
}

.world-book-entry-item {
  width: 100%;
  min-width: 0;
  padding: 10px;
  display: grid;
  gap: 4px;
  text-align: left;
  color: #2c4a66;
  background: white;
  border: 1px solid #d9e6f0;
  border-radius: 6px;
}

.world-book-entry-item.active {
  background: #e8f4fb;
  border-color: #5ea5d4;
  box-shadow: inset 3px 0 0 var(--blue);
}

.world-book-entry-item strong,
.world-book-entry-item span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.world-book-entry-item strong {
  font-size: 12px;
}

.world-book-entry-item span {
  color: var(--muted);
  font-size: 10px;
}

.world-book-entry-item.disabled {
  opacity: 0.58;
}

.world-book-editor {
  min-width: 0;
  padding: 18px;
  overflow-y: auto;
  background: #fafdff;
}

.world-book-empty {
  min-height: 420px;
  display: grid;
  place-content: center;
  gap: 7px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.world-book-empty strong {
  color: #33536e;
  font-size: 14px;
}

.world-book-editor-topline {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}

.world-book-scoring-option {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line, #d7e4f5);
  border-radius: 8px;
  background: #f7fbfe;
}

.world-book-scoring-option small {
  display: block;
  margin-top: 5px;
  color: var(--muted, #60718a);
  line-height: 1.5;
}

.fact-checks {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #f4c8c8;
  border-radius: 10px;
  background: #fff8f8;
}

.fact-checks h4 {
  margin: 0 0 8px;
  color: #b42318;
}

.fact-checks ul {
  margin: 0;
  padding-left: 20px;
}

.fact-checks li + li {
  margin-top: 10px;
}

.result-analysis-toolbar { margin: 0 0 14px; position: relative; }
.custom-select-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: 0.3px; margin-bottom: 8px; }
.custom-select { position: relative; width: 100%; }
.custom-select-trigger {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  padding: 11px 14px; gap: 12px;
  color: var(--ink); font-size: 15px; font-weight: 600; text-align: left;
  border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 106, 183, 0.06);
  transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
  cursor: pointer;
}
.custom-select-trigger:hover { border-color: #a9cbe4; background: #f7fbfe; }
.custom-select.open .custom-select-trigger { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 106, 183, 0.10); background: #fff; }
.custom-select-arrow { flex-shrink: 0; color: var(--muted); transition: transform 250ms ease; }
.custom-select.open .custom-select-arrow { transform: rotate(180deg); }
.custom-select-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.custom-select-menu {
  display: none; position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  z-index: 120; max-height: 260px; overflow-y: auto;
  background: #fff; border: 1.5px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(0, 82, 138, 0.13);
  padding: 5px; opacity: 0; transform: translateY(-6px);
}
.custom-select.open .custom-select-menu {
  display: block; animation: customSelectIn 180ms ease forwards;
}
@keyframes customSelectIn { to { opacity: 1; transform: translateY(0); } }
.custom-select-option {
  display: block; width: 100%; padding: 10px 12px;
  color: var(--ink); font-size: 14px; font-weight: 500; text-align: left;
  border: none; border-radius: 7px; background: transparent; cursor: pointer;
  transition: background 120ms ease, color 120ms ease;
}
.custom-select-option:hover { background: #eef7fc; color: var(--blue-strong); }
.custom-select-option.active { background: var(--blue); color: #fff; font-weight: 600; }
.custom-select-option + .custom-select-option { margin-top: 2px; }
.result-analysis-overview { display:grid; grid-template-columns:repeat(6, minmax(90px, 1fr)); gap:10px; margin-bottom:12px; }
.result-analysis-overview div, .result-analysis-insights > div { padding:12px; border:1px solid var(--line); border-radius:9px; background:#fff; }
.result-analysis-overview button { text-align:left; padding:12px; border:1px solid var(--line); border-radius:9px; background:#fff; cursor:pointer; }.result-analysis-overview button:hover { border-color:var(--blue); background:#f5fafd; }.result-analysis-overview small { display:block; margin-top:4px; color:var(--blue); font-size:11px; }
.result-analysis-overview span { display:block; color:var(--muted); font-size:12px; }.result-analysis-overview strong { display:block; margin-top:4px; font-size:21px; color:var(--blue-dark); }
.result-analysis-insights { display:grid; grid-template-columns:repeat(3, 1fr); gap:10px; margin-bottom:16px; }.result-analysis-insights h3 { margin:0 0 5px; font-size:14px; }.result-analysis-insights p { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.toolbar-actions { display:flex; gap:8px; flex-wrap:wrap; }.result-ai-analysis { margin:0 0 16px; padding:16px; border:1px solid #b3d6ee; border-radius:10px; background:#f2f9fd; }.result-ai-analysis h3 { margin:0 0 8px; }.result-ai-analysis p { line-height:1.7; margin:0 0 8px; }
.participant-list-content ul { list-style:none; margin:0; padding:0; }.participant-list-content li { display:flex; justify-content:space-between; gap:16px; padding:12px 0; border-bottom:1px solid var(--line); }.participant-list-content li span { color:var(--muted); }
.participant-list-content li strong small { display:block; margin-top:3px; color:var(--muted); font-size:11px; font-weight:400; }

.world-book-fields {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.world-book-fields textarea {
  min-height: 190px;
  resize: vertical;
}

.check-control {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  color: #33536e;
  font-size: 11px;
  font-weight: 700;
}

.check-control input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.check-control span {
  margin: 0 !important;
}

.probability-control {
  min-height: 42px;
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.probability-control input {
  min-width: 0;
  flex: 1;
}

.probability-control output {
  width: 44px;
  color: var(--blue);
  text-align: right;
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.danger-text-button {
  min-height: 30px;
  padding: 4px 9px;
  color: var(--danger);
  background: #fff3f4;
  border: 1px solid #f0d5da;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 700;
}

.rubric-editor {
  display: grid;
  gap: 8px;
}

.rubric-row {
  display: grid;
  grid-template-columns: 1fr 90px 1.5fr 34px;
  gap: 8px;
  align-items: center;
}

.rubric-row input {
  min-height: 38px;
}

.rubric-row button {
  width: 34px;
  height: 34px;
  color: var(--danger);
  background: #fff3f4;
  border: 1px solid #f0d5da;
  border-radius: 50%;
  font-size: 18px;
}

.rubric-total {
  margin: 9px 0 0;
  color: var(--teal);
  text-align: right;
  font-size: 11px;
  font-weight: 700;
}

.rubric-total.invalid {
  color: var(--danger);
}

.assignee-list {
  max-height: 220px;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  overflow-y: auto;
  background: #f5fafd;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.assignee-option {
  min-height: 42px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border: 1px solid #dce8f1;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
}

.assignee-option input {
  width: 16px;
  min-height: 16px;
  margin: 0;
}

.result-detail-meta {
  padding: 12px;
  color: #33596e;
  background: #f0f7fc;
  border-radius: 7px;
  font-size: 12px;
}

.result-briefing {
  margin-top: 10px;
  padding: 12px;
  background: #f7fbfe;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.result-briefing .briefing-row {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed #e1e8f0;
}

.result-briefing .briefing-row:last-child {
  border-bottom: none;
}

.result-briefing .briefing-label {
  font-size: 11px;
  font-weight: 700;
  color: #0f3a5c;
  padding-top: 1px;
}

.result-briefing .briefing-text {
  font-size: 12px;
  color: #3d5a73;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.result-transcript {
  max-height: 250px;
  margin-top: 14px;
  padding: 14px;
  overflow-y: auto;
  background: #fafdff;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.transcript-line {
  margin-bottom: 10px;
  color: #3d5a73;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.6;
}

.transcript-line strong {
  color: #0f3a5c;
}

.result-score-editor {
  margin: 18px 0;
  display: grid;
  gap: 8px;
}

.result-score-row {
  display: grid;
  grid-template-columns: minmax(140px, 1fr) 100px minmax(180px, 1.5fr);
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

.result-score-row input {
  min-height: 38px;
}

.result-score-row small {
  color: var(--muted);
  line-height: 1.45;
}

.score-notes {
  margin: 18px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.score-notes > div {
  padding: 14px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 7px;
}

.score-notes > .result-context-assessment {
  grid-column: 1 / -1;
  border-top: 3px solid #006ab7;
  background: #f5fafd;
}

.result-context-assessment p {
  margin: 8px 0;
  color: #4c6478;
  font-size: 12px;
  line-height: 1.7;
}

.result-context-assessment strong { color: #005a9d; }

.score-notes h4 {
  margin: 0 0 10px;
  color: #0f3a5c;
  font-size: 13px;
}

.score-notes ul {
  margin: 0;
  padding-left: 20px;
  color: #4c6478;
  font-size: 12px;
  line-height: 1.6;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 50;
  max-width: min(420px, calc(100% - 30px));
  padding: 11px 16px;
  color: white;
  background: #0f3a5c;
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(8, 42, 74, 0.28);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 820px) {
  .auth-layout {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 36px 0 60px;
  }

  .auth-context {
    padding-left: 0;
  }

  .auth-context h1 {
    font-size: 38px;
  }

  .context-strip {
    display: none;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .admin-identity {
    padding: 0;
    border: 0;
  }

  .admin-sidebar nav {
    margin-top: 0;
    display: flex;
    grid-column: 1 / -1;
    gap: 4px;
    overflow-x: auto;
  }

  .admin-sidebar .nav-item {
    min-width: 96px;
    flex: 1;
    text-align: center;
  }

  .sidebar-actions {
    margin: 0;
    display: flex;
    align-items: center;
  }

  .sidebar-actions button {
    width: auto;
    padding: 8px;
  }
}

@media (max-width: 620px) {
  .portal-header {
    height: 64px;
    padding: 0 16px;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .network-state {
    font-size: 0;
  }

  .auth-layout {
    width: min(100% - 24px, 460px);
    min-height: calc(100vh - 64px);
    align-content: center;
  }

  .auth-context {
    display: none;
  }

  .auth-panel {
    padding: 26px 20px;
  }

  .workspace {
    width: min(100% - 24px, 560px);
    padding: 38px 0;
  }

  .workspace-title {
    align-items: flex-start;
  }

  .workspace-title h1 {
    font-size: 23px;
  }

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

  .mode-option {
    min-height: 210px;
  }

  .admin-content {
    padding: 24px 12px 40px;
  }

  .admin-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-tools {
    grid-template-columns: 1fr;
  }

  .config-banner {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .full-field {
    grid-column: auto;
  }

  .admin-task-item {
    grid-template-columns: 1fr;
  }

  .assignee-list {
    grid-template-columns: 1fr;
  }

  .rubric-row {
    grid-template-columns: 1fr 80px 34px;
  }

  .rubric-row .rubric-description {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .world-book-toolbar {
    grid-template-columns: 1fr;
  }

  .world-book-toolbar-actions {
    flex-wrap: wrap;
  }

  .world-book-layout {
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .world-book-sidebar {
    max-height: 210px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .world-book-entry-list {
    max-height: 160px;
  }

  .world-book-editor {
    padding: 14px;
  }

  .world-book-empty {
    min-height: 230px;
  }

  .world-book-fields {
    grid-template-columns: 1fr;
  }

  .result-score-row {
    grid-template-columns: 1fr 82px;
  }

  .result-score-row small {
    grid-column: 1 / -1;
  }
}

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

/* ============ 企业蓝美化 · 交互与布局抛光层（2026-07，纯追加不改结构） ============ */

/* 统一控件反馈过渡 */
.primary-button,
.secondary-button,
.text-button,
.danger-button,
.danger-text-button,
.row-actions button,
.admin-task-actions button,
.custom-select-trigger,
.custom-select-option,
.nav-item,
.sidebar-actions button {
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, box-shadow 160ms ease, transform 120ms ease;
}

.primary-button:not(:disabled):active,
.secondary-button:not(:disabled):active,
.text-button:not(:disabled):active,
.danger-button:not(:disabled):active {
  transform: scale(0.97);
}

/* 键盘焦点可见性 */
:is(.primary-button, .secondary-button, .text-button, .danger-button, .danger-text-button, .nav-item, .sidebar-actions button, .row-actions button, .admin-task-actions button, .custom-select-trigger, .custom-select-option, .mode-option, .dialog-close, .world-book-book-item, .world-book-entry-item, .assignee-option, .result-analysis-overview button):focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

input,
select,
textarea {
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}

input::placeholder,
textarea::placeholder {
  color: #8aa2b5;
}

/* 次要按钮与文本按钮 hover */
.secondary-button:hover {
  background: #e2eef7;
  border-color: #c2d8e8;
}

.text-button:hover {
  border-color: var(--blue);
  color: var(--blue-strong);
  background: var(--blue-tint);
}

/* 表格行悬停 */
tbody tr {
  transition: background-color 120ms ease;
}

tbody tr:hover {
  background: var(--canvas);
}

/* 行内小按钮 hover */
.row-actions button:hover,
.admin-task-actions button:hover {
  border-color: var(--blue);
  color: var(--blue-strong);
  background: var(--blue-tint);
}

/* 侧栏导航反馈与选中态 */
.nav-item:hover,
.sidebar-actions button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 3px 0 0 #7cc3ef;
}

/* 任务卡片 */
.admin-task-item {
  transition: border-color 140ms ease, box-shadow 160ms ease;
}

.admin-task-item:hover {
  border-color: #b9d6ea;
  box-shadow: 0 6px 20px rgba(0, 82, 138, 0.08);
}

/* 弹窗进入动效 */
dialog[open] {
  animation: portalDialogIn 200ms cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes portalDialogIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

dialog::backdrop {
  animation: portalBackdropIn 200ms ease;
}

@keyframes portalBackdropIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Toast 柔和滑入 */
.toast {
  transition: opacity 300ms ease, transform 300ms cubic-bezier(0.23, 1, 0.32, 1);
}

/* 选中文字 */
::selection {
  background: rgba(0, 106, 183, 0.18);
}

/* 细滚动条 */
.table-wrap,
.world-book-book-list,
.world-book-entry-list,
.result-transcript,
.task-dialog-form,
.result-dialog-content {
  scrollbar-width: thin;
  scrollbar-color: #c2d6e6 transparent;
}

/* ============ 企业蓝美化 · 第二遍可见升级（2026-07 追加） ============ */

/* 顶栏浮起 */
.portal-header {
  box-shadow: 0 4px 18px rgba(0, 82, 138, 0.07);
}

/* 登录面板：更大圆角 + 品牌渐变顶边 */
.auth-panel {
  position: relative;
  border-radius: 14px;
  border-color: rgba(0, 106, 183, 0.14);
  box-shadow: 0 24px 64px rgba(0, 82, 138, 0.16);
  overflow: hidden;
}

.auth-panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #3d97d2);
}

/* 登录大标题：品牌深蓝 */
.auth-context h1 {
  color: #0b3a5c;
}

/* 主按钮：品牌渐变 + 更立体 */
.primary-button {
  background: linear-gradient(135deg, #1a7fc4, var(--blue));
  border-color: var(--blue);
  box-shadow: 0 10px 24px rgba(0, 106, 183, 0.26);
}

.primary-button:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--blue), var(--blue-strong));
  box-shadow: 0 12px 28px rgba(0, 106, 183, 0.32);
}

/* 模式卡：品牌渐变 + 圆角加大 */
.mode-option {
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 82, 138, 0.14);
}

.mode-option:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(0, 82, 138, 0.22);
}

.practice-option {
  background: linear-gradient(150deg, #1a7fc4 0%, var(--blue) 55%, var(--blue-strong) 100%);
  border-color: var(--blue-strong);
}

.assessment-option {
  background: linear-gradient(150deg, #129c8c 0%, var(--teal) 55%, #0b6e64 100%);
  border-color: #0b6e64;
}

/* 管理侧栏：品牌深蓝渐变 */
.admin-sidebar {
  background: linear-gradient(180deg, #063a63 0%, #044a79 60%, #005a9d 100%);
}

/* 徽章：胶囊化 */
.badge {
  border-radius: 999px;
  padding: 3px 10px;
  font-weight: 700;
}

/* 成绩总览统计卡：悬停浮起 */
.result-analysis-overview div,
.result-analysis-overview button,
.result-analysis-insights > div {
  border-radius: 12px;
  transition: transform 160ms ease, box-shadow 180ms ease, border-color 140ms ease;
}

.result-analysis-overview button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 82, 138, 0.10);
}

/* 弹窗圆角加大 */
dialog {
  border-radius: 12px;
}

/* 表格容器圆角统一 */
.table-wrap,
.account-tools {
  border-radius: 12px;
}

.account-tools {
  border-radius: 12px 12px 0 0;
}

.table-wrap {
  border-radius: 0 0 12px 12px;
}

.result-table,
.retry-table {
  border-radius: 12px;
}

/* AI 设置面板 */
.ai-settings-panel {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 82, 138, 0.06);
}

/* 任务卡圆角统一 */
.admin-task-item {
  border-radius: 12px;
}

/* 侧栏渐变固定到视口：各页面背景保持一致（2026-07 修正） */
.admin-sidebar {
  background: linear-gradient(180deg, #063a63 0%, #044a79 60%, #005a9d 100%) fixed;
}

/* ===== 成绩审核页可见升级（2026-07 追加） ===== */

/* 统计卡：顶部色条 + 淡蓝渐变底 + 大号品牌数字 */
.result-analysis-overview div,
.result-analysis-overview button {
  background: linear-gradient(180deg, #f2f9fd, #ffffff);
  border: 1px solid #d8e5f0;
  border-top: 3px solid var(--blue);
  box-shadow: 0 4px 14px rgba(0, 82, 138, 0.05);
}

.result-analysis-overview strong {
  font-size: 24px;
  color: var(--blue);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.result-analysis-overview button:hover {
  box-shadow: 0 10px 24px rgba(0, 82, 138, 0.12);
}

/* 洞察三卡：淡蓝底 + 标题深蓝 */
.result-analysis-insights > div {
  background: #f7fbfe;
  border-color: #d8e5f0;
}

.result-analysis-insights h3 {
  color: var(--blue-dark);
}

/* AI 团队分析面板：品牌浅蓝渐变 + 左侧色条 */
.result-ai-analysis {
  background: linear-gradient(135deg, #eef7fc, #f7fbfe);
  border: 1px solid #b3d6ee;
  border-left: 4px solid var(--blue);
  border-radius: 12px;
}

/* 表格容器：卡片化浮起 */
.table-wrap {
  box-shadow: 0 8px 24px rgba(0, 82, 138, 0.06);
}

/* 表格内分数：品牌色加粗（只命中分数，不影响姓名单元格） */
.table-wrap td > strong {
  color: var(--blue-strong);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}

/* 行内操作按钮：品牌小按钮 */
.row-actions button,
button[data-view-result] {
  color: var(--blue);
  background: var(--blue-tint);
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
}

.row-actions button:hover,
button[data-view-result]:hover {
  color: var(--blue-strong);
  background: var(--blue-tint-strong);
  border-color: transparent;
}

.row-actions .danger-text-button,
.row-actions button.danger-text-button {
  color: var(--danger);
  background: #fff3f4;
}

/* 成绩审核工具条主按钮更醒目 */
.toolbar-actions .primary-button,
.toolbar-actions .secondary-button {
  border-radius: 8px;
}

/* ===== 登录页 · 浅色科技蓝（2026-07 重构） ===== */

/* 浅色动态背景：淡蓝渐变 + 柔和光晕缓慢漂浮 */
.auth-layout {
  position: relative;
  isolation: isolate;
}

.auth-layout::before {
  content: "";
  position: fixed;
  inset: -12%;
  z-index: -2;
  background:
    radial-gradient(900px 620px at 12% 18%, rgba(124, 195, 239, 0.38), transparent 60%),
    radial-gradient(820px 560px at 88% 12%, rgba(168, 216, 245, 0.42), transparent 55%),
    radial-gradient(980px 720px at 78% 92%, rgba(124, 195, 239, 0.32), transparent 62%),
    linear-gradient(155deg, #f4f9fc 0%, #eaf5fc 48%, #d9edfa 100%);
  animation: authBgFloat 22s ease-in-out infinite alternate;
}

@keyframes authBgFloat {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(2.5%, 1.8%, 0) scale(1.05); }
}

/* 细腻网格纹理：缓慢漂移 */
.auth-layout::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(0, 106, 183, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 106, 183, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 78%);
  animation: authGridDrift 26s linear infinite;
}

@keyframes authGridDrift {
  from { background-position: 0 0, 0 0; }
  to { background-position: 44px 44px, 44px 44px; }
}

/* 白色登录面板：无顶边条、无徽标，干净立体 */
.auth-panel {
  width: min(100%, 400px);
  padding: 40px;
  background: #ffffff;
  border: 1px solid rgba(0, 106, 183, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(0, 82, 138, 0.14);
  overflow: visible;
}

.auth-panel::before {
  display: none;
}

.auth-panel-logo {
  display: none;
}

.auth-panel .panel-heading {
  margin-bottom: 26px;
  text-align: center;
}

.auth-panel .panel-heading > span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 14px;
  color: var(--blue);
  border: 1px solid rgba(0, 106, 183, 0.28);
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 3px;
}

.auth-panel .panel-heading h2 {
  color: var(--ink);
  font-size: 27px;
  letter-spacing: 1px;
}

.auth-panel label {
  color: #3d5a73;
}

.auth-panel label span {
  letter-spacing: 0.5px;
}

.auth-panel input {
  min-height: 48px;
  padding-left: 42px;
  background-color: #f7fbfe;
  border: 1px solid #c9dcea;
  border-radius: 10px;
  color: var(--ink);
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 18px 18px;
}

.auth-panel input::placeholder {
  color: #8aa2b5;
}

.auth-panel input:focus {
  background-color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 106, 183, 0.14);
}

.auth-panel #loginEmployeeNo {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235ea5d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c0-4 3.6-6 8-6s8 2 8 6'/%3E%3C/svg%3E");
}

.auth-panel #loginPassword,
.auth-panel #currentPassword,
.auth-panel #newPassword,
.auth-panel #confirmPassword {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235ea5d4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='9' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
}

.auth-panel .form-message {
  color: var(--danger);
}

.auth-panel .primary-button {
  min-height: 48px;
  border-radius: 10px;
  font-size: 15px;
  letter-spacing: 6px;
  text-indent: 6px;
}

/* 左侧文案：深蓝标题 + 品牌渐变高光字 */
.auth-context h1 {
  color: #0b3a5c;
  text-shadow: none;
}

.grad-text {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), #2f9be0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.auth-context p {
  color: #48647e;
}

.auth-context .context-label {
  color: var(--blue);
}

/* 特性标签：白色小胶囊 */
.context-strip {
  gap: 10px;
}

.context-strip span {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(0, 106, 183, 0.16);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 82, 138, 0.06);
  font-size: 12px;
  font-weight: 500;
  color: #33596e;
}

.context-strip i {
  display: none;
}

/* 去掉光环轨道装饰 */
.auth-context::before,
.auth-context::after {
  display: none;
}

/* 顶栏：磨砂玻璃 */
.portal-header {
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

@media (prefers-reduced-motion: reduce) {
  .auth-layout::before,
  .auth-layout::after {
    animation: none;
  }
}

/* 产品知识考核：统一后台二级导航与模块挂载区 */
.knowledge-nav-group {
  display: grid;
  gap: 3px;
}

.knowledge-nav-parent {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.knowledge-nav-chevron {
  font-size: 16px;
  line-height: 1;
  transition: transform 160ms ease;
}

.knowledge-nav-group.open .knowledge-nav-chevron {
  transform: rotate(180deg);
}

.knowledge-submenu {
  display: grid;
  gap: 2px;
  margin: 1px 0 5px;
  padding: 3px 0 3px 12px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.knowledge-nav-item {
  width: 100%;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.68);
  background: transparent;
  border: 0;
  border-radius: 6px;
  text-align: left;
  font-size: 12px;
}

.knowledge-nav-item:hover {
  color: white;
  background: rgba(255, 255, 255, 0.08);
}

.knowledge-nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.14);
  font-weight: 700;
}

.knowledge-nav-item:focus-visible,
.knowledge-nav-parent:focus-visible {
  outline: 2px solid white;
  outline-offset: 2px;
}

.knowledge-admin-section {
  min-height: min(720px, calc(100vh - 140px));
}

.knowledge-admin-module:empty {
  display: none;
}

.knowledge-module-loading,
.knowledge-module-error {
  min-height: 420px;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  color: var(--muted);
  text-align: center;
}

.knowledge-module-loading strong,
.knowledge-module-error strong {
  color: var(--ink);
  font-size: 18px;
}

.knowledge-module-loading p,
.knowledge-module-error p {
  margin: 0;
  font-size: 13px;
}

.knowledge-loading-mark {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
  color: var(--blue);
  background: var(--blue-tint);
  border-radius: 12px;
  font-size: 22px;
  font-weight: 800;
}

.knowledge-admin-section .page-heading {
  margin-bottom: 22px;
}

.knowledge-admin-section .page-heading h1 {
  color: var(--ink);
  font-size: 30px;
}

.knowledge-admin-section .page-heading p {
  color: var(--muted);
  font-size: 13px;
}

.knowledge-admin-section .editor-card,
.knowledge-admin-section .list-item,
.knowledge-admin-section .exam-item,
.knowledge-admin-section .question-card,
.knowledge-admin-section .table-card {
  box-shadow: none;
}

#knowledgeQuestionDialog,
#knowledgeExamDialog,
#knowledgeResultDialog {
  width: min(1120px, calc(100% - 36px));
  max-width: none;
  max-height: calc(100vh - 36px);
}

#knowledgeQuestionDialog > form,
#knowledgeExamDialog > form,
#knowledgeResultDialog > form {
  max-height: calc(100vh - 36px);
  overflow-y: auto;
}

@media (max-width: 860px) {
  .knowledge-nav-group {
    min-width: 156px;
  }

  .knowledge-submenu {
    padding-left: 8px;
  }

  .knowledge-admin-section {
    min-height: 0;
  }
}

/* ICP备案页脚（固定底部，登录页一屏即可见） */
body { padding-bottom: 46px; }
.icp-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 12px 0;
  text-align: center;
  font-size: 12px;
  color: #8aa0b4;
  background: var(--canvas);
  border-top: 1px solid rgba(0, 106, 183, 0.08);
  z-index: 50;
}
.icp-footer a { color: #8aa0b4; text-decoration: none; }
.icp-footer a:hover { color: var(--blue, #006ab7); text-decoration: underline; }
