* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif; background: #f3f5f8; color: #1d2330; }
.hidden { display: none !important; }
.muted { color: #6b7385; font-weight: normal; font-size: 13px; }
.err { color: #c0392b; }
.ok { color: #1e8449; }
h2 { font-size: 16px; margin: 18px 0 8px; }
input, select, button { font: inherit; padding: 6px 8px; border: 1px solid #c8cdd8; border-radius: 6px; background: #fff; }
button, .btn { background: #2557d6; color: #fff; border-color: #2557d6; cursor: pointer; text-decoration: none; padding: 6px 12px; border-radius: 6px; display: inline-block; }
button:hover, .btn:hover { background: #1b45ad; }
button.link { background: none; border: none; color: #2557d6; padding: 2px 6px; }
button.danger { background: #c0392b; border-color: #c0392b; }
button.small { padding: 2px 8px; font-size: 12px; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 8px 16px; background: #1d2330; color: #fff; position: sticky; top: 0; z-index: 5; }
header .logo { font-size: 18px; letter-spacing: 2px; }
header nav { display: flex; gap: 4px; flex: 1; }
header nav button { background: transparent; border-color: transparent; color: #c9d1e3; }
header nav button.active { background: #2557d6; color: #fff; }
header .link { color: #c9d1e3; }
section { padding: 12px 16px 40px; max-width: 1500px; margin: 0 auto; }
.card { background: #fff; border: 1px solid #e0e4ec; border-radius: 10px; padding: 12px 16px; margin-bottom: 12px; }
.login { width: 320px; margin: 12vh auto; display: flex; flex-direction: column; gap: 10px; }
.login h1 { margin: 0; letter-spacing: 4px; }
.filters, .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters .grow { flex: 1; min-width: 160px; }
.scroll { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; background: #fff; }
table.data th, table.data td { padding: 5px 8px; border-bottom: 1px solid #edf0f5; text-align: left; white-space: nowrap; }
table.data th { background: #f7f8fb; position: sticky; top: 0; font-weight: 600; }
table.data th[data-sort] { cursor: pointer; }
table.data th.sorted::after { content: " \25B4"; }
table.data th.sorted.desc::after { content: " \25BE"; }
table.data td.path { max-width: 520px; overflow: hidden; text-overflow: ellipsis; color: #4a5266; }
table.data tr:hover td { background: #f4f7ff; }
.num { text-align: right !important; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: center; margin: 10px 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 12px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 140px; gap: 8px; align-items: center; margin: 3px 0; font-size: 13px; }
.bar-row .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar { height: 14px; background: #2557d6; border-radius: 3px; min-width: 2px; }
.bar-row .val { color: #6b7385; text-align: right; }
pre { background: #1d2330; color: #dfe6f5; padding: 10px; border-radius: 6px; overflow-x: auto; }
code { background: #eef1f7; padding: 2px 6px; border-radius: 4px; word-break: break-all; }
#modal { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: flex; align-items: flex-start; justify-content: center; padding-top: 6vh; z-index: 10; }
.modal-body { width: min(1200px, 95vw); max-height: 85vh; overflow: auto; position: relative; }
.close { position: absolute; right: 8px; top: 4px; font-size: 22px; }
.dropzone { display: block; border: 2px dashed #9aa6c2; border-radius: 10px; padding: 36px; text-align: center; color: #4a5266; cursor: pointer; background: #fafbfe; }
.dropzone.over { border-color: #2557d6; background: #eaf0ff; color: #2557d6; }
#upProg { width: 100%; margin-top: 8px; }
#loginAsBox { color: #c9d1e3; font-size: 13px; }
#loginAsBox select { padding: 3px 6px; margin-left: 4px; }
.banner { background: #fff3cd; color: #7a5b00; padding: 6px 16px; text-align: center; border-bottom: 1px solid #f0d78c; }
.status-done { color: #1e8449; } .status-failed { color: #c0392b; } .status-processing, .status-queued { color: #b9770e; }
