/* ════════════════════════════════════════════════════════════════════
   Home dashboard — Features/Home/Components/DashboardView.razor (dsh-*)
   Also used by the drill-through reports' chart header and the news page.

   Reads as: a calm hero, three things to do today, four headline numbers,
   then panels. One typeface throughout, the portal's own (--ev-font):
   headings and figures differ from body text by size and weight only
   (titles 600, figures 700, the greeting 650, as in the ev- library).
   Tabular numerals, 18px panels on a hairline border, one soft brand wash
   behind the hero.

   Every colour comes from css/ev/tokens.css (--ev-*): no colour is written
   in this file, so per-brand colours and html[data-theme="dark"] work with
   no extra rules. The three chart series colours (electricity, gas, other)
   are the theme's fixed fuel tokens, validated for colour-blind separation
   on both surfaces. The header is a deep brand panel with white ink in both
   themes, so its frosted controls are all mixes of --ev-on-brand.

   Motion is entrance-only and short; prefers-reduced-motion turns it off.
   Entrance animations fill BACKWARDS only: a transform animation that keeps
   filling forwards makes its element the containing block for fixed
   overlays inside it, which clipped the header's dialogs.

   The element resets below are wrapped in :where() so they never outrank
   the styles of components placed inside the dashboard (ev- cards, the
   All tools dialog).
   ════════════════════════════════════════════════════════════════════ */

.dsh {
    --dsh-radius: 18px;
    --dsh-gap: 18px;
    --dsh-body: var(--ev-font);
    /* Headings and figures. Kept as its own variable so the two roles stay easy to tell apart. */
    --dsh-display: var(--ev-font);
    --dsh-elec: var(--ev-fuel-elec);
    --dsh-gas: var(--ev-fuel-gas);
    --dsh-other: var(--ev-fuel-other);
    /* "Something new" on the dark header: the success green lifted towards the header's ink. */
    --dsh-fresh: color-mix(in oklch, var(--ev-success) 45%, var(--ev-on-brand));
    --dsh-ease: cubic-bezier(0.22, 1, 0.36, 1);
    font-family: var(--dsh-body);
    color: var(--ev-text);
    font-size: 0.875rem;
    line-height: 1.5;
    max-width: 1360px;
    margin-inline: auto;
}
.dsh-vars { --dsh-elec: var(--ev-fuel-elec); --dsh-gas: var(--ev-fuel-gas); --dsh-other: var(--ev-fuel-other); --dsh-display: var(--ev-font); }

:where(.dsh) a { color: inherit; text-decoration: none; }
:where(.dsh) :is(h1, h2, h3) { font-family: var(--dsh-display); text-wrap: balance; margin: 0; }
:where(.dsh) :is(p, ul, dl, dd) { margin: 0; }
:where(.dsh) ul { padding: 0; list-style: none; }
:where(.dsh) .material-icons { font-size: 18px; line-height: 1; }

/* Whole cards and buttons that are links: the site's generic a:hover (underline, link colour)
   must not reach them. Stated per component, in every link state, because the reset above is
   deliberately too weak to do it. Text links (.dsh-link, .dsh-more a) keep their underline. */
:is(.dsh-focus-card, .dsh-kpi, .dsh-spot-card, .dsh-row-main):is(:link, :visited, :hover, :focus, :active) { color: var(--ev-text); text-decoration: none; }
:is(.dsh-news, .dsh-hero .dsh-btn):is(:link, :visited, :hover, :focus, :active) { color: var(--ev-on-brand); text-decoration: none; }
:is(.dsh-btn, .dsh-row-cta, .dsh-row-title, .dsh-chip, .dsh-table .dsh-open):is(:hover, :focus, :active) { text-decoration: none; }
.dsh-btn:is(:link, :visited, :hover, :focus, :active) { color: var(--ev-text); }

.dsh-micro { font-size: 0.75rem; font-weight: 600; color: var(--ev-text-muted); letter-spacing: 0.01em; }

@keyframes dsh-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes dsh-grow-y { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dsh-grow-x { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dsh-pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--dsh-fresh, var(--ev-success)) 60%, transparent); } 70%, 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes dsh-spin { to { transform: rotate(360deg); } }
@keyframes dsh-shimmer { to { background-position: -200% 0; } }
@keyframes dsh-draw { from { stroke-dasharray: 0 100; } }

