/* 浅色 Soft UI：页面底色贴近 reading.html，控件沿 Soft UI Dashboard 软拟态。 */
:root {
  color-scheme: light;
  --bg: #f7f3ec;
  --ink: #1c1915;
  --muted: #6b645c;
  --rule: #e4ddd4;
  --mark: #0f6e56;
  --mark-soft: #d7f5ea;
  --chip: #fffdf9;
  --chip-line: #e4ddd4;
  --soft: #f0ebe3;
  --soft-deep: #e6dfd5;
  --soft-text: #1c1915;
  --soft-muted: #6b645c;
  --soft-hi: #ffffff;
  --soft-lo: #d4cdc3;
  --card: #fffdf9;
  --sans: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

body {
  background: var(--bg);
  color: var(--ink);
}

.shell {
  background: var(--bg);
}

nav {
  background: transparent;
  border-right: 0;
}

nav .nav-title,
nav .nav-group .nav-zh {
  color: var(--mark);
}

nav .nav-group {
  border-top-color: var(--rule);
}

nav .nav-group .nav-en,
nav a .nav-en,
.theme-pick {
  color: var(--muted);
}

nav a {
  color: var(--muted);
}

nav a:hover {
  background: var(--card);
  color: var(--ink);
  box-shadow: 4px 4px 10px var(--soft-lo), -4px -4px 10px var(--soft-hi);
}

nav a.active {
  background: var(--card);
  color: var(--ink);
  box-shadow:
    inset 3px 3px 8px var(--soft-lo),
    inset -2px -2px 6px var(--soft-hi);
}

nav a.active .nav-en {
  color: var(--muted);
  opacity: 1;
}

nav .top-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 14px;
}

nav .top-links a,
nav .suite-link,
.top-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 6px;
  border: 0;
  border-radius: 999px;
  color: var(--mark);
  background: var(--card);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 5px 5px 12px var(--soft-lo), -4px -4px 10px var(--soft-hi);
}

nav .top-links a:hover,
nav .suite-link:hover,
.top-links a:hover {
  background: var(--mark-soft);
  color: #0d3b2e;
}

.theme-pick select,
#chapter-search {
  letter-spacing: 0;
  font: 600 14px/1.4 var(--sans);
  color: var(--ink);
  background: var(--card);
  border: 0;
  border-radius: 12px;
  padding: 8px 10px;
  box-shadow:
    inset 3px 3px 7px var(--soft-lo),
    inset -2px -2px 5px var(--soft-hi);
}

#chapter-search {
  display: block;
  width: calc(100% - 20px);
  margin: 0 10px 12px;
}

.theme-pick {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 10px 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.learn-progress {
  margin: 0 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.learn-progress-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 5px 5px 12px var(--soft-lo), -4px -4px 10px var(--soft-hi);
}

.learn-progress-pie {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  flex: 0 0 auto;
  background: conic-gradient(var(--mark) var(--p, 0%), var(--soft-deep) 0);
  box-shadow:
    inset 2px 2px 5px rgba(0, 0, 0, 0.08),
    3px 3px 8px var(--soft-lo),
    -2px -2px 6px var(--soft-hi);
  position: relative;
}

.learn-progress-pie::after {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background: var(--card);
  box-shadow: inset 0 0 0 1px rgba(15, 110, 86, 0.08);
}

.learn-progress-copy { min-width: 0; }

.learn-progress-kicker {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.learn-progress-main {
  margin-top: 2px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.learn-progress-main em {
  color: var(--mark);
  font-style: normal;
  margin-left: 6px;
}

.learn-progress-theme {
  margin: 0 10px 12px;
  padding: 0 2px;
}

.learn-progress-bar {
  margin-top: 6px;
  height: 8px;
  border-radius: 999px;
  background: var(--soft-deep);
  box-shadow: inset 2px 2px 4px var(--soft-lo), inset -1px -1px 3px var(--soft-hi);
  overflow: hidden;
}

.learn-progress-bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f9a78, var(--mark));
}

.learn-progress-sub {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

nav a.nav-link {
  align-items: flex-start;
}

nav a .nav-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex: none;
  min-width: 3.2rem;
}

nav a .nav-bar {
  display: block;
  width: 3.2rem;
  height: 5px;
  border-radius: 999px;
  background: var(--soft-deep);
  overflow: hidden;
  box-shadow: inset 1px 1px 2px var(--soft-lo);
}

nav a .nav-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--mark);
}

