/* Keep form controls consistent in Safari, Chromium and Firefox. */
button,
input:not([type=checkbox]):not([type=radio]):not([type=range]),
select,
textarea {
  -webkit-appearance: none;
  appearance: none;
}
input, select, textarea { color-scheme: dark; }
:where(input:not([type=checkbox]):not([type=radio]):not([type=range])), textarea {
  box-shadow: none;
}
input[type=search]::-webkit-search-decoration,
input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-results-button,
input[type=search]::-webkit-search-results-decoration {
  -webkit-appearance: none;
  display: none;
}
input[type=number] { -moz-appearance: textfield; appearance: textfield; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.search-clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 8px;
  color: #aaa5aa;
}
.search-clear:hover { background: #ffffff0a; color: #f3efed; }
.search-clear svg { width: 18px; height: 18px; }
.search,.genre-search { gap: 10px; }
.search:has(.search-clear:not([hidden])),.genre-search:has(.search-clear:not([hidden])) { padding-right: 4px; }
.control-search { position: relative; }
.admin-panel .control-search input { padding-right: 48px; }
.control-search .search-clear { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); }
.admin-panel .search-clear { min-height: 44px; }

/* The input has a generous touch area; only its track is four pixels tall. */
.player input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  height: 28px;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
}
.player input[type=range]::-webkit-slider-runnable-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg,var(--accent) var(--range-progress,0%),#56504d var(--range-progress,0%));
}
.player input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}
.player input[type=range]::-moz-range-track {
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg,var(--accent) var(--range-progress,0%),#56504d var(--range-progress,0%));
}
.player input[type=range]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
}
.player input[type=range]:disabled { cursor: default; }
.admin-panel .admin-sales-check input[type=checkbox],.admin-only .admin-panel .admin-sales-check input[type=checkbox],.account-check input[type=checkbox] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  min-width: 20px;
  max-width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  padding: 0;
  border: 1px solid #7c818d;
  border-radius: 5px;
  background: #23262d;
  cursor: pointer;
}
.admin-panel .admin-sales-check input[type=checkbox]:checked,.admin-only .admin-panel .admin-sales-check input[type=checkbox]:checked,.account-check input[type=checkbox]:checked {
  border-color: #ffa07b;
  background: #ffa07b url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23241810' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4 4 10-10'/%3E%3C/svg%3E") center / 16px 16px no-repeat;
}
.admin-sales-check,.account-check { min-height: 44px; cursor: pointer; }
.admin-progress-area progress { -webkit-appearance: none; appearance: none; }
.admin-panel details summary { list-style: none; display: flex; align-items: center; gap: 12px; min-height: 44px; }
.admin-panel details summary::-webkit-details-marker { display: none; }
.admin-panel details summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin: -4px 4px 0 0;
  flex-shrink: 0;
}
.admin-panel details[open] summary::after { transform: rotate(225deg); margin-top: 4px; }
.admin-panel .admin-dialog-close { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; }
.admin-ui-icon { width: 18px; height: 18px; vertical-align: middle; }
.admin-lock-symbol svg,.admin-upload-symbol svg { width: 26px; height: 26px; }
.admin-upload-form[aria-busy=true] #admin-publish svg { display: none; }
.manifesto-symbol svg { width: 42px; height: 42px; }
@media (max-width: 900px) {
  .admin-panel input:not([type=checkbox]):not([type=radio]),
  .admin-panel select,
  .admin-only .admin-panel input:not([type=checkbox]):not([type=radio]),
  .admin-only .admin-panel select,
  .admin-edit-dialog input,
  .admin-edit-dialog select { font-size: 16px; }
}
@media (max-width: 720px) {
  .player .main-play { width: 44px; height: 44px; }
  .track-art { min-width: 44px; min-height: 44px; }
  .text-button,.icon-button,.genre-chip,.admin-cell-actions button { min-height: 44px; }
  .icon-button { min-width: 44px; }
  .player #seek,.progress { height: 44px; }
  .progress { bottom: 0; }
}
@media (forced-colors: active) {
  .admin-panel .admin-sales-check input[type=checkbox],.admin-only .admin-panel .admin-sales-check input[type=checkbox],.account-check input[type=checkbox],
  .player input[type=range],select { -webkit-appearance: auto; appearance: auto; }
  .admin-panel .admin-sales-check input[type=checkbox]:checked,.admin-only .admin-panel .admin-sales-check input[type=checkbox]:checked,.account-check input[type=checkbox]:checked { background-image: none; }
}
