/* Add Server / Verify Server only. The original controllers and forms remain. */
.rh-server-setup-body {
    margin: 0;
    background: #080d10;
    color: #edf2f5;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rh-server-setup-body .rh-flow-page {
    min-height: calc(100vh - 180px);
    padding: 48px 28px 80px;
    background: #080d10;
    font-size: 14px;
    line-height: 1.6;
}

.rh-server-setup-body .rh-flow-page::before,
.rh-server-setup-body .rh-flow-page-heading::before,
.rh-server-setup-body .rh-flow-page-heading::after {
    display: none;
}

.rh-server-setup-body .rh-flow-shell {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
}

.rh-server-setup-body .rh-flow-shell.rh-setup-ready {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
    column-gap: 38px;
    align-items: start;
}

.rh-server-setup-body .rh-flow-page-heading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    width: 100%;
    min-height: 0;
    margin: 0 0 36px;
    padding: 0 0 28px;
    border: 0;
    border-bottom: 1px solid #243039;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.rh-server-setup-body .rh-flow-page-heading > div:first-child {
    max-width: 650px;
}

.rh-server-setup-body .rh-flow-page-heading h1 {
    margin: 0 0 10px;
    color: #f5f7fa;
    font-size: 32px !important;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1.2;
    text-transform: none;
}

.rh-server-setup-body .rh-flow-page-heading h1 span {
    color: inherit;
}

.rh-server-setup-body .rh-flow-page-heading p:not(.rh-flow-eyebrow) {
    max-width: none;
    margin: 0;
    color: #96a6b0;
    font-size: 14px;
    line-height: 1.7;
}

.rh-server-setup-body .rh-flow-eyebrow {
    margin: 0 0 8px;
    color: #93a1ab;
    font-size: 10px !important;
    font-weight: 600;
    letter-spacing: 1.2px;
}

