Repository Public
1/* MCC component styles. Tokens only. Class prefix: mcc-. See DESIGN-SYSTEM.md. */23/* ── tones: one custom property pair per state so components never pick colours themselves ── */4.tone-ok { --tone: var(--mcc-color-state-ok); --tone-bg: var(--mcc-color-state-ok-muted); }5.tone-warning { --tone: var(--mcc-color-state-warning); --tone-bg: var(--mcc-color-state-warning-muted); }6.tone-critical { --tone: var(--mcc-color-state-critical); --tone-bg: var(--mcc-color-state-critical-muted); }7.tone-info { --tone: var(--mcc-color-state-info); --tone-bg: var(--mcc-color-state-info-muted); }8.tone-stale { --tone: var(--mcc-color-state-stale); --tone-bg: var(--mcc-color-state-stale-muted); }9.tone-offline { --tone: var(--mcc-color-text-secondary); --tone-bg: var(--mcc-color-state-offline-muted); }10.tone-maintenance { --tone: var(--mcc-color-state-maintenance); --tone-bg: var(--mcc-color-state-maintenance-muted); }11.tone-neutral { --tone: var(--mcc-color-text-secondary); --tone-bg: var(--mcc-color-bg-raised); }1213/* ── Button ── */14.mcc-btn {15 display: inline-flex; align-items: center; justify-content: center; gap: var(--mcc-space-3);16 height: var(--mcc-size-control-md); padding: 0 var(--mcc-space-4); min-width: var(--mcc-size-control-md);17 border: 1px solid var(--mcc-color-border-default); border-radius: var(--mcc-radius-md);18 background: var(--mcc-color-bg-raised); color: var(--mcc-color-text-primary);19 font-size: var(--mcc-font-size-sm); font-weight: var(--mcc-font-weight-medium); line-height: 1; white-space: nowrap; text-decoration: none;20 transition: background var(--mcc-motion-fast) var(--mcc-motion-easing-standard), border-color var(--mcc-motion-fast) var(--mcc-motion-easing-standard);21}22.mcc-btn:hover:not(:disabled) { background: var(--mcc-color-bg-hover); border-color: var(--mcc-color-border-strong); text-decoration: none; }23.mcc-btn:active:not(:disabled) { background: var(--mcc-color-bg-inset); }24.mcc-btn:disabled, .mcc-btn[aria-disabled="true"] { color: var(--mcc-color-text-disabled); border-color: var(--mcc-color-border-subtle); background: transparent; }25.mcc-btn-primary { background: var(--mcc-color-accent-default); border-color: var(--mcc-color-accent-default); color: var(--mcc-color-accent-contrast); font-weight: var(--mcc-font-weight-semibold); }26.mcc-btn-primary:hover:not(:disabled) { background: var(--mcc-color-focus-ring); border-color: var(--mcc-color-focus-ring); }27.mcc-btn-ghost { background: transparent; border-color: transparent; color: var(--mcc-color-text-secondary); }28.mcc-btn-ghost:hover:not(:disabled) { color: var(--mcc-color-text-primary); border-color: transparent; }29.mcc-btn-danger { border-color: var(--mcc-color-state-critical); color: var(--mcc-color-state-critical); background: transparent; }30.mcc-btn-danger:hover:not(:disabled) { background: var(--mcc-color-state-critical-muted); border-color: var(--mcc-color-state-critical); }31.mcc-btn-sm { height: var(--mcc-size-control-sm); padding: 0 var(--mcc-space-3); font-size: var(--mcc-font-size-xs); min-width: var(--mcc-size-control-sm); }32.mcc-btn-lg { height: var(--mcc-size-control-lg); padding: 0 var(--mcc-space-6); font-size: var(--mcc-font-size-md); }33.mcc-btn-icon { padding: 0; width: var(--mcc-size-control-md); }34.mcc-btn-icon.mcc-btn-sm { width: var(--mcc-size-control-sm); }35.mcc-btn-icon.mcc-btn-lg { width: var(--mcc-size-control-lg); padding: 0; }36.mcc-btn-block { width: 100%; }37.mcc-spin { animation: mcc-spin 0.8s linear infinite; }38@keyframes mcc-spin { to { transform: rotate(360deg); } }39@media (pointer: coarse) {40 .mcc-btn, .mcc-btn-sm { min-height: var(--mcc-size-touch-min); min-width: var(--mcc-size-touch-min); }41 .mcc-input, .mcc-select { min-height: var(--mcc-size-touch-min); }42}4344/* ── Badge / state ── */45.mcc-badge {46 display: inline-flex; align-items: center; gap: var(--mcc-space-2); height: 22px; padding: 0 var(--mcc-space-3) 0 var(--mcc-space-2);47 border-radius: var(--mcc-radius-sm); background: var(--tone-bg); color: var(--tone);48 font-size: var(--mcc-font-size-xs); font-weight: var(--mcc-font-weight-medium); line-height: 1; white-space: nowrap;49}50.mcc-badge-plain { padding: 0 var(--mcc-space-3); }51.mcc-state { display: inline-flex; align-items: center; gap: var(--mcc-space-2); color: var(--tone); font-size: var(--mcc-font-size-sm); white-space: nowrap; }52.mcc-state > .label { color: var(--mcc-color-text-primary); }53.mcc-state.subtle > .label { color: var(--mcc-color-text-secondary); }54.mcc-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 var(--mcc-space-2); border-radius: var(--mcc-radius-pill); background: var(--mcc-color-bg-hover); color: var(--mcc-color-text-secondary); font-size: var(--mcc-font-size-2xs); font-weight: var(--mcc-font-weight-semibold); }55.mcc-count.tone-critical, .mcc-count.tone-warning { background: var(--tone-bg); color: var(--tone); }56.mcc-tag { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--mcc-space-3); border: 1px solid var(--mcc-color-border-default); border-radius: var(--mcc-radius-sm); color: var(--mcc-color-text-secondary); font-size: var(--mcc-font-size-xs); font-family: var(--mcc-font-mono); }57.mcc-kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 var(--mcc-space-2); border: 1px solid var(--mcc-color-border-default); border-bottom-width: 2px; border-radius: var(--mcc-radius-sm); color: var(--mcc-color-text-secondary); font-size: var(--mcc-font-size-2xs); font-family: var(--mcc-font-mono); }58.mcc-unmeasured { display: inline-flex; align-items: center; gap: var(--mcc-space-2); color: var(--mcc-color-text-tertiary); font-size: var(--mcc-font-size-xs); white-space: nowrap; }5960/* ── Fields ── */61.mcc-field { display: flex; flex-direction: column; gap: var(--mcc-space-2); min-width: 0; }62.mcc-label { font-size: var(--mcc-font-size-xs); font-weight: var(--mcc-font-weight-medium); color: var(--mcc-color-text-secondary); }63.mcc-label .req { color: var(--mcc-color-state-critical); margin-left: var(--mcc-space-1); }64.mcc-hint { font-size: var(--mcc-font-size-xs); color: var(--mcc-color-text-tertiary); }65.mcc-error-text { display: flex; align-items: center; gap: var(--mcc-space-2); font-size: var(--mcc-font-size-xs); color: var(--mcc-color-state-critical); }66.mcc-input, .mcc-select, .mcc-textarea {67 width: 100%; height: var(--mcc-size-control-md); padding: 0 var(--mcc-space-4);68 background: var(--mcc-color-bg-inset); border: 1px solid var(--mcc-color-border-default); border-radius: var(--mcc-radius-md);69 color: var(--mcc-color-text-primary); font-size: var(--mcc-font-size-sm);70 transition: border-color var(--mcc-motion-fast) var(--mcc-motion-easing-standard);71}72.mcc-input::placeholder, .mcc-textarea::placeholder { color: var(--mcc-color-text-tertiary); opacity: 1; }73.mcc-input:hover, .mcc-select:hover, .mcc-textarea:hover { border-color: var(--mcc-color-border-strong); }74.mcc-input:focus-visible, .mcc-select:focus-visible, .mcc-textarea:focus-visible { outline-offset: 0; border-color: var(--mcc-color-focus-ring); }75.mcc-input[aria-invalid="true"], .mcc-textarea[aria-invalid="true"], .mcc-select[aria-invalid="true"] { border-color: var(--mcc-color-state-critical); }76.mcc-input:disabled, .mcc-select:disabled, .mcc-textarea:disabled { color: var(--mcc-color-text-disabled); border-color: var(--mcc-color-border-subtle); }77.mcc-input.mono { font-family: var(--mcc-font-mono); }78.mcc-textarea { height: auto; min-height: 84px; padding: var(--mcc-space-3) var(--mcc-space-4); resize: vertical; line-height: var(--mcc-leading-normal); }79.mcc-select { appearance: none; padding-right: var(--mcc-space-8); background-image: linear-gradient(45deg, transparent 50%, var(--mcc-color-text-tertiary) 50%), linear-gradient(135deg, var(--mcc-color-text-tertiary) 50%, transparent 50%); background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }80.mcc-input-wrap { position: relative; display: flex; align-items: center; }81.mcc-input-wrap > svg { position: absolute; left: var(--mcc-space-3); color: var(--mcc-color-text-tertiary); pointer-events: none; }82.mcc-input-wrap > .mcc-input { padding-left: var(--mcc-space-8); }83.mcc-check { display: inline-flex; align-items: center; gap: var(--mcc-space-3); font-size: var(--mcc-font-size-sm); min-height: 24px; cursor: pointer; }84.mcc-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--mcc-color-accent-default); }85.mcc-switch { display: inline-flex; align-items: center; gap: var(--mcc-space-3); font-size: var(--mcc-font-size-sm); min-height: 24px; cursor: pointer; }86.mcc-switch input { appearance: none; position: relative; width: 34px; height: 20px; margin: 0; border-radius: var(--mcc-radius-pill); background: var(--mcc-color-bg-inset); border: 1px solid var(--mcc-color-border-strong); transition: background var(--mcc-motion-fast) var(--mcc-motion-easing-standard); cursor: pointer; flex-shrink: 0; }87.mcc-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: var(--mcc-radius-pill); background: var(--mcc-color-text-secondary); transition: transform var(--mcc-motion-fast) var(--mcc-motion-easing-standard); }88.mcc-switch input:checked { background: var(--mcc-color-accent-muted); border-color: var(--mcc-color-accent-default); }89.mcc-switch input:checked::after { transform: translateX(14px); background: var(--mcc-color-accent-default); }90.mcc-switch .state { color: var(--mcc-color-text-tertiary); font-size: var(--mcc-font-size-xs); }91.mcc-form { display: flex; flex-direction: column; gap: var(--mcc-space-5); }92.mcc-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--mcc-space-4); }93@media (max-width: 560px) { .mcc-form-row { grid-template-columns: minmax(0, 1fr); } }94fieldset.mcc-fieldset { border: 0; padding: 0; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: var(--mcc-space-3); }95fieldset.mcc-fieldset > legend { padding: 0; margin-bottom: var(--mcc-space-2); font-size: var(--mcc-font-size-xs); font-weight: var(--mcc-font-weight-medium); color: var(--mcc-color-text-secondary); }9697/* ── Segmented control ── */98.mcc-seg { display: inline-flex; padding: 2px; gap: 2px; background: var(--mcc-color-bg-inset); border: 1px solid var(--mcc-color-border-subtle); border-radius: var(--mcc-radius-md); }99.mcc-seg button { height: 26px; min-width: 32px; padding: 0 var(--mcc-space-3); border: 0; border-radius: var(--mcc-radius-sm); background: transparent; color: var(--mcc-color-text-secondary); font-size: var(--mcc-font-size-xs); font-weight: var(--mcc-font-weight-medium); display: inline-flex; align-items: center; gap: var(--mcc-space-2); }100.mcc-seg button:hover { color: var(--mcc-color-text-primary); }101.mcc-seg button[aria-checked="true"] { background: var(--mcc-color-bg-hover); color: var(--mcc-color-text-primary); box-shadow: inset 0 0 0 1px var(--mcc-color-border-strong); }102@media (pointer: coarse) { .mcc-seg button { height: 40px; min-width: 44px; } }103104/* ── Tabs ── */105.mcc-tabs { display: flex; gap: var(--mcc-space-5); border-bottom: 1px solid var(--mcc-color-border-subtle); overflow-x: auto; scrollbar-width: none; }106.mcc-tab { position: relative; display: inline-flex; align-items: center; gap: var(--mcc-space-3); height: 36px; padding: 0 var(--mcc-space-1); border: 0; background: transparent; color: var(--mcc-color-text-secondary); font-size: var(--mcc-font-size-sm); font-weight: var(--mcc-font-weight-medium); white-space: nowrap; text-decoration: none; }107.mcc-tab:hover { color: var(--mcc-color-text-primary); text-decoration: none; }108.mcc-tab[aria-selected="true"], .mcc-tab[aria-current="page"] { color: var(--mcc-color-text-primary); }109.mcc-tab[aria-selected="true"]::after, .mcc-tab[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--mcc-color-accent-default); }110@media (pointer: coarse) { .mcc-tab { height: var(--mcc-size-touch-min); } }111112/* ── Table ── */113.mcc-table-wrap { position: relative; overflow: auto; border: 1px solid var(--mcc-color-border-subtle); border-radius: var(--mcc-radius-lg); background: var(--mcc-color-bg-surface); min-width: 0; }114.mcc-table-wrap.virtual { max-height: min(72vh, 900px); }115.mcc-table-wrap.bare { border: 0; border-radius: 0; background: transparent; }116.mcc-table { width: 100%; font-size: var(--mcc-font-size-sm); }117.mcc-table caption { text-align: left; }118.mcc-table th { position: sticky; top: 0; z-index: 1; height: 34px; padding: 0 var(--mcc-space-4); background: var(--mcc-color-bg-surface); border-bottom: 1px solid var(--mcc-color-border-default); text-align: left; white-space: nowrap; font-size: var(--mcc-font-size-2xs); font-weight: var(--mcc-font-weight-medium); letter-spacing: var(--mcc-tracking-caps); text-transform: uppercase; color: var(--mcc-color-text-tertiary); }119.mcc-table-wrap.bare .mcc-table th { background: var(--mcc-color-bg-canvas); }120.mcc-table td { height: 38px; padding: var(--mcc-space-2) var(--mcc-space-4); border-bottom: 1px solid var(--mcc-color-border-subtle); vertical-align: middle; }121.mcc-table tbody tr:last-child td { border-bottom: 0; }122.mcc-table tbody tr.clickable { cursor: pointer; }123.mcc-table tbody tr:hover td { background: var(--mcc-color-bg-raised); }124.mcc-table tbody tr[aria-selected="true"] td { background: var(--mcc-color-accent-muted); }125.mcc-table .right { text-align: right; }126.mcc-table .shrink { width: 1%; white-space: nowrap; }127.mcc-table td.mono { font-family: var(--mcc-font-mono); font-size: var(--mcc-font-size-xs); }128.mcc-table a.rowlink { color: var(--mcc-color-text-primary); font-weight: var(--mcc-font-weight-medium); }129.mcc-table a.rowlink.mono { font-family: var(--mcc-font-mono); }130.mcc-th-btn { display: inline-flex; align-items: center; gap: var(--mcc-space-2); min-height: 24px; padding: 0; border: 0; background: transparent; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; }131.mcc-th-btn:hover, th[aria-sort="ascending"] .mcc-th-btn, th[aria-sort="descending"] .mcc-th-btn { color: var(--mcc-color-text-primary); }132.mcc-th-btn svg { opacity: 0.35; }133th[aria-sort="ascending"] .mcc-th-btn svg, th[aria-sort="descending"] .mcc-th-btn svg { opacity: 1; }134.mcc-table.compact td { height: 30px; }135@media (max-width: 900px) { .mcc-table .hide-md { display: none; } }136@media (max-width: 600px) { .mcc-table .hide-sm { display: none; } .mcc-table th, .mcc-table td { padding-left: var(--mcc-space-3); padding-right: var(--mcc-space-3); } }137138/* ── Dialog / Drawer (native <dialog>: focus trap, Esc and focus restore come from the platform) ── */139.mcc-dialog { padding: 0; border: 1px solid var(--mcc-color-border-default); border-radius: var(--mcc-radius-xl); background: var(--mcc-color-bg-raised); color: var(--mcc-color-text-primary); box-shadow: var(--mcc-elevation-overlay); width: min(520px, calc(100vw - 2 * var(--mcc-space-5))); max-height: calc(100dvh - 2 * var(--mcc-space-7)); overflow: hidden; }140.mcc-dialog[open] { display: flex; flex-direction: column; animation: mcc-pop var(--mcc-motion-fast) var(--mcc-motion-easing-standard); }141.mcc-dialog.wide { width: min(760px, calc(100vw - 2 * var(--mcc-space-5))); }142.mcc-dialog.xwide { width: min(1080px, calc(100vw - 2 * var(--mcc-space-5))); }143.mcc-dialog::backdrop { background: var(--mcc-color-overlay-scrim); }144.mcc-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--mcc-space-4); padding: var(--mcc-space-5) var(--mcc-space-6) var(--mcc-space-3); }145.mcc-dialog-head p { margin-top: var(--mcc-space-2); color: var(--mcc-color-text-secondary); font-size: var(--mcc-font-size-sm); }146.mcc-dialog-body { padding: var(--mcc-space-3) var(--mcc-space-6) var(--mcc-space-5); overflow: auto; display: flex; flex-direction: column; gap: var(--mcc-space-5); }147.mcc-dialog-foot { display: flex; justify-content: flex-end; gap: var(--mcc-space-3); padding: var(--mcc-space-4) var(--mcc-space-6); border-top: 1px solid var(--mcc-color-border-subtle); background: var(--mcc-color-bg-surface); flex-wrap: wrap; }148.mcc-drawer { margin: 0 0 0 auto; height: 100dvh; max-height: 100dvh; width: min(560px, 100vw); border-radius: 0; border-width: 0 0 0 1px; }149.mcc-drawer[open] { animation: mcc-slide var(--mcc-motion-base) var(--mcc-motion-easing-standard); }150.mcc-drawer.wide { width: min(820px, 100vw); }151@keyframes mcc-pop { from { opacity: 0; transform: translateY(6px) scale(0.99); } }152@keyframes mcc-slide { from { transform: translateX(24px); opacity: 0; } }153154/* ── Menu / popover / listbox ── */155.mcc-pop-anchor { position: relative; display: inline-flex; }156.mcc-pop { position: absolute; z-index: 30; top: calc(100% + var(--mcc-space-2)); min-width: 200px; max-width: min(360px, 90vw); padding: var(--mcc-space-2); background: var(--mcc-color-bg-raised); border: 1px solid var(--mcc-color-border-default); border-radius: var(--mcc-radius-lg); box-shadow: var(--mcc-elevation-overlay); animation: mcc-pop var(--mcc-motion-instant) var(--mcc-motion-easing-standard); }157.mcc-pop.right { right: 0; } .mcc-pop.left { left: 0; } .mcc-pop.up { top: auto; bottom: calc(100% + var(--mcc-space-2)); }158.mcc-pop.block { left: 0; right: 0; max-width: none; max-height: 280px; overflow: auto; }159.mcc-menu-item, .mcc-option { display: flex; align-items: center; gap: var(--mcc-space-3); width: 100%; min-height: 32px; padding: var(--mcc-space-2) var(--mcc-space-3); border: 0; border-radius: var(--mcc-radius-sm); background: transparent; color: var(--mcc-color-text-primary); font-size: var(--mcc-font-size-sm); text-align: left; text-decoration: none; cursor: pointer; }160.mcc-menu-item:hover, .mcc-menu-item:focus-visible, .mcc-option[data-active="true"], .mcc-option:hover { background: var(--mcc-color-bg-hover); text-decoration: none; outline-offset: -2px; }161.mcc-menu-item.danger { color: var(--mcc-color-state-critical); }162.mcc-menu-item:disabled { color: var(--mcc-color-text-disabled); cursor: not-allowed; }163.mcc-menu-sep { height: 1px; margin: var(--mcc-space-2) 0; background: var(--mcc-color-border-subtle); }164.mcc-menu-label { padding: var(--mcc-space-2) var(--mcc-space-3); }165.mcc-option .hint { margin-left: auto; color: var(--mcc-color-text-tertiary); font-size: var(--mcc-font-size-xs); }166.mcc-option[aria-selected="true"] { color: var(--mcc-color-accent-default); }167.mcc-chips { display: flex; flex-wrap: wrap; gap: var(--mcc-space-2); }168.mcc-chip { display: inline-flex; align-items: center; gap: var(--mcc-space-2); height: 24px; padding: 0 var(--mcc-space-2) 0 var(--mcc-space-3); border: 1px solid var(--mcc-color-border-default); border-radius: var(--mcc-radius-sm); background: var(--mcc-color-bg-raised); font-size: var(--mcc-font-size-xs); font-family: var(--mcc-font-mono); }169.mcc-chip button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-right: calc(-1 * var(--mcc-space-2)); border: 0; background: transparent; color: var(--mcc-color-text-tertiary); border-radius: var(--mcc-radius-sm); }170.mcc-chip button:hover { color: var(--mcc-color-text-primary); }171@media (pointer: coarse) { .mcc-menu-item, .mcc-option { min-height: var(--mcc-size-touch-min); } }172173/* ── Tooltip (CSS only; content is also exposed through aria-describedby) ── */174.mcc-tip { position: relative; display: inline-flex; }175.mcc-tip > [role="tooltip"] { position: absolute; z-index: 40; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: max-content; max-width: 280px; padding: var(--mcc-space-2) var(--mcc-space-3); border-radius: var(--mcc-radius-sm); background: var(--mcc-color-bg-hover); border: 1px solid var(--mcc-color-border-strong); color: var(--mcc-color-text-primary); font-size: var(--mcc-font-size-xs); font-weight: var(--mcc-font-weight-regular); letter-spacing: 0; text-transform: none; line-height: var(--mcc-leading-snug); white-space: normal; visibility: hidden; opacity: 0; pointer-events: none; transition: opacity var(--mcc-motion-fast) var(--mcc-motion-easing-standard) 0.3s; }176.mcc-tip:hover > [role="tooltip"], .mcc-tip:focus-within > [role="tooltip"] { visibility: visible; opacity: 1; }177.mcc-tip.below > [role="tooltip"] { bottom: auto; top: calc(100% + 6px); }178.mcc-tip.end > [role="tooltip"] { left: auto; right: 0; transform: none; }179180/* ── Toasts ── */181.mcc-toasts { position: fixed; z-index: 90; right: var(--mcc-space-5); bottom: var(--mcc-space-5); display: flex; flex-direction: column; gap: var(--mcc-space-3); width: min(380px, calc(100vw - 2 * var(--mcc-space-5))); pointer-events: none; }182.mcc-toast { pointer-events: auto; display: flex; align-items: flex-start; gap: var(--mcc-space-3); padding: var(--mcc-space-4); background: var(--mcc-color-bg-raised); border: 1px solid var(--mcc-color-border-default); border-left: 3px solid var(--tone); border-radius: var(--mcc-radius-md); box-shadow: var(--mcc-elevation-overlay); font-size: var(--mcc-font-size-sm); animation: mcc-pop var(--mcc-motion-base) var(--mcc-motion-easing-standard); }183.mcc-toast > svg { color: var(--tone); margin-top: 2px; }184.mcc-toast .detail { color: var(--mcc-color-text-secondary); font-size: var(--mcc-font-size-xs); margin-top: var(--mcc-space-1); overflow-wrap: anywhere; }185@media (max-width: 720px) { .mcc-toasts { bottom: calc(64px + var(--mcc-space-3)); right: var(--mcc-space-3); } }186187/* ── Skeleton / states ── */188.mcc-skel { display: block; height: 14px; border-radius: var(--mcc-radius-sm); background: var(--mcc-color-bg-hover); animation: mcc-pulse 1.4s ease-in-out infinite; }189.mcc-skel.h-lg { height: 28px; } .mcc-skel.h-xl { height: 120px; } .mcc-skel.h-row { height: 38px; border-radius: 0; margin-bottom: 1px; }190.mcc-skel.w-25 { width: 25%; } .mcc-skel.w-40 { width: 40%; } .mcc-skel.w-60 { width: 60%; } .mcc-skel.w-80 { width: 80%; }191@keyframes mcc-pulse { 50% { opacity: 0.45; } }192.mcc-statebox { display: flex; flex-direction: column; align-items: flex-start; gap: var(--mcc-space-3); padding: var(--mcc-space-7) var(--mcc-space-6); border: 1px dashed var(--mcc-color-border-default); border-radius: var(--mcc-radius-lg); min-width: 0; }193.mcc-statebox.compact { padding: var(--mcc-space-4) var(--mcc-space-5); }194.mcc-statebox > .icon { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: var(--mcc-radius-md); background: var(--tone-bg); color: var(--tone); }195.mcc-statebox h3 { font-size: var(--mcc-font-size-md); }196.mcc-statebox p { color: var(--mcc-color-text-secondary); font-size: var(--mcc-font-size-sm); max-width: 68ch; }197.mcc-statebox .meta { display: flex; align-items: center; gap: var(--mcc-space-3); flex-wrap: wrap; font-size: var(--mcc-font-size-xs); color: var(--mcc-color-text-tertiary); }198.mcc-banner { display: flex; align-items: center; gap: var(--mcc-space-3); padding: var(--mcc-space-3) var(--mcc-space-4); border: 1px solid var(--tone); border-radius: var(--mcc-radius-md); background: var(--tone-bg); color: var(--mcc-color-text-primary); font-size: var(--mcc-font-size-sm); }199.mcc-banner > svg { color: var(--tone); }200.mcc-banner .grow { min-width: 0; }201.mcc-stamp { display: inline-flex; align-items: center; gap: var(--mcc-space-3); font-size: var(--mcc-font-size-xs); color: var(--mcc-color-text-tertiary); white-space: nowrap; }202203/* ── KeyValue ── */204.mcc-kv { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: var(--mcc-space-3) var(--mcc-space-6); font-size: var(--mcc-font-size-sm); }205.mcc-kv-row { display: contents; }206.mcc-kv dt { color: var(--mcc-color-text-tertiary); }207.mcc-kv dd { min-width: 0; overflow-wrap: anywhere; }208.mcc-kv.inline { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: var(--mcc-space-5); }209.mcc-kv.inline > div { display: flex; flex-direction: column; gap: var(--mcc-space-1); min-width: 0; }210@media (max-width: 560px) { .mcc-kv { grid-template-columns: minmax(0, 1fr); gap: var(--mcc-space-1); } .mcc-kv dd { margin-bottom: var(--mcc-space-3); } }211212/* ── Stat (large figure with label and context) ── */213.mcc-stat { display: flex; flex-direction: column; gap: var(--mcc-space-2); min-width: 0; }214.mcc-stat .value { font-size: var(--mcc-font-size-2xl); font-weight: var(--mcc-font-weight-semibold); line-height: var(--mcc-leading-tight); letter-spacing: var(--mcc-tracking-tight); }215.mcc-stat .value small { font-size: var(--mcc-font-size-sm); font-weight: var(--mcc-font-weight-regular); color: var(--mcc-color-text-secondary); margin-left: var(--mcc-space-2); }216.mcc-stat .context { font-size: var(--mcc-font-size-xs); color: var(--mcc-color-text-tertiary); }217218/* ── Meter / Sparkline ── */219.mcc-meter { display: flex; align-items: center; gap: var(--mcc-space-3); min-width: 0; }220.mcc-meter svg { flex: 1 1 48px; width: 48px; min-width: 48px; height: 6px; border-radius: var(--mcc-radius-pill); overflow: hidden; }221.mcc-meter.stacked svg { flex: 0 0 auto; width: 100%; }222.mcc-meter .track { fill: var(--mcc-color-bg-hover); }223.mcc-meter .fill { fill: var(--tone); }224.mcc-meter .val { flex: 0 0 auto; min-width: 44px; text-align: right; font-size: var(--mcc-font-size-xs); color: var(--mcc-color-text-secondary); }225.mcc-meter.stacked { flex-direction: column; align-items: stretch; gap: var(--mcc-space-2); }226.mcc-meter.stacked .val { text-align: left; }227.mcc-spark { width: 96px; height: 24px; overflow: visible; }228.mcc-spark path { fill: none; stroke: var(--mcc-color-chart-1); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }229.mcc-spark.tone path { stroke: var(--tone); }230231/* ── Time-series chart ── */232.mcc-chart { display: flex; flex-direction: column; gap: var(--mcc-space-3); min-width: 0; }233.mcc-chart-head { display: flex; align-items: center; justify-content: space-between; gap: var(--mcc-space-3); flex-wrap: wrap; }234.mcc-chart-plot { position: relative; height: 200px; min-width: 0; border-radius: var(--mcc-radius-sm); }235.mcc-chart-plot.tall { height: 300px; } .mcc-chart-plot.short { height: 120px; }236.mcc-chart-plot:focus-visible { outline-offset: 4px; }237.mcc-chart-msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }238.mcc-chart-legend { display: flex; flex-wrap: wrap; gap: var(--mcc-space-2) var(--mcc-space-5); font-size: var(--mcc-font-size-xs); color: var(--mcc-color-text-secondary); }239.mcc-chart-legend li { display: inline-flex; align-items: center; gap: var(--mcc-space-2); }240.mcc-chart-legend .swatch { width: 12px; height: 12px; }241.mcc-chart-legend .swatch line { stroke-width: 2.5; }242.mcc-chart-legend .v { color: var(--mcc-color-text-primary); }243.mcc-chart-cursor { font-size: var(--mcc-font-size-xs); color: var(--mcc-color-text-secondary); min-height: 18px; }244.s1 { stroke: var(--mcc-color-chart-1); } .s2 { stroke: var(--mcc-color-chart-2); } .s3 { stroke: var(--mcc-color-chart-3); }245.s4 { stroke: var(--mcc-color-chart-4); } .s5 { stroke: var(--mcc-color-chart-5); } .s6 { stroke: var(--mcc-color-chart-6); }246/* uPlot structural rules (the library stylesheet is not imported: it carries its own colours) */247.uplot { width: 100%; height: 100%; line-height: 1; font-family: var(--mcc-font-sans); }248.uplot .u-wrap { position: relative; user-select: none; }249.uplot .u-over, .uplot .u-under { position: absolute; }250.uplot .u-under { overflow: hidden; }251.uplot canvas { display: block; position: relative; width: 100%; height: 100%; }252.uplot .u-axis { position: absolute; }253.uplot .u-legend { display: none; }254.uplot .u-select { background: var(--mcc-color-accent-muted); opacity: 0.5; position: absolute; pointer-events: none; }255.uplot .u-cursor-x, .uplot .u-cursor-y { position: absolute; left: 0; top: 0; pointer-events: none; will-change: transform; }256.uplot .u-cursor-x { height: 100%; border-right: 1px dashed var(--mcc-color-border-strong); }257.uplot .u-cursor-y { width: 100%; border-bottom: 1px dashed var(--mcc-color-border-strong); display: none; }258.uplot .u-cursor-pt { position: absolute; top: 0; left: 0; border-radius: 50%; border: 0 solid; pointer-events: none; will-change: transform; background-clip: padding-box !important; }259.uplot .u-off, .uplot .u-hz .u-cursor-y { display: none; }260261/* ── Command palette ── */262.mcc-palette { width: min(640px, calc(100vw - 2 * var(--mcc-space-4))); margin-top: 12vh; }263.mcc-palette-input { display: flex; align-items: center; gap: var(--mcc-space-3); padding: 0 var(--mcc-space-5); border-bottom: 1px solid var(--mcc-color-border-subtle); color: var(--mcc-color-text-tertiary); }264.mcc-palette-input input { flex: 1; height: 52px; border: 0; background: transparent; font-size: var(--mcc-font-size-lg); color: var(--mcc-color-text-primary); min-width: 0; }265.mcc-palette-input input:focus-visible { outline: none; }266.mcc-palette-list { max-height: min(52vh, 440px); overflow: auto; padding: var(--mcc-space-2); }267.mcc-palette-group { padding: var(--mcc-space-3) var(--mcc-space-3) var(--mcc-space-2); }268.mcc-palette-foot { display: flex; gap: var(--mcc-space-5); padding: var(--mcc-space-3) var(--mcc-space-5); border-top: 1px solid var(--mcc-color-border-subtle); font-size: var(--mcc-font-size-xs); color: var(--mcc-color-text-tertiary); flex-wrap: wrap; }269.mcc-option .sub { color: var(--mcc-color-text-tertiary); font-size: var(--mcc-font-size-xs); }270271/* ── Log / output viewer (text only) ── */272.mcc-log { margin: 0; padding: var(--mcc-space-4); max-height: 460px; overflow: auto; background: var(--mcc-color-bg-inset); border: 1px solid var(--mcc-color-border-subtle); border-radius: var(--mcc-radius-md); font-family: var(--mcc-font-mono); font-size: var(--mcc-font-size-xs); line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--mcc-color-text-primary); }273.mcc-log .err { color: var(--mcc-color-state-warning); }274.mcc-log mark { background: var(--mcc-color-state-warning-muted); color: var(--mcc-color-state-warning); border-radius: 2px; }275.mcc-log .sys { color: var(--mcc-color-text-tertiary); }276277/* ── Timeline ── */278.mcc-timeline { display: flex; flex-direction: column; }279.mcc-timeline li { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: var(--mcc-space-3); padding-bottom: var(--mcc-space-4); }280.mcc-timeline li::before { content: ""; position: absolute; left: 7px; top: 14px; bottom: 0; width: 1px; background: var(--mcc-color-border-default); }281.mcc-timeline li:last-child::before { display: none; }282.mcc-timeline .pt { width: 9px; height: 9px; margin: 5px 0 0 3px; border-radius: 50%; border: 2px solid var(--tone, var(--mcc-color-border-strong)); background: var(--mcc-color-bg-canvas); }283.mcc-timeline .meta { font-size: var(--mcc-font-size-xs); color: var(--mcc-color-text-tertiary); }284285/* ── QR code (fixed dark-on-light so it scans in both themes) ── */286.mcc-qr { width: 208px; height: 208px; border-radius: var(--mcc-radius-md); }287.mcc-qr .bg { fill: var(--mcc-color-qr-light); }288.mcc-qr .fg { fill: var(--mcc-color-qr-dark); }289.mcc-table .mono, .mcc-table a.mono { white-space: nowrap; }290