/* ═══ Fast Scan – Liquid-Glass-Sheet ═══
   Größe der Kacheln passt sich dem Bildschirm an (--fs-tile), damit alles
   ohne Scrollen sichtbar ist. Nur das Overlay hat Unschärfe (einmal), das
   Sheet selbst nicht → flüssig auch auf schwachen Geräten. */

#fast-scan-ui {
  position: fixed; inset: 0;
  z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(var(--a-05030e,5,3,14),0.62);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  animation: fsFade .28s ease both;
}
#fast-scan-ui.closing { animation: fsFadeOut .26s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes fsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes fsFadeOut { from { opacity: 1; } to { opacity: 0; } }

#fast-scan-ui .fast-scan-container {
  --fs-tile: clamp(118px, min(calc((100vw - 84px) / 2), calc(100vh - 400px)), 252px);   /* dvh-Fassung unten (@supports), ältere iPhones kennen dvh nicht */
  position: relative;
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 20px); max-height: calc(100dvh - 20px);
  overflow-y: auto;
  margin: auto;
  box-sizing: border-box;
  display: flex; flex-direction: column;
  padding: 16px 18px 14px;
  border-radius: 32px;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.02) 22%, rgba(255,255,255,0) 45%),
    linear-gradient(160deg, rgba(var(--a-3a2666,58,38,102),0.78) 0%, rgba(var(--a-18112c,24,17,44),0.86) 42%, rgba(var(--a-0e0a1c,14,10,28),0.92) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.30);
  box-shadow:
    inset 0 1px 1px rgba(255,255,255,0.22),
    inset 0 -1px 1px rgba(255,255,255,0.05),
    inset 0 -30px 60px -40px rgba(var(--a-a855f7,168,85,247),0.45),
    0 30px 80px -20px rgba(0,0,0,0.75),
    0 0 0 0.5px rgba(var(--a-a855f7,168,85,247),0.25);
  animation: fsSheetIn .42s cubic-bezier(.2,.9,.25,1.05) both;
  scrollbar-width: none;
}
#fast-scan-ui .fast-scan-container::-webkit-scrollbar { display: none; }
@keyframes fsSheetIn { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }

/* Kopf */
#fast-scan-ui .fs-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
#fast-scan-ui .fs-head-text { text-align: left; min-width: 0; }
#fast-scan-ui .fast-scan-title {
  margin: 0; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  color: #fff; background: none; -webkit-text-fill-color: currentColor;
}
#fast-scan-ui .fs-head-sub { display: flex; gap: 6px; align-items: center; margin-top: 2px; font-size: 12.5px; font-weight: 600; color: rgba(245,245,247,0.55); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fast-scan-ui .fs-lang { color: rgb(var(--a-d8b4fe,216,180,254)); }
#fast-scan-ui .fs-dot { opacity: .5; }
#fast-scan-ui .fs-done-btn {
  flex-shrink: 0;
  height: 36px; padding: 0 16px;
  border-radius: 100px;
  font: 700 14px/1 inherit; font-family: inherit;
  color: #fff; cursor: pointer;
  background: linear-gradient(180deg, rgba(255,255,255,0.20), rgba(255,255,255,0.08));
  border: 1px solid rgba(255,255,255,0.16);
  border-top-color: rgba(255,255,255,0.36);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.25), 0 4px 14px -4px rgba(0,0,0,0.5);
  transition: transform .15s ease, background .15s;
}
#fast-scan-ui .fs-done-btn:hover { background: linear-gradient(180deg, rgba(255,255,255,0.26), rgba(255,255,255,0.12)); }
#fast-scan-ui .fs-done-btn:active { transform: scale(.95); }

