* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #0f1419;
  color: #e7ecf3;
  min-height: 100vh;
}

a {
  color: #4ade80;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #243041;
}

.header h1 {
  font-size: 1.5rem;
  color: #4ade80;
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-live {
  background: #14532d;
  color: #86efac;
}

.badge-soon {
  background: #3b2f1e;
  color: #fbbf24;
}

.badge-stop {
  background: #3f1d1d;
  color: #fca5a5;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.card {
  background: #1a2332;
  border: 1px solid #243041;
  border-radius: 12px;
  padding: 20px;
  transition: border-color 0.2s;
}

.card:hover {
  border-color: #4ade80;
}

.subtitle {
  color: #94a3b8;
  margin-bottom: 20px;
  font-size: 0.9rem;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 1rem;
}

.endpoint {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 14px;
  min-height: 40px;
}

.toast {
  margin-top: 20px;
  font-size: 0.875rem;
  min-height: 1.2em;
}

.toast-ok {
  color: #86efac;
}

.toast-error {
  color: #fca5a5;
}

.card .actions {
  margin-bottom: 0;
}

.card p {
  color: #94a3b8;
  font-size: 0.875rem;
  margin-bottom: 16px;
  line-height: 1.5;
}

.btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 600;
}

.btn-primary {
  background: #16a34a;
  color: white;
}

.btn-primary:hover {
  background: #15803d;
}

.btn-danger {
  background: #dc2626;
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-secondary {
  background: #334155;
  color: #e7ecf3;
}

.btn-secondary:hover {
  background: #475569;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.info-item {
  background: #1a2332;
  border: 1px solid #243041;
  border-radius: 8px;
  padding: 12px;
}

.info-item label {
  display: block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.info-item span {
  font-size: 0.875rem;
  word-break: break-all;
}

.info-item small {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.75rem;
}

.section-title {
  font-size: 1rem;
  color: #94a3b8;
  margin: 24px 0 12px;
  font-weight: 600;
}

.log-line {
  margin-bottom: 4px;
}

.log-ok { color: #86efac; }
.log-warn { color: #fbbf24; }
.log-error { color: #fca5a5; }
.log-info { color: #a3e635; }

.log-box {
  background: #0a0e14;
  border: 1px solid #243041;
  border-radius: 8px;
  padding: 16px;
  height: 420px;
  overflow-y: auto;
  font-family: "Cascadia Code", "Consolas", monospace;
  font-size: 0.8rem;
  line-height: 1.6;
  white-space: pre-wrap;
  color: #a3e635;
}

.log-box .empty {
  color: #64748b;
}

.back-link {
  font-size: 0.875rem;
}
