.dashboard-dialog{box-sizing:border-box;position:fixed;inset:0;margin:auto;width:min(480px,calc(100vw - 32px));max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);padding:0;border:1px solid #dfe5ee;border-radius:18px;background:#fff;color:#17243e;box-shadow:0 24px 90px #0b173938;overflow:auto;font-family:inherit}
.dashboard-dialog::backdrop{background:#0b173959;backdrop-filter:blur(3px)}
.dashboard-dialog-card{display:grid;gap:18px;padding:28px;margin:0}
.dashboard-dialog h2{margin:0;font-size:22px;line-height:1.25;letter-spacing:-.4px;font-weight:600}
.dashboard-dialog p{margin:0;color:#5e6d83;font-size:14px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}
.dashboard-dialog-details{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px 16px;margin:0;padding:16px;border:1px solid #e8edf4;border-radius:10px;background:#f8faff;font-size:12px;line-height:1.6}
.dashboard-dialog-details dt{color:#748198}.dashboard-dialog-details dd{margin:0;color:#263850;overflow-wrap:anywhere;white-space:pre-wrap;max-height:150px;overflow:auto}
.dashboard-dialog-field{display:grid;gap:8px;font-size:12px;color:#5e6d83}
.dashboard-dialog-field input,.dashboard-dialog-field textarea{width:100%;min-width:0;box-sizing:border-box;border:1px solid #dce3ee;border-radius:8px;padding:11px 12px;background:white;color:#17243e;font:inherit;font-size:14px}
.dashboard-dialog-field textarea{min-height:100px;resize:vertical}
.dashboard-dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:6px}
.dashboard-dialog-actions button{min-height:42px;padding:10px 18px;cursor:pointer;font:inherit;font-size:13px;font-weight:500;border-radius:8px}
.dashboard-dialog-actions .primary{background:var(--ph-signature-blue,#1368ff);color:white;border:1px solid transparent}
.dashboard-dialog-actions .secondary{background:white;color:#34445c;border:1px solid #dce3ee}
.dashboard-dialog :focus-visible{outline:2px solid #1368ff;outline-offset:3px}
@media(max-width:520px){.dashboard-dialog-card{padding:22px;gap:16px}.dashboard-dialog h2{font-size:20px}.dashboard-dialog-details{grid-template-columns:1fr;gap:4px}.dashboard-dialog-details dd+dt{margin-top:8px}}
/* Existing editors and information dialogs retain their layouts inside centered cards. */
dialog[open]:not(.dashboard-dialog){position:fixed;inset:0;margin:auto;max-width:calc(100vw - 32px);max-height:calc(100dvh - 40px);border:1px solid #dfe5ee;border-radius:16px;background:#fff;box-shadow:0 24px 90px #0b173938}
dialog::backdrop{background:#0b173959;backdrop-filter:blur(3px)}
.modal-backdrop{padding:16px;place-items:center;align-items:center}
.modal-backdrop>.rules-modal,dialog.rules-modal[open]{height:auto;max-height:calc(100dvh - 32px);max-width:calc(100vw - 32px);border-radius:16px;margin:auto}
