:root {
    --rs-ink: #111827;
    --rs-paper: #F7F8FA;
    --rs-signal: #e23b1c;
    --rs-signal-dark: #9e220e;
    --rs-line: #E5E7EB;
    --rs-muted: #667085;
    --rs-font-display: "Inter", "Helvetica Neue", sans-serif;
    --rs-font-body: "Inter", "Helvetica Neue", sans-serif;
}

body.fi-body {
    font-family: var(--rs-font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-color: var(--rs-paper) !important;
}

.fi-simple-layout,
.fi-layout {
    flex: 1 1 auto;
    background-color: transparent !important;
}

.fi-simple-main-ctn {
    border-radius: 1.25rem;
    border: 1px solid var(--rs-line);
    box-shadow: 0 18px 48px rgba(16, 18, 24, 0.06);
}

body.fi-body:has(.hl-onboard) .fi-simple-main-ctn {
    border: 0;
    box-shadow: none;
    background: transparent !important;
    border-radius: 0;
    max-width: 1120px;
    width: 100%;
}

body.fi-body:has(.hl-onboard) .fi-simple-main {
    background: transparent !important;
    padding-inline: 1rem !important;
}

body.fi-body:has(.hl-onboard) .fi-simple-layout {
    background: var(--rs-paper) !important;
}

.rs-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    text-align: center;
}

.rs-brand-product {
    font-family: var(--rs-font-display);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--rs-ink);
    line-height: 1.1;
}

.rs-brand-context {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(16, 18, 24, 0.55);
}

