* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #1d1d1d;
  background: #dfe3e7;
}

.hidden {
  display: none !important;
}

.view {
  min-height: 100vh;
  padding: 6px;
}

.panel {
  background: #ffffff;
  border: 1px solid #c7ccd1;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.04);
}

h1, h2, h3, p {
  margin-top: 0;
}

.subtitle {
  color: #4e4e4e;
  margin-bottom: 16px;
}

.start-panel {
  max-width: 860px;
  margin: 10px auto;
  padding: 14px;
}

.notice-box {
  border: 1px solid #b8c0c7;
  background: #f8f9fa;
  padding: 12px;
  margin-bottom: 16px;
}

.notice-box h2 {
  font-size: 14px;
  margin-bottom: 8px;
}

.notice-box ul {
  margin: 0;
  padding-left: 20px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

input[type="text"] {
  width: 100%;
  border: 1px solid #aeb5bc;
  padding: 6px;
  font-size: 13px;
  margin-bottom: 10px;
}

select {
  width: 100%;
  border: 1px solid #aeb5bc;
  padding: 6px;
  font-size: 13px;
  margin-bottom: 6px;
  background: #ffffff;
}

.start-meta-line {
  margin: 0 0 10px;
  font-size: 12px;
  color: #4f5962;
}

.checkbox-row {
  display: flex;
  gap: 8px;
  align-items: center;
  font-weight: 400;
  margin-bottom: 14px;
}

button {
  border: 1px solid #8f969e;
  background: #eceff2;
  color: #1d1d1d;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
}

button:hover:enabled {
  background: #e1e5e9;
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

button.danger {
  border-color: #9f6a6a;
}

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

#exam-view {
  /* Footerhoehe + Reserve fuer feste Bedienleiste */
  height: 100vh;
  padding-bottom: 56px;
  overflow: hidden;
}

/* Headerhoehe / Systemleiste */
.exam-header {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 4px;
  align-items: center;
  border: 1px solid #186573;
  background: #1f7a8c;
  color: #ffffff;
  padding: 2px 8px;
  margin-bottom: 2px;
  position: sticky;
  top: 0;
  z-index: 8;
  min-height: 60px;
  font-size: 12px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  text-align: left;
}

.ec-badge {
  display: inline-flex;
  width: 35px;
  height: 35px;
  align-items: center;
  justify-content: center;
}

.header-user {
  font-size: 12px;
  line-height: 1.25;
}

#header-login-label {
  opacity: 0.9;
  font-size: 14px;
  font-weight: 600;
}

.header-center {
  text-align: center;
  font-weight: 700;
  font-size: 23px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-right {
  text-align: right;
  font-weight: 600;
  color: #ffffff;
  font-size: 13px;
}

.header-right.warning {
  color: #8a5a00;
  background: #fff3d8;
  border: 1px solid #d9b77a;
  padding: 2px 4px;
}

.header-right.danger {
  color: #7e1f1f;
  background: #ffe0e0;
  border: 1px solid #c78e8e;
  padding: 2px 4px;
}

.header-right-wrap {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.font-scale {
  font-size: 11px;
  letter-spacing: 1px;
}

.header-end-btn {
  background: #f4f7f8;
  border: 1px solid #9ab6bc;
  color: #1f3f46;
  padding: 3px 8px;
  font-size: 12px;
  height: 30px;
}

.task-status-panel {
  padding: 3px 8px 2px;
  margin-bottom: 2px;
  border-color: #cfd5db;
  box-shadow: none;
  min-height: 74px;
}

.task-dot-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: -1px;
}

.task-dot-btn {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  padding: 0;
  font-size: 9px;
  border: 2px dotted #2d6f8b;
  background: #dceaf1;
  color: #1b4f66;
}

.task-dot-btn.current {
  border: 2px solid #cb7d2d;
  background: #f5b36f;
  color: #5b3411;
}

.task-dot-btn.answered {
  background: #8db4c7;
  border-style: solid;
  color: #10384b;
}

.task-dot-btn.marked {
  box-shadow: inset 0 0 0 2px #d58f3e;
}

.task-dot-btn.unanswered {
  background: #e8f0f5;
}

.task-info-line {
  font-size: 16px;
  color: #4d5660;
}

.task-info-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-type-icon svg {
  width: 23px;
  height: 23px;
}

.exam-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  gap: 2px;
  align-items: start;
  height: calc(100vh - 142px);
}

.question-panel {
  padding: 4px 10px 6px 17px;
  height: 100%;
  overflow: auto;
  border-right: none;
}

.meta-line {
  color: #1f7a8c;
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 700;
}

#question-topic {
  font-size: 12px;
  color: #5a6875;
  font-weight: 400;
  margin-bottom: 2px;
}

.question-panel h2 {
  display: none;
}

#question-text {
  font-size: 17px;
  font-weight: 600;
  margin: 2px 0 0;
}

.options-container {
  margin-top: 0;
  width: 100%;
  border-top: 11px solid #eceff2;
}

.answer-table,
.options-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.answer-table col.col-exclude,
.options-table col.col-exclude {
  width: 125px;
}

.answer-table col.col-select,
.options-table col.col-select {
  width: 100px;
}

.answer-table col.col-answer,
.options-table col.col-answer {
  width: auto;
}

.answer-table th,
.answer-table td,
.options-table th,
.options-table td {
  border: 1px solid #dde2e7;
  padding: 10px 12px;
}

.answer-table th,
.options-table th {
  background: #f1f3f5;
  font-weight: 600;
  font-size: 16px;
  color: #1f7a8c;
  text-align: left;
  height: 54px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.answer-table td,
.options-table td {
  min-height: 69px;
  vertical-align: middle;
}

.option-row {
  /* Antwortzeilen (hoehe, spacing, klickflaeche) */
  display: table-row;
  cursor: pointer;
}

.option-row input {
  margin: 0;
}

.option-text {
  line-height: 1.3;
  font-weight: 400;
}

.option-row.selected {
  background: #edf1f4;
}

.option-row.excluded {
  color: #7a7f84;
  text-decoration: line-through;
  background: #f3f4f5;
}

.exclude-cell,
.select-cell {
  width: 125px;
  text-align: center;
  vertical-align: middle;
}

.option-text-cell {
  font-size: 16px;
  line-height: 1.35;
  vertical-align: middle;
}

.exclude-btn {
  width: 24px;
  height: 24px;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  background: #f3f5f7;
  border: 1px solid #c6ccd2;
  color: #4f5962;
  border-radius: 2px;
}

.exclude-btn svg {
  width: 18px;
  height: 18px;
  display: block;
  margin: 0 auto;
}

.option-row.excluded .exclude-btn {
  border-color: #8a8a8a;
  background: #e4e6e8;
}

.select-cell {
  text-align: center;
}

.select-cell input {
  width: 17px;
  height: 17px;
  transform: scale(1.3);
}

.right-rail {
  background: #e4e8ec;
  border: 1px solid #cdd4db;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 62px;
}

.side-overview-btn {
  width: 52px;
  height: 62px;
  border: 1px solid #1f7a8c;
  background: #1f7a8c;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.side-overview-btn svg {
  width: 28px;
  height: 28px;
}

.navigator-panel {
  padding: 6px;
  position: sticky;
  top: 40px;
  height: calc(100vh - 90px);
  overflow: auto;
  border-left: 1px solid #d8dde2;
  border-top: none;
  border-right: none;
  border-bottom: none;
  box-shadow: none;
}

.navigator-panel h3 {
  font-size: 12px;
  margin-bottom: 4px;
}

.question-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 5px;
}

.question-nav-btn {
  /* Fragenmatrix-Buttons (groesse, alignment) */
  height: 32px;
  width: 100%;
  padding: 0;
  font-size: 12px;
  border: 1px solid #9ea5ad;
  position: relative;
  text-align: center;
}

.question-nav-btn.current {
  border: 2px solid #111111;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #ffffff;
}

.question-nav-btn.answered {
  background: #e9f4e9;
}

.question-nav-btn.marked {
  box-shadow: inset 0 0 0 2px #d5a253;
}

.question-nav-btn.current.marked {
  border-color: #111111;
  box-shadow: inset 0 0 0 2px #d5a253, inset 0 0 0 3px #ffffff;
}

.question-nav-btn.unanswered {
  background: #f8f9fa;
}

.question-nav-btn.marked::after {
  content: "M";
  position: absolute;
  top: 0;
  right: 2px;
  font-size: 8px;
  font-weight: 700;
  color: #7d5800;
}

.legend {
  margin-top: 6px;
  display: grid;
  gap: 1px;
  font-size: 10px;
}

.compact-legend {
  margin-top: 0;
  margin-bottom: 4px;
}

.legend-box {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid #8f969e;
  vertical-align: text-bottom;
  margin-right: 6px;
}

.legend-box.current {
  border: 2px solid #3f5f8a;
}

.legend-box.answered {
  background: #eaf5ea;
}

.legend-box.marked {
  box-shadow: inset 0 0 0 2px #d5a253;
}

.legend-box.unanswered {
  background: #ffffff;
}

.exam-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 6px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #c7ccd1;
  background: #ffffff;
  padding: 5px 8px;
  z-index: 9;
  min-height: 52px;
}

.footer-left,
.footer-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-left {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 8px;
}

#back-btn { grid-column: 1; }
#overview-btn { grid-column: 2; justify-self: center; }
#mark-btn { grid-column: 3; }
#next-btn { grid-column: 4; }

.footer-right {
  margin-left: 8px;
}

.exam-footer button {
  padding: 5px 10px;
  font-size: 14px;
  height: 35px;
}

#submit-btn {
  background: #f5fbfc;
  border-color: #1f7a8c;
  color: #14505c;
  font-size: 13px;
  height: 32px;
}

#next-btn {
  background: #1f7a8c;
  border-color: #186573;
  color: #ffffff;
}

.btn-icon-primary,
.btn-icon-outline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-icon-outline {
  background: #ffffff;
  border-color: #1f7a8c;
  color: #1f7a8c;
}

.question-workspace {
  margin-top: 6px;
  min-height: 140px;
  border-top: 1px solid #dfe3e7;
  background: #f0f2f5;
}

#next-btn:hover:enabled {
  background: #1a6878;
}

.result-panel,
.review-panel {
  max-width: 920px;
  margin: 8px auto;
  padding: 8px;
}

.result-summary {
  border: none;
  background: transparent;
  padding: 0;
  margin-bottom: 8px;
  line-height: 1.35;
}

.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 12px;
}

th, td {
  border: 1px solid #c7ccd1;
  padding: 6px;
  text-align: left;
}

.review-filters {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.review-filters label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
}

.review-filters select {
  border: 1px solid #aeb5bc;
  background: #ffffff;
  font-size: 12px;
  padding: 4px 6px;
}

.review-item {
  border: 1px solid #cfd5db;
  margin-bottom: 6px;
  padding: 6px;
  background: #ffffff;
}

.review-item strong {
  font-weight: 600;
}

.review-item.correct {
  border-left: 5px solid #5a8d5a;
}

.review-item.partial {
  border-left: 5px solid #b59a4f;
}

.review-item.wrong {
  border-left: 5px solid #b48787;
}

.review-answer-line {
  margin: 2px 0;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  width: 100%;
  max-width: 460px;
  padding: 10px;
}

.modal-stats-table {
  margin-bottom: 6px;
}

.modal-warning {
  border: 1px solid #d6c586;
  background: #faf5df;
  padding: 6px;
  margin-top: 4px;
  margin-bottom: 8px;
}

.screen-warning {
  position: fixed;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  border: 1px solid #b47a7a;
  background: #fff1f1;
  padding: 8px 12px;
  font-size: 13px;
}

@media (max-width: 1024px) {
  #exam-view {
    height: auto;
    overflow: visible;
  }

  .exam-content {
    grid-template-columns: 1fr;
    height: auto;
  }

  .question-panel,
  .navigator-panel {
    position: static;
    height: auto;
  }
}

