dialog.editor-popup{box-sizing:border-box;width:min(640px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);padding:0;border:1px solid #888;border-radius:12px;background:#363636;color:#eee;overflow:hidden;font:16px/1.45 Arial,sans-serif;box-shadow:0 20px 60px #0009;}
dialog.editor-popup[open]{display:flex;flex-direction:column;}
dialog.editor-popup::backdrop{background:#0009;}
.editor-popup *{box-sizing:border-box;}
.editor-popup>header,.editor-popup>footer{display:flex;align-items:center;gap:12px;flex:none;padding:18px 24px;background:#242424;}
.editor-popup>header{background:var(--popup-strip,var(--guild-modal-color,#242424));border-bottom:1px solid #666;}
.editor-popup h2{flex:1;font-size:22px;color:#fff;margin:0;}
.editor-popup>main{padding:24px;overflow:auto;min-height:0;}
.editor-popup main p{margin:0;color:#eee;white-space:pre-wrap;overflow-wrap:anywhere;}
.editor-popup>footer{border-top:1px solid #666;justify-content:flex-end;flex-wrap:wrap;}
.editor-popup button:not(:where(#clr-picker *)){padding:9px 15px;border:1px solid #888;border-radius:7px;background:#454545;color:#fff;font:600 14px/1.3 Arial,sans-serif;cursor:pointer;}
.editor-popup button.primary{background:#dedede;color:#111;}
.editor-popup button.popup-x{border:0;background:transparent;font-size:26px;padding:0 6px;}
.editor-popup .editor-link-modal-field{display:grid;gap:8px;margin:0 0 18px;color:#eee;font-weight:600;}
.editor-popup .editor-link-modal-field input,.editor-popup .editor-link-modal-field select,.editor-popup .editor-link-modal-control{width:100%;min-width:0;min-height:40px;padding:8px 10px;background:#454545;color:#fff;border:1px solid #888;border-radius:7px;font:inherit;}
.editor-popup .editor-link-modal-checkbox{display:flex;gap:10px;align-items:center;color:#eee;font-weight:400;}
.editor-popup .editor-link-modal-checkbox input{width:18px;height:18px;margin:0;}
.editor-popup :disabled,.editor-popup .is-disabled{opacity:.6;}
.editor-popup :focus-visible{outline:2px solid #fff;outline-offset:3px;}
@media(max-width:480px){.editor-popup>header,.editor-popup>main,.editor-popup>footer{padding:18px;}}