/* —— Shell header / footer (dark, like sales hero) —— */
.rs-shell-header {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem clamp(1rem, 3vw, 2rem);
    background: rgba(16, 18, 24, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f4f5f7;
}

.rs-shell-brand {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    text-decoration: none;
    color: #fff;
    min-width: 0;
}

.rs-shell-product {
    font-family: var(--rs-font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.rs-shell-company {
    font-size: 0.72rem;
    color: rgba(244, 245, 247, 0.55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.rs-shell-nav {
    display: none;
    gap: 1.25rem;
}

.rs-shell-nav a {
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
    color: rgba(244, 245, 247, 0.72);
}

.rs-shell-nav a:hover {
    color: #fff;
}

.rs-shell-actions {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-shrink: 0;
}

.rs-shell-link {
    display: none;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(244, 245, 247, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    min-height: 2.4rem;
    padding: 0.45rem 1rem;
    align-items: center;
}

.rs-shell-link:hover {
    border-color: rgba(255, 255, 255, 0.55);
    color: #fff;
}

.rs-shell-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.4rem;
    padding: 0.45rem 1rem;
    border-radius: 999px;
    background: var(--rs-signal);
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.rs-shell-btn:hover {
    background: #ff4f33;
}

.rs-shell-footer {
    margin-top: auto;
    padding: 1.75rem clamp(1rem, 3vw, 2rem) 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: #101218;
    color: rgba(244, 245, 247, 0.65);
    font-size: 0.9rem;
}

.rs-shell-footer-inner {
    width: min(100%, 1120px);
    margin-inline: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    justify-content: space-between;
    align-items: center;
}

.rs-shell-footer-brand {
    font-family: var(--rs-font-display);
    color: #fff;
    font-size: 1rem;
}

.rs-shell-footer-meta {
    margin-top: 0.2rem;
}

.rs-shell-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.35rem;
}

.rs-shell-footer-links a {
    font-weight: 600;
    text-decoration: none;
    color: rgba(244, 245, 247, 0.78);
}

.rs-shell-footer-links a:hover {
    color: #ff8f78;
}

.rs-shell-footer-chat {
    border: 0;
    background: transparent;
    padding: 0;
    font: inherit;
    font-weight: 600;
    color: rgba(244, 245, 247, 0.78);
    cursor: pointer;
}

.rs-shell-footer-chat:hover {
    color: #ff8f78;
}

.rs-shell-chat-btn {
    border: 0;
    cursor: pointer;
}

@media (min-width: 860px) {
    .rs-shell-nav {
        display: flex;
    }

    .rs-shell-link {
        display: inline-flex;
    }
}

.fi-topbar,
.fi-sidebar {
    border-color: var(--rs-line) !important;
}

.fi-topbar {
    background: rgba(247, 248, 250, 0.92) !important;
    backdrop-filter: blur(12px);
}

.fi-sidebar-header {
    border-color: var(--rs-line) !important;
}

.fi-btn {
    border-radius: 999px !important;
}

.fi-btn.fi-btn-color-primary {
    background-color: var(--rs-ink) !important;
}

.fi-btn.fi-btn-color-primary:hover,
.fi-btn.fi-btn-color-primary:focus-visible {
    background-color: var(--rs-signal) !important;
}

.fi-ac-btn-action.fi-color-primary {
    background-color: var(--rs-ink) !important;
}

.fi-ac-btn-action.fi-color-primary:hover {
    background-color: var(--rs-signal) !important;
}

.fi-input-wrp,
.fi-fo-text-input,
.fi-select-input {
    border-radius: 0.85rem !important;
}

.fi-section,
.fi-wi-stats-overview-stat,
.fi-ta-ctn {
    border-radius: 1rem !important;
}

.rs-surface {
    border-radius: 1rem;
    border: 1px solid var(--rs-line);
    background: #fff;
}

.rs-hero {
    border-radius: 1.25rem;
    background: linear-gradient(135deg, var(--rs-ink) 0%, #1f2430 55%, var(--rs-signal-dark) 100%);
    color: #fff;
}

.rs-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(226, 59, 28, 0.1);
    color: var(--rs-signal-dark);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.35rem 0.75rem;
}

.rs-accent-card {
    border-radius: 1.25rem;
    background: linear-gradient(135deg, var(--rs-signal) 0%, var(--rs-signal-dark) 100%);
    color: #fff;
}

/* —— Google auth button —— */
.rs-google-wrap {
    margin-bottom: 0.25rem;
}

.rs-google-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 2.85rem;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--rs-line);
    background: #fff;
    color: var(--rs-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.rs-google-btn:hover {
    border-color: rgba(16, 18, 24, 0.35);
    box-shadow: 0 6px 18px rgba(16, 18, 24, 0.08);
}

.rs-google-icon {
    width: 1.15rem;
    height: 1.15rem;
    flex-shrink: 0;
}

.rs-google-hint {
    margin: 0.55rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(16, 18, 24, 0.55);
}

.rs-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.1rem 0 0.35rem;
    color: rgba(16, 18, 24, 0.45);
    font-size: 0.8rem;
    font-weight: 500;
}

.rs-auth-divider::before,
.rs-auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rs-line);
}

.rs-auth-divider span {
    white-space: nowrap;
}

/* —— Onboarding first screen —— */
.rs-onboarding,
.rs-onboarding h2,
.rs-onboarding h3,
.rs-onboarding p,
.rs-onboarding li {
    background: transparent !important;
}

.rs-onboarding .fi-fo-field-wrp-label,
.rs-onboarding .fi-fo-field-wrp-helper-text {
    background: transparent !important;
}

@media (max-width: 640px) {
    .rs-onboarding .rs-surface {
        padding: 1rem !important;
    }

    .rs-shell-header {
        padding: 0.75rem 0.85rem;
    }

    .rs-shell-nav {
        display: none !important;
    }
}

/* —— Card-first activation (with brand chrome + plans) —— */
.rs-activate {
    width: min(100%, 580px);
    margin: 1rem auto 2rem;
    padding: 0 0.5rem;
}

.rs-activate-wide {
    width: min(100%, 1080px);
}

.rs-activate-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 960px) {
    .rs-activate-grid {
        grid-template-columns: 1.05fr 1fr;
        align-items: start;
    }
}

.rs-activate-intent {
    margin: 0 0 1rem;
    padding: 0.95rem 1.1rem;
    border-radius: 1rem;
    border: 1px solid rgba(226, 59, 28, 0.25);
    background: rgba(226, 59, 28, 0.06);
}

.rs-activate-intent strong {
    display: block;
    font-family: var(--rs-font-display);
    color: var(--rs-ink);
}

.rs-activate-intent p {
    margin: 0.35rem 0 0;
    font-size: 0.9rem;
    color: rgba(16, 18, 24, 0.7);
    line-height: 1.45;
}

.rs-activate-intent-steps {
    font-size: 0.85rem !important;
}

.rs-plan-context {
    margin-bottom: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid var(--rs-line);
    background: #fafbfc;
}

.rs-plan-context strong {
    display: block;
    color: var(--rs-ink);
    font-size: 0.95rem;
}

.rs-plan-context p {
    margin: 0.35rem 0 0;
    font-size: 0.85rem;
    color: rgba(16, 18, 24, 0.65);
    line-height: 1.45;
}

.rs-plan-context-next {
    color: var(--rs-ink) !important;
    font-weight: 600;
}

.rs-activate-grid {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 960px) {
    .rs-activate-grid {
        grid-template-columns: 1.05fr 1fr;
        align-items: start;
    }
}

.rs-activate-user {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rs-activate-welcome {
    margin: 0;
    font-family: var(--rs-font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--rs-ink);
}

.rs-activate-email {
    margin: 0.15rem 0 0;
    font-size: 0.85rem;
    color: rgba(16, 18, 24, 0.55);
    word-break: break-all;
}

.rs-activate-logout {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(16, 18, 24, 0.65);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.rs-activate-logout:hover {
    color: var(--rs-signal);
}

.rs-activate-card {
    background: #fff;
    border: 1px solid var(--rs-line);
    border-radius: 1.15rem;
    padding: 1.35rem 1.35rem 1.5rem;
    box-shadow: 0 18px 48px rgba(16, 18, 24, 0.06);
}

.rs-activate-title {
    margin: 0;
    font-family: var(--rs-font-display);
    font-size: clamp(1.35rem, 3vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--rs-ink);
    line-height: 1.15;
}

.rs-activate-lead {
    margin: 0.65rem 0 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: rgba(16, 18, 24, 0.68);
}

.rs-activate-list {
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
    font-size: 0.92rem;
    color: var(--rs-ink);
}

.rs-activate-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1.25rem;
    min-height: 2.9rem;
    padding: 0.75rem 1.1rem;
    border: 0;
    border-radius: 999px;
    background: var(--rs-ink);
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    cursor: pointer;
}

.rs-activate-btn:hover:not(:disabled) {
    background: var(--rs-signal);
}

.rs-activate-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.rs-activate-fine {
    margin: 0.7rem 0 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(16, 18, 24, 0.5);
}

.rs-activate-alert,
.rs-activate-success {
    margin-top: 0.85rem;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    font-size: 0.9rem;
}

.rs-activate-alert {
    background: rgba(226, 59, 28, 0.08);
    color: var(--rs-signal-dark);
}

.rs-activate-success {
    background: rgba(16, 18, 24, 0.04);
    color: var(--rs-ink);
}

.rs-activate-plans {
    background: #fff;
    border: 1px solid var(--rs-line);
    border-radius: 1.15rem;
    padding: 1.25rem;
    box-shadow: 0 18px 48px rgba(16, 18, 24, 0.04);
}

.rs-activate-plans-head h2 {
    margin: 0;
    font-family: var(--rs-font-display);
    font-size: 1.2rem;
    color: var(--rs-ink);
}

.rs-activate-plans-head p {
    margin: 0.35rem 0 0;
    font-size: 0.88rem;
    color: rgba(16, 18, 24, 0.6);
}

.rs-plan-grid {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .rs-plan-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.rs-plan {
    border: 1px solid var(--rs-line);
    border-radius: 0.95rem;
    padding: 0.9rem 1rem;
    background: #fafbfc;
}

.rs-plan-featured {
    border-color: rgba(226, 59, 28, 0.45);
    background: rgba(226, 59, 28, 0.05);
    box-shadow: inset 0 0 0 1px rgba(226, 59, 28, 0.08);
}

.rs-plan-badge {
    display: inline-flex;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--rs-signal-dark);
}

.rs-plan h3 {
    margin: 0.35rem 0 0;
    font-size: 1.05rem;
    color: var(--rs-ink);
}

.rs-plan-price {
    margin: 0.35rem 0 0;
    color: var(--rs-ink);
}

.rs-plan-price strong {
    font-size: 1.35rem;
    font-family: var(--rs-font-display);
}

.rs-plan-price span {
    font-size: 0.85rem;
    color: rgba(16, 18, 24, 0.55);
}

.rs-plan-blurb {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    color: rgba(16, 18, 24, 0.65);
    line-height: 1.4;
}

.rs-plan-cta {
    margin: 0.65rem 0 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(16, 18, 24, 0.55);
}

.rs-activate-plans-note {
    margin: 1rem 0 0;
    font-size: 0.82rem;
    color: rgba(16, 18, 24, 0.6);
}

.rs-activate-plans-note a {
    color: var(--rs-signal-dark);
    font-weight: 600;
    text-decoration: none;
}

.rs-activate-plans-note a:hover {
    text-decoration: underline;
}

body.fi-body:has(.rs-activate) .fi-simple-main {
    background: transparent !important;
}

/* —— Settings hub (activation + /settings) —— */
.rs-settings-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 0 0 1.15rem;
}

.rs-settings-step {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.9rem;
    border: 1px solid var(--rs-line);
    background: #fff;
    opacity: 0.72;
}

.rs-settings-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.65rem;
    height: 1.65rem;
    border-radius: 999px;
    background: rgba(16, 18, 24, 0.06);
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.rs-settings-step strong {
    display: block;
    font-size: 0.82rem;
    color: var(--rs-ink);
}

.rs-settings-step small {
    display: block;
    font-size: 0.72rem;
    color: rgba(16, 18, 24, 0.55);
}

.rs-settings-step.is-active {
    opacity: 1;
    border-color: rgba(226, 59, 28, 0.35);
    background: rgba(226, 59, 28, 0.05);
}

.rs-settings-step.is-active span {
    background: var(--rs-signal);
    color: #fff;
}

.rs-settings-step.is-done {
    opacity: 1;
}

.rs-settings-step.is-done span {
    background: var(--rs-ink);
    color: #fff;
}

@media (max-width: 720px) {
    .rs-settings-steps {
        grid-template-columns: 1fr;
    }
}

.rs-settings-side {
    display: grid;
    gap: 0.85rem;
}

.rs-settings-side-card {
    background: #fff;
    border: 1px solid var(--rs-line);
    border-radius: 1.15rem;
    padding: 1.15rem 1.2rem;
    box-shadow: 0 14px 36px rgba(16, 18, 24, 0.04);
}

.rs-settings-side-card h2 {
    margin: 0;
    font-family: var(--rs-font-display);
    font-size: 1.05rem;
    color: var(--rs-ink);
}

.rs-settings-side-card p {
    margin: 0.4rem 0 0;
    font-size: 0.88rem;
    color: rgba(16, 18, 24, 0.65);
    line-height: 1.45;
}

.rs-settings-side-card ul {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--rs-ink);
    line-height: 1.4;
}