/* ── Hero ───────────────────────────────────────────────────────────── */
.dsh-hero {
    /* No isolation/position here: the header's dialogs (All tools, Service status) are fixed
       overlays rendered inside it and must sit in the page's own stacking order. */
    overflow: hidden;
    display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap;
    padding: 28px 30px; margin: 4px 0 20px;
    border-radius: calc(var(--dsh-radius) + 6px);
    /* A deep brand panel that keeps white ink in both themes. The theme's brand-strong
       tokens clamp a pale white-label brand colour dark enough to carry it. Never
       --ev-primary: in dark mode that is a light tint. */
    --dsh-hero-a: var(--ev-brand-strong);
    --dsh-hero-b: var(--ev-brand-strong-2);
    --dsh-hero-ink: var(--ev-on-brand);
    background:
        radial-gradient(70% 130% at 100% 0%, color-mix(in srgb, var(--dsh-hero-b) 62%, transparent), transparent 62%),
        radial-gradient(55% 120% at 0% 110%, color-mix(in srgb, var(--dsh-hero-a) 55%, var(--brand-accent)), transparent 66%),
        linear-gradient(135deg, oklch(from var(--dsh-hero-a) calc(l - 0.07) c h) 0%, var(--dsh-hero-a) 52%, color-mix(in srgb, var(--dsh-hero-a) 58%, var(--dsh-hero-b)) 100%);
    color: var(--dsh-hero-ink);
    box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--dsh-hero-a) 70%, transparent);
    animation: dsh-rise 0.5s var(--dsh-ease) backwards;
}
.dsh-hero-text { min-width: 0; }
.dsh-eyebrow { font-size: 0.8125rem; font-weight: 600; color: color-mix(in srgb, var(--ev-on-brand) 76%, transparent); display: flex; gap: 6px; flex-wrap: wrap; }
.dsh-eyebrow a { color: var(--ev-on-brand); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--ev-on-brand) 45%, transparent); text-underline-offset: 3px; }
.dsh-eyebrow a:hover { text-decoration-color: var(--ev-on-brand); }
.dsh-title { font-size: clamp(1.7rem, 1.25rem + 1.5vw, 2.4rem); line-height: 1.12; font-weight: 650; letter-spacing: -0.028em; margin-top: 6px; color: var(--ev-on-brand); }
.dsh-sub { margin-top: 10px; color: color-mix(in srgb, var(--ev-on-brand) 80%, transparent); display: flex; gap: 6px; flex-wrap: wrap; }
.dsh-stale { color: var(--ev-priority-medium); }
.dsh-hero-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; min-width: 0; max-width: 100%; }
.dsh-hero-buttons { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }

.dsh-btn {
    display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px;
    font: inherit; font-weight: 600; color: var(--ev-text);
    background: var(--ev-surface); border: 1px solid var(--ev-border-strong); border-radius: 999px;
    cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.dsh-btn:hover:not(:disabled) { border-color: var(--ev-primary); transform: translateY(-1px); }
/* On the gradient header every control is frosted glass: the page's own buttons and the
   All tools / Service status buttons the home page slots in. */
.dsh-hero .dsh-btn, .dsh-hero .dash-refresh-btn, .dsh-news {
    display: inline-flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 14px;
    font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--ev-on-brand);
    background: color-mix(in srgb, var(--ev-on-brand) 13%, transparent); border: 1px solid color-mix(in srgb, var(--ev-on-brand) 28%, transparent); border-radius: 999px;
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    cursor: pointer; transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.dsh-hero .dsh-btn:hover:not(:disabled), .dsh-hero .dash-refresh-btn:hover:not(:disabled), .dsh-news:hover {
    background: color-mix(in srgb, var(--ev-on-brand) 22%, transparent); border-color: color-mix(in srgb, var(--ev-on-brand) 55%, transparent); transform: translateY(-1px);
}
.dsh-btn:disabled { opacity: 0.6; cursor: progress; }
.dsh-spin { animation: dsh-spin 0.9s linear infinite; }
.dsh :is(a, button, select, [tabindex]):focus-visible { outline: 2px solid var(--ev-primary); outline-offset: 2px; }
.dsh-hero :is(a, button, select):focus-visible, .dsh-news:focus-visible { outline-color: var(--ev-on-brand); }

/* ── News ticker (always sits on a dark header: this one, or the older home hero) ── */
.dsh-news { gap: 10px; max-width: min(440px, 100%); padding-right: 8px; }
.dsh-news-dot { flex: 0 0 auto; width: 8px; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--ev-on-brand) 55%, transparent); }
.dsh-news.is-fresh .dsh-news-dot { background: var(--dsh-fresh, var(--ev-success)); animation: dsh-pulse 1.8s ease-out infinite; }
.dsh-news-label { flex: 0 0 auto; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: color-mix(in srgb, var(--ev-on-brand) 70%, transparent); }
.dsh-news.is-fresh .dsh-news-label { color: color-mix(in oklch, var(--ev-success) 30%, var(--ev-on-brand)); }
.dsh-news-window { flex: 1 1 auto; min-width: 0; height: 1.5em; overflow: hidden; }
.dsh-news-reel { display: flex; flex-direction: column; }
.dsh-news-line { height: 1.5em; line-height: 1.5; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dsh-news-reel--2 { animation: dsh-reel-2 10s var(--dsh-ease) infinite; }
.dsh-news-reel--3 { animation: dsh-reel-3 15s var(--dsh-ease) infinite; }
.dsh-news:hover .dsh-news-reel, .dsh-news:focus-visible .dsh-news-reel { animation-play-state: paused; }
@keyframes dsh-reel-2 { 0%, 44% { transform: translateY(0); } 50%, 94% { transform: translateY(-1.5em); } 100% { transform: translateY(0); } }
@keyframes dsh-reel-3 { 0%, 28% { transform: translateY(0); } 33%, 61% { transform: translateY(-1.5em); } 66%, 94% { transform: translateY(-3em); } 100% { transform: translateY(0); } }
.dsh-news-go { flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--ev-on-brand) 18%, transparent); color: var(--ev-on-brand); font-size: 15px !important; }

