/* GPTGenie: Heft-Editor (js/notes/notes.js). Aufbau wie eine Notiz-App: feste Leiste oben (Heft, Rückgängig,
 * Seiten), Werkzeuge (PC/Tablet in der Leiste, Handy unten), darunter eine Zeile mit den Einstellungen des
 * Werkzeugs. Ruhige, matte Flächen statt Glas, Seiten wie Papier auf einem Schreibtisch.
 * Heller Modus: Farben (Variablen) in light.css. */

.gn {
  --gn-desk: #19191b;
  --gn-bar: #242426;
  --gn-strip: #1f1f21;
  --gn-pop: #2b2b2e;
  --gn-ink: #ededef;
  --gn-ink2: rgba(237,237,239,0.64);
  --gn-ink3: rgba(237,237,239,0.4);
  --gn-line: rgba(255,255,255,0.08);
  --gn-line2: rgba(255,255,255,0.14);
  --gn-hover: rgba(255,255,255,0.065);
  --gn-press: rgba(255,255,255,0.11);
  --gn-field: rgba(255,255,255,0.06);
  --gn-chip-bg: #1c1c1f;
  --gn-chip-ink: #f2f2f4;
  --gn-acc: rgb(var(--a-a855f7,168,85,247));
  --gn-acc-soft: rgba(var(--a-a855f7,168,85,247),0.16);
  --gn-shadow: 0 12px 32px -12px rgba(0,0,0,0.6), 0 2px 6px rgba(0,0,0,0.28);
  --gn-bar-h: 52px;
  --gn-strip-h: 48px;
  --gn-top: 100px;
  --gn-bot: 0px;
  position: fixed; inset: 0; z-index: 9400; background: var(--gn-desk); color: var(--gn-ink);
  font-family: inherit; font-size: 14px; line-height: 1.4; text-align: left; -webkit-user-select: none; user-select: none; overscroll-behavior: none;
  opacity: 0; transition: opacity .2s ease;
}
.gn.on { opacity: 1; }
.gn[hidden], .gn [hidden] { display: none !important; }
html.gn-open, html.gn-open body { overflow: hidden !important; }
html.gn-open #gga-side { display: none !important; }
.gn button { font-family: inherit; color: inherit; -webkit-tap-highlight-color: transparent; line-height: 1.2; }
.gn-i { width: 22px; height: 22px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ── Arbeitsfläche ─────────────────────────────────────────────────────── */
.gn-view { position: absolute; inset: 0; overflow: hidden; touch-action: none; outline: none; cursor: crosshair; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
.gn[data-tool="hand"] .gn-view { cursor: grab; }
.gn[data-tool="lasso"] .gn-view { cursor: default; }
.gn[data-tool="text"] .gn-view { cursor: text; }
.gn-stack { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.gn-pg {
  position: absolute; left: 0; top: 0; background: #fff; border-radius: 2px; overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.5), 0 1px 2px rgba(0,0,0,0.3), 0 10px 26px -10px rgba(0,0,0,0.55);
  will-change: transform;
}
.gn-pg canvas { position: absolute; display: block; }
.gn-live, .gn-selcv { position: absolute; left: 0; top: 0; pointer-events: none; }
.gn-live { width: 100%; height: 100%; }
.gn-selcv { transform-origin: 0 0; will-change: transform; }
.gn-selbox {
  position: absolute; left: 0; top: 0; border: 1.5px dashed var(--gn-acc); border-radius: 6px;
  background: rgba(var(--a-a855f7,168,85,247),0.045); pointer-events: none;
}
.gn-handle {
  position: absolute; right: -11px; bottom: -11px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2px solid var(--gn-acc); box-shadow: 0 1px 4px rgba(0,0,0,.35); pointer-events: auto; cursor: nwse-resize; touch-action: none;
}
.gn.gn-has-anchors .gn-handle { display: none; }
/* gesperrtes Bild: grauer Rahmen mit Schloss, nicht verschieb- oder vergrößerbar */
.gn-selbox.gn-locked { border-style: solid; border-color: rgba(142,142,147,.9); background: rgba(142,142,147,.08); }
.gn-selbox.gn-locked .gn-handle { display: none; }
.gn-selbox.gn-locked::after {
  content: ""; position: absolute; right: -10px; top: -10px; width: 22px; height: 22px; border-radius: 50%;
  background: #8e8e93 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='6' y='11' width='12' height='9' rx='2'/%3E%3Cpath d='M9 11V8a3 3 0 0 1 6 0v3'/%3E%3C/svg%3E") center / 14px no-repeat;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
/* Ankerpunkte einer Form */
.gn-anch { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 2; }
.gn-anchor {
  position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; pointer-events: auto; touch-action: none; cursor: move;
  background: #fff; border: 2.5px solid var(--gn-acc); box-shadow: 0 1px 4px rgba(0,0,0,.35);
}
.gn-anchor::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; }
/* Auswahl-Menü: dunkler Streifen wie das Bearbeiten-Menü im System, in beiden Modi */
.gn-selbar {
  position: absolute; left: 0; top: 0; display: flex; padding: 3px; border-radius: 12px; z-index: 3;
  background: var(--gn-chip-bg); color: var(--gn-chip-ink); box-shadow: 0 8px 24px -8px rgba(0,0,0,.55), 0 0 0 0.5px rgba(255,255,255,.08);
}
.gn-selbar button {
  display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 60px; padding: 6px 8px 5px; border: 0; border-radius: 9px;
  background: transparent; font-size: 11px; font-weight: 600; cursor: pointer; color: inherit;
}
.gn-selbar button + button { box-shadow: -0.5px 0 0 rgba(255,255,255,.12); border-radius: 0; }
.gn-selbar button:first-child { border-radius: 9px 0 0 9px; }
.gn-selbar button:last-child { border-radius: 0 9px 9px 0; }
.gn-selbar button .gn-i { width: 18px; height: 18px; }
.gn-selbar button:hover { background: rgba(255,255,255,.08); }
.gn-danger { color: #ff5a52 !important; }

/* ── Leiste oben ───────────────────────────────────────────────────────── */
.gn-bar {
  position: absolute; z-index: 5; left: 0; right: 0; top: 0; height: calc(var(--gn-bar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(8px, env(safe-area-inset-right, 0px)) 0 max(8px, env(safe-area-inset-left, 0px));
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: var(--gn-bar); box-shadow: 0 0.5px 0 var(--gn-line);
}
.gn-bar-l, .gn-bar-r { display: flex; align-items: center; gap: 2px; min-width: 0; }
.gn-bar-l { flex: 0 1 auto; }
.gn-bar-r { flex: 0 0 auto; }
.gn-ib {
  width: 40px; height: 40px; flex: 0 0 40px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 10px;
  background: transparent; cursor: pointer; transition: background .12s ease;
}
.gn-ib:hover { background: var(--gn-hover); }
.gn-ib:active { background: var(--gn-press); }
.gn-ib:disabled { opacity: .3; cursor: default; background: transparent; }
.gn-ib:focus-visible, .gn-tool:focus-visible, .gn-penb:focus-visible, .gn-strip button:focus-visible { outline: 2px solid var(--gn-acc); outline-offset: 1px; }
.gn-ib-s { width: 30px; height: 30px; flex-basis: 30px; border-radius: 8px; }
.gn-ib-s .gn-i { width: 18px; height: 18px; }
.gn-sep { width: 1px; height: 22px; background: var(--gn-line2); margin: 0 6px; }
.gn-title {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center; min-width: 0; max-width: 260px; height: 40px; padding: 0 10px 0 4px;
  border: 0; background: transparent; cursor: pointer; text-align: left; border-radius: 10px;
}
.gn-title:hover { background: var(--gn-hover); }
.gn-title-t { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.2; }
.gn-title-s { display: flex; gap: 5px; max-width: 100%; overflow: hidden; font-size: 11.5px; color: var(--gn-ink3); white-space: nowrap; font-variant-numeric: tabular-nums; line-height: 1.3; }
.gn-title-s.gn-nostat .gn-dot { display: none; }
#gn-status[data-state="saving"], #gn-status[data-state="dirty"] { color: var(--gn-ink2); }
#gn-status[data-state="error"] { color: #ff5a52; }

/* ── Werkzeuge ─────────────────────────────────────────────────────────── */
.gn-tools {
  position: absolute; z-index: 6; top: env(safe-area-inset-top, 0px); left: 50%; transform: translateX(-50%);
  height: var(--gn-bar-h); display: flex; align-items: center; gap: 2px;
}
.gn-tool {
  position: relative; width: 40px; height: 40px; flex: 0 0 auto; display: flex; align-items: center; justify-content: center;
  border: 0; border-radius: 10px; background: transparent; color: var(--gn-ink2); cursor: pointer; transition: background .12s ease, color .12s ease;
}
.gn-tool:hover { background: var(--gn-hover); color: var(--gn-ink); }
.gn-tool.on { background: var(--gn-press); color: var(--gn-acc); }
.gn-tool-dot { position: absolute; right: 6px; bottom: 6px; width: 7px; height: 7px; border-radius: 50%; box-shadow: 0 0 0 1.5px var(--gn-bar); }
.gn-tool:not(.on) .gn-tool-dot { opacity: .7; }

/* ── Zeile mit den Einstellungen des Werkzeugs ─────────────────────────── */
.gn-strip {
  position: absolute; z-index: 4; left: 0; right: 0; top: calc(var(--gn-bar-h) + env(safe-area-inset-top, 0px)); height: var(--gn-strip-h);
  background: var(--gn-strip); box-shadow: 0 0.5px 0 var(--gn-line), 0 6px 14px -12px rgba(0,0,0,.6);
  overflow-x: auto; overflow-y: hidden; scrollbar-width: none; overscroll-behavior-x: contain;
}
.gn-strip::-webkit-scrollbar { display: none; }
.gn-strip-in { display: flex; align-items: center; gap: 4px; width: max-content; min-width: 100%; height: 100%; padding: 0 14px; justify-content: center; box-sizing: border-box; }
.gn-sec { display: flex; align-items: center; gap: 2px; height: 100%; }
.gn-ssep { flex: 0 0 1px; height: 22px; margin: 0 8px; background: var(--gn-line2); }
.gn-slabel, .gn-shint { font-size: 13px; color: var(--gn-ink2); white-space: nowrap; margin-right: 4px; }
.gn-shint { margin-right: 10px; }
/* Federmäppchen: Stifte stehen im Fach, der gewählte ist herausgezogen */
.gn-case { gap: 0; overflow: hidden; }
.gn-penb {
  position: relative; flex: 0 0 auto; width: 30px; height: 100%; border: 0; background: transparent; cursor: pointer; padding: 0;
  display: flex; align-items: flex-start; justify-content: center; overflow: hidden;
}
.gn-penb svg { width: 24px; height: 58px; margin-top: 2px; transform: translateY(16px); transition: transform .2s cubic-bezier(.2,.8,.2,1); filter: drop-shadow(0 1px 1.5px rgba(0,0,0,.35)); }
.gn-penb:hover svg { transform: translateY(11px); }
.gn-penb.on svg { transform: translateY(3px); }
.gn-penb > i { width: 16px; height: 16px; margin-top: 16px; border-radius: 50%; }
.gn-penb-style { position: absolute; left: 50%; bottom: 2px; width: 22px; height: 12px; margin-left: -11px; border-radius: 4px; background: var(--gn-strip); display: flex; align-items: center; justify-content: center; }
.gn-penb-style .gn-i { width: 16px; height: 12px; stroke-width: 2.2; }
.gn-penadd {
  flex: 0 0 auto; width: 28px; height: 28px; margin: 0 2px 0 6px; border-radius: 50%; border: 1.5px dashed var(--gn-ink3);
  background: transparent; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--gn-ink2); padding: 0;
}
.gn-penadd:hover { border-color: var(--gn-ink2); color: var(--gn-ink); }
.gn-penadd .gn-i { width: 15px; height: 15px; }
/* Stärke */
.gn-size { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; color: var(--gn-ink2); }
.gn-size i { display: block; border-radius: 99px; background: currentColor; }
.gn-size:hover { background: var(--gn-hover); color: var(--gn-ink); }
.gn-size.on { background: var(--gn-press); color: var(--gn-ink); box-shadow: inset 0 0 0 1.5px var(--gn-line2); }
/* Farben */
.gn-colors { gap: 6px; padding: 0 2px; }
.gn-colors .gn-swb { width: 24px; height: 24px; flex: 0 0 24px; }
.gn-swb {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 50%; border: 0; cursor: pointer; background: var(--c); padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
}
.gn-swb.on { box-shadow: 0 0 0 2px var(--gn-strip), 0 0 0 3.5px var(--gn-ink); }
.gn-pop .gn-swb.on { box-shadow: 0 0 0 2px var(--gn-pop), 0 0 0 3.5px var(--gn-ink); }
.gn-swc { background: conic-gradient(#ff5252, #ffd740, #69f0ae, #40c4ff, #7c4dff, #ff4081, #ff5252); overflow: hidden; display: block; }   /* accent-keep */
.gn-swc.on { background: var(--c); }
.gn-swc input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
/* Knöpfe, Schalter, Umschalter in der Zeile */
.gn-sbtn { height: 32px; min-width: 32px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; color: var(--gn-ink2); white-space: nowrap; font-size: 13px; font-weight: 600; flex: 0 0 auto; }
.gn-sbtn:hover { background: var(--gn-hover); color: var(--gn-ink); }
.gn-sbtn .gn-i { width: 19px; height: 19px; }
.gn-sbtn-t { padding: 0 10px 0 8px; }
.gn-seg { display: flex; gap: 2px; padding: 2px; border-radius: 9px; background: var(--gn-field); box-shadow: inset 0 0 0 0.5px var(--gn-line); }
.gn-seg button { flex: 1; min-height: 30px; border: 0; border-radius: 7px; background: transparent; font-size: 13px; font-weight: 600; cursor: pointer; padding: 0 12px; white-space: nowrap; color: var(--gn-ink2); }
.gn-seg button:hover { color: var(--gn-ink); }
.gn-seg button.on { background: var(--gn-pop); color: var(--gn-ink); box-shadow: 0 1px 3px rgba(0,0,0,.3), 0 0 0 0.5px var(--gn-line2); }
.gn-sec-seg { flex: 0 0 auto; }
.gn-chip { height: 30px; display: inline-flex; align-items: center; gap: 5px; padding: 0 11px 0 8px; margin: 0 2px; border-radius: 15px; border: 0; background: transparent; box-shadow: inset 0 0 0 1px var(--gn-line2); font-size: 12.5px; font-weight: 600; color: var(--gn-ink2); cursor: pointer; white-space: nowrap; flex: 0 0 auto; }
.gn-chip:hover { color: var(--gn-ink); }
.gn-chk { width: 15px; height: 15px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--gn-ink3); display: inline-flex; align-items: center; justify-content: center; }
.gn-chk .gn-i { width: 11px; height: 11px; stroke-width: 3; opacity: 0; }
.gn-chip.on { background: var(--gn-acc-soft); box-shadow: inset 0 0 0 1px rgba(var(--a-a855f7,168,85,247),0.45); color: var(--gn-ink); }
.gn-chip.on .gn-chk { background: var(--gn-acc); box-shadow: none; color: #fff; }
.gn-chip.on .gn-chk .gn-i { opacity: 1; }
.gn-styles, .gn-shapes-row { gap: 2px; }
.gn-styleb, .gn-shapeb { height: 34px; min-width: 34px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 6px; color: var(--gn-ink2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.gn-styleb:hover, .gn-shapeb:hover { background: var(--gn-hover); color: var(--gn-ink); }
.gn-styleb.on, .gn-shapeb.on { background: var(--gn-press); color: var(--gn-acc); box-shadow: inset 0 0 0 1.5px var(--gn-line2); }
.gn-shapeb span { display: none; }
.gn-styleb .gn-i, .gn-shapeb .gn-i { width: 20px; height: 20px; }
.gn-srange { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--gn-ink2); white-space: nowrap; }
.gn-srange input { width: 120px; accent-color: var(--gn-acc); }
.gn-srange b { min-width: 34px; font-variant-numeric: tabular-nums; color: var(--gn-ink); font-weight: 600; }

/* Zoom-Anzeige (nur gezoomt) */
.gn-zoom {
  position: absolute; z-index: 4; left: 12px; bottom: calc(var(--gn-bot) + 12px);
  height: 30px; padding: 0 12px; border-radius: 15px; border: 0; background: var(--gn-chip-bg); color: var(--gn-chip-ink);
  font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; cursor: pointer; box-shadow: var(--gn-shadow);
}
.gn:not(.gn-zoomed) .gn-zoom { display: none; }

/* ── kleine Fenster ────────────────────────────────────────────────────── */
.gn-pop {
  position: fixed; z-index: 20; width: min(300px, calc(100vw - 16px)); max-height: calc(100dvh - 24px); overflow: auto;
  padding: 12px; border-radius: 14px; background: var(--gn-pop); box-shadow: var(--gn-shadow), 0 0 0 0.5px var(--gn-line2);
  opacity: 0; transform: translateY(4px); transition: opacity .14s ease, transform .18s cubic-bezier(.2,.8,.2,1);
}
.gn-pop-wide { width: min(380px, calc(100vw - 16px)); }
.gn-pop.on { opacity: 1; transform: none; }
.gn-pop-h { font-size: 13px; font-weight: 700; color: var(--gn-ink2); margin: 0 4px 10px; }
.gn-row { display: flex; align-items: center; gap: 10px; margin: 10px 4px; font-size: 13.5px; }
.gn-row > span { width: 86px; flex: 0 0 86px; color: var(--gn-ink2); }
.gn-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--gn-acc); }
.gn-row b { width: 44px; text-align: right; font-variant-numeric: tabular-nums; font-size: 13px; font-weight: 600; }
.gn-row-col { flex-direction: column; align-items: stretch; gap: 6px; }
.gn-row-col > span { width: auto; flex: none; }
.gn-row-col .gn-seg button { padding: 0 6px; font-size: 12.5px; }
.gn-seg-wrap { flex-wrap: wrap; margin-bottom: 4px; }
.gn-seg-wrap button { flex: 1 1 30%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: 11.5px; }
.gn-styles-pop { flex-wrap: wrap; margin-bottom: 4px; }
.gn-styles-pop button { flex: 1 1 30%; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; font-size: 11px; }
.gn-styles-pop .gn-i { width: 22px; height: 18px; }
.gn-mini { display: block; height: 34px; overflow: hidden; }
.gn-mini svg { width: 15px; height: 38px; }
.gn-preview { width: 100%; height: 42px; margin: 2px 0 4px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 0.5px rgba(0,0,0,.2); }
.gn-sw { display: grid; grid-template-columns: repeat(7, 1fr); gap: 9px; margin: 10px 4px 6px; }
.gn-link { display: flex; align-items: center; gap: 9px; width: 100%; margin-top: 4px; padding: 9px 6px; border: 0; border-radius: 8px; background: transparent; font-size: 13.5px; font-weight: 600; cursor: pointer; text-align: left; }
.gn-link:hover { background: var(--gn-hover); }
.gn-link .gn-i { width: 18px; height: 18px; }
.gn-hint { margin: 8px 4px 2px; font-size: 12.5px; line-height: 1.45; color: var(--gn-ink3); }
.gn-check { display: flex; align-items: flex-start; gap: 10px; margin: 10px 4px 2px; font-size: 13.5px; line-height: 1.35; cursor: pointer; }
.gn-check input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: var(--gn-acc); margin-top: 1px; }
.gn-tpl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gn-tpl button { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 4px 2px; border: 0; border-radius: 10px; background: transparent; font-size: 11px; font-weight: 600; cursor: pointer; text-align: center; line-height: 1.15; }
.gn-tpl button:hover { background: var(--gn-hover); }
.gn-tpl img { width: 100%; aspect-ratio: 595/842; border-radius: 2px; box-shadow: 0 0 0 0.5px rgba(0,0,0,.35), 0 3px 8px -4px rgba(0,0,0,.5); background: #fff; }
.gn-menu { display: flex; flex-direction: column; margin: -6px; }
.gn-menu button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 0; border-radius: 9px; background: transparent; font-size: 14.5px; text-align: left; cursor: pointer; }
.gn-menu button:hover { background: var(--gn-hover); }
.gn-menu .gn-i { width: 19px; height: 19px; opacity: .8; }
.gn-menu-sep { height: 1px; margin: 4px 10px; background: var(--gn-line); }
.gn-xl-alt, .gn-lg-alt, .gn-md-alt { display: none !important; }

/* ── Seitenübersicht ───────────────────────────────────────────────────── */
.gn-panel {
  position: absolute; z-index: 6; top: calc(var(--gn-top) + 10px); right: 10px; bottom: 10px;
  width: min(300px, calc(100vw - 20px)); display: flex; flex-direction: column; border-radius: 14px;
  background: var(--gn-pop); box-shadow: var(--gn-shadow), 0 0 0 0.5px var(--gn-line2);
  animation: gn-in .22s cubic-bezier(.2,.8,.2,1);
}
@keyframes gn-in { from { opacity: 0; transform: translateX(12px); } }
.gn-panel[hidden] { display: none; }
.gn-panel-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 6px 4px 16px; }
.gn-panel-head h2 { margin: 0; font-size: 16px; font-weight: 700; }
.gn-panel-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; padding: 6px 14px 16px; align-content: start; }
.gn-thumb { display: flex; flex-direction: column; gap: 4px; }
.gn-thumb-pg { padding: 0; border: 0; border-radius: 2px; overflow: hidden; cursor: pointer; background: #fff; box-shadow: 0 0 0 0.5px rgba(0,0,0,.4), 0 6px 14px -8px rgba(0,0,0,.6); }
.gn-thumb { min-width: 0; }
.gn-thumb-pg { width: 100%; aspect-ratio: 595 / 842; }
.gn-thumb-pg canvas { display: block; width: 100%; height: 100%; }
.gn-thumb.on .gn-thumb-pg { box-shadow: 0 0 0 2.5px var(--gn-acc), 0 6px 14px -8px rgba(0,0,0,.6); }
.gn-thumb-row { display: flex; align-items: center; justify-content: space-between; padding-left: 4px; font-size: 12.5px; font-weight: 700; color: var(--gn-ink2); font-variant-numeric: tabular-nums; }
.gn-thumb-add {
  aspect-ratio: 595/842; border: 1.5px dashed var(--gn-line2); border-radius: 4px; background: transparent; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--gn-ink2); font-size: 13px; font-weight: 700;
}
.gn-thumb-add:hover { border-color: var(--gn-acc); color: var(--gn-acc); }

/* Hinweis kurz unten */
.gn-toast {
  position: absolute; z-index: 7; left: 50%; bottom: calc(var(--gn-bot) + 22px); transform: translate(-50%, 6px);
  max-width: calc(100vw - 32px); padding: 9px 15px; border-radius: 10px; background: var(--gn-chip-bg); color: var(--gn-chip-ink);
  font-size: 13.5px; font-weight: 600; text-align: center; opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .22s ease;
  box-shadow: 0 8px 22px -8px rgba(0,0,0,.5);
}
.gn-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Fenster (Text, Hilfe, Einstellungen, Bestätigen) */
.gn-sheet-ov {
  position: fixed; inset: 0; z-index: 30; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(0,0,0,.42); opacity: 0; transition: opacity .18s ease;
}
.gn-sheet-ov.on { opacity: 1; }
.gn-sheet {
  width: min(520px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 16px 18px 18px; border-radius: 18px;
  background: var(--gn-pop); color: var(--gn-ink); box-shadow: var(--gn-shadow); -webkit-user-select: text; user-select: text;
  transform: translateY(10px); transition: transform .24s cubic-bezier(.2,.8,.2,1);
}
.gn-sheet-ov.on .gn-sheet { transform: none; }
.gn-sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.gn-sheet-head h2 { margin: 0; font-size: 18px; font-weight: 700; }
.gn-sheet-text { margin: 0 0 12px; color: var(--gn-ink2); font-size: 14.5px; line-height: 1.5; }
.gn-input { width: 100%; box-sizing: border-box; border: 0; box-shadow: inset 0 0 0 1px var(--gn-line2); border-radius: 10px; background: var(--gn-field); color: var(--gn-ink); font: inherit; font-size: 16px; padding: 12px 14px; outline: none; }
.gn-input:focus { box-shadow: inset 0 0 0 1.5px var(--gn-acc), 0 0 0 3px var(--gn-acc-soft); }
.gn-textarea { min-height: 150px; resize: vertical; line-height: 1.5; }
.gn-sheet-act { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.gn-btn { min-height: 44px; border: 0; border-radius: 10px; font-size: 15px; font-weight: 700; cursor: pointer; padding: 0 18px; }
.gn-btn-block { width: 100%; }
.gn-btn-primary { background: var(--gn-acc); color: #fff; }
.gn-btn-danger { background: #e5483e; color: #fff; }
.gn-btn:disabled { opacity: .6; }
.gn-help p { display: flex; justify-content: space-between; gap: 16px; margin: 0; padding: 10px 2px; border-bottom: 1px solid var(--gn-line); font-size: 14px; color: var(--gn-ink2); }
.gn-help p b { color: var(--gn-ink); font-weight: 700; }
.gn-help p span { text-align: right; }
.gn-set { display: flex; flex-direction: column; }
.gn-set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 2px; border-bottom: 1px solid var(--gn-line); cursor: pointer; }
.gn-set-row:last-child { border-bottom: 0; }
.gn-set-row b { display: block; font-size: 14.5px; font-weight: 650; }
.gn-set-row small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--gn-ink3); }
.gn-set-r { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.gn-set-r input { width: 120px; accent-color: var(--gn-acc); }
.gn-set-r b { min-width: 52px; font-size: 13px; font-weight: 600; color: var(--gn-ink2); }
.gn-switch { position: relative; flex: 0 0 44px; width: 44px; height: 26px; }
.gn-switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.gn-switch i { position: absolute; inset: 0; border-radius: 13px; background: var(--gn-line2); transition: background .15s ease; pointer-events: none; }
.gn-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .18s cubic-bezier(.2,.8,.2,1); }
.gn-switch input:checked + i { background: var(--gn-acc); }
.gn-switch input:checked + i::after { transform: translateX(18px); }
.gn-switch input:focus-visible + i { outline: 2px solid var(--gn-acc); outline-offset: 2px; }

/* ── Breiten ───────────────────────────────────────────────────────────── */
@media (min-width: 1300px) { .gn-shapeb span { display: inline; } }
@media (max-width: 1239px) { .gn-lg { display: none !important; } .gn-lg-alt { display: flex !important; } }
@media (max-width: 1039px) {
  .gn-md { display: none !important; } .gn-md-alt { display: flex !important; }
  .gn-xl { display: none !important; } .gn-xl-alt { display: flex !important; }
  .gn-title { max-width: 150px; }
}
@media (max-width: 899px) and (min-width: 700px) { .gn-title { max-width: 104px; } .gn-tool { width: 37px; } }
@media (min-width: 700px) and (max-width: 1039px) { .gn-title-s { display: none; } }

/* Handy: Werkzeuge unten, Einstellungszeile darüber */
@media (max-width: 699px) {
  .gn { --gn-bar-h: 50px; --gn-strip-h: 46px; }
  .gn-title { max-width: none; flex: 1 1 auto; }
  .gn-bar-l { flex: 1 1 auto; }
  .gn-tools {
    top: auto; bottom: 0; left: 0; right: 0; transform: none; height: calc(54px + env(safe-area-inset-bottom, 0px));
    padding: 0 6px env(safe-area-inset-bottom, 0px); background: var(--gn-bar); box-shadow: 0 -0.5px 0 var(--gn-line);
    justify-content: space-between; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .gn-tools::-webkit-scrollbar { display: none; }
  .gn-tool { flex: 1 1 0; width: auto; min-width: 34px; max-width: 54px; height: 44px; }
  .gn-strip { top: auto; bottom: calc(54px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -0.5px 0 var(--gn-line), 0 -6px 14px -12px rgba(0,0,0,.6); }
  .gn-strip-in { justify-content: flex-start; padding: 0 10px; }
  .gn-ssep { margin: 0 5px; }
  .gn-panel { left: 8px; right: 8px; width: auto; top: auto; height: min(62vh, 560px); bottom: calc(var(--gn-bot) + 8px); }
  .gn-selbar button { min-width: 50px; font-size: 10px; padding: 6px 5px 5px; }
  .gn-shint { white-space: normal; font-size: 12px; line-height: 1.3; max-width: 200px; }
  .gn-set-slide { flex-direction: column; align-items: stretch; gap: 10px; }
  .gn-set-slide .gn-set-r input { flex: 1; width: auto; }
}
@media (max-width: 380px) { .gn-ib { width: 36px; height: 36px; flex-basis: 36px; } }
@media (prefers-reduced-motion: reduce) { .gn, .gn-pop, .gn-sheet, .gn-penb svg, .gn-switch i::after { transition: none; } .gn-panel { animation: none; } }

/* ── Lineal ────────────────────────────────────────────────────────────── */
.gn-ruler {
  position: absolute; left: 0; top: 0; transform-origin: 0 0; pointer-events: none; z-index: 2;
  border-radius: 5px; background: rgba(var(--a-fafafc,250,250,252),0.62); border: 1px solid rgba(0,0,0,0.22);
  box-shadow: 0 8px 22px -10px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.7);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  background-image:
    repeating-linear-gradient(90deg, rgba(20,20,30,.75) 0 1px, transparent 1px calc(var(--mm) * 10)),
    repeating-linear-gradient(90deg, rgba(20,20,30,.55) 0 1px, transparent 1px calc(var(--mm) * 5)),
    repeating-linear-gradient(90deg, rgba(20,20,30,.4) 0 1px, transparent 1px var(--mm));
  background-size: 100% 16px, 100% 11px, 100% 7px;
  background-repeat: no-repeat;
  background-position: 0 0, 0 0, 0 0;
}
html.gg-perf .gn-ruler { -webkit-backdrop-filter: none; backdrop-filter: none; background-color: rgba(var(--a-fafafc,250,250,252),0.86); }
.gn-ruler-nums { position: absolute; left: 0; top: 17px; right: 0; height: 14px; }
.gn-ruler-nums span { position: absolute; transform: translateX(-50%); font-size: 10px; font-weight: 700; color: rgba(20,20,30,.75); font-variant-numeric: tabular-nums; }
.gn-ruler-nums span:first-child { transform: none; }
.gn-ruler-deg {
  position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); padding: 1px 8px; border-radius: 6px;
  background: rgba(20,20,30,.8); color: #fff; font-size: 12px; font-weight: 800; font-variant-numeric: tabular-nums;
}

/* Suche im Heft */
.gn-results { display: flex; flex-direction: column; gap: 4px; margin-top: 12px; max-height: 50vh; overflow: auto; }
.gn-results button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 12px; border: 0; border-radius: 10px; background: var(--gn-field); text-align: left; cursor: pointer; }
.gn-results button:hover { background: var(--gn-hover); }
.gn-results b { font-size: 12px; color: var(--gn-acc); }
.gn-results span { font-size: 14px; color: var(--gn-ink); }

/* Papier-Auswahl: Reiter, Hochladen */
.gn-tabs { margin-bottom: 10px; }
.gn-tpl-up {
  border: 1.5px dashed var(--gn-line2) !important; border-radius: 4px !important; aspect-ratio: 595/842; justify-content: center; margin: 4px 2px; padding: 4px !important; font-size: 10.5px !important;
  color: var(--gn-ink2);
}
.gn-tpl-up:hover { border-color: var(--gn-acc) !important; color: var(--gn-acc); }
.gn-tpl-up .gn-i { width: 22px; height: 22px; }
.gn-tpl img[loading] { object-fit: cover; }
.gn-span { grid-column: 1 / -1; }

/* Seite hinzufügen / Papier ändern */
.gn-sheet.gn-sheet-wide { width: min(640px, 100%); }
.gn-ps-tabs { margin-bottom: 14px; }
.gn-ps-body { min-height: 120px; }
.gn-ps-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px 12px; }
.gn-ps-tile { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: transparent; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--gn-ink2); text-align: center; line-height: 1.2; }
.gn-ps-img {
  position: relative; display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 595/842; border-radius: 3px; overflow: hidden; background: #fff;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,.35), 0 4px 10px -5px rgba(0,0,0,.5); transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .15s ease;
}
.gn-ps-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gn-ps-tile:hover .gn-ps-img { transform: translateY(-2px); }
.gn-ps-tile.on .gn-ps-img { box-shadow: 0 0 0 2.5px var(--gn-acc), 0 6px 14px -6px rgba(0,0,0,.5); }
.gn-ps-tile.on .gn-ps-name { color: var(--gn-ink); }
.gn-ps-tick { position: absolute; right: 5px; bottom: 5px; width: 22px; height: 22px; border-radius: 50%; background: var(--gn-acc); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.gn-ps-tick .gn-i { width: 14px; height: 14px; stroke-width: 3; }
.gn-ps-up .gn-ps-img { background: transparent; box-shadow: none; border: 1.5px dashed var(--gn-line2); color: var(--gn-ink2); }
.gn-ps-up:hover .gn-ps-img { border-color: var(--gn-acc); color: var(--gn-acc); }
.gn-ps-tone { display: flex; justify-content: center; gap: 6px; margin: 0 0 14px; transition: opacity .15s ease; }
.gn-ps-tone.gn-off { opacity: .35; pointer-events: none; }
.gn-ps-tone button { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 8px; border: 0; border-radius: 16px; background: transparent; box-shadow: inset 0 0 0 1px var(--gn-line2); color: var(--gn-ink2); font-size: 13px; font-weight: 600; cursor: pointer; }
.gn-ps-tone button.on { box-shadow: inset 0 0 0 1.5px var(--gn-acc); color: var(--gn-ink); background: var(--gn-acc-soft); }
.gn-ps-tone i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.25); }
.gn-tone-white { background: #ffffff; } .gn-tone-cream { background: #f7f2dc; } .gn-tone-dark { background: #303030; }   /* accent-keep */
.gn-ps-opts { margin-top: 14px; border-top: 1px solid var(--gn-line); }
.gn-ps-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 2px 0; font-size: 14px; font-weight: 600; color: var(--gn-ink2); }
.gn-ps-row .gn-seg { margin: 0; }
.gn-ps-all { cursor: pointer; padding-bottom: 2px; }
.gn-step { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 9px; background: var(--gn-field); box-shadow: inset 0 0 0 0.5px var(--gn-line); }
.gn-step button { width: 34px; height: 30px; border: 0; border-radius: 7px; background: transparent; font-size: 18px; font-weight: 600; cursor: pointer; color: var(--gn-ink); }
.gn-step button:hover { background: var(--gn-hover); }
.gn-step b { min-width: 30px; text-align: center; font-variant-numeric: tabular-nums; color: var(--gn-ink); }
.gn-btn-primary:disabled { opacity: .45; }
@media (max-width: 560px) {
  .gn-ps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 10px; }
  .gn-ps-row { flex-wrap: wrap; }
  .gn-sheet { padding: 14px 14px 16px; }
}

