.mc { --mc-gap: 6px; --mc-h: 404px; --mc-zebra: color-mix(in srgb, var(--surface-2) 75%, var(--surface)); --mc-tint: color-mix(in srgb, var(--primary-soft) 55%, var(--surface)); }
.mc-head { margin-bottom: 14px; align-items: center; }
.mc-head h1 { line-height: 28px; }
.mc-head .mc-sub { display: flex; align-items: center; gap: 2px 12px; flex-wrap: wrap; margin-top: 3px; white-space: normal; overflow: visible; }
.mc-status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 550; color: var(--text-2); font-variant-numeric: tabular-nums; }
.mc-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); flex: none; }
.mc-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--green); opacity: .5; animation: mc-ping 2s cubic-bezier(0, 0, .2, 1) infinite; }
.mc.is-paused .mc-dot { background: var(--text-3); box-shadow: 0 0 0 3px var(--surface-3); }
.mc.is-failing .mc-dot { background: var(--amber); box-shadow: 0 0 0 3px var(--amber-soft); }
.mc.is-paused .mc-dot::after, .mc.is-failing .mc-dot::after { display: none; }
.mc-day { font-size: 12.5px; color: var(--text-3); }
.mc-actions .btn[aria-pressed="true"] { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 30%, var(--border)); color: var(--primary); }
@keyframes mc-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
@keyframes mc-in { from { opacity: 0; } }

