.table-custom thead th {
    background-color: #14883C !important;
    color: white !important;
    font-weight: bold !important;
}

.table-custom tbody td:first-child {
    font-weight: bold !important;
}

.table-custom {
    width: 100%;
    text-align: center;
}

:root {
    --intraday-revenue-card-border: #edf2f7;
    --intraday-revenue-card-shadow: 0 8px 28px rgba(15, 23, 42, 0.05);
    --intraday-revenue-card-text: #1f2937;
    --intraday-revenue-card-muted: #8a94a6;
    --intraday-revenue-card-accent: #14883c;
    --intraday-filter-border: #d7dee7;
    --intraday-filter-muted: #98a2b3;
    --intraday-filter-text: #344054;
    --intraday-filter-surface: #ffffff;
}

.vw-app-frame {
    min-height: 100vh;
    padding: 1rem;
    background:
        radial-gradient(circle at top left, rgba(20, 136, 60, 0.06), transparent 26%),
        linear-gradient(180deg, #f8fafc 0%, #fdfefe 100%);
}

.vw-app-shell {
    --vw-header-gutter: 1.35rem;
    background: #ffffff;
    border: 1px solid #e6edf5;
    border-radius: 22px;
    box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
    overflow: visible;
}

.vw-main-header {
    --bs-gutter-x: 1rem;
    margin: 0;
    padding: 0.95rem var(--vw-header-gutter);
    background: linear-gradient(180deg, #11833a 0%, #0d7a33 100%);
    border-radius: 22px 22px 0 0;
    box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.1);
}

.vw-main-header__brand,
.vw-main-header__nav {
    display: flex;
    align-items: center;
}

.vw-main-header__nav .nav {
    flex-wrap: wrap;
}

.vw-main-header__nav .dropdown {
    display: flex;
    align-items: center;
}

.vw-main-header__logo {
    width: 146px;
    height: auto;
    display: block;
}

.vw-main-nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.vw-main-nav__link.nav-link,
.vw-main-nav__menu .dropdown-toggle {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 3.25rem;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.88) !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.96rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.vw-main-nav__link.nav-link:hover,
.vw-main-nav__link.nav-link:focus,
.vw-main-nav__menu .dropdown-toggle:hover,
.vw-main-nav__menu .dropdown-toggle:focus {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
}

.vw-main-nav__link.nav-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.vw-main-nav__link.nav-link.active::after {
    content: "";
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: -0.12rem;
    height: 3px;
    border-radius: 999px;
    background: #ffffff;
}

.vw-main-nav__menu .dropdown-toggle {
    border: 0;
    background: transparent;
    box-shadow: none;
}

.vw-main-nav__menu .dropdown-toggle::after {
    margin-left: 0.45rem;
}

.vw-main-nav__menu .dropdown-menu {
    margin-top: 0.55rem;
    padding: 0.45rem;
    border: 1px solid #e6edf5;
    border-radius: 14px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.12);
}

.vw-main-nav__dropdown-item.dropdown-item {
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    color: #1f2937;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
}

.vw-main-nav__dropdown-item.dropdown-item:hover,
.vw-main-nav__dropdown-item.dropdown-item:focus,
.vw-main-nav__dropdown-item.dropdown-item.active {
    color: #0d7a33;
    background: rgba(20, 136, 60, 0.08);
}

