:root {
  --bg: #eef0f3;
  --surface: #ffffff;
  --surface-2: #f6f7f9;
  --text: #15181e;
  --muted: #5f6672;
  --border: #dde1e7;
  --accent: #1f5fd6;
  --accent-text: #ffffff;
  --accent-soft: #e6eefc;
  --danger: #c62828;
  --ok: #17803d;
  --warn: #b45309;
  --shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 1px 3px rgba(16, 24, 40, .06);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, .18);
  --note-text: #1d232c;
  --note-gelb: #fdf0a0;
  --note-rosa: #fbd3e4;
  --note-gruen: #c9efd4;
  --note-blau: #cfe2ff;
  --note-orange: #fed8b4;
  --note-lila: #e5dbff;
  --radius: 10px;
  --col-w: 300px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1216;
    --surface: #181c22;
    --surface-2: #20252d;
    --text: #e7eaee;
    --muted: #9aa3ae;
    --border: #2c323b;
    --accent: #6ea2ff;
    --accent-text: #0b1220;
    --accent-soft: #1b2a45;
    --danger: #ff6b6b;
    --ok: #4ade80;
    --warn: #fbbf24;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, .55);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1216; --surface: #181c22; --surface-2: #20252d; --text: #e7eaee; --muted: #9aa3ae;
  --border: #2c323b; --accent: #6ea2ff; --accent-text: #0b1220; --accent-soft: #1b2a45;
  --danger: #ff6b6b; --ok: #4ade80; --warn: #fbbf24; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Buttons & Felder ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 36px; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text);
  font-weight: 500; white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
