
#editorFilesTable .editor-comment-field:focus {
  position: relative;
  z-index: 12;
  min-width: min(360px, 46vw);
  min-height: 76px;
  box-shadow: 0 14px 32px rgba(7, 27, 52, 0.16);
}

.compact-action-button {
  min-height: 26px !important;
  padding: 0 9px !important;
  border-radius: 7px !important;
  font-size: 10px !important;
  white-space: nowrap;
}

.attention-pulse {
  animation: boatAttentionPulse 1.4s ease;
}

@keyframes boatAttentionPulse {
  0%, 100% { box-shadow: none; }
  35% { box-shadow: 0 0 0 4px rgba(31, 100, 255, 0.16), 0 14px 30px rgba(31, 100, 255, 0.12); }
}

.procedure-aht-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  margin-left: 8px;
  padding: 2px 8px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 900;
  vertical-align: middle;
  white-space: nowrap;
}

.sop-document-toolbar,
.sop-search-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(190px, 260px) auto auto auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.sop-document-toolbar strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sop-document-toolbar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.sop-document-stage,
.sop-content {
  min-height: 0;
  overflow: auto;
  display: grid;
  justify-items: center;
  padding: 14px;
  border-radius: 12px;
  background: #dfe7f0;
  color: #1d2940;
  line-height: 1.55;
}

.sop-document-page {
  width: 794px;
  min-height: 1123px;
  padding: 72px 68px;
  border: 1px solid #cfd8e3;
  border-radius: 3px;
  background: #ffffff;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
}

.sop-content mark,
.sop-document-page mark {
  background: #fff3a3;
  padding: 1px 3px;
  border-radius: 4px;
}

.sop-content mark.active-match,
.sop-document-page mark.active-match {
  background: #38bdf8;
  color: #001b3d;
}

.copy-file-button,
.file-link-button {
  min-height: 21px;
  min-width: 22px;
  padding: 0;
  border-radius: 6px;
  background: #eef4ff;
  color: #1f64ff;
  box-shadow: none;
  font-size: 11px;
  font-weight: 900;
}

.copy-file-button {
  position: relative;
  margin-left: 4px;
  vertical-align: middle;
}

.copy-file-button::before,
.copy-file-button::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 9px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
}

.copy-file-button::before {
  left: 6px;
  top: 7px;
  background: #eef4ff;
}

.copy-file-button::after {
  left: 9px;
  top: 4px;
  background: #f8fbff;
}

.file-number-text {
  font-weight: 700;
  color: var(--ink);
}

.chat-panel {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
}

#chatEntityForm {
  grid-template-columns: 220px auto;
  align-items: end;
  gap: 10px;
}

#chatEntitySelect {
  width: 220px;
  max-width: 220px;
}

#chatEntityForm button {
  width: 112px;
  min-width: 112px;
  justify-self: start;
  padding-inline: 12px;
  white-space: nowrap;
}

.chat-stream {
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fafc;
}

.chat-stream.drag-active {
  outline: 2px dashed var(--primary);
  outline-offset: -6px;
  background: #eef6ff;
}

.chat-bubble {
  max-width: 78%;
  padding: 10px 12px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 27, 52, 0.04);
}
