/* ---------------------------------------------------------------------------
   Practice Room — canonical Material Design 3 components.

   Every visual element on a product page (metronome, shop, later products)
   comes from this file. A page supplies data and markup from COMPONENTS.md;
   it never styles a component itself. If a page needs something this file
   does not have, the component is added here first (template first), then
   the page uses it.

   Rules (adopted from Fynnwork MD3-1 to MD3-4):
     - only official MD3 components, named after the spec (md-*); compositions
       of them that we reuse carry the pr-* prefix
     - only tokens from tokens.css: no hex, no rgb() colours in this file
     - 8px grid (4px for type details)
     - every interactive component has hover, focus-visible, pressed and
       disabled states, drawn as an MD3 state layer

   Needs: tokens.css before this file; Material Symbols Outlined for icons;
   md3.js for the behaviour of drawer, menu, dialog, sheet and snackbar.
   Reference: components.html shows every component in every state.
   --------------------------------------------------------------------------- */

/* Components size by their border box, independent of any page reset. */
:where([class*="md-"], [class*="pr-"]),
:where([class*="md-"], [class*="pr-"])::before,
:where([class*="md-"], [class*="pr-"])::after { box-sizing: border-box; }

/* ===== Three text sizes (pr-type-3) =======================================
   Roland 2026-10-29: one typeface and at most three text sizes on a product
   page. The scope maps all fifteen MD3 type roles onto three sizes, so every
   component keeps its role and nothing is restyled by hand:
     large  2rem / 2.5rem   display, headline
     medium 1rem / 1.5rem   title, body large and medium, label large
     small  .75rem / 1rem   body small, label medium and small
   Weights stay as MD3 sets them. Put the class on the page content. */
.pr-type-3 {
    --md-sys-typescale-display-large-size: 2rem; --md-sys-typescale-display-large-line-height: 2.5rem;
    --md-sys-typescale-display-medium-size: 2rem; --md-sys-typescale-display-medium-line-height: 2.5rem;
    --md-sys-typescale-display-small-size: 2rem; --md-sys-typescale-display-small-line-height: 2.5rem;
    --md-sys-typescale-headline-large-size: 2rem; --md-sys-typescale-headline-large-line-height: 2.5rem;
    --md-sys-typescale-headline-medium-size: 2rem; --md-sys-typescale-headline-medium-line-height: 2.5rem;
    --md-sys-typescale-headline-small-size: 2rem; --md-sys-typescale-headline-small-line-height: 2.5rem;
    --md-sys-typescale-title-large-size: 1rem; --md-sys-typescale-title-large-line-height: 1.5rem;
    --md-sys-typescale-title-medium-size: 1rem; --md-sys-typescale-title-medium-line-height: 1.5rem;
    --md-sys-typescale-title-small-size: 1rem; --md-sys-typescale-title-small-line-height: 1.5rem;
    --md-sys-typescale-body-large-size: 1rem; --md-sys-typescale-body-large-line-height: 1.5rem;
    --md-sys-typescale-body-medium-size: 1rem; --md-sys-typescale-body-medium-line-height: 1.5rem;
    --md-sys-typescale-label-large-size: 1rem; --md-sys-typescale-label-large-line-height: 1.5rem;
    --md-sys-typescale-body-small-size: 0.75rem; --md-sys-typescale-body-small-line-height: 1rem;
    --md-sys-typescale-label-medium-size: 0.75rem; --md-sys-typescale-label-medium-line-height: 1rem;
    --md-sys-typescale-label-small-size: 0.75rem; --md-sys-typescale-label-small-line-height: 1rem;
}

/* ===== Icon ================================================================ */
.md-icon {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    direction: ltr;
    -webkit-font-smoothing: antialiased;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    user-select: none;
    flex-shrink: 0;
}
.md-icon--filled { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }

/* ===== Type scale utilities ================================================ */
.md-type-display-large   { font: var(--md-sys-typescale-display-large-weight) var(--md-sys-typescale-display-large-size)/var(--md-sys-typescale-display-large-line-height) var(--md-ref-typeface-brand); letter-spacing: var(--md-sys-typescale-display-large-tracking); }
.md-type-display-medium  { font: var(--md-sys-typescale-display-medium-weight) var(--md-sys-typescale-display-medium-size)/var(--md-sys-typescale-display-medium-line-height) var(--md-ref-typeface-brand); }
.md-type-display-small   { font: var(--md-sys-typescale-display-small-weight) var(--md-sys-typescale-display-small-size)/var(--md-sys-typescale-display-small-line-height) var(--md-ref-typeface-brand); }
.md-type-headline-large  { font: var(--md-sys-typescale-headline-large-weight) var(--md-sys-typescale-headline-large-size)/var(--md-sys-typescale-headline-large-line-height) var(--md-ref-typeface-brand); }
.md-type-headline-medium { font: var(--md-sys-typescale-headline-medium-weight) var(--md-sys-typescale-headline-medium-size)/var(--md-sys-typescale-headline-medium-line-height) var(--md-ref-typeface-brand); }
.md-type-headline-small  { font: var(--md-sys-typescale-headline-small-weight) var(--md-sys-typescale-headline-small-size)/var(--md-sys-typescale-headline-small-line-height) var(--md-ref-typeface-brand); }
.md-type-title-large     { font: var(--md-sys-typescale-title-large-weight) var(--md-sys-typescale-title-large-size)/var(--md-sys-typescale-title-large-line-height) var(--md-ref-typeface-brand); }
.md-type-title-medium    { font: var(--md-sys-typescale-title-medium-weight) var(--md-sys-typescale-title-medium-size)/var(--md-sys-typescale-title-medium-line-height) var(--md-ref-typeface-plain); letter-spacing: var(--md-sys-typescale-title-medium-tracking); }
.md-type-title-small     { font: var(--md-sys-typescale-title-small-weight) var(--md-sys-typescale-title-small-size)/var(--md-sys-typescale-title-small-line-height) var(--md-ref-typeface-plain); letter-spacing: var(--md-sys-typescale-title-small-tracking); }
.md-type-body-large      { font: var(--md-sys-typescale-body-large-weight) var(--md-sys-typescale-body-large-size)/var(--md-sys-typescale-body-large-line-height) var(--md-ref-typeface-plain); letter-spacing: var(--md-sys-typescale-body-large-tracking); }
.md-type-body-medium     { font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size)/var(--md-sys-typescale-body-medium-line-height) var(--md-ref-typeface-plain); letter-spacing: var(--md-sys-typescale-body-medium-tracking); }
.md-type-body-small      { font: var(--md-sys-typescale-body-small-weight) var(--md-sys-typescale-body-small-size)/var(--md-sys-typescale-body-small-line-height) var(--md-ref-typeface-plain); letter-spacing: var(--md-sys-typescale-body-small-tracking); }
.md-type-label-large     { font: var(--md-sys-typescale-label-large-weight) var(--md-sys-typescale-label-large-size)/var(--md-sys-typescale-label-large-line-height) var(--md-ref-typeface-plain); letter-spacing: var(--md-sys-typescale-label-large-tracking); }
.md-type-label-medium    { font: var(--md-sys-typescale-label-medium-weight) var(--md-sys-typescale-label-medium-size)/var(--md-sys-typescale-label-medium-line-height) var(--md-ref-typeface-plain); letter-spacing: var(--md-sys-typescale-label-medium-tracking); }
.md-type-label-small     { font: var(--md-sys-typescale-label-small-weight) var(--md-sys-typescale-label-small-size)/var(--md-sys-typescale-label-small-line-height) var(--md-ref-typeface-plain); letter-spacing: var(--md-sys-typescale-label-small-tracking); }

/* ===== State layer (shared by every interactive component) ==================
   The layer is the element's ::before, tinted with the content colour, so
   each component only sets its colours. */
.md-button, .md-icon-button, .md-fab, .md-segmented-button__segment, .md-chip,
.md-list-item--interactive, .md-menu__item, .md-nav-drawer__item, .md-nav-rail__item-icon {
    position: relative;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}
