/* The style of the page. Rule for rule from the site this example is a port of, as far as the page has
   come: the frame, the first page, the dialogs, the practice view with the notes, the print. A rule that is
   not of that site says so. */
@font-face {
  font-family: "Bravura";
  src: url("fonts/Bravura.woff2") format("woff2");
  font-display: block;
}

/* The colours are Canti's: teal for what leads, cream for the paper, warm wood and soft gold for
   what should catch the eye, light teal for calm surfaces. */
/* Not of the site: its grey for what is said quietly, #5d7a7f, has a contrast of 4.28 to 1 on the paper of
   the page and 4.16 on a folder; this one has 4.6 and more (bug 89 of ORIGINAL_BUGS.md). */
:root {
  --bg: #fbf6ec;
  --surface: #fffdf8;
  --raised: #fffdf8;
  --text: #16363d;
  --muted: #567378;
  --line: #e7dcc9;
  --accent: #1b6670;
  --accent-ink: #ffffff;
  --fill: #1b6670;
  --fill-ink: #ffffff;
  --down: #b9532f;
  --staff: #8a918c;
  --ink: #17292d;
  --wood: #b9744a;
  --gold: #e8b565;
  --mint: #b5dadd;
  --danger: #b3261e;
  --good: #17823f;
  --c0: #c0563a;
  --c1: #a8527c;
  --c2: #b07d14;
  --c3: #3e8f5e;
  --c4: #2b62a8;
  --c5: #168388;
  /* the two glows behind the page, how strongly a singer's own line is tinted, the shadow under a card */
  --halo-a: color-mix(in srgb, var(--mint) 55%, transparent);
  --halo-b: color-mix(in srgb, var(--gold) 16%, transparent);
  --band: .09;
  --lit: color-mix(in srgb, var(--gold) 34%, transparent);
  --pen-blue: #1f5fae;
  --card-shadow: 0 10px 26px -22px color-mix(in srgb, var(--accent) 70%, transparent);
  color-scheme: light;
}
/* Dark as the device asks for it, unless the settings say light or dark (data-theme on the root).
   In the dark, what leads is a light teal on text and lines, while what is filled with it (buttons,
   switches) is a deeper teal with white on it: a large bright area would glare. Cards and windows
   stand out from the page by being lighter than it, not by their shadow. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1417;
    --surface: #15282e;
    --raised: #1b333a;
    --text: #e9f1ef;
    --muted: #9db6b9;
    --line: #2e4a52;
    --accent: #72d3d8;
    --accent-ink: #06262a;
    --fill: #1f7f89;
    --fill-ink: #ffffff;
    --down: #f0906a;
    --staff: #7b9296;
    --ink: #eef3ee;
    --wood: #dfa079;
    --gold: #ecc07a;
    --mint: #1f4a50;
    --danger: #ff8f80;
    --good: #62d08c;
    --c0: #f0876c;
    --c1: #e894bb;
    --c2: #e8ba62;
    --c3: #62c783;
    --c4: #86b5f0;
    --c5: #56c9c9;
    --halo-a: color-mix(in srgb, #1e5a66 38%, transparent);
    --halo-b: transparent;
    --band: .13;
    --lit: color-mix(in srgb, var(--gold) 16%, transparent);
    --pen-blue: #73adff;
    --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 30px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1417;
  --surface: #15282e;
  --raised: #1b333a;
  --text: #e9f1ef;
  --muted: #9db6b9;
  --line: #2e4a52;
  --accent: #72d3d8;
  --accent-ink: #06262a;
  --fill: #1f7f89;
  --fill-ink: #ffffff;
  --down: #f0906a;
  --staff: #7b9296;
  --ink: #eef3ee;
  --wood: #dfa079;
  --gold: #ecc07a;
  --mint: #1f4a50;
  --danger: #ff8f80;
  --good: #62d08c;
  --c0: #f0876c;
  --c1: #e894bb;
  --c2: #e8ba62;
  --c3: #62c783;
  --c4: #86b5f0;
  --c5: #56c9c9;
  --halo-a: color-mix(in srgb, #1e5a66 38%, transparent);
  --halo-b: transparent;
  --band: .13;
  --lit: color-mix(in srgb, var(--gold) 16%, transparent);
  --pen-blue: #73adff;
  --card-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 14px 30px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

* { box-sizing: border-box; }
/* One scale of type, one of spacing, one height of what is pressed (not of that site). */
:root {
  --fs-tiny: .75rem; --fs-xs: .875rem; --fs-s: .9375rem; --fs-m: 1rem; --fs-l: 1.15rem; --fs-xl: 1.4rem; --fs-xxl: 1.9rem; --fs-display: 2.4rem;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --tap: 40px;
}
[hidden] { display: none !important; }
body {
  margin: 0; color: var(--text);
  background:
    radial-gradient(circle at 92% -6%, var(--halo-a), transparent 30rem),
    radial-gradient(circle at -8% 105%, var(--halo-b), transparent 26rem),
    var(--bg);
  background-attachment: fixed;
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
button, select, input { font: inherit; color: inherit; }
/* A list to choose from looks the same everywhere: the field of the page, with an arrow of its own
   (drawn with two gradients; the arrow of the system does not fit the rest). */
select {
  appearance: none; -webkit-appearance: none; box-sizing: border-box; max-width: 100%;
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background-color: var(--surface);
  color: var(--text); line-height: 1.3; cursor: pointer; text-overflow: ellipsis; transition: border-color .15s, box-shadow .15s;
}
select:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
select:disabled { opacity: .55; cursor: default; }
button { cursor: pointer; }
h1, h2, h3, p { margin: 0; }
a { color: var(--accent); }

.ghost {
  padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent;
  font-size: var(--fs-s); color: var(--muted); text-decoration: none; display: inline-block;
}
.ghost:hover { border-color: var(--accent); color: var(--text); }
.primary {
  padding: 12px 18px; border-radius: 10px; border: 0; background: var(--fill); color: var(--fill-ink);
  font-weight: 700; text-decoration: none; display: inline-block; text-align: center;
}
.primary:hover { filter: brightness(1.08); }
.primary:disabled { opacity: .6; cursor: default; }

.bar {
  position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.bar-in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 12px; }
.brand { font-weight: 700; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.spacer { flex: 1; }
main { max-width: 1240px; margin: 0 auto; padding: 28px 16px 60px; }
.eyebrow { color: var(--muted); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: var(--sp-5); }
@media (max-width: 560px) { .card { padding: var(--sp-4); } }
.muted { color: var(--muted); }

/* ---------- home ---------- */
.home-head h1 { font-size: var(--fs-xxl); letter-spacing: -0.02em; }
.home-head { margin-bottom: 28px; }
.notices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-bottom: 36px; }
.notice b { display: block; }
.notice span { color: var(--muted); font-size: var(--fs-s); white-space: pre-line; }
.pieces { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.piece { display: flex; flex-direction: column; gap: 12px; }
.piece h3 { font-size: var(--fs-l); line-height: 1.25; }
.piece h3 a { color: inherit; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.piece h3 svg { width: 22px; height: 22px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.piece .muted { font-size: var(--fs-s); margin-top: 2px; }
.piece-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.piece-top .icon-btn { flex: none; width: 30px; height: 30px; }
.piece-top .icon-btn svg { width: 16px; height: 16px; }
.piece-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; }
.piece-foot .primary { flex: 1; text-align: center; text-decoration: none; }
.piece-foot .ghost[data-files][aria-expanded="true"] { border-color: var(--accent); color: var(--text); }
.piece-foot .dl { flex-basis: 100%; }
.piece-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.piece-audio .round { width: 34px; height: 34px; flex: none; }
.piece-audio .round svg { width: 14px; height: 14px; }
.piece-audio select { flex: 1; min-width: 0; font-size: var(--fs-s); padding: 6px 8px; }
.piece-audio audio { flex-basis: 100%; }
audio { width: 100%; height: 36px; }
.tag.warm { margin-left: 8px; vertical-align: 2px; }
.tag.private { margin-left: 8px; vertical-align: 2px; font-weight: 600; color: var(--accent); border-color: currentColor; }
.piece:has(.tag.private) { border-style: dashed; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: var(--fs-xs); padding: 2px 9px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.rep-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rep-head .eyebrow { margin: 0; }
.rep-head .ghost { font-size: var(--fs-s); padding: 6px 12px; }
.pieces .empty { color: var(--muted); }
/* What the notes of a piece say stands on two lines, which are there before they are read. */
.piece .facts { display: flex; flex-direction: column; gap: 2px; min-height: 2.7em; }
.facts .words { font-style: italic; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#importStatus:empty { display: none; }
#importStatus { margin-bottom: 10px; }

.admin-card h2, dialog h2 { font-size: var(--fs-m); }
input[type=text], input[type=number], textarea {
  width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: var(--fs-m);
}
.gate {
  position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px;
  overflow-y: auto;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 34rem),
    var(--bg);
}
.gate-card {
  width: min(100%, 400px); background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 32px 28px 28px; display: grid; gap: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .12);
}
.gate-mark {
  width: 48px; height: 48px; border-radius: 14px; display: var(--choir-mark-shown, grid); place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-size: var(--fs-xl);
}
.gate-card h1 { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.gate-card > p { color: var(--muted); }
.gate-card label { font-size: var(--fs-s); font-weight: 600; margin-bottom: -8px; }
.pw-row { display: flex; gap: 8px; }
.pw-row input {
  flex: 1; min-width: 0; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--bg); font-size: var(--fs-m);
}
.pw-row input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.gate-card .check { display: flex; align-items: center; gap: 8px; font-weight: 400; color: var(--muted); margin: 0; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.gate-part { display: grid; gap: 14px; }
.gate-part input[type="text"] { width: 100%; min-width: 0; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: inherit; }
.gate-part h2 { font-size: var(--fs-l); margin: 0; }
.gate-part p { margin: 0; line-height: 1.5; }
#pw { font-family: monospace; letter-spacing: .15em; }
#mailSentTo { overflow-wrap: anywhere; }
.gate-or { text-align: center; color: var(--muted); font-size: var(--fs-s); margin: -4px 0; }
.gate-error { color: var(--down); font-size: var(--fs-s); min-height: 1.35em; margin-top: -6px; }
.gate-error.fine { color: var(--muted); }
.gate-error a { color: var(--accent); }
.gate-card .about-line { margin: 16px 0 0; }
.shake { animation: shake .32s; }
@keyframes shake { 25% { transform: translateX(-7px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.badge { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.person-who { display: grid; }
.person-who .muted { font-size: var(--fs-xs); overflow-wrap: anywhere; }
.wait-list { display: grid; gap: 8px; margin-bottom: 28px; }
.wait-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.wait-row .person-who { flex: 1 1 220px; }
.guest-note { margin: 0 0 22px; padding: 10px 14px; border-radius: 12px; background: color-mix(in srgb, var(--gold) 22%, var(--surface)); font-size: var(--fs-s); }
#guestDialog form { display: grid; gap: 8px; }
#guestDialog .muted { font-size: var(--fs-s); }
#guestDialog .guest-why { font-style: italic; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.status { font-size: var(--fs-s); min-height: 1.3em; color: var(--muted); }
.status.error { color: var(--down); }
dialog { border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: min(92vw, 460px); background: var(--raised); color: var(--text); box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }          /* a wide field must not widen the form past its window */
dialog .row-actions { margin-top: 8px; }
.field-label { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; display: block; margin-bottom: 4px; }
dialog .two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
dialog .two > div > select { width: 100%; }
dialog .time-row { display: flex; align-items: center; gap: 8px; }
dialog .time-row input { width: 5em; flex: none; }
dialog .time-row select { flex: 1; min-width: 0; }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 11px; padding: 3px; background: var(--surface); gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 13px; border-radius: 8px; font-weight: 600; font-size: var(--fs-s); color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--pc, var(--accent)); color: var(--accent-ink); }
dialog.ask { width: min(92vw, 420px); }
dialog.ask p { margin: 0; font-size: var(--fs-m); line-height: 1.45; }
dialog.ask .row-actions { margin-top: 14px; }
dialog .primary.danger { background: #b3261e; border-color: var(--danger); color: #fff; }
dialog .ghost.danger { color: var(--danger); border-color: currentColor; }
.ghost.danger:hover { border-color: var(--down); color: var(--down); }
#partClefRow { display: grid; gap: 8px; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font-size: var(--fs-xs); }

/* ---------- Canti's touch on the plain parts ---------- */
.brand { color: var(--accent); }
/* Not of the site, which writes them in the wood itself, 3.44 to 1 on the paper (bug 89 of ORIGINAL_BUGS.md). */
.eyebrow { color: color-mix(in srgb, var(--wood) 75%, var(--text)); }
.card { box-shadow: var(--card-shadow); }
h1 { color: var(--accent); letter-spacing: -0.015em; }

.about-line { margin: 34px 0 6px; text-align: center; }
.about-link { font-size: var(--fs-xs); color: var(--muted); }
dialog.about { width: min(92vw, 480px); }
dialog.about h2 { margin: 0 0 6px; }
dialog.about p { margin: 0 0 12px; line-height: 1.5; }
.about-version { font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
dialog.about p.muted { font-size: var(--fs-xs); }
.about-who { display: grid; place-items: center; margin: 2px 0 10px; }
.about-who .canti { width: 150px; }
/* «Feedback»: where to write, and what is not promised (not of that site) */
.about-feedback { margin: 0 0 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; }
dialog.about .about-feedback h3 { margin: 0 0 4px; font-size: var(--fs-s); }
dialog.about .about-feedback p { margin: 0 0 6px; }
dialog.about .about-feedback p:last-child { margin: 0; }
.about-feedback a { overflow-wrap: anywhere; }
/* Not of that site: the first page offers the offline edition beside the link to this dialog. */
.about-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
a.about-link { text-decoration: none; }

/* ---------- practice ---------- */
.pc0 { --pc: var(--c0); } .pc1 { --pc: var(--c1); } .pc2 { --pc: var(--c2); }
.pc3 { --pc: var(--c3); } .pc4 { --pc: var(--c4); } .pc5 { --pc: var(--c5); }
.p-head { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 24px; margin-bottom: 18px; }
.p-head h1 { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.back { font-size: var(--fs-s); text-decoration: none; }
.layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
/* On wide screens only the score scrolls: the title row and the side panels stay in place.
   The script measures the bar above and publishes its height as a custom property. */
@media (min-width: 1000px) {
  .layout { grid-template-columns: minmax(0, 1fr) 320px; }
  @media (min-width: 1180px) { .layout { grid-template-columns: minmax(0, 1fr) 356px; } }
  #practice { padding-top: 0; }
  .p-head {
    position: sticky; top: var(--bar-h, 58px); z-index: 5; margin-bottom: 0; padding: 18px 0 14px;
    background: var(--bg);
  }
  .side {
    position: sticky; top: calc(var(--bar-h, 58px) + var(--head-h, 90px));
    max-height: calc(100vh - var(--bar-h, 58px) - var(--head-h, 90px) - var(--transport-h, 80px) - 12px);
    overflow-y: auto; padding-right: 2px;
  }
}
.score-card { padding: 12px 10px 6px; overflow: hidden; }
.score-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 0 6px 6px; font-size: var(--fs-xs); color: var(--muted); }
#score svg { display: block; }
#score .empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.side { display: grid; gap: 16px; }
/* The voices and the files stand beside the score where there is room. Where there is none, and
   while the editor takes the lower part of the screen, a button that stays in place calls them up. */
.side-head, .side-back, .fab { display: none; }
.fab {
  position: fixed; right: 14px; bottom: calc(var(--transport-h, 80px) + 14px); z-index: 12; align-items: center; gap: 8px;
  height: 46px; padding: 0 17px 0 13px; border: 0; border-radius: 999px; background: var(--fill); color: var(--fill-ink);
  font-weight: 700; font-size: var(--fs-s); box-shadow: 0 6px 20px rgba(0, 0, 0, .28);
}
.fab svg { width: 20px; height: 20px; fill: var(--fill); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 999px) {
  .side { display: none; }
  .fab { display: inline-flex; }
}
#practice.editing-on .fab { display: inline-flex; }
/* On a wide screen too the voices can be folded away, so that the notes have all the width;
   the button that stays in place calls them up, and from there they can be put back beside the notes. */
.side-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.side-fold, .side-pin { display: none; }
#practice.side-open .side-head { gap: 8px; }
@media (min-width: 1000px) {
  #practice:not(.side-open) .side-fold { display: inline; }
  #practice.side-open.side-off .side-pin { display: inline-flex; padding: 6px 12px; font-size: var(--fs-xs); }
  #practice.side-off .layout { grid-template-columns: minmax(0, 1fr); }
  #practice.side-off:not(.side-open) .side { display: none; }
  #practice.side-off .fab { display: inline-flex; }
}
#practice.side-open .fab { display: none; }
#practice.side-open .side-back { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(8, 28, 32, .4); }
#practice.side-open .side {
  display: grid; position: fixed; z-index: 41; left: 0; right: 0; top: auto; bottom: 0; max-height: 84dvh; overflow-y: auto;
  padding: 0 12px 16px; background: var(--bg); border-radius: 18px 18px 0 0; box-shadow: 0 -12px 40px rgba(0, 0, 0, .3);
}
#practice.side-open .side-head {
  display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2;
  padding: 12px 4px 8px; margin-bottom: -8px; background: var(--bg);
}
@media (min-width: 721px) and (max-width: 999px) {
  #practice.side-open .side { left: auto; right: 14px; bottom: 14px; width: 420px; max-height: calc(100dvh - var(--bar-h, 58px) - 28px); border-radius: 18px; }
}
@media (min-width: 1000px) {
  #practice.side-open .side { left: auto; right: 14px; top: calc(var(--bar-h, 58px) + 12px); bottom: 14px; width: 370px; max-height: none; border-radius: 18px; }
}
/* ---- notes of one's own on a piece: small flags over the bars ---- */
.score-card { position: relative; }
.mark-layer { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.mark-flag {
  position: absolute; transform: translateY(-100%); max-width: 11em; height: 26px; padding: 0 8px; border: 0; border-radius: 8px 8px 8px 2px;
  font-size: var(--fs-xs); font-weight: 700; line-height: 26px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); z-index: 3;
}
.mark-flag.hard { background: #c2412d; }
.mark-flag.fix { background: #2b6cb0; }
.mark-flag.note { background: #8a6418; }
.bar-flash { position: absolute; border-radius: 8px; background: color-mix(in srgb, var(--gold) 45%, transparent); pointer-events: none; animation: bar-flash 1.1s ease-out forwards; }
@keyframes bar-flash { from { opacity: 1; } to { opacity: 0; } }
.mark-kinds { display: flex; }
.mark-kinds button { flex: 1 1 auto; padding: 9px 8px; }
#markDialog form, #marksDialog form { display: grid; gap: 12px; }
#markText { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); font: inherit; resize: vertical; }
.marks-list { display: grid; gap: 6px; max-height: 50dvh; overflow-y: auto; }
.marks-list button { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; align-items: baseline; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--text); }
.marks-list b { font-variant-numeric: tabular-nums; }
.marks-list small { grid-column: 2; color: var(--muted); }

/* ---- the words of all voices at once: a table that fills the screen ---- */
/* made for a keyboard and a mouse: not offered on a narrow screen */
@media (max-width: 999px) { #edWords { display: none; } }
dialog.words { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; padding: 14px 16px; box-sizing: border-box; }
.w-form { display: grid; grid-template-rows: auto auto auto minmax(0, 1fr) auto auto; gap: 8px; height: 100%; min-width: 0; }
.w-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 20px; }
.w-head h2 { font-size: var(--fs-l); margin: 0 8px 8px 0; align-self: center; }
.w-tool { display: inline-flex; align-items: center; gap: 6px; height: 38px; }
.w-tool select, .w-tool input { height: 34px; padding: 0 8px; margin: 0; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: var(--fs-s); }
.w-tool input[type="number"] { width: 4.6em; }
.w-tool input[type="text"] { width: 9.5em; }
.w-tool .chip { padding: 6px 12px; }
.w-help { margin: 0; font-size: var(--fs-xs); }
.w-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); min-height: 0; }
.w-table { display: grid; grid-template-columns: 168px max-content; }
.w-corner, .w-name { position: sticky; left: 0; z-index: 3; background: var(--surface); border-right: 1px solid var(--line); }
.w-corner, .w-bars { position: sticky; top: 0; z-index: 4; background: var(--surface); border-bottom: 1px solid var(--line); height: 26px; }
.w-corner { z-index: 5; }
.w-bars { display: flex; }
.w-bars span { flex: none; width: 200px; box-sizing: border-box; padding: 4px 8px; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); border-left: 1px solid var(--line); }
.w-name { display: flex; flex-direction: column; justify-content: flex-end; font-weight: 700; font-size: var(--fs-s); border-bottom: 1px solid var(--line); min-width: 0; }
.w-name-top { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 8px; min-width: 0; }
.w-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--pc, var(--text)); }
/* with both lines shown, each voice has two rows: what they are stands in front of them */
.w-kind { height: 38px; padding: 0 8px 0 44px; display: flex; align-items: center; font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.w-row { display: flex; flex-direction: column; justify-content: flex-end; }
.w-row.w-two .w-cells + .w-cells { border-top: 1px dashed var(--line); }
/* Not of the site, whose rule asks for the first of its kind, which the notes of the voice are: the spoken row is the
   one behind them (bug 97 of ORIGINAL_BUGS.md). */
.w-row.w-two .w-staff + .w-cells input { font-style: italic; color: var(--accent); }
/* bars that are picked to be copied */
.w-box.picked input { background: color-mix(in srgb, var(--accent) 20%, transparent); box-shadow: inset 0 0 0 2px var(--accent); }
.w-picked { font-size: var(--fs-xs); margin-left: 6px; }
/* bars that were copied and wait to be put somewhere: a dashed frame that moves */
.w-box.clipped input {
  background:
    linear-gradient(90deg, var(--gold) 50%, transparent 50%) 0 0 / 12px 2px repeat-x,
    linear-gradient(90deg, var(--gold) 50%, transparent 50%) 0 100% / 12px 2px repeat-x,
    linear-gradient(0deg, var(--gold) 50%, transparent 50%) 0 0 / 2px 12px repeat-y,
    linear-gradient(0deg, var(--gold) 50%, transparent 50%) 100% 0 / 2px 12px repeat-y,
    color-mix(in srgb, var(--gold) 14%, transparent);
  animation: clip-ants .7s linear infinite;
}
@keyframes clip-ants { to { background-position: 12px 0, -12px 100%, 0 -12px, 100% 12px, 0 0; } }
@media (prefers-reduced-motion: reduce) { .w-box.clipped input { animation: none; } }
.w-name button { flex: none; width: 30px; height: 30px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: var(--fs-m); }
.w-name button[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
.w-row { border-bottom: 1px solid var(--line); }
.w-staff svg { display: block; }
.w-staff[hidden] { display: none; }
.w-cells { display: flex; }
.w-box { position: relative; flex: none; width: 200px; box-sizing: border-box; border-left: 1px solid var(--line); margin: 0; }
.w-box input { width: 100%; box-sizing: border-box; height: 38px; padding: 0 26px 0 8px; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font-size: var(--fs-m); }
.w-box input:focus { outline: 2px solid var(--accent); outline-offset: -2px; background: var(--surface); }
.w-box i { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: var(--fs-xs); font-weight: 700; color: var(--muted); pointer-events: none; }
.w-box.none input { background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--ink) 5%, transparent) 6px 12px); }
/* more syllables than notes: the last ones find no note */
.w-box.over input { background: color-mix(in srgb, #c2412d 16%, transparent); }
.w-box.over i { color: #c2412d; }
/* copied from a voice with another rhythm: to be looked at */
.w-box.check input { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--gold) 90%, transparent); }

/* the keys for the number of a bar: only those that can still lead to a bar of the piece can be pressed */
dialog.bar-pad { width: min(92vw, 340px); }
.bar-pad form { display: grid; gap: 12px; }
.pad-shown { margin: 0; text-align: center; font-variant-numeric: tabular-nums; }
.pad-shown b { display: inline-block; min-width: 2.2em; font-size: var(--fs-display); line-height: 1.1; color: var(--accent); border-bottom: 3px solid var(--accent); }
.pad-shown span { color: var(--muted); font-size: var(--fs-l); margin-left: 8px; }
.pad-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pad-keys button {
  height: 64px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text);
  font-size: var(--fs-xl); font-weight: 700; touch-action: manipulation;
}
.pad-keys button:active:not(:disabled) { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.pad-keys button:disabled { opacity: .28; }
.pad-keys .pad-go { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); font-size: var(--fs-l); }
.pad-keys .pad-clear { color: var(--down, #b3261e); }

/* ---- the bars over the notes: what is drawn with; and the notes turned page by page ---- */
.stage-bar[hidden] { display: none; }
.stage-bar {
  position: fixed; left: 8px; right: 8px; bottom: max(12px, env(safe-area-inset-bottom)); margin: 0 auto; width: max-content; z-index: 55;
  display: flex; align-items: center; gap: 4px; max-width: calc(100vw - 16px); overflow-x: auto; padding: 6px;
  border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: blur(10px); box-shadow: 0 10px 34px rgba(0, 0, 0, .28);
}
.stage-bar button {
  flex: none; min-width: 54px; height: 54px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent;
  color: var(--text); font-size: var(--fs-m); font-weight: 700; touch-action: manipulation;
}
.stage-bar button:active { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.stage-bar button[aria-pressed="true"] { background: var(--fill); color: var(--fill-ink); }
.stage-sep { flex: none; width: 1px; height: 28px; background: var(--line); margin: 0 4px; }
/* what is drawn on the notes lies over them; it takes the finger only while a tool is chosen */
.ink-layer { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; z-index: 2; }
.ink-layer path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ink-layer path.ink-text { stroke: var(--text); }
/* how far the eraser reaches, where it is moved */
.ink-layer .ink-ring { fill: color-mix(in srgb, var(--accent) 12%, transparent); stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 4 3; }
/* the blue pen is lighter in the dark, where the one of the paper would hardly show */
.ink-layer path[stroke="#1f5fae"] { stroke: var(--pen-blue); }
.stage-bar .ink-colors button.ink-text, .stage-bar .ink-colors button.ink-text[aria-pressed="true"] { background: var(--text); }
body.inking .ink-layer { pointer-events: auto; touch-action: none; cursor: crosshair; }
body.ink-off:not(.inking) .ink-layer { display: none; }
.stage-bar svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.ink-bar { bottom: calc(var(--transport-h, 80px) + 10px); }
.ink-colors { display: inline-flex; gap: 6px; padding: 0 4px; }
.stage-bar .ink-colors button { min-width: 0; width: 40px; height: 40px; padding: 0; border: 3px solid transparent; background: var(--ink-c); }
.stage-bar .ink-colors button[aria-pressed="true"] { border-color: var(--text); background: var(--ink-c); }
/* the page is turned by two large buttons at the edges of the notes, light enough to read through;
   where they stand is set by the script, which knows where the notes are */
.stage-turn[hidden] { display: none; }
.stage-turn {
  position: fixed; top: 50%; transform: translateY(-50%); z-index: 54; width: 76px; height: 120px; border: 0; padding: 0;
  background: color-mix(in srgb, var(--accent) 22%, transparent); color: color-mix(in srgb, var(--accent) 80%, transparent);
  font-size: var(--fs-display); line-height: 1; font-weight: 700; touch-action: manipulation;
}
.stage-turn.prev { left: 0; border-radius: 0 60px 60px 0; }
.stage-turn.next { border-radius: 60px 0 0 60px; }
.stage-turn:active { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.stage-turn:disabled { opacity: .25; }
/* the notes fill the screen: the bar that plays stays below them, and nothing else is there */
body.focus { overflow: hidden; }
body.focus > #app > .bar, body.focus #practice .p-head { display: none; }
body.focus .score-card {
  position: fixed; left: 0; right: 0; top: 0; bottom: var(--transport-h, 80px); z-index: 30; margin: 0; border: 0; border-radius: 0; box-shadow: none;
  background: var(--surface); padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) 12px max(10px, env(safe-area-inset-left));
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
}
body.focus .transport { position: fixed; left: 0; right: 0; bottom: 0; z-index: 31; padding-bottom: env(safe-area-inset-bottom); }
/* while the notes are corrected the editor stands on the bar that plays, there as on the page */
body.focus .editor { position: fixed; left: 0; right: 0; bottom: var(--play-h, 0px); z-index: 32; }
/* turned page by page on the page: the notes stand in a frame as high as the screen has room for */
body.paged:not(.focus) .score-card { overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
body.paged:not(.focus) .score-card { height: calc(100dvh - var(--bar-h, 58px) - var(--title-h, 0px) - var(--transport-h, 80px) - 18px); }
@media (max-width: 560px) {
  .stage-turn { width: 48px; height: 96px; font-size: var(--fs-display); }
}
body.noting #score { cursor: crosshair; }
body.noting #score .linetool, body.inking #score .linetool { display: none; }
/* the size of the notes and whose words are shown */
.view-tools { display: inline-flex; align-items: center; gap: 6px; margin-left: 6px; }
.seg-view { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.seg-view .icon-btn { width: 32px; height: 30px; border: 0; border-radius: 0; font-size: var(--fs-l); font-weight: 700; line-height: 1; }
.seg-view .icon-btn + .icon-btn { border-left: 1px solid var(--line); }
.seg-view .icon-btn:disabled { opacity: .35; }
.view-chip { padding: 5px 10px; font-size: var(--fs-xs); }
.side h2 { font-size: var(--fs-m); margin-bottom: 10px; }
/* the room the voices sound in: chosen here, below them */
.side-room { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; font-size: var(--fs-s); color: var(--muted); }
.side-room .menu { min-width: 13em; }
/* Not of the site: where the voices have no room above it, the menu opens downwards (bug 92 of ORIGINAL_BUGS.md). */
.side-room .menu.below { bottom: auto; top: calc(100% + 8px); }
/* what is heard: four ways to hear the choir, above the voices they set */
.presets { margin-bottom: 16px; }
.presets-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.presets-grid .menu-item { border: 1px solid var(--line); padding: 7px 9px; gap: 8px; font-size: var(--fs-s); min-width: 0; }
.presets-grid .menu-item svg { width: 22px; height: 22px; flex: none; }
.presets-grid .menu-item[aria-pressed="true"] { border-color: var(--accent); }
/* Not of the site, whose grey has 3.58 to 1 on the tint of the way that is chosen: a quarter of the colour
   of the text in it has 4.96 (bug 94 of ORIGINAL_BUGS.md). */
.presets-grid .menu-item[aria-pressed="true"] small { color: color-mix(in srgb, var(--muted) 75%, var(--text)); }
/* no higher than "play", so that the row is exactly as high as that and the buttons beside it can be centred on it */
button.pos { border: 0; background: none; height: var(--t-row, 52px); padding: 0 6px; margin: 0 -6px; border-radius: 10px; text-align: left; color: inherit; font: inherit; line-height: 1.1; display: block; }
button.pos small { line-height: 1.2; }
button.pos:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.dl { display: flex; flex-wrap: wrap; gap: 6px; }
.dl .ghost { font-size: var(--fs-xs); padding: 6px 10px; text-decoration: none; }
.dl:not(:empty) + .dl { margin-top: var(--sp-2); }
/* Not of that site: a row is a name and two buttons until the voices are played; the site has a third
   column for the volume. */
.mix-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 62px; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.mix-row:first-child { border-top: 0; }
.mix-name { font-weight: 600; font-size: var(--fs-s); display: flex; align-items: center; gap: 7px; min-width: 0; }
.mix-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mix-name i { width: 10px; height: 10px; border-radius: 50%; background: var(--pc); flex: none; }
.mix-btns { display: flex; gap: 4px; }
.mini {
  width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: transparent;
  display: grid; place-items: center; color: var(--muted); padding: 0;
}
.mini[aria-pressed="true"] { color: var(--pc); border-color: var(--pc); background: color-mix(in srgb, var(--pc) 12%, transparent); }
.mini svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mini.me[aria-pressed="true"] { background: var(--pc); color: #fff; }
.mix-btns .mini { width: 30px; }
.mix-btns { gap: 3px; }
.file { display: inline-flex; align-items: center; }
.only-here { font-size: var(--fs-s); flex-basis: 100%; }

/* ---------- score ---------- */
.mus { font-family: "Bravura"; fill: currentColor; }
.ink { fill: currentColor; }
.staffline { stroke: var(--staff); stroke-width: 1; }
.barline { stroke: var(--staff); stroke-width: 1.2; }
.staff { color: var(--ink); }
.beam { fill: currentColor; }
.staff.silent :is(.n, .rest, .beam, .tie, .bracket, .tuplet) { opacity: .35; }
.plabel { fill: var(--pc); font-weight: 700; }
.stem { stroke: currentColor; stroke-width: 1.2; }
.ledger { stroke: currentColor; stroke-width: 1.3; opacity: .75; }
.tie, .hairpin, .bracket { fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; }
.tuplet { fill: currentColor; font-style: italic; font-weight: 700; }
.n .halo { fill: currentColor; opacity: 0; }
.lyric, .expr { fill: currentColor; }
/* words written the way they are spoken */
.lyric.ph { font-style: italic; fill: var(--accent); }
.view-chip[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
.expr { font-style: italic; }
.barnum { fill: var(--muted); }
.tempo { fill: var(--text); font-weight: 700; }
.tempo .expression { font-weight: 400; font-style: italic; }
.chordsym { fill: var(--accent); font-weight: 700; }
.entry rect { fill: var(--surface); stroke: currentColor; stroke-width: 1.3; }
/* the letter of a part of the piece in its box, and the signs and words by which the music jumps */
.section rect { fill: var(--surface); stroke: var(--text); stroke-width: 1.5; }
.section text, .jump { fill: var(--text); font-weight: 700; }
.jump { font-style: italic; }
.jumpsign { fill: var(--text); }
/* a choice in the editor that says by its first word what it sets, as long as nothing is set */
.e-ctl select.pick { width: auto; min-width: 5.2em; flex: none; }
.e-ctl select.pick:has(option[value=""]:checked) { color: var(--muted); }
.entry text { fill: currentColor; font-weight: 700; }
.entry.selmark rect { stroke: var(--accent); }
.entry.selmark text { fill: var(--accent); }
.mine-band { fill: var(--pc); opacity: var(--band); pointer-events: none; }
.hit { fill: transparent; cursor: pointer; }
.hit:hover { fill: color-mix(in srgb, var(--accent) 7%, transparent); }
.hit.inloop { fill: color-mix(in srgb, var(--accent) 11%, transparent); }
/* where the playing is: a frame around the notes that sound, with their words, which crosses nothing */
.playhead { fill: color-mix(in srgb, var(--accent) 7%, transparent); stroke: var(--accent); stroke-width: 2; stroke-opacity: .8; pointer-events: none; }
.loopmark { cursor: ew-resize; touch-action: none; }
.loopmark .grab { fill: transparent; }
.loopmark line { stroke: var(--accent); stroke-width: 2; }
.loopmark path { fill: var(--accent); }
.loopmark:hover path { fill: var(--ink); }
.linetool { cursor: pointer; opacity: 0; transition: opacity .12s; }
.linetool:hover { opacity: 1; }
@media (hover: none) { .linetool { opacity: .5; } }
.editing .linetool { display: none; }
.linetool rect { fill: transparent; }
.linetool circle { fill: var(--accent); }
.linetool path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.partools { display: none; }
.editing .partools { display: inline; opacity: 0; transition: opacity .12s; }
.editing .partools:hover { opacity: 1; }
@media (hover: none) { .editing .partools { opacity: .6; } }
.partools > rect { fill: transparent; }
.pbtn { cursor: pointer; }
.pbtn circle { fill: var(--accent); }
.pbtn:hover circle { fill: var(--ink); }
.pbtn path { stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.mhit { fill: transparent; }
.ahit { fill: none; stroke: transparent; stroke-width: 16; stroke-linecap: round; pointer-events: stroke; }
.editing .mk { cursor: pointer; }
.selmark { fill: var(--accent); }
path.selmark { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.volta { stroke: currentColor; stroke-width: 1.2; }
.voltanum { fill: currentColor; font-weight: 700; }
.cursor { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 5 4; pointer-events: none; }

/* ---------- printing the score (also the way to a PDF) ---------- */
#printArea { display: none; }
/* ---------- playing ---------- */
.switch { display: flex; align-items: center; gap: 10px; font-size: var(--fs-s); cursor: pointer; margin: 6px 0; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-track { flex: none; width: 40px; height: 22px; border-radius: 999px; background: var(--line); position: relative; transition: background .15s; }
.switch-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .15s; }
.switch input:checked + .switch-track { background: var(--fill); }
.switch input:checked + .switch-track::after { transform: translateX(18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }
#settingsDialog select, #settingsDialog input[type="text"] { width: 100%; box-sizing: border-box; }
#settingsDialog .switch { margin: 2px 0; }
#settingsDialog .field-label { margin-top: 8px; }
.mix-switch { font-size: var(--fs-xs); color: var(--muted); padding-top: 10px; margin: 4px 0 0; border-top: 1px solid var(--line); }
.mix-switch .switch-track { transform: scale(.85); transform-origin: left center; margin-right: -6px; }
#settingsDialog .muted { font-size: var(--fs-xs); margin: 0; }
.chip {
  padding: 7px 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface);
  font-size: var(--fs-xs); font-weight: 600; white-space: nowrap;
}
.chip:hover { border-color: var(--accent); }
.chip[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
#mixer:has(.mix-dyn) .mix-row { grid-template-columns: minmax(0, 1fr) auto 62px 2.1em; }
.mix-dyn { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; font-size: var(--fs-m); color: var(--pc, var(--accent)); text-align: center; }
.mix-name em { font-style: normal; font-weight: 400; color: var(--muted); font-size: var(--fs-xs); }
input[type=range] { width: 100%; accent-color: var(--pc, var(--accent)); min-width: 0; }
body:not(.no-glow) .n.on { opacity: 1 !important; color: var(--pc); }
body:not(.no-glow) .n.on .halo { opacity: .2; }
body:not(.no-syllable) .n.on .lyric { font-weight: 700; }
.no-cursor #score .playhead { display: none; }
/* undo, redo and save beside "Noten bearbeiten" */
.ed-actions { display: inline-flex; gap: 4px; margin-right: 4px; }
.ed-actions[hidden] { display: none; }
.icon-btn {
  width: 34px; height: 34px; padding: 0; display: grid; place-items: center; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text);
}
.icon-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.icon-btn:disabled { opacity: .35; cursor: default; }
.icon-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn.save.dirty { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
/* Not of the site, which leaves the ink of before the deeper teal here: dark on it, 3.38 to 1 (bug 90 of ORIGINAL_BUGS.md). */
.icon-btn.save.dirty:hover { color: var(--fill-ink); filter: brightness(1.08); }
.icon-btn.toggle[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
.icon-btn text { fill: currentColor; stroke: none; font-size: 12.5px; font-weight: 800; font-family: inherit; letter-spacing: .3px; }
/* The switches of the bar stand together in one frame instead of each in its own: one shape
   beside the round buttons that play, not a row of unlike ones. */
.t-icons { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.t-icons .icon-btn { width: 34px; height: 34px; border-radius: 50%; border-color: transparent; background: transparent; }
.t-icons .icon-btn:hover:not(:disabled) { border-color: transparent; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.t-icons .icon-btn.toggle[aria-pressed="true"] { background: var(--fill); color: var(--fill-ink); }
/* while the bars of the loop are to be tapped, its button breathes */
.icon-btn.picking { animation: picking 1.4s ease-in-out infinite; }
@keyframes picking { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 30%, transparent); } }
/* the editor's notes are shown as toasts; the line under the tools keeps only its link */
#edStatus { display: none; }
.editor .status:not(:has(> button:not([hidden]))) { display: none; }
.rtr { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; opacity: .6; pointer-events: none; }
/* a take becoming a voice: bar after bar, each with its grid, notation, note table and text */
dialog.draft { width: min(97vw, 1320px); }
.d-form { display: grid; gap: 8px; min-width: 0; }
.d-top { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 20px; }
.d-field { display: grid; grid-template-rows: auto var(--tap); gap: var(--sp-1); margin: 0; }
.d-field .field-label { margin: 0; }
.d-field[hidden], .d-play .check[hidden] { display: none; }
.d-field input[type="text"], .d-field select { height: var(--tap); box-sizing: border-box; padding: 0 var(--sp-3); margin: 0; }
.d-field .seg { height: var(--tap); box-sizing: border-box; flex-wrap: nowrap; }
.d-field .seg button { min-height: 0; white-space: nowrap; }
.d-play { display: flex; align-items: center; gap: var(--sp-3); height: var(--tap); }
.d-play .round.play { width: 38px; height: 38px; }
.d-play .round.play svg { width: 16px; height: 16px; }
.d-play .check { display: flex; align-items: center; gap: 5px; font-size: var(--fs-s); margin: 0; }
.d-bars { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.d-wide { display: grid; grid-template-columns: 30px auto; width: max-content; }
.d-staffbox { grid-column: 2; grid-row: 1; }
.d-notes { min-height: 96px; padding-top: 4px; }
.d-notes .n { cursor: text; }
.d-keys { grid-column: 1; grid-row: 2; align-self: end; position: sticky; left: 0; z-index: 2; background: var(--surface); border-right: 1px solid var(--line); }
.d-keys svg { display: block; }
.d-cols { grid-column: 2; grid-row: 2; display: flex; cursor: grab; }
.d-bars.panning, .d-bars.panning .d-cols { cursor: grabbing; user-select: none; }
.d-bar { flex: none; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr); align-content: end; min-width: 0; overflow: hidden; }
.d-bar.edited .d-head { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.d-bar.around .d-roll { opacity: .78; }
.d-bar.around .d-head { background: color-mix(in srgb, var(--ink) 5%, transparent); }
.d-bar.around.edited .d-head { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.d-switch { height: 38px; margin: 0; font-size: var(--fs-s); }
.d-bar.active .d-head { box-shadow: inset 0 -2px var(--accent); }
.d-head { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 30px; border-left: 1px solid var(--line); }
.d-head .seg { flex-wrap: nowrap; min-height: 0; border-radius: 8px; }
.d-head .seg button { min-height: 0; padding: 2px 7px; font-size: var(--fs-xs); }
/* A recorded bar is taken over when its button says so. One that is not keeps what the voice
   has; what was heard in it is still shown, pale, so that the bars one wants can be found. */
.d-use { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 7px; height: 24px; padding: 0 8px; font-size: var(--fs-xs); font-weight: 700; line-height: 1; flex: none; white-space: nowrap; }
.d-use[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
.d-bar.skipped .d-head { background: repeating-linear-gradient(135deg, transparent 0 6px, color-mix(in srgb, var(--ink) 6%, transparent) 6px 12px); }
.d-bar.around.skipped .d-roll { opacity: 1; }
.rgh { fill: color-mix(in srgb, var(--accent) 16%, transparent); stroke: color-mix(in srgb, var(--accent) 60%, transparent); stroke-width: 1; stroke-dasharray: 4 3; pointer-events: none; }
/* in the notes above: what is new, what takes the place of notes that are there, what stays */
.d-staffbox { position: relative; }
.d-bands { position: absolute; inset: 0; pointer-events: none; }
.d-bands i { position: absolute; top: 0; bottom: 0; }
.d-bands .new, .d-key .new { background: color-mix(in srgb, #3f9c5a 22%, transparent); }
.d-bands .replace, .d-key .replace { background: color-mix(in srgb, #d9822b 28%, transparent); }
.d-bands .changed { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.d-notes { position: relative; }
.d-key { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-s); height: 38px; white-space: nowrap; }
.d-key i { display: inline-block; width: 18px; height: 18px; border-radius: 4px; border: 1px solid var(--line); margin-left: 8px; }
.d-key i:first-child { margin-left: 0; }
.d-again { border: 1px solid var(--line); background: var(--surface); color: var(--accent); border-radius: 50%; width: 24px; height: 24px; padding: 0; font-weight: 700; line-height: 1; flex: none; }
.d-rollbox { position: relative; }
.d-roll { touch-action: none; user-select: none; -webkit-user-select: none; overflow: hidden; background: var(--surface); }
.d-roll svg { display: block; }
.d-line { position: absolute; left: 0; top: 20px; bottom: 0; width: 2px; background: #d2452f; pointer-events: none; }
.place-open { margin-top: 10px; }
.place-field { position: relative; width: 100%; aspect-ratio: 1; margin: 12px 0; border: 1px solid var(--line); border-radius: 14px; touch-action: none; user-select: none;
  background: radial-gradient(circle at 50% 50%, transparent 0 16.4%, var(--line) 16.5% 16.9%, transparent 17% 33%, var(--line) 33.1% 33.5%, transparent 33.6% 49.6%, var(--line) 49.7% 50.1%, transparent 50.2%), var(--bg); }
.place-me { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 3px 9px; border-radius: 999px; background: var(--text); color: var(--surface); font-size: var(--fs-xs); font-weight: 700; pointer-events: none; }
.place-dot { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; padding: 0; border: 2px solid var(--surface); border-radius: 50%; background: var(--pc, var(--muted)); color: #fff; font-size: var(--fs-xs); font-weight: 700; cursor: grab; touch-action: none; box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.place-dot.comp { background: var(--muted); }
.place-dot.take { width: 24px; height: 24px; font-size: var(--fs-xs); border-width: 1.5px; }
#placeSoloHint { margin: 0; min-height: 1.2em; font-size: var(--fs-xs); }
.place-dot.middle { opacity: .55; }
.place-dot:active { cursor: grabbing; }
.hear-field { cursor: grab; }
.hear-field.asking { cursor: crosshair; }
.hear-dot { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; display: grid; place-items: center; font-size: var(--fs-xs); font-weight: 700; font-style: normal; pointer-events: none; }
.hear-dot.was { border: 2px solid var(--accent); color: var(--accent); background: var(--surface); }
.hear-dot.heard { background: var(--fill); color: var(--fill-ink); }
.hear-dot.tour { width: 26px; height: 26px; background: #2e9d57; border: 3px solid var(--surface); box-shadow: 0 0 0 2px #2e9d57; }
.mix-row.comp { --pc: var(--muted); }
.mix-opts { display: flex; gap: 6px; padding: 0 0 8px 17px; }
.mix-opts select { flex: 1; min-width: 0; font-size: var(--fs-xs); padding: 4px 6px; }
.menu-wrap { position: relative; }
.preset-btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; }
.preset-icon { display: inline-grid; }
.preset-btn svg, .menu-item svg { width: 22px; height: 22px; flex: none; }
.preset-btn .caret { font-size: var(--fs-xs); color: var(--muted); }
.menu {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 20; min-width: 15em; padding: 6px; display: grid; gap: 2px;
  background: var(--raised); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .28);
}
.menu[hidden] { display: none; }
.menu-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: none; text-align: left; font-weight: 600; font-size: var(--fs-s); color: var(--text); }
.menu-item:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.menu-item[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); }
.menu-item small { display: block; font-weight: 400; font-size: var(--fs-xs); color: var(--muted); }
/* ---------- editor ---------- */
/* it stands on the bar with the play controls, which stays in reach while the notes are corrected */
.editor {
  position: sticky; bottom: var(--play-h, 0px); z-index: 11; border-top: 2px solid var(--accent);
  background: var(--raised); box-shadow: 0 -10px 30px rgba(0, 0, 0, .2);
}
/* The panel never takes the whole screen: what is in it scrolls, and its first row, with the way
   out of it, stays in sight. */
.editor { max-height: calc(76dvh - var(--play-h, 0px)); overflow-y: auto; overscroll-behavior: contain; }
.e-in { max-width: 1240px; margin: 0 auto; padding: 0 16px 12px; display: grid; gap: 8px; }
.e-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; position: sticky; top: 0; z-index: 4; padding: 10px 0 6px; background: var(--raised); }
.e-head .done { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); font-weight: 700; }
.e-head #edSave2.dirty { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.e-head b { min-width: 9.5em; text-align: center; }
.e-head .primary { padding: 8px 14px; }
.round.small { width: 34px; height: 34px; font-size: var(--fs-l); line-height: 1; }
#edScore { overflow-x: auto; min-height: 150px; }
#edScore svg { display: block; }
#edScore .n { cursor: pointer; }
.e-tools .chip:disabled, .e-head .chip:disabled { opacity: .4; cursor: default; }
/* The tools: two columns of rows, each a short label and its controls, all of one height. */
.e-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 36px; padding-top: 8px; border-top: 1px solid var(--line); }
/* the tools for a note need no labels: one row of buttons that wraps */
.e-tools.e-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.e-row { display: grid; grid-template-columns: 6.2em minmax(0, 1fr); align-items: center; gap: 10px; min-height: 36px; }
.e-label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.e-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.e-hint { font-size: var(--fs-xs); color: var(--muted); }
.e-slash { color: var(--muted); }
.editor { --tap: 36px; }
.e-tools .chip, .e-tools input, .e-tools select, .e-tabs .chip {
  box-sizing: border-box; height: var(--tap); margin: 0; padding: 0 var(--sp-3); border-radius: 9px; font-size: var(--fs-s); line-height: 1; white-space: nowrap;
}
.e-tools input, .e-tools select { border: 1px solid var(--line); background: var(--surface); color: var(--text); font-family: inherit; }
.e-tools input:focus, .e-tools select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; }
.e-tools input[type=number] { width: 4.6em; padding-right: 4px; }
.e-tools input[type=text] { flex: 1 1 9em; min-width: 8em; max-width: 15em; }
.e-tools input[type=text].wide { max-width: 26em; }
.e-tools select { flex: 1 1 auto; min-width: 0; max-width: 21em; padding-right: 6px; }
.e-tools select.narrow { flex: none; width: 5.6em; }
.e-tools .chip.icon { width: var(--tap); padding: 0; font-size: var(--fs-l); }
.e-tools .chip.dyn { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-weight: 700; min-width: 40px; padding: 0 9px; }
/* buttons that belong together sit edge to edge */
.editor .seg { display: inline-flex; gap: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.editor .seg > .chip { border: 1px solid var(--line); border-radius: 0; margin-left: -1px; background: var(--surface); color: var(--text); font-weight: 500; }
.editor .seg > .chip:first-child { border-radius: 9px 0 0 9px; margin-left: 0; }
.editor .seg > .chip:last-child { border-radius: 0 9px 9px 0; }
.editor .seg > .chip:only-child { border-radius: 9px; }
.editor .seg > .chip[aria-pressed="true"], .editor .seg > .chip:hover { position: relative; z-index: 1; }
.editor .seg > .chip:hover { border-color: var(--accent); }
.editor .seg > .chip[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
/* the text field that lies over a syllable while the words are typed */
.lyric-box { position: relative; }
input.lyric-edit {
  position: absolute; z-index: 3; transform: translate(-50%, -76%); box-sizing: content-box;
  padding: 1px 3px; border: 1.5px solid var(--accent); border-radius: 5px; background: var(--surface);
  color: var(--ink); font-family: inherit; line-height: 1.2; text-align: center;
}
.editing .lyric { cursor: text; }
/* the cross beside a selected dynamic, hairpin or breath mark */
.mark-x {
  position: absolute; z-index: 3; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: #b3261e; color: #fff; font-size: var(--fs-m); line-height: 1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); cursor: pointer;
}
.mark-x:hover { background: #8c1d18; }
.e-tools .chip.danger { color: var(--danger); border-color: currentColor; }
/* the note table */
.e-roll { display: grid; gap: 6px; }
.e-rollbar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.e-rollbar .field-label { margin: 0; }
.e-rollbar .chip { padding: 7px 11px; }
.roll-hint { color: var(--muted); font-size: var(--fs-xs); }
.rtr { fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; opacity: .6; pointer-events: none; }
.editor.rolling .e-tools { display: none; }
.editor.rolling #edScore { min-height: 0; }
#edRoll { touch-action: none; user-select: none; -webkit-user-select: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
#edRoll svg { display: block; }
.rk { fill: var(--surface); }
.rk.b { fill: color-mix(in srgb, var(--ink) 7%, var(--surface)); }
.rl { stroke: color-mix(in srgb, var(--ink) 9%, transparent); stroke-width: 1; }
.rl.quarter { stroke: color-mix(in srgb, var(--ink) 20%, transparent); }
.rl.beat, .rl.c { stroke: color-mix(in srgb, var(--ink) 38%, transparent); }
.rt { fill: var(--muted); font-size: 10px; pointer-events: none; }
.rt.c { fill: var(--ink); font-weight: 700; }
.rn { fill: var(--accent); opacity: .78; cursor: grab; }
.rg.sel .rn { opacity: 1; stroke: var(--ink); stroke-width: 1.5; }
.rh { fill: #fff; opacity: .4; cursor: ew-resize; }
.rb-strip { fill: var(--surface); }
.rb { cursor: pointer; }
.rb rect { fill: color-mix(in srgb, var(--ink) 6%, var(--surface)); }
.rb text { fill: var(--muted); font-size: 11px; font-weight: 700; }
.rb.on rect { fill: var(--accent); }
.rb.on text { fill: #fff; }
.n.sel .halo { opacity: .28; fill: var(--accent); }
.n.sel .selhead { fill: var(--accent); }
/* first note of an arc that is being drawn */
.n.mark .halo { opacity: .9; fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 3; }
.editing .n { cursor: pointer; }
.editor .status { min-height: 1.2em; margin: 0; }
@media (max-width: 560px) {
  .e-in { padding: 0 10px 10px; }
  .e-head b { min-width: max-content; flex: 0 0 auto; white-space: nowrap; text-align: left; }
  .e-head { gap: 6px; }
  .e-head .chip, .e-head .ghost, .e-head .primary { padding: 7px 9px; font-size: var(--fs-s); }
  .roll-hint { display: none; }
  .e-tools { grid-template-columns: minmax(0, 1fr); }
  .e-tools.e-flow { gap: 6px; }
  .e-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .e-hint { display: none; }
}
input.chord-in { width: 9.5em; }

.transport {
  position: sticky; bottom: 0; z-index: 12; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
}
.t-in { max-width: 1240px; margin: 0 auto; padding: 10px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.t-main { display: flex; align-items: center; gap: 10px; }
.round { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; padding: 0; }
.round svg { width: 18px; height: 18px; fill: currentColor; }
.round.play { width: 52px; height: 52px; background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
.round.play svg { width: 22px; height: 22px; }
.pos { font-variant-numeric: tabular-nums; min-width: 84px; line-height: 1.15; }
.pos b { font-size: var(--fs-xl); }
.pos span { color: var(--muted); }
.pos small { display: block; color: var(--muted); font-size: var(--fs-xs); }
.t-tempo { flex: 1 1 200px; min-width: 180px; max-width: 320px; }
.t-tempo .row { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-xs); color: var(--muted); }
.t-tempo output { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.transport { --t-row: 52px; --t-btn: 40px; }          /* the height of "play", and of the other buttons */
.t-more, .t-break { display: none; }
.t-gap { flex: 1 1 0; }
.t-edit, .t-print, .t-full { flex: none; width: 40px; height: 40px; border-radius: 50%; }
.t-edit[hidden], .t-print[hidden] { display: none; }
.t-step { flex: none; width: 34px; height: 34px; padding: 0; border-radius: 50%; border-color: transparent; background: transparent; font-size: var(--fs-xl); line-height: 1; display: grid; place-items: center; }
.t-step:disabled { opacity: .3; }
.t-main .pos { min-width: 70px; text-align: center; }
/* what a tap in the notes does: three in a row, the one that holds filled */
.t-tools { display: inline-flex; flex: none; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.t-tools button { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 9px; border: 0; border-radius: 999px; background: transparent; color: var(--text); font-weight: 600; font-size: var(--fs-s); touch-action: manipulation; }
.t-tools button:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.t-tools button svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.t-tools button[aria-pressed="true"] { background: var(--fill); color: var(--fill-ink); }
.t-full { display: grid; place-items: center; padding: 0; }
.t-full svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.t-full .shrink, .t-full[aria-pressed="true"] .grow { display: none; }
.t-full[aria-pressed="true"] .shrink { display: inline; }
.t-full[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
/* Not of that site: the button that records is switched off while the notes are corrected. */
.round:disabled { opacity: .35; cursor: default; }
.t-side { align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; flex: none; border-radius: 50%; }
.t-side:hover { border-color: var(--accent); color: var(--accent); }
/* everything in the bar that is not "play" has one height and one frame */
.transport .round:not(.play), .t-edit, .t-print, .t-more, .t-full { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); }
.t-edit + *, .t-side { margin-left: 0; }
.t-side svg { width: 20px; height: 20px; fill: var(--surface); stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
/* The bar holds what is needed at every moment, and as much more as there is room for:
     always         back to the start, play, record, the bar, the voices, printing, the full screen
     from 431 px    the pencil (on a phone it is among what opens with "…")
     from 561 px    what a tap does («Zeigen», «Stift», «Notiz»; on a phone among what opens with "…",
                    and the one that is chosen, where it is not «Zeigen», in the row)
     from 720 px    a bar back and on
     from 1000 px   metronome, counting in, loop, the tones, and the tempo: everything, and no button for more
     from 1280 px   the names of what a tap does beside their signs
   What has no room opens as a second row with the button "…". What is heard of the choir, and
   the room it sounds in, are chosen among the voices. */
/* the button for the voices is in the bar at every width; the one that floated is no longer needed */
.fab { display: none !important; }
.t-side { display: inline-flex; }
/* where the voices stand beside the notes, they need no button */
@media (min-width: 1000px) {
  #app:not(:has(#practice.side-off)):not(:has(#practice.editing-on)) .t-side { display: none; }
}
/* Below that width the bar is one row of buttons, all centred on one line, and a second row
   that "…" opens: the switches on the left, the tempo beside them (below them on a phone). */
@media (max-width: 999px) {
  .t-in { flex-wrap: wrap; align-items: center; gap: 10px; }
  .t-main { display: contents; }
  .t-gap { display: none; }
  .t-main .pos, .t-icons, .t-main .t-step, .t-main .t-tools { order: 1; }
  .t-more { display: grid; order: 2; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; font-size: var(--fs-xl); line-height: 1; }
  .t-side, .t-print, .t-edit, .t-full { order: 3; }
  .t-break { order: 4; flex-basis: 100%; height: 0; margin: -5px 0; }
  .t-tempo { order: 6; display: none; }
  .transport.more .t-break { display: block; }
  .transport.more .t-tempo { display: block; flex: 1 1 240px; max-width: none; }
}
.t-edit2 { display: none; }
@media (max-width: 999px) {
  .t-icons { order: 5; display: none; }
  .transport.more .t-icons { display: inline-flex; }
}
@media (max-width: 719px) {
  .t-step { display: none; }
}
@media (max-width: 1279px) {
  .t-tools button { padding: 0 8px; }
  .t-tools button span { display: none; }
}
/* Everything in one row: the bar is never wider than 1240 px. The tempo takes the room that is left, up to its
   widest, and only then the gap; where its line still has no room, the word «Tempo» goes first, then the way back
   to the tempo of the piece is named shorter. */
.t-short { display: none; }
@media (min-width: 1000px) {
  .t-in { gap: 8px 10px; }
  .t-tempo { flex: 100 1 100px; min-width: 100px; container-type: inline-size; }
  @container (max-width: 239px) { .t-word { display: none; } }
  @container (max-width: 199px) { .t-long { display: none; } .t-short { display: inline; } }
}
@media (max-width: 560px) {
  .t-main .t-tools { order: 5; display: none; }
  .transport.more .t-tools { display: inline-flex; }
  .transport.more .t-tools button { padding: 0 12px 0 9px; }
  .transport.more .t-tools button span { display: inline; }
  /* a tool that is chosen stands in the row, and is put down there */
  .transport:not(.more) .t-tools:not([data-tap="look"]) { display: inline-flex; order: 1; padding: 0; border: 0; background: none; }
  .transport:not(.more) .t-tools:not([data-tap="look"]) button:not([aria-pressed="true"]) { display: none; }
  .transport:not(.more) .t-tools button[aria-pressed="true"] { width: 38px; height: 38px; padding: 0; justify-content: center; }
}
@media (max-width: 720px) {
  .transport { --t-btn: 38px; }
  .t-in { padding: 7px 10px; gap: 8px; }
  .transport .round:not(.play), .t-edit, .t-print, .t-more, .t-side, .t-full { width: 38px; height: 38px; }
  .t-main .pos { min-width: 58px; }
  .preset-btn { padding: 0 9px; gap: 5px; }
}
@media (max-width: 560px) {
  .transport { --t-row: 46px; }
  .round.play { width: 46px; height: 46px; }
}
/* and the notes go from edge to edge: no frame around them takes width away */
@media (max-width: 720px) {
  #practice { padding: 14px 0 60px; }
  #practice .p-head { padding: 0 14px; margin-bottom: 10px; }
  #practice .p-head h1 { font-size: var(--fs-l); }
  .score-card { border-left: 0; border-right: 0; border-radius: 0; padding: 8px 2px 4px; box-shadow: none; }
  .score-tools { padding: 0 10px 6px; }
}
@media (max-width: 380px) {
  .transport .t-in { gap: 4px; }
}
@media (max-width: 430px) {
  #presetLabel { display: none; }
  .t-in { gap: 6px; }
  .t-main .pos { min-width: 54px; }
  .round, .transport .round:not(.play), .t-more, .t-edit, .t-print, .t-side, .t-full { width: 36px; height: 36px; }
  /* where a tool that is chosen stands in the row, printing gives way to it */
  .transport:has(.t-tools:not([data-tap="look"])) .t-print { display: none; }
  .round.play { width: 44px; height: 44px; }
  .t-main .pos { min-width: 54px; }
  .transport { --t-row: 44px; --t-btn: 36px; }
  /* no room for the pencil in the first row: it is the last of what "…" opens */
  .t-edit { display: none; }
  .t-icons .t-edit2 { display: grid; }
  .t-icons .t-edit2[hidden] { display: none; }
}
/* between a phone and a tablet the name of the button for the voices gives way first */

/* the bar at the top keeps to the width of a phone */
@media (max-width: 520px) {
  .bar-in { gap: 6px; padding: 8px 10px; }
  .bar .ghost { padding: 7px 9px; font-size: var(--fs-xs); }
  .bar .badge { display: none; }
  #meBtn { max-width: 36vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.toast.error { background: #b3261e; color: #fff; }
.toast {
  position: fixed; left: 50%; bottom: calc(var(--transport-h, 90px) + 16px); transform: translateX(-50%); z-index: 60; background: var(--text); color: var(--bg);
  padding: 9px 16px; border-radius: 999px; font-size: var(--fs-s); opacity: 0; pointer-events: none; transition: opacity .2s; max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; }
.venue-btn { padding: 0 9px; gap: 4px; }
svg .me { fill: var(--accent); }
svg .dim { fill: var(--accent); opacity: .35; }
svg .off { fill: none; stroke: var(--muted); stroke-width: 1.7; stroke-linecap: round; }
dialog.place { width: min(94vw, 440px); }
dialog.place h2 { margin-top: 0; }

/* No page margin: browsers print their header and footer into it. The sheets bring their own. */
@page { size: A4; margin: 0; }
@page land { size: A4 landscape; margin: 0; }
/* A sheet is the same thing in the preview and on paper: its size and margins are in millimetres
   (set on the element), and it brings the colours of paper, whatever the theme of the screen is. */
.print-sheet {
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  flex: none;
  background: #ffffff;
  color: #000000;
  --ink: #111111;
  --staff: #5c625e;
  --text: #000000;
  --muted: #444444;
  --accent: #1b6670;
  --surface: #ffffff;
  --band: .12;
  --c0: #c0563a;
  --c1: #a8527c;
  --c2: #b07d14;
  --c3: #3e8f5e;
  --c4: #2b62a8;
  --c5: #168388;
}
.print-sheet.bw {
  --accent: #000000;
  --c0: #000000;
  --c1: #000000;
  --c2: #000000;
  --c3: #000000;
  --c4: #000000;
  --c5: #000000;
}
.print-sheet.land { page: land; }
.print-head { overflow: hidden; }
.print-head h1 { font-size: 20pt; line-height: 1.2; margin: 0 0 2pt; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #000; }
.print-head p { font-size: 11pt; line-height: 1.3; margin: 0 0 8pt; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.print-foot { position: absolute; left: 0; right: 0; text-align: center; font-size: 8pt; line-height: 1.2; color: #444; }
.print-page { display: block; width: 100%; height: auto; }
.print-page .hit, .print-page .playhead, .print-page .halo { display: none; }
.print-page .mine-band { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
/* the window: what is chosen on the left, the sheets on the right */
dialog.print { width: min(96vw, 1080px); height: min(94dvh, 900px); padding: 18px; box-sizing: border-box; }
dialog.print[open] { display: flex; flex-direction: column; gap: 12px; }
.pr-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 18px; }
.pr-opts { overflow-y: auto; display: grid; align-content: start; gap: 11px; padding-right: 4px; }
.pr-opts h2 { margin: 0; }
.pr-opts .switch { margin: 0; }
.pr-opts [hidden] { display: none; }
.pr-none { display: block; margin-top: 4px; font-size: var(--fs-xs); }
.pr-opts .seg button:disabled { opacity: .45; }
.pr-voices { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-size { display: flex; align-items: center; gap: 10px; }
.pr-size input { flex: 1; min-width: 0; }
.pr-size output { width: 3.4em; text-align: right; font-variant-numeric: tabular-nums; font-size: var(--fs-s); }
.pr-view { min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.pr-pages { flex: 1; min-height: 0; overflow: auto; scrollbar-gutter: stable; display: grid; justify-items: center; align-content: start; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: color-mix(in srgb, var(--ink) 14%, var(--bg)); }
.pr-pages .print-sheet { box-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.pr-count { margin: 0; font-size: var(--fs-xs); }
.pr-hint { font-size: var(--fs-xs); flex: 1 1 260px; }
dialog.print .row-actions { margin: 0; }
dialog.print .row-actions .spacer { flex: 0; }
@media (max-width: 760px) {
  dialog.print { width: 100vw; max-width: none; height: 100dvh; max-height: none; margin: 0; border: 0; border-radius: 0; padding: 12px; }
  .pr-body { display: block; overflow-y: auto; }
  .pr-opts { overflow: visible; margin-bottom: 14px; padding: 0; }
  .pr-pages { height: 62dvh; flex: none; }
}
@media print {
  /* a piece that is for the site only gives the printer an empty page */
  body.print-off > * { display: none !important; }
  body > *:not(#printArea) { display: none !important; }
  html, body { background: #fff; margin: 0; padding: 0; }
  #printArea { display: block; color: #000; }
  .print-sheet { break-after: page; break-inside: avoid; }
  .print-sheet:last-child { break-after: auto; }
}

/* ---------- Canti and the tutorials ---------- */
.canti { display: inline-block; width: 120px; aspect-ratio: 760 / 560; flex: none; }
.canti svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* Canti is never quite still: it floats and sways, its scroll nods, the curl at its end wags, the
   pegs twitch, the eyes blink and wander. Each mood moves in its own way. */
.canti .c-lean { transform-box: fill-box; transform-origin: 50% 85%; transform: rotate(var(--lean, 0deg)); transition: transform .55s cubic-bezier(.3, 1.7, .5, 1); }
.canti .c-body { animation: canti-bob 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 100%; }
.canti .c-shade { animation: canti-shade 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.canti .c-scroll { animation: canti-scroll 2.7s ease-in-out infinite; transform-box: fill-box; transform-origin: 8% 100%; }
.canti .c-curl { animation: canti-curl 1.7s ease-in-out infinite; transform-box: fill-box; transform-origin: 25% 5%; }
.canti .c-pegs { animation: canti-pegs 5.2s ease-in-out infinite; transform-box: fill-box; transform-origin: 0% 50%; }
.canti .c-note { animation: canti-note 3.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.canti .c-note.n2 { animation-duration: 4s; animation-direction: reverse; }
.canti .c-note.n3 { animation-duration: 4.4s; animation-delay: -1.2s; }
.canti .c-note.n4 { animation-duration: 2.9s; animation-direction: reverse; animation-delay: -.6s; }
.canti .c-look { transform: translate(var(--look-x, 0px), var(--look-y, 0px)); transition: transform .18s ease-out; }
.canti .c-eyes.open { animation: canti-blink 6.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.canti .c-glint { animation: canti-glint 3.1s ease-in-out infinite; }
.canti .c-brows { transform: translate(calc(var(--look-x, 0px) * .35), calc(var(--look-y, 0px) * .5)); transition: transform .25s; }
.canti .c-brow, .canti .c-mouth { transform-box: fill-box; transform-origin: center; transition: transform .25s; }
.canti .c-burst { opacity: 0; transform-box: fill-box; transform-origin: center; }
/* one face at a time: the eyes and the mouth that go with the mood */
.canti .c-eyes.glad, .canti .c-eyes.wink, .canti .c-mouth { display: none; }
.canti.mood-guiding .c-mouth.smile, .canti.mood-happy .c-mouth.wide, .canti.mood-cheering .c-mouth.wide,
.canti.mood-curious .c-mouth.oh, .canti.mood-thinking .c-mouth.hm, .canti.mood-cheeky .c-mouth.smirk { display: inline; }
.canti.mood-happy .c-eyes.open, .canti.mood-cheering .c-eyes.open, .canti.mood-cheeky .c-eyes.open { display: none; }
.canti.mood-happy .c-eyes.glad, .canti.mood-cheering .c-eyes.glad, .canti.mood-cheeky .c-eyes.wink { display: inline; }
.canti.mood-curious .c-brow { transform: translateY(-9px); }
.canti.mood-curious .c-lean { transform: rotate(calc(var(--lean, 0deg) + 5deg)); }
.canti.mood-curious .c-mouth.oh { animation: canti-oh 1.6s ease-in-out infinite; }
.canti.mood-thinking .c-brow.left { transform: translateY(-10px) rotate(-8deg); }
.canti.mood-thinking .c-brow.right { transform: translateY(4px) rotate(6deg); }
.canti.mood-thinking .c-look { transform: translate(-7px, -9px); }
.canti.mood-thinking .c-body { animation-duration: 4.6s; }
.canti.mood-thinking .c-lean { transform: rotate(calc(var(--lean, 0deg) - 4deg)); }
.canti.mood-cheeky .c-brow.left { transform: translateY(-11px) rotate(-10deg); }
.canti.mood-cheeky .c-body { animation: canti-shimmy 2.4s ease-in-out infinite; }
.canti.mood-cheeky .c-eyes.wink { animation: canti-wink 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.canti.mood-happy .c-body { animation: canti-sway 1.5s ease-in-out infinite; }
.canti.mood-happy .c-note, .canti.mood-cheering .c-note { animation-duration: 1.3s; }
.canti.mood-cheering .c-body { animation: canti-hop .62s cubic-bezier(.3, 0, .4, 1) infinite; }
.canti.mood-cheering .c-shade { animation: canti-hop-shade .62s cubic-bezier(.3, 0, .4, 1) infinite; }
.canti.mood-cheering .c-scroll { animation-duration: .62s; }
.canti.mood-cheering .c-curl { animation-duration: .4s; }
.canti.mood-cheering .c-burst { animation: canti-burst 1.24s ease-out infinite; }
.canti.talking .c-mouth { animation: canti-talk .24s ease-in-out 7; }
.canti.talking .c-face { animation: canti-nod .48s ease-in-out 3; }
.canti.pop svg { animation: canti-pop .5s cubic-bezier(.2, 1.6, .4, 1); transform-origin: 50% 90%; }
.tour-box.moving .canti .c-lean { transform: rotate(calc(var(--lean, 0deg) + var(--fly, 8deg))); transition-duration: .2s; }
.tour-box.moving .canti .c-curl { animation-duration: .3s; }
/* the fan: to the beat of the music, bigger the better it goes */
.canti.groove .c-body, .canti.groove.mood-happy .c-body, .canti.groove.mood-cheering .c-body, .canti.groove.mood-curious .c-body, .canti.groove.mood-cheeky .c-body { animation: canti-groove calc(var(--beat, .6s) * 2) cubic-bezier(.3, 0, .5, 1) infinite; }
.canti.groove .c-shade { animation: canti-groove-shade var(--beat, .6s) ease-in-out infinite; }
.canti.groove .c-scroll { animation-duration: var(--beat, .6s); }
.canti.groove .c-curl { animation-duration: calc(var(--beat, .6s) / 2); }
.canti.groove .c-note { animation-duration: calc(var(--beat, .6s) * 2); }
.canti.groove { --amp: 1; }
.canti.groove.fan-hit { --amp: 1.9; }
.canti.groove.fan-wow { --amp: 2.8; }
.canti.fan-hit .c-note { animation-duration: var(--beat, .6s); }
.canti.fan-wow .c-burst { animation: canti-burst var(--beat, .6s) ease-out infinite; }
.canti.fan-wow svg { animation: canti-swell .5s ease-out forwards; transform-origin: 50% 90%; }
.canti.fan-wow .c-face > g:first-child { opacity: .75; }
@keyframes canti-groove {
  0%, 50%, 100% { transform: translateY(0) rotate(0) scale(1.04, .95); }
  25% { transform: translateY(calc(var(--amp, 1) * -11px)) rotate(calc(var(--amp, 1) * -2.2deg)) scale(.98, 1.04); }
  75% { transform: translateY(calc(var(--amp, 1) * -11px)) rotate(calc(var(--amp, 1) * 2.2deg)) scale(.98, 1.04); }
}
@keyframes canti-groove-shade { 0%, 100% { transform: scaleX(1.04); opacity: .2; } 50% { transform: scaleX(.86); opacity: .09; } }
@keyframes canti-swell { to { transform: scale(1.12); } }
@keyframes canti-bob { 0%, 100% { transform: translateY(0) rotate(-1.4deg); } 50% { transform: translateY(-14px) rotate(1.4deg) scale(1.01, 1.02); } }
@keyframes canti-sway { 0%, 100% { transform: translate(-7px, -4px) rotate(-4deg); } 50% { transform: translate(7px, -10px) rotate(4deg); } }
@keyframes canti-shimmy { 0%, 55%, 100% { transform: translateY(0) rotate(0); } 62% { transform: translateY(-8px) rotate(-5deg); } 70% { transform: translateY(-4px) rotate(5deg); } 78% { transform: translateY(-8px) rotate(-4deg); } 86% { transform: translateY(-2px) rotate(3deg); } 25% { transform: translateY(-11px) rotate(1deg); } }
@keyframes canti-hop { 0%, 100% { transform: translateY(0) scale(1.06, .9); } 35% { transform: translateY(-34px) scale(.95, 1.08) rotate(-3deg); } 60% { transform: translateY(-30px) scale(.97, 1.05) rotate(3deg); } 88% { transform: translateY(0) scale(1.04, .93); } }
@keyframes canti-hop-shade { 0%, 100% { transform: scaleX(1.05); opacity: .2; } 45% { transform: scaleX(.7); opacity: .07; } }
@keyframes canti-shade { 0%, 100% { transform: scaleX(1); opacity: .16; } 50% { transform: scaleX(.9); opacity: .1; } }
@keyframes canti-scroll { 0%, 100% { transform: rotate(-2.5deg); } 50% { transform: rotate(3deg); } }
@keyframes canti-curl { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(8deg); } }
@keyframes canti-pegs { 0%, 82%, 100% { transform: rotate(0); } 86% { transform: rotate(-7deg); } 90% { transform: rotate(6deg); } 94% { transform: rotate(-3deg); } }
@keyframes canti-note { 0%, 100% { transform: translate(0, 0) rotate(-6deg); opacity: .85; } 50% { transform: translate(4px, -17px) rotate(9deg); opacity: 1; } }
@keyframes canti-blink { 0%, 40%, 44%, 48%, 52%, 100% { transform: scaleY(1); } 42%, 50% { transform: scaleY(.08); } }
@keyframes canti-wink { 0%, 60%, 100% { transform: scaleY(1); } 70% { transform: scaleY(.85) translateY(2px); } }
@keyframes canti-glint { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(1.5px, 1px); } }
@keyframes canti-oh { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18, 1.25); } }
@keyframes canti-talk { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.9, .5); } 65% { transform: scale(1.08, 1.15); } }
@keyframes canti-nod { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes canti-pop { 0% { transform: scale(.55) rotate(-10deg); } 70% { transform: scale(1.08) rotate(3deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes canti-burst { 0% { opacity: 0; transform: scale(.3) rotate(0); } 25% { opacity: 1; } 100% { opacity: 0; transform: scale(1.5) rotate(40deg); } }
@media (prefers-reduced-motion: reduce) { .canti *, .canti svg { animation: none !important; } }

.tour { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: none; overflow: visible; pointer-events: none; z-index: 60; color: var(--text); }
.tour[hidden] { display: none; }
.tour-ring { position: fixed; border-radius: 14px; pointer-events: none; box-shadow: 0 0 0 3px var(--gold), 0 0 0 9px color-mix(in srgb, var(--gold) 35%, transparent), 0 0 0 200vmax rgba(8, 30, 34, .34); transition: left .25s, top .25s, width .25s, height .25s; animation: tour-pulse 1.6s ease-in-out infinite; }
@keyframes tour-pulse { 50% { box-shadow: 0 0 0 3px var(--gold), 0 0 0 15px color-mix(in srgb, var(--gold) 12%, transparent), 0 0 0 200vmax rgba(8, 30, 34, .34); } }
.tour-box { position: fixed; left: 0; top: 0; display: flex; align-items: flex-end; gap: 4px; width: min(430px, calc(100vw - 20px)); pointer-events: auto; transition: transform .35s cubic-bezier(.2, .9, .3, 1.15); }
.tour-box .canti { width: 112px; margin-bottom: -6px; filter: drop-shadow(0 6px 10px rgba(8, 30, 34, .25)); }
.tour-bubble { position: relative; flex: 1; min-width: 0; padding: 14px 16px 12px; border-radius: 18px; background: var(--surface); border: 2px solid var(--accent); box-shadow: 0 14px 34px -12px rgba(8, 30, 34, .5); }
.tour-bubble::before { content: ""; position: absolute; left: -10px; bottom: 26px; width: 16px; height: 16px; background: var(--surface); border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(45deg); }
.tour-say { margin: 0 18px 0 0; font-size: var(--fs-m); line-height: 1.45; font-weight: 600; }
.tour-x { position: absolute; right: 6px; top: 4px; width: 26px; height: 26px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: var(--fs-l); line-height: 1; }
.tour-x:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--text); }
.tour-choices { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.tour-choices:empty { display: none; }
.tour-choices .primary { padding: 7px 16px; border-radius: 999px; }
.chip.pick { border-color: var(--accent); color: var(--accent); font-weight: 700; }
.chip.pick:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.chip.pick small { font-weight: 400; color: var(--muted); margin-left: 4px; }

.tour-offer { display: flex; align-items: center; gap: 8px 18px; margin: 0 0 22px; padding: 14px 20px 14px 10px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: linear-gradient(120deg, color-mix(in srgb, var(--mint) 55%, var(--surface)), var(--surface) 60%); }
.tour-offer-figure .canti { width: 132px; }
.tour-offer-body { display: grid; gap: 8px; min-width: 0; }
.tour-offer-body p { font-weight: 700; font-size: var(--fs-m); }
.tour-offer-list, .tour-offer-foot { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.tour-offer-foot .linkbtn { font-size: var(--fs-xs); color: var(--muted); }
@media (max-width: 560px) { .tour-offer { flex-direction: column; align-items: flex-start; } .tour-offer-figure .canti { width: 104px; } .tour-box .canti { width: 78px; } }
.tour-pick { display: flex; align-items: center; gap: 10px; }
.tour-pick-figure .canti { width: 96px; }
.tour-pick select { flex: 1; min-width: 0; }
.tour-box.leaving { transform-origin: 0 0; transition: transform .75s cubic-bezier(.5, -0.2, .8, .6), opacity .75s ease-in; opacity: .2; pointer-events: none; }
#meBtn.tour-landed { animation: tour-landed .9s ease-out; }
@keyframes tour-landed { 0% { box-shadow: 0 0 0 0 var(--gold); transform: scale(1); } 30% { transform: scale(1.12); } 100% { box-shadow: 0 0 0 16px transparent; transform: scale(1); } }
.tour-box.parked .tour-x { display: none; }
.tour-box.parked { width: min(360px, calc(100vw - 20px)); }

/* the arrow of every list, after the rules that give single lists their size and colour */
select:not([multiple]) {
  padding-right: 30px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
select:not([multiple]):hover, select:not([multiple]):focus-visible {
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
}

/* the microphone: takes under a voice, how a take went, feedback while singing, tuning, warming up */
.n.fb-good { color: #2e9d57; }
.n.fb-ok { color: #c58a00; }
.n.fb-off { color: #d2452f; }
.n.fb-miss { color: #9a9a9a; }
.fbmark { fill: currentColor; font-weight: 800; pointer-events: none; }
dialog.wide { width: min(94vw, 860px); }
dialog h3 { font-size: var(--fs-s); margin: 6px 0 2px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stat { display: grid; gap: 1px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.stat b { font-size: var(--fs-xl); letter-spacing: -0.02em; }
.stat span { font-size: var(--fs-xs); font-weight: 600; }
.stat small { font-size: var(--fs-xs); color: var(--muted); }
.take-plot { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.take-plot svg { display: block; }
.pl-bar { stroke: var(--line); stroke-width: 1; }
.pl-staff, .pl-ledger { stroke: var(--muted); stroke-width: 1; }
.pl-stem { stroke: currentColor; stroke-width: 1.2; }
.pl-written { color: var(--text); }
.pl-written circle { fill: currentColor; }
.pl-written.an-good { color: #2e9d57; }
.pl-written.an-ok { color: #c58a00; }
.pl-written.an-off { color: #d2452f; }
.pl-written.an-miss { color: #9a9a9a; }
.pl-word { fill: var(--text); font-size: 11px; }
.plot-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plot-bar .muted { font-size: var(--fs-xs); }
.seg-zoom { display: inline-flex; gap: 4px; flex: none; }
.seg-zoom .icon-btn { font-size: var(--fs-l); font-weight: 700; line-height: 1; }
.pl-num { fill: var(--muted); font-size: 9px; }
.pl-note.an-good { fill: #2e9d57; }
.pl-note.an-ok { fill: #c58a00; }
.pl-note.an-off { fill: #d2452f; }
.pl-note.an-miss { fill: #b9b9b9; }
.pl-note { opacity: .55; }
.pl-voice { fill: none; stroke: var(--text); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.section-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-size: var(--fs-s); }
.section-row:first-child { border-top: 0; }
/* the voice while singing: a faint line over the notes, sparks and a word of cheer */
.trail { pointer-events: none; transition: opacity 1.2s; }
.trail.done { opacity: 0; transition-delay: 3s; }
.trail line { stroke-width: 2.4; stroke-linecap: round; opacity: .5; }
.trail .hit { stroke: #2e9d57; }
.trail .miss { stroke: #d2452f; opacity: .38; }
.trail .free { stroke: var(--muted); opacity: .3; }
.trail .spark { fill: #2e9d57; animation: spark .9s ease-out forwards; transform-box: fill-box; transform-origin: center; }
.trail .cheer { fill: #2e9d57; font-weight: 800; animation: cheer 1.5s ease-out forwards; }
@keyframes spark { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(2.4); } }
@keyframes cheer { from { opacity: .95; transform: translateY(0); } to { opacity: 0; transform: translateY(-14px); } }
/* tuning the microphone: three steps, big buttons, little text */
dialog.wizard { width: min(94vw, 520px); }
.wiz-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wiz-steps { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.wiz-steps li { counter-increment: step; font-size: var(--fs-xs); color: var(--muted); display: flex; align-items: center; gap: 4px; }
.wiz-steps li::before { content: counter(step); width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font-weight: 700; }
.wiz-steps li.now { color: var(--text); font-weight: 700; }
.wiz-steps li.now::before { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
.wiz-steps li.done::before { content: '✓'; background: #2e9d57; border-color: #2e9d57; color: #fff; }
.wiz-panel { display: grid; justify-items: center; gap: 12px; padding: 10px 0 4px; min-height: 250px; align-content: center; }
.wiz-panel[hidden] { display: none; }
.wiz-lead { margin: 0; font-size: var(--fs-m); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.wiz-emoji { font-size: var(--fs-xl); line-height: 1; }
.big-round { width: 112px; height: 112px; border-radius: 50%; border: 0; background: var(--fill); color: var(--fill-ink); font-size: var(--fs-m); font-weight: 700; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 35%, transparent); }
.big-round:hover:not(:disabled) { filter: brightness(1.08); }
.big-round:disabled { opacity: .45; box-shadow: none; }
.wiz-value { margin: 0; font-size: var(--fs-xxl); font-weight: 800; letter-spacing: -0.02em; min-height: 1.2em; }
.wiz-panel .status { min-height: 1.2em; margin: 0; }
/* The window of the warm-up, and not the mark of a warm-up on its card, which is a .tag.warm. */
dialog .warm { display: grid; gap: 10px; }
/* the warm-up has room: a wide window and a tall board */
dialog.warm-big { width: min(96vw, 980px); }
.warm-big .wiz-board { height: min(52vh, 420px); }
.warm-big .warm-list { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.warm h2 { font-size: var(--fs-m); margin: 0; }
.warm .muted { font-size: var(--fs-s); margin: 0; }
#warmPick, #warmRun, #warmDone { display: grid; gap: 10px; }
#warmPick[hidden], #warmRun[hidden], #warmDone[hidden] { display: none; }
.range-line { margin: 4px 0 0; display: grid; gap: 2px; }
.range-line span { font-size: var(--fs-s); color: var(--muted); }
.range-strip { position: relative; height: 40px; margin-top: 6px; }
.range-strip::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 12px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 9%, transparent); }
.range-strip i { position: absolute; top: 6px; height: 12px; border-radius: 999px; }
.range-strip i.all { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.range-strip i.now { background: var(--fill); top: 8px; height: 8px; }
.range-strip span { position: absolute; top: 22px; transform: translateX(-50%); font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; }
.range-strip span:first-of-type { transform: none; }
.range-strip span:last-of-type { transform: translateX(-100%); }
.warm-list { display: grid; gap: 8px; }
.warm-item { display: grid; gap: 2px; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--text); }
.warm-item:hover { border-color: var(--accent); }
.warm-item span { font-size: var(--fs-xs); color: var(--muted); }
.warm-rounds { display: flex; align-items: center; gap: 8px; font-size: var(--fs-s); color: var(--muted); }
.warm-rounds input { width: 4.2em; }
.warm-known { margin: 0; font-weight: 600; font-size: var(--fs-s); }
.warm-opts { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.warm-opts[hidden] { display: none; }
.warm-opts { align-items: center; }
.warm-opts .switch { margin: 0; }
.warm-venue { display: flex; align-items: center; gap: 8px; font-size: var(--fs-s); }
.warm-venue .menu-wrap { display: inline-block; }
.warm-venue .venue-btn { height: 34px; }
.warm-result { margin: 0; min-height: 1.4em; font-weight: 700; color: #2e9d57; }
.warm-result.bad { color: #d2452f; }
.wiz-meter { display: flex; align-items: center; gap: 8px; margin: 2px 0 6px; }
.wiz-meter .wiz-emoji { font-size: var(--fs-m); }
.meter-track { flex: 1; height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.meter-track i { display: block; height: 100%; width: 0; border-radius: 999px; background: #2e9d57; }
.wiz-meter.hot .meter-track i { background: #d2452f; }
.wiz-meter.off { opacity: .35; }
.wiz-board { width: 100%; height: 205px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; width: 100%; }
.tile { display: grid; justify-items: center; gap: 2px; padding: 12px 6px; border-radius: 12px; border: 2px solid var(--line); text-align: center; }
.tile b { font-size: var(--fs-m); }
.tile span:last-child { font-size: var(--fs-xs); color: var(--muted); }
.tile.good { border-color: #2e9d57; background: color-mix(in srgb, #2e9d57 9%, transparent); }
.tile.fair { border-color: #c58a00; background: color-mix(in srgb, #c58a00 10%, transparent); }
.tile.bad { border-color: #d2452f; background: color-mix(in srgb, #d2452f 10%, transparent); }
.tile.none { opacity: .55; }
.wiz-verdict { margin: 0; font-weight: 600; text-align: center; }
.wiz-fine { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; width: 100%; font-size: var(--fs-xs); color: var(--muted); }
dialog .chip.save { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); padding: 8px 14px; }
@media (max-width: 480px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .wiz-steps li { font-size: 0; } }
/* tuning the microphone delay: the row of beats that light up */
.beats { display: flex; gap: 8px; justify-content: center; padding: 6px 0; }
.beats i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--accent); }
.beats i.lead { border-color: var(--line); }
.beats i.on { background: var(--fill); border-color: var(--fill); transform: scale(1.25); }
.beats i.lead.on { background: var(--muted); border-color: var(--muted); }
.tune-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 4px 0; }
/* recording: the button beside "play", and the takes under a voice */
.round.rec svg { fill: #c62828; }
.round.rec[aria-pressed="true"] { background: #c62828; border-color: #c62828; animation: rec-pulse 1.1s ease-in-out infinite; }
.round.rec[aria-pressed="true"] svg { fill: #fff; }
@keyframes rec-pulse { 50% { box-shadow: 0 0 0 7px rgba(198, 40, 40, .22); } }
.mix-row.take { border-top: 0; padding-top: 0; }
.mix-row.shared .mix-name { color: var(--muted); font-style: italic; }
.mix-row.shared .mini.add { font-size: var(--fs-l); font-weight: 700; line-height: 1; }
.shared-mark { display: grid; place-items: center; color: var(--muted); }
.shared-mark svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mix-row.take .mix-name { font-weight: 500; font-size: var(--fs-xs); gap: 3px; flex-wrap: nowrap; }
.mix-row.take .mix-name > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mix-row.take .mix-name em { display: none; }
/* Not of that site: the signs beside the name of a take lie over the buttons that follow them, and not under
   the room left free there, where the last of four reaches when the voices show their dynamics (bug 72
   of ORIGINAL_BUGS.md). */
.mix-row.take .mix-name { position: relative; z-index: 1; }
.mini-gap { width: 30px; height: 30px; }
/* delete: a red dot that becomes a bin when the row is pointed at; the verdict: a bare sign after the name */
.take-del { width: 14px; }
.take-check { width: 18px; }
.take-del, .take-check { height: 20px; padding: 0; border: 0; background: none; display: grid; place-items: center; flex: none; color: var(--muted); }
.take-del svg, .take-check svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.take-del svg { display: none; }
.take-del::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #c62828; }
.mix-row.take:hover .take-del svg, .take-del:focus-visible svg { display: block; }
.mix-row.take:hover .take-del::before, .take-del:focus-visible::before { display: none; }
.take-del:hover { color: #c62828; }
.take-check:hover, .take-check[aria-pressed="true"] { color: var(--accent); }
@media (hover: none) { .take-del svg { display: block; } .take-del::before { display: none; } }

/* The folders of the first page, its search, the links of a piece, and what the administration has. */
.piece.folder { background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.folder-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; font-size: var(--fs-s); color: var(--muted); }
.folder-list li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-list svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 5px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.folder-list .more { font-style: italic; }
.ghost.heard.youtube { color: var(--danger); }
.ghost.heard.spotify { color: var(--good); }
.crumbs a { color: inherit; border-radius: 8px; }
#homeSearch { flex: 0 1 230px; min-width: 120px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: var(--fs-s); }
#homeSearch:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.found-place { display: flex; align-items: center; gap: 5px; font-size: var(--fs-xs); margin: 6px 0 0; }
.found-place svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.found-text { margin: 6px 0 0; font-size: var(--fs-s); font-style: italic; line-height: 1.4; }
.found-text mark { background: color-mix(in srgb, var(--gold) 55%, transparent); color: inherit; font-style: normal; font-weight: 600; border-radius: 3px; padding: 0 2px; }
.piece.folder.own { background: color-mix(in srgb, var(--accent) 3%, var(--surface)); border-style: dashed; }
.crumbs span { margin: 0 .5em; }
/* moving cards (administration): where a card can go is marked while one is dragged */
.piece[draggable="true"] { cursor: grab; }
.piece.is-dragged { opacity: .4; }
.dragging-on .piece.folder:not(.is-dragged), .dragging-on .crumbs a {
  outline: 2px dashed var(--accent); outline-offset: 2px;
}
.dragging-on .crumbs a { padding: 6px 12px; margin: -6px 0; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.dragging-on .piece.folder:not(.is-dragged) .piece-foot .primary::after { content: " · hierher ziehen"; font-weight: 500; }
.drop-into { outline-style: solid !important; outline-width: 3px !important; background: color-mix(in srgb, var(--accent) 24%, var(--surface)) !important; }
.new-folder { display: none; align-items: center; justify-content: center; gap: 6px; text-align: center; min-height: 150px; background: transparent; border: 2px dashed var(--accent); color: var(--accent); }
.new-folder svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.new-folder span { font-size: var(--fs-s); color: var(--muted); }
.dragging-on .new-folder { display: flex; }
.drop-before { box-shadow: -6px 0 0 -1px var(--accent); }
.drop-after { box-shadow: 6px 0 0 -1px var(--accent); }
.admin-eyebrow { margin-top: 40px; }
.admin-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.admin-card { display: grid; gap: 10px; }
.admin-card .muted { font-size: var(--fs-s); }
.notice-row { display: grid; gap: 6px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; }
.notice-row .linkbtn { justify-self: end; }
.admin-card #exportAll[hidden], #editExport[hidden] { display: none; }
.file-del { border: 0; background: none; color: var(--down); font-size: var(--fs-l); line-height: 1; padding: 0 6px 0 2px; margin-left: -2px; }
.dl .add-file { border-style: dashed; }
.edit-tutorial { display: flex; align-items: center; gap: 10px; font-size: var(--fs-s); }
.edit-tutorial select { width: auto; }
.admin-card #exportAll { justify-self: start; }
/* ---------- the pages of the administration (not of the original, which has the people and the mails in a card of the first page) ---------- */
.admin-links { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-bottom: 16px; }
.admin-link { display: grid; gap: 2px; text-decoration: none; color: var(--text); padding: 16px 20px; }
.admin-link b { color: var(--accent); }
.admin-link b::after { content: " →"; }
.admin-link .muted { font-size: var(--fs-s); }
.admin-link:hover { border-color: var(--accent); }
.admin-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* The title of these pages stays where it is: what stays on top while the notes scroll is of the practice view. */
.admin-page .p-head { position: static; background: none; padding: 0; margin-bottom: 22px; }
.setup-grid { display: grid; gap: 16px; align-items: start; }
.setup-col { display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) { .setup-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.admin-card h2 { margin-bottom: 2px; }
.admin-page .status:empty { display: none; }
#exportWhat { width: 100%; }
.mail-set { display: grid; gap: 8px; }
.mail-set input[type="email"], .mail-set input[type="url"], .mail-set input[type="password"] { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: var(--fs-m); }
.mail-set input[type="text"], .mail-set input[type="number"] { box-sizing: border-box; }
.inline-add { display: flex; gap: 8px; }
.inline-add input { flex: 1; min-width: 0; }
.inline-add input[type="number"] { flex: 0 0 5.5em; }
.inline-add .primary { padding: 8px 16px; }

/* ---------- the colours and the image of the choir (not of the original) ----------
   theme.css sets the custom properties that the administration chose, behind this sheet: the image is
   --choir-image, and --choir-image-shown and --choir-mark-shown say what is shown where there is one. */
.choir-image { display: var(--choir-image-shown, none); background: var(--choir-image, none) center / contain no-repeat; }
.gate-image { height: 96px; background-position: left center; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-image { width: 32px; height: 32px; flex: none; }
.colour-looks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.colour-look { display: grid; gap: 8px; margin: 0; padding: 6px 12px 12px; border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.colour-look legend { padding: 0 4px; font-size: var(--fs-s); font-weight: 700; }
.colour-pick { display: flex; align-items: center; gap: 10px; font-size: var(--fs-s); }
.colour-pick input[type="color"] { flex: none; width: 46px; height: 32px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.colour-pick span { flex: 1; }
.colour-pick code { font-size: var(--fs-xs); color: var(--muted); }
.look-previews { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.look-preview { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); min-width: 0; }
.look-preview .lp-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.look-preview .lp-brand { font-weight: 700; color: var(--accent); }
.look-preview .eyebrow { margin: 0; }
.look-preview .card { display: grid; gap: 4px; padding: 12px; }
.look-preview .lp-actions { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.look-preview .primary { padding: 6px 14px; font-size: var(--fs-s); }
.look-preview .status { margin: 0; color: var(--down); }
/* the notes, drawn once at one width and as wide as the small page; nothing in them can be tapped */
.look-preview .lp-notes { padding: 8px 6px 4px; }
.look-preview .lp-notes svg { display: block; width: 100%; height: auto; pointer-events: none; }
.colour-check { font-size: var(--fs-s); }
.colour-check ul { margin: 0; padding-left: 1.2em; color: var(--down); }
.colour-check p { margin: 0; color: var(--muted); }
/* «Herunterladen»: the desktop app and the learning package, each in a part of its own */
dialog.download { width: min(94vw, 600px); }
dialog.download .download-body { display: grid; gap: 12px; }
dialog.download h2 { margin: 0; }
dialog.download h3 { margin: 0 0 4px; font-size: var(--fs-m, 1.05rem); }
dialog.download p { margin: 0 0 6px; line-height: 1.45; }
dialog.download p.muted { font-size: var(--fs-s); }
dialog.download .download-part { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line, rgba(0,0,0,.12)); border-radius: 12px; }
dialog.download .download-admin { display: grid; gap: 6px; margin-top: 6px; }
dialog.download .row-actions a { text-decoration: none; }
dialog.download .status:empty { display: none; }
.choir-image-shown { max-width: 100%; max-height: 120px; justify-self: start; border-radius: 8px; }
.people-panel .row-actions .primary { padding: 9px 14px; }

.people-page { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
/* Beside the table from the width on where the table has room for its columns; else below it. */
@media (min-width: 1180px) { .people-page { grid-template-columns: minmax(0, 1fr) 320px; } }
.people-main { display: grid; gap: 10px; min-width: 0; }
.people-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.people-tools input[type="search"] {
  flex: 1 1 220px; min-width: 0; box-sizing: border-box; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); font-size: var(--fs-m);
}
.people-tools input[type="search"]:focus-visible, .people-panel input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.people-tools select { font-size: var(--fs-s); padding-top: 7px; padding-bottom: 7px; }
.people-tools .check, .people-panel .check, .person-groups .check { display: inline-flex; align-items: center; gap: 6px; }
.people-never { font-size: var(--fs-s); color: var(--muted); white-space: nowrap; }
#peopleStatus:empty { display: none; }
.people-bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; min-height: 2.1em; font-size: var(--fs-s); color: var(--muted); }
.people-count { font-variant-numeric: tabular-nums; }
.people-picked { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--text); }
.people-into { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-left: auto; }
.people-into select { font-size: var(--fs-s); padding: 6px 30px 6px 10px; max-width: 100%; }
.people-into .ghost { padding: 6px 10px; }
.people-rows > p { padding: 18px 4px; }
.people-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: var(--fs-s); box-shadow: var(--card-shadow); }
.people-table th { text-align: left; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 8px; border-bottom: 1px solid var(--line); vertical-align: bottom; }
.people-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.people-table tbody tr:last-child td { border-bottom: 0; }
.people-table tbody tr { cursor: pointer; }
.people-table tbody tr:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); }
.people-table tbody tr.picked { background: color-mix(in srgb, var(--accent) 11%, transparent); }
.people-table .pick { width: 1px; padding-right: 2px; }
.people-table .pick input { accent-color: var(--accent); width: 16px; height: 16px; margin: 0; vertical-align: middle; cursor: pointer; }
.person-open { border: 0; background: none; padding: 0; font-weight: 600; text-align: left; color: var(--text); white-space: nowrap; }
.person-open:hover { color: var(--accent); text-decoration: underline; }
.person-open:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.nameless { font-weight: 400; font-style: italic; color: var(--muted); }
.people-table .mail { color: var(--muted); }
.people-table .groups { line-height: 1.9; }
.people-table .groups .tag { margin-right: 4px; white-space: nowrap; }
.tag.lead { color: var(--accent); border-color: currentColor; font-weight: 600; }
.lead-mark { font-weight: 400; }
.people-table .seen, .people-table .own { white-space: nowrap; color: var(--muted); }
.people-table .seen.never { font-style: italic; }
.people-side { display: grid; gap: 16px; }
.people-panel { display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--card-shadow); }
.people-panel h2 { font-size: var(--fs-m); }
.people-panel input[type="text"], .people-panel input[type="email"] { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: var(--fs-m); }
.people-panel .hint { font-size: var(--fs-xs); }
.people-panel > .check { align-items: flex-start; font-size: var(--fs-s); }
.people-panel > .check input { margin-top: 3px; flex: none; }
.group-list { display: grid; gap: 8px; }
/* A group is a row here and a chip on the card of the original; the class stays, as its tutorial points at it. */
.group-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }
.group-who { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.group-who b { overflow-wrap: anywhere; }
.group-acts { grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 10px; }
.group-del { font-size: var(--fs-l); line-height: 1; color: var(--muted); padding: 0 2px; }
.group-del:hover { color: var(--down); }
.group-pw { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: var(--fs-xs); }
.group-pw .ghost { padding: 3px 10px; font-size: var(--fs-xs); }
.group-pw input[readonly] { flex: 1 1 100%; min-width: 0; font-size: var(--fs-xs); }
.person-groups { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.person-groups .check { margin: 0; font-size: var(--fs-s); font-weight: 400; }
.membership { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 10px; }
.membership .lead { color: var(--muted); font-size: var(--fs-xs); }
.person-dialog .person { display: grid; gap: 8px; }
.person-dialog h2 { overflow-wrap: anywhere; }
.person-dialog .muted { font-size: var(--fs-s); overflow-wrap: anywhere; }
.person-dialog .row-actions { justify-content: space-between; }
#personStatus:empty { display: none; }

/* On a phone a row is a card, and the groups come below the list. */
@media (max-width: 720px) {
  .people-table, .people-table tbody { display: block; background: none; border: 0; box-shadow: none; }
  .people-table thead { display: none; }
  .people-table tbody { display: grid; gap: 8px; }
  .people-table tbody tr {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 10px; padding: 10px 12px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  }
  .people-table tbody tr.picked { background: color-mix(in srgb, var(--accent) 11%, var(--surface)); border-color: var(--accent); }
  .people-table td { display: block; padding: 0; border: 0; }
  .people-table .pick { grid-column: 1; grid-row: 1 / span 3; width: auto; padding-top: 3px; }
  .people-table .who { grid-column: 2; }
  .people-table .seen { grid-column: 3; grid-row: 1; font-size: var(--fs-xs); text-align: right; }
  .people-table .mail { grid-column: 2 / -1; font-size: var(--fs-xs); overflow-wrap: anywhere; }
  .people-table .groups { grid-column: 2 / -1; }
  .people-table .groups:empty, .people-table .own:empty { display: none; }
  .people-table .own { grid-column: 2 / -1; font-size: var(--fs-xs); }
  .people-into { margin-left: 0; }
}

/* ---------- votes on the next song ---------- */
a.ghost { display: inline-flex; align-items: center; text-decoration: none; }
.bar-link { white-space: nowrap; }
#voteSection { margin-bottom: 30px; }
.vote-cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); align-content: start; }
.vote-card { display: grid; gap: 6px; align-content: start; }
.vote-card h3 { margin: 0; font-size: var(--fs-m); }
.vote-card h3 a { color: inherit; text-decoration: none; }
.vote-card .muted { margin: 0; font-size: var(--fs-s); }
.vote-card.closed { opacity: .8; }
.vote-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: var(--fs-s); }
.tag.open { color: var(--good); border-color: currentColor; font-weight: 600; }
.votes-intro { margin: -12px 0 20px; max-width: 60ch; }
.votes-page, .vote-page { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 980px) { .votes-page, .vote-page { grid-template-columns: minmax(0, 1fr) 340px; } }
.vote-page .vote-talk { position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; }
.vote-main { display: grid; gap: 16px; min-width: 0; }
.people-panel textarea, .vote-edit textarea, .vote-edit input[type="text"] { width: 100%; box-sizing: border-box; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font: inherit; font-size: var(--fs-m); resize: vertical; }
.people-panel select, .people-panel input[type="number"], .people-panel input[type="datetime-local"], .vote-edit input[type="number"], .vote-edit input[type="datetime-local"] { width: 100%; box-sizing: border-box; }
.people-panel .field-label, .vote-edit .field-label { margin: 4px 0 -4px; }
.vote-facts { display: grid; gap: 8px; }
.vote-facts p { margin: 0; }
.vote-edit summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: var(--fs-s); }
.vote-edit form { display: grid; gap: 8px; margin-top: 10px; }
.vote-edit .hint { margin: -4px 0 0; font-size: var(--fs-xs); }
.vote-mine .eyebrow { margin-bottom: 6px; }
.vote-mine .hint { margin: 6px 0 0; font-size: var(--fs-s); }
.vote-slots { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vote-slot { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--accent); font-size: var(--fs-s); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vote-slot b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: var(--fs-xs); flex: none; }
.vote-slot.free { border-style: dashed; border-color: var(--line); color: var(--muted); }
.vote-slot.free b { background: var(--line); color: var(--muted); }
.vote-slot.pick { padding: 3px 6px 3px 3px; }
.vote-slot.pick select { border: 0; background: transparent; color: inherit; font: inherit; max-width: 14em; min-height: 32px; padding: 0 4px; }
.people-panel .check input.vote-per-song, .vote-edit .check input.vote-per-song { width: 4.5em; height: auto; margin-left: 4px; padding: 4px 6px; box-sizing: border-box; }
.vote-edit input:disabled { opacity: .6; cursor: not-allowed; }
.vote-give { justify-content: flex-end; }
.vote-songs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.vote-song { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 18px; }
.vote-song.leading { border-color: var(--accent); }
.vs-rank { font-size: var(--fs-xl); font-weight: 700; color: var(--muted); min-width: 1.4em; text-align: center; font-variant-numeric: tabular-nums; }
.vote-song.leading .vs-rank { color: var(--accent); }
.vs-body { display: grid; gap: 6px; min-width: 0; }
.vs-body h3 { margin: 0; font-size: var(--fs-m); overflow-wrap: anywhere; }
.vs-body p { margin: 0; overflow-wrap: anywhere; }
.vs-links { display: flex; flex-wrap: wrap; gap: 6px; }
.vs-links .ghost { padding: 4px 10px; font-size: var(--fs-s); }
.vs-by, .vs-who { font-size: var(--fs-xs); }
.vs-by .linkbtn { font-size: inherit; }
.vs-body progress { width: 100%; height: 6px; appearance: none; border: 0; border-radius: 3px; background: var(--line); overflow: hidden; }
.vs-body progress::-webkit-progress-bar { background: var(--line); border-radius: 3px; }
.vs-body progress::-webkit-progress-value { background: var(--accent); border-radius: 3px; }
.vs-body progress::-moz-progress-bar { background: var(--accent); border-radius: 3px; }
.vs-side { display: grid; gap: 8px; justify-items: end; }
.vs-points { font-size: var(--fs-s); color: var(--muted); white-space: nowrap; }
.vs-points b { font-size: var(--fs-xl); color: var(--text); font-variant-numeric: tabular-nums; }
.vote-give button { min-width: 36px; padding: 6px 10px; }
@media (max-width: 560px) {
  .vote-song { grid-template-columns: auto minmax(0, 1fr); }
  .vs-side { grid-column: 1 / -1; grid-auto-flow: column; justify-content: space-between; align-items: center; }
}
.vote-add .seg { justify-self: start; }
.vote-add-own { display: grid; gap: 8px; }
.vote-add .hint { margin: 0; font-size: var(--fs-xs); }
#voteStatus:empty { display: none; }
.vote-talk form { display: grid; gap: 8px; }
.vote-posts { display: grid; gap: 10px; }
.vote-post { padding: 10px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); }
.vote-post.mine { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.vote-post p { margin: 0; overflow-wrap: anywhere; }
.vp-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px !important; font-size: var(--fs-s); }
.vp-head .linkbtn { margin-left: auto; color: var(--muted); }
.votes-side .vote-new { position: sticky; top: 76px; }
.vote-new .check { display: flex; align-items: center; gap: 8px; margin: 0; font-size: var(--fs-s); }
.vote-new .hint { margin: -4px 0 0; font-size: var(--fs-xs); }

/* ---- what a note is: a small window beside the note that was tapped ---- */
.note-pop[hidden] { display: none; }
.note-pop {
  position: fixed; z-index: 58; width: max-content; min-width: 220px; max-width: min(340px, calc(100vw - 16px)); padding: 10px 12px 12px 16px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: 0 12px 36px rgba(0, 0, 0, .28);
}
.note-pop::after {
  content: ""; position: absolute; left: calc(var(--np-arrow, 50%) - 8px); bottom: -8px; width: 14px; height: 14px;
  background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transform: rotate(45deg);
}
.note-pop.below::after { top: -8px; bottom: auto; transform: rotate(225deg); }
.np-head { display: flex; align-items: baseline; gap: 10px; }
.np-name { font-size: var(--fs-xxl); line-height: 1.1; letter-spacing: -.01em; }
.np-sci { color: var(--muted); font-size: var(--fs-m); font-variant-numeric: tabular-nums; }
.np-voice { margin-left: auto; font-size: var(--fs-xs); font-weight: 700; color: var(--pc, var(--accent)); white-space: nowrap; }
.np-close { align-self: center; flex: none; width: 36px; height: 36px; margin-right: -6px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--muted); font-size: var(--fs-xl); line-height: 1; }
.np-close:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.np-facts { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-s); }
.np-chord { margin: 2px 0 0; color: var(--muted); font-size: var(--fs-s); }
.np-acts { display: flex; gap: 10px; margin-top: 12px; }
.np-acts button {
  display: grid; place-items: center; width: 52px; height: 48px; padding: 0; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg); color: var(--text); touch-action: manipulation;
}
.np-acts button:hover { border-color: var(--accent); color: var(--accent); }
.np-acts button:active { background: color-mix(in srgb, var(--accent) 16%, var(--bg)); }
.np-acts svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.np-acts .np-forks { width: 64px; }
.np-acts .np-forks svg { width: 34px; }
.np-acts .np-play { margin-left: auto; width: 48px; border-radius: 50%; background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
.np-acts .np-play:hover { color: var(--fill-ink); }
.np-acts .np-play svg { width: 22px; height: 22px; fill: currentColor; stroke: none; }
/* the note whose window is open */
#score .n.picked { color: var(--accent); }
#score .n.picked .halo { opacity: .25; }

/* ---------- phones, tablets and fingers ---------- */
/* no window is wider or taller than the screen; what closes it stays in reach while the rest scrolls */
dialog { --dp: 24px; max-width: calc(100vw - 24px); max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
dialog:not(.print, .words, .draft) > .row-actions:last-child, dialog:not(.print, .words, .draft) > :last-child > .row-actions:last-child {
  position: sticky; bottom: calc(-1 * var(--dp)); z-index: 3; margin: var(--sp-2) calc(-1 * var(--dp)) calc(-1 * var(--dp)); padding: var(--sp-3) var(--dp) var(--dp);
  background: var(--raised); border-top: 1px solid transparent;
}
/* while more of the window is below what is seen, its last row says so: a line, and what scrolls fades out above it */
dialog:not(.print, .words, .draft) > .row-actions:last-child::before, dialog:not(.print, .words, .draft) > :last-child > .row-actions:last-child::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: var(--sp-6); margin-bottom: 1px;
  background: linear-gradient(to bottom, transparent, var(--raised)); pointer-events: none; opacity: 0;
}
@supports (animation-timeline: scroll()) {
  dialog:not(.print, .words, .draft) > .row-actions:last-child, dialog:not(.print, .words, .draft) > :last-child > .row-actions:last-child {
    animation: foot-more linear both; animation-timeline: scroll(nearest block); animation-range: calc(100% - 28px) 100%;
  }
  dialog:not(.print, .words, .draft) > .row-actions:last-child::before, dialog:not(.print, .words, .draft) > :last-child > .row-actions:last-child::before {
    animation: foot-word linear both; animation-timeline: scroll(nearest block); animation-range: calc(100% - 28px) 100%;
  }
}
@keyframes foot-more { from { border-top-color: var(--line); } to { border-top-color: transparent; } }
@keyframes foot-word { from { opacity: 1; } to { opacity: 0; } }
dialog.ask .row-actions { margin-top: 2px; }
.rep-head { flex-wrap: wrap; }
.rep-head > * { min-width: 0; }
textarea { font-family: inherit; color: inherit; line-height: 1.45; }
dialog input[type=email] { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: var(--fs-m); }
input[type=file] { max-width: 100%; font-size: var(--fs-s); color: var(--muted); }
input[type=file]::file-selector-button {
  margin-right: 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line); background: transparent;
  font: inherit; color: var(--muted); cursor: pointer;
}
input[type=file]:hover::file-selector-button { border-color: var(--accent); color: var(--text); }
/* whose lines are shown: two buttons in one frame */
.seg-lines .linkbtn { height: 30px; padding: 0 11px; font-size: var(--fs-xs); font-weight: 600; }
.seg-lines .linkbtn + .linkbtn { border-left: 1px solid var(--line); }
.seg-lines .linkbtn:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
/* the three kinds of a note: three columns of one width */
#markDialog { width: min(92vw, 560px); }
#markKinds { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
#markKinds button { padding: 9px 6px; }
/* The page is turned by two buttons below the notes, not over them: while the notes are turned the bar that
   plays is higher by a strip, and the buttons stand in it at its two ends (the script places them at the
   edges of the notes, which this overrules). */
body.paged .transport .t-in { padding-top: calc(var(--tap) + var(--sp-2)); }
.stage-turn, .stage-turn.prev, .stage-turn.next {
  top: auto !important; bottom: calc(var(--play-h, 80px) - var(--tap) - var(--sp-1)); transform: none; z-index: 33;
  width: min(30vw, 160px); height: var(--tap); border: 1px solid var(--line); border-radius: 10px; background: var(--surface);
  color: var(--accent); font-size: var(--fs-xl); line-height: 1; box-shadow: none;
}
.stage-turn.prev { left: max(var(--sp-2), env(safe-area-inset-left)) !important; }
.stage-turn.next { left: auto !important; right: max(var(--sp-2), env(safe-area-inset-right)); }
.stage-turn:active { background: color-mix(in srgb, var(--accent) 30%, var(--surface)); }
.stage-turn:disabled { opacity: .35; }

/* the first page: the pieces come first, and what stands before them is small */
.home-head { margin-bottom: 18px; }
.tour-offer { margin-bottom: 16px; padding: 6px 16px 6px 8px; gap: 4px 12px; border-radius: 14px; }
.tour-offer-figure .canti { width: 64px; }
.tour-offer-body { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.tour-offer-body p { font-size: var(--fs-m); }
.tour-offer-foot { margin-left: auto; }
.notices { gap: 8px; margin-bottom: 18px; }
.notices .notice { padding: 10px 16px; }
.notice span { font-size: var(--fs-s); }
#voteSection { margin-bottom: 18px; }
#voteSection .vote-cards { gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
#voteSection .vote-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 12px; padding: 10px 14px; }
#voteSection .vote-card h3 { grid-column: 1; grid-row: 1; font-size: var(--fs-m); }
#voteSection .vote-card .vote-state { grid-column: 1; grid-row: 2; font-size: var(--fs-xs); }
#voteSection .vote-card > p.muted { display: none; }
#voteSection .vote-card .piece-foot { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
#voteSection .vote-card .primary { padding: 9px 16px; }
/* in a folder and in what a search found, the pieces stand at the top */
body[data-folder]:not([data-folder=""]) :is(#tourOffer, #voteSection), body[data-folder^="?"] #noticeSection { display: none; }

@media (max-width: 560px) {
  dialog { --dp: 18px; padding: 18px; }
  dialog .two { grid-template-columns: minmax(0, 1fr); }
  #home { padding-top: 18px; }
  .home-head { margin-bottom: 12px; }
  .home-head h1 { font-size: var(--fs-xxl); }
  #home > .rep-head { gap: 8px; }
  #home > .rep-head .crumbs { flex: 1 1 100%; }
  #home > .rep-head .spacer { display: none; }
  #homeSearch { flex: 1 1 100%; height: 48px; padding: 0 18px; font-size: var(--fs-m); }
  #home > .rep-head .ghost { flex: 1 1 auto; text-align: center; }
  .tour-offer { padding: 8px 12px; }
  .tour-offer-figure { display: none; }
  .tour-offer-body p { flex: 1 1 100%; font-size: var(--fs-s); line-height: 1.35; }
  .tour-offer-foot { margin-left: 0; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plot-bar { flex-wrap: wrap; }
  #markKinds { grid-template-columns: minmax(0, 1fr); }
  #markKinds button { text-align: left; padding: 9px 14px; }
  .wiz-head { flex-wrap: wrap; }
  .wiz-steps { flex: 1 1 100%; justify-content: space-between; }
  .wiz-steps li { font-size: var(--fs-xs); }
  /* the pens: two rows, the tools above, the colours and the way out below */
  .ink-bar { left: 8px; right: 8px; width: auto; flex-wrap: wrap; gap: 4px; overflow: visible; border-radius: 24px; }
  .ink-bar .stage-sep { display: none; }
  .ink-bar button { min-width: 44px; height: 46px; padding: 0 10px; font-size: var(--fs-m); }
  .ink-bar > button[data-tool] { flex: 1 1 30%; }
  .ink-bar .ink-colors { flex: 1 1 auto; gap: 4px; padding: 0 2px; }
  .ink-bar #inkDone { background: var(--fill); color: var(--fill-ink); padding: 0 16px; }
  .ink-bar #inkUndo { font-size: var(--fs-xl); }
  #edScore { min-height: 0; }
}

/* a finger needs 44 px, and 48 where there is room */
@media (pointer: coarse), (max-width: 999px) {
  :root { --tap: 44px; }
  .editor { --tap: 44px; }
  .switch { min-height: var(--tap); margin: 0; }
  .icon-btn:not(.transport *), .round.small, .np-close, .piece-top .icon-btn { width: var(--tap); height: var(--tap); }
  .back, .brand, .about-link, .tour-offer-foot .linkbtn, .rep-head a.linkbtn, .notice-row .linkbtn, #tempoReset, #mailBack, .side-fold {
    display: inline-flex; align-items: center; min-height: var(--tap);
  }
  .back { padding-right: 14px; }
  .about-link, .tour-offer-foot .linkbtn { padding: 0 8px; }
  .t-tempo .row { align-items: center; }
  .dl .ghost { display: inline-flex; align-items: center; }
  .mix-btns .mini { width: var(--tap); height: var(--tap); }
  .mix-head .mini { width: var(--tap); }
  .mini-gap { display: none; }
  .mix-row.take .mix-btns { justify-content: flex-end; }
  .mix-opts select { min-height: var(--tap); }
}
@media (pointer: coarse) and (min-width: 700px), (min-width: 700px) and (max-width: 999px) {
  :root { --tap: 48px; }
}

/* The bar that plays below 1000 px: every button a finger wide, "play" the largest. In the first row
     always         back to the start, play, record, the bar, the button for more, the voices, the full screen
     from 700 px    what a tap does, with its names under the signs
     from 760 px    a bar back and on
     from 900 px    the pencil
   and printing, the switches and the tempo in what "…" opens. */
@media (max-width: 999px) {
  .transport { --t-row: 56px; --t-btn: 44px; }
  .t-in { padding: 8px 10px; gap: 8px; }
  .transport .round:not(.play), .t-edit, .t-print, .t-more, .t-side, .t-full, .t-step, .t-icons .icon-btn { width: 44px; height: 44px; }
  .transport .round.play { width: 56px; height: 56px; }
  .transport .round.play svg { width: 24px; height: 24px; }
  .t-tools button { height: 44px; min-width: 44px; justify-content: center; }
  .t-print { order: 5; display: none; }
  .transport.more .t-print { display: grid; }
  /* while the notes are drawn on or corrected, the bar is its first row */
  :is(body.inking, body[data-editor]) .transport.more :is(.t-break, .t-tempo, .t-icons, .t-print) { display: none; }
}
@media (max-width: 899px) {
  .t-edit { display: none; }
  .t-icons .t-edit2 { display: grid; }
  .t-icons .t-edit2[hidden] { display: none; }
}
@media (max-width: 759px) {
  .t-step { display: none; }
}
@media (max-width: 699px) {
  .t-main .t-tools { order: 5; display: none; }
  .transport.more .t-tools { display: inline-flex; }
  .transport.more .t-tools button { padding: 0 14px 0 10px; }
  .transport.more .t-tools button span { display: inline; }
  .transport:not(.more) .t-tools:not([data-tap="look"]) { display: inline-flex; order: 1; padding: 0; border: 0; background: none; }
  .transport:not(.more) .t-tools:not([data-tap="look"]) button:not([aria-pressed="true"]) { display: none; }
  .transport:not(.more) .t-tools button[aria-pressed="true"] { width: 44px; height: 44px; padding: 0; justify-content: center; }
  :is(body.inking, body[data-editor]) .transport.more .t-tools { display: none; }
}
@media (max-width: 560px) {
  /* a tool that is chosen stands in the row, and recording gives way to it */
  .transport:has(.t-tools:not([data-tap="look"])) .rec { display: none; }
}
@media (max-width: 430px) {
  .t-in { gap: 6px; }
}
@media (max-width: 380px) {
  .t-in { gap: 4px; }
  .transport .round:not(.play), .t-more, .t-side, .t-full, .t-icons .icon-btn, .t-print { width: 40px; height: 40px; }
  .transport .round.play { width: 52px; height: 52px; }
  .transport:not(.more) .t-tools button[aria-pressed="true"] { width: 40px; height: 40px; }
}
@media (min-width: 700px) and (max-width: 999px) {
  .transport .round:not(.play), .t-edit, .t-print, .t-more, .t-side, .t-full, .t-step, .t-icons .icon-btn { width: 48px; height: 48px; }
  .t-tools button { flex-direction: column; gap: 1px; width: 54px; height: 48px; padding: 0; font-size: var(--fs-xs); line-height: 1.1; }
  .t-tools button span { display: block; }
}

/* the first page of a phone: what stands before the pieces is as low as it can be */
@media (max-width: 560px) {
  .tour-offer { padding: 8px 10px; }
  .tour-offer-body { gap: 2px 8px; }
  .tour-offer-foot { gap: 0 2px; margin-left: auto; }
  .tour-offer-foot .linkbtn { padding: 0 6px; font-size: var(--fs-xs); }
  #voteSection > .rep-head { display: none; }
  .notices { margin-bottom: 14px; }
  #home > .rep-head .ghost { padding: 6px 8px; font-size: var(--fs-xs); }
}
dialog .edit-tutorial select { flex: 1; min-width: 0; }
@media (max-width: 760px) { .pr-hint { flex: 1 1 100%; } }

/* ---------- one system (not of that site): type, what is pressed, spacing ---------- */
h1 { font-size: var(--fs-xxl); line-height: 1.2; }
h2 { font-size: var(--fs-l); line-height: 1.25; }
h3 { font-size: var(--fs-m); line-height: 1.3; }
/* What is pressed has one height and, side by side, one size of type: the main button is filled, the others framed. */
.primary, .ghost { min-height: var(--tap); padding: var(--sp-1) var(--sp-4); border: 1px solid var(--line); border-radius: 10px; font-size: var(--fs-m); line-height: 1.2; }
.primary { border-color: transparent; }
.ghost { font-weight: 600; color: var(--text); }
a.primary, a.ghost, label.chip { display: inline-flex; align-items: center; justify-content: center; }
.look-preview .primary { min-height: 0; }
.chip:not(.t-side) { min-height: var(--tap); padding: var(--sp-1) var(--sp-3); border-radius: 10px; font-size: var(--fs-s); line-height: 1.2; }
.rep-head .ghost, .dl .ghost, .vs-links .ghost, .group-pw .ghost, .people-into .ghost, .vote-give .ghost { padding: var(--sp-1) var(--sp-3); font-size: var(--fs-s); }
select, input:is([type=text], [type=number], [type=email], [type=url], [type=password], [type=search], [type=datetime-local]):not(.lyric-edit) { min-height: var(--tap); font-size: var(--fs-m); }
textarea { font-size: var(--fs-m); }
.w-box input, .check input.vote-per-song { min-height: 0; }
input[type=file]::file-selector-button { min-height: var(--tap); font-size: var(--fs-s); font-weight: 600; color: var(--text); }
/* a choice of a few: one frame, the chosen one filled to its edges */
.seg { padding: 0; gap: 0; border-radius: 10px; align-items: stretch; min-height: var(--tap); box-sizing: border-box; vertical-align: middle; }
.seg button { min-height: calc(var(--tap) - 2px); padding: var(--sp-1) var(--sp-3); border-radius: 0; font-size: var(--fs-s); line-height: 1.2; }
.seg button + button { border-left: 1px solid var(--line); }
.seg button:first-child { border-radius: 9px 0 0 9px; }
.seg button:last-child { border-radius: 0 9px 9px 0; }
.seg button:only-child { border-radius: 9px; }
.seg-view { flex: none; height: var(--tap); box-sizing: border-box; align-items: stretch; border-radius: 10px; background: var(--surface); }
.seg-view .icon-btn { width: var(--tap); height: auto; }
.seg-lines .linkbtn { height: auto; padding: 0 var(--sp-3); font-size: var(--fs-s); font-weight: 600; color: var(--text); }
/* the row above the notes: every part on one line, with one gap, from the left edge of the notes */
.score-tools { gap: var(--sp-2); padding: 0 0 var(--sp-2); font-size: var(--fs-s); }
.view-tools { display: contents; }
.ed-actions { gap: var(--sp-1); margin: 0; }
.fold-box, label.view-fold, label.pr-fold { display: none; }
.rep-head { gap: var(--sp-2); margin-bottom: var(--sp-3); }
.row-actions, .piece-foot, .people-tools, .e-head, .e-ctl, .tour-offer-list, .dl, .pr-voices, .vs-links, .inline-add { gap: var(--sp-2); }
.eyebrow { margin-bottom: var(--sp-2); }
.pieces, .admin-grid, .admin-links, .setup-grid, .setup-col, .people-side { gap: var(--sp-4); }
.home-head, .tour-offer, .notices, #voteSection { margin-bottom: var(--sp-5); }
.notices .notice, #voteSection .vote-card { padding: var(--sp-3) var(--sp-4); }
label.switch + label.switch, #settingsDialog label.switch + label.switch { margin-top: calc(-1 * var(--sp-2)); }
/* what a vote is («offen») stands on the line of its title, not under it */
.vote-card { grid-template-columns: minmax(0, auto) auto minmax(0, 1fr); column-gap: var(--sp-2); align-items: center; }
.vote-card > * { grid-column: 1 / -1; }
.vote-card .vote-state { display: contents; }
.vote-card h3 { grid-column: 1; grid-row: 1; font-size: var(--fs-l); }
.vote-card .vote-state .tag { grid-column: 2; grid-row: 1; white-space: nowrap; }
.vote-card .vote-state .muted { grid-column: 3; grid-row: 1; justify-self: end; font-size: var(--fs-xs); }
#voteSection .vote-card { grid-template-columns: minmax(0, auto) auto minmax(0, 1fr) auto; gap: var(--sp-1) var(--sp-2); }
#voteSection .vote-card h3 { grid-column: 1; grid-row: 1; font-size: var(--fs-l); }
#voteSection .vote-card .vote-state .muted { grid-column: 1 / 4; grid-row: 2; justify-self: start; }
#voteSection .vote-card .piece-foot { grid-column: 4; grid-row: 1 / span 2; }
.tag, .badge { font-size: var(--fs-xs); }
.linkbtn { font-size: var(--fs-s); }
/* what the page says for a moment: solid, never half there */
.toast { padding: var(--sp-3) var(--sp-4); border-radius: 12px; font-size: var(--fs-m); font-weight: 600; line-height: 1.35; opacity: 1; visibility: hidden; transition: none; box-shadow: 0 8px 28px rgba(0, 0, 0, .35); max-width: min(92vw, 34rem); width: max-content; }
.toast.show { visibility: visible; }
/* the voices: the dynamic with its word in a column of its own */
#mixer .mix-dyn[data-word]::after { font: 400 var(--fs-xs)/1.15 system-ui, sans-serif; }
.mix-head { font-size: var(--fs-xs); }
.t-tempo .linkbtn { font-size: inherit; }
/* the words of all voices: the help folds away, and every tool of the two rows has one height */
.w-head { gap: var(--sp-2) var(--sp-4); }
.w-head h2 { margin: 0 var(--sp-2) 0 0; align-self: end; line-height: var(--tap); }
.w-tool { gap: var(--sp-2); height: var(--tap); }
.w-tool select, .w-tool input { height: var(--tap); padding: 0 var(--sp-3); border-radius: 10px; }
.w-tool select { padding-right: 30px; }
.w-help { margin: 0; font-size: var(--fs-s); }
.w-help summary { display: inline-flex; align-items: center; min-height: var(--tap); cursor: pointer; color: var(--accent); font-weight: 600; }
.w-help ul { margin: 0 0 var(--sp-2); padding-left: 1.2em; line-height: 1.5; }
/* the tools of the administration that are a sign only: a square a finger finds */
.group-del, .file-del, .tour-x { min-width: var(--tap); min-height: var(--tap); display: inline-grid; place-items: center; border-radius: 10px; }
.tour-say { margin-right: calc(var(--tap) - var(--sp-2)); }
.group-del:hover, .file-del:hover { background: color-mix(in srgb, var(--down) 12%, transparent); }
.check input[type=checkbox], .people-table .pick input { width: 20px; height: 20px; flex: none; }

/* a wide screen: the editor stands beside the notes, which keep their height (its box is no higher than a
   line there, so that the page counts the bar that plays alone) */
@media (min-width: 1200px) {
  .editor { max-height: none; overflow: visible; border-top: 0; box-shadow: none; background: none; }
  .editor .e-in {
    position: fixed; z-index: 11; right: 0; top: var(--bar-h, 58px); bottom: var(--play-h, 0px); width: 420px; max-width: none; margin: 0;
    padding: 0 var(--sp-4) var(--sp-4); align-content: start; overflow-y: auto; overscroll-behavior: contain;
    background: var(--raised); border-left: 2px solid var(--accent); box-shadow: -10px 0 30px rgba(0, 0, 0, .12);
  }
  #app:has(#editor:not([hidden])) #practice { max-width: none; margin: 0 420px 0 0; }
  #app:has(#editor:not([hidden])) #practice .layout { grid-template-columns: minmax(0, 1fr); }
  #app:has(#editor:not([hidden])) #practice:not(.side-open) .side { display: none; }
  body.focus:has(#editor:not([hidden])) .score-card { right: 420px; }
  .e-head { padding-top: var(--sp-3); }
  .e-head #edPrev { order: 0; }
  .e-head b { order: 1; flex: 1 1 0; min-width: 0; }
  .e-head #edNext { order: 2; }
  .e-head #edDone { order: 3; }
  .e-head .e-tabs { order: 4; flex: 1 1 100%; }
  .e-head .e-tabs .chip { flex: 1; }
  .e-head #edPlay { order: 5; flex: 1; }
  .e-head #edSave2 { order: 6; flex: 1; }
  .e-head .spacer { display: none; }
  .e-tools { grid-template-columns: minmax(0, 1fr); }
  .e-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
/* a tablet: the editor leaves the upper half to the notes, and its tools scroll */
@media (min-width: 561px) and (max-width: 999px) {
  .editor { max-height: calc(54dvh - var(--play-h, 0px)); }
  #practice.editing-on .tools-label { display: none; }
  #practice.editing-on .seg-lines .linkbtn, #practice.editing-on .view-chip { padding: 0 var(--sp-2); white-space: nowrap; }
}
/* below the width of a desk the bar that is corrected is heard with a sign, and the head of the editor is one row */
@media (max-width: 999px) {
  .e-head #edPlay { width: var(--tap); padding: 0; font-size: 0; }
  .e-head #edPlay::before { content: "▶"; font-size: var(--fs-s); }
  .e-head #edPlay[aria-pressed="true"]::before { content: "■"; }
}
@media (max-width: 720px) {
  .score-tools { padding: 0 var(--sp-2) var(--sp-2); }
}

/* ---- a phone ---- */
@media (max-width: 560px) {
  dialog { --dp: 16px; padding: 16px; }
  .pieces, .admin-grid, .admin-links { gap: var(--sp-3); }
  .home-head, .tour-offer, .notices, #voteSection { margin-bottom: var(--sp-4); }
  #home > .rep-head .ghost { padding: var(--sp-1) var(--sp-2); font-size: var(--fs-xs); }
  .bar .ghost { padding: var(--sp-1) var(--sp-2); font-size: var(--fs-xs); }
  #meBtn { max-width: none; }
  /* the tutorials that are offered: all of them, one beside the other */
  .tour-offer-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-1); flex: 1 1 100%; }
  .tour-offer-list .chip { padding: var(--sp-1); white-space: normal; text-align: center; font-size: var(--fs-xs); }
  .tour-offer-list small { display: none; }
  /* a piece: its title, its voices on one line, how it begins, and the two buttons */
  .piece { gap: var(--sp-2); }
  .piece .tags { flex-wrap: nowrap; overflow: hidden; }
  .piece .tags .tag { flex: none; }
  .piece .tags:empty { display: none; }
  .piece .facts { min-height: 0; }
  .piece .facts > span:not(.words) { display: none; }
  .piece.folder .folder-list { display: none; }
  #voteSection .vote-card { grid-template-columns: minmax(0, auto) auto minmax(0, 1fr); }
  #voteSection .vote-card .piece-foot { grid-column: 1 / -1; grid-row: 3; }
  #voteSection .vote-card .piece-foot .primary { flex: 1; }
  .toast { left: var(--sp-3); right: var(--sp-3); width: auto; max-width: none; transform: none; }
  #markKinds { overflow: hidden; }
  #markKinds button, #markKinds button:first-child, #markKinds button:last-child { border-radius: 0; border-left: 0; }
  #markKinds button + button { border-top: 1px solid var(--line); }

  /* a piece that is open: one row with the way back, the title and the button for how the notes look;
     the bar of the site comes back with the first page */
  body:not([data-tour]) #app:has(> #practice:not([hidden])) > .bar { display: none; }
  #practice { padding-top: 0; }
  #practice .p-head { display: flex; flex-wrap: nowrap; align-items: center; gap: var(--sp-2); min-height: 48px; margin: 0; padding: 0 var(--sp-2) 0 0; }
  #practice .p-head > div { display: flex; align-items: center; flex: 1; min-width: 0; }
  #practice .back { flex: none; justify-content: center; width: 48px; height: 48px; padding: 0; font-size: 0; }
  #practice .back::before { content: "←"; font-size: var(--fs-xl); line-height: 1; }
  #practice .p-head h1 { flex: 1; min-width: 0; font-size: var(--fs-l); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fold-box { display: block; position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
  .view-fold:not(.in-card) { display: inline-flex; flex: none; cursor: pointer; }
  .view-fold::after, .pr-fold::after { content: "▾"; margin-left: var(--sp-1); }
  #practice:has(#viewFold:checked) .view-fold, .pr-opts:has(#printFold:checked) .pr-fold { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
  #practice:has(#viewFold:checked) .view-fold::after, .pr-opts:has(#printFold:checked) .pr-fold::after { content: "▴"; }
  .fold-box:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 2px; }
  /* closed, the row keeps what is of the moment: one's notes on the piece, and undo, redo and save; a tutorial shows all of it */
  body:not([data-tour]) #practice:not(:has(#viewFold:checked)) .score-tools > :not(.ed-actions, .view-tools),
  body:not([data-tour]) #practice:not(:has(#viewFold:checked)) .view-tools > :not(#marksBtn),
  body:not([data-tour]) #practice:not(:has(#viewFold:checked)) .score-tools:has(> .ed-actions[hidden]):has(#marksBtn[hidden]) { display: none; }
  body:not([data-tour]) #practice:not(:has(#viewFold:checked)) .score-tools { display: flex; justify-content: flex-end; }
  .score-tools { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; padding-top: var(--sp-1); }
  .score-tools .tools-label { grid-column: 1 / -1; margin-bottom: calc(-1 * var(--sp-1)); font-size: var(--fs-xs); }
  .score-tools .seg-lines { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; }
  .score-tools .seg-view:not(.seg-lines) { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
  .score-tools .seg-view .icon-btn { width: auto; }
  .score-tools .view-chip { grid-column: span 2; padding: 0 var(--sp-1); }
  .score-tools .spacer { display: none; }
  .score-tools .ed-actions { grid-column: 1 / -1; justify-self: end; }
  body.focus .view-fold.in-card { display: inline-flex; position: absolute; right: var(--sp-2); top: var(--sp-1); z-index: 4; min-height: 32px; padding: 0 var(--sp-2); font-size: var(--fs-xs); opacity: .92; cursor: pointer; }
  body.focus:has(#viewFold:checked) .view-fold.in-card { position: static; display: flex; width: max-content; margin: 0 var(--sp-2) var(--sp-1) auto; }

  /* what "…" opens: three low rows; the tempo is one line */
  .transport.more .t-in { row-gap: var(--sp-1); }
  .transport.more .t-break { margin: 0; }
  .transport.more .t-tools { flex: 1 1 100%; }
  .transport.more .t-tools button { flex: 1; justify-content: center; }
  #transport.more .t-icons { flex: 1 1 0; min-width: 0; flex-wrap: wrap; justify-content: flex-start; gap: var(--sp-1); padding: 0; border: 0; border-radius: 0; background: none; }
  #transport.more .t-icons .icon-btn {
    flex: 1 1 64px; display: grid; grid-auto-flow: row; place-items: center; align-content: center; gap: 0; width: auto; height: 44px; padding: 0 2px;
    border: 1px solid var(--line); border-radius: 12px; font-size: var(--fs-xs); font-weight: 600; line-height: 1.1; white-space: nowrap;
  }
  #transport.more .t-icons .icon-btn svg { width: 17px; height: 17px; }
  #transport.more .t-print { flex: none; align-self: flex-end; }
  .transport.more .t-tempo { display: grid; grid-template-columns: auto auto minmax(0, 1fr); align-items: center; gap: var(--sp-2); flex: 1 1 100%; }
  .transport.more .t-tempo { font-size: var(--fs-s); color: var(--muted); }
  .transport.more .t-tempo .row { display: contents; }
  .transport.more .t-tempo .row > span { order: 1; white-space: nowrap; }
  .transport.more .t-tempo .linkbtn { order: 2; }
  .transport.more .t-tempo input { order: 3; }

  #practice #side #mixer .mix-row, #practice #side #mixer .mix-head { grid-template-columns: calc(3 * var(--mini) + 6px) minmax(0, 1fr) 2.4em; }
  #side #mixer .mix-dyn[data-word]::after { display: none; }

  /* the editor: the bar that is corrected and its way out on the first row, the kinds of tools on the second */
  .e-head b { order: 1; flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .e-head #edPrev { order: 0; }
  .e-head #edNext { order: 2; }
  .e-head #edPlay { order: 3; }
  .e-head #edDone { order: 4; }
  .e-head .e-tabs { order: 5; flex: 1 1 auto; }
  .e-head .e-tabs .chip { flex: 1; padding: 0 var(--sp-1); }
  .e-head #edSave2 { order: 6; }
  .e-head .spacer { display: none; }

  /* printing: the sheet first, what is chosen behind a button */
  .pr-opts { grid-template-columns: minmax(0, 1fr) auto; align-items: center; margin-bottom: var(--sp-2); }
  .pr-opts > * { grid-column: 1 / -1; }
  .pr-opts > h2 { grid-column: 1; }
  .pr-opts > .pr-fold { display: inline-flex; grid-column: 2; grid-row: 1; cursor: pointer; }
  .pr-opts:not(:has(#printFold:checked)) > :not(h2, .pr-fold, .fold-box) { display: none; }
  .pr-pages { height: auto; flex: 1; min-height: 46dvh; }
  dialog.print .pr-body { display: flex; flex-direction: column; }
  dialog.print .pr-view { flex: 1; min-height: 46dvh; }
  .pr-hint { font-size: var(--fs-xs); }
}
/* the voices: the name on a line of its own, and below it the buttons, a long slider and the dynamic */
#mixer { --mini: 36px; }
#side #mixer .mix-row, #side #mixer .mix-head { grid-template-columns: calc(3 * var(--mini) + 6px) minmax(0, 1fr) 3.6em; gap: var(--sp-1) var(--sp-2); }
#mixer .mix-row .mix-name { grid-column: 1 / -1; }
#mixer .mix-row .mix-btns { justify-content: flex-end; }
#mixer .mix-btns .mini, #mixer .mix-head .mini, #mixer .mini-gap { width: var(--mini); }
#mixer .mix-head > span:first-child { display: none; }
.mix-opts { padding-left: 0; }
@media (pointer: coarse), (max-width: 999px) { #mixer { --mini: var(--tap); } }
@media (max-width: 999px) {
  /* the administration on a finger: the rows of a person's groups, each a line to press */
  .person-groups { display: grid; gap: var(--sp-2); }
  .person-groups .membership { display: flex; justify-content: space-between; min-height: var(--tap); padding: 0 var(--sp-3); }
  .person-groups .check { min-height: var(--tap); padding-right: var(--sp-2); }
  .check input[type=checkbox], .people-table .pick input { width: 24px; height: 24px; }
  .group-del, .file-del { border: 1px solid var(--line); }
  .group-acts .linkbtn, .group-pw .linkbtn { display: inline-flex; align-items: center; min-height: var(--tap); padding: 0 var(--sp-1); }
}

/* ---------- what the page says in words since the UI pass (not of that site) ---------- */
/* a take that was hardly heard: one card in the place of the tiles, and nothing else of the verdict */
.stats .stat.unheard { grid-column: 1 / -1; gap: 10px; justify-items: start; padding: 16px; }
.stat.unheard b { font-size: var(--fs-l); letter-spacing: 0; }
.stat.unheard span { font-size: var(--fs-m); font-weight: 400; }
#takeDialog.unheard .take-plot, #takeDialog.unheard .plot-bar, #takeDialog.unheard h3, #takeDialog.unheard #takeSections, #takeDialog.unheard #takeShow { display: none; }
/* a take under its voice: its name in full, and what is done with it in words on a line of its own */
.mix-row.take .mix-name > span { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
.mix-row.take .mix-btns { justify-content: flex-end; }
.take-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.take-act { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface); color: var(--text); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.take-act svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.take-act:hover, .take-act[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.take-act.del { margin-left: auto; color: var(--muted); }
.take-act.del:hover { border-color: var(--danger); color: var(--danger); }
@media (pointer: coarse) { .take-act { min-height: 44px; padding: 8px 12px; } }
/* over the voices: what their three buttons and the slider are for; the columns are those of .mix-row */
.mix-head { display: grid; grid-template-columns: minmax(0, 1fr) auto 62px; align-items: end; gap: 8px; color: var(--muted); font-size: var(--fs-xs); line-height: 1.2; }
#mixer:has(.mix-dyn) .mix-head { grid-template-columns: minmax(0, 1fr) auto 62px 2.1em; }
.mix-head .mini { height: auto; border: 0; background: none; color: inherit; overflow: visible; white-space: nowrap; }
.mix-head > span:last-child { text-align: center; }
/* the dynamic that is written at this place, with its word beneath */
.mix-dyn[data-word]::after { content: attr(data-word); display: block; font: 400 .6rem/1.1 system-ui, sans-serif; color: var(--muted); }
/* signing in, and the tip before the first take */
.gate-part .gate-hint { margin: -8px 0 0; font-size: var(--fs-xs); color: var(--muted); }
.gate-more { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.gate-more .linkbtn { min-height: 32px; }
.wiz-tip { margin: 0; font-size: var(--fs-s); text-align: center; }
/* the table of the words is offered from the width of a tablet on: it scrolls inside itself */
@media (min-width: 768px) and (max-width: 999px) { #edWords { display: revert; } }
@media (min-width: 561px) {
  #markDialog { width: min(92vw, 620px); }
  #markKinds button { padding: 9px 4px; font-size: var(--fs-s); white-space: nowrap; }
  #voteSection .vote-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
}
@media (min-width: 700px) and (max-width: 999px) {
  .t-tools button { width: 60px; font-size: var(--fs-xs); }
  .e-head b { min-width: 0; padding: 0 4px; }
}
@media (max-width: 560px) { .t-in { padding: 6px 10px; } }

/* ---------- round 2, behaviour: the words on the signs, the take that runs and the one that is done,
   going on where the singer left off, the page of the notes that shows ---------- */
/* the caption of a button of the bar that plays: shown where there is room for it */
.cap { display: none; }
@media (max-width: 999px) {
  .transport.more .t-icons .icon-btn { width: auto; padding: 0 12px 0 10px; border-radius: 999px; grid-auto-flow: column; gap: 6px; font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
  .transport.more .t-icons .cap { display: inline; }
}
@media (max-width: 699px) { .transport.more .t-icons { flex-wrap: wrap; border-radius: 22px; } }
/* the note that was tapped: its three buttons say what they play */
.np-acts button { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; width: auto; min-width: 60px; height: 56px; padding: 4px 10px; font-size: var(--fs-xs); font-weight: 600; }
.np-acts .np-forks { width: auto; }
.np-acts .np-play { width: auto; border-radius: 14px; }
.np-acts svg { height: 22px; }
/* the beat that is counted in, large over the notes */
.count-big {
  position: fixed; left: 50%; top: 42%; transform: translate(-50%, -50%); z-index: 56; min-width: 1.7em; padding: 0 .3em; border-radius: 28px;
  background: color-mix(in srgb, var(--fill) 62%, transparent); color: var(--fill-ink); font-size: 6rem; font-weight: 800; line-height: 1.45;
  font-variant-numeric: tabular-nums; text-align: center; pointer-events: none;
}
/* while a take is sung: a slim red strip on the bar that plays */
.rec-strip { display: flex; align-items: center; gap: var(--sp-2); min-height: 32px; padding: 2px var(--sp-4); background: #b3261e; color: #fff; font-size: var(--fs-s); font-weight: 600; }
.rec-strip #recStripText { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rec-dot { animation: rec-blink 1.2s ease-in-out infinite; }
.rec-strip button { flex: none; min-height: 28px; padding: 2px 12px; border: 1px solid rgba(255, 255, 255, .75); border-radius: 999px; background: transparent; color: #fff; font-size: var(--fs-xs); font-weight: 700; }
@keyframes rec-blink { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
@media (pointer: coarse) { .rec-strip { min-height: 44px; } .rec-strip button { min-height: 36px; } }
/* the take that was just sung: a card on the bar that plays */
.take-done { max-width: 1240px; margin: 0 auto; padding: var(--sp-3) var(--sp-4) var(--sp-2); border-bottom: 1px solid var(--line); }
.take-done-head { display: flex; align-items: center; gap: var(--sp-2); }
.take-done-head b { flex: 1; font-size: var(--fs-l); }
.take-done .take-kept, .take-done-game { margin: 0; font-size: var(--fs-s); color: var(--muted); }
.take-done-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-2); }
.take-done-acts .primary, .take-done-acts .ghost { min-height: var(--tap); }
.take-done-del { margin-left: auto; min-height: var(--tap); padding: 0 var(--sp-2); color: var(--muted); }
.mix-row .take-kept { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--muted); }
/* a warm-up or a canon that runs: what calls it off is the quiet one */
.warm-cancel { min-height: var(--tap); padding: 0 var(--sp-2); font-size: var(--fs-s); color: var(--muted); }
/* going on where the singer left off, and the way back out of a folder */
.continue { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); padding: var(--sp-4); }
.continue-says { flex: 1; min-width: 0; display: grid; gap: 2px; }
.continue-says .eyebrow { margin: 0; }
.continue-says b { font-size: var(--fs-l); line-height: 1.25; }
.continue .primary { flex: none; min-height: 44px; padding-left: var(--sp-5); padding-right: var(--sp-5); }
.rep-head .folder-back { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
/* which page of the notes that are turned shows: where it stands is set by the script */
.page-says {
  position: fixed; z-index: 54; transform: translateX(-50%); padding: 2px 12px; border: 1px solid var(--line); border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums;
  white-space: nowrap; pointer-events: none;
}
/* the administration, from the bar */
.admin-menu { left: auto; right: 0; bottom: auto; top: calc(100% + 8px); z-index: 40; }
.admin-menu .menu-item { min-height: var(--tap); text-decoration: none; }
/* the numbers of a verdict, and who made the site: folded away */
.stat-exact { grid-column: 1 / -1; font-size: var(--fs-s); color: var(--muted); }
.stat-exact summary, .about-more summary { padding: var(--sp-2) 0; cursor: pointer; }
.stat-exact p { margin: 2px 0 0; }
.about-more { margin: var(--sp-2) 0 var(--sp-3); }
.about-more summary { color: var(--muted); font-size: var(--fs-s); }
.about-more p { margin-top: var(--sp-2); font-size: var(--fs-s); }
/* the name of a voice under its dot on the field */
.place-dot .dot-name { position: absolute; left: 50%; top: calc(100% + 1px); transform: translateX(-50%); color: var(--text); font-size: .7rem; font-weight: 600; white-space: nowrap; pointer-events: none; }

/* ---------- round 3, layout (not of that site): one floor of type, the first page in the order of use,
   nothing over the notes, one shape for what stands side by side ---------- */
/* What is read is 15 px or more (--fs-s); 14 px (--fs-xs) is for chips, tags and labels in capitals; --fs-tiny is for signs. */
.field-label, .gate-part .gate-hint, .hint, .people-panel .hint, .vote-edit .hint, .vote-add .hint, .vote-new .hint, #settingsDialog .muted, .tune-row .muted,
dialog.about p.muted, .about-version, .about-link, .pr-none, .pr-count, .pr-hint, .e-hint, .e-label, .roll-hint, .mix-switch, .mix-head, .menu-item small, .warm-item span,
.mix-row .take-kept, .mix-row.take .mix-name, .take-act, .tour-offer-foot .linkbtn, .t-tempo .row, .pos small, .np-acts button, .np-voice, .group-pw, .group-pw .ghost, .group-pw input[readonly],
.membership .lead, .marks-list small, .chip.pick small, .colour-pick code, .wiz-steps li, .mix-opts select, .mix-name em, .found-place, .vs-by, .vs-who, .stat span, .stat small,
.tile span:last-child, .range-strip span, .wiz-fine, #placeSoloHint, .plot-bar .muted, .w-picked, .person-who .muted, .page-says, .rec-strip button, .people-table .seen, .people-table .mail,
.people-table .own, .vote-card .vote-state .muted, #voteSection .vote-card .vote-state { font-size: var(--fs-s); }
.place-dot .dot-name { font-size: var(--fs-xs); }
/* what can be switched is written in the colour of the text, on or off; only the fill says which */
.seg button:not([aria-pressed="true"]), .score-tools .chip:not([aria-pressed="true"]) { color: var(--text); }
.seg button { flex: 1 1 auto; }
.e-tools .seg > .chip { flex: none; }
@media (min-width: 561px) { .editor .e-tools .seg { flex: none; flex-wrap: nowrap; } }
/* the tempo of a desk: its line stays one line */
@media (min-width: 1000px) {
  .t-tempo .row { gap: var(--sp-2); font-size: var(--fs-xs); }
  .t-tempo .row > span { white-space: nowrap; }
  .t-tempo #tempoReset { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  @container (max-width: 199px) { .t-tempo .row { gap: var(--sp-1); } }
}
label.switch + label.switch, #settingsDialog label.switch + label.switch { margin-top: 0; }
.switch, #settingsDialog .switch { min-height: var(--tap); margin: 0; }
/* what calls something off or deletes it is a button like the ones beside it */
.warm-cancel, .take-done-del, .group-acts .linkbtn:not(.group-del), .group-pw .linkbtn {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: var(--sp-1) var(--sp-3); border: 1px solid var(--line); border-radius: 10px;
  background: transparent; color: var(--text); font-size: var(--fs-s); font-weight: 600; line-height: 1.2;
}
.warm-cancel, .take-done-del { padding: var(--sp-1) var(--sp-4); font-size: var(--fs-m); }
.take-done-del { color: var(--danger); }
.group-pw .ghost { min-height: var(--tap); }
.group-acts .group-del { border: 1px solid var(--line); font-size: var(--fs-xxl); font-weight: 400; }
.notices-set { margin-top: var(--sp-4); }
.admin-card #zipUpload { justify-self: end; }
.e-tools input[type=text] { min-width: 5em; }
.group-row { align-items: center; padding: var(--sp-2) var(--sp-3); }
.group-acts { gap: var(--sp-2); }
.group-pw { gap: var(--sp-2); }
/* a person's groups: rows of one width */
.person-dialog .person-groups { display: grid; gap: var(--sp-2); }
.person-dialog .membership { display: flex; justify-content: space-between; min-height: var(--tap); padding: 0 var(--sp-3); }

/* the first page: going on where one left off, then the search and the pieces; what the choir is told stands in one row before the pieces */
#home { display: flex; flex-direction: column; }
.continue { margin-bottom: var(--sp-4); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--accent) 7%, var(--surface)); }
.home-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 0 var(--sp-4); align-items: start; }
.home-side:not(:has(> section:not([hidden]))) { display: none; }
.home-side .notices, .home-side #voteSection { margin-bottom: var(--sp-4); }
.home-side #noticeSection > .eyebrow, .home-side #voteSection > .rep-head { display: flex; align-items: center; min-height: 32px; margin: 0 0 var(--sp-1); }
.home-side .rep-head a.linkbtn { min-height: 32px; }
/* with them above the pieces, the row of the search needs no name */
body:is(:not([data-folder]), [data-folder=""]) #home:has(.home-side > section:not([hidden])) > .rep-head .crumbs { display: none; }
body:is(:not([data-folder]), [data-folder=""]) #home:has(.home-side > section:not([hidden])) > .rep-head #homeSearch { order: -1; flex-basis: 320px; }
/* who has practised is offered the tutorials below the pieces */
#home:has(#continueCard:not([hidden])) > #tourOffer { order: 1; margin: var(--sp-5) 0 0; }
#home:has(#continueCard:not([hidden])) > #pieces ~ * { order: 2; }

/* the bar that plays: the word under the bar has its room, so that counting in moves nothing */
button.pos small { margin: 0 -12px; text-align: center; white-space: nowrap; }
/* the pens stand on the bar that plays, and the notes end above them */
body { --ink-h: 67px; }
.ink-bar { left: 0; right: 0; bottom: var(--transport-h, 80px); width: auto; max-width: none; margin: 0; justify-content: center; border-width: 1px 0 0; border-radius: 0; background: var(--surface); box-shadow: none; }
body.focus:not(.paged):has(#inkBar:not([hidden])) .score-card { bottom: calc(var(--transport-h, 80px) + var(--ink-h)); }
body:not(.focus):has(#inkBar:not([hidden])) #practice { padding-bottom: calc(60px + var(--ink-h)); }

/* the voices: the three buttons, and beside them the name over its slider */
#mixer .mix-row .mix-btns { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
#mixer .mix-row .mix-name { grid-column: 2 / -1; grid-row: 1; }
#mixer .mix-row.with-dyn .mix-name { grid-column: 2; }
#mixer .mix-row > input[type=range] { grid-column: 2; grid-row: 2; }
#mixer .mix-row .mix-dyn { grid-column: 3; grid-row: 1 / span 2; align-self: center; }
#mixer .mix-row .take-kept { grid-row: 3; }
#mixer .mix-row .take-acts { grid-row: 4; }
#side #mixer .mix-row { row-gap: 0; }
#mixer .mix-name > span { white-space: normal; overflow: visible; overflow-wrap: anywhere; }
/* a slider is as high as a finger where it is touched, and as low as before in its row */
@media (pointer: coarse), (max-width: 999px) {
  input[type=range] { height: 44px; margin: -14px 0; }
}

/* the editor: its labels at the top of their rows, and below the width of a desk the bar that is corrected no higher than it must be */
.e-row { align-items: start; }
.e-label { line-height: var(--tap); }
.e-tools input.chord-in { flex: 1 1 5em; min-width: 5em; }
label.ed-fold { display: none; }
@media (max-width: 999px) {
  #edScore { min-height: 0; }
  #edScore svg { width: auto; height: auto; max-width: 100%; max-height: 190px; }
  .editor:has(#edTabPiece[aria-pressed="true"]) #edScore { display: none; }
}
@media (min-width: 561px) and (max-width: 999px) {
  .editor { max-height: calc(60dvh - var(--play-h, 0px)); }
}

/* a vote of the first page below the width of a desk: its title and its state, and the button beside them */
@media (max-width: 999px) {
  #voteSection .vote-card { grid-template-columns: minmax(0, 1fr) auto; }
  #voteSection .vote-card h3 { grid-column: 1; grid-row: 1; font-size: var(--fs-m); }
  #voteSection .vote-card .vote-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1) var(--sp-2); grid-column: 1; grid-row: 2; }
  #voteSection .vote-card .piece-foot { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
  #voteSection .vote-card .piece-foot .primary { flex: none; }
}
/* the captions over the three buttons of a voice have their width */
#mixer { --mini: 40px; }
@media (pointer: coarse), (max-width: 999px) { #mixer { --mini: var(--tap); } }
.mix-head { font-size: var(--fs-xs); }

@media (max-width: 560px) {
  /* the bar of the site: one row */
  .bar-in { flex-wrap: wrap; gap: 3px 5px; }
  .bar-in > .spacer { display: none; }
  .bar .brand { margin-right: auto; }
  .bar .ghost { padding: var(--sp-1) 5px; }

  /* the first page */
  #home > .rep-head .ghost { flex: 1 1 30%; padding: 2px 6px; white-space: normal; line-height: 1.15; }
  .piece .tags { flex-wrap: wrap; overflow: visible; }
  .continue { padding: var(--sp-3) var(--sp-4); }

  /* the take that was just sung: its buttons in two rows */
  .take-done-acts .primary, .take-done-acts .ghost, .take-done-acts .take-done-del { padding: var(--sp-1) var(--sp-3); font-size: var(--fs-s); }
  .take-done-acts [data-done="again"] { order: 1; }
  .take-done-acts .take-done-del { order: 2; }
  #warmDialog .row-actions > .spacer { display: none; }
  #warmDialog .row-actions > button { flex: 1 1 auto; }

  /* the bar that plays: the bar and its word take the room that is left, in the middle of it */
  .t-main .pos { flex: 1 1 0; min-width: 54px; }
  .t-main .pos small { font-size: var(--fs-xs); }
  body { --ink-h: 109px; }
  /* the notes on the whole screen: one's notes on the piece stand beside the button for how the notes look */
  body.focus #practice:not(:has(#viewFold:checked)) .score-tools { padding-right: 104px; }

  /* the editor: the bar that is corrected folds away */
  #edScore svg { max-height: 150px; }
  .editor .ed-fold { display: inline-flex; justify-self: end; position: relative; z-index: 3; min-height: 32px; margin-bottom: -40px; padding: 0 var(--sp-2); font-size: var(--fs-xs); opacity: .92; cursor: pointer; }
  .editor .ed-fold::after { content: "▴"; margin-left: var(--sp-1); }
  .editor:has(#edFold:checked) .ed-fold { margin-bottom: 0; }
  .editor:has(#edFold:checked) .ed-fold::after { content: "▾"; }
  .editor:has(#edFold:checked) #edScore, .editor:has(#edTabPiece[aria-pressed="true"]) .ed-fold { display: none; }

  /* a piece of the administration: what ends the window in one row, the rest in a row above it */
  #editDialog .row-actions { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  #editDialog .row-actions > * { grid-column: span 2; padding-left: var(--sp-1); padding-right: var(--sp-1); font-size: var(--fs-s); text-align: center; }
  #editDialog .row-actions > .spacer { display: none; }
  #editDialog .row-actions > :is(#editCancel, [type=submit]) { grid-column: span 3; font-size: var(--fs-m); }
}
@media (max-width: 389px) {
  .t-in { gap: 4px; }
}
/* ---------- end of round 3, layout ---------- */

/* ---------- round 3, behaviour: pages of whole lines, the count in the bar that plays, one flag for a bar ---------- */
/* the notes that are turned: what follows the last whole line of a page is covered, down to the end of the
   frame; where it begins and how high it is is set by the script */
.page-mask { position: absolute; left: 0; right: 0; z-index: 4; background: var(--surface); }
.page-mask[hidden] { display: none; }
/* which page shows: between the two buttons that turn it, in their strip of the bar that plays */
.page-says {
  left: 50%; top: auto; bottom: calc(var(--play-h, 80px) - var(--tap) - var(--sp-1)); z-index: 33; display: grid; place-items: center;
  width: calc(100vw - 2 * min(30vw, 160px) - 4 * var(--sp-2)); height: var(--tap); padding: 0; border: 0; border-radius: 0; background: none;
  color: var(--text); font-size: var(--fs-s); line-height: 1.2; text-align: center; white-space: normal;
}
.page-says[hidden] { display: none; }
/* notes of one page: nothing turns them, and the bar that plays has no strip for it */
body.paged.one-page .transport .t-in { padding-top: var(--sp-2); }
/* the beat that is counted in: large where the number of the bar stands, and over no notes */
.pos { position: relative; }
.pos .count-big {
  position: absolute; inset: 0; transform: none; z-index: 1; display: grid; place-items: center; min-width: 0; padding: 0; border-radius: 12px;
  background: var(--fill); color: var(--fill-ink); font-size: calc(var(--t-row, 52px) * .78); font-weight: 800; line-height: 1;
}
.pos .count-big[hidden] { display: none; }
body[data-count="go"] .pos .count-big { font-size: var(--fs-l); }
.pos:has(> .count-big:not([hidden])) > :not(.count-big) { visibility: hidden; }
/* several notes on one bar: one flag, which says how many */
.mark-flag.many { background: var(--fill); color: var(--fill-ink); }
/* the list of the notes: a row goes to its bar; beside it, what changes the note and what takes it away */
.marks-list .marks-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--sp-1); }
.marks-list .marks-act { display: inline-flex; align-items: center; justify-content: center; min-height: var(--tap); padding: 0 var(--sp-3); font-size: var(--fs-s); }
.marks-all { justify-self: start; min-height: var(--tap); font-size: var(--fs-s); }
@media (max-width: 560px) {
  .marks-list .marks-row { grid-template-columns: 1fr 1fr; }
  .marks-list .marks-go { grid-column: 1 / -1; }
}
/* the room that is chosen, in a word beside its sign */
.venue-btn .venue-name { font-size: var(--fs-s); white-space: nowrap; }
/* ---------- end of round 3, behaviour ---------- */

/* ---------- round 4, layout (not of that site) ---------- */
/* what heads a page stands as far from the sides of the window as the page does, and as far from its top and
   its foot as the buttons of the bar that plays stand from theirs */
:root { --gutter: 16px; }
.bar-in { padding: 10px var(--gutter); }
.vote-page .vote-talk, .votes-side .vote-new { top: calc(61px + var(--gutter)); }
@media (pointer: coarse) { .vote-page .vote-talk, .votes-side .vote-new { top: calc(69px + var(--gutter)); } }
@media (max-width: 999px) { .bar-in { padding: 8px var(--gutter); } }
@media (max-width: 720px) {
  #practice .p-head { padding: 0 var(--gutter); }
}
@media (max-width: 560px) {
  /* a phone: the buttons in one row, as far from the edges as those of the bar that plays; the name of the site
     stands beside them where it has the room, and falls out of its row where it has not */
  .bar-in { flex-wrap: nowrap; gap: 4px; padding: 6px 10px; }
  .bar .brand { flex: 1 1 0; flex-wrap: wrap; align-content: flex-start; gap: 0 6px; min-width: 0; height: var(--tap); min-height: 0; margin: 0; overflow: hidden; font-size: var(--fs-s); line-height: var(--tap); white-space: nowrap; }
  .bar .brand::before { content: ""; width: 0; height: var(--tap); margin-right: -6px; }
  .bar .ghost, .bar .menu-wrap { flex: none; }
  .bar .ghost { padding: var(--sp-1) 6px; }
  #practice .p-head { padding: 6px 10px 6px 0; }
  body.focus .view-fold.in-card { right: var(--gutter); top: var(--gutter); }
  body.focus:has(#viewFold:checked) .view-fold.in-card { margin: var(--sp-2) var(--gutter) var(--sp-1) auto; }
  body.focus #practice:not(:has(#viewFold:checked)) .score-tools { padding-right: calc(var(--gutter) + 96px); }
  /* with the administration: the votes are the first line of what its button opens */
  .bar-in:has(#adminWrap:not([hidden])) #votesLink { display: none; }
  .bar #adminWrap { position: static; }
  .bar .admin-menu { left: var(--gutter); right: var(--gutter); top: calc(100% + var(--sp-1)); }
}
.admin-menu .menu-votes { display: none; }
@media (max-width: 560px) { .bar-in:has(#votesLink:not([hidden])) .admin-menu .menu-votes { display: flex; } }

/* which page shows: on one line in the middle of the window; on a phone the two buttons that turn give it the room */
.page-says { text-wrap: balance; }
.page-says > span { white-space: nowrap; }
.stage-turn, .stage-turn.prev, .stage-turn.next { font-size: 1.75rem; font-weight: 700; padding: 0 0 3px; }
@media (max-width: 560px) {
  .stage-turn, .stage-turn.prev, .stage-turn.next { width: 80px; }
  .page-says { width: calc(100vw - 160px - 4 * var(--sp-2)); }
}

/* the bar that plays on a phone: the number of the bar stands in the middle of the window, three buttons on each side */
@media (max-width: 560px) {
  .transport .t-more { margin-left: calc(var(--t-row) - var(--t-btn)); }
  .transport:not(.more) .t-tools:not([data-tap="look"]) { order: 0; }
  /* so too while the notes are drawn on or corrected with the second row called up, which is not shown then */
  :is(body.inking, body[data-editor]) .transport.more .t-tools:not([data-tap="look"]) { display: inline-flex; flex: none; order: 0; padding: 0; border: 0; background: none; }
  :is(body.inking, body[data-editor]) .transport.more .t-tools:not([data-tap="look"]) button { flex: none; width: var(--t-btn); height: var(--t-btn); min-width: 0; padding: 0; }
  :is(body.inking, body[data-editor]) .transport.more .t-tools:not([data-tap="look"]) button:not([aria-pressed="true"]),
  :is(body.inking, body[data-editor]) .transport.more .t-tools:not([data-tap="look"]) button span { display: none; }
  body:not(.inking, [data-editor]) .transport.more .rec { display: grid; }
}
@media (max-width: 380px) {
  :is(body.inking, body[data-editor]) .transport.more .t-tools:not([data-tap="look"]) button { width: 40px; height: 40px; }
}

/* one's notes on a piece: a card as wide as the window for each, its two buttons below what it says */
#marksDialog { width: min(92vw, 560px); }
.marks-list { gap: var(--sp-3); }
.marks-list .marks-row { grid-template-columns: minmax(0, 1fr) auto auto; gap: var(--sp-2); padding: var(--sp-2); border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.marks-list .marks-go { grid-column: 1 / -1; min-height: var(--tap); align-content: center; padding: var(--sp-1) var(--sp-2); border: 0; border-radius: 8px; background: none; font-size: var(--fs-m); }
.marks-list .marks-go:hover { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.marks-list .marks-go small { color: var(--text); font-size: var(--fs-m); overflow-wrap: anywhere; }
.marks-list .marks-act { grid-row: 2; height: var(--tap); min-height: 0; }
.marks-list .marks-act[data-edit] { grid-column: 2; }
.marks-list .marks-act[data-del] { grid-column: 3; }
@media (max-width: 560px) {
  .marks-list .marks-row { grid-template-columns: 1fr 1fr; }
  .marks-list .marks-act[data-edit] { grid-column: 1; }
  .marks-list .marks-act[data-del] { grid-column: 2; }
}

/* the pens: every part of their bar has the height of what is pressed, and a frame */
body { --ink-h: calc(var(--tap) + 13px); }
.ink-bar { gap: var(--sp-2); padding: 6px var(--gutter); overflow: hidden; }
.ink-bar > button, .ink-bar .ink-colors button { box-sizing: border-box; height: var(--tap); min-width: var(--tap); }
.ink-bar > button { padding: 0 var(--sp-3); border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: var(--fs-m); font-weight: 600; line-height: 1; white-space: nowrap; }
.ink-bar > button[data-tool][aria-pressed="true"] { border-color: var(--fill); }
.ink-bar .ink-colors { gap: var(--sp-2); padding: 0; }
.ink-bar .ink-colors button { width: var(--tap); border-radius: 50%; }
.ink-bar .stage-sep { margin: 0; }
.ink-bar #inkUndo { padding: 0; font-size: var(--fs-xl); }
.ink-bar #inkUndo:disabled { opacity: .4; }
.ink-bar #inkShow { padding: 0; }
.ink-bar #inkShow[aria-pressed="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); }
.ink-bar #inkDone { padding: 0 var(--sp-4); border-color: var(--fill); background: var(--fill); color: var(--fill-ink); font-weight: 700; }
/* below the width of a tablet the pens are two rows, with everything in sight: the three pens, and under them the
   colours, the arrow that takes back, the eye and «Fertig» */
@media (max-width: 699px) {
  body { --ink-h: calc(2 * var(--tap) + 19px); }
  .ink-bar { flex-wrap: wrap; justify-content: flex-start; gap: 6px; padding: 6px 10px; overflow: visible; border-radius: 0; }
  .ink-bar .stage-sep { display: none; }
  .ink-bar > button { flex: none; padding: 0 var(--sp-2); }
  .ink-bar > button[data-tool] { flex: 1 1 28%; min-width: 0; }
  .ink-bar .ink-colors { flex: 1 1 auto; flex-wrap: nowrap; justify-content: flex-start; gap: 6px; min-width: 0; }
  .ink-bar .ink-colors button { flex: none; }
  .ink-bar #inkDone { margin-left: auto; padding: 0 var(--sp-3); }
}

/* the administration: beside the list of the persons stands what enters one, under the list Mitteilungen, and
   under both the groups, one beside the other */
@media (min-width: 1180px) {
  #peoplePage:has(#peopleCard:not([hidden])) { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--sp-5) 20px; align-items: start; }
  #peoplePage:has(#peopleCard:not([hidden])) > .p-head { grid-column: 1 / -1; margin-bottom: 0; }
  #peoplePage :is(#peopleCard:not([hidden]), #peopleBody, .people-page, .people-side) { display: contents; }
  #peoplePage .people-main { grid-column: 1; grid-row: 2; }
  #peoplePage .people-panel[aria-labelledby="enterHead"] { grid-column: 2; grid-row: 2; }
  #peoplePage .people-panel[aria-labelledby="signupHead"] { grid-column: 2; grid-row: 3; }
  #peoplePage:has(#peopleCard:not([hidden])) > .notices-set { grid-column: 1; grid-row: 3; margin-top: 0; }
  #peoplePage .people-panel[aria-labelledby="groupsHead"] { grid-column: 1 / -1; grid-row: 4; }
}
.people-panel .group-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 264px), 1fr)); align-items: start; }
.people-panel[aria-labelledby="groupsHead"] > .inline-add { width: 100%; max-width: 420px; }
/* its pages are read at the size of the rest, and what is pressed on them is written at that size */
.people-table, .people-bulk, .people-never, .people-tools select, .people-into select, .people-panel > .check, .person-groups .check, .people-panel .hint, .group-pw,
.people-table .seen, .people-table .mail, .people-table .own, .admin-card .muted, .admin-link .muted, .colour-pick, .colour-look legend, .colour-check, .edit-tutorial, .person-dialog .muted { font-size: var(--fs-m); }
.group-acts .linkbtn:not(.group-del), .group-pw .linkbtn, .group-pw .ghost, .people-into .ghost, .group-pw input[readonly] { font-size: var(--fs-m); }
.admin-card h2, .people-panel h2 { font-size: var(--fs-l); }

/* the voices of a piece on its card on a phone: on one line where five fit */
@media (max-width: 560px) {
  .piece .tags { gap: var(--sp-1); }
  .piece .tags .tag { padding: 1px 6px; }
}
/* the voices over the notes: their title on one line beside the button that puts them back */
.side-head b { white-space: nowrap; }
#practice.side-open.side-off .side-pin { padding: var(--sp-1) var(--sp-2); font-size: var(--fs-s); }
/* the words of all voices under a finger: rows a finger high */
dialog.words { --w-row: 38px; }
@media (pointer: coarse) { dialog.words { --w-row: 44px; } }
.w-name-top, .w-kind, .w-box input { height: var(--w-row); }
.w-name button { width: calc(var(--w-row) - 8px); height: calc(var(--w-row) - 8px); }
/* ---------- end of round 4, layout ---------- */

/* ---------- round 5, layout (not of that site) ---------- */
/* the title of a page of a desk stays while the page scrolls: its ground is that of the page, to both edges of it */
@media (min-width: 1000px) {
  .p-head {
    background: radial-gradient(circle at 92% -6%, var(--halo-a), transparent 30rem), radial-gradient(circle at -8% 105%, var(--halo-b), transparent 26rem), var(--bg);
    background-attachment: fixed;
  }
}
/* a window with more below what is seen says so over its last row, until its end is reached; where a browser cannot
   tell, the row has its line */
dialog:not(.print, .words, .draft) > .row-actions:last-child::before, dialog:not(.print, .words, .draft) > :last-child > .row-actions:last-child::before {
  height: 44px; background: linear-gradient(to bottom, transparent, var(--raised) 80%);
}
dialog:not(.print, .words, .draft) > .row-actions:last-child::after, dialog:not(.print, .words, .draft) > :last-child > .row-actions:last-child::after {
  content: "▾ weiter unten mehr"; position: absolute; left: 50%; bottom: calc(100% + 5px); transform: translateX(-50%); padding: 3px var(--sp-3);
  border: 1px solid color-mix(in srgb, var(--text) 35%, var(--line)); border-radius: 999px; background: var(--surface); color: var(--text);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.3; white-space: nowrap; pointer-events: none; opacity: 0;
}
@supports (animation-timeline: scroll()) {
  dialog:not(.print, .words, .draft) > .row-actions:last-child::after, dialog:not(.print, .words, .draft) > :last-child > .row-actions:last-child::after {
    animation: foot-word linear both; animation-timeline: scroll(nearest block); animation-range: calc(100% - 28px) 100%;
  }
}
@supports not (animation-timeline: scroll()) {
  dialog:not(.print, .words, .draft, .ask) > .row-actions:last-child, dialog:not(.print, .words, .draft, .ask) > :last-child > .row-actions:last-child { border-top-color: var(--line); }
}
/* the words of all voices: the names of the voices stay at the left while the bars move, and what a finger presses
   there is a finger wide */
.w-table { width: max-content; min-width: 100%; }
.w-name { box-shadow: 4px 0 6px -4px rgba(0, 0, 0, .25); }
@media (pointer: coarse) {
  .w-name-top { height: auto; min-height: var(--w-row); }
  .w-name button { width: var(--tap); height: var(--tap); }
  .w-tool .chip { min-width: var(--tap); }
}
@media (max-width: 560px) {
  /* the notes are corrected on a phone: undo and redo stand in the row of the title, saving is in the panel, and a
     label stands close over what it names */
  body[data-editor]:not(.focus, .paged, [data-tour]) #practice:not(:has(#viewFold:checked)):has(#marksBtn[hidden]) .score-card { overflow: visible; }
  body[data-editor]:not(.focus, .paged, [data-tour]) #practice:not(:has(#viewFold:checked)):has(#marksBtn[hidden]) .score-tools { position: absolute; right: 10px; top: -53px; z-index: 6; padding: 0; }
  body[data-editor]:not(.focus, .paged, [data-tour]) #practice:not(:has(#viewFold:checked)):has(#marksBtn[hidden]) #edSave { display: none; }
  body[data-editor]:not(.focus, .paged, [data-tour]) #practice:not(:has(#viewFold:checked)):has(#marksBtn[hidden]) .p-head { padding-right: calc(10px + 2 * var(--tap) + var(--sp-1) + var(--sp-2)); }
  .e-label { padding-top: var(--sp-1); line-height: 1.3; }
}
/* the notes on the whole screen below the width of a desk: the row over them needs no name */
@media (max-width: 999px) { body.focus .score-tools .tools-label { display: none; } }
/* ---------- end of round 5, layout ---------- */

/* ---------- round 4, behaviour: the two strips over the bar that plays (not of that site) ---------- */
/* (the beat that is counted in stands in the bar itself since round 5, below) */
/* where a line of all voices fits the full screen at no readable size: what can be done, over the bar that
   plays; the notes end above it (the script measures its height) */
.fit-strip {
  position: absolute; left: 0; right: 0; bottom: 100%; z-index: 32; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--sp-1) var(--sp-2); padding: var(--sp-1) var(--sp-3); border-top: 1px solid var(--line); background: var(--surface); font-size: var(--fs-s);
}
.fit-strip[hidden] { display: none; }
.fit-strip > span { flex: 0 1 auto; text-align: center; }
.fit-strip .chip[aria-pressed="true"] { background: var(--fill); border-color: var(--fill); color: var(--fill-ink); }
@media (max-width: 560px) {
  .fit-strip { gap: 2px var(--sp-2); padding: 2px var(--sp-2) var(--sp-1); }
  .fit-strip > span { flex-basis: 100%; font-size: var(--fs-tiny); line-height: 1.25; }
  .fit-strip .chip { min-height: 36px; padding: 0 var(--sp-3); font-size: var(--fs-xs); }
}
body.focus:has(#fitStrip:not([hidden])) .score-card { bottom: calc(var(--transport-h, 80px) + var(--fit-h, 48px)); }
body:has(#fitStrip:not([hidden])) .ink-bar { bottom: calc(var(--transport-h, 80px) + var(--fit-h, 48px)); }
/* which page shows: its two parts on one line with the dot between them, and below one another where that is too wide
   (the script hides the dot then) */
.page-says { display: flex; flex-wrap: wrap; align-items: center; align-content: center; justify-content: center; }
.page-says > .page-sep { white-space: pre; }
/* the Textstudio with «Auswählen»: where the row of the copy is too wide, what is picked stands below it */
@media (max-width: 1100px) {
  .w-tool:has(#wordsPick) { flex-wrap: wrap; height: auto; min-height: var(--tap); }
  .w-tool:has(#wordsPick) .w-picked { flex-basis: 100%; margin: 0 0 var(--sp-4); line-height: 1.3; }
}
/* ---------- end of round 4, behaviour ---------- */

/* ---------- round 5, behaviour (not of that site) ---------- */
/* what lies over the notes, strokes and flags, lies in an element without height that begins where the notes begin:
   it moves with them when the row over them folds, unfolds or wraps */
.score-anchor { position: relative; height: 0; }
/* the beat that is counted in stands in the bar that plays itself, from behind the number of the measure to the end
   of the row and over the buttons there while it counts (the script places it): over no notes, and nothing moves when
   it comes and goes. The beat is as high as the bar lets it be, to be read from a music stand */
.count-strip {
  position: absolute; z-index: 34; box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 0 var(--sp-3); border-radius: 14px; background: var(--fill); color: var(--fill-ink); font-size: var(--fs-m); font-weight: 600;
  line-height: 1; white-space: pre; overflow: hidden; pointer-events: none;
}
.count-strip[hidden] { display: none; }
.count-strip .count-beat { display: inline-flex; align-items: center; gap: var(--sp-2); }
.count-strip b { font-size: calc(var(--count-h, 56px) * .8); font-weight: 800; font-variant-numeric: tabular-nums; }
.count-strip .count-dot { display: none; }
@media (max-width: 560px) { .count-strip { gap: var(--sp-1); padding: 0 var(--sp-1); font-size: var(--fs-tiny); } .count-strip .count-beat { gap: var(--sp-1); } }
/* the note editor on a phone says why the table of the words is not offered there */
.ed-words-narrow { display: none; }
@media (max-width: 767px) { .ed-words-narrow { display: block; flex-basis: 100%; color: var(--muted); font-size: var(--fs-xs); line-height: 1.35; } }
/* while the pens stand over the bar that plays, the frame of notes that are turned keeps its size, and so their size
   and their pages: it is drawn smaller from its top, by as much as it takes to end above the pens (the script
   measures the scale), over the ground of the page where the notes fill the screen */
body.paged:has(#inkBar:not([hidden])) .score-card { transform: scale(var(--ink-scale, 1)); transform-origin: 50% 0; }
body.focus.paged:has(#inkBar:not([hidden]))::before { content: ""; position: fixed; inset: 0; z-index: 29; background: var(--surface); }
/* where the notes fill the screen and are turned, their frame ends over the bar that plays as it is without the rows
   its button for more opens: those rows come up over the notes for as long as they are open, and the pages stay */
body.focus.paged .score-card { bottom: var(--transport-closed, var(--transport-h, 80px)); }
body.focus.paged:has(#fitStrip:not([hidden])) .score-card { bottom: calc(var(--transport-closed, var(--transport-h, 80px)) + var(--fit-h, 48px)); }
/* ---------- end of round 5, behaviour ---------- */

/* The takes a singer of a learning package chooses to send. */
.learn-takes { display: grid; gap: 6px; margin: 12px 0; max-height: 40vh; overflow: auto; }

/* ---------- the tutorials as videos and the statistics (not of that site) ---------- */
/* The colours of the parts of a chart, in a fixed order: checked against the cards of the light and the dark look
   with the validator of the data-visualization guide (adjacent pairs, colour vision deficiencies). */
:root {
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a; --series-4: #eda100;
  --series-5: #e87ba4; --series-6: #008300; --series-7: #6250d6; --series-8: #e34948;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
    --series-5: #d55181; --series-6: #0ca30c; --series-7: #9085e9; --series-8: #e66767;
  }
}
:root[data-theme="dark"] {
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70; --series-4: #c98500;
  --series-5: #d55181; --series-6: #0ca30c; --series-7: #9085e9; --series-8: #e66767;
}
.s1 { --sc: var(--series-1); } .s2 { --sc: var(--series-2); } .s3 { --sc: var(--series-3); } .s4 { --sc: var(--series-4); }
.s5 { --sc: var(--series-5); } .s6 { --sc: var(--series-6); } .s7 { --sc: var(--series-7); } .s8 { --sc: var(--series-8); }

dialog.tutorials { width: min(94vw, 720px); max-height: min(92vh, 900px); }
dialog.tutorials .tutorials-body { display: grid; gap: 12px; }
dialog.tutorials h2 { margin: 0; }
dialog.tutorials p.muted { font-size: var(--fs-s); margin: 0 0 4px; }
.tutorials-list { display: grid; gap: 10px; }
.tutorial-item {
  display: grid; grid-template-columns: 136px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%;
  padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: left; color: var(--text);
}
.tutorial-item:hover, .tutorial-item:focus-visible { border-color: var(--accent); }
.tutorial-says { display: grid; gap: 2px; min-width: 0; }
.tutorial-says b { font-size: var(--fs-m); line-height: 1.3; }
.tutorial-says .muted { font-size: var(--fs-s); line-height: 1.4; }
.tutorial-poster { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: color-mix(in srgb, var(--ink) 10%, var(--surface)); }
.tutorial-poster img { width: 100%; height: 100%; object-fit: cover; }
.tutorial-noposter { color: var(--muted); font-size: 1.4rem; }
.tutorial-length {
  position: absolute; right: 4px; bottom: 4px; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .72); color: #fff;
  font-size: var(--fs-tiny); font-weight: 600; font-variant-numeric: tabular-nums;
}
.tutorials-watch { display: grid; gap: 8px; }
.tutorials-back { justify-self: start; }
.tutorials-video { width: 100%; max-height: 62vh; border-radius: 10px; background: #000; }
.tutorials-watch h3 { margin: 4px 0 0; font-size: var(--fs-l); }
.tutorials-watch p { margin: 0; }
@media (max-width: 560px) {
  dialog.tutorials { padding: 16px; }
  .tutorial-item { grid-template-columns: 104px minmax(0, 1fr); gap: 10px; }
}

.tutorials-set { display: grid; gap: 8px; }
.tutorials-set input[type=text] { width: 100%; }
.tutorials-set progress { width: 100%; height: 8px; accent-color: var(--accent); }
.tutorials-set .status:empty { display: none; }
.tutorial-busy { margin: 0; padding: 6px 10px; border-radius: 8px; font-size: var(--fs-s); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tutorials-set[aria-busy="true"] .tutorial-rows, .tutorials-set[aria-busy="true"] input { opacity: .65; }
.tutorials-set[aria-busy="true"] { cursor: progress; }
.tutorial-rows { display: grid; gap: 10px; margin-bottom: 8px; }
.tutorial-row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.tutorial-fields { display: grid; gap: 6px; min-width: 0; }
.tutorial-fields input, .tutorial-fields textarea { width: 100%; box-sizing: border-box; }
.tutorial-fields textarea { resize: vertical; min-height: 2.6em; font-size: var(--fs-s); }
.tutorial-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.tutorial-actions .chip:disabled { opacity: .45; cursor: default; }
.tutorial-actions .chip.danger { color: var(--danger); margin-left: auto; }
@media (max-width: 420px) { .tutorial-row { grid-template-columns: minmax(0, 1fr); } .tutorial-row .tutorial-poster { max-width: 200px; } }

.stats-intro { margin: -8px 0 16px; font-size: var(--fs-s); max-width: 70ch; }
.stats-tiles { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin-bottom: 16px; }
.st-tile { display: grid; gap: 2px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.st-tile .st-label { font-size: var(--fs-xs); font-weight: 600; color: var(--muted); }
.st-tile b { font-size: var(--fs-display); font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; }
.st-tile small { font-size: var(--fs-xs); color: var(--muted); }
.stats-chart { margin-bottom: 16px; display: grid; gap: 4px; }
.stats-chart h2, .stats-table-card h2 { font-size: var(--fs-l); margin: 0; }
.stats-sub { font-size: var(--fs-xs); }
.stats-plot { min-width: 0; margin-top: 8px; }
.st-svg { display: block; overflow: visible; }
.st-svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.st-grid { stroke: color-mix(in srgb, var(--ink) 9%, transparent); stroke-width: 1; shape-rendering: crispEdges; }
.st-base { stroke: color-mix(in srgb, var(--ink) 28%, transparent); stroke-width: 1; shape-rendering: crispEdges; }
.st-tick, .st-date { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.st-hit { fill: transparent; }
.st-bar { fill: var(--sc); }
.st-day:hover .st-bar { filter: brightness(1.12); }
.st-day:hover .st-hit { fill: color-mix(in srgb, var(--ink) 5%, transparent); }
.stats-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-xs); color: var(--muted); margin-top: 6px; }
.stats-legend:empty { display: none; }
.st-key { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.st-swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--sc); flex: none; }
.stats-tip {
  position: fixed; z-index: 40; display: grid; gap: 3px; min-width: 150px; max-width: min(320px, 80vw); padding: 8px 10px; pointer-events: none;
  border: 1px solid var(--line); border-radius: 10px; background: var(--raised); color: var(--text); box-shadow: 0 8px 24px rgba(0, 0, 0, .22); font-size: var(--fs-xs);
}
.stats-tip b { font-weight: 600; color: var(--muted); }
.st-tip-row { display: grid; grid-template-columns: 12px auto minmax(0, 1fr); gap: 6px; align-items: center; }
.st-tip-row strong { font-variant-numeric: tabular-nums; }
.st-tip-row span { color: var(--muted); overflow-wrap: anywhere; }
.st-line { width: 12px; height: 2px; border-radius: 1px; background: var(--sc); }
.st-tip-more { color: var(--muted); }
.stats-table-card { display: grid; gap: 10px; }
.stats-table-wrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: var(--fs-s); }
.st-table th, .st-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.st-table th:first-child { text-align: left; white-space: normal; font-weight: 600; }
.st-table thead th { font-size: var(--fs-xs); color: var(--muted); font-weight: 600; }
.st-table thead th { white-space: normal; vertical-align: bottom; }
@media (max-width: 560px) { .st-table th, .st-table td { padding: 6px 5px; } .st-table { font-size: var(--fs-xs); } }
.st-table td { font-variant-numeric: tabular-nums; }
.stats-days summary { cursor: pointer; padding: 6px 0; color: var(--muted); font-size: var(--fs-s); }
