/* Scoped advanced media workbenches, extending the existing BCT kit. */
.bcm { min-width: 0; }
.bcm input,.bcm select,.bcm textarea { font-size: 16px; }
.bcm .bcm-form { display: grid; gap: 20px; margin: 0; }
.bcm .bcm-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; min-width: 0; }
.bcm .bct-field,.bcm .bcm-grid > * { min-width: 0; }
.bcm .bct-label,.bcm .bcm-check,.bcm legend { font-size: 16px; }
.bcm .bct-input,.bcm .bct-textarea,.bcm .bct-select { width: 100%; max-width: 100%; box-sizing: border-box; font-size: 16px; }
.bcm .bct-textarea { min-height: 132px; resize: vertical; }
.bcm .bct-input[type="color"] { min-height: 48px; padding: 5px; cursor: pointer; }
.bcm .bct-input[type="range"] { min-height: 44px; padding: 0; margin: 0; cursor: pointer; }
.bcm .bcm-actions { display: flex; gap: 10px; flex-wrap: wrap; min-width: 0; }
.bcm .bct-btn { min-height: 44px; max-width: 100%; white-space: normal; line-height: 1.4; }
.bcm .bcm-check { display: flex; gap: 10px; align-items: center; min-height: 44px; line-height: 1.4; cursor: pointer; }
.bcm .bcm-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent-deep); flex: 0 0 18px; }
.bcm .bcm-options { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 0; min-width: 0; }
.bcm .bcm-options legend { padding: 0 6px; font-weight: 600; }
.bcm .bcm-status { font-size: 16px; line-height: 1.5; font-weight: 600; margin: 20px 0 10px; overflow-wrap: anywhere; }
.bcm .bcm-error { padding: 12px 14px; border: 1px solid #ae3444; border-radius: 10px; background: var(--wash); font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.bcm .bcm-muted,.bcm .bcm-files { font-size: 14px; line-height: 1.55; color: var(--muted); overflow-wrap: anywhere; }
.bcm .bcm-eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 650; color: var(--accent-deep); }
.bcm .bcm-result { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); min-width: 0; }
.bcm .bcm-qr-preview { display: flex; justify-content: center; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.bcm .bcm-qr-preview canvas { display: block; width: min(100%,320px); height: auto; max-width: 100%; image-rendering: pixelated; }
.bcm .bcm-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; min-width: 0; }
.bcm .bcm-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; min-width: 0; display: grid; align-content: start; gap: 10px; }
.bcm .bcm-card img { width: 100%; height: 190px; object-fit: contain; border-radius: 6px; background: var(--wash); }
.bcm .bcm-card p { margin: 0; overflow-wrap: anywhere; font-size: 14px; line-height: 1.5; }
.bcm .bcm-card .bct-btn { justify-content: center; }
.bcm input[type="file"] { max-width: 100%; min-width: 0; font-size: 16px; }
.bcm :focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
.bcm [hidden] { display: none !important; }
@media (max-width: 760px) { .bcm .bcm-cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 600px) {
 .bcm .bcm-grid,.bcm .bcm-cards { grid-template-columns: minmax(0,1fr); }
 .bcm .bcm-actions > .bct-btn { flex: 1 1 150px; }
 .bcm .bcm-options { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) { .bcm * { scroll-behavior: auto; transition: none; animation: none; } }
