﻿.bcc { --bcc-accent: #0b5ed7; position: fixed; z-index: 2147483000; font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: #1c1f24; }
.bcc-box { background: #fff; border: 1px solid rgba(0, 0, 0, .15); box-shadow: 0 8px 32px rgba(0, 0, 0, .25); border-radius: 12px; padding: 18px 20px; box-sizing: border-box; max-height: 90vh; overflow: auto; position: relative; }
.bcc-title { font-size: 1.15em; margin: 0 0 6px; }
.bcc-text, .bcc-catdesc { margin: 0 0 6px; }
.bcc-link { color: var(--bcc-accent); text-decoration: underline; }
.bcc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

.bcc-p-bar { left: 0; right: 0; bottom: 0; padding: 8px; }
.bcc-p-bar .bcc-box { max-width: 1100px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.bcc-p-bar .bcc-title { flex: 0 0 100%; margin: 0; }
.bcc-p-bar .bcc-text { flex: 1 1 380px; margin: 0; }
.bcc-p-bar .bcc-actions { margin: 0; }

.bcc.bcc-p-box { right: 16px; bottom: 16px; width: min(420px, calc(100vw - 32px)); }
.bcc.bcc-p-center { inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0, 0, 0, .5); padding: 12px; }
.bcc.bcc-p-center .bcc-box { width: min(560px, 100%); }

.bcc-btn { font: inherit; cursor: pointer; border-radius: 8px; padding: 9px 16px; border: 2px solid var(--bcc-accent); background: var(--bcc-accent); color: #fff; min-height: 40px; }
.bcc-btn.bcc-alt { background: transparent; color: var(--bcc-accent); }
.bcc-btn:hover { filter: brightness(1.1); }
.bcc-btn:focus-visible, .bcc input:focus-visible { outline: 3px solid #ffbf47; outline-offset: 2px; }
.bcc-x { position: absolute; top: 6px; right: 8px; background: transparent; color: inherit; border: 0; font-size: 22px; padding: 0 8px; min-height: 0; }
.bcc[dir="rtl"] .bcc-x { right: auto; left: 8px; }

.bcc-cat { padding: 8px 0; border-top: 1px solid rgba(0, 0, 0, .1); }
.bcc-catlab { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.bcc-catlab input { width: 18px; height: 18px; accent-color: var(--bcc-accent); }
.bcc-badge { font-size: .75em; font-weight: 400; background: rgba(0, 0, 0, .08); border-radius: 10px; padding: 1px 8px; }
.bcc-catdesc { font-size: .9em; opacity: .8; }
.bcc-names, .bcc-scan { font-size: .8em; opacity: .7; margin: 0; word-break: break-all; }

.bcc-fab { position: fixed; left: 12px; bottom: 12px; z-index: 2147482000; padding: 6px 12px; min-height: 0; font-size: 13px; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.bcc-ph { padding: 16px; text-align: center; border: 1px dashed #888; border-radius: 8px; background: #f3f4f6; color: #1c1f24; }
.bcc-ph button { font: inherit; cursor: pointer; padding: 6px 14px; }

@media (prefers-color-scheme: dark) {
    .bcc { color: #e8eaed; }
    .bcc-box { background: #1f2328; border-color: rgba(255, 255, 255, .2); }
    .bcc-cat { border-color: rgba(255, 255, 255, .15); }
    .bcc-badge { background: rgba(255, 255, 255, .15); }
    .bcc-link { color: #8ab4f8; }
}
@media (max-width: 600px) {
    .bcc-p-bar .bcc-actions, .bcc-actions { flex-direction: column; width: 100%; }
    .bcc-btn { width: 100%; }
    .bcc-fab { width: auto; }
}

