/*
   Monitoring V2 (employee /monitoring2, client /infrastructure2): prefix m2-. Loaded after app.css (Components\App.razor),
   whose shared rules it refines (panel, kpis, table, sev, subtab). TTech colours: olive #8d7f56 (--accent), gold #e0bf3f,
   beige background, white panels; severity colours from Severities.Color (inline --sev / --sev-tint).
   Debugging: F12 > Elements on the element, the m2- rule here.
*/

:root {
    --m2-gold: #e0bf3f;
    --m2-gold-soft: #fdf6d8;
}
/* Dark theme (html[data-theme="dark"]; the other colours are the tokens of app.css) */
:root[data-theme="dark"] {
    --m2-gold-soft: #3a3217;
}

/* ---- Status chip, chips, red values ---- */
.m2-status { white-space: nowrap; }
.m2-chip { display: inline-flex; align-items: center; gap: 4px; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--chip); color: var(--muted);
    font-size: 0.72rem; font-weight: 800; letter-spacing: 0.2px; vertical-align: middle; }
.m2-chip.sim { background: var(--m2-gold-soft); color: var(--gold-text); border: 1px solid var(--m2-gold); }
.m2-chip.key { margin: 0; background: var(--accent-soft); color: var(--text); }
.m2-chip.key a { color: var(--muted); font-weight: 900; text-decoration: none; }
.m2-chip.key a:hover { color: var(--bad); }
.m2-bad { color: var(--bad); font-weight: 700; }

/* ---- Tiles of the overview and of the client's home ---- */
.m2-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.m2-tile { display: flex; flex-direction: column; gap: 10px; border-left: 6px solid var(--good); color: var(--text); text-decoration: none; transition: box-shadow 0.15s; }
.m2-tile:hover { box-shadow: 0 2px 10px rgba(141, 127, 86, 0.25); }
.m2-tile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.m2-tile-name { font-size: 1.02rem; font-weight: 900; }
.m2-tile-sub { color: var(--muted); font-size: 0.8rem; }
.m2-tile-body { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 10px; align-items: end; }
.m2-tile-figure { display: flex; flex-direction: column; gap: 2px; }
.m2-tile-figure .label { color: var(--muted); font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; }
.m2-tile-figure .value { font-size: 1.3rem; font-weight: 900; line-height: 1.1; }
.m2-tile-figure small { color: var(--muted); font-size: 0.72rem; font-weight: 600; }
.m2-tile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.m2-tile-facts span { display: inline-flex; align-items: center; gap: 4px; }
.m2-tile-facts .mud-icon-root { color: var(--accent); font-size: 1rem; }
.m2-tile-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 8px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.8rem; }
.m2-spark { width: 100%; height: 28px; }

/* ---- Header of a system, component or incident page ---- */
.m2-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-left: 6px solid var(--good); }
.m2-head h2 { display: flex; align-items: center; gap: 6px; margin: 2px 0; font-size: 1.35rem; font-weight: 900; }
.m2-head-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: 0.86rem; }
.m2-tabs { margin: 2px 0; }
.m2-scope { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 10px; background: var(--panel); font-weight: 700; }
.m2-scope .mud-icon-root { color: var(--accent); }
.m2-client-filter { max-width: 260px; }
.m2-search { max-width: 260px; }

/* ---- Component tree ---- */
.m2-tree { display: flex; flex-direction: column; gap: 10px; }
.m2-folder-head { display: flex; align-items: center; gap: 6px; padding: 4px 2px; border-bottom: 1px solid var(--rule); color: var(--accent); font-weight: 800;
    font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.3px; }
.m2-node { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 5px 6px; border-radius: 6px; color: var(--text);
    text-decoration: none; font-size: 0.86rem; }
