body { font-family: system-ui, sans-serif; margin: 24px; background: #f8f9fa; }
.panel { border: 1px solid #ddd; padding: 16px; margin-bottom: 24px; border-radius: 8px; background: white; }
label { display: block; margin: 12px 0; font-weight: 500; color: #333; }
input[type="text"], input[type="number"], textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}
textarea {
  font-family: ui-monospace, monospace;
  font-size: 13px;
  resize: vertical;
}
textarea::placeholder { color: #999; font-size: 12px; }
button {
  background: #0066cc;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
}
button:hover { background: #0052a3; }

/* Status Grid Layout */
.status-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 24px;
  margin-top: 16px;
}
.status-column { min-width: 0; }

/* Workers */
#workers-detail { margin: 12px 0; }
.worker-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background: #f8f9fa;
}
.worker-card.status-working {
  border-left: 4px solid #0066cc;
  background: #e3f2fd;
}
.worker-card.status-idle {
  border-left: 4px solid #999;
  background: #f5f5f5;
}
.worker-card.status-lost {
  border-left: 4px solid #d32f2f;
  background: #ffebee;
}
.worker-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.worker-status {
  font-weight: 600;
  font-size: 13px;
}
.worker-info {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}
.worker-info div {
  margin: 4px 0;
}
.error-text {
  color: #d32f2f;
  font-weight: 600;
}

/* Heatmap */
.heat-grid { display: grid; gap: 4px; }
.task-row { margin-bottom: 8px; }
.badge { display: inline-block; padding: 2px 6px; border-radius: 6px; background: #eee; margin-right: 6px; }
.cell { width: 16px; height: 16px; border-radius: 3px; display: inline-block; }
.cell.done { background: #47c168; }
.cell.pending { background: #f5b642; }
.cell.todo { background: #eee; }

/* Event Log */
.logs {
  background: #0b1020;
  color: #e7e7e7;
  padding: 12px;
  border-radius: 8px;
  height: 240px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  white-space: pre-wrap;
  line-height: 1.5;
}