.rs-settings-side-signal {
    border-color: rgba(226, 59, 28, 0.28);
    background: rgba(226, 59, 28, 0.06);
}

.rs-settings {
    display: grid;
    gap: 1.25rem;
}

.rs-settings-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.35rem;
    border-radius: 1.15rem;
    border: 1px solid var(--rs-line);
    background: #fff;
}

.rs-settings-kicker {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(16, 18, 24, 0.5);
}

.rs-settings-title {
    margin: 0.25rem 0 0;
    font-family: var(--rs-font-display);
    font-size: clamp(1.5rem, 3vw, 1.9rem);
    color: var(--rs-ink);
    letter-spacing: -0.03em;
}

.rs-settings-lead {
    margin: 0.45rem 0 0;
    max-width: 42rem;
    font-size: 0.95rem;
    color: rgba(16, 18, 24, 0.65);
    line-height: 1.5;
}

.rs-settings-plan-chip {
    display: grid;
    gap: 0.15rem;
    padding: 0.7rem 1rem;
    border-radius: 0.9rem;
    background: rgba(16, 18, 24, 0.04);
    text-align: right;
}

.rs-settings-plan-chip span {
    font-weight: 700;
    color: var(--rs-ink);
}

.rs-settings-plan-chip small {
    font-size: 0.78rem;
    color: rgba(16, 18, 24, 0.55);
}

.rs-settings-layout {
    display: grid;
    gap: 1rem;
}

@media (min-width: 900px) {
    .rs-settings-layout {
        grid-template-columns: 14rem minmax(0, 1fr);
        align-items: start;
    }
}

.rs-settings-nav {
    display: grid;
    gap: 0.35rem;
}

.rs-settings-nav button {
    text-align: left;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 0.75rem;
    padding: 0.7rem 0.85rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(16, 18, 24, 0.7);
    cursor: pointer;
}

.rs-settings-nav button:hover {
    background: rgba(16, 18, 24, 0.04);
    color: var(--rs-ink);
}

.rs-settings-nav button.is-active {
    background: rgba(226, 59, 28, 0.08);
    border-color: rgba(226, 59, 28, 0.22);
    color: var(--rs-signal-dark);
}

