
/* MiniPC telemetry, scoped to avoid changing existing service cards. */
.container { max-width: 1280px; }
body { padding: 32px 20px; }
.grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.cred-row { gap: 10px; flex-wrap: wrap; }
.cred-val { min-width: 0; overflow-wrap: anywhere; flex-wrap: wrap; }
header .status-bar { color: #94a3b8; background: #172237; border-color: #334155; }
header .status-dot { background: currentColor; box-shadow: none; }
.status-bar[data-level="ok"] { color: #34d399; border-color: #145b4b; background: #10352f; }
.status-bar[data-level="warn"] { color: #fbbf24; border-color: #695423; background: #332c1d; }
.status-bar[data-level="error"] { color: #fda4af; border-color: #703443; background: #3b2330; }
.monitor-panel { margin: 0 0 38px; font-size: 14px; }
.mon-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.mon-heading h2 { font-size: 1.4rem; margin: 0 0 6px; }
.mon-subtitle, .mon-muted { color: #94a3b8; line-height: 1.6; }
.mon-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mon-refresh { border: 1px solid #3b536c; border-radius: 9px; color: #dbeafe; background: #18273b; padding: 9px 14px; cursor: pointer; font: inherit; }
.mon-refresh:hover { border-color: #38bdf8; }
.mon-refresh:focus-visible, .btn-copy:focus-visible { outline: 2px solid #38bdf8; outline-offset: 3px; }
.mon-refresh:disabled { opacity: .5; cursor: wait; }
.mon-notice { padding: 12px 16px; border: 1px solid #3b536c; border-radius: 10px; color: #cbd5e1; background: #142137; margin-bottom: 16px; line-height: 1.6; }
.mon-notice[data-level="warn"] { color: #fde68a; border-color: #695423; background: #30291c; }
.mon-notice[data-level="error"] { color: #fecdd3; border-color: #703443; background: #33212b; }
.mon-section-label { font-size: .8rem; color: #a9bdd4; letter-spacing: .03em; margin: 21px 0 10px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.mon-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mon-card { background: #142035; border: 1px solid #2b3c54; border-radius: 14px; padding: 20px; min-width: 0; }
.mon-card h3 { font-size: .9rem; font-weight: 500; color: #bacade; margin: 0 0 14px; }
.mon-value { display: block; font-size: 1.8rem; font-weight: 750; color: #f1f5f9; font-variant-numeric: tabular-nums; letter-spacing: -.04em; margin-bottom: 8px; }
.mon-value.compact { font-size: 1.15rem; letter-spacing: 0; line-height: 1.5; }
.mon-meter { height: 6px; background: #26354a; border-radius: 4px; overflow: hidden; margin: 12px 0 9px; }
.mon-meter > span { display: block; width: 0; height: 100%; background: #38bdf8; border-radius: inherit; transition: width .4s; }
.mon-meter > span[data-high="true"] { background: #fbbf24; }
.mon-disk + .mon-disk { margin-top: 15px; }
.mon-disk-line { display: flex; justify-content: space-between; gap: 10px; }
.mon-disk-line strong { font-weight: 600; }
.mon-table-wrap { border: 1px solid #2b3c54; border-radius: 14px; background: #142035; overflow-x: auto; margin-top: 14px; }
.mon-table { width: 100%; border-collapse: collapse; min-width: 820px; text-align: left; font-size: 13px; }
.mon-table th { color: #94a3b8; font-size: 12px; font-weight: 500; background: #17243a; padding: 14px 16px; white-space: nowrap; }
.mon-table td { border-top: 1px solid #26354a; padding: 14px 16px; vertical-align: middle; }
.mon-table .mon-name { font-weight: 650; color: #e2e8f0; white-space: nowrap; }
.mon-badge { display: inline-block; padding: 4px 8px; border-radius: 6px; font-size: 12px; white-space: nowrap; background: #26354a; color: #cbd5e1; }
.mon-badge[data-level="ok"] { background: #113c35; color: #6ee7b7; }
.mon-badge[data-level="warn"] { background: #3c321c; color: #fde68a; }
.mon-badge[data-level="error"] { background: #412731; color: #fda4af; }
.mon-empty { padding: 24px !important; text-align: center; color: #94a3b8; line-height: 1.6; }
.mon-events { margin-top: 14px; background: #142035; border: 1px solid #2b3c54; border-radius: 14px; padding: 16px 20px; }
.mon-events summary { cursor: pointer; color: #cbd5e1; }
.mon-event-list { list-style: none; margin-top: 12px; }
.mon-event-list li { display: flex; gap: 16px; justify-content: space-between; border-top: 1px solid #26354a; padding: 10px 0; flex-wrap: wrap; }
.mon-event-list time { color: #94a3b8; font-variant-numeric: tabular-nums; }
.monitor-panel[data-stale="true"] .mon-value, .monitor-panel[data-stale="true"] .mon-table tbody { opacity: .55; }
.mon-error-text { color: #fda4af; }
.mon-footnote { color: #8399b2; font-size: 12px; line-height: 1.7; margin-top: 10px; }
.services-heading { margin: 0 0 18px; font-size: 1.4rem; }
@media (max-width: 760px) {
    body { padding: 24px 14px; }
    header h1 { font-size: 1.8rem; }
    header p { font-size: .9rem; line-height: 1.7; }
    .mon-cards { grid-template-columns: 1fr; }
    .mon-card { padding: 18px; }
    .mon-value { font-size: 1.65rem; }
    .mon-table-wrap { border-radius: 10px; }
    .status-bar { max-width: 100%; text-align: left; line-height: 1.5; }
    .status-dot { flex-shrink: 0; }
    .mon-heading { align-items: flex-start; }
    .card { padding: 20px; }
}



.mon-process-section h3 {font-size:.9rem;font-weight:600;}
.mon-process-table {min-width:560px;}
.mon-process-section .mon-table-wrap {margin-top:0;}

.mon-memory-card {cursor: pointer;}
.mon-memory-card:hover {border-color:#38bdf8;}
.mon-process-open {display:inline-block; margin-top:12px; background:#173a51; color:#7dd3fc; border:1px solid #285f7e; border-radius:7px; padding:7px 10px; font:inherit; cursor:pointer;}
.mon-process-open:focus-visible {outline:2px solid #38bdf8;outline-offset:3px;}
.mon-dblclick-hint {display:block;margin-top:6px;}
.mon-process-dialog {margin:auto;width:min(960px,calc(100vw - 28px));max-height:85vh;padding:22px;background:#142035;color:#f1f5f9;border:1px solid #3b536c;border-radius:16px;box-shadow:0 24px 100px #0009;overflow:auto;}
.mon-process-dialog::backdrop {background:rgba(2,6,23,.78);backdrop-filter:blur(3px);}
.mon-dialog-actions {display:flex;align-items:center;justify-content:space-between;gap:12px;}
.mon-process-dialog .mon-section-label {margin-top:18px;}
.mon-process-dialog .mon-process-table {min-width:560px;}
@media(max-width:760px){.mon-process-dialog {padding:16px;max-height:90vh;}.mon-dblclick-hint{display:none;}}