/* ── Partner picker ─────────────────────────────────────────────────── */
.dsh-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.dsh-picker .dsh-micro { color: color-mix(in srgb, var(--ev-on-brand) 76%, transparent); }
.dsh-select {
    font: inherit; font-weight: 600; color: var(--ev-on-brand); background: color-mix(in srgb, var(--ev-on-brand) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--ev-on-brand) 28%, transparent); border-radius: 10px; padding: 7px 12px; min-height: 36px; max-width: min(360px, 100%);
}
.dsh-select option { color: var(--ev-text); background: var(--ev-surface); }
.dsh-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.dsh-chip-btn {
    font: inherit; font-weight: 600; min-height: 32px; padding: 0 14px; cursor: pointer;
    color: color-mix(in srgb, var(--ev-on-brand) 85%, transparent); background: color-mix(in srgb, var(--ev-on-brand) 10%, transparent); border: 1px solid color-mix(in srgb, var(--ev-on-brand) 24%, transparent); border-radius: 999px;
}
.dsh-chip-btn:hover { color: var(--ev-on-brand); background: color-mix(in srgb, var(--ev-on-brand) 18%, transparent); }
.dsh-chip-btn.is-active { color: var(--dsh-hero-a); background: var(--ev-on-brand); border-color: var(--ev-on-brand); }

.dsh-hint {
    display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; margin-bottom: var(--dsh-gap);
    border-radius: 12px; background: var(--ev-primary-soft); color: var(--ev-text);
}
.dsh-hint .material-icons { color: var(--ev-primary); margin-top: 2px; }

/* ── Tones (focus cards, tiles, chips) ──────────────────────────────── */
.dsh .dsh-tone--danger  { --dsh-tone: var(--ev-danger);  --dsh-tone-soft: var(--ev-danger-soft); }
.dsh .dsh-tone--warning { --dsh-tone: var(--ev-warn);    --dsh-tone-soft: var(--ev-warn-soft); }
.dsh .dsh-tone--info    { --dsh-tone: var(--ev-primary); --dsh-tone-soft: var(--ev-primary-soft); }
.dsh .dsh-tone--success { --dsh-tone: var(--ev-success); --dsh-tone-soft: var(--ev-success-soft); }

/* ── Today's focus ──────────────────────────────────────────────────── */
.dsh-section-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ev-text-muted); margin: 4px 2px 10px; }
.dsh-focus { margin-bottom: var(--dsh-gap); }
.dsh-focus { container-type: inline-size; }
.dsh-focus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--dsh-gap); }
/* Two columns: a third card takes the full row rather than leaving a hole beside it. */
@container (min-width: 540px) and (max-width: 815px) {
    .dsh-focus-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dsh-focus-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
.dsh-focus-card {
    --dsh-tone: var(--ev-primary); --dsh-tone-soft: var(--ev-primary-soft);
    position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; gap: 4px 14px;
    padding: 18px 18px 14px 20px; border-radius: var(--dsh-radius); overflow: hidden;
    background: var(--ev-surface); border: 1px solid var(--ev-border);
    box-shadow: var(--ev-shadow-xs);
    transition: transform 0.2s var(--dsh-ease), box-shadow 0.2s ease, border-color 0.2s ease;
    animation: dsh-rise 0.55s var(--dsh-ease) backwards; animation-delay: calc(80ms + var(--i, 0) * 70ms);
}
/* The tone is a slim accent on the leading edge and the icon chip, not a wash over the card. */
.dsh-focus-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--dsh-tone); }
.dsh-focus-card:hover { transform: translateY(-3px); box-shadow: var(--ev-shadow-pop); border-color: color-mix(in srgb, var(--dsh-tone) 45%, var(--ev-border)); }
.dsh-focus-icon {
    grid-row: 1 / span 2; align-self: start; width: 42px; height: 42px; display: grid; place-items: center;
    border-radius: 13px; background: var(--dsh-tone-soft); color: var(--dsh-tone); font-size: 22px !important;
}
.dsh-focus-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.dsh-focus-title { font-family: var(--dsh-display); font-size: 1.0625rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.014em; }
.dsh-focus-detail { color: var(--ev-text-muted); }
.dsh-focus-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.dsh-focus-cta { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; font-weight: 700; color: var(--ev-primary); }
.dsh-focus-cta .material-icons { font-size: 16px; transition: transform 0.2s var(--dsh-ease); }
.dsh-focus-card:hover .dsh-focus-cta .material-icons { transform: translateX(4px); }

/* ── Headline tiles ─────────────────────────────────────────────────── */
/* The Digital Switching strip is its own component, built for the older home page, where the cards
   round it brought their own margins. Here it sat flush against the panels below it: give it the
   dashboard's gap and the cards' corners. */
.dsh .ds-strip { margin: 0 0 var(--dsh-gap); border-radius: var(--dsh-radius); padding: 14px 18px; }

