body {
  background: #f8f9fa;
  color: #212529;
}

html,
body,
#app {
  min-height: 100%;
}

[hidden] {
  display: none !important;
}

.page-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.page-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.8rem;
  padding: 0.22rem 0.7rem;
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: 0.35rem;
  background: #fff;
  color: #0b5ed7;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
}

.page-nav-link:hover {
  background: rgba(13, 110, 253, 0.08);
  color: #0a58ca;
}

.page-nav-link.is-active {
  border-color: rgba(33, 37, 41, 0.18);
  background: rgba(33, 37, 41, 0.08);
  color: #343a40;
}

iframe {
  width: 100%;
  min-width: 0;
}

.grade-review-shell {
  min-height: 100vh;
  --grade-review-space-2: 0.55rem;
  --grade-review-space-3: 0.8rem;
}

.grade-review-shell .card-body {
  padding: var(--grade-review-space-3);
}

.grade-review-shell .form-label {
  margin-bottom: 0.2rem;
}

.grade-review-shell .btn,
.grade-review-shell .form-select,
.grade-review-shell .form-control {
  padding-top: 0.35rem;
  padding-bottom: 0.35rem;
}

.grade-review-shell .form-select,
.grade-review-shell .form-control {
  min-height: calc(1.5em + 0.7rem + calc(var(--bs-border-width) * 2));
}

.grade-review-shell .btn-sm,
.grade-review-shell .btn-group-sm > .btn {
  --bs-btn-padding-y: 0.22rem;
  --bs-btn-padding-x: 0.55rem;
}

.grade-review-shell .g-3,
.grade-review-shell .gx-3 {
  --bs-gutter-x: var(--grade-review-space-3);
}

.grade-review-shell .g-3,
.grade-review-shell .gy-3 {
  --bs-gutter-y: var(--grade-review-space-3);
}

.grade-review-shell .g-2,
.grade-review-shell .gx-2 {
  --bs-gutter-x: var(--grade-review-space-2);
}

.grade-review-shell .g-2,
.grade-review-shell .gy-2 {
  --bs-gutter-y: var(--grade-review-space-2);
}

.grade-review-shell .gap-3 {
  gap: var(--grade-review-space-3) !important;
}

.grade-review-shell .gap-2 {
  gap: var(--grade-review-space-2) !important;
}

.grade-review-shell .p-3 {
  padding: var(--grade-review-space-3) !important;
}

.grade-review-shell .p-2 {
  padding: var(--grade-review-space-2) !important;
}

.grade-review-shell .px-3 {
  padding-left: var(--grade-review-space-3) !important;
  padding-right: var(--grade-review-space-3) !important;
}

.grade-review-shell .px-2 {
  padding-left: var(--grade-review-space-2) !important;
  padding-right: var(--grade-review-space-2) !important;
}

.grade-review-shell .py-2 {
  padding-top: var(--grade-review-space-2) !important;
  padding-bottom: var(--grade-review-space-2) !important;
}

.grade-review-shell .py-1 {
  padding-top: 0.35rem !important;
  padding-bottom: 0.35rem !important;
}

.grade-review-shell .pt-2 {
  padding-top: var(--grade-review-space-2) !important;
}

.grade-review-shell .pb-2 {
  padding-bottom: var(--grade-review-space-2) !important;
}

.grade-review-controls-top,
.grade-review-main,
.grade-review-content-card {
  min-height: 0;
}

.grade-review-controls-top {
  min-width: 0;
}

.grade-review-main {
  align-content: start;
  overflow-x: hidden;
}

.grade-review-inputs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: var(--grade-review-space-3);
}

.grade-review-input-field {
  flex: 1 1 18rem;
  min-width: min(100%, 18rem);
  max-width: 100%;
}

.grade-review-shell-target-field {
  flex-basis: 24rem;
}

.grade-review-shell-target-select {
  min-height: 7.2rem;
}

.grade-review-multiselect {
  position: relative;
}

.grade-review-multiselect-menu {
  position: absolute;
  inset: calc(100% + 0.25rem) 0 auto;
  z-index: 1080;
}

.course-controls {
  padding: var(--grade-review-space-3);
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 0.5rem;
  background: #fff;
}

.course-controls-header {
  min-width: 0;
}

.course-controls-report-action {
  max-width: 34rem;
}

.course-controls-report-issues {
  position: relative;
}

.course-controls-report-issues > summary {
  list-style: none;
}

.course-controls-report-issues > summary::-webkit-details-marker {
  display: none;
}

.course-controls-report-issues-panel {
  position: absolute;
  inset: calc(100% + 0.35rem) 0 auto auto;
  z-index: 1080;
  width: min(32rem, calc(100vw - 2rem));
  max-height: 20rem;
  overflow: auto;
}

.course-controls-filter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.35rem;
}

.course-overview-submission-control {
  min-width: 0;
}

.course-overview-submission-row {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  min-width: 0;
}

.course-overview-submission-row > .grade-review-multiselect {
  flex: 1 1 auto;
  min-width: 0;
}

.course-overview-submission-meta {
  min-width: 0;
  max-width: 55%;
}

.course-overview-submission-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  justify-content: flex-end;
  gap: 0.35rem;
}

.course-overview-submission-action {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  min-width: 2rem;
  height: 2rem;
  padding: 0;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.course-overview-submission-action-pull {
  gap: 0.1rem;
  width: 2.45rem;
  min-width: 2.45rem;
}

.course-overview-submission-action-forget-content {
  gap: 0.1rem;
  width: 2.45rem;
  min-width: 2.45rem;
}

.course-overview-submission-action-pull:not(:disabled):hover {
  background: rgba(33, 37, 41, 0.04);
}

.course-overview-submission-action-file {
  position: relative;
  display: inline-block;
  width: 0.6rem;
  height: 0.75rem;
  border: 1.4px solid currentColor;
  border-radius: 0.08rem;
  opacity: 0.86;
}

.course-overview-submission-action-file::after {
  content: "";
  position: absolute;
  top: -1.4px;
  right: -1.4px;
  width: 0.24rem;
  height: 0.24rem;
  border-left: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  background: var(--bs-body-bg, #fff);
}

.grade-review-lab-pane,
.grade-review-quiz-pane,
.grade-review-discussion-pane,
.grade-review-lab-pane .card-body,
.grade-review-quiz-pane .card-body,
.grade-review-discussion-pane .card-body {
  min-width: 0;
  overflow-x: hidden;
}

.grade-review-lab-grades-column,
.grade-review-quiz-grades-column,
.grade-review-discussion-grades-column,
.grade-review-quiz-details-column,
.grade-review-discussion-details-column,
.grade-review-preview-column {
  min-width: 0;
  overflow-x: hidden;
}

.grade-review-actions .btn {
  white-space: nowrap;
}

.grade-review-inline-log {
  max-height: min(32vh, 18rem);
  overflow: auto;
}

.grade-review-log-viewer {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}

.grade-review-log-line {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 0.35rem 0.45rem;
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.72);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.grade-review-log-line.is-meta {
  background: rgba(13, 110, 253, 0.08);
  border-color: rgba(13, 110, 253, 0.18);
}

.grade-review-log-line.is-running {
  background: rgba(13, 202, 240, 0.09);
  border-color: rgba(13, 202, 240, 0.2);
}

.grade-review-log-line.is-success {
  background: rgba(25, 135, 84, 0.09);
  border-color: rgba(25, 135, 84, 0.2);
}

.grade-review-log-line.is-warning {
  background: rgba(255, 193, 7, 0.14);
  border-color: rgba(255, 193, 7, 0.28);
}

.grade-review-log-line.is-error {
  background: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.22);
}

.grade-review-log-line.is-muted {
  background: rgba(108, 117, 125, 0.08);
  border-color: rgba(108, 117, 125, 0.16);
  color: #5c636a;
}

.grade-review-log-spacer {
  min-height: 0.2rem;
}

.grade-review-log-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.75rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(33, 37, 41, 0.12);
  color: #212529;
}

.grade-review-log-badge.is-running,
.grade-review-log-badge.is-stdout {
  background: rgba(13, 202, 240, 0.18);
  color: #055160;
}