.md-button::before, .md-icon-button::before, .md-fab::before, .md-segmented-button__segment::before,
.md-chip::before, .md-list-item--interactive::before, .md-menu__item::before,
.md-nav-drawer__item::before, .md-nav-rail__item-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: currentColor;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    transition: opacity var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}
.md-button:hover::before, .md-icon-button:hover::before, .md-fab:hover::before,
.md-segmented-button__segment:hover::before, .md-chip:hover::before,
.md-list-item--interactive:hover::before, .md-menu__item:hover::before,
.md-nav-drawer__item:hover::before, .md-nav-rail__item:hover .md-nav-rail__item-icon::before {
    opacity: var(--md-sys-state-hover-state-layer-opacity);
}
.md-button:focus-visible::before, .md-icon-button:focus-visible::before, .md-fab:focus-visible::before,
.md-segmented-button__segment:focus-visible::before, .md-chip:focus-visible::before,
.md-list-item--interactive:focus-visible::before, .md-menu__item:focus-visible::before,
.md-nav-drawer__item:focus-visible::before, .md-nav-rail__item:focus-visible .md-nav-rail__item-icon::before {
    opacity: var(--md-sys-state-focus-state-layer-opacity);
}
.md-button:active::before, .md-icon-button:active::before, .md-fab:active::before,
.md-segmented-button__segment:active::before, .md-chip:active::before,
.md-list-item--interactive:active::before, .md-menu__item:active::before,
.md-nav-drawer__item:active::before, .md-nav-rail__item:active .md-nav-rail__item-icon::before {
    opacity: var(--md-sys-state-pressed-state-layer-opacity);
}

/* One focus ring for everything (MD3 focus indicator). */
:where(.md-button, .md-icon-button, .md-fab, .md-segmented-button__segment, .md-chip,
       .md-list-item--interactive, .md-menu__item, .md-nav-drawer__item, .md-nav-rail__item,
       .md-switch, .md-slider, .md-text-field__input):focus-visible {
    outline: 3px solid var(--md-sys-color-secondary);
    outline-offset: 2px;
}

/* ===== Common button ======================================================= */
.md-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    min-width: 48px;
    padding: 0 24px;
    border: none;
    border-radius: var(--md-sys-shape-corner-full);
    font: var(--md-sys-typescale-label-large-weight) var(--md-sys-typescale-label-large-size)/var(--md-sys-typescale-label-large-line-height) var(--md-ref-typeface-plain);
    letter-spacing: var(--md-sys-typescale-label-large-tracking);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    background: transparent;
    transition: box-shadow var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}
.md-button .md-icon { font-size: 18px; margin-left: -8px; }
/* Touch target 48px without making the button look bigger. */
.md-button::after, .md-icon-button::after, .md-chip::after, .md-segmented-button__segment::after {
    content: '';
    position: absolute;
    left: 0; right: 0;
    top: 50%;
    min-height: 48px;
    transform: translateY(-50%);
}
.md-button--filled   { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.md-button--filled:hover { box-shadow: var(--md-sys-elevation-level1); }
.md-button--tonal    { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.md-button--tonal:hover { box-shadow: var(--md-sys-elevation-level1); }
.md-button--elevated { background: var(--md-sys-color-surface-container-low); color: var(--md-sys-color-primary); box-shadow: var(--md-sys-elevation-level1); }
.md-button--elevated:hover { box-shadow: var(--md-sys-elevation-level2); }
.md-button--outlined { color: var(--md-sys-color-primary); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline); }
.md-button--text     { color: var(--md-sys-color-primary); padding: 0 12px; }
.md-button--text .md-icon { margin-left: -4px; }
/* a button that switches a mode on (aria-pressed) */
.md-button--tonal[aria-pressed="true"] { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.md-button:disabled, .md-button[aria-disabled="true"] {
    cursor: default;
    pointer-events: none;
    color: color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent);
    background: transparent;
    box-shadow: none;
}
.md-button--filled:disabled, .md-button--tonal:disabled, .md-button--elevated:disabled,
.md-button--filled[aria-disabled="true"], .md-button--tonal[aria-disabled="true"] {
    background: color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent);
}
.md-button--outlined:disabled { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent); }

/* ===== Icon button ========================================================= */
.md-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: var(--md-sys-shape-corner-full);
    background: transparent;
    color: var(--md-sys-color-on-surface-variant);
    cursor: pointer;
    text-decoration: none;
}
.md-icon-button::after { left: 50%; width: 48px; transform: translate(-50%, -50%); }
.md-icon-button--filled   { background: var(--md-sys-color-primary); color: var(--md-sys-color-on-primary); }
.md-icon-button--tonal    { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.md-icon-button--outlined { box-shadow: inset 0 0 0 1px var(--md-sys-color-outline); }
.md-icon-button[aria-pressed="true"] { color: var(--md-sys-color-primary); }
.md-icon-button[aria-pressed="true"] .md-icon { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.md-icon-button:disabled { color: color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent); background: transparent; box-shadow: none; pointer-events: none; }

/* ===== FAB ================================================================= */
.md-fab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 56px;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: var(--md-sys-shape-corner-large);
    background: var(--md-sys-color-primary-container);
    color: var(--md-sys-color-on-primary-container);
    box-shadow: var(--md-sys-elevation-level3);
    cursor: pointer;
    font: var(--md-sys-typescale-label-large-weight) var(--md-sys-typescale-label-large-size)/var(--md-sys-typescale-label-large-line-height) var(--md-ref-typeface-plain);
    letter-spacing: var(--md-sys-typescale-label-large-tracking);
}
.md-fab:hover { box-shadow: var(--md-sys-elevation-level4); }
.md-fab--extended { width: auto; min-width: 80px; padding: 0 20px 0 16px; }
.md-fab--large { width: 96px; height: 96px; border-radius: var(--md-sys-shape-corner-extra-large); }
.md-fab--large .md-icon { font-size: 36px; }

/* ===== Segmented button ==================================================== */
.md-segmented-button {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    border-radius: var(--md-sys-shape-corner-full);
    box-shadow: inset 0 0 0 1px var(--md-sys-color-outline);
}
.md-segmented-button__segment {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    min-width: 48px;
    padding: 0 12px;
    border: none;
    background: transparent;
    color: var(--md-sys-color-on-surface);
    font: var(--md-sys-typescale-label-large-weight) var(--md-sys-typescale-label-large-size)/var(--md-sys-typescale-label-large-line-height) var(--md-ref-typeface-plain);
    letter-spacing: var(--md-sys-typescale-label-large-tracking);
    cursor: pointer;
    flex: 1 1 0;
    white-space: nowrap;
}
.md-segmented-button__segment + .md-segmented-button__segment { box-shadow: inset 1px 0 0 0 var(--md-sys-color-outline); }
.md-segmented-button__segment:first-child { border-radius: var(--md-sys-shape-corner-full) 0 0 var(--md-sys-shape-corner-full); }
.md-segmented-button__segment:last-child  { border-radius: 0 var(--md-sys-shape-corner-full) var(--md-sys-shape-corner-full) 0; }
.md-segmented-button__segment[aria-pressed="true"] {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}
.md-segmented-button__check { display: none; font-size: 18px; }
.md-segmented-button__segment[aria-pressed="true"] .md-segmented-button__check { display: inline-block; }
.md-segmented-button__segment:disabled { color: color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent); pointer-events: none; }