nav .nav-group {
  position: relative;
}

nav .nav-group-meta {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.chapter-progress {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--card);
  box-shadow: 5px 5px 12px var(--soft-lo), -4px -4px 10px var(--soft-hi);
}

.chapter-progress-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.chapter-progress-top strong {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
}

.chapter-progress-top em {
  color: var(--mark);
  font-style: normal;
  margin-left: 6px;
}

.chapter-progress .learn-progress-bar {
  margin-top: 8px;
}

.nav-empty {
  margin: 4px 10px 8px;
  color: var(--muted);
  font-size: 13px;
}

.page {
  background: transparent;
}

.main-wrap {
  position: relative;
  min-height: 40vh;
}

header {
  border-bottom-color: var(--rule);
}

.kicker {
  color: var(--mark);
}

.lead,
.empty,
.group-head p,
footer {
  color: var(--muted);
}

.group-head h2 {
  color: var(--ink);
}

.say {
  color: var(--mark);
  background: var(--card);
  box-shadow: 3px 3px 8px var(--soft-lo), -2px -2px 5px var(--soft-hi);
}

.say:hover {
  background: var(--mark-soft);
  color: #0d3b2e;
}

.say.is-on {
  background: var(--mark);
  color: #f4fff9;
  box-shadow:
    inset 2px 2px 5px rgba(8, 55, 42, 0.28),
    inset -1px -1px 3px rgba(255, 255, 255, 0.16);
}

.scale > span:not(.arrow) {
  background: var(--card);
  border: 0;
  border-radius: 14px;
  box-shadow: 4px 4px 10px var(--soft-lo), -3px -3px 8px var(--soft-hi);
}