/* FINAL A-POINT REFERENCE OVERRIDES */
#exam-view {
  padding-bottom: 50px;
}

#exam-view .exam-header {
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  padding: 1px 8px;
  grid-template-columns: 240px 1fr 250px;
  align-items: center;
}

#exam-view .ec-badge {
  width: 34px;
  height: 34px;
}

#exam-view .header-user {
  font-size: 12px;
}

#exam-view #header-login-label {
  font-size: 13px;
}

#exam-view .header-center {
  font-size: 21px;
}

#exam-view .header-right-wrap {
  align-items: center;
}

#exam-view .task-status-panel {
  height: 68px;
  min-height: 68px;
  max-height: 68px;
  padding: 5px 8px 4px;
}

#exam-view .task-dot-nav {
  gap: 4px;
  margin-bottom: 2px;
}

#exam-view .task-dot-btn {
  width: 15px;
  height: 15px;
  padding: 0;
  border: none;
  border-radius: 50%;
  font-size: 9px;
  color: #1d5f78;
  background:
    radial-gradient(circle at center, #ffffff 56%, transparent 57%),
    conic-gradient(from 0deg, #2f6f8a 0deg 32deg, transparent 32deg 60deg, #2f6f8a 60deg 92deg, transparent 92deg 120deg, #2f6f8a 120deg 152deg, transparent 152deg 180deg, #2f6f8a 180deg 212deg, transparent 212deg 240deg, #2f6f8a 240deg 272deg, transparent 272deg 300deg, #2f6f8a 300deg 332deg, transparent 332deg 360deg);
}

#exam-view .task-dot-btn.current {
  color: #7a430f;
  background:
    radial-gradient(circle at center, #ffffff 56%, transparent 57%),
    conic-gradient(from 0deg, #f09a3a 0deg 32deg, transparent 32deg 60deg, #f09a3a 60deg 92deg, transparent 92deg 120deg, #f09a3a 120deg 152deg, transparent 152deg 180deg, #f09a3a 180deg 212deg, transparent 212deg 240deg, #f09a3a 240deg 272deg, transparent 272deg 300deg, #f09a3a 300deg 332deg, transparent 332deg 360deg);
}

#exam-view .task-dot-btn.answered {
  background:
    radial-gradient(circle at center, #7eaac0 56%, transparent 57%),
    conic-gradient(from 0deg, #2f6f8a 0deg 360deg);
  color: #12495f;
}

#exam-view .task-dot-btn.marked {
  box-shadow: inset 0 -1px 0 #f59a23;
}

#exam-view .task-info-line {
  font-size: 15px;
}

#exam-view .task-type-icon svg {
  width: 22px;
  height: 22px;
}

#exam-view .exam-content {
  grid-template-columns: minmax(0, 1fr) 64px;
  height: calc(100vh - 174px);
}

#exam-view .question-panel {
  padding: 12px 16px 10px 16px;
}

#exam-view #question-topic {
  display: none;
}

#exam-view .meta-line {
  font-size: 15px;
}

#exam-view #question-text {
  font-size: 16px;
  margin: 7px 0 0;
}

#exam-view .options-container {
  border-top: 10px solid #eceff2;
  margin-top: 0;
}

#exam-view .answer-table col.col-exclude {
  width: 115px;
}

#exam-view .answer-table col.col-select {
  width: 92px;
}

#exam-view .answer-table th {
  height: 50px;
  font-size: 15px;
  color: #1f7a8c;
  padding: 0 14px;
}

#exam-view .answer-table td {
  height: 64px;
  min-height: 64px;
  padding: 0 14px;
}

#exam-view .option-text-cell {
  font-size: 15px;
  line-height: 1.25;
}

#exam-view .select-cell input {
  width: 16px;
  height: 16px;
  transform: scale(1.2);
}

#exam-view .exclude-btn {
  width: 26px;
  height: 26px;
  border: none;
  background: transparent;
  padding: 0;
}

#exam-view .exclude-btn svg {
  width: 25px;
  height: 25px;
}

#exam-view .option-row.excluded {
  background: #eceff2;
  color: #6f757b;
  text-decoration: line-through;
}

#exam-view .right-rail {
  width: 64px;
  padding-top: 55px;
}

#exam-view .side-overview-btn {
  width: 54px;
  height: 62px;
}

#exam-view .side-overview-btn svg {
  width: 31px;
  height: 31px;
}

#exam-view .exam-footer {
  min-height: 50px;
  max-height: 50px;
  padding: 5px 8px;
  border-top-color: #d5d5d5;
}

#exam-view .exam-footer button {
  height: 32px;
  font-size: 14px;
  border-radius: 4px;
  padding: 0 12px;
}

#exam-view #submit-btn {
  display: none;
}

#exam-view .footer-left {
  grid-template-columns: auto 1fr auto auto;
}

#exam-view #overview-btn {
  justify-self: center;
}

#exam-view #mark-btn,
#exam-view #next-btn {
  justify-self: end;
}

#exam-view .question-workspace {
  min-height: 140px;
}

/* FINAL SCREENSHOT MATCH OVERRIDES */
#exam-view .exam-header {
  grid-template-columns: 190px 1fr auto !important;
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
}

#exam-view .header-center {
  justify-self: start !important;
  text-align: left !important;
  font-size: 20px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
}

#exam-view .task-status-panel {
  height: 56px !important;
  min-height: 56px !important;
  max-height: 56px !important;
  padding: 4px 14px 2px !important;
  margin-bottom: 0 !important;
}

#exam-view .task-dot-nav {
  margin-bottom: 1px !important;
}

#exam-view .task-dot-btn {
  width: 14px !important;
  height: 14px !important;
}

#exam-view .task-info-line {
  font-size: 15px !important;
  line-height: 1.1 !important;
}

#exam-view .task-type-icon svg {
  width: 21px !important;
  height: 21px !important;
}

#exam-view .exam-content {
  grid-template-columns: minmax(0, 1fr) 58px !important;
  gap: 0 !important;
}

#exam-view .question-panel {
  padding: 6px 10px 8px 16px !important;
  margin-top: 0 !important;
}

#exam-view .meta-line {
  font-size: 14px !important;
}

#exam-view #question-text {
  font-size: 15px !important;
  margin: 5px 0 4px !important;
}

#exam-view .options-container {
  border-top-width: 8px !important;
}

#exam-view .answer-table col.col-exclude {
  width: 110px !important;
}

#exam-view .answer-table col.col-select {
  width: 88px !important;
}

#exam-view .answer-table th {
  height: 44px !important;
  font-size: 15px !important;
}

#exam-view .answer-table td {
  height: 56px !important;
  min-height: 56px !important;
  padding: 0 14px !important;
}

#exam-view .option-text-cell {
  font-size: 15px !important;
  line-height: 1.2 !important;
}

#exam-view .select-cell input {
  width: 16px !important;
  height: 16px !important;
  transform: scale(1.25) !important;
}

#exam-view .exclude-btn {
  width: 24px !important;
  height: 24px !important;
}

#exam-view .exclude-btn svg {
  width: 24px !important;
  height: 24px !important;
}

#exam-view .right-rail {
  width: 58px !important;
  padding-top: 40px !important;
}

#exam-view .side-overview-btn {
  width: 48px !important;
  height: 56px !important;
}

#exam-view .side-overview-btn svg {
  width: 28px !important;
  height: 28px !important;
}

#exam-view .exam-footer {
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  padding: 5px 8px !important;
  display: grid !important;
  grid-template-columns: 120px 1fr auto !important;
  align-items: center !important;
}

#exam-view .footer-left {
  display: contents !important;
}

#exam-view #back-btn {
  grid-column: 1 !important;
  justify-self: start !important;
  font-size: 13px !important;
  padding: 0 10px !important;
}

#exam-view #overview-btn {
  grid-column: 2 !important;
  justify-self: center !important;
}

#exam-view .footer-right {
  grid-column: 3 !important;
  justify-self: end !important;
  display: flex !important;
  gap: 6px !important;
  margin-left: 0 !important;
}

#exam-view #mark-btn,
#exam-view #next-btn {
  font-size: 14px !important;
}

#exam-view .exam-footer button {
  height: 30px !important;
  font-size: 14px !important;
  padding: 0 12px !important;
}

#exam-view #submit-btn {
  display: none !important;
}

/* FINAL DETAIL MATCH OVERRIDES */
#exam-view .exam-header {
  grid-template-columns: 165px 1fr auto !important;
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
}

#exam-view .ec-badge {
  width: 36px !important;
  height: 36px !important;
}

#exam-view .header-left {
  align-items: flex-start !important;
  padding-top: 1px !important;
}

#exam-view .header-center {
  font-size: 21px !important;
  font-weight: 500 !important;
  justify-self: start !important;
  align-self: center !important;
}

#exam-view .header-right {
  font-size: 14px !important;
  font-weight: 700 !important;
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
}

#exam-view .task-status-panel {
  height: 70px !important;
  min-height: 70px !important;
  max-height: 70px !important;
}

#exam-view .task-dot-btn {
  width: 17px !important;
  height: 17px !important;
  font-size: 9px !important;
}

#exam-view .task-dot-nav {
  gap: 5px !important;
  margin-bottom: 4px !important;
}

#exam-view .task-info-line {
  font-size: 17px !important;
  color: #1f7a8c !important;
}

#exam-view .task-type-icon svg {
  width: 24px !important;
  height: 24px !important;
}

#exam-view .question-panel {
  padding: 12px 10px 10px 24px !important;
}

#exam-view .meta-line {
  font-size: 16px !important;
}

#exam-view #question-text {
  font-size: 16px !important;
  margin: 8px 0 8px !important;
}

#exam-view .options-container {
  border-top: 12px solid #e6e6e6 !important;
}

#exam-view .answer-table col.col-exclude {
  width: 120px !important;
}

#exam-view .answer-table col.col-select {
  width: 100px !important;
}

#exam-view .answer-table th {
  height: 54px !important;
  font-size: 16px !important;
}

#exam-view .answer-table td {
  height: 70px !important;
  min-height: 70px !important;
}

#exam-view .option-text-cell {
  font-size: 16px !important;
}

#exam-view .select-cell input {
  width: 17px !important;
  height: 17px !important;
  transform: scale(1.3) !important;
}

#exam-view .exclude-btn {
  width: 26px !important;
  height: 26px !important;
}

#exam-view .exclude-btn svg {
  width: 26px !important;
  height: 26px !important;
}

#exam-view .right-rail {
  width: 64px !important;
  padding-top: 58px !important;
}

#exam-view .side-overview-btn {
  width: 54px !important;
  height: 64px !important;
}

#exam-view .side-overview-btn svg {
  width: 30px !important;
  height: 30px !important;
}

#exam-view .exam-footer {
  height: 52px !important;
  min-height: 52px !important;
  max-height: 52px !important;
}

#exam-view .exam-footer button {
  height: 34px !important;
  font-size: 15px !important;
}

#exam-view #overview-btn {
  background: #1f7a8c !important;
  color: #ffffff !important;
  border-color: #1f7a8c !important;
}

/* FIX TOPIC GRID ALIGNMENT */
#exam-view .task-status-panel {
  height: 96px;
  min-height: 96px;
  max-height: 96px;
  padding: 5px 16px 4px 16px;
  display: grid;
  grid-template-rows: 26px 20px 28px;
  row-gap: 3px;
  overflow: hidden;
}

#exam-view .topic-block-strip,
#exam-view .task-dot-nav {
  display: grid;
  width: 100%;
  column-gap: 1px;
  align-items: center;
}

#exam-view .topic-block-strip {
  height: 26px;
}

#exam-view .task-dot-nav {
  height: 20px;
}

#exam-view .topic-block {
  height: 24px;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #c9c9c9;
  background: #f5f5f5;
  color: #333;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.05;
  padding: 1px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

#exam-view .topic-block.current {
  border-color: #1f7c8d;
  border-top: 3px solid #f59a23;
  background: #fff8ed;
}

