*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #1a1d24;
  color: #e8eaed;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 14px;
}

.splat-editor {
  display: grid;
  grid-template-columns: 1fr 320px;
  grid-template-rows: auto 1fr;
  height: 100vh;
  gap: 0;
}

.splat-editor__header {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
  background: #12151a;
  border-bottom: 1px solid #2a3140;
}

.splat-editor__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.splat-editor__links {
  margin-left: auto;
  display: flex;
  gap: 10px;
  font-size: 12px;
}

.splat-editor__links a {
  color: #7ea6f0;
  text-decoration: none;
}

.splat-editor__links a:hover {
  text-decoration: underline;
}

.splat-editor__subtitle {
  margin: 0;
  color: #8b95a8;
  font-size: 13px;
}

.splat-editor__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: auto;
  background: #0f1115;
}

.splat-editor__canvas-wrap {
  position: relative;
  border: 1px solid #3a4458;
  background: #252830;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.splat-editor__canvas-wrap canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.splat-editor__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}

.splat-editor__sidebar {
  border-left: 1px solid #2a3140;
  background: #12151a;
  overflow-y: auto;
  padding: 12px;
}

.se-section {
  margin-bottom: 16px;
}

.se-section__title {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8b95a8;
}

.se-group {
  margin-bottom: 10px;
}

.se-label {
  display: block;
  margin-bottom: 4px;
  color: #b8c0cc;
  font-size: 12px;
}

.se-select,
.se-input {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #3a4458;
  border-radius: 4px;
  background: #1a1d24;
  color: #e8eaed;
  font: inherit;
}

.se-btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.se-btn {
  padding: 6px 10px;
  border: 1px solid #3a4458;
  border-radius: 4px;
  background: #1e2430;
  color: #e8eaed;
  font: inherit;
  cursor: pointer;
}

.se-btn:hover {
  background: #2a3140;
}

.se-btn.is-active {
  border-color: #5b8def;
  background: #243048;
  color: #9ec0ff;
}

.se-btn--primary {
  border-color: #4a7fd4;
  background: #2a4470;
}

.se-readout {
  padding: 8px;
  border: 1px solid #2a3140;
  border-radius: 4px;
  background: #0f1115;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  min-height: 120px;
}

.se-hint {
  margin: 6px 0 0;
  color: #6b7588;
  font-size: 11px;
  line-height: 1.4;
}

.se-status {
  margin: 0;
  color: #8b95a8;
  font-size: 12px;
}

.se-status.is-error {
  color: #f07178;
}

.se-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
}
