.bc-overlay{position:fixed;inset:0;z-index:2147483000;background:rgba(8,23,32,.78);display:flex;align-items:center;justify-content:center;padding:12px;box-sizing:border-box}
.bc-dialog{width:min(100%,490px);max-height:min(92dvh,780px);overflow-y:auto;background:#fff;color:#142b3b;border-radius:18px;box-shadow:0 22px 75px #0005;padding:18px;box-sizing:border-box;font:inherit}
.bc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:18px;font-weight:750;color:#0a604f}
.bc-close{border:0;background:#eef4f4;border-radius:10px;min-width:40px;min-height:40px;font-size:25px;color:#294459;cursor:pointer}
.bc-note{font-size:13px;line-height:1.5;color:#4a5c70;margin:10px 0 14px}
.bc-view{position:relative;width:100%;aspect-ratio:4/3;background:#101c27;border-radius:13px;overflow:hidden;display:flex;align-items:center;justify-content:center;touch-action:none}
.bc-video{position:absolute;width:100%;height:100%;object-fit:cover;pointer-events:none}
.bc-preview{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.bc-aim{position:absolute;width:79%;height:38%;border:2px solid #57f5b7;border-radius:14px;box-shadow:0 0 0 140px #0002;pointer-events:none}
.bc-aim:before{content:"";position:absolute;top:50%;left:10%;right:10%;height:1px;background:#57f5b7a0}
.bc-status{font-size:13px;line-height:1.45;min-height:2.5em;color:#314c5d;margin:12px 0 8px}
.bc-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}
/* Dos filas y tres columnas: botones simétricos, rango flexible. */
.bc-zoom-tools{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;grid-template-areas:"label label value" "minus range plus";align-items:center;gap:9px;padding:10px 12px;margin:0 0 10px;width:100%;box-sizing:border-box;border:1px solid #cbdedb;border-radius:12px;background:#f3f8f7}
.bc-zoom-tools[hidden]{display:none}
.bc-zoom-label{grid-area:label;padding:0 2px;color:#335f59;font-size:12px;font-weight:700}
.bc-zoom-step{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;max-width:44px;height:44px;min-height:44px;padding:0;box-sizing:border-box;border-radius:10px;font-size:20px;line-height:1}
.bc-zoom-tools>.bc-zoom-step:first-of-type{grid-area:minus}
.bc-zoom-tools>.bc-zoom-step:last-of-type{grid-area:plus}
.bc-zoom-range{grid-area:range;width:100%;min-width:0;max-width:100%;box-sizing:border-box;accent-color:#07876e}
.bc-zoom-value{grid-area:value;justify-self:end;color:#0b5d4d;font-size:14px;white-space:nowrap}
.bc-tool{border:1px solid #cedce7;background:#eef5f8;color:#173648;border-radius:9px;min-height:40px;padding:8px 13px;cursor:pointer;font:inherit}
.bc-manual{display:flex;align-items:end;gap:8px;margin-top:10px}
.bc-manual label{flex:1;min-width:0;font-size:12px;font-weight:700;color:#2c4859}
.bc-manual input{display:block;box-sizing:border-box;width:100%;margin-top:5px;border:1px solid #bbccd8;border-radius:9px;min-height:44px;padding:9px 11px;background:#fff;color:#172f40;font:inherit}
.bc-send{background:#07876e;color:white;border:0;border-radius:9px;min-height:44px;padding:10px 17px;font:inherit;font-weight:700;cursor:pointer}
.bc-help{display:block;margin-top:12px;color:#607888;line-height:1.4;font-size:11px}
.bc-choice{display:flex;flex-direction:column;gap:4px;width:100%;text-align:left;border:1px solid #cadbdf;border-radius:10px;padding:12px;margin:7px 0;background:#f5fafb;color:#15394b;cursor:pointer;font:inherit}
.bc-choice:focus-visible,.bc-close:focus-visible,.bc-tool:focus-visible,.bc-send:focus-visible,.bc-camera-select:focus-visible,.bc-zoom-range:focus-visible{outline:3px solid #1d73d8;outline-offset:2px}
.bc-choice small{color:#557181}
.bc-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:9px 13px;min-height:40px;box-sizing:border-box;border:1px solid #0e927a;border-radius:10px;background:#e9f8f3;color:#086957;font-weight:700;font-size:13px;cursor:pointer;text-decoration:none;white-space:normal}
.bc-action:focus-visible{outline:3px solid #2171ca;outline-offset:2px}
.bc-picker-actions{display:flex;justify-content:flex-end;gap:8px;margin:8px 0}
.bc-action:hover{background:#d4f2e7}
@media(max-width:540px){.bc-overlay{align-items:center;padding:8px}.bc-dialog{padding:14px;border-radius:13px}.bc-view{aspect-ratio:3/4;max-height:45dvh}.bc-manual{flex-wrap:wrap}.bc-manual label{flex-basis:100%}.bc-send{width:100%}.bc-zoom-tools{gap:8px;padding:9px 10px}}

.bc-home-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:14px;padding:12px 0}
.bc-home-card{display:flex;flex-direction:column;gap:10px;border:1px solid #d1e5e1;border-radius:14px;padding:20px;background:#f5fbf8;color:#174c42;text-decoration:none;box-shadow:0 4px 18px #154b4010}.bc-home-card:hover{border-color:#168971;background:#eaf8f2}.bc-home-card strong{font-size:17px}.bc-home-card span{font-size:13px;line-height:1.5}
.bc-camera-row{display:flex;align-items:center;gap:10px;margin:0 0 6px;font-size:13px;font-weight:700;color:#24483f}
.bc-camera-row[hidden],.bc-camera-help[hidden]{display:none}
.bc-camera-row>span{flex:0 0 auto}
.bc-camera-select{display:block;flex:1;min-width:0;max-width:100%;height:42px;padding:8px 32px 8px 10px;border:1px solid #bad5cf;border-radius:10px;background:#f7fcfa;color:#153f36;font:inherit;text-overflow:ellipsis}
.bc-camera-help{margin:3px 0 10px;font-size:12px;line-height:1.45;color:#456d65}
@media(max-width:540px){.bc-camera-row{align-items:flex-start;flex-direction:column;gap:5px}.bc-camera-select{width:100%;flex:auto}}

