/* Preview */
.color-preview-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.color-picker {
  width: 56px;
  height: 56px;
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  cursor: pointer;
  background: none;
}
.color-swatch {
  flex: 1;
  height: 56px;
  border-radius: 8px;
  border: 1px solid #ddd;
  transition: background 0.1s;
}

/* Conversion rows */
.convert-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.convert-row:last-child { margin-bottom: 0; }

.unit-input {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 15px;
  font-family: 'Consolas', monospace;
  text-align: right;
  transition: border-color 0.15s;
}
.unit-input:focus {
  outline: none;
  border-color: #0078d4;
}
.color-text-input { text-align: left; letter-spacing: 0.5px; }
.color-text-input[readonly] { background: #f8f8f8; color: #555; }

.unit-label {
  width: 130px;
  font-size: 13px;
  color: #555;
  flex-shrink: 0;
}
.unit-symbol {
  width: 52px;
  font-size: 12px;
  color: #999;
  text-align: right;
  flex-shrink: 0;
  font-family: 'Consolas', monospace;
}

.divider {
  border: none;
  border-top: 1px dashed #eee;
  margin: 10px 0;
}

/* Copy button */
.btn-copy {
  background: #0078d4;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s;
}

/* CJK labels are shorter — narrower width (was per-language style.css) */
:lang(ko) .unit-label,
:lang(ja) .unit-label { width: 110px; }