/* Fortschritt */
#fast-scan-ui .fs-progress { height: 5px; border-radius: 99px; background: rgba(255,255,255,0.08); overflow: hidden; box-shadow: inset 0 1px 1px rgba(0,0,0,0.3); }
#fast-scan-ui .progress-bar-fill {
  height: 100%; border-radius: inherit;
  background: linear-gradient(90deg, rgb(var(--a-a855f7,168,85,247)), rgb(var(--a-e879f9,232,121,249)));
  box-shadow: 0 0 12px rgba(var(--a-d946ef,217,70,239),0.35);
  transition: width .35s cubic-bezier(.4,0,.2,1);
  animation: none;
}
#fast-scan-ui .fast-scan-subtitle { margin: 10px 0 0; font-size: 12.5px; line-height: 1.45; color: rgba(245,245,247,0.6); text-align: left; }

#fast-scan-ui .fs-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 10px; min-height: 22px; font-size: 12.5px; color: rgba(245,245,247,0.72); }
#fast-scan-ui .fs-saved-badge { margin: 0; font-size: 11px; padding: 3px 9px; cursor: help; white-space: nowrap; }

/* Bühne mit den zwei Kacheln */
#fast-scan-ui .canvas-section {
  display: flex; flex-direction: row; align-items: flex-start; justify-content: center; flex-wrap: nowrap;
  gap: 14px; margin: 0 0 12px; padding: 0;
  background: none; border: none; box-shadow: none; border-radius: 0;
}
/* --fs-k: vom Nutzer gewählte Größe (Ziehgriff am Zeichenfeld, js/app/fast-scan.js), 1 = so groß wie Platz ist.
   Standard 70 %, aber nie unter 140 px (sonst lässt sich am Handy nicht mehr darin zeichnen). */
#fast-scan-ui .fast-scan-container { --fs-k: .7; --fs-kb: .7; --fs-t: max(calc(var(--fs-tile) * var(--fs-k)), min(var(--fs-tile), 140px)); }
#fast-scan-ui .fs-tile-probe { position: absolute; left: 0; top: 0; width: var(--fs-tile); height: 0; visibility: hidden; pointer-events: none; }
#fast-scan-ui .fs-tile-col { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; width: var(--fs-t); }
#fast-scan-ui .fs-tile-label { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgba(var(--a-d8b4fe,216,180,254),0.8); }
#fast-scan-ui .fs-form-label { min-height: 30px; font-size: 11.5px; line-height: 1.3; color: rgba(245,245,247,0.62); text-align: center; visibility: hidden; }
#fast-scan-ui .fs-form-label b { color: #fcd34d; font-weight: 700; }
#fast-scan-ui .fs-form-label-ghost { visibility: hidden !important; }
#fast-scan-ui .fs-form-label:empty { min-height: 0; }

