.focus-sounds-card {
  background: #fffaf0;
}

.focus-sounds-header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  display: flex;
}

.focus-sounds-card h3 {
  margin-bottom: 4px;
}

.focus-sounds-card .focus-sounds-subtitle,
.focus-sounds-note,
.focus-sounds-status {
  color: #64748b;
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.55;
}

.focus-sounds-status {
  min-height: 19px;
  margin-top: 10px;
}

.focus-sounds-status.error {
  color: #b91c1c;
}

.focus-sounds-status.ok {
  color: #166534;
}

.focus-sounds-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
  display: grid;
}

.focus-sound-toggle {
  border: 3px solid #1f2937;
  background: #ffffff;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  font-size: 13px;
  font-weight: 1000;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  box-shadow: 3px 3px #0f172a1f;
  transition: transform .12s, box-shadow .12s, background .12s;
}

.focus-sound-toggle:hover,
.focus-sound-toggle:focus-within {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px #0f172a2e;
}

.focus-sound-toggle.active {
  background: #dcfce7;
}

.focus-sound-toggle.unavailable {
  background: #fee2e2;
  border-color: #b91c1c;
}

.focus-sound-toggle input {
  accent-color: #1f2937;
  width: 18px;
  height: 18px;
}

.focus-sound-icon {
  border: 3px solid #1f2937;
  background: #fff7ed;
  place-items: center;
  width: 31px;
  height: 31px;
  font-size: 17px;
  line-height: 1;
  display: inline-grid;
  box-shadow: 2px 2px #0f172a1a;
}

.focus-sound-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.focus-volume-row {
  color: #334155;
  gap: 8px;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 1000;
  display: grid;
}

.focus-volume-top {
  justify-content: space-between;
  gap: 12px;
  display: flex;
}

.focus-volume-row input[type="range"] {
  width: 100%;
  min-height: 26px;
  accent-color: #1f2937;
}

.focus-sounds-actions {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  display: flex;
}

.focus-sounds-actions .pixel-button {
  min-height: 38px;
  padding: 0 10px;
  font-size: 12px;
}

.focus-sounds-card .focus-sounds-note {
  margin-top: 10px;
}

@media (width <= 720px) {
  .focus-sounds-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .focus-sounds-actions .pixel-button {
    width: 100%;
  }
}

@media (width <= 430px) {
  .focus-sounds-grid {
    grid-template-columns: 1fr;
  }
}


.focus-sounds-toolbar-button {
  background: #fffaf0;
  border-color: #27324a;
}

.focus-sounds-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9997;
  background: rgba(31, 41, 55, .42);
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  transition: opacity .18s ease;
}
.focus-sounds-backdrop.open { opacity: 1; }
.focus-sounds-backdrop[hidden] { display: none; }
.focus-sounds-modal-card {
  width: min(720px, 96vw);
  max-height: min(84vh, 760px);
  overflow: auto;
  background: #fffaf0;
  color: #27324a;
  border: 4px solid #27324a;
  border-radius: 24px;
  box-shadow: 10px 10px 0 rgba(31, 41, 55, .18);
  padding: 22px;
  position: relative;
  font-family: inherit;
  transform: translateY(8px) scale(.99);
  transition: transform .18s ease;
}
.focus-sounds-backdrop.open .focus-sounds-modal-card { transform: translateY(0) scale(1); }
.focus-sounds-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 3px solid #27324a;
  border-radius: 12px;
  background: #fff;
  color: #27324a;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  font-weight: 900;
}
.focus-sounds-kicker {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 900;
  color: #7c6f5d;
  padding-right: 46px;
}
.focus-sounds-modal-card h2 {
  margin: 8px 46px 6px 0;
  font-size: clamp(24px, 4vw, 34px);
}
.focus-sounds-modal-intro {
  color: #5f6979;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 16px;
}
.focus-sounds-modal-card .focus-sounds-card {
  border: 3px solid rgba(39, 50, 74, .18);
  border-radius: 18px;
  background: #fffdf8;
  padding: 16px;
}

@media (max-width: 620px) {
  .focus-sounds-modal-card { padding: 18px; border-radius: 18px; }
}

/* v1.4.5: safe toolbar playing-state display. */
.focus-sounds-toolbar-button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 128px;
  line-height: 1.1;
}
.focus-sounds-toolbar-button small {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
  font-weight: 900;
  opacity: .72;
}
.focus-sounds-toolbar-button.playing {
  background: #dcfce7;
  border-color: #166534;
  color: #14532d;
  box-shadow: 4px 4px 0 rgba(22, 101, 52, .18);
}
.focus-sounds-toolbar-button.playing small::before {
  content: "♪ ";
}
