/* Zgłaszanie uwag (feedback.js) — IDENTYCZNY w obu repo. Kolory przez zmienne --wc-* (te same co czat na stronie; w aplikacji domyślne). */
.wfb-root { position: fixed; inset: 0; z-index: 2147483000; font: 400 14.5px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--wc-ink, #18181b); }
.wfb-root [hidden] { display: none !important; }
.wfb-back { position: absolute; inset: 0; background: rgba(15, 23, 42, .45); }
.wfb-dlg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(920px, calc(100vw - 24px)); max-height: calc(100vh - 24px); display: flex; flex-direction: column; background: var(--wc-bg, #fff); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); overflow: hidden; }
.wfb-top { display: flex; align-items: center; gap: 6px; padding: 10px 12px 10px 16px; color: #fff; background: linear-gradient(120deg, var(--wc-a1, #3164ff), var(--wc-a2, #9a36ff)); }
.wfb-t { flex: 1; margin: 0; font-weight: 700; }
.wfb-ib { width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; line-height: 1; cursor: pointer; }
.wfb-body { overflow-y: auto; padding: 16px; display: grid; gap: 12px; }
.wfb-intro { margin: 0; color: var(--wc-muted, #71717a); }
.wfb-opt { display: grid; gap: 2px; text-align: left; border: 1px solid var(--wc-line, #e4e4e7); background: var(--wc-bg, #fff); border-radius: 14px; padding: 14px 16px; cursor: pointer; font: inherit; color: inherit; }
.wfb-opt:hover:not([disabled]) { border-color: var(--wc-accent, #7c3aed); }
.wfb-opt[disabled] { opacity: .55; cursor: not-allowed; }
.wfb-opt b { font-size: 15px; } .wfb-opt small { color: var(--wc-muted, #71717a); font-size: 12.5px; }
.wfb-file input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.wfb-file { position: relative; } .wfb-file:focus-within { outline: 3px solid var(--wc-ring, rgba(124, 58, 237, .35)); }
.wfb-tools { display: flex; flex-wrap: wrap; gap: 6px; }
.wfb-tool { border: 1px solid var(--wc-line, #e4e4e7); background: var(--wc-bg, #fff); border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; color: inherit; }
.wfb-tool[aria-pressed="true"] { background: var(--wc-accent, #7c3aed); border-color: var(--wc-accent, #7c3aed); color: #fff; }
.wfb-hint { margin: 0; font-size: 12.5px; color: var(--wc-muted, #71717a); } .wfb-ok { color: #047857; }
.wfb-stage { position: relative; border: 1px solid var(--wc-line, #e4e4e7); border-radius: 12px; overflow: hidden; touch-action: none; cursor: crosshair; background: #f4f4f5; }
.wfb-stage canvas { display: block; width: 100%; height: auto; }
.wfb-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wfb-pins { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.wfb-pins li { display: flex; gap: 6px; align-items: flex-start; }
.wfb-pins label { flex: 1; display: flex; gap: 8px; align-items: flex-start; }
.wfb-num { flex: none; width: 24px; height: 24px; border-radius: 50%; background: #ef4444; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 12px; margin-top: 4px; }
.wfb-pins textarea, .wfb-f textarea, .wfb-f input { width: 100%; font: inherit; font-size: 14px; border: 1px solid var(--wc-line, #e4e4e7); border-radius: 10px; padding: 8px 10px; background: var(--wc-bg, #fff); color: inherit; box-sizing: border-box; }
.wfb-x { border: 0; background: transparent; font-size: 20px; line-height: 1; cursor: pointer; color: var(--wc-muted, #71717a); padding: 4px 6px; }
.wfb-form { display: grid; gap: 10px; }
.wfb-f { display: grid; gap: 4px; font-size: 12.5px; font-weight: 600; color: var(--wc-muted, #71717a); }
.wfb-check { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--wc-muted, #71717a); }
.wfb-check input { margin-top: 3px; accent-color: var(--wc-accent, #7c3aed); }
.wfb-check a { color: inherit; text-decoration: underline; }
.wfb-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.wfb-btn { justify-self: start; border: 0; border-radius: 12px; padding: 10px 18px; font: inherit; font-weight: 650; color: #fff; background: linear-gradient(120deg, var(--wc-a1, #3164ff), var(--wc-a2, #9a36ff)); cursor: pointer; }
.wfb-btn[disabled] { opacity: .5; cursor: not-allowed; }
.wfb-sm { padding: 6px 12px; font-size: 13px; } .wfb-stop { background: #dc2626; }
.wfb-err { margin: 0; color: #b91c1c; font-size: 13px; } .wfb-err:empty { display: none; }
.wfb-sent { margin: 0; padding: 14px; border-radius: 12px; background: #ecfdf5; color: #065f46; font-weight: 600; }
.wfb-video { width: 100%; max-height: 50vh; border-radius: 12px; background: #000; }
/* nagrywanie: zamiast okna pływający pasek sterowania (na wierzchu, przeciągalny, domyślnie u dołu na środku) */
.wfb-root.is-rec { inset: auto; pointer-events: none; }
.wfb-root.is-rec .wfb-back, .wfb-root.is-rec .wfb-dlg { display: none; }
.wfb-recbar { position: fixed; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); pointer-events: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px; max-width: calc(100vw - 16px); box-sizing: border-box;
  padding: 8px 10px 8px 6px; border-radius: 18px; background: rgba(17, 17, 27, .92); color: #fff; box-shadow: 0 18px 50px -14px rgba(0, 0, 0, .6); font: 500 13.5px/1.2 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif; touch-action: none; user-select: none; cursor: grab; }
.wfb-recbar.is-drag { cursor: grabbing; }
.wfb-recbar [hidden] { display: none !important; }
.wfb-grip { width: 10px; height: 22px; opacity: .5; background-image: radial-gradient(circle, #fff 1.2px, transparent 1.6px); background-size: 5px 5px; }
.wfb-recbar .wfb-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); animation: wfb-pulse 1.4s ease-out infinite; }
.wfb-recbar.is-paused .wfb-dot { animation: none; background: #f59e0b; }
.wfb-st { font-weight: 650; }
.wfb-time b { font-variant-numeric: tabular-nums; font-weight: 700; } .wfb-lim { opacity: .65; font-variant-numeric: tabular-nums; }
.wfb-mic { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }
.wfb-mic i { width: 3px; border-radius: 2px; background: rgba(255, 255, 255, .28); transition: background .08s; }
.wfb-mic i:nth-child(1) { height: 5px; } .wfb-mic i:nth-child(2) { height: 8px; } .wfb-mic i:nth-child(3) { height: 11px; } .wfb-mic i:nth-child(4) { height: 14px; } .wfb-mic i:nth-child(5) { height: 16px; }
.wfb-mic i.on { background: #4ade80; }
.wfb-nomic { opacity: .7; }
.wfb-acts, .wfb-ask { display: inline-flex; align-items: center; gap: 6px; }
.wfb-rb { border: 0; border-radius: 10px; padding: 7px 12px; font: inherit; font-weight: 650; color: #fff; background: rgba(255, 255, 255, .14); cursor: pointer; }
.wfb-rb:hover { background: rgba(255, 255, 255, .24); }
.wfb-rb:focus-visible { outline: 3px solid #a78bfa; outline-offset: 2px; }
.wfb-rb-stop { background: #dc2626; } .wfb-rb-stop:hover { background: #b91c1c; }
.wfb-rb-x { background: transparent; color: rgba(255, 255, 255, .8); }
.wfb-keys { flex-basis: 100%; text-align: center; font-size: 11.5px; opacity: .6; }
.wfb-warn { flex-basis: 100%; text-align: center; font-size: 12.5px; font-weight: 650; color: #fcd34d; } .wfb-warn:empty { display: none; }
.wfb-recbar.is-warn .wfb-time b { color: #fcd34d; }
.wfb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* pasek może trafić do nagrania (cały ekran / okno / brak Element Capture) — mały i półprzezroczysty, pełny po najechaniu */
.wfb-recbar.is-ghost { opacity: .55; scale: .86; transition: opacity .15s; }
.wfb-recbar.is-ghost:hover, .wfb-recbar.is-ghost:focus-within, .wfb-recbar.is-ghost.is-warn { opacity: 1; }
@keyframes wfb-pulse { 0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, .6); } 70% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }
@media (max-width: 520px) { .wfb-keys { display: none; } }
/* przycisk w aplikacji */
.wfb-fab { position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 60; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--wc-line, #e4e4e7); background: var(--wc-bg, #fff); color: var(--wc-ink, #18181b); border-radius: 999px; padding: 6px 12px 6px 10px; font: 600 12.5px/1 Inter, system-ui, sans-serif; box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .35); cursor: pointer; opacity: .85; }
.wfb-fab:hover, .wfb-fab:focus-visible { opacity: 1; }
@media (max-width: 640px) { .wfb-fab span { display: none; } .wfb-fab { padding: 8px; } }
@media (prefers-reduced-motion: reduce) { .wfb-dot, .wfb-recbar .wfb-dot { animation: none; } .wfb-mic i { transition: none; } }