/* ===== Chips =============================================================== */
.md-chip-set { display: flex; flex-wrap: wrap; gap: 8px; }
.md-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 32px;
    padding: 0 16px;
    border: none;
    border-radius: var(--md-sys-shape-corner-small);
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--md-sys-color-outline);
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-label-large-weight) var(--md-sys-typescale-label-large-size)/var(--md-sys-typescale-label-large-line-height) var(--md-ref-typeface-plain);
    letter-spacing: var(--md-sys-typescale-label-large-tracking);
    cursor: pointer;
}
.md-chip .md-icon { font-size: 18px; }
.md-chip--filter[aria-pressed="true"] {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    box-shadow: none;
    padding-left: 8px;
}
.md-chip--filter .md-chip__check { display: none; }
.md-chip--filter[aria-pressed="true"] .md-chip__check { display: inline-block; }
.md-chip--input { padding: 0 8px 0 12px; cursor: default; }
.md-chip__remove {
    display: inline-flex;
    border: none;
    padding: 0;
    background: none;
    color: inherit;
    cursor: pointer;
    border-radius: var(--md-sys-shape-corner-full);
}
.md-chip:disabled { color: color-mix(in srgb, var(--md-sys-color-on-surface) 38%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--md-sys-color-on-surface) 12%, transparent); pointer-events: none; }

/* ===== Switch (input type=checkbox role=switch) ============================ */
.md-switch {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    width: 52px;
    height: 32px;
    margin: 8px 0;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-surface-container-highest);
    box-shadow: inset 0 0 0 2px var(--md-sys-color-outline);
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}
.md-switch::before {           /* handle */
    content: '';
    position: absolute;
    top: 50%;
    left: 16px;
    width: 16px;
    height: 16px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-outline);
    transform: translate(-50%, -50%);
    transition: left var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
                width var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
                height var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
    box-shadow: 0 0 0 0 transparent;
}
.md-switch:hover::before { box-shadow: 0 0 0 12px color-mix(in srgb, var(--md-sys-color-on-surface) 8%, transparent); }
.md-switch:active::before { width: 28px; height: 28px; }
.md-switch:checked { background: var(--md-sys-color-primary); box-shadow: none; }
.md-switch:checked::before { left: 36px; width: 24px; height: 24px; background: var(--md-sys-color-on-primary); }
.md-switch:checked:hover::before { box-shadow: 0 0 0 8px color-mix(in srgb, var(--md-sys-color-primary) 8%, transparent); }
.md-switch:checked:active::before { width: 28px; height: 28px; }
.md-switch:disabled { opacity: 0.38; pointer-events: none; }

/* ===== Slider (input type=range) =========================================== */
.md-slider {
    --value: 50%;                       /* set by md3.js from value/min/max */
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 44px;
    margin: 0;
    background: transparent;
    cursor: pointer;
}
.md-slider::-webkit-slider-runnable-track {
    height: 16px;
    border-radius: var(--md-sys-shape-corner-full);
    background: linear-gradient(to right,
        var(--md-sys-color-primary) 0 var(--value),
        var(--md-sys-color-secondary-container) var(--value) 100%);
}
.md-slider::-moz-range-track {
    height: 16px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-secondary-container);
}
.md-slider::-moz-range-progress {
    height: 16px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-primary);
}
.md-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 4px;
    height: 44px;
    margin-top: -14px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-primary);
    box-shadow: 0 0 0 6px var(--md-sys-color-surface);
}
.md-slider::-moz-range-thumb {
    width: 4px;
    height: 44px;
    border: none;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-primary);
    box-shadow: 0 0 0 6px var(--md-sys-color-surface);
}
.md-slider:active::-webkit-slider-thumb { width: 2px; }
.md-slider:disabled { opacity: 0.38; pointer-events: none; }

/* ===== Outlined text field ================================================= */
.md-text-field {
    position: relative;
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
    width: 100%;
}
.md-text-field__input {
    width: 100%;
    height: 56px;
    padding: 0 16px;
    border: none;
    border-radius: var(--md-sys-shape-corner-extra-small);
    background: transparent;
    box-shadow: inset 0 0 0 1px var(--md-sys-color-outline);
    color: var(--md-sys-color-on-surface);
    font: var(--md-sys-typescale-body-large-weight) var(--md-sys-typescale-body-large-size)/var(--md-sys-typescale-body-large-line-height) var(--md-ref-typeface-plain);
    letter-spacing: var(--md-sys-typescale-body-large-tracking);
    caret-color: var(--md-sys-color-primary);
}
.md-text-field__input:hover { box-shadow: inset 0 0 0 1px var(--md-sys-color-on-surface); }
.md-text-field__input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.md-text-field__input:focus-visible { outline: none; }
.md-text-field__label {
    position: absolute;
    left: 12px;
    top: 28px;
    padding: 0 4px;
    transform: translateY(-50%);
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-body-large-weight) var(--md-sys-typescale-body-large-size)/1 var(--md-ref-typeface-plain);
    pointer-events: none;
    transition: top var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard),
                font-size var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}
/* The label floats onto the outline; it needs the background of the surface
   the field sits on, which the page sets with --md-text-field-container. */
.md-text-field__input:focus + .md-text-field__label,
.md-text-field__input:not(:placeholder-shown) + .md-text-field__label {
    top: 0;
    font-size: var(--md-sys-typescale-body-small-size);
    background: var(--md-text-field-container, var(--md-sys-color-surface));
}
.md-text-field__input:focus + .md-text-field__label { color: var(--md-sys-color-primary); }
.md-text-field__supporting {
    padding: 4px 16px 0;
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-body-small-weight) var(--md-sys-typescale-body-small-size)/var(--md-sys-typescale-body-small-line-height) var(--md-ref-typeface-plain);
}
.md-text-field--error .md-text-field__input { box-shadow: inset 0 0 0 2px var(--md-sys-color-error); }
.md-text-field--error .md-text-field__label,
.md-text-field--error .md-text-field__supporting { color: var(--md-sys-color-error); }
.md-text-field__input:disabled { opacity: 0.38; pointer-events: none; }

/* ===== Menu ================================================================ */
.md-menu-anchor { position: relative; display: inline-block; }
.md-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    min-width: 112px;
    max-width: 280px;
    padding: 8px 0;
    margin: 0;
    list-style: none;
    border-radius: var(--md-sys-shape-corner-extra-small);
    background: var(--md-sys-color-surface-container);
    box-shadow: var(--md-sys-elevation-level2);
}
.md-menu[hidden] { display: none; }
.md-menu--end { left: auto; right: 0; }
.md-menu__item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
    border: none;
    background: none;
    color: var(--md-sys-color-on-surface);
    text-align: left;
    text-decoration: none;
    font: var(--md-sys-typescale-label-large-weight) var(--md-sys-typescale-label-large-size)/var(--md-sys-typescale-label-large-line-height) var(--md-ref-typeface-plain);
    cursor: pointer;
}
.md-menu__item .md-icon { color: var(--md-sys-color-on-surface-variant); }
.md-menu__item[aria-checked="true"] { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.md-menu__item[hidden] { display: none; }
.md-menu__divider { height: 1px; margin: 8px 0; background: var(--md-sys-color-outline-variant); }
/* MD3 / Fynnwork UI-22: a control that opens a menu shows the trailing arrow. */
.md-menu-trigger__arrow { font-size: 18px; margin-right: -8px; }

/* ===== Dialog (native <dialog>) ============================================ */
.md-dialog {
    width: min(560px, calc(100vw - 48px));
    min-width: 280px;
    padding: 24px;
    border: none;
    border-radius: var(--md-sys-shape-corner-extra-large);
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
    box-shadow: var(--md-sys-elevation-level3);
}
/* a dialog with a keyboard: near the top, so the keyboard does not cover its buttons */
dialog.md-dialog--top { margin-top: 16px; margin-bottom: auto; }
.md-dialog::backdrop { background: color-mix(in srgb, var(--md-sys-color-scrim) 32%, transparent); }
.md-dialog__icon { display: block; margin: 0 auto 16px; color: var(--md-sys-color-secondary); }
.md-dialog__headline {
    margin: 0 0 16px;
    color: var(--md-sys-color-on-surface);
    text-align: left;
    cursor: pointer;
    font: var(--md-sys-typescale-headline-small-weight) var(--md-sys-typescale-headline-small-size)/var(--md-sys-typescale-headline-small-line-height) var(--md-ref-typeface-brand);
}
.md-dialog__icon + .md-dialog__headline { text-align: center; }
.md-dialog__content {
    font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size)/var(--md-sys-typescale-body-medium-line-height) var(--md-ref-typeface-plain);
    letter-spacing: var(--md-sys-typescale-body-medium-tracking);
}
.md-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 24px; }
/* --split: the first action (e.g. Delete) stands apart on the left */
.md-dialog__actions--split > :first-child { margin-right: auto; }

