#mmga { display: flex; justify-content: center; padding: 14px 20px; }
#mmga [hidden] { display: none !important; }
#mmga button { cursor: pointer; font: inherit; }
#mmga .mmga-settings {
    background: transparent; border: 0; color: inherit; text-decoration: underline;
    text-underline-offset: 3px; min-height: 44px; font-size: .85rem;
}
#mmga .mmga-panel {
    position: fixed; inset: auto 20px 20px auto; width: min(465px, calc(100% - 40px));
    max-height: min(510px, calc(100% - 100px)); overflow-y: auto; z-index: 1000;
    box-sizing: border-box; padding: 22px; color: #1b2d55; background: #fff;
    border: 1px solid #ded8cb; border-radius: 18px; box-shadow: 0 10px 30px #1b2d552a;
}
#mmga .mmga-panel h2 { margin: 0 0 8px; font-size: 1.14rem; }
#mmga .mmga-panel p { margin: 0 0 14px; font-size: .88rem; line-height: 1.6; }
#mmga .mmga-panel a { color: inherit; text-decoration: underline; }
#mmga .mmga-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#mmga .mmga-actions button {
    color: #1b2d55; background: #f2efeb; border: 1px solid #b6ac98; border-radius: 10px;
    padding: 9px 11px; min-height: 44px; font-size: .83rem; font-weight: 600;
}
#mmga .mmga-actions button:hover { background: #e8e1d4; }
#mmga :is(a, button):focus-visible { outline: 2px solid #1b2d55; outline-offset: 3px; }
@media (max-width: 767px) {
    #mmga .mmga-panel { bottom: 84px; inset-inline: 12px; width: auto; max-height: calc(100% - 108px); }
}
