.mlnp-root[hidden], .mlnp-invitation[hidden], .mlnp-open[hidden], .mlnp-nav-item[hidden], [data-mlnp-nav-item][hidden] { display: none !important; }
.mlnp-root {
    --mlnp-accent: #287d89;
    position: fixed; inset: 0; z-index: 1000000; display: flex; align-items: center; justify-content: center;
    padding: 24px; background: rgba(20, 27, 35, .56); box-sizing: border-box; overscroll-behavior: contain;
}
.mlnp-root *, .mlnp-root *::before, .mlnp-root *::after { box-sizing: border-box; }
.mlnp-dialog {
    display: flex; flex-direction: column; width: min(100%, 600px); max-height: calc(100vh - 48px); max-height: calc(100dvh - 48px);
    margin: 0; padding: 0; border: 0; border-radius: 18px; background: #fff; color: #25303c;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .25); overflow: hidden; font-family: inherit; line-height: 1.5;
}
.mlnp-dialog-header { display: flex; gap: 12px; align-items: flex-start; flex: 0 0 auto; padding: 22px 24px 14px; border-bottom: 1px solid #e8ebef; }
.mlnp-dialog .mlnp-title { flex: 1; margin: 0; padding: 0; font-size: 23px; font-weight: 700; line-height: 1.3; }
.mlnp-dialog button { font: inherit; cursor: pointer; }
.mlnp-dialog .mlnp-close { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; margin: -7px -9px 0 0; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #5a6572; font-size: 30px; line-height: 1; }
.mlnp-dialog .mlnp-close:hover { background: #f0f2f5; color: #202832; }
.mlnp-dialog-content { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 18px 24px 22px; -webkit-overflow-scrolling: touch; }
.mlnp-dialog-prompt { margin: 0 0 20px; color: #4b5865; font-size: 15px; }
.mlnp-dialog-prompt:empty { display: none; }
.mlnp-variants { display: grid; gap: 14px; }
.mlnp-field { min-width: 0; }
.mlnp-field-label, .mlnp-comment-label { display: block; margin: 0 0 6px; padding: 0; color: #263341; font-size: 14px; font-weight: 600; }
.mlnp-dialog .mlnp-name, .mlnp-dialog .mlnp-comment {
    width: 100%; margin: 0; padding: 12px 13px; border: 1px solid #bac3cd; border-radius: 9px;
    background: #fff; color: #1f2933; font: inherit; font-size: 16px; line-height: 1.45; box-shadow: none;
}
.mlnp-dialog .mlnp-name { min-height: 48px; }
.mlnp-dialog .mlnp-comment { min-height: 118px; resize: vertical; }
.mlnp-dialog .mlnp-name:focus, .mlnp-dialog .mlnp-comment:focus { outline: 2px solid rgba(40, 125, 137, .2); outline-offset: 1px; border-color: var(--mlnp-accent); }
.mlnp-helper { margin: 12px 0 22px; color: #66717d; font-size: 13px; }
.mlnp-dialog-footer { flex: 0 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 16px 24px; border-top: 1px solid #e8ebef; background: #fafbfc; }
.mlnp-dialog .mlnp-save { min-height: 44px; margin: 0; padding: 10px 22px; border: 1px solid var(--mlnp-accent); border-radius: 9px; background: #f4fafb; color: #236a75; font-weight: 700; }
.mlnp-dialog .mlnp-save:hover { background: #e7f3f5; border-color: #287d89; }
.mlnp-dialog .mlnp-save:disabled { background: #f1f4f5; border-color: #c8d2d6; color: #637b82; cursor: default; }
.mlnp-dialog button:focus-visible { outline: 3px solid #377ba3; outline-offset: 3px; }
.mlnp-status { flex: 1; min-width: 150px; margin: 0; font-size: 12px; line-height: 1.45; color: #606c78; }
.mlnp-status[data-state="saved"] { color: #236a75; }
.mlnp-status[data-state="closed"], .mlnp-status[data-state="error"] { color: #526776; }
.mlnp-history { margin: 0 0 22px; padding: 15px 16px; border-radius: 10px; background: #f3f5f7; }
.mlnp-history[hidden] { display: none; }
.mlnp-history-title { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.mlnp-history-group + .mlnp-history-group { margin-top: 13px; padding-top: 13px; border-top: 1px solid #dce2e8; }
.mlnp-history-names { margin: 0; padding-left: 19px; font-size: 14px; overflow-wrap: anywhere; }
.mlnp-history-names li + li { margin-top: 3px; }
.mlnp-history-comment-label { margin: 10px 0 2px; font-size: 12px; font-weight: 600; color: #65717e; }
.mlnp-history-comment { margin: 0; font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.mlnp-invitation { margin: 18px 0; padding: 16px 20px; border: 1px solid #dce6e9; border-radius: 12px; background: #fff; }
.mlnp-invitation .mlnp-prompt, .mlnp-invitation__prompt { margin: 0 0 9px; color: #33404d; }
.mlnp-invitation .mlnp-open { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid #9ebec5; border-radius: 10px; background: #f9fcfc; color: #285d68; font: inherit; font-weight: 700; cursor: pointer; }
.mlnp-nav-item .mlnp-open, .mlnp-nav-item .mlnp-open-label, .mlnp-nav-item .mlnp-open-icon { color: #287d89 !important; font-weight: 700 !important; }
.mlnp-invitation .mlnp-open:hover { border-color: #287d89; background: #edf7f8; }
.mlnp-invitation .mlnp-open:focus-visible { outline: 2px solid #287d89; outline-offset: 3px; }
.mlnp-field--appearing { overflow: hidden; animation: mlnp-field-reveal 280ms cubic-bezier(.25, .1, .25, 1) both; }
@keyframes mlnp-field-reveal {
    from { height: 0; margin-top: -14px; opacity: 0; transform: translateY(-5px); }
    to { height: var(--mlnp-field-height); margin-top: 0; opacity: 1; transform: translateY(0); }
}
.mlnp-invitation .mlnp-open.mlnp-attention { animation: mlnp-button-glow 1400ms ease-in-out; }
@keyframes mlnp-button-glow {
    0%, 100% { border-color: #9ebec5; box-shadow: 0 0 0 0 rgba(40, 125, 137, 0); }
    48% { border-color: #287d89; box-shadow: 0 0 0 5px rgba(40, 125, 137, .11); }
}
@media (max-width: 640px) {
    .mlnp-root { align-items: stretch; padding: 8px; padding-top: max(8px, env(safe-area-inset-top)); padding-bottom: max(8px, env(safe-area-inset-bottom)); }
    .mlnp-dialog { width: 100%; max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 13px; }
    .mlnp-dialog-header { padding: 17px 17px 12px; }
    .mlnp-dialog .mlnp-title { font-size: 20px; }
    .mlnp-dialog-content { padding: 16px 17px 18px; }
    .mlnp-dialog-footer { padding: 12px 17px; }
    .mlnp-invitation { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    .mlnp-root *, .mlnp-root *::before, .mlnp-root *::after { scroll-behavior: auto !important; }
    .mlnp-field--appearing, .mlnp-invitation .mlnp-open.mlnp-attention { animation: none !important; }
}
