#native-exit-app[hidden] { display: none !important; }

.native-exit-dialog {
  box-sizing: border-box;
  width: min(22rem, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  overflow: auto;
  margin: auto;
  padding: 1.25rem;
  border: 1px solid var(--border-soft, #42505e);
  border-radius: 1rem;
  background: var(--app-bg, #12202d);
  color: var(--text-primary, #f5f8fa);
  font-family: inherit;
  box-shadow: 0 1rem 3rem #0008;
}
.native-exit-dialog::backdrop { background: #0009; }
.native-exit-dialog h2 { margin: 0 0 .75rem; font-size: 1.2rem; }
.native-exit-dialog p { margin: 0 0 1rem; line-height: 1.5; }
.native-exit-actions { display: grid; grid-template-columns: 1.4fr 1fr; gap: .6rem; }
.native-exit-actions button {
  min-width: 5rem;
  min-height: 44px;
  padding: .55rem .9rem;
  border: 1px solid var(--border-soft, #42505e);
  border-radius: .5rem;
  background: transparent;
  color: var(--text-primary, #f5f8fa);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.native-exit-actions .primary-btn {
  background: var(--action-primary, #FFD02A);
  border-color: var(--action-primary, #FFD02A);
  color: var(--action-text, #101715);
}
.native-exit-actions .primary-btn:hover { background: var(--action-hover, #FFDA55); }
.native-exit-actions button:disabled { cursor: default; opacity: .6; }
#native-exit-cancel { grid-column: 1 / -1; justify-self: center; border-color: transparent; }
.native-exit-actions button:focus-visible { outline: 3px solid var(--action-primary, #6ae2ef); outline-offset: 3px; }
.native-exit-error:empty { display: none; }
