.mh-card { display: block; min-width: 0; margin: 18px 0; padding: 18px;
    border: 1px solid #52655a; border-radius: 9px;
    background: #111b16; color: #f1f4f2; text-align: left; }
.mh-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    justify-content: space-between; }
.mh-card h3 { margin: 0; color: inherit; }
.mh-card h4 { font-size: 0.95em; margin: 0 0 12px; color: inherit; }
.mh-card .mh-observed { margin: 6px 0 0; }
.mh-badge { display: inline-block; border: 1px solid #82958a; border-radius: 5px;
    padding: 4px 7px; font-size: 0.9em; white-space: normal; }
.mh-badge.mh-ok { color: #b1f3ba; border-color: #73b57d; }
.mh-badge.mh-warning { color: #ffe3a3; border-color: #c79f43; }
.mh-badge.mh-critical { color: #ffc3bb; border-color: #e18173; }
.mh-card.mh-critical { border-color: #e18173; }
.mh-card.mh-warning { border-color: #c79f43; }
.mh-badge.mh-off, .mh-badge.mh-unknown { color: #c4ceca; }
.mh-muted { font-size: 0.85em; color: #bac8bf; }
.mh-notice { margin: 16px 0; padding: 12px 14px; border-left: 3px solid #c79f43;
    background: #1e271c; border-radius: 4px; line-height: 1.5; }
.mh-notice p { margin: 4px 0; }
.mh-reasons { color: #ffe3a3; padding-left: 20px; margin: 0 0 4px; }
.mh-values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 125px), 1fr));
    gap: 10px; margin: 18px 0; }
.mh-values > div { min-width: 0; padding: 12px; border: 1px solid #34463c;
    border-radius: 6px; background: #0b150f; }
.mh-values dt { font-size: 0.82em; color: #bac8bf; line-height: 1.4; }
.mh-values dd { margin: 6px 0 0; font-size: 1.2em; font-weight: bold; }
.mh-values .mh-value-detail { font-size: 0.75em; color: #bac8bf; font-weight: normal; }
.mh-sensor-sections { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 16px; margin: 18px 0; }
.mh-sensor-group { padding: 14px; min-width: 0; background: #0b150f;
    border: 1px solid #34463c; border-radius: 6px; }
.mh-disks { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 0.85em; }
.mh-disks th, .mh-disks td { padding: 9px 6px; text-align: left; vertical-align: top;
    border-bottom: 1px solid #34463c; overflow-wrap: anywhere; }
.mh-disks th:first-child { width: 36%; }
.mh-disks th:nth-child(2) { width: 24%; }
.mh-disks thead th { font-weight: normal; color: #bac8bf; }
.mh-disks tbody th { font-weight: normal; }
.mh-meter { display: block; height: 4px; margin-top: 8px; background: #34463c;
    border-radius: 3px; overflow: hidden; }
.mh-meter > span { display: block; height: 100%; background: #d8ba6a; }

/* Use the existing disk alert thresholds (80/90 percent). */
.mh-disks .mh-meter { height: 7px; }
.mh-disks .mh-meter > span { background: #2e7d32; }
.mh-disks .mh-disk-warning .mh-meter > span { background: #b8860b; }
.mh-disks .mh-disk-critical .mh-meter > span { background: #b00020; }
.mh-card .mh-disk-warning > td > strong,
.mh-card .mh-values .mh-disk-warning > dd { color: #ffe3a3; }
.mh-card .mh-disk-critical > td > strong,
.mh-card .mh-values .mh-disk-critical > dd { color: #fff; background: #b00020;
    border-radius: 4px; padding: 2px 6px; }
.mh-card .mh-values .mh-disk-warning { border-color: #b8860b; }
.mh-card .mh-values .mh-disk-critical { border-color: #b00020; }

.mh-temperatures > div { display: flex; flex-wrap: wrap; gap: 6px 16px;
    justify-content: space-between; padding: 9px 0; border-bottom: 1px solid #34463c; }
.mh-temperatures dt, .mh-temperatures dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.mh-temperatures small { display: block; color: #bac8bf; font-size: 0.75em; margin-top: 4px; }
.mh-history { display: block; margin-top: 20px; padding-top: 14px; border-top: 1px solid #34463c; }
.mh-history > summary { cursor: pointer; font-weight: bold; padding: 4px 0 12px; }
.mh-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mh-chart { margin: 0; padding: 12px; border: 1px solid #263a2d;
    background: #08110c; border-radius: 6px; min-width: 0; }
.mh-chart figcaption { font-size: 0.9em; font-weight: bold; }
.mh-chart svg { display: block; width: 100%; height: auto; }
.mh-chart text { fill: #bfcac4; font-size: 12px; }
.mh-gridline { stroke: #34463c; stroke-width: 1; }
.mh-hit { fill: transparent; pointer-events: all; }
.mh-hit:hover { fill: #fff; }
.mh-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 0.75em; }
.mh-legend i { display: inline-block; width: 10px; height: 3px; margin: 0 5px 3px 0; }
.mh-card .mh-chart-note { margin: 14px 0 0; line-height: 1.5; }
.mh-ranges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: 12px 0; }
.mh-ranges a { padding: 4px 8px; border: 1px solid #587263; border-radius: 5px; color: #e0efe5;
    text-decoration: none; }
.mh-ranges a[aria-current] { background: #355443; font-weight: bold; }
.mh-toggle { color: inherit; background: transparent; border: 1px solid #658573;
    border-radius: 4px; padding: 4px 7px; cursor: pointer; font: inherit; }
.mh-toggle[aria-expanded="true"] { background: #355443; }
.room_desks_list .mh-detail > td { padding: 0 12px; }
.mh-detail[hidden] { display: none; }
@media (max-width: 760px) { .mh-charts { grid-template-columns: 1fr; } .mh-card { padding: 12px; }
    .mh-sensor-group { padding: 10px; } .mh-disks th, .mh-disks td { padding: 8px 4px; } }
