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

:root {
  --accent: #6B7B8D;
  --accent-light: #8A9AAC;
  --accent-dark: #4A5A6C;
  --transition: 200ms ease-out;
}

body {
  transition: background-color var(--transition), color var(--transition);
}

.dark body, body.dark-mode {
  color-scheme: dark;
}

/* Custom range slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  transition: transform 100ms ease-out;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Swatch hover */
.swatch-item {
  transition: transform var(--transition), box-shadow var(--transition);
}
.swatch-item:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  z-index: 10;
}

/* Toast */
.toast-enter {
  animation: toastIn 200ms ease-out forwards;
}
.toast-exit {
  animation: toastOut 200ms ease-out forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(16px); }
}

/* Popover */
.popover-enter {
  animation: popIn 200ms ease-out forwards;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #666;
}

/* Gradient markers */
.gradient-marker {
  width: 2px;
  height: 10px;
  position: absolute;
  bottom: -12px;
  transform: translateX(-50%);
}

/* Section reveal */
.section-reveal {
  animation: sectionIn 400ms ease-out forwards;
}
@keyframes sectionIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Table */
.data-table {
  border-collapse: collapse;
}
.data-table th, .data-table td {
  padding: 8px 12px;
  text-align: left;
  white-space: nowrap;
}

/* Sticky header blur */
.header-sticky {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Dual range slider container */
.dual-range-container {
  position: relative;
  height: 6px;
}
.dual-range-container input[type="range"] {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  pointer-events: none;
  background: transparent;
}
.dual-range-container input[type="range"]::-webkit-slider-thumb {
  pointer-events: auto;
}
.dual-range-container input[type="range"]::-moz-range-thumb {
  pointer-events: auto;
}

/* Button base */
.gl-btn {
  transition: all var(--transition);
  cursor: pointer;
  user-select: none;
}
.gl-btn:hover {
  opacity: 0.85;
}
.gl-btn:active {
  transform: scale(0.97);
}