:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #342f25;
  background: #fbf5df;
  font-size: 15px;
  line-height: 1.5;
  font-synthesis: none;
  --gold: #b78330;
  --gold-dark: #936321;
  --border: #e9dfc8;
  --paper: #fffdfa;
  --muted: #82745c;
  --soft: #faf5e8;
  --shadow: 0 8px 30px #6b532009;
  letter-spacing: 0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  padding: 9px 16px;
  border-radius: 8px;
  font-weight: 600;
  min-height: 42px;
  transition:
    background 0.15s,
    color 0.15s;
}
button:hover {
  background: #ede4ce;
}
button:disabled {
  opacity: 0.4;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #c79849;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 23px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
  font-weight: 650;
}
h3 {
  font-size: 16px;
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
  stroke-width: 1.8;
}
input:not([type="range"]):not([type="checkbox"]),
textarea,
select {
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fffdf7;
  padding: 10px 12px;
  max-width: 100%;
  min-width: 0;
}
select {
  cursor: pointer;
  padding-right: 24px;
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
}
input[type="range"] {
  accent-color: var(--gold);
  cursor: pointer;
  width: 100%;
  min-width: 0;
}
textarea {
  resize: vertical;
  width: 100%;
}
strong {
  font-weight: 650;
}
.primary {
  background: var(--gold);
  color: white;
  border-color: var(--gold);
}
.primary:hover {
  background: var(--gold-dark);
}
.secondary {
  background: #fcf8ee;
  border-color: var(--border);
}
.active {
  background: #efe0bb;
  color: #8b5e1d;
}
.danger {
  background: #a63737;
  color: white;
}
.danger-outline {
  color: #a63737;
  border-color: #dfbdb4;
}
.gold {
  color: var(--gold);
}
.full {
  width: 100%;
}
.icon-button {
  width: 42px;
  height: 42px;
  padding: 0;
  flex-shrink: 0;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 13px;
}
.button-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 15px;
}
.inline-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.count {
  padding: 3px 10px;
  background: #f5edd9;
  color: #82704a;
  border-radius: 5px;
  font-size: 13px;
}
.eyebrow {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}
.app-shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  height: 100dvh;
  overflow: hidden;
}
.sidebar {
  background: #fffcf4;
  border-right: 1px solid var(--border);
  padding: 30px 18px 24px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}