.rs-settings-card {
    background: #fff;
    border: 1px solid var(--rs-line);
    border-radius: 1.15rem;
    padding: 1.35rem;
    box-shadow: 0 14px 36px rgba(16, 18, 24, 0.04);
}

.rs-settings-card h3 {
    margin: 0;
    font-family: var(--rs-font-display);
    font-size: 1.25rem;
    color: var(--rs-ink);
}

.rs-settings-card > p {
    margin: 0.4rem 0 0;
    font-size: 0.92rem;
    color: rgba(16, 18, 24, 0.65);
    line-height: 1.5;
}

.rs-settings-dl {
    margin: 1.15rem 0 0;
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
}

.rs-settings-dl dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(16, 18, 24, 0.5);
}

.rs-settings-dl dd {
    margin: 0.2rem 0 0;
    font-weight: 600;
    color: var(--rs-ink);
    word-break: break-word;
}

.rs-settings-note {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    font-size: 0.9rem;
}

.rs-settings-fine {
    margin: 0.85rem 0 0;
    font-size: 0.82rem;
    color: rgba(16, 18, 24, 0.55);
    line-height: 1.45;
}

/* —— HireLatch SaaS onboarding v2 —— */
body.fi-body:has(.hl-onboard) {
    background: #F4F5F7 !important;
}
body.fi-body:has(.hl-onboard) .fi-simple-main-ctn {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
    max-width: none !important;
    width: 100% !important;
}
body.fi-body:has(.hl-onboard) .fi-simple-main,
body.fi-body:has(.hl-onboard) .fi-simple-layout {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hl-onboard {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #F4F5F7;
}

.hl-top {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #E5E7EB;
}

.hl-top-inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0.85rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.hl-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: inherit;
}

.hl-logo-mark {
    width: 2rem;
    height: 2rem;
    border-radius: 0.55rem;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}

.hl-logo-text {
    display: grid;
    line-height: 1.15;
}
.hl-logo-text strong {
    font-size: 0.95rem;
    color: #111827;
}
.hl-logo-text small {
    font-size: 0.72rem;
    color: #667085;
    font-weight: 500;
}

.hl-top-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hl-top-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #667085;
    text-decoration: none;
}
.hl-top-link:hover { color: #e23b1c; }

.hl-menu { position: relative; }
.hl-menu-trigger {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
}
.hl-menu-trigger::-webkit-details-marker { display: none; }

.hl-menu-meta {
    display: none;
    text-align: right;
    line-height: 1.2;
}
.hl-menu-meta strong {
    display: block;
    font-size: 0.82rem;
    color: #111827;
}
.hl-menu-meta small {
    display: block;
    font-size: 0.72rem;
    color: #667085;
    max-width: 12rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 640px) {
    .hl-menu-meta { display: block; }
}

.hl-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.hl-menu-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    width: 15rem;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 0.75rem;
    padding: 0.4rem;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.08);
}
.hl-menu-id {
    padding: 0.55rem 0.65rem 0.7rem;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 0.25rem;
}
.hl-menu-id strong {
    display: block;
    font-size: 0.85rem;
    color: #111827;
}
.hl-menu-id span {
    display: block;
    font-size: 0.75rem;
    color: #667085;
    word-break: break-all;
}
.hl-menu-panel a,
.hl-menu-panel button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.55rem 0.65rem;
    border-radius: 0.5rem;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
}
.hl-menu-panel a:hover,
.hl-menu-panel button:hover { background: #F4F5F7; }

.hl-stage {
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 1.5rem 1.15rem 3rem;
    flex: 1;
}

.hl-steps { margin-bottom: 1.35rem; }
.hl-steps-labels {
    display: flex;
    justify-content: space-between;
    gap: 0.35rem;
    margin-bottom: 0.55rem;
}
.hl-steps-labels span {
    font-size: 0.72rem;
    font-weight: 600;
    color: #98A2B3;
}
.hl-steps-labels .is-done,
.hl-steps-labels .is-current { color: #111827; }
.hl-steps-labels .is-current { color: #e23b1c; }

.hl-steps-track {
    height: 4px;
    border-radius: 999px;
    background: #E5E7EB;
    overflow: hidden;
}
.hl-steps-fill {
    height: 100%;
    background: #e23b1c;
    border-radius: inherit;
    transition: width 0.25s ease;
}

.hl-sheet {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 1.5rem 1.35rem 1.4rem;
}

.hl-sheet h1 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #111827;
    line-height: 1.25;
}

.hl-sub {
    margin: 0.45rem 0 0;
    font-size: 0.9rem;
    line-height: 1.45;
    color: #667085;
}

.hl-ticks {
    margin: 1.15rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}
.hl-ticks li {
    position: relative;
    padding-left: 1.35rem;
    font-size: 0.9rem;
    color: #111827;
}
.hl-ticks li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: #12B76A;
    box-shadow: inset 0 0 0 2px #ECFDF3;
}

.hl-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1.25rem;
    min-height: 2.75rem;
    border: 0;
    border-radius: 10px;
    background: #111827;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
}
.hl-cta:hover:not(:disabled) { background: #e23b1c; }
.hl-cta:disabled { opacity: 0.55; cursor: not-allowed; }

.hl-note {
    margin: 0.7rem 0 0;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #98A2B3;
}

.hl-plan-chip {
    margin-top: 1rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.82rem;
}
.hl-plan-chip span { color: #667085; font-weight: 600; }
.hl-plan-chip strong { color: #111827; font-weight: 650; }

.hl-banner {
    margin: 0 0 1rem;
    padding: 0.65rem 0.8rem;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.4;
}
.hl-banner.is-ok {
    background: #ECFDF3;
    color: #027A48;
}
.hl-banner.is-danger {
    background: #FEF3F2;
    color: #B42318;
}

.hl-form {
    margin-top: 1.1rem;
    display: grid;
    gap: 0.85rem;
}
.hl-form .fi-fo-field-wrp { margin: 0; }
.hl-onboard .fi-input,
.hl-onboard input[type="text"],
.hl-onboard input[type="url"],
.hl-onboard input[type="email"] {
    border-radius: 10px !important;
}

.hl-onboard-bare .hl-stage {
    padding-top: 2.5rem;
}
.hl-logout-only {
    margin-top: 1.1rem;
    text-align: center;
}
.hl-logout-only button {
    border: 0;
    background: transparent;
    color: #98A2B3;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.hl-logout-only button:hover { color: #667085; }

/* Setup pages inside full Filament shell */
.hl-setup { display: grid; gap: 1.25rem; max-width: 920px; }
.hl-setup-grid {
  display: grid;
  gap: 1rem;
}
@media (min-width: 900px) {
  .hl-setup-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.7fr);
    align-items: start;
  }
}
.hl-setup .hl-sheet {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 14px;
  padding: 1.35rem 1.25rem;
}
.hl-setup .hl-sheet h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}
.hl-setup .hl-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #667085;
}
.hl-setup .hl-side-title {
  margin: 0.35rem 0 0;
  font-size: 1.1rem;
  font-weight: 700;
  color: #111827;
}
.hl-setup .hl-side-price {
  margin: 0.25rem 0 0.85rem;
  color: #667085;
  font-size: 0.9rem;
}