#exam-view .task-dot-btn {
  width: 16px;
  height: 16px;
  justify-self: center;
  align-self: center;
  margin: 0;
}

#exam-view .task-info-line {
  height: 28px;
  display: flex;
  align-items: center;
  font-size: 17px;
  line-height: 1.1;
  color: #0f6f83;
  white-space: nowrap;
  overflow: hidden;
}

/* STEP 2 STATUS BAR OVERRIDES */
#exam-view .task-status-panel {
  height: 74px;
  min-height: 74px;
  max-height: 74px;
  padding: 6px 16px 5px 16px;
  background: #ffffff;
  border-bottom: 1px solid #d9d9d9;
  margin-bottom: 0;
}

#exam-view .task-dot-nav {
  justify-content: flex-start;
  margin-bottom: 4px;
  gap: 5px;
}

#exam-view .task-dot-btn {
  width: 17px;
  height: 17px;
  font-size: 9px;
  border: none;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #ffffff 55%, transparent 56%),
    conic-gradient(from 0deg, #2f6f8a 0deg 34deg, transparent 34deg 60deg, #2f6f8a 60deg 94deg, transparent 94deg 120deg, #2f6f8a 120deg 154deg, transparent 154deg 180deg, #2f6f8a 180deg 214deg, transparent 214deg 240deg, #2f6f8a 240deg 274deg, transparent 274deg 300deg, #2f6f8a 300deg 334deg, transparent 334deg 360deg);
  color: #2f6f8a;
  box-shadow: none;
}

#exam-view .task-dot-btn.current {
  background:
    radial-gradient(circle at center, #ffffff 55%, transparent 56%),
    conic-gradient(from 0deg, #f59a23 0deg 34deg, transparent 34deg 60deg, #f59a23 60deg 94deg, transparent 94deg 120deg, #f59a23 120deg 154deg, transparent 154deg 180deg, #f59a23 180deg 214deg, transparent 214deg 240deg, #f59a23 240deg 274deg, transparent 274deg 300deg, #f59a23 300deg 334deg, transparent 334deg 360deg);
  color: #b66d11;
}

#exam-view .task-dot-btn.answered {
  background:
    radial-gradient(circle at center, #8bb3c7 55%, transparent 56%),
    conic-gradient(from 0deg, #2f6f8a 0deg 360deg);
  color: #0f5168;
}

#exam-view .task-dot-btn.marked {
  box-shadow: inset 0 -1px 0 #f59a23;
}

#exam-view .task-info-line {
  margin-top: 0;
  font-size: 18px;
  color: #0f6f83;
  font-weight: 500;
  line-height: 1.2;
}

#exam-view .task-type-inline-icon {
  display: inline-flex;
  vertical-align: middle;
  margin: 0 4px 0 2px;
}

#exam-view .task-type-inline-icon svg {
  width: 24px;
  height: 24px;
}

/* STEP 3 QUESTION BLOCK OVERRIDES */
#exam-view .exam-content {
  gap: 0;
}

#exam-view .question-panel {
  background: #ffffff;
  padding: 12px 10px 10px 24px;
}

#exam-view #question-topic {
  display: none;
}

#exam-view #question-counter {
  color: #0f6f83;
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 7px;
}

#exam-view #question-text {
  color: #000000;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2px;
}

#exam-view .options-container {
  margin-top: 0;
  border-top: 12px solid #e6e6e6;
}

#exam-view .options-container table {
  margin-top: 0;
}

/* STEP 4 ANSWER TABLE OVERRIDES */
#exam-view .answer-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

#exam-view .answer-table col.col-exclude {
  width: 115px;
}

#exam-view .answer-table col.col-answer {
  width: auto;
}

#exam-view .answer-table col.col-select {
  width: 95px;
}

#exam-view .answer-table th {
  height: 50px;
  background: #f3f5f6;
  color: #0f6f83;
  font-size: 15px;
  font-weight: 700;
  vertical-align: middle;
  padding: 0 14px;
  border: 1px solid #dedede;
}

#exam-view .answer-table td {
  height: 62px;
  min-height: 62px;
  background: #ffffff;
  font-size: 15px;
  line-height: 1.25;
  vertical-align: middle;
  padding: 0 14px;
  border: 1px solid #dedede;
}

#exam-view .option-text-cell {
  font-size: 15px;
  line-height: 1.25;
}

#exam-view .exclude-cell {
  text-align: center;
}

#exam-view .exclude-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  border: none;
  padding: 0;
}

#exam-view .exclude-btn svg {
  width: 24px;
  height: 24px;
}

#exam-view .select-cell {
  text-align: center;
}

#exam-view .select-cell input {
  width: 17px;
  height: 17px;
  transform: scale(1.25);
}

#exam-view .option-row.excluded {
  background: #eeeeee;
  text-decoration: line-through;
}

/* STEP 5 RIGHT RAIL OVERRIDES */
#exam-view .exam-content {
  grid-template-columns: minmax(0, 1fr) 58px;
  gap: 0;
}

#exam-view .right-rail {
  width: 58px;
  background: #e1e1e1;
  padding: 40px 0 0;
  border-left: 1px solid #d2d2d2;
  border-right: 0;
  border-top: 0;
  border-bottom: 0;
}

#exam-view .side-overview-btn {
  width: 48px;
  height: 56px;
  border-radius: 2px;
  background: #1f7c8d;
  border-color: #1f7c8d;
  box-shadow: none;
  margin: 0 auto;
}

#exam-view .side-overview-btn svg {
  width: 27px;
  height: 27px;
}

/* STEP TOPIC BLOCK STRIP */
#exam-view .task-status-panel {
  min-height: 102px;
  height: 102px;
  max-height: 110px;
  padding: 6px 16px 5px 16px;
}

#exam-view .topic-block-strip {
  display: grid;
  width: 100%;
  gap: 1px;
  height: 26px;
  margin-bottom: 4px;
}

#exam-view .topic-block {
  border: 1px solid #cfcfcf;
  background: #f3f3f3;
  color: #3e4b56;
  font-size: 10px;
  line-height: 1.15;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 2px;
}

#exam-view .topic-block.current {
  border-color: #1f7c8d;
  box-shadow: inset 0 2px 0 #f59a23;
}

#exam-view .task-dot-nav {
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 0;
  margin-bottom: 3px;
}

/* STEP HEADER FONT SCALE OVERRIDES */
#exam-view .font-scale {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  line-height: 1;
  margin-right: 12px;
  white-space: nowrap;
}

#exam-view .font-a {
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 700;
  color: #ffffff;
}

#exam-view .font-a-small {
  font-size: 14px;
  color: #f59a23;
}

#exam-view .font-a-medium {
  font-size: 17px;
}

#exam-view .font-a-large {
  font-size: 20px;
}

/* FINAL HEADER-ONLY OVERRIDES */
#exam-view .exam-header {
  display: grid;
  grid-template-columns: 190px 1fr auto;
  align-items: center;
  height: 56px;
  min-height: 56px;
  max-height: 56px;
  padding: 0 8px 0 6px;
  background: #1f7c8d;
}

#exam-view .header-left {
  align-items: center;
  gap: 8px;
}

#exam-view .ec-badge {
  width: 38px;
  height: 38px;
}

#exam-view .header-user {
  font-size: 12px;
  line-height: 1.05;
}

#exam-view #header-login-label {
  font-size: 14px;
  font-weight: 700;
}

#exam-view .header-center {
  justify-self: start;
  text-align: left;
  font-size: 22px;
  font-weight: 500;
  white-space: nowrap;
}

#exam-view .header-right-wrap {
  gap: 6px;
  align-items: center;
}

#exam-view .font-scale {
  font-size: 11px;
  color: #ffffff;
}

#exam-view .header-end-btn {
  height: 30px;
  padding: 0 10px;
  background: #ffffff;
  color: #1f1f1f;
  border: 1px solid #aab5be;
}

#exam-view .header-right {
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  background: transparent;
  border: none;
  padding: 0;
}

#exam-view .header-right.warning,
#exam-view .header-right.danger {
  color: #ffffff;
  background: transparent;
  border: none;
  padding: 0;
}

/* TOPIC STRIP ALL 9 TOPICS */
#exam-view .task-status-panel {
  height: 118px;
  min-height: 118px;
  max-height: 118px;
  padding: 6px 14px 5px;
  display: grid;
  grid-template-rows: 42px 20px 30px;
  row-gap: 4px;
  overflow: hidden;
}

#exam-view .topic-block-strip {
  display: grid;
  width: 100%;
  column-gap: 1px;
  height: 42px;
}

#exam-view .topic-block {
  min-width: 0;
  height: 42px;
  border: 1px solid #c8c8c8;
  background: #f5f5f5;
  color: #222;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.05;
  padding: 2px 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
  overflow: hidden;
}

#exam-view .topic-block.empty {
  background: #fafafa;
  color: #8a8a8a;
  border-style: dashed;
}

#exam-view .topic-block.current {
  border-color: #1f7c8d;
  border-top: 3px solid #f59a23;
  background: #fff8ed;
}

#exam-view .task-dot-nav {
  display: grid;
  width: 100%;
  column-gap: 1px;
  height: 20px;
  align-items: center;
}

#exam-view .task-dot-slot {
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
}

#exam-view .task-dot-placeholder {
  width: 16px;
  height: 16px;
  opacity: 0;
}

#exam-view .task-dot-btn {
  width: 16px;
  height: 16px;
  font-size: 8px;
  margin: 0;
  justify-self: center;
  align-self: center;
}

#exam-view .task-info-line {
  height: 30px;
  display: flex;
  align-items: center;
  font-size: 17px;
  color: #0f6f83;
  white-space: nowrap;
  overflow: hidden;
}

/* FINAL Q-STYLE OVERRIDES */
#exam-view .exam-header {
  min-height: 60px;
  padding: 2px 8px;
}

#exam-view .header-center {
  font-size: 22px;
  white-space: nowrap;
}

#exam-view .ec-badge {
  width: 34px;
  height: 34px;
}

#exam-view .task-status-panel {
  min-height: 72px;
  padding: 3px 8px 2px;
  margin-bottom: 2px;
}

#exam-view .task-dot-nav {
  margin-bottom: -1px;
  gap: 5px;
}

#exam-view .task-dot-btn {
  width: 17px;
  height: 17px;
}

#exam-view .task-info-line {
  font-size: 16px;
}

#exam-view .question-panel {
  padding: 4px 10px 6px 17px;
}

#exam-view #question-topic {
  font-size: 12px;
  color: #5a6875;
  font-weight: 400;
}

#exam-view #question-text {
  font-size: 17px;
}

#exam-view .answer-table {
  width: 100%;
  table-layout: fixed;
}

#exam-view .answer-table col.col-exclude {
  width: 120px;
}

#exam-view .answer-table col.col-answer {
  width: auto;
}

#exam-view .answer-table col.col-select {
  width: 100px;
}

#exam-view .answer-table th {
  height: 54px;
  font-size: 16px;
}

#exam-view .answer-table td {
  min-height: 69px;
}

#exam-view .option-text-cell {
  font-size: 16px;
}

#exam-view .right-rail {
  width: 66px;
  padding-top: 62px;
}

#exam-view .side-overview-btn {
  width: 52px;
  height: 62px;
}

#exam-view .exam-footer {
  min-height: 52px;
}

#exam-view .exam-footer button {
  height: 35px;
  font-size: 14px;
}

/* TOPIC STRIP ALL 9 TOPICS */
#exam-view .task-status-panel {
  height: 104px;
  min-height: 104px;
  max-height: 104px;
  grid-template-rows: 38px 18px 30px;
  row-gap: 3px;
  padding: 5px 14px 4px;
  overflow: hidden;
}

#exam-view .topic-block {
  height: 38px;
  font-size: 8.5px;
  line-height: 1.05;
  padding: 2px 3px;
  white-space: normal;
  text-align: center;
  overflow: hidden;
  word-break: normal;
  hyphens: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

#exam-view .topic-block.empty {
  background: #fafafa;
  color: #999;
  border-style: dashed;
}