/* ===== Bottom sheet (modal, native <dialog>) ===============================
   On a phone it sits at the bottom; from 600px on it is a centred sheet with
   the same content, which is how MD3 adapts it to large screens. */
.md-bottom-sheet {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    margin: 0 auto;
    padding: 0 16px 24px;
    border: none;
    border-radius: var(--md-sys-shape-corner-extra-large) var(--md-sys-shape-corner-extra-large) 0 0;
    background: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface);
    box-shadow: var(--md-sys-elevation-level1);
    overflow: auto;
}
/* floating labels of text fields take the sheet's colour */
.md-bottom-sheet { --md-text-field-container: var(--md-sys-color-surface-container-low); }
.md-bottom-sheet .md-dialog__actions { flex-wrap: wrap; }
.md-bottom-sheet::backdrop { background: color-mix(in srgb, var(--md-sys-color-scrim) 32%, transparent); }
.md-bottom-sheet__handle {
    display: block;
    width: 32px;
    height: 4px;
    margin: 22px auto;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-on-surface-variant);
    opacity: 0.4;
}
.md-bottom-sheet[open] { animation: md-sheet-in var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized-decelerate); }
@keyframes md-sheet-in { from { transform: translateY(100%); } to { transform: none; } }

/* ===== Snackbar ============================================================ */
.md-snackbar {
    position: fixed;
    z-index: 60;
    left: 50%;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    width: max-content;
    max-width: min(560px, calc(100vw - 32px));
    padding: 0 8px 0 16px;
    border-radius: var(--md-sys-shape-corner-extra-small);
    background: var(--md-sys-color-inverse-surface);
    color: var(--md-sys-color-inverse-on-surface);
    box-shadow: var(--md-sys-elevation-level3);
    font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size)/var(--md-sys-typescale-body-medium-line-height) var(--md-ref-typeface-plain);
    transform: translate(-50%, calc(100% + 32px));
    transition: transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized-decelerate);
}
.md-snackbar.is-open { transform: translate(-50%, 0); }
.md-snackbar__text { flex: 1 1 auto; padding: 14px 0; }
.md-snackbar .md-button--text { color: var(--md-sys-color-inverse-primary); }

/* ===== Cards =============================================================== */
.md-card {
    display: block;
    padding: 16px;
    border-radius: var(--md-sys-shape-corner-medium);
    color: var(--md-sys-color-on-surface);
}
.md-card--filled   { background: var(--md-sys-color-surface-container-highest); }
.md-card--elevated { background: var(--md-sys-color-surface-container-low); box-shadow: var(--md-sys-elevation-level1); }
.md-card--outlined { background: var(--md-sys-color-surface); box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant); --md-text-field-container: var(--md-sys-color-surface); }
.md-card__title {
    margin: 0 0 4px;
    font: var(--md-sys-typescale-title-large-weight) var(--md-sys-typescale-title-large-size)/var(--md-sys-typescale-title-large-line-height) var(--md-ref-typeface-brand);
}
.md-card__subtitle {
    margin: 0;
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size)/var(--md-sys-typescale-body-medium-line-height) var(--md-ref-typeface-plain);
}
.md-card__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* ===== List ================================================================ */
.md-list { margin: 0; padding: 8px 0; list-style: none; }
.md-list-item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 56px;
    padding: 8px 24px 8px 16px;
    color: var(--md-sys-color-on-surface);
    text-decoration: none;
}
.md-list-item--interactive { cursor: pointer; width: 100%; border: none; background: none; text-align: left; }
.md-list-item__leading { color: var(--md-sys-color-on-surface-variant); }
.md-list-item__text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.md-list-item__headline {
    font: var(--md-sys-typescale-body-large-weight) var(--md-sys-typescale-body-large-size)/var(--md-sys-typescale-body-large-line-height) var(--md-ref-typeface-plain);
    letter-spacing: var(--md-sys-typescale-body-large-tracking);
}
.md-list-item__supporting {
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size)/var(--md-sys-typescale-body-medium-line-height) var(--md-ref-typeface-plain);
    letter-spacing: var(--md-sys-typescale-body-medium-tracking);
}
.md-list-item__trailing {
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-label-small-weight) var(--md-sys-typescale-label-small-size)/var(--md-sys-typescale-label-small-line-height) var(--md-ref-typeface-plain);
}

/* ===== Divider ============================================================= */
.md-divider { height: 1px; margin: 0; border: none; background: var(--md-sys-color-outline-variant); }
.md-divider--inset { margin-left: 16px; }

/* ===== Badge =============================================================== */
.md-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-error);
    color: var(--md-sys-color-on-error);
    font: var(--md-sys-typescale-label-small-weight) var(--md-sys-typescale-label-small-size)/1 var(--md-ref-typeface-plain);
}
.md-badge--small { min-width: 6px; width: 6px; height: 6px; padding: 0; }

/* ===== Linear progress indicator (native <progress>) ======================= */
.md-linear-progress {
    appearance: none;
    -webkit-appearance: none;
    display: block;
    width: 100%;
    height: 4px;
    border: none;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-primary);
    overflow: hidden;
}
.md-linear-progress::-webkit-progress-bar   { background: var(--md-sys-color-secondary-container); }
.md-linear-progress::-webkit-progress-value { background: var(--md-sys-color-primary); border-radius: var(--md-sys-shape-corner-full); }
.md-linear-progress::-moz-progress-bar      { background: var(--md-sys-color-primary); border-radius: var(--md-sys-shape-corner-full); }

/* ===== Top app bar (small) ================================================= */
.md-top-app-bar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 4px;
    height: 64px;
    padding: 0 4px;
    background: var(--md-top-app-bar-container-color, var(--md-sys-color-surface));
    color: var(--md-sys-color-on-surface);
    transition: background var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}
.md-top-app-bar.is-scrolled { background: var(--md-top-app-bar-on-scroll-container-color, var(--md-sys-color-surface-container)); }
.md-top-app-bar__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0 0 0 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font: var(--md-sys-typescale-title-large-weight) var(--md-sys-typescale-title-large-size)/var(--md-sys-typescale-title-large-line-height) var(--md-ref-typeface-brand);
}
.md-top-app-bar__actions { display: flex; align-items: center; gap: 0; }