/* —— Client app dark header/footer (same palette as admin shell) —— */
.rs-app-header {
    position: sticky;
    top: 0;
    z-index: 45;
    background: rgba(16, 18, 24, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: #f4f5f7;
}
.rs-app-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem clamp(1rem, 2.5vw, 1.75rem);
    min-height: 3.75rem;
}
.rs-app-header-left,
.rs-app-header-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}
.rs-app-header-product {
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.03em;
    color: #fff;
}
.rs-app-header-sep {
    width: 1px;
    height: 1.1rem;
    background: rgba(255, 255, 255, 0.18);
}
.rs-app-header-workspace {
    font-size: 0.85rem;
    color: rgba(244, 245, 247, 0.62);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 18rem;
}
.rs-app-header-link {
    color: rgba(244, 245, 247, 0.78);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}
.rs-app-header-link:hover { color: #fff; }
.rs-app-header-link.is-strong {
    color: #fff;
    font-weight: 700;
}
.rs-app-header-product {
    text-decoration: none;
}
a.rs-app-header-product:hover {
    color: #fff;
}
body.fi-body:has(.rs-auth-header) .fi-simple-layout {
    min-height: calc(100vh - 7.5rem);
}
body.fi-body:has(.rs-auth-header) .fi-simple-main-ctn {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
}
.rs-app-header-chat {
    border: 0;
    border-radius: 999px;
    min-height: 2.25rem;
    padding: 0.4rem 0.95rem;
    background: var(--rs-signal);
    color: #fff;
    font: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
}
.rs-app-header-chat:hover { background: #ff4f33; }
.rs-app-header-user {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.rs-app-header-user-meta {
    display: none;
    text-align: right;
    line-height: 1.15;
}
.rs-app-header-user-meta strong {
    display: block;
    font-size: 0.8rem;
    color: #fff;
}
.rs-app-header-user-meta small {
    display: block;
    font-size: 0.7rem;
    color: rgba(244, 245, 247, 0.55);
    max-width: 10rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (min-width: 760px) {
    .rs-app-header-user-meta { display: block; }
}
.rs-app-header-avatar {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: #fff;
    color: #101218;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
}

.rs-app-footer {
    margin-top: auto;
    background: #101218;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(244, 245, 247, 0.65);
    font-size: 0.85rem;
}
.rs-app-footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.5rem;
    justify-content: space-between;
    align-items: center;
    padding: 1.15rem clamp(1rem, 2.5vw, 1.75rem);
}
.rs-app-footer strong {
    color: #fff;
    margin-right: 0.4rem;
}
.rs-app-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.15rem;
}
.rs-app-footer-links a {
    color: rgba(244, 245, 247, 0.78);
    text-decoration: none;
    font-weight: 600;
}
.rs-app-footer-links a:hover { color: #fff; }

body.fi-body:has(.rs-app-header) {
    background: #F4F5F7 !important;
}
body.fi-body:has(.rs-app-header) .fi-layout {
    background: #F4F5F7 !important;
}
body.fi-body:has(.rs-app-header) .fi-sidebar {
    background: #fff !important;
    border-right: 1px solid #E5E7EB !important;
}
body.fi-body:has(.rs-app-header) .fi-topbar {
    background: #fff !important;
    border-bottom: 1px solid #E5E7EB !important;
}

/* —— Modern Overview dashboard —— */
.hl-dash {
    display: grid;
    gap: 1.15rem;
}
.hl-dash-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    padding: 1.35rem 1.4rem;
    border-radius: 16px;
    background: linear-gradient(135deg, #101218 0%, #1c2230 70%, #2a130f 100%);
    color: #fff;
}
.hl-dash-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}
.hl-dash-hero h1 {
    margin: 0.3rem 0 0;
    font-size: clamp(1.45rem, 2.5vw, 1.85rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}
.hl-dash-hero p {
    margin: 0.4rem 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    max-width: 36rem;
}
.hl-dash-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: center;
}
.hl-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.78rem;
    font-weight: 650;
}
.hl-status::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #F97066;
}
.hl-status.is-on::before { background: #32D583; }
.hl-dash-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.35rem;
    padding: 0.45rem 0.95rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #fff;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 650;
    background: transparent;
}
.hl-dash-btn:hover { border-color: #fff; }
.hl-dash-btn.solid,
.hl-dash-card .hl-dash-btn.solid {
    background: #111827;
    border-color: #111827;
    color: #fff;
}
.hl-dash-card .hl-dash-btn {
    border-color: #E5E7EB;
    color: #111827;
    background: #fff;
}
.hl-dash-card .hl-dash-btn:hover { border-color: #111827; }
.hl-dash-card .hl-dash-btn.solid:hover { background: #e23b1c; border-color: #e23b1c; }

.hl-dash-metrics {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 960px) {
    .hl-dash-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hl-dash-metrics article {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 1rem 1.1rem;
}
.hl-dash-metrics p {
    margin: 0;
    font-size: 0.78rem;
    color: #667085;
    font-weight: 600;
}
.hl-dash-metrics strong {
    display: block;
    margin-top: 0.35rem;
    font-size: 1.7rem;
    letter-spacing: -0.03em;
    color: #111827;
}
.hl-dash-metrics span,
.hl-dash-metrics a {
    display: inline-block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #667085;
    text-decoration: none;
}
.hl-dash-metrics a:hover { color: #e23b1c; }

.hl-dash-split {
    display: grid;
    gap: 1rem;
}
@media (min-width: 980px) {
    .hl-dash-split { grid-template-columns: 0.95fr 1.05fr; }
}
.hl-dash-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 1.2rem 1.25rem;
}
.hl-dash-card h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111827;
}
.hl-dash-card > p {
    margin: 0.45rem 0 0;
    color: #667085;
    font-size: 0.9rem;
}
.hl-dash-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.hl-dash-card-head a {
    font-size: 0.8rem;
    font-weight: 650;
    color: #e23b1c;
    text-decoration: none;
}
.hl-dash-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.9rem;
}
.hl-dash-empty {
    margin: 0;
    color: #667085;
    font-size: 0.9rem;
}
.hl-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}
.hl-dash-table th,
.hl-dash-table td {
    text-align: left;
    padding: 0.55rem 0.3rem;
    border-bottom: 1px solid #E5E7EB;
    color: #111827;
}
.hl-dash-table th {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #667085;
}
.hl-dash-feed {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}
.hl-dash-feed li {
    display: flex;
    justify-content: space-between;
    gap: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #E5E7EB;
}
.hl-dash-feed li:last-child { border-bottom: 0; padding-bottom: 0; }
.hl-dash-feed strong {
    font-size: 0.86rem;
    font-weight: 500;
    color: #111827;
}
.hl-dash-feed span {
    flex-shrink: 0;
    font-size: 0.74rem;
    color: #667085;
}
.hl-dash-widget-slot > .fi-wi-widget,
.hl-dash-widget-slot > div {
    margin: 0 !important;
}

/* Setup progress with fill lines */
.hl-setup-card {
    background: transparent;
    border: 0;
    padding: 0;
}
.hl-setup-card-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 0.75rem;
}
.hl-setup-kicker {
    margin: 0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #667085;
}
.hl-setup-card h2 {
    margin: 0.25rem 0 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: #111827;
}
.hl-setup-pct {
    text-align: right;
}
.hl-setup-pct strong {
    display: block;
    font-size: 1.35rem;
    color: #e23b1c;
    letter-spacing: -0.03em;
}
.hl-setup-pct span {
    font-size: 0.75rem;
    color: #667085;
}
.hl-setup-progress {
    height: 8px;
    border-radius: 999px;
    background: #E5E7EB;
    overflow: hidden;
    margin-bottom: 1rem;
}
.hl-setup-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e23b1c, #ff6a4d);
    transition: width 0.35s ease;
}
.hl-setup-trial {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 0.95rem;
    border-radius: 12px;
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    margin-bottom: 0.95rem;
}
.hl-setup-trial strong {
    display: block;
    font-size: 0.86rem;
    color: #111827;
}
.hl-setup-trial p {
    margin: 0.2rem 0 0;
    font-size: 0.8rem;
    color: #667085;
}
.hl-setup-trial a {
    font-size: 0.82rem;
    font-weight: 700;
    color: #e23b1c;
    text-decoration: none;
}
.hl-setup-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.7rem;
}
.hl-setup-steps li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #fff;
}
.hl-setup-steps li.is-done {
    background: #F9FAFB;
}
.hl-setup-step-main {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
    flex: 1;
}
.hl-setup-check {
    width: 1.55rem;
    height: 1.55rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    background: #F2F4F7;
    color: #667085;
}
.hl-setup-steps li.is-done .hl-setup-check {
    background: #e23b1c;
    color: #fff;
}
.hl-setup-step-main strong {
    display: block;
    font-size: 0.88rem;
    color: #111827;
    font-weight: 600;
}
.hl-setup-steps li.is-done .hl-setup-step-main strong {
    color: #667085;
}
.hl-setup-step-bar {
    margin-top: 0.35rem;
    height: 5px;
    width: min(100%, 14rem);
    border-radius: 999px;
    background: #E5E7EB;
    overflow: hidden;
}
.hl-setup-step-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #D0D5DD;
}
.hl-setup-steps li.is-done .hl-setup-step-bar span {
    background: linear-gradient(90deg, #e23b1c, #ff6a4d);
}
.hl-setup-steps a {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e23b1c;
    text-decoration: none;
}
.hl-setup-done-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #12B76A;
}
.hl-setup-embed {
    margin-top: 0.9rem;
}
.hl-setup-embed summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 650;
    color: #667085;
}
.hl-setup-embed pre {
    margin: 0.55rem 0 0;
    padding: 0.85rem;
    border-radius: 10px;
    background: #101218;
    color: #F4F5F7;
    font-size: 0.72rem;
    overflow-x: auto;
}
.hl-setup-done-note {
    margin: 0.85rem 0 0;
    font-size: 0.86rem;
    color: #667085;
}

