/* The camp keeps two everyday controls in view; rare actions unfold on demand. */
.applied-audio-settings {
  display: grid;
  gap: 9px;
  margin: 12px 0;
}
.applied-audio-settings .audio-setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  margin: 0;
  padding: 11px 14px;
  border: 1px solid #e3c99e;
  border-radius: 20px;
  color: #244e59;
  background: linear-gradient(115deg, #fffdf2, #fff3d9 60%, #f7e4bf);
  box-shadow: inset 0 1px 0 #fff, 0 2px 4px #9265300b;
  cursor: pointer;
}
.audio-setting-name {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  text-align: left;
  font-size: 18px;
  line-height: 1.2;
  font-weight: 800;
}
.audio-setting-name > .icon,
.audio-music-note {
  width: 27px;
  height: 29px;
  flex: none;
  color: #b67d23;
  filter: drop-shadow(0 1px 0 #fff1c0);
}
.audio-music-note {
  display: grid;
  place-items: center;
  font: 500 35px/1 var(--heading);
}
.audio-setting-name small {
  margin-top: 5px;
  font: 700 11px/1.4 var(--body);
  color: #687d79;
}
.applied-audio-settings input[type="checkbox"] {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  width: 68px;
  height: 44px;
  margin: 0;
  border: 1px solid #be9458;
  border-radius: 24px;
  background: linear-gradient(130deg, #eedcb7, #d9ba83 68%, #c8a56d);
  box-shadow: inset 0 2px 4px #9b733328, 0 1px 0 #fff;
  cursor: pointer;
  transition: background-color 160ms ease;
}
.applied-audio-settings input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 34px;
  height: 34px;
  border: 1px solid #bf9859;
  border-radius: 50%;
  background: linear-gradient(135deg, #fffef5, #fff1d1 65%, #f6dba4);
  box-shadow: inset 0 1px 0 #fff, 0 2px 3px #81571b35;
  transition: transform 180ms cubic-bezier(.2,.8,.3,1);
}
.applied-audio-settings input[type="checkbox"]:checked {
  border-color: #0e7e85;
  background: linear-gradient(125deg, #1fd2be, #16a6b0 48%, #217ca0);
  box-shadow: inset 0 2px 4px #086c7233, 0 1px 0 #fff;
}
.applied-audio-settings input[type="checkbox"]:checked::after {
  transform: translateX(24px);
}
.applied-audio-settings input[type="checkbox"]:focus-visible {
  outline: 3px solid #258ba2;
  outline-offset: 4px;
}
.settings-inventory {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 48px;
  margin: 2px 0 8px;
  padding: 8px;
  border: 0;
  border-radius: 12px;
  color: #4a7475;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}
.settings-inventory .icon:last-child {
  width: 17px;
  height: 17px;
}
.settings-more {
  border-top: 1px solid #e3cfab;
  color: #5a7372;
}
.settings-more > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.settings-more > summary::-webkit-details-marker {
  display: none;
}
.settings-more > summary .icon {
  width: 20px;
  height: 20px;
}
.settings-extra-options {
  padding: 0 2px 8px;
}
.settings-extra-options .setting-row {
  min-height: 62px;
  margin: 12px 0;
  gap: 10px;
  font-size: 14px;
}
.settings-extra-options .setting-row > span {
  flex: 1;
  min-width: 0;
}
.settings-extra-options .setting-row small {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.5;
}
.settings-extra-options > button {
  min-height: 44px;
  margin-top: 8px;
}
.settings-extra-options #privacy-settings {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  font-size: 12px;
  color: #5b7775;
}
dialog:has(.applied-settings) .dialog-actions > .primary,
dialog:has(.applied-pause) .dialog-actions > .primary {
  min-height: 60px;
  font-size: 21px;
}
dialog:has(.applied-pause) .illustrated-card {
  border-color: #d1ae6a;
  background: linear-gradient(125deg, #fffdf1, #fff3d9 65%, #f7e2b9);
  box-shadow: inset 0 1px 0 #fff, inset 0 -4px 0 #e3c895, 0 8px 28px #59422226;
}
dialog:has(.applied-pause) .illustrated-copy h2::after {
  height: 1px;
  background: linear-gradient(90deg, #d9b87800, #bf9142, #d9b87800);
  transform: none;
}
dialog:has(.applied-pause) .illustrated-description {
  font-size: 16px;
}
dialog:has(.applied-pause) .dialog-actions > .secondary {
  min-height: 44px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #627875;
  font-size: 16px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
@media (max-width: 360px) {
  .applied-audio-settings .audio-setting {
    padding: 10px;
    gap: 8px;
  }
  .audio-setting-name {
    gap: 7px;
    font-size: 16px;
  }
  .audio-setting-name > .icon,
  .audio-music-note {
    width: 23px;
  }
}
@media (max-width: 660px) and (max-height: 700px) {
  dialog:has(.applied-pause) .illustrated-wrap {
    padding-top: 96px;
  }
  dialog:has(.applied-pause) .illustrated-art {
    height: 138px;
  }
  dialog:has(.applied-pause) .illustrated-art img {
    width: 190px;
  }
  dialog:has(.applied-pause) .illustrated-card {
    padding: 16px;
  }
  dialog:has(.applied-pause) .illustrated-copy h2 {
    margin: 8px 0 10px;
    font-size: 27px;
  }
  dialog:has(.applied-pause) .illustrated-label,
  dialog:has(.applied-pause) .illustrated-footnote {
    display: none;
  }
  dialog:has(.applied-pause) .illustrated-description {
    margin-bottom: 10px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .applied-audio-settings input[type="checkbox"],
  .applied-audio-settings input[type="checkbox"]::after {
    transition: none;
  }
}
/* Keep the way back to play visible on short phones, with readable copy and
   finger-sized switches. Artwork yields space before controls or type do. */
@media (max-width: 660px) and (max-height: 900px) {
  dialog:has(.applied-pause) .illustrated-wrap { padding-top: 55px; }
  dialog:has(.applied-pause) .illustrated-art { height: 96px; }
  dialog:has(.applied-pause) .illustrated-art img { width: 145px; }
  dialog:has(.applied-pause) .illustrated-card { padding: 12px; }
  dialog:has(.applied-pause) .illustrated-copy h2 { margin: 5px 0 8px; font-size: 24px; line-height: 1.12; }
  dialog:has(.applied-pause) .illustrated-description {
    margin: 5px 0 8px; padding: 10px; font-size: 16px; line-height: 1.3;
    border: 1px solid #d1b47a; border-image: none; border-radius: 14px;
  }
  dialog:has(.applied-pause) .illustrated-description::after { display: none; }
  dialog:has(.applied-pause) .applied-audio-settings { gap: 7px; margin: 8px 0; }
  dialog:has(.applied-pause) .audio-setting { min-height: 50px; padding: 2px 10px; }
  dialog:has(.applied-pause) .dialog-actions { gap: 4px; margin-top: 8px; }
  dialog:has(.applied-pause) .dialog-actions > .primary { min-height: 54px; }
  dialog:has(.applied-pause) .dialog-actions > .secondary { min-height: 44px; font-size: 16px; }
}
/* Intermediate desktop heights need the same compact pause as landscape
   phones. Art yields first; Continue and both 44px switches stay in view. */
@media (min-width: 700px) and (max-height: 700px),
       (min-width: 480px) and (max-height: 400px) {
  dialog:has(.applied-pause) .illustrated-wrap { padding-top: 0; }
  dialog:has(.applied-pause) .illustrated-art { display: none; }
  dialog:has(.applied-pause) .illustrated-card { min-height: 0; padding: 12px; }
  dialog:has(.applied-pause) .illustrated-copy { width: 100%; }
  dialog:has(.applied-pause) .illustrated-copy h2 { margin: 3px 0 6px; font-size: 24px; line-height: 1.12; }
  dialog:has(.applied-pause) .illustrated-label,
  dialog:has(.applied-pause) .illustrated-footnote { display: none; }
  dialog:has(.applied-pause) .illustrated-description { margin: 4px 0 6px; padding: 8px; font-size: 16px; line-height: 1.25; border: 1px solid #d1b47a; border-image: none; border-radius: 14px; }
  dialog:has(.applied-pause) .illustrated-description::after { display: none; }
  dialog:has(.applied-pause) .applied-audio-settings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 6px 0; }
  dialog:has(.applied-pause) .audio-setting { min-height: 50px; padding: 2px 10px; }
  dialog:has(.applied-pause) .dialog-actions { flex-direction: row; align-items: center; width: 100%; gap: 8px; margin-top: 8px; }
  dialog:has(.applied-pause) .dialog-actions > button { flex: 1; width: auto; }
  dialog:has(.applied-pause) .dialog-actions > .primary { min-height: 54px; }
  dialog:has(.applied-pause) .dialog-actions > .secondary { min-height: 44px; font-size: 16px; }
}