/* ===== Navigation drawer (modal) =========================================== */
.md-nav-drawer {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    width: min(360px, calc(100vw - 56px));
    padding: 12px;
    overflow-y: auto;
    border-radius: 0 var(--md-sys-shape-corner-large) var(--md-sys-shape-corner-large) 0;
    background: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface-variant);
    box-shadow: var(--md-sys-elevation-level1);
    transform: translateX(-100%);
    visibility: hidden;
    transition: transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized-accelerate),
                visibility 0s linear var(--md-sys-motion-duration-medium);
}
.md-nav-drawer.is-open {
    transform: none;
    visibility: visible;
    transition: transform var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized-decelerate),
                visibility 0s;
}
.md-nav-drawer__scrim {
    position: fixed;
    z-index: 49;
    inset: 0;
    background: var(--md-sys-color-scrim);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-standard);
}
.md-nav-drawer.is-open + .md-nav-drawer__scrim { opacity: 0.32; pointer-events: auto; }
.md-nav-drawer__header { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 16px; }
.md-nav-drawer__headline {
    padding: 18px 16px;
    margin: 0;
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-title-small-weight) var(--md-sys-typescale-title-small-size)/var(--md-sys-typescale-title-small-line-height) var(--md-ref-typeface-plain);
}
.md-nav-drawer__item {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 56px;
    padding: 0 24px 0 16px;
    border-radius: var(--md-sys-shape-corner-full);
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    font: var(--md-sys-typescale-label-large-weight) var(--md-sys-typescale-label-large-size)/var(--md-sys-typescale-label-large-line-height) var(--md-ref-typeface-plain);
    letter-spacing: var(--md-sys-typescale-label-large-tracking);
}
.md-nav-drawer__item[aria-current="page"] {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}
.md-nav-drawer__item[aria-current="page"] .md-icon { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.md-nav-drawer__item-badge { margin-left: auto; }
.md-nav-drawer .md-divider { margin: 8px 16px; }

/* ===== Navigation rail ===================================================== */
.md-nav-rail {
    position: fixed;
    z-index: 30;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 80px;
    padding: 12px 0;
    background: var(--md-nav-rail-container-color, var(--md-sys-color-surface));
    color: var(--md-sys-color-on-surface-variant);
}
.md-nav-rail__header { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-bottom: 28px; }
.md-nav-rail__items { display: flex; flex-direction: column; gap: 12px; }
.md-nav-rail__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 80px;
    color: var(--md-sys-color-on-surface-variant);
    text-decoration: none;
    font: var(--md-sys-typescale-label-medium-weight) var(--md-sys-typescale-label-medium-size)/var(--md-sys-typescale-label-medium-line-height) var(--md-ref-typeface-plain);
    letter-spacing: var(--md-sys-typescale-label-medium-tracking);
    -webkit-tap-highlight-color: transparent;
}
.md-nav-rail__item-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 32px;
    border-radius: var(--md-sys-shape-corner-full);
}
.md-nav-rail__item[aria-current="page"] { color: var(--md-sys-color-on-surface); font-weight: 700; }
.md-nav-rail__item[aria-current="page"] .md-nav-rail__item-icon {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}
.md-nav-rail__item[aria-current="page"] .md-icon { font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24; }
.md-nav-rail__footer { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 4px; }

/* ===== App shell: drawer on a phone, rail from 600px (MD3 window classes) ===
   compact  < 600px   top app bar + modal drawer
   medium   600-839   rail
   expanded 840px+    rail (a standard drawer only if Roland chooses it) */
body:has(> .pr-shell) { margin: 0; }
/* Component tokens a site may set (MD3 component-token pattern):
     --pr-shell-container-color, --md-nav-rail-container-color,
     --md-top-app-bar-container-color, --md-top-app-bar-on-scroll-container-color */
.pr-shell { min-height: 100vh; background: var(--pr-shell-container-color, var(--md-sys-color-surface)); color: var(--md-sys-color-on-surface); }
.pr-shell__body { min-width: 0; }
.pr-shell .md-nav-rail { display: none; }
.pr-shell__content { padding: 0 16px 96px; max-width: 1040px; margin: 0 auto; }
@media (min-width: 600px) {
    .pr-shell .md-nav-rail { display: flex; }
    .pr-shell__body { margin-left: 80px; }
    .pr-shell__menu-button { display: none; }
    /* The rail carries the logo mark from 600px on; the top app bar keeps only
       the wordmark, so the crow is not shown twice. */
    .pr-shell .md-top-app-bar .pr-brand .pr-brand-mark { display: none; }
    .pr-shell__content { padding: 0 24px 96px; }
}
@media (min-width: 840px) {
    .pr-shell__content { padding: 0 24px 96px; }
}
.pr-brand-mark { display: block; width: 40px; height: 40px; }
.pr-brand-mark--light { display: none; }
body[data-theme="light"] .pr-brand-mark--dark { display: none; }
body[data-theme="light"] .pr-brand-mark--light { display: block; }

/* ===== Brand (composition: logo mark + wordmark + tagline) ================= */
.pr-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    color: inherit;
    text-decoration: none;
    border-radius: var(--md-sys-shape-corner-small);
}
a.pr-brand:hover { opacity: 0.8; }
.pr-brand[aria-current="page"] { cursor: default; }
.pr-brand[aria-current="page"]:hover { opacity: 1; }
.pr-brand__text { display: flex; flex-direction: column; min-width: 0; }
.pr-brand__name {
    color: var(--md-sys-color-on-surface);
    font: 700 var(--md-sys-typescale-title-large-size)/var(--md-sys-typescale-title-medium-line-height) var(--md-ref-typeface-brand);
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.pr-brand__tagline {
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-body-small-weight) var(--md-sys-typescale-body-small-size)/var(--md-sys-typescale-body-small-line-height) var(--md-ref-typeface-plain);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 599px) {
    /* compact width: name and mark step down so menu, brand and actions fit */
    .pr-brand { gap: 8px; }
    .pr-brand .pr-brand-mark { width: 32px; height: 32px; }
    .pr-brand__name { font-size: var(--md-sys-typescale-title-medium-size); }
}
@media (max-width: 420px) { .pr-brand__tagline { display: none; } }

/* ===== Layout helpers (8px grid) =========================================== */
.pr-row   { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.pr-stack { display: flex; flex-direction: column; gap: 16px; }
.pr-stack--tight { gap: 8px; }
.pr-field-narrow { flex: 0 0 8rem; width: 8rem; }   /* a short number field */
.pr-row__grow { flex: 1 1 16rem; min-width: 0; }   /* the item of a row that takes the free space */
.pr-section { margin: 32px 0; }
.pr-section__title {
    margin: 0 0 16px;
    color: var(--md-sys-color-on-surface);
    font: var(--md-sys-typescale-headline-small-weight) var(--md-sys-typescale-headline-small-size)/var(--md-sys-typescale-headline-small-line-height) var(--md-ref-typeface-brand);
}
.pr-section__note {
    margin: 8px 0 16px;
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size)/var(--md-sys-typescale-body-medium-line-height) var(--md-ref-typeface-plain);
}
/* a note right under a section title sits close to it */
.pr-section__title + .pr-section__note { margin-top: -8px; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }

/* ===== Tempo map (pr-tempo-map, drawn by tempo-map/map.js) ==================
   A timeline: time left to right, tempo curve above, bars below. Scrolls
   sideways when the music is longer than the screen. Colours by role only. */