.mc-strip { margin-bottom: 12px; }
.mc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: var(--mc-gap); }
.mc-tile { position: relative; display: flex; flex-direction: column; min-width: 0; height: 86px; padding: 7px 10px 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s, background .6s; }
a.mc-tile:hover { border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
a.mc-tile:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); }
.mc-tile.is-changed { background: var(--mc-tint); transition: none; }
.mc-l { display: block; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-vrow { display: flex; align-items: flex-end; gap: 8px; min-width: 0; margin-top: 1px; }
.mc-v { flex: none; max-width: 100%; font-size: 20px; line-height: 26px; font-weight: 650; letter-spacing: -.02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sp { display: block; flex: 1 1 0; min-width: 24px; height: 22px; margin-bottom: 3px; }
.mc-sub { display: block; font-size: 11.5px; line-height: 15px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-cmp { display: flex; gap: 8px; margin-top: auto; font-size: 11px; line-height: 15px; color: var(--text-3); white-space: nowrap; overflow: hidden; }
.mc-c { display: inline-flex; align-items: center; gap: 3px; min-width: 0; }
.mc-cl, .mc-note { overflow: hidden; text-overflow: ellipsis; }
.mc-d { display: inline-flex; align-items: center; gap: 2px; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-2); }
.mc-d.good { color: var(--green); }
.mc-d.bad { color: var(--red); }
.mc-d.dir-up::before, .mc-d.dir-down::before { content: ""; width: 0; height: 0; border-left: 3.5px solid transparent; border-right: 3.5px solid transparent; }
.mc-d.dir-up::before { border-bottom: 4.5px solid currentColor; }
.mc-d.dir-down::before { border-top: 4.5px solid currentColor; }
.mc-tile.is-bad { border-color: color-mix(in srgb, var(--red) 32%, var(--border)); }
.mc-tile.is-bad .mc-v { color: var(--red); }
.mc-tile.is-warn .mc-v { color: var(--amber); }
.mc-tile.is-good .mc-v::before, .mc-fig.is-good .v::before { content: ""; display: inline-block; width: 7px; height: 7px; margin: 0 6px 3px 0; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--green-soft); vertical-align: middle; }

.mc-spark { display: block; width: 100%; height: 100%; overflow: visible; }
.mc-spark .ln { fill: none; stroke: var(--primary); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mc-spark .ln-now { stroke-dasharray: 2 2.5; }
.mc-spark .ar { fill: var(--primary); opacity: .08; }
.mc-spark .base { stroke: var(--border); stroke-width: 1; stroke-dasharray: 2 3; vector-effect: non-scaling-stroke; }
.mc-bars { display: block; width: 100%; height: 100%; }
.mc-bars .b { fill: color-mix(in srgb, var(--primary) 34%, var(--surface)); }
.mc-bars .z { fill: var(--border-soft); }
.mc-bars .now { fill: var(--primary); }

.mc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; align-items: start; }
.mc-panel { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.mc-span-4 { grid-column: span 4; }
.mc-span-6 { grid-column: span 6; }
.mc-span-8 { grid-column: span 8; }
.mc-span-12 { grid-column: 1 / -1; }
.mc-ph { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 10px 6px 8px; border-bottom: 1px solid var(--border-soft); flex: none; }
.mc-panel.is-collapsed .mc-ph { border-bottom: 0; }
.mc-toggle { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-3); cursor: pointer; flex: none; }
.mc-toggle:hover { background: var(--surface-hover); color: var(--text); }
.mc-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); }
.mc-toggle .i { transition: transform .15s var(--ease); }
.mc-panel.is-collapsed .mc-toggle .i { transform: rotate(-90deg); }
.mc-ph-icon { display: grid; place-items: center; width: 28px; height: 28px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary); flex: none; }
.mc-title { margin: 0; font-size: 14.5px; line-height: 20px; font-weight: 650; letter-spacing: -.01em; color: var(--text); white-space: nowrap; }
.mc-key { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; background: var(--surface-3); font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mc-key:empty { display: none; }
.mc-key.is-bad { background: var(--red-soft); color: var(--red); }
.mc-key.is-warn { background: var(--amber-soft); color: var(--amber); }
.mc-key.is-good { background: var(--green-soft); color: var(--green); }
.mc-key .mc-sk-line { height: 8px; }
.mc-stamp { margin-left: auto; font-size: 11.5px; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.mc-retry { padding: 0; border: 0; background: none; color: var(--amber); font: inherit; font-weight: 600; cursor: pointer; }
.mc-ph-link { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12.5px; font-weight: 550; color: var(--primary); text-decoration: none; white-space: nowrap; flex: none; }
.mc-ph-link:hover { background: var(--primary-soft); }
.mc-panel-body { display: flex; flex-direction: column; gap: 12px; height: var(--mc-h); min-height: 0; padding: 12px 14px; overflow: hidden; }
.mc-panel.is-collapsed .mc-panel-body { display: none; }
.mc-body-live { padding: 0; }
.mc-panel-body.is-stale > :not(.mc-shimmer), .mc-body.is-stale > * { opacity: .55; transition: opacity .3s; }

.mc-hero { display: flex; flex: none; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.mc-fig { display: flex; flex-direction: column; justify-content: center; flex: 1 1 0; min-width: 0; padding: 8px 12px 9px; border-left: 1px solid var(--border-soft); color: inherit; text-decoration: none; transition: background .12s; }
.mc-fig:first-child { border-left: 0; }
.mc-fig.is-big { flex-grow: 1.3; }
a.mc-fig:hover { background: var(--surface-hover); }
a.mc-fig:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--primary-ring); }
.mc-fig .l { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-fig .vrow { display: flex; align-items: flex-end; gap: 10px; min-width: 0; margin: 2px 0 1px; }
.mc-fig .v { font-size: 19px; line-height: 25px; font-weight: 650; letter-spacing: -.02em; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-fig.is-big .v { font-size: 22px; line-height: 27px; }
.mc-fig .sp { display: block; flex: 1 1 0; min-width: 28px; max-width: 88px; height: 22px; margin-bottom: 3px; }
.mc-fig .s { display: flex; align-items: center; gap: 5px; min-width: 0; font-size: 11.5px; line-height: 15px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-fig .s .cl { overflow: hidden; text-overflow: ellipsis; }
.mc-fig.is-bad .v { color: var(--red); }
.mc-fig.is-warn .v { color: var(--amber); }

.mc-split { display: grid; gap: 18px; flex: 1 1 0; min-height: 0; }
.mc-split-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mc-block { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mc-scroll { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.mc-block > .mc-scroll { flex: 1 1 0; }
.mc-block.mc-scroll { display: block; }
.mc-fill { flex: 1 1 0; }
.mc-sh { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 6px; min-height: 26px; margin: 0 0 4px; background: var(--surface); }
.mc-block > * + .mc-sh, .mc-block > .mc-sh:not(:first-child) { margin-top: 12px; }
.mc-sh h3 { margin: 0; font-size: 12.5px; line-height: 18px; font-weight: 650; color: var(--text); white-space: nowrap; }
.mc-pill { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 9px; background: var(--surface-3); font-size: 11.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.mc-sh-meta { min-width: 0; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-sh-link { display: inline-flex; align-items: center; gap: 2px; margin-left: auto; font-size: 12px; font-weight: 550; color: var(--primary); text-decoration: none; white-space: nowrap; }
.mc-sh-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.mc-sh-link .i { width: 13px; height: 13px; }
.mc-pulse { display: block; width: 90px; height: 18px; margin-left: auto; flex: none; }

.mc-tbl { width: 100%; border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 12.5px; }
.mc-tbl thead th { position: sticky; top: 0; z-index: 1; height: 26px; padding: 0 8px; border-bottom: 1px solid var(--border); background: var(--surface); font-size: 11px; font-weight: 550; color: var(--text-3); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-block > .mc-sh + .mc-tbl thead th { top: 26px; }
.mc-tbl td { height: 36px; padding: 3px 8px; border-bottom: 1px solid var(--border-soft); color: var(--text); vertical-align: middle; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-tbl tbody tr:nth-child(even) td { background: var(--mc-zebra); }
.mc-tbl tbody tr.is-link { cursor: pointer; }
.mc-tbl tbody tr.is-link:hover td { background: var(--surface-hover); }
.mc-tbl tbody tr:last-child td { border-bottom: 0; }
.mc-tbl th:first-child, .mc-tbl td:first-child { padding-left: 6px; }
.mc-tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.mc-tbl th.num, .mc-tbl td.num { padding-left: 2px; padding-right: 6px; }
.mc-tbl .trunc { max-width: 0; }
.mc-tbl .trunc > a, .mc-tbl .trunc > span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-tbl a { color: inherit; text-decoration: none; }
.mc-tbl tr.is-link:hover .trunc > a.strong { color: var(--primary); }
.mc-tbl .strong { font-weight: 600; }
.mc-tbl .sub { font-size: 11.5px; line-height: 15px; color: var(--text-3); font-weight: 400; }
.mc-tbl .muted { color: var(--text-3); }
.mc-tbl .is-bad { color: var(--red); font-weight: 600; }
.mc-tbl .is-warn { color: var(--amber); font-weight: 600; }
.mc-tbl .is-good { color: var(--green); font-weight: 600; }
.mc-tbl .c-when { width: 70px; font-size: 12px; }
.mc-tbl .c-n { width: 54px; }
.mc-tbl .c-age { width: 84px; }
.mc-tbl .c-stage { width: 96px; }
.mc-tbl .c-state { width: 92px; }
.mc-tbl .c-who { width: 40%; }
.mc-tbl-live .c-n { width: 46px; }
.mc-tbl-live .c-when { width: 48px; }
.mc [dir="auto"] { text-align: left; }
.mc-tbl .mono { font-size: 11.5px; }
.mc-age { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: var(--radius-sm); font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--text-2); background: var(--surface-3); }
.mc-age.is-warn { background: var(--amber-soft); color: var(--amber); }
.mc-age.is-bad { background: var(--red-soft); color: var(--red); }
.mc-state { display: inline-flex; align-items: center; gap: 5px; height: 20px; padding: 0 7px; border-radius: var(--radius-sm); font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--text-3); }
.mc-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.mc-state.is-ran, .mc-state.is-running { background: var(--green-soft); color: var(--green); }
.mc-state.is-missed { background: var(--red-soft); color: var(--red); }
.mc-state.is-due { background: var(--blue-soft); color: var(--blue); }
.mc-person { display: flex !important; align-items: center; gap: 7px; min-width: 0; }
.mc-person > a, .mc-person > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc .gm { width: 6px; height: 6px; border-radius: 50%; flex: none; background: var(--text-3); }
.mc .gm-male { background: var(--male); }
.mc .gm-female { background: var(--female); }
.mc-rank { display: inline-grid; place-items: center; flex: none; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--surface-3); font-size: 11px; font-weight: 650; color: var(--text-2); }
.mc-unread { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); flex: none; }
.mc-stage { display: inline-flex !important; align-items: center; gap: 6px; min-width: 0; font-size: 12px; font-weight: 550; color: var(--text-2); }
.mc-stage .sw { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.mc-stage .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mc-tbl .sub .mc-stage { gap: 5px; font-size: 11.5px; font-weight: 550; color: var(--text-2); vertical-align: -1px; }
.mc-tbl .sub .mc-stage .sw { width: 7px; height: 7px; }

.mc-who { display: flex !important; align-items: center; gap: 8px; min-width: 0; }
.mc-who .mk { position: relative; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-size: 10.5px; font-weight: 650; }
.mc-who .mk.is-admin { background: var(--surface-3); color: var(--text-2); }
.mc-who .mk .on { position: absolute; right: -1px; bottom: -1px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 2px var(--surface); }
.mc-who .tx { display: flex; flex-direction: column; min-width: 0; }
.mc-who .n { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-who .sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-doing { display: flex !important; align-items: center; gap: 6px; min-width: 0; font-weight: 500; color: var(--text-2); }
.mc-doing .i { flex: none; color: var(--text-3); }
.mc-doing span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.mc-stages { flex: none; }
.mc-stagebar, .mc-meter { display: flex; gap: 2px; height: 10px; margin: 2px 0 7px; border-radius: 5px; overflow: hidden; background: var(--surface-3); }
.mc .st-idea { background: color-mix(in srgb, var(--primary) 22%, var(--surface)); }
.mc .st-proposed { background: color-mix(in srgb, var(--primary) 40%, var(--surface)); }
.mc .st-agreed { background: color-mix(in srgb, var(--primary) 58%, var(--surface)); }
.mc .st-dating { background: color-mix(in srgb, var(--primary) 76%, var(--surface)); }
.mc .st-serious { background: var(--primary); }
.mc .st-engaged, .mc .st-married { background: var(--green); }
.mc .st-closed { background: var(--border-strong); }
.mc .mc-stage[class*="st-"] { background: none; }
.mc .mc-stage.st-idea .sw { background: color-mix(in srgb, var(--primary) 22%, var(--surface)); }
.mc .mc-stage.st-proposed .sw { background: color-mix(in srgb, var(--primary) 40%, var(--surface)); }
.mc .mc-stage.st-agreed .sw { background: color-mix(in srgb, var(--primary) 58%, var(--surface)); }
.mc .mc-stage.st-dating .sw { background: color-mix(in srgb, var(--primary) 76%, var(--surface)); }
.mc .mc-stage.st-serious .sw { background: var(--primary); }
.mc .mc-stage.st-engaged .sw, .mc .mc-stage.st-married .sw { background: var(--green); }
.mc .mc-stage.st-engaged { color: var(--green); }
.mc .mc-stage.st-closed .sw { background: var(--border-strong); }
.mc .tone-green { background: color-mix(in srgb, var(--green) 78%, var(--surface)); }
.mc .tone-blue { background: color-mix(in srgb, var(--blue) 72%, var(--surface)); }
.mc .tone-violet { background: color-mix(in srgb, var(--violet) 72%, var(--surface)); }
.mc .tone-rose { background: color-mix(in srgb, var(--rose) 72%, var(--surface)); }
.mc .tone-amber { background: color-mix(in srgb, var(--amber) 62%, var(--surface)); }
.mc .tone-red { background: color-mix(in srgb, var(--red) 72%, var(--surface)); }
.mc .tone-teal { background: color-mix(in srgb, var(--teal) 72%, var(--surface)); }
.mc .tone-gray { background: var(--border-strong); }
.mc-legend { display: flex; flex-wrap: wrap; gap: 3px 12px; margin: 0; padding: 0; list-style: none; font-size: 11.5px; line-height: 17px; color: var(--text-3); }
.mc-legend a { color: inherit; text-decoration: none; }
.mc-legend a:hover { color: var(--text); }
.mc-legend .sw { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 2px; vertical-align: 0; }
.mc-legend .num { color: var(--text-2); font-weight: 600; }
.mc-legend li.muted .num { color: var(--text-3); }
.mc-legend-tiers { margin-bottom: 4px; }

.mc-barlist { margin: 0; padding: 0; list-style: none; }
.mc-barrow { display: flex; align-items: center; gap: 10px; min-width: 0; height: 32px; padding: 0 6px; border-radius: var(--radius-sm); font-size: 12.5px; color: var(--text); text-decoration: none; }
a.mc-barrow:hover { background: var(--surface-hover); }
.mc-barrow .lbl { position: relative; display: flex; align-items: baseline; gap: 6px; flex: 1 1 0; min-width: 0; padding-bottom: 6px; overflow: hidden; white-space: nowrap; }
.mc-barrow .t { overflow: hidden; text-overflow: ellipsis; font-weight: 550; }
.mc-barrow .sub { flex: none; font-size: 11.5px; color: var(--text-3); }
.mc-barrow .n { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-bar { position: absolute; left: 0; bottom: 0; width: var(--w, 0%); max-width: 100%; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--primary) 32%, var(--surface)); }
[dir="rtl"] .mc-barrow .lbl .t[dir="auto"] { text-align: start; }

.mc-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; color: inherit; text-decoration: none; }
.mc-stats > span { display: flex; flex-direction: column; min-width: 0; padding: 6px 10px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface-2); font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.mc-stats:hover > span { border-color: var(--border); }
.mc-stats b { font-size: 14.5px; line-height: 20px; font-weight: 650; color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.mc-stats .is-warn b { color: var(--amber); }

.mc-empty { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px dashed var(--border); border-radius: var(--radius); background: var(--surface-2); font-size: 12.5px; color: var(--text-3); }
.mc-empty .i { flex: none; color: var(--green); }
.mc-empty.is-warn .i { color: var(--amber); }

.mc-alerts { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; min-height: 0; margin: 0; padding: 0; list-style: none; }
.mc-alert { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border: 1px solid var(--border-soft); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; }
.mc-alert::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--border-strong); }
.mc-alert.is-bad::before { background: var(--red); }
.mc-alert.is-warn::before { background: var(--amber); }
.mc-alert.is-info::before { background: var(--blue); }
a.mc-alert:hover { background: var(--surface-hover); border-color: var(--border); }
a.mc-alert:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--primary-ring); }
.mc-alert-mark { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--surface-3); color: var(--text-3); }
.mc-alert.is-bad .mc-alert-mark { background: var(--red-soft); color: var(--red); }
.mc-alert.is-warn .mc-alert-mark { background: var(--amber-soft); color: var(--amber); }
.mc-alert.is-info .mc-alert-mark { background: var(--blue-soft); color: var(--blue); }
.mc-alert-text { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.mc-alert-text .t { font-size: 12.5px; line-height: 17px; font-weight: 600; }
.mc-alert-text .d { font-size: 11.5px; line-height: 15px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-alert-go { flex: none; color: var(--border-strong); }
a.mc-alert:hover .mc-alert-go { color: var(--text-3); }
.mc-checked { display: flex; align-items: flex-start; gap: 7px; margin-top: auto; padding: 8px 2px 0; font-size: 11.5px; line-height: 16px; color: var(--text-3); }
.mc-checked .i { flex: none; margin-top: 1px; color: var(--green); }
.mc-allclear { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; flex: 1 1 0; padding: 16px; border: 1px dashed var(--border); border-radius: var(--radius-lg); background: var(--surface-2); text-align: center; font-size: 12.5px; color: var(--text-3); }
.mc-allclear .i { width: 22px; height: 22px; color: var(--green); }
.mc-allclear b { font-size: 13.5px; color: var(--text); }

.mc-live { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); height: 100%; min-height: 0; }
.mc-live > .mc-block { padding: 10px 14px 10px; min-height: 0; }
.mc-live-feed { border-left: 1px solid var(--border-soft); }
.mc-tbl-live td { height: 40px; }
.mc-feed { margin: 0; padding: 0; list-style: none; }
.mc-feed-item { display: flex; align-items: flex-start; gap: 9px; padding: 7px 2px; border-bottom: 1px solid var(--border-soft); transition: background 1s; }
.mc-feed-item:last-child { border-bottom: 0; }
.mc-feed-item.is-new { background: var(--mc-tint); transition: none; }
.mc-feed-item .mk { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--surface-3); color: var(--text-3); }
.mc-feed-item .mk .i { width: 13px; height: 13px; }
.mc-feed-item.is-green .mk { background: var(--green-soft); color: var(--green); }
.mc-feed-item.is-red .mk { background: var(--red-soft); color: var(--red); }
.mc-feed-item.is-amber .mk { background: var(--amber-soft); color: var(--amber); }
.mc-feed-item.is-violet .mk { background: var(--primary-soft); color: var(--primary); }
.mc-feed-item.is-blue .mk { background: var(--blue-soft); color: var(--blue); }
.mc-feed-item .tx { display: flex; flex-direction: column; flex: 1 1 0; min-width: 0; }
.mc-feed-item .line { font-size: 12.5px; line-height: 17px; color: var(--text); text-decoration: none; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mc-feed-item a.line:hover { color: var(--primary); }
.mc-feed-item .meta { font-size: 11.5px; line-height: 15px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-feed-item time { flex: none; padding-top: 1px; font-size: 11.5px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.mc-feed-item.is-sk { align-items: center; border-bottom-color: transparent; }

.mc-error { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface-2); font-size: 13px; color: var(--text-2); }
.mc-error .i { flex: none; color: var(--amber); }
.mc-error .btn { margin-left: auto; }
.mc-shimmer { pointer-events: none; animation: mc-in .2s ease .15s both; }
.mc-sk { display: flex; flex-direction: column; gap: 12px; height: 100%; }
.mc-sk .mc-split { flex: 1 1 0; overflow: hidden; }
.mc-sk-line, .mc-sk-fig, .mc-sk-dot { display: block; border-radius: 4px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
.mc-sk-line { height: 9px; }
.mc-sk-fig { height: 18px; }
.mc-sk-dot { width: 24px; height: 24px; border-radius: 50%; flex: none; }
.mc-sk-two { display: flex; flex-direction: column; gap: 6px; flex: 1 1 0; min-width: 0; }
.mc-tile.is-sk { box-shadow: none; gap: 6px; }
.mc-tile.is-sk .mc-vrow { height: 24px; align-items: center; }
.mc-alert.is-sk::before { display: none; }
.mc-shimmer .mc-tbl td { background: none !important; }

@media (min-width: 1600px) {
  .mc { --mc-h: 440px; }
}
@media (max-width: 1439px) {
  .mc-tiles { grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); }
  .mc-tile { padding: 7px 8px 6px; }
  .mc-v { font-size: 18px; }
  .mc-cmp { gap: 6px; }
  .mc-fig { padding: 8px 10px 9px; }
  .mc-fig .v { font-size: 17px; }
  .mc-fig.is-big .v { font-size: 20px; }
  .mc-span-4 .mc-fig .sp { display: none; }
}
@media (min-width: 1181px) and (max-width: 1599px) {
  .mc-span-4 .mc-stamp { display: none; }
  .mc-span-4 .mc-ph-link { margin-left: auto; }
}
@media (max-width: 1180px) {
  .mc-span-4, .mc-span-6, .mc-span-8 { grid-column: 1 / -1; }
  .mc-span-4 .mc-fig .sp { display: block; }
  .mc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mc-body-alerts { height: auto; min-height: 120px; max-height: var(--mc-h); }
  .mc-body-alerts .mc-alerts { flex: none; }
  .mc-body-alerts .mc-checked { margin-top: 4px; }
}
@media (max-width: 640px) {
  .mc { --mc-h: auto; }
  .mc-head { flex-wrap: nowrap; align-items: flex-start; gap: 10px; }
  .mc-head .mc-actions { flex: none; width: auto; margin-inline-start: auto; }
  .mc-head h1 { white-space: nowrap; }
  .mc-head .mc-actions > .btn { flex: 0 0 auto; }
  .mc-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-tile { height: 84px; }
  .mc-panel-body { height: auto; overflow: visible; }
  .mc-body-live { padding: 0; }
  .mc-hero { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mc-fig { border-left: 0; border-top: 1px solid var(--border-soft); }
  .mc-fig:nth-child(-n + 2) { border-top: 0; }
  .mc-fig:nth-child(even) { border-left: 1px solid var(--border-soft); }
  .mc-fig:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .mc-split, .mc-split-2 { grid-template-columns: minmax(0, 1fr); gap: 16px; flex: none; }
  .mc-block > .mc-scroll, .mc-block.mc-scroll { flex: none; max-height: 420px; overflow-y: auto; }
  .mc-alerts { flex: none; }
  .mc-alerts.mc-scroll { max-height: none; overflow: visible; }
  .mc-live { display: block; height: auto; }
  .mc-live-feed { border-left: 0; border-top: 1px solid var(--border-soft); }
  .mc-ph { gap: 6px; padding-right: 6px; }
  .mc-key { flex: 0 1 auto; }
  .mc-stamp, .mc-ph-link span { display: none; }
  .mc-ph-link { margin-left: auto; padding: 0 6px; }
  .mc-tbl-live .c-n { display: none; }
  .mc-tbl .c-stage { width: 84px; }
  .mc-pulse { width: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .mc-dot::after, .mc-shimmer, .mc-sk-line, .mc-sk-fig, .mc-sk-dot { animation: none; }
  .mc-tile, .mc-feed-item, .mc-toggle .i { transition: none; }
}
