.distill-nav {
  color: #315f9f;
}

.distill-nav span {
  color: #2d73ff;
  font-weight: 800;
}

.distill-nav:hover {
  background: #eaf3ff;
}

.knowledge-action-row {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.knowledge-action-row button {
  min-height: 42px;
  border: 1px solid #2d73ff;
  border-radius: 10px;
  padding: 0 18px;
  background: #2d73ff;
  color: #fff;
}

.knowledge-action-row button:disabled {
  border-color: #d7dfeb;
  background: #d7dfeb;
  cursor: not-allowed;
}

.paste-material-panel {
  display: grid;
  gap: 10px;
}

.paste-material-panel.hidden {
  display: none;
}

.distill-preview {
  display: grid;
  gap: 12px;
  border-top: 1px solid #dce6f4;
  padding-top: 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.distill-preview-placeholder {
  min-height: 126px;
  display: grid;
  place-content: center;
  gap: 5px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f1f4f8;
  color: #718096;
  padding: 20px;
  text-align: center;
}

.distill-preview-placeholder p {
  margin: 0;
  font-size: 13px;
}

.distill-preview-head,
.distill-preview-group > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.distill-preview-head span,
.distill-preview-group > header span {
  color: #75849a;
  font-size: 13px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.distill-preview-group {
  border: 1px solid #d8e5f6;
  border-radius: 10px;
  background: #fff;
  padding: 13px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.distill-preview-group > header {
  margin-bottom: 10px;
}

.distill-preview-group > header b,
.distill-preview-group > header span {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.distill-preview-group > header > div {
  min-width: 0;
  flex: 1 1 auto;
}

.distill-preview-group > header em {
  color: #28705a;
  font-size: 12px;
  font-style: normal;
  flex: 0 0 auto;
  white-space: nowrap;
}

.distill-entry {
  border-top: 1px solid #edf1f7;
  margin-top: 10px;
  padding-top: 4px;
  min-width: 0;
}

.distill-entry summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  cursor: pointer;
  list-style: none;
  min-width: 0;
}

.distill-entry summary::-webkit-details-marker {
  display: none;
}

.distill-entry summary span {
  flex: 0 0 auto;
  color: #8090a5;
  font-size: 12px;
}

.distill-entry summary b {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.distill-entry-preview {
  margin: 0 0 10px;
  border: 1px solid #e1e7ef;
  border-radius: 9px;
  background: #f3f5f8;
  color: #34445a;
  padding: 12px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  max-height: 260px;
  overflow: auto;
  line-height: 1.65;
}

.distill-entry-tags {
  margin: 0 0 7px;
  color: #60758f;
  font-size: 12px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.distill-entry label {
  display: grid;
  gap: 6px;
  color: #52637a;
  font-size: 13px;
}

.distill-entry input,
.distill-entry textarea {
  width: 100%;
  border: 1px solid #e5ecf6;
  border-radius: 9px;
  padding: 10px 11px;
  outline: none;
  background: #fff;
  color: #24344b;
}

.distill-entry textarea {
  resize: vertical;
  line-height: 1.65;
}

.distill-entry input:focus,
.distill-entry textarea:focus {
  border-color: #b9d1ff;
  box-shadow: 0 0 0 3px rgba(45, 115, 255, .08);
}

.distill-empty {
  border-radius: 8px;
  background: #fff7ed;
  color: #9a5b16;
  padding: 10px 12px;
  line-height: 1.55;
}

@media (max-width: 700px) {
  .knowledge-action-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .knowledge-action-row button {
    padding: 0 8px;
  }

  .distill-preview-group > header {
    align-items: flex-start;
  }

  .distill-entry-preview {
    max-height: 220px;
  }
}
