/* Fondamento, a chancery italic by Astigmatic (SIL Open Font License 1.1) */
@font-face { font-family: "Fondamento"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/fondamento-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Fondamento"; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/fondamento-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Light: white page, tulip-red staves. Dark: black page, brighter red staves, white notes. */
:root {
  --fg: var(--ink); --muted: var(--soft); --card: var(--surface); --accent-ink: #fff;
  --bg: #c2a07a; --surface: #f1e6d1; --raised: #e9dcc4; --line: #a88760; --ink: #1f170f; --soft: #4a3a28;
  --accent: #ff5160; --accent-ink: #ffffff; --note: #1a120b; --staff: #ef4b59; --hl: #e08a00; --sel: #1a6be0; --shadow: 0 6px 24px rgba(20, 10, 10, .10);
  --serif: "Fondamento", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #000000; --raised: #0b0b0c; --line: #262224; --ink: #f4efef; --soft: #a49a9d;
  --accent: #ff5160; --accent-ink: #12090a; --note: #ffffff; --staff: #ef4b59; --hl: #ffc83d; --sel: #5db4ff; --shadow: none;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
/* The app fills the window; the page footer (feedback, coffee, credits) lies below the dock and is reached by scrolling the page. */
.app { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.pagefoot { padding: .4rem 16px max(1rem, env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
.pagefoot .stagefoot { margin: 1.4rem 0 1rem; }
html.focus .pagefoot { display: none; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); overflow-x: hidden; overflow-y: auto; -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; }

/* top bar */
.bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--surface); z-index: 5; }
.brand { min-width: 0; margin-right: 10px; }
.brand h1 { margin: 0; font: 400 32px/1.1 var(--serif); letter-spacing: .01em; white-space: nowrap; }
.brand h1 em { font-style: normal; color: var(--accent); }
.brand p { margin: 2px 0 0; font-size: 12px; color: var(--soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.back { display: none; font-size: 12px; color: var(--soft); text-decoration: none; margin-right: 6px; }
.grow { flex: 1; }
.ib { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; }
.ib:hover { background: var(--raised); border-color: var(--line); }
.ib svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ib span { font-size: 13px; }

/* shell */
.shell { flex: 1; min-height: 0; display: flex; position: relative; }
.drawer { width: 300px; background: var(--surface); border: 0 solid var(--line); display: flex; flex-direction: column; min-height: 0; transition: transform .22s ease; z-index: 4; }
.drawer.left { border-right-width: 1px; }
.drawer.right { border-left-width: 1px; width: 320px; }
.drawer-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.drawer-head input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--raised); }
.x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--soft); display: none; }
.stage { flex: 1; min-width: 0; overflow: auto; padding: 18px clamp(12px, 3vw, 40px) 28px; position: relative; scroll-behavior: smooth; }

/* library */
.tree { overflow: auto; padding: 6px 0 24px; flex: 1; }
.tree details { margin: 0; }
.tree summary { list-style: none; padding: 9px 14px; font: 400 16px var(--serif); cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary::before { content: "\25B8"; color: var(--soft); margin-right: 8px; transition: transform .15s; display: inline-block; }
.tree details[open] > summary::before { transform: rotate(90deg); }
.tree summary small { color: var(--soft); font: 12px var(--sans); margin-left: auto; }
.tree .sub { margin-left: 12px; border-left: 1px solid var(--line); }
.tree .gnote { margin: 0 14px 6px 30px; font-size: 12px; color: var(--soft); }
.tree button.item { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 14px 7px 30px; border-radius: 0; }
.tree button.item:hover { background: var(--raised); }
.tree button.item[aria-current="true"] { background: var(--raised); box-shadow: inset 3px 0 var(--accent); }
.tree button.item b { display: block; font-weight: 500; font-size: 14px; }
.tree button.item i { font-style: normal; font-size: 12px; color: var(--soft); }
.tree .more { margin: 8px 14px; font-size: 12px; color: var(--soft); }

/* piece */
.piece-head { max-width: 62rem; margin: 0 auto 10px; }
.trail { margin: 0; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
.piece-head h2 { margin: 2px 0 4px; font: 400 clamp(22px, 3vw, 32px)/1.2 var(--serif); }
.titlerow { display: flex; align-items: center; gap: 6px; }
.hacek { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--soft); cursor: pointer; }
.hacek:hover { color: var(--accent); background: var(--raised); }
.hacek svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
.hacek[aria-expanded="true"] svg { transform: rotate(180deg); }
.piece-head .note[hidden] { display: none; }
.piece-head .note { margin: 0; color: var(--soft); font: 15px/1.5 var(--serif); max-width: 46rem; }
.paper { max-width: 62rem; margin: 0 auto; padding: 8px clamp(4px, 1vw, 12px) 22px; color: var(--note); }
.sys { margin: 0 0 14px; }
.system { max-width: none; overflow: visible; }
.system .staffline { stroke: var(--staff); stroke-width: .085; fill: none; }
.system .staffline.dim { opacity: .35; }
.system .fill { fill: currentColor; }
.system .hollow { fill: none; stroke: currentColor; stroke-width: .17; stroke-linejoin: miter; }
.system .stroke { fill: none; stroke: currentColor; stroke-width: .14; stroke-linecap: butt; }
.system .stroke.thick { stroke-width: .28; }
.system .lyric { font: 1.12px var(--serif); fill: currentColor; }
.system .lyric-line { stroke: currentColor; stroke-width: .075; fill: none; }
.system .vname { font: italic 1.1px var(--serif); fill: var(--soft); }
.system .vinit { font: 4.2px var(--serif); fill: var(--accent); }
.system .clefnum { font: .9px var(--serif); fill: currentColor; }
.system .brevenum { font: italic 1.05px var(--serif); fill: currentColor; opacity: .7; }
.system .msign-num { font-family: var(--serif); font-weight: 600; }
.system .hidden-note { font: italic 1.2px var(--serif); fill: var(--soft); }
.system .hit { fill: transparent; stroke: none; cursor: pointer; }
.system .muted { opacity: .45; }
.system .note { transition: color .05s; }
body:not(.nohl) .system .note.on { color: var(--hl); }
.system .note.sel { color: var(--sel); }
body:not(.nohl) .system .note.on .hollow { stroke-width: .24; }

/* choir book */
.book { border-color: var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 0; max-width: 78rem; margin: 0 auto; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--raised); box-shadow: var(--shadow); color: var(--note); }
.book .pane { padding: 14px 16px 10px; min-height: 140px; position: relative; }
.book .pane:nth-child(1), .book .pane:nth-child(3) { border-right: 1px solid var(--line); }
.book .pane:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.book .tag { position: absolute; top: 4px; left: 8px; font: italic 11px var(--serif); color: var(--soft); }
.pager[hidden] { display: none; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 14px 0 0; color: var(--soft); }
.pager button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); font-size: 22px; line-height: 1; }

