:root {
    --brand: #0d6efd;
    --brand-dark: #0a58ca;
    --bg: #f5f7fb;
}

body {
    background-color: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.brand-icon {
    margin-right: 6px;
}

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

.card-header {
    border-bottom: none;
    font-size: 0.95rem;
}

.task-list {
    max-height: 320px;
    overflow-y: auto;
}

.task-item {
    padding: 12px 14px;
    border: 1px solid #e7e9ee;
    border-radius: 10px;
    margin-bottom: 10px;
    background: #fff;
    transition: border-color 0.2s ease;
}

.task-item:last-child {
    margin-bottom: 0;
}

.task-item.state-PROGRESS {
    border-color: #ffe69c;
    background: #fffbea;
}

.task-item.state-SUCCESS {
    border-color: #b7ebcb;
    background: #f3fbf6;
}

.task-item.state-FAILURE {
    border-color: #f5c2c7;
    background: #fdf3f4;
}

.task-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.file-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    border: 1px solid #e7e9ee;
    border-radius: 10px;
    margin-bottom: 8px;
    background: #fff;
}

.file-row:last-child {
    margin-bottom: 0;
}

.file-name {
    font-weight: 500;
    word-break: break-all;
}

.file-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #6c757d;
    margin-right: 4px;
    vertical-align: middle;
}

.status-dot.online {
    background: #28a745;
}

.status-dot.offline {
    background: #dc3545;
}

pre.task-output {
    background: #0d1117;
    color: #c9d1d9;
    padding: 8px 10px;
    border-radius: 6px;
    font-size: 0.78rem;
    max-height: 160px;
    overflow: auto;
    margin-top: 8px;
    margin-bottom: 0;
}

footer {
    background: transparent;
}