.grade-review-log-badge.is-success {
  background: rgba(25, 135, 84, 0.18);
  color: #0f5132;
}

.grade-review-log-badge.is-error,
.grade-review-log-badge.is-stderr {
  background: rgba(220, 53, 69, 0.18);
  color: #842029;
}

.grade-review-log-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.grade-review-log-link.is-url {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  text-decoration: none;
}

.grade-review-log-link.is-file {
  color: #0d6efd;
}

.grade-review-log-url-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.22rem;
  min-width: 0;
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: #0b5ed7;
  line-height: 1.2;
}

.grade-review-log-url-chip.is-domain {
  background: rgba(25, 135, 84, 0.1);
  border-color: rgba(25, 135, 84, 0.18);
  color: #146c43;
  font-weight: 600;
}

.grade-review-log-url-chip.is-path {
  background: rgba(255, 193, 7, 0.12);
  border-color: rgba(255, 193, 7, 0.22);
  color: #997404;
  font-weight: 600;
}

.grade-review-log-url-chip.is-param {
  border-radius: 0.6rem;
}

.grade-review-log-url-param-key {
  opacity: 0.78;
}

.grade-review-log-url-param-value {
  font-weight: 600;
}

.grade-review-table-wrap {
  --grade-review-major-divider-color: rgba(33, 37, 41, 0.24);
  min-width: 0;
  width: 100%;
  max-width: 100%;
  max-height: 75vh;
  overflow-x: auto !important;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.grade-review-table-wrap .grade-review-sticky-column {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--bs-table-bg, var(--bs-body-bg));
  background-clip: padding-box;
  box-shadow: inset -1px 0 0 rgba(33, 37, 41, 0.12);
}

.grade-review-table-wrap .grade-review-sticky-column.grade-review-sticky-student-cell {
  box-shadow:
    inset 4px 0 0 var(--grade-review-section-accent, transparent),
    inset -1px 0 0 rgba(33, 37, 41, 0.12);
}

.grade-review-table-wrap .grade-review-merged-table .grade-review-sticky-student-column {
  min-width: 18rem;
}

.grade-review-table-wrap .grade-review-major-group-header,
.grade-review-table-wrap .grade-review-major-group-divider {
  border-inline-start: 2px solid var(--grade-review-major-divider-color);
}

.grade-review-table-wrap thead .grade-review-sticky-column {
  z-index: 1300;
}

.grade-review-table-wrap .grade-review-merged-table thead tr th {
  position: sticky;
  background: var(--bs-table-bg, var(--bs-body-bg));
  background-clip: padding-box;
}

.grade-review-table-wrap .grade-review-merged-table thead tr:first-child th {
  top: 0;
  z-index: 1200;
}

.grade-review-table-wrap .grade-review-merged-table thead tr:nth-child(2) th {
  top: 2.1rem;
  z-index: 1000;
}

.grade-review-table-wrap .grade-review-merged-table thead .grade-review-sticky-column {
  z-index: 1400;
}

.grade-review-table-wrap table {
  width: max-content;
  min-width: 42rem;
}

.grade-review-table-wrap .grade-review-merged-table td.grade-review-merged-grade-cell {
  padding: 0.16rem 0.22rem;
  position: relative;
}

.grade-review-table-wrap .grade-review-merged-table .grade-review-merged-score-button {
  --bs-btn-padding-y: 0.18rem;
  --bs-btn-padding-x: 0.22rem;
  display: flex !important;
  width: 100%;
  height: 100%;
  min-height: 1.6rem;
  box-sizing: border-box;
}

.grade-review-table-wrap .grade-review-merged-table .grade-review-merged-score-value {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.grade-review-table-wrap .grade-review-merged-table .grade-review-merged-score-input {
  width: 100%;
  min-width: 0;
  height: 1.6rem;
  min-height: 1.6rem;
  padding: 0.12rem 0.22rem;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
}

.grade-review-table-wrap .grade-review-merged-table .grade-review-merged-score-button.grade-review-merged-grade-cell-status-ungraded {
  border: 2px solid var(--bs-warning) !important;
}

.grade-review-table-wrap .grade-review-merged-table .grade-review-merged-score-button.grade-review-merged-grade-cell-status-staged {
  border: 2px solid var(--bs-success) !important;
}

.grade-review-table-wrap .grade-review-merged-table .grade-review-merged-cell-actions {
  position: absolute;
  top: calc(100% - 0.1rem);
  left: 50%;
  z-index: 1500;
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: 0.25rem;
  width: max-content;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.35rem;
  transform: translateX(-50%);
  border: 1px solid rgba(33, 37, 41, 0.18);
  border-radius: 0.35rem;
  background: var(--bs-body-bg, #fff);
  box-shadow: 0 0.5rem 1rem rgba(33, 37, 41, 0.18);
}

.grade-review-table-wrap .grade-review-merged-table .grade-review-merged-cell-action {
  --bs-btn-padding-y: 0.16rem;
  --bs-btn-padding-x: 0.38rem;
  min-height: 1.5rem;
  font-size: 0.72rem;
  line-height: 1.1;
  white-space: nowrap;
}

.grade-review-table-wrap .grade-review-rotated-column-header {
  width: 4rem;
  min-width: 4rem;
  height: 10.5rem;
  padding: 0.35rem 0.2rem;
  vertical-align: bottom;
}

.grade-review-table-wrap .grade-review-rotated-column-button,
.grade-review-table-wrap .grade-review-rotated-column-static {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 9.5rem;
}

.grade-review-table-wrap .grade-review-rotated-column-label {
  position: absolute;
  left: 0.45rem;
  bottom: 0.35rem;
  display: inline-block;
  white-space: nowrap;
  line-height: 1.05;
  transform: rotate(-45deg);
  transform-origin: left bottom;
}

.grade-review-aggregate-table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: 75vh;
  overflow-x: auto;
  overflow-y: auto;
}

.aggregate-daily-activity-card {
  min-width: 0;
  overflow: hidden;
}

.aggregate-daily-activity-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.aggregate-daily-activity-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: #495057;
  font-size: 0.8rem;
  font-weight: 600;
}

.aggregate-daily-activity-swatch {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 0.16rem;
}

.aggregate-daily-activity-swatch.is-quiz,
.aggregate-daily-activity-segment.is-quiz {
  background: #ffc107;
}

.aggregate-daily-activity-swatch.is-discussion,
.aggregate-daily-activity-segment.is-discussion {
  background: #0d6efd;
}

.aggregate-daily-activity-swatch.is-lab,
.aggregate-daily-activity-segment.is-lab {
  background: #198754;
}

.aggregate-daily-activity-chart-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  overflow-y: hidden;
  padding: 0.35rem 0 0.2rem;
}

.aggregate-daily-activity-plot {
  display: grid;
  grid-template-columns: minmax(2rem, 2.45rem) minmax(0, 1fr);
  gap: 0.35rem;
  min-width: 0;
  max-width: 100%;
}

.aggregate-daily-activity-count-axis {
  display: grid;
  grid-template-rows: 1.1rem 7rem 1.6rem;
  min-width: 0;
  color: #6c757d;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  text-align: right;
}

.aggregate-daily-activity-count-axis-ticks {
  display: flex;
  flex-direction: column;
  grid-row: 2;
  justify-content: space-between;
  align-items: flex-end;
  min-height: 0;
  padding: 0 0.1rem 0.08rem 0;
  border-right: 1px solid rgba(108, 117, 125, 0.28);
}

.aggregate-daily-activity-chart {
  --day-count: 1;
  display: grid;
  grid-template-columns: repeat(var(--day-count), minmax(0, 1fr));
  align-items: end;
  gap: clamp(0.08rem, 0.45vw, 0.45rem);
  width: 100%;
  min-width: 0;
  min-height: 9.7rem;
  box-sizing: border-box;
  padding: 0;
}

.aggregate-daily-activity-day {
  display: grid;
  grid-template-rows: 1.1rem 7rem 1.6rem;
  justify-items: center;
  min-width: 0;
  overflow: hidden;
  border-radius: 0.2rem;
  cursor: default;
}

