/* The feedback tool (feedback.js): a small, quiet panel; drag-to-select right over the page, like a screenshot tool. */
.fbk-float { position: fixed; right: 16px; bottom: 16px; z-index: 1200; width: 284px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px); overflow: auto;
  background: var(--card, #fff); color: var(--ink, #14122e); border: 1px solid var(--line, #e6e8ef); border-radius: 12px; box-shadow: 0 8px 28px rgba(15, 20, 36, .16);
  font: 12px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; transition: box-shadow .2s; }
.fbk-float.fbk-hi { box-shadow: 0 0 0 2px var(--accent, #4F4FD8), 0 8px 28px rgba(15, 20, 36, .16); }
.fbk-float.fbk-mini { width: auto; left: 50%; right: auto; transform: translateX(-50%); border-radius: 999px; overflow: visible; }
.fbk { display: flex; flex-direction: column; gap: 7px; padding: 10px; box-sizing: border-box; }
.fbk svg { width: 14px; height: 14px; flex: none; }
.fbk button, .fbk input, .fbk textarea { font: inherit; font-size: 12px; }

.fbk-head { display: flex; align-items: center; gap: 6px; }
.fbk-head > svg { color: var(--accent, #4F4FD8); }
.fbk-head b { font-size: 12px; }
.fbk-room { color: var(--faint, #8b92a3); flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fbk-icon { display: inline-grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 6px; background: none; color: var(--muted, #5a6274); cursor: pointer; flex: none; }
.fbk-icon:hover { background: color-mix(in srgb, var(--ink, #14122e) 7%, transparent); color: var(--ink, #14122e); }

/* Select / Page / Record, icon over a short word, like a screenshot toolbar */
.fbk-tools { display: grid; grid-template-columns: 1fr 1fr 1fr 28px; gap: 2px; padding: 3px; border-radius: 9px; background: color-mix(in srgb, var(--ink, #14122e) 5%, transparent); }
.fbk-tools button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; height: 40px; padding: 0 2px; border: 0; border-radius: 7px; background: none; color: var(--ink, #14122e); cursor: pointer; }
.fbk-tools button span { font-size: 10.5px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.fbk-tools button svg { width: 16px; height: 16px; }
.fbk-tools button:hover:not(:disabled) { background: var(--card, #fff); box-shadow: 0 1px 2px rgba(15, 20, 36, .1); }
.fbk-tools button:disabled { opacity: .45; cursor: default; }
.fbk-tools .fbk-mic { color: var(--faint, #8b92a3); }
.fbk-tools .fbk-mic.on { color: var(--accent, #4F4FD8); }
.fbk-target { display: flex; gap: 2px; margin-top: -3px; font-size: 10.5px; }
.fbk-target button { padding: 1px 6px; border: 0; border-radius: 5px; background: none; color: var(--faint, #8b92a3); font-size: 10.5px; cursor: pointer; }
.fbk-target button.on { color: var(--ink, #14122e); background: color-mix(in srgb, var(--ink, #14122e) 6%, transparent); }

.fbk-recbar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 4px 0 12px; font: 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-variant-numeric: tabular-nums; }
.fbk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--err, #c2392d); animation: fbk-pulse 1.2s ease-in-out infinite; }
@keyframes fbk-pulse { 50% { opacity: .3; } }
.fbk-stop { display: flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border: 0; border-radius: 999px; background: var(--err, #c2392d); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.fbk-stop svg { width: 10px; height: 10px; }

.fbk-items { display: flex; flex-wrap: wrap; gap: 5px; }
.fbk-item { position: relative; width: 58px; height: 42px; border-radius: 6px; overflow: hidden; background: #0c0f16; border: 1px solid var(--line, #e6e8ef); }
.fbk-item img, .fbk-item video { width: 100%; height: 100%; object-fit: cover; display: block; }
.fbk-dur { position: absolute; left: 3px; bottom: 3px; padding: 0 4px; border-radius: 4px; background: rgba(0, 0, 0, .65); color: #fff; font-size: 10px; font-weight: 600; }
.fbk-rm { position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .6); color: #fff; cursor: pointer; padding: 0; opacity: 0; transition: opacity .15s; }
.fbk-item:hover .fbk-rm, .fbk-rm:focus-visible { opacity: 1; }
.fbk-rm svg { width: 10px; height: 10px; }
.fbk-add { width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px dashed var(--line, #e6e8ef); border-radius: 6px; color: var(--faint, #8b92a3); cursor: pointer; font-size: 11px; }
.fbk-add:has(span) { width: auto; padding: 0 10px; }
.fbk-add:hover { border-color: var(--accent, #4F4FD8); color: var(--accent, #4F4FD8); }

.fbk textarea { width: 100%; box-sizing: border-box; min-height: 0; height: 96px; padding: 7px 9px; border: 1px solid var(--line, #e6e8ef); border-radius: 8px; background: var(--card, #fff); color: var(--ink, #14122e); resize: vertical; }
.fbk-link { display: flex; align-items: center; gap: 6px; padding: 0 8px; border: 1px solid var(--line, #e6e8ef); border-radius: 8px; background: var(--card, #fff); }
.fbk-link > svg { color: var(--faint, #8b92a3); width: 13px; height: 13px; }
.fbk-link input { flex: 1; min-width: 0; height: 26px; padding: 0; border: 0; outline: 0; background: none; color: var(--ink, #14122e); }
.fbk textarea:focus, .fbk-link:focus-within { outline: none; border-color: var(--accent, #4F4FD8); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, #4F4FD8) 15%, transparent); }
.fbk-note { margin: -3px 0 0; color: var(--faint, #8b92a3); font-size: 10.5px; }

.fbk-foot { display: flex; align-items: center; gap: 6px; }
.fbk-spacer { flex: 1; }
.fbk-auto { flex: 1; display: flex; align-items: center; gap: 5px; color: var(--muted, #5a6274); font-size: 11px; cursor: pointer; white-space: nowrap; }
.fbk-auto input { margin: 0; }
.fbk-post { height: 26px; padding: 0 14px; border: 0; border-radius: 7px; background: var(--accent, #4F4FD8); color: var(--accent-ink, #fff); font-weight: 600; cursor: pointer; }
.fbk-post:disabled { opacity: .4; cursor: default; }
.phone .fbk-float { right: 8px; left: 8px; bottom: 8px; width: auto; max-width: none; }
.phone .fbk textarea, .phone .fbk-link input { font-size: 16px; }

/* Selecting: this page freezes exactly where it is, with a crosshair; another window fills the screen */
.fbk-pick { position: fixed; inset: 0; z-index: 2147483000; cursor: crosshair; user-select: none; touch-action: none; font: 12px/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.fbk-pick.other { display: grid; place-items: center; background: rgba(12, 15, 22, .92); }
.fbk-pick-pic { position: absolute; inset: 0; overflow: hidden; }
.fbk-pick.other .fbk-pick-pic { position: relative; inset: auto; line-height: 0; max-width: 100vw; max-height: 100vh; }
.fbk-pick-img { display: block; width: 100vw; height: 100vh; }
.fbk-pick.other .fbk-pick-img { width: auto; height: auto; max-width: 100vw; max-height: 100vh; }
.fbk-pick-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, .18); pointer-events: none; }
.fbk-pick-box { position: absolute; border: 1.5px solid #fff; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .38), 0 0 0 1px rgba(0, 0, 0, .35); pointer-events: none; }
.fbk-pick-hint { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px;
  background: rgba(20, 22, 30, .82); color: #fff; box-shadow: 0 4px 18px rgba(0, 0, 0, .3); cursor: default; white-space: nowrap; backdrop-filter: blur(8px); }
.fbk-pick-hint button { height: 22px; padding: 0 9px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; cursor: pointer; }
.fbk-pick-hint button:hover { background: rgba(255, 255, 255, .28); }
.fbk-feed { position: fixed; width: 2px; height: 2px; opacity: .01; pointer-events: none; bottom: 0; right: 0; }

/* In its own window on top of everything (Chrome, Edge): the same panel, filling the window */
.fbk-pip { margin: 0; background: var(--card, #fff); color: var(--ink, #14122e); font: 12px/1.35 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.fbk-box { min-height: 100vh; box-sizing: border-box; }
.fbk-box .fbk-recbar { justify-content: center; height: 100vh; }
.fbk-tip { margin: -3px 0 0; color: var(--faint, #8b92a3); font-size: 11px; }
.fbk-toast { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 5; padding: 7px 9px; border-radius: 8px; background: var(--ink, #14122e); color: var(--card, #fff); font-size: 11.5px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }

/* The window they pick an area in: 85% of their screen, the frozen screen filling it */
.fbk-pickwin { margin: 0; background: #0c0f16; overflow: hidden; }
.fbk-pick.all .fbk-pick-pic { outline: 3px solid #fff; outline-offset: -3px; }
.fbk-pick.all .fbk-pick-shade { background: rgba(255, 255, 255, .08); }
.fbk-pick-hint span { white-space: nowrap; }
