* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: "Inter", system-ui, -apple-system, sans-serif;
    background: #0e1117;
    color: #e9edf5;
}
a { color: #6dc1ff; text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
    width: min(1200px, 94vw);
    margin: 0 auto;
    padding: 20px 0 40px;
}
.topbar {
    background: #111827;
    border-bottom: 1px solid #1f2937;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
}
.brand {
    font-weight: 700;
    letter-spacing: 0.4px;
}
nav a { margin-left: 12px; }
.card {
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 10px;
    padding: 18px;
    margin: 18px 0;
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}
.card h1, .card h2 { margin: 0 0 4px; }
.grid-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group textarea, .form-group select, .form-group input {
    background: #0b1320;
    border: 1px solid #1f2937;
    color: #e9edf5;
    border-radius: 8px;
    padding: 10px;
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group.checkbox { grid-column: 1 / -1; }
.hint { color: #9ca3af; font-size: 0.9em; margin: 4px 0 0; }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
button, .button {
    background: linear-gradient(135deg, #2563eb, #38bdf8);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.05s ease, box-shadow 0.1s ease;
}
button:hover, .button:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2); }
.button.secondary { background: #1f2937; border: 1px solid #2f3b4f; color: #e0e7ff; }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border-bottom: 1px solid #1f2937; text-align: left; vertical-align: top; }
thead th { background: #0b1320; position: sticky; top: 0; }
.mono { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.small { font-size: 0.9em; }
.empty { text-align: center; color: #9ca3af; }
.badge {
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 0.85em;
    text-transform: capitalize;
    background: #1f2937;
}
.badge-running { background: #f59e0b; color: #111827; }
.badge-finished { background: #10b981; color: #0f172a; }
.badge-failed { background: #ef4444; color: #0f172a; }
.badge-ok { background: #10b981; color: #0f172a; }
.badge-muted { background: #374151; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.filters input[type="text"], .filters select {
    background: #0b1320;
    border: 1px solid #1f2937;
    color: #e9edf5;
    border-radius: 6px;
    padding: 6px 8px;
}
.filters button { padding: 8px 12px; }
.status-box { text-align: right; line-height: 1.5; }
@media (max-width: 700px) {
    .card-header { flex-direction: column; align-items: flex-start; }
    .status-box { text-align: left; }
}