.rh-server-setup-body .rh-flow-progress {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.rh-server-setup-body .rh-flow-progress > li {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 76px;
    padding: 16px 12px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
}

.rh-server-setup-body .rh-flow-progress > li::before,
.rh-server-setup-body .rh-flow-progress > li::after {
    display: none;
}

.rh-server-setup-body .rh-flow-progress > li.is-active {
    border-color: #613121;
    background: linear-gradient(100deg, #291b17, #191716);
}

.rh-server-setup-body .rh-flow-progress > li.is-done {
    border-color: transparent;
    background: transparent;
}

.rh-server-setup-body .rh-flow-step-icon {
    display: block;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
}

.rh-server-setup-body .rh-flow-step-icon img,
.rh-server-setup-body .rh-flow-heading-image,
.rh-server-setup-body .rh-flow-side-image,
.rh-server-setup-body .rh-flow-input-icon,
.rh-server-setup-body .rh-flow-step-copy small,
.rh-server-setup-body .rh-add-trust-strip,
.rh-server-setup-body .rh-verify-reassurance-strip,
.rh-server-setup-body .rh-verify-choice-icon,
.rh-server-setup-body .rh-verify-run-heading-icon,
.rh-server-setup-body .rh-setup-help-body img,
.rh-server-setup-body .rh-setup-help-body .rh-flow-mini-steps {
    display: none;
}

.rh-server-setup-body .rh-flow-step-number {
    position: static;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    max-width: 28px;
    min-height: 28px;
    max-height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid #2e3c46;
    border-radius: 6px;
    background: #111b21;
    color: #82919d;
    font-size: 11px;
    font-weight: 600;
    box-shadow: none;
}

.rh-server-setup-body .rh-flow-progress > li.is-active .rh-flow-step-number {
    border-color: #f04a24;
    background: #e74620;
    color: white;
    box-shadow: none;
}

.rh-server-setup-body .rh-flow-progress > li.is-done .rh-flow-step-number {
    border-color: #266849;
    background: #10261e;
    color: #53d6a0;
}

.rh-server-setup-body .rh-flow-progress > li.is-done .rh-flow-step-number::after {
    display: none;
}

.rh-server-setup-body .rh-flow-step-copy strong {
    color: #cad4dc;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
}

.rh-server-setup-body .is-active .rh-flow-step-copy strong {
    color: #fff;
}

.rh-server-setup-body .rh-flow-step-copy span {
    margin-top: 3px;
    color: #82939e;
    font-size: 11px;
    line-height: 1.5;
}

.rh-server-setup-body .rh-setup-content {
    min-width: 0;
    min-height: 390px;
    padding: 6px 0 10px 38px;
    border-left: 1px solid #243039;
}

.rh-server-setup-body .rh-flow-workspace {
    display: flex;
    flex-direction: column;
    gap: 26px;
    min-width: 0;
}

.rh-server-setup-body .rh-flow-panel {
    width: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.rh-server-setup-body .rh-flow-panel-heading,
.rh-server-setup-body .rh-verify-run-heading,
.rh-server-setup-body .rh-verify-section-heading {
    display: block;
    margin: 0 0 28px;
    padding: 0;
    border: 0;
}

.rh-server-setup-body .rh-flow-page h2 {
    margin: 0 0 8px;
    color: #f1f5f8;
    font-size: 24px !important;
    font-weight: 650;
    letter-spacing: -.4px;
    line-height: 1.35;
    text-transform: none;
    white-space: normal;
}

.rh-server-setup-body .rh-flow-page h3 {
    color: #e8eef3;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1.45;
    text-transform: none;
}

.rh-server-setup-body .rh-flow-panel p:not(.rh-flow-eyebrow) {
    color: #96a6b0;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.75;
}

.rh-server-setup-body .rh-flow-form {
    margin: 0;
}

.rh-server-setup-body .rh-flow-field {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.rh-server-setup-body .rh-flow-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.rh-server-setup-body .rh-flow-field > span {
    margin: 0 0 7px;
    color: #e1e8ed;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
}

.rh-server-setup-body .rh-flow-field > span::after {
    display: none;
}

.rh-server-setup-body .rh-flow-field > small {
    order: 3;
    min-height: 0;
    margin: 7px 0 0;
    color: #8295a2;
    font-size: 11px !important;
    line-height: 1.55;
}

.rh-server-setup-body .rh-flow-input-shell {
    display: block;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: none;
    box-shadow: none;
}

.rh-server-setup-body .rh-flow-field input {
    display: block;
    width: 100%;
    height: 46px;
    min-height: 46px;
    margin: 0;
    padding: 0 14px;
    box-sizing: border-box;
    border: 1px solid #30404b;
    border-radius: 6px;
    outline-offset: 3px;
    background: #0e171d;
    color: #edf2f5;
    font: inherit;
    font-size: 14px;
    box-shadow: none;
}

.rh-server-setup-body .rh-flow-field input::placeholder {
    color: #748793;
    font-weight: 400;
}

.rh-server-setup-body .rh-flow-field:focus-within {
    border: 0;
    background: none;
    box-shadow: none;
}

.rh-server-setup-body .rh-flow-field input:focus {
    border-color: #ed532d;
    outline: 2px solid #ed532d;
}

.rh-server-setup-body .rh-flow-confirm {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin: 1px 0 26px;
    color: #adbcc6;
    font-size: 12px;
    line-height: 1.65;
}

.rh-server-setup-body .rh-flow-confirm input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #ed4a23;
}

.rh-server-setup-body .rh-setup-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-top: 24px;
    border-top: 1px solid #243039;
}

.rh-server-setup-body .rh-setup-actions > span {
    color: #8599a6;
    font-size: 11px;
}

.rh-server-setup-body .rh-flow-primary,
.rh-server-setup-body .rh-flow-secondary,
.rh-server-setup-body .rh-flow-remove,
.rh-server-setup-body .rh-flow-download,
.rh-server-setup-body .rh-verify-choice-button,
.rh-server-setup-body .rh-copy-button,
.rh-server-setup-body .rh-direct-check-now {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 42px;
    margin: 0;
    padding: 10px 18px;
    box-sizing: border-box;
    border: 1px solid #354650;
    border-radius: 6px;
    background: #101a20;
    color: #e2eaf0;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-transform: none;
    text-decoration: none;
    white-space: normal;
    box-shadow: none;
    cursor: pointer;
    transform: none;
}

.rh-server-setup-body .rh-flow-primary,
.rh-server-setup-body .rh-verify-choice-button-primary {
    border-color: #e64621;
    background: linear-gradient(135deg, #ff542f, #dd3719);
    color: #fff;
}

.rh-server-setup-body .rh-flow-primary:hover,
.rh-server-setup-body .rh-verify-choice-button-primary:hover {
    border-color: #ff7656;
    background: #f35029;
    box-shadow: none;
    transform: none;
}

.rh-server-setup-body .rh-flow-primary::after,
.rh-server-setup-body .rh-verify-choice-button::after {
    display: none;
}

.rh-server-setup-body .rh-flow-page :is(button, a, summary):focus-visible {
    outline: 2px solid #ff754d;
    outline-offset: 4px;
}

.rh-server-setup-body .rh-setup-help {
    padding: 0;
    border-top: 1px solid #243039;
    border-bottom: 1px solid #243039;
}

.rh-server-setup-body .rh-setup-help > summary {
    padding: 17px 0;
    color: #aebfcb;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.rh-server-setup-body .rh-setup-help > summary::marker {
    color: #748995;
}

.rh-server-setup-body .rh-setup-help-body {
    padding: 0 0 18px;
}

.rh-server-setup-body .rh-setup-help-body :is(.rh-add-guide-title, .rh-add-next-heading, .rh-verify-info-heading, .rh-verify-info-list > div) {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
}

.rh-server-setup-body .rh-setup-help-body :is(.rh-flow-eyebrow, .rh-add-guide-title h3, .rh-verify-info-heading h3) {
    display: none;
}

.rh-server-setup-body .rh-add-help-list {
    margin: 12px 0;
}

.rh-server-setup-body .rh-add-help-list > li {
    min-height: 0;
    padding: 10px 0;
}

.rh-server-setup-body .rh-add-help-list > li > span {
    width: 24px;
    height: 24px;
    border-color: #33444e;
    border-radius: 5px;
    background: #111c22;
    color: #a4b5c0;
    font-size: 10px;
}

.rh-server-setup-body .rh-flow-page :is(.rh-flow-current-server, .rh-verify-server-card, .rh-flow-notice, .rh-flow-cleanup, .rh-verify-command-box) {
    min-width: 0;
    min-height: 0;
    padding: 16px 18px;
    border: 1px solid #2e3d47;
    border-radius: 7px;
    background: #0d171d;
    box-shadow: none;
}

.rh-server-setup-body .rh-verify-server-card {
    flex: 0 0 auto;
    width: auto;
    max-width: 100%;
    text-align: left;
}

.rh-server-setup-body .rh-verify-server-card strong {
    color: #e2eaf0;
    font-size: 13px;
}

.rh-server-setup-body .rh-flow-notice-error {
    margin-bottom: 24px;
    border-color: #944c40;
}

.rh-server-setup-body .rh-flow-notice-success {
    margin-bottom: 24px;
    border-color: #28684d;
}

.rh-server-setup-body .rh-flow-cleanup {
    margin-top: 28px;
}

.rh-server-setup-body .rh-verify-choice-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0;
}

.rh-server-setup-body .rh-verify-choice-or {
    display: none;
}

.rh-server-setup-body .rh-verify-choice-card,
.rh-server-setup-body .rh-verify-choice-card.is-primary {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 0;
    padding: 22px;
    border: 1px solid #30404a;
    border-radius: 8px;
    background: #0d171d;
    text-align: left;
    box-shadow: none;
}

.rh-server-setup-body .rh-verify-choice-card p {
    margin: 5px 0 22px;
}

.rh-server-setup-body .rh-verify-choice-card .rh-verify-choice-button {
    width: 100%;
    margin-top: auto;
}

.rh-server-setup-body .rh-verify-install-panel,
.rh-server-setup-body .rh-verify-console-warning {
    min-height: 0;
    padding: 20px;
    border: 1px solid #30404a;
    border-radius: 7px;
    background: #0d171d;
}

.rh-server-setup-body .rh-verify-run-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.rh-server-setup-body .rh-verify-run-steps > div {
    min-height: 0;
    padding: 0;
    border: 0;
    background: none;
}

.rh-server-setup-body .rh-verify-command-input {
    grid-template-columns: minmax(0, 1fr) auto;
}

.rh-server-setup-body .rh-verify-command-input input {
    min-width: 0;
    font-size: 13px;
}

.rh-server-setup-body .rh-verify-watch-card {
    display: grid;
    grid-template-columns: 12px minmax(0, 1fr) auto;
    gap: 12px;
    margin: 20px 0;
    padding: 18px 0;
    border: 0;
    border-top: 1px solid #243039;
    border-bottom: 1px solid #243039;
    background: none;
}

.rh-server-setup-body .rh-flow-page [hidden] {
    display: none !important;
}

@media (max-width: 820px) {
    .rh-server-setup-body .rh-flow-page {
        padding: 32px 20px 56px;
    }

    .rh-server-setup-body .rh-flow-shell.rh-setup-ready {
        display: block;
    }

    .rh-server-setup-body .rh-flow-page-heading {
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .rh-server-setup-body .rh-flow-page-heading h1 {
        font-size: 28px !important;
    }

    .rh-server-setup-body .rh-flow-progress {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 30px;
    }

    .rh-server-setup-body .rh-flow-progress > li {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        min-height: 92px;
        padding: 12px;
    }

    .rh-server-setup-body .rh-flow-step-copy strong {
        font-size: 11px;
    }

    .rh-server-setup-body .rh-flow-step-copy span {
        display: none;
    }

    .rh-server-setup-body .rh-setup-content {
        min-height: 0;
        padding: 0;
        border: 0;
    }
}

@media (max-width: 540px) {
    .rh-server-setup-body .rh-flow-field-grid,
    .rh-server-setup-body .rh-verify-choice-grid,
    .rh-server-setup-body .rh-smart-plugin-paths,
    .rh-server-setup-body .rh-flow-action-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .rh-server-setup-body .rh-verify-choice-grid {
        gap: 14px;
    }

    .rh-server-setup-body .rh-setup-actions {
        align-items: stretch;
        flex-direction: column-reverse;
        gap: 14px;
        text-align: center;
    }

    .rh-server-setup-body .rh-verify-command-input {
        grid-template-columns: 1fr;
    }

    .rh-server-setup-body .rh-verify-watch-card {
        grid-template-columns: 12px minmax(0, 1fr);
    }

    .rh-server-setup-body .rh-verify-watch-card button {
        grid-column: 2;
        justify-self: start;
    }
}