#exam-view .topic-block.current {
  border-color: #1f7c8d;
  border-top: 3px solid #f59a23;
  background: #fff8ed;
}

#exam-view .task-dot-btn {
  width: 14px;
  height: 14px;
  font-size: 0;
  color: transparent;
  border-radius: 50%;
  padding: 0;
}

#exam-view .task-dot-placeholder {
  width: 14px;
  height: 14px;
  opacity: 0;
}

/* FIX TOPIC MAPPING AND DEMO STRIP */
#exam-view .task-status-panel {
  height: 88px !important;
  min-height: 88px !important;
  max-height: 96px !important;
  display: grid !important;
  grid-template-rows: 22px 18px 28px !important;
  row-gap: 2px !important;
  padding: 5px 16px 4px 16px !important;
  overflow: hidden !important;
}

#exam-view .topic-block-strip,
#exam-view .task-dot-nav {
  display: grid !important;
  width: 100% !important;
  column-gap: 1px !important;
  align-items: center !important;
}

#exam-view .topic-block-strip {
  height: 22px !important;
}

#exam-view .task-dot-nav {
  height: 18px !important;
}

#exam-view .topic-block {
  height: 20px !important;
  font-size: 9px !important;
}

#exam-view .topic-block.compact-single {
  font-size: 9px !important;
}

#exam-view .task-dot-btn {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  justify-self: center !important;
  align-self: center !important;
}

#exam-view .task-info-line {
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

/* TOPIC STRIP ALL 9 TOPICS - FINAL */
#exam-view .task-status-panel {
  height: 118px !important;
  min-height: 118px !important;
  max-height: 118px !important;
  padding: 6px 14px 5px !important;
  display: grid !important;
  grid-template-rows: 42px 20px 30px !important;
  row-gap: 4px !important;
  overflow: hidden !important;
}

#exam-view .topic-block-strip {
  display: grid !important;
  width: 100% !important;
  column-gap: 1px !important;
  height: 42px !important;
  align-items: center !important;
}

#exam-view .topic-block {
  min-width: 0 !important;
  height: 42px !important;
  border: 1px solid #c8c8c8 !important;
  background: #f5f5f5 !important;
  color: #222 !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
  padding: 2px 3px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: hidden !important;
}

#exam-view .topic-block.empty {
  background: #fafafa !important;
  color: #8a8a8a !important;
  border-style: dashed !important;
}

#exam-view .topic-block.current {
  border-color: #1f7c8d !important;
  border-top: 3px solid #f59a23 !important;
  background: #fff8ed !important;
}

#exam-view .topic-block.compact-single {
  font-size: 9px !important;
}

#exam-view .task-dot-nav {
  display: grid !important;
  width: 100% !important;
  column-gap: 1px !important;
  height: 20px !important;
  align-items: center !important;
}

#exam-view .task-dot-slot {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  min-width: 0 !important;
}

#exam-view .task-dot-placeholder {
  width: 16px !important;
  height: 16px !important;
  opacity: 0 !important;
}

#exam-view .task-dot-btn {
  width: 16px !important;
  height: 16px !important;
  font-size: 8px !important;
  margin: 0 !important;
  justify-self: center !important;
  align-self: center !important;
}

#exam-view .task-info-line {
  height: 30px !important;
  display: flex !important;
  align-items: center !important;
  font-size: 17px !important;
  color: #0f6f83 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

/* TOPIC LABEL READABILITY OVERRIDES */
#exam-view .topic-block {
  font-size: 9px !important;
  line-height: 1 !important;
  padding: 1px 2px !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  word-break: normal !important;
}

#exam-view .topic-block.narrow {
  font-size: 8px !important;
}

/* TOPIC STRIP ALL 9 TOPICS - LABEL & DOT FINAL */
#exam-view .task-status-panel {
  height: 104px !important;
  min-height: 104px !important;
  max-height: 104px !important;
  grid-template-rows: 38px 18px 30px !important;
  row-gap: 3px !important;
  padding: 5px 14px 4px !important;
  overflow: hidden !important;
}

#exam-view .topic-block {
  height: 38px !important;
  font-size: 8.5px !important;
  line-height: 1.05 !important;
  padding: 2px 3px !important;
  white-space: normal !important;
  text-align: center !important;
  overflow: hidden !important;
  word-break: normal !important;
  hyphens: auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#exam-view .topic-block.empty {
  background: #fafafa !important;
  color: #999 !important;
  border-style: dashed !important;
}

#exam-view .topic-block.current {
  border-color: #1f7c8d !important;
  border-top: 3px solid #f59a23 !important;
  background: #fff8ed !important;
}

#exam-view .task-dot-btn {
  width: 14px !important;
  height: 14px !important;
  font-size: 0 !important;
  color: transparent !important;
  border-radius: 50% !important;
  padding: 0 !important;
}

/* OFFICIAL 82 DOT TOPIC NAV */
#exam-view .task-status-panel {
  height: 78px !important;
  min-height: 78px !important;
  max-height: 78px !important;
  padding: 5px 14px 4px !important;
  display: grid !important;
  grid-template-rows: 24px 16px 26px !important;
  row-gap: 2px !important;
  overflow: hidden !important;
}

#exam-view .topic-block-strip {
  display: grid !important;
  grid-template-columns: repeat(82, minmax(6px, 1fr)) !important;
  column-gap: 1px !important;
  height: 24px !important;
}

#exam-view .task-dot-nav {
  display: grid !important;
  grid-template-columns: repeat(82, minmax(6px, 1fr)) !important;
  column-gap: 1px !important;
  height: 16px !important;
  align-items: center !important;
  margin: 0 !important;
}

#exam-view .topic-block {
  height: 24px !important;
  min-height: 24px !important;
  max-height: 24px !important;
  font-size: 7px !important;
  line-height: 1 !important;
  padding: 1px 2px !important;
  background: #f5f5f5 !important;
  border: 1px solid #cfcfcf !important;
  color: #222 !important;
  font-weight: 600 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: hidden !important;
  word-break: normal !important;
  hyphens: none !important;
}

#exam-view .topic-block.current {
  border-color: #1f7c8d !important;
  border-top: 3px solid #f59a23 !important;
  background: #fff8ed !important;
}

#exam-view .task-dot-slot {
  width: 100% !important;
  height: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#exam-view .task-dot-btn {
  width: 11px !important;
  height: 11px !important;
  border-radius: 50% !important;
  font-size: 0 !important;
  color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
}

#exam-view .task-dot-btn.unanswered {
  background: #ffffff !important;
  border: 1px dashed #1f7c8d !important;
}

#exam-view .task-dot-btn.current {
  background: #ffffff !important;
  border: 1px solid #f59a23 !important;
  box-shadow: 0 0 0 1px #f59a23 !important;
}

#exam-view .task-dot-btn.answered {
  background: #1f7c8d !important;
  border: 1px solid #1f7c8d !important;
  box-shadow: none !important;
}

#exam-view .task-dot-btn.answered.current {
  background: #1f7c8d !important;
  border: 1px solid #1f7c8d !important;
  box-shadow: 0 0 0 2px #f59a23 !important;
}

#exam-view .task-dot-btn.marked::after {
  content: "" !important;
  position: absolute !important;
  width: 4px !important;
  height: 4px !important;
  border-radius: 50% !important;
  background: #f59a23 !important;
  top: -2px !important;
  right: -2px !important;
}

#exam-view .task-dot-btn.disabled {
  background: #dcdcdc !important;
  border: 1px solid #d3d3d3 !important;
  opacity: 0.25 !important;
  pointer-events: none !important;
  cursor: default !important;
}

#exam-view .task-info-line {
  font-size: 16px !important;
  line-height: 1.05 !important;
  margin: 0 !important;
}

#exam-view .task-type-inline-icon svg {
  width: 21px !important;
  height: 21px !important;
}

/* TOPIC BLOCK ROUNDING AND SLIM TUNING */
#exam-view .task-status-panel {
  height: 75px !important;
  min-height: 75px !important;
  max-height: 75px !important;
  grid-template-rows: 21px 16px 26px !important;
  row-gap: 2px !important;
}

#exam-view .topic-block-strip {
  height: 21px !important;
}

#exam-view .topic-block {
  height: 21px !important;
  min-height: 21px !important;
  max-height: 21px !important;
  border-radius: 4px !important;
  font-size: 6.8px !important;
  line-height: 1 !important;
  padding: 0 2px !important;
}

#exam-view .topic-block.current {
  border-top-width: 2px !important;
}

#exam-view .topic-block.empty {
  border-radius: 4px !important;
}

/* QUESTION DOT STATUS FILL OVERRIDES */
#exam-view .task-dot-btn {
  width: 11px !important;
  height: 11px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1.5px solid #1f7c8d !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  color: transparent !important;
  box-sizing: border-box !important;
  background-image: none !important;
  background-clip: padding-box !important;
  transform: none !important;
  box-shadow: none !important;
}

#exam-view .task-dot-btn::after {
  content: none !important;
}

#exam-view .task-dot-btn.answered {
  background: #1f7c8d !important;
  border-color: #1f7c8d !important;
  background-image: none !important;
}

#exam-view .task-dot-btn.current:not(.answered) {
  background: #ffffff !important;
  border: 2px solid #f59a23 !important;
  box-shadow: 0 0 0 1px #f59a23 !important;
}

/* FIX FOOTER CENTER LAYOUT */
#exam-view {
  padding-bottom: 52px !important;
  box-sizing: border-box;
}

#exam-view .exam-footer {
  position: fixed !important;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  padding: 6px 12px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: #ffffff;
  border-top: 1px solid #d5d5d5;
  z-index: 20;
  overflow: hidden;
}

#exam-view .footer-left {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#exam-view .footer-center {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

#exam-view .footer-right {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

#exam-view .exam-footer button {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

#exam-view #overview-btn {
  min-width: 140px;
}

#exam-view #mark-btn {
  min-width: 220px;
}

#exam-view #next-btn {
  min-width: 160px;
}

#exam-view #back-btn {
  min-width: 82px;
}

/* FOOTER EXACT CENTER LAYOUT */
#exam-view .exam-footer {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 52px;
  padding: 0 12px;
  box-sizing: border-box;
}

#exam-view .footer-left {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 8px;
}

#exam-view .footer-center {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

#exam-view .footer-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 140px;
}

#exam-view .footer-submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
}

/* PLACEHOLDER DOTS LOOK LIKE OPEN DOTS */
#exam-view .task-dot-btn.disabled,
#exam-view .task-dot-placeholder {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  background-image: none !important;
  border: 1.6px solid #1f7c8d !important;
  opacity: 1 !important;
  box-sizing: border-box !important;
  cursor: default !important;
  pointer-events: none !important;
}

#exam-view .task-dot-btn:not(.answered):not(.disabled) {
  background: #ffffff !important;
  border: 1.6px solid #1f7c8d !important;
  opacity: 1 !important;
}

#exam-view .task-dot-btn.answered {
  background: #1f7c8d !important;
  border: 1.6px solid #1f7c8d !important;
}

#exam-view .task-dot-btn.current:not(.answered) {
  background: #ffffff !important;
  border: 2px solid #f59a23 !important;
  box-shadow: 0 0 0 1px #f59a23 !important;
}

#exam-view .task-dot-btn.current.answered {
  background: #1f7c8d !important;
  border-color: #1f7c8d !important;
  box-shadow: 0 0 0 2px #f59a23 !important;
}

#exam-view .task-dot-btn.marked:not(.answered) {
  background: #ffffff !important;
  border-color: #f59a23 !important;
}

#exam-view .task-dot-btn.marked.answered {
  background: #1f7c8d !important;
  border-color: #f59a23 !important;
  box-shadow: 0 0 0 1px #f59a23 !important;
}

/* QUESTION STATEMENT LIST - INLINE FIX */

#exam-view .question-main-text {
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.25;
}

#exam-view .statement-list {
  margin-top: 8px;
  margin-bottom: 6px;
  border: 1px solid #cfcfcf;
  background: #f8f8f8;
  max-width: 100%;
}

