/* Dialog standardization: one modern, content-sized dialog language for simulator messages. */
.sigmonet-app-dialog{
  width:min(500px,calc(100vw - 28px));
  max-width:500px;
  max-height:calc(100dvh - 28px);
  border:0;
  padding:0;
  margin:auto;
  background:transparent;
  color:inherit;
  overflow:visible;
}
.sigmonet-app-dialog::backdrop{
  background:rgba(15,23,42,.48);
  backdrop-filter:blur(5px);
}
.sigmonet-app-dialog-card{
  box-sizing:border-box;
  width:100%;
  max-height:calc(100dvh - 28px);
  overflow:auto;
  background:#fff;
  border:1px solid #e3e8f2;
  border-radius:18px;
  box-shadow:0 24px 72px rgba(15,23,42,.28);
  padding:20px;
}
.sigmonet-app-dialog-icon{
  width:46px;
  height:46px;
  display:grid;
  place-items:center;
  margin:0 0 12px;
  border-radius:13px;
  background:#eef3ff;
  color:#26358c;
  font-size:1.05rem;
}
.sigmonet-app-dialog-icon :is(i,svg){
  display:block;
  width:18px;
  height:18px;
  margin:0;
  padding:0;
}
.sigmonet-app-dialog-card h3{
  margin:0 0 6px;
  color:#172554;
  font-size:1.02rem;
  line-height:1.3;
}
.sigmonet-app-dialog-message{
  margin:0;
  color:#667085;
  font-size:.8rem;
  line-height:1.55;
  white-space:pre-line;
}
.sigmonet-app-dialog-note{
  margin-top:10px;
  padding:10px 11px;
  border:1px solid #e6eaf2;
  border-radius:10px;
  background:#f8f9fc;
  color:#667085;
  font-size:.72rem;
  line-height:1.45;
}
.sigmonet-app-dialog-field{
  display:grid;
  gap:6px;
  margin-top:14px;
}
.sigmonet-app-dialog-field[hidden]{display:none!important;}
.sigmonet-app-dialog-field label{
  color:#344054;
  font-size:.72rem;
  font-weight:700;
}
.sigmonet-app-dialog-field input{
  box-sizing:border-box;
  width:100%;
  min-height:42px;
  border:1px solid #cfd8e8;
  border-radius:10px;
  padding:0 12px;
  background:#fff;
  color:#172554;
  font:inherit;
  line-height:1;
  outline:none;
}
.sigmonet-app-dialog-field input:focus{
  border-color:#5267d9;
  box-shadow:0 0 0 3px rgba(82,103,217,.14);
}
.sigmonet-app-dialog-error{
  color:#b42318;
  font-size:.7rem;
  line-height:1.4;
}
.sigmonet-app-dialog-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:flex-end;
  align-items:center;
  gap:8px;
  margin-top:18px;
}
.sigmonet-app-dialog-btn{
  box-sizing:border-box;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:92px;
  min-height:40px;
  height:40px;
  margin:0;
  padding:0 16px;
  border:1px solid #d8deea;
  border-radius:10px;
  background:#fff;
  color:#344054;
  font:inherit;
  font-size:.75rem;
  font-weight:700;
  line-height:1;
  text-align:center;
  white-space:nowrap;
  cursor:pointer;
}
.sigmonet-app-dialog-btn:hover{background:#f8fafc;border-color:#c8d1e0;}
.sigmonet-app-dialog-btn.primary{background:#26358c;border-color:#26358c;color:#fff;}
.sigmonet-app-dialog-btn.primary:hover{background:#1f2d7c;}
.sigmonet-app-dialog-btn.danger{background:#b42318;border-color:#b42318;color:#fff;}
.sigmonet-app-dialog-btn.danger:hover{background:#981b12;}
@media(max-width:520px){
  .sigmonet-app-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);}
  .sigmonet-app-dialog-card{padding:16px;max-height:calc(100dvh - 16px);border-radius:16px;}
  .sigmonet-app-dialog-actions{display:grid;grid-template-columns:1fr;}
  .sigmonet-app-dialog-btn{width:100%;min-height:44px;height:44px;}
}