.aggregate-daily-activity-day:focus {
  outline: 2px solid rgba(13, 110, 253, 0.35);
  outline-offset: 1px;
}

.aggregate-daily-activity-count {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}

.aggregate-daily-activity-bar-slot {
  display: flex;
  align-items: end;
  justify-content: center;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border-bottom: 1px solid rgba(108, 117, 125, 0.28);
}

.aggregate-daily-activity-bar {
  display: flex;
  flex-direction: column-reverse;
  width: clamp(0.14rem, 70%, 1.15rem);
  min-height: 0.35rem;
  max-height: 7rem;
  overflow: hidden;
  border-radius: 0.22rem 0.22rem 0.12rem 0.12rem;
  background: rgba(108, 117, 125, 0.12);
}

.aggregate-daily-activity-segment {
  display: block;
  width: 100%;
  min-height: 0.16rem;
  pointer-events: none;
}

.aggregate-daily-activity-label {
  align-self: start;
  max-width: min(2.6rem, 100%);
  min-height: 1.45rem;
  color: #6c757d;
  font-size: 0.62rem;
  line-height: 1.05;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
}

.aggregate-daily-activity-chart-wrap.is-dense .aggregate-daily-activity-count {
  font-size: 0.62rem;
}

.aggregate-daily-activity-chart-wrap.is-dense .aggregate-daily-activity-label {
  font-size: 0.56rem;
}

.aggregate-daily-activity-chart-wrap.is-very-dense .aggregate-daily-activity-count {
  visibility: hidden;
}

.aggregate-daily-activity-chart-wrap.is-very-dense .aggregate-daily-activity-chart {
  gap: clamp(0.04rem, 0.22vw, 0.18rem);
}

.aggregate-daily-activity-chart-wrap.is-very-dense .aggregate-daily-activity-label {
  visibility: hidden;
}

.aggregate-daily-activity-x-axis {
  margin: 0.15rem 0 0 2.8rem;
  color: #6c757d;
  font-size: 0.64rem;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}

.aggregate-daily-activity-tooltip {
  position: fixed;
  z-index: 1080;
  width: 13.75rem;
  max-width: calc(100vw - 1.5rem);
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(33, 37, 41, 0.16);
  border-radius: 0.35rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 0.5rem 1.5rem rgba(33, 37, 41, 0.18);
  color: #212529;
  font-size: 0.78rem;
  line-height: 1.2;
  pointer-events: none;
}

.aggregate-daily-activity-tooltip-date {
  margin-bottom: 0.35rem;
  font-weight: 800;
}

.aggregate-daily-activity-tooltip-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.22rem;
}

.aggregate-daily-activity-tooltip-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.aggregate-daily-activity-tooltip-swatch {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 0.12rem;
}

.aggregate-daily-activity-tooltip-swatch.is-quiz {
  background: #ffc107;
}

.aggregate-daily-activity-tooltip-swatch.is-discussion {
  background: #0d6efd;
}

.aggregate-daily-activity-tooltip-swatch.is-lab {
  background: #198754;
}

.aggregate-daily-activity-tooltip-total {
  margin-top: 0.4rem;
  padding-top: 0.35rem;
  border-top: 1px solid rgba(108, 117, 125, 0.18);
  color: #495057;
  font-weight: 700;
  text-align: right;
}

.grade-review-preview-column {
  max-width: 100%;
  max-height: 100%;
}

.grade-review-preview-surface {
  min-width: 0;
  max-width: 100%;
  min-height: 0;
}

.grade-review-preview-frame,
.grade-review-preview-text,
.grade-review-preview-empty {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: clamp(18rem, 52vh, 44rem);
}

.grade-review-preview-text {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.grade-report-layout,
.grade-report-print-surface {
  min-width: 0;
}

.grade-report-sticky {
  position: sticky;
  top: var(--grade-review-space-2);
}

.grade-report-preview-card {
  background:
    radial-gradient(circle at top right, rgba(13, 110, 253, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 249, 250, 0.92));
}

.grade-report-merged-review-shell {
  position: relative;
  min-width: 0;
}

.grade-report-merged-review-table {
  min-width: 0;
}

.grade-report-merged-review-preview {
  min-width: 0;
  display: none;
}

.grade-report-merged-review-preview.is-open {
  display: block;
}

.grade-report-merged-review-backdrop {
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(15, 23, 42, 0.35);
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.grade-report-merged-review-preview-panel {
  min-width: 0;
  overflow: hidden;
}

.grade-report-merged-review-preview-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.grade-report-merged-review-preview-header > :first-child {
  min-width: 0;
}

.grade-report-merged-review-preview-close {
  flex: 0 0 auto;
  align-self: flex-start;
  font-weight: 600;
  white-space: nowrap;
  background: #fff;
  box-shadow: 0 0.125rem 0.35rem rgba(15, 23, 42, 0.08);
}

.grade-report-merged-review-preview-body {
  min-width: 0;
  min-height: 0;
  overflow: auto;
  max-height: calc(100vh - 9rem);
}

.grade-report-grade-table-wrap table {
  min-width: 40rem;
}

.grade-report-grade-table-wrap {
  max-height: 75vh;
  overflow-y: auto;
}

.grade-report-grade-table-wrap th {
  white-space: nowrap;
}

.grade-report-grade-table-wrap td {
  vertical-align: middle;
}

.instruction-file-preview-modal {
  z-index: 1090;
}

.instruction-file-preview-dialog {
  max-width: min(980px, calc(100vw - 2rem));
  max-height: min(88vh, 900px);
  overflow: hidden;
}

.instruction-file-preview-modal-body {
  min-height: 0;
  overflow: auto;
}

.instruction-file-preview-frame {
  width: 100%;
  min-height: min(64vh, 640px);
  border: 1px solid rgba(33, 37, 41, 0.18);
  border-radius: 0.375rem;
  background: #fff;
}

.instruction-file-preview-text {
  max-height: min(64vh, 640px);
  margin: 0;
  overflow: auto;
  padding: 0.65rem;
  border: 1px solid rgba(33, 37, 41, 0.18);
  border-radius: 0.375rem;
  background: #fff;
  color: #212529;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.instruction-file-preview-status,
.instruction-file-preview-unavailable {
  padding: 0.75rem;
  border: 1px solid rgba(33, 37, 41, 0.18);
  border-radius: 0.375rem;
  background: #fff;
}

.student-interactivity-timeline-section {
  overflow-x: clip;
  overflow-y: visible;
  border: 1px solid rgba(33, 37, 41, 0.08) !important;
  border-radius: 0.6rem;
  background: #fff;
}

.student-interactivity-timeline-body {
  min-width: 0;
  overflow: visible;
}

.student-interactivity-timeline-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-width: 0;
}

.student-interactivity-timeline-header h2 {
  color: #172033;
  font-weight: 700;
}

.student-interactivity-timeline-run {
  min-width: 4.4rem;
  border-radius: 0.45rem;
  font-weight: 700;
}

.student-interactivity-timeline-summary,
.student-interactivity-timeline-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}

.student-interactivity-timeline-stat,
.student-interactivity-timeline-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 1.45rem;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 0.45rem;
  background: #f8fafc;
  color: #263244;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

.student-interactivity-timeline-stat.is-muted {
  color: #64748b;
  font-weight: 600;
}

.student-interactivity-timeline-stat.is-warning {
  border-color: rgba(245, 158, 11, 0.28);
  background: rgba(245, 158, 11, 0.12);
  color: #854d0e;
}

.student-interactivity-timeline-legend {
  gap: 0.28rem 0.5rem;
  padding-top: 0.15rem;
}

.student-interactivity-timeline-legend-item {
  min-height: 1.35rem;
  padding: 0.14rem 0.45rem;
  background: transparent;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 650;
}

.student-interactivity-timeline-legend-swatch {
  width: 0.58rem;
  height: 0.58rem;
  border-radius: 50%;
  background: var(--timeline-accent);
  box-shadow: 0 0 0 0.15rem color-mix(in srgb, var(--timeline-accent) 18%, transparent);
}

.student-interactivity-timeline-viewport {
  position: relative;
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
  width: 100%;
  overflow: visible;
  padding: 0.75rem 0.85rem 0.95rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 0.6rem;
  background:
    linear-gradient(180deg, rgba(248, 250, 252, 0.94), rgba(255, 255, 255, 0.98)),
    repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.1) 0, rgba(148, 163, 184, 0.1) 1px, transparent 1px, transparent 7.5rem);
  -webkit-overflow-scrolling: touch;
}