a.btn { text-decoration: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.danger { color: var(--danger); }
.btn.small { min-height: 30px; padding: 3px 9px; font-size: 13px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.active { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.input, .textarea, select.input {
  width: 100%; min-height: 40px; padding: 8px 11px;
  border: 1px solid var(--border); border-radius: 8px;
  background: var(--surface); color: var(--text);
}
.textarea { resize: vertical; min-height: 70px; }
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.check { display: flex; align-items: flex-start; gap: 9px; padding: 5px 0; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--accent); flex: none; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

/* ---------- Start / Login ---------- */
.center-screen { min-height: 100%; display: grid; place-items: center; padding: 24px 16px; }
.card {
  width: 100%; max-width: 420px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 26px 24px; box-shadow: var(--shadow);
}
.card h1 { font-size: 21px; margin: 0 0 4px; line-height: 1.25; }
.card p.lead { margin: 0 0 20px; color: var(--muted); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 600; margin-bottom: 14px; }
.brand-dot { width: 14px; height: 14px; border-radius: 3px; background: var(--note-gelb); box-shadow: 4px 4px 0 var(--note-blau); }

/* ---------- Topbar ---------- */
.board-wrap { height: 100%; display: flex; flex-direction: column; }
.topbar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--surface); border-bottom: 1px solid var(--border);
  position: relative; z-index: 5;
}
.topbar h1 { font-size: 17px; margin: 0; line-height: 1.25; min-width: 0; overflow-wrap: anywhere; }
.topbar h1.editable { cursor: text; border-radius: 6px; padding: 2px 4px; margin-left: -4px; }
.topbar h1.editable:hover { background: var(--surface-2); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 30px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 13px; white-space: nowrap;
}
button.chip:hover { border-color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid rgba(0,0,0,.18); flex: none; }
.timer {
  font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px;
  padding: 3px 12px; border-radius: 999px; min-height: 30px;
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.timer.running { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.timer.low { background: #fff4e5; border-color: var(--warn); color: var(--warn); }
.timer.done { background: var(--danger); border-color: var(--danger); color: #fff; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }
.vote-chip.open { background: #fff7d6; border-color: #e3b505; color: #6b5200; }
.vote-chip.revealed { background: #e5f6ea; border-color: var(--ok); color: #135c2c; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .vote-chip.open { background: #3a3110; color: #fde68a; }
  :root:not([data-theme="light"]) .vote-chip.revealed { background: #12301d; color: #86efac; }
  :root:not([data-theme="light"]) .timer.low { background: #3a2a10; }
}
.spacer { flex: 1; }
.banner {
  padding: 9px 16px; background: var(--accent); color: var(--accent-text);
  font-weight: 600; text-align: center; overflow-wrap: anywhere;
}
.notice { padding: 8px 16px; background: #fff4e5; color: #7a3d00; font-size: 14px; text-align: center; border-bottom: 1px solid #f6d7a8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .notice { background: #3a2a10; color: #fcd9a0; border-color: #5a4116; } }

/* ---------- Board / Spalten ---------- */
.main { flex: 1; display: flex; min-height: 0; position: relative; }
.board {
  flex: 1; min-width: 0;
  display: flex; gap: 14px; align-items: flex-start;
  overflow-x: auto; overflow-y: hidden;
  padding: 14px 16px 18px;
  scroll-snap-type: x proximity;
  scroll-padding: 16px;
}
.col {
  flex: 0 0 var(--col-w); width: var(--col-w);
  max-height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  border-top: 4px solid var(--col-color, var(--accent));
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: opacity .2s, box-shadow .2s;
}
.board.has-focus .col:not(.focus) { opacity: .6; }
.col.focus { box-shadow: 0 0 0 3px var(--col-color), var(--shadow-lg); }
.col.drop-target { background: var(--surface-2); }
.col-head { padding: 11px 12px 8px; }
.col-head h2 { margin: 0; font-size: 15px; line-height: 1.3; display: flex; gap: 8px; align-items: baseline; }
.col-head h2 .count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--muted); }
.col-head p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.col-head .badges { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.badge.vote { background: #fff7d6; border-color: #e3b505; color: #6b5200; }
.col-list { flex: 1; overflow-y: auto; padding: 4px 10px 10px; min-height: 60px; display: flex; flex-direction: column; gap: 9px; }
.col-add { padding: 0 10px 10px; }
.col-add .btn.add { width: 100%; justify-content: flex-start; color: var(--muted); border-style: dashed; }
.composer textarea { min-height: 76px; background: var(--note-gelb); color: var(--note-text); border-color: transparent; box-shadow: var(--shadow); }
.composer .row { margin-top: 6px; }
.composer .hint { font-size: 12px; color: var(--muted); }

/* ---------- Zettel ---------- */
.note {
  position: relative;
  background: var(--note-gelb); color: var(--note-text);
  border-radius: 6px; padding: 10px 11px 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,.12), 0 2px 6px rgba(0,0,0,.06);
  touch-action: manipulation;
  user-select: none; -webkit-user-select: none;
}
.note.c-gelb { background: var(--note-gelb); } .note.c-rosa { background: var(--note-rosa); }
.note.c-gruen { background: var(--note-gruen); } .note.c-blau { background: var(--note-blau); }
.note.c-orange { background: var(--note-orange); } .note.c-lila { background: var(--note-lila); }
.note.movable { cursor: grab; }
.note.mine::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: rgba(0,0,0,.28); }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; user-select: text; -webkit-user-select: text; }
.note-foot { display: flex; align-items: center; gap: 6px; margin-top: 8px; min-height: 26px; font-size: 12px; }
.note-author { color: rgba(29,35,44,.68); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.note-foot .spacer { flex: 1; }
.note .icon-btn {
  width: 28px; height: 28px; border-radius: 6px; border: 0; background: transparent; color: var(--note-text);
  display: inline-grid; place-items: center; font-size: 17px; line-height: 1; flex: none;
}
.note .icon-btn:hover { background: rgba(0,0,0,.08); }
.note textarea.edit { width: 100%; min-height: 70px; border: 1px solid rgba(0,0,0,.2); border-radius: 5px; background: rgba(255,255,255,.55); color: var(--note-text); padding: 6px; resize: vertical; user-select: text; }
.votes { display: inline-flex; align-items: center; gap: 2px; background: rgba(255,255,255,.6); border-radius: 999px; padding: 1px; }
.votes button { width: 26px; height: 26px; border: 0; border-radius: 50%; background: transparent; color: var(--note-text); font-size: 16px; font-weight: 700; line-height: 1; }
.votes button:hover:not(:disabled) { background: rgba(0,0,0,.1); }
.votes button:disabled { opacity: .35; cursor: default; }
.votes .mine-count { min-width: 30px; text-align: center; font-weight: 700; font-size: 13px; display: inline-flex; gap: 2px; justify-content: center; align-items: center; }
.pip { width: 7px; height: 7px; border-radius: 50%; background: #1f5fd6; display: inline-block; }
.points { font-weight: 800; font-size: 13px; padding: 2px 9px; border-radius: 999px; background: #1d232c; color: #fff; }
.points.zero { background: rgba(0,0,0,.12); color: rgba(29,35,44,.6); }
.rank { position: absolute; top: -8px; right: -6px; font-size: 11px; font-weight: 800; background: #e3b505; color: #2b2100; border-radius: 999px; padding: 2px 7px; box-shadow: var(--shadow); }
.note.placeholder { background: transparent !important; box-shadow: none; outline: 2px dashed var(--accent); outline-offset: -2px; }
.note.placeholder > * { visibility: hidden; }
.drag-ghost { position: fixed; z-index: 1000; pointer-events: none; transform: rotate(2deg); box-shadow: var(--shadow-lg) !important; opacity: .95; }
.drop-line { height: 4px; border-radius: 2px; background: var(--accent); flex: none; margin: -2px 0; }
body.dragging, body.dragging * { cursor: grabbing !important; user-select: none !important; }

/* ---------- Menü ---------- */
.menu {
  position: fixed; z-index: 1050; min-width: 200px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: var(--shadow-lg); padding: 6px;
}
.menu button.item { display: flex; width: 100%; align-items: center; gap: 8px; padding: 8px 10px; border: 0; background: transparent; border-radius: 6px; text-align: left; }
.menu button.item:hover { background: var(--surface-2); }
.menu button.item.danger { color: var(--danger); }
.menu .sep { height: 1px; background: var(--border); margin: 5px 4px; }
.menu .label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 6px 10px 4px; }
.swatches { display: flex; gap: 6px; padding: 4px 8px 6px; flex-wrap: wrap; }
.swatches button { width: 28px; height: 28px; border-radius: 6px; border: 2px solid transparent; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.swatches button.on { border-color: var(--accent); }

/* ---------- Moderations-Panel ---------- */
.panel {
  flex: 0 0 360px; width: 360px; max-width: 100%;
  background: var(--surface); border-left: 1px solid var(--border);
  overflow-y: auto; padding: 4px 16px 24px;
}
.panel section { padding: 14px 0; border-bottom: 1px solid var(--border); }
.panel section:last-child { border-bottom: 0; }
.panel h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 0 10px; }
.panel .big-timer { font-size: 38px; font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; margin: 2px 0 10px; }
.panel .presets { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin-bottom: 8px; }
.panel .presets .btn { padding: 4px 0; }
.panel .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.panel .people { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.panel .people li { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.panel .people .off { opacity: .5; }
.panel .people .meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.panel .linkbox { display: flex; gap: 6px; }
.panel .linkbox input { font-size: 13px; }
.panel .qr { display: grid; place-items: center; background: #fff; border-radius: 10px; padding: 10px; border: 1px solid var(--border); margin-top: 10px; }
.panel .qr svg { width: 100%; max-width: 220px; height: auto; display: block; }
.progress { height: 8px; background: var(--surface-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); margin: 6px 0; }
.progress > div { height: 100%; background: var(--accent); }
.sync-state { font-size: 13px; }
.sync-state.err { color: var(--danger); }
.panel-close { display: none; }
@media (max-width: 860px) {
  .panel { position: absolute; inset: 0; width: auto; flex: none; z-index: 20; border-left: 0; }
  .panel-close { display: inline-flex; }
}

/* ---------- Beamer / QR-Overlay ---------- */
.overlay { position: fixed; inset: 0; z-index: 950; background: rgba(10, 14, 20, .72); display: grid; place-items: center; padding: 16px; }
.overlay .sheet { background: var(--surface); border-radius: 16px; padding: 24px; max-width: 560px; width: 100%; text-align: center; max-height: 100%; overflow: auto; }
.overlay .sheet h2 { margin: 0 0 6px; font-size: 22px; }
.overlay .qr-big { background: #fff; padding: 14px; border-radius: 12px; margin: 14px auto; max-width: 380px; }
.overlay .qr-big svg { width: 100%; height: auto; display: block; }
.overlay .url { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; }
.dialog { text-align: left !important; max-width: 420px !important; }

/* ---------- Toasts ---------- */
#toasts { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1100; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 480px; pointer-events: none; }
.toast { background: #1d232c; color: #fff; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); font-size: 14px; pointer-events: auto; }
.toast.err { background: var(--danger); color: #fff; }

/* ---------- Admin ---------- */
.admin { max-width: 980px; margin: 0 auto; padding: 22px 16px 40px; }
.admin header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.admin header h1 { margin: 0; font-size: 22px; }
.admin .box { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.admin .box h2 { margin: 0 0 12px; font-size: 16px; }
.admin .form-grid { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 10px; align-items: end; }
.admin .form-grid label.field { margin: 0; }
.board-item { border-top: 1px solid var(--border); padding: 14px 0; display: grid; gap: 8px; }
.board-item:first-of-type { border-top: 0; padding-top: 2px; }
.board-item h3 { margin: 0; font-size: 16px; }
.board-item .links { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.board-item .linkbox { display: flex; gap: 6px; align-items: center; }
.board-item .linkbox span { font-size: 12px; font-weight: 600; color: var(--muted); width: 92px; flex: none; }
.board-item .linkbox input { font-size: 13px; min-height: 34px; }
.status-pill { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: #e5f6ea; color: #135c2c; }
.status-pill.archiviert { background: var(--surface-2); color: var(--muted); }
pre.log { white-space: pre-wrap; font-size: 13px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: 10px; margin: 10px 0 0; max-height: 240px; overflow: auto; }
@media (max-width: 720px) {
  .admin .form-grid { grid-template-columns: 1fr; }
  .board-item .links { grid-template-columns: 1fr; }
}

/* ---------- Mobil ---------- */
@media (max-width: 600px) {
  :root { --col-w: min(86vw, 330px); }
  .topbar { padding: 8px 12px; gap: 6px; }
  .topbar h1 { font-size: 15px; width: 100%; }
  .board { padding: 12px 16px 16px; gap: 10px; scroll-snap-type: x mandatory; }
  .hide-sm { display: none !important; }
}
@media print {
  @page { margin: 12mm; }
  body, .note, .col, .badge, .points, .rank, .b-callout { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  html, body, #app, .board-wrap, .main { height: auto !important; overflow: visible !important; display: block !important; }
  .topbar .btn, .topbar .chip, .panel, .col-add, .typing, #toasts, .viewnav, .page-tools, .notice, .icon-btn, .votes button, .col-tools, .modnotes, .panel-rail { display: none !important; }
  .topbar { border: 0; padding: 0 0 8px; }
  .board { display: block !important; overflow: visible !important; padding: 0 !important; }
  .board .col { display: block !important; width: auto !important; max-width: none !important; margin: 0 0 14px; box-shadow: none; opacity: 1 !important; break-inside: auto; }
  .board.solo .col:not(.solo-col) { display: none !important; }
  .col-list { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 8px; overflow: visible !important; max-height: none !important; }
  .note { break-inside: avoid; box-shadow: none; border: 1px solid rgba(0,0,0,.15); }
  .pageview { overflow: visible !important; }
}

#app { height: 100%; }
.note { -webkit-touch-callout: none; }

/* ---------- Ergänzungen v2 ---------- */
.typing { padding: 0 12px 8px; font-size: 12px; color: var(--muted); font-style: italic; min-height: 0; }
.typing:empty { display: none; }
.typing::before { content: "✎ "; font-style: normal; }
.conn-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--warn); }
.tpl-list { display: grid; gap: 8px; }
.tpl-item { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); }
.tpl-item:first-child { border-top: 0; }
.tpl-cols { display: grid; gap: 10px; margin: 10px 0; }
.tpl-col { display: grid; grid-template-columns: 44px 1fr; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.tpl-col input[type=color] { width: 44px; height: 40px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.tpl-col .fields { display: grid; gap: 6px; min-width: 0; }
.tpl-col .row .input { min-height: 34px; }
.sheet.wide { max-width: 760px !important; text-align: left !important; }
.danger-text { color: var(--danger); }

/* ---------- v2.1: Ansichten, Seiten, Dateien ---------- */
.viewnav { display: flex; align-items: center; gap: 10px; padding: 6px 16px; background: var(--surface); border-bottom: 1px solid var(--border); }
.viewnav .tabs { display: flex; gap: 4px; overflow-x: auto; flex: 1; min-width: 0; scrollbar-width: thin; }
.tab {
  flex: none; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 14px;
  padding: 7px 12px; border-radius: 8px; border-bottom: 3px solid transparent; max-width: 240px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tab:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.tab.active { color: var(--text); background: var(--surface-2); border-bottom-color: var(--col-color, var(--accent)); }
.tab:disabled { opacity: .45; cursor: not-allowed; }
.tab.add { color: var(--accent); border: 1px dashed var(--border); }
.chip.follow { flex: none; font-weight: 600; }
.chip.follow.on { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
button.chip.follow:not(.on):hover { border-color: var(--accent); color: var(--accent); }

/* Einzelner Bereich */
.board.solo { justify-content: center; }
.board.solo .col:not(.solo-col) { display: none; }
.board.solo .col.solo-col { flex: 1 1 auto; width: auto; max-width: 1280px; opacity: 1; }
.board.solo .col.solo-col .col-head h2 { font-size: 22px; }
.board.solo .col.solo-col .col-head p { font-size: 15px; }
.board.solo .col.solo-col .col-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; align-content: start; }
.board.solo .col.solo-col .col-add { max-width: 480px; }

/* Dateien */
.col-files:empty { display: none; }
.col-files { padding: 0 10px 6px; }
.files-chip { border: 1px solid var(--border); background: var(--surface-2); color: var(--text); border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; }
.files-chip:hover { border-color: var(--accent); color: var(--accent); }
.files-panel { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.files { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.files li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.files li.hidden-file { border-style: dashed; opacity: .8; }
.file-name { font-weight: 600; color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.file-name::before { content: "⬇ "; }
.file-name:hover { text-decoration: underline; }
.file-meta { font-size: 12px; margin-right: auto; }

/* Seitenansicht */
.pageview { flex: 1; min-width: 0; overflow-y: auto; padding: 28px 16px 40px; }
.page-card { max-width: 860px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 32px 36px; box-shadow: var(--shadow); }
.page-meta { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 14px; }
.blocks { font-size: 19px; line-height: 1.55; }
.blocks .b-heading { font-size: 32px; line-height: 1.2; margin: 0 0 16px; }
.blocks .b-heading:not(:first-child) { margin-top: 28px; }
.blocks .b-text { white-space: pre-wrap; margin: 0 0 16px; }
.blocks .b-list { margin: 0 0 16px; padding-left: 1.3em; }
.blocks .b-list li { margin: 6px 0; }
.blocks .b-image { margin: 0 0 18px; }
.blocks .b-image img { max-width: 100%; max-height: 60vh; border-radius: 10px; display: block; margin: 0 auto; }
.blocks .b-image figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 6px; }
.blocks .b-video { margin: 0 0 16px; }
.b-callout { border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; border-left: 5px solid var(--accent); background: var(--accent-soft); }
.b-callout.tone-tip { border-color: #16a34a; background: #e5f6ea; color: #14361f; }
.b-callout.tone-warning { border-color: #d97706; background: #fff4e5; color: #4a2a00; }
.b-timer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-weight: 700; padding: 10px 14px; border: 1px dashed var(--border); border-radius: 10px; margin: 0 0 16px; }
.page-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
.page-nav .btn { max-width: 48%; overflow: hidden; text-overflow: ellipsis; }
.page-tools { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--border); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .b-callout.tone-tip { background: #12301d; color: #c9f5d7; }
  :root:not([data-theme="light"]) .b-callout.tone-warning { background: #3a2a10; color: #fde5bd; }
}
@media (max-width: 600px) {
  .viewnav { padding: 6px 12px; }
  .page-card { padding: 22px 18px; }
  .blocks { font-size: 17px; }
  .blocks .b-heading { font-size: 25px; }
}

/* Baukasten-Editor */
.block-editor { display: grid; gap: 10px; }
.be-list { display: grid; gap: 10px; }
.be-item { border: 1px solid var(--border); border-radius: 10px; padding: 10px; background: var(--surface-2); display: grid; gap: 6px; }
.be-head { display: flex; align-items: center; gap: 4px; }
.be-add { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.be-image img { max-width: 100%; max-height: 180px; border-radius: 8px; display: block; }
.form-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
@media (max-width: 600px) { .form-2 { grid-template-columns: 1fr; } }
@media print { .viewnav, .page-tools { display: none !important; } }

/* ---------- v2.2: Panel, Kacheln, Bereichs-Steuerung, Notizen, Ergebnis ---------- */
@keyframes wb-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(31, 95, 214, .55); } 50% { box-shadow: 0 0 0 7px rgba(31, 95, 214, 0); } }
@keyframes wb-glow { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.18); } }
.chip.follow.on, .rail-btn.pulse-on, .tile[data-key="follow"].on { animation: wb-pulse 1.8s ease-in-out infinite; }
.banner { animation: wb-glow 2.4s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) {
  .chip.follow.on, .rail-btn.pulse-on, .tile[data-key="follow"].on, .banner { animation: none; }
  .chip.follow.on { outline: 3px solid #f59e0b; outline-offset: 1px; }
  .banner { outline: 3px solid #f59e0b; outline-offset: -3px; }
}

.panel { padding-top: 0; }
.panel-head { position: sticky; top: 0; z-index: 2; background: var(--surface); padding: 10px 0 8px; border-bottom: 1px solid var(--border); display: grid; gap: 6px; }
.profile-line { font-size: 12px; }
.linklike { border: 0; background: none; color: var(--accent); padding: 0; text-decoration: underline; font-size: 12px; }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.on { background: var(--accent); color: var(--accent-text); }
.small-note { font-size: 13px; margin: 4px 0 8px; }
.stack-buttons { display: grid; gap: 8px; margin-top: 12px; }

/* klassisch */
.psec { border-bottom: 1px solid var(--border); padding: 4px 0 10px; }
.psec-head { display: flex; align-items: center; gap: 6px; padding: 8px 0 6px; cursor: grab; }
.psec-head h3 { margin: 0; }
.psec-handle { color: var(--muted); font-size: 14px; user-select: none; }
.psec.closed .psec-body { display: none; }
.psec.closed { padding-bottom: 2px; }
.psec-up { opacity: .4; }
.psec-head:hover .psec-up { opacity: 1; }
.dragging-tile { opacity: .4; }
.area-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.area-list li { display: flex; align-items: center; gap: 4px; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.area-list li.is-hidden .area-title { color: var(--muted); font-style: italic; }
.area-title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.removed-list summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-top: 6px; }

/* kompakt: Kacheln */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px 0; }
.tile { border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); display: flex; flex-direction: column; overflow: hidden; }
.tile .tile-main { flex: 1; border: 0; background: transparent; text-align: left; padding: 10px 12px; display: grid; gap: 2px; min-height: 68px; color: var(--text); }
.tile .tile-main:hover:not(:disabled) { background: var(--accent-soft); }
.tile-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.tile-value { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile[data-key="timer"] .tile-value { font-size: 26px; font-variant-numeric: tabular-nums; }
.tile[data-key="timer"], .tile[data-key="vote"] { grid-column: span 2; }
.tile.on { border-color: var(--accent); background: var(--accent-soft); }
.tile.on .tile-label { color: var(--accent); }
.tile.alert { border-color: var(--warn); background: #fff4e5; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile.alert { background: #3a2a10; } }
.tile-extra { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 10px 10px; }
.tile.arranging { cursor: grab; border-style: dashed; }
.tile-move { display: flex; justify-content: space-between; padding: 0 6px 6px; }
.arrange-hint { grid-column: span 2; font-size: 12px; margin: 0; }

/* eingeklappt: Leiste */
.panel-rail { flex: 0 0 52px; width: 52px; background: var(--surface); border-left: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 10px 0; }
.rail-btn { width: 40px; min-height: 40px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-weight: 700; font-size: 14px; color: var(--text); padding: 2px; }
.rail-btn:hover { border-color: var(--accent); }
.rail-btn.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.rail-btn.pulse-on { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.rail-timer { font-size: 12px; font-variant-numeric: tabular-nums; writing-mode: horizontal-tb; }
.rail-alert { background: #fff4e5; border-color: var(--warn); color: var(--warn); font-size: 12px; }

/* Bereichs-Karte */
.col-tools { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; }
.col-tools .ct { border: 1px solid var(--border); background: var(--surface-2); color: var(--muted); border-radius: 999px; font-size: 12px; font-weight: 600; padding: 2px 9px; }
.col-tools .ct:hover { border-color: var(--accent); color: var(--accent); }
.col-tools .ct.on { background: var(--col-color); border-color: var(--col-color); color: #fff; }
.col-tools .ct.warn { border-color: var(--warn); color: var(--warn); background: #fff4e5; }
.badge.state { background: var(--surface-2); color: var(--muted); }
.col.is-hidden { border-style: dashed; opacity: .72; }
.col.is-hidden .col-head h2 span:first-child::after { content: " · verborgen"; font-weight: 500; color: var(--muted); font-size: 12px; }
.col.is-modonly { background: repeating-linear-gradient(135deg, var(--surface), var(--surface) 12px, var(--surface-2) 12px, var(--surface-2) 24px); }
.col-new { flex: 0 0 160px; align-self: stretch; min-height: 120px; border: 2px dashed var(--border); border-radius: 12px; background: transparent; color: var(--muted); font-weight: 700; font-size: 15px; }
.col-new:hover { border-color: var(--accent); color: var(--accent); }
.board.solo .col-new { display: none; }
.tab.tab-hidden { font-style: italic; opacity: .7; }
.tab.tab-summary { font-weight: 700; }

/* Zettel: erledigt / eingefroren */
.note.done { opacity: .7; }
.note.done .note-text { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.note.frozen { outline: 1px dashed rgba(0,0,0,.25); }
.badge.note-flag { background: rgba(255,255,255,.6); border-color: rgba(0,0,0,.15); color: #1d232c; font-size: 10px; padding: 0 6px; }
.badge.done-badge { background: #e5f6ea; border-color: #17803d; color: #135c2c; }

/* Warteraum */
.waiting-dots { display: flex; gap: 8px; justify-content: center; margin: 18px 0; }
.waiting-dots span { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); animation: wb-dots 1.2s infinite ease-in-out; }
.waiting-dots span:nth-child(2) { animation-delay: .15s; }
.waiting-dots span:nth-child(3) { animation-delay: .3s; }
@keyframes wb-dots { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .waiting-dots span { animation: none; opacity: .8; } }

/* schwebende Notizen */
.modnotes {
  position: fixed; z-index: 800; min-width: 240px; min-height: 200px; max-width: 90vw; max-height: 85vh;
  display: flex; flex-direction: column; gap: 6px; padding: 0 10px 10px; resize: both; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 84%, transparent); backdrop-filter: blur(8px);
  border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); opacity: .9; transition: opacity .15s;
}
.modnotes:hover, .modnotes:focus-within { opacity: 1; }
.mn-head { display: flex; align-items: center; gap: 6px; padding: 8px 0 4px; cursor: move; user-select: none; }
.mn-head .icon-btn { width: 28px; height: 28px; border: 0; background: transparent; font-size: 18px; color: var(--text); border-radius: 6px; }
.mn-text { flex: 1 1 40%; min-height: 60px; resize: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px; background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); }
.mn-todos { list-style: none; margin: 0; padding: 0; overflow-y: auto; flex: 0 1 auto; max-height: 40%; display: grid; gap: 2px; }
.mn-todos li { display: flex; align-items: center; gap: 6px; }
.mn-todos li.done .mn-todo-text { text-decoration: line-through; color: var(--muted); }
.mn-todo-text { flex: 1; min-width: 0; border: 0; border-bottom: 1px dashed transparent; background: transparent; color: var(--text); padding: 3px 2px; }
.mn-todo-text:focus { border-bottom-color: var(--border); outline: none; }
.mn-todos .icon-btn { border: 0; background: transparent; color: var(--muted); font-size: 16px; width: 24px; height: 24px; }
.mn-status { font-size: 11px; }

/* Ergebnis-Seite */
.summaryview { flex: 1; min-width: 0; overflow-y: auto; padding: 24px 16px 40px; }
.summary-page { padding: 24px 16px 40px; }
.summary { max-width: 960px; margin: 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px 32px; box-shadow: var(--shadow); }
.summary-tools { margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px dashed var(--border); }
.summary-tools .row { gap: 6px; }
.summary-head h1 { margin: 4px 0 2px; font-size: 30px; line-height: 1.2; }
.summary .blocks { font-size: 17px; margin: 18px 0; }
.summary-col { margin-top: 24px; padding-top: 14px; border-top: 4px solid var(--col-color, var(--accent)); }
.summary-col h2 { margin: 0 0 4px; font-size: 21px; }
.summary-hint { margin: 0 0 10px; font-size: 14px; }
.summary-notes { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; counter-reset: sn; }
.summary-note { display: flex; gap: 10px; align-items: flex-start; padding: 8px 12px; border-radius: 8px; background: var(--note-bg, var(--note-gelb)); color: var(--note-text); counter-increment: sn; }
.summary-note::before { content: counter(sn) "."; font-weight: 700; color: rgba(29,35,44,.55); min-width: 1.6em; }
.summary-note.done .sn-text { text-decoration: line-through; text-decoration-color: rgba(0,0,0,.35); }
.sn-text { flex: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.sn-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; font-size: 12px; }
.sn-meta .muted { color: rgba(29,35,44,.65); }
.summary-files { margin-top: 10px; }
table.shortcuts { width: 100%; border-collapse: collapse; margin: 8px 0 12px; font-size: 14px; }
table.shortcuts td { padding: 5px 6px; border-bottom: 1px solid var(--border); }
kbd { display: inline-block; min-width: 1.6em; padding: 1px 7px; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 6px; background: var(--surface-2); font: 600 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
@media (max-width: 600px) {
  .summary { padding: 20px 16px; }
  .summary-head h1 { font-size: 24px; }
  .summary-note { flex-wrap: wrap; }
}
@media print {
  .no-print, .summary-tools { display: none !important; }
  .summaryview, .summary-page { overflow: visible !important; padding: 0 !important; }
  .summary { border: 0; box-shadow: none; padding: 0; max-width: none; }
  .summary-col { break-inside: auto; }
  .summary-note { break-inside: avoid; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .modnotes { display: none !important; }
}

/* ---------- v2.3: Bereiche ziehen, Titel-Klick, Nachrichten ---------- */
.col-title-link { cursor: pointer; border-radius: 4px; }
.col-title-link:hover { text-decoration: underline; text-decoration-color: var(--col-color, var(--accent)); text-underline-offset: 3px; }
.board.solo .col-title-link { cursor: default; text-decoration: none; }
.col-grip { color: var(--muted); font-size: 14px; margin-right: -2px; cursor: grab; user-select: none; }
.board.solo .col-grip { display: none; }
.col-head.col-draggable { cursor: grab; }
.board.col-dragging .col { transition: box-shadow .1s; }
.col.col-drag-src { opacity: .4; }
.col.col-drop-before { box-shadow: -5px 0 0 0 var(--accent), var(--shadow); }
.col.col-drop-after { box-shadow: 5px 0 0 0 var(--accent), var(--shadow); }

.msg-chip.alert { background: #fff4e5; border-color: var(--warn); color: var(--warn); font-weight: 700; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg-chip.alert { background: #3a2a10; } }
.msg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.msg-list li { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; background: var(--surface); }
.msg-list li.unread { border-color: var(--warn); box-shadow: inset 3px 0 0 var(--warn); }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; margin: 2px 0; }
.msg-meta { font-size: 12px; }
.msg-reply { margin-top: 6px; padding: 6px 8px; border-radius: 8px; background: var(--accent-soft); font-size: 14px; }
.msg-actions { margin-top: 4px; gap: 4px; }
.msg-dialog { max-height: 60vh; overflow-y: auto; }

/* ---------- v2.3.1: Zurück aus der Bereichs-Ansicht ---------- */
.col-back { display: none; margin-bottom: 8px; }
.board.solo .col.solo-col .col-back { display: inline-flex; }
@media print { .col-back { display: none !important; } }

/* ---------- v2.3.2: Bereiche-Auswahl in der Reiterleiste ---------- */
.area-stepper { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.tab.tab-areas { display: inline-flex; align-items: center; gap: 6px; max-width: 280px; }
.tab-areas-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-caret { color: var(--muted); }
.tab.tab-step { padding: 7px 9px; font-size: 18px; line-height: 1; }
.menu-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.menu .item .menu-label { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu .item .menu-hint { font-size: 11px; color: var(--muted); font-style: italic; }
.menu .item.active { background: var(--accent-soft); font-weight: 700; }
.menu { max-height: calc(100vh - 32px); overflow-y: auto; }
@media (max-width: 600px) { .tab.tab-areas { max-width: 170px; } }

/* ---------- v2.3.3: Menüs, Ton, Links und Videos ---------- */
.menu .item:disabled { opacity: .65; cursor: default; }
.menu .item:disabled:hover { background: var(--accent-soft); }
.sound-chip { padding: 4px 9px; font-size: 15px; line-height: 1; }
.print-only { display: none; }
.b-link { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; margin: 10px 0; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: inherit; text-decoration: none; }
.b-link:hover { border-color: var(--accent); }
.b-link-icon { font-size: 20px; line-height: 1.2; }
.b-link-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.b-link-body strong { color: var(--accent); }
.b-link-note { color: var(--text); }
.b-link-url { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-video-embed { margin: 12px 0; }
.b-embed { position: relative; aspect-ratio: 16 / 9; width: 100%; max-width: 860px; border-radius: 12px; overflow: hidden; background: #111; }
.b-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.b-embed-load { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; border: 0; background: linear-gradient(135deg, #1f2937, #111827); color: #fff; cursor: pointer; text-align: center; font: inherit; }
.b-embed-load:hover .b-embed-play { transform: scale(1.08); }
.b-embed-play { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: #111; font-size: 26px; padding-left: 5px; transition: transform .15s; }
.b-embed-note { font-size: 12px; opacity: .75; max-width: 440px; }
.b-video-embed figcaption { font-size: 13px; margin-top: 6px; }
@media print {
  .print-only { display: inline; }
  .b-embed { display: none; }
  .b-link { break-inside: avoid; }
  .b-link-url { white-space: normal; }
}

/* ---------- v2.3.4: Druck – ausgeblendete Ansichten bleiben ausgeblendet ---------- */
@media print { html body .hidden, html body .board.hidden { display: none !important; } }

/* ---------- v2.4: Einfügen zwischen Bereichen, Vorschau, verdeckte Bereiche, Zettelfarbe ---------- */
.col { position: relative; }
.col-ins {
  position: absolute; top: 0; bottom: 0; left: -15px; width: 16px; z-index: 3;
  border: 0; padding: 0; background: transparent; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.col-ins span {
  width: 26px; height: 26px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 18px; font-weight: 700; line-height: 1;
  background: var(--accent); color: var(--accent-text); box-shadow: var(--shadow);
  opacity: 0; transform: scale(.7); transition: opacity .12s, transform .12s;
}
.col-ins::before { content: ""; position: absolute; top: 8px; bottom: 8px; left: 7px; width: 2px; border-radius: 2px; background: var(--accent); opacity: 0; transition: opacity .12s; }
.col-ins:hover span, .col-ins:focus-visible span { opacity: 1; transform: scale(1); }
.col-ins:hover::before, .col-ins:focus-visible::before { opacity: .45; }
@media (hover: none) { .col-ins span { opacity: .55; transform: scale(.85); } }
.board.solo .col-ins, .board.col-dragging .col-ins { display: none; }

.col-cover:empty { display: none; }
.cover-note { margin: 0 12px 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2, #f3f4f6); border: 1px dashed var(--border); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.cover-note span { flex: 1; min-width: 160px; }

.note-color {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.9); padding: 0; cursor: pointer; flex: none; margin-right: 2px;
  background: conic-gradient(var(--note-gelb) 0 60deg, var(--note-orange) 0 120deg, var(--note-rosa) 0 180deg, var(--note-lila) 0 240deg, var(--note-blau) 0 300deg, var(--note-gruen) 0 360deg);
  box-shadow: 0 0 0 1px rgba(0,0,0,.28);
}
.note-color:hover, .note-color:focus-visible { box-shadow: 0 0 0 1px rgba(0,0,0,.6); transform: scale(1.12); }
@media (hover: hover) { .note .note-color { opacity: 0; transition: opacity .12s; } .note:hover .note-color, .note:focus-within .note-color { opacity: 1; } }

.preview-bar { flex: 1 1 100%; order: -1; display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; padding: 6px 10px; margin-bottom: 4px; border-radius: 8px; background: #fff4e5; color: #7a4a00; font-size: 13px; }
body.is-preview .col-add, body.is-preview .icon-btn, body.is-preview .note-color, body.is-preview .votes button,
body.is-preview .msg-chip, body.is-preview .sound-chip, body.is-preview .name-chip, body.is-preview .color-chip,
body.is-preview .upload-btn, body.is-preview .files-panel .btn { display: none !important; }
body.is-preview .note { cursor: default; }
@media print { .col-ins, .note-color, .preview-bar { display: none !important; } }
