.bt-dialog-backdrop {
  position: fixed; inset: 0; z-index: 10050; display: flex; align-items: flex-end;
  justify-content: center; padding: 18px; background: rgba(7, 25, 48, .48);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
}
.bt-dialog {
  width: min(100%, 420px); box-sizing: border-box; padding: 22px 20px 18px;
  border-radius: 24px; background: #fff; color: #173657;
  box-shadow: 0 24px 60px rgba(4, 34, 68, .26); animation: bt-dialog-in .2s ease-out;
}
.bt-dialog__icon {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px;
  margin-bottom: 13px; background: #e8f5ff; color: #1970be; font-weight: 900; font-size: 1.2rem;
}
.bt-dialog__icon.is-danger { background: #fff0ef; color: #c43d38; }
.bt-dialog h2 { margin: 0 0 8px; font-size: 1.18rem; color: #123b68; }
.bt-dialog p { margin: 0; white-space: pre-line; color: #526b84; line-height: 1.5; }
.bt-dialog__field { display:grid; gap:7px; margin-top:18px; }
.bt-dialog__field label { color:#31536f; font-weight:750; font-size:.9rem; }
.bt-dialog__input {
  width:100%; min-height:46px; box-sizing:border-box; border:1.5px solid #bdd0df;
  border-radius:12px; padding:10px 12px; background:#fff; color:#173657; font:inherit;
}
textarea.bt-dialog__input { min-height:120px; resize:vertical; }
.bt-dialog__input:focus { outline:3px solid rgba(41,194,231,.3); border-color:#1970be; }
.bt-dialog__error { min-height:1.2em; color:#b42318; font-size:.82rem; }
.bt-dialog__actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.bt-dialog__button {
  min-height: 46px; border: 0; border-radius: 14px; padding: 0 18px; font: inherit;
  font-weight: 750; cursor: pointer; touch-action: manipulation;
}
.bt-dialog__button.is-secondary { background: #edf3f8; color: #31536f; }
.bt-dialog__button.is-primary { background: #1970be; color: #fff; }
.bt-dialog__button.is-danger { background: #c43d38; color: #fff; }
.bt-dialog__button:focus-visible { outline: 3px solid rgba(41, 194, 231, .45); outline-offset: 2px; }
.bt-dialog-open { overflow:hidden; }
.bt-ui-toast {
  position:fixed; left:50%; bottom:24px; z-index:10060; max-width:min(520px,calc(100vw - 32px));
  box-sizing:border-box; padding:12px 18px; border-radius:14px; background:#173657; color:#fff;
  box-shadow:0 14px 38px rgba(4,34,68,.28); font-weight:700; line-height:1.4;
  display:flex; align-items:center; gap:10px; opacity:0; pointer-events:none;
  transform:translate(-50%,14px); transition:.18s ease;
}
.bt-ui-toast.is-visible { opacity:1; pointer-events:auto; transform:translate(-50%,0); }
.bt-ui-toast.is-danger { background:#b42318; }
.bt-ui-toast.is-success { background:#18794e; }
.bt-ui-toast__message { flex:1; }
.bt-ui-toast__action,.bt-ui-toast__close {
  border:0; border-radius:8px; background:rgba(255,255,255,.16); color:#fff;
  min-height:34px; padding:5px 9px; font:inherit; cursor:pointer;
}
.bt-ui-toast__close { width:34px; padding:0; font-size:1.25rem; }
@keyframes bt-dialog-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@media (min-width: 600px) { .bt-dialog-backdrop { align-items: center; } }
@media (prefers-reduced-motion: reduce) { .bt-dialog { animation: none; } .bt-ui-toast { transition:none; } }