.pr-tempo-map {
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: var(--md-sys-shape-corner-medium);
    background: var(--md-sys-color-surface-container-low);
    box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.pr-tempo-map__svg { display: block; font-family: var(--md-ref-typeface-plain); }
/* the numbers on the axes and the bars are for looking at: nothing in the map is selectable as text */
.pr-tempo-map, .pr-tempo-map * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
/* a finger moves the map sideways; a point or a line that is held is not scrolled (map.js holds the touch back) */
.pr-tempo-map { touch-action: none; }   /* map.js pans the map and the page with one finger on empty places */
.pr-tempo-map__band { fill: var(--md-sys-color-surface-container); }
.pr-tempo-map__band--alt { fill: var(--md-sys-color-surface-container-high); }
.pr-tempo-map__band--count-in { fill: var(--md-sys-color-surface-container-lowest); }
.pr-tempo-map__band--rest { fill: var(--md-sys-color-surface-container-lowest); }
.pr-tempo-map__outside { fill: var(--md-sys-color-scrim); opacity: 0.35; pointer-events: none; }
.pr-tempo-map__tick--poly { fill: var(--md-sys-color-tertiary); }
.pr-tempo-map__band-label {
    fill: var(--md-sys-color-on-surface-variant);
    font-size: var(--md-sys-typescale-label-medium-size);
    font-weight: var(--md-sys-typescale-label-medium-weight);
}
.pr-tempo-map__grid { stroke: var(--md-sys-color-outline-variant); stroke-width: 1; stroke-dasharray: 2 4; }
.pr-tempo-map__axis { stroke: var(--md-sys-color-outline); stroke-width: 1; }
.pr-tempo-map__axis-label { fill: var(--md-sys-color-on-surface-variant); font-size: var(--md-sys-typescale-label-small-size); font-variant-numeric: tabular-nums; }
.pr-tempo-map__axis-title { fill: var(--md-sys-color-on-surface-variant); font-size: var(--md-sys-typescale-label-small-size); font-weight: 700; }
/* drag handles: MD3 slider-like thumbs on the curve */
.pr-tempo-map__handle {
    fill: var(--md-sys-color-primary);
    stroke: var(--md-sys-color-surface);
    stroke-width: 3;
    cursor: ns-resize;
    outline: none;
    touch-action: none;
}
.pr-tempo-map__handle:hover, .pr-tempo-map__handle:focus-visible {
    stroke: var(--md-sys-color-primary-container);
    stroke-width: 8;
}
.pr-tempo-map.is-dragging { cursor: ns-resize; user-select: none; }
.pr-tempo-map.is-adding { cursor: crosshair; }
.pr-tempo-map__handle.is-selected { stroke: var(--md-sys-color-primary-container); stroke-width: 6; }
.pr-tempo-map__dot-label {
    fill: var(--md-sys-color-on-surface);
    font-size: var(--md-sys-typescale-label-medium-size);
    font-weight: 700;
    paint-order: stroke;
    stroke: var(--md-sys-color-surface-container-low);
    stroke-width: 3px;
    pointer-events: none;
    font-variant-numeric: tabular-nums;
}
.pr-tempo-map__yaxis-bg { fill: var(--md-sys-color-surface-container-low); }
.pr-tempo-map__handle--free { cursor: move; }
.pr-tempo-map.is-removing .pr-tempo-map__handle:focus, .pr-tempo-map.is-removing { cursor: no-drop; }
.pr-tempo-map.is-removing .pr-tempo-map__curve { stroke: var(--md-sys-color-error); }
.pr-tempo-map.is-dragging .pr-tempo-map__curve { stroke-width: 4; }
.pr-tempo-map__curve { fill: none; stroke: var(--md-sys-color-primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.pr-tempo-map__fermata { fill: var(--md-sys-color-tertiary); font-size: var(--md-sys-typescale-headline-small-size); }
.pr-tempo-map__bar { cursor: pointer; outline: none; }
.pr-tempo-map__bar--count-in { cursor: default; opacity: 0.55; }
.pr-tempo-map__bar-box {
    fill: var(--md-sys-color-surface-container-highest);
    stroke: var(--md-sys-color-outline-variant);
    stroke-width: 1;
    transition: fill var(--md-sys-motion-duration-short) var(--md-sys-motion-easing-standard);
}
.pr-tempo-map__bar:hover .pr-tempo-map__bar-box { fill: var(--md-sys-color-secondary-container); }
.pr-tempo-map__bar:focus-visible .pr-tempo-map__bar-box { stroke: var(--md-sys-color-secondary); stroke-width: 3; }
.pr-tempo-map__bar.is-selected .pr-tempo-map__bar-box { fill: var(--md-sys-color-secondary-container); stroke: var(--md-sys-color-primary); }
.pr-tempo-map__tick { stroke: var(--md-sys-color-on-surface-variant); stroke-width: 1.5; stroke-linecap: round; }
.pr-tempo-map__tick--a2 { stroke: var(--md-sys-color-primary); stroke-width: 2.5; }
.pr-tempo-map__tick--a1 { stroke: var(--md-sys-color-on-surface); stroke-width: 2; }
.pr-tempo-map__bar-number {
    fill: var(--md-sys-color-on-surface);
    font-size: var(--md-sys-typescale-label-medium-size);
    font-weight: 600;
}
.pr-tempo-map__meter { fill: var(--md-sys-color-on-surface-variant); font-size: var(--md-sys-typescale-label-medium-size); font-weight: 700; }
/* a steady line is grabbed by the line itself: a wide invisible grip */
.pr-tempo-map__grip { fill: none; stroke: transparent; stroke-width: 48; stroke-linecap: butt; cursor: ns-resize; touch-action: none; pointer-events: stroke; }
.pr-tempo-map__grip:hover, .pr-tempo-map__grip.is-selected { stroke: color-mix(in srgb, var(--md-sys-color-primary) 14%, transparent); }
.pr-tempo-map__marking {
    fill: var(--md-sys-color-on-surface-variant);
    opacity: 0.75;
    font-size: var(--md-sys-typescale-label-small-size);
    font-style: italic;
    pointer-events: none;
}
.pr-tempo-map__marking-tick { stroke: var(--md-sys-color-outline-variant); stroke-width: 1; }
.pr-tempo-map__playhead { stroke: var(--md-sys-color-error); stroke-width: 2; }

/* Play display (composition): bar, beat and tempo in large type, readable from a music stand. */
.pr-beat-display { display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.pr-beat-display__item { display: flex; flex-direction: column; gap: 4px; min-width: 64px; }
.pr-beat-display__value {
    color: var(--md-sys-color-on-surface);
    font: var(--md-sys-typescale-display-medium-weight) var(--md-sys-typescale-display-medium-size)/var(--md-sys-typescale-display-medium-line-height) var(--md-ref-typeface-brand);
    font-variant-numeric: tabular-nums;
}
.pr-beat-display__label {
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-label-large-weight) var(--md-sys-typescale-label-large-size)/var(--md-sys-typescale-label-large-line-height) var(--md-ref-typeface-plain);
}
.pr-beat-dots { display: flex; gap: 8px; flex-wrap: wrap; }
.pr-beat-dots__dot {
    width: 14px; height: 14px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-surface-container-highest);
    box-shadow: inset 0 0 0 1px var(--md-sys-color-outline-variant);
}
.pr-beat-dots__dot--group { width: 18px; height: 18px; }
.pr-beat-dots__dot.is-now { background: var(--md-sys-color-primary); box-shadow: none; }

/* ===== Sheet (adaptive: bottom sheet on a phone, side sheet from 600px) ======
   One <dialog class="md-sheet"> for both. Below 600px it opens modal from the
   bottom; from 600px md3.js opens it non-modal at the right, next to the
   content, and the shell makes room for it (pr-shell--side-open), so what the
   sheet changes stays visible. Opened with data-md-sheet-open="<id>" or the
   event 'md-sheet' ({ detail: { id } }); closed with data-md-dialog-close or Esc. */
.md-sheet {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-width: 640px;
    max-height: 88vh;
    margin: 0 auto;
    padding: 0 0 24px;
    border: none;
    border-radius: var(--md-sys-shape-corner-extra-large) var(--md-sys-shape-corner-extra-large) 0 0;
    background: var(--md-sys-color-surface-container-low);
    color: var(--md-sys-color-on-surface);
    box-shadow: var(--md-sys-elevation-level1);
    overflow: auto;
    --md-text-field-container: var(--md-sys-color-surface-container-low);
    --md-sheet-header-height: 68px;
    z-index: 40;
}
.md-sheet::backdrop { background: color-mix(in srgb, var(--md-sys-color-scrim) 32%, transparent); }
.md-sheet[open] { animation: md-sheet-in var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized-decelerate); }
.md-sheet__header {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 8px 8px 24px;
    background: inherit;
}
.md-sheet__title {
    flex: 1 1 auto;
    margin: 0;
    font: var(--md-sys-typescale-title-large-weight) var(--md-sys-typescale-title-large-size)/var(--md-sys-typescale-title-large-line-height) var(--md-ref-typeface-brand);
}
.md-sheet__content { padding: 0 24px; display: flex; flex-direction: column; gap: 16px; }
/* the top of a long sheet that stays in place while the rest scrolls (search and main actions of a list) */
.md-splitter { display: none; }
.pr-row--nowrap { flex-wrap: nowrap; }
.md-sheet__sticky { position: sticky; top: var(--md-sheet-header-height); z-index: 1; padding: 4px 0 8px; background: var(--md-sys-color-surface-container-low); }
.md-sheet__group-title {
    margin: 8px 0 0;
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-title-small-weight) var(--md-sys-typescale-title-small-size)/var(--md-sys-typescale-title-small-line-height) var(--md-ref-typeface-plain);
}
@media (min-width: 600px) {
    .md-sheet {
        inset: 0 0 0 auto;
        width: var(--md-sheet-width, 360px);
        max-width: var(--md-sheet-width, 360px);
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: var(--md-sys-shape-corner-large) 0 0 var(--md-sys-shape-corner-large);
        box-shadow: var(--md-sys-elevation-level1);
    }
    .md-sheet[open] { animation: md-side-sheet-in var(--md-sys-motion-duration-medium) var(--md-sys-motion-easing-emphasized-decelerate); }
    .pr-shell--side-open .pr-shell__body { margin-right: var(--md-sheet-width, 360px); }
    /* the splitter between the content and the side sheet: drag it to change the width of the sheet */
    .pr-shell--side-open .md-splitter {
        display: block;
        position: fixed;
        top: 0;
        bottom: 0;
        right: calc(var(--md-sheet-width, 360px) - 4px);
        width: 8px;
        z-index: 41;
        cursor: col-resize;
        touch-action: none;
        outline: none;
    }
    .md-splitter::after { content: ''; position: absolute; top: 0; bottom: 0; left: 3px; width: 2px; background: var(--md-sys-color-outline-variant); }
    .md-splitter:hover::after, .md-splitter:focus-visible::after, .md-splitter.is-dragging::after { background: var(--md-sys-color-primary); width: 4px; left: 2px; }
}
@keyframes md-side-sheet-in { from { transform: translateX(100%); } to { transform: none; } }

