/* === Modern palette & tokens === */
:root {
    /* Brand & accent */
    --brand: #7c3aed; /* vivid purple */
    --brand-600: #6d28d9;
    --brand-50: #f5f3ff;
    --accent: #06b6d4; /* cyan */
    --accent-600: #0891b2;

    /* Ink & neutrals */
    --ink: #e6eaf7; /* light on dark */
    --muted: #a8b0c3;

    /* Surfaces (glass-like) */
    --surface: rgba(17, 24, 39, 0.55);
    --surface-2: rgba(17, 24, 39, 0.35);
    --border: rgba(148, 163, 184, 0.24);

    /* Sizing */
    --header-h: 64px;
    --sidebar-w: 25vw;
    --sidebar-collapsed: 8rem;

    /* Split ratios */
    --split-normal: 1;
    --split-expanded: 2;

    /* Shape & motion */
    --radius: 16px;
    --s4v-radius: 16px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --dur-fast: 160ms;
    --dur: 260ms;

    --bs-heading-color: #fff;
}

/* Force the LEFT offcanvas to overlay the header (not sit under it) */
#sidebarOffcanvas.offcanvas-clean{
  top: 0 !important;
  height: 100vh !important;
}

/* Backdrop should also cover the header */
.offcanvas-backdrop{
  top: 0 !important;
  height: 100vh !important;
}

#sidebarOffcanvas{
  position: fixed !important;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}


body {
    animation: fadeIn .25s ease-out forwards;
    opacity: 0;
}
@media (prefers-reduced-motion: reduce) {
    body { animation: none; opacity: 1; }
}
/* === Base === */
html, body {
    height: 100%;
    color: #fff!important;
    transition: fade;
}

body.bg-body {
    background: linear-gradient(rgba(8, 14, 28, .5), rgba(8, 14, 28, .5)) center center / cover no-repeat,
    url("../images/bg-svg.svg") center center / cover fixed no-repeat;
    color: var(--ink);
}

/* Optional subtle grid overlay */
body.bg-body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8,14,28,.08), rgba(8,14,28,.3));
    z-index: 0;
}

/* === Header === */
.app-navbar {
    background: rgba(12, 18, 32, 0.55);
    /*backdrop-filter: blur(10px);*/
    border-bottom: 1px solid var(--border);
}

.navbar-brand {
    color: var(--ink);
}

.app-brand {
    display: inline-flex;
    align-items: center;
    gap: .68rem;
    min-width: 0;
    padding-block: .25rem;
    text-decoration: none;
}

.app-brand__mark {
    width: 2.75rem;
    height: 2.75rem;
    flex: 0 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 .5rem .9rem rgba(2, 6, 23, .28));
    transition: transform .24s ease, filter .24s ease;
}

.app-brand__name {
    color: #f4f9ff;
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -.025em;
    line-height: 1;
}

.app-brand:hover .app-brand__mark,
.app-brand:focus-visible .app-brand__mark {
    filter: drop-shadow(0 .65rem 1.1rem rgba(56, 189, 248, .2));
    transform: translateY(-1px) rotate(-2deg) scale(1.025);
}

.navbar-brand i {
    color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
    .app-brand__mark {
        transition: none;
    }
}

.app-navbar .nav-link {
    color: var(--muted);
}

.app-navbar .nav-link:hover {
    color: var(--ink);
}

.app-navbar .app-user-menu {
    min-width: 13.5rem;
    border: 1px solid rgba(148, 163, 184, .32);
    background: rgba(8, 15, 28, .97);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    backdrop-filter: blur(18px) saturate(135%);
    box-shadow: 0 1.25rem 3.5rem rgba(1, 6, 16, .62), inset 0 1px 0 rgba(255, 255, 255, .045);
}

.app-navbar .app-user-menu .nav-link,
.app-navbar .app-user-menu button {
    color: #eef7ff;
}

.app-navbar .app-user-menu .nav-link:hover,
.app-navbar .app-user-menu .nav-link:focus-visible,
.app-navbar .app-user-menu button:hover,
.app-navbar .app-user-menu button:focus-visible {
    color: #fff;
    background: rgba(56, 189, 248, .13);
}

.app-navbar .app-user-menu .dropdown-divider {
    border-color: rgba(148, 163, 184, .22);
}

