.player-cue {
  min-width: 0;
  color: #f3dc9e;
  font-size: .875rem;
  font-weight: 700;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.player-cue[data-urgency='soon'] { color: #ffd692; }

.settings-gear {
  display: grid;
  flex: 0 0 17px;
  place-items: center;
  width: 17px;
  height: 17px;
  background: #edce86;
  clip-path: polygon(34% 0, 65% 0, 70% 14%, 85% 13%, 99% 39%, 90% 50%, 99% 62%, 85% 88%, 70% 85%, 65% 100%, 35% 100%, 30% 85%, 15% 88%, 0 62%, 10% 50%, 0 39%, 15% 13%, 30% 14%);
}

.settings-gear::after {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #19291f;
  content: "";
}

#cue-settings-open {
  gap: 8px;
  min-height: 44px;
  -webkit-tap-highlight-color: #ffd2682e;
}

.cue-settings-dialog {
  width: min(480px, calc(100% - 2 * max(12px, var(--safe-inline))));
  max-height: calc(100dvh - var(--safe-top) - var(--safe-bottom) - 20px);
  border-color: #9a8057;
  border-radius: 10px;
  scroll-padding-block: 96px 14px;
  background: linear-gradient(156deg, #233a2e 0, #182d24 23rem, #182d24 100%);
}

.cue-settings-fixed {
  position: sticky;
  inset-block-start: 0;
  z-index: 3;
  background: #24392e;
}

.cue-settings-dialog .private-dialog-top {
  position: static;
  padding: 10px 17px;
  border-bottom-color: #807050;
  background: transparent;
}

.cue-settings-dialog .private-dialog-top h2 {
  font-size: clamp(1.6rem, 6.4vw, 2.1rem);
  color: #f7e8ba;
}

.cue-settings-dialog .private-dialog-top .button {
  flex: 0 0 auto;
  min-width: 64px;
  min-height: 44px;
}

.cue-settings-attention {
  padding: 7px 17px;
  border-bottom: 1px solid #9e754d;
  color: #fcdda0;
  background: #53432f;
  font-size: .81rem;
}

.cue-settings-content { padding: 0 17px 11px; }

.cue-settings-group {
  padding-block: 12px;
  border-block-end: 1px solid #4e6657;
}

.cue-settings-group:last-of-type { border: 0; }

.cue-group-title {
  margin-bottom: 4px;
  color: #d8b878;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .075em;
}

.cue-languages { display: flex; flex-wrap: wrap; gap: 6px; }

.cue-language, .cue-help-link {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 4px;
  color: #ebead7;
  background: transparent;
}

.cue-language { padding-inline: 13px; }

.cue-language[aria-pressed='true'] {
  border-color: #ad9059;
  color: #f8df9e;
  background: #344a3c;
}

.cue-setting {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 45px;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding: 7px 0;
  cursor: pointer;
}

.cue-setting-copy { display: grid; gap: 2px; }
.cue-setting-title { color: #f4edd4; font-size: .94rem; line-height: 1.3; }
.cue-setting-hint { color: #c2cbbb; font-size: .79rem; line-height: 1.35; }
.cue-setting:has(:disabled) { cursor: default; }
.cue-setting:has(:disabled) .cue-setting-title { color: #c2cbbb; }

.cue-switch { position: relative; display: grid; place-items: center; min-height: 35px; }
.cue-setting-check { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; }

.cue-setting-rail {
  display: flex;
  align-items: center;
  width: 41px;
  height: 23px;
  padding-inline: 3px;
  border: 1px solid #6f8272;
  border-radius: 20px;
  background: #23372e;
  pointer-events: none;
}

.cue-setting-rail::after { width: 15px; height: 15px; border-radius: 50%; background: #dae4d0; content: ""; }
.cue-setting-check:checked + .cue-setting-rail { justify-content: flex-end; border-color: #f0cb7b; background: #c59e51; }
.cue-setting-check:checked + .cue-setting-rail::after { background: #fff2ce; }
.cue-setting-check:disabled + .cue-setting-rail { opacity: .45; }
.cue-setting-check:focus-visible + .cue-setting-rail { outline: 2px solid #ffd783; outline-offset: 4px; }

.cue-volume {
  display: grid;
  gap: 0;
  padding-inline: 12px 4px;
  color: #dce2ce;
  font-size: .83rem;
}

.cue-volume-meta { display: flex; justify-content: space-between; gap: 8px; }
.cue-volume-value { color: #ebd69e; font-variant-numeric: tabular-nums; }
.cue-slider { display: block; width: 100%; height: 44px; margin: 0; accent-color: #e6b85c; }
.cue-test-button { min-height: 44px; margin-block-start: 6px; padding-inline: 15px; font-size: .86rem; }
.cue-test-status { padding-block-start: 6px; color: #f8dea3; font-size: .81rem; line-height: 1.4; }

.cue-help-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding-inline: 7px;
  text-align: start;
}

.cue-help-link:hover, .cue-language:hover { background: #344b3e; }
.cue-help-arrow { color: #d6b77a; font-size: 1.35rem; line-height: 1; }

@media (max-height: 465px) and (orientation: landscape) {
  .cue-settings-dialog .private-dialog-top { padding-block: 6px; }
  .cue-settings-group { padding-block: 7px; }
}

@media (min-width: 600px) and (max-height: 465px) and (orientation: landscape) {
  .cue-settings-dialog { width: min(640px, calc(100% - 2 * max(12px, var(--safe-inline)))); }
  .cue-settings-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
  .cue-settings-group:first-child { display: flex; grid-column: 1 / -1; align-items: center; gap: 16px; }
  .cue-settings-group:first-child .cue-group-title { margin-bottom: 0; }
}

@media (max-width: 350px) {
  .cue-settings-content, .cue-settings-dialog .private-dialog-top { padding-inline: 13px; }
  #cue-settings-open { padding-inline: 9px; }
}