#fast-scan-ui .letter-guide-container,
#fast-scan-ui .canvas-wrapper {
  position: relative;
  width: var(--fs-t); height: var(--fs-t);
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgb(var(--a-1b1430,27,20,48));
  border: 1px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.24);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12), 0 14px 34px -12px rgba(0,0,0,0.7);
  flex-shrink: 0;
}
#fast-scan-ui .canvas-wrapper {
  border-color: rgba(var(--a-c084fc,192,132,252),0.55);
  border-top-color: rgba(var(--a-e9d5ff,233,213,255),0.6);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.14), 0 0 0 4px rgba(var(--a-a855f7,168,85,247),0.12), 0 14px 34px -12px rgba(0,0,0,0.7), 0 0 30px -6px rgba(var(--a-a855f7,168,85,247),0.23);
  touch-action: none;
}
#fast-scan-ui .guide-image,
#fast-scan-ui #fastScanGuideImage { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
#fast-scan-ui #fastScanCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; cursor: crosshair; touch-action: none; background: transparent !important; }
/* Löschen: kleiner roter Knopf direkt in der Ecke des Zeichenfelds */
#fast-scan-ui .fs-clear-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 36px; height: 36px; padding: 0; margin: 0;
  display: grid; place-items: center;
  border-radius: 50%; cursor: pointer;
  color: #ff8a80;
  background: linear-gradient(180deg, rgba(255,69,58,0.28), rgba(255,69,58,0.12)), rgba(var(--a-1b1430,27,20,48),0.85);
  border: 1px solid rgba(255,105,97,0.35);
  border-top-color: rgba(255,160,150,0.5);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.14), 0 4px 12px -4px rgba(0,0,0,0.6);
  transition: transform .15s ease, background .15s;
  touch-action: manipulation;
}
#fast-scan-ui .fs-clear-btn:hover { background: linear-gradient(180deg, rgba(255,69,58,0.4), rgba(255,69,58,0.2)), rgba(var(--a-1b1430,27,20,48),0.85); }
#fast-scan-ui .fs-clear-btn:active { transform: scale(.9); }
#fast-scan-ui .fs-letter-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 1; }
#fast-scan-ui #current-fast-scan-letter {
  fill: #fff;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Naskh Arabic', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans Armenian', 'Noto Sans Georgian', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500;
  paint-order: stroke; stroke: rgba(var(--a-15101f,21,16,31),0.85); stroke-width: 16px; stroke-linejoin: round;
  filter: drop-shadow(0 0 22px rgba(var(--a-c084fc,192,132,252),0.28));
  transition: opacity .15s ease;
}
/* Verbindungs-Markierungen (Arabisch) */
#fast-scan-ui .fs-join { opacity: 0; transition: opacity .2s; }
#fast-scan-ui .fs-join.on { opacity: 1; }
#fast-scan-ui .fs-join line { stroke: #fcd34d; stroke-width: 30; stroke-linecap: round; stroke-dasharray: 34 30; }
#fast-scan-ui .fs-join circle { fill: #fcd34d; r: 36px; }

/* Pinsel · Radierer */
#fast-scan-ui .fs-controls {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;   /* sitzt über den Kacheln: dort liegt beim Schreiben keine Hand */
  padding: 6px 6px 6px 14px;
  border-radius: 100px;
  background: linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.03));
  border: 1px solid rgba(255,255,255,0.10);
  border-top-color: rgba(255,255,255,0.2);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.12);
}
#fast-scan-ui .fs-brush { display: flex; align-items: center; gap: 9px; flex: 1; min-width: 0; color: rgba(245,245,247,0.55); }
#fast-scan-ui .fs-brush svg { flex-shrink: 0; }
#fast-scan-ui #brush-width-fastscan { flex: 1; min-width: 40px; margin: 0; }   /* Aussehen in slider-glass.css */
#fast-scan-ui .fs-brush-val { min-width: 30px; text-align: right; font-size: 12px; font-weight: 700; color: rgba(245,245,247,0.7); font-variant-numeric: tabular-nums; }
#fast-scan-ui .fs-brush-dot { flex-shrink: 0; background: #fff; border-radius: 50%; box-shadow: 0 0 6px rgba(255,255,255,0.4); transition: width .15s, height .15s; }
#fast-scan-ui .fs-toolbar { display: flex; gap: 6px; width: auto; flex-shrink: 0; }
#fast-scan-ui .fs-icon-btn {
  position: static !important;
  width: 40px; height: 40px; padding: 0 !important; margin: 0;
  display: inline-grid; place-items: center;
  border-radius: 50%;
  cursor: pointer;
  color: rgba(245,245,247,0.9);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
  border: 1px solid rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.18), 0 3px 10px -3px rgba(0,0,0,0.5);
  transition: transform .15s ease, background .15s, opacity .15s;
  flex: none !important;
}
#fast-scan-ui .fs-icon-btn:hover:not(:disabled) { background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08)); transform: none; }
#fast-scan-ui .fs-icon-btn:active:not(:disabled) { transform: scale(.92); }
#fast-scan-ui .fs-icon-btn:disabled { opacity: .35; cursor: default; }
#fast-scan-ui .fs-icon-btn.clear-button { color: #ff7a70; background: linear-gradient(180deg, rgba(255,69,58,0.22), rgba(255,69,58,0.08)); border-color: rgba(255,105,97,0.3); border-top-color: rgba(255,160,150,0.45); }
#fast-scan-ui .fs-icon-btn.clear-button:hover { background: linear-gradient(180deg, rgba(255,69,58,0.32), rgba(255,69,58,0.14)); }

