/* @mql5/core-band-touch-alerts — 알림음 설정 드롭다운.
   껍데기(.chart-toggle-menu / .chart-toggle-list)는 core-display-toggle 의 CSS 를
   그대로 쓰고, 여기서는 리스트 안쪽 컨트롤 행만 정의한다.
   두 앱에 <link rel="stylesheet" href="/packages/core-band-touch-alerts/src/alarm-sound-menu.css"> */

.chart-toggle-list.alarm-sound-list {
  min-width: 260px;
  padding: 6px;
  gap: 2px;
}

.alarm-sound-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 8px;
  border-radius: 4px;
}

.alarm-sound-row + .alarm-sound-row {
  border-top: 1px solid rgba(127, 127, 127, 0.22);
}

.alarm-sound-row-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.alarm-sound-label {
  font-weight: 600;
  white-space: nowrap;
}

/* 파일명은 길 수 있다 — 남는 폭만 쓰고 말줄임. 패널이 가로로 늘어나면 안 된다. */
.alarm-sound-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  opacity: 0.68;
  text-align: right;
}

.alarm-sound-name.is-custom {
  opacity: 1;
  color: #e3b341; /* ALARM_COLOR — 기본음이 아니라는 신호 */
}

.alarm-sound-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}

.alarm-sound-btn {
  flex: 1 1 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
  border: 1px solid rgba(127, 127, 127, 0.35);
  border-radius: 3px;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.alarm-sound-btn:hover:not(:disabled) {
  border-color: rgba(127, 127, 127, 0.7);
  background: rgba(127, 127, 127, 0.14);
}

.alarm-sound-btn:disabled {
  opacity: 0.4;
  cursor: default;
}

/* 실제 <input type=file> 은 감추고 label 을 버튼처럼 쓴다(브라우저 기본 위젯이
   패널 폭을 깨뜨리기 때문). label[for] 로 여는 것이라 접근성은 유지된다. */
.alarm-sound-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.alarm-sound-note {
  padding: 6px 8px 2px;
  font-size: 10px;
  line-height: 1.45;
  opacity: 0.6;
}
