/* The Add a feed dialog (add-feed.js). Tokens only. It floats, so it may carry a shadow. */
.af-backdrop {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(27, 29, 31, 0.45);
  font-family: var(--font);
}
.af-backdrop[hidden] { display: none; }
.af-dialog {
  width: 100%; max-width: 560px; max-height: 85vh; overflow-y: auto;
  padding: var(--pad); background: var(--surface); color: var(--text);
  border-radius: var(--radius-card); box-shadow: 0 12px 40px rgba(27, 29, 31, 0.18); /* taste-skill-ignore: floats */
  font-size: var(--fs-small); line-height: 1.5;
}
.af-dialog * { box-sizing: border-box; }
.af-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.af-head h2 { margin: 0; font-size: var(--fs-section); font-weight: 600; }
.af-form { display: flex; flex-direction: column; gap: 12px; }
.af-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-weight: 500; }
.af-dialog input {
  width: 100%; height: var(--control-height); padding: 0 12px;
  font: inherit; font-size: var(--fs-body); color: var(--text);
  background: var(--surface); border: 1px solid var(--control); border-radius: var(--radius-control);
}
.af-dialog button {
  height: var(--control-height); padding: 0 16px; cursor: pointer;
  font: inherit; font-weight: 600; color: var(--text);
  background: var(--active); border: 0; border-radius: var(--radius-control);
}
.af-dialog button:hover { background: var(--control); }
.af-dialog button.af-primary { background: var(--primary); color: var(--surface); }
.af-dialog button.af-primary:hover { background: var(--text); }
.af-dialog button:disabled { opacity: 0.55; cursor: default; }
.af-dialog button.af-quiet { background: transparent; }
.af-dialog button.af-quiet:hover { background: var(--active); }
.af-dialog :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.af-results { margin-top: 16px; }
.af-status { margin: 0; color: var(--muted); }
.af-error { margin: 0; color: var(--negative); }
.af-candidates { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.af-candidate {
  display: flex; gap: 12px; align-items: flex-start; justify-content: space-between;
  padding: 12px 16px; background: var(--ground); border-radius: var(--radius-control);
}
.af-candidate-main { min-width: 0; }
.af-candidate-title { font-weight: 600; font-size: var(--fs-body); overflow-wrap: anywhere; }
.af-candidate-meta { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.af-candidate-latest { margin: 6px 0 0; padding-left: 16px; color: var(--muted); }
p.af-candidate-latest { padding-left: 0; }
@media (min-width: 560px) {
  .af-form { flex-direction: row; align-items: flex-end; flex-wrap: wrap; }
  .af-form label { flex: 1 1 240px; }
  .af-form label.af-narrow { flex: 0 1 160px; }
}
@media (prefers-reduced-motion: reduce) { .af-dialog * { transition: none !important; animation: none !important; } }