/* Seitenübersicht: Ziehen zum Umsortieren */
.gn-panel-head h2 .gn-panel-n { margin-left: 4px; font-size: 13px; font-weight: 700; color: var(--gn-ink3); font-variant-numeric: tabular-nums; }
.gn-thumb { position: relative; }
.gn-thumb-pg { -webkit-touch-callout: none; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .15s ease; }
.gn-thumb-pg:hover { transform: translateY(-2px); }
.gn-thumb-moving { opacity: .3; }
.gn-thumb-ghost { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; padding: 0; border: 0; border-radius: 3px; overflow: hidden; background: #fff; box-shadow: 0 0 0 2px var(--gn-acc), 0 18px 40px -10px rgba(0,0,0,.6); }
.gn-thumb-ghost canvas { display: block; width: 100%; height: auto; }
.gn-drop-l::before, .gn-drop-r::before { content: ''; position: absolute; top: 0; bottom: 26px; width: 3px; border-radius: 2px; background: var(--gn-acc); box-shadow: 0 0 0 3px var(--gn-acc-soft); }
.gn-drop-l::before { left: -8px; }
.gn-drop-r::before { right: -8px; }

/* Seite hinzufügen: Häkchen nur an der gewählten Kachel, weiche Übergänge (Reiter, Farben), Drehen bei eigenen Bildern */
.gn-ps-tick { opacity: 0; transform: scale(.4); transition: opacity .18s ease, transform .28s cubic-bezier(.34,1.56,.64,1); }
.gn-ps-tile.on .gn-ps-tick { opacity: 1; transform: none; }
.gn-ps-img { transition: transform .22s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease; }
.gn-ps-tile:active .gn-ps-img { transform: scale(.96); }
.gn-ps-img img { transition: opacity .16s ease; background: transparent; }
.gn-ps-tile[data-key^="own:"] .gn-ps-img img:not(.gn-ps-loaded) { opacity: 0; }
.gn-ps-rot {
  position: absolute; left: 5px; bottom: 5px; width: 26px; height: 26px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(30,30,32,.72); color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: transform .3s cubic-bezier(.2,.8,.2,1);
}
.gn-ps-rot .gn-i { width: 15px; height: 15px; stroke-width: 2.4; }
.gn-ps-rot:hover { transform: scale(1.08); }
.gn-ps-rot.gn-spin { transform: rotate(90deg); }
.gn-ps-tone { transition: opacity .2s ease, max-height .28s cubic-bezier(.2,.8,.2,1), margin .28s ease; max-height: 48px; overflow: hidden; }
.gn-ps-tone.gn-tones-hide { opacity: 0; max-height: 0; margin: 0; pointer-events: none; }
.gn-ps-tabs button { transition: background .2s ease, color .2s ease, box-shadow .2s ease; }
@keyframes gnPsIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes gnPsInR { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes gnPsInL { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.gn-ps-body.gn-ps-in { animation: gnPsIn .26s cubic-bezier(.2,.8,.2,1) both; }
.gn-ps-body.gn-ps-in-r { animation: gnPsInR .3s cubic-bezier(.2,.8,.2,1) both; }
.gn-ps-body.gn-ps-in-l { animation: gnPsInL .3s cubic-bezier(.2,.8,.2,1) both; }
.gn-ps-body .gn-ps-tile { animation: gnPsIn .32s cubic-bezier(.2,.8,.2,1) both; }
.gn-ps-body .gn-ps-tile:nth-child(2) { animation-delay: .02s; } .gn-ps-body .gn-ps-tile:nth-child(3) { animation-delay: .04s; }
.gn-ps-body .gn-ps-tile:nth-child(4) { animation-delay: .06s; } .gn-ps-body .gn-ps-tile:nth-child(5) { animation-delay: .08s; }
.gn-ps-body .gn-ps-tile:nth-child(n+6) { animation-delay: .1s; }
html.gg-perf .gn-ps-body, html.gg-perf .gn-ps-body .gn-ps-tile { animation: none; }
@media (prefers-reduced-motion: reduce) { .gn-ps-body, .gn-ps-body .gn-ps-tile { animation: none !important; } }
/* neue Seite erscheint weich (scale statt transform, die Lage steht im transform) */
@keyframes gnPgIn { from { opacity: 0; scale: .94; } to { opacity: 1; scale: 1; } }
.gn-pg.gn-pg-new { animation: gnPgIn .38s cubic-bezier(.2,.8,.2,1) both; transform-origin: 50% 0; }
html.gg-perf .gn-pg.gn-pg-new { animation-duration: .01s; }
@media (prefers-reduced-motion: reduce) { .gn-pg.gn-pg-new { animation: none; } }

/* Textfeld mit Tastatur: liegt genau über der Stelle auf der Seite, kleine Leiste darüber */
.gn-tb { position: absolute; left: 0; top: 0; z-index: 6; transform-origin: 0 0; }
.gn-tb-ta {
  display: block; margin: -4px 0 0 -4px; padding: 3px 4px; border: 1.5px solid var(--gn-acc); border-radius: 6px; background: rgba(255,255,255,.5);
  resize: none; overflow: hidden; outline: none; box-shadow: 0 0 0 4px rgba(var(--a-a855f7,168,85,247),.14); -webkit-user-select: text; user-select: text; touch-action: manipulation;
}
.gn-tb-bar {
  position: absolute; left: -4px; bottom: calc(100% + 10px); display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; white-space: nowrap;
  background: rgba(28,28,30,.94); color: #fff; box-shadow: 0 10px 28px -8px rgba(0,0,0,.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; transform: translateY(6px) scale(.97); transition: opacity .18s ease, transform .26s cubic-bezier(.2,.8,.2,1);
}
.gn-tb.on .gn-tb-bar { opacity: 1; transform: none; }
.gn-tb-bar button { height: 32px; min-width: 32px; padding: 0 8px; border: 0; border-radius: 8px; background: transparent; color: inherit; font: 600 13px/1 -apple-system, system-ui, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.gn-tb-bar button:hover { background: rgba(255,255,255,.12); }
.gn-tb-bar button small { font-size: 10px; margin-left: 1px; }
.gn-tb-bar .gn-tb-b { font-weight: 800; }
.gn-tb-bar .gn-tb-b.on { background: rgba(255,255,255,.2); }
.gn-tb-cols { display: inline-flex; gap: 4px; padding: 0 4px; }
.gn-tb-bar .gn-tb-c { min-width: 22px; width: 22px; height: 22px; padding: 0; border-radius: 50%; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); }
.gn-tb-bar .gn-tb-c.on { box-shadow: 0 0 0 2px rgba(28,28,30,.94), 0 0 0 4px #fff; }
.gn-tb-bar .gn-tb-del .gn-i { width: 17px; height: 17px; color: #ff6961; }
.gn-tb-bar .gn-tb-ok { background: var(--gn-acc); color: #fff; padding: 0 12px; }
.gn-tb-bar .gn-tb-ok:hover { background: var(--gn-acc); filter: brightness(1.08); }
@media (max-width: 600px) { .gn-tb-bar { gap: 0; } .gn-tb-bar button { min-width: 28px; padding: 0 6px; } .gn-tb-cols { display: none; } }
.gn-tb.gn-tb-below .gn-tb-bar { bottom: auto; top: calc(100% + 8px); }

/* Tabelle: Spalten / Zeilen / Kopfzeile (Zeile des Werkzeugs und Auswahl-Leiste) */
.gn-tblctl { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-size: 13px; font-weight: 600; color: var(--gn-ink2); }
.gn-tblctl .gn-step b { min-width: 34px; font-size: 13px; }
.gn-tblctl .gn-step button { width: 30px; height: 28px; }
.gn-selbar-tbl { display: flex; align-items: center; padding: 0 8px 0 10px; margin-right: 4px; border-right: 1px solid rgba(255,255,255,.14); }
.gn-selbar .gn-tblctl { color: rgba(255,255,255,.75); }
.gn-selbar .gn-tblctl .gn-step { background: rgba(255,255,255,.1); box-shadow: none; }
.gn-selbar .gn-tblctl .gn-step button, .gn-selbar .gn-tblctl .gn-step b { color: #fff; }
.gn-selbar .gn-tblctl .gn-chip { color: #fff; }
@media (max-width: 600px) { .gn-selbar-tbl { padding: 0 6px; } .gn-selbar .gn-tblctl > span { display: none; } }
.gn-selbar .gn-tblctl .gn-chip { flex-direction: row; gap: 6px; height: 30px; padding: 0 10px; }
.gn-selbar .gn-tblctl .gn-step button { flex-direction: row; }
@media (max-width: 600px) {
  .gn-selbar:has(.gn-selbar-tbl) { flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 16px); }
  .gn-selbar .gn-selbar-tbl { flex: 1 0 100%; justify-content: center; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.14); margin: 0 0 2px; padding: 4px 0 6px; }
  .gn-selbar .gn-tblctl { gap: 6px; }
}
@media (max-width: 600px) { .gn-selbar .gn-tblctl .gn-step button { width: 28px; min-width: 28px; padding: 0; } .gn-selbar .gn-tblctl .gn-step b { min-width: 26px; } .gn-selbar .gn-tblctl .gn-chip { padding: 0 8px; } }
