body.onefsg-dialog-open { overflow: hidden; }
#onefsg-dialog-host { position: relative; z-index: 2147483000; }
.onefsg-dialog-backdrop {
  position: fixed; inset: 0; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 14, 20, .72); backdrop-filter: blur(3px);
}
.onefsg-dialog {
  --dialog-accent: #f97316; --dialog-danger: #b42318; --dialog-ink: #13202a;
  width: min(620px, 100%); max-height: min(780px, calc(100vh - 40px)); overflow: auto;
  color: var(--dialog-ink); background: #fff; border: 1px solid #d6dee4; border-radius: 14px;
  box-shadow: 0 28px 80px rgba(0,0,0,.35); font: 14px/1.45 Inter, Segoe UI, Arial, sans-serif;
}
.onefsg-dialog * { box-sizing: border-box; }
.onefsg-dialog-header { display: flex; gap: 14px; align-items: flex-start; padding: 20px 22px 15px; border-bottom: 1px solid #e2e8ee; }
.onefsg-dialog-icon { width: 12px; min-width: 12px; height: 38px; border-radius: 999px; background: var(--dialog-accent); }
.onefsg-dialog-danger .onefsg-dialog-icon { background: var(--dialog-danger); }
.onefsg-dialog-warning .onefsg-dialog-icon { background: #b45309; }
.onefsg-dialog-success .onefsg-dialog-icon { background: #15803d; }
.onefsg-dialog-kicker { margin: 0 0 3px; color: #6b7280; font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.onefsg-dialog h2 { margin: 0; font-size: 22px; line-height: 1.2; }
.onefsg-dialog-form { padding: 18px 22px 22px; }
.onefsg-dialog-message { margin: 0 0 15px; color: #465560; white-space: pre-line; }
.onefsg-dialog-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0 0 15px; }
.onefsg-dialog-details div { padding: 10px 11px; background: #f5f8fa; border: 1px solid #dce5ea; border-radius: 8px; }
.onefsg-dialog-details dt { color: #677680; font-size: 10px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.onefsg-dialog-details dd { margin: 3px 0 0; overflow-wrap: anywhere; font-weight: 800; }
.onefsg-dialog-fields { display: grid; gap: 12px; }
.onefsg-dialog-field { display: grid; gap: 6px; font-weight: 850; }
.onefsg-dialog-field > span:first-child span { color: #c2410c; }
.onefsg-dialog-field input, .onefsg-dialog-field textarea, .onefsg-dialog-field select {
  width: 100%; padding: 10px 11px; color: #17232b; background: #fff; border: 1px solid #bccbd4; border-radius: 8px; font: inherit;
}
.onefsg-dialog-field textarea { min-height: 102px; resize: vertical; }
.onefsg-dialog-field input:focus, .onefsg-dialog-field textarea:focus, .onefsg-dialog-field select:focus { outline: 3px solid rgba(249,115,22,.2); border-color: #f97316; }
.onefsg-dialog-help { color: #65747e; font-size: 12px; font-weight: 500; }
.onefsg-dialog-notice { margin-top: 13px; padding: 10px 12px; color: #7c2d12; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 8px; }
.onefsg-dialog-error { margin-top: 13px; padding: 10px 12px; color: #8f1d16; background: #fff1f0; border: 1px solid #f3b6b1; border-radius: 8px; font-weight: 750; }
.onefsg-dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.onefsg-dialog-button { min-height: 42px; padding: 10px 15px; border: 1px solid transparent; border-radius: 8px; color: #fff; background: #f97316; font: inherit; font-weight: 900; cursor: pointer; }
.onefsg-dialog-button.secondary { color: #17232b; background: #fff; border-color: #cbd6dc; }
.onefsg-dialog-button.danger { background: #b42318; }
.onefsg-dialog-button.warning { background: #b45309; }
.onefsg-dialog-button:disabled { opacity: .58; cursor: wait; }
.sr-only { position: absolute!important; width: 1px!important; height: 1px!important; padding: 0!important; margin: -1px!important; overflow: hidden!important; clip: rect(0,0,0,0)!important; white-space: nowrap!important; border: 0!important; }
@media (max-width: 640px) {
  .onefsg-dialog-backdrop { padding: 10px; align-items: end; }
  .onefsg-dialog { max-height: calc(100vh - 20px); border-radius: 14px 14px 8px 8px; }
  .onefsg-dialog-details { grid-template-columns: 1fr; }
  .onefsg-dialog-actions { flex-direction: column-reverse; }
  .onefsg-dialog-button { width: 100%; }
}
