/* Keep action feedback below the measured header and robot dock. The native
   HUD owns --tvdb-hud-bottom and updates it when controls wrap or resize. */
#ui #toast {
  top: max(82px, calc(var(--tvdb-hud-bottom, 68px) + 8px)) !important;
  bottom: auto !important;
  z-index: 1220;
  min-width: 0;
  max-width: min(560px, calc(100% - 24px)) !important;
  white-space: normal;
  overflow-wrap: anywhere;
  color: #fff8df;
  background: #294f3d;
  box-shadow: 0 5px 20px #24372b30;
  pointer-events: none;
}
#ui #toast.error {background: #795636;}
#ui #toast #toast-title {font-size: 14px; line-height: 1.4; color: #fff8df;}
#ui #toast #toast-detail {font-size: 12px; line-height: 1.4; color: #fff2db; opacity: 1;}
@media (max-width: 700px), (max-height: 500px) {
  #ui #toast {padding: 10px 13px !important;}
}