/* ===== Selection bar (MD3 contextual action bar) ==============================
   Shown while content is selected (Practice Room rule 8: select first, then act):
   what is selected, the actions for it, and X to clear. */
.md-selection-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 8px;
    min-height: 56px;
    padding: 4px 8px;
    border-radius: var(--md-sys-shape-corner-medium);
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
}
.md-selection-bar[hidden] { display: none; }
.md-selection-bar__label {
    flex: 1 1 auto;
    min-width: 6rem;
    font: var(--md-sys-typescale-title-medium-weight) var(--md-sys-typescale-title-medium-size)/var(--md-sys-typescale-title-medium-line-height) var(--md-ref-typeface-plain);
}
.md-selection-bar .md-icon-button, .md-selection-bar .md-button--text { color: var(--md-sys-color-on-secondary-container); }
.md-selection-bar__actions { display: flex; flex-wrap: wrap; gap: 4px; }

/* ===== Search field ========================================================== */
.md-search {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 48px;
    padding: 0 16px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-surface-container-high);
    color: var(--md-sys-color-on-surface-variant);
}
.md-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--md-sys-color-on-surface);
    font: var(--md-sys-typescale-body-large-weight) var(--md-sys-typescale-body-large-size)/var(--md-sys-typescale-body-large-line-height) var(--md-ref-typeface-plain);
}
.md-search:focus-within { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }

/* ===== Selected list entry ==================================================== */
/* The details of a selected list entry, directly under it, in line with its text */
.pr-entry-details { display: flex; flex-direction: column; gap: 8px; padding: 0 16px 12px 56px; }
.pr-entry-details__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.md-list-item.is-selected, .md-list-item--interactive.is-selected {
    background: var(--md-sys-color-secondary-container);
    color: var(--md-sys-color-on-secondary-container);
    border-radius: var(--md-sys-shape-corner-medium);
}

/* ===== App slot in the top app bar (company brand, then the app) ============= */
.md-top-app-bar--with-app .pr-brand { flex: 0 0 auto; }
.pr-app-name {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 4px;
}
.pr-app-name__name {
    color: var(--md-sys-color-on-surface);
    font: 700 var(--md-sys-typescale-title-medium-size)/var(--md-sys-typescale-title-medium-line-height) var(--md-ref-typeface-brand);
    white-space: nowrap;
}
.pr-app-name__descriptor {
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-body-small-weight) var(--md-sys-typescale-body-small-size)/var(--md-sys-typescale-body-small-line-height) var(--md-ref-typeface-plain);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* the crow and the app name: the company wordmark is not shown next to an app */
.md-top-app-bar--with-app .pr-brand__text { display: none; }
@media (max-width: 420px) { .pr-app-name__descriptor { display: none; } }

/* A page without navigation (rail and drawer): the body uses the full width. */
.pr-shell--no-nav .md-nav-rail, .pr-shell--no-nav .md-nav-drawer, .pr-shell--no-nav .md-nav-drawer__scrim,
.pr-shell--no-nav .pr-shell__menu-button { display: none; }
@media (min-width: 600px) {
    .pr-shell--no-nav .pr-shell__body { margin-left: 0; }
    /* without the rail the top app bar carries the crow again */
    .pr-shell--no-nav .md-top-app-bar .pr-brand .pr-brand-mark--dark { display: block; }
    body[data-theme="light"] .pr-shell--no-nav .md-top-app-bar .pr-brand .pr-brand-mark--dark { display: none; }
    body[data-theme="light"] .pr-shell--no-nav .md-top-app-bar .pr-brand .pr-brand-mark--light { display: block; }
}

/* ===== Title bar and subtitle (the first bars of a work space) =============== */
.pr-titlebar { display: flex; align-items: center; gap: 4px; min-height: 48px; }
.pr-titlebar__title {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--md-sys-color-on-surface);
    font: var(--md-sys-typescale-headline-small-weight) var(--md-sys-typescale-headline-small-size)/var(--md-sys-typescale-headline-small-line-height) var(--md-ref-typeface-brand);
}
/* The part of the title bar that tapping the title shows: description, then the rename button, left-aligned and close together */
.pr-titlebar__detail { display: flex; flex-direction: column; align-items: flex-start; gap: 0; margin-top: -4px; }
.pr-titlebar__detail[hidden] { display: none; }
.pr-titlebar__rename { margin-left: -12px; }   /* the icon, not its touch area, lines up with the text */
.pr-subtitle {
    margin: 0;
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size)/var(--md-sys-typescale-body-medium-line-height) var(--md-ref-typeface-plain);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    cursor: pointer;
}
.pr-subtitle.is-expanded { white-space: normal; }
.pr-subtitle:empty { display: none; }