.dsh-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--dsh-gap); margin-bottom: var(--dsh-gap); }
.dsh-kpi {
    --dsh-tone: var(--ev-primary); --dsh-tone-soft: var(--ev-primary-soft);
    position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 20px;
    background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: var(--dsh-radius);
    box-shadow: var(--ev-shadow-xs);
    transition: transform 0.2s var(--dsh-ease), box-shadow 0.2s ease, border-color 0.2s ease;
    animation: dsh-rise 0.55s var(--dsh-ease) backwards; animation-delay: calc(220ms + var(--i, 0) * 60ms);
}
.dsh-kpi:hover { transform: translateY(-3px); box-shadow: var(--ev-shadow-pop); border-color: var(--dsh-tone); }
.dsh-kpi-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dsh-kpi-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: var(--dsh-tone-soft); color: var(--dsh-tone); }
.dsh-kpi-label { font-size: 0.8125rem; font-weight: 600; color: var(--ev-text-muted); }
.dsh-kpi-value { font-family: var(--dsh-display); font-size: 2.25rem; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.dsh-kpi-sub { color: var(--ev-text-muted); font-size: 0.8125rem; }
.dsh-kpi--skeleton { min-height: 138px; background: linear-gradient(90deg, var(--ev-surface-2) 25%, var(--ev-border) 50%, var(--ev-surface-2) 75%); background-size: 200% 100%; animation: dsh-shimmer 1.4s linear infinite; }

/* Plain-English help on a jargon label */
.dsh-help {
    position: relative; margin-left: auto; width: 18px; height: 18px; display: grid; place-items: center;
    font-size: 0.6875rem; font-weight: 700; color: var(--ev-text-muted);
    border: 1px solid var(--ev-border-strong); border-radius: 50%; cursor: help;
}
.dsh-help::after {
    content: attr(data-tip); position: absolute; z-index: 20; top: calc(100% + 8px); right: -8px; width: 240px;
    padding: 10px 12px; border-radius: 10px; background: var(--ev-text); color: var(--ev-surface);
    font-family: var(--dsh-body); font-size: 0.75rem; font-weight: 500; line-height: 1.45; text-align: left; letter-spacing: 0;
    opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
    pointer-events: none;
}
.dsh-help:hover::after, .dsh-help:focus-visible::after { opacity: 1; visibility: visible; transform: none; }

/* ── Panels and grids ───────────────────────────────────────────────── */
.dsh-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dsh-gap); margin-bottom: var(--dsh-gap); align-items: start; }
.dsh-grid--lead { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.dsh-grid--three { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: stretch; }
.dsh-grid--money { grid-template-columns: repeat(auto-fit, minmax(360px, 1fr)); align-items: stretch; }
.dsh-grid--money .dsh-cols { height: 230px; }
/* However many list panels there are, they share the row: one takes all of it. */
.dsh-grid--fit { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }

/* ── Getting started (the lead panel for a book with nothing in it yet) ── */
.dsh-start { background: linear-gradient(160deg, var(--ev-primary-soft), transparent 55%), var(--ev-surface); }
.dsh-steps { display: grid; gap: 4px; margin: 6px 0 4px; padding: 0; list-style: none; counter-reset: none; }
.dsh-step { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; padding: 12px 0; }
/* The line joining one step to the next. */
.dsh-step:not(:last-child)::before { content: ""; position: absolute; left: 17px; top: 50px; bottom: -10px; width: 2px; border-radius: 1px; background: var(--ev-border-strong); }
.dsh-step-num {
    width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
    font-family: var(--dsh-display); font-weight: 800; font-size: 0.9375rem;
    background: var(--ev-primary); color: var(--ev-on-primary);
}
.dsh-step-body { display: flex; flex-direction: column; gap: 4px; padding-top: 6px; min-width: 0; }
.dsh-step-title { font-family: var(--dsh-display); font-size: 1.0625rem; font-weight: 700; letter-spacing: -0.01em; }
.dsh-step-text { color: var(--ev-text-muted); max-width: 62ch; }
.dsh-step-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.dsh-cta {
    display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px;
    font-weight: 700; background: var(--ev-primary); border: 1px solid var(--ev-primary);
    transition: transform 0.15s var(--dsh-ease), box-shadow 0.15s ease, background-color 0.15s ease;
}
.dsh-cta:is(:link, :visited, :hover, :focus, :active) { color: var(--ev-on-primary); text-decoration: none; }
.dsh-cta:hover { transform: translateY(-1px); box-shadow: var(--ev-shadow-pop); background: var(--ev-primary-hover); }
.dsh-cta--quiet { background: var(--ev-surface); border-color: var(--ev-border-strong); }
.dsh-cta--quiet:is(:link, :visited, :hover, :focus, :active) { color: var(--ev-text); }
.dsh-cta--quiet:hover { background: var(--ev-surface); border-color: var(--ev-primary); }

/* ── As your book grows: the sections with nothing in them yet, kept small ── */
.dsh-quiet { margin-bottom: var(--dsh-gap); }
/* Wrapping flex, so a short last row stretches rather than leaving a gap. */
.dsh-quiet-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.dsh-quiet-grid > .dsh-quiet-card { flex: 1 1 280px; }
.dsh-quiet-card {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; min-width: 0;
    border: 1px dashed var(--ev-border-strong); border-radius: 14px;
    animation: dsh-rise 0.5s var(--dsh-ease) backwards; animation-delay: calc(420ms + var(--i, 0) * 40ms);
}
.dsh-quiet-icon { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--ev-surface); border: 1px solid var(--ev-border); color: var(--ev-text-muted); }
.dsh-quiet-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dsh-quiet-title { font-weight: 600; }
.dsh-quiet-note { font-size: 0.8125rem; color: var(--ev-text-muted); }

