/* A stream's events in words (Components/Parts/Timeline.razor). */
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline-dense { gap: 4px; margin-top: 8px; font-size: 0.875rem; }
.timeline-step { display: flex; gap: 8px; align-items: flex-start; }
.timeline-icon { flex: none; margin-top: 2px; }
.timeline-text { min-width: 0; }
.timeline-time { margin-left: 6px; font-size: 0.75rem; white-space: nowrap; }

/* A SintMail's letter and a reply, as SafeHtml rebuilt them: text and a few plain elements. */
.letter-body, .reply-body {
    border-left: 3px solid var(--mud-palette-lines-default);
    padding: 4px 12px;
    overflow-wrap: anywhere;
    max-width: 80ch;
}

.letter-body p, .reply-body p { margin: 0 0 0.75em 0; }

/* The menu (wwwroot/nav.js): beside the page from 960px wide unless collapsed; narrower, hidden until opened over the
   page. MudBlazor's own responsive drawer needs an interactive layout to open; ours renders statically. */
.nav-scrim { display: none; }

@media (min-width: 960px) {
    html.nav-collapsed #nav-drawer { display: none !important; }
    html.nav-collapsed .mud-layout .mud-main-content { margin-left: 0; }
}

@media (max-width: 959.98px) {
    html.nav-open #nav-drawer { display: block !important; left: 0; }
    html.nav-open .nav-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.32);
        z-index: calc(var(--mud-zindex-appbar) - 1); /* below the app bar; the menu has a button of its own to close it (.bo-close) */
    }
}

/* Lists that fit a laptop (1280px, menu open) and a phone (375px) without scrolling sideways, so their actions stay in
   view. A search box grows to fill its row and wraps onto its own on a phone; no fixed minimum width. */
.filter-field { flex: 1 1 260px; max-width: 560px; }

/* Long ids (an outgoing mail's holds an address, an incoming mail's is a Message-Id) are cut short; the chip's title
   holds the whole id. */
