[data-tone] { --section-color: #727986; --section-tint: #f4f5f7; }
[data-tone="workspace"] { --section-color: #58776b; --section-tint: #edf3ef; }
[data-tone="agent"] { --section-color: #a16a4c; --section-tint: #f7eee7; }
.config-surface .editor-section[data-tone] { border-left-color: var(--section-color); }
.config-surface .editor-section[data-tone] .section-toggle,
.prompt-block[data-tone] h3 { color: var(--section-color); }

.prompt-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 8rem);
  align-items: start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.prompt-source-row:last-child { margin-bottom: 0; }
.prompt-source-row p { margin: 0; }
.prompt-source-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-self: stretch;
  align-content: start;
  gap: 0.375rem;
  padding: 0.125rem 0 0.25rem 0.75rem;
  border-left: 0.0625rem solid var(--line);
}
.prompt-source-tag {
  appearance: none;
  min-width: 0;
  max-width: 100%;
  min-height: 1.625rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.5625rem;
  border: 0.0625rem solid #e6e7eb;
  border-radius: 999rem;
  background: #fff;
  box-shadow: 0 0.0625rem 0.125rem #1720330a, inset 0 0.0625rem 0 #fff;
  color: #454954;
  font: 500 0.625rem/1.4 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  text-align: left;
  overflow-wrap: anywhere;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}
.prompt-source-tag::before {
  content: '';
  flex: 0 0 0.4375rem;
  width: 0.4375rem;
  height: 0.4375rem;
  border-radius: 50%;
  background: var(--section-color);
  box-shadow: inset 0 0.0625rem 0 #ffffff40;
}
@media (hover: hover) {
  .prompt-source-tag:hover {
    border-color: var(--section-color);
    background: var(--section-tint);
  }
}
.prompt-source-tag:active { background: var(--section-tint); box-shadow: none; }
.prompt-source-tag:focus-visible {
  outline: 0.125rem solid var(--section-color);
  outline-offset: 0.125rem;
}
@media (prefers-reduced-motion: reduce) {
  .prompt-source-tag { transition: none; }
}
.field-row:focus-within { background: #e8effb; outline: 0.0625rem solid #a7c3e5; border-radius: 0.375rem; }
@media (max-width: 43.75rem) {
  .prompt-source-row { grid-template-columns: minmax(0, 1fr); gap: 0.25rem; }
  .prompt-source-tags {
    margin-top: 0.25rem;
    padding: 0.5rem 0 0;
    border-left: 0;
    border-top: 0.0625rem solid var(--line);
  }
}
