* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #111827;
  color: #e5e7eb;
  overflow: hidden;
}

header {
  padding: 16px 24px;
  border-bottom: 1px solid #1f2937;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

header h1 {
  font-size: 16px;
  font-weight: 600;
  color: #f3f4f6;
}

header .subtitle {
  font-size: 12px;
  color: #6b7280;
}

.controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 24px;
  border-bottom: 1px solid #1f2937;
  background: #0f172a;
}

.controls label {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #9ca3af;
  cursor: pointer;
  white-space: nowrap;
}

.controls input[type="checkbox"] {
  accent-color: #3b82f6;
}

.controls .group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.controls .actions {
  display: flex;
  gap: 4px;
}

.controls .actions button {
  background: none;
  border: 1px solid #374151;
  color: #9ca3af;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 4px;
  cursor: pointer;
}

.controls .actions button:hover {
  background: #1f2937;
  color: #e5e7eb;
}

.color-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

#main {
  width: 100%;
  height: calc(100vh - 150px);
  min-height: 400px;
  padding: 0 24px;
}

.error {
  padding: 40px;
  text-align: center;
  color: #ef4444;
  font-size: 14px;
}

.weight-input {
  background: #1f2937;
  border: 1px solid #374151;
  color: #e5e7eb;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  width: 60px;
  outline: none;
}
.weight-input:focus {
  border-color: #3b82f6;
}

@media (max-width: 768px) {
  .controls {
    padding: 8px 12px;
    gap: 6px;
  }
  .controls label { font-size: 11px; }
  #main { height: calc(100vh - 170px); }
}