a.m2-node:hover { background: var(--accent-soft); }
.m2-node.child { padding-left: 26px; font-size: 0.82rem; }
.m2-node .dot { width: 10px; height: 10px; border-radius: 50%; }
.m2-node-name { overflow: hidden; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.m2-node-values { display: flex; gap: 10px; color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m2-node-values .m2-bad { color: var(--bad); }

/* ---- KPI strip ---- */
.m2-kpis { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* ---- Trends ---- */
.m2-ranges { display: flex; gap: 4px; }
.m2-add { display: flex; gap: 8px; min-width: 0; width: min(520px, 100%); }
.m2-keys { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.m2-chart-title { margin: 12px 0 2px; color: var(--muted); font-size: 0.82rem !important; text-transform: uppercase; letter-spacing: 0.3px; }
.m2-chart { min-height: 120px; }

/* ---- Journals (issues) ---- */
.m2-filters { margin-bottom: 8px; }
.m2-issues td { font-size: 0.84rem; }
.m2-issues .server { min-width: 170px; white-space: normal; overflow-wrap: break-word; }
.m2-pages { margin-top: 8px; }
.m2-legend { font-size: 0.8rem; }
.m2-scroll { max-height: 560px; overflow-y: auto; }
.table tr.m2-alert-row td { background: color-mix(in srgb, var(--bad-soft) 60%, var(--panel)); }
.table tr.m2-current td { background: var(--accent-soft); }
.table tr.m2-current td:first-child { box-shadow: inset 3px 0 0 var(--accent); }

/* ---- Dependencies: point -> attributes -> analyses -> displays ---- */
.m2-flow { display: grid; grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr); gap: 6px; align-items: start; }
.m2-flow-col h4 { display: flex; align-items: center; gap: 4px; margin: 0 0 6px; color: var(--accent); font-size: 0.82rem; }
.m2-flow-item { margin-bottom: 4px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: 6px; background: var(--panel-2); font-size: 0.78rem; overflow-wrap: anywhere; }
.m2-flow-arrow { padding-top: 28px; color: var(--m2-gold); font-weight: 900; text-align: center; }

/* ---- Rules on a component, settings ---- */
.m2-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0; font-size: 0.78rem; }
.m2-rule.active { font-weight: 800; }
.m2-rule.pending .hint { color: #b7791f; }
.m2-rule.off { opacity: 0.5; }
.m2-override { font-size: 0.8rem; }
.m2-edit { border: 1px solid var(--m2-gold); background: var(--panel-2); }
.m2-edit h4 { margin: 12px 0 2px; color: var(--accent); }

/* ---- Client incident steps ---- */
.m2-step { display: grid; grid-template-columns: 110px auto 1fr; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--rule); font-size: 0.86rem; }

@media (max-width: 760px) {
    .m2-tile-body { grid-template-columns: 1fr; }
    .m2-flow { grid-template-columns: 1fr; }
    .m2-flow-arrow { display: none; }
    .m2-add { flex-direction: column; }
}

/* ---- Incident tables ---- */
.table td.m2-system-cell { min-width: 140px; max-width: 260px; font-weight: 700; }

/* ---- Help: the "?" tips (HelpTip.razor) and the Guide panel (PageGuide.razor) ---- */
.m2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.m2-help { display: inline-flex; align-items: center; margin-left: 2px; vertical-align: middle; letter-spacing: normal; text-transform: none; }
.m2-help-button { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; padding: 0; border: 1px solid var(--faint);
    border-radius: 50%; background: transparent; color: var(--faint); font: inherit; font-size: 0.66rem; font-weight: 900; line-height: 1; cursor: help; }
.m2-help-button:hover, .m2-help-button:focus-visible { border-color: var(--os-accent-fill); background: var(--os-accent-fill); color: var(--os-on-accent-fill); }
.m2-help-button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.m2-help-pop { max-width: min(320px, calc(100vw - 32px)); }
.m2-help-text { padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); box-shadow: var(--shadow); color: var(--text);
    font-size: 0.82rem; font-weight: 500; letter-spacing: normal; line-height: 1.4; text-align: left; text-transform: none; white-space: normal; }
.m2-help-text p { margin: 0; }
.m2-help-text p + p { margin-top: 6px; }
.m2-help-text b { display: block; color: var(--accent-strong); font-size: 0.7rem; font-weight: 900; letter-spacing: 0.3px; text-transform: uppercase; }
.m2-guide-button { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel);
    color: var(--text); font: inherit; font-size: 0.82rem; font-weight: 700; cursor: pointer; }
.m2-guide-button .mud-icon-root { color: var(--accent); }
.m2-guide-button:hover, .m2-guide-button:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.m2-guide-back { position: fixed; z-index: 1300; inset: 0; background: rgba(17, 24, 39, 0.25); }
.m2-guide { position: fixed; z-index: 1301; top: 0; right: 0; bottom: 0; display: flex; width: min(440px, 100vw); flex-direction: column; background: var(--panel);
    box-shadow: -12px 0 32px rgba(0, 0, 0, 0.18); color: var(--text); }
.m2-guide-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.m2-guide-head h2 { margin: 0; font-size: 1.05rem; font-weight: 900; }
.m2-guide-close { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border: 0; border-radius: 8px; background: none;
    color: var(--muted); cursor: pointer; }
.m2-guide-close:hover, .m2-guide-close:focus-visible { background: var(--accent-soft); color: var(--text); }
.m2-guide-body { overflow: auto; flex: 1; padding: 4px 16px 18px; }
.m2-guide-body h3 { margin: 16px 0 4px; color: var(--accent); font-size: 0.78rem; font-weight: 900; letter-spacing: 0.3px; text-transform: uppercase; }
.m2-guide-body p { margin: 0; font-size: 0.88rem; line-height: 1.5; white-space: pre-line; }

/* A phone: the tip at the bottom of the screen, wherever its "?" is (MudPopover places it with inline styles) */
@media (max-width: 600px) {
    .m2-help-pop { position: fixed !important; top: auto !important; right: 16px !important; bottom: 16px !important; left: 16px !important; max-width: none;
        transform: none !important; }
}

/* ==== The areas of OneStop 1.4 (Docs\Monitoring V2 - Next release.md, section 3): each work package adds its rules right
   under its own heading below and never edits another line, so that the parallel changes merge without conflict ==== */

