/* Crisis Monitor v2 — Inter only */
.cm-hero {
  padding: 8px 0 20px;
}

.cm-hero h1 {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.03em;
  margin: 0 0 8px;
  color: #fff;
}

.cm-verdict {
  font-size: 15px;
  line-height: 1.5;
  color: rgba(226, 232, 248, 0.85);
  max-width: 52rem;
  margin: 0 0 14px;
}

.cm-asof {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.cm-meters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.cm-meter {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
}

.cm-meter small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cm-meter b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  margin: 4px 0 8px;
}

.cm-meter .bar {
  display: flex;
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.06);
}

.cm-meter .bar i {
  display: block;
  height: 100%;
}

.cm-meter .bar .w { background: var(--negative); }
.cm-meter .bar .a { background: var(--warning); }
.cm-meter .bar .c { background: var(--positive); }

.cm-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 10px;
}

.cm-tabs a {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.cm-tabs a.on {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}

.cm-card {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.cm-card .top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.cm-card h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.cm-card .sub {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 0;
}

.cm-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
}

.cm-pill.calm { color: var(--positive); border-color: rgba(16, 185, 129, 0.35); }
.cm-pill.watch { color: var(--warning); border-color: rgba(245, 158, 11, 0.4); }
.cm-pill.warning { color: var(--negative); border-color: rgba(239, 68, 68, 0.4); }

.cm-val {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 28px;
  color: #fff;
  margin: 6px 0;
}

.cm-zone {
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(16,185,129,.45), rgba(245,158,11,.45), rgba(239,68,68,.45));
  position: relative;
  margin: 10px 0;
}

.cm-zone em {
  position: absolute;
  top: -3px;
  width: 4px;
  height: 14px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
}

.cm-card .rule,
.cm-card .mean {
  font-size: 12.5px;
  color: rgba(226, 232, 248, 0.78);
  line-height: 1.45;
  margin: 6px 0 0;
}

.cm-card .src {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
}

.cm-card .src a { color: #a9c3ff; }

.cm-warn {
  border-left: 3px solid rgba(245, 158, 11, 0.55);
  padding: 12px 14px;
  margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 12px 12px 0;
}

.cm-warn .meta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.cm-warn p { margin: 0; font-size: 14px; line-height: 1.45; }
.cm-warn .now { margin-top: 6px; color: var(--warning); font-size: 13px; }

.cm-src-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cm-src-table th,
.cm-src-table td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  vertical-align: top;
}

.cm-src-table th {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cm-src-table a { color: #a9c3ff; }

.cm-legacy { margin-top: 28px; }
.cm-legacy h2 { font-size: 16px; margin: 0 0 12px; }

@media (max-width: 720px) {
  .cm-meters { grid-template-columns: 1fr; }
}
