
.editor-break-widget {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 45;
  display: grid;
  gap: 8px;
  justify-items: end;
}

.editor-break-widget > button {
  min-height: 34px;
  padding: 8px 13px;
  border-radius: 999px;
}

.editor-break-controls {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  display: grid;
  grid-template-columns: minmax(150px, 210px) auto auto;
  align-items: center;
  gap: 8px;
  width: min(460px, calc(100vw - 44px));
  padding: 10px;
  border: 1px solid #dbe6f5;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(7, 24, 46, 0.14);
}

.editor-assigned-stack {
  display: grid;
  grid-template-columns: minmax(520px, 0.58fr) minmax(420px, 0.42fr);
  gap: 12px;
  min-height: 0;
  height: calc(100vh - 205px);
}

.sop-viewer-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eef3f8;
}

.editor-files-wrap {
  min-height: 0;
  max-height: none;
}

.editor-lms-wrap {
  max-height: calc(100vh - 220px);
  overflow-y: auto;
}

.editor-lms-table {
  min-width: 720px;
}

.editor-lms-table th,
.editor-lms-table td {
  padding: 7px 8px !important;
}

.editor-lms-table td:nth-child(1) {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-lms-modal-test {
  display: grid;
  gap: 10px;
}

.editor-lms-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.editor-lms-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.editor-lms-header h4 {
  margin: 0;
  color: var(--ink);
}

.editor-lms-header span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 12px;
  font-weight: 900;
}

.editor-lms-meta {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.editor-lms-question {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 10px;
  border: 1px solid #dbe6f5;
  border-radius: 10px;
}

.editor-lms-question legend {
  padding: 0 4px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 900;
}

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

.editor-lms-review article {
  padding: 9px;
  border: 1px solid #dbe6f5;
  border-left: 4px solid #22c55e;
  border-radius: 10px;
  background: #f8fafc;
}

.editor-lms-review article.incorrect {
  border-left-color: #ef4444;
}

.editor-lms-review p {
  margin: 4px 0 0;
  color: #334155;
  font-size: 12px;
}

.editor-file-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.editor-file-panel-title {
  display: grid;
  gap: 2px;
  margin-bottom: 8px;
}

.editor-file-panel-title h3 {
  margin: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.editor-files-wrap .table-tools {
  grid-template-columns: minmax(170px, 1fr) minmax(140px, 180px);
  margin-bottom: 8px;
}

#editorFilesTable th,
#editorFilesTable td {
  padding: 6px 7px !important;
  vertical-align: top;
}

#editorFilesTable input {
  min-height: 30px;
  padding: 6px 8px;
}

#editorFilesTable .editor-comment-field {
  width: 100%;
  min-width: 130px;
  transition: min-width 0.16s ease, min-height 0.16s ease, box-shadow 0.16s ease;
}
