* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f5f7;
    color: #1f2937;
}

.page {
    max-width: 1300px;
    margin: 0 auto;
    padding: 24px;
}

h1 {
    margin: 0 0 20px;
    font-size: 24px;
}

h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.grid {
    display: grid;
    grid-template-columns: 390px 1fr;
    gap: 20px;
    align-items: start;
}

.card {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

label {
    display: block;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 600;
}

input,
textarea {
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

textarea {
    min-height: 150px;
    resize: vertical;
    font-family: monospace;
}

button {
    border: 0;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
}

button.secondary {
    background: #4b5563;
}

button.danger {
    background: #dc2626;
}

button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.status {
    margin-top: 12px;
    padding: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 13px;
    white-space: pre-wrap;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th,
td {
    border-bottom: 1px solid #e5e7eb;
    padding: 9px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f9fafb;
    font-weight: 700;
}

.badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    background: #e5e7eb;
}

.queued {
    background: #dbeafe;
    color: #1d4ed8;
}

.running {
    background: #fef3c7;
    color: #92400e;
}

.done {
    background: #dcfce7;
    color: #166534;
}

.failed {
    background: #fee2e2;
    color: #991b1b;
}

.cancelled {
    background: #e5e7eb;
    color: #374151;
}

.logs {
    max-height: 420px;
    overflow: auto;
    background: #111827;
    color: #e5e7eb;
    padding: 12px;
    border-radius: 8px;
    font-family: monospace;
    font-size: 12px;
    white-space: pre-wrap;
}

.log-warn {
    color: #fbbf24;
}

.log-error {
    color: #f87171;
}

.muted {
    color: #6b7280;
}

.small {
    font-size: 12px;
}

.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
}

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

select {
    width: 100%;
    margin-top: 6px;
    padding: 10px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
}

.checkbox-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-row input {
    width: auto;
    margin-top: 0;
}