.vw-main-header__version {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vw-main-header__logout {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
}

.vw-main-header__logout:hover,
.vw-main-header__logout:focus {
    color: #ffffff;
    text-decoration: none;
}

.vw-page-hero {
    padding: 1.45rem 1.85rem 1.2rem;
    background: #ffffff;
}

.vw-page-hero__eyebrow {
    color: #14883c;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    line-height: 1;
    text-transform: uppercase;
}

.vw-page-hero__eyebrow:empty {
    display: none;
}

.vw-page-hero__title {
    margin: 0.45rem 0 0;
    color: #182230;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: clamp(2.3rem, 3.3vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.02;
}

.vw-page-content {
    padding: 0 0.45rem 1rem;
}

.vw-home-page {
    display: flex;
    flex-direction: column;
    gap: 2.3rem;
    padding: 1.55rem 1rem 1.8rem;
}

.vw-home-hero {
    padding: 0.2rem 0 0.2rem;
}

.vw-home-hero__eyebrow {
    color: #14883c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.24em;
    line-height: 1;
    text-transform: uppercase;
}

.vw-home-hero__title {
    margin: 0.55rem 0 0;
    color: #172033;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: clamp(2.45rem, 4vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.vw-home-hero__accent {
    color: #14883c;
}

.vw-home-hero__copy {
    max-width: none;
    margin: 0.9rem 0 0;
    color: #667085;
    font-size: 0.96rem;
    line-height: 1.75;
}

@media (min-width: 960px) {
    .vw-home-hero__copy {
        white-space: nowrap;
    }
}

.vw-home-section {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.vw-home-section__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: -0.45rem;
}

.vw-home-section__meta-dot {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 999px;
    background: #14883c;
    flex: 0 0 auto;
}

.vw-home-section__meta-text {
    color: #14883c;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1;
}

.vw-home-section__title {
    color: #1f2937;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.vw-home-snapshot__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.vw-home-snapshot__link {
    text-decoration: none;
}

.vw-home-snapshot__card {
    height: 100%;
    min-height: 11rem;
    padding: 1.05rem 1.1rem 1.15rem;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.vw-home-snapshot__link:hover .vw-home-snapshot__card,
.vw-home-snapshot__link:focus .vw-home-snapshot__card {
    transform: translateY(-2px);
    border-color: rgba(20, 136, 60, 0.22);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.vw-home-directory__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 12px;
    background: rgba(20, 136, 60, 0.08);
}

.vw-home-directory__icon-image {
    width: 1.05rem;
    height: 1.05rem;
    display: block;
}

.vw-home-snapshot__card-title {
    margin: 0.95rem 0 0;
    color: #1f2937;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.vw-home-snapshot__card-value {
    margin: 0.55rem 0 0;
    color: #182230;
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.vw-home-snapshot__card-copy {
    margin: 0.55rem 0 0;
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.55;
}

.vw-home-spotlight {
    display: grid;
    grid-template-columns: minmax(20rem, 1.05fr) minmax(18rem, 1fr);
    gap: 0;
    border: 1px solid #e4eaf2;
    border-radius: 26px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.vw-home-spotlight__media {
    position: relative;
    padding: 1rem;
    background:
        radial-gradient(circle at top left, rgba(20, 136, 60, 0.08), transparent 38%),
        linear-gradient(180deg, #fdfefe 0%, #f8fafc 100%);
}

.vw-home-spotlight__badge {
    display: none;
    position: absolute;
    top: 1.4rem;
    left: 1.4rem;
    z-index: 1;
    padding: 0.38rem 0.75rem;
    border-radius: 999px;
    background: #14883c;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vw-home-spotlight__image {
    width: 100%;
    height: 100%;
    min-height: 24rem;
    object-fit: contain;
    object-position: center;
    display: block;
}

.vw-home-spotlight__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 2.2rem;
}

.vw-home-spotlight__status {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.vw-home-spotlight__status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 999px;
    background: #14883c;
}

.vw-home-spotlight__status-text {
    color: #14883c;
    font-size: 0.88rem;
    font-weight: 700;
}

.vw-home-spotlight__title {
    margin: 0.8rem 0 0;
    color: #182230;
    font-size: clamp(1.85rem, 2.8vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.vw-home-spotlight__copy {
    max-width: 34rem;
    margin: 1rem 0 0;
    color: #667085;
    font-size: 1rem;
    line-height: 1.7;
}

.vw-home-spotlight__metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem 2rem;
    margin-top: 1.4rem;
}

.vw-home-spotlight__metric-label {
    color: #98a2b3;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.vw-home-spotlight__metric-value {
    margin-top: 0.25rem;
    color: #182230;
    font-size: 1.85rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.vw-home-spotlight__metric-value--compact {
    font-size: 1.35rem;
    line-height: 1.2;
}

.vw-home-spotlight__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin-top: 1.65rem;
    padding: 0.9rem 1.35rem;
    border-radius: 999px;
    background: #14883c;
    color: #ffffff;
    font-size: 0.96rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(20, 136, 60, 0.2);
}

.vw-home-spotlight__link:hover,
.vw-home-spotlight__link:focus {
    color: #ffffff;
    background: #106d30;
    text-decoration: none;
}

.edf-intraday-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 0.15rem 0.75rem;
}

.edf-intraday-results-section {
    position: relative;
}

@keyframes edf-intraday-skeleton-shimmer {
    0% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.edf-intraday-skeleton {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 55vh;
}

.edf-intraday-skeleton__card {
    padding: 1.55rem 1.75rem;
    border: 1px solid #e7edf5;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.edf-intraday-skeleton__card--revenue {
    min-height: 33rem;
}

.edf-intraday-skeleton__block,
.edf-intraday-skeleton__revenue-bar,
.edf-intraday-skeleton__tab,
.edf-intraday-skeleton__legend-chip,
.edf-intraday-skeleton__chart-bar {
    background: linear-gradient(
        90deg,
        #edf2f7 0%,
        #f8fafc 50%,
        #edf2f7 100%
    );
    background-size: 220% 100%;
    animation: edf-intraday-skeleton-shimmer 1.35s ease-in-out infinite;
}

.edf-intraday-skeleton__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.3rem;
}

.edf-intraday-skeleton__stack {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.edf-intraday-skeleton__title {
    width: 15.5rem;
    max-width: 60vw;
    height: 2.2rem;
    border-radius: 0.8rem;
}

.edf-intraday-skeleton__meta {
    width: 10.5rem;
    height: 0.95rem;
    border-radius: 999px;
}

.edf-intraday-skeleton__summary {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.55rem;
}

.edf-intraday-skeleton__kicker {
    width: 4.25rem;
    height: 0.75rem;
    border-radius: 999px;
}

.edf-intraday-skeleton__hero-value {
    width: 8.4rem;
    height: 2.8rem;
    border-radius: 1rem;
}

.edf-intraday-skeleton__revenue-bars {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    align-items: end;
    gap: 1rem;
    min-height: 22rem;
    padding: 0.5rem 0 0.35rem;
}

.edf-intraday-skeleton__revenue-bar {
    width: 100%;
    border-radius: 0.9rem 0.9rem 0 0;
}

.edf-intraday-skeleton__axis-labels {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 0.75rem;
}

.edf-intraday-skeleton__axis-label {
    width: 72%;
    height: 0.55rem;
    margin: 0 auto;
    border-radius: 999px;
}

.edf-intraday-skeleton__tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding: 0.15rem;
    border: 1px solid #e4eaf2;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.edf-intraday-skeleton__tab {
    height: 4.25rem;
    border-radius: 14px;
}

.edf-intraday-skeleton__tab--active {
    background: linear-gradient(
        90deg,
        rgba(20, 136, 60, 0.12) 0%,
        rgba(20, 136, 60, 0.18) 50%,
        rgba(20, 136, 60, 0.12) 100%
    );
    background-size: 220% 100%;
    animation: edf-intraday-skeleton-shimmer 1.35s ease-in-out infinite;
}

.edf-intraday-skeleton__legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: 0.7rem 1rem;
    margin: 1.15rem 0 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid #edf2f7;
}

.edf-intraday-skeleton__legend-chip {
    width: 100%;
    height: 0.8rem;
    border-radius: 999px;
}

.edf-intraday-skeleton__chart-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.edf-intraday-skeleton__chart {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 18rem;
}

.edf-intraday-skeleton__chart-title {
    width: 8rem;
    height: 1rem;
    border-radius: 999px;
}

.edf-intraday-skeleton__chart-bars {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    align-items: end;
    gap: 0.7rem;
    flex: 1;
    min-height: 14rem;
}

.edf-intraday-skeleton__chart-bar {
    width: 100%;
    border-radius: 0.65rem 0.65rem 0 0;
}

/* Market Intelligence: the shimmer skeleton is overlaid on each graph and lifted
   (display:none) by a clientside callback once the graph's figure has content. */
.mi-graph-shell {
    position: relative;
    min-height: 22rem;
}

.mi-skeleton-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    background: #ffffff;
    display: flex;
    padding: 0.75rem 0.25rem 0.25rem;
}

.edf-intraday-results-overlay {
    position: absolute;
    inset: 0;
    z-index: 140;
    border-radius: 18px;
    padding: 0;
    background: rgba(248, 250, 252, 0.985);
    backdrop-filter: none;
    overflow: auto;
}

.edf-intraday-results-overlay .edf-intraday-skeleton {
    min-height: 100%;
}

.edf-intraday-revenue-loading-shell {
    position: relative;
    min-height: 33rem;
}

/* Dash marks a callback complete before Plotly has finished painting its SVG.
   Keep the geometry-matched skeleton above the card until Plotly reports the
   populated chart's afterplot event; edf_intraday_chart_ready.js owns the class. */
.edf-intraday-revenue-paint-gate {
    position: relative;
    min-height: 33rem;
}

.edf-intraday-revenue-paint-gate
    > .edf-intraday-revenue-loading-shell {
    visibility: hidden;
}

.edf-intraday-revenue-paint-overlay {
    position: absolute;
    inset: 0;
    z-index: 90;
    overflow: hidden;
    background: #ffffff;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
}

.edf-intraday-revenue-paint-gate.is-plot-ready
    > .edf-intraday-revenue-loading-shell {
    visibility: visible;
}

.edf-intraday-revenue-paint-gate.is-plot-ready
    > .edf-intraday-revenue-paint-overlay {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 0.14s ease-out,
        visibility 0s linear 0.14s;
}

.edf-intraday-revenue-loader,
.edf-intraday-revenue-loader > div {
    min-height: 100%;
}

.edf-intraday-revenue-loader .dash-spinner-container {
    position: absolute !important;
    inset: 0;
    z-index: 80;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: #ffffff;
}

.edf-intraday-revenue-loader .dash-spinner-container > div {
    width: 100%;
    height: 100%;
}

.edf-intraday-revenue-loader .edf-intraday-skeleton__card--revenue {
    width: 100%;
    height: 100%;
}

.edf-intraday-tabbed-results-shell {
    position: relative;
}

.edf-intraday-tabbed-results-loader,
.edf-intraday-tabbed-results-loader > div {
    min-height: 100%;
}

.edf-intraday-tabbed-results-loader .dash-spinner-container {
    position: absolute !important;
    inset: 0;
    z-index: 50;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(248, 250, 252, 0.985);
}

.edf-intraday-tabbed-results-loader .dash-spinner-container > div {
    width: 100%;
    height: 100%;
}

.edf-intraday-skeleton--tabbed {
    width: 100%;
    min-height: 100%;
}

.edf-intraday-skeleton--tabbed .edf-intraday-skeleton__card {
    min-height: 100%;
}

.edf-intraday-revenue-card {
    border: 1px solid var(--intraday-revenue-card-border);
    border-radius: 16px;
    box-shadow: var(--intraday-revenue-card-shadow);
    background: #ffffff;
    overflow: hidden;
}

.edf-intraday-section-card {
    border: 1px solid var(--intraday-revenue-card-border);
    border-radius: 16px;
    box-shadow: var(--intraday-revenue-card-shadow);
    background: #ffffff;
    overflow: visible;
}

.edf-intraday-section-card .card-body {
    padding: 1.55rem 1.9rem 0.95rem;
    border-radius: 16px;
    background: #ffffff;
}

.edf-intraday-revenue-card .card-body {
    padding: 1.55rem 1.9rem 0.95rem;
}

.edf-intraday-revenue-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}

.edf-intraday-revenue-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding-bottom: 1.05rem;
    border-bottom: 1px solid #edf2f7;
}