/* Tab labels visually terminate at the tab rail; other buttons are untouched. */
.nav-tabs > .nav-item > .nav-link,
.nav-tabs > .nav-link {
    margin-bottom: -1px;
    border-bottom-right-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

.app-notifications { position: relative; z-index: 1060; display: grid; width: min(58rem, calc(100% - 1rem)); gap: .65rem; margin: 0 auto 1rem; }
.app-notification { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .75rem; margin: 0; padding: .8rem 1rem; border-width: 1px; box-shadow: 0 1rem 2.6rem rgba(2, 8, 23, .24); }
.app-notification .btn-close { position: static; padding: .7rem; }

.navbar-toggler, .btn-outline-primary {
    border-color: var(--border) !important;
    color: var(--ink);
}

/* === Layout wrapper === */
.app {
    min-height: calc(100vh - var(--header-h));
    position: relative;
    z-index: 1;
}

/* === Sidebar (md+) === */
.sidebar {
    background: var(--surface-2);
    transition: width var(--dur) var(--ease), background var(--dur) var(--ease),min-width var(--dur) var(--ease);
    will-change: width, background;
    overflow: hidden;
    border-right: 1px solid var(--border) !important

    /*backdrop-filter: blur(10px);*/
}

.sidebar.mode-fixed {
    width: var(--sidebar-w)!important;
    min-width: 225px!important;
}

button, .btn, input, select, textarea, .form-control, .form-select, .dropdown-menu,
.card, .subtle-card, .alert, .modal-content, .offcanvas, .accordion-item,
.table-responsive, .choices, .choices__inner, .dataTables_wrapper .dt-search input,
.dataTables_wrapper .dt-length select { border-radius: var(--s4v-radius) !important; }
.rounded, .rounded-1, .rounded-2, .rounded-3, .rounded-4, .rounded-5 { border-radius: var(--s4v-radius) !important; }

input:not([type="file"]), select, textarea { border-radius: var(--s4v-radius) !important; }

.input-group > :not(:first-child), .btn-group > :not(:first-child) { margin-left: .2rem; }

.s4v-floating-field { position: relative; padding-top: 0 !important; }
.s4v-floating-field > .form-control,
.s4v-floating-field > .form-select,
.s4v-floating-field > input:not([type="file"]),
.s4v-floating-field > textarea,
.s4v-floating-field > select {
    min-height: 3.55rem;
    padding: 1.45rem 1.05rem .38rem !important;
}
.s4v-floating-field > textarea { min-height: 7rem; }
.s4v-floating-field > :is(label, span).form-label {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 3.55rem;
    margin: 0;
    padding: 1.08rem 1.05rem;
    overflow: hidden;
    color: #111827 !important;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    text-overflow: ellipsis;
    white-space: nowrap;
    pointer-events: none;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: 0 0;
    transition: transform .16s ease-in-out, color .16s ease-in-out, opacity .16s ease-in-out;
}
.s4v-floating-field:focus-within > :is(label, span).form-label,
.s4v-floating-field.s4v-has-value > :is(label, span).form-label,
.s4v-floating-field.s4v-select-field > :is(label, span).form-label,
.s4v-floating-field > :is(input, textarea):-webkit-autofill ~ :is(label, span).form-label {
    color: #111827 !important;
    font-weight: 500;
    opacity: .82;
    transform: translate3d(.18rem, -.12rem, 0) scale(.72);
}
.s4v-floating-field.s4v-select-field > .form-select,
.s4v-floating-field.s4v-select-field > select {
    padding-top: 1.55rem !important;
    padding-bottom: .35rem !important;
}
.s4v-floating-field:focus-within > :is(label, span).form-label { color: #075985 !important; opacity: 1; }
.s4v-floating-field > :is(input, textarea)::placeholder { color: transparent !important; }
.s4v-floating-field > :is(input, textarea):focus::placeholder { color: transparent !important; }
.s4v-floating-field > :is(input,select,textarea):disabled ~ :is(label, span).form-label { opacity: .55; }
@media (prefers-reduced-motion: reduce) {
    .s4v-floating-field > :is(label, span).form-label { transition: none; }
}

#user-management-feedback:empty { display: none; }
.dataTables_wrapper .dt-search { display: flex; align-items: center; }
.dataTables_wrapper .dt-search input {
    min-height: 2.25rem !important;
    padding: .35rem .7rem !important;
    border-radius: .65rem !important;
    font-size: .82rem;
}
.dataTables_wrapper .dt-length { display: none !important; }
.dataTables_wrapper.dt-length-enabled .dt-length,
.dt-container.dt-length-enabled .dt-length {
    display: flex !important;
    align-items: center;
}
.dataTables_wrapper.dt-length-enabled .dt-length label,
.dt-container.dt-length-enabled .dt-length label { margin: 0; font-size: 0; }
.dataTables_wrapper.dt-length-enabled .dt-length select,
.dt-container.dt-length-enabled .dt-length select { min-width: 4.5rem; font-size: .78rem; }

.s4v-dialog-backdrop[hidden] { display: none; }
.s4v-dialog-backdrop { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; padding: 1rem; background: rgba(2,8,23,.72); backdrop-filter: blur(5px); }
body.s4v-dialog-open { overflow: hidden; }
.s4v-dialog { width: min(30rem, 100%); overflow: hidden; border: 1px solid var(--border); border-radius: var(--s4v-radius); color: var(--ink); background: #101d31; box-shadow: 0 2rem 6rem rgba(0,0,0,.5); }
.s4v-dialog header { display: grid; grid-template-columns: auto 1fr; gap: .8rem; padding: 1rem; }
.s4v-dialog-mark { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border-radius: var(--s4v-radius); color: #67e8f9; background: rgba(6,182,212,.13); }
.s4v-dialog h2 { margin: 0; font-size: 1rem; }
.s4v-dialog p { margin: .3rem 0 0; color: var(--muted); font-size: .84rem; }
.s4v-dialog footer { display: flex; justify-content: flex-end; gap: .5rem; padding: .8rem 1rem; border-top: 1px solid var(--border); }

.home-shell { width: min(1180px, calc(100% - 1.5rem)); margin: 0 auto; padding: clamp(0.7rem, 1.3vw, 1.3rem) 0; }
.home-hero { max-width: 1200px; margin-bottom: clamp(0.7rem, 2vw, 2rem); }
.home-kicker { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem; padding: .45rem .75rem; border: 1px solid rgba(103,232,249,.35); border-radius: var(--s4v-radius); color: #a5f3fc; background: rgba(6,182,212,.09); font-size: .78rem; font-weight: 750; letter-spacing: .04em; }
.home-inline-icon,
.home-meta-icon,
.home-card-icon,
.home-quickbar-tag-icon,
.home-quickbar-action-icon,
.home-point-icon,
.home-arrow-icon { position: relative; isolation: isolate; flex: 0 0 auto; }
.home-inline-icon,
.home-meta-icon,
.home-quickbar-tag-icon,
.home-quickbar-action-icon,
.home-point-icon,
.home-arrow-icon { display: inline-grid; place-items: center; }
.home-inline-icon::after,
.home-meta-icon::after,
.home-card-icon::after,
.home-quickbar-tag-icon::after,
.home-quickbar-action-icon::after,
.home-point-icon::after { content: ""; position: absolute; inset: 18%; z-index: -1; border-radius: 999px; background: color-mix(in srgb, var(--home-accent, #67e8f9) 22%, transparent); opacity: .35; filter: blur(8px); transform: scale(.86); transition: opacity .2s ease, transform .2s ease; }
.home-inline-icon { width: 1.15rem; height: 1.15rem; color: #67e8f9; }
.home-meta-icon { width: 1.3rem; height: 1.3rem; color: #67e8f9; }
.home-point-icon { width: .92rem; height: .92rem; color: #67e8f9; }
.home-arrow-icon { width: 1rem; height: .8rem; color: currentColor; }
.home-animated-icon { position: relative; display: block; width: 100%; height: 100%; color: currentColor; }
.home-animated-icon > * { position: absolute; box-sizing: border-box; }
.home-icon-sparkles .spark { left: 50%; top: 50%; width: .14rem; height: .78rem; border-radius: 999px; background: currentColor; transform: translate(-50%, -50%); }
.home-icon-sparkles .spark::before { content: ""; position: absolute; left: 50%; top: 50%; width: .78rem; height: .14rem; border-radius: 999px; background: currentColor; transform: translate(-50%, -50%); }
.home-icon-sparkles .spark-main { animation: home-spark-main 2.8s ease-in-out infinite; }
.home-icon-sparkles .spark-left { opacity: .72; transform: translate(-165%, -18%) scale(.52) rotate(18deg); animation: home-spark-side-a 2.8s ease-in-out infinite; }
.home-icon-sparkles .spark-right { opacity: .8; transform: translate(72%, -122%) scale(.4) rotate(-18deg); animation: home-spark-side-b 2.8s ease-in-out infinite; }
.home-icon-shield .shield-body { inset: .08rem .14rem .08rem; border: 1.6px solid currentColor; border-radius: .26rem .26rem .45rem .45rem; background: color-mix(in srgb, currentColor 12%, transparent); clip-path: polygon(50% 0, 86% 14%, 86% 56%, 50% 100%, 14% 56%, 14% 14%); animation: home-shield-body 3.4s ease-in-out infinite; }
.home-icon-shield .shield-check { left: 50%; top: 49%; width: .42rem; height: .22rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translate(-45%, -18%) rotate(-45deg); animation: home-shield-check 3.4s ease-in-out infinite; }
.home-icon-sync .sync-ring { inset: .13rem; border: 1.6px solid rgba(103,232,249,.32); border-top-color: currentColor; border-right-color: currentColor; border-radius: 50%; animation: home-sync-rotate 4.4s linear infinite; }
.home-icon-sync .sync-arrow { width: .32rem; height: .32rem; border-top: 1.6px solid currentColor; border-right: 1.6px solid currentColor; }
.home-icon-sync .sync-arrow-a { top: .08rem; right: .09rem; transform: rotate(34deg); }
.home-icon-sync .sync-arrow-b { left: .09rem; bottom: .08rem; transform: rotate(214deg); }
.home-icon-trend .trend-bar { bottom: .1rem; width: .18rem; border-radius: 999px 999px .18rem .18rem; background: color-mix(in srgb, currentColor 72%, white 6%); transform-origin: center bottom; }
.home-icon-trend .trend-bar-1 { left: .16rem; height: .32rem; animation: home-trend-bar-1 3.2s ease-in-out infinite; }
.home-icon-trend .trend-bar-2 { left: .52rem; height: .54rem; animation: home-trend-bar-2 3.2s ease-in-out infinite; }
.home-icon-trend .trend-bar-3 { left: .88rem; height: .74rem; animation: home-trend-bar-3 3.2s ease-in-out infinite; }
.home-icon-trend .trend-line { left: .19rem; top: .48rem; width: .86rem; height: .14rem; border-radius: 999px; background: #fff; box-shadow: 0 0 0 1px rgba(103,232,249,.16); transform-origin: left center; transform: rotate(-26deg); animation: home-trend-line 3.2s ease-in-out infinite; }
.home-hero h2 { max-width: 820px; margin: 0; font-size: clamp(1.3rem, 3.6vw, 3.8rem); line-height: 1.02; letter-spacing: -.055em; text-wrap: balance; }
.home-hero > p { margin: 0.7rem 0; color: #c6cede; font-size: clamp(1rem, 2vw, 1.22rem); line-height: 1.65; }
.home-hero-meta { display: flex; flex-wrap: wrap; gap: .6rem 1.2rem; color: #a8b0c3; font-size: .8rem; }
.home-hero-meta > span { display: inline-flex; align-items: center; gap: .4rem; }
.home-product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.home-product-card { position: relative; display: flex; min-height: 22rem; flex-direction: column; padding: 1.35rem; overflow: hidden; border: 1px solid var(--border); border-radius: var(--s4v-radius); color: var(--ink); background: linear-gradient(145deg, rgba(19,32,53,.92), rgba(10,18,32,.78)); text-decoration: none; box-shadow: 0 1.4rem 4rem rgba(0,0,0,.28); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.home-product-card::after { content: ""; position: absolute; right: -4rem; bottom: -5rem; width: 13rem; height: 13rem; border-radius: 50%; background: var(--home-glow); filter: blur(8px); opacity: .25; }
.home-page #sidebar { display: none !important; }
.home-page .app-menu-trigger { display: none !important; }
.home-page #app-main { width: 100%; }
.home-product-card::before { content: ""; position: absolute; top: -45%; left: -25%; width: 11rem; height: 16rem; border-radius: 46% 54% 64% 36% / 42% 36% 64% 58%; background: color-mix(in srgb, var(--home-accent) 34%, transparent); filter: blur(28px); opacity: .32; animation: home-blob-drift 8s ease-in-out infinite alternate; }
.home-product-card:nth-child(2)::before { animation-delay: -2.4s; animation-duration: 9.5s; }
.home-product-card:nth-child(3)::before { animation-delay: -4.8s; animation-duration: 10.5s; }
.home-product-card::after { animation: home-blob-pulse 7s ease-in-out infinite alternate; }
.home-product-card:nth-child(2)::after { animation-delay: -1.8s; }
.home-product-card:nth-child(3)::after { animation-delay: -3.6s; }
.home-product-card > * { position: relative; z-index: 1; }
@keyframes home-blob-drift { 0% { transform: translate3d(-8px,-5px,0) rotate(-8deg) scale(.9); } 55% { transform: translate3d(90px,42px,0) rotate(16deg) scale(1.25); } 100% { transform: translate3d(155px,18px,0) rotate(-2deg) scale(1.05); } }
@keyframes home-blob-pulse { from { transform: translate3d(0,0,0) scale(.9); opacity: .18; } to { transform: translate3d(-42px,-38px,0) scale(1.2); opacity: .34; } }
.home-hero::before { content: ""; position: absolute; z-index: -1; width: 24rem; height: 24rem; margin: -8rem 0 0 -7rem; border-radius: 44% 56% 58% 42%; background: radial-gradient(circle, rgba(124,58,237,.18), transparent 68%); filter: blur(12px); animation: home-hero-glow 10s ease-in-out infinite alternate; }
.home-hero { position: relative; z-index: 1; }
@keyframes home-hero-glow { to { transform: translate3d(70px,35px,0) scale(1.18) rotate(18deg); } }
@media (prefers-reduced-motion: reduce) { .home-product-card::before, .home-product-card::after, .home-hero::before { animation: none; } }
.home-product-card.questionnaire { --home-accent: #8b5cf6; --home-glow: #8b5cf6; }
.home-product-card.research { --home-accent: #06b6d4; --home-glow: #06b6d4; }
.home-product-card.mapping { --home-accent: #f59e0b; --home-glow: #f59e0b; }
.home-product-card:hover { color: #fff; border-color: color-mix(in srgb, var(--home-accent) 65%, white 10%); transform: translateY(-5px); box-shadow: 0 2rem 5rem rgba(0,0,0,.38); }
.home-card-icon { display: grid; width: 3.25rem; height: 3.25rem; place-items: center; margin-bottom: 1rem; border: 1px solid color-mix(in srgb, var(--home-accent) 55%, transparent); border-radius: var(--s4v-radius); color: #fff; background: color-mix(in srgb, var(--home-accent) 24%, transparent); font-size: 1.2rem; }
.home-card-icon::before { content: ""; position: absolute; inset: .38rem; border: 1px solid color-mix(in srgb, var(--home-accent) 35%, transparent); border-radius: calc(var(--s4v-radius) - .2rem); opacity: .65; }
.home-card-icon .home-animated-icon { width: 1.6rem; height: 1.6rem; }
.home-card-icon > i { position: relative; z-index: 1; font-size: 1.42rem; filter: drop-shadow(0 .25rem .55rem color-mix(in srgb, var(--home-accent) 45%, transparent)); transition: transform .2s ease; }
.home-product-card:hover .home-card-icon > i { transform: translateY(-2px) scale(1.08); }
.home-inline-icon > i, .home-meta-icon > i, .home-quickbar-tag-icon > i,
.home-quickbar-action-icon > i, .home-point-icon > i, .home-arrow-icon > i { display: block; line-height: 1; }
.home-meta-icon > i { font-size: 1.08rem; }
.home-arrow-icon > i { font-size: .95rem; transition: transform .18s ease; }
.home-product-card:hover .home-card-action .home-arrow-icon > i,
.home-quickbar-action:hover .home-arrow-icon > i { transform: translateX(.22rem); }
.home-icon-checklist .check-row { right: .1rem; height: .13rem; border-radius: 999px; background: rgba(255,255,255,.85); transform-origin: left center; }
.home-icon-checklist .check-row-1 { top: .32rem; width: .78rem; animation: home-check-row 3.6s ease-in-out infinite; }
.home-icon-checklist .check-row-2 { top: .72rem; width: .88rem; animation: home-check-row 3.6s ease-in-out infinite .18s; }
.home-icon-checklist .check-row-3 { top: 1.12rem; width: .68rem; animation: home-check-row 3.6s ease-in-out infinite .36s; }
.home-icon-checklist .check-mark { width: .34rem; height: .18rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) scale(.72); transform-origin: center; }
.home-icon-checklist .check-mark-1 { left: .05rem; top: .3rem; animation: home-check-mark-1 3.6s ease-in-out infinite; }
.home-icon-checklist .check-mark-2 { left: .05rem; top: .7rem; animation: home-check-mark-2 3.6s ease-in-out infinite; }
.home-icon-microscope .scope-eye { left: .26rem; top: .18rem; width: .64rem; height: .2rem; border-radius: 999px; background: currentColor; transform: rotate(-18deg); }
.home-icon-microscope .scope-arm { left: .52rem; top: .34rem; width: .22rem; height: .72rem; border-radius: 999px; background: currentColor; transform: rotate(28deg); transform-origin: top center; animation: home-scope-arm 4.2s ease-in-out infinite; }
.home-icon-microscope .scope-lens { left: .9rem; top: .62rem; width: .28rem; height: .42rem; border-radius: .2rem; background: rgba(255,255,255,.92); transform: rotate(20deg); }
.home-icon-microscope .scope-stage { left: .54rem; top: 1.02rem; width: .7rem; height: .14rem; border-radius: 999px; background: rgba(255,255,255,.86); }
.home-icon-microscope .scope-base { left: .25rem; bottom: .14rem; width: 1.12rem; height: .2rem; border-radius: 999px; background: currentColor; }
.home-icon-microscope .scope-sample { left: .96rem; top: .92rem; width: .18rem; height: .18rem; border-radius: 50%; background: #fff; animation: home-scope-sample 2.2s ease-in-out infinite; }
.home-icon-bars .map-bar { bottom: .08rem; width: .22rem; border-radius: .18rem .18rem .08rem .08rem; background: currentColor; transform-origin: center bottom; }
.home-icon-bars .map-bar-1 { left: .12rem; height: .46rem; animation: home-map-bar-1 3s ease-in-out infinite; }
.home-icon-bars .map-bar-2 { left: .48rem; height: .94rem; animation: home-map-bar-2 3s ease-in-out infinite; }
.home-icon-bars .map-bar-3 { left: .84rem; height: .64rem; animation: home-map-bar-3 3s ease-in-out infinite; }
.home-icon-bars .map-bar-4 { left: 1.2rem; height: 1.18rem; animation: home-map-bar-4 3s ease-in-out infinite; }
.home-card-label { position: absolute; top: 1.4rem; right: 1.35rem; color: var(--home-accent); font-size: .72rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.home-product-card h2 { margin: .8rem 0 .7rem; font-size: 1.45rem; }
.home-product-card p { margin: 0; color: #aeb8ca; line-height: 1.65; }
.home-card-action { z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .7rem; margin-top: auto; padding-top: 1.4rem; color: #fff; font-size: .82rem; font-weight: 750; }
.home-arrow-icon .arrow-line { left: .02rem; top: 50%; width: .72rem; height: .12rem; border-radius: 999px; background: currentColor; transform: translateY(-50%); transform-origin: left center; transition: transform .18s ease, width .18s ease; }
.home-arrow-icon .arrow-head { right: .02rem; top: 50%; width: .36rem; height: .36rem; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); transition: transform .18s ease; }
.home-product-card:hover .home-card-action .home-arrow-icon .arrow-line,
.home-quickbar-action:hover .home-arrow-icon .arrow-line { width: .8rem; transform: translateY(-50%) translateX(.08rem); }
.home-product-card:hover .home-card-action .home-arrow-icon .arrow-head,
.home-quickbar-action:hover .home-arrow-icon .arrow-head { transform: translateY(-50%) translateX(.08rem) rotate(45deg); }
.home-quickbar { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(18rem, .9fr); align-items: center; gap: 1.1rem 1.6rem; margin-top: 1.1rem; padding: 1.15rem 1.25rem; overflow: hidden; border: 1px solid rgba(103,232,249,.22); border-radius: calc(var(--s4v-radius) + 2px); background: linear-gradient(135deg, rgba(7,23,41,.92), rgba(11,30,50,.76)); box-shadow: 0 1.2rem 3.2rem rgba(0,0,0,.24); }
.home-quickbar::before { content: ""; position: absolute; inset: auto auto -2.8rem -2rem; width: 11rem; height: 11rem; border-radius: 999px; background: radial-gradient(circle, rgba(6,182,212,.18), transparent 72%); }
.home-quickbar::after { content: ""; position: absolute; top: -3.5rem; right: -2.2rem; width: 12rem; height: 12rem; border-radius: 46% 54% 60% 40%; background: radial-gradient(circle, rgba(14,165,233,.16), transparent 70%); filter: blur(6px); animation: home-hero-glow 11s ease-in-out infinite alternate; }
.home-quickbar > * { position: relative; z-index: 1; }
.home-quickbar-copy,
.home-quickbar-side { display: grid; gap: .45rem; }
.home-quickbar-copy strong { font-size: clamp(1.02rem, 2vw, 1.35rem); line-height: 1.2; }
.home-quickbar-copy > span:last-child { color: #b2bfd1; font-size: .88rem; line-height: 1.55; }
.home-quickbar-tag { display: inline-flex; width: fit-content; align-items: center; gap: .55rem; padding: .38rem .68rem; border: 1px solid rgba(103,232,249,.24); border-radius: 999px; color: #b8f4fb; background: rgba(6,182,212,.09); font-size: .74rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.home-quickbar-tag-icon { width: 1.55rem; height: 1.55rem; border-radius: 50%; color: #67e8f9; background: rgba(255,255,255,.05); }
.home-quickbar-tag-icon .home-animated-icon,
.home-quickbar-action-icon .home-animated-icon { width: 1rem; height: 1rem; }
.home-icon-flask .flask-neck { left: .38rem; top: .05rem; width: .24rem; height: .24rem; border: 1.6px solid currentColor; border-bottom: 0; border-radius: .08rem .08rem 0 0; }
.home-icon-flask .flask-body { left: .15rem; top: .24rem; width: .7rem; height: .7rem; border: 1.6px solid currentColor; border-top: 0; border-radius: 0 0 .3rem .3rem; clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%); }
.home-icon-flask .flask-liquid { left: .24rem; bottom: .1rem; width: .52rem; height: .28rem; border-radius: .08rem .08rem .2rem .2rem; background: color-mix(in srgb, currentColor 78%, white 8%); clip-path: polygon(0 36%, 18% 28%, 36% 42%, 56% 24%, 76% 38%, 100% 30%, 100% 100%, 0 100%); animation: home-flask-liquid 3.2s ease-in-out infinite; }
.home-icon-flask .flask-bubble { border-radius: 50%; background: #fff; opacity: .82; }
.home-icon-flask .flask-bubble-1 { left: .34rem; bottom: .24rem; width: .08rem; height: .08rem; animation: home-flask-bubble-1 2.8s ease-in-out infinite; }
.home-icon-flask .flask-bubble-2 { left: .56rem; bottom: .18rem; width: .1rem; height: .1rem; animation: home-flask-bubble-2 2.8s ease-in-out infinite .5s; }
.home-quickbar-side { justify-items: end; }
.home-quickbar-points { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
.home-quickbar-points > span { display: inline-flex; align-items: center; gap: .38rem; padding: .34rem .6rem; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; color: #d2deed; background: rgba(255,255,255,.04); font-size: .76rem; white-space: nowrap; }
.home-icon-point-check .point-ring { inset: .08rem; border: 1.5px solid currentColor; border-radius: 50%; opacity: .85; }
.home-icon-point-check .point-check { left: 50%; top: 50%; width: .28rem; height: .14rem; border-left: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor; transform: translate(-46%, -12%) rotate(-45deg); animation: home-point-check 2.8s ease-in-out infinite; }
.home-icon-point-grid .grid-cell { width: .28rem; height: .28rem; border-radius: .08rem; background: currentColor; animation: home-grid-pulse 2.8s ease-in-out infinite; }
.home-icon-point-grid .grid-cell-1 { left: .08rem; top: .08rem; }
.home-icon-point-grid .grid-cell-2 { right: .08rem; top: .08rem; animation-delay: .2s; }
.home-icon-point-grid .grid-cell-3 { left: .08rem; bottom: .08rem; animation-delay: .4s; }
.home-icon-point-grid .grid-cell-4 { right: .08rem; bottom: .08rem; animation-delay: .6s; }
.home-icon-point-bolt .bolt-shape { left: .3rem; top: .04rem; width: .28rem; height: .7rem; background: currentColor; clip-path: polygon(44% 0, 100% 0, 62% 38%, 94% 38%, 22% 100%, 42% 56%, 10% 56%); }
.home-icon-point-bolt .bolt-flash { inset: .1rem; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, currentColor 28%, white 10%), transparent 72%); animation: home-bolt-flash 2s ease-in-out infinite; }
.home-quickbar-action { display: inline-flex; align-items: center; gap: .7rem; min-height: 3rem; padding: .58rem .95rem .58rem .7rem; border-color: rgba(103,232,249,.36); color: #dff9ff; background: linear-gradient(135deg, rgba(6,182,212,.16), rgba(59,130,246,.08)); font-weight: 700; }
.home-quickbar-action:hover,
.home-quickbar-action:focus-visible { border-color: rgba(103,232,249,.6); color: #fff; background: linear-gradient(135deg, rgba(6,182,212,.24), rgba(59,130,246,.14)); }
.home-quickbar-action-icon { width: 2rem; height: 2rem; border: 1px solid rgba(103,232,249,.28); border-radius: 50%; color: #67e8f9; background: rgba(255,255,255,.05); }
@keyframes home-spark-main { 0%, 100% { transform: translate(-50%, -50%) scale(.92); opacity: .88; } 50% { transform: translate(-50%, -50%) scale(1.08); opacity: 1; } }
@keyframes home-spark-side-a { 0%, 100% { transform: translate(-165%, -18%) scale(.46) rotate(18deg); opacity: .45; } 50% { transform: translate(-150%, -28%) scale(.62) rotate(28deg); opacity: .9; } }
@keyframes home-spark-side-b { 0%, 100% { transform: translate(72%, -122%) scale(.36) rotate(-18deg); opacity: .4; } 50% { transform: translate(80%, -132%) scale(.54) rotate(-28deg); opacity: .82; } }
@keyframes home-shield-body { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes home-shield-check { 0%, 18%, 100% { opacity: .45; transform: translate(-45%, -18%) rotate(-45deg) scale(.72); } 38%, 72% { opacity: 1; transform: translate(-45%, -18%) rotate(-45deg) scale(1); } }
@keyframes home-sync-rotate { to { transform: rotate(360deg); } }
@keyframes home-trend-bar-1 { 0%, 100% { height: .28rem; } 50% { height: .38rem; } }
@keyframes home-trend-bar-2 { 0%, 100% { height: .46rem; } 50% { height: .66rem; } }
@keyframes home-trend-bar-3 { 0%, 100% { height: .66rem; } 50% { height: .88rem; } }
@keyframes home-trend-line { 0%, 100% { transform: rotate(-22deg) translateY(.04rem); } 50% { transform: rotate(-30deg) translateY(-.04rem); } }
@keyframes home-check-row { 0%, 100% { opacity: .72; transform: scaleX(.92); } 50% { opacity: 1; transform: scaleX(1); } }
@keyframes home-check-mark-1 { 0%, 12%, 100% { opacity: .22; transform: rotate(-45deg) scale(.6); } 24%, 72% { opacity: 1; transform: rotate(-45deg) scale(.92); } }
@keyframes home-check-mark-2 { 0%, 28%, 100% { opacity: .22; transform: rotate(-45deg) scale(.6); } 42%, 82% { opacity: 1; transform: rotate(-45deg) scale(.92); } }
@keyframes home-scope-arm { 0%, 100% { transform: rotate(24deg); } 50% { transform: rotate(32deg); } }
@keyframes home-scope-sample { 0%, 100% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1.15); opacity: 1; } }
@keyframes home-map-bar-1 { 0%, 100% { height: .38rem; } 50% { height: .62rem; } }
@keyframes home-map-bar-2 { 0%, 100% { height: .86rem; } 50% { height: 1.18rem; } }
@keyframes home-map-bar-3 { 0%, 100% { height: .54rem; } 50% { height: .82rem; } }
@keyframes home-map-bar-4 { 0%, 100% { height: 1rem; } 50% { height: 1.3rem; } }
@keyframes home-flask-liquid { 0%, 100% { transform: translateY(.02rem) scaleY(.94); } 50% { transform: translateY(-.03rem) scaleY(1.04); } }
@keyframes home-flask-bubble-1 { 0% { transform: translateY(0) scale(.8); opacity: 0; } 25% { opacity: .95; } 100% { transform: translateY(-.34rem) scale(1.05); opacity: 0; } }
@keyframes home-flask-bubble-2 { 0% { transform: translateY(0) scale(.72); opacity: 0; } 28% { opacity: .82; } 100% { transform: translateY(-.28rem) scale(1); opacity: 0; } }
@keyframes home-point-check { 0%, 100% { opacity: .5; transform: translate(-46%, -12%) rotate(-45deg) scale(.7); } 45%, 70% { opacity: 1; transform: translate(-46%, -12%) rotate(-45deg) scale(1); } }
@keyframes home-grid-pulse { 0%, 100% { opacity: .48; transform: scale(.88); } 50% { opacity: 1; transform: scale(1); } }
@keyframes home-bolt-flash { 0%, 100% { opacity: .18; transform: scale(.85); } 50% { opacity: .5; transform: scale(1.2); } }
@media (prefers-reduced-motion: reduce) {
    .home-quickbar::after,
    .home-animated-icon > *,
    .home-icon-sparkles .spark,
    .home-icon-sparkles .spark::before { animation: none !important; transition: none !important; }
}
@media (max-width: 980px) { .home-product-grid { grid-template-columns: 1fr; } .home-product-card { min-height: 17rem; } }
@media (max-width: 980px) { .home-quickbar { grid-template-columns: 1fr; } .home-quickbar-side { justify-items: start; } .home-quickbar-points { justify-content: flex-start; } }
@media (max-width: 620px) { .home-quickbar { padding: 1rem; } .home-quickbar-points { gap: .45rem; } .home-quickbar .btn { width: 100%; justify-content: center; } }
.row > .card.subtle-card{
    min-height: 88vh;
}
.sidebar.mode-hover {
    width: var(--sidebar-collapsed);
    min-width: 100px;
}

.sidebar.mode-hover:hover {
    width: var(--sidebar-w);
    min-width: 225px!important;

}

.sidebar-content .sidebar-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    color: var(--ink);
    justify-content: flex-start;
    transition: transform var(--dur-fast) var(--ease),
    background var(--dur-fast) var(--ease),
    box-shadow var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease);
}

.sidebar-content .sidebar-card:hover {
    transform: translateY(-2px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    box-shadow: 0 12px 40px rgba(12, 18, 32, 0.35);
    border-color: rgba(124, 58, 237, 0.55);
}

.sidebar-content .sidebar-card.active {
    border-color: rgba(124, 58, 237, 0.8);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.sidebar-icon {
    display: inline-grid;
    place-items: center;
    color: var(--accent);
    font-size: 1.1rem;
}

.sidebar-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Collapsed state label hide (lg+) */
@media (min-width: 1200px) {
    .sidebar.mode-hover .sidebar-label {
        opacity: 0;
        visibility: hidden;
        width: 0;
    }

    .sidebar.mode-hover:hover .sidebar-label {
        opacity: 1;
        visibility: visible;
        width: auto;
        transition: opacity var(--dur) var(--ease);
    }
}

/* === Main pane (independent scrolling) === */
.main {
    height: calc(100vh - var(--header-h));
    overflow-y: auto;
    overflow-x: hidden;
    background: radial-gradient(800px 400px at 10% -10%, rgba(34, 197, 94, 0.05), transparent 60%),
    radial-gradient(800px 400px at 110% 10%, rgba(59, 130, 246, 0.06), transparent 60%);
    padding-bottom: 1rem;
}

/* Cards (glassmorphism) */
.subtle-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(17, 24, 39, 0.45);
    box-shadow: 0 12px 48px rgba(2, 8, 23, 0.35);
}


/* Headings & text */
.card-title {
    color: var(--ink);
}

.text-muted {
    color: var(--muted) !important;
}

.text-secondary {
    color: #c4cbe0 !important;
}

/* === Split container === */
.split-container {
    display: flex;
    gap: 1rem;
}

.split-container .split-pane {
    flex: var(--split-normal) 1 0;
    transition: flex var(--dur) var(--ease), transform var(--dur) var(--ease);
    will-change: flex, transform;
    min-width: 0;
}

/* Hover mode (lg+) */
@media (min-width: 1200px) {
    .split-container.mode-hover .split-pane:hover {
        flex: var(--split-expanded) 1 0;
    }

    .split-container.mode-hover .split-pane:not(:hover) {
        flex: var(--split-normal) 1 0;
    }
}

/* Manual mode (lg+) */
@media (min-width: 1200px) {
    .split-container.mode-manual .split-pane.expanded {
        flex: var(--split-expanded) 1 0;
    }

    .split-container.mode-manual .split-pane:not(.expanded) {
        flex: var(--split-normal) 1 0;
    }
}

/* Split toggles */
.split-toggle {
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--ink);
}

/* Offcanvas */
.offcanvas.show {
    background: rgba(12, 18, 32, 0.95);
    color: var(--ink);
    border-right: 1px solid var(--border);
    min-height: 100vh;

}

/* Buttons & accents */
.btn-s4v,
.btn-outline-secondary {
    color: #0dcaf0;
    border-color: var(--border);
    background: rgba(255, 255, 255, 0.02);
}

.btn-s4v:hover,
.btn-outline-secondary.active,
.btn-outline-secondary:hover {
    color: #fff;
    border-color: rgba(124, 58, 237, 0.65);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.25));
    box-shadow: 0 6px 26px rgba(124, 58, 237, 0.25);
    transition: ease-in-out .3s  ;
    transform: scale(0.95);
}

/* Utility spacing */
.pane-wrapper {
    min-height: 100%;
}


/* Split container uses flex (not Bootstrap grid) */
.split-container {
    display: flex;
    gap: 1rem;
}

/* Panes are flexible; default 1:1 */
.split-container .split-pane {
    flex: var(--split-normal) 1 0;
    transition: flex var(--dur) var(--ease), transform var(--dur) var(--ease);
    will-change: flex, transform;
    min-width: 0;
}

/* Stack vertically on small screens */
@media (max-width: 1199.98px) {
    .split-container {
        flex-direction: column;
    }
}

/* Hover mode (lg+) → 2/3 vs 1/3 */
@media (min-width: 1200px) {
    .split-container.mode-hover .split-pane:hover {
        flex: var(--split-expanded) 1 0;
    }

    .split-container.mode-hover .split-pane:not(:hover) {
        flex: var(--split-normal) 1 0;
    }
}

/* Manual mode (lg+) → click to expand */
@media (min-width: 1200px) {
    .split-container.mode-manual .split-pane.expanded {
        flex: var(--split-expanded) 1 0;
    }

    .split-container.mode-manual .split-pane:not(.expanded) {
        flex: var(--split-normal) 1 0;
    }
}

/* Offcanvas polish */
.offcanvas-clean {
    background: rgba(12, 18, 32, 0.97);
    color: var(--ink);
    border: 1px solid var(--border);
    /*backdrop-filter: blur(8px);*/
}

.offcanvas-clean .offcanvas-header {
    border-bottom: 1px solid var(--border);
}

.offcanvas-clean .offcanvas-title {
    color: var(--ink);
}

/* Structured menu in offcanvas */
.offcanvas-menu .nav-link,
.offcanvas-menu .btn.sidebar-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
    color: var(--ink);
    transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.offcanvas-menu .nav-link:hover,
.offcanvas-menu .btn.sidebar-card:hover {
    transform: translateY(-1px);
    border-color: rgba(124, 58, 237, 0.55);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

/* Make inner content tidy */
.offcanvas-clean .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-height: 100vh;
}


/* --- Offcanvas sizing & containment --- */
/* Ensure offcanvas is box-sized within viewport and never causes horizontal overflow */
.offcanvas,
.offcanvas-clean {
    box-sizing: border-box;
}

/* Use safe width that accounts for borders and avoids overflow */
#sidebarOffcanvas,
#headerOffcanvas {
    /* On larger phones/tablets, keep it tidy and not too wide */
    --bs-offcanvas-width: min(92vw, 360px);
}

/* On extra small screens, truly full-bleed without causing 100vw+border overflow */
@media (max-width: 575.98px) {
    .offcanvas,
    .offcanvas-clean {
        --bs-offcanvas-width: 100vw; /* Bootstrap offcanvas uses border-box; this is safe */
    }
}

/* Tidy menu items inside offcanvas */
.offcanvas-clean .offcanvas-body {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.offcanvas-menu .btn.sidebar-card,
.offcanvas-menu .nav-link {
    width: 100%;
    justify-content: flex-start;
}

/* If any icon chevrons exist, keep them aligned right without overflow */
.offcanvas-menu .btn.sidebar-card i.fa-chevron-right {
    margin-left: auto;
    opacity: .8;
}
.btn{
    border-radius: 1rem!important;
}

.btn-group .btn {
    border-radius: 0 !important;
}

.btn-group > .btn:first-child {
    border-top-left-radius: 1rem !important;
    border-bottom-left-radius: 1rem !important;
}

.btn-group > .btn:last-child {
    border-top-right-radius: 1rem !important;
    border-bottom-right-radius: 1rem !important;
}

/* --- Global horizontal overflow guard for small screens --- */
html, body {
    overflow-x: hidden; /* prevent stray sub-pixel overflow on mobile */
}

/* Prevent any fixed decoration from causing overflow on some browsers */
body.bg-body::before {
    max-width: 100vw;
    overflow: hidden;
}

/* Extra safety: ensure containers don't push beyond viewport on xs */
@media (max-width: 575.98px) {
    .container,
    .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
}


/* Overlay hover sidebar (no layout shift) */
.sidebar {
    position: relative;
}




table {
            backface-visibility: hidden;
            background: rgba(255, 255, 255, 0.07) !important;
            --bs-table-color: #fff !important;
            --bs-table-bg: rgba(255, 255, 255, 0.02) !important;
            --bs-table-hover-color: #0dcaf0 !important;
            --bs-table-hover-bg: #4613a4 !important;
        }

        /*.highcharts-legend-item .highcharts-graph {*/
        /*    display: none;*/
        /*}*/

        .hr-dashed {
            border-top: 2px dashed #6c757d;
        }

        /* Glassy body for Bootstrap table */
        .glass-tbody tr {
            background: rgba(255, 255, 255, 0.08);
            border-bottom: 1px solid rgba(255, 255, 255, 0.15);
            transition: background 0.2s ease, transform 0.15s ease;
        }

        .glass-tbody tr:hover {
            background: rgba(255, 255, 255, 0.14);
        }

        .glass-tbody td {
            border-color: rgba(255, 255, 255, 0.12);
        }

        .table-hover > tbody.glass-tbody > tr:hover > * {
            --bs-table-accent-bg: transparent;
        }

        .highcharts-heatmap-series .highcharts-point {
            shape-rendering: crispEdges;
        }

        .tc-line-legend {
            display: flex;
            flex-direction: row;
            justify-content: center
        }

        .tc-line-legend .legend-pill {
            display: inline-block;
            margin: 2px 3px;
            padding: 4px 4px;
            border-radius: 1rem;
            background: rgba(0, 51, 153, .15);
            border: 1px solid rgba(0, 51, 153, .35);
            color: #cfe2ff;
            cursor: pointer;
            user-select: none;
            font-size: 0.7rem;
        }

        .tc-line-legend .legend-pill.off {
            opacity: .45;
            text-decoration: line-through;
        }

        tr, td {
            text-align: center !important;
        }



        /* --- Highcharts tooltip visibility & layering fix --- */
        .highcharts-container {
            overflow: visible !important;
        }

        .highcharts-tooltip {
            pointer-events: none;
            z-index: 9999 !important;
        }

        .highcharts-tooltip text,
        .highcharts-tooltip span,
        .highcharts-tooltip b {
            fill: #000000 !important;
            color: #000000 !important;
        }


        .acceptance-export-light {
            background-color: rgba(255, 255, 255, 0) !important;
            color: #111827 !important;
            padding: 1rem;
            border-radius: 0.75rem;
        }

        .acceptance-export-light table,
        .acceptance-export-light table th,
        .acceptance-export-light table td {
            color: #111827 !important;
            background-color: rgba(255, 255, 255, 0) !important;
            border-color: rgba(80, 80, 80, 0.45);
        }

        .acceptance-export-light .table-dark,
        .acceptance-export-light .bg-dark,
        .acceptance-export-light .bg-black,
        .acceptance-export-light .bg-transparent {
            background-color: rgba(255, 255, 255, 0) !important;
        }

.form-label{
    color: white!important;
}

.h-fit-content{
        height: fit-content;
}

.min-width-chart{
    min-width: 550px;
}

.fs-7 {
  font-size: 0.7rem !important;
}

.ai-narrative {
    --ai-narrative-lines: 3;
    margin: 0.85rem 0;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(116, 227, 255, 0.22);
    border-radius: 1rem;
    background: linear-gradient(135deg, rgba(15, 33, 52, 0.82), rgba(23, 42, 62, 0.6));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.ai-narrative--5 {
    --ai-narrative-lines: 5;
    margin-bottom: 1.25rem;
}

.ai-narrative__header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-height: 1.75rem;
    margin-bottom: 0.45rem;
}

.ai-narrative__title {
    overflow: hidden;
    color: #74e3ff;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ai-narrative__copy {
    display: inline-grid;
    width: 1.75rem;
    height: 1.75rem;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(116, 227, 255, 0.28);
    border-radius: 0.55rem;
    color: #d8f8ff;
    background: rgba(116, 227, 255, 0.08);
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.ai-narrative__copy:hover,
.ai-narrative__copy:focus-visible {
    border-color: rgba(116, 227, 255, 0.68);
    background: rgba(116, 227, 255, 0.16);
    outline: none;
}

.ai-narrative__copy:active {
    transform: scale(0.95);
}

.ai-narrative__text {
    display: -webkit-box;
    height: calc(var(--ai-narrative-lines) * 1.5em);
    min-height: calc(var(--ai-narrative-lines) * 1.5em);
    max-height: calc(var(--ai-narrative-lines) * 1.5em);
    margin: 0;
    overflow: hidden;
    color: rgba(241, 248, 255, 0.9);
    font-size: 0.9rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: var(--ai-narrative-lines);
}

.ai-narrative__text.is-typing::after {
    content: "";
    display: inline-block;
    width: 0.08em;
    height: 1em;
    margin-left: 0.12em;
    vertical-align: -0.12em;
    background: #74e3ff;
    animation: ai-narrative-caret 450ms steps(1, end) infinite;
}

@keyframes ai-narrative-caret {
    50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-narrative__copy {
        transition: none;
    }

    .ai-narrative__text.is-typing::after {
        display: none;
        animation: none;
    }
}




/* required anchor for absolute flyout */
/* --- LOCK SIDEBAR WIDTH IN HOVER MODE (NO LAYOUT SHIFT) --- */
/*@media (min-width: 768px) {*/
/*    !* Keep the sidebar's box width constant even on hover *!*/
/*    .sidebar.mode-hover,*/
/*    .sidebar.mode-hover:hover {*/
/*        width: var(--sidebar-collapsed) !important;*/
/*        flex: 0 0 var(--sidebar-collapsed) !important; !* prevent flex growth/shrink *!*/
/*    }*/

/*    !* Ensure the main stays below the overlay flyout (no push) *!*/
/*    .sidebar {*/
/*        position: relative;*/
/*    }*/

/*    !* anchor for absolute flyout *!*/
/*    !* Slide-out panel that overlays the main content *!*/
/*    .sidebar.mode-hover .sidebar-flyout {*/
/*        position: absolute;*/
/*        inset: 0 auto 0 0; !* top:0; left:0; height:100% *!*/
/*        width: var(--sidebar-w); !* full expanded width *!*/
/*        height: 100%;*/
/*        transform: translateX(calc(var(--sidebar-collapsed) - var(--sidebar-w)));*/
/*        transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);*/
/*        z-index: 1999; !* above main content *!*/
/*        pointer-events: auto;*/
/*    }*/

/*    .sidebar.mode-hover:hover .sidebar-flyout {*/
/*        transform: translateX(0);*/
/*        box-shadow: 0 16px 60px rgba(12, 18, 32, .45);*/
/*        z-index: 2000!important;*/
/*    }*/

/*    !* Optional safety: avoid inner overflow glitch inside the flyout *!*/
/*    .sidebar.mode-hover .sidebar-content {*/
/*        overflow: hidden;*/
/*    }*/

/*    .sidebar + .main {*/
/*        position: relative;*/
/*        z-index: 0!important;*/
/*    }*/
/*}*/

/*!* If an older rule sets `.sidebar.mode-hover:hover { width: var(--sidebar-w); }`,*/
/*   the `!important` above neutralizes it without removing existing code. *!*/

/*@media (min-width: 768px) {*/
/*    .sidebar.mode-hover::before {*/
/*        content: "";*/
/*        position: absolute;*/
/*        left: 0;*/
/*        top: 0;*/
/*        bottom: 0;*/
/*        width: var(--sidebar-collapsed); !* keep hoverable strip *!*/
/*        z-index: 10000; !* just above flyout base *!*/
/*        pointer-events: none; !* doesn't block clicks *!*/
/*    }*/
/*}*/

/* Research workspace: an optional orchestration layer over independent projects. */
.study-shell { min-height: 26rem; }
.study-eyebrow { display: block; margin-bottom: .35rem; color: #63dff2; font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.study-mini-progress { width: 7rem; height: .38rem; overflow: hidden; border-radius: 1rem; background: rgba(255,255,255,.12); }
.study-mini-progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #38bdf8, #22c55e); }
.study-objective { padding: 1rem 1.15rem; border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: rgba(255,255,255,.035); }
.study-objective > span, .study-linked-grid article header span { color: rgba(255,255,255,.55); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.study-objective p { margin: .35rem 0 0; max-width: 70rem; }
.study-readiness-card { display: grid; grid-template-columns: minmax(9rem, .8fr) 1.2fr; align-items: center; gap: 1.5rem; padding: 1.25rem; border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: rgba(5,18,32,.42); }
.study-score-ring { --ring-size: 9rem; position: relative; width: var(--ring-size); height: var(--ring-size); display: flex; flex-direction: column; align-items: center; justify-content: center; margin: auto; border-radius: 50%; background: radial-gradient(circle closest-side, #13253a 76%, transparent 77% 99%), conic-gradient(#4ed9ee calc(var(--study-progress) * 1%), rgba(255,255,255,.11) 0); }
.study-score-ring strong { font-size: 1.8rem; }
.study-score-ring span { color: rgba(255,255,255,.55); font-size: .68rem; }
.study-checklist { display: flex; flex-direction: column; gap: .7rem; }
.study-checklist > div { display: flex; align-items: center; gap: .55rem; color: rgba(255,255,255,.55); }
.study-checklist > div.ready { color: #c8f9d7; }
.study-checklist > div.ready i { color: #22c55e; }
.study-linked-grid { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.study-linked-grid article { display: flex; flex-direction: column; align-items: flex-start; padding: 1.15rem; border: 1px solid rgba(255,255,255,.12); border-radius: 1rem; background: rgba(5,18,32,.42); }
.study-linked-grid article header { display: flex; align-items: center; gap: .85rem; }
.study-linked-grid article header > i { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: .75rem; background: rgba(78,217,238,.13); color: #63dff2; }
.study-linked-grid article h3 { margin: .1rem 0 0; color: #f4f8ff; font-size: 1.05rem; }
.study-linked-grid article > .btn { margin-top: auto; }
.study-metrics { display: flex; flex-wrap: wrap; gap: .8rem 1.3rem; margin: .9rem 0; }
.study-metrics span { display: flex; flex-direction: column; color: rgba(255,255,255,.55); font-size: .72rem; }
.study-metrics strong { color: #fff; font-size: .95rem; }
@media (max-width: 767.98px) { .study-readiness-card { grid-template-columns: 1fr; } .study-linked-grid { grid-template-rows: auto; } }

/* Research workspace dashboard */
.study-dashboard { display: grid; gap: 1rem; padding: 1rem; }
.study-dashboard-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; min-height: 15rem; padding: clamp(1.25rem,3vw,2.4rem); overflow: hidden; border: 1px solid rgba(255,255,255,.13); border-radius: var(--s4v-radius); background: radial-gradient(circle at 78% 12%,rgba(6,182,212,.18),transparent 28%),radial-gradient(circle at 20% 130%,rgba(124,58,237,.28),transparent 38%),linear-gradient(135deg,rgba(13,27,47,.94),rgba(7,16,30,.86)); box-shadow: 0 1.5rem 4rem rgba(0,0,0,.28); }
.study-dashboard-hero::after { content:""; position:absolute; right:-5rem; top:-8rem; width:27rem; height:27rem; border:1px solid rgba(103,232,249,.13); border-radius:50%; box-shadow:0 0 0 3rem rgba(103,232,249,.025),0 0 0 7rem rgba(103,232,249,.018); }
.study-dashboard-heading,.study-hero-actions { position:relative; z-index:1; }
.study-dashboard-heading > a { display:inline-flex; align-items:center; gap:.4rem; margin-bottom:1rem; color:#67e8f9; font-size:.78rem; text-decoration:none; }
.study-dashboard-heading h1 { max-width:48rem; margin:.2rem 0 .8rem; font-size:clamp(2rem,4vw,3.5rem); line-height:1.04; letter-spacing:-.045em; }
.study-hero-meta { display:flex; flex-wrap:wrap; gap:.55rem 1rem; color:#aeb9ca; font-size:.76rem; }
.study-hero-meta span { display:inline-flex; align-items:center; gap:.4rem; }
.study-stage-badge { padding:.35rem .6rem; border:1px solid rgba(103,232,249,.3); border-radius:var(--s4v-radius); color:#a5f3fc; background:rgba(6,182,212,.1); }
.study-stage-track { display:grid; grid-template-columns:repeat(5,1fr); padding:.8rem; border:1px solid rgba(255,255,255,.12); border-radius:var(--s4v-radius); background:rgba(8,19,34,.72); }
.study-stage-track div { position:relative; display:flex; align-items:center; justify-content:center; gap:.5rem; min-height:2.7rem; color:#68758a; font-size:.75rem; }
.study-stage-track div:not(:last-child)::after { content:""; position:absolute; left:calc(50% + 2rem); right:calc(-50% + 2rem); top:50%; height:1px; background:rgba(255,255,255,.11); }
.study-stage-track div.complete,.study-stage-track div.current { color:#d8faff; }
.study-stage-track div.complete i { color:#22c55e; }
.study-stage-track div.current { border-radius:var(--s4v-radius); background:rgba(6,182,212,.11); }
.study-stage-track div.current i { color:#67e8f9; }
.study-kpi-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1rem; }
.study-kpi-grid article { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:.8rem; min-height:7.5rem; padding:1rem; border:1px solid rgba(255,255,255,.12); border-radius:var(--s4v-radius); background:linear-gradient(145deg,rgba(18,35,57,.86),rgba(8,20,36,.74)); box-shadow:0 1rem 2.5rem rgba(0,0,0,.15); }
.study-kpi-icon { display:grid; width:2.8rem; height:2.8rem; place-items:center; border-radius:var(--s4v-radius); }
.study-kpi-icon.cyan{color:#67e8f9;background:rgba(6,182,212,.13)}.study-kpi-icon.purple{color:#c4b5fd;background:rgba(124,58,237,.16)}.study-kpi-icon.amber{color:#fcd34d;background:rgba(245,158,11,.13)}.study-kpi-icon.green{color:#86efac;background:rgba(34,197,94,.13)}
.study-kpi-grid article div { display:grid; }.study-kpi-grid article strong{font-size:1.35rem}.study-kpi-grid article div span,.study-kpi-grid article small{color:#8995a9;font-size:.7rem}.study-kpi-grid article small{grid-column:1/-1}
[data-count-up] { display: inline-block; min-width: 1ch; font-variant-numeric: tabular-nums; transform-origin: center bottom; }
[data-count-up].is-counting { color: #dffaff; text-shadow: 0 0 1.15rem rgba(78,217,238,.45); }
[data-count-up].is-counted { animation: study-count-settle .32s ease-out; }
@keyframes study-count-settle { 0% { transform: translateY(.12rem) scale(.96); } 65% { transform: translateY(-.04rem) scale(1.035); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { [data-count-up].is-counted { animation: none; } }
.study-dashboard-grid { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(23rem,.9fr); gap:1rem; }
.study-dashboard-panel { overflow:hidden; border:1px solid rgba(255,255,255,.12); border-radius:var(--s4v-radius); background:rgba(8,20,36,.74); box-shadow:0 1rem 3rem rgba(0,0,0,.2); }
.study-dashboard-panel>header { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:1rem 1.15rem; border-bottom:1px solid rgba(255,255,255,.1); }
.study-dashboard-panel>header h2 { margin:.12rem 0 0; font-size:1rem; }.study-panel-kicker{color:#63dff2;font-size:.65rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}.study-dashboard-panel>header>i{color:#63dff2;font-size:1.2rem}
.study-overview-panel { grid-column:1/-1; }.study-overview-panel>p{min-height:5rem;margin:0;padding:1.2rem;color:#dbe4f1;font-size:1rem;line-height:1.7}.study-overview-panel>footer{display:flex;justify-content:space-between;gap:1rem;padding:.7rem 1.15rem;border-top:1px solid rgba(255,255,255,.08);color:#778399;font-size:.68rem}
.study-readiness-value,.study-connection-count{color:#a5f3fc;font-size:.75rem;font-weight:800}.study-readiness-layout{display:grid;grid-template-columns:auto 1fr;align-items:center;gap:1.5rem;padding:1.25rem}.study-readiness-panel .study-score-ring{--ring-size:8rem}.study-checklist>div{display:grid;grid-template-columns:auto 1fr auto}.study-checklist small{font-size:.64rem;text-transform:uppercase;letter-spacing:.05em}
.study-assets-panel { min-width:0; }.study-asset-grid{display:grid;gap:.75rem;padding:1rem}.study-asset-grid article{display:flex;min-height:11rem;flex-direction:column;padding:1rem;border:1px solid rgba(255,255,255,.1);border-radius:var(--s4v-radius);background:rgba(255,255,255,.025)}.study-asset-grid article.is-linked{border-color:rgba(103,232,249,.24)}.study-asset-grid article>header{display:flex;align-items:center;gap:.7rem}.study-asset-grid article>header>span{display:grid;width:2.7rem;height:2.7rem;place-items:center;border-radius:var(--s4v-radius);color:#67e8f9;background:rgba(6,182,212,.12)}.study-asset-grid article.mapping>header>span{color:#fcd34d;background:rgba(245,158,11,.12)}.study-asset-grid article small{color:#778399;text-transform:uppercase;font-size:.62rem;letter-spacing:.08em}.study-asset-grid h3{margin:.12rem 0 0;font-size:.95rem}.study-asset-grid p{color:#8995a9;font-size:.75rem}.study-asset-stats{display:flex;flex-wrap:wrap;gap:.6rem 1.15rem;margin:.9rem 0}.study-asset-stats span{display:grid;color:#778399;font-size:.64rem}.study-asset-stats strong{color:#fff;font-size:.86rem}.study-asset-grid article>a{display:flex;align-items:center;justify-content:space-between;margin-top:auto;color:#67e8f9;font-size:.74rem;font-weight:750;text-decoration:none}
.study-danger-zone{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.85rem 1rem;border:1px solid rgba(239,68,68,.18);border-radius:var(--s4v-radius);background:rgba(127,29,29,.08)}.study-danger-zone>div{display:grid}.study-danger-zone span{color:#8995a9;font-size:.7rem}
@media(max-width:1100px){.study-kpi-grid{grid-template-columns:repeat(2,1fr)}.study-dashboard-grid{grid-template-columns:1fr}.study-overview-panel{grid-column:auto}}
@media(max-width:700px){.study-dashboard{padding:.5rem}.study-dashboard-hero{align-items:flex-start;flex-direction:column}.study-stage-track{grid-template-columns:1fr}.study-stage-track div:not(:last-child)::after{display:none}.study-kpi-grid{grid-template-columns:1fr}.study-readiness-layout{grid-template-columns:1fr}.study-overview-panel>footer,.study-danger-zone{align-items:stretch;flex-direction:column}.study-danger-zone .btn{width:100%}}

.data-quality-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; margin: 1rem 0 1.25rem; padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.13); border-left: 4px solid #38bdf8; border-radius: .85rem; background: rgba(5,18,32,.5); color: #f1f7ff; }
.data-quality-card.status-ready { border-left-color: #22c55e; }
.data-quality-card.status-review { border-left-color: #f59e0b; }
.data-quality-card.status-blocked { border-left-color: #ef4444; }
.data-quality-score { display: flex; align-items: baseline; min-width: 4.4rem; }
.data-quality-score strong { font-size: 1.65rem; line-height: 1; }
.data-quality-score span, .data-quality-copy p, .data-quality-copy small { color: rgba(255,255,255,.58); font-size: .75rem; }
.data-quality-copy .badge { background: rgba(56,189,248,.15); color: #8be6f5; }
.data-quality-card.status-ready .badge { background: rgba(34,197,94,.14); color: #9bf4b7; }
.data-quality-card.status-blocked .badge { background: rgba(239,68,68,.14); color: #fca5a5; }
.data-quality-copy small { display: block; margin-top: .2rem; }
.data-quality-details { position: relative; }
.data-quality-details summary { display: grid; width: 2.35rem; height: 2.35rem; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: .65rem; cursor: pointer; list-style: none; }
.data-quality-details summary::-webkit-details-marker { display: none; }
.data-quality-details > div { position: absolute; z-index: 20; top: calc(100% + .5rem); right: 0; width: min(28rem, 80vw); max-height: 22rem; overflow: auto; padding: .65rem; border: 1px solid rgba(255,255,255,.16); border-radius: .75rem; background: #102136; box-shadow: 0 1rem 2.5rem rgba(0,0,0,.4); }
.data-quality-details span { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem; border-bottom: 1px solid rgba(255,255,255,.08); font-size: .74rem; }
.data-quality-details small { color: rgba(255,255,255,.55); text-align: right; }
@media (max-width: 767.98px) { .data-quality-card { grid-template-columns: auto 1fr; } .data-quality-details { grid-column: 1 / -1; } .data-quality-details > div { left: 0; right: auto; } }