/* Navigation */
#fast-scan-ui .nav-buttons { display: flex; gap: 10px; margin: 0 0 12px; flex-wrap: nowrap; justify-content: stretch; }
#fast-scan-ui .nav-button {
  flex: 1; min-width: 0;
  height: 50px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border-radius: 100px;
  font: 700 15px/1 inherit; font-family: inherit; letter-spacing: 0.005em;
  color: #fff; cursor: pointer;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0) 100%),
    linear-gradient(135deg, rgb(var(--a-a855f7,168,85,247)) 0%, rgb(var(--a-c026d3,192,38,211)) 100%);
  border: 1px solid rgba(var(--a-e9d5ff,233,213,255),0.35);
  border-top-color: rgba(255,255,255,0.55);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), inset 0 -2px 6px rgba(var(--a-581c87,88,28,135),0.45), 0 10px 26px -10px rgba(var(--a-c026d3,192,38,211),0.4);
  transition: transform .15s ease, filter .15s, opacity .15s;
  overflow: hidden;
}
#fast-scan-ui .nav-button::after { display: none; }
#fast-scan-ui .nav-button:hover { transform: none; filter: brightness(1.08); background:
    linear-gradient(180deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.04) 50%, rgba(255,255,255,0) 100%),
    linear-gradient(135deg, rgb(var(--a-a855f7,168,85,247)) 0%, rgb(var(--a-c026d3,192,38,211)) 100%); box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), inset 0 -2px 6px rgba(var(--a-581c87,88,28,135),0.45), 0 12px 28px -10px rgba(var(--a-c026d3,192,38,211),0.45); }
#fast-scan-ui .nav-button:active { transform: scale(.97); }
#fast-scan-ui #fs-next-btn { flex: 1.6; }
#fast-scan-ui .nav-button.secondary {
  color: rgba(245,245,247,0.92);
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.05));
  border-color: rgba(255,255,255,0.12);
  border-top-color: rgba(255,255,255,0.28);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.18), 0 6px 18px -8px rgba(0,0,0,0.6);
}
#fast-scan-ui .nav-button.secondary:hover { filter: none; background: linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.08)); box-shadow: inset 0 1px 1px rgba(255,255,255,0.18), 0 6px 18px -8px rgba(0,0,0,0.6); }
#fast-scan-ui .nav-button:disabled { opacity: .35; cursor: default; filter: none; transform: none; }

#fast-scan-ui .fs-hint { margin-top: 10px; font-size: 11px; color: rgba(245,245,247,0.38); text-align: center; }
#fast-scan-ui .fs-hint kbd { font-family: inherit; font-size: 10px; padding: 1px 5px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.16); background: rgba(255,255,255,0.06); }

/* RTL-Sprachen: Tafeln in Leserichtung (Vorlage rechts) */
#fast-scan-ui .fs-rtl .canvas-section { flex-direction: row-reverse; }