#exam-view .statement-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  min-height: 30px;
  border-bottom: 1px solid #dddddd;
}

#exam-view .statement-row:last-child {
  border-bottom: 0;
}

#exam-view .statement-number {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #eeeeee;
  border-right: 1px solid #cfcfcf;
  color: #000000;
}

#exam-view .statement-text {
  padding: 6px 10px;
  line-height: 1.25;
  font-weight: 400;
  color: #000000;
}

.manual-print-sheet {
  display: none;
}

#manual-print-host,
#admin-print-host {
  display: none;
}

.manual-print-footer {
  display: none;
}

/* A4-Seite modelliert .manual-print-page; @page ohne Zusatzrand, damit Fußzeile nicht „hochrutscht“. */
@page {
  size: A4;
  margin: 0;
}

/* Messcontainer für Paginierung (Screen) — identische Maße wie @media print .manual-print-page / -content */
.manual-print-pagination-probe {
  position: absolute;
  left: -99999px;
  top: 0;
  width: 210mm;
  z-index: -1;
  visibility: hidden;
  pointer-events: none;
}

.manual-print-pagination-probe .manual-print-page {
  width: 210mm;
  min-height: 297mm;
  max-height: 297mm;
  height: 297mm;
  box-sizing: border-box;
  padding: 8mm 10mm 12mm 10mm;
  position: relative;
  overflow: hidden;
}

.manual-print-pagination-probe .manual-print-page-content {
  height: calc(297mm - 8mm - 12mm - 16mm) !important;
  max-height: calc(297mm - 8mm - 12mm - 16mm) !important;
  overflow: hidden;
  padding-bottom: 0;
  box-sizing: border-box;
}

/* Messlayout wie Druck (Screen), damit Paginierung dieselben Höhen wie PDF sieht */
.manual-print-pagination-probe {
  font-size: 10.5px;
  line-height: 1.3;
}

.manual-print-pagination-probe .manual-print-header {
  border: 1px solid #bfbfbf;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.manual-print-pagination-probe .manual-print-header h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
}

.manual-print-pagination-probe .manual-print-header p {
  margin: 4px 0 10px;
  font-size: 14px;
}

.manual-print-pagination-probe .manual-print-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 16px;
  font-size: 12px;
}

.manual-print-pagination-probe .manual-print-question {
  border: 1px solid #cfcfcf;
  padding: 10px 12px;
  margin: 0 0 4mm !important;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
  overflow: visible;
  max-width: 100%;
}

.manual-print-pagination-probe .manual-print-question.manual-print-question-tall {
  break-inside: auto;
  page-break-inside: auto;
  -webkit-column-break-inside: auto;
}

.manual-print-pagination-probe .manual-print-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
  margin-bottom: 8px;
  font-size: 12px;
}

.manual-print-pagination-probe .manual-print-question-text-wrap,
.manual-print-pagination-probe .manual-print-answer-wrap,
.manual-print-pagination-probe .manual-print-grading-fields {
  margin-bottom: 8px;
  font-size: 10.5px;
  line-height: 1.3;
}

.manual-print-pagination-probe .manual-print-question-main {
  margin-top: 4px;
  margin-bottom: 6px;
  font-weight: 600;
}

.manual-print-pagination-probe .manual-print-statement-list {
  border: 1px solid #cfcfcf;
  background: #f8f8f8;
}

.manual-print-pagination-probe .manual-print-statement-row {
  display: grid;
  grid-template-columns: 40px 1fr;
  border-bottom: 1px solid #dddddd;
}

.manual-print-pagination-probe .manual-print-statement-row:last-child {
  border-bottom: 0;
}

.manual-print-pagination-probe .manual-print-statement-number {
  font-weight: 700;
  text-align: center;
  border-right: 1px solid #cfcfcf;
  background: #eeeeee;
  padding: 4px 0;
}

.manual-print-pagination-probe .manual-print-statement-text {
  padding: 4px 8px;
}

@media print {
  body * {
    visibility: hidden !important;
  }

  body.printing-manual-review #manual-print-host,
  body.printing-manual-review #manual-print-host *,
  body.printing-manual-review #admin-print-host,
  body.printing-manual-review #admin-print-host *,
  body.printing-manual-review .manual-print-page,
  body.printing-manual-review .manual-print-page *,
  body.printing-manual-review .manual-print-footer,
  body.printing-manual-review .manual-print-footer * {
    visibility: visible !important;
  }

  body.printing-manual-review #start-view,
  body.printing-manual-review #exam-view,
  body.printing-manual-review #result-view .result-panel,
  body.printing-manual-review #review-section,
  body.printing-manual-review .review-table,
  body.printing-manual-review .manual-review-table {
    display: none !important;
  }

  body.printing-manual-review #manual-print-host,
  body.printing-manual-review #admin-print-host {
    display: block !important;
    position: static !important;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    font-size: 10.5px !important;
    line-height: 1.3 !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.printing-manual-review #result-view,
  body.printing-manual-review .result-panel {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.printing-manual-review .manual-print-page {
    position: relative !important;
    box-sizing: border-box !important;
    min-height: 297mm !important;
    max-height: 297mm !important;
    height: 297mm !important;
    width: 210mm !important;
    page-break-after: always !important;
    break-after: page !important;
    padding: 8mm 10mm 12mm 10mm !important;
    overflow: hidden !important;
    margin: 0 auto !important;
  }

  body.printing-manual-review .manual-print-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  body.printing-manual-review .manual-print-page-content {
    height: calc(297mm - 8mm - 12mm - 16mm) !important;
    max-height: calc(297mm - 8mm - 12mm - 16mm) !important;
    overflow: hidden !important;
    padding-bottom: 0 !important;
    box-sizing: border-box !important;
  }

  body.printing-manual-review .manual-print-header {
    border: 1px solid #bfbfbf;
    padding: 10px 12px;
    margin-bottom: 12px;
    break-inside: avoid;
  }

  body.printing-manual-review .manual-print-header h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
  }

  body.printing-manual-review .manual-print-header p {
    margin: 4px 0 10px;
    font-size: 14px;
  }

  body.printing-manual-review .manual-print-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    font-size: 12px;
  }

  body.printing-manual-review .manual-print-question {
    border: 1px solid #cfcfcf;
    padding: 10px 12px;
    margin: 0 0 4mm !important;
    break-inside: avoid !important;
    page-break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    overflow: visible !important;
    max-width: 100%;
    height: auto !important;
    max-height: none !important;
  }

  /* Nur wenn eine Box höher ist als der nutzbare Seitenbereich (Paginierung markiert) */
  body.printing-manual-review .manual-print-question.manual-print-question-tall {
    break-inside: auto !important;
    page-break-inside: auto !important;
    -webkit-column-break-inside: auto !important;
  }

  body.printing-manual-review .manual-print-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 16px;
    margin-bottom: 8px;
    font-size: 12px;
  }

  body.printing-manual-review .manual-print-question-text-wrap,
  body.printing-manual-review .manual-print-answer-wrap,
  body.printing-manual-review .manual-print-grading-fields {
    margin-bottom: 8px;
    font-size: 10.5px;
    line-height: 1.3;
  }

  body.printing-manual-review .manual-print-question-main {
    margin-top: 4px;
    margin-bottom: 6px;
    font-weight: 600;
  }

  body.printing-manual-review .manual-print-statement-list {
    border: 1px solid #cfcfcf;
    background: #f8f8f8;
  }

  body.printing-manual-review .manual-print-statement-row {
    display: grid;
    grid-template-columns: 40px 1fr;
    border-bottom: 1px solid #dddddd;
  }

  body.printing-manual-review .manual-print-statement-row:last-child {
    border-bottom: 0;
  }

  body.printing-manual-review .manual-print-statement-number {
    font-weight: 700;
    text-align: center;
    border-right: 1px solid #cfcfcf;
    background: #eeeeee;
    padding: 4px 0;
  }

  body.printing-manual-review .manual-print-statement-text {
    padding: 4px 8px;
  }

  /* Footer pro Seite — unten am Seitenrand (ca. 0,5–1 cm über Kante), Seitenzahl im Footer erhalten. */
  body.printing-manual-review .manual-print-footer {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    align-items: center !important;
    position: absolute !important;

    left: 10mm !important;
    right: 10mm !important;
    bottom: 6mm !important;

    height: 7mm !important;
    min-height: 7mm !important;
    max-height: 7mm !important;
    box-sizing: border-box !important;

    font-size: 9px !important;
    line-height: 1 !important;
    color: #000000 !important;
    background: #ffffff !important;

    border-top: 1px solid #777777 !important;
    padding-top: 1mm !important;
    margin: 0 !important;

    visibility: visible !important;
    transform: none !important;
    z-index: 9999 !important;
  }

  body.printing-manual-review .manual-print-footer * {
    visibility: visible !important;
  }

  body.printing-manual-review .manual-print-footer-left {
    justify-self: start !important;
    min-width: 0 !important;
    text-align: left !important;
  }

  body.printing-manual-review .manual-print-footer-center {
    justify-self: center !important;
    text-align: center !important;
    white-space: nowrap !important;
  }

  body.printing-manual-review .manual-print-footer-right {
    justify-self: end !important;
    min-width: 22mm !important;
    text-align: right !important;
    white-space: nowrap !important;
  }
}

/* FIX FOOTER TRUE CENTER ALIGNMENT */
#exam-view .exam-footer {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  padding: 6px 12px;
  box-sizing: border-box;
  background: #ffffff;
  border-top: 1px solid #d5d5d5;
  z-index: 20;
  overflow: hidden;
  display: block !important;
}

#exam-view .footer-left {
  position: absolute !important;
  left: 12px !important;
  top: 50%;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center;
}

#exam-view .footer-center {
  position: absolute !important;
  left: 50% !important;
  top: 50%;
  transform: translate(-50%, -50%) !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#exam-view .footer-right {
  position: absolute !important;
  right: 12px !important;
  top: 50%;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

#exam-view .exam-footer button {
  height: 36px;
  min-height: 36px;
  max-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  line-height: 1;
  margin: 0;
  white-space: nowrap;
}

#exam-view #back-btn {
  min-width: 82px;
}

#exam-view #overview-btn {
  min-width: 150px;
}

#exam-view #mark-btn {
  min-width: 230px;
}

#exam-view #next-btn {
  min-width: 170px;
}

/* FIX FOOTER RIGHT BUTTONS ONLY */
#exam-view .footer-right {
  position: absolute !important;
  right: 12px !important;
  left: auto !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  justify-self: auto !important;
}

#exam-view #mark-btn {
  margin: 0 !important;
}

#exam-view #next-btn {
  margin: 0 !important;
}

/* TOPIC BLOCK LABEL READABILITY */
#exam-view .topic-block {
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  color: #000000 !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 4px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  white-space: normal !important;
}

#exam-view .topic-block span,
#exam-view .topic-block-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.05 !important;
  color: #000000 !important;
  text-align: center !important;
  white-space: normal !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  max-width: 100% !important;
}

#exam-view .topic-block.current,
#exam-view .topic-block.active {
  font-weight: 700 !important;
  color: #000000 !important;
}

/* QUESTION STATEMENT LIST */
#exam-view .question-main-text {
  font-weight: 700;
  margin-bottom: 8px;
}

#exam-view .statement-list {
  margin-top: 8px;
  margin-bottom: 6px;
  border: 1px solid #d7d7d7;
  background: #f8f8f8;
  max-width: 100%;
}

#exam-view .statement-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  border-bottom: 1px solid #e2e2e2;
  min-height: 30px;
}

#exam-view .statement-row:last-child {
  border-bottom: 0;
}

#exam-view .statement-number {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: #eeeeee;
  border-right: 1px solid #d7d7d7;
}

#exam-view .statement-text {
  padding: 6px 10px;
  line-height: 1.25;
  font-weight: 400;
}

/* CALCULATOR PANEL */
#exam-view .calculator-view {
  height: 100%;
  background: #ffffff;
  padding: 22px 28px;
  box-sizing: border-box;
  overflow: auto;
}