/* The team panel beside the getting-started panel: one person per line, no trailing gap. */
.dsh-stack .dsh-team { margin-bottom: 0; }
.dsh-stack .dsh-people { grid-template-columns: minmax(0, 1fr); }
.dsh-grid--cards { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.dsh-stack { display: grid; gap: var(--dsh-gap); min-width: 0; }
/* ev- cards placed on the dashboard (KPIs, follow-ups, action needed, wins, recently visited) take the panel look. */
.dsh .ev-card { border-radius: var(--dsh-radius); margin: 0; border: 1px solid var(--ev-border); box-shadow: none; animation: dsh-rise 0.6s var(--dsh-ease) backwards; animation-delay: 420ms; }
.dsh .ev-card-head { padding: 16px 20px 12px; }
.dsh .ev-card-title { font-family: var(--dsh-display); font-size: 1.0625rem; font-weight: 600; letter-spacing: -0.014em; }
.dsh .ev-card-body { padding-inline: 20px; padding-bottom: 14px; }

.dsh-panel {
    background: var(--ev-surface); border: 1px solid var(--ev-border); border-radius: var(--dsh-radius);
    box-shadow: var(--ev-shadow-xs);
    padding: 22px; min-width: 0;
    animation: dsh-rise 0.6s var(--dsh-ease) backwards; animation-delay: 380ms;
}
.dsh-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.dsh-panel-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 1.0625rem; line-height: 1.4; font-weight: 600; letter-spacing: -0.014em; }
.dsh-panel-note { margin-top: 2px !important; color: var(--ev-text-muted); font-size: 0.8125rem; }
.dsh-subhead { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ev-text-muted); margin: 18px 0 4px !important; }
.dsh-count {
    font-family: var(--dsh-body); font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0;
    padding: 1px 9px; border-radius: 999px; background: var(--ev-surface-2); border: 1px solid var(--ev-border); color: var(--ev-text-muted);
}
.dsh-link { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--ev-primary) !important; white-space: nowrap; }
.dsh-link .material-icons { font-size: 16px; transition: transform 0.2s var(--dsh-ease); }
.dsh-link:hover .material-icons { transform: translateX(3px); }
.dsh-more { margin-top: 12px !important; color: var(--ev-text-muted); font-size: 0.8125rem; }
.dsh-more a { color: var(--ev-primary); font-weight: 600; }
.dsh-more a:hover, .dsh-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.dsh-empty { display: flex; align-items: center; gap: 10px; padding: 18px 4px 6px; color: var(--ev-text-muted); }
.dsh-empty .material-icons { color: var(--ev-success); font-size: 22px; flex: 0 0 auto; }

