/* Fincontroly custom layer */
:root {
    /* Core surfaces and color roles */
    --fc-background: #F6F8FB;
    --fc-background-secondary: #F1F5F9;
    --fc-surface: #FFFFFF;
    --fc-surface-elevated: #FFFFFF;
    --fc-border: #DCE3EC;
    --fc-border-subtle: #E9EEF5;
    --fc-border-strong: #AAB6C7;
    --fc-text: #172033;
    --fc-text-secondary: #536179;
    --fc-text-subtle: #718096;
    --fc-text-tertiary: #718096;
    --fc-primary: #2557A7;
    --fc-primary-hover: #1E478B;
    --fc-primary-soft: #EEF4FF;
    --fc-primary-dark: #15233B;
    --fc-success: #16815D;
    --fc-success-soft: #EAF8F2;
    --fc-warning: #B7791F;
    --fc-warning-strong: #8A5A14;
    --fc-warning-soft: #FFF8E6;
    --fc-danger: #C2414B;
    --fc-danger-soft: #FFF0F1;
    --fc-info: #2878B5;
    --fc-focus-ring: rgba(37, 87, 167, .28);
    --fc-disabled: #CBD5E1;
    --fc-white: var(--fc-surface);

    /* Type scale */
    --fc-font-family: inherit;
    --fc-text-xs: .75rem;
    --fc-text-sm: .8125rem;
    --fc-text-md: .875rem;
    --fc-text-lg: 1rem;
    --fc-title-card: 1rem;
    --fc-title-section: 1.25rem;
    --fc-title-page: 1.75rem;
    --fc-leading-tight: 1.25;
    --fc-leading-normal: 1.5;
    --fc-weight-medium: 500;
    --fc-weight-semibold: 600;
    --fc-weight-bold: 700;

    /* Spacing scale */
    --fc-space-1: .25rem;
    --fc-space-2: .5rem;
    --fc-space-3: .75rem;
    --fc-space-4: 1rem;
    --fc-space-5: 1.25rem;
    --fc-space-6: 1.5rem;
    --fc-space-8: 2rem;

    /* Shape, elevation and shell */
    --fc-radius-sm: 6px;
    --fc-radius: 8px;
    --fc-radius-md: 10px;
    --fc-radius-lg: 14px;
    --fc-control-sm: 34px;
    --fc-control: 40px;
    --fc-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    --fc-shadow-elevated: 0 8px 24px rgba(15, 23, 42, .08);
    --fc-transition: 160ms ease;
    --fc-sidebar-width: 256px;
    --fc-topbar-height: 64px;
}

/* Public BPO-focused home */
.bpo-home {
    --bpo-bg: #f7f9fc;
    --bpo-surface: #ffffff;
    --bpo-soft: #eef4ff;
    --bpo-text: #10203a;
    --bpo-muted: #53627a;
    --bpo-line: #dbe4f0;
    --bpo-brand: #1e40af;
    --bpo-brand-strong: #17358f;
    --bpo-accent: #2563eb;
    --bpo-dark-section: #10203a;
    --bpo-success: #047857;
    --bpo-warning: #b45309;
    --bpo-danger: #b42318;
    --bpo-radius: 18px;
    --bpo-shadow: 0 18px 50px rgba(30, 64, 175, 0.09);
    margin: 0;
    overflow-x: hidden;
    background: var(--bpo-bg);
    color: var(--bpo-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.bpo-home *,
.bpo-home *::before,
.bpo-home *::after {
    box-sizing: border-box;
}

.bpo-home h1,
.bpo-home h2,
.bpo-home h3,
.bpo-home p {
    overflow-wrap: anywhere;
}

.bpo-home h1,
.bpo-home h2,
.bpo-home h3,
.bpo-home strong,
.bpo-home button,
.bpo-home .bpo-button {
    font-weight: 600;
}

.bpo-home a:focus-visible,
.bpo-home button:focus-visible,
.bpo-home summary:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.bpo-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.bpo-skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #10203a;
    font-weight: 600;
    transform: translateY(-160%);
}

.bpo-skip-link:focus {
    transform: translateY(0);
}

.bpo-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--bpo-line) 78%, transparent);
    background: color-mix(in srgb, var(--bpo-surface) 94%, transparent);
    backdrop-filter: blur(14px);
}

.bpo-nav {
    position: relative;
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.bpo-brand,
.bpo-brand picture,
.bpo-brand img {
    display: block;
}

.bpo-brand {
    flex: 0 0 auto;
}

.bpo-brand img {
    width: 172px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

.bpo-nav-menu,
.bpo-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.bpo-nav-menu > a:not(.bpo-button) {
    padding: 8px 3px;
    color: var(--bpo-text);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.bpo-nav-menu > a:not(.bpo-button):hover {
    color: var(--bpo-brand);
}

.bpo-nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--bpo-line);
    border-radius: 10px;
    background: var(--bpo-surface);
    color: var(--bpo-text);
    font-size: 1.25rem;
}

.bpo-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 19px;
    border: 1px solid var(--bpo-brand);
    border-radius: 11px;
    background: var(--bpo-brand);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.bpo-button:hover {
    border-color: var(--bpo-brand-strong);
    background: var(--bpo-brand-strong);
    transform: translateY(-1px);
}

.bpo-button:active {
    transform: translateY(0);
}

.bpo-button[aria-disabled="true"],
.bpo-button:disabled {
    border-color: var(--bpo-line);
    background: var(--bpo-line);
    color: var(--bpo-muted);
    cursor: not-allowed;
    opacity: 0.72;
    transform: none;
}

.bpo-button--compact {
    min-height: 42px;
    padding: 8px 14px;
}

.bpo-button--secondary {
    border-color: #9aadd0;
    background: var(--bpo-surface);
    color: var(--bpo-brand);
}

.bpo-button--secondary:hover {
    border-color: var(--bpo-brand);
    background: var(--bpo-soft);
    color: var(--bpo-brand-strong);
}

.bpo-button--light {
    border-color: #ffffff;
    background: #ffffff;
    color: #17358f;
}

.bpo-button--light:hover {
    border-color: #dbeafe;
    background: #dbeafe;
    color: #102f82;
}

.bpo-button--outline-light {
    border-color: rgba(255, 255, 255, 0.68);
    background: transparent;
    color: #ffffff;
}

.bpo-button--outline-light:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.bpo-hero {
    padding: clamp(58px, 7vw, 84px) 0 clamp(58px, 7vw, 76px);
    background:
        radial-gradient(circle at 86% 18%, rgba(59, 130, 246, 0.14), transparent 30rem),
        linear-gradient(180deg, var(--bpo-surface), var(--bpo-bg));
}

.bpo-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: clamp(44px, 7vw, 90px);
    align-items: center;
}

.bpo-eyebrow,
.bpo-kicker {
    display: inline-flex;
    color: var(--bpo-brand);
    font-size: 0.79rem;
    font-weight: 600;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.bpo-hero h1 {
    max-width: 740px;
    margin: 16px 0 22px;
    font-size: clamp(2.35rem, 4.55vw, 4.05rem);
    font-weight: 600;
    letter-spacing: -0.052em;
    line-height: 1.03;
}

.bpo-hero__lead {
    max-width: 760px;
    margin: 0 0 24px;
    color: var(--bpo-muted);
    font-size: clamp(1.05rem, 1.8vw, 1.2rem);
}

.bpo-check-list,
.bpo-governance-list,
.bpo-plan ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.bpo-check-list {
    display: grid;
    gap: 7px;
    margin-bottom: 26px;
}

.bpo-check-list li,
.bpo-plan li {
    position: relative;
    padding-left: 25px;
    color: var(--bpo-muted);
}

.bpo-check-list li::before,
.bpo-plan li::before {
    position: absolute;
    left: 0;
    color: var(--bpo-success);
    content: "✓";
    font-weight: 600;
}

.bpo-microcopy {
    margin: 15px 0 0;
    color: var(--bpo-muted);
    font-size: 0.88rem;
}

.bpo-hero-visual,
.bpo-portfolio-board {
    overflow: hidden;
    border: 1px solid var(--bpo-line);
    border-radius: 24px;
    background: var(--bpo-surface);
    box-shadow: var(--bpo-shadow);
}

.bpo-visual__head,
.bpo-board__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 22px;
    border-bottom: 1px solid var(--bpo-line);
}

.bpo-visual__head span,
.bpo-board__top span {
    color: var(--bpo-muted);
    font-size: 0.83rem;
}

.bpo-visual__summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 18px 22px 4px;
}

.bpo-visual__summary span {
    padding: 14px;
    border-radius: 12px;
    background: var(--bpo-soft);
    color: var(--bpo-muted);
}

.bpo-visual__summary strong {
    display: block;
    color: var(--bpo-brand);
    font-size: 1.4rem;
}

.bpo-client-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    margin: 12px 22px;
    padding: 14px 0;
    border-bottom: 1px solid var(--bpo-line);
}

.bpo-client-row:last-child {
    border-bottom: 0;
}

.bpo-client-row div {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.bpo-client-row small,
.bpo-client-row b {
    color: var(--bpo-muted);
    font-size: 0.78rem;
}

.bpo-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bpo-muted);
}

.bpo-status--danger { background: var(--bpo-danger); }
.bpo-status--warning { background: var(--bpo-warning); }
.bpo-status--success { background: var(--bpo-success); }

.bpo-section {
    padding: clamp(64px, 7vw, 92px) 0;
}

.bpo-section--soft {
    background: var(--bpo-soft);
}

.bpo-section--dark {
    background: var(--bpo-dark-section);
    color: #ffffff;
}

.bpo-section--dark .bpo-kicker {
    color: #93c5fd;
}

.bpo-section--dark p {
    color: #c8d3e3;
}

.bpo-heading {
    max-width: 780px;
    margin-bottom: 38px;
}

.bpo-heading h2,
.bpo-problem h2,
.bpo-feature-split h2,
.bpo-governance h2,
.bpo-onboarding h2,
.bpo-plan h2,
.bpo-faq-layout h2,
.bpo-final h2 {
    margin: 8px 0 13px;
    font-size: clamp(1.9rem, 3.5vw, 3.15rem);
    font-weight: 600;
    letter-spacing: -0.038em;
    line-height: 1.1;
}

.bpo-heading p,
.bpo-feature-split > div > p,
.bpo-governance > div > p,
.bpo-onboarding > div > p,
.bpo-plan > div > p,
.bpo-faq-layout > div > p,
.bpo-final p {
    margin: 0;
    color: var(--bpo-muted);
    font-size: 1.06rem;
}

.bpo-problem {
    border-top: 1px solid var(--bpo-line);
}

.bpo-problem__grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: clamp(40px, 8vw, 100px);
}

.bpo-problem__copy {
    padding-left: 28px;
    border-left: 3px solid var(--bpo-accent);
}

.bpo-problem__copy p {
    margin: 0 0 16px;
    color: var(--bpo-muted);
}

.bpo-feature-split,
.bpo-governance,
.bpo-onboarding,
.bpo-plan {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(42px, 8vw, 100px);
    align-items: center;
}

.bpo-board__cards {
    display: grid;
    gap: 12px;
    padding: 20px;
}

.bpo-board__cards article {
    display: flex;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--bpo-line);
    border-radius: 13px;
    background: color-mix(in srgb, var(--bpo-surface) 88%, var(--bpo-soft));
}

.bpo-board__cards span,
.bpo-board__cards small {
    color: var(--bpo-muted);
    font-size: 0.78rem;
}

.bpo-feature-split > div > .bpo-highlight-copy {
    margin-top: 20px;
    color: var(--bpo-text);
    font-size: 1.15rem;
    font-weight: 600;
}

.bpo-text-link {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 24px;
    color: var(--bpo-brand);
    font-weight: 600;
    text-underline-offset: 4px;
}

.bpo-workflow {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.bpo-workflow li {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 22px 16px;
    border-top: 2px solid var(--bpo-line);
}

.bpo-workflow li::before {
    position: absolute;
    top: -6px;
    left: 16px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bpo-accent);
    content: "";
}

.bpo-workflow li > span {
    color: var(--bpo-accent);
    font-size: 0.78rem;
}

.bpo-workflow small {
    margin-top: 5px;
    color: var(--bpo-muted);
}

.bpo-pillars {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.bpo-pillars article {
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--bpo-radius);
    background: rgba(255, 255, 255, 0.05);
}

.bpo-pillars article > span {
    color: #93c5fd;
    font-size: 0.8rem;
}

.bpo-pillars h3 {
    margin: 14px 0 7px;
    font-size: 1.3rem;
}

.bpo-governance-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.bpo-governance-list li {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 17px;
    border: 1px solid var(--bpo-line);
    border-radius: 13px;
    background: var(--bpo-surface);
}

.bpo-governance-list span {
    color: var(--bpo-muted);
    font-size: 0.9rem;
}

.bpo-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bpo-feature-grid a {
    position: relative;
    min-height: 180px;
    padding: 22px;
    border: 1px solid var(--bpo-line);
    border-radius: 16px;
    background: var(--bpo-surface);
    color: var(--bpo-text);
    text-decoration: none;
}

.bpo-feature-grid a:hover {
    border-color: var(--bpo-accent);
    box-shadow: var(--bpo-shadow);
}

.bpo-feature-grid a > span {
    position: absolute;
    top: 17px;
    right: 18px;
    color: var(--bpo-accent);
}

.bpo-feature-grid h3 {
    margin: 26px 0 8px;
    font-size: 1.06rem;
}

.bpo-feature-grid p {
    margin: 0;
    color: var(--bpo-muted);
    font-size: 0.9rem;
}

.bpo-deep-link {
    margin: 28px 0 0;
    color: var(--bpo-muted);
}

.bpo-deep-link a {
    color: var(--bpo-brand);
    font-weight: 600;
}

.bpo-onboarding ol {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bpo-onboarding li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--bpo-line);
    border-radius: 13px;
    background: var(--bpo-surface);
}

.bpo-onboarding li span {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--bpo-soft);
    color: var(--bpo-brand);
    font-weight: 600;
}

.bpo-plan {
    padding: clamp(30px, 5vw, 50px);
    border: 1px solid var(--bpo-line);
    border-radius: 24px;
    background: var(--bpo-surface);
    box-shadow: var(--bpo-shadow);
}

.bpo-plan__price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin: 20px 0 6px;
}

.bpo-plan__price strong {
    font-size: clamp(2.15rem, 4vw, 3rem);
    letter-spacing: -0.04em;
}

.bpo-plan__price span {
    color: var(--bpo-muted);
}

.bpo-plan li {
    margin-bottom: 6px;
}

.bpo-faq-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(42px, 8vw, 96px);
    align-items: start;
}

.bpo-faq-list {
    display: grid;
    gap: 10px;
}

.bpo-faq-list article {
    overflow: hidden;
    border: 1px solid var(--bpo-line);
    border-radius: 14px;
    background: var(--bpo-surface);
}

.bpo-faq-list h3 {
    margin: 0;
}

.bpo-faq-list button {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border: 0;
    background: transparent;
    color: var(--bpo-text);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.bpo-faq-list button b {
    color: var(--bpo-brand);
    font-size: 1.5rem;
    transition: transform 160ms ease;
}

.bpo-faq-list button[aria-expanded="true"] b {
    transform: rotate(45deg);
}

.bpo-faq-list article > div {
    padding: 0 18px 18px;
    color: var(--bpo-muted);
}

.bpo-faq-list article > div p {
    margin: 0;
}

.bpo-other {
    padding: 30px 0;
    border-top: 1px solid var(--bpo-line);
    background: color-mix(in srgb, var(--bpo-soft) 58%, var(--bpo-surface));
}

.bpo-other__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.bpo-other h2 {
    margin: 4px 0 0;
    font-size: 1.12rem;
    line-height: 1.3;
}

.bpo-other p {
    max-width: 570px;
    margin: 5px 0 0;
    color: var(--bpo-muted);
    font-size: 0.9rem;
}

.bpo-other__row nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.bpo-other a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 10px 14px;
    border: 1px solid #aebbd0;
    border-radius: 10px;
    background: var(--bpo-surface);
    color: var(--bpo-text);
    font-weight: 600;
    text-decoration: none;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.bpo-other a:hover {
    border-color: var(--bpo-brand);
    background: var(--bpo-soft);
    color: var(--bpo-brand);
}

.bpo-final__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: clamp(24px, 3vw, 36px);
    padding: clamp(34px, 6vw, 60px);
    border-radius: 25px;
    background: var(--bpo-brand);
    color: #ffffff;
}

.bpo-final__card > div:first-child {
    max-width: 700px;
}

.bpo-final {
    padding-block: clamp(56px, 6vw, 76px);
    background: var(--bpo-bg);
}

.bpo-final .bpo-kicker {
    color: #bfdbfe;
}

.bpo-final p {
    max-width: 700px;
    color: #dbeafe;
}

.bpo-final .bpo-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
}

.bpo-final .bpo-button {
    min-height: 48px;
    white-space: nowrap;
}

.bpo-footer {
    padding: 52px 0 0;
    border-top: 1px solid var(--bpo-line);
    background: var(--bpo-surface);
}

.bpo-footer__grid {
    display: grid;
    grid-template-columns: minmax(230px, 1.45fr) repeat(4, minmax(120px, 0.8fr));
    gap: clamp(26px, 4vw, 48px);
    padding-bottom: 42px;
}

.bpo-footer nav {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.bpo-footer__brand img {
    display: block;
    width: 172px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

.bpo-footer__brand p {
    max-width: 300px;
}

.bpo-footer p,
.bpo-footer a {
    margin: 8px 0 0;
    color: var(--bpo-muted);
    font-size: 0.9rem;
}

.bpo-footer a {
    text-decoration: none;
}

.bpo-footer a:hover {
    color: var(--bpo-brand);
}

.bpo-footer__contact a {
    display: inline-block;
    color: var(--bpo-text);
    overflow-wrap: anywhere;
}

.bpo-footer__contact p {
    max-width: 210px;
}

.bpo-footer__bottom {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--bpo-line);
}

.bpo-footer__bottom p {
    margin: 0;
}

.bpo-footer__bottom nav {
    flex-direction: row;
    align-items: center;
    gap: 18px;
}

.bpo-footer__bottom a {
    margin: 0;
}

.bpo-cookie-preferences {
    min-height: 36px;
    padding: 7px 12px;
    border: 1px solid #aebbd0;
    border-radius: 9px;
    background: transparent;
    color: var(--bpo-text);
    font: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.bpo-cookie-preferences:hover {
    border-color: var(--bpo-brand);
    background: var(--bpo-soft);
    color: var(--bpo-brand);
}

.bpo-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

@media (max-width: 1060px) {
    .bpo-nav-menu {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        display: none;
        width: min(360px, calc(100vw - 40px));
        align-items: stretch;
        padding: 16px;
        border: 1px solid var(--bpo-line);
        border-radius: 0 0 16px 16px;
        background: var(--bpo-surface);
        box-shadow: var(--bpo-shadow);
    }

    .bpo-nav-menu.is-open {
        display: flex;
        flex-direction: column;
    }

    .bpo-nav-toggle {
        display: inline-grid;
        place-items: center;
    }

    .bpo-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.8fr);
        gap: 38px;
    }

    .bpo-workflow {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px 0;
    }

    .bpo-feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .bpo-hero__grid,
    .bpo-problem__grid,
    .bpo-feature-split,
    .bpo-governance,
    .bpo-onboarding,
    .bpo-plan,
    .bpo-faq-layout {
        grid-template-columns: 1fr;
    }

    .bpo-pillars,
    .bpo-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bpo-problem__copy {
        padding: 22px 0 0;
        border-top: 3px solid var(--bpo-accent);
        border-left: 0;
    }

    .bpo-other__row,
    .bpo-final__card {
        align-items: stretch;
        flex-direction: column;
    }

    .bpo-other__row nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .bpo-final .bpo-actions,
    .bpo-final .bpo-button {
        width: 100%;
    }

    .bpo-final .bpo-actions {
        flex-direction: column;
    }

    .bpo-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bpo-footer__brand {
        grid-column: 1 / -1;
    }

    .bpo-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
        padding: 18px 0;
    }
}