#exam-view .calculator-view.hidden {
  display: none;
}

#exam-view .hidden-calculator-mode {
  display: none !important;
}

#exam-view .calculator-panel h2 {
  margin: 0 0 6px;
  color: #0f6f83;
  font-size: 24px;
  font-weight: 400;
}

#exam-view .calc-device {
  width: 720px;
  max-width: 100%;
  background: linear-gradient(#d8d8d8, #c4c4c4);
  border: 1px solid #a9a9a9;
  border-radius: 6px;
  padding: 16px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15);
}

#exam-view .calc-expression,
#exam-view .calc-display {
  width: 100%;
  height: 48px;
  box-sizing: border-box;
  border: 1px solid #aaa;
  background: #ffffff;
  font-size: 24px;
  text-align: right;
  padding: 4px 8px;
  margin-bottom: 10px;
}

#exam-view .calc-display {
  font-size: 28px;
}

#exam-view .calc-mode-row {
  display: grid;
  grid-template-columns: 56px 56px 56px repeat(5, 56px);
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}

#exam-view .calc-radio {
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}

#exam-view .calc-key-grid {
  display: grid;
  grid-template-columns: repeat(11, 56px);
  grid-auto-rows: 42px;
  gap: 8px;
}

#exam-view .calc-key {
  border: 1px solid #aaa;
  border-radius: 5px;
  background: linear-gradient(#ffffff, #e6e6e6);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 0 #a9a9a9;
}

#exam-view .calc-key:active {
  transform: translateY(1px);
  box-shadow: 0 1px 0 #a9a9a9;
}

#exam-view .calc-key-red {
  background: #df493d;
  color: #ffffff;
  border-color: #c43a30;
}

#exam-view .calc-key-green {
  background: #43c96b;
  color: #ffffff;
  border-color: #30a854;
  grid-row: span 2;
}

#exam-view .calc-key-wide {
  grid-column: span 2;
}

#exam-view .close-calculator-btn {
  margin-top: 14px;
  height: 34px;
  border: 1px solid #1f7c8d;
  background: #ffffff;
  color: #1f7c8d;
  padding: 0 14px;
  cursor: pointer;
}

#exam-view .side-overview-btn.active {
  outline: 2px solid #f59a23;
}

/* CALCULATOR HALF SCREEN PANEL */
#exam-view .exam-content {
  position: relative;
}

#exam-view .calculator-view {
  position: absolute;
  top: 0;
  right: 58px;
  bottom: 0;
  width: 50%;
  max-width: 780px;
  min-width: 560px;
  height: auto;
  background: #ffffff;
  border-left: 1px solid #c8c8c8;
  box-shadow: -4px 0 10px rgba(0, 0, 0, 0.16);
  padding: 22px 24px;
  box-sizing: border-box;
  overflow: auto;
  z-index: 12;
}

#exam-view .calculator-view.hidden {
  display: none;
}

#exam-view .calculator-panel {
  width: 100%;
  max-width: 100%;
}

#exam-view .calc-device {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#exam-view .calc-key-grid {
  display: grid;
  grid-template-columns: repeat(10, minmax(42px, 1fr));
  gap: 6px;
}

#exam-view .calc-mode-row {
  display: grid;
  grid-template-columns: repeat(8, minmax(42px, 1fr));
  gap: 6px;
}

#exam-view .calc-key {
  min-width: 0;
  height: 38px;
  font-size: 14px;
}

@media (max-width: 1100px) {
  #exam-view .calculator-view {
    width: 70%;
    min-width: 0;
    right: 58px;
  }
}

/* MAKE DISABLED 82 DOTS VISIBLE */
#exam-view .task-dot-btn.disabled,
#exam-view .task-dot-placeholder {
  background: #ffffff !important;
  border: 1.3px solid #9fb0b7 !important;
  opacity: 1 !important;
  cursor: default !important;
  pointer-events: none !important;
}

#exam-view .task-dot-btn:not(.answered):not(.disabled) {
  background: #ffffff !important;
  border: 1.6px solid #1f7c8d !important;
  opacity: 1 !important;
}

#exam-view .task-dot-btn.answered {
  background: #1f7c8d !important;
  border: 1.6px solid #1f7c8d !important;
}

#exam-view .task-dot-btn.current:not(.answered) {
  background: #ffffff !important;
  border: 2px solid #f59a23 !important;
  box-shadow: 0 0 0 1px #f59a23 !important;
}

#exam-view .task-dot-btn.current.marked:not(.answered) {
  box-shadow: 0 0 0 1px #f59a23 !important;
}

#exam-view .task-dot-btn.current.marked.answered {
  box-shadow: 0 0 0 2px #f59a23 !important;
}

#exam-view .task-dot-btn.disabled,
#exam-view .task-dot-placeholder {
  width: 11px !important;
  height: 11px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  border: 1px solid #cfcfcf !important;
  opacity: 0.25 !important;
  cursor: default !important;
  pointer-events: none !important;
  background-image: none !important;
  box-shadow: none !important;
  transform: none !important;
}

#exam-view .task-dot-placeholder {
  width: 14px !important;
  height: 14px !important;
  opacity: 0 !important;
}

/* QUESTION DOT EMPTY FILLED STATUS FINAL */
#exam-view .task-dot-btn {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff !important;
  background-image: none !important;
  border: 1.6px solid #1f7c8d !important;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  font-size: 0;
  color: transparent;
  outline: none;
  transform: none;
  background-clip: padding-box;
}

#exam-view .task-dot-btn.answered {
  background: #1f7c8d !important;
  background-image: none !important;
  border: 1.6px solid #1f7c8d !important;
}

#exam-view .task-dot-btn.current:not(.answered) {
  background: #ffffff !important;
  background-image: none !important;
  border: 2px solid #f59a23 !important;
  box-shadow: 0 0 0 1px #f59a23 !important;
}

#exam-view .task-dot-btn.current.answered {
  background: #1f7c8d !important;
  background-image: none !important;
  border: 1.6px solid #1f7c8d !important;
  box-shadow: 0 0 0 2px #f59a23 !important;
}

#exam-view .task-dot-btn.marked:not(.answered) {
  background: #ffffff !important;
  background-image: none !important;
  border-color: #f59a23 !important;
  box-shadow: 0 0 0 1px #f59a23 !important;
}

#exam-view .task-dot-btn.marked.answered {
  background: #1f7c8d !important;
  background-image: none !important;
  border-color: #f59a23 !important;
  box-shadow: 0 0 0 1px #f59a23 !important;
}

#exam-view .task-dot-btn.disabled,
#exam-view .task-dot-placeholder {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid #d0d0d0 !important;
  opacity: 0.45;
  cursor: default;
  pointer-events: none;
  box-shadow: none !important;
  transform: none;
}

/* DOT VISIBILITY FOR ALL 82 SLOTS */
#exam-view .task-dot-btn,
#exam-view .task-dot-placeholder {
  width: 12px !important;
  height: 12px !important;
  border-radius: 50% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0 !important;
  color: transparent !important;
  background-image: none !important;
  display: inline-block !important;
  visibility: visible !important;
}

#exam-view .task-dot-btn:not(.answered):not(.disabled) {
  background: #ffffff !important;
  border: 1.6px solid #1f7c8d !important;
  opacity: 1 !important;
}

#exam-view .task-dot-btn.answered {
  background: #1f7c8d !important;
  border: 1.6px solid #1f7c8d !important;
  opacity: 1 !important;
}

#exam-view .task-dot-btn.current:not(.answered) {
  background: #ffffff !important;
  border: 2px solid #f59a23 !important;
  box-shadow: 0 0 0 1px #f59a23 !important;
  opacity: 1 !important;
}

#exam-view .task-dot-btn.current.answered {
  background: #1f7c8d !important;
  border: 1.6px solid #1f7c8d !important;
  box-shadow: 0 0 0 2px #f59a23 !important;
  opacity: 1 !important;
}

#exam-view .task-dot-btn.disabled,
#exam-view .task-dot-placeholder {
  background: #ffffff !important;
  border: 1.2px solid #b8c0c4 !important;
  opacity: 0.75 !important;
  cursor: default !important;
  pointer-events: none !important;
}

#exam-view .task-dot-btn.marked:not(.answered) {
  background: #ffffff !important;
  border-color: #f59a23 !important;
  box-shadow: 0 0 0 1px #f59a23 !important;
}

#exam-view .task-dot-btn.marked.answered {
  background: #1f7c8d !important;
  border-color: #f59a23 !important;
  box-shadow: 0 0 0 1px #f59a23 !important;
}

/* ——— Prüfungs-Aufgabenübersicht ——— */

#exam-view .question-panel.question-panel-overview {
  display: flex;
  flex-direction: column;
  align-self: stretch;
  overflow: hidden;
  min-height: 0;
  height: 100%;
  max-height: 100%;
}

#exam-view .question-panel.question-panel-overview .options-container {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  border-top: none;
}

.exam-content .overview-panel {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border-radius: 8px;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.exam-content .overview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 5;
  background: #ffffff;
  padding-bottom: 8px;
  margin-bottom: 0;
  border-bottom: 1px solid #cfd5db;
}

.exam-content .overview-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-start;
  flex: 1 1 auto;
  min-width: 0;
}

.exam-content .overview-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  flex: 1 1 280px;
}

.exam-content .overview-filter-btn {
  padding: 8px 12px;
  font-size: 13px;
  border: 1px solid #c5cdd1;
  border-radius: 6px;
  background: #ffffff;
  color: #1a1a1a;
  cursor: pointer;
  min-height: 40px;
  box-sizing: border-box;
}

.exam-content .overview-filter-btn:hover {
  border-color: #1f7a8c;
  color: #1f7a8c;
}

.exam-content .overview-filter-btn.active {
  background: rgba(31, 122, 140, 0.12);
  border-color: #1f7a8c;
  color: #1f7a8c;
  font-weight: 600;
}

.exam-content .overview-search-wrap {
  flex: 1 1 200px;
  max-width: 100%;
}

.exam-content .overview-search {
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px;
  font-size: 14px;
  border: 1px solid #c5cdd1;
  border-radius: 6px;
  min-height: 40px;
}

.exam-content .overview-search:focus {
  outline: 2px solid rgba(31, 122, 140, 0.35);
  outline-offset: 2px;
  border-color: #1f7a8c;
}

.exam-content .overview-return-btn {
  margin-left: auto;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  background: #1f7a8c;
  color: #ffffff;
  cursor: pointer;
  min-height: 40px;
  white-space: nowrap;
}

.exam-content .overview-return-btn:hover {
  filter: brightness(1.05);
}

.exam-content .overview-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.exam-content .overview-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  background: #ffffff;
}

.exam-content .overview-table th,
.exam-content .overview-table td {
  border: 1px solid #c5cdd1;
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}

.exam-content .overview-table thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  background: #f1f3f5;
  color: #163842;
  font-weight: 600;
  box-shadow: 0 1px 0 #cfd5db;
}

.exam-content .overview-row {
  cursor: pointer;
  transition: background 0.12s ease;
}

.exam-content .overview-row:hover {
  background: rgba(31, 122, 140, 0.06);
}

.exam-content .overview-row.open {
  background: #ffffff;
}

.exam-content .overview-row.answered {
  background: rgba(180, 220, 230, 0.35);
}

.exam-content .overview-row.marked {
  box-shadow: inset 4px 0 0 0 #f59a23;
}

.exam-content .overview-row.current {
  outline: 2px solid #1f7a8c;
  outline-offset: -2px;
}

.exam-content .overview-col-text {
  max-width: min(48vw, 420px);
  word-break: break-word;
}

@media (max-width: 720px) {
  .exam-content .overview-col-text {
    max-width: none;
  }
}

/* FINAL FORCE SQUARE ANSWER CONTROLS */