.brand img {
  border-radius: 8px;
}
.brand span {
  font-size: 17px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.brand small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
  display: block;
  margin-top: 2px;
}
.sidebar nav {
  display: grid;
  gap: 8px;
}
.nav-item {
  justify-content: flex-start;
  padding: 13px 15px;
  color: #7b715f;
}
.nav-item svg {
  width: 23px;
  height: 23px;
}
.nav-item.active {
  background: #f3e6c8;
  color: #95691e;
}
.nav-item b {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 20px 12px 0;
  border-top: 1px solid var(--border);
}
.sidebar-bottom img {
  border-radius: 5px;
  opacity: 0.9;
}
.sidebar-bottom p {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 14px;
  margin: 10px 0 6px;
  color: #76694e;
}
.sidebar-bottom small {
  color: #998d75;
  font-size: 10px;
}
.main-shell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}
.topbar {
  height: 90px;
  min-height: 90px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 12px;
  background: #fffdf6;
}
.page-heading,
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.top-actions select {
  max-width: 190px;
  background: transparent;
  border-color: transparent;
  font-size: 13px;
}
.workspace {
  overflow-y: auto;
  overflow-x: hidden;
  min-height: 0;
  padding: 30px 36px 40px;
  overscroll-behavior-x: none;
  scrollbar-gutter: stable;
}
.mobile-brand,
.bottom-nav {
  display: none;
}
.panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
  min-width: 0;
  box-shadow: var(--shadow);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  min-width: 0;
}
.section-heading h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-wrap: wrap;
}
.section-heading h2 > svg {
  color: var(--gold);
}
.stack {
  display: grid;
  gap: 24px;
  max-width: 1100px;
  margin: auto;
}
.player-page {
  display: flex;
  flex-direction: column;
  min-height: 550px;
  height: 100%;
  max-width: 1300px;
  margin: auto;
  gap: 26px;
}
.play-workspace {
  padding-bottom: 30px;
}
.reference-toolbar {
  display: flex;
  gap: 10px;
  position: relative;
  flex-shrink: 0;
  max-width: 760px;
}
.reference-toolbar > .icon-button {
  width: 48px;
  height: 48px;
  border-radius: 7px;
}
.reference-input {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fffdf5;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 15px;
  flex: 1;
  min-width: 0;
}
.reference-input > svg {
  color: var(--gold);
  width: 20px;
}
.reference-input input {
  border: 0 !important;
  background: transparent !important;
  padding: 12px 0 !important;
  min-width: 0;
  width: 100%;
  outline-offset: 0;
}
.recent-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: calc(100% - 116px);
  z-index: 5;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 12px 30px #67512120;
  padding: 12px;
  animation: popover 0.18s ease-out;
}
.recent-popover h3 {
  font-size: 12px;
  color: var(--muted);
  padding: 2px 8px 6px;
}
.recent-popover button {
  width: 100%;
  justify-content: flex-start;
  font-size: 14px;
}
.recent-popover[hidden] {
  display: none;
}
@keyframes popover {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.player-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 1fr);
  gap: 30px;
  flex: 1;
  min-height: 0;
}
.queue-panel {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 260px;
}
.queue-panel > .section-heading {
  padding: 20px 20px 0;
  margin-bottom: 12px;
  flex-shrink: 0;
}
.queue-list {
  overflow: auto;
  padding: 0 16px 16px;
  flex: 1;
  min-height: 0;
  overscroll-behavior: contain;
}
.queue-row {
  display: flex;
  align-items: center;
  background: #faf6eb;
  border-radius: 6px;
  margin: 8px 0;
  min-width: 0;
}
.queue-row > button:first-child {
  flex: 1;
  justify-content: flex-start;
  min-width: 0;
  padding: 14px 12px;
  gap: 10px;
  font-size: 14px;
  min-height: 58px;
}
.queue-row > button:first-child > span:not(.queue-number) {
  text-align: left;
}
.queue-row svg {
  color: var(--gold);
}
.queue-number {
  font-size: 11px;
  color: #a8987a;
  width: 15px;
  font-variant-numeric: tabular-nums;
}
.queue-row small {
  margin-left: auto;
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}
.queue-row > .icon-button {
  width: 30px;
  height: 32px;
  opacity: 0.4;
}
.queue-row > .icon-button svg {
  width: 15px;
}
.queue-row.playing {
  background: var(--gold);
  color: white;
}
.queue-row.playing svg,
.queue-row.playing small,
.queue-row.playing .queue-number {
  color: #fff7e3;
}
.player-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 24px 8px;
}
.listening-art img {
  width: 164px;
  height: 164px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 14px 35px #83601b20;
  margin-bottom: 30px;
}
.now-playing {
  width: 100%;
  text-align: center;
  min-height: 100px;
}
.now-playing h2 {
  font-family: Georgia, serif;
  font-size: 25px;
  line-height: 1.3;
  margin: 9px 0 5px;
  overflow-wrap: anywhere;
}
.now-playing p {
  font-size: 12px;
  color: var(--muted);
}
.timeline {
  width: 100%;
  margin: 22px 0;
}
.timeline input {
  appearance: none;
  height: 12px;
  border-radius: 6px;
  background-color: #e7dab6;
  background-size: 100% 100%;
  background-image: linear-gradient(
    90deg,
    var(--gold) var(--fill),
    transparent var(--fill)
  );
  display: block;
}
.timeline input::-webkit-slider-thumb {
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fffdf6;
  border: 1px solid #dfcda5;
  box-shadow: 0 2px 7px #8c72342a;
}
.timeline input::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fffdf6;
  border: 1px solid #dfcda5;
}
.time-row {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  margin-top: 12px;
}
.transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 5px;
}
.main-play {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--gold);
  color: white;
  padding: 0;
  box-shadow: 0 8px 25px #b7833020;
  flex-shrink: 0;
}
.main-play svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}
.main-play:hover {
  background: var(--gold-dark);
}
.transport-small {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  min-width: 52px;
  padding: 8px 4px;
}
.transport-small svg {
  width: 23px;
  height: 23px;
}
.transport-small[data-action="cycle-repeat"] {
  color: var(--gold-dark);
}
.skip {
  width: 32px;
}
.skip svg {
  fill: currentColor;
}
.player-bottom {
  height: 40px;
  margin-top: 20px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 15px;
  font-size: 10px;
  color: var(--muted);
  align-items: center;
}
.mode-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.mode-label svg {
  width: 13px;
  height: 13px;
}
#sleep-label:not(:empty) {
  animation: breathe 3s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    opacity: 0.35;
  }
}
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 260px;
  height: 100%;
  padding: 25px;
  color: var(--muted);
}
.empty-state > svg {
  width: 40px;
  height: 40px;
  color: #c8b483;
  stroke-width: 1.3;
  margin-bottom: 20px;
}
.empty-state h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 20px;
  color: #76674a;
}
.empty-state p {
  font-size: 13px;
  max-width: 270px;
  margin: 10px 0 20px;
}
.empty-state.compact {
  min-height: 150px;
}
.record-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 24px;
  max-width: 1100px;
  margin: auto;
}
.field-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}
.field-row > span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 550;
  font-size: 14px;
}
.field-row > span svg {
  color: var(--gold);
  width: 19px;
}
.field-row select {
  max-width: 57%;
  background: transparent;
  border: 0;
  text-align: right;
  padding: 7px;
  font-size: 14px;
}
.number-picker {
  border-bottom: 1px solid var(--border);
}
.number-picker summary {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 12px;
  padding: 18px 0;
  cursor: pointer;
  font-size: 14px;
}
.number-picker summary > span {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  color: var(--muted);
}
.number-picker summary > span svg {
  color: var(--gold);
  width: 19px;
}
.number-picker summary > svg {
  width: 16px;
}
.number-picker summary strong {
  padding: 1px 12px;
  background: var(--soft);
  border-radius: 6px;
}
.number-picker summary::-webkit-details-marker {
  display: none;
}
.number-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-height: 300px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 3px 16px;
}
.number-grid button {
  position: relative;
  padding: 10px 0;
  min-width: 0;
  background: var(--soft);
  font-size: 15px;
}
.number-grid button.selected {
  background: var(--gold);
  color: white;
}
.recorded-dot {
  position: absolute;
  top: 4px;
  left: calc(50% - 2px);
  width: 4px;
  height: 4px;
  background: var(--gold);
  border-radius: 50%;
}
.selected .recorded-dot {
  background: white;
}
.record-console {
  padding-top: 30px;
}
.record-reference {
  position: relative;
  text-align: center;
  padding-right: 35px;
  padding-left: 20px;
}
.record-reference h2 {
  font-family: Georgia, serif;
  font-size: 26px;
  margin-top: 7px;
}
.record-reference .icon-button {
  position: absolute;
  right: 0;
  top: 7px;
}
.record-wave {
  height: 130px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}
