* { box-sizing: border-box; }
body { font-family: system-ui, sans-serif; margin: 0; padding: 1rem 2rem; color: #222; background: #fafafa; }
header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; border-bottom: 1px solid #ddd; padding-bottom: .5rem; margin-bottom: 1rem; }
header h1 { margin: 0; font-size: 1.4rem; }
header a { text-decoration: none; color: #444; margin-right: .5rem; }
header nav { flex: 1; }
header nav a { color: #2563eb; font-size: .95rem; }
.crumb { font-family: ui-monospace, monospace; font-size: .9rem; margin-bottom: 1rem; }
.crumb a { color: #2563eb; text-decoration: none; }
.crumb span { color: #666; }
main { max-width: 980px; margin: 0 auto; }
.logout button { background: none; border: 1px solid #ccc; padding: .3rem .7rem; border-radius: 4px; cursor: pointer; }
.login { max-width: 320px; margin: 4rem auto; padding: 1.5rem; background: white; border: 1px solid #ddd; border-radius: 6px; }
.login form { display: flex; flex-direction: column; gap: 1rem; }
.login input { width: 100%; padding: .5rem; font-size: 1rem; border: 1px solid #ccc; border-radius: 4px; }
.login button { padding: .6rem; background: #2563eb; color: white; border: 0; border-radius: 4px; font-size: 1rem; cursor: pointer; }

table { width: 100%; border-collapse: collapse; background: white; border: 1px solid #ddd; border-radius: 6px; overflow: hidden; }
th, td { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid #eee; vertical-align: top; }
th { background: #f3f4f6; font-weight: 600; font-size: .9rem; }
td.cmd-name { font-family: ui-monospace, monospace; }
td.cmd-name a { color: #2563eb; text-decoration: none; }
td.cmd-name a:hover { text-decoration: underline; }
.btn-run { text-decoration: none; padding: .3rem .7rem; background: #2563eb; color: white; border-radius: 4px; font-size: .85rem; }

#run-form { display: grid; grid-template-columns: max-content 1fr; gap: .6rem 1rem; margin: 1rem 0; max-width: 700px; }
#run-form label { align-self: center; font-size: .9rem; }
#run-form .desc { color: #666; font-size: .8rem; grid-column: 2; margin-top: -.4rem; }
#run-form input[type=text], #run-form input[type=number], #run-form input[type=date], #run-form select { padding: .4rem; border: 1px solid #ccc; border-radius: 4px; font-size: .95rem; }

.actions { display: flex; gap: .8rem; align-items: center; margin-bottom: 1rem; }
.actions button { padding: .5rem 1.2rem; border: 0; border-radius: 4px; cursor: pointer; font-size: .95rem; }
#run-btn { background: #16a34a; color: white; }
#run-btn:disabled { background: #9ca3af; cursor: not-allowed; }
#kill-btn { background: #dc2626; color: white; }
#status { color: #555; font-size: .9rem; }

#log { background: #111; color: #d4d4d4; font-family: ui-monospace, monospace; font-size: .85rem; padding: 1rem; border-radius: 6px; height: 60vh; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
#log .err { color: #f87171; }
#log .meta { color: #9ca3af; }
#log .exit { color: #34d399; font-weight: bold; }
#log a { color: #60a5fa; text-decoration: underline; }
#log a:hover { color: #93c5fd; }

#jobs { margin-bottom: 1rem; }
#jobs .job { display: inline-block; background: white; border: 1px solid #ddd; padding: .3rem .6rem; border-radius: 4px; margin-right: .5rem; font-size: .85rem; }
#jobs .job a { color: #2563eb; text-decoration: none; }
