body {
    font-family: Segoe UI, Arial, sans-serif;
    background: #f4f5f7;
    margin: 0;
    color: #222;
}

.wrap {
    max-width: 900px;
    margin: 40px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 24px 32px;
}

@media (max-width: 600px) {
    .wrap {
        margin: 0;
        border-radius: 0;
        box-shadow: none;
        padding: 16px;
    }
}

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

.search-box {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #d0d2d6;
    border-radius: 6px;
    font-size: 14px;
}

.hidden-row {
    display: none !important;
}

.group-title {
    margin-top: 24px;
    margin-bottom: 8px;
    font-size: 15px;
    color: #444;
}

.group-title:first-of-type {
    margin-top: 0;
}

table.tasks {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 8px;
}

table.tasks th, table.tasks td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid #e4e4e7;
    font-size: 14px;
}

table.tasks th {
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 12px;
}

tr.task-row.is-running {
    background: #fff4d6;
}

tr.task-row.is-running .status-cell {
    color: #b8860b;
    font-weight: 600;
}

.status-cell.status-ready {
    color: #2e7d32;
}

.status-cell.status-disabled {
    color: #999;
}

.run-btn {
    padding: 6px 14px;
    border: none;
    border-radius: 4px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font-size: 13px;
}

.run-btn:disabled {
    background: #9ca3af;
    cursor: default;
}

@media (max-width: 600px) {
    h1 {
        font-size: 18px;
    }

    .search-box {
        font-size: 16px;
    }

    table.tasks thead {
        display: none;
    }

    table.tasks, table.tasks tbody, tr.task-row, table.tasks td {
        display: block;
        width: 100%;
    }

    tr.task-row {
        border: 1px solid #e4e4e7;
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 4px 12px;
    }

    table.tasks td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
        border-bottom: 1px solid #f0f0f2;
        font-size: 14px;
    }

    table.tasks td:last-child {
        border-bottom: none;
    }

    table.tasks td[data-label]::before {
        content: attr(data-label);
        color: #888;
        font-size: 12px;
        text-transform: uppercase;
        flex-shrink: 0;
    }

    table.tasks td[data-label=""]::before {
        content: none;
    }

    table.tasks td:first-child {
        font-weight: 600;
    }

    table.tasks td:first-child::before {
        content: none;
    }

    .run-btn {
        width: 100%;
        padding: 10px;
        font-size: 14px;
    }
}

.hint {
    color: #888;
    font-size: 12px;
    margin-top: 16px;
}

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 16px;
    box-sizing: border-box;
}

.login-box {
    width: 100%;
    max-width: 320px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    padding: 32px;
    box-sizing: border-box;
}

.login-box h1 {
    font-size: 18px;
    text-align: center;
    margin-bottom: 24px;
}

.login-box .field {
    margin-bottom: 16px;
}

.login-box label {
    display: block;
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid #d0d2d6;
    border-radius: 4px;
    font-size: 16px;
}

.login-btn {
    width: 100%;
    padding: 10px;
    font-size: 14px;
}

.login-error {
    display: block;
    background: #fdecea;
    color: #b3261e;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 13px;
    margin-bottom: 16px;
}
