Offline is a product state. Keep essential work safe through disconnection and recovery.
Name the essential work.
Cache only minimum trusted data.
Queue actions with visible status.
Resolve conflicts during recovery.
Design disconnection before it happens.