.hidden {
    display: none !important;
}

.hydro-account-bar {
    position: fixed;
    top: 16px;
    right: 18px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: min(90vw, 520px);
    padding: 9px 12px;
    color: #17365d;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(10, 35, 75, 0.18);
    font-size: 14px;
}

.hydro-small-button,
.hydro-primary-button,
.hydro-link-button {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}

.hydro-small-button {
    padding: 6px 12px;
    color: white;
    background: #2563a9;
}

.hydro-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(7, 22, 48, 0.64);
    backdrop-filter: blur(5px);
}

.hydro-dialog {
    width: min(430px, 100%);
    max-height: calc(100vh - 40px);
    overflow: auto;
    padding: 28px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 22px 65px rgba(4, 20, 48, 0.35);
}

.hydro-dialog h2 {
    margin: 0 0 10px;
    color: #17365d;
    text-align: center;
}

.hydro-message {
    min-height: 24px;
    margin: 0 0 8px;
    color: #b42318;
    text-align: center;
}

.hydro-message.success {
    color: #137333;
}

.hydro-form {
    display: grid;
    gap: 14px;
}

.hydro-form label {
    display: grid;
    gap: 6px;
    color: #30445f;
    font-weight: 600;
}

.hydro-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #b9c8d8;
    border-radius: 8px;
    font: inherit;
}

.hydro-form input:focus {
    border-color: #2a69ac;
    outline: 3px solid rgba(42, 105, 172, 0.14);
}

.hydro-primary-button {
    padding: 11px 14px;
    color: white;
    background: #245f9f;
    font-weight: 700;
}

.hydro-link-button {
    padding: 5px;
    color: #245f9f;
    background: transparent;
}

.hydro-form button:disabled {
    cursor: wait;
    opacity: 0.65;
}

#homeRecoveryResultCode {
    display: block;
    padding: 14px;
    overflow-wrap: anywhere;
    color: #17365d;
    background: #edf4fb;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
}

@media (max-width: 700px) {
    .hydro-account-bar {
        position: static;
        justify-content: center;
        margin: 0 auto 8px;
    }

    .hydro-dialog {
        padding: 22px 18px;
    }
}
