body {
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  text-align: center;
  padding: 30px;
  margin: 0;
}

.box {
  background: #1e293b;
  padding: 30px;
  border-radius: 10px;
  max-width: 1500px;
  margin: auto;
  box-sizing: border-box;
}

.panel {
  background: #0f172a;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 20px;
  text-align: left;
  box-sizing: border-box;
}

.top-row {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 20px;
  margin-top: 20px;
  align-items: start;
}

.compact-panel {
  min-height: auto;
}

.cb1-panel {
  margin-top: 20px;
}

input, button {
  margin-top: 12px;
  padding: 10px;
  width: 100%;
  border-radius: 5px;
  border: none;
  box-sizing: border-box;
}

button {
  background: #22c55e;
  color: black;
  font-weight: bold;
  cursor: pointer;
}

.secondary-btn {
  background: #334155;
  color: white;
}

.danger-btn {
  background: #7f1d1d;
  color: white;
}

.button-stack {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.compact-stack button {
  padding: 9px 10px;
  font-size: 15px;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.summary-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
}

.summary-card h4 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #94a3b8;
  font-weight: normal;
}

.summary-card p {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  color: white;
}

th, td {
  border: 1px solid #475569;
  padding: 8px;
  text-align: center;
  vertical-align: top;
}

th {
  background: #1e293b;
}

td.reason {
  text-align: left;
}

.signal-box {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  background: rgba(255,255,255,0.03);
}

.muted {
  color: #94a3b8;
  margin-top: 10px;
}

.result-row {
  cursor: pointer;
}

.result-row:hover {
  background: rgba(255,255,255,0.05);
}

@media (max-width: 1000px) {
  .top-row {
    grid-template-columns: 1fr;
  }
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 15px;
}

.summary-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 8px;
  padding: 12px;
}

.summary-card h4 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #94a3b8;
  font-weight: normal;
}

.summary-card p {
  margin: 0;
  font-size: 22px;
  font-weight: bold;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
}

table {
  width: 100%;
  min-width: 700px;
  border-collapse: collapse;
  color: white;
}

th, td {
  border: 1px solid #475569;
  padding: 8px;
  text-align: center;
  vertical-align: top;
}

th {
  background: #1e293b;
}

td.reason {
  text-align: left;
}

.signal-box {
  margin-top: 15px;
  padding: 15px;
  border-radius: 8px;
  font-size: 20px;
  font-weight: bold;
  background: rgba(255,255,255,0.03);
}

.muted {
  color: #94a3b8;
  margin-top: 10px;
}

.result-row {
  cursor: pointer;
}

.result-row:hover {
  background: rgba(255,255,255,0.05);
}

@media (max-width: 900px) {
  .two-column {
    grid-template-columns: 1fr;
  }
}