/* ---- Insights and scores (S1) ---- */
/* Score chips (ScoreChips.razor, the tree's per-component score): --score the band's colour, --score-tint its tint */
.m2-scores { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.m2-score { display: inline-flex; align-items: center; gap: 3px; padding: 1px 8px 1px 6px; border-left: 4px solid var(--score); border-radius: 6px;
    background: var(--score-tint); color: var(--text); font-size: 0.76rem; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.m2-score .mud-icon-root { color: var(--score); font-size: 0.95rem; }
.m2-score b { font-weight: 900; }
.m2-score.small { padding: 0 6px 0 4px; border-left-width: 3px; font-size: 0.72rem; }
.m2-scores.big .m2-score { padding: 3px 10px 3px 8px; font-size: 0.9rem; }
/* Dark theme: a dark tint of the band's own colour, as the severity chips (monitoring.css) */
:root[data-theme="dark"] .m2-score { background: color-mix(in srgb, var(--score) 18%, var(--panel)); }
:root[data-theme="dark"] .m2-score .mud-icon-root { color: color-mix(in srgb, var(--score) 65%, #ffffff); }
.m2-tile-status { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.m2-head-links { display: inline-flex; align-items: center; gap: 10px; }
/* The Insights tab: the two score cards, the groups' bars, the cards of the insights */
.m2-insight-scores { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; margin-bottom: 4px; }
.m2-scorecard .label { color: var(--muted); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.3px; text-transform: uppercase; }
.m2-scorecard .sub { margin-top: 4px; color: var(--muted); font-size: 0.82rem; }
.m2-score-main { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.m2-score-main .value { font-size: 2rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.m2-score-main .m2-spark { width: 140px; height: 30px; margin-left: auto; }
.m2-grade { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: var(--score);
    color: #ffffff; font-size: 1.3rem; font-weight: 900; }
.m2-grade .mud-icon-root { color: #ffffff; }
.m2-groups { display: grid; gap: 4px; margin-top: 10px; }
.m2-group { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(80px, 2fr) 36px 70px; align-items: center; gap: 8px; font-size: 0.82rem; }
.m2-group-name { font-weight: 700; }
.m2-bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--chip); }
.m2-bar span { display: block; height: 100%; border-radius: 999px; }
.m2-insight-counts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.m2-insight { border-left: 5px solid var(--rule); }
.m2-insight-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.m2-insight-head .m2-chip { margin-left: 0; }
.m2-insight-head .spacer { flex: 1; }
.m2-insight-title { margin: 8px 0 2px; font-size: 1rem; font-weight: 900; }
.m2-insight p { margin: 6px 0; font-size: 0.9rem; line-height: 1.45; }
.m2-insight-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 8px; }
.m2-insight-facts b { color: var(--text); }
.m2-insight-body { margin-top: 8px; padding-top: 4px; border-top: 1px solid var(--rule); }
.m2-insight-body h5 { margin: 12px 0 2px; color: var(--accent); font-size: 0.8rem; font-weight: 900; letter-spacing: 0.3px; text-transform: uppercase; }
.m2-insight-body ol { margin: 4px 0; padding-left: 22px; font-size: 0.88rem; line-height: 1.5; }
.m2-insight-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 6px; }
.m2-evidence td { font-size: 0.82rem; overflow-wrap: anywhere; }
/* The top lists (InsightList.razor): one line per insight, a link to the Insights tab */
.m2-insight-list { display: flex; flex-direction: column; }
.m2-insight-line { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 6px; border-bottom: 1px solid var(--rule);
    color: var(--text); text-decoration: none; font-size: 0.86rem; }
.m2-insight-line:last-child { border-bottom: 0; }
.m2-insight-line:hover { background: var(--accent-soft); }
.m2-insight-line-title { min-width: 0; font-weight: 700; }
.m2-insight-line-title .sub { display: block; color: var(--muted); font-weight: 500; }
@media (max-width: 760px) {
    .m2-insight-scores { grid-template-columns: 1fr; }
    .m2-group { grid-template-columns: minmax(0, 1fr) 80px 30px; }
    .m2-group .hint { display: none; }
    .m2-insight-line { grid-template-columns: auto minmax(0, 1fr); }
    .m2-insight-line > .hint { display: none; }
}

/* ---- Predictions (S2) ---- */
/* A prediction card (PredictionCard.razor): --band / --band-tint from its band (M2.BandColor, BandTint) */
.m2-pred-list { display: flex; flex-direction: column; gap: 8px; }
.m2-pred-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.m2-pred { display: flex; flex-direction: column; gap: 4px; padding: 8px 12px; border: 1px solid var(--rule); border-left: 5px solid var(--band); border-radius: 8px;
    background: var(--panel); }
.m2-pred-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 0.8rem; }
.m2-pred-head .m2-chip { margin-left: 0; }
.m2-pred-head .spacer { flex: 1; }
.m2-band { display: inline-flex; align-items: center; padding: 1px 9px; border: 1px solid var(--band); border-radius: 999px; background: var(--band-tint); color: var(--text);
    font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.3px; white-space: nowrap; }
.m2-chip.shared { background: var(--accent-soft); color: var(--accent-strong); }
.m2-pred-system { font-weight: 800; }
.m2-pred-title { color: var(--text); font-weight: 800; text-decoration: none; }
.m2-pred-title:hover { text-decoration: underline; }
.m2-pred-text { margin: 0; color: var(--text); font-size: 0.86rem; line-height: 1.45; }
.m2-pred-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 0.82rem; }
.m2-pred-foot small { color: var(--muted); }
.m2-pred.compact { padding: 6px 10px; }
.m2-pred.compact .m2-pred-title { font-size: 0.88rem; }
.m2-filters-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.m2-advice { margin-top: 8px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--panel-2); font-size: 0.86rem; }
.m2-client-line { padding: 8px 10px; border-left: 3px solid var(--m2-gold); background: var(--m2-gold-soft); font-size: 0.88rem; }
.m2-recipients { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 12px; margin-bottom: 8px; }
.m2-forecast-hint { margin: 4px 0 0; }
.m2-predicted { border-left: 5px solid var(--accent); }
/* The client's "Attention needed" (SharedPredictionsSection.razor) */
.m2-attention { border-left: 5px solid var(--m2-gold); }
.m2-attention ul { display: flex; flex-direction: column; gap: 6px; margin: 0; padding-left: 18px; }
.m2-attention li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
@media (max-width: 760px) {
    .m2-pred-grid { grid-template-columns: 1fr; }
}

/* ---- Operations: Jira, recipients, wall, maintenance, knowledge (S3) ---- */
/* Settings tabs: forms, a connection that uses the defaults, the date inputs of a maintenance window, the details of a rule */
.m2-ops-form { margin: 0 0 12px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--accent-soft); }
.m2-ops-form h4 { margin: 0 0 8px; font-weight: 900; }
.m2-ops-default td { color: var(--muted); }
.m2-ops-field { display: flex; flex-direction: column; gap: 2px; min-width: 180px; color: var(--muted); font-size: 0.75rem; }
.m2-ops-input { padding: 8px 10px; border: 1px solid var(--border); border-radius: 4px; background: var(--panel); color: var(--text); font: inherit; font-size: 0.9rem; }
.m2-ops-days { flex-wrap: wrap; gap: 4px 12px; }
.m2-ops-state { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--chip); color: var(--text); font-size: 0.75rem; font-weight: 800; white-space: nowrap; }
.m2-ops-state.inprogress { background: var(--os-accent); color: var(--os-on-accent); }
.m2-ops-state.completed { color: var(--muted); }
.m2-ops-detail td { background: var(--accent-soft); }
.m2-ops-texts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.m2-ops-texts h4, .m2-ops-knowledge h4 { margin: 8px 0 2px; color: var(--accent); font-size: 0.75rem; font-weight: 900; letter-spacing: 0.3px; text-transform: uppercase; }
.m2-ops-texts p { margin: 0; font-size: 0.85rem; line-height: 1.45; white-space: pre-line; }
.m2-ops-entry { margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--rule); }
.m2-ops-entry-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m2-ops-entry-head .spacer { flex: 1; }
/* The incident page: What to do, the AI answers, the maintenance in effect */
.m2-ops-knowledge .solution { font-size: 0.88rem; }
.m2-ops-ai { margin-top: 12px; }
.m2-ops-maintenance { display: flex; align-items: center; gap: 6px; }
/* The client page: the service figures */
.m2-ops-figures .m2-head-facts b { font-size: 1.05rem; }
/* The wall screen: one tile per PI System, worst first */
.m2-wall-kinds { margin: 0; padding: 0; }
.m2-wall-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; align-items: stretch; }
.m2-wall-system { display: flex; flex-direction: column; gap: 6px; border-left: 6px solid var(--sev); background: linear-gradient(90deg, var(--sev-tint), var(--panel) 40%);
    color: var(--text); text-decoration: none; }
