/* The dashboards (Lease-Up, Recertification, Re-Rental and the rest).

   Look: the Axcces housing language. A soft warm page, white cards that sit slightly above it, one deep-navy banner with a calm still skyline of
   apartment blocks and a house, and amber used only as a small accent (the lit windows, the focus ring on the banner). Colour keeps one meaning each:
   green is good, red is bad, amber is soon, violet is a decision waiting on someone, grey is "their turn". Navy is the brand, used as a small touch.
   Neutrals (card, text, borders) come from the --app-* tokens of theme-bridge.css, so another DevExpress theme, or a dark one, still reads well.
   Type is the theme's own font. Charts are CSS only and every bar has its number written next to it, so it reads when printed. */

/* ── The page behind the cards ───────────────────────────────────────────── */
.main-content:has(.dash:not(.gdb-widgets)) {
    background:
        radial-gradient(900px 260px at 85% -40px, color-mix(in srgb, #f6b84b 12%, transparent), transparent 70%),
        color-mix(in srgb, #9a5b00 4%, var(--app-surface, #ffffff));
}

.dash {
    --d-brand: #032765;
    --d-brand-mid: #103e7e;
    --d-brand-deep: #021a44;
    --d-accent: #1b5bb5;
    /* Tone colours derived from the theme (the text colour mixed into a deep hue for text and icons; a tint of the hue over the surface for fills),
       so every chip, tile and number reads on a dark theme as well as a light one. */
    --t-brand: color-mix(in srgb, #0b3a82 62%, var(--app-fg, #101828));
    --t-brand-soft: color-mix(in srgb, #1b5bb5 13%, var(--app-surface, #ffffff));
    --t-green: color-mix(in srgb, #1f7a45 66%, var(--app-fg, #101828));
    --t-green-soft: color-mix(in srgb, #2e9d5e 15%, var(--app-surface, #ffffff));
    --t-red: color-mix(in srgb, #b42318 68%, var(--app-fg, #101828));
    --t-red-soft: color-mix(in srgb, #cc3b3b 13%, var(--app-surface, #ffffff));
    --t-amber: color-mix(in srgb, #9a5b00 66%, var(--app-fg, #101828));
    --t-amber-soft: color-mix(in srgb, #e0a21b 18%, var(--app-surface, #ffffff));
    --t-violet: color-mix(in srgb, #6d4fa3 66%, var(--app-fg, #101828));
    --t-violet-soft: color-mix(in srgb, #8465bd 15%, var(--app-surface, #ffffff));
    --t-slate: color-mix(in srgb, #5b6770 60%, var(--app-fg, #101828));
    --t-slate-soft: color-mix(in srgb, #98a3ad 17%, var(--app-surface, #ffffff));
    --d-amber: #f6b84b;
    --d-ink: var(--app-fg, #101828);
    --d-muted: var(--app-muted, #475467);
    --d-line: var(--app-border, #e4e7ec);
    --d-line-soft: color-mix(in srgb, var(--app-border, #e4e7ec) 55%, transparent);
    --d-card: var(--app-surface, #ffffff);
    --d-soft: color-mix(in srgb, var(--app-fg, #101828) 4%, var(--app-surface, #ffffff));
    --d-radius: 16px;
    --d-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 4px 14px rgba(16, 24, 40, 0.06);
    --d-shadow-hover: 0 2px 4px rgba(16, 24, 40, 0.06), 0 12px 28px rgba(16, 24, 40, 0.12);

    container-type: inline-size;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 6px 2px 28px;
    font-size: 0.9375rem;
    line-height: 1.45;
    color: var(--d-ink);
}

/* The wait after a click: the page dims and the loader sits above it. */
.dash__loading { position: fixed; inset: 0; z-index: 2500; display: grid; place-items: center; background: color-mix(in srgb, var(--d-brand-deep) 28%, transparent); backdrop-filter: blur(1px); }

/* ── The banner ──────────────────────────────────────────────────────────── */
.dash__hero {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 28px;
    min-height: 126px;
    padding: 22px 28px;
    overflow: hidden;
    border-radius: 20px;
    color: #fff;
    background:
        radial-gradient(520px 220px at 12% -30%, rgba(255, 255, 255, 0.14), transparent 70%),
        linear-gradient(125deg, #021a44 0%, #032765 52%, #103e7e 100%);
    box-shadow: 0 1px 2px rgba(2, 26, 68, 0.2), 0 14px 32px rgba(2, 26, 68, 0.22);
}
.dash__hero > :not(.dash__scenery) { position: relative; z-index: 1; }
/* The picture is only as wide as its drawing, so its left edge fades out: the skyline then seems to rise out of the page instead of stopping at a line. */
.dash__scenery {
    position: absolute;
    z-index: 0;
    right: 0;
    bottom: 0;
    width: min(100%, 720px);
    height: 100%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 46%);
    mask-image: linear-gradient(to right, transparent 0, #000 46%);
}
@container (max-width: 700px) { .dash__scenery { opacity: 0.5; } }
@container (max-width: 480px) { .dash__scenery { opacity: 0.3; } }
.dash__eyebrow { margin: 0 0 4px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.dash__hero h2 { margin: 0; font-size: 1.625rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; color: #fff; }
.dash__hero p.dash__sub { margin: 6px 0 0; max-width: 52ch; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.86); }
.dash__hero-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px 12px; }
.dash__pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 15px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    background: rgba(2, 26, 68, 0.42);
    backdrop-filter: blur(6px);
    color: #fff;
}
.dash__custom {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(2, 26, 68, 0.42);
    backdrop-filter: blur(6px);
    color: #fff;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease;
}
.dash__custom:hover { background: rgba(255, 255, 255, 0.18); }
.dash__custom--on, .dash__custom--on:hover { background: #fff; color: var(--d-brand); border-color: #fff; }
.dash__custom:focus-visible { outline: 3px solid var(--d-amber); outline-offset: 2px; }

/* The skyline: the shapes take their colours here so the SVG carries no fixed colours. */
.dash-sky__halo { fill: rgba(255, 255, 255, 0.06); }
.dash-sky__block--a { fill: rgba(255, 255, 255, 0.16); }
.dash-sky__block--b { fill: rgba(255, 255, 255, 0.26); }
.dash-sky__block--c { fill: rgba(255, 255, 255, 0.2); }
.dash-sky__win { fill: rgba(255, 255, 255, 0.1); }
.dash-sky__lit { fill: var(--d-amber); }
.dash-sky__lit--breathe { animation: dash-breathe 7s ease-in-out infinite; animation-delay: calc(var(--i, 0) * -0.9s); }
.dash-sky__roof { fill: rgba(255, 255, 255, 0.3); }
.dash-sky__house { fill: rgba(255, 255, 255, 0.2); }
.dash-sky__door { fill: rgba(2, 26, 68, 0.55); }
.dash-sky__ground { fill: rgba(255, 255, 255, 0.28); }
.dash-sky__cloud { fill: rgba(255, 255, 255, 0.12); }
.dash-sky__sun-glow { fill: rgba(246, 184, 75, 0.22); }
.dash-sky__sun-core { fill: var(--d-amber); }
.dash-sky__rays line { stroke: var(--d-amber); stroke-width: 2.2; stroke-linecap: round; opacity: 0.9; }
@keyframes dash-breathe { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* ── The scope and filters row ───────────────────────────────────────────── */
.dash-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 10px 16px;
    border: 1px solid var(--d-line);
    border-radius: 14px;
    background: var(--d-card);
    box-shadow: var(--d-shadow);
}
.dash-bar__filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.dash-updated { font-size: 0.8125rem; color: var(--d-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dash-field { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; font-weight: 600; color: var(--d-muted); }

/* ── What is happening right now ─────────────────────────────────────────── */
.dash-now {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 11px 16px;
    border: 1px solid var(--d-line);
    border-radius: 14px;
    background: var(--d-card);
    box-shadow: var(--d-shadow);
}
.dash-now__title { display: inline-flex; align-items: center; gap: 8px; margin-right: 8px; font-size: 0.875rem; font-weight: 600; color: var(--d-ink); }
.dash-now__title::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--d-amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--d-amber) 28%, transparent); }

.dash-chip {
    --c-fg: color-mix(in srgb, #434d56 50%, var(--app-fg, #101828));
    --c-bg: var(--d-soft);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 11px;
    border: 1px solid color-mix(in srgb, var(--c-fg) 16%, transparent);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    white-space: nowrap;
    background: var(--c-bg);
    color: var(--c-fg);
}
.dash-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }
button.dash-chip { font: inherit; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
button.dash-chip:hover { filter: brightness(0.97); }
button.dash-chip:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 2px; }
.dash-chip--brand { --c-fg: var(--t-brand); --c-bg: var(--t-brand-soft); }
.dash-chip--ok, .dash-chip--good { --c-fg: var(--t-green); --c-bg: var(--t-green-soft); }
.dash-chip--bad { --c-fg: var(--t-red); --c-bg: var(--t-red-soft); }
.dash-chip--warn { --c-fg: var(--t-amber); --c-bg: var(--t-amber-soft); }
.dash-chip--violet { --c-fg: var(--t-violet); --c-bg: var(--t-violet-soft); }
.dash-chip--muted { --c-fg: var(--t-slate); --c-bg: var(--t-slate-soft); }
.dash-chip--plain { padding-inline: 11px; }
.dash-chip--plain::before { display: none; }

/* ── KPI tiles ───────────────────────────────────────────────────────────── */
/* --n (set by the page, see DashLayout.KpiColumns) is how many tiles sit side by side on a wide screen. */
.dash__kpis { --n: 4; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@container (min-width: 640px) { .dash__kpis { grid-template-columns: repeat(min(3, var(--n)), minmax(0, 1fr)); } }
@container (min-width: 1000px) { .dash__kpis { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); } }
@container (max-width: 420px) { .dash__kpis { grid-template-columns: minmax(0, 1fr); } }

.dash-kpi {
    --k-main: var(--t-brand);
    --k-soft: var(--t-brand-soft);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding: 16px 18px 15px;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    background:
        radial-gradient(130px 90px at 100% 0, color-mix(in srgb, var(--k-soft) 75%, transparent), transparent 72%),
        linear-gradient(180deg, var(--d-card), color-mix(in srgb, var(--d-card) 97%, var(--d-ink)));
    box-shadow: var(--d-shadow);
    text-align: left;
    font: inherit;
    color: inherit;
    transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
button.dash-kpi { cursor: pointer; }
button.dash-kpi:hover { transform: translateY(-1px); box-shadow: var(--d-shadow-hover); border-color: color-mix(in srgb, var(--k-main) 28%, var(--d-line)); }
.dash-kpi:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 2px; }
.dash-kpi__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.dash-kpi__label { font-size: 0.8125rem; font-weight: 600; line-height: 1.3; color: var(--d-muted); }
.dash-kpi__icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--k-soft);
    color: var(--k-main);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--k-main) 14%, transparent);
}
.dash-kpi__value { margin-top: 2px; font-size: 2rem; font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--d-ink); font-variant-numeric: tabular-nums; }
.dash-kpi__value small { margin-left: 4px; font-size: 0.9375rem; font-weight: 600; letter-spacing: 0; color: var(--d-muted); }
.dash-kpi__note { font-size: 0.8125rem; color: var(--d-muted); }

.dash-kpi--brand { --k-main: var(--t-brand); --k-soft: var(--t-brand-soft); }
.dash-kpi--green { --k-main: var(--t-green); --k-soft: var(--t-green-soft); }
.dash-kpi--red { --k-main: var(--t-red); --k-soft: var(--t-red-soft); }
.dash-kpi--red .dash-kpi__value { color: var(--t-red); }
.dash-kpi--amber { --k-main: var(--t-amber); --k-soft: var(--t-amber-soft); }
.dash-kpi--amber .dash-kpi__value { color: var(--t-amber); }
.dash-kpi--violet { --k-main: var(--t-violet); --k-soft: var(--t-violet-soft); }
.dash-kpi--slate { --k-main: var(--t-slate); --k-soft: var(--t-slate-soft); }

/* ── Cards and layouts ───────────────────────────────────────────────────── */
.dash__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@container (max-width: 900px) { .dash__grid { grid-template-columns: minmax(0, 1fr); } }

.dash-card {
    min-width: 0;
    padding: 18px 20px 20px;
    border: 1px solid var(--d-line);
    border-radius: var(--d-radius);
    background: var(--d-card);
    box-shadow: var(--d-shadow);
    transition: box-shadow 0.18s ease;
}
.dash-card:hover { box-shadow: var(--d-shadow-hover); }
.dash-card__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--d-line-soft); }
.dash-card__head h3 { margin: 0; font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.005em; color: var(--d-ink); }
.dash-card__sub { font-size: 0.8125rem; color: var(--d-muted); }
.dash-note { margin: 0 0 12px; color: var(--d-muted); font-size: 0.8125rem; }
.dash-empty { margin: 0; padding: 14px 2px; color: var(--d-muted); }

/* Nothing in scope: one friendly card in place of the tiles. */
.dash-clear { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 16px; text-align: center; }
.dash-clear strong { font-size: 1.0625rem; font-weight: 650; color: var(--d-ink); }
.dash-clear p { margin: 0; max-width: 420px; color: var(--d-muted); }
.dash-clear__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 6px; border-radius: 50%; background: color-mix(in srgb, var(--d-accent) 12%, var(--d-card)); color: var(--d-accent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--d-accent) 6%, transparent); }
.dash-legend { margin: 12px 0 0; font-size: 0.8125rem; color: var(--d-muted); }

/* ── Buttons and inputs on these pages ───────────────────────────────────── */
.dash-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.005em;
    cursor: pointer;
    transition: background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dash-btn:disabled { cursor: default; }
.dash-btn--primary { color: #fff; background: linear-gradient(180deg, #123f86, #032765); box-shadow: 0 1px 2px rgba(2, 26, 68, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.dash-btn--primary:hover:not(:disabled) { background: linear-gradient(180deg, #103e7e, #021a44); box-shadow: 0 3px 10px rgba(2, 26, 68, 0.3); }
.dash-btn--primary:disabled { opacity: 0.6; }
.dash-btn--ghost { color: var(--d-ink); background: var(--d-card); border-color: var(--d-line); box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05); }
.dash-btn--ghost:hover:not(:disabled) { border-color: color-mix(in srgb, var(--d-accent) 40%, var(--d-line)); }
.dash-btn--ghost:disabled { opacity: 0.55; box-shadow: none; }
.dash-btn:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 2px; }
.dash-btn__spin { animation: dash-spin 0.9s linear infinite; }
@keyframes dash-spin { to { transform: rotate(360deg); } }
.dash-select {
    min-height: 38px;
    padding: 0 30px 0 12px;
    border: 1px solid var(--d-line);
    border-radius: 10px;
    background-color: var(--d-card);
    font: inherit;
    font-size: 0.875rem;
    color: var(--d-ink);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dash-select:hover { border-color: color-mix(in srgb, var(--d-accent) 40%, var(--d-line)); }
.dash-select:focus { outline: none; border-color: var(--d-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-accent) 22%, transparent); }

/* ── Charts: every bar has its number written beside or above it ──────────── */
.dash-seg--brand { background: linear-gradient(90deg, var(--d-brand), var(--d-accent)); }
.dash-seg--green { background: #2e9d5e; }
.dash-seg--red { background: linear-gradient(180deg, #e25a5a, #cc3b3b); }
.dash-seg--amber { background: #e0a21b; }
.dash-seg--slate { background: #98a3ad; }
.dash-seg--violet { background: #8465bd; }

.dash-cols { display: flex; align-items: flex-end; gap: 10px; }
.dash-col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 5px; text-align: center; }
.dash-col__total { min-height: 1.2em; font-size: 0.8125rem; font-weight: 700; color: var(--d-ink); font-variant-numeric: tabular-nums; }
.dash-col__track { display: flex; align-items: flex-end; border-bottom: 1px solid var(--d-line); }
.dash-col__stack { display: flex; flex-direction: column-reverse; width: 100%; min-height: 0; border-radius: 8px 8px 0 0; overflow: hidden; }
.dash-col__stack .dash-seg { min-height: 2px; }
.dash-col__label { font-size: 0.75rem; color: var(--d-muted); line-height: 1.2; }
.dash-col--mark .dash-col__label, .dash-col--mark .dash-col__total { color: #b42318; }

.dash-hbars { margin: 0; padding: 0; list-style: none; }
.dash-hbars li + li { border-top: 1px solid var(--d-line-soft); }
.dash-hbars__row { display: grid; grid-template-columns: minmax(80px, 36%) minmax(0, 1fr) 44px; align-items: center; gap: 12px; width: 100%; padding: 8px 6px; border: 0; border-radius: 10px; background: transparent; text-align: left; font: inherit; color: inherit; }
button.dash-hbars__row { cursor: pointer; transition: background-color 0.15s ease; }
button.dash-hbars__row:hover { background: var(--d-soft); }
button.dash-hbars__row:focus-visible { outline: 3px solid var(--d-accent); outline-offset: -2px; }
.dash-hbars__label { display: flex; flex-direction: column; min-width: 0; font-size: 0.875rem; }
.dash-hbars__label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-hbars__label small { color: var(--d-muted); font-size: 0.75rem; }
.dash-hbars__track { height: 9px; border-radius: 999px; background: var(--d-soft); overflow: hidden; box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.06); }
.dash-hbars__fill { display: block; height: 100%; border-radius: 999px; }
.dash-hbars__count { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.dash-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--d-line-soft); }
.dash-stats dt { font-size: 0.8125rem; color: var(--d-muted); }
.dash-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 1.125rem; letter-spacing: -0.01em; color: var(--d-ink); font-variant-numeric: tabular-nums; }

.dash-meter { display: grid; grid-template-columns: minmax(110px, 34%) minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 0; }
.dash-meter + .dash-meter { border-top: 1px solid var(--d-line-soft); }
.dash-meter__label { font-size: 0.875rem; font-weight: 600; }
.dash-meter__track { height: 9px; border-radius: 999px; background: var(--d-soft); overflow: hidden; box-shadow: inset 0 1px 2px rgba(16, 24, 40, 0.06); }
.dash-meter__fill { display: block; height: 100%; border-radius: 999px; }
.dash-meter__value { font-size: 0.8125rem; font-weight: 700; color: var(--d-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── A list of people or places with bars (progress by development) ───────── */
.dash-team { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px 24px; }
.dash-team li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--d-line-soft); }
.dash-team__avatar { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(145deg, var(--d-accent), var(--d-brand)); color: #fff; font-weight: 700; font-size: 0.875rem; letter-spacing: 0.02em; box-shadow: 0 2px 6px rgba(3, 39, 101, 0.28); }
.dash-team__main { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.dash-team__top { display: flex; flex-direction: column; gap: 1px; }
.dash-team__top strong { font-weight: 600; color: var(--d-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-team__top small { color: var(--d-muted); font-size: 0.8125rem; }
.dash-prog__row { display: grid; gap: 4px; }
.dash-prog__line { display: flex; justify-content: space-between; gap: 8px; font-size: 0.8125rem; color: var(--d-muted); }
.dash-prog__line b { font-weight: 700; color: var(--d-ink); font-variant-numeric: tabular-nums; }

/* ── Bands: a group of tiles under a small heading (Recertification: "Needs you", then "Pipeline and results") ── */
.dash-band { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 4px 2px -4px; }
.dash-band h3 { margin: 0; font-size: 0.9375rem; font-weight: 650; letter-spacing: 0.01em; color: var(--d-ink); }
.dash-band span { font-size: 0.8125rem; color: var(--d-muted); }
/* The larger tiles of a band that needs attention. */
.dash__kpis--lg { gap: 16px; }
.dash__kpis--lg .dash-kpi { padding: 20px 22px 18px; gap: 8px; }
.dash__kpis--lg .dash-kpi__value { font-size: 2.5rem; }
.dash__kpis--lg .dash-kpi__icon { width: 42px; height: 42px; }
.dash__kpis--lg .dash-kpi__label { font-size: 0.875rem; }
.dash__kpis--lg .dash-kpi__note { font-size: 0.875rem; }

/* A bar row inside a list of people or places that opens a list when clicked. */
.dash-prog__btn { display: grid; gap: 4px; width: 100%; padding: 6px 8px; margin: 0 -8px; border: 0; border-radius: 10px; background: transparent; text-align: left; font: inherit; color: inherit; cursor: pointer; transition: background-color 0.15s ease; }
.dash-prog__btn:hover { background: var(--d-soft); }
.dash-prog__btn:focus-visible { outline: 3px solid var(--d-accent); outline-offset: -2px; }
.dash-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.dash-pills__title { font-size: 0.75rem; font-weight: 600; color: var(--d-muted); }
.dash-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid color-mix(in srgb, #b42318 22%, transparent); border-radius: 999px; background: #fde7e5; color: #8c1d18; font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer; }
.dash-pill strong { font-variant-numeric: tabular-nums; }
.dash-pill:hover { filter: brightness(0.97); }
.dash-pill:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 2px; }
.dash-sub-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px 8px; }

@media (prefers-reduced-motion: reduce) {
    .dash-kpi, .dash-card, .dash-btn { transition: none; }
    button.dash-kpi:hover { transform: none; }
    .dash-sky__lit--breathe, .dash-btn__spin { animation: none; }
}

/* ── Rearranging: the widget frame, the tray and the drag ────────────────── */
.dash-widget { min-width: 0; display: flex; flex-direction: column; border-radius: var(--d-radius); }
.dash-widget__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dash-widget__body > * { flex: 1; }
.dash-widget--wide { grid-column: 1 / -1; }
.dash-bare { text-align: center; }

.dash-widget--edit { --jig: 0.55deg; position: relative; cursor: grab; user-select: none; outline: 2px dashed color-mix(in srgb, var(--d-accent) 45%, transparent); outline-offset: 4px; animation: dash-jiggle-a 0.42s ease-in-out infinite; }
/* Like icons on a phone: each card shakes a little differently (own speed, own starting point, one of two patterns), and the wider a card is, the less it tilts (a wide card would swing its ends too far). */
.dash-widget--panels.dash-widget--edit { --jig: 0.35deg; }
.dash-widget--strip.dash-widget--edit { --jig: 0.08deg; animation-duration: 0.6s !important; }
.dash-widget--wide.dash-widget--edit { --jig: 0.15deg; }
.dash-widget--edit:nth-child(2n) { animation-name: dash-jiggle-b; animation-duration: 0.5s; animation-delay: -0.14s; }
.dash-widget--edit:nth-child(3n) { animation-duration: 0.46s; animation-delay: -0.25s; }
.dash-widget--edit:nth-child(5n) { animation-name: dash-jiggle-b; animation-duration: 0.38s; animation-delay: -0.09s; }
.dash-widget--edit:nth-child(7n) { animation-duration: 0.54s; animation-delay: -0.31s; }
.dash-widget--edit .dash-widget__body { pointer-events: none; }
.dash-widget--edit .dash-widget__bar { touch-action: none; }
@keyframes dash-jiggle-a {
    0%   { rotate: calc(var(--jig) * -1); translate: 0 0.4px; }
    50%  { rotate: var(--jig); translate: 0 -0.4px; }
    100% { rotate: calc(var(--jig) * -1); translate: 0 0.4px; }
}
@keyframes dash-jiggle-b {
    0%   { rotate: var(--jig); translate: 0.4px 0; }
    50%  { rotate: calc(var(--jig) * -1); translate: -0.4px 0; }
    100% { rotate: var(--jig); translate: 0.4px 0; }
}

/* The empty slot a picked-up widget leaves behind: the card itself is lifted, so only a soft amber outline remains where it will land. */
.dash-widget[data-dragging] { animation: none; rotate: 0deg; translate: 0 0; outline: 2px dashed var(--d-amber); background: color-mix(in srgb, var(--d-amber) 12%, transparent); }
.dash-widget[data-dragging] > * { visibility: hidden; }
.dash-dragging, .dash-dragging * { cursor: grabbing !important; user-select: none !important; }

/* The picked-up copy, floating above the page and following the pointer. */
.dash-ghost-layer { position: fixed; inset: 0; z-index: 3000; display: block; padding: 0; gap: 0; container-type: normal; pointer-events: none; background: none; }
.dash-ghost { position: absolute; margin: 0; animation: none !important; outline: none; border-radius: var(--d-radius); box-shadow: 0 18px 40px rgba(2, 26, 68, 0.28), 0 4px 10px rgba(2, 26, 68, 0.16); background: var(--d-card); opacity: 0.97; pointer-events: none; }
.dash-widget__bar { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; padding: 5px 6px 5px 8px; border-radius: 10px; background: color-mix(in srgb, var(--d-accent) 12%, var(--d-card)); color: var(--d-ink); font-size: 0.8125rem; font-weight: 600; }
.dash-widget__grip { display: grid; place-items: center; color: var(--d-muted); cursor: grab; }
.dash-widget__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-widget__tools { display: inline-flex; gap: 2px; flex: none; }
.dash-widget__btn { display: grid; place-items: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--d-ink); cursor: pointer; }
.dash-widget__btn:hover { background: var(--d-card); }
.dash-widget__btn--on { background: var(--d-card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--d-accent) 45%, transparent); }
.dash-widget__btn--remove:hover { background: #fde4e2; color: #8c1d18; }
.dash-widget__btn:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 1px; }

.dash-tray { padding: 18px 20px 14px; border: 1px solid color-mix(in srgb, var(--d-amber) 60%, transparent); border-radius: var(--d-radius); background: linear-gradient(180deg, color-mix(in srgb, var(--d-amber) 8%, var(--d-card)), var(--d-card)); box-shadow: var(--d-shadow); }
.dash-tray__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 24px; margin-bottom: 8px; }
.dash-tray__head h3 { margin: 0; font-size: 1.0625rem; font-weight: 650; color: var(--d-ink); }
.dash-tray__head p { margin: 4px 0 0; max-width: 62ch; font-size: 0.875rem; color: var(--d-muted); }
.dash-tray__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-tray__alert { margin: 8px 0; padding: 9px 12px; border-radius: 10px; font-size: 0.8125rem; color: #8a3d05; background: #fdebd9; }
.dash-tray__group { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 10px 0; border-top: 1px solid var(--d-line-soft); }
.dash-tray__label { flex: 0 0 130px; font-size: 0.8125rem; font-weight: 600; color: var(--d-muted); }
.dash-tray__list { display: flex; flex-wrap: wrap; flex: 1; gap: 8px 10px; margin: 0; padding: 0; list-style: none; }

.dash-switch { position: relative; display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 5px 12px 5px 8px; border: 1px solid var(--d-line); border-radius: 999px; background: var(--d-card); font-size: 0.8125rem; font-weight: 500; color: var(--d-muted); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.dash-switch:hover { border-color: color-mix(in srgb, var(--d-accent) 45%, var(--d-line)); }
.dash-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dash-switch__track { position: relative; flex: none; width: 30px; height: 18px; border-radius: 999px; background: #aab3bc; transition: background-color 0.15s ease; }
.dash-switch__track span { position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.3); transition: transform 0.15s ease; }
.dash-switch--on { border-color: color-mix(in srgb, var(--d-accent) 45%, transparent); background: color-mix(in srgb, var(--d-accent) 8%, var(--d-card)); color: var(--d-ink); }
.dash-switch--on .dash-switch__track { background: var(--d-brand); }
.dash-switch--on .dash-switch__track span { transform: translateX(12px); }
.dash-switch input:focus-visible + .dash-switch__track { outline: 3px solid var(--d-accent); outline-offset: 2px; }
/* What the person removed, listed so each can be put back (the × on a card removes it). */
.dash-tray__none { flex: 1; font-size: 0.8125rem; color: var(--d-muted); }
.dash-restore { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 13px 5px 10px; border: 1px dashed color-mix(in srgb, var(--d-accent) 55%, var(--d-line)); border-radius: 999px; background: var(--d-card); font: inherit; font-size: 0.8125rem; font-weight: 600; color: var(--d-ink); cursor: pointer; transition: border-color 0.15s ease, background-color 0.15s ease; }
.dash-restore:hover { border-style: solid; border-color: color-mix(in srgb, var(--d-accent) 60%, var(--d-line)); background: color-mix(in srgb, var(--d-accent) 8%, var(--d-card)); }
.dash-restore:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 2px; }
.dash-restore small { font-size: 0.6875rem; font-weight: 500; color: var(--d-muted); }
.dash-tray__all { margin-left: auto; }

@media (prefers-reduced-motion: reduce) {
    .dash-widget--edit { animation: none; }
    .dash-switch, .dash-switch__track, .dash-switch__track span { transition: none; }
}

/* ══ Other ways to draw a card ═══════════════════════════════════════════════
   Donut, pie, stacked bar, funnel, columns, list, rings. The standard view of every card is still the bars above; a person picks another one in
   customize mode. One colour class gives a slice its colour everywhere it appears (the slice, the legend dot, the stacked segment), through --c.
   The eight categorical colours are one validated set (colour-blind safe, in a fixed order, never cycled); "Other" is always the neutral grey.
   Every slice, column and stage has its number written out, so none of it relies on colour alone. */
.dash-cat-0 { --c: #2a78d6; }
.dash-cat-1 { --c: #eb6834; }
.dash-cat-2 { --c: #1baf7a; }
.dash-cat-3 { --c: #eda100; }
.dash-cat-4 { --c: #e87ba4; }
.dash-cat-5 { --c: #008300; }
.dash-cat-6 { --c: #6250d6; }
.dash-cat-7 { --c: #e34948; }
.dash-cat-other { --c: #98a3ad; }
.dash-tone-brand, .dash-stroke--brand { --c: var(--d-accent); }
.dash-tone-green, .dash-stroke--green { --c: #2e9d5e; }
.dash-tone-red, .dash-stroke--red { --c: #cc3b3b; }
.dash-tone-amber, .dash-stroke--amber { --c: #e0a21b; }
.dash-tone-slate, .dash-stroke--slate { --c: #98a3ad; }
.dash-tone-violet, .dash-stroke--violet { --c: #8465bd; }

.dash-note--warn { padding: 8px 12px; border-radius: 10px; color: #8a3d05; background: #fdebd9; }
/* A row that is a button and a row that is not must be the same width, or the numbers on the right stop lining up. */
.dash-hbars__row, .dash-legend-list__row, .dash-funnel__row, .dash-plain__row { box-sizing: border-box; }

/* Donut and pie: the ring on one side, the legend (name, share, number) on the other; it stacks when the card is narrow. */
.dash-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 28px; }
.dash-share--stacked { display: block; }
.dash-ring { position: relative; flex: none; width: 148px; height: 148px; }
.dash-ring svg { display: block; width: 100%; height: 100%; }
.dash-ring__track { fill: none; stroke: color-mix(in srgb, var(--d-ink) 7%, var(--d-card)); stroke-width: 16; }
.dash-ring__arc { fill: none; stroke: var(--c, var(--d-accent)); stroke-width: 16; }
.dash-ring__fill { fill: var(--c); stroke: var(--d-card); stroke-width: 1.5; }
.dash-ring__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; pointer-events: none; }
.dash-ring__center strong { font-size: 1.5rem; line-height: 1.1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.dash-ring__center small { font-size: 0.75rem; color: var(--d-muted); }

.dash-legend-list { flex: 1 1 220px; min-width: 0; margin: 0; padding: 0; list-style: none; }
.dash-legend-list li + li { border-top: 1px solid var(--d-line-soft); }
.dash-legend-list__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 3.2em; align-items: center; gap: 10px; width: 100%; padding: 7px 6px; border: 0; border-radius: 10px; background: transparent; text-align: left; font: inherit; font-size: 0.875rem; color: inherit; }
button.dash-legend-list__row { cursor: pointer; transition: background-color 0.15s ease; }
button.dash-legend-list__row:hover { background: var(--d-soft); }
button.dash-legend-list__row:focus-visible { outline: 3px solid var(--d-accent); outline-offset: -2px; }
.dash-legend-list__dot { width: 11px; height: 11px; border-radius: 4px; background: var(--c); }
.dash-legend-list__label { display: flex; flex-direction: column; min-width: 0; }
.dash-legend-list__label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-legend-list__label small { color: var(--d-muted); font-size: 0.75rem; }
.dash-legend-list__share { color: var(--d-muted); font-size: 0.8125rem; font-variant-numeric: tabular-nums; text-align: right; }
.dash-legend-list__count { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-legend-list__aside { margin-top: 6px; border-top: 1px dashed var(--d-line) !important; }
.dash-legend-list__aside .dash-legend-list__row { grid-template-columns: minmax(0, 1fr) auto; color: var(--d-muted); }
.dash-legend-list__aside .dash-legend-list__count { color: var(--d-ink); }

/* Stacked bar: the whole as one bar, the parts side by side with a small gap between them. */
.dash-stack { display: flex; gap: 2px; height: 24px; margin-bottom: 14px; overflow: hidden; border-radius: 999px; background: var(--d-soft); }
.dash-stack__seg { min-width: 4px; background: var(--c); }
.dash-share--stacked .dash-legend-list { flex: none; }

/* Funnel: stages in order; each bar is as wide as its count, centred, in one hue that lightens as the stages go on. */
.dash-funnel { margin: 0; padding: 0; list-style: none; }
.dash-funnel li + li { border-top: 1px solid var(--d-line-soft); }
.dash-funnel__row { display: grid; grid-template-columns: minmax(80px, 30%) minmax(0, 1fr) 4.6em; align-items: center; gap: 12px; width: 100%; padding: 7px 6px; border: 0; border-radius: 10px; background: transparent; text-align: left; font: inherit; color: inherit; }
button.dash-funnel__row { cursor: pointer; transition: background-color 0.15s ease; }
button.dash-funnel__row:hover { background: var(--d-soft); }
button.dash-funnel__row:focus-visible { outline: 3px solid var(--d-accent); outline-offset: -2px; }
.dash-funnel__label { display: flex; flex-direction: column; min-width: 0; font-size: 0.875rem; }
.dash-funnel__label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-funnel__label small { color: var(--d-muted); font-size: 0.75rem; }
.dash-funnel__lane { display: flex; justify-content: center; height: 24px; }
.dash-funnel__bar { display: block; height: 100%; border-radius: 6px; background: color-mix(in srgb, var(--d-accent) calc(100% - var(--i, 0) * 6%), var(--d-card)); }
.dash-funnel__figures { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dash-funnel__figures small { color: var(--d-muted); font-size: 0.75rem; }

/* Columns: one column per category, the number above it and the name below it. */
.dash-bcols { display: flex; align-items: stretch; gap: 8px; }
.dash-bcol { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 6px; padding: 4px 2px; border: 0; border-radius: 10px; background: transparent; text-align: center; font: inherit; color: inherit; }
button.dash-bcol { cursor: pointer; transition: background-color 0.15s ease; }
button.dash-bcol:hover { background: var(--d-soft); }
button.dash-bcol:focus-visible { outline: 3px solid var(--d-accent); outline-offset: -2px; }
.dash-bcol__count { font-size: 0.875rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.dash-bcol__track { display: flex; align-items: flex-end; height: 140px; border-bottom: 1px solid var(--d-line); }
.dash-bcol__fill { display: block; width: 100%; max-width: 44px; margin-inline: auto; border-radius: 6px 6px 0 0; }
.dash-bcol__label { font-size: 0.75rem; line-height: 1.25; color: var(--d-muted); overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* List: names and numbers, nothing else. */
.dash-plain { margin: 0; padding: 0; list-style: none; }
.dash-plain li + li { border-top: 1px solid var(--d-line-soft); }
.dash-plain__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 9px 6px; border: 0; border-radius: 10px; background: transparent; text-align: left; font: inherit; font-size: 0.875rem; color: inherit; }
button.dash-plain__row { cursor: pointer; transition: background-color 0.15s ease; }
button.dash-plain__row:hover { background: var(--d-soft); }
button.dash-plain__row:focus-visible { outline: 3px solid var(--d-accent); outline-offset: -2px; }
.dash-plain__label { display: flex; flex-direction: column; min-width: 0; }
.dash-plain__label small { color: var(--d-muted); font-size: 0.75rem; }
.dash-plain__count { font-variant-numeric: tabular-nums; }

/* Rates as rings: a small ring per rate with the percentage in the middle. */
.dash-rings { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 18px 12px; padding: 4px 0; }
.dash-rate { display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.dash-rate__ring { position: relative; width: 92px; height: 92px; }
.dash-rate__ring svg { display: block; width: 100%; height: 100%; }
.dash-rate__ring .dash-ring__track, .dash-rate__ring .dash-ring__arc { stroke-width: 9; }
.dash-rate__ring strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.125rem; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.dash-rate__label { font-size: 0.875rem; font-weight: 600; }
.dash-rate__value { font-size: 0.75rem; color: var(--d-muted); }

/* The choice of view, in customize mode (the card itself does not take clicks then). */
.dash-widget__bar { flex-wrap: wrap; }
.dash-widget__views { display: flex; flex-wrap: wrap; flex: 1 0 100%; gap: 4px; padding-top: 4px; }
.dash-viewbtn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px 3px 7px; border: 1px solid transparent; border-radius: 999px; background: transparent; font: inherit; font-size: 0.75rem; font-weight: 600; color: var(--d-muted); cursor: pointer; }
.dash-viewbtn:hover { background: var(--d-card); color: var(--d-ink); }
.dash-viewbtn--on { background: var(--d-card); color: var(--d-ink); border-color: color-mix(in srgb, var(--d-accent) 45%, transparent); }
.dash-viewbtn:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 1px; }

/* The choice of view on the card itself: a small button in the card's top-right corner that opens a menu. The card header leaves room for it. */
.dash-widget--views { position: relative; }
.dash-widget--views .dash-card__head { padding-right: 40px; }
.dash-widget--views:has(.dash-viewmenu__list) { z-index: 20; }
.dash-viewmenu { position: absolute; top: 12px; right: 12px; z-index: 5; }
.dash-viewmenu__btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--d-muted); cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.dash-viewmenu__btn:hover, .dash-viewmenu__btn[aria-expanded="true"] { background: var(--d-soft); color: var(--d-ink); border-color: var(--d-line); }
.dash-viewmenu__btn:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 1px; }
.dash-viewmenu__backdrop { position: fixed; inset: 0; z-index: 5; padding: 0; border: 0; background: transparent; cursor: default; }
.dash-viewmenu__list { position: absolute; top: 36px; right: 0; z-index: 6; min-width: 188px; padding: 6px; border: 1px solid var(--d-line); border-radius: 12px; background: var(--d-card); box-shadow: var(--d-shadow-hover); }
.dash-viewmenu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: transparent; text-align: left; font: inherit; font-size: 0.875rem; color: var(--d-ink); cursor: pointer; }
.dash-viewmenu__item small { margin-left: auto; font-size: 0.6875rem; color: var(--d-muted); }
.dash-viewmenu__item:hover { background: var(--d-soft); }
.dash-viewmenu__item--on { font-weight: 650; background: color-mix(in srgb, var(--d-accent) 10%, var(--d-card)); }
.dash-viewmenu__item:focus-visible { outline: 3px solid var(--d-accent); outline-offset: -2px; }

/* ── Dropdown (DashSelect): the dashboards' own, instead of the browser's ─────────────────────────────── */
.dash-pick { position: relative; display: inline-block; }
.dash-pick__btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 38px; max-width: 100%; padding: 0 10px 0 12px;
    border: 1px solid var(--d-line); border-radius: 10px; background: var(--d-card); color: var(--d-ink);
    font: inherit; font-size: 0.875rem; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.dash-pick__btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--d-accent) 40%, var(--d-line)); }
.dash-pick__btn[aria-expanded="true"] { border-color: var(--d-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-accent) 22%, transparent); }
.dash-pick__btn:focus-visible { outline: 3px solid var(--d-accent); outline-offset: 2px; }
.dash-pick__btn:disabled { opacity: 0.55; cursor: default; }
.dash-pick__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.dash-pick__chev { display: grid; color: var(--d-muted); transition: transform 0.15s ease; }
.dash-pick__btn[aria-expanded="true"] .dash-pick__chev { transform: rotate(180deg); }
.dash-pick--compact .dash-pick__btn { min-height: 32px; padding: 0 8px 0 10px; font-size: 0.8125rem; border-radius: 8px; }
.dash-pick__backdrop { position: fixed; inset: 0; z-index: 30; padding: 0; border: 0; background: transparent; cursor: default; }
.dash-pick__panel {
    position: absolute; z-index: 31; top: calc(100% + 6px); left: 0; min-width: max(100%, 240px); max-width: min(380px, 90vw); padding: 6px;
    border: 1px solid var(--d-line); border-radius: 12px; background: var(--d-card); box-shadow: var(--d-shadow-hover);
}
.dash-pick--up .dash-pick__panel { top: auto; bottom: calc(100% + 6px); }
.dash-pick__search {
    display: flex; align-items: center; gap: 8px; height: 36px; margin: 2px 2px 6px; padding: 0 10px;
    border: 1px solid var(--d-line); border-radius: 9px; background: var(--d-soft); color: var(--d-muted);
}
.dash-pick__search:focus-within { border-color: var(--d-accent); background: var(--d-card); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d-accent) 20%, transparent); }
.dash-pick__search input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 0.875rem; color: var(--d-ink); }
.dash-pick__list { list-style: none; margin: 0; padding: 0; max-height: 280px; overflow-y: auto; }
.dash-pick__opt {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 8px 10px;
    border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 0.875rem; color: var(--d-ink); text-align: left; cursor: pointer;
}
.dash-pick__opt:hover, .dash-pick__opt--active { background: var(--d-soft); }
.dash-pick__opt--on { font-weight: 650; color: var(--t-brand); background: var(--t-brand-soft); }
.dash-pick__label small { display: block; font-size: 0.75rem; font-weight: 400; color: var(--d-muted); }
.dash-pick__none { padding: 10px; font-size: 0.8125rem; color: var(--d-muted); }