.record-wave b {
  width: 3px;
  height: var(--h);
  background: #ddcda8;
  border-radius: 2px;
}
.record-wave.live b {
  background: #b45344;
  animation: wave 0.6s ease-in-out infinite alternate;
  animation-delay: var(--delay);
}
@keyframes wave {
  to {
    transform: scaleY(0.3);
  }
}
.record-time {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}
.record-actions {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}
.record-button {
  flex: 1;
  min-height: 64px;
  font-size: 19px;
  background: var(--gold);
  color: white;
}
.record-button:hover {
  background: var(--gold-dark);
}
.record-button.recording {
  background: #a34c3e;
}
.preview-button {
  width: 64px;
  height: 64px;
}
.local-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  margin-top: 20px;
}
.local-note svg {
  width: 13px;
  height: 13px;
}
.sparkle:after {
  content: "✦";
  position: absolute;
  color: #cba246;
  animation: breathe 1s infinite;
  transform: translate(24px, -22px);
}
.input-label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 14px 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.input-label input,
.input-label textarea {
  color: #342f25;
}
.editor-actions {
  display: flex;
  gap: 12px;
  margin: 18px 0;
}
.editor-actions button {
  min-width: 150px;
  height: 42px;
}
.reference-chip {
  display: inline-block;
  background: var(--soft);
  padding: 5px 10px;
  margin: 5px 6px 0 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  font-size: 12px;
}
.saved-playlist {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.saved-playlist-content {
  min-width: 0;
  flex: 1;
}
.saved-playlist h3 {
  font-size: 17px;
  overflow-wrap: anywhere;
}
.saved-playlist p {
  font-size: 13px;
  color: var(--muted);
  margin: 5px 0 12px;
  overflow-wrap: anywhere;
}
.saved-playlist-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.saved-playlist-actions button {
  font-size: 12px;
  height: 34px;
  min-height: 34px;
}
.saved-playlist-actions svg {
  width: 16px;
  height: 16px;
}
.badge {
  font:
    11px -apple-system,
    sans-serif;
  font-weight: 500;
  background: #eee1bc;
  color: #9b7029;
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-left: 8px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 1100px;
  margin: auto;
  align-items: start;
}
.wide {
  grid-column: 1/-1;
}
.language-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.language-options button {
  flex: 1;
  font-size: 13px;
  white-space: nowrap;
}
.streak-row {
  display: flex;
  align-items: center;
  background: var(--soft);
  padding: 14px;
  border-radius: 6px;
  gap: 14px;
}
.streak-row > svg {
  color: var(--gold);
  width: 28px;
  height: 28px;
}
.streak-row > div {
  flex: 1;
}
.streak-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.streak-row strong {
  display: block;
  font-size: 23px;
}
.streak-row > .icon-button {
  margin-right: -4px;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 15px;
}
.stats-grid > div,
.stats-grid > button {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  background: var(--soft);
  padding: 14px 12px;
  border-radius: 6px;
  min-width: 0;
  text-align: left;
}
.stats-grid svg {
  color: var(--gold);
  width: 21px;
}
.stats-grid span {
  font-size: 11px;
  color: var(--muted);
  min-width: 0;
}
.stats-grid strong {
  display: block;
  font-size: 20px;
  color: #342f25;
  line-height: 1.5;
}
.stats-grid > button > svg:last-child {
  margin-left: auto;
  width: 15px;
}
.target-row {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px 0;
  max-width: 800px;
}
.target-controls {
  min-width: 0;
}
.target-controls h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
}
.target-inputs {
  display: flex;
  gap: 8px;
  align-items: center;
}
.target-inputs label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.target-inputs label span {
  font-size: 10px;
  color: var(--muted);
}
.target-inputs input {
  width: 55px;
  padding: 8px 5px !important;
  font-size: 22px;
  text-align: center;
  appearance: textfield;
  font-variant-numeric: tabular-nums;
}
.target-inputs input::-webkit-inner-spin-button {
  appearance: none;
}
.target-inputs > span {
  margin-top: -15px;
}
.target-go {
  width: 48px;
  min-width: 48px;
  padding: 0;
  margin-top: -17px;
}
.target-go span {
  display: none;
}
.target-go svg {
  width: 18px;
}
.target-remaining {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.target-track {
  flex: 1;
  max-width: 310px;
  min-width: 90px;
  padding: 20px 22px 0 10px;
}
.runner-track {
  height: 8px;
  background: #eadebf;
  border-radius: 4px;
  position: relative;
  --progress: 0%;
}
.runner-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  background: var(--gold);
  border-radius: 4px;
}
.runner {
  position: absolute;
  left: var(--progress);
  font-size: 26px;
  bottom: 2px;
  transform: translateX(-50%) scaleX(-1);
  z-index: 2;
  line-height: 1.2;
}
.runner.running {
  animation: runner-bounce 1s ease-in-out infinite;
}
.goal {
  position: absolute;
  right: -15px;
  font-size: 27px;
  bottom: 2px;
  line-height: 1.2;
  z-index: 1;
}
@keyframes runner-bounce {
  50% {
    transform: translate(-50%, -6px) scaleX(-1);
  }
}
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
}
.completed .target-controls {
  opacity: 0.55;
}
.target-row + .target-row {
  border-top: 1px solid var(--border);
  margin-top: 20px;
  padding-top: 22px;
}
.profile-list > div {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
}
.profile-list > div > div {
  flex: 1;
  min-width: 0;
}
.profile-list strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.profile-list small {
  font-size: 11px;
  color: var(--muted);
}
.profile-avatar {
  color: var(--gold);
  display: flex;
}
.storage-link {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  width: 100%;
  font-size: 14px;
}
.storage-link strong {
  margin-left: auto;
}
.storage-notice {
  display: flex;
  gap: 13px;
  padding: 18px;
  background: #faf2df;
  border: 1px solid #e6d8b5;
  border-radius: 6px;
  margin: 16px 0;
}
.storage-notice > svg {
  color: var(--gold);
  margin-top: 3px;
}
.storage-notice h3 {
  font-size: 13px;
  margin-bottom: 6px;
}
.storage-notice p {
  font-size: 12px;
  line-height: 1.7;
  color: #837051;
}
.storage-panel .button-row button {
  font-size: 12px;
}
.backup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 20px 0;
}
.progress-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin: 14px 0 6px;
}
progress {
  display: block;
  width: 100%;
  appearance: none;
  height: 5px;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background: #e9e1cc;
}
progress::-webkit-progress-bar {
  background: #e9e1cc;
}
progress::-webkit-progress-value {
  background: var(--gold);
}
progress::-moz-progress-bar {
  background: var(--gold);
}
.review-link {
  font-family: Georgia, serif;
  font-size: 20px;
  color: #8b642b;
  display: flex;
  align-items: center;
  gap: 12px;
  line-height: 1.5;
  margin-bottom: 15px;
}
.review-link svg {
  margin-left: auto;
}
.legal-links > div,
.legal-links > button {
  display: flex;
  align-items: center;
  padding: 14px 0;
  gap: 10px;
  border-bottom: 1px solid var(--border);
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}
.legal-links strong {
  margin-left: auto;
  font-size: 13px;
}
.legal-links svg:last-child {
  margin-left: auto;
}
.completion-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}
.completion-progress > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.completion-progress h2 {
  font-size: 17px;
}
.completion-progress.large h2 {
  font-size: 25px;
}
.completion-progress strong {
  color: var(--muted);
  font-size: 15px;
}
.completion-progress.large strong {
  font-size: 23px;
}
.completion-progress small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 20px;
}
.completion-track {
  height: 11px;
  background: #eadfc0;
  border-radius: 6px;
  margin: 32px 45px 8px 10px;
  position: relative;
}
.completion-track > b {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: var(--progress);
  background: var(--gold);
  border-radius: 6px;
  animation: progress-entry 1s ease-out;
}
.completion-runner {
  position: absolute;
  bottom: 1px;
  left: var(--progress);
  font-size: 28px;
  transform: translateX(-50%) scaleX(-1);
  animation:
    completion-entry 1s ease-out,
    runner-bounce var(--bounce) 1s infinite;
}
.completion-goal {
  font-size: 33px;
  position: absolute;
  right: -40px;
  bottom: -4px;
}
.large .completion-goal {
  font-size: 43px;
  right: -42px;
}
.completion-goal.achieved {
  animation: breathe 1.5s infinite;
}
.testament summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 20px;
}
.testament summary > .completion-progress {
  width: 100%;
}
.testament summary > svg {
  position: absolute;
  top: 2px;
  right: 0;
  width: 15px;
}
.testament summary::-webkit-details-marker {
  display: none;
}
.book-progress-list {
  margin-top: 25px;
  display: grid;
  gap: 18px;
}
.book-progress-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  font-size: 13px;
}
.book-progress-list progress {
  grid-column: 1/-1;
}
.book-progress-list strong {
  font-size: 12px;
  color: var(--muted);
}
blockquote {
  margin: 0;
  padding: 25px;
  background: #fffdf6;
  border-left: 3px solid var(--gold);
  font-family: Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
}
blockquote cite {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}
@keyframes progress-entry {
  from {
    width: 0;
  }
}
@keyframes completion-entry {
  from {
    left: 0;
  }
}
.library-list article {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.library-list article > div {
  flex: 1;
  min-width: 0;
}
.library-list strong {
  display: block;
  font-size: 14px;
}
.library-list small {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.library-list .icon-button {
  width: 34px;
}
.modal-shade {
  position: fixed;
  inset: 0;
  background: #24201565;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  backdrop-filter: blur(3px);
}
.modal {
  width: min(100%, 470px);
  max-height: calc(100dvh - 48px);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 20px 100px #1a130c30;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  gap: 10px;
}
.modal header h2 {
  font-size: 18px;
}
.modal-content {
  overflow: auto;
  padding: 24px;
  line-height: 1.75;
  font-size: 14px;
}
.modal footer {
  padding: 14px 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.notice-icon {
  text-align: center;
  color: var(--gold);
  margin-bottom: 18px;
}
.notice-icon svg {
  height: 42px;
  width: 42px;
}
.menu-item {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  padding: 12px;
}
.menu-item span {
  flex: 1;
  text-align: left;
}
.sleep-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 25px 0 12px;
}
.sleep-heading strong {
  margin-left: auto;
  color: var(--gold);
}
.sleep-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.sleep-options button {
  font-size: 12px;
  padding: 10px 4px;
}
.legal-article h2 {
  font-size: 22px;
  margin-bottom: 20px;
}
.legal-article h3 {
  font-size: 16px;
  margin: 22px 0 8px;
}
.legal-article p {
  font-size: 13px;
  margin: 12px 0;
}
.install-icon {
  display: block;
  margin: 0 auto 20px;
  width: 80px;
  height: 80px;
  border-radius: 12px;
}
.celebration {
  position: relative;
  text-align: center;
  padding: 15px 0;
  overflow: hidden;
  isolation: isolate;
}
.celebration > img {
  border-radius: 12px;
  margin: 10px 0 22px;
}
.celebration p {
  font-size: 18px;
  font-family: Georgia, serif;
  line-height: 1.8;
  font-weight: 600;
  position: relative;
}
.encouragement {
  display: flex;
  gap: 15px;
  justify-content: center;
  font-size: 30px;
  margin-top: 24px;
}
.encouragement span {
  animation: cheer 0.8s infinite alternate;
}
.encouragement span:nth-child(even) {
  animation-delay: -0.4s;
}
@keyframes cheer {
  to {
    transform: translateY(-9px) rotate(10deg);
  }
}
.confetti {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.confetti b {
  position: absolute;
  left: var(--x);
  width: 6px;
  height: 11px;
  background: var(--color);
  top: -15px;
  animation: fall var(--speed) linear infinite;
  animation-delay: var(--delay);
  opacity: 0.7;
}
@keyframes fall {
  to {
    transform: translate(30px, 440px) rotate(600deg);
  }
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  max-width: calc(100% - 32px);
  width: max-content;
  padding: 13px 21px;
  border-radius: 8px;
  background: #383126;
  color: white;
  font-size: 13px;
  z-index: 200;
  box-shadow: 0 5px 22px #0002;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.boot {
  max-width: 460px;
  margin: 15vh auto;
  text-align: center;
  padding: 24px;
}
.boot img {
  border-radius: 12px;
  margin-bottom: 20px;
}
.boot p {
  margin-top: 15px;
  color: var(--muted);
}
@media (min-width: 1500px) {
  .workspace {
    padding-left: 55px;
    padding-right: 55px;
  }
  .player-layout {
    gap: 60px;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
  .listening-art img {
    width: 210px;
    height: 210px;
  }
  .player-controls {
    max-width: 450px;
    width: 100%;
    justify-self: center;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 12px;
  }
  .brand {
    gap: 8px;
  }
  .brand span {
    font-size: 14px;
  }
  .brand img {
    width: 35px;
    height: 35px;
  }
  .brand small {
    font-size: 9px;
  }
  .topbar {
    padding: 0 24px;
  }
  .workspace {
    padding: 24px;
  }
  .player-layout {
    gap: 20px;
    grid-template-columns: minmax(0, 1fr) minmax(245px, 0.85fr);
  }
  .queue-panel h2 {
    font-size: 16px;
  }
  .queue-panel > .section-heading {
    padding: 16px 14px 0;
  }
  .queue-row .queue-number {
    display: none;
  }
  .queue-row small {
    display: none;
  }
  .queue-list {
    padding: 0 10px 10px;
  }
  .player-controls {
    padding: 20px 0;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .target-row {
    max-width: 650px;
  }
  .record-page {
    grid-template-columns: 1fr;
  }
  .record-console {
    max-width: 100%;
  }
  .panel {
    padding: 22px;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: flex;
    flex-direction: column;
    height: 100dvh;
  }
  .sidebar {
    display: none;
  }
  .main-shell {
    flex: 1;
    min-height: 0;
  }
  .topbar {
    height: auto;
    min-height: 69px;
    padding: 12px 18px;
    flex-wrap: wrap;
    gap: 4px 10px;
  }
  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 9px;
  }
  .mobile-brand img {
    border-radius: 6px;
  }
  .mobile-brand strong {
    font-size: 16px;
  }
  .page-heading {
    display: none;
  }
  .top-actions {
    gap: 0;
    margin-left: auto;
  }
  .top-actions select {
    max-width: 116px;
    font-size: 12px;
  }
  .top-actions > .icon-button {
    width: 33px;
  }
  .top-actions > .icon-button svg {
    width: 18px;
  }
  .workspace {
    padding: 20px 18px 28px;
    scrollbar-gutter: auto;
  }
  .bottom-nav {
    display: flex;
    flex-shrink: 0;
    justify-content: space-around;
    align-items: center;
    background: #fffdf5;
    border-top: 1px solid var(--border);
    padding: 8px 10px max(8px, env(safe-area-inset-bottom));
    min-height: 71px;
  }
  .bottom-nav button {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 10px;
    color: var(--muted);
    width: 23%;
    padding: 6px 2px;
    min-height: 48px;
  }
  .bottom-nav button svg {
    width: 22px;
    height: 22px;
  }
  .bottom-nav button.active {
    color: var(--gold-dark);
    background: #f1e5c9;
  }
  .player-page {
    height: 100%;
    min-height: 0;
    gap: 18px;
  }
  .player-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-height: 0;
    flex: 1;
  }
  .queue-panel {
    flex: 1;
    min-height: 135px;
    border-radius: 8px;
  }
  .queue-panel > .section-heading {
    padding: 14px 16px 0;
    margin-bottom: 6px;
    min-height: 42px;
  }
  .queue-list {
    padding: 0 12px 10px;
  }
  .queue-row {
    margin: 7px 0;
  }
  .queue-row > button:first-child {
    padding: 12px 10px;
    min-height: 51px;
    font-size: 14px;
  }
  .queue-row .queue-number {
    display: block;
  }
  .queue-row small {
    display: block;
  }
  .listening-art {
    display: none;
  }
  .player-controls {
    padding: 0 12px;
    flex-shrink: 0;
    gap: 0;
  }
  .now-playing {
    min-height: 0;
    padding: 0;
  }
  .now-playing .eyebrow {
    display: none;
  }
  .now-playing h2 {
    font-family: inherit;
    font-size: 19px;
    margin: 0 0 4px;
    line-height: 1.3;
  }
  .now-playing p {
    font-size: 11px;
    min-height: 17px;
  }
  .timeline {
    margin: 13px 0 16px;
  }
  .timeline input {
    height: 10px;
  }
  .time-row {
    margin-top: 10px;
    font-size: 11px;
  }
  .transport {
    max-width: 400px;
    gap: 5px;
  }
  .main-play {
    height: 64px;
    width: 64px;
  }
  .main-play svg {
    width: 28px;
  }
  .transport-small {
    font-size: 10px;
    min-width: 46px;
  }
  .transport-small svg {
    width: 23px;
    height: 23px;
  }
  .player-bottom {
    margin: 7px 0 0;
    height: 18px;
    font-size: 9px;
  }
  .empty-state {
    min-height: 100px;
    padding: 18px 10px;
  }
  .empty-state > svg {
    width: 26px;
    height: 26px;
    margin-bottom: 10px;
  }
  .empty-state h3 {
    font-size: 17px;
  }
  .empty-state p {
    font-size: 11px;
    margin: 7px 0 12px;
  }
  .empty-state button {
    font-size: 12px;
    min-height: 34px;
    padding: 6px 12px;
  }
  .reference-toolbar {
    gap: 8px;
  }
  .reference-toolbar > .icon-button {
    height: 46px;
    width: 43px;
  }
  .reference-input {
    padding: 0 12px;
    gap: 8px;
  }
  .reference-input > svg {
    display: none;
  }
  .reference-input input {
    font-size: 16px;
  }
  .recent-popover {
    width: calc(100% - 102px);
  }
  .settings-grid {
    gap: 18px;
  }
  .panel {
    padding: 20px;
    border-radius: 8px;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .stats-grid strong {
    font-size: 22px;
  }
  .stats-grid span {
    font-size: 11px;
  }
  .record-page {
    gap: 18px;
  }
  .record-console {
    padding: 25px 20px;
  }
  .record-wave {
    height: 100px;
  }
  .field-row select {
    font-size: 16px;
  }
  .field-row > span {
    font-size: 14px;
  }
  .number-grid {
    max-height: 260px;
  }
  .recording-target .section-heading {
    margin-bottom: 8px;
  }
  .record-reference h2 {
    font-size: 24px;
  }
  .record-button {
    min-height: 68px;
    font-size: 20px;
  }
  .target-row {
    gap: 20px;
  }
  .target-inputs {
    gap: 7px;
  }
  .target-inputs input {
    width: 48px;
    font-size: 20px;
  }
  .target-go {
    width: 38px;
    min-width: 38px;
    min-height: 39px;
  }
  .target-track {
    padding-right: 13px;
    min-width: 85px;
    max-width: 240px;
  }
  .target-controls h3 {
    font-size: 12px;
  }
  .goal {
    font-size: 25px;
    right: -13px;
  }
  .runner {
    font-size: 25px;
  }
  .backup-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .editor-actions button {
    min-width: 0;
    flex: 1;
    padding: 9px 12px;
    font-size: 13px;
  }
  .saved-playlist-actions {
    flex-wrap: wrap;
  }
  .completion-progress.large h2 {
    font-size: 21px;
  }
  .completion-toolbar {
    margin-bottom: 0;
  }
  .completion-progress.large strong {
    font-size: 21px;
  }
  .completion-progress h2 {
    font-size: 16px;
  }
  .library-list article {
    gap: 5px;
  }
  .library-list strong {
    font-size: 13px;
  }
  .library-list .icon-button {
    width: 29px;
  }
  .modal-shade {
    padding: 16px;
  }
  .modal {
    max-height: calc(100dvh - 32px);
  }
  .modal-content {
    padding: 20px;
  }
  .modal header {
    padding: 12px 16px;
  }
  .modal footer {
    padding: 12px 20px 20px;
  }
  #toast {
    bottom: 90px;
  }
  .review-link {
    font-size: 20px;
  }
}
@media (max-width: 390px) {
  .workspace {
    padding-left: 14px;
    padding-right: 14px;
  }
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .top-actions select {
    max-width: 78px;
  }
  .mobile-brand strong {
    font-size: 14px;
  }
  .mobile-brand img {
    width: 28px;
    height: 28px;
  }
  .panel {
    padding: 16px;
  }
  .target-row {
    gap: 12px;
  }
  .target-inputs input {
    width: 43px;
  }
  .target-inputs {
    gap: 5px;
  }
  .target-track {
    min-width: 65px;
    padding-left: 0;
  }
  .stats-grid > div,
  .stats-grid > button {
    padding: 12px 8px;
    gap: 7px;
  }
  .stats-grid svg {
    width: 17px;
  }
  .stats-grid strong {
    font-size: 20px;
  }
  .number-grid {
    gap: 6px;
  }
  .queue-panel .section-heading h2 {
    font-size: 15px;
  }
  .queue-row small {
    display: none;
  }
}
@media (max-height: 740px) and (max-width: 760px) {
  .workspace.play-workspace {
    padding-top: 12px;
    padding-bottom: 14px;
  }
  .player-page {
    gap: 12px;
  }
  .player-layout {
    gap: 14px;
  }
  .timeline {
    margin: 10px 0 13px;
  }
  .now-playing h2 {
    font-size: 17px;
  }
  .now-playing p {
    font-size: 10px;
  }
  .main-play {
    height: 55px;
    width: 55px;
  }
  .transport-small svg {
    width: 21px;
    height: 21px;
  }
  .player-bottom {
    height: 14px;
    margin-top: 6px;
  }
  .queue-panel > .section-heading {
    padding-top: 9px;
    min-height: 35px;
  }
  .queue-panel > .section-heading h2 {
    font-size: 15px;
  }
  .queue-row > button:first-child {
    min-height: 45px;
    padding: 9px;
  }
  .empty-state h3 {
    font-size: 15px;
  }
  .empty-state p {
    display: none;
  }
  .empty-state button {
    margin-top: 10px;
  }
}
.draft-row {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.queue-menu {
  display: grid;
  gap: 10px;
}
@media (max-width: 760px) {
  .topbar:has(.page-heading button) .mobile-brand {
    display: none;
  }
  .topbar .page-heading:has(button) {
    display: flex;
  }
  .topbar .page-heading h1 {
    font-size: 18px;
  }
}
.draft-row > span {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.draft-row > .icon-button {
  width: 30px;
  height: 32px;
  min-height: 32px;
}
.draft-row svg {
  width: 16px;
  height: 16px;
}
@media (min-width: 1101px) {
  .settings-grid > section:first-child,
  .settings-grid > .statistics {
    grid-column: 1/-1;
  }
  .settings-grid > section:first-child .language-options {
    max-width: 600px;
  }
  .statistics .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
