/* 13. Agent / Destination / Sample */

.destination-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  min-width: 0;
}

.destination {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  display: block;
  cursor: pointer;
}

.destination.selected {
  border-color: var(--accent);
  background: var(--selected-bg);
}

.destination small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}

.dest-icon {
  font-size: 22px;
  margin-bottom: 7px;
}

.sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  min-width: 0;
}

.sample {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  overflow: hidden;
}

.sample-head {
  display: flex;
  justify-content: space-between;
  padding: 10px var(--space-3);
  border-bottom: 1px solid var(--line);
}

.sample-body {
  padding: var(--space-3);
  line-height: 2;
}

.destination:has(input:checked) {
  border-color: var(--blue);
}

.destination:has(input:disabled) {
  opacity: .5;
  cursor: not-allowed;
}

.destination input {
  margin-inline-start: 8px;
}

.sample-note {
  font-size: 12px;
  color: var(--gold);
  line-height: 1.9;
}

#fw-raw {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: left;
  font: inherit;
  line-height: 1.8;
  unicode-bidi: isolate;
}

#fw-preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  direction: ltr;
  text-align: left;
  font: inherit;
  line-height: 1.8;
  unicode-bidi: isolate;
}

#fw-edit-area textarea {
  width: 100%;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: var(--space-3);
}

#fw-edit-area {
  margin-top: 14px;
}

.fw-stage .sample-grid {
  min-width: 0;
}


