:root {
  --bg: #091512;
  --panel: #0f201c;
  --panel-alt: #132924;
  --text: #e5f2ee;
  --muted: #92ada5;
  --line: rgba(104, 171, 150, 0.24);
  --accent: #5fd0ad;
  --accent-soft: rgba(95, 208, 173, 0.12);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(95, 208, 173, 0.12), transparent 32%),
    linear-gradient(180deg, #091512 0%, #06100e 100%);
  color: var(--text);
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px 20px 40px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 4px 0 6px;
  font-size: 30px;
  line-height: 1.1;
}

.sub,
.hint {
  color: var(--muted);
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  text-decoration: none;
  white-space: nowrap;
}

.notice,
.card,
.summary-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(18, 39, 34, 0.98), rgba(10, 22, 19, 0.98));
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.notice {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 14px;
  margin-bottom: 16px;
  color: var(--muted);
  white-space: nowrap;
}

.notice strong {
  color: var(--text);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.summary-card {
  padding: 14px 16px;
  border-radius: 16px;
}

.summary-card .label {
  display: block;
  color: var(--muted);
  margin-bottom: 8px;
  white-space: nowrap;
}

.summary-card strong {
  font-size: 26px;
  line-height: 1;
}

.card {
  border-radius: 18px;
  overflow: hidden;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
}

.card-head h2 {
  margin: 0;
  font-size: 17px;
}

.table-wrap {
  overflow-x: auto;
}

.bot-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
}

.bot-table th,
.bot-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(104, 171, 150, 0.18);
  text-align: left;
  vertical-align: top;
}

.bot-table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.bot-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bot-title strong,
.metric-line,
.status-chip,
.detail-link {
  white-space: nowrap;
}

.bot-id,
.meta-line,
.empty {
  color: var(--muted);
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #bdf2e3;
  border: 1px solid rgba(95, 208, 173, 0.28);
}

.status-chip.is-stopped {
  color: #f6d6b7;
  background: rgba(222, 154, 82, 0.14);
  border-color: rgba(222, 154, 82, 0.24);
}

.status-chip.is-planned {
  color: #c8d8ff;
  background: rgba(110, 148, 236, 0.14);
  border-color: rgba(110, 148, 236, 0.24);
}

.detail-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 960px) {
  .page-head,
  .card-head,
  .notice {
    flex-direction: column;
    align-items: flex-start;
  }

  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notice,
  .bot-title strong,
  .metric-line,
  .status-chip,
  .detail-link {
    white-space: normal;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 20px 14px 32px;
  }

  .summary-grid {
    grid-template-columns: 1fr;
  }
}
