/*
Patch-Wand: eine große Fläche mit Raster (wie Grid), darauf Module als Fenster, darüber die Kabel.
Regeln der Seite: zwei Farben, Rahmen 1px, keine Rundungen (Ausnahme Drehknöpfe), Aktiv = Farben tauschen.
*/

.patch-seite {
  max-width: none;
}

.patch-start {
  max-width: 40rem;
  margin: 2rem 0;
}

.patch-start #ton-an {
  margin: 1.2rem 0;
  font-size: 1.3rem;
  padding: 0.5em 1.4em;
}

.patch-leiste {
  align-items: end;
}

/* die Wand: scrollt in beide Richtungen; das Raster sind zwei sich wiederholende Linien (Regel 4: schwach) */
.wand {
  position: relative;
  height: min(78vh, 60rem);
  margin-top: 1rem;
  overflow: auto;
  border: 1px solid currentColor;
  background-image:
    linear-gradient(to right, rgba(221, 221, 221, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(221, 221, 221, 0.06) 1px, transparent 1px);
  background-size: 40px 40px;
  background-attachment: local; /* das Raster scrollt mit */
  overscroll-behavior: contain;
}

/* der Inhalt der Wand ist größer als der Ausschnitt: so groß wird die Fläche über ein unsichtbares Element */
.wand::before {
  content: "";
  position: absolute;
  width: 2200px;
  height: 1500px;
  pointer-events: none;
}

.kabel-ebene {
  position: absolute;
  left: 0;
  top: 0;
  width: 2200px;
  height: 1500px;
  overflow: visible;
  pointer-events: none;
  z-index: 100000; /* über allen Fenstern: Kabel hängen vor den Modulen, wie in echt */
}

.kabel {
  fill: none;
  stroke: var(--text);
  stroke-width: 2.5;
  stroke-linecap: square;
  opacity: 0.85;
}

.kabel.takt {
  stroke-dasharray: 6 5;
}

/* Noten: gepunktet (viele Töne zugleich) */
.kabel.noten {
  stroke-dasharray: 2 4;
  stroke-width: 3.5;
}

.kabel.zug {
  opacity: 0.5;
}

/* breiter unsichtbarer Streifen zum Anfassen eines Kabels */
.kabel-griff {
  fill: none;
  stroke: transparent;
  stroke-width: 12;
  pointer-events: stroke;
  cursor: pointer;
}

.kabel-griff:hover + .kabel,
.kabel-griff:hover {
  stroke: rgba(221, 221, 221, 0.25);
}

/* ---------- Module ---------- */
.fenster.modul {
  width: 22rem;
}

.modul .fenster-inhalt {
  max-height: none;
  padding: 0.7rem 0.8rem 0.9rem;
}

.modul .steuerung {
  margin-top: 0.6rem;
}

.modul .knoepfe {
  margin-top: 0.8rem;
  grid-template-columns: repeat(auto-fill, minmax(4.5rem, 1fr));
  gap: 0.8rem 0.2rem;
}

/* Buchsen: links Eingänge, rechts Ausgänge */
.buchsen {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

.buchsen ul {
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.buchsen li {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.ausgaenge li {
  justify-content: flex-end;
}

.buchse {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  border: 1px solid currentColor;
  background: var(--bg);
  color: inherit;
  cursor: crosshair;
  touch-action: none;
}

/* Runde 43: die Fläche zum Anfassen ist größer als die sichtbare Buchse (ein unsichtbarer Rand von 6 px), damit man
   sie mit Maus und Finger trifft, ohne genau zu zielen */
.buchse::after {
  content: "";
  position: absolute;
  inset: -6px;
}

/* beim Ziehen: unpassende Buchsen blass, die eingerastete groß und deutlich */
body.zieht-von-aus .buchse.aus,
body.zieht-von-ein .buchse.ein {
  opacity: 0.25;
}
.buchse.ziel {
  outline: 3px solid var(--text);
  outline-offset: 3px;
  transform: scale(1.35);
}

.buchse.takt {
  border-style: dashed;
}

.buchse.noten {
  border: 3px double currentColor;
}

/* Lämpchen: ein Takt oder eine Note geht gerade hinaus */
.buchse.blitz {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

/* Ausgänge gefüllt, Eingänge hohl; ein steckendes Kabel macht auch den Eingang voll */
.buchse.aus,
.buchse.belegt {
  background: var(--text);
}

.buchse.ein.belegt {
  box-shadow: inset 0 0 0 3px var(--bg);
}

.buchse:hover,
.buchse:focus-visible,
.buchse.gewaehlt {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.modul select {
  max-width: 11rem;
}

.modul-extra {
  margin-top: 0.7rem;
}

.schirm {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid currentColor;
  background: var(--bg);
  color: var(--text);
}

/* Sequenzer: acht senkrechte Regler */
.schritte {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.2rem;
}

.schritt {
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0;
  font-size: 0.8rem;
}

.schritt input {
  writing-mode: vertical-lr;
  direction: rtl;
  height: 6rem;
  width: 1.4rem;
  accent-color: var(--text);
}

.schritt button {
  padding: 0.05em 0.35em;
  opacity: 0.4;
}

.schritt button[aria-pressed="true"] {
  opacity: 1;
}

/* der gerade klingende Schritt: Farben getauscht (Regel 3) */
.schritt.jetzt {
  background: var(--text);
  color: var(--bg);
}

.muster {
  font-size: 1.2rem;
  letter-spacing: 0.1em;
  word-break: break-all;
}

.hinweis-liste {
  margin: 0.6rem 0 0 1.2rem;
  line-height: 1.6;
  opacity: 0.8;
}

/* ---------- Runde 17 ---------- */

/* Fensterknöpfe: „kleiner“ klappt ein, „größer“ schaltet das Bild */
.modul .fenster-knopf.einklappen,
.modul .fenster-knopf.bild-schalter {
  cursor: pointer;
}

.modul .fenster-knopf:disabled {
  opacity: 0.35;
  cursor: default;
}

/* eingeklappt: nur noch Titel und Buchsen */
.modul.eingeklappt .fenster-inhalt > :not(.buchsen) {
  display: none;
}

.modul.ohne-bild .modul-extra {
  display: none;
}

/* Modulsuche: ein Feld an der Stelle des Doppelklicks */
.modulsuche {
  position: absolute;
  z-index: 200000;
  width: 16rem;
  background: var(--bg);
  border: 1px solid currentColor;
  padding: 0.4rem;
}

.modulsuche input {
  width: 100%;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid currentColor;
  padding: 0.3rem;
}

.modulsuche ul {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
}

.modulsuche button {
  display: block;
  width: 100%;
  text-align: left;
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0.2rem 0.3rem;
  cursor: pointer;
}

.modulsuche button:hover,
.modulsuche button:focus-visible {
  background: var(--text);
  color: var(--bg);
}

/* Notenraster: Namen links, dann ein Knopf pro Schritt; jede vierte Spalte mit kräftigerem Rand (Zählzeiten) */
.notenraster {
  display: grid;
  grid-template-columns: 2.6em repeat(var(--spalten, 16), 1fr);
  gap: 1px;
  min-width: calc(2.6em + var(--spalten, 16) * 1.1rem);
  font-size: 0.75rem;
}

.raster-name {
  align-self: center;
  text-align: right;
  padding-right: 0.3em;
  opacity: 0.8;
}

.raster-zelle {
  height: 0.95rem;
  padding: 0;
  border: 1px solid rgba(221, 221, 221, 0.25);
  background: none;
  cursor: pointer;
}

.raster-zelle.viertel {
  border-left-color: var(--text);
}

.raster-zelle[aria-pressed="true"] {
  background: var(--text);
}

.raster-zelle.jetzt {
  outline: 1px solid var(--text);
}

.raster-zelle.bindung,
.raster-zelle.akzent {
  border-style: dashed;
}

/* Obertöne der Wellenform: Balken zum Ziehen */
.schirm.obertoene {
  color: var(--text);
  cursor: ns-resize;
  touch-action: none;
}

.reduktion {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ---------- Runde 18: Zoom und Gruppen ---------- */

/* alles auf der Wand liegt hierin und wird mit dem Zoom vergrößert (ansicht.js); der Platzhalter macht die
   Wand so weit scrollbar, wie das Vergrößerte groß ist */
.wand-inhalt {
  position: absolute;
  left: 0;
  top: 0;
  width: 2200px;
  height: 1500px;
  transform-origin: 0 0;
}

.wand-platz {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
}

.zoom output {
  min-width: 3.5em;
  text-align: center;
  cursor: pointer;
}

/* ausgewählt (für „Gruppe bilden“, Ziehen, Löschen): gestrichelter Rand; Runde 41 auch an Gruppen */
.modul.markiert,
.gruppen-rahmen.markiert {
  outline: 1px dashed var(--text);
  outline-offset: 4px;
}

/* Runde 41b: auf der ganzen Patch-Seite keine Textauswahl. Ziehen, Doppel- und Dreifachklick markierten sonst
   Zeilen wie in einem Text (blau). Nur wo man tippt (Felder, Notizen, Namen), bleibt Text markierbar.
   html statt .wand: die Leiste oben, die Hilfe und die Fenster liegen nicht alle in der Wand. */
html {
  user-select: none;
  -webkit-user-select: none;
}

:is(input, textarea, [contenteditable]) {
  user-select: text;
  -webkit-user-select: text;
}

.auswahl-rechteck {
  position: absolute;
  border: 1px dashed var(--text);
  pointer-events: none;
  z-index: 100001;
}

/* aufgeklappte Gruppe: ein Rahmen hinter ihren Modulen, oben eine Leiste mit Namen und Knöpfen */
.gruppen-rahmen {
  position: absolute;
  border: 1px solid var(--text);
  background: rgba(221, 221, 221, 0.03);
  pointer-events: none;
  z-index: 6; /* über zugeklappten Gruppen (5), unter Modulen (ab 10) */
}

.gruppen-rahmen .fenster-leiste {
  pointer-events: auto;
  cursor: grab;
}

.gruppe-fenster .fenster-titel,
.gruppen-rahmen .fenster-titel {
  cursor: text;
  outline: none;
}

.gruppe-fenster {
  min-width: 14rem;
  outline: 1px solid var(--text);
  outline-offset: 3px; /* doppelter Rand: das ist ein Kasten mit Modulen darin */
}

/* unsichtbare Punkte am linken und rechten Rand: dort enden Kabel zu Buchsen, die nicht außen liegen */
.gruppe-fenster .fenster-inhalt {
  position: relative;
}

.gruppe-rand-ein,
.gruppe-rand-aus {
  position: absolute;
  top: 1rem;
  width: 1px;
  height: 1px;
}

.gruppe-rand-ein {
  left: 0;
}

.gruppe-rand-aus {
  right: 0;
}

/* nach außen gelegt: doppelter Rand; Makro: der Name unterstrichen */
.buchse.nach-aussen {
  outline: 1px solid var(--text);
  outline-offset: 2px;
}

.knoepfe label.als-makro {
  text-decoration: underline;
}

/* ---------- Runde 21 ---------- */

/* „?“ in der Titelleiste: was das Modul macht */
.hilfe-knopf {
  width: 1.3rem;
  height: 1.3rem;
  margin-right: 0.3rem;
  padding: 0;
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1;
  cursor: pointer;
  align-self: center;
}

.hilfe-knopf[aria-expanded="true"] {
  background: var(--text);
  color: var(--bg);
}

.modul-hilfe {
  margin-bottom: 0.7rem;
  line-height: 1.45;
}

/* breitere Fenster (Pianoroll, Lenia, Akkorde) */
.fenster.modul.breit {
  width: 34rem;
}

/* Knöpfe unter einem Bild (Lenia: Wesen dazu, leeren): normale Knöpfe nebeneinander */
.knopf-reihe {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

/* kleine Anzeigen (Hüllkurve, LFO): flach, ein Strich */
.schirm.klein {
  height: 4.5rem;
  width: 100%;
}

/* Tastatur am Bildschirm */
.klaviatur {
  position: relative;
  display: flex;
  height: 5.5rem;
  margin-top: 0.5rem;
  user-select: none;
  touch-action: none;
}

.klaviatur .weiss {
  flex: 1;
  border: 1px solid currentColor;
  margin-right: -1px;
  background: var(--bg);
}

.klaviatur .schwarz {
  position: absolute;
  top: 0;
  height: 58%;
  border: 1px solid currentColor;
  background: var(--text);
  z-index: 1;
}

.klaviatur .gedrueckt.weiss {
  background: var(--text);
}

.klaviatur .gedrueckt.schwarz {
  background: var(--bg);
}

.klaviatur span {
  position: absolute;
  bottom: 0.2rem;
  font-size: 0.65rem;
  pointer-events: none;
}

/* Pianoroll */
.rolle {
  display: block;
  width: 100%;
  border: 1px solid currentColor;
  background: var(--bg);
  color: var(--text);
  touch-action: none;
  cursor: crosshair;
}

/* Akkorde: die Folge als Reihe von Feldern, der klingende Akkord vertauscht */
.folge {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.3rem;
  margin-top: 0.5rem;
}

.folge .feld {
  display: grid;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid currentColor;
  font-size: 0.75rem;
}

.folge .feld.jetzt {
  background: var(--text);
  color: var(--bg);
}

.folge .feld select {
  font-size: 0.75rem;
}

.folge select {
  width: 100%;
}

.tempo-gruppe input {
  width: 4.5em;
}

/* ---------- Runde 22: nur schlichte Fenster ----------
Die schlichten Fenster (css/fenster.css) blenden die zwei XP-Zierknöpfe aus. Hier sind sie aber echte Knöpfe
(einklappen, Bild an/aus): darum als Textknöpfe wie das Kreuz. Gleich genau wie die Regel dort, steht aber später. */
.modul .fenster-knopf.einklappen,
.modul .fenster-knopf.bild-schalter {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  background: none;
  color: inherit;
  font: inherit;
}

.modul .fenster-knopf.einklappen::before {
  content: "–";
}

.modul .fenster-knopf.bild-schalter::before {
  content: "◫";
}

.modul.eingeklappt .fenster-knopf.einklappen::before {
  content: "+";
}

.modul .fenster-knopf.einklappen:hover,
.modul .fenster-knopf.bild-schalter:hover:not(:disabled),
.modul .fenster-knopf.einklappen:focus-visible,
.modul .fenster-knopf.bild-schalter:focus-visible {
  background: var(--text);
  color: var(--bg);
  outline: none;
}

.modul.ohne-bild .fenster-knopf.bild-schalter {
  opacity: 0.5;
}

/* Gruppen: aufklappen/zuklappen und speichern, ebenfalls als Textknöpfe */
:root .fenster-knopf.gruppe-klappen,
:root .fenster-knopf.gruppe-speichern {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

:root .fenster-knopf.gruppe-klappen::before {
  content: "±";
}

:root .fenster-knopf.gruppe-speichern::before {
  content: "↓";
}

/* Runde 41b: „löschen“ als Wort (Gruppe mit allen Modulen); das Kreuz daneben löst nur auf */
.gruppe-loeschen {
  padding: 0 0.4rem;
  height: 1.6rem;
  border: 1px solid currentColor;
  background: none;
  color: inherit;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.gruppe-loeschen:hover,
.gruppe-loeschen:focus-visible {
  background: var(--text);
  color: var(--bg);
  outline: none;
}

:root .fenster-knopf.gruppe-klappen:hover,
:root .fenster-knopf.gruppe-speichern:hover,
:root .fenster-knopf.gruppe-klappen:focus-visible,
:root .fenster-knopf.gruppe-speichern:focus-visible {
  background: var(--text);
  color: var(--bg);
  outline: none;
}

/* Notiz: ein Zettel an der Wand */
.notiz-text {
  display: block;
  width: 100%;
  min-height: 5rem;
  padding: 0.4rem;
  border: 1px solid currentColor;
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1.45;
  resize: vertical;
  overflow: hidden;
}

.tageszeit {
  margin-top: 0.4rem;
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
}

/* Schleife: wo der Kopf auf dem Band steht */
.band-stelle {
  --stelle: 0;
  position: relative;
  height: 0.6rem;
  margin-top: 0.5rem;
  border: 1px solid currentColor;
}

.band-stelle::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--stelle) * 100%);
  width: 2px;
  background: var(--text);
}

/* Stimme: Text zum Sprechen oder Singen */
.stimme-text {
  display: block;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.3rem;
  border: 1px solid currentColor;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}

/* ---------- Runde 22b: ausschalten ---------- */
.stumm-knopf {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin-right: 0.2rem;
  padding: 0;
  border: 1px solid currentColor;
  background: var(--text);
  color: var(--bg);
  font: inherit;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  align-self: center;
}

/* aus: hohl (wie ein ausgeschaltetes Lämpchen) */
.stumm-knopf[aria-pressed="true"] {
  background: none;
  color: inherit;
}

.fenster.stumm .fenster-inhalt {
  opacity: 0.4;
}

.kabel.stumm {
  opacity: 0.25;
}

/* ---------- Runde 23: Kabel an Drehknöpfen, Buchsen-Infos ---------- */
.knoepfe label {
  position: relative;
}

/* die kleine Buchse oben rechts an jedem Knopf */
.buchse.mod-buchse {
  position: absolute;
  top: 0;
  right: 0.2rem;
  width: 0.75rem;
  height: 0.75rem;
  min-width: 0;
  padding: 0;
  opacity: 0.45;
}

.knoepfe label:hover .mod-buchse,
.buchse.mod-buchse.belegt {
  opacity: 1;
}

/* ein moduliertes Knopf-Feld: unterstrichen, damit man sieht, dass er gerade bewegt wird */
.knoepfe label.moduliert output {
  text-decoration: underline;
}

.buchsen-info {
  margin: 0.4rem 0 0;
  padding-left: 0;
  list-style: none;
  font-size: 0.8rem;
  opacity: 0.85;
}

.taster-knopf {
  min-width: 7rem;
  min-height: 3rem;
}

.taster-knopf[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

/* Preset-Auswahl in der Titelleiste einer Gruppe */
.gruppen-rahmen .fenster-leiste {
  pointer-events: auto;
}

.gruppe-preset {
  margin: 0 0.5rem;
  font-size: 0.8rem;
}

/* Runde 24: Modul-Auswahl nach Themen aufklappbar */
.patch-leiste {
  position: relative;
}

.modul-browser {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 50;
  width: min(34rem, 92vw);
  max-height: 70vh;
  overflow: auto;
  padding: 0.4rem;
  border: 1px solid currentColor;
  background: var(--bg);
  color: var(--text);
}

.modul-browser details {
  border-bottom: 1px solid rgba(221, 221, 221, 0.2);
}

.modul-browser summary {
  padding: 0.3rem 0.2rem;
  cursor: pointer;
}

.modul-liste {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.2rem 0 0.5rem 1rem;
}

.modul-liste > .familie {
  flex-basis: 100%;
  border-bottom: none;
}

.modul-liste button {
  font-size: 0.85rem;
}

/* Spuren (Runde 23b): Kanal und Clips */
.pegel-anzeige {
  display: block;
  width: 100%;
  height: 14px;
  color: var(--text);
}

.solo-knopf[aria-pressed="true"],
.clip-feld.spielt {
  background: var(--text);
  color: var(--bg);
}

.clip-raster {
  display: grid;
  gap: 2px;
  margin-bottom: 0.5rem;
}

.clip-raster button {
  min-width: 0;
  min-height: 1.6rem;
  padding: 0 0.2rem;
  font-size: 0.75rem;
}

.clip-kopf {
  text-align: center;
  font-size: 0.75rem;
  opacity: 0.8;
}

.clip-feld {
  border-style: dashed;
  opacity: 0.6;
}

.clip-feld.voll {
  border-style: solid;
  opacity: 1;
}

.clip-feld.gewaehlt {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}

.clip-feld.wartet {
  animation: clip-blinkt 0.5s steps(1) infinite;
}

@keyframes clip-blinkt {
  50% {
    background: var(--text);
    color: var(--bg);
  }
}

.ablauf-zeile input {
  width: 14rem;
}

.ablauf-streifen {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 0.3rem 0;
}

.ablauf-streifen span {
  min-width: 1.6rem;
  padding: 0 0.3rem;
  border: 1px solid currentColor;
  text-align: center;
  font-size: 0.75rem;
}

.ablauf-streifen span.jetzt {
  background: var(--text);
  color: var(--bg);
}

/* Shaper: Kennlinie zum Malen (Runde 24) */
canvas.malbar {
  cursor: crosshair;
  touch-action: none;
}

.clip-raster button:not(.spielt) {
  background: transparent;
  color: var(--text);
}

/* ABC: Noten als Text (Runde 25) */
.abc-feld {
  width: 100%;
  font: inherit;
  font-size: 0.85rem;
  background: var(--bg);
  color: var(--text);
  border: 1px solid currentColor;
}

/* Arrangement unter der Wand (Runde 29) */
.arrangement-feld {
  margin-top: 1rem;
  padding: 0.5rem;
  border: 1px solid currentColor;
}

.arrangement-scroll {
  overflow-x: auto;
}

.arrangement-feld canvas.rolle:not(.arrangement) {
  max-width: 60rem;
}

.fenster.modul.nur-arr .clip-raster,
.fenster.modul.nur-arr .ablauf-zeile,
.fenster.modul.nur-arr .ablauf-streifen {
  display: none;
}

.arrangement-feld button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}

/* Video (Runde 33) */
.video-schirm {
  display: block;
  width: 100%;
  border: 1px solid currentColor;
  background: #000;
}

/* EQ 8: Bandwahl unter der Kurve (nur das gewählte Band zeigt seine Knöpfe) */
.eq8-baender {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  margin-top: 0.3rem;
}
.eq8-band {
  font: inherit;
  font-size: 0.75rem;
  padding: 0.1rem 0;
  border: 1px solid currentColor;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}
.eq8-band.an {
  background: var(--text);
  color: var(--bg);
}