@media (max-width: 560px) {
    .bpo-shell {
        width: min(1180px, calc(100% - 24px));
    }

    .bpo-brand img {
        width: 132px;
        height: 34px;
    }

    .bpo-nav {
        min-height: 64px;
    }

    .bpo-hero {
        padding-top: 48px;
    }

    .bpo-hero h1 {
        font-size: clamp(2.1rem, 11vw, 3.1rem);
    }

    .bpo-actions,
    .bpo-actions .bpo-button {
        width: 100%;
    }

    .bpo-visual__summary,
    .bpo-governance-list,
    .bpo-onboarding ol,
    .bpo-pillars,
    .bpo-feature-grid,
    .bpo-footer__grid {
        grid-template-columns: 1fr;
    }

    .bpo-footer__brand {
        grid-column: auto;
    }

    .bpo-footer__grid {
        gap: 26px;
        padding-bottom: 30px;
    }

    .bpo-footer__bottom nav {
        width: 100%;
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .bpo-cookie-preferences {
        width: 100%;
        text-align: left;
    }

    .bpo-other__row nav,
    .bpo-other a {
        width: 100%;
    }

    .bpo-workflow {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .bpo-workflow li {
        padding: 14px 16px 14px 32px;
        border-top: 0;
        border-left: 2px solid var(--bpo-line);
    }

    .bpo-workflow li::before {
        top: 20px;
        left: -6px;
    }

    .bpo-client-row {
        grid-template-columns: auto 1fr;
    }

    .bpo-client-row b {
        display: none;
    }
}

@media (prefers-color-scheme: dark) {
    .bpo-home {
        --bpo-bg: #08111f;
        --bpo-surface: #101d30;
        --bpo-soft: #0d192a;
        --bpo-text: #edf3fc;
        --bpo-muted: #afbdd0;
        --bpo-line: #2a3b53;
        --bpo-brand: #5f8ff7;
        --bpo-brand-strong: #3f70db;
        --bpo-accent: #60a5fa;
        --bpo-dark-section: #071322;
        --bpo-success: #5ee0ad;
        --bpo-shadow: none;
    }

    .bpo-button {
        border-color: #2563eb;
        background: #2563eb;
    }

    .bpo-button--secondary {
        border-color: var(--bpo-line);
        background: transparent;
        color: var(--bpo-text);
    }

    .bpo-button--light {
        border-color: #ffffff;
        background: #ffffff;
        color: #17358f;
    }

    .bpo-final__card {
        background: #224fc4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bpo-home *,
    .bpo-home *::before,
    .bpo-home *::after {
        scroll-behavior: auto;
        transition-duration: 0.01ms;
    }
}

/* Public pricing page */
.pricing-page {
    --pricing-bg: #f7f9fc;
    --pricing-surface: #ffffff;
    --pricing-soft: #eef4ff;
    --pricing-text: #10203a;
    --pricing-muted: #53627a;
    --pricing-line: #dbe4f0;
    --pricing-brand: #1e40af;
    --pricing-brand-strong: #17358f;
    --pricing-accent: #2563eb;
    --pricing-success: #047857;
    --pricing-radius: 18px;
    --pricing-shadow: 0 18px 50px rgba(30, 64, 175, 0.09);
    margin: 0;
    overflow-x: hidden;
    background: var(--pricing-bg);
    color: var(--pricing-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

.pricing-page *,
.pricing-page *::before,
.pricing-page *::after {
    box-sizing: border-box;
}

.pricing-page a:focus-visible,
.pricing-page button:focus-visible,
.pricing-page summary:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.pricing-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.pricing-skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    color: #10203a;
    font-weight: 600;
    transform: translateY(-160%);
}

.pricing-skip-link:focus {
    transform: translateY(0);
}

.pricing-header {
    position: sticky;
    z-index: 50;
    top: 0;
    border-bottom: 1px solid color-mix(in srgb, var(--pricing-line) 78%, transparent);
    background: color-mix(in srgb, var(--pricing-surface) 94%, transparent);
    backdrop-filter: blur(14px);
}

.pricing-nav {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.pricing-brand {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    text-decoration: none;
}

.pricing-brand picture,
.pricing-brand img {
    display: block;
}

.pricing-brand img {
    width: 172px;
    height: 42px;
    object-fit: contain;
    object-position: left center;
}

.pricing-nav__links,
.pricing-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pricing-nav__links > a:not(.pricing-button) {
    padding: 8px 4px;
    color: var(--pricing-text);
    font-weight: 600;
    text-decoration: none;
}

.pricing-nav__links > a[aria-current="page"] {
    color: var(--pricing-brand);
}

.pricing-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 11px 19px;
    border: 1px solid var(--pricing-brand);
    border-radius: 11px;
    background: var(--pricing-brand);
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
    transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pricing-button:hover {
    border-color: var(--pricing-brand-strong);
    background: var(--pricing-brand-strong);
    transform: translateY(-1px);
}

.pricing-button--compact {
    min-height: 42px;
    padding: 8px 15px;
}

.pricing-button--secondary {
    background: transparent;
    color: var(--pricing-brand);
}

.pricing-button--light {
    border-color: #ffffff;
    background: #ffffff;
    color: #17358f;
}

.pricing-button--light:hover {
    border-color: #dbeafe;
    background: #dbeafe;
}

.pricing-button--outline-light {
    border-color: rgba(255, 255, 255, 0.7);
    background: transparent;
    color: #ffffff;
}

.pricing-hero {
    padding: 78px 0 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.16), transparent 28rem),
        linear-gradient(180deg, var(--pricing-surface), var(--pricing-bg));
}

.pricing-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
    gap: clamp(36px, 7vw, 90px);
    align-items: center;
}

.pricing-eyebrow,
.pricing-kicker {
    display: inline-flex;
    color: var(--pricing-brand);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pricing-hero h1 {
    max-width: 760px;
    margin: 16px 0 22px;
    font-size: clamp(2.4rem, 5.2vw, 4.8rem);
    letter-spacing: -0.055em;
    line-height: 1.02;
    font-weight: 600;
}

.pricing-hero__lead {
    max-width: 680px;
    margin: 0 0 28px;
    color: var(--pricing-muted);
    font-size: clamp(1.08rem, 2vw, 1.25rem);
}

.pricing-reviewed {
    margin: 18px 0 0;
    color: var(--pricing-muted);
    font-size: 0.875rem;
}

.pricing-hero__summary {
    padding: clamp(24px, 4vw, 36px);
    border: 1px solid var(--pricing-line);
    border-radius: 24px;
    background: color-mix(in srgb, var(--pricing-surface) 94%, transparent);
    box-shadow: var(--pricing-shadow);
}

.pricing-hero__summary > span {
    color: var(--pricing-success);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.pricing-hero__summary p {
    margin: 12px 0;
    font-size: 1.08rem;
    font-weight: 600;
}

.pricing-hero__summary small {
    color: var(--pricing-muted);
}

.pricing-trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 64px;
    padding: 20px 24px;
    border: 1px solid var(--pricing-line);
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
    background: var(--pricing-surface);
}

.pricing-trust span {
    position: relative;
    padding: 4px 24px 4px 28px;
    color: var(--pricing-muted);
    font-size: 0.92rem;
    font-weight: 600;
}

.pricing-trust span::before {
    position: absolute;
    left: 0;
    color: var(--pricing-success);
    content: "✓";
    font-weight: 600;
}

.pricing-trust span + span {
    border-left: 1px solid var(--pricing-line);
}

.pricing-section {
    padding: clamp(66px, 9vw, 110px) 0;
}

.pricing-section--soft {
    background: var(--pricing-soft);
}

.pricing-section__heading {
    max-width: 720px;
    margin-bottom: 36px;
}

.pricing-section__heading--center {
    margin-inline: auto;
    text-align: center;
}

.pricing-section__heading h2,
.pricing-bpo h2,
.pricing-enterprise h2,
.pricing-final h2 {
    margin: 8px 0 12px;
    font-size: clamp(1.85rem, 3.5vw, 3rem);
    letter-spacing: -0.035em;
    line-height: 1.12;
    font-weight: 600;
}

.pricing-section__heading p,
.pricing-bpo p,
.pricing-enterprise p,
.pricing-final p {
    margin: 0;
    color: var(--pricing-muted);
    font-size: 1.05rem;
}

.pricing-guidance {
    padding-bottom: 30px;
}

.pricing-guidance__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.pricing-guidance__grid a {
    display: flex;
    min-height: 126px;
    flex-direction: column;
    justify-content: center;
    padding: 22px;
    border: 1px solid var(--pricing-line);
    border-radius: var(--pricing-radius);
    background: var(--pricing-surface);
    color: var(--pricing-text);
    text-decoration: none;
}

.pricing-guidance__grid a:hover {
    border-color: var(--pricing-accent);
    box-shadow: var(--pricing-shadow);
}

.pricing-guidance__grid strong {
    margin-bottom: 4px;
    color: var(--pricing-brand);
}

.pricing-guidance__grid span {
    color: var(--pricing-muted);
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.pricing-plan {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 20px;
    padding: 26px 22px;
    border: 1px solid var(--pricing-line);
    border-radius: 22px;
    background: var(--pricing-surface);
    box-shadow: var(--pricing-shadow);
}

.pricing-plan--featured {
    border: 2px solid var(--pricing-accent);
    box-shadow: 0 22px 60px rgba(37, 99, 235, 0.18);
}

.pricing-plan__badge {
    align-self: flex-start;
    padding: 5px 10px;
    border-radius: 999px;
    background: var(--pricing-brand);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
}

.pricing-plan__name {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 600;
}

.pricing-plan__description {
    min-height: 76px;
    margin: 6px 0 0;
    color: var(--pricing-muted);
}

.pricing-plan__price strong {
    display: block;
    font-size: clamp(1.8rem, 3vw, 2.25rem);
    letter-spacing: -0.04em;
    line-height: 1.1;
    font-weight: 600;
}

.pricing-plan__price span {
    color: var(--pricing-muted);
}

.pricing-plan__group {
    padding-top: 16px;
    border-top: 1px solid var(--pricing-line);
}

.pricing-plan__group h3,
.pricing-comparison-mobile h3 {
    margin: 0 0 8px;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 600;
}

.pricing-plan ul,
.pricing-comparison-desktop ul,
.pricing-comparison-mobile ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-plan li,
.pricing-comparison-desktop li,
.pricing-comparison-mobile li {
    position: relative;
    padding: 4px 0 4px 22px;
    color: var(--pricing-muted);
}

.pricing-plan li::before,
.pricing-comparison-desktop li::before,
.pricing-comparison-mobile li::before {
    position: absolute;
    left: 0;
    color: var(--pricing-success);
    content: "✓";
    font-weight: 600;
}

.pricing-plan > .pricing-button {
    width: 100%;
    margin-top: auto;
}

.pricing-comparison-desktop {
    overflow: hidden;
    border: 1px solid var(--pricing-line);
    border-radius: 20px;
    background: var(--pricing-surface);
}

.pricing-comparison-desktop table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.pricing-comparison-desktop th,
.pricing-comparison-desktop td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--pricing-line);
    text-align: left;
    vertical-align: top;
}

.pricing-comparison-desktop thead th {
    color: var(--pricing-brand);
    font-weight: 600;
}

.pricing-comparison-desktop tbody > tr:last-child > * {
    border-bottom: 0;
}

.pricing-comparison__group th {
    padding-block: 10px;
    background: color-mix(in srgb, var(--pricing-soft) 72%, var(--pricing-surface));
    color: var(--pricing-brand);
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    font-weight: 600;
}

.pricing-comparison-mobile {
    display: none;
}

.pricing-value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.pricing-value-grid article {
    padding: 28px;
    border: 1px solid var(--pricing-line);
    border-radius: var(--pricing-radius);
    background: var(--pricing-surface);
}

.pricing-value-grid article > span {
    color: var(--pricing-accent);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.pricing-value-grid h3 {
    margin: 14px 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
}

.pricing-value-grid p {
    margin: 0;
    color: var(--pricing-muted);
}

.pricing-bpo {
    background: var(--pricing-text);
    color: #ffffff;
}

.pricing-bpo__grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(38px, 8vw, 110px);
    align-items: center;
}

.pricing-bpo .pricing-kicker {
    color: #93c5fd;
}

.pricing-bpo p {
    color: #c8d3e3;
}

.pricing-text-link {
    display: inline-block;
    margin-top: 24px;
    color: #bfdbfe;
    font-weight: 600;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.pricing-bpo ul {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pricing-bpo li {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.pricing-bpo li strong {
    font-weight: 600;
}

.pricing-bpo li span {
    color: #c8d3e3;
}

.pricing-enterprise {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
    align-items: center;
    padding: clamp(28px, 5vw, 48px);
    border-radius: 24px;
    background: linear-gradient(130deg, #17358f, #2563eb);
    color: #ffffff;
    box-shadow: var(--pricing-shadow);
}

.pricing-enterprise .pricing-kicker {
    color: #dbeafe;
}

.pricing-enterprise p {
    max-width: 760px;
    color: #dbeafe;
}

.pricing-enterprise__action {
    display: flex;
    min-width: 210px;
    flex-direction: column;
    gap: 12px;
}

.pricing-enterprise__action > strong {
    font-size: 1.4rem;
    text-align: center;
    font-weight: 600;
}

.pricing-faq-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.65fr) minmax(0, 1.35fr);
    gap: clamp(34px, 7vw, 90px);
    align-items: start;
}

.pricing-faq-list {
    display: grid;
    gap: 10px;
}

.pricing-faq-item {
    overflow: hidden;
    border: 1px solid var(--pricing-line);
    border-radius: 14px;
    background: var(--pricing-surface);
}

.pricing-faq-item h3 {
    margin: 0;
}

.pricing-faq-item button {
    display: flex;
    width: 100%;
    min-height: 58px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 18px;
    border: 0;
    background: transparent;
    color: var(--pricing-text);
    font: inherit;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.pricing-faq-item__icon {
    color: var(--pricing-brand);
    font-size: 1.5rem;
    line-height: 1;
    transition: transform 160ms ease;
}

.pricing-faq-item button[aria-expanded="true"] .pricing-faq-item__icon {
    transform: rotate(45deg);
}

.pricing-faq-item > div {
    padding: 0 18px 18px;
    color: var(--pricing-muted);
}

.pricing-faq-item > div p {
    margin: 0;
}

.pricing-final__card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: clamp(32px, 6vw, 58px);
    border-radius: 24px;
    background: var(--pricing-brand);
    color: #ffffff;
}

.pricing-final .pricing-kicker {
    color: #bfdbfe;
}

.pricing-final p {
    color: #dbeafe;
}

.pricing-final .pricing-actions {
    flex: 0 0 auto;
}

.pricing-footer {
    padding: 30px 0;
    border-top: 1px solid var(--pricing-line);
    background: var(--pricing-surface);
}

.pricing-footer__row,
.pricing-footer__links {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.pricing-footer__row {
    justify-content: space-between;
}

.pricing-footer__row > strong {
    font-weight: 600;
}

.pricing-footer__links a {
    color: var(--pricing-muted);
}

.pricing-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
}

@media (max-width: 1040px) {
    .pricing-plans,
    .pricing-guidance__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pricing-hero__grid {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 0.75fr);
        gap: 40px;
    }

    .pricing-trust {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-trust span:nth-child(3) {
        border-left: 0;
    }
}

@media (max-width: 800px) {
    .pricing-hero {
        padding-top: 54px;
    }

    .pricing-hero__grid,
    .pricing-bpo__grid,
    .pricing-faq-layout {
        grid-template-columns: 1fr;
    }

    .pricing-comparison-desktop {
        display: none;
    }

    .pricing-comparison-mobile {
        display: grid;
        gap: 10px;
    }

    .pricing-comparison-mobile details {
        overflow: hidden;
        border: 1px solid var(--pricing-line);
        border-radius: 14px;
        background: var(--pricing-surface);
    }

    .pricing-comparison-mobile summary {
        display: flex;
        min-height: 56px;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 15px 18px;
        color: var(--pricing-brand);
        font-weight: 600;
        cursor: pointer;
    }

    .pricing-comparison-mobile details > div {
        padding: 0 18px 18px;
    }

    .pricing-comparison-mobile h3 {
        margin-top: 18px;
    }

    .pricing-value-grid {
        grid-template-columns: 1fr;
    }

    .pricing-enterprise,
    .pricing-final__card {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .pricing-enterprise__action {
        min-width: 0;
    }

    .pricing-enterprise__action > strong {
        text-align: left;
    }

    .pricing-final .pricing-actions,
    .pricing-final .pricing-button {
        width: 100%;
    }
}

@media (max-width: 620px) {
    .pricing-shell {
        width: min(1180px, calc(100% - 24px));
    }

    .pricing-brand img {
        width: 132px;
        height: 34px;
    }

    .pricing-nav {
        min-height: 64px;
    }

    .pricing-nav__links {
        gap: 8px;
    }

    .pricing-hide-mobile,
    .pricing-nav__links > a:not(.pricing-button):not([aria-current="page"]) {
        display: none;
    }

    .pricing-hero h1 {
        font-size: clamp(2.25rem, 13vw, 3.35rem);
    }

    .pricing-trust,
    .pricing-guidance__grid,
    .pricing-plans {
        grid-template-columns: 1fr;
    }

    .pricing-trust {
        padding: 14px 18px;
    }

    .pricing-trust span + span {
        border-top: 1px solid var(--pricing-line);
        border-left: 0;
    }

    .pricing-plan__description {
        min-height: 0;
    }

    .pricing-actions,
    .pricing-actions .pricing-button {
        width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    .pricing-page {
        --pricing-bg: #08111f;
        --pricing-surface: #101d30;
        --pricing-soft: #0d192a;
        --pricing-text: #edf3fc;
        --pricing-muted: #afbdd0;
        --pricing-line: #2a3b53;
        --pricing-brand: #8fb2ff;
        --pricing-brand-strong: #4f7ee8;
        --pricing-accent: #60a5fa;
        --pricing-success: #5ee0ad;
        --pricing-shadow: none;
    }

    .pricing-button {
        border-color: #2563eb;
        background: #2563eb;
    }

    .pricing-button--secondary {
        border-color: var(--pricing-line);
        background: transparent;
        color: var(--pricing-text);
    }

    .pricing-plan--featured {
        border-color: var(--pricing-accent);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-page *,
    .pricing-page *::before,
    .pricing-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

body {
    background: var(--fc-background);
}

.fc-auth-page {
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(30, 64, 175, .12), transparent 32%),
        linear-gradient(180deg, #F8FAFC 0%, #EEF2FF 100%);
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 32px 16px;
}

.fc-auth-shell {
    width: min(100%, 460px);
}

.fc-auth-shell--wide {
    width: min(100%, 560px);
}

.fc-auth-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.fc-auth-logo img {
    height: 72px;
    width: auto;
}

.fc-auth-card {
    background: var(--fc-white);
    border: 1px solid rgba(226, 232, 240, .92);
    border-radius: 18px;
    box-shadow: 0 20px 46px rgba(15, 23, 42, .11);
    overflow: hidden;
}

.fc-auth-card__bar {
    background: linear-gradient(90deg, var(--fc-primary), #1D4ED8 62%, var(--fc-success));
    height: 5px;
}

.fc-auth-card__body {
    padding: 30px;
}

.fc-auth-badge {
    align-items: center;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 999px;
    color: var(--fc-primary);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    gap: 7px;
    letter-spacing: .04em;
    line-height: 1;
    margin-bottom: 14px;
    padding: 7px 10px;
    text-transform: uppercase;
}

.fc-auth-title {
    color: var(--fc-text);
    font-size: 26px !important;
    font-weight: 850;
    line-height: 1.2;
    margin: 0;
}

.fc-auth-subtitle {
    color: var(--fc-text-secondary);
    font-size: 14px;
    line-height: 1.55;
    margin: 8px 0 0;
}

.fc-auth-form {
    margin-top: 22px;
}

.fc-auth-field {
    margin-bottom: 16px;
}

.fc-auth-label {
    color: var(--fc-text);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 7px;
}

.fc-auth-input {
    position: relative;
}

.fc-auth-input__icon {
    color: #94A3B8;
    left: 14px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

.fc-auth-input .form-control,
.fc-auth-input .form-select {
    border-color: var(--fc-border);
    border-radius: 10px;
    color: var(--fc-text);
    font-size: 14px;
    min-height: 46px;
    padding-left: 42px;
    padding-right: 44px;
}

.fc-auth-input .form-control:focus,
.fc-auth-input .form-select:focus {
    border-color: #93C5FD;
    box-shadow: 0 0 0 4px rgba(30, 64, 175, .1);
}

.fc-auth-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 18px;
}

.fc-auth-primary {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-size: 14px;
    font-weight: 800;
    gap: 8px;
    justify-content: center;
    min-height: 46px;
    width: 100%;
}

.fc-auth-link {
    color: var(--fc-primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.fc-auth-link:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

.fc-auth-remember {
    align-items: center;
    align-self: flex-start;
    background: #F8FAFC;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--fc-text-secondary);
    cursor: pointer;
    display: inline-flex;
    font-size: 14px;
    font-weight: 500;
    gap: 10px;
    line-height: 1.35;
    margin: 0 0 18px;
    min-height: 42px;
    padding: 9px 11px;
    transition: background var(--fc-transition), border-color var(--fc-transition), color var(--fc-transition);
}

.fc-auth-remember:hover {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: var(--fc-text);
}

.fc-auth-remember__checkbox {
    -webkit-appearance: none;
    appearance: none;
    align-items: center;
    background: #FFFFFF;
    border: 2px solid #94A3B8;
    border-radius: 6px;
    cursor: pointer;
    display: inline-grid;
    flex: 0 0 20px;
    height: 20px;
    justify-content: center;
    margin: 0;
    position: relative;
    transition: background var(--fc-transition), border-color var(--fc-transition), box-shadow var(--fc-transition);
    width: 20px;
}

.fc-auth-remember__checkbox::before {
    background: #FFFFFF;
    clip-path: polygon(14% 44%, 0 59%, 42% 100%, 100% 18%, 84% 4%, 39% 67%);
    content: "";
    height: 10px;
    transform: scale(0);
    transition: transform .14s ease;
    width: 10px;
}

.fc-auth-remember__checkbox:checked {
    background: var(--fc-primary);
    border-color: var(--fc-primary);
}

.fc-auth-remember__checkbox:checked::before {
    transform: scale(1);
}

.fc-auth-remember__checkbox:focus-visible {
    box-shadow: 0 0 0 4px rgba(30, 64, 175, .16);
    outline: 2px solid transparent;
}

.fc-auth-remember__checkbox:disabled {
    background: #E2E8F0;
    border-color: #CBD5E1;
    cursor: not-allowed;
}

.fc-auth-remember:has(.fc-auth-remember__checkbox:disabled) {
    color: #94A3B8;
    cursor: not-allowed;
}

.fc-muted-inline {
    color: var(--fc-text-secondary);
    font-size: 12px;
    font-weight: 600;
}

.fc-auth-password-toggle {
    align-items: center;
    background: transparent;
    border: 0;
    color: #94A3B8;
    display: inline-flex;
    height: 36px;
    justify-content: center;
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    z-index: 3;
}

.fc-auth-password-toggle:hover {
    color: var(--fc-primary);
}

.fc-auth-legal-links {
    align-items: center;
    color: var(--fc-text-secondary);
    display: flex;
    font-size: 12px;
    gap: 8px;
    justify-content: center;
    margin-top: 10px;
}

.fc-auth-legal-links a {
    color: var(--fc-text-secondary);
    text-decoration: none;
}

.fc-auth-legal-links a:hover {
    color: var(--fc-primary);
    text-decoration: underline;
}

.fc-auth-terms {
    align-items: flex-start;
    background: #F8FAFC;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    color: var(--fc-text-secondary);
    display: flex;
    font-size: 12px;
    gap: 10px;
    line-height: 1.45;
    margin-bottom: 16px;
    padding: 12px;
    cursor: pointer;
}

.fc-auth-terms__checkbox {
    -webkit-appearance: none !important;
    appearance: none !important;
    align-items: center;
    background: #FFFFFF !important;
    border: 2px solid #94A3B8 !important;
    border-radius: 6px !important;
    cursor: pointer;
    display: inline-grid !important;
    flex: 0 0 20px;
    height: 20px !important;
    justify-content: center;
    margin: 1px 0 0 !important;
    min-height: 20px;
    min-width: 20px;
    position: relative;
    width: 20px !important;
}

.fc-auth-terms__checkbox::before {
    background: #FFFFFF;
    clip-path: polygon(14% 44%, 0 59%, 42% 100%, 100% 18%, 84% 4%, 39% 67%);
    content: "";
    height: 10px;
    transform: scale(0);
    transition: transform .14s ease;
    width: 10px;
}

.fc-auth-terms__checkbox:checked {
    background: var(--fc-primary) !important;
    border-color: var(--fc-primary) !important;
}

.fc-auth-terms__checkbox:checked::before {
    transform: scale(1);
}

.fc-auth-terms__checkbox:focus-visible {
    box-shadow: 0 0 0 4px rgba(30, 64, 175, .16);
    outline: 2px solid transparent;
}

.fc-auth-terms__checkbox.is-invalid {
    border-color: var(--fc-danger) !important;
}

.fc-auth-terms span {
    flex: 1;
}

.fc-auth-terms a {
    color: var(--fc-primary);
    font-weight: 800;
    text-decoration: none;
}

.fc-auth-terms a:hover {
    text-decoration: underline;
}

.fc-auth-terms__error {
    color: var(--fc-danger);
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 6px;
}

.fc-password-checklist {
    background: #F8FAFC;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    list-style: none;
    margin: 0 0 16px;
    padding: 12px;
}

.fc-password-checklist li {
    align-items: center;
    color: var(--fc-text-secondary);
    display: flex;
    font-size: 12px;
    gap: 7px;
}

.fc-password-checklist i {
    align-items: center;
    background: #E2E8F0;
    border-radius: 999px;
    color: #94A3B8;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 9px;
    height: 18px;
    justify-content: center;
    width: 18px;
}

.fc-password-checklist li.is-ok {
    color: #047857;
    font-weight: 700;
}

.fc-password-checklist li.is-ok i {
    background: #D1FAE5;
    color: #047857;
}

.fc-auth-shell--legal {
    width: min(100%, 860px);
}

.fc-legal-card .fc-auth-card__body {
    padding: 34px;
}

.fc-legal-content {
    color: #334155;
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.fc-legal-content h2 {
    color: var(--fc-text);
    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
    margin: 8px 0 0;
}

.fc-legal-content p {
    color: var(--fc-text-secondary);
    font-size: 13px;
    line-height: 1.65;
    margin: 0;
}

.fc-auth-footer {
    border-top: 1px solid var(--fc-border);
    color: var(--fc-text-secondary);
    font-size: 13px;
    margin-top: 22px;
    padding-top: 18px;
    text-align: center;
}

.fc-auth-alert {
    align-items: flex-start;
    border-radius: 10px;
    display: flex;
    font-size: 13px;
    gap: 10px;
    line-height: 1.45;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.fc-auth-alert--success {
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    color: #166534;
}

.fc-auth-alert--danger {
    background: #FEF2F2;
    border: 1px solid #FECACA;
    color: #991B1B;
}

.fc-auth-note {
    background: #F8FAFC;
    border: 1px dashed var(--fc-border);
    border-radius: 10px;
    color: var(--fc-text-secondary);
    font-size: 12px;
    line-height: 1.5;
    padding: 12px;
}

.fc-auth-checklist {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 12px;
    color: #1D4ED8;
    display: grid;
    gap: 9px;
    margin: 18px 0;
    padding: 14px;
}

.fc-auth-checklist li {
    align-items: flex-start;
    display: flex;
    font-size: 13px;
    gap: 8px;
}

.fc-auth-account-box,
.fc-auth-company-option {
    background: #F8FAFC;
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    padding: 14px;
}

.fc-auth-company-option {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    text-align: left;
    transition: border-color .15s, background-color .15s, transform .15s;
    width: 100%;
}

.fc-auth-company-option:hover,
.fc-auth-company-option.is-active {
    background: #EFF6FF;
    border-color: #93C5FD;
    transform: translateY(-1px);
}

.fc-auth-captcha-space {
    align-items: center;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 10px;
    color: var(--fc-text-secondary);
    display: flex;
    font-size: 12px;
    gap: 8px;
    justify-content: center;
    min-height: 44px;
    margin-bottom: 16px;
}

.fc-auth-captcha-space--active {
    border-style: solid;
    min-height: 78px;
    padding: 10px;
}

.fc-auth-captcha-space .g-recaptcha {
    max-width: 100%;
    overflow: hidden;
}

@media (max-width: 575.98px) {
    .fc-auth-page {
        align-items: flex-start;
        padding: 20px 12px;
    }

    .fc-auth-logo img {
        height: 64px;
    }

    .fc-auth-card__body {
        padding: 24px 18px;
    }

    .fc-auth-title {
        font-size: 23px !important;
    }

    .fc-password-checklist {
        grid-template-columns: 1fr;
    }
}

.page-title,
.fc-page-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--fc-text);
    letter-spacing: 0;
    margin: 0;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
}

.fc-section-title {
    color: var(--fc-text);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.35;
    margin: 0;
}

.fc-muted-text {
    color: var(--fc-text-secondary);
    font-size: 13px;
    line-height: 1.5;
}

.fc-icon-md {
    font-size: 18px !important;
    line-height: 1 !important;
}

.fc-icon-lg {
    font-size: 20px !important;
    line-height: 1 !important;
}

.dashboard-main-body h1,
.dashboard-main-body h2,
.dashboard-main-body h3 {
    color: var(--fc-text);
    letter-spacing: 0;
}

.dashboard-main-body h1 {
    font-size: var(--fc-title-page);
    line-height: var(--fc-leading-tight);
}

.dashboard-main-body h2 {
    font-size: var(--fc-title-section);
    line-height: 1.35;
}

.dashboard-main-body p {
    line-height: var(--fc-leading-normal);
}

.dashboard-main-body .text-2xxl {
    font-size: 22px !important;
    line-height: 1.25;
}

.dashboard-main-body .text-2xl {
    font-size: 20px !important;
    line-height: 1.3;
}

.dashboard-main-body .text-xxl {
    font-size: 18px !important;
    line-height: 1.35;
}

.dashboard-main-body .text-xl {
    font-size: 16px !important;
    line-height: 1.4;
}

.fc-page-subtitle {
    margin: 5px 0 0;
    color: var(--fc-text-secondary);
    font-size: 13px;
}

.fc-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(226, 232, 240, .72);
}

.fc-page-header__main {
    min-width: 0;
}

.fc-page-header__actions {
    flex-shrink: 0;
}

.fc-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    padding: 0;
    margin: 9px 0 0;
    list-style: none;
    color: var(--fc-text-secondary);
    font-size: 12px;
}

.fc-breadcrumb li:not(:last-child)::after {
    content: "\f105";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-left: 8px;
    color: #CBD5E1;
    font-size: 10px;
}

.fc-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--fc-primary);
    text-decoration: none;
    font-weight: 600;
}

.fc-breadcrumb a:hover {
    text-decoration: underline;
}

.fc-breadcrumb .is-current {
    color: var(--fc-text-secondary);
    font-weight: 600;
}

.card,
.fc-card {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border-subtle);
    border-radius: var(--fc-radius-md);
    box-shadow: var(--fc-shadow);
}

.card-header,
.fc-card-header {
    background: transparent;
    border-bottom: 1px solid var(--fc-border-subtle);
    padding: var(--fc-space-3) var(--fc-space-5);
}

.fc-card-title {
    font-size: var(--fc-title-card);
    font-weight: var(--fc-weight-semibold);
    color: var(--fc-text);
    margin: 0;
}

.fc-card-count {
    color: var(--fc-text-secondary);
    font-size: 13px;
    font-weight: 400;
}

.fc-btn-primary,
.fc-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: var(--fc-radius);
    font-size: var(--fc-text-sm);
    font-weight: var(--fc-weight-semibold);
    min-height: var(--fc-control);
    padding: 8px 14px;
    transition: background-color var(--fc-transition), border-color var(--fc-transition), color var(--fc-transition);
}

.fc-btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    font-size: var(--fc-text-sm);
    min-height: var(--fc-control);
    padding: 8px 14px;
}

.btn-primary,
.fc-btn-primary {
    background-color: var(--fc-primary);
    border-color: var(--fc-primary);
}

.btn-primary:hover,
.fc-btn-primary:hover {
    background-color: var(--fc-primary-hover);
    border-color: var(--fc-primary-hover);
}

.fc-btn-secondary {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    color: var(--fc-text-secondary);
}

.fc-btn-secondary:hover {
    background: var(--fc-background-secondary);
    color: var(--fc-text);
}

.fc-btn-ghost {
    background: transparent;
    border: 1px solid transparent;
    color: var(--fc-text-secondary);
}

.fc-btn-ghost:hover {
    background: var(--fc-background-secondary);
    color: var(--fc-text);
}

.fc-btn-sm {
    font-size: var(--fc-text-xs);
    min-height: var(--fc-control-sm);
    padding: 6px 11px;
}

.fc-btn-icon {
    padding: 0;
    width: var(--fc-control);
}

.fc-filter-card {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    margin-bottom: 16px;
}

.fc-btn-danger {
    background: var(--fc-danger);
    border-color: var(--fc-danger);
}

.fc-btn-danger:hover {
    background: #B91C1C;
    border-color: #B91C1C;
}

.fc-tag {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: 700;
    gap: 6px;
    line-height: 1;
    padding: 5px 10px;
    white-space: nowrap;
}

.fc-tag--primary { background: #EFF6FF; color: var(--fc-primary); }
.fc-tag--success { background: #F0FDF4; color: #047857; }
.fc-tag--danger { background: #FEF2F2; color: #B91C1C; }
.fc-tag--warning { background: #FFFBEB; color: #B45309; }
.fc-tag--neutral { background: #F1F5F9; color: #475569; }

.fc-avatar {
    align-items: center;
    background: var(--fc-primary);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-weight: 800;
    justify-content: center;
    overflow: hidden;
}

.fc-avatar img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.fc-avatar--sm { font-size: 11px; height: 32px; width: 32px; }
.fc-avatar--md { font-size: 13px; height: 40px; width: 40px; }
.fc-avatar--lg { font-size: 16px; height: 52px; width: 52px; }

.fc-action-dropdown {
    display: inline-flex;
}

.fc-action-dropdown__button {
    align-items: center;
    background: #F8FAFC;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    color: var(--fc-text-secondary);
    display: inline-flex;
    height: 32px;
    justify-content: center;
    transition: background-color .15s, border-color .15s, color .15s;
    width: 32px;
}

.fc-action-dropdown__button:hover,
.fc-action-dropdown__button[aria-expanded="true"] {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: var(--fc-primary);
}

.fc-action-dropdown__menu {
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: 0 12px 24px rgba(15, 23, 42, .12);
    font-size: 13px;
    padding: 6px;
}

.fc-action-dropdown__menu .dropdown-item {
    align-items: center;
    border-radius: 6px;
    display: flex;
    gap: 8px;
    padding: 8px 10px;
}

.fc-tabs {
    align-items: center;
    border-bottom: 1px solid var(--fc-border);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 16px;
}

.fc-tabs__item {
    align-items: center;
    border-bottom: 2px solid transparent;
    color: var(--fc-text-secondary);
    display: inline-flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    padding: 10px 12px;
    text-decoration: none;
}

.fc-tabs__item:hover,
.fc-tabs__item.is-active {
    border-bottom-color: var(--fc-primary);
    color: var(--fc-primary);
}

.fc-tabs .nav-link {
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
}

.fc-tabs .nav-link.active {
    background: transparent;
}

.fc-tab-pane-card {
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.fc-detail-grid {
    font-size: 13px;
}

.fc-badge-count {
    font-size: 11px;
}

.fc-info-tile {
    align-items: center;
    background: #F8FAFC;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    display: flex;
    gap: 12px;
    padding: 14px;
}

.fc-info-tile i {
    color: var(--fc-primary);
    font-size: 16px;
}

.fc-progress-bar {
    width: 100%;
}

.fc-progress-bar__meta {
    align-items: center;
    color: var(--fc-text-secondary);
    display: flex;
    font-size: 12px;
    justify-content: space-between;
    margin-bottom: 6px;
}

.fc-progress-bar__track {
    background: #E2E8F0;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.fc-progress-bar__fill {
    border-radius: inherit;
    display: block;
    height: 100%;
}

.fc-progress-bar__fill--primary { background: var(--fc-primary); }
.fc-progress-bar__fill--success { background: var(--fc-success); }
.fc-progress-bar__fill--danger { background: var(--fc-danger); }
.fc-progress-bar__fill--warning { background: var(--fc-warning); }

.fc-storage {
    background: var(--fc-background-secondary);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    display: grid;
    gap: 10px;
    padding: 12px;
}

.sidebar .fc-storage {
    margin: 12px 16px 16px;
}

.sidebar.active .fc-storage {
    display: none;
}

.sidebar.active:hover .fc-storage {
    display: grid;
}

.fc-storage__header {
    align-items: center;
    display: flex;
    gap: 10px;
}

.fc-storage__icon {
    align-items: center;
    background: var(--fc-primary-soft);
    border-radius: 8px;
    color: var(--fc-primary);
    display: inline-flex;
    flex-shrink: 0;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.fc-storage__header strong {
    color: var(--fc-text);
    display: block;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
}

.fc-storage__header small,
.fc-storage__meta,
.fc-storage__unlimited {
    color: var(--fc-text-secondary);
    font-size: 11px;
    line-height: 1.35;
}

.fc-storage__bar {
    background: var(--fc-border);
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.fc-storage__bar-fill {
    border-radius: inherit;
    display: block;
    height: 100%;
}

.fc-storage__bar-fill--normal { background: var(--fc-primary); }
.fc-storage__bar-fill--warning { background: var(--fc-warning); }
.fc-storage__bar-fill--critical { background: #F97316; }
.fc-storage__bar-fill--blocked { background: var(--fc-danger); }

.fc-storage__upgrade {
    background: var(--fc-primary);
    border: 0;
    border-radius: 7px;
    color: #fff;
    display: block;
    font-size: 11px;
    font-weight: 800;
    min-height: 30px;
    padding: 6px 10px;
    width: 100%;
}

.fc-storage__upgrade:hover {
    background: #1D4ED8;
    color: #fff;
}

.fc-plan-page {
    display: grid;
    gap: 18px;
}

.fc-plan-hero {
    background: linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 68%, #ECFDF5 100%);
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    box-shadow: var(--fc-shadow);
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(0, 1.7fr) minmax(280px, .85fr);
    padding: 26px;
}

.fc-plan-eyebrow {
    align-items: center;
    background: #DBEAFE;
    border-radius: 999px;
    color: var(--fc-primary);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 12px;
    padding: 6px 10px;
}

.fc-plan-hero h1 {
    color: var(--fc-text);
    font-size: 28px;
    font-weight: 850;
    line-height: 1.16;
    margin: 0;
    max-width: 760px;
}

.fc-plan-hero p {
    color: var(--fc-text-secondary);
    font-size: 15px;
    line-height: 1.55;
    margin: 10px 0 0;
    max-width: 700px;
}

.fc-plan-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.fc-plan-primary-cta,
.fc-plan-secondary-cta {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    min-height: 42px;
}

.fc-plan-current-card,
.fc-plan-last-request,
.fc-plan-storage-card {
    background: rgba(255, 255, 255, .88);
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    padding: 16px;
}

.fc-plan-current-card {
    display: grid;
    gap: 14px;
}

.fc-plan-current-card span,
.fc-plan-recommendation span,
.fc-plan-last-request span {
    color: var(--fc-text-secondary);
    display: block;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.fc-plan-current-card strong,
.fc-plan-last-request strong {
    color: var(--fc-text);
    font-size: 15px;
}

.fc-plan-current-card__grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fc-plan-recommendation {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    border-radius: 9px;
    padding: 12px;
}

.fc-plan-recommendation strong {
    color: var(--fc-primary);
    display: block;
    font-size: 18px;
}

.fc-plan-recommendation small {
    color: var(--fc-text-secondary);
    display: block;
    margin-top: 2px;
}

.fc-plan-benefit-strip {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fc-plan-benefit-strip > div {
    align-items: center;
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: 9px;
    color: var(--fc-text);
    display: flex;
    font-size: 13px;
    font-weight: 700;
    gap: 8px;
    padding: 12px 14px;
}

.fc-plan-benefit-strip i,
.fc-plan-feature-list i {
    color: var(--fc-success);
}

.fc-plan-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.fc-plan-card {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    box-shadow: var(--fc-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 100%;
    padding: 18px;
}

.fc-plan-card.is-recommended {
    border-color: var(--fc-primary);
    box-shadow: 0 12px 32px rgba(30, 64, 175, .12);
}

.fc-plan-card.is-current {
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.fc-plan-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
}

.fc-plan-badge {
    background: #F1F5F9;
    border-radius: 999px;
    color: var(--fc-text-secondary);
    font-size: 10px;
    font-weight: 800;
    padding: 5px 7px;
}

.fc-plan-badge--current {
    background: #ECFDF5;
    color: #047857;
}

.fc-plan-badge--recommended {
    background: #DBEAFE;
    color: var(--fc-primary);
}

.fc-plan-card h2 {
    color: var(--fc-text);
    font-size: 17px;
    font-weight: 850;
    margin: 0;
}

.fc-plan-card p {
    color: var(--fc-text-secondary);
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    min-height: 52px;
}

.fc-plan-price {
    color: var(--fc-text);
    display: block;
    font-size: 18px;
    line-height: 1.2;
}

.fc-plan-feature-list {
    display: grid;
    gap: 8px;
    list-style: none;
    margin: 0 0 auto;
    padding: 0;
}

.fc-plan-feature-list li {
    align-items: flex-start;
    color: #334155;
    display: flex;
    font-size: 12px;
    gap: 7px;
    line-height: 1.35;
}

.fc-plan-feature-list i {
    font-size: 11px;
    margin-top: 3px;
}

.fc-plan-footer-row {
    align-items: stretch;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr) auto;
}

.fc-plan-last-request p {
    color: var(--fc-text-secondary);
    font-size: 13px;
    margin: 5px 0 0;
}

.fc-plan-logout {
    align-self: center;
}

.fc-upgrade-page {
    display: grid;
    gap: 18px;
}

.fc-upgrade-hero {
    background:
        radial-gradient(circle at 82% 12%, rgba(16, 185, 129, .16), transparent 28%),
        linear-gradient(135deg, #0F172A 0%, #1E40AF 58%, #1D4ED8 100%);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .16);
    color: #fff;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .78fr);
    overflow: hidden;
    padding: 30px;
    position: relative;
}

.fc-upgrade-badge {
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #DBEAFE;
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 11px;
}

.fc-upgrade-hero h1 {
    color: #fff;
    font-size: 30px;
    font-weight: 850;
    line-height: 1.12;
    margin: 0;
    max-width: 740px;
}

.fc-upgrade-hero p {
    color: #D9E7FF;
    font-size: 15px;
    line-height: 1.58;
    margin: 12px 0 0;
    max-width: 720px;
}

.fc-upgrade-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.fc-upgrade-primary,
.fc-upgrade-secondary {
    align-items: center;
    border-radius: 9px;
    display: inline-flex;
    font-weight: 850;
    gap: 8px;
    min-height: 44px;
    padding-left: 18px;
    padding-right: 18px;
}

.fc-upgrade-hero .fc-upgrade-primary {
    background: #10B981;
    border-color: #10B981;
    color: #fff;
}

.fc-upgrade-hero .fc-upgrade-primary:hover {
    background: #059669;
    border-color: #059669;
}

.fc-upgrade-hero .fc-upgrade-secondary {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
}

.fc-upgrade-hero__summary {
    align-self: stretch;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    display: grid;
    gap: 12px;
    padding: 18px;
}

.fc-upgrade-hero__summary span,
.fc-section-kicker,
.fc-last-request-card span {
    color: var(--fc-text-secondary);
    display: block;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .02em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.fc-upgrade-hero__summary span {
    color: #BBD3FF;
}

.fc-upgrade-hero__summary strong {
    color: #fff;
    display: block;
    font-size: 18px;
    line-height: 1.2;
}

.fc-upgrade-hero__summary small {
    color: #D9E7FF;
    display: block;
    margin-top: 4px;
}

.fc-upgrade-arrow {
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.fc-upgrade-layout {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(280px, .78fr) minmax(0, 1.22fr);
}

.fc-current-plan-card,
.fc-recommended-plan-card,
.fc-last-request-card {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    box-shadow: var(--fc-shadow);
}

.fc-current-plan-card {
    padding: 18px;
}

.fc-current-plan-card__header,
.fc-recommended-plan-card__top,
.fc-last-request-card {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.fc-current-plan-card h2,
.fc-recommended-plan-card h2 {
    color: var(--fc-text);
    font-size: 18px;
    font-weight: 850;
    margin: 0;
}

.fc-current-plan-meta {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 16px;
}

.fc-current-plan-meta > div {
    background: var(--fc-background);
    border: 1px solid #EEF2F7;
    border-radius: 9px;
    padding: 11px;
}

.fc-current-plan-meta span,
.fc-usage-row span {
    color: var(--fc-text-secondary);
    display: block;
    font-size: 11px;
    font-weight: 800;
    margin-bottom: 4px;
}

.fc-current-plan-meta strong,
.fc-usage-row strong {
    color: var(--fc-text);
    font-size: 13px;
}

.fc-usage-list {
    display: grid;
    gap: 13px;
    margin-top: 16px;
}

.fc-usage-row {
    display: grid;
    gap: 7px;
}

.fc-usage-row > div:first-child {
    align-items: center;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.fc-usage-bar {
    background: #E2E8F0;
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.fc-usage-bar span {
    background: linear-gradient(90deg, var(--fc-primary), var(--fc-success));
    border-radius: inherit;
    display: block;
    height: 100%;
}

.fc-recommended-plan-card {
    background:
        linear-gradient(180deg, #FFFFFF 0%, #EFF6FF 100%);
    border-color: #BFDBFE;
    display: grid;
    gap: 16px;
    padding: 22px;
}

.fc-recommended-plan-card__top {
    justify-content: flex-start;
    flex-wrap: wrap;
}

.fc-recommended-plan-card__body {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
}

.fc-recommended-plan-card__body p {
    color: var(--fc-text-secondary);
    font-size: 14px;
    line-height: 1.5;
    margin: 7px 0 0;
    max-width: 560px;
}

.fc-recommended-plan-card__body > strong {
    color: var(--fc-primary);
    font-size: 24px;
    line-height: 1.1;
    white-space: nowrap;
}

.fc-recommended-plan-card ul,
.fc-commercial-plan-list {
    display: grid;
    gap: 9px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fc-recommended-plan-card li,
.fc-commercial-plan-list li {
    align-items: flex-start;
    color: #334155;
    display: flex;
    font-size: 13px;
    gap: 8px;
    line-height: 1.35;
}

.fc-recommended-plan-card li i,
.fc-commercial-plan-list li i {
    color: var(--fc-success);
    font-size: 12px;
    margin-top: 3px;
}

.fc-upgrade-value-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fc-upgrade-value-grid > div {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    box-shadow: var(--fc-shadow);
    padding: 16px;
}

.fc-upgrade-value-grid i {
    align-items: center;
    background: #EFF6FF;
    border-radius: 9px;
    color: var(--fc-primary);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    margin-bottom: 12px;
    width: 36px;
}

.fc-upgrade-value-grid strong {
    color: var(--fc-text);
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.fc-upgrade-value-grid span {
    color: var(--fc-text-secondary);
    display: block;
    font-size: 13px;
    line-height: 1.45;
}

.fc-commercial-plan-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fc-commercial-plan-card {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    box-shadow: var(--fc-shadow);
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
}

.fc-commercial-plan-card.is-recommended {
    border-color: var(--fc-primary);
    box-shadow: 0 14px 34px rgba(30, 64, 175, .13);
}

.fc-commercial-plan-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 24px;
}

.fc-commercial-plan-card h3 {
    color: var(--fc-text);
    font-size: 17px;
    font-weight: 850;
    margin: 0;
}

.fc-commercial-plan-price {
    color: var(--fc-primary);
    font-size: 19px;
    line-height: 1.15;
}

.fc-commercial-plan-card p {
    color: var(--fc-text-secondary);
    font-size: 12px;
    line-height: 1.45;
    margin: 0;
    min-height: 52px;
}

.fc-commercial-plan-limits {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: auto;
}

.fc-commercial-plan-limits span {
    background: var(--fc-background);
    border-radius: 999px;
    color: var(--fc-text-secondary);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 8px;
}

.fc-plan-status-pill {
    background: #EFF6FF;
    border-radius: 999px;
    color: var(--fc-primary);
    display: inline-flex;
    font-size: 11px;
    font-weight: 850;
    padding: 6px 9px;
    white-space: nowrap;
}

.fc-last-request-card {
    padding: 16px 18px;
}

.fc-last-request-card strong {
    color: var(--fc-text);
    display: block;
    font-size: 14px;
}

.fc-last-request-card p {
    color: var(--fc-text-secondary);
    font-size: 13px;
    margin: 5px 0 0;
}

.fc-last-request-card > i {
    color: var(--fc-success);
    font-size: 22px;
}

.fc-onboarding-page {
    align-items: center;
    display: grid;
    min-height: calc(100vh - 170px);
}

.fc-onboarding-card {
    background:
        radial-gradient(circle at 88% 14%, rgba(16, 185, 129, .16), transparent 28%),
        linear-gradient(135deg, #FFFFFF 0%, #EFF6FF 62%, #F8FAFC 100%);
    border: 1px solid var(--fc-border);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(15, 23, 42, .11);
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr);
    margin: 0 auto;
    max-width: 980px;
    overflow: hidden;
    padding: 30px;
    width: 100%;
}

.fc-onboarding-card__media {
    align-content: center;
    background: linear-gradient(160deg, var(--fc-primary), #1D4ED8);
    border-radius: 14px;
    color: #fff;
    display: grid;
    justify-items: start;
    min-height: 280px;
    padding: 26px;
}

.fc-onboarding-icon {
    align-items: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 14px;
    display: inline-flex;
    font-size: 24px;
    height: 58px;
    justify-content: center;
    margin-bottom: 18px;
    width: 58px;
}

.fc-onboarding-badge {
    background: rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: #DBEAFE;
    font-size: 12px;
    font-weight: 850;
    padding: 7px 11px;
}

.fc-onboarding-card__content {
    align-self: center;
}

.fc-onboarding-card h1 {
    color: var(--fc-text);
    font-size: 28px;
    font-weight: 850;
    line-height: 1.15;
    margin: 0;
}

.fc-onboarding-card p {
    color: var(--fc-text-secondary);
    font-size: 15px;
    line-height: 1.58;
    margin: 12px 0 0;
    max-width: 620px;
}

.fc-onboarding-card__media h2 {
    color: #FFFFFF;
    font-size: 22px;
    font-weight: 850;
    line-height: 1.2;
    margin: 22px 0 0;
}

.fc-onboarding-card__media p {
    color: #DBEAFE;
    font-size: 13px;
    line-height: 1.55;
    margin-top: 8px;
}

.fc-onboarding-step-kicker {
    color: var(--fc-primary);
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.fc-onboarding-progress {
    display: grid;
    gap: 9px;
    margin-top: 24px;
    width: 100%;
}

.fc-onboarding-progress__item {
    align-items: center;
    border-radius: 10px;
    color: rgba(255, 255, 255, .72);
    display: flex;
    gap: 10px;
    padding: 8px 0;
}

.fc-onboarding-progress__item span {
    align-items: center;
    background: rgba(255, 255, 255, .13);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 850;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.fc-onboarding-progress__item strong {
    font-size: 12px;
    font-weight: 800;
}

.fc-onboarding-progress__item.is-active {
    color: #FFFFFF;
}

.fc-onboarding-progress__item.is-active span {
    background: #FFFFFF;
    color: var(--fc-primary);
}

.fc-onboarding-steps {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.fc-onboarding-steps > div {
    align-items: center;
    background: rgba(255, 255, 255, .74);
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    color: var(--fc-text);
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 10px;
    padding: 12px 14px;
}

.fc-onboarding-steps i {
    color: var(--fc-success);
}

.fc-onboarding-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.fc-onboarding-primary,
.fc-onboarding-secondary {
    align-items: center;
    border-radius: 9px;
    display: inline-flex;
    font-weight: 850;
    gap: 8px;
    min-height: 42px;
    padding-left: 18px;
    padding-right: 18px;
}

.fc-onboarding-form {
    margin-top: 22px;
}

.fc-onboarding-options {
    display: grid;
    gap: 12px;
}

.fc-onboarding-option {
    align-items: flex-start;
    background: #FFFFFF;
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    gap: 12px;
    padding: 15px;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.fc-onboarding-option:hover {
    border-color: rgba(30, 64, 175, .38);
    box-shadow: 0 10px 24px rgba(15, 23, 42, .07);
    transform: translateY(-1px);
}

.fc-onboarding-option input {
    accent-color: var(--fc-primary);
    margin-top: 4px;
}

.fc-onboarding-option strong,
.fc-onboarding-existing strong,
.fc-onboarding-summary strong {
    color: var(--fc-text);
    display: block;
    font-size: 14px;
    font-weight: 850;
}

.fc-onboarding-option small,
.fc-onboarding-existing span,
.fc-onboarding-summary span {
    color: var(--fc-text-secondary);
    display: block;
    font-size: 12px;
    line-height: 1.45;
    margin-top: 3px;
}

.fc-onboarding-existing {
    align-items: flex-start;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: 12px;
    display: flex;
    gap: 12px;
    margin-top: 22px;
    padding: 15px;
}

.fc-onboarding-existing i {
    color: var(--fc-success);
    margin-top: 3px;
}

.fc-onboarding-summary {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.fc-onboarding-summary > div {
    background: #FFFFFF;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    padding: 13px 14px;
}

.fc-onboarding-checklist {
    background:
        radial-gradient(circle at 94% 10%, rgba(16, 185, 129, .13), transparent 28%),
        linear-gradient(135deg, #FFFFFF 0%, #F8FAFC 100%);
    border: 1px solid var(--fc-border);
    border-radius: 14px;
    box-shadow: var(--fc-shadow);
    margin-bottom: 32px;
    padding: 18px;
}

.fc-onboarding-checklist + .fc-dashboard-section {
    margin-top: 0;
}

.fc-onboarding-checklist.is-minimized {
    margin-bottom: 28px;
    padding: 14px 16px;
}

.fc-onboarding-checklist__summary {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.fc-onboarding-checklist__summary[hidden],
.fc-onboarding-checklist__body[hidden] {
    display: none;
}

.fc-onboarding-checklist__badge {
    color: var(--fc-primary);
    display: inline-flex;
    font-size: 11px;
    font-weight: 850;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.fc-onboarding-checklist h2 {
    color: var(--fc-text);
    font-size: 18px;
    font-weight: 850;
    line-height: 1.25;
    margin: 0;
}

.fc-onboarding-checklist p {
    color: var(--fc-text-secondary);
    font-size: 13px;
    line-height: 1.45;
    margin: 5px 0 0;
}

.fc-onboarding-checklist__progress {
    min-width: 150px;
    text-align: right;
}

.fc-onboarding-checklist__summary-actions {
    align-items: flex-end;
    display: flex;
    gap: 12px;
}

.fc-onboarding-checklist__progress strong {
    color: var(--fc-text);
    display: block;
    font-size: 18px;
    font-weight: 850;
    margin-bottom: 2px;
}

.fc-onboarding-checklist__progress > span {
    color: var(--fc-text-secondary);
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 7px;
}

.fc-onboarding-checklist__track {
    background: #E2E8F0;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
}

.fc-onboarding-checklist__track span {
    background: linear-gradient(90deg, var(--fc-primary), var(--fc-success));
    border-radius: inherit;
    display: block;
    height: 100%;
}

.fc-onboarding-checklist__body {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, .32fr);
    margin-top: 16px;
}

.fc-onboarding-checklist__collapsed {
    align-items: center;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.fc-onboarding-checklist__collapsed[hidden] {
    display: none;
}

.fc-onboarding-checklist__collapsed strong {
    color: var(--fc-text);
    display: block;
    font-size: 14px;
    font-weight: 850;
    line-height: 1.25;
}

.fc-onboarding-checklist__collapsed span {
    color: var(--fc-text-secondary);
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 3px;
}

.fc-onboarding-checklist__collapsed-actions {
    align-items: center;
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
}

.fc-onboarding-checklist__mini-track {
    background: #E2E8F0;
    border-radius: 999px;
    height: 8px;
    overflow: hidden;
    width: 132px;
}

.fc-onboarding-checklist__mini-track span {
    background: linear-gradient(90deg, var(--fc-primary), var(--fc-success));
    border-radius: inherit;
    display: block;
    height: 100%;
}

.fc-onboarding-checklist__toggle {
    background: #FFFFFF;
    border: 1px solid var(--fc-border);
    border-radius: 8px;
    color: var(--fc-primary);
    font-size: 12px;
    font-weight: 850;
    min-height: 34px;
    padding: 7px 11px;
}

.fc-onboarding-checklist__toggle:hover {
    background: #EFF6FF;
    border-color: #BFDBFE;
    color: #1D4ED8;
}

.fc-onboarding-checklist__items {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fc-onboarding-checklist__item {
    align-items: flex-start;
    background: #FFFFFF;
    border: 1px solid var(--fc-border);
    border-radius: 10px;
    display: flex;
    gap: 10px;
    padding: 11px;
}

.fc-onboarding-checklist__icon {
    align-items: center;
    background: #EFF6FF;
    border-radius: 999px;
    color: var(--fc-primary);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 8px;
    height: 22px;
    justify-content: center;
    margin-top: 1px;
    width: 22px;
}

.fc-onboarding-checklist__item.is-complete .fc-onboarding-checklist__icon {
    background: #D1FAE5;
    color: var(--fc-success);
    font-size: 11px;
}

.fc-onboarding-checklist__item.is-locked .fc-onboarding-checklist__icon {
    background: #FEF3C7;
    color: var(--fc-warning);
}

.fc-onboarding-checklist__item strong {
    color: var(--fc-text);
    display: block;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.25;
}

.fc-onboarding-checklist__item span:not(.fc-onboarding-checklist__icon) {
    color: var(--fc-text-secondary);
    display: block;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 3px;
}

.fc-onboarding-checklist__upgrade-link {
    color: var(--fc-warning);
    display: inline-flex;
    font-size: 11px;
    font-weight: 850;
    margin-top: 6px;
    text-decoration: none;
}

.fc-onboarding-checklist__upgrade-link:hover {
    color: #B45309;
    text-decoration: underline;
}

.fc-onboarding-checklist__next {
    background: #0F172A;
    border-radius: 12px;
    color: #FFFFFF;
    padding: 15px;
}

.fc-onboarding-checklist__next > span {
    color: #93C5FD;
    display: block;
    font-size: 11px;
    font-weight: 850;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.fc-onboarding-checklist__next strong {
    display: block;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.3;
}

.fc-onboarding-checklist__next p,
.fc-onboarding-checklist__next small {
    color: #CBD5E1;
    display: block;
    font-size: 12px;
    line-height: 1.45;
    margin: 7px 0 12px;
}

.fc-onboarding-checklist__hide {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(203, 213, 225, .38);
    border-radius: 8px;
    color: #E2E8F0;
    font-size: 12px;
    font-weight: 850;
    margin-top: 12px;
    min-height: 34px;
    padding: 7px 11px;
}

.fc-onboarding-checklist__hide:hover {
    background: rgba(255, 255, 255, .14);
    color: #FFFFFF;
}

.fc-widget-card {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-left: 3px solid var(--fc-primary);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    height: 100%;
    padding: 16px;
}

.fc-widget-card--success { border-left-color: var(--fc-success); }
.fc-widget-card--danger { border-left-color: var(--fc-danger); }
.fc-widget-card--warning { border-left-color: var(--fc-warning); }
.fc-widget-card--neutral { border-left-color: #94A3B8; }

.fc-widget-card__header {
    align-items: flex-start;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.fc-widget-card__header h3 {
    color: var(--fc-text);
    font-size: 14px;
    font-weight: 800;
    margin: 0;
}

.fc-widget-card__header p {
    color: var(--fc-text-secondary);
    font-size: 12px;
    margin: 4px 0 0;
}

.fc-widget-card__meta {
    align-items: flex-start;
    display: flex;
    flex-shrink: 0;
    gap: 7px;
}

.fc-widget-card__icon {
    align-items: center;
    background: #EFF6FF;
    border-radius: var(--fc-radius);
    color: var(--fc-primary);
    display: inline-flex;
    flex-shrink: 0;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.fc-widget-card__badge {
    align-items: center;
    background: var(--fc-primary-soft);
    border: 1px solid color-mix(in srgb, var(--fc-primary) 20%, transparent);
    border-radius: 999px;
    color: var(--fc-primary);
    display: inline-flex;
    font-size: 10px;
    font-weight: var(--fc-weight-semibold);
    min-height: 22px;
    padding: 3px 7px;
}

.fc-widget-card__value {
    color: var(--fc-text);
    display: block;
    font-size: 24px;
    line-height: 1.2;
    margin-top: 12px;
}

.fc-form-section {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    margin-bottom: 16px;
}

.fc-form-section__header {
    border-bottom: 1px solid var(--fc-border);
    padding: 14px 18px;
}

.fc-form-section__header h2 {
    align-items: center;
    color: var(--fc-text);
    display: flex;
    font-size: 15px;
    font-weight: 800;
    gap: 8px;
    margin: 0;
}

.fc-form-section__header h2 i {
    color: var(--fc-primary);
    font-size: 14px;
}

.fc-form-section__header p {
    color: var(--fc-text-secondary);
    font-size: 13px;
    margin: 4px 0 0;
}

.fc-form-section__body {
    padding: 18px;
}

.fc-form-section .form-label {
    color: var(--fc-text);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
}

.fc-required {
    color: var(--fc-danger);
    font-weight: 800;
}

.fc-form-help {
    color: var(--fc-text-secondary);
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

.fc-form-error {
    color: var(--fc-danger);
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
}

.fc-form-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.fc-tooltip-trigger {
    display: inline-flex;
}

.fc-pagination {
    border-top: 1px solid var(--fc-border);
    padding: 14px 16px;
}

.fc-filter-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px 0;
}

.fc-filter-card__title {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--fc-text);
    font-size: 13px;
    font-weight: 700;
}

.fc-filter-card__body {
    padding: 12px 16px 16px;
}

.fc-filter-card .form-control,
.fc-filter-card .form-select {
    min-height: 34px;
}

.fc-filter-actions {
    white-space: nowrap;
}

.fc-table {
    font-size: .85rem;
}

.fc-table th,
.table th {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--fc-text-secondary);
    background: var(--fc-background);
    border-bottom: 1px solid var(--fc-border);
    white-space: nowrap;
}

.fc-table td,
.table td {
    vertical-align: middle;
    padding: 11px 16px;
    color: #334155;
    border-bottom: 1px solid #F1F5F9;
}

.fc-table tbody tr:hover,
.table tbody tr:hover {
    background: rgba(30, 64, 175, .03);
}

.fc-cell-title {
    font-weight: 600;
    color: var(--fc-text);
}

.fc-cell-subtitle {
    display: block;
    color: var(--fc-text-secondary);
    font-size: 12px;
    margin-top: 2px;
}

.fc-monospace {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.fc-amount {
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.fc-status-badge,
.badge-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.fc-status-badge i {
    font-size: 10px;
}

.fc-soft-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

.fc-table-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.fc-table-actions--start {
    justify-content: flex-start;
}

.fc-action-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: var(--fc-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, color .15s, transform .12s;
}

.fc-action-btn i {
    font-size: 13px;
}

.fc-action-btn:hover {
    transform: translateY(-1px);
}

.fc-action-btn--view {
    background: #EFF6FF;
    color: var(--fc-primary);
}

.fc-action-btn--edit {
    background: #F0FDF4;
    color: var(--fc-success);
}

.fc-action-btn--role,
.fc-table-action {
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: var(--fc-primary);
}

.fc-action-btn--delete {
    background: #FEF2F2;
    color: var(--fc-danger);
}

.fc-action-btn--warning {
    background: #FFFBEB;
    color: var(--fc-warning);
}

.fc-alert-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.fc-alert-actions__button {
    align-items: center;
    border: 0;
    border-radius: var(--fc-radius);
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 32px;
    height: 32px;
    justify-content: center;
    padding: 0;
    text-decoration: none;
    transition: background-color .15s, color .15s, transform .12s;
    width: 32px;
}

.fc-alert-actions__button i {
    display: block;
    font-size: 13px;
    line-height: 1;
}

.fc-alert-actions__button:hover {
    transform: translateY(-1px);
}

.fc-alert-actions__button--view {
    background: #EFF6FF;
    color: #1D4ED8;
}

.fc-alert-actions__button--read {
    background: #ECFDF5;
    color: #047857;
}

.fc-alert-actions__button--delete {
    background: #FEF2F2;
    color: #B91C1C;
}

.fc-operational-scope {
    align-items: center;
    background: var(--fc-primary-soft);
    border: 1px solid color-mix(in srgb, var(--fc-primary) 22%, var(--fc-border));
    border-radius: var(--fc-radius);
    color: var(--fc-text-secondary);
    display: inline-flex;
    font-size: var(--fc-text-xs);
    gap: 8px;
    max-width: 100%;
    padding: 8px 12px;
}

.fc-operational-scope strong,
.fc-operational-scope i {
    color: var(--fc-primary);
}

.sidebar-menu .fc-sidebar-item--completed > a {
    color: var(--fc-text-secondary);
    font-weight: var(--fc-weight-medium);
}

.fc-progress {
    min-width: 160px;
}

.fc-progress .progress {
    height: 6px;
}

.fc-progress-meta {
    color: var(--fc-text-secondary);
    font-size: 12px;
    white-space: nowrap;
}

.btn-action,
.btn-action-view,
.btn-action-edit,
.btn-action-delete {
    width: 32px;
    height: 32px;
    border-radius: var(--fc-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-action-view {
    background: #EFF6FF;
    color: var(--fc-primary);
}

.btn-action-edit {
    background: #F0FDF4;
    color: var(--fc-success);
}

.btn-action-delete {
    background: #FEF2F2;
    color: var(--fc-danger);
}

.form-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
}

.form-label.required::after {
    content: " *";
    color: var(--fc-danger);
}

.form-control,
.form-select {
    border-radius: var(--fc-radius);
    border: 1px solid #D1D5DB;
    font-size: 14px;
    transition: border-color .2s, box-shadow .2s;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, .12);
    outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--fc-danger);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, .08);
}

.invalid-feedback {
    font-size: 12px;
    color: var(--fc-danger);
    margin-top: 4px;
}

.form-section-footer {
    border-top: 1px solid var(--fc-border);
    padding-top: 20px;
    margin-top: 8px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.icon-field .form-control,
.icon-field .form-select {
    padding-left: 40px;
}

.fc-empty-state,
.empty-state-wrap {
    background: rgba(30, 64, 175, .025);
    border-radius: var(--fc-radius);
    padding: 40px 24px;
    text-align: center;
}

.fc-empty-state__icon,
.empty-state-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(30, 64, 175, .08);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    margin-bottom: 14px;
    color: var(--fc-primary);
}

.fc-empty-state h6 {
    font-weight: 700;
    color: var(--fc-text);
    margin: 0 0 8px;
}

.fc-empty-state p {
    color: var(--fc-text-secondary);
    font-size: 13px;
    margin: 0 0 16px;
}

.sidebar-menu-group-title {
    color: var(--fc-text-subtle);
    font-size: .625rem;
    font-weight: var(--fc-weight-bold);
    letter-spacing: .1em;
    margin: var(--fc-space-4) var(--fc-space-3) var(--fc-space-1);
    padding: var(--fc-space-2) var(--fc-space-2) var(--fc-space-1);
    text-transform: uppercase;
}

.sidebar {
    background: var(--fc-surface);
    border-right: 1px solid var(--fc-border-subtle);
    transition: width var(--fc-transition), inset-inline-start var(--fc-transition);
}

.sidebar-logo {
    border-bottom-color: var(--fc-border-subtle);
    border-right-color: var(--fc-border-subtle);
    height: var(--fc-topbar-height);
    padding: 12px 18px;
}

.fc-sidebar-logo-image {
    height: 34px;
    width: auto;
}

.sidebar-menu-area {
    border-right-color: var(--fc-border-subtle);
    height: calc(100vh - var(--fc-topbar-height));
    padding: var(--fc-space-3) var(--fc-space-2) var(--fc-space-5);
}

.sidebar-menu > li > a {
    border-radius: var(--fc-radius);
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-sm);
    font-weight: var(--fc-weight-medium);
    margin: 2px 4px;
    min-height: 38px;
    padding: 8px 10px;
    transition: background-color var(--fc-transition), color var(--fc-transition);
}

.sidebar-menu > li > a .menu-icon {
    color: var(--fc-text-subtle);
    font-size: .9375rem;
    min-width: 20px;
    text-align: center;
    width: 20px;
}

.sidebar-menu > li.dropdown.open > a {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    font-weight: var(--fc-weight-semibold);
}

.sidebar-menu > li.dropdown.open > a .menu-icon {
    color: var(--fc-primary);
}

.sidebar-menu > li.dropdown.open > a::after {
    color: var(--fc-primary);
}

.sidebar-menu > li.active-page > a,
.sidebar-submenu > li.active-page > a,
.sidebar-menu > li > a.active-page,
.sidebar-submenu > li > a.active-page {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    border-radius: var(--fc-radius);
    box-shadow: inset 3px 0 0 var(--fc-primary);
    font-weight: var(--fc-weight-semibold);
}

.sidebar-menu > li.active-page > a .menu-icon,
.sidebar-submenu > li.active-page > a .circle-icon,
.sidebar-menu > li > a.active-page .menu-icon,
.sidebar-submenu > li > a.active-page .circle-icon {
    color: var(--fc-primary);
}

.sidebar-menu > li > a:hover,
.sidebar-submenu > li > a:hover {
    background: var(--fc-background-secondary);
    border-radius: var(--fc-radius);
    color: var(--fc-text);
}

.sidebar-menu > li.active-page > a:hover,
.sidebar-submenu > li.active-page > a:hover,
.sidebar-menu > li > a.active-page:hover,
.sidebar-submenu > li > a.active-page:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
}

.sidebar-menu > li.active-page > a:hover .menu-icon,
.sidebar-submenu > li.active-page > a:hover .circle-icon,
.sidebar-menu > li > a.active-page:hover .menu-icon,
.sidebar-submenu > li > a.active-page:hover .circle-icon {
    color: var(--fc-primary);
}

.sidebar-submenu {
    margin: 3px 4px 8px 12px;
    padding-left: 12px;
}

.sidebar-submenu > li > a {
    border-radius: var(--fc-radius);
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-xs);
    margin: 2px 0;
    min-height: 34px;
    padding: 7px 9px;
}

.sidebar-close-btn {
    align-items: center;
    justify-content: center;
}

.fc-nav-badge {
    font-size: .625rem;
    font-weight: var(--fc-weight-semibold);
}

.pagination .page-link {
    border-radius: var(--fc-radius);
    margin: 0 2px;
    font-size: 13px;
    min-width: 34px;
    text-align: center;
    color: #374151;
    border-color: var(--fc-border);
}

.pagination .page-item.active .page-link {
    background: var(--fc-primary);
    border-color: var(--fc-primary);
}

.dashboard-main-body {
    padding: var(--fc-space-5);
}

.fc-topbar.navbar-header {
    background: rgba(255, 255, 255, .94);
    border-bottom: 1px solid var(--fc-border-subtle);
    box-shadow: none;
    height: var(--fc-topbar-height);
    padding: 10px var(--fc-space-5);
}

.fc-topbar__row {
    flex-wrap: nowrap;
    height: 100%;
}

.fc-topbar__start,
.fc-topbar__actions {
    gap: var(--fc-space-2);
}

.sidebar-toggle,
.sidebar-mobile-toggle {
    align-items: center;
    border-radius: var(--fc-radius);
    display: inline-flex;
    height: var(--fc-control);
    justify-content: center;
    transition: background-color var(--fc-transition), color var(--fc-transition);
    width: var(--fc-control);
}

.sidebar-toggle:hover,
.sidebar-mobile-toggle:hover {
    background: var(--fc-background-secondary);
    color: var(--fc-primary);
}

.sidebar-toggle {
    display: none;
}

.sidebar-mobile-toggle {
    display: inline-flex;
}

@media (min-width: 1200px) {
    .sidebar-toggle {
        display: inline-flex;
    }

    .sidebar-mobile-toggle {
        display: none;
    }
}

.fc-company-context {
    align-items: center;
    background: var(--fc-background);
    border: 1px solid var(--fc-border-subtle);
    border-radius: var(--fc-radius-md);
    gap: var(--fc-space-2);
    min-height: var(--fc-control);
    padding: 4px 5px 4px 9px;
}

.fc-company-context__icon {
    align-items: center;
    background: var(--fc-primary-soft);
    border-radius: var(--fc-radius-sm);
    color: var(--fc-primary);
    display: inline-flex;
    flex-shrink: 0;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.fc-company-context__text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    min-width: 0;
}

.fc-company-context__label {
    color: var(--fc-text-secondary);
    font-size: .5625rem;
    font-weight: var(--fc-weight-bold);
    letter-spacing: .04em;
    text-transform: uppercase;
}

.fc-company-context__text strong {
    color: var(--fc-text);
    display: block;
    font-size: var(--fc-text-xs);
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-company-context__switch {
    align-items: center;
    background: transparent;
    border-left: 1px solid var(--fc-border);
    border-radius: 0 var(--fc-radius-sm) var(--fc-radius-sm) 0;
    color: var(--fc-primary);
    display: inline-flex;
    font-size: var(--fc-text-xs);
    font-weight: var(--fc-weight-semibold);
    gap: 5px;
    min-height: 28px;
    padding: 0 9px;
    text-decoration: none;
}

.fc-company-context__switch:hover {
    background: var(--fc-primary-soft);
    color: var(--fc-primary-hover);
}

.fc-topbar-icon-btn {
    align-items: center;
    background: transparent;
    border: 1px solid var(--fc-border-subtle);
    border-radius: var(--fc-radius);
    color: var(--fc-text);
    display: inline-flex;
    height: var(--fc-control);
    justify-content: center;
    padding: 0;
    transition: background-color var(--fc-transition), border-color var(--fc-transition), color var(--fc-transition);
    width: var(--fc-control);
}

.fc-notification-trigger {
    display: inline-flex;
    position: relative;
}

.fc-notification-badge {
    align-items: center;
    background: #dc2626;
    border: 2px solid var(--fc-surface);
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 700;
    height: 19px;
    justify-content: center;
    line-height: 1;
    min-width: 19px;
    padding: 0 4px;
    pointer-events: none;
    position: absolute;
    right: -6px;
    top: -6px;
    z-index: 2;
}

.fc-topbar-icon-btn:hover {
    background: var(--fc-primary-soft);
    border-color: #C9D9F2;
    color: var(--fc-primary);
}

.fc-user-button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: var(--fc-radius-md);
    display: inline-flex;
    gap: 10px;
    min-height: var(--fc-control);
    padding: 3px 7px 3px 3px;
    transition: background-color var(--fc-transition);
}

.fc-user-button:hover {
    background: var(--fc-background-secondary);
}

.fc-user-button__meta {
    line-height: 1.1;
    text-align: left;
}

.fc-user-button__meta strong,
.fc-user-button__meta small {
    display: block;
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-user-button__meta strong {
    color: var(--fc-text);
    font-size: var(--fc-text-xs);
    font-weight: var(--fc-weight-semibold);
}

.fc-user-button__meta small {
    color: var(--fc-text-secondary);
    font-size: .6875rem;
    margin-top: 2px;
}

@media (min-width: 1200px) {
    .sidebar {
        width: var(--fc-sidebar-width);
    }

    .dashboard-main {
        margin-inline-start: var(--fc-sidebar-width);
    }

    .sidebar.active {
        width: 72px;
    }

    .dashboard-main.active {
        margin-inline-start: 72px;
    }

    .sidebar.active:hover {
        width: var(--fc-sidebar-width);
    }
}

@media (max-width: 767.98px) {
    .fc-topbar.navbar-header {
        padding-inline: var(--fc-space-3);
    }

    .fc-topbar__actions {
        gap: var(--fc-space-1);
    }

    .fc-user-button {
        padding-right: 3px;
    }
}

.fc-user-button__chevron {
    color: var(--fc-text-secondary);
    font-size: 11px;
    margin-right: 5px;
}

.fc-flash {
    align-items: center;
    border: 1px solid transparent;
    border-left-width: 3px;
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    display: flex;
    font-size: 13px;
    font-weight: 600;
    gap: 9px;
    margin-bottom: 14px;
    min-height: 44px;
    padding: 10px 16px;
}

.fc-flash--stacked {
    align-items: stretch;
    display: block;
}

.fc-flash__icon {
    flex-shrink: 0;
    font-size: 16px;
}

.fc-flash__list {
    font-size: 12px;
}

.fc-flash--success {
    background: #F0FDF4;
    border-color: #BBF7D0;
    border-left-color: var(--fc-success);
    color: #047857;
}

.fc-flash--danger {
    background: #FEF2F2;
    border-color: #FECACA;
    border-left-color: var(--fc-danger);
    color: #B91C1C;
}

.fc-flash--warning {
    background: #FFFBEB;
    border-color: #FDE68A;
    border-left-color: var(--fc-warning);
    color: #B45309;
}

.fc-flash--info {
    background: #EFF6FF;
    border-color: #BFDBFE;
    border-left-color: var(--fc-primary);
    color: #1D4ED8;
}

.kpi-saldo { border-left: 4px solid #0EA5E9 !important; }
.kpi-fatur { border-left: 4px solid var(--fc-success) !important; }
.kpi-result { border-left: 4px solid #8B5CF6 !important; }
.kpi-pagar { border-left: 4px solid var(--fc-warning) !important; }
.kpi-value { font-size: 26px; font-weight: 700; line-height: 1.2; }

.fc-section-gap {
    display: grid;
    gap: 22px;
}

.fc-section-gap + .fc-section-gap,
.fc-dashboard-section {
    margin-top: 0;
}

.fc-dashboard-section {
    margin-bottom: 26px;
}

.fc-dashboard-period-filter {
    align-items: end;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: var(--fc-space-2);
    justify-content: flex-end;
    max-width: 780px;
    padding: 8px;
}

.fc-dashboard-period-filter__heading {
    display: grid;
    margin-right: var(--fc-space-1);
    min-width: 128px;
}

.fc-dashboard-period-filter__heading span,
.fc-dashboard-period-filter__custom label > span {
    color: var(--fc-text-secondary);
    font-size: 10px;
    font-weight: var(--fc-weight-medium);
}

.fc-dashboard-period-filter__heading strong {
    color: var(--fc-text);
    font-size: var(--fc-text-xs);
    font-weight: var(--fc-weight-semibold);
    white-space: nowrap;
}

.fc-dashboard-period-filter > label {
    margin: 0;
    min-width: 160px;
}

.fc-dashboard-period-filter .form-control,
.fc-dashboard-period-filter .form-select,
.fc-dashboard-period-filter .btn {
    min-height: 34px;
}

.fc-dashboard-period-filter__custom {
    display: grid;
    gap: var(--fc-space-2);
    grid-template-columns: repeat(2, minmax(135px, 1fr));
}

.fc-dashboard-period-filter__custom[hidden] { display: none; }

.fc-dashboard-period-filter__custom label {
    display: grid;
    gap: 3px;
    margin: 0;
}

.fc-dashboard-period-filter__actions {
    display: flex;
    gap: var(--fc-space-2);
}

.fc-dashboard-period-filter__errors {
    color: var(--fc-danger);
    display: grid;
    flex-basis: 100%;
    font-size: var(--fc-text-xs);
    gap: 2px;
    text-align: left;
}

.fc-dashboard-reference {
    color: var(--fc-text-secondary);
    font-size: 10px;
    margin: 2px 0 var(--fc-space-2);
}

@media (max-width: 767.98px) {
    .fc-dashboard-period-filter {
        justify-content: flex-start;
        max-width: none;
        width: 100%;
    }

    .fc-dashboard-period-filter__heading,
    .fc-dashboard-period-filter > label {
        flex: 1 1 160px;
    }

    .fc-dashboard-period-filter__custom {
        flex-basis: 100%;
    }
}

@media (max-width: 420px) {
    .fc-dashboard-period-filter {
        align-items: stretch;
        flex-direction: column;
    }

    .fc-dashboard-period-filter__heading,
    .fc-dashboard-period-filter > label,
    .fc-dashboard-period-filter__actions {
        flex: 0 0 auto;
        margin: 0;
        width: 100%;
    }

    .fc-dashboard-period-filter .form-select {
        width: 100%;
    }

    .fc-dashboard-period-filter__actions .btn {
        flex: 1 1 0;
    }
}

.fc-dashboard-section:last-of-type {
    margin-bottom: 0;
}

.fc-card-grid {
    --bs-gutter-x: 1.125rem;
    --bs-gutter-y: 1.125rem;
}

.fc-card-grid--compact {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

.fc-card-spacing > .card-header,
.fc-card-spacing > .fc-card-header {
    padding: 16px 22px;
}

.fc-card-spacing > .card-body:not(.p-0) {
    padding: 22px;
}

.fc-chart-card .card-body {
    min-height: 286px;
}

.fc-card-subtitle {
    color: var(--fc-text-secondary);
    font-size: 12px;
    margin: 4px 0 0;
}

.fc-chart {
    min-height: 260px;
    width: 100%;
}

.fc-chart--donut {
    min-height: 240px;
}

.fc-chart--bar {
    min-height: 260px;
}

.fc-mini-metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fc-mini-metrics > div {
    background: var(--fc-background);
    border-radius: var(--fc-radius);
    padding: 10px 12px;
}

.fc-mini-metrics span {
    color: var(--fc-text-secondary);
    display: block;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.fc-mini-metrics strong {
    display: block;
    font-size: 13px;
}

.fc-finance-agenda-item {
    align-items: center;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    gap: 12px;
    padding: 13px 18px;
}

.fc-finance-agenda-item.is-late {
    background: linear-gradient(90deg, rgba(220, 38, 38, .045), transparent);
}

.fc-agenda-date {
    background: #F1F5F9;
    border-radius: 999px;
    color: var(--fc-text-secondary);
    display: inline-flex;
    font-size: 11px;
    font-weight: 800;
    margin-top: 4px;
    padding: 4px 8px;
}

.fc-alert-priority {
    align-items: flex-start;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    gap: 12px;
    padding: 14px 18px;
}

.fc-alert-priority__icon {
    align-items: center;
    border-radius: var(--fc-radius);
    display: inline-flex;
    flex-shrink: 0;
    height: 36px;
    justify-content: center;
    width: 36px;
}

.fc-alert-priority__icon--primary { background: #EFF6FF; color: var(--fc-primary); }
.fc-alert-priority__icon--success { background: #F0FDF4; color: #047857; }
.fc-alert-priority__icon--danger { background: #FEF2F2; color: #B91C1C; }
.fc-alert-priority__icon--warning { background: #FFFBEB; color: #B45309; }
.fc-alert-priority__icon--neutral { background: #F1F5F9; color: #475569; }

.fc-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.fc-section-title {
    color: var(--fc-text);
    font-size: 16px;
    font-weight: 700;
    margin: 0;
}

.fc-section-subtitle {
    color: var(--fc-text-secondary);
    font-size: 13px;
    margin: 4px 0 0;
}

.fc-kpi-card {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    height: 100%;
    padding: 20px;
}

.fc-kpi-main {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 12px;
}

.fc-kpi-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.fc-kpi-label {
    color: var(--fc-text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin: 0 0 4px;
}

.fc-kpi-note {
    color: var(--fc-text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    margin: 0;
}

.fc-metric-card {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    height: 100%;
    padding: 18px 20px;
}

.fc-metric-title {
    color: var(--fc-text);
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
}

.fc-metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #334155;
    font-size: 13px;
    margin-bottom: 8px;
}

.fc-metric-row:last-child {
    margin-bottom: 0;
}

.fc-metric-row--total {
    border-top: 1px solid var(--fc-border);
    margin-top: 10px;
    padding-top: 10px;
    font-weight: 700;
}

.fc-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid #F1F5F9;
    padding: 12px 20px;
}

.fc-list-main {
    flex: 1;
    min-width: 0;
}

.fc-list-title {
    color: var(--fc-text);
    font-size: 13px;
    font-weight: 700;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-list-subtitle {
    color: var(--fc-text-secondary);
    font-size: 12px;
}

.fc-list-side {
    flex-shrink: 0;
    text-align: right;
}

.fc-dashboard-alert-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--fc-radius);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.fc-table-link {
    color: var(--fc-text);
    font-weight: 700;
    text-decoration: none;
}

.fc-table-link:hover {
    color: var(--fc-primary);
}

.fc-summary-card {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    box-shadow: var(--fc-shadow);
    padding: 16px;
    text-align: center;
    height: 100%;
}

.fc-summary-card--warning { border-left: 3px solid var(--fc-warning); }
.fc-summary-card--success { border-left: 3px solid var(--fc-success); }
.fc-summary-card--danger { border-left: 3px solid var(--fc-danger); }
.fc-summary-card--primary { border-left: 3px solid var(--fc-primary); }

.fc-summary-label {
    color: var(--fc-text-secondary);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.fc-summary-value {
    color: var(--fc-text);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
}

.fc-table-total-row {
    border-top: 2px solid var(--fc-border);
    background: var(--fc-background);
}

.fc-file-name {
    display: block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-soft-panel {
    border-radius: var(--fc-radius);
    padding: 12px;
}

.fc-soft-panel--success { background: #F0FDF4; }
.fc-soft-panel--danger { background: #FEF2F2; }
.fc-soft-panel--warning { background: #FFFBEB; }
.fc-soft-panel--info { background: #EFF6FF; }

.fc-import-stat {
    text-align: center;
}

.fc-import-stat__label {
    color: var(--fc-text-secondary);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.fc-import-stat__value {
    color: var(--fc-text);
    font-size: 20px;
    font-weight: 800;
}

.fc-year-switcher {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.fc-year-switcher__label {
    color: var(--fc-text);
    font-size: 16px;
    font-weight: 800;
    min-width: 56px;
    text-align: center;
}

.fc-closing-card {
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    min-height: 164px;
    padding: 18px;
    transition: box-shadow .2s, transform .15s, opacity .15s;
}

.fc-closing-card:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, .12);
    transform: translateY(-2px);
}

.fc-closing-card.is-current {
    border: 2px solid var(--fc-primary);
}

.fc-closing-card.is-closed {
    opacity: .84;
}

.fc-checklist-item {
    align-items: center;
    border-bottom: 1px solid #F1F5F9;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 16px 22px;
}

.fc-checklist-item.is-resolved {
    opacity: .75;
}

.fc-progress-lg {
    border-radius: 6px;
    height: 10px;
}

.fc-dre-table thead th {
    background: var(--fc-primary-dark);
    color: #fff;
}

.fc-row-success { background: #F0FDF4; }
.fc-row-info { background: #EFF6FF; }
.fc-row-purple { background: #F5F3FF; }
.fc-row-warning { background: #FFF7ED; }
.fc-row-danger { background: #FEE2E2; }
.fc-row-muted { background: var(--fc-background); }

.fc-report-detail {
    color: var(--fc-text-secondary);
    font-size: 13px;
    padding-left: 32px !important;
}

.fc-upload-inline {
    max-width: 230px;
}

.fc-closing-page .fc-card + .fc-card {
    margin-top: 0;
}

.fc-closing-toolbar {
    flex-wrap: wrap;
}

.fc-import-help {
    color: var(--fc-text-secondary);
    font-size: 13px;
}

.fc-import-help code {
    color: var(--fc-primary);
}

.fc-alert-compact {
    align-items: center;
    display: flex;
    gap: 8px;
    font-size: 13px;
    padding-bottom: 10px;
    padding-top: 10px;
}

.closing-card {
    border-radius: 12px;
    cursor: pointer;
    transition: box-shadow .2s, transform .15s;
}

.closing-card:hover {
    box-shadow: 0 4px 16px rgba(15, 23, 42, .12);
    transform: translateY(-2px);
}

.closing-card.mes-atual {
    border: 2px solid var(--fc-primary) !important;
}

.fc-calendar-legend {
    align-items: center;
    color: var(--fc-text-secondary);
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    gap: 12px;
}

.fc-calendar-legend span {
    align-items: center;
    display: inline-flex;
    gap: 6px;
}

.fc-calendar-dot {
    border-radius: 999px;
    display: inline-block;
    height: 8px;
    width: 8px;
}

.fc-calendar-dot--success { background: var(--fc-success); }
.fc-calendar-dot--danger { background: var(--fc-danger); }
.fc-calendar-dot--primary { background: var(--fc-primary); }
.fc-calendar-dot--warning { background: var(--fc-warning); }

.fc-calendar {
    display: grid;
    gap: 10px;
}

.fc-calendar-weekdays,
.fc-calendar-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.fc-calendar-weekdays > div {
    color: var(--fc-text-secondary);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
}

.fc-calendar-day {
    background: var(--fc-white);
    border: 1px solid var(--fc-border);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    min-height: 164px;
    overflow: hidden;
}

.fc-calendar-day.is-muted {
    background: rgba(248, 250, 252, .68);
}

.fc-calendar-day.is-today {
    border-color: rgba(30, 64, 175, .45);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, .08);
}

.fc-calendar-day__header {
    align-items: center;
    border-bottom: 1px solid var(--fc-border);
    display: flex;
    justify-content: space-between;
    min-height: 38px;
    padding: 8px 10px;
}

.fc-calendar-day__header time {
    color: var(--fc-text);
    font-size: 14px;
    font-weight: 800;
}

.fc-calendar-day.is-muted .fc-calendar-day__header time {
    color: var(--fc-text-secondary);
}

.fc-calendar-day__header span {
    background: rgba(30, 64, 175, .1);
    border-radius: 999px;
    color: var(--fc-primary);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
}

.fc-calendar-day__events {
    display: grid;
    gap: 8px;
    padding: 10px;
}

.fc-calendar-day__empty {
    color: var(--fc-text-secondary);
    font-size: 12px;
}

.fc-calendar-event {
    background: #F8FAFC;
    border: 1px solid var(--fc-border);
    border-left: 4px solid var(--fc-primary);
    border-radius: 10px;
    color: var(--fc-text);
    display: grid;
    gap: 3px;
    padding: 8px;
    text-decoration: none;
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.fc-calendar-event:hover {
    box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
    color: var(--fc-text);
    transform: translateY(-1px);
}

.fc-calendar-event--success {
    border-left-color: var(--fc-success);
}

.fc-calendar-event--danger {
    border-left-color: var(--fc-danger);
}

.fc-calendar-event--warning {
    border-left-color: var(--fc-warning);
}

.fc-calendar-event--primary {
    border-left-color: var(--fc-primary);
}

.fc-calendar-event__label {
    color: var(--fc-text-secondary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.fc-calendar-event strong {
    font-size: 12px;
    line-height: 1.25;
}

.fc-calendar-event small {
    color: var(--fc-text-secondary);
    font-size: 11px;
}

.fc-calendar-event__footer {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: space-between;
    margin-top: 4px;
}

.fc-calendar-event__footer b {
    color: var(--fc-dark);
    font-size: 12px;
}

.fc-report-chart-card .card-body {
    min-height: 260px;
}

.fc-report-chart {
    min-height: 300px;
}

.fc-report-chart--donut {
    max-width: 520px;
    margin: 0 auto;
}

.fc-report-chart .apexcharts-legend-text,
.fc-report-chart-card .apexcharts-text {
    color: var(--fc-text-secondary) !important;
    fill: var(--fc-text-secondary) !important;
}

.fc-abc-card__header {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: space-between;
}

.fc-abc-summary-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fc-abc-summary-grid > div {
    background: var(--fc-background-secondary);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    display: grid;
    gap: 5px;
    min-width: 0;
    padding: 12px 14px;
}

.fc-abc-summary-grid span {
    color: var(--fc-text-secondary);
    font-size: 11px;
    font-weight: var(--fc-weight-medium);
}

.fc-abc-summary-grid strong {
    color: var(--fc-text);
    font-size: 17px;
    font-weight: var(--fc-weight-bold);
    line-height: 1.2;
}

.fc-abc-layout {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
}

.fc-abc-chart-wrap {
    min-width: 0;
    overflow: hidden;
}

.fc-abc-chart {
    width: 100%;
}

.fc-abc-ranking {
    display: grid;
    gap: 7px;
}

.fc-abc-ranking__item {
    align-items: center;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    color: var(--fc-text);
    display: grid;
    gap: 9px;
    grid-template-columns: 32px minmax(0, 1fr) auto;
    min-width: 0;
    padding: 9px 10px;
    text-align: left;
    text-decoration: none;
    transition: background var(--fc-transition), border-color var(--fc-transition), box-shadow var(--fc-transition);
    width: 100%;
}

.fc-abc-ranking__item:hover {
    background: var(--fc-primary-soft);
    border-color: color-mix(in srgb, var(--fc-primary) 42%, var(--fc-border));
    color: var(--fc-text);
}

.fc-abc-ranking__item:focus-visible {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--fc-primary) 20%, transparent);
    outline: 2px solid var(--fc-primary);
    outline-offset: 1px;
}

.fc-abc-ranking__position {
    color: var(--fc-primary);
    font-size: 12px;
    font-weight: var(--fc-weight-bold);
}

.fc-abc-ranking__content {
    min-width: 0;
}

.fc-abc-ranking__content strong {
    display: block;
    font-size: 12px;
    font-weight: var(--fc-weight-semibold);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fc-abc-ranking__content small {
    color: var(--fc-text-secondary);
    display: block;
    font-size: 10px;
    margin-top: 2px;
}

.fc-abc-ranking__value {
    align-items: flex-end;
    display: grid;
    font-size: 11px;
    font-weight: var(--fc-weight-semibold);
    gap: 3px;
    justify-items: end;
    white-space: nowrap;
}

.fc-abc-class {
    border: 1px solid currentColor;
    border-radius: 999px;
    display: inline-flex;
    font-size: 9px;
    font-weight: var(--fc-weight-bold);
    line-height: 1;
    padding: 4px 6px;
    white-space: nowrap;
}

.fc-abc-class--a {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
}

.fc-abc-class--b {
    background: var(--fc-warning-soft);
    color: var(--fc-warning);
}

.fc-abc-class--c {
    background: var(--fc-background-secondary);
    color: var(--fc-text-secondary);
}

.fc-abc-notice,
.fc-abc-reconciliation {
    align-items: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid color-mix(in srgb, var(--fc-primary) 24%, var(--fc-border));
    border-radius: var(--fc-radius);
    color: var(--fc-text);
    display: flex;
    font-size: 12px;
    gap: 8px;
    padding: 10px 12px;
}

.fc-abc-reconciliation {
    display: grid;
    gap: 3px;
    margin-top: 14px;
}

.fc-abc-reconciliation strong {
    font-weight: var(--fc-weight-semibold);
}

.fc-abc-reconciliation span {
    color: var(--fc-text-secondary);
}

.fc-abc-remaining {
    color: var(--fc-text-secondary);
    font-size: 11px;
    margin: 14px 0 0;
}

.fc-abc-quick-filters {
    align-items: end;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(150px, .5fr) minmax(220px, 1fr) auto auto;
}

.fc-abc-quick-filters label {
    display: grid;
    gap: 5px;
    margin: 0;
}

.fc-abc-quick-filters label > span {
    color: var(--fc-text-secondary);
    font-size: 11px;
    font-weight: var(--fc-weight-medium);
}

.fc-abc-quick-filters__actions,
.fc-abc-quick-filters__exports {
    display: flex;
    gap: 7px;
}

.fc-abc-table td,
.fc-abc-transactions-table td {
    vertical-align: middle;
}

[data-theme="dark"] .fc-abc-table,
[data-theme="dark"] .fc-abc-transactions-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--fc-text);
    --bs-table-border-color: var(--fc-border);
    color: var(--fc-text);
}

[data-theme="dark"] .fc-abc-table > :not(caption) > * > *,
[data-theme="dark"] .fc-abc-transactions-table > :not(caption) > * > * {
    background: transparent;
    color: inherit;
}

.fc-abc-reference {
    color: var(--fc-primary);
    font-weight: var(--fc-weight-semibold);
}

.fc-abc-drawer {
    inset: 0;
    position: fixed;
    z-index: 1085;
}

.fc-abc-drawer[hidden] {
    display: none;
}

.fc-abc-drawer__backdrop {
    background: rgba(15, 23, 42, .58);
    border: 0;
    inset: 0;
    padding: 0;
    position: absolute;
    width: 100%;
}

.fc-abc-drawer__panel {
    background: var(--fc-surface);
    border-left: 1px solid var(--fc-border);
    box-shadow: -18px 0 48px rgba(15, 23, 42, .18);
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-left: auto;
    max-width: 920px;
    outline: none;
    position: relative;
    width: min(78vw, 920px);
}

.fc-abc-drawer__panel > header {
    align-items: center;
    border-bottom: 1px solid var(--fc-border);
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 16px 18px;
}

.fc-abc-drawer__panel > header span {
    color: var(--fc-text-secondary);
    display: block;
    font-size: 10px;
    font-weight: var(--fc-weight-medium);
    text-transform: uppercase;
}

.fc-abc-drawer__panel > header h2 {
    color: var(--fc-text);
    font-size: 17px;
    font-weight: var(--fc-weight-bold);
    margin: 2px 0 0;
}

.fc-abc-drawer__body {
    overflow: auto;
    padding: 18px;
}

.fc-abc-drawer__loading,
.fc-abc-drawer__error {
    color: var(--fc-text-secondary);
    padding: 30px 12px;
    text-align: center;
}

.fc-abc-drawer__error {
    color: var(--fc-danger);
}

.fc-abc-drawer__category {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    justify-content: space-between;
}

.fc-abc-drawer__category span {
    color: var(--fc-primary);
    font-size: 11px;
    font-weight: var(--fc-weight-semibold);
}

.fc-abc-drawer__category h3 {
    color: var(--fc-text);
    font-size: 20px;
    font-weight: var(--fc-weight-bold);
    margin: 3px 0 0;
}

.fc-abc-drawer__category > strong {
    color: var(--fc-text);
    font-size: 19px;
    white-space: nowrap;
}

.fc-abc-drawer__stats {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 16px 0;
}

.fc-abc-drawer__stats > div {
    background: var(--fc-background-secondary);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: 9px 11px;
}

.fc-abc-drawer__stats dt {
    color: var(--fc-text-secondary);
    font-size: 10px;
    font-weight: var(--fc-weight-medium);
}

.fc-abc-drawer__stats dd {
    color: var(--fc-text);
    font-size: 14px;
    font-weight: var(--fc-weight-semibold);
    margin: 2px 0 0;
}

.fc-abc-drawer__pagination {
    border-top: 1px solid var(--fc-border);
    margin-top: 12px;
    padding-top: 12px;
}

.fc-drawer-open {
    overflow: hidden;
}

@media (max-width: 1199.98px) {
    .fc-abc-layout {
        grid-template-columns: 1fr;
    }

    .fc-abc-ranking {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .fc-abc-quick-filters {
        grid-template-columns: 1fr 1fr;
    }

    .fc-abc-quick-filters__actions,
    .fc-abc-quick-filters__exports {
        width: 100%;
    }

    .fc-abc-quick-filters__actions .btn,
    .fc-abc-quick-filters__exports .btn {
        flex: 1 1 0;
    }
}

@media (max-width: 767.98px) {
    .fc-abc-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fc-abc-ranking {
        grid-template-columns: 1fr;
    }

    .fc-abc-drawer__panel {
        border-left: 0;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .fc-abc-card__header > .btn {
        width: 100%;
    }

    .fc-abc-summary-grid {
        gap: 8px;
    }

    .fc-abc-summary-grid > div {
        padding: 10px;
    }

    .fc-abc-summary-grid strong {
        font-size: 15px;
    }

    .fc-abc-quick-filters {
        grid-template-columns: 1fr;
    }

    .fc-abc-ranking__item {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .fc-abc-ranking__value {
        align-items: center;
        grid-column: 2;
        grid-template-columns: auto auto;
        justify-content: space-between;
        justify-items: start;
        white-space: normal;
    }

    .fc-abc-drawer__body {
        padding: 14px;
    }

    .fc-abc-drawer__category {
        display: grid;
    }

    .fc-abc-drawer__stats {
        grid-template-columns: 1fr;
    }

    .fc-abc-table,
    .fc-abc-table tbody,
    .fc-abc-transactions-table,
    .fc-abc-transactions-table tbody {
        display: block;
        width: 100%;
    }

    .fc-abc-table thead,
    .fc-abc-transactions-table thead {
        display: none;
    }

    .fc-abc-table tr,
    .fc-abc-transactions-table tr {
        border-bottom: 1px solid var(--fc-border);
        display: grid;
        padding: 10px 14px;
    }

    .fc-abc-table td,
    .fc-abc-transactions-table td {
        align-items: center;
        border: 0;
        display: flex;
        gap: 12px;
        justify-content: space-between;
        padding: 5px 0;
        text-align: right !important;
        white-space: normal;
    }

    .fc-abc-table td::before,
    .fc-abc-transactions-table td::before {
        color: var(--fc-text-secondary);
        content: attr(data-label);
        flex: 0 0 42%;
        font-size: 10px;
        font-weight: var(--fc-weight-medium);
        text-align: left;
    }
}

@media (max-width: 767.98px) {
    .dashboard-main-body {
        padding-top: 16px;
    }

    .fc-section-gap {
        gap: 16px;
    }

    .fc-dashboard-section {
        margin-bottom: 18px;
    }

    .fc-card-grid,
    .fc-card-grid--compact {
        --bs-gutter-x: .875rem;
        --bs-gutter-y: .875rem;
    }

    .fc-card-spacing > .card-header,
    .fc-card-spacing > .fc-card-header {
        padding: 14px 16px;
    }

    .fc-card-spacing > .card-body:not(.p-0) {
        padding: 16px;
    }

    .fc-page-header {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 16px;
    }

    .fc-plan-hero,
    .fc-plan-benefit-strip,
    .fc-plan-footer-row {
        grid-template-columns: 1fr;
    }

    .fc-plan-hero {
        padding: 18px;
    }

    .fc-plan-hero h1 {
        font-size: 22px;
    }

    .fc-plan-grid {
        grid-template-columns: 1fr;
    }

    .fc-plan-hero__actions .btn,
    .fc-plan-hero__actions form,
    .fc-plan-logout,
    .fc-plan-logout .btn {
        width: 100%;
    }

    .fc-upgrade-hero,
    .fc-upgrade-layout,
    .fc-upgrade-value-grid,
    .fc-commercial-plan-grid,
    .fc-recommended-plan-card__body {
        grid-template-columns: 1fr;
    }

    .fc-upgrade-hero {
        padding: 20px;
    }

    .fc-upgrade-hero h1 {
        font-size: 23px;
    }

    .fc-upgrade-hero__actions form,
    .fc-upgrade-hero__actions .btn,
    .fc-recommended-plan-card__body,
    .fc-recommended-plan-card__body > strong {
        width: 100%;
    }

    .fc-recommended-plan-card__body {
        display: grid;
        gap: 12px;
    }

    .fc-current-plan-meta,
    .fc-upgrade-hero__summary {
        grid-template-columns: 1fr;
    }

    .fc-usage-row > div:first-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .fc-onboarding-page {
        min-height: auto;
    }

    .fc-onboarding-card {
        grid-template-columns: 1fr;
        padding: 18px;
    }

    .fc-onboarding-card__media {
        min-height: 150px;
        padding: 20px;
    }

    .fc-onboarding-card h1 {
        font-size: 23px;
    }

    .fc-onboarding-actions,
    .fc-onboarding-actions form,
    .fc-onboarding-actions .btn {
        width: 100%;
    }

    .fc-onboarding-checklist__summary,
    .fc-onboarding-checklist__body {
        grid-template-columns: 1fr;
    }

    .fc-onboarding-checklist__summary,
    .fc-onboarding-checklist__collapsed {
        display: grid;
    }

    .fc-onboarding-checklist__summary-actions,
    .fc-onboarding-checklist__collapsed-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fc-onboarding-checklist__progress {
        text-align: left;
    }

    .fc-onboarding-checklist__progress,
    .fc-onboarding-checklist__mini-track {
        width: 100%;
    }

    .fc-onboarding-checklist__items {
        grid-template-columns: 1fr;
    }

    .fc-page-title {
        font-size: 18px;
    }

    .fc-page-header__actions .btn {
        width: 100%;
    }

    .fc-filter-actions {
        width: 100%;
    }

    .fc-filter-actions .btn {
        flex: 1;
    }

    .fc-table-actions {
        justify-content: flex-start;
    }

    .fc-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .fc-list-item {
        align-items: flex-start;
    }

    .fc-list-side {
        text-align: left;
    }

    .fc-finance-agenda-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .fc-finance-agenda-item .fc-list-side {
        width: 100%;
    }

    .fc-mini-metrics {
        grid-template-columns: 1fr;
    }

    .fc-flash {
        align-items: flex-start;
        font-size: 12px;
        padding: 10px 12px;
    }

    .fc-calendar-weekdays {
        display: none;
    }

    .fc-calendar-grid {
        grid-template-columns: 1fr;
    }

    .fc-calendar-day {
        min-height: auto;
    }

    .fc-calendar-day.is-muted {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .fc-plan-hero,
    .fc-plan-footer-row {
        grid-template-columns: 1fr;
    }

    .fc-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fc-plan-benefit-strip {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .fc-upgrade-hero,
    .fc-upgrade-layout {
        grid-template-columns: 1fr;
    }

    .fc-commercial-plan-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fc-upgrade-value-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fc-onboarding-card {
        grid-template-columns: minmax(200px, .55fr) minmax(0, 1fr);
    }
}

@media (max-width: 1199.98px) {
    .fc-company-context__text strong {
        max-width: 180px;
    }
}

[data-theme="dark"] {
    --fc-background: #101722;
    --fc-background-secondary: #172131;
    --fc-surface: #182230;
    --fc-surface-elevated: #1D2939;
    --fc-border: #344054;
    --fc-border-subtle: #283548;
    --fc-text: #F2F4F7;
    --fc-text-secondary: #C2CAD6;
    --fc-text-subtle: #98A2B3;
    --fc-primary: #8CB4F4;
    --fc-primary-hover: #A8C8FA;
    --fc-primary-soft: rgba(76, 129, 210, .16);
    --fc-success: #6FD3AC;
    --fc-success-soft: rgba(26, 145, 103, .15);
    --fc-warning: #F2C66D;
    --fc-warning-soft: rgba(183, 121, 31, .16);
    --fc-danger: #F28B92;
    --fc-danger-soft: rgba(194, 65, 75, .16);
    --fc-white: var(--fc-surface);
}

[data-theme="dark"] .card,
[data-theme="dark"] .fc-card,
[data-theme="dark"] .fc-filter-card,
[data-theme="dark"] .fc-widget-card,
[data-theme="dark"] .fc-form-section {
    border-color: var(--fc-border);
    background: var(--fc-white);
}

[data-theme="dark"] .fc-topbar.navbar-header,
[data-theme="dark"] .sidebar,
[data-theme="dark"] .fc-page-header {
    background: var(--fc-surface);
    border-color: var(--fc-border);
}

[data-theme="dark"] .fc-company-context,
[data-theme="dark"] .fc-topbar-icon-btn {
    background: var(--fc-background-secondary);
    border-color: var(--fc-border);
}

[data-theme="dark"] .fc-notification-badge {
    border-color: var(--fc-surface);
    color: #fff;
}

[data-theme="dark"] .fc-alert-actions__button--view {
    background: #1E3A5F;
    color: #93C5FD;
}

[data-theme="dark"] .fc-alert-actions__button--read {
    background: #12392D;
    color: #6EE7B7;
}

[data-theme="dark"] .fc-alert-actions__button--delete {
    background: #3B1E1E;
    color: #FCA5A5;
}

@media (max-width: 575.98px) {
    .fc-notification-badge {
        right: -4px;
        top: -5px;
    }
}

[data-theme="dark"] .fc-onboarding-checklist {
    background:
        radial-gradient(circle at 94% 10%, rgba(16, 185, 129, .08), transparent 28%),
        var(--fc-surface);
}

[data-theme="dark"] .fc-onboarding-checklist__item,
[data-theme="dark"] .fc-onboarding-checklist__toggle {
    background: var(--fc-surface-elevated);
    border-color: var(--fc-border);
}

[data-theme="dark"] .fc-onboarding-checklist__track,
[data-theme="dark"] .fc-onboarding-checklist__mini-track {
    background: var(--fc-border);
}

[data-theme="dark"] .fc-user-button:hover,
[data-theme="dark"] .sidebar-menu > li.dropdown.open > a,
[data-theme="dark"] .sidebar-menu > li > a:hover,
[data-theme="dark"] .sidebar-submenu > li > a:hover {
    background: var(--fc-primary-soft);
}

[data-theme="dark"] .sidebar-submenu > li > a {
    color: var(--fc-text-secondary);
}

[data-theme="dark"] .sidebar-menu > li.active-page > a,
[data-theme="dark"] .sidebar-submenu > li.active-page > a,
[data-theme="dark"] .sidebar-menu > li > a.active-page,
[data-theme="dark"] .sidebar-submenu > li > a.active-page {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
}

[data-theme="dark"] .fc-company-context__switch:hover,
[data-theme="dark"] .fc-onboarding-secondary:hover {
    background: var(--fc-primary-soft);
}

[data-theme="dark"] .fc-action-dropdown__button,
[data-theme="dark"] .fc-action-dropdown__menu {
    background: #171E2B;
    border-color: var(--fc-border);
    color: #CBD5E0;
}

[data-theme="dark"] .fc-progress-bar__track {
    background: #2D3748;
}

[data-theme="dark"] .fc-mini-metrics > div,
[data-theme="dark"] .fc-agenda-date,
[data-theme="dark"] .fc-calendar-day,
[data-theme="dark"] .fc-calendar-event {
    background: #171E2B;
}

[data-theme="dark"] .fc-calendar-day.is-muted {
    background: rgba(23, 30, 43, .52);
}

[data-theme="dark"] .fc-calendar-day__header,
[data-theme="dark"] .fc-calendar-event {
    border-color: var(--fc-border);
}

[data-theme="dark"] .fc-calendar-event__footer b {
    color: #E2E8F0;
}

[data-theme="dark"] .fc-finance-agenda-item,
[data-theme="dark"] .fc-alert-priority {
    border-color: var(--fc-border);
}

[data-theme="dark"] .fc-form-section__header,
[data-theme="dark"] .fc-tabs,
[data-theme="dark"] .fc-pagination {
    border-color: var(--fc-border);
}

[data-theme="dark"] .card-header,
[data-theme="dark"] .fc-card-header {
    border-color: var(--fc-border);
}

[data-theme="dark"] .table th,
[data-theme="dark"] .fc-table th {
    color: #A0AEC0;
    background: #171E2B;
    border-color: var(--fc-border);
}

[data-theme="dark"] .table td,
[data-theme="dark"] .fc-table td {
    color: #CBD5E0;
    border-color: var(--fc-border);
}

[data-theme="dark"] .table tbody tr:hover,
[data-theme="dark"] .fc-table tbody tr:hover {
    background: rgba(255, 255, 255, .04);
}

[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
    background: #2D3748;
    border-color: #4A5568;
    color: #E2E8F0;
}

[data-theme="dark"] .form-control:focus,
[data-theme="dark"] .form-select:focus {
    border-color: #63B3ED;
    box-shadow: 0 0 0 3px rgba(99, 179, 237, .15);
}

[data-theme="dark"] .fc-action-btn--view { background: #1E3A5F; color: #60A5FA; }
[data-theme="dark"] .fc-action-btn--edit { background: #12392D; color: #34D399; }
[data-theme="dark"] .fc-action-btn--role,
[data-theme="dark"] .fc-table-action { background: #1E3A5F; border-color: #2563EB; color: #93C5FD; }
[data-theme="dark"] .fc-action-btn--delete { background: #3B1E1E; color: #F87171; }
[data-theme="dark"] .fc-action-btn--warning { background: #44341A; color: #FCD34D; }
[data-theme="dark"] .fc-empty-state { background: rgba(255, 255, 255, .03); }
[data-theme="dark"] .fc-empty-state__icon { background: rgba(99, 179, 237, .1); color: #60A5FA; }

/* Strong, scoped typography overrides for WowDash heading utilities. */
.fc-app .dashboard-main-body h1,
.fc-app .dashboard-main-body .h1 {
    font-size: 30px !important;
    line-height: 1.18 !important;
}

.fc-app .dashboard-main-body h2,
.fc-app .dashboard-main-body .h2 {
    font-size: 22px !important;
    line-height: 1.25 !important;
}

.fc-app .dashboard-main-body h3,
.fc-app .dashboard-main-body .h3 {
    font-size: 18px !important;
    line-height: 1.3 !important;
}

.fc-app .dashboard-main-body .text-2xxl {
    font-size: 24px !important;
    line-height: 1.22 !important;
}

.fc-app .dashboard-main-body .text-2xl {
    font-size: 22px !important;
    line-height: 1.25 !important;
}

.fc-app .dashboard-main-body .text-xxl {
    font-size: 20px !important;
    line-height: 1.3 !important;
}

.fc-app .dashboard-main-body .text-xl {
    font-size: 18px !important;
    line-height: 1.35 !important;
}

.fc-app .fc-page-title {
    font-size: 28px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
}

.fc-app .fc-section-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    line-height: 1.25 !important;
}

.fc-app .fc-card-title,
.fc-app .fc-widget-title,
.fc-app .fc-kpi-title,
.fc-app .fc-metric-title {
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.32 !important;
}

.fc-app .fc-widget-card__value,
.fc-app .fc-kpi-value,
.fc-app .kpi-value {
    font-size: 20px !important;
    line-height: 1.12 !important;
}

.fc-app .fc-page-subtitle,
.fc-app .fc-section-subtitle,
.fc-app .fc-card-subtitle,
.fc-app .fc-widget-card__header p,
.fc-app .fc-muted-text {
    font-size: 13px !important;
    line-height: 1.45 !important;
}

@media (max-width: 767.98px) {
    .fc-app .dashboard-main-body h1,
    .fc-app .dashboard-main-body .h1,
    .fc-app .fc-page-title {
        font-size: 24px !important;
    }

    .fc-app .dashboard-main-body h2,
    .fc-app .dashboard-main-body .h2,
    .fc-app .fc-section-title {
        font-size: 18px !important;
    }

    .fc-app .fc-widget-card__value,
    .fc-app .fc-kpi-value,
    .fc-app .kpi-value {
        font-size: 24px !important;
    }
}
/* Onboarding progressivo por empresa */
.fc-guided-onboarding {
    display: grid;
    gap: 16px;
    margin: 0 auto;
    max-width: 1280px;
    min-width: 0;
}

.fc-guided-onboarding__header {
    align-items: center;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border-subtle);
    border-radius: var(--fc-radius-lg);
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
    padding: var(--fc-space-4) var(--fc-space-5);
}

.fc-guided-onboarding__context {
    min-width: 0;
}

.fc-guided-onboarding__header h1 {
    color: var(--fc-text);
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.2;
    margin: 6px 0 4px;
}

.fc-guided-onboarding__header p {
    color: var(--fc-text-secondary);
    font-size: .9rem;
    margin: 0;
}

.fc-guided-onboarding__meter {
    display: grid;
    gap: 7px;
}

.fc-guided-onboarding__meter-copy {
    align-items: baseline;
    display: flex;
    justify-content: space-between;
}

.fc-guided-onboarding__meter strong {
    color: var(--fc-primary);
    font-size: 1.65rem;
    line-height: 1;
}

.fc-guided-onboarding__meter span {
    color: var(--fc-text-secondary);
    font-size: .78rem;
    font-weight: 600;
}

.fc-guided-onboarding__meter .progress {
    background: rgba(148, 163, 184, .22);
    border-radius: 999px;
    height: 7px;
    overflow: hidden;
}

.fc-guided-onboarding__meter .progress-bar {
    background: linear-gradient(90deg, var(--fc-primary), #2563EB);
    border-radius: inherit;
}

.fc-guided-stepper {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border-subtle);
    border-radius: var(--fc-radius-lg);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    min-width: 0;
    padding: var(--fc-space-2);
}

.fc-guided-stepper__item {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--fc-text-secondary);
    display: flex;
    gap: 9px;
    min-height: 56px;
    min-width: 0;
    padding: 9px 10px;
    text-decoration: none;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.fc-guided-stepper__item:not(:last-child)::after {
    background: var(--fc-border-subtle);
    content: "";
    height: 24px;
    margin-left: auto;
    width: 1px;
}

.fc-guided-stepper__item:hover {
    background: var(--fc-white);
    border-color: var(--fc-border);
    color: var(--fc-text);
    transform: translateY(-1px);
}

.fc-guided-stepper__marker {
    align-items: center;
    background: #E2E8F0;
    border-radius: 50%;
    color: #64748B;
    display: inline-flex;
    flex: 0 0 28px;
    font-size: .75rem;
    font-weight: 700;
    height: 28px;
    justify-content: center;
    width: 28px;
}

.fc-guided-stepper__copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.fc-guided-stepper__copy strong {
    color: inherit;
    font-size: var(--fc-text-xs);
    line-height: 1.2;
}

.fc-guided-stepper__copy small {
    color: inherit;
    font-size: .6875rem;
    opacity: .8;
}

.fc-guided-stepper__item.is-current {
    background: var(--fc-primary-soft);
    border-color: transparent;
    color: var(--fc-primary);
}

.fc-guided-stepper__item.is-current .fc-guided-stepper__marker {
    background: var(--fc-primary);
    color: #FFF;
}

.fc-guided-stepper__item.is-complete {
    color: #166534;
}

.fc-guided-stepper__item.is-complete .fc-guided-stepper__marker {
    background: #DCFCE7;
    color: #15803D;
}

.fc-guided-stepper__item.is-skipped {
    color: #64748B;
}

.fc-guided-stepper__item.is-skipped .fc-guided-stepper__marker {
    background: #F1F5F9;
    border: 1px dashed #94A3B8;
}

.fc-guided-onboarding__content {
    align-items: start;
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(0, 7fr) minmax(240px, 3fr);
    min-width: 0;
}

.fc-guided-onboarding__main,
.fc-guided-onboarding__aside {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border-subtle);
    border-radius: var(--fc-radius-lg);
}

.fc-guided-onboarding__main {
    min-width: 0;
    padding: var(--fc-space-5);
}

.fc-guided-onboarding__intro {
    margin-bottom: 16px;
}

.fc-guided-onboarding__intro h2 {
    color: var(--fc-text);
    font-size: var(--fc-title-section);
    margin: 5px 0 4px;
}

.fc-guided-onboarding__intro p {
    color: var(--fc-text-secondary);
    font-size: .9rem;
    margin: 0;
    max-width: 680px;
}

.fc-guided-checks {
    display: grid;
    gap: 7px;
    margin: 14px 0 18px;
}

.fc-guided-checks > div {
    align-items: center;
    background: #F8FAFC;
    border-left: 3px solid #CBD5E1;
    border-radius: 8px;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 10px 12px;
}

.fc-guided-checks > div.is-done {
    background: #F0FDF4;
    border-left-color: var(--fc-success);
}

.fc-guided-checks strong {
    color: var(--fc-text);
    font-size: .84rem;
}

.fc-guided-checks span {
    color: var(--fc-text-secondary);
    font-size: .75rem;
    text-align: right;
}

.fc-guided-stat {
    align-items: baseline;
    display: flex;
    gap: 6px;
    margin: 10px 0;
}

.fc-guided-stat strong {
    color: var(--fc-primary);
    font-size: 1.65rem;
}

.fc-guided-stat span {
    color: var(--fc-text-secondary);
    font-size: .8rem;
}

.fc-guided-onboarding .fc-onboarding-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.fc-guided-onboarding .fc-onboarding-actions form {
    margin: 0;
}

.fc-guided-onboarding .fc-onboarding-actions .btn {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    padding: 8px 15px;
}

.fc-onboarding-secondary {
    background: transparent;
    border: 1px solid var(--fc-border);
    color: var(--fc-text-secondary);
    text-decoration: none;
}

.fc-onboarding-secondary:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    color: var(--fc-text);
}

.fc-guided-onboarding__aside {
    background: var(--fc-background-secondary);
    padding: var(--fc-space-4);
    position: sticky;
    top: 88px;
}

.fc-guided-onboarding__aside-label {
    align-items: center;
    color: var(--fc-primary);
    display: flex;
    font-size: .72rem;
    font-weight: 700;
    gap: 6px;
    letter-spacing: .04em;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.fc-guided-onboarding__aside h2 {
    color: var(--fc-text);
    font-size: 1rem;
    line-height: 1.3;
    margin: 0 0 6px;
}

.fc-guided-onboarding__aside p {
    color: var(--fc-text-secondary);
    font-size: .8rem;
    line-height: 1.5;
    margin: 0 0 14px;
}

.fc-guided-onboarding__next-button {
    align-items: center;
    background: var(--fc-white);
    border: 1px solid rgba(30, 64, 175, .24);
    color: var(--fc-primary);
    display: inline-flex;
    font-size: .8rem;
    font-weight: 700;
    gap: 8px;
    justify-content: center;
    min-height: 38px;
    padding: 7px 12px;
}

.fc-guided-onboarding__hint {
    align-items: center;
    color: var(--fc-text-subtle);
    display: inline-flex;
    font-size: var(--fc-text-xs);
    gap: var(--fc-space-2);
}

.fc-guided-onboarding__next-button:hover {
    background: var(--fc-primary);
    border-color: var(--fc-primary);
    color: #FFF;
}

.fc-guided-onboarding__complete-icon {
    align-items: center;
    background: #DCFCE7;
    border-radius: 50%;
    color: #15803D;
    display: inline-flex;
    height: 30px;
    justify-content: center;
    margin-bottom: 10px;
    width: 30px;
}

.fc-guided-onboarding a:focus-visible,
.fc-guided-onboarding button:focus-visible {
    outline: 3px solid var(--fc-warning);
    outline-offset: 3px;
}

[data-theme="dark"] .fc-guided-onboarding__header,
[data-theme="dark"] .fc-guided-onboarding__aside {
    background: var(--fc-surface);
    border-color: var(--fc-border);
}

[data-theme="dark"] .fc-guided-stepper__item {
    background: rgba(26, 32, 44, .72);
}

[data-theme="dark"] .fc-guided-stepper__item:hover,
[data-theme="dark"] .fc-guided-stepper__item.is-current {
    background: #1E293B;
}

[data-theme="dark"] .fc-guided-stepper__marker,
[data-theme="dark"] .fc-guided-checks > div {
    background: #273449;
}

[data-theme="dark"] .fc-guided-checks > div.is-done {
    background: rgba(16, 185, 129, .1);
}

[data-theme="dark"] .fc-onboarding-secondary,
[data-theme="dark"] .fc-guided-onboarding__next-button {
    background: transparent;
}

[data-theme="dark"] .fc-onboarding-secondary:hover {
    background: #273449;
}

@media (max-width: 1100px) {
    .fc-guided-stepper {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .fc-guided-stepper__item::after {
        display: none;
    }
}

@media (max-width: 820px) {
    .fc-guided-onboarding__header {
        gap: 16px;
        grid-template-columns: minmax(0, 1fr) 220px;
    }

    .fc-guided-onboarding__content {
        grid-template-columns: 1fr;
    }

    .fc-guided-onboarding__aside {
        position: static;
    }
}

@media (max-width: 600px) {
    .fc-guided-onboarding {
        gap: 12px;
    }

    .fc-guided-onboarding__header {
        gap: 14px;
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .fc-guided-stepper {
        grid-auto-columns: minmax(190px, 78vw);
        grid-auto-flow: column;
        grid-template-columns: none;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: inline mandatory;
        scrollbar-width: thin;
    }

    .fc-guided-stepper__item {
        scroll-snap-align: start;
    }

    .fc-guided-onboarding__main,
    .fc-guided-onboarding__aside {
        padding: 16px;
    }

    .fc-guided-checks > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .fc-guided-checks span {
        text-align: left;
    }
}

@media (max-width: 420px) {
    .fc-guided-stepper__item {
        min-height: 52px;
    }

    .fc-guided-onboarding .fc-onboarding-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .fc-guided-onboarding .fc-onboarding-actions > *,
    .fc-guided-onboarding .fc-onboarding-actions .btn {
        width: 100%;
    }

    .fc-guided-onboarding__next-button {
        width: 100%;
    }
}

/* Company configuration templates */
.fc-template-page .fc-page-title {
    font-size: 28px;
    line-height: var(--fc-leading-tight);
}

.fc-template-page .fc-page-header {
    margin-bottom: var(--fc-space-4);
}

.fc-template-header-actions,
.fc-template-card__badges,
.fc-template-card__footer p,
.fc-template-selector__heading,
.fc-template-group__header,
.fc-template-group__header > div,
.fc-template-accordion__trigger,
.fc-template-accordion__meta,
.fc-template-confirm,
.fc-template-confirm__actions,
.fc-template-result-actions,
.fc-template-history__header {
    align-items: center;
    display: flex;
}

.fc-template-header-actions,
.fc-template-card__badges,
.fc-template-card__footer p,
.fc-template-confirm__actions,
.fc-template-result-actions {
    flex-wrap: wrap;
    gap: var(--fc-space-2);
}

.fc-template-version,
.fc-template-audience,
.fc-template-recommended,
.fc-template-count {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 11px;
    font-weight: var(--fc-weight-semibold);
    line-height: 1.25;
}

.fc-template-version,
.fc-template-count {
    background: var(--fc-background-secondary);
    color: var(--fc-text-secondary);
    padding: 5px 9px;
    white-space: nowrap;
}

.fc-template-notice {
    align-items: flex-start;
    background: var(--fc-primary-soft);
    border: 1px solid color-mix(in srgb, var(--fc-primary) 18%, var(--fc-border));
    border-radius: var(--fc-radius-md);
    display: flex;
    gap: var(--fc-space-3);
    margin-bottom: var(--fc-space-5);
    padding: var(--fc-space-3) var(--fc-space-4);
}

.fc-template-notice__icon {
    align-items: center;
    background: var(--fc-surface);
    border-radius: 50%;
    color: var(--fc-primary);
    display: flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
}

.fc-template-notice h2,
.fc-template-selector h2,
.fc-template-group h2,
.fc-template-history h2,
.fc-template-detail-card h2 {
    color: var(--fc-text);
    font-size: var(--fc-title-card);
    font-weight: var(--fc-weight-semibold);
    margin: 0;
}

.fc-template-notice p,
.fc-template-selector__heading p,
.fc-template-group__header p,
.fc-template-history__header p,
.fc-template-detail-card header p {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-sm);
    line-height: var(--fc-leading-normal);
    margin: 3px 0 0;
}

.fc-template-grid {
    display: grid;
    gap: var(--fc-space-5);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fc-template-card {
    height: 100%;
    transition: border-color var(--fc-transition), box-shadow var(--fc-transition), transform var(--fc-transition);
}

.fc-template-card:hover {
    border-color: color-mix(in srgb, var(--fc-primary) 28%, var(--fc-border));
    box-shadow: var(--fc-shadow-elevated);
    transform: translateY(-2px);
}

.fc-template-card .card-body {
    display: flex;
    flex-direction: column;
    gap: var(--fc-space-4);
    padding: var(--fc-space-5);
}

.fc-template-card__badges {
    align-items: flex-start;
    justify-content: space-between;
    min-height: 26px;
}

.fc-template-audience {
    background: var(--fc-primary-soft);
    color: var(--fc-primary);
    max-width: 72%;
    padding: 5px 9px;
    white-space: normal;
}

.fc-template-recommended {
    background: var(--fc-success-soft);
    color: var(--fc-success);
    gap: 4px;
    padding: 5px 8px;
}

.fc-template-card__intro h2 {
    color: var(--fc-text);
    font-size: 21px;
    font-weight: var(--fc-weight-semibold);
    line-height: 1.3;
    margin: 0 0 7px;
}

.fc-template-card__intro p {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-md);
    line-height: 1.55;
    margin: 0;
}

.fc-template-card__section {
    border-top: 1px solid var(--fc-border-subtle);
    padding-top: var(--fc-space-3);
}

.fc-template-card__section h3,
.fc-template-tracked-groups h3 {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-xs);
    font-weight: var(--fc-weight-semibold);
    letter-spacing: .04em;
    margin: 0 0 var(--fc-space-2);
    text-transform: uppercase;
}

.fc-template-benefits,
.fc-template-tracked-groups ul {
    display: grid;
    gap: 7px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fc-template-benefits li,
.fc-template-tracked-groups li {
    align-items: flex-start;
    color: var(--fc-text);
    display: flex;
    font-size: var(--fc-text-sm);
    gap: var(--fc-space-2);
    line-height: 1.45;
}

.fc-template-benefits i,
.fc-template-tracked-groups i {
    color: var(--fc-success);
    font-size: 10px;
    margin-top: 5px;
}

.fc-template-modules {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.fc-template-modules > span {
    background: var(--fc-background-secondary);
    border: 1px solid var(--fc-border-subtle);
    border-radius: 999px;
    color: var(--fc-text-secondary);
    font-size: 11px;
    font-weight: var(--fc-weight-medium);
    line-height: 1.2;
    padding: 5px 8px;
}

.fc-template-card__footer {
    margin-top: auto;
    padding-top: var(--fc-space-1);
}

.fc-template-card__footer p {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-xs);
    justify-content: space-between;
    margin: 0 0 var(--fc-space-3);
}

.fc-template-card__footer .btn {
    width: auto;
}

.fc-template-selector {
    margin-bottom: var(--fc-space-4);
}

.fc-template-selector .card-body {
    padding: var(--fc-space-4) var(--fc-space-5);
}

.fc-template-selector__heading {
    gap: var(--fc-space-4);
    justify-content: space-between;
    margin-bottom: var(--fc-space-3);
}

.fc-template-module-options {
    display: grid;
    gap: var(--fc-space-3);
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fc-template-module-option {
    align-items: flex-start;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-md);
    cursor: pointer;
    display: flex;
    gap: var(--fc-space-3);
    min-width: 0;
    padding: var(--fc-space-3);
    position: relative;
    transition: background-color var(--fc-transition), border-color var(--fc-transition), box-shadow var(--fc-transition);
}

.fc-template-module-option:hover {
    background: var(--fc-background-secondary);
    border-color: var(--fc-border-strong);
}

.fc-template-module-option:has(input:checked) {
    background: var(--fc-primary-soft);
    border-color: var(--fc-primary);
    box-shadow: inset 0 0 0 1px var(--fc-primary);
}

.fc-template-module-option:focus-within {
    box-shadow: 0 0 0 3px var(--fc-focus-ring);
    outline: none;
}

.fc-template-module-option > input,
.fc-template-confirm label > input {
    height: 1px;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
}

.fc-template-module-option__check,
.fc-template-confirm__check {
    align-items: center;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border-strong);
    border-radius: var(--fc-radius-sm);
    color: transparent;
    display: flex;
    flex: 0 0 20px;
    height: 20px;
    justify-content: center;
    margin-left: auto;
    order: 3;
}

.fc-template-module-option input:checked ~ .fc-template-module-option__check,
.fc-template-confirm input:checked + .fc-template-confirm__check {
    background: var(--fc-primary);
    border-color: var(--fc-primary);
    color: #fff;
}

.fc-template-module-option__icon {
    align-items: center;
    background: var(--fc-background-secondary);
    border-radius: var(--fc-radius);
    color: var(--fc-primary);
    display: flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.fc-template-module-option__content {
    display: grid;
    min-width: 0;
}

.fc-template-module-option__content strong {
    color: var(--fc-text);
    font-size: var(--fc-text-md);
    line-height: 1.3;
}

.fc-template-module-option__content small {
    color: var(--fc-primary);
    font-size: var(--fc-text-xs);
    font-weight: var(--fc-weight-semibold);
    margin-top: 2px;
}

.fc-template-module-option__content > span {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-xs);
    line-height: 1.4;
    margin-top: 5px;
}

.fc-template-metrics {
    display: grid;
    gap: var(--fc-space-3);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: var(--fc-space-4);
}

.fc-template-metrics--result {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fc-template-metric {
    align-items: center;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border-subtle);
    border-radius: var(--fc-radius-md);
    display: flex;
    gap: var(--fc-space-3);
    min-height: 74px;
    padding: var(--fc-space-3) var(--fc-space-4);
}

.fc-template-metric__icon {
    align-items: center;
    background: var(--fc-background-secondary);
    border-radius: var(--fc-radius);
    color: var(--fc-text-secondary);
    display: flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.fc-template-metric > div {
    display: grid;
}

.fc-template-metric > div > span {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-xs);
}

.fc-template-metric strong {
    color: var(--fc-text);
    font-size: 24px;
    line-height: 1.2;
}

.fc-template-metric.is-new .fc-template-metric__icon { background: var(--fc-success-soft); color: var(--fc-success); }
.fc-template-metric.is-conflict .fc-template-metric__icon { background: var(--fc-warning-soft); color: var(--fc-warning-strong); }
.fc-template-metric.is-total .fc-template-metric__icon { background: var(--fc-primary-soft); color: var(--fc-primary); }

.fc-template-preview-groups {
    display: grid;
    gap: var(--fc-space-3);
}

.fc-template-group__header {
    border-bottom: 1px solid var(--fc-border-subtle);
    justify-content: space-between;
    padding: var(--fc-space-3) var(--fc-space-5);
}

.fc-template-group__header > div {
    gap: var(--fc-space-3);
    min-width: 0;
}

.fc-template-group__icon {
    align-items: center;
    background: var(--fc-primary-soft);
    border-radius: var(--fc-radius);
    color: var(--fc-primary);
    display: flex;
    flex: 0 0 36px;
    height: 36px;
    justify-content: center;
}

.fc-template-accordion__item + .fc-template-accordion__item {
    border-top: 1px solid var(--fc-border-subtle);
}

.fc-template-accordion__trigger {
    background: transparent;
    border: 0;
    color: var(--fc-text);
    justify-content: space-between;
    min-height: 44px;
    padding: 9px var(--fc-space-5);
    text-align: left;
    width: 100%;
}

.fc-template-accordion__trigger:hover {
    background: var(--fc-background-secondary);
}

.fc-template-accordion__trigger:focus-visible {
    box-shadow: inset 0 0 0 2px var(--fc-primary);
    outline: none;
}

.fc-template-accordion__trigger > span:first-child {
    align-items: center;
    display: flex;
    font-size: var(--fc-text-sm);
    font-weight: var(--fc-weight-semibold);
    gap: var(--fc-space-2);
}

.fc-template-accordion__item.is-new .fc-template-accordion__trigger > span:first-child i { color: var(--fc-success); }
.fc-template-accordion__item.is-conflicts .fc-template-accordion__trigger > span:first-child i { color: var(--fc-warning); }

.fc-template-accordion__chevron {
    color: var(--fc-text-tertiary);
    font-size: 11px;
    transition: transform var(--fc-transition);
}

.fc-template-accordion__trigger[aria-expanded="true"] .fc-template-accordion__chevron {
    transform: rotate(180deg);
}

.fc-template-accordion__content {
    background: var(--fc-background-secondary);
    border-top: 1px solid var(--fc-border-subtle);
    padding: var(--fc-space-3) var(--fc-space-5);
}

.fc-template-accordion__content ul {
    display: grid;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.fc-template-accordion__content li {
    align-items: baseline;
    display: grid;
    gap: var(--fc-space-2);
    grid-template-columns: minmax(160px, .65fr) minmax(220px, 1fr);
    padding: 7px 0;
}

.fc-template-accordion__content li + li {
    border-top: 1px solid var(--fc-border-subtle);
}

.fc-template-accordion__content li span {
    color: var(--fc-text);
    font-size: var(--fc-text-sm);
    font-weight: var(--fc-weight-medium);
}

.fc-template-accordion__content li small,
.fc-template-accordion__content p {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-xs);
    margin: 0;
}

.fc-template-confirm {
    gap: var(--fc-space-4);
    justify-content: space-between;
    margin-top: var(--fc-space-4);
    padding: var(--fc-space-4) var(--fc-space-5);
}

.fc-template-confirm__copy label {
    align-items: flex-start;
    cursor: pointer;
    display: flex;
    gap: var(--fc-space-3);
    margin: 0;
}

.fc-template-confirm__copy label:focus-within .fc-template-confirm__check {
    box-shadow: 0 0 0 3px var(--fc-focus-ring);
}

.fc-template-confirm__check {
    margin: 1px 0 0;
    order: initial;
}

.fc-template-confirm__copy label > span:last-child {
    display: grid;
}

.fc-template-confirm__copy strong {
    color: var(--fc-text);
    font-size: var(--fc-text-sm);
}

.fc-template-confirm__copy small {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-xs);
    margin-top: 2px;
}

.fc-template-result-status {
    align-items: center;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-left: 4px solid var(--fc-border-strong);
    border-radius: var(--fc-radius-md);
    display: flex;
    gap: var(--fc-space-4);
    margin-bottom: var(--fc-space-4);
    padding: var(--fc-space-4) var(--fc-space-5);
}

.fc-template-result-status__icon {
    align-items: center;
    background: var(--fc-background-secondary);
    border-radius: 50%;
    color: var(--fc-text-secondary);
    display: flex;
    flex: 0 0 42px;
    font-size: 18px;
    height: 42px;
    justify-content: center;
}

.fc-template-result-status.is-success { border-left-color: var(--fc-success); }
.fc-template-result-status.is-success .fc-template-result-status__icon { background: var(--fc-success-soft); color: var(--fc-success); }
.fc-template-result-status.is-warning { border-left-color: var(--fc-warning); }
.fc-template-result-status.is-warning .fc-template-result-status__icon { background: var(--fc-warning-soft); color: var(--fc-warning-strong); }
.fc-template-result-status.is-danger { border-left-color: var(--fc-danger); }
.fc-template-result-status.is-danger .fc-template-result-status__icon { background: var(--fc-danger-soft); color: var(--fc-danger); }

.fc-template-result-status > div > span,
.fc-template-application-summary span {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-xs);
}

.fc-template-result-status h2 {
    color: var(--fc-text);
    font-size: 20px;
    margin: 1px 0 3px;
}

.fc-template-result-status p {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-sm);
    margin: 0;
}

.fc-template-application-summary {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border-subtle);
    border-radius: var(--fc-radius-md);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: var(--fc-space-4);
}

.fc-template-application-summary > div {
    display: grid;
    min-width: 0;
    padding: var(--fc-space-3) var(--fc-space-4);
}

.fc-template-application-summary > div + div {
    border-left: 1px solid var(--fc-border-subtle);
}

.fc-template-application-summary strong {
    color: var(--fc-text);
    font-size: var(--fc-text-sm);
    overflow-wrap: anywhere;
}

.fc-template-detail-grid {
    display: grid;
    gap: var(--fc-space-3);
    grid-template-columns: minmax(240px, .7fr) minmax(0, 1.3fr);
}

.fc-template-detail-card--conflicts {
    grid-column: 1 / -1;
}

.fc-template-detail-card > header,
.fc-template-history__header {
    border-bottom: 1px solid var(--fc-border-subtle);
    display: flex;
    justify-content: space-between;
    padding: var(--fc-space-3) var(--fc-space-5);
}

.fc-template-detail-card__body {
    padding: var(--fc-space-4) var(--fc-space-5);
}

.fc-template-tracked-groups {
    display: grid;
    gap: var(--fc-space-4);
}

.fc-template-conflict-list {
    display: grid;
    gap: var(--fc-space-2);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.fc-template-conflict-list > div {
    align-items: flex-start;
    background: var(--fc-warning-soft);
    border-radius: var(--fc-radius);
    color: var(--fc-warning-strong);
    display: flex;
    gap: var(--fc-space-2);
    padding: var(--fc-space-3);
}

.fc-template-conflict-list span {
    display: grid;
}

.fc-template-conflict-list strong {
    color: var(--fc-text);
    font-size: var(--fc-text-sm);
}

.fc-template-conflict-list small {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-xs);
}

.fc-template-empty-copy {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-sm);
    margin: 0;
}

.fc-template-result-actions {
    margin-top: var(--fc-space-4);
}

.fc-template-safety-note {
    align-items: center;
    color: var(--fc-text-secondary);
    display: flex;
    font-size: var(--fc-text-xs);
    gap: var(--fc-space-2);
    margin: var(--fc-space-4) 0 0;
}

.fc-template-history__header {
    align-items: center;
}

.fc-template-table-wrap {
    max-width: 100%;
}

.fc-template-table {
    min-width: 1080px;
}

.fc-template-table th,
.fc-template-table td {
    vertical-align: middle;
}

.fc-template-table__title {
    color: var(--fc-text);
    display: block;
    min-width: 150px;
}

.fc-template-table__mobile-meta {
    color: var(--fc-text-secondary);
    display: none;
    font-size: var(--fc-text-xs);
}

.fc-template-modules--table {
    flex-wrap: nowrap;
    min-width: 220px;
}

.fc-template-history__pagination {
    border-top: 1px solid var(--fc-border-subtle);
    padding: var(--fc-space-3) var(--fc-space-5);
}

[data-theme="dark"] .fc-template-notice,
[data-theme="dark"] .fc-template-module-option:has(input:checked) {
    background: color-mix(in srgb, var(--fc-primary) 16%, var(--fc-surface));
}

[data-theme="dark"] .fc-template-notice__icon,
[data-theme="dark"] .fc-template-module-option__check,
[data-theme="dark"] .fc-template-confirm__check {
    background: var(--fc-background-secondary);
}

[data-theme="dark"] .fc-template-module-option input:checked ~ .fc-template-module-option__check,
[data-theme="dark"] .fc-template-confirm input:checked + .fc-template-confirm__check {
    background: var(--fc-primary);
}

@media (max-width: 1199.98px) {
    .fc-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .fc-template-module-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fc-template-application-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fc-template-application-summary > div:nth-child(3) {
        border-left: 0;
        border-top: 1px solid var(--fc-border-subtle);
    }

    .fc-template-application-summary > div:nth-child(4) {
        border-top: 1px solid var(--fc-border-subtle);
    }

    .fc-template-detail-grid {
        grid-template-columns: 1fr;
    }

    .fc-template-detail-card--conflicts {
        grid-column: auto;
    }
}

@media (max-width: 767.98px) {
    .fc-template-page .fc-page-title {
        font-size: 24px;
    }

    .fc-template-page .fc-page-header__actions,
    .fc-template-header-actions,
    .fc-template-page .fc-page-header__actions .btn {
        width: 100%;
    }

    .fc-template-header-actions .fc-template-version {
        margin-right: auto;
    }

    .fc-template-grid,
    .fc-template-module-options {
        grid-template-columns: 1fr;
    }

    .fc-template-selector__heading,
    .fc-template-confirm {
        align-items: stretch;
        flex-direction: column;
    }

    .fc-template-selector__heading .btn,
    .fc-template-confirm__actions,
    .fc-template-confirm__actions .btn,
    .fc-template-result-actions,
    .fc-template-result-actions .btn {
        width: 100%;
    }

    .fc-template-metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .fc-template-accordion__content li {
        gap: 2px;
        grid-template-columns: 1fr;
    }

    .fc-template-conflict-list {
        grid-template-columns: 1fr;
    }

    .fc-template-table-col--secondary {
        display: none;
    }

    .fc-template-table__mobile-meta {
        display: block;
    }

    .fc-template-table {
        min-width: 820px;
    }
}

@media (max-width: 420px) {
    .fc-template-notice,
    .fc-template-result-status {
        padding: var(--fc-space-3);
    }

    .fc-template-card .card-body,
    .fc-template-selector .card-body,
    .fc-template-group__header,
    .fc-template-confirm,
    .fc-template-detail-card__body {
        padding-left: var(--fc-space-4);
        padding-right: var(--fc-space-4);
    }

    .fc-template-metrics,
    .fc-template-metrics--result,
    .fc-template-application-summary {
        grid-template-columns: 1fr;
    }

    .fc-template-application-summary > div + div {
        border-left: 0;
        border-top: 1px solid var(--fc-border-subtle);
    }

    .fc-template-card__footer .btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fc-template-card,
    .fc-template-module-option,
    .fc-template-accordion__chevron {
        transition: none;
    }

    .fc-template-card:hover {
        transform: none;
    }
}

/* Bank reconciliation workspace */
.fc-reconciliation-page .fc-page-title { font-size: 26px; }
.fc-reconciliation-header-actions,
.fc-reconciliation-context,
.fc-reconciliation-metrics,
.fc-reconciliation-filters header,
.fc-reconciliation-filters header > div,
.fc-reconciliation-filter-actions,
.fc-reconciliation-bulk,
.fc-reconciliation-bulk > div,
.fc-reconciliation-queue__header,
.fc-reconciliation-sort,
.fc-reconciliation-row,
.fc-reconciliation-row__main,
.fc-reconciliation-row__meta,
.fc-reconciliation-signal,
.fc-reconciliation-panel__header,
.fc-reconciliation-panel-section > header,
.fc-reconciliation-suggestion > header,
.fc-reconciliation-suggestion__actions,
.fc-reconciliation-reasons,
.fc-reconciliation-ignore,
.fc-reconciliation-restore,
.fc-reconciliation-history > header,
.fc-reconciliation-shortcuts {
    align-items: center;
    display: flex;
}

.fc-reconciliation-header-actions,
.fc-reconciliation-filter-actions,
.fc-reconciliation-row__meta,
.fc-reconciliation-suggestion__actions,
.fc-reconciliation-reasons {
    flex-wrap: wrap;
    gap: var(--fc-space-2);
}

.fc-reconciliation-context {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border-subtle);
    border-radius: var(--fc-radius-md);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: var(--fc-space-3);
}

.fc-reconciliation-context > div {
    display: grid;
    min-width: 0;
    padding: 10px var(--fc-space-4);
}

.fc-reconciliation-context > div + div { border-left: 1px solid var(--fc-border-subtle); }
.fc-reconciliation-context span,
.fc-reconciliation-detail-grid dt,
.fc-reconciliation-suggestion__facts small {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-xs);
    font-weight: var(--fc-weight-medium);
}
.fc-reconciliation-context strong { color: var(--fc-text); font-size: var(--fc-text-sm); }

.fc-reconciliation-metrics {
    display: grid;
    gap: var(--fc-space-2);
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: var(--fc-space-3);
}

.fc-reconciliation-metric {
    align-items: center;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border-subtle);
    border-radius: var(--fc-radius);
    color: var(--fc-text-secondary);
    display: grid;
    gap: 1px 9px;
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 56px;
    padding: 9px 11px;
    text-decoration: none;
}

.fc-reconciliation-metric > i {
    align-items: center;
    background: var(--fc-background-secondary);
    border-radius: var(--fc-radius-sm);
    color: var(--fc-primary);
    display: flex;
    grid-row: 1 / 3;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.fc-reconciliation-metric span { font-size: 11px; grid-column: 2; line-height: 1.2; }
.fc-reconciliation-metric strong {
    color: var(--fc-text);
    font-size: 21px;
    grid-column: 2;
    grid-row: 1;
    line-height: 1;
}
.fc-reconciliation-metric:hover,
.fc-reconciliation-metric.is-active {
    background: var(--fc-primary-soft);
    border-color: var(--fc-primary);
    color: var(--fc-primary);
}

.fc-reconciliation-filters {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border-subtle);
    border-radius: var(--fc-radius-md);
    margin-bottom: var(--fc-space-3);
}

.fc-reconciliation-filters header {
    border-bottom: 1px solid var(--fc-border-subtle);
    justify-content: space-between;
    min-height: 42px;
    padding: 8px var(--fc-space-4);
}
.fc-reconciliation-filters header > div { gap: var(--fc-space-2); }
.fc-reconciliation-filters header h2,
.fc-reconciliation-queue__header h2,
.fc-reconciliation-panel__header h2,
.fc-reconciliation-panel-section h3,
.fc-reconciliation-history h2 {
    color: var(--fc-text);
    font-size: var(--fc-title-card);
    font-weight: var(--fc-weight-semibold);
    margin: 0;
}
.fc-reconciliation-filters header > div > span,
.fc-reconciliation-history > header > span {
    background: var(--fc-primary-soft);
    border-radius: 999px;
    color: var(--fc-primary);
    font-size: 11px;
    font-weight: var(--fc-weight-semibold);
    padding: 4px 8px;
}
.fc-reconciliation-filters header > a { color: var(--fc-primary); font-size: var(--fc-text-xs); font-weight: var(--fc-weight-semibold); }
.fc-reconciliation-filters form {
    display: grid;
    gap: var(--fc-space-3);
    padding: var(--fc-space-3) var(--fc-space-4);
}
.fc-reconciliation-filter-grid {
    display: grid;
    gap: 10px;
}
.fc-reconciliation-filter-grid--primary {
    grid-template-columns: minmax(280px, 2.2fr) minmax(180px, 1.3fr) repeat(3, minmax(130px, 1fr));
}
.fc-reconciliation-filter-grid--period {
    grid-template-columns: minmax(170px, 1.25fr) repeat(2, minmax(150px, 1fr)) repeat(2, minmax(145px, 1fr)) auto;
}
.fc-reconciliation-filter-grid > label,
.fc-reconciliation-manual-search label,
.fc-reconciliation-manual-form > label {
    display: grid;
    gap: 4px;
    min-width: 0;
}
.fc-reconciliation-filter-grid > label > span,
.fc-reconciliation-manual-search label > span,
.fc-reconciliation-manual-form > label > span {
    color: var(--fc-text-secondary);
    font-size: 11px;
    font-weight: var(--fc-weight-semibold);
}
.fc-reconciliation-filter-grid .form-control,
.fc-reconciliation-filter-grid .form-select {
    height: 36px;
    min-width: 0;
}
.fc-reconciliation-filter-grid .form-control:disabled {
    background: var(--fc-background-secondary);
    color: var(--fc-text-secondary);
    cursor: not-allowed;
    opacity: .78;
}
.fc-reconciliation-filter-actions {
    align-self: end;
    flex-wrap: nowrap;
    justify-content: flex-end;
    min-width: max-content;
}
.fc-reconciliation-filter-actions .btn {
    min-height: 36px;
    white-space: nowrap;
}
.fc-reconciliation-filter-errors {
    display: grid;
    font-size: var(--fc-text-xs);
    gap: 3px;
    margin: 0;
    padding: 9px 12px;
}
.fc-reconciliation-active-filters {
    align-items: center;
    border-top: 1px solid var(--fc-border-subtle);
    display: flex;
    flex-wrap: wrap;
    gap: var(--fc-space-2);
    padding: 9px var(--fc-space-4);
}
.fc-reconciliation-active-filters__count {
    color: var(--fc-text-secondary);
    font-size: 11px;
    font-weight: var(--fc-weight-medium);
    white-space: nowrap;
}
.fc-reconciliation-active-filters > div {
    display: flex;
    flex: 1 1 auto;
    flex-wrap: wrap;
    gap: 6px;
}
.fc-reconciliation-filter-chip {
    align-items: center;
    background: var(--fc-primary-soft);
    border: 1px solid color-mix(in srgb, var(--fc-primary) 24%, transparent);
    border-radius: 999px;
    color: var(--fc-primary);
    display: inline-flex;
    font-size: 10px;
    gap: 6px;
    max-width: 100%;
    padding: 4px 8px;
    text-decoration: none;
}
.fc-reconciliation-filter-chip span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fc-reconciliation-filter-chip:hover {
    border-color: var(--fc-primary);
    color: var(--fc-primary);
}
.fc-reconciliation-clear-all {
    color: var(--fc-primary);
    font-size: 11px;
    font-weight: var(--fc-weight-semibold);
    white-space: nowrap;
}

.fc-reconciliation-bulk {
    background: var(--fc-background-secondary);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    justify-content: space-between;
    margin-bottom: var(--fc-space-3);
    min-height: 42px;
    padding: 5px var(--fc-space-3);
}
.fc-reconciliation-bulk > div { gap: var(--fc-space-2); }
.fc-reconciliation-bulk label { align-items: center; display: flex; font-size: var(--fc-text-sm); gap: 7px; margin: 0; }
.fc-reconciliation-bulk__count {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: 999px;
    color: var(--fc-text-secondary);
    font-size: 11px;
    font-variant-numeric: tabular-nums;
    padding: 3px 8px;
}
.fc-reconciliation-bulk [data-bulk-submit] { min-height: 32px; padding-block: 4px; }
.fc-reconciliation-bulk [data-bulk-submit]:disabled {
    background: transparent;
    border-color: var(--fc-border);
    color: var(--fc-text-secondary);
    opacity: .58;
}

.fc-reconciliation-workspace {
    align-items: start;
    display: grid;
    gap: var(--fc-space-3);
    grid-template-columns: minmax(0, 1.85fr) minmax(340px, 1fr);
    margin-bottom: var(--fc-space-4);
}
.fc-reconciliation-queue,
.fc-reconciliation-panel { min-width: 0; overflow: hidden; }
.fc-reconciliation-queue__header {
    border-bottom: 1px solid var(--fc-border-subtle);
    justify-content: space-between;
    min-height: 48px;
    padding: 9px var(--fc-space-4);
}
.fc-reconciliation-queue__header > div:first-child { display: grid; }
.fc-reconciliation-queue__header > div:first-child span,
.fc-reconciliation-sort > span {
    color: var(--fc-text-secondary);
    font-size: 11px;
}
.fc-reconciliation-sort { gap: 5px; }
.fc-reconciliation-sort a {
    border-radius: 999px;
    color: var(--fc-text-secondary);
    font-size: 11px;
    padding: 4px 7px;
    text-decoration: none;
}
.fc-reconciliation-sort a:hover,
.fc-reconciliation-sort a.is-active { background: var(--fc-primary-soft); color: var(--fc-primary); }

.fc-reconciliation-list { display: grid; }
.fc-reconciliation-row {
    align-items: center;
    border-bottom: 1px solid var(--fc-border-subtle);
    display: grid;
    gap: var(--fc-space-2);
    grid-template-columns: 18px minmax(0, 1fr) minmax(142px, 172px);
    min-width: 0;
    padding: 10px var(--fc-space-3);
    position: relative;
}
.fc-reconciliation-row:hover { background: var(--fc-background-secondary); }
.fc-reconciliation-row.is-selected { background: var(--fc-primary-soft); box-shadow: inset 3px 0 0 var(--fc-primary); }
.fc-reconciliation-row:focus-within {
    box-shadow: inset 0 0 0 2px var(--fc-primary);
    z-index: 1;
}
.fc-reconciliation-row.is-selected:focus-within {
    box-shadow: inset 3px 0 0 var(--fc-primary), inset 0 0 0 2px var(--fc-primary);
}
.fc-reconciliation-row__select { flex: 0 0 18px; margin: 0; }
.fc-reconciliation-row__select input { height: 16px; width: 16px; }
.fc-reconciliation-row__select-placeholder { flex: 0 0 18px; }
.fc-reconciliation-row__main {
    color: inherit;
    display: grid;
    flex: 1 1 auto;
    gap: var(--fc-space-2);
    grid-template-columns: 42px minmax(110px, 1fr) 70px 108px;
    min-width: 0;
    text-decoration: none;
}
.fc-reconciliation-row__date {
    color: var(--fc-text);
    display: grid;
    font-size: var(--fc-text-sm);
    font-weight: var(--fc-weight-semibold);
    line-height: 1.05;
}
.fc-reconciliation-row__date small,
.fc-reconciliation-row__value small {
    color: var(--fc-text-secondary);
    display: none;
    font-size: 9px;
    font-weight: var(--fc-weight-medium);
    line-height: 1;
    text-transform: uppercase;
}
.fc-reconciliation-row__date > span { color: var(--fc-text-secondary); font-size: 10px; font-weight: 400; }
.fc-reconciliation-row__description { display: grid; min-width: 0; }
.fc-reconciliation-row__description strong {
    color: var(--fc-text);
    font-size: var(--fc-text-sm);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fc-reconciliation-row__description small { color: var(--fc-text-secondary); font-size: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-reconciliation-row__type {
    align-items: center;
    color: var(--fc-text-secondary);
    display: flex;
    font-size: 10px;
    font-weight: var(--fc-weight-semibold);
    gap: 4px;
}
.fc-reconciliation-row__type.is-in i { color: var(--fc-success); }
.fc-reconciliation-row__type.is-out i { color: var(--fc-danger); }
.fc-reconciliation-row__value { display: grid; justify-items: end; min-width: 0; }
.fc-reconciliation-row__amount {
    color: var(--fc-text);
    font-size: var(--fc-text-sm);
    font-variant-numeric: tabular-nums;
    text-align: right;
    white-space: nowrap;
}
.fc-reconciliation-row__meta {
    align-items: stretch;
    display: grid;
    gap: 6px;
    justify-items: end;
    min-width: 0;
}
.fc-reconciliation-row__signals {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: flex-end;
    min-width: 0;
}
.fc-reconciliation-row__signals .fc-status-badge {
    font-size: 9px;
    line-height: 1.2;
    padding: 3px 6px;
}
.fc-reconciliation-signal {
    background: var(--fc-background-secondary);
    border-radius: 999px;
    color: var(--fc-text-secondary);
    font-size: 10px;
    gap: 4px;
    line-height: 1.2;
    padding: 3px 6px;
}
.fc-reconciliation-signal.is-suggestion { background: var(--fc-success-soft); color: var(--fc-success); }
.fc-reconciliation-signal.is-divergent { background: var(--fc-warning-soft); color: var(--fc-warning-strong); }
.fc-reconciliation-row__review {
    align-items: center;
    display: inline-flex;
    font-size: 10px;
    gap: 5px;
    justify-content: center;
    min-height: 27px;
    padding: 3px 8px;
}
.fc-reconciliation-row__review i { font-size: 8px; }
.fc-reconciliation-pagination {
    align-items: center;
    display: flex;
    gap: var(--fc-space-2);
    justify-content: space-between;
    padding: var(--fc-space-3) var(--fc-space-4);
}
.fc-reconciliation-pagination a,
.fc-reconciliation-pagination > span {
    align-items: center;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-sm);
    color: var(--fc-primary);
    display: inline-flex;
    font-size: 11px;
    gap: 5px;
    min-height: 30px;
    padding: 4px 8px;
    text-decoration: none;
}
.fc-reconciliation-pagination a:hover { background: var(--fc-primary-soft); border-color: var(--fc-primary); }
.fc-reconciliation-pagination > span.is-disabled { color: var(--fc-text-secondary); opacity: .55; }
.fc-reconciliation-pagination strong {
    color: var(--fc-text-secondary);
    font-size: 11px;
    font-weight: var(--fc-weight-medium);
}

.fc-reconciliation-panel { position: sticky; top: calc(var(--fc-topbar-height) + var(--fc-space-3)); }
.fc-reconciliation-panel__header {
    border-bottom: 1px solid var(--fc-border-subtle);
    justify-content: space-between;
    padding: var(--fc-space-3) var(--fc-space-4);
}
.fc-reconciliation-panel__header > div { display: grid; min-width: 0; }
.fc-reconciliation-panel__header > div > span { color: var(--fc-primary); font-size: 10px; font-weight: var(--fc-weight-semibold); text-transform: uppercase; }
.fc-reconciliation-panel__header h2 {
    display: -webkit-box;
    line-height: 1.3;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.fc-reconciliation-panel__close {
    align-items: center;
    border-radius: 50%;
    color: var(--fc-text-secondary);
    display: flex;
    flex: 0 0 30px;
    height: 30px;
    justify-content: center;
}
.fc-reconciliation-panel__close:hover { background: var(--fc-background-secondary); color: var(--fc-text); }
.fc-reconciliation-panel__body { max-height: calc(100vh - 160px); overflow-y: auto; padding: var(--fc-space-4); }
.fc-reconciliation-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0 0 var(--fc-space-3);
}
.fc-reconciliation-detail-grid > div { border-bottom: 1px solid var(--fc-border-subtle); display: grid; padding: 8px; }
.fc-reconciliation-detail-grid dd { color: var(--fc-text); font-size: var(--fc-text-sm); margin: 1px 0 0; overflow-wrap: anywhere; }
.fc-reconciliation-detail-grid__amount dd {
    color: var(--fc-primary);
    font-size: var(--fc-title-card);
    font-variant-numeric: tabular-nums;
    font-weight: var(--fc-weight-semibold);
}
.fc-reconciliation-detail-grid__account { grid-column: 1 / -1; }
.fc-reconciliation-detail-movement {
    align-items: center;
    display: flex;
    gap: 5px;
}
.fc-reconciliation-detail-movement.is-in i { color: var(--fc-success); }
.fc-reconciliation-detail-movement.is-out i { color: var(--fc-danger); }

.fc-reconciliation-divergences {
    background: var(--fc-warning-soft);
    border-radius: var(--fc-radius);
    margin-bottom: var(--fc-space-3);
    padding: var(--fc-space-3);
}
.fc-reconciliation-divergences h3 { color: var(--fc-warning-strong); font-size: var(--fc-text-sm); margin: 0 0 7px; }
.fc-reconciliation-divergences > div,
.fc-reconciliation-reasons { display: flex; flex-wrap: wrap; gap: 5px; }
.fc-reconciliation-divergences span,
.fc-reconciliation-reasons span {
    align-items: center;
    color: var(--fc-text-secondary);
    display: inline-flex;
    font-size: 10px;
    gap: 4px;
}
.fc-reconciliation-divergences span { color: var(--fc-warning-strong); }

.fc-reconciliation-panel-section + .fc-reconciliation-panel-section { border-top: 1px solid var(--fc-border-subtle); margin-top: var(--fc-space-4); padding-top: var(--fc-space-4); }
.fc-reconciliation-panel-section > header { justify-content: space-between; margin-bottom: var(--fc-space-3); }
.fc-reconciliation-panel-section > header p { color: var(--fc-text-secondary); font-size: 11px; margin: 2px 0 0; }
.fc-reconciliation-panel-section > header > span { background: var(--fc-primary-soft); border-radius: 999px; color: var(--fc-primary); font-size: 11px; padding: 4px 8px; }
.fc-reconciliation-suggestions { display: grid; gap: var(--fc-space-2); }
.fc-reconciliation-suggestion { border: 1px solid var(--fc-border); border-radius: var(--fc-radius); padding: var(--fc-space-3); }
.fc-reconciliation-suggestion > header { justify-content: space-between; }
.fc-reconciliation-suggestion > header > div { display: grid; }
.fc-reconciliation-suggestion > header strong { color: var(--fc-text); font-size: var(--fc-text-sm); }
.fc-reconciliation-suggestion > header small { color: var(--fc-text-secondary); font-size: 10px; }
.fc-reconciliation-suggestion > header > span { background: var(--fc-success-soft); border-radius: 999px; color: var(--fc-success); font-size: 11px; font-weight: var(--fc-weight-semibold); padding: 4px 7px; }
.fc-reconciliation-suggestion__facts {
    background: var(--fc-background-secondary);
    border-radius: var(--fc-radius-sm);
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: var(--fc-space-2) 0;
    padding: var(--fc-space-2);
}
.fc-reconciliation-suggestion__facts > span { color: var(--fc-text); display: grid; font-size: 11px; min-width: 0; overflow-wrap: anywhere; }
.fc-reconciliation-reasons { margin-bottom: var(--fc-space-2); }
.fc-reconciliation-reasons span { background: var(--fc-success-soft); border-radius: 999px; color: var(--fc-success); padding: 3px 6px; }
.fc-reconciliation-reasons span.is-warning { background: var(--fc-warning-soft); color: var(--fc-warning-strong); }
.fc-reconciliation-suggestion__actions { justify-content: flex-end; }
.fc-reconciliation-suggestion__actions form { align-items: center; display: flex; flex-wrap: wrap; gap: 7px; }
.fc-reconciliation-suggestion__actions form label { color: var(--fc-warning-strong); font-size: 10px; margin: 0; }

.fc-reconciliation-panel-empty {
    align-items: center;
    background: var(--fc-background-secondary);
    border-radius: var(--fc-radius);
    color: var(--fc-text-secondary);
    display: flex;
    gap: var(--fc-space-2);
    padding: var(--fc-space-3);
}
.fc-reconciliation-panel-empty p { font-size: var(--fc-text-xs); margin: 0; }
.fc-reconciliation-panel-empty.is-large { flex-direction: column; justify-content: center; min-height: 320px; text-align: center; }
.fc-reconciliation-panel-empty.is-large i { color: var(--fc-primary); font-size: 28px; }
.fc-reconciliation-panel-empty.is-large h2 { color: var(--fc-text); font-size: var(--fc-title-section); margin: var(--fc-space-2) 0 0; }

.fc-reconciliation-manual-search {
    align-items: end;
    display: grid;
    gap: var(--fc-space-2);
    grid-template-columns: minmax(0, 1fr) 120px auto;
    margin-bottom: var(--fc-space-3);
}
.fc-reconciliation-manual-form { display: grid; gap: var(--fc-space-2); }
.fc-reconciliation-comparison {
    background: var(--fc-background-secondary);
    border-radius: var(--fc-radius-sm);
    color: var(--fc-text-secondary);
    display: flex;
    flex-wrap: wrap;
    font-size: 11px;
    gap: var(--fc-space-3);
    padding: var(--fc-space-2);
}
.fc-reconciliation-confirm-difference { color: var(--fc-warning-strong); font-size: var(--fc-text-xs); }
.fc-reconciliation-ignore,
.fc-reconciliation-restore { border-top: 1px solid var(--fc-border-subtle); justify-content: flex-end; margin-top: var(--fc-space-4); padding-top: var(--fc-space-3); }
.fc-reconciliation-matched-detail {
    background: var(--fc-success-soft);
    border-radius: var(--fc-radius);
    display: grid;
    margin-bottom: var(--fc-space-3);
    padding: var(--fc-space-3);
}
.fc-reconciliation-matched-detail strong { color: var(--fc-text); font-size: var(--fc-text-sm); }
.fc-reconciliation-matched-detail span { color: var(--fc-success); font-size: var(--fc-text-sm); }

.fc-reconciliation-history { margin-bottom: var(--fc-space-3); overflow: hidden; }
.fc-reconciliation-history > header { border-bottom: 1px solid var(--fc-border-subtle); justify-content: space-between; padding: var(--fc-space-3) var(--fc-space-4); }
.fc-reconciliation-history > header p { color: var(--fc-text-secondary); font-size: var(--fc-text-xs); margin: 2px 0 0; }
.fc-reconciliation-history table { min-width: 980px; }
.fc-reconciliation-shortcuts { color: var(--fc-text-secondary); font-size: 11px; gap: var(--fc-space-2); justify-content: flex-end; }
.fc-reconciliation-shortcuts kbd { background: var(--fc-background-secondary); border: 1px solid var(--fc-border); color: var(--fc-text); font-size: 10px; margin: 0 2px; }

[data-theme="dark"] .fc-reconciliation-row.is-selected,
[data-theme="dark"] .fc-reconciliation-metric.is-active {
    background: color-mix(in srgb, var(--fc-primary) 16%, var(--fc-surface));
}

@media (max-width: 1199.98px) {
    .fc-reconciliation-filter-grid--primary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fc-reconciliation-filter-search { grid-column: span 2; }
    .fc-reconciliation-filter-grid--period { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fc-reconciliation-filter-actions { grid-column: span 2; }
    .fc-reconciliation-workspace { grid-template-columns: minmax(0, 1.7fr) minmax(320px, 1fr); }
    .fc-reconciliation-row__main { grid-template-columns: 38px minmax(100px, 1fr) 100px; }
    .fc-reconciliation-row__type { display: none; }
    .fc-reconciliation-row { grid-template-columns: 18px minmax(0, 1fr) minmax(130px, 152px); }
}

@media (max-width: 991.98px) {
    .fc-reconciliation-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fc-reconciliation-filter-grid--primary,
    .fc-reconciliation-filter-grid--period { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-reconciliation-filter-search { grid-column: 1 / -1; }
    .fc-reconciliation-workspace { grid-template-columns: 1fr; }
    .fc-reconciliation-panel { position: static; }
    .fc-reconciliation-panel__body { max-height: none; }
}

@media (max-width: 767.98px) {
    .fc-reconciliation-page .fc-page-title { font-size: 23px; }
    .fc-reconciliation-header-actions,
    .fc-reconciliation-header-actions .btn { width: 100%; }
    .fc-reconciliation-context { grid-template-columns: 1fr; }
    .fc-reconciliation-context > div + div { border-left: 0; border-top: 1px solid var(--fc-border-subtle); }
    .fc-reconciliation-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-reconciliation-metric:last-child { grid-column: 1 / -1; }
    .fc-reconciliation-filter-grid--primary,
    .fc-reconciliation-filter-grid--period { grid-template-columns: 1fr; }
    .fc-reconciliation-filter-search,
    .fc-reconciliation-filter-actions { grid-column: auto; }
    .fc-reconciliation-filter-actions,
    .fc-reconciliation-filter-actions .btn { width: 100%; }
    .fc-reconciliation-active-filters { align-items: flex-start; }
    .fc-reconciliation-active-filters > div { flex-basis: 100%; }
    .fc-reconciliation-bulk { align-items: stretch; flex-direction: column; gap: var(--fc-space-2); }
    .fc-reconciliation-bulk [data-bulk-submit] { width: 100%; }
    .fc-reconciliation-queue__header { align-items: flex-start; flex-direction: column; gap: var(--fc-space-2); }
    .fc-reconciliation-sort { flex-wrap: wrap; }
    .fc-reconciliation-row {
        align-items: start;
        grid-template-columns: 18px minmax(0, 1fr);
        padding-block: var(--fc-space-3);
    }
    .fc-reconciliation-row__main {
        align-items: start;
        grid-template-columns: 34px minmax(0, 1fr) auto;
        row-gap: 7px;
    }
    .fc-reconciliation-row__date { grid-column: 1; grid-row: 1 / 3; }
    .fc-reconciliation-row__date small,
    .fc-reconciliation-row__value small { display: block; }
    .fc-reconciliation-row__description { grid-column: 2 / 4; }
    .fc-reconciliation-row__description strong { white-space: normal; }
    .fc-reconciliation-row__type {
        display: flex;
        grid-column: 2;
        grid-row: 2;
    }
    .fc-reconciliation-row__value {
        align-self: center;
        grid-column: 3;
        grid-row: 2;
    }
    .fc-reconciliation-row__amount { text-align: right; }
    .fc-reconciliation-row__meta {
        align-items: center;
        display: flex;
        grid-column: 2;
        justify-content: space-between;
        width: 100%;
    }
    .fc-reconciliation-row__signals { justify-content: flex-start; }
    .fc-reconciliation-detail-grid,
    .fc-reconciliation-suggestion__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fc-reconciliation-manual-search { grid-template-columns: 1fr; }
    .fc-reconciliation-shortcuts { display: none; }
}

@media (max-width: 420px) {
    .fc-reconciliation-filter-grid,
    .fc-reconciliation-suggestion__facts { grid-template-columns: 1fr; }
    .fc-reconciliation-filter-search,
    .fc-reconciliation-filter-actions { grid-column: auto; }
    .fc-reconciliation-filter-actions,
    .fc-reconciliation-filter-actions .btn,
    .fc-reconciliation-suggestion__actions,
    .fc-reconciliation-suggestion__actions .btn,
    .fc-reconciliation-suggestion__actions form,
    .fc-reconciliation-manual-form .btn,
    .fc-reconciliation-ignore .btn,
    .fc-reconciliation-restore .btn { width: 100%; }
    .fc-reconciliation-row__main { grid-template-columns: 30px minmax(0, 1fr) auto; }
    .fc-reconciliation-row__meta { align-items: flex-end; }
    .fc-reconciliation-row__signals { align-items: flex-start; flex-direction: column; }
    .fc-reconciliation-row__review span { display: none; }
    .fc-reconciliation-row__review {
        height: 30px;
        min-width: 30px;
        padding: 4px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fc-reconciliation-metric,
    .fc-reconciliation-row,
    .fc-reconciliation-panel__close { transition: none; }
}

@media (prefers-reduced-motion: reduce) {
    .fc-app *,
    .fc-guided-onboarding *,
    .fc-app *::before,
    .fc-app *::after,
    .fc-guided-onboarding *::before,
    .fc-guided-onboarding *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* Registration imports extend the shared card, button, form and table primitives. */
.fc-import-steps {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-lg);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    list-style: none;
    margin: 0 0 var(--fc-space-4);
    padding: var(--fc-space-2);
}

.fc-import-steps li {
    align-items: center;
    color: var(--fc-text-secondary);
    display: flex;
    font-size: var(--fc-text-sm);
    gap: var(--fc-space-2);
    min-height: 44px;
    padding: var(--fc-space-2) var(--fc-space-3);
}

.fc-import-steps li span {
    align-items: center;
    background: var(--fc-background-secondary);
    border-radius: 50%;
    display: inline-flex;
    flex: 0 0 28px;
    font-size: 12px;
    height: 28px;
    justify-content: center;
}

.fc-import-steps .is-current {
    background: var(--fc-primary-soft);
    border-radius: var(--fc-radius);
    color: var(--fc-primary);
}

.fc-import-steps .is-current span {
    background: var(--fc-primary);
    color: #fff;
}

.fc-import-steps .is-complete {
    color: var(--fc-success);
}

.fc-import-steps .is-complete span {
    background: var(--fc-success-soft);
}

.fc-import-panel {
    margin-inline: auto;
    max-width: 1040px;
}

.fc-import-entity-grid {
    display: grid;
    gap: var(--fc-space-3);
    grid-template-columns: repeat(4, 1fr);
}

.fc-import-choice {
    cursor: pointer;
    margin: 0;
}

.fc-import-choice input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.fc-import-choice span {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    display: grid;
    gap: 5px;
    min-height: 116px;
    padding: var(--fc-space-4);
    transition: border-color var(--fc-transition), box-shadow var(--fc-transition);
}

.fc-import-choice i {
    color: var(--fc-primary);
}

.fc-import-choice small,
.fc-import-confirm span {
    color: var(--fc-text-secondary);
}

.fc-import-choice input:checked + span {
    border-color: var(--fc-primary);
    box-shadow: 0 0 0 3px var(--fc-primary-soft);
}

.fc-import-choice input:focus-visible + span {
    outline: 3px solid var(--fc-focus-ring);
    outline-offset: 2px;
}

.fc-import-template-list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--fc-space-2);
    margin-top: var(--fc-space-4);
}

.fc-import-dropzone {
    background: var(--fc-background-secondary);
    border: 1px dashed var(--fc-border-strong);
    border-radius: var(--fc-radius-md);
    margin-top: var(--fc-space-4);
    padding: var(--fc-space-5);
}

.fc-import-dropzone label {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--fc-space-2);
    margin-bottom: var(--fc-space-3);
    text-align: center;
}

.fc-import-dropzone label i {
    color: var(--fc-primary);
    font-size: 28px;
}

.fc-import-dropzone label span {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-sm);
}

.fc-import-dropzone input {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    padding: var(--fc-space-2);
    width: 100%;
}

.fc-import-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: var(--fc-space-2);
    justify-content: flex-end;
}

.fc-import-notice {
    align-items: center;
    background: var(--fc-primary-soft);
    border-radius: var(--fc-radius);
    color: var(--fc-primary);
    display: flex;
    gap: var(--fc-space-2);
    margin-bottom: var(--fc-space-4);
    padding: var(--fc-space-3);
}

.fc-import-mapping {
    display: grid;
    gap: var(--fc-space-2);
}

.fc-import-mapping-row {
    align-items: center;
    border-bottom: 1px solid var(--fc-border-subtle);
    display: grid;
    gap: var(--fc-space-4);
    grid-template-columns: minmax(160px, 1fr) 20px minmax(220px, 1fr);
    padding: var(--fc-space-2) 0;
}

.fc-import-mapping-row div {
    display: grid;
}

.fc-import-mapping-row small {
    color: var(--fc-text-secondary);
}

.fc-import-mapping-row > i {
    color: var(--fc-text-tertiary);
}

.fc-import-mode {
    border: 0;
    display: grid;
    gap: var(--fc-space-2);
    margin: var(--fc-space-5) 0 0;
    padding: 0;
}

.fc-import-mode legend {
    font-size: var(--fc-text-lg);
    font-weight: var(--fc-weight-semibold);
}

.fc-import-mode label {
    align-items: flex-start;
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius);
    display: flex;
    gap: var(--fc-space-2);
    padding: var(--fc-space-3);
}

.fc-import-mode label span {
    display: grid;
}

.fc-import-mode small {
    color: var(--fc-text-secondary);
}

.fc-import-summary {
    display: grid;
    gap: var(--fc-space-3);
    grid-template-columns: repeat(6, 1fr);
    margin-bottom: var(--fc-space-4);
}

.fc-import-metric {
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-left: 3px solid var(--fc-border-strong);
    border-radius: var(--fc-radius);
    display: grid;
    padding: var(--fc-space-3);
}

.fc-import-metric span {
    color: var(--fc-text-secondary);
    font-size: var(--fc-text-sm);
}

.fc-import-metric strong {
    font-size: 24px;
}

.fc-import-metric--primary { border-left-color: var(--fc-primary); }
.fc-import-metric--success { border-left-color: var(--fc-success); }
.fc-import-metric--danger { border-left-color: var(--fc-danger); }
.fc-import-metric--warning { border-left-color: var(--fc-warning); }
.fc-import-metric--info { border-left-color: var(--fc-info); }

.fc-import-preview-table {
    max-height: 520px;
}

.fc-import-preview-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.fc-import-confirm {
    align-items: center;
    background: var(--fc-surface);
    border: 1px solid var(--fc-border);
    border-radius: var(--fc-radius-lg);
    display: flex;
    gap: var(--fc-space-3);
    justify-content: flex-end;
    margin-top: var(--fc-space-4);
    padding: var(--fc-space-4);
}

.fc-import-confirm > div {
    display: grid;
    margin-right: auto;
}

.fc-import-result .card-body {
    align-items: center;
    display: flex;
    gap: var(--fc-space-4);
}

.fc-import-result__icon {
    align-items: center;
    background: var(--fc-success-soft);
    border-radius: 50%;
    color: var(--fc-success);
    display: flex;
    flex: 0 0 52px;
    font-size: 24px;
    height: 52px;
    justify-content: center;
}

.fc-import-status {
    background: var(--fc-background-secondary);
    border-radius: 999px;
    color: var(--fc-text-secondary);
    display: inline-flex;
    font-size: 11px;
    font-weight: var(--fc-weight-semibold);
    padding: 4px 8px;
    text-transform: capitalize;
}

.fc-import-status--completed { background: var(--fc-success-soft); color: var(--fc-success); }
.fc-import-status--completed_with_errors { background: var(--fc-warning-soft); color: var(--fc-warning-strong); }
.fc-import-status--failed { background: var(--fc-danger-soft); color: var(--fc-danger); }
.fc-import-status--processing { background: var(--fc-primary-soft); color: var(--fc-primary); }

@media (max-width: 1024px) {
    .fc-import-entity-grid,
    .fc-import-summary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767.98px) {
    .fc-import-steps {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .fc-import-steps li {
        flex: 0 0 180px;
        scroll-snap-align: start;
    }

    .fc-import-mapping-row {
        gap: var(--fc-space-2);
        grid-template-columns: 1fr;
    }

    .fc-import-mapping-row > i {
        transform: rotate(90deg);
    }

    .fc-import-confirm {
        align-items: stretch;
        flex-direction: column;
    }

    .fc-import-confirm > div {
        margin: 0;
    }
}

@media (max-width: 420px) {
    .fc-import-entity-grid,
    .fc-import-summary {
        grid-template-columns: 1fr;
    }

    .fc-import-actions > .btn,
    .fc-import-confirm > .btn {
        width: 100%;
    }
}
    font-weight: 600;
/* Public commercial contact CTAs */
.contact-cta {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid transparent;
    border-radius: 0.625rem;
    padding: 0.7rem 1rem;
    color: inherit;
    font: inherit;
    font-weight: 650;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    touch-action: manipulation;
}

.contact-cta__icon {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
}

.contact-cta--small {
    min-height: 40px;
    padding: 0.55rem 0.8rem;
    font-size: 0.875rem;
}

.contact-cta--large {
    min-height: 48px;
    padding: 0.85rem 1.25rem;
}

.contact-cta--primary {
    background: #1e40af;
    color: #fff;
}

.contact-cta--secondary {
    border-color: #cbd5e1;
    background: #fff;
    color: #0f172a;
}

.contact-cta--light {
    background: #fff;
    color: #0f172a;
}

.contact-cta--outline-light {
    border-color: rgba(255, 255, 255, 0.72);
    background: transparent;
    color: #fff;
}

.contact-cta--link {
    min-height: 44px;
    justify-content: flex-start;
    padding-inline: 0;
    color: #1e40af;
}

.contact-cta:hover {
    filter: brightness(0.97);
}

.contact-cta:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 3px;
}

.floating-whatsapp {
    --floating-whatsapp-clearance: 0px;
    position: fixed;
    z-index: 2147482998;
    right: calc(24px + env(safe-area-inset-right, 0px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px) + var(--floating-whatsapp-clearance));
    display: inline-grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.25);
    color: #fff;
    text-decoration: none;
    touch-action: manipulation;
    transition: bottom 180ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease, opacity 120ms ease;
}

.floating-whatsapp:hover {
    background: #1ebe5d;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.3);
    color: #fff;
    transform: translateY(-2px);
}

.floating-whatsapp:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 4px;
}

.floating-whatsapp svg {
    display: block;
    width: 30px;
    height: 30px;
}

.floating-whatsapp__tooltip {
    position: absolute;
    right: calc(100% + 12px);
    width: max-content;
    max-width: 190px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #0f172a;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.2);
    color: #fff;
    font-size: 0.8125rem;
    font-weight: 650;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translateX(4px);
    transition: opacity 140ms ease, transform 140ms ease;
}

.floating-whatsapp:hover .floating-whatsapp__tooltip,
.floating-whatsapp:focus-visible .floating-whatsapp__tooltip {
    opacity: 1;
    transform: translateX(0);
}

.floating-whatsapp.is-obscured {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

@media (max-width: 640px) {
    .floating-whatsapp {
        right: calc(16px + env(safe-area-inset-right, 0px));
        bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--floating-whatsapp-clearance));
        width: 52px;
        height: 52px;
    }

    .floating-whatsapp__tooltip {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .floating-whatsapp,
    .floating-whatsapp__tooltip {
        transition: none;
    }
}

@media print {
    .floating-whatsapp,
    .floating-whatsapp__tooltip {
        display: none !important;
    }
}
