body {
    background-color: #0f172a;
    color: #e5e7eb;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

.container {
    padding: 20px;
}

.card {
    background: #111827;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

h1, h2, h3 {
    color: #38bdf8;
}


/* --- rule activation colors (6 rules) --- */
.rule-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:6px 0;
}
.rule-name{
  color: rgba(255,255,255,0.92);
}
.rule-state{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:2px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  letter-spacing:0.3px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
}
.rule-state::before{
  content:'';
  width:8px;
  height:8px;
  border-radius:50%;
  background: rgba(255,255,255,0.35);
}
.rule-state.is-active{
  color: rgba(130,255,170,0.95);
  border-color: rgba(0,255,140,0.25);
  background: rgba(0,255,140,0.10);
}
.rule-state.is-active::before{ background: rgba(0,255,140,0.90); }
.rule-state.is-inactive{
  color: rgba(255,120,120,0.95);
  border-color: rgba(255,70,70,0.25);
  background: rgba(255,70,70,0.10);
}
.rule-state.is-inactive::before{ background: rgba(255,70,70,0.90); }


/* --- peak/low highlight (csucs/melypont) --- */
.extreme-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
  letter-spacing:0.4px;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  white-space:nowrap;
}
.extreme-pill .k{
  opacity:0.85;
}
.extreme-pill .v{
  font-variant-numeric:tabular-nums;
}
.extreme-pill.peak.is-on{
  border-color:rgba(46, 204, 113, 0.55);
  background:rgba(46, 204, 113, 0.12);
  box-shadow:0 0 0 1px rgba(46, 204, 113, 0.10) inset;
}
.extreme-pill.low.is-on{
  border-color:rgba(231, 76, 60, 0.55);
  background:rgba(231, 76, 60, 0.12);
  box-shadow:0 0 0 1px rgba(231, 76, 60, 0.10) inset;
}
.extreme-pill.is-off{
  opacity:0.55;
}