/* 喇叭在英文行内；中文只加左边距，和英文文字左对齐。 */
.scale > span:not(.arrow) > b {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.scale > span:not(.arrow) > b .say {
  margin: 0;
  flex: none;
}

.scale > span:not(.arrow) > small {
  display: block;
  margin-top: 3px;
  padding-left: calc(1.35em + 6px);
  text-align: left;
}

.scale .arrow {
  color: var(--muted);
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  min-width: 0;
  align-self: center;
}

.zh .note,
.scale span small .note,
.extra-list small .note {
  color: #4f7f8f;
}

.num {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mark {
  margin-left: auto;
  width: 1.7rem;
  height: 1.7rem;
  padding: 0;
  border: 0;
  background: var(--card);
  color: var(--muted);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
  box-shadow: 3px 3px 8px var(--soft-lo), -2px -2px 6px var(--soft-hi);
}

.mark svg {
  width: 1.15rem;
  height: 1.15rem;
  display: block;
}

.mark svg path { stroke: currentColor; }

.mark.on {
  color: #6a675f;
  box-shadow:
    inset 2px 2px 5px var(--soft-lo),
    inset -1px -1px 3px var(--soft-hi);
}

.mark.on svg circle { fill: currentColor; }

.mark.on svg path { stroke: #fffdf9; }

.mark:disabled { opacity: 0.55; }

.scale span .mark {
  margin-top: 6px;
}

li.on .num,
li.on .en,
li.on .zh,
li.on .scale-label,
.step.on,
.step.on b,
.step.on small,
.extra-list span.on,
.extra-list span.on b,
.extra-list span.on small {
  color: #6a675f;
}

li.on .en em {
  color: inherit;
  text-decoration-color: #6a675f;
}

.step.on {
  background: #f3eee6;
  border-color: var(--rule);
}

.m-top,
.m-sheet-backdrop,
.m-player-expand {
  display: none;
}

.player {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  margin: 0 0 18px;
  background: var(--soft);
  border-radius: 22px;
  box-shadow:
    10px 10px 24px var(--soft-lo),
    -8px -8px 20px var(--soft-hi);
}

.player-dock {
  display: contents;
}

.player-dock #play-toggle {
  order: 1;
}

.player-main {
  order: 2;
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  min-width: 0;
}

.player-dock #play-status {
  order: 3;
}

.player-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.player-label {
  color: var(--soft-text);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.soft-stepper {
  display: inline-flex;
  align-items: center;
  gap: 0;
  padding: 4px;
  border-radius: 16px;
  background: var(--soft-deep);
  box-shadow:
    inset 3px 3px 8px var(--soft-lo),
    inset -2px -2px 5px var(--soft-hi);
}

.soft-step {
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 12px;
  background: var(--card);
  color: var(--soft-text);
  font: 700 16px/1 var(--sans);
  cursor: pointer;
  box-shadow: 3px 3px 8px var(--soft-lo), -2px -2px 5px var(--soft-hi);
}

.soft-step:hover {
  color: var(--mark);
}

.soft-step:active {
  box-shadow:
    inset 2px 2px 5px var(--soft-lo),
    inset -1px -1px 3px var(--soft-hi);
}

.soft-step:disabled {
  opacity: 0.35;
  cursor: default;
}

.soft-step-value {
  min-width: 2rem;
  color: var(--mark);
  font: 800 15px/1 var(--sans);
  text-align: center;
}

.player-gap {
  min-width: min(320px, 100%);
}

.soft-slider {
  position: relative;
  width: min(168px, 42vw);
  height: 28px;
  display: flex;
  align-items: center;
  outline: none;
  cursor: pointer;
  touch-action: none;
}

.soft-slider-track {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: var(--soft-deep);
  box-shadow:
    inset 3px 3px 7px var(--soft-lo),
    inset -2px -2px 4px var(--soft-hi);
}

.soft-slider-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d5a46, #17a37c);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  pointer-events: none;
}

.soft-slider-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(145deg, #ffffff, #d7f5ea);
  box-shadow:
    3px 3px 8px var(--soft-lo),
    -1px -1px 3px var(--soft-hi),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: grab;
}

.soft-slider-thumb:active {
  cursor: grabbing;
}

.soft-slider:focus-visible .soft-slider-thumb {
  box-shadow:
    0 0 0 3px rgba(15, 110, 86, 0.28),
    3px 3px 8px var(--soft-lo);
}

.player-gap em {
  min-width: 3.6rem;
  color: var(--mark);
  font: 800 13px/1 var(--sans);
  font-style: normal;
}

.player-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.player-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px 9px 12px;
  border: 0;
  border-radius: 999px;
  color: var(--soft-muted);
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.02em;
  cursor: pointer;
  background: var(--card);
  box-shadow: 5px 5px 12px var(--soft-lo), -3px -3px 8px var(--soft-hi);
  transition: color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.player-chip::before {
  content: "";
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 50%;
  background: var(--soft-deep);
  box-shadow:
    inset 2px 2px 4px var(--soft-lo),
    inset -1px -1px 2px var(--soft-hi);
}

.player-chip:hover {
  color: var(--soft-text);
}

.player-chip[aria-pressed="true"] {
  color: #0d3b2e;
  background: var(--mark-soft);
  box-shadow:
    inset 3px 3px 8px rgba(13, 90, 70, 0.16),
    inset -2px -2px 5px rgba(255, 255, 255, 0.7);
}

.player-chip[aria-pressed="true"]::before {
  background: radial-gradient(circle at 35% 30%, #7de0c0, #0f6e56 72%);
  box-shadow:
    0 0 0 2px rgba(15, 110, 86, 0.18),
    1px 1px 3px rgba(0, 0, 0, 0.12);
}

#play-toggle {
  flex: none;
  width: 4.4rem;
  height: 4.4rem;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #1aa37c, #0f6e56);
  color: #f4fff9;
  font: 800 14px/1 var(--sans);
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow:
    8px 8px 16px var(--soft-lo),
    -5px -5px 12px var(--soft-hi),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

#play-toggle:hover {
  transform: translateY(-1px);
}

#play-toggle:active {
  transform: translateY(1px);
  box-shadow:
    inset 4px 4px 10px rgba(8, 60, 45, 0.28),
    inset -2px -2px 6px rgba(255, 255, 255, 0.18);
}

