:root {
    --vetor-ink: #0b1c28;
    --vetor-panel: #122b3a;
    --vetor-line: #405765;
    --vetor-gold: #e5c469;
    --vetor-paper: #f7f4ec;
    --vetor-muted: #63747d;
    --vetor-danger: #9d342d;
}

.vetor-install-trigger {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 80;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: var(--vetor-ink);
    color: #fff;
    box-shadow: 0 12px 30px rgba(4, 15, 22, .24);
    font: 700 13px/1 system-ui, sans-serif;
    cursor: pointer;
}

.vetor-install-trigger svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.vetor-install-trigger:hover,
.vetor-install-trigger:focus-visible {
    border-color: var(--vetor-gold);
    color: var(--vetor-gold);
}

.vetor-install-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    padding: 24px;
    place-items: center;
    background: rgba(4, 15, 22, .78);
}

.vetor-install-overlay[hidden] {
    display: none;
}

.vetor-install-dialog {
    position: relative;
    width: min(100%, 520px);
    max-height: min(720px, calc(100vh - 48px));
    overflow: auto;
    padding: 42px;
    border: 1px solid var(--vetor-line);
    border-radius: 14px;
    background: var(--vetor-panel);
    color: #fff;
    box-shadow: 0 28px 70px rgba(0, 0, 0, .35);
}

.vetor-install-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--vetor-line);
    border-radius: 50%;
    background: transparent;
    color: #fff;
    font-size: 24px;
    place-items: center;
    cursor: pointer;
}

.vetor-install-kicker {
    color: var(--vetor-gold);
    font: 800 11px/1.2 system-ui, sans-serif;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.vetor-install-dialog h2 {
    margin: 14px 48px 12px 0;
    color: #fff;
    font-size: clamp(28px, 6vw, 42px);
    line-height: 1.05;
}

.vetor-install-intro,
.vetor-install-dialog small {
    color: #c9d5da;
}

.vetor-install-steps {
    display: grid;
    margin: 26px 0;
    padding: 0;
    counter-reset: install-step;
    list-style: none;
    gap: 12px;
}

.vetor-install-steps li {
    display: grid;
    grid-template-columns: 34px 1fr;
    align-items: center;
    gap: 12px;
    color: #edf2f4;
}

.vetor-install-steps li::before {
    display: grid;
    width: 34px;
    height: 34px;
    border: 1px solid var(--vetor-line);
    border-radius: 50%;
    color: var(--vetor-gold);
    content: counter(install-step);
    counter-increment: install-step;
    font-weight: 800;
    place-items: center;
}

.vetor-install-action {
    min-height: 46px;
    margin-bottom: 18px;
    padding: 0 20px;
    border: 0;
    border-radius: 7px;
    background: var(--vetor-gold);
    color: var(--vetor-ink);
    font-weight: 800;
    cursor: pointer;
}

.vetor-password-field {
    position: relative;
}

.vetor-password-field input {
    padding-right: 50px !important;
}

.vetor-password-toggle {
    position: absolute;
    right: 3px;
    bottom: 3px;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--vetor-muted);
    font-size: 18px;
    place-items: center;
    cursor: pointer;
}

.vetor-reset {
    display: grid;
    min-height: 66vh;
    padding: clamp(54px, 8vw, 96px) 20px;
    background: var(--vetor-paper);
    place-items: center;
}

.vetor-reset-card {
    width: min(100%, 560px);
    padding: clamp(28px, 6vw, 52px);
    border: 1px solid #d8d9d2;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 20px 54px rgba(11, 28, 40, .08);
}

.vetor-reset-card h1 {
    margin: 12px 0;
    color: var(--vetor-ink);
    font-size: clamp(34px, 7vw, 52px);
    line-height: 1.02;
}

.vetor-reset-card > p {
    color: var(--vetor-muted);
    line-height: 1.65;
}

.vetor-reset-form {
    display: grid;
    margin-top: 26px;
    gap: 18px;
}

.vetor-reset-form label {
    display: grid;
    color: var(--vetor-ink);
    font-size: 14px;
    font-weight: 750;
    gap: 7px;
}

.vetor-reset-form input {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #a9b2b6;
    border-radius: 7px;
    background: #fff;
    color: var(--vetor-ink);
    font: inherit;
}

.vetor-reset-form input:focus-visible,
.vetor-install-dialog button:focus-visible,
.vetor-install-trigger:focus-visible,
.vetor-password-toggle:focus-visible {
    outline: 3px solid var(--vetor-gold);
    outline-offset: 2px;
}

.vetor-password-rules {
    margin-top: -10px;
    color: var(--vetor-muted);
    font-size: 13px;
}

.reset-notice,
.reset-error {
    margin: 18px 0;
    padding: 13px 15px;
    border-left: 4px solid #277248;
    background: #eaf5ee;
    color: #174a2e;
    line-height: 1.5;
}

.reset-error {
    border-left-color: var(--vetor-danger);
    background: #f9e9e7;
    color: #70201b;
}

.reset-back {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    margin-top: 22px;
    color: var(--vetor-ink);
    font-weight: 750;
}

body.vetor-dialog-open {
    overflow: hidden;
}

@media (max-width: 640px) {
    .vetor-install-trigger {
        right: 12px;
        bottom: 12px;
    }

    .vetor-install-trigger span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    .vetor-install-dialog {
        padding: 34px 24px 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vetor-install-trigger,
    .vetor-install-dialog,
    .vetor-install-overlay {
        scroll-behavior: auto;
        transition: none !important;
    }
}