.m2-wall-system:hover { box-shadow: 0 2px 10px rgba(141, 127, 86, 0.25); }
.m2-wall-head { display: flex; align-items: center; gap: 8px; }
.m2-wall-head .spacer { flex: 1; }
.m2-wall-name { font-size: 1.1rem; font-weight: 900; }
.m2-wall-sub { color: var(--muted); font-size: 0.8rem; }
.m2-wall-system .silent { color: var(--bad); font-size: 0.85rem; font-weight: 800; }
.m2-wall-maintenance { display: flex; align-items: center; gap: 4px; color: var(--accent); font-size: 0.85rem; font-weight: 800; }
/* The wall's "?" tips (m2.wall.*): not on the office screen (full screen, kiosk) */
html.wall-mode .wall-kpis .m2-help { display: none; }
.m2-wall-components { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; }
.m2-wall-component { padding: 1px 8px; border-left: 4px solid var(--sev); border-radius: 4px; background: var(--chip); font-size: 0.75rem; font-weight: 700; }
.m2-wall-component.ok { border-left-color: var(--good); color: var(--muted); }

/* ---- Compression (S4) ---- */
/* CompressionTab.razor: downloads, summary, the table of recommendations (current -> proposed), confidences, legend */
.m2-download { display: inline-flex; align-items: center; gap: 4px; color: var(--text); text-decoration: none; }
.m2-download.quiet { background: transparent; color: var(--muted); }
.m2-comp-note { margin: 0 0 10px; padding: 8px 12px; border-left: 4px solid var(--m2-gold); background: var(--m2-gold-soft); color: var(--text); }
.m2-comp-kpis { margin-bottom: 12px; }
.m2-conf { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; white-space: nowrap; }
.m2-conf.high { background: var(--good-soft); color: var(--good-text); }
.m2-conf.medium { background: var(--m2-gold-soft); color: var(--gold-text); }
.m2-conf.low, .m2-conf.none { background: var(--chip); color: var(--muted); }
.m2-comp-settings { font-size: 0.8rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.m2-comp-settings code { color: var(--muted); font-size: 0.76rem; }
.m2-comp-table td.num small.sub { display: block; color: var(--good-text); }
.m2-comp-scripts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.m2-comp-legend td { font-size: 0.8rem; vertical-align: top; }

/* ---- Changes and CONNECT health (S4) ---- */
/* ChangesTab.razor: the kind of a change, its values; ConnectAgentPanel.razor: one PI to CONNECT transfer */
.m2-change { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; white-space: nowrap; }
.m2-change.added { background: var(--good-soft); color: var(--good-text); }
.m2-change.removed { background: var(--bad-soft); color: var(--bad); }
.m2-change.changed { background: var(--m2-gold-soft); color: var(--gold-text); }
.m2-change-value { max-width: 320px; font-size: 0.8rem; overflow-wrap: anywhere; }
.m2-p2c { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
.m2-p2c:last-child { border-bottom: 0; }
.m2-p2c-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.m2-p2c-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 4px 14px; font-size: 0.82rem; font-variant-numeric: tabular-nums; }
.m2-p2c-none { padding: 6px 0; }

/* ---- Reports and service levels (S5) ---- */
/* Availability colours (M2.AvailabilityClass, the same rule as the PDF's ReportColors): target met, under it, under 95 %, none */
:root { --m2-av-good: #2e7d32; --m2-av-warn: #c27c0e; --m2-av-bad: #b42318; --m2-av-none: #d9d5ca; }
:root[data-theme="dark"] { --m2-av-good: #4caf50; --m2-av-warn: #e0a03a; --m2-av-bad: #ef6b5f; --m2-av-none: #3a362e; }
.m2-av-toolbar .subtab.disabled { opacity: 0.35; pointer-events: none; }
.m2-av-month { min-width: 130px; font-weight: 900; text-align: center; }
.m2-av-value { font-weight: 800; font-variant-numeric: tabular-nums; }
.m2-av-value.m2-av-good, .m2-av-ok { color: var(--m2-av-good); }
.m2-av-value.m2-av-warn { color: var(--m2-av-warn); }
.m2-av-value.m2-av-bad { color: var(--m2-av-bad); }
.m2-av-value.m2-av-none { color: var(--muted); }
.m2-av-table td { vertical-align: top; }
.m2-av-budget { width: 90px; height: 6px; margin: 3px 0 0 auto; border-radius: 3px; background: var(--chip); overflow: hidden; }
.m2-av-budget span { display: block; height: 100%; background: var(--m2-av-good); }
.m2-chip.m2-av-burning { background: var(--bad-soft); color: var(--bad); }
.m2-av-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); font-size: 0.78rem; }
.m2-av-legend span { display: inline-flex; align-items: center; gap: 4px; }
.m2-av-legend .m2-av-cell { width: 10px; height: 10px; }
.m2-av-scroll { overflow-x: auto; }
.m2-av-grid { display: grid; gap: 2px; align-items: center; min-width: 560px; }
.m2-av-day { color: var(--muted); font-size: 0.66rem; text-align: center; font-variant-numeric: tabular-nums; }
.m2-av-day.today { color: var(--text); font-weight: 900; }
.m2-av-name { overflow: hidden; padding-right: 6px; font-size: 0.82rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.m2-av-cell { display: inline-block; height: 16px; border-radius: 3px; background: var(--m2-av-none); }
.m2-av-cell.future { background: transparent; border: 1px dashed var(--rule); }
.m2-av-cell.m2-av-good, .m2-av-bars i.m2-av-good { background: var(--m2-av-good); }
.m2-av-cell.m2-av-warn, .m2-av-bars i.m2-av-warn { background: var(--m2-av-warn); }
.m2-av-cell.m2-av-bad, .m2-av-bars i.m2-av-bad { background: var(--m2-av-bad); }
.m2-av-row { display: grid; grid-template-columns: minmax(120px, 200px) minmax(0, 1fr) 72px; gap: 10px; align-items: center; padding: 4px 0; }
.m2-av-row.child { padding-left: 14px; }
.m2-av-row.child .m2-av-name { font-weight: 600; color: var(--muted); }
.m2-av-row .m2-av-value { text-align: right; }
.m2-av-bars { display: flex; gap: 1px; height: 24px; }
.m2-av-bars i { flex: 1 1 0; min-width: 2px; border-radius: 2px; background: var(--m2-av-none); }
.m2-av-bars i:hover { opacity: 0.7; }
.m2-av-components { margin: 0 0 6px; }
.m2-av-components summary { color: var(--accent); cursor: pointer; font-size: 0.8rem; font-weight: 700; }
.m2-av-generate { align-items: center; margin-bottom: 10px; }
.m2-av-pdf { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--text);
    font-size: 0.8rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.m2-av-pdf:hover, .m2-av-pdf:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.m2-av-pdf .mud-icon-root { color: var(--accent); }
.m2-av-digest { margin: 10px 0 0; }
.m2-av-select { min-width: 120px; max-width: 160px; }
.m2-av-subscribe { display: inline-flex; align-items: center; }
.m2-av-system { margin: 10px 0 2px; color: var(--accent); font-size: 0.86rem; }
.m2-av-reports { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 6px 0 4px; }
@media (max-width: 600px) {
    .m2-av-row { grid-template-columns: minmax(0, 1fr) 64px; }
    .m2-av-row .m2-av-bars { grid-column: 1 / -1; grid-row: 2; }
}

/* ---- Alerting (S6a) ---- */
/* Settings > Alerting (AlertingTab.razor and its sections) */
.m2-alerting-intro .hint { margin: 0; }
.m2-alerting-form { margin: 0 0 12px; padding: 12px 14px; border-radius: 10px; }
.m2-alerting-buttons { margin-top: 10px; align-items: center; }
.m2-alerting-buttons .spacer { flex: 1 1 auto; }
.m2-alerting-members { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.m2-alerting-member { display: flex; align-items: center; gap: 6px; font-size: 0.86rem; }
.m2-alerting-member span { flex: 1; font-weight: 700; }
.m2-alerting-add { max-width: 360px; }
.m2-alerting-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 12px; }
.m2-alerting-card { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 10px;
    background: var(--panel-2); }
.m2-alerting-card.resolved { border-left-color: var(--faint); opacity: 0.75; }
.m2-alerting-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.m2-alerting-card .sub, .m2-alerting-now-line .sub, .m2-alerting-level-line .sub { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.m2-alerting-now { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; font-size: 0.92rem; }
.m2-alerting-now .label, .m2-alerting-setting .label, .m2-alerting-now-grid .label { color: var(--muted); font-size: 0.74rem; font-weight: 800; letter-spacing: 0.3px;
    text-transform: uppercase; }
.m2-alerting-shifts td { font-size: 0.8rem; }
.m2-alerting-level { margin: 8px 0; padding-top: 6px; border-top: 1px dashed var(--rule); }
.m2-alerting-level-line { display: block; font-size: 0.82rem; }
.m2-alerting-days { display: flex; flex-wrap: wrap; gap: 0 4px; margin: 4px 0; }
.m2-alerting-settings { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.m2-alerting-setting { display: flex; flex-direction: column; gap: 4px; font-size: 0.86rem; }
.m2-alerting-noise { margin-top: 0; }
.m2-alerting-days-filter { max-width: 120px; }
/* The incident's Escalation panel and the overview's "Alerting now" */
.m2-alerting-incident .m2-head-facts { margin-bottom: 8px; }
.m2-alerting-fact { font-size: 0.86rem; }
.m2-alerting-now-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 18px; }
.m2-alerting-now-line { display: block; padding: 3px 0; color: var(--text); font-size: 0.86rem; text-decoration: none; }
a.m2-alerting-now-line:hover { color: var(--accent-strong); }
.m2-alerting-now-line.m2-bad b { color: var(--bad); }
/* Settings > Audit */
.m2-audit td { font-size: 0.84rem; vertical-align: top; }
.m2-audit-action { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--chip); font-size: 0.74rem; font-weight: 800; }
.m2-audit-action.created { background: var(--good-soft); color: var(--good-text); }
.m2-audit-action.deleted { background: var(--bad-soft); color: var(--bad); }
.m2-audit-action.changed { background: var(--m2-gold-soft); color: var(--gold-text); }
.table tr.m2-audit-detail > td { background: var(--panel-2); }
.m2-audit-value { max-width: 420px; font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.78rem; overflow-wrap: anywhere; white-space: pre-wrap; }
/* The acknowledgement page: its panels the whole width of the page (2026-11-06; 980 px before), the code's box a sensible width */
.m2-ack .form-row > .mud-input-control { flex: 0 1 520px; }
@media (max-width: 760px) {
    .m2-alerting-cards { grid-template-columns: 1fr; }
    .m2-alerting-card-head { flex-direction: column; }
}

/* ---- Fleet and analysis (S6b) ---- */
/* Exports (ExportMenu.razor): two quiet links at the right of a list's head */
.m2-export { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; color: var(--muted); font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.m2-export a { color: var(--accent-strong); text-decoration: none; }
.m2-export a:hover, .m2-export a:focus-visible { text-decoration: underline; }
.m2-export .mud-icon-root { font-size: 1rem; }
/* Fleet (FleetPage.razor): the medians strip, the table, the worst quarter */
.m2-fleet-medians { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.m2-fleet td.num { white-space: nowrap; }
.table td.m2-pos-worse, .m2-legend .m2-pos-worse { color: var(--bad); font-weight: 800; }
.table td.m2-pos-worse { background: color-mix(in srgb, var(--bad-soft) 55%, transparent); }
/* Positions of a system in its fleet (FleetBenchmarkPanel.razor) */
.m2-position { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 0.74rem; font-weight: 800; }
.m2-position.m2-pos-better { background: var(--good-soft); color: var(--good-text); }
.m2-position.m2-pos-typical { background: var(--chip); color: var(--muted); }
.m2-position.m2-pos-worse { background: var(--bad-soft); color: var(--bad); }
.m2-position.m2-pos-unknown { background: transparent; color: var(--faint); }
.m2-benchmark td { font-size: 0.84rem; }
.m2-subhead { display: flex; align-items: center; gap: 4px; margin: 14px 0 6px; color: var(--accent); font-size: 0.86rem; }
/* Security findings: the impact chip (--sev: its colour) and their texts */
.m2-impact { display: inline-block; min-width: 56px; padding: 1px 8px; border-radius: 999px; background: color-mix(in srgb, var(--sev) 14%, var(--panel));
    color: var(--sev); font-size: 0.74rem; font-weight: 800; text-align: center; }
.m2-findings .m2-finding-text { min-width: 280px; white-space: normal; }
.m2-finding-list { margin: 0; padding: 0; list-style: none; font-size: 0.84rem; }
.m2-finding-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; padding: 5px 0; border-bottom: 1px solid var(--rule); }
.m2-finding-list li:last-child { border-bottom: 0; }
/* What-if capacity (CapacityTab.razor) */
.m2-capacity-form { align-items: flex-start; }
.m2-capacity td { font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.m2-facts { margin: 0; padding-left: 18px; font-size: 0.86rem; line-height: 1.6; }
/* External systems map (ExternalSystemsTab.razor): upstream -> PI System -> downstream; a card's edge is its health (--ext) */
.m2-map { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: start; }
.m2-map-side { display: flex; flex-direction: column; gap: 8px; }
.m2-map-side h4 { display: flex; align-items: center; gap: 4px; margin: 0; color: var(--accent); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.3px; }
.m2-map-center { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-top: 28px; }
.m2-map-arrow { color: var(--m2-gold); font-size: 1.3rem; font-weight: 900; }
.m2-map-pi { display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 160px; padding: 12px; border: 2px solid var(--accent); border-radius: 10px;
    background: var(--panel-2); font-size: 0.84rem; text-align: center; }
.m2-map-pi .mud-icon-root { color: var(--accent); }
.m2-ext { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--rule); border-left: 5px solid var(--ext); border-radius: 8px;
    background: var(--panel); font-size: 0.84rem; }
.m2-ext-head { display: flex; justify-content: space-between; gap: 8px; }
.m2-ext-status { color: var(--ext); font-size: 0.76rem; font-weight: 800; white-space: nowrap; }
.m2-ext-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.m2-ext-who .mud-icon-root { color: var(--accent); }
.m2-ext-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; }
/* Settings > Security posture (SecurityPostureTab.razor) */
.m2-json textarea { font-family: Consolas, "Cascadia Mono", monospace; font-size: 0.8rem; }
.m2-lifecycles td { font-size: 0.82rem; }
.m2-origin { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--chip); color: var(--muted); font-size: 0.72rem; font-weight: 800; }
.m2-origin.changed, .m2-origin.added { background: var(--m2-gold-soft); color: var(--gold-text); }
.m2-origin.removed { text-decoration: line-through; }
@media (max-width: 760px) {
    .m2-map { grid-template-columns: 1fr; }
    .m2-map-center { flex-direction: row; padding-top: 0; }
    .m2-map-arrow { transform: rotate(90deg); }
    .m2-export { margin-left: 0; }
}

/* ---- Help and the client's page (U1) ---- */
/* A "?" after a form field of Settings and of a connection (MudBlazor fields have no room for it in their label) */
.m2-field { display: flex; align-items: center; gap: 4px; min-width: 0; }
.m2-field > :first-child { flex: 1; min-width: 0; }
.m2-field > .m2-help { flex: none; }
.m2-field:not(.switch) > .m2-help { align-self: flex-start; margin-top: 12px; }
.m2-field.switch { justify-content: flex-start; }
.m2-field.switch > :first-child { flex: 0 1 auto; }
/* A "?" in a toolbar or beside a select of the trends: centred with its neighbours */
.m2-add > .m2-help, .m2-ranges > .m2-help { align-self: center; }
.m2-folder-head .m2-help { margin-left: 0; }

/* The client's one page (Apps\InfrastructureV2\InfraV2HomePage.razor, OnePagerFlow, OnePagerProblemCard, OnePagerOlderProblem):
   the banner, the problems that open in place, the data flow, the main components */
.m2-op-toolbar { min-height: 30px; }
.m2-op-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; border-left: 8px solid var(--good); }
.m2-op-banner.warn { border-left-color: #ec835a; }
.m2-op-banner.bad { border-left-color: #d03b3b; }
.m2-op-banner.starting { border-left-color: var(--faint); }
.m2-op-banner-icon { color: var(--good); font-size: 2.4rem !important; }
.m2-op-banner.warn .m2-op-banner-icon { color: #ec835a; }
.m2-op-banner.bad .m2-op-banner-icon { color: #d03b3b; }
.m2-op-banner.starting .m2-op-banner-icon { color: var(--faint); }
.m2-op-banner-text { flex: 1; min-width: 240px; }
.m2-op-headline { font-size: 1.3rem; font-weight: 900; }
.m2-op-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-top: 4px; color: var(--muted); font-size: 0.88rem; }
.m2-op-sub b { color: var(--text); }
.m2-op-state-chip { padding: 1px 9px; border-radius: 999px; background: var(--chip); color: var(--chip-text); font-size: 0.75rem; font-weight: 800; }
.m2-op-banner.ok .m2-op-state-chip { background: var(--good-soft); color: var(--good-text); }
.m2-op-banner.warn .m2-op-state-chip { background: var(--warn-soft); color: var(--warn); }
.m2-op-banner.bad .m2-op-state-chip { background: var(--bad-soft); color: var(--bad); }
.m2-op-watch { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; color: var(--muted); font-size: 0.8rem; font-weight: 700; }
.m2-op-empty { gap: 8px; min-height: 80px; }
.m2-op-problems { display: flex; flex-direction: column; gap: 8px; }
.m2-op-problem { border: 1px solid var(--border); border-left: 6px solid var(--sev); border-radius: 8px; background: var(--panel); }
.m2-op-problem.resolved { border-left-color: var(--good); }
.m2-op-problem-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; width: 100%; padding: 10px 12px 4px; border: 0; border-radius: 8px 8px 0 0;
    background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.m2-op-problem-head:hover { background: var(--accent-soft); }
.m2-op-problem-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.m2-op-problem-main { display: flex; flex: 1; min-width: 220px; flex-direction: column; gap: 2px; }
.m2-op-problem-title { font-weight: 800; overflow-wrap: anywhere; }
.m2-op-problem-impact { color: var(--muted); font-size: 0.84rem; }
.m2-op-problem-impact b { color: var(--text); font-weight: 700; }
.m2-op-problem-side { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.m2-op-problem-time { color: var(--muted); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.m2-op-doing { margin: 0 !important; padding: 0 12px 10px; font-size: 0.84rem; }
.m2-op-problem-body { padding: 8px 12px 12px; border-top: 1px solid var(--rule); }
.m2-op-facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; color: var(--muted); font-size: 0.82rem; }
.m2-op-facts b { color: var(--text); }
.m2-op-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
.m2-op-detail h4 { margin: 0 0 6px; font-size: 0.82rem; }
.m2-op-steps { margin: 0; padding: 0; list-style: none; }
.m2-op-steps li { position: relative; padding: 4px 0 4px 16px; border-left: 2px solid var(--rule); font-size: 0.84rem; }
.m2-op-steps li::before { position: absolute; top: 9px; left: -6px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); content: ""; }
.m2-op-steps li.opened::before, .m2-op-steps li.reopened::before, .m2-op-steps li.escalated::before { background: #d03b3b; }
.m2-op-steps li.recovered::before, .m2-op-steps li.resolved::before { background: var(--good); }
.m2-op-issue-state { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; white-space: nowrap; }
.m2-op-issue-state.open { background: var(--text); color: var(--panel); }
.m2-op-issue-state.acknowledged { background: var(--os-accent); color: var(--os-on-accent); }
.m2-op-issue-state.resolved { background: var(--good-soft); color: var(--good-text); }
.m2-op-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.m2-op-step { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border: 1px solid var(--border); border-top: 5px solid var(--step);
    border-radius: 8px; background: var(--panel-2); }
.m2-op-step:not(:last-child)::after { position: absolute; top: 50%; right: -19px; color: var(--m2-gold); content: "→"; font-weight: 900; transform: translateY(-50%); }
.m2-op-step-head { display: flex; align-items: center; gap: 6px; font-weight: 800; }
.m2-op-step-icon { color: var(--accent); }
.m2-op-step-state { display: inline-flex; align-items: center; gap: 6px; font-size: 0.86rem; font-weight: 800; }
.m2-op-step-state::before { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--step); content: ""; }
.m2-op-step-fact { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.m2-op-step-count { color: var(--bad); font-size: 0.78rem; font-weight: 800; }
.m2-op-subhead { margin: 14px 0 6px !important; font-size: 0.86rem; }
.m2-op-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.m2-op-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--panel);
    font-size: 0.8rem; font-weight: 700; }
.m2-op-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--dot); }
.m2-op-chip small { color: var(--muted); font-weight: 800; }
.m2-op-system.asked { box-shadow: inset 4px 0 0 var(--accent); }

