:root {
  color-scheme: dark;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #101216;
  color: #e6e8ef;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
}

header h1 {
  margin: 0 0 4px;
}

header p {
  margin: 0 0 16px;
  color: #b8bfcc;
}

.controls {
  background: #171a22;
  border: 1px solid #2b3040;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}

.group {
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.slider-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

output {
  color: #b8bfcc;
}

label {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
  gap: 4px;
}

input,
select,
button {
  background: #0f1219;
  color: #f2f4fa;
  border: 1px solid #32384a;
  border-radius: 8px;
  padding: 8px;
}

input[type="range"] {
  padding: 0;
}

.actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

button {
  cursor: pointer;
}

button:hover {
  border-color: #5c76ff;
}

#status {
  margin: 10px 0 0;
  color: #99a4ba;
}

.viewer {
  background: #171a22;
  border: 1px solid #2b3040;
  border-radius: 12px;
  padding: 10px;
}

#simCanvas {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: block;
  background: #0b0d12;
  border-radius: 8px;
}