
        :root {
            --relay-bg: #faf9f8;
            --relay-surface: #ffffff;
            --relay-border: #dfe0e1;
            --relay-text: #201f1e;
            --relay-muted: #605e5c;
            --relay-primary: #0078d4;
            --relay-primary-dark: #005a9e;
            /* Used when the top navbar is fixed */
            --relay-nav-height: 48px;
            /* Backward-compat aliases for older view styles */
            --az-blue: var(--relay-primary);
            --az-border: var(--relay-border);
            --relay-success: #107c10;
            --relay-warning: #ffb900;
            --relay-danger: #d13438;
            --relay-orange: #f38020;
            --relay-radius: 10px;
            --relay-radius-sm: 8px;
            --relay-shadow: 0 1.6px 3.6px rgba(0,0,0,.08), 0 .3px .9px rgba(0,0,0,.06);
        }

        body {
            font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
            background-color: var(--relay-bg);
            color: var(--relay-text);
            /* Keep page content below the fixed top panel */
            padding-top: var(--relay-nav-height);
        }

        /* Azure DevOps-ish navbar */
        .navbar-azure {
            background-color: #201f1e !important;
            padding: 0 1rem;
            min-height: 48px;
            border-bottom: 1px solid rgba(0,0,0,0.2);
        }

        .navbar-brand {
            font-size: 1rem;
            letter-spacing: 0.02em;
            color: #fff !important;
            display: flex;
            align-items: center;
        }

        /*   .navbar-brand::before {
                content: "●";
                color: var(--relay-primary);
                margin-right: 8px;
                font-size: 14px;
            }*/

        .nav-link {
            font-size: 0.85rem !important;
            color: #d2d2d2 !important;
            padding: 0.7rem 0.75rem !important;
            border-bottom: 2px solid transparent;
            transition: all 0.2s;
        }

            .nav-link:hover {
                color: #fff !important;
                background-color: rgba(255,255,255,0.1);
            }

        .nav-link-admin {
            color: var(--relay-warning) !important;
            font-weight: 600;
        }

        /* Page shell */
        .body-content {
            padding: 0;
            min-height: calc(100vh - 120px);
        }

        .relay-shell {
            padding: 1.5rem 2rem;
            max-width: 1600px;
            margin: 0 auto;
        }

        .relay-shell-md {
            max-width: 1280px;
        }

        .relay-shell-sm {
            max-width: 980px;
        }

        .relay-shell-xs {
            max-width: 720px;
        }

        .relay-shell-auth {
            padding: 1.75rem 1.25rem;
            max-width: 1200px;
        }

        @media (max-width: 768px) {
            .relay-shell {
                padding: 1.25rem 1rem;
            }
        }

        /* Page header */
        .relay-header {
            margin-bottom: 1.25rem;
        }

        .relay-breadcrumb {
            font-size: 0.85rem;
            color: var(--relay-muted);
            margin-bottom: 0.25rem;
        }

            .relay-breadcrumb a {
                color: var(--relay-primary);
                text-decoration: none;
            }

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

        .relay-title {
            font-weight: 300;
            font-size: 2.05rem;
            color: #000;
            margin: 0;
        }

        .relay-section-title {
            font-weight: 300;
            font-size: 1.8rem;
            color: #000;
            margin: 0;
        }

        .relay-desc,
        .relay-muted {
            color: var(--relay-muted);
        }

        /* Cards */

        /* Normalize Bootstrap cards to the Relay design system */
        .card {
            border: 1px solid var(--relay-border);
            border-radius: var(--relay-radius);
            box-shadow: 0 1px 2px rgba(0,0,0,.04);
        }

            .card.border-0 {
                border: 1px solid var(--relay-border) !important;
            }

            .card.shadow-sm {
                box-shadow: var(--relay-shadow) !important;
            }

        .card-header {
            border-bottom: 1px solid var(--relay-border);
        }

            .card-header:not([class*='bg-']) {
                background: rgba(0,0,0,.02);
            }

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

        .relay-card-header {
            padding: .9rem 1rem;
            border-bottom: 1px solid var(--relay-border);
            background: rgba(0,0,0,.02);
            border-top-left-radius: var(--relay-radius);
            border-top-right-radius: var(--relay-radius);
            font-weight: 600;
        }

        .relay-card-body {
            padding: 1rem;
        }

        /* KPI */
        .kpi-card {
            background: var(--relay-surface);
            border: 1px solid var(--relay-border);
            border-radius: var(--relay-radius-sm);
            padding: 1rem;
            height: 100%;
            box-shadow: 0 1px 2px rgba(0,0,0,.05);
        }

        .kpi-label {
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            font-weight: 700;
            color: var(--relay-muted);
            margin-bottom: 0.25rem;
        }

        .kpi-value {
            font-size: 1.75rem;
            font-weight: 300;
            color: var(--relay-text);
        }

        /* Tabs */
        .relay-tabs {
            display: flex;
            gap: 1.5rem;
            border-bottom: 1px solid var(--relay-border);
            margin-top: 1rem;
        }

        .relay-tab {
            padding-bottom: 0.65rem;
            color: var(--relay-muted);
            text-decoration: none;
            font-weight: 600;
            font-size: 0.95rem;
            border-bottom: 3px solid transparent;
            transition: all 0.2s;
        }

            .relay-tab:hover {
                color: var(--relay-text);
            }

            .relay-tab.active {
                color: var(--relay-primary);
                border-bottom-color: var(--relay-primary);
            }

        /* Toolbars */
        .controls-bar {
            background: var(--relay-surface);
            border: 1px solid var(--relay-border);
            border-bottom: none;
            border-top-left-radius: var(--relay-radius-sm);
            border-top-right-radius: var(--relay-radius-sm);
            padding: .9rem 1rem;
            display: flex;
            flex-wrap: wrap;
            gap: .75rem;
            align-items: center;
            justify-content: space-between;
        }

        .table-container {
            border: 1px solid var(--relay-border);
            border-bottom-left-radius: var(--relay-radius-sm);
            border-bottom-right-radius: var(--relay-radius-sm);
            overflow: hidden;
            background: var(--relay-surface);
            box-shadow: 0 1px 2px rgba(0,0,0,.05);
        }

        .relay-table {
            margin-bottom: 0;
            width: 100%;
        }

            .relay-table thead th {
                background-color: rgba(0,0,0,.02);
                border-bottom: 1px solid var(--relay-border);
                font-size: 0.75rem;
                text-transform: uppercase;
                letter-spacing: 0.05em;
                color: var(--relay-muted);
                font-weight: 700;
                padding: 0.75rem 1rem;
                white-space: nowrap;
            }

            .relay-table tbody td {
                padding: 0.95rem 1rem;
                vertical-align: top;
                border-bottom: 1px solid #f3f2f1;
                font-size: 0.92rem;
            }

            .relay-table tbody tr:hover {
                background-color: #faf9f8;
            }

        /* Badges & code */
        .badge-custom {
            font-weight: 700;
            border-radius: 6px;
            padding: 3px 8px;
            font-size: 0.7rem;
            border: 1px solid transparent;
            text-transform: uppercase;
        }

        .badge-active {
            background: #dff6dd;
            color: var(--relay-success);
            border-color: #c2e7c0;
        }

        .badge-inactive {
            background: #f3f2f1;
            color: var(--relay-muted);
            border-color: var(--relay-border);
        }

        .badge-prop {
            background: #f3f2f1;
            color: var(--relay-text);
            border-color: var(--relay-border);
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
            font-size: 0.78rem;
        }

        .code-snippet {
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
            font-size: 0.85rem;
            background: #f8f9fa;
            padding: 2px 6px;
            border-radius: 6px;
            color: #b4235a;
        }

        /* Form polish */
        .form-control,
        .form-select,
        .btn {
            border-radius: .75rem;
        }

        .btn-outline-secondary {
            border-color: var(--relay-border);
        }

            .btn-outline-secondary:hover {
                border-color: var(--relay-primary);
                color: var(--relay-primary);
            }

        /* Auth / login */
        .relay-auth-wrap {
            max-width: 980px;
            margin: 0 auto;
        }

        .relay-auth-card {
            border: 1px solid var(--relay-border);
            border-radius: 1.25rem;
            overflow: hidden;
            background: radial-gradient(900px 260px at 18% 0%, rgba(13,110,253,.16), transparent 60%), radial-gradient(820px 240px at 90% 20%, rgba(25,135,84,.12), transparent 55%), var(--relay-surface);
            box-shadow: var(--relay-shadow);
        }

        .relay-auth-left {
            padding: 1.75rem 1.5rem;
            border-bottom: 1px solid var(--relay-border);
        }

        @media (min-width: 992px) {
            .relay-auth-left {
                border-bottom: 0;
                border-right: 1px solid var(--relay-border);
                min-height: 100%;
            }
        }

        .relay-kicker {
            display: inline-flex;
            align-items: center;
            gap: .5rem;
            padding: .35rem .65rem;
            border: 1px solid var(--relay-border);
            border-radius: 999px;
            font-size: .85rem;
            color: var(--relay-muted);
            background: rgba(255,255,255,.55);
            backdrop-filter: blur(6px);
        }

            .relay-kicker .dot {
                width: .55rem;
                height: .55rem;
                border-radius: 999px;
                background: var(--relay-primary);
                box-shadow: 0 0 0 .2rem rgba(13,110,253,.15);
            }

        .relay-form {
            padding: 1.75rem 1.5rem;
            background: var(--relay-surface);
        }





        /* Invitation / onboarding (Invitations/Accept) */
        .relay-shell-sm .relay-auth-card,
        .relay-shell-auth .relay-auth-card {
            max-width: 760px;
            margin: 0 auto;
        }

        .relay-auth-card .relay-header {
            padding: 1.75rem 1.75rem 1.15rem 1.75rem;
            border-bottom: 1px solid var(--relay-border);
            background: rgba(0,0,0,.02);
            margin-bottom: 0;
        }

            .relay-auth-card .relay-header h2 {
                margin: 0 0 .35rem 0;
                font-weight: 300;
                font-size: 1.9rem;
                color: #000;
            }

        .relay-auth-card .relay-form-body {
            padding: 1.75rem;
        }

        .onboarding-steps {
            display: flex;
            gap: .85rem;
            margin-bottom: 1.35rem;
        }

        .step-item {
            flex: 1;
            height: 6px;
            background: rgba(0,0,0,.10);
            border-radius: 999px;
            position: relative;
        }

            .step-item.active {
                background: var(--relay-primary);
            }

        .step-label {
            display: block;
            margin-top: .5rem;
            font-size: .72rem;
            letter-spacing: .06em;
            text-transform: uppercase;
            font-weight: 800;
            color: var(--relay-muted);
            white-space: nowrap;
        }

        .step-item.active .step-label {
            color: var(--relay-primary);
        }

        .security-notice {
            margin-top: 1.25rem;
            background: #f0f6ff;
            border: 1px solid #c7e0f4;
            border-left: 4px solid var(--relay-primary);
            padding: 1rem;
            border-radius: var(--relay-radius-sm);
            color: #004578;
        }

        .security-icon {
            margin-right: .35rem;
            font-weight: 900;
            color: var(--relay-primary);
        }

        /* Landing / marketing blocks */
        .relay-hero {
            background: var(--relay-surface);
            border: 1px solid var(--relay-border);
            border-radius: var(--relay-radius);
            box-shadow: var(--relay-shadow);
            overflow: hidden;
            position: relative;
        }

        .relay-hero-inner {
            padding: 3rem 2.5rem;
        }

        .lang-switcher {
            top: 1rem;
            right: 1rem;
            z-index: 2;
        }

        .lang-btn {
            background: var(--relay-surface);
            border: 1px solid var(--relay-border);
            padding: 6px 12px;
            border-radius: 10px;
            font-size: 0.85rem;
            color: var(--relay-text);
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            text-decoration: none;
            transition: all 0.2s;
        }

            .lang-btn:hover {
                background: rgba(0,0,0,.02);
                border-color: var(--relay-primary);
                color: var(--relay-primary);
            }

        .relay-lead {
            color: var(--relay-muted);
            max-width: 75ch;
            font-size: 1.1rem;
        }

        .relay-pill {
            padding: 2px 8px;
            border: 1px solid var(--relay-border);
            border-radius: 999px;
            font-size: .75rem;
            color: var(--relay-muted);
            background: #f3f2f1;
        }

        .feature-img {
            width: 100%;
            height: auto;
            border-radius: var(--relay-radius-sm);
            border: 1px solid #eee;
            background-color: #f8f9fa;
        }


        /* Landing cards */
        .relay-card:hover {
            border-color: var(--relay-primary);
        }

        .relay-card .icon {
            width: 42px;
            height: 42px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            background: rgba(0,0,0,.02);
            border: 1px solid var(--relay-border);
            color: var(--relay-primary);
            font-weight: 800;
            border-radius: 10px;
        }

        /* Section headings (used on landing + settings) */
        .relay-section-title {
            border-bottom: 1px solid var(--relay-border);
            padding-bottom: 0.5rem;
        }

        .price-card {
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .price {
            font-size: 2.5rem;
            font-weight: 300;
            color: #000;
        }

            .price small {
                font-size: 1rem;
                color: var(--relay-muted);
                font-weight: 400;
            }

        .relay-faq .accordion-item {
            border: 1px solid var(--relay-border);
            border-radius: var(--relay-radius-sm) !important;
            overflow: hidden;
            margin-bottom: 10px;
        }

        .relay-faq .accordion-button {
            font-weight: 700;
            color: var(--relay-text);
            background: var(--relay-surface);
        }

            .relay-faq .accordion-button:not(.collapsed) {
                background: rgba(0,0,0,.02);
                color: var(--relay-primary);
                box-shadow: none;
            }

        /* Endpoint list helpers */
        .dir-indicator {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            font-weight: 700;
            font-size: 0.82rem;
        }

        .dir-dot {
            height: 8px;
            width: 8px;
            border-radius: 50%;
        }

        .dir-incoming {
            color: #005a9e;
        }

            .dir-incoming .dir-dot {
                background: #005a9e;
            }

        .dir-outgoing {
            color: #795e00;
        }

            .dir-outgoing .dir-dot {
                background: var(--relay-warning);
            }

        .badge-method {
            background: #f3f2f1;
            color: #323130;
            border: 1px solid var(--relay-border);
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
            font-size: 0.72rem;
            padding: 2px 6px;
            border-radius: 8px;
        }

        .copy-btn {
            color: var(--relay-muted);
            opacity: 0.65;
            transition: opacity 0.2s;
            border: none;
            background: transparent;
        }

            .copy-btn:hover {
                opacity: 1;
                color: var(--relay-primary);
            }

        .btn-action {
            font-weight: 700;
            font-size: 0.85rem;
        }

        /* Accordion (general) */
        .accordion-button {
            box-shadow: none !important;
        }

            .accordion-button:not(.collapsed) {
                color: var(--relay-primary);
                background: #e6f2ff;
            }

        /* Mapper / binder UX (Integrations form) */
        .relay-binder .binder-help {
            border: 1px solid var(--relay-border);
            background: rgba(0,0,0,.02);
            border-radius: 1rem;
            padding: 1rem;
        }

        .relay-binder .binder-step {
            display: flex;
            gap: .75rem;
            align-items: flex-start;
        }

            .relay-binder .binder-step + .binder-step {
                margin-top: .5rem;
            }

            .relay-binder .binder-step .num {
                width: 1.75rem;
                height: 1.75rem;
                border-radius: 999px;
                display: inline-flex;
                align-items: center;
                justify-content: center;
                font-weight: 800;
                font-size: .85rem;
                border: 1px solid var(--relay-border);
                background: #fff;
            }

            .relay-binder .binder-step .txt {
                font-size: .92rem;
            }

                .relay-binder .binder-step .txt .hint {
                    color: var(--relay-muted);
                    font-size: .85rem;
                    margin-top: .15rem;
                }

        .relay-binder .field-box {
            border: 1px solid var(--relay-border);
            border-radius: 1rem;
            background: #fff;
            padding: .75rem;
        }

            .relay-binder .field-box .btn {
                border-radius: 999px;
                padding: .25rem .6rem;
                font-size: .82rem;
            }

        .relay-binder .selected-summary {
            border: 1px dashed var(--relay-border);
            border-radius: 999px;
            padding: .35rem .75rem;
            background: rgba(0,0,0,.02);
            font-size: .9rem;
        }

        .relay-binder .mapping-empty {
            border: 1px dashed var(--relay-border);
            border-radius: 1rem;
            padding: 1rem;
            background: rgba(0,0,0,.02);
        }

        .relay-binder .btn-parse {
            border-radius: 999px;
            font-weight: 700;
        }

        /* Compact mapping experience */
        .relay-binder .mapping-actions {
            margin-top: .25rem;
        }

            .relay-binder .mapping-actions .btn {
                white-space: nowrap;
            }

            .relay-binder .mapping-actions .selected-summary {
                margin-left: auto;
            }

        .relay-binder .binder-help {
            padding: .75rem;
            border-radius: .9rem;
        }

        .relay-binder .binder-step {
            padding: .25rem .25rem;
        }

            .relay-binder .binder-step .num {
                width: 1.6rem;
                height: 1.6rem;
                font-size: .8rem;
            }

        /* Show the 3 steps in one row on large screens (less scrolling) */
        @media (min-width: 992px) {
            .relay-binder .binder-help {
                display: grid;
                grid-template-columns: repeat(3, minmax(0, 1fr));
                gap: .5rem;
            }

            .relay-binder .binder-step + .binder-step {
                margin-top: 0;
            }

            .relay-binder .binder-step {
                border: 1px solid rgba(0,0,0,.04);
                border-radius: .85rem;
                padding: .4rem .5rem;
            }
        }

        .relay-binder .field-box {
            padding: .6rem;
            border-radius: .9rem;
        }

            .relay-binder .field-box .btn {
                margin: 0 .3rem .3rem 0;
            }

        .relay-binder table.table-sm > :not(caption) > * > * {
            padding: .35rem .5rem;
        }

        .relay-binder .btn-outline-danger.btn-sm {
            padding: .15rem .45rem;
        }

        .relay-binder .schema-field {
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
        }
        /* Mapping wizard modal (UI only) */
        .modal-mapping .modal-dialog {
            max-width: 1200px;
        }

        .modal-mapping .modal-header, .modal-mapping .modal-footer {
            background: var(--bs-body-bg);
        }

        .modal-mapping .modal-header {
            position: sticky;
            top: 0;
            z-index: 1060;
            border-bottom: 1px solid rgba(0,0,0,.08);
        }

        .modal-mapping .modal-footer {
            position: sticky;
            bottom: 0;
            z-index: 1050;
            border-top: 1px solid rgba(0,0,0,.08);
        }

        .modal-mapping .nav-tabs .nav-link {
            padding: .5rem .75rem;
            font-size: .92rem;
        }

        .modal-mapping .field-box {
            background: rgba(0,0,0,.02);
        }

        /* Integration Create/Edit sticky header + side menu */
        .relay-sticky-header {
            /*     position: sticky;*/
            top: 48px; /* below navbar */
            z-index: 20;
            background: rgba(250,249,248,.92);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid var(--relay-border);
            padding: .85rem 0;
        }

            .relay-sticky-header.scrolled {
                box-shadow: 0 6px 18px rgba(0,0,0,.06);
            }

        .relay-form-wrapper {
            background: var(--relay-surface);
            border: 1px solid var(--relay-border);
            border-radius: var(--relay-radius);
            box-shadow: var(--relay-shadow);
        }

            .relay-form-wrapper [id^="sec-"] {
                scroll-margin-top: 160px;
            }

        .relay-side {
            position: sticky;
            top: 120px; /* navbar + sticky header spacing */
            max-height: calc(100vh - 140px);
            overflow: auto;
            padding-bottom: .25rem;
        }

            .relay-side::-webkit-scrollbar {
                width: 10px;
            }

            .relay-side::-webkit-scrollbar-thumb {
                background: rgba(0,0,0,.15);
                border-radius: 10px;
            }

        .side-menu-card {
            background: var(--relay-surface);
            border: 1px solid var(--relay-border);
            border-radius: var(--relay-radius);
            box-shadow: var(--relay-shadow);
            overflow: hidden;
        }

        .menu-section-header {
            padding: .75rem 1rem;
            font-size: .75rem;
            font-weight: 800;
            letter-spacing: .06em;
            text-transform: uppercase;
            color: var(--relay-muted);
            background: rgba(0,0,0,.02);
            border-bottom: 1px solid var(--relay-border);
        }

        .relay-menu .list-group-item {
            border: 0;
            border-bottom: 1px solid var(--relay-border);
            padding: .75rem 1rem;
            display: flex;
            align-items: center;
            gap: .55rem;
            color: var(--relay-text);
            font-weight: 600;
            font-size: .92rem;
            background: transparent;
        }

            .relay-menu .list-group-item:last-child {
                border-bottom: 0;
            }

            .relay-menu .list-group-item:hover {
                background: rgba(0,0,0,.02);
                color: var(--relay-text);
            }

            .relay-menu .list-group-item.active {
                background: #e6f2ff;
                color: var(--relay-primary);
                box-shadow: inset 3px 0 0 var(--relay-primary);
            }

        .menu-dot {
            width: 10px;
            height: 10px;
            border-radius: 999px;
            border: 2px solid rgba(0,0,0,.25);
            flex: 0 0 auto;
        }

        .relay-menu .list-group-item.active .menu-dot {
            border-color: var(--relay-primary);
            box-shadow: 0 0 0 3px rgba(0,120,212,.15);
        }

        /* Bottom action bar (Create/Edit) */
        .form-actions-bar {
            position: sticky;
            bottom: 0;
            z-index: 30;
            padding: .9rem 1rem;
            background: rgba(255,255,255,.92);
            backdrop-filter: blur(10px);
            border-top: 1px solid var(--relay-border);
            display: flex;
            justify-content: flex-end;
            gap: .75rem;
            box-shadow: 0 -8px 18px rgba(0,0,0,.06);
        }

        .btn-save {
            background: var(--relay-primary);
            border-color: var(--relay-primary);
            color: #fff;
            font-weight: 800;
            border-radius: 12px;
            padding: .55rem 1rem;
        }

            .btn-save:hover {
                background: var(--relay-primary-dark);
                border-color: var(--relay-primary-dark);
                color: #fff;
            }

        /* Auth pages (Login / Verify / etc.) */
        .relay-shell-auth main.relay-card {
            padding: 1.6rem 1.6rem 1.25rem;
        }

        .relay-shell-auth .security-icon {
            width: 54px;
            height: 54px;
            border-radius: 14px;
            background: #e6f2ff;
            color: var(--relay-primary);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 26px;
            margin: 0 auto 1rem;
            border: 1px solid #c7e0f4;
        }

        .relay-shell-auth .relay-section-title {
            text-align: center;
            margin-bottom: .35rem;
        }

        .relay-shell-auth .relay-muted {
            text-align: center;
        }

        .relay-shell-auth .btn.btn-primary {
            width: 100%;
            border-radius: 12px;
            padding: .75rem 1rem;
            font-weight: 800;
        }

        .tracking-wider {
            letter-spacing: .28em;
            font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        }


        /* Inline help + callouts */
        .help-box {
            background: #f0f6ff;
            border: 1px solid #c7e0f4;
            border-left: 4px solid var(--relay-primary);
            padding: 1rem;
            border-radius: var(--relay-radius-sm);
            color: #004578;
        }

        .diagram-container {
            margin: 1rem 0;
            padding: 1rem;
            background: var(--relay-surface);
            border: 1px dashed var(--relay-border);
            border-radius: var(--relay-radius-sm);
        }

        /* Sections used in forms */
        .relay-section {
            border: 1px solid var(--relay-border);
            border-radius: 1rem;
            overflow: hidden;
            background: var(--relay-surface);
            box-shadow: 0 1px 2px rgba(0,0,0,.04);
        }

            .relay-section .relay-section-header {
                padding: .85rem 1rem;
                border-bottom: 1px solid var(--relay-border);
                background: rgba(0,0,0,.03);
            }

            .relay-section .relay-section-body {
                padding: 1rem;
            }

        .relay-help {
            border: 1px solid var(--relay-border);
            border-radius: 1rem;
            padding: 1rem;
            background: rgba(0,0,0,.02);
        }

        /* Manage settings rows */
        .setting-row {
            padding: 1.25rem 1.5rem;
            border-bottom: 1px solid var(--relay-border);
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }

            .setting-row:last-child {
                border-bottom: none;
            }

        @media (min-width: 768px) {
            .setting-row {
                flex-direction: row;
                align-items: center;
                justify-content: space-between;
            }
        }

        .setting-label {
            font-weight: 700;
            font-size: 1rem;
            color: var(--relay-text);
            min-width: 200px;
        }

        .setting-desc {
            color: var(--relay-muted);
            font-size: .92rem;
            margin-top: 4px;
        }

        .setting-action {
            flex-shrink: 0;
        }

        .status-badge {
            display: inline-flex;
            align-items: center;
            padding: 4px 8px;
            border-radius: 6px;
            font-size: 0.75rem;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            border: 1px solid var(--relay-border);
            background: #fff;
            color: var(--relay-text);
        }

            .status-badge.enabled {
                background: #dff6dd;
                color: var(--relay-success);
                border-color: #c2e7c0;
            }

            .status-badge.disabled {
                background: #f3f2f1;
                color: var(--relay-muted);
            }

        .relay-chip {
            display: inline-flex;
            align-items: center;
            padding: 4px 10px;
            border-radius: 999px;
            font-size: 0.78rem;
            font-weight: 800;
            border: 1px solid var(--relay-border);
            background: #fff;
            color: var(--relay-text);
        }

        .setting-actions-row {
            display: flex;
            flex-wrap: wrap;
            gap: .6rem;
            align-items: center;
            justify-content: flex-end;
        }

        @media (max-width: 767px) {
            .setting-actions-row {
                justify-content: flex-start;
            }
        }

        /* Nav auth links */
        .auth-nav-container,
        .auth-guest-links {
            display: flex;
            align-items: center;
            height: 100%;
            list-style: none;
            margin: 0;
            padding: 0;
        }

        .user-profile-link {
         /*   color: #fff !important;*/
            font-size: 0.85rem;
            font-weight: 600;
            padding: 0 12px;
            height: 48px;
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: background-color 0.2s;
        }

            .user-profile-link:hover {
                background-color: rgba(255, 255, 255, 0.1);
            }

        .logout-link,
        .auth-guest-link {
            color: #d2d2d2 !important;
            font-size: 0.85rem;
            padding: 0 12px;
            height: 48px;
            display: flex;
            align-items: center;
            text-decoration: none;
            transition: color 0.2s, background-color 0.2s;
        }

        .logout-link {
            color: #a19f9d !important;
        }

            .logout-link:hover,
            .auth-guest-link:hover {
                color: #ffffff !important;
                background-color: rgba(255, 255, 255, 0.1);
            }

        .auth-divider {
            width: 1px;
            height: 20px;
            background-color: #484644;
            margin: 0 4px;
        }

        .avatar-circle {
            width: 24px;
            height: 24px;
            background-color: var(--relay-primary);
            color: white;
            border-radius: 50%;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.7rem;
            margin-right: 8px;
            font-weight: 800;
        }

        .auth-btn-register {
            background-color: var(--relay-primary);
            color: #fff !important;
            margin-left: 8px;
            height: 32px !important;
            padding: 0 16px !important;
            border-radius: 10px;
            font-weight: 700;
        }

            .auth-btn-register:hover {
                background-color: var(--relay-primary-dark) !important;
            }

        /* Plan badge in nav */
        .plan-tag-container {
            display: flex;
            align-items: center;
            padding: 0 10px;
            height: 100%;
            border-left: 1px solid rgba(255,255,255,0.1);
            border-right: 1px solid rgba(255,255,255,0.1);
            margin: 0 5px;
        }

        .plan-tag {
            font-size: 0.7rem;
            font-weight: 800;
            text-transform: uppercase;
            padding: 2px 6px;
            border-radius: 8px;
            letter-spacing: 0.03em;
            line-height: 1;
        }

        .tag-default {
            background: #484644;
            color: #fff;
            border: 1px solid #605e5c;
        }

        .tag-active {
            background: var(--relay-primary-dark);
            color: #fff;
            border: 1px solid var(--relay-primary);
        }

        .tag-alert {
            background: var(--relay-orange);
            color: #fff;
            border: 1px solid #faad70;
        }

        .days-left-counter {
            color: #a19f9d;
            font-size: 0.75rem;
            margin-left: 6px;
        }

        .nav-link-plan {
            display: flex !important;
            align-items: center;
            padding: 0 !important;
            height: 100%;
        }

        footer {
            border-top: 1px solid var(--relay-border);
            margin-top: 2.5rem;
            background: #faf9f8;
        }

        /* -------- Consistency fixes across all views (centering + legacy templates) -------- */

        /* Default MVC template pages (ConfirmEmail/ForgotPassword/etc.) are plain markup.
           Give them the same “card” framing as the rest of the app without changing view logic. */
        .relay-shell-xs > main:not([class*="relay"]),
        .relay-shell-sm > main:not([class*="relay"]) {
            background: #fff;
            border: 1px solid var(--relay-border);
            border-radius: 14px;
            box-shadow: var(--relay-shadow);
            padding: 1.75rem;
            margin: 0 auto;
            max-width: 720px;
        }

            .relay-shell-xs > main:not([class*="relay"]) h2,
            .relay-shell-xs > main:not([class*="relay"]) h3,
            .relay-shell-sm > main:not([class*="relay"]) h2,
            .relay-shell-sm > main:not([class*="relay"]) h3 {
                text-align: center;
                margin-bottom: .75rem;
            }

            .relay-shell-xs > main:not([class*="relay"]) p,
            .relay-shell-sm > main:not([class*="relay"]) p {
                color: var(--relay-muted);
                margin-bottom: .85rem;
            }

            .relay-shell-xs > main:not([class*="relay"]) a,
            .relay-shell-sm > main:not([class*="relay"]) a {
                color: var(--relay-primary);
                font-weight: 700;
                text-decoration: none;
            }

                .relay-shell-xs > main:not([class*="relay"]) a:hover,
                .relay-shell-sm > main:not([class*="relay"]) a:hover {
                    text-decoration: underline;
                }

        /* Legacy MVC button class (some Manage views still use it) */
        .btn.btn-default {
            border: 1px solid var(--relay-border);
            background: #fff;
            color: #111;
            font-weight: 800;
            border-radius: 12px;
            padding: .55rem .9rem;
        }

            .btn.btn-default:hover {
                background: rgba(0,0,0,.03);
            }


        /* Normalize some legacy Bootstrap button variants */
        .btn.btn-outline-dark {
            border-color: var(--relay-border);
            color: #111;
            font-weight: 800;
            border-radius: 12px;
        }

            .btn.btn-outline-dark:hover {
                background: rgba(0,0,0,.03);
                color: #111;
            }

        /* Manage/ManageLogins default table */
        .relay-shell-sm > main table.table {
            background: #fff;
            border: 1px solid var(--relay-border);
            border-radius: 14px;
            overflow: hidden;
        }

            .relay-shell-sm > main table.table td,
            .relay-shell-sm > main table.table th {
                padding: .85rem 1rem;
                border-color: var(--relay-border);
                vertical-align: middle;
            }

        /* Auth + invitation pages: always center their primary card even if a view omitted grid helpers */
        .relay-shell-auth .relay-card,
        .relay-shell-xs .relay-card,
        .relay-shell-xs form.card {
            max-width: 760px;
            margin-left: auto;
            margin-right: auto;
        }

        /* Sticky side panel: ensure it stays pinned and doesn’t stretch */
        .relay-side {
            align-self: flex-start;
        }

        /* Smooth anchor jumps when using side menus */
        [id^="sec-"] {
            scroll-margin-top: 120px;
        }

        /* Global loader overlay (used for all save actions) */
        .relay-global-loader {
            position: fixed;
            inset: 0;
            background: rgba(250, 249, 248, 0.65);
            backdrop-filter: blur(2px);
            -webkit-backdrop-filter: blur(2px);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2500;
        }

            .relay-global-loader.is-visible {
                display: flex;
            }

        .relay-global-loader-card {
            background: var(--relay-surface);
            border: 1px solid var(--relay-border);
            border-radius: var(--relay-radius);
            box-shadow: var(--relay-shadow);
            padding: 1rem 1.25rem;
            display: flex;
            align-items: center;
            gap: .75rem;
            min-width: 280px;
            max-width: 520px;
        }

            .relay-global-loader-card .spinner-border {
                width: 1.6rem;
                height: 1.6rem;
            }

        .relay-global-loader-title {
            font-weight: 600;
            margin: 0;
            line-height: 1.15;
        }

        .relay-global-loader-sub {
            margin: 0;
        }
    


        #app-canvas {
            --bg: #0a0a0c;
            --surface: #141417;
            --primary: #3b82f6;
            --text-main: #ffffff;
            --text-muted: #94a3b8;
            --accent: #60a5fa;
            font-family: 'Inter', system-ui, -apple-system, sans-serif;
            background-color: var(--bg);
            color: var(--text-main);
            overflow: hidden;
            height: 50vh;
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            top: 0;
            left: 0;
        }

            #app-canvas div,
            #app-canvas h1,
            #app-canvas p,
            #app-canvas span {
                margin: 0;
                padding: 0;
                box-sizing: border-box;
            }

            #app-canvas .presentation-container {
                width: 100%;
                height: 100%;
                display: flex;
                align-items: center;
                justify-content: center;
                position: relative;
            }

            #app-canvas .slide {
                position: absolute;
                width: 80%;
                max-width: 1000px;
                opacity: 0;
                /* Default hidden state: shifted right and slightly blurred */
                transform: translateX(80px) scale(0.95);
                filter: blur(10px);
                transition: opacity 0.8s ease-in-out, transform 0.8s cubic-bezier(0.2, 1, 0.3, 1), filter 0.8s ease-in-out, visibility 0.8s;
                pointer-events: none;
                text-align: center;
                visibility: hidden;
            }

                #app-canvas .slide.active {
                    opacity: 1;
                    transform: translateX(0) scale(1);
                    filter: blur(0);
                    pointer-events: auto;
                    visibility: visible;
                }

                /* Fade Out State: Slide moves left, fades out, and blurs */
                #app-canvas .slide.exit-left {
                    opacity: 0;
                    transform: translateX(-80px) scale(0.95);
                    filter: blur(10px);
                    visibility: hidden;
                }

                /* Entering from left (when navigating back) */
                #app-canvas .slide.enter-left {
                    opacity: 0;
                    transform: translateX(-80px) scale(0.95);
                    filter: blur(10px);
                    visibility: hidden;
                }

            #app-canvas .slide-header {
                color: var(--primary);
                text-transform: uppercase;
                letter-spacing: 0.2em;
                font-weight: 700;
                font-size: 1rem;
                margin-bottom: 1.5rem;
                display: block;
            }

            #app-canvas .slide-title {
                font-size: clamp(2.5rem, 8vw, 4.5rem);
                line-height: 1.1;
                margin-bottom: 2rem;
                font-weight: 800;
                letter-spacing: -0.03em;
                background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
                -webkit-background-clip: text;
                -webkit-text-fill-color: transparent;
            }

            #app-canvas .slide-body {
                font-size: clamp(1.1rem, 3vw, 1.75rem);
                color: var(--text-muted);
                line-height: 1.6;
                max-width: 800px;
                margin: 0 auto;
            }

            #app-canvas .progress-container {
                position: absolute;
                bottom: 3rem;
                left: 50%;
                transform: translateX(-50%);
                display: flex;
                gap: 12px;
                z-index: 30;
            }

            #app-canvas .dot {
                width: 6px;
                height: 6px;
                border-radius: 50%;
                background: #27272a;
                transition: all 0.4s ease;
                cursor: pointer;
            }

                #app-canvas .dot.active {
                    background: var(--primary);
                    transform: scale(1.6);
                    box-shadow: 0 0 15px var(--primary);
                }

            #app-canvas .click-zone {
                position: absolute;
                top: 0;
                height: 100%;
                width: 20%;
                z-index: 10;
                cursor: pointer;
            }

                #app-canvas .click-zone.left {
                    left: 0;
                }

                #app-canvas .click-zone.right {
                    right: 0;
                }

            #app-canvas .tip-box {
                background: rgba(59, 130, 246, 0.05);
                border-radius: 24px;
                padding: 3rem;
                border: 1px solid rgba(59, 130, 246, 0.15);
                font-style: italic;
                backdrop-filter: blur(10px);
            }

            #app-canvas .timer-bar {
                position: absolute;
                top: 0;
                left: 0;
                height: 3px;
                background: linear-gradient(90deg, transparent, var(--primary));
                width: 0%;
                z-index: 20;
            }
    


        :root {
            --anim-duration: 9s;
            --bs-border-radius-lg: 1rem;
            --bs-primary-rgb: 13, 110, 253;
        }

        .cloudapi-home {
            background-color: var(--bs-body-bg);
            color: var(--bs-body-color);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            line-height: 1.6;
        }

            .cloudapi-home .container {
                max-width: 1100px;
            }

            /* Typography */
            .cloudapi-home h1,
            .cloudapi-home h2,
            .cloudapi-home h3,
            .cloudapi-home h4,
            .cloudapi-home .fw-semibold {
                letter-spacing: -0.02em;
            }

            .cloudapi-home .smaller {
                font-size: 0.75rem;
            }

            /* Component: Cards & UI */
            .cloudapi-home .mapping-card {
                border-radius: var(--bs-border-radius-lg);
                border: 1px solid var(--bs-border-color);
                background: var(--bs-body-bg);
                box-shadow: var(--bs-box-shadow-sm);
            }

            .cloudapi-home .field-list {
                list-style: none;
                padding: 0;
                margin: 0;
            }

            .cloudapi-home .field-row {
                display: flex;
                align-items: center;
                gap: 12px;
                padding: 0.8rem 1rem;
                margin-bottom: 0.6rem;
                background: var(--bs-body-bg);
                border: 1px solid var(--bs-border-color);
                border-radius: 0.75rem;
                position: relative;
                transition: transform 0.2s ease;
            }

            .cloudapi-home .field-key {
                font-family: var(--bs-font-monospace);
                font-size: 0.85rem;
                color: var(--bs-body-color);
            }

            /* Tabs Styling */
            .cloudapi-home .nav-pills .nav-link {
                font-size: 0.8rem;
                font-weight: 600;
                color: var(--bs-secondary-color);
                border: 1px solid transparent;
                padding: 0.5rem 1rem;
            }

                .cloudapi-home .nav-pills .nav-link.active {
                    background-color: var(--bs-primary-bg-subtle);
                    color: var(--bs-primary);
                    border-color: var(--bs-primary-border-subtle);
                }

        /* 1) Auto-Map Animation */
        @keyframes autoGlow {
            0%, 10% {
                border-color: var(--bs-border-color);
                box-shadow: none;
            }

            15%, 40% {
                border-color: #198754;
                box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.15);
            }

            45%, 100% {
                border-color: var(--bs-border-color);
                box-shadow: none;
            }
        }

        .cloudapi-home .row-auto {
            animation: autoGlow var(--anim-duration) infinite;
        }

        @keyframes badgeIn {
            0%, 14% {
                opacity: 0;
                transform: scale(0.8);
            }

            18%, 100% {
                opacity: 1;
                transform: scale(1);
            }
        }

        .cloudapi-home .badge-auto {
            opacity: 0;
            animation: badgeIn var(--anim-duration) infinite;
        }

        @keyframes btnPulse {
            0%, 5% {
                transform: scale(1);
                box-shadow: none;
            }

            10% {
                transform: scale(1.05);
                box-shadow: 0 0 0 8px rgba(13, 110, 253, 0.2);
            }

            15%, 100% {
                transform: scale(1);
                box-shadow: none;
            }
        }

        .cloudapi-home .btn-automap-pulse {
            animation: btnPulse var(--anim-duration) infinite;
        }

        /* 2) Drag & Drop Animation */
        .cloudapi-home .mapdemo-wrapper {
            position: relative;
            min-height: 400px;
            margin-top: 2rem;
        }

        .cloudapi-home .cursor-pointer {
            position: absolute;
            width: 28px;
            height: 28px;
            z-index: 2000;
            pointer-events: none;
            opacity: 0;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='black' stroke='white' stroke-width='1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l7.07 16.97 2.51-7.39 7.39-2.51L3 3z'%3E%3C/path%3E%3C/svg%3E");
            background-size: contain;
            background-repeat: no-repeat;
            animation: cursorFlight var(--anim-duration) infinite;
        }

        .cloudapi-home .drag-ghost {
            position: absolute;
            padding: 6px 14px;
            background: rgba(255, 193, 7, 0.2);
            border: 1px dashed #ffc107;
            color: #856404;
            border-radius: 20px;
            font-family: var(--bs-font-monospace);
            font-size: 0.8rem;
            z-index: 1999;
            opacity: 0;
            pointer-events: none;
            animation: ghostFlight var(--anim-duration) infinite;
        }

        @keyframes cursorFlight {
            0%, 45% {
                opacity: 0;
                top: 10%;
                left: 50%;
                transform: none;
            }

            50% {
                opacity: 1;
                top: 175px;
                left: 10%;
                transform: none;
            }

            55% {
                opacity: 1;
                top: 175px;
                left: 10%;
                transform: scale(0.9);
            }

            65% {
                opacity: 1;
                top: 175px;
                left: 70%;
                transform: scale(0.9);
            }

            70% {
                opacity: 1;
                top: 175px;
                left: 70%;
                transform: scale(1);
            }

            75%, 100% {
                opacity: 0;
                top: 175px;
                left: 70%;
                transform: scale(1);
            }
        }

        @keyframes ghostFlight {
            0%, 54% {
                opacity: 0;
                top: 175px;
                left: 10%;
            }

            55% {
                opacity: 1;
                top: 175px;
                left: 10%;
            }

            65% {
                opacity: 1;
                top: 175px;
                left: 70%;
            }

            66%, 100% {
                opacity: 0;
                top: 175px;
                left: 70%;
            }
        }

        /* 3) Result State */
        @keyframes fadeOutMismatch {
            0%, 65% {
                opacity: 1;
                transform: scale(1);
                visibility: visible;
            }

            68%, 100% {
                opacity: 0;
                transform: scale(0.5);
                visibility: hidden;
            }
        }

        .cloudapi-home .badge-mismatch {
            animation: fadeOutMismatch var(--anim-duration) infinite;
        }

        @keyframes fadeInMapped {
            0%, 70% {
                opacity: 0;
                transform: translateY(5px);
            }

            75%, 100% {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .cloudapi-home .badge-mapped-result {
            opacity: 0;
            animation: fadeInMapped var(--anim-duration) infinite;
        }

        @keyframes targetHighlight {
            0%, 64% {
                border-color: var(--bs-border-color);
                background: var(--bs-body-bg);
            }

            66%, 85% {
                border-color: var(--bs-primary);
                background: rgba(13, 110, 253, 0.05);
            }

            90%, 100% {
                border-color: var(--bs-border-color);
                background: var(--bs-body-bg);
            }
        }

        .cloudapi-home .row-target-active {
            animation: targetHighlight var(--anim-duration) infinite;
        }

        /* Mapping Result Block */
        .cloudapi-home .result-code-block {
            font-family: var(--bs-font-monospace);
            font-size: 0.85rem;
            background: var(--bs-tertiary-bg);
            border-radius: 0.75rem;
            padding: 1.5rem;
            border: 1px solid var(--bs-border-color);
            min-height: 160px;
            overflow: hidden;
        }

        @keyframes resultLineIn {
            0%, 75% {
                opacity: 0;
                height: 0;
                transform: translateX(-10px);
            }

            80%, 100% {
                opacity: 1;
                height: auto;
                transform: translateX(0);
            }
        }

        .cloudapi-home .result-mapped-line {
            opacity: 0;
            height: 0;
            overflow: hidden;
            animation: resultLineIn var(--anim-duration) infinite;
        }

        /* URL/Query String Specific Styling */
        .cloudapi-home .url-result {
            word-break: break-all;
            color: var(--bs-secondary-color);
        }

        .cloudapi-home .url-param-key {
            color: var(--bs-primary);
            font-weight: 600;
        }

        .cloudapi-home .url-param-val {
            color: var(--bs-success);
        }

        /* Feature Pillars */
        .cloudapi-home .pillar-card {
            border: 1px solid var(--bs-border-color);
            border-radius: var(--bs-border-radius-lg);
            padding: 2rem;
            height: 100%;
            background: var(--bs-body-bg);
            transition: transform 0.2s;
        }

            .cloudapi-home .pillar-card:hover {
                transform: translateY(-3px);
            }

        /* Description Styling */
        .cloudapi-home .example-desc {
            max-width: 800px;
            margin: 0 auto 2rem;
            padding: 1.25rem;
            background: var(--bs-body-bg);
            border-left: 4px solid var(--bs-primary);
            border-radius: 0.5rem;
            box-shadow: var(--bs-box-shadow-sm);
        }

        /* Instruction Carousel */
        .cloudapi-home .instruction-box {
            font-size: 0.85rem;
            color: var(--bs-secondary-color);
            min-height: 3rem;
        }

        .cloudapi-home .step-label {
            opacity: 0;
            position: absolute;
            width: 100%;
            left: 0;
        }

        @keyframes step1Fade {
            0%, 40% {
                opacity: 1;
            }

            45%, 100% {
                opacity: 0;
            }
        }

        @keyframes step2Fade {
            0%, 45% {
                opacity: 0;
            }

            50%, 65% {
                opacity: 1;
            }

            70%, 100% {
                opacity: 0;
            }
        }

        @keyframes step3Fade {
            0%, 70% {
                opacity: 0;
            }

            75%, 100% {
                opacity: 1;
            }
        }

        .cloudapi-home .step-1 {
            animation: step1Fade var(--anim-duration) infinite;
        }

        .cloudapi-home .step-2 {
            animation: step2Fade var(--anim-duration) infinite;
        }

        .cloudapi-home .step-3 {
            animation: step3Fade var(--anim-duration) infinite;
        }

        /* Section Spacing */
        .cloudapi-home section {
            padding: 6rem 0;
        }

        .cloudapi-home .border-bottom {
            border-bottom: 1px solid var(--bs-border-color) !important;
        }

        /* Make the top panel (navbar/header) white */
        .navbar,
        header .navbar,
        header.navbar {
            background: #fff !important;
            border-bottom: 1px solid rgba(0,0,0,.08) !important;
        }

            /* Ensure text stays readable on white */
            .navbar .navbar-brand,
            .navbar .nav-link,
            .navbar .navbar-toggler {
                color: #212529 !important;
            }

            /* Bootstrap sets a white toggler icon for .navbar-dark.
               Since we force the navbar background to white, explicitly use the dark icon so it's visible on mobile. */
            .navbar .navbar-toggler {
                border-color: rgba(0,0,0,.2) !important;
            }

            .navbar .navbar-toggler-icon {
                --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
                background-image: var(--bs-navbar-toggler-icon-bg);
            }


            .navbar .nav-link:hover,
            .navbar .nav-link:focus {
                color: #0d6efd !important;
            }

        /* If you use a dark-mode attribute, keep the panel white there too */
        html[data-bs-theme="dark"] .navbar,
        html[data-bs-theme="dark"] header .navbar,
        html[data-bs-theme="dark"] header.navbar {
            background: #fff !important;
        }

    
/* ===== Centralized dark application theme ===== */
body.relay-theme-dark {
    --relay-bg: #020617;
    --relay-bg-elevated: #0b1220;
    --relay-surface: #0f172a;
    --relay-surface-2: #111c30;
    --relay-surface-3: #17243b;
    --relay-border: rgba(148, 163, 184, 0.18);
    --relay-text: #e5eefc;
    --relay-text-strong: #f8fbff;
    --relay-muted: #94a3b8;
    --relay-primary: #3b82f6;
    --relay-primary-dark: #2563eb;
    --relay-success: #22c55e;
    --relay-warning: #f59e0b;
    --relay-danger: #ef4444;
    --relay-orange: #fb923c;
    --relay-shadow: 0 18px 48px rgba(2, 6, 23, 0.34);
    --az-blue: var(--relay-primary);
    --az-border: var(--relay-border);
    --bs-body-bg: var(--relay-bg);
    --bs-body-color: var(--relay-text);
    --bs-secondary-color: var(--relay-muted);
    --bs-border-color: var(--relay-border);
    --bs-tertiary-bg: var(--relay-surface);
    --bs-secondary-bg: var(--relay-surface-2);
    --bs-light-rgb: 15, 23, 42;
    --bs-dark-rgb: 229, 238, 252;
    background:
        radial-gradient(1200px 420px at 15% -10%, rgba(59, 130, 246, 0.18), transparent 55%),
        radial-gradient(950px 360px at 100% 0%, rgba(37, 99, 235, 0.14), transparent 52%),
        linear-gradient(180deg, #020617 0%, #06101f 48%, #091427 100%);
    color: var(--relay-text);
}

body.relay-theme-dark a {
    color: #8ec5ff;
}

body.relay-theme-dark a:hover {
    color: #b9dcff;
}

body.relay-theme-dark .text-muted,
body.relay-theme-dark .relay-muted,
body.relay-theme-dark .small.text-muted,
body.relay-theme-dark .form-text,
body.relay-theme-dark .text-body-secondary {
    color: var(--relay-muted) !important;
}

body.relay-theme-dark .text-dark,
body.relay-theme-dark .text-black,
body.relay-theme-dark .text-success-emphasis,
body.relay-theme-dark .text-primary-emphasis,
body.relay-theme-dark .text-body,
body.relay-theme-dark .text-body-emphasis,
body.relay-theme-dark .fw-semibold.text-dark,
body.relay-theme-dark .fw-bold.text-dark,
body.relay-theme-dark strong.text-dark {
    color: var(--relay-text) !important;
}

body.relay-theme-dark .body-content {
    min-height: calc(100vh - 110px);
}

body.relay-theme-dark .relay-shell,
body.relay-theme-dark .relay-shell-auth,
body.relay-theme-dark .container-fluid,
body.relay-theme-dark .container {
    color: var(--relay-text);
}

body.relay-theme-dark .navbar-azure,
body.relay-theme-dark .navbar,
body.relay-theme-dark header .navbar,
body.relay-theme-dark header.navbar,
body.relay-theme-dark html[data-bs-theme="dark"] .navbar {
    background: rgba(2, 6, 23, 0.88) !important;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(148, 163, 184, 0.16) !important;
    box-shadow: 0 10px 32px rgba(2, 6, 23, 0.3);
}

body.relay-theme-dark .navbar-brand,
body.relay-theme-dark .navbar .navbar-brand,
body.relay-theme-dark .navbar .nav-link,
body.relay-theme-dark .navbar .navbar-toggler,
body.relay-theme-dark .nav-link,
body.relay-theme-dark .user-profile-link,
body.relay-theme-dark .logout-link,
body.relay-theme-dark .auth-guest-link {
    color: #dbeafe !important;
}

body.relay-theme-dark .navbar .nav-link:hover,
body.relay-theme-dark .navbar .nav-link:focus,
body.relay-theme-dark .nav-link:hover,
body.relay-theme-dark .nav-link:focus,
body.relay-theme-dark .user-profile-link:hover,
body.relay-theme-dark .logout-link:hover,
body.relay-theme-dark .auth-guest-link:hover {
    color: #ffffff !important;
    background: rgba(59, 130, 246, 0.14) !important;
}

body.relay-theme-dark .navbar .navbar-toggler {
    border-color: rgba(148, 163, 184, 0.25);
}

body.relay-theme-dark .navbar .navbar-toggler-icon {
    filter: invert(1) brightness(200%);
}

body.relay-theme-dark .avatar-circle {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.12);
}

body.relay-theme-dark .auth-divider,
body.relay-theme-dark .plan-tag-container {
    border-color: rgba(148, 163, 184, 0.14) !important;
}

body.relay-theme-dark .auth-btn-register,
body.relay-theme-dark .btn-primary,
body.relay-theme-dark .btn-save {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-color: rgba(59, 130, 246, 0.75);
    color: #ffffff !important;
    box-shadow: 0 10px 26px rgba(37, 99, 235, 0.2);
}

body.relay-theme-dark .auth-btn-register:hover,
body.relay-theme-dark .btn-primary:hover,
body.relay-theme-dark .btn-save:hover {
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    border-color: rgba(96, 165, 250, 0.8);
    color: #ffffff !important;
}

body.relay-theme-dark .btn-light,
body.relay-theme-dark .btn-outline-secondary,
body.relay-theme-dark .btn-outline-dark,
body.relay-theme-dark .btn-default,
body.relay-theme-dark .btn.btn-default {
    background: rgba(15, 23, 42, 0.7);
    border-color: var(--relay-border);
    color: var(--relay-text) !important;
}

body.relay-theme-dark .btn-light:hover,
body.relay-theme-dark .btn-outline-secondary:hover,
body.relay-theme-dark .btn-outline-dark:hover,
body.relay-theme-dark .btn-default:hover,
body.relay-theme-dark .btn.btn-default:hover {
    background: rgba(30, 41, 59, 0.92);
    border-color: rgba(96, 165, 250, 0.45);
    color: #ffffff !important;
}

body.relay-theme-dark .btn-outline-primary {
    background: rgba(59, 130, 246, 0.08);
    border-color: rgba(59, 130, 246, 0.34);
    color: #93c5fd !important;
}

body.relay-theme-dark .btn-outline-primary:hover {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(59, 130, 246, 0.56);
    color: #dbeafe !important;
}

body.relay-theme-dark .card,
body.relay-theme-dark .relay-card,
body.relay-theme-dark .card.relay-card,
body.relay-theme-dark .relay-form-wrapper,
body.relay-theme-dark .relay-section,
body.relay-theme-dark .controls-bar,
body.relay-theme-dark .table-container,
body.relay-theme-dark .side-menu-card,
body.relay-theme-dark .kpi-card,
body.relay-theme-dark .relay-help,
body.relay-theme-dark .help-box,
body.relay-theme-dark .security-notice,
body.relay-theme-dark .relay-global-loader-card,
body.relay-theme-dark .relay-auth-card,
body.relay-theme-dark .relay-shell-xs > main:not([class*="relay"]),
body.relay-theme-dark .relay-shell-sm > main:not([class*="relay"]),
body.relay-theme-dark .relay-shell-sm > main table.table {
    background: rgba(15, 23, 42, 0.92) !important;
    border: 1px solid var(--relay-border) !important;
    box-shadow: var(--relay-shadow) !important;
    color: var(--relay-text);
}

body.relay-theme-dark .card-header,
body.relay-theme-dark .relay-card-header,
body.relay-theme-dark .menu-section-header,
body.relay-theme-dark .relay-section .relay-section-header,
body.relay-theme-dark .devportal-card-header,
body.relay-theme-dark .api-tester-card-header,
body.relay-theme-dark .accordion-button:not(.collapsed) {
    background: linear-gradient(180deg, rgba(37, 99, 235, 0.1), rgba(15, 23, 42, 0.92)) !important;
    border-bottom-color: var(--relay-border) !important;
    color: var(--relay-text) !important;
}

body.relay-theme-dark .relay-title,
body.relay-theme-dark .relay-section-title,
body.relay-theme-dark h1,
body.relay-theme-dark h2,
body.relay-theme-dark h3,
body.relay-theme-dark h4,
body.relay-theme-dark h5,
body.relay-theme-dark h6,
body.relay-theme-dark .card-title,
body.relay-theme-dark .setting-label,
body.relay-theme-dark .kpi-value,
body.relay-theme-dark .price {
    color: var(--relay-text-strong) !important;
}

body.relay-theme-dark .relay-section-title {
    border-bottom-color: var(--relay-border);
}

body.relay-theme-dark .kpi-card,
body.relay-theme-dark .relay-pill,
body.relay-theme-dark .relay-chip,
body.relay-theme-dark .selected-summary,
body.relay-theme-dark .api-tester-pill {
    background: rgba(30, 41, 59, 0.72) !important;
    border-color: var(--relay-border) !important;
    color: var(--relay-text) !important;
}

body.relay-theme-dark .table,
body.relay-theme-dark .relay-table {
    color: var(--relay-text);
}

body.relay-theme-dark .relay-table thead th,
body.relay-theme-dark .table thead th,
body.relay-theme-dark .table-light > :not(caption) > * > *,
body.relay-theme-dark .table-light,
body.relay-theme-dark thead.table-light {
    background: rgba(30, 41, 59, 0.95) !important;
    color: #cbd5e1 !important;
    border-color: var(--relay-border) !important;
}

body.relay-theme-dark .relay-table tbody td,
body.relay-theme-dark .table > :not(caption) > * > * {
    border-color: rgba(148, 163, 184, 0.1) !important;
}

body.relay-theme-dark .relay-table tbody tr:hover,
body.relay-theme-dark .table-hover > tbody > tr:hover > * {
    background: rgba(30, 41, 59, 0.62) !important;
    color: var(--relay-text) !important;
}

body.relay-theme-dark .bg-white,
body.relay-theme-dark .bg-light,
body.relay-theme-dark .bg-light-subtle,
body.relay-theme-dark .text-bg-light,
body.relay-theme-dark .badge.text-bg-light,
body.relay-theme-dark .alert-secondary,
body.relay-theme-dark .accordion-item,
body.relay-theme-dark .list-group-item,
body.relay-theme-dark .modal-content,
body.relay-theme-dark .modal-header,
body.relay-theme-dark .modal-footer,
body.relay-theme-dark .dropdown-menu,
body.relay-theme-dark .input-group-text,
body.relay-theme-dark .form-check-input,
body.relay-theme-dark .breadcrumb,
body.relay-theme-dark .border,
body.relay-theme-dark .border-top,
body.relay-theme-dark .border-bottom,
body.relay-theme-dark .border-start,
body.relay-theme-dark .border-end {
    background-color: rgba(15, 23, 42, 0.92) !important;
    color: var(--relay-text) !important;
    border-color: var(--relay-border) !important;
}

body.relay-theme-dark .dropdown-item {
    color: var(--relay-text);
}

body.relay-theme-dark .dropdown-item:hover,
body.relay-theme-dark .dropdown-item:focus,
body.relay-theme-dark .dropdown-item.active {
    background: rgba(59, 130, 246, 0.14) !important;
    color: #ffffff !important;
}

body.relay-theme-dark .form-control,
body.relay-theme-dark .form-select,
body.relay-theme-dark textarea,
body.relay-theme-dark input,
body.relay-theme-dark select {
    background-color: rgba(15, 23, 42, 0.84);
    color: var(--relay-text);
    border-color: rgba(148, 163, 184, 0.22);
}

body.relay-theme-dark .form-control::placeholder,
body.relay-theme-dark textarea::placeholder,
body.relay-theme-dark input::placeholder {
    color: rgba(148, 163, 184, 0.7);
}

body.relay-theme-dark .form-control:focus,
body.relay-theme-dark .form-select:focus,
body.relay-theme-dark textarea:focus,
body.relay-theme-dark input:focus,
body.relay-theme-dark select:focus {
    background-color: rgba(15, 23, 42, 0.98);
    color: #ffffff;
    border-color: rgba(59, 130, 246, 0.62);
    box-shadow: 0 0 0 0.25rem rgba(59, 130, 246, 0.16);
}

body.relay-theme-dark .form-select option {
    background: #0f172a;
    color: var(--relay-text);
}

body.relay-theme-dark pre,
body.relay-theme-dark code,
body.relay-theme-dark .code-snippet,
body.relay-theme-dark .result-block,
body.relay-theme-dark .audit-jsonbox,
body.relay-theme-dark .api-tester-response,
body.relay-theme-dark .devportal-code,
body.relay-theme-dark .devportal-hero-code,
body.relay-theme-dark .badge-key {
    background: #0b1220 !important;
    border-color: rgba(148, 163, 184, 0.18) !important;
    color: #dbeafe !important;
}

body.relay-theme-dark .alert {
    border-color: var(--relay-border);
    box-shadow: none;
}

body.relay-theme-dark .alert-success,
body.relay-theme-dark .badge-active,
body.relay-theme-dark .status-badge.enabled {
    background: rgba(34, 197, 94, 0.14) !important;
    color: #86efac !important;
    border-color: rgba(34, 197, 94, 0.28) !important;
}

body.relay-theme-dark .alert-warning,
body.relay-theme-dark .status-badge.warning,
body.relay-theme-dark .dir-outgoing .dir-dot {
    background: rgba(245, 158, 11, 0.14) !important;
    color: #fde68a !important;
    border-color: rgba(245, 158, 11, 0.3) !important;
}

body.relay-theme-dark .alert-danger,
body.relay-theme-dark .status-badge.danger,
body.relay-theme-dark .status-badge.red {
    background: rgba(239, 68, 68, 0.14) !important;
    color: #fecaca !important;
    border-color: rgba(239, 68, 68, 0.3) !important;
}

body.relay-theme-dark .alert-info,
body.relay-theme-dark .help-box,
body.relay-theme-dark .security-notice,
body.relay-theme-dark .alert-custom,
body.relay-theme-dark .bg-primary.bg-opacity-10 {
    background: rgba(59, 130, 246, 0.12) !important;
    color: #dbeafe !important;
    border-color: rgba(59, 130, 246, 0.28) !important;
}

body.relay-theme-dark .badge-inactive,
body.relay-theme-dark .status-badge.disabled,
body.relay-theme-dark .tag-default {
    background: rgba(30, 41, 59, 0.76) !important;
    color: var(--relay-muted) !important;
    border-color: var(--relay-border) !important;
}

body.relay-theme-dark .badge-method,
body.relay-theme-dark .badge-prop,
body.relay-theme-dark .dir-indicator,
body.relay-theme-dark .status-badge,
body.relay-theme-dark .relay-kicker {
    background: rgba(30, 41, 59, 0.82) !important;
    border-color: var(--relay-border) !important;
    color: var(--relay-text) !important;
}

body.relay-theme-dark .dir-incoming,
body.relay-theme-dark .dir-incoming .dir-dot,
body.relay-theme-dark .text-primary,
body.relay-theme-dark .nav-link-admin,
body.relay-theme-dark .copy-btn:hover,
body.relay-theme-dark .relay-tab.active,
body.relay-theme-dark .lang-btn:hover,
body.relay-theme-dark .step-item.active .step-label {
    color: #93c5fd !important;
}

body.relay-theme-dark .dir-incoming .dir-dot,
body.relay-theme-dark .step-item.active,
body.relay-theme-dark .relay-tab.active {
    background: #3b82f6 !important;
    border-color: #60a5fa !important;
}

body.relay-theme-dark .copy-btn,
body.relay-theme-dark .days-left-counter,
body.relay-theme-dark .auth-divider,
body.relay-theme-dark .tag-default {
    color: var(--relay-muted) !important;
}

body.relay-theme-dark .relay-tab,
body.relay-theme-dark .nav-pills .nav-link,
body.relay-theme-dark .api-tester-tabs .nav-link {
    color: var(--relay-muted) !important;
}

body.relay-theme-dark .nav-pills .nav-link.active,
body.relay-theme-dark .api-tester-tabs .nav-link.active,
body.relay-theme-dark .accordion-button:not(.collapsed) {
    background: rgba(59, 130, 246, 0.14) !important;
    color: #dbeafe !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

body.relay-theme-dark .list-group-item.active,
body.relay-theme-dark .relay-menu .list-group-item.active {
    background: rgba(59, 130, 246, 0.16) !important;
    box-shadow: inset 3px 0 0 #3b82f6;
    color: #e0efff !important;
}

body.relay-theme-dark .feature-img,
body.relay-theme-dark img.feature-img {
    border-color: rgba(148, 163, 184, 0.12);
    background-color: rgba(15, 23, 42, 0.92);
}

body.relay-theme-dark .api-tester-card,
body.relay-theme-dark .devportal-card,
body.relay-theme-dark .devportal-meta-item,
body.relay-theme-dark .mapping-card,
body.relay-theme-dark .field-row,
body.relay-theme-dark .field-box,
body.relay-theme-dark .mapping-empty,
body.relay-theme-dark .modal-mapping .field-box,
body.relay-theme-dark .kpi-item,
body.relay-theme-dark .pillar-card,
body.relay-theme-dark .feature-card,
body.relay-theme-dark .problem-card,
body.relay-theme-dark .ui-card,
body.relay-theme-dark .workflow-step,
body.relay-theme-dark .pricing-card,
body.relay-theme-dark .faq-card,
body.relay-theme-dark .support-card {
    background: rgba(15, 23, 42, 0.9) !important;
    border: 1px solid var(--relay-border) !important;
    box-shadow: var(--relay-shadow) !important;
    color: var(--relay-text) !important;
}

body.relay-theme-dark .field-row,
body.relay-theme-dark .field-box,
body.relay-theme-dark .mapping-empty,
body.relay-theme-dark .kpi-item {
    background: rgba(17, 28, 48, 0.9) !important;
}

body.relay-theme-dark .alert-dismissible .btn-close,
body.relay-theme-dark .modal-header .btn-close,
body.relay-theme-dark .modal-footer .btn-close,
body.relay-theme-dark .btn-close {
    filter: invert(1) grayscale(100%) brightness(210%);
    opacity: .82;
}

body.relay-theme-dark footer {
    background: rgba(2, 6, 23, 0.88);
    border-top-color: rgba(148, 163, 184, 0.14);
}

body.relay-theme-dark .relay-global-loader {
    background: rgba(2, 6, 23, 0.72);
}

body.relay-theme-dark .workspace-switcher-form .form-select,
body.relay-theme-dark .workspace-switcher-form .form-select-sm {
    min-width: 180px;
}

body.relay-theme-dark.Status-Index .relay-card,
body.relay-theme-dark.Status-Index .relay-card-body,
body.relay-theme-dark .status-badge.warning,
body.relay-theme-dark .status-badge.danger {
    color: var(--relay-text);
}

body.relay-theme-dark.Manage-Index .relay-card,
body.relay-theme-dark.Manage-Index .setting-row,
body.relay-theme-dark.Manage-Index .relay-chip {
    background: rgba(15, 23, 42, 0.92) !important;
    border-color: var(--relay-border) !important;
    color: var(--relay-text) !important;
}

body.relay-theme-dark.ApiTester-Index .api-tester-response,
body.relay-theme-dark.ApiTester-Index #respPreview,
body.relay-theme-dark.ApiTester-Index pre,
body.relay-theme-dark.ApiTester-Index .modal-content {
    background: #0b1220 !important;
    color: #dbeafe !important;
}

body.relay-theme-dark.DeveloperPortal-Index .devportal-hero {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(15, 23, 42, 0.96)) !important;
    border-color: rgba(59, 130, 246, 0.2) !important;
}

body.relay-theme-dark.DeveloperPortal-Index .devportal-subtle,
body.relay-theme-dark.DeveloperPortal-Index .devportal-meta-label {
    color: var(--relay-muted) !important;
}

body.relay-theme-dark.Integrations-TryIt .result-block,
body.relay-theme-dark.Integrations-TryIt .badge-key,
body.relay-theme-dark.Integrations-TryIt .kpi-item {
    background: rgba(11, 18, 32, 0.98) !important;
    color: #dbeafe !important;
}

body.relay-theme-dark.Home-Documentation .position-sticky,
body.relay-theme-dark.Home-Pricing .position-sticky {
    top: 86px;
}

body.relay-theme-dark .setting-row[style*="#fafbfc"] {
    background-color: rgba(15, 23, 42, 0.96) !important;
}

body.relay-theme-dark .setting-row[style*="#fff5f5"] {
    background-color: rgba(127, 29, 29, 0.24) !important;
}

body.relay-theme-dark .relay-card[style*="#fcfcfc"] {
    background-color: rgba(15, 23, 42, 0.94) !important;
}

body.relay-theme-dark .relay-card > .p-3.border-top {
    background-color: rgba(15, 23, 42, 0.92) !important;
}

        /* ---------------------------------------------------------------------
           Consolidated typography, compact headers, and shared page utilities
           --------------------------------------------------------------------- */
        :root {
            --relay-font-sans: "Segoe UI Variable", "Segoe UI", -apple-system, BlinkMacSystemFont, "Inter", Roboto, Arial, sans-serif;
            --relay-font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
        }

        body,
        button,
        input,
        optgroup,
        select,
        textarea {
            font-family: var(--relay-font-sans);
        }

        code,
        pre,
        .font-monospace,
        .code-snippet,
        .badge-prop,
        .audit-json-k,
        .audit-json-v,
        .audit-diff-val,
        .api-tester-mono {
            font-family: var(--relay-font-mono) !important;
        }

        h1,
        h2,
        h3,
        h4,
        h5,
        h6,
        .h1,
        .h2,
        .h3,
        .h4,
        .h5,
        .h6 {
            color: var(--relay-text);
            letter-spacing: -0.02em;
        }

        .text-muted,
        .form-text,
        .small.text-muted {
            color: var(--relay-muted) !important;
        }

        .table-light,
        .table > :not(caption) > * > .table-light {
            --bs-table-bg: rgba(0, 0, 0, 0.025);
            --bs-table-color: var(--relay-text);
            --bs-table-border-color: var(--relay-border);
        }

        .relay-header-compact {
            margin-bottom: 1rem;
        }

        .relay-header-compact .relay-breadcrumb {
            margin-bottom: 0.4rem;
        }

        .relay-header-compact .relay-title {
            font-size: 1.65rem;
            font-weight: 600;
            color: var(--relay-text);
        }

        .relay-header-compact .relay-desc {
            margin-top: 0.35rem;
            max-width: 78ch;
            font-size: 0.95rem;
        }

        .relay-copy-limit {
            max-width: 520px;
        }

        .relay-tone-subtle {
            background: linear-gradient(180deg, rgba(0, 120, 212, 0.04), rgba(0, 120, 212, 0.015));
        }

        .relay-tone-danger {
            background: linear-gradient(180deg, rgba(209, 52, 56, 0.08), rgba(209, 52, 56, 0.03));
        }

        .relay-mini-heading {
            font-size: 0.75rem;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            font-weight: 700;
            color: var(--relay-muted);
        }

        /* Manage account */
        .status-badge.red {
            background-color: rgba(209, 52, 56, 0.08);
            color: var(--relay-danger);
            border: 1px solid rgba(209, 52, 56, 0.16);
        }

        /* Status */
        .pulse-dot {
            display: inline-block;
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: var(--relay-success);
            box-shadow: 0 0 0 0 rgba(16, 124, 16, 0.7);
            animation: pulse-green 2s infinite;
            margin-right: 6px;
        }

        @keyframes pulse-green {
            0% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(16, 124, 16, 0.7);
            }

            70% {
                transform: scale(1);
                box-shadow: 0 0 0 6px rgba(16, 124, 16, 0);
            }

            100% {
                transform: scale(0.95);
                box-shadow: 0 0 0 0 rgba(16, 124, 16, 0);
            }
        }

        .status-panel-icon {
            color: var(--relay-primary);
        }

        .status-panel-footer {
            padding: 0.95rem 1rem;
            border-top: 1px solid var(--relay-border);
            background: rgba(0, 0, 0, 0.018);
            border-bottom-left-radius: var(--relay-radius);
            border-bottom-right-radius: var(--relay-radius);
        }

        .status-footer-link {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--relay-primary);
            text-decoration: none;
        }

        .status-footer-link:hover {
            color: var(--relay-primary-dark);
            text-decoration: underline;
        }

        /* Audit logs */
        .audit-table {
            min-width: 1100px;
        }

        .audit-table-wrap {
            overflow-x: auto !important;
            -webkit-overflow-scrolling: touch;
        }

        .audit-jsonbox {
            max-height: 55vh;
            overflow: auto;
            background: #fff;
            border: 1px solid rgba(0, 0, 0, 0.1);
            border-radius: .75rem;
            padding: .75rem;
        }

        .audit-json-tree details {
            margin-left: .75rem;
        }

        .audit-json-tree summary {
            cursor: pointer;
        }

        .audit-json-k,
        .audit-json-v {
            font-size: .85rem;
        }

        .audit-diff-table td,
        .audit-diff-table th {
            vertical-align: top;
        }

        .audit-diff-cell {
            max-width: 420px;
        }

        .audit-diff-val {
            white-space: pre-wrap;
            word-break: break-word;
            font-size: .8rem;
        }

        /* API tester */
        .api-tester-page {
            padding-top: 1rem;
        }

        .api-tester-shell {
            display: flex;
            gap: 1rem;
        }

        .api-tester-left {
            width: 320px;
            max-width: 35vw;
        }

        .api-tester-main {
            flex: 1;
            min-width: 0;
        }

        .api-tester-card {
            border: 1px solid var(--relay-border);
            border-radius: 14px;
            box-shadow: var(--relay-shadow);
            overflow: hidden;
            background: var(--relay-surface);
        }

        .api-tester-card-header {
            background: linear-gradient(180deg, rgba(0, 120, 212, 0.08), rgba(0, 120, 212, 0.03));
            padding: .85rem 1rem;
            border-bottom: 1px solid var(--relay-border);
        }

        .api-tester-card-body {
            padding: 1rem;
        }

        .api-tester-history-list {
            max-height: 55vh;
            overflow-y: auto;
            padding-right: 4px;
        }

        .api-tester-history-list::-webkit-scrollbar {
            width: 8px;
        }

        .api-tester-history-list::-webkit-scrollbar-thumb {
            background: rgba(0, 0, 0, .18);
            border-radius: 99px;
        }

        .api-tester-grid {
            display: grid;
            grid-template-columns: 130px 1fr auto;
            gap: .5rem;
            align-items: center;
        }

        .api-tester-tabs .nav-link {
            border-radius: 999px;
            padding: .35rem .85rem;
        }

        .api-tester-table th,
        .api-tester-table td {
            vertical-align: middle;
        }

        .api-tester-table input {
            width: 100%;
        }

        .api-tester-kv-actions {
            width: 44px;
        }

        .api-tester-response {
            max-height: 55vh;
            overflow: auto;
            background: #0b1220;
            color: #e7f1ff;
            border-radius: 12px;
            padding: 12px;
        }

        .api-tester-response code,
        .api-tester-response pre {
            color: inherit;
        }

        .api-tester-small {
            font-size: .875rem;
        }

        .api-tester-pill {
            border: 1px solid var(--relay-border);
            border-radius: 999px;
            padding: .25rem .6rem;
            background: #fff;
        }

        .api-tester-disabled {
            opacity: .6;
            pointer-events: none;
        }

        .api-tester-split {
            display: grid;
            grid-template-rows: auto auto;
            gap: 1rem;
        }

        /* Try it */
        .card-title,
        .card-subtitle {
            color: var(--relay-text);
        }

        .card-subtitle {
            font-size: 0.92rem;
            color: var(--relay-muted);
            margin-bottom: 1rem;
        }

        .result-block {
            background: #0b1220;
            color: #e7f1ff;
            padding: 1rem;
            border-radius: 8px;
            overflow: auto;
            white-space: pre-wrap;
            word-break: break-all;
            border: 1px solid rgba(255, 255, 255, 0.1);
        }

        .result-block-sm { max-height: 120px; }
        .result-block-md { max-height: 220px; }
        .result-block-lg { max-height: 450px; }
        .result-block-muted { background: #f4f7fb; color: #475569; border-color: var(--relay-border); }

        .kpi-row {
            display: flex;
            gap: 1rem;
            margin-bottom: 1.5rem;
        }

        .kpi-item {
            flex: 1;
            padding: 1rem;
            background: #f7f9fc;
            border-radius: 10px;
            border: 1px solid var(--relay-border);
        }

        .kpi-item label {
            display: block;
            font-size: 0.75rem;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: var(--relay-muted);
            margin-bottom: 0.25rem;
            font-weight: 600;
        }

        .kpi-item span {
            font-size: 1.25rem;
            font-weight: 700;
        }

        .status-badge-success { color: var(--relay-success); }
        .status-badge-error { color: var(--relay-danger); }
        .tryit-body-input { min-height: 250px; }
        .tryit-result-card { background: linear-gradient(180deg, rgba(0, 0, 0, 0.012), rgba(0, 0, 0, 0.02)); }
        .tryit-empty-icon { font-size: 3.5rem; line-height: 1; }
        .tryit-inline-endpoint {
            background: rgba(0, 0, 0, 0.02);
            padding: 0.65rem 0.75rem;
            border-radius: 0.75rem;
            border: 1px solid var(--relay-border);
        }

        /* Integration mapper header */
        .mapping-tools-header {
            padding: 1.1rem 1.25rem;
            border-bottom: 1px solid var(--relay-border);
            background: linear-gradient(180deg, rgba(0, 120, 212, 0.08), rgba(0, 120, 212, 0.025));
        }

        .mapping-tools-header .relay-mini-heading {
            margin-bottom: 0.35rem;
        }

        .mapping-tools-actions {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            align-items: center;
        }

        @media (max-width: 992px) {
            .api-tester-history-list { max-height: 240px; }
            .api-tester-shell { flex-direction: column; }
            .api-tester-left { width: 100%; max-width: none; }
            .api-tester-grid { grid-template-columns: 1fr; }
            .kpi-row { flex-direction: column; }
        }
