html, body {
  height: 100%;
  margin: 0;
  background: #12141a;
  color: #e8e8ec;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.viewer {
  display: flex;
  height: 100vh;
  width: 100vw;
}

.viewer__canvas-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.viewer__canvas-wrap canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.viewer__loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #12141a;
  font-size: 1.1rem;
  color: #9aa0ac;
}

.viewer__loading[hidden] {
  display: none;
}

.viewer__hint {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.55);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #cfd3da;
  pointer-events: none;
}

.viewer__panel {
  flex: 0 0 320px;
  background: #1a1d24;
  border-left: 1px solid #2a2e38;
  padding: 24px;
  overflow-y: auto;
  box-sizing: border-box;
}

.viewer__panel h1 {
  font-size: 1.25rem;
  margin: 0 0 4px;
}

.viewer__subtitle {
  color: #9aa0ac;
  font-size: 0.8rem;
  margin: 0 0 24px;
}

.viewer__section {
  margin-bottom: 24px;
}

.viewer__section h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9aa0ac;
  margin: 0 0 12px;
}

.viewer__part-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
}

.viewer__part-list li {
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease;
}

.viewer__part-list li:hover {
  background: #23272f;
}

.viewer__part-list li.is-selected {
  background: #2c5cff33;
  color: #7fa0ff;
}

.viewer__part-list li .swatch-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex: 0 0 auto;
}

.viewer__panel input[type="color"] {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 8px;
  background: none;
  cursor: pointer;
  margin-bottom: 12px;
}

.viewer__swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.viewer__swatches button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 0;
}

.viewer__reset {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #2a2e38;
  background: #23272f;
  color: #e8e8ec;
  cursor: pointer;
  font-size: 0.85rem;
}

.viewer__reset:hover {
  background: #2a2e38;
}

@media (max-width: 720px) {
  .viewer {
    flex-direction: column;
  }

  .viewer__panel {
    flex: 0 0 auto;
    border-left: none;
    border-top: 1px solid #2a2e38;
  }
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
