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

body {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

.panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s;
}

.panel select {
  padding: 10px 14px;
  font-size: 14px;
  font-family: sans-serif;
  border: none;
  border-radius: 6px;
  background: rgba(255,255,255,0.6);
  cursor: pointer;
  outline: none;
  max-width: 80%;
}

.panel select:focus {
  background: rgba(255,255,255,0.85);
}

/* color-label */
.panel { position: relative; }
.color-label {
  position: absolute;
  bottom: 2rem;
  left: 0; right: 0;
  text-align: center;
  font-family: sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  pointer-events: none;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 -1px 3px rgba(255,255,255,0.35);
  opacity: 0;
  transition: opacity 0.2s;
}
.color-label.visible { opacity: 1; }
.color-label .label-producer { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.8; }
.color-label .label-name { font-size: 0.9rem; font-weight: 700; }

/* hex-chip */
.hex-chip {
  position: absolute; top: 1.5rem; right: 1.5rem;
  padding: 4px 10px; font-family: monospace; font-size: 0.8rem;
  border: 1px solid rgba(255,255,255,0.5); border-radius: 999px;
  background: rgba(0,0,0,0.18); color: #fff; cursor: pointer;
  letter-spacing: 0.04em; transition: background 0.15s;
  backdrop-filter: blur(4px);
}
.hex-chip:hover { background: rgba(0,0,0,0.32); }
.hex-chip.copied { background: rgba(30,180,30,0.55); }

/* searchable-dropdown */
.combo { position: relative; max-width: 80%; width: 260px; }
.combo-input {
  width: 100%; padding: 10px 14px; font-size: 14px; font-family: sans-serif;
  border: none; border-radius: 6px; background: rgba(255,255,255,0.6);
  cursor: pointer; outline: none;
}
.combo-input:focus { background: rgba(255,255,255,0.85); }
.combo-list {
  display: none; position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,0.18);
  max-height: 260px; overflow-y: auto; list-style: none; z-index: 100; padding: 4px 0;
}
.combo-list.open { display: block; }
.combo-list li[role="group-label"] {
  padding: 6px 12px 2px; font-size: 0.7rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: #888; pointer-events: none;
}
.combo-list li[role="option"] {
  padding: 7px 14px; font-size: 13px; cursor: pointer;
  display: flex; align-items: center; gap: 8px;
}
.combo-list li[role="option"]:hover,
.combo-list li[role="option"].active { background: #f0f0f0; }
.combo-swatch {
  width: 14px; height: 14px; border-radius: 3px; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.08);
}

/* producer-logos */
.combo-logo {
  height: 16px; width: auto; max-width: 40px; flex-shrink: 0;
  object-fit: contain; object-position: center;
}
.label-producer {
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.label-logo {
  height: 18px; width: auto; max-width: 56px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.5));
}
