:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --panel: #ffffff;
  --border: #d5dbe5;
  --text: #1a1d24;
  --muted: #5f6775;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --success: #15803d;
  --error: #b91c1c;
  --viewer-bg: radial-gradient(circle at center, #e8edf4 0%, #f4f6f9 70%);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}

a.button,
.actions a {
  color: white;
  background: var(--accent);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

a.button:hover,
.actions a:hover {
  background: var(--accent-hover);
}

a.button.secondary,
.actions a.secondary {
  background: #e8ecf3;
  color: var(--text);
}

a.button.secondary:hover,
.actions a.secondary:hover {
  background: #dde3ec;
}

.webgl-notice {
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
  background: #eef4ff;
  border: 1px solid #c7d9f8;
}

.webgl-notice--error {
  color: #991b1b;
  background: #fef2f2;
  border-color: #fecaca;
}

.webgl-notice strong {
  color: var(--text);
}

.webgl-notice--error strong {
  color: #7f1d1d;
}

model-viewer {
  background: var(--viewer-bg);
}