/* studio */
.cards { overflow: auto; padding: 10px 12px 28px; display: grid; gap: 10px; align-content: start; flex: 1; }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; }
.card h3 { margin: 0 0 8px; font: 600 12px var(--sans); letter-spacing: .09em; text-transform: uppercase; color: var(--soft); }
.row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0; }
.row label { font-size: 13px; color: var(--soft); min-width: 5.5rem; }
.chip { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 13px; }
.chip:hover { border-color: var(--soft); }
.chip[aria-pressed="true"], .chip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.chip:disabled { opacity: .4; cursor: default; }
.card input[type="range"] { flex: 1; accent-color: var(--accent); min-width: 6rem; }
.card select { padding: 5px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.hint { font-size: 12px; color: var(--soft); margin: 4px 0 0; }
.val { font-variant-numeric: tabular-nums; min-width: 2.5rem; text-align: right; font-size: 13px; }

/* dock */
.dock { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 8px 14px; padding-bottom: max(8px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); z-index: 5; }
.play { width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; flex: none; box-shadow: 0 3px 12px rgba(0, 0, 0, .25); }
.rewind { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--raised); color: var(--ink); display: grid; place-items: center; flex: none; cursor: pointer; margin-right: -6px; }
.rewind:hover { border-color: var(--accent); color: var(--accent); }
.rewind svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.play svg { width: 24px; height: 24px; fill: currentColor; stroke: currentColor; stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.tempo { display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--soft); flex: none; }
.tempo input { width: 4.6rem; padding: 5px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--ink); font: 600 17px var(--sans); text-align: center; -moz-appearance: textfield; }
.tempo input::-webkit-inner-spin-button, .tempo input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.tempo input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.dock #tap { align-self: flex-end; margin-bottom: 3px; }
.tempo.pitch { margin-left: 6px; }
.tempo .pitchrow { display: flex; align-items: center; gap: 5px; color: var(--ink); font: 15px var(--serif); }
.tempo .pitchrow input { width: 4.4rem; }
.voices { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; justify-content: flex-end; }
.vc { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--raised); }
.vc > span { padding: 5px 9px; font-size: 12px; color: var(--soft); border-right: 1px solid var(--line); max-width: 8.5rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vc button { border: 0; background: none; padding: 5px 9px; font-size: 12px; color: var(--soft); }
.vc button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: .25s; z-index: 20; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* wide screens: drawers sit beside the stage */
@media (min-width: 1100px) {
  .back { display: inline; }
  .drawer.left[data-open="false"] { margin-left: -300px; }
  .drawer.right[data-open="false"] { margin-right: -320px; }
  .drawer { transition: margin .22s ease; }
}
/* narrow screens: drawers float over the stage */
@media (max-width: 1099px) {
  .drawer { position: absolute; top: 0; bottom: 0; box-shadow: var(--shadow); }
  .drawer.left { left: 0; transform: translateX(-102%); }
  .drawer.right { right: 0; transform: translateX(102%); }
  .drawer[data-open="true"] { transform: none; }
  .x { display: block; }
}
@media (max-width: 640px) {
  .ib span { display: none; }
  .brand p { display: none; }
  .brand h1 { font-size: 20px; }
  .drawer, .drawer.right { width: min(92vw, 360px); }
  .dock { gap: 8px; flex-wrap: wrap; }
  .voices { margin-left: 0; width: 100%; justify-content: flex-start; }
  .book { grid-template-columns: 1fr 1fr; }
}
#printSheet { display: none; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html.printing body { display: block !important; overflow: visible !important; background: #fff !important; height: auto !important; }
  html.printing body > *:not(#printSheet) { display: none !important; }
  html.printing #printSheet { display: block; color: #111; }
  #printSheet .ps-trail { margin: 0 0 2px; font: 10px/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #666; }
  #printSheet h1 { margin: 0 0 4px; font: 400 26px/1.15 var(--serif); }
  #printSheet .ps-note { margin: 0 0 14px; font: 12px/1.4 var(--serif); color: #444; }
  #printSheet .ps-sys { margin: 0 0 10px; break-inside: avoid; }
  #printSheet .ps-sys svg { max-width: 100%; height: auto; }
  #printSheet .ps-credit { margin-top: 14px; font: 10px/1.4 var(--serif); color: #555; }
  #printSheet .ps-foot { margin-top: 18px; font: 9px var(--sans); color: #888; text-align: center; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .bar, .dock, .drawer, .pager { display: none !important; }
  body { overflow: visible; display: block; }
  .stage { overflow: visible; }
  .paper, .book { box-shadow: none; }
}

/* toolbar under the header */
.toolbar { display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-bottom: 1px solid var(--line); background: var(--surface); overflow-x: auto; scrollbar-width: none; position: relative; z-index: 6; }
.toolbar::-webkit-scrollbar { display: none; }
.tb-group { display: flex; align-items: center; gap: 2px; padding: 0 6px; border-left: 1px solid var(--line); flex: none; }
.tb-group:first-child { border-left: 0; padding-left: 0; }
.tbtn { display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--ink); gap: 6px; grid-auto-flow: column; font-size: 14px; }
.tbtn:hover { background: var(--raised); border-color: var(--line); }
.tbtn[aria-pressed="true"], .tbtn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tbtn:disabled { opacity: .35; cursor: default; background: transparent; border-color: transparent; }
.tbtn svg { width: 22px; height: 22px; }
.tbtn svg.glyph { width: 22px; height: 36px; }
svg.glyph .fill { fill: currentColor; } svg.glyph .hollow { fill: none; stroke: currentColor; stroke-width: .17; } svg.glyph .stroke { fill: none; stroke: currentColor; stroke-width: .14; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.sp { flex: 1; }
.edit-tools[hidden] { display: none; }
.edit-tools { display: contents; }
.edit-hint { font-size: 12px; color: var(--soft); white-space: nowrap; padding: 0 8px; }
.pop { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(380px, calc(100vw - 24px)); max-height: min(80vh, 640px); overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .28); padding: 10px; display: grid; gap: 10px; z-index: 50; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.pop[hidden] { display: none; }
.pop .card { background: var(--raised); }

/* language picker */
.ib.lang { position: relative; padding: 0 .35rem; }
.ib.lang select { appearance: none; -webkit-appearance: none; background: transparent; border: 0; color: inherit; font: inherit; font-size: .8rem; letter-spacing: .04em; padding: .5rem .2rem; cursor: pointer; }
.ib.lang select option { color: #222; }

/* closing row under the music */
.credit { margin: 1.6rem auto 0; max-width: 46rem; text-align: center; font: .8rem/1.5 var(--serif); color: var(--soft); }
.credit a { color: inherit; }
.stagefoot { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; justify-content: center; margin: 2.5rem 0 1rem; font-size: .82rem; color: var(--soft); }
.stagefoot button, .stagefoot a { display: inline-flex; gap: .4rem; align-items: center; background: none; border: 0; padding: .3rem .2rem; font: inherit; color: inherit; cursor: pointer; text-decoration: none; }
.stagefoot button:hover, .stagefoot a:hover { color: var(--accent); }
.stagefoot .fb-open { all: unset; display: inline-flex; align-items: center; padding: .3rem .2rem; cursor: pointer; color: inherit; font: inherit; }
.stagefoot .fb-open:hover { color: var(--accent); }
.stagefoot svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* microphone */
a.chip { text-decoration: none; color: inherit; display: inline-flex; align-items: center; }
.tuner { display: grid; grid-template-columns: auto auto 1fr; gap: 4px 12px; align-items: center; padding: 6px 2px; }
.tuner b { font: 600 28px/1 var(--serif); min-width: 3.4ch; }
.tuner span { color: var(--soft); font-size: 13px; min-width: 5ch; }
.meter { position: relative; height: 6px; background: var(--line); border-radius: 3px; }
.meter .mid { position: absolute; left: 50%; top: -3px; width: 2px; height: 12px; background: var(--soft); opacity: .6; }
.meter #micNeedle { position: absolute; top: -4px; left: 50%; width: 4px; height: 14px; margin-left: -2px; background: var(--accent); border-radius: 2px; opacity: .2; transition: left .08s linear; }
.take { display: grid; gap: 8px; }
.take label { color: var(--soft); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }

/* the Guidonian hand over the page */
.overlay { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; }
.overlay[hidden] { display: none; }
.ov-head { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.ov-head .grow { flex: 1; }
.ov-head a { color: var(--soft); font-size: 13px; }
.overlay iframe { flex: 1; width: 100%; border: 0; background: var(--bg); }

/* singing: the dot on the staff and the written-out take, in red */
.micdot .micball { fill: #e0322b; opacity: .72; }
.micdot .micacc { fill: #e0322b; opacity: .8; font: 1.3px/1 serif; }
.micdot .staffline { stroke: #e0322b; opacity: .6; }
g.sung .fill { fill: #e0322b; }
g.sung .hollow { stroke: #e0322b; }
g.sung .stroke { stroke: #e0322b; }
g.sung .staffline { stroke: #e0322b; opacity: .55; }
g.sung .vname { fill: #e0322b; }
body:not(.nohl) g.sung .note.on .fill { fill: var(--accent); }
.row.wrap { flex-wrap: wrap; }
.latrow input { width: 5.2em; height: 30px; padding: 0 6px; text-align: center; background: transparent; color: inherit; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.paper.singing .sys { margin-bottom: 34px; }

/* the beat controls in the dock, the sliders in the Studio */
.beatctl { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.beatctl select { background: var(--surface); color: inherit; border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; font: inherit; font-size: 13px; }
.beatctl #heart { display: inline-grid; place-items: center; padding: 5px 8px; color: #e0322b; }
.beatctl #heart svg { width: 15px; height: 15px; fill: currentColor; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row.slider { display: grid; grid-template-columns: 7.5em 1fr 3.6em; gap: 8px; }
.row.slider input { accent-color: var(--accent); width: 100%; }
.row.slider output { font-size: 12px; color: var(--soft); text-align: right; font-variant-numeric: tabular-nums; }
.card h4 { margin: 10px 0 2px; font-size: 12px; font-weight: 600; color: var(--soft); text-transform: uppercase; letter-spacing: .06em; }
.hzin { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; }
.hzin input { width: 4.6em; padding: 3px 6px; background: transparent; color: inherit; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
#transformPop, #micPop { max-height: calc(100vh - 170px); overflow: auto; overscroll-behavior: contain; }
#title.editable { outline: 1px dashed var(--line); outline-offset: 4px; border-radius: 4px; cursor: text; }
#title.editable:focus { outline-color: var(--accent); }
/* while editing, the buttons on the right keep only their icons, so everything fits */
.toolbar.editing #openLib span, .toolbar.editing #clearBtn span, .toolbar.editing #handBtn span, .toolbar.editing #micBtn span, .toolbar.editing #transformBtn span { display: none; }

/* Vellum: the music on an old page, brown ink and a red rastrum */
:root[data-theme="vellum"] {
  --bg: #e6d7b3; --surface: #efe4c8; --raised: #f5ecd6; --line: #d3c29a; --ink: #2a2218; --soft: #76664a;
  --accent: #8e2a1e; --accent-ink: #fbf4e8; --note: #2a2218; --staff: #b9392a; --hl: #b8620e; --sel: #1f5aa8; --shadow: 0 6px 24px rgba(60, 40, 10, .16);
  color-scheme: light;
}
:root[data-theme="vellum"] .shell { background: radial-gradient(120% 90% at 50% 40%, #efe2c2 0%, #e6d5ad 60%, #d9c597 100%); }
:root[data-theme="vellum"] .paper { background: radial-gradient(140% 100% at 40% 30%, rgba(255, 250, 235, .5), rgba(150, 108, 40, .08)); border-radius: 3px; box-shadow: inset 0 0 70px rgba(150, 108, 40, .16), 0 1px 1px rgba(60, 40, 10, .14); }

/* Focus: only the music */
html.focus .bar, html.focus .toolbar, html.focus .drawer, html.focus .edge-tab, html.focus .stagefoot, html.focus [data-foot-slot], html.focus .pop { display: none !important; }
html.focus .stage { padding-top: 40px; }
.focusbar { display: none; position: fixed; top: 10px; right: 12px; z-index: 40; gap: 6px; opacity: .45; transition: opacity .2s; }
html.focus .focusbar { display: flex; }
.focusbar:hover, .focusbar:focus-within { opacity: 1; }
.focusbar button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; line-height: 1; }
@media (max-width: 700px) { #clearBtn span, #handBtn span, #micBtn span, #transformBtn span { display: none; } }

/* the tactus hand: behind the music, on the right, beating the tactus while it plays */
.stage { z-index: 1; }
.tactus-hand { --hs: 1; position: absolute; right: 0; top: clamp(230px, 32%, 380px); width: calc(min(52%, 560px) * var(--hs)); aspect-ratio: 620 / 260; pointer-events: none; z-index: 0; opacity: .34; transition: opacity .4s, right .22s ease; }
:root[data-theme="dark"] .tactus-hand { opacity: .3; }
.tactus-hand.beating { opacity: .48; }
:root[data-theme="dark"] .tactus-hand.beating { opacity: .42; }
.tactus-hand svg { width: 100%; height: 100%; display: block; overflow: visible; }
#thArm { transform-origin: 760px 132px; }
.tactus-hand[data-style="palm"] #thBaton, .tactus-hand:not([data-style="palm"]) #thPalm { display: none; }
.tactus-hand[hidden] { display: none; }
@media (min-width: 1100px) { .drawer.right[data-open="true"] ~ .tactus-hand { right: 320px; } }
@media (max-width: 640px) { .tactus-hand { width: calc(80% * var(--hs)); top: clamp(200px, 40%, 340px); } }
html.focus .tactus-hand { z-index: 0; }

/* the pendulum (after Galileo, and Loulié's chronomètre of 1696): hangs from the top on the right, swings with the tactus */
.pendulum { --ps: 1; position: absolute; top: 0; left: clamp(10px, 3vw, 50px); height: calc(min(78%, 620px) * var(--ps)); aspect-ratio: 300 / 520; pointer-events: none; z-index: 0; opacity: .55; color: var(--soft); transition: left .22s ease; }
.pendulum[hidden] { display: none; }
.pendulum svg { width: 100%; height: 100%; display: block; overflow: visible; }
#pdArm, .pd-ghost { transform-origin: 150px 34px; }
@media (min-width: 1100px) { #library[data-open="true"] ~ .pendulum { left: calc(300px + clamp(10px, 3vw, 50px)); } }
@media (max-width: 640px) { .pendulum { height: calc(min(52%, 380px) * var(--ps)); left: 4px; } }

/* the clef palette */
.system .clef-hit { cursor: pointer; }
.system .clef-hit:hover .fill { fill: var(--accent); }
.clefgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.clefgrid button { display: grid; justify-items: center; gap: 2px; padding: 6px 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--ink); cursor: pointer; font: 12px var(--sans); }
.clefgrid button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.clefgrid button:hover { border-color: var(--accent); }
.clefgrid .clefpick { width: 52px; height: 64px; }
.clefgrid .clefpick .staffline { stroke: var(--staff); stroke-width: .085; fill: none; }
.clefpop-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.clefpop-head h3 { margin: 0; font: 400 20px var(--serif); }
.clefpop-head button { border: 0; background: none; font-size: 22px; color: var(--soft); cursor: pointer; }
.clefpick .clefnum { font: 1.5px var(--serif); fill: currentColor; }
.clefpick .fill { fill: currentColor; }

.fontcredit { text-align: center; font-size: .72rem; color: var(--soft); margin: 0 0 1rem; }
.fontcredit a { color: inherit; }

/* the Guidonian hand: a small camera window over the page; the music, the playback and the microphone go on */
.handwin { position: fixed; right: 16px; bottom: 96px; z-index: 55; width: min(340px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); overflow: hidden; display: flex; flex-direction: column; }
.handwin[hidden] { display: none; }
.handwin .hw-head { display: flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; font-size: 13px; cursor: move; user-select: none; -webkit-user-select: none; touch-action: none; border-bottom: 1px solid var(--line); }
.handwin .grow { flex: 1; }
.handwin .x { display: block; border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; width: 28px; height: 28px; border-radius: 7px; cursor: pointer; }
.handwin .x:hover { background: var(--raised); }
.handwin iframe { width: 100%; height: 420px; border: 0; display: block; background: var(--bg); }
.ib[aria-pressed="true"] { color: var(--accent); }
.crumbs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; font-size: 12px; color: var(--soft); }
.crumbs .back { display: inline; margin-right: 0; }
.crumbs .back:hover { color: var(--accent); }
.gammaclef { font-family: var(--serif); font-size: 2.6px; fill: currentColor; }

/* score / choir book switch beside the title */
.layoutsw { display: inline-flex; align-items: center; gap: 6px; margin-left: 4px; }
.layoutsw[hidden], .bookkind[hidden] { display: none; }
.bookbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9px; background: none; color: var(--soft); font: 13px var(--sans); cursor: pointer; }
.bookbtn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.bookbtn:hover { color: var(--accent); }
.bookbtn[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); }
.bookkind { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.bookkind button { border: 0; background: none; color: var(--soft); font: 12px var(--sans); padding: 0 9px; height: 30px; cursor: pointer; }
.bookkind button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.book .pane.blank > * { visibility: hidden; }
.soundsel select { height: 34px; border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--ink); font: 13px var(--sans); padding: 0 8px; max-width: 12rem; }

/* the former Studio, as single buttons under the music */
.optbar { flex-basis: 100%; display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 0; scrollbar-width: none; }
.optbar::-webkit-scrollbar { display: none; }
.optbar .chip { flex: none; white-space: nowrap; font-size: 13px; }
.optpop { width: min(440px, calc(100vw - 24px)); }
.optpop .cards { display: grid; gap: 10px; }
#studio[hidden] { display: none !important; }

/* one long rolling line */
.paper.rolling { max-width: none; padding-left: 0; padding-right: 0; }
.roll { overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; padding-bottom: 6px; }
.rollin { display: grid; width: max-content; padding-right: 50vw; }
.rollin > * { grid-area: 1 / 1; }
.rollhead { position: sticky; left: 0; z-index: 2; background: var(--bg); overflow: hidden; align-self: start; box-shadow: 8px 0 10px -6px var(--bg); }
:root[data-theme="vellum"] .rollhead { background: #efe4cc; }
.paper.rolling .sys { margin: 0; }
/* the New melody dialog */
.nm { display: grid; gap: 12px; padding: 6px 4px 4px; }
.nm label { display: grid; gap: 4px; font-size: 13px; color: var(--soft); }
.nm .nm-in { height: 38px; border: 1px solid var(--line); border-radius: 9px; background: var(--raised); color: var(--ink); font: 15px var(--sans); padding: 0 10px; }
.nm .nm-in.need { border-color: var(--accent); }
.nm .nm-send { grid-template-columns: auto 1fr; align-items: start; gap: 8px; color: var(--ink); }
.nm .nm-send input { margin-top: 3px; accent-color: var(--accent); }
.nm .hint { margin: 0; font-size: 12px; color: var(--soft); }
.nm-go { display: flex; justify-content: flex-end; gap: 8px; }
.chip.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* a more compact bottom bar: Play with Loop beside it, the tempo with Tap, the tactus by note shape */
.dock { gap: 6px 10px; padding: 6px 12px; padding-bottom: max(6px, env(safe-area-inset-bottom)); }
.play { width: 44px; height: 44px; }
.rewind { width: 34px; height: 34px; }
.rewind.loop { margin-right: 0; margin-left: -4px; }
.rewind.loop svg { fill: none; stroke-width: 2; }
.rewind.loop[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.rewind.hlbtn { margin-right: 0; margin-left: -4px; }
.rewind.hlbtn svg { stroke-width: 1.8; }
.rewind.hlbtn[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.tempo { flex-direction: row; align-items: center; gap: 6px; }
.tempo input { width: 3.8rem; padding: 4px 6px; font-size: 15px; }
.dock #tap { align-self: center; margin-bottom: 0; }
.tactus { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--soft); flex: none; }
.tseg { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.tseg button { border: 0; background: none; color: var(--ink); width: 34px; height: 34px; display: grid; place-items: center; padding: 0; cursor: pointer; }
.tseg button + button { border-left: 1px solid var(--line); }
.tseg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.tseg svg.glyph { width: 18px; height: 30px; }
.soundsel select { height: 32px; }
.optbar { flex: 1 1 260px; flex-basis: auto; min-width: 0; padding: 0; }
/* full screen: the title, the links above it and the tagline shrink to one line over the toolbar */
html.full .bar { padding-top: 4px; padding-bottom: 4px; }
html.full .brand { display: flex; align-items: baseline; gap: 12px; min-width: 0; }
html.full .brand h1 { font-size: 18px; order: 1; }
html.full .brand .crumbs { order: 2; }
html.full .brand p { display: none; }
html.full .bar .ib { height: 30px; }
.vc > span { font: 600 13px var(--serif); color: var(--accent); padding: 4px 8px; }
.vc button { padding: 4px 6px; display: grid; place-items: center; }
.vc button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.voices { margin-left: 0; }
.tseg svg.glyph { width: 22px; height: 34px; }
/* the choir book with any number of rows: a line between the pages, and between the rows */
.book .pane { border-right: 0; border-bottom: 1px solid var(--line); }
.book .pane:nth-child(odd) { border-right: 1px solid var(--line); }
.book .pane:nth-last-child(-n+2) { border-bottom: 0; }
.vinit .vinum, .system .vinum { font-size: .55em; }
.vc > span sub { font-size: .7em; margin-left: 1px; }
.bookbtn { white-space: nowrap; flex: none; }
#play.loading { opacity: .55; cursor: progress; }
.tree .hitkind { display: block; color: var(--soft); font-weight: 400; }

/* compact: Mute/Hide beside each voice in the score */
.system .vctl { cursor: pointer; }
.system .vctl-bg { fill: transparent; stroke: var(--line); stroke-width: .06; }
.system .vctl g { fill: none; stroke: var(--soft); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.system .vctl:hover g { stroke: var(--accent); }
.system .vctl.on .vctl-bg { fill: var(--accent); stroke: var(--accent); }
.system .vctl.on g { stroke: var(--accent-ink); }
.dock .voices { display: none; }
/* the tactus: only the chosen value, the four open on a tap */
.tactus .tlab { cursor: pointer; }
.tactus:not(.open) .tseg button:not([aria-pressed="true"]) { display: none; }
.tactus:not(.open) .tseg button + button { border-left: 0; }
/* one line at the bottom: everything in a row, the options scroll sideways */
.dock { flex-wrap: nowrap; }
.dock .optbar { flex: 1 1 0; min-width: 0; }
.dock > * { flex-shrink: 0; }
.dock .optbar { flex-shrink: 1; }
.dock .tempo > span:first-child { font-size: 12px; }
@media (max-width: 900px) { .dock { overflow-x: auto; scrollbar-width: none; } .dock::-webkit-scrollbar { display: none; } .dock .optbar { flex: none; overflow: visible; } }
/* a lower toolbar */
.toolbar { padding-top: 3px; padding-bottom: 3px; }
.toolbar .tbtn { height: 32px; font-size: 13.5px; }
.toolbar .tbtn svg { width: 19px; height: 19px; }
/* full screen: the header is one thin line */
html.full .brand .crumbs, html.full .brand p { display: none; }
/* three rows above the music: the title with its links and tagline side by side; the toolbar; the piece's category beside its name */
.bar { padding-top: 6px; padding-bottom: 6px; }
.brand { display: flex; align-items: baseline; gap: 14px; min-width: 0; flex: 1 1 auto; }
.brand h1 { order: 1; font-size: 26px; }
.brand p { order: 2; margin: 0; min-width: 0; flex: 0 1 auto; }
.brand .crumbs { order: 3; flex-wrap: nowrap; white-space: nowrap; }
.bar .grow { flex: 0 0 0; }
.piece-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 14px; }
.piece-head .trail { margin: 0; order: 2; }
.piece-head .titlerow { order: 1; }
.piece-head .note { flex-basis: 100%; order: 3; }
@media (max-width: 900px) { .brand p { display: none; } }
@media (max-width: 640px) { .brand .crumbs { display: none; } .brand h1 { font-size: 21px; } }
.piece-head .trail { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.piece-head .titlerow { flex: 0 1 auto; min-width: 0; }

/* the way back to the Contrapunto Gym: small, before the title, on every screen and in full screen too */
.brand .gymlink { order: 0; align-self: center; flex: none; display: inline-flex; align-items: center; gap: 2px; height: 26px; padding: 0 9px 0 4px;
  border: 1px solid var(--line); border-radius: 999px; color: var(--soft); text-decoration: none; font: 500 12.5px/1 var(--sans, inherit); white-space: nowrap; }
.brand .gymlink svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand .gymlink:hover, .brand .gymlink:focus-visible { color: var(--accent); border-color: var(--accent); }
html.full .brand .gymlink { height: 24px; }
/* one button for the beat: hand, hand with baton, pendulum, none */
.chip.beatcycle { display: inline-flex; align-items: center; gap: 6px; }
.chip.beatcycle svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
@media (max-width: 480px) { .brand { gap: 7px; margin-right: 6px; } .brand h1 { font-size: 15.5px; } .brand .gymlink { padding: 0 7px 0 2px; } }
/* Sing in a chant */
.pop.singin { width: min(620px, calc(100vw - 24px)); max-height: min(90vh, 820px); }
.si-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.si-rec.on { background: var(--accent); color: var(--accent-ink); }
.si-live { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--soft); }
.si-live .si-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.si-live.on .si-dot { background: var(--accent); }
.si-live .si-note { min-width: 3em; color: var(--ink); font: 400 18px var(--serif); }
.si-view { min-height: 70px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; overflow-x: auto; background: var(--raised); }
.si-view svg { display: block; max-width: 100%; height: auto; }
.nm .si-text { height: auto; min-height: 64px; padding: 8px 10px; resize: vertical; font: 15px var(--serif); }
.nm .hint.warn, .si-view .warn { color: var(--accent); }
.si-syl { font-family: var(--serif); }
.nm-go[hidden] { display: none; }

/* zoom: always in sight at the top right of the music, also in Focus */
.zoomctl { position: sticky; top: 0; float: right; z-index: 6; display: inline-flex; align-items: stretch; margin: 0 0 6px 10px; border: 1.5px solid var(--accent); border-radius: 999px; background: var(--surface); box-shadow: 0 2px 10px rgba(0, 0, 0, .18); overflow: hidden; }
.zoomctl button { border: 0; background: transparent; color: var(--ink); cursor: pointer; font: 600 22px/1 var(--sans); min-width: 44px; height: 42px; display: grid; place-items: center; padding: 0 10px; }
.zoomctl #zoomOut, .zoomctl #zoomIn { color: var(--accent); font-size: 26px; }
.zoomctl button:hover:not(:disabled) { background: var(--raised); }
.zoomctl button:disabled { opacity: .3; cursor: default; }
.zoomctl .zlab { display: inline-flex; align-items: center; gap: 6px; font: 500 13px var(--sans); border-left: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0 12px; color: var(--soft); }
.zoomctl .zlab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.zoomctl .zword { color: var(--ink); font-weight: 600; }
#zoomPct2 { min-width: 3.2em; text-align: right; font-variant-numeric: tabular-nums; }
html.focus .zoomctl { top: 4px; margin-right: 96px; }
@media (max-width: 560px) { .zoomctl .zword { display: none; } .zoomctl button { min-width: 40px; } }
#paper { clear: both; }
/* the Text window and button */
.nm textarea.tx-in { height: auto; min-height: 76px; padding: 8px 10px; resize: vertical; font: 16px/1.4 var(--sans); }
.tx-voices { display: flex; flex-wrap: wrap; gap: 6px; }
.tx-voices:empty { display: none; }
.tx-count { margin: -4px 0 0; }
.tbtn .tblab { font-size: 13px; }
/* Submit to the collection, under one's own melody */
.submitbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 22px 0 6px; }
.submitbar[hidden] { display: none; }
.submitbar .chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; font-size: 15px; font-weight: 600; cursor: pointer; }
.submitbar svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.sb-what { margin: 0; font-size: 14px; }

/* the Sound button: small, names the chosen sound (shortened); the full list opens in its window */
.chip.soundbtn { display: inline-flex; align-items: center; gap: 6px; max-width: 9.5rem; }
.chip.soundbtn span:not(.caret) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.chip.soundbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.chip.soundbtn .caret { flex: none; }

/* organum purum: one big button, the cantor's sign, between the music and the dock; on a phone it is a large target */
.op-panel { display: flex; align-items: stretch; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); background: var(--surface); z-index: 6; }
.op-panel[hidden] { display: none; }
.op-split { flex: 1; display: flex; gap: 8px; min-width: 0; }
.op-next { flex: 2; min-width: 0; min-height: 96px; border: 0; border-radius: 16px; background: var(--accent); color: var(--accent-ink); font: inherit; cursor: pointer;
  display: grid; place-content: center; justify-items: center; gap: 2px; position: relative; touch-action: manipulation; user-select: none; -webkit-user-select: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25); transition: transform .06s; }
.op-next:active { transform: scale(.985); filter: brightness(1.08); }
.op-tag { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .8; }
.op-big { font-family: var(--serif, Georgia, serif); font-size: 30px; line-height: 1.1; }
.op-sub { font-size: 14px; opacity: .9; }
.op-count { position: absolute; right: 12px; bottom: 8px; font-size: 11px; opacity: .7; font-variant-numeric: tabular-nums; }
.op-pause { flex: 1; min-width: 0; min-height: 96px; border: 2px solid var(--accent); border-radius: 16px; background: transparent; color: var(--accent); font: inherit; cursor: pointer;
  display: grid; place-content: center; justify-items: center; gap: 2px; touch-action: manipulation; user-select: none; -webkit-user-select: none; transition: transform .06s; }
.op-pause:active { transform: scale(.97); }
.op-pause.on { background: var(--accent); color: var(--accent-ink); }
.op-pause:disabled { opacity: .35; cursor: default; }
.op-pause svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.op-pause .op-big { font-size: 22px; }
.op-pause .op-sub { font-size: 12px; }
.system .op-breath { stroke: var(--ink, currentColor); stroke-width: .16; stroke-linecap: round; fill: none; pointer-events: none; }
.op-side { width: 56px; border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; touch-action: manipulation; }
.op-side svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.op-side:disabled { opacity: .35; cursor: default; }
@media (max-width: 700px) { .op-next, .op-pause { min-height: 26vh; } .op-big { font-size: 34px; } .op-pause .op-big { font-size: 22px; } .op-side { width: 52px; } }
@media (max-height: 500px) { .op-next, .op-pause { min-height: 34vh; } }
.organum .tactus-hand, .organum .pendulum { display: none !important; }

/* proposing an own talea: a clear, full-width button under the talea */
.tal-mine { margin: 6px 0 14px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tal-ask { margin: 8px 0 8px; font-size: 14px; }
.tal-propose { display: block; width: 100%; padding: 12px 16px; border: 1px solid var(--accent); border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 600 16px/1.2 inherit; cursor: pointer; }
.tal-propose:hover, .tal-propose:focus-visible { filter: brightness(1.12); }

/* Embedded in another page of the site (?embed=1), as the Atlas plays its examples: only the music and the player. */
html.embed .bar, html.embed .toolbar, html.embed .drawer, html.embed .zoomctl, html.embed .pagefoot, html.embed .tactus-hand,
html.embed .pendulum, html.embed .submitbar, html.embed .dock #tap, html.embed .dock .tactus, html.embed .dock .tempo.pitch,
html.embed .dock .optbar, html.embed .dock .hlbtn, html.embed .dock .beatctl, html.embed #noteToggle { display: none !important; }
html.embed .stage { padding-top: 10px; }
html.embed .piece-head { position: relative; padding-right: 9rem; }
html.embed .embed-open { position: absolute; right: 0; top: 2px; font: 12px/1.3 var(--sans); color: var(--soft); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
html.embed .embed-open:hover { color: var(--accent); border-color: var(--accent); }
