/* Prism — dark surface, colour-block tiles, paper notes on a free dotted board. */

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

:root {
  --ground: #0B0B0C;
  --panel: #151518;
  --panel-2: #1B1B1F;
  --line: #27272D;
  --paper: #FFFFFF;
  --ink: #0A0A0B;
  --text: #F2F2F3;
  --mute: #8C8C96;

  --blue: #2B6CFF;
  --sky: #56B4EF;
  --orange: #FF8A1E;
  --red: #F5431C;
  --yellow: #FFD400;
  --green: #19E07C;
  --mist: #DCDCDE;

  --r-card: 16px;
  --r-tile: 20px;
  --r-pill: 999px;
  --punkte: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .075) 1px, transparent 0);
  --glas: rgba(13, 13, 15, .86);
}

html, body { margin: 0; padding: 0; height: 100%; }

body {
  background-color: var(--ground);
  background-image: var(--punkte);
  background-size: 22px 22px;
  color: var(--text);
  font-family: "Schibsted Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, figure { margin: 0; }
button, input, textarea { font: inherit; color: inherit; }

::selection { background: var(--yellow); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
  border-radius: 6px;
}

/* --- shell ---------------------------------------------------------------- */

.wrap {
  max-width: 1560px;
  margin: 0 auto;
  padding: 18px clamp(14px, 2.4vw, 28px) 0;
}

#board.wrap {
  height: 100svh;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-bottom: 16px;
}

/* --- brand ---------------------------------------------------------------- */

.marke {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
}

/* the mark is rendered glass on black: screen drops the black, keeps the glow */
.marke img {
  width: auto;
  height: 30px;
  display: block;
  mix-blend-mode: screen;
}

.marke span {
  font-family: "Figtree", "Schibsted Grotesk", sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.02em;
}

.lockup {
  display: block;
  width: min(250px, 72%);
  height: auto;
  margin: -6px 0 20px -10px;
  mix-blend-mode: screen;
}

/* --- top bar -------------------------------------------------------------- */

.top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  flex: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 12px 14px 12px 16px;
}

.top .titel { flex: 1 1 200px; min-width: 0; }

.top h1 {
  font-size: clamp(17px, 2.2vw, 22px);
  font-weight: 700;
  letter-spacing: -.03em;
  overflow-wrap: break-word;
}

.top .sub {
  color: var(--mute);
  font-size: 13px;
  overflow-wrap: break-word;
}

.trenner { width: 1px; align-self: stretch; background: var(--line); }

.wer { display: flex; align-items: center; gap: 9px; min-width: 0; }

.wer .kuerzel {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--r-pill);
  background: var(--sky);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.wer .wertext { min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.wer .wertext small { color: var(--mute); font-size: 11px; }

.wer b, .wer input {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -.01em;
  overflow-wrap: break-word;
}

.wer input {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 7px;
  max-width: 170px;
}

/* --- who is here ---------------------------------------------------------- */

.dabei { display: flex; align-items: center; flex: none; }

.dabei .kopf {
  width: 28px;
  height: 28px;
  margin-left: -7px;
  border-radius: var(--r-pill);
  border: 2px solid var(--panel);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--ink);
  flex: none;
}

.dabei .kopf:first-child { margin-left: 0; }
.dabei .kopf.mehr { background: var(--panel-2); color: var(--mute); border-color: var(--line); }

/* --- metric tiles --------------------------------------------------------- */

.kacheln {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(0, 172px));
  gap: 10px;
  flex: none;
}

.kachel {
  border-radius: var(--r-tile);
  padding: 14px 15px 13px;
  min-width: 0;
  container-type: inline-size;
}

.kachel .num {
  font-size: clamp(27px, 23cqi, 42px);
  font-weight: 800;
  letter-spacing: -.05em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow-wrap: break-word;
}

.kachel .was {
  margin-top: 5px;
  font-size: 12px;
  font-weight: 600;
  overflow-wrap: break-word;
}