.student-interactivity-timeline-track {
  --timeline-lane-count: 1;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: calc(6.6rem + (var(--timeline-lane-count) * 0.72rem));
  padding: 0.55rem 0 0.9rem;
}

.student-interactivity-timeline-axis {
  position: absolute;
  top: 2.45rem;
  right: 0.75rem;
  left: 0.75rem;
  height: 0.18rem;
  border-radius: 999px;
  background: #dbe3ee;
}

.student-interactivity-timeline-axis::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #5146e5, #0f9f76, #eab308, #df4c73);
  opacity: 0.72;
}

.student-interactivity-timeline-boundary {
  position: absolute;
  top: 0.15rem;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.student-interactivity-timeline-boundary-start {
  left: 0.75rem;
}

.student-interactivity-timeline-boundary-end {
  right: 0.75rem;
  text-align: right;
}

.student-interactivity-timeline-week-marker {
  --timeline-position: 0%;
  position: absolute;
  top: 2.15rem;
  left: clamp(0.75rem, var(--timeline-position), calc(100% - 0.75rem));
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.12rem;
  width: 2rem;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1;
  transform: translateX(-50%);
  pointer-events: none;
}

.student-interactivity-timeline-week-tick {
  width: 1px;
  height: 0.72rem;
  border-radius: 999px;
  background: rgba(71, 85, 105, 0.48);
}

.student-interactivity-timeline-week-label {
  padding-top: 0.12rem;
  white-space: nowrap;
}

.student-interactivity-timeline-event {
  --timeline-accent: #64748b;
  --timeline-position: 50%;
  --timeline-cluster-offset: 0px;
  --timeline-lane-offset: 0px;
  position: relative;
  z-index: 1;
}

.student-interactivity-timeline-marker {
  position: absolute;
  top: calc(1.92rem + var(--timeline-lane-offset));
  left: clamp(0.75rem, var(--timeline-position), calc(100% - 0.75rem));
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.92rem;
  height: 0.92rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  transform: translateX(calc(-50% + var(--timeline-cluster-offset)));
  cursor: pointer;
}

.student-interactivity-timeline-marker::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 50%;
  z-index: -1;
  width: 1px;
  height: calc(var(--timeline-lane-offset) + 0.3rem);
  background: rgba(100, 116, 139, 0.32);
  transform: translateX(-50%);
}

.student-interactivity-timeline-marker-dot {
  width: 0.62rem;
  height: 0.62rem;
  border: 0.1rem solid #fff;
  border-radius: 50%;
  background: var(--timeline-accent);
  box-shadow: 0 0 0 0.12rem rgba(100, 116, 139, 0.22), 0 0.2rem 0.55rem rgba(15, 23, 42, 0.18);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.student-interactivity-timeline-marker:hover .student-interactivity-timeline-marker-dot,
.student-interactivity-timeline-marker:focus-visible .student-interactivity-timeline-marker-dot,
.student-interactivity-timeline-event:focus-within .student-interactivity-timeline-marker-dot {
  transform: scale(1.35);
  box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--timeline-accent) 22%, transparent), 0 0.42rem 0.9rem rgba(15, 23, 42, 0.24);
}

.student-interactivity-timeline-marker:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--timeline-accent) 42%, #fff);
  outline-offset: 0.16rem;
}

.student-interactivity-timeline-popup {
  position: absolute;
  top: calc(3.85rem + var(--timeline-lane-offset));
  left: clamp(0.75rem, var(--timeline-position), calc(100% - 0.75rem));
  z-index: 10;
  box-sizing: border-box;
  display: none;
  width: min(22rem, calc(100% - 1.5rem));
  min-width: min(14rem, calc(100% - 1.5rem));
  padding: 0.72rem;
  border: 1px solid rgba(33, 37, 41, 0.14);
  border-top: 0.22rem solid var(--timeline-accent);
  border-radius: 0.5rem;
  background: #fff;
  box-shadow: 0 0.7rem 1.75rem rgba(15, 23, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateX(calc(-50% + var(--timeline-cluster-offset))) translateY(-0.2rem);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.student-interactivity-timeline-event.is-start .student-interactivity-timeline-popup {
  transform: translateX(var(--timeline-cluster-offset)) translateY(-0.2rem);
}

.student-interactivity-timeline-event.is-end .student-interactivity-timeline-popup {
  transform: translateX(calc(-100% + var(--timeline-cluster-offset))) translateY(-0.2rem);
}

.student-interactivity-timeline-event:hover,
.student-interactivity-timeline-event:focus-within {
  z-index: 20;
}

.student-interactivity-timeline-event:hover .student-interactivity-timeline-popup,
.student-interactivity-timeline-event:focus-within .student-interactivity-timeline-popup {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

.student-interactivity-timeline-event:hover.is-center .student-interactivity-timeline-popup,
.student-interactivity-timeline-event:focus-within.is-center .student-interactivity-timeline-popup {
  transform: translateX(calc(-50% + var(--timeline-cluster-offset))) translateY(0);
}

.student-interactivity-timeline-event:hover.is-start .student-interactivity-timeline-popup,
.student-interactivity-timeline-event:focus-within.is-start .student-interactivity-timeline-popup {
  transform: translateX(var(--timeline-cluster-offset)) translateY(0);
}

.student-interactivity-timeline-event:hover.is-end .student-interactivity-timeline-popup,
.student-interactivity-timeline-event:focus-within.is-end .student-interactivity-timeline-popup {
  transform: translateX(calc(-100% + var(--timeline-cluster-offset))) translateY(0);
}

.student-interactivity-timeline-date {
  min-width: 0;
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.25;
}

.student-interactivity-timeline-title {
  min-width: 0;
  overflow-wrap: anywhere;
}

.student-interactivity-timeline-score {
  margin-top: 0.45rem;
  color: var(--timeline-accent);
  font-size: 1.28rem;
  font-weight: 750;
  line-height: 1.1;
}

.grade-report-draft-preview {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.9rem;
  line-height: 1.5;
  background: rgba(33, 37, 41, 0.03);
  border: 1px solid rgba(33, 37, 41, 0.08);
  border-radius: 0.75rem;
  padding: 0.9rem;
}

@media (max-width: 1399.98px) {
  .grade-review-preview-column {
    max-height: none;
  }

  .grade-report-sticky {
    position: static;
  }
}

@media (min-width: 768px) {
  .grade-report-merged-review-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--grade-review-space-3);
    align-items: start;
  }

  .grade-report-merged-review-shell.has-active-preview {
    grid-template-columns: minmax(0, 1fr) minmax(20rem, 34rem);
  }

  .grade-report-merged-review-preview {
    display: none;
    min-height: 0;
  }

  .grade-report-merged-review-preview.is-open {
    display: block;
  }

  .grade-report-merged-review-preview-panel {
    position: sticky;
    top: var(--grade-review-space-2);
    max-height: calc(100vh - 4.5rem);
  }

  .grade-report-merged-review-preview-body {
    max-height: calc(100vh - 8rem);
  }

  .grade-report-merged-review-backdrop {
    display: none;
  }
}

.creator-workspace {
  display: flex;
  flex-direction: column;
  gap: var(--grade-review-space-2);
  min-height: 0;
  flex: 1 1 auto;
}

.creator-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--grade-review-space-3);
  align-items: center;
  padding: var(--grade-review-space-3);
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 0.5rem;
  background: #fff;
}

.creator-control-field,
.creator-action-panel {
  min-width: 0;
}

.creator-target-select {
  min-height: 7.2rem;
}

.creator-action-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: space-between;
}

.creator-action-buttons {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  justify-content: flex-end;
}

.creator-mode-toggle-row {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
}

.creator-mode-toggle {
  flex: 0 0 auto;
  min-width: 7.4rem;
  white-space: nowrap;
}

