*, ::before, ::after {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}

::backdrop {
  --tw-border-spacing-x: 0;
  --tw-border-spacing-y: 0;
  --tw-translate-x: 0;
  --tw-translate-y: 0;
  --tw-rotate: 0;
  --tw-skew-x: 0;
  --tw-skew-y: 0;
  --tw-scale-x: 1;
  --tw-scale-y: 1;
  --tw-pan-x:  ;
  --tw-pan-y:  ;
  --tw-pinch-zoom:  ;
  --tw-scroll-snap-strictness: proximity;
  --tw-gradient-from-position:  ;
  --tw-gradient-via-position:  ;
  --tw-gradient-to-position:  ;
  --tw-ordinal:  ;
  --tw-slashed-zero:  ;
  --tw-numeric-figure:  ;
  --tw-numeric-spacing:  ;
  --tw-numeric-fraction:  ;
  --tw-ring-inset:  ;
  --tw-ring-offset-width: 0px;
  --tw-ring-offset-color: #fff;
  --tw-ring-color: rgb(59 130 246 / 0.5);
  --tw-ring-offset-shadow: 0 0 #0000;
  --tw-ring-shadow: 0 0 #0000;
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  --tw-blur:  ;
  --tw-brightness:  ;
  --tw-contrast:  ;
  --tw-grayscale:  ;
  --tw-hue-rotate:  ;
  --tw-invert:  ;
  --tw-saturate:  ;
  --tw-sepia:  ;
  --tw-drop-shadow:  ;
  --tw-backdrop-blur:  ;
  --tw-backdrop-brightness:  ;
  --tw-backdrop-contrast:  ;
  --tw-backdrop-grayscale:  ;
  --tw-backdrop-hue-rotate:  ;
  --tw-backdrop-invert:  ;
  --tw-backdrop-opacity:  ;
  --tw-backdrop-saturate:  ;
  --tw-backdrop-sepia:  ;
  --tw-contain-size:  ;
  --tw-contain-layout:  ;
  --tw-contain-paint:  ;
  --tw-contain-style:  ;
}/*
! tailwindcss v3.4.19 | MIT License | https://tailwindcss.com
*//*
1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
2. Allow adding a border to an element by just adding a border-width. (https://github.com/tailwindcss/tailwindcss/pull/116)
*/

*,
::before,
::after {
  box-sizing: border-box; /* 1 */
  border-width: 0; /* 2 */
  border-style: solid; /* 2 */
  border-color: #e5e7eb; /* 2 */
}

::before,
::after {
  --tw-content: '';
}

/*
1. Use a consistent sensible line-height in all browsers.
2. Prevent adjustments of font size after orientation changes in iOS.
3. Use a more readable tab size.
4. Use the user's configured `sans` font-family by default.
5. Use the user's configured `sans` font-feature-settings by default.
6. Use the user's configured `sans` font-variation-settings by default.
7. Disable tap highlights on iOS
*/

html,
:host {
  line-height: 1.5; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
  -moz-tab-size: 4; /* 3 */
  tab-size: 4; /* 3 */
  font-family: ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 4 */
  font-feature-settings: normal; /* 5 */
  font-variation-settings: normal; /* 6 */
  -webkit-tap-highlight-color: transparent; /* 7 */
}

/*
1. Remove the margin in all browsers.
2. Inherit line-height from `html` so users can set them as a class directly on the `html` element.
*/

body {
  margin: 0; /* 1 */
  line-height: inherit; /* 2 */
}

/*
1. Add the correct height in Firefox.
2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
3. Ensure horizontal rules are visible by default.
*/

hr {
  height: 0; /* 1 */
  color: inherit; /* 2 */
  border-top-width: 1px; /* 3 */
}

/*
Add the correct text decoration in Chrome, Edge, and Safari.
*/

abbr:where([title]) {
  text-decoration: underline dotted;
}

/*
Remove the default font size and weight for headings.
*/

h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

/*
Reset links to optimize for opt-in styling instead of opt-out.
*/

a {
  color: inherit;
  text-decoration: inherit;
}

/*
Add the correct font weight in Edge and Safari.
*/

b,
strong {
  font-weight: bolder;
}

/*
1. Use the user's configured `mono` font-family by default.
2. Use the user's configured `mono` font-feature-settings by default.
3. Use the user's configured `mono` font-variation-settings by default.
4. Correct the odd `em` font sizing in all browsers.
*/

code,
kbd,
samp,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; /* 1 */
  font-feature-settings: normal; /* 2 */
  font-variation-settings: normal; /* 3 */
  font-size: 1em; /* 4 */
}

/*
Add the correct font size in all browsers.
*/

small {
  font-size: 80%;
}

/*
Prevent `sub` and `sup` elements from affecting the line height in all browsers.
*/

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/*
1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
3. Remove gaps between table borders by default.
*/

table {
  text-indent: 0; /* 1 */
  border-color: inherit; /* 2 */
  border-collapse: collapse; /* 3 */
}

/*
1. Change the font styles in all browsers.
2. Remove the margin in Firefox and Safari.
3. Remove default padding in all browsers.
*/

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-feature-settings: inherit; /* 1 */
  font-variation-settings: inherit; /* 1 */
  font-size: 100%; /* 1 */
  font-weight: inherit; /* 1 */
  line-height: inherit; /* 1 */
  letter-spacing: inherit; /* 1 */
  color: inherit; /* 1 */
  margin: 0; /* 2 */
  padding: 0; /* 3 */
}

/*
Remove the inheritance of text transform in Edge and Firefox.
*/

button,
select {
  text-transform: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Remove default button styles.
*/

button,
input:where([type='button']),
input:where([type='reset']),
input:where([type='submit']) {
  -webkit-appearance: button; /* 1 */
  background-color: transparent; /* 2 */
  background-image: none; /* 2 */
}

/*
Use the modern Firefox focus style for all focusable elements.
*/

:-moz-focusring {
  outline: auto;
}

/*
Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
*/

:-moz-ui-invalid {
  box-shadow: none;
}

/*
Add the correct vertical alignment in Chrome and Firefox.
*/

progress {
  vertical-align: baseline;
}

/*
Correct the cursor style of increment and decrement buttons in Safari.
*/

::-webkit-inner-spin-button,
::-webkit-outer-spin-button {
  height: auto;
}

/*
1. Correct the odd appearance in Chrome and Safari.
2. Correct the outline style in Safari.
*/

[type='search'] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/*
Remove the inner padding in Chrome and Safari on macOS.
*/

::-webkit-search-decoration {
  -webkit-appearance: none;
}

/*
1. Correct the inability to style clickable types in iOS and Safari.
2. Change font properties to `inherit` in Safari.
*/

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/*
Add the correct display in Chrome and Safari.
*/

summary {
  display: list-item;
}

/*
Removes the default spacing and border for appropriate elements.
*/

blockquote,
dl,
dd,
h1,
h2,
h3,
h4,
h5,
h6,
hr,
figure,
p,
pre {
  margin: 0;
}

fieldset {
  margin: 0;
  padding: 0;
}

legend {
  padding: 0;
}

ol,
ul,
menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

/*
Reset default styling for dialogs.
*/
dialog {
  padding: 0;
}

/*
Prevent resizing textareas horizontally by default.
*/

textarea {
  resize: vertical;
}

/*
1. Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
2. Set the default placeholder color to the user's configured gray 400 color.
*/

input::placeholder,
textarea::placeholder {
  opacity: 1; /* 1 */
  color: #9ca3af; /* 2 */
}

/*
Set the default cursor for buttons.
*/

button,
[role="button"] {
  cursor: pointer;
}

/*
Make sure disabled buttons don't get the pointer cursor.
*/
:disabled {
  cursor: default;
}

/*
1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
   This can trigger a poorly considered lint error in some tools but is included by design.
*/

img,
svg,
video,
canvas,
audio,
iframe,
embed,
object {
  display: block; /* 1 */
  vertical-align: middle; /* 2 */
}

/*
Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
*/

img,
video {
  max-width: 100%;
  height: auto;
}

/* Make elements with the HTML hidden attribute stay hidden by default */
[hidden]:where(:not([hidden="until-found"])) {
  display: none;
}
.\!container {
  width: 100% !important;
}
.container {
  width: 100%;
}
@media (min-width: 640px) {

  .\!container {
    max-width: 640px !important;
  }

  .container {
    max-width: 640px;
  }
}
@media (min-width: 768px) {

  .\!container {
    max-width: 768px !important;
  }

  .container {
    max-width: 768px;
  }
}
@media (min-width: 1024px) {

  .\!container {
    max-width: 1024px !important;
  }

  .container {
    max-width: 1024px;
  }
}
@media (min-width: 1280px) {

  .\!container {
    max-width: 1280px !important;
  }

  .container {
    max-width: 1280px;
  }
}
@media (min-width: 1536px) {

  .\!container {
    max-width: 1536px !important;
  }

  .container {
    max-width: 1536px;
  }
}
#root .pointer-events-none {
  pointer-events: none;
}
#root .\!visible {
  visibility: visible !important;
}
#root .visible {
  visibility: visible;
}
#root .relative {
  position: relative;
}
#root .mt-3 {
  margin-top: 0.75rem;
}
#root .mt-4 {
  margin-top: 1rem;
}
#root .\!inline {
  display: inline !important;
}
#root .inline {
  display: inline;
}
#root .flex {
  display: flex;
}
#root .table {
  display: table;
}
#root .hidden {
  display: none;
}
#root .size-4 {
  width: 1rem;
  height: 1rem;
}
#root .h-10 {
  height: 2.5rem;
}
#root .h-11 {
  height: 2.75rem;
}
#root .h-12 {
  height: 3rem;
}
#root .h-24 {
  height: 6rem;
}
#root .h-9 {
  height: 2.25rem;
}
#root .w-10 {
  width: 2.5rem;
}
#root .w-11 {
  width: 2.75rem;
}
#root .w-fit {
  width: fit-content;
}
#root .shrink-0 {
  flex-shrink: 0;
}
#root .transform {
  transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
}
#root .select-text {
  user-select: text;
}
#root .resize {
  resize: both;
}
#root .scroll-m-20 {
  scroll-margin: 5rem;
}
#root .flex-row {
  flex-direction: row;
}
#root .flex-col {
  flex-direction: column;
}
#root .items-center {
  align-items: center;
}
#root .justify-center {
  justify-content: center;
}
#root .gap-0 {
  gap: 0px;
}
#root .gap-1 {
  gap: 0.25rem;
}
#root .gap-1\.5 {
  gap: 0.375rem;
}
#root .gap-2 {
  gap: 0.5rem;
}
#root .gap-6 {
  gap: 1.5rem;
}
#root .overflow-hidden {
  overflow: hidden;
}
#root .whitespace-nowrap {
  white-space: nowrap;
}
#root .text-balance {
  text-wrap: balance;
}
#root .rounded {
  border-radius: 0.25rem;
}
#root .rounded-2xl {
  border-radius: 1rem;
}
#root .rounded-full {
  border-radius: 9999px;
}
#root .rounded-md {
  border-radius: 0.375rem;
}
#root .rounded-xl {
  border-radius: 0.75rem;
}
#root .border {
  border-width: 1px;
}
#root .border-0 {
  border-width: 0px;
}
#root .border-b {
  border-bottom-width: 1px;
}
#root .border-l-2 {
  border-left-width: 2px;
}
#root .border-border {
  --tw-border-opacity: 1;
  border-color: rgb(var(--ds-border) / var(--tw-border-opacity, 1));
}
#root .border-transparent {
  border-color: transparent;
}
#root .bg-background {
  --tw-bg-opacity: 1;
  background-color: rgb(var(--ds-surface) / var(--tw-bg-opacity, 1));
}
#root .bg-card {
  --tw-bg-opacity: 1;
  background-color: rgb(var(--ds-surface) / var(--tw-bg-opacity, 1));
}
#root .bg-destructive {
  --tw-bg-opacity: 1;
  background-color: rgb(var(--ds-primary) / var(--tw-bg-opacity, 1));
}
#root .bg-muted {
  --tw-bg-opacity: 1;
  background-color: rgb(var(--ds-muted) / var(--tw-bg-opacity, 1));
}
#root .bg-primary {
  --tw-bg-opacity: 1;
  background-color: rgb(var(--ds-primary) / var(--tw-bg-opacity, 1));
}
#root .bg-secondary {
  --tw-bg-opacity: 1;
  background-color: rgb(var(--ds-muted) / var(--tw-bg-opacity, 1));
}
#root .p-0 {
  padding: 0px;
}
#root .px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
#root .px-3 {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
#root .px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
#root .px-5 {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
#root .px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
#root .px-\[0\.3rem\] {
  padding-left: 0.3rem;
  padding-right: 0.3rem;
}
#root .py-0\.5 {
  padding-top: 0.125rem;
  padding-bottom: 0.125rem;
}
#root .py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
#root .py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
#root .py-\[0\.2rem\] {
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}
#root .pb-2 {
  padding-bottom: 0.5rem;
}
#root .pl-3 {
  padding-left: 0.75rem;
}
#root .text-center {
  text-align: center;
}
#root .font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
#root .text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}
#root .text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}
#root .text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}
#root .text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
#root .text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
#root .text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
#root .text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
#root .text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
#root .font-extrabold {
  font-weight: 800;
}
#root .font-medium {
  font-weight: 500;
}
#root .font-semibold {
  font-weight: 600;
}
#root .italic {
  font-style: italic;
}
#root .leading-7 {
  line-height: 1.75rem;
}
#root .leading-none {
  line-height: 1;
}
#root .tracking-tight {
  letter-spacing: -0.025em;
}
#root .text-card-foreground {
  --tw-text-opacity: 1;
  color: rgb(var(--ds-foreground) / var(--tw-text-opacity, 1));
}
#root .text-foreground {
  --tw-text-opacity: 1;
  color: rgb(var(--ds-foreground) / var(--tw-text-opacity, 1));
}
#root .text-muted-foreground {
  --tw-text-opacity: 1;
  color: rgb(var(--ds-secondary-text) / var(--tw-text-opacity, 1));
}
#root .text-primary {
  --tw-text-opacity: 1;
  color: rgb(var(--ds-primary) / var(--tw-text-opacity, 1));
}
#root .text-primary-foreground {
  --tw-text-opacity: 1;
  color: rgb(var(--ds-surface) / var(--tw-text-opacity, 1));
}
#root .text-secondary-foreground {
  --tw-text-opacity: 1;
  color: rgb(var(--ds-foreground) / var(--tw-text-opacity, 1));
}
#root .text-white {
  --tw-text-opacity: 1;
  color: rgb(255 255 255 / var(--tw-text-opacity, 1));
}
#root .underline-offset-4 {
  text-underline-offset: 4px;
}
#root .opacity-50 {
  opacity: 0.5;
}
#root .shadow-none {
  --tw-shadow: 0 0 #0000;
  --tw-shadow-colored: 0 0 #0000;
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
#root .shadow-sm {
  --tw-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);
  box-shadow: var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);
}
#root .shadow-black\/5 {
  --tw-shadow-color: rgb(0 0 0 / 0.05);
  --tw-shadow: var(--tw-shadow-colored);
}
#root .outline-none {
  outline: 2px solid transparent;
  outline-offset: 2px;
}
#root .outline {
  outline-style: solid;
}
#root .blur {
  --tw-blur: blur(8px);
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
#root .filter {
  filter: var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow);
}
#root .transition-\[color\2c box-shadow\] {
  transition-property: color,box-shadow;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