#play-toggle.is-stop {
  background: linear-gradient(145deg, #ffffff, #ebe4da);
  color: var(--ink);
  box-shadow:
    8px 8px 16px var(--soft-lo),
    -5px -5px 12px var(--soft-hi);
}

#play-toggle.is-stop:hover {
  background: linear-gradient(145deg, #ffffff, #f3eee6);
}

#play-status {
  flex: 1 1 140px;
  min-width: 0;
  color: var(--soft-muted);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 720px) {
  :root {
    --m-top-h: 56px;
    --m-dock-h: 72px;
  }

  body {
    padding-top: calc(var(--m-top-h) + env(safe-area-inset-top, 0px));
    padding-bottom: calc(var(--m-dock-h) + env(safe-area-inset-bottom, 0px));
  }

  body.m-chapters-open {
    overflow: hidden;
  }

  .m-top {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    align-items: center;
    gap: 10px;
    min-height: var(--m-top-h);
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
    background: rgba(247, 243, 236, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--rule);
  }

  .m-top-btn,
  .m-player-expand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: var(--card);
    color: var(--mark);
    font: 700 13px/1 var(--sans);
    box-shadow: 4px 4px 10px var(--soft-lo), -3px -3px 8px var(--soft-hi);
    cursor: pointer;
  }

  .m-top-copy {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .m-top-copy strong {
    font: 700 17px/1.2 var(--sans);
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .m-top-copy span {
    font: 600 13px/1.25 var(--sans);
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .m-top-prog {
    flex: none;
    min-width: 3.2rem;
    text-align: right;
    font: 700 13px/1 var(--sans);
    font-variant-numeric: tabular-nums;
    color: var(--mark);
  }

  .m-sheet-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 45;
    background: rgba(28, 25, 21, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.m-chapters-open .m-sheet-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .shell {
    display: block;
    max-width: none;
  }

  nav#toc {
    position: fixed;
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    height: min(78vh, 640px);
    max-height: calc(100dvh - var(--m-top-h) - 12px);
    padding: 8px 14px calc(12px + env(safe-area-inset-bottom, 0px));
    border-right: 0;
    border-radius: 22px 22px 0 0;
    background: var(--bg);
    box-shadow: 0 -12px 40px rgba(28, 25, 21, 0.18);
    transform: translateY(calc(100% + 32px));
    transition: transform 0.24s ease;
    overflow: hidden;
    pointer-events: none;
  }

  nav#toc > * {
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    float: none;
  }

  body.m-chapters-open nav#toc {
    transform: translateY(0);
    pointer-events: auto;
  }

  nav#toc::before {
    content: "";
    display: block;
    flex: none;
    width: 42px;
    height: 4px;
    margin: 2px auto 12px;
    border-radius: 999px;
    background: var(--soft-lo);
  }

  nav#toc .learn-progress-theme,
  nav#toc .nav-title {
    display: none;
  }

  nav#toc .top-links,
  nav#toc .learn-progress,
  nav#toc .theme-pick,
  nav#toc #chapter-search {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
    box-sizing: border-box;
  }

  nav#toc #chapter-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
  }

  nav#toc a.nav-link {
    display: flex;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: center;
  }

  nav#toc a .nav-label {
    flex: 1 1 auto;
    min-width: 0;
  }

  nav#toc a .nav-zh,
  nav#toc a .nav-en,
  nav#toc .learn-progress-kicker,
  nav#toc .learn-progress-sub,
  nav#toc .learn-progress-main {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .page {
    padding: 6px 10px 12px;
  }

  .page > .player {
    position: fixed;
    top: auto;
    left: 10px;
    right: 10px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    z-index: 25;
    height: auto;
    max-height: min(52vh, 360px);
    overflow: auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    margin: 0;
    padding: 8px 12px;
    border-radius: 22px;
    box-shadow:
      8px 8px 24px rgba(28, 25, 21, 0.14),
      -4px -4px 12px var(--soft-hi);
  }

  .player-dock {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
  }

  .player-dock #play-toggle,
  .player-dock #play-status,
  .player-main {
    order: unset;
  }

  #play-toggle {
    width: 3.4rem;
    height: 3.4rem;
    font-size: 13px;
  }

  #play-status {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .m-player-expand {
    display: inline-flex;
  }

  .player-main {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 12px;
    margin-top: 8px;
    border-top: 1px solid var(--rule);
  }

  body.m-player-open .player-main {
    display: flex;
  }

  body.m-player-open {
    --m-dock-h: 280px;
  }

  .player-field,
  .player-gap {
    width: 100%;
    min-width: 0;
    justify-content: space-between;
  }

  .soft-slider {
    width: min(180px, 48vw);
  }

  .player-chips {
    width: 100%;
  }

  .player-chip {
    min-height: 40px;
  }

  .main-wrap {
    min-height: 50vh;
  }

  header h1 {
    font-size: 1.7rem;
  }

  .lead {
    font-size: 16px;
    line-height: 1.45;
  }

  li {
    padding: 14px 0 12px;
  }

  .num {
    font-size: 14px;
  }

  .en {
    font-size: 22px;
    line-height: 1.4;
  }

  .zh {
    font-size: 16px;
    line-height: 1.45;
  }

  .say,
  .mark {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }

  .say svg,
  .mark svg {
    width: 20px;
    height: 20px;
  }

  .scale {
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .scale .arrow {
    display: none;
  }

  .scale > span:not(.arrow) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 8px;
    row-gap: 2px;
    align-items: center;
    width: 100%;
    min-width: 0;
    padding: 10px 10px 10px 12px;
  }

  .scale > span:not(.arrow) > b {
    grid-column: 1;
    grid-row: 1;
    font-size: 18px;
    line-height: 1.35;
  }

  .scale > span:not(.arrow) > small {
    grid-column: 1;
    grid-row: 2;
    margin-top: 0;
    padding-left: 38px;
    font-size: 15px;
    line-height: 1.35;
  }

  .scale > span:not(.arrow) > .mark {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .extra-list b {
    font-size: 17px;
  }

  .extra-list small {
    font-size: 15px;
  }

  .extra-list {
    grid-template-columns: 1fr;
  }

  .page-loading {
    padding-top: 32px;
  }
}

