/* Fenêtres de police et d'entrée, cohérentes avec les contrôles Premium Fires. */
.premium-editor{box-sizing:border-box;color:#eee;background:#111;border:1px solid #1c1c1c;border-radius:22px;padding:0;width:min(554px,calc(100vw - 28px));max-height:calc(100dvh - 32px);margin:auto;box-shadow:0 28px 100px #0009;font:14px Inter,sans-serif;overflow:hidden}
.premium-editor::backdrop{background:rgba(0,0,0,.79)}
body:has(.premium-editor[open]){overflow:hidden}
.premium-editor[open]{display:flex;flex-direction:column}
.premium-editor-head{display:flex;justify-content:space-between;align-items:center;padding:14px 16px 8px;gap:18px;flex-shrink:0}
.premium-editor-head h2{margin:0;font-size:15px;line-height:22px;font-weight:600;letter-spacing:-.02em}
.premium-editor-close{appearance:none;border:0;background:none;color:#aaa;cursor:pointer;width:24px;height:26px;padding:3px;display:grid;place-items:center;border-radius:6px}
.premium-editor-close svg{width:18px;height:18px}
.premium-editor-close:hover{background:#242424;color:#fff}
.premium-editor-body{padding:16px;min-height:0;overflow:auto}
.premium-editor label,.premium-editor-label{display:block;font-size:16px;font-weight:500;line-height:22px;margin:0 0 7px;letter-spacing:-.02em}
.premium-editor-help{display:inline-grid;place-items:center;background:#eee;color:#111;border-radius:50%;width:13px;height:13px;font-size:10px;margin-left:5px;vertical-align:middle;cursor:help}
.premium-editor-desc{color:#858585;font-size:14px;margin:0 0 12px;line-height:1.4}
.premium-editor-button{display:flex;gap:8px;align-items:center;justify-content:center;width:100%;height:45px;border:2px solid #1c1c1c;border-radius:16px;background:#121212;color:#eee;font:inherit;cursor:pointer}
.premium-editor-button svg{width:20px;height:20px;flex-shrink:0}
.premium-editor-button:hover{background:#191919}
.premium-editor button:disabled{opacity:.5;cursor:wait}
.premium-editor button:focus-visible,.premium-editor input:focus-visible{outline:2px solid #ff922e;outline-offset:2px}
.premium-font-defaults{margin-top:38px}
.premium-font-options{display:flex;flex-direction:column;gap:10px;max-height:min(400px,calc(100dvh - 390px));min-height:140px;overflow-y:auto;padding-right:7px;scrollbar-width:thin}
.premium-font-choice{appearance:none;text-align:left;flex-shrink:0;min-height:45px;border:2px solid #1c1c1c;background:#161616;border-radius:16px;padding:10px 13px;color:#eee;font-size:16px;line-height:21px;cursor:pointer;display:flex;gap:10px;align-items:center;justify-content:space-between;overflow-wrap:anywhere}
.premium-font-choice[aria-checked="true"]{background:#392310;border-color:#70401b}
.premium-font-choice:hover{border-color:#3a3a3a}
.premium-font-choice small{font:10px Inter,sans-serif;color:#aaa}
#premium-custom-font{margin-top:12px;width:100%}
#premium-custom-font[hidden]{display:none}
.premium-editor-remove-font{background:none;border:0;color:#aaa;font:inherit;font-size:12px;padding:9px 0 0;cursor:pointer}
.premium-editor-footer{padding:24px 16px 20px;flex-shrink:0}
.premium-editor-save{background:#392310;border-color:#70401b}
.premium-editor-save:hover{background:#4c2c12}
.premium-editor-status{color:#ffb29b;font-size:13px;line-height:1.5;margin:10px 0 0;overflow-wrap:anywhere}
.premium-entry-editor{width:min(440px,calc(100vw - 28px))}
.premium-entry-editor .premium-editor-body{padding:7px 16px 0}
.premium-entry-editor .premium-editor-footer{padding-top:20px;padding-bottom:16px}
.premium-entry-field{margin-top:0;margin-bottom:17px}
.premium-editor-input{display:flex;align-items:center;gap:10px;border:1px solid transparent;border-radius:16px;background:#090909;height:46px;padding:0 12px}
.premium-editor-input:focus-within{border-color:#282828}
.premium-editor-input svg{width:20px;height:20px;color:#777;flex-shrink:0}
.premium-editor-input input{border:0;outline:none;background:none;color:#eee;width:100%;min-width:0;font:inherit;padding:8px 0}
.premium-editor-input input::placeholder{color:#777}
.premium-editor-input input:focus-visible{outline:none}
.premium-entry-image-box{position:relative;width:100%;height:100px;border:2px solid #1c1c1c;border-radius:12px;overflow:hidden}
.premium-entry-upload{border:0;background:none;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#888;font:inherit;cursor:pointer;padding:0}
.premium-entry-upload svg{width:32px;height:32px;color:#eee}
.premium-entry-upload img{width:100%;height:100%;object-fit:cover}
.premium-entry-upload img[hidden],.premium-entry-upload span[hidden]{display:none}
.premium-entry-upload span{display:flex;flex-direction:column;align-items:center;gap:12px}
.premium-entry-image-meta{position:absolute;top:7px;right:7px;display:flex;gap:5px;pointer-events:none}
.premium-entry-image-meta b{font-size:12px;background:#333a;color:#ddd;border-radius:10px;padding:8px}
.premium-entry-image-meta button{pointer-events:auto;background:#777b;border:0;border-radius:9px;color:#ff453a;width:32px;height:32px;font-size:22px;cursor:pointer}
.premium-entry-image-meta [hidden]{display:none}
@media(max-height:650px){.premium-editor-body{padding-top:8px}.premium-font-defaults{margin-top:20px}.premium-editor-footer{padding-top:14px}.premium-font-options{min-height:90px;max-height:200px}}