/* ── Rows ───────────────────────────────────────────────────────────── */
.dsh-list > li + li { border-top: 1px solid var(--ev-border); }
.dsh-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; }
.dsh-list--tight .dsh-row { padding: 10px 0; align-items: center; }
.dsh-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dsh-row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.dsh-row-title:hover, .dsh-row--link a:hover .dsh-row-title { color: var(--ev-primary); }
.dsh-row-sub { color: var(--ev-text-muted); font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsh-row-site { display: flex; align-items: center; gap: 3px; }
.dsh-row-site .material-icons { font-size: 13px; flex: 0 0 auto; }
.dsh-row-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.dsh-row-go { color: var(--ev-text-soft); flex: 0 0 auto; }
.dsh-row-side { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.dsh-row-cta { display: inline-flex; align-items: center; gap: 2px; font-size: 0.8125rem; font-weight: 600; color: var(--ev-primary) !important; opacity: 0.75; transition: opacity 0.15s ease; }
.dsh-row-cta .material-icons { font-size: 14px; }
.dsh-row:hover .dsh-row-cta, .dsh-row-cta:focus-visible { opacity: 1; }

.dsh-fuel { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; margin-top: 2px; }
.dsh-fuel--elec  { background: color-mix(in srgb, var(--dsh-elec) 14%, transparent);  color: var(--dsh-elec); }
.dsh-fuel--gas   { background: color-mix(in srgb, var(--dsh-gas) 14%, transparent);   color: var(--dsh-gas); }
.dsh-fuel--other { background: color-mix(in srgb, var(--dsh-other) 14%, transparent); color: var(--dsh-other); }

.dsh-facts { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; margin-top: 6px; }
.dsh-fact { font-size: 0.8125rem; color: var(--ev-text-muted); white-space: nowrap; }
.dsh-fact b { color: var(--ev-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.dsh-fact--money b { color: var(--ev-success); }

.dsh-chip {
    display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 999px;
    font-size: 0.75rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums;
}
.dsh-chip .material-icons { font-size: 13px; }
.dsh-chip--danger  { background: var(--ev-danger-soft);  color: var(--ev-danger); }
.dsh-chip--warning { background: var(--ev-warn-soft);    color: var(--ev-warn); }
.dsh-chip--info    { background: var(--ev-primary-soft); color: var(--ev-primary); }
.dsh-chip--neutral { background: var(--ev-surface-2);    color: var(--ev-text-muted); border: 1px solid var(--ev-border); }
/* The "this out-of-contract meter was your customer" marker */
.dsh-chip--yours   { background: var(--ev-violet-soft);  color: var(--ev-violet); }

/* ── Column chart ───────────────────────────────────────────────────── */
.dsh-chart { margin-top: 4px; container-type: inline-size; }
/* In a narrow panel twelve month names collide: show every other one. */
@container (max-width: 430px) {
    .dsh-col:nth-child(even) .dsh-col-x { display: none; }
    .dsh-col-plot { padding: 0 8%; }
}
.dsh-cols { display: flex; align-items: stretch; gap: 2px; height: 190px; border-bottom: 1px solid var(--ev-border-strong); }
.dsh-col { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; border-radius: 8px 8px 0 0; outline-offset: -2px; }
.dsh-col.is-near { background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--ev-warn) 9%, transparent)); }
.dsh-col:hover, .dsh-col:focus-visible { background: var(--ev-surface-2); }
/* 22px of headroom above the plot: the tallest column's label sits there, inside the chart. */
.dsh-col-plot { position: relative; flex: 1 1 auto; display: flex; align-items: flex-end; justify-content: center; margin-top: 22px; padding: 0 12%; }
.dsh-col-stack {
    width: 100%; max-width: 34px; display: flex; flex-direction: column; gap: 2px; min-height: 0;
    transform-origin: bottom; animation: dsh-grow-y 0.7s var(--dsh-ease) backwards; animation-delay: calc(450ms + var(--i, 0) * 35ms);
}
.dsh-seg { display: block; min-height: 3px; }
.dsh-col-stack .dsh-seg:first-child { border-radius: 4px 4px 0 0; }
.dsh-seg--elec { background: var(--dsh-elec); }
.dsh-seg--gas { background: var(--dsh-gas); }
.dsh-seg--other { background: var(--dsh-other); }
.dsh-seg--single { background: linear-gradient(180deg, oklch(from var(--ev-primary) calc(l + 0.12) c h), var(--ev-primary)); }
.dsh-col-label {
    position: absolute; left: 0; right: 0; text-align: center; font-size: 0.6875rem; font-weight: 700; color: var(--ev-text);
    font-variant-numeric: tabular-nums; animation: dsh-rise 0.4s ease backwards; animation-delay: calc(900ms + var(--i, 0) * 35ms);
}
.dsh-col-x { position: absolute; top: calc(100% + 6px); left: -4px; right: -4px; text-align: center; font-size: 0.6875rem; color: var(--ev-text-muted); white-space: nowrap; }
.dsh-col-tip {
    position: absolute; z-index: 15; bottom: calc(100% - 14px); left: 50%; transform: translate(-50%, 4px); width: max-content; max-width: 220px;
    display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; border-radius: 10px;
    background: var(--ev-text); color: var(--ev-surface); font-size: 0.75rem; line-height: 1.4;
    opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.12s ease, transform 0.12s ease, visibility 0.12s;
}
.dsh-col:hover .dsh-col-tip, .dsh-col:focus-visible .dsh-col-tip { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.dsh-col:first-child .dsh-col-tip { left: 0; transform: translate(0, 0); }
.dsh-col:last-child .dsh-col-tip { left: auto; right: 0; transform: translate(0, 0); }

.dsh-legend { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 30px !important; font-size: 0.75rem; color: var(--ev-text-muted); }
.dsh-legend li { display: inline-flex; align-items: center; gap: 6px; }
.dsh-legend strong { color: var(--ev-text); font-variant-numeric: tabular-nums; margin-left: auto; padding-left: 12px; }
.dsh-legend--stack { flex-direction: column; margin-top: 0 !important; font-size: 0.8125rem; flex: 1 1 auto; }
.dsh-legend--stack li { display: flex; }
.dsh-swatch { width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.dsh-swatch--near { background: color-mix(in srgb, var(--ev-warn) 22%, transparent); border: 1px solid color-mix(in srgb, var(--ev-warn) 40%, transparent); }
.dsh-chart:has(.dsh-seg--single) { padding-bottom: 26px; }

/* ── Bar lists (pipeline, suppliers) ────────────────────────────────── */
.dsh-bars { display: grid; gap: 12px; }
.dsh-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "label value" "track track"; align-items: baseline; gap: 5px 10px; }
.dsh-bars--compact { gap: 10px; }
.dsh-bar-label { grid-area: label; font-size: 0.8125rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsh-bar-track { grid-area: track; height: 8px; border-radius: 4px; background: var(--ev-surface-2); overflow: hidden; }
.dsh-bar-value { grid-area: value; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.dsh-bar-fill {
    display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--ev-primary), oklch(from var(--ev-primary) calc(l + 0.14) c h));
    transform-origin: left; animation: dsh-grow-x 0.7s var(--dsh-ease) backwards; animation-delay: calc(500ms + var(--i, 0) * 60ms);
}
.dsh-bar-fill--neutral { background: color-mix(in srgb, var(--ev-primary) 45%, var(--ev-text-soft)); }

/* ── Donut ──────────────────────────────────────────────────────────── */
.dsh-book { display: flex; align-items: center; gap: 20px; }
.dsh-donut { position: relative; flex: 0 0 132px; width: 132px; height: 132px; }
.dsh-donut svg { width: 100%; height: 100%; }
.dsh-donut-track { fill: none; stroke: var(--ev-surface-2); stroke-width: 5; }
.dsh-donut-slice { fill: none; stroke-width: 5; animation: dsh-draw 0.9s var(--dsh-ease) backwards; animation-delay: 500ms; }
.dsh-stroke--elec { stroke: var(--dsh-elec); }
.dsh-stroke--gas { stroke: var(--dsh-gas); }
.dsh-stroke--other { stroke: var(--dsh-other); }
.dsh-donut-centre { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.dsh-donut-total { font-family: var(--dsh-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.dsh-donut-unit { font-size: 0.6875rem; color: var(--ev-text-muted); }

/* ── Money ──────────────────────────────────────────────────────────── */
.dsh-money { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 6px !important; }
.dsh-money-value { font-family: var(--dsh-display); font-size: 1.75rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.dsh-money-value--soft { color: var(--ev-text-muted); }

/* ── Sales tip ──────────────────────────────────────────────────────── */
.dsh-coach {
    background: linear-gradient(150deg, color-mix(in srgb, var(--ev-cta) 11%, transparent), transparent 65%), var(--ev-surface);
    border-color: color-mix(in srgb, var(--ev-cta) 26%, var(--ev-border));
}
.dsh-coach .dsh-panel-title .material-icons { color: var(--ev-cta); font-size: 20px; }
.dsh-coach-nav { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.dsh-icon-btn { width: 28px; height: 28px; display: grid; place-items: center; cursor: pointer; color: var(--ev-text-muted); background: transparent; border: 1px solid var(--ev-border-strong); border-radius: 50%; }
.dsh-icon-btn:hover { color: var(--ev-text); border-color: var(--ev-primary); }
.dsh-coach-body { animation: dsh-rise 0.35s var(--dsh-ease) backwards; }
.dsh-coach-title { font-family: var(--dsh-display); font-weight: 600; font-size: 1rem; margin-bottom: 6px !important; }
.dsh-coach-text { color: var(--ev-text-muted); margin-bottom: 10px !important; }

/* ── Team ───────────────────────────────────────────────────────────── */
.dsh-team { margin-bottom: var(--dsh-gap); }
.dsh-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px 28px; }
.dsh-person { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center; }
.dsh-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 0.8125rem; background: var(--ev-primary-soft); color: var(--ev-primary); object-fit: cover; }
.dsh-avatar--brand { background: var(--ev-success-soft); color: var(--ev-cta); }
.dsh-person-text { display: flex; flex-direction: column; min-width: 0; }
.dsh-person-links { grid-column: 2; display: flex; gap: 4px 14px; flex-wrap: wrap; font-size: 0.8125rem; }
.dsh-person-links a { color: var(--ev-primary); overflow-wrap: anywhere; }
.dsh-person-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Drill-through reports (/home/reports/…) ───────────────────────── */
.dsh-report { margin-bottom: 16px; max-width: none; }
.dsh-report { container-type: inline-size; }
/* The list in one sentence: a quiet callout, body-sized, with only the figures in bold. */
.dsh-insight {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; margin-bottom: var(--dsh-gap);
    border-radius: var(--dsh-radius); background: var(--ev-primary-soft);
    border: 1px solid color-mix(in srgb, var(--ev-primary) 16%, var(--ev-border));
    animation: dsh-rise 0.5s var(--dsh-ease) backwards;
}
.dsh-insight-icon { flex: 0 0 auto; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--ev-surface); color: var(--ev-primary); }
.dsh-headline { align-self: center; font-size: 0.9375rem; line-height: 1.55; color: var(--ev-text); max-width: 92ch; text-wrap: pretty; }
.dsh-headline strong { font-weight: 700; font-variant-numeric: tabular-nums; }
/* Tiles share the row equally and, when they wrap, the last row stretches: never a gap or a lone tile. */
.dsh-report .dsh-kpis { display: flex; flex-wrap: wrap; }
.dsh-report .dsh-kpis > .dsh-kpi { flex: 1 1 128px; min-width: 0; }
.dsh-report .dsh-kpi { animation-delay: calc(60ms + var(--i, 0) * 50ms); cursor: default; padding: 14px 16px 16px; }
.dsh-report .dsh-kpi:hover { transform: none; box-shadow: none; border-color: var(--ev-border); }
.dsh-report .dsh-kpi-value { font-size: 1.75rem; }
.dsh-report .dsh-kpi.dsh-tone--danger .dsh-kpi-value { color: var(--ev-danger); }
.dsh-report .dsh-kpi.dsh-tone--warning .dsh-kpi-value { color: var(--ev-warn); }
.dsh-report .dsh-kpi.dsh-tone--success .dsh-kpi-value { color: var(--ev-success); }
.dsh-report .dsh-panel { animation-delay: 160ms; }

/* Charts that filter the table */
.dsh-col.is-pickable { cursor: pointer; }
.dsh-col.is-dim .dsh-col-stack { opacity: 0.32; }
.dsh-col.is-selected { background: var(--ev-primary-soft); box-shadow: inset 0 0 0 1.5px var(--ev-primary); }
.dsh-col-tip-hint { opacity: 0.7; font-style: italic; }
.dsh-bars > li { list-style: none; }
.dsh-bar--pick {
    width: 100%; font: inherit; color: inherit; text-align: left; background: transparent; border: 0; border-radius: 8px;
    padding: 4px 6px; margin: -4px -6px; cursor: pointer; transition: background-color 0.15s ease, opacity 0.15s ease;
}
.dsh-bar--pick:hover { background: var(--ev-surface-2); }
.dsh-bar--pick.is-selected { background: var(--ev-primary-soft); box-shadow: inset 0 0 0 1.5px var(--ev-primary); }
.dsh-bar--pick.is-dim { opacity: 0.45; }
.dsh-legend-btn {
    display: flex; align-items: center; gap: 6px; width: 100%; font: inherit; color: inherit; background: transparent;
    border: 0; border-radius: 8px; padding: 4px 6px; margin: -2px -6px; cursor: pointer; text-align: left;
}
.dsh-legend-btn:hover { background: var(--ev-surface-2); }
.dsh-legend-btn.is-selected { background: var(--ev-primary-soft); box-shadow: inset 0 0 0 1.5px var(--ev-primary); }

/* Spotlight: the three rows most worth a call */
.dsh-spot { margin-bottom: var(--dsh-gap); }
.dsh-spot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--dsh-gap); }
.dsh-spot-card {
    display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; min-width: 0;
    background: linear-gradient(150deg, var(--ev-success-soft), transparent 70%), var(--ev-surface);
    border: 1px solid color-mix(in srgb, var(--ev-success) 24%, var(--ev-border)); border-radius: var(--dsh-radius);
    transition: transform 0.2s var(--dsh-ease), box-shadow 0.2s ease, border-color 0.2s ease;
    animation: dsh-rise 0.5s var(--dsh-ease) backwards; animation-delay: calc(240ms + var(--i, 0) * 60ms);
}
.dsh-spot-card:hover { transform: translateY(-3px); box-shadow: var(--ev-shadow-pop); border-color: var(--ev-success); }
.dsh-spot-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dsh-spot-body .dsh-row-sub { white-space: normal; }

/* What the charts are currently filtering to */
.dsh-active { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: -6px 2px 16px; }
.dsh-insight + .dsh-active { margin-top: -4px; }
.dsh-chip--clear { border: 0; font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; padding: 4px 6px 4px 12px; }
.dsh-chip--clear:hover { background: var(--ev-primary); color: var(--ev-surface); }
.dsh-link--btn { background: transparent; border: 0; font: inherit; font-weight: 600; cursor: pointer; padding: 0; }

/* Table cells (the table sits in the report surface, outside .dsh) */
.dsh-table .dsh-cell-title { font-weight: 600; }
.dsh-table .dsh-cell-title { display: block; max-width: 240px; }
.dsh-table .dsh-cell-sub { display: block; max-width: 240px; font-size: 0.75rem; color: var(--ev-text-muted); white-space: nowrap; }
.dsh-table .dsh-cell-sub--right { max-width: none; margin-top: 2px; }
.dsh-table .dsh-cell-supplier { display: block; max-width: 150px; }
.dsh-table .dsh-cell-date { white-space: nowrap; }
.dsh-table .dsh-cell-date .ev-tag { display: table; margin-top: 4px; }
.dsh-table th { white-space: nowrap; }
.dsh-cell-stage { max-width: 190px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
/* The table's own width decides how much each cell may take, so it fits a laptop without a sideways scroll. */
.ev-table-scroll.dsh-vars { container-type: inline-size; }
@container (max-width: 1100px) {
    .dsh-table .dsh-cell-title, .dsh-table .dsh-cell-sub { max-width: 164px; }
    .dsh-table .dsh-cell-fuel > span:last-child { display: none; }
    .dsh-table .dsh-cell-stage { max-width: 128px; }
    .dsh-table .dsh-cell-supplier { max-width: 118px; }
    .dsh-table .dsh-usage { min-width: 84px; }
    .dsh-table th, .dsh-table td { padding-inline: 8px; }
    .dsh-table .dsh-cell-supplier { max-width: 108px; }
}
.dsh-table td .dsh-chip { margin-top: 4px; }
.dsh-cell-fuel { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.dsh-fuel--sm { width: 26px; height: 26px; border-radius: 8px; margin-top: 0; }
.dsh-fuel--sm .material-icons { font-size: 15px; }
.dsh-cell-stage { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; background: var(--ev-surface-2); border: 1px solid var(--ev-border); color: var(--ev-text-muted); }
.dsh-usage { display: inline-flex; flex-direction: column; gap: 4px; min-width: 110px; }
.dsh-usage-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.dsh-usage-track { height: 4px; border-radius: 2px; background: var(--ev-surface-2); overflow: hidden; }
.dsh-usage-fill { display: block; height: 100%; border-radius: 2px; background: color-mix(in srgb, var(--ev-primary) 60%, var(--ev-text-soft)); }
.dsh-table td.dsh-cell-profit { color: var(--ev-success); font-weight: 700; }
.dsh-open { display: inline-flex; align-items: center; gap: 2px; font-size: 0.8125rem; font-weight: 600; color: var(--ev-primary); white-space: nowrap; text-decoration: none; }
.dsh-open .material-icons { font-size: 14px; transition: transform 0.2s ease; }
.dsh-open:hover .material-icons { transform: translateX(3px); }

/* ── News page ──────────────────────────────────────────────────────── */
.dsh-newslist { display: grid; gap: var(--dsh-gap); max-width: 860px; }
.dsh-newsitem { scroll-margin-top: 90px; animation-delay: calc(var(--i, 0) * 50ms); }
.dsh-newsitem:target { border-color: var(--ev-primary); box-shadow: 0 0 0 3px var(--ev-primary-ring); }
.dsh-newsitem-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.dsh-newsitem-title { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.014em; }
.dsh-newsitem-body { display: flex; gap: 16px; align-items: flex-start; color: var(--ev-text-muted); }
.dsh-newsitem-body img { height: 40px; width: auto; max-width: 96px; object-fit: contain; flex: 0 0 auto; }
.dsh-newsitem-body p { max-width: 68ch; }
.dsh-newsfoot { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .dsh-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .dsh-grid, .dsh-grid--lead { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
    /* The chart's hover tips are laid out even while hidden; near the right-hand columns
       they reach past a phone's screen and made the whole page scroll sideways. */
    .dsh { overflow-x: clip; }
    .dsh-hero { padding: 22px 20px; align-items: stretch; }
    /* One fact per line instead of a wrapped run of dots. */
    .dsh-sub { flex-direction: column; gap: 2px; }
    .dsh-sub > span[aria-hidden] { display: none; }
    .dsh-picker { margin-top: 12px; }
    .dsh-select { width: 100%; max-width: none; }
    .dsh-hero-actions { align-items: stretch; width: 100%; }
    .dsh-hero-buttons { justify-content: flex-start; }
    .dsh-news { max-width: 100%; }
    .dsh-kpis { grid-template-columns: minmax(0, 1fr); }
    .dsh-panel { padding: 16px; }
    .dsh-row:not(.dsh-row--link) { display: grid; grid-template-columns: auto minmax(0, 1fr); }
    .dsh-row:not(.dsh-row--link) .dsh-row-side { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; }
    .dsh-row-title, .dsh-row-sub { white-space: normal; }
    .dsh-cols { height: 150px; }
    .dsh-book { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    .dsh *, .dsh { animation: none !important; transition: none !important; }
    .dsh-news-reel { transform: none !important; }
}
