.popup-topbar{position:sticky;top:-20px;z-index:90;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#0f172a;border-bottom:1px solid #334155;padding:10px 0;margin:-10px 0 14px}
#monsterEntryEditor .popup-topbar h2{margin:0!important;font-size:16px!important;flex:1;min-width:0}.popup-top-actions{display:flex;align-items:center;gap:9px;flex-shrink:0}
.popup-close{display:inline-flex;align-items:center;justify-content:center;width:32px!important;height:32px!important;min-width:32px;padding:0!important;border:1px solid #475569!important;border-radius:8px!important;background:#1e293b!important;color:#cbd5e1!important;font-size:24px!important;line-height:1;cursor:pointer}.popup-close:hover{background:#334155!important;color:#fff!important}.popup-close:focus-visible{outline:2px solid #fbbf24;outline-offset:2px}
#monsterEntryEditor .popup-top-save{background:#fbbf24;color:#172033;border:1px solid #fbbf24;padding:7px 14px;border-radius:7px;font-size:12px;font-weight:700}
.popup-legacy-header{position:sticky;top:0;background:#0f172a;z-index:2}.popup-close svg{width:16px;height:16px}
#playerPictureDialog .popup-topbar{position:sticky;top:0;margin:0;padding:7px 10px;background:#0b1220;color:#94a3b8;font-size:12px}

body .popup-close{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:32px!important;height:32px!important;min-width:32px!important;min-height:32px!important;padding:0!important;line-height:1!important;box-sizing:border-box;flex-shrink:0}body .popup-close svg{display:block;flex-shrink:0;margin:0;width:18px;height:18px}