/* Action buttons and the confirm dialog (Phase 6). Theme variables come from app.css. */
.action.action-ready { border-style: solid; border-color: transparent; background: var(--fill-gradient); color: var(--on-fill); cursor: pointer; font-weight: 600; }
.action-link-button { display: inline-block; text-decoration: none; border-style: solid; border-color: var(--accent); color: var(--accent); background: var(--surface); cursor: pointer; }

dialog.action-dialog {
  width: min(52rem, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); padding: 0;
  border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); color: var(--text); box-shadow: var(--elev-2);
}
dialog.action-dialog[open] { display: flex; flex-direction: column; }
dialog.action-dialog::backdrop { background: rgb(8 20 24 / 0.55); }
.ad-title { margin: 0; padding: 1rem 1.25rem 0.5rem; font-size: 1.15rem; }
.ad-title:focus-visible { outline: 2px solid var(--focus); outline-offset: -3px; }
.ad-body { flex: 1; min-height: 0; overflow: auto; padding: 0 1.25rem 1rem; }
.ad-footer { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 0.75rem 1.25rem; border-top: 1px solid var(--border); }
.ad-footer:empty { display: none; }
.ad-heading { margin: 1rem 0 0.4rem; font-size: 0.95rem; }
.ad-note { margin: 0.25rem 0; color: var(--muted); font-size: 0.85rem; }

.ad-checks { list-style: none; margin: 0; padding: 0; }
.ad-check { display: flex; flex-wrap: wrap; gap: 0.1rem 0.5rem; padding: 0.15rem 0; }
.ad-icon { flex: none; width: 1.2em; text-align: center; font-weight: 700; }
.ad-check-detail { flex-basis: 100%; margin-left: 1.7em; color: var(--muted); font-size: 0.85rem; }
.ad-fail { color: var(--sev-error); font-weight: 700; }
.ad-warn { color: var(--sev-warn); font-weight: 600; }
.ad-info { color: var(--sev-info); }
.ad-fail .ad-check-detail, .ad-warn .ad-check-detail { font-weight: 400; }

.ad-label { display: block; margin: 0.9rem 0 0.25rem; font-weight: 600; font-size: 0.9rem; }
.ad-notes, .ad-typed { box-sizing: border-box; width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 0.4rem 0.5rem; }
.ad-typed { max-width: 16rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.ad-notes:focus-visible, .ad-typed:focus-visible, .ad-check-row input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ad-check-row { display: block; margin: 0.6rem 0 0; }
.ad-hint { min-height: 1.4em; margin: 0.6rem 0 0; color: var(--muted); font-size: 0.85rem; }

.ad-steps { margin: 0; padding-left: 1.4rem; }
.ad-step { margin: 0 0 0.6rem; }
.ad-step-title { font-weight: 600; font-size: 0.85rem; }
.ad-step-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem; }
.ad-method { font-weight: 700; font-size: 0.8rem; }
.ad-url { overflow-wrap: anywhere; font-size: 0.82rem; }
.ad-unverified { padding: 0 0.4rem; border: 1px solid var(--sev-warn); border-radius: 4px; color: var(--sev-warn); font-size: 0.75rem; font-weight: 600; }
pre.ad-code { margin: 0.3rem 0 0; padding: 0.4rem 0.5rem; overflow: auto; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.78rem; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }

.ad-progress { width: 100%; height: 1rem; }
.ad-log { margin: 0.75rem 0 0; padding-left: 1.4rem; font-size: 0.9rem; }
.ad-success { font-weight: 700; color: var(--text); }
.ad-error { font-weight: 700; color: var(--sev-error); }
.ad-notice { padding: 0.4rem 0.6rem; border: 1px solid var(--sev-warn); border-radius: 6px; color: var(--sev-warn); font-weight: 600; }
.ad-details { margin-top: 0.8rem; }
.ad-details summary { cursor: pointer; }

.ad-confirm, .ad-close { padding: 0.4rem 1rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.ad-confirm { border-color: transparent; background: var(--fill-gradient); color: var(--on-fill); font-weight: 600; }
.ad-confirm:disabled { border-color: var(--border); background: var(--surface); color: var(--muted); cursor: not-allowed; font-weight: 400; }
.ad-confirm:focus-visible, .ad-close:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ad-check-label { flex: 1 1 0; min-width: 0; }
