html.fme-password-lock,
html.fme-password-lock body {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none;
}

.fme-password-grace-banner {
    position: sticky;
    top: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 0.75rem 1rem;
    background: #fff4e5;
    border-bottom: 1px solid #f0c36d;
    color: #5c3b00;
    text-align: center;
}

.fme-password-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
}

.fme-password-modal.is-open,
.fme-password-modal.is-forced.is-open {
    display: flex;
}

.fme-password-modal[hidden] {
    display: none !important;
}

.fme-password-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.fme-password-modal.is-forced .fme-password-modal__backdrop {
    pointer-events: all;
}

.fme-password-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(440px, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: #fff;
    padding: 1.5rem;
    border-radius: 4px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.fme-password-modal__title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.fme-password-modal__message {
    margin: 0 0 1rem;
}

.fme-password-modal__error {
    margin-bottom: 0.75rem;
    color: #e02b27;
}

.fme-password-modal__form .field {
    margin-bottom: 0.75rem;
}

.fme-password-modal__form label {
    display: block;
    margin-bottom: 0.25rem;
}

.fme-password-modal__form input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 0.5rem;
}

.fme-password-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    margin-top: 1rem;
}
