/* /Components/Pages/AdminEmails.razor.rz.scp.css */
.admin-mail-card[b-500t8iigd2] {
    background: color-mix(in srgb, var(--color-surface-800) 94%, transparent);
    border: 1px solid var(--border-muted);
    border-radius: 3px;
    padding: 1rem;
    box-shadow: 0 18px 60px rgb(0 0 0 / .12);
}

.admin-mail-step[b-500t8iigd2] {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: .9rem;
    color: var(--color-surface-200);
    font-size: var(--text-meta);
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.admin-mail-step > span[b-500t8iigd2] {
    color: var(--color-primary-400);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: var(--text-micro);
}

.admin-mail-label[b-500t8iigd2] {
    display: block;
    color: var(--color-surface-400);
    font-size: var(--text-meta);
    font-weight: 600;
    letter-spacing: .035em;
}

.admin-mail-ghost[b-500t8iigd2],
.admin-mail-primary[b-500t8iigd2],
.admin-mail-danger[b-500t8iigd2] {
    display: inline-flex;
    align-items: center;
    gap: .42rem;
    border-radius: 3px;
    padding: .48rem .75rem;
    font-size: var(--text-data);
    font-weight: 600;
    cursor: pointer;
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease, transform 140ms ease;
}

.admin-mail-ghost[b-500t8iigd2] {
    color: var(--color-surface-300);
    background: var(--color-surface-800);
    border: 1px solid var(--border-muted);
}
.admin-mail-ghost:hover[b-500t8iigd2] { color: var(--color-surface-50); background: var(--overlay-strong); }

.admin-mail-primary[b-500t8iigd2] {
    color: white;
    background: var(--color-primary-600);
    border: 1px solid var(--color-primary-500);
    box-shadow: 0 6px 24px color-mix(in srgb, var(--color-primary-600) 24%, transparent);
}
.admin-mail-primary:hover[b-500t8iigd2] { background: var(--color-primary-500); transform: translateY(-1px); }
.admin-mail-danger[b-500t8iigd2] { color: var(--fg-danger); background: transparent; border: 1px solid color-mix(in srgb, var(--fg-danger) 35%, transparent); }
.admin-mail-danger:hover[b-500t8iigd2] { background: color-mix(in srgb, var(--fg-danger) 9%, transparent); }
.admin-mail-ghost:disabled[b-500t8iigd2], .admin-mail-primary:disabled[b-500t8iigd2] { cursor: not-allowed; opacity: .45; transform: none; }

.admin-mail-tab[b-500t8iigd2] {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .7rem 1rem;
    color: var(--fg-muted);
    font-size: var(--text-data);
    font-weight: 600;
    cursor: pointer;
}
.admin-mail-tab[b-500t8iigd2]::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: -1px; height: 2px; background: transparent; }
.admin-mail-tab:hover[b-500t8iigd2] { color: var(--color-surface-200); }
.admin-mail-tab.active[b-500t8iigd2] { color: var(--color-surface-50); }
.admin-mail-tab.active[b-500t8iigd2]::after { background: var(--color-primary-500); box-shadow: 0 0 12px color-mix(in srgb, var(--color-primary-500) 65%, transparent); }

.admin-audience-button[b-500t8iigd2] {
    min-height: 72px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: .35rem;
    padding: .75rem;
    color: var(--color-surface-400);
    background: var(--color-surface-900);
    border: 1px solid var(--border-muted);
    border-radius: 3px;
    font-size: var(--text-meta);
    font-weight: 650;
    cursor: pointer;
    transition: 140ms ease;
}
/* icons size via the Icon component's Size attr — font-size cannot size an SVG */
.admin-audience-button:hover[b-500t8iigd2] { color: var(--color-surface-100); border-color: var(--color-surface-500); }
.admin-audience-button.active[b-500t8iigd2] { color: var(--color-primary-300); border-color: var(--color-primary-500); background: color-mix(in srgb, var(--color-primary-600) 10%, var(--color-surface-900)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-primary-500) 25%, transparent); }

.admin-preview-toggle[b-500t8iigd2] { width: 32px; height: 28px; display: grid; place-items: center; color: var(--fg-muted); cursor: pointer; border-radius: 2px; }
.admin-preview-toggle.active[b-500t8iigd2] { color: white; background: var(--color-surface-600); }
/* Text chip → --radius-sharp (pill is for status dots/avatars only); .65rem → --text-micro. */
.admin-status[b-500t8iigd2] { display: inline-flex; align-items: center; border: 1px solid; border-radius: var(--radius-sharp); padding: .15rem .5rem; font-size: var(--text-micro); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

@media (max-width: 640px) {
    .admin-mail-tab[b-500t8iigd2] { padding-inline: .65rem; }
    .admin-mail-card[b-500t8iigd2] { padding: .8rem; }
}
/* /Components/Pages/AdminInsights.razor.rz.scp.css */
/* Filters sit in ONE row above the charts (wrapping on narrow screens), never per-chart: the whole
   page must always be looking at the same window. */
.insights-controls[b-h8poppphd4] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    margin-bottom: 1rem;
    background: var(--color-surface-800);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-soft, 3px);
}

.insights-group[b-h8poppphd4] {
    display: inline-flex;
    padding: 2px;
    background: var(--color-surface-900);
    border: 1px solid var(--border);
    border-radius: var(--radius-soft, 3px);
}

.insights-chip[b-h8poppphd4] {
    padding: 0.25rem 0.6rem;
    font-size: var(--text-meta, 0.75rem);
    color: var(--fg-muted);
    background: transparent;
    border: 0;
    border-radius: var(--radius-sharp, 2px);
    cursor: pointer;
    transition: color 120ms, background-color 120ms;
    white-space: nowrap;
}