@media (max-width: 560px) {
  #fast-scan-ui { padding: 8px; }
  #fast-scan-ui .fast-scan-container { --fs-tile: clamp(118px, min(calc((100vw - 56px) / 2), calc(100vh - 380px)), 240px); padding: 14px 12px 12px; border-radius: 28px; }
  #fast-scan-ui .canvas-section { gap: 10px; }
  #fast-scan-ui .fast-scan-title { font-size: 19px; }
  #fast-scan-ui .fs-hint { display: none; }
  #fast-scan-ui .fs-controls { padding-left: 12px; }
  #fast-scan-ui .fs-icon-btn { width: 38px; height: 38px; }
  #fast-scan-ui .fs-clear-btn { width: 32px; height: 32px; top: 6px; right: 6px; }
  #fast-scan-ui .fs-form-label { font-size: 10.5px; }
}
@media (max-height: 760px) {
  #fast-scan-ui .fast-scan-subtitle { display: none; }
  #fast-scan-ui .fs-hint { display: none; }
}
@media (hover: none) { #fast-scan-ui .fs-hint { display: none; } }
@media (prefers-reduced-motion: reduce) { #fast-scan-ui, #fast-scan-ui .fast-scan-container { animation: none; } }

/* Tablets (iPad): größeres Fenster und größere Zeichenfelder */
@media (min-width: 700px) and (min-height: 700px) {
  #fast-scan-ui .fast-scan-container { max-width: 860px; padding: 22px 26px 18px; --fs-tile: clamp(118px, min(calc((100vw - 110px) / 2), calc(100vh - 420px)), 400px); }
  #fast-scan-ui .canvas-section { gap: 20px; }
  #fast-scan-ui .fast-scan-title { font-size: 24px; }
  #fast-scan-ui .fast-scan-subtitle, #fast-scan-ui .fs-options { font-size: 14px; }
  #fast-scan-ui .fs-tile-label { font-size: 12px; }
  #fast-scan-ui .fs-form-label { font-size: 13px; }
  #fast-scan-ui .nav-button { height: 56px; font-size: 17px; }
  #fast-scan-ui .fs-done-btn { height: 42px; font-size: 15px; padding: 0 20px; }
  #fast-scan-ui .fs-icon-btn { width: 44px; height: 44px; }
  #fast-scan-ui .fs-clear-btn { width: 42px; height: 42px; top: 10px; right: 10px; }
}

/* Kachelgröße mit der echten sichtbaren Höhe (dvh), nur wo der Browser dvh kennt (ältere iPhones: vh von oben) */
@supports (height: 1dvh) {
  #fast-scan-ui .fast-scan-container { --fs-tile: clamp(118px, min(calc((100vw - 84px) / 2), calc(100dvh - 400px)), 252px); }
  @media (max-width: 560px) {
    #fast-scan-ui .fast-scan-container { --fs-tile: clamp(118px, min(calc((100vw - 56px) / 2), calc(100dvh - 380px)), 240px); }
  }
  @media (min-width: 700px) and (min-height: 700px) {
    #fast-scan-ui .fast-scan-container { --fs-tile: clamp(118px, min(calc((100vw - 110px) / 2), calc(100dvh - 420px)), 400px); }
  }
}

/* Platz in der Höhe für das große Zeichenfeld (gleich gerechnet wie die Höhe in --fs-tile) */
#fast-scan-ui .fast-scan-container { --fs-h: calc(100vh - 400px); }
@media (max-width: 560px) { #fast-scan-ui .fast-scan-container { --fs-h: calc(100vh - 380px); } }
@media (min-width: 700px) and (min-height: 700px) { #fast-scan-ui .fast-scan-container { --fs-h: calc(100vh - 420px); } }
@supports (height: 1dvh) {
  #fast-scan-ui .fast-scan-container { --fs-h: calc(100dvh - 400px); }
  @media (max-width: 560px) { #fast-scan-ui .fast-scan-container { --fs-h: calc(100dvh - 380px); } }
  @media (min-width: 700px) and (min-height: 700px) { #fast-scan-ui .fast-scan-container { --fs-h: calc(100dvh - 420px); } }
}
/* ── Schalter „Vorlage im Feld“ (js/app/fast-scan.js, fs-ghost-on): ein großes Zeichenfeld, das Zeichen blass dahinter ── */
#fast-scan-ui .fs-options { flex-wrap: wrap; }
#fast-scan-ui .fs-toggles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
#fast-scan-ui #fs-ghost-letter { display: none; }
#fast-scan-ui .fs-ghost-on .canvas-section { position: relative; }
/* linke Vorlage unsichtbar, bleibt aber messbar (Breite sehr breiter Zeichen) */
#fast-scan-ui .fs-ghost-on .canvas-section > .fs-tile-col:first-child { position: absolute; top: 0; max-height: 100%; overflow: hidden; visibility: hidden; pointer-events: none; }
#fast-scan-ui .fs-ghost-on { --fs-big: clamp(118px, min(calc(var(--fs-tile) * 2 + 14px), var(--fs-h, 400px)), 560px); }
#fast-scan-ui .fs-ghost-on .canvas-section > .fs-tile-col:last-child { width: calc(var(--fs-big) * var(--fs-kb)); }
#fast-scan-ui .fs-ghost-on .canvas-wrapper { width: calc(var(--fs-big) * var(--fs-kb)); height: calc(var(--fs-big) * var(--fs-kb)); }
#fast-scan-ui .fs-ghost-on .fs-tile-probe { width: var(--fs-big); }
#fast-scan-ui .fs-ghost-on #fs-ghost-letter {
  display: inline; fill: rgba(255,255,255,0.10);
  stroke: rgba(var(--a-e9d5ff,233,213,255),0.42); stroke-width: 7px; stroke-linejoin: round; stroke-dasharray: 18 12;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Noto Sans', 'Noto Naskh Arabic', 'Noto Sans Arabic', 'Noto Sans Hebrew', 'Noto Sans Armenian', 'Noto Sans Georgian', 'Noto Sans JP', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 500; transition: opacity .15s ease;
}
#fast-scan-ui .fast-scan-container.fs-ghost-on .fs-form-label-ghost:not(:empty) { visibility: visible !important; }
@media (min-width: 700px) and (min-height: 700px) {
  #fast-scan-ui .fs-ghost-on { --fs-big: clamp(118px, min(calc(var(--fs-tile) * 2 + 20px), var(--fs-h, 400px)), 820px); }
}

/* ── Größe des Zeichenfelds: Griff unten rechts zum Ziehen (js/app/fast-scan.js) ── */
#fast-scan-ui .fs-resize {
  position: absolute; right: 0; bottom: 0; z-index: 3;
  width: 40px; height: 40px; padding: 0; margin: 0; border: 0; background: none;
  display: grid; place-items: end; cursor: nwse-resize; touch-action: none;
  color: rgba(var(--a-e9d5ff,233,213,255),0.55);
}
#fast-scan-ui .fs-resize svg { margin: 0 7px 7px 0; transition: transform .15s ease, color .15s ease; }
#fast-scan-ui .fs-resize:hover, #fast-scan-ui .fs-resize:focus-visible, #fast-scan-ui .fs-resizing .fs-resize { color: rgb(var(--a-e9d5ff,233,213,255)); }
#fast-scan-ui .fs-resize:hover svg, #fast-scan-ui .fs-resizing .fs-resize svg { transform: scale(1.15); }
#fast-scan-ui .fs-resize:focus-visible { outline: 2px solid rgba(var(--a-d8b4fe,216,180,254),0.9); outline-offset: -4px; border-radius: 12px; }
/* Größe in Prozent, solange gezogen wird */
#fast-scan-ui .fs-size-pill {
  position: absolute; left: 50%; bottom: 10px; z-index: 3; transform: translateX(-50%);
  padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: #fff; background: rgba(var(--a-1b1430,27,20,48),0.85); border: 1px solid rgba(255,255,255,0.16);
  opacity: 0; transition: opacity .15s ease; pointer-events: none;
}
#fast-scan-ui .fs-resizing .fs-size-pill { opacity: 1; }
#fast-scan-ui .fs-resizing, #fast-scan-ui .fs-resizing * { cursor: nwse-resize !important; user-select: none; }

/* Griff zum Größe-Ändern pulsiert, solange das Tutorial (js/app/tour.js) auf ihn zeigt */
#fast-scan-ui .fs-resize.gg-tour-mark { color: #fff; }
#fast-scan-ui .fs-resize.gg-tour-mark svg { animation: fsTourPulse 1.1s ease-in-out infinite; }
@keyframes fsTourPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.45) translate(-2px,-2px); } }
@media (prefers-reduced-motion: reduce) { #fast-scan-ui .fs-resize.gg-tour-mark svg { animation: none; } }
