/* BlackVault Business v0.11.5 connected-backend controls.
   Palette and layout supplement the approved Messages and Calls screens. */
.bi-settings-block{
  border:1px solid rgba(50,184,244,.52);border-radius:20px;
  padding:18px;margin:20px 0;
  background:linear-gradient(139deg,#0b3154,#071c33 57%,#041429);
  box-shadow:inset 0 1px 0 #9cdeff20,0 14px 24px #0004;
  color:#eaf8ff;
}
.bi-settings-title{display:flex;gap:14px;align-items:flex-start;margin:0 0 16px}
.bi-settings-title h2{font-size:1.04rem;line-height:1.3;margin:1px 0 5px;color:#effaff}
.bi-settings-title p{font-size:.82rem;line-height:1.5;margin:0;color:#b3d3e9}
.bi-shield{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:13px;
  color:#96ebff;background:#0c507e;border:1px solid #2cd4ff78;
  box-shadow:0 0 16px #0088dd3a;font-size:1.3rem}
.bi-settings-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:9px}
.bi-btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;cursor:pointer;
  border:1px solid #3299ceaa;border-radius:11px;min-height:40px;padding:9px 13px;
  font-family:inherit;font-size:.83rem;line-height:1.3;font-weight:600;color:#d7f5ff;background:linear-gradient(120deg,#133b5d,#092a49);
  text-align:center;transition:background .15s,border-color .15s}
.bi-btn:hover,.bi-btn:focus-visible{border-color:#38e2ff;background:#134b73}
.bi-btn:focus-visible,.bi-close:focus-visible{outline:2px solid #79eaff;outline-offset:2px}
.bi-btn.bi-primary{background:linear-gradient(130deg,#1599d2,#0d558d);border-color:#44d8ff;color:white;
  box-shadow:0 0 16px #00aeff2a}
.bi-btn:disabled{opacity:.45;cursor:wait}
.bi-muted{color:#a7c5da;font-size:.79rem;line-height:1.55}
.bi-footer-note{margin:14px 0 0}
.bi-backdrop{position:fixed;inset:0;z-index:120000;background:#010713df;
  backdrop-filter:blur(6px);display:flex;justify-content:center;align-items:center;
  padding:max(12px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right))
    max(12px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left))}
.bi-panel{width:min(100%,610px);max-height:min(94dvh,880px);display:flex;flex-direction:column;
  border-radius:20px;overflow:hidden;background:linear-gradient(155deg,#0d2845,#06192d 64%,#041124);
  border:1px solid #3195c8;box-shadow:0 30px 96px #000b,0 0 40px #0a87cf2e;
  color:#e3f5ff}
.bi-header{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;
  padding:19px 21px 15px;border-bottom:1px solid #226184}
.bi-header small{display:block;color:#62cfff;font-size:.62rem;font-weight:750;letter-spacing:.14em}
.bi-header h2{margin:5px 0 0;color:white;font-size:1.23rem;line-height:1.25}
.bi-close{font-size:1.65rem;line-height:1;display:grid;place-items:center;
  min-width:37px;min-height:37px;background:#133756;color:#c5f6ff;
  border:1px solid #337aa3;border-radius:11px;cursor:pointer}
.bi-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:17px 20px 25px;
  scrollbar-color:#247aaa transparent}
.bi-body h3{font-size:.98rem;margin:18px 0 8px;color:#e9fbff}
.bi-intro{margin:0 0 15px}
.bi-intro h3{margin:0 0 6px;font-size:.95rem}
.bi-intro p{margin:0;color:#a9cbdf;font-size:.81rem;line-height:1.55}
.bi-form{display:grid;gap:12px;margin:10px 0 18px}
.bi-label{display:grid;gap:6px;font-size:.78rem;color:#bad8ea;font-weight:650}
.bi-label input,.bi-label textarea,.bi-label select,
.bi-body input,.bi-body select{box-sizing:border-box;min-width:0;max-width:100%;
  width:100%;padding:10px 12px;border-radius:10px;border:1px solid #2e789f;
  background:#05182d;color:#edfaff;font-family:inherit;font-size:.91rem;line-height:1.45;font-weight:500}
.bi-label textarea{resize:vertical;min-height:95px}
.bi-label input:focus,.bi-label select:focus,.bi-label textarea:focus{outline:2px solid #2dd0ff;
  outline-offset:1px;border-color:#38dfff}
.bi-label select option{background:#091d32;color:#f4fbff}
.bi-box{background:#071d33;border:1px solid #27658a;border-radius:13px;padding:13px;margin:10px 0}
.bi-box strong{color:#effaff}
.bi-inline{display:flex;justify-content:space-between;align-items:center;gap:12px}
.bi-inline p{margin:4px 0 0}
.bi-rule{height:1px;background:#255478;margin:15px 0}
.bi-member{padding:11px 0;display:flex;align-items:center;justify-content:space-between;
  gap:10px;border-bottom:1px solid #22425f}
.bi-member:last-child{border-bottom:0}
.bi-member strong{display:block;font-size:.85rem;color:#effaff}
.bi-member small{display:block;margin-top:4px;font-size:.74rem;color:#99c5df}
.bi-member-actions{display:flex;gap:5px;flex-wrap:wrap;justify-content:flex-end}
.bi-member-actions .bi-btn{padding:6px 8px;min-height:33px;font-size:.73rem}
.bi-actions{display:flex;flex-wrap:wrap;gap:9px;margin:13px 0}
.bi-notice{margin:0;padding:0 19px 14px;color:#8be6ff;font-size:.77rem;
  max-height:80px;overflow:auto}
.bi-notice:not(:empty){border-top:1px solid #164466;padding-top:11px}
.bi-error{color:#ffb8be}
.bi-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.bi-stats>div{border:1px solid #28779d;background:#0a3152;border-radius:12px;padding:12px}
.bi-stats b{display:block;font-size:1.48rem;color:#7fe7ff}
.bi-stats small{font-size:.75rem;color:#bcdaed}
.bi-history-message{padding:12px 0;border-bottom:1px solid #1f5474}
.bi-history-message:last-child{border:0}
.bi-history-message small{font-size:.7rem;color:#91cfed}
.bi-history-message p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:.85rem}
.bi-metadata{padding:8px 0;border-bottom:1px solid #215071;font-size:.8rem;color:#c6e5f4}
.bi-json{max-height:210px;overflow:auto;background:#041121;border:1px solid #295474;
  border-radius:9px;padding:10px;font-size:.71rem;white-space:pre-wrap;overflow-wrap:anywhere;color:#d6f3fc}
.bi-thread-tools{display:flex;flex-wrap:wrap;gap:6px;align-items:center;
  border-top:1px solid #1c688f;padding:10px 13px;background:#071d33}
.bi-thread-tools .bi-btn{font-size:.71rem;min-height:33px;padding:5px 9px;border-radius:8px}
.bi-thread-tools small{width:100%;color:#a0c7df;font-size:.69rem;line-height:1.35}
@media(max-width:570px){
 .bi-settings-block{margin:15px 10px;padding:14px}
 .bi-settings-actions{grid-template-columns:1fr}
 .bi-panel{border-radius:15px;max-height:96dvh}
 .bi-header{padding:15px}
 .bi-body{padding:13px 14px 17px}
 .bi-member{align-items:flex-start;flex-direction:column}
 .bi-member-actions{justify-content:flex-start}
 .bi-inline{align-items:flex-start;flex-direction:column}
 .bi-thread-tools{padding:8px}
 .bi-thread-tools .bi-btn{font-size:.68rem;min-height:32px}
}
@media(prefers-reduced-motion:reduce){
 .bi-btn{transition:none}
}

.bi-loading [data-bi-action],.bi-loading button[type=submit]{pointer-events:none;opacity:.54}
