/* Site-styled dialogs (dialog.js) in place of the browser's confirm, alert and prompt boxes. Uses each
   page's color variables, with fallbacks for pages that don't define them all. */
.ohd{border:0;padding:0;border-radius:16px;background:var(--surface);color:var(--ink);width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 24px 60px rgba(8,12,16,.28);font-family:var(--sans,inherit);font-size:16px;line-height:1.5}
.ohd::backdrop{background:rgba(6,10,14,.5)}
.ohd[open]{animation:ohdIn .18s ease}
.ohd[open]::backdrop{animation:ohdFade .18s ease}
@keyframes ohdIn{from{opacity:0;transform:translateY(8px) scale(.98)}}
@keyframes ohdFade{from{opacity:0}}
.ohd form{padding:24px 24px 20px}
.ohd-title{font-family:var(--serif,inherit);font-weight:500;font-size:1.45rem;line-height:1.2;letter-spacing:-.01em;margin:0 0 8px}
.ohd-body{margin:0;color:var(--muted);font-size:.95rem;white-space:pre-line;overflow-wrap:anywhere}
.ohd-body:empty{display:none}
.ohd-label{display:block;font-weight:600;font-size:.88rem;margin:16px 0 6px}
.ohd textarea.ohd-input{display:block;width:100%;min-height:84px;margin:0;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--ink);font:inherit;font-size:.95rem;resize:vertical}
.ohd-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:22px}
.ohd-btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 18px;border-radius:10px;border:1px solid transparent;background:var(--accent);color:var(--accent-ink);font:inherit;font-weight:600;line-height:1.2;cursor:pointer}
.ohd-btn.ohd-ghost{background:var(--surface);color:var(--ink);border-color:var(--line)}
.ohd-btn.ohd-ghost:hover{border-color:var(--muted)}
.ohd-btn.ohd-danger{background:var(--danger,#A12B2B);color:var(--surface)}
.ohd :focus-visible{outline:3px solid var(--accent);outline-offset:2px}
@media (max-width:480px){
  .ohd form{padding:20px 18px 18px}
  .ohd-title{font-size:1.3rem}
  .ohd-actions .ohd-btn{flex:1}
}
@media (prefers-reduced-motion:reduce){.ohd[open],.ohd[open]::backdrop{animation:none}}
