*{box-sizing:border-box}body{margin:0;background:#f4f6fa;color:#182033;font-family:system-ui,sans-serif}header{background:#182033;color:#fff;padding:16px 5%;display:flex;justify-content:space-between}header a{color:#fff}main{max-width:1000px;margin:30px auto;padding:0 18px}.card{background:#fff;padding:24px;border-radius:14px;margin-bottom:22px;box-shadow:0 5px 25px #00000010}.center{min-height:100vh;display:grid;place-items:center}.login{width:min(430px,92vw)}label{display:block;margin:14px 0;font-weight:600}input{display:block;width:100%;padding:12px;margin-top:6px;border:1px solid #ccd2dd;border-radius:8px;font:inherit}button,.button{display:inline-block;background:#182033;color:#fff;border:0;border-radius:8px;padding:11px 16px;text-decoration:none;cursor:pointer}.job{border-top:1px solid #e5e8ee;padding:18px 0}.job>div:first-child,.meta{display:flex;justify-content:space-between;gap:15px}.status{font-weight:600}.progress{height:10px;background:#e8ebf0;border-radius:9px;overflow:hidden;margin:14px 0}.progress span{display:block;height:100%;background:#182033}.error{background:#fff0f0;color:#9b1c1c;padding:10px;border-radius:8px;margin-top:12px}

.job-header,
.section-header,
.history-title,
.history-meta,
.history-action,
.pagination {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
}

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

.section-header {
    margin-bottom:10px;
}

.section-header h2 {
    margin-bottom:4px;
}

.muted {
    color:#687083;
    margin-top:0;
}

.history-count {
    color:#687083;
    font-size:.9rem;
}

.status {
    font-weight:600;
    white-space:nowrap;
}

.status-completed {
    color:#18794e;
}

.status-processing {
    color:#185abd;
}

.status-pending {
    color:#8a6100;
}

.status-failed {
    color:#b42318;
}

.history-list {
    border-top:1px solid #e5e8ee;
}

.history-item {
    padding:18px 0;
    border-bottom:1px solid #e5e8ee;
}

.history-title {
    align-items:flex-start;
}

.history-url {
    color:#687083;
    font-size:.9rem;
    margin-top:7px;
    word-break:break-all;
}

.history-meta {
    justify-content:flex-start;
    flex-wrap:wrap;
    color:#687083;
    font-size:.85rem;
    margin-top:10px;
}

.history-action {
    justify-content:flex-end;
    margin-top:12px;
}

.history-failed {
    color:#b42318;
    font-weight:600;
}

.history-error {
    margin-top:12px;
}

.empty {
    color:#687083;
}

.history-empty {
    padding:15px 0 5px;
}

.button-secondary {
    background:#eef1f5;
    color:#182033;
}

.pagination {
    justify-content:center;
    margin-top:20px;
}

.pagination-info {
    color:#687083;
    font-size:.9rem;
}

@media (max-width:700px) {

    .history-title,
    .history-action {
        align-items:flex-start;
        flex-direction:column;
    }

    .history-action {
        justify-content:flex-start;
    }

    .section-header {
        align-items:flex-start;
        flex-direction:column;
    }

    .pagination {
        flex-wrap:wrap;
    }

}

header {
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:16px 5%;
}

header nav {
    display:flex;
    align-items:center;
    gap:8px;
}

header nav span {
    opacity:.75;
    margin-right:8px;
}

header nav a {
    display:inline-block;
    background:#fff;
    color:#182033;
    border-radius:8px;
    padding:8px 12px;
    text-decoration:none;
    font-size:.9rem;
    font-weight:600;
}

header nav a:hover {
    opacity:.9;
}

@media (max-width:700px) {

    header {
        flex-direction:column;
        align-items:flex-start;
        gap:12px;
    }

    header nav {
        width:100%;
        flex-wrap:wrap;
    }

    header nav span {
        width:100%;
        margin-right:0;
        margin-bottom:2px;
    }

    header nav a {
        padding:9px 13px;
    }
}

.date-error {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #ffe6e6;
    color: #a11;
    font-weight: 600;
}