:root {
  --bg: #f6f5f2; --surface: #ffffff; --surface2: #efeee9; --text: #1d1f23; --muted: #6b6f78; --line: #dedcd5;
  --accent: #c2410c; --accent-ink: #fff; --chord: #b4380a; --danger: #b91c1c; --ok: #15803d;
  --radius: 12px; --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --t-intro: #64748b; --t-verse: #2563eb; --t-prechorus: #0891b2; --t-chorus: #dc2626; --t-refrain: #db2777;
  --t-bridge: #7c3aed; --t-instrumental: #ca8a04; --t-solo: #ea580c; --t-interlude: #65a30d; --t-outro: #475569;
  --t-tag: #0d9488; --t-other: #78716c;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #121418; --surface: #1b1e24; --surface2: #23272f; --text: #eceae4; --muted: #9aa0aa; --line: #2e333c;
    --accent: #fb923c; --accent-ink: #1b1206; --chord: #fdba74; --shadow: none; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121418; --surface: #1b1e24; --surface2: #23272f; --text: #eceae4; --muted: #9aa0aa; --line: #2e333c;
  --accent: #fb923c; --accent-ink: #1b1206; --chord: #fdba74; --shadow: none; color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
a { color: inherit; }
h1 { font-size: 1.7rem; margin: .2rem 0; letter-spacing: -.01em; }
h2 { font-size: 1.05rem; margin: 1.6rem 0 .6rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.card h2 { margin-top: 0; }
code { background: var(--surface2); padding: 1px 5px; border-radius: 5px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
[hidden] { display: none !important; }

/* Kopfzeile */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: 10px max(16px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.brand.big { font-size: 1.5rem; justify-content: center; margin-bottom: 8px; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 1rem; }
.brand.big .brand-mark { width: 40px; height: 40px; font-size: 1.3rem; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { text-decoration: none; padding: 7px 12px; border-radius: 9px; color: var(--muted); font-weight: 500; }
.topbar nav a.active { background: var(--surface2); color: var(--text); }

.page { max-width: 980px; margin: 0 auto; padding: 18px 16px 120px; }
.page.narrow { max-width: 640px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.back { text-decoration: none; color: var(--muted); font-size: .9rem; }
.meta { color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.meta b { color: var(--text); }
.dot { opacity: .6; }
.count { font-size: .9rem; color: var(--muted); font-weight: 500; margin-left: 10px; vertical-align: middle; }
.loading { padding: 60px; text-align: center; color: var(--muted); }

/* Buttons & Formulare */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 15px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 550;
  text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s;
}
.btn:hover { border-color: color-mix(in srgb, var(--text) 30%, var(--line)); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: transparent; }
.btn.danger, .btn.ghost.danger { color: var(--danger); }
.btn.small { padding: 5px 10px; font-size: .85rem; border-radius: 8px; }
.btn.big { padding: 12px 20px; font-size: 1.05rem; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
}
.icon-btn.small { min-width: 30px; height: 30px; font-size: .9rem; border-radius: 8px; }
.icon-btn.big { min-width: 44px; height: 44px; font-size: 1.5rem; }
.icon-btn.danger { color: var(--danger); }
.icon-btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.icon-btn:disabled { opacity: .35; cursor: default; }

input, textarea, select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 0; border-color: var(--accent); }
textarea { resize: vertical; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92rem; line-height: 1.5; }
.field { display: flex; flex-direction: column; gap: 5px; font-size: .85rem; color: var(--muted); font-weight: 550; margin-bottom: 12px; }
.field input, .field textarea, .field select { color: var(--text); font-weight: 400; font-size: 1rem; }
.field.inline { flex-direction: row; align-items: center; margin-top: 10px; }
.field.inline select { width: auto; }
.fields { display: flex; gap: 12px; flex-wrap: wrap; }
.fields .field { flex: 1 1 160px; }
.fields .field.grow { flex: 2 1 240px; }
.search { margin-bottom: 12px; }
.toggle { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.mini-select { width: auto; padding: 6px 8px; font-size: .85rem; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.notes { background: color-mix(in srgb, var(--accent) 9%, var(--surface)); border-left: 3px solid var(--accent); padding: 9px 13px; border-radius: 8px; margin: 10px 0; white-space: pre-wrap; }
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.empty { color: var(--muted); padding: 18px; text-align: center; list-style: none; border: 1px dashed var(--line); border-radius: var(--radius); margin: 0; }

/* Listen */
.list { display: flex; flex-direction: column; gap: 8px; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); text-decoration: none; color: inherit; font: inherit; text-align: left; cursor: pointer; width: 100%;
}
.row:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.row.added { border-color: color-mix(in srgb, var(--ok) 50%, var(--line)); }
.row.current { border-color: var(--accent); }
.added-mark { color: var(--ok); font-weight: 700; }
.list.compact .row { padding: 9px 12px; }
.row-main { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { color: var(--muted); font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.key-badge { display: inline-block; min-width: 38px; text-align: center; padding: 3px 8px; border-radius: 7px; background: var(--surface2); font-weight: 700; font-size: .88rem; color: var(--chord); }
.key-badge.changed { outline: 1.5px solid var(--chord); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; background: var(--surface2); text-decoration: none; margin: 2px 4px 2px 0; font-size: .88rem; }
.used-in { margin-top: 30px; }

/* Ordner */
.sl-card { display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.sl-card:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.sl-card.today { border-color: var(--accent); }
.cal { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 50px; height: 52px; border-radius: 10px; background: var(--surface2); flex-shrink: 0; }
.cal-m { font-size: .7rem; text-transform: uppercase; color: var(--accent); font-weight: 700; letter-spacing: .05em; }
.cal-d { font-size: 1.35rem; font-weight: 700; line-height: 1.1; }
.list.past .sl-card { opacity: .7; }
.sl-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 10px; }
.save-status { color: var(--muted); font-size: .85rem; }
.sl-items, .arr-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 7px; }
.sl-item, .arr-item {
  display: flex; align-items: center; gap: 9px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 10px;
}
.sl-item .row-main { padding: 4px 0; }
.sl-ctrl { display: flex; align-items: center; gap: 8px; }
.arr-num { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 1.4em; text-align: right; font-size: .9rem; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper .rep { min-width: 30px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Drag & Drop */
.handle {
  cursor: grab; touch-action: none; user-select: none; color: var(--muted); padding: 8px 6px; margin: -6px 0 -6px -4px;
  letter-spacing: -3px; font-weight: 700; line-height: 1;
}
.handle:active { cursor: grabbing; }
.dragging { opacity: .9; box-shadow: 0 8px 28px rgba(0,0,0,.18); border-color: var(--accent) !important; position: relative; z-index: 2; transform: scale(1.01); }
.is-sorting { user-select: none; }

/* Abschnitts-Farben */
[data-type="intro"] { --tc: var(--t-intro); } [data-type="verse"] { --tc: var(--t-verse); }
[data-type="prechorus"] { --tc: var(--t-prechorus); } [data-type="chorus"] { --tc: var(--t-chorus); }
[data-type="refrain"] { --tc: var(--t-refrain); } [data-type="bridge"] { --tc: var(--t-bridge); }
[data-type="instrumental"] { --tc: var(--t-instrumental); } [data-type="solo"] { --tc: var(--t-solo); }
[data-type="interlude"] { --tc: var(--t-interlude); } [data-type="outro"] { --tc: var(--t-outro); }
[data-type="tag"] { --tc: var(--t-tag); } [data-type="other"] { --tc: var(--t-other); }

.chip {
  display: inline-flex; align-items: center; padding: 6px 11px; border-radius: 99px; font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  border: 1.5px solid color-mix(in srgb, var(--tc, var(--muted)) 55%, transparent); color: var(--tc, var(--text));
  background: color-mix(in srgb, var(--tc, var(--muted)) 9%, var(--surface));
}
.chip:hover { background: color-mix(in srgb, var(--tc, var(--muted)) 18%, var(--surface)); }
.palette, .add-types { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 12px; }
.arr-hint { color: var(--muted); font-size: .82rem; }
.arr-item { border-left: 4px solid var(--tc); }
.arr-name { flex: 1; font-weight: 600; color: var(--tc); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.flow { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 14px; }
.flow-chip { font-size: .78rem; font-weight: 650; padding: 2px 8px; border-radius: 6px; color: var(--tc); background: color-mix(in srgb, var(--tc) 11%, transparent); }

/* Editor */
.sec-list { display: flex; flex-direction: column; gap: 10px; }
.sec-card { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--tc); border-radius: var(--radius); padding: 10px; }
.sec-card-head { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.type-select { width: auto; flex: 0 0 auto; font-weight: 600; color: var(--tc); padding: 6px 8px; }
.sec-title { flex: 1; min-width: 60px; padding: 6px 9px; font-weight: 600; }
.savebar {
  position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; z-index: 15;
  padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
}

/* Toolbar Ansicht */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 10px 12px; margin: 8px 0 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
}
.tgroup { display: inline-flex; align-items: center; gap: 5px; }
.tlabel { font-size: .82rem; color: var(--muted); margin-right: 2px; }
.tval { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Liedblatt */
.sheet { --fs: 18px; font-size: var(--fs); line-height: 1.3; }
.sheet.cols { columns: 15em var(--cols, 2); column-gap: 2.2em; column-rule: 1px solid var(--line); }
.sec { margin: 0 0 1.1em; break-inside: avoid; }
.sec-head { display: flex; align-items: baseline; gap: .5em; margin-bottom: .3em; }
.sec-name {
  font-size: .72em; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--tc);
  padding: .12em .55em; border-radius: .35em; background: color-mix(in srgb, var(--tc) 12%, transparent);
}
.sec-rep { font-size: .78em; font-weight: 700; color: var(--muted); }
.sec.ref { margin-bottom: .7em; }
.sec-body { padding-left: .6em; border-left: 2px solid color-mix(in srgb, var(--tc) 40%, transparent); }
.lyric { white-space: pre-wrap; min-height: 1.3em; }
.blank { height: .55em; }
.note-line { font-style: italic; color: var(--muted); font-size: .85em; margin: .1em 0; }
.cline { margin: .05em 0 .15em; }
.word { display: inline-flex; white-space: nowrap; vertical-align: bottom; }
.seg { display: inline-flex; flex-direction: column; }
.chord { color: var(--chord); font-weight: 700; font-size: .88em; padding-right: .35em; line-height: 1.2; white-space: pre; }
.chord.nochord { visibility: hidden; padding-right: 0; }
.chord.anno { color: var(--muted); font-weight: 600; font-style: italic; }
.txt { white-space: pre; }
.chordrow { display: flex; flex-wrap: wrap; gap: 0 .2em; align-items: baseline; margin: .2em 0; }
.chordrow .chord { padding-right: .5em; font-size: .95em; }
.chordrow .bar { color: var(--muted); white-space: pre; padding-right: .3em; }

/* Vortragsmodus */
body.play-mode .topbar { display: none; }
.play { padding: 0 0 80px; }
.play-bar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: 8px max(12px, env(safe-area-inset-left)); background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.play-title { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; justify-content: center; }
.play-pos { color: var(--muted); font-variant-numeric: tabular-nums; font-size: .9rem; }
.play-name { font-weight: 700; font-size: 1.1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.play .toolbar { display: none; margin: 10px 14px; }
.play .toolbar.open { display: flex; }
.play-sheet { max-width: 1200px; margin: 0 auto; padding: 14px max(16px, env(safe-area-inset-left)); }
.play-next { display: flex; justify-content: space-between; gap: 10px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.play-next .btn { white-space: normal; text-align: left; }

/* Modal */
.modal-ov { position: fixed; inset: 0; z-index: 50; background: rgba(10,12,16,.45); display: flex; align-items: flex-start; justify-content: center; padding: 5vh 12px; overflow: auto; }
.modal { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; width: 100%; max-width: 520px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.modal.wide { max-width: 860px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; font-size: 1.1rem; }
.modal-body { padding: 16px; overflow: auto; flex: 1; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 16px; border-top: 1px solid var(--line); }
@media (max-width: 600px) {
  .modal-ov { padding: 0; align-items: flex-end; }
  .modal { max-height: 94vh; border-radius: 16px 16px 0 0; }
  .modal-foot { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  h1 { font-size: 1.45rem; }
  .sl-item { flex-wrap: wrap; }
  .sl-ctrl { flex-basis: 100%; justify-content: flex-end; }
}

/* Toast */
#toast { position: fixed; left: 50%; bottom: 80px; transform: translateX(-50%) translateY(20px); opacity: 0; pointer-events: none; z-index: 100;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 550; transition: .2s; max-width: 90vw; }
#toast.show { opacity: 1; transform: translateX(-50%); }
#toast.err { background: var(--danger); color: #fff; }

/* Login */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: 100%; max-width: 360px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px 24px; box-shadow: var(--shadow); }
.auth-card label { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: .9rem; font-weight: 550; color: var(--muted); }
.auth-card p { text-align: center; }
.auth-error { background: color-mix(in srgb, var(--danger) 12%, transparent); color: var(--danger); padding: 9px 12px; border-radius: 9px; margin-bottom: 14px; font-size: .9rem; }

/* Druck */
.print-cover ol { font-size: 1.1rem; line-height: 1.8; }
.print-controls { display: flex; justify-content: space-between; margin-bottom: 20px; }
.print-song { margin-top: 40px; }
.print-head h2 { text-transform: none; letter-spacing: 0; color: var(--text); font-size: 1.5rem; margin: 0; }
@media print {
  :root { --bg: #fff; --surface: #fff; --text: #000; --chord: #000; --muted: #444; color-scheme: light; }
  .topbar, .toolbar, .head-actions, .back, .print-controls, .savebar, .play-bar, .play-next, .used-in, #toast { display: none !important; }
  .page { padding: 0; max-width: none; }
  .print-song { break-before: page; margin-top: 0; }
  .sheet { font-size: 12.5pt !important; }
  .chord { color: #000; }
  .sec-name { color: #000; background: #eee; }
  .sec-body { border-left-color: #bbb; }
  .flow-chip { color: #000; background: #eee; }
}

/* Tonart-Auswahl & Original */
.key-select { width: auto; padding: 6px 30px 6px 10px; font-weight: 700; color: var(--chord); }
.key-select.compact { padding: 4px 26px 4px 8px; font-size: .9rem; min-width: 84px; }
.key-select.changed { border-color: var(--chord); }
.orig-key { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.orig-key b { color: var(--text); }
.orig-key.small { font-size: .75rem; }
.played-key { color: var(--chord); }
.inline-row { display: flex; gap: 8px; align-items: center; }
.inline-row input { flex: 1; min-width: 0; }
.flow-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 4px; align-self: center; }
.flow + .flow { margin-top: -8px; opacity: .75; }
.orig-flow { background: var(--surface2); border-radius: 10px; padding: 4px 10px; margin-bottom: 10px; }
.orig-flow .flow { margin: 6px 0; }

/* Markieren */
.sec { position: relative; }
.anno-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.sheet.anno-active .sec { touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.sheet.anno-active[data-tool="marker"] .sec { cursor: text; }
.sheet.anno-active[data-tool="note"] .sec { cursor: copy; }
.sheet.anno-active[data-tool="eraser"] .sec { cursor: cell; }
.sheet.anno-active .sec-body { outline: 1px dashed color-mix(in srgb, var(--tc) 35%, transparent); outline-offset: 4px; border-radius: 4px; }
.pw.hl, .word.hl .txt, .cw.hl .chord { background: color-mix(in srgb, var(--hl) 75%, transparent); color: #111; border-radius: 2px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--hl) 75%, transparent); }
.word.hl .seg:not(:last-child) .txt { border-radius: 2px 0 0 2px; }

.postit {
  position: absolute; z-index: 3; width: 9em; font-size: calc(var(--fs, 18px) * .78); line-height: 1.3; background: var(--pc); color: #1f2937;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 400; font-style: normal; letter-spacing: normal; text-transform: none; text-align: left; white-space: normal; box-sizing: border-box;
  border-radius: 3px 3px 3px 12px; box-shadow: 0 3px 10px rgba(0,0,0,.18); transform: rotate(-1deg);
}
.postit.ro { opacity: .92; }
.postit-bar { display: flex; align-items: center; gap: 2px; padding: 2px 4px; background: rgba(0,0,0,.06); border-radius: 3px 3px 0 0; touch-action: none; cursor: grab; }
.postit.ro .postit-bar { cursor: default; }
.postit-grip { flex: 1; color: rgba(0,0,0,.35); letter-spacing: -2px; font-weight: 700; font-size: .9em; }
.postit-btn { border: 0; background: transparent; color: #374151; font: inherit; font-weight: 700; padding: 1px 5px; border-radius: 4px; cursor: pointer; line-height: 1.2; }
.postit-btn:hover { background: rgba(0,0,0,.08); }
.postit-text { display: block; width: 100%; border: 0; background: transparent; color: inherit; font: inherit; padding: 4px 7px 7px; resize: none; white-space: pre-wrap; min-height: 2.6em; outline: none; }
.postit.min { width: auto; transform: none; border-radius: 99px; }
.postit-mini { border: 0; background: transparent; font: inherit; color: inherit; padding: 2px 9px; cursor: pointer; display: flex; gap: 5px; align-items: center; white-space: nowrap; }

.anno-toggle.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.anno-bar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  width: min(620px, calc(100vw - 16px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 10px 40px rgba(0,0,0,.25); padding: 8px; display: flex; flex-direction: column; gap: 6px;
}
.anno-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: center; }
.anno-row.sub { justify-content: space-between; gap: 8px; font-size: .8rem; padding: 0 4px; }
.anno-hint { color: var(--muted); flex: 1 1 160px; }
.anno-sep { width: 1px; height: 30px; background: var(--line); margin: 0 4px; }
.tool { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 56px; padding: 5px 6px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--text); font: inherit; cursor: pointer; }
.tool:hover { background: var(--surface2); }
.tool.on { background: color-mix(in srgb, var(--accent) 15%, var(--surface)); border-color: var(--accent); }
.tool:disabled { opacity: .35; cursor: default; }
.tool-ic { font-size: 1.25rem; line-height: 1.1; }
.tool-lb { font-size: .7rem; color: var(--muted); font-weight: 600; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); background: var(--sw); cursor: pointer; padding: 0; }
.swatch.on { box-shadow: 0 0 0 2px var(--text); }
.chip-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 99px; padding: 4px 11px; font: inherit; font-size: .82rem; cursor: pointer; margin-left: 6px; }
.toggle.small { font-size: .8rem; }
.toggle.small input { width: 15px; height: 15px; }
.anno-row .mini-select { font-size: .78rem; padding: 4px 6px; }
body:has(.anno-bar:not([hidden])) .page, body:has(.anno-bar:not([hidden])) .play { padding-bottom: 220px; }
@media print { .anno-bar, .postit-bar .postit-btn { display: none !important; } .postit { box-shadow: none; border: 1px solid #999; } }
@media (max-width: 600px) {
  .play-bar { gap: 5px; padding-left: 8px; padding-right: 8px; }
  .play-bar .icon-btn { min-width: 34px; height: 34px; padding: 0 6px; }
  .play-bar .icon-btn.big { min-width: 34px; height: 34px; font-size: 1.3rem; }
  .play-bar .anno-toggle .lbl, .play-title .orig-key, .play-title .play-pos { display: none; }
  .play-bar .anno-toggle { padding: 6px 10px; }
  .play-title { justify-content: flex-start; gap: 6px; }
  .play-name { font-size: 1rem; }
}
.play-keyline { color: var(--muted); font-size: .9rem; margin-bottom: 4px; } .play-keyline b { color: var(--text); } .play-keyline .played-key { color: var(--chord); }
.add-user { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.add-user input:not([type=checkbox]) { flex: 1 1 160px; width: auto; }
.topbar nav a[data-nav=settings] { min-width: 34px; text-align: center; font-weight: 700; }
.topbar nav a[data-nav=settings]:not(.active) { background: var(--surface2); color: var(--text); border-radius: 99px; }
.postit-author { letter-spacing: 0; font-weight: 600; font-size: .85em; color: rgba(0,0,0,.5); margin-left: 2px; }
.anno-privacy { font-size: .72rem; color: var(--muted); text-align: center; }

/* Termin-Auswahl in der Kopfzeile */
.topbar { gap: 10px; transition: transform .25s ease; }
.event-jump { width: auto; max-width: 260px; flex: 0 1 260px; padding: 6px 28px 6px 10px; font-size: .9rem; font-weight: 600; margin-left: auto; }
.topbar nav { align-items: center; }
.menu-hide { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 1.1rem; cursor: pointer; padding: 4px 8px; border-radius: 8px; }
.menu-hide:hover { background: var(--surface2); }
.scrolled-away { transform: translateY(-110%); }
.play-bar { transition: transform .25s ease; }
.menu-fab { display: none; position: fixed; top: calc(8px + env(safe-area-inset-top)); right: 10px; z-index: 40; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text); font-size: 1.1rem; cursor: pointer; box-shadow: var(--shadow); opacity: .75; }
.menu-fab:hover { opacity: 1; }
body.menu-hidden .topbar, body.menu-hidden .play-bar { display: none; }
body.menu-hidden .menu-fab { display: block; }
@media print { .menu-fab { display: none !important; } }

/* Lied-Auswahl im Vortragsmodus */
.play-song { width: auto; min-width: 0; max-width: 100%; flex: 0 1 auto; font-weight: 700; font-size: 1.02rem; padding: 6px 28px 6px 10px; text-overflow: ellipsis; }

/* Startseite: nächster Termin */
.hero { background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 16%, var(--surface)), var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 18px; padding: 20px; margin-bottom: 8px; box-shadow: var(--shadow); }
.hero-label { font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); }
.hero-title { display: block; font-size: 1.6rem; font-weight: 750; text-decoration: none; margin: 4px 0 2px; letter-spacing: -.01em; }
.hero-when { color: var(--muted); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

@media (max-width: 600px) {
  .brand-name { display: none; }
  .event-jump { flex: 1 1 auto; max-width: none; font-size: .85rem; }
  .topbar { padding-left: 10px; padding-right: 8px; gap: 6px; }
  .topbar nav a { padding: 7px 8px; }
  .play-song { font-size: .92rem; padding-right: 22px; }
  .hero-actions .btn { flex: 1 1 auto; }
}
.event-jump { min-width: 0; }
.play-title .play-song { flex: 1 1 auto; min-width: 0; width: 100%; max-width: 420px; }
@media (max-width: 600px) {
  .event-jump { flex: 1 1 0; }
  .topbar nav { gap: 0; flex-shrink: 0; }
  .topbar nav a { padding: 6px 7px; font-size: .92rem; }
  .brand-mark { width: 28px; height: 28px; }
  .play-bar .play-list-btn { display: none; }
  .play-title .key-badge { padding: 3px 5px; min-width: 0; }
}

/* Gastzugang */
.access-banner { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 7px 12px; font-size: .88rem;
  background: color-mix(in srgb, #f59e0b 18%, var(--surface)); border-bottom: 1px solid color-mix(in srgb, #f59e0b 40%, var(--line)); }
body.play-mode .access-banner { display: none; }
.access-choices { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.access-choices .btn { flex: 1 1 120px; }
body.guest .edit-only, body.guest .handle { display: none !important; }
@media print { .access-banner { display: none !important; } }

/* Repertoire / Statistik */
.tabs { display: inline-flex; gap: 4px; background: var(--surface2); padding: 4px; border-radius: 12px; margin-bottom: 10px; }
.tabs a { text-decoration: none; padding: 7px 14px; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.tabs a.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.stats-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; text-align: center; }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; color: var(--accent); }
.stat span { font-size: .8rem; color: var(--muted); }
.stats-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: -2px 0 14px; font-size: .88rem; color: var(--muted); }
.stats-list { display: flex; flex-direction: column; gap: 10px; }
.stats-row { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.stats-count { flex: 0 0 64px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 2px; }
.stats-count b { font-size: 1.9rem; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats-count span { font-size: .7rem; color: var(--muted); text-align: center; }
.stats-count.zero b { color: var(--muted); opacity: .5; }
.stats-main { flex: 1; min-width: 0; }
.stats-main .row-title { display: flex; gap: 8px; align-items: center; text-decoration: none; white-space: normal; }
.key-badge.small { min-width: 0; padding: 1px 6px; font-size: .75rem; }
.stats-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .86rem; margin-top: 4px; color: var(--muted); }
.stats-meta b { color: var(--text); font-weight: 600; }
.stats-meta .next b { color: var(--accent); }
.linkish { border: 0; background: none; padding: 0; margin-top: 6px; color: var(--accent); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.stats-dates { margin-top: 6px; border-left: 2px solid var(--line); padding-left: 10px; display: flex; flex-direction: column; gap: 2px; }
.stats-date { display: flex; gap: 10px; text-decoration: none; font-size: .86rem; padding: 3px 0; flex-wrap: wrap; }
.stats-date.future { color: var(--accent); }
.sd-date { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 84px; }
.sd-name { flex: 1; }
.sd-ago { color: var(--muted); font-size: .8rem; }
.stats-comment { margin-top: 8px; font-size: .9rem; padding: 7px 10px; min-height: 36px; resize: none; overflow: hidden; background: var(--surface2); border-color: transparent; }
.stats-comment:focus { background: var(--surface); }
body.guest .stats-comment:placeholder-shown { display: none; }
@media (max-width: 600px) { .stats-count { flex-basis: 48px; } .stats-count b { font-size: 1.5rem; } .stat b { font-size: 1.3rem; } }
.play-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 10px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.pq-key { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.play-quick .btn:last-child { margin-left: auto; }
@media print { .play-quick { display: none !important; } }

/* Wiederholungen deutlich */
.sec-head { align-items: center; flex-wrap: wrap; }
.rep-badge { display: inline-flex; align-items: center; gap: .15em; font-size: .85em; font-weight: 800; line-height: 1;
  padding: .28em .6em; border-radius: 99px; background: var(--tc); color: #fff; letter-spacing: .02em; box-shadow: 0 1px 4px color-mix(in srgb, var(--tc) 45%, transparent); }
.rep-badge b { font-size: 1.15em; }
.pass-badge { font-size: .72em; font-weight: 800; padding: .2em .55em; border-radius: 6px; border: 1.5px solid var(--tc); color: var(--tc); }
.sec.rep .sec-body, .sec.pass-again .sec-body { border-left: 6px double var(--tc); padding-left: .75em; border-radius: 2px; }
.sec.rep { background: color-mix(in srgb, var(--tc) 6%, transparent); border-radius: 10px; padding: .45em .5em .35em; margin-left: -.5em; margin-right: -.5em; }
.sec.rep .sec-body { position: relative; }
.sec.rep .sec-body::before, .sec.rep .sec-body::after { content: ''; position: absolute; left: .18em; width: .28em; height: .28em; border-radius: 50%; background: var(--tc); }
.sec.rep .sec-body::before { top: calc(50% - .45em); }
.sec.rep .sec-body::after { top: calc(50% + .2em); }
.rep-end { display: flex; justify-content: flex-end; margin-top: .3em; font-size: .78em; font-weight: 700; color: var(--tc); }
.rep-end span { border: 1.5px solid var(--tc); border-radius: 99px; padding: .15em .7em; background: var(--surface); }
.rep-end b { font-weight: 800; }
.rep-end.soft { font-weight: 600; opacity: .85; }
.sec.ref { border: 2px dashed color-mix(in srgb, var(--tc) 60%, transparent); border-radius: 10px; padding: .4em .6em; background: color-mix(in srgb, var(--tc) 5%, transparent); }
.sec.ref .sec-head { margin: 0; }
.ref-hint { font-size: .8em; font-weight: 700; color: var(--tc); }
.ref-hint::before { content: '↻ '; }
.flow-chip { display: inline-flex; align-items: center; gap: 5px; }
.flow-rep { background: var(--tc); color: #fff; border-radius: 99px; padding: 0 6px; font-weight: 800; font-size: .95em; }
@media print { .rep-badge, .flow-rep { color: #000; background: #ddd; box-shadow: none; } .sec.rep { background: none; } .rep-end span { background: none; } }

/* Metronom */
.metro-toggle.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.metro-note { font-size: 1.1em; line-height: 1; }
.metro {
  position: fixed; right: max(10px, env(safe-area-inset-right)); top: 72px; z-index: 25; max-width: calc(100vw - 20px);
  background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.18); padding: 8px 10px;
}
.metro-main { display: flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.metro-cells { display: flex; gap: 5px; }
.metro-cell { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-size: .72rem; font-weight: 800;
  background: var(--surface2); color: var(--muted); border: 2px solid var(--line); transition: background .08s; }
.metro-cell.accent { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.metro-cell.hit { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.metro-cell.hit:not(.accent) { background: color-mix(in srgb, var(--accent) 65%, var(--surface)); }
.metro-cell.pop { animation: metro-pop .18s ease-out; }
@keyframes metro-pop { from { transform: scale(1.28); } to { transform: scale(1); } }
.metro-read { display: flex; align-items: baseline; gap: 3px; }
.metro-bpm { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.metro-read small { font-size: .65rem; color: var(--muted); font-weight: 700; }
.metro-ctrl { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); max-width: 330px; }
.metro-range { flex: 1 1 120px; padding: 0; accent-color: var(--accent); }
.metro-glow { position: fixed; inset: 0; pointer-events: none; z-index: 60; border-radius: 0; }
.metro-glow.b { animation: metro-glow var(--metro-dur, 250ms) ease-out; --glow: 7px; }
.metro-glow.b1 { animation: metro-glow var(--metro-dur, 250ms) ease-out; --glow: 14px; }
@keyframes metro-glow {
  from { box-shadow: inset 0 0 0 var(--glow) var(--accent), inset 0 0 40px color-mix(in srgb, var(--accent) 45%, transparent); }
  to { box-shadow: inset 0 0 0 0 transparent, inset 0 0 0 transparent; }
}
@media (max-width: 600px) {
  .play-bar .metro-toggle .lbl { display: none; }
  .metro { top: 62px; }
  .metro-cell { width: 24px; height: 24px; }
}
@media print { .metro, .metro-glow { display: none !important; } }

/* Spalten-Regler */
.cols-ctl input[type=range] { width: 90px; padding: 0; accent-color: var(--accent); }
.cols-val { min-width: 1em; text-align: center; font-variant-numeric: tabular-nums; }
.nav-mode .mini-select { max-width: 210px; }

/* Blättern mit festen Seiten (mehrspaltig) */
.sheet.paged { columns: auto; column-count: var(--cols, 2); column-fill: auto; overflow: hidden; }
.sheet.paged .sec { break-inside: avoid; }
body.nav-page .play-sheet { user-select: none; -webkit-user-select: none; }
.page-ind { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 20; font-size: .78rem; font-weight: 700;
  color: var(--muted); background: color-mix(in srgb, var(--surface) 90%, transparent); border: 1px solid var(--line); border-radius: 99px; padding: 3px 12px; pointer-events: none; }
.page-hint { position: fixed; top: 50%; transform: translateY(-50%); z-index: 5; font-size: 2.2rem; font-weight: 300; color: var(--muted); opacity: .22; pointer-events: none; padding: 0 4px; }
.page-hint.l { left: 2px; } .page-hint.r { right: 2px; }
body:has(.anno-bar:not([hidden])) .page-ind { display: none; }

/* Durchgehend scrollen */
.psb-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; }
.psb-head h2 { margin: 0; font-size: 1.45rem; text-transform: none; letter-spacing: -.01em; color: var(--text); }
.psb-num { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.psb-sep { height: 2px; margin: 26px 0 22px; background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent); }
@media print { .page-ind, .page-hint { display: none !important; } }

/* Öffentliche Termine */
.pub-badge { display: inline-block; margin-left: 8px; font-size: .72rem; font-weight: 700; color: #92400e; background: #fef3c7; border: 1px solid #fcd34d; border-radius: 99px; padding: 1px 8px; vertical-align: middle; white-space: nowrap; }
:root[data-theme="dark"] .pub-badge { color: #fde68a; background: #422006; border-color: #92400e; }
.hero .pub-badge { margin: 4px 0 0; }
.pub-on { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 14%, var(--surface)); }
.pub-box { border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; }
.pub-box:not(.on) { color: var(--muted); }
.pub-box.on { border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 10%, var(--surface)); }
.pub-box-head { font-weight: 700; }
.pub-row { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; padding: 8px 0 2px; border-top: 1px solid color-mix(in srgb, #f59e0b 30%, transparent); margin-top: 8px; }
.pub-name { flex: 1 1 200px; font-weight: 650; text-decoration: none; }
.pub-until { font-weight: 600; font-size: .85rem; }
body.guest #event-jump, body.guest .topbar nav a { display: none !important; }
.sl-card .pub-badge { margin: 4px 0 0; }

/* Position im Lied (Ablauf) */
.flow.live .flow-chip { transition: background .2s, color .2s, opacity .2s, box-shadow .2s; }
.flow.live .flow-chip.done { opacity: .38; }
.flow.live .flow-chip.here { background: var(--tc); color: #fff; box-shadow: 0 0 0 2px color-mix(in srgb, var(--tc) 35%, transparent); }
.flow.live .flow-chip.here .flow-rep { background: #fff; color: var(--tc); }
body.play-mode .psb .flow.live, .song-page .flow.live { position: sticky; top: var(--barh, 0px); z-index: 6; background: var(--bg); padding: 6px 0; margin-left: -4px; padding-left: 4px; }
body.nav-page .psb .flow.live { position: static; }
/* Scrollen sperren */
html.no-scroll, html.no-scroll body { overflow: hidden; overscroll-behavior: none; }
html.no-scroll .play-sheet { touch-action: none; }

/* Nur Text */
.chords-tgl.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.note-line.instr { text-align: left; opacity: .7; }

/* Post-its: Größen & Bilder */
.postit[data-size="m"] { width: 15em; }
.postit[data-size="l"] { width: 24em; }
.postit.has-img { transform: rotate(-.4deg); }
.postit-img { position: relative; padding: 4px 4px 0; }
.postit-img img { display: block; width: 100%; height: auto; border-radius: 3px; background: #fff; cursor: zoom-in; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.postit-img-x { position: absolute; top: 8px; right: 8px; border: 0; width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.55); color: #fff; cursor: pointer; font-size: .8em; }
.postit.drop { outline: 3px dashed var(--accent); outline-offset: 2px; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.88); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 4px; }
.lb-close { position: absolute; top: 14px; right: 14px; }
@media print { .postit-img-x { display: none; } }

/* Eingefügter Platz */
.gap { position: relative; margin: 0; border-radius: 6px;
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(1.3em - 1px), color-mix(in srgb, var(--tc, var(--muted)) 18%, transparent) calc(1.3em - 1px), color-mix(in srgb, var(--tc, var(--muted)) 18%, transparent) 1.3em); }
.gap.shared { background-color: color-mix(in srgb, #f59e0b 6%, transparent); }
.sheet.anno-open .gap { outline: 1.5px dashed color-mix(in srgb, var(--tc, var(--muted)) 55%, transparent); }
.sheet.anno-open .gap.shared { outline-color: #f59e0b; }
.gap-ctl { display: none; position: absolute; right: 4px; top: 4px; z-index: 4; gap: 2px; align-items: center; font-size: .7em; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1px 4px; }
.sheet.anno-open .gap-ctl { display: flex; }
.gap-lbl { font-weight: 700; color: var(--muted); margin-right: 4px; white-space: nowrap; }
.gap-ctl .postit-btn { color: var(--text); }
@media print { .gap-ctl { display: none !important; } .gap { outline: none !important; } }

/* Post-its gegen fremde Formatierung absichern */
.postit *, .postit *::before, .postit *::after { box-sizing: border-box; }
.postit textarea.postit-text, .postit textarea.postit-text:focus { border: 0 !important; background: transparent !important; color: #1f2937 !important; box-shadow: none !important; outline: none !important; width: 100%; font: inherit; }
.postit textarea.postit-text::placeholder { color: rgba(31,41,55,.45); }
.sheet.anno-active .postit, .sheet.anno-active .postit * { user-select: text; -webkit-user-select: text; cursor: auto; }
.postit-bar, .postit-bar * { cursor: grab; }

/* Post-it-Kopfzeile: alles bleibt im Zettel */
.postit-bar { display: flex; flex-wrap: nowrap; align-items: center; gap: 0; padding: 2px 3px; overflow: hidden; }
.postit-grip { flex: 1 1 auto; min-width: 14px; overflow: hidden; white-space: nowrap; }
.postit-btn { flex: 0 0 auto; min-width: 0; padding: 1px 3px; font-size: .9em; line-height: 1.2; }
.postit-author { font-size: .72em; color: rgba(31,41,55,.55); padding: 0 7px 4px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.postit.moving { opacity: .85; box-shadow: 0 10px 28px rgba(0,0,0,.28); z-index: 10; transition: none; }
