

.pmgz-banner, .pmgz-modal, .pmgz-fab, .pmgz-embed-ph { font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif; color: #394b4e; }
.pmgz-banner *, .pmgz-modal *, .pmgz-embed-ph * { box-sizing: border-box; }
html.pmgz-lock { overflow: hidden; }

.pmgz-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 22px;
    border: 2px solid #22374d; border-radius: 0; cursor: pointer; font: 700 15px/1.2 inherit; font-family: inherit;
    text-transform: uppercase; letter-spacing: .02em; transition: background-color .15s ease, color .15s ease; }
.pmgz-btn--solid { background: #22374d; color: #fff; }
.pmgz-btn--solid:hover { background: #2f485b; border-color: #2f485b; }
.pmgz-btn--ghost { background: #fff; color: #22374d; }
.pmgz-btn--ghost:hover { background: #efdcbe; }
.pmgz-btn:focus-visible, .pmgz-link:focus-visible, .pmgz-close:focus-visible, .pmgz-cat__toggle:focus-visible, .pmgz-fab:focus-visible,
.pmgz-switch input:focus-visible + .pmgz-switch__ui { outline: 3px solid #c9a227; outline-offset: 2px; }
.pmgz-link { background: none; border: 0; padding: 0; color: #1f5f79; font: inherit; text-decoration: underline; cursor: pointer; }

.pmgz-banner { position: fixed; inset: 0; z-index: 2147483000; display: flex; justify-content: center; align-items: flex-end;
    padding: 0 16px 16px; background: rgba(8, 22, 32, .35);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pmgz-banner[hidden] { display: none; }
.pmgz-banner__inner { width: min(860px, 100%); max-height: calc(100vh - 32px); overflow: auto;
    background: #fff; border-top: 4px solid #22374d; box-shadow: 0 18px 50px rgba(15, 40, 58, .35), 0 0 0 1px rgba(15, 40, 58, .08);
    padding: 22px 26px 18px; }
.pmgz-banner__title { margin: 0 0 10px; font-size: 20px; font-weight: 700; color: #20323f; }
.pmgz-banner__text p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; text-align: left; hyphens: manual; }
.pmgz-banner__actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; margin: 16px 0 12px; }
.pmgz-banner__legal { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; }
.pmgz-banner__legal a, .pmgz-banner__legal .pmgz-link { color: #1f5f79; text-decoration: underline; }
@media (max-width: 640px) {
    .pmgz-banner { padding: 16px; }
    .pmgz-banner__inner { padding: 18px 16px 14px; max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
    .pmgz-banner__title { font-size: 18px; }
    .pmgz-banner__text p { font-size: 13.5px; }
    .pmgz-banner__actions { grid-template-columns: 1fr 1fr; }
    .pmgz-banner__actions [data-act="settings"] { grid-column: 1 / -1; }
    .pmgz-btn { padding: 10px 12px; font-size: 14px; }
}

.pmgz-modal { position: fixed; inset: 0; z-index: 2147483001; display: flex; align-items: center; justify-content: center;
    padding: 20px; background: rgba(8, 22, 32, .5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pmgz-modal__box { display: flex; flex-direction: column; width: min(760px, 100%); max-height: calc(100vh - 40px);
    background: #fff; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.pmgz-modal__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px;
    background: linear-gradient(to bottom, #1a2c3c 0%, #2f485b 100%); color: #fff; }
.pmgz-modal__title { margin: 0; font-size: 19px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; }
.pmgz-close { width: 34px; height: 34px; flex: 0 0 34px; border: 1px solid rgba(239, 220, 190, .6); border-radius: 50%; background: none;
    color: #efdcbe; font-size: 22px; line-height: 1; cursor: pointer; }
.pmgz-close:hover { background: #efdcbe; color: #22374d; }
.pmgz-modal__body { overflow: auto; padding: 18px 22px 8px; }
.pmgz-modal__intro { margin: 0 0 14px; font-size: 14px; line-height: 1.6; text-align: left; hyphens: manual; }
.pmgz-cat__text, .pmgz-svc__facts dd { text-align: left; hyphens: manual; }
.pmgz-note { padding: 10px 12px; background: #f7f8f9; border-left: 3px solid #c9a227; font-size: 13px; }
.pmgz-meta { margin: 6px 0 10px; font-size: 12.5px; color: #6b7780; }
.pmgz-meta code, .pmgz-svc code { font: 12.5px/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: #eef1f3; padding: 1px 5px; }
.pmgz-modal__foot { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 14px 22px 16px; border-top: 1px solid #e3e7ea; background: #f7f8f9; }
@media (max-width: 640px) {
    .pmgz-modal { padding: 16px; }
    .pmgz-modal__box { max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); }
    .pmgz-modal__foot { grid-template-columns: 1fr 1fr; }
    .pmgz-modal__foot [data-act="save"] { grid-column: 1 / -1; order: 3; }
}

.pmgz-cat { margin: 0 0 12px; background: #f9f9f9; border: 1px solid #e3e7ea; }
.pmgz-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 4px; }
.pmgz-cat__toggle { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; padding: 0; background: none; border: 0;
    text-align: left; cursor: pointer; color: #20323f; font-family: inherit; }
.pmgz-cat__toggle::before { content: ""; flex: 0 0 auto; width: 8px; height: 8px; border-right: 2px solid #22374d; border-bottom: 2px solid #22374d;
    transform: rotate(-45deg); transition: transform .15s ease; margin-right: 2px; position: relative; top: -1px; }
.pmgz-cat__toggle[aria-expanded="true"]::before { transform: rotate(45deg); top: -4px; }
.pmgz-cat__title { font-size: 16px; font-weight: 700; }
.pmgz-cat__count { font-size: 12.5px; color: #6b7780; }
.pmgz-cat__text { margin: 0; padding: 0 14px 12px 34px; font-size: 13.5px; line-height: 1.55; }
.pmgz-cat__body { padding: 0 14px 12px 34px; }
.pmgz-always { flex: 0 0 auto; font-size: 12.5px; font-weight: 700; color: #2e7d52; text-transform: uppercase; letter-spacing: .03em; }

.pmgz-svc { margin: 0 0 10px; padding: 12px 14px; background: #fff; border: 1px solid #e3e7ea; }
.pmgz-svc:last-child { margin-bottom: 0; }
.pmgz-svc__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.pmgz-svc__name { font-size: 14.5px; font-weight: 700; color: #1b3a52; }
.pmgz-svc__facts { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 12px; margin: 0; font-size: 13px; line-height: 1.5; }
.pmgz-svc__facts dt { font-weight: 600; color: #20323f; }
.pmgz-svc__facts dd { margin: 0; }
.pmgz-svc__facts ul { margin: 0; padding: 0; list-style: none; }
.pmgz-svc__facts a { color: #1f5f79; }
@media (max-width: 520px) {
    .pmgz-svc__facts { grid-template-columns: 1fr; }
    .pmgz-svc__facts dt { margin-top: 4px; }
    .pmgz-cat__text, .pmgz-cat__body { padding-left: 14px; }
}

.pmgz-switch { position: relative; flex: 0 0 auto; display: inline-flex; cursor: pointer; }
.pmgz-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pmgz-switch__ui { width: 46px; height: 26px; border-radius: 13px; background: #b8c2cc; position: relative; transition: background-color .15s ease; }
.pmgz-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s ease; }
.pmgz-switch input:checked + .pmgz-switch__ui { background: #22374d; }
.pmgz-switch input:checked + .pmgz-switch__ui::after { transform: translateX(20px); }
.pmgz-switch input:indeterminate + .pmgz-switch__ui { background: #8aa0b2; }
.pmgz-switch input:indeterminate + .pmgz-switch__ui::after { transform: translateX(10px); }
.pmgz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.pmgz-fab { position: fixed; left: 14px; bottom: 14px; z-index: 998; width: 44px; height: 44px; border-radius: 50%;
    border: 2px solid #efdcbe; background: #22374d; color: #efdcbe; cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .3); padding: 0; }
.pmgz-fab svg { width: 24px; height: 24px; fill: currentColor; }
.pmgz-fab:hover { background: #2f485b; }

@media (max-width: 700px) { .pmgz-fab { bottom: 70px; left: 10px; width: 40px; height: 40px; } }

.pmgz-embed-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    padding: 18px; text-align: center; background: #f0f4f6; }
.pmgz-embed-ph p { margin: 0; text-align: center !important; }
.pmgz-embed-ph__title { font-size: 16px; font-weight: 700; color: #20323f; }
.pmgz-embed-ph__text { font-size: 13px; line-height: 1.5; max-width: 380px; }
.pmgz-embed-ph__actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 4px !important; }
.pmgz-embed-ph .pmgz-btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.pmgz-url { word-break: break-all; color: #5b6b78; }