#exam-view .answers-table input[type="radio"],
#exam-view .answers-table input[type="checkbox"],
#exam-view .answer-table input[type="radio"],
#exam-view .answer-table input[type="checkbox"],
#exam-view .options-table input[type="radio"],
#exam-view .options-table input[type="checkbox"],
#exam-view input[type="radio"].answer-input,
#exam-view input[type="checkbox"].answer-input {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;

  width: 26px !important;
  height: 26px !important;

  border: 2px solid #777777 !important;
  border-radius: 4px !important;

  background: #ffffff !important;
  display: inline-block !important;
  position: relative !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transform: none !important;
}

#exam-view .answers-table input[type="radio"]:checked,
#exam-view .answers-table input[type="checkbox"]:checked,
#exam-view .answer-table input[type="radio"]:checked,
#exam-view .answer-table input[type="checkbox"]:checked,
#exam-view .options-table input[type="radio"]:checked,
#exam-view .options-table input[type="checkbox"]:checked,
#exam-view input[type="radio"].answer-input:checked,
#exam-view input[type="checkbox"].answer-input:checked {
  background: #2f80d8 !important;
  border-color: #2f80d8 !important;
}

#exam-view .answers-table input[type="radio"]:checked::after,
#exam-view .answers-table input[type="checkbox"]:checked::after,
#exam-view .answer-table input[type="radio"]:checked::after,
#exam-view .answer-table input[type="checkbox"]:checked::after,
#exam-view .options-table input[type="radio"]:checked::after,
#exam-view .options-table input[type="checkbox"]:checked::after,
#exam-view input[type="radio"].answer-input:checked::after,
#exam-view input[type="checkbox"].answer-input:checked::after {
  content: "✓" !important;
  position: absolute !important;
  left: 4px !important;
  top: -3px !important;
  font-size: 24px !important;
  line-height: 26px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

#exam-view .answers-table input[type="radio"]:focus,
#exam-view .answers-table input[type="checkbox"]:focus,
#exam-view .answer-table input[type="radio"]:focus,
#exam-view .answer-table input[type="checkbox"]:focus,
#exam-view .options-table input[type="radio"]:focus,
#exam-view .options-table input[type="checkbox"]:focus,
#exam-view input[type="radio"].answer-input:focus,
#exam-view input[type="checkbox"].answer-input:focus {
  outline: 2px solid rgba(47, 128, 216, 0.35) !important;
  outline-offset: 2px !important;
}

body.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.login-panel {
  width: 100%;
  max-width: 420px;
  padding: 20px;
}

.login-error {
  color: #9b1c1c;
  background: #fde8e8;
  border: 1px solid #e8b4b4;
  padding: 8px 10px;
  margin-bottom: 10px;
}

.session-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border-bottom: 1px solid #cfd5db;
  font-size: 13px;
}

.session-bar-global {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 2000;
  box-sizing: border-box;
}

.session-logout-btn {
  border: 1px solid #8f969e;
  background: #eceff2;
  padding: 5px 10px;
  cursor: pointer;
  font-size: 13px;
}

.admin-attempts-section {
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d5dbe0;
}

.admin-attempts-section h2 {
  font-size: 16px;
  margin-bottom: 10px;
}

.admin-attempts-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-attempts-table th,
.admin-attempts-table td {
  border: 1px solid #c7ccd1;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.admin-view-btn {
  border: 1px solid #1f7a8c;
  background: #ffffff;
  color: #1f7a8c;
  padding: 4px 8px;
  cursor: pointer;
  font-size: 12px;
}

.admin-attempt-detail {
  margin-top: 12px;
  padding: 12px;
  background: #f8f9fa;
  border: 1px solid #c7ccd1;
  overflow-x: hidden;
}

input[readonly] {
  background: #f3f5f7;
  color: #4e4e4e;
}

.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d5dbe0;
}

.admin-nav-link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #aeb5bc;
  background: #ffffff;
  color: #1d1d1d;
  text-decoration: none;
  font-weight: 600;
  font-size: 12px;
}

.admin-nav-link:hover {
  background: #f0f4f8;
}

.admin-nav-link-active {
  border-color: #1f7a8c;
  background: #1f7a8c;
  color: #ffffff;
}

.admin-page .panel-inner {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #d5dbe0;
}

.admin-users-page-panel {
  overflow-x: hidden;
  max-width: 100%;
}

.admin-form-grid,
.admin-create-user-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 14px;
}

.admin-user-field label {
  display: block;
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 4px;
}

.admin-user-field input,
.admin-user-field select {
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  box-sizing: border-box;
}

.admin-user-meta-value {
  font-size: 13px;
  color: #4f5962;
  padding: 6px 0 2px;
}

.admin-form-checkbox {
  display: flex;
  align-items: flex-end;
  padding-bottom: 4px;
}

.admin-form-error {
  color: #9b1c1c;
  background: #fde8e8;
  border: 1px solid #e8b4b4;
  padding: 8px 10px;
  margin: 8px 0;
}

.admin-import-report {
  margin-top: 12px;
  padding: 10px 12px;
  background: #f4f7f9;
  border: 1px solid #d5dde3;
  border-radius: 6px;
  font-size: 13px;
}

.admin-import-report h4 {
  margin: 0 0 8px;
  font-size: 14px;
}

.admin-import-report ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.admin-user-meta-line {
  font-size: 12px;
  color: #5c6770;
  margin-top: 2px;
}

.admin-users-section {
  overflow-x: visible;
  max-width: 100%;
}

.admin-users-list-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.admin-users-empty {
  margin: 8px 0;
  color: #4f5962;
}

.admin-users-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: flex-end;
  margin-bottom: 10px;
}

.admin-users-toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.admin-users-search-field {
  flex: 1 1 220px;
  min-width: 180px;
}

.admin-users-toolbar-label {
  font-size: 11px;
  font-weight: 700;
  color: #4f5962;
}

.admin-users-toolbar input[type="search"],
.admin-users-toolbar select {
  min-height: 32px;
  padding: 4px 8px;
  font-size: 13px;
  border: 1px solid #c7ccd1;
  box-sizing: border-box;
  max-width: 100%;
}

.admin-users-table-wrap {
  max-height: min(70vh, 720px);
  overflow-y: auto;
  overflow-x: auto;
  border: 1px solid #c7ccd1;
  background: #ffffff;
}

.admin-users-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.3;
}

.admin-users-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #eef2f5;
  color: #2a3439;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  padding: 4px 6px;
  border-bottom: 2px solid #c7ccd1;
  white-space: nowrap;
}

.admin-table-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin: 0;
  padding: 4px 4px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  border-radius: 3px;
}

.admin-table-sort-btn:hover {
  background: #dfe6eb;
}

.admin-table-sort-btn.is-active {
  color: #1f7a8c;
  background: #e3f2f5;
}

.admin-table-sort-indicator {
  display: inline-block;
  min-width: 10px;
  font-size: 10px;
  line-height: 1;
  color: #1f7a8c;
}

.admin-users-table tbody td {
  padding: 5px 10px;
  border-bottom: 1px solid #e6eaee;
  vertical-align: middle;
}

.admin-users-table tbody tr:hover {
  background: #f8fafb;
}

.admin-users-table tbody tr:nth-child(even) {
  background: #fbfcfd;
}

.admin-users-table tbody tr:nth-child(even):hover {
  background: #f3f6f8;
}

.col-username {
  font-weight: 600;
  color: #1f4f5c;
  white-space: nowrap;
}

.col-created,
.col-email {
  white-space: nowrap;
  font-size: 12px;
  color: #4f5962;
}

.col-email {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.col-ablauf {
  min-width: 168px;
}

.col-actions {
  min-width: 200px;
}

.col-attempt {
  white-space: nowrap;
}

.admin-user-username-text {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}

.admin-user-ref-hint {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  font-size: 10px;
  font-weight: 700;
  color: #4f5962;
  background: #e8edf1;
  border: 1px solid #c7ccd1;
  border-radius: 3px;
  vertical-align: middle;
  cursor: help;
}

.admin-table-input,
.admin-table-select {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 3px 6px;
  font-size: 12px;
  border: 1px solid #c7ccd1;
  box-sizing: border-box;
  background: #fff;
}

.admin-table-input-datetime {
  min-width: 150px;
  font-size: 11px;
}

.col-fullname {
  min-width: 140px;
}

.col-role {
  min-width: 110px;
}

.admin-user-status-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
}

.admin-table-checkbox {
  display: inline-flex;
  margin: 0;
  cursor: pointer;
}

.admin-table-checkbox input {
  margin: 0;
  width: 14px;
  height: 14px;
}

.admin-table-muted {
  color: #9aa3ab;
}

.admin-user-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.admin-btn-compact {
  min-height: 26px;
  padding: 3px 8px;
  font-size: 11px;
}

.admin-user-field.full {
  grid-column: 1 / -1;
}

.admin-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.user-status-pill {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.user-status-active {
  background: #e6f4ea;
  color: #276738;
  border: 1px solid #9fd3ad;
}

.user-status-inactive {
  background: #fde8e8;
  color: #8a1f1f;
  border: 1px solid #e8b4b4;
}

.admin-btn {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid #8f969e;
  background: #eceff2;
  cursor: pointer;
  font-size: 12px;
  border-radius: 2px;
  line-height: 1.25;
}

.admin-btn-primary {
  background: #1f7a8c;
  border-color: #186573;
  color: #ffffff;
}

.admin-btn-secondary {
  background: #ffffff;
  border-color: #1f7a8c;
  color: #1f7a8c;
}

.admin-btn-warning {
  background: #fff8e8;
  border-color: #d59b2d;
  color: #6f4b00;
}

.admin-btn-danger {
  background: #fde8e8;
  border-color: #b85c5c;
  color: #7a1f1f;
}

.user-attempt-badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.user-attempt-badge.allowed {
  background: #e6f4ea;
  color: #276738;
  border: 1px solid #9fd3ad;
}

.user-attempt-badge.blocked {
  background: #fff4df;
  color: #7a4d00;
  border: 1px solid #e0b15a;
}

.user-attempt-badge.na {
  background: transparent;
  border: none;
  color: #9aa3ab;
  font-weight: 400;
  padding: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .admin-create-user-grid {
    grid-template-columns: 1fr;
  }

  .admin-users-table-wrap {
    max-height: min(65vh, 560px);
  }
}

.checkbox-row.compact {
  margin-bottom: 0;
}

.admin-detail-actions {
  margin: 10px 0 14px;
  flex-wrap: wrap;
}

.admin-detail-summary {
  margin-bottom: 14px;
}

.admin-detail-summary p {
  margin: 4px 0;
}

.participant-resume-section {
  margin: 12px 0;
  padding: 12px;
  background: #e8f4f8;
  border: 1px solid #9ec5d4;
}

.participant-start-blocked {
  margin: 12px 0;
  padding: 12px;
  background: #fff4e5;
  border: 1px solid #e0b56a;
  color: #5c3d00;
  line-height: 1.4;
}

.admin-answer-protocol {
  margin-top: 8px;
  max-width: 100%;
  overflow-x: hidden;
}

.admin-answer-card {
  border: 1px solid #c7ccd1;
  background: #ffffff;
  margin-bottom: 10px;
  padding: 10px;
}

.admin-answer-card-header {
  font-weight: 700;
  background: #f1f3f5;
  border-bottom: 1px solid #c7ccd1;
  margin: -10px -10px 10px -10px;
  padding: 8px 10px;
  color: #1f7a8c;
}

.admin-answer-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 14px;
}

.admin-answer-card-field {
  min-width: 0;
}

.admin-answer-card-field.full {
  grid-column: 1 / -1;
}

.admin-answer-card-label {
  font-weight: 700;
  font-size: 12px;
  margin-bottom: 2px;
}

.admin-answer-card-value {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

.admin-answer-card.correct {
  border-left: 5px solid #4f8a5b;
}

.admin-answer-card.partial {
  border-left: 5px solid #d59b2d;
}

.admin-answer-card.wrong {
  border-left: 5px solid #b85c5c;
}

.admin-answer-card.missing-solution {
  border-left: 5px solid #8f969e;
}

@media (max-width: 900px) {
  .admin-answer-card-grid {
    grid-template-columns: 1fr;
  }
}

.admin-attempt-detail h4 {
  margin: 16px 0 8px;
  font-size: 14px;
}

.admin-solutions-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 14px;
  margin-bottom: 12px;
}