.edf-intraday-revenue-card__heading {
    min-width: 0;
}

.edf-intraday-revenue-card__title {
    margin: 0;
    color: var(--intraday-revenue-card-text);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    display: inline-block;
    font-size: clamp(1.95rem, 2.35vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.02;
    padding-bottom: 0.35rem;
    border-bottom: 4px solid #14883c;
}

.edf-intraday-section-title {
    margin: 0 0 1rem;
    color: var(--intraday-revenue-card-text);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    display: inline-block;
    font-size: clamp(1.95rem, 2.35vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.12;
    padding-top: 0.08em;
    padding-bottom: 0.35rem;
    border-bottom: 4px solid #14883c;
    text-decoration: none;
    overflow: visible;
}

.edf-intraday-pnl-card__body {
    display: flex;
    flex-direction: column;
}

.edf-intraday-pnl-header {
    margin: 0 0 0.9rem;
    padding-top: 0.15rem;
}

.edf-intraday-pnl-header__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.edf-intraday-pnl-header__meta-label,
.edf-intraday-pnl-header__meta-divider {
    color: #98a2b3;
    font-size: 0.95rem;
    font-weight: 500;
}

.edf-intraday-pnl-header__meta-divider {
    color: #d0d5dd;
}

.edf-intraday-pnl-header__meta-date {
    color: #14883c;
    font-size: 0.95rem;
    font-weight: 700;
}

.edf-intraday-pnl-header__legend-shell {
    position: sticky;
    top: 6.4rem;
    z-index: 60;
    margin: 0 0 1.4rem;
    padding: 0.85rem 0 0.95rem;
    border-top: 1px solid #edf2f7;
    border-bottom: 1px solid #edf2f7;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.95) 100%
    );
    backdrop-filter: saturate(150%) blur(10px);
}

.edf-intraday-pnl-header__legend {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, max-content));
    gap: 0.5rem 1rem;
    align-items: center;
    width: 100%;
}

.edf-intraday-pnl-header__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}

/* Interactive legend (clientside-wired, e.g. SoE Management): click to toggle
   the matching series; dim the row when its series is hidden. */
.edf-intraday-pnl-header__legend-item--interactive {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.12s ease;
}

.edf-intraday-pnl-header__legend-item--interactive:hover {
    opacity: 0.7;
}

.edf-intraday-pnl-header__legend-item--off {
    opacity: 0.3;
}

.edf-intraday-pnl-header__legend-dot {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
    flex: 0 0 auto;
}

.edf-intraday-pnl-header__legend-dot--square {
    border-radius: 0.22rem;
}

.edf-intraday-pnl-header__legend-dot--line,
.edf-intraday-pnl-header__legend-dot--dash {
    width: 1rem;
    height: 0;
    border-radius: 0;
    background: transparent !important;
    border-top: 2px solid;
    box-shadow: none;
}

.edf-intraday-pnl-header__legend-dot--dash {
    border-top-style: dashed;
}

/* Plotly-aligned marker chips (see EDF_TRADES_LEGEND_ITEMS) */
.edf-intraday-pnl-header__legend-dot--circle {
    border-radius: 999px;
}

.edf-intraday-pnl-header__legend-dot--diamond {
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 0.12rem;
    transform: rotate(45deg);
}

.edf-intraday-pnl-header__legend-dot--triangle-up,
.edf-intraday-pnl-header__legend-dot--triangle-down {
    width: 0.78rem;
    height: 0.66rem;
    border-radius: 0;
    box-shadow: none;
}

.edf-intraday-pnl-header__legend-dot--triangle-up {
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}

.edf-intraday-pnl-header__legend-dot--triangle-down {
    clip-path: polygon(0% 0%, 100% 0%, 50% 100%);
}

.edf-intraday-pnl-header__legend-dot--star {
    border-radius: 0;
    box-shadow: none;
    clip-path: polygon(
        50% 0%,
        61% 35%,
        100% 35%,
        68% 57%,
        79% 100%,
        50% 78%,
        21% 100%,
        32% 57%,
        2% 35%,
        39% 35%
    );
}

.edf-intraday-pnl-header__legend-dot--pentagon {
    border-radius: 0;
    box-shadow: none;
    clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
}

.edf-intraday-pnl-header__legend-dot--x {
    border-radius: 0;
    box-shadow: none;
    background-color: transparent !important;
    background-image: linear-gradient(
            45deg,
            transparent 41%,
            currentColor 41%,
            currentColor 59%,
            transparent 59%
        ),
        linear-gradient(
            -45deg,
            transparent 41%,
            currentColor 41%,
            currentColor 59%,
            transparent 59%
        );
}

.edf-intraday-pnl-header__legend-label {
    color: #8a94a6;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.edf-frequency-response-empty {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28rem;
    padding: 1.35rem 0 1.8rem;
}

.edf-frequency-response-empty__panel {
    position: relative;
    width: 100%;
    min-height: 24rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.9rem;
    padding: 2.8rem 2rem;
    border: 1px dashed #dbe6ee;
    border-radius: 20px;
    background: linear-gradient(180deg, #fcfefd 0%, #ffffff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.edf-frequency-response-empty__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
}

.edf-frequency-response-empty__spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
    background: #ffffff;
    z-index: 2;
}