.insights-chip:hover:not(:disabled)[b-h8poppphd4] {
    color: var(--color-surface-100);
    background: var(--overlay-strong);
}

.insights-chip.is-active[b-h8poppphd4] {
    background: var(--color-primary-600);
    color: #fff;
    font-weight: 600;
}

.insights-chip:disabled[b-h8poppphd4] {
    opacity: 0.35;
    cursor: not-allowed;
}

.insights-toggle[b-h8poppphd4] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--text-meta, 0.75rem);
    color: var(--fg-muted);
    cursor: pointer;
    user-select: none;
}

.insights-ghost[b-h8poppphd4],
.insights-refresh[b-h8poppphd4] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    font-size: var(--text-ui, 0.875rem);
    color: var(--color-surface-300);
    background: var(--color-surface-800);
    border: 1px solid var(--border);
    border-radius: var(--radius-soft, 3px);
    cursor: pointer;
    text-decoration: none;
    transition: color 120ms, background-color 120ms;
}

.insights-ghost[b-h8poppphd4] {
    padding: 0.35rem;
}

.insights-ghost:hover[b-h8poppphd4],
.insights-refresh:hover:not(:disabled)[b-h8poppphd4] {
    background: var(--overlay-strong);
    color: var(--color-surface-50);
}

/* Tiles: as many as fit, minimum 9rem each — the row reflows rather than scrolling sideways. */
.insights-tiles[b-h8poppphd4] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.insights-grid[b-h8poppphd4] {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

@media (min-width: 1024px) {
    .insights-grid[b-h8poppphd4] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Anchor offset so clicking a tile doesn't hide the panel's title under the header. */
.insights-grid__cell[b-h8poppphd4] {
    scroll-margin-top: 1rem;
    min-width: 0;
}

.insights-loading[b-h8poppphd4],
.insights-foot[b-h8poppphd4] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--fg-muted);
    font-size: var(--text-meta, 0.75rem);
}

.insights-loading[b-h8poppphd4] {
    justify-content: center;
    padding: 3rem 0;
}

.insights-foot[b-h8poppphd4] {
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Section headings. The page is two different kinds of question — what changed, and what happened
   to the accounts that arrived — and running ten charts straight into six more reads as a pile. */
.insights-section[b-h8poppphd4] {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin: 1.75rem 0 0.75rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border-muted);
    font-size: var(--text-ui, 0.875rem);
    font-weight: 700;
    color: var(--color-surface-100);
    scroll-margin-top: 1rem;
}

.insights-section:first-of-type[b-h8poppphd4] {
    margin-top: 0.5rem;
}

.insights-section__hint[b-h8poppphd4] {
    font-size: var(--text-meta, 0.75rem);
    font-weight: 400;
    color: var(--fg-muted);
}

/* The cohort grid needs the full row: nine week columns crammed into half the width collide. */
@media (min-width: 1024px) {
    .insights-grid__cell--wide[b-h8poppphd4] {
        grid-column: 1 / -1;
    }
}
/* /Components/Shared/Charts/MetricTile.razor.rz.scp.css */
.metric-tile[b-mus43rb5cj] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    background: var(--color-surface-800);
    border: 1px solid var(--border-muted);
    border-radius: var(--radius-soft, 3px);
    padding: 0.6rem 0.65rem 0.4rem;
    text-decoration: none;
    min-width: 0;
    transition: border-color 120ms, background-color 120ms;
}

.metric-tile:hover[b-mus43rb5cj] {
    border-color: var(--border-strong);
    background: var(--overlay-faint);
}

.metric-tile__top[b-mus43rb5cj] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-width: 0;
}

.metric-tile__label[b-mus43rb5cj] {
    font-size: var(--text-micro, 0.6875rem);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--fg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.metric-tile__value[b-mus43rb5cj] {
    font-family: var(--font-family-mono);
    font-size: 1.375rem;
    line-height: 1.1;
    font-weight: 600;
    color: var(--color-surface-50);
}

.metric-tile__foot[b-mus43rb5cj] {
    min-height: 1rem;
}

.metric-tile__delta[b-mus43rb5cj] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: var(--text-micro, 0.6875rem);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.metric-tile__delta.is-good[b-mus43rb5cj]  { color: var(--fg-success); }
.metric-tile__delta.is-bad[b-mus43rb5cj]   { color: var(--fg-danger); }
.metric-tile__delta.is-muted[b-mus43rb5cj] { color: var(--fg-muted); font-weight: 400; }
/* /Components/Shared/NestingProgressCard.razor.rz.scp.css */
/* The two supporting lines under the phase. Both sit in a ~230px column, so how they WRAP is most
   of how professional they look — a three-line ragged block with a hanging icon reads as clutter
   and undermines the calm the card is trying to project. */

.nesting-progress__eta[b-0s12ionuou] {
    margin-top: 0.25rem;
    text-align: center;
    font-size: var(--text-meta, 0.75rem);
    color: var(--fg-muted);
    /* Tabular figures so the countdown does not jitter sideways as digits change width. */
    font-variant-numeric: tabular-nums;
}

.nesting-progress__note[b-0s12ionuou] {
    margin-top: 0.6rem;
    /* Deliberately NO max-width. An earlier `22ch` cap measured 105px against a 235px card and
       squeezed the sentence into five short lines — the opposite of the intent. The card's own
       padding is the right measure here; balance does the rest. */
    text-align: center;
    /* Even line lengths instead of a long line and a one-word orphan — the single biggest reason
       short centred paragraphs look unfinished. */
    text-wrap: balance;
    font-size: var(--text-meta, 0.75rem);
    line-height: 1.45;
    color: var(--fg-muted);
    /* Never break a word mid-way; a hyphenated fragment in a reassurance line reads as a defect. */
    overflow-wrap: normal;
}
