/* ===========================================================================
   quick.css — the quick fixes of 20 Nov (stream J). Its own file so bakery.css stays Raj's.
   =========================================================================== */

/* the microphone's level while recording (sound.js BKSound.bar): on the record button's bottom edge, so nothing moves */
.vo-rec { position: relative; overflow: hidden; }
.qk-lvl { position: absolute; left: 8px; right: 8px; bottom: 3px; height: 4px; border-radius: 2px; pointer-events: none;
  background: color-mix(in srgb, currentColor 14%, transparent); opacity: 0; }
.vo-rec.on .qk-lvl { opacity: 1; }
.qk-lvl > i { display: block; width: 100%; height: 100%; border-radius: inherit; background: var(--good); transform: scaleX(0); transform-origin: left center; will-change: transform; }

/* a line whose speaker has no voice yet: record it right there */
.qk-novoice { margin-top: 0; padding: 8px 10px; border: 1px dashed var(--line); border-radius: 10px; }
.qk-novoice .note { margin: 0; }

/* the Characters cards: a character with no voice sample */
.ch-grid > .ch-card { position: relative; }   /* the page's own .ch-card says all: unset, after this file */
.qk-tag { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px;
  font-size: 11.5px; line-height: 1.3; color: var(--fg); background: color-mix(in srgb, var(--bg) 82%, transparent); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.qk-tag svg { width: 12px; height: 12px; }

/* a sound file's card (Media, Storage): a sound icon and a player, never a broken picture */
.qk-sound { flex-direction: column; gap: 8px; color: var(--fg-2); background: var(--card); }
.qk-sound svg { width: 40px; height: 40px; }
.qk-sound span { font-size: 13px; }
.qk-play { display: block; width: 100%; height: 36px; margin: 6px 0 0; }

/* a download with a readable name (save.js): its own progress, bottom right, over the page */
.qk-dls { position: fixed; right: 16px; bottom: 16px; z-index: 30; display: grid; gap: 8px; width: min(340px, calc(100vw - 32px)); }
.qk-dl { padding: 10px 12px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); font-size: 13px; }
.qk-dl b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qk-dl .note { display: block; margin: 2px 0 6px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.qk-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.qk-bar > i { display: block; width: 100%; height: 100%; background: var(--info); transform: scaleX(0); transform-origin: left center; transition: transform .2s linear; }
.qk-bar.qk-unknown { visibility: hidden; }

/* 21 Nov (Raj): Storage's Small view, a dense grid of little pictures with only the size (storage.html, "stoview") */
.pics.sto-small { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.sto-small .bkc { padding: 4px 4px 6px; border-radius: 10px; }
.sto-small .bkc-im { border-radius: 6px; }
.sto-small .bkc-label, .sto-small .sto-meta .note, .sto-small .qk-play { display: none; }
.sto-small .sto-meta { justify-content: center; margin: 4px 2px 0; font-size: .72rem; }
.sto-small .bkc-tl, .sto-small .bkc-tr { top: 4px; }
.sto-small .bkc-bl, .sto-small .bkc-br { bottom: 4px; }
.sto-small .bkc-tl, .sto-small .bkc-bl { left: 4px; }
.sto-small .bkc-tr, .sto-small .bkc-br { right: 4px; }
.sto-small .ib.glass { width: 24px; height: 24px; }
.sto-small .ib.glass svg { width: 13px; height: 13px; }
.sto-small .qk-sound { gap: 4px; }
.sto-small .qk-sound svg { width: 26px; height: 26px; }
.sto-small .qk-sound span { font-size: .72rem; }
