:root {
  color-scheme:dark;
  --bg:#10221e;
  --panel:#1b302a;
  --line:#3c5148;
  --text:#edf0df;
  --muted:#b3c2b0;
  --accent:#d4e6a2;
  --danger:#f2aaa3;
  font-family:ui-sans-serif,system-ui,sans-serif;
  color:var(--text);
  background:var(--bg);
}
* {
  box-sizing:border-box;
}
body {
  margin:0;
}
button,input,select {
  font:inherit;
}
button,a,input,select {
  -webkit-tap-highlight-color:transparent;
}
button {
  cursor:pointer;
  color:inherit;
}
button:disabled {
  opacity:.55;
  cursor:wait;
}
button,input,select {
  min-height:44px;
}
button {
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--panel);
  padding:10px 16px;
}
button:hover {
  border-color:var(--accent);
}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline:3px solid var(--accent);
  outline-offset:4px;
}
a {
  color:var(--accent);
}
[hidden] {
  display:none!important;
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip-path:inset(50%);
}
.skip-link {
  position:fixed;
  top:12px;
  left:12px;
  max-width:calc(100% - 24px);
  transform:translateY(calc(-100% - 20px));
  padding:14px;
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:12px;
  z-index:10;
}
.skip-link:focus {
  transform:translateY(0);
}
.site-header,main,footer {
  max-width:1120px;
  margin:auto;
  padding-left:32px;
  padding-right:32px;
}
.site-header {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:12px;
  padding-top:22px;
  padding-bottom:22px;
}
.brand {
  display:flex;
  align-items:center;
  gap:9px;
  color:var(--text);
  font-weight:650;
  text-decoration:none;
  font-size:20px;
  letter-spacing:-.8px;
  margin-right:auto;
}
.intro {
  padding:36px 0 32px;
}
.update-notice { display:flex; align-items:center; flex-wrap:wrap; gap:16px 24px; padding:20px; margin:8px 0 0; border:1px solid var(--line); border-radius:18px; background:var(--panel); }
.update-copy { flex:1 1 280px; min-width:0; }
.update-copy h2 { margin:0 0 6px; font-size:18px; }
.update-copy p { margin:4px 0 0; color:var(--muted); }
#update-feedback:empty { display:none; }
.update-actions { display:flex; flex-wrap:wrap; gap:8px; }
#show-update { margin-left:auto; position:relative; display:grid; place-items:center; flex:0 0 44px; width:44px; height:44px; padding:10px; border-radius:12px; }
#show-update svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.update-dot { position:absolute; top:5px; right:5px; width:8px; height:8px; border-radius:50%; background:#f07878; animation:update-pulse 2.4s ease-in-out infinite; }
@keyframes update-pulse {
  0%, 100% { box-shadow:0 0 0 0 #f0787800; }
  50% { box-shadow:0 0 0 5px #f0787838; }
}
@media(prefers-reduced-motion:reduce) { .update-dot { animation:none; } }
.eyebrow {
  font-size:11px;
  letter-spacing:2px;
  font-weight:650;
  color:var(--accent);
}
h1 {
  font:400 clamp(34px,5vw,60px)/1.15 Georgia,serif;
  letter-spacing:-1.6px;
  margin:12px 0;
}
h1 em {
  color:var(--accent);
  font-weight:400;
}
.intro>p:last-child {
  color:var(--muted);
  line-height:1.6;
}
h2 {
  font-size:19px;
  letter-spacing:-.4px;
}
p {
  line-height:1.6;
}
.view-tabs {
  display:flex;
  gap:24px;
  border-bottom:1px solid var(--line);
  margin-bottom:24px;
}
.view-tabs button {
  border:0;
  border-radius:0;
  background:none;
  padding:14px 0;
  color:var(--muted);
  border-bottom:3px solid transparent;
}
.view-tabs button[aria-pressed=true] {
  color:var(--text);
  border-bottom-color:var(--accent);
}
.view-tabs span {
  font-size:12px;
  background:var(--panel);
  border-radius:6px;
  padding:3px 6px;
  margin-left:5px;
}
.toolbar {
  display:flex;
  gap:12px;
}
.search {
  flex:1;
}
.search input {
  width:100%;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 16px;
  color:var(--text);
}
input::placeholder {
  color:var(--muted);
}
.section-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:14px 0;
}
.section-heading h2 {
  margin:0;
}
.section-heading>span {
  color:var(--muted);
  font-size:12px;
}
.category-title, .sound-group-heading {
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:8px;
}
.headphones-tag {
  display:inline-block;
  padding:3px 8px;
  border:1px solid var(--line);
  border-radius:999px;
  color:var(--muted);
  font-size:11px;
  font-weight:400;
  line-height:1.4;
  white-space:nowrap;
}
.sound-grid {
  display:grid;
  align-items:start;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.sound-card {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:18px;
  overflow:hidden;
  padding:16px;
  position:relative;
  transition:border-color .15s;
}
.sound-card.active {
  border-color:var(--accent);
  background:#263d30;
}
.sound-toggle {
  width:100%;
  border:0;
  padding:0;
  background:transparent;
  text-align:left;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:10px;
  position:relative;
}
.sound-toggle:hover {
  background:transparent;
}
.sound-icon {
  font-size:28px;
  line-height:1.3;
  color:var(--accent);
  height:40px;
}
.sound-name {
  font-size:16px;
  font-weight:650;
  line-height:1.3;
  padding-right:12px;
}
.indicator {
  position:absolute;
  right:0;
  top:0;
  border:1px solid var(--line);
  border-radius:50%;
  width:26px;
  height:26px;
  display:grid;
  place-items:center;
  color:var(--muted);
}
.active .indicator {
  color:var(--bg);
  background:var(--accent);
}
.indicator svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.indicator-check, .active .indicator-add { display:none; }
.active .indicator-check { display:inline; }
.sound-kind {
  font-size:11px;
  color:var(--muted);
  margin:5px 0 12px;
}
.sound-description {
  margin:0 0 12px;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.volume-label {
  display:flex;
  justify-content:space-between;
  gap:10px;
  font-size:12px;
  color:var(--muted);
}
input[type=range] {
  width:100%;
  accent-color:var(--accent);
  margin:0;
  cursor:pointer;
  display:block;
}
.remove-sound {
  font-size:12px;
  min-height:44px;
  padding:5px 0;
  border:0;
  background:none;
  color:var(--muted);
}
.hint,.empty {
  color:var(--muted);
  font-size:13px;
}
.empty {
  padding:28px 8px;
  text-align:center;
}
.presets {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:20px 0 32px;
}
.preset,.saved-item {
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  text-align:left;
}
.preset {
  font-weight:650;
  min-height:100px;
}
.preset small {
  display:block;
  color:var(--muted);
  margin-top:10px;
  font-weight:400;
}
.saved-item {
  display:flex;
  flex-direction:column;
  min-width:0;
  padding:18px;
}
.saved-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:stretch; gap:14px; margin:20px 0 32px; }
.saved-item h3 { margin:0; font-size:16px; }
.saved-item .load-mix {
  width:100%;
  text-align:left;
  font-weight:650;
  border:0;
  padding:0;
  background:none;
  overflow-wrap:anywhere;
  font-size:16px;
  line-height:1.4;
}
.saved-item .load-mix:hover { color:var(--accent); }
.saved-description { margin:8px 0; font-size:13px; line-height:1.5; color:var(--muted); overflow-wrap:anywhere; }
.saved-meta { margin:0 0 18px; color:var(--muted); font-size:12px; }
.saved-actions { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr) 44px; gap:8px; padding-top:14px; border-top:1px solid var(--line); margin-top:auto; }
.saved-item button:not(.load-mix) {
  font-size:13px;
  padding:10px 8px;
}
.saved-load { color:var(--accent); border-color:#7c9a88; }
.saved-more { display:grid; place-items:center; width:44px; height:44px; }
.saved-more svg { width:22px; height:22px; fill:currentColor; }
.mix-library-actions { display:flex; gap:10px; flex-wrap:wrap; margin:18px 0; }
#mixes-transfer-status { color:var(--muted); font-size:13px; overflow-wrap:anywhere; }
.quiet {
  background:transparent;
}
.primary,.play {
  background:var(--accent);
  color:var(--bg);
  border-color:var(--accent);
  font-weight:650;
}
.text-button {
  border:0;
  background:none;
  text-decoration:underline;
  text-underline-offset:4px;
  color:var(--muted);
  padding:8px 0;
}
.player-dock {
  position:fixed;
  bottom:0;
  left:0;
  right:0;
  background:#10221ef7;
  border-top:1px solid var(--line);
  padding:14px 24px max(14px,env(safe-area-inset-bottom));
  z-index:3;
  backdrop-filter:blur(14px);
}
#player-notice:not(.sr-only) {
  position:absolute;
  bottom:calc(100% + 12px);
  left:50%;
  transform:translateX(-50%);
  width:min(440px, calc(100% - 28px));
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px;
  background:var(--panel);
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:0 8px 24px #0004;
}
#status { margin:0; font-size:13px; line-height:1.5; }
#dismiss-status { flex:0 0 44px; width:44px; padding:8px; }
#player-notice[data-tone=success]:not(.sr-only) { width:max-content; max-width:calc(100% - 28px); gap:10px; padding:8px 10px 8px 14px; border-color:#6a8161; border-radius:14px; }
#player-notice[data-tone=success] #status { flex:1; min-width:0; }
#notice-icon { display:grid; place-items:center; flex:0 0 24px; width:24px; height:24px; border-radius:50%; background:#344b36; color:var(--accent); font-size:14px; }
#player-notice[data-tone=success] #dismiss-status { border-color:transparent; }
#player-notice[data-tone=success] #dismiss-status:hover { background:#263d30; }
#player-notice.notice-leaving { animation:notice-dismiss .18s ease forwards; }
@keyframes notice-dismiss { to { opacity:0; transform:translate(-50%,6px); } }
@media(prefers-reduced-motion:reduce) { #player-notice.notice-leaving { animation:none; } }
.player {
  justify-content:center;
  max-width:900px;
  margin:auto;
  display:flex;
  align-items:center;
  gap:16px;
}
.play {
  display:grid;
  place-items:center;
  flex:0 0 52px;
  min-width:52px;
  height:52px;
  padding:12px;
  border-radius:50%;
}
.play svg { width:26px; height:26px; fill:currentColor; }
.play[aria-busy=true] { opacity:.6; }
.player-summary {
  max-width:900px;
  margin:9px auto 3px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  min-height:17px;
}
.player-summary strong {
  font-size:12px;
  font-weight:500;
  overflow:hidden;
  white-space:nowrap;
  text-overflow:ellipsis;
}
.player-summary span {
  color:var(--muted);
  font-size:11px;
  white-space:nowrap;
}
.player-volume { flex:0 0 44px; }
.volume-control { position:relative; }
.volume-button svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; }
#volume-toggle[aria-expanded=true] { border-color:var(--accent); }
#volume-popout { position:absolute; bottom:calc(100% + 12px); left:50%; transform:translateX(-50%); display:flex; flex-direction:column; align-items:center; width:136px; padding:16px; border:1px solid var(--line); border-radius:20px; background:var(--panel); box-shadow:0 12px 40px #0006; }
#volume-title { font-size:12px; color:var(--muted); }
#master-value { margin:4px 0 12px; font-size:30px; line-height:1.2; font-weight:600; font-variant-numeric:tabular-nums; }
#master { writing-mode:vertical-lr; direction:rtl; width:48px; height:180px; padding:0; margin:0; border-radius:24px; background:transparent; -webkit-appearance:none; appearance:none; }
#master::-webkit-slider-runnable-track { width:6px; height:100%; border-radius:6px; background:linear-gradient(to top, var(--accent) var(--volume), var(--line) var(--volume)); }
#master::-webkit-slider-thumb { -webkit-appearance:none; width:24px; height:24px; margin-left:-9px; border:2px solid var(--bg); border-radius:50%; background:var(--accent); }
#master::-moz-range-track { width:6px; height:100%; border-radius:6px; background:var(--line); }
#master::-moz-range-thumb { width:22px; height:22px; border:2px solid var(--bg); border-radius:50%; background:var(--accent); }
#master::-moz-range-progress { width:6px; background:var(--accent); border-radius:6px; }
#mute { width:100%; margin-top:12px; }
#mute[aria-pressed=true] { color:var(--accent); }
#open-mixer, #volume-toggle {
  display:grid;
  place-items:center;
  flex:0 0 44px;
  width:44px;
  height:44px;
  border-radius:50%;
  padding:9px;
}
#open-mixer svg { width:24px; height:24px; fill:currentColor; }
footer {
  display:flex;
  gap:16px;
  flex-wrap:wrap;
  align-items:center;
  font-size:12px;
  color:var(--muted);
  padding-top:28px;
  padding-bottom:160px;
}
footer>span:last-child {
  margin-left:auto;
}
.repo-link {
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:12px;
  text-decoration:none;
}
.repo-link:hover {
  border-color:var(--accent);
}
dialog {
  color:var(--text);
  background:var(--bg);
  border:1px solid var(--line);
  border-radius:22px;
  padding:24px;
  width:min(480px,calc(100% - 32px));
  max-height:85dvh;
  overflow-y:auto;
  overscroll-behavior:contain;
}
dialog::backdrop {
  background:#06130eb8;
  backdrop-filter:blur(4px);
}
.dialog-heading {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:16px;
}
.dialog-heading h2 {
  margin:0;
}
.close {
  min-width:44px;
  padding:8px;
}
.field {
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:22px;
  font-size:14px;
}
.field input,.field select {
  width:100%;
  border:1px solid var(--line);
  background:var(--panel);
  color:var(--text);
  border-radius:10px;
  padding:12px;
}
form .primary {
  width:100%;
  margin:14px 0 6px;
}
.credit {
  border-top:1px solid var(--line);
  padding:14px 0;
  font-size:13px;
}
.credit p {
  margin:3px 0;
}
#dialog-status {
  font-size:13px;
  color:var(--accent);
}
@media(min-width:1100px) {
  .sound-grid {
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
}
@media(max-width:600px) {
  .site-header,main,footer {
    padding-left:18px;
    padding-right:18px;
  }
  .site-header {
    padding-top:14px;
    padding-bottom:10px;
  }
  .brand {
    font-size:19px;
  }
  .intro {
    padding:22px 0 16px;
  }
  .intro>p:last-child {
    font-size:14px;
    max-width:270px;
  }
  .view-tabs {
    margin-bottom:18px;
    gap:26px;
  }
  .toolbar {
    gap:8px;
  }
  .toolbar button {
    padding:9px 12px;
    font-size:13px;
    white-space:nowrap;
  }
  .search input {
    padding:11px 12px;
    min-width:0;
    font-size:16px;
  }
  .sound-grid {
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
  }
  .sound-card {
    padding:13px;
    border-radius:16px;
  }
  .sound-name {
    font-size:14px;
  }
  .sound-kind {
    font-size:10px;
  }
  .sound-icon {
    font-size:26px;
  }
  .presets {
    grid-template-columns:1fr;
  }
  .player-dock {
    padding-left:14px;
    padding-right:14px;
  }
  .player {
    gap:10px;
  }
  .player-summary { gap:8px; }
  .player-summary strong {
    font-size:12px;
  }
  .player-summary span {
    font-size:11px;
  }
  .section-heading h2 {
    font-size:17px;
  }
  .section-heading button {
    font-size:12px;
  }
  footer {
    gap:8px 18px;
    padding-bottom:160px;
  }
  footer>span:last-child {
    width:100%;
    margin:0;
  }
  dialog {
    margin: auto 0 0;
    width:100%;
    max-width:100%;
    max-height:90dvh;
    border-radius:24px 24px 0 0;
    padding:22px 22px max(22px,env(safe-area-inset-bottom));
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    transition:none!important;
    scroll-behavior:auto!important;
  }
}
/* Disclose browsing filters only when needed; retain the active choice. */
.filters { margin-top:16px; border:1px solid var(--line); border-radius:14px; }
.filters summary {
  display:flex;
  align-items:center;
  gap:10px;
  min-height:52px;
  padding:10px 14px;
  cursor:pointer;
  list-style:none;
  font-size:14px;
  border-radius:13px;
}
.filters summary, .category-option { -webkit-tap-highlight-color:transparent; }
.filters summary::-webkit-details-marker { display:none; }
.filters summary:focus-visible { outline:3px solid var(--accent); outline-offset:3px; }
.filters summary:hover { background:var(--panel); }
.filters svg { width:20px; height:20px; flex-shrink:0; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.filters .filter-icon circle { fill:var(--bg); }
#filter-summary { margin-left:auto; color:var(--muted); font-size:12px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.filters.filtered #filter-summary { color:var(--accent); }
.filters[open] .filter-chevron { transform:rotate(180deg); }
.categories { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 8px; min-width:0; margin:4px 0 0; padding:0 12px; border:0; }
.categories legend { padding:4px 2px 8px; color:var(--muted); font-size:12px; }
.category-option { display:flex; align-items:center; gap:8px; min-height:44px; padding:8px; border-radius:8px; font-size:13px; cursor:pointer; }
.category-option:hover { background:var(--panel); }
.category-option:has(input:checked) { background:#263d30; color:var(--accent); }
.category-option input { flex:0 0 18px; width:18px; height:18px; min-height:0; margin:0; accent-color:var(--accent); }
.category-name { min-width:0; overflow-wrap:anywhere; }
.category-count { margin-left:auto; color:var(--muted); font-size:11px; }
.filter-help { margin:4px 20px 10px; }
.filter-actions { padding:4px 20px 10px; }
.filter-actions button { font-size:12px; }
.sound-group-heading {
  grid-column: 1 / -1;
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.custom-category {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}
.custom-category select {
  width: 100%;
  min-width: 0;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px;
}
.sound-name, .radio-state, #active-names, .credit { overflow-wrap: anywhere; }
.radio-state { margin: 4px 0; font-size: 12px; }
.retry-radio { font-size: 12px; padding: 6px 10px; }
#status { overflow-wrap:anywhere; max-height:6em; overflow-y:auto; }
@media (min-width: 700px) {
  .categories { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .toolbar { display: grid; grid-template-columns: 1fr 1fr; }
  .search { grid-column: 1 / -1; }
  .intro { padding-top: 12px; padding-bottom: 10px; }
  .intro > p:last-child { max-width: none; }
}

.source-tag { display:inline-flex; align-items:center; border:1px solid #7c9a88; border-radius:5px; padding:2px 6px; color:var(--accent); background:#263d30; font-size:11px; line-height:1.4; font-weight:600; white-space:nowrap; }
.sound-meta { display:flex; align-items:center; flex-wrap:wrap; gap:6px; min-height:23px; }
.sound-category { overflow-wrap:anywhere; }
#sound-files { min-width:0; font-size:13px; }
#sound-files::file-selector-button, #mix-zip::file-selector-button { min-height:44px; border:1px solid var(--line); border-radius:8px; padding:8px 12px; margin-right:10px; background:var(--bg); color:var(--text); font:inherit; cursor:pointer; }
#import-status { color:var(--muted); font-size:13px; overflow-wrap:anywhere; }

.credit p { overflow-wrap:anywhere; }
.mix-actions { display:flex; flex-wrap:wrap; gap:8px; margin:14px 0; }
.restore-save { display:flex; align-items:center; gap:10px; margin:16px 0; }
.restore-save input { width:20px; height:20px; accent-color:var(--accent); }
#transfer-status, #restore-status, #restore-sounds, #restore-name { overflow-wrap:anywhere; }
#mix-zip, #share-link { min-width:0; max-width:100%; }

/* The mix dialogs share the same rhythm, action sizing and mobile insets. */
.mix-dialog { width:min(460px,calc(100% - 32px)); max-height:calc(100dvh - 32px); padding:24px; overflow-wrap:anywhere; }
.mix-dialog .dialog-heading { align-items:flex-start; margin-bottom:18px; }
.mix-dialog .dialog-heading h2 { align-self:center; font-size:20px; line-height:1.3; min-width:0; overflow-wrap:anywhere; }
.mix-dialog .close { flex:0 0 44px; width:44px; height:44px; padding:8px; }
.mix-dialog .field { margin-top:18px; gap:8px; }
.mix-dialog form .field { margin-top:0; }
.mix-dialog .field input, .mix-dialog .field select { min-width:0; font-size:16px; }
.mix-dialog .hint { margin:0 0 18px; }
.mix-summary { border:1px solid var(--line); border-radius:12px; padding:12px 14px; background:var(--panel); }
.mix-summary .player-summary { margin:0; }
.mix-summary #active-names { margin:8px 0 0; }
.mix-dialog .timer-help { margin:8px 0 0; font-size:12px; }
.mix-dialog .keyboard-help { margin:12px 0 0; font-size:12px; line-height:1.5; }
.mix-option-actions { display:grid; gap:8px; margin-top:20px; padding-top:20px; border-top:1px solid var(--line); }
.option-action { display:flex; justify-content:space-between; align-items:center; gap:16px; width:100%; min-height:48px; text-align:left; padding:12px 14px; font-size:14px; }
.option-action span:last-child { color:var(--muted); flex-shrink:0; }
.dialog-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:20px; }
.dialog-actions button { min-width:0; min-height:46px; margin:0; padding:11px 12px; font-size:14px; line-height:1.4; }
.mix-dialog form .dialog-actions .primary { width:100%; margin:0; }
.dialog-danger { border-top:1px solid var(--line); margin-top:20px; padding-top:12px; }
.dialog-danger button { width:100%; font-size:14px; }
.danger { color:var(--danger); border-color:#805953; }
.danger:hover { border-color:var(--danger); }
.danger-primary { background:var(--danger); color:#2b1715; border-color:var(--danger); font-weight:650; }
.mix-dialog .dialog-status { margin:16px 0 0; padding:12px; font-size:13px; line-height:1.5; color:var(--muted); border:1px solid var(--line); background:var(--panel); border-radius:12px; overflow-wrap:anywhere; }
.dialog-status:empty { display:none; }
.mix-dialog .transfer-note { margin:16px 0 0; font-size:12px; }
.mix-dialog .restore-save { min-height:44px; font-size:14px; }
.mix-dialog button:disabled { cursor:default; }
@media(max-width:900px) { .saved-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
  .saved-grid { grid-template-columns:1fr; gap:12px; }
  .mix-library-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .mix-library-actions button { min-width:0; padding:11px 8px; font-size:13px; }
  #download-all-mixes { grid-column:1 / -1; }
  .mix-dialog { width:calc(100% - 24px); max-width:460px; max-height:calc(100dvh - 24px); margin:auto auto max(12px,env(safe-area-inset-bottom)); padding:20px; border-radius:22px; }
}
@media(max-width:360px) { .transfer-actions { grid-template-columns:1fr; } }
.storage-dialog { width:min(640px,calc(100% - 32px)); }
.storage-dialog .dialog-heading { position:sticky; top:0; z-index:1; background:var(--bg); box-shadow:0 -24px 0 var(--bg); padding-bottom:12px; }
.storage-summary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin-bottom:16px; }
.storage-summary > div { display:flex; flex-direction:column; gap:8px; padding:14px; border:1px solid var(--line); background:var(--panel); border-radius:12px; }
.storage-summary span { color:var(--muted); font-size:12px; }
.storage-summary strong { font-size:22px; font-weight:600; }
.storage-protection { padding:14px; border:1px solid var(--line); border-radius:12px; margin:16px 0; }
.storage-protection .hint { margin-bottom:12px; }
.storage-recording { padding:16px 0; border-top:1px solid var(--line); min-width:0; }
.storage-recording h4 { margin:0 0 8px; overflow-wrap:anywhere; }
.storage-recording .hint { margin:4px 0; }
.storage-recording summary { min-height:44px; padding:12px 0; font-size:13px; cursor:pointer; color:var(--accent); }
.storage-recording summary:focus-visible { outline:3px solid var(--accent); outline-offset:2px; }
.storage-recording-actions { display:flex; gap:8px; margin-top:12px; }
.storage-recording-actions button { flex:1; font-size:13px; }
.reference-list { margin:10px 0 16px; padding-left:22px; overflow-wrap:anywhere; font-size:13px; line-height:1.7; }
#upload-selection { overflow-wrap:anywhere; }
.file-drop-zone { padding:14px; border:1px dashed var(--line); border-radius:12px; }
.file-drop-zone:focus-within, .file-drag .file-drop-zone { border-color:var(--accent); }
#restore-file-field { margin-bottom:18px; }
.collection-selection-actions { display:flex; gap:16px; flex-wrap:wrap; }
#restore-collection-list { border:0; padding:0; margin:8px 0 18px; min-width:0; display:grid; gap:8px; }
.collection-mix { display:flex; align-items:flex-start; gap:12px; padding:12px; border:1px solid var(--line); border-radius:12px; min-height:44px; cursor:pointer; }
.collection-mix:focus-within { outline:2px solid var(--accent); outline-offset:2px; }
.collection-mix input { flex:0 0 20px; width:20px; height:20px; margin:2px 0; accent-color:var(--accent); }
.collection-mix > span { min-width:0; display:grid; gap:6px; overflow-wrap:anywhere; }
.collection-mix strong { font-size:14px; }
.collection-mix small { color:var(--muted); font-size:12px; line-height:1.5; }
#restore-dialog:has(#restore-collection:not([hidden])) .dialog-heading { position:sticky; top:0; z-index:1; background:var(--bg); box-shadow:0 -24px 0 var(--bg); padding-bottom:12px; }
.file-drag dialog[open] { outline:2px dashed var(--accent); outline-offset:-6px; }
#file-drop-overlay { position:fixed; inset:12px; z-index:10; pointer-events:none; display:grid; place-items:center; border:2px dashed var(--accent); border-radius:22px; background:#10221ee8; }
#file-drop-overlay > div { display:flex; flex-direction:column; align-items:center; gap:10px; padding:24px; text-align:center; }
#file-drop-overlay strong { font-size:26px; color:var(--accent); }
#file-drop-overlay span { font-size:14px; }
@media(max-width:600px) { .storage-dialog { width:calc(100% - 24px); } }