.creator-activity-log-button {
  flex: 0 0 auto;
  white-space: nowrap;
}

.creator-main {
  display: grid;
  grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr) minmax(20rem, 28rem);
  gap: var(--grade-review-space-2);
  flex: 1 1 auto;
  min-height: 24rem;
  overflow: hidden;
}

.creator-workspace-footer {
  flex: 0 0 auto;
  padding: 0.1rem 0.25rem 0;
  color: #6c757d;
  font-size: 0.68rem;
  line-height: 1.25;
  text-align: center;
}

.creator-main[data-ai-chat-layout="popout"] {
  grid-template-columns: minmax(15rem, 22rem) minmax(0, 1fr);
}

.creator-explorer,
.creator-editor,
.creator-ai-chat {
  min-width: 0;
  min-height: 0;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 0.5rem;
  background: #fff;
}

.creator-explorer,
.creator-editor,
.creator-ai-chat {
  display: flex;
  flex-direction: column;
  height: 80vh;
  height: 80dvh;
  max-height: 80vh;
  max-height: 80dvh;
  overflow: hidden;
}

.creator-pane-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 2.5rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(33, 37, 41, 0.1);
}

.creator-ai-header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
}

.creator-ai-config-toggle {
  white-space: nowrap;
}

.creator-ai-collapse-btn {
  white-space: nowrap;
}

.creator-file-list {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.35rem;
}

.creator-tree-folder {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.3rem;
  padding-top: 0.3rem;
  padding-right: 0.45rem;
  padding-bottom: 0.18rem;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  background: transparent;
  color: #6c757d;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
  text-transform: uppercase;
}

.creator-tree-folder:hover {
  background: rgba(108, 117, 125, 0.08);
}

.creator-tree-folder-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-items: center;
  gap: 0.3rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-transform: inherit;
}

.creator-tree-folder-main:focus-visible,
.creator-folder-create-btn:focus-visible,
.creator-folder-upload-btn:focus-visible,
.creator-section-push-btn:focus-visible,
.creator-file-main:focus-visible,
.creator-file-action-btn:focus-visible {
  outline: 0.12rem solid rgba(13, 110, 253, 0.5);
  outline-offset: 0.08rem;
}

.creator-tree-folder-toggle {
  flex: 0 0 1rem;
  color: #495057;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  text-align: center;
}

.creator-tree-folder-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-section-push-btn {
  flex: 0 0 auto;
  margin-left: auto;
  min-width: 3.25rem;
  text-transform: none;
}

.creator-folder-create-btn,
.creator-folder-upload-btn {
  display: inline-flex;
  flex: 0 0 1.45rem;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0.32rem;
  background: transparent;
  color: #0b5ed7;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.72;
}

.creator-folder-upload-btn svg {
  width: 0.9rem;
  height: 0.9rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.creator-folder-upload-btn {
  color: #495057;
  font-size: 0;
}

.creator-folder-create-btn:not(:disabled):hover,
.creator-folder-upload-btn:not(:disabled):hover {
  border-color: rgba(13, 110, 253, 0.18);
  background: rgba(13, 110, 253, 0.08);
  opacity: 1;
}

.creator-folder-create-btn:disabled,
.creator-folder-upload-btn:disabled {
  color: #6c757d;
  cursor: not-allowed;
  opacity: 0.32;
}

.creator-file-row {
  display: flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  padding-top: 0;
  padding-right: 0;
  padding-bottom: 0;
  border: 1px solid transparent;
  border-radius: 0.35rem;
  background: transparent;
  color: #212529;
  font-size: 0.84rem;
  line-height: 1.25;
  text-align: left;
}

.creator-file-row:hover {
  background: rgba(13, 110, 253, 0.06);
}

.creator-file-row.is-active {
  border-color: rgba(13, 110, 253, 0.28);
  background: rgba(13, 110, 253, 0.1);
}

.creator-explorer[data-mode="wysiwyg"] .creator-tree-folder {
  color: #495057;
  font-size: 0.82rem;
  text-transform: none;
}

.creator-explorer[data-mode="wysiwyg"] .creator-file-row {
  font-size: 0.9rem;
}

.creator-explorer[data-mode="wysiwyg"] .creator-file-main {
  padding-top: 0.42rem;
  padding-bottom: 0.42rem;
}

.creator-file-row.is-deleted {
  border-color: rgba(255, 193, 7, 0.36);
  background: rgba(255, 193, 7, 0.08);
}

.creator-file-row.is-dirty .creator-file-name {
  font-weight: 700;
}

.creator-file-row.is-deleted .creator-file-name {
  color: #6c757d;
  text-decoration: line-through;
}

.creator-file-row.is-ai-edited .creator-file-name {
  text-decoration: underline;
  text-decoration-color: rgba(13, 110, 253, 0.35);
  text-underline-offset: 0.16rem;
}

.creator-file-main {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  align-self: stretch;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.32rem 0.45rem 0.32rem 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.creator-file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-file-home-marker {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border: 1px solid rgba(255, 193, 7, 0.42);
  border-radius: 0.35rem;
  background: rgba(255, 243, 205, 0.78);
  font-size: 0.96rem;
  line-height: 1;
}

.creator-file-badges {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.28rem;
}

.creator-file-ai {
  padding: 0.02rem 0.28rem;
  border: 1px solid rgba(13, 110, 253, 0.28);
  border-radius: 0.25rem;
  background: rgba(13, 110, 253, 0.08);
  color: #0b5ed7;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.25;
}

.creator-file-dirty {
  flex: 0 0 auto;
  color: #146c43;
  font-size: 0.72rem;
  font-weight: 700;
}

.creator-file-row.is-deleted .creator-file-dirty {
  color: #8a6d00;
}

.creator-file-row.is-linked-content .creator-file-main {
  padding-right: 0.45rem;
}

.creator-file-action-btn {
  flex: 0 0 auto;
  margin-right: 0.18rem;
  min-width: 3.8rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(0.12rem);
  transition: opacity 0.12s ease, transform 0.12s ease;
}

.creator-file-row:hover .creator-file-action-btn,
.creator-file-row:focus-within .creator-file-action-btn,
.creator-file-row.is-deleted .creator-file-action-btn {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.creator-source-editor {
  flex: 1 1 auto;
  min-height: 18rem;
  border: 0;
  border-radius: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  resize: none;
}

.creator-source-editor:focus {
  box-shadow: inset 0 0 0 0.12rem rgba(13, 110, 253, 0.18);
}

.creator-editor[data-mode="wysiwyg"] .creator-pane-header {
  background: #f8f9fa;
}

.creator-linked-content-editor {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  flex-direction: column;
  background: #fff;
}

.creator-linked-content-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: start;
  padding: 0.65rem;
  border-bottom: 1px solid rgba(33, 37, 41, 0.1);
  background: #f8f9fa;
}

.creator-linked-content-summary {
  min-width: 0;
}

.creator-linked-content-title {
  overflow: hidden;
  color: #212529;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-linked-content-paths {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  margin-top: 0.25rem;
  color: #6c757d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.72rem;
  line-height: 1.3;
}

.creator-linked-content-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
}

.creator-linked-metadata-editor {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.6rem;
  min-width: 0;
}

.creator-linked-primary-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 0.6rem;
  align-items: end;
  min-width: 0;
}

.creator-linked-option-field,
.creator-linked-option-toggle {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  margin: 0;
}

.creator-linked-option-field > span,
.creator-linked-option-toggle > span,
.creator-emoji-toggle-label {
  color: #495057;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.creator-emoji-toggle-line {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
  min-height: 2.1rem;
}

.creator-emoji-toggle-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(108, 117, 125, 0.3);
  border-radius: 0.35rem;
  background: #fff;
  color: #495057;
  font-size: 1rem;
  line-height: 1;
}

.creator-emoji-toggle-button.is-active {
  border-color: rgba(25, 135, 84, 0.42);
  background: rgba(209, 231, 221, 0.74);
  color: #146c43;
}

.creator-emoji-toggle-button:not(:disabled):hover {
  border-color: rgba(13, 110, 253, 0.36);
  background: rgba(13, 110, 253, 0.08);
}