/* —— Initial setup progress scale —— */
.hl-scale {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 1rem 1.1rem 1.05rem;
    margin-bottom: 1rem;
}
.hl-scale-meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 0.7rem;
}
.hl-scale-kicker {
    margin: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #667085;
}
.hl-scale-meta > div > strong {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.95rem;
    color: #111827;
}
.hl-scale-pct {
    text-align: right;
}
.hl-scale-pct span {
    display: block;
    font-size: 1.25rem;
    font-weight: 700;
    color: #e23b1c;
    letter-spacing: -0.03em;
    line-height: 1;
}
.hl-scale-pct small {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.72rem;
    color: #667085;
}
.hl-scale-track {
    height: 8px;
    border-radius: 999px;
    background: #E5E7EB;
    overflow: hidden;
    margin-bottom: 0.95rem;
}
.hl-scale-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #e23b1c, #ff6a4d);
    transition: width 0.3s ease;
}
.hl-scale-steps {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.55rem;
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .hl-scale-steps {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.65rem;
    }
}
.hl-scale-steps li {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    padding: 0.65rem 0.7rem;
    border-radius: 10px;
    border: 1px solid #E5E7EB;
    background: #F9FAFB;
    min-width: 0;
}
.hl-scale-steps li.is-done {
    border-color: rgba(226, 59, 28, 0.28);
    background: rgba(226, 59, 28, 0.05);
}
.hl-scale-steps li.is-current {
    border-color: #e23b1c;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(226, 59, 28, 0.12);
}
.hl-scale-dot {
    width: 1.45rem;
    height: 1.45rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    background: #E5E7EB;
    color: #667085;
}
.hl-scale-steps li.is-done .hl-scale-dot {
    background: #e23b1c;
    color: #fff;
}
.hl-scale-steps li.is-current .hl-scale-dot {
    background: #111827;
    color: #fff;
}
.hl-scale-steps strong {
    display: block;
    font-size: 0.82rem;
    color: #111827;
    line-height: 1.2;
}
.hl-scale-steps small {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.72rem;
    color: #667085;
}
.hl-scale-steps em {
    display: block;
    margin-top: 0.25rem;
    font-style: normal;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #98A2B3;
}
.hl-scale-steps li.is-done em { color: #12B76A; }
.hl-scale-steps li.is-current em { color: #e23b1c; }

/* Plan bar at top of content */
.hl-plan-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    padding: 0.85rem 1.05rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    border: 1px solid rgba(226, 59, 28, 0.22);
    background: linear-gradient(90deg, rgba(226, 59, 28, 0.08), #fff 55%);
}
.hl-plan-bar-kicker {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #667085;
}
.hl-plan-bar-main strong {
    display: inline-block;
    margin-right: 0.45rem;
    font-size: 1.05rem;
    color: #111827;
}
.hl-plan-bar-status {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 650;
}
.hl-plan-bar-price {
    text-align: right;
}
.hl-plan-bar-price strong {
    display: block;
    font-size: 1.15rem;
    color: #e23b1c;
    letter-spacing: -0.02em;
}
.hl-plan-bar-price span {
    font-size: 0.78rem;
    color: #667085;
}

.hl-plan-page { display: grid; gap: 1.15rem; max-width: 1120px; }
.hl-plan-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}
.hl-plan-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}
@media (min-width: 800px) {
    .hl-plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
    .hl-plan-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hl-plan-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 1rem 1rem 1.05rem;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}