/* ===== Transport bar (composition: play, display, segment, loop, speed, sheets) */
.pr-transport { display: flex; flex-direction: column; gap: 8px; }
.pr-transport__main { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pr-transport__segment { flex: 1 1 100%; justify-content: center; }
.pr-transport__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* ===== Tempo bar (composition: what is selected, its tempo, Add point) ====== */
.pr-tempobar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Handles and delete stay together, whatever wraps */
.pr-tempobar__handles { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.pr-tempobar__label { min-width: 0; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===== Value at the end of a line (inside the tempo map wrapper) ============== */
.pr-tempo-map-wrap { position: relative; }
/* Map tools: a row under the map, never on top of it. On the left what belongs to the map's axes
   (tempo axis, taller map), on the right the view (fullscreen, zoom out, zoom in). */
.pr-tempo-map-tools { display: flex; justify-content: space-between; gap: 0; }
.pr-tempo-map-tools__group { display: flex; }
/* the page places it with --pr-line-x and --pr-line-y (px inside the wrapper) */
.pr-line-value {
    position: absolute;
    left: var(--pr-line-x, 0);
    top: var(--pr-line-y, 0);
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 2px;
    border-radius: var(--md-sys-shape-corner-full);
    background: var(--md-sys-color-surface-container-highest);
    box-shadow: var(--md-sys-elevation-level2);
    transform: translateY(calc(-100% - 14px));   /* above the line, never on it */
}
.pr-line-value[hidden] { display: none; }
/* a finger drags the line itself and has the tempo bar for typing: nothing sits over the map */
@media (pointer: coarse) { .pr-line-value { display: none; } }
.pr-line-value input {
    width: 3.5rem;
    border: none;
    outline: none;
    background: transparent;
    text-align: center;
    color: var(--md-sys-color-on-surface);
    font: 700 var(--md-sys-typescale-title-medium-size)/1 var(--md-ref-typeface-plain);
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}
.pr-line-value input::-webkit-outer-spin-button, .pr-line-value input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pr-line-value .md-icon-button { width: 32px; height: 32px; }

/* ===== Pricing card (composition: outlined card + list + filled button) ====
   Defined once for every product page and later the shop. */
.pr-pricing-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .pr-pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pr-pricing-card { display: flex; flex-direction: column; gap: 16px; padding: 24px; }
.pr-pricing-card--featured { box-shadow: inset 0 0 0 2px var(--md-sys-color-primary); }
.pr-pricing-card__price {
    margin: 0;
    color: var(--md-sys-color-on-surface);
    font: var(--md-sys-typescale-display-small-weight) var(--md-sys-typescale-display-small-size)/var(--md-sys-typescale-display-small-line-height) var(--md-ref-typeface-brand);
}
.pr-pricing-card__period {
    color: var(--md-sys-color-on-surface-variant);
    font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size)/var(--md-sys-typescale-body-medium-line-height) var(--md-ref-typeface-plain);
}
.pr-pricing-card .md-list { padding: 0; }
.pr-pricing-card .md-list-item { min-height: 40px; padding: 4px 0; }
.pr-pricing-card .md-list-item__leading { color: var(--md-sys-color-primary); }
.pr-pricing-card .md-button { align-self: stretch; margin-top: auto; }

@media (prefers-reduced-motion: reduce) {
    .md-nav-drawer, .md-nav-drawer__scrim, .md-snackbar, .md-switch, .md-switch::before { transition: none; }
    .md-bottom-sheet[open] { animation: none; }
}

/*MANUAL-BEGIN*/
/* ===== Manual (composition, BRIEF-023): contents drawer, the drawn screen, the explanations ============ */
/* Window classes: below 600px top bar + modal drawer + bottom bar; 600-1199px rail + modal drawer, the explanations below the screen;
   1200px and wider: a standard (permanent) drawer, the screen in the middle, the explanations at the right (a chevron hides them). */
.pr-manual-root { display: contents; }
.pr-manual { display: grid; grid-template-columns: minmax(0, 1fr); padding: 0 0 72px; }
.pr-manual__stagecol { min-width: 0; padding: 0 0 8px; }
.pr-manual__zoomwrap { display: flex; justify-content: center; align-items: flex-start; overflow: visible; }
.pr-manual__pager { display: none; }
.pr-manual__panel { min-width: 0; padding: 8px 16px 24px; }
.pr-manual__crumb { margin: 8px 0 4px; color: var(--md-sys-color-primary); }
.pr-manual__title { margin: 0 0 8px; color: var(--md-sys-color-on-surface); }
.pr-manual__intro { margin: 0 0 16px; color: var(--md-sys-color-on-surface); }
.pr-manual__notes { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pr-manual__note { display: flex; gap: 12px; align-items: flex-start; padding: 8px 8px 8px 4px; border-radius: var(--md-sys-shape-corner-medium); cursor: pointer; color: var(--md-sys-color-on-surface-variant); font: var(--md-sys-typescale-body-medium-weight) var(--md-sys-typescale-body-medium-size)/var(--md-sys-typescale-body-medium-line-height) var(--md-ref-typeface-plain); }
.pr-manual__note strong { color: var(--md-sys-color-on-surface); }
.pr-manual__note.is-on { background: var(--md-sys-color-secondary-container); color: var(--md-sys-color-on-secondary-container); }
.pr-manual__badge { flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--md-sys-color-tertiary); color: var(--md-sys-color-on-tertiary); font: 600 12px/24px var(--md-ref-typeface-plain); text-align: center; }
.pr-manual__marker { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--md-sys-color-tertiary); color: var(--md-sys-color-on-tertiary); font: 600 11px/20px var(--md-ref-typeface-plain); text-align: center; }
.pr-manual__marker { position: absolute; z-index: 40; border: 0; padding: 0; cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.pr-manual__marker.is-on { outline: 3px solid var(--md-sys-color-primary); outline-offset: 1px; }
.pr-manual--nonums .pr-manual__marker { display: none; }
.pr-manual__wrong { margin: 0; }
.pr-manual__noscript { padding: 16px; }
.pr-manual--start .pr-manual__stagecol, .pr-manual--start .pr-manual__pager { display: none; }
.pr-manual--start .pr-manual__panel { max-width: 760px; margin: 0 auto; border: 0; position: static; max-height: none; padding-top: 16px; }
.pr-manual__places { list-style: none; margin: 8px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pr-manual__places li { display: flex; gap: 12px; align-items: flex-start; }
.pr-manual__places .md-icon { color: var(--md-sys-color-primary); }
.pr-manual__ver { color: var(--md-sys-color-on-surface-variant); }
.pr-manual__chapters { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 16px; }
.pr-manual__chapter { display: flex; flex-direction: column; gap: 6px; padding: 16px; text-decoration: none; color: var(--md-sys-color-on-surface); }
.pr-manual__chapter .md-icon { color: var(--md-sys-color-primary); }
.pr-manual__chapter .md-type-body-medium { color: var(--md-sys-color-on-surface-variant); }
.pr-manual__navnum { min-width: 32px; color: var(--md-sys-color-outline); font: var(--md-sys-typescale-label-medium-weight) var(--md-sys-typescale-label-medium-size)/1 var(--md-ref-typeface-plain); font-variant-numeric: tabular-nums; }
.pr-manual__navitem { height: 44px; padding-left: 20px; }
.md-nav-rail__items { overflow-y: auto; }
/* the top app bar */
.pr-manual__bartitle { font-size: 1rem; }
.pr-manual__zoomlabel { min-width: 56px; }
.pr-manual__from600, .pr-manual__from1200, .pr-manual__menu-wide { display: none; }
.pr-manual__phone { display: block; }
.pr-manual__brand { display: none; }
.pr-manual__appname { display: none; }
.pr-manual__bottombar { position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 8px; background: var(--md-sys-color-surface-container); border-top: 1px solid var(--md-sys-color-outline-variant); }
.pr-manual__bottombar .md-button { flex: 1; }
@media (min-width: 600px) {
    .pr-manual { padding-bottom: 24px; }
    .pr-manual__stagecol { padding: 16px 24px 8px; }
    .pr-manual__pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 16px; }
    .pr-manual__panel { padding: 8px 24px 24px; max-width: 720px; margin: 0 auto; width: 100%; }
    .pr-manual__from600 { display: inline-flex; }
    .pr-manual__phone, .pr-manual__bottombar, .pr-manual__bartitle { display: none; }
    .pr-manual__brand { display: flex; }
    .pr-manual__appname { display: flex; }
    .pr-shell .md-top-app-bar .pr-manual__brand .pr-brand-mark { display: none; }
}
@media (min-width: 1200px) {
    .pr-manual { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
    .pr-manual__panel { position: sticky; top: 64px; max-height: calc(100vh - 64px); overflow-y: auto; max-width: none; margin: 0; border-left: 1px solid var(--md-sys-color-outline-variant); }
    .pr-manual__from1200 { display: inline-flex; }
    .pr-manual--nopanel .pr-manual { grid-template-columns: minmax(0, 1fr); }
    .pr-manual--nopanel .pr-manual__panel { display: none; }
    .pr-manual--start .pr-manual { grid-template-columns: minmax(0, 1fr); }
    /* standard drawer: permanent, the rail steps aside; the menu button collapses it back to the rail */
    .pr-shell:not(.pr-manual--collapsed) .md-nav-drawer--standard { transform: none; visibility: visible; width: 320px; border-radius: 0; box-shadow: none; z-index: 25; padding: 8px 12px 24px; border-right: 1px solid var(--md-sys-color-outline-variant); }
    .pr-shell:not(.pr-manual--collapsed) .md-nav-drawer__scrim { display: none; }
    .pr-shell:not(.pr-manual--collapsed) .md-nav-rail { display: none; }
    .pr-shell:not(.pr-manual--collapsed) .pr-shell__body { margin-left: 320px; }
    .pr-manual__menu-wide { display: inline-flex; }
    .pr-manual__menu-phone { display: none; }
}
@media (min-width: 600px) and (max-width: 1199px) { .pr-manual__menu-phone { display: none; } .pr-manual__menu-wide { display: none; } }
/*MANUAL-END*/
