    .modal { position: fixed; inset: 0; display: none; z-index: 1000; }

    .modal button { font: inherit; }

    /* Demo page layout */
    .modal .page { min-height: 100%; display: grid; place-items: center; padding: 40px 20px; background: #f9fafb; }
    .modal .demo-actions { display:flex; gap:12px; }
    .modal .btn { border: 1px solid #111827; padding: 10px 16px; border-radius: 10px; background:#111827; color:#fff; cursor:pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
    .modal .btn:hover { background:#fff; color:#111827; border-color:#111827; }
    .modal .btn--primary { background:#111827; color:#fff; border-color:#111827; border-radius: 5px;padding:5px 20px 5px 20px;}
    .modal .btn--primary:hover { background:#fff; color:#111827; border-color:#111827; }
    .modal.is-open { display: block; }

    .modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.5); border-radius: var(--radius); clip-path: inset(0 round var(--radius)); backdrop-filter: blur(1px); }

    .modal__dialog {
      position: relative;
      width: min(720px, 92vw);
      max-height: 90vh;
      margin: min(8vh, 64px) auto;
      background: #fff;
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      display: flex; flex-direction: column;
      border: var(--border);
      border-radius: 5px;
    }

    @media (max-width: 480px) {
      .modal__dialog { width: 100vw; height: 100vh; margin: 0; border-radius: 0; }
    }

    .modal__header { display:flex; align-items:center; justify-content: space-between; padding: 14px 18px; border-bottom: var(--border); }
    .modal__title { margin:0; font-size: 2.5rem; font-weight: 700; }

    .modal__close { border:0; background: transparent; cursor: pointer; width: 40px; height: 40px; border-radius: 8px; }
    .modal__close:hover { background:#f3f4f6; }

    .modal__body { padding: 16px 18px; overflow: auto; flex: 1; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; max-height:500px; }

    .modal__footer{ text-align:center; padding: 20px 0px 20px 0px; }

    $1

    /* Modal unique action buttons */
    .modal .mp-btn { border: 1px solid #111827; padding: 10px 16px; border-radius: 10px; background:#111827; color:#fff; cursor:pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
    .modal .mp-btn:hover { background:#fff; color:#111827; border-color:#111827; }
    .modal .mp-btn--primary { background:#111827; color:#fff; border-color:#111827; border-radius: 5px;padding:5px 20px 5px 20px;}
    .modal .mp-btn--primary:hover { background:#fff; color:#111827; border-color:#111827; }

    /* Terms content helpers */
    .terms h3 { margin: 1.25em 0 .4em; font-size: 1rem; }
    .terms h4 { margin: 1em 0 .25em; font-size: .95rem; }
    .terms p, .terms li { color:#374151; }
    .terms ol, .terms ul { padding-left: 1.25em; }

    .sr-only {
      position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
    }