/* Article embed dialog; independent of article layout and legacy popovers. */
.public-embed-modal{box-sizing:border-box;width:min(720px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:0;border:0;border-radius:12px;background:#fff;color:#27323a;box-shadow:0 18px 64px rgb(0 0 0 / 24%);text-align:left;overflow:auto;overscroll-behavior:contain}
.public-embed-modal::backdrop{background:rgb(18 25 34 / 55%)}
body:has(.public-embed-modal[open]){overflow:hidden}
.public-embed-modal-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 24px;border-bottom:1px solid #e2e6e9}
.public-embed-modal-header h2{margin:0;padding:0;border:0;background:none;font-size:18px;line-height:1.5;font-weight:750}
.public-embed-close{display:grid;place-items:center;flex:none;width:36px;height:36px;border:0;border-radius:6px;background:#f3f5f6;color:#38434a;font:26px/1 Arial,sans-serif;cursor:pointer}
.public-embed-modal-content{display:flex;flex-direction:column;gap:12px;padding:20px 24px 24px}
.public-embed-modal-content label,.public-embed-preview-label{margin:0;font-size:13px;line-height:1.5;font-weight:700}
.public-embed-preview-frame{box-sizing:border-box;width:100%;min-height:200px;background:transparent;border:0;padding:0;display:flex;align-items:center;justify-content:flex-start}
.public-embed-preview-frame iframe{display:block;width:100%;max-width:640px;height:200px;border:0}
.public-embed-guide{margin:4px 0 0;font-size:13px;line-height:1.7;color:#52616c}
.public-embed-modal textarea{box-sizing:border-box;display:block;width:100%;min-height:100px;resize:vertical;border:1px solid #d8dfe5;border-radius:6px;padding:10px;background:#f8f9fa;color:#34414a;font:12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
.public-embed-modal-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.public-embed-modal-actions [role=status]{font-size:12px;color:#446078}
.public-embed-modal .public-embed-copy{min-height:40px;padding:9px 20px;background:#354958;color:white;border:1px solid #354958;border-radius:6px;font-size:13px}
.public-embed-modal .public-embed-copy:hover{background:#263b49}
.public-embed-close:focus-visible,.public-embed-modal textarea:focus-visible{outline:3px solid #9dc6f8;outline-offset:2px}
@media(max-width:480px){.public-embed-modal{width:calc(100% - 24px);max-height:calc(100dvh - 24px)}.public-embed-modal-header{padding:14px 16px}.public-embed-modal-content{padding:16px;gap:10px}.public-embed-modal .public-embed-copy{width:100%}}