.creator-emoji-toggle-button:focus-visible {
  outline: 0.12rem solid rgba(13, 110, 253, 0.5);
  outline-offset: 0.08rem;
}

.creator-emoji-toggle-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.creator-emoji-toggle-state {
  min-width: 0;
  overflow: hidden;
  color: #495057;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-linked-extra-options {
  display: grid;
  gap: 0.5rem;
  min-width: 0;
  max-height: min(16rem, 32vh);
  overflow: auto;
  padding-right: 0.15rem;
}

.creator-linked-extra-options .creator-json-group {
  margin-bottom: 0;
}

.creator-linked-primary-options .form-control,
.creator-linked-primary-options .form-select,
.creator-linked-metadata-editor .form-control,
.creator-linked-metadata-editor .form-select {
  min-width: 0;
  font-size: 0.86rem;
}

.creator-linked-markdown-editor {
  min-height: 0;
}

.creator-linked-document-frame {
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
  border: 0;
  background: #fff;
}

.creator-visual-toolbar {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid rgba(33, 37, 41, 0.1);
  background: #fff;
}

.creator-visual-toolbar .btn {
  min-width: 2.35rem;
}

.creator-markdown-visual-editor {
  flex: 1 1 auto;
  min-height: 18rem;
  overflow: auto;
  padding: 0.9rem;
  background: #fff;
  color: #212529;
  font-size: 0.95rem;
  line-height: 1.55;
}

.creator-markdown-visual-editor:focus {
  outline: 0;
  box-shadow: inset 0 0 0 0.12rem rgba(13, 110, 253, 0.18);
}

.creator-markdown-visual-editor h1,
.creator-markdown-visual-editor h2,
.creator-markdown-visual-editor h3 {
  margin-top: 0.75rem;
  margin-bottom: 0.45rem;
}

.creator-markdown-visual-editor p,
.creator-markdown-visual-editor ul,
.creator-markdown-visual-editor ol {
  margin-bottom: 0.75rem;
}

.creator-json-editor {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0.75rem;
  background: #fff;
}

