:root {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #18212b;
    background: #f4f6f8;
    line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: #185b8d; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar { background: #fff; border-bottom: 1px solid #dfe5ea; }
.topbar-inner { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { font-weight: 700; color: #18212b; }
.nav { display: flex; align-items: center; gap: 20px; }
.nav form { margin: 0; }
.link-button { border: 0; background: transparent; color: #185b8d; font: inherit; padding: 0; cursor: pointer; }
.main { padding: 32px 0 60px; }
h1 { margin: 0 0 8px; font-size: 1.8rem; }
h2 { margin: 28px 0 10px; font-size: 1.05rem; }
.card { background: #fff; border: 1px solid #dfe5ea; border-radius: 10px; padding: 24px; }
.narrow { max-width: 560px; }
.stack { display: grid; gap: 18px; }
.compact { gap: 12px; }
label { display: block; font-weight: 600; margin-bottom: 6px; }
input, select, textarea { width: 100%; border: 1px solid #bdc8d1; border-radius: 6px; padding: 10px 12px; font: inherit; background: #fff; }
.button { border: 0; border-radius: 6px; padding: 10px 14px; background: #185b8d; color: #fff; font-weight: 600; cursor: pointer; }
.alert { border-radius: 6px; padding: 10px 12px; margin: 14px 0; }
.alert.error { background: #fff1f0; color: #8a1f17; border: 1px solid #f0c4c0; }
.error-text { color: #8a1f17; }
.page-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.muted { color: #687681; }
.small { font-size: .85rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.filter { padding: 6px 10px; background: #fff; border: 1px solid #dfe5ea; border-radius: 999px; color: #34424e; }
.filter.active { border-color: #185b8d; color: #185b8d; font-weight: 600; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid #dfe5ea; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 14px; border-bottom: 1px solid #e8edf1; text-align: left; vertical-align: top; }
th { font-size: .82rem; text-transform: uppercase; letter-spacing: .03em; color: #687681; background: #fafbfc; }
tr:last-child td { border-bottom: 0; }
.nowrap { white-space: nowrap; }
.empty { text-align: center; color: #687681; padding: 28px; }
.badge { display: inline-block; padding: 3px 8px; border-radius: 999px; background: #edf2f6; font-size: .82rem; }
.grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.prewrap { white-space: pre-wrap; overflow-wrap: anywhere; }
dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 12px; margin: 0; }
dt { font-weight: 600; color: #56636e; }
dd { margin: 0; overflow-wrap: anywhere; }
.back { display: inline-block; margin-bottom: 8px; }
.diagnostics-json { max-height: 48rem; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; font-size: .82rem; line-height: 1.45; padding: 1rem; background: #f5f6f8; border-radius: .5rem; }
.summary-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 12px; }
.summary-card { background: #fff; border: 1px solid #dfe5ea; border-radius: 10px; padding: 16px; }
.summary-label { display: block; color: #687681; font-size: .78rem; text-transform: uppercase; letter-spacing: .035em; margin-bottom: 3px; }
.summary-value { display: block; font-size: 1.45rem; line-height: 1.2; }
.installation-breakdowns { grid-template-columns: 1fr 1fr; }
.installation-list { display: grid; gap: 12px; }
.installation-card { background: #fff; border: 1px solid #dfe5ea; border-radius: 10px; padding: 18px; }
.installation-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding-bottom: 14px; border-bottom: 1px solid #e8edf1; }
.installation-title-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 3px; }
.installation-title-row code { font-size: .9rem; }
.installation-version { font-size: .85rem; color: #56636e; text-align: right; overflow-wrap: anywhere; max-width: 42%; }
.status-badge { display: inline-block; border-radius: 999px; padding: 2px 7px; font-size: .75rem; font-weight: 700; }
.status-active { background: #e8f5ee; color: #23633f; }
.status-recent { background: #eef4fb; color: #285f91; }
.status-quiet { background: #fff4df; color: #815b17; }
.status-inactive { background: #f1f3f5; color: #66727c; }
.installation-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; padding: 14px 0; }
.installation-stats strong { display: block; font-size: 1.05rem; }
.installation-meta { display: flex; flex-wrap: wrap; gap: 7px 18px; color: #56636e; font-size: .85rem; }
@media (max-width: 900px) {
    .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .installation-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
    .grid { grid-template-columns: 1fr; }
    .topbar-inner { align-items: flex-start; padding: 16px 0; flex-direction: column; }
    .installation-card-header { flex-direction: column; }
    .installation-version { max-width: none; text-align: left; }
}
@media (max-width: 560px) {
    .summary-grid { grid-template-columns: 1fr 1fr; }
    .installation-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
