.bar nav button[aria-current='page'] {
  background: #e7f1e9;
  color: #244b36;
  font-weight: 650;
}

.row-main {
  flex: 1;
  min-width: 0;
}

.row-main button.link {
  text-align: left;
}

.preline {
  white-space: pre-line;
}

.progress {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: 6px;
  font-size: 12px;
}

.progress progress {
  width: min(220px, 100%);
  height: 8px;
  accent-color: #3d7354;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.status {
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  padding: 3px 8px;
  background: #eef1ec;
  color: #51635a;
  white-space: nowrap;
}

.status-findings,
.status-returned {
  background: #fbe9e4;
  color: #8f3a26;
}

.status-source_updated,
.status-awaiting_review.flag-unsure {
  background: #fdf1da;
  color: #7d5710;
}

.status-untranslated {
  background: #f1ecf7;
  color: #55427a;
}

.status-awaiting_review,
.status-in_ai {
  background: #e6eef8;
  color: #2c4f77;
}

.status-confirmed {
  background: #e2f1e5;
  color: #285b3a;
}

.ai-comment {
  margin: 6px 0;
  padding: 6px 10px;
  border-left: 3px solid #b9c8dc;
  background: #f5f8fc;
}

.status-select {
  max-width: 100%;
  margin-bottom: 10px;
}

.file-filter-toolbar .status-select {
  margin-bottom: 0;
}

.field.unsaved {
  box-shadow: inset 3px 0 #d99a2b;
  padding-left: 10px;
}

.unsaved-badge {
  font-size: 12px;
  font-weight: 650;
  color: #8a5a07;
  background: #fdf1da;
  border-radius: 5px;
  padding: 2px 7px;
}

.unsaved-count {
  align-self: center;
  font-size: 13px;
  color: #8a5a07;
}

.unsaved-count:empty {
  display: none;
}

.draft-conflict {
  border: 1px solid #e2bf7a;
  background: #fffaf0;
  border-radius: 9px;
  padding: 12px 14px;
  margin: 10px 0;
}

.draft-conflict pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 220px;
  overflow: auto;
  background: #fff;
  border: 1px solid #eadfc4;
  border-radius: 6px;
  padding: 8px;
}

.draft-conflict > button {
  margin-right: 8px;
}

.toast {
  position: fixed;
  z-index: 50;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: min(440px, calc(100vw - 16px));
  margin: 0;
  background: #3b2320;
  color: #fff;
  border-radius: 9px;
  padding: 10px 12px;
  box-shadow: 0 10px 30px #0004;
  font-size: 13px;
  white-space: pre-line;
}

.toast-floating {
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
}

.toast .toast-close {
  background: transparent;
  color: inherit;
  border: 0;
  padding: 0 2px;
}

h1 {
  overflow-wrap: anywhere;
}

select {
  font: inherit;
  max-width: 100%;
  color: inherit;
  background: #fff;
  border: 1px solid #d5ded5;
  border-radius: 7px;
  padding: 9px 10px;
}

.sessionbar button {
  margin: 0 8px 8px 0;
}

.field-header .unsaved-badge {
  white-space: nowrap;
}