.creator-assignment-groups-editor,
.creator-pages-editor,
.creator-nav-tabs-editor,
.creator-quizzes-config-editor,
.creator-quiz-questions-editor,
.creator-config-editor {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.creator-assignment-groups-description,
.creator-pages-description,
.creator-quizzes-description {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  padding: 0.65rem;
  background: #f8f9fa;
  color: #343a40;
  font-size: 0.84rem;
  line-height: 1.35;
}

.creator-assignment-groups-description p,
.creator-pages-description p,
.creator-quizzes-description p {
  margin: 0;
  min-width: 0;
}

.creator-pages-defaults,
.creator-quizzes-defaults {
  display: grid;
  grid-template-columns: minmax(12rem, 18rem) minmax(12rem, 18rem);
  gap: 0.65rem;
  align-items: end;
}

.creator-quizzes-defaults {
  grid-template-columns: repeat(3, minmax(9rem, 14rem));
}

.creator-pages-default-field,
.creator-quizzes-default-field {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  min-width: 0;
}

.creator-pages-default-field span,
.creator-quizzes-default-field span {
  color: #495057;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.creator-assignment-groups-table-wrap,
.creator-pages-table-wrap,
.creator-quizzes-table-wrap {
  min-width: 0;
  overflow: auto;
}

.creator-assignment-groups-table,
.creator-pages-table,
.creator-quizzes-table {
  width: 100%;
  min-width: 34rem;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.creator-assignment-groups-table th,
.creator-assignment-groups-table td,
.creator-pages-table th,
.creator-pages-table td,
.creator-quizzes-table th,
.creator-quizzes-table td {
  padding: 0.42rem 0.5rem;
  border-bottom: 1px solid rgba(33, 37, 41, 0.1);
  vertical-align: middle;
}

.creator-assignment-groups-table th,
.creator-pages-table th,
.creator-quizzes-table th {
  color: #495057;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.creator-assignment-groups-table th:first-child,
.creator-assignment-groups-table td:first-child {
  width: 60%;
}

.creator-assignment-groups-table th:nth-child(2),
.creator-assignment-groups-table td:nth-child(2),
.creator-assignment-groups-table th:nth-child(3),
.creator-assignment-groups-table td:nth-child(3) {
  width: 20%;
}

.creator-pages-table {
  min-width: 42rem;
}

.creator-pages-table th:first-child,
.creator-pages-table td:first-child {
  width: 56%;
}

.creator-pages-table th:nth-child(2),
.creator-pages-table td:nth-child(2) {
  width: 30%;
}

.creator-pages-table th:nth-child(3),
.creator-pages-table td:nth-child(3) {
  width: 14%;
  text-align: center;
}

.creator-quizzes-table {
  min-width: 58rem;
}

.creator-quizzes-table th:first-child,
.creator-quizzes-table td:first-child {
  width: 30%;
}

.creator-quizzes-table th:nth-child(2),
.creator-quizzes-table td:nth-child(2) {
  width: 18%;
}

.creator-quizzes-table th:nth-child(3),
.creator-quizzes-table td:nth-child(3),
.creator-quizzes-table th:nth-child(4),
.creator-quizzes-table td:nth-child(4) {
  width: 9%;
}

.creator-quizzes-table th:nth-child(5),
.creator-quizzes-table td:nth-child(5) {
  width: 16%;
}

.creator-quizzes-table th:nth-child(6),
.creator-quizzes-table td:nth-child(6) {
  width: 18%;
}

.creator-quiz-title-cell,
.creator-quiz-compact-fields {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.creator-quiz-title-cell span {
  overflow: hidden;
  color: #6c757d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.72rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-pages-toggle-cell {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
}

.creator-quizzes-toggle-cell {
  display: inline-flex;
  width: 100%;
  min-width: 0;
  align-items: center;
  gap: 0.45rem;
}

.creator-pages-home-toggle-cell {
  justify-content: center;
}

.creator-assignment-groups-table .form-control,
.creator-pages-table .form-control,
.creator-quizzes-table .form-control,
.creator-pages-table .form-select,
.creator-quizzes-table .form-select,
.creator-pages-defaults .form-control,
.creator-pages-defaults .form-select,
.creator-quizzes-defaults .form-control,
.creator-quizzes-defaults .form-select {
  min-width: 0;
  font-size: 0.86rem;
}

.creator-nav-tabs-list {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.creator-nav-tab-row {
  display: grid;
  grid-template-columns: 1.45rem 2.4rem minmax(10rem, 1fr) minmax(9rem, auto) auto;
  gap: 0.5rem;
  align-items: center;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 0.45rem;
  background: #fff;
}

.creator-nav-tab-row[draggable="true"] {
  cursor: grab;
}

.creator-nav-tab-row.is-dragging {
  border-color: rgba(13, 110, 253, 0.42);
  background: rgba(13, 110, 253, 0.07);
  opacity: 0.78;
}

.creator-nav-tab-grip {
  color: #6c757d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.88rem;
  font-weight: 800;
  text-align: center;
}

.creator-nav-tab-position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  border-radius: 0.35rem;
  background: #f1f3f5;
  color: #495057;
  font-size: 0.82rem;
  font-weight: 800;
}

.creator-nav-tab-summary {
  min-width: 0;
}

.creator-nav-tab-label {
  overflow: hidden;
  color: #212529;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.creator-nav-tab-meta,
.creator-nav-tab-state {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  min-width: 0;
}

.creator-nav-tab-meta {
  margin-top: 0.16rem;
  color: #6c757d;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.72rem;
}

.creator-nav-tab-state {
  justify-content: flex-end;
}

.creator-nav-tab-pill {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 1.45rem;
  padding: 0.12rem 0.4rem;
  border: 1px solid rgba(108, 117, 125, 0.22);
  border-radius: 999px;
  background: #f8f9fa;
  color: #495057;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  text-transform: capitalize;
}

.creator-nav-tab-pill.is-visible {
  border-color: rgba(25, 135, 84, 0.3);
  background: rgba(209, 231, 221, 0.72);
  color: #146c43;
}

.creator-nav-tab-pill.is-hidden {
  border-color: rgba(108, 117, 125, 0.24);
  background: #e9ecef;
  color: #495057;
}

.creator-nav-tab-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 0.25rem;
  justify-content: flex-end;
}

.creator-nav-tab-move {
  width: 2rem;
  height: 2rem;
  padding: 0;
  line-height: 1;
}

.creator-quiz-questions-editor {
  background: #f6f7f9;
}

.creator-quiz-question-card {
  display: grid;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.7rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 0.45rem;
  background: #fff;
}

.creator-quiz-question-head {
  display: grid;
  grid-template-columns: 2.4rem minmax(12rem, 1fr) minmax(10rem, 14rem) minmax(5.5rem, 7rem);
  gap: 0.55rem;
  align-items: end;
  min-width: 0;
}

.creator-quiz-question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.35rem;
  background: #f1f3f5;
  color: #495057;
  font-size: 0.82rem;
  font-weight: 800;
}

.creator-quiz-question-name,
.creator-quiz-question-type,
.creator-quiz-question-points,
.creator-quiz-question-text,
.creator-quiz-answer-text,
.creator-quiz-answer-weight,
.creator-quiz-answer-feedback {
  display: grid;
  gap: 0.24rem;
  min-width: 0;
  margin: 0;
}

.creator-quiz-question-name > span,
.creator-quiz-question-type > span,
.creator-quiz-question-points > span,
.creator-quiz-question-text > span,
.creator-quiz-answer-text > span,
.creator-quiz-answer-weight > span,
.creator-quiz-answer-feedback > span,
.creator-quiz-answers-title {
  color: #495057;
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.creator-quiz-question-card .form-control,
.creator-quiz-question-card .form-select {
  min-width: 0;
  font-size: 0.86rem;
}

.creator-quiz-question-text textarea,
.creator-quiz-answer-text textarea,
.creator-quiz-answer-feedback textarea {
  resize: vertical;
}

.creator-quiz-answers {
  display: grid;
  gap: 0.45rem;
  min-width: 0;
}

.creator-quiz-answer-row {
  display: grid;
  grid-template-columns: minmax(5rem, 6rem) minmax(12rem, 1fr) minmax(5rem, 6rem);
  gap: 0.5rem;
  align-items: start;
  min-width: 0;
  padding: 0.5rem;
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 0.35rem;
  background: #fbfcfd;
}

.creator-quiz-answer-correct {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2rem;
  margin: 1.35rem 0 0;
  color: #495057;
  font-size: 0.78rem;
  font-weight: 700;
}

.creator-quiz-answer-correct .form-check-input {
  flex: 0 0 auto;
  margin: 0;
}

.creator-quiz-answer-feedback {
  grid-column: 2 / -1;
}

.creator-config-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  padding: 0.65rem;
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 0.45rem;
  background: #fbfcfd;
}

.creator-config-kicker {
  color: #6c757d;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.creator-config-title {
  color: #212529;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
}

.creator-config-count {
  display: inline-flex;
  align-items: center;
  min-height: 1.6rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid rgba(13, 110, 253, 0.18);
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.07);
  color: #0b5ed7;
  font-size: 0.76rem;
  font-weight: 700;
}

.creator-json-group {
  min-width: 0;
  margin: 0 0 0.7rem;
  padding: 0.65rem;
  border: 1px solid rgba(33, 37, 41, 0.12);
  border-radius: 0.45rem;
  background: #fbfcfd;
}

.creator-json-group .creator-json-group {
  background: #fff;
}

.creator-json-group legend {
  float: none;
  width: auto;
  margin: 0 0 0.45rem;
  padding: 0 0.2rem;
  color: #343a40;
  font-size: 0.82rem;
  font-weight: 700;
}

.creator-json-fields,
.creator-json-list {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.creator-json-field {
  display: grid;
  grid-template-columns: minmax(7rem, 32%) minmax(0, 1fr);
  gap: 0.6rem;
  align-items: center;
  min-width: 0;
  margin: 0;
  color: #343a40;
  font-size: 0.82rem;
  font-weight: 700;
}

.creator-json-field > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.creator-json-field .form-control,
.creator-json-field textarea {
  min-width: 0;
  font-weight: 400;
}

.creator-json-field-multiline {
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 0.24rem;
}

.creator-json-field-boolean {
  min-height: 2rem;
  align-items: center;
}

.creator-json-field-boolean .form-check {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.55rem;
  padding-left: 0;
}

.creator-json-field-boolean .form-check-input {
  flex: 0 0 auto;
  margin-left: 0;
}

.creator-image-preview {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: 0.75rem;
  background:
    linear-gradient(45deg, rgba(33, 37, 41, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(33, 37, 41, 0.05) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(33, 37, 41, 0.05) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(33, 37, 41, 0.05) 75%);
  background-color: #fff;
  background-position: 0 0, 0 0.5rem, 0.5rem -0.5rem, -0.5rem 0;
  background-size: 1rem 1rem;
}

.creator-image-preview img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.creator-pdf-preview,
.creator-document-preview-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  min-height: 0;
  border: 0;
  background: #f8f9fa;
}

.creator-document-preview-status {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(33, 37, 41, 0.1);
  background: #fff;
}

.creator-file-metadata {
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  overflow: auto;
  padding: 0.75rem;
  background: #fff;
  color: #212529;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.84rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}

.creator-editor-note {
  padding: 0.45rem 0.65rem;
  border-top: 1px solid rgba(33, 37, 41, 0.1);
}

.creator-ai-config {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-bottom: 1px solid rgba(33, 37, 41, 0.1);
}

.creator-ai-config .form-label {
  margin-bottom: 0.18rem;
}

.creator-ai-config-row {
  display: flex;
  flex-wrap: wrap;
  min-width: 0;
  align-items: end;
  gap: 0.45rem;
}

.creator-ai-layout-row {
  align-items: center;
}

.creator-ai-layout-row .btn-group {
  flex-wrap: nowrap;
}

.creator-ai-tool-limit-field {
  flex: 0 0 7rem;
}

.creator-ai-messages {
  display: grid;
  flex: 1 1 auto;
  align-content: start;
  gap: 0.45rem;
  min-height: 0;
  overflow: auto;
  padding: 0.55rem 0.65rem;
}

.creator-ai-message {
  display: grid;
  gap: 0.16rem;
  max-width: 100%;
  padding: 0.45rem 0.5rem;
  border: 1px solid rgba(33, 37, 41, 0.1);
  border-radius: 0.45rem;
  background: #fff;
}

.creator-ai-message.is-user {
  border-color: rgba(13, 110, 253, 0.18);
  background: rgba(13, 110, 253, 0.06);
}

.creator-ai-message.is-assistant {
  border-color: rgba(25, 135, 84, 0.18);
  background: rgba(25, 135, 84, 0.06);
}

.creator-ai-message-role {
  color: #6c757d;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.creator-ai-message-content {
  word-break: break-word;
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  line-height: 1.42;
}

.creator-ai-message-content h1,
.creator-ai-message-content h2,
.creator-ai-message-content h3,
.creator-ai-message-content h4,
.creator-ai-message-content h5,
.creator-ai-message-content h6 {
  margin: 0 0 0.35rem;
  color: #212529;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.25;
}

.creator-ai-message-content h1,
.creator-ai-message-content h2 {
  padding-bottom: 0.2rem;
  border-bottom: 1px solid rgba(33, 37, 41, 0.12);
}

.creator-ai-message-content > :first-child {
  margin-top: 0;
}

.creator-ai-message-content > :last-child {
  margin-bottom: 0;
}

.creator-ai-message-content p,
.creator-ai-message-content ul,
.creator-ai-message-content ol,
.creator-ai-message-content blockquote,
.creator-ai-message-content pre,
.creator-ai-message-content table {
  margin: 0 0 0.45rem;
}

.creator-ai-message-content ul,
.creator-ai-message-content ol {
  padding-left: 1.15rem;
}

.creator-ai-message-content li + li {
  margin-top: 0.16rem;
}

.creator-ai-message-content a {
  color: #0d6efd;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.creator-ai-message-content blockquote {
  padding: 0.28rem 0 0.28rem 0.55rem;
  border-left: 3px solid rgba(25, 135, 84, 0.36);
  color: #495057;
  background: rgba(255, 255, 255, 0.55);
}

.creator-ai-message-content code {
  padding: 0.08rem 0.2rem;
  border-radius: 0.25rem;
  background: rgba(33, 37, 41, 0.08);
  font-size: 0.82em;
  color: #212529;
  white-space: break-spaces;
}

.creator-ai-message-content pre {
  overflow: auto;
  padding: 0.45rem 0.55rem;
  border-radius: 0.35rem;
  background: rgba(33, 37, 41, 0.08);
  white-space: pre;
}

.creator-ai-message-content pre code {
  padding: 0;
  background: transparent;
  white-space: pre;
}

.creator-ai-message-content table {
  width: 100%;
  border-collapse: collapse;
}

.creator-ai-message-content th,
.creator-ai-message-content td {
  padding: 0.24rem 0.32rem;
  border: 1px solid rgba(33, 37, 41, 0.16);
  vertical-align: top;
}

.creator-ai-message-content th {
  background: rgba(33, 37, 41, 0.06);
  font-weight: 800;
}

.creator-ai-message-content hr {
  margin: 0.55rem 0;
  border: 0;
  border-top: 1px solid rgba(33, 37, 41, 0.14);
}

.creator-ai-error {
  margin: 0 0.65rem 0.5rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(220, 53, 69, 0.2);
  border-radius: 0.45rem;
  background: rgba(220, 53, 69, 0.08);
  color: #842029;
  font-size: 0.82rem;
}

.creator-ai-compose {
  display: grid;
  gap: 0.45rem;
  padding: 0.55rem 0.65rem;
  border-top: 1px solid rgba(33, 37, 41, 0.1);
}

.creator-ai-input {
  min-height: 4.8rem;
  resize: vertical;
}

.creator-ai-chat.is-popout {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1085;
  width: min(28rem, calc(100vw - 2rem));
  height: min(42rem, calc(100dvh - 2rem));
  max-height: calc(100dvh - 2rem);
  box-shadow: 0 1rem 2.5rem rgba(33, 37, 41, 0.22);
}

.creator-ai-chat-ball {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1086;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.4rem;
  height: 3.4rem;
  padding: 0;
  border: 1px solid rgba(13, 110, 253, 0.45);
  border-radius: 50%;
  background: #0d6efd;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 0.65rem 1.6rem rgba(13, 110, 253, 0.28);
}

.creator-ai-chat-ball:hover {
  background: #0b5ed7;
}

.creator-ai-chat-ball:focus-visible {
  outline: 0.16rem solid rgba(13, 110, 253, 0.36);
  outline-offset: 0.14rem;
}

.creator-log-lines {
  min-height: 0;
  overflow: auto;
  padding: 0.45rem 0.65rem;
}

.creator-log-modal-lines {
  max-height: min(34rem, calc(100dvh - 14rem));
}

.creator-log-line {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: 0.5rem;
  padding: 0.18rem 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, Liberation Mono, Courier New, monospace;
  font-size: 0.78rem;
}

.creator-log-line > span:first-child {
  color: #6c757d;
}

.creator-empty {
  padding: 0.65rem;
  color: #6c757d;
  font-size: 0.88rem;
}

@media (max-width: 1199.98px) {
  .grade-review-shell {
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
  }

  .grade-review-main {
    overflow: visible;
  }

  .grade-review-actions .btn {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .grade-review-actions .grade-review-status {
    flex: 1 1 100%;
  }

  .creator-controls {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-action-panel {
    grid-column: auto;
  }

  .creator-main {
    grid-template-columns: minmax(14rem, 22rem) minmax(0, 1fr);
  }

  .creator-ai-chat {
    grid-column: 1 / -1;
    min-height: 18rem;
  }
}

@media (max-width: 767.98px) {
  .grade-review-shell {
    --grade-review-space-2: 0.45rem;
    --grade-review-space-3: 0.6rem;
    --bs-gutter-x: 0.5rem;
  }

  .course-controls-report-issues {
    flex: 1 1 100%;
  }

  .course-controls-report-issues-panel {
    position: static;
    width: 100%;
    max-height: none;
    margin-top: 0.35rem;
  }

  .grade-report-merged-review-preview {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1045;
    padding: 0;
  }

  .grade-report-merged-review-preview.is-open {
    display: flex;
    align-items: stretch;
  }

  .grade-report-merged-review-preview-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .grade-report-merged-review-preview-body {
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
  }

  .grade-review-table-wrap .grade-review-merged-table .grade-review-sticky-student-column {
    width: 25vw;
    min-width: 25vw;
    max-width: 25vw;
  }

  .grade-review-table-wrap .grade-review-merged-table .grade-review-sticky-student-column .btn,
  .grade-review-table-wrap .grade-review-merged-table .grade-review-sticky-student-column .font-monospace {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .grade-review-table-wrap table {
    min-width: 32rem;
    font-size: 0.8rem;
  }

  .grade-report-grade-table-wrap table {
    min-width: 30rem;
    font-size: 0.8rem;
  }

  .student-interactivity-timeline-viewport {
    padding: 0.65rem 0.65rem 0.85rem;
  }

  .student-interactivity-timeline-track {
    min-width: 0;
    min-height: calc(6.9rem + (var(--timeline-lane-count) * 0.72rem));
    padding-top: 0.55rem;
  }

  .student-interactivity-timeline-axis {
    top: 2.45rem;
  }

  .student-interactivity-timeline-marker {
    top: calc(1.92rem + var(--timeline-lane-offset));
  }

  .student-interactivity-timeline-boundary {
    top: 0.15rem;
  }

  .student-interactivity-timeline-popup {
    top: calc(3.85rem + var(--timeline-lane-offset));
    width: min(19rem, calc(100% - 1.3rem));
    min-width: min(13rem, calc(100% - 1.3rem));
  }

  .grade-review-preview-frame,
  .grade-review-preview-text,
  .grade-review-preview-empty {
    min-height: clamp(15rem, 46vh, 30rem);
  }

  .creator-controls,
  .creator-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-main[data-ai-chat-layout="popout"] {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-action-buttons {
    flex: 1 1 100%;
    width: 100%;
  }

  .creator-mode-toggle-row {
    flex: 1 1 100%;
  }

  .creator-assignment-groups-description,
  .creator-pages-description,
  .creator-quizzes-description,
  .creator-pages-defaults,
  .creator-quizzes-defaults,
  .creator-quiz-question-head,
  .creator-quiz-answer-row,
  .creator-linked-content-head {
    grid-template-columns: minmax(0, 1fr);
  }

  .creator-quiz-answer-correct {
    margin-top: 0;
  }

  .creator-quiz-answer-feedback {
    grid-column: auto;
  }

  .creator-nav-tab-row {
    grid-template-columns: 1.35rem 2.1rem minmax(0, 1fr) auto;
  }

  .creator-nav-tab-state {
    grid-column: 3 / -1;
    justify-content: flex-start;
  }

  .creator-linked-content-actions {
    justify-content: flex-start;
  }

  .creator-main {
    overflow: visible;
  }

  .creator-explorer {
    min-height: 16rem;
  }
}

@media (max-width: 575.98px) {
  .grade-review-actions .btn {
    flex: 1 1 100%;
  }

  .grade-review-table-wrap table {
    min-width: 28rem;
    font-size: 0.78rem;
  }

  .creator-assignment-groups-table {
    min-width: 28rem;
  }

  .creator-pages-table {
    min-width: 36rem;
  }

  .creator-quizzes-table {
    min-width: 52rem;
  }

  .creator-quiz-question-card {
    padding: 0.6rem;
  }
}

@media print {
  body {
    background: #fff !important;
  }

  body * {
    visibility: hidden;
  }

  .grade-report-print-surface,
  .grade-report-print-surface * {
    visibility: visible;
  }

  .grade-report-print-surface {
    position: absolute;
    inset: 0;
    width: 100%;
  }

  .grade-report-no-print {
    display: none !important;
  }

  .grade-report-print-surface .card {
    box-shadow: none !important;
    break-inside: avoid;
  }
}