.hl-plan-card.is-popular:not(.is-selected):not(.is-current) {
    border-color: rgba(226, 59, 28, 0.35);
}
.hl-plan-card.is-current {
    border-color: rgba(226, 59, 28, 0.45);
    box-shadow: inset 0 0 0 1px rgba(226, 59, 28, 0.12);
}
.hl-plan-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
}
.hl-plan-card h3 {
    margin: 0;
    font-size: 1rem;
    color: #111827;
}
.hl-plan-current {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #e23b1c;
}
.hl-plan-card-price {
    margin: 0.45rem 0 0;
    color: #111827;
}
.hl-plan-card-price strong {
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}
.hl-plan-card-price span {
    font-size: 0.8rem;
    color: #667085;
}
.hl-plan-card-blurb {
    margin: 0.4rem 0 0;
    font-size: 0.82rem;
    color: #667085;
    line-height: 1.4;
}
.hl-plan-card-hook {
    margin: 0.35rem 0 0;
    font-size: 0.78rem;
    font-weight: 650;
    color: #c22f14;
    line-height: 1.35;
}
.hl-plan-features {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.35rem;
    flex: 1 1 auto;
}
.hl-plan-features li {
    position: relative;
    padding-left: 1rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #344054;
}
.hl-plan-features li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 999px;
    background: #e23b1c;
}
.hl-plan-card-cta {
    margin: 0.85rem 0 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: #12B76A;
}
.hl-plan-card a {
    display: inline-block;
    margin-top: 0.75rem;
    font-size: 0.82rem;
    font-weight: 700;
    color: #e23b1c;
    text-decoration: none;
}
.hl-plan-footnote {
    margin: 0;
    font-size: 0.8rem;
    color: #667085;
    line-height: 1.45;
}

