/* «Сообщить о проблеме»: лист поверх экрана. Крупные кнопки, состояние записи видно издалека. */
.bg-sheet { position: fixed; inset: 0; z-index: 120; display: flex; align-items: flex-end; justify-content: center; background: rgba(0, 0, 0, .62); }
.bg-sheet[hidden] { display: none; }
body.bg-on { overflow: hidden; }
/* «!» на каждом экране: в шапке приложения справа (шапка есть на всех экранах и не закрывает ответы в гонке), 32 px, на листе отчёта скрыта */
.bg-fab { flex: none; width: 32px; height: 32px; margin-left: 6px; padding: 0; border-radius: 50%; border: 0; display: inline-grid; place-items: center; font: 800 18px/1 inherit; color: var(--muted); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.bg-fab:active { transform: scale(.94); }
body.bg-on .bg-fab { display: none; }
@media (max-width: 349px) { .bg-fab { position: fixed; left: 6px; bottom: calc(6px + var(--safe-b)); z-index: 90; margin: 0; width: 28px; height: 28px; opacity: .8; } }   /* узкий экран: в шапке места нет */
.bg-body { width: min(100%, 520px); max-height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; padding: 20px 16px calc(18px + var(--safe-b)); background: var(--bg); color: var(--text);
  border-radius: 18px 18px 0 0; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5), inset 0 1px 0 var(--line); }
.bg-title { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.bg-note { margin: 0; font-size: 15px; line-height: 1.4; color: var(--muted); }
.bg-note.warn { color: var(--text); padding: 10px 12px; border-radius: 10px; background: var(--surface2); box-shadow: inset 3px 0 0 var(--orange); }
.btn.bg-big { width: 100%; min-height: 54px; font-size: 18px; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn.bg-big:disabled { opacity: .45; }
.btn.bg-quiet { min-height: 46px; font-size: 16px; color: var(--muted); }
.bg-mic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bg-stop { background: #d92d34; min-height: 72px; font-size: 26px; }
@media (hover: hover) { .bg-stop:hover { background: #ec3a41; } }
.bg-sq { width: 22px; height: 22px; border-radius: 4px; background: #fff; display: inline-block; }

.bg-rec { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 14px 0 2px; }
.bg-dot { width: 18px; height: 18px; border-radius: 50%; background: #ff3b42; box-shadow: 0 0 0 0 rgba(255, 59, 66, .6); animation: bgpulse 1.1s infinite; flex: none; }
.bg-time { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bg-limit { text-align: center; color: var(--muted); font-size: 14px; }
.bg-level { display: flex; align-items: flex-end; justify-content: center; gap: 5px; height: 44px; }
.bg-level i { width: 10px; height: 8px; border-radius: 3px; background: var(--surface2); box-shadow: inset 0 0 0 1px var(--line); transition: height .08s, background .08s; }
.bg-level i.on { height: 40px; background: #2fbf5b; box-shadow: none; }
.bg-level i:nth-child(odd).on { height: 30px; }
@keyframes bgpulse { 0% { box-shadow: 0 0 0 0 rgba(255, 59, 66, .6); } 70% { box-shadow: 0 0 0 14px rgba(255, 59, 66, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 66, 0); } }

.bg-state { text-align: center; font-size: 18px; font-weight: 700; padding: 6px 0; }
.bg-state.bg-big { font-size: 30px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bg-spin { width: 44px; height: 44px; margin: 8px auto 0; border-radius: 50%; border: 4px solid var(--surface2); border-top-color: var(--gold); animation: bgspin .9s linear infinite; }
@keyframes bgspin { to { transform: rotate(360deg); } }

.bg-text { width: 100%; box-sizing: border-box; min-height: 140px; max-height: 40vh; resize: vertical; padding: 12px; font: inherit; font-size: 17px; line-height: 1.4; color: var(--text); background: var(--surface);
  border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); }
.bg-text:focus { outline: none; box-shadow: inset 0 0 0 2px var(--gold); }
.bg-count { margin-top: -6px; text-align: right; font-size: 12.5px; color: var(--muted); }
.bg-count.over { color: var(--orange); font-weight: 700; font-size: 15px; }

.bg-mark { width: 84px; height: 84px; margin: 4px auto 0; border-radius: 50%; display: grid; place-items: center; font-size: 52px; font-weight: 800; color: #fff; }
.bg-mark.ok { background: #1f9d4b; }
.bg-mark.bad { background: #d92d34; }
.bg-result { margin: 0; text-align: center; font-size: 21px; font-weight: 800; line-height: 1.3; }
.bg-result.bad { font-size: 18px; }
.bg-sheet .bg-note { text-align: center; }
.bg-body > .bg-note:first-of-type { text-align: left; }
.bg-how { padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.bg-how-h { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.bg-steps { margin: 0 0 8px; padding-left: 22px; font-size: 15px; line-height: 1.4; }
.bg-steps li + li { margin-top: 3px; }
.bg-safe { margin: 0; font-size: 13.5px; line-height: 1.4; color: var(--muted); }

.bugbtn { }
.arc-flag { flex: none; width: 34px; min-height: 34px; display: inline-grid; place-items: center; border-radius: 10px; background: var(--surface); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font-weight: 800; font-size: 16px; }
.arc-flag svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) { .bg-dot, .bg-spin { animation: none; } }

/* Сказать Claude: итог отправки крупно */
.bg-bigres .bg-mark { width: 112px; height: 112px; font-size: 72px; }
.bg-bigres .bg-result { font-size: 30px; line-height: 1.15; }
.bg-bigres .bg-result.bad { font-size: 22px; }
.dbg-say { min-height: 48px; font-size: 16px; }
.dbg-say.dbg-compact { min-height: 36px; padding: 0 10px; font-size: 14px; }