.kachel.k-blue { background: var(--blue); color: #fff; }
.kachel.k-yellow { background: var(--yellow); color: var(--ink); }
.kachel.k-mist { background: var(--mist); color: var(--ink); }
.kachel.k-dark { background: var(--panel); border: 1px solid var(--line); color: var(--text); }
.kachel.k-dark .was { color: var(--mute); }

/* --- the board ------------------------------------------------------------ */

.flaeche {
  position: relative;
  flex: 1;
  min-height: 0;
  background-color: #0E0E10;
  background-image: var(--punkte);
  background-size: 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  overscroll-behavior: contain;
}

.flaeche.faehrt { cursor: grabbing; }
/* while a creating tool is picked, the next click places something */
.flaeche.setzt { cursor: crosshair; }

.buehne {
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  transform-origin: 0 0;
}

/* --- items on the board --------------------------------------------------- */

.element {
  position: absolute;
  cursor: grab;
  touch-action: none;
  overflow-wrap: break-word;
  word-break: break-word;
}

.element.faehrt {
  cursor: grabbing;
  z-index: 5;
}

.element.ausgewaehlt { z-index: 4; }

/* --- notes ---------------------------------------------------------------- */

.notiz {
  width: 240px;
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-card);
  padding: 12px 13px 10px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
  z-index: 2;
}

.notiz .text {
  font-size: 14px;
  line-height: 1.42;
  letter-spacing: -.005em;
  white-space: pre-wrap;
}

.notiz .fuss {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, .1);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.notiz .name { opacity: .62; font-weight: 500; min-width: 0; overflow-wrap: break-word; }

.notiz.f-yellow { background: var(--yellow); }
.notiz.f-orange { background: var(--orange); }
.notiz.f-green { background: var(--green); }
.notiz.f-sky { background: var(--sky); }
.notiz.f-mist { background: var(--mist); }

