* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    font-size: 14px;
    color: #1a1a1a;
    background: #f5f5f7;
    line-height: 1.5;
}
.topbar {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 10px 24px;
    background: #1a1a1a;
    color: #f0f0f0;
    border-bottom: 1px solid #000;
}
.topbar .brand { font-weight: 600; }
.topbar nav { display: flex; gap: 16px; flex: 1; }
.topbar nav a { color: #ccc; text-decoration: none; padding: 4px 8px; border-radius: 4px; }
.topbar nav a:hover { background: #333; color: #fff; }
.topbar nav a.on { background: #444; color: #fff; }
.topbar .user { color: #999; font-size: 12px; }
.topbar .user a { color: #ccc; margin-left: 12px; }
.content { max-width: 1100px; margin: 24px auto; padding: 0 24px; }
h1 { font-size: 22px; margin-top: 0; font-weight: 600; }
h2 { font-size: 18px; margin-top: 32px; font-weight: 600; }
.card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #eee; }
th { background: #fafafa; font-weight: 600; }
tr:last-child td { border-bottom: none; }
input[type=text], input[type=password], input[type=number], select, textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    font: inherit;
}
label { display: block; margin: 12px 0 4px; font-weight: 500; font-size: 13px; }
button, .btn {
    display: inline-block;
    padding: 8px 16px;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
}
button.secondary, .btn.secondary { background: #fff; color: #1a1a1a; border: 1px solid #ccc; }
button:hover, .btn:hover { opacity: 0.85; }
button.danger { background: #c43030; }
.flashes { max-width: 1100px; margin: 16px auto 0; padding: 0 24px; }
.flash { padding: 10px 14px; border-radius: 6px; margin-bottom: 8px; }
.flash-success { background: #e0f3e0; color: #1a4f1a; border: 1px solid #b6dfb6; }
.flash-error   { background: #fde0e0; color: #6e1010; border: 1px solid #f0bcbc; }
.flash-info    { background: #e0eaf3; color: #173658; border: 1px solid #b6c8df; }
.muted { color: #888; font-size: 12px; }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.col { flex: 1; min-width: 200px; }
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    background: #eee;
    color: #444;
}
.badge.open { background: #e0f3e0; color: #1a4f1a; }
.badge.closed { background: #e0eaf3; color: #173658; }
.badge.running { background: #fff3d6; color: #6b4f00; }
.badge.completed { background: #e0f3e0; color: #1a4f1a; }
.badge.failed { background: #fde0e0; color: #6e1010; }
.thumb { max-width: 100px; max-height: 50px; border: 1px solid #ddd; border-radius: 4px; }
.progress {
    width: 100%; height: 14px; background: #eee; border-radius: 7px; overflow: hidden;
}
.progress > div { height: 100%; background: #1a1a1a; transition: width 0.3s; }
.kv { display: grid; grid-template-columns: 200px 1fr; gap: 4px 16px; font-size: 13px; }
.kv dt { color: #666; }
.kv dd { margin: 0; }
.login-box { max-width: 360px; margin: 80px auto; }
.login-box .card { padding: 28px; }