.hl-plan-hint {
    margin: 0;
    font-size: 0.86rem;
    color: #667085;
}
button.hl-plan-card {
    display: flex;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
button.hl-plan-card:hover {
    border-color: #D0D5DD;
}
button.hl-plan-card.is-selected {
    border: 2px solid #e23b1c;
    background: linear-gradient(180deg, rgba(226, 59, 28, 0.12) 0%, rgba(226, 59, 28, 0.04) 100%);
    box-shadow: 0 0 0 3px rgba(226, 59, 28, 0.22), 0 8px 20px rgba(226, 59, 28, 0.12);
    transform: translateY(-2px);
}
button.hl-plan-card.is-selected h3 {
    color: #c22f14;
}
button.hl-plan-card.is-current:not(.is-selected) {
    border-color: #D0D5DD;
    box-shadow: none;
    background: #fff;
}
.hl-plan-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    white-space: nowrap;
}
.hl-plan-badge.is-yours {
    background: #ECFDF3;
    color: #027A48;
}
.hl-plan-badge.is-pick {
    background: #e23b1c;
    color: #fff;
}
.hl-plan-badge.is-hot {
    background: #111827;
    color: #fff;
}
.hl-plan-card-cta.is-pick { color: #e23b1c; }
.hl-plan-card-cta.muted { color: #98A2B3; font-weight: 600; }
.hl-dash-btn.solid.is-disabled,
.hl-dash-btn.solid:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.hl-custom-grid-wrap {
    display: grid;
    gap: 0.85rem;
    margin-top: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E7EB;
}
.hl-custom-grid-head h2 {
    margin: 0;
    font-size: 1.05rem;
    color: #111827;
    letter-spacing: -0.02em;
}
.hl-custom-grid-head p {
    margin: 0.35rem 0 0;
    font-size: 0.86rem;
    color: #667085;
    line-height: 1.45;
    max-width: 52rem;
}
.hl-custom-grid {
    display: grid;
    gap: 0.85rem;
    grid-template-columns: 1fr;
}
@media (min-width: 800px) {
    .hl-custom-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
    .hl-custom-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.hl-custom-card {
    background: #F8FAFC;
    border: 1px solid #E5E7EB;
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}
.hl-custom-card-top {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: baseline;
}
.hl-custom-card h3 {
    margin: 0;
    font-size: 0.95rem;
    color: #111827;
}
.hl-custom-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: #e23b1c;
    white-space: nowrap;
}
.hl-custom-blurb {
    margin: 0.45rem 0 0;
    font-size: 0.8rem;
    color: #667085;
    line-height: 1.4;
}
.hl-custom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.85rem;
}
.hl-custom-actions .hl-dash-btn {
    font-size: 0.78rem;
    padding: 0.45rem 0.7rem;
}

/* Sidebar active item: clear red accent that follows the open page */
body.fi-body .fi-sidebar-item.fi-active > .fi-sidebar-item-button,
body.fi-body .fi-sidebar-item.fi-active .fi-sidebar-item-button {
    background: rgba(226, 59, 28, 0.1) !important;
}
body.fi-body .fi-sidebar-item.fi-active .fi-sidebar-item-label,
body.fi-body .fi-sidebar-item.fi-active .fi-sidebar-item-icon {
    color: #e23b1c !important;
}

.rs-app-account {
    position: relative;
}
.rs-app-account-trigger {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    cursor: pointer;
    border-radius: 999px;
    padding: 0.15rem 0.15rem 0.15rem 0.35rem;
}
.rs-app-account-trigger::-webkit-details-marker { display: none; }
.rs-app-account-trigger:hover {
    background: rgba(255, 255, 255, 0.08);
}
.rs-app-account[open] .rs-app-account-trigger {
    background: rgba(255, 255, 255, 0.12);
}
.rs-app-account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    width: 16rem;
    background: #fff;
    color: #111827;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: 0 14px 36px rgba(16, 18, 24, 0.18);
    z-index: 60;
}
.rs-app-account-id {
    padding: 0.65rem 0.7rem 0.75rem;
    border-bottom: 1px solid #E5E7EB;
    margin-bottom: 0.3rem;
}
.rs-app-account-id strong {
    display: block;
    font-size: 0.88rem;
    color: #111827;
}
.rs-app-account-id span {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #667085;
    word-break: break-all;
}
.rs-app-account-id em {
    display: block;
    margin-top: 0.25rem;
    font-style: normal;
    font-size: 0.72rem;
    color: #98A2B3;
}
.rs-app-account-menu a,
.rs-app-account-menu button {
    display: block;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 0.6rem 0.7rem;
    border-radius: 8px;
    font: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    color: #111827;
    text-decoration: none;
    cursor: pointer;
}
.rs-app-account-menu a:hover,
.rs-app-account-menu button:hover {
    background: #F4F5F7;
}
.rs-app-account-menu button.is-danger {
    color: #B42318;
}
.rs-app-account-menu button.is-danger:hover {
    background: #FEF3F2;
}

/* P3 dashboard — healthy trial strip (no red warning frame) */
.hl-plan-bar.is-healthy {
    border-color: #E5E7EB;
    background: #F9FAFB;
}
.hl-plan-bar.is-alert {
    border-color: rgba(226, 59, 28, 0.22);
    background: linear-gradient(90deg, rgba(226, 59, 28, 0.08), #fff 55%);
}
.hl-plan-bar-meta {
    text-align: right;
    display: grid;
    gap: 0.15rem;
    justify-items: end;
}
.hl-plan-bar-meta strong {
    font-size: 0.95rem;
    color: #111827;
    letter-spacing: -0.01em;
}
.hl-plan-bar-meta span {
    font-size: 0.78rem;
    color: #667085;
}
.hl-plan-bar-link {
    font-size: 0.8rem;
    font-weight: 700;
    color: #e23b1c;
    text-decoration: none;
}
.hl-plan-bar-link:hover { text-decoration: underline; }

.hl-dash-setup-primary {
    display: grid;
    gap: 1rem;
}
@media (min-width: 960px) {
    .hl-dash-setup-primary { grid-template-columns: 0.95fr 1.05fr; }
}
.hl-dash-setup-focus .hl-dash-next-label {
    margin: 0.85rem 0 0.75rem;
    font-size: 0.92rem;
    color: #374151;
}
.hl-setup-pct-inline {
    font-size: 0.8rem;
    font-weight: 650;
    color: #667085;
}
