/* Confirm in view (static/confirm.js): one centered dialog inside the window for every destructive or confirming step.
   The theme's own colours: the page's black or white, its ink, red only for the destructive yes. No grey text. */
.cf-dlg { box-sizing: border-box; width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 0;
  overflow: auto; overscroll-behavior: contain; border: 1.5px solid var(--line-2); border-radius: var(--radius, 20px);
  background: var(--card); color: var(--text); box-shadow: 0 24px 64px rgba(5, 5, 6, .28); }
.cf-dlg.is-danger { border-color: var(--red-line); }
.cf-dlg::backdrop { background: rgba(5, 5, 6, .6); }
.cf-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 4px 24px; }
.cf-head h2 { flex: 1; margin: 0; padding-top: 6px; color: var(--text); font-size: 18px; font-weight: 650; line-height: 1.3; }
.cf-x { display: grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--text); cursor: pointer; }
.cf-x:hover { background: var(--hover); }
.cf-x:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cf-x .ic { width: 18px; height: 18px; }
.cf-body { display: grid; gap: 14px; padding: 8px 24px 24px; color: var(--text); font-size: 14.5px; line-height: 1.45; }
.cf-body p, .cf-body .hint, .cf-body .faint, .cf-body small { color: var(--text); }
.cf-body .form-error { color: var(--red); }
.cf-body > form, .cf-body .bb-form { display: grid; gap: 14px; margin: 0; }
.cf-body .field { display: grid; gap: 6px; margin: 0; }
.cf-body .field input, .cf-body .field select, .cf-body .field textarea { width: 100%; box-sizing: border-box; }
.cf-q { margin: 0; }
.cf-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 4px 0 0; }
.cf-actions .btn { margin: 0; }
/* a .cf details opens its dialog (confirm.js); its summary looks and acts like a button */
details.cf > summary { list-style: none; cursor: pointer; }
details.cf > summary::-webkit-details-marker { display: none; }
@media (max-width: 520px) {
  .cf-head { padding: 16px 12px 4px 16px; }
  .cf-body { padding: 8px 16px 18px; }
  .cf-actions { flex-direction: column-reverse; align-items: stretch; }
}