#root .transition-all {
  transition-property: all;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
#root .transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}
#root .ease-in {
  transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
#root .ease-out {
  transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}
:root{font-family:"PingFang SC","Microsoft YaHei",sans-serif;color:rgb(var(--ds-primary));background:rgb(var(--ds-canvas));font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button{cursor:pointer;color:inherit}button:disabled{cursor:wait;opacity:.5}button:focus-visible,input:focus-visible{outline:2px solid rgb(var(--ds-primary));outline-offset:4px}button, input[type=checkbox], input[type=range]{touch-action:manipulation}button svg{flex-shrink:0}#root [role=button]{min-height:44px}#root [role=button] [dir]{font-family:inherit}h1,h2,h3,p{margin:0}.muted{color:rgb(var(--ds-secondary-text));line-height:1.8}.app{min-height:100dvh}.library-header{height:88px;padding:0 5%;display:flex;align-items:center;gap:24px;border-bottom:1px solid rgb(var(--ds-border))}.brand{display:flex;gap:12px;align-items:center}.brand strong{font-size:19px;font-weight:650;letter-spacing:2px}.edition{margin-left:auto;font-size:13px;color:rgb(var(--ds-secondary-text))}.library-content{max-width:1160px;margin:auto;padding:50px 5% 35px}.library-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:30px}.eyebrow{font-size:10px;color:rgb(var(--ds-secondary-text));letter-spacing:2.4px;font-weight:600;margin-bottom:12px}h1{font-size:34px;font-weight:600;letter-spacing:1px}.library-heading h1{margin-bottom:10px}.library-heading h1 span{font-size:17px;color:rgb(var(--ds-subtle-text));letter-spacing:0}.search{display:flex;align-items:center;gap:12px;padding:0 16px;height:50px;background:rgb(var(--ds-muted));border-radius:13px;color:rgb(var(--ds-secondary-text))}.search input{background:transparent;border:0;outline:0;width:100%;color:rgb(var(--ds-primary))}.section-label{display:flex;justify-content:space-between;margin:30px 0 18px;font-size:14px}.section-label span:last-child{font-size:12px;color:rgb(var(--ds-subtle-text))}.score-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.score-card-link{border:0;background:none;text-align:left;padding:0;border-radius:16px;box-shadow:0 4px 20px rgb(var(--ds-overlay) / 0.02)}.cover{min-height:272px;position:relative;padding:25px 28px;background:rgb(var(--ds-border));color:rgb(var(--ds-primary));display:flex;flex-direction:column;overflow:hidden}.cover-1{background:rgb(var(--ds-border));color:rgb(var(--ds-primary))}.cover-2{background:rgb(var(--ds-border));color:rgb(var(--ds-primary))}.cover-top{display:flex;justify-content:space-between;font-size:9px;letter-spacing:2px;opacity:.65}.cover-title{font-family:"Songti SC","SimSun",serif;font-size:37px;letter-spacing:7px;margin:37px 0 30px;position:relative;z-index:1}.cover-lines{height:40px;background:repeating-linear-gradient(to bottom,transparent 0,transparent 8px,currentColor 8px,currentColor 9px);opacity:.25;position:absolute;left:56%;right:-25px;top:139px;transform:rotate(-12deg)}.cover-lines svg{background:inherit;position:absolute;top:-10px;left:40px}.cover-bottom{margin-top:auto;font-size:11px;letter-spacing:1px;opacity:.7}.card-info{display:flex;align-items:center;justify-content:space-between;padding:22px 24px;background:rgb(var(--ds-surface))}.card-info h2{font-size:18px;font-weight:600;margin-bottom:7px}.card-info p{font-size:12px;color:rgb(var(--ds-secondary-text))}.library-footnote{text-align:center;margin-top:48px;color:rgb(var(--ds-subtle-text));font-size:12px}.empty{padding:40px 0;color:rgb(var(--ds-secondary-text))}.feedback{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90vw;background:rgb(var(--ds-primary));color:rgb(var(--ds-surface));padding:14px 20px;border-radius:12px;font-size:13px;z-index:20;display:flex;gap:16px}.feedback button{background:none;border:0;color:rgb(var(--ds-surface))}input[type=range]::-webkit-slider-thumb{cursor:pointer}
@media(min-width:1100px){.score-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cover{min-height:300px}}
@media(max-width:600px){.library-header{height:70px}.edition{display:none}.library-header>[role=button]{margin-left:auto}.library-content{padding-top:30px}.library-heading h1{font-size:29px}.library-heading .muted{font-size:12px}.score-grid{gap:15px}.cover{padding:18px;min-height:225px}.cover-title{font-size:28px;letter-spacing:3px}.cover-top{font-size:7px;letter-spacing:1px}.cover-bottom{font-size:9px}.card-info{padding:17px 14px}.card-info p{font-size:10px;line-height:1.7}.card-info h2{font-size:16px}.section-label span:last-child{font-size:10px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}

/* Document-first interface: neutral surfaces, monochrome actions, compact chrome. */
:root{color:rgb(var(--ds-primary));background:rgb(var(--ds-canvas))}
.library-header{height:64px;padding:0 32px;background:rgb(var(--ds-surface));border-color:rgb(var(--ds-border))}
.brand strong{font-size:17px;font-weight:600;letter-spacing:0}
.brand svg{color:rgb(var(--ds-primary))}
.library-header>[role=button]{margin-left:auto}
.library-content{max-width:1200px;padding:30px 32px}
.library-heading{margin-bottom:20px}
.library-heading h1{font-size:28px;letter-spacing:0;margin:0}
.search{background:rgb(var(--ds-muted));height:44px;border-radius:10px;margin-bottom:28px;color:rgb(var(--ds-subtle-text))}
.search input{color:rgb(var(--ds-primary))}
.score-grid{grid-template-columns:repeat(auto-fill,minmax(180px,220px));gap:28px}
.score-card-link{box-shadow:none;border-radius:8px}
#root .score-card-link>div{background:transparent;border-radius:8px}
.cover{min-height:0;aspect-ratio:3/4;padding:22px;background:rgb(var(--ds-muted));color:rgb(var(--ds-primary));border:1px solid rgb(var(--ds-border));border-radius:5px;box-shadow:2px 3px 6px rgb(var(--ds-overlay) / 0.051)}
.cover-1{background:rgb(var(--ds-muted));color:rgb(var(--ds-primary));border-color:rgb(var(--ds-border))}
.cover-2{background:rgb(var(--ds-border));color:rgb(var(--ds-primary));border-color:rgb(var(--ds-border))}
.cover-title{font-size:28px;letter-spacing:3px;margin:26px 0 0}
.cover-lines{top:62%;left:24%;opacity:.17;transform:none}
.card-info{padding:13px 2px;background:transparent;align-items:flex-start}
.card-info h2{font-size:15px;margin-bottom:5px;font-weight:500}
.card-info p{font-size:12px;color:rgb(var(--ds-subtle-text));line-height:1.5}
.card-info>svg{display:none}
.feedback{background:rgb(var(--ds-primary))}
@media(max-width:600px){.library-header{padding:0 20px}.library-content{padding:24px 20px}.library-heading h1{font-size:25px}.score-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.cover{padding:16px}.cover-title{font-size:24px;letter-spacing:1px}}

/* Shared component metrics and monochrome states. */
:root{font-family:var(--ds-font)}
#root [role=button]{min-height:var(--ds-touch);border-radius:var(--ds-radius-control)}
.cover,.cover-1,.cover-2{background:rgb(var(--ds-cover));color:rgb(var(--ds-foreground));border-color:rgb(var(--ds-border))}
button:focus-visible,input:focus-visible{outline-color:rgb(var(--ds-primary))}

/* A single surface unites the abstract artwork and score metadata. */
.score-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:24px;max-width:1000px}
#root .score-card-link>div{background:rgb(var(--ds-surface));border:1px solid rgb(var(--ds-border));border-radius:14px;box-shadow:0 2px 6px rgb(var(--ds-overlay)/.025);overflow:hidden}
.score-card-link .cover{aspect-ratio:16/10;border:0;border-radius:0;box-shadow:none;position:relative;overflow:hidden}
.score-card-link .abstract-cover{padding:0;background:rgb(var(--ds-muted));color:rgb(var(--ds-primary)/.65)}
.abstract-cover svg{display:block;position:absolute;inset:0;width:100%;height:100%}
.score-card-link .card-info{padding:18px 20px 20px;margin:0;min-height:94px}.score-card-link .card-info h2{font-weight:600}.score-card-link .card-info p{margin-top:6px}
@media(max-width:600px){.score-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.score-card-link .card-info{padding:14px;min-height:88px}}

/* Geometric cover family: shared palette, distinct stable compositions. */
.abstract-cover .geometry-ink{fill:rgb(var(--ds-primary))}
.abstract-cover .geometry-mid{fill:rgb(var(--ds-primary)/.4)}
.abstract-cover .geometry-soft{fill:rgb(var(--ds-primary)/.12)}
.abstract-cover .geometry-paper{fill:rgb(var(--ds-muted))}
.abstract-cover .geometry-line{fill:none;stroke:rgb(var(--ds-primary));stroke-width:2}

.loop-controls{margin-top:24px}
.loop-range{display:flex;align-items:end;gap:12px;margin:12px 0}
.loop-range label{display:flex;flex:1;min-width:0;flex-direction:column;gap:8px;font-size:14px}
.loop-range input{width:100%;height:44px;border:1px solid #ddd;border-radius:8px;background:#fff;padding:8px 12px;font:inherit}
.loop-range>span{align-self:center;padding-top:26px;color:#737373}
.loop-apply,.loop-stop{min-height:44px;border:0;border-radius:8px;padding:10px 16px;font:inherit;cursor:pointer}
.loop-apply{color:#fff;background:#181818;width:100%}
.loop-apply:disabled{opacity:.4;cursor:default}
.loop-stop{margin-top:8px;width:100%;background:#f0f0f0}

.site-filing{padding:24px 12px;text-align:center;font-size:12px;line-height:1.5;color:#666}.site-filing a{color:inherit;text-decoration:none}.site-filing a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
/* Library search is a separate metadata-only surface; opening it never starts audio. */
.library-search-trigger{margin:0;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:44px;min-height:44px;padding:0 12px;background:transparent;border:0;border-radius:12px;color:rgb(var(--ds-foreground));font:inherit;font-size:16px;cursor:pointer}
.library-search-dialog{padding:0;border:1px solid rgb(var(--ds-border));border-radius:20px;background:rgb(var(--ds-surface));color:rgb(var(--ds-foreground));width:min(640px,calc(100vw - 48px));max-width:none;max-height:min(760px,calc(100dvh - 80px));margin:40px auto;box-shadow:0 16px 64px rgb(var(--ds-overlay)/.16);overflow:hidden}
.library-search-dialog::backdrop{background:rgb(var(--ds-overlay)/.32)}
.library-search-surface{display:flex;flex-direction:column;max-height:inherit;min-height:340px}
.library-search-bar{display:flex;align-items:center;gap:8px;padding:20px 16px 16px;border-bottom:1px solid rgb(var(--ds-border));flex-shrink:0}
.library-search-field{display:flex;align-items:center;gap:10px;flex:1;min-width:0;padding:0 14px;min-height:48px;border-radius:12px;background:rgb(var(--ds-muted));border:1px solid transparent}
.library-search-field:focus-within{border-color:rgb(var(--ds-primary));box-shadow:0 0 0 1px rgb(var(--ds-primary))}
.library-search-field>svg{color:rgb(var(--ds-subtle-text));flex:none}
.library-search-field input{background:transparent;border:0;outline:0;box-shadow:none;width:100%;min-width:0;padding:12px 0;font:inherit;font-size:16px;color:inherit}
.library-search-field input::-webkit-search-cancel-button{display:none}
.library-search-clear,.library-search-cancel{background:transparent;border:0;color:inherit;display:flex;align-items:center;justify-content:center;min-height:44px;min-width:44px;flex:none;cursor:pointer}
.library-search-cancel{font:inherit;font-size:16px;padding:0 12px;border-radius:10px}
.library-search-body{padding:24px;overflow:auto;overscroll-behavior:contain}
.library-search-section{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.library-search-section h2{font-size:18px;font-weight:600;margin:0}
.library-search-section>span,.library-search-scope{font-size:14px;color:rgb(var(--ds-subtle-text))}
.library-search-section button{border:0;background:transparent;color:rgb(var(--ds-subtle-text));font:inherit;font-size:14px;padding:8px;min-height:44px;border-radius:8px;cursor:pointer}
.library-search-hint,.library-search-empty p{font-size:16px;line-height:1.65;color:rgb(var(--ds-subtle-text));margin:8px 0}
.library-search-scope{margin:24px 0 0}
.library-search-history,.library-search-results{list-style:none;margin:0;padding:0}
.library-search-history button,.library-search-results button{width:100%;display:flex;align-items:center;gap:16px;text-align:left;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:12px 8px}
.library-search-history button>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.library-search-history svg,.library-search-results button>svg{flex:none;color:rgb(var(--ds-subtle-text))}
.library-search-results li+li{border-top:1px solid rgb(var(--ds-border))}
.library-search-cover{width:48px;height:56px;flex:none;border-radius:7px;overflow:hidden;background:rgb(var(--ds-muted));position:relative}
.library-search-cover .cover{padding:0;width:100%;height:100%;min-height:0;aspect-ratio:auto;border:0;border-radius:0}
.library-search-result-title{flex:1;min-width:0;font-size:16px;font-weight:600;line-height:1.5;overflow-wrap:anywhere}
.library-search-empty{text-align:center;padding:48px 0}
.library-search-empty>svg{margin:0 auto 16px;color:rgb(var(--ds-subtle-text))}
.library-search-empty h3{font-size:18px;margin:0 0 8px}
@media(max-width:600px){.library-search-trigger{padding:0 8px}.library-search-trigger>span{display:none}.library-search-dialog{width:100%;height:100dvh;max-height:100dvh;margin:0;border:0;border-radius:0}.library-search-surface{height:100%}.library-search-bar{padding:calc(16px + env(safe-area-inset-top)) 12px 16px;gap:4px}.library-search-body{padding:24px 20px calc(24px + env(safe-area-inset-bottom))}.library-search-field{padding:0 12px}.library-search-cancel{padding:0 8px}}

/* Search shares the library controls row with the performance filter and view switch. */
#root .library-browser .library-controls-actions{grid-column:2;grid-row:1;display:flex;align-items:center;justify-self:end;gap:8px;min-width:0}
#root .library-browser .library-controls-row>.library-search-trigger{flex:none;min-width:var(--library-control-height);height:var(--library-control-height);padding:0 14px;border:1px solid rgb(var(--ds-border));border-radius:12px;background:rgb(var(--ds-surface));color:rgb(var(--ds-primary));font-size:14px;white-space:nowrap}
#root .library-browser .library-controls-actions>.library-view-tabs{width:auto;height:var(--library-control-height);margin:0;order:0;flex:none}
@media(max-width:700px){#root .library-browser .library-controls-actions{gap:8px}}
@media(max-width:600px){#root .library-browser .library-controls-row>.library-search-trigger{width:var(--library-control-height);padding:0}}

#root .library-browser .library-controls-row>.library-search-trigger{grid-column:-2;grid-row:1;justify-self:end}

/* Canonical workspace layout. Do not duplicate these rules in styles.css. */
.reading {
  height: 100dvh;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.score-engine { width: 100%; flex: 1; min-height: 0; border: 0; background: rgb(var(--ds-muted)); }
.staff-mask { position: absolute; z-index: 3; background: #fff; pointer-events: none; }
.sheet {
  position: fixed;
  inset: calc(var(--ds-header-height) + var(--ds-toolbar-height) + var(--ds-space-2) + env(safe-area-inset-top)) var(--ds-gutter) auto auto;
  margin: 0;
  padding: 0;
  width: min(var(--ds-panel-width), calc(100vw - 2 * var(--ds-gutter)));
  max-height: calc(100dvh - var(--ds-header-height) - var(--ds-toolbar-height) - 32px - env(safe-area-inset-top));
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgb(var(--ds-border));
  border-radius: var(--ds-radius-panel);
  background: rgb(var(--ds-surface));
  color: rgb(var(--ds-foreground));
  box-shadow: 0 12px 44px rgb(var(--ds-overlay) / .14);
}
.sheet::backdrop { background: rgb(var(--ds-overlay) / .09); }
.sheet-head {
  position: sticky; top: 0; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: var(--ds-space-4);
  min-height: var(--ds-header-height);
  padding: var(--ds-space-3) var(--ds-space-6);
  border-bottom: 1px solid rgb(var(--ds-border));
  background: rgb(var(--ds-surface));
}
.sheet-content { display: flex; flex-direction: column; padding: var(--ds-space-6); gap: var(--ds-space-6); }
.sheet h3 { color: rgb(var(--ds-secondary-text)); margin: 0 0 var(--ds-space-2); }
.part-row { display: grid; gap: 0; padding: var(--ds-space-1) 0; }
.part-card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.part-card { padding: 6px 10px; border: 0; border-radius: 14px; background: rgb(var(--ds-canvas)); gap: 4px; }
.part-card .sound-toggle { min-height: 36px; }
.part-card .volume input { height: 24px; }
.part-card:has(.sound-toggle input:not(:checked)) { padding-block: 6px; gap: 0; }
.check-label { display: flex; align-items: center; gap: var(--ds-space-3); min-height: var(--ds-touch); }
.check-label input { width: 20px; height: 20px; margin: 0; accent-color: rgb(var(--ds-primary)); }
.volume { display: grid; grid-template-columns: minmax(0, 1fr) 48px; align-items: center; gap: var(--ds-space-3); }
.volume input { min-width: 0; width: 100%; height: var(--ds-touch); margin: 0; accent-color: rgb(var(--ds-primary)); }
.volume output { text-align: right; color: rgb(var(--ds-secondary-text)); }
.visibility-row, .setting-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--ds-space-4); min-height: var(--ds-setting-height); }
.sound-toggle input, .visibility-row input, .setting-line>input { appearance: none; position: relative; width: 44px; height: 28px; margin: 0; border: 0; border-radius: 14px; background: rgb(var(--ds-strong-border)); cursor: pointer; }
.sound-toggle input:before, .visibility-row input:before, .setting-line>input:before { content: ''; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; border-radius: 50%; background: rgb(var(--ds-surface)); transition: transform .15s; }
.sound-toggle input:checked, .visibility-row input:checked, .setting-line>input:checked { background: rgb(var(--ds-primary)); }
.sound-toggle input:checked:before, .visibility-row input:checked:before, .setting-line>input:checked:before { transform: translateX(16px); }
.stepper { display: grid; grid-template-columns: 44px 48px 44px; align-items: center; text-align: center; }
.speed-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--ds-space-2); }
.tempo-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.tempo-option { display: flex; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding-inline: 2px!important; white-space: nowrap; }
.tempo-option small { font-size: 11px; opacity: .68; }
#root .speed-options [role=button] { padding-inline: var(--ds-space-1); }
.loop-inputs { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); gap: var(--ds-space-3); align-items: end; }
.loop-inputs>span { align-self: end; line-height: var(--ds-touch); text-align: center; }
.loop-inputs label { display: grid; gap: var(--ds-space-2); color: rgb(var(--ds-secondary-text)); }
.loop-inputs input { width: 100%; min-width: 0; height: var(--ds-touch); padding: var(--ds-space-2) var(--ds-space-3); border: 1px solid rgb(var(--ds-border)); border-radius: var(--ds-radius-control); background: rgb(var(--ds-surface)); color: rgb(var(--ds-foreground)); }
.import-zone { display: flex; flex-direction: column; align-items: center; gap: var(--ds-space-4); padding: 32px var(--ds-space-4); border: 1px solid rgb(var(--ds-border)); border-radius: var(--ds-radius-control); background: rgb(var(--ds-canvas)); }
.panel-intro, .import-zone span { color: rgb(var(--ds-secondary-text)); }
.error { color: rgb(var(--ds-foreground)); }
/* Typography is explicit, including React Native Web's generated Text elements. */
.reading, .sheet, #root .reading [role=button], #root .sheet [role=button], #root .reading [dir], #root .sheet [dir] {
  font-family: var(--ds-font);
  font-size: var(--ds-type-body);
  line-height: var(--ds-line-body);
  font-weight: var(--ds-weight-regular);
  letter-spacing: 0;
}
.reader-title h1, .sheet-head h2 { margin: 0; font-family: var(--ds-font); font-size: var(--ds-type-title); line-height: var(--ds-line-title); font-weight: var(--ds-weight-heading); letter-spacing: 0; }
#root .reading [role=button] [dir], #root .sheet [role=button] [dir], .follow, .sheet h3, .loop-inputs label { font-size: var(--ds-type-label); line-height: var(--ds-line-label); font-weight: var(--ds-weight-medium); }
.reader-title span, .volume output, .panel-intro, .import-zone span, .error { font-size: var(--ds-type-caption); line-height: var(--ds-line-caption); font-weight: var(--ds-weight-regular); }
.reader-title span, .volume output, .stepper, .speed-options, .loop-inputs input { font-variant-numeric: tabular-nums; }
.sheet input { font-family: var(--ds-font); font-size: var(--ds-type-body); line-height: var(--ds-line-body); }
.reading svg, .sheet-head svg { width: 20px; height: 20px; }
@media(max-width:600px) {
  .reading { --ds-gutter: 12px; }
  .tempo-options { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #root .tool-strip [role=button] { padding-inline: 4px; gap: 4px; }
  .sheet { inset: auto 0 0; width: 100%; max-width: 100vw; max-height: 82dvh; border-radius: var(--ds-radius-panel) var(--ds-radius-panel) 0 0; padding-bottom: env(safe-area-inset-bottom); }
  .sheet-content:has(.part-card-grid) { gap: 10px; padding: 12px 14px; }
  .part-card { padding-inline: 8px; }
  .part-card:has(.sound-toggle input:not(:checked)) { padding-block: 6px; }
}
@media(prefers-reduced-motion:reduce) { .sheet * { transition: none!important; } }

.tool-trigger{gap:8px!important}.tool-trigger[aria-expanded=true] svg{color:rgb(var(--ds-surface))}
@media(max-width:600px){.tool-strip{justify-content:start}.reader-title span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}}

.tool-strip [aria-pressed=true] svg{color:rgb(var(--ds-surface))}

.tool-strip{overflow-y:hidden;scrollbar-width:none}.tool-strip::-webkit-scrollbar{display:none}

/* Opening a document keeps one stable paper surface, then crossfades to notation. */
.score-stage{position:relative;flex:1;min-height:0;overflow:hidden;background:rgb(var(--ds-muted))}
.score-stage>.score-engine{position:absolute;inset:0;width:100%;height:100%;opacity:0;pointer-events:none;transition:opacity .32s ease}
.score-stage.is-ready>.score-engine{opacity:1;pointer-events:auto}
.score-transition{position:absolute;inset:0;padding:16px 24px;overflow:hidden;opacity:1;visibility:visible;transition:opacity .28s ease,visibility 0s .28s}
.is-ready>.score-transition{opacity:0;visibility:hidden;pointer-events:none}
.score-skeleton{max-width:1100px;min-height:1100px;margin:auto;padding:64px 8%;background:rgb(var(--ds-surface));animation:paper-arrive .3s ease-out both}
.skeleton-title{width:128px;height:22px;margin:0 auto 24px;border-radius:4px;background:rgb(var(--ds-primary)/.09)}
.skeleton-credit{width:100px;height:8px;margin:0 0 68px auto;border-radius:4px;background:rgb(var(--ds-primary)/.05)}
.skeleton-staff{display:grid;grid-template-columns:20px 1fr;align-items:center;gap:24px;height:100px;margin-bottom:22px;opacity:.6;animation:staff-breathe 1.8s ease-in-out infinite}
.skeleton-staff:nth-child(even){animation-delay:.18s}
.skeleton-staff i{height:10px;border-radius:3px;background:rgb(var(--ds-primary)/.12)}
.skeleton-staff span{height:33px;background:repeating-linear-gradient(to bottom,rgb(var(--ds-primary)/.09) 0 1px,transparent 1px 8px)}
.score-loading-label{position:absolute;left:50%;top:36%;transform:translate(-50%,-50%);display:flex;align-items:center;gap:12px;max-width:85%;padding:16px 22px;border-radius:14px;background:rgb(var(--ds-surface));box-shadow:0 4px 28px rgb(var(--ds-overlay)/.05);font-size:14px;line-height:22px;color:rgb(var(--ds-secondary-text))}
.loading-beats{display:flex;align-items:center;gap:3px;height:20px}.loading-beats i{width:3px;height:14px;border-radius:2px;background:rgb(var(--ds-primary));animation:loading-beat 1s ease-in-out infinite}.loading-beats i:nth-child(2){animation-delay:.12s}.loading-beats i:nth-child(3){animation-delay:.24s}.loading-beats i:nth-child(4){animation-delay:.36s}
@keyframes loading-beat{0%,100%{transform:scaleY(.4);opacity:.4}50%{transform:scaleY(1);opacity:1}}
@keyframes staff-breathe{0%,100%{opacity:.45}50%{opacity:.85}}
@keyframes paper-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:600px){.score-transition{padding:16px 8px}.score-skeleton{padding:48px 7%}.score-loading-label{white-space:nowrap}}
@media(prefers-reduced-motion:reduce){.score-stage *{animation:none!important;transition:none!important}}

/* Library actions and shared 44px controls. */
.library-content{max-width:none;width:100%;padding:32px}
.score-grid{max-width:none;width:100%;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:24px}
.score-card-shell{position:relative;min-width:0}
.score-card-link{display:block;width:100%;height:100%}
#root .score-card-link>div{height:100%}
.score-card-link .card-info{padding:24px 64px 24px 24px;min-height:104px}
.card-info>div{flex:1;min-width:0}
.card-info h2{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.card-info p{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px;line-height:1.6}
.card-more{position:absolute;right:12px;bottom:48px;z-index:3}
.card-more[open]{z-index:5}
.card-more summary{display:flex;align-items:center;justify-content:center;width:44px;height:44px;list-style:none;border-radius:10px;cursor:pointer;background:rgb(var(--ds-surface))}
.card-more summary::-webkit-details-marker{display:none}
.card-more[open] summary{background:rgb(var(--ds-muted))}
.card-more summary:focus-visible{outline:2px solid rgb(var(--ds-primary));outline-offset:2px}
.card-menu{position:absolute;right:0;top:48px;min-width:160px;padding:8px;background:rgb(var(--ds-surface));border:1px solid rgb(var(--ds-border));border-radius:12px;box-shadow:0 8px 24px rgb(var(--ds-overlay)/.12)}
.card-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;border:0;border-radius:8px;padding:0 12px;background:none;text-align:left}
.import-anchor{position:relative}
.sheet.import-popover{position:fixed;inset:auto 32px auto auto;width:min(368px,calc(100vw - 32px));max-height:calc(100dvh - 160px);z-index:15;border-radius:16px;padding-bottom:0}
.play-time{font-size:14px;line-height:20px;white-space:nowrap;font-variant-numeric:tabular-nums;color:rgb(var(--ds-secondary-text))}
#root .reader-header [role=button]{width:44px;height:44px;min-height:44px;padding:0;flex-shrink:0}
#root .reader-header svg,#root .tool-strip svg{width:20px!important;height:20px!important}
.tool-strip{justify-content:center}
.delete-dialog{width:min(400px,calc(100vw - 32px));margin:auto;border:1px solid rgb(var(--ds-border));border-radius:20px;padding:24px;color:rgb(var(--ds-foreground));background:rgb(var(--ds-surface));box-shadow:0 20px 64px rgb(var(--ds-overlay)/.16)}
.delete-dialog::backdrop{background:rgb(var(--ds-overlay)/.25)}
.delete-dialog h2{font-size:20px;line-height:1.5;overflow-wrap:anywhere}
.delete-dialog p{font-size:14px;line-height:1.8;color:rgb(var(--ds-secondary-text));margin-top:12px}
.delete-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}
@media(max-width:600px){.library-content{padding:24px 16px}.score-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.score-card-link .card-info{padding:16px 52px 16px 16px;min-height:104px}.card-more{right:4px;bottom:44px}.play-time{font-size:12px}.reader-actions{gap:8px}.tool-strip{justify-content:start}.sheet.import-popover{max-height:calc(100dvh - 160px)}}

.part-identity { min-width: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 20px; }
.sound-toggle input { flex-shrink: 0; }
.part-abbreviation { flex: 0 0 32px; width: 32px; color: rgb(var(--ds-secondary-text)); font-size: 16px; font-weight: 600; }


.mode-tabs { display:flex; gap:4px; padding:3px; border-radius:12px; background:rgb(var(--ds-muted)); }
.mode-tabs button { display:flex; align-items:center; justify-content:center; gap:8px; height:44px; padding:0 14px; border:0; border-radius:9px; background:transparent; color:rgb(var(--ds-secondary-text)); font:inherit; font-size:14px; white-space:nowrap; cursor:pointer; }
.mode-tabs button[aria-selected=true] { background:rgb(var(--ds-primary)); color:rgb(var(--ds-surface)); }
.mode-tabs button:focus-visible { outline:2px solid rgb(var(--ds-primary)); outline-offset:2px; }
.mode-tabs button:disabled { opacity:.4; cursor:default; }
/* A centered title row and a separate, responsive practice toolbar. */
.reader-header{flex:none;padding:env(safe-area-inset-top) max(24px,env(safe-area-inset-right)) 0 max(24px,env(safe-area-inset-left));background:rgb(var(--ds-surface));border-bottom:1px solid rgb(var(--ds-border))}
.reader-heading{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:16px;min-height:64px}
.reader-title{min-width:0;text-align:center}
.reader-title h1{font-size:26px;line-height:34px;letter-spacing:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:12px 0}
.reader-toolbar{display:flex;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:12px 12px;padding:12px 0 16px;border-top:1px solid rgb(var(--ds-border))}
.reader-toolbar[hidden]{display:none}
.reader-actions{display:flex;align-items:center;gap:12px;flex-shrink:0;padding:2px 14px 2px 2px;border-radius:12px;background:rgb(var(--ds-muted))}
.reader-toolbar>.tool-strip{display:flex;align-items:center;gap:8px;min-width:0;margin-left:auto}
#root .reader-toolbar .tool-strip [role=button]{width:auto;padding:0 12px}
.reader-toolbar .tool-strip [dir]{white-space:nowrap}
.reading .sheet{top:calc(var(--reader-height, 141px) + 12px);max-height:calc(100dvh - var(--reader-height, 141px) - 36px)}
.library{--library-gutter:32px;--library-gap:24px}
.library-header{padding-inline:var(--library-gutter)}
.library-header>.library-heading-actions{display:flex;align-items:center;gap:8px;margin-left:auto;flex-shrink:0}
.library-content{padding:32px var(--library-gutter)}
.library-heading,.search{margin-bottom:var(--library-gap)}
.library-heading{flex-wrap:wrap;gap:16px}
.library-heading h1 span{font-size:18px;color:rgb(var(--ds-secondary-text));font-weight:400}
.library-view-tabs{display:flex;gap:4px;padding:4px;border-radius:12px;background:rgb(var(--ds-muted));margin-left:auto}
.library-view-tabs button{display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:8px;padding:0 14px;min-height:44px;background:transparent;color:rgb(var(--ds-secondary-text));font-size:14px}
.library-view-tabs button[aria-selected=true]{background:rgb(var(--ds-surface));color:rgb(var(--ds-primary));box-shadow:0 1px 4px rgb(var(--ds-overlay)/.08)}
.score-grid{gap:var(--library-gap);align-items:stretch}
.score-list{grid-template-columns:minmax(0,1fr);gap:8px}
#root .score-list .score-card-link>div{display:flex;flex-direction:row;align-items:center}
.score-list .score-card-link .cover{width:72px;align-self:stretch;aspect-ratio:auto;flex-shrink:0}
.score-list .score-card-link .card-info{min-height:76px;padding:12px 56px 12px 16px;flex:1;min-width:0}
.score-list .card-more{top:16px;right:8px;bottom:auto}
@media(max-width:700px){
 .reader-header{padding-inline:16px}.reader-toolbar{gap:8px 12px;padding-bottom:12px}.reader-toolbar .mode-tabs button{padding-inline:10px}.reader-title h1{font-size:24px}
 .reading .sheet{inset:auto 0 0;max-height:82dvh}
}
@media(max-width:600px){
 .library{--library-gutter:16px;--library-gap:16px}.library-content{padding-top:24px}.library-heading h1 span{font-size:15px}.library-heading>div:first-child{flex:1}.library-view-tabs{order:3;width:100%;margin:0}.library-view-tabs button{flex:1}.score-grid:not(.score-list){grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.score-list .score-card-link .cover{width:64px}
}

/* Shared sliding selection and reversible playback fade. */
.reader-toolbar>.mode-tabs { position:relative; display:grid; grid-template-columns:repeat(2,1fr); gap:0; padding:2px; isolation:isolate; }
.reader-toolbar>.mode-tabs::before { content:""; position:absolute; z-index:-1; left:2px; top:2px; bottom:2px; width:calc((100% - 4px)/2); border-radius:9px; background:rgb(var(--ds-primary)); transform:translateX(0); transition:transform 240ms cubic-bezier(.22,1,.36,1); }
.reader-toolbar>.mode-tabs.is-listening::before { transform:translateX(100%); }
.reader-toolbar>.mode-tabs button { background:transparent; transition:color 180ms ease; }
.reader-toolbar>.reader-actions { opacity:1; visibility:visible; transition:opacity 220ms ease,visibility 0s linear; }
.reader-toolbar>.reader-actions.is-hidden { opacity:0; visibility:hidden; pointer-events:none; transition:opacity 220ms ease,visibility 0s linear 220ms; }
.app[data-catalog="chunni"] .reader-toolbar>.reader-actions.is-hidden { display:none; }
@media(prefers-reduced-motion:reduce){.reader-toolbar>.mode-tabs::before,.reader-toolbar>.mode-tabs button,.reader-toolbar>.reader-actions,.reader-toolbar>.reader-actions.is-hidden{transition:none}}

/* Keep only the group boundary between staff visibility and page sizing. */
.visibility-list + .setting-line{border-top:1px solid rgb(var(--ds-border));padding-top:16px}
/* Touch-first app controls retain pressed/selected states without focus rings. */
#root :focus, #root :focus-visible{outline:none!important;--tw-ring-shadow:0 0 #0000;--tw-ring-offset-shadow:0 0 #0000}
#root button,#root [role=button],#root input,#root summary{-webkit-tap-highlight-color:transparent}

#root [role=button]{outline:none!important;box-shadow:none!important}

/* Title uses the existing Harmony theme; practice controls remain on white. */
.reader-header{--reader-gutter:24px;padding:env(safe-area-inset-top) 0 0;background:rgb(var(--ds-surface))}
.reader-heading{padding:env(safe-area-inset-top) max(var(--reader-gutter),env(safe-area-inset-right)) 0 max(var(--reader-gutter),env(safe-area-inset-left));background:rgb(var(--ds-primary));color:rgb(var(--ds-surface));min-height:calc(64px + env(safe-area-inset-top))}
#root .reader-heading [role=button]{background:rgb(var(--ds-surface)/.12);color:rgb(var(--ds-surface))}
.reader-toolbar{padding-inline:var(--reader-gutter)}
.sound-toggle{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:44px}
.volume input[type=range]{appearance:none;-webkit-appearance:none;background:transparent;border:0;box-shadow:none;padding:0}
.volume input[type=range]::-webkit-slider-runnable-track{height:6px;border:0;border-radius:3px;background:linear-gradient(to right,rgb(var(--ds-primary)) var(--volume),rgb(var(--ds-border)) var(--volume))}
.volume input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:18px;height:18px;margin-top:-6px;border:0;border-radius:50%;background:rgb(var(--ds-primary));box-shadow:none}
.volume input[type=range]::-moz-range-track{height:6px;border:0;border-radius:3px;background:rgb(var(--ds-border))}
.volume input[type=range]::-moz-range-progress{height:6px;border-radius:3px;background:rgb(var(--ds-primary))}
.volume input[type=range]::-moz-range-thumb{width:18px;height:18px;border:0;border-radius:50%;background:rgb(var(--ds-primary))}
.score-transition{padding:16px 24px}
.score-skeleton{max-width:1000px;min-height:0;margin:auto;padding:0;animation:none}
.reading .skeleton-notation{display:block;width:100%;height:auto;color:rgb(var(--ds-primary))}
.score-loading-label{position:fixed;left:50%;top:50%;bottom:auto;transform:translate(-50%,-50%);flex-direction:column;gap:20px;padding:28px 36px;font-size:18px;line-height:28px;white-space:nowrap;border-radius:20px;box-shadow:0 6px 32px rgb(var(--ds-overlay)/.08)}
.loading-spinner{width:44px;height:44px;border:3px solid rgb(var(--ds-primary)/.15);border-top-color:rgb(var(--ds-primary));border-radius:50%;animation:loading-spin .8s linear infinite}
@keyframes loading-spin{to{transform:rotate(360deg)}}
@media(max-width:850px){.score-transition{padding-inline:16px}}
@media(max-width:700px){.reader-header{--reader-gutter:16px}.reader-toolbar{padding-inline:var(--reader-gutter)}}
@media(max-width:600px){.score-transition{padding-inline:10px}}

/* Shared motion rhythm for disclosure, panels and controls. */
:root{--motion-duration:240ms;--motion-easing:cubic-bezier(.22,1,.36,1)}
.reader-heading{grid-template-columns:44px minmax(0,1fr) 44px;padding-top:16px;padding-bottom:16px;min-height:76px}
.library-header{height:calc(64px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
.library-header .brand strong{font-size:22px}
.reader-heading>[role=button]:first-child{justify-self:start}
.heading-reveal{display:grid;grid-template-rows:1fr;opacity:1;transition:grid-template-rows var(--motion-duration) var(--motion-easing),opacity var(--motion-duration) ease}
.heading-clip{min-height:0;overflow:hidden}
.reader-header.is-heading-collapsed .heading-reveal{grid-template-rows:0fr;opacity:0;pointer-events:none}
.sheet[open],.delete-dialog[open]{animation:surface-enter var(--motion-duration) var(--motion-easing)}
.sheet[open]::backdrop,.delete-dialog[open]::backdrop{animation:backdrop-enter var(--motion-duration) ease}
.card-more[open] .card-menu,.feedback{animation:surface-enter var(--motion-duration) var(--motion-easing)}
.library-view-tabs button,.sound-toggle input,.visibility-row input,.setting-line>input{transition:background-color var(--motion-duration) ease,color var(--motion-duration) ease}
.sound-toggle input:before,.visibility-row input:before,.setting-line>input:before{transition:transform var(--motion-duration) var(--motion-easing)}
@keyframes surface-enter{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@keyframes backdrop-enter{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.heading-reveal{transition:none}.sheet[open],.delete-dialog[open],.sheet::backdrop,.delete-dialog::backdrop,.card-menu,.feedback{animation:none!important}}

/* Compact metadata and a left-aligned library heading. */
.score-grid:not(.score-list) .score-card-link .card-info{padding:16px 56px 16px 16px;min-height:88px}
.score-grid:not(.score-list) .card-more{right:8px;bottom:36px}
.library-heading{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px}
.library-heading>div:first-child{grid-column:1;text-align:left}
.library-heading h1{display:flex;align-items:center;justify-content:flex-start;white-space:nowrap}
.library-heading-actions{display:contents}
.library-view-tabs{margin-left:0;flex-shrink:0}
/* Keep the title and view tabs together, including narrow iPad split views. */
.library-heading:has(.import-anchor){grid-template-columns:minmax(0,1fr) auto auto}
.library-heading-actions .library-view-tabs{grid-column:2;grid-row:1;justify-self:end;width:auto;order:0}
.library-heading-actions .import-anchor{grid-column:3;grid-row:1;justify-self:end}
#root .score-card-link>div{box-shadow:none}
#root .score-list .score-card-link>div{border-radius:8px}
@media(max-width:600px){
 .library-heading,.library-heading:has(.import-anchor){grid-template-columns:minmax(0,1fr) auto;gap:12px 8px}
 .library-heading-actions .import-anchor{grid-column:1 / -1;grid-row:2}
 .library-view-tabs button{padding-inline:10px;gap:6px}
}

/* List view is a flat sequence of rows, not a stack of cards. */
.score-grid.score-list{gap:0}
#root .score-list .score-card-link>div{background:transparent;border:0;border-radius:0;box-shadow:none}
.score-list .score-card-link{border-radius:0;box-shadow:none}
.score-list .score-card-shell{padding-block:8px;border-bottom:1px solid rgb(var(--ds-border))}
.score-list .score-card-shell:last-child{border-bottom:0}
.score-list .score-card-link .cover{width:56px;height:56px;align-self:center;border-radius:4px}
.score-list .score-card-link .card-info{min-height:64px;padding:8px 56px 8px 16px;background:transparent}
.score-list .card-more{top:18px;right:0}
.score-list .card-more summary{background:transparent}

.score-grid.score-list{gap:12px}
.score-list .score-card-shell{border:0}
/* Non-modal anchored tool popovers: transparent outside click surface, visible arrow. */
.popover-dismiss{position:fixed;inset:var(--reader-height,168px) 0 0;z-index:29;background:transparent}
#root .sheet.anchored-popover{position:fixed;inset:auto;z-index:30;overflow:visible;max-height:none;padding:0;margin:0;border-radius:16px;box-shadow:0 8px 28px rgb(var(--ds-overlay)/.13)}
.anchored-popover::before{content:'';position:absolute;left:var(--popover-arrow-x,50%);top:-7px;width:12px;height:12px;transform:translateX(-50%) rotate(45deg);background:rgb(var(--ds-surface));border-left:1px solid rgb(var(--ds-border));border-top:1px solid rgb(var(--ds-border));z-index:3}
.sheet-content:has(.part-card-grid){gap:10px;padding:12px 16px}
.sheet-content:has(.part-card-grid) section h3{margin-bottom:4px}
.popover-scroll{max-height:var(--popover-max-height,70dvh);overflow-y:auto;overscroll-behavior:contain;border-radius:inherit}
.sound-popover .popover-scroll{scrollbar-width:none}
.sound-popover .popover-scroll::-webkit-scrollbar{display:none}
#root .tool-strip [aria-expanded=true]{background:rgb(var(--ds-muted))}

/* Collapse only when the measured controls cannot fit, in priority order. */
.reader-toolbar>*{flex-shrink:0}
.reader-toolbar>.tool-strip{flex-shrink:0}
/* Density measurements must use final sizes, never an animated intermediate width. */
#root .reader-toolbar [role=button]{transition-property:background-color,color,border-color,box-shadow,opacity}
.play-time>span:not(.time-separator){display:inline-block;text-align:center}
#root .reader-toolbar:not([data-density=full]) .tool-label{display:none}
#root .reader-toolbar:not([data-density=full]) .tool-strip [role=button]{width:44px;min-width:44px;height:44px;padding:0;gap:0}
.reader-toolbar:not([data-density=full])>.tool-strip{gap:4px}
.reader-toolbar:is([data-density=modes],[data-density=time]) .mode-label{display:none}
.reader-toolbar:is([data-density=modes],[data-density=time]) .mode-tabs button{width:44px;min-width:44px;padding:0;gap:0}
.reader-toolbar[data-density=time] .reader-actions{padding-right:2px;gap:0}
.reader-toolbar[data-density=time] .play-time{display:none}
@media(max-width:540px){.reader-toolbar{gap:8px;padding-inline:12px}}
@media(max-width:359px){.library-header{gap:8px;padding-inline:12px}.reader-toolbar{gap:6px;padding-inline:8px}}

.cloud-gate{min-height:100dvh;display:grid;place-items:center;padding:24px;background:#f5f5f5}
.cloud-form{width:min(100%,400px);display:grid;gap:20px;padding:28px;background:white;border-radius:16px}
.cloud-form h2{font-size:24px;margin:0}.cloud-form p{font-size:14px;color:#666;line-height:1.6;margin:0}
.cloud-form [role=alert]{color:#b91c1c}
.cloud-form label{display:grid;gap:8px;font-size:15px}.cloud-form input,.cloud-form select{width:100%;min-height:44px;padding:10px 12px;background:#f3f3f3;border:0;border-radius:8px;font-size:16px}
.cloud-form button{min-height:44px;padding:10px 16px;border:0;border-radius:8px;background:#191919;color:white;font-size:16px}.cloud-form button:disabled{opacity:.5}.cloud-form button[type=button]{background:#eee;color:#222}
.cloud-overlay{position:fixed;inset:0;z-index:100;background:#0004;overflow:auto}.cloud-account{text-align:center;padding:16px 24px 32px}.cloud-account button{border:0;background:transparent;color:#666;min-height:44px}.sync-status{font-size:13px;color:#666;margin:0 0 16px}
.app.reading~.cloud-account{display:none}


/* The notation control keeps a fixed touch target beside a one-line title. */
.reader-heading{grid-template-columns:44px minmax(0,1fr) auto}
.notation-switch{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 14px;border:1px solid rgb(var(--ds-surface)/.2);border-radius:12px;background:rgb(var(--ds-surface)/.12);color:inherit;font:inherit;font-size:14px;white-space:nowrap;cursor:pointer}
.notation-switch>span{font-size:14px;font-weight:700;letter-spacing:1px}
.notation-switch.is-active{background:rgb(var(--ds-surface));color:rgb(var(--ds-primary))}
.notation-switch:disabled{opacity:.45;cursor:wait}
.notation-switch:focus-visible{outline:2px solid currentColor;outline-offset:3px}
@media(max-width:420px){.reader-heading{gap:10px}.notation-switch{padding-inline:10px;gap:6px}.reader-title h1{font-size:20px}}

.notation-switch>span{display:inline-flex;align-items:center}
.notation-switch:active:not(:disabled){opacity:.75}

/* Compact tempo popover shares the app's spacing, borders and touch targets. */
.tempo-popover .sheet-content{padding:24px}
.tempo-control{border:0;padding:0;margin:0;min-width:0;display:grid;gap:16px}
.tempo-control button:disabled{opacity:.4;cursor:default}
.bpm-stepper{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px}
.bpm-stepper>button{display:grid;place-items:center;width:44px;height:44px;border:1px solid rgb(var(--ds-border));border-radius:8px;background:rgb(var(--ds-surface));color:inherit;cursor:pointer}
.bpm-value{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;font-size:18px;white-space:nowrap}
.bpm-value input{width:3.3ch;min-width:0;height:56px;padding:4px 0;border:0;border-radius:4px;background:transparent;color:inherit;text-align:center;font:inherit;font-size:32px;font-weight:600;font-variant-numeric:tabular-nums;appearance:textfield}
.bpm-value input::-webkit-inner-spin-button,.bpm-value input::-webkit-outer-spin-button{appearance:none;margin:0}
.bpm-value>span:last-child{font-size:12px;color:rgb(var(--ds-secondary-text))}
.tempo-slider-group{display:grid;gap:0}
.bpm-slider{width:100%;height:44px;margin:0;accent-color:rgb(var(--ds-primary));cursor:pointer}
.tempo-footer{display:flex;align-items:center;justify-content:center;gap:8px;font-size:13px;color:rgb(var(--ds-secondary-text))}
.tempo-reset{display:inline-flex;align-items:center;justify-content:center;gap:6px;width:100%;min-height:44px;padding:0 16px;border:1px solid rgb(var(--ds-border));border-radius:8px;background:rgb(var(--ds-surface));color:rgb(var(--ds-foreground));font:inherit;font-size:13px;cursor:pointer}
.tempo-control .tempo-reset:disabled{opacity:1;color:rgb(var(--ds-secondary-text));background:rgb(var(--ds-muted));cursor:default}
.tempo-error{margin:0;font-size:13px;line-height:20px;color:rgb(var(--ds-foreground))}
@media(hover:hover){}
.tempo-control button:focus-visible,.tempo-control input:focus-visible{outline:2px solid rgb(var(--ds-primary));outline-offset:3px}
@media(max-width:420px){.tempo-popover .sheet-content{padding:20px}}

/* Reader chrome follows the same four-pixel spacing scale as the score. */
.reader-title h1{font-size:24px;line-height:32px;font-weight:600}
.reader-heading{gap:16px}
@media(max-width:600px){.reader-title h1{font-size:20px;line-height:28px}.reader-heading{gap:12px}.notation-switch{padding-inline:12px;gap:8px}}

.visibility-group + .visibility-group{border-top:1px solid rgb(var(--ds-border));padding-top:16px}
.visibility-row{column-gap:16px}
.visibility-row .part-identity{min-width:0;overflow-wrap:anywhere}

/* Library footer stays at the viewport bottom on short pages, after content on long pages. */
.app.library{display:flex;flex-direction:column;min-height:100dvh}
.library-masthead{flex:none;position:sticky;top:0;z-index:10;background:var(--library-background)}
.library>.library-content{flex:1;margin:0 auto;padding-bottom:24px}
.library>.site-filing{flex:none;padding:20px var(--library-gutter) max(20px,env(safe-area-inset-bottom))}
.library-controls-row{display:flex;align-items:center;gap:16px;margin-bottom:var(--library-gap);min-width:0}
.library-controls-row>.search{flex:1;min-width:0;height:52px;margin:0}
.library-controls-row .search input{min-width:0}
.library-controls-row>.library-view-tabs{width:auto;order:0;flex:none;margin:0}
@media(max-width:600px){
 .library-controls-row{gap:8px}
 .library-controls-row>.search{padding-inline:12px;gap:8px}
 .library-controls-row>.library-view-tabs button{padding-inline:8px;gap:4px}
 .library-controls-row>.library-view-tabs button svg{width:16px;height:16px}
}

.timbre-options{display:grid;gap:8px}
.timbre-option{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:12px 16px;border:1px solid rgb(var(--ds-border));border-radius:8px;cursor:pointer}
.timbre-option.is-selected{border-color:rgb(var(--ds-primary));background:rgb(var(--ds-muted))}
.timbre-option input{width:20px;height:20px;margin:0;accent-color:rgb(var(--ds-primary))}
.timbre-option:has(input:disabled){opacity:.5;cursor:wait}

/* Shared 4 px spacing scale across all three settings tabs. */
.parts-popover,.library-mixer{--settings-inset:24px;--settings-gap:24px;--settings-row-inset:16px;--settings-stack-gap:16px;--settings-heading-gap:12px;--settings-icon-size:20px;--settings-icon-gap:8px;--settings-card-gap:8px;--settings-title-size:20px;--settings-title-line:28px}
.parts-popover .popover-scroll{display:flex;flex-direction:column;overflow:hidden}
.parts-popover .sheet-head,.parts-popover .part-settings-tabs{flex:none}
.parts-popover #part-settings-panel{flex:0 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.parts-popover #part-settings-panel>*{flex-shrink:0}
.parts-popover .sheet-head{padding:var(--settings-stack-gap) var(--settings-inset)}
.part-settings-tabs{position:relative;display:flex;margin:var(--settings-stack-gap) var(--settings-inset) 0;padding:3px;border:0;border-radius:12px;background:rgb(var(--ds-muted));isolation:isolate}
.part-settings-tabs::after{content:'';position:absolute;z-index:-1;top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/3);border-radius:9px;background:rgb(var(--ds-primary));transform:translateX(calc(var(--part-tab-index,0)*100%));transition:transform 220ms cubic-bezier(.2,.8,.2,1);pointer-events:none}
.part-settings-tabs.is-listening::after{width:calc((100% - 6px)/2)}
.part-settings-tabs button{flex:1;min-width:0;min-height:44px;padding:8px 4px;border:0;border-radius:9px;background:transparent;color:rgb(var(--ds-secondary-text));font:inherit;font-size:14px;cursor:pointer;white-space:nowrap;transition:color 180ms ease}
.part-settings-tabs button[aria-selected="true"]{color:rgb(var(--ds-surface));font-weight:600}
.part-settings-tabs button:focus-visible{outline:2px solid rgb(var(--ds-primary));outline-offset:2px}
.parts-popover .sheet-content,.parts-popover .sheet-content:has(.part-card-grid){padding:var(--settings-gap) var(--settings-inset) var(--settings-inset);gap:var(--settings-gap)}
.parts-popover .sheet-head h2{font-size:var(--settings-title-size);line-height:var(--settings-title-line)}
#root :is(.parts-popover,.library-mixer) .sheet-content section h3{display:flex;align-items:center;gap:var(--settings-icon-gap);margin:0 0 var(--settings-heading-gap);color:rgb(var(--ds-foreground));font-size:var(--ds-type-title);line-height:var(--ds-line-title);font-weight:var(--ds-weight-heading)}
:is(.parts-popover,.library-mixer) .sheet-content section h3 svg{flex:none;width:var(--settings-icon-size);height:var(--settings-icon-size)}
.parts-popover .sheet-content section+section{border:0;padding-top:0}
.parts-popover .timbre-option{font-size:var(--ds-type-body);line-height:var(--ds-line-body)}
.parts-popover .part-card,.parts-popover .part-card:has(.sound-toggle input:not(:checked)){padding:12px var(--settings-row-inset);border-radius:8px;gap:4px}
.parts-popover .visibility-row{padding-inline:calc(var(--settings-icon-size) + var(--settings-icon-gap)) var(--settings-row-inset);min-height:48px}
.parts-popover .part-card-grid,.parts-popover .visibility-list,.parts-popover .timbre-options{display:grid;gap:var(--settings-card-gap)}
.parts-popover .timbre-option{padding:12px var(--settings-row-inset)}
@media(prefers-reduced-motion:reduce){.part-settings-tabs::after,.part-settings-tabs button{transition:none}}

/* Flat score library with a single performance filter. */
.library-browser .library-heading{margin-bottom:24px}
.library-browser .library-heading h1{gap:8px;font-size:28px;line-height:40px}
.library-browser{--library-control-height:52px}
.library-browser .library-controls-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;margin-bottom:24px}
.performance-filter{grid-column:1;grid-row:1;min-width:0}
#root .performance-filter-trigger{display:flex;width:100%;height:var(--library-control-height);min-width:0;align-items:center;justify-content:flex-start;border:1px solid rgb(var(--ds-border));background:rgb(var(--ds-surface));color:rgb(var(--ds-primary));font:inherit;cursor:pointer;box-sizing:border-box;gap:12px;padding:0 16px;border-radius:12px}
#root .performance-filter-caption{flex:none;color:rgb(var(--ds-secondary-text));font-size:14px}
#root .performance-filter-value{flex:1;min-width:0;font-size:14px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.performance-filter-sheet{position:fixed;inset:0;width:min(560px,calc(100% - 48px));max-height:80dvh;margin:auto;padding:0;border:1px solid rgb(var(--ds-border));border-radius:16px;background:rgb(var(--ds-surface));color:rgb(var(--ds-primary));box-shadow:0 16px 48px #0002;overflow:auto}
.performance-filter-sheet::backdrop{background:rgb(var(--ds-overlay)/.28)}
.performance-filter-sheet[open]{animation:performance-sheet-enter 180ms ease-out}
.performance-filter-sheet .sheet-head{position:sticky;top:0;z-index:1;padding:12px 16px;background:rgb(var(--ds-surface))}
.performance-filter-sheet .sheet-head h2{margin:0;font-size:20px;line-height:28px}
.performance-filter-options{display:grid;gap:8px;padding:16px}
.performance-filter-option{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:12px 16px;border:1px solid rgb(var(--ds-border));border-radius:12px;font-size:16px;line-height:24px;cursor:pointer}
.performance-filter-option>span{min-width:0;overflow-wrap:anywhere}
.performance-filter-option.is-selected{background:rgb(var(--ds-muted));border-color:rgb(var(--ds-primary))}
.performance-filter-option input{flex:none;width:20px;height:20px;margin:0;accent-color:rgb(var(--ds-primary))}
.performance-filter-option:focus-within{outline:2px solid rgb(var(--ds-primary));outline-offset:2px}
@keyframes performance-sheet-enter{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.performance-filter-sheet[open]{animation:none}}
.library-browser .library-view-tabs{grid-column:-2;grid-row:1;height:var(--library-control-height);box-sizing:border-box}
.library-browser .score-grid.score-list{gap:24px}
.library-browser .score-list .score-card-shell{padding-block:0;border:0}
.library-browser .score-list .score-card-shell:last-child{border-bottom:0}
.library-browser .score-list .score-card-link{border-radius:8px}
.library-browser .score-list .score-card-link .card-info{padding:8px 16px;min-height:64px}
.library-browser .score-list .card-info h2{font-size:16px;line-height:24px}
.library-browser .score-list .card-info p{font-size:14px;line-height:20px;margin-top:4px}
.library-browser .score-grid:not(.score-list) .score-card-link .card-info{padding:16px;min-height:88px}
@media(max-width:700px){
 .library-browser .library-controls-row{grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-bottom:24px}
 .library-browser .performance-filter{grid-column:1;grid-row:1}
 .library-browser .library-view-tabs{grid-column:-2;grid-row:1;justify-self:end;height:var(--library-control-height);box-sizing:border-box}
 #root .performance-filter-value{font-size:14px}
 #root .performance-filter-trigger{gap:8px;padding-inline:12px}
 #root .performance-filter-caption{display:block}
 .performance-filter-sheet{inset:auto 0 0;width:100dvw;max-width:100dvw;max-height:85dvh;margin:0;border-radius:20px 20px 0 0;border-bottom:0}
 .performance-filter-options{padding-bottom:max(24px,env(safe-area-inset-bottom))}
 .library-browser .library-heading h1{font-size:24px;line-height:32px}
 .library-browser .score-grid.score-list{gap:16px}
 .library-browser .score-list .score-card-link .card-info{padding-inline:12px}
}

.audio-spinner{animation:audio-spin 1s linear infinite}
@keyframes audio-spin{to{transform:rotate(360deg)}}
.reader-toolbar[data-density=time] .play-time.audio-loading{display:block;font-size:12px}
@media(prefers-reduced-motion:reduce){.audio-spinner{animation:none}}

.reader-stage-container{display:flex;flex:1;min-height:0}
.reader-stage-container.is-preparing{position:fixed;inset:0;visibility:hidden;opacity:0;pointer-events:none;width:100%;height:100dvh;z-index:-1}
.score-download{box-sizing:border-box;width:calc(100% - 32px);max-width:400px;margin:auto;padding:24px;border:1px solid rgb(var(--ds-border));border-radius:16px;background:rgb(var(--ds-surface));color:rgb(var(--ds-foreground));box-shadow:0 16px 48px #0002}
.score-download::backdrop{background:#0005}
.score-download-heading{display:flex;align-items:center;gap:12px}
.score-download-heading h2{margin:0;flex:1;font-size:20px;line-height:28px;font-weight:600}
.score-download-heading>button{margin:-8px -8px -8px 0}
.score-download-name{font-size:16px;font-weight:600;line-height:24px;margin:24px 0 8px;overflow-wrap:anywhere}
#score-download-description{font-size:14px;line-height:24px;margin:0;color:rgb(var(--ds-secondary-text))}
.score-download-progress{margin-top:24px;font-size:14px;line-height:20px}
.score-download-progress>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}
.score-download-progress progress{display:block;width:100%;height:8px;border:0;border-radius:4px;overflow:hidden;accent-color:rgb(var(--ds-primary))}
.score-download-progress progress::-webkit-progress-bar{background:rgb(var(--ds-muted));border-radius:4px}
.score-download-progress progress::-webkit-progress-value{background:rgb(var(--ds-primary));border-radius:4px;transition:width .16s ease}
.score-download-error{margin:24px 0 0;font-size:14px;line-height:24px;color:rgb(var(--ds-foreground))}
.score-download-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:24px}
@media(prefers-reduced-motion:reduce){.score-download-progress progress::-webkit-progress-value{transition:none}}

/* Library surface and trailing entry icon. */
.app.library,.app.library + .cloud-account{--library-background:#fff;background:var(--library-background)}
.library .library-toolbar-area{padding-bottom:20px}
.library .library-toolbar-area .library-controls-row{margin-bottom:0}
.library>.library-tracks{padding-top:0;padding-bottom:8px}
.library>.site-filing{padding-block:12px max(12px,env(safe-area-inset-bottom))}
#root .cover,#root .library-search-cover{border-radius:16px}
.score-list-play{display:flex;align-items:center;justify-content:center;flex:0 0 var(--library-control-height);width:var(--library-control-height);height:var(--library-control-height);box-sizing:border-box;border:0;background:transparent;color:rgb(var(--ds-primary));margin-left:auto}

@media(max-width:420px){
 .library-browser .library-view-label,#root .performance-filter-caption{display:none}
 .library-browser .library-view-tabs button{width:44px;padding:0}
}

.library-browser .concert-tabs{width:max-content;justify-self:start;display:flex;align-items:stretch;padding:3px;gap:3px;background:#fcfbf8;border:1px solid #eeeae2;border-radius:12px;min-height:var(--library-control-height);box-sizing:border-box}
.concert-tabs button{flex:none;padding-inline:14px;border:0;border-radius:9px;color:rgb(var(--ds-secondary-text));background:transparent;font:inherit;cursor:pointer}
.concert-tabs button[aria-selected=true]{background:rgb(var(--ds-surface));color:rgb(var(--ds-primary));font-weight:600;box-shadow:0 1px 3px #0002}

.library-browser .playable-score{display:flex;align-items:center}
.library-browser .playable-score .score-card-link{flex:1;min-width:0}
.score-row-actions{display:flex;align-items:center;gap:12px;flex:none}
.score-row-actions button{flex:0 0 44px;padding-inline:0}
.score-sing-entry{display:inline-flex;align-items:center;justify-content:center;gap:4px;min-height:44px;padding:0 8px;border:0;border-radius:var(--ds-radius-control);background:transparent;font:600 14px/1 var(--ds-font);white-space:nowrap;color:rgb(var(--ds-primary));cursor:pointer}
.score-sing-entry:focus-visible{background:rgb(var(--ds-muted))}
/* Give the floating player clearance after the last action, outside the filing. */
.library.with-player + .cloud-account,
.library.with-player:not(:has(+ .cloud-account)){padding-bottom:calc(96px + env(safe-area-inset-bottom,0px))}
.library-player{
 position:fixed;z-index:30;bottom:calc(env(safe-area-inset-bottom,0px) + 24px);
 left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:2px;
 width:min(520px,calc(100% - 24px));padding:5px;border-radius:999px;
 border:1px solid rgb(var(--ds-border)/.7);background:rgb(var(--ds-surface)/.84);
 box-shadow:inset 0 1px 0 rgb(255 255 255/.75),0 4px 18px rgb(var(--ds-overlay)/.10);
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
 .library-player{background:rgb(var(--ds-surface)/.42);-webkit-backdrop-filter:blur(18px) saturate(145%);backdrop-filter:blur(18px) saturate(145%)}
}
@media(prefers-reduced-transparency:reduce){.library-player{background:rgb(var(--ds-surface));-webkit-backdrop-filter:none;backdrop-filter:none}}
.library-track{flex:1;min-width:0;display:flex;align-items:baseline;gap:8px;padding-inline:3px;overflow:hidden}
.library-track strong,.library-track span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.library-track strong{font-size:14px;font-weight:600;min-width:0}
.library-track span{flex:none;max-width:65%;font-size:11px;color:rgb(var(--ds-secondary-text));font-variant-numeric:tabular-nums}
#root :is(.library-player,.library-mode) > :is(button,[role=button]){
 width:44px;height:44px;flex:none;border-radius:50%;
}
@media (hover:hover){
}
#root .library-transport :is([role=button],button){
 position:relative;width:44px;height:44px;background:transparent!important;color:rgb(var(--ds-surface));
}
.library-transport :is([role=button],button)::before{content:"";position:absolute;inset:7px;border-radius:50%;background:#15803d}
.library-transport svg{position:relative;width:14px;height:14px}
.library-mixer{position:absolute;bottom:calc(100% + 8px);right:0;width:min(380px,100%);max-height:min(65dvh,520px);display:flex;flex-direction:column;overflow:hidden;background:rgb(var(--ds-surface));border:1px solid rgb(var(--ds-border));border-radius:var(--ds-radius-panel);box-shadow:0 6px 24px rgb(var(--ds-overlay)/.10)}
.library-mixer .sheet-head{flex:none;padding:12px 16px}
.library-mixer .sheet-content{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:16px;gap:16px}
.library-mixer .sheet-content>section{flex:none}
@media(max-width:420px){.library-player{gap:0}.library-track{gap:4px}}

.reader-toolbar>.mode-tabs.has-notes{grid-template-columns:repeat(3,1fr)}
.reader-toolbar>.mode-tabs.has-notes::before{width:calc((100% - 4px)/3)}
.reader-toolbar>.mode-tabs.is-noting::before{transform:translateX(200%)}
.reader-toolbar:has(.note-tools){flex-wrap:wrap}
.note-tools,.note-pens,.note-colors,.note-width,.note-chips{display:flex;align-items:center}
.note-tools{gap:12px;margin-left:auto;flex-wrap:wrap}
.note-tools button,.note-custom{border:0;background:transparent;color:inherit;width:40px;height:44px;border-radius:9px;display:grid;place-items:center;cursor:pointer}
.note-pens button[aria-pressed=true]{background:rgb(var(--ds-muted))}
.note-colors button,.note-custom{width:32px}
.note-colors i{display:block;width:17px;height:17px;border-radius:50%}
.note-colors button[aria-pressed=true] i{outline:2px solid currentColor;outline-offset:3px}
.note-custom{position:relative}.note-custom input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.note-width{gap:5px}.note-width input{width:82px;accent-color:rgb(var(--ds-primary));height:40px}.note-width output{width:2ch;font:12px system-ui}
.note-tools small,.note-form p{font-size:12px;color:rgb(var(--ds-secondary-text))}
.note-form{display:grid;gap:16px;padding:20px}.note-form fieldset{border:0;margin:0;padding:0}
.note-chips{gap:8px;margin-top:8px}.note-chips label{position:relative;flex:1}.note-chips input{position:absolute;opacity:0}
.note-chips span,.note-submit{display:grid;place-items:center;min-height:44px;border-radius:10px;background:rgb(var(--ds-muted))}
.note-chips input:checked+span,.note-submit{background:rgb(var(--ds-primary));color:rgb(var(--ds-surface))}
.note-chips input:focus-visible+span{outline:2px solid currentColor}
.note-form input[name=name]{display:block;width:100%;margin-top:6px;padding:10px;border:1px solid rgb(var(--ds-border));border-radius:8px;font:inherit}
@media(max-width:640px){.note-tools{width:100%;margin:0;gap:5px}.note-tools small{margin-left:auto}.note-width input{width:64px}}
.reader-header:has(.note-tools){position:relative;z-index:5}
.reader-toolbar:has(.note-tools){flex-wrap:nowrap}
.reader-toolbar .note-tools{position:relative;flex:none;width:auto;margin-left:auto;gap:0}
.note-choice{display:flex;align-items:center;border-radius:9px}
.note-choice[data-selected=true]{background:rgb(var(--ds-muted))}
.note-tools .note-disclose{width:28px;height:44px}
.note-disclose[aria-expanded=true] svg{transform:rotate(180deg)}
.note-pop{position:absolute;top:calc(100% + 6px);right:0;z-index:5;display:grid;gap:8px;padding:12px 16px;background:rgb(var(--ds-surface));border:1px solid rgb(var(--ds-border));border-radius:14px;box-shadow:0 8px 28px rgb(var(--ds-overlay)/.13)}
.note-pop .note-colors{justify-content:space-between}.note-pop .note-width{font-size:13px;gap:8px;white-space:nowrap}.note-pop .note-width input{width:110px}

.note-pens{gap:8px}
.note-choice{transition:background-color var(--motion-duration) ease}
.note-choice>button:first-child{width:auto;display:flex;align-items:center;gap:4px;padding:0 10px;font:inherit;font-size:14px;white-space:nowrap;background:transparent}
.note-pens .note-disclose{width:28px;padding:0;overflow:hidden;transition:width var(--motion-duration) var(--motion-easing),opacity var(--motion-duration) ease}
.note-disclose:disabled{width:0;opacity:0;pointer-events:none}
.note-disclose svg{transition:transform var(--motion-duration) var(--motion-easing)}
.note-pop{width:min(224px,calc(100vw - 24px));gap:14px;padding:16px;transition:opacity 160ms ease,transform 160ms var(--motion-easing),visibility 0s;transform-origin:top right}
.note-pop[data-open=false]{visibility:hidden;pointer-events:none;opacity:0;transform:translateY(-5px);transition-delay:0s,0s,160ms}
.note-pop h3{margin:0 0 6px;color:rgb(var(--ds-secondary-text));line-height:18px;font-family:inherit;font-size:13px;font-weight:600}
.note-pop section+section{border-top:1px solid rgb(var(--ds-border));padding-top:12px}
.note-pop .note-width input{flex:1;min-width:0;margin:0}.note-pop .note-width output{text-align:right}
@media(max-width:580px){.reader-toolbar:has(.note-tools){flex-wrap:wrap;row-gap:6px}.note-pens{gap:4px}.note-choice>button:first-child{padding-inline:8px}}
@media(prefers-reduced-motion:no-preference){
 :where(body:has(.app[data-catalog="chunni"])) .library-search-dialog[open],:where(body:has(.app[data-catalog="chunni"])) .score-download[open],:where(body:has(.app[data-catalog="chunni"])) .library-mixer,.note-tools,:where(body:has(.app[data-catalog="chunni"])) #practice-popover .sheet-content,:where(body:has(.app[data-catalog="chunni"])) #library-scores[role=tabpanel]{animation:surface-enter var(--motion-duration) var(--motion-easing)}
 :where(body:has(.app[data-catalog="chunni"])) .concert-tabs [role=tab],.note-chips span,.note-colors button{transition:background-color var(--motion-duration) ease,color var(--motion-duration) ease}
}
@media(prefers-reduced-motion:reduce){.note-choice,.note-disclose,.note-disclose svg,.note-pop,:where(body:has(.app[data-catalog="chunni"])) .library-view-tabs button{transition:none!important}}

@keyframes reveal-play-time{
  from{clip-path:inset(0 max(0px,calc(100% - 48px)) 0 0 round 12px)}
  to{clip-path:inset(0 0 0 0 round 12px)}
}
@media(prefers-reduced-motion:no-preference){
  :where(body:has(.app[data-catalog="chunni"])) .reader-toolbar>.tool-strip{animation:surface-enter var(--motion-duration) var(--motion-easing)}
  :where(body:has(.app[data-catalog="chunni"])) .reader-toolbar>.reader-actions:not(.is-hidden){
    animation:reveal-play-time 260ms var(--motion-easing) 130ms backwards;
  }
  :where(body:has(.app[data-catalog="chunni"])) .reader-actions:not(.is-hidden) .transport-button{
    animation:surface-enter 130ms var(--motion-easing);
  }
}
.inline-palette{display:grid;gap:8px;padding-top:8px}
.ink-plane{height:106px;position:relative;border-radius:8px;overflow:hidden;touch-action:none;cursor:crosshair;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,transparent)}
.ink-plane i{position:absolute;pointer-events:none;width:12px;height:12px;border:2px solid white;border-radius:50%;transform:translate(-50%,-50%);box-shadow:0 0 2px #333}
.note-pop input[type=range]{appearance:none;-webkit-appearance:none;width:100%;background:transparent;border:0;padding:0;height:30px;cursor:pointer}
.note-pop input[type=range]::-webkit-slider-runnable-track{height:5px;background:#e7e7e7;border:0;border-radius:4px}
.note-pop input[type=range]::-moz-range-track{height:5px;background:#e7e7e7;border:0;border-radius:4px}
.note-pop input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:16px;height:16px;margin-top:-5.5px;border:0;border-radius:50%;background:rgb(var(--ds-primary))}
.note-pop input[type=range]::-moz-range-thumb{width:16px;height:16px;border:0;border-radius:50%;background:rgb(var(--ds-primary))}
.note-pop input.ink-hue[type=range]::-webkit-slider-runnable-track{background:linear-gradient(to right,red,#ff0,lime,cyan,blue,magenta,red)}
.note-pop input.ink-hue[type=range]::-moz-range-track{background:linear-gradient(to right,red,#ff0,lime,cyan,blue,magenta,red)}
@media(prefers-reduced-motion:no-preference){.inline-palette{animation:surface-enter 160ms var(--motion-easing)}}
.note-history,.note-switch{display:flex;align-items:center;gap:2px}
.note-history::after,.note-switch::before{content:'';flex:none;width:1px;height:18px;background:rgb(var(--ds-border)/.6);margin-inline:14px}
.reader-toolbar[data-hide-note-history] .note-history{display:none}
.note-history button:disabled{opacity:.32}

.note-switch button{width:44px;height:44px;padding:0;border-radius:var(--ds-radius-control)}
.note-tools .note-pop{gap:0;padding:0;border-radius:16px;top:calc(100% + 12px);box-shadow:0 8px 28px rgb(var(--ds-overlay)/.13)}
.note-pop .sheet-head{padding:8px 12px 8px 16px;border-top-left-radius:inherit;border-top-right-radius:inherit}
.note-pop .sheet-head h2{font-size:16px}
.note-pop section{margin:0;padding:14px 16px}
.note-pop .note-colors button{width:44px;height:44px;padding:0}
.note-colors .color-wheel{background:conic-gradient(#ff5555,#ffd446,#52c976,#3eabef,#7752da,#ea58a2,#ff5555);mask:radial-gradient(circle,transparent 40%,black 43%);width:19px;height:19px}
@media(max-width:740px){.reader-toolbar:has(.note-tools){flex-wrap:wrap}.note-history::after,.note-switch::before{margin-inline:8px}.note-tools .note-history button{width:30px}.note-tools .note-pens{gap:2px}}
@media(max-width:500px){.note-tools .note-choice>button:first-child{padding-inline:6px}}

.note-switch button[aria-expanded=true]{background:rgb(var(--ds-muted))}
.note-gesture-help{margin:0;color:rgb(var(--ds-secondary-text));font-size:13px;line-height:1.5}
.reader-toolbar:not([data-density=full]) .note-choice>button:first-child span{display:none}
.reader-toolbar:not([data-density=full]) .note-choice>button:first-child{width:40px}
.reader-toolbar:not([data-density=full]) .note-choice[data-selected=true]>button:first-child{width:auto}

.note-identity-sheet[open]{display:flex;flex-direction:column;top:var(--note-visible-top,0px);bottom:var(--note-visible-bottom,0px);max-height:min(80dvh,calc(var(--note-visible-height,100dvh) - 12px));overflow:hidden}
.note-identity-sheet .sheet-head{flex:none}
.note-identity-sheet .note-form{display:flex;flex-direction:column;min-height:0;padding:0;gap:0}
.note-identity-fields{display:grid;gap:16px;padding:20px;overflow-y:auto;overscroll-behavior:contain}
.note-identity-footer{flex:none;padding:0 20px max(16px,env(safe-area-inset-bottom))}
.note-identity-footer .note-submit{width:100%}
.note-submit:disabled{opacity:.4;cursor:default}
.note-identity-fields input[name=name]{font-size:16px}
@media(max-width:700px){.note-identity-sheet[open]{top:auto;max-height:min(85dvh,calc(var(--note-visible-height,100dvh) - 8px))}}

.note-pop .note-account-row{padding:4px 8px}
.note-account-row button{display:flex;align-items:center;justify-content:flex-start;width:100%;padding:0 8px;gap:10px;font:inherit;font-size:14px}
.note-account-row button:active{background:rgb(var(--ds-muted))}

.note-tool-icon{display:inline-grid;flex:none}
.note-tool-icon svg{grid-area:1 / 1}

.note-name-field{display:grid;gap:8px}
#note-name-hint{margin:0}

.note-mode-tab{position:relative}
#note-beta-badge{position:absolute;right:1px;top:-6px;padding:1px 5px;border-radius:8px;background:#bf303a;color:#fff;font-size:10px;line-height:14px;font-weight:600}

.note-pens .note-choice[data-selected=true]{gap:4px}
.note-pens .note-choice[data-selected=true]>button:first-child{width:auto;padding-inline-end:0}
.note-pens .note-disclose:not(:disabled){justify-items:start}

/* Only the floating grip takes touches; the rest of the edge remains writable. */
.note-scroll-rail{position:absolute;z-index:2;right:env(safe-area-inset-right,0px);top:8px;bottom:max(8px,env(safe-area-inset-bottom));width:52px;pointer-events:none}
.harmony-note-scroll-handle{position:absolute;inset:0 0 auto;width:100%;height:72px;display:grid;justify-items:end;align-items:center;padding-right:5px;box-sizing:border-box;pointer-events:auto;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent;cursor:grab}
.harmony-note-scroll-handle[hidden]{display:none}
.note-scroll-grip{box-sizing:border-box;width:32px;height:64px;border-radius:999px;background:rgb(var(--ds-secondary-text) / .5);border:1px solid rgb(var(--ds-surface) / .55);box-shadow:0 1px 4px #0002;display:grid;place-items:center;transition:background-color .12s ease}
.note-scroll-grip::after{content:"";width:12px;height:6px;box-sizing:border-box;border-block:1.5px solid rgb(var(--ds-surface))}
/* Some browsers retarget a fast mouse drag into the iframe despite pointer capture. */
.score-stage:has(.harmony-note-scroll-handle[data-dragging])>.score-engine{pointer-events:none}
.harmony-note-scroll-handle[data-dragging]{cursor:grabbing}
.harmony-note-scroll-handle[data-dragging] .note-scroll-grip,.harmony-note-scroll-handle:focus-visible .note-scroll-grip{background:rgb(var(--ds-primary) / .64)}
.harmony-note-scroll-handle:focus-visible{outline:none}
.harmony-note-scroll-handle:focus-visible .note-scroll-grip{outline:2px solid rgb(var(--ds-primary));outline-offset:2px}
@media(prefers-reduced-motion:reduce){.note-scroll-grip{transition:none}}

/* Practice retains the score engine for audio routing and original engraving. */
 .app.reading.singing-mode{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) minmax(0,33.333333%);}
.singing-mode>.reader-stage-container{grid-column:1;grid-row:2;position:relative;min-height:0}
.singing-mode .sing-panel{display:contents}
.singing-mode .sing-upper{grid-column:1;grid-row:1;border:0}
.singing-mode .sing-lower{grid-column:1;grid-row:3;border-top:1px solid rgb(var(--ds-border))}
.sing-lower .sing-volume{display:inline-flex;align-items:center;gap:6px;font-size:14px}
.sing-options .sing-live{flex:1;gap:8px}
@media(max-height:500px){.singing-mode .sing-lower{gap:2px}.singing-mode .sing-plot{min-height:22px}.singing-mode .sing-options,.singing-mode .sing-buttons{flex-shrink:0}}

.sing-panel{--edge:clamp(16px,4vw,64px);--ink:rgb(var(--ds-foreground));display:grid;grid-template-rows:repeat(2,minmax(0,1fr));height:100%;min-height:0;color:var(--ink);background:rgb(var(--ds-surface));font-family:var(--ds-font)}
.sing-upper,.sing-lower{min-height:0;min-width:0;box-sizing:border-box;padding-inline:var(--edge)}
.sing-upper{display:flex;flex-direction:column;padding-top:max(8px,env(safe-area-inset-top));border-bottom:1px solid rgb(var(--ds-border))}
.sing-upper header,.sing-options,.sing-buttons,.sing-legend,.sing-weak,.sing-tip,.sing-metrics{display:flex;align-items:center;gap:12px}
.sing-upper header{min-height:52px;gap:10px}
.sing-panel h1,.sing-panel h2,.sing-panel h3,.sing-panel p{margin:0}
.sing-upper h1{font-size:clamp(17px,2.4vw,22px);font-weight:600;line-height:1.25}
.sing-upper header p,.sing-section-caption,.sing-help,.sing-tip{color:rgb(var(--ds-secondary-text));font-size:13px}
.sing-panel button,.sing-panel select{border:1px solid rgb(var(--ds-border));border-radius:var(--ds-radius-control);min-height:44px;background:rgb(var(--ds-surface));color:var(--ink);padding:6px 14px;font:inherit;cursor:pointer}
.sing-panel .sing-back{border:0;padding:0;min-width:55px;height:44px;margin-left:-4px;display:flex;gap:4px;align-items:center;justify-content:center;font-size:14px}
.sing-panel :is(button,select,input):focus-visible{outline:2px solid currentColor;outline-offset:2px}
.sing-panel button:disabled{opacity:.45;cursor:default}
.sing-paper{min-height:0;flex:1;display:flex;flex-direction:column;align-items:stretch;justify-content:center;padding-block:clamp(6px,1.6vh,20px)}
.sing-section-caption{font-size:12px;font-variant-numeric:tabular-nums}
.sing-sheet{flex:1;min-height:0;display:grid;place-items:center;padding:4px 0}
.sing-sheet svg{display:block;width:100%;height:100%;overflow:hidden}
.sing-lower{display:flex;flex-direction:column;gap:clamp(4px,1.25vh,14px);background:rgb(var(--ds-canvas));padding-block:clamp(8px,2vh,20px) max(8px,env(safe-area-inset-bottom));overflow:auto}
.sing-options,.sing-weak{flex-wrap:wrap;gap:6px 16px}
.sing-options label,.sing-buttons button,.sing-tip{display:inline-flex;align-items:center;gap:7px;font-size:14px}
.sing-options select{font-size:14px;padding:4px 8px}
.sing-guide{min-height:44px}.sing-guide input{accent-color:rgb(var(--ds-primary));width:16px;height:16px}
.sing-legend{font-size:12px;color:rgb(var(--ds-secondary-text));gap:14px;min-height:20px}
.sing-legend span:before{content:'';display:inline-block;width:16px;height:4px;background:#535966;border-radius:3px;margin-right:5px;vertical-align:middle}
.sing-legend span:nth-child(2):before{background:#bb532c;height:2px}.sing-legend b{margin-left:auto;color:var(--ink);font-weight:600}
.sing-plot{flex:1;position:relative;min-height:48px;border:1px solid rgb(var(--ds-border));background:white;border-radius:var(--ds-radius-panel);overflow:hidden}
.sing-chart{position:absolute;inset:0;width:100%;height:100%;display:block}
.sing-buttons{justify-content:flex-end;gap:8px;flex-wrap:wrap}.sing-tip{margin-right:auto;font-size:12px}
.sing-buttons button{background:rgb(var(--ds-primary));color:#fff;border-color:transparent}.sing-buttons button+button{background:white;color:var(--ink);border-color:rgb(var(--ds-border))}
.sing-panel .sing-metrics{gap:36px}.sing-metrics strong{display:block;font-size:28px}.sing-weak button{font-size:13px}
.sing-weak h3,.sing-metrics div{font-size:14px}.sing-panel h2{font-size:18px}.sing-error{font-size:14px;color:#a6381a}
@media(max-width:600px){.score-row-actions{gap:2px}.sing-options{gap:4px 10px}.sing-options label{font-size:13px}.sing-lower{padding-block-start:8px}}
@media(max-height:500px){.sing-upper header{min-height:44px}.sing-upper{padding-top:0}.sing-lower{gap:3px;padding-block:4px}.sing-options select,.sing-buttons button,.sing-guide{min-height:36px}.sing-options{flex-wrap:nowrap}.sing-section-caption{font-size:11px}}

.sing-nav{display:grid;grid-template-columns:minmax(52px,1fr) minmax(0,3fr) minmax(52px,1fr);align-items:center;gap:8px;min-height:var(--ds-header-height);margin-inline:calc(-1 * var(--edge));padding-inline:var(--edge);border-bottom:1px solid rgb(var(--ds-border))}
.sing-nav-title{text-align:center;min-width:0}.sing-nav-title h1{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sing-nav-title p{font-size:13px;color:rgb(var(--ds-secondary-text))}
.sing-nav .sing-back{justify-self:start}.sing-nav .sing-settings{display:inline-flex;justify-self:end;gap:7px;align-items:center;border:0;font-size:14px;white-space:nowrap;padding-inline:8px}
.sing-upper{padding-top:env(safe-area-inset-top)}
.sing-lower .sing-buttons{justify-content:center}
.sing-options .sound-toggle input,.sing-mixer .sound-toggle input{width:44px;height:28px;flex:none}
.sing-options{align-items:center;flex-wrap:wrap}
.sing-empty{text-align:center;color:rgb(var(--ds-secondary-text))}
.sing-mixer{box-sizing:border-box;position:fixed;margin:auto;padding:0;width:min(450px,calc(100vw - 32px));max-height:80dvh;overflow:auto;border:1px solid rgb(var(--ds-border));border-radius:var(--ds-radius-panel);background:white;color:rgb(var(--ds-foreground));box-shadow:0 12px 44px #0002}
.sing-mixer::backdrop{background:rgb(0 0 0 / .28)}.sing-mixer-content{padding:16px 20px 20px}
.sing-mixer header{display:flex;align-items:center;justify-content:space-between}.sing-mixer header button{border:0;display:grid;place-items:center;width:44px;padding:0}
.sing-mixer-row{display:grid;grid-template-columns:minmax(65px,1fr) 52px minmax(100px,1.55fr);align-items:center;gap:10px;min-height:52px;border-top:1px solid rgb(var(--ds-border));font-size:14px}
.sing-mixer-head{min-height:32px;color:rgb(var(--ds-secondary-text));border:0;font-size:12px}
.sing-mixer .sound-toggle,.sing-level{display:flex;align-items:center;min-height:44px}
.sing-level input{min-width:0;width:100%;height:32px;accent-color:rgb(var(--ds-primary))}.sing-level output{min-width:38px;text-align:right;font-variant-numeric:tabular-nums}
@media(max-width:600px){.sing-nav{min-height:56px}.sing-nav .sing-settings span{display:none}.sing-nav .sing-settings{width:44px;justify-content:center}.sing-options{gap:3px 8px}}
@media(max-height:500px){.sing-nav{min-height:44px}.sing-options{flex-wrap:nowrap}.sing-guide{white-space:nowrap}}

/* Align the practice header controls with the embedded reader's page gutters. */
.singing-mode .sing-upper{background:rgb(var(--ds-primary));color:white}
.sing-nav{--score-inset:24px;background:rgb(var(--ds-primary));color:white;border:0;padding-inline:max(var(--score-inset),calc((100% - 1000px)/2));grid-template-columns:44px minmax(0,1fr) 44px}
.sing-nav .sing-back{width:44px;min-width:44px;margin:0;background:transparent;color:white}
.sing-nav h1{color:white}
.sing-lower .sing-options{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:4px 8px}
.sing-options .sing-role-select{min-width:0;max-width:100%;justify-self:start;display:inline-flex;align-items:center;justify-content:space-between;gap:16px;padding-inline:12px;font-size:14px;font-weight:500}
.sing-role-select span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sing-role-select svg{flex:none}
.sing-role-select[aria-expanded=true] svg{transform:rotate(180deg)}
.sing-role-menu{position:fixed;inset:auto;margin:0;width:min(192px,calc(100vw - 16px));box-sizing:border-box;padding:4px;overflow:auto;overscroll-behavior:contain;border:1px solid rgb(var(--ds-border));border-radius:var(--ds-radius-panel);background:rgb(var(--ds-surface));color:rgb(var(--ds-primary));box-shadow:0 8px 24px #0002}
.sing-role-menu::backdrop{background:transparent}
.sing-role-menu button{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;border:0;padding:8px 12px;font-size:14px;text-align:start}
.sing-role-menu button:focus-visible{outline-offset:-2px}
.sing-role-menu button[aria-selected=true]{font-weight:600}
@media(max-width:559px){
 .sing-lower .sing-options.sing-setup{grid-template-columns:minmax(0,1fr) auto auto;align-items:center}
 .sing-setup .sing-role-select{grid-area:1/1}
 .sing-options.sing-setup .sing-volume{grid-area:1/2}
 .sing-options.sing-setup .sing-buttons{grid-area:1/3}
 .sing-options.sing-setup>label{grid-area:2/1/3/-1}
}
.sing-options .sing-volume,.sing-options>label{grid-column:1;justify-self:start}
.sing-options .sing-buttons{grid-column:2;grid-row:1;justify-content:flex-end}
.sing-lower .sing-options.sing-performing{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:start;gap:6px}
.sing-performing .sing-volume,.sing-performing .sing-buttons{grid-row:auto;grid-column:auto}
.sing-live{min-width:0;align-self:center}.sing-live select{max-width:100%;margin-top:3px}
.sing-lyrics{font-size:clamp(22px,4vw,32px);line-height:1.2;font-weight:600;color:rgb(var(--ds-foreground));overflow-wrap:anywhere}
.sing-status{display:block;font-size:12px;line-height:1.45;color:rgb(var(--ds-secondary-text))}
.sing-panel .sing-stop{color:#b42318;background:#fff1ef;border-color:#efc4bf}
.sing-plot .sing-skip{position:absolute;right:8px;bottom:8px;display:inline-flex;align-items:center;gap:6px;padding:0 12px;font-size:14px;box-shadow:0 2px 8px #0002}
.sing-lyrics+.sing-status{margin-top:3px}
.sing-panel :is(.sing-pause,.sing-stop){display:grid;place-items:center;width:44px;height:44px;padding:0}
@media(max-width:420px){.sing-performing .sing-buttons button{padding-inline:8px;font-size:13px}}
.sing-lyrics [aria-current]{color:rgb(var(--ds-foreground));font-weight:700;text-decoration:underline;text-underline-offset:4px}
@media(min-width:560px){.sing-lower .sing-options{display:flex;align-items:center;flex-wrap:nowrap}.sing-options .sing-buttons{margin-left:auto;flex:none}.sing-options .sing-volume{flex:none}}
@media(max-width:900px){.sing-nav{--score-inset:16px}}
@media(max-width:600px){.sing-nav{--score-inset:8px}}

.singing-mode>.reader-stage-container{grid-row:2/4}
.singing-mode .sing-upper[hidden]{display:none}
.singing-mode .sing-lower{position:relative;z-index:1}
.sing-lower .sing-volume{width:44px;height:44px;padding:0;justify-content:center}
.sing-report{width:min(400px,calc(100vw - 32px))}
.sing-report .sing-mixer-content{padding:14px 20px 20px}
.sing-result-ring{display:grid;place-items:center;width:156px;aspect-ratio:1;margin:14px auto 28px;border-radius:50%;background:conic-gradient(#20825a var(--score-angle),#e8eeea 0)}
.sing-result-ring>div{width:calc(100% - 16px);aspect-ratio:1;border-radius:50%;background:rgb(var(--ds-surface));display:flex;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.sing-result-ring strong{font-size:48px;font-weight:650;letter-spacing:-.045em;line-height:1;font-variant-numeric:tabular-nums}.sing-result-ring small{font-size:20px;margin-left:3px}
.sing-result-ring span,.sing-report .sing-report-note{font-size:13px;color:rgb(var(--ds-secondary-text))}
.sing-report-actions{display:grid;grid-template-columns:1fr 1.2fr;gap:8px}
.sing-report-actions :is(button,a){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;box-sizing:border-box;font:inherit;font-size:14px;color:inherit;background:white;border:1px solid rgb(var(--ds-border));border-radius:var(--ds-radius-control);text-decoration:none}
.sing-report-actions .sing-retry{color:white;background:rgb(var(--ds-primary));border-color:transparent;font-weight:600}
.sing-report .sing-report-note{text-align:center;margin:10px 0}
.sing-report-actions a:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* Performance folders share the reader/admin palette and a 4 px spacing scale. */
.folder-section{margin-bottom:24px}
.folder-section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px;min-width:0}
.folder-section-heading h2,.folder-reader-label{font-size:16px;font-weight:600;margin:0}
.performance-folders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.performance-folder{display:flex;align-items:center;gap:16px;min-width:0;min-height:96px;padding:20px;text-align:left;border:1px solid rgb(var(--ds-border));border-radius:12px;background:rgb(var(--ds-surface));color:rgb(var(--ds-primary));font:inherit;cursor:pointer}
.performance-folder:focus-visible,.folder-empty:focus-visible,.folder-breadcrumb button:focus-visible,.folder-reorder button:focus-visible{outline:2px solid rgb(var(--ds-primary));outline-offset:4px}
.folder-symbol{display:grid;place-items:center;width:40px;height:40px;flex:none;background:rgb(var(--ds-muted));border-radius:8px}
.folder-info{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.folder-info strong{font-size:16px;font-weight:600;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.folder-info>span,.folder-selection-title>span,.folder-note,.folder-selection-empty{font-size:14px;color:rgb(var(--ds-secondary-text))}
.folder-empty{width:100%;display:flex;align-items:center;gap:16px;padding:24px;border:1px dashed rgb(var(--ds-border));border-radius:12px;background:transparent;font:inherit;color:rgb(var(--ds-secondary-text));cursor:pointer}
.folder-empty>span:last-child{margin-left:auto;color:rgb(var(--ds-primary))}
.folder-actions{display:flex;gap:8px;flex:none}
.folder-breadcrumb{display:flex;align-items:center;gap:8px;min-width:0;font-size:14px;margin:0}
.folder-breadcrumb button{display:flex;align-items:center;gap:8px;min-height:44px;padding:0 8px 0 0;background:none;border:0;flex:none;color:rgb(var(--ds-secondary-text));font:inherit;cursor:pointer}
.folder-breadcrumb>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.folder-breadcrumb>svg{flex:none;color:rgb(var(--ds-secondary-text))}
.folder-editor{width:min(640px,calc(100vw - 32px))!important;max-height:calc(100dvh - 32px);padding:0}
.folder-editor form{display:flex;flex-direction:column;min-height:0}
.folder-editor-body{padding:24px;overflow-y:auto;max-height:calc(100dvh - 216px);overscroll-behavior:contain}
.folder-name-label{display:flex;flex-direction:column;gap:8px;font-size:14px;font-weight:500}
.folder-name-label input{font-size:16px;min-height:44px}
.folder-selection-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:24px 0 12px}
.folder-selection-title h3{margin:0;font-size:16px;font-weight:600}
.folder-selection-title h3 span{margin-left:8px;font-size:14px;font-weight:400;color:rgb(var(--ds-secondary-text))}
.folder-selected-scores{padding:0;margin:0;list-style:none}
.folder-selected-scores li{display:flex;align-items:center;gap:12px;min-height:52px;border-bottom:1px solid rgb(var(--ds-border))}
.folder-order{width:20px;flex:none;color:rgb(var(--ds-secondary-text));font-size:14px;font-variant-numeric:tabular-nums}
.folder-score-name{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:16px}
.folder-score-name small,.folder-candidates small{font-size:12px;color:rgb(var(--ds-secondary-text));margin-left:8px}
.folder-reorder{display:flex;flex:none;gap:0}
.folder-reorder button{display:grid;place-items:center;width:40px;height:44px;border:0;background:none;color:inherit;border-radius:8px;cursor:pointer}
.folder-reorder button:disabled{opacity:.3;cursor:default}
.folder-selection-empty{margin:0;padding:8px 0 16px}
.folder-search{display:flex;align-items:center;gap:8px;border:1px solid rgb(var(--ds-border));padding:0 12px;border-radius:8px;height:44px;margin:20px 0 8px;color:rgb(var(--ds-secondary-text))}
.folder-search input{width:100%;min-width:0;border:0;background:none;font:inherit;font-size:16px;color:rgb(var(--ds-primary));outline:0}
.folder-candidates{max-height:240px;overflow-y:auto;overscroll-behavior:contain}
.folder-candidates label{display:flex;align-items:center;gap:12px;padding:8px;min-height:44px;cursor:pointer;font-size:16px}
.folder-candidates label>span{min-width:0;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.folder-candidates input{width:18px;height:18px;accent-color:rgb(var(--ds-primary));flex:none}
.folder-candidates p{padding:16px 8px;color:rgb(var(--ds-secondary-text))}
.folder-note{margin:16px 0 0}
.folder-editor .web-dialog-footer{padding:16px 24px;margin:0;border-top:1px solid rgb(var(--ds-border))}
.folder-delete>p{padding:24px;margin:0;line-height:1.6}
.library-folder-section{margin-bottom:32px}
.library-folder-section .folder-reader-label{margin-bottom:16px}
.library-content>.folder-breadcrumb{margin-bottom:16px}
.library-heading>div:first-child{min-width:0}
.library-heading .folder-library-title{display:flex;align-items:baseline;gap:8px;min-width:0}
.folder-library-title>strong{font:inherit;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.folder-library-title>span{flex:none}
@media(max-width:800px){.performance-folders{grid-template-columns:repeat(2,minmax(0,1fr))}.performance-folder{padding:16px;gap:12px}.folder-section-heading{flex-wrap:wrap}}
@media(max-width:480px){.performance-folders{grid-template-columns:minmax(0,1fr);gap:12px}.performance-folder{min-height:80px}.folder-editor-body{padding:16px}.folder-editor .web-dialog-footer{padding:16px}.folder-reorder button{width:36px}.folder-selection-title>span{font-size:12px}.folder-empty{padding:16px;flex-wrap:wrap;gap:12px}.folder-empty>span:last-child{margin-left:36px}.folder-actions{margin-left:auto}.library-heading:has(.folder-library-title){flex-wrap:wrap}.library-heading .folder-library-title{font-size:24px}}
.folder-editor .web-dialog-header{padding:20px 24px;margin:0;border-bottom:1px solid rgb(var(--ds-border));align-items:center}
.folder-editor .web-dialog-header>.web-button{width:40px;height:40px}
@media(max-width:480px){.folder-editor .web-dialog-header{padding:16px}.folder-editor-body{max-height:calc(100dvh - 216px)}}

/* Shared web sign-in layout for members and administrators. */
.cloud-gate--signin{box-sizing:border-box;min-height:100vh;min-height:100dvh;display:grid;grid-template-columns:minmax(0,400px);justify-content:center;place-items:center;padding:24px;background:#f5f5f5;color:#191919;font-family:"PingFang SC","Microsoft YaHei",sans-serif}
.cloud-login{width:min(100%,400px);min-width:0}
.cloud-login>.cloud-form--signin{width:100%;min-width:0;box-sizing:border-box;display:grid;gap:20px;padding:28px;background:#fff;border:0;border-radius:16px}
.cloud-form--signin>.harmony-brand{width:100%;min-width:0;flex-direction:column;justify-content:center;align-items:center;gap:12px;margin-bottom:20px;text-align:center;white-space:normal}
.cloud-form--signin>.harmony-brand img{width:56px;height:56px}
.cloud-form--signin>.harmony-brand strong{max-width:100%;font-size:26px;line-height:32px}
.cloud-form--signin label{display:grid;gap:8px;font-size:15px;min-width:0}
.cloud-form--signin input{box-sizing:border-box;width:100%;height:auto;min-height:44px;padding:10px 12px;background:#f3f3f3;color:#191919;border:0;border-radius:8px;font-size:16px;line-height:24px}
.cloud-form--signin input::placeholder{color:#9ca3af;opacity:1}
.cloud-form--signin button{box-sizing:border-box;width:100%;height:auto;min-height:44px;padding:10px 16px;border:0;border-radius:8px;background:#191919;color:#fff;font-size:16px;line-height:24px}
.cloud-form--signin button:disabled{opacity:.5;cursor:wait}
.cloud-form--signin [role=alert]{margin:0;color:#b91c1c;font-size:14px;line-height:1.6}
.cloud-form--signin>.site-filing{width:100%;padding:0;box-sizing:border-box;text-align:center;font-size:12px;line-height:1.5;color:#666}
.cloud-form--signin>.site-filing a{color:inherit;text-decoration:none}
.cloud-form--signin :is(input,button):focus-visible,.cloud-form--signin>.site-filing a:focus-visible{outline:2px solid #191919;outline-offset:4px}
@media(max-width:360px){.cloud-form--signin>.harmony-brand strong{font-size:22px}}
#root .first\:mt-0:first-child {
  margin-top: 0px;
}
#root .focus-visible\:border-ring:focus-visible {
  --tw-border-opacity: 1;
  border-color: rgb(var(--ds-primary) / var(--tw-border-opacity, 1));
}
#root .focus-visible\:ring-\[3px\]:focus-visible {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
#root .focus-visible\:ring-ring\/50:focus-visible {
  --tw-ring-color: rgb(var(--ds-primary) / 0.5);
}
#root .active\:bg-accent:active {
  --tw-bg-opacity: 1;
  background-color: rgb(var(--ds-muted) / var(--tw-bg-opacity, 1));
}
#root .active\:bg-destructive\/90:active {
  background-color: rgb(var(--ds-primary) / 0.9);
}
#root .active\:bg-primary\/90:active {
  background-color: rgb(var(--ds-primary) / 0.9);
}
#root .active\:bg-secondary\/80:active {
  background-color: rgb(var(--ds-muted) / 0.8);
}
#root .disabled\:pointer-events-none:disabled {
  pointer-events: none;
}
#root :is(.group:active .group-active\:text-accent-foreground) {
  --tw-text-opacity: 1;
  color: rgb(var(--ds-foreground) / var(--tw-text-opacity, 1));
}
#root :is(.group:active .group-active\:underline) {
  text-decoration-line: underline;
}
#root .has-\[\>svg\]\:px-2\.5:has(>svg) {
  padding-left: 0.625rem;
  padding-right: 0.625rem;
}
#root .has-\[\>svg\]\:px-3:has(>svg) {
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}
#root .has-\[\>svg\]\:px-4:has(>svg) {
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {

  #root .sm\:mt-6 {
    margin-top: 1.5rem;
  }

  #root .sm\:h-10 {
    height: 2.5rem;
  }

  #root .sm\:h-8 {
    height: 2rem;
  }

  #root .sm\:h-9 {
    height: 2.25rem;
  }

  #root .sm\:w-9 {
    width: 2.25rem;
  }

  #root .sm\:pl-6 {
    padding-left: 1.5rem;
  }
}
@media (prefers-color-scheme: dark) {

  #root .dark\:bg-destructive\/60 {
    background-color: rgb(var(--ds-primary) / 0.6);
  }

  #root .dark\:active\:bg-accent\/50:active {
    background-color: rgb(var(--ds-muted) / 0.5);
  }
}
#root :is(.\[\&\>svg\]\:pointer-events-none>svg) {
  pointer-events: none;
}
#root :is(.\[\&\>svg\]\:size-3>svg) {
  width: 0.75rem;
  height: 0.75rem;
}
#root :is(.\[\&_svg\:not\(\[class\*\=\'size-\'\]\)\]\:size-4 svg:not([class*='size-'])) {
  width: 1rem;
  height: 1rem;
}
#root :is(.\[\&_svg\]\:pointer-events-none svg) {
  pointer-events: none;
}
#root :is(.\[\&_svg\]\:shrink-0 svg) {
  flex-shrink: 0;
}
