:root {
  --bg: #0f1115;
  --panel: #171a21;
  --panel-2: #1f2430;
  --border: #2b3242;
  --text: #f3f4f6;
  --muted: #a8b0c0;
  --accent: #4f8cff;
  --success: #34c759;
  --danger: #ff5f57;
  --code-bg: #11151d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 Inter, system-ui, sans-serif;
}

a {
  color: var(--accent);
  text-decoration: none;
}

code {
  background: var(--code-bg);
  padding: 2px 6px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
}

.layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px 56px;
}

.page-header {
  margin-bottom: 32px;
}

.page-header h1 {
  margin: 0 0 6px;
  font-size: 2rem;
}

.subtitle,
.muted,
.small,
.empty {
  color: var(--muted);
}

.small {
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.card-link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
}

.panel + .panel {
  margin-top: 24px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.panel-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.badge {
  display: inline-flex;
  min-width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.9rem;
}

.stack {
  display: block;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.table th {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

.layout-narrow {
  max-width: 860px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

.btn-danger {
  background: rgba(255, 95, 87, 0.14);
  border-color: rgba(255, 95, 87, 0.28);
  color: #ffd2cf;
}

.btn-danger:hover {
  background: rgba(255, 95, 87, 0.22);
}

.btn-secondary {
  background: var(--panel-2);
  color: var(--text);
}

.warning-box {
  margin: 20px 0 24px;
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 95, 87, 0.28);
  background: rgba(255, 95, 87, 0.08);
  color: #ffd9d7;
}

.details-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 24px;
}

.detail-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.confirm-form {
  margin-top: 20px;
}

.confirm-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--muted);
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.error-box {
  margin: 18px 0 20px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(255, 95, 87, 0.28);
  background: rgba(255, 95, 87, 0.08);
  color: #ffd9d7;
}

.panel-header-job {
  align-items: flex-start;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-weight: 700;
  font-size: 0.92rem;
}

.status-pending,
.status-running {
  background: rgba(79, 140, 255, 0.12);
  border-color: rgba(79, 140, 255, 0.28);
  color: #cfe0ff;
}

.status-success {
  background: rgba(52, 199, 89, 0.12);
  border-color: rgba(52, 199, 89, 0.28);
  color: #d4ffe0;
}

.status-failed {
  background: rgba(255, 95, 87, 0.12);
  border-color: rgba(255, 95, 87, 0.28);
  color: #ffd9d7;
}

.details-grid-job {
  margin-top: 20px;
  margin-bottom: 24px;
}

.terminal-wrap {
  margin-top: 22px;
}

.terminal {
  min-height: 380px;
  max-height: 65vh;
  overflow: auto;
  margin: 0;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #0b0d12;
  color: #d7dde8;
  font: 14px/1.55 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
}