.notiz.f-blue { background: var(--blue); color: #fff; }
.notiz.f-red { background: var(--red); color: #fff; }
.notiz.f-blue .fuss, .notiz.f-red .fuss { border-top-color: rgba(255, 255, 255, .22); }

.notiz.faehrt {
  box-shadow: 0 22px 48px rgba(0, 0, 0, .62);
  transform: rotate(-.7deg);
}

.notiz.ausgewaehlt { box-shadow: 0 10px 26px rgba(0, 0, 0, .5), 0 0 0 3px var(--sky); }

/* --- free text ------------------------------------------------------------ */

.freitext {
  width: 300px;
  z-index: 3;
}

.freitext .text {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: -.035em;
  line-height: 1.12;
  color: var(--text);
  white-space: pre-wrap;
}

.freitext::after {
  content: "";
  display: block;
  width: 56px;
  height: 5px;
  margin-top: 9px;
  border-radius: var(--r-pill);
  background: var(--mist);
}

.freitext.ausgewaehlt {
  box-shadow: 0 0 0 3px var(--sky);
  border-radius: 10px;
}

.freitext.f-blue .text { color: #7AA2FF; }
.freitext.f-blue::after { background: var(--blue); }
.freitext.f-orange .text { color: var(--orange); }
.freitext.f-orange::after { background: var(--orange); }
.freitext.f-red .text { color: #FF7A58; }
.freitext.f-red::after { background: var(--red); }
.freitext.f-yellow .text { color: var(--yellow); }
.freitext.f-yellow::after { background: var(--yellow); }
.freitext.f-green .text { color: var(--green); }
.freitext.f-green::after { background: var(--green); }
.freitext.f-sky .text { color: var(--sky); }
.freitext.f-sky::after { background: var(--sky); }
.freitext.f-mist .text { color: var(--mist); }

/* --- frames --------------------------------------------------------------- */

/* A frame sits behind everything, so the notes inside it stay clickable and
   only its own border and title react to the pointer. */
.rahmen {
  z-index: 1;
  border: 2px solid var(--line);
  border-radius: var(--r-tile);
  background: rgba(255, 255, 255, .022);
  cursor: default;
  pointer-events: none;
}

.rahmen > * { pointer-events: auto; }

.rahmen .titelzeile {
  position: absolute;
  left: -2px;
  bottom: 100%;
  margin-bottom: 7px;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  cursor: grab;
}

/* the title line sits above a frame of any width, so it never wraps —
   a long name is cut off rather than pushed into three stacked letters */
.rahmen .text {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--mute);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(300px, 60vw);
  min-width: 0;
}

.rahmen .zaehler {
  font-size: 12px;
  font-weight: 600;
  color: #5E5E68;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.rahmen.faehrt { border-color: var(--sky); }
.rahmen.ausgewaehlt { border-color: var(--sky); }
.rahmen.ausgewaehlt .text { color: var(--text); }

.rahmen.f-blue { border-color: rgba(43, 108, 255, .5); }
.rahmen.f-sky { border-color: rgba(86, 180, 239, .5); }
.rahmen.f-orange { border-color: rgba(255, 138, 30, .5); }
.rahmen.f-red { border-color: rgba(245, 67, 28, .5); }
.rahmen.f-yellow { border-color: rgba(255, 212, 0, .5); }
.rahmen.f-green { border-color: rgba(25, 224, 124, .5); }

/* the corner grip that resizes a frame */
.griff {
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--sky);
  border: 2px solid #0E0E10;
  cursor: nwse-resize;
  opacity: 0;
  transition: opacity .12s ease;
}

/* an invisible grip must not be grabbable, or the board has a dead spot */
.rahmen > .griff { pointer-events: none; }

.rahmen:hover > .griff,
.rahmen.ausgewaehlt > .griff { opacity: 1; pointer-events: auto; }

/* --- dot votes ------------------------------------------------------------ */

.stimmen {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(0, 0, 0, .08);
  border: 0;
  border-radius: var(--r-pill);
  padding: 3px 9px 3px 7px;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  font-variant-numeric: tabular-nums;
  cursor: default;
}

.stimmen .kreis {
  width: 9px;
  height: 9px;
  border-radius: var(--r-pill);
  background: currentColor;
  opacity: .5;
}

.stimmen.laeuft { cursor: pointer; }
.stimmen.laeuft:hover { background: rgba(0, 0, 0, .16); }
.stimmen.meine { background: var(--ink); color: #fff; }
.stimmen.meine .kreis { background: var(--yellow); opacity: 1; }
.stimmen.meine:hover { background: #2A2A32; }

.notiz.f-blue .stimmen, .notiz.f-red .stimmen { background: rgba(255, 255, 255, .18); }
.notiz.f-blue .stimmen.meine, .notiz.f-red .stimmen.meine { background: rgba(0, 0, 0, .4); }

/* a note that led the round wears its rank */
.notiz .rang {
  position: absolute;
  top: -11px;
  left: -11px;
  width: 30px;
  height: 30px;
  border-radius: var(--r-pill);
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -.03em;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}

/* --- menu on an item ------------------------------------------------------- */

.elementmenue {
  display: flex;
  gap: 4px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 8px;
  opacity: 0;
  transition: opacity .12s ease;
}

/* inside the menu the swatches are one item in a row, not a block of their own */
.elementmenue .farbwahl { margin-top: 0; flex-wrap: nowrap; }

.notiz:hover .elementmenue,
.freitext:hover .elementmenue,
.ausgewaehlt > .elementmenue,
.elementmenue.offen { opacity: 1; }

/* without a pointer there is no hover, so a tap selects instead */
@media (hover: none) {
  .elementmenue { height: 0; overflow: hidden; margin-top: 0; }
  .ausgewaehlt > .elementmenue, .elementmenue.offen { height: auto; margin-top: 8px; }
}

.rahmen .elementmenue { margin-top: 0; flex-wrap: nowrap; }
.rahmen:hover .elementmenue, .rahmen.ausgewaehlt .elementmenue { opacity: 1; }

.mini {
  background: rgba(0, 0, 0, .07);
  border: 0;
  border-radius: 7px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.mini:hover { background: rgba(0, 0, 0, .14); }
.mini.warn:hover { background: var(--red); color: #fff; }
.mini.stark { background: var(--ink); color: #fff; }
.mini.stark:hover { background: #2A2A32; }
.mini.still { background: none; opacity: .5; cursor: default; padding-left: 0; }

.notiz.f-blue .mini, .notiz.f-red .mini { background: rgba(255, 255, 255, .18); }
.notiz.f-blue .mini:hover, .notiz.f-red .mini:hover { background: rgba(255, 255, 255, .3); }

.freitext .mini, .rahmen .mini { background: rgba(255, 255, 255, .1); color: var(--text); }
.freitext .mini:hover, .rahmen .mini:hover { background: rgba(255, 255, 255, .18); }

/* --- writing on the board -------------------------------------------------- */

.entwurf {
  z-index: 6;
  box-shadow: 0 22px 48px rgba(0, 0, 0, .6);
  cursor: default;
}

.element.entwurf { cursor: default; }

.freitext.entwurf {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 11px 12px 10px;
}

.freitext.entwurf::after { display: none; }

.notiz textarea, .freitext textarea, .rahmen textarea {
  display: block;
  width: 100%;
  background: rgba(255, 255, 255, .75);
  border: 1px solid rgba(0, 0, 0, .12);
  border-radius: 10px;
  padding: 8px 9px;
  font-size: 14px;
  line-height: 1.42;
  resize: none;
  color: var(--ink);
}

.freitext textarea {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.03em;
}

.rahmen textarea {
  background: var(--panel-2);
  border-color: var(--line);
  color: var(--text);
  width: 240px;
  font-weight: 700;
}

.notiz.f-blue textarea, .notiz.f-red textarea { background: rgba(255, 255, 255, .9); }

textarea:focus { outline: none; border-color: var(--sky); }

.farbwahl {
  display: flex;
  gap: 5px;
  margin-top: 9px;
  flex-wrap: wrap;
}

.punkt {
  width: 17px;
  height: 17px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(0, 0, 0, .18);
  padding: 0;
  cursor: pointer;
}

.punkt.an { box-shadow: 0 0 0 2px var(--sky); }
.punkt.f-weiss { background: #fff; }
.punkt.f-yellow { background: var(--yellow); }
.punkt.f-orange { background: var(--orange); }
.punkt.f-red { background: var(--red); }
.punkt.f-blue { background: var(--blue); }
.punkt.f-sky { background: var(--sky); }
.punkt.f-green { background: var(--green); }
.punkt.f-mist { background: var(--mist); }

.freitext .punkt, .rahmen .punkt { border-color: rgba(255, 255, 255, .25); }

.meldung {
  margin-top: 8px;
  background: var(--red);
  color: #fff;
  border-radius: 10px;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 600;
}

/* --- other people's pointers ----------------------------------------------- */

.zeigerebene {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 8;
}

.fremdzeiger {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: flex-start;
  gap: 3px;
  will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .fremdzeiger { transition: transform .22s linear; }
}

.fremdzeiger svg { width: 17px; height: 17px; flex: none; display: block; }

.fremdzeiger b {
  margin-top: 11px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- marquee selection ------------------------------------------------------ */

.auswahlrahmen {
  position: absolute;
  border: 1.5px solid var(--sky);
  background: rgba(86, 180, 239, .13);
  border-radius: 4px;
  pointer-events: none;
  z-index: 7;
}

/* --- tool rail --------------------------------------------------------------- */

.werkzeugleiste {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--glas);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 6px;
  z-index: 10;
}

.werkzeug {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--mute);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}

.werkzeug svg { width: 20px; height: 20px; fill: currentColor; display: block; }
.werkzeug svg .falz { fill: rgba(0, 0, 0, .35); }
.werkzeug:hover { background: rgba(255, 255, 255, .08); color: var(--text); }

.werkzeug.ist-an {
  background: var(--text);
  color: var(--ink);
}

.werkzeug:disabled { opacity: .3; cursor: default; }
.werkzeug:disabled:hover { background: transparent; color: var(--mute); }

.wz-trenner { height: 1px; background: var(--line); margin: 3px 5px; }

/* --- zoom ------------------------------------------------------------------- */

.zoomleiste {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--glas);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 5px 6px;
  z-index: 10;
}

.zoomleiste .mini {
  background: transparent;
  color: var(--text);
  min-width: 28px;
  padding: 4px 8px;
}

.zoomleiste .mini:hover { background: rgba(255, 255, 255, .12); }

.zoomleiste .wert {
  min-width: 56px;
  font-variant-numeric: tabular-nums;
  color: var(--mute);
}

/* --- voting bar --------------------------------------------------------------- */

.abstimmleiste {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  max-width: calc(100% - 28px);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--glas);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 10px 8px 14px;
  z-index: 11;
}

.abstimmleiste .punkte { display: flex; gap: 4px; flex: none; }

.abstimmleiste .punkte i {
  width: 11px;
  height: 11px;
  border-radius: var(--r-pill);
  background: var(--yellow);
  display: block;
}

.abstimmleiste .punkte i.weg { background: rgba(255, 255, 255, .14); }

.abstimm-text {
  font-size: 13px;
  font-weight: 600;
  min-width: 0;
  overflow-wrap: break-word;
}

/* --- footnote ----------------------------------------------------------------- */

.fussnote {
  position: absolute;
  right: 14px;
  top: 12px;
  max-width: 42%;
  color: #5E5E68;
  font-size: 11.5px;
  text-align: right;
  pointer-events: none;
  z-index: 9;
}

/* --- buttons ------------------------------------------------------------------- */

.action {
  background: var(--text);
  color: var(--ink);
  border: 0;
  border-radius: var(--r-pill);
  padding: 7px 15px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -.01em;
  cursor: pointer;
}

.action:hover { filter: brightness(1.08); }

.action.ghost {
  background: transparent;
  color: var(--mute);
  border: 1px solid var(--line);
}

.action.ghost:hover { color: var(--text); border-color: #3A3A43; filter: none; }
.action.ghost.laeuft { color: var(--yellow); border-color: rgba(255, 212, 0, .45); }

/* --- centred cards (lock screen, start page) ------------------------------- */

.mitte {
  min-height: calc(100svh - 36px);
  display: grid;
  place-items: center;
  padding: 20px 0 40px;
}

.karte {
  width: min(430px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px 24px 24px;
}

.karte h1 {
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.1;
  overflow-wrap: break-word;
}

.karte .sub {
  margin-top: 6px;
  color: var(--mute);
  font-size: 14px;
  overflow-wrap: break-word;
}

.streifen { display: flex; gap: 4px; margin: 20px 0 4px; }
.streifen i { height: 6px; flex: 1; border-radius: var(--r-pill); }
.streifen i:nth-child(1) { background: var(--yellow); }
.streifen i:nth-child(2) { background: var(--orange); }
.streifen i:nth-child(3) { background: var(--red); }
.streifen i:nth-child(4) { background: var(--blue); }

.feld { margin-top: 15px; }

.feld label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--mute);
  margin-bottom: 6px;
}

.feld input {
  width: 100%;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  font-size: 15px;
}

.feld input:focus { outline: none; border-color: var(--sky); background: #1F1F24; }

.fehler {
  margin-top: 14px;
  background: var(--red);
  color: #fff;
  border-radius: 12px;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 600;
  overflow-wrap: break-word;
}

.hinweis {
  margin-top: 18px;
  color: var(--mute);
  font-size: 12.5px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.laedt {
  min-height: 60svh;
  display: grid;
  place-items: center;
  color: var(--mute);
  font-size: 14px;
  text-align: center;
  padding: 0 16px;
  overflow-wrap: break-word;
}

/* --- administration ------------------------------------------------------- */

.block {
  max-width: 760px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: 18px 18px 20px;
  margin-bottom: 14px;
}

.block h2 { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }

.block .hint {
  margin-top: 5px;
  color: var(--mute);
  font-size: 13px;
  overflow-wrap: break-word;
}

.raum {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 13px 0 12px;
}

.raum:last-child { padding-bottom: 0; }
.raum .wort { flex: 1 1 200px; min-width: 0; overflow-wrap: break-word; }
.raum .wort b { font-size: 15px; font-weight: 700; letter-spacing: -.02em; }
.raum .wort small { display: block; color: var(--mute); font-size: 12px; margin-top: 2px; }

.raum .zahl {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.04em;
  font-variant-numeric: tabular-nums;
  flex: none;
}

.block .mini { background: rgba(255, 255, 255, .1); color: var(--text); }
.block .mini:hover { background: rgba(255, 255, 255, .18); }

code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px 6px;
  overflow-wrap: break-word;
}

/* --- narrow --------------------------------------------------------------- */

@media (max-width: 860px) {
  .fussnote { display: none; }
}

@media (max-width: 720px) {
  .top { padding: 12px; gap: 12px; }
  .top .titel { flex-basis: 100%; }
  .trenner { display: none; }
  .wer { flex: 1 1 auto; }
  .dabei { order: 2; }
  .kacheln { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /* the rail lies down at the bottom, where a thumb reaches it */
  .werkzeugleiste {
    left: 10px;
    top: auto;
    bottom: 10px;
    transform: none;
    flex-direction: row;
    border-radius: var(--r-pill);
    padding: 5px;
  }
  .werkzeug { width: 36px; height: 36px; }
  /* the rail owns the bottom edge here, so the zoom moves up out of its way */
  .zoomleiste { right: 10px; top: 10px; bottom: auto; padding: 4px 5px; }
  .zoomleiste .wert { min-width: 46px; font-size: 11px; }
  .abstimmleiste {
    left: 10px;
    right: 10px;
    bottom: 68px;   /* clears the rail below it, which is 48px plus its margin */
    transform: none;
    max-width: none;
  }
}

@media (max-width: 420px) {
  .zoomleiste .wert { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
  .element { transition: box-shadow .15s ease; }
}
