.mpls {
--mpls-bg: #ffffff;
--mpls-border: #e3e5e8;
--mpls-text: #1d2127;
--mpls-muted: #6b7280;
--mpls-accent: #c8102e;
--mpls-chip: #f4f5f7;
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin: 20px 0 28px;
font-size: 15px;
line-height: 1.4;
color: var(--mpls-text);
min-height: 150px; }
.mpls * { box-sizing: border-box; }
.mpls-box {
background: var(--mpls-bg);
border: 1px solid var(--mpls-border);
border-top: 3px solid var(--mpls-accent);
border-radius: 6px;
padding: 14px 16px 12px;
display: flex;
flex-direction: column;
}
.mpls-head {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 10px;
}
.mpls .mpls-title {
margin: 0;
padding: 0;
font-size: 16px;
font-weight: 700;
letter-spacing: .01em;
text-transform: uppercase;
line-height: 1.2;
}
.mpls-meta { font-size: 12px; color: var(--mpls-muted); }
.mpls .mpls-list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
grid-template-columns: repeat(5, minmax(0, 1fr));
gap: 8px;
flex: 1;
}
.mpls .mpls-item {
margin: 0;
background: var(--mpls-chip);
border-radius: 5px;
padding: 8px 10px;
display: flex;
flex-direction: column;
gap: 2px;
}
.mpls-name { font-size: 12px; color: var(--mpls-muted); font-weight: 600; }
.mpls-val { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mpls-trend { font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mpls-trend.is-up { color: #b42318; }
.mpls-trend.is-down { color: #067647; }
.mpls-trend.is-flat { color: var(--mpls-muted); }
.mpls-air .mpls-val { display: flex; align-items: center; gap: 6px; }
.mpls-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; }
.mpls-lvl { font-size: 11px; font-weight: 600; color: var(--mpls-muted); }
.aqi-good .mpls-dot     { background: #50f0e6; box-shadow: 0 0 0 1px #2bb5ad inset; }
.aqi-fair .mpls-dot     { background: #50ccaa; }
.aqi-moderate .mpls-dot { background: #f0e641; box-shadow: 0 0 0 1px #c9bf1f inset; }
.aqi-poor .mpls-dot     { background: #ff5050; }
.aqi-verypoor .mpls-dot { background: #960032; }
.aqi-extreme .mpls-dot  { background: #7d2181; }
.aqi-poor, .aqi-verypoor, .aqi-extreme { box-shadow: inset 3px 0 0 #ff5050; }
.mpls-foot {
display: flex;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
margin-top: 10px;
font-size: 12px;
color: var(--mpls-muted);
}
.mpls-foot a { color: inherit; text-decoration: underline; }
.mpls-foot .mpls-more { color: var(--mpls-accent); font-weight: 600; text-decoration: none; margin-left: auto; }
.mpls-empty { margin: 0; color: var(--mpls-muted); }
@media (max-width: 760px) {
.mpls { grid-template-columns: 1fr; gap: 12px; margin: 16px 0 22px; }
.mpls .mpls-list { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
}
@media (min-width: 761px) and (max-width: 1000px) {
.mpls { grid-template-columns: 1fr; }
.mpls-val { font-size: 16px; }
}
@media (prefers-color-scheme: dark) {
body.mpls-dark .mpls { --mpls-bg: #171a1f; --mpls-border: #2b3038; --mpls-text: #e7e9ec; --mpls-muted: #9aa1ab; --mpls-chip: #20242b;
}
}