.edf-frequency-response-empty__icon {
    width: 5.3rem;
    height: 5.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid #e7edf3;
    background: radial-gradient(circle at 30% 30%, #ffffff 0%, #f8fbf9 100%);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.edf-frequency-response-empty__icon-bars {
    width: 1.45rem;
    height: 1rem;
    border-radius: 0.3rem;
    border: 2px solid #c7d2e1;
    position: relative;
}

.edf-frequency-response-empty__icon-bars::before,
.edf-frequency-response-empty__icon-bars::after {
    content: "";
    position: absolute;
    bottom: 0.18rem;
    width: 0.18rem;
    border-radius: 999px;
    background: #c7d2e1;
}

.edf-frequency-response-empty__icon-bars::before {
    left: 0.26rem;
    height: 0.32rem;
}

.edf-frequency-response-empty__icon-bars::after {
    left: 0.62rem;
    height: 0.56rem;
    box-shadow: 0.36rem -0.14rem 0 0 #c7d2e1;
}

.edf-frequency-response-empty__title {
    color: #344054;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.edf-frequency-response-empty__copy {
    max-width: 32rem;
    color: #98a2b3;
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.7;
}

.edf-intraday-skeleton--frequency {
    width: 100%;
    min-height: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    padding: 0;
}

.edf-intraday-skeleton--frequency .edf-intraday-skeleton__card {
    width: 100%;
    min-height: 100%;
    height: 100%;
    padding: 1.25rem 0 1.8rem;
    border: none;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
}

.edf-frequency-response-skeleton__chart {
    width: 100%;
    min-height: 24rem;
    height: 100%;
    gap: 1.2rem;
}

.edf-frequency-response-skeleton__bars {
    min-height: 19rem;
    flex: 1;
}

.edf-intraday-revenue-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.edf-intraday-revenue-card__meta-label,
.edf-intraday-revenue-card__meta-divider {
    color: #6b7280;
    font-size: 0.95rem;
    font-weight: 500;
}

.edf-intraday-revenue-card__meta-divider {
    color: #d0d5dd;
}

.edf-intraday-revenue-card__meta-date {
    color: #14883c;
    font-size: 0.95rem;
    font-weight: 700;
}

.edf-intraday-revenue-card__summary {
    min-width: 12rem;
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
    padding-top: 0.05rem;
}

.edf-intraday-revenue-card__kicker {
    color: #a3acba;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.edf-intraday-revenue-card__total {
    color: #111827;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: clamp(2.3rem, 2.8vw, 2.95rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    margin-top: 0;
}

.edf-intraday-revenue-card__graph {
    min-height: 410px;
}

.edf-intraday-revenue-card__hero {
    min-height: 410px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 0.55rem;
}

.edf-intraday-revenue-card__hero-kicker {
    color: #a3acba;
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.edf-intraday-revenue-card__hero-total {
    color: #111827;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: clamp(4.8rem, 12vw, 8.6rem);
    font-weight: 700;
    letter-spacing: -0.07em;
    line-height: 0.92;
}

.edf-intraday-revenue-card__graph .js-plotly-plot,
.edf-intraday-revenue-card__graph .plot-container {
    width: 100%;
}

.edf-intraday-revenue-card__graph .modebar,
.edf-intraday-revenue-card__graph .modebar-group,
.edf-intraday-revenue-card__graph .modebar-btn {
    background: transparent !important;
    box-shadow: none !important;
}

.edf-intraday-revenue-card__graph .modebar {
    padding: 0.2rem;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.92) !important;
}

.edf-intraday-revenue-card__graph .modebar-btn svg {
    fill: #98a2b3 !important;
}

.edf-intraday-revenue-card__graph .modebar-btn:hover svg,
.edf-intraday-revenue-card__graph .modebar-btn:focus svg {
    fill: #667085 !important;
}

.edf-intraday-revenue-card__graph .modebar-btn.active svg,
.edf-intraday-revenue-card__graph .modebar-btn[data-title="Reset axes"] svg,
.edf-intraday-revenue-card__graph .modebar-btn[data-title="Autoscale"] svg {
    fill: #111827 !important;
}

.edf-intraday-filterbar {
    position: sticky;
    top: 0;
    z-index: 500;
}

.edf-intraday-filterbar__surface {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 1.25rem;
    flex-wrap: wrap;
    padding: 1.15rem 1.35rem;
    border: 1px solid #edf2f7;
    border-radius: 22px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfc 100%);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.edf-intraday-filterbar__controls {
    display: flex;
    align-items: flex-end;
    gap: 1rem 1.25rem;
    flex-wrap: wrap;
    flex: 1 1 0;
    min-width: 0;
}

.edf-intraday-filterbar__action {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.edf-intraday-filter {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.42rem;
}

.edf-intraday-filter--date {
    flex: 1.45 1 17.5rem;
    max-width: 27rem;
}

.edf-intraday-filter--asset {
    flex: 1 1 13rem;
    max-width: 17rem;
}

.edf-intraday-filter--toggle {
    flex: 0 1 auto;
    min-width: 12rem;
    justify-content: flex-end;
    padding-bottom: 0.15rem;
}

.edf-intraday-filter__label {
    margin: 0;
    padding-left: 0.15rem;
    color: var(--intraday-filter-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.1;
    text-transform: uppercase;
}

.edf-intraday-filter__control {
    min-height: 50px;
    border: 1px solid var(--intraday-filter-border);
    border-radius: 12px;
    background: var(--intraday-filter-surface);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    overflow: visible;
}

.edf-intraday-filter__control--date {
    padding: 0 0.45rem;
}

.edf-intraday-filter__control--date .DateRangePicker,
.edf-intraday-filter__control--date .DateRangePickerInput {
    width: 100%;
    border: 0;
    background: transparent;
}

.edf-intraday-filter__control--date .DateRangePickerInput__withBorder {
    border: 0;
    background: transparent;
}

.edf-intraday-filter__control--date .DateRangePicker_picker {
    z-index: 1200;
}

.edf-intraday-filter__control--date .DateInput {
    width: calc(50% - 18px);
    background: transparent;
}

.edf-intraday-filter__control--date .DateInput_input {
    height: 48px;
    padding: 0.8rem 0.35rem;
    border: 0;
    background: transparent;
    color: var(--intraday-filter-text);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 600;
}

.edf-intraday-filter__control--date .DateInput_input__focused,
.edf-intraday-filter__control--date .DateInput_input:focus,
.edf-intraday-filter__control--date .DateInput_input:active {
    border: 0;
    box-shadow: none;
    color: #14883c;
}

.edf-intraday-filter__control--date .DateInput_input__disabled {
    color: var(--intraday-filter-text);
    background: transparent;
    font-style: normal;
    opacity: 1;
}

.edf-intraday-filter__control--date .DateRangePickerInput_arrow {
    padding: 0 0.15rem;
    color: var(--intraday-filter-muted);
}

.edf-intraday-filter__control--date .DateRangePickerInput_arrow_svg {
    fill: var(--intraday-filter-muted);
    height: 18px;
    width: 18px;
}

.edf-intraday-filter__control--dropdown .Select-control {
    min-height: 48px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    box-shadow: none;
}

.edf-intraday-filter__control--dropdown .Select-placeholder,
.edf-intraday-filter__control--dropdown .Select-value-label {
    color: var(--intraday-filter-text) !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 48px;
}

.edf-intraday-filter__control--dropdown .Select-input > input {
    color: var(--intraday-filter-text);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.edf-intraday-filter__control--dropdown .Select.is-disabled > .Select-control {
    background: transparent;
}

.edf-intraday-filter__control--dropdown .Select.is-disabled .Select-value-label,
.edf-intraday-filter__control--dropdown .Select.is-disabled .Select-placeholder {
    color: var(--intraday-filter-text) !important;
    opacity: 1;
}

.edf-intraday-filter__control--dropdown .is-focused > .Select-control,
.edf-intraday-filter__control--dropdown .is-open > .Select-control {
    box-shadow: inset 0 0 0 1px #14883c;
}

.edf-intraday-filter__control--dropdown .Select-arrow-zone {
    padding-right: 0.75rem;
}

.edf-intraday-filter__control--dropdown .Select-arrow {
    border-top-color: var(--intraday-filter-muted);
}

.edf-intraday-filter__control--dropdown .is-open > .Select-control .Select-arrow {
    border-top-color: transparent;
    border-bottom-color: var(--intraday-filter-muted);
}

.edf-intraday-filter__control--dropdown .Select-menu-outer {
    margin-top: 0.35rem;
    border: 1px solid var(--intraday-filter-border);
    border-radius: 12px;
    box-shadow: 0 18px 30px rgba(15, 23, 42, 0.08);
    z-index: 1200;
}

.edf-intraday-filter__control--dropdown .VirtualizedSelectFocusedOption,
.edf-intraday-filter__control--dropdown .Select-option.is-focused {
    background: rgba(20, 136, 60, 0.08) !important;
    color: #106d30 !important;
}

.edf-intraday-filter__control--dropdown .Select-option.is-selected {
    background: #14883c !important;
    color: #ffffff !important;
}

.DateRangePicker_picker,
.SingleDatePicker_picker {
    z-index: 1200;
}

.CalendarDay__selected,
.CalendarDay__selected:active,
.CalendarDay__selected:hover {
    background: #14883c;
    border: 1px solid #14883c;
    color: #ffffff;
}

.CalendarDay__selected_span,
.CalendarDay__selected_span:hover,
.CalendarDay__hovered_span,
.CalendarDay__hovered_span:hover {
    background: rgba(20, 136, 60, 0.14);
    border: 1px solid rgba(20, 136, 60, 0.22);
    color: #106d30;
}

.CalendarDay__default:hover {
    background: rgba(20, 136, 60, 0.08);
    border: 1px solid rgba(20, 136, 60, 0.18);
    color: #106d30;
}

.DateInput_input__focused {
    border-bottom: 2px solid #14883c;
}

.DayPickerNavigation_button__default {
    border: 1px solid #d7dee7;
    color: #667085;
}

.DayPickerNavigation_button__default:hover {
    border-color: #14883c;
    color: #14883c;
}

.DayPickerKeyboardShortcuts_show__bottomRight::before {
    border-right-color: #14883c;
}

.DayPickerKeyboardShortcuts_show__bottomRight:hover::before {
    border-right-color: #106d30;
}

.edf-intraday-filter__toggle-row {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
}

.edf-intraday-filter__toggle-copy {
    color: #475467;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.edf-intraday-tabs-shell {
    border: 1px solid #edf2f7;
    border-radius: 20px 20px 0 0;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
    overflow: hidden;
}

.edf-intraday-tabs {
    display: flex;
    align-items: stretch;
    background: #ffffff;
}

.edf-intraday-tab {
    flex: 1 1 0;
    margin: 0 !important;
    padding: 1rem 1.3rem 1.1rem !important;
    border: 0 !important;
    border-bottom: 1px solid #edf2f7 !important;
    background: #ffffff !important;
    color: #98a2b3 !important;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.edf-intraday-tab + .edf-intraday-tab {
    border-left: 1px solid #edf2f7 !important;
}

.edf-intraday-tab:first-child {
    border-top-left-radius: 20px;
}

.edf-intraday-tab:last-child {
    border-top-right-radius: 20px;
}

.edf-intraday-tab:hover {
    background: #f9fcfa !important;
    color: #667085 !important;
}

.edf-intraday-tab--selected {
    background: rgba(20, 136, 60, 0.06) !important;
    color: #14883c !important;
    font-weight: 700;
    box-shadow: inset 0 -2px 0 #14883c;
}

.edf-intraday-tab--selected:hover {
    background: rgba(20, 136, 60, 0.06) !important;
    color: #14883c !important;
}

.edf-intraday-button.btn,
.edf-intraday-button.btn.btn-outline-success {
    color: #14883c;
    border-color: #14883c;
    background-color: #ffffff;
    box-shadow: none;
}

.edf-intraday-button.btn:hover,
.edf-intraday-button.btn:focus,
.edf-intraday-button.btn:active,
.edf-intraday-button.btn.btn-outline-success:hover,
.edf-intraday-button.btn.btn-outline-success:focus,
.edf-intraday-button.btn.btn-outline-success:active {
    color: #ffffff;
    border-color: #14883c;
    background-color: #14883c;
    box-shadow: 0 0 0 0.18rem rgba(20, 136, 60, 0.16);
}

.edf-intraday-button.btn.disabled,
.edf-intraday-button.btn:disabled,
.edf-intraday-button.btn.btn-outline-success.disabled,
.edf-intraday-button.btn.btn-outline-success:disabled {
    color: #98a2b3;
    border-color: #d6deea;
    background-color: #f7f9fc;
    opacity: 1;
}

.edf-intraday-toolbar-button.btn,
.edf-intraday-toolbar-button.btn.btn-success {
    min-height: 50px;
    padding: 0.8rem 1.5rem;
    border: 1px solid #14883c;
    border-radius: 12px;
    background: #14883c;
    color: #ffffff;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(20, 136, 60, 0.22);
}

.edf-intraday-toolbar-button.btn:hover,
.edf-intraday-toolbar-button.btn:focus,
.edf-intraday-toolbar-button.btn:active,
.edf-intraday-toolbar-button.btn.btn-success:hover,
.edf-intraday-toolbar-button.btn.btn-success:focus,
.edf-intraday-toolbar-button.btn.btn-success:active {
    border-color: #106d30;
    background: #106d30;
    color: #ffffff;
    box-shadow: 0 12px 22px rgba(16, 109, 48, 0.24);
}

.edf-intraday-toolbar-button.btn.disabled,
.edf-intraday-toolbar-button.btn:disabled,
.edf-intraday-toolbar-button.btn.btn-success.disabled,
.edf-intraday-toolbar-button.btn.btn-success:disabled {
    border-color: #d6deea;
    background: #f7f9fc;
    color: #98a2b3;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
    opacity: 1;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .vw-app-frame {
        padding: 0.55rem;
    }

    .vw-app-shell {
        --vw-header-gutter: 1rem;
    }

    .vw-main-header {
        padding: 0.85rem var(--vw-header-gutter);
    }

    .vw-main-header__logo {
        width: 124px;
    }

    .vw-main-nav__link.nav-link,
    .vw-main-nav__menu .dropdown-toggle {
        min-height: 2.9rem;
        padding: 0.7rem 0.8rem;
        font-size: 0.9rem;
    }

    .vw-page-hero {
        padding: 1.1rem 1rem 1rem;
    }

    .vw-page-hero__title {
        font-size: 2.25rem;
    }

    .vw-page-content {
        padding: 0 0.2rem 0.8rem;
    }

    .vw-home-page {
        gap: 1.4rem;
        padding: 0.15rem 0.2rem 1rem;
    }

    .vw-home-hero__eyebrow {
        font-size: 0.68rem;
    }

    .vw-home-hero__title {
        font-size: 2.3rem;
    }

    .vw-home-hero__copy {
        font-size: 0.98rem;
    }

    .vw-home-snapshot__grid {
        grid-template-columns: 1fr;
    }

    .vw-home-snapshot__card {
        min-height: 0;
    }

    .vw-home-spotlight {
        grid-template-columns: 1fr;
    }

    .vw-home-spotlight__media {
        padding: 0.85rem;
    }

    .vw-home-spotlight__image {
        min-height: 18rem;
    }

    .vw-home-spotlight__content {
        padding: 1.35rem 1.1rem 1.5rem;
    }

    .edf-intraday-revenue-card .card-body {
        padding: 1.25rem 1rem 0.85rem;
    }

    .edf-intraday-section-card .card-body {
        padding: 1.25rem 1rem 0.85rem;
    }

    .edf-intraday-filterbar__surface {
        padding: 1rem;
    }

    .edf-intraday-filterbar__controls {
        gap: 0.9rem;
    }

    .edf-intraday-filter--date,
    .edf-intraday-filter--asset,
    .edf-intraday-filter--toggle {
        flex: 1 1 100%;
        max-width: none;
        min-width: 0;
    }

    .edf-intraday-filterbar__action {
        margin-left: 0;
        width: 100%;
    }

    .edf-intraday-toolbar-button.btn,
    .edf-intraday-toolbar-button.btn.btn-success {
        width: 100%;
        justify-content: center;
    }

    .edf-intraday-revenue-card__header {
        flex-direction: column;
        gap: 1rem;
    }

    .edf-intraday-revenue-card__summary {
        min-width: 0;
        text-align: left;
        padding-top: 0;
    }

    .edf-intraday-revenue-card__graph {
        min-height: 340px;
    }

    .edf-intraday-revenue-card__hero {
        min-height: 340px;
    }

    .edf-intraday-revenue-card__hero-total {
        font-size: clamp(3.8rem, 17vw, 6rem);
    }

    .edf-intraday-pnl-header {
        margin: 0 0 1.1rem;
        padding: 0;
    }

    .edf-intraday-pnl-header__legend-shell {
        position: static;
        margin: 0 0 1.1rem;
        padding: 0 0 0.95rem;
        border-top: 1px solid #edf2f7;
        border-bottom: 1px solid #edf2f7;
        background: transparent;
        backdrop-filter: none;
    }

    .edf-intraday-pnl-header__legend {
        grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr));
        gap: 0.45rem 0.75rem;
    }

    .edf-intraday-tab {
        padding: 0.9rem 0.75rem 1rem !important;
        font-size: 0.92rem;
    }

    .edf-intraday-filter__control--date .DateInput_input,
    .edf-intraday-filter__control--dropdown .Select-placeholder,
    .edf-intraday-filter__control--dropdown .Select-value-label,
    .edf-intraday-filter__toggle-copy {
        font-size: 0.95rem;
    }
}

/* Loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

#react-entry-point ._dash-loading {
    min-height: 70vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: transparent;
    font-size: 0;
}

#react-entry-point ._dash-loading::after {
    content: "";
    width: 42px;
    height: 42px;
    border: 5px solid rgba(20, 136, 60, 0.18);
    border-top-color: #14883C;
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

/* Reusable in-page spinner that matches the login / initial-load ring,
   for callback-level loading states. Used as `dcc.Loading(custom_spinner=
   html.Div(className="vw-spinner"), ...)`. */
.vw-spinner {
    width: 42px;
    height: 42px;
    border: 5px solid rgba(20, 136, 60, 0.18);
    border-top-color: #14883C;
    border-radius: 50%;
    animation: spin 0.85s linear infinite;
}

/* Home Grid Health reserves its final geometry without introducing another
   spinner after the application shell has loaded. */
@keyframes grid-health-skeleton-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.grid-health-skeleton {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
}

.grid-health-skeleton__value,
.grid-health-skeleton__label,
.grid-health-skeleton__line {
    border-radius: 999px;
    background: linear-gradient(90deg, #e7ece9 25%, #f6f8f7 50%, #e7ece9 75%);
    background-size: 200% 100%;
    animation: grid-health-skeleton-shimmer 1.2s ease-in-out infinite;
}

.grid-health-skeleton__value {
    width: 8rem;
    height: 2.6rem;
}

.grid-health-skeleton__label {
    width: 14rem;
    max-width: 70%;
    height: 0.75rem;
}

.grid-health-skeleton__line {
    width: 100%;
    height: 0.3rem;
    margin-top: 0.35rem;
}

@media (prefers-reduced-motion: reduce) {
    .grid-health-skeleton__value,
    .grid-health-skeleton__label,
    .grid-health-skeleton__line {
        animation: none;
    }
}

/* Keep the optimiser strategy switch available while reviewing long chart stacks. */
.pf-strategy-tabs .tab-container {
    position: sticky;
    top: 0;
    z-index: 600;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(16, 24, 40, 0.12);
}

/* Wide first-class reports share one container and navbar alignment. */
.report-page--wide {
    width: min(calc(100% - clamp(2rem, 5vw, 5rem)), 1640px);
    margin-inline: auto;
    padding-right: 0;
    padding-left: 0;
}

.vw-app-shell:has(.report-page--wide) .vw-page-hero {
    width: min(calc(100% - clamp(2rem, 5vw, 5rem)), 1640px);
    margin-inline: auto;
    padding-right: 0;
    padding-left: 0;
}

.vw-app-shell:has(.report-page--wide) .vw-page-content {
    padding-right: 0;
    padding-left: 0;
}

.edf-overview-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.edf-overview-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.edf-overview-kpi-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.2rem 1.45rem;
    border: 1px solid var(--intraday-revenue-card-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: var(--intraday-revenue-card-shadow);
}

.edf-overview-kpi-card__label {
    color: var(--intraday-filter-muted);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.1;
    text-transform: uppercase;
}

.edf-overview-kpi-card__value {
    color: var(--intraday-revenue-card-text);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: clamp(1.45rem, 1.85vw, 1.9rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.edf-overview-kpi-card__value--accent {
    color: var(--intraday-revenue-card-accent);
}

.edf-overview-chart-subtitle {
    margin: 0.9rem 0 0.15rem;
    color: var(--intraday-filter-text);
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.2;
}

/* the section header already carries 0.9rem bottom margin; flex children
   don't collapse margins, so zero the first subtitle's own top margin */
.edf-intraday-pnl-header + .edf-overview-chart-subtitle {
    margin-top: 0;
}

/* BESS Markets uses the same first-class report foundation as EDF Overview. */
.bess-markets-filter--wholesale {
    flex: 1.35 1 20rem;
    max-width: 30rem;
}

.bess-markets-filter-label-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.bess-markets-filter-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.05rem;
    height: 1.05rem;
    border: 1px solid #b8c2cf;
    border-radius: 999px;
    color: #667085;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    cursor: help;
}

.bess-markets-report-body,
.bess-markets-results,
.bess-markets-results-shell {
    min-width: 0;
}

.bess-markets-results {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.bess-markets-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.bess-markets-card-header .edf-intraday-pnl-header {
    margin-bottom: 0;
}

.bess-markets-download-button.btn {
    flex: 0 0 auto;
    margin-top: 0.2rem;
    padding: 0.55rem 0.85rem;
    border-radius: 10px;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
}

.bess-markets-card-grid {
    display: grid;
    align-items: stretch;
    gap: 1.25rem;
    min-width: 0;
}

.bess-markets-card-grid--summary {
    grid-template-columns: minmax(15rem, 0.28fr) minmax(0, 1fr);
}

.bess-markets-card-grid--map {
    grid-template-columns: minmax(19rem, 0.34fr) minmax(0, 1fr);
}

.bess-markets-summary-table {
    min-width: 0;
    padding-top: 0.35rem;
}

.bess-markets-graph {
    min-width: 0;
    min-height: 26rem;
}

.bess-markets-graph--tall,
.bess-markets-graph--map {
    min-height: 38rem;
}

.bess-markets-card-note,
.bess-markets-card-notes {
    margin: 0.7rem 0 0;
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.5;
}

.bess-markets-card-notes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem 1.5rem;
    padding-top: 0.85rem;
    border-top: 1px solid #edf2f7;
}

.bess-markets-card-notes p {
    margin: 0;
}

.bess-markets-kpi-card__suffix {
    display: block;
    margin-top: 0.25rem;
    color: #98a2b3;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0;
}

.bess-markets-skeleton__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.bess-markets-skeleton__grid .edf-intraday-skeleton__card {
    min-height: 23rem;
}

.bess-markets-error {
    padding: clamp(2rem, 5vw, 4rem);
    border-style: solid;
    background: #ffffff;
    text-align: center;
}

.bess-markets-error__eyebrow {
    margin-bottom: 0.55rem;
    color: #14883c;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.bess-markets-error h3 {
    color: #1f2937;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    font-weight: 700;
}

.bess-markets-error p {
    max-width: 38rem;
    margin: 0.65rem auto;
    color: #667085;
}

.bess-markets-error__detail {
    color: #98a2b3;
}

.bess-markets-data-components {
    display: contents;
}

@media (max-width: 991.98px) {
    .edf-overview-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bess-markets-card-grid--summary,
    .bess-markets-card-grid--map,
    .bess-markets-skeleton__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bess-markets-filter--wholesale {
        flex: 1 1 100%;
        max-width: none;
    }
}

@media (max-width: 575.98px) {
    .report-page--wide,
    .vw-app-shell:has(.report-page--wide) .vw-page-hero {
        width: calc(100% - 1rem);
    }

    .edf-overview-kpi-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .bess-markets-card-header {
        align-items: stretch;
        flex-direction: column;
    }

    .bess-markets-page .edf-intraday-filterbar {
        position: static;
    }

    .bess-markets-download-button.btn {
        width: 100%;
    }

    .bess-markets-card-notes {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (min-width: 1600px) {
    .vw-app-shell:has(.report-page--wide) .vw-main-header {
        --wide-report-grid-width: 1640px;
        padding-right: max(
            1.35rem,
            calc((100% - var(--wide-report-grid-width)) / 2 - 0.5rem)
        );
        padding-left: max(
            1.35rem,
            calc((100% - var(--wide-report-grid-width)) / 2 - 0.5rem)
        );
    }
}

/* Ask AI */
.vw-main-nav__ask-item {
    display: flex;
    align-items: center;
    margin-left: 0.25rem;
}

.vw-main-nav__ask-lockup {
    display: inline-flex;
    gap: 0.36rem;
    align-items: center;
}

.vw-main-nav__ask-label {
    font-weight: inherit;
}

.vw-main-nav__beta {
    padding: 0.22rem 0.35rem 0.2rem;
    border: 0;
    background: #f7d979 !important;
    color: #5b4300;
    box-shadow: none;
    font-size: 0.55rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1;
    text-transform: uppercase;
}

.vw-ask-page {
    width: min(calc(100% - 2rem), 1560px);
    margin-inline: auto;
    padding: 0.3rem 0 1.4rem;
    color: #182230;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
}

.vw-ask-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
    gap: 1.1rem;
    align-items: start;
}

.vw-ask-workspace--empty {
    display: block;
    max-width: 1240px;
    margin-inline: auto;
}

.vw-ask-main {
    min-width: 0;
}

.vw-ask-showcase {
    position: relative;
    padding: clamp(0.4rem, 1vw, 0.9rem) 0 1rem;
}

.vw-ask-showcase__intro {
    position: relative;
    overflow: hidden;
    max-width: none;
    margin-bottom: 1.1rem;
    padding: clamp(1.35rem, 2.5vw, 2.2rem);
    border: 1px solid #dce9e1;
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 5%, rgba(67, 186, 108, 0.18), transparent 31%),
        linear-gradient(135deg, #f6fcf8 0%, #ffffff 62%);
}

.vw-ask-showcase__eyebrow,
.vw-ask-card__eyebrow,
.vw-ask-catalogue__eyebrow,
.vw-ask-result-panel__eyebrow {
    color: #14883c;
    font-size: 0.69rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    line-height: 1;
    text-transform: uppercase;
}

.vw-ask-showcase__title {
    margin: 0.45rem 0 0;
    color: #172033;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.vw-ask-showcase__copy {
    max-width: 680px;
    margin: 0.65rem 0 0;
    color: #667085;
    font-size: 0.96rem;
    line-height: 1.65;
}

.vw-ask-showcase__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.2rem;
}

.vw-ask-showcase__stat {
    display: inline-flex;
    gap: 0.42rem;
    align-items: baseline;
    padding: 0.58rem 0.74rem;
    border: 1px solid rgba(20, 136, 60, 0.13);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.78);
    color: #667085;
    font-size: 0.74rem;
}

.vw-ask-showcase__stat strong {
    color: #0f7434;
    font-size: 0.92rem;
    font-weight: 800;
}

.vw-ask-showcase__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.vw-ask-domain-card {
    position: relative;
    overflow: hidden;
    padding: clamp(1.25rem, 2.2vw, 1.8rem);
    border: 1px solid #dfe9e3;
    border-radius: 22px;
    background:
        radial-gradient(circle at 94% 5%, rgba(20, 136, 60, 0.11), transparent 28%),
        linear-gradient(145deg, #ffffff 0%, #fbfdfc 100%);
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.vw-ask-domain-card::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, #14883c, #5bc681 62%, #d7efdf);
    content: "";
}

.vw-ask-domain-card:hover {
    transform: translateY(-3px);
    border-color: #c8ded0;
    box-shadow: 0 20px 42px rgba(15, 23, 42, 0.09);
}

.vw-ask-card__header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.vw-ask-card__title {
    margin: 0.42rem 0 0;
    color: #172033;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.vw-ask-card__count {
    flex: none;
    padding: 0.48rem 0.7rem;
    background: #eaf7ef !important;
    color: #0b7030;
    font-size: 0.7rem;
    font-weight: 700;
}

.vw-ask-card__description {
    max-width: 850px;
    margin: 0.8rem 0 0;
    color: #475467;
    font-size: 0.95rem;
    line-height: 1.62;
}

.vw-ask-card__coverage {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    margin-top: 0.9rem;
    color: #667085;
    font-size: 0.8rem;
    line-height: 1.45;
}

.vw-ask-card__coverage-label {
    padding: 0.23rem 0.46rem;
    border-radius: 999px;
    background: #f0f4f1;
    color: #344054;
    font-size: 0.63rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.vw-ask-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
    margin-top: 1.3rem;
    padding-top: 1.2rem;
    border-top: 1px solid #e8eeea;
}

.vw-ask-card__section-title {
    margin: 0 0 0.7rem;
    color: #344054;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.vw-ask-metric-chips,
.vw-ask-example-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.vw-ask-metric-chip {
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    padding: 0.52rem 0.68rem;
    border: 1px solid #dde6e0;
    border-radius: 10px;
    background: #ffffff;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.25;
}

.vw-ask-metric-chip__unit {
    padding: 0.17rem 0.35rem;
    border-radius: 6px;
    background: #eff6f1;
    color: #14883c;
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.vw-ask-example-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.58rem 0.76rem;
    border: 1px solid #cfe0d5;
    border-radius: 999px;
    background: #f7fbf8;
    color: #126f35;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.vw-ask-example-chip::before {
    margin-right: 0.42rem;
    color: #24a154;
    content: "↗";
    font-size: 0.8rem;
}

.vw-ask-example-chip:hover,
.vw-ask-example-chip:focus-visible {
    transform: translateY(-2px);
    border-color: #84ba98;
    outline: none;
    box-shadow: 0 7px 16px rgba(20, 136, 60, 0.11);
}

.vw-ask-chat-shell {
    position: relative;
    height: clamp(570px, calc(100vh - 260px), 760px);
    min-height: 570px;
}

.vw-ask-workspace--empty .vw-ask-chat-shell {
    width: 100%;
    height: auto;
    min-height: 0;
    margin: 0.25rem auto 0;
}

.vw-ask-workspace--empty .vw-ask-chat {
    height: auto !important;
    min-height: 0;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
}

.vw-ask-workspace--empty .vw-ask-chat .chat-messages {
    display: none;
}

.vw-ask-workspace--conversation .vw-ask-showcase {
    display: none;
}

.vw-ask-workspace--empty .vw-ask-catalogue {
    display: none;
}

.vw-ask-chat .chat-messages {
    gap: 0.15rem;
    padding: 0.7rem;
}

.vw-ask-chat .chat-bubble {
    margin-bottom: 0.75rem;
    box-shadow: 0 3px 9px rgba(15, 23, 42, 0.035);
}

.vw-ask-chat .markdown-content p {
    margin: 0.45rem 0;
    line-height: 1.55;
}

.vw-ask-chat .message-input-container {
    flex: none;
    overflow: hidden;
    margin-top: 0.6rem;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07);
}

.vw-ask-chat .message-input-field {
    height: 58px;
    min-height: 58px;
    padding: 0.82rem 0.95rem 0.35rem;
    line-height: 1.45;
}

.vw-ask-chat .file-upload-button {
    display: none;
}

.vw-ask-chat .input-with-icons {
    min-height: 36px;
    padding: 0 0.55rem 0.45rem;
}

.vw-ask-chat .message-input-button {
    display: inline-flex;
    width: 31px;
    height: 31px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #14883c;
    color: #ffffff;
}

.vw-ask-chat .message-input-button:hover:not(:disabled) {
    background: #0f7131;
}

.vw-ask-chat .message-input-button.disabled {
    background: #a7b8ad;
}

.vw-ask-chat .typing-indicator {
    display: none !important;
}

.vw-ask-status {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
}

.vw-ask-thinking {
    position: absolute;
    z-index: 8;
    inset: 0.8rem 0.8rem 7.5rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(198, 222, 207, 0.9);
    border-radius: 16px;
    background:
        radial-gradient(circle at 50% 42%, rgba(82, 201, 123, 0.16), transparent 35%),
        rgba(248, 252, 249, 0.94);
    backdrop-filter: blur(8px);
}

.vw-ask-thinking--hidden {
    display: none;
}

.vw-ask-thinking--active {
    animation: vw-ask-thinking-arrive 0.32s ease-out both;
}

.vw-ask-thinking__card {
    width: min(calc(100% - 2rem), 500px);
    padding: 2rem 1.5rem 1.7rem;
    text-align: center;
}

.vw-ask-thinking__signal {
    position: relative;
    display: grid;
    width: 88px;
    height: 88px;
    place-items: center;
    margin: 0 auto 1.35rem;
}

.vw-ask-thinking__orbit {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(20, 136, 60, 0.22);
    border-top-color: #14883c;
    border-right-color: rgba(20, 136, 60, 0.65);
    border-radius: 50%;
    animation: vw-ask-thinking-orbit 1.55s linear infinite;
}

.vw-ask-thinking__orbit::before,
.vw-ask-thinking__orbit::after {
    position: absolute;
    border: 1px solid rgba(20, 136, 60, 0.12);
    border-radius: 50%;
    content: "";
}

.vw-ask-thinking__orbit::before {
    inset: 9px;
}

.vw-ask-thinking__orbit::after {
    inset: 19px;
}

.vw-ask-thinking__mark {
    box-sizing: border-box;
    width: 48px;
    height: 48px;
    padding: 10px 8px;
    border-radius: 15px;
    background: linear-gradient(145deg, #23a654, #087333);
    box-shadow:
        0 0 0 8px rgba(20, 136, 60, 0.08),
        0 10px 22px rgba(10, 112, 47, 0.2);
    animation: vw-ask-thinking-mark 1.25s ease-in-out infinite;
}

.vw-ask-thinking__spark {
    position: absolute;
    top: 2px;
    left: 50%;
    width: 8px;
    height: 8px;
    margin-left: -4px;
    border: 2px solid rgba(255, 255, 255, 0.98);
    border-radius: 50%;
    background: #e7fff0;
    box-shadow:
        0 0 0 2px rgba(35, 166, 84, 0.14),
        0 0 10px rgba(20, 136, 60, 0.42);
    animation: vw-ask-thinking-orbit 1.55s linear infinite;
    transform-origin: 4px 42px;
}

.vw-ask-thinking__eyebrow {
    color: #14883c;
    font-size: 0.68rem;
    font-weight: 850;
    letter-spacing: 0.18em;
}

.vw-ask-thinking__title {
    margin: 0.5rem 0 0;
    color: #172033;
    font-size: clamp(1.6rem, 3vw, 2.15rem);
    font-weight: 750;
    letter-spacing: -0.045em;
}

.vw-ask-thinking__copy {
    max-width: 410px;
    margin: 0.65rem auto 0;
    color: #667085;
    font-size: 0.88rem;
    line-height: 1.55;
}

.vw-ask-thinking__bars {
    display: flex;
    height: 28px;
    gap: 5px;
    align-items: center;
    justify-content: center;
    margin-top: 1.15rem;
}

.vw-ask-thinking__bars span {
    width: 4px;
    height: 8px;
    border-radius: 999px;
    background: #14883c;
    animation: vw-ask-thinking-bar 1s ease-in-out infinite;
}

.vw-ask-thinking__bars span:nth-child(2),
.vw-ask-thinking__bars span:nth-child(4) {
    animation-delay: 0.12s;
}

.vw-ask-thinking__bars span:nth-child(3) {
    animation-delay: 0.24s;
}

@keyframes vw-ask-thinking-arrive {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes vw-ask-thinking-orbit {
    to {
        transform: rotate(360deg);
    }
}

@keyframes vw-ask-thinking-mark {
    0%,
    100% {
        transform: scale(0.94);
    }
    50% {
        transform: scale(1.06);
    }
}

@keyframes vw-ask-thinking-bar {
    0%,
    100% {
        height: 7px;
        opacity: 0.45;
    }
    50% {
        height: 24px;
        opacity: 1;
    }
}

.vw-ask-catalogue {
    position: sticky;
    top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1.05rem;
    border: 1px solid #e0e8e3;
    border-radius: 18px;
    background: #fbfdfc;
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.vw-ask-catalogue__header {
    padding: 0.15rem 0.15rem 0.85rem;
    border-bottom: 1px solid #e5ebe7;
}

.vw-ask-catalogue__title {
    margin: 0.4rem 0 0;
    color: #182230;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.vw-ask-catalogue__domain-section {
    padding: 1rem 0.1rem 0.2rem;
}

.vw-ask-catalogue__domain {
    margin: 0;
    color: #24312a;
    font-size: 0.93rem;
    font-weight: 750;
}

.vw-ask-catalogue__coverage {
    margin: 0.35rem 0 0.85rem;
    color: #667085;
    font-size: 0.7rem;
    line-height: 1.45;
}

.vw-ask-catalogue__metrics {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.vw-ask-catalogue__metric {
    padding: 0.7rem;
    border: 1px solid #e3eae5;
    border-radius: 12px;
    background: #ffffff;
}

.vw-ask-catalogue__metric-header {
    display: flex;
    gap: 0.55rem;
    align-items: flex-start;
    justify-content: space-between;
}

.vw-ask-catalogue__metric-name {
    margin: 0;
    color: #344054;
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.35;
}

.vw-ask-catalogue__unit {
    flex: none;
    padding: 0.18rem 0.34rem;
    border-radius: 6px;
    background: #edf6f0;
    color: #14883c;
    font-size: 0.57rem;
    font-weight: 800;
}

.vw-ask-catalogue__description {
    margin: 0.45rem 0;
    color: #667085;
    font-size: 0.68rem;
    line-height: 1.48;
}

.vw-ask-catalogue__grains {
    color: #667085;
    font-size: 0.62rem;
    line-height: 1.4;
}

.vw-ask-catalogue__meta-label {
    margin-right: 0.38rem;
    color: #344054;
    font-weight: 800;
    text-transform: uppercase;
}

.vw-ask-catalogue__examples {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    margin-top: 0.9rem;
}

.vw-ask-catalogue__examples-title {
    color: #344054;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.vw-ask-catalogue .vw-ask-example-chip {
    width: 100%;
    padding: 0.48rem 0.6rem;
    border-radius: 10px;
    font-size: 0.67rem;
}

.vw-ask-latest-result--hidden {
    display: none;
}

.vw-ask-result-panel {
    margin-top: 0.8rem;
    padding: 1rem;
    border: 1px solid #e0e8e3;
    border-radius: 18px;
    background: #ffffff;
}

.vw-ask-result-panel__header {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    justify-content: space-between;
}

.vw-ask-result-panel__note {
    color: #667085;
    font-size: 0.72rem;
}

.vw-ask-result-table {
    overflow: hidden;
    border-radius: 10px;
    color: #344054;
}

/* dash_chat renders result tables as a plain <table> and drops the
   class_name prop, so target the table inside the chat container directly.
   Its default header is blue; force it onto the green theme. */
.vw-ask-chat table thead th,
.vw-ask-chat table th,
.vw-ask-chat .markdown-content .vw-ask-result-table th,
.vw-ask-result-table th {
    padding: 0.55rem 0.7rem !important;
    border-color: #dfe7e2 !important;
    background: #14883c !important;
    color: #ffffff !important;
    font-size: 0.7rem;
}

.vw-ask-chat table tbody td,
.vw-ask-chat table td,
.vw-ask-chat .markdown-content .vw-ask-result-table td,
.vw-ask-result-table td {
    padding: 0.48rem 0.7rem !important;
    border-color: #e6ece8 !important;
    color: #344054;
    font-size: 0.7rem;
}

.vw-ask-dependency-notice {
    padding: 1rem;
    border: 1px solid #efd58b;
    border-radius: 14px;
    background: #fff9e8;
    color: #594b22;
}

@media (max-width: 1100px) {
    .vw-ask-showcase__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vw-ask-workspace {
        grid-template-columns: minmax(0, 1fr);
    }

    .vw-ask-catalogue {
        position: static;
        max-height: none;
    }

    .vw-ask-catalogue__metrics {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .vw-ask-page {
        width: calc(100% - 0.7rem);
    }

    .vw-ask-card__body {
        grid-template-columns: minmax(0, 1fr);
    }

    .vw-ask-showcase__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .vw-ask-catalogue__metrics {
        grid-template-columns: minmax(0, 1fr);
    }

    .vw-ask-chat-shell {
        height: 610px;
        min-height: 610px;
    }

    .vw-ask-workspace--empty .vw-ask-chat-shell {
        height: auto;
        min-height: 0;
    }

    .vw-ask-thinking {
        inset: 0.5rem 0.5rem 7.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vw-ask-domain-card,
    .vw-ask-example-chip {
        transition: none;
    }

    .vw-ask-thinking--active,
    .vw-ask-thinking__orbit,
    .vw-ask-thinking__spark,
    .vw-ask-thinking__mark,
    .vw-ask-thinking__bars span {
        animation: none;
    }
}