.chip-truncate { max-width: 240px; }
.chip-truncate .mud-chip-content {
    display: block;
    align-self: center;
    height: auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.compact-table.mud-table-dense * .mud-table-row .mud-table-cell { padding: 4px 8px; padding-inline: 8px; }
.compact-table .mud-table-cell .mud-chip { margin: 0; }

/* The Statistics page. Colours: the reference palette's blue for what was counted, green and red (each with an icon) for
   delivered and bounced, and the muted grey for the rest; text stays in the theme's text colours. */
.stats-page {
    --stat-series: #2a78d6; --stat-good: #0ca30c; --stat-good-text: #006300; --stat-critical: #d03b3b; --stat-muted: #898781;
    --stat-grid: #e1e0d9; --stat-axis: #c3c2b7;
}
.stat-value { font-weight: 700; }
.year-toggle .mud-toggle-item { padding-inline: 16px; }
.stat-spark { display: block; max-width: 100%; height: 34px; margin: 4px 0 6px; }
.stat-spark polyline { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.stat-spark-past { stroke: var(--stat-axis); }
.stat-spark-now { stroke: var(--stat-series); }
.stat-spark-dot { fill: var(--stat-series); stroke: var(--mud-palette-surface); stroke-width: 2; }
.stat-delta-good { color: var(--stat-good-text); }
.stat-delta-bad { color: var(--stat-critical); }
.stat-delta-neutral { color: var(--mud-palette-text-secondary); }
.stat-notice { display: flex; align-items: center; gap: 4px; }
.stat-notice-warning { color: #8a4b00; }
.stat-notice-warning .mud-icon-root { color: #e07b00; }
.stat-notice-critical { color: var(--stat-critical); }
.stat-notice-info { color: var(--mud-palette-text-secondary); }
.flow-group { font-size: .8125rem; font-weight: 500; color: var(--mud-palette-text-secondary); margin: 16px 0 6px; }
.flow-group:first-of-type { margin-top: 6px; }
.flow-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 64px 56px; gap: 12px; align-items: center; margin: 7px 0; }
.flow-name { display: flex; gap: 6px; align-items: center; }
.flow-icon-good { color: var(--stat-good); }
.flow-icon-bad { color: var(--stat-critical); }
.flow-track { background: var(--mud-palette-background-gray); border-radius: 4px; height: 14px; overflow: hidden; }
.flow-fill { height: 100%; border-radius: 0 4px 4px 0; }
.flow-fill-series { background: var(--stat-series); }
.flow-fill-good { background: var(--stat-good); }
.flow-fill-bad { background: var(--stat-critical); }
.flow-num, .flow-pct { text-align: right; font-variant-numeric: tabular-nums; }
.flow-pct { color: var(--mud-palette-text-secondary); }
@media (max-width: 760px) {
    .flow-row { grid-template-columns: 1fr 64px 56px; gap: 4px 8px; }
    .flow-track { grid-column: 1 / -1; grid-row: 2; }
}
.daily-chart-scroll { overflow-x: auto; }
.daily-chart { display: block; width: 100%; min-width: 760px; height: auto; }
.daily-chart .grid { stroke: var(--stat-grid); }
.daily-chart .axis { stroke: var(--stat-axis); }
.daily-chart .tick { font-size: 12.5px; fill: var(--mud-palette-text-secondary); }
.daily-chart .tick-title, .daily-chart .tick-value { font-weight: 500; fill: var(--mud-palette-text-primary); }
.daily-chart .tick-value { font-size: 13px; }
.daily-chart .bar-sent { fill: var(--stat-series); }
.daily-chart .line-bounce { fill: none; stroke: var(--stat-critical); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.daily-chart .dot-bounce { fill: var(--stat-critical); stroke: var(--mud-palette-surface); stroke-width: 2; }
.daily-chart .hit { fill: transparent; }
.daily-chart .hit:hover { fill: rgba(42, 120, 214, .08); }
.stats-table-scroll { overflow: auto; max-height: 380px; border: 1px solid var(--mud-palette-lines-default); border-radius: 6px; }
.stats-table { border-collapse: separate; border-spacing: 0; width: 100%; min-width: 980px; font-size: .875rem; }
.stats-table th, .stats-table td { padding: 7px 10px; border-bottom: 1px solid var(--stat-grid); text-align: right; white-space: nowrap; background: var(--mud-palette-surface); font-variant-numeric: tabular-nums; }
.stats-table thead th { font-weight: 500; color: var(--mud-palette-text-secondary); font-size: .78rem; position: sticky; top: 0; z-index: 1; }
.stats-table thead th { height: 2.25rem; padding-block: 0; box-sizing: border-box; vertical-align: middle; }
.stats-table thead tr:nth-child(2) th { top: 2.25rem; }
.stats-table thead tr:first-child th:first-child, .stats-table tbody th { text-align: left; position: sticky; left: 0; }
.stats-table thead tr:first-child th:first-child { z-index: 2; }
.stats-table tbody th { font-weight: 400; color: var(--mud-palette-text-primary); }
.stats-table th.group, .stats-table td.group-start, .stats-table th.group-start { border-left: 1px solid var(--stat-grid); }
.stats-table th.group { text-align: center; }
.daily-chart:focus-visible { outline: 2px solid var(--mud-palette-primary); outline-offset: 2px; border-radius: 4px; }
.daily-chart .active-day { fill: rgba(42, 120, 214, .12); }
.daily-chart .hit { cursor: pointer; }
.daily-chart .line-before, .daily-chart .line-this { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.daily-chart .line-before { stroke: var(--stat-muted); }
.daily-chart .line-this { stroke: var(--stat-series); }
.daily-chart .dot-this { fill: var(--stat-series); stroke: var(--mud-palette-surface); stroke-width: 2; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8125rem; color: var(--mud-palette-text-secondary); margin: 8px 0; }
.legend-line { display: inline-block; width: 22px; height: 0; border-top: 2px solid; vertical-align: middle; margin-right: 6px; }
.legend-this { border-color: var(--stat-series); }
.legend-before { border-color: var(--stat-muted); }

/* ---------------------------------------------------------------------------------------------------------------------
   The shell: a business look for a work tool. Flat panels with hairlines instead of shadows, a dark menu beside a light
   page, one blue accent, and colour only where it means a status (always with a word). MudBlazor's theme variables are
   overridden on <body>, below the :root its theme provider writes, so every page gets the palette without a theme
   object (the provider is interactive and its parameters would have to cross the render-mode boundary).
   --------------------------------------------------------------------------------------------------------------------- */
body {
    --bo-page: #f4f6f8; --bo-line: #d8dee6; --bo-line-soft: #e8ecf1;
    --bo-ink: #18212c; --bo-ink-2: #5a6675; --bo-ink-3: #66717f; --bo-input-line: #7d8998;
    --bo-rail: #1a2431; --bo-rail-ink: #c9d2de; --bo-rail-ink-2: #8995a6; --bo-rail-line: #2a3646; --bo-rail-on: #2a3a50;
    --bo-accent: #1f5fbf;
    --bo-good: #0e7a3b; --bo-good-mark: #1a9a4a; --bo-warn: #9a5a00; --bo-warn-mark: #c27a00; --bo-bad: #b3261e; --bo-bad-mark: #d03b3b; --bo-idle-mark: #8995a6;

    --mud-palette-primary: #1f5fbf; --mud-palette-primary-text: #ffffff; --mud-palette-primary-darken: #1a52a6; --mud-palette-primary-lighten: #4a82d6;
    --mud-palette-primary-hover: rgba(31, 95, 191, 0.06);
    --mud-palette-secondary: #5a6675; --mud-palette-secondary-text: #ffffff;
    --mud-palette-background: #f4f6f8; --mud-palette-background-gray: #eef1f5; --mud-palette-surface: #ffffff;
    --mud-palette-drawer-background: #1a2431; --mud-palette-drawer-text: #c9d2de; --mud-palette-drawer-icon: #8995a6;
    --mud-palette-appbar-background: #ffffff; --mud-palette-appbar-text: #18212c;
    --mud-palette-lines-default: #d8dee6; --mud-palette-lines-inputs: #7d8998; /* = --bo-input-line */ --mud-palette-table-lines: #e8ecf1;
    --mud-palette-divider: #d8dee6; --mud-palette-table-hover: #f6f9fd; --mud-palette-table-striped: #fafbfc;
    --mud-palette-text-primary: #18212c; --mud-palette-text-secondary: #5a6675; --mud-palette-text-disabled: #9aa4b1;
    --mud-palette-action-default: #5a6675;
    --mud-palette-success: #0e7a3b; --mud-palette-warning: #9a5a00; --mud-palette-error: #b3261e; --mud-palette-info: #1f5fbf;
    --mud-default-borderradius: 3px;
    --mud-drawer-width-left: 236px;
    /* One family everywhere: Roboto, which the page loads (weights 300, 400, 500 and 700: no 600), then the system's. MudBlazor draws
       its own text in Roboto and takes the rest of the page's family from this variable, so a system font here puts two on one page. */
    --mud-typography-default-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --mud-typography-default-size: 0.95rem;
    background: var(--bo-page);
    color: var(--bo-ink);
}

/* Flat: a hairline where there was a shadow. */
.mud-paper[class*="mud-elevation-"]:not(.mud-elevation-0), .mud-card { box-shadow: none !important; border: 1px solid var(--bo-line); }
.mud-appbar { box-shadow: none !important; border-bottom: 1px solid var(--bo-line); }
.mud-table { box-shadow: none; }
.mud-table-head .mud-table-cell { font-weight: 500; color: var(--bo-ink-2); background: #fafbfc; }
.mud-button-root { text-transform: none; letter-spacing: 0; font-weight: 500; }
.mud-chip { border-radius: 3px; }
h1 { font-size: 1.55rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.005em; }

/* The page: left-aligned under the top bar, not centred in a wide window. Each page keeps its own MaxWidth; the sign-in
   page, in another layout, is not touched. */
.bo-main > .mud-container { margin-inline: 0; padding: 22px 28px 56px; }
@media (max-width: 599.98px) { .bo-main > .mud-container { padding: 18px 16px 48px; } }

/* The menu beside the page (a drawer the full height) and the slim top bar next to it. */
#nav-drawer { border-right: 0; }
#nav-drawer .mud-drawer-content { display: flex; flex-direction: column; height: 100%; overflow-y: auto; }
.bo-brand { position: relative; padding: 16px 18px 14px; border-bottom: 1px solid var(--bo-rail-line); margin-bottom: 6px; }
.bo-brand b { display: block; color: #fff; font-size: 1.05rem; font-weight: 700; }
.bo-brand span { display: block; color: var(--bo-rail-ink-2); font-size: 0.8rem; margin-top: 2px; }
.bo-brand .bo-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.nav-group { padding: 12px 18px 4px; color: var(--bo-rail-ink-2); font-size: 0.8rem; font-weight: 500; }
#nav-drawer .mud-nav-link { display: flex; align-items: center; color: var(--bo-rail-ink); padding: 7px 18px; border-left: 3px solid transparent; border-radius: 0; font-size: 0.95rem; }
#nav-drawer .mud-nav-link:hover { background: #212d3d; }
#nav-drawer .mud-nav-link .mud-nav-link-icon { display: inline-flex; align-items: center; color: var(--bo-rail-ink-2); font-size: 1.15rem; margin: 0 10px 0 0; }
#nav-drawer .mud-nav-link.active:not(.mud-nav-link-disabled) { background: var(--bo-rail-on); color: #fff; border-left-color: #6aa2ff; font-weight: 500; }
#nav-drawer .mud-nav-link.active .mud-nav-link-icon { color: #fff; }
/* What waits for a person: a count after the link, in the warning colour of the rail (a number, read out as "waiting for review"). */
.nav-row { position: relative; }
.nav-row .nav-count { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); text-decoration: none; }
.nav-count { margin-left: 8px; padding: 0 8px; border-radius: 9px; background: #f0b44c; color: #1a1205; font-size: 0.8rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bo-close { display: none; position: absolute; top: 10px; right: 10px; background: none; border: 1px solid var(--bo-rail-line); border-radius: 3px; color: var(--bo-rail-ink); padding: 4px 10px; font: inherit; cursor: pointer; }
.bo-close:hover { background: #212d3d; }
@media (max-width: 959.98px) { .bo-close { display: block; } }
.bo-user { margin-top: auto; padding: 12px 18px 14px; border-top: 1px solid var(--bo-rail-line); font-size: 0.85rem; color: var(--bo-rail-ink-2); }
.bo-user b { display: block; color: var(--bo-rail-ink); font-weight: 500; overflow-wrap: anywhere; }
.bo-user button { background: none; border: 0; padding: 0; color: #8fb6ff; font: inherit; cursor: pointer; }
.bo-user button:hover { text-decoration: underline; }
.bo-bar { display: flex; align-items: center; gap: 12px; width: 100%; }
.bo-find { flex: 1; max-width: 520px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--bo-input-line); border-radius: 3px; padding: 0 10px; background: #fbfcfd; }
.bo-find input { flex: 1; min-width: 0; border: 0; background: none; padding: 7px 0; font: inherit; color: var(--bo-ink); outline: none; }
.bo-find input::placeholder { color: var(--bo-ink-3); opacity: 1; }
.bo-find:focus-within { border-color: var(--bo-accent); outline: 2px solid var(--bo-accent); outline-offset: 1px; }
.bo-find .mud-icon-root { color: var(--bo-ink-3); font-size: 1.1rem; }
.bo-zone { margin-left: auto; color: var(--bo-ink-2); font-size: 0.9rem; white-space: nowrap; }
html.nav-collapsed .mud-layout .mud-appbar { margin-left: 0; width: 100%; }
@media (max-width: 959.98px) { .mud-appbar { margin-left: 0 !important; width: 100% !important; } .bo-zone { display: none; } }

/* A page's header: title, one line of what it is for, and its actions. */
.bo-head { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: flex-end; justify-content: space-between; margin-bottom: 18px; }
.bo-head h1 { margin: 0; }
.bo-head p { margin: 3px 0 0; color: var(--bo-ink-2); max-width: 70ch; }
.bo-actions { display: flex; gap: 8px; align-items: center; color: var(--bo-ink-2); font-size: 0.88rem; }

/* Panels and a status as a small square and a word: colour never stands alone. */
.bo-panel { background: #fff; border: 1px solid var(--bo-line); border-radius: 3px; }
.bo-panel-head { display: flex; align-items: center; gap: 10px; padding: 11px 16px; border-bottom: 1px solid var(--bo-line); }
.bo-panel-head h2 { font-size: 1rem; font-weight: 500; margin: 0; }
.bo-panel-head small { margin-left: auto; color: var(--bo-ink-2); font-size: 0.88rem; }
.bo-rest .bo-st, .bo-services .bo-st { white-space: normal; align-items: flex-start; }
.bo-rest .bo-st i, .bo-services .bo-st i { margin-top: 0.4em; }
.bo-rest { padding: 10px 16px; color: var(--bo-ink-2); font-size: 0.9rem; border-top: 1px solid var(--bo-line-soft); }
.bo-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.bo-cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.bo-cols > * { min-width: 0; }
@media (max-width: 1100px) { .bo-cols { grid-template-columns: 1fr; } }
.bo-st { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-weight: 500; }
.bo-st i { width: 9px; height: 9px; border-radius: 2px; flex: none; background: var(--bo-idle-mark); }
.bo-st-wait { color: var(--bo-warn); } .bo-st-wait i { background: var(--bo-warn-mark); }
.bo-st-ok { color: var(--bo-good); } .bo-st-ok i { background: var(--bo-good-mark); }
.bo-st-bad { color: var(--bo-bad); } .bo-st-bad i { background: var(--bo-bad-mark); }
.bo-st-info { color: var(--bo-accent); } .bo-st-info i { background: var(--bo-accent); }
.bo-st-idle { color: var(--bo-ink-2); }

/* Today, in one band. */
.bo-band { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.bo-cell { padding: 13px 16px; border-left: 1px solid var(--bo-line); }
.bo-cell:first-child { border-left: 0; }
.bo-cell .l { color: var(--bo-ink-2); font-size: 0.88rem; }
.bo-cell .v { font-size: 1.65rem; font-weight: 700; line-height: 1.25; font-variant-numeric: tabular-nums; }
.bo-cell .d { font-size: 0.85rem; color: var(--bo-ink-2); }
.bo-cell .d.warn { color: var(--bo-warn); } .bo-cell .d.bad { color: var(--bo-bad); }
@media (max-width: 1100px) { .bo-band { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bo-cell:nth-child(4) { border-left: 0; } .bo-cell:nth-child(n+4) { border-top: 1px solid var(--bo-line); } }
@media (max-width: 599.98px) {
    .bo-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .bo-cell { border-left: 0; border-top: 1px solid var(--bo-line); }
    .bo-cell:nth-child(-n+2) { border-top: 0; }
    .bo-cell:nth-child(even) { border-left: 1px solid var(--bo-line); }
}

/* Needs attention: a work queue. One block per concern, its items under it. */
.bo-concern { border-bottom: 1px solid var(--bo-line-soft); padding: 10px 16px 8px; }
.bo-concern:last-of-type { border-bottom: 0; }
/* The count and its age sit beside the title, as the actions sit beside their items: the right of the block stays empty. */
.bo-concern-head { display: grid; grid-template-columns: 7.5rem minmax(0, 17rem) minmax(2.5ch, auto) auto; justify-content: start; gap: 4px 14px; align-items: start; }
.bo-concern-title b { font-weight: 500; }
.bo-info:not(:disabled) { color: var(--bo-ink-3); }
/* A tooltip holds a sentence or two: wrap it, left-aligned, instead of one line as wide as the text. MudBlazor sets max-width: none
   inline when it positions the popover, so only !important wins. */
.mud-tooltip { max-width: 22rem !important; white-space: normal; text-align: left; }
.bo-concern-count { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.bo-concern-age { color: var(--bo-ink-2); font-size: 0.88rem; white-space: nowrap; }
.bo-items { list-style: none; margin: 6px 0 0 8.4rem; padding: 0; font-size: 0.92rem; }
/* The action ends the item's first line, so it can never drift away from what it is for; the reason and detail follow below. */
.bo-items li { padding: 5px 0; overflow-wrap: anywhere; max-width: 40rem; }
.bo-item-line { display: flex; flex-wrap: wrap; align-items: center; }
.bo-items .bo-item-action { margin-left: 8px; }
.bo-items .when { color: var(--bo-ink-2); font-size: 0.85rem; margin-left: 8px; }
.bo-items .detail { display: block; color: var(--bo-ink-2); font-size: 0.85rem; }
/* A reason in plain words first, the provider's own text behind it. */
.bo-items .detail b { color: var(--bo-ink); font-weight: 400; }
.bo-items details.detail summary { cursor: pointer; width: fit-content; color: var(--bo-accent); }
.bo-items .mud-button-root { padding: 2px 12px; min-width: 0; }
@media (max-width: 599.98px) { .bo-items .mud-button-root { min-height: 40px; } }
.bo-concern-foot { margin: 4px 0 0 8.4rem; font-size: 0.88rem; color: var(--bo-ink-2); display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
@media (max-width: 599.98px) {
    .bo-concern-head { grid-template-columns: auto 1fr; }
    .bo-concern-title { grid-column: 1 / -1; grid-row: 2; }
    .bo-concern-count { grid-column: 2; grid-row: 1; }
    .bo-concern-age { grid-column: 1 / -1; grid-row: 3; }
    .bo-items, .bo-concern-foot { margin-left: 0; }
}

/* Services: what is wrong first; the healthy ones by group, in the page's own ink (colour is for the square, not the name). */
.bo-services { list-style: none; margin: 0; padding: 0 0 4px; }
.bo-services li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 10px; padding: 6px 16px; font-size: 0.93rem; }
.bo-services li > span:nth-child(2) { color: var(--bo-ink-2); font-size: 0.86rem; }
.bo-services .reason { grid-column: 1 / -1; color: var(--bo-ink-2); font-size: 0.85rem; overflow-wrap: anywhere; }
.bo-services .bo-st { font-weight: 500; }
/* All healthy: a line on the page, not a card. */
.bo-strip { padding: 2px 4px; }
.bo-services-ok { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 0.95rem; }
.bo-groups { margin: 0; padding: 0 16px; font-size: 0.9rem; }
.bo-groups summary { cursor: pointer; padding: 7px 0; color: var(--bo-ink); font-weight: 500; list-style-position: outside; }
.bo-groups summary span { color: var(--bo-ink-2); font-weight: 400; margin-left: 6px; }
.bo-groups p { margin: 0 0 8px; color: var(--bo-ink-2); }

/* The SintMails list: tabs with their counts, one status word per row, a line of the letter. */
.bo-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--bo-line); margin: 0 0 14px; }
.bo-tabs a { border-bottom: 2px solid transparent; padding: 9px 14px; margin-bottom: -1px; color: var(--bo-ink-2); white-space: nowrap; font-weight: 500; text-decoration: none; }
.bo-tabs a:hover { color: var(--bo-ink); }
.bo-tabs a[aria-current="page"] { color: var(--bo-ink); border-bottom-color: var(--bo-accent); }
.bo-tabs em { font-style: normal; color: var(--bo-ink-3); font-weight: 400; margin-left: 6px; font-variant-numeric: tabular-nums; }
.bo-tabs a[aria-current="page"] em { color: var(--bo-ink-2); }
.bo-tabs a.needs em { font-weight: 700; }
.bo-tabs a.wait em { color: var(--bo-warn); } .bo-tabs a.bad em { color: var(--bo-bad); }
.sintmail-list .mud-table-row { cursor: pointer; }
/* A visitor's name may be one long word: it wraps instead of widening the table. */
.sintmail-list .who b { display: block; font-weight: 500; overflow-wrap: anywhere; }
.sintmail-list .who span { color: var(--bo-ink-2); font-size: 0.86rem; overflow-wrap: anywhere; }
.bo-snippet { color: var(--bo-ink-2); max-width: 34ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bo-st small { font-weight: 400; color: var(--bo-ink-2); }
@media (max-width: 959.98px) { .bo-snippet { max-width: none; white-space: normal; } }
/* A note after the status wraps rather than pushing the menu out of view. */
.sintmail-list .bo-st { white-space: normal; }
.sintmail-list .mud-table-head .mud-table-cell { background: #fff; }
.sintmail-list .who a:hover { color: var(--bo-accent); }
.sintmail-list .who a:focus-visible { outline: 2px solid var(--bo-accent); outline-offset: 2px; }
.sintmail-list .mud-table-empty-row td { text-align: left; }
/* A phone shows each row as a card: what to recognise a SintMail by and its menu; the receivers and the spam risk are on its page. */
@media (max-width: 599.98px) {
    .sintmail-list td[data-label="Actions"] .mud-icon-button { min-width: 40px; min-height: 40px; }
    .sintmail-list td[data-label="Receivers"], .sintmail-list td[data-label="Spam risk"] { display: none; }
}

/* A SintMail's page: the decision first (the actions beside the title, a notice under it), then the letter and its mails;
   the sender, the checks and the technical facts at the side. */
.bo-crumb { font-size: 0.88rem; margin-bottom: 8px; color: var(--bo-ink-2); display: flex; gap: 6px; flex-wrap: wrap; }
.bo-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; color: var(--bo-ink-2); font-size: 0.9rem; margin-top: 4px; }
.bo-detail-head .bo-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; flex: none; }
.bo-detail-head > div:first-child { flex: 1 1 26rem; min-width: 0; }
.bo-checks { display: grid; gap: 4px; font-size: 0.93rem; }
.bo-mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.88em; overflow-wrap: anywhere; }
.bo-link { background: none; border: 0; padding: 0 2px; color: var(--bo-accent); font: inherit; font-size: 0.88rem; cursor: pointer; }
.bo-link:hover { text-decoration: underline; }
.bo-link:focus-visible { outline: 2px solid var(--bo-accent); outline-offset: 2px; }
.bo-link:disabled { color: var(--bo-ink-3); cursor: default; }
.bo-muted { color: var(--bo-ink-2); }
.bo-pb { padding: 12px 16px; }
.bo-pb + .bo-pb { border-top: 1px solid var(--bo-line-soft); }
.bo-notice { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; margin-bottom: 16px; border: 1px solid #efd9a3; background: #fff8e8; border-radius: 3px; }
.bo-notice-bad { border-color: #f1b9b5; background: #fdeeed; }
.bo-notice .bo-st { margin-top: 1px; }
.bo-danger { color: var(--bo-bad) !important; }
.bo-kv { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 6px 12px; margin: 0; font-size: 0.93rem; }
.bo-kv dt { color: var(--bo-ink-2); }
.bo-kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.bo-scroll { overflow-x: auto; }
.bo-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.bo-table th { text-align: left; font-weight: 500; color: var(--bo-ink-2); background: #fff; padding: 8px 16px; border-bottom: 1px solid var(--bo-line); white-space: nowrap; }
.bo-table td { padding: 8px 16px; vertical-align: top; }
.bo-table tbody tr:not(.bo-more) td { border-top: 1px solid var(--bo-line-soft); padding-bottom: 2px; }
.bo-table tr.bo-more td { padding-top: 0; padding-bottom: 8px; }
.bo-table tr:has(+ .bo-more) td { border-bottom: 0; }
.bo-more details summary { cursor: pointer; width: fit-content; color: var(--bo-accent); font-size: 0.88rem; }
.bo-more .bo-ids { color: var(--bo-ink-2); font-size: 0.85rem; margin-top: 6px; overflow-wrap: anywhere; }
.bo-reason { color: var(--bo-bad); font-size: 0.9rem; margin-bottom: 4px; overflow-wrap: anywhere; }
.bo-delivery { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: 0.9rem; margin-bottom: 6px; }
.bo-reply b { display: block; }
.bo-reply .reply-body { margin-top: 8px; }
.bo-panel .letter-body { border-left: 0; padding: 0; font-size: 1.02rem; line-height: 1.65; max-width: 68ch; }
@media (max-width: 599.98px) { .bo-detail-head .bo-actions .mud-button-root { min-height: 40px; } }
/* A phone keeps what to recognise a mail by and its status; the time is in its timeline. */
@media (max-width: 599.98px) { .bo-table tr:not(.bo-more) > :nth-child(4) { display: none; } }


/* A page's title with its info button beside it. */
.bo-title { display: flex; align-items: center; gap: 6px; }
.bo-grow { flex: 1; }
/* A sentence of a panel (an error, a note) wraps instead of widening the page. */
.bo-pb .bo-st { white-space: normal; align-items: flex-start; }
.bo-pb .bo-st i { margin-top: 0.4em; }
/* The label row is as tall with the info button as without, so the figures of a row of tiles line up. */
.stat-label { display: flex; align-items: center; gap: 4px; min-height: 30px; }

/* The checks of Health sit in several tables one under the other: the same columns at the same places, not each as wide as its
   own longest word. From a laptop up, where there is room for the long reason; below it the table finds its own widths, and below a phone's width a row is a card. */
@media (min-width: 960px) {
    .health-table table { table-layout: fixed; width: 100%; }
    .health-table th:nth-child(1), .health-table td:nth-child(1) { width: 14rem; }
    .health-table th:nth-child(2), .health-table td:nth-child(2) { width: 8.5rem; }
    /* The projections have longer names, and two figures and a time instead of a status and a reason. */
    .projection-table th:nth-child(1), .projection-table td:nth-child(1) { width: 20rem; overflow-wrap: anywhere; }
    .projection-table th:nth-child(2), .projection-table td:nth-child(2), .projection-table th:nth-child(3), .projection-table td:nth-child(3) { width: 8rem; }
    .projection-table td:nth-child(4) { white-space: nowrap; }
}
.projection-table th:nth-child(2), .projection-table td:nth-child(2), .projection-table th:nth-child(3), .projection-table td:nth-child(3) { text-align: right; }
.bo-row-actions { text-align: right; }
.bo-table .bo-st { white-space: normal; }
.bo-row-actions .mud-button-root + .mud-button-root { margin-left: 8px; }
