/* Pickit ColorPicker Styles */
/* Variables */
/* Screen reader only */
.colorpicker-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}
/* Container */
.colorpicker-container {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  -webkit-box-shadow: 0 4px 12px rgba(0,0,0,0.15);
          box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  padding: 16px;
  width: 280px;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}
.colorpicker-container:focus-within {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.colorpicker-container.colorpicker-inline {
  width: 100%;
  max-width: 100%;
  -webkit-box-shadow: none;
          box-shadow: none;
}
.colorpicker-container.colorpicker-inline .colorpicker-saturation {
  height: 200px;
}
.colorpicker-container.colorpicker-presets-only {
  width: auto;
  min-width: 200px;
  max-width: 400px;
}
.colorpicker-container.colorpicker-presets-only .colorpicker-presets {
  margin: 0;
  padding: 0;
}
.colorpicker-container.colorpicker-presets-only.colorpicker-inline {
  max-width: 100%;
}
/* Content */
.colorpicker-content {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 16px;
}
/* Saturation/Lightness Box */
.colorpicker-saturation {
  position: relative;
  width: 100%;
  height: 180px;
  background: -webkit-gradient(linear, left bottom, left top, from(#000), to(transparent)), -webkit-gradient(linear, left top, right top, from(#fff), to(transparent));
  background: linear-gradient(to top, #000, transparent), linear-gradient(to right, #fff, transparent);
  border-radius: 6px;
  cursor: crosshair;
  overflow: hidden;
  -ms-touch-action: none;
      touch-action: none;
}
.colorpicker-saturation:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.colorpicker-saturation:focus:not(:focus-visible) {
  outline: none;
}
.colorpicker-saturation-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}
.colorpicker-saturation-pointer {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 3px solid #fff;
  border-radius: 50%;
  -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(0,0,0,0.1);
          box-shadow: 0 2px 4px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(0,0,0,0.1);
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  pointer-events: none;
  -webkit-transition: -webkit-transform 0.1s ease;
  transition: -webkit-transform 0.1s ease;
  transition: transform 0.1s ease;
  transition: transform 0.1s ease, -webkit-transform 0.1s ease;
}
@media (pointer: coarse) {
  .colorpicker-saturation-pointer {
    width: 28px;
    height: 28px;
    border-width: 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .colorpicker-saturation-pointer {
    -webkit-transition: none;
    transition: none;
  }
}
/* Controls Section */
.colorpicker-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}
.colorpicker-sliders {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 12px;
}
.colorpicker-slider-group {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
}
.colorpicker-label {
  font-size: 12px;
  font-weight: 500;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
/* Range Sliders */
.colorpicker-slider {
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  -ms-touch-action: none;
      touch-action: none;
}
@media (pointer: coarse) {
  .colorpicker-slider {
    height: 12px;
  }
}
.colorpicker-slider:focus {
  -webkit-box-shadow: 0 0 0 2px #3b82f6;
          box-shadow: 0 0 0 2px #3b82f6;
}
.colorpicker-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #3b82f6;
  cursor: pointer;
  -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
          box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  -webkit-transition: -webkit-transform 0.1s ease;
  transition: -webkit-transform 0.1s ease;
  transition: transform 0.1s ease;
  transition: transform 0.1s ease, -webkit-transform 0.1s ease;
}
@media (pointer: coarse) {
  .colorpicker-slider::-webkit-slider-thumb {
    width: 28px;
    height: 28px;
    border-width: 3px;
  }
}
.colorpicker-slider::-webkit-slider-thumb:hover {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}
.colorpicker-slider::-webkit-slider-thumb:active {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}
.colorpicker-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #3b82f6;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  -webkit-transition: -webkit-transform 0.1s ease;
  transition: -webkit-transform 0.1s ease;
  transition: transform 0.1s ease;
  transition: transform 0.1s ease, -webkit-transform 0.1s ease;
  background: #fff;
  border: 2px solid #3b82f6;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: transform 0.1s ease;
}
@media (pointer: coarse) {
  .colorpicker-slider::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-width: 3px;
  }
}
.colorpicker-slider::-moz-range-thumb:hover {
  transform: scale(1.1);
}
.colorpicker-slider::-moz-range-thumb:active {
  transform: scale(0.95);
}
/* Hue Slider */
.colorpicker-hue-slider {
  background: -webkit-gradient(linear, left top, right top, from(#f00), color-stop(#ff0), color-stop(#0f0), color-stop(#0ff), color-stop(#00f), color-stop(#f0f), to(#f00));
  background: linear-gradient(to right, #f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00);
}
/* Alpha Slider */
.colorpicker-alpha-slider {
  background: linear-gradient(to right, transparent, currentColor), linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 100%, 10px 10px, 10px 10px, 10px 10px, 10px 10px;
  background-position: 0 0, 0 0, 0 5px, 5px -5px, -5px 0px;
}
/* Saturation & Lightness Sliders (backgrounds set dynamically in JS) */
/* Slider-only mode layout */
.colorpicker-sliders-only {
  gap: 12px;
}
/* Controls Container - im Slider-Modus vertikal */
.colorpicker-controls {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
}
.colorpicker-controls:has(.colorpicker-sliders:not(.colorpicker-sliders-only)) {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
}
.colorpicker-controls:has(.colorpicker-sliders-only) {
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}
.colorpicker-controls:has(.colorpicker-sliders-only) .colorpicker-preview {
  width: 100%;
  height: 48px;
  min-height: 48px;
  -webkit-box-ordinal-group: 0;
      -ms-flex-order: -1;
          order: -1;
}
.colorpicker-controls:has(.colorpicker-sliders-only) .colorpicker-preview .colorpicker-preview-color {
  min-height: 48px;
}
/* Preview */
.colorpicker-preview {
  width: 40px;
  min-width: 40px;
  height: 40px;
  min-height: 40px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.colorpicker-preview-color {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  border-radius: 6px;
  border: 2px solid #e5e7eb;
  -webkit-box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
          box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
  position: relative;
}
.colorpicker-preview-color::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 10px 10px;
  background-position: 0 0, 0 5px, 5px -5px, -5px 0px;
  border-radius: 4px;
  z-index: -1;
}
/* Input Wrapper (inside picker) */
.colorpicker-input-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 4px;
}
.colorpicker-input-row {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 8px;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}
.colorpicker-input {
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 8px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 14px;
  color: #1f2937;
  background: #fff;
  -webkit-transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: border-color 0.2s ease, -webkit-box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
}
.colorpicker-input:focus {
  outline: none;
  border-color: #3b82f6;
  -webkit-box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
          box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.colorpicker-input::-webkit-input-placeholder {
  color: #9ca3af;
}
.colorpicker-input::-moz-placeholder {
  color: #9ca3af;
}
.colorpicker-input:-ms-input-placeholder {
  color: #9ca3af;
}
.colorpicker-input::-ms-input-placeholder {
  color: #9ca3af;
}
.colorpicker-input::placeholder {
  color: #9ca3af;
}
.colorpicker-eyedropper-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
@media (pointer: coarse) {
  .colorpicker-eyedropper-btn {
    width: 44px;
    height: 44px;
  }
}
.colorpicker-eyedropper-btn:hover {
  background: #f3f4f6;
  border-color: #3b82f6;
}
.colorpicker-eyedropper-btn:active {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}
.colorpicker-eyedropper-btn:focus {
  outline: none;
  border-color: #3b82f6;
  -webkit-box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
          box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.colorpicker-eyedropper-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}
.colorpicker-system-picker-btn {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 36px;
  height: 36px;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #1f2937;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  -ms-flex-negative: 0;
      flex-shrink: 0;
}
.colorpicker-system-picker-btn:hover {
  background: #f3f4f6;
  border-color: #3b82f6;
}
.colorpicker-system-picker-btn:active {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}
.colorpicker-system-picker-btn:focus {
  outline: none;
  border-color: #3b82f6;
  -webkit-box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
          box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.colorpicker-system-picker-btn svg {
  width: 20px;
  height: 20px;
  display: block;
}
/* Presets */
.colorpicker-presets {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
  padding-top: 4px;
}
.colorpicker-presets.colorpicker-presets-list {
  grid-template-columns: 1fr;
  gap: 6px;
}
.colorpicker-preset {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}
@media (pointer: coarse) {
  .colorpicker-preset {
    min-height: 44px;
  }
}
.colorpicker-preset::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 6px 6px;
  background-position: 0 0, 0 3px, 3px -3px, -3px 0px;
  z-index: -1;
}
.colorpicker-preset:hover {
  -webkit-transform: scale(1.15);
          transform: scale(1.15);
  border-color: #3b82f6;
  -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.15);
          box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
@media (pointer: coarse) {
  .colorpicker-preset:hover {
    -webkit-transform: scale(1.05);
            transform: scale(1.05);
  }
}
.colorpicker-preset:focus {
  outline: none;
  border-color: #3b82f6;
  -webkit-box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
          box-shadow: 0 0 0 2px rgba(59,130,246,0.3);
}
.colorpicker-preset:active {
  -webkit-transform: scale(0.95);
          transform: scale(0.95);
}
/* List view for presets */
.colorpicker-preset-list-item {
  aspect-ratio: unset;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #f9fafb;
  min-height: 48px;
}
@media (pointer: coarse) {
  .colorpicker-preset-list-item {
    min-height: 56px;
    padding: 12px;
  }
}
.colorpicker-preset-list-item:hover {
  -webkit-transform: none;
          transform: none;
  background: #f3f4f6;
}
.colorpicker-preset-list-item:focus {
  background: #f3f4f6;
}
.colorpicker-preset-color {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  position: relative;
}
.colorpicker-preset-color::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 6px 6px;
  background-position: 0 0, 0 3px, 3px -3px, -3px 0px;
  border-radius: 6px;
  z-index: -1;
}
.colorpicker-preset-label {
  font-size: 14px;
  font-weight: 500;
  color: #1f2937;
  text-align: left;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
}
/* Input Group with Preview */
.colorpicker-input-group {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  width: 100%;
  max-width: 400px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  background: #fff;
}
.colorpicker-input-group:focus-within {
  border-color: #3b82f6;
  -webkit-box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
          box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.colorpicker-input-preview {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 48px;
  min-width: 48px;
  border-right: 2px solid #e5e7eb;
  position: relative;
  cursor: pointer;
  -webkit-transition: background-color 0.2s ease;
  transition: background-color 0.2s ease;
}
.colorpicker-input-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
  z-index: -1;
}
input.colorpicker-has-preview {
  border: none;
  -webkit-box-flex: 1;
      -ms-flex: 1;
          flex: 1;
  padding: 10px 14px;
  font-size: 15px;
  font-family: 'Monaco', 'Menlo', monospace;
  background: transparent;
}
input.colorpicker-has-preview:focus {
  outline: none;
  -webkit-box-shadow: none;
          box-shadow: none;
}
/* Compact Button */
.colorpicker-compact-button {
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  width: 40px;
  height: 40px;
  padding: 4px;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  -webkit-transition: all 0.2s ease;
  transition: all 0.2s ease;
  vertical-align: middle;
}
.colorpicker-compact-button:hover {
  border-color: #3b82f6;
  -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.1);
          box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  -webkit-transform: translateY(-1px);
          transform: translateY(-1px);
}
.colorpicker-compact-button:active {
  -webkit-transform: translateY(0) scale(0.98);
          transform: translateY(0) scale(0.98);
}
.colorpicker-compact-button:focus {
  outline: none;
  border-color: #3b82f6;
  -webkit-box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
          box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.colorpicker-compact-button svg {
  width: 20px;
  height: 20px;
  display: block;
  color: #1f2937;
}
.colorpicker-compact-button:focus {
  outline: none;
  border-color: #3b82f6;
  -webkit-box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
          box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
}
.colorpicker-compact-button:active {
  -webkit-transform: translateY(0);
          transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .colorpicker-compact-button {
    -webkit-transition: none;
    transition: none;
  }
  .colorpicker-compact-button:hover {
    -webkit-transform: none;
            transform: none;
  }
  .colorpicker-compact-button:active {
    -webkit-transform: none;
            transform: none;
  }
}
.colorpicker-compact-preview {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
  position: relative;
  overflow: hidden;
}
.colorpicker-compact-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
  background-size: 6px 6px;
  background-position: 0 0, 0 3px, 3px -3px, -3px 0px;
  z-index: -1;
}
/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .colorpicker-container {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
  }
  .colorpicker-compact-button {
    background: #1f2937;
    border-color: #374151;
  }
  .colorpicker-compact-button:hover {
    border-color: #60a5fa;
    -webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.3);
            box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  }
  .colorpicker-compact-button:focus {
    border-color: #60a5fa;
    -webkit-box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
            box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
  }
  .colorpicker-label {
    color: #9ca3af;
  }
  .colorpicker-input {
    background: #111827;
    border-color: #374151;
    color: #f9fafb;
  }
  .colorpicker-input:focus {
    border-color: #60a5fa;
    -webkit-box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
            box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
  }
  .colorpicker-preview-color {
    border-color: #374151;
  }
  .colorpicker-eyedropper-btn {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
  }
  .colorpicker-eyedropper-btn:hover {
    background: #111827;
    border-color: #60a5fa;
  }
  .colorpicker-eyedropper-btn:focus {
    border-color: #60a5fa;
    -webkit-box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
            box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
  }
  .colorpicker-system-picker-btn {
    background: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
  }
  .colorpicker-system-picker-btn:hover {
    background: #111827;
    border-color: #60a5fa;
  }
  .colorpicker-system-picker-btn:focus {
    border-color: #60a5fa;
    -webkit-box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
            box-shadow: 0 0 0 3px rgba(96,165,250,0.2);
  }
  .colorpicker-slider:focus {
    -webkit-box-shadow: 0 0 0 2px #60a5fa;
            box-shadow: 0 0 0 2px #60a5fa;
  }
  .colorpicker-slider::-webkit-slider-thumb {
    border-color: #60a5fa;
  }
  .colorpicker-slider::-moz-range-thumb {
    border-color: #60a5fa;
  }
  .colorpicker-preset:hover {
    border-color: #60a5fa;
  }
  .colorpicker-preset:focus {
    border-color: #60a5fa;
  }
  .colorpicker-preset-list-item {
    background: #1f2937;
  }
  .colorpicker-preset-list-item:hover {
    background: #111827;
    border-color: #374151;
  }
  .colorpicker-preset-list-item:focus {
    background: #111827;
    border-color: #374151;
  }
  .colorpicker-preset-label {
    color: #e5e7eb;
  }
  .colorpicker-input-group {
    background: #1f2937;
    border-color: #374151;
  }
  .colorpicker-input-group:focus-within {
    border-color: #60a5fa;
  }
  .colorpicker-input-preview {
    border-right-color: #374151;
  }
  input.colorpicker-has-preview {
    color: #f9fafb;
  }
  input.colorpicker-has-preview:focus {
    -webkit-box-shadow: 0 0 0 2px rgba(96,165,250,0.3);
            box-shadow: 0 0 0 2px rgba(96,165,250,0.3);
  }
}
/* High Contrast Mode */
@media (prefers-contrast: high) {
  .colorpicker-container {
    border-width: 2px;
  }
  .colorpicker-saturation {
    outline: 2px solid currentColor;
  }
  .colorpicker-saturation-pointer {
    border-width: 4px;
  }
  .colorpicker-preset {
    border-width: 3px;
  }
}
/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .colorpicker-slider::-webkit-slider-thumb {
    -webkit-transition: none;
    transition: none;
  }
  .colorpicker-slider::-moz-range-thumb {
    -webkit-transition: none;
    transition: none;
  }
  .colorpicker-preset {
    -webkit-transition: none;
    transition: none;
  }
  .colorpicker-input {
    -webkit-transition: none;
    transition: none;
  }
  .colorpicker-saturation-pointer {
    -webkit-transition: none;
    transition: none;
  }
}
/* Animation */
.colorpicker-container:not([style*="display: none"]) {
  -webkit-animation: colorpicker-fadeIn 0.2s ease-out;
          animation: colorpicker-fadeIn 0.2s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .colorpicker-container:not([style*="display: none"]) {
    -webkit-animation: none;
            animation: none;
  }
}
@-webkit-keyframes colorpicker-fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
@keyframes colorpicker-fadeIn {
  from {
    opacity: 0;
    -webkit-transform: translateY(-8px);
            transform: translateY(-8px);
  }
  to {
    opacity: 1;
    -webkit-transform: translateY(0);
            transform: translateY(0);
  }
}
