* { box-sizing: border-box; }
body { margin: 0; font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #1a1a1a; background: #fafafa; }
header { display: flex; align-items: center; gap: 24px; padding: 12px 20px; background: #fff; border-bottom: 1px solid #e5e5e5; }
h1 { font-size: 18px; margin: 0; }
nav button { border: none; background: none; padding: 8px 12px; cursor: pointer; font-size: 14px; color: #666; border-radius: 6px; }
nav button.active { background: #1a1a1a; color: #fff; }
#sweep-status { margin-left: auto; color: #888; font-size: 12px; }
main { padding: 20px; max-width: 1200px; margin: 0 auto; }
.toolbar { display: flex; gap: 8px; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; overflow: hidden; }
th, td { padding: 8px 10px; text-align: left; border-bottom: 1px solid #f0f0f0; vertical-align: top; }
th { background: #f7f7f7; font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: #555; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
th[data-metric] { cursor: pointer; }
td.caption { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
form { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; align-items: center; }
input, select, button { padding: 7px 10px; border: 1px solid #d5d5d5; border-radius: 6px; font-size: 14px; background: #fff; }
button[type="submit"] { background: #1a1a1a; color: #fff; border-color: #1a1a1a; cursor: pointer; }
button.small { padding: 3px 8px; font-size: 12px; cursor: pointer; }
.hint { color: #777; font-size: 13px; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; background: #eef; }
.err { color: #c0392b; font-size: 12px; }
a { color: #0b62d6; text-decoration: none; }
#login-overlay { position: fixed; inset: 0; background: #fafafa; display: flex; align-items: center; justify-content: center; z-index: 10; }
#login-overlay[hidden] { display: none; }
#login-form { flex-direction: column; width: 300px; gap: 10px; background: #fff; border: 1px solid #e5e5e5; border-radius: 10px; padding: 28px; }
#login-form h2 { margin: 0 0 8px; text-align: center; }
#login-form input, #login-form button { width: 100%; }
#logout { margin-left: 12px; }
tr.run-row { cursor: pointer; }
tr.run-detail pre { margin: 0; padding: 10px; background: #f7f7f7; border-radius: 6px; font-size: 12px; overflow-x: auto; max-height: 320px; }