.admin-solutions-table-wrap {
  max-height: 50vh;
  overflow: auto;
  margin-bottom: 16px;
}

.admin-solutions-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-solutions-table th,
.admin-solutions-table td {
  border: 1px solid #c7ccd1;
  padding: 6px 8px;
  text-align: left;
  vertical-align: top;
}

.admin-solution-editor {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #c7ccd1;
  background: #f8f9fa;
}

.solution-editor-hint {
  color: #4e4e4e;
  margin: 0 0 10px;
}

.solution-editor-question {
  margin-bottom: 12px;
  white-space: pre-wrap;
}

.solution-editor-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.solution-option-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid #c7ccd1;
  background: #ffffff;
  cursor: pointer;
}

.solution-option-single input {
  border-radius: 0;
}

.solution-option-multiple input {
  border-radius: 0;
}

#admin-correction-print-area {
  display: none;
}

.admin-print-header {
  margin: 0 0 6mm 0;
  padding: 0 0 4mm 0;
}

.admin-print-questions {
  margin: 0;
  padding: 0;
}

.admin-print-header h2 {
  margin: 0 0 4px;
  font-size: 16px;
}

.admin-print-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 12px;
  margin-top: 8px;
  font-size: 11px;
}

.admin-print-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 10px;
  margin-bottom: 6px;
  font-size: 10.5px;
}

.admin-print-question-text,
.admin-print-answer,
.admin-print-grading {
  margin-top: 6px;
  font-size: 10.5px;
}

.admin-print-grading {
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed #c7ccd1;
}

@media print {
  body.printing-admin-correction {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body.printing-admin-correction > *:not(#admin-correction-print-area) {
    display: none !important;
    visibility: hidden !important;
  }

  body.printing-admin-correction * {
    visibility: hidden !important;
  }

  body.printing-admin-correction #admin-correction-print-area,
  body.printing-admin-correction #admin-correction-print-area * {
    visibility: visible !important;
  }

  body.printing-admin-correction #admin-correction-print-area {
    display: block !important;
    visibility: visible !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 0 18mm 0 !important;
    transform: none !important;
    page-break-before: auto !important;
    break-before: auto !important;
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10.5px !important;
    line-height: 1.35 !important;
  }

  body.printing-admin-correction .admin-print-header {
    margin: 0 0 6mm 0 !important;
    padding: 0 0 4mm 0 !important;
    page-break-before: auto !important;
    break-before: auto !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  body.printing-admin-correction .admin-print-questions {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    page-break-before: auto !important;
    break-before: auto !important;
  }

  body.printing-admin-correction .admin-print-question-card {
    page-break-inside: avoid;
    break-inside: avoid;
    border: 1px solid #c7ccd1;
    margin: 0 0 12mm 0;
    padding: 6mm;
    page-break-before: auto !important;
    break-before: auto !important;
  }

  body.printing-admin-correction .admin-print-question-card:first-of-type {
    page-break-before: auto !important;
    break-before: auto !important;
    margin-top: 0 !important;
  }

  body.printing-admin-correction .admin-print-footer {
    position: fixed;
    left: 12mm;
    right: 12mm;
    bottom: 8mm;
    border-top: 1px solid #333333;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    gap: 8mm;
    font-size: 9px;
    padding-top: 3mm;
    background: #ffffff;
    visibility: visible !important;
  }

  body.printing-admin-correction .admin-print-page-number::after {
    content: counter(page);
  }

  @page {
    size: A4;
    margin: 10mm 12mm 20mm 12mm;
  }
}

#admin-compact-print-area {
  display: none;
  height: auto;
  max-height: none;
  overflow: visible;
}

#admin-compact-print-measure-host {
  position: absolute;
  left: -12000px;
  top: 0;
  width: 200mm;
  max-width: 200mm;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

body.admin-compact-measuring #admin-compact-print-measure-probe {
  display: block;
  width: 100%;
  box-sizing: border-box;
  font-size: 10px;
  line-height: 1.28;
  color: #000000;
  background: #ffffff;
}

body.admin-compact-measuring #admin-compact-print-measure-probe .admin-compact-header {
  margin: 0 0 2.5mm 0;
  padding: 0;
  font-size: 9px;
  line-height: 1.2;
}

body.admin-compact-measuring #admin-compact-print-measure-probe .admin-compact-header h1 {
  font-size: 12px;
  margin: 0 0 1.5mm 0;
  padding: 0;
  line-height: 1.2;
}

body.admin-compact-measuring #admin-compact-print-measure-probe .admin-compact-header p {
  margin: 0 0 1mm 0;
  padding: 0;
}

body.admin-compact-measuring #admin-compact-print-measure-probe .admin-compact-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1mm 2.5mm;
  margin: 0 0 2.5mm 0;
  padding: 0;
  font-size: 9px;
  line-height: 1.2;
}

body.admin-compact-measuring #admin-compact-print-measure-probe .admin-compact-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 10px;
  line-height: 1.28;
  margin: 0;
}

body.admin-compact-measuring #admin-compact-print-measure-probe .admin-compact-table th,
body.admin-compact-measuring #admin-compact-print-measure-probe .admin-compact-table td {
  border: 0.4pt solid #666666;
  padding: 1.6mm 1.2mm;
  vertical-align: middle;
  line-height: 1.28;
  font-size: 10px;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}

body.admin-compact-measuring #admin-compact-print-measure-probe .admin-compact-table th {
  font-weight: 700;
  background: #eeeeee;
  padding: 1.4mm 1.2mm;
}

body.admin-compact-measuring #admin-compact-print-measure-probe .admin-compact-result-measure .admin-compact-result-block {
  position: static;
  margin: 0;
  border: 0.8pt solid #333333;
  padding: 2.2mm;
  font-size: 9.5px;
  line-height: 1.2;
  box-sizing: border-box;
}

body.admin-compact-measuring #admin-compact-print-measure-probe .admin-compact-result-block p,
body.admin-compact-measuring #admin-compact-print-measure-probe .admin-compact-result-block div {
  margin-top: 0;
  margin-bottom: 1.1mm;
}

@media print {
  body.printing-admin-compact {
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body.printing-admin-compact > *:not(#admin-compact-print-area) {
    display: none !important;
    visibility: hidden !important;
  }

  body.printing-admin-compact * {
    visibility: hidden !important;
  }

  body.printing-admin-compact #admin-compact-print-area,
  body.printing-admin-compact #admin-compact-print-area * {
    visibility: visible !important;
  }

  body.printing-admin-compact #admin-compact-print-area {
    display: block !important;
    position: static !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
    zoom: 1 !important;
    font-size: 10px !important;
    line-height: 1.28 !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  body.printing-admin-compact .admin-compact-print-page {
    display: block !important;
    visibility: visible !important;
    position: relative !important;
    width: 100% !important;
    height: 279mm !important;
    max-height: 279mm !important;
    min-height: 279mm !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    page-break-after: always !important;
    break-after: page !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body.printing-admin-compact .admin-compact-print-page:last-child {
    page-break-after: auto !important;
    break-after: auto !important;
  }

  body.printing-admin-compact .admin-compact-print-page-flow {
    display: block !important;
    visibility: visible !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--compact-page-flow-bottom, 12mm) !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    z-index: 1 !important;
  }

  body.printing-admin-compact .admin-compact-table {
    display: table !important;
    visibility: visible !important;
  }

  body.printing-admin-compact .admin-compact-table thead {
    display: table-header-group !important;
    visibility: visible !important;
  }

  body.printing-admin-compact .admin-compact-table tbody {
    display: table-row-group !important;
    visibility: visible !important;
  }

  body.printing-admin-compact .admin-compact-table tr {
    display: table-row !important;
    visibility: visible !important;
  }

  body.printing-admin-compact .admin-compact-table th,
  body.printing-admin-compact .admin-compact-table td {
    display: table-cell !important;
    visibility: visible !important;
  }

  body.printing-admin-compact .admin-compact-page-footer {
    display: flex !important;
    visibility: visible !important;
  }

  body.printing-admin-compact .admin-compact-header,
  body.printing-admin-compact .admin-compact-result-block {
    display: block !important;
    visibility: visible !important;
  }

  body.printing-admin-compact .admin-compact-meta {
    display: grid !important;
    visibility: visible !important;
  }

  body.printing-admin-compact .admin-compact-page-footer {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 6mm !important;
    height: auto !important;
    min-height: 4mm !important;
    border-top: 0.5pt solid #333333 !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    font-size: 7px !important;
    line-height: 1.1 !important;
    padding: 1mm 0 0 0 !important;
    margin: 0 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    z-index: 3 !important;
  }

  body.printing-admin-compact .admin-compact-print-page.page-2 .admin-compact-result-block {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: var(--compact-page2-result-bottom, 12mm) !important;
    margin: 0 !important;
    border: 0.8pt solid #333333 !important;
    padding: 2.2mm !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
    background: #ffffff !important;
    box-sizing: border-box !important;
    z-index: 2 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  body.printing-admin-compact #admin-compact-print-area table,
  body.printing-admin-compact #admin-compact-print-area tr,
  body.printing-admin-compact #admin-compact-print-area th,
  body.printing-admin-compact #admin-compact-print-area td {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    transform: none !important;
    zoom: 1 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  body.printing-admin-compact .admin-compact-table {
    width: 100% !important;
    border-collapse: collapse !important;
    table-layout: fixed !important;
    font-size: 10px !important;
    line-height: 1.28 !important;
    margin: 0 !important;
    page-break-inside: avoid !important;
    break-inside: avoid !important;
  }

  body.printing-admin-compact .admin-compact-header {
    margin: 0 0 2.5mm 0 !important;
    padding: 0 !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    page-break-after: avoid !important;
    break-after: avoid !important;
  }

  body.printing-admin-compact .admin-compact-header h1 {
    font-size: 12px !important;
    margin: 0 0 1.5mm 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
  }

  body.printing-admin-compact .admin-compact-header p {
    margin: 0 0 1mm 0 !important;
    padding: 0 !important;
  }

  body.printing-admin-compact .admin-compact-header .admin-compact-meta {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 1mm 2.5mm !important;
    margin: 0 0 2.5mm 0 !important;
    padding: 0 !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
  }

  body.printing-admin-compact .admin-compact-table th,
  body.printing-admin-compact .admin-compact-table td {
    border: 0.4pt solid #666666 !important;
    padding: 1.6mm 1.2mm !important;
    vertical-align: middle !important;
    line-height: 1.28 !important;
    font-size: 10px !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
  }

  body.printing-admin-compact .admin-compact-table th {
    font-weight: 700 !important;
    background: #eeeeee !important;
    padding: 1.4mm 1.2mm !important;
  }

  body.printing-admin-compact .admin-compact-result-block p,
  body.printing-admin-compact .admin-compact-result-block div {
    margin-top: 0 !important;
    margin-bottom: 1.1mm !important;
  }

  body.printing-admin-compact .admin-compact-auto-points {
    font-size: 9px !important;
    color: #333333 !important;
    margin-bottom: 1mm !important;
  }

  body.printing-admin-compact .admin-compact-result-checks span {
    margin-right: 6mm !important;
  }

  body.printing-admin-compact .admin-compact-result-lines div {
    margin-bottom: 1mm !important;
  }

  @page {
    size: A4 portrait;
    margin: 6mm 5mm 12mm 5mm;
  }
}

#admin-compact-print-area .admin-compact-result-block {
  border: 0.8pt solid #333;
  padding: 2.2mm;
  font-size: 9.5px;
  line-height: 1.2;
}

#admin-compact-print-area .admin-compact-auto-points {
  font-size: 8.5px;
  color: #4f5962;
  margin: 0 0 6px;
}