.extra {
  margin: 18px 0 8px;
  padding: 16px 18px 14px;
  background: var(--card);
  border: 0;
  border-radius: 18px;
  box-shadow: 6px 6px 16px var(--soft-lo), -6px -6px 16px var(--soft-hi);
}

.extra-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.extra-head b {
  color: var(--mark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.extra-head > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.extra-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 8px;
}

.extra-list span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
  padding: 10px 12px;
  margin: 0;
  border-bottom: 0;
  border-radius: 14px;
  background: var(--soft);
  box-shadow: inset 2px 2px 6px var(--soft-lo), inset -2px -2px 5px var(--soft-hi);
}

.extra-list b {
  color: var(--ink);
  min-width: 0;
}

.extra-list .mark {
  margin-left: auto;
}

.extra-list small {
  color: var(--muted);
}

.extra-list small .note {
  color: #4f7f8f;
}

.extra-list span.on {
  background: #f3eee6;
}

.extra-head .pager {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.pager button {
  border: 0;
  background: var(--soft);
  color: var(--ink);
  border-radius: 999px;
  font: 600 12px/1 var(--sans);
  padding: 6px 12px;
  cursor: pointer;
  box-shadow: 3px 3px 8px var(--soft-lo), -2px -2px 5px var(--soft-hi);
}

.pager button:disabled { opacity: 0.35; cursor: default; }

li.is-playing,
.step.is-playing,
.extra-list span.is-playing {
  outline: 2px solid rgba(15, 110, 86, 0.45);
  outline-offset: 2px;
  border-radius: 10px;
}

.page-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 48px;
  background: rgba(247, 243, 236, 0.82);
  pointer-events: all;
}
.page-loading[hidden] { display: none !important; }
.page-loading-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--card);
  color: var(--ink);
  font: 600 14px/1.3 var(--sans);
  box-shadow: 6px 6px 16px var(--soft-lo), -6px -6px 16px var(--soft-hi);
}
.page-loading-spin {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--soft-lo);
  border-top-color: var(--mark);
  animation: page-spin .7s linear infinite;
}
@keyframes page-spin { to { transform: rotate(360deg); } }
