/* Д79: update invite uses the standard black app toast. */
.update-prompt-toast .session-toast-text {
  margin: 0;
  flex: 1 1 auto;
}
.update-prompt-toast .ds-toast-actions {
  flex-direction: column;
  width: 100%;
}
.update-prompt-toast .update-prompt-accept {
  box-sizing: border-box;
  width: 100%;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius-field, 10px);
  background: var(--color-surface, #fff);
  color: var(--color-text, #111);
  font: 500 var(--type-caption-size, 12px) / var(--type-caption-line, 16px)
    var(--font-body, system-ui);
  cursor: pointer;
}
.update-prompt-toast .update-prompt-accept:hover:not(:disabled) {
  box-shadow: var(--shadow-control-hover, var(--shadow-selected));
}
.update-prompt-toast .update-prompt-accept:disabled {
  opacity: 0.6;
  cursor: wait;
}
.update-prompt-toast .update-prompt-accept:focus-visible {
  outline: var(--focus-ring, 2px solid #fff);
  outline-offset: var(--focus-offset, 2px);
}

/* Compact: bottom center above the dock / login strip. Desktop keeps region top-right. */
@media (max-width: 1199px) {
  .ds-toast-region > .ds-toast.update-prompt-toast {
    position: fixed;
    left: 50%;
    right: auto;
    top: auto;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    width: min(320px, calc(100vw - 32px));
    max-width: min(320px, calc(100vw - 32px));
    z-index: 10001;
  }
  body:has(.auth-warning) .ds-toast-region > .ds-toast.update-prompt-toast {
    bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  }
}