@media (max-width: 760px) {
    .m2-op-flow { grid-template-columns: 1fr; gap: 20px; }
    .m2-op-step:not(:last-child)::after { top: auto; right: auto; bottom: -19px; left: 50%; content: "↓"; transform: translateX(-50%); }
    .m2-op-detail { grid-template-columns: 1fr; }
    .m2-op-watch { align-items: flex-start; }
}

/* ---- Wall screen V1.15: the state in one line (systems per status, data rate, last 24 hours) and each system's figures ---- */
.m2-wall-summary { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0 0 12px; }
.m2-wall-mix { display: flex; flex: 1 1 420px; min-height: 46px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.m2-wall-mix-part { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 70px; padding: 0 12px; background: var(--sev); color: #fff; font-size: 0.85rem; font-weight: 700; white-space: nowrap; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.55); }
.m2-wall-mix-part b { font-size: 1.35rem; font-weight: 900; }
.m2-wall-figure { display: flex; flex-direction: column; justify-content: center; min-width: 120px; padding: 6px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow); }
.m2-wall-figure b { font-size: 1.45rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.m2-wall-figure span { color: var(--muted); font-size: 0.75rem; font-weight: 700; }
.m2-wall-figure.on { border-color: var(--warn); background: var(--warn-soft); }
.m2-wall-figures { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 10px; align-items: end; padding: 6px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.m2-wall-rate { display: flex; flex-direction: column; gap: 2px; }
.m2-wall-rate .value { font-size: 1.25rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.m2-wall-rate small { color: var(--muted); font-size: 0.7rem; font-weight: 600; }
.m2-wall-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; font-size: 0.82rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.m2-wall-facts span { display: inline-flex; align-items: center; gap: 4px; }
.m2-wall-facts .m2-bad { color: var(--bad); }
.m2-wall-system .srv-problem { font-size: 0.95rem; font-weight: 800; }
/* Full screen and kiosk: bigger figures for a screen seen from afar */
.wall-mode .m2-wall-name { font-size: 1.3rem; }
.wall-mode .m2-wall-rate .value { font-size: 1.5rem; }
.wall-mode .wall-sub { font-size: 1.05rem; font-weight: 800; }

/* V1.22: the switch of the simulated mines in the app bar (MonitoringV2Header): quiet while hidden, gold while shown */
button.apptab.m2-sim-switch { display: inline-flex; align-items: center; gap: 4px; font-size: 0.82rem; }
button.apptab.m2-sim-switch.on { color: var(--gold-text); border-bottom-color: var(--m2-gold); }
