/* Gatekeeper uses the forest theme: dark green surfaces with a lime accent.
   These rules only add layout specific to the gateway dashboard. */

body { overflow: hidden; }

.main { padding-top: 18px; }
.page-head { margin-bottom: 10px; }
.page-head h1 { font-size: 32px; }
.mirror-note {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  margin-bottom: 10px;
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-sm);
  background: var(--gold-soft);
  font-size: 11.5px;
  color: var(--text-2);
}
.mirror-note code {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--gold);
  background: rgba(0, 0, 0, 0.18);
  padding: 1px 5px;
  border-radius: 4px;
}
.mirror-note strong { color: var(--text); }

.kpi-row .card { padding: 9px 14px; }
.kpi-row .stat-value { font-size: 23px; }
.kpi-row .small { font-size: 11px; }
.kpi-row .stat-label { margin-bottom: 2px; }

#rps-chart { min-height: 118px; }

.bucket-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 76px;
  align-items: center;
  gap: 7px;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.bucket-key { font-family: var(--font-mono); font-size: 10.5px; line-height: 1.2; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bucket-meta { display: flex; justify-content: space-between; gap: 5px; font-size: 8.5px; line-height: 1.15; color: var(--muted); margin-top: 1px; font-family: var(--font-mono); }
.bucket-row .avatar.sm { width: 22px; height: 22px; font-size: 8px; }
.bucket-status { text-align: right; font-size: 10.5px; font-family: var(--font-mono); }

.bottom-row { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.45fr) minmax(0, 1.05fr); height: 252px; }
.bottom-row .card { overflow: hidden; }
.chart-row { height: 266px; }
.chart-row .card { overflow: hidden; }
.chart-row #rps-chart svg { max-height: 132px; }

.sliders { display: flex; flex-direction: column; gap: 7px; margin: 0 0 9px; }
.slider { display: flex; flex-direction: column; gap: 3px; font-size: 11px; color: var(--text-2); }
.slider > span { display: flex; justify-content: space-between; }
.slider input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 99px; outline: none;
  background: linear-gradient(90deg, var(--gold), rgba(182, 243, 107, 0.14));
}
.slider input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold); border: 2px solid #07160f; cursor: pointer;
}
.slider input[type="range"]::-moz-range-thumb {
  width: 13px; height: 13px; border-radius: 50%; background: var(--gold);
  border: 2px solid #07160f; cursor: pointer;
}

#decisions .table td, #decisions .table th { padding: 5px 9px; font-size: 10.5px; }
#decisions .table th { font-size: 9px; }
#decisions .badge { font-size: 9px; padding: 2px 7px; }

.metrics-card { min-width: 0; }
.metrics-text {
  margin: 0;
  max-height: 186px;
  overflow: auto;
  font-size: 8.5px;
  line-height: 1.5;
  padding: 10px 11px;
  white-space: pre-wrap;
  word-break: break-word;
}

@media (max-width: 1180px) {
  .bottom-row { grid-template-columns: 1fr 1.4fr; }
  .metrics-card { display: none; }
}
