* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Inter, Arial, sans-serif;
    background: #0f172a;
    color: #e2e8f0;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.header {
    border-bottom: 1px solid rgba(148, 163, 184, 0.2);
    background: rgba(15, 23, 42, 0.9);
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    font-size: 22px;
    font-weight: 800;
}

.nav {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav a, .button, button {
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: white;
    padding: 10px 14px;
    cursor: pointer;
    font-weight: 700;
}

.nav a.secondary, .button.secondary {
    background: #334155;
}

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

.card {
    background: #111827;
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.card h2, .card h3 {
    margin-top: 0;
}

.form {
    display: grid;
    gap: 12px;
}

label {
    display: grid;
    gap: 6px;
    color: #cbd5e1;
    font-size: 14px;
}

input, textarea, select {
    width: 100%;
    border: 1px solid #334155;
    border-radius: 12px;
    background: #020617;
    color: #e2e8f0;
    padding: 11px 12px;
}

textarea {
    min-height: 120px;
    resize: vertical;
}

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

.table th, .table td {
    text-align: left;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
    padding: 12px 8px;
}

.badge {
    display: inline-flex;
    border-radius: 999px;
    padding: 5px 10px;
    background: #1e293b;
    color: #bfdbfe;
    font-size: 12px;
    font-weight: 800;
}

.badge.running {
    background: #14532d;
    color: #bbf7d0;
}

.badge.error {
    background: #7f1d1d;
    color: #fecaca;
}

.notice {
    margin: 16px 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #1e293b;
    color: #e0f2fe;
}

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

.actions.compact {
    align-items: center;
    gap: 6px;
}

.actions.compact .button,
.actions.compact button {
    padding: 8px 10px;
    font-size: 13px;
}

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

.section-head h2 {
    margin-bottom: 6px;
}

.section-head p {
    margin: 0;
    color: #94a3b8;
}
