.automatic-run-dialog { box-sizing: border-box; width: min(1000px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 24px; border: 1px solid var(--line); border-radius: 14px; color: var(--ink); background: var(--surface); overflow: auto; }
.automatic-run-dialog::backdrop { background: rgb(17 17 17 / 45%); }
.automatic-run-dialog > header { display: flex; gap: 18px; justify-content: space-between; align-items: start; }
.automatic-run-dialog h2 { font-size: 24px; margin: 0 0 6px; }
.automatic-run-dialog header p { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.automatic-run-note { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 90ch; margin: 20px 0; }
.automatic-run-layout { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 24px; }
.automatic-run-layout nav { display: grid; align-content: start; gap: 8px; max-height: 60vh; overflow: auto; padding: 4px; }
.automatic-run-layout nav button { display: grid; gap: 6px; text-align: left; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; }
.automatic-run-layout nav button[aria-current] { border-color: var(--purple); background: var(--purple-soft); }
.automatic-run-layout nav span { font-size: 12px; color: var(--muted); }
.automatic-run-layout h3 { font-size: 19px; margin: 0 0 18px; }
.automatic-run-layout h4 { margin: 20px 0 8px; }
.automatic-run-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; }
.automatic-run-facts dt { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.automatic-run-facts dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.automatic-run-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.6; }
.automatic-run-error { color: #922e2e; }
.automatic-run-identifiers { margin-top: 24px; font-size: 12px; color: var(--muted); }
.automatic-run-identifiers summary { cursor: pointer; }
.automatic-run-identifiers dd { margin: 6px 0 12px; overflow-wrap: anywhere; }
.automatic-run-dialog :focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; }
@media (max-width: 650px) {
  .automatic-run-dialog { padding: 16px; }
  .automatic-run-dialog > header { flex-wrap: wrap; }
  .automatic-run-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .automatic-run-layout nav { max-height: 180px; }
  .automatic-run-facts { gap: 14px; }
}
