/* Modal toast (center) + notices */
.flash-data{display:none !important;}

.toast-overlay{
  position:fixed; inset:0;
  display:flex; align-items:center; justify-content:center;
  padding:22px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(2px);
  z-index: 10000;
}
.toast-card{
  width:min(560px, calc(100vw - 44px));
  background: rgba(255,255,255,.98);
  border:1px solid rgba(0,0,0,.10);
  border-radius:18px;
  box-shadow:0 30px 90px rgba(0,0,0,.28);
  padding:18px 18px 14px;
  color:#111;
  position:relative;
}
.toast-head{display:flex; gap:12px; align-items:flex-start;}
.toast-icon{
  width:44px; height:44px; border-radius:14px;
  display:flex; align-items:center; justify-content:center;
  font-weight:900; font-size:22px; flex:0 0 auto;
  background: rgba(0,0,0,.06);
}
.toast-body{flex:1 1 auto; min-width:0;}
.toast-title{font-weight:900; font-size:14px; margin-bottom:6px;}
.toast-text{font-size:15px; line-height:1.35; word-wrap:break-word;}
.toast-close{
  position:absolute; top:10px; right:10px;
  appearance:none; border:0; background:transparent;
  font-size:22px; line-height:1; cursor:pointer;
  padding:6px 8px; border-radius:12px;
}
.toast-close:hover{background: rgba(0,0,0,.06);}
.toast-actions{display:flex; justify-content:flex-end; margin-top:14px;}
.toast-btn{
  appearance:none; border:0; cursor:pointer;
  padding:10px 14px; border-radius:12px;
  font-weight:800; font-size:14px;
  background: rgba(0,0,0,.08);
}
.toast-btn:hover{background: rgba(0,0,0,.12);}

.toast-card.success{border-left:10px solid #22c55e;}
.toast-card.error{border-left:10px solid #ef4444;}
.toast-card.info{border-left:10px solid #3b82f6;}
.toast-card.warning{border-left:10px solid #f59e0b;}

.field-hint{
  margin-top:6px;
  font-size:13px;
  opacity:.9;
}
.field-hint.error{color:#b91c1c;}
.field-hint.ok{color:#15803d;}

/* Persistent notice banner (for Gmail not configured etc.) */
.notice{
  border-radius:14px;
  padding:12px 14px;
  border:1px solid rgba(0,0,0,.12);
  background: rgba(255,255,255,.92);
  color:#111;
  box-shadow: 0 10px 30px rgba(0,0,0,.10);
}
.notice.notice-warn{border-left:8px solid #f59e0b;}
.notice.notice-error{border-left:8px solid #ef4444;}
.notice.notice-ok{border-left:8px solid #22c55e;}
.notice .notice-title{font-weight:900; margin-bottom:6px;}
.notice .notice-actions{margin-top:10px;}
.notice .notice-actions a{font-weight:800;